@feedmepos/mf-connect 0.1.38-beta.3 → 0.1.38-beta.31

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 (110) hide show
  1. package/dist/{Analytic-DlzNe_iy.js → Analytic-C_nMR1Be.js} +15 -15
  2. package/dist/{App-S5t6byxx.js → App-s6O0r91S.js} +624 -618
  3. package/dist/{AuditLogs-FO7SmMm2.js → AuditLogs-BcVkpvGw.js} +14 -14
  4. package/dist/{Bin-D--pK-f4.js → Bin-C5g9jHoQ.js} +9 -9
  5. package/dist/Broadcast-JPTVWDJC.js +233 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C6MYdWnX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CloO2B7A.js} +6 -6
  7. package/dist/{Card-DHL6WnwR.js → Card-Dgj6yukn.js} +143 -137
  8. package/dist/{Collections-DnonNjPT.js → Collections-D-aFYRCq.js} +82 -76
  9. package/dist/Credit-BZcRB9Wj.js +228 -0
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DnPPICf0.js +3117 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C4zzEOCb.js → EffectSheet.vue_vue_type_style_index_0_lang-DbSiVLaJ.js} +100 -99
  13. package/dist/Experience-DHQPxVv3.js +229 -0
  14. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  15. package/dist/{Game-Bkl0JnBq.js → Game-C1XnMgil.js} +103 -97
  16. package/dist/Grab-BbHccgZO.js +301 -0
  17. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js} +8 -8
  18. package/dist/{Index-BXTpF6kN.js → Index-DYZsN2H3.js} +54 -54
  19. package/dist/{Marketing-kk88gqDC.js → Marketing-DnsPHYpt.js} +7112 -5424
  20. package/dist/{Member-Cq-orpRf.js → Member-rkdV1fVo.js} +10 -10
  21. package/dist/{MemberList-B0K6Djc0.js → MemberList-QaB13bxO.js} +33 -33
  22. package/dist/{MemberTransactions-BCrJz8M9.js → MemberTransactions-Dw5qHQVW.js} +1 -1
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BcGhTM5H.js → MessageInput.vue_vue_type_script_setup_true_lang-DGyv0LMu.js} +5789 -5515
  24. package/dist/{Mission-BF1Z-Veq.js → Mission-B7rAzf6O.js} +112 -106
  25. package/dist/{Overview-CLSBBnZz.js → Overview-Cg4Szz05.js} +21 -21
  26. package/dist/Point-DuKS8-0D.js +232 -0
  27. package/dist/{Promotion-CGwxt3l3.js → Promotion-CFtLq-LB.js} +11 -11
  28. package/dist/{Queue-Dihw6DCV.js → Queue-BZONVNCP.js} +13 -13
  29. package/dist/{Record-ChSb722p.js → Record-jNEahJNC.js} +10 -10
  30. package/dist/{Reward-8oKlHA-x.js → Reward-VS6C6NQO.js} +15 -15
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D--YGFcF.js → RewardGroup.vue_vue_type_script_setup_true_lang-D4KMGgkv.js} +11 -11
  32. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cb-WJA0i.js +1763 -0
  33. package/dist/{Segment-BbYgbJ7w.js → Segment-DK5tqeOF.js} +274 -274
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dy_G8md1.js → SelectItems.vue_vue_type_script_setup_true_lang-AYAwO37B.js} +14 -14
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BFhY3cve.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-K8js6fbo.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-WEiXy4o1.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-lcPHPa4K.js} +3 -3
  37. package/dist/{Setting-B75a5DWV.js → Setting-BtiUlWRc.js} +459 -444
  38. package/dist/{Store-Cb8Et93b.js → Store-DqFW5hr_.js} +472 -465
  39. package/dist/{StoreRewards-DEI9VJHO.js → StoreRewards-g-3WtxwG.js} +15 -15
  40. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BGBl4Zla.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DNT4PWgl.js} +208 -222
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-92NnMkro.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CXYnNSta.js} +1 -1
  42. package/dist/{Tier-BB4AyAZV.js → Tier-SHij9zKX.js} +230 -227
  43. package/dist/{Title-Cla1U1ye.js → Title-_2JVV1rW.js} +142 -139
  44. package/dist/{Transaction-fHFbemk-.js → Transaction-BHLb6hZN.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-yS5qh7za.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DolBmHzN.js} +6 -6
  46. package/dist/{Voucher-CraCvVuq.js → Voucher-CJk8ZuCA.js} +14 -14
  47. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DqKT6Fep.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BviU3rz6.js} +86 -86
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B14K5zel.js → ZodTextField.vue_vue_type_script_setup_true_lang-R4Xcn7gl.js} +1 -1
  49. package/dist/app-BpcIC6Ud.js +57962 -0
  50. package/dist/{app-B8hYhD6p.js → app-D9ygZVP0.js} +678 -597
  51. package/dist/app.js +1 -1
  52. package/dist/{business-CwtLYoAT.js → business-CzJxdKc-.js} +11 -8
  53. package/dist/{campaign-BwM5SLyy.js → campaign-RKjwSpJk.js} +29 -16
  54. package/dist/{campaign-Bea47E3G.js → campaign-s_7F9I6R.js} +29 -25
  55. package/dist/{campaign.enum-v4z9v1aa.js → campaign.enum-BlGYJ6p4.js} +3 -2
  56. package/dist/{campaign.fn-CV5s8XUt.js → campaign.fn-aH0pz1jU.js} +95 -95
  57. package/dist/{collectible.enum-BGt9xa0D.js → collectible.enum-DYV8J5Mg.js} +1 -1
  58. package/dist/{collection.fn-DFzVxsA9.js → collection.fn-lLG_rLyd.js} +2 -2
  59. package/dist/dto-Cx-z2h2_.js +222 -0
  60. package/dist/{effect-DQtWLIrF.js → effect-DV2GiHqM.js} +1 -1
  61. package/dist/{email-addresses-I8wDL9bh.js → email-addresses-DTfbKDsC.js} +1 -1
  62. package/dist/{export-BauRZnqp.js → export-hHjutAC3.js} +4 -4
  63. package/dist/{helper-B2Q1CLCG.js → helper-oy_DH4P5.js} +1 -1
  64. package/dist/{index-CCJqmSob.js → index-8t9y1bUZ.js} +1 -1
  65. package/dist/{index-B20y17xe.js → index-B1C5UjP5.js} +3 -3
  66. package/dist/{index-DQpw4Va-.js → index-B79nkieV.js} +1452 -1452
  67. package/dist/{index-DGuR3NRj.js → index-BA6oC2L9.js} +3 -3
  68. package/dist/{index-BdizAaMz.js → index-Ba05Naif.js} +16 -16
  69. package/dist/{index-B1Bdn9rV.js → index-BoRTW-dI.js} +196 -16
  70. package/dist/{index-CgYAHnlX.js → index-CUGS4y58.js} +861 -714
  71. package/dist/{index-IXY9hkrD.js → index-CV_3mltA.js} +1 -1
  72. package/dist/{index-DtfWwcp4.js → index-ClgsfK3Y.js} +1 -1
  73. package/dist/{index-dK8fMQ5h.js → index-CtxtD8HE.js} +1 -1
  74. package/dist/{index-aguYFa7D.js → index-CycW9ri6.js} +6347 -6305
  75. package/dist/{index-s1IB44jY.js → index-D8JDdV2w.js} +1 -1
  76. package/dist/{index-Bv3aqvRF.js → index-DJlZYwDo.js} +11 -4
  77. package/dist/{index-yOFbPJEE.js → index-sSxaqeIi.js} +1 -1
  78. package/dist/{index.esm2017-VwpfHNpU.js → index.esm2017-B3-oEraK.js} +34 -34
  79. package/dist/{loading-BFKvxqlx.js → loading-D98ofaCB.js} +1 -1
  80. package/dist/{membership-Cgzqg1Vw.js → membership-CwbI7ZrE.js} +3 -3
  81. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  82. package/dist/{money-DIh7Uegf.js → money-D5cHxcPB.js} +1 -1
  83. package/dist/{number-onslf0BL.js → number-CPEEKMZZ.js} +1 -1
  84. package/dist/objectid-Be_atBnH.js +145 -0
  85. package/dist/{plugins-hfoXoiK2.js → plugins-B55BRo5q.js} +2 -2
  86. package/dist/{reward-CYC7hCgM.js → reward-xrTcTYjt.js} +1 -1
  87. package/dist/rule-builder-NTDBB2kj.js +93 -0
  88. package/dist/{rule-C_M3oFLI.js → rule-w89XmfIg.js} +4 -4
  89. package/dist/style.css +1 -1
  90. package/dist/{template-C6URy7QF.js → template-Bt_auQZW.js} +5 -5
  91. package/dist/timezone-BcBn2Kb_.js +1151 -0
  92. package/dist/{trigger-CZAiHFT5.js → trigger-D_6mNiva.js} +4 -4
  93. package/dist/usePagination-Ds-cuHop.js +223 -0
  94. package/dist/{user-uo2wREaB.js → user-B6YOJ_7r.js} +1 -1
  95. package/dist/{vue-i18n-Ba5EWUgR.js → vue-i18n-QvFKKqSt.js} +418 -418
  96. package/dist/{xlsx-CIJPKm4G.js → xlsx-Dr9Ctrs4.js} +1 -1
  97. package/package.json +6 -5
  98. package/dist/Broadcast-BYL3w06w.js +0 -227
  99. package/dist/Credit-BMeykOe-.js +0 -222
  100. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6Ps8njr.js +0 -2185
  101. package/dist/Experience-Lu8sCso6.js +0 -223
  102. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  103. package/dist/Point-BZ2Bgfw8.js +0 -226
  104. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-GSqXPvRs.js +0 -1728
  105. package/dist/app-BVCw28s0.js +0 -33357
  106. package/dist/dto-BgJqr4qT.js +0 -214
  107. package/dist/objectid-vtlpVGBH.js +0 -145
  108. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  109. package/dist/rule-builder-BOG14MYK.js +0 -89
  110. package/dist/usePagination-BeF5K3M7.js +0 -223
@@ -1,153 +1,166 @@
1
- import { defineComponent as lt, ref as ne, h as B, watch as ut, resolveComponent as Yt, openBlock as ie, createBlock as dt, unref as P, computed as Ve, onMounted as Xt, createElementBlock as $e, Fragment as Qt, createCommentVNode as He, createVNode as Zt, createElementVNode as en, nextTick as tn } from "vue";
2
- import { useRouter as nn, useRoute as ht, RouterView as rn } from "vue-router";
3
- import { useCoreStore as We, FeedMeAuth as sn } from "@feedmepos/mf-common";
4
- import { u as on } from "./app-wDQR6dpb.js";
5
- import { u as an } from "./business-CwtLYoAT.js";
6
- import "./index-CCJqmSob.js";
7
- import { components as q, useSnackbar as cn, useDialog as ln } from "@feedmepos/ui-library";
8
- import { u as un } from "./vue-i18n-Ba5EWUgR.js";
9
- import { R as h } from "./app-B8hYhD6p.js";
10
- import { J as dn } from "./JsonViewer-v8_C7l5N.js";
11
- import { r as ye, L as hn, g as ft, i as fn, a as pn, _ as je, C as Ge, b as mn, S as J, c as w, d as j, E as Se, e as gn, f as pt, h as _n, j as vn, k as mt, l as g, m as In, F as Re, n as Tn, q as Y, o as wn, p as yn, s as En, t as kn, u as bn } from "./index.esm2017-VwpfHNpU.js";
12
- import { _ as Pe } from "./tslib.es6-BCqqvLQ_.js";
13
- import { S as Be, c as Sn } from "./index-aguYFa7D.js";
14
- import { Y as Rn } from "./remy-vue-client-Cpppk9h-.js";
15
- const Pn = /* @__PURE__ */ lt({
1
+ import { defineComponent as ht, ref as te, h as B, computed as Ee, watch as ft, resolveComponent as Zt, openBlock as ne, createElementBlock as ke, createVNode as pt, unref as v, createElementVNode as ie, toDisplayString as We, onMounted as en, Fragment as tn, createBlock as nn, createCommentVNode as Ge, nextTick as rn } from "vue";
2
+ import { useRouter as sn, useRoute as mt, RouterView as on } from "vue-router";
3
+ import { useCoreStore as be, FeedMeAuth as an } from "@feedmepos/mf-common";
4
+ import { u as cn } from "./app-wDQR6dpb.js";
5
+ import { u as ln } from "./business-CzJxdKc-.js";
6
+ import "./index-8t9y1bUZ.js";
7
+ import { components as z, useSnackbar as un, useDialog as dn } from "@feedmepos/ui-library";
8
+ import { u as hn } from "./vue-i18n-QvFKKqSt.js";
9
+ import { C as Be, m as fn } from "./timezone-BcBn2Kb_.js";
10
+ import { R as f } from "./app-D9ygZVP0.js";
11
+ import { J as pn } from "./JsonViewer-v8_C7l5N.js";
12
+ import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as W, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as Pn } from "./index.esm2017-B3-oEraK.js";
13
+ import { _ as Ne } from "./tslib.es6-BCqqvLQ_.js";
14
+ import { S as Ke, c as An } from "./index-CycW9ri6.js";
15
+ const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Nn = /* @__PURE__ */ ht({
16
16
  __name: "NavigationTab",
17
17
  setup(n) {
18
- const { t: e } = un(), t = ne(), i = [
18
+ const { t: e } = hn(), t = te(), i = [
19
19
  {
20
20
  label: e("connect.navigation.analytic"),
21
- value: h["$connect-ANALYTIC"]
21
+ value: f["$connect-ANALYTIC"]
22
22
  },
23
23
  {
24
24
  label: e("connect.navigation.campaign"),
25
- value: h["$connect-CAMPAIGN"],
25
+ value: f["$connect-CAMPAIGN"],
26
26
  children: [
27
27
  {
28
28
  label: e("connect.navigation.promotion"),
29
- value: h["$connect-CAMPAIGN_PROMOTION"]
29
+ value: f["$connect-CAMPAIGN_PROMOTION"]
30
30
  },
31
31
  {
32
32
  label: e("connect.navigation.voucher"),
33
- value: h["$connect-CAMPAIGN_VOUCHER"]
33
+ value: f["$connect-CAMPAIGN_VOUCHER"]
34
34
  },
35
35
  {
36
36
  label: e("connect.navigation.broadcast"),
37
- value: h["$connect-CAMPAIGN_BROADCAST"]
37
+ value: f["$connect-CAMPAIGN_BROADCAST"]
38
+ },
39
+ {
40
+ label: e("connect.navigation.grab"),
41
+ value: f["$connect-CAMPAIGN_GRAB"]
38
42
  }
39
43
  ]
40
44
  },
41
45
  {
42
46
  label: e("connect.navigation.program"),
43
- value: h["$connect-PROGRAM"],
47
+ value: f["$connect-PROGRAM"],
44
48
  children: [
45
49
  {
46
50
  label: e("connect.navigation.tier"),
47
- value: h["$connect-PROGRAM_TIER"]
51
+ value: f["$connect-PROGRAM_TIER"]
48
52
  },
49
53
  {
50
54
  label: e("connect.navigation.title"),
51
- value: h["$connect-PROGRAM_TITLE"]
55
+ value: f["$connect-PROGRAM_TITLE"]
52
56
  },
53
57
  {
54
58
  label: e("connect.navigation.experience"),
55
- value: h["$connect-PROGRAM_EXPERIENCE"]
59
+ value: f["$connect-PROGRAM_EXPERIENCE"]
56
60
  },
57
61
  {
58
62
  label: e("connect.navigation.point"),
59
- value: h["$connect-PROGRAM_POINT"],
60
- badge: () => B(q.FmPill, { variant: "premium" })
63
+ value: f["$connect-PROGRAM_POINT"],
64
+ badge: () => B(z.FmPill, { variant: "premium" })
61
65
  },
62
66
  {
63
67
  label: e("connect.navigation.credit"),
64
- value: h["$connect-PROGRAM_CREDIT"]
68
+ value: f["$connect-PROGRAM_CREDIT"]
65
69
  },
66
70
  {
67
71
  label: e("connect.navigation.game"),
68
- value: h["$connect-PROGRAM_GAME"],
69
- badge: () => B(q.FmPill, { variant: "premium" })
72
+ value: f["$connect-PROGRAM_GAME"],
73
+ badge: () => B(z.FmPill, { variant: "premium" })
70
74
  },
71
75
  {
72
76
  label: "Mission",
73
- value: h["$connect-PROGRAM_MISSION"]
77
+ value: f["$connect-PROGRAM_MISSION"]
74
78
  }
75
79
  ]
76
80
  },
77
81
  {
78
82
  label: e("connect.navigation.loyalty"),
79
- value: h["$connect-LOYALTY"],
83
+ value: f["$connect-LOYALTY"],
80
84
  children: [
81
85
  {
82
86
  label: e("connect.navigation.member"),
83
- value: h["$connect-LOYALTY_MEMBER_LIST"]
87
+ value: f["$connect-LOYALTY_MEMBER_LIST"]
84
88
  },
85
89
  {
86
90
  label: e("connect.navigation.segments"),
87
- value: h["$connect-LOYALTY_SEGMENT"],
88
- badge: () => B(q.FmPill, { variant: "premium" })
91
+ value: f["$connect-LOYALTY_SEGMENT"],
92
+ badge: () => B(z.FmPill, { variant: "premium" })
89
93
  },
90
94
  {
91
95
  label: e("connect.navigation.card"),
92
- value: h["$connect-LOYALTY_CARD"],
93
- badge: () => B(q.FmPill, { variant: "premium" })
96
+ value: f["$connect-LOYALTY_CARD"],
97
+ badge: () => B(z.FmPill, { variant: "premium" })
94
98
  }
95
99
  ]
96
100
  },
97
101
  {
98
102
  label: e("connect.navigation.referral"),
99
- value: h["$connect-REFERRAL"],
100
- badge: () => B(q.FmPill, { variant: "premium" })
103
+ value: f["$connect-REFERRAL"],
104
+ badge: () => B(z.FmPill, { variant: "premium" })
101
105
  },
102
106
  {
103
107
  label: e("connect.navigation.store"),
104
- value: h["$connect-STORE"]
108
+ value: f["$connect-STORE"]
105
109
  },
106
110
  {
107
111
  label: e("connect.navigation.transaction"),
108
- value: h["$connect-TRANSACTION"]
112
+ value: f["$connect-TRANSACTION"]
109
113
  },
110
114
  {
111
115
  label: "Marketing material",
112
- value: h["$connect-MARKETING"]
116
+ value: f["$connect-MARKETING"]
113
117
  },
114
118
  {
115
119
  label: e("connect.navigation.auditLogs"),
116
- value: h["$connect-AUDIT_LOGS"]
120
+ value: f["$connect-AUDIT_LOGS"]
117
121
  },
118
122
  {
119
123
  label: e("connect.navigation.setting"),
120
- value: h["$connect-SETTING"]
124
+ value: f["$connect-SETTING"]
121
125
  },
122
126
  {
123
127
  label: e("connect.navigation.bin"),
124
- value: h["$connect-BIN"]
128
+ value: f["$connect-BIN"]
125
129
  }
126
- ], r = nn(), s = ht(), o = i.reduce((a, l) => [...(l.children ?? []).map((d) => d.value), ...a, l.value], []);
127
- ut(
130
+ ], r = sn(), s = mt(), o = i.reduce((d, h) => [...(h.children ?? []).map((p) => p.value), ...d, h.value], []), c = be(), a = Ee(() => {
131
+ const d = c.currentCountry.value || "MY";
132
+ return console.log(`[MF] Timezone set to: ${Be[d]}`), Be[d];
133
+ });
134
+ ft(
128
135
  () => s,
129
- (a) => {
130
- const l = a.matched.map((d) => d.name).reverse();
131
- t.value = l.find((d) => o.includes(d));
136
+ (d) => {
137
+ const h = d.matched.map((p) => p.name).reverse();
138
+ t.value = h.find((p) => o.includes(p));
132
139
  },
133
140
  { immediate: !0 }
134
141
  );
135
- async function c(a) {
136
- await r.push({ name: a });
142
+ async function l(d) {
143
+ await r.push({ name: d });
137
144
  }
138
- return (a, l) => {
139
- var f;
140
- const d = Yt("FmCollapsibleTabs");
141
- return ie(), dt(d, {
142
- class: "border-fm-color-neutral-gray-100 border-r py-16 px-4",
143
- "model-value": (f = P(t)) == null ? void 0 : f.toString(),
144
- items: i,
145
- "onUpdate:modelValue": c
146
- }, null, 8, ["model-value"]);
145
+ return (d, h) => {
146
+ var w;
147
+ const p = Zt("FmCollapsibleTabs");
148
+ return ne(), ke("div", Cn, [
149
+ pt(p, {
150
+ class: "border-fm-color-neutral-gray-100 border-r px-4",
151
+ "model-value": (w = v(t)) == null ? void 0 : w.toString(),
152
+ items: i,
153
+ "onUpdate:modelValue": l
154
+ }, null, 8, ["model-value"]),
155
+ ie("div", On, [
156
+ ie("div", null, "Timezone: " + We(v(a).split("/")[1].replace("_", " ")), 1),
157
+ ie("div", null, "(UTC" + We(v(fn).tz(v(a)).format("Z")) + ")", 1)
158
+ ])
159
+ ]);
147
160
  };
148
161
  }
149
162
  });
150
- var An = "firebase", Cn = "10.12.4";
163
+ var Ln = "firebase", Mn = "10.12.4";
151
164
  /**
152
165
  * @license
153
166
  * Copyright 2020 Google LLC
@@ -164,13 +177,13 @@ var An = "firebase", Cn = "10.12.4";
164
177
  * See the License for the specific language governing permissions and
165
178
  * limitations under the License.
166
179
  */
167
- ye(An, Cn, "app");
168
- function gt() {
180
+ Se(Ln, Mn, "app");
181
+ function It() {
169
182
  return {
170
183
  "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."
171
184
  };
172
185
  }
173
- const On = gt, _t = new Se("auth", "Firebase", gt());
186
+ const Un = It, Tt = new Ce("auth", "Firebase", It());
174
187
  /**
175
188
  * @license
176
189
  * Copyright 2020 Google LLC
@@ -187,12 +200,12 @@ const On = gt, _t = new Se("auth", "Firebase", gt());
187
200
  * See the License for the specific language governing permissions and
188
201
  * limitations under the License.
189
202
  */
190
- const ce = new hn("@firebase/auth");
191
- function Nn(n, ...e) {
192
- ce.logLevel <= mt.WARN && ce.warn(`Auth (${J}): ${n}`, ...e);
203
+ const ce = new mn("@firebase/auth");
204
+ function Dn(n, ...e) {
205
+ ce.logLevel <= vt.WARN && ce.warn(`Auth (${J}): ${n}`, ...e);
193
206
  }
194
207
  function re(n, ...e) {
195
- ce.logLevel <= mt.ERROR && ce.error(`Auth (${J}): ${n}`, ...e);
208
+ ce.logLevel <= vt.ERROR && ce.error(`Auth (${J}): ${n}`, ...e);
196
209
  }
197
210
  /**
198
211
  * @license
@@ -210,38 +223,38 @@ function re(n, ...e) {
210
223
  * See the License for the specific language governing permissions and
211
224
  * limitations under the License.
212
225
  */
213
- function b(n, ...e) {
214
- throw Ae(n, ...e);
226
+ function R(n, ...e) {
227
+ throw Le(n, ...e);
215
228
  }
216
- function I(n, ...e) {
217
- return Ae(n, ...e);
229
+ function T(n, ...e) {
230
+ return Le(n, ...e);
218
231
  }
219
- function vt(n, e, t) {
220
- const i = Object.assign(Object.assign({}, On()), { [e]: t });
221
- return new Se("auth", "Firebase", i).create(e, {
232
+ function yt(n, e, t) {
233
+ const i = Object.assign(Object.assign({}, Un()), { [e]: t });
234
+ return new Ce("auth", "Firebase", i).create(e, {
222
235
  appName: n.name
223
236
  });
224
237
  }
225
- function L(n) {
226
- return vt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
238
+ function M(n) {
239
+ return yt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
227
240
  }
228
- function Ae(n, ...e) {
241
+ function Le(n, ...e) {
229
242
  if (typeof n != "string") {
230
243
  const t = e[0], i = [...e.slice(1)];
231
244
  return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
232
245
  }
233
- return _t.create(n, ...e);
246
+ return Tt.create(n, ...e);
234
247
  }
235
248
  function u(n, e, ...t) {
236
249
  if (!n)
237
- throw Ae(e, ...t);
250
+ throw Le(e, ...t);
238
251
  }
239
- function y(n) {
252
+ function k(n) {
240
253
  const e = "INTERNAL ASSERTION FAILED: " + n;
241
254
  throw re(e), new Error(e);
242
255
  }
243
- function S(n, e) {
244
- n || y(e);
256
+ function P(n, e) {
257
+ n || k(e);
245
258
  }
246
259
  /**
247
260
  * @license
@@ -259,14 +272,14 @@ function S(n, e) {
259
272
  * See the License for the specific language governing permissions and
260
273
  * limitations under the License.
261
274
  */
262
- function Ee() {
275
+ function Re() {
263
276
  var n;
264
277
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
265
278
  }
266
- function Ln() {
267
- return qe() === "http:" || qe() === "https:";
279
+ function Fn() {
280
+ return Je() === "http:" || Je() === "https:";
268
281
  }
269
- function qe() {
282
+ function Je() {
270
283
  var n;
271
284
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.protocol) || null;
272
285
  }
@@ -286,15 +299,15 @@ function qe() {
286
299
  * See the License for the specific language governing permissions and
287
300
  * limitations under the License.
288
301
  */
289
- function Mn() {
302
+ function xn() {
290
303
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
291
304
  // This is especially true for Cordova apps which have unreliable
292
305
  // navigator.onLine behavior unless cordova-plugin-network-information is
293
306
  // installed which overwrites the native navigator.onLine value and
294
307
  // defines navigator.connection.
295
- (Ln() || mn() || "connection" in navigator) ? navigator.onLine : !0;
308
+ (Fn() || vn() || "connection" in navigator) ? navigator.onLine : !0;
296
309
  }
297
- function Un() {
310
+ function Vn() {
298
311
  if (typeof navigator > "u")
299
312
  return null;
300
313
  const n = navigator;
@@ -324,10 +337,10 @@ function Un() {
324
337
  */
325
338
  class X {
326
339
  constructor(e, t) {
327
- this.shortDelay = e, this.longDelay = t, S(t > e, "Short delay should be less than long delay!"), this.isMobile = fn() || pn();
340
+ this.shortDelay = e, this.longDelay = t, P(t > e, "Short delay should be less than long delay!"), this.isMobile = gn() || _n();
328
341
  }
329
342
  get() {
330
- return Mn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
343
+ return xn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
331
344
  }
332
345
  }
333
346
  /**
@@ -346,8 +359,8 @@ class X {
346
359
  * See the License for the specific language governing permissions and
347
360
  * limitations under the License.
348
361
  */
349
- function Ce(n, e) {
350
- S(n.emulator, "Emulator should always be set here");
362
+ function Me(n, e) {
363
+ P(n.emulator, "Emulator should always be set here");
351
364
  const { url: t } = n.emulator;
352
365
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
353
366
  }
@@ -367,7 +380,7 @@ function Ce(n, e) {
367
380
  * See the License for the specific language governing permissions and
368
381
  * limitations under the License.
369
382
  */
370
- class It {
383
+ class wt {
371
384
  static initialize(e, t, i) {
372
385
  this.fetchImpl = e, t && (this.headersImpl = t), i && (this.responseImpl = i);
373
386
  }
@@ -380,7 +393,7 @@ class It {
380
393
  return globalThis.fetch;
381
394
  if (typeof fetch < "u")
382
395
  return fetch;
383
- y("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
396
+ k("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
384
397
  }
385
398
  static headers() {
386
399
  if (this.headersImpl)
@@ -391,7 +404,7 @@ class It {
391
404
  return globalThis.Headers;
392
405
  if (typeof Headers < "u")
393
406
  return Headers;
394
- y("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
407
+ k("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
395
408
  }
396
409
  static response() {
397
410
  if (this.responseImpl)
@@ -402,7 +415,7 @@ class It {
402
415
  return globalThis.Response;
403
416
  if (typeof Response < "u")
404
417
  return Response;
405
- y("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
418
+ k("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
406
419
  }
407
420
  }
408
421
  /**
@@ -421,7 +434,7 @@ class It {
421
434
  * See the License for the specific language governing permissions and
422
435
  * limitations under the License.
423
436
  */
424
- const Dn = {
437
+ const $n = {
425
438
  // Custom token errors.
426
439
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
427
440
  // This can only happen if the SDK sends a bad request.
@@ -512,12 +525,12 @@ const Dn = {
512
525
  * See the License for the specific language governing permissions and
513
526
  * limitations under the License.
514
527
  */
515
- const Fn = new X(3e4, 6e4);
528
+ const Hn = new X(3e4, 6e4);
516
529
  function fe(n, e) {
517
530
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
518
531
  }
519
532
  async function G(n, e, t, i, r = {}) {
520
- return Tt(n, r, async () => {
533
+ return Et(n, r, async () => {
521
534
  let s = {}, o = {};
522
535
  i && (e === "GET" ? o = i : s = {
523
536
  body: JSON.stringify(i)
@@ -529,76 +542,76 @@ async function G(n, e, t, i, r = {}) {
529
542
  ] = "application/json", n.languageCode && (a[
530
543
  "X-Firebase-Locale"
531
544
  /* HttpHeader.X_FIREBASE_LOCALE */
532
- ] = n.languageCode), It.fetch()(yt(n, n.config.apiHost, t, c), Object.assign({
545
+ ] = n.languageCode), wt.fetch()(bt(n, n.config.apiHost, t, c), Object.assign({
533
546
  method: e,
534
547
  headers: a,
535
548
  referrerPolicy: "no-referrer"
536
549
  }, s));
537
550
  });
538
551
  }
539
- async function Tt(n, e, t) {
552
+ async function Et(n, e, t) {
540
553
  n._canInitEmulator = !1;
541
- const i = Object.assign(Object.assign({}, Dn), e);
554
+ const i = Object.assign(Object.assign({}, $n), e);
542
555
  try {
543
- const r = new xn(n), s = await Promise.race([
556
+ const r = new jn(n), s = await Promise.race([
544
557
  t(),
545
558
  r.promise
546
559
  ]);
547
560
  r.clearNetworkTimeout();
548
561
  const o = await s.json();
549
562
  if ("needConfirmation" in o)
550
- throw te(n, "account-exists-with-different-credential", o);
563
+ throw ee(n, "account-exists-with-different-credential", o);
551
564
  if (s.ok && !("errorMessage" in o))
552
565
  return o;
553
566
  {
554
567
  const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
555
568
  if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
556
- throw te(n, "credential-already-in-use", o);
569
+ throw ee(n, "credential-already-in-use", o);
557
570
  if (a === "EMAIL_EXISTS")
558
- throw te(n, "email-already-in-use", o);
571
+ throw ee(n, "email-already-in-use", o);
559
572
  if (a === "USER_DISABLED")
560
- throw te(n, "user-disabled", o);
573
+ throw ee(n, "user-disabled", o);
561
574
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
562
575
  if (l)
563
- throw vt(n, d, l);
564
- b(n, d);
576
+ throw yt(n, d, l);
577
+ R(n, d);
565
578
  }
566
579
  } catch (r) {
567
- if (r instanceof Re)
580
+ if (r instanceof Oe)
568
581
  throw r;
569
- b(n, "network-request-failed", { message: String(r) });
582
+ R(n, "network-request-failed", { message: String(r) });
570
583
  }
571
584
  }
572
- async function wt(n, e, t, i, r = {}) {
585
+ async function kt(n, e, t, i, r = {}) {
573
586
  const s = await G(n, e, t, i, r);
574
- return "mfaPendingCredential" in s && b(n, "multi-factor-auth-required", {
587
+ return "mfaPendingCredential" in s && R(n, "multi-factor-auth-required", {
575
588
  _serverResponse: s
576
589
  }), s;
577
590
  }
578
- function yt(n, e, t, i) {
591
+ function bt(n, e, t, i) {
579
592
  const r = `${e}${t}?${i}`;
580
- return n.config.emulator ? Ce(n.config, r) : `${n.config.apiScheme}://${r}`;
593
+ return n.config.emulator ? Me(n.config, r) : `${n.config.apiScheme}://${r}`;
581
594
  }
582
- class xn {
595
+ class jn {
583
596
  constructor(e) {
584
597
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
585
- this.timer = setTimeout(() => i(I(
598
+ this.timer = setTimeout(() => i(T(
586
599
  this.auth,
587
600
  "network-request-failed"
588
601
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
589
- )), Fn.get());
602
+ )), Hn.get());
590
603
  });
591
604
  }
592
605
  clearNetworkTimeout() {
593
606
  clearTimeout(this.timer);
594
607
  }
595
608
  }
596
- function te(n, e, t) {
609
+ function ee(n, e, t) {
597
610
  const i = {
598
611
  appName: n.name
599
612
  };
600
613
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
601
- const r = I(n, e, i);
614
+ const r = T(n, e, i);
602
615
  return r.customData._tokenResponse = t, r;
603
616
  }
604
617
  /**
@@ -617,10 +630,10 @@ function te(n, e, t) {
617
630
  * See the License for the specific language governing permissions and
618
631
  * limitations under the License.
619
632
  */
620
- async function Vn(n, e) {
633
+ async function Wn(n, e) {
621
634
  return G(n, "POST", "/v1/accounts:delete", e);
622
635
  }
623
- async function Et(n, e) {
636
+ async function St(n, e) {
624
637
  return G(n, "POST", "/v1/accounts:lookup", e);
625
638
  }
626
639
  /**
@@ -639,7 +652,7 @@ async function Et(n, e) {
639
652
  * See the License for the specific language governing permissions and
640
653
  * limitations under the License.
641
654
  */
642
- function z(n) {
655
+ function q(n) {
643
656
  if (n)
644
657
  try {
645
658
  const e = new Date(Number(n));
@@ -648,8 +661,8 @@ function z(n) {
648
661
  } catch {
649
662
  }
650
663
  }
651
- async function $n(n, e = !1) {
652
- const t = j(n), i = await t.getIdToken(e), r = Oe(i);
664
+ async function Gn(n, e = !1) {
665
+ const t = W(n), i = await t.getIdToken(e), r = Ue(i);
653
666
  u(
654
667
  r && r.exp && r.auth_time && r.iat,
655
668
  t.auth,
@@ -660,29 +673,29 @@ async function $n(n, e = !1) {
660
673
  return {
661
674
  claims: r,
662
675
  token: i,
663
- authTime: z(Te(r.auth_time)),
664
- issuedAtTime: z(Te(r.iat)),
665
- expirationTime: z(Te(r.exp)),
676
+ authTime: q(ye(r.auth_time)),
677
+ issuedAtTime: q(ye(r.iat)),
678
+ expirationTime: q(ye(r.exp)),
666
679
  signInProvider: o || null,
667
680
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
668
681
  };
669
682
  }
670
- function Te(n) {
683
+ function ye(n) {
671
684
  return Number(n) * 1e3;
672
685
  }
673
- function Oe(n) {
686
+ function Ue(n) {
674
687
  const [e, t, i] = n.split(".");
675
688
  if (e === void 0 || t === void 0 || i === void 0)
676
689
  return re("JWT malformed, contained fewer than 3 sections"), null;
677
690
  try {
678
- const r = Tn(t);
691
+ const r = En(t);
679
692
  return r ? JSON.parse(r) : (re("Failed to decode base64 JWT payload"), null);
680
693
  } catch (r) {
681
694
  return re("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
682
695
  }
683
696
  }
684
- function ze(n) {
685
- const e = Oe(n);
697
+ function Ye(n) {
698
+ const e = Ue(n);
686
699
  return u(
687
700
  e,
688
701
  "internal-error"
@@ -719,10 +732,10 @@ async function K(n, e, t = !1) {
719
732
  try {
720
733
  return await e;
721
734
  } catch (i) {
722
- throw i instanceof Re && Hn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
735
+ throw i instanceof Oe && Bn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
723
736
  }
724
737
  }
725
- function Hn({ code: n }) {
738
+ function Bn({ code: n }) {
726
739
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
727
740
  }
728
741
  /**
@@ -741,7 +754,7 @@ function Hn({ code: n }) {
741
754
  * See the License for the specific language governing permissions and
742
755
  * limitations under the License.
743
756
  */
744
- class Wn {
757
+ class zn {
745
758
  constructor(e) {
746
759
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
747
760
  }
@@ -803,12 +816,12 @@ class Wn {
803
816
  * See the License for the specific language governing permissions and
804
817
  * limitations under the License.
805
818
  */
806
- class ke {
819
+ class Pe {
807
820
  constructor(e, t) {
808
821
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
809
822
  }
810
823
  _initializeTime() {
811
- this.lastSignInTime = z(this.lastLoginAt), this.creationTime = z(this.createdAt);
824
+ this.lastSignInTime = q(this.lastLoginAt), this.creationTime = q(this.createdAt);
812
825
  }
813
826
  _copy(e) {
814
827
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -838,7 +851,7 @@ class ke {
838
851
  */
839
852
  async function le(n) {
840
853
  var e;
841
- const t = n.auth, i = await n.getIdToken(), r = await K(n, Et(t, { idToken: i }));
854
+ const t = n.auth, i = await n.getIdToken(), r = await K(n, St(t, { idToken: i }));
842
855
  u(
843
856
  r == null ? void 0 : r.users.length,
844
857
  t,
@@ -847,7 +860,7 @@ async function le(n) {
847
860
  );
848
861
  const s = r.users[0];
849
862
  n._notifyReloadListener(s);
850
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? kt(s.providerUserInfo) : [], c = Gn(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, f = {
863
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Rt(s.providerUserInfo) : [], c = Kn(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, h = {
851
864
  uid: s.localId,
852
865
  displayName: s.displayName || null,
853
866
  photoURL: s.photoUrl || null,
@@ -856,21 +869,21 @@ async function le(n) {
856
869
  phoneNumber: s.phoneNumber || null,
857
870
  tenantId: s.tenantId || null,
858
871
  providerData: c,
859
- metadata: new ke(s.createdAt, s.lastLoginAt),
872
+ metadata: new Pe(s.createdAt, s.lastLoginAt),
860
873
  isAnonymous: d
861
874
  };
862
- Object.assign(n, f);
875
+ Object.assign(n, h);
863
876
  }
864
- async function jn(n) {
865
- const e = j(n);
877
+ async function qn(n) {
878
+ const e = W(n);
866
879
  await le(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
867
880
  }
868
- function Gn(n, e) {
881
+ function Kn(n, e) {
869
882
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
870
883
  }
871
- function kt(n) {
884
+ function Rt(n) {
872
885
  return n.map((e) => {
873
- var { providerId: t } = e, i = Pe(e, ["providerId"]);
886
+ var { providerId: t } = e, i = Ne(e, ["providerId"]);
874
887
  return {
875
888
  providerId: t,
876
889
  uid: i.rawId || "",
@@ -897,16 +910,16 @@ function kt(n) {
897
910
  * See the License for the specific language governing permissions and
898
911
  * limitations under the License.
899
912
  */
900
- async function Bn(n, e) {
901
- const t = await Tt(n, {}, async () => {
913
+ async function Jn(n, e) {
914
+ const t = await Et(n, {}, async () => {
902
915
  const i = Y({
903
916
  grant_type: "refresh_token",
904
917
  refresh_token: e
905
- }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = yt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
918
+ }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = bt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
906
919
  return c[
907
920
  "Content-Type"
908
921
  /* HttpHeader.CONTENT_TYPE */
909
- ] = "application/x-www-form-urlencoded", It.fetch()(o, {
922
+ ] = "application/x-www-form-urlencoded", wt.fetch()(o, {
910
923
  method: "POST",
911
924
  headers: c,
912
925
  body: i
@@ -918,7 +931,7 @@ async function Bn(n, e) {
918
931
  refreshToken: t.refresh_token
919
932
  };
920
933
  }
921
- async function qn(n, e) {
934
+ async function Yn(n, e) {
922
935
  return G(n, "POST", "/v2/accounts:revokeToken", fe(n, e));
923
936
  }
924
937
  /**
@@ -958,7 +971,7 @@ class $ {
958
971
  "internal-error"
959
972
  /* AuthErrorCode.INTERNAL_ERROR */
960
973
  );
961
- const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : ze(e.idToken);
974
+ const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : Ye(e.idToken);
962
975
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
963
976
  }
964
977
  updateFromIdToken(e) {
@@ -967,7 +980,7 @@ class $ {
967
980
  "internal-error"
968
981
  /* AuthErrorCode.INTERNAL_ERROR */
969
982
  );
970
- const t = ze(e);
983
+ const t = Ye(e);
971
984
  this.updateTokensAndExpiration(e, null, t);
972
985
  }
973
986
  async getToken(e, t = !1) {
@@ -982,7 +995,7 @@ class $ {
982
995
  this.refreshToken = null;
983
996
  }
984
997
  async refresh(e, t) {
985
- const { accessToken: i, refreshToken: r, expiresIn: s } = await Bn(e, t);
998
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await Jn(e, t);
986
999
  this.updateTokensAndExpiration(i, r, Number(s));
987
1000
  }
988
1001
  updateTokensAndExpiration(e, t, i) {
@@ -1012,7 +1025,7 @@ class $ {
1012
1025
  return Object.assign(new $(), this.toJSON());
1013
1026
  }
1014
1027
  _performRefresh() {
1015
- return y("not implemented");
1028
+ return k("not implemented");
1016
1029
  }
1017
1030
  }
1018
1031
  /**
@@ -1031,13 +1044,13 @@ class $ {
1031
1044
  * See the License for the specific language governing permissions and
1032
1045
  * limitations under the License.
1033
1046
  */
1034
- function R(n, e) {
1047
+ function A(n, e) {
1035
1048
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1036
1049
  }
1037
- class E {
1050
+ class b {
1038
1051
  constructor(e) {
1039
- var { uid: t, auth: i, stsTokenManager: r } = e, s = Pe(e, ["uid", "auth", "stsTokenManager"]);
1040
- this.providerId = "firebase", this.proactiveRefresh = new Wn(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 ke(s.createdAt || void 0, s.lastLoginAt || void 0);
1052
+ var { uid: t, auth: i, stsTokenManager: r } = e, s = Ne(e, ["uid", "auth", "stsTokenManager"]);
1053
+ this.providerId = "firebase", this.proactiveRefresh = new zn(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 Pe(s.createdAt || void 0, s.lastLoginAt || void 0);
1041
1054
  }
1042
1055
  async getIdToken(e) {
1043
1056
  const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1049,10 +1062,10 @@ class E {
1049
1062
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1050
1063
  }
1051
1064
  getIdTokenResult(e) {
1052
- return $n(this, e);
1065
+ return Gn(this, e);
1053
1066
  }
1054
1067
  reload() {
1055
- return jn(this);
1068
+ return qn(this);
1056
1069
  }
1057
1070
  _assign(e) {
1058
1071
  this !== e && (u(
@@ -1063,7 +1076,7 @@ class E {
1063
1076
  ), 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));
1064
1077
  }
1065
1078
  _clone(e) {
1066
- const t = new E(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1079
+ const t = new b(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1067
1080
  return t.metadata._copy(this.metadata), t;
1068
1081
  }
1069
1082
  _onReload(e) {
@@ -1088,10 +1101,10 @@ class E {
1088
1101
  e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await le(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
1089
1102
  }
1090
1103
  async delete() {
1091
- if (w(this.auth.app))
1092
- return Promise.reject(L(this.auth));
1104
+ if (E(this.auth.app))
1105
+ return Promise.reject(M(this.auth));
1093
1106
  const e = await this.getIdToken();
1094
- return await K(this, Vn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1107
+ return await K(this, Wn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1095
1108
  }
1096
1109
  toJSON() {
1097
1110
  return Object.assign(Object.assign({
@@ -1119,45 +1132,45 @@ class E {
1119
1132
  }
1120
1133
  static _fromJSON(e, t) {
1121
1134
  var i, r, s, o, c, a, l, d;
1122
- const f = (i = t.displayName) !== null && i !== void 0 ? i : void 0, _ = (r = t.email) !== null && r !== void 0 ? r : void 0, x = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, M = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, ee = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, p = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, m = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, v = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: U, emailVerified: De, isAnonymous: Fe, providerData: ve, stsTokenManager: xe } = t;
1135
+ const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, p = (r = t.email) !== null && r !== void 0 ? r : void 0, w = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, U = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, m = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, I = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, x = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: ve, emailVerified: $e, isAnonymous: He, providerData: Ie, stsTokenManager: je } = t;
1123
1136
  u(
1124
- U && xe,
1137
+ ve && je,
1125
1138
  e,
1126
1139
  "internal-error"
1127
1140
  /* AuthErrorCode.INTERNAL_ERROR */
1128
1141
  );
1129
- const Kt = $.fromJSON(this.name, xe);
1142
+ const Xt = $.fromJSON(this.name, je);
1130
1143
  u(
1131
- typeof U == "string",
1144
+ typeof ve == "string",
1132
1145
  e,
1133
1146
  "internal-error"
1134
1147
  /* AuthErrorCode.INTERNAL_ERROR */
1135
- ), R(f, e.name), R(_, e.name), u(
1136
- typeof De == "boolean",
1148
+ ), A(h, e.name), A(p, e.name), u(
1149
+ typeof $e == "boolean",
1137
1150
  e,
1138
1151
  "internal-error"
1139
1152
  /* AuthErrorCode.INTERNAL_ERROR */
1140
1153
  ), u(
1141
- typeof Fe == "boolean",
1154
+ typeof He == "boolean",
1142
1155
  e,
1143
1156
  "internal-error"
1144
1157
  /* AuthErrorCode.INTERNAL_ERROR */
1145
- ), R(x, e.name), R(M, e.name), R(ee, e.name), R(p, e.name), R(m, e.name), R(v, e.name);
1146
- const Ie = new E({
1147
- uid: U,
1158
+ ), A(w, e.name), A(U, e.name), A(m, e.name), A(g, e.name), A(I, e.name), A(x, e.name);
1159
+ const Te = new b({
1160
+ uid: ve,
1148
1161
  auth: e,
1149
- email: _,
1150
- emailVerified: De,
1151
- displayName: f,
1152
- isAnonymous: Fe,
1153
- photoURL: M,
1154
- phoneNumber: x,
1155
- tenantId: ee,
1156
- stsTokenManager: Kt,
1157
- createdAt: m,
1158
- lastLoginAt: v
1162
+ email: p,
1163
+ emailVerified: $e,
1164
+ displayName: h,
1165
+ isAnonymous: He,
1166
+ photoURL: U,
1167
+ phoneNumber: w,
1168
+ tenantId: m,
1169
+ stsTokenManager: Xt,
1170
+ createdAt: I,
1171
+ lastLoginAt: x
1159
1172
  });
1160
- return ve && Array.isArray(ve) && (Ie.providerData = ve.map((Jt) => Object.assign({}, Jt))), p && (Ie._redirectEventId = p), Ie;
1173
+ return Ie && Array.isArray(Ie) && (Te.providerData = Ie.map((Qt) => Object.assign({}, Qt))), g && (Te._redirectEventId = g), Te;
1161
1174
  }
1162
1175
  /**
1163
1176
  * Initialize a User from an idToken server response
@@ -1167,7 +1180,7 @@ class E {
1167
1180
  static async _fromIdTokenResponse(e, t, i = !1) {
1168
1181
  const r = new $();
1169
1182
  r.updateFromServerResponse(t);
1170
- const s = new E({
1183
+ const s = new b({
1171
1184
  uid: t.localId,
1172
1185
  auth: e,
1173
1186
  stsTokenManager: r,
@@ -1187,9 +1200,9 @@ class E {
1187
1200
  "internal-error"
1188
1201
  /* AuthErrorCode.INTERNAL_ERROR */
1189
1202
  );
1190
- const s = r.providerUserInfo !== void 0 ? kt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new $();
1203
+ const s = r.providerUserInfo !== void 0 ? Rt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new $();
1191
1204
  c.updateFromIdToken(i);
1192
- const a = new E({
1205
+ const a = new b({
1193
1206
  uid: r.localId,
1194
1207
  auth: e,
1195
1208
  stsTokenManager: c,
@@ -1203,7 +1216,7 @@ class E {
1203
1216
  phoneNumber: r.phoneNumber || null,
1204
1217
  tenantId: r.tenantId || null,
1205
1218
  providerData: s,
1206
- metadata: new ke(r.createdAt, r.lastLoginAt),
1219
+ metadata: new Pe(r.createdAt, r.lastLoginAt),
1207
1220
  isAnonymous: !(r.email && r.passwordHash) && !(s != null && s.length)
1208
1221
  };
1209
1222
  return Object.assign(a, l), a;
@@ -1225,11 +1238,11 @@ class E {
1225
1238
  * See the License for the specific language governing permissions and
1226
1239
  * limitations under the License.
1227
1240
  */
1228
- const Ke = /* @__PURE__ */ new Map();
1229
- function k(n) {
1230
- S(n instanceof Function, "Expected a class definition");
1231
- let e = Ke.get(n);
1232
- return e ? (S(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Ke.set(n, e), e);
1241
+ const Xe = /* @__PURE__ */ new Map();
1242
+ function S(n) {
1243
+ P(n instanceof Function, "Expected a class definition");
1244
+ let e = Xe.get(n);
1245
+ return e ? (P(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Xe.set(n, e), e);
1233
1246
  }
1234
1247
  /**
1235
1248
  * @license
@@ -1247,7 +1260,7 @@ function k(n) {
1247
1260
  * See the License for the specific language governing permissions and
1248
1261
  * limitations under the License.
1249
1262
  */
1250
- class bt {
1263
+ class Pt {
1251
1264
  constructor() {
1252
1265
  this.type = "NONE", this.storage = {};
1253
1266
  }
@@ -1269,8 +1282,8 @@ class bt {
1269
1282
  _removeListener(e, t) {
1270
1283
  }
1271
1284
  }
1272
- bt.type = "NONE";
1273
- const Je = bt;
1285
+ Pt.type = "NONE";
1286
+ const Qe = Pt;
1274
1287
  /**
1275
1288
  * @license
1276
1289
  * Copyright 2019 Google LLC
@@ -1301,7 +1314,7 @@ class H {
1301
1314
  }
1302
1315
  async getCurrentUser() {
1303
1316
  const e = await this.persistence._get(this.fullUserKey);
1304
- return e ? E._fromJSON(this.auth, e) : null;
1317
+ return e ? b._fromJSON(this.auth, e) : null;
1305
1318
  }
1306
1319
  removeCurrentUser() {
1307
1320
  return this.persistence._remove(this.fullUserKey);
@@ -1321,20 +1334,20 @@ class H {
1321
1334
  }
1322
1335
  static async create(e, t, i = "authUser") {
1323
1336
  if (!t.length)
1324
- return new H(k(Je), e, i);
1337
+ return new H(S(Qe), e, i);
1325
1338
  const r = (await Promise.all(t.map(async (l) => {
1326
1339
  if (await l._isAvailable())
1327
1340
  return l;
1328
1341
  }))).filter((l) => l);
1329
- let s = r[0] || k(Je);
1342
+ let s = r[0] || S(Qe);
1330
1343
  const o = se(i, e.config.apiKey, e.name);
1331
1344
  let c = null;
1332
1345
  for (const l of t)
1333
1346
  try {
1334
1347
  const d = await l._get(o);
1335
1348
  if (d) {
1336
- const f = E._fromJSON(e, d);
1337
- l !== s && (c = f), s = l;
1349
+ const h = b._fromJSON(e, d);
1350
+ l !== s && (c = h), s = l;
1338
1351
  break;
1339
1352
  }
1340
1353
  } catch {
@@ -1365,29 +1378,29 @@ class H {
1365
1378
  * See the License for the specific language governing permissions and
1366
1379
  * limitations under the License.
1367
1380
  */
1368
- function Ye(n) {
1381
+ function Ze(n) {
1369
1382
  const e = n.toLowerCase();
1370
1383
  if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
1371
1384
  return "Opera";
1372
- if (Pt(e))
1385
+ if (Ot(e))
1373
1386
  return "IEMobile";
1374
1387
  if (e.includes("msie") || e.includes("trident/"))
1375
1388
  return "IE";
1376
1389
  if (e.includes("edge/"))
1377
1390
  return "Edge";
1378
- if (St(e))
1391
+ if (At(e))
1379
1392
  return "Firefox";
1380
1393
  if (e.includes("silk/"))
1381
1394
  return "Silk";
1382
- if (Ct(e))
1395
+ if (Lt(e))
1383
1396
  return "Blackberry";
1384
- if (Ot(e))
1397
+ if (Mt(e))
1385
1398
  return "Webos";
1386
- if (Ne(e))
1399
+ if (De(e))
1387
1400
  return "Safari";
1388
- if ((e.includes("chrome/") || Rt(e)) && !e.includes("edge/"))
1401
+ if ((e.includes("chrome/") || Ct(e)) && !e.includes("edge/"))
1389
1402
  return "Chrome";
1390
- if (At(e))
1403
+ if (Nt(e))
1391
1404
  return "Android";
1392
1405
  {
1393
1406
  const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, i = n.match(t);
@@ -1396,42 +1409,42 @@ function Ye(n) {
1396
1409
  }
1397
1410
  return "Other";
1398
1411
  }
1399
- function St(n = g()) {
1412
+ function At(n = _()) {
1400
1413
  return /firefox\//i.test(n);
1401
1414
  }
1402
- function Ne(n = g()) {
1415
+ function De(n = _()) {
1403
1416
  const e = n.toLowerCase();
1404
1417
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1405
1418
  }
1406
- function Rt(n = g()) {
1419
+ function Ct(n = _()) {
1407
1420
  return /crios\//i.test(n);
1408
1421
  }
1409
- function Pt(n = g()) {
1422
+ function Ot(n = _()) {
1410
1423
  return /iemobile/i.test(n);
1411
1424
  }
1412
- function At(n = g()) {
1425
+ function Nt(n = _()) {
1413
1426
  return /android/i.test(n);
1414
1427
  }
1415
- function Ct(n = g()) {
1428
+ function Lt(n = _()) {
1416
1429
  return /blackberry/i.test(n);
1417
1430
  }
1418
- function Ot(n = g()) {
1431
+ function Mt(n = _()) {
1419
1432
  return /webos/i.test(n);
1420
1433
  }
1421
- function pe(n = g()) {
1434
+ function pe(n = _()) {
1422
1435
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1423
1436
  }
1424
- function zn(n = g()) {
1437
+ function Xn(n = _()) {
1425
1438
  var e;
1426
1439
  return pe(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1427
1440
  }
1428
- function Kn() {
1429
- return wn() && document.documentMode === 10;
1441
+ function Qn() {
1442
+ return kn() && document.documentMode === 10;
1430
1443
  }
1431
- function Nt(n = g()) {
1432
- return pe(n) || At(n) || Ot(n) || Ct(n) || /windows phone/i.test(n) || Pt(n);
1444
+ function Ut(n = _()) {
1445
+ return pe(n) || Nt(n) || Mt(n) || Lt(n) || /windows phone/i.test(n) || Ot(n);
1433
1446
  }
1434
- function Jn() {
1447
+ function Zn() {
1435
1448
  try {
1436
1449
  return !!(window && window !== window.top);
1437
1450
  } catch {
@@ -1454,14 +1467,14 @@ function Jn() {
1454
1467
  * See the License for the specific language governing permissions and
1455
1468
  * limitations under the License.
1456
1469
  */
1457
- function Lt(n, e = []) {
1470
+ function Dt(n, e = []) {
1458
1471
  let t;
1459
1472
  switch (n) {
1460
1473
  case "Browser":
1461
- t = Ye(g());
1474
+ t = Ze(_());
1462
1475
  break;
1463
1476
  case "Worker":
1464
- t = `${Ye(g())}-${n}`;
1477
+ t = `${Ze(_())}-${n}`;
1465
1478
  break;
1466
1479
  default:
1467
1480
  t = n;
@@ -1485,7 +1498,7 @@ function Lt(n, e = []) {
1485
1498
  * See the License for the specific language governing permissions and
1486
1499
  * limitations under the License.
1487
1500
  */
1488
- class Yn {
1501
+ class ei {
1489
1502
  constructor(e) {
1490
1503
  this.auth = e, this.queue = [];
1491
1504
  }
@@ -1540,7 +1553,7 @@ class Yn {
1540
1553
  * See the License for the specific language governing permissions and
1541
1554
  * limitations under the License.
1542
1555
  */
1543
- async function Xn(n, e = {}) {
1556
+ async function ti(n, e = {}) {
1544
1557
  return G(n, "GET", "/v2/passwordPolicy", fe(n, e));
1545
1558
  }
1546
1559
  /**
@@ -1559,12 +1572,12 @@ async function Xn(n, e = {}) {
1559
1572
  * See the License for the specific language governing permissions and
1560
1573
  * limitations under the License.
1561
1574
  */
1562
- const Qn = 6;
1563
- class Zn {
1575
+ const ni = 6;
1576
+ class ii {
1564
1577
  constructor(e) {
1565
1578
  var t, i, r, s;
1566
1579
  const o = e.customStrengthOptions;
1567
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Qn, 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;
1580
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : ni, 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;
1568
1581
  }
1569
1582
  validatePassword(e) {
1570
1583
  var t, i, r, s, o, c;
@@ -1647,12 +1660,12 @@ class Zn {
1647
1660
  * See the License for the specific language governing permissions and
1648
1661
  * limitations under the License.
1649
1662
  */
1650
- class ei {
1663
+ class ri {
1651
1664
  constructor(e, t, i, r) {
1652
- 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 Xe(this), this.idTokenSubscription = new Xe(this), this.beforeStateQueue = new Yn(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 = _t, 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;
1665
+ 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 et(this), this.idTokenSubscription = new et(this), this.beforeStateQueue = new ei(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 = Tt, 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;
1653
1666
  }
1654
1667
  _initializeWithPersistence(e, t) {
1655
- return t && (this._popupRedirectResolver = k(t)), this._initializationPromise = this.queue(async () => {
1668
+ return t && (this._popupRedirectResolver = S(t)), this._initializationPromise = this.queue(async () => {
1656
1669
  var i, r;
1657
1670
  if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
1658
1671
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
@@ -1685,7 +1698,7 @@ class ei {
1685
1698
  }
1686
1699
  async initializeCurrentUserFromIdToken(e) {
1687
1700
  try {
1688
- const t = await Et(this, { idToken: e }), i = await E._fromGetAccountInfoResponse(this, t, e);
1701
+ const t = await St(this, { idToken: e }), i = await b._fromGetAccountInfoResponse(this, t, e);
1689
1702
  await this.directlySetCurrentUser(i);
1690
1703
  } catch (t) {
1691
1704
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -1693,7 +1706,7 @@ class ei {
1693
1706
  }
1694
1707
  async initializeCurrentUser(e) {
1695
1708
  var t;
1696
- if (w(this.app)) {
1709
+ if (E(this.app)) {
1697
1710
  const o = this.app.settings.authIdToken;
1698
1711
  return o ? new Promise((c) => {
1699
1712
  setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
@@ -1743,15 +1756,15 @@ class ei {
1743
1756
  return this.directlySetCurrentUser(e);
1744
1757
  }
1745
1758
  useDeviceLanguage() {
1746
- this.languageCode = Un();
1759
+ this.languageCode = Vn();
1747
1760
  }
1748
1761
  async _delete() {
1749
1762
  this._deleted = !0;
1750
1763
  }
1751
1764
  async updateCurrentUser(e) {
1752
- if (w(this.app))
1753
- return Promise.reject(L(this));
1754
- const t = e ? j(e) : null;
1765
+ if (E(this.app))
1766
+ return Promise.reject(M(this));
1767
+ const t = e ? W(e) : null;
1755
1768
  return t && u(
1756
1769
  t.auth.config.apiKey === this.config.apiKey,
1757
1770
  this,
@@ -1771,15 +1784,15 @@ class ei {
1771
1784
  });
1772
1785
  }
1773
1786
  async signOut() {
1774
- return w(this.app) ? Promise.reject(L(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1787
+ return E(this.app) ? Promise.reject(M(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1775
1788
  null,
1776
1789
  /* skipBeforeStateCallbacks */
1777
1790
  !0
1778
1791
  ));
1779
1792
  }
1780
1793
  setPersistence(e) {
1781
- return w(this.app) ? Promise.reject(L(this)) : this.queue(async () => {
1782
- await this.assertedPersistence.setPersistence(k(e));
1794
+ return E(this.app) ? Promise.reject(M(this)) : this.queue(async () => {
1795
+ await this.assertedPersistence.setPersistence(S(e));
1783
1796
  });
1784
1797
  }
1785
1798
  _getRecaptchaConfig() {
@@ -1794,14 +1807,14 @@ class ei {
1794
1807
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1795
1808
  }
1796
1809
  async _updatePasswordPolicy() {
1797
- const e = await Xn(this), t = new Zn(e);
1810
+ const e = await ti(this), t = new ii(e);
1798
1811
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1799
1812
  }
1800
1813
  _getPersistence() {
1801
1814
  return this.assertedPersistence.persistence.type;
1802
1815
  }
1803
1816
  _updateErrorMap(e) {
1804
- this._errorFactory = new Se("auth", "Firebase", e());
1817
+ this._errorFactory = new Ce("auth", "Firebase", e());
1805
1818
  }
1806
1819
  onAuthStateChanged(e, t, i) {
1807
1820
  return this.registerStateListener(this.authStateSubscription, e, t, i);
@@ -1834,7 +1847,7 @@ class ei {
1834
1847
  token: e,
1835
1848
  idToken: t
1836
1849
  };
1837
- this.tenantId != null && (i.tenantId = this.tenantId), await qn(this, i);
1850
+ this.tenantId != null && (i.tenantId = this.tenantId), await Yn(this, i);
1838
1851
  }
1839
1852
  }
1840
1853
  toJSON() {
@@ -1852,7 +1865,7 @@ class ei {
1852
1865
  }
1853
1866
  async getOrInitRedirectPersistenceManager(e) {
1854
1867
  if (!this.redirectPersistenceManager) {
1855
- const t = e && k(e) || this._popupRedirectResolver;
1868
+ const t = e && S(e) || this._popupRedirectResolver;
1856
1869
  u(
1857
1870
  t,
1858
1871
  this,
@@ -1860,7 +1873,7 @@ class ei {
1860
1873
  /* AuthErrorCode.ARGUMENT_ERROR */
1861
1874
  ), this.redirectPersistenceManager = await H.create(
1862
1875
  this,
1863
- [k(t._redirectPersistence)],
1876
+ [S(t._redirectPersistence)],
1864
1877
  "redirectUser"
1865
1878
  /* KeyName.REDIRECT_USER */
1866
1879
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -1947,7 +1960,7 @@ class ei {
1947
1960
  ), this.persistenceManager;
1948
1961
  }
1949
1962
  _logFramework(e) {
1950
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Lt(this.config.clientPlatform, this._getFrameworks()));
1963
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Dt(this.config.clientPlatform, this._getFrameworks()));
1951
1964
  }
1952
1965
  _getFrameworks() {
1953
1966
  return this.frameworks;
@@ -1977,15 +1990,15 @@ class ei {
1977
1990
  async _getAppCheckToken() {
1978
1991
  var e;
1979
1992
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
1980
- return t != null && t.error && Nn(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
1993
+ return t != null && t.error && Dn(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
1981
1994
  }
1982
1995
  }
1983
1996
  function me(n) {
1984
- return j(n);
1997
+ return W(n);
1985
1998
  }
1986
- class Xe {
1999
+ class et {
1987
2000
  constructor(e) {
1988
- this.auth = e, this.observer = null, this.addObserver = gn((t) => this.observer = t);
2001
+ this.auth = e, this.observer = null, this.addObserver = In((t) => this.observer = t);
1989
2002
  }
1990
2003
  get next() {
1991
2004
  return u(
@@ -2012,7 +2025,7 @@ class Xe {
2012
2025
  * See the License for the specific language governing permissions and
2013
2026
  * limitations under the License.
2014
2027
  */
2015
- let Le = {
2028
+ let Fe = {
2016
2029
  async loadJS() {
2017
2030
  throw new Error("Unable to load external scripts");
2018
2031
  },
@@ -2020,16 +2033,16 @@ let Le = {
2020
2033
  recaptchaEnterpriseScript: "",
2021
2034
  gapiScript: ""
2022
2035
  };
2023
- function ti(n) {
2024
- Le = n;
2036
+ function si(n) {
2037
+ Fe = n;
2025
2038
  }
2026
- function ni(n) {
2027
- return Le.loadJS(n);
2039
+ function oi(n) {
2040
+ return Fe.loadJS(n);
2028
2041
  }
2029
- function ii() {
2030
- return Le.gapiScript;
2042
+ function ai() {
2043
+ return Fe.gapiScript;
2031
2044
  }
2032
- function ri(n) {
2045
+ function ci(n) {
2033
2046
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2034
2047
  }
2035
2048
  /**
@@ -2048,13 +2061,13 @@ function ri(n) {
2048
2061
  * See the License for the specific language governing permissions and
2049
2062
  * limitations under the License.
2050
2063
  */
2051
- function si(n, e) {
2052
- const t = pt(n, "auth");
2064
+ function li(n, e) {
2065
+ const t = _t(n, "auth");
2053
2066
  if (t.isInitialized()) {
2054
2067
  const r = t.getImmediate(), s = t.getOptions();
2055
- if (In(s, e ?? {}))
2068
+ if (wn(s, e ?? {}))
2056
2069
  return r;
2057
- b(
2070
+ R(
2058
2071
  r,
2059
2072
  "already-initialized"
2060
2073
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -2062,11 +2075,11 @@ function si(n, e) {
2062
2075
  }
2063
2076
  return t.initialize({ options: e });
2064
2077
  }
2065
- function oi(n, e) {
2066
- const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(k);
2078
+ function ui(n, e) {
2079
+ const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(S);
2067
2080
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2068
2081
  }
2069
- function ai(n, e, t) {
2082
+ function di(n, e, t) {
2070
2083
  const i = me(n);
2071
2084
  u(
2072
2085
  i._canInitEmulator,
@@ -2079,38 +2092,38 @@ function ai(n, e, t) {
2079
2092
  "invalid-emulator-scheme"
2080
2093
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2081
2094
  );
2082
- const r = !1, s = Mt(e), { host: o, port: c } = ci(e), a = c === null ? "" : `:${c}`;
2095
+ const r = !1, s = Ft(e), { host: o, port: c } = hi(e), a = c === null ? "" : `:${c}`;
2083
2096
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2084
2097
  host: o,
2085
2098
  port: c,
2086
2099
  protocol: s.replace(":", ""),
2087
2100
  options: Object.freeze({ disableWarnings: r })
2088
- }), li();
2101
+ }), fi();
2089
2102
  }
2090
- function Mt(n) {
2103
+ function Ft(n) {
2091
2104
  const e = n.indexOf(":");
2092
2105
  return e < 0 ? "" : n.substr(0, e + 1);
2093
2106
  }
2094
- function ci(n) {
2095
- const e = Mt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2107
+ function hi(n) {
2108
+ const e = Ft(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2096
2109
  if (!t)
2097
2110
  return { host: "", port: null };
2098
2111
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
2099
2112
  if (r) {
2100
2113
  const s = r[1];
2101
- return { host: s, port: Qe(i.substr(s.length + 1)) };
2114
+ return { host: s, port: tt(i.substr(s.length + 1)) };
2102
2115
  } else {
2103
2116
  const [s, o] = i.split(":");
2104
- return { host: s, port: Qe(o) };
2117
+ return { host: s, port: tt(o) };
2105
2118
  }
2106
2119
  }
2107
- function Qe(n) {
2120
+ function tt(n) {
2108
2121
  if (!n)
2109
2122
  return null;
2110
2123
  const e = Number(n);
2111
2124
  return isNaN(e) ? null : e;
2112
2125
  }
2113
- function li() {
2126
+ function fi() {
2114
2127
  function n() {
2115
2128
  const e = document.createElement("p"), t = e.style;
2116
2129
  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);
@@ -2133,7 +2146,7 @@ function li() {
2133
2146
  * See the License for the specific language governing permissions and
2134
2147
  * limitations under the License.
2135
2148
  */
2136
- class Ut {
2149
+ class xt {
2137
2150
  /** @internal */
2138
2151
  constructor(e, t) {
2139
2152
  this.providerId = e, this.signInMethod = t;
@@ -2144,19 +2157,19 @@ class Ut {
2144
2157
  * @returns a JSON-serializable representation of this object.
2145
2158
  */
2146
2159
  toJSON() {
2147
- return y("not implemented");
2160
+ return k("not implemented");
2148
2161
  }
2149
2162
  /** @internal */
2150
2163
  _getIdTokenResponse(e) {
2151
- return y("not implemented");
2164
+ return k("not implemented");
2152
2165
  }
2153
2166
  /** @internal */
2154
2167
  _linkToIdToken(e, t) {
2155
- return y("not implemented");
2168
+ return k("not implemented");
2156
2169
  }
2157
2170
  /** @internal */
2158
2171
  _getReauthenticationResolver(e) {
2159
- return y("not implemented");
2172
+ return k("not implemented");
2160
2173
  }
2161
2174
  }
2162
2175
  /**
@@ -2175,8 +2188,8 @@ class Ut {
2175
2188
  * See the License for the specific language governing permissions and
2176
2189
  * limitations under the License.
2177
2190
  */
2178
- async function W(n, e) {
2179
- return wt(n, "POST", "/v1/accounts:signInWithIdp", fe(n, e));
2191
+ async function j(n, e) {
2192
+ return kt(n, "POST", "/v1/accounts:signInWithIdp", fe(n, e));
2180
2193
  }
2181
2194
  /**
2182
2195
  * @license
@@ -2194,15 +2207,15 @@ async function W(n, e) {
2194
2207
  * See the License for the specific language governing permissions and
2195
2208
  * limitations under the License.
2196
2209
  */
2197
- const ui = "http://localhost";
2198
- class D extends Ut {
2210
+ const pi = "http://localhost";
2211
+ class D extends xt {
2199
2212
  constructor() {
2200
2213
  super(...arguments), this.pendingToken = null;
2201
2214
  }
2202
2215
  /** @internal */
2203
2216
  static _fromParams(e) {
2204
2217
  const t = new D(e.providerId, e.signInMethod);
2205
- 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) : b(
2218
+ 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) : R(
2206
2219
  "argument-error"
2207
2220
  /* AuthErrorCode.ARGUMENT_ERROR */
2208
2221
  ), t;
@@ -2229,7 +2242,7 @@ class D extends Ut {
2229
2242
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
2230
2243
  */
2231
2244
  static fromJSON(e) {
2232
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = Pe(t, ["providerId", "signInMethod"]);
2245
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = Ne(t, ["providerId", "signInMethod"]);
2233
2246
  if (!i || !r)
2234
2247
  return null;
2235
2248
  const o = new D(i, r);
@@ -2238,21 +2251,21 @@ class D extends Ut {
2238
2251
  /** @internal */
2239
2252
  _getIdTokenResponse(e) {
2240
2253
  const t = this.buildRequest();
2241
- return W(e, t);
2254
+ return j(e, t);
2242
2255
  }
2243
2256
  /** @internal */
2244
2257
  _linkToIdToken(e, t) {
2245
2258
  const i = this.buildRequest();
2246
- return i.idToken = t, W(e, i);
2259
+ return i.idToken = t, j(e, i);
2247
2260
  }
2248
2261
  /** @internal */
2249
2262
  _getReauthenticationResolver(e) {
2250
2263
  const t = this.buildRequest();
2251
- return t.autoCreate = !1, W(e, t);
2264
+ return t.autoCreate = !1, j(e, t);
2252
2265
  }
2253
2266
  buildRequest() {
2254
2267
  const e = {
2255
- requestUri: ui,
2268
+ requestUri: pi,
2256
2269
  returnSecureToken: !0
2257
2270
  };
2258
2271
  if (this.pendingToken)
@@ -2280,7 +2293,7 @@ class D extends Ut {
2280
2293
  * See the License for the specific language governing permissions and
2281
2294
  * limitations under the License.
2282
2295
  */
2283
- class Dt {
2296
+ class Vt {
2284
2297
  /**
2285
2298
  * Constructor for generic OAuth providers.
2286
2299
  *
@@ -2333,7 +2346,7 @@ class Dt {
2333
2346
  * See the License for the specific language governing permissions and
2334
2347
  * limitations under the License.
2335
2348
  */
2336
- class Q extends Dt {
2349
+ class Q extends Vt {
2337
2350
  constructor() {
2338
2351
  super(...arguments), this.scopes = [];
2339
2352
  }
@@ -2368,7 +2381,7 @@ class Q extends Dt {
2368
2381
  * See the License for the specific language governing permissions and
2369
2382
  * limitations under the License.
2370
2383
  */
2371
- class A extends Q {
2384
+ class C extends Q {
2372
2385
  constructor() {
2373
2386
  super(
2374
2387
  "facebook.com"
@@ -2389,8 +2402,8 @@ class A extends Q {
2389
2402
  */
2390
2403
  static credential(e) {
2391
2404
  return D._fromParams({
2392
- providerId: A.PROVIDER_ID,
2393
- signInMethod: A.FACEBOOK_SIGN_IN_METHOD,
2405
+ providerId: C.PROVIDER_ID,
2406
+ signInMethod: C.FACEBOOK_SIGN_IN_METHOD,
2394
2407
  accessToken: e
2395
2408
  });
2396
2409
  }
@@ -2400,7 +2413,7 @@ class A extends Q {
2400
2413
  * @param userCredential - The user credential.
2401
2414
  */
2402
2415
  static credentialFromResult(e) {
2403
- return A.credentialFromTaggedObject(e);
2416
+ return C.credentialFromTaggedObject(e);
2404
2417
  }
2405
2418
  /**
2406
2419
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2409,20 +2422,20 @@ class A extends Q {
2409
2422
  * @param userCredential - The user credential.
2410
2423
  */
2411
2424
  static credentialFromError(e) {
2412
- return A.credentialFromTaggedObject(e.customData || {});
2425
+ return C.credentialFromTaggedObject(e.customData || {});
2413
2426
  }
2414
2427
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2415
2428
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2416
2429
  return null;
2417
2430
  try {
2418
- return A.credential(e.oauthAccessToken);
2431
+ return C.credential(e.oauthAccessToken);
2419
2432
  } catch {
2420
2433
  return null;
2421
2434
  }
2422
2435
  }
2423
2436
  }
2424
- A.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2425
- A.PROVIDER_ID = "facebook.com";
2437
+ C.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2438
+ C.PROVIDER_ID = "facebook.com";
2426
2439
  /**
2427
2440
  * @license
2428
2441
  * Copyright 2020 Google LLC
@@ -2439,7 +2452,7 @@ A.PROVIDER_ID = "facebook.com";
2439
2452
  * See the License for the specific language governing permissions and
2440
2453
  * limitations under the License.
2441
2454
  */
2442
- class C extends Q {
2455
+ class O extends Q {
2443
2456
  constructor() {
2444
2457
  super(
2445
2458
  "google.com"
@@ -2461,8 +2474,8 @@ class C extends Q {
2461
2474
  */
2462
2475
  static credential(e, t) {
2463
2476
  return D._fromParams({
2464
- providerId: C.PROVIDER_ID,
2465
- signInMethod: C.GOOGLE_SIGN_IN_METHOD,
2477
+ providerId: O.PROVIDER_ID,
2478
+ signInMethod: O.GOOGLE_SIGN_IN_METHOD,
2466
2479
  idToken: e,
2467
2480
  accessToken: t
2468
2481
  });
@@ -2473,7 +2486,7 @@ class C extends Q {
2473
2486
  * @param userCredential - The user credential.
2474
2487
  */
2475
2488
  static credentialFromResult(e) {
2476
- return C.credentialFromTaggedObject(e);
2489
+ return O.credentialFromTaggedObject(e);
2477
2490
  }
2478
2491
  /**
2479
2492
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2482,7 +2495,7 @@ class C extends Q {
2482
2495
  * @param userCredential - The user credential.
2483
2496
  */
2484
2497
  static credentialFromError(e) {
2485
- return C.credentialFromTaggedObject(e.customData || {});
2498
+ return O.credentialFromTaggedObject(e.customData || {});
2486
2499
  }
2487
2500
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2488
2501
  if (!e)
@@ -2491,14 +2504,14 @@ class C extends Q {
2491
2504
  if (!t && !i)
2492
2505
  return null;
2493
2506
  try {
2494
- return C.credential(t, i);
2507
+ return O.credential(t, i);
2495
2508
  } catch {
2496
2509
  return null;
2497
2510
  }
2498
2511
  }
2499
2512
  }
2500
- C.GOOGLE_SIGN_IN_METHOD = "google.com";
2501
- C.PROVIDER_ID = "google.com";
2513
+ O.GOOGLE_SIGN_IN_METHOD = "google.com";
2514
+ O.PROVIDER_ID = "google.com";
2502
2515
  /**
2503
2516
  * @license
2504
2517
  * Copyright 2020 Google LLC
@@ -2515,7 +2528,7 @@ C.PROVIDER_ID = "google.com";
2515
2528
  * See the License for the specific language governing permissions and
2516
2529
  * limitations under the License.
2517
2530
  */
2518
- class O extends Q {
2531
+ class N extends Q {
2519
2532
  constructor() {
2520
2533
  super(
2521
2534
  "github.com"
@@ -2529,8 +2542,8 @@ class O extends Q {
2529
2542
  */
2530
2543
  static credential(e) {
2531
2544
  return D._fromParams({
2532
- providerId: O.PROVIDER_ID,
2533
- signInMethod: O.GITHUB_SIGN_IN_METHOD,
2545
+ providerId: N.PROVIDER_ID,
2546
+ signInMethod: N.GITHUB_SIGN_IN_METHOD,
2534
2547
  accessToken: e
2535
2548
  });
2536
2549
  }
@@ -2540,7 +2553,7 @@ class O extends Q {
2540
2553
  * @param userCredential - The user credential.
2541
2554
  */
2542
2555
  static credentialFromResult(e) {
2543
- return O.credentialFromTaggedObject(e);
2556
+ return N.credentialFromTaggedObject(e);
2544
2557
  }
2545
2558
  /**
2546
2559
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2549,20 +2562,20 @@ class O extends Q {
2549
2562
  * @param userCredential - The user credential.
2550
2563
  */
2551
2564
  static credentialFromError(e) {
2552
- return O.credentialFromTaggedObject(e.customData || {});
2565
+ return N.credentialFromTaggedObject(e.customData || {});
2553
2566
  }
2554
2567
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2555
2568
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2556
2569
  return null;
2557
2570
  try {
2558
- return O.credential(e.oauthAccessToken);
2571
+ return N.credential(e.oauthAccessToken);
2559
2572
  } catch {
2560
2573
  return null;
2561
2574
  }
2562
2575
  }
2563
2576
  }
2564
- O.GITHUB_SIGN_IN_METHOD = "github.com";
2565
- O.PROVIDER_ID = "github.com";
2577
+ N.GITHUB_SIGN_IN_METHOD = "github.com";
2578
+ N.PROVIDER_ID = "github.com";
2566
2579
  /**
2567
2580
  * @license
2568
2581
  * Copyright 2020 Google LLC
@@ -2579,7 +2592,7 @@ O.PROVIDER_ID = "github.com";
2579
2592
  * See the License for the specific language governing permissions and
2580
2593
  * limitations under the License.
2581
2594
  */
2582
- class N extends Q {
2595
+ class L extends Q {
2583
2596
  constructor() {
2584
2597
  super(
2585
2598
  "twitter.com"
@@ -2594,8 +2607,8 @@ class N extends Q {
2594
2607
  */
2595
2608
  static credential(e, t) {
2596
2609
  return D._fromParams({
2597
- providerId: N.PROVIDER_ID,
2598
- signInMethod: N.TWITTER_SIGN_IN_METHOD,
2610
+ providerId: L.PROVIDER_ID,
2611
+ signInMethod: L.TWITTER_SIGN_IN_METHOD,
2599
2612
  oauthToken: e,
2600
2613
  oauthTokenSecret: t
2601
2614
  });
@@ -2606,7 +2619,7 @@ class N extends Q {
2606
2619
  * @param userCredential - The user credential.
2607
2620
  */
2608
2621
  static credentialFromResult(e) {
2609
- return N.credentialFromTaggedObject(e);
2622
+ return L.credentialFromTaggedObject(e);
2610
2623
  }
2611
2624
  /**
2612
2625
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2615,7 +2628,7 @@ class N extends Q {
2615
2628
  * @param userCredential - The user credential.
2616
2629
  */
2617
2630
  static credentialFromError(e) {
2618
- return N.credentialFromTaggedObject(e.customData || {});
2631
+ return L.credentialFromTaggedObject(e.customData || {});
2619
2632
  }
2620
2633
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2621
2634
  if (!e)
@@ -2624,14 +2637,14 @@ class N extends Q {
2624
2637
  if (!t || !i)
2625
2638
  return null;
2626
2639
  try {
2627
- return N.credential(t, i);
2640
+ return L.credential(t, i);
2628
2641
  } catch {
2629
2642
  return null;
2630
2643
  }
2631
2644
  }
2632
2645
  }
2633
- N.TWITTER_SIGN_IN_METHOD = "twitter.com";
2634
- N.PROVIDER_ID = "twitter.com";
2646
+ L.TWITTER_SIGN_IN_METHOD = "twitter.com";
2647
+ L.PROVIDER_ID = "twitter.com";
2635
2648
  /**
2636
2649
  * @license
2637
2650
  * Copyright 2020 Google LLC
@@ -2653,7 +2666,7 @@ class F {
2653
2666
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2654
2667
  }
2655
2668
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2656
- const s = await E._fromIdTokenResponse(e, i, r), o = Ze(i);
2669
+ const s = await b._fromIdTokenResponse(e, i, r), o = nt(i);
2657
2670
  return new F({
2658
2671
  user: s,
2659
2672
  providerId: o,
@@ -2667,7 +2680,7 @@ class F {
2667
2680
  /* reload */
2668
2681
  !0
2669
2682
  );
2670
- const r = Ze(i);
2683
+ const r = nt(i);
2671
2684
  return new F({
2672
2685
  user: e,
2673
2686
  providerId: r,
@@ -2676,7 +2689,7 @@ class F {
2676
2689
  });
2677
2690
  }
2678
2691
  }
2679
- function Ze(n) {
2692
+ function nt(n) {
2680
2693
  return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
2681
2694
  }
2682
2695
  /**
@@ -2695,7 +2708,7 @@ function Ze(n) {
2695
2708
  * See the License for the specific language governing permissions and
2696
2709
  * limitations under the License.
2697
2710
  */
2698
- class ue extends Re {
2711
+ class ue extends Oe {
2699
2712
  constructor(e, t, i, r) {
2700
2713
  var s;
2701
2714
  super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, ue.prototype), this.customData = {
@@ -2709,12 +2722,12 @@ class ue extends Re {
2709
2722
  return new ue(e, t, i, r);
2710
2723
  }
2711
2724
  }
2712
- function Ft(n, e, t, i) {
2725
+ function $t(n, e, t, i) {
2713
2726
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
2714
2727
  throw s.code === "auth/multi-factor-auth-required" ? ue._fromErrorAndOperation(n, s, e, i) : s;
2715
2728
  });
2716
2729
  }
2717
- async function di(n, e, t = !1) {
2730
+ async function mi(n, e, t = !1) {
2718
2731
  const i = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2719
2732
  return F._forOperation(n, "link", i);
2720
2733
  }
@@ -2734,20 +2747,20 @@ async function di(n, e, t = !1) {
2734
2747
  * See the License for the specific language governing permissions and
2735
2748
  * limitations under the License.
2736
2749
  */
2737
- async function hi(n, e, t = !1) {
2750
+ async function gi(n, e, t = !1) {
2738
2751
  const { auth: i } = n;
2739
- if (w(i.app))
2740
- return Promise.reject(L(i));
2752
+ if (E(i.app))
2753
+ return Promise.reject(M(i));
2741
2754
  const r = "reauthenticate";
2742
2755
  try {
2743
- const s = await K(n, Ft(i, r, e, n), t);
2756
+ const s = await K(n, $t(i, r, e, n), t);
2744
2757
  u(
2745
2758
  s.idToken,
2746
2759
  i,
2747
2760
  "internal-error"
2748
2761
  /* AuthErrorCode.INTERNAL_ERROR */
2749
2762
  );
2750
- const o = Oe(s.idToken);
2763
+ const o = Ue(s.idToken);
2751
2764
  u(
2752
2765
  o,
2753
2766
  i,
@@ -2762,7 +2775,7 @@ async function hi(n, e, t = !1) {
2762
2775
  /* AuthErrorCode.USER_MISMATCH */
2763
2776
  ), F._forOperation(n, r, s);
2764
2777
  } catch (s) {
2765
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && b(
2778
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && R(
2766
2779
  i,
2767
2780
  "user-mismatch"
2768
2781
  /* AuthErrorCode.USER_MISMATCH */
@@ -2785,10 +2798,10 @@ async function hi(n, e, t = !1) {
2785
2798
  * See the License for the specific language governing permissions and
2786
2799
  * limitations under the License.
2787
2800
  */
2788
- async function fi(n, e, t = !1) {
2789
- if (w(n.app))
2790
- return Promise.reject(L(n));
2791
- const i = "signIn", r = await Ft(n, i, e), s = await F._fromIdTokenResponse(n, i, r);
2801
+ async function _i(n, e, t = !1) {
2802
+ if (E(n.app))
2803
+ return Promise.reject(M(n));
2804
+ const i = "signIn", r = await $t(n, i, e), s = await F._fromIdTokenResponse(n, i, r);
2792
2805
  return t || await n._updateCurrentUser(s.user), s;
2793
2806
  }
2794
2807
  /**
@@ -2807,8 +2820,8 @@ async function fi(n, e, t = !1) {
2807
2820
  * See the License for the specific language governing permissions and
2808
2821
  * limitations under the License.
2809
2822
  */
2810
- async function pi(n, e) {
2811
- return wt(n, "POST", "/v1/accounts:signInWithCustomToken", fe(n, e));
2823
+ async function vi(n, e) {
2824
+ return kt(n, "POST", "/v1/accounts:signInWithCustomToken", fe(n, e));
2812
2825
  }
2813
2826
  /**
2814
2827
  * @license
@@ -2826,20 +2839,20 @@ async function pi(n, e) {
2826
2839
  * See the License for the specific language governing permissions and
2827
2840
  * limitations under the License.
2828
2841
  */
2829
- async function mi(n, e) {
2830
- if (w(n.app))
2831
- return Promise.reject(L(n));
2832
- const t = me(n), i = await pi(t, {
2842
+ async function Ii(n, e) {
2843
+ if (E(n.app))
2844
+ return Promise.reject(M(n));
2845
+ const t = me(n), i = await vi(t, {
2833
2846
  token: e,
2834
2847
  returnSecureToken: !0
2835
2848
  }), r = await F._fromIdTokenResponse(t, "signIn", i);
2836
2849
  return await t._updateCurrentUser(r.user), r;
2837
2850
  }
2838
- function gi(n, e, t, i) {
2839
- return j(n).onIdTokenChanged(e, t, i);
2851
+ function Ti(n, e, t, i) {
2852
+ return W(n).onIdTokenChanged(e, t, i);
2840
2853
  }
2841
- function _i(n, e, t) {
2842
- return j(n).beforeAuthStateChanged(e, t);
2854
+ function yi(n, e, t) {
2855
+ return W(n).beforeAuthStateChanged(e, t);
2843
2856
  }
2844
2857
  const de = "__sak";
2845
2858
  /**
@@ -2858,7 +2871,7 @@ const de = "__sak";
2858
2871
  * See the License for the specific language governing permissions and
2859
2872
  * limitations under the License.
2860
2873
  */
2861
- class xt {
2874
+ class Ht {
2862
2875
  constructor(e, t) {
2863
2876
  this.storageRetriever = e, this.type = t;
2864
2877
  }
@@ -2899,18 +2912,18 @@ class xt {
2899
2912
  * See the License for the specific language governing permissions and
2900
2913
  * limitations under the License.
2901
2914
  */
2902
- function vi() {
2903
- const n = g();
2904
- return Ne(n) || pe(n);
2915
+ function wi() {
2916
+ const n = _();
2917
+ return De(n) || pe(n);
2905
2918
  }
2906
- const Ii = 1e3, Ti = 10;
2907
- class Vt extends xt {
2919
+ const Ei = 1e3, ki = 10;
2920
+ class jt extends Ht {
2908
2921
  constructor() {
2909
2922
  super(
2910
2923
  () => window.localStorage,
2911
2924
  "LOCAL"
2912
2925
  /* PersistenceType.LOCAL */
2913
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = vi() && Jn(), this.fallbackToPolling = Nt(), this._shouldAllowMigration = !0;
2926
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = wi() && Zn(), this.fallbackToPolling = Ut(), this._shouldAllowMigration = !0;
2914
2927
  }
2915
2928
  forAllChangedKeys(e) {
2916
2929
  for (const t of Object.keys(this.listeners)) {
@@ -2937,7 +2950,7 @@ class Vt extends xt {
2937
2950
  const o = this.storage.getItem(i);
2938
2951
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
2939
2952
  }, s = this.storage.getItem(i);
2940
- Kn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ti) : r();
2953
+ Qn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, ki) : r();
2941
2954
  }
2942
2955
  notifyListeners(e, t) {
2943
2956
  this.localCache[e] = t;
@@ -2959,7 +2972,7 @@ class Vt extends xt {
2959
2972
  !0
2960
2973
  );
2961
2974
  });
2962
- }, Ii);
2975
+ }, Ei);
2963
2976
  }
2964
2977
  stopPolling() {
2965
2978
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -2988,8 +3001,8 @@ class Vt extends xt {
2988
3001
  await super._remove(e), delete this.localCache[e];
2989
3002
  }
2990
3003
  }
2991
- Vt.type = "LOCAL";
2992
- const wi = Vt;
3004
+ jt.type = "LOCAL";
3005
+ const bi = jt;
2993
3006
  /**
2994
3007
  * @license
2995
3008
  * Copyright 2020 Google LLC
@@ -3006,7 +3019,7 @@ const wi = Vt;
3006
3019
  * See the License for the specific language governing permissions and
3007
3020
  * limitations under the License.
3008
3021
  */
3009
- class $t extends xt {
3022
+ class Wt extends Ht {
3010
3023
  constructor() {
3011
3024
  super(
3012
3025
  () => window.sessionStorage,
@@ -3019,8 +3032,8 @@ class $t extends xt {
3019
3032
  _removeListener(e, t) {
3020
3033
  }
3021
3034
  }
3022
- $t.type = "SESSION";
3023
- const Ht = $t;
3035
+ Wt.type = "SESSION";
3036
+ const Gt = Wt;
3024
3037
  /**
3025
3038
  * @license
3026
3039
  * Copyright 2019 Google LLC
@@ -3037,7 +3050,7 @@ const Ht = $t;
3037
3050
  * See the License for the specific language governing permissions and
3038
3051
  * limitations under the License.
3039
3052
  */
3040
- function yi(n) {
3053
+ function Si(n) {
3041
3054
  return Promise.all(n.map(async (e) => {
3042
3055
  try {
3043
3056
  return {
@@ -3107,7 +3120,7 @@ class ge {
3107
3120
  eventId: i,
3108
3121
  eventType: r
3109
3122
  });
3110
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await yi(c);
3123
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Si(c);
3111
3124
  t.ports[0].postMessage({
3112
3125
  status: "done",
3113
3126
  eventId: i,
@@ -3153,7 +3166,7 @@ ge.receivers = [];
3153
3166
  * See the License for the specific language governing permissions and
3154
3167
  * limitations under the License.
3155
3168
  */
3156
- function Me(n = "", e = 10) {
3169
+ function xe(n = "", e = 10) {
3157
3170
  let t = "";
3158
3171
  for (let i = 0; i < e; i++)
3159
3172
  t += Math.floor(Math.random() * 10);
@@ -3175,7 +3188,7 @@ function Me(n = "", e = 10) {
3175
3188
  * See the License for the specific language governing permissions and
3176
3189
  * limitations under the License.
3177
3190
  */
3178
- class Ei {
3191
+ class Ri {
3179
3192
  constructor(e) {
3180
3193
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3181
3194
  }
@@ -3209,7 +3222,7 @@ class Ei {
3209
3222
  );
3210
3223
  let s, o;
3211
3224
  return new Promise((c, a) => {
3212
- const l = Me("", 20);
3225
+ const l = xe("", 20);
3213
3226
  r.port1.start();
3214
3227
  const d = setTimeout(() => {
3215
3228
  a(new Error(
@@ -3219,10 +3232,10 @@ class Ei {
3219
3232
  }, i);
3220
3233
  o = {
3221
3234
  messageChannel: r,
3222
- onMessage(f) {
3223
- const _ = f;
3224
- if (_.data.eventId === l)
3225
- switch (_.data.status) {
3235
+ onMessage(h) {
3236
+ const p = h;
3237
+ if (p.data.eventId === l)
3238
+ switch (p.data.status) {
3226
3239
  case "ack":
3227
3240
  clearTimeout(d), s = setTimeout(
3228
3241
  () => {
@@ -3236,7 +3249,7 @@ class Ei {
3236
3249
  );
3237
3250
  break;
3238
3251
  case "done":
3239
- clearTimeout(s), c(_.data.response);
3252
+ clearTimeout(s), c(p.data.response);
3240
3253
  break;
3241
3254
  default:
3242
3255
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3272,11 +3285,11 @@ class Ei {
3272
3285
  * See the License for the specific language governing permissions and
3273
3286
  * limitations under the License.
3274
3287
  */
3275
- function T() {
3288
+ function y() {
3276
3289
  return window;
3277
3290
  }
3278
- function ki(n) {
3279
- T().location.href = n;
3291
+ function Pi(n) {
3292
+ y().location.href = n;
3280
3293
  }
3281
3294
  /**
3282
3295
  * @license
@@ -3294,10 +3307,10 @@ function ki(n) {
3294
3307
  * See the License for the specific language governing permissions and
3295
3308
  * limitations under the License.
3296
3309
  */
3297
- function Wt() {
3298
- return typeof T().WorkerGlobalScope < "u" && typeof T().importScripts == "function";
3310
+ function Bt() {
3311
+ return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
3299
3312
  }
3300
- async function bi() {
3313
+ async function Ai() {
3301
3314
  if (!(navigator != null && navigator.serviceWorker))
3302
3315
  return null;
3303
3316
  try {
@@ -3306,12 +3319,12 @@ async function bi() {
3306
3319
  return null;
3307
3320
  }
3308
3321
  }
3309
- function Si() {
3322
+ function Ci() {
3310
3323
  var n;
3311
3324
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3312
3325
  }
3313
- function Ri() {
3314
- return Wt() ? self : null;
3326
+ function Oi() {
3327
+ return Bt() ? self : null;
3315
3328
  }
3316
3329
  /**
3317
3330
  * @license
@@ -3329,7 +3342,7 @@ function Ri() {
3329
3342
  * See the License for the specific language governing permissions and
3330
3343
  * limitations under the License.
3331
3344
  */
3332
- const jt = "firebaseLocalStorageDb", Pi = 1, he = "firebaseLocalStorage", Gt = "fbase_key";
3345
+ const zt = "firebaseLocalStorageDb", Ni = 1, he = "firebaseLocalStorage", qt = "fbase_key";
3333
3346
  class Z {
3334
3347
  constructor(e) {
3335
3348
  this.request = e;
@@ -3347,52 +3360,52 @@ class Z {
3347
3360
  function _e(n, e) {
3348
3361
  return n.transaction([he], e ? "readwrite" : "readonly").objectStore(he);
3349
3362
  }
3350
- function Ai() {
3351
- const n = indexedDB.deleteDatabase(jt);
3363
+ function Li() {
3364
+ const n = indexedDB.deleteDatabase(zt);
3352
3365
  return new Z(n).toPromise();
3353
3366
  }
3354
- function be() {
3355
- const n = indexedDB.open(jt, Pi);
3367
+ function Ae() {
3368
+ const n = indexedDB.open(zt, Ni);
3356
3369
  return new Promise((e, t) => {
3357
3370
  n.addEventListener("error", () => {
3358
3371
  t(n.error);
3359
3372
  }), n.addEventListener("upgradeneeded", () => {
3360
3373
  const i = n.result;
3361
3374
  try {
3362
- i.createObjectStore(he, { keyPath: Gt });
3375
+ i.createObjectStore(he, { keyPath: qt });
3363
3376
  } catch (r) {
3364
3377
  t(r);
3365
3378
  }
3366
3379
  }), n.addEventListener("success", async () => {
3367
3380
  const i = n.result;
3368
- i.objectStoreNames.contains(he) ? e(i) : (i.close(), await Ai(), e(await be()));
3381
+ i.objectStoreNames.contains(he) ? e(i) : (i.close(), await Li(), e(await Ae()));
3369
3382
  });
3370
3383
  });
3371
3384
  }
3372
- async function et(n, e, t) {
3385
+ async function it(n, e, t) {
3373
3386
  const i = _e(n, !0).put({
3374
- [Gt]: e,
3387
+ [qt]: e,
3375
3388
  value: t
3376
3389
  });
3377
3390
  return new Z(i).toPromise();
3378
3391
  }
3379
- async function Ci(n, e) {
3392
+ async function Mi(n, e) {
3380
3393
  const t = _e(n, !1).get(e), i = await new Z(t).toPromise();
3381
3394
  return i === void 0 ? null : i.value;
3382
3395
  }
3383
- function tt(n, e) {
3396
+ function rt(n, e) {
3384
3397
  const t = _e(n, !0).delete(e);
3385
3398
  return new Z(t).toPromise();
3386
3399
  }
3387
- const Oi = 800, Ni = 3;
3388
- class Bt {
3400
+ const Ui = 800, Di = 3;
3401
+ class Kt {
3389
3402
  constructor() {
3390
3403
  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(() => {
3391
3404
  }, () => {
3392
3405
  });
3393
3406
  }
3394
3407
  async _openDb() {
3395
- return this.db ? this.db : (this.db = await be(), this.db);
3408
+ return this.db ? this.db : (this.db = await Ae(), this.db);
3396
3409
  }
3397
3410
  async _withRetries(e) {
3398
3411
  let t = 0;
@@ -3401,7 +3414,7 @@ class Bt {
3401
3414
  const i = await this._openDb();
3402
3415
  return await e(i);
3403
3416
  } catch (i) {
3404
- if (t++ > Ni)
3417
+ if (t++ > Di)
3405
3418
  throw i;
3406
3419
  this.db && (this.db.close(), this.db = void 0);
3407
3420
  }
@@ -3411,13 +3424,13 @@ class Bt {
3411
3424
  * postMessage interface to send these events to the worker ourselves.
3412
3425
  */
3413
3426
  async initializeServiceWorkerMessaging() {
3414
- return Wt() ? this.initializeReceiver() : this.initializeSender();
3427
+ return Bt() ? this.initializeReceiver() : this.initializeSender();
3415
3428
  }
3416
3429
  /**
3417
3430
  * As the worker we should listen to events from the main window.
3418
3431
  */
3419
3432
  async initializeReceiver() {
3420
- this.receiver = ge._getInstance(Ri()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3433
+ this.receiver = ge._getInstance(Oi()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3421
3434
  keyProcessed: (await this._poll()).includes(t.key)
3422
3435
  })), this.receiver._subscribe("ping", async (e, t) => [
3423
3436
  "keyChanged"
@@ -3433,9 +3446,9 @@ class Bt {
3433
3446
  */
3434
3447
  async initializeSender() {
3435
3448
  var e, t;
3436
- if (this.activeServiceWorker = await bi(), !this.activeServiceWorker)
3449
+ if (this.activeServiceWorker = await Ai(), !this.activeServiceWorker)
3437
3450
  return;
3438
- this.sender = new Ei(this.activeServiceWorker);
3451
+ this.sender = new Ri(this.activeServiceWorker);
3439
3452
  const i = await this.sender._send(
3440
3453
  "ping",
3441
3454
  {},
@@ -3457,7 +3470,7 @@ class Bt {
3457
3470
  * @param key - Storage key which changed.
3458
3471
  */
3459
3472
  async notifyServiceWorker(e) {
3460
- if (!(!this.sender || !this.activeServiceWorker || Si() !== this.activeServiceWorker))
3473
+ if (!(!this.sender || !this.activeServiceWorker || Ci() !== this.activeServiceWorker))
3461
3474
  try {
3462
3475
  await this.sender._send(
3463
3476
  "keyChanged",
@@ -3473,8 +3486,8 @@ class Bt {
3473
3486
  try {
3474
3487
  if (!indexedDB)
3475
3488
  return !1;
3476
- const e = await be();
3477
- return await et(e, de, "1"), await tt(e, de), !0;
3489
+ const e = await Ae();
3490
+ return await it(e, de, "1"), await rt(e, de), !0;
3478
3491
  } catch {
3479
3492
  }
3480
3493
  return !1;
@@ -3488,14 +3501,14 @@ class Bt {
3488
3501
  }
3489
3502
  }
3490
3503
  async _set(e, t) {
3491
- return this._withPendingWrite(async () => (await this._withRetries((i) => et(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3504
+ return this._withPendingWrite(async () => (await this._withRetries((i) => it(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3492
3505
  }
3493
3506
  async _get(e) {
3494
- const t = await this._withRetries((i) => Ci(i, e));
3507
+ const t = await this._withRetries((i) => Mi(i, e));
3495
3508
  return this.localCache[e] = t, t;
3496
3509
  }
3497
3510
  async _remove(e) {
3498
- return this._withPendingWrite(async () => (await this._withRetries((t) => tt(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
3511
+ return this._withPendingWrite(async () => (await this._withRetries((t) => rt(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
3499
3512
  }
3500
3513
  async _poll() {
3501
3514
  const e = await this._withRetries((r) => {
@@ -3522,7 +3535,7 @@ class Bt {
3522
3535
  r(t);
3523
3536
  }
3524
3537
  startPolling() {
3525
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Oi);
3538
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ui);
3526
3539
  }
3527
3540
  stopPolling() {
3528
3541
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3534,8 +3547,8 @@ class Bt {
3534
3547
  this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
3535
3548
  }
3536
3549
  }
3537
- Bt.type = "LOCAL";
3538
- const Li = Bt;
3550
+ Kt.type = "LOCAL";
3551
+ const Fi = Kt;
3539
3552
  new X(3e4, 6e4);
3540
3553
  /**
3541
3554
  * @license
@@ -3553,8 +3566,8 @@ new X(3e4, 6e4);
3553
3566
  * See the License for the specific language governing permissions and
3554
3567
  * limitations under the License.
3555
3568
  */
3556
- function Mi(n, e) {
3557
- return e ? k(e) : (u(
3569
+ function xi(n, e) {
3570
+ return e ? S(e) : (u(
3558
3571
  n._popupRedirectResolver,
3559
3572
  n,
3560
3573
  "argument-error"
@@ -3577,7 +3590,7 @@ function Mi(n, e) {
3577
3590
  * See the License for the specific language governing permissions and
3578
3591
  * limitations under the License.
3579
3592
  */
3580
- class Ue extends Ut {
3593
+ class Ve extends xt {
3581
3594
  constructor(e) {
3582
3595
  super(
3583
3596
  "custom",
@@ -3586,13 +3599,13 @@ class Ue extends Ut {
3586
3599
  ), this.params = e;
3587
3600
  }
3588
3601
  _getIdTokenResponse(e) {
3589
- return W(e, this._buildIdpRequest());
3602
+ return j(e, this._buildIdpRequest());
3590
3603
  }
3591
3604
  _linkToIdToken(e, t) {
3592
- return W(e, this._buildIdpRequest(t));
3605
+ return j(e, this._buildIdpRequest(t));
3593
3606
  }
3594
3607
  _getReauthenticationResolver(e) {
3595
- return W(e, this._buildIdpRequest());
3608
+ return j(e, this._buildIdpRequest());
3596
3609
  }
3597
3610
  _buildIdpRequest(e) {
3598
3611
  const t = {
@@ -3607,26 +3620,26 @@ class Ue extends Ut {
3607
3620
  return e && (t.idToken = e), t;
3608
3621
  }
3609
3622
  }
3610
- function Ui(n) {
3611
- return fi(n.auth, new Ue(n), n.bypassAuthState);
3623
+ function Vi(n) {
3624
+ return _i(n.auth, new Ve(n), n.bypassAuthState);
3612
3625
  }
3613
- function Di(n) {
3626
+ function $i(n) {
3614
3627
  const { auth: e, user: t } = n;
3615
3628
  return u(
3616
3629
  t,
3617
3630
  e,
3618
3631
  "internal-error"
3619
3632
  /* AuthErrorCode.INTERNAL_ERROR */
3620
- ), hi(t, new Ue(n), n.bypassAuthState);
3633
+ ), gi(t, new Ve(n), n.bypassAuthState);
3621
3634
  }
3622
- async function Fi(n) {
3635
+ async function Hi(n) {
3623
3636
  const { auth: e, user: t } = n;
3624
3637
  return u(
3625
3638
  t,
3626
3639
  e,
3627
3640
  "internal-error"
3628
3641
  /* AuthErrorCode.INTERNAL_ERROR */
3629
- ), di(t, new Ue(n), n.bypassAuthState);
3642
+ ), mi(t, new Ve(n), n.bypassAuthState);
3630
3643
  }
3631
3644
  /**
3632
3645
  * @license
@@ -3644,7 +3657,7 @@ async function Fi(n) {
3644
3657
  * See the License for the specific language governing permissions and
3645
3658
  * limitations under the License.
3646
3659
  */
3647
- class qt {
3660
+ class Jt {
3648
3661
  constructor(e, t, i, r, s = !1) {
3649
3662
  this.auth = e, this.resolver = i, this.user = r, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
3650
3663
  }
@@ -3686,15 +3699,15 @@ class qt {
3686
3699
  switch (e) {
3687
3700
  case "signInViaPopup":
3688
3701
  case "signInViaRedirect":
3689
- return Ui;
3702
+ return Vi;
3690
3703
  case "linkViaPopup":
3691
3704
  case "linkViaRedirect":
3692
- return Fi;
3705
+ return Hi;
3693
3706
  case "reauthViaPopup":
3694
3707
  case "reauthViaRedirect":
3695
- return Di;
3708
+ return $i;
3696
3709
  default:
3697
- b(
3710
+ R(
3698
3711
  this.auth,
3699
3712
  "internal-error"
3700
3713
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3702,10 +3715,10 @@ class qt {
3702
3715
  }
3703
3716
  }
3704
3717
  resolve(e) {
3705
- S(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3718
+ P(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3706
3719
  }
3707
3720
  reject(e) {
3708
- S(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3721
+ P(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3709
3722
  }
3710
3723
  unregisterAndCleanUp() {
3711
3724
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3727,8 +3740,8 @@ class qt {
3727
3740
  * See the License for the specific language governing permissions and
3728
3741
  * limitations under the License.
3729
3742
  */
3730
- const xi = new X(2e3, 1e4);
3731
- class V extends qt {
3743
+ const ji = new X(2e3, 1e4);
3744
+ class V extends Jt {
3732
3745
  constructor(e, t, i, r, s) {
3733
3746
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, V.currentPopupAction && V.currentPopupAction.cancel(), V.currentPopupAction = this;
3734
3747
  }
@@ -3742,8 +3755,8 @@ class V extends qt {
3742
3755
  ), e;
3743
3756
  }
3744
3757
  async onExecution() {
3745
- S(this.filter.length === 1, "Popup operations only handle one event");
3746
- const e = Me();
3758
+ P(this.filter.length === 1, "Popup operations only handle one event");
3759
+ const e = xe();
3747
3760
  this.authWindow = await this.resolver._openPopup(
3748
3761
  this.auth,
3749
3762
  this.provider,
@@ -3753,7 +3766,7 @@ class V extends qt {
3753
3766
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3754
3767
  this.reject(t);
3755
3768
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3756
- t || this.reject(I(
3769
+ t || this.reject(T(
3757
3770
  this.auth,
3758
3771
  "web-storage-unsupported"
3759
3772
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3765,7 +3778,7 @@ class V extends qt {
3765
3778
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3766
3779
  }
3767
3780
  cancel() {
3768
- this.reject(I(
3781
+ this.reject(T(
3769
3782
  this.auth,
3770
3783
  "cancelled-popup-request"
3771
3784
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
@@ -3780,7 +3793,7 @@ class V extends qt {
3780
3793
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3781
3794
  this.pollId = window.setTimeout(
3782
3795
  () => {
3783
- this.pollId = null, this.reject(I(
3796
+ this.pollId = null, this.reject(T(
3784
3797
  this.auth,
3785
3798
  "popup-closed-by-user"
3786
3799
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -3791,7 +3804,7 @@ class V extends qt {
3791
3804
  );
3792
3805
  return;
3793
3806
  }
3794
- this.pollId = window.setTimeout(e, xi.get());
3807
+ this.pollId = window.setTimeout(e, ji.get());
3795
3808
  };
3796
3809
  e();
3797
3810
  }
@@ -3813,8 +3826,8 @@ V.currentPopupAction = null;
3813
3826
  * See the License for the specific language governing permissions and
3814
3827
  * limitations under the License.
3815
3828
  */
3816
- const Vi = "pendingRedirect", oe = /* @__PURE__ */ new Map();
3817
- class $i extends qt {
3829
+ const Wi = "pendingRedirect", oe = /* @__PURE__ */ new Map();
3830
+ class Gi extends Jt {
3818
3831
  constructor(e, t, i = !1) {
3819
3832
  super(e, [
3820
3833
  "signInViaRedirect",
@@ -3832,7 +3845,7 @@ class $i extends qt {
3832
3845
  let e = oe.get(this.auth._key());
3833
3846
  if (!e) {
3834
3847
  try {
3835
- const i = await Hi(this.resolver, this.auth) ? await super.execute() : null;
3848
+ const i = await Bi(this.resolver, this.auth) ? await super.execute() : null;
3836
3849
  e = () => Promise.resolve(i);
3837
3850
  } catch (t) {
3838
3851
  e = () => Promise.reject(t);
@@ -3860,26 +3873,26 @@ class $i extends qt {
3860
3873
  cleanUp() {
3861
3874
  }
3862
3875
  }
3863
- async function Hi(n, e) {
3864
- const t = Gi(e), i = ji(n);
3876
+ async function Bi(n, e) {
3877
+ const t = Ki(e), i = qi(n);
3865
3878
  if (!await i._isAvailable())
3866
3879
  return !1;
3867
3880
  const r = await i._get(t) === "true";
3868
3881
  return await i._remove(t), r;
3869
3882
  }
3870
- function Wi(n, e) {
3883
+ function zi(n, e) {
3871
3884
  oe.set(n._key(), e);
3872
3885
  }
3873
- function ji(n) {
3874
- return k(n._redirectPersistence);
3886
+ function qi(n) {
3887
+ return S(n._redirectPersistence);
3875
3888
  }
3876
- function Gi(n) {
3877
- return se(Vi, n.config.apiKey, n.name);
3889
+ function Ki(n) {
3890
+ return se(Wi, n.config.apiKey, n.name);
3878
3891
  }
3879
- async function Bi(n, e, t = !1) {
3880
- if (w(n.app))
3881
- return Promise.reject(L(n));
3882
- const i = me(n), r = Mi(i, e), o = await new $i(i, r, t).execute();
3892
+ async function Ji(n, e, t = !1) {
3893
+ if (E(n.app))
3894
+ return Promise.reject(M(n));
3895
+ const i = me(n), r = xi(i, e), o = await new Gi(i, r, t).execute();
3883
3896
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
3884
3897
  }
3885
3898
  /**
@@ -3898,8 +3911,8 @@ async function Bi(n, e, t = !1) {
3898
3911
  * See the License for the specific language governing permissions and
3899
3912
  * limitations under the License.
3900
3913
  */
3901
- const qi = 10 * 60 * 1e3;
3902
- class zi {
3914
+ const Yi = 10 * 60 * 1e3;
3915
+ class Xi {
3903
3916
  constructor(e) {
3904
3917
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
3905
3918
  }
@@ -3915,13 +3928,13 @@ class zi {
3915
3928
  let t = !1;
3916
3929
  return this.consumers.forEach((i) => {
3917
3930
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
3918
- }), this.hasHandledPotentialRedirect || !Ki(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
3931
+ }), this.hasHandledPotentialRedirect || !Qi(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
3919
3932
  }
3920
3933
  sendToConsumer(e, t) {
3921
3934
  var i;
3922
- if (e.error && !zt(e)) {
3935
+ if (e.error && !Yt(e)) {
3923
3936
  const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
3924
- t.onError(I(this.auth, r));
3937
+ t.onError(T(this.auth, r));
3925
3938
  } else
3926
3939
  t.onAuthEvent(e);
3927
3940
  }
@@ -3930,26 +3943,26 @@ class zi {
3930
3943
  return t.filter.includes(e.type) && i;
3931
3944
  }
3932
3945
  hasEventBeenHandled(e) {
3933
- return Date.now() - this.lastProcessedEventTime >= qi && this.cachedEventUids.clear(), this.cachedEventUids.has(nt(e));
3946
+ return Date.now() - this.lastProcessedEventTime >= Yi && this.cachedEventUids.clear(), this.cachedEventUids.has(st(e));
3934
3947
  }
3935
3948
  saveEventToCache(e) {
3936
- this.cachedEventUids.add(nt(e)), this.lastProcessedEventTime = Date.now();
3949
+ this.cachedEventUids.add(st(e)), this.lastProcessedEventTime = Date.now();
3937
3950
  }
3938
3951
  }
3939
- function nt(n) {
3952
+ function st(n) {
3940
3953
  return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
3941
3954
  }
3942
- function zt({ type: n, error: e }) {
3955
+ function Yt({ type: n, error: e }) {
3943
3956
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
3944
3957
  }
3945
- function Ki(n) {
3958
+ function Qi(n) {
3946
3959
  switch (n.type) {
3947
3960
  case "signInViaRedirect":
3948
3961
  case "linkViaRedirect":
3949
3962
  case "reauthViaRedirect":
3950
3963
  return !0;
3951
3964
  case "unknown":
3952
- return zt(n);
3965
+ return Yt(n);
3953
3966
  default:
3954
3967
  return !1;
3955
3968
  }
@@ -3970,7 +3983,7 @@ function Ki(n) {
3970
3983
  * See the License for the specific language governing permissions and
3971
3984
  * limitations under the License.
3972
3985
  */
3973
- async function Ji(n, e = {}) {
3986
+ async function Zi(n, e = {}) {
3974
3987
  return G(n, "GET", "/v1/projects", e);
3975
3988
  }
3976
3989
  /**
@@ -3989,32 +4002,32 @@ async function Ji(n, e = {}) {
3989
4002
  * See the License for the specific language governing permissions and
3990
4003
  * limitations under the License.
3991
4004
  */
3992
- const Yi = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Xi = /^https?/;
3993
- async function Qi(n) {
4005
+ const er = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, tr = /^https?/;
4006
+ async function nr(n) {
3994
4007
  if (n.config.emulator)
3995
4008
  return;
3996
- const { authorizedDomains: e } = await Ji(n);
4009
+ const { authorizedDomains: e } = await Zi(n);
3997
4010
  for (const t of e)
3998
4011
  try {
3999
- if (Zi(t))
4012
+ if (ir(t))
4000
4013
  return;
4001
4014
  } catch {
4002
4015
  }
4003
- b(
4016
+ R(
4004
4017
  n,
4005
4018
  "unauthorized-domain"
4006
4019
  /* AuthErrorCode.INVALID_ORIGIN */
4007
4020
  );
4008
4021
  }
4009
- function Zi(n) {
4010
- const e = Ee(), { protocol: t, hostname: i } = new URL(e);
4022
+ function ir(n) {
4023
+ const e = Re(), { protocol: t, hostname: i } = new URL(e);
4011
4024
  if (n.startsWith("chrome-extension://")) {
4012
4025
  const o = new URL(n);
4013
4026
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4014
4027
  }
4015
- if (!Xi.test(t))
4028
+ if (!tr.test(t))
4016
4029
  return !1;
4017
- if (Yi.test(n))
4030
+ if (er.test(n))
4018
4031
  return i === n;
4019
4032
  const r = n.replace(/\./g, "\\.");
4020
4033
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4035,9 +4048,9 @@ function Zi(n) {
4035
4048
  * See the License for the specific language governing permissions and
4036
4049
  * limitations under the License.
4037
4050
  */
4038
- const er = new X(3e4, 6e4);
4039
- function it() {
4040
- const n = T().___jsl;
4051
+ const rr = new X(3e4, 6e4);
4052
+ function ot() {
4053
+ const n = y().___jsl;
4041
4054
  if (n != null && n.H) {
4042
4055
  for (const e of Object.keys(n.H))
4043
4056
  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)
@@ -4045,45 +4058,45 @@ function it() {
4045
4058
  n.CP[t] = null;
4046
4059
  }
4047
4060
  }
4048
- function tr(n) {
4061
+ function sr(n) {
4049
4062
  return new Promise((e, t) => {
4050
4063
  var i, r, s;
4051
4064
  function o() {
4052
- it(), gapi.load("gapi.iframes", {
4065
+ ot(), gapi.load("gapi.iframes", {
4053
4066
  callback: () => {
4054
4067
  e(gapi.iframes.getContext());
4055
4068
  },
4056
4069
  ontimeout: () => {
4057
- it(), t(I(
4070
+ ot(), t(T(
4058
4071
  n,
4059
4072
  "network-request-failed"
4060
4073
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4061
4074
  ));
4062
4075
  },
4063
- timeout: er.get()
4076
+ timeout: rr.get()
4064
4077
  });
4065
4078
  }
4066
- if (!((r = (i = T().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4079
+ if (!((r = (i = y().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4067
4080
  e(gapi.iframes.getContext());
4068
- else if (!((s = T().gapi) === null || s === void 0) && s.load)
4081
+ else if (!((s = y().gapi) === null || s === void 0) && s.load)
4069
4082
  o();
4070
4083
  else {
4071
- const c = ri("iframefcb");
4072
- return T()[c] = () => {
4073
- gapi.load ? o() : t(I(
4084
+ const c = ci("iframefcb");
4085
+ return y()[c] = () => {
4086
+ gapi.load ? o() : t(T(
4074
4087
  n,
4075
4088
  "network-request-failed"
4076
4089
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4077
4090
  ));
4078
- }, ni(`${ii()}?onload=${c}`).catch((a) => t(a));
4091
+ }, oi(`${ai()}?onload=${c}`).catch((a) => t(a));
4079
4092
  }
4080
4093
  }).catch((e) => {
4081
4094
  throw ae = null, e;
4082
4095
  });
4083
4096
  }
4084
4097
  let ae = null;
4085
- function nr(n) {
4086
- return ae = ae || tr(n), ae;
4098
+ function or(n) {
4099
+ return ae = ae || sr(n), ae;
4087
4100
  }
4088
4101
  /**
4089
4102
  * @license
@@ -4101,7 +4114,7 @@ function nr(n) {
4101
4114
  * See the License for the specific language governing permissions and
4102
4115
  * limitations under the License.
4103
4116
  */
4104
- const ir = new X(5e3, 15e3), rr = "__/auth/iframe", sr = "emulator/auth/iframe", or = {
4117
+ const ar = new X(5e3, 15e3), cr = "__/auth/iframe", lr = "emulator/auth/iframe", ur = {
4105
4118
  style: {
4106
4119
  position: "absolute",
4107
4120
  top: "-100px",
@@ -4110,13 +4123,13 @@ const ir = new X(5e3, 15e3), rr = "__/auth/iframe", sr = "emulator/auth/iframe",
4110
4123
  },
4111
4124
  "aria-hidden": "true",
4112
4125
  tabindex: "-1"
4113
- }, ar = /* @__PURE__ */ new Map([
4126
+ }, dr = /* @__PURE__ */ new Map([
4114
4127
  ["identitytoolkit.googleapis.com", "p"],
4115
4128
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4116
4129
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4117
4130
  // test
4118
4131
  ]);
4119
- function cr(n) {
4132
+ function hr(n) {
4120
4133
  const e = n.config;
4121
4134
  u(
4122
4135
  e.authDomain,
@@ -4124,17 +4137,17 @@ function cr(n) {
4124
4137
  "auth-domain-config-required"
4125
4138
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4126
4139
  );
4127
- const t = e.emulator ? Ce(e, sr) : `https://${n.config.authDomain}/${rr}`, i = {
4140
+ const t = e.emulator ? Me(e, lr) : `https://${n.config.authDomain}/${cr}`, i = {
4128
4141
  apiKey: e.apiKey,
4129
4142
  appName: n.name,
4130
4143
  v: J
4131
- }, r = ar.get(n.config.apiHost);
4144
+ }, r = dr.get(n.config.apiHost);
4132
4145
  r && (i.eid = r);
4133
4146
  const s = n._getFrameworks();
4134
4147
  return s.length && (i.fw = s.join(",")), `${t}?${Y(i).slice(1)}`;
4135
4148
  }
4136
- async function lr(n) {
4137
- const e = await nr(n), t = T().gapi;
4149
+ async function fr(n) {
4150
+ const e = await or(n), t = y().gapi;
4138
4151
  return u(
4139
4152
  t,
4140
4153
  n,
@@ -4142,24 +4155,24 @@ async function lr(n) {
4142
4155
  /* AuthErrorCode.INTERNAL_ERROR */
4143
4156
  ), e.open({
4144
4157
  where: document.body,
4145
- url: cr(n),
4158
+ url: hr(n),
4146
4159
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4147
- attributes: or,
4160
+ attributes: ur,
4148
4161
  dontclear: !0
4149
4162
  }, (i) => new Promise(async (r, s) => {
4150
4163
  await i.restyle({
4151
4164
  // Prevent iframe from closing on mouse out.
4152
4165
  setHideOnLeave: !1
4153
4166
  });
4154
- const o = I(
4167
+ const o = T(
4155
4168
  n,
4156
4169
  "network-request-failed"
4157
4170
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4158
- ), c = T().setTimeout(() => {
4171
+ ), c = y().setTimeout(() => {
4159
4172
  s(o);
4160
- }, ir.get());
4173
+ }, ar.get());
4161
4174
  function a() {
4162
- T().clearTimeout(c), r(i);
4175
+ y().clearTimeout(c), r(i);
4163
4176
  }
4164
4177
  i.ping(a).then(a, () => {
4165
4178
  s(o);
@@ -4182,13 +4195,13 @@ async function lr(n) {
4182
4195
  * See the License for the specific language governing permissions and
4183
4196
  * limitations under the License.
4184
4197
  */
4185
- const ur = {
4198
+ const pr = {
4186
4199
  location: "yes",
4187
4200
  resizable: "yes",
4188
4201
  statusbar: "yes",
4189
4202
  toolbar: "no"
4190
- }, dr = 500, hr = 600, fr = "_blank", pr = "http://localhost";
4191
- class rt {
4203
+ }, mr = 500, gr = 600, _r = "_blank", vr = "http://localhost";
4204
+ class at {
4192
4205
  constructor(e) {
4193
4206
  this.window = e, this.associatedEvent = null;
4194
4207
  }
@@ -4200,33 +4213,33 @@ class rt {
4200
4213
  }
4201
4214
  }
4202
4215
  }
4203
- function mr(n, e, t, i = dr, r = hr) {
4216
+ function Ir(n, e, t, i = mr, r = gr) {
4204
4217
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4205
4218
  let c = "";
4206
- const a = Object.assign(Object.assign({}, ur), {
4219
+ const a = Object.assign(Object.assign({}, pr), {
4207
4220
  width: i.toString(),
4208
4221
  height: r.toString(),
4209
4222
  top: s,
4210
4223
  left: o
4211
- }), l = g().toLowerCase();
4212
- t && (c = Rt(l) ? fr : t), St(l) && (e = e || pr, a.scrollbars = "yes");
4213
- const d = Object.entries(a).reduce((_, [x, M]) => `${_}${x}=${M},`, "");
4214
- if (zn(l) && c !== "_self")
4215
- return gr(e || "", c), new rt(null);
4216
- const f = window.open(e || "", c, d);
4224
+ }), l = _().toLowerCase();
4225
+ t && (c = Ct(l) ? _r : t), At(l) && (e = e || vr, a.scrollbars = "yes");
4226
+ const d = Object.entries(a).reduce((p, [w, U]) => `${p}${w}=${U},`, "");
4227
+ if (Xn(l) && c !== "_self")
4228
+ return Tr(e || "", c), new at(null);
4229
+ const h = window.open(e || "", c, d);
4217
4230
  u(
4218
- f,
4231
+ h,
4219
4232
  n,
4220
4233
  "popup-blocked"
4221
4234
  /* AuthErrorCode.POPUP_BLOCKED */
4222
4235
  );
4223
4236
  try {
4224
- f.focus();
4237
+ h.focus();
4225
4238
  } catch {
4226
4239
  }
4227
- return new rt(f);
4240
+ return new at(h);
4228
4241
  }
4229
- function gr(n, e) {
4242
+ function Tr(n, e) {
4230
4243
  const t = document.createElement("a");
4231
4244
  t.href = n, t.target = e;
4232
4245
  const i = document.createEvent("MouseEvent");
@@ -4248,8 +4261,8 @@ function gr(n, e) {
4248
4261
  * See the License for the specific language governing permissions and
4249
4262
  * limitations under the License.
4250
4263
  */
4251
- const _r = "__/auth/handler", vr = "emulator/auth/handler", Ir = encodeURIComponent("fac");
4252
- async function st(n, e, t, i, r, s) {
4264
+ const yr = "__/auth/handler", wr = "emulator/auth/handler", Er = encodeURIComponent("fac");
4265
+ async function ct(n, e, t, i, r, s) {
4253
4266
  u(
4254
4267
  n.config.authDomain,
4255
4268
  n,
@@ -4269,24 +4282,24 @@ async function st(n, e, t, i, r, s) {
4269
4282
  v: J,
4270
4283
  eventId: r
4271
4284
  };
4272
- if (e instanceof Dt) {
4273
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", yn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4274
- for (const [d, f] of Object.entries({}))
4275
- o[d] = f;
4285
+ if (e instanceof Vt) {
4286
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", bn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4287
+ for (const [d, h] of Object.entries({}))
4288
+ o[d] = h;
4276
4289
  }
4277
4290
  if (e instanceof Q) {
4278
- const d = e.getScopes().filter((f) => f !== "");
4291
+ const d = e.getScopes().filter((h) => h !== "");
4279
4292
  d.length > 0 && (o.scopes = d.join(","));
4280
4293
  }
4281
4294
  n.tenantId && (o.tid = n.tenantId);
4282
4295
  const c = o;
4283
4296
  for (const d of Object.keys(c))
4284
4297
  c[d] === void 0 && delete c[d];
4285
- const a = await n._getAppCheckToken(), l = a ? `#${Ir}=${encodeURIComponent(a)}` : "";
4286
- return `${Tr(n)}?${Y(c).slice(1)}${l}`;
4298
+ const a = await n._getAppCheckToken(), l = a ? `#${Er}=${encodeURIComponent(a)}` : "";
4299
+ return `${kr(n)}?${Y(c).slice(1)}${l}`;
4287
4300
  }
4288
- function Tr({ config: n }) {
4289
- return n.emulator ? Ce(n, vr) : `https://${n.authDomain}/${_r}`;
4301
+ function kr({ config: n }) {
4302
+ return n.emulator ? Me(n, wr) : `https://${n.authDomain}/${yr}`;
4290
4303
  }
4291
4304
  /**
4292
4305
  * @license
@@ -4305,29 +4318,29 @@ function Tr({ config: n }) {
4305
4318
  * limitations under the License.
4306
4319
  */
4307
4320
  const we = "webStorageSupport";
4308
- class wr {
4321
+ class br {
4309
4322
  constructor() {
4310
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Ht, this._completeRedirectFn = Bi, this._overrideRedirectResult = Wi;
4323
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Gt, this._completeRedirectFn = Ji, this._overrideRedirectResult = zi;
4311
4324
  }
4312
4325
  // Wrapping in async even though we don't await anywhere in order
4313
4326
  // to make sure errors are raised as promise rejections
4314
4327
  async _openPopup(e, t, i, r) {
4315
4328
  var s;
4316
- S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4317
- const o = await st(e, t, i, Ee(), r);
4318
- return mr(e, o, Me());
4329
+ P((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4330
+ const o = await ct(e, t, i, Re(), r);
4331
+ return Ir(e, o, xe());
4319
4332
  }
4320
4333
  async _openRedirect(e, t, i, r) {
4321
4334
  await this._originValidation(e);
4322
- const s = await st(e, t, i, Ee(), r);
4323
- return ki(s), new Promise(() => {
4335
+ const s = await ct(e, t, i, Re(), r);
4336
+ return Pi(s), new Promise(() => {
4324
4337
  });
4325
4338
  }
4326
4339
  _initialize(e) {
4327
4340
  const t = e._key();
4328
4341
  if (this.eventManagers[t]) {
4329
4342
  const { manager: r, promise: s } = this.eventManagers[t];
4330
- return r ? Promise.resolve(r) : (S(s, "If manager is not set, promise should be"), s);
4343
+ return r ? Promise.resolve(r) : (P(s, "If manager is not set, promise should be"), s);
4331
4344
  }
4332
4345
  const i = this.initAndGetManager(e);
4333
4346
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4335,7 +4348,7 @@ class wr {
4335
4348
  }), i;
4336
4349
  }
4337
4350
  async initAndGetManager(e) {
4338
- const t = await lr(e), i = new zi(e);
4351
+ const t = await fr(e), i = new Xi(e);
4339
4352
  return t.register("authEvent", (r) => (u(
4340
4353
  r == null ? void 0 : r.authEvent,
4341
4354
  e,
@@ -4350,7 +4363,7 @@ class wr {
4350
4363
  this.iframes[e._key()].send(we, { type: we }, (r) => {
4351
4364
  var s;
4352
4365
  const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[we];
4353
- o !== void 0 && t(!!o), b(
4366
+ o !== void 0 && t(!!o), R(
4354
4367
  e,
4355
4368
  "internal-error"
4356
4369
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4359,14 +4372,14 @@ class wr {
4359
4372
  }
4360
4373
  _originValidation(e) {
4361
4374
  const t = e._key();
4362
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Qi(e)), this.originValidationPromises[t];
4375
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = nr(e)), this.originValidationPromises[t];
4363
4376
  }
4364
4377
  get _shouldInitProactively() {
4365
- return Nt() || Ne() || pe();
4378
+ return Ut() || De() || pe();
4366
4379
  }
4367
4380
  }
4368
- const yr = wr;
4369
- var ot = "@firebase/auth", at = "1.7.5";
4381
+ const Sr = br;
4382
+ var lt = "@firebase/auth", ut = "1.7.5";
4370
4383
  /**
4371
4384
  * @license
4372
4385
  * Copyright 2020 Google LLC
@@ -4383,7 +4396,7 @@ var ot = "@firebase/auth", at = "1.7.5";
4383
4396
  * See the License for the specific language governing permissions and
4384
4397
  * limitations under the License.
4385
4398
  */
4386
- class Er {
4399
+ class Rr {
4387
4400
  constructor(e) {
4388
4401
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4389
4402
  }
@@ -4434,7 +4447,7 @@ class Er {
4434
4447
  * See the License for the specific language governing permissions and
4435
4448
  * limitations under the License.
4436
4449
  */
4437
- function kr(n) {
4450
+ function Pr(n) {
4438
4451
  switch (n) {
4439
4452
  case "Node":
4440
4453
  return "node";
@@ -4450,8 +4463,8 @@ function kr(n) {
4450
4463
  return;
4451
4464
  }
4452
4465
  }
4453
- function br(n) {
4454
- je(new Ge(
4466
+ function Ar(n) {
4467
+ ze(new qe(
4455
4468
  "auth",
4456
4469
  (e, { options: t }) => {
4457
4470
  const i = e.getProvider("app").getImmediate(), r = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: o, authDomain: c } = i.options;
@@ -4463,9 +4476,9 @@ function br(n) {
4463
4476
  apiHost: "identitytoolkit.googleapis.com",
4464
4477
  tokenApiHost: "securetoken.googleapis.com",
4465
4478
  apiScheme: "https",
4466
- sdkClientVersion: Lt(n)
4467
- }, l = new ei(i, r, s, a);
4468
- return oi(l, t), l;
4479
+ sdkClientVersion: Dt(n)
4480
+ }, l = new ri(i, r, s, a);
4481
+ return ui(l, t), l;
4469
4482
  },
4470
4483
  "PUBLIC"
4471
4484
  /* ComponentType.PUBLIC */
@@ -4477,21 +4490,21 @@ function br(n) {
4477
4490
  "auth-internal"
4478
4491
  /* _ComponentName.AUTH_INTERNAL */
4479
4492
  ).initialize();
4480
- })), je(new Ge(
4493
+ })), ze(new qe(
4481
4494
  "auth-internal",
4482
4495
  (e) => {
4483
4496
  const t = me(e.getProvider(
4484
4497
  "auth"
4485
4498
  /* _ComponentName.AUTH */
4486
4499
  ).getImmediate());
4487
- return ((i) => new Er(i))(t);
4500
+ return ((i) => new Rr(i))(t);
4488
4501
  },
4489
4502
  "PRIVATE"
4490
4503
  /* ComponentType.PRIVATE */
4491
4504
  ).setInstantiationMode(
4492
4505
  "EXPLICIT"
4493
4506
  /* InstantiationMode.EXPLICIT */
4494
- )), ye(ot, at, kr(n)), ye(ot, at, "esm2017");
4507
+ )), Se(lt, ut, Pr(n)), Se(lt, ut, "esm2017");
4495
4508
  }
4496
4509
  /**
4497
4510
  * @license
@@ -4509,124 +4522,117 @@ function br(n) {
4509
4522
  * See the License for the specific language governing permissions and
4510
4523
  * limitations under the License.
4511
4524
  */
4512
- const Sr = 5 * 60, Rr = ft("authIdTokenMaxAge") || Sr;
4513
- let ct = null;
4514
- const Pr = (n) => async (e) => {
4525
+ const Cr = 5 * 60, Or = gt("authIdTokenMaxAge") || Cr;
4526
+ let dt = null;
4527
+ const Nr = (n) => async (e) => {
4515
4528
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4516
- if (i && i > Rr)
4529
+ if (i && i > Or)
4517
4530
  return;
4518
4531
  const r = t == null ? void 0 : t.token;
4519
- ct !== r && (ct = r, await fetch(n, {
4532
+ dt !== r && (dt = r, await fetch(n, {
4520
4533
  method: r ? "POST" : "DELETE",
4521
4534
  headers: r ? {
4522
4535
  Authorization: `Bearer ${r}`
4523
4536
  } : {}
4524
4537
  }));
4525
4538
  };
4526
- function Ar(n = vn()) {
4527
- const e = pt(n, "auth");
4539
+ function Lr(n = yn()) {
4540
+ const e = _t(n, "auth");
4528
4541
  if (e.isInitialized())
4529
4542
  return e.getImmediate();
4530
- const t = si(n, {
4531
- popupRedirectResolver: yr,
4543
+ const t = li(n, {
4544
+ popupRedirectResolver: Sr,
4532
4545
  persistence: [
4533
- Li,
4534
- wi,
4535
- Ht
4546
+ Fi,
4547
+ bi,
4548
+ Gt
4536
4549
  ]
4537
- }), i = ft("authTokenSyncURL");
4550
+ }), i = gt("authTokenSyncURL");
4538
4551
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4539
4552
  const s = new URL(i, location.origin);
4540
4553
  if (location.origin === s.origin) {
4541
- const o = Pr(s.toString());
4542
- _i(t, o, () => o(t.currentUser)), gi(t, (c) => o(c));
4554
+ const o = Nr(s.toString());
4555
+ yi(t, o, () => o(t.currentUser)), Ti(t, (c) => o(c));
4543
4556
  }
4544
4557
  }
4545
- const r = _n("auth");
4546
- return r && ai(t, `http://${r}`), t;
4558
+ const r = Tn("auth");
4559
+ return r && di(t, `http://${r}`), t;
4547
4560
  }
4548
- function Cr() {
4561
+ function Mr() {
4549
4562
  var n, e;
4550
4563
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4551
4564
  }
4552
- ti({
4565
+ si({
4553
4566
  loadJS(n) {
4554
4567
  return new Promise((e, t) => {
4555
4568
  const i = document.createElement("script");
4556
4569
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4557
- const s = I(
4570
+ const s = T(
4558
4571
  "internal-error"
4559
4572
  /* AuthErrorCode.INTERNAL_ERROR */
4560
4573
  );
4561
4574
  s.customData = r, t(s);
4562
- }, i.type = "text/javascript", i.charset = "UTF-8", Cr().appendChild(i);
4575
+ }, i.type = "text/javascript", i.charset = "UTF-8", Mr().appendChild(i);
4563
4576
  });
4564
4577
  },
4565
4578
  gapiScript: "https://apis.google.com/js/api.js",
4566
4579
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4567
4580
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4568
4581
  });
4569
- br(
4582
+ Ar(
4570
4583
  "Browser"
4571
4584
  /* ClientPlatform.BROWSER */
4572
4585
  );
4573
- var Or = { 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" }, Nr = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" }, Lr = { mode: "development", appMode: "mf" };
4574
- const Mr = {
4586
+ var Ur = { 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" }, Dr = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
4587
+ const Fr = {
4575
4588
  key: 1,
4576
4589
  class: "h-full w-full"
4577
- }, Ur = ["src"], Yr = /* @__PURE__ */ lt({
4590
+ }, xr = ["src"], Zr = /* @__PURE__ */ ht({
4578
4591
  __name: "App",
4579
4592
  setup(n) {
4580
- const e = We(), t = on(), i = an(), r = cn(), s = ln(), o = ht(), c = ne(o.query.showHeader !== "false"), a = ne(!1), { currentBusiness: l } = We(), d = ne(!1), f = Ve(() => i.version), _ = Ve(() => {
4581
- const p = e.currentCountry.value || "MY", m = Be.getIdToken(), v = l.value._id;
4582
- return `${Nr.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${p}&token=${m}`;
4593
+ const e = be(), t = cn(), i = ln(), r = un(), s = dn(), o = mt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = be(), d = te(!1), h = Ee(() => i.version), p = Ee(() => {
4594
+ const m = e.currentCountry.value || "MY", g = Ke.getIdToken(), I = l.value._id;
4595
+ return `${Dr.marketingV1Portal}/b/${I}/marketing/overview?showHeader=false&country=${m}&token=${g}`;
4583
4596
  });
4584
- async function x() {
4585
- if (En().length) {
4597
+ async function w() {
4598
+ if (Sn().length) {
4586
4599
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4587
4600
  return;
4588
4601
  }
4589
- const p = kn(Or.firebase), m = await sn.getCustomToken(), v = Ar();
4590
- await mi(v, m), bn(p), console.log("initFirebase", p);
4602
+ const m = Rn(Ur.firebase), g = await an.getCustomToken(), I = Lr();
4603
+ await Ii(I, g), Pn(m), console.log("initFirebase", m);
4591
4604
  }
4592
- const M = async () => {
4593
- d.value = !1, await tn(), console.log("forceRerender"), Be.setBusinessId(l.value._id), await i.readPremium(), !a.value && f.value === "v2" ? e.registerSidebarComponent(Pn) : e.hideSidebarToggle(!0), await x(), a.value = !0, d.value = !0;
4605
+ const U = async () => {
4606
+ d.value = !1, await rn(), console.log("forceRerender"), Ke.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(Nn) : e.hideSidebarToggle(!0), await w(), a.value = !0, d.value = !0;
4594
4607
  };
4595
- async function ee() {
4596
- var p;
4597
- console.log("initRemyClient.."), await Rn.init({
4598
- token: ((p = e.sessionUser.value) == null ? void 0 : p.token) || "",
4599
- dev: Lr.mode === "development"
4600
- });
4601
- }
4602
- return Xt(() => {
4603
- if (Sn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4604
- const p = document.getElementsByClassName("app-header")[0], m = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], U = document.getElementsByTagName("main")[0];
4605
- p == null || p.classList.add("!hidden"), m == null || m.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), U == null || U.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4608
+ return en(() => {
4609
+ if (An.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4610
+ const m = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], I = document.getElementsByClassName("app-container")[0], x = document.getElementsByTagName("main")[0];
4611
+ m == null || m.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), I == null || I.classList.add("!pt-0"), x == null || x.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4606
4612
  }
4607
- l.value != null && (console.log("App mounted, forceRerender"), M()), ee();
4608
- }), ut(
4613
+ l.value != null && (console.log("App mounted, forceRerender"), U());
4614
+ }), ft(
4609
4615
  () => e.currentBusiness.value,
4610
- async (p, m) => {
4611
- console.log("Current business changed"), p != null && p._id != m._id && (console.log("forceRerender when business changes", p, m), M());
4616
+ async (m, g) => {
4617
+ console.log("Current business changed"), m != null && m._id != g._id && (console.log("forceRerender when business changes", m, g), U());
4612
4618
  }
4613
- ), (p, m) => (ie(), $e(Qt, null, [
4614
- P(d) && P(f) === "v2" ? (ie(), dt(P(rn), { key: 0 })) : He("", !0),
4615
- P(d) && P(f) !== "v2" ? (ie(), $e("div", Mr, [
4616
- Zt(dn, {
4617
- json: { url: P(_) }
4619
+ ), (m, g) => (ne(), ke(tn, null, [
4620
+ v(d) && v(h) === "v2" ? (ne(), nn(v(on), { key: 0 })) : Ge("", !0),
4621
+ v(d) && v(h) !== "v2" ? (ne(), ke("div", Fr, [
4622
+ pt(pn, {
4623
+ json: { url: v(p) }
4618
4624
  }, null, 8, ["json"]),
4619
- en("iframe", {
4625
+ ie("iframe", {
4620
4626
  allow: "clipboard-read; clipboard-write",
4621
4627
  frameBorder: "0",
4622
4628
  height: "100%",
4623
4629
  width: "100%",
4624
- src: P(_)
4625
- }, null, 8, Ur)
4626
- ])) : He("", !0)
4630
+ src: v(p)
4631
+ }, null, 8, xr)
4632
+ ])) : Ge("", !0)
4627
4633
  ], 64));
4628
4634
  }
4629
4635
  });
4630
4636
  export {
4631
- Yr as default
4637
+ Zr as default
4632
4638
  };