@feedmepos/mf-financing 0.0.27-dev → 0.0.30-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createRouter as bn, createWebHistory as wn, useRoute as En } from "vue-router";
2
- import { computed as Tn, defineComponent as Sn, watch as An, onMounted as kn, resolveComponent as Cn, openBlock as Rn, createBlock as Pn, unref as On } from "vue";
1
+ import { createRouter as In, createWebHistory as wn, useRoute as En } from "vue-router";
2
+ import { computed as Tn, defineComponent as Sn, watch as An, onMounted as Pn, resolveComponent as kn, openBlock as Cn, createBlock as Rn, unref as On } from "vue";
3
3
  import { defineStore as Nn } from "pinia";
4
4
  import { useCoreStore as Dn } from "@feedmepos/mf-common";
5
5
  const Ln = {
@@ -70,7 +70,8 @@ const Ln = {
70
70
  business: "Business Information",
71
71
  businessDocument: "Business Document",
72
72
  documents: "Bank Statements",
73
- signature: "Declaration & Signature"
73
+ signature: "Declaration & Signature",
74
+ businessOwner: "Business Owner Information"
74
75
  },
75
76
  fields: {
76
77
  businessName: "Business Name",
@@ -81,6 +82,10 @@ const Ln = {
81
82
  businessAddressPlaceholder: "Enter your full business address",
82
83
  taxIdentificationNo: "Tax Identification No. (TIN)",
83
84
  taxIdentificationNoPlaceholder: "Enter your TIN number",
85
+ ownerName: "Owner Name",
86
+ ownerNamePlaceholder: "Enter owner's full name",
87
+ ownerPhoneNumber: "Owner Phone Number",
88
+ ownerPhoneNumberPlaceholder: "Enter phone number (e.g. +60123456789)",
84
89
  businessRegistration: "Business Registration",
85
90
  bankStatement: "Bank Statement",
86
91
  signature: "Signature",
@@ -94,7 +99,12 @@ const Ln = {
94
99
  bankStatementRequired: "Please upload at least one bank statement",
95
100
  signatureRequired: "Please provide your signature",
96
101
  submissionFailed: "Failed to submit application. Please try again.",
97
- noRestaurant: "No restaurant selected. Please select a restaurant first."
102
+ noRestaurant: "No restaurant selected. Please select a restaurant first.",
103
+ invalidPhoneNumber: "Please enter a valid phone number",
104
+ phoneNotVerified: "Please verify your phone number before submitting",
105
+ otpSendFailed: "Failed to send OTP. Please try again.",
106
+ otpVerifyFailed: "Failed to verify OTP. Please try again.",
107
+ otpRequired: "OTP is required"
98
108
  },
99
109
  buttons: {
100
110
  cancel: "Cancel",
@@ -106,13 +116,24 @@ const Ln = {
106
116
  message: "Are you sure you want to submit this financing application?",
107
117
  cancel: "Cancel",
108
118
  confirm: "Submit"
119
+ },
120
+ otp: {
121
+ send: "Send OTP",
122
+ verified: "Verified",
123
+ sent: "OTP sent successfully",
124
+ title: "Verify Phone Number",
125
+ message: "Please enter the 6-digit verification code sent to your phone.",
126
+ codeLabel: "Verification Code",
127
+ codePlaceholder: "Enter 6-digit code",
128
+ verify: "Verify",
129
+ cancel: "Cancel",
130
+ resend: "Resend OTP"
109
131
  }
110
132
  },
111
133
  upload: {
112
134
  preview: "Preview"
113
135
  },
114
136
  signature: {
115
- clearSignature: "Clear Signature",
116
137
  clickToAdd: "Click to add signature",
117
138
  dialogTitle: "Signature",
118
139
  saveBefore: "Please save your signature before closing",
@@ -189,7 +210,8 @@ const Ln = {
189
210
  business: "商业信息",
190
211
  businessDocument: "商业文件",
191
212
  documents: "银行对账单",
192
- signature: "声明与签名"
213
+ signature: "声明与签名",
214
+ businessOwner: "商业所有者信息"
193
215
  },
194
216
  fields: {
195
217
  businessName: "商业名称",
@@ -200,6 +222,10 @@ const Ln = {
200
222
  businessAddressPlaceholder: "输入您的完整商业地址",
201
223
  taxIdentificationNo: "税务识别号 (TIN)",
202
224
  taxIdentificationNoPlaceholder: "输入您的税务识别号",
225
+ ownerName: "所有者姓名",
226
+ ownerNamePlaceholder: "输入所有者全名",
227
+ ownerPhoneNumber: "所有者电话号码",
228
+ ownerPhoneNumberPlaceholder: "输入电话号码(例如:+60123456789)",
203
229
  businessRegistration: "商业注册文件",
204
230
  bankStatement: "银行对账单",
205
231
  signature: "签名",
@@ -213,7 +239,12 @@ const Ln = {
213
239
  bankStatementRequired: "请上传至少一份银行对账单",
214
240
  signatureRequired: "请提供您的签名",
215
241
  submissionFailed: "提交申请失败。请重试。",
216
- noRestaurant: "未选择餐厅。请先选择一个餐厅。"
242
+ noRestaurant: "未选择餐厅。请先选择一个餐厅。",
243
+ invalidPhoneNumber: "请输入有效的电话号码",
244
+ phoneNotVerified: "提交前请先验证您的电话号码",
245
+ otpSendFailed: "发送验证码失败。请重试。",
246
+ otpVerifyFailed: "验证失败。请重试。",
247
+ otpRequired: "验证码为必填项"
217
248
  },
218
249
  buttons: {
219
250
  cancel: "取消",
@@ -225,13 +256,24 @@ const Ln = {
225
256
  message: "您确定要提交此融资申请吗?",
226
257
  cancel: "取消",
227
258
  confirm: "提交"
259
+ },
260
+ otp: {
261
+ send: "发送验证码",
262
+ verified: "已验证",
263
+ sent: "验证码已发送",
264
+ title: "验证电话号码",
265
+ message: "请输入发送到您手机的6位验证码。",
266
+ codeLabel: "验证码",
267
+ codePlaceholder: "输入6位验证码",
268
+ verify: "验证",
269
+ cancel: "取消",
270
+ resend: "重新发送验证码"
228
271
  }
229
272
  },
230
273
  upload: {
231
274
  preview: "预览"
232
275
  },
233
276
  signature: {
234
- clearSignature: "清除签名",
235
277
  clickToAdd: "点击添加签名",
236
278
  dialogTitle: "签名",
237
279
  saveBefore: "请在关闭前保存您的签名",
@@ -256,10 +298,10 @@ const Ln = {
256
298
  {
257
299
  path: "/application/submission",
258
300
  name: "mf-financing-application-submission",
259
- component: () => import("./Submission-CvPbSLcw.js")
301
+ component: () => import("./Submission-lLcZsMOa.js")
260
302
  }
261
303
  ];
262
- bn({
304
+ In({
263
305
  history: wn(),
264
306
  routes: Bn
265
307
  });
@@ -315,7 +357,7 @@ const At = function(n) {
315
357
  i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
316
358
  }
317
359
  return e;
318
- }, $n = function(n) {
360
+ }, Vn = function(n) {
319
361
  const e = [];
320
362
  let t = 0, r = 0;
321
363
  for (; t < n.length; ) {
@@ -334,7 +376,7 @@ const At = function(n) {
334
376
  }
335
377
  }
336
378
  return e.join("");
337
- }, kt = {
379
+ }, Pt = {
338
380
  /**
339
381
  * Maps bytes to characters.
340
382
  */
@@ -419,7 +461,7 @@ const At = function(n) {
419
461
  * @return string representing the decoded value.
420
462
  */
421
463
  decodeString(n, e) {
422
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : $n(this.decodeStringToByteArray(n, e));
464
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Vn(this.decodeStringToByteArray(n, e));
423
465
  },
424
466
  /**
425
467
  * Base64-decode a string.
@@ -446,7 +488,7 @@ const At = function(n) {
446
488
  ++i;
447
489
  const f = i < n.length ? t[n.charAt(i)] : 64;
448
490
  if (++i, s == null || c == null || l == null || f == null)
449
- throw new Hn();
491
+ throw new $n();
450
492
  const m = s << 2 | c >> 4;
451
493
  if (r.push(m), l !== 64) {
452
494
  const v = c << 4 & 240 | l >> 2;
@@ -471,19 +513,19 @@ const At = function(n) {
471
513
  }
472
514
  }
473
515
  };
474
- class Hn extends Error {
516
+ class $n extends Error {
475
517
  constructor() {
476
518
  super(...arguments), this.name = "DecodeBase64StringError";
477
519
  }
478
520
  }
479
- const Vn = function(n) {
521
+ const Hn = function(n) {
480
522
  const e = At(n);
481
- return kt.encodeByteArray(e, !0);
523
+ return Pt.encodeByteArray(e, !0);
524
+ }, kt = function(n) {
525
+ return Hn(n).replace(/\./g, "");
482
526
  }, Ct = function(n) {
483
- return Vn(n).replace(/\./g, "");
484
- }, Rt = function(n) {
485
527
  try {
486
- return kt.decodeString(n, !0);
528
+ return Pt.decodeString(n, !0);
487
529
  } catch (e) {
488
530
  console.error("base64Decode failed: ", e);
489
531
  }
@@ -545,7 +587,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
545
587
  } catch {
546
588
  return;
547
589
  }
548
- const e = n && Rt(n[1]);
590
+ const e = n && Ct(n[1]);
549
591
  return e && JSON.parse(e);
550
592
  }, Be = () => {
551
593
  try {
@@ -557,7 +599,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
557
599
  }, qn = (n) => {
558
600
  var e, t;
559
601
  return (t = (e = Be()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
560
- }, Pt = () => {
602
+ }, Rt = () => {
561
603
  var n;
562
604
  return (n = Be()) === null || n === void 0 ? void 0 : n.config;
563
605
  }, Ot = (n) => {
@@ -1256,8 +1298,8 @@ function yr() {
1256
1298
  IDBCursor.prototype.continuePrimaryKey
1257
1299
  ]);
1258
1300
  }
1259
- const Dt = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
1260
- function Ir(n) {
1301
+ const Dt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
1302
+ function br(n) {
1261
1303
  const e = new Promise((t, r) => {
1262
1304
  const i = () => {
1263
1305
  n.removeEventListener("success", s), n.removeEventListener("error", o);
@@ -1273,8 +1315,8 @@ function Ir(n) {
1273
1315
  }).catch(() => {
1274
1316
  }), Fe.set(e, n), e;
1275
1317
  }
1276
- function br(n) {
1277
- if (Pe.has(n))
1318
+ function Ir(n) {
1319
+ if (Re.has(n))
1278
1320
  return;
1279
1321
  const e = new Promise((t, r) => {
1280
1322
  const i = () => {
@@ -1286,13 +1328,13 @@ function br(n) {
1286
1328
  };
1287
1329
  n.addEventListener("complete", s), n.addEventListener("error", o), n.addEventListener("abort", o);
1288
1330
  });
1289
- Pe.set(n, e);
1331
+ Re.set(n, e);
1290
1332
  }
1291
1333
  let Oe = {
1292
1334
  get(n, e, t) {
1293
1335
  if (n instanceof IDBTransaction) {
1294
1336
  if (e === "done")
1295
- return Pe.get(n);
1337
+ return Re.get(n);
1296
1338
  if (e === "objectStoreNames")
1297
1339
  return n.objectStoreNames || Lt.get(n);
1298
1340
  if (e === "store")
@@ -1321,11 +1363,11 @@ function Er(n) {
1321
1363
  };
1322
1364
  }
1323
1365
  function Tr(n) {
1324
- return typeof n == "function" ? Er(n) : (n instanceof IDBTransaction && br(n), _r(n, vr()) ? new Proxy(n, Oe) : n);
1366
+ return typeof n == "function" ? Er(n) : (n instanceof IDBTransaction && Ir(n), _r(n, vr()) ? new Proxy(n, Oe) : n);
1325
1367
  }
1326
1368
  function O(n) {
1327
1369
  if (n instanceof IDBRequest)
1328
- return Ir(n);
1370
+ return br(n);
1329
1371
  if (Te.has(n))
1330
1372
  return Te.get(n);
1331
1373
  const e = Tr(n);
@@ -1346,13 +1388,13 @@ function Sr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1346
1388
  }).catch(() => {
1347
1389
  }), c;
1348
1390
  }
1349
- const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], kr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1391
+ const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], Pr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1350
1392
  function rt(n, e) {
1351
1393
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1352
1394
  return;
1353
1395
  if (Ae.get(e))
1354
1396
  return Ae.get(e);
1355
- const t = e.replace(/FromIndex$/, ""), r = e !== t, i = kr.includes(t);
1397
+ const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Pr.includes(t);
1356
1398
  if (
1357
1399
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1358
1400
  !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Ar.includes(t))
@@ -1389,7 +1431,7 @@ wr((n) => ({
1389
1431
  * See the License for the specific language governing permissions and
1390
1432
  * limitations under the License.
1391
1433
  */
1392
- class Cr {
1434
+ class kr {
1393
1435
  constructor(e) {
1394
1436
  this.container = e;
1395
1437
  }
@@ -1397,7 +1439,7 @@ class Cr {
1397
1439
  // auth token refresh, and installations will send this string.
1398
1440
  getPlatformInfoString() {
1399
1441
  return this.container.getProviders().map((t) => {
1400
- if (Rr(t)) {
1442
+ if (Cr(t)) {
1401
1443
  const r = t.getImmediate();
1402
1444
  return `${r.library}/${r.version}`;
1403
1445
  } else
@@ -1405,7 +1447,7 @@ class Cr {
1405
1447
  }).filter((t) => t).join(" ");
1406
1448
  }
1407
1449
  }
1408
- function Rr(n) {
1450
+ function Cr(n) {
1409
1451
  const e = n.getComponent();
1410
1452
  return (e == null ? void 0 : e.type) === "VERSION";
1411
1453
  }
@@ -1426,7 +1468,7 @@ const Ne = "@firebase/app", it = "0.10.13";
1426
1468
  * See the License for the specific language governing permissions and
1427
1469
  * limitations under the License.
1428
1470
  */
1429
- const E = new Nt("@firebase/app"), Pr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", $r = "@firebase/functions", Hr = "@firebase/functions-compat", Vr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1471
+ const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", Vr = "@firebase/functions", $r = "@firebase/functions-compat", Hr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1430
1472
  /**
1431
1473
  * @license
1432
1474
  * Copyright 2019 Google LLC
@@ -1445,7 +1487,7 @@ const E = new Nt("@firebase/app"), Pr = "@firebase/app-compat", Or = "@firebase/
1445
1487
  */
1446
1488
  const De = "[DEFAULT]", ri = {
1447
1489
  [Ne]: "fire-core",
1448
- [Pr]: "fire-core-compat",
1490
+ [Rr]: "fire-core-compat",
1449
1491
  [Nr]: "fire-analytics",
1450
1492
  [Or]: "fire-analytics-compat",
1451
1493
  [Lr]: "fire-app-check",
@@ -1455,9 +1497,9 @@ const De = "[DEFAULT]", ri = {
1455
1497
  [xr]: "fire-rtdb",
1456
1498
  [Br]: "fire-data-connect",
1457
1499
  [Fr]: "fire-rtdb-compat",
1458
- [$r]: "fire-fn",
1459
- [Hr]: "fire-fn-compat",
1460
- [Vr]: "fire-iid",
1500
+ [Vr]: "fire-fn",
1501
+ [$r]: "fire-fn-compat",
1502
+ [Hr]: "fire-iid",
1461
1503
  [jr]: "fire-iid-compat",
1462
1504
  [Wr]: "fire-fcm",
1463
1505
  [zr]: "fire-fcm-compat",
@@ -1630,7 +1672,7 @@ function Ut(n, e = {}) {
1630
1672
  throw N.create("bad-app-name", {
1631
1673
  appName: String(i)
1632
1674
  });
1633
- if (t || (t = Pt()), !t)
1675
+ if (t || (t = Rt()), !t)
1634
1676
  throw N.create(
1635
1677
  "no-options"
1636
1678
  /* AppError.NO_OPTIONS */
@@ -1649,13 +1691,13 @@ function Ut(n, e = {}) {
1649
1691
  }
1650
1692
  function ai(n = De) {
1651
1693
  const e = le.get(n);
1652
- if (!e && n === De && Pt())
1694
+ if (!e && n === De && Rt())
1653
1695
  return Ut();
1654
1696
  if (!e)
1655
1697
  throw N.create("no-app", { appName: n });
1656
1698
  return e;
1657
1699
  }
1658
- function $(n, e, t) {
1700
+ function V(n, e, t) {
1659
1701
  var r;
1660
1702
  let i = (r = ri[n]) !== null && r !== void 0 ? r : n;
1661
1703
  t && (i += `-${t}`);
@@ -1691,9 +1733,9 @@ function $(n, e, t) {
1691
1733
  * limitations under the License.
1692
1734
  */
1693
1735
  const ci = "firebase-heartbeat-database", li = 1, J = "firebase-heartbeat-store";
1694
- let ke = null;
1736
+ let Pe = null;
1695
1737
  function xt() {
1696
- return ke || (ke = Sr(ci, li, {
1738
+ return Pe || (Pe = Sr(ci, li, {
1697
1739
  upgrade: (n, e) => {
1698
1740
  switch (e) {
1699
1741
  case 0:
@@ -1708,7 +1750,7 @@ function xt() {
1708
1750
  throw N.create("idb-open", {
1709
1751
  originalErrorMessage: n.message
1710
1752
  });
1711
- })), ke;
1753
+ })), Pe;
1712
1754
  }
1713
1755
  async function ui(n) {
1714
1756
  try {
@@ -1797,7 +1839,7 @@ class fi {
1797
1839
  try {
1798
1840
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
1799
1841
  return "";
1800
- const t = at(), { heartbeatsToSend: r, unsentEntries: i } = pi(this._heartbeatsCache.heartbeats), s = Ct(JSON.stringify({ version: 2, heartbeats: r }));
1842
+ const t = at(), { heartbeatsToSend: r, unsentEntries: i } = pi(this._heartbeatsCache.heartbeats), s = kt(JSON.stringify({ version: 2, heartbeats: r }));
1801
1843
  return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
1802
1844
  } catch (t) {
1803
1845
  return E.warn(t), "";
@@ -1877,7 +1919,7 @@ class mi {
1877
1919
  }
1878
1920
  }
1879
1921
  function ct(n) {
1880
- return Ct(
1922
+ return kt(
1881
1923
  // heartbeatsCache wrapper properties
1882
1924
  JSON.stringify({ version: 2, heartbeats: n })
1883
1925
  ).length;
@@ -1901,7 +1943,7 @@ function ct(n) {
1901
1943
  function gi(n) {
1902
1944
  K(new W(
1903
1945
  "platform-logger",
1904
- (e) => new Cr(e),
1946
+ (e) => new kr(e),
1905
1947
  "PRIVATE"
1906
1948
  /* ComponentType.PRIVATE */
1907
1949
  )), K(new W(
@@ -1909,7 +1951,7 @@ function gi(n) {
1909
1951
  (e) => new fi(e),
1910
1952
  "PRIVATE"
1911
1953
  /* ComponentType.PRIVATE */
1912
- )), $(Ne, it, n), $(Ne, it, "esm2017"), $("fire-js", "");
1954
+ )), V(Ne, it, n), V(Ne, it, "esm2017"), V("fire-js", "");
1913
1955
  }
1914
1956
  gi("");
1915
1957
  var _i = "firebase", vi = "10.14.1";
@@ -1929,8 +1971,8 @@ var _i = "firebase", vi = "10.14.1";
1929
1971
  * See the License for the specific language governing permissions and
1930
1972
  * limitations under the License.
1931
1973
  */
1932
- $(_i, vi, "app");
1933
- function $e(n, e) {
1974
+ V(_i, vi, "app");
1975
+ function Ve(n, e) {
1934
1976
  var t = {};
1935
1977
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
1936
1978
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1943,7 +1985,7 @@ function Ft() {
1943
1985
  "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."
1944
1986
  };
1945
1987
  }
1946
- const yi = Ft, $t = new X("auth", "Firebase", Ft());
1988
+ const yi = Ft, Vt = new X("auth", "Firebase", Ft());
1947
1989
  /**
1948
1990
  * @license
1949
1991
  * Copyright 2020 Google LLC
@@ -1961,7 +2003,7 @@ const yi = Ft, $t = new X("auth", "Firebase", Ft());
1961
2003
  * limitations under the License.
1962
2004
  */
1963
2005
  const ue = new Nt("@firebase/auth");
1964
- function Ii(n, ...e) {
2006
+ function bi(n, ...e) {
1965
2007
  ue.logLevel <= h.WARN && ue.warn(`Auth (${Z}): ${n}`, ...e);
1966
2008
  }
1967
2009
  function ie(n, ...e) {
@@ -1984,37 +2026,37 @@ function ie(n, ...e) {
1984
2026
  * limitations under the License.
1985
2027
  */
1986
2028
  function T(n, ...e) {
1987
- throw He(n, ...e);
2029
+ throw $e(n, ...e);
1988
2030
  }
1989
2031
  function g(n, ...e) {
1990
- return He(n, ...e);
2032
+ return $e(n, ...e);
1991
2033
  }
1992
- function Ht(n, e, t) {
2034
+ function $t(n, e, t) {
1993
2035
  const r = Object.assign(Object.assign({}, yi()), { [e]: t });
1994
2036
  return new X("auth", "Firebase", r).create(e, {
1995
2037
  appName: n.name
1996
2038
  });
1997
2039
  }
1998
2040
  function D(n) {
1999
- return Ht(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
2041
+ return $t(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
2000
2042
  }
2001
- function He(n, ...e) {
2043
+ function $e(n, ...e) {
2002
2044
  if (typeof n != "string") {
2003
2045
  const t = e[0], r = [...e.slice(1)];
2004
2046
  return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
2005
2047
  }
2006
- return $t.create(n, ...e);
2048
+ return Vt.create(n, ...e);
2007
2049
  }
2008
2050
  function u(n, e, ...t) {
2009
2051
  if (!n)
2010
- throw He(e, ...t);
2052
+ throw $e(e, ...t);
2011
2053
  }
2012
- function I(n) {
2054
+ function b(n) {
2013
2055
  const e = "INTERNAL ASSERTION FAILED: " + n;
2014
2056
  throw ie(e), new Error(e);
2015
2057
  }
2016
2058
  function S(n, e) {
2017
- n || I(e);
2059
+ n || b(e);
2018
2060
  }
2019
2061
  /**
2020
2062
  * @license
@@ -2036,7 +2078,7 @@ function Me() {
2036
2078
  var n;
2037
2079
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
2038
2080
  }
2039
- function bi() {
2081
+ function Ii() {
2040
2082
  return lt() === "http:" || lt() === "https:";
2041
2083
  }
2042
2084
  function lt() {
@@ -2065,7 +2107,7 @@ function wi() {
2065
2107
  // navigator.onLine behavior unless cordova-plugin-network-information is
2066
2108
  // installed which overwrites the native navigator.onLine value and
2067
2109
  // defines navigator.connection.
2068
- (bi() || Xn() || "connection" in navigator) ? navigator.onLine : !0;
2110
+ (Ii() || Xn() || "connection" in navigator) ? navigator.onLine : !0;
2069
2111
  }
2070
2112
  function Ei() {
2071
2113
  if (typeof navigator > "u")
@@ -2119,7 +2161,7 @@ class ee {
2119
2161
  * See the License for the specific language governing permissions and
2120
2162
  * limitations under the License.
2121
2163
  */
2122
- function Ve(n, e) {
2164
+ function He(n, e) {
2123
2165
  S(n.emulator, "Emulator should always be set here");
2124
2166
  const { url: t } = n.emulator;
2125
2167
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
@@ -2140,7 +2182,7 @@ function Ve(n, e) {
2140
2182
  * See the License for the specific language governing permissions and
2141
2183
  * limitations under the License.
2142
2184
  */
2143
- class Vt {
2185
+ class Ht {
2144
2186
  static initialize(e, t, r) {
2145
2187
  this.fetchImpl = e, t && (this.headersImpl = t), r && (this.responseImpl = r);
2146
2188
  }
@@ -2153,7 +2195,7 @@ class Vt {
2153
2195
  return globalThis.fetch;
2154
2196
  if (typeof fetch < "u")
2155
2197
  return fetch;
2156
- I("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2198
+ b("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2157
2199
  }
2158
2200
  static headers() {
2159
2201
  if (this.headersImpl)
@@ -2164,7 +2206,7 @@ class Vt {
2164
2206
  return globalThis.Headers;
2165
2207
  if (typeof Headers < "u")
2166
2208
  return Headers;
2167
- I("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2209
+ b("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2168
2210
  }
2169
2211
  static response() {
2170
2212
  if (this.responseImpl)
@@ -2175,7 +2217,7 @@ class Vt {
2175
2217
  return globalThis.Response;
2176
2218
  if (typeof Response < "u")
2177
2219
  return Response;
2178
- I("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2220
+ b("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2179
2221
  }
2180
2222
  }
2181
2223
  /**
@@ -2307,7 +2349,7 @@ async function G(n, e, t, r, i = {}) {
2307
2349
  method: e,
2308
2350
  headers: a
2309
2351
  }, s);
2310
- return Yn() || (l.referrerPolicy = "no-referrer"), Vt.fetch()(zt(n, n.config.apiHost, t, c), l);
2352
+ return Yn() || (l.referrerPolicy = "no-referrer"), Ht.fetch()(zt(n, n.config.apiHost, t, c), l);
2311
2353
  });
2312
2354
  }
2313
2355
  async function jt(n, e, t) {
@@ -2334,7 +2376,7 @@ async function jt(n, e, t) {
2334
2376
  throw re(n, "user-disabled", o);
2335
2377
  const d = r[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
2336
2378
  if (l)
2337
- throw Ht(n, d, l);
2379
+ throw $t(n, d, l);
2338
2380
  T(n, d);
2339
2381
  }
2340
2382
  } catch (i) {
@@ -2351,7 +2393,7 @@ async function Wt(n, e, t, r, i = {}) {
2351
2393
  }
2352
2394
  function zt(n, e, t, r) {
2353
2395
  const i = `${e}${t}?${r}`;
2354
- return n.config.emulator ? Ve(n.config, i) : `${n.config.apiScheme}://${i}`;
2396
+ return n.config.emulator ? He(n.config, i) : `${n.config.apiScheme}://${i}`;
2355
2397
  }
2356
2398
  class Ai {
2357
2399
  constructor(e) {
@@ -2391,7 +2433,7 @@ function re(n, e, t) {
2391
2433
  * See the License for the specific language governing permissions and
2392
2434
  * limitations under the License.
2393
2435
  */
2394
- async function ki(n, e) {
2436
+ async function Pi(n, e) {
2395
2437
  return G(n, "POST", "/v1/accounts:delete", e);
2396
2438
  }
2397
2439
  async function Gt(n, e) {
@@ -2422,7 +2464,7 @@ function q(n) {
2422
2464
  } catch {
2423
2465
  }
2424
2466
  }
2425
- async function Ci(n, e = !1) {
2467
+ async function ki(n, e = !1) {
2426
2468
  const t = z(n), r = await t.getIdToken(e), i = je(r);
2427
2469
  u(
2428
2470
  i && i.exp && i.auth_time && i.iat,
@@ -2434,14 +2476,14 @@ async function Ci(n, e = !1) {
2434
2476
  return {
2435
2477
  claims: i,
2436
2478
  token: r,
2437
- authTime: q(Ce(i.auth_time)),
2438
- issuedAtTime: q(Ce(i.iat)),
2439
- expirationTime: q(Ce(i.exp)),
2479
+ authTime: q(ke(i.auth_time)),
2480
+ issuedAtTime: q(ke(i.iat)),
2481
+ expirationTime: q(ke(i.exp)),
2440
2482
  signInProvider: o || null,
2441
2483
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2442
2484
  };
2443
2485
  }
2444
- function Ce(n) {
2486
+ function ke(n) {
2445
2487
  return Number(n) * 1e3;
2446
2488
  }
2447
2489
  function je(n) {
@@ -2449,7 +2491,7 @@ function je(n) {
2449
2491
  if (e === void 0 || t === void 0 || r === void 0)
2450
2492
  return ie("JWT malformed, contained fewer than 3 sections"), null;
2451
2493
  try {
2452
- const i = Rt(t);
2494
+ const i = Ct(t);
2453
2495
  return i ? JSON.parse(i) : (ie("Failed to decode base64 JWT payload"), null);
2454
2496
  } catch (i) {
2455
2497
  return ie("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
@@ -2493,10 +2535,10 @@ async function Y(n, e, t = !1) {
2493
2535
  try {
2494
2536
  return await e;
2495
2537
  } catch (r) {
2496
- throw r instanceof L && Ri(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2538
+ throw r instanceof L && Ci(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2497
2539
  }
2498
2540
  }
2499
- function Ri({ code: n }) {
2541
+ function Ci({ code: n }) {
2500
2542
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
2501
2543
  }
2502
2544
  /**
@@ -2515,7 +2557,7 @@ function Ri({ code: n }) {
2515
2557
  * See the License for the specific language governing permissions and
2516
2558
  * limitations under the License.
2517
2559
  */
2518
- class Pi {
2560
+ class Ri {
2519
2561
  constructor(e) {
2520
2562
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2521
2563
  }
@@ -2644,7 +2686,7 @@ function Ni(n, e) {
2644
2686
  }
2645
2687
  function qt(n) {
2646
2688
  return n.map((e) => {
2647
- var { providerId: t } = e, r = $e(e, ["providerId"]);
2689
+ var { providerId: t } = e, r = Ve(e, ["providerId"]);
2648
2690
  return {
2649
2691
  providerId: t,
2650
2692
  uid: r.rawId || "",
@@ -2680,7 +2722,7 @@ async function Di(n, e) {
2680
2722
  return c[
2681
2723
  "Content-Type"
2682
2724
  /* HttpHeader.CONTENT_TYPE */
2683
- ] = "application/x-www-form-urlencoded", Vt.fetch()(o, {
2725
+ ] = "application/x-www-form-urlencoded", Ht.fetch()(o, {
2684
2726
  method: "POST",
2685
2727
  headers: c,
2686
2728
  body: r
@@ -2711,7 +2753,7 @@ async function Li(n, e) {
2711
2753
  * See the License for the specific language governing permissions and
2712
2754
  * limitations under the License.
2713
2755
  */
2714
- class H {
2756
+ class $ {
2715
2757
  constructor() {
2716
2758
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
2717
2759
  }
@@ -2763,7 +2805,7 @@ class H {
2763
2805
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
2764
2806
  }
2765
2807
  static fromJSON(e, t) {
2766
- const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new H();
2808
+ const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new $();
2767
2809
  return r && (u(typeof r == "string", "internal-error", {
2768
2810
  appName: e
2769
2811
  }), o.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
@@ -2783,10 +2825,10 @@ class H {
2783
2825
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
2784
2826
  }
2785
2827
  _clone() {
2786
- return Object.assign(new H(), this.toJSON());
2828
+ return Object.assign(new $(), this.toJSON());
2787
2829
  }
2788
2830
  _performRefresh() {
2789
- return I("not implemented");
2831
+ return b("not implemented");
2790
2832
  }
2791
2833
  }
2792
2834
  /**
@@ -2808,10 +2850,10 @@ class H {
2808
2850
  function A(n, e) {
2809
2851
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
2810
2852
  }
2811
- class b {
2853
+ class I {
2812
2854
  constructor(e) {
2813
- var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
2814
- this.providerId = "firebase", this.proactiveRefresh = new Pi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
2855
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = Ve(e, ["uid", "auth", "stsTokenManager"]);
2856
+ this.providerId = "firebase", this.proactiveRefresh = new Ri(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
2815
2857
  }
2816
2858
  async getIdToken(e) {
2817
2859
  const t = await Y(this, this.stsTokenManager.getToken(this.auth, e));
@@ -2823,7 +2865,7 @@ class b {
2823
2865
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
2824
2866
  }
2825
2867
  getIdTokenResult(e) {
2826
- return Ci(this, e);
2868
+ return ki(this, e);
2827
2869
  }
2828
2870
  reload() {
2829
2871
  return Oi(this);
@@ -2837,7 +2879,7 @@ class b {
2837
2879
  ), 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));
2838
2880
  }
2839
2881
  _clone(e) {
2840
- const t = new b(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
2882
+ const t = new I(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
2841
2883
  return t.metadata._copy(this.metadata), t;
2842
2884
  }
2843
2885
  _onReload(e) {
@@ -2865,7 +2907,7 @@ class b {
2865
2907
  if (y(this.auth.app))
2866
2908
  return Promise.reject(D(this.auth));
2867
2909
  const e = await this.getIdToken();
2868
- return await Y(this, ki(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2910
+ return await Y(this, Pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2869
2911
  }
2870
2912
  toJSON() {
2871
2913
  return Object.assign(Object.assign({
@@ -2893,16 +2935,16 @@ class b {
2893
2935
  }
2894
2936
  static _fromJSON(e, t) {
2895
2937
  var r, i, s, o, c, a, l, d;
2896
- const f = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, Ke = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, ye = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Je = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, Ye = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: Ie, emailVerified: Xe, isAnonymous: Qe, providerData: be, stsTokenManager: Ze } = t;
2938
+ const f = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, Ke = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, ye = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Je = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, Ye = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: be, emailVerified: Xe, isAnonymous: Qe, providerData: Ie, stsTokenManager: Ze } = t;
2897
2939
  u(
2898
- Ie && Ze,
2940
+ be && Ze,
2899
2941
  e,
2900
2942
  "internal-error"
2901
2943
  /* AuthErrorCode.INTERNAL_ERROR */
2902
2944
  );
2903
- const yn = H.fromJSON(this.name, Ze);
2945
+ const yn = $.fromJSON(this.name, Ze);
2904
2946
  u(
2905
- typeof Ie == "string",
2947
+ typeof be == "string",
2906
2948
  e,
2907
2949
  "internal-error"
2908
2950
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -2917,8 +2959,8 @@ class b {
2917
2959
  "internal-error"
2918
2960
  /* AuthErrorCode.INTERNAL_ERROR */
2919
2961
  ), A(v, e.name), A(B, e.name), A(Ke, e.name), A(ye, e.name), A(Je, e.name), A(Ye, e.name);
2920
- const we = new b({
2921
- uid: Ie,
2962
+ const we = new I({
2963
+ uid: be,
2922
2964
  auth: e,
2923
2965
  email: m,
2924
2966
  emailVerified: Xe,
@@ -2931,7 +2973,7 @@ class b {
2931
2973
  createdAt: Je,
2932
2974
  lastLoginAt: Ye
2933
2975
  });
2934
- return be && Array.isArray(be) && (we.providerData = be.map((In) => Object.assign({}, In))), ye && (we._redirectEventId = ye), we;
2976
+ return Ie && Array.isArray(Ie) && (we.providerData = Ie.map((bn) => Object.assign({}, bn))), ye && (we._redirectEventId = ye), we;
2935
2977
  }
2936
2978
  /**
2937
2979
  * Initialize a User from an idToken server response
@@ -2939,9 +2981,9 @@ class b {
2939
2981
  * @param idTokenResponse
2940
2982
  */
2941
2983
  static async _fromIdTokenResponse(e, t, r = !1) {
2942
- const i = new H();
2984
+ const i = new $();
2943
2985
  i.updateFromServerResponse(t);
2944
- const s = new b({
2986
+ const s = new I({
2945
2987
  uid: t.localId,
2946
2988
  auth: e,
2947
2989
  stsTokenManager: i,
@@ -2961,9 +3003,9 @@ class b {
2961
3003
  "internal-error"
2962
3004
  /* AuthErrorCode.INTERNAL_ERROR */
2963
3005
  );
2964
- const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
3006
+ const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new $();
2965
3007
  c.updateFromIdToken(r);
2966
- const a = new b({
3008
+ const a = new I({
2967
3009
  uid: i.localId,
2968
3010
  auth: e,
2969
3011
  stsTokenManager: c,
@@ -3064,7 +3106,7 @@ const ht = Kt;
3064
3106
  function se(n, e, t) {
3065
3107
  return `firebase:${n}:${e}:${t}`;
3066
3108
  }
3067
- class V {
3109
+ class H {
3068
3110
  constructor(e, t, r) {
3069
3111
  this.persistence = e, this.auth = t, this.userKey = r;
3070
3112
  const { config: i, name: s } = this.auth;
@@ -3075,7 +3117,7 @@ class V {
3075
3117
  }
3076
3118
  async getCurrentUser() {
3077
3119
  const e = await this.persistence._get(this.fullUserKey);
3078
- return e ? b._fromJSON(this.auth, e) : null;
3120
+ return e ? I._fromJSON(this.auth, e) : null;
3079
3121
  }
3080
3122
  removeCurrentUser() {
3081
3123
  return this.persistence._remove(this.fullUserKey);
@@ -3095,7 +3137,7 @@ class V {
3095
3137
  }
3096
3138
  static async create(e, t, r = "authUser") {
3097
3139
  if (!t.length)
3098
- return new V(w(ht), e, r);
3140
+ return new H(w(ht), e, r);
3099
3141
  const i = (await Promise.all(t.map(async (l) => {
3100
3142
  if (await l._isAvailable())
3101
3143
  return l;
@@ -3107,20 +3149,20 @@ class V {
3107
3149
  try {
3108
3150
  const d = await l._get(o);
3109
3151
  if (d) {
3110
- const f = b._fromJSON(e, d);
3152
+ const f = I._fromJSON(e, d);
3111
3153
  l !== s && (c = f), s = l;
3112
3154
  break;
3113
3155
  }
3114
3156
  } catch {
3115
3157
  }
3116
3158
  const a = i.filter((l) => l._shouldAllowMigration);
3117
- return !s._shouldAllowMigration || !a.length ? new V(s, e, r) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
3159
+ return !s._shouldAllowMigration || !a.length ? new H(s, e, r) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
3118
3160
  if (l !== s)
3119
3161
  try {
3120
3162
  await l._remove(o);
3121
3163
  } catch {
3122
3164
  }
3123
- })), new V(s, e, r));
3165
+ })), new H(s, e, r));
3124
3166
  }
3125
3167
  }
3126
3168
  /**
@@ -3327,7 +3369,7 @@ async function Bi(n, e = {}) {
3327
3369
  * limitations under the License.
3328
3370
  */
3329
3371
  const Fi = 6;
3330
- class $i {
3372
+ class Vi {
3331
3373
  constructor(e) {
3332
3374
  var t, r, i, s;
3333
3375
  const o = e.customStrengthOptions;
@@ -3414,14 +3456,14 @@ class $i {
3414
3456
  * See the License for the specific language governing permissions and
3415
3457
  * limitations under the License.
3416
3458
  */
3417
- class Hi {
3459
+ class $i {
3418
3460
  constructor(e, t, r, i) {
3419
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(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 = i.sdkClientVersion;
3461
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(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 = Vt, 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 = i.sdkClientVersion;
3420
3462
  }
3421
3463
  _initializeWithPersistence(e, t) {
3422
3464
  return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
3423
3465
  var r, i;
3424
- if (!this._deleted && (this.persistenceManager = await V.create(this, e), !this._deleted)) {
3466
+ if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
3425
3467
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
3426
3468
  try {
3427
3469
  await this._popupRedirectResolver._initialize(this);
@@ -3452,7 +3494,7 @@ class Hi {
3452
3494
  }
3453
3495
  async initializeCurrentUserFromIdToken(e) {
3454
3496
  try {
3455
- const t = await Gt(this, { idToken: e }), r = await b._fromGetAccountInfoResponse(this, t, e);
3497
+ const t = await Gt(this, { idToken: e }), r = await I._fromGetAccountInfoResponse(this, t, e);
3456
3498
  await this.directlySetCurrentUser(r);
3457
3499
  } catch (t) {
3458
3500
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -3561,7 +3603,7 @@ class Hi {
3561
3603
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3562
3604
  }
3563
3605
  async _updatePasswordPolicy() {
3564
- const e = await Bi(this), t = new $i(e);
3606
+ const e = await Bi(this), t = new Vi(e);
3565
3607
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3566
3608
  }
3567
3609
  _getPersistence() {
@@ -3625,7 +3667,7 @@ class Hi {
3625
3667
  this,
3626
3668
  "argument-error"
3627
3669
  /* AuthErrorCode.ARGUMENT_ERROR */
3628
- ), this.redirectPersistenceManager = await V.create(
3670
+ ), this.redirectPersistenceManager = await H.create(
3629
3671
  this,
3630
3672
  [w(t._redirectPersistence)],
3631
3673
  "redirectUser"
@@ -3744,7 +3786,7 @@ class Hi {
3744
3786
  async _getAppCheckToken() {
3745
3787
  var e;
3746
3788
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
3747
- return t != null && t.error && Ii(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
3789
+ return t != null && t.error && bi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
3748
3790
  }
3749
3791
  }
3750
3792
  function ge(n) {
@@ -3787,7 +3829,7 @@ let ze = {
3787
3829
  recaptchaEnterpriseScript: "",
3788
3830
  gapiScript: ""
3789
3831
  };
3790
- function Vi(n) {
3832
+ function Hi(n) {
3791
3833
  ze = n;
3792
3834
  }
3793
3835
  function ji(n) {
@@ -3911,19 +3953,19 @@ class on {
3911
3953
  * @returns a JSON-serializable representation of this object.
3912
3954
  */
3913
3955
  toJSON() {
3914
- return I("not implemented");
3956
+ return b("not implemented");
3915
3957
  }
3916
3958
  /** @internal */
3917
3959
  _getIdTokenResponse(e) {
3918
- return I("not implemented");
3960
+ return b("not implemented");
3919
3961
  }
3920
3962
  /** @internal */
3921
3963
  _linkToIdToken(e, t) {
3922
- return I("not implemented");
3964
+ return b("not implemented");
3923
3965
  }
3924
3966
  /** @internal */
3925
3967
  _getReauthenticationResolver(e) {
3926
- return I("not implemented");
3968
+ return b("not implemented");
3927
3969
  }
3928
3970
  }
3929
3971
  /**
@@ -3996,7 +4038,7 @@ class U extends on {
3996
4038
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
3997
4039
  */
3998
4040
  static fromJSON(e) {
3999
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
4041
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ve(t, ["providerId", "signInMethod"]);
4000
4042
  if (!r || !i)
4001
4043
  return null;
4002
4044
  const o = new U(r, i);
@@ -4135,7 +4177,7 @@ class te extends an {
4135
4177
  * See the License for the specific language governing permissions and
4136
4178
  * limitations under the License.
4137
4179
  */
4138
- class k extends te {
4180
+ class P extends te {
4139
4181
  constructor() {
4140
4182
  super(
4141
4183
  "facebook.com"
@@ -4156,8 +4198,8 @@ class k extends te {
4156
4198
  */
4157
4199
  static credential(e) {
4158
4200
  return U._fromParams({
4159
- providerId: k.PROVIDER_ID,
4160
- signInMethod: k.FACEBOOK_SIGN_IN_METHOD,
4201
+ providerId: P.PROVIDER_ID,
4202
+ signInMethod: P.FACEBOOK_SIGN_IN_METHOD,
4161
4203
  accessToken: e
4162
4204
  });
4163
4205
  }
@@ -4167,7 +4209,7 @@ class k extends te {
4167
4209
  * @param userCredential - The user credential.
4168
4210
  */
4169
4211
  static credentialFromResult(e) {
4170
- return k.credentialFromTaggedObject(e);
4212
+ return P.credentialFromTaggedObject(e);
4171
4213
  }
4172
4214
  /**
4173
4215
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4176,20 +4218,20 @@ class k extends te {
4176
4218
  * @param userCredential - The user credential.
4177
4219
  */
4178
4220
  static credentialFromError(e) {
4179
- return k.credentialFromTaggedObject(e.customData || {});
4221
+ return P.credentialFromTaggedObject(e.customData || {});
4180
4222
  }
4181
4223
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4182
4224
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4183
4225
  return null;
4184
4226
  try {
4185
- return k.credential(e.oauthAccessToken);
4227
+ return P.credential(e.oauthAccessToken);
4186
4228
  } catch {
4187
4229
  return null;
4188
4230
  }
4189
4231
  }
4190
4232
  }
4191
- k.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4192
- k.PROVIDER_ID = "facebook.com";
4233
+ P.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4234
+ P.PROVIDER_ID = "facebook.com";
4193
4235
  /**
4194
4236
  * @license
4195
4237
  * Copyright 2020 Google LLC
@@ -4206,7 +4248,7 @@ k.PROVIDER_ID = "facebook.com";
4206
4248
  * See the License for the specific language governing permissions and
4207
4249
  * limitations under the License.
4208
4250
  */
4209
- class C extends te {
4251
+ class k extends te {
4210
4252
  constructor() {
4211
4253
  super(
4212
4254
  "google.com"
@@ -4228,8 +4270,8 @@ class C extends te {
4228
4270
  */
4229
4271
  static credential(e, t) {
4230
4272
  return U._fromParams({
4231
- providerId: C.PROVIDER_ID,
4232
- signInMethod: C.GOOGLE_SIGN_IN_METHOD,
4273
+ providerId: k.PROVIDER_ID,
4274
+ signInMethod: k.GOOGLE_SIGN_IN_METHOD,
4233
4275
  idToken: e,
4234
4276
  accessToken: t
4235
4277
  });
@@ -4240,7 +4282,7 @@ class C extends te {
4240
4282
  * @param userCredential - The user credential.
4241
4283
  */
4242
4284
  static credentialFromResult(e) {
4243
- return C.credentialFromTaggedObject(e);
4285
+ return k.credentialFromTaggedObject(e);
4244
4286
  }
4245
4287
  /**
4246
4288
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4249,7 +4291,7 @@ class C extends te {
4249
4291
  * @param userCredential - The user credential.
4250
4292
  */
4251
4293
  static credentialFromError(e) {
4252
- return C.credentialFromTaggedObject(e.customData || {});
4294
+ return k.credentialFromTaggedObject(e.customData || {});
4253
4295
  }
4254
4296
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4255
4297
  if (!e)
@@ -4258,14 +4300,14 @@ class C extends te {
4258
4300
  if (!t && !r)
4259
4301
  return null;
4260
4302
  try {
4261
- return C.credential(t, r);
4303
+ return k.credential(t, r);
4262
4304
  } catch {
4263
4305
  return null;
4264
4306
  }
4265
4307
  }
4266
4308
  }
4267
- C.GOOGLE_SIGN_IN_METHOD = "google.com";
4268
- C.PROVIDER_ID = "google.com";
4309
+ k.GOOGLE_SIGN_IN_METHOD = "google.com";
4310
+ k.PROVIDER_ID = "google.com";
4269
4311
  /**
4270
4312
  * @license
4271
4313
  * Copyright 2020 Google LLC
@@ -4282,7 +4324,7 @@ C.PROVIDER_ID = "google.com";
4282
4324
  * See the License for the specific language governing permissions and
4283
4325
  * limitations under the License.
4284
4326
  */
4285
- class R extends te {
4327
+ class C extends te {
4286
4328
  constructor() {
4287
4329
  super(
4288
4330
  "github.com"
@@ -4296,8 +4338,8 @@ class R extends te {
4296
4338
  */
4297
4339
  static credential(e) {
4298
4340
  return U._fromParams({
4299
- providerId: R.PROVIDER_ID,
4300
- signInMethod: R.GITHUB_SIGN_IN_METHOD,
4341
+ providerId: C.PROVIDER_ID,
4342
+ signInMethod: C.GITHUB_SIGN_IN_METHOD,
4301
4343
  accessToken: e
4302
4344
  });
4303
4345
  }
@@ -4307,7 +4349,7 @@ class R extends te {
4307
4349
  * @param userCredential - The user credential.
4308
4350
  */
4309
4351
  static credentialFromResult(e) {
4310
- return R.credentialFromTaggedObject(e);
4352
+ return C.credentialFromTaggedObject(e);
4311
4353
  }
4312
4354
  /**
4313
4355
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4316,20 +4358,20 @@ class R extends te {
4316
4358
  * @param userCredential - The user credential.
4317
4359
  */
4318
4360
  static credentialFromError(e) {
4319
- return R.credentialFromTaggedObject(e.customData || {});
4361
+ return C.credentialFromTaggedObject(e.customData || {});
4320
4362
  }
4321
4363
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4322
4364
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4323
4365
  return null;
4324
4366
  try {
4325
- return R.credential(e.oauthAccessToken);
4367
+ return C.credential(e.oauthAccessToken);
4326
4368
  } catch {
4327
4369
  return null;
4328
4370
  }
4329
4371
  }
4330
4372
  }
4331
- R.GITHUB_SIGN_IN_METHOD = "github.com";
4332
- R.PROVIDER_ID = "github.com";
4373
+ C.GITHUB_SIGN_IN_METHOD = "github.com";
4374
+ C.PROVIDER_ID = "github.com";
4333
4375
  /**
4334
4376
  * @license
4335
4377
  * Copyright 2020 Google LLC
@@ -4346,7 +4388,7 @@ R.PROVIDER_ID = "github.com";
4346
4388
  * See the License for the specific language governing permissions and
4347
4389
  * limitations under the License.
4348
4390
  */
4349
- class P extends te {
4391
+ class R extends te {
4350
4392
  constructor() {
4351
4393
  super(
4352
4394
  "twitter.com"
@@ -4361,8 +4403,8 @@ class P extends te {
4361
4403
  */
4362
4404
  static credential(e, t) {
4363
4405
  return U._fromParams({
4364
- providerId: P.PROVIDER_ID,
4365
- signInMethod: P.TWITTER_SIGN_IN_METHOD,
4406
+ providerId: R.PROVIDER_ID,
4407
+ signInMethod: R.TWITTER_SIGN_IN_METHOD,
4366
4408
  oauthToken: e,
4367
4409
  oauthTokenSecret: t
4368
4410
  });
@@ -4373,7 +4415,7 @@ class P extends te {
4373
4415
  * @param userCredential - The user credential.
4374
4416
  */
4375
4417
  static credentialFromResult(e) {
4376
- return P.credentialFromTaggedObject(e);
4418
+ return R.credentialFromTaggedObject(e);
4377
4419
  }
4378
4420
  /**
4379
4421
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4382,7 +4424,7 @@ class P extends te {
4382
4424
  * @param userCredential - The user credential.
4383
4425
  */
4384
4426
  static credentialFromError(e) {
4385
- return P.credentialFromTaggedObject(e.customData || {});
4427
+ return R.credentialFromTaggedObject(e.customData || {});
4386
4428
  }
4387
4429
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4388
4430
  if (!e)
@@ -4391,14 +4433,14 @@ class P extends te {
4391
4433
  if (!t || !r)
4392
4434
  return null;
4393
4435
  try {
4394
- return P.credential(t, r);
4436
+ return R.credential(t, r);
4395
4437
  } catch {
4396
4438
  return null;
4397
4439
  }
4398
4440
  }
4399
4441
  }
4400
- P.TWITTER_SIGN_IN_METHOD = "twitter.com";
4401
- P.PROVIDER_ID = "twitter.com";
4442
+ R.TWITTER_SIGN_IN_METHOD = "twitter.com";
4443
+ R.PROVIDER_ID = "twitter.com";
4402
4444
  /**
4403
4445
  * @license
4404
4446
  * Copyright 2020 Google LLC
@@ -4420,7 +4462,7 @@ class x {
4420
4462
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
4421
4463
  }
4422
4464
  static async _fromIdTokenResponse(e, t, r, i = !1) {
4423
- const s = await b._fromIdTokenResponse(e, r, i), o = gt(r);
4465
+ const s = await I._fromIdTokenResponse(e, r, i), o = gt(r);
4424
4466
  return new x({
4425
4467
  user: s,
4426
4468
  providerId: o,
@@ -5310,7 +5352,7 @@ new ee(3e4, 6e4);
5310
5352
  * See the License for the specific language governing permissions and
5311
5353
  * limitations under the License.
5312
5354
  */
5313
- function Is(n, e) {
5355
+ function bs(n, e) {
5314
5356
  return e ? w(e) : (u(
5315
5357
  n._popupRedirectResolver,
5316
5358
  n,
@@ -5364,7 +5406,7 @@ class qe extends on {
5364
5406
  return e && (t.idToken = e), t;
5365
5407
  }
5366
5408
  }
5367
- function bs(n) {
5409
+ function Is(n) {
5368
5410
  return es(n.auth, new qe(n), n.bypassAuthState);
5369
5411
  }
5370
5412
  function ws(n) {
@@ -5443,7 +5485,7 @@ class _n {
5443
5485
  switch (e) {
5444
5486
  case "signInViaPopup":
5445
5487
  case "signInViaRedirect":
5446
- return bs;
5488
+ return Is;
5447
5489
  case "linkViaPopup":
5448
5490
  case "linkViaRedirect":
5449
5491
  return Es;
@@ -5589,7 +5631,7 @@ class As extends _n {
5589
5631
  let e = oe.get(this.auth._key());
5590
5632
  if (!e) {
5591
5633
  try {
5592
- const r = await ks(this.resolver, this.auth) ? await super.execute() : null;
5634
+ const r = await Ps(this.resolver, this.auth) ? await super.execute() : null;
5593
5635
  e = () => Promise.resolve(r);
5594
5636
  } catch (t) {
5595
5637
  e = () => Promise.reject(t);
@@ -5617,26 +5659,26 @@ class As extends _n {
5617
5659
  cleanUp() {
5618
5660
  }
5619
5661
  }
5620
- async function ks(n, e) {
5621
- const t = Ps(e), r = Rs(n);
5662
+ async function Ps(n, e) {
5663
+ const t = Rs(e), r = Cs(n);
5622
5664
  if (!await r._isAvailable())
5623
5665
  return !1;
5624
5666
  const i = await r._get(t) === "true";
5625
5667
  return await r._remove(t), i;
5626
5668
  }
5627
- function Cs(n, e) {
5669
+ function ks(n, e) {
5628
5670
  oe.set(n._key(), e);
5629
5671
  }
5630
- function Rs(n) {
5672
+ function Cs(n) {
5631
5673
  return w(n._redirectPersistence);
5632
5674
  }
5633
- function Ps(n) {
5675
+ function Rs(n) {
5634
5676
  return se(Ss, n.config.apiKey, n.name);
5635
5677
  }
5636
5678
  async function Os(n, e, t = !1) {
5637
5679
  if (y(n.app))
5638
5680
  return Promise.reject(D(n));
5639
- const r = ge(n), i = Is(r, e), o = await new As(r, i, t).execute();
5681
+ const r = ge(n), i = bs(r, e), o = await new As(r, i, t).execute();
5640
5682
  return o && !t && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
5641
5683
  }
5642
5684
  /**
@@ -5792,8 +5834,8 @@ function Fs(n) {
5792
5834
  * See the License for the specific language governing permissions and
5793
5835
  * limitations under the License.
5794
5836
  */
5795
- const $s = new ee(3e4, 6e4);
5796
- function It() {
5837
+ const Vs = new ee(3e4, 6e4);
5838
+ function bt() {
5797
5839
  const n = _().___jsl;
5798
5840
  if (n != null && n.H) {
5799
5841
  for (const e of Object.keys(n.H))
@@ -5802,22 +5844,22 @@ function It() {
5802
5844
  n.CP[t] = null;
5803
5845
  }
5804
5846
  }
5805
- function Hs(n) {
5847
+ function $s(n) {
5806
5848
  return new Promise((e, t) => {
5807
5849
  var r, i, s;
5808
5850
  function o() {
5809
- It(), gapi.load("gapi.iframes", {
5851
+ bt(), gapi.load("gapi.iframes", {
5810
5852
  callback: () => {
5811
5853
  e(gapi.iframes.getContext());
5812
5854
  },
5813
5855
  ontimeout: () => {
5814
- It(), t(g(
5856
+ bt(), t(g(
5815
5857
  n,
5816
5858
  "network-request-failed"
5817
5859
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5818
5860
  ));
5819
5861
  },
5820
- timeout: $s.get()
5862
+ timeout: Vs.get()
5821
5863
  });
5822
5864
  }
5823
5865
  if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
@@ -5839,8 +5881,8 @@ function Hs(n) {
5839
5881
  });
5840
5882
  }
5841
5883
  let ae = null;
5842
- function Vs(n) {
5843
- return ae = ae || Hs(n), ae;
5884
+ function Hs(n) {
5885
+ return ae = ae || $s(n), ae;
5844
5886
  }
5845
5887
  /**
5846
5888
  * @license
@@ -5881,7 +5923,7 @@ function Ks(n) {
5881
5923
  "auth-domain-config-required"
5882
5924
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
5883
5925
  );
5884
- const t = e.emulator ? Ve(e, zs) : `https://${n.config.authDomain}/${Ws}`, r = {
5926
+ const t = e.emulator ? He(e, zs) : `https://${n.config.authDomain}/${Ws}`, r = {
5885
5927
  apiKey: e.apiKey,
5886
5928
  appName: n.name,
5887
5929
  v: Z
@@ -5891,7 +5933,7 @@ function Ks(n) {
5891
5933
  return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
5892
5934
  }
5893
5935
  async function Js(n) {
5894
- const e = await Vs(n), t = _().gapi;
5936
+ const e = await Hs(n), t = _().gapi;
5895
5937
  return u(
5896
5938
  t,
5897
5939
  n,
@@ -5945,7 +5987,7 @@ const Ys = {
5945
5987
  statusbar: "yes",
5946
5988
  toolbar: "no"
5947
5989
  }, Xs = 500, Qs = 600, Zs = "_blank", eo = "http://localhost";
5948
- class bt {
5990
+ class It {
5949
5991
  constructor(e) {
5950
5992
  this.window = e, this.associatedEvent = null;
5951
5993
  }
@@ -5969,7 +6011,7 @@ function to(n, e, t, r = Xs, i = Qs) {
5969
6011
  t && (c = Xt(l) ? Zs : t), Jt(l) && (e = e || eo, a.scrollbars = "yes");
5970
6012
  const d = Object.entries(a).reduce((m, [v, B]) => `${m}${v}=${B},`, "");
5971
6013
  if (Mi(l) && c !== "_self")
5972
- return no(e || "", c), new bt(null);
6014
+ return no(e || "", c), new It(null);
5973
6015
  const f = window.open(e || "", c, d);
5974
6016
  u(
5975
6017
  f,
@@ -5981,7 +6023,7 @@ function to(n, e, t, r = Xs, i = Qs) {
5981
6023
  f.focus();
5982
6024
  } catch {
5983
6025
  }
5984
- return new bt(f);
6026
+ return new It(f);
5985
6027
  }
5986
6028
  function no(n, e) {
5987
6029
  const t = document.createElement("a");
@@ -6043,7 +6085,7 @@ async function wt(n, e, t, r, i, s) {
6043
6085
  return `${oo(n)}?${Q(c).slice(1)}${l}`;
6044
6086
  }
6045
6087
  function oo({ config: n }) {
6046
- return n.emulator ? Ve(n, io) : `https://${n.authDomain}/${ro}`;
6088
+ return n.emulator ? He(n, io) : `https://${n.authDomain}/${ro}`;
6047
6089
  }
6048
6090
  /**
6049
6091
  * @license
@@ -6061,10 +6103,10 @@ function oo({ config: n }) {
6061
6103
  * See the License for the specific language governing permissions and
6062
6104
  * limitations under the License.
6063
6105
  */
6064
- const Re = "webStorageSupport";
6106
+ const Ce = "webStorageSupport";
6065
6107
  class ao {
6066
6108
  constructor() {
6067
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = Cs;
6109
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = ks;
6068
6110
  }
6069
6111
  // Wrapping in async even though we don't await anywhere in order
6070
6112
  // to make sure errors are raised as promise rejections
@@ -6104,9 +6146,9 @@ class ao {
6104
6146
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
6105
6147
  }
6106
6148
  _isIframeWebStorageSupported(e, t) {
6107
- this.iframes[e._key()].send(Re, { type: Re }, (i) => {
6149
+ this.iframes[e._key()].send(Ce, { type: Ce }, (i) => {
6108
6150
  var s;
6109
- const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Re];
6151
+ const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ce];
6110
6152
  o !== void 0 && t(!!o), T(
6111
6153
  e,
6112
6154
  "internal-error"
@@ -6221,7 +6263,7 @@ function ho(n) {
6221
6263
  tokenApiHost: "securetoken.googleapis.com",
6222
6264
  apiScheme: "https",
6223
6265
  sdkClientVersion: rn(n)
6224
- }, l = new Hi(r, i, s, a);
6266
+ }, l = new $i(r, i, s, a);
6225
6267
  return qi(l, t), l;
6226
6268
  },
6227
6269
  "PUBLIC"
@@ -6248,7 +6290,7 @@ function ho(n) {
6248
6290
  ).setInstantiationMode(
6249
6291
  "EXPLICIT"
6250
6292
  /* InstantiationMode.EXPLICIT */
6251
- )), $(Et, Tt, uo(n)), $(Et, Tt, "esm2017");
6293
+ )), V(Et, Tt, uo(n)), V(Et, Tt, "esm2017");
6252
6294
  }
6253
6295
  /**
6254
6296
  * @license
@@ -6306,7 +6348,7 @@ function _o() {
6306
6348
  var n, e;
6307
6349
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
6308
6350
  }
6309
- Vi({
6351
+ Hi({
6310
6352
  loadJS(n) {
6311
6353
  return new Promise((e, t) => {
6312
6354
  const r = document.createElement("script");
@@ -6338,11 +6380,11 @@ const Eo = /* @__PURE__ */ Sn({
6338
6380
  const c = await o.getCustomToken(), a = go(i);
6339
6381
  await ns(a, c);
6340
6382
  }
6341
- return s(), An(e.sessionUser, s), kn(() => {
6383
+ return s(), An(e.sessionUser, s), Pn(() => {
6342
6384
  t.isIframe && parent.postMessage({ event: "ready" }, "*");
6343
6385
  }), (o, c) => {
6344
- const a = Cn("RouterView");
6345
- return Rn(), Pn(a, {
6386
+ const a = kn("RouterView");
6387
+ return Cn(), Rn(a, {
6346
6388
  key: On(r).path
6347
6389
  });
6348
6390
  };