@feedmepos/mf-connect 0.1.38-beta.8 → 0.1.38-beta.80

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 (159) hide show
  1. package/dist/{Analytic-CJap-Cat.js → Analytic-LOK5TzX0.js} +31 -32
  2. package/dist/{App-CLTtX1QT.js → App-Bk5Z5u5_.js} +617 -607
  3. package/dist/AuditLogs-Rezf9EeA.js +1991 -0
  4. package/dist/{Bin-C2xMLxoE.js → Bin-B8yzS5bD.js} +10 -10
  5. package/dist/Broadcast-CZ0QCvua.js +266 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BCkD7Xfn.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-iJQS2Ck9.js} +6 -6
  7. package/dist/{Card-BPrCNLQy.js → Card-BQOv5yB9.js} +145 -140
  8. package/dist/Collections-qenPlCd2.js +540 -0
  9. package/dist/Credit-BJLskbVu.js +260 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
  12. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  13. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DKWCWOU_.js +3120 -0
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Dw1qQfnG.js +351 -0
  15. package/dist/Experience-BjfEiGT8.js +259 -0
  16. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-C013Tr1o.js} +1 -1
  17. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  18. package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
  19. package/dist/Game-Gw_tFjen.js +330 -0
  20. package/dist/Grab-Bdv7SaB9.js +300 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-Ba4L39GL.js} +49 -48
  22. package/dist/{Index-DMdNgISh.js → Index-C67U3YDJ.js} +54 -54
  23. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-pQ8sF5KW.js +48 -0
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-o-eN3J4i.js} +1 -1
  25. package/dist/{MainLayout-B1aJoR95.js → MainLayout-DPjqCyJ5.js} +1 -1
  26. package/dist/Marketing-DtEooXof.js +166 -0
  27. package/dist/MarketingMaterialEdit-Balw055Y.js +1065 -0
  28. package/dist/{Member-CnSXGQi_.js → Member-QA7TQnyw.js} +38 -37
  29. package/dist/{MemberList-DcpEKV1D.js → MemberList-CSJQFYlh.js} +486 -491
  30. package/dist/{MemberTransactions-DeuuEcO5.js → MemberTransactions-D-46vda_.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DLAEPNsq.js → MessageInput.vue_vue_type_script_setup_true_lang-6a7_lw74.js} +13443 -10607
  32. package/dist/Mission-DJVxFbX5.js +334 -0
  33. package/dist/{Overview-elpi-jpI.js → Overview-Btkh3oiI.js} +24 -25
  34. package/dist/Point-CVdF9GtN.js +262 -0
  35. package/dist/Promotion-BtmlvUd3.js +396 -0
  36. package/dist/{Queue-GvBhNEFe.js → Queue-BfiCMsLC.js} +23 -24
  37. package/dist/{Record-CbSxgo8i.js → Record-B07QGPli.js} +10 -10
  38. package/dist/Review-BeZ90jW9.js +621 -0
  39. package/dist/ReviewFacebookCallback-CwAcKaib.js +243 -0
  40. package/dist/ReviewGoogleCallback-CVK6Yc5E.js +213 -0
  41. package/dist/{Reward-QCGlrq89.js → Reward-CyXqNpAa.js} +16 -16
  42. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DSRvoo9z.js → RewardGroup.vue_vue_type_script_setup_true_lang-BICsdgSh.js} +13 -14
  43. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BgKGNK7y.js +1912 -0
  44. package/dist/{Segment-5PndnEUa.js → Segment-B9g57O7g.js} +273 -274
  45. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DXR7bpzY.js → SelectItems.vue_vue_type_script_setup_true_lang-BwDOXE87.js} +23 -23
  46. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmITlNtt.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DXDcJLYF.js} +12 -12
  47. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CROBk6cD.js +226 -0
  48. package/dist/Setting-BHteqZv6.js +2039 -0
  49. package/dist/SettingAdvertisements-CubrbuSL.js +264 -0
  50. package/dist/Store-u6LYUnmp.js +1996 -0
  51. package/dist/StoreRewards-D9h0YnEx.js +535 -0
  52. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-vrYqDGOa.js +1129 -0
  53. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-WgNstmNx.js +7007 -0
  54. package/dist/{Tier-BKKxG29r.js → Tier-CBdi4sPT.js} +561 -480
  55. package/dist/{Title-CReZgw8V.js → Title-BegmN7hs.js} +151 -149
  56. package/dist/{Transaction-HWCmSVaJ.js → Transaction-C6XMd9_r.js} +2 -2
  57. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D00AchXo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BBf4BP4m.js} +7 -7
  58. package/dist/Voucher-D6hSas_z.js +421 -0
  59. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-ZOlAZ_q5.js +421 -0
  60. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXF39yC1.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bs8TNiCY.js} +2 -2
  61. package/dist/app-Duwed9mD.js +59309 -0
  62. package/dist/app.js +1 -1
  63. package/dist/{business-Bc-EMd2p.js → business-6oZ8Rgui.js} +11 -8
  64. package/dist/campaign-CzenWLhs.js +219 -0
  65. package/dist/campaign-PYce7g0o.js +253 -0
  66. package/dist/campaign.enum-KHniCp5a.js +26 -0
  67. package/dist/campaign.fn-dOSgHJcU.js +776 -0
  68. package/dist/{collectible.enum-C4dM8khp.js → collectible.enum-BZA1DKIB.js} +1 -1
  69. package/dist/{collection.fn-AjDNdFe1.js → collection.fn-CyfrdKBf.js} +2 -2
  70. package/dist/dto-DYmM2ud_.js +222 -0
  71. package/dist/duplicateCampaign-BXaDK8Q6.js +51 -0
  72. package/dist/effect-DBI_JHbP.js +89 -0
  73. package/dist/{email-addresses-B0SzUCQM.js → email-addresses-BNs-WN79.js} +2 -2
  74. package/dist/{export-Bgz6WcNZ.js → export-DTCCKE2m.js} +4 -4
  75. package/dist/{helper-B1vFwohM.js → helper-CeYr7Anh.js} +22 -7
  76. package/dist/index-38u-cCwD.js +3431 -0
  77. package/dist/{index-Cm2sBagk.js → index-BdjY7GRO.js} +1 -1
  78. package/dist/index-CGMiuxyf.js +85 -0
  79. package/dist/index-CQZbm9P5.js +8912 -0
  80. package/dist/index-Cal60fAm.js +48 -0
  81. package/dist/{index-DT2viYsL.js → index-CnRLkzpg.js} +617 -191
  82. package/dist/index-CuvNtC_M.js +61 -0
  83. package/dist/{index-CSQY21Zb.js → index-D-kPBF9C.js} +3 -3
  84. package/dist/{index-DVQnrex_.js → index-DcFYm1fy.js} +3 -3
  85. package/dist/index-DjONNxbl.js +30289 -0
  86. package/dist/{index-26SopNpv.js → index-ItaoypTr.js} +1 -1
  87. package/dist/index-_jxXI4_v.js +28899 -0
  88. package/dist/{index-DwT9RLst.js → index-nXfjG8UQ.js} +23 -12
  89. package/dist/{index-BIRmS75g.js → index-pHQfP2e7.js} +1 -1
  90. package/dist/{index.esm2017-BAIN70_n.js → index.esm2017-CokFPnqn.js} +185 -185
  91. package/dist/{loading-C6Ouh0mG.js → loading-fZQi5zP8.js} +1 -1
  92. package/dist/{lodash-B5I3zXaY.js → lodash-R-DIRmbj.js} +1 -1
  93. package/dist/{membership-DU0BwIj8.js → membership-CApN5ZJ1.js} +3 -3
  94. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  95. package/dist/{money-Bg7GuE5s.js → money-C6I6vVy2.js} +1 -1
  96. package/dist/{number-Ddmqo5D_.js → number-Dq4d381U.js} +1 -1
  97. package/dist/objectid-Kv5GREBk.js +145 -0
  98. package/dist/{campaign-BeF8kTyg.js → plugins-9_UvAdJ2.js} +784 -777
  99. package/dist/remy-NLAa-9Qg.js +46 -0
  100. package/dist/{reward-CN4gvn4c.js → reward-DXHGeGYY.js} +1 -1
  101. package/dist/{rule-CpiqqR0c.js → rule-B_XgRDr-.js} +505 -487
  102. package/dist/rule-builder-BMXyzu8k.js +102 -0
  103. package/dist/style.css +11 -2
  104. package/dist/template-CnyTUzQU.js +188 -0
  105. package/dist/timezone-Izs3ibB-.js +1156 -0
  106. package/dist/trigger-Dda3NmaE.js +213 -0
  107. package/dist/usePagination-Byxk4XVn.js +220 -0
  108. package/dist/user-BZxO8qdh.js +55 -0
  109. package/dist/{vue-i18n-DVmD9I_o.js → vue-i18n-DDbkmbSf.js} +433 -433
  110. package/dist/{xlsx-qJHsnW7k.js → xlsx-D8yNl8dN.js} +1 -1
  111. package/dist/{zod-Bg2FbC-D.js → zod-Xp7TePRP.js} +32 -31
  112. package/package.json +14 -6
  113. package/dist/AuditLogs-DW4rwNOn.js +0 -1887
  114. package/dist/Broadcast-Dhc0j16O.js +0 -227
  115. package/dist/Collections-CsUJEmqz.js +0 -465
  116. package/dist/Credit-Mqa-0XJd.js +0 -222
  117. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  118. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWWLxIq-.js +0 -2185
  119. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BiQGZeDc.js +0 -347
  120. package/dist/Experience-BD5C3old.js +0 -223
  121. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  122. package/dist/Game-D4xsi8Ym.js +0 -278
  123. package/dist/Marketing-axcQYl8k.js +0 -20073
  124. package/dist/Mission-BHZiL-GH.js +0 -296
  125. package/dist/Point-gKvdggAl.js +0 -226
  126. package/dist/Promotion-7x2F_sFX.js +0 -289
  127. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AuN9NgcG.js +0 -1751
  128. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DTlv8ZAn.js +0 -147
  129. package/dist/Setting-Cab47wfH.js +0 -1936
  130. package/dist/Store-BFL3T9B5.js +0 -1842
  131. package/dist/StoreRewards-C43dCJtM.js +0 -423
  132. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-aAj5-nzZ.js +0 -1029
  133. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-K3OPSYrF.js +0 -139
  134. package/dist/Voucher-BhUAcPZg.js +0 -384
  135. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-C0YNez2L.js +0 -419
  136. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  137. package/dist/app-BGaUIdCr.js +0 -7086
  138. package/dist/app-DccKBdW_.js +0 -33357
  139. package/dist/campaign-DbJZEU7P.js +0 -96
  140. package/dist/campaign.enum-PBKYGUQY.js +0 -20
  141. package/dist/campaign.fn-Cq-4LfQj.js +0 -758
  142. package/dist/dto-8NvMMYAb.js +0 -214
  143. package/dist/effect-DZhcEQ5g.js +0 -78
  144. package/dist/index-CQQedv0M.js +0 -32260
  145. package/dist/index-CTgQRqQR.js +0 -30038
  146. package/dist/index-CsaQJMAR.js +0 -66
  147. package/dist/index-DGaywhpY.js +0 -76
  148. package/dist/index-DOfLDlI8.js +0 -8861
  149. package/dist/index-DVpAocyR.js +0 -3120
  150. package/dist/index-DlJGd8RC.js +0 -121
  151. package/dist/index-Dm65CTdy.js +0 -38
  152. package/dist/objectid-MCaJXAgq.js +0 -145
  153. package/dist/plugins-C-CRzeyC.js +0 -208
  154. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  155. package/dist/rule-builder-DmkJng-x.js +0 -89
  156. package/dist/template-DTZgnkl5.js +0 -190
  157. package/dist/trigger-CPjJ73Rc.js +0 -144
  158. package/dist/usePagination-BeF5K3M7.js +0 -223
  159. package/dist/user-8VIt8A1x.js +0 -54
@@ -1,153 +1,170 @@
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-Bc-EMd2p.js";
6
- import "./index-Cm2sBagk.js";
7
- import { components as q, useSnackbar as cn, useDialog as ln } from "@feedmepos/ui-library";
8
- import { u as un } from "./vue-i18n-DVmD9I_o.js";
9
- import { R as h } from "./app-BGaUIdCr.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-BAIN70_n.js";
12
- import { _ as Pe } from "./tslib.es6-BCqqvLQ_.js";
13
- import { S as Be, c as Sn } from "./index-CTgQRqQR.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 je, 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-6oZ8Rgui.js";
6
+ import "./index-BdjY7GRO.js";
7
+ import { components as z, useSnackbar as un, useDialog as dn } from "@feedmepos/ui-library";
8
+ import { u as hn } from "./vue-i18n-DDbkmbSf.js";
9
+ import { C as Be, m as fn } from "./timezone-Izs3ibB-.js";
10
+ import { R as f } from "./app-Duwed9mD.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 j, 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 An } from "./index.esm2017-CokFPnqn.js";
13
+ import { _ as Ne } from "./tslib.es6-BCqqvLQ_.js";
14
+ import { S as Ke, c as Pn } from "./index-_jxXI4_v.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
- label: "Marketing material",
112
- value: h["$connect-MARKETING"]
115
+ label: e("connect.navigation.marketingMaterials"),
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"]
121
+ },
122
+ {
123
+ label: e("connect.navigation.review"),
124
+ value: f["$connect-REVIEW"]
117
125
  },
118
126
  {
119
127
  label: e("connect.navigation.setting"),
120
- value: h["$connect-SETTING"]
128
+ value: f["$connect-SETTING"]
121
129
  },
122
130
  {
123
131
  label: e("connect.navigation.bin"),
124
- value: h["$connect-BIN"]
132
+ value: f["$connect-BIN"]
125
133
  }
126
- ], r = nn(), s = ht(), o = i.reduce((a, l) => [...(l.children ?? []).map((d) => d.value), ...a, l.value], []);
127
- ut(
134
+ ], r = sn(), s = mt(), o = i.reduce((d, h) => [...(h.children ?? []).map((p) => p.value), ...d, h.value], []), c = be(), a = Ee(() => {
135
+ const d = c.currentCountry.value || "MY";
136
+ return console.log(`[MF] Timezone set to: ${Be[d]}`), Be[d];
137
+ });
138
+ ft(
128
139
  () => s,
129
- (a) => {
130
- const l = a.matched.map((d) => d.name).reverse();
131
- t.value = l.find((d) => o.includes(d));
140
+ (d) => {
141
+ const h = d.matched.map((p) => p.name).reverse();
142
+ t.value = h.find((p) => o.includes(p));
132
143
  },
133
144
  { immediate: !0 }
134
145
  );
135
- async function c(a) {
136
- await r.push({ name: a });
146
+ async function l(d) {
147
+ await r.push({ name: d });
137
148
  }
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"]);
149
+ return (d, h) => {
150
+ var w;
151
+ const p = Zt("FmCollapsibleTabs");
152
+ return ne(), ke("div", Cn, [
153
+ pt(p, {
154
+ class: "border-fm-color-neutral-gray-100 border-r px-4",
155
+ "model-value": (w = v(t)) == null ? void 0 : w.toString(),
156
+ items: i,
157
+ "onUpdate:modelValue": l
158
+ }, null, 8, ["model-value"]),
159
+ ie("div", On, [
160
+ ie("div", null, "Timezone: " + je(v(a).split("/")[1].replace("_", " ")), 1),
161
+ ie("div", null, "(UTC" + je(v(fn).tz(v(a)).format("Z")) + ")", 1)
162
+ ])
163
+ ]);
147
164
  };
148
165
  }
149
166
  });
150
- var An = "firebase", Cn = "10.12.4";
167
+ var Ln = "firebase", Mn = "10.12.4";
151
168
  /**
152
169
  * @license
153
170
  * Copyright 2020 Google LLC
@@ -164,13 +181,13 @@ var An = "firebase", Cn = "10.12.4";
164
181
  * See the License for the specific language governing permissions and
165
182
  * limitations under the License.
166
183
  */
167
- ye(An, Cn, "app");
168
- function gt() {
184
+ Se(Ln, Mn, "app");
185
+ function It() {
169
186
  return {
170
187
  "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
188
  };
172
189
  }
173
- const On = gt, _t = new Se("auth", "Firebase", gt());
190
+ const Un = It, Tt = new Ce("auth", "Firebase", It());
174
191
  /**
175
192
  * @license
176
193
  * Copyright 2020 Google LLC
@@ -187,12 +204,12 @@ const On = gt, _t = new Se("auth", "Firebase", gt());
187
204
  * See the License for the specific language governing permissions and
188
205
  * limitations under the License.
189
206
  */
190
- const ce = new hn("@firebase/auth");
191
- function Nn(n, ...e) {
192
- ce.logLevel <= mt.WARN && ce.warn(`Auth (${J}): ${n}`, ...e);
207
+ const ce = new mn("@firebase/auth");
208
+ function Dn(n, ...e) {
209
+ ce.logLevel <= vt.WARN && ce.warn(`Auth (${J}): ${n}`, ...e);
193
210
  }
194
211
  function re(n, ...e) {
195
- ce.logLevel <= mt.ERROR && ce.error(`Auth (${J}): ${n}`, ...e);
212
+ ce.logLevel <= vt.ERROR && ce.error(`Auth (${J}): ${n}`, ...e);
196
213
  }
197
214
  /**
198
215
  * @license
@@ -210,38 +227,38 @@ function re(n, ...e) {
210
227
  * See the License for the specific language governing permissions and
211
228
  * limitations under the License.
212
229
  */
213
- function b(n, ...e) {
214
- throw Ae(n, ...e);
230
+ function R(n, ...e) {
231
+ throw Le(n, ...e);
215
232
  }
216
- function I(n, ...e) {
217
- return Ae(n, ...e);
233
+ function T(n, ...e) {
234
+ return Le(n, ...e);
218
235
  }
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, {
236
+ function yt(n, e, t) {
237
+ const i = Object.assign(Object.assign({}, Un()), { [e]: t });
238
+ return new Ce("auth", "Firebase", i).create(e, {
222
239
  appName: n.name
223
240
  });
224
241
  }
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");
242
+ function M(n) {
243
+ return yt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
227
244
  }
228
- function Ae(n, ...e) {
245
+ function Le(n, ...e) {
229
246
  if (typeof n != "string") {
230
247
  const t = e[0], i = [...e.slice(1)];
231
248
  return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
232
249
  }
233
- return _t.create(n, ...e);
250
+ return Tt.create(n, ...e);
234
251
  }
235
252
  function u(n, e, ...t) {
236
253
  if (!n)
237
- throw Ae(e, ...t);
254
+ throw Le(e, ...t);
238
255
  }
239
- function y(n) {
256
+ function k(n) {
240
257
  const e = "INTERNAL ASSERTION FAILED: " + n;
241
258
  throw re(e), new Error(e);
242
259
  }
243
- function S(n, e) {
244
- n || y(e);
260
+ function A(n, e) {
261
+ n || k(e);
245
262
  }
246
263
  /**
247
264
  * @license
@@ -259,14 +276,14 @@ function S(n, e) {
259
276
  * See the License for the specific language governing permissions and
260
277
  * limitations under the License.
261
278
  */
262
- function Ee() {
279
+ function Re() {
263
280
  var n;
264
281
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
265
282
  }
266
- function Ln() {
267
- return qe() === "http:" || qe() === "https:";
283
+ function Fn() {
284
+ return Je() === "http:" || Je() === "https:";
268
285
  }
269
- function qe() {
286
+ function Je() {
270
287
  var n;
271
288
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.protocol) || null;
272
289
  }
@@ -286,15 +303,15 @@ function qe() {
286
303
  * See the License for the specific language governing permissions and
287
304
  * limitations under the License.
288
305
  */
289
- function Mn() {
306
+ function xn() {
290
307
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
291
308
  // This is especially true for Cordova apps which have unreliable
292
309
  // navigator.onLine behavior unless cordova-plugin-network-information is
293
310
  // installed which overwrites the native navigator.onLine value and
294
311
  // defines navigator.connection.
295
- (Ln() || mn() || "connection" in navigator) ? navigator.onLine : !0;
312
+ (Fn() || vn() || "connection" in navigator) ? navigator.onLine : !0;
296
313
  }
297
- function Un() {
314
+ function Vn() {
298
315
  if (typeof navigator > "u")
299
316
  return null;
300
317
  const n = navigator;
@@ -324,10 +341,10 @@ function Un() {
324
341
  */
325
342
  class X {
326
343
  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();
344
+ this.shortDelay = e, this.longDelay = t, A(t > e, "Short delay should be less than long delay!"), this.isMobile = gn() || _n();
328
345
  }
329
346
  get() {
330
- return Mn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
347
+ return xn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
331
348
  }
332
349
  }
333
350
  /**
@@ -346,8 +363,8 @@ class X {
346
363
  * See the License for the specific language governing permissions and
347
364
  * limitations under the License.
348
365
  */
349
- function Ce(n, e) {
350
- S(n.emulator, "Emulator should always be set here");
366
+ function Me(n, e) {
367
+ A(n.emulator, "Emulator should always be set here");
351
368
  const { url: t } = n.emulator;
352
369
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
353
370
  }
@@ -367,7 +384,7 @@ function Ce(n, e) {
367
384
  * See the License for the specific language governing permissions and
368
385
  * limitations under the License.
369
386
  */
370
- class It {
387
+ class wt {
371
388
  static initialize(e, t, i) {
372
389
  this.fetchImpl = e, t && (this.headersImpl = t), i && (this.responseImpl = i);
373
390
  }
@@ -380,7 +397,7 @@ class It {
380
397
  return globalThis.fetch;
381
398
  if (typeof fetch < "u")
382
399
  return fetch;
383
- y("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
400
+ k("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
384
401
  }
385
402
  static headers() {
386
403
  if (this.headersImpl)
@@ -391,7 +408,7 @@ class It {
391
408
  return globalThis.Headers;
392
409
  if (typeof Headers < "u")
393
410
  return Headers;
394
- y("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
411
+ k("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
395
412
  }
396
413
  static response() {
397
414
  if (this.responseImpl)
@@ -402,7 +419,7 @@ class It {
402
419
  return globalThis.Response;
403
420
  if (typeof Response < "u")
404
421
  return Response;
405
- y("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
422
+ k("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
406
423
  }
407
424
  }
408
425
  /**
@@ -421,7 +438,7 @@ class It {
421
438
  * See the License for the specific language governing permissions and
422
439
  * limitations under the License.
423
440
  */
424
- const Dn = {
441
+ const $n = {
425
442
  // Custom token errors.
426
443
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
427
444
  // This can only happen if the SDK sends a bad request.
@@ -512,12 +529,12 @@ const Dn = {
512
529
  * See the License for the specific language governing permissions and
513
530
  * limitations under the License.
514
531
  */
515
- const Fn = new X(3e4, 6e4);
532
+ const Hn = new X(3e4, 6e4);
516
533
  function fe(n, e) {
517
534
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
518
535
  }
519
536
  async function G(n, e, t, i, r = {}) {
520
- return Tt(n, r, async () => {
537
+ return Et(n, r, async () => {
521
538
  let s = {}, o = {};
522
539
  i && (e === "GET" ? o = i : s = {
523
540
  body: JSON.stringify(i)
@@ -529,76 +546,76 @@ async function G(n, e, t, i, r = {}) {
529
546
  ] = "application/json", n.languageCode && (a[
530
547
  "X-Firebase-Locale"
531
548
  /* HttpHeader.X_FIREBASE_LOCALE */
532
- ] = n.languageCode), It.fetch()(yt(n, n.config.apiHost, t, c), Object.assign({
549
+ ] = n.languageCode), wt.fetch()(bt(n, n.config.apiHost, t, c), Object.assign({
533
550
  method: e,
534
551
  headers: a,
535
552
  referrerPolicy: "no-referrer"
536
553
  }, s));
537
554
  });
538
555
  }
539
- async function Tt(n, e, t) {
556
+ async function Et(n, e, t) {
540
557
  n._canInitEmulator = !1;
541
- const i = Object.assign(Object.assign({}, Dn), e);
558
+ const i = Object.assign(Object.assign({}, $n), e);
542
559
  try {
543
- const r = new xn(n), s = await Promise.race([
560
+ const r = new Wn(n), s = await Promise.race([
544
561
  t(),
545
562
  r.promise
546
563
  ]);
547
564
  r.clearNetworkTimeout();
548
565
  const o = await s.json();
549
566
  if ("needConfirmation" in o)
550
- throw te(n, "account-exists-with-different-credential", o);
567
+ throw ee(n, "account-exists-with-different-credential", o);
551
568
  if (s.ok && !("errorMessage" in o))
552
569
  return o;
553
570
  {
554
571
  const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
555
572
  if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
556
- throw te(n, "credential-already-in-use", o);
573
+ throw ee(n, "credential-already-in-use", o);
557
574
  if (a === "EMAIL_EXISTS")
558
- throw te(n, "email-already-in-use", o);
575
+ throw ee(n, "email-already-in-use", o);
559
576
  if (a === "USER_DISABLED")
560
- throw te(n, "user-disabled", o);
577
+ throw ee(n, "user-disabled", o);
561
578
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
562
579
  if (l)
563
- throw vt(n, d, l);
564
- b(n, d);
580
+ throw yt(n, d, l);
581
+ R(n, d);
565
582
  }
566
583
  } catch (r) {
567
- if (r instanceof Re)
584
+ if (r instanceof Oe)
568
585
  throw r;
569
- b(n, "network-request-failed", { message: String(r) });
586
+ R(n, "network-request-failed", { message: String(r) });
570
587
  }
571
588
  }
572
- async function wt(n, e, t, i, r = {}) {
589
+ async function kt(n, e, t, i, r = {}) {
573
590
  const s = await G(n, e, t, i, r);
574
- return "mfaPendingCredential" in s && b(n, "multi-factor-auth-required", {
591
+ return "mfaPendingCredential" in s && R(n, "multi-factor-auth-required", {
575
592
  _serverResponse: s
576
593
  }), s;
577
594
  }
578
- function yt(n, e, t, i) {
595
+ function bt(n, e, t, i) {
579
596
  const r = `${e}${t}?${i}`;
580
- return n.config.emulator ? Ce(n.config, r) : `${n.config.apiScheme}://${r}`;
597
+ return n.config.emulator ? Me(n.config, r) : `${n.config.apiScheme}://${r}`;
581
598
  }
582
- class xn {
599
+ class Wn {
583
600
  constructor(e) {
584
601
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
585
- this.timer = setTimeout(() => i(I(
602
+ this.timer = setTimeout(() => i(T(
586
603
  this.auth,
587
604
  "network-request-failed"
588
605
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
589
- )), Fn.get());
606
+ )), Hn.get());
590
607
  });
591
608
  }
592
609
  clearNetworkTimeout() {
593
610
  clearTimeout(this.timer);
594
611
  }
595
612
  }
596
- function te(n, e, t) {
613
+ function ee(n, e, t) {
597
614
  const i = {
598
615
  appName: n.name
599
616
  };
600
617
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
601
- const r = I(n, e, i);
618
+ const r = T(n, e, i);
602
619
  return r.customData._tokenResponse = t, r;
603
620
  }
604
621
  /**
@@ -617,10 +634,10 @@ function te(n, e, t) {
617
634
  * See the License for the specific language governing permissions and
618
635
  * limitations under the License.
619
636
  */
620
- async function Vn(n, e) {
637
+ async function jn(n, e) {
621
638
  return G(n, "POST", "/v1/accounts:delete", e);
622
639
  }
623
- async function Et(n, e) {
640
+ async function St(n, e) {
624
641
  return G(n, "POST", "/v1/accounts:lookup", e);
625
642
  }
626
643
  /**
@@ -639,7 +656,7 @@ async function Et(n, e) {
639
656
  * See the License for the specific language governing permissions and
640
657
  * limitations under the License.
641
658
  */
642
- function z(n) {
659
+ function q(n) {
643
660
  if (n)
644
661
  try {
645
662
  const e = new Date(Number(n));
@@ -648,8 +665,8 @@ function z(n) {
648
665
  } catch {
649
666
  }
650
667
  }
651
- async function $n(n, e = !1) {
652
- const t = j(n), i = await t.getIdToken(e), r = Oe(i);
668
+ async function Gn(n, e = !1) {
669
+ const t = j(n), i = await t.getIdToken(e), r = Ue(i);
653
670
  u(
654
671
  r && r.exp && r.auth_time && r.iat,
655
672
  t.auth,
@@ -660,29 +677,29 @@ async function $n(n, e = !1) {
660
677
  return {
661
678
  claims: r,
662
679
  token: i,
663
- authTime: z(Te(r.auth_time)),
664
- issuedAtTime: z(Te(r.iat)),
665
- expirationTime: z(Te(r.exp)),
680
+ authTime: q(ye(r.auth_time)),
681
+ issuedAtTime: q(ye(r.iat)),
682
+ expirationTime: q(ye(r.exp)),
666
683
  signInProvider: o || null,
667
684
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
668
685
  };
669
686
  }
670
- function Te(n) {
687
+ function ye(n) {
671
688
  return Number(n) * 1e3;
672
689
  }
673
- function Oe(n) {
690
+ function Ue(n) {
674
691
  const [e, t, i] = n.split(".");
675
692
  if (e === void 0 || t === void 0 || i === void 0)
676
693
  return re("JWT malformed, contained fewer than 3 sections"), null;
677
694
  try {
678
- const r = Tn(t);
695
+ const r = En(t);
679
696
  return r ? JSON.parse(r) : (re("Failed to decode base64 JWT payload"), null);
680
697
  } catch (r) {
681
698
  return re("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
682
699
  }
683
700
  }
684
- function ze(n) {
685
- const e = Oe(n);
701
+ function Ye(n) {
702
+ const e = Ue(n);
686
703
  return u(
687
704
  e,
688
705
  "internal-error"
@@ -719,10 +736,10 @@ async function K(n, e, t = !1) {
719
736
  try {
720
737
  return await e;
721
738
  } catch (i) {
722
- throw i instanceof Re && Hn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
739
+ throw i instanceof Oe && Bn(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
723
740
  }
724
741
  }
725
- function Hn({ code: n }) {
742
+ function Bn({ code: n }) {
726
743
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
727
744
  }
728
745
  /**
@@ -741,7 +758,7 @@ function Hn({ code: n }) {
741
758
  * See the License for the specific language governing permissions and
742
759
  * limitations under the License.
743
760
  */
744
- class Wn {
761
+ class zn {
745
762
  constructor(e) {
746
763
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
747
764
  }
@@ -803,12 +820,12 @@ class Wn {
803
820
  * See the License for the specific language governing permissions and
804
821
  * limitations under the License.
805
822
  */
806
- class ke {
823
+ class Ae {
807
824
  constructor(e, t) {
808
825
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
809
826
  }
810
827
  _initializeTime() {
811
- this.lastSignInTime = z(this.lastLoginAt), this.creationTime = z(this.createdAt);
828
+ this.lastSignInTime = q(this.lastLoginAt), this.creationTime = q(this.createdAt);
812
829
  }
813
830
  _copy(e) {
814
831
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -838,7 +855,7 @@ class ke {
838
855
  */
839
856
  async function le(n) {
840
857
  var e;
841
- const t = n.auth, i = await n.getIdToken(), r = await K(n, Et(t, { idToken: i }));
858
+ const t = n.auth, i = await n.getIdToken(), r = await K(n, St(t, { idToken: i }));
842
859
  u(
843
860
  r == null ? void 0 : r.users.length,
844
861
  t,
@@ -847,7 +864,7 @@ async function le(n) {
847
864
  );
848
865
  const s = r.users[0];
849
866
  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 = {
867
+ 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
868
  uid: s.localId,
852
869
  displayName: s.displayName || null,
853
870
  photoURL: s.photoUrl || null,
@@ -856,21 +873,21 @@ async function le(n) {
856
873
  phoneNumber: s.phoneNumber || null,
857
874
  tenantId: s.tenantId || null,
858
875
  providerData: c,
859
- metadata: new ke(s.createdAt, s.lastLoginAt),
876
+ metadata: new Ae(s.createdAt, s.lastLoginAt),
860
877
  isAnonymous: d
861
878
  };
862
- Object.assign(n, f);
879
+ Object.assign(n, h);
863
880
  }
864
- async function jn(n) {
881
+ async function qn(n) {
865
882
  const e = j(n);
866
883
  await le(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
867
884
  }
868
- function Gn(n, e) {
885
+ function Kn(n, e) {
869
886
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
870
887
  }
871
- function kt(n) {
888
+ function Rt(n) {
872
889
  return n.map((e) => {
873
- var { providerId: t } = e, i = Pe(e, ["providerId"]);
890
+ var { providerId: t } = e, i = Ne(e, ["providerId"]);
874
891
  return {
875
892
  providerId: t,
876
893
  uid: i.rawId || "",
@@ -897,16 +914,16 @@ function kt(n) {
897
914
  * See the License for the specific language governing permissions and
898
915
  * limitations under the License.
899
916
  */
900
- async function Bn(n, e) {
901
- const t = await Tt(n, {}, async () => {
917
+ async function Jn(n, e) {
918
+ const t = await Et(n, {}, async () => {
902
919
  const i = Y({
903
920
  grant_type: "refresh_token",
904
921
  refresh_token: e
905
- }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = yt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
922
+ }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = bt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
906
923
  return c[
907
924
  "Content-Type"
908
925
  /* HttpHeader.CONTENT_TYPE */
909
- ] = "application/x-www-form-urlencoded", It.fetch()(o, {
926
+ ] = "application/x-www-form-urlencoded", wt.fetch()(o, {
910
927
  method: "POST",
911
928
  headers: c,
912
929
  body: i
@@ -918,7 +935,7 @@ async function Bn(n, e) {
918
935
  refreshToken: t.refresh_token
919
936
  };
920
937
  }
921
- async function qn(n, e) {
938
+ async function Yn(n, e) {
922
939
  return G(n, "POST", "/v2/accounts:revokeToken", fe(n, e));
923
940
  }
924
941
  /**
@@ -958,7 +975,7 @@ class $ {
958
975
  "internal-error"
959
976
  /* AuthErrorCode.INTERNAL_ERROR */
960
977
  );
961
- const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : ze(e.idToken);
978
+ const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : Ye(e.idToken);
962
979
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
963
980
  }
964
981
  updateFromIdToken(e) {
@@ -967,7 +984,7 @@ class $ {
967
984
  "internal-error"
968
985
  /* AuthErrorCode.INTERNAL_ERROR */
969
986
  );
970
- const t = ze(e);
987
+ const t = Ye(e);
971
988
  this.updateTokensAndExpiration(e, null, t);
972
989
  }
973
990
  async getToken(e, t = !1) {
@@ -982,7 +999,7 @@ class $ {
982
999
  this.refreshToken = null;
983
1000
  }
984
1001
  async refresh(e, t) {
985
- const { accessToken: i, refreshToken: r, expiresIn: s } = await Bn(e, t);
1002
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await Jn(e, t);
986
1003
  this.updateTokensAndExpiration(i, r, Number(s));
987
1004
  }
988
1005
  updateTokensAndExpiration(e, t, i) {
@@ -1012,7 +1029,7 @@ class $ {
1012
1029
  return Object.assign(new $(), this.toJSON());
1013
1030
  }
1014
1031
  _performRefresh() {
1015
- return y("not implemented");
1032
+ return k("not implemented");
1016
1033
  }
1017
1034
  }
1018
1035
  /**
@@ -1031,13 +1048,13 @@ class $ {
1031
1048
  * See the License for the specific language governing permissions and
1032
1049
  * limitations under the License.
1033
1050
  */
1034
- function R(n, e) {
1051
+ function P(n, e) {
1035
1052
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1036
1053
  }
1037
- class E {
1054
+ class b {
1038
1055
  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);
1056
+ var { uid: t, auth: i, stsTokenManager: r } = e, s = Ne(e, ["uid", "auth", "stsTokenManager"]);
1057
+ 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 Ae(s.createdAt || void 0, s.lastLoginAt || void 0);
1041
1058
  }
1042
1059
  async getIdToken(e) {
1043
1060
  const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1049,10 +1066,10 @@ class E {
1049
1066
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1050
1067
  }
1051
1068
  getIdTokenResult(e) {
1052
- return $n(this, e);
1069
+ return Gn(this, e);
1053
1070
  }
1054
1071
  reload() {
1055
- return jn(this);
1072
+ return qn(this);
1056
1073
  }
1057
1074
  _assign(e) {
1058
1075
  this !== e && (u(
@@ -1063,7 +1080,7 @@ class E {
1063
1080
  ), 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
1081
  }
1065
1082
  _clone(e) {
1066
- const t = new E(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1083
+ const t = new b(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1067
1084
  return t.metadata._copy(this.metadata), t;
1068
1085
  }
1069
1086
  _onReload(e) {
@@ -1088,10 +1105,10 @@ class E {
1088
1105
  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
1106
  }
1090
1107
  async delete() {
1091
- if (w(this.auth.app))
1092
- return Promise.reject(L(this.auth));
1108
+ if (E(this.auth.app))
1109
+ return Promise.reject(M(this.auth));
1093
1110
  const e = await this.getIdToken();
1094
- return await K(this, Vn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1111
+ return await K(this, jn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1095
1112
  }
1096
1113
  toJSON() {
1097
1114
  return Object.assign(Object.assign({
@@ -1119,45 +1136,45 @@ class E {
1119
1136
  }
1120
1137
  static _fromJSON(e, t) {
1121
1138
  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;
1139
+ 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: We } = t;
1123
1140
  u(
1124
- U && xe,
1141
+ ve && We,
1125
1142
  e,
1126
1143
  "internal-error"
1127
1144
  /* AuthErrorCode.INTERNAL_ERROR */
1128
1145
  );
1129
- const Kt = $.fromJSON(this.name, xe);
1146
+ const Xt = $.fromJSON(this.name, We);
1130
1147
  u(
1131
- typeof U == "string",
1148
+ typeof ve == "string",
1132
1149
  e,
1133
1150
  "internal-error"
1134
1151
  /* AuthErrorCode.INTERNAL_ERROR */
1135
- ), R(f, e.name), R(_, e.name), u(
1136
- typeof De == "boolean",
1152
+ ), P(h, e.name), P(p, e.name), u(
1153
+ typeof $e == "boolean",
1137
1154
  e,
1138
1155
  "internal-error"
1139
1156
  /* AuthErrorCode.INTERNAL_ERROR */
1140
1157
  ), u(
1141
- typeof Fe == "boolean",
1158
+ typeof He == "boolean",
1142
1159
  e,
1143
1160
  "internal-error"
1144
1161
  /* 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,
1162
+ ), P(w, e.name), P(U, e.name), P(m, e.name), P(g, e.name), P(I, e.name), P(x, e.name);
1163
+ const Te = new b({
1164
+ uid: ve,
1148
1165
  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
1166
+ email: p,
1167
+ emailVerified: $e,
1168
+ displayName: h,
1169
+ isAnonymous: He,
1170
+ photoURL: U,
1171
+ phoneNumber: w,
1172
+ tenantId: m,
1173
+ stsTokenManager: Xt,
1174
+ createdAt: I,
1175
+ lastLoginAt: x
1159
1176
  });
1160
- return ve && Array.isArray(ve) && (Ie.providerData = ve.map((Jt) => Object.assign({}, Jt))), p && (Ie._redirectEventId = p), Ie;
1177
+ return Ie && Array.isArray(Ie) && (Te.providerData = Ie.map((Qt) => Object.assign({}, Qt))), g && (Te._redirectEventId = g), Te;
1161
1178
  }
1162
1179
  /**
1163
1180
  * Initialize a User from an idToken server response
@@ -1167,7 +1184,7 @@ class E {
1167
1184
  static async _fromIdTokenResponse(e, t, i = !1) {
1168
1185
  const r = new $();
1169
1186
  r.updateFromServerResponse(t);
1170
- const s = new E({
1187
+ const s = new b({
1171
1188
  uid: t.localId,
1172
1189
  auth: e,
1173
1190
  stsTokenManager: r,
@@ -1187,9 +1204,9 @@ class E {
1187
1204
  "internal-error"
1188
1205
  /* AuthErrorCode.INTERNAL_ERROR */
1189
1206
  );
1190
- const s = r.providerUserInfo !== void 0 ? kt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new $();
1207
+ const s = r.providerUserInfo !== void 0 ? Rt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new $();
1191
1208
  c.updateFromIdToken(i);
1192
- const a = new E({
1209
+ const a = new b({
1193
1210
  uid: r.localId,
1194
1211
  auth: e,
1195
1212
  stsTokenManager: c,
@@ -1203,7 +1220,7 @@ class E {
1203
1220
  phoneNumber: r.phoneNumber || null,
1204
1221
  tenantId: r.tenantId || null,
1205
1222
  providerData: s,
1206
- metadata: new ke(r.createdAt, r.lastLoginAt),
1223
+ metadata: new Ae(r.createdAt, r.lastLoginAt),
1207
1224
  isAnonymous: !(r.email && r.passwordHash) && !(s != null && s.length)
1208
1225
  };
1209
1226
  return Object.assign(a, l), a;
@@ -1225,11 +1242,11 @@ class E {
1225
1242
  * See the License for the specific language governing permissions and
1226
1243
  * limitations under the License.
1227
1244
  */
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);
1245
+ const Xe = /* @__PURE__ */ new Map();
1246
+ function S(n) {
1247
+ A(n instanceof Function, "Expected a class definition");
1248
+ let e = Xe.get(n);
1249
+ return e ? (A(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), Xe.set(n, e), e);
1233
1250
  }
1234
1251
  /**
1235
1252
  * @license
@@ -1247,7 +1264,7 @@ function k(n) {
1247
1264
  * See the License for the specific language governing permissions and
1248
1265
  * limitations under the License.
1249
1266
  */
1250
- class bt {
1267
+ class At {
1251
1268
  constructor() {
1252
1269
  this.type = "NONE", this.storage = {};
1253
1270
  }
@@ -1269,8 +1286,8 @@ class bt {
1269
1286
  _removeListener(e, t) {
1270
1287
  }
1271
1288
  }
1272
- bt.type = "NONE";
1273
- const Je = bt;
1289
+ At.type = "NONE";
1290
+ const Qe = At;
1274
1291
  /**
1275
1292
  * @license
1276
1293
  * Copyright 2019 Google LLC
@@ -1301,7 +1318,7 @@ class H {
1301
1318
  }
1302
1319
  async getCurrentUser() {
1303
1320
  const e = await this.persistence._get(this.fullUserKey);
1304
- return e ? E._fromJSON(this.auth, e) : null;
1321
+ return e ? b._fromJSON(this.auth, e) : null;
1305
1322
  }
1306
1323
  removeCurrentUser() {
1307
1324
  return this.persistence._remove(this.fullUserKey);
@@ -1321,20 +1338,20 @@ class H {
1321
1338
  }
1322
1339
  static async create(e, t, i = "authUser") {
1323
1340
  if (!t.length)
1324
- return new H(k(Je), e, i);
1341
+ return new H(S(Qe), e, i);
1325
1342
  const r = (await Promise.all(t.map(async (l) => {
1326
1343
  if (await l._isAvailable())
1327
1344
  return l;
1328
1345
  }))).filter((l) => l);
1329
- let s = r[0] || k(Je);
1346
+ let s = r[0] || S(Qe);
1330
1347
  const o = se(i, e.config.apiKey, e.name);
1331
1348
  let c = null;
1332
1349
  for (const l of t)
1333
1350
  try {
1334
1351
  const d = await l._get(o);
1335
1352
  if (d) {
1336
- const f = E._fromJSON(e, d);
1337
- l !== s && (c = f), s = l;
1353
+ const h = b._fromJSON(e, d);
1354
+ l !== s && (c = h), s = l;
1338
1355
  break;
1339
1356
  }
1340
1357
  } catch {
@@ -1365,29 +1382,29 @@ class H {
1365
1382
  * See the License for the specific language governing permissions and
1366
1383
  * limitations under the License.
1367
1384
  */
1368
- function Ye(n) {
1385
+ function Ze(n) {
1369
1386
  const e = n.toLowerCase();
1370
1387
  if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
1371
1388
  return "Opera";
1372
- if (Pt(e))
1389
+ if (Ot(e))
1373
1390
  return "IEMobile";
1374
1391
  if (e.includes("msie") || e.includes("trident/"))
1375
1392
  return "IE";
1376
1393
  if (e.includes("edge/"))
1377
1394
  return "Edge";
1378
- if (St(e))
1395
+ if (Pt(e))
1379
1396
  return "Firefox";
1380
1397
  if (e.includes("silk/"))
1381
1398
  return "Silk";
1382
- if (Ct(e))
1399
+ if (Lt(e))
1383
1400
  return "Blackberry";
1384
- if (Ot(e))
1401
+ if (Mt(e))
1385
1402
  return "Webos";
1386
- if (Ne(e))
1403
+ if (De(e))
1387
1404
  return "Safari";
1388
- if ((e.includes("chrome/") || Rt(e)) && !e.includes("edge/"))
1405
+ if ((e.includes("chrome/") || Ct(e)) && !e.includes("edge/"))
1389
1406
  return "Chrome";
1390
- if (At(e))
1407
+ if (Nt(e))
1391
1408
  return "Android";
1392
1409
  {
1393
1410
  const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, i = n.match(t);
@@ -1396,42 +1413,42 @@ function Ye(n) {
1396
1413
  }
1397
1414
  return "Other";
1398
1415
  }
1399
- function St(n = g()) {
1416
+ function Pt(n = _()) {
1400
1417
  return /firefox\//i.test(n);
1401
1418
  }
1402
- function Ne(n = g()) {
1419
+ function De(n = _()) {
1403
1420
  const e = n.toLowerCase();
1404
1421
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1405
1422
  }
1406
- function Rt(n = g()) {
1423
+ function Ct(n = _()) {
1407
1424
  return /crios\//i.test(n);
1408
1425
  }
1409
- function Pt(n = g()) {
1426
+ function Ot(n = _()) {
1410
1427
  return /iemobile/i.test(n);
1411
1428
  }
1412
- function At(n = g()) {
1429
+ function Nt(n = _()) {
1413
1430
  return /android/i.test(n);
1414
1431
  }
1415
- function Ct(n = g()) {
1432
+ function Lt(n = _()) {
1416
1433
  return /blackberry/i.test(n);
1417
1434
  }
1418
- function Ot(n = g()) {
1435
+ function Mt(n = _()) {
1419
1436
  return /webos/i.test(n);
1420
1437
  }
1421
- function pe(n = g()) {
1438
+ function pe(n = _()) {
1422
1439
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1423
1440
  }
1424
- function zn(n = g()) {
1441
+ function Xn(n = _()) {
1425
1442
  var e;
1426
1443
  return pe(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1427
1444
  }
1428
- function Kn() {
1429
- return wn() && document.documentMode === 10;
1445
+ function Qn() {
1446
+ return kn() && document.documentMode === 10;
1430
1447
  }
1431
- function Nt(n = g()) {
1432
- return pe(n) || At(n) || Ot(n) || Ct(n) || /windows phone/i.test(n) || Pt(n);
1448
+ function Ut(n = _()) {
1449
+ return pe(n) || Nt(n) || Mt(n) || Lt(n) || /windows phone/i.test(n) || Ot(n);
1433
1450
  }
1434
- function Jn() {
1451
+ function Zn() {
1435
1452
  try {
1436
1453
  return !!(window && window !== window.top);
1437
1454
  } catch {
@@ -1454,14 +1471,14 @@ function Jn() {
1454
1471
  * See the License for the specific language governing permissions and
1455
1472
  * limitations under the License.
1456
1473
  */
1457
- function Lt(n, e = []) {
1474
+ function Dt(n, e = []) {
1458
1475
  let t;
1459
1476
  switch (n) {
1460
1477
  case "Browser":
1461
- t = Ye(g());
1478
+ t = Ze(_());
1462
1479
  break;
1463
1480
  case "Worker":
1464
- t = `${Ye(g())}-${n}`;
1481
+ t = `${Ze(_())}-${n}`;
1465
1482
  break;
1466
1483
  default:
1467
1484
  t = n;
@@ -1485,7 +1502,7 @@ function Lt(n, e = []) {
1485
1502
  * See the License for the specific language governing permissions and
1486
1503
  * limitations under the License.
1487
1504
  */
1488
- class Yn {
1505
+ class ei {
1489
1506
  constructor(e) {
1490
1507
  this.auth = e, this.queue = [];
1491
1508
  }
@@ -1540,7 +1557,7 @@ class Yn {
1540
1557
  * See the License for the specific language governing permissions and
1541
1558
  * limitations under the License.
1542
1559
  */
1543
- async function Xn(n, e = {}) {
1560
+ async function ti(n, e = {}) {
1544
1561
  return G(n, "GET", "/v2/passwordPolicy", fe(n, e));
1545
1562
  }
1546
1563
  /**
@@ -1559,12 +1576,12 @@ async function Xn(n, e = {}) {
1559
1576
  * See the License for the specific language governing permissions and
1560
1577
  * limitations under the License.
1561
1578
  */
1562
- const Qn = 6;
1563
- class Zn {
1579
+ const ni = 6;
1580
+ class ii {
1564
1581
  constructor(e) {
1565
1582
  var t, i, r, s;
1566
1583
  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;
1584
+ 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
1585
  }
1569
1586
  validatePassword(e) {
1570
1587
  var t, i, r, s, o, c;
@@ -1647,12 +1664,12 @@ class Zn {
1647
1664
  * See the License for the specific language governing permissions and
1648
1665
  * limitations under the License.
1649
1666
  */
1650
- class ei {
1667
+ class ri {
1651
1668
  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;
1669
+ 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
1670
  }
1654
1671
  _initializeWithPersistence(e, t) {
1655
- return t && (this._popupRedirectResolver = k(t)), this._initializationPromise = this.queue(async () => {
1672
+ return t && (this._popupRedirectResolver = S(t)), this._initializationPromise = this.queue(async () => {
1656
1673
  var i, r;
1657
1674
  if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
1658
1675
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
@@ -1685,7 +1702,7 @@ class ei {
1685
1702
  }
1686
1703
  async initializeCurrentUserFromIdToken(e) {
1687
1704
  try {
1688
- const t = await Et(this, { idToken: e }), i = await E._fromGetAccountInfoResponse(this, t, e);
1705
+ const t = await St(this, { idToken: e }), i = await b._fromGetAccountInfoResponse(this, t, e);
1689
1706
  await this.directlySetCurrentUser(i);
1690
1707
  } catch (t) {
1691
1708
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -1693,7 +1710,7 @@ class ei {
1693
1710
  }
1694
1711
  async initializeCurrentUser(e) {
1695
1712
  var t;
1696
- if (w(this.app)) {
1713
+ if (E(this.app)) {
1697
1714
  const o = this.app.settings.authIdToken;
1698
1715
  return o ? new Promise((c) => {
1699
1716
  setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
@@ -1743,14 +1760,14 @@ class ei {
1743
1760
  return this.directlySetCurrentUser(e);
1744
1761
  }
1745
1762
  useDeviceLanguage() {
1746
- this.languageCode = Un();
1763
+ this.languageCode = Vn();
1747
1764
  }
1748
1765
  async _delete() {
1749
1766
  this._deleted = !0;
1750
1767
  }
1751
1768
  async updateCurrentUser(e) {
1752
- if (w(this.app))
1753
- return Promise.reject(L(this));
1769
+ if (E(this.app))
1770
+ return Promise.reject(M(this));
1754
1771
  const t = e ? j(e) : null;
1755
1772
  return t && u(
1756
1773
  t.auth.config.apiKey === this.config.apiKey,
@@ -1771,15 +1788,15 @@ class ei {
1771
1788
  });
1772
1789
  }
1773
1790
  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(
1791
+ return E(this.app) ? Promise.reject(M(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1775
1792
  null,
1776
1793
  /* skipBeforeStateCallbacks */
1777
1794
  !0
1778
1795
  ));
1779
1796
  }
1780
1797
  setPersistence(e) {
1781
- return w(this.app) ? Promise.reject(L(this)) : this.queue(async () => {
1782
- await this.assertedPersistence.setPersistence(k(e));
1798
+ return E(this.app) ? Promise.reject(M(this)) : this.queue(async () => {
1799
+ await this.assertedPersistence.setPersistence(S(e));
1783
1800
  });
1784
1801
  }
1785
1802
  _getRecaptchaConfig() {
@@ -1794,14 +1811,14 @@ class ei {
1794
1811
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1795
1812
  }
1796
1813
  async _updatePasswordPolicy() {
1797
- const e = await Xn(this), t = new Zn(e);
1814
+ const e = await ti(this), t = new ii(e);
1798
1815
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1799
1816
  }
1800
1817
  _getPersistence() {
1801
1818
  return this.assertedPersistence.persistence.type;
1802
1819
  }
1803
1820
  _updateErrorMap(e) {
1804
- this._errorFactory = new Se("auth", "Firebase", e());
1821
+ this._errorFactory = new Ce("auth", "Firebase", e());
1805
1822
  }
1806
1823
  onAuthStateChanged(e, t, i) {
1807
1824
  return this.registerStateListener(this.authStateSubscription, e, t, i);
@@ -1834,7 +1851,7 @@ class ei {
1834
1851
  token: e,
1835
1852
  idToken: t
1836
1853
  };
1837
- this.tenantId != null && (i.tenantId = this.tenantId), await qn(this, i);
1854
+ this.tenantId != null && (i.tenantId = this.tenantId), await Yn(this, i);
1838
1855
  }
1839
1856
  }
1840
1857
  toJSON() {
@@ -1852,7 +1869,7 @@ class ei {
1852
1869
  }
1853
1870
  async getOrInitRedirectPersistenceManager(e) {
1854
1871
  if (!this.redirectPersistenceManager) {
1855
- const t = e && k(e) || this._popupRedirectResolver;
1872
+ const t = e && S(e) || this._popupRedirectResolver;
1856
1873
  u(
1857
1874
  t,
1858
1875
  this,
@@ -1860,7 +1877,7 @@ class ei {
1860
1877
  /* AuthErrorCode.ARGUMENT_ERROR */
1861
1878
  ), this.redirectPersistenceManager = await H.create(
1862
1879
  this,
1863
- [k(t._redirectPersistence)],
1880
+ [S(t._redirectPersistence)],
1864
1881
  "redirectUser"
1865
1882
  /* KeyName.REDIRECT_USER */
1866
1883
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -1947,7 +1964,7 @@ class ei {
1947
1964
  ), this.persistenceManager;
1948
1965
  }
1949
1966
  _logFramework(e) {
1950
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Lt(this.config.clientPlatform, this._getFrameworks()));
1967
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Dt(this.config.clientPlatform, this._getFrameworks()));
1951
1968
  }
1952
1969
  _getFrameworks() {
1953
1970
  return this.frameworks;
@@ -1977,15 +1994,15 @@ class ei {
1977
1994
  async _getAppCheckToken() {
1978
1995
  var e;
1979
1996
  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;
1997
+ return t != null && t.error && Dn(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
1981
1998
  }
1982
1999
  }
1983
2000
  function me(n) {
1984
2001
  return j(n);
1985
2002
  }
1986
- class Xe {
2003
+ class et {
1987
2004
  constructor(e) {
1988
- this.auth = e, this.observer = null, this.addObserver = gn((t) => this.observer = t);
2005
+ this.auth = e, this.observer = null, this.addObserver = In((t) => this.observer = t);
1989
2006
  }
1990
2007
  get next() {
1991
2008
  return u(
@@ -2012,7 +2029,7 @@ class Xe {
2012
2029
  * See the License for the specific language governing permissions and
2013
2030
  * limitations under the License.
2014
2031
  */
2015
- let Le = {
2032
+ let Fe = {
2016
2033
  async loadJS() {
2017
2034
  throw new Error("Unable to load external scripts");
2018
2035
  },
@@ -2020,16 +2037,16 @@ let Le = {
2020
2037
  recaptchaEnterpriseScript: "",
2021
2038
  gapiScript: ""
2022
2039
  };
2023
- function ti(n) {
2024
- Le = n;
2040
+ function si(n) {
2041
+ Fe = n;
2025
2042
  }
2026
- function ni(n) {
2027
- return Le.loadJS(n);
2043
+ function oi(n) {
2044
+ return Fe.loadJS(n);
2028
2045
  }
2029
- function ii() {
2030
- return Le.gapiScript;
2046
+ function ai() {
2047
+ return Fe.gapiScript;
2031
2048
  }
2032
- function ri(n) {
2049
+ function ci(n) {
2033
2050
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2034
2051
  }
2035
2052
  /**
@@ -2048,13 +2065,13 @@ function ri(n) {
2048
2065
  * See the License for the specific language governing permissions and
2049
2066
  * limitations under the License.
2050
2067
  */
2051
- function si(n, e) {
2052
- const t = pt(n, "auth");
2068
+ function li(n, e) {
2069
+ const t = _t(n, "auth");
2053
2070
  if (t.isInitialized()) {
2054
2071
  const r = t.getImmediate(), s = t.getOptions();
2055
- if (In(s, e ?? {}))
2072
+ if (wn(s, e ?? {}))
2056
2073
  return r;
2057
- b(
2074
+ R(
2058
2075
  r,
2059
2076
  "already-initialized"
2060
2077
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -2062,11 +2079,11 @@ function si(n, e) {
2062
2079
  }
2063
2080
  return t.initialize({ options: e });
2064
2081
  }
2065
- function oi(n, e) {
2066
- const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(k);
2082
+ function ui(n, e) {
2083
+ const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(S);
2067
2084
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2068
2085
  }
2069
- function ai(n, e, t) {
2086
+ function di(n, e, t) {
2070
2087
  const i = me(n);
2071
2088
  u(
2072
2089
  i._canInitEmulator,
@@ -2079,38 +2096,38 @@ function ai(n, e, t) {
2079
2096
  "invalid-emulator-scheme"
2080
2097
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2081
2098
  );
2082
- const r = !1, s = Mt(e), { host: o, port: c } = ci(e), a = c === null ? "" : `:${c}`;
2099
+ const r = !1, s = Ft(e), { host: o, port: c } = hi(e), a = c === null ? "" : `:${c}`;
2083
2100
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2084
2101
  host: o,
2085
2102
  port: c,
2086
2103
  protocol: s.replace(":", ""),
2087
2104
  options: Object.freeze({ disableWarnings: r })
2088
- }), li();
2105
+ }), fi();
2089
2106
  }
2090
- function Mt(n) {
2107
+ function Ft(n) {
2091
2108
  const e = n.indexOf(":");
2092
2109
  return e < 0 ? "" : n.substr(0, e + 1);
2093
2110
  }
2094
- function ci(n) {
2095
- const e = Mt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2111
+ function hi(n) {
2112
+ const e = Ft(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2096
2113
  if (!t)
2097
2114
  return { host: "", port: null };
2098
2115
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
2099
2116
  if (r) {
2100
2117
  const s = r[1];
2101
- return { host: s, port: Qe(i.substr(s.length + 1)) };
2118
+ return { host: s, port: tt(i.substr(s.length + 1)) };
2102
2119
  } else {
2103
2120
  const [s, o] = i.split(":");
2104
- return { host: s, port: Qe(o) };
2121
+ return { host: s, port: tt(o) };
2105
2122
  }
2106
2123
  }
2107
- function Qe(n) {
2124
+ function tt(n) {
2108
2125
  if (!n)
2109
2126
  return null;
2110
2127
  const e = Number(n);
2111
2128
  return isNaN(e) ? null : e;
2112
2129
  }
2113
- function li() {
2130
+ function fi() {
2114
2131
  function n() {
2115
2132
  const e = document.createElement("p"), t = e.style;
2116
2133
  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 +2150,7 @@ function li() {
2133
2150
  * See the License for the specific language governing permissions and
2134
2151
  * limitations under the License.
2135
2152
  */
2136
- class Ut {
2153
+ class xt {
2137
2154
  /** @internal */
2138
2155
  constructor(e, t) {
2139
2156
  this.providerId = e, this.signInMethod = t;
@@ -2144,19 +2161,19 @@ class Ut {
2144
2161
  * @returns a JSON-serializable representation of this object.
2145
2162
  */
2146
2163
  toJSON() {
2147
- return y("not implemented");
2164
+ return k("not implemented");
2148
2165
  }
2149
2166
  /** @internal */
2150
2167
  _getIdTokenResponse(e) {
2151
- return y("not implemented");
2168
+ return k("not implemented");
2152
2169
  }
2153
2170
  /** @internal */
2154
2171
  _linkToIdToken(e, t) {
2155
- return y("not implemented");
2172
+ return k("not implemented");
2156
2173
  }
2157
2174
  /** @internal */
2158
2175
  _getReauthenticationResolver(e) {
2159
- return y("not implemented");
2176
+ return k("not implemented");
2160
2177
  }
2161
2178
  }
2162
2179
  /**
@@ -2176,7 +2193,7 @@ class Ut {
2176
2193
  * limitations under the License.
2177
2194
  */
2178
2195
  async function W(n, e) {
2179
- return wt(n, "POST", "/v1/accounts:signInWithIdp", fe(n, e));
2196
+ return kt(n, "POST", "/v1/accounts:signInWithIdp", fe(n, e));
2180
2197
  }
2181
2198
  /**
2182
2199
  * @license
@@ -2194,15 +2211,15 @@ async function W(n, e) {
2194
2211
  * See the License for the specific language governing permissions and
2195
2212
  * limitations under the License.
2196
2213
  */
2197
- const ui = "http://localhost";
2198
- class D extends Ut {
2214
+ const pi = "http://localhost";
2215
+ class D extends xt {
2199
2216
  constructor() {
2200
2217
  super(...arguments), this.pendingToken = null;
2201
2218
  }
2202
2219
  /** @internal */
2203
2220
  static _fromParams(e) {
2204
2221
  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(
2222
+ 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
2223
  "argument-error"
2207
2224
  /* AuthErrorCode.ARGUMENT_ERROR */
2208
2225
  ), t;
@@ -2229,7 +2246,7 @@ class D extends Ut {
2229
2246
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
2230
2247
  */
2231
2248
  static fromJSON(e) {
2232
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = Pe(t, ["providerId", "signInMethod"]);
2249
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = Ne(t, ["providerId", "signInMethod"]);
2233
2250
  if (!i || !r)
2234
2251
  return null;
2235
2252
  const o = new D(i, r);
@@ -2252,7 +2269,7 @@ class D extends Ut {
2252
2269
  }
2253
2270
  buildRequest() {
2254
2271
  const e = {
2255
- requestUri: ui,
2272
+ requestUri: pi,
2256
2273
  returnSecureToken: !0
2257
2274
  };
2258
2275
  if (this.pendingToken)
@@ -2280,7 +2297,7 @@ class D extends Ut {
2280
2297
  * See the License for the specific language governing permissions and
2281
2298
  * limitations under the License.
2282
2299
  */
2283
- class Dt {
2300
+ class Vt {
2284
2301
  /**
2285
2302
  * Constructor for generic OAuth providers.
2286
2303
  *
@@ -2333,7 +2350,7 @@ class Dt {
2333
2350
  * See the License for the specific language governing permissions and
2334
2351
  * limitations under the License.
2335
2352
  */
2336
- class Q extends Dt {
2353
+ class Q extends Vt {
2337
2354
  constructor() {
2338
2355
  super(...arguments), this.scopes = [];
2339
2356
  }
@@ -2368,7 +2385,7 @@ class Q extends Dt {
2368
2385
  * See the License for the specific language governing permissions and
2369
2386
  * limitations under the License.
2370
2387
  */
2371
- class A extends Q {
2388
+ class C extends Q {
2372
2389
  constructor() {
2373
2390
  super(
2374
2391
  "facebook.com"
@@ -2389,8 +2406,8 @@ class A extends Q {
2389
2406
  */
2390
2407
  static credential(e) {
2391
2408
  return D._fromParams({
2392
- providerId: A.PROVIDER_ID,
2393
- signInMethod: A.FACEBOOK_SIGN_IN_METHOD,
2409
+ providerId: C.PROVIDER_ID,
2410
+ signInMethod: C.FACEBOOK_SIGN_IN_METHOD,
2394
2411
  accessToken: e
2395
2412
  });
2396
2413
  }
@@ -2400,7 +2417,7 @@ class A extends Q {
2400
2417
  * @param userCredential - The user credential.
2401
2418
  */
2402
2419
  static credentialFromResult(e) {
2403
- return A.credentialFromTaggedObject(e);
2420
+ return C.credentialFromTaggedObject(e);
2404
2421
  }
2405
2422
  /**
2406
2423
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2409,20 +2426,20 @@ class A extends Q {
2409
2426
  * @param userCredential - The user credential.
2410
2427
  */
2411
2428
  static credentialFromError(e) {
2412
- return A.credentialFromTaggedObject(e.customData || {});
2429
+ return C.credentialFromTaggedObject(e.customData || {});
2413
2430
  }
2414
2431
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2415
2432
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2416
2433
  return null;
2417
2434
  try {
2418
- return A.credential(e.oauthAccessToken);
2435
+ return C.credential(e.oauthAccessToken);
2419
2436
  } catch {
2420
2437
  return null;
2421
2438
  }
2422
2439
  }
2423
2440
  }
2424
- A.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2425
- A.PROVIDER_ID = "facebook.com";
2441
+ C.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2442
+ C.PROVIDER_ID = "facebook.com";
2426
2443
  /**
2427
2444
  * @license
2428
2445
  * Copyright 2020 Google LLC
@@ -2439,7 +2456,7 @@ A.PROVIDER_ID = "facebook.com";
2439
2456
  * See the License for the specific language governing permissions and
2440
2457
  * limitations under the License.
2441
2458
  */
2442
- class C extends Q {
2459
+ class O extends Q {
2443
2460
  constructor() {
2444
2461
  super(
2445
2462
  "google.com"
@@ -2461,8 +2478,8 @@ class C extends Q {
2461
2478
  */
2462
2479
  static credential(e, t) {
2463
2480
  return D._fromParams({
2464
- providerId: C.PROVIDER_ID,
2465
- signInMethod: C.GOOGLE_SIGN_IN_METHOD,
2481
+ providerId: O.PROVIDER_ID,
2482
+ signInMethod: O.GOOGLE_SIGN_IN_METHOD,
2466
2483
  idToken: e,
2467
2484
  accessToken: t
2468
2485
  });
@@ -2473,7 +2490,7 @@ class C extends Q {
2473
2490
  * @param userCredential - The user credential.
2474
2491
  */
2475
2492
  static credentialFromResult(e) {
2476
- return C.credentialFromTaggedObject(e);
2493
+ return O.credentialFromTaggedObject(e);
2477
2494
  }
2478
2495
  /**
2479
2496
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2482,7 +2499,7 @@ class C extends Q {
2482
2499
  * @param userCredential - The user credential.
2483
2500
  */
2484
2501
  static credentialFromError(e) {
2485
- return C.credentialFromTaggedObject(e.customData || {});
2502
+ return O.credentialFromTaggedObject(e.customData || {});
2486
2503
  }
2487
2504
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2488
2505
  if (!e)
@@ -2491,14 +2508,14 @@ class C extends Q {
2491
2508
  if (!t && !i)
2492
2509
  return null;
2493
2510
  try {
2494
- return C.credential(t, i);
2511
+ return O.credential(t, i);
2495
2512
  } catch {
2496
2513
  return null;
2497
2514
  }
2498
2515
  }
2499
2516
  }
2500
- C.GOOGLE_SIGN_IN_METHOD = "google.com";
2501
- C.PROVIDER_ID = "google.com";
2517
+ O.GOOGLE_SIGN_IN_METHOD = "google.com";
2518
+ O.PROVIDER_ID = "google.com";
2502
2519
  /**
2503
2520
  * @license
2504
2521
  * Copyright 2020 Google LLC
@@ -2515,7 +2532,7 @@ C.PROVIDER_ID = "google.com";
2515
2532
  * See the License for the specific language governing permissions and
2516
2533
  * limitations under the License.
2517
2534
  */
2518
- class O extends Q {
2535
+ class N extends Q {
2519
2536
  constructor() {
2520
2537
  super(
2521
2538
  "github.com"
@@ -2529,8 +2546,8 @@ class O extends Q {
2529
2546
  */
2530
2547
  static credential(e) {
2531
2548
  return D._fromParams({
2532
- providerId: O.PROVIDER_ID,
2533
- signInMethod: O.GITHUB_SIGN_IN_METHOD,
2549
+ providerId: N.PROVIDER_ID,
2550
+ signInMethod: N.GITHUB_SIGN_IN_METHOD,
2534
2551
  accessToken: e
2535
2552
  });
2536
2553
  }
@@ -2540,7 +2557,7 @@ class O extends Q {
2540
2557
  * @param userCredential - The user credential.
2541
2558
  */
2542
2559
  static credentialFromResult(e) {
2543
- return O.credentialFromTaggedObject(e);
2560
+ return N.credentialFromTaggedObject(e);
2544
2561
  }
2545
2562
  /**
2546
2563
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2549,20 +2566,20 @@ class O extends Q {
2549
2566
  * @param userCredential - The user credential.
2550
2567
  */
2551
2568
  static credentialFromError(e) {
2552
- return O.credentialFromTaggedObject(e.customData || {});
2569
+ return N.credentialFromTaggedObject(e.customData || {});
2553
2570
  }
2554
2571
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2555
2572
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2556
2573
  return null;
2557
2574
  try {
2558
- return O.credential(e.oauthAccessToken);
2575
+ return N.credential(e.oauthAccessToken);
2559
2576
  } catch {
2560
2577
  return null;
2561
2578
  }
2562
2579
  }
2563
2580
  }
2564
- O.GITHUB_SIGN_IN_METHOD = "github.com";
2565
- O.PROVIDER_ID = "github.com";
2581
+ N.GITHUB_SIGN_IN_METHOD = "github.com";
2582
+ N.PROVIDER_ID = "github.com";
2566
2583
  /**
2567
2584
  * @license
2568
2585
  * Copyright 2020 Google LLC
@@ -2579,7 +2596,7 @@ O.PROVIDER_ID = "github.com";
2579
2596
  * See the License for the specific language governing permissions and
2580
2597
  * limitations under the License.
2581
2598
  */
2582
- class N extends Q {
2599
+ class L extends Q {
2583
2600
  constructor() {
2584
2601
  super(
2585
2602
  "twitter.com"
@@ -2594,8 +2611,8 @@ class N extends Q {
2594
2611
  */
2595
2612
  static credential(e, t) {
2596
2613
  return D._fromParams({
2597
- providerId: N.PROVIDER_ID,
2598
- signInMethod: N.TWITTER_SIGN_IN_METHOD,
2614
+ providerId: L.PROVIDER_ID,
2615
+ signInMethod: L.TWITTER_SIGN_IN_METHOD,
2599
2616
  oauthToken: e,
2600
2617
  oauthTokenSecret: t
2601
2618
  });
@@ -2606,7 +2623,7 @@ class N extends Q {
2606
2623
  * @param userCredential - The user credential.
2607
2624
  */
2608
2625
  static credentialFromResult(e) {
2609
- return N.credentialFromTaggedObject(e);
2626
+ return L.credentialFromTaggedObject(e);
2610
2627
  }
2611
2628
  /**
2612
2629
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2615,7 +2632,7 @@ class N extends Q {
2615
2632
  * @param userCredential - The user credential.
2616
2633
  */
2617
2634
  static credentialFromError(e) {
2618
- return N.credentialFromTaggedObject(e.customData || {});
2635
+ return L.credentialFromTaggedObject(e.customData || {});
2619
2636
  }
2620
2637
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2621
2638
  if (!e)
@@ -2624,14 +2641,14 @@ class N extends Q {
2624
2641
  if (!t || !i)
2625
2642
  return null;
2626
2643
  try {
2627
- return N.credential(t, i);
2644
+ return L.credential(t, i);
2628
2645
  } catch {
2629
2646
  return null;
2630
2647
  }
2631
2648
  }
2632
2649
  }
2633
- N.TWITTER_SIGN_IN_METHOD = "twitter.com";
2634
- N.PROVIDER_ID = "twitter.com";
2650
+ L.TWITTER_SIGN_IN_METHOD = "twitter.com";
2651
+ L.PROVIDER_ID = "twitter.com";
2635
2652
  /**
2636
2653
  * @license
2637
2654
  * Copyright 2020 Google LLC
@@ -2653,7 +2670,7 @@ class F {
2653
2670
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2654
2671
  }
2655
2672
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2656
- const s = await E._fromIdTokenResponse(e, i, r), o = Ze(i);
2673
+ const s = await b._fromIdTokenResponse(e, i, r), o = nt(i);
2657
2674
  return new F({
2658
2675
  user: s,
2659
2676
  providerId: o,
@@ -2667,7 +2684,7 @@ class F {
2667
2684
  /* reload */
2668
2685
  !0
2669
2686
  );
2670
- const r = Ze(i);
2687
+ const r = nt(i);
2671
2688
  return new F({
2672
2689
  user: e,
2673
2690
  providerId: r,
@@ -2676,7 +2693,7 @@ class F {
2676
2693
  });
2677
2694
  }
2678
2695
  }
2679
- function Ze(n) {
2696
+ function nt(n) {
2680
2697
  return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
2681
2698
  }
2682
2699
  /**
@@ -2695,7 +2712,7 @@ function Ze(n) {
2695
2712
  * See the License for the specific language governing permissions and
2696
2713
  * limitations under the License.
2697
2714
  */
2698
- class ue extends Re {
2715
+ class ue extends Oe {
2699
2716
  constructor(e, t, i, r) {
2700
2717
  var s;
2701
2718
  super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, ue.prototype), this.customData = {
@@ -2709,12 +2726,12 @@ class ue extends Re {
2709
2726
  return new ue(e, t, i, r);
2710
2727
  }
2711
2728
  }
2712
- function Ft(n, e, t, i) {
2729
+ function $t(n, e, t, i) {
2713
2730
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
2714
2731
  throw s.code === "auth/multi-factor-auth-required" ? ue._fromErrorAndOperation(n, s, e, i) : s;
2715
2732
  });
2716
2733
  }
2717
- async function di(n, e, t = !1) {
2734
+ async function mi(n, e, t = !1) {
2718
2735
  const i = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2719
2736
  return F._forOperation(n, "link", i);
2720
2737
  }
@@ -2734,20 +2751,20 @@ async function di(n, e, t = !1) {
2734
2751
  * See the License for the specific language governing permissions and
2735
2752
  * limitations under the License.
2736
2753
  */
2737
- async function hi(n, e, t = !1) {
2754
+ async function gi(n, e, t = !1) {
2738
2755
  const { auth: i } = n;
2739
- if (w(i.app))
2740
- return Promise.reject(L(i));
2756
+ if (E(i.app))
2757
+ return Promise.reject(M(i));
2741
2758
  const r = "reauthenticate";
2742
2759
  try {
2743
- const s = await K(n, Ft(i, r, e, n), t);
2760
+ const s = await K(n, $t(i, r, e, n), t);
2744
2761
  u(
2745
2762
  s.idToken,
2746
2763
  i,
2747
2764
  "internal-error"
2748
2765
  /* AuthErrorCode.INTERNAL_ERROR */
2749
2766
  );
2750
- const o = Oe(s.idToken);
2767
+ const o = Ue(s.idToken);
2751
2768
  u(
2752
2769
  o,
2753
2770
  i,
@@ -2762,7 +2779,7 @@ async function hi(n, e, t = !1) {
2762
2779
  /* AuthErrorCode.USER_MISMATCH */
2763
2780
  ), F._forOperation(n, r, s);
2764
2781
  } catch (s) {
2765
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && b(
2782
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && R(
2766
2783
  i,
2767
2784
  "user-mismatch"
2768
2785
  /* AuthErrorCode.USER_MISMATCH */
@@ -2785,10 +2802,10 @@ async function hi(n, e, t = !1) {
2785
2802
  * See the License for the specific language governing permissions and
2786
2803
  * limitations under the License.
2787
2804
  */
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);
2805
+ async function _i(n, e, t = !1) {
2806
+ if (E(n.app))
2807
+ return Promise.reject(M(n));
2808
+ const i = "signIn", r = await $t(n, i, e), s = await F._fromIdTokenResponse(n, i, r);
2792
2809
  return t || await n._updateCurrentUser(s.user), s;
2793
2810
  }
2794
2811
  /**
@@ -2807,8 +2824,8 @@ async function fi(n, e, t = !1) {
2807
2824
  * See the License for the specific language governing permissions and
2808
2825
  * limitations under the License.
2809
2826
  */
2810
- async function pi(n, e) {
2811
- return wt(n, "POST", "/v1/accounts:signInWithCustomToken", fe(n, e));
2827
+ async function vi(n, e) {
2828
+ return kt(n, "POST", "/v1/accounts:signInWithCustomToken", fe(n, e));
2812
2829
  }
2813
2830
  /**
2814
2831
  * @license
@@ -2826,19 +2843,19 @@ async function pi(n, e) {
2826
2843
  * See the License for the specific language governing permissions and
2827
2844
  * limitations under the License.
2828
2845
  */
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, {
2846
+ async function Ii(n, e) {
2847
+ if (E(n.app))
2848
+ return Promise.reject(M(n));
2849
+ const t = me(n), i = await vi(t, {
2833
2850
  token: e,
2834
2851
  returnSecureToken: !0
2835
2852
  }), r = await F._fromIdTokenResponse(t, "signIn", i);
2836
2853
  return await t._updateCurrentUser(r.user), r;
2837
2854
  }
2838
- function gi(n, e, t, i) {
2855
+ function Ti(n, e, t, i) {
2839
2856
  return j(n).onIdTokenChanged(e, t, i);
2840
2857
  }
2841
- function _i(n, e, t) {
2858
+ function yi(n, e, t) {
2842
2859
  return j(n).beforeAuthStateChanged(e, t);
2843
2860
  }
2844
2861
  const de = "__sak";
@@ -2858,7 +2875,7 @@ const de = "__sak";
2858
2875
  * See the License for the specific language governing permissions and
2859
2876
  * limitations under the License.
2860
2877
  */
2861
- class xt {
2878
+ class Ht {
2862
2879
  constructor(e, t) {
2863
2880
  this.storageRetriever = e, this.type = t;
2864
2881
  }
@@ -2899,18 +2916,18 @@ class xt {
2899
2916
  * See the License for the specific language governing permissions and
2900
2917
  * limitations under the License.
2901
2918
  */
2902
- function vi() {
2903
- const n = g();
2904
- return Ne(n) || pe(n);
2919
+ function wi() {
2920
+ const n = _();
2921
+ return De(n) || pe(n);
2905
2922
  }
2906
- const Ii = 1e3, Ti = 10;
2907
- class Vt extends xt {
2923
+ const Ei = 1e3, ki = 10;
2924
+ class Wt extends Ht {
2908
2925
  constructor() {
2909
2926
  super(
2910
2927
  () => window.localStorage,
2911
2928
  "LOCAL"
2912
2929
  /* 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;
2930
+ ), 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
2931
  }
2915
2932
  forAllChangedKeys(e) {
2916
2933
  for (const t of Object.keys(this.listeners)) {
@@ -2937,7 +2954,7 @@ class Vt extends xt {
2937
2954
  const o = this.storage.getItem(i);
2938
2955
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
2939
2956
  }, s = this.storage.getItem(i);
2940
- Kn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ti) : r();
2957
+ Qn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, ki) : r();
2941
2958
  }
2942
2959
  notifyListeners(e, t) {
2943
2960
  this.localCache[e] = t;
@@ -2959,7 +2976,7 @@ class Vt extends xt {
2959
2976
  !0
2960
2977
  );
2961
2978
  });
2962
- }, Ii);
2979
+ }, Ei);
2963
2980
  }
2964
2981
  stopPolling() {
2965
2982
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -2988,8 +3005,8 @@ class Vt extends xt {
2988
3005
  await super._remove(e), delete this.localCache[e];
2989
3006
  }
2990
3007
  }
2991
- Vt.type = "LOCAL";
2992
- const wi = Vt;
3008
+ Wt.type = "LOCAL";
3009
+ const bi = Wt;
2993
3010
  /**
2994
3011
  * @license
2995
3012
  * Copyright 2020 Google LLC
@@ -3006,7 +3023,7 @@ const wi = Vt;
3006
3023
  * See the License for the specific language governing permissions and
3007
3024
  * limitations under the License.
3008
3025
  */
3009
- class $t extends xt {
3026
+ class jt extends Ht {
3010
3027
  constructor() {
3011
3028
  super(
3012
3029
  () => window.sessionStorage,
@@ -3019,8 +3036,8 @@ class $t extends xt {
3019
3036
  _removeListener(e, t) {
3020
3037
  }
3021
3038
  }
3022
- $t.type = "SESSION";
3023
- const Ht = $t;
3039
+ jt.type = "SESSION";
3040
+ const Gt = jt;
3024
3041
  /**
3025
3042
  * @license
3026
3043
  * Copyright 2019 Google LLC
@@ -3037,7 +3054,7 @@ const Ht = $t;
3037
3054
  * See the License for the specific language governing permissions and
3038
3055
  * limitations under the License.
3039
3056
  */
3040
- function yi(n) {
3057
+ function Si(n) {
3041
3058
  return Promise.all(n.map(async (e) => {
3042
3059
  try {
3043
3060
  return {
@@ -3107,7 +3124,7 @@ class ge {
3107
3124
  eventId: i,
3108
3125
  eventType: r
3109
3126
  });
3110
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await yi(c);
3127
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Si(c);
3111
3128
  t.ports[0].postMessage({
3112
3129
  status: "done",
3113
3130
  eventId: i,
@@ -3153,7 +3170,7 @@ ge.receivers = [];
3153
3170
  * See the License for the specific language governing permissions and
3154
3171
  * limitations under the License.
3155
3172
  */
3156
- function Me(n = "", e = 10) {
3173
+ function xe(n = "", e = 10) {
3157
3174
  let t = "";
3158
3175
  for (let i = 0; i < e; i++)
3159
3176
  t += Math.floor(Math.random() * 10);
@@ -3175,7 +3192,7 @@ function Me(n = "", e = 10) {
3175
3192
  * See the License for the specific language governing permissions and
3176
3193
  * limitations under the License.
3177
3194
  */
3178
- class Ei {
3195
+ class Ri {
3179
3196
  constructor(e) {
3180
3197
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3181
3198
  }
@@ -3209,7 +3226,7 @@ class Ei {
3209
3226
  );
3210
3227
  let s, o;
3211
3228
  return new Promise((c, a) => {
3212
- const l = Me("", 20);
3229
+ const l = xe("", 20);
3213
3230
  r.port1.start();
3214
3231
  const d = setTimeout(() => {
3215
3232
  a(new Error(
@@ -3219,10 +3236,10 @@ class Ei {
3219
3236
  }, i);
3220
3237
  o = {
3221
3238
  messageChannel: r,
3222
- onMessage(f) {
3223
- const _ = f;
3224
- if (_.data.eventId === l)
3225
- switch (_.data.status) {
3239
+ onMessage(h) {
3240
+ const p = h;
3241
+ if (p.data.eventId === l)
3242
+ switch (p.data.status) {
3226
3243
  case "ack":
3227
3244
  clearTimeout(d), s = setTimeout(
3228
3245
  () => {
@@ -3236,7 +3253,7 @@ class Ei {
3236
3253
  );
3237
3254
  break;
3238
3255
  case "done":
3239
- clearTimeout(s), c(_.data.response);
3256
+ clearTimeout(s), c(p.data.response);
3240
3257
  break;
3241
3258
  default:
3242
3259
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3272,11 +3289,11 @@ class Ei {
3272
3289
  * See the License for the specific language governing permissions and
3273
3290
  * limitations under the License.
3274
3291
  */
3275
- function T() {
3292
+ function y() {
3276
3293
  return window;
3277
3294
  }
3278
- function ki(n) {
3279
- T().location.href = n;
3295
+ function Ai(n) {
3296
+ y().location.href = n;
3280
3297
  }
3281
3298
  /**
3282
3299
  * @license
@@ -3294,10 +3311,10 @@ function ki(n) {
3294
3311
  * See the License for the specific language governing permissions and
3295
3312
  * limitations under the License.
3296
3313
  */
3297
- function Wt() {
3298
- return typeof T().WorkerGlobalScope < "u" && typeof T().importScripts == "function";
3314
+ function Bt() {
3315
+ return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
3299
3316
  }
3300
- async function bi() {
3317
+ async function Pi() {
3301
3318
  if (!(navigator != null && navigator.serviceWorker))
3302
3319
  return null;
3303
3320
  try {
@@ -3306,12 +3323,12 @@ async function bi() {
3306
3323
  return null;
3307
3324
  }
3308
3325
  }
3309
- function Si() {
3326
+ function Ci() {
3310
3327
  var n;
3311
3328
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3312
3329
  }
3313
- function Ri() {
3314
- return Wt() ? self : null;
3330
+ function Oi() {
3331
+ return Bt() ? self : null;
3315
3332
  }
3316
3333
  /**
3317
3334
  * @license
@@ -3329,7 +3346,7 @@ function Ri() {
3329
3346
  * See the License for the specific language governing permissions and
3330
3347
  * limitations under the License.
3331
3348
  */
3332
- const jt = "firebaseLocalStorageDb", Pi = 1, he = "firebaseLocalStorage", Gt = "fbase_key";
3349
+ const zt = "firebaseLocalStorageDb", Ni = 1, he = "firebaseLocalStorage", qt = "fbase_key";
3333
3350
  class Z {
3334
3351
  constructor(e) {
3335
3352
  this.request = e;
@@ -3347,52 +3364,52 @@ class Z {
3347
3364
  function _e(n, e) {
3348
3365
  return n.transaction([he], e ? "readwrite" : "readonly").objectStore(he);
3349
3366
  }
3350
- function Ai() {
3351
- const n = indexedDB.deleteDatabase(jt);
3367
+ function Li() {
3368
+ const n = indexedDB.deleteDatabase(zt);
3352
3369
  return new Z(n).toPromise();
3353
3370
  }
3354
- function be() {
3355
- const n = indexedDB.open(jt, Pi);
3371
+ function Pe() {
3372
+ const n = indexedDB.open(zt, Ni);
3356
3373
  return new Promise((e, t) => {
3357
3374
  n.addEventListener("error", () => {
3358
3375
  t(n.error);
3359
3376
  }), n.addEventListener("upgradeneeded", () => {
3360
3377
  const i = n.result;
3361
3378
  try {
3362
- i.createObjectStore(he, { keyPath: Gt });
3379
+ i.createObjectStore(he, { keyPath: qt });
3363
3380
  } catch (r) {
3364
3381
  t(r);
3365
3382
  }
3366
3383
  }), n.addEventListener("success", async () => {
3367
3384
  const i = n.result;
3368
- i.objectStoreNames.contains(he) ? e(i) : (i.close(), await Ai(), e(await be()));
3385
+ i.objectStoreNames.contains(he) ? e(i) : (i.close(), await Li(), e(await Pe()));
3369
3386
  });
3370
3387
  });
3371
3388
  }
3372
- async function et(n, e, t) {
3389
+ async function it(n, e, t) {
3373
3390
  const i = _e(n, !0).put({
3374
- [Gt]: e,
3391
+ [qt]: e,
3375
3392
  value: t
3376
3393
  });
3377
3394
  return new Z(i).toPromise();
3378
3395
  }
3379
- async function Ci(n, e) {
3396
+ async function Mi(n, e) {
3380
3397
  const t = _e(n, !1).get(e), i = await new Z(t).toPromise();
3381
3398
  return i === void 0 ? null : i.value;
3382
3399
  }
3383
- function tt(n, e) {
3400
+ function rt(n, e) {
3384
3401
  const t = _e(n, !0).delete(e);
3385
3402
  return new Z(t).toPromise();
3386
3403
  }
3387
- const Oi = 800, Ni = 3;
3388
- class Bt {
3404
+ const Ui = 800, Di = 3;
3405
+ class Kt {
3389
3406
  constructor() {
3390
3407
  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
3408
  }, () => {
3392
3409
  });
3393
3410
  }
3394
3411
  async _openDb() {
3395
- return this.db ? this.db : (this.db = await be(), this.db);
3412
+ return this.db ? this.db : (this.db = await Pe(), this.db);
3396
3413
  }
3397
3414
  async _withRetries(e) {
3398
3415
  let t = 0;
@@ -3401,7 +3418,7 @@ class Bt {
3401
3418
  const i = await this._openDb();
3402
3419
  return await e(i);
3403
3420
  } catch (i) {
3404
- if (t++ > Ni)
3421
+ if (t++ > Di)
3405
3422
  throw i;
3406
3423
  this.db && (this.db.close(), this.db = void 0);
3407
3424
  }
@@ -3411,13 +3428,13 @@ class Bt {
3411
3428
  * postMessage interface to send these events to the worker ourselves.
3412
3429
  */
3413
3430
  async initializeServiceWorkerMessaging() {
3414
- return Wt() ? this.initializeReceiver() : this.initializeSender();
3431
+ return Bt() ? this.initializeReceiver() : this.initializeSender();
3415
3432
  }
3416
3433
  /**
3417
3434
  * As the worker we should listen to events from the main window.
3418
3435
  */
3419
3436
  async initializeReceiver() {
3420
- this.receiver = ge._getInstance(Ri()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3437
+ this.receiver = ge._getInstance(Oi()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3421
3438
  keyProcessed: (await this._poll()).includes(t.key)
3422
3439
  })), this.receiver._subscribe("ping", async (e, t) => [
3423
3440
  "keyChanged"
@@ -3433,9 +3450,9 @@ class Bt {
3433
3450
  */
3434
3451
  async initializeSender() {
3435
3452
  var e, t;
3436
- if (this.activeServiceWorker = await bi(), !this.activeServiceWorker)
3453
+ if (this.activeServiceWorker = await Pi(), !this.activeServiceWorker)
3437
3454
  return;
3438
- this.sender = new Ei(this.activeServiceWorker);
3455
+ this.sender = new Ri(this.activeServiceWorker);
3439
3456
  const i = await this.sender._send(
3440
3457
  "ping",
3441
3458
  {},
@@ -3457,7 +3474,7 @@ class Bt {
3457
3474
  * @param key - Storage key which changed.
3458
3475
  */
3459
3476
  async notifyServiceWorker(e) {
3460
- if (!(!this.sender || !this.activeServiceWorker || Si() !== this.activeServiceWorker))
3477
+ if (!(!this.sender || !this.activeServiceWorker || Ci() !== this.activeServiceWorker))
3461
3478
  try {
3462
3479
  await this.sender._send(
3463
3480
  "keyChanged",
@@ -3473,8 +3490,8 @@ class Bt {
3473
3490
  try {
3474
3491
  if (!indexedDB)
3475
3492
  return !1;
3476
- const e = await be();
3477
- return await et(e, de, "1"), await tt(e, de), !0;
3493
+ const e = await Pe();
3494
+ return await it(e, de, "1"), await rt(e, de), !0;
3478
3495
  } catch {
3479
3496
  }
3480
3497
  return !1;
@@ -3488,14 +3505,14 @@ class Bt {
3488
3505
  }
3489
3506
  }
3490
3507
  async _set(e, t) {
3491
- return this._withPendingWrite(async () => (await this._withRetries((i) => et(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3508
+ return this._withPendingWrite(async () => (await this._withRetries((i) => it(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3492
3509
  }
3493
3510
  async _get(e) {
3494
- const t = await this._withRetries((i) => Ci(i, e));
3511
+ const t = await this._withRetries((i) => Mi(i, e));
3495
3512
  return this.localCache[e] = t, t;
3496
3513
  }
3497
3514
  async _remove(e) {
3498
- return this._withPendingWrite(async () => (await this._withRetries((t) => tt(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
3515
+ return this._withPendingWrite(async () => (await this._withRetries((t) => rt(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
3499
3516
  }
3500
3517
  async _poll() {
3501
3518
  const e = await this._withRetries((r) => {
@@ -3522,7 +3539,7 @@ class Bt {
3522
3539
  r(t);
3523
3540
  }
3524
3541
  startPolling() {
3525
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Oi);
3542
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ui);
3526
3543
  }
3527
3544
  stopPolling() {
3528
3545
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3534,8 +3551,8 @@ class Bt {
3534
3551
  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
3552
  }
3536
3553
  }
3537
- Bt.type = "LOCAL";
3538
- const Li = Bt;
3554
+ Kt.type = "LOCAL";
3555
+ const Fi = Kt;
3539
3556
  new X(3e4, 6e4);
3540
3557
  /**
3541
3558
  * @license
@@ -3553,8 +3570,8 @@ new X(3e4, 6e4);
3553
3570
  * See the License for the specific language governing permissions and
3554
3571
  * limitations under the License.
3555
3572
  */
3556
- function Mi(n, e) {
3557
- return e ? k(e) : (u(
3573
+ function xi(n, e) {
3574
+ return e ? S(e) : (u(
3558
3575
  n._popupRedirectResolver,
3559
3576
  n,
3560
3577
  "argument-error"
@@ -3577,7 +3594,7 @@ function Mi(n, e) {
3577
3594
  * See the License for the specific language governing permissions and
3578
3595
  * limitations under the License.
3579
3596
  */
3580
- class Ue extends Ut {
3597
+ class Ve extends xt {
3581
3598
  constructor(e) {
3582
3599
  super(
3583
3600
  "custom",
@@ -3607,26 +3624,26 @@ class Ue extends Ut {
3607
3624
  return e && (t.idToken = e), t;
3608
3625
  }
3609
3626
  }
3610
- function Ui(n) {
3611
- return fi(n.auth, new Ue(n), n.bypassAuthState);
3627
+ function Vi(n) {
3628
+ return _i(n.auth, new Ve(n), n.bypassAuthState);
3612
3629
  }
3613
- function Di(n) {
3630
+ function $i(n) {
3614
3631
  const { auth: e, user: t } = n;
3615
3632
  return u(
3616
3633
  t,
3617
3634
  e,
3618
3635
  "internal-error"
3619
3636
  /* AuthErrorCode.INTERNAL_ERROR */
3620
- ), hi(t, new Ue(n), n.bypassAuthState);
3637
+ ), gi(t, new Ve(n), n.bypassAuthState);
3621
3638
  }
3622
- async function Fi(n) {
3639
+ async function Hi(n) {
3623
3640
  const { auth: e, user: t } = n;
3624
3641
  return u(
3625
3642
  t,
3626
3643
  e,
3627
3644
  "internal-error"
3628
3645
  /* AuthErrorCode.INTERNAL_ERROR */
3629
- ), di(t, new Ue(n), n.bypassAuthState);
3646
+ ), mi(t, new Ve(n), n.bypassAuthState);
3630
3647
  }
3631
3648
  /**
3632
3649
  * @license
@@ -3644,7 +3661,7 @@ async function Fi(n) {
3644
3661
  * See the License for the specific language governing permissions and
3645
3662
  * limitations under the License.
3646
3663
  */
3647
- class qt {
3664
+ class Jt {
3648
3665
  constructor(e, t, i, r, s = !1) {
3649
3666
  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
3667
  }
@@ -3686,15 +3703,15 @@ class qt {
3686
3703
  switch (e) {
3687
3704
  case "signInViaPopup":
3688
3705
  case "signInViaRedirect":
3689
- return Ui;
3706
+ return Vi;
3690
3707
  case "linkViaPopup":
3691
3708
  case "linkViaRedirect":
3692
- return Fi;
3709
+ return Hi;
3693
3710
  case "reauthViaPopup":
3694
3711
  case "reauthViaRedirect":
3695
- return Di;
3712
+ return $i;
3696
3713
  default:
3697
- b(
3714
+ R(
3698
3715
  this.auth,
3699
3716
  "internal-error"
3700
3717
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3702,10 +3719,10 @@ class qt {
3702
3719
  }
3703
3720
  }
3704
3721
  resolve(e) {
3705
- S(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3722
+ A(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3706
3723
  }
3707
3724
  reject(e) {
3708
- S(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3725
+ A(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3709
3726
  }
3710
3727
  unregisterAndCleanUp() {
3711
3728
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3727,8 +3744,8 @@ class qt {
3727
3744
  * See the License for the specific language governing permissions and
3728
3745
  * limitations under the License.
3729
3746
  */
3730
- const xi = new X(2e3, 1e4);
3731
- class V extends qt {
3747
+ const Wi = new X(2e3, 1e4);
3748
+ class V extends Jt {
3732
3749
  constructor(e, t, i, r, s) {
3733
3750
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, V.currentPopupAction && V.currentPopupAction.cancel(), V.currentPopupAction = this;
3734
3751
  }
@@ -3742,8 +3759,8 @@ class V extends qt {
3742
3759
  ), e;
3743
3760
  }
3744
3761
  async onExecution() {
3745
- S(this.filter.length === 1, "Popup operations only handle one event");
3746
- const e = Me();
3762
+ A(this.filter.length === 1, "Popup operations only handle one event");
3763
+ const e = xe();
3747
3764
  this.authWindow = await this.resolver._openPopup(
3748
3765
  this.auth,
3749
3766
  this.provider,
@@ -3753,7 +3770,7 @@ class V extends qt {
3753
3770
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3754
3771
  this.reject(t);
3755
3772
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3756
- t || this.reject(I(
3773
+ t || this.reject(T(
3757
3774
  this.auth,
3758
3775
  "web-storage-unsupported"
3759
3776
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3765,7 +3782,7 @@ class V extends qt {
3765
3782
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3766
3783
  }
3767
3784
  cancel() {
3768
- this.reject(I(
3785
+ this.reject(T(
3769
3786
  this.auth,
3770
3787
  "cancelled-popup-request"
3771
3788
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
@@ -3780,7 +3797,7 @@ class V extends qt {
3780
3797
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3781
3798
  this.pollId = window.setTimeout(
3782
3799
  () => {
3783
- this.pollId = null, this.reject(I(
3800
+ this.pollId = null, this.reject(T(
3784
3801
  this.auth,
3785
3802
  "popup-closed-by-user"
3786
3803
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -3791,7 +3808,7 @@ class V extends qt {
3791
3808
  );
3792
3809
  return;
3793
3810
  }
3794
- this.pollId = window.setTimeout(e, xi.get());
3811
+ this.pollId = window.setTimeout(e, Wi.get());
3795
3812
  };
3796
3813
  e();
3797
3814
  }
@@ -3813,8 +3830,8 @@ V.currentPopupAction = null;
3813
3830
  * See the License for the specific language governing permissions and
3814
3831
  * limitations under the License.
3815
3832
  */
3816
- const Vi = "pendingRedirect", oe = /* @__PURE__ */ new Map();
3817
- class $i extends qt {
3833
+ const ji = "pendingRedirect", oe = /* @__PURE__ */ new Map();
3834
+ class Gi extends Jt {
3818
3835
  constructor(e, t, i = !1) {
3819
3836
  super(e, [
3820
3837
  "signInViaRedirect",
@@ -3832,7 +3849,7 @@ class $i extends qt {
3832
3849
  let e = oe.get(this.auth._key());
3833
3850
  if (!e) {
3834
3851
  try {
3835
- const i = await Hi(this.resolver, this.auth) ? await super.execute() : null;
3852
+ const i = await Bi(this.resolver, this.auth) ? await super.execute() : null;
3836
3853
  e = () => Promise.resolve(i);
3837
3854
  } catch (t) {
3838
3855
  e = () => Promise.reject(t);
@@ -3860,26 +3877,26 @@ class $i extends qt {
3860
3877
  cleanUp() {
3861
3878
  }
3862
3879
  }
3863
- async function Hi(n, e) {
3864
- const t = Gi(e), i = ji(n);
3880
+ async function Bi(n, e) {
3881
+ const t = Ki(e), i = qi(n);
3865
3882
  if (!await i._isAvailable())
3866
3883
  return !1;
3867
3884
  const r = await i._get(t) === "true";
3868
3885
  return await i._remove(t), r;
3869
3886
  }
3870
- function Wi(n, e) {
3887
+ function zi(n, e) {
3871
3888
  oe.set(n._key(), e);
3872
3889
  }
3873
- function ji(n) {
3874
- return k(n._redirectPersistence);
3890
+ function qi(n) {
3891
+ return S(n._redirectPersistence);
3875
3892
  }
3876
- function Gi(n) {
3877
- return se(Vi, n.config.apiKey, n.name);
3893
+ function Ki(n) {
3894
+ return se(ji, n.config.apiKey, n.name);
3878
3895
  }
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();
3896
+ async function Ji(n, e, t = !1) {
3897
+ if (E(n.app))
3898
+ return Promise.reject(M(n));
3899
+ const i = me(n), r = xi(i, e), o = await new Gi(i, r, t).execute();
3883
3900
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
3884
3901
  }
3885
3902
  /**
@@ -3898,8 +3915,8 @@ async function Bi(n, e, t = !1) {
3898
3915
  * See the License for the specific language governing permissions and
3899
3916
  * limitations under the License.
3900
3917
  */
3901
- const qi = 10 * 60 * 1e3;
3902
- class zi {
3918
+ const Yi = 10 * 60 * 1e3;
3919
+ class Xi {
3903
3920
  constructor(e) {
3904
3921
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
3905
3922
  }
@@ -3915,13 +3932,13 @@ class zi {
3915
3932
  let t = !1;
3916
3933
  return this.consumers.forEach((i) => {
3917
3934
  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;
3935
+ }), this.hasHandledPotentialRedirect || !Qi(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
3919
3936
  }
3920
3937
  sendToConsumer(e, t) {
3921
3938
  var i;
3922
- if (e.error && !zt(e)) {
3939
+ if (e.error && !Yt(e)) {
3923
3940
  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));
3941
+ t.onError(T(this.auth, r));
3925
3942
  } else
3926
3943
  t.onAuthEvent(e);
3927
3944
  }
@@ -3930,26 +3947,26 @@ class zi {
3930
3947
  return t.filter.includes(e.type) && i;
3931
3948
  }
3932
3949
  hasEventBeenHandled(e) {
3933
- return Date.now() - this.lastProcessedEventTime >= qi && this.cachedEventUids.clear(), this.cachedEventUids.has(nt(e));
3950
+ return Date.now() - this.lastProcessedEventTime >= Yi && this.cachedEventUids.clear(), this.cachedEventUids.has(st(e));
3934
3951
  }
3935
3952
  saveEventToCache(e) {
3936
- this.cachedEventUids.add(nt(e)), this.lastProcessedEventTime = Date.now();
3953
+ this.cachedEventUids.add(st(e)), this.lastProcessedEventTime = Date.now();
3937
3954
  }
3938
3955
  }
3939
- function nt(n) {
3956
+ function st(n) {
3940
3957
  return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
3941
3958
  }
3942
- function zt({ type: n, error: e }) {
3959
+ function Yt({ type: n, error: e }) {
3943
3960
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
3944
3961
  }
3945
- function Ki(n) {
3962
+ function Qi(n) {
3946
3963
  switch (n.type) {
3947
3964
  case "signInViaRedirect":
3948
3965
  case "linkViaRedirect":
3949
3966
  case "reauthViaRedirect":
3950
3967
  return !0;
3951
3968
  case "unknown":
3952
- return zt(n);
3969
+ return Yt(n);
3953
3970
  default:
3954
3971
  return !1;
3955
3972
  }
@@ -3970,7 +3987,7 @@ function Ki(n) {
3970
3987
  * See the License for the specific language governing permissions and
3971
3988
  * limitations under the License.
3972
3989
  */
3973
- async function Ji(n, e = {}) {
3990
+ async function Zi(n, e = {}) {
3974
3991
  return G(n, "GET", "/v1/projects", e);
3975
3992
  }
3976
3993
  /**
@@ -3989,32 +4006,32 @@ async function Ji(n, e = {}) {
3989
4006
  * See the License for the specific language governing permissions and
3990
4007
  * limitations under the License.
3991
4008
  */
3992
- const Yi = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Xi = /^https?/;
3993
- async function Qi(n) {
4009
+ const er = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, tr = /^https?/;
4010
+ async function nr(n) {
3994
4011
  if (n.config.emulator)
3995
4012
  return;
3996
- const { authorizedDomains: e } = await Ji(n);
4013
+ const { authorizedDomains: e } = await Zi(n);
3997
4014
  for (const t of e)
3998
4015
  try {
3999
- if (Zi(t))
4016
+ if (ir(t))
4000
4017
  return;
4001
4018
  } catch {
4002
4019
  }
4003
- b(
4020
+ R(
4004
4021
  n,
4005
4022
  "unauthorized-domain"
4006
4023
  /* AuthErrorCode.INVALID_ORIGIN */
4007
4024
  );
4008
4025
  }
4009
- function Zi(n) {
4010
- const e = Ee(), { protocol: t, hostname: i } = new URL(e);
4026
+ function ir(n) {
4027
+ const e = Re(), { protocol: t, hostname: i } = new URL(e);
4011
4028
  if (n.startsWith("chrome-extension://")) {
4012
4029
  const o = new URL(n);
4013
4030
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4014
4031
  }
4015
- if (!Xi.test(t))
4032
+ if (!tr.test(t))
4016
4033
  return !1;
4017
- if (Yi.test(n))
4034
+ if (er.test(n))
4018
4035
  return i === n;
4019
4036
  const r = n.replace(/\./g, "\\.");
4020
4037
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4035,9 +4052,9 @@ function Zi(n) {
4035
4052
  * See the License for the specific language governing permissions and
4036
4053
  * limitations under the License.
4037
4054
  */
4038
- const er = new X(3e4, 6e4);
4039
- function it() {
4040
- const n = T().___jsl;
4055
+ const rr = new X(3e4, 6e4);
4056
+ function ot() {
4057
+ const n = y().___jsl;
4041
4058
  if (n != null && n.H) {
4042
4059
  for (const e of Object.keys(n.H))
4043
4060
  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 +4062,45 @@ function it() {
4045
4062
  n.CP[t] = null;
4046
4063
  }
4047
4064
  }
4048
- function tr(n) {
4065
+ function sr(n) {
4049
4066
  return new Promise((e, t) => {
4050
4067
  var i, r, s;
4051
4068
  function o() {
4052
- it(), gapi.load("gapi.iframes", {
4069
+ ot(), gapi.load("gapi.iframes", {
4053
4070
  callback: () => {
4054
4071
  e(gapi.iframes.getContext());
4055
4072
  },
4056
4073
  ontimeout: () => {
4057
- it(), t(I(
4074
+ ot(), t(T(
4058
4075
  n,
4059
4076
  "network-request-failed"
4060
4077
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4061
4078
  ));
4062
4079
  },
4063
- timeout: er.get()
4080
+ timeout: rr.get()
4064
4081
  });
4065
4082
  }
4066
- if (!((r = (i = T().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4083
+ if (!((r = (i = y().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4067
4084
  e(gapi.iframes.getContext());
4068
- else if (!((s = T().gapi) === null || s === void 0) && s.load)
4085
+ else if (!((s = y().gapi) === null || s === void 0) && s.load)
4069
4086
  o();
4070
4087
  else {
4071
- const c = ri("iframefcb");
4072
- return T()[c] = () => {
4073
- gapi.load ? o() : t(I(
4088
+ const c = ci("iframefcb");
4089
+ return y()[c] = () => {
4090
+ gapi.load ? o() : t(T(
4074
4091
  n,
4075
4092
  "network-request-failed"
4076
4093
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4077
4094
  ));
4078
- }, ni(`${ii()}?onload=${c}`).catch((a) => t(a));
4095
+ }, oi(`${ai()}?onload=${c}`).catch((a) => t(a));
4079
4096
  }
4080
4097
  }).catch((e) => {
4081
4098
  throw ae = null, e;
4082
4099
  });
4083
4100
  }
4084
4101
  let ae = null;
4085
- function nr(n) {
4086
- return ae = ae || tr(n), ae;
4102
+ function or(n) {
4103
+ return ae = ae || sr(n), ae;
4087
4104
  }
4088
4105
  /**
4089
4106
  * @license
@@ -4101,7 +4118,7 @@ function nr(n) {
4101
4118
  * See the License for the specific language governing permissions and
4102
4119
  * limitations under the License.
4103
4120
  */
4104
- const ir = new X(5e3, 15e3), rr = "__/auth/iframe", sr = "emulator/auth/iframe", or = {
4121
+ const ar = new X(5e3, 15e3), cr = "__/auth/iframe", lr = "emulator/auth/iframe", ur = {
4105
4122
  style: {
4106
4123
  position: "absolute",
4107
4124
  top: "-100px",
@@ -4110,13 +4127,13 @@ const ir = new X(5e3, 15e3), rr = "__/auth/iframe", sr = "emulator/auth/iframe",
4110
4127
  },
4111
4128
  "aria-hidden": "true",
4112
4129
  tabindex: "-1"
4113
- }, ar = /* @__PURE__ */ new Map([
4130
+ }, dr = /* @__PURE__ */ new Map([
4114
4131
  ["identitytoolkit.googleapis.com", "p"],
4115
4132
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4116
4133
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4117
4134
  // test
4118
4135
  ]);
4119
- function cr(n) {
4136
+ function hr(n) {
4120
4137
  const e = n.config;
4121
4138
  u(
4122
4139
  e.authDomain,
@@ -4124,17 +4141,17 @@ function cr(n) {
4124
4141
  "auth-domain-config-required"
4125
4142
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4126
4143
  );
4127
- const t = e.emulator ? Ce(e, sr) : `https://${n.config.authDomain}/${rr}`, i = {
4144
+ const t = e.emulator ? Me(e, lr) : `https://${n.config.authDomain}/${cr}`, i = {
4128
4145
  apiKey: e.apiKey,
4129
4146
  appName: n.name,
4130
4147
  v: J
4131
- }, r = ar.get(n.config.apiHost);
4148
+ }, r = dr.get(n.config.apiHost);
4132
4149
  r && (i.eid = r);
4133
4150
  const s = n._getFrameworks();
4134
4151
  return s.length && (i.fw = s.join(",")), `${t}?${Y(i).slice(1)}`;
4135
4152
  }
4136
- async function lr(n) {
4137
- const e = await nr(n), t = T().gapi;
4153
+ async function fr(n) {
4154
+ const e = await or(n), t = y().gapi;
4138
4155
  return u(
4139
4156
  t,
4140
4157
  n,
@@ -4142,24 +4159,24 @@ async function lr(n) {
4142
4159
  /* AuthErrorCode.INTERNAL_ERROR */
4143
4160
  ), e.open({
4144
4161
  where: document.body,
4145
- url: cr(n),
4162
+ url: hr(n),
4146
4163
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4147
- attributes: or,
4164
+ attributes: ur,
4148
4165
  dontclear: !0
4149
4166
  }, (i) => new Promise(async (r, s) => {
4150
4167
  await i.restyle({
4151
4168
  // Prevent iframe from closing on mouse out.
4152
4169
  setHideOnLeave: !1
4153
4170
  });
4154
- const o = I(
4171
+ const o = T(
4155
4172
  n,
4156
4173
  "network-request-failed"
4157
4174
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4158
- ), c = T().setTimeout(() => {
4175
+ ), c = y().setTimeout(() => {
4159
4176
  s(o);
4160
- }, ir.get());
4177
+ }, ar.get());
4161
4178
  function a() {
4162
- T().clearTimeout(c), r(i);
4179
+ y().clearTimeout(c), r(i);
4163
4180
  }
4164
4181
  i.ping(a).then(a, () => {
4165
4182
  s(o);
@@ -4182,13 +4199,13 @@ async function lr(n) {
4182
4199
  * See the License for the specific language governing permissions and
4183
4200
  * limitations under the License.
4184
4201
  */
4185
- const ur = {
4202
+ const pr = {
4186
4203
  location: "yes",
4187
4204
  resizable: "yes",
4188
4205
  statusbar: "yes",
4189
4206
  toolbar: "no"
4190
- }, dr = 500, hr = 600, fr = "_blank", pr = "http://localhost";
4191
- class rt {
4207
+ }, mr = 500, gr = 600, _r = "_blank", vr = "http://localhost";
4208
+ class at {
4192
4209
  constructor(e) {
4193
4210
  this.window = e, this.associatedEvent = null;
4194
4211
  }
@@ -4200,33 +4217,33 @@ class rt {
4200
4217
  }
4201
4218
  }
4202
4219
  }
4203
- function mr(n, e, t, i = dr, r = hr) {
4220
+ function Ir(n, e, t, i = mr, r = gr) {
4204
4221
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4205
4222
  let c = "";
4206
- const a = Object.assign(Object.assign({}, ur), {
4223
+ const a = Object.assign(Object.assign({}, pr), {
4207
4224
  width: i.toString(),
4208
4225
  height: r.toString(),
4209
4226
  top: s,
4210
4227
  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);
4228
+ }), l = _().toLowerCase();
4229
+ t && (c = Ct(l) ? _r : t), Pt(l) && (e = e || vr, a.scrollbars = "yes");
4230
+ const d = Object.entries(a).reduce((p, [w, U]) => `${p}${w}=${U},`, "");
4231
+ if (Xn(l) && c !== "_self")
4232
+ return Tr(e || "", c), new at(null);
4233
+ const h = window.open(e || "", c, d);
4217
4234
  u(
4218
- f,
4235
+ h,
4219
4236
  n,
4220
4237
  "popup-blocked"
4221
4238
  /* AuthErrorCode.POPUP_BLOCKED */
4222
4239
  );
4223
4240
  try {
4224
- f.focus();
4241
+ h.focus();
4225
4242
  } catch {
4226
4243
  }
4227
- return new rt(f);
4244
+ return new at(h);
4228
4245
  }
4229
- function gr(n, e) {
4246
+ function Tr(n, e) {
4230
4247
  const t = document.createElement("a");
4231
4248
  t.href = n, t.target = e;
4232
4249
  const i = document.createEvent("MouseEvent");
@@ -4248,8 +4265,8 @@ function gr(n, e) {
4248
4265
  * See the License for the specific language governing permissions and
4249
4266
  * limitations under the License.
4250
4267
  */
4251
- const _r = "__/auth/handler", vr = "emulator/auth/handler", Ir = encodeURIComponent("fac");
4252
- async function st(n, e, t, i, r, s) {
4268
+ const yr = "__/auth/handler", wr = "emulator/auth/handler", Er = encodeURIComponent("fac");
4269
+ async function ct(n, e, t, i, r, s) {
4253
4270
  u(
4254
4271
  n.config.authDomain,
4255
4272
  n,
@@ -4269,24 +4286,24 @@ async function st(n, e, t, i, r, s) {
4269
4286
  v: J,
4270
4287
  eventId: r
4271
4288
  };
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;
4289
+ if (e instanceof Vt) {
4290
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", bn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4291
+ for (const [d, h] of Object.entries({}))
4292
+ o[d] = h;
4276
4293
  }
4277
4294
  if (e instanceof Q) {
4278
- const d = e.getScopes().filter((f) => f !== "");
4295
+ const d = e.getScopes().filter((h) => h !== "");
4279
4296
  d.length > 0 && (o.scopes = d.join(","));
4280
4297
  }
4281
4298
  n.tenantId && (o.tid = n.tenantId);
4282
4299
  const c = o;
4283
4300
  for (const d of Object.keys(c))
4284
4301
  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}`;
4302
+ const a = await n._getAppCheckToken(), l = a ? `#${Er}=${encodeURIComponent(a)}` : "";
4303
+ return `${kr(n)}?${Y(c).slice(1)}${l}`;
4287
4304
  }
4288
- function Tr({ config: n }) {
4289
- return n.emulator ? Ce(n, vr) : `https://${n.authDomain}/${_r}`;
4305
+ function kr({ config: n }) {
4306
+ return n.emulator ? Me(n, wr) : `https://${n.authDomain}/${yr}`;
4290
4307
  }
4291
4308
  /**
4292
4309
  * @license
@@ -4305,29 +4322,29 @@ function Tr({ config: n }) {
4305
4322
  * limitations under the License.
4306
4323
  */
4307
4324
  const we = "webStorageSupport";
4308
- class wr {
4325
+ class br {
4309
4326
  constructor() {
4310
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Ht, this._completeRedirectFn = Bi, this._overrideRedirectResult = Wi;
4327
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Gt, this._completeRedirectFn = Ji, this._overrideRedirectResult = zi;
4311
4328
  }
4312
4329
  // Wrapping in async even though we don't await anywhere in order
4313
4330
  // to make sure errors are raised as promise rejections
4314
4331
  async _openPopup(e, t, i, r) {
4315
4332
  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());
4333
+ A((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4334
+ const o = await ct(e, t, i, Re(), r);
4335
+ return Ir(e, o, xe());
4319
4336
  }
4320
4337
  async _openRedirect(e, t, i, r) {
4321
4338
  await this._originValidation(e);
4322
- const s = await st(e, t, i, Ee(), r);
4323
- return ki(s), new Promise(() => {
4339
+ const s = await ct(e, t, i, Re(), r);
4340
+ return Ai(s), new Promise(() => {
4324
4341
  });
4325
4342
  }
4326
4343
  _initialize(e) {
4327
4344
  const t = e._key();
4328
4345
  if (this.eventManagers[t]) {
4329
4346
  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);
4347
+ return r ? Promise.resolve(r) : (A(s, "If manager is not set, promise should be"), s);
4331
4348
  }
4332
4349
  const i = this.initAndGetManager(e);
4333
4350
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4335,7 +4352,7 @@ class wr {
4335
4352
  }), i;
4336
4353
  }
4337
4354
  async initAndGetManager(e) {
4338
- const t = await lr(e), i = new zi(e);
4355
+ const t = await fr(e), i = new Xi(e);
4339
4356
  return t.register("authEvent", (r) => (u(
4340
4357
  r == null ? void 0 : r.authEvent,
4341
4358
  e,
@@ -4350,7 +4367,7 @@ class wr {
4350
4367
  this.iframes[e._key()].send(we, { type: we }, (r) => {
4351
4368
  var s;
4352
4369
  const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[we];
4353
- o !== void 0 && t(!!o), b(
4370
+ o !== void 0 && t(!!o), R(
4354
4371
  e,
4355
4372
  "internal-error"
4356
4373
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4359,14 +4376,14 @@ class wr {
4359
4376
  }
4360
4377
  _originValidation(e) {
4361
4378
  const t = e._key();
4362
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Qi(e)), this.originValidationPromises[t];
4379
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = nr(e)), this.originValidationPromises[t];
4363
4380
  }
4364
4381
  get _shouldInitProactively() {
4365
- return Nt() || Ne() || pe();
4382
+ return Ut() || De() || pe();
4366
4383
  }
4367
4384
  }
4368
- const yr = wr;
4369
- var ot = "@firebase/auth", at = "1.7.5";
4385
+ const Sr = br;
4386
+ var lt = "@firebase/auth", ut = "1.7.5";
4370
4387
  /**
4371
4388
  * @license
4372
4389
  * Copyright 2020 Google LLC
@@ -4383,7 +4400,7 @@ var ot = "@firebase/auth", at = "1.7.5";
4383
4400
  * See the License for the specific language governing permissions and
4384
4401
  * limitations under the License.
4385
4402
  */
4386
- class Er {
4403
+ class Rr {
4387
4404
  constructor(e) {
4388
4405
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4389
4406
  }
@@ -4434,7 +4451,7 @@ class Er {
4434
4451
  * See the License for the specific language governing permissions and
4435
4452
  * limitations under the License.
4436
4453
  */
4437
- function kr(n) {
4454
+ function Ar(n) {
4438
4455
  switch (n) {
4439
4456
  case "Node":
4440
4457
  return "node";
@@ -4450,8 +4467,8 @@ function kr(n) {
4450
4467
  return;
4451
4468
  }
4452
4469
  }
4453
- function br(n) {
4454
- je(new Ge(
4470
+ function Pr(n) {
4471
+ ze(new qe(
4455
4472
  "auth",
4456
4473
  (e, { options: t }) => {
4457
4474
  const i = e.getProvider("app").getImmediate(), r = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: o, authDomain: c } = i.options;
@@ -4463,9 +4480,9 @@ function br(n) {
4463
4480
  apiHost: "identitytoolkit.googleapis.com",
4464
4481
  tokenApiHost: "securetoken.googleapis.com",
4465
4482
  apiScheme: "https",
4466
- sdkClientVersion: Lt(n)
4467
- }, l = new ei(i, r, s, a);
4468
- return oi(l, t), l;
4483
+ sdkClientVersion: Dt(n)
4484
+ }, l = new ri(i, r, s, a);
4485
+ return ui(l, t), l;
4469
4486
  },
4470
4487
  "PUBLIC"
4471
4488
  /* ComponentType.PUBLIC */
@@ -4477,21 +4494,21 @@ function br(n) {
4477
4494
  "auth-internal"
4478
4495
  /* _ComponentName.AUTH_INTERNAL */
4479
4496
  ).initialize();
4480
- })), je(new Ge(
4497
+ })), ze(new qe(
4481
4498
  "auth-internal",
4482
4499
  (e) => {
4483
4500
  const t = me(e.getProvider(
4484
4501
  "auth"
4485
4502
  /* _ComponentName.AUTH */
4486
4503
  ).getImmediate());
4487
- return ((i) => new Er(i))(t);
4504
+ return ((i) => new Rr(i))(t);
4488
4505
  },
4489
4506
  "PRIVATE"
4490
4507
  /* ComponentType.PRIVATE */
4491
4508
  ).setInstantiationMode(
4492
4509
  "EXPLICIT"
4493
4510
  /* InstantiationMode.EXPLICIT */
4494
- )), ye(ot, at, kr(n)), ye(ot, at, "esm2017");
4511
+ )), Se(lt, ut, Ar(n)), Se(lt, ut, "esm2017");
4495
4512
  }
4496
4513
  /**
4497
4514
  * @license
@@ -4509,124 +4526,117 @@ function br(n) {
4509
4526
  * See the License for the specific language governing permissions and
4510
4527
  * limitations under the License.
4511
4528
  */
4512
- const Sr = 5 * 60, Rr = ft("authIdTokenMaxAge") || Sr;
4513
- let ct = null;
4514
- const Pr = (n) => async (e) => {
4529
+ const Cr = 5 * 60, Or = gt("authIdTokenMaxAge") || Cr;
4530
+ let dt = null;
4531
+ const Nr = (n) => async (e) => {
4515
4532
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4516
- if (i && i > Rr)
4533
+ if (i && i > Or)
4517
4534
  return;
4518
4535
  const r = t == null ? void 0 : t.token;
4519
- ct !== r && (ct = r, await fetch(n, {
4536
+ dt !== r && (dt = r, await fetch(n, {
4520
4537
  method: r ? "POST" : "DELETE",
4521
4538
  headers: r ? {
4522
4539
  Authorization: `Bearer ${r}`
4523
4540
  } : {}
4524
4541
  }));
4525
4542
  };
4526
- function Ar(n = vn()) {
4527
- const e = pt(n, "auth");
4543
+ function Lr(n = yn()) {
4544
+ const e = _t(n, "auth");
4528
4545
  if (e.isInitialized())
4529
4546
  return e.getImmediate();
4530
- const t = si(n, {
4531
- popupRedirectResolver: yr,
4547
+ const t = li(n, {
4548
+ popupRedirectResolver: Sr,
4532
4549
  persistence: [
4533
- Li,
4534
- wi,
4535
- Ht
4550
+ Fi,
4551
+ bi,
4552
+ Gt
4536
4553
  ]
4537
- }), i = ft("authTokenSyncURL");
4554
+ }), i = gt("authTokenSyncURL");
4538
4555
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4539
4556
  const s = new URL(i, location.origin);
4540
4557
  if (location.origin === s.origin) {
4541
- const o = Pr(s.toString());
4542
- _i(t, o, () => o(t.currentUser)), gi(t, (c) => o(c));
4558
+ const o = Nr(s.toString());
4559
+ yi(t, o, () => o(t.currentUser)), Ti(t, (c) => o(c));
4543
4560
  }
4544
4561
  }
4545
- const r = _n("auth");
4546
- return r && ai(t, `http://${r}`), t;
4562
+ const r = Tn("auth");
4563
+ return r && di(t, `http://${r}`), t;
4547
4564
  }
4548
- function Cr() {
4565
+ function Mr() {
4549
4566
  var n, e;
4550
4567
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4551
4568
  }
4552
- ti({
4569
+ si({
4553
4570
  loadJS(n) {
4554
4571
  return new Promise((e, t) => {
4555
4572
  const i = document.createElement("script");
4556
4573
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4557
- const s = I(
4574
+ const s = T(
4558
4575
  "internal-error"
4559
4576
  /* AuthErrorCode.INTERNAL_ERROR */
4560
4577
  );
4561
4578
  s.customData = r, t(s);
4562
- }, i.type = "text/javascript", i.charset = "UTF-8", Cr().appendChild(i);
4579
+ }, i.type = "text/javascript", i.charset = "UTF-8", Mr().appendChild(i);
4563
4580
  });
4564
4581
  },
4565
4582
  gapiScript: "https://apis.google.com/js/api.js",
4566
4583
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4567
4584
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4568
4585
  });
4569
- br(
4586
+ Pr(
4570
4587
  "Browser"
4571
4588
  /* ClientPlatform.BROWSER */
4572
4589
  );
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 = {
4590
+ 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: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4591
+ const Fr = {
4575
4592
  key: 1,
4576
4593
  class: "h-full w-full"
4577
- }, Ur = ["src"], Yr = /* @__PURE__ */ lt({
4594
+ }, xr = ["src"], Zr = /* @__PURE__ */ ht({
4578
4595
  __name: "App",
4579
4596
  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}`;
4597
+ 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(() => {
4598
+ const m = e.currentCountry.value || "MY", g = Ke.getIdToken(), I = l.value._id;
4599
+ return `${Dr.marketingV1Portal}/b/${I}/marketing/overview?showHeader=false&country=${m}&token=${g}`;
4583
4600
  });
4584
- async function x() {
4585
- if (En().length) {
4601
+ async function w() {
4602
+ if (Sn().length) {
4586
4603
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4587
4604
  return;
4588
4605
  }
4589
- const p = kn(Or.firebase), m = await sn.getCustomToken(), v = Ar();
4590
- await mi(v, m), bn(p), console.log("initFirebase", p);
4606
+ const m = Rn(Ur.firebase), g = await an.getCustomToken(), I = Lr();
4607
+ await Ii(I, g), An(m), console.log("initFirebase", m);
4591
4608
  }
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;
4609
+ const U = async () => {
4610
+ 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
4611
  };
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);
4612
+ return en(() => {
4613
+ if (Pn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4614
+ const m = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], I = document.getElementsByClassName("app-container")[0], x = document.getElementsByTagName("main")[0];
4615
+ 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
4616
  }
4607
- l.value != null && (console.log("App mounted, forceRerender"), M()), ee();
4608
- }), ut(
4617
+ l.value != null && (console.log("App mounted, forceRerender"), U());
4618
+ }), ft(
4609
4619
  () => 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());
4620
+ async (m, g) => {
4621
+ console.log("Current business changed"), m != null && m._id != g._id && (console.log("forceRerender when business changes", m, g), U());
4612
4622
  }
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(_) }
4623
+ ), (m, g) => (ne(), ke(tn, null, [
4624
+ v(d) && v(h) === "v2" ? (ne(), nn(v(on), { key: 0 })) : Ge("", !0),
4625
+ v(d) && v(h) !== "v2" ? (ne(), ke("div", Fr, [
4626
+ pt(pn, {
4627
+ json: { url: v(p) }
4618
4628
  }, null, 8, ["json"]),
4619
- en("iframe", {
4629
+ ie("iframe", {
4620
4630
  allow: "clipboard-read; clipboard-write",
4621
4631
  frameBorder: "0",
4622
4632
  height: "100%",
4623
4633
  width: "100%",
4624
- src: P(_)
4625
- }, null, 8, Ur)
4626
- ])) : He("", !0)
4634
+ src: v(p)
4635
+ }, null, 8, xr)
4636
+ ])) : Ge("", !0)
4627
4637
  ], 64));
4628
4638
  }
4629
4639
  });
4630
4640
  export {
4631
- Yr as default
4641
+ Zr as default
4632
4642
  };