@feedmepos/mf-payment 1.7.20-dev → 1.7.21

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 (48) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DIsaxbwq.js → Actions.vue_vue_type_script_setup_true_lang-CX1_lQSw.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-k8n02EsD.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BeMe0eWN.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BHhM1iTr.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DfYsAAaC.js} +2 -2
  4. package/dist/{Chargeback-D5GSAz8R.js → Chargeback-xwB_glv5.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DcnhF6ZR.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CrvzKQgC.js} +1 -1
  6. package/dist/{OnboardForm-BV8pty81.js → OnboardForm-DKhsjm3n.js} +199 -192
  7. package/dist/{OnboardForm-DgXsHzkT.js → OnboardForm-F2Qcvalp.js} +116 -116
  8. package/dist/{OnboardSubmission-D4VMYp5S.js → OnboardSubmission-0hfx_f8i.js} +3 -3
  9. package/dist/{OnboardSubmission-Dmp0SRgJ.js → OnboardSubmission-D2ebcVnG.js} +6 -6
  10. package/dist/{PayoutAccount-B7JR-Xfq.js → PayoutAccount-CIek2Qnh.js} +5 -5
  11. package/dist/{PayoutAccount-CLhPVMfM.js → PayoutAccount-Dw-_pf4z.js} +7 -7
  12. package/dist/{PayoutAccountSetting-Dk9EjE9I.js → PayoutAccountSetting-DSk8ZV9p.js} +6 -6
  13. package/dist/{Restaurant-DmTUlWEO.js → Restaurant-Bdike4SW.js} +4 -4
  14. package/dist/{RestaurantSetting-Bxmlhv1B.js → RestaurantSetting-DSDzRmgE.js} +3 -3
  15. package/dist/{Settlement-lhxgz-XH.js → Settlement-BEhvMZje.js} +4 -4
  16. package/dist/{Settlement-BaV2FYPZ.js → Settlement-Cw6JGHxU.js} +3 -3
  17. package/dist/{SettlementTransactions-BisVOkrF.js → SettlementTransactions-BlRbAo_K.js} +5 -5
  18. package/dist/{SettlementTransactions-ghbnNfB_.js → SettlementTransactions-yczyKInV.js} +23 -19
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-Qf0c8MTy.js → Status.vue_vue_type_script_setup_true_lang-sobv3LfF.js} +1 -1
  20. package/dist/{Terminal-0muJMA4c.js → Terminal-BwHi929R.js} +5 -5
  21. package/dist/{TerminalSetting-c2nPEMu9.js → TerminalSetting-ZA-ADJVD.js} +5 -5
  22. package/dist/{Transaction-BN5dWn9J.js → Transaction-BvvdK0go.js} +180 -175
  23. package/dist/{Transaction-BDprmXf5.js → Transaction-DqwB7HTI.js} +10 -10
  24. package/dist/{TransactionOld-BWlQdV2t.js → TransactionOld-B0fQrQ7W.js} +7 -7
  25. package/dist/TransactionStatus.vue_vue_type_script_setup_true_lang-KpyoB07o.js +90 -0
  26. package/dist/{app-CcAt9drb.js → app-v4m_QvHC.js} +355 -361
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-BJc1BoVy.js → assets-xspGnWqt.js} +1 -1
  29. package/dist/{grafana-CIgq9UAr.js → grafana-By90eHTE.js} +1 -1
  30. package/dist/{index-DLFXt7nw.js → index-B-1dMDti.js} +1 -1
  31. package/dist/{index-vhoyKTN7.js → index-BO4m11-f.js} +1 -1
  32. package/dist/{index-DdoMxz3d.js → index-Bm1fndT6.js} +1 -1
  33. package/dist/{index-CNwBwTac.js → index-CMIKOUH0.js} +1 -1
  34. package/dist/{index-BzMH21qt.js → index-COhy5Sra.js} +1 -1
  35. package/dist/{index-9k1h4bB6.js → index-ClZtCkMC.js} +1 -1
  36. package/dist/{index-DhTaS0co.js → index-CnoeFPh3.js} +1 -1
  37. package/dist/{index-DLcuXAcB.js → index-D3G27Mr4.js} +2 -2
  38. package/dist/{index-oROQu9nF.js → index-DQ81tv1s.js} +1 -1
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-CjVwzVhE.js → index.vue_vue_type_script_setup_true_lang-FjfVgwqj.js} +1 -1
  40. package/dist/model/transaction.d.ts +1 -0
  41. package/dist/{onboard-submission-BLWMIf12.js → onboard-submission-dp_mz2J_.js} +1 -1
  42. package/dist/package.json +2 -2
  43. package/dist/{payout-account-M7TdqeaF.js → payout-account-Dz18wMnQ.js} +3 -3
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
  46. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +1 -0
  47. package/package.json +1 -1
  48. package/dist/TransactionStatus.vue_vue_type_script_setup_true_lang-BA8LuWC7.js +0 -89
@@ -3,7 +3,7 @@ var rr = (t) => {
3
3
  };
4
4
  var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
5
5
  var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
6
- var xt = (t, e, n, r) => ({
6
+ var Vt = (t, e, n, r) => ({
7
7
  set _(s) {
8
8
  D(t, e, s, n);
9
9
  },
@@ -12,9 +12,9 @@ var xt = (t, e, n, r) => ({
12
12
  }
13
13
  });
14
14
  import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
15
- import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
15
+ import { isRef as qn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as wn, defineComponent as en, unref as ge, openBlock as tn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
16
16
  import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
17
- import { useCoreStore as rn, useI18n as ns } from "@feedmepos/mf-common";
17
+ import { useCoreStore as nn, useI18n as ns } from "@feedmepos/mf-common";
18
18
  import { defineStore as $i } from "pinia";
19
19
  import { components as ea } from "@feedmepos/ui-library";
20
20
  const ta = {
@@ -83,6 +83,7 @@ const ta = {
83
83
  feedme: {
84
84
  id: "Transaction ID",
85
85
  pay_id: "Pay ID",
86
+ bill_no: "Bill No",
86
87
  gateway: "Gateway",
87
88
  method: "Method",
88
89
  status: "Status",
@@ -489,6 +490,7 @@ const ta = {
489
490
  feedme: {
490
491
  id: "รหัสธุรกรรม",
491
492
  pay_id: "รหัสการชำระเงิน",
493
+ bill_no: "เลขที่บิล",
492
494
  gateway: "เกตเวย์",
493
495
  method: "วิธีการชำระเงิน",
494
496
  status: "สถานะ",
@@ -893,6 +895,7 @@ const ta = {
893
895
  feedme: {
894
896
  id: "交易ID",
895
897
  pay_id: "订单ID",
898
+ bill_no: "账单编号",
896
899
  gateway: "支付网关",
897
900
  method: "支付方法",
898
901
  status: "状态",
@@ -1246,28 +1249,28 @@ function ca(t, e, n) {
1246
1249
  evaluating: i = void 0,
1247
1250
  shallow: a = !0,
1248
1251
  onError: c = oa
1249
- } = r, l = St(!s), A = a ? Ni(e) : St(e);
1252
+ } = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
1250
1253
  let f = 0;
1251
1254
  return Hi(async (p) => {
1252
1255
  if (!l.value)
1253
1256
  return;
1254
1257
  f++;
1255
1258
  const B = f;
1256
- let w = !1;
1259
+ let v = !1;
1257
1260
  i && Promise.resolve().then(() => {
1258
1261
  i.value = !0;
1259
1262
  });
1260
1263
  try {
1261
1264
  const O = await t((I) => {
1262
1265
  p(() => {
1263
- i && (i.value = !1), w || I();
1266
+ i && (i.value = !1), v || I();
1264
1267
  });
1265
1268
  });
1266
1269
  B === f && (A.value = O);
1267
1270
  } catch (O) {
1268
1271
  c(O);
1269
1272
  } finally {
1270
- i && B === f && (i.value = !1), w = !0;
1273
+ i && B === f && (i.value = !1), v = !0;
1271
1274
  }
1272
1275
  }), s ? Nn(() => (l.value = !0, A.value)) : A;
1273
1276
  }
@@ -1378,7 +1381,7 @@ var rs = { exports: {} };
1378
1381
  return !0;
1379
1382
  };
1380
1383
  }
1381
- function w(u, m, g, y) {
1384
+ function v(u, m, g, y) {
1382
1385
  return u.validate(u.options, m, g, y);
1383
1386
  }
1384
1387
  var O = {
@@ -1423,7 +1426,7 @@ var rs = { exports: {} };
1423
1426
  },
1424
1427
  $or: function(u, m, g, y) {
1425
1428
  for (var b = 0, E = u.length; b < E; b++)
1426
- if (w(f(u, b), m, g, y)) return !0;
1429
+ if (v(f(u, b), m, g, y)) return !0;
1427
1430
  return !1;
1428
1431
  },
1429
1432
  $nor: function(u, m, g, y) {
@@ -1431,7 +1434,7 @@ var rs = { exports: {} };
1431
1434
  },
1432
1435
  $and: function(u, m, g, y) {
1433
1436
  for (var b = 0, E = u.length; b < E; b++)
1434
- if (!w(f(u, b), m, g, y)) return !1;
1437
+ if (!v(f(u, b), m, g, y)) return !1;
1435
1438
  return !0;
1436
1439
  },
1437
1440
  $regex: p(function(u, m) {
@@ -1443,9 +1446,9 @@ var rs = { exports: {} };
1443
1446
  $elemMatch: function(u, m, g, y) {
1444
1447
  return c(m) ? !!~function(b, E) {
1445
1448
  for (var P = 0; P < b.length; P++)
1446
- if (f(b, P), w(E, f(b, P))) return P;
1449
+ if (f(b, P), v(E, f(b, P))) return P;
1447
1450
  return -1;
1448
- }(m, u) : w(u, m, g, y);
1451
+ }(m, u) : v(u, m, g, y);
1449
1452
  },
1450
1453
  $exists: function(u, m, g, y) {
1451
1454
  return y.hasOwnProperty(g) === u;
@@ -1503,7 +1506,7 @@ var rs = { exports: {} };
1503
1506
  for (j = u.length; j--; ) if (u[j] == null) return !0;
1504
1507
  }
1505
1508
  for (j = u.length; j--; ) {
1506
- var P = w(H(f(u, j), g), E, j, u);
1509
+ var P = v(H(f(u, j), g), E, j, u);
1507
1510
  if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
1508
1511
  return !0;
1509
1512
  }
@@ -1546,7 +1549,7 @@ var rs = { exports: {} };
1546
1549
  $not: function(u, m, g) {
1547
1550
  var y = Y(g)(u);
1548
1551
  return function(b, E, P) {
1549
- return !w(y, b, E, P);
1552
+ return !v(y, b, E, P);
1550
1553
  };
1551
1554
  },
1552
1555
  $type: function(u) {
@@ -1584,11 +1587,11 @@ var rs = { exports: {} };
1584
1587
  else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
1585
1588
  }(m, g, 0, m, E), E.length === 1) {
1586
1589
  var P = E[0];
1587
- return w(y, P[0], P[1], P[2]);
1590
+ return v(y, P[0], P[1], P[2]);
1588
1591
  }
1589
1592
  for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
1590
- var he = E[_], Vt = w(y, he[0], he[1], he[2]);
1591
- j ? W &= Vt : W |= Vt;
1593
+ var he = E[_], Yt = v(y, he[0], he[1], he[2]);
1594
+ j ? W &= Yt : W |= Yt;
1592
1595
  }
1593
1596
  return W;
1594
1597
  }
@@ -1610,8 +1613,8 @@ var rs = { exports: {} };
1610
1613
  else {
1611
1614
  if (W.charCodeAt(0) === 36)
1612
1615
  throw new Error("Unknown operation " + W);
1613
- var Vt = W.split(".");
1614
- j.push(Q(Vt, E(_), _));
1616
+ var Yt = W.split(".");
1617
+ j.push(Q(Yt, E(_), _));
1615
1618
  }
1616
1619
  }
1617
1620
  }
@@ -1621,24 +1624,24 @@ var rs = { exports: {} };
1621
1624
  if (!l(W)) return _;
1622
1625
  for (var he in W) _.push(he), j(W[he], _);
1623
1626
  return _;
1624
- }(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
1627
+ }(P, []).join(",").search(/[$.]/) === -1 ? V(P, w) : b(P);
1625
1628
  };
1626
1629
  return function(P) {
1627
1630
  return b(y(P));
1628
1631
  };
1629
1632
  }
1630
- function v(u, m) {
1633
+ function w(u, m) {
1631
1634
  if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
1632
1635
  return !1;
1633
1636
  if (l(u)) {
1634
1637
  if (Object.keys(u).length !== Object.keys(m).length) return !1;
1635
- for (var g in u) if (!v(u[g], m[g])) return !1;
1638
+ for (var g in u) if (!w(u[g], m[g])) return !1;
1636
1639
  return !0;
1637
1640
  }
1638
1641
  if (c(u)) {
1639
1642
  if (u.length !== m.length) return !1;
1640
1643
  for (var y = 0, b = u.length; y < b; y++)
1641
- if (!v(u[y], m[y])) return !1;
1644
+ if (!w(u[y], m[y])) return !1;
1642
1645
  return !0;
1643
1646
  }
1644
1647
  return u === m;
@@ -1648,18 +1651,18 @@ var rs = { exports: {} };
1648
1651
  return m && m.select && (g = {
1649
1652
  options: g,
1650
1653
  validate: function(y, b, E, P) {
1651
- return w(y, b && m.select(b), E, P);
1654
+ return v(y, b && m.select(b), E, P);
1652
1655
  }
1653
1656
  }), g;
1654
1657
  }
1655
1658
  function U(u, m) {
1656
1659
  var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
1657
1660
  return function(y, b, E) {
1658
- return w(g, y, b, E);
1661
+ return v(g, y, b, E);
1659
1662
  };
1660
1663
  }
1661
1664
  function ee(u, m) {
1662
- if (v(u, m)) return 0;
1665
+ if (w(u, m)) return 0;
1663
1666
  if (i(u) === i(m)) {
1664
1667
  if (u > m) return 1;
1665
1668
  if (u < m) return -1;
@@ -1686,15 +1689,15 @@ function ma(t, e, n) {
1686
1689
  function fa(t, e) {
1687
1690
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
1688
1691
  }
1689
- function wn(t) {
1690
- return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1692
+ function vn(t) {
1693
+ return vn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1691
1694
  return n.__proto__ || Object.getPrototypeOf(n);
1692
- }, wn(t);
1695
+ }, vn(t);
1693
1696
  }
1694
- function Ut(t, e) {
1695
- return Ut = Object.setPrototypeOf || function(r, s) {
1697
+ function St(t, e) {
1698
+ return St = Object.setPrototypeOf || function(r, s) {
1696
1699
  return r.__proto__ = s, r;
1697
- }, Ut(t, e);
1700
+ }, St(t, e);
1698
1701
  }
1699
1702
  function ga() {
1700
1703
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -1706,13 +1709,13 @@ function ga() {
1706
1709
  return !1;
1707
1710
  }
1708
1711
  }
1709
- function qt(t, e, n) {
1710
- return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
1712
+ function Rt(t, e, n) {
1713
+ return ga() ? Rt = Reflect.construct : Rt = function(s, i, a) {
1711
1714
  var c = [null];
1712
1715
  c.push.apply(c, i);
1713
1716
  var l = Function.bind.apply(s, c), A = new l();
1714
- return a && Ut(A, a.prototype), A;
1715
- }, qt.apply(null, arguments);
1717
+ return a && St(A, a.prototype), A;
1718
+ }, Rt.apply(null, arguments);
1716
1719
  }
1717
1720
  function pa(t) {
1718
1721
  return Function.toString.call(t).indexOf("[native code]") !== -1;
@@ -1728,7 +1731,7 @@ function Bn(t) {
1728
1731
  e.set(r, s);
1729
1732
  }
1730
1733
  function s() {
1731
- return qt(r, arguments, wn(this).constructor);
1734
+ return Rt(r, arguments, vn(this).constructor);
1732
1735
  }
1733
1736
  return s.prototype = Object.create(r.prototype, {
1734
1737
  constructor: {
@@ -1737,7 +1740,7 @@ function Bn(t) {
1737
1740
  writable: !0,
1738
1741
  configurable: !0
1739
1742
  }
1740
- }), Ut(s, r);
1743
+ }), St(s, r);
1741
1744
  }, Bn(t);
1742
1745
  }
1743
1746
  function ir(t) {
@@ -1747,9 +1750,9 @@ function ir(t) {
1747
1750
  }
1748
1751
  var ss = function(e) {
1749
1752
  return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
1750
- }, Ft = ss, ya = /* @__PURE__ */ function(t) {
1753
+ }, xt = ss, ya = /* @__PURE__ */ function(t) {
1751
1754
  fa(e, t), e.setDefaultMessage = function(s) {
1752
- s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
1755
+ s === null ? xt = ss : xt = typeof s == "string" ? function() {
1753
1756
  return s;
1754
1757
  } : s;
1755
1758
  }, e.from = function(s) {
@@ -1760,7 +1763,7 @@ var ss = function(e) {
1760
1763
  };
1761
1764
  function e(r, s) {
1762
1765
  var i;
1763
- return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
1766
+ return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || xt(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
1764
1767
  }
1765
1768
  var n = e.prototype;
1766
1769
  return n.setMessage = function(s) {
@@ -1777,7 +1780,7 @@ var ss = function(e) {
1777
1780
  subjectName: this.ability.subjectName(i)
1778
1781
  });
1779
1782
  var l = c ? c.reason : "";
1780
- throw this.message = this._customMessage || l || Ft(this), this;
1783
+ throw this.message = this._customMessage || l || xt(this), this;
1781
1784
  }
1782
1785
  }, n._setMetadata = function(s) {
1783
1786
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
@@ -1792,10 +1795,10 @@ function ba(t) {
1792
1795
  var e = typeof t == "object" ? t.constructor : t;
1793
1796
  return e.modelName || e.name;
1794
1797
  }
1795
- function va(t) {
1798
+ function wa(t) {
1796
1799
  return JSON.parse(JSON.stringify(t));
1797
1800
  }
1798
- var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
1801
+ var va = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
1799
1802
  function Ea(t, e, n) {
1800
1803
  var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
1801
1804
  return e + t.length === n.length ? "(?:" + i + ")?" : i;
@@ -1805,7 +1808,7 @@ function Ma(t, e, n) {
1805
1808
  }
1806
1809
  function Ia(t) {
1807
1810
  var e = t.map(function(r) {
1808
- return r.replace(wa, Ma).replace(Ba, Ea);
1811
+ return r.replace(va, Ma).replace(Ba, Ea);
1809
1812
  }), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
1810
1813
  return new RegExp("^" + n + "$");
1811
1814
  }
@@ -1850,7 +1853,7 @@ var Oa = /* @__PURE__ */ function() {
1850
1853
  indexedRules: /* @__PURE__ */ Object.create(null),
1851
1854
  mergedRules: /* @__PURE__ */ Object.create(null),
1852
1855
  events: {},
1853
- aliases: va(ar)
1856
+ aliases: wa(ar)
1854
1857
  }, this.update(n);
1855
1858
  }
1856
1859
  var e = t.prototype;
@@ -1868,8 +1871,8 @@ var Oa = /* @__PURE__ */ function() {
1868
1871
  for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
1869
1872
  var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
1870
1873
  a = !!(a && A.inverted), !c && A.fields && (c = !0);
1871
- for (var w = 0; w < p.length; w++) {
1872
- var O = p[w];
1874
+ for (var v = 0; v < p.length; v++) {
1875
+ var O = p[v];
1873
1876
  s[O] = s[O] || /* @__PURE__ */ Object.create(null);
1874
1877
  for (var I = 0; I < f.length; I++) {
1875
1878
  var V = f[I];
@@ -2033,7 +2036,7 @@ async function ka(t, e) {
2033
2036
  }
2034
2037
  var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
2035
2038
  function Ra() {
2036
- const t = ts(), { sessionUser: e } = rn();
2039
+ const t = ts(), { sessionUser: e } = nn();
2037
2040
  return ca(
2038
2041
  async () => {
2039
2042
  t.matched;
@@ -2072,7 +2075,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2072
2075
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
2073
2076
  }, za = {
2074
2077
  noPermission: Wa
2075
- }, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ tn({
2078
+ }, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ en({
2076
2079
  __name: "NoPermission",
2077
2080
  setup(t) {
2078
2081
  const { t: e } = ns({
@@ -2083,7 +2086,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2083
2086
  "th-TH": za
2084
2087
  }
2085
2088
  });
2086
- return (n, r) => (nn(), Si("div", Za, [
2089
+ return (n, r) => (tn(), Si("div", Za, [
2087
2090
  Ke("div", La, [
2088
2091
  Ke("div", Ka, [
2089
2092
  Ke("img", {
@@ -2098,18 +2101,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2098
2101
  ])
2099
2102
  ]));
2100
2103
  }
2101
- }), to = /* @__PURE__ */ tn({
2104
+ }), to = /* @__PURE__ */ en({
2102
2105
  __name: "PermissionWrapper",
2103
2106
  setup(t) {
2104
2107
  const e = Ra();
2105
- return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2108
+ return (n, r) => ge(e) === ge(Cn).Denied ? (tn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2106
2109
  }
2107
2110
  });
2108
2111
  function os(t) {
2109
2112
  return {
2110
2113
  inheritAttrs: !1,
2111
2114
  setup(e, { attrs: n }) {
2112
- return () => vn(to, {}, { default: () => vn(t, n) });
2115
+ return () => wn(to, {}, { default: () => wn(t, n) });
2113
2116
  }
2114
2117
  };
2115
2118
  }
@@ -2406,10 +2409,10 @@ const k = [
2406
2409
  ), bs = $(
2407
2410
  se,
2408
2411
  ho
2409
- ), vs = $(
2412
+ ), ws = $(
2410
2413
  se,
2411
2414
  mo
2412
- ), ws = $(
2415
+ ), vs = $(
2413
2416
  se,
2414
2417
  fo
2415
2418
  ), Bs = $(
@@ -2436,7 +2439,7 @@ const k = [
2436
2439
  o.delete
2437
2440
  ]
2438
2441
  }
2439
- ], vo = [
2442
+ ], wo = [
2440
2443
  ...k,
2441
2444
  {
2442
2445
  label: "Membership",
@@ -2448,7 +2451,7 @@ const k = [
2448
2451
  o.delete
2449
2452
  ]
2450
2453
  }
2451
- ], wo = $(
2454
+ ], vo = $(
2452
2455
  no,
2453
2456
  ro,
2454
2457
  cs,
@@ -2462,8 +2465,8 @@ const k = [
2462
2465
  ps,
2463
2466
  ys,
2464
2467
  bs,
2465
- vs,
2466
2468
  ws,
2469
+ vs,
2467
2470
  Bs,
2468
2471
  Ds,
2469
2472
  ds,
@@ -2477,11 +2480,11 @@ const k = [
2477
2480
  ), Do = $(
2478
2481
  se,
2479
2482
  bo
2480
- ), Co = $(vo), Eo = {
2483
+ ), Co = $(wo), Eo = {
2481
2484
  [`set_${d.crm}`]: {
2482
2485
  key: "sys:crm:access",
2483
2486
  name: "CRM Access",
2484
- permissions: wo
2487
+ permissions: vo
2485
2488
  },
2486
2489
  [`set_${d.crm_promotion}`]: {
2487
2490
  key: "sys:crm:promotion",
@@ -2526,12 +2529,12 @@ const k = [
2526
2529
  [`set_${d.crm_credit}`]: {
2527
2530
  key: "sys:crm:credit",
2528
2531
  name: "CRM Credit",
2529
- permissions: vs
2532
+ permissions: ws
2530
2533
  },
2531
2534
  [`set_${d.crm_experience}`]: {
2532
2535
  key: "sys:crm:experience",
2533
2536
  name: "CRM Experience",
2534
- permissions: ws
2537
+ permissions: vs
2535
2538
  },
2536
2539
  [`set_${d.crm_game}`]: {
2537
2540
  key: "sys:crm:game",
@@ -3154,7 +3157,7 @@ const Ho = () => ({
3154
3157
  sidebarDisplay: "Restaurants",
3155
3158
  section: "payment-gateway"
3156
3159
  },
3157
- component: () => import("./Restaurant-DmTUlWEO.js")
3160
+ component: () => import("./Restaurant-Bdike4SW.js")
3158
3161
  },
3159
3162
  {
3160
3163
  path: "/admin/restaurants/:restaurantId",
@@ -3163,7 +3166,7 @@ const Ho = () => ({
3163
3166
  meta: {
3164
3167
  parent: "mf-payment-admin.restaurant"
3165
3168
  },
3166
- component: () => import("./RestaurantSetting-Bxmlhv1B.js")
3169
+ component: () => import("./RestaurantSetting-DSDzRmgE.js")
3167
3170
  },
3168
3171
  {
3169
3172
  path: "/admin/payout-accounts",
@@ -3172,7 +3175,7 @@ const Ho = () => ({
3172
3175
  sidebarDisplay: "Payout Accounts",
3173
3176
  section: "payment-gateway"
3174
3177
  },
3175
- component: () => import("./PayoutAccount-CLhPVMfM.js")
3178
+ component: () => import("./PayoutAccount-Dw-_pf4z.js")
3176
3179
  },
3177
3180
  {
3178
3181
  path: "/admin/payout-accounts/:accountId",
@@ -3181,7 +3184,7 @@ const Ho = () => ({
3181
3184
  meta: {
3182
3185
  parent: "mf-payment-admin.payout-account"
3183
3186
  },
3184
- component: () => import("./PayoutAccountSetting-Dk9EjE9I.js")
3187
+ component: () => import("./PayoutAccountSetting-DSk8ZV9p.js")
3185
3188
  },
3186
3189
  {
3187
3190
  path: "/admin/onboarding",
@@ -3190,7 +3193,7 @@ const Ho = () => ({
3190
3193
  sidebarDisplay: "Payment Onboarding",
3191
3194
  section: "payment-gateway"
3192
3195
  },
3193
- component: () => import("./OnboardSubmission-Dmp0SRgJ.js")
3196
+ component: () => import("./OnboardSubmission-D2ebcVnG.js")
3194
3197
  },
3195
3198
  {
3196
3199
  path: "/admin/onboarding/:submissionId",
@@ -3199,7 +3202,7 @@ const Ho = () => ({
3199
3202
  meta: {
3200
3203
  parent: "mf-payment-admin.onboard-submission"
3201
3204
  },
3202
- component: () => import("./OnboardForm-DgXsHzkT.js")
3205
+ component: () => import("./OnboardForm-F2Qcvalp.js")
3203
3206
  },
3204
3207
  {
3205
3208
  path: "/admin/terminal/pos",
@@ -3208,7 +3211,7 @@ const Ho = () => ({
3208
3211
  sidebarDisplay: "POS",
3209
3212
  section: "device"
3210
3213
  },
3211
- component: () => import("./Terminal-0muJMA4c.js"),
3214
+ component: () => import("./Terminal-BwHi929R.js"),
3212
3215
  props: {
3213
3216
  type: "POS"
3214
3217
  }
@@ -3220,7 +3223,7 @@ const Ho = () => ({
3220
3223
  sidebarDisplay: "Kiosks",
3221
3224
  section: "device"
3222
3225
  },
3223
- component: () => import("./Terminal-0muJMA4c.js"),
3226
+ component: () => import("./Terminal-BwHi929R.js"),
3224
3227
  props: {
3225
3228
  type: "KIOSK"
3226
3229
  }
@@ -3232,7 +3235,7 @@ const Ho = () => ({
3232
3235
  sidebarDisplay: "Terminals",
3233
3236
  section: "device"
3234
3237
  },
3235
- component: () => import("./Terminal-0muJMA4c.js"),
3238
+ component: () => import("./Terminal-BwHi929R.js"),
3236
3239
  props: {
3237
3240
  type: "TERMINAL"
3238
3241
  }
@@ -3244,7 +3247,7 @@ const Ho = () => ({
3244
3247
  meta: {
3245
3248
  parent: "mf-payment-admin.pos"
3246
3249
  },
3247
- component: () => import("./TerminalSetting-c2nPEMu9.js")
3250
+ component: () => import("./TerminalSetting-ZA-ADJVD.js")
3248
3251
  },
3249
3252
  {
3250
3253
  path: "/admin/terminal/kiosk/:terminalId",
@@ -3253,7 +3256,7 @@ const Ho = () => ({
3253
3256
  meta: {
3254
3257
  parent: "mf-payment-admin.kiosk"
3255
3258
  },
3256
- component: () => import("./TerminalSetting-c2nPEMu9.js")
3259
+ component: () => import("./TerminalSetting-ZA-ADJVD.js")
3257
3260
  },
3258
3261
  {
3259
3262
  path: "/admin/terminal/terminal/:terminalId",
@@ -3262,7 +3265,7 @@ const Ho = () => ({
3262
3265
  meta: {
3263
3266
  parent: "mf-payment-admin.terminal"
3264
3267
  },
3265
- component: () => import("./TerminalSetting-c2nPEMu9.js")
3268
+ component: () => import("./TerminalSetting-ZA-ADJVD.js")
3266
3269
  },
3267
3270
  {
3268
3271
  path: "/admin/transaction",
@@ -3270,7 +3273,7 @@ const Ho = () => ({
3270
3273
  meta: {
3271
3274
  sidebarDisplay: "Transactions"
3272
3275
  },
3273
- component: () => import("./Transaction-BN5dWn9J.js")
3276
+ component: () => import("./Transaction-BvvdK0go.js")
3274
3277
  },
3275
3278
  {
3276
3279
  path: "/admin/chargeback",
@@ -3278,7 +3281,7 @@ const Ho = () => ({
3278
3281
  meta: {
3279
3282
  sidebarDisplay: "Chargebacks"
3280
3283
  },
3281
- component: () => import("./Chargeback-D5GSAz8R.js")
3284
+ component: () => import("./Chargeback-xwB_glv5.js")
3282
3285
  },
3283
3286
  {
3284
3287
  path: "/admin/settlement",
@@ -3286,7 +3289,7 @@ const Ho = () => ({
3286
3289
  meta: {
3287
3290
  sidebarDisplay: "Settlements"
3288
3291
  },
3289
- component: () => import("./Settlement-BaV2FYPZ.js")
3292
+ component: () => import("./Settlement-Cw6JGHxU.js")
3290
3293
  },
3291
3294
  {
3292
3295
  path: "/admin/settlement/:settlementId",
@@ -3295,7 +3298,7 @@ const Ho = () => ({
3295
3298
  meta: {
3296
3299
  parent: "mf-payment-admin.settlement"
3297
3300
  },
3298
- component: () => import("./SettlementTransactions-BisVOkrF.js")
3301
+ component: () => import("./SettlementTransactions-BlRbAo_K.js")
3299
3302
  }
3300
3303
  ].map((t) => ({
3301
3304
  ...t,
@@ -3303,7 +3306,7 @@ const Ho = () => ({
3303
3306
  ...t.meta,
3304
3307
  ...Ho()
3305
3308
  }
3306
- })), bt = [
3309
+ })), rn = [
3307
3310
  {
3308
3311
  path: "",
3309
3312
  redirect: { name: "mf-payment-payout-account" }
@@ -3311,7 +3314,7 @@ const Ho = () => ({
3311
3314
  {
3312
3315
  path: "/payout-account",
3313
3316
  name: "mf-payment-payout-account",
3314
- component: () => import("./PayoutAccount-B7JR-Xfq.js"),
3317
+ component: () => import("./PayoutAccount-CIek2Qnh.js"),
3315
3318
  meta: {
3316
3319
  sidebarDisplay: "i18n:payment.routes.payout_account",
3317
3320
  region: { MY: !0 },
@@ -3328,7 +3331,7 @@ const Ho = () => ({
3328
3331
  {
3329
3332
  path: "/onboard-submission",
3330
3333
  name: "mf-payment-onboard-submission",
3331
- component: () => import("./OnboardSubmission-D4VMYp5S.js"),
3334
+ component: () => import("./OnboardSubmission-0hfx_f8i.js"),
3332
3335
  meta: {
3333
3336
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
3334
3337
  region: { MY: !0, TH: !0, AU: !0 },
@@ -3346,7 +3349,7 @@ const Ho = () => ({
3346
3349
  path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
3347
3350
  name: "mf-payment-onboard-submission-form",
3348
3351
  props: !0,
3349
- component: () => import("./OnboardForm-BV8pty81.js"),
3352
+ component: () => import("./OnboardForm-DKhsjm3n.js"),
3350
3353
  meta: {
3351
3354
  parent: "mf-payment-onboard-submission",
3352
3355
  validationManifest: {
@@ -3362,7 +3365,7 @@ const Ho = () => ({
3362
3365
  {
3363
3366
  path: "/transaction-old",
3364
3367
  name: "mf-payment-old-transaction",
3365
- component: () => import("./TransactionOld-BWlQdV2t.js"),
3368
+ component: () => import("./TransactionOld-B0fQrQ7W.js"),
3366
3369
  meta: {
3367
3370
  sidebarDisplay: "i18n:payment.routes.transaction",
3368
3371
  validationManifest: {
@@ -3378,7 +3381,7 @@ const Ho = () => ({
3378
3381
  {
3379
3382
  path: "/transaction",
3380
3383
  name: "mf-payment-transaction",
3381
- component: () => import("./Transaction-BDprmXf5.js"),
3384
+ component: () => import("./Transaction-DqwB7HTI.js"),
3382
3385
  meta: {
3383
3386
  sidebarDisplay: "i18n:payment.routes.transaction_new",
3384
3387
  sidebarNew: !0,
@@ -3395,7 +3398,7 @@ const Ho = () => ({
3395
3398
  {
3396
3399
  path: "/settlement",
3397
3400
  name: "mf-payment-settlement",
3398
- component: () => import("./Settlement-lhxgz-XH.js"),
3401
+ component: () => import("./Settlement-BEhvMZje.js"),
3399
3402
  meta: {
3400
3403
  sidebarDisplay: "i18n:payment.routes.settlement",
3401
3404
  region: { MY: !0, SG: !0 },
@@ -3413,7 +3416,7 @@ const Ho = () => ({
3413
3416
  path: "/settlement/:settlementId",
3414
3417
  name: "mf-payment-settlement-transaction",
3415
3418
  props: !0,
3416
- component: () => import("./SettlementTransactions-ghbnNfB_.js"),
3419
+ component: () => import("./SettlementTransactions-yczyKInV.js"),
3417
3420
  meta: {
3418
3421
  parent: "mf-payment-settlement",
3419
3422
  validationManifest: {
@@ -3581,8 +3584,8 @@ const Vs = function(t) {
3581
3584
  const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
3582
3585
  for (let s = 0; s < t.length; s += 3) {
3583
3586
  const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, f = i >> 2, p = (i & 3) << 4 | c >> 4;
3584
- let B = (c & 15) << 2 | A >> 6, w = A & 63;
3585
- l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
3587
+ let B = (c & 15) << 2 | A >> 6, v = A & 63;
3588
+ l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
3586
3589
  }
3587
3590
  return r.join("");
3588
3591
  },
@@ -3636,8 +3639,8 @@ const Vs = function(t) {
3636
3639
  throw new So();
3637
3640
  const B = i << 2 | c >> 4;
3638
3641
  if (r.push(B), A !== 64) {
3639
- const w = c << 4 & 240 | A >> 2;
3640
- if (r.push(w), p !== 64) {
3642
+ const v = c << 4 & 240 | A >> 2;
3643
+ if (r.push(v), p !== 64) {
3641
3644
  const O = A << 6 & 192 | p;
3642
3645
  r.push(O);
3643
3646
  }
@@ -3869,10 +3872,10 @@ function sc() {
3869
3872
  const ic = "FirebaseError";
3870
3873
  class qe extends Error {
3871
3874
  constructor(e, n, r) {
3872
- super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
3875
+ super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, It.prototype.create);
3873
3876
  }
3874
3877
  }
3875
- class Pt {
3878
+ class It {
3876
3879
  constructor(e, n, r) {
3877
3880
  this.service = e, this.serviceName = n, this.errors = r;
3878
3881
  }
@@ -3894,7 +3897,7 @@ function cc(t) {
3894
3897
  return !1;
3895
3898
  return !0;
3896
3899
  }
3897
- function Wt(t, e) {
3900
+ function Ut(t, e) {
3898
3901
  if (t === e)
3899
3902
  return !0;
3900
3903
  const n = Object.keys(t), r = Object.keys(e);
@@ -3903,7 +3906,7 @@ function Wt(t, e) {
3903
3906
  return !1;
3904
3907
  const i = t[s], a = e[s];
3905
3908
  if (ur(i) && ur(a)) {
3906
- if (!Wt(i, a))
3909
+ if (!Ut(i, a))
3907
3910
  return !1;
3908
3911
  } else if (i !== a)
3909
3912
  return !1;
@@ -3932,7 +3935,7 @@ function ur(t) {
3932
3935
  * See the License for the specific language governing permissions and
3933
3936
  * limitations under the License.
3934
3937
  */
3935
- function Ot(t) {
3938
+ function Pt(t) {
3936
3939
  const e = [];
3937
3940
  for (const [n, r] of Object.entries(t))
3938
3941
  Array.isArray(r) ? r.forEach((s) => {
@@ -4425,9 +4428,9 @@ class Ns {
4425
4428
  this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
4426
4429
  }
4427
4430
  }
4428
- const vc = (t, e) => e.some((n) => t instanceof n);
4431
+ const wc = (t, e) => e.some((n) => t instanceof n);
4429
4432
  let lr, Ar;
4430
- function wc() {
4433
+ function vc() {
4431
4434
  return lr || (lr = [
4432
4435
  IDBDatabase,
4433
4436
  IDBObjectStore,
@@ -4508,7 +4511,7 @@ function Mc(t) {
4508
4511
  };
4509
4512
  }
4510
4513
  function Ic(t) {
4511
- return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
4514
+ return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Mn) : t);
4512
4515
  }
4513
4516
  function Fe(t) {
4514
4517
  if (t instanceof IDBRequest)
@@ -4613,7 +4616,7 @@ const In = "@firebase/app", hr = "0.10.13";
4613
4616
  * See the License for the specific language governing permissions and
4614
4617
  * limitations under the License.
4615
4618
  */
4616
- const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
4619
+ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
4617
4620
  /**
4618
4621
  * @license
4619
4622
  * Copyright 2019 Google LLC
@@ -4676,20 +4679,20 @@ const Pn = "[DEFAULT]", au = {
4676
4679
  * See the License for the specific language governing permissions and
4677
4680
  * limitations under the License.
4678
4681
  */
4679
- const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
4682
+ const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
4680
4683
  function mr(t, e) {
4681
4684
  try {
4682
4685
  t.container.addComponent(e);
4683
4686
  } catch (n) {
4684
- we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
4687
+ ve.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
4685
4688
  }
4686
4689
  }
4687
- function vt(t) {
4690
+ function bt(t) {
4688
4691
  const e = t.name;
4689
4692
  if (On.has(e))
4690
- return we.debug(`There were multiple attempts to register component ${e}.`), !1;
4693
+ return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
4691
4694
  On.set(e, t);
4692
- for (const n of zt.values())
4695
+ for (const n of Wt.values())
4693
4696
  mr(n, t);
4694
4697
  for (const n of ou.values())
4695
4698
  mr(n, t);
@@ -4733,7 +4736,7 @@ const cu = {
4733
4736
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
4734
4737
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
4735
4738
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
4736
- }, ke = new Pt("app", "Firebase", cu);
4739
+ }, ke = new It("app", "Firebase", cu);
4737
4740
  /**
4738
4741
  * @license
4739
4742
  * Copyright 2019 Google LLC
@@ -4808,7 +4811,7 @@ class uu {
4808
4811
  * See the License for the specific language governing permissions and
4809
4812
  * limitations under the License.
4810
4813
  */
4811
- const Tt = iu;
4814
+ const Ot = iu;
4812
4815
  function Ss(t, e = {}) {
4813
4816
  let n = t;
4814
4817
  typeof e != "object" && (e = { name: e });
@@ -4822,9 +4825,9 @@ function Ss(t, e = {}) {
4822
4825
  "no-options"
4823
4826
  /* AppError.NO_OPTIONS */
4824
4827
  );
4825
- const i = zt.get(s);
4828
+ const i = Wt.get(s);
4826
4829
  if (i) {
4827
- if (Wt(n, i.options) && Wt(r, i.config))
4830
+ if (Ut(n, i.options) && Ut(r, i.config))
4828
4831
  return i;
4829
4832
  throw ke.create("duplicate-app", { appName: s });
4830
4833
  }
@@ -4832,10 +4835,10 @@ function Ss(t, e = {}) {
4832
4835
  for (const l of On.values())
4833
4836
  a.addComponent(l);
4834
4837
  const c = new uu(n, r, a);
4835
- return zt.set(s, c), c;
4838
+ return Wt.set(s, c), c;
4836
4839
  }
4837
4840
  function lu(t = Pn) {
4838
- const e = zt.get(t);
4841
+ const e = Wt.get(t);
4839
4842
  if (!e && t === Pn && Rs())
4840
4843
  return Ss();
4841
4844
  if (!e)
@@ -4851,10 +4854,10 @@ function $e(t, e, n) {
4851
4854
  const c = [
4852
4855
  `Unable to register library "${s}" with version "${e}":`
4853
4856
  ];
4854
- i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
4857
+ i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), ve.warn(c.join(" "));
4855
4858
  return;
4856
4859
  }
4857
- vt(new dt(
4860
+ bt(new dt(
4858
4861
  `${s}-version`,
4859
4862
  () => ({ library: s, version: e }),
4860
4863
  "VERSION"
@@ -4903,12 +4906,12 @@ async function hu(t) {
4903
4906
  return await n.done, r;
4904
4907
  } catch (e) {
4905
4908
  if (e instanceof qe)
4906
- we.warn(e.message);
4909
+ ve.warn(e.message);
4907
4910
  else {
4908
4911
  const n = ke.create("idb-get", {
4909
4912
  originalErrorMessage: e == null ? void 0 : e.message
4910
4913
  });
4911
- we.warn(n.message);
4914
+ ve.warn(n.message);
4912
4915
  }
4913
4916
  }
4914
4917
  }
@@ -4918,12 +4921,12 @@ async function fr(t, e) {
4918
4921
  await r.objectStore(wt).put(e, Ws(t)), await r.done;
4919
4922
  } catch (n) {
4920
4923
  if (n instanceof qe)
4921
- we.warn(n.message);
4924
+ ve.warn(n.message);
4922
4925
  else {
4923
4926
  const r = ke.create("idb-set", {
4924
4927
  originalErrorMessage: n == null ? void 0 : n.message
4925
4928
  });
4926
- we.warn(r.message);
4929
+ ve.warn(r.message);
4927
4930
  }
4928
4931
  }
4929
4932
  }
@@ -4969,7 +4972,7 @@ class gu {
4969
4972
  return Date.now() - c <= fu;
4970
4973
  }), this._storage.overwrite(this._heartbeatsCache));
4971
4974
  } catch (r) {
4972
- we.warn(r);
4975
+ ve.warn(r);
4973
4976
  }
4974
4977
  }
4975
4978
  /**
@@ -4987,7 +4990,7 @@ class gu {
4987
4990
  const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
4988
4991
  return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
4989
4992
  } catch (n) {
4990
- return we.warn(n), "";
4993
+ return ve.warn(n), "";
4991
4994
  }
4992
4995
  }
4993
4996
  }
@@ -5086,12 +5089,12 @@ function pr(t) {
5086
5089
  * limitations under the License.
5087
5090
  */
5088
5091
  function bu(t) {
5089
- vt(new dt(
5092
+ bt(new dt(
5090
5093
  "platform-logger",
5091
5094
  (e) => new Gc(e),
5092
5095
  "PRIVATE"
5093
5096
  /* ComponentType.PRIVATE */
5094
- )), vt(new dt(
5097
+ )), bt(new dt(
5095
5098
  "heartbeat",
5096
5099
  (e) => new gu(e),
5097
5100
  "PRIVATE"
@@ -5099,7 +5102,7 @@ function bu(t) {
5099
5102
  )), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
5100
5103
  }
5101
5104
  bu("");
5102
- var vu = "firebase", wu = "10.14.1";
5105
+ var wu = "firebase", vu = "10.14.1";
5103
5106
  /**
5104
5107
  * @license
5105
5108
  * Copyright 2020 Google LLC
@@ -5116,7 +5119,7 @@ var vu = "firebase", wu = "10.14.1";
5116
5119
  * See the License for the specific language governing permissions and
5117
5120
  * limitations under the License.
5118
5121
  */
5119
- $e(vu, wu, "app");
5122
+ $e(wu, vu, "app");
5120
5123
  var yr = function() {
5121
5124
  return yr = Object.assign || function(e) {
5122
5125
  for (var n, r = 1, s = arguments.length; r < s; r++) {
@@ -5139,7 +5142,7 @@ function zs() {
5139
5142
  "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."
5140
5143
  };
5141
5144
  }
5142
- const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
5145
+ const Bu = zs, Zs = new It("auth", "Firebase", zs());
5143
5146
  /**
5144
5147
  * @license
5145
5148
  * Copyright 2020 Google LLC
@@ -5156,12 +5159,12 @@ const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
5156
5159
  * See the License for the specific language governing permissions and
5157
5160
  * limitations under the License.
5158
5161
  */
5159
- const Zt = new Ns("@firebase/auth");
5162
+ const zt = new Ns("@firebase/auth");
5160
5163
  function Du(t, ...e) {
5161
- Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
5164
+ zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
5162
5165
  }
5163
- function Nt(t, ...e) {
5164
- Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
5166
+ function qt(t, ...e) {
5167
+ zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
5165
5168
  }
5166
5169
  /**
5167
5170
  * @license
@@ -5187,7 +5190,7 @@ function Ae(t, ...e) {
5187
5190
  }
5188
5191
  function Ls(t, e, n) {
5189
5192
  const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
5190
- return new Pt("auth", "Firebase", r).create(e, {
5193
+ return new It("auth", "Firebase", r).create(e, {
5191
5194
  appName: t.name
5192
5195
  });
5193
5196
  }
@@ -5207,7 +5210,7 @@ function M(t, e, ...n) {
5207
5210
  }
5208
5211
  function ye(t) {
5209
5212
  const e = "INTERNAL ASSERTION FAILED: " + t;
5210
- throw Nt(e), new Error(e);
5213
+ throw qt(e), new Error(e);
5211
5214
  }
5212
5215
  function De(t, e) {
5213
5216
  t || ye(e);
@@ -5291,7 +5294,7 @@ function Mu() {
5291
5294
  * See the License for the specific language governing permissions and
5292
5295
  * limitations under the License.
5293
5296
  */
5294
- class Gt {
5297
+ class Tt {
5295
5298
  constructor(e, n) {
5296
5299
  this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
5297
5300
  }
@@ -5481,7 +5484,7 @@ const Iu = {
5481
5484
  * See the License for the specific language governing permissions and
5482
5485
  * limitations under the License.
5483
5486
  */
5484
- const Pu = new Gt(3e4, 6e4);
5487
+ const Pu = new Tt(3e4, 6e4);
5485
5488
  function sn(t, e) {
5486
5489
  return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
5487
5490
  }
@@ -5491,7 +5494,7 @@ async function mt(t, e, n, r, s = {}) {
5491
5494
  r && (e === "GET" ? a = r : i = {
5492
5495
  body: JSON.stringify(r)
5493
5496
  });
5494
- const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
5497
+ const c = Pt(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
5495
5498
  l[
5496
5499
  "Content-Type"
5497
5500
  /* HttpHeader.CONTENT_TYPE */
@@ -5517,17 +5520,17 @@ async function Js(t, e, n) {
5517
5520
  s.clearNetworkTimeout();
5518
5521
  const a = await i.json();
5519
5522
  if ("needConfirmation" in a)
5520
- throw kt(t, "account-exists-with-different-credential", a);
5523
+ throw Ft(t, "account-exists-with-different-credential", a);
5521
5524
  if (i.ok && !("errorMessage" in a))
5522
5525
  return a;
5523
5526
  {
5524
5527
  const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
5525
5528
  if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
5526
- throw kt(t, "credential-already-in-use", a);
5529
+ throw Ft(t, "credential-already-in-use", a);
5527
5530
  if (l === "EMAIL_EXISTS")
5528
- throw kt(t, "email-already-in-use", a);
5531
+ throw Ft(t, "email-already-in-use", a);
5529
5532
  if (l === "USER_DISABLED")
5530
- throw kt(t, "user-disabled", a);
5533
+ throw Ft(t, "user-disabled", a);
5531
5534
  const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
5532
5535
  if (A)
5533
5536
  throw Ls(t, f, A);
@@ -5563,7 +5566,7 @@ class Ou {
5563
5566
  clearTimeout(this.timer);
5564
5567
  }
5565
5568
  }
5566
- function kt(t, e, n) {
5569
+ function Ft(t, e, n) {
5567
5570
  const r = {
5568
5571
  appName: t.name
5569
5572
  };
@@ -5643,15 +5646,15 @@ function yn(t) {
5643
5646
  function Ln(t) {
5644
5647
  const [e, n, r] = t.split(".");
5645
5648
  if (e === void 0 || n === void 0 || r === void 0)
5646
- return Nt("JWT malformed, contained fewer than 3 sections"), null;
5649
+ return qt("JWT malformed, contained fewer than 3 sections"), null;
5647
5650
  try {
5648
5651
  const s = ks(n);
5649
- return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
5652
+ return s ? JSON.parse(s) : (qt("Failed to decode base64 JWT payload"), null);
5650
5653
  } catch (s) {
5651
- return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5654
+ return qt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5652
5655
  }
5653
5656
  }
5654
- function vr(t) {
5657
+ function wr(t) {
5655
5658
  const e = Ln(t);
5656
5659
  return M(
5657
5660
  e,
@@ -5683,7 +5686,7 @@ function vr(t) {
5683
5686
  * See the License for the specific language governing permissions and
5684
5687
  * limitations under the License.
5685
5688
  */
5686
- async function Bt(t, e, n = !1) {
5689
+ async function vt(t, e, n = !1) {
5687
5690
  if (n)
5688
5691
  return e;
5689
5692
  try {
@@ -5806,9 +5809,9 @@ class Gn {
5806
5809
  * See the License for the specific language governing permissions and
5807
5810
  * limitations under the License.
5808
5811
  */
5809
- async function Lt(t) {
5812
+ async function Zt(t) {
5810
5813
  var e;
5811
- const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
5814
+ const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
5812
5815
  M(
5813
5816
  s == null ? void 0 : s.users.length,
5814
5817
  n,
@@ -5833,7 +5836,7 @@ async function Lt(t) {
5833
5836
  }
5834
5837
  async function Vu(t) {
5835
5838
  const e = ht(t);
5836
- await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5839
+ await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5837
5840
  }
5838
5841
  function xu(t, e) {
5839
5842
  return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
@@ -5869,7 +5872,7 @@ function ti(t) {
5869
5872
  */
5870
5873
  async function Fu(t, e) {
5871
5874
  const n = await Js(t, {}, async () => {
5872
- const r = Ot({
5875
+ const r = Pt({
5873
5876
  grant_type: "refresh_token",
5874
5877
  refresh_token: e
5875
5878
  }).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
@@ -5928,7 +5931,7 @@ class et {
5928
5931
  "internal-error"
5929
5932
  /* AuthErrorCode.INTERNAL_ERROR */
5930
5933
  );
5931
- const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
5934
+ const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : wr(e.idToken);
5932
5935
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
5933
5936
  }
5934
5937
  updateFromIdToken(e) {
@@ -5937,7 +5940,7 @@ class et {
5937
5940
  "internal-error"
5938
5941
  /* AuthErrorCode.INTERNAL_ERROR */
5939
5942
  );
5940
- const n = vr(e);
5943
+ const n = wr(e);
5941
5944
  this.updateTokensAndExpiration(e, null, n);
5942
5945
  }
5943
5946
  async getToken(e, n = !1) {
@@ -6010,7 +6013,7 @@ class be {
6010
6013
  this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
6011
6014
  }
6012
6015
  async getIdToken(e) {
6013
- const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
6016
+ const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
6014
6017
  return M(
6015
6018
  n,
6016
6019
  this.auth,
@@ -6055,13 +6058,13 @@ class be {
6055
6058
  }
6056
6059
  async _updateTokensIfNecessary(e, n = !1) {
6057
6060
  let r = !1;
6058
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Lt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
6061
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Zt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
6059
6062
  }
6060
6063
  async delete() {
6061
6064
  if (pe(this.auth.app))
6062
6065
  return Promise.reject(Re(this.auth));
6063
6066
  const e = await this.getIdToken();
6064
- return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
6067
+ return await vt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
6065
6068
  }
6066
6069
  toJSON() {
6067
6070
  return Object.assign(Object.assign({
@@ -6089,7 +6092,7 @@ class be {
6089
6092
  }
6090
6093
  static _fromJSON(e, n) {
6091
6094
  var r, s, i, a, c, l, A, f;
6092
- const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
6095
+ const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
6093
6096
  M(
6094
6097
  Y && ee,
6095
6098
  e,
@@ -6103,7 +6106,7 @@ class be {
6103
6106
  "internal-error"
6104
6107
  /* AuthErrorCode.INTERNAL_ERROR */
6105
6108
  ), Ee(p, e.name), Ee(B, e.name), M(
6106
- typeof v == "boolean",
6109
+ typeof w == "boolean",
6107
6110
  e,
6108
6111
  "internal-error"
6109
6112
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -6112,16 +6115,16 @@ class be {
6112
6115
  e,
6113
6116
  "internal-error"
6114
6117
  /* AuthErrorCode.INTERNAL_ERROR */
6115
- ), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
6118
+ ), Ee(v, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
6116
6119
  const u = new be({
6117
6120
  uid: Y,
6118
6121
  auth: e,
6119
6122
  email: B,
6120
- emailVerified: v,
6123
+ emailVerified: w,
6121
6124
  displayName: p,
6122
6125
  isAnonymous: H,
6123
6126
  photoURL: O,
6124
- phoneNumber: w,
6127
+ phoneNumber: v,
6125
6128
  tenantId: I,
6126
6129
  stsTokenManager: q,
6127
6130
  createdAt: R,
@@ -6143,7 +6146,7 @@ class be {
6143
6146
  stsTokenManager: s,
6144
6147
  isAnonymous: r
6145
6148
  });
6146
- return await Lt(i), i;
6149
+ return await Zt(i), i;
6147
6150
  }
6148
6151
  /**
6149
6152
  * Initialize a User from an idToken server response
@@ -6195,11 +6198,11 @@ class be {
6195
6198
  * See the License for the specific language governing permissions and
6196
6199
  * limitations under the License.
6197
6200
  */
6198
- const wr = /* @__PURE__ */ new Map();
6199
- function ve(t) {
6201
+ const vr = /* @__PURE__ */ new Map();
6202
+ function we(t) {
6200
6203
  De(t instanceof Function, "Expected a class definition");
6201
- let e = wr.get(t);
6202
- return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
6204
+ let e = vr.get(t);
6205
+ return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), vr.set(t, e), e);
6203
6206
  }
6204
6207
  /**
6205
6208
  * @license
@@ -6257,14 +6260,14 @@ const Br = ni;
6257
6260
  * See the License for the specific language governing permissions and
6258
6261
  * limitations under the License.
6259
6262
  */
6260
- function Ht(t, e, n) {
6263
+ function Nt(t, e, n) {
6261
6264
  return `firebase:${t}:${e}:${n}`;
6262
6265
  }
6263
6266
  class tt {
6264
6267
  constructor(e, n, r) {
6265
6268
  this.persistence = e, this.auth = n, this.userKey = r;
6266
6269
  const { config: s, name: i } = this.auth;
6267
- this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
6270
+ this.fullUserKey = Nt(this.userKey, s.apiKey, i), this.fullPersistenceKey = Nt("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
6268
6271
  }
6269
6272
  setCurrentUser(e) {
6270
6273
  return this.persistence._set(this.fullUserKey, e.toJSON());
@@ -6291,13 +6294,13 @@ class tt {
6291
6294
  }
6292
6295
  static async create(e, n, r = "authUser") {
6293
6296
  if (!n.length)
6294
- return new tt(ve(Br), e, r);
6297
+ return new tt(we(Br), e, r);
6295
6298
  const s = (await Promise.all(n.map(async (A) => {
6296
6299
  if (await A._isAvailable())
6297
6300
  return A;
6298
6301
  }))).filter((A) => A);
6299
- let i = s[0] || ve(Br);
6300
- const a = Ht(r, e.config.apiKey, e.name);
6302
+ let i = s[0] || we(Br);
6303
+ const a = Nt(r, e.config.apiKey, e.name);
6301
6304
  let c = null;
6302
6305
  for (const A of n)
6303
6306
  try {
@@ -6430,7 +6433,7 @@ function Ai(t, e = []) {
6430
6433
  n = t;
6431
6434
  }
6432
6435
  const r = e.length ? e.join(",") : "FirebaseCore-web";
6433
- return `${n}/JsCore/${Tt}/${r}`;
6436
+ return `${n}/JsCore/${Ot}/${r}`;
6434
6437
  }
6435
6438
  /**
6436
6439
  * @license
@@ -6615,7 +6618,7 @@ class Su {
6615
6618
  this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(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 = Zs, 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 = s.sdkClientVersion;
6616
6619
  }
6617
6620
  _initializeWithPersistence(e, n) {
6618
- return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
6621
+ return n && (this._popupRedirectResolver = we(n)), this._initializationPromise = this.queue(async () => {
6619
6622
  var r, s;
6620
6623
  if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
6621
6624
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
@@ -6698,7 +6701,7 @@ class Su {
6698
6701
  }
6699
6702
  async reloadAndSetCurrentUserOrClear(e) {
6700
6703
  try {
6701
- await Lt(e);
6704
+ await Zt(e);
6702
6705
  } catch (n) {
6703
6706
  if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
6704
6707
  return this.directlySetCurrentUser(null);
@@ -6742,7 +6745,7 @@ class Su {
6742
6745
  }
6743
6746
  setPersistence(e) {
6744
6747
  return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
6745
- await this.assertedPersistence.setPersistence(ve(e));
6748
+ await this.assertedPersistence.setPersistence(we(e));
6746
6749
  });
6747
6750
  }
6748
6751
  _getRecaptchaConfig() {
@@ -6764,7 +6767,7 @@ class Su {
6764
6767
  return this.assertedPersistence.persistence.type;
6765
6768
  }
6766
6769
  _updateErrorMap(e) {
6767
- this._errorFactory = new Pt("auth", "Firebase", e());
6770
+ this._errorFactory = new It("auth", "Firebase", e());
6768
6771
  }
6769
6772
  onAuthStateChanged(e, n, r) {
6770
6773
  return this.registerStateListener(this.authStateSubscription, e, n, r);
@@ -6815,7 +6818,7 @@ class Su {
6815
6818
  }
6816
6819
  async getOrInitRedirectPersistenceManager(e) {
6817
6820
  if (!this.redirectPersistenceManager) {
6818
- const n = e && ve(e) || this._popupRedirectResolver;
6821
+ const n = e && we(e) || this._popupRedirectResolver;
6819
6822
  M(
6820
6823
  n,
6821
6824
  this,
@@ -6823,7 +6826,7 @@ class Su {
6823
6826
  /* AuthErrorCode.ARGUMENT_ERROR */
6824
6827
  ), this.redirectPersistenceManager = await tt.create(
6825
6828
  this,
6826
- [ve(n._redirectPersistence)],
6829
+ [we(n._redirectPersistence)],
6827
6830
  "redirectUser"
6828
6831
  /* KeyName.REDIRECT_USER */
6829
6832
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -7015,7 +7018,7 @@ function Lu(t, e) {
7015
7018
  const n = Xs(t, "auth");
7016
7019
  if (n.isInitialized()) {
7017
7020
  const s = n.getImmediate(), i = n.getOptions();
7018
- if (Wt(i, e ?? {}))
7021
+ if (Ut(i, e ?? {}))
7019
7022
  return s;
7020
7023
  Be(
7021
7024
  s,
@@ -7026,7 +7029,7 @@ function Lu(t, e) {
7026
7029
  return n.initialize({ options: e });
7027
7030
  }
7028
7031
  function Ku(t, e) {
7029
- const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
7032
+ const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(we);
7030
7033
  e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
7031
7034
  }
7032
7035
  function Ju(t, e, n) {
@@ -7222,7 +7225,7 @@ class Ze extends hi {
7222
7225
  e.pendingToken = this.pendingToken;
7223
7226
  else {
7224
7227
  const n = {};
7225
- this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
7228
+ this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Pt(n);
7226
7229
  }
7227
7230
  return e;
7228
7231
  }
@@ -7296,7 +7299,7 @@ class mi {
7296
7299
  * See the License for the specific language governing permissions and
7297
7300
  * limitations under the License.
7298
7301
  */
7299
- class jt extends mi {
7302
+ class Gt extends mi {
7300
7303
  constructor() {
7301
7304
  super(...arguments), this.scopes = [];
7302
7305
  }
@@ -7331,7 +7334,7 @@ class jt extends mi {
7331
7334
  * See the License for the specific language governing permissions and
7332
7335
  * limitations under the License.
7333
7336
  */
7334
- class Ie extends jt {
7337
+ class Ie extends Gt {
7335
7338
  constructor() {
7336
7339
  super(
7337
7340
  "facebook.com"
@@ -7402,7 +7405,7 @@ Ie.PROVIDER_ID = "facebook.com";
7402
7405
  * See the License for the specific language governing permissions and
7403
7406
  * limitations under the License.
7404
7407
  */
7405
- class Pe extends jt {
7408
+ class Pe extends Gt {
7406
7409
  constructor() {
7407
7410
  super(
7408
7411
  "google.com"
@@ -7478,7 +7481,7 @@ Pe.PROVIDER_ID = "google.com";
7478
7481
  * See the License for the specific language governing permissions and
7479
7482
  * limitations under the License.
7480
7483
  */
7481
- class Oe extends jt {
7484
+ class Oe extends Gt {
7482
7485
  constructor() {
7483
7486
  super(
7484
7487
  "github.com"
@@ -7542,7 +7545,7 @@ Oe.PROVIDER_ID = "github.com";
7542
7545
  * See the License for the specific language governing permissions and
7543
7546
  * limitations under the License.
7544
7547
  */
7545
- class Te extends jt {
7548
+ class Te extends Gt {
7546
7549
  constructor() {
7547
7550
  super(
7548
7551
  "twitter.com"
@@ -7658,10 +7661,10 @@ function Mr(t) {
7658
7661
  * See the License for the specific language governing permissions and
7659
7662
  * limitations under the License.
7660
7663
  */
7661
- class Kt extends qe {
7664
+ class Lt extends qe {
7662
7665
  constructor(e, n, r, s) {
7663
7666
  var i;
7664
- super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
7667
+ super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
7665
7668
  appName: e.name,
7666
7669
  tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
7667
7670
  _serverResponse: n.customData._serverResponse,
@@ -7669,16 +7672,16 @@ class Kt extends qe {
7669
7672
  };
7670
7673
  }
7671
7674
  static _fromErrorAndOperation(e, n, r, s) {
7672
- return new Kt(e, n, r, s);
7675
+ return new Lt(e, n, r, s);
7673
7676
  }
7674
7677
  }
7675
7678
  function fi(t, e, n, r) {
7676
7679
  return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
7677
- throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
7680
+ throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
7678
7681
  });
7679
7682
  }
7680
7683
  async function tl(t, e, n = !1) {
7681
- const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
7684
+ const r = await vt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
7682
7685
  return Le._forOperation(t, "link", r);
7683
7686
  }
7684
7687
  /**
@@ -7703,7 +7706,7 @@ async function nl(t, e, n = !1) {
7703
7706
  return Promise.reject(Re(r));
7704
7707
  const s = "reauthenticate";
7705
7708
  try {
7706
- const i = await Bt(t, fi(r, s, e, t), n);
7709
+ const i = await vt(t, fi(r, s, e, t), n);
7707
7710
  M(
7708
7711
  i.idToken,
7709
7712
  r,
@@ -7804,7 +7807,7 @@ function al(t, e, n, r) {
7804
7807
  function ol(t, e, n) {
7805
7808
  return ht(t).beforeAuthStateChanged(e, n);
7806
7809
  }
7807
- const Jt = "__sak";
7810
+ const Kt = "__sak";
7808
7811
  /**
7809
7812
  * @license
7810
7813
  * Copyright 2019 Google LLC
@@ -7827,7 +7830,7 @@ class gi {
7827
7830
  }
7828
7831
  _isAvailable() {
7829
7832
  try {
7830
- return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
7833
+ return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
7831
7834
  } catch {
7832
7835
  return Promise.resolve(!1);
7833
7836
  }
@@ -8247,7 +8250,7 @@ function hl(t) {
8247
8250
  * See the License for the specific language governing permissions and
8248
8251
  * limitations under the License.
8249
8252
  */
8250
- function vi() {
8253
+ function wi() {
8251
8254
  return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
8252
8255
  }
8253
8256
  async function ml() {
@@ -8264,7 +8267,7 @@ function fl() {
8264
8267
  return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
8265
8268
  }
8266
8269
  function gl() {
8267
- return vi() ? self : null;
8270
+ return wi() ? self : null;
8268
8271
  }
8269
8272
  /**
8270
8273
  * @license
@@ -8282,8 +8285,8 @@ function gl() {
8282
8285
  * See the License for the specific language governing permissions and
8283
8286
  * limitations under the License.
8284
8287
  */
8285
- const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
8286
- class Yt {
8288
+ const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
8289
+ class jt {
8287
8290
  constructor(e) {
8288
8291
  this.request = e;
8289
8292
  }
@@ -8298,27 +8301,27 @@ class Yt {
8298
8301
  }
8299
8302
  }
8300
8303
  function cn(t, e) {
8301
- return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
8304
+ return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
8302
8305
  }
8303
8306
  function yl() {
8304
- const t = indexedDB.deleteDatabase(wi);
8305
- return new Yt(t).toPromise();
8307
+ const t = indexedDB.deleteDatabase(vi);
8308
+ return new jt(t).toPromise();
8306
8309
  }
8307
8310
  function jn() {
8308
- const t = indexedDB.open(wi, pl);
8311
+ const t = indexedDB.open(vi, pl);
8309
8312
  return new Promise((e, n) => {
8310
8313
  t.addEventListener("error", () => {
8311
8314
  n(t.error);
8312
8315
  }), t.addEventListener("upgradeneeded", () => {
8313
8316
  const r = t.result;
8314
8317
  try {
8315
- r.createObjectStore(_t, { keyPath: Bi });
8318
+ r.createObjectStore(Jt, { keyPath: Bi });
8316
8319
  } catch (s) {
8317
8320
  n(s);
8318
8321
  }
8319
8322
  }), t.addEventListener("success", async () => {
8320
8323
  const r = t.result;
8321
- r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
8324
+ r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await jn()));
8322
8325
  });
8323
8326
  });
8324
8327
  }
@@ -8327,17 +8330,17 @@ async function Ir(t, e, n) {
8327
8330
  [Bi]: e,
8328
8331
  value: n
8329
8332
  });
8330
- return new Yt(r).toPromise();
8333
+ return new jt(r).toPromise();
8331
8334
  }
8332
8335
  async function bl(t, e) {
8333
- const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
8336
+ const n = cn(t, !1).get(e), r = await new jt(n).toPromise();
8334
8337
  return r === void 0 ? null : r.value;
8335
8338
  }
8336
8339
  function Pr(t, e) {
8337
8340
  const n = cn(t, !0).delete(e);
8338
- return new Yt(n).toPromise();
8341
+ return new jt(n).toPromise();
8339
8342
  }
8340
- const vl = 800, wl = 3;
8343
+ const wl = 800, vl = 3;
8341
8344
  class Di {
8342
8345
  constructor() {
8343
8346
  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(() => {
@@ -8354,7 +8357,7 @@ class Di {
8354
8357
  const r = await this._openDb();
8355
8358
  return await e(r);
8356
8359
  } catch (r) {
8357
- if (n++ > wl)
8360
+ if (n++ > vl)
8358
8361
  throw r;
8359
8362
  this.db && (this.db.close(), this.db = void 0);
8360
8363
  }
@@ -8364,7 +8367,7 @@ class Di {
8364
8367
  * postMessage interface to send these events to the worker ourselves.
8365
8368
  */
8366
8369
  async initializeServiceWorkerMessaging() {
8367
- return vi() ? this.initializeReceiver() : this.initializeSender();
8370
+ return wi() ? this.initializeReceiver() : this.initializeSender();
8368
8371
  }
8369
8372
  /**
8370
8373
  * As the worker we should listen to events from the main window.
@@ -8427,7 +8430,7 @@ class Di {
8427
8430
  if (!indexedDB)
8428
8431
  return !1;
8429
8432
  const e = await jn();
8430
- return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
8433
+ return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
8431
8434
  } catch {
8432
8435
  }
8433
8436
  return !1;
@@ -8453,7 +8456,7 @@ class Di {
8453
8456
  async _poll() {
8454
8457
  const e = await this._withRetries((s) => {
8455
8458
  const i = cn(s, !1).getAll();
8456
- return new Yt(i).toPromise();
8459
+ return new jt(i).toPromise();
8457
8460
  });
8458
8461
  if (!e)
8459
8462
  return [];
@@ -8475,7 +8478,7 @@ class Di {
8475
8478
  s(n);
8476
8479
  }
8477
8480
  startPolling() {
8478
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
8481
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), wl);
8479
8482
  }
8480
8483
  stopPolling() {
8481
8484
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -8489,7 +8492,7 @@ class Di {
8489
8492
  }
8490
8493
  Di.type = "LOCAL";
8491
8494
  const Bl = Di;
8492
- new Gt(3e4, 6e4);
8495
+ new Tt(3e4, 6e4);
8493
8496
  /**
8494
8497
  * @license
8495
8498
  * Copyright 2021 Google LLC
@@ -8507,7 +8510,7 @@ new Gt(3e4, 6e4);
8507
8510
  * limitations under the License.
8508
8511
  */
8509
8512
  function Dl(t, e) {
8510
- return e ? ve(e) : (M(
8513
+ return e ? we(e) : (M(
8511
8514
  t._popupRedirectResolver,
8512
8515
  t,
8513
8516
  "argument-error"
@@ -8680,7 +8683,7 @@ class Ci {
8680
8683
  * See the License for the specific language governing permissions and
8681
8684
  * limitations under the License.
8682
8685
  */
8683
- const Il = new Gt(2e3, 1e4);
8686
+ const Il = new Tt(2e3, 1e4);
8684
8687
  class _e extends Ci {
8685
8688
  constructor(e, n, r, s, i) {
8686
8689
  super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
@@ -8766,7 +8769,7 @@ _e.currentPopupAction = null;
8766
8769
  * See the License for the specific language governing permissions and
8767
8770
  * limitations under the License.
8768
8771
  */
8769
- const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
8772
+ const Pl = "pendingRedirect", Ht = /* @__PURE__ */ new Map();
8770
8773
  class Ol extends Ci {
8771
8774
  constructor(e, n, r = !1) {
8772
8775
  super(e, [
@@ -8782,7 +8785,7 @@ class Ol extends Ci {
8782
8785
  * just return it.
8783
8786
  */
8784
8787
  async execute() {
8785
- let e = Qt.get(this.auth._key());
8788
+ let e = Ht.get(this.auth._key());
8786
8789
  if (!e) {
8787
8790
  try {
8788
8791
  const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
@@ -8790,9 +8793,9 @@ class Ol extends Ci {
8790
8793
  } catch (n) {
8791
8794
  e = () => Promise.reject(n);
8792
8795
  }
8793
- Qt.set(this.auth._key(), e);
8796
+ Ht.set(this.auth._key(), e);
8794
8797
  }
8795
- return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
8798
+ return this.bypassAuthState || Ht.set(this.auth._key(), () => Promise.resolve(null)), e();
8796
8799
  }
8797
8800
  async onAuthEvent(e) {
8798
8801
  if (e.type === "signInViaRedirect")
@@ -8821,13 +8824,13 @@ async function Tl(t, e) {
8821
8824
  return await r._remove(n), s;
8822
8825
  }
8823
8826
  function Gl(t, e) {
8824
- Qt.set(t._key(), e);
8827
+ Ht.set(t._key(), e);
8825
8828
  }
8826
8829
  function jl(t) {
8827
- return ve(t._redirectPersistence);
8830
+ return we(t._redirectPersistence);
8828
8831
  }
8829
8832
  function Yl(t) {
8830
- return Ht(Pl, t.config.apiKey, t.name);
8833
+ return Nt(Pl, t.config.apiKey, t.name);
8831
8834
  }
8832
8835
  async function Vl(t, e, n = !1) {
8833
8836
  if (pe(t.app))
@@ -8988,7 +8991,7 @@ function Ql(t) {
8988
8991
  * See the License for the specific language governing permissions and
8989
8992
  * limitations under the License.
8990
8993
  */
8991
- const Xl = new Gt(3e4, 6e4);
8994
+ const Xl = new Tt(3e4, 6e4);
8992
8995
  function Tr() {
8993
8996
  const t = de().___jsl;
8994
8997
  if (t != null && t.H) {
@@ -9031,12 +9034,12 @@ function Sl(t) {
9031
9034
  }, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
9032
9035
  }
9033
9036
  }).catch((e) => {
9034
- throw Xt = null, e;
9037
+ throw Qt = null, e;
9035
9038
  });
9036
9039
  }
9037
- let Xt = null;
9040
+ let Qt = null;
9038
9041
  function Ul(t) {
9039
- return Xt = Xt || Sl(t), Xt;
9042
+ return Qt = Qt || Sl(t), Qt;
9040
9043
  }
9041
9044
  /**
9042
9045
  * @license
@@ -9054,7 +9057,7 @@ function Ul(t) {
9054
9057
  * See the License for the specific language governing permissions and
9055
9058
  * limitations under the License.
9056
9059
  */
9057
- const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
9060
+ const Wl = new Tt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
9058
9061
  style: {
9059
9062
  position: "absolute",
9060
9063
  top: "-100px",
@@ -9080,11 +9083,11 @@ function Jl(t) {
9080
9083
  const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
9081
9084
  apiKey: e.apiKey,
9082
9085
  appName: t.name,
9083
- v: Tt
9086
+ v: Ot
9084
9087
  }, s = Kl.get(t.config.apiHost);
9085
9088
  s && (r.eid = s);
9086
9089
  const i = t._getFrameworks();
9087
- return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
9090
+ return i.length && (r.fw = i.join(",")), `${n}?${Pt(r).slice(1)}`;
9088
9091
  }
9089
9092
  async function _l(t) {
9090
9093
  const e = await Ul(t), n = de().gapi;
@@ -9163,7 +9166,7 @@ function sA(t, e, n, r = eA, s = tA) {
9163
9166
  left: a
9164
9167
  }), A = K().toLowerCase();
9165
9168
  n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
9166
- const f = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
9169
+ const f = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
9167
9170
  if (Ru(A) && c !== "_self")
9168
9171
  return iA(e || "", c), new Gr(null);
9169
9172
  const p = window.open(e || "", c, f);
@@ -9219,7 +9222,7 @@ async function jr(t, e, n, r, s, i) {
9219
9222
  appName: t.name,
9220
9223
  authType: n,
9221
9224
  redirectUrl: r,
9222
- v: Tt,
9225
+ v: Ot,
9223
9226
  eventId: s
9224
9227
  };
9225
9228
  if (e instanceof mi) {
@@ -9227,7 +9230,7 @@ async function jr(t, e, n, r, s, i) {
9227
9230
  for (const [f, p] of Object.entries({}))
9228
9231
  a[f] = p;
9229
9232
  }
9230
- if (e instanceof jt) {
9233
+ if (e instanceof Gt) {
9231
9234
  const f = e.getScopes().filter((p) => p !== "");
9232
9235
  f.length > 0 && (a.scopes = f.join(","));
9233
9236
  }
@@ -9236,7 +9239,7 @@ async function jr(t, e, n, r, s, i) {
9236
9239
  for (const f of Object.keys(c))
9237
9240
  c[f] === void 0 && delete c[f];
9238
9241
  const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
9239
- return `${uA(t)}?${Ot(c).slice(1)}${A}`;
9242
+ return `${uA(t)}?${Pt(c).slice(1)}${A}`;
9240
9243
  }
9241
9244
  function uA({ config: t }) {
9242
9245
  return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
@@ -9404,7 +9407,7 @@ function hA(t) {
9404
9407
  }
9405
9408
  }
9406
9409
  function mA(t) {
9407
- vt(new dt(
9410
+ bt(new dt(
9408
9411
  "auth",
9409
9412
  (e, { options: n }) => {
9410
9413
  const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
@@ -9430,7 +9433,7 @@ function mA(t) {
9430
9433
  "auth-internal"
9431
9434
  /* _ComponentName.AUTH_INTERNAL */
9432
9435
  ).initialize();
9433
- })), vt(new dt(
9436
+ })), bt(new dt(
9434
9437
  "auth-internal",
9435
9438
  (e) => {
9436
9439
  const n = an(e.getProvider(
@@ -9539,7 +9542,7 @@ var un = class {
9539
9542
  }
9540
9543
  onUnsubscribe() {
9541
9544
  }
9542
- }, He, Ge, rt, Xr, vA = (Xr = class extends un {
9545
+ }, He, Ge, rt, Xr, wA = (Xr = class extends un {
9543
9546
  constructor() {
9544
9547
  super();
9545
9548
  G(this, He);
@@ -9580,7 +9583,7 @@ var un = class {
9580
9583
  var e;
9581
9584
  return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
9582
9585
  }
9583
- }, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
9586
+ }, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new wA(), vA = {
9584
9587
  // We need the wrapper function syntax below instead of direct references to
9585
9588
  // global setTimeout etc.
9586
9589
  //
@@ -9604,7 +9607,7 @@ var un = class {
9604
9607
  //
9605
9608
  // We settle for type safety for the TimeoutProvider type, and accept that
9606
9609
  // this class is unsafe internally to allow for extension.
9607
- G(this, oe, wA);
9610
+ G(this, oe, vA);
9608
9611
  G(this, Qe, !1);
9609
9612
  }
9610
9613
  setTimeoutProvider(t) {
@@ -9660,7 +9663,7 @@ function Fr(t, e) {
9660
9663
  if (r) {
9661
9664
  if (e.queryHash !== er(a, e.options))
9662
9665
  return !1;
9663
- } else if (!Ct(e.queryKey, a))
9666
+ } else if (!Dt(e.queryKey, a))
9664
9667
  return !1;
9665
9668
  }
9666
9669
  if (n !== "all") {
@@ -9676,24 +9679,24 @@ function kr(t, e) {
9676
9679
  if (!e.options.mutationKey)
9677
9680
  return !1;
9678
9681
  if (n) {
9679
- if (Dt(e.options.mutationKey) !== Dt(i))
9682
+ if (Bt(e.options.mutationKey) !== Bt(i))
9680
9683
  return !1;
9681
- } else if (!Ct(e.options.mutationKey, i))
9684
+ } else if (!Dt(e.options.mutationKey, i))
9682
9685
  return !1;
9683
9686
  }
9684
9687
  return !(r && e.state.status !== r || s && !s(e));
9685
9688
  }
9686
9689
  function er(t, e) {
9687
- return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
9690
+ return ((e == null ? void 0 : e.queryKeyHashFn) || Bt)(t);
9688
9691
  }
9689
- function Dt(t) {
9692
+ function Bt(t) {
9690
9693
  return JSON.stringify(
9691
9694
  t,
9692
9695
  (e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
9693
9696
  );
9694
9697
  }
9695
- function Ct(t, e) {
9696
- return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
9698
+ function Dt(t, e) {
9699
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Dt(t[n], e[n])) : !1;
9697
9700
  }
9698
9701
  var OA = Object.prototype.hasOwnProperty;
9699
9702
  function xn(t, e, n = 0) {
@@ -9705,16 +9708,16 @@ function xn(t, e, n = 0) {
9705
9708
  const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
9706
9709
  let A = 0;
9707
9710
  for (let f = 0; f < c; f++) {
9708
- const p = r ? f : a[f], B = t[p], w = e[p];
9709
- if (B === w) {
9711
+ const p = r ? f : a[f], B = t[p], v = e[p];
9712
+ if (B === v) {
9710
9713
  l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
9711
9714
  continue;
9712
9715
  }
9713
- if (B === null || w === null || typeof B != "object" || typeof w != "object") {
9714
- l[p] = w;
9716
+ if (B === null || v === null || typeof B != "object" || typeof v != "object") {
9717
+ l[p] = v;
9715
9718
  continue;
9716
9719
  }
9717
- const O = xn(B, w, n + 1);
9720
+ const O = xn(B, v, n + 1);
9718
9721
  l[p] = O, O === B && A++;
9719
9722
  }
9720
9723
  return i === c && A === i ? t : l;
@@ -9774,11 +9777,11 @@ function YA(t, e, n = 0) {
9774
9777
  const r = [e, ...t];
9775
9778
  return n && r.length > n ? r.slice(0, -1) : r;
9776
9779
  }
9777
- var $t = /* @__PURE__ */ Symbol();
9780
+ var _t = /* @__PURE__ */ Symbol();
9778
9781
  function Ii(t, e) {
9779
- return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
9782
+ return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
9780
9783
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
9781
- ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9784
+ ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9782
9785
  }
9783
9786
  function hd(t, e) {
9784
9787
  return typeof t == "function" ? t(...e) : !!t;
@@ -9923,12 +9926,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
9923
9926
  isOnline() {
9924
9927
  return h(this, st);
9925
9928
  }
9926
- }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
9929
+ }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new RA();
9927
9930
  function qA(t) {
9928
9931
  return Math.min(1e3 * 2 ** t, 3e4);
9929
9932
  }
9930
9933
  function Oi(t) {
9931
- return (t ?? "online") === "online" ? en.isOnline() : !0;
9934
+ return (t ?? "online") === "online" ? $t.isOnline() : !0;
9932
9935
  }
9933
9936
  var kn = class extends Error {
9934
9937
  constructor(t) {
@@ -9947,11 +9950,11 @@ function Ti(t) {
9947
9950
  e = !0;
9948
9951
  }, l = () => {
9949
9952
  e = !1;
9950
- }, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9953
+ }, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9951
9954
  i() || (r == null || r(), s.resolve(I));
9952
9955
  }, B = (I) => {
9953
9956
  i() || (r == null || r(), s.reject(I));
9954
- }, w = () => new Promise((I) => {
9957
+ }, v = () => new Promise((I) => {
9955
9958
  var V;
9956
9959
  r = (R) => {
9957
9960
  (i() || A()) && I(R);
@@ -9973,12 +9976,12 @@ function Ti(t) {
9973
9976
  var U;
9974
9977
  if (i())
9975
9978
  return;
9976
- const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
9979
+ const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, w = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
9977
9980
  if (e || !H) {
9978
9981
  B(R);
9979
9982
  return;
9980
9983
  }
9981
- n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
9984
+ n++, (U = t.onFail) == null || U.call(t, n, R), TA(w).then(() => A() ? void 0 : v()).then(() => {
9982
9985
  e ? B(R) : O();
9983
9986
  });
9984
9987
  });
@@ -9991,7 +9994,7 @@ function Ti(t) {
9991
9994
  cancelRetry: c,
9992
9995
  continueRetry: l,
9993
9996
  canStart: f,
9994
- start: () => (f() ? O() : w().then(O), s)
9997
+ start: () => (f() ? O() : v().then(O), s)
9995
9998
  };
9996
9999
  }
9997
10000
  var Xe, Wr, Gi = (Wr = class {
@@ -10019,8 +10022,8 @@ var Xe, Wr, Gi = (Wr = class {
10019
10022
  function NA(t) {
10020
10023
  return {
10021
10024
  onFetch: (e, n) => {
10022
- var f, p, B, w, O;
10023
- const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
10025
+ var f, p, B, v, O;
10026
+ const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
10024
10027
  let c = { pages: [], pageParams: [] }, l = 0;
10025
10028
  const A = async () => {
10026
10029
  let I = !1;
@@ -10030,16 +10033,16 @@ function NA(t) {
10030
10033
  () => e.signal,
10031
10034
  () => I = !0
10032
10035
  );
10033
- }, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
10036
+ }, R = Ii(e.options, e.fetchOptions), Q = async (Y, w, H) => {
10034
10037
  if (I)
10035
10038
  return Promise.reject(e.signal.reason);
10036
- if (v == null && Y.pages.length)
10039
+ if (w == null && Y.pages.length)
10037
10040
  return Promise.resolve(Y);
10038
10041
  const ee = (() => {
10039
10042
  const g = {
10040
10043
  client: e.client,
10041
10044
  queryKey: e.queryKey,
10042
- pageParam: v,
10045
+ pageParam: w,
10043
10046
  direction: H ? "backward" : "forward",
10044
10047
  meta: e.options.meta
10045
10048
  };
@@ -10047,22 +10050,22 @@ function NA(t) {
10047
10050
  })(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
10048
10051
  return {
10049
10052
  pages: m(Y.pages, q, u),
10050
- pageParams: m(Y.pageParams, v, u)
10053
+ pageParams: m(Y.pageParams, w, u)
10051
10054
  };
10052
10055
  };
10053
10056
  if (s && i.length) {
10054
- const Y = s === "backward", v = Y ? HA : Nr, H = {
10057
+ const Y = s === "backward", w = Y ? HA : Nr, H = {
10055
10058
  pages: i,
10056
10059
  pageParams: a
10057
- }, U = v(r, H);
10060
+ }, U = w(r, H);
10058
10061
  c = await Q(H, U, Y);
10059
10062
  } else {
10060
10063
  const Y = t ?? i.length;
10061
10064
  do {
10062
- const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
10063
- if (l > 0 && v == null)
10065
+ const w = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
10066
+ if (l > 0 && w == null)
10064
10067
  break;
10065
- c = await Q(c, v), l++;
10068
+ c = await Q(c, w), l++;
10066
10069
  } while (l < Y);
10067
10070
  }
10068
10071
  return c;
@@ -10097,7 +10100,7 @@ function HA(t, { pages: e, pageParams: n }) {
10097
10100
  var r;
10098
10101
  return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
10099
10102
  }
10100
- var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10103
+ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10101
10104
  constructor(e) {
10102
10105
  super();
10103
10106
  G(this, ne);
@@ -10107,9 +10110,9 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10107
10110
  G(this, re);
10108
10111
  G(this, Ue);
10109
10112
  G(this, S);
10110
- G(this, Et);
10113
+ G(this, Ct);
10111
10114
  G(this, We);
10112
- D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
10115
+ D(this, We, !1), D(this, Ct, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
10113
10116
  }
10114
10117
  get meta() {
10115
10118
  return this.options.meta;
@@ -10122,7 +10125,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10122
10125
  return (e = h(this, S)) == null ? void 0 : e.promise;
10123
10126
  }
10124
10127
  setOptions(e) {
10125
- if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
10128
+ if (this.options = { ...h(this, Ct), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
10126
10129
  const n = Qr(this.options);
10127
10130
  n.data !== void 0 && (this.setState(
10128
10131
  Hr(n.data, n.dataUpdatedAt)
@@ -10164,7 +10167,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10164
10167
  );
10165
10168
  }
10166
10169
  isDisabled() {
10167
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
10170
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
10168
10171
  }
10169
10172
  isFetched() {
10170
10173
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
@@ -10205,7 +10208,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10205
10208
  this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
10206
10209
  }
10207
10210
  async fetch(e, n) {
10208
- var A, f, p, B, w, O, I, V, R, Q, Y;
10211
+ var A, f, p, B, v, O, I, V, R, Q, Y;
10209
10212
  if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
10210
10213
  // re-start the fetch; there is a chance that the query is still in a
10211
10214
  // pending state when that happens
@@ -10216,19 +10219,19 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10216
10219
  return h(this, S).continueRetry(), h(this, S).promise;
10217
10220
  }
10218
10221
  if (e && this.setOptions(e), !this.options.queryFn) {
10219
- const v = this.observers.find((H) => H.options.queryFn);
10220
- v && this.setOptions(v.options);
10222
+ const w = this.observers.find((H) => H.options.queryFn);
10223
+ w && this.setOptions(w.options);
10221
10224
  }
10222
10225
  process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
10223
10226
  "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
10224
10227
  ));
10225
- const r = new AbortController(), s = (v) => {
10226
- Object.defineProperty(v, "signal", {
10228
+ const r = new AbortController(), s = (w) => {
10229
+ Object.defineProperty(w, "signal", {
10227
10230
  enumerable: !0,
10228
10231
  get: () => (D(this, We, !0), r.signal)
10229
10232
  });
10230
10233
  }, i = () => {
10231
- const v = Ii(this.options, n), U = (() => {
10234
+ const w = Ii(this.options, n), U = (() => {
10232
10235
  const ee = {
10233
10236
  client: h(this, Ue),
10234
10237
  queryKey: this.queryKey,
@@ -10237,12 +10240,12 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10237
10240
  return s(ee), ee;
10238
10241
  })();
10239
10242
  return D(this, We, !1), this.options.persister ? this.options.persister(
10240
- v,
10243
+ w,
10241
10244
  U,
10242
10245
  this
10243
- ) : v(U);
10246
+ ) : w(U);
10244
10247
  }, c = (() => {
10245
- const v = {
10248
+ const w = {
10246
10249
  fetchOptions: n,
10247
10250
  options: this.options,
10248
10251
  queryKey: this.queryKey,
@@ -10250,21 +10253,21 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10250
10253
  state: this.state,
10251
10254
  fetchFn: i
10252
10255
  };
10253
- return s(v), v;
10256
+ return s(w), w;
10254
10257
  })(), l = h(this, at) === "infinite" ? NA(
10255
10258
  this.options.pages
10256
10259
  ) : this.options.behavior;
10257
10260
  l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = c.fetchOptions) == null ? void 0 : f.meta)) && z(this, ne, me).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
10258
10261
  initialPromise: n == null ? void 0 : n.initialPromise,
10259
10262
  fn: c.fetchFn,
10260
- onCancel: (v) => {
10261
- v instanceof kn && v.revert && this.setState({
10263
+ onCancel: (w) => {
10264
+ w instanceof kn && w.revert && this.setState({
10262
10265
  ...h(this, ot),
10263
10266
  fetchStatus: "idle"
10264
10267
  }), r.abort();
10265
10268
  },
10266
- onFail: (v, H) => {
10267
- z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
10269
+ onFail: (w, H) => {
10270
+ z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
10268
10271
  },
10269
10272
  onPause: () => {
10270
10273
  z(this, ne, me).call(this, { type: "pause" });
@@ -10278,45 +10281,45 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10278
10281
  canRun: () => !0
10279
10282
  }));
10280
10283
  try {
10281
- const v = await h(this, S).start();
10282
- if (v === void 0)
10284
+ const w = await h(this, S).start();
10285
+ if (w === void 0)
10283
10286
  throw process.env.NODE_ENV !== "production" && console.error(
10284
10287
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
10285
10288
  ), new Error(`${this.queryHash} data is undefined`);
10286
- return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
10289
+ return this.setData(w), (v = (B = h(this, re).config).onSuccess) == null || v.call(B, w, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
10287
10290
  O,
10288
- v,
10291
+ w,
10289
10292
  this.state.error,
10290
10293
  this
10291
- ), v;
10292
- } catch (v) {
10293
- if (v instanceof kn) {
10294
- if (v.silent)
10294
+ ), w;
10295
+ } catch (w) {
10296
+ if (w instanceof kn) {
10297
+ if (w.silent)
10295
10298
  return h(this, S).promise;
10296
- if (v.revert) {
10299
+ if (w.revert) {
10297
10300
  if (this.state.data === void 0)
10298
- throw v;
10301
+ throw w;
10299
10302
  return this.state.data;
10300
10303
  }
10301
10304
  }
10302
10305
  throw z(this, ne, me).call(this, {
10303
10306
  type: "error",
10304
- error: v
10307
+ error: w
10305
10308
  }), (R = (V = h(this, re).config).onError) == null || R.call(
10306
10309
  V,
10307
- v,
10310
+ w,
10308
10311
  this
10309
10312
  ), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
10310
10313
  Q,
10311
10314
  this.state.data,
10312
- v,
10315
+ w,
10313
10316
  this
10314
- ), v;
10317
+ ), w;
10315
10318
  } finally {
10316
10319
  this.scheduleGc();
10317
10320
  }
10318
10321
  }
10319
- }, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
10322
+ }, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Ct = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
10320
10323
  return this.state.fetchStatus === "paused" && this.state.status === "pending";
10321
10324
  }, me = function(e) {
10322
10325
  const n = (r) => {
@@ -10425,15 +10428,15 @@ function Qr(t) {
10425
10428
  fetchStatus: "idle"
10426
10429
  };
10427
10430
  }
10428
- var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10431
+ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10429
10432
  constructor(e) {
10430
10433
  super();
10431
10434
  G(this, ue);
10432
- G(this, Mt);
10435
+ G(this, Et);
10433
10436
  G(this, ce);
10434
10437
  G(this, Z);
10435
10438
  G(this, ze);
10436
- D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
10439
+ D(this, Et, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
10437
10440
  }
10438
10441
  setOptions(e) {
10439
10442
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -10464,11 +10467,11 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10464
10467
  this.execute(this.state.variables);
10465
10468
  }
10466
10469
  async execute(e) {
10467
- var a, c, l, A, f, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
10470
+ var a, c, l, A, f, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
10468
10471
  const n = () => {
10469
10472
  z(this, ue, Me).call(this, { type: "continue" });
10470
10473
  }, r = {
10471
- client: h(this, Mt),
10474
+ client: h(this, Et),
10472
10475
  meta: this.options.meta,
10473
10476
  mutationKey: this.options.mutationKey
10474
10477
  };
@@ -10522,7 +10525,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10522
10525
  e,
10523
10526
  this.state.context,
10524
10527
  r
10525
- )), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
10528
+ )), await ((v = (B = h(this, Z).config).onSettled) == null ? void 0 : v.call(
10526
10529
  B,
10527
10530
  q,
10528
10531
  null,
@@ -10563,8 +10566,8 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10563
10566
  Promise.reject(u);
10564
10567
  }
10565
10568
  try {
10566
- await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
10567
- v,
10569
+ await ((H = (w = h(this, Z).config).onSettled) == null ? void 0 : H.call(
10570
+ w,
10568
10571
  void 0,
10569
10572
  q,
10570
10573
  this.state.variables,
@@ -10592,7 +10595,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10592
10595
  h(this, Z).runNext(this);
10593
10596
  }
10594
10597
  }
10595
- }, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
10598
+ }, Et = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
10596
10599
  const n = (r) => {
10597
10600
  switch (e.type) {
10598
10601
  case "failed":
@@ -10669,19 +10672,19 @@ function UA() {
10669
10672
  submittedAt: 0
10670
10673
  };
10671
10674
  }
10672
- var fe, ae, It, Lr, Yi = (Lr = class extends un {
10675
+ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10673
10676
  constructor(n = {}) {
10674
10677
  super();
10675
10678
  G(this, fe);
10676
10679
  G(this, ae);
10677
- G(this, It);
10678
- this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
10680
+ G(this, Mt);
10681
+ this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
10679
10682
  }
10680
10683
  build(n, r, s) {
10681
10684
  const i = new SA({
10682
10685
  client: n,
10683
10686
  mutationCache: this,
10684
- mutationId: ++xt(this, It)._,
10687
+ mutationId: ++Vt(this, Mt)._,
10685
10688
  options: n.defaultMutationOptions(r),
10686
10689
  state: s
10687
10690
  });
@@ -10689,7 +10692,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10689
10692
  }
10690
10693
  add(n) {
10691
10694
  h(this, fe).add(n);
10692
- const r = Rt(n);
10695
+ const r = kt(n);
10693
10696
  if (typeof r == "string") {
10694
10697
  const s = h(this, ae).get(r);
10695
10698
  s ? s.push(n) : h(this, ae).set(r, [n]);
@@ -10698,7 +10701,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10698
10701
  }
10699
10702
  remove(n) {
10700
10703
  if (h(this, fe).delete(n)) {
10701
- const r = Rt(n);
10704
+ const r = kt(n);
10702
10705
  if (typeof r == "string") {
10703
10706
  const s = h(this, ae).get(r);
10704
10707
  if (s)
@@ -10711,7 +10714,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10711
10714
  this.notify({ type: "removed", mutation: n });
10712
10715
  }
10713
10716
  canRun(n) {
10714
- const r = Rt(n);
10717
+ const r = kt(n);
10715
10718
  if (typeof r == "string") {
10716
10719
  const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
10717
10720
  (a) => a.state.status === "pending"
@@ -10722,7 +10725,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10722
10725
  }
10723
10726
  runNext(n) {
10724
10727
  var s;
10725
- const r = Rt(n);
10728
+ const r = kt(n);
10726
10729
  if (typeof r == "string") {
10727
10730
  const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
10728
10731
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
@@ -10763,8 +10766,8 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10763
10766
  )
10764
10767
  );
10765
10768
  }
10766
- }, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
10767
- function Rt(t) {
10769
+ }, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
10770
+ function kt(t) {
10768
10771
  var e;
10769
10772
  return (e = t.options.scope) == null ? void 0 : e.id;
10770
10773
  }
@@ -10853,15 +10856,15 @@ var le, Kr, Vi = (Kr = class extends un {
10853
10856
  D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
10854
10857
  }
10855
10858
  mount() {
10856
- xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10859
+ Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10857
10860
  e && (await this.resumePausedMutations(), h(this, N).onFocus());
10858
- })), D(this, At, en.subscribe(async (e) => {
10861
+ })), D(this, At, $t.subscribe(async (e) => {
10859
10862
  e && (await this.resumePausedMutations(), h(this, N).onOnline());
10860
10863
  })));
10861
10864
  }
10862
10865
  unmount() {
10863
10866
  var e, n;
10864
- xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
10867
+ Vt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
10865
10868
  }
10866
10869
  isFetching(e) {
10867
10870
  return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -10983,7 +10986,7 @@ var le, Kr, Vi = (Kr = class extends un {
10983
10986
  return e._type = "infinite", this.ensureQueryData(e);
10984
10987
  }
10985
10988
  resumePausedMutations() {
10986
- return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10989
+ return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10987
10990
  }
10988
10991
  getQueryCache() {
10989
10992
  return h(this, N);
@@ -10998,7 +11001,7 @@ var le, Kr, Vi = (Kr = class extends un {
10998
11001
  D(this, Ve, e);
10999
11002
  }
11000
11003
  setQueryDefaults(e, n) {
11001
- h(this, ct).set(Dt(e), {
11004
+ h(this, ct).set(Bt(e), {
11002
11005
  queryKey: e,
11003
11006
  defaultOptions: n
11004
11007
  });
@@ -11006,11 +11009,11 @@ var le, Kr, Vi = (Kr = class extends un {
11006
11009
  getQueryDefaults(e) {
11007
11010
  const n = [...h(this, ct).values()], r = {};
11008
11011
  return n.forEach((s) => {
11009
- Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
11012
+ Dt(e, s.queryKey) && Object.assign(r, s.defaultOptions);
11010
11013
  }), r;
11011
11014
  }
11012
11015
  setMutationDefaults(e, n) {
11013
- h(this, ut).set(Dt(e), {
11016
+ h(this, ut).set(Bt(e), {
11014
11017
  mutationKey: e,
11015
11018
  defaultOptions: n
11016
11019
  });
@@ -11018,7 +11021,7 @@ var le, Kr, Vi = (Kr = class extends un {
11018
11021
  getMutationDefaults(e) {
11019
11022
  const n = [...h(this, ut).values()], r = {};
11020
11023
  return n.forEach((s) => {
11021
- Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
11024
+ Dt(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
11022
11025
  }), r;
11023
11026
  }
11024
11027
  defaultQueryOptions(e) {
@@ -11033,7 +11036,7 @@ var le, Kr, Vi = (Kr = class extends un {
11033
11036
  return n.queryHash || (n.queryHash = er(
11034
11037
  n.queryKey,
11035
11038
  n
11036
- )), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === $t && (n.enabled = !1), n;
11039
+ )), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === _t && (n.enabled = !1), n;
11037
11040
  }
11038
11041
  defaultMutationOptions(e) {
11039
11042
  return e != null && e._defaulted ? e : {
@@ -11118,7 +11121,7 @@ var KA = class extends Vi {
11118
11121
  queryCache: t.queryCache || new KA(),
11119
11122
  mutationCache: t.mutationCache || new JA()
11120
11123
  };
11121
- super(e), this.isRestoring = St(!1);
11124
+ super(e), this.isRestoring = Xt(!1);
11122
11125
  }
11123
11126
  isFetching(t = {}) {
11124
11127
  return super.isFetching(T(t));
@@ -11217,7 +11220,7 @@ var KA = class extends Vi {
11217
11220
  };
11218
11221
  const $A = Ki({
11219
11222
  history: Ji(),
11220
- routes: [...bt, ...pt].map((t) => ({
11223
+ routes: [...rn, ...pt].map((t) => ({
11221
11224
  ...t,
11222
11225
  component: os(
11223
11226
  _r({
@@ -11228,10 +11231,10 @@ const $A = Ki({
11228
11231
  });
11229
11232
  $A.beforeEach((t) => {
11230
11233
  var r;
11231
- const { currentCountry: e } = rn(), n = e.value;
11234
+ const { currentCountry: e } = nn(), n = e.value;
11232
11235
  if (!n) return !0;
11233
11236
  if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
11234
- const s = bt.find(
11237
+ const s = rn.find(
11235
11238
  (i) => {
11236
11239
  var a;
11237
11240
  return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
@@ -11241,17 +11244,17 @@ $A.beforeEach((t) => {
11241
11244
  }
11242
11245
  return !0;
11243
11246
  });
11244
- const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
11247
+ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ en({
11245
11248
  __name: "AppSidebar",
11246
11249
  setup(t) {
11247
- const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
11250
+ const e = nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
11248
11251
  $r(n.currentRoute, () => {
11249
11252
  let A = n.currentRoute.value.name;
11250
11253
  n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
11251
11254
  });
11252
- const i = bt.map((A) => {
11253
- var B, w;
11254
- if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
11255
+ const i = rn.map((A) => {
11256
+ var B, v;
11257
+ if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
11255
11258
  return;
11256
11259
  const f = A.meta.sidebarDisplay, p = {
11257
11260
  label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
@@ -11261,12 +11264,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11261
11264
  return n.push({ name: A.name });
11262
11265
  }
11263
11266
  };
11264
- return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
11267
+ return A.meta.sidebarNew && (p.badge = () => wn(ea.FmPill, { label: "New" })), p;
11265
11268
  }).filter((A) => !!A);
11266
11269
  function a(A, f) {
11267
11270
  return A.map((p) => {
11268
- var B, w;
11269
- return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== f ? [] : [
11271
+ var B, v;
11272
+ return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== f ? [] : [
11270
11273
  {
11271
11274
  label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
11272
11275
  value: p.name,
@@ -11291,16 +11294,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11291
11294
  };
11292
11295
  }).filter((A) => !!A), l = Nn(() => {
11293
11296
  const A = [...i];
11294
- return A.push({
11295
- label: "",
11296
- value: "divider",
11297
- disabled: !0
11298
- }), A.push({
11299
- label: r("financing.title"),
11300
- icon: "credit_score",
11301
- value: "divider",
11302
- disabled: !0
11303
- }), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
11297
+ return ed(e.sessionUser.value) && (A.push({
11304
11298
  label: "",
11305
11299
  value: "divider",
11306
11300
  disabled: !0
@@ -11331,7 +11325,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11331
11325
  });
11332
11326
  return (A, f) => {
11333
11327
  const p = es("FmCollapsibleTabs");
11334
- return nn(), Hn(p, {
11328
+ return tn(), Hn(p, {
11335
11329
  modelValue: s.value,
11336
11330
  "onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
11337
11331
  items: l.value,
@@ -11340,11 +11334,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11340
11334
  };
11341
11335
  }
11342
11336
  });
11343
- var nd = { 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" } };
11344
- const bd = /* @__PURE__ */ tn({
11337
+ var nd = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
11338
+ const bd = /* @__PURE__ */ en({
11345
11339
  __name: "App",
11346
11340
  setup(t) {
11347
- const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
11341
+ const { state: e } = Qo(), n = nn(), r = ts(), s = new _A();
11348
11342
  Wi(xi, s);
11349
11343
  const i = Ss(nd.firebase);
11350
11344
  async function a() {
@@ -11361,12 +11355,12 @@ const bd = /* @__PURE__ */ tn({
11361
11355
  s.unmount();
11362
11356
  }), (c, l) => {
11363
11357
  const A = es("RouterView");
11364
- return nn(), Hn(A, {
11358
+ return tn(), Hn(A, {
11365
11359
  key: ge(r).path
11366
11360
  });
11367
11361
  };
11368
11362
  }
11369
- }), vd = () => {
11363
+ }), wd = () => {
11370
11364
  const t = [
11371
11365
  { "en-US": na, "th-TH": sa, "zh-CN": aa },
11372
11366
  qi
@@ -11383,7 +11377,7 @@ const bd = /* @__PURE__ */ tn({
11383
11377
  },
11384
11378
  {}
11385
11379
  );
11386
- }, wd = [...pt, ...bt].map((t) => ({
11380
+ }, vd = [...pt, ...rn].map((t) => ({
11387
11381
  ...t,
11388
11382
  component: os(
11389
11383
  _r({ loader: t.component })
@@ -11391,7 +11385,7 @@ const bd = /* @__PURE__ */ tn({
11391
11385
  }));
11392
11386
  export {
11393
11387
  xa as A,
11394
- wd as B,
11388
+ vd as B,
11395
11389
  un as S,
11396
11390
  yr as _,
11397
11391
  Vn as a,
@@ -11419,5 +11413,5 @@ export {
11419
11413
  ua as w,
11420
11414
  ld as x,
11421
11415
  bd as y,
11422
- vd as z
11416
+ wd as z
11423
11417
  };