@feedmepos/mf-payment 1.7.5 → 1.7.6-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-JYZcfqUo.js → Actions.vue_vue_type_script_setup_true_lang-3JBwNlGx.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CQxYDlES.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BsmZ17dQ.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-K87PW1uK.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Dv42bb8d.js} +2 -2
  4. package/dist/{Chargeback-CKeP0C3C.js → Chargeback-iw42NmhQ.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-4cyCT01g.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CEgmqMPG.js} +1 -1
  6. package/dist/{OnboardForm-BP_9VO_L.js → OnboardForm-BKrj6MlH.js} +5 -5
  7. package/dist/{OnboardForm-zqjcD6iD.js → OnboardForm-DKKZj1r1.js} +5 -5
  8. package/dist/{OnboardSubmission-Du8NpfFx.js → OnboardSubmission-BUmm693d.js} +5 -5
  9. package/dist/{OnboardSubmission-BlRpjm51.js → OnboardSubmission-CTi_k_LL.js} +2 -2
  10. package/dist/{PayoutAccount-DB93s4Bz.js → PayoutAccount-BEMqd1z_.js} +5 -5
  11. package/dist/PayoutAccount-SjIfbvLB.js +399 -0
  12. package/dist/{PayoutAccountSetting-47b8bmqq.js → PayoutAccountSetting-5yDs3zgb.js} +6 -6
  13. package/dist/{Restaurant-DMbTKWlj.js → Restaurant-BXSPjKBF.js} +4 -4
  14. package/dist/{RestaurantSetting-CAZlf2Vs.js → RestaurantSetting-DN3J5ffo.js} +3 -3
  15. package/dist/{Settlement-Cr6LJOel.js → Settlement-Bsz_dIzQ.js} +3 -3
  16. package/dist/{Settlement-BT-qtZX9.js → Settlement-vo8MPovs.js} +4 -4
  17. package/dist/{SettlementTransactions-BDjZmZjE.js → SettlementTransactions-BZl7_Xa2.js} +4 -4
  18. package/dist/{SettlementTransactions-DoMTS35M.js → SettlementTransactions-DDrEx1YK.js} +4 -4
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-CZZiQMYe.js → Status.vue_vue_type_script_setup_true_lang-CUXS7I4X.js} +1 -1
  20. package/dist/{Terminal-BcWccOla.js → Terminal-BlbmYTBq.js} +5 -5
  21. package/dist/{TerminalSetting-DE0v-4-p.js → TerminalSetting-CX9iXWRz.js} +655 -521
  22. package/dist/{Transaction-CVVGm-I8.js → Transaction-Drs-TpOg.js} +10 -10
  23. package/dist/{Transaction-Cc4utrzZ.js → Transaction-OzWglcKv.js} +10 -10
  24. package/dist/{TransactionOld-BgafsXwW.js → TransactionOld-Cm8iNWsy.js} +7 -7
  25. package/dist/api/settlement/index.d.ts +1 -1
  26. package/dist/{app-Cs1GHhDd.js → app-C0XKu0jl.js} +451 -442
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-eHLQjw1e.js → assets-DWLVlgG7.js} +1 -1
  29. package/dist/{grafana-SUvDElAd.js → grafana-CWSgbuy6.js} +1 -1
  30. package/dist/{index-DvPHBuEr.js → index-6ApGYfIO.js} +5544 -5474
  31. package/dist/{index-lovX0Huh.js → index-B5nzDCce.js} +1 -1
  32. package/dist/{index-ClGv4aTb.js → index-BF2Ll-1V.js} +2 -2
  33. package/dist/{index-BPGQQPaG.js → index-DM4_Wt8u.js} +1 -1
  34. package/dist/{index-Xn55a2pJ.js → index-DeAOhjan.js} +1 -1
  35. package/dist/{index-gCNUDOJw.js → index-DkKk3kia.js} +1 -1
  36. package/dist/{index-DXAJfLCs.js → index-DyYRhqsz.js} +2 -2
  37. package/dist/{index-B247KQYg.js → index-Zct56Atf.js} +1 -1
  38. package/dist/{index-MMGPrDuq.js → index-ggQ7Kq-J.js} +16 -16
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-1b18Xw6F.js → index.vue_vue_type_script_setup_true_lang-DGPlPaAk.js} +1 -1
  40. package/dist/model/payout-account.d.ts +2 -2
  41. package/dist/package.json +2 -2
  42. package/dist/{payout-account-Doi16CAx.js → payout-account-DJI6NhRC.js} +3 -3
  43. package/dist/stores/payoutAccount.d.ts +22 -22
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -16
  46. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -16
  47. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +20 -16
  48. package/dist/views/admin/payout-account/CreateDummyPayoutDialog.vue.d.ts +1 -11
  49. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -22
  50. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +44 -44
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +44 -44
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -22
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -22
  54. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +44 -44
  55. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  56. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  57. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
  58. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  59. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  60. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  61. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  62. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  63. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
  64. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
  65. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
  66. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
  67. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
  68. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  69. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
  70. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +8 -8
  71. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -6
  72. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +10 -10
  73. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
  74. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +16 -16
  75. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  76. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
  77. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  78. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
  79. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  80. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  81. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
  82. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
  83. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
  84. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
  85. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
  86. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
  87. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
  88. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
  89. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
  90. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
  91. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +14 -14
  92. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +140 -0
  93. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
  94. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
  95. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  96. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -44
  97. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
  98. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
  99. package/dist/views/settlement/SettlementTable.vue.d.ts +16 -16
  100. package/package.json +2 -2
  101. package/dist/PayoutAccount-waepqJrT.js +0 -384
@@ -1,8 +1,8 @@
1
1
  var rr = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var ln = (t, e, n) => e.has(t) || rr("Cannot " + n);
5
- var h = (t, e, n) => (ln(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) => (ln(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (ln(t, e, "access private method"), n);
4
+ var An = (t, e, n) => e.has(t) || rr("Cannot " + n);
5
+ var h = (t, e, n) => (An(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) => (An(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (An(t, e, "access private method"), n);
6
6
  var Vt = (t, e, n, r) => ({
7
7
  set _(s) {
8
8
  D(t, e, s, n);
@@ -12,9 +12,9 @@ var Vt = (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 kn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as Rn, h as yn, defineComponent as en, unref as ge, openBlock as tn, createBlock as qn, 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 Rn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as qn, h as bn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Nn, 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 Nn, useI18n as ns } from "@feedmepos/mf-common";
17
+ import { useCoreStore as Hn, 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 = {
@@ -1238,7 +1238,7 @@ const oa = () => {
1238
1238
  };
1239
1239
  function ca(t, e, n) {
1240
1240
  let r;
1241
- kn(n) ? r = {
1241
+ Rn(n) ? r = {
1242
1242
  evaluating: n
1243
1243
  } : r = {};
1244
1244
  const {
@@ -1247,12 +1247,12 @@ function ca(t, e, n) {
1247
1247
  shallow: a = !0,
1248
1248
  onError: c = oa
1249
1249
  } = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
1250
- let f = 0;
1250
+ let m = 0;
1251
1251
  return Hi(async (p) => {
1252
1252
  if (!l.value)
1253
1253
  return;
1254
- f++;
1255
- const B = f;
1254
+ m++;
1255
+ const B = m;
1256
1256
  let v = !1;
1257
1257
  i && Promise.resolve().then(() => {
1258
1258
  i.value = !0;
@@ -1263,13 +1263,13 @@ function ca(t, e, n) {
1263
1263
  i && (i.value = !1), v || I();
1264
1264
  });
1265
1265
  });
1266
- B === f && (A.value = O);
1266
+ B === m && (A.value = O);
1267
1267
  } catch (O) {
1268
1268
  c(O);
1269
1269
  } finally {
1270
- i && B === f && (i.value = !1), v = !0;
1270
+ i && B === m && (i.value = !1), v = !0;
1271
1271
  }
1272
- }), s ? Rn(() => (l.value = !0, A.value)) : A;
1272
+ }), s ? qn(() => (l.value = !0, A.value)) : A;
1273
1273
  }
1274
1274
  var ua = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1275
1275
  function la(t) {
@@ -1339,16 +1339,16 @@ var rs = { exports: {} };
1339
1339
  },
1340
1340
  function(n, r, s) {
1341
1341
  function i(u) {
1342
- return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
1343
- return typeof m;
1344
- } : function(m) {
1345
- return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
1342
+ return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
1343
+ return typeof f;
1344
+ } : function(f) {
1345
+ return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
1346
1346
  })(u);
1347
1347
  }
1348
1348
  function a(u) {
1349
- var m = "[object " + u + "]";
1349
+ var f = "[object " + u + "]";
1350
1350
  return function(g) {
1351
- return Object.prototype.toString.call(g) === m;
1351
+ return Object.prototype.toString.call(g) === f;
1352
1352
  };
1353
1353
  }
1354
1354
  s.r(r), s.d(r, "default", function() {
@@ -1359,99 +1359,99 @@ var rs = { exports: {} };
1359
1359
  return q;
1360
1360
  });
1361
1361
  var c = a("Array"), l = a("Object"), A = a("Function");
1362
- function f(u, m) {
1363
- return A(u.get) ? u.get(m) : u[m];
1362
+ function m(u, f) {
1363
+ return A(u.get) ? u.get(f) : u[f];
1364
1364
  }
1365
1365
  function p(u) {
1366
- return function(m, g) {
1367
- if (!c(g) || !g.length) return u(m, g);
1366
+ return function(f, g) {
1367
+ if (!c(g) || !g.length) return u(f, g);
1368
1368
  for (var y = 0, b = g.length; y < b; y++)
1369
- if (u(m, f(g, y))) return !0;
1369
+ if (u(f, m(g, y))) return !0;
1370
1370
  return !1;
1371
1371
  };
1372
1372
  }
1373
1373
  function B(u) {
1374
- return function(m, g) {
1375
- if (!c(g) || !g.length) return u(m, g);
1374
+ return function(f, g) {
1375
+ if (!c(g) || !g.length) return u(f, g);
1376
1376
  for (var y = 0, b = g.length; y < b; y++)
1377
- if (!u(m, f(g, y))) return !1;
1377
+ if (!u(f, m(g, y))) return !1;
1378
1378
  return !0;
1379
1379
  };
1380
1380
  }
1381
- function v(u, m, g, y) {
1382
- return u.validate(u.options, m, g, y);
1381
+ function v(u, f, g, y) {
1382
+ return u.validate(u.options, f, g, y);
1383
1383
  }
1384
1384
  var O = {
1385
- $eq: p(function(u, m) {
1386
- return u(m);
1385
+ $eq: p(function(u, f) {
1386
+ return u(f);
1387
1387
  }),
1388
- $ne: B(function(u, m) {
1389
- return u(m);
1388
+ $ne: B(function(u, f) {
1389
+ return u(f);
1390
1390
  }),
1391
- $gt: p(function(u, m) {
1392
- return u(m);
1391
+ $gt: p(function(u, f) {
1392
+ return u(f);
1393
1393
  }),
1394
- $gte: p(function(u, m) {
1395
- return u(m);
1394
+ $gte: p(function(u, f) {
1395
+ return u(f);
1396
1396
  }),
1397
- $lt: p(function(u, m) {
1398
- return u(m);
1397
+ $lt: p(function(u, f) {
1398
+ return u(f);
1399
1399
  }),
1400
- $lte: p(function(u, m) {
1401
- return u(m);
1400
+ $lte: p(function(u, f) {
1401
+ return u(f);
1402
1402
  }),
1403
- $mod: p(function(u, m) {
1404
- return u(m);
1403
+ $mod: p(function(u, f) {
1404
+ return u(f);
1405
1405
  }),
1406
- $in: function(u, m) {
1407
- return u(m);
1406
+ $in: function(u, f) {
1407
+ return u(f);
1408
1408
  },
1409
- $nin: function(u, m) {
1410
- return u(m);
1409
+ $nin: function(u, f) {
1410
+ return u(f);
1411
1411
  },
1412
- $not: function(u, m, g, y) {
1413
- return u(m, g, y);
1412
+ $not: function(u, f, g, y) {
1413
+ return u(f, g, y);
1414
1414
  },
1415
- $type: function(u, m) {
1416
- return u(m);
1415
+ $type: function(u, f) {
1416
+ return u(f);
1417
1417
  },
1418
- $all: function(u, m, g, y) {
1419
- return O.$and(u, m, g, y);
1418
+ $all: function(u, f, g, y) {
1419
+ return O.$and(u, f, g, y);
1420
1420
  },
1421
- $size: function(u, m) {
1422
- return !!m && u === m.length;
1421
+ $size: function(u, f) {
1422
+ return !!f && u === f.length;
1423
1423
  },
1424
- $or: function(u, m, g, y) {
1424
+ $or: function(u, f, g, y) {
1425
1425
  for (var b = 0, E = u.length; b < E; b++)
1426
- if (v(f(u, b), m, g, y)) return !0;
1426
+ if (v(m(u, b), f, g, y)) return !0;
1427
1427
  return !1;
1428
1428
  },
1429
- $nor: function(u, m, g, y) {
1430
- return !O.$or(u, m, g, y);
1429
+ $nor: function(u, f, g, y) {
1430
+ return !O.$or(u, f, g, y);
1431
1431
  },
1432
- $and: function(u, m, g, y) {
1432
+ $and: function(u, f, g, y) {
1433
1433
  for (var b = 0, E = u.length; b < E; b++)
1434
- if (!v(f(u, b), m, g, y)) return !1;
1434
+ if (!v(m(u, b), f, g, y)) return !1;
1435
1435
  return !0;
1436
1436
  },
1437
- $regex: p(function(u, m) {
1438
- return typeof m == "string" && u.test(m);
1437
+ $regex: p(function(u, f) {
1438
+ return typeof f == "string" && u.test(f);
1439
1439
  }),
1440
- $where: function(u, m, g, y) {
1441
- return u.call(m, m, g, y);
1440
+ $where: function(u, f, g, y) {
1441
+ return u.call(f, f, g, y);
1442
1442
  },
1443
- $elemMatch: function(u, m, g, y) {
1444
- return c(m) ? !!~function(b, E) {
1443
+ $elemMatch: function(u, f, g, y) {
1444
+ return c(f) ? !!~function(b, E) {
1445
1445
  for (var P = 0; P < b.length; P++)
1446
- if (f(b, P), v(E, f(b, P))) return P;
1446
+ if (m(b, P), v(E, m(b, P))) return P;
1447
1447
  return -1;
1448
- }(m, u) : v(u, m, g, y);
1448
+ }(f, u) : v(u, f, g, y);
1449
1449
  },
1450
- $exists: function(u, m, g, y) {
1450
+ $exists: function(u, f, g, y) {
1451
1451
  return y.hasOwnProperty(g) === u;
1452
1452
  }
1453
1453
  }, I = {
1454
- $eq: function(u, m, g) {
1454
+ $eq: function(u, f, g) {
1455
1455
  var y = g.comparable, b = g.compare;
1456
1456
  return u instanceof RegExp ? p(function(E) {
1457
1457
  return typeof E == "string" && u.test(E);
@@ -1465,31 +1465,31 @@ var rs = { exports: {} };
1465
1465
  }
1466
1466
  );
1467
1467
  },
1468
- $gt: function(u, m, g) {
1468
+ $gt: function(u, f, g) {
1469
1469
  var y = g.comparable, b = g.compare;
1470
1470
  return function(E) {
1471
1471
  return b(y(E), y(u)) > 0;
1472
1472
  };
1473
1473
  },
1474
- $gte: function(u, m, g) {
1474
+ $gte: function(u, f, g) {
1475
1475
  var y = g.comparable, b = g.compare;
1476
1476
  return function(E) {
1477
1477
  return b(y(E), y(u)) >= 0;
1478
1478
  };
1479
1479
  },
1480
- $lt: function(u, m, g) {
1480
+ $lt: function(u, f, g) {
1481
1481
  var y = g.comparable, b = g.compare;
1482
1482
  return function(E) {
1483
1483
  return b(y(E), y(u)) < 0;
1484
1484
  };
1485
1485
  },
1486
- $lte: function(u, m, g) {
1486
+ $lte: function(u, f, g) {
1487
1487
  var y = g.comparable, b = g.compare;
1488
1488
  return function(E) {
1489
1489
  return b(y(E), y(u)) <= 0;
1490
1490
  };
1491
1491
  },
1492
- $in: function(u, m, g) {
1492
+ $in: function(u, f, g) {
1493
1493
  var y = g.comparable;
1494
1494
  return function(b) {
1495
1495
  if (!(b instanceof Array)) {
@@ -1503,59 +1503,59 @@ var rs = { exports: {} };
1503
1503
  for (j = u.length; j--; ) if (u[j] == null) return !0;
1504
1504
  }
1505
1505
  for (j = u.length; j--; ) {
1506
- var P = v(H(f(u, j), g), E, j, u);
1506
+ var P = v(H(m(u, j), g), E, j, u);
1507
1507
  if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
1508
1508
  return !0;
1509
1509
  }
1510
1510
  return !!~u.indexOf(E);
1511
1511
  }
1512
1512
  for (var j = b.length; j--; )
1513
- if (~u.indexOf(y(f(b, j)))) return !0;
1513
+ if (~u.indexOf(y(m(b, j)))) return !0;
1514
1514
  return !1;
1515
1515
  };
1516
1516
  },
1517
- $nin: function(u, m, g) {
1518
- var y = I.$in(u, m, g);
1517
+ $nin: function(u, f, g) {
1518
+ var y = I.$in(u, f, g);
1519
1519
  return function(b, E, P, j) {
1520
1520
  return !y(b, E, P, j);
1521
1521
  };
1522
1522
  },
1523
1523
  $mod: function(u) {
1524
- return function(m) {
1525
- return m % u[0] == u[1];
1524
+ return function(f) {
1525
+ return f % u[0] == u[1];
1526
1526
  };
1527
1527
  },
1528
- $ne: function(u, m, g) {
1529
- var y = I.$eq(u, m, g);
1528
+ $ne: function(u, f, g) {
1529
+ var y = I.$eq(u, f, g);
1530
1530
  return B(function(b, E, P, j) {
1531
1531
  return !y(b, E, P, j);
1532
1532
  });
1533
1533
  },
1534
- $and: function(u, m, g) {
1534
+ $and: function(u, f, g) {
1535
1535
  return u.map(Y(g));
1536
1536
  },
1537
- $all: function(u, m, g) {
1538
- return I.$and(u, m, g);
1537
+ $all: function(u, f, g) {
1538
+ return I.$and(u, f, g);
1539
1539
  },
1540
- $or: function(u, m, g) {
1540
+ $or: function(u, f, g) {
1541
1541
  return u.map(Y(g));
1542
1542
  },
1543
- $nor: function(u, m, g) {
1543
+ $nor: function(u, f, g) {
1544
1544
  return u.map(Y(g));
1545
1545
  },
1546
- $not: function(u, m, g) {
1546
+ $not: function(u, f, g) {
1547
1547
  var y = Y(g)(u);
1548
1548
  return function(b, E, P) {
1549
1549
  return !v(y, b, E, P);
1550
1550
  };
1551
1551
  },
1552
1552
  $type: function(u) {
1553
- return function(m, g, y) {
1554
- return m != null && (m instanceof u || m.constructor == u);
1553
+ return function(f, g, y) {
1554
+ return f != null && (f instanceof u || f.constructor == u);
1555
1555
  };
1556
1556
  },
1557
- $regex: function(u, m) {
1558
- return new RegExp(u, m.$options);
1557
+ $regex: function(u, f) {
1558
+ return new RegExp(u, f.$options);
1559
1559
  },
1560
1560
  $where: function(u) {
1561
1561
  if (typeof u == "function") return u;
@@ -1563,26 +1563,26 @@ var rs = { exports: {} };
1563
1563
  'In CSP mode, sift does not support strings in "$where" condition'
1564
1564
  );
1565
1565
  },
1566
- $elemMatch: function(u, m, g) {
1566
+ $elemMatch: function(u, f, g) {
1567
1567
  return Y(g)(u);
1568
1568
  },
1569
1569
  $exists: function(u) {
1570
1570
  return !!u;
1571
1571
  }
1572
1572
  };
1573
- function V(u, m) {
1574
- return { options: u, validate: m };
1573
+ function V(u, f) {
1574
+ return { options: u, validate: f };
1575
1575
  }
1576
- function R(u, m) {
1576
+ function R(u, f) {
1577
1577
  var g = u.keyPath, y = u.child, b = u.query, E = [];
1578
- if (function tr(Ce, ft, gt, Fi, cn) {
1579
- if (gt === ft.length || Ce == null)
1580
- return void cn.push([Ce, ft[gt - 1], Fi]);
1581
- var nr = f(ft, gt);
1578
+ if (function tr(Ce, mt, gt, Fi, un) {
1579
+ if (gt === mt.length || Ce == null)
1580
+ return void un.push([Ce, mt[gt - 1], Fi]);
1581
+ var nr = m(mt, gt);
1582
1582
  if (c(Ce) && isNaN(Number(nr)))
1583
- for (var un = 0, ki = Ce.length; un < ki; un++) tr(f(Ce, un), ft, gt, Ce, cn);
1584
- else tr(f(Ce, nr), ft, gt + 1, Ce, cn);
1585
- }(m, g, 0, m, E), E.length === 1) {
1583
+ for (var ln = 0, ki = Ce.length; ln < ki; ln++) tr(m(Ce, ln), mt, gt, Ce, un);
1584
+ else tr(m(Ce, nr), mt, gt + 1, Ce, un);
1585
+ }(f, g, 0, f, E), E.length === 1) {
1586
1586
  var P = E[0];
1587
1587
  return v(y, P[0], P[1], P[2]);
1588
1588
  }
@@ -1592,21 +1592,21 @@ var rs = { exports: {} };
1592
1592
  }
1593
1593
  return W;
1594
1594
  }
1595
- function Q(u, m, g) {
1596
- return V({ keyPath: u, child: m, query: g }, R);
1595
+ function Q(u, f, g) {
1596
+ return V({ keyPath: u, child: f, query: g }, R);
1597
1597
  }
1598
1598
  function Y(u) {
1599
- var m = u.comparable, g = u.expressions, y = function(P) {
1599
+ var f = u.comparable, g = u.expressions, y = function(P) {
1600
1600
  var j;
1601
1601
  return (!P || !(j = P) || j.constructor !== Object && j.constructor !== Array && j.constructor.toString() !== "function Object() { [native code] }" && j.constructor.toString() !== "function Array() { [native code] }" || j.toJSON) && (P = { $eq: P }), P;
1602
1602
  }, b = function(P) {
1603
- P = m(P);
1603
+ P = f(P);
1604
1604
  var j = [];
1605
1605
  for (var W in P) {
1606
1606
  var _ = P[W];
1607
1607
  if (W !== "$options") {
1608
1608
  var he = O[W] || u && g && g[W];
1609
- if (he) I[W] && (_ = I[W](_, P, u)), j.push(V(m(_), he));
1609
+ if (he) I[W] && (_ = I[W](_, P, u)), j.push(V(f(_), he));
1610
1610
  else {
1611
1611
  if (W.charCodeAt(0) === 36)
1612
1612
  throw new Error("Unknown operation " + W);
@@ -1627,42 +1627,42 @@ var rs = { exports: {} };
1627
1627
  return b(y(P));
1628
1628
  };
1629
1629
  }
1630
- function w(u, m) {
1631
- if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
1630
+ function w(u, f) {
1631
+ if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(f))
1632
1632
  return !1;
1633
1633
  if (l(u)) {
1634
- if (Object.keys(u).length !== Object.keys(m).length) return !1;
1635
- for (var g in u) if (!w(u[g], m[g])) return !1;
1634
+ if (Object.keys(u).length !== Object.keys(f).length) return !1;
1635
+ for (var g in u) if (!w(u[g], f[g])) return !1;
1636
1636
  return !0;
1637
1637
  }
1638
1638
  if (c(u)) {
1639
- if (u.length !== m.length) return !1;
1639
+ if (u.length !== f.length) return !1;
1640
1640
  for (var y = 0, b = u.length; y < b; y++)
1641
- if (!w(u[y], m[y])) return !1;
1641
+ if (!w(u[y], f[y])) return !1;
1642
1642
  return !0;
1643
1643
  }
1644
- return u === m;
1644
+ return u === f;
1645
1645
  }
1646
- function H(u, m) {
1647
- var g = Y(m)(u);
1648
- return m && m.select && (g = {
1646
+ function H(u, f) {
1647
+ var g = Y(f)(u);
1648
+ return f && f.select && (g = {
1649
1649
  options: g,
1650
1650
  validate: function(y, b, E, P) {
1651
- return v(y, b && m.select(b), E, P);
1651
+ return v(y, b && f.select(b), E, P);
1652
1652
  }
1653
1653
  }), g;
1654
1654
  }
1655
- function U(u, m) {
1656
- var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
1655
+ function U(u, f) {
1656
+ var g = H(u, f = Object.assign({ compare: ee, comparable: q }, f));
1657
1657
  return function(y, b, E) {
1658
1658
  return v(g, y, b, E);
1659
1659
  };
1660
1660
  }
1661
- function ee(u, m) {
1662
- if (w(u, m)) return 0;
1663
- if (i(u) === i(m)) {
1664
- if (u > m) return 1;
1665
- if (u < m) return -1;
1661
+ function ee(u, f) {
1662
+ if (w(u, f)) return 0;
1663
+ if (i(u) === i(f)) {
1664
+ if (u > f) return 1;
1665
+ if (u < f) return -1;
1666
1666
  }
1667
1667
  }
1668
1668
  function q(u) {
@@ -1680,16 +1680,16 @@ function ha(t, e) {
1680
1680
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1681
1681
  }
1682
1682
  }
1683
- function ma(t, e, n) {
1683
+ function fa(t, e, n) {
1684
1684
  return e && ha(t.prototype, e), t;
1685
1685
  }
1686
- function fa(t, e) {
1686
+ function ma(t, e) {
1687
1687
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
1688
1688
  }
1689
- function bn(t) {
1690
- return bn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1689
+ function wn(t) {
1690
+ return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1691
1691
  return n.__proto__ || Object.getPrototypeOf(n);
1692
- }, bn(t);
1692
+ }, wn(t);
1693
1693
  }
1694
1694
  function St(t, e) {
1695
1695
  return St = Object.setPrototypeOf || function(r, s) {
@@ -1717,9 +1717,9 @@ function Rt(t, e, n) {
1717
1717
  function pa(t) {
1718
1718
  return Function.toString.call(t).indexOf("[native code]") !== -1;
1719
1719
  }
1720
- function wn(t) {
1720
+ function vn(t) {
1721
1721
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1722
- return wn = function(r) {
1722
+ return vn = function(r) {
1723
1723
  if (r === null || !pa(r)) return r;
1724
1724
  if (typeof r != "function")
1725
1725
  throw new TypeError("Super expression must either be null or a function");
@@ -1728,7 +1728,7 @@ function wn(t) {
1728
1728
  e.set(r, s);
1729
1729
  }
1730
1730
  function s() {
1731
- return Rt(r, arguments, bn(this).constructor);
1731
+ return Rt(r, arguments, wn(this).constructor);
1732
1732
  }
1733
1733
  return s.prototype = Object.create(r.prototype, {
1734
1734
  constructor: {
@@ -1738,7 +1738,7 @@ function wn(t) {
1738
1738
  configurable: !0
1739
1739
  }
1740
1740
  }), St(s, r);
1741
- }, wn(t);
1741
+ }, vn(t);
1742
1742
  }
1743
1743
  function ir(t) {
1744
1744
  if (t === void 0)
@@ -1748,7 +1748,7 @@ function ir(t) {
1748
1748
  var ss = function(e) {
1749
1749
  return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
1750
1750
  }, xt = ss, ya = /* @__PURE__ */ function(t) {
1751
- fa(e, t), e.setDefaultMessage = function(s) {
1751
+ ma(e, t), e.setDefaultMessage = function(s) {
1752
1752
  s === null ? xt = ss : xt = typeof s == "string" ? function() {
1753
1753
  return s;
1754
1754
  } : s;
@@ -1782,8 +1782,8 @@ var ss = function(e) {
1782
1782
  }, n._setMetadata = function(s) {
1783
1783
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
1784
1784
  }, e;
1785
- }(wn(Error));
1786
- function vn(t) {
1785
+ }(vn(Error));
1786
+ function Bn(t) {
1787
1787
  return Array.isArray(t) ? t : [t];
1788
1788
  }
1789
1789
  function ba(t) {
@@ -1811,7 +1811,7 @@ function Ia(t) {
1811
1811
  }
1812
1812
  var Pa = /* @__PURE__ */ function() {
1813
1813
  function t(n) {
1814
- this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : vn(n.fields), Object.defineProperty(this, "_fieldsPattern", {
1814
+ this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : Bn(n.fields), Object.defineProperty(this, "_fieldsPattern", {
1815
1815
  writable: !0
1816
1816
  }), this.inverted = !!n.inverted, this.conditions = n.conditions, Object.defineProperty(this, "_matches", {
1817
1817
  writable: !0,
@@ -1866,13 +1866,13 @@ var Oa = /* @__PURE__ */ function() {
1866
1866
  return process.env.NODE_ENV !== "production" && i.isAllInverted && r.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[te].indexedRules = i.rules, this[te].hasPerFieldRules = i.hasPerFieldRules, this.emit("updated", s), this;
1867
1867
  }, e.buildIndexFor = function(r) {
1868
1868
  for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
1869
- var A = new i(r[l]), f = this.expandActions(A.actions), p = vn(A.subject), B = r.length - l - 1;
1869
+ var A = new i(r[l]), m = this.expandActions(A.actions), p = Bn(A.subject), B = r.length - l - 1;
1870
1870
  a = !!(a && A.inverted), !c && A.fields && (c = !0);
1871
1871
  for (var v = 0; v < p.length; v++) {
1872
1872
  var O = p[v];
1873
1873
  s[O] = s[O] || /* @__PURE__ */ Object.create(null);
1874
- for (var I = 0; I < f.length; I++) {
1875
- var V = f[I];
1874
+ for (var I = 0; I < m.length; I++) {
1875
+ var V = m[I];
1876
1876
  s[O][V] = s[O][V] || /* @__PURE__ */ Object.create(null), s[O][V][B] = A;
1877
1877
  }
1878
1878
  }
@@ -1883,7 +1883,7 @@ var Oa = /* @__PURE__ */ function() {
1883
1883
  rules: s
1884
1884
  };
1885
1885
  }, e.expandActions = function(r) {
1886
- for (var s = this[te].aliases, i = vn(r), a = 0; a < i.length; ) {
1886
+ for (var s = this[te].aliases, i = Bn(r), a = 0; a < i.length; ) {
1887
1887
  var c = i[a++];
1888
1888
  s.hasOwnProperty(c) && (i = i.concat(s[c]));
1889
1889
  }
@@ -1933,7 +1933,7 @@ var Oa = /* @__PURE__ */ function() {
1933
1933
  i && i.slice(0).forEach(function(a) {
1934
1934
  return a(s);
1935
1935
  });
1936
- }, ma(t, [{
1936
+ }, fa(t, [{
1937
1937
  key: "rules",
1938
1938
  get: function() {
1939
1939
  return this[te].originalRules;
@@ -1973,9 +1973,9 @@ function Va(t) {
1973
1973
  return new Oa(Ya(t));
1974
1974
  }
1975
1975
  function xa(t, e, n) {
1976
- const r = Array.isArray(t) ? t : [t], s = Va(e), i = (f) => f.subject, a = (f) => s.can(f.action, i(f), f.field) ? !0 : f.coverSubject !== void 0 ? s.can(f.action, f.coverSubject, f.field) : !1, c = r.find((f) => !a(f));
1976
+ const r = Array.isArray(t) ? t : [t], s = Va(e), i = (m) => m.subject, a = (m) => s.can(m.action, i(m), m.field) ? !0 : m.coverSubject !== void 0 ? s.can(m.action, m.coverSubject, m.field) : !1, c = r.find((m) => !a(m));
1977
1977
  if (c) {
1978
- const f = s.relevantRuleFor(
1978
+ const m = s.relevantRuleFor(
1979
1979
  c.action,
1980
1980
  i(c),
1981
1981
  c.field
@@ -1983,7 +1983,7 @@ function xa(t, e, n) {
1983
1983
  return {
1984
1984
  granted: !1,
1985
1985
  decisivePermission: c,
1986
- decisiveRule: f ?? null
1986
+ decisiveRule: m ?? null
1987
1987
  };
1988
1988
  }
1989
1989
  const l = r[0], A = s.relevantRuleFor(l.action, i(l), l.field);
@@ -2031,9 +2031,9 @@ async function ka(t, e) {
2031
2031
  canAccess: !0
2032
2032
  };
2033
2033
  }
2034
- var Bn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Bn || {});
2034
+ var Dn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Dn || {});
2035
2035
  function Ra() {
2036
- const t = ts(), { sessionUser: e } = Nn();
2036
+ const t = ts(), { sessionUser: e } = Hn();
2037
2037
  return ca(
2038
2038
  async () => {
2039
2039
  t.matched;
@@ -2072,7 +2072,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2072
2072
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
2073
2073
  }, za = {
2074
2074
  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__ */ en({
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({
2076
2076
  __name: "NoPermission",
2077
2077
  setup(t) {
2078
2078
  const { t: e } = ns({
@@ -2083,7 +2083,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2083
2083
  "th-TH": za
2084
2084
  }
2085
2085
  });
2086
- return (n, r) => (tn(), Si("div", Za, [
2086
+ return (n, r) => (nn(), Si("div", Za, [
2087
2087
  Ke("div", La, [
2088
2088
  Ke("div", Ka, [
2089
2089
  Ke("img", {
@@ -2098,18 +2098,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2098
2098
  ])
2099
2099
  ]));
2100
2100
  }
2101
- }), to = /* @__PURE__ */ en({
2101
+ }), to = /* @__PURE__ */ tn({
2102
2102
  __name: "PermissionWrapper",
2103
2103
  setup(t) {
2104
2104
  const e = Ra();
2105
- return (n, r) => ge(e) === ge(Bn).Denied ? (tn(), qn(eo, { key: 0 })) : ge(e) === ge(Bn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2105
+ return (n, r) => ge(e) === ge(Dn).Denied ? (nn(), Nn(eo, { key: 0 })) : ge(e) === ge(Dn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2106
2106
  }
2107
2107
  });
2108
2108
  function os(t) {
2109
2109
  return {
2110
2110
  inheritAttrs: !1,
2111
2111
  setup(e, { attrs: n }) {
2112
- return () => yn(to, {}, { default: () => yn(t, n) });
2112
+ return () => bn(to, {}, { default: () => bn(t, n) });
2113
2113
  }
2114
2114
  };
2115
2115
  }
@@ -2303,7 +2303,7 @@ const k = [
2303
2303
  o.delete
2304
2304
  ]
2305
2305
  }
2306
- ], mo = [
2306
+ ], fo = [
2307
2307
  ...k,
2308
2308
  {
2309
2309
  label: "Credit",
@@ -2315,7 +2315,7 @@ const k = [
2315
2315
  o.delete
2316
2316
  ]
2317
2317
  }
2318
- ], fo = [
2318
+ ], mo = [
2319
2319
  ...k,
2320
2320
  {
2321
2321
  label: "Experience",
@@ -2375,7 +2375,7 @@ const k = [
2375
2375
  o.delete
2376
2376
  ]
2377
2377
  }
2378
- ], ms = [
2378
+ ], fs = [
2379
2379
  ...k,
2380
2380
  {
2381
2381
  label: "Loyalty Card",
@@ -2387,7 +2387,7 @@ const k = [
2387
2387
  o.delete
2388
2388
  ]
2389
2389
  }
2390
- ], fs = [
2390
+ ], ms = [
2391
2391
  ...k,
2392
2392
  {
2393
2393
  label: "Bin",
@@ -2408,10 +2408,10 @@ const k = [
2408
2408
  ho
2409
2409
  ), ws = $(
2410
2410
  se,
2411
- mo
2411
+ fo
2412
2412
  ), vs = $(
2413
2413
  se,
2414
- fo
2414
+ mo
2415
2415
  ), Bs = $(
2416
2416
  se,
2417
2417
  go
@@ -2468,8 +2468,8 @@ const k = [
2468
2468
  Ds,
2469
2469
  ds,
2470
2470
  hs,
2471
- ms,
2472
- fs
2471
+ fs,
2472
+ ms
2473
2473
  ), Bo = $(
2474
2474
  se,
2475
2475
  ls,
@@ -2556,7 +2556,7 @@ const k = [
2556
2556
  [`set_${d.crm_loyaltyCard}`]: {
2557
2557
  key: "sys:crm:loyaltyCard",
2558
2558
  name: "CRM Loyalty Card",
2559
- permissions: ms
2559
+ permissions: fs
2560
2560
  },
2561
2561
  [`set_${d.crm_referral}`]: {
2562
2562
  key: "sys:crm:referral",
@@ -2581,7 +2581,7 @@ const k = [
2581
2581
  [`set_${d.crm_bin}`]: {
2582
2582
  key: "sys:crm:bin",
2583
2583
  name: "CRM Bin",
2584
- permissions: fs
2584
+ permissions: ms
2585
2585
  }
2586
2586
  };
2587
2587
  var C = /* @__PURE__ */ ((t) => (t.inventory = "inventory", t.inventory_stock = "inventory::stock", t.inventory_stockAdjustment = "inventory::stockAdjustment", t.inventory_stockRecalculation = "inventory::stockRecalculation", t.inventory_unitCostHistory = "inventory::unitCostHistory", t.inventory_wastageTemplate = "inventory::wastageTemplate", t.inventory_closing = "inventory::closing", t.inventory_closingDraft = "inventory::closingDraft", t.inventory_closingTemplate = "inventory::closingTemplate", t.inventory_ingredient = "inventory::ingredient", t.inventory_ingredientGroup = "inventory::ingredientGroup", t.inventory_recipe = "inventory::recipe", t.inventory_unit = "inventory::unit", t.inventory_orderTemplate = "inventory::orderTemplate", t.inventory_orderDraft = "inventory::orderDraft", t.inventory_printTemplate = "inventory::printTemplate", t.inventory_purchaseOrder = "inventory::purchaseOrder", t.inventory_transferOutApproval = "inventory::transferOutApproval", t.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", t.inventory_surcharge = "inventory::surcharge", t.inventory_supplier = "inventory::supplier", t.inventory_warehouse = "inventory::warehouse", t.inventory_publish = "inventory::publish", t.inventory_integration = "inventory::integration", t.inventory_deliveryOrder = "inventory::deliveryOrder", t.inventory_shipment = "inventory::shipment", t.inventory_orderDraftApproval = "inventory::orderDraftApproval", t))(C || {});
@@ -2591,7 +2591,7 @@ const J = [
2591
2591
  subject: C.inventory,
2592
2592
  actions: [o.read]
2593
2593
  }
2594
- ], Hn = [
2594
+ ], Qn = [
2595
2595
  ...J,
2596
2596
  {
2597
2597
  label: "Stock",
@@ -2641,11 +2641,11 @@ const J = [
2641
2641
  }
2642
2642
  ];
2643
2643
  [
2644
- ...Hn,
2644
+ ...Qn,
2645
2645
  ...Es,
2646
2646
  ...Ms
2647
2647
  ];
2648
- const Qn = [
2648
+ const Xn = [
2649
2649
  ...J,
2650
2650
  {
2651
2651
  label: "Closing",
@@ -2708,7 +2708,7 @@ const Qn = [
2708
2708
  }
2709
2709
  ];
2710
2710
  [
2711
- ...Qn,
2711
+ ...Xn,
2712
2712
  ...Is,
2713
2713
  ...Ps
2714
2714
  ];
@@ -2918,14 +2918,14 @@ const jo = [
2918
2918
  ];
2919
2919
  [
2920
2920
  ...J,
2921
- ...Hn,
2922
- ...Qn
2921
+ ...Qn,
2922
+ ...Xn
2923
2923
  ];
2924
2924
  const ko = {
2925
2925
  [`set_${d.inventory_stockBalance}`]: {
2926
2926
  key: "sys:inventory:stock_balance",
2927
2927
  name: "Stock Balance",
2928
- permissions: Hn
2928
+ permissions: Qn
2929
2929
  },
2930
2930
  [`set_${d.inventory_stockAdjustment}`]: {
2931
2931
  key: "sys:inventory:stock_adjustment",
@@ -2945,7 +2945,7 @@ const ko = {
2945
2945
  [`set_${d.inventory_closingHistory}`]: {
2946
2946
  key: "sys:inventory:closing_history",
2947
2947
  name: "Closing History",
2948
- permissions: Qn
2948
+ permissions: Xn
2949
2949
  },
2950
2950
  [`set_${d.inventory_closingTemplate}`]: {
2951
2951
  key: "sys:inventory:closing_template",
@@ -3154,7 +3154,7 @@ const Ho = () => ({
3154
3154
  sidebarDisplay: "Restaurants",
3155
3155
  section: "payment-gateway"
3156
3156
  },
3157
- component: () => import("./Restaurant-DMbTKWlj.js")
3157
+ component: () => import("./Restaurant-BXSPjKBF.js")
3158
3158
  },
3159
3159
  {
3160
3160
  path: "/admin/restaurants/:restaurantId",
@@ -3163,7 +3163,7 @@ const Ho = () => ({
3163
3163
  meta: {
3164
3164
  parent: "mf-payment-admin.restaurant"
3165
3165
  },
3166
- component: () => import("./RestaurantSetting-CAZlf2Vs.js")
3166
+ component: () => import("./RestaurantSetting-DN3J5ffo.js")
3167
3167
  },
3168
3168
  {
3169
3169
  path: "/admin/payout-accounts",
@@ -3172,7 +3172,7 @@ const Ho = () => ({
3172
3172
  sidebarDisplay: "Payout Accounts",
3173
3173
  section: "payment-gateway"
3174
3174
  },
3175
- component: () => import("./PayoutAccount-waepqJrT.js")
3175
+ component: () => import("./PayoutAccount-SjIfbvLB.js")
3176
3176
  },
3177
3177
  {
3178
3178
  path: "/admin/payout-accounts/:accountId",
@@ -3181,7 +3181,7 @@ const Ho = () => ({
3181
3181
  meta: {
3182
3182
  parent: "mf-payment-admin.payout-account"
3183
3183
  },
3184
- component: () => import("./PayoutAccountSetting-47b8bmqq.js")
3184
+ component: () => import("./PayoutAccountSetting-5yDs3zgb.js")
3185
3185
  },
3186
3186
  {
3187
3187
  path: "/admin/onboarding",
@@ -3190,7 +3190,7 @@ const Ho = () => ({
3190
3190
  sidebarDisplay: "Payment Onboarding",
3191
3191
  section: "payment-gateway"
3192
3192
  },
3193
- component: () => import("./OnboardSubmission-Du8NpfFx.js")
3193
+ component: () => import("./OnboardSubmission-BUmm693d.js")
3194
3194
  },
3195
3195
  {
3196
3196
  path: "/admin/onboarding/:submissionId",
@@ -3199,7 +3199,7 @@ const Ho = () => ({
3199
3199
  meta: {
3200
3200
  parent: "mf-payment-admin.onboard-submission"
3201
3201
  },
3202
- component: () => import("./OnboardForm-zqjcD6iD.js")
3202
+ component: () => import("./OnboardForm-DKKZj1r1.js")
3203
3203
  },
3204
3204
  {
3205
3205
  path: "/admin/terminal/pos",
@@ -3208,7 +3208,7 @@ const Ho = () => ({
3208
3208
  sidebarDisplay: "POS",
3209
3209
  section: "device"
3210
3210
  },
3211
- component: () => import("./Terminal-BcWccOla.js"),
3211
+ component: () => import("./Terminal-BlbmYTBq.js"),
3212
3212
  props: {
3213
3213
  type: "POS"
3214
3214
  }
@@ -3220,7 +3220,7 @@ const Ho = () => ({
3220
3220
  sidebarDisplay: "Kiosks",
3221
3221
  section: "device"
3222
3222
  },
3223
- component: () => import("./Terminal-BcWccOla.js"),
3223
+ component: () => import("./Terminal-BlbmYTBq.js"),
3224
3224
  props: {
3225
3225
  type: "KIOSK"
3226
3226
  }
@@ -3232,7 +3232,7 @@ const Ho = () => ({
3232
3232
  sidebarDisplay: "Terminals",
3233
3233
  section: "device"
3234
3234
  },
3235
- component: () => import("./Terminal-BcWccOla.js"),
3235
+ component: () => import("./Terminal-BlbmYTBq.js"),
3236
3236
  props: {
3237
3237
  type: "TERMINAL"
3238
3238
  }
@@ -3244,7 +3244,7 @@ const Ho = () => ({
3244
3244
  meta: {
3245
3245
  parent: "mf-payment-admin.pos"
3246
3246
  },
3247
- component: () => import("./TerminalSetting-DE0v-4-p.js")
3247
+ component: () => import("./TerminalSetting-CX9iXWRz.js")
3248
3248
  },
3249
3249
  {
3250
3250
  path: "/admin/terminal/kiosk/:terminalId",
@@ -3253,7 +3253,7 @@ const Ho = () => ({
3253
3253
  meta: {
3254
3254
  parent: "mf-payment-admin.kiosk"
3255
3255
  },
3256
- component: () => import("./TerminalSetting-DE0v-4-p.js")
3256
+ component: () => import("./TerminalSetting-CX9iXWRz.js")
3257
3257
  },
3258
3258
  {
3259
3259
  path: "/admin/terminal/terminal/:terminalId",
@@ -3262,7 +3262,7 @@ const Ho = () => ({
3262
3262
  meta: {
3263
3263
  parent: "mf-payment-admin.terminal"
3264
3264
  },
3265
- component: () => import("./TerminalSetting-DE0v-4-p.js")
3265
+ component: () => import("./TerminalSetting-CX9iXWRz.js")
3266
3266
  },
3267
3267
  {
3268
3268
  path: "/admin/transaction",
@@ -3270,7 +3270,7 @@ const Ho = () => ({
3270
3270
  meta: {
3271
3271
  sidebarDisplay: "Transactions"
3272
3272
  },
3273
- component: () => import("./Transaction-CVVGm-I8.js")
3273
+ component: () => import("./Transaction-Drs-TpOg.js")
3274
3274
  },
3275
3275
  {
3276
3276
  path: "/admin/chargeback",
@@ -3278,7 +3278,7 @@ const Ho = () => ({
3278
3278
  meta: {
3279
3279
  sidebarDisplay: "Chargebacks"
3280
3280
  },
3281
- component: () => import("./Chargeback-CKeP0C3C.js")
3281
+ component: () => import("./Chargeback-iw42NmhQ.js")
3282
3282
  },
3283
3283
  {
3284
3284
  path: "/admin/settlement",
@@ -3286,7 +3286,7 @@ const Ho = () => ({
3286
3286
  meta: {
3287
3287
  sidebarDisplay: "Settlements"
3288
3288
  },
3289
- component: () => import("./Settlement-Cr6LJOel.js")
3289
+ component: () => import("./Settlement-Bsz_dIzQ.js")
3290
3290
  },
3291
3291
  {
3292
3292
  path: "/admin/settlement/:settlementId",
@@ -3295,7 +3295,7 @@ const Ho = () => ({
3295
3295
  meta: {
3296
3296
  parent: "mf-payment-admin.settlement"
3297
3297
  },
3298
- component: () => import("./SettlementTransactions-DoMTS35M.js")
3298
+ component: () => import("./SettlementTransactions-DDrEx1YK.js")
3299
3299
  }
3300
3300
  ].map((t) => ({
3301
3301
  ...t,
@@ -3303,7 +3303,7 @@ const Ho = () => ({
3303
3303
  ...t.meta,
3304
3304
  ...Ho()
3305
3305
  }
3306
- })), Xn = [
3306
+ })), Ut = [
3307
3307
  {
3308
3308
  path: "",
3309
3309
  redirect: { name: "mf-payment-payout-account" }
@@ -3311,7 +3311,7 @@ const Ho = () => ({
3311
3311
  {
3312
3312
  path: "/payout-account",
3313
3313
  name: "mf-payment-payout-account",
3314
- component: () => import("./PayoutAccount-DB93s4Bz.js"),
3314
+ component: () => import("./PayoutAccount-BEMqd1z_.js"),
3315
3315
  meta: {
3316
3316
  sidebarDisplay: "i18n:payment.routes.payout_account",
3317
3317
  region: { MY: !0 },
@@ -3328,7 +3328,7 @@ const Ho = () => ({
3328
3328
  {
3329
3329
  path: "/onboard-submission",
3330
3330
  name: "mf-payment-onboard-submission",
3331
- component: () => import("./OnboardSubmission-BlRpjm51.js"),
3331
+ component: () => import("./OnboardSubmission-CTi_k_LL.js"),
3332
3332
  meta: {
3333
3333
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
3334
3334
  region: { MY: !0, TH: !0, AU: !0 },
@@ -3346,7 +3346,7 @@ const Ho = () => ({
3346
3346
  path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
3347
3347
  name: "mf-payment-onboard-submission-form",
3348
3348
  props: !0,
3349
- component: () => import("./OnboardForm-BP_9VO_L.js"),
3349
+ component: () => import("./OnboardForm-BKrj6MlH.js"),
3350
3350
  meta: {
3351
3351
  parent: "mf-payment-onboard-submission",
3352
3352
  validationManifest: {
@@ -3362,7 +3362,7 @@ const Ho = () => ({
3362
3362
  {
3363
3363
  path: "/transaction-old",
3364
3364
  name: "mf-payment-old-transaction",
3365
- component: () => import("./TransactionOld-BgafsXwW.js"),
3365
+ component: () => import("./TransactionOld-Cm8iNWsy.js"),
3366
3366
  meta: {
3367
3367
  sidebarDisplay: "i18n:payment.routes.transaction",
3368
3368
  validationManifest: {
@@ -3378,7 +3378,7 @@ const Ho = () => ({
3378
3378
  {
3379
3379
  path: "/transaction",
3380
3380
  name: "mf-payment-transaction",
3381
- component: () => import("./Transaction-Cc4utrzZ.js"),
3381
+ component: () => import("./Transaction-OzWglcKv.js"),
3382
3382
  meta: {
3383
3383
  sidebarDisplay: "i18n:payment.routes.transaction_new",
3384
3384
  sidebarNew: !0,
@@ -3395,7 +3395,7 @@ const Ho = () => ({
3395
3395
  {
3396
3396
  path: "/settlement",
3397
3397
  name: "mf-payment-settlement",
3398
- component: () => import("./Settlement-BT-qtZX9.js"),
3398
+ component: () => import("./Settlement-vo8MPovs.js"),
3399
3399
  meta: {
3400
3400
  sidebarDisplay: "i18n:payment.routes.settlement",
3401
3401
  region: { MY: !0, SG: !0 },
@@ -3413,7 +3413,7 @@ const Ho = () => ({
3413
3413
  path: "/settlement/:settlementId",
3414
3414
  name: "mf-payment-settlement-transaction",
3415
3415
  props: !0,
3416
- component: () => import("./SettlementTransactions-BDjZmZjE.js"),
3416
+ component: () => import("./SettlementTransactions-BZl7_Xa2.js"),
3417
3417
  meta: {
3418
3418
  parent: "mf-payment-settlement",
3419
3419
  validationManifest: {
@@ -3453,7 +3453,7 @@ const Ho = () => ({
3453
3453
  ], Qo = $i("mf-payment-iframe", () => {
3454
3454
  const t = {
3455
3455
  isIframe: !1
3456
- }, e = Rn(() => t);
3456
+ }, e = qn(() => t);
3457
3457
  function n(r) {
3458
3458
  t.isIframe = r;
3459
3459
  }
@@ -3580,9 +3580,9 @@ const Vs = function(t) {
3580
3580
  this.init_();
3581
3581
  const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
3582
3582
  for (let s = 0; s < t.length; s += 3) {
3583
- 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;
3583
+ 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, m = i >> 2, p = (i & 3) << 4 | c >> 4;
3584
3584
  let B = (c & 15) << 2 | A >> 6, v = A & 63;
3585
- l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
3585
+ l || (v = 64, a || (B = 64)), r.push(n[m], n[p], n[B], n[v]);
3586
3586
  }
3587
3587
  return r.join("");
3588
3588
  },
@@ -3894,7 +3894,7 @@ function cc(t) {
3894
3894
  return !1;
3895
3895
  return !0;
3896
3896
  }
3897
- function Ut(t, e) {
3897
+ function Wt(t, e) {
3898
3898
  if (t === e)
3899
3899
  return !0;
3900
3900
  const n = Object.keys(t), r = Object.keys(e);
@@ -3903,7 +3903,7 @@ function Ut(t, e) {
3903
3903
  return !1;
3904
3904
  const i = t[s], a = e[s];
3905
3905
  if (ur(i) && ur(a)) {
3906
- if (!Ut(i, a))
3906
+ if (!Wt(i, a))
3907
3907
  return !1;
3908
3908
  } else if (i !== a)
3909
3909
  return !1;
@@ -3990,7 +3990,7 @@ class lc {
3990
3990
  next: e,
3991
3991
  error: n,
3992
3992
  complete: r
3993
- }, s.next === void 0 && (s.next = An), s.error === void 0 && (s.error = An), s.complete === void 0 && (s.complete = An);
3993
+ }, s.next === void 0 && (s.next = dn), s.error === void 0 && (s.error = dn), s.complete === void 0 && (s.complete = dn);
3994
3994
  const i = this.unsubscribeOne.bind(this, this.observers.length);
3995
3995
  return this.finalized && this.task.then(() => {
3996
3996
  try {
@@ -4036,7 +4036,7 @@ function Ac(t, e) {
4036
4036
  return !0;
4037
4037
  return !1;
4038
4038
  }
4039
- function An() {
4039
+ function dn() {
4040
4040
  }
4041
4041
  /**
4042
4042
  * @license
@@ -4164,7 +4164,7 @@ class dc {
4164
4164
  if (this.component)
4165
4165
  throw Error(`Component for ${this.name} has already been provided`);
4166
4166
  if (this.component = e, !!this.shouldAutoInitialize()) {
4167
- if (mc(e))
4167
+ if (fc(e))
4168
4168
  try {
4169
4169
  this.getOrInitializeService({ instanceIdentifier: Ne });
4170
4170
  } catch {
@@ -4270,7 +4270,7 @@ class dc {
4270
4270
  function hc(t) {
4271
4271
  return t === Ne ? void 0 : t;
4272
4272
  }
4273
- function mc(t) {
4273
+ function fc(t) {
4274
4274
  return t.instantiationMode === "EAGER";
4275
4275
  }
4276
4276
  /**
@@ -4289,7 +4289,7 @@ function mc(t) {
4289
4289
  * See the License for the specific language governing permissions and
4290
4290
  * limitations under the License.
4291
4291
  */
4292
- class fc {
4292
+ class mc {
4293
4293
  constructor(e) {
4294
4294
  this.name = e, this.providers = /* @__PURE__ */ new Map();
4295
4295
  }
@@ -4443,7 +4443,7 @@ function Bc() {
4443
4443
  IDBCursor.prototype.continuePrimaryKey
4444
4444
  ]);
4445
4445
  }
4446
- const Hs = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
4446
+ const Hs = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
4447
4447
  function Dc(t) {
4448
4448
  const e = new Promise((n, r) => {
4449
4449
  const s = () => {
@@ -4461,7 +4461,7 @@ function Dc(t) {
4461
4461
  }), Un.set(e, t), e;
4462
4462
  }
4463
4463
  function Cc(t) {
4464
- if (Dn.has(t))
4464
+ if (Cn.has(t))
4465
4465
  return;
4466
4466
  const e = new Promise((n, r) => {
4467
4467
  const s = () => {
@@ -4473,13 +4473,13 @@ function Cc(t) {
4473
4473
  };
4474
4474
  t.addEventListener("complete", i), t.addEventListener("error", a), t.addEventListener("abort", a);
4475
4475
  });
4476
- Dn.set(t, e);
4476
+ Cn.set(t, e);
4477
4477
  }
4478
- let Cn = {
4478
+ let En = {
4479
4479
  get(t, e, n) {
4480
4480
  if (t instanceof IDBTransaction) {
4481
4481
  if (e === "done")
4482
- return Dn.get(t);
4482
+ return Cn.get(t);
4483
4483
  if (e === "objectStoreNames")
4484
4484
  return t.objectStoreNames || Qs.get(t);
4485
4485
  if (e === "store")
@@ -4495,30 +4495,30 @@ let Cn = {
4495
4495
  }
4496
4496
  };
4497
4497
  function Ec(t) {
4498
- Cn = t(Cn);
4498
+ En = t(En);
4499
4499
  }
4500
4500
  function Mc(t) {
4501
4501
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
4502
- const r = t.call(hn(this), e, ...n);
4502
+ const r = t.call(fn(this), e, ...n);
4503
4503
  return Qs.set(r, e.sort ? e.sort() : [e]), Fe(r);
4504
4504
  } : Bc().includes(t) ? function(...e) {
4505
- return t.apply(hn(this), e), Fe(Hs.get(this));
4505
+ return t.apply(fn(this), e), Fe(Hs.get(this));
4506
4506
  } : function(...e) {
4507
- return Fe(t.apply(hn(this), e));
4507
+ return Fe(t.apply(fn(this), e));
4508
4508
  };
4509
4509
  }
4510
4510
  function Ic(t) {
4511
- return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Cn) : t);
4511
+ return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, En) : t);
4512
4512
  }
4513
4513
  function Fe(t) {
4514
4514
  if (t instanceof IDBRequest)
4515
4515
  return Dc(t);
4516
- if (dn.has(t))
4517
- return dn.get(t);
4516
+ if (hn.has(t))
4517
+ return hn.get(t);
4518
4518
  const e = Ic(t);
4519
- return e !== t && (dn.set(t, e), Un.set(e, t)), e;
4519
+ return e !== t && (hn.set(t, e), Un.set(e, t)), e;
4520
4520
  }
4521
- const hn = (t) => Un.get(t);
4521
+ const fn = (t) => Un.get(t);
4522
4522
  function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
4523
4523
  const a = indexedDB.open(t, e), c = Fe(a);
4524
4524
  return r && a.addEventListener("upgradeneeded", (l) => {
@@ -4596,7 +4596,7 @@ function jc(t) {
4596
4596
  const e = t.getComponent();
4597
4597
  return (e == null ? void 0 : e.type) === "VERSION";
4598
4598
  }
4599
- const En = "@firebase/app", hr = "0.10.13";
4599
+ const Mn = "@firebase/app", hr = "0.10.13";
4600
4600
  /**
4601
4601
  * @license
4602
4602
  * Copyright 2019 Google LLC
@@ -4630,8 +4630,8 @@ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase
4630
4630
  * See the License for the specific language governing permissions and
4631
4631
  * limitations under the License.
4632
4632
  */
4633
- const Mn = "[DEFAULT]", au = {
4634
- [En]: "fire-core",
4633
+ const In = "[DEFAULT]", au = {
4634
+ [Mn]: "fire-core",
4635
4635
  [Yc]: "fire-core-compat",
4636
4636
  [xc]: "fire-analytics",
4637
4637
  [Vc]: "fire-analytics-compat",
@@ -4676,8 +4676,8 @@ const Mn = "[DEFAULT]", au = {
4676
4676
  * See the License for the specific language governing permissions and
4677
4677
  * limitations under the License.
4678
4678
  */
4679
- const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), In = /* @__PURE__ */ new Map();
4680
- function mr(t, e) {
4679
+ const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), Pn = /* @__PURE__ */ new Map();
4680
+ function fr(t, e) {
4681
4681
  try {
4682
4682
  t.container.addComponent(e);
4683
4683
  } catch (n) {
@@ -4686,13 +4686,13 @@ function mr(t, e) {
4686
4686
  }
4687
4687
  function bt(t) {
4688
4688
  const e = t.name;
4689
- if (In.has(e))
4689
+ if (Pn.has(e))
4690
4690
  return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
4691
- In.set(e, t);
4692
- for (const n of Wt.values())
4693
- mr(n, t);
4691
+ Pn.set(e, t);
4692
+ for (const n of zt.values())
4693
+ fr(n, t);
4694
4694
  for (const n of ou.values())
4695
- mr(n, t);
4695
+ fr(n, t);
4696
4696
  return !0;
4697
4697
  }
4698
4698
  function Xs(t, e) {
@@ -4812,7 +4812,7 @@ const Ot = iu;
4812
4812
  function Ss(t, e = {}) {
4813
4813
  let n = t;
4814
4814
  typeof e != "object" && (e = { name: e });
4815
- const r = Object.assign({ name: Mn, automaticDataCollectionEnabled: !1 }, e), s = r.name;
4815
+ const r = Object.assign({ name: In, automaticDataCollectionEnabled: !1 }, e), s = r.name;
4816
4816
  if (typeof s != "string" || !s)
4817
4817
  throw ke.create("bad-app-name", {
4818
4818
  appName: String(s)
@@ -4822,21 +4822,21 @@ function Ss(t, e = {}) {
4822
4822
  "no-options"
4823
4823
  /* AppError.NO_OPTIONS */
4824
4824
  );
4825
- const i = Wt.get(s);
4825
+ const i = zt.get(s);
4826
4826
  if (i) {
4827
- if (Ut(n, i.options) && Ut(r, i.config))
4827
+ if (Wt(n, i.options) && Wt(r, i.config))
4828
4828
  return i;
4829
4829
  throw ke.create("duplicate-app", { appName: s });
4830
4830
  }
4831
- const a = new fc(s);
4832
- for (const l of In.values())
4831
+ const a = new mc(s);
4832
+ for (const l of Pn.values())
4833
4833
  a.addComponent(l);
4834
4834
  const c = new uu(n, r, a);
4835
- return Wt.set(s, c), c;
4835
+ return zt.set(s, c), c;
4836
4836
  }
4837
- function lu(t = Mn) {
4838
- const e = Wt.get(t);
4839
- if (!e && t === Mn && Rs())
4837
+ function lu(t = In) {
4838
+ const e = zt.get(t);
4839
+ if (!e && t === In && Rs())
4840
4840
  return Ss();
4841
4841
  if (!e)
4842
4842
  throw ke.create("no-app", { appName: t });
@@ -4878,9 +4878,9 @@ function $e(t, e, n) {
4878
4878
  * limitations under the License.
4879
4879
  */
4880
4880
  const Au = "firebase-heartbeat-database", du = 1, wt = "firebase-heartbeat-store";
4881
- let fn = null;
4881
+ let gn = null;
4882
4882
  function Us() {
4883
- return fn || (fn = Pc(Au, du, {
4883
+ return gn || (gn = Pc(Au, du, {
4884
4884
  upgrade: (t, e) => {
4885
4885
  switch (e) {
4886
4886
  case 0:
@@ -4895,7 +4895,7 @@ function Us() {
4895
4895
  throw ke.create("idb-open", {
4896
4896
  originalErrorMessage: t.message
4897
4897
  });
4898
- })), fn;
4898
+ })), gn;
4899
4899
  }
4900
4900
  async function hu(t) {
4901
4901
  try {
@@ -4912,7 +4912,7 @@ async function hu(t) {
4912
4912
  }
4913
4913
  }
4914
4914
  }
4915
- async function fr(t, e) {
4915
+ async function mr(t, e) {
4916
4916
  try {
4917
4917
  const r = (await Us()).transaction(wt, "readwrite");
4918
4918
  await r.objectStore(wt).put(e, Ws(t)), await r.done;
@@ -4946,7 +4946,7 @@ function Ws(t) {
4946
4946
  * See the License for the specific language governing permissions and
4947
4947
  * limitations under the License.
4948
4948
  */
4949
- const mu = 1024, fu = 30 * 24 * 60 * 60 * 1e3;
4949
+ const fu = 1024, mu = 30 * 24 * 60 * 60 * 1e3;
4950
4950
  class gu {
4951
4951
  constructor(e) {
4952
4952
  this.container = e, this._heartbeatsCache = null;
@@ -4966,7 +4966,7 @@ class gu {
4966
4966
  const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), i = gr();
4967
4967
  return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === i || this._heartbeatsCache.heartbeats.some((a) => a.date === i) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: i, agent: s }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
4968
4968
  const c = new Date(a.date).valueOf();
4969
- return Date.now() - c <= fu;
4969
+ return Date.now() - c <= mu;
4970
4970
  }), this._storage.overwrite(this._heartbeatsCache));
4971
4971
  } catch (r) {
4972
4972
  ve.warn(r);
@@ -4994,7 +4994,7 @@ class gu {
4994
4994
  function gr() {
4995
4995
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
4996
4996
  }
4997
- function pu(t, e = mu) {
4997
+ function pu(t, e = fu) {
4998
4998
  const n = [];
4999
4999
  let r = t.slice();
5000
5000
  for (const s of t) {
@@ -5040,7 +5040,7 @@ class yu {
5040
5040
  var n;
5041
5041
  if (await this._canUseIndexedDBPromise) {
5042
5042
  const s = await this.read();
5043
- return fr(this.app, {
5043
+ return mr(this.app, {
5044
5044
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
5045
5045
  heartbeats: e.heartbeats
5046
5046
  });
@@ -5052,7 +5052,7 @@ class yu {
5052
5052
  var n;
5053
5053
  if (await this._canUseIndexedDBPromise) {
5054
5054
  const s = await this.read();
5055
- return fr(this.app, {
5055
+ return mr(this.app, {
5056
5056
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
5057
5057
  heartbeats: [
5058
5058
  ...s.heartbeats,
@@ -5096,7 +5096,7 @@ function bu(t) {
5096
5096
  (e) => new gu(e),
5097
5097
  "PRIVATE"
5098
5098
  /* ComponentType.PRIVATE */
5099
- )), $e(En, hr, t), $e(En, hr, "esm2017"), $e("fire-js", "");
5099
+ )), $e(Mn, hr, t), $e(Mn, hr, "esm2017"), $e("fire-js", "");
5100
5100
  }
5101
5101
  bu("");
5102
5102
  var wu = "firebase", vu = "10.14.1";
@@ -5156,12 +5156,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
5156
5156
  * See the License for the specific language governing permissions and
5157
5157
  * limitations under the License.
5158
5158
  */
5159
- const zt = new Ns("@firebase/auth");
5159
+ const Zt = new Ns("@firebase/auth");
5160
5160
  function Du(t, ...e) {
5161
- zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
5161
+ Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Ot}): ${t}`, ...e);
5162
5162
  }
5163
5163
  function qt(t, ...e) {
5164
- zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
5164
+ Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Ot}): ${t}`, ...e);
5165
5165
  }
5166
5166
  /**
5167
5167
  * @license
@@ -5228,7 +5228,7 @@ function De(t, e) {
5228
5228
  * See the License for the specific language governing permissions and
5229
5229
  * limitations under the License.
5230
5230
  */
5231
- function Pn() {
5231
+ function On() {
5232
5232
  var t;
5233
5233
  return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
5234
5234
  }
@@ -5482,10 +5482,10 @@ const Iu = {
5482
5482
  * limitations under the License.
5483
5483
  */
5484
5484
  const Pu = new Tt(3e4, 6e4);
5485
- function nn(t, e) {
5485
+ function rn(t, e) {
5486
5486
  return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
5487
5487
  }
5488
- async function mt(t, e, n, r, s = {}) {
5488
+ async function ft(t, e, n, r, s = {}) {
5489
5489
  return Js(t, s, async () => {
5490
5490
  let i = {}, a = {};
5491
5491
  r && (e === "GET" ? a = r : i = {
@@ -5528,10 +5528,10 @@ async function Js(t, e, n) {
5528
5528
  throw Ft(t, "email-already-in-use", a);
5529
5529
  if (l === "USER_DISABLED")
5530
5530
  throw Ft(t, "user-disabled", a);
5531
- const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
5531
+ const m = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
5532
5532
  if (A)
5533
- throw Ls(t, f, A);
5534
- Be(t, f);
5533
+ throw Ls(t, m, A);
5534
+ Be(t, m);
5535
5535
  }
5536
5536
  } catch (s) {
5537
5537
  if (s instanceof qe)
@@ -5540,7 +5540,7 @@ async function Js(t, e, n) {
5540
5540
  }
5541
5541
  }
5542
5542
  async function _s(t, e, n, r, s = {}) {
5543
- const i = await mt(t, e, n, r, s);
5543
+ const i = await ft(t, e, n, r, s);
5544
5544
  return "mfaPendingCredential" in i && Be(t, "multi-factor-auth-required", {
5545
5545
  _serverResponse: i
5546
5546
  }), i;
@@ -5588,10 +5588,10 @@ function Ft(t, e, n) {
5588
5588
  * limitations under the License.
5589
5589
  */
5590
5590
  async function Tu(t, e) {
5591
- return mt(t, "POST", "/v1/accounts:delete", e);
5591
+ return ft(t, "POST", "/v1/accounts:delete", e);
5592
5592
  }
5593
5593
  async function ei(t, e) {
5594
- return mt(t, "POST", "/v1/accounts:lookup", e);
5594
+ return ft(t, "POST", "/v1/accounts:lookup", e);
5595
5595
  }
5596
5596
  /**
5597
5597
  * @license
@@ -5630,14 +5630,14 @@ async function Gu(t, e = !1) {
5630
5630
  return {
5631
5631
  claims: s,
5632
5632
  token: r,
5633
- authTime: yt(gn(s.auth_time)),
5634
- issuedAtTime: yt(gn(s.iat)),
5635
- expirationTime: yt(gn(s.exp)),
5633
+ authTime: yt(pn(s.auth_time)),
5634
+ issuedAtTime: yt(pn(s.iat)),
5635
+ expirationTime: yt(pn(s.exp)),
5636
5636
  signInProvider: a || null,
5637
5637
  signInSecondFactor: (i == null ? void 0 : i.sign_in_second_factor) || null
5638
5638
  };
5639
5639
  }
5640
- function gn(t) {
5640
+ function pn(t) {
5641
5641
  return Number(t) * 1e3;
5642
5642
  }
5643
5643
  function Ln(t) {
@@ -5773,7 +5773,7 @@ class Yu {
5773
5773
  * See the License for the specific language governing permissions and
5774
5774
  * limitations under the License.
5775
5775
  */
5776
- class On {
5776
+ class Tn {
5777
5777
  constructor(e, n) {
5778
5778
  this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
5779
5779
  }
@@ -5806,7 +5806,7 @@ class On {
5806
5806
  * See the License for the specific language governing permissions and
5807
5807
  * limitations under the License.
5808
5808
  */
5809
- async function Zt(t) {
5809
+ async function Lt(t) {
5810
5810
  var e;
5811
5811
  const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
5812
5812
  M(
@@ -5817,7 +5817,7 @@ async function Zt(t) {
5817
5817
  );
5818
5818
  const i = s.users[0];
5819
5819
  t._notifyReloadListener(i);
5820
- const a = !((e = i.providerUserInfo) === null || e === void 0) && e.length ? ti(i.providerUserInfo) : [], c = xu(t.providerData, a), l = t.isAnonymous, A = !(t.email && i.passwordHash) && !(c != null && c.length), f = l ? A : !1, p = {
5820
+ const a = !((e = i.providerUserInfo) === null || e === void 0) && e.length ? ti(i.providerUserInfo) : [], c = xu(t.providerData, a), l = t.isAnonymous, A = !(t.email && i.passwordHash) && !(c != null && c.length), m = l ? A : !1, p = {
5821
5821
  uid: i.localId,
5822
5822
  displayName: i.displayName || null,
5823
5823
  photoURL: i.photoUrl || null,
@@ -5826,14 +5826,14 @@ async function Zt(t) {
5826
5826
  phoneNumber: i.phoneNumber || null,
5827
5827
  tenantId: i.tenantId || null,
5828
5828
  providerData: c,
5829
- metadata: new On(i.createdAt, i.lastLoginAt),
5830
- isAnonymous: f
5829
+ metadata: new Tn(i.createdAt, i.lastLoginAt),
5830
+ isAnonymous: m
5831
5831
  };
5832
5832
  Object.assign(t, p);
5833
5833
  }
5834
5834
  async function Vu(t) {
5835
5835
  const e = ht(t);
5836
- await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5836
+ await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5837
5837
  }
5838
5838
  function xu(t, e) {
5839
5839
  return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
@@ -5889,7 +5889,7 @@ async function Fu(t, e) {
5889
5889
  };
5890
5890
  }
5891
5891
  async function ku(t, e) {
5892
- return mt(t, "POST", "/v2/accounts:revokeToken", nn(t, e));
5892
+ return ft(t, "POST", "/v2/accounts:revokeToken", rn(t, e));
5893
5893
  }
5894
5894
  /**
5895
5895
  * @license
@@ -6007,7 +6007,7 @@ function Ee(t, e) {
6007
6007
  class be {
6008
6008
  constructor(e) {
6009
6009
  var { uid: n, auth: r, stsTokenManager: s } = e, i = Wn(e, ["uid", "auth", "stsTokenManager"]);
6010
- 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 On(i.createdAt || void 0, i.lastLoginAt || void 0);
6010
+ 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 Tn(i.createdAt || void 0, i.lastLoginAt || void 0);
6011
6011
  }
6012
6012
  async getIdToken(e) {
6013
6013
  const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
@@ -6055,7 +6055,7 @@ class be {
6055
6055
  }
6056
6056
  async _updateTokensIfNecessary(e, n = !1) {
6057
6057
  let r = !1;
6058
- 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);
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);
6059
6059
  }
6060
6060
  async delete() {
6061
6061
  if (pe(this.auth.app))
@@ -6088,8 +6088,8 @@ class be {
6088
6088
  return this.stsTokenManager.refreshToken || "";
6089
6089
  }
6090
6090
  static _fromJSON(e, n) {
6091
- 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, 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;
6091
+ var r, s, i, a, c, l, A, m;
6092
+ 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 = (m = n.lastLoginAt) !== null && m !== void 0 ? m : void 0, { uid: Y, emailVerified: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
6093
6093
  M(
6094
6094
  Y && ee,
6095
6095
  e,
@@ -6127,7 +6127,7 @@ class be {
6127
6127
  createdAt: R,
6128
6128
  lastLoginAt: Q
6129
6129
  });
6130
- return U && Array.isArray(U) && (u.providerData = U.map((m) => Object.assign({}, m))), V && (u._redirectEventId = V), u;
6130
+ return U && Array.isArray(U) && (u.providerData = U.map((f) => Object.assign({}, f))), V && (u._redirectEventId = V), u;
6131
6131
  }
6132
6132
  /**
6133
6133
  * Initialize a User from an idToken server response
@@ -6143,7 +6143,7 @@ class be {
6143
6143
  stsTokenManager: s,
6144
6144
  isAnonymous: r
6145
6145
  });
6146
- return await Zt(i), i;
6146
+ return await Lt(i), i;
6147
6147
  }
6148
6148
  /**
6149
6149
  * Initialize a User from an idToken server response
@@ -6173,7 +6173,7 @@ class be {
6173
6173
  phoneNumber: s.phoneNumber || null,
6174
6174
  tenantId: s.tenantId || null,
6175
6175
  providerData: i,
6176
- metadata: new On(s.createdAt, s.lastLoginAt),
6176
+ metadata: new Tn(s.createdAt, s.lastLoginAt),
6177
6177
  isAnonymous: !(s.email && s.passwordHash) && !(i != null && i.length)
6178
6178
  };
6179
6179
  return Object.assign(l, A), l;
@@ -6301,9 +6301,9 @@ class tt {
6301
6301
  let c = null;
6302
6302
  for (const A of n)
6303
6303
  try {
6304
- const f = await A._get(a);
6305
- if (f) {
6306
- const p = be._fromJSON(e, f);
6304
+ const m = await A._get(a);
6305
+ if (m) {
6306
+ const p = be._fromJSON(e, m);
6307
6307
  A !== i && (c = p), i = A;
6308
6308
  break;
6309
6309
  }
@@ -6504,7 +6504,7 @@ class Nu {
6504
6504
  * limitations under the License.
6505
6505
  */
6506
6506
  async function Hu(t, e = {}) {
6507
- return mt(t, "GET", "/v2/passwordPolicy", nn(t, e));
6507
+ return ft(t, "GET", "/v2/passwordPolicy", rn(t, e));
6508
6508
  }
6509
6509
  /**
6510
6510
  * @license
@@ -6698,7 +6698,7 @@ class Su {
6698
6698
  }
6699
6699
  async reloadAndSetCurrentUserOrClear(e) {
6700
6700
  try {
6701
- await Zt(e);
6701
+ await Lt(e);
6702
6702
  } catch (n) {
6703
6703
  if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
6704
6704
  return this.directlySetCurrentUser(null);
@@ -6943,7 +6943,7 @@ class Su {
6943
6943
  return n != null && n.error && Du(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
6944
6944
  }
6945
6945
  }
6946
- function rn(t) {
6946
+ function sn(t) {
6947
6947
  return ht(t);
6948
6948
  }
6949
6949
  class Cr {
@@ -7015,7 +7015,7 @@ function Lu(t, e) {
7015
7015
  const n = Xs(t, "auth");
7016
7016
  if (n.isInitialized()) {
7017
7017
  const s = n.getImmediate(), i = n.getOptions();
7018
- if (Ut(i, e ?? {}))
7018
+ if (Wt(i, e ?? {}))
7019
7019
  return s;
7020
7020
  Be(
7021
7021
  s,
@@ -7030,7 +7030,7 @@ function Ku(t, e) {
7030
7030
  e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
7031
7031
  }
7032
7032
  function Ju(t, e, n) {
7033
- const r = rn(t);
7033
+ const r = sn(t);
7034
7034
  M(
7035
7035
  r._canInitEmulator,
7036
7036
  r,
@@ -7139,7 +7139,7 @@ class hi {
7139
7139
  * limitations under the License.
7140
7140
  */
7141
7141
  async function nt(t, e) {
7142
- return _s(t, "POST", "/v1/accounts:signInWithIdp", nn(t, e));
7142
+ return _s(t, "POST", "/v1/accounts:signInWithIdp", rn(t, e));
7143
7143
  }
7144
7144
  /**
7145
7145
  * @license
@@ -7243,7 +7243,7 @@ class Ze extends hi {
7243
7243
  * See the License for the specific language governing permissions and
7244
7244
  * limitations under the License.
7245
7245
  */
7246
- class mi {
7246
+ class fi {
7247
7247
  /**
7248
7248
  * Constructor for generic OAuth providers.
7249
7249
  *
@@ -7296,7 +7296,7 @@ class mi {
7296
7296
  * See the License for the specific language governing permissions and
7297
7297
  * limitations under the License.
7298
7298
  */
7299
- class Gt extends mi {
7299
+ class Gt extends fi {
7300
7300
  constructor() {
7301
7301
  super(...arguments), this.scopes = [];
7302
7302
  }
@@ -7658,10 +7658,10 @@ function Mr(t) {
7658
7658
  * See the License for the specific language governing permissions and
7659
7659
  * limitations under the License.
7660
7660
  */
7661
- class Lt extends qe {
7661
+ class Kt extends qe {
7662
7662
  constructor(e, n, r, s) {
7663
7663
  var i;
7664
- super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
7664
+ super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
7665
7665
  appName: e.name,
7666
7666
  tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
7667
7667
  _serverResponse: n.customData._serverResponse,
@@ -7669,12 +7669,12 @@ class Lt extends qe {
7669
7669
  };
7670
7670
  }
7671
7671
  static _fromErrorAndOperation(e, n, r, s) {
7672
- return new Lt(e, n, r, s);
7672
+ return new Kt(e, n, r, s);
7673
7673
  }
7674
7674
  }
7675
- function fi(t, e, n, r) {
7675
+ function mi(t, e, n, r) {
7676
7676
  return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
7677
- throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
7677
+ throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
7678
7678
  });
7679
7679
  }
7680
7680
  async function tl(t, e, n = !1) {
@@ -7703,7 +7703,7 @@ async function nl(t, e, n = !1) {
7703
7703
  return Promise.reject(Re(r));
7704
7704
  const s = "reauthenticate";
7705
7705
  try {
7706
- const i = await vt(t, fi(r, s, e, t), n);
7706
+ const i = await vt(t, mi(r, s, e, t), n);
7707
7707
  M(
7708
7708
  i.idToken,
7709
7709
  r,
@@ -7751,7 +7751,7 @@ async function nl(t, e, n = !1) {
7751
7751
  async function rl(t, e, n = !1) {
7752
7752
  if (pe(t.app))
7753
7753
  return Promise.reject(Re(t));
7754
- const r = "signIn", s = await fi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
7754
+ const r = "signIn", s = await mi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
7755
7755
  return n || await t._updateCurrentUser(i.user), i;
7756
7756
  }
7757
7757
  /**
@@ -7771,7 +7771,7 @@ async function rl(t, e, n = !1) {
7771
7771
  * limitations under the License.
7772
7772
  */
7773
7773
  async function sl(t, e) {
7774
- return _s(t, "POST", "/v1/accounts:signInWithCustomToken", nn(t, e));
7774
+ return _s(t, "POST", "/v1/accounts:signInWithCustomToken", rn(t, e));
7775
7775
  }
7776
7776
  /**
7777
7777
  * @license
@@ -7792,7 +7792,7 @@ async function sl(t, e) {
7792
7792
  async function il(t, e) {
7793
7793
  if (pe(t.app))
7794
7794
  return Promise.reject(Re(t));
7795
- const n = rn(t), r = await sl(n, {
7795
+ const n = sn(t), r = await sl(n, {
7796
7796
  token: e,
7797
7797
  returnSecureToken: !0
7798
7798
  }), s = await Le._fromIdTokenResponse(n, "signIn", r);
@@ -7804,7 +7804,7 @@ function al(t, e, n, r) {
7804
7804
  function ol(t, e, n) {
7805
7805
  return ht(t).beforeAuthStateChanged(e, n);
7806
7806
  }
7807
- const Kt = "__sak";
7807
+ const Jt = "__sak";
7808
7808
  /**
7809
7809
  * @license
7810
7810
  * Copyright 2019 Google LLC
@@ -7827,7 +7827,7 @@ class gi {
7827
7827
  }
7828
7828
  _isAvailable() {
7829
7829
  try {
7830
- return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
7830
+ return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
7831
7831
  } catch {
7832
7832
  return Promise.resolve(!1);
7833
7833
  }
@@ -8021,7 +8021,7 @@ function Al(t) {
8021
8021
  * See the License for the specific language governing permissions and
8022
8022
  * limitations under the License.
8023
8023
  */
8024
- class sn {
8024
+ class an {
8025
8025
  constructor(e) {
8026
8026
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
8027
8027
  }
@@ -8035,7 +8035,7 @@ class sn {
8035
8035
  const n = this.receivers.find((s) => s.isListeningto(e));
8036
8036
  if (n)
8037
8037
  return n;
8038
- const r = new sn(e);
8038
+ const r = new an(e);
8039
8039
  return this.receivers.push(r), r;
8040
8040
  }
8041
8041
  isListeningto(e) {
@@ -8089,7 +8089,7 @@ class sn {
8089
8089
  this.handlersMap[e] && n && this.handlersMap[e].delete(n), (!n || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
8090
8090
  }
8091
8091
  }
8092
- sn.receivers = [];
8092
+ an.receivers = [];
8093
8093
  /**
8094
8094
  * @license
8095
8095
  * Copyright 2020 Google LLC
@@ -8164,7 +8164,7 @@ class dl {
8164
8164
  return new Promise((c, l) => {
8165
8165
  const A = _n("", 20);
8166
8166
  s.port1.start();
8167
- const f = setTimeout(() => {
8167
+ const m = setTimeout(() => {
8168
8168
  l(new Error(
8169
8169
  "unsupported_event"
8170
8170
  /* _MessageError.UNSUPPORTED_EVENT */
@@ -8177,7 +8177,7 @@ class dl {
8177
8177
  if (B.data.eventId === A)
8178
8178
  switch (B.data.status) {
8179
8179
  case "ack":
8180
- clearTimeout(f), i = setTimeout(
8180
+ clearTimeout(m), i = setTimeout(
8181
8181
  () => {
8182
8182
  l(new Error(
8183
8183
  "timeout"
@@ -8192,7 +8192,7 @@ class dl {
8192
8192
  clearTimeout(i), c(B.data.response);
8193
8193
  break;
8194
8194
  default:
8195
- clearTimeout(f), clearTimeout(i), l(new Error(
8195
+ clearTimeout(m), clearTimeout(i), l(new Error(
8196
8196
  "invalid_response"
8197
8197
  /* _MessageError.INVALID_RESPONSE */
8198
8198
  ));
@@ -8250,7 +8250,7 @@ function hl(t) {
8250
8250
  function wi() {
8251
8251
  return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
8252
8252
  }
8253
- async function ml() {
8253
+ async function fl() {
8254
8254
  if (!(navigator != null && navigator.serviceWorker))
8255
8255
  return null;
8256
8256
  try {
@@ -8259,7 +8259,7 @@ async function ml() {
8259
8259
  return null;
8260
8260
  }
8261
8261
  }
8262
- function fl() {
8262
+ function ml() {
8263
8263
  var t;
8264
8264
  return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
8265
8265
  }
@@ -8282,7 +8282,7 @@ function gl() {
8282
8282
  * See the License for the specific language governing permissions and
8283
8283
  * limitations under the License.
8284
8284
  */
8285
- const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
8285
+ const vi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
8286
8286
  class jt {
8287
8287
  constructor(e) {
8288
8288
  this.request = e;
@@ -8297,14 +8297,14 @@ class jt {
8297
8297
  });
8298
8298
  }
8299
8299
  }
8300
- function an(t, e) {
8301
- return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
8300
+ function on(t, e) {
8301
+ return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
8302
8302
  }
8303
8303
  function yl() {
8304
8304
  const t = indexedDB.deleteDatabase(vi);
8305
8305
  return new jt(t).toPromise();
8306
8306
  }
8307
- function Tn() {
8307
+ function Gn() {
8308
8308
  const t = indexedDB.open(vi, pl);
8309
8309
  return new Promise((e, n) => {
8310
8310
  t.addEventListener("error", () => {
@@ -8312,29 +8312,29 @@ function Tn() {
8312
8312
  }), t.addEventListener("upgradeneeded", () => {
8313
8313
  const r = t.result;
8314
8314
  try {
8315
- r.createObjectStore(Jt, { keyPath: Bi });
8315
+ r.createObjectStore(_t, { keyPath: Bi });
8316
8316
  } catch (s) {
8317
8317
  n(s);
8318
8318
  }
8319
8319
  }), t.addEventListener("success", async () => {
8320
8320
  const r = t.result;
8321
- r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await Tn()));
8321
+ r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await Gn()));
8322
8322
  });
8323
8323
  });
8324
8324
  }
8325
8325
  async function Ir(t, e, n) {
8326
- const r = an(t, !0).put({
8326
+ const r = on(t, !0).put({
8327
8327
  [Bi]: e,
8328
8328
  value: n
8329
8329
  });
8330
8330
  return new jt(r).toPromise();
8331
8331
  }
8332
8332
  async function bl(t, e) {
8333
- const n = an(t, !1).get(e), r = await new jt(n).toPromise();
8333
+ const n = on(t, !1).get(e), r = await new jt(n).toPromise();
8334
8334
  return r === void 0 ? null : r.value;
8335
8335
  }
8336
8336
  function Pr(t, e) {
8337
- const n = an(t, !0).delete(e);
8337
+ const n = on(t, !0).delete(e);
8338
8338
  return new jt(n).toPromise();
8339
8339
  }
8340
8340
  const wl = 800, vl = 3;
@@ -8345,7 +8345,7 @@ class Di {
8345
8345
  });
8346
8346
  }
8347
8347
  async _openDb() {
8348
- return this.db ? this.db : (this.db = await Tn(), this.db);
8348
+ return this.db ? this.db : (this.db = await Gn(), this.db);
8349
8349
  }
8350
8350
  async _withRetries(e) {
8351
8351
  let n = 0;
@@ -8370,7 +8370,7 @@ class Di {
8370
8370
  * As the worker we should listen to events from the main window.
8371
8371
  */
8372
8372
  async initializeReceiver() {
8373
- this.receiver = sn._getInstance(gl()), this.receiver._subscribe("keyChanged", async (e, n) => ({
8373
+ this.receiver = an._getInstance(gl()), this.receiver._subscribe("keyChanged", async (e, n) => ({
8374
8374
  keyProcessed: (await this._poll()).includes(n.key)
8375
8375
  })), this.receiver._subscribe("ping", async (e, n) => [
8376
8376
  "keyChanged"
@@ -8386,7 +8386,7 @@ class Di {
8386
8386
  */
8387
8387
  async initializeSender() {
8388
8388
  var e, n;
8389
- if (this.activeServiceWorker = await ml(), !this.activeServiceWorker)
8389
+ if (this.activeServiceWorker = await fl(), !this.activeServiceWorker)
8390
8390
  return;
8391
8391
  this.sender = new dl(this.activeServiceWorker);
8392
8392
  const r = await this.sender._send(
@@ -8410,7 +8410,7 @@ class Di {
8410
8410
  * @param key - Storage key which changed.
8411
8411
  */
8412
8412
  async notifyServiceWorker(e) {
8413
- if (!(!this.sender || !this.activeServiceWorker || fl() !== this.activeServiceWorker))
8413
+ if (!(!this.sender || !this.activeServiceWorker || ml() !== this.activeServiceWorker))
8414
8414
  try {
8415
8415
  await this.sender._send(
8416
8416
  "keyChanged",
@@ -8426,8 +8426,8 @@ class Di {
8426
8426
  try {
8427
8427
  if (!indexedDB)
8428
8428
  return !1;
8429
- const e = await Tn();
8430
- return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
8429
+ const e = await Gn();
8430
+ return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
8431
8431
  } catch {
8432
8432
  }
8433
8433
  return !1;
@@ -8452,7 +8452,7 @@ class Di {
8452
8452
  }
8453
8453
  async _poll() {
8454
8454
  const e = await this._withRetries((s) => {
8455
- const i = an(s, !1).getAll();
8455
+ const i = on(s, !1).getAll();
8456
8456
  return new jt(i).toPromise();
8457
8457
  });
8458
8458
  if (!e)
@@ -8832,7 +8832,7 @@ function Yl(t) {
8832
8832
  async function Vl(t, e, n = !1) {
8833
8833
  if (pe(t.app))
8834
8834
  return Promise.reject(Re(t));
8835
- const r = rn(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
8835
+ const r = sn(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
8836
8836
  return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
8837
8837
  }
8838
8838
  /**
@@ -8924,7 +8924,7 @@ function kl(t) {
8924
8924
  * limitations under the License.
8925
8925
  */
8926
8926
  async function Rl(t, e = {}) {
8927
- return mt(t, "GET", "/v1/projects", e);
8927
+ return ft(t, "GET", "/v1/projects", e);
8928
8928
  }
8929
8929
  /**
8930
8930
  * @license
@@ -8960,7 +8960,7 @@ async function Hl(t) {
8960
8960
  );
8961
8961
  }
8962
8962
  function Ql(t) {
8963
- const e = Pn(), { protocol: n, hostname: r } = new URL(e);
8963
+ const e = On(), { protocol: n, hostname: r } = new URL(e);
8964
8964
  if (t.startsWith("chrome-extension://")) {
8965
8965
  const a = new URL(t);
8966
8966
  return a.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === r;
@@ -9163,10 +9163,10 @@ function sA(t, e, n, r = eA, s = tA) {
9163
9163
  left: a
9164
9164
  }), A = K().toLowerCase();
9165
9165
  n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
9166
- const f = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
9166
+ const m = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
9167
9167
  if (Ru(A) && c !== "_self")
9168
9168
  return iA(e || "", c), new Gr(null);
9169
- const p = window.open(e || "", c, f);
9169
+ const p = window.open(e || "", c, m);
9170
9170
  M(
9171
9171
  p,
9172
9172
  t,
@@ -9222,19 +9222,19 @@ async function jr(t, e, n, r, s, i) {
9222
9222
  v: Ot,
9223
9223
  eventId: s
9224
9224
  };
9225
- if (e instanceof mi) {
9225
+ if (e instanceof fi) {
9226
9226
  e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "", cc(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
9227
- for (const [f, p] of Object.entries({}))
9228
- a[f] = p;
9227
+ for (const [m, p] of Object.entries({}))
9228
+ a[m] = p;
9229
9229
  }
9230
9230
  if (e instanceof Gt) {
9231
- const f = e.getScopes().filter((p) => p !== "");
9232
- f.length > 0 && (a.scopes = f.join(","));
9231
+ const m = e.getScopes().filter((p) => p !== "");
9232
+ m.length > 0 && (a.scopes = m.join(","));
9233
9233
  }
9234
9234
  t.tenantId && (a.tid = t.tenantId);
9235
9235
  const c = a;
9236
- for (const f of Object.keys(c))
9237
- c[f] === void 0 && delete c[f];
9236
+ for (const m of Object.keys(c))
9237
+ c[m] === void 0 && delete c[m];
9238
9238
  const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
9239
9239
  return `${uA(t)}?${Pt(c).slice(1)}${A}`;
9240
9240
  }
@@ -9257,7 +9257,7 @@ function uA({ config: t }) {
9257
9257
  * See the License for the specific language governing permissions and
9258
9258
  * limitations under the License.
9259
9259
  */
9260
- const pn = "webStorageSupport";
9260
+ const yn = "webStorageSupport";
9261
9261
  class lA {
9262
9262
  constructor() {
9263
9263
  this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = bi, this._completeRedirectFn = Vl, this._overrideRedirectResult = Gl;
@@ -9267,12 +9267,12 @@ class lA {
9267
9267
  async _openPopup(e, n, r, s) {
9268
9268
  var i;
9269
9269
  De((i = this.eventManagers[e._key()]) === null || i === void 0 ? void 0 : i.manager, "_initialize() not called before _openPopup()");
9270
- const a = await jr(e, n, r, Pn(), s);
9270
+ const a = await jr(e, n, r, On(), s);
9271
9271
  return sA(e, a, _n());
9272
9272
  }
9273
9273
  async _openRedirect(e, n, r, s) {
9274
9274
  await this._originValidation(e);
9275
- const i = await jr(e, n, r, Pn(), s);
9275
+ const i = await jr(e, n, r, On(), s);
9276
9276
  return hl(i), new Promise(() => {
9277
9277
  });
9278
9278
  }
@@ -9300,9 +9300,9 @@ class lA {
9300
9300
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
9301
9301
  }
9302
9302
  _isIframeWebStorageSupported(e, n) {
9303
- this.iframes[e._key()].send(pn, { type: pn }, (s) => {
9303
+ this.iframes[e._key()].send(yn, { type: yn }, (s) => {
9304
9304
  var i;
9305
- const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[pn];
9305
+ const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[yn];
9306
9306
  a !== void 0 && n(!!a), Be(
9307
9307
  e,
9308
9308
  "internal-error"
@@ -9403,7 +9403,7 @@ function hA(t) {
9403
9403
  return;
9404
9404
  }
9405
9405
  }
9406
- function mA(t) {
9406
+ function fA(t) {
9407
9407
  bt(new dt(
9408
9408
  "auth",
9409
9409
  (e, { options: n }) => {
@@ -9433,7 +9433,7 @@ function mA(t) {
9433
9433
  })), bt(new dt(
9434
9434
  "auth-internal",
9435
9435
  (e) => {
9436
- const n = rn(e.getProvider(
9436
+ const n = sn(e.getProvider(
9437
9437
  "auth"
9438
9438
  /* _ComponentName.AUTH */
9439
9439
  ).getImmediate());
@@ -9462,7 +9462,7 @@ function mA(t) {
9462
9462
  * See the License for the specific language governing permissions and
9463
9463
  * limitations under the License.
9464
9464
  */
9465
- const fA = 5 * 60, gA = qs("authIdTokenMaxAge") || fA;
9465
+ const mA = 5 * 60, gA = qs("authIdTokenMaxAge") || mA;
9466
9466
  let xr = null;
9467
9467
  const pA = (t) => async (e) => {
9468
9468
  const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
@@ -9519,11 +9519,11 @@ Uu({
9519
9519
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
9520
9520
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
9521
9521
  });
9522
- mA(
9522
+ fA(
9523
9523
  "Browser"
9524
9524
  /* ClientPlatform.BROWSER */
9525
9525
  );
9526
- var on = class {
9526
+ var cn = class {
9527
9527
  constructor() {
9528
9528
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
9529
9529
  }
@@ -9539,7 +9539,7 @@ var on = class {
9539
9539
  }
9540
9540
  onUnsubscribe() {
9541
9541
  }
9542
- }, He, Ge, rt, Xr, wA = (Xr = class extends on {
9542
+ }, He, Ge, rt, Xr, wA = (Xr = class extends cn {
9543
9543
  constructor() {
9544
9544
  super();
9545
9545
  G(this, He);
@@ -9625,7 +9625,7 @@ var on = class {
9625
9625
  clearInterval(t) {
9626
9626
  h(this, oe).clearInterval(t);
9627
9627
  }
9628
- }, oe = new WeakMap(), Qe = new WeakMap(), Sr), Gn = new BA();
9628
+ }, oe = new WeakMap(), Qe = new WeakMap(), Sr), jn = new BA();
9629
9629
  function DA(t) {
9630
9630
  setTimeout(t, 0);
9631
9631
  }
@@ -9641,7 +9641,7 @@ function MA(t) {
9641
9641
  function IA(t, e) {
9642
9642
  return Math.max(t + (e || 0) - Date.now(), 0);
9643
9643
  }
9644
- function jn(t, e) {
9644
+ function Yn(t, e) {
9645
9645
  return typeof t == "function" ? t(e) : t;
9646
9646
  }
9647
9647
  function PA(t, e) {
@@ -9689,32 +9689,32 @@ function er(t, e) {
9689
9689
  function Bt(t) {
9690
9690
  return JSON.stringify(
9691
9691
  t,
9692
- (e, n) => Vn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
9692
+ (e, n) => xn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
9693
9693
  );
9694
9694
  }
9695
9695
  function Dt(t, e) {
9696
9696
  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
9697
  }
9698
9698
  var OA = Object.prototype.hasOwnProperty;
9699
- function Yn(t, e, n = 0) {
9699
+ function Vn(t, e, n = 0) {
9700
9700
  if (t === e)
9701
9701
  return t;
9702
9702
  if (n > 500) return e;
9703
9703
  const r = Rr(t) && Rr(e);
9704
- if (!r && !(Vn(t) && Vn(e))) return e;
9704
+ if (!r && !(xn(t) && xn(e))) return e;
9705
9705
  const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
9706
9706
  let A = 0;
9707
- for (let f = 0; f < c; f++) {
9708
- const p = r ? f : a[f], B = t[p], v = e[p];
9707
+ for (let m = 0; m < c; m++) {
9708
+ const p = r ? m : a[m], B = t[p], v = e[p];
9709
9709
  if (B === v) {
9710
- l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
9710
+ l[p] = B, (r ? m < i : OA.call(t, p)) && A++;
9711
9711
  continue;
9712
9712
  }
9713
9713
  if (B === null || v === null || typeof B != "object" || typeof v != "object") {
9714
9714
  l[p] = v;
9715
9715
  continue;
9716
9716
  }
9717
- const O = Yn(B, v, n + 1);
9717
+ const O = Vn(B, v, n + 1);
9718
9718
  l[p] = O, O === B && A++;
9719
9719
  }
9720
9720
  return i === c && A === i ? t : l;
@@ -9730,7 +9730,7 @@ function ld(t, e) {
9730
9730
  function Rr(t) {
9731
9731
  return Array.isArray(t) && t.length === Object.keys(t).length;
9732
9732
  }
9733
- function Vn(t) {
9733
+ function xn(t) {
9734
9734
  if (!qr(t))
9735
9735
  return !1;
9736
9736
  const e = t.constructor;
@@ -9744,7 +9744,7 @@ function qr(t) {
9744
9744
  }
9745
9745
  function TA(t) {
9746
9746
  return new Promise((e) => {
9747
- Gn.setTimeout(e, t);
9747
+ jn.setTimeout(e, t);
9748
9748
  });
9749
9749
  }
9750
9750
  function GA(t, e, n) {
@@ -9753,13 +9753,13 @@ function GA(t, e, n) {
9753
9753
  if (n.structuralSharing !== !1) {
9754
9754
  if (process.env.NODE_ENV !== "production")
9755
9755
  try {
9756
- return Yn(t, e);
9756
+ return Vn(t, e);
9757
9757
  } catch (r) {
9758
9758
  throw console.error(
9759
9759
  `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
9760
9760
  ), r;
9761
9761
  }
9762
- return Yn(t, e);
9762
+ return Vn(t, e);
9763
9763
  }
9764
9764
  return e;
9765
9765
  }
@@ -9774,11 +9774,11 @@ function YA(t, e, n = 0) {
9774
9774
  const r = [e, ...t];
9775
9775
  return n && r.length > n ? r.slice(0, -1) : r;
9776
9776
  }
9777
- var _t = /* @__PURE__ */ Symbol();
9777
+ var $t = /* @__PURE__ */ Symbol();
9778
9778
  function Ii(t, e) {
9779
- return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
9779
+ return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
9780
9780
  `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;
9781
+ ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9782
9782
  }
9783
9783
  function dd(t, e) {
9784
9784
  return typeof t == "function" ? t(...e) : !!t;
@@ -9889,7 +9889,7 @@ function kA() {
9889
9889
  }
9890
9890
  };
9891
9891
  }
9892
- var L = kA(), st, je, it, Ur, RA = (Ur = class extends on {
9892
+ var L = kA(), st, je, it, Ur, RA = (Ur = class extends cn {
9893
9893
  constructor() {
9894
9894
  super();
9895
9895
  G(this, st, !0);
@@ -9923,14 +9923,14 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends on {
9923
9923
  isOnline() {
9924
9924
  return h(this, st);
9925
9925
  }
9926
- }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new RA();
9926
+ }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
9927
9927
  function qA(t) {
9928
9928
  return Math.min(1e3 * 2 ** t, 3e4);
9929
9929
  }
9930
9930
  function Oi(t) {
9931
- return (t ?? "online") === "online" ? $t.isOnline() : !0;
9931
+ return (t ?? "online") === "online" ? en.isOnline() : !0;
9932
9932
  }
9933
- var xn = class extends Error {
9933
+ var Fn = class extends Error {
9934
9934
  constructor(t) {
9935
9935
  super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
9936
9936
  }
@@ -9940,14 +9940,14 @@ function Ti(t) {
9940
9940
  const s = xA(), i = () => s.status !== "pending", a = (I) => {
9941
9941
  var V;
9942
9942
  if (!i()) {
9943
- const R = new xn(I);
9943
+ const R = new Fn(I);
9944
9944
  B(R), (V = t.onCancel) == null || V.call(t, R);
9945
9945
  }
9946
9946
  }, c = () => {
9947
9947
  e = !0;
9948
9948
  }, l = () => {
9949
9949
  e = !1;
9950
- }, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9950
+ }, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), m = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9951
9951
  i() || (r == null || r(), s.resolve(I));
9952
9952
  }, B = (I) => {
9953
9953
  i() || (r == null || r(), s.reject(I));
@@ -9990,8 +9990,8 @@ function Ti(t) {
9990
9990
  continue: () => (r == null || r(), s),
9991
9991
  cancelRetry: c,
9992
9992
  continueRetry: l,
9993
- canStart: f,
9994
- start: () => (f() ? O() : v().then(O), s)
9993
+ canStart: m,
9994
+ start: () => (m() ? O() : v().then(O), s)
9995
9995
  };
9996
9996
  }
9997
9997
  var Xe, Wr, Gi = (Wr = class {
@@ -10002,7 +10002,7 @@ var Xe, Wr, Gi = (Wr = class {
10002
10002
  this.clearGcTimeout();
10003
10003
  }
10004
10004
  scheduleGc() {
10005
- this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe, Gn.setTimeout(() => {
10005
+ this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe, jn.setTimeout(() => {
10006
10006
  this.optionalRemove();
10007
10007
  }, this.gcTime));
10008
10008
  }
@@ -10013,14 +10013,14 @@ var Xe, Wr, Gi = (Wr = class {
10013
10013
  );
10014
10014
  }
10015
10015
  clearGcTimeout() {
10016
- h(this, Xe) !== void 0 && (Gn.clearTimeout(h(this, Xe)), D(this, Xe, void 0));
10016
+ h(this, Xe) !== void 0 && (jn.clearTimeout(h(this, Xe)), D(this, Xe, void 0));
10017
10017
  }
10018
10018
  }, Xe = new WeakMap(), Wr);
10019
10019
  function NA(t) {
10020
10020
  return {
10021
10021
  onFetch: (e, n) => {
10022
- var f, p, B, v, 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 = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
10022
+ var m, p, B, v, O;
10023
+ const r = e.options, s = (B = (p = (m = e.fetchOptions) == null ? void 0 : m.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
10024
  let c = { pages: [], pageParams: [] }, l = 0;
10025
10025
  const A = async () => {
10026
10026
  let I = !1;
@@ -10044,10 +10044,10 @@ function NA(t) {
10044
10044
  meta: e.options.meta
10045
10045
  };
10046
10046
  return V(g), g;
10047
- })(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
10047
+ })(), q = await R(ee), { maxPages: u } = e.options, f = H ? YA : jA;
10048
10048
  return {
10049
- pages: m(Y.pages, q, u),
10050
- pageParams: m(Y.pageParams, w, u)
10049
+ pages: f(Y.pages, q, u),
10050
+ pageParams: f(Y.pageParams, w, u)
10051
10051
  };
10052
10052
  };
10053
10053
  if (s && i.length) {
@@ -10097,7 +10097,7 @@ function HA(t, { pages: e, pageParams: n }) {
10097
10097
  var r;
10098
10098
  return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
10099
10099
  }
10100
- var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10100
+ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
10101
10101
  constructor(e) {
10102
10102
  super();
10103
10103
  G(this, ne);
@@ -10134,7 +10134,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10134
10134
  }
10135
10135
  setData(e, n) {
10136
10136
  const r = GA(this.state.data, e, this.options);
10137
- return z(this, ne, me).call(this, {
10137
+ return z(this, ne, fe).call(this, {
10138
10138
  data: r,
10139
10139
  type: "success",
10140
10140
  dataUpdatedAt: n == null ? void 0 : n.updatedAt,
@@ -10142,7 +10142,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10142
10142
  }), r;
10143
10143
  }
10144
10144
  setState(e) {
10145
- z(this, ne, me).call(this, { type: "setState", state: e });
10145
+ z(this, ne, fe).call(this, { type: "setState", state: e });
10146
10146
  }
10147
10147
  cancel(e) {
10148
10148
  var r, s;
@@ -10164,14 +10164,14 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10164
10164
  );
10165
10165
  }
10166
10166
  isDisabled() {
10167
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
10167
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
10168
10168
  }
10169
10169
  isFetched() {
10170
10170
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
10171
10171
  }
10172
10172
  isStatic() {
10173
10173
  return this.getObserversCount() > 0 ? this.observers.some(
10174
- (e) => jn(e.options.staleTime, this) === "static"
10174
+ (e) => Yn(e.options.staleTime, this) === "static"
10175
10175
  ) : !1;
10176
10176
  }
10177
10177
  isStale() {
@@ -10202,10 +10202,10 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10202
10202
  return this.observers.length;
10203
10203
  }
10204
10204
  invalidate() {
10205
- this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
10205
+ this.state.isInvalidated || z(this, ne, fe).call(this, { type: "invalidate" });
10206
10206
  }
10207
10207
  async fetch(e, n) {
10208
- var A, f, p, B, v, O, I, V, R, Q, Y;
10208
+ var A, m, p, B, v, O, I, V, R, Q, Y;
10209
10209
  if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
10210
10210
  // re-start the fetch; there is a chance that the query is still in a
10211
10211
  // pending state when that happens
@@ -10254,23 +10254,23 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10254
10254
  })(), l = h(this, at) === "infinite" ? NA(
10255
10255
  this.options.pages
10256
10256
  ) : this.options.behavior;
10257
- 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({
10257
+ l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((m = c.fetchOptions) == null ? void 0 : m.meta)) && z(this, ne, fe).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
10258
10258
  initialPromise: n == null ? void 0 : n.initialPromise,
10259
10259
  fn: c.fetchFn,
10260
10260
  onCancel: (w) => {
10261
- w instanceof xn && w.revert && this.setState({
10261
+ w instanceof Fn && w.revert && this.setState({
10262
10262
  ...h(this, ot),
10263
10263
  fetchStatus: "idle"
10264
10264
  }), r.abort();
10265
10265
  },
10266
10266
  onFail: (w, H) => {
10267
- z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
10267
+ z(this, ne, fe).call(this, { type: "failed", failureCount: w, error: H });
10268
10268
  },
10269
10269
  onPause: () => {
10270
- z(this, ne, me).call(this, { type: "pause" });
10270
+ z(this, ne, fe).call(this, { type: "pause" });
10271
10271
  },
10272
10272
  onContinue: () => {
10273
- z(this, ne, me).call(this, { type: "continue" });
10273
+ z(this, ne, fe).call(this, { type: "continue" });
10274
10274
  },
10275
10275
  retry: c.options.retry,
10276
10276
  retryDelay: c.options.retryDelay,
@@ -10290,7 +10290,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10290
10290
  this
10291
10291
  ), w;
10292
10292
  } catch (w) {
10293
- if (w instanceof xn) {
10293
+ if (w instanceof Fn) {
10294
10294
  if (w.silent)
10295
10295
  return h(this, S).promise;
10296
10296
  if (w.revert) {
@@ -10299,7 +10299,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10299
10299
  return this.state.data;
10300
10300
  }
10301
10301
  }
10302
- throw z(this, ne, me).call(this, {
10302
+ throw z(this, ne, fe).call(this, {
10303
10303
  type: "error",
10304
10304
  error: w
10305
10305
  }), (R = (V = h(this, re).config).onError) == null || R.call(
@@ -10318,7 +10318,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10318
10318
  }
10319
10319
  }, 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
10320
  return this.state.fetchStatus === "paused" && this.state.status === "pending";
10321
- }, me = function(e) {
10321
+ }, fe = function(e) {
10322
10322
  const n = (r) => {
10323
10323
  switch (e.type) {
10324
10324
  case "failed":
@@ -10464,7 +10464,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10464
10464
  this.execute(this.state.variables);
10465
10465
  }
10466
10466
  async execute(e) {
10467
- var a, c, l, A, f, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
10467
+ var a, c, l, A, m, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
10468
10468
  const n = () => {
10469
10469
  z(this, ue, Me).call(this, { type: "continue" });
10470
10470
  }, r = {
@@ -10516,8 +10516,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10516
10516
  this.state.context,
10517
10517
  this,
10518
10518
  r
10519
- )), await ((p = (f = this.options).onSuccess) == null ? void 0 : p.call(
10520
- f,
10519
+ )), await ((p = (m = this.options).onSuccess) == null ? void 0 : p.call(
10520
+ m,
10521
10521
  q,
10522
10522
  e,
10523
10523
  this.state.context,
@@ -10669,13 +10669,13 @@ function UA() {
10669
10669
  submittedAt: 0
10670
10670
  };
10671
10671
  }
10672
- var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
10672
+ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
10673
10673
  constructor(n = {}) {
10674
10674
  super();
10675
- G(this, fe);
10675
+ G(this, me);
10676
10676
  G(this, ae);
10677
10677
  G(this, Mt);
10678
- this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
10678
+ this.config = n, D(this, me, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
10679
10679
  }
10680
10680
  build(n, r, s) {
10681
10681
  const i = new SA({
@@ -10688,7 +10688,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
10688
10688
  return this.add(i), i;
10689
10689
  }
10690
10690
  add(n) {
10691
- h(this, fe).add(n);
10691
+ h(this, me).add(n);
10692
10692
  const r = kt(n);
10693
10693
  if (typeof r == "string") {
10694
10694
  const s = h(this, ae).get(r);
@@ -10697,7 +10697,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
10697
10697
  this.notify({ type: "added", mutation: n });
10698
10698
  }
10699
10699
  remove(n) {
10700
- if (h(this, fe).delete(n)) {
10700
+ if (h(this, me).delete(n)) {
10701
10701
  const r = kt(n);
10702
10702
  if (typeof r == "string") {
10703
10703
  const s = h(this, ae).get(r);
@@ -10731,13 +10731,13 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
10731
10731
  }
10732
10732
  clear() {
10733
10733
  L.batch(() => {
10734
- h(this, fe).forEach((n) => {
10734
+ h(this, me).forEach((n) => {
10735
10735
  this.notify({ type: "removed", mutation: n });
10736
- }), h(this, fe).clear(), h(this, ae).clear();
10736
+ }), h(this, me).clear(), h(this, ae).clear();
10737
10737
  });
10738
10738
  }
10739
10739
  getAll() {
10740
- return Array.from(h(this, fe));
10740
+ return Array.from(h(this, me));
10741
10741
  }
10742
10742
  find(n) {
10743
10743
  const r = { exact: !0, ...n };
@@ -10763,12 +10763,12 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
10763
10763
  )
10764
10764
  );
10765
10765
  }
10766
- }, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
10766
+ }, me = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
10767
10767
  function kt(t) {
10768
10768
  var e;
10769
10769
  return (e = t.options.scope) == null ? void 0 : e.id;
10770
10770
  }
10771
- var le, Kr, Vi = (Kr = class extends on {
10771
+ var le, Kr, Vi = (Kr = class extends cn {
10772
10772
  constructor(n = {}) {
10773
10773
  super();
10774
10774
  G(this, le);
@@ -10855,7 +10855,7 @@ var le, Kr, Vi = (Kr = class extends on {
10855
10855
  mount() {
10856
10856
  Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10857
10857
  e && (await this.resumePausedMutations(), h(this, N).onFocus());
10858
- })), D(this, At, $t.subscribe(async (e) => {
10858
+ })), D(this, At, en.subscribe(async (e) => {
10859
10859
  e && (await this.resumePausedMutations(), h(this, N).onOnline());
10860
10860
  })));
10861
10861
  }
@@ -10883,7 +10883,7 @@ var le, Kr, Vi = (Kr = class extends on {
10883
10883
  }
10884
10884
  ensureQueryData(e) {
10885
10885
  const n = this.defaultQueryOptions(e), r = h(this, N).build(this, n), s = r.state.data;
10886
- return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(jn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
10886
+ return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Yn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
10887
10887
  }
10888
10888
  getQueriesData(e) {
10889
10889
  return h(this, N).findAll(e).map(({ queryKey: n, state: r }) => {
@@ -10967,7 +10967,7 @@ var le, Kr, Vi = (Kr = class extends on {
10967
10967
  n.retry === void 0 && (n.retry = !1);
10968
10968
  const r = h(this, N).build(this, n);
10969
10969
  return r.isStaleByTime(
10970
- jn(n.staleTime, r)
10970
+ Yn(n.staleTime, r)
10971
10971
  ) ? r.fetch(n) : Promise.resolve(r.state.data);
10972
10972
  }
10973
10973
  prefetchQuery(e) {
@@ -10983,7 +10983,7 @@ var le, Kr, Vi = (Kr = class extends on {
10983
10983
  return e._type = "infinite", this.ensureQueryData(e);
10984
10984
  }
10985
10985
  resumePausedMutations() {
10986
- return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10986
+ return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10987
10987
  }
10988
10988
  getQueryCache() {
10989
10989
  return h(this, N);
@@ -11033,7 +11033,7 @@ var le, Kr, Vi = (Kr = class extends on {
11033
11033
  return n.queryHash || (n.queryHash = er(
11034
11034
  n.queryKey,
11035
11035
  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;
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;
11037
11037
  }
11038
11038
  defaultMutationOptions(e) {
11039
11039
  return e != null && e._defaulted ? e : {
@@ -11056,27 +11056,27 @@ function pd(t, e) {
11056
11056
  t[n] = e[n];
11057
11057
  });
11058
11058
  }
11059
- function Fn(t, e, n = "", r = 0) {
11059
+ function kn(t, e, n = "", r = 0) {
11060
11060
  if (e) {
11061
11061
  const s = e(t, n, r);
11062
- if (s === void 0 && kn(t) || s !== void 0)
11062
+ if (s === void 0 && Rn(t) || s !== void 0)
11063
11063
  return s;
11064
11064
  }
11065
11065
  if (Array.isArray(t))
11066
11066
  return t.map(
11067
- (s, i) => Fn(s, e, String(i), r + 1)
11067
+ (s, i) => kn(s, e, String(i), r + 1)
11068
11068
  );
11069
11069
  if (typeof t == "object" && ZA(t)) {
11070
11070
  const s = Object.entries(t).map(([i, a]) => [
11071
11071
  i,
11072
- Fn(a, e, i, r + 1)
11072
+ kn(a, e, i, r + 1)
11073
11073
  ]);
11074
11074
  return Object.fromEntries(s);
11075
11075
  }
11076
11076
  return t;
11077
11077
  }
11078
11078
  function zA(t, e) {
11079
- return Fn(t, e);
11079
+ return kn(t, e);
11080
11080
  }
11081
11081
  function T(t, e = !1) {
11082
11082
  return zA(t, (n, r, s) => {
@@ -11084,7 +11084,7 @@ function T(t, e = !1) {
11084
11084
  return T(n, !0);
11085
11085
  if (e && LA(n))
11086
11086
  return T(n(), e);
11087
- if (kn(n))
11087
+ if (Rn(n))
11088
11088
  return T(ge(n), e);
11089
11089
  });
11090
11090
  }
@@ -11217,7 +11217,7 @@ var KA = class extends Vi {
11217
11217
  };
11218
11218
  Ki({
11219
11219
  history: Ji(),
11220
- routes: [...Xn, ...pt].map((t) => ({
11220
+ routes: [...Ut, ...pt].map((t) => ({
11221
11221
  ...t,
11222
11222
  component: os(
11223
11223
  _r({
@@ -11226,32 +11226,32 @@ Ki({
11226
11226
  )
11227
11227
  }))
11228
11228
  });
11229
- const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ */ en({
11229
+ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ */ tn({
11230
11230
  __name: "AppSidebar",
11231
11231
  setup(t) {
11232
- const e = Nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
11232
+ const e = Hn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
11233
11233
  $r(n.currentRoute, () => {
11234
11234
  let A = n.currentRoute.value.name;
11235
11235
  n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
11236
11236
  });
11237
- const i = Xn.map((A) => {
11237
+ const i = Ut.map((A) => {
11238
11238
  var B, v;
11239
11239
  if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
11240
11240
  return;
11241
- const f = A.meta.sidebarDisplay, p = {
11242
- label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
11241
+ const m = A.meta.sidebarDisplay, p = {
11242
+ label: m.startsWith("i18n:") ? r(m.replaceAll("i18n:", "")) : m,
11243
11243
  value: A.name,
11244
11244
  action: () => {
11245
11245
  if (n.currentRoute.value.name !== A.name)
11246
11246
  return n.push({ name: A.name });
11247
11247
  }
11248
11248
  };
11249
- return A.meta.sidebarNew && (p.badge = () => yn(ea.FmPill, { label: "New" })), p;
11249
+ return A.meta.sidebarNew && (p.badge = () => bn(ea.FmPill, { label: "New" })), p;
11250
11250
  }).filter((A) => !!A);
11251
- function a(A, f) {
11251
+ function a(A, m) {
11252
11252
  return A.map((p) => {
11253
11253
  var B, v;
11254
- return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== f ? [] : [
11254
+ return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], m) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== m ? [] : [
11255
11255
  {
11256
11256
  label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
11257
11257
  value: p.name,
@@ -11264,8 +11264,8 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
11264
11264
  }).flat().filter((p) => !!p);
11265
11265
  }
11266
11266
  const c = pt.map((A) => {
11267
- var f;
11268
- if ((f = A.meta) != null && f.sidebarDisplay && !A.meta.section)
11267
+ var m;
11268
+ if ((m = A.meta) != null && m.sidebarDisplay && !A.meta.section)
11269
11269
  return {
11270
11270
  label: A.meta.sidebarDisplay.startsWith("i18n:") ? r(A.meta.sidebarDisplay.replaceAll("i18n:", "")) : A.meta.sidebarDisplay,
11271
11271
  value: A.name,
@@ -11274,9 +11274,18 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
11274
11274
  return n.push({ name: A.name });
11275
11275
  }
11276
11276
  };
11277
- }).filter((A) => !!A), l = Rn(() => {
11277
+ }).filter((A) => !!A), l = qn(() => {
11278
11278
  const A = [...i];
11279
- return $A(e.sessionUser.value) && (A.push({
11279
+ return A.push({
11280
+ label: "",
11281
+ value: "divider",
11282
+ disabled: !0
11283
+ }), A.push({
11284
+ label: r("financing.title"),
11285
+ icon: "credit_score",
11286
+ value: "divider",
11287
+ disabled: !0
11288
+ }), A.push(...a(Ut, "financing")), $A(e.sessionUser.value) && (A.push({
11280
11289
  label: "",
11281
11290
  value: "divider",
11282
11291
  disabled: !0
@@ -11305,22 +11314,22 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
11305
11314
  disabled: !0
11306
11315
  }), A.push(...c)), A;
11307
11316
  });
11308
- return (A, f) => {
11317
+ return (A, m) => {
11309
11318
  const p = es("FmCollapsibleTabs");
11310
- return tn(), qn(p, {
11319
+ return nn(), Nn(p, {
11311
11320
  modelValue: s.value,
11312
- "onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
11321
+ "onUpdate:modelValue": m[0] || (m[0] = (B) => s.value = B),
11313
11322
  items: l.value,
11314
11323
  class: "py-16 px-8 w-[240px]"
11315
11324
  }, null, 8, ["modelValue", "items"]);
11316
11325
  };
11317
11326
  }
11318
11327
  });
11319
- var td = { 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" } };
11320
- const yd = /* @__PURE__ */ en({
11328
+ var td = { 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" } };
11329
+ const yd = /* @__PURE__ */ tn({
11321
11330
  __name: "App",
11322
11331
  setup(t) {
11323
- const { state: e } = Qo(), n = Nn(), r = ts(), s = new _A();
11332
+ const { state: e } = Qo(), n = Hn(), r = ts(), s = new _A();
11324
11333
  Wi(xi, s);
11325
11334
  const i = Ss(td.firebase);
11326
11335
  async function a() {
@@ -11337,7 +11346,7 @@ const yd = /* @__PURE__ */ en({
11337
11346
  s.unmount();
11338
11347
  }), (c, l) => {
11339
11348
  const A = es("RouterView");
11340
- return tn(), qn(A, {
11349
+ return nn(), Nn(A, {
11341
11350
  key: ge(r).path
11342
11351
  });
11343
11352
  };
@@ -11359,7 +11368,7 @@ const yd = /* @__PURE__ */ en({
11359
11368
  },
11360
11369
  {}
11361
11370
  );
11362
- }, wd = [...pt, ...Xn].map((t) => ({
11371
+ }, wd = [...pt, ...Ut].map((t) => ({
11363
11372
  ...t,
11364
11373
  component: os(
11365
11374
  _r({ loader: t.component })
@@ -11368,10 +11377,10 @@ const yd = /* @__PURE__ */ en({
11368
11377
  export {
11369
11378
  xa as A,
11370
11379
  wd as B,
11371
- on as S,
11380
+ cn as S,
11372
11381
  yr as _,
11373
- jn as a,
11374
- Gn as b,
11382
+ Yn as a,
11383
+ jn as b,
11375
11384
  XA as c,
11376
11385
  GA as d,
11377
11386
  Pi as e,