@feedmepos/mf-connect 0.1.124-dev → 0.1.125-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/{App-C7BnLHSt.js → App-lOnYYWzx.js} +454 -455
  2. package/dist/{AuditLogs-BPKQdFga.js → AuditLogs-C5aMzrhF.js} +13 -13
  3. package/dist/{Bin-Bq7yY0I2.js → Bin-Dk0rAESN.js} +8 -8
  4. package/dist/{Broadcast-D52rPmVl.js → Broadcast-BBNpuceo.js} +12 -12
  5. package/dist/{CampaignAnalytic-DpiWtzIp.js → CampaignAnalytic-BgROt0Yu.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1eAAN64.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CrgCuB45.js} +9 -9
  7. package/dist/{Card-BQc7vud2.js → Card-fSEJaQmL.js} +23 -23
  8. package/dist/{Collections--VzkneGp.js → Collections-DVM1dOOo.js} +8 -8
  9. package/dist/{Credit-DhfAcw-p.js → Credit-CNDYRDiK.js} +12 -12
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2Csdg-3.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cup-EvR6.js} +1 -1
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ90EwzB.js} +36 -36
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Cr2_XbyY.js → EffectSheet.vue_vue_type_style_index_0_lang-JQmGeS__.js} +24 -24
  13. package/dist/{Experience-CUwbHfo5.js → Experience-Bqfx1Gjq.js} +13 -13
  14. package/dist/{FileSaver.min-DvZpiwMd.js → FileSaver.min-B4Jv2-PR.js} +1 -1
  15. package/dist/{Game-CI5-y0JJ.js → Game-DmbJYYaC.js} +13 -13
  16. package/dist/{GiftCardSetup-CGacqQ0j.js → GiftCardSetup-DHxDI5hU.js} +10 -10
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B6POxDLJ.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BfrjE7gE.js} +7 -7
  18. package/dist/{Goals-fqJY9iMx.js → Goals-B-3PoUlx.js} +4 -4
  19. package/dist/{Grab-CAx1cCE4.js → Grab-BRfVvqAr.js} +9 -9
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTKf7uR-.js → ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js} +1 -1
  21. package/dist/{Index-CT1Gnjsv.js → Index-vfYiu7G1.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BRQ12Yum.js → LocationPicker.vue_vue_type_script_setup_true_lang-BKdq7bw2.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BRzuWJ1Y.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DUAKzHgZ.js} +1 -1
  24. package/dist/{LoyaltyDashboard-IJIDEBWf.js → LoyaltyDashboard-CHEIpAHw.js} +15 -15
  25. package/dist/{MainLayout-BMghr-wf.js → MainLayout-Cf1lEoHL.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BitJKgvd.js → MainLayout.vue_vue_type_script_setup_true_lang-DwNxuVHy.js} +3 -3
  27. package/dist/{Marketing-Ckr9cp3w.js → Marketing-BBF8mHSo.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-BIZnE8CY.js → MarketingMaterialEdit-COTHaH08.js} +6 -6
  29. package/dist/{Member-d1nPxr74.js → Member-BEyxcsNI.js} +7 -7
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DLSsOeLt.js +1300 -0
  31. package/dist/{MemberImportHistory-CxX9iYhV.js → MemberImportHistory-zs8VJsoI.js} +7 -7
  32. package/dist/{MemberList-DUzYpxhj.js → MemberList-2-qKmm5p.js} +14 -14
  33. package/dist/{MemberTransactions-BFM3ybeo.js → MemberTransactions-DOsMBs30.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B5j0YBix.js → MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.js} +10 -10
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsSHSbBB.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CtqBL-Ky.js} +1 -1
  36. package/dist/{Mission-De9BF5wb.js → Mission-Bo7tuR13.js} +14 -14
  37. package/dist/{Overview-Pmxqv6qp.js → Overview-BrGVMqE1.js} +21 -21
  38. package/dist/{Overview-DeHo3gef.js → Overview-CnoidK6U.js} +4 -4
  39. package/dist/{Point-DE_Cc85N.js → Point-DJ2-HEmx.js} +14 -14
  40. package/dist/{Promotion-cZDzgho4.js → Promotion-D7Q3EY3d.js} +14 -14
  41. package/dist/{Queue-DmDbrtTk.js → Queue-CLXhXQeU.js} +13 -13
  42. package/dist/{Record-uxNNOvmK.js → Record-CCF7K-pJ.js} +9 -9
  43. package/dist/{Review-CIIn_Bdx.js → Review-BZH_tGDe.js} +2 -2
  44. package/dist/{ReviewFacebookCallback-CO6FxHzc.js → ReviewFacebookCallback-Bs-oiDMC.js} +5 -5
  45. package/dist/{ReviewGoogleCallback-B7kmGwb_.js → ReviewGoogleCallback-eHLJko2f.js} +5 -5
  46. package/dist/{Reward-Bj1snFu8.js → Reward-ea05o2qi.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BO-36dE4.js → RewardGroup.vue_vue_type_script_setup_true_lang-Csa8UPMS.js} +14 -14
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js → RuleGroup.vue_vue_type_script_setup_true_lang-DW3NDgHq.js} +15 -15
  49. package/dist/{Segment-BgJgWa6C.js → Segment-z3BAGTqr.js} +26 -26
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D2TDoZgQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D4H86p3o.js} +15 -15
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CEBH11hR.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-x8dMt8PF.js} +4 -4
  52. package/dist/Setting-D0nKTgej.js +578 -0
  53. package/dist/{SettingAdvertisements-vdUtIXwC.js → SettingAdvertisements-BUGsMAdi.js} +12 -12
  54. package/dist/{Settings-C6yJ1WEB.js → Settings-C2loJXla.js} +5 -5
  55. package/dist/{Store-DgltT0RA.js → Store-CbhAyr1j.js} +27 -27
  56. package/dist/{StoreRewards-BXH_5cYL.js → StoreRewards-DHt64JEN.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CQ7I8Zli.js +1297 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DjCO9U0c.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js} +2 -2
  59. package/dist/{Tier-CqfHGUX0.js → Tier-CH5DwMYW.js} +122 -115
  60. package/dist/{Title-B5VnUNiS.js → Title-DNLw_rOp.js} +23 -23
  61. package/dist/{Transaction-BZh1Q9Lj.js → Transaction-DCuU6B7G.js} +2 -2
  62. package/dist/Upselling-DBsfEEvV.js +214 -0
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Buj7CRlQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-f-j87AZA.js} +6 -6
  64. package/dist/{Voucher-CZJdV2Ok.js → Voucher-BVztDyI0.js} +18 -18
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-65x2VrpD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CrYrxFVi.js} +12 -12
  66. package/dist/{WhatsappAccount-DsRilNC5.js → WhatsappAccount-CobyTNkp.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bn26qwx5.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C-pbY0Zv.js} +1 -1
  68. package/dist/{WhatsappBot-CpzMaTss.js → WhatsappBot-xc4QD061.js} +6 -6
  69. package/dist/WhatsappBotLogs-eiDWJkN7.js +509 -0
  70. package/dist/{WhatsappBotSettings-DSUPGC-p.js → WhatsappBotSettings-D4cMFn3z.js} +65 -65
  71. package/dist/{WhatsappLayout-BCWYcQmD.js → WhatsappLayout-C8DejCWo.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DyxyISRP.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CZNpggfQ.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Db-Z7cY_.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6TJ4hxh.js} +2 -2
  74. package/dist/{app-BQeODViN.js → app-Bik4hlr7.js} +14726 -13780
  75. package/dist/app.js +1 -1
  76. package/dist/{base.export-kSFLDDoC.js → base.export-BRw8QzdM.js} +2 -2
  77. package/dist/{business-EP-Do3Ew.js → business-Dv2S3X12.js} +1 -1
  78. package/dist/{campaign-BjnUPowX.js → campaign-CNDBsfeQ.js} +6 -6
  79. package/dist/{campaign-C8GgaCub.js → campaign-witQNfmZ.js} +8 -8
  80. package/dist/{campaign.fn-DQ--gL4B.js → campaign.fn-Dr4w5BrO.js} +31 -31
  81. package/dist/{collection.fn-BhXecwh5.js → collection.fn-C0Dx5_1j.js} +2 -2
  82. package/dist/{currency-CGMNh1Q_.js → currency-lP50Csky.js} +1 -1
  83. package/dist/{duplicateCampaign-icqF8Na9.js → duplicateCampaign-BfLxdQWg.js} +2 -2
  84. package/dist/{effect-Bc6oGIWd.js → effect-6bi20cxS.js} +1 -1
  85. package/dist/{email-addresses-B3KWfUMk.js → email-addresses-BmujKG-l.js} +25 -25
  86. package/dist/{feature-flag-HhjvSuDm.js → feature-flag-DdxBiP1p.js} +200 -186
  87. package/dist/{helper-D1BYvcED.js → helper-DSmzzBjW.js} +1 -1
  88. package/dist/{index-BkevK_Hp.js → index-2JiR1s6M.js} +1 -1
  89. package/dist/{index-C3MK8Twg.js → index-373LDTQ7.js} +1 -1
  90. package/dist/{index-Br2SLVsn.js → index-83SeIfhc.js} +7 -7
  91. package/dist/{index-gMrtUwSD.js → index-B0Ddw1na.js} +129 -129
  92. package/dist/index-BD3HIAoL.js +86 -0
  93. package/dist/{index-CsYTLmPa.js → index-BNdhRCyN.js} +1 -1
  94. package/dist/{index-DOSuhtdE.js → index-BTud0ICl.js} +1 -1
  95. package/dist/{index-GQv1_jaJ.js → index-BYlnybS9.js} +2 -2
  96. package/dist/{index-DCC3pLug.js → index-CCVnmv0l.js} +2 -2
  97. package/dist/{index-Yw4M7v7m.js → index-CEscBR6G.js} +3 -2
  98. package/dist/{index-oIo5Cful.js → index-CFhazRum.js} +1048 -1047
  99. package/dist/{index-I9lmcd2w.js → index-CH-uRaZH.js} +56 -53
  100. package/dist/{index-VLFerh-X.js → index-CH1MpmvS.js} +11 -11
  101. package/dist/{index-Bunp1bt_.js → index-CRd8uD-d.js} +1 -1
  102. package/dist/{index-DiCgGQoC.js → index-CdQGmMRo.js} +2 -2
  103. package/dist/{index-C-46QHFh.js → index-Cei8qPkg.js} +4 -4
  104. package/dist/{index-BIBcfAw5.js → index-D-Ln1G1Y.js} +1 -1
  105. package/dist/{index-D2TnjKPP.js → index-DGctCMca.js} +2 -2
  106. package/dist/{index-Ptcqv0W6.js → index-DGz2Y25B.js} +2 -2
  107. package/dist/{index-DeqpfWLa.js → index-DMT5xoCz.js} +3 -3
  108. package/dist/{index-cPPWotJe.js → index-DjlmY7Od.js} +5 -5
  109. package/dist/{index.esm2017-DUZpLdEB.js → index.esm2017-BcULj0z4.js} +1 -1
  110. package/dist/{loading-DhpcQgdj.js → loading-DmCJ1FiL.js} +1 -1
  111. package/dist/{lodash-r4AR7GJC.js → lodash-FEhiisF1.js} +1 -1
  112. package/dist/{member-import-CogEef9H.js → member-import-BLxPVKon.js} +22 -13
  113. package/dist/{membership-BQFkjRjs.js → membership-Dq3LSd35.js} +2 -2
  114. package/dist/{money-Ifqd4pyC.js → money-D2RIG9zm.js} +1 -1
  115. package/dist/{number-C9Tw_Ncm.js → number-D87ngEVu.js} +1 -1
  116. package/dist/objectid-CuPXVpKE.js +145 -0
  117. package/dist/{onboarding-D4dm_rxU.js → onboarding-YlSAcar0.js} +20 -20
  118. package/dist/{onboardingSetup-DtNZUoRr.js → onboardingSetup-qgS6ktSi.js} +2 -2
  119. package/dist/{plugins-DGI9Fkiu.js → plugins-B3B_2EiB.js} +3 -3
  120. package/dist/{reward-DTtejZqM.js → reward-BtEe_1ZU.js} +1 -1
  121. package/dist/{rule-C4N3ce3c.js → rule-PmdBF8Cb.js} +10 -10
  122. package/dist/{template-YhWRyNGp.js → template-D6wO9_aV.js} +6 -6
  123. package/dist/{timezone-5rYhX7XZ.js → timezone-DPnmvzUK.js} +1 -1
  124. package/dist/{transaction.fn-Ba_U7HdT.js → transaction.fn-BavSYDYI.js} +2 -2
  125. package/dist/{trigger-B8I1aO6Y.js → trigger-CsIScoNI.js} +5 -5
  126. package/dist/{useMarketingMaterialActions-CTOFHmlL.js → useMarketingMaterialActions-CHBfA7iR.js} +4 -4
  127. package/dist/{usePagination-3wAPVCOp.js → usePagination-DXPBbII4.js} +1 -1
  128. package/dist/{user-Ds4DW_-Y.js → user-B8js0aIx.js} +1 -1
  129. package/dist/{vue-i18n-Bqlt_-jA.js → vue-i18n-R6DAeTzc.js} +193 -193
  130. package/dist/{xlsx-xlOCvuAq.js → xlsx-CYugHPG9.js} +166 -166
  131. package/dist/{zod-GVNjvrpT.js → zod-BEFViLGC.js} +1 -1
  132. package/package.json +1 -1
  133. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DI4XM_rJ.js +0 -1281
  134. package/dist/Setting-DpEI72mW.js +0 -574
  135. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DqlluwMB.js +0 -1319
  136. package/dist/Upselling-Cf24ub-9.js +0 -1055
  137. package/dist/WhatsappBotLogs-DRF8VufQ.js +0 -372
  138. package/dist/index-VyoufKYY.js +0 -74
  139. package/dist/objectid-D7dqM1a3.js +0 -145
@@ -1,21 +1,21 @@
1
- import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as S, unref as _, createElementVNode as I, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as G, watch as ie, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as A, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
2
2
  import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
3
  import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
4
  import { u as pn } from "./app-wDQR6dpb.js";
5
- import { u as mn } from "./business-EP-Do3Ew.js";
6
- import { u as gn, l as _n } from "./feature-flag-HhjvSuDm.js";
7
- import "./index-BkevK_Hp.js";
5
+ import { u as mn } from "./business-Dv2S3X12.js";
6
+ import { u as gn, l as _n } from "./feature-flag-DdxBiP1p.js";
7
+ import "./index-2JiR1s6M.js";
8
8
  import { components as W, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-Bqlt_-jA.js";
10
- import { m as yn } from "./index-C3MK8Twg.js";
11
- import { C as Xe } from "./timezone-5rYhX7XZ.js";
12
- import { u as wn } from "./onboarding-D4dm_rxU.js";
13
- import { R as f, A as Tn, a as Qe } from "./app-BQeODViN.js";
14
- import { J as kn } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as bn, g as kt, i as En, a as Sn, _ as Ze, C as et, b as Rn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Pn, j as Cn, k as Et, l as w, m as Nn, F as Ve, n as On, q as oe, o as Ln, p as Mn, s as Un, t as Dn, u as xn } from "./index.esm2017-DUZpLdEB.js";
9
+ import { u as Tt } from "./vue-i18n-R6DAeTzc.js";
10
+ import { m as yn } from "./index-373LDTQ7.js";
11
+ import { C as Xe } from "./timezone-DPnmvzUK.js";
12
+ import { u as wn } from "./onboarding-YlSAcar0.js";
13
+ import { R as f, g as Tn, A as kn, a as Qe } from "./app-Bik4hlr7.js";
14
+ import { J as En } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as bn, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as An, S as se, c as P, d as X, E as Fe, e as Pn, f as Et, h as Cn, j as Nn, k as bt, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-BcULj0z4.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
17
- import { S as tt, c as Fn } from "./index-cPPWotJe.js";
18
- const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Hn = /* @__PURE__ */ xe({
17
+ import { S as tt, c as Vn } from "./index-DjlmY7Od.js";
18
+ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Wn = /* @__PURE__ */ xe({
19
19
  __name: "NavigationTab",
20
20
  setup(n) {
21
21
  const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
@@ -23,10 +23,7 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
23
23
  label: e("connect.navigation.analytic"),
24
24
  value: f["$connect-ANALYTIC"]
25
25
  },
26
- {
27
- label: e("connect.navigation.upselling"),
28
- value: f["$connect-UPSELLING"]
29
- },
26
+ { label: "Upselling", value: f["$connect-UPSELLING"] },
30
27
  {
31
28
  label: e("connect.navigation.campaign"),
32
29
  value: f["$connect-CAMPAIGN"],
@@ -152,69 +149,69 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
152
149
  label: e("connect.navigation.bin"),
153
150
  value: f["$connect-BIN"]
154
151
  }
155
- ], c = Y(
152
+ ], c = G(
156
153
  () => o.filter(
157
- (h) => (h.value !== f["$connect-WHATSAPP"] || r() === "on") && (h.value !== f["$connect-UPSELLING"] || m.namespace.value === "dev" && m.currentCountry.value === "MY")
154
+ (p) => (p.value !== f["$connect-WHATSAPP"] || r() === "on") && (p.value !== f["$connect-UPSELLING"] || Tn() !== void 0)
158
155
  )
159
- ), a = yt(), l = wt(), d = o.reduce((h, p) => [...(p.children ?? []).map((g) => g.value), ...h, p.value], []), m = ge(), y = Y(() => {
160
- const h = m.currentCountry.value || "MY";
161
- return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
156
+ ), a = yt(), l = wt(), d = o.reduce((p, w) => [...(w.children ?? []).map((h) => h.value), ...p, w.value], []), m = ge(), v = G(() => {
157
+ const p = m.currentCountry.value || "MY";
158
+ return console.log(`[MF] Timezone set to: ${Xe[p]}`), Xe[p];
162
159
  });
163
160
  ie(
164
161
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
165
162
  // whose identity never changes, so watching it directly fired once via
166
163
  // `immediate` and the highlight then stayed on whatever page loaded first.
167
164
  () => l.matched,
168
- (h) => {
169
- const g = h.map((v) => v.name).reverse().find((v) => d.includes(v));
170
- g && (s.value = g);
165
+ (p) => {
166
+ const h = p.map((_) => _.name).reverse().find((_) => d.includes(_));
167
+ h && (s.value = h);
171
168
  },
172
169
  { immediate: !0 }
173
170
  ), ie(
174
171
  [() => {
175
- var h;
176
- return (h = m.currentBusiness.value) == null ? void 0 : h._id;
172
+ var p;
173
+ return (p = m.currentBusiness.value) == null ? void 0 : p._id;
177
174
  }, () => l.name, t],
178
- ([h]) => {
179
- h && i.read(t.value, h);
175
+ ([p]) => {
176
+ p && i.read(t.value, p);
180
177
  },
181
178
  { immediate: !0 }
182
179
  );
183
- async function T(h) {
184
- await a.push({ name: h });
180
+ async function y(p) {
181
+ await a.push({ name: p });
185
182
  }
186
- return (h, p) => {
187
- var v;
188
- const g = ee("FmCollapsibleTabs");
189
- return j(), me("div", Vn, [
190
- S(g, {
183
+ return (p, w) => {
184
+ var _;
185
+ const h = ee("FmCollapsibleTabs");
186
+ return j(), me("div", $n, [
187
+ R(h, {
191
188
  class: "border-fm-color-neutral-gray-100 border-r px-4",
192
- "model-value": (v = _(s)) == null ? void 0 : v.toString(),
193
- items: _(c),
194
- "onUpdate:modelValue": T
189
+ "model-value": (_ = g(s)) == null ? void 0 : _.toString(),
190
+ items: g(c),
191
+ "onUpdate:modelValue": y
195
192
  }, null, 8, ["model-value", "items"]),
196
- I("div", $n, [
197
- I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
198
- I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
193
+ I("div", Hn, [
194
+ I("div", null, "Timezone: " + A(g(v).split("/")[1].replace("_", " ")), 1),
195
+ I("div", null, "(UTC" + A(g(yn).tz(g(v)).format("Z")) + ")", 1)
199
196
  ])
200
197
  ]);
201
198
  };
202
199
  }
203
200
  }), St = "feedme_connect_marketing_promo_hidden";
204
- function Wn() {
201
+ function jn() {
205
202
  try {
206
203
  return localStorage.getItem(St) !== null;
207
204
  } catch {
208
205
  return !1;
209
206
  }
210
207
  }
211
- function jn() {
208
+ function Gn() {
212
209
  try {
213
210
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
214
211
  } catch {
215
212
  }
216
213
  }
217
- const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, zn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, qn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Kn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Jn = { class: "flex flex-col gap-24 pb-8" }, Yn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Xn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Qn = { class: "fm-typo-en-body-lg-600" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ei = { class: "shrink-0" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ni = { class: "flex w-full flex-col gap-12 px-[16px]" }, ii = { class: "flex flex-wrap items-center gap-12" }, ri = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, si = /* @__PURE__ */ xe({
214
+ const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
218
215
  __name: "AiMarketingPromoDialog",
219
216
  setup(n) {
220
217
  let e = !1;
@@ -222,116 +219,116 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
222
219
  { key: "completeContent", icon: "layers" },
223
220
  { key: "realContext", icon: "storefront" },
224
221
  { key: "socialFormat", icon: "aspect_ratio" }
225
- ], a = Y(() => {
226
- var h;
227
- const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
228
- return Tn(
222
+ ], a = G(() => {
223
+ var p;
224
+ const y = ((p = r.value) == null ? void 0 : p.permissions) ?? [];
225
+ return kn(
229
226
  [
230
227
  {
231
228
  action: Qe.Action.manage,
232
229
  subject: Qe.Subject.Business.crm_marketingMaterial
233
230
  }
234
231
  ],
235
- T
232
+ y
236
233
  ).granted;
237
- }), l = Y(
234
+ }), l = G(
238
235
  () => s.value === "MY" && a.value
239
236
  );
240
237
  let d = !1;
241
238
  ie(
242
239
  l,
243
- (T) => {
244
- d || !T || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
240
+ (y) => {
241
+ d || !y || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
245
242
  },
246
243
  { immediate: !0 }
247
244
  );
248
245
  async function m() {
249
246
  o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
250
247
  }
251
- function y() {
252
- jn(), o.value = !1;
248
+ function v() {
249
+ Gn(), o.value = !1;
253
250
  }
254
- return (T, h) => {
255
- const p = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
256
- return j(), Oe(M, {
251
+ return (y, p) => {
252
+ const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), E = ee("FmDialog");
253
+ return j(), Oe(E, {
257
254
  modelValue: o.value,
258
- "onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
255
+ "onUpdate:modelValue": p[0] || (p[0] = (T) => o.value = T),
259
256
  "min-width": "min(500px, calc(100% - 48px))",
260
257
  "max-width": "min(860px, calc(100% - 48px))",
261
258
  "max-height": "90vh",
262
259
  "dismiss-away": ""
263
260
  }, {
264
261
  "dialog-header": Z(() => [
265
- I("div", Gn, [
266
- I("div", Bn, [
267
- S(p, {
262
+ I("div", Bn, [
263
+ I("div", zn, [
264
+ R(w, {
268
265
  name: "auto_awesome",
269
266
  size: "sm",
270
267
  color: "primary"
271
268
  }),
272
- I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
269
+ I("span", qn, A(g(t)("connect.marketing.whatsNew.badge")), 1)
273
270
  ]),
274
- I("h1", qn, R(_(t)("connect.marketing.whatsNew.title")), 1),
275
- I("p", Kn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
271
+ I("h1", Kn, A(g(t)("connect.marketing.whatsNew.title")), 1),
272
+ I("p", Jn, A(g(t)("connect.marketing.whatsNew.subtitle")), 1)
276
273
  ])
277
274
  ]),
278
275
  "dialog-footer": Z(() => [
279
- I("div", ni, [
280
- I("div", ii, [
281
- S(v, {
276
+ I("div", ii, [
277
+ I("div", ri, [
278
+ R(_, {
282
279
  variant: "primary",
283
280
  size: "lg",
284
- label: _(t)("connect.marketing.whatsNew.cta"),
281
+ label: g(t)("connect.marketing.whatsNew.cta"),
285
282
  "append-icon": "arrow_forward",
286
283
  onClick: m
287
284
  }, null, 8, ["label"]),
288
- S(v, {
285
+ R(_, {
289
286
  variant: "tertiary",
290
287
  size: "lg",
291
- label: _(t)("connect.marketing.whatsNew.dismiss"),
292
- onClick: y
288
+ label: g(t)("connect.marketing.whatsNew.dismiss"),
289
+ onClick: v
293
290
  }, null, 8, ["label"])
294
291
  ]),
295
- I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
292
+ I("div", si, A(g(t)("connect.marketing.whatsNew.footnote")), 1)
296
293
  ])
297
294
  ]),
298
295
  default: Z(() => [
299
- I("div", Jn, [
300
- I("div", Yn, [
301
- (j(), me(It, null, ln(c, (k) => S(g, {
302
- key: k.key,
296
+ I("div", Yn, [
297
+ I("div", Xn, [
298
+ (j(), me(It, null, ln(c, (T) => R(h, {
299
+ key: T.key,
303
300
  variant: "outlined",
304
301
  class: "!h-full flex flex-col gap-8 p-16"
305
302
  }, {
306
303
  default: Z(() => [
307
- I("div", Xn, [
308
- S(p, {
309
- name: k.icon,
304
+ I("div", Qn, [
305
+ R(w, {
306
+ name: T.icon,
310
307
  size: "md",
311
308
  color: "primary"
312
309
  }, null, 8, ["name"])
313
310
  ]),
314
- I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
315
- I("div", Zn, R(_(t)(
316
- `connect.marketing.whatsNew.benefits.${k.key}.description`
311
+ I("div", Zn, A(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
312
+ I("div", ei, A(g(t)(
313
+ `connect.marketing.whatsNew.benefits.${T.key}.description`
317
314
  )), 1)
318
315
  ]),
319
316
  _: 2
320
317
  }, 1024)), 64))
321
318
  ]),
322
- S(g, {
319
+ R(h, {
323
320
  variant: "outlined",
324
321
  class: "flex items-start gap-12 p-16"
325
322
  }, {
326
323
  default: Z(() => [
327
- I("div", ei, [
328
- S(p, {
324
+ I("div", ti, [
325
+ R(w, {
329
326
  name: "lightbulb",
330
327
  size: "md",
331
328
  color: "primary"
332
329
  })
333
330
  ]),
334
- I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
331
+ I("p", ni, A(g(t)("connect.marketing.whatsNew.callout")), 1)
335
332
  ]),
336
333
  _: 1
337
334
  })
@@ -342,7 +339,7 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
342
339
  };
343
340
  }
344
341
  });
345
- var oi = "firebase", ai = "10.12.4";
342
+ var ai = "firebase", ci = "10.12.4";
346
343
  /**
347
344
  * @license
348
345
  * Copyright 2020 Google LLC
@@ -359,13 +356,13 @@ var oi = "firebase", ai = "10.12.4";
359
356
  * See the License for the specific language governing permissions and
360
357
  * limitations under the License.
361
358
  */
362
- Le(oi, ai, "app");
359
+ Le(ai, ci, "app");
363
360
  function Rt() {
364
361
  return {
365
362
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
366
363
  };
367
364
  }
368
- const ci = Rt, At = new Fe("auth", "Firebase", Rt());
365
+ const li = Rt, At = new Fe("auth", "Firebase", Rt());
369
366
  /**
370
367
  * @license
371
368
  * Copyright 2020 Google LLC
@@ -383,11 +380,11 @@ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
383
380
  * limitations under the License.
384
381
  */
385
382
  const _e = new bn("@firebase/auth");
386
- function li(n, ...e) {
387
- _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
383
+ function ui(n, ...e) {
384
+ _e.logLevel <= bt.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
388
385
  }
389
386
  function de(n, ...e) {
390
- _e.logLevel <= Et.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
387
+ _e.logLevel <= bt.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
391
388
  }
392
389
  /**
393
390
  * @license
@@ -405,14 +402,14 @@ function de(n, ...e) {
405
402
  * See the License for the specific language governing permissions and
406
403
  * limitations under the License.
407
404
  */
408
- function O(n, ...e) {
405
+ function L(n, ...e) {
409
406
  throw He(n, ...e);
410
407
  }
411
408
  function b(n, ...e) {
412
409
  return He(n, ...e);
413
410
  }
414
411
  function Pt(n, e, t) {
415
- const i = Object.assign(Object.assign({}, ci()), { [e]: t });
412
+ const i = Object.assign(Object.assign({}, li()), { [e]: t });
416
413
  return new Fe("auth", "Firebase", i).create(e, {
417
414
  appName: n.name
418
415
  });
@@ -431,12 +428,12 @@ function u(n, e, ...t) {
431
428
  if (!n)
432
429
  throw He(e, ...t);
433
430
  }
434
- function P(n) {
431
+ function C(n) {
435
432
  const e = "INTERNAL ASSERTION FAILED: " + n;
436
433
  throw de(e), new Error(e);
437
434
  }
438
- function L(n, e) {
439
- n || P(e);
435
+ function M(n, e) {
436
+ n || C(e);
440
437
  }
441
438
  /**
442
439
  * @license
@@ -458,7 +455,7 @@ function Me() {
458
455
  var n;
459
456
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
460
457
  }
461
- function ui() {
458
+ function di() {
462
459
  return nt() === "http:" || nt() === "https:";
463
460
  }
464
461
  function nt() {
@@ -481,15 +478,15 @@ function nt() {
481
478
  * See the License for the specific language governing permissions and
482
479
  * limitations under the License.
483
480
  */
484
- function di() {
481
+ function hi() {
485
482
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
486
483
  // This is especially true for Cordova apps which have unreliable
487
484
  // navigator.onLine behavior unless cordova-plugin-network-information is
488
485
  // installed which overwrites the native navigator.onLine value and
489
486
  // defines navigator.connection.
490
- (ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
487
+ (di() || An() || "connection" in navigator) ? navigator.onLine : !0;
491
488
  }
492
- function hi() {
489
+ function fi() {
493
490
  if (typeof navigator > "u")
494
491
  return null;
495
492
  const n = navigator;
@@ -519,10 +516,10 @@ function hi() {
519
516
  */
520
517
  class ae {
521
518
  constructor(e, t) {
522
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
519
+ this.shortDelay = e, this.longDelay = t, M(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
523
520
  }
524
521
  get() {
525
- return di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
522
+ return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
526
523
  }
527
524
  }
528
525
  /**
@@ -542,7 +539,7 @@ class ae {
542
539
  * limitations under the License.
543
540
  */
544
541
  function We(n, e) {
545
- L(n.emulator, "Emulator should always be set here");
542
+ M(n.emulator, "Emulator should always be set here");
546
543
  const { url: t } = n.emulator;
547
544
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
548
545
  }
@@ -575,7 +572,7 @@ class Ct {
575
572
  return globalThis.fetch;
576
573
  if (typeof fetch < "u")
577
574
  return fetch;
578
- P("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
575
+ C("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
579
576
  }
580
577
  static headers() {
581
578
  if (this.headersImpl)
@@ -586,7 +583,7 @@ class Ct {
586
583
  return globalThis.Headers;
587
584
  if (typeof Headers < "u")
588
585
  return Headers;
589
- P("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
586
+ C("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
590
587
  }
591
588
  static response() {
592
589
  if (this.responseImpl)
@@ -597,7 +594,7 @@ class Ct {
597
594
  return globalThis.Response;
598
595
  if (typeof Response < "u")
599
596
  return Response;
600
- P("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
597
+ C("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
601
598
  }
602
599
  }
603
600
  /**
@@ -616,7 +613,7 @@ class Ct {
616
613
  * See the License for the specific language governing permissions and
617
614
  * limitations under the License.
618
615
  */
619
- const fi = {
616
+ const pi = {
620
617
  // Custom token errors.
621
618
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
622
619
  // This can only happen if the SDK sends a bad request.
@@ -707,7 +704,7 @@ const fi = {
707
704
  * See the License for the specific language governing permissions and
708
705
  * limitations under the License.
709
706
  */
710
- const pi = new ae(3e4, 6e4);
707
+ const mi = new ae(3e4, 6e4);
711
708
  function Te(n, e) {
712
709
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
713
710
  }
@@ -733,9 +730,9 @@ async function Q(n, e, t, i, r = {}) {
733
730
  }
734
731
  async function Nt(n, e, t) {
735
732
  n._canInitEmulator = !1;
736
- const i = Object.assign(Object.assign({}, fi), e);
733
+ const i = Object.assign(Object.assign({}, pi), e);
737
734
  try {
738
- const r = new mi(n), s = await Promise.race([
735
+ const r = new gi(n), s = await Promise.race([
739
736
  t(),
740
737
  r.promise
741
738
  ]);
@@ -756,17 +753,17 @@ async function Nt(n, e, t) {
756
753
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
757
754
  if (l)
758
755
  throw Pt(n, d, l);
759
- O(n, d);
756
+ L(n, d);
760
757
  }
761
758
  } catch (r) {
762
759
  if (r instanceof Ve)
763
760
  throw r;
764
- O(n, "network-request-failed", { message: String(r) });
761
+ L(n, "network-request-failed", { message: String(r) });
765
762
  }
766
763
  }
767
764
  async function Ot(n, e, t, i, r = {}) {
768
765
  const s = await Q(n, e, t, i, r);
769
- return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
766
+ return "mfaPendingCredential" in s && L(n, "multi-factor-auth-required", {
770
767
  _serverResponse: s
771
768
  }), s;
772
769
  }
@@ -774,14 +771,14 @@ function Lt(n, e, t, i) {
774
771
  const r = `${e}${t}?${i}`;
775
772
  return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
776
773
  }
777
- class mi {
774
+ class gi {
778
775
  constructor(e) {
779
776
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
780
777
  this.timer = setTimeout(() => i(b(
781
778
  this.auth,
782
779
  "network-request-failed"
783
780
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
784
- )), pi.get());
781
+ )), mi.get());
785
782
  });
786
783
  }
787
784
  clearNetworkTimeout() {
@@ -812,7 +809,7 @@ function ue(n, e, t) {
812
809
  * See the License for the specific language governing permissions and
813
810
  * limitations under the License.
814
811
  */
815
- async function gi(n, e) {
812
+ async function _i(n, e) {
816
813
  return Q(n, "POST", "/v1/accounts:delete", e);
817
814
  }
818
815
  async function Mt(n, e) {
@@ -843,7 +840,7 @@ function ne(n) {
843
840
  } catch {
844
841
  }
845
842
  }
846
- async function _i(n, e = !1) {
843
+ async function vi(n, e = !1) {
847
844
  const t = X(n), i = await t.getIdToken(e), r = je(i);
848
845
  u(
849
846
  r && r.exp && r.auth_time && r.iat,
@@ -870,7 +867,7 @@ function je(n) {
870
867
  if (e === void 0 || t === void 0 || i === void 0)
871
868
  return de("JWT malformed, contained fewer than 3 sections"), null;
872
869
  try {
873
- const r = On(t);
870
+ const r = Ln(t);
874
871
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
875
872
  } catch (r) {
876
873
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
@@ -914,10 +911,10 @@ async function re(n, e, t = !1) {
914
911
  try {
915
912
  return await e;
916
913
  } catch (i) {
917
- throw i instanceof Ve && vi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
914
+ throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
918
915
  }
919
916
  }
920
- function vi({ code: n }) {
917
+ function Ii({ code: n }) {
921
918
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
922
919
  }
923
920
  /**
@@ -936,7 +933,7 @@ function vi({ code: n }) {
936
933
  * See the License for the specific language governing permissions and
937
934
  * limitations under the License.
938
935
  */
939
- class Ii {
936
+ class yi {
940
937
  constructor(e) {
941
938
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
942
939
  }
@@ -1042,7 +1039,7 @@ async function ve(n) {
1042
1039
  );
1043
1040
  const s = r.users[0];
1044
1041
  n._notifyReloadListener(s);
1045
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = wi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1042
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ti(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1046
1043
  uid: s.localId,
1047
1044
  displayName: s.displayName || null,
1048
1045
  photoURL: s.photoUrl || null,
@@ -1056,11 +1053,11 @@ async function ve(n) {
1056
1053
  };
1057
1054
  Object.assign(n, m);
1058
1055
  }
1059
- async function yi(n) {
1056
+ async function wi(n) {
1060
1057
  const e = X(n);
1061
1058
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1062
1059
  }
1063
- function wi(n, e) {
1060
+ function Ti(n, e) {
1064
1061
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1065
1062
  }
1066
1063
  function Ut(n) {
@@ -1092,7 +1089,7 @@ function Ut(n) {
1092
1089
  * See the License for the specific language governing permissions and
1093
1090
  * limitations under the License.
1094
1091
  */
1095
- async function Ti(n, e) {
1092
+ async function ki(n, e) {
1096
1093
  const t = await Nt(n, {}, async () => {
1097
1094
  const i = oe({
1098
1095
  grant_type: "refresh_token",
@@ -1113,7 +1110,7 @@ async function Ti(n, e) {
1113
1110
  refreshToken: t.refresh_token
1114
1111
  };
1115
1112
  }
1116
- async function ki(n, e) {
1113
+ async function Ei(n, e) {
1117
1114
  return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1118
1115
  }
1119
1116
  /**
@@ -1132,7 +1129,7 @@ async function ki(n, e) {
1132
1129
  * See the License for the specific language governing permissions and
1133
1130
  * limitations under the License.
1134
1131
  */
1135
- class q {
1132
+ class K {
1136
1133
  constructor() {
1137
1134
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
1138
1135
  }
@@ -1177,14 +1174,14 @@ class q {
1177
1174
  this.refreshToken = null;
1178
1175
  }
1179
1176
  async refresh(e, t) {
1180
- const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
1177
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1181
1178
  this.updateTokensAndExpiration(i, r, Number(s));
1182
1179
  }
1183
1180
  updateTokensAndExpiration(e, t, i) {
1184
1181
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
1185
1182
  }
1186
1183
  static fromJSON(e, t) {
1187
- const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new q();
1184
+ const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new K();
1188
1185
  return i && (u(typeof i == "string", "internal-error", {
1189
1186
  appName: e
1190
1187
  }), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
@@ -1204,10 +1201,10 @@ class q {
1204
1201
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
1205
1202
  }
1206
1203
  _clone() {
1207
- return Object.assign(new q(), this.toJSON());
1204
+ return Object.assign(new K(), this.toJSON());
1208
1205
  }
1209
1206
  _performRefresh() {
1210
- return P("not implemented");
1207
+ return C("not implemented");
1211
1208
  }
1212
1209
  }
1213
1210
  /**
@@ -1229,10 +1226,10 @@ class q {
1229
1226
  function D(n, e) {
1230
1227
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1231
1228
  }
1232
- class C {
1229
+ class N {
1233
1230
  constructor(e) {
1234
1231
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1235
- this.providerId = "firebase", this.proactiveRefresh = new Ii(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1232
+ this.providerId = "firebase", this.proactiveRefresh = new yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1236
1233
  }
1237
1234
  async getIdToken(e) {
1238
1235
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1244,10 +1241,10 @@ class C {
1244
1241
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1245
1242
  }
1246
1243
  getIdTokenResult(e) {
1247
- return _i(this, e);
1244
+ return vi(this, e);
1248
1245
  }
1249
1246
  reload() {
1250
- return yi(this);
1247
+ return wi(this);
1251
1248
  }
1252
1249
  _assign(e) {
1253
1250
  this !== e && (u(
@@ -1258,7 +1255,7 @@ class C {
1258
1255
  ), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((t) => Object.assign({}, t)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
1259
1256
  }
1260
1257
  _clone(e) {
1261
- const t = new C(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1258
+ const t = new N(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1262
1259
  return t.metadata._copy(this.metadata), t;
1263
1260
  }
1264
1261
  _onReload(e) {
@@ -1283,10 +1280,10 @@ class C {
1283
1280
  e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await ve(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
1284
1281
  }
1285
1282
  async delete() {
1286
- if (A(this.auth.app))
1283
+ if (P(this.auth.app))
1287
1284
  return Promise.reject(H(this.auth));
1288
1285
  const e = await this.getIdToken();
1289
- return await re(this, gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1286
+ return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1290
1287
  }
1291
1288
  toJSON() {
1292
1289
  return Object.assign(Object.assign({
@@ -1314,20 +1311,20 @@ class C {
1314
1311
  }
1315
1312
  static _fromJSON(e, t) {
1316
1313
  var i, r, s, o, c, a, l, d;
1317
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, p = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1314
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, p = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, E = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1318
1315
  u(
1319
- k && Ye,
1316
+ T && Ye,
1320
1317
  e,
1321
1318
  "internal-error"
1322
1319
  /* AuthErrorCode.INTERNAL_ERROR */
1323
1320
  );
1324
- const on = q.fromJSON(this.name, Ye);
1321
+ const on = K.fromJSON(this.name, Ye);
1325
1322
  u(
1326
- typeof k == "string",
1323
+ typeof T == "string",
1327
1324
  e,
1328
1325
  "internal-error"
1329
1326
  /* AuthErrorCode.INTERNAL_ERROR */
1330
- ), D(m, e.name), D(y, e.name), u(
1327
+ ), D(m, e.name), D(v, e.name), u(
1331
1328
  typeof Ke == "boolean",
1332
1329
  e,
1333
1330
  "internal-error"
@@ -1337,22 +1334,22 @@ class C {
1337
1334
  e,
1338
1335
  "internal-error"
1339
1336
  /* AuthErrorCode.INTERNAL_ERROR */
1340
- ), D(T, e.name), D(h, e.name), D(p, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
1341
- const Ae = new C({
1342
- uid: k,
1337
+ ), D(y, e.name), D(p, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(E, e.name);
1338
+ const Ae = new N({
1339
+ uid: T,
1343
1340
  auth: e,
1344
- email: y,
1341
+ email: v,
1345
1342
  emailVerified: Ke,
1346
1343
  displayName: m,
1347
1344
  isAnonymous: Je,
1348
- photoURL: h,
1349
- phoneNumber: T,
1350
- tenantId: p,
1345
+ photoURL: p,
1346
+ phoneNumber: y,
1347
+ tenantId: w,
1351
1348
  stsTokenManager: on,
1352
- createdAt: v,
1353
- lastLoginAt: M
1349
+ createdAt: _,
1350
+ lastLoginAt: E
1354
1351
  });
1355
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
1352
+ return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), h && (Ae._redirectEventId = h), Ae;
1356
1353
  }
1357
1354
  /**
1358
1355
  * Initialize a User from an idToken server response
@@ -1360,9 +1357,9 @@ class C {
1360
1357
  * @param idTokenResponse
1361
1358
  */
1362
1359
  static async _fromIdTokenResponse(e, t, i = !1) {
1363
- const r = new q();
1360
+ const r = new K();
1364
1361
  r.updateFromServerResponse(t);
1365
- const s = new C({
1362
+ const s = new N({
1366
1363
  uid: t.localId,
1367
1364
  auth: e,
1368
1365
  stsTokenManager: r,
@@ -1382,9 +1379,9 @@ class C {
1382
1379
  "internal-error"
1383
1380
  /* AuthErrorCode.INTERNAL_ERROR */
1384
1381
  );
1385
- const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new q();
1382
+ const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new K();
1386
1383
  c.updateFromIdToken(i);
1387
- const a = new C({
1384
+ const a = new N({
1388
1385
  uid: r.localId,
1389
1386
  auth: e,
1390
1387
  stsTokenManager: c,
@@ -1421,10 +1418,10 @@ class C {
1421
1418
  * limitations under the License.
1422
1419
  */
1423
1420
  const rt = /* @__PURE__ */ new Map();
1424
- function N(n) {
1425
- L(n instanceof Function, "Expected a class definition");
1421
+ function O(n) {
1422
+ M(n instanceof Function, "Expected a class definition");
1426
1423
  let e = rt.get(n);
1427
- return e ? (L(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1424
+ return e ? (M(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1428
1425
  }
1429
1426
  /**
1430
1427
  * @license
@@ -1485,7 +1482,7 @@ const st = Dt;
1485
1482
  function he(n, e, t) {
1486
1483
  return `firebase:${n}:${e}:${t}`;
1487
1484
  }
1488
- class K {
1485
+ class J {
1489
1486
  constructor(e, t, i) {
1490
1487
  this.persistence = e, this.auth = t, this.userKey = i;
1491
1488
  const { config: r, name: s } = this.auth;
@@ -1496,7 +1493,7 @@ class K {
1496
1493
  }
1497
1494
  async getCurrentUser() {
1498
1495
  const e = await this.persistence._get(this.fullUserKey);
1499
- return e ? C._fromJSON(this.auth, e) : null;
1496
+ return e ? N._fromJSON(this.auth, e) : null;
1500
1497
  }
1501
1498
  removeCurrentUser() {
1502
1499
  return this.persistence._remove(this.fullUserKey);
@@ -1516,32 +1513,32 @@ class K {
1516
1513
  }
1517
1514
  static async create(e, t, i = "authUser") {
1518
1515
  if (!t.length)
1519
- return new K(N(st), e, i);
1516
+ return new J(O(st), e, i);
1520
1517
  const r = (await Promise.all(t.map(async (l) => {
1521
1518
  if (await l._isAvailable())
1522
1519
  return l;
1523
1520
  }))).filter((l) => l);
1524
- let s = r[0] || N(st);
1521
+ let s = r[0] || O(st);
1525
1522
  const o = he(i, e.config.apiKey, e.name);
1526
1523
  let c = null;
1527
1524
  for (const l of t)
1528
1525
  try {
1529
1526
  const d = await l._get(o);
1530
1527
  if (d) {
1531
- const m = C._fromJSON(e, d);
1528
+ const m = N._fromJSON(e, d);
1532
1529
  l !== s && (c = m), s = l;
1533
1530
  break;
1534
1531
  }
1535
1532
  } catch {
1536
1533
  }
1537
1534
  const a = r.filter((l) => l._shouldAllowMigration);
1538
- return !s._shouldAllowMigration || !a.length ? new K(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1535
+ return !s._shouldAllowMigration || !a.length ? new J(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1539
1536
  if (l !== s)
1540
1537
  try {
1541
1538
  await l._remove(o);
1542
1539
  } catch {
1543
1540
  }
1544
- })), new K(s, e, i));
1541
+ })), new J(s, e, i));
1545
1542
  }
1546
1543
  }
1547
1544
  /**
@@ -1591,42 +1588,42 @@ function ot(n) {
1591
1588
  }
1592
1589
  return "Other";
1593
1590
  }
1594
- function xt(n = w()) {
1591
+ function xt(n = k()) {
1595
1592
  return /firefox\//i.test(n);
1596
1593
  }
1597
- function Ge(n = w()) {
1594
+ function Ge(n = k()) {
1598
1595
  const e = n.toLowerCase();
1599
1596
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1600
1597
  }
1601
- function Ft(n = w()) {
1598
+ function Ft(n = k()) {
1602
1599
  return /crios\//i.test(n);
1603
1600
  }
1604
- function Vt(n = w()) {
1601
+ function Vt(n = k()) {
1605
1602
  return /iemobile/i.test(n);
1606
1603
  }
1607
- function $t(n = w()) {
1604
+ function $t(n = k()) {
1608
1605
  return /android/i.test(n);
1609
1606
  }
1610
- function Ht(n = w()) {
1607
+ function Ht(n = k()) {
1611
1608
  return /blackberry/i.test(n);
1612
1609
  }
1613
- function Wt(n = w()) {
1610
+ function Wt(n = k()) {
1614
1611
  return /webos/i.test(n);
1615
1612
  }
1616
- function ke(n = w()) {
1613
+ function ke(n = k()) {
1617
1614
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1618
1615
  }
1619
- function bi(n = w()) {
1616
+ function bi(n = k()) {
1620
1617
  var e;
1621
1618
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1622
1619
  }
1623
- function Ei() {
1624
- return Ln() && document.documentMode === 10;
1620
+ function Si() {
1621
+ return Mn() && document.documentMode === 10;
1625
1622
  }
1626
- function jt(n = w()) {
1623
+ function jt(n = k()) {
1627
1624
  return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1628
1625
  }
1629
- function Si() {
1626
+ function Ri() {
1630
1627
  try {
1631
1628
  return !!(window && window !== window.top);
1632
1629
  } catch {
@@ -1653,10 +1650,10 @@ function Gt(n, e = []) {
1653
1650
  let t;
1654
1651
  switch (n) {
1655
1652
  case "Browser":
1656
- t = ot(w());
1653
+ t = ot(k());
1657
1654
  break;
1658
1655
  case "Worker":
1659
- t = `${ot(w())}-${n}`;
1656
+ t = `${ot(k())}-${n}`;
1660
1657
  break;
1661
1658
  default:
1662
1659
  t = n;
@@ -1680,7 +1677,7 @@ function Gt(n, e = []) {
1680
1677
  * See the License for the specific language governing permissions and
1681
1678
  * limitations under the License.
1682
1679
  */
1683
- class Ri {
1680
+ class Ai {
1684
1681
  constructor(e) {
1685
1682
  this.auth = e, this.queue = [];
1686
1683
  }
@@ -1735,7 +1732,7 @@ class Ri {
1735
1732
  * See the License for the specific language governing permissions and
1736
1733
  * limitations under the License.
1737
1734
  */
1738
- async function Ai(n, e = {}) {
1735
+ async function Pi(n, e = {}) {
1739
1736
  return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
1740
1737
  }
1741
1738
  /**
@@ -1754,12 +1751,12 @@ async function Ai(n, e = {}) {
1754
1751
  * See the License for the specific language governing permissions and
1755
1752
  * limitations under the License.
1756
1753
  */
1757
- const Pi = 6;
1758
- class Ci {
1754
+ const Ci = 6;
1755
+ class Ni {
1759
1756
  constructor(e) {
1760
1757
  var t, i, r, s;
1761
1758
  const o = e.customStrengthOptions;
1762
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Pi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1759
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ci, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1763
1760
  }
1764
1761
  validatePassword(e) {
1765
1762
  var t, i, r, s, o, c;
@@ -1842,14 +1839,14 @@ class Ci {
1842
1839
  * See the License for the specific language governing permissions and
1843
1840
  * limitations under the License.
1844
1841
  */
1845
- class Ni {
1842
+ class Oi {
1846
1843
  constructor(e, t, i, r) {
1847
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ri(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1844
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ai(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1848
1845
  }
1849
1846
  _initializeWithPersistence(e, t) {
1850
- return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
1847
+ return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
1851
1848
  var i, r;
1852
- if (!this._deleted && (this.persistenceManager = await K.create(this, e), !this._deleted)) {
1849
+ if (!this._deleted && (this.persistenceManager = await J.create(this, e), !this._deleted)) {
1853
1850
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
1854
1851
  try {
1855
1852
  await this._popupRedirectResolver._initialize(this);
@@ -1880,7 +1877,7 @@ class Ni {
1880
1877
  }
1881
1878
  async initializeCurrentUserFromIdToken(e) {
1882
1879
  try {
1883
- const t = await Mt(this, { idToken: e }), i = await C._fromGetAccountInfoResponse(this, t, e);
1880
+ const t = await Mt(this, { idToken: e }), i = await N._fromGetAccountInfoResponse(this, t, e);
1884
1881
  await this.directlySetCurrentUser(i);
1885
1882
  } catch (t) {
1886
1883
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -1888,7 +1885,7 @@ class Ni {
1888
1885
  }
1889
1886
  async initializeCurrentUser(e) {
1890
1887
  var t;
1891
- if (A(this.app)) {
1888
+ if (P(this.app)) {
1892
1889
  const o = this.app.settings.authIdToken;
1893
1890
  return o ? new Promise((c) => {
1894
1891
  setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
@@ -1938,13 +1935,13 @@ class Ni {
1938
1935
  return this.directlySetCurrentUser(e);
1939
1936
  }
1940
1937
  useDeviceLanguage() {
1941
- this.languageCode = hi();
1938
+ this.languageCode = fi();
1942
1939
  }
1943
1940
  async _delete() {
1944
1941
  this._deleted = !0;
1945
1942
  }
1946
1943
  async updateCurrentUser(e) {
1947
- if (A(this.app))
1944
+ if (P(this.app))
1948
1945
  return Promise.reject(H(this));
1949
1946
  const t = e ? X(e) : null;
1950
1947
  return t && u(
@@ -1966,15 +1963,15 @@ class Ni {
1966
1963
  });
1967
1964
  }
1968
1965
  async signOut() {
1969
- return A(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1966
+ return P(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1970
1967
  null,
1971
1968
  /* skipBeforeStateCallbacks */
1972
1969
  !0
1973
1970
  ));
1974
1971
  }
1975
1972
  setPersistence(e) {
1976
- return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1977
- await this.assertedPersistence.setPersistence(N(e));
1973
+ return P(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1974
+ await this.assertedPersistence.setPersistence(O(e));
1978
1975
  });
1979
1976
  }
1980
1977
  _getRecaptchaConfig() {
@@ -1989,7 +1986,7 @@ class Ni {
1989
1986
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1990
1987
  }
1991
1988
  async _updatePasswordPolicy() {
1992
- const e = await Ai(this), t = new Ci(e);
1989
+ const e = await Pi(this), t = new Ni(e);
1993
1990
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1994
1991
  }
1995
1992
  _getPersistence() {
@@ -2029,7 +2026,7 @@ class Ni {
2029
2026
  token: e,
2030
2027
  idToken: t
2031
2028
  };
2032
- this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
2029
+ this.tenantId != null && (i.tenantId = this.tenantId), await Ei(this, i);
2033
2030
  }
2034
2031
  }
2035
2032
  toJSON() {
@@ -2047,15 +2044,15 @@ class Ni {
2047
2044
  }
2048
2045
  async getOrInitRedirectPersistenceManager(e) {
2049
2046
  if (!this.redirectPersistenceManager) {
2050
- const t = e && N(e) || this._popupRedirectResolver;
2047
+ const t = e && O(e) || this._popupRedirectResolver;
2051
2048
  u(
2052
2049
  t,
2053
2050
  this,
2054
2051
  "argument-error"
2055
2052
  /* AuthErrorCode.ARGUMENT_ERROR */
2056
- ), this.redirectPersistenceManager = await K.create(
2053
+ ), this.redirectPersistenceManager = await J.create(
2057
2054
  this,
2058
- [N(t._redirectPersistence)],
2055
+ [O(t._redirectPersistence)],
2059
2056
  "redirectUser"
2060
2057
  /* KeyName.REDIRECT_USER */
2061
2058
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -2172,15 +2169,15 @@ class Ni {
2172
2169
  async _getAppCheckToken() {
2173
2170
  var e;
2174
2171
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2175
- return t != null && t.error && li(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2172
+ return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2176
2173
  }
2177
2174
  }
2178
- function be(n) {
2175
+ function Ee(n) {
2179
2176
  return X(n);
2180
2177
  }
2181
2178
  class at {
2182
2179
  constructor(e) {
2183
- this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
2180
+ this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
2184
2181
  }
2185
2182
  get next() {
2186
2183
  return u(
@@ -2215,16 +2212,16 @@ let Be = {
2215
2212
  recaptchaEnterpriseScript: "",
2216
2213
  gapiScript: ""
2217
2214
  };
2218
- function Oi(n) {
2215
+ function Li(n) {
2219
2216
  Be = n;
2220
2217
  }
2221
- function Li(n) {
2218
+ function Mi(n) {
2222
2219
  return Be.loadJS(n);
2223
2220
  }
2224
- function Mi() {
2221
+ function Ui() {
2225
2222
  return Be.gapiScript;
2226
2223
  }
2227
- function Ui(n) {
2224
+ function Di(n) {
2228
2225
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2229
2226
  }
2230
2227
  /**
@@ -2243,13 +2240,13 @@ function Ui(n) {
2243
2240
  * See the License for the specific language governing permissions and
2244
2241
  * limitations under the License.
2245
2242
  */
2246
- function Di(n, e) {
2247
- const t = bt(n, "auth");
2243
+ function xi(n, e) {
2244
+ const t = Et(n, "auth");
2248
2245
  if (t.isInitialized()) {
2249
2246
  const r = t.getImmediate(), s = t.getOptions();
2250
- if (Nn(s, e ?? {}))
2247
+ if (On(s, e ?? {}))
2251
2248
  return r;
2252
- O(
2249
+ L(
2253
2250
  r,
2254
2251
  "already-initialized"
2255
2252
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -2257,12 +2254,12 @@ function Di(n, e) {
2257
2254
  }
2258
2255
  return t.initialize({ options: e });
2259
2256
  }
2260
- function xi(n, e) {
2261
- const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2257
+ function Fi(n, e) {
2258
+ const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(O);
2262
2259
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2263
2260
  }
2264
- function Fi(n, e, t) {
2265
- const i = be(n);
2261
+ function Vi(n, e, t) {
2262
+ const i = Ee(n);
2266
2263
  u(
2267
2264
  i._canInitEmulator,
2268
2265
  i,
@@ -2274,19 +2271,19 @@ function Fi(n, e, t) {
2274
2271
  "invalid-emulator-scheme"
2275
2272
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2276
2273
  );
2277
- const r = !1, s = Bt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
2274
+ const r = !1, s = Bt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2278
2275
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2279
2276
  host: o,
2280
2277
  port: c,
2281
2278
  protocol: s.replace(":", ""),
2282
2279
  options: Object.freeze({ disableWarnings: r })
2283
- }), $i();
2280
+ }), Hi();
2284
2281
  }
2285
2282
  function Bt(n) {
2286
2283
  const e = n.indexOf(":");
2287
2284
  return e < 0 ? "" : n.substr(0, e + 1);
2288
2285
  }
2289
- function Vi(n) {
2286
+ function $i(n) {
2290
2287
  const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2291
2288
  if (!t)
2292
2289
  return { host: "", port: null };
@@ -2305,7 +2302,7 @@ function ct(n) {
2305
2302
  const e = Number(n);
2306
2303
  return isNaN(e) ? null : e;
2307
2304
  }
2308
- function $i() {
2305
+ function Hi() {
2309
2306
  function n() {
2310
2307
  const e = document.createElement("p"), t = e.style;
2311
2308
  e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -2339,19 +2336,19 @@ class zt {
2339
2336
  * @returns a JSON-serializable representation of this object.
2340
2337
  */
2341
2338
  toJSON() {
2342
- return P("not implemented");
2339
+ return C("not implemented");
2343
2340
  }
2344
2341
  /** @internal */
2345
2342
  _getIdTokenResponse(e) {
2346
- return P("not implemented");
2343
+ return C("not implemented");
2347
2344
  }
2348
2345
  /** @internal */
2349
2346
  _linkToIdToken(e, t) {
2350
- return P("not implemented");
2347
+ return C("not implemented");
2351
2348
  }
2352
2349
  /** @internal */
2353
2350
  _getReauthenticationResolver(e) {
2354
- return P("not implemented");
2351
+ return C("not implemented");
2355
2352
  }
2356
2353
  }
2357
2354
  /**
@@ -2370,7 +2367,7 @@ class zt {
2370
2367
  * See the License for the specific language governing permissions and
2371
2368
  * limitations under the License.
2372
2369
  */
2373
- async function J(n, e) {
2370
+ async function Y(n, e) {
2374
2371
  return Ot(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
2375
2372
  }
2376
2373
  /**
@@ -2389,15 +2386,15 @@ async function J(n, e) {
2389
2386
  * See the License for the specific language governing permissions and
2390
2387
  * limitations under the License.
2391
2388
  */
2392
- const Hi = "http://localhost";
2393
- class G extends zt {
2389
+ const Wi = "http://localhost";
2390
+ class B extends zt {
2394
2391
  constructor() {
2395
2392
  super(...arguments), this.pendingToken = null;
2396
2393
  }
2397
2394
  /** @internal */
2398
2395
  static _fromParams(e) {
2399
- const t = new G(e.providerId, e.signInMethod);
2400
- return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
2396
+ const t = new B(e.providerId, e.signInMethod);
2397
+ return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : L(
2401
2398
  "argument-error"
2402
2399
  /* AuthErrorCode.ARGUMENT_ERROR */
2403
2400
  ), t;
@@ -2427,27 +2424,27 @@ class G extends zt {
2427
2424
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2428
2425
  if (!i || !r)
2429
2426
  return null;
2430
- const o = new G(i, r);
2427
+ const o = new B(i, r);
2431
2428
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2432
2429
  }
2433
2430
  /** @internal */
2434
2431
  _getIdTokenResponse(e) {
2435
2432
  const t = this.buildRequest();
2436
- return J(e, t);
2433
+ return Y(e, t);
2437
2434
  }
2438
2435
  /** @internal */
2439
2436
  _linkToIdToken(e, t) {
2440
2437
  const i = this.buildRequest();
2441
- return i.idToken = t, J(e, i);
2438
+ return i.idToken = t, Y(e, i);
2442
2439
  }
2443
2440
  /** @internal */
2444
2441
  _getReauthenticationResolver(e) {
2445
2442
  const t = this.buildRequest();
2446
- return t.autoCreate = !1, J(e, t);
2443
+ return t.autoCreate = !1, Y(e, t);
2447
2444
  }
2448
2445
  buildRequest() {
2449
2446
  const e = {
2450
- requestUri: Hi,
2447
+ requestUri: Wi,
2451
2448
  returnSecureToken: !0
2452
2449
  };
2453
2450
  if (this.pendingToken)
@@ -2583,7 +2580,7 @@ class x extends ce {
2583
2580
  * @param accessToken - Facebook access token.
2584
2581
  */
2585
2582
  static credential(e) {
2586
- return G._fromParams({
2583
+ return B._fromParams({
2587
2584
  providerId: x.PROVIDER_ID,
2588
2585
  signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2589
2586
  accessToken: e
@@ -2655,7 +2652,7 @@ class F extends ce {
2655
2652
  * @param accessToken - Google access token.
2656
2653
  */
2657
2654
  static credential(e, t) {
2658
- return G._fromParams({
2655
+ return B._fromParams({
2659
2656
  providerId: F.PROVIDER_ID,
2660
2657
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2661
2658
  idToken: e,
@@ -2723,7 +2720,7 @@ class V extends ce {
2723
2720
  * @param accessToken - Github access token.
2724
2721
  */
2725
2722
  static credential(e) {
2726
- return G._fromParams({
2723
+ return B._fromParams({
2727
2724
  providerId: V.PROVIDER_ID,
2728
2725
  signInMethod: V.GITHUB_SIGN_IN_METHOD,
2729
2726
  accessToken: e
@@ -2788,7 +2785,7 @@ class $ extends ce {
2788
2785
  * @param secret - Twitter secret.
2789
2786
  */
2790
2787
  static credential(e, t) {
2791
- return G._fromParams({
2788
+ return B._fromParams({
2792
2789
  providerId: $.PROVIDER_ID,
2793
2790
  signInMethod: $.TWITTER_SIGN_IN_METHOD,
2794
2791
  oauthToken: e,
@@ -2843,13 +2840,13 @@ $.PROVIDER_ID = "twitter.com";
2843
2840
  * See the License for the specific language governing permissions and
2844
2841
  * limitations under the License.
2845
2842
  */
2846
- class B {
2843
+ class z {
2847
2844
  constructor(e) {
2848
2845
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2849
2846
  }
2850
2847
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2851
- const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2852
- return new B({
2848
+ const s = await N._fromIdTokenResponse(e, i, r), o = lt(i);
2849
+ return new z({
2853
2850
  user: s,
2854
2851
  providerId: o,
2855
2852
  _tokenResponse: i,
@@ -2863,7 +2860,7 @@ class B {
2863
2860
  !0
2864
2861
  );
2865
2862
  const r = lt(i);
2866
- return new B({
2863
+ return new z({
2867
2864
  user: e,
2868
2865
  providerId: r,
2869
2866
  _tokenResponse: i,
@@ -2909,9 +2906,9 @@ function Kt(n, e, t, i) {
2909
2906
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2910
2907
  });
2911
2908
  }
2912
- async function Wi(n, e, t = !1) {
2909
+ async function ji(n, e, t = !1) {
2913
2910
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2914
- return B._forOperation(n, "link", i);
2911
+ return z._forOperation(n, "link", i);
2915
2912
  }
2916
2913
  /**
2917
2914
  * @license
@@ -2929,9 +2926,9 @@ async function Wi(n, e, t = !1) {
2929
2926
  * See the License for the specific language governing permissions and
2930
2927
  * limitations under the License.
2931
2928
  */
2932
- async function ji(n, e, t = !1) {
2929
+ async function Gi(n, e, t = !1) {
2933
2930
  const { auth: i } = n;
2934
- if (A(i.app))
2931
+ if (P(i.app))
2935
2932
  return Promise.reject(H(i));
2936
2933
  const r = "reauthenticate";
2937
2934
  try {
@@ -2955,9 +2952,9 @@ async function ji(n, e, t = !1) {
2955
2952
  i,
2956
2953
  "user-mismatch"
2957
2954
  /* AuthErrorCode.USER_MISMATCH */
2958
- ), B._forOperation(n, r, s);
2955
+ ), z._forOperation(n, r, s);
2959
2956
  } catch (s) {
2960
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2957
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
2961
2958
  i,
2962
2959
  "user-mismatch"
2963
2960
  /* AuthErrorCode.USER_MISMATCH */
@@ -2980,10 +2977,10 @@ async function ji(n, e, t = !1) {
2980
2977
  * See the License for the specific language governing permissions and
2981
2978
  * limitations under the License.
2982
2979
  */
2983
- async function Gi(n, e, t = !1) {
2984
- if (A(n.app))
2980
+ async function Bi(n, e, t = !1) {
2981
+ if (P(n.app))
2985
2982
  return Promise.reject(H(n));
2986
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2983
+ const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
2987
2984
  return t || await n._updateCurrentUser(s.user), s;
2988
2985
  }
2989
2986
  /**
@@ -3002,7 +2999,7 @@ async function Gi(n, e, t = !1) {
3002
2999
  * See the License for the specific language governing permissions and
3003
3000
  * limitations under the License.
3004
3001
  */
3005
- async function Bi(n, e) {
3002
+ async function zi(n, e) {
3006
3003
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
3007
3004
  }
3008
3005
  /**
@@ -3021,19 +3018,19 @@ async function Bi(n, e) {
3021
3018
  * See the License for the specific language governing permissions and
3022
3019
  * limitations under the License.
3023
3020
  */
3024
- async function zi(n, e) {
3025
- if (A(n.app))
3021
+ async function qi(n, e) {
3022
+ if (P(n.app))
3026
3023
  return Promise.reject(H(n));
3027
- const t = be(n), i = await Bi(t, {
3024
+ const t = Ee(n), i = await zi(t, {
3028
3025
  token: e,
3029
3026
  returnSecureToken: !0
3030
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3027
+ }), r = await z._fromIdTokenResponse(t, "signIn", i);
3031
3028
  return await t._updateCurrentUser(r.user), r;
3032
3029
  }
3033
- function qi(n, e, t, i) {
3030
+ function Ki(n, e, t, i) {
3034
3031
  return X(n).onIdTokenChanged(e, t, i);
3035
3032
  }
3036
- function Ki(n, e, t) {
3033
+ function Ji(n, e, t) {
3037
3034
  return X(n).beforeAuthStateChanged(e, t);
3038
3035
  }
3039
3036
  const ye = "__sak";
@@ -3094,18 +3091,18 @@ class Jt {
3094
3091
  * See the License for the specific language governing permissions and
3095
3092
  * limitations under the License.
3096
3093
  */
3097
- function Ji() {
3098
- const n = w();
3094
+ function Yi() {
3095
+ const n = k();
3099
3096
  return Ge(n) || ke(n);
3100
3097
  }
3101
- const Yi = 1e3, Xi = 10;
3098
+ const Xi = 1e3, Qi = 10;
3102
3099
  class Yt extends Jt {
3103
3100
  constructor() {
3104
3101
  super(
3105
3102
  () => window.localStorage,
3106
3103
  "LOCAL"
3107
3104
  /* PersistenceType.LOCAL */
3108
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3105
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3109
3106
  }
3110
3107
  forAllChangedKeys(e) {
3111
3108
  for (const t of Object.keys(this.listeners)) {
@@ -3132,7 +3129,7 @@ class Yt extends Jt {
3132
3129
  const o = this.storage.getItem(i);
3133
3130
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3134
3131
  }, s = this.storage.getItem(i);
3135
- Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
3132
+ Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3136
3133
  }
3137
3134
  notifyListeners(e, t) {
3138
3135
  this.localCache[e] = t;
@@ -3154,7 +3151,7 @@ class Yt extends Jt {
3154
3151
  !0
3155
3152
  );
3156
3153
  });
3157
- }, Yi);
3154
+ }, Xi);
3158
3155
  }
3159
3156
  stopPolling() {
3160
3157
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3184,7 +3181,7 @@ class Yt extends Jt {
3184
3181
  }
3185
3182
  }
3186
3183
  Yt.type = "LOCAL";
3187
- const Qi = Yt;
3184
+ const Zi = Yt;
3188
3185
  /**
3189
3186
  * @license
3190
3187
  * Copyright 2020 Google LLC
@@ -3232,7 +3229,7 @@ const Qt = Xt;
3232
3229
  * See the License for the specific language governing permissions and
3233
3230
  * limitations under the License.
3234
3231
  */
3235
- function Zi(n) {
3232
+ function er(n) {
3236
3233
  return Promise.all(n.map(async (e) => {
3237
3234
  try {
3238
3235
  return {
@@ -3263,7 +3260,7 @@ function Zi(n) {
3263
3260
  * See the License for the specific language governing permissions and
3264
3261
  * limitations under the License.
3265
3262
  */
3266
- class Ee {
3263
+ class be {
3267
3264
  constructor(e) {
3268
3265
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
3269
3266
  }
@@ -3277,7 +3274,7 @@ class Ee {
3277
3274
  const t = this.receivers.find((r) => r.isListeningto(e));
3278
3275
  if (t)
3279
3276
  return t;
3280
- const i = new Ee(e);
3277
+ const i = new be(e);
3281
3278
  return this.receivers.push(i), i;
3282
3279
  }
3283
3280
  isListeningto(e) {
@@ -3302,7 +3299,7 @@ class Ee {
3302
3299
  eventId: i,
3303
3300
  eventType: r
3304
3301
  });
3305
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
3302
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3306
3303
  t.ports[0].postMessage({
3307
3304
  status: "done",
3308
3305
  eventId: i,
@@ -3331,7 +3328,7 @@ class Ee {
3331
3328
  this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
3332
3329
  }
3333
3330
  }
3334
- Ee.receivers = [];
3331
+ be.receivers = [];
3335
3332
  /**
3336
3333
  * @license
3337
3334
  * Copyright 2020 Google LLC
@@ -3370,7 +3367,7 @@ function ze(n = "", e = 10) {
3370
3367
  * See the License for the specific language governing permissions and
3371
3368
  * limitations under the License.
3372
3369
  */
3373
- class er {
3370
+ class tr {
3374
3371
  constructor(e) {
3375
3372
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3376
3373
  }
@@ -3415,9 +3412,9 @@ class er {
3415
3412
  o = {
3416
3413
  messageChannel: r,
3417
3414
  onMessage(m) {
3418
- const y = m;
3419
- if (y.data.eventId === l)
3420
- switch (y.data.status) {
3415
+ const v = m;
3416
+ if (v.data.eventId === l)
3417
+ switch (v.data.status) {
3421
3418
  case "ack":
3422
3419
  clearTimeout(d), s = setTimeout(
3423
3420
  () => {
@@ -3431,7 +3428,7 @@ class er {
3431
3428
  );
3432
3429
  break;
3433
3430
  case "done":
3434
- clearTimeout(s), c(y.data.response);
3431
+ clearTimeout(s), c(v.data.response);
3435
3432
  break;
3436
3433
  default:
3437
3434
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3467,11 +3464,11 @@ class er {
3467
3464
  * See the License for the specific language governing permissions and
3468
3465
  * limitations under the License.
3469
3466
  */
3470
- function E() {
3467
+ function S() {
3471
3468
  return window;
3472
3469
  }
3473
- function tr(n) {
3474
- E().location.href = n;
3470
+ function nr(n) {
3471
+ S().location.href = n;
3475
3472
  }
3476
3473
  /**
3477
3474
  * @license
@@ -3490,9 +3487,9 @@ function tr(n) {
3490
3487
  * limitations under the License.
3491
3488
  */
3492
3489
  function Zt() {
3493
- return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3490
+ return typeof S().WorkerGlobalScope < "u" && typeof S().importScripts == "function";
3494
3491
  }
3495
- async function nr() {
3492
+ async function ir() {
3496
3493
  if (!(navigator != null && navigator.serviceWorker))
3497
3494
  return null;
3498
3495
  try {
@@ -3501,11 +3498,11 @@ async function nr() {
3501
3498
  return null;
3502
3499
  }
3503
3500
  }
3504
- function ir() {
3501
+ function rr() {
3505
3502
  var n;
3506
3503
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3507
3504
  }
3508
- function rr() {
3505
+ function sr() {
3509
3506
  return Zt() ? self : null;
3510
3507
  }
3511
3508
  /**
@@ -3524,7 +3521,7 @@ function rr() {
3524
3521
  * See the License for the specific language governing permissions and
3525
3522
  * limitations under the License.
3526
3523
  */
3527
- const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3524
+ const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3528
3525
  class le {
3529
3526
  constructor(e) {
3530
3527
  this.request = e;
@@ -3542,12 +3539,12 @@ class le {
3542
3539
  function Se(n, e) {
3543
3540
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3544
3541
  }
3545
- function or() {
3542
+ function ar() {
3546
3543
  const n = indexedDB.deleteDatabase(en);
3547
3544
  return new le(n).toPromise();
3548
3545
  }
3549
3546
  function De() {
3550
- const n = indexedDB.open(en, sr);
3547
+ const n = indexedDB.open(en, or);
3551
3548
  return new Promise((e, t) => {
3552
3549
  n.addEventListener("error", () => {
3553
3550
  t(n.error);
@@ -3560,7 +3557,7 @@ function De() {
3560
3557
  }
3561
3558
  }), n.addEventListener("success", async () => {
3562
3559
  const i = n.result;
3563
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
3560
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3564
3561
  });
3565
3562
  });
3566
3563
  }
@@ -3571,7 +3568,7 @@ async function ut(n, e, t) {
3571
3568
  });
3572
3569
  return new le(i).toPromise();
3573
3570
  }
3574
- async function ar(n, e) {
3571
+ async function cr(n, e) {
3575
3572
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3576
3573
  return i === void 0 ? null : i.value;
3577
3574
  }
@@ -3579,7 +3576,7 @@ function dt(n, e) {
3579
3576
  const t = Se(n, !0).delete(e);
3580
3577
  return new le(t).toPromise();
3581
3578
  }
3582
- const cr = 800, lr = 3;
3579
+ const lr = 800, ur = 3;
3583
3580
  class nn {
3584
3581
  constructor() {
3585
3582
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
@@ -3596,7 +3593,7 @@ class nn {
3596
3593
  const i = await this._openDb();
3597
3594
  return await e(i);
3598
3595
  } catch (i) {
3599
- if (t++ > lr)
3596
+ if (t++ > ur)
3600
3597
  throw i;
3601
3598
  this.db && (this.db.close(), this.db = void 0);
3602
3599
  }
@@ -3612,7 +3609,7 @@ class nn {
3612
3609
  * As the worker we should listen to events from the main window.
3613
3610
  */
3614
3611
  async initializeReceiver() {
3615
- this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3612
+ this.receiver = be._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3616
3613
  keyProcessed: (await this._poll()).includes(t.key)
3617
3614
  })), this.receiver._subscribe("ping", async (e, t) => [
3618
3615
  "keyChanged"
@@ -3628,9 +3625,9 @@ class nn {
3628
3625
  */
3629
3626
  async initializeSender() {
3630
3627
  var e, t;
3631
- if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
3628
+ if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3632
3629
  return;
3633
- this.sender = new er(this.activeServiceWorker);
3630
+ this.sender = new tr(this.activeServiceWorker);
3634
3631
  const i = await this.sender._send(
3635
3632
  "ping",
3636
3633
  {},
@@ -3652,7 +3649,7 @@ class nn {
3652
3649
  * @param key - Storage key which changed.
3653
3650
  */
3654
3651
  async notifyServiceWorker(e) {
3655
- if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
3652
+ if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3656
3653
  try {
3657
3654
  await this.sender._send(
3658
3655
  "keyChanged",
@@ -3686,7 +3683,7 @@ class nn {
3686
3683
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3687
3684
  }
3688
3685
  async _get(e) {
3689
- const t = await this._withRetries((i) => ar(i, e));
3686
+ const t = await this._withRetries((i) => cr(i, e));
3690
3687
  return this.localCache[e] = t, t;
3691
3688
  }
3692
3689
  async _remove(e) {
@@ -3717,7 +3714,7 @@ class nn {
3717
3714
  r(t);
3718
3715
  }
3719
3716
  startPolling() {
3720
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
3717
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3721
3718
  }
3722
3719
  stopPolling() {
3723
3720
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3730,7 +3727,7 @@ class nn {
3730
3727
  }
3731
3728
  }
3732
3729
  nn.type = "LOCAL";
3733
- const ur = nn;
3730
+ const dr = nn;
3734
3731
  new ae(3e4, 6e4);
3735
3732
  /**
3736
3733
  * @license
@@ -3748,8 +3745,8 @@ new ae(3e4, 6e4);
3748
3745
  * See the License for the specific language governing permissions and
3749
3746
  * limitations under the License.
3750
3747
  */
3751
- function dr(n, e) {
3752
- return e ? N(e) : (u(
3748
+ function hr(n, e) {
3749
+ return e ? O(e) : (u(
3753
3750
  n._popupRedirectResolver,
3754
3751
  n,
3755
3752
  "argument-error"
@@ -3781,13 +3778,13 @@ class qe extends zt {
3781
3778
  ), this.params = e;
3782
3779
  }
3783
3780
  _getIdTokenResponse(e) {
3784
- return J(e, this._buildIdpRequest());
3781
+ return Y(e, this._buildIdpRequest());
3785
3782
  }
3786
3783
  _linkToIdToken(e, t) {
3787
- return J(e, this._buildIdpRequest(t));
3784
+ return Y(e, this._buildIdpRequest(t));
3788
3785
  }
3789
3786
  _getReauthenticationResolver(e) {
3790
- return J(e, this._buildIdpRequest());
3787
+ return Y(e, this._buildIdpRequest());
3791
3788
  }
3792
3789
  _buildIdpRequest(e) {
3793
3790
  const t = {
@@ -3802,26 +3799,26 @@ class qe extends zt {
3802
3799
  return e && (t.idToken = e), t;
3803
3800
  }
3804
3801
  }
3805
- function hr(n) {
3806
- return Gi(n.auth, new qe(n), n.bypassAuthState);
3807
- }
3808
3802
  function fr(n) {
3803
+ return Bi(n.auth, new qe(n), n.bypassAuthState);
3804
+ }
3805
+ function pr(n) {
3809
3806
  const { auth: e, user: t } = n;
3810
3807
  return u(
3811
3808
  t,
3812
3809
  e,
3813
3810
  "internal-error"
3814
3811
  /* AuthErrorCode.INTERNAL_ERROR */
3815
- ), ji(t, new qe(n), n.bypassAuthState);
3812
+ ), Gi(t, new qe(n), n.bypassAuthState);
3816
3813
  }
3817
- async function pr(n) {
3814
+ async function mr(n) {
3818
3815
  const { auth: e, user: t } = n;
3819
3816
  return u(
3820
3817
  t,
3821
3818
  e,
3822
3819
  "internal-error"
3823
3820
  /* AuthErrorCode.INTERNAL_ERROR */
3824
- ), Wi(t, new qe(n), n.bypassAuthState);
3821
+ ), ji(t, new qe(n), n.bypassAuthState);
3825
3822
  }
3826
3823
  /**
3827
3824
  * @license
@@ -3881,15 +3878,15 @@ class rn {
3881
3878
  switch (e) {
3882
3879
  case "signInViaPopup":
3883
3880
  case "signInViaRedirect":
3884
- return hr;
3881
+ return fr;
3885
3882
  case "linkViaPopup":
3886
3883
  case "linkViaRedirect":
3887
- return pr;
3884
+ return mr;
3888
3885
  case "reauthViaPopup":
3889
3886
  case "reauthViaRedirect":
3890
- return fr;
3887
+ return pr;
3891
3888
  default:
3892
- O(
3889
+ L(
3893
3890
  this.auth,
3894
3891
  "internal-error"
3895
3892
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3897,10 +3894,10 @@ class rn {
3897
3894
  }
3898
3895
  }
3899
3896
  resolve(e) {
3900
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3897
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3901
3898
  }
3902
3899
  reject(e) {
3903
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3900
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3904
3901
  }
3905
3902
  unregisterAndCleanUp() {
3906
3903
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3922,10 +3919,10 @@ class rn {
3922
3919
  * See the License for the specific language governing permissions and
3923
3920
  * limitations under the License.
3924
3921
  */
3925
- const mr = new ae(2e3, 1e4);
3926
- class z extends rn {
3922
+ const gr = new ae(2e3, 1e4);
3923
+ class q extends rn {
3927
3924
  constructor(e, t, i, r, s) {
3928
- super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
3925
+ super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, q.currentPopupAction && q.currentPopupAction.cancel(), q.currentPopupAction = this;
3929
3926
  }
3930
3927
  async executeNotNull() {
3931
3928
  const e = await this.execute();
@@ -3937,7 +3934,7 @@ class z extends rn {
3937
3934
  ), e;
3938
3935
  }
3939
3936
  async onExecution() {
3940
- L(this.filter.length === 1, "Popup operations only handle one event");
3937
+ M(this.filter.length === 1, "Popup operations only handle one event");
3941
3938
  const e = ze();
3942
3939
  this.authWindow = await this.resolver._openPopup(
3943
3940
  this.auth,
@@ -3967,7 +3964,7 @@ class z extends rn {
3967
3964
  ));
3968
3965
  }
3969
3966
  cleanUp() {
3970
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, z.currentPopupAction = null;
3967
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, q.currentPopupAction = null;
3971
3968
  }
3972
3969
  pollUserCancellation() {
3973
3970
  const e = () => {
@@ -3986,12 +3983,12 @@ class z extends rn {
3986
3983
  );
3987
3984
  return;
3988
3985
  }
3989
- this.pollId = window.setTimeout(e, mr.get());
3986
+ this.pollId = window.setTimeout(e, gr.get());
3990
3987
  };
3991
3988
  e();
3992
3989
  }
3993
3990
  }
3994
- z.currentPopupAction = null;
3991
+ q.currentPopupAction = null;
3995
3992
  /**
3996
3993
  * @license
3997
3994
  * Copyright 2020 Google LLC
@@ -4008,8 +4005,8 @@ z.currentPopupAction = null;
4008
4005
  * See the License for the specific language governing permissions and
4009
4006
  * limitations under the License.
4010
4007
  */
4011
- const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4012
- class _r extends rn {
4008
+ const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4009
+ class vr extends rn {
4013
4010
  constructor(e, t, i = !1) {
4014
4011
  super(e, [
4015
4012
  "signInViaRedirect",
@@ -4027,7 +4024,7 @@ class _r extends rn {
4027
4024
  let e = fe.get(this.auth._key());
4028
4025
  if (!e) {
4029
4026
  try {
4030
- const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
4027
+ const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4031
4028
  e = () => Promise.resolve(i);
4032
4029
  } catch (t) {
4033
4030
  e = () => Promise.reject(t);
@@ -4055,26 +4052,26 @@ class _r extends rn {
4055
4052
  cleanUp() {
4056
4053
  }
4057
4054
  }
4058
- async function vr(n, e) {
4059
- const t = wr(e), i = yr(n);
4055
+ async function Ir(n, e) {
4056
+ const t = Tr(e), i = wr(n);
4060
4057
  if (!await i._isAvailable())
4061
4058
  return !1;
4062
4059
  const r = await i._get(t) === "true";
4063
4060
  return await i._remove(t), r;
4064
4061
  }
4065
- function Ir(n, e) {
4062
+ function yr(n, e) {
4066
4063
  fe.set(n._key(), e);
4067
4064
  }
4068
- function yr(n) {
4069
- return N(n._redirectPersistence);
4070
- }
4071
4065
  function wr(n) {
4072
- return he(gr, n.config.apiKey, n.name);
4066
+ return O(n._redirectPersistence);
4073
4067
  }
4074
- async function Tr(n, e, t = !1) {
4075
- if (A(n.app))
4068
+ function Tr(n) {
4069
+ return he(_r, n.config.apiKey, n.name);
4070
+ }
4071
+ async function kr(n, e, t = !1) {
4072
+ if (P(n.app))
4076
4073
  return Promise.reject(H(n));
4077
- const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
4074
+ const i = Ee(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4078
4075
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4079
4076
  }
4080
4077
  /**
@@ -4093,7 +4090,7 @@ async function Tr(n, e, t = !1) {
4093
4090
  * See the License for the specific language governing permissions and
4094
4091
  * limitations under the License.
4095
4092
  */
4096
- const kr = 10 * 60 * 1e3;
4093
+ const Er = 10 * 60 * 1e3;
4097
4094
  class br {
4098
4095
  constructor(e) {
4099
4096
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
@@ -4110,7 +4107,7 @@ class br {
4110
4107
  let t = !1;
4111
4108
  return this.consumers.forEach((i) => {
4112
4109
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4113
- }), this.hasHandledPotentialRedirect || !Er(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4110
+ }), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4114
4111
  }
4115
4112
  sendToConsumer(e, t) {
4116
4113
  var i;
@@ -4125,7 +4122,7 @@ class br {
4125
4122
  return t.filter.includes(e.type) && i;
4126
4123
  }
4127
4124
  hasEventBeenHandled(e) {
4128
- return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4125
+ return Date.now() - this.lastProcessedEventTime >= Er && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4129
4126
  }
4130
4127
  saveEventToCache(e) {
4131
4128
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4137,7 +4134,7 @@ function ht(n) {
4137
4134
  function sn({ type: n, error: e }) {
4138
4135
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4139
4136
  }
4140
- function Er(n) {
4137
+ function Sr(n) {
4141
4138
  switch (n.type) {
4142
4139
  case "signInViaRedirect":
4143
4140
  case "linkViaRedirect":
@@ -4165,7 +4162,7 @@ function Er(n) {
4165
4162
  * See the License for the specific language governing permissions and
4166
4163
  * limitations under the License.
4167
4164
  */
4168
- async function Sr(n, e = {}) {
4165
+ async function Rr(n, e = {}) {
4169
4166
  return Q(n, "GET", "/v1/projects", e);
4170
4167
  }
4171
4168
  /**
@@ -4184,32 +4181,32 @@ async function Sr(n, e = {}) {
4184
4181
  * See the License for the specific language governing permissions and
4185
4182
  * limitations under the License.
4186
4183
  */
4187
- const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4188
- async function Pr(n) {
4184
+ const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
4185
+ async function Cr(n) {
4189
4186
  if (n.config.emulator)
4190
4187
  return;
4191
- const { authorizedDomains: e } = await Sr(n);
4188
+ const { authorizedDomains: e } = await Rr(n);
4192
4189
  for (const t of e)
4193
4190
  try {
4194
- if (Cr(t))
4191
+ if (Nr(t))
4195
4192
  return;
4196
4193
  } catch {
4197
4194
  }
4198
- O(
4195
+ L(
4199
4196
  n,
4200
4197
  "unauthorized-domain"
4201
4198
  /* AuthErrorCode.INVALID_ORIGIN */
4202
4199
  );
4203
4200
  }
4204
- function Cr(n) {
4201
+ function Nr(n) {
4205
4202
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4206
4203
  if (n.startsWith("chrome-extension://")) {
4207
4204
  const o = new URL(n);
4208
4205
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4209
4206
  }
4210
- if (!Ar.test(t))
4207
+ if (!Pr.test(t))
4211
4208
  return !1;
4212
- if (Rr.test(n))
4209
+ if (Ar.test(n))
4213
4210
  return i === n;
4214
4211
  const r = n.replace(/\./g, "\\.");
4215
4212
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4230,9 +4227,9 @@ function Cr(n) {
4230
4227
  * See the License for the specific language governing permissions and
4231
4228
  * limitations under the License.
4232
4229
  */
4233
- const Nr = new ae(3e4, 6e4);
4230
+ const Or = new ae(3e4, 6e4);
4234
4231
  function ft() {
4235
- const n = E().___jsl;
4232
+ const n = S().___jsl;
4236
4233
  if (n != null && n.H) {
4237
4234
  for (const e of Object.keys(n.H))
4238
4235
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -4240,7 +4237,7 @@ function ft() {
4240
4237
  n.CP[t] = null;
4241
4238
  }
4242
4239
  }
4243
- function Or(n) {
4240
+ function Lr(n) {
4244
4241
  return new Promise((e, t) => {
4245
4242
  var i, r, s;
4246
4243
  function o() {
@@ -4255,30 +4252,30 @@ function Or(n) {
4255
4252
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4256
4253
  ));
4257
4254
  },
4258
- timeout: Nr.get()
4255
+ timeout: Or.get()
4259
4256
  });
4260
4257
  }
4261
- if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4258
+ if (!((r = (i = S().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4262
4259
  e(gapi.iframes.getContext());
4263
- else if (!((s = E().gapi) === null || s === void 0) && s.load)
4260
+ else if (!((s = S().gapi) === null || s === void 0) && s.load)
4264
4261
  o();
4265
4262
  else {
4266
- const c = Ui("iframefcb");
4267
- return E()[c] = () => {
4263
+ const c = Di("iframefcb");
4264
+ return S()[c] = () => {
4268
4265
  gapi.load ? o() : t(b(
4269
4266
  n,
4270
4267
  "network-request-failed"
4271
4268
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4272
4269
  ));
4273
- }, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
4270
+ }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4274
4271
  }
4275
4272
  }).catch((e) => {
4276
4273
  throw pe = null, e;
4277
4274
  });
4278
4275
  }
4279
4276
  let pe = null;
4280
- function Lr(n) {
4281
- return pe = pe || Or(n), pe;
4277
+ function Mr(n) {
4278
+ return pe = pe || Lr(n), pe;
4282
4279
  }
4283
4280
  /**
4284
4281
  * @license
@@ -4296,7 +4293,7 @@ function Lr(n) {
4296
4293
  * See the License for the specific language governing permissions and
4297
4294
  * limitations under the License.
4298
4295
  */
4299
- const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
4296
+ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4300
4297
  style: {
4301
4298
  position: "absolute",
4302
4299
  top: "-100px",
@@ -4305,13 +4302,13 @@ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe"
4305
4302
  },
4306
4303
  "aria-hidden": "true",
4307
4304
  tabindex: "-1"
4308
- }, Fr = /* @__PURE__ */ new Map([
4305
+ }, Vr = /* @__PURE__ */ new Map([
4309
4306
  ["identitytoolkit.googleapis.com", "p"],
4310
4307
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4311
4308
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4312
4309
  // test
4313
4310
  ]);
4314
- function Vr(n) {
4311
+ function $r(n) {
4315
4312
  const e = n.config;
4316
4313
  u(
4317
4314
  e.authDomain,
@@ -4319,17 +4316,17 @@ function Vr(n) {
4319
4316
  "auth-domain-config-required"
4320
4317
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4321
4318
  );
4322
- const t = e.emulator ? We(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
4319
+ const t = e.emulator ? We(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4323
4320
  apiKey: e.apiKey,
4324
4321
  appName: n.name,
4325
4322
  v: se
4326
- }, r = Fr.get(n.config.apiHost);
4323
+ }, r = Vr.get(n.config.apiHost);
4327
4324
  r && (i.eid = r);
4328
4325
  const s = n._getFrameworks();
4329
4326
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4330
4327
  }
4331
- async function $r(n) {
4332
- const e = await Lr(n), t = E().gapi;
4328
+ async function Hr(n) {
4329
+ const e = await Mr(n), t = S().gapi;
4333
4330
  return u(
4334
4331
  t,
4335
4332
  n,
@@ -4337,9 +4334,9 @@ async function $r(n) {
4337
4334
  /* AuthErrorCode.INTERNAL_ERROR */
4338
4335
  ), e.open({
4339
4336
  where: document.body,
4340
- url: Vr(n),
4337
+ url: $r(n),
4341
4338
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4342
- attributes: xr,
4339
+ attributes: Fr,
4343
4340
  dontclear: !0
4344
4341
  }, (i) => new Promise(async (r, s) => {
4345
4342
  await i.restyle({
@@ -4350,11 +4347,11 @@ async function $r(n) {
4350
4347
  n,
4351
4348
  "network-request-failed"
4352
4349
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4353
- ), c = E().setTimeout(() => {
4350
+ ), c = S().setTimeout(() => {
4354
4351
  s(o);
4355
- }, Mr.get());
4352
+ }, Ur.get());
4356
4353
  function a() {
4357
- E().clearTimeout(c), r(i);
4354
+ S().clearTimeout(c), r(i);
4358
4355
  }
4359
4356
  i.ping(a).then(a, () => {
4360
4357
  s(o);
@@ -4377,12 +4374,12 @@ async function $r(n) {
4377
4374
  * See the License for the specific language governing permissions and
4378
4375
  * limitations under the License.
4379
4376
  */
4380
- const Hr = {
4377
+ const Wr = {
4381
4378
  location: "yes",
4382
4379
  resizable: "yes",
4383
4380
  statusbar: "yes",
4384
4381
  toolbar: "no"
4385
- }, Wr = 500, jr = 600, Gr = "_blank", Br = "http://localhost";
4382
+ }, jr = 500, Gr = 600, Br = "_blank", zr = "http://localhost";
4386
4383
  class pt {
4387
4384
  constructor(e) {
4388
4385
  this.window = e, this.associatedEvent = null;
@@ -4395,19 +4392,19 @@ class pt {
4395
4392
  }
4396
4393
  }
4397
4394
  }
4398
- function zr(n, e, t, i = Wr, r = jr) {
4395
+ function qr(n, e, t, i = jr, r = Gr) {
4399
4396
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4400
4397
  let c = "";
4401
- const a = Object.assign(Object.assign({}, Hr), {
4398
+ const a = Object.assign(Object.assign({}, Wr), {
4402
4399
  width: i.toString(),
4403
4400
  height: r.toString(),
4404
4401
  top: s,
4405
4402
  left: o
4406
- }), l = w().toLowerCase();
4407
- t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4408
- const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
4403
+ }), l = k().toLowerCase();
4404
+ t && (c = Ft(l) ? Br : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4405
+ const d = Object.entries(a).reduce((v, [y, p]) => `${v}${y}=${p},`, "");
4409
4406
  if (bi(l) && c !== "_self")
4410
- return qr(e || "", c), new pt(null);
4407
+ return Kr(e || "", c), new pt(null);
4411
4408
  const m = window.open(e || "", c, d);
4412
4409
  u(
4413
4410
  m,
@@ -4421,7 +4418,7 @@ function zr(n, e, t, i = Wr, r = jr) {
4421
4418
  }
4422
4419
  return new pt(m);
4423
4420
  }
4424
- function qr(n, e) {
4421
+ function Kr(n, e) {
4425
4422
  const t = document.createElement("a");
4426
4423
  t.href = n, t.target = e;
4427
4424
  const i = document.createEvent("MouseEvent");
@@ -4443,7 +4440,7 @@ function qr(n, e) {
4443
4440
  * See the License for the specific language governing permissions and
4444
4441
  * limitations under the License.
4445
4442
  */
4446
- const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
4443
+ const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4447
4444
  async function mt(n, e, t, i, r, s) {
4448
4445
  u(
4449
4446
  n.config.authDomain,
@@ -4465,7 +4462,7 @@ async function mt(n, e, t, i, r, s) {
4465
4462
  eventId: r
4466
4463
  };
4467
4464
  if (e instanceof qt) {
4468
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Mn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4465
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4469
4466
  for (const [d, m] of Object.entries({}))
4470
4467
  o[d] = m;
4471
4468
  }
@@ -4477,11 +4474,11 @@ async function mt(n, e, t, i, r, s) {
4477
4474
  const c = o;
4478
4475
  for (const d of Object.keys(c))
4479
4476
  c[d] === void 0 && delete c[d];
4480
- const a = await n._getAppCheckToken(), l = a ? `#${Yr}=${encodeURIComponent(a)}` : "";
4481
- return `${Xr(n)}?${oe(c).slice(1)}${l}`;
4477
+ const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4478
+ return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4482
4479
  }
4483
- function Xr({ config: n }) {
4484
- return n.emulator ? We(n, Jr) : `https://${n.authDomain}/${Kr}`;
4480
+ function Qr({ config: n }) {
4481
+ return n.emulator ? We(n, Yr) : `https://${n.authDomain}/${Jr}`;
4485
4482
  }
4486
4483
  /**
4487
4484
  * @license
@@ -4500,29 +4497,29 @@ function Xr({ config: n }) {
4500
4497
  * limitations under the License.
4501
4498
  */
4502
4499
  const Ne = "webStorageSupport";
4503
- class Qr {
4500
+ class Zr {
4504
4501
  constructor() {
4505
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
4502
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4506
4503
  }
4507
4504
  // Wrapping in async even though we don't await anywhere in order
4508
4505
  // to make sure errors are raised as promise rejections
4509
4506
  async _openPopup(e, t, i, r) {
4510
4507
  var s;
4511
- L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4508
+ M((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4512
4509
  const o = await mt(e, t, i, Me(), r);
4513
- return zr(e, o, ze());
4510
+ return qr(e, o, ze());
4514
4511
  }
4515
4512
  async _openRedirect(e, t, i, r) {
4516
4513
  await this._originValidation(e);
4517
4514
  const s = await mt(e, t, i, Me(), r);
4518
- return tr(s), new Promise(() => {
4515
+ return nr(s), new Promise(() => {
4519
4516
  });
4520
4517
  }
4521
4518
  _initialize(e) {
4522
4519
  const t = e._key();
4523
4520
  if (this.eventManagers[t]) {
4524
4521
  const { manager: r, promise: s } = this.eventManagers[t];
4525
- return r ? Promise.resolve(r) : (L(s, "If manager is not set, promise should be"), s);
4522
+ return r ? Promise.resolve(r) : (M(s, "If manager is not set, promise should be"), s);
4526
4523
  }
4527
4524
  const i = this.initAndGetManager(e);
4528
4525
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4530,7 +4527,7 @@ class Qr {
4530
4527
  }), i;
4531
4528
  }
4532
4529
  async initAndGetManager(e) {
4533
- const t = await $r(e), i = new br(e);
4530
+ const t = await Hr(e), i = new br(e);
4534
4531
  return t.register("authEvent", (r) => (u(
4535
4532
  r == null ? void 0 : r.authEvent,
4536
4533
  e,
@@ -4545,7 +4542,7 @@ class Qr {
4545
4542
  this.iframes[e._key()].send(Ne, { type: Ne }, (r) => {
4546
4543
  var s;
4547
4544
  const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ne];
4548
- o !== void 0 && t(!!o), O(
4545
+ o !== void 0 && t(!!o), L(
4549
4546
  e,
4550
4547
  "internal-error"
4551
4548
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4554,13 +4551,13 @@ class Qr {
4554
4551
  }
4555
4552
  _originValidation(e) {
4556
4553
  const t = e._key();
4557
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
4554
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4558
4555
  }
4559
4556
  get _shouldInitProactively() {
4560
4557
  return jt() || Ge() || ke();
4561
4558
  }
4562
4559
  }
4563
- const Zr = Qr;
4560
+ const es = Zr;
4564
4561
  var gt = "@firebase/auth", _t = "1.7.5";
4565
4562
  /**
4566
4563
  * @license
@@ -4578,7 +4575,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4578
4575
  * See the License for the specific language governing permissions and
4579
4576
  * limitations under the License.
4580
4577
  */
4581
- class es {
4578
+ class ts {
4582
4579
  constructor(e) {
4583
4580
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4584
4581
  }
@@ -4629,7 +4626,7 @@ class es {
4629
4626
  * See the License for the specific language governing permissions and
4630
4627
  * limitations under the License.
4631
4628
  */
4632
- function ts(n) {
4629
+ function ns(n) {
4633
4630
  switch (n) {
4634
4631
  case "Node":
4635
4632
  return "node";
@@ -4645,7 +4642,7 @@ function ts(n) {
4645
4642
  return;
4646
4643
  }
4647
4644
  }
4648
- function ns(n) {
4645
+ function is(n) {
4649
4646
  Ze(new et(
4650
4647
  "auth",
4651
4648
  (e, { options: t }) => {
@@ -4659,8 +4656,8 @@ function ns(n) {
4659
4656
  tokenApiHost: "securetoken.googleapis.com",
4660
4657
  apiScheme: "https",
4661
4658
  sdkClientVersion: Gt(n)
4662
- }, l = new Ni(i, r, s, a);
4663
- return xi(l, t), l;
4659
+ }, l = new Oi(i, r, s, a);
4660
+ return Fi(l, t), l;
4664
4661
  },
4665
4662
  "PUBLIC"
4666
4663
  /* ComponentType.PUBLIC */
@@ -4675,18 +4672,18 @@ function ns(n) {
4675
4672
  })), Ze(new et(
4676
4673
  "auth-internal",
4677
4674
  (e) => {
4678
- const t = be(e.getProvider(
4675
+ const t = Ee(e.getProvider(
4679
4676
  "auth"
4680
4677
  /* _ComponentName.AUTH */
4681
4678
  ).getImmediate());
4682
- return ((i) => new es(i))(t);
4679
+ return ((i) => new ts(i))(t);
4683
4680
  },
4684
4681
  "PRIVATE"
4685
4682
  /* ComponentType.PRIVATE */
4686
4683
  ).setInstantiationMode(
4687
4684
  "EXPLICIT"
4688
4685
  /* InstantiationMode.EXPLICIT */
4689
- )), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
4686
+ )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4690
4687
  }
4691
4688
  /**
4692
4689
  * @license
@@ -4704,11 +4701,11 @@ function ns(n) {
4704
4701
  * See the License for the specific language governing permissions and
4705
4702
  * limitations under the License.
4706
4703
  */
4707
- const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
4704
+ const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
4708
4705
  let vt = null;
4709
- const ss = (n) => async (e) => {
4706
+ const os = (n) => async (e) => {
4710
4707
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4711
- if (i && i > rs)
4708
+ if (i && i > ss)
4712
4709
  return;
4713
4710
  const r = t == null ? void 0 : t.token;
4714
4711
  vt !== r && (vt = r, await fetch(n, {
@@ -4718,33 +4715,33 @@ const ss = (n) => async (e) => {
4718
4715
  } : {}
4719
4716
  }));
4720
4717
  };
4721
- function os(n = Cn()) {
4722
- const e = bt(n, "auth");
4718
+ function as(n = Nn()) {
4719
+ const e = Et(n, "auth");
4723
4720
  if (e.isInitialized())
4724
4721
  return e.getImmediate();
4725
- const t = Di(n, {
4726
- popupRedirectResolver: Zr,
4722
+ const t = xi(n, {
4723
+ popupRedirectResolver: es,
4727
4724
  persistence: [
4728
- ur,
4729
- Qi,
4725
+ dr,
4726
+ Zi,
4730
4727
  Qt
4731
4728
  ]
4732
4729
  }), i = kt("authTokenSyncURL");
4733
4730
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4734
4731
  const s = new URL(i, location.origin);
4735
4732
  if (location.origin === s.origin) {
4736
- const o = ss(s.toString());
4737
- Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
4733
+ const o = os(s.toString());
4734
+ Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4738
4735
  }
4739
4736
  }
4740
- const r = Pn("auth");
4741
- return r && Fi(t, `http://${r}`), t;
4737
+ const r = Cn("auth");
4738
+ return r && Vi(t, `http://${r}`), t;
4742
4739
  }
4743
- function as() {
4740
+ function cs() {
4744
4741
  var n, e;
4745
4742
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4746
4743
  }
4747
- Oi({
4744
+ Li({
4748
4745
  loadJS(n) {
4749
4746
  return new Promise((e, t) => {
4750
4747
  const i = document.createElement("script");
@@ -4754,79 +4751,81 @@ Oi({
4754
4751
  /* AuthErrorCode.INTERNAL_ERROR */
4755
4752
  );
4756
4753
  s.customData = r, t(s);
4757
- }, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
4754
+ }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4758
4755
  });
4759
4756
  },
4760
4757
  gapiScript: "https://apis.google.com/js/api.js",
4761
4758
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4762
4759
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4763
4760
  });
4764
- ns(
4761
+ is(
4765
4762
  "Browser"
4766
4763
  /* ClientPlatform.BROWSER */
4767
4764
  );
4768
- var cs = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, ls = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4769
- const us = {
4765
+ var ls = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, us = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4766
+ const ds = {
4770
4767
  key: 2,
4771
4768
  class: "h-full w-full"
4772
- }, ds = ["src"], Ps = /* @__PURE__ */ xe({
4769
+ }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4773
4770
  __name: "App",
4774
4771
  setup(n) {
4775
- const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
4772
+ const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = G(
4773
+ () => o.name === f["$connect-UPSELLING"]
4774
+ ), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
4776
4775
  ie(
4777
4776
  () => {
4778
- var p;
4779
- return (p = l.value) == null ? void 0 : p._id;
4777
+ var h;
4778
+ return (h = d.value) == null ? void 0 : h._id;
4780
4779
  },
4781
- (p) => {
4782
- p && _n(p);
4780
+ (h) => {
4781
+ h && _n(h);
4783
4782
  },
4784
4783
  { immediate: !0 }
4785
4784
  );
4786
- const d = te(!1), m = Y(() => i.version), y = Y(() => {
4787
- const p = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
4788
- return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${p}&token=${g}`;
4785
+ const m = te(!1), v = G(() => i.version), y = G(() => {
4786
+ const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), E = d.value._id;
4787
+ return `${us.marketingV1Portal}/b/${E}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
4789
4788
  });
4790
- async function T() {
4791
- if (Un().length) {
4789
+ async function p() {
4790
+ if (Dn().length) {
4792
4791
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4793
4792
  return;
4794
4793
  }
4795
- const p = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
4796
- await zi(v, g), xn(p), console.log("initFirebase", p);
4794
+ const h = xn(ls.firebase), _ = await fn.getCustomToken(), E = as();
4795
+ await qi(E, _), Fn(h), console.log("initFirebase", h);
4797
4796
  }
4798
- const h = async () => {
4799
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Hn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
4797
+ const w = async () => {
4798
+ m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(Wn) : e.hideSidebarToggle(!0), await p(), l.value = !0, m.value = !0;
4800
4799
  };
4801
4800
  return un(() => {
4802
- if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4803
- const p = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4804
- p == null || p.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4801
+ if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
4802
+ const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], E = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
4803
+ h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), E == null || E.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4805
4804
  }
4806
- l.value != null && (console.log("App mounted, forceRerender"), h());
4805
+ d.value != null && (console.log("App mounted, forceRerender"), w());
4807
4806
  }), ie(
4808
4807
  () => e.currentBusiness.value,
4809
- async (p, g) => {
4810
- console.log("Current business changed"), p != null && p._id != g._id && (console.log("forceRerender when business changes", p, g), h());
4808
+ async (h, _) => {
4809
+ console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
4811
4810
  }
4812
- ), (p, g) => (j(), me(It, null, [
4813
- _(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4814
- _(d) && _(m) === "v2" && _(c) ? (j(), Oe(si, { key: 1 })) : Pe("", !0),
4815
- _(d) && _(m) !== "v2" ? (j(), me("div", us, [
4816
- S(kn, {
4817
- json: { url: _(y) }
4811
+ ), (h, _) => (j(), me(It, null, [
4812
+ g(m) && (g(v) === "v2" || g(c)) ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4813
+ g(m) && g(v) === "v2" && g(a) ? (j(), Oe(oi, { key: 1 })) : Pe("", !0),
4814
+ g(m) && g(v) !== "v2" && !g(c) ? (j(), me("div", ds, [
4815
+ R(En, {
4816
+ json: { url: g(y) }
4818
4817
  }, null, 8, ["json"]),
4819
4818
  I("iframe", {
4820
4819
  allow: "clipboard-read; clipboard-write",
4821
4820
  frameBorder: "0",
4822
4821
  height: "100%",
4823
4822
  width: "100%",
4824
- src: _(y)
4825
- }, null, 8, ds)
4823
+ src: g(y)
4824
+ }, null, 8, hs)
4826
4825
  ])) : Pe("", !0)
4827
4826
  ], 64));
4828
4827
  }
4829
4828
  });
4830
4829
  export {
4831
- Ps as default
4830
+ Cs as default
4832
4831
  };