@feedmepos/mf-payment 1.8.5 → 1.8.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 (104) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-tNiSAnf0.js → Actions.vue_vue_type_script_setup_true_lang-bFCBTzI5.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DyXptTeq.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DJhZ930J.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DXAjIajl.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-B9_rq-fq.js} +2 -2
  4. package/dist/{Chargeback-DG4z2wC-.js → Chargeback-eF_MfNB7.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DkwSKD27.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DByI68Y0.js} +1 -1
  6. package/dist/{OnboardForm-DpQ5_nlk.js → OnboardForm-CgVlJEWP.js} +6 -6
  7. package/dist/{OnboardForm-Bqli8KS7.js → OnboardForm-OqVz2dnj.js} +6 -6
  8. package/dist/{OnboardSubmission-Bz2THtgX.js → OnboardSubmission-BeWkvADJ.js} +6 -6
  9. package/dist/{OnboardSubmission-DC84yJmk.js → OnboardSubmission-CmcuvrEy.js} +3 -3
  10. package/dist/{PayoutAccount-Ds9tmcJg.js → PayoutAccount-BU-bT1wE.js} +5 -5
  11. package/dist/{PayoutAccount-y2djXF7T.js → PayoutAccount-Q0bzSdXR.js} +7 -7
  12. package/dist/{PayoutAccountSetting-DjfRoyGo.js → PayoutAccountSetting-CZqZdZyS.js} +679 -609
  13. package/dist/{Restaurant-kUZfATOY.js → Restaurant-BLLbK64j.js} +4 -4
  14. package/dist/{RestaurantSetting-WNjCLcaa.js → RestaurantSetting-BC_sm9bJ.js} +156 -81
  15. package/dist/{Settlement-DC9Lxb4-.js → Settlement-B7dzQTAr.js} +190 -195
  16. package/dist/{Settlement-C5MdLF4k.js → Settlement-CphuhaDs.js} +3 -3
  17. package/dist/{SettlementTransactions-C5_IwQfi.js → SettlementTransactions-CTFl-1pu.js} +5 -5
  18. package/dist/{SettlementTransactions-PEpdoraT.js → SettlementTransactions-oCyokbLZ.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-Cn2OwgiM.js → Status.vue_vue_type_script_setup_true_lang-DZH1tqmy.js} +1 -1
  20. package/dist/{Terminal-DRfZw5Zt.js → Terminal-ubk78mmt.js} +5 -5
  21. package/dist/{TerminalSetting-BGkWJope.js → TerminalSetting-CqS9pECq.js} +472 -461
  22. package/dist/{Transaction-WVhPvdla.js → Transaction-BgLMHX2L.js} +11 -11
  23. package/dist/{Transaction-CaTl2yLu.js → Transaction-BxNWr_TR.js} +10 -10
  24. package/dist/{TransactionOld-DMLFJZrU.js → TransactionOld-jrctGUYY.js} +7 -7
  25. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-ByQ8iLwt.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Hribmsrm.js} +1 -1
  26. package/dist/{app-Qtgy6J8e.js → app-GiML6ZLl.js} +576 -567
  27. package/dist/app.js +1 -1
  28. package/dist/assets-8qJRwo68.js +93 -0
  29. package/dist/{grafana-B_DxY7DM.js → grafana-B9Tf8La5.js} +1 -1
  30. package/dist/{index-CXO0GUl7.js → index-B5NyE5Fd.js} +1 -1
  31. package/dist/{index-Dkvcuh0X.js → index-BAva71bK.js} +1 -1
  32. package/dist/{index-CEX7iZPm.js → index-BfYobGKt.js} +2820 -2771
  33. package/dist/{index-BuROkOo1.js → index-CVTjXEZI.js} +1 -1
  34. package/dist/{index-D1wFMKEa.js → index-CxK7NPc7.js} +1 -1
  35. package/dist/{index-vmXm915k.js → index-D1EHLc-D.js} +1 -1
  36. package/dist/{index-DMoE-9mm.js → index-DNBtefZH.js} +1 -1
  37. package/dist/{index-Cdi1x__7.js → index-PCquuCgs.js} +1 -1
  38. package/dist/{index-BOWopllj.js → index-XzGHDL9B.js} +2 -2
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-CeS70ZWR.js → index.vue_vue_type_script_setup_true_lang-3kFL7AhX.js} +1 -1
  40. package/dist/{onboard-submission-BKfvP6NO.js → onboard-submission-y3QA70dW.js} +1 -1
  41. package/dist/package.json +2 -2
  42. package/dist/{payout-account-OCxMbNx5.js → payout-account-BtaeptEJ.js} +3 -3
  43. package/dist/stores/payoutAccount.d.ts +44 -32
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
  47. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
  48. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
  49. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +44 -32
  50. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -36
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -36
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +44 -32
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +44 -32
  54. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -36
  55. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  56. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +41 -0
  57. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  58. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  59. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  60. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  61. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  62. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  63. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  64. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  65. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +48 -0
  66. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  67. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  68. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  69. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  70. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  71. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
  72. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
  73. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
  74. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  75. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  76. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  77. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +30 -30
  78. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +30 -30
  79. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +30 -30
  80. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +30 -30
  81. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +30 -30
  82. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +30 -30
  83. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +30 -30
  84. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +30 -30
  85. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +30 -30
  86. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +30 -30
  87. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +30 -30
  88. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +30 -30
  89. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +30 -30
  90. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +30 -30
  91. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +30 -30
  92. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +30 -30
  93. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +30 -30
  94. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +30 -30
  95. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +30 -30
  96. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +30 -30
  97. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +30 -30
  98. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +30 -30
  99. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +88 -64
  100. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
  101. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
  102. package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
  103. package/package.json +2 -2
  104. package/dist/assets-D7KZ17hn.js +0 -92
@@ -3,7 +3,7 @@ var rr = (t) => {
3
3
  };
4
4
  var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
5
5
  var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
6
- var Vt = (t, e, n, r) => ({
6
+ var xt = (t, e, n, r) => ({
7
7
  set _(s) {
8
8
  D(t, e, s, n);
9
9
  },
@@ -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 qn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as wn, defineComponent as en, unref as ge, openBlock as tn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
15
+ import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
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 rn, 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 = {
@@ -1255,28 +1255,28 @@ function ca(t, e, n) {
1255
1255
  evaluating: i = void 0,
1256
1256
  shallow: a = !0,
1257
1257
  onError: c = oa
1258
- } = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
1259
- let f = 0;
1258
+ } = r, l = St(!s), A = a ? Ni(e) : St(e);
1259
+ let m = 0;
1260
1260
  return Hi(async (p) => {
1261
1261
  if (!l.value)
1262
1262
  return;
1263
- f++;
1264
- const B = f;
1265
- let v = !1;
1263
+ m++;
1264
+ const B = m;
1265
+ let w = !1;
1266
1266
  i && Promise.resolve().then(() => {
1267
1267
  i.value = !0;
1268
1268
  });
1269
1269
  try {
1270
1270
  const O = await t((I) => {
1271
1271
  p(() => {
1272
- i && (i.value = !1), v || I();
1272
+ i && (i.value = !1), w || I();
1273
1273
  });
1274
1274
  });
1275
- B === f && (A.value = O);
1275
+ B === m && (A.value = O);
1276
1276
  } catch (O) {
1277
1277
  c(O);
1278
1278
  } finally {
1279
- i && B === f && (i.value = !1), v = !0;
1279
+ i && B === m && (i.value = !1), w = !0;
1280
1280
  }
1281
1281
  }), s ? Nn(() => (l.value = !0, A.value)) : A;
1282
1282
  }
@@ -1348,16 +1348,16 @@ var rs = { exports: {} };
1348
1348
  },
1349
1349
  function(n, r, s) {
1350
1350
  function i(u) {
1351
- return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
1352
- return typeof m;
1353
- } : function(m) {
1354
- return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
1351
+ return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
1352
+ return typeof f;
1353
+ } : function(f) {
1354
+ return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
1355
1355
  })(u);
1356
1356
  }
1357
1357
  function a(u) {
1358
- var m = "[object " + u + "]";
1358
+ var f = "[object " + u + "]";
1359
1359
  return function(g) {
1360
- return Object.prototype.toString.call(g) === m;
1360
+ return Object.prototype.toString.call(g) === f;
1361
1361
  };
1362
1362
  }
1363
1363
  s.r(r), s.d(r, "default", function() {
@@ -1368,99 +1368,99 @@ var rs = { exports: {} };
1368
1368
  return q;
1369
1369
  });
1370
1370
  var c = a("Array"), l = a("Object"), A = a("Function");
1371
- function f(u, m) {
1372
- return A(u.get) ? u.get(m) : u[m];
1371
+ function m(u, f) {
1372
+ return A(u.get) ? u.get(f) : u[f];
1373
1373
  }
1374
1374
  function p(u) {
1375
- return function(m, g) {
1376
- if (!c(g) || !g.length) return u(m, g);
1375
+ return function(f, g) {
1376
+ if (!c(g) || !g.length) return u(f, g);
1377
1377
  for (var y = 0, b = g.length; y < b; y++)
1378
- if (u(m, f(g, y))) return !0;
1378
+ if (u(f, m(g, y))) return !0;
1379
1379
  return !1;
1380
1380
  };
1381
1381
  }
1382
1382
  function B(u) {
1383
- return function(m, g) {
1384
- if (!c(g) || !g.length) return u(m, g);
1383
+ return function(f, g) {
1384
+ if (!c(g) || !g.length) return u(f, g);
1385
1385
  for (var y = 0, b = g.length; y < b; y++)
1386
- if (!u(m, f(g, y))) return !1;
1386
+ if (!u(f, m(g, y))) return !1;
1387
1387
  return !0;
1388
1388
  };
1389
1389
  }
1390
- function v(u, m, g, y) {
1391
- return u.validate(u.options, m, g, y);
1390
+ function w(u, f, g, y) {
1391
+ return u.validate(u.options, f, g, y);
1392
1392
  }
1393
1393
  var O = {
1394
- $eq: p(function(u, m) {
1395
- return u(m);
1394
+ $eq: p(function(u, f) {
1395
+ return u(f);
1396
1396
  }),
1397
- $ne: B(function(u, m) {
1398
- return u(m);
1397
+ $ne: B(function(u, f) {
1398
+ return u(f);
1399
1399
  }),
1400
- $gt: p(function(u, m) {
1401
- return u(m);
1400
+ $gt: p(function(u, f) {
1401
+ return u(f);
1402
1402
  }),
1403
- $gte: p(function(u, m) {
1404
- return u(m);
1403
+ $gte: p(function(u, f) {
1404
+ return u(f);
1405
1405
  }),
1406
- $lt: p(function(u, m) {
1407
- return u(m);
1406
+ $lt: p(function(u, f) {
1407
+ return u(f);
1408
1408
  }),
1409
- $lte: p(function(u, m) {
1410
- return u(m);
1409
+ $lte: p(function(u, f) {
1410
+ return u(f);
1411
1411
  }),
1412
- $mod: p(function(u, m) {
1413
- return u(m);
1412
+ $mod: p(function(u, f) {
1413
+ return u(f);
1414
1414
  }),
1415
- $in: function(u, m) {
1416
- return u(m);
1415
+ $in: function(u, f) {
1416
+ return u(f);
1417
1417
  },
1418
- $nin: function(u, m) {
1419
- return u(m);
1418
+ $nin: function(u, f) {
1419
+ return u(f);
1420
1420
  },
1421
- $not: function(u, m, g, y) {
1422
- return u(m, g, y);
1421
+ $not: function(u, f, g, y) {
1422
+ return u(f, g, y);
1423
1423
  },
1424
- $type: function(u, m) {
1425
- return u(m);
1424
+ $type: function(u, f) {
1425
+ return u(f);
1426
1426
  },
1427
- $all: function(u, m, g, y) {
1428
- return O.$and(u, m, g, y);
1427
+ $all: function(u, f, g, y) {
1428
+ return O.$and(u, f, g, y);
1429
1429
  },
1430
- $size: function(u, m) {
1431
- return !!m && u === m.length;
1430
+ $size: function(u, f) {
1431
+ return !!f && u === f.length;
1432
1432
  },
1433
- $or: function(u, m, g, y) {
1433
+ $or: function(u, f, g, y) {
1434
1434
  for (var b = 0, E = u.length; b < E; b++)
1435
- if (v(f(u, b), m, g, y)) return !0;
1435
+ if (w(m(u, b), f, g, y)) return !0;
1436
1436
  return !1;
1437
1437
  },
1438
- $nor: function(u, m, g, y) {
1439
- return !O.$or(u, m, g, y);
1438
+ $nor: function(u, f, g, y) {
1439
+ return !O.$or(u, f, g, y);
1440
1440
  },
1441
- $and: function(u, m, g, y) {
1441
+ $and: function(u, f, g, y) {
1442
1442
  for (var b = 0, E = u.length; b < E; b++)
1443
- if (!v(f(u, b), m, g, y)) return !1;
1443
+ if (!w(m(u, b), f, g, y)) return !1;
1444
1444
  return !0;
1445
1445
  },
1446
- $regex: p(function(u, m) {
1447
- return typeof m == "string" && u.test(m);
1446
+ $regex: p(function(u, f) {
1447
+ return typeof f == "string" && u.test(f);
1448
1448
  }),
1449
- $where: function(u, m, g, y) {
1450
- return u.call(m, m, g, y);
1449
+ $where: function(u, f, g, y) {
1450
+ return u.call(f, f, g, y);
1451
1451
  },
1452
- $elemMatch: function(u, m, g, y) {
1453
- return c(m) ? !!~function(b, E) {
1452
+ $elemMatch: function(u, f, g, y) {
1453
+ return c(f) ? !!~function(b, E) {
1454
1454
  for (var P = 0; P < b.length; P++)
1455
- if (f(b, P), v(E, f(b, P))) return P;
1455
+ if (m(b, P), w(E, m(b, P))) return P;
1456
1456
  return -1;
1457
- }(m, u) : v(u, m, g, y);
1457
+ }(f, u) : w(u, f, g, y);
1458
1458
  },
1459
- $exists: function(u, m, g, y) {
1459
+ $exists: function(u, f, g, y) {
1460
1460
  return y.hasOwnProperty(g) === u;
1461
1461
  }
1462
1462
  }, I = {
1463
- $eq: function(u, m, g) {
1463
+ $eq: function(u, f, g) {
1464
1464
  var y = g.comparable, b = g.compare;
1465
1465
  return u instanceof RegExp ? p(function(E) {
1466
1466
  return typeof E == "string" && u.test(E);
@@ -1474,31 +1474,31 @@ var rs = { exports: {} };
1474
1474
  }
1475
1475
  );
1476
1476
  },
1477
- $gt: function(u, m, g) {
1477
+ $gt: function(u, f, g) {
1478
1478
  var y = g.comparable, b = g.compare;
1479
1479
  return function(E) {
1480
1480
  return b(y(E), y(u)) > 0;
1481
1481
  };
1482
1482
  },
1483
- $gte: function(u, m, g) {
1483
+ $gte: function(u, f, g) {
1484
1484
  var y = g.comparable, b = g.compare;
1485
1485
  return function(E) {
1486
1486
  return b(y(E), y(u)) >= 0;
1487
1487
  };
1488
1488
  },
1489
- $lt: function(u, m, g) {
1489
+ $lt: function(u, f, g) {
1490
1490
  var y = g.comparable, b = g.compare;
1491
1491
  return function(E) {
1492
1492
  return b(y(E), y(u)) < 0;
1493
1493
  };
1494
1494
  },
1495
- $lte: function(u, m, g) {
1495
+ $lte: function(u, f, g) {
1496
1496
  var y = g.comparable, b = g.compare;
1497
1497
  return function(E) {
1498
1498
  return b(y(E), y(u)) <= 0;
1499
1499
  };
1500
1500
  },
1501
- $in: function(u, m, g) {
1501
+ $in: function(u, f, g) {
1502
1502
  var y = g.comparable;
1503
1503
  return function(b) {
1504
1504
  if (!(b instanceof Array)) {
@@ -1512,59 +1512,59 @@ var rs = { exports: {} };
1512
1512
  for (j = u.length; j--; ) if (u[j] == null) return !0;
1513
1513
  }
1514
1514
  for (j = u.length; j--; ) {
1515
- var P = v(H(f(u, j), g), E, j, u);
1515
+ var P = w(H(m(u, j), g), E, j, u);
1516
1516
  if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
1517
1517
  return !0;
1518
1518
  }
1519
1519
  return !!~u.indexOf(E);
1520
1520
  }
1521
1521
  for (var j = b.length; j--; )
1522
- if (~u.indexOf(y(f(b, j)))) return !0;
1522
+ if (~u.indexOf(y(m(b, j)))) return !0;
1523
1523
  return !1;
1524
1524
  };
1525
1525
  },
1526
- $nin: function(u, m, g) {
1527
- var y = I.$in(u, m, g);
1526
+ $nin: function(u, f, g) {
1527
+ var y = I.$in(u, f, g);
1528
1528
  return function(b, E, P, j) {
1529
1529
  return !y(b, E, P, j);
1530
1530
  };
1531
1531
  },
1532
1532
  $mod: function(u) {
1533
- return function(m) {
1534
- return m % u[0] == u[1];
1533
+ return function(f) {
1534
+ return f % u[0] == u[1];
1535
1535
  };
1536
1536
  },
1537
- $ne: function(u, m, g) {
1538
- var y = I.$eq(u, m, g);
1537
+ $ne: function(u, f, g) {
1538
+ var y = I.$eq(u, f, g);
1539
1539
  return B(function(b, E, P, j) {
1540
1540
  return !y(b, E, P, j);
1541
1541
  });
1542
1542
  },
1543
- $and: function(u, m, g) {
1543
+ $and: function(u, f, g) {
1544
1544
  return u.map(Y(g));
1545
1545
  },
1546
- $all: function(u, m, g) {
1547
- return I.$and(u, m, g);
1546
+ $all: function(u, f, g) {
1547
+ return I.$and(u, f, g);
1548
1548
  },
1549
- $or: function(u, m, g) {
1549
+ $or: function(u, f, g) {
1550
1550
  return u.map(Y(g));
1551
1551
  },
1552
- $nor: function(u, m, g) {
1552
+ $nor: function(u, f, g) {
1553
1553
  return u.map(Y(g));
1554
1554
  },
1555
- $not: function(u, m, g) {
1555
+ $not: function(u, f, g) {
1556
1556
  var y = Y(g)(u);
1557
1557
  return function(b, E, P) {
1558
- return !v(y, b, E, P);
1558
+ return !w(y, b, E, P);
1559
1559
  };
1560
1560
  },
1561
1561
  $type: function(u) {
1562
- return function(m, g, y) {
1563
- return m != null && (m instanceof u || m.constructor == u);
1562
+ return function(f, g, y) {
1563
+ return f != null && (f instanceof u || f.constructor == u);
1564
1564
  };
1565
1565
  },
1566
- $regex: function(u, m) {
1567
- return new RegExp(u, m.$options);
1566
+ $regex: function(u, f) {
1567
+ return new RegExp(u, f.$options);
1568
1568
  },
1569
1569
  $where: function(u) {
1570
1570
  if (typeof u == "function") return u;
@@ -1572,55 +1572,55 @@ var rs = { exports: {} };
1572
1572
  'In CSP mode, sift does not support strings in "$where" condition'
1573
1573
  );
1574
1574
  },
1575
- $elemMatch: function(u, m, g) {
1575
+ $elemMatch: function(u, f, g) {
1576
1576
  return Y(g)(u);
1577
1577
  },
1578
1578
  $exists: function(u) {
1579
1579
  return !!u;
1580
1580
  }
1581
1581
  };
1582
- function V(u, m) {
1583
- return { options: u, validate: m };
1582
+ function V(u, f) {
1583
+ return { options: u, validate: f };
1584
1584
  }
1585
- function R(u, m) {
1585
+ function R(u, f) {
1586
1586
  var g = u.keyPath, y = u.child, b = u.query, E = [];
1587
- if (function tr(Ce, ft, gt, Fi, ln) {
1588
- if (gt === ft.length || Ce == null)
1589
- return void ln.push([Ce, ft[gt - 1], Fi]);
1590
- var nr = f(ft, gt);
1587
+ if (function tr(Ce, mt, gt, Fi, ln) {
1588
+ if (gt === mt.length || Ce == null)
1589
+ return void ln.push([Ce, mt[gt - 1], Fi]);
1590
+ var nr = m(mt, gt);
1591
1591
  if (c(Ce) && isNaN(Number(nr)))
1592
- for (var An = 0, ki = Ce.length; An < ki; An++) tr(f(Ce, An), ft, gt, Ce, ln);
1593
- else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
1594
- }(m, g, 0, m, E), E.length === 1) {
1592
+ for (var An = 0, ki = Ce.length; An < ki; An++) tr(m(Ce, An), mt, gt, Ce, ln);
1593
+ else tr(m(Ce, nr), mt, gt + 1, Ce, ln);
1594
+ }(f, g, 0, f, E), E.length === 1) {
1595
1595
  var P = E[0];
1596
- return v(y, P[0], P[1], P[2]);
1596
+ return w(y, P[0], P[1], P[2]);
1597
1597
  }
1598
1598
  for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
1599
- var he = E[_], Yt = v(y, he[0], he[1], he[2]);
1600
- j ? W &= Yt : W |= Yt;
1599
+ var he = E[_], Vt = w(y, he[0], he[1], he[2]);
1600
+ j ? W &= Vt : W |= Vt;
1601
1601
  }
1602
1602
  return W;
1603
1603
  }
1604
- function Q(u, m, g) {
1605
- return V({ keyPath: u, child: m, query: g }, R);
1604
+ function Q(u, f, g) {
1605
+ return V({ keyPath: u, child: f, query: g }, R);
1606
1606
  }
1607
1607
  function Y(u) {
1608
- var m = u.comparable, g = u.expressions, y = function(P) {
1608
+ var f = u.comparable, g = u.expressions, y = function(P) {
1609
1609
  var j;
1610
1610
  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;
1611
1611
  }, b = function(P) {
1612
- P = m(P);
1612
+ P = f(P);
1613
1613
  var j = [];
1614
1614
  for (var W in P) {
1615
1615
  var _ = P[W];
1616
1616
  if (W !== "$options") {
1617
1617
  var he = O[W] || u && g && g[W];
1618
- if (he) I[W] && (_ = I[W](_, P, u)), j.push(V(m(_), he));
1618
+ if (he) I[W] && (_ = I[W](_, P, u)), j.push(V(f(_), he));
1619
1619
  else {
1620
1620
  if (W.charCodeAt(0) === 36)
1621
1621
  throw new Error("Unknown operation " + W);
1622
- var Yt = W.split(".");
1623
- j.push(Q(Yt, E(_), _));
1622
+ var Vt = W.split(".");
1623
+ j.push(Q(Vt, E(_), _));
1624
1624
  }
1625
1625
  }
1626
1626
  }
@@ -1630,48 +1630,48 @@ var rs = { exports: {} };
1630
1630
  if (!l(W)) return _;
1631
1631
  for (var he in W) _.push(he), j(W[he], _);
1632
1632
  return _;
1633
- }(P, []).join(",").search(/[$.]/) === -1 ? V(P, w) : b(P);
1633
+ }(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
1634
1634
  };
1635
1635
  return function(P) {
1636
1636
  return b(y(P));
1637
1637
  };
1638
1638
  }
1639
- function w(u, m) {
1640
- if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
1639
+ function v(u, f) {
1640
+ if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(f))
1641
1641
  return !1;
1642
1642
  if (l(u)) {
1643
- if (Object.keys(u).length !== Object.keys(m).length) return !1;
1644
- for (var g in u) if (!w(u[g], m[g])) return !1;
1643
+ if (Object.keys(u).length !== Object.keys(f).length) return !1;
1644
+ for (var g in u) if (!v(u[g], f[g])) return !1;
1645
1645
  return !0;
1646
1646
  }
1647
1647
  if (c(u)) {
1648
- if (u.length !== m.length) return !1;
1648
+ if (u.length !== f.length) return !1;
1649
1649
  for (var y = 0, b = u.length; y < b; y++)
1650
- if (!w(u[y], m[y])) return !1;
1650
+ if (!v(u[y], f[y])) return !1;
1651
1651
  return !0;
1652
1652
  }
1653
- return u === m;
1653
+ return u === f;
1654
1654
  }
1655
- function H(u, m) {
1656
- var g = Y(m)(u);
1657
- return m && m.select && (g = {
1655
+ function H(u, f) {
1656
+ var g = Y(f)(u);
1657
+ return f && f.select && (g = {
1658
1658
  options: g,
1659
1659
  validate: function(y, b, E, P) {
1660
- return v(y, b && m.select(b), E, P);
1660
+ return w(y, b && f.select(b), E, P);
1661
1661
  }
1662
1662
  }), g;
1663
1663
  }
1664
- function U(u, m) {
1665
- var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
1664
+ function U(u, f) {
1665
+ var g = H(u, f = Object.assign({ compare: ee, comparable: q }, f));
1666
1666
  return function(y, b, E) {
1667
- return v(g, y, b, E);
1667
+ return w(g, y, b, E);
1668
1668
  };
1669
1669
  }
1670
- function ee(u, m) {
1671
- if (w(u, m)) return 0;
1672
- if (i(u) === i(m)) {
1673
- if (u > m) return 1;
1674
- if (u < m) return -1;
1670
+ function ee(u, f) {
1671
+ if (v(u, f)) return 0;
1672
+ if (i(u) === i(f)) {
1673
+ if (u > f) return 1;
1674
+ if (u < f) return -1;
1675
1675
  }
1676
1676
  }
1677
1677
  function q(u) {
@@ -1689,21 +1689,21 @@ function ha(t, e) {
1689
1689
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1690
1690
  }
1691
1691
  }
1692
- function ma(t, e, n) {
1692
+ function fa(t, e, n) {
1693
1693
  return e && ha(t.prototype, e), t;
1694
1694
  }
1695
- function fa(t, e) {
1695
+ function ma(t, e) {
1696
1696
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
1697
1697
  }
1698
- function vn(t) {
1699
- return vn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1698
+ function wn(t) {
1699
+ return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1700
1700
  return n.__proto__ || Object.getPrototypeOf(n);
1701
- }, vn(t);
1701
+ }, wn(t);
1702
1702
  }
1703
- function St(t, e) {
1704
- return St = Object.setPrototypeOf || function(r, s) {
1703
+ function Ut(t, e) {
1704
+ return Ut = Object.setPrototypeOf || function(r, s) {
1705
1705
  return r.__proto__ = s, r;
1706
- }, St(t, e);
1706
+ }, Ut(t, e);
1707
1707
  }
1708
1708
  function ga() {
1709
1709
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -1715,13 +1715,13 @@ function ga() {
1715
1715
  return !1;
1716
1716
  }
1717
1717
  }
1718
- function Rt(t, e, n) {
1719
- return ga() ? Rt = Reflect.construct : Rt = function(s, i, a) {
1718
+ function qt(t, e, n) {
1719
+ return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
1720
1720
  var c = [null];
1721
1721
  c.push.apply(c, i);
1722
1722
  var l = Function.bind.apply(s, c), A = new l();
1723
- return a && St(A, a.prototype), A;
1724
- }, Rt.apply(null, arguments);
1723
+ return a && Ut(A, a.prototype), A;
1724
+ }, qt.apply(null, arguments);
1725
1725
  }
1726
1726
  function pa(t) {
1727
1727
  return Function.toString.call(t).indexOf("[native code]") !== -1;
@@ -1737,7 +1737,7 @@ function Bn(t) {
1737
1737
  e.set(r, s);
1738
1738
  }
1739
1739
  function s() {
1740
- return Rt(r, arguments, vn(this).constructor);
1740
+ return qt(r, arguments, wn(this).constructor);
1741
1741
  }
1742
1742
  return s.prototype = Object.create(r.prototype, {
1743
1743
  constructor: {
@@ -1746,7 +1746,7 @@ function Bn(t) {
1746
1746
  writable: !0,
1747
1747
  configurable: !0
1748
1748
  }
1749
- }), St(s, r);
1749
+ }), Ut(s, r);
1750
1750
  }, Bn(t);
1751
1751
  }
1752
1752
  function ir(t) {
@@ -1756,9 +1756,9 @@ function ir(t) {
1756
1756
  }
1757
1757
  var ss = function(e) {
1758
1758
  return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
1759
- }, xt = ss, ya = /* @__PURE__ */ function(t) {
1760
- fa(e, t), e.setDefaultMessage = function(s) {
1761
- s === null ? xt = ss : xt = typeof s == "string" ? function() {
1759
+ }, Ft = ss, ya = /* @__PURE__ */ function(t) {
1760
+ ma(e, t), e.setDefaultMessage = function(s) {
1761
+ s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
1762
1762
  return s;
1763
1763
  } : s;
1764
1764
  }, e.from = function(s) {
@@ -1769,7 +1769,7 @@ var ss = function(e) {
1769
1769
  };
1770
1770
  function e(r, s) {
1771
1771
  var i;
1772
- return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || xt(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
1772
+ return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
1773
1773
  }
1774
1774
  var n = e.prototype;
1775
1775
  return n.setMessage = function(s) {
@@ -1786,7 +1786,7 @@ var ss = function(e) {
1786
1786
  subjectName: this.ability.subjectName(i)
1787
1787
  });
1788
1788
  var l = c ? c.reason : "";
1789
- throw this.message = this._customMessage || l || xt(this), this;
1789
+ throw this.message = this._customMessage || l || Ft(this), this;
1790
1790
  }
1791
1791
  }, n._setMetadata = function(s) {
1792
1792
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
@@ -1801,10 +1801,10 @@ function ba(t) {
1801
1801
  var e = typeof t == "object" ? t.constructor : t;
1802
1802
  return e.modelName || e.name;
1803
1803
  }
1804
- function wa(t) {
1804
+ function va(t) {
1805
1805
  return JSON.parse(JSON.stringify(t));
1806
1806
  }
1807
- var va = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
1807
+ var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
1808
1808
  function Ea(t, e, n) {
1809
1809
  var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
1810
1810
  return e + t.length === n.length ? "(?:" + i + ")?" : i;
@@ -1814,7 +1814,7 @@ function Ma(t, e, n) {
1814
1814
  }
1815
1815
  function Ia(t) {
1816
1816
  var e = t.map(function(r) {
1817
- return r.replace(va, Ma).replace(Ba, Ea);
1817
+ return r.replace(wa, Ma).replace(Ba, Ea);
1818
1818
  }), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
1819
1819
  return new RegExp("^" + n + "$");
1820
1820
  }
@@ -1859,7 +1859,7 @@ var Oa = /* @__PURE__ */ function() {
1859
1859
  indexedRules: /* @__PURE__ */ Object.create(null),
1860
1860
  mergedRules: /* @__PURE__ */ Object.create(null),
1861
1861
  events: {},
1862
- aliases: wa(ar)
1862
+ aliases: va(ar)
1863
1863
  }, this.update(n);
1864
1864
  }
1865
1865
  var e = t.prototype;
@@ -1875,13 +1875,13 @@ var Oa = /* @__PURE__ */ function() {
1875
1875
  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;
1876
1876
  }, e.buildIndexFor = function(r) {
1877
1877
  for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
1878
- var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
1878
+ var A = new i(r[l]), m = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
1879
1879
  a = !!(a && A.inverted), !c && A.fields && (c = !0);
1880
- for (var v = 0; v < p.length; v++) {
1881
- var O = p[v];
1880
+ for (var w = 0; w < p.length; w++) {
1881
+ var O = p[w];
1882
1882
  s[O] = s[O] || /* @__PURE__ */ Object.create(null);
1883
- for (var I = 0; I < f.length; I++) {
1884
- var V = f[I];
1883
+ for (var I = 0; I < m.length; I++) {
1884
+ var V = m[I];
1885
1885
  s[O][V] = s[O][V] || /* @__PURE__ */ Object.create(null), s[O][V][B] = A;
1886
1886
  }
1887
1887
  }
@@ -1942,7 +1942,7 @@ var Oa = /* @__PURE__ */ function() {
1942
1942
  i && i.slice(0).forEach(function(a) {
1943
1943
  return a(s);
1944
1944
  });
1945
- }, ma(t, [{
1945
+ }, fa(t, [{
1946
1946
  key: "rules",
1947
1947
  get: function() {
1948
1948
  return this[te].originalRules;
@@ -1982,9 +1982,9 @@ function Va(t) {
1982
1982
  return new Oa(Ya(t));
1983
1983
  }
1984
1984
  function xa(t, e, n) {
1985
- 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));
1985
+ 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));
1986
1986
  if (c) {
1987
- const f = s.relevantRuleFor(
1987
+ const m = s.relevantRuleFor(
1988
1988
  c.action,
1989
1989
  i(c),
1990
1990
  c.field
@@ -1992,7 +1992,7 @@ function xa(t, e, n) {
1992
1992
  return {
1993
1993
  granted: !1,
1994
1994
  decisivePermission: c,
1995
- decisiveRule: f ?? null
1995
+ decisiveRule: m ?? null
1996
1996
  };
1997
1997
  }
1998
1998
  const l = r[0], A = s.relevantRuleFor(l.action, i(l), l.field);
@@ -2042,7 +2042,7 @@ async function ka(t, e) {
2042
2042
  }
2043
2043
  var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
2044
2044
  function Ra() {
2045
- const t = ts(), { sessionUser: e } = nn();
2045
+ const t = ts(), { sessionUser: e } = rn();
2046
2046
  return ca(
2047
2047
  async () => {
2048
2048
  t.matched;
@@ -2081,7 +2081,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2081
2081
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
2082
2082
  }, za = {
2083
2083
  noPermission: Wa
2084
- }, 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({
2084
+ }, 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({
2085
2085
  __name: "NoPermission",
2086
2086
  setup(t) {
2087
2087
  const { t: e } = ns({
@@ -2092,7 +2092,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2092
2092
  "th-TH": za
2093
2093
  }
2094
2094
  });
2095
- return (n, r) => (tn(), Si("div", Za, [
2095
+ return (n, r) => (nn(), Si("div", Za, [
2096
2096
  Ke("div", La, [
2097
2097
  Ke("div", Ka, [
2098
2098
  Ke("img", {
@@ -2107,18 +2107,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2107
2107
  ])
2108
2108
  ]));
2109
2109
  }
2110
- }), to = /* @__PURE__ */ en({
2110
+ }), to = /* @__PURE__ */ tn({
2111
2111
  __name: "PermissionWrapper",
2112
2112
  setup(t) {
2113
2113
  const e = Ra();
2114
- return (n, r) => ge(e) === ge(Cn).Denied ? (tn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2114
+ return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2115
2115
  }
2116
2116
  });
2117
2117
  function os(t) {
2118
2118
  return {
2119
2119
  inheritAttrs: !1,
2120
2120
  setup(e, { attrs: n }) {
2121
- return () => wn(to, {}, { default: () => wn(t, n) });
2121
+ return () => vn(to, {}, { default: () => vn(t, n) });
2122
2122
  }
2123
2123
  };
2124
2124
  }
@@ -2312,7 +2312,7 @@ const k = [
2312
2312
  o.delete
2313
2313
  ]
2314
2314
  }
2315
- ], mo = [
2315
+ ], fo = [
2316
2316
  ...k,
2317
2317
  {
2318
2318
  label: "Credit",
@@ -2324,7 +2324,7 @@ const k = [
2324
2324
  o.delete
2325
2325
  ]
2326
2326
  }
2327
- ], fo = [
2327
+ ], mo = [
2328
2328
  ...k,
2329
2329
  {
2330
2330
  label: "Experience",
@@ -2384,7 +2384,7 @@ const k = [
2384
2384
  o.delete
2385
2385
  ]
2386
2386
  }
2387
- ], ms = [
2387
+ ], fs = [
2388
2388
  ...k,
2389
2389
  {
2390
2390
  label: "Loyalty Card",
@@ -2396,7 +2396,7 @@ const k = [
2396
2396
  o.delete
2397
2397
  ]
2398
2398
  }
2399
- ], fs = [
2399
+ ], ms = [
2400
2400
  ...k,
2401
2401
  {
2402
2402
  label: "Bin",
@@ -2415,12 +2415,12 @@ const k = [
2415
2415
  ), bs = $(
2416
2416
  se,
2417
2417
  ho
2418
- ), ws = $(
2419
- se,
2420
- mo
2421
2418
  ), vs = $(
2422
2419
  se,
2423
2420
  fo
2421
+ ), ws = $(
2422
+ se,
2423
+ mo
2424
2424
  ), Bs = $(
2425
2425
  se,
2426
2426
  go
@@ -2445,7 +2445,7 @@ const k = [
2445
2445
  o.delete
2446
2446
  ]
2447
2447
  }
2448
- ], wo = [
2448
+ ], vo = [
2449
2449
  ...k,
2450
2450
  {
2451
2451
  label: "Membership",
@@ -2457,7 +2457,7 @@ const k = [
2457
2457
  o.delete
2458
2458
  ]
2459
2459
  }
2460
- ], vo = $(
2460
+ ], wo = $(
2461
2461
  no,
2462
2462
  ro,
2463
2463
  cs,
@@ -2471,14 +2471,14 @@ const k = [
2471
2471
  ps,
2472
2472
  ys,
2473
2473
  bs,
2474
- ws,
2475
2474
  vs,
2475
+ ws,
2476
2476
  Bs,
2477
2477
  Ds,
2478
2478
  ds,
2479
2479
  hs,
2480
- ms,
2481
- fs
2480
+ fs,
2481
+ ms
2482
2482
  ), Bo = $(
2483
2483
  se,
2484
2484
  ls,
@@ -2486,11 +2486,11 @@ const k = [
2486
2486
  ), Do = $(
2487
2487
  se,
2488
2488
  bo
2489
- ), Co = $(wo), Eo = {
2489
+ ), Co = $(vo), Eo = {
2490
2490
  [`set_${d.crm}`]: {
2491
2491
  key: "sys:crm:access",
2492
2492
  name: "CRM Access",
2493
- permissions: vo
2493
+ permissions: wo
2494
2494
  },
2495
2495
  [`set_${d.crm_promotion}`]: {
2496
2496
  key: "sys:crm:promotion",
@@ -2535,12 +2535,12 @@ const k = [
2535
2535
  [`set_${d.crm_credit}`]: {
2536
2536
  key: "sys:crm:credit",
2537
2537
  name: "CRM Credit",
2538
- permissions: ws
2538
+ permissions: vs
2539
2539
  },
2540
2540
  [`set_${d.crm_experience}`]: {
2541
2541
  key: "sys:crm:experience",
2542
2542
  name: "CRM Experience",
2543
- permissions: vs
2543
+ permissions: ws
2544
2544
  },
2545
2545
  [`set_${d.crm_game}`]: {
2546
2546
  key: "sys:crm:game",
@@ -2565,7 +2565,7 @@ const k = [
2565
2565
  [`set_${d.crm_loyaltyCard}`]: {
2566
2566
  key: "sys:crm:loyaltyCard",
2567
2567
  name: "CRM Loyalty Card",
2568
- permissions: ms
2568
+ permissions: fs
2569
2569
  },
2570
2570
  [`set_${d.crm_referral}`]: {
2571
2571
  key: "sys:crm:referral",
@@ -2590,7 +2590,7 @@ const k = [
2590
2590
  [`set_${d.crm_bin}`]: {
2591
2591
  key: "sys:crm:bin",
2592
2592
  name: "CRM Bin",
2593
- permissions: fs
2593
+ permissions: ms
2594
2594
  }
2595
2595
  };
2596
2596
  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 || {});
@@ -3163,7 +3163,7 @@ const Ho = () => ({
3163
3163
  sidebarDisplay: "Restaurants",
3164
3164
  section: "payment-gateway"
3165
3165
  },
3166
- component: () => import("./Restaurant-kUZfATOY.js")
3166
+ component: () => import("./Restaurant-BLLbK64j.js")
3167
3167
  },
3168
3168
  {
3169
3169
  path: "/admin/restaurants/:restaurantId",
@@ -3172,7 +3172,7 @@ const Ho = () => ({
3172
3172
  meta: {
3173
3173
  parent: "mf-payment-admin.restaurant"
3174
3174
  },
3175
- component: () => import("./RestaurantSetting-WNjCLcaa.js")
3175
+ component: () => import("./RestaurantSetting-BC_sm9bJ.js")
3176
3176
  },
3177
3177
  {
3178
3178
  path: "/admin/payout-accounts",
@@ -3181,7 +3181,7 @@ const Ho = () => ({
3181
3181
  sidebarDisplay: "Payout Accounts",
3182
3182
  section: "payment-gateway"
3183
3183
  },
3184
- component: () => import("./PayoutAccount-y2djXF7T.js")
3184
+ component: () => import("./PayoutAccount-Q0bzSdXR.js")
3185
3185
  },
3186
3186
  {
3187
3187
  path: "/admin/payout-accounts/:accountId",
@@ -3190,7 +3190,7 @@ const Ho = () => ({
3190
3190
  meta: {
3191
3191
  parent: "mf-payment-admin.payout-account"
3192
3192
  },
3193
- component: () => import("./PayoutAccountSetting-DjfRoyGo.js")
3193
+ component: () => import("./PayoutAccountSetting-CZqZdZyS.js")
3194
3194
  },
3195
3195
  {
3196
3196
  path: "/admin/onboarding",
@@ -3199,7 +3199,7 @@ const Ho = () => ({
3199
3199
  sidebarDisplay: "Payment Onboarding",
3200
3200
  section: "payment-gateway"
3201
3201
  },
3202
- component: () => import("./OnboardSubmission-Bz2THtgX.js")
3202
+ component: () => import("./OnboardSubmission-BeWkvADJ.js")
3203
3203
  },
3204
3204
  {
3205
3205
  path: "/admin/onboarding/:submissionId",
@@ -3208,7 +3208,7 @@ const Ho = () => ({
3208
3208
  meta: {
3209
3209
  parent: "mf-payment-admin.onboard-submission"
3210
3210
  },
3211
- component: () => import("./OnboardForm-Bqli8KS7.js")
3211
+ component: () => import("./OnboardForm-OqVz2dnj.js")
3212
3212
  },
3213
3213
  {
3214
3214
  path: "/admin/terminal/pos",
@@ -3217,7 +3217,7 @@ const Ho = () => ({
3217
3217
  sidebarDisplay: "POS",
3218
3218
  section: "device"
3219
3219
  },
3220
- component: () => import("./Terminal-DRfZw5Zt.js"),
3220
+ component: () => import("./Terminal-ubk78mmt.js"),
3221
3221
  props: {
3222
3222
  type: "POS"
3223
3223
  }
@@ -3229,7 +3229,7 @@ const Ho = () => ({
3229
3229
  sidebarDisplay: "Kiosks",
3230
3230
  section: "device"
3231
3231
  },
3232
- component: () => import("./Terminal-DRfZw5Zt.js"),
3232
+ component: () => import("./Terminal-ubk78mmt.js"),
3233
3233
  props: {
3234
3234
  type: "KIOSK"
3235
3235
  }
@@ -3241,7 +3241,7 @@ const Ho = () => ({
3241
3241
  sidebarDisplay: "Terminals",
3242
3242
  section: "device"
3243
3243
  },
3244
- component: () => import("./Terminal-DRfZw5Zt.js"),
3244
+ component: () => import("./Terminal-ubk78mmt.js"),
3245
3245
  props: {
3246
3246
  type: "TERMINAL"
3247
3247
  }
@@ -3253,7 +3253,7 @@ const Ho = () => ({
3253
3253
  meta: {
3254
3254
  parent: "mf-payment-admin.pos"
3255
3255
  },
3256
- component: () => import("./TerminalSetting-BGkWJope.js")
3256
+ component: () => import("./TerminalSetting-CqS9pECq.js")
3257
3257
  },
3258
3258
  {
3259
3259
  path: "/admin/terminal/kiosk/:terminalId",
@@ -3262,7 +3262,7 @@ const Ho = () => ({
3262
3262
  meta: {
3263
3263
  parent: "mf-payment-admin.kiosk"
3264
3264
  },
3265
- component: () => import("./TerminalSetting-BGkWJope.js")
3265
+ component: () => import("./TerminalSetting-CqS9pECq.js")
3266
3266
  },
3267
3267
  {
3268
3268
  path: "/admin/terminal/terminal/:terminalId",
@@ -3271,7 +3271,7 @@ const Ho = () => ({
3271
3271
  meta: {
3272
3272
  parent: "mf-payment-admin.terminal"
3273
3273
  },
3274
- component: () => import("./TerminalSetting-BGkWJope.js")
3274
+ component: () => import("./TerminalSetting-CqS9pECq.js")
3275
3275
  },
3276
3276
  {
3277
3277
  path: "/admin/transaction",
@@ -3279,7 +3279,7 @@ const Ho = () => ({
3279
3279
  meta: {
3280
3280
  sidebarDisplay: "Transactions"
3281
3281
  },
3282
- component: () => import("./Transaction-WVhPvdla.js")
3282
+ component: () => import("./Transaction-BgLMHX2L.js")
3283
3283
  },
3284
3284
  {
3285
3285
  path: "/admin/chargeback",
@@ -3287,7 +3287,7 @@ const Ho = () => ({
3287
3287
  meta: {
3288
3288
  sidebarDisplay: "Chargebacks"
3289
3289
  },
3290
- component: () => import("./Chargeback-DG4z2wC-.js")
3290
+ component: () => import("./Chargeback-eF_MfNB7.js")
3291
3291
  },
3292
3292
  {
3293
3293
  path: "/admin/settlement",
@@ -3295,7 +3295,7 @@ const Ho = () => ({
3295
3295
  meta: {
3296
3296
  sidebarDisplay: "Settlements"
3297
3297
  },
3298
- component: () => import("./Settlement-C5MdLF4k.js")
3298
+ component: () => import("./Settlement-CphuhaDs.js")
3299
3299
  },
3300
3300
  {
3301
3301
  path: "/admin/settlement/:settlementId",
@@ -3304,7 +3304,7 @@ const Ho = () => ({
3304
3304
  meta: {
3305
3305
  parent: "mf-payment-admin.settlement"
3306
3306
  },
3307
- component: () => import("./SettlementTransactions-PEpdoraT.js")
3307
+ component: () => import("./SettlementTransactions-oCyokbLZ.js")
3308
3308
  }
3309
3309
  ].map((t) => ({
3310
3310
  ...t,
@@ -3312,7 +3312,7 @@ const Ho = () => ({
3312
3312
  ...t.meta,
3313
3313
  ...Ho()
3314
3314
  }
3315
- })), rn = [
3315
+ })), bt = [
3316
3316
  {
3317
3317
  path: "",
3318
3318
  redirect: { name: "mf-payment-payout-account" }
@@ -3320,7 +3320,7 @@ const Ho = () => ({
3320
3320
  {
3321
3321
  path: "/payout-account",
3322
3322
  name: "mf-payment-payout-account",
3323
- component: () => import("./PayoutAccount-Ds9tmcJg.js"),
3323
+ component: () => import("./PayoutAccount-BU-bT1wE.js"),
3324
3324
  meta: {
3325
3325
  sidebarDisplay: "i18n:payment.routes.payout_account",
3326
3326
  region: { MY: !0 },
@@ -3337,7 +3337,7 @@ const Ho = () => ({
3337
3337
  {
3338
3338
  path: "/onboard-submission",
3339
3339
  name: "mf-payment-onboard-submission",
3340
- component: () => import("./OnboardSubmission-DC84yJmk.js"),
3340
+ component: () => import("./OnboardSubmission-CmcuvrEy.js"),
3341
3341
  meta: {
3342
3342
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
3343
3343
  region: { MY: !0, TH: !0, AU: !0 },
@@ -3355,7 +3355,7 @@ const Ho = () => ({
3355
3355
  path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
3356
3356
  name: "mf-payment-onboard-submission-form",
3357
3357
  props: !0,
3358
- component: () => import("./OnboardForm-DpQ5_nlk.js"),
3358
+ component: () => import("./OnboardForm-CgVlJEWP.js"),
3359
3359
  meta: {
3360
3360
  parent: "mf-payment-onboard-submission",
3361
3361
  validationManifest: {
@@ -3371,7 +3371,7 @@ const Ho = () => ({
3371
3371
  {
3372
3372
  path: "/transaction-old",
3373
3373
  name: "mf-payment-old-transaction",
3374
- component: () => import("./TransactionOld-DMLFJZrU.js"),
3374
+ component: () => import("./TransactionOld-jrctGUYY.js"),
3375
3375
  meta: {
3376
3376
  sidebarDisplay: "i18n:payment.routes.transaction",
3377
3377
  validationManifest: {
@@ -3387,7 +3387,7 @@ const Ho = () => ({
3387
3387
  {
3388
3388
  path: "/transaction",
3389
3389
  name: "mf-payment-transaction",
3390
- component: () => import("./Transaction-CaTl2yLu.js"),
3390
+ component: () => import("./Transaction-BxNWr_TR.js"),
3391
3391
  meta: {
3392
3392
  sidebarDisplay: "i18n:payment.routes.transaction_new",
3393
3393
  sidebarNew: !0,
@@ -3404,7 +3404,7 @@ const Ho = () => ({
3404
3404
  {
3405
3405
  path: "/settlement",
3406
3406
  name: "mf-payment-settlement",
3407
- component: () => import("./Settlement-DC9Lxb4-.js"),
3407
+ component: () => import("./Settlement-B7dzQTAr.js"),
3408
3408
  meta: {
3409
3409
  sidebarDisplay: "i18n:payment.routes.settlement",
3410
3410
  region: { MY: !0, SG: !0 },
@@ -3422,7 +3422,7 @@ const Ho = () => ({
3422
3422
  path: "/settlement/:settlementId",
3423
3423
  name: "mf-payment-settlement-transaction",
3424
3424
  props: !0,
3425
- component: () => import("./SettlementTransactions-C5_IwQfi.js"),
3425
+ component: () => import("./SettlementTransactions-CTFl-1pu.js"),
3426
3426
  meta: {
3427
3427
  parent: "mf-payment-settlement",
3428
3428
  validationManifest: {
@@ -3589,9 +3589,9 @@ const Vs = function(t) {
3589
3589
  this.init_();
3590
3590
  const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
3591
3591
  for (let s = 0; s < t.length; s += 3) {
3592
- 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;
3593
- let B = (c & 15) << 2 | A >> 6, v = A & 63;
3594
- l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
3592
+ 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;
3593
+ let B = (c & 15) << 2 | A >> 6, w = A & 63;
3594
+ l || (w = 64, a || (B = 64)), r.push(n[m], n[p], n[B], n[w]);
3595
3595
  }
3596
3596
  return r.join("");
3597
3597
  },
@@ -3645,8 +3645,8 @@ const Vs = function(t) {
3645
3645
  throw new So();
3646
3646
  const B = i << 2 | c >> 4;
3647
3647
  if (r.push(B), A !== 64) {
3648
- const v = c << 4 & 240 | A >> 2;
3649
- if (r.push(v), p !== 64) {
3648
+ const w = c << 4 & 240 | A >> 2;
3649
+ if (r.push(w), p !== 64) {
3650
3650
  const O = A << 6 & 192 | p;
3651
3651
  r.push(O);
3652
3652
  }
@@ -3878,10 +3878,10 @@ function sc() {
3878
3878
  const ic = "FirebaseError";
3879
3879
  class qe extends Error {
3880
3880
  constructor(e, n, r) {
3881
- super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, It.prototype.create);
3881
+ super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
3882
3882
  }
3883
3883
  }
3884
- class It {
3884
+ class Pt {
3885
3885
  constructor(e, n, r) {
3886
3886
  this.service = e, this.serviceName = n, this.errors = r;
3887
3887
  }
@@ -3903,7 +3903,7 @@ function cc(t) {
3903
3903
  return !1;
3904
3904
  return !0;
3905
3905
  }
3906
- function Ut(t, e) {
3906
+ function Wt(t, e) {
3907
3907
  if (t === e)
3908
3908
  return !0;
3909
3909
  const n = Object.keys(t), r = Object.keys(e);
@@ -3912,7 +3912,7 @@ function Ut(t, e) {
3912
3912
  return !1;
3913
3913
  const i = t[s], a = e[s];
3914
3914
  if (ur(i) && ur(a)) {
3915
- if (!Ut(i, a))
3915
+ if (!Wt(i, a))
3916
3916
  return !1;
3917
3917
  } else if (i !== a)
3918
3918
  return !1;
@@ -3941,7 +3941,7 @@ function ur(t) {
3941
3941
  * See the License for the specific language governing permissions and
3942
3942
  * limitations under the License.
3943
3943
  */
3944
- function Pt(t) {
3944
+ function Ot(t) {
3945
3945
  const e = [];
3946
3946
  for (const [n, r] of Object.entries(t))
3947
3947
  Array.isArray(r) ? r.forEach((s) => {
@@ -4173,7 +4173,7 @@ class dc {
4173
4173
  if (this.component)
4174
4174
  throw Error(`Component for ${this.name} has already been provided`);
4175
4175
  if (this.component = e, !!this.shouldAutoInitialize()) {
4176
- if (mc(e))
4176
+ if (fc(e))
4177
4177
  try {
4178
4178
  this.getOrInitializeService({ instanceIdentifier: Ne });
4179
4179
  } catch {
@@ -4279,7 +4279,7 @@ class dc {
4279
4279
  function hc(t) {
4280
4280
  return t === Ne ? void 0 : t;
4281
4281
  }
4282
- function mc(t) {
4282
+ function fc(t) {
4283
4283
  return t.instantiationMode === "EAGER";
4284
4284
  }
4285
4285
  /**
@@ -4298,7 +4298,7 @@ function mc(t) {
4298
4298
  * See the License for the specific language governing permissions and
4299
4299
  * limitations under the License.
4300
4300
  */
4301
- class fc {
4301
+ class mc {
4302
4302
  constructor(e) {
4303
4303
  this.name = e, this.providers = /* @__PURE__ */ new Map();
4304
4304
  }
@@ -4434,9 +4434,9 @@ class Ns {
4434
4434
  this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
4435
4435
  }
4436
4436
  }
4437
- const wc = (t, e) => e.some((n) => t instanceof n);
4437
+ const vc = (t, e) => e.some((n) => t instanceof n);
4438
4438
  let lr, Ar;
4439
- function vc() {
4439
+ function wc() {
4440
4440
  return lr || (lr = [
4441
4441
  IDBDatabase,
4442
4442
  IDBObjectStore,
@@ -4452,7 +4452,7 @@ function Bc() {
4452
4452
  IDBCursor.prototype.continuePrimaryKey
4453
4453
  ]);
4454
4454
  }
4455
- const Hs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
4455
+ const Hs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
4456
4456
  function Dc(t) {
4457
4457
  const e = new Promise((n, r) => {
4458
4458
  const s = () => {
@@ -4508,26 +4508,26 @@ function Ec(t) {
4508
4508
  }
4509
4509
  function Mc(t) {
4510
4510
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
4511
- const r = t.call(fn(this), e, ...n);
4511
+ const r = t.call(mn(this), e, ...n);
4512
4512
  return Qs.set(r, e.sort ? e.sort() : [e]), Fe(r);
4513
4513
  } : Bc().includes(t) ? function(...e) {
4514
- return t.apply(fn(this), e), Fe(Hs.get(this));
4514
+ return t.apply(mn(this), e), Fe(Hs.get(this));
4515
4515
  } : function(...e) {
4516
- return Fe(t.apply(fn(this), e));
4516
+ return Fe(t.apply(mn(this), e));
4517
4517
  };
4518
4518
  }
4519
4519
  function Ic(t) {
4520
- return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Mn) : t);
4520
+ return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
4521
4521
  }
4522
4522
  function Fe(t) {
4523
4523
  if (t instanceof IDBRequest)
4524
4524
  return Dc(t);
4525
- if (mn.has(t))
4526
- return mn.get(t);
4525
+ if (fn.has(t))
4526
+ return fn.get(t);
4527
4527
  const e = Ic(t);
4528
- return e !== t && (mn.set(t, e), Un.set(e, t)), e;
4528
+ return e !== t && (fn.set(t, e), Un.set(e, t)), e;
4529
4529
  }
4530
- const fn = (t) => Un.get(t);
4530
+ const mn = (t) => Un.get(t);
4531
4531
  function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
4532
4532
  const a = indexedDB.open(t, e), c = Fe(a);
4533
4533
  return r && a.addEventListener("upgradeneeded", (l) => {
@@ -4622,7 +4622,7 @@ const In = "@firebase/app", hr = "0.10.13";
4622
4622
  * See the License for the specific language governing permissions and
4623
4623
  * limitations under the License.
4624
4624
  */
4625
- const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
4625
+ const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
4626
4626
  /**
4627
4627
  * @license
4628
4628
  * Copyright 2019 Google LLC
@@ -4685,23 +4685,23 @@ const Pn = "[DEFAULT]", au = {
4685
4685
  * See the License for the specific language governing permissions and
4686
4686
  * limitations under the License.
4687
4687
  */
4688
- const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
4689
- function mr(t, e) {
4688
+ const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
4689
+ function fr(t, e) {
4690
4690
  try {
4691
4691
  t.container.addComponent(e);
4692
4692
  } catch (n) {
4693
- ve.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
4693
+ we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
4694
4694
  }
4695
4695
  }
4696
- function bt(t) {
4696
+ function vt(t) {
4697
4697
  const e = t.name;
4698
4698
  if (On.has(e))
4699
- return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
4699
+ return we.debug(`There were multiple attempts to register component ${e}.`), !1;
4700
4700
  On.set(e, t);
4701
- for (const n of Wt.values())
4702
- mr(n, t);
4701
+ for (const n of zt.values())
4702
+ fr(n, t);
4703
4703
  for (const n of ou.values())
4704
- mr(n, t);
4704
+ fr(n, t);
4705
4705
  return !0;
4706
4706
  }
4707
4707
  function Xs(t, e) {
@@ -4742,7 +4742,7 @@ const cu = {
4742
4742
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
4743
4743
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
4744
4744
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
4745
- }, ke = new It("app", "Firebase", cu);
4745
+ }, ke = new Pt("app", "Firebase", cu);
4746
4746
  /**
4747
4747
  * @license
4748
4748
  * Copyright 2019 Google LLC
@@ -4817,7 +4817,7 @@ class uu {
4817
4817
  * See the License for the specific language governing permissions and
4818
4818
  * limitations under the License.
4819
4819
  */
4820
- const Ot = iu;
4820
+ const Tt = iu;
4821
4821
  function Ss(t, e = {}) {
4822
4822
  let n = t;
4823
4823
  typeof e != "object" && (e = { name: e });
@@ -4831,20 +4831,20 @@ function Ss(t, e = {}) {
4831
4831
  "no-options"
4832
4832
  /* AppError.NO_OPTIONS */
4833
4833
  );
4834
- const i = Wt.get(s);
4834
+ const i = zt.get(s);
4835
4835
  if (i) {
4836
- if (Ut(n, i.options) && Ut(r, i.config))
4836
+ if (Wt(n, i.options) && Wt(r, i.config))
4837
4837
  return i;
4838
4838
  throw ke.create("duplicate-app", { appName: s });
4839
4839
  }
4840
- const a = new fc(s);
4840
+ const a = new mc(s);
4841
4841
  for (const l of On.values())
4842
4842
  a.addComponent(l);
4843
4843
  const c = new uu(n, r, a);
4844
- return Wt.set(s, c), c;
4844
+ return zt.set(s, c), c;
4845
4845
  }
4846
4846
  function lu(t = Pn) {
4847
- const e = Wt.get(t);
4847
+ const e = zt.get(t);
4848
4848
  if (!e && t === Pn && Rs())
4849
4849
  return Ss();
4850
4850
  if (!e)
@@ -4860,10 +4860,10 @@ function $e(t, e, n) {
4860
4860
  const c = [
4861
4861
  `Unable to register library "${s}" with version "${e}":`
4862
4862
  ];
4863
- i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), ve.warn(c.join(" "));
4863
+ i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
4864
4864
  return;
4865
4865
  }
4866
- bt(new dt(
4866
+ vt(new dt(
4867
4867
  `${s}-version`,
4868
4868
  () => ({ library: s, version: e }),
4869
4869
  "VERSION"
@@ -4912,27 +4912,27 @@ async function hu(t) {
4912
4912
  return await n.done, r;
4913
4913
  } catch (e) {
4914
4914
  if (e instanceof qe)
4915
- ve.warn(e.message);
4915
+ we.warn(e.message);
4916
4916
  else {
4917
4917
  const n = ke.create("idb-get", {
4918
4918
  originalErrorMessage: e == null ? void 0 : e.message
4919
4919
  });
4920
- ve.warn(n.message);
4920
+ we.warn(n.message);
4921
4921
  }
4922
4922
  }
4923
4923
  }
4924
- async function fr(t, e) {
4924
+ async function mr(t, e) {
4925
4925
  try {
4926
4926
  const r = (await Us()).transaction(wt, "readwrite");
4927
4927
  await r.objectStore(wt).put(e, Ws(t)), await r.done;
4928
4928
  } catch (n) {
4929
4929
  if (n instanceof qe)
4930
- ve.warn(n.message);
4930
+ we.warn(n.message);
4931
4931
  else {
4932
4932
  const r = ke.create("idb-set", {
4933
4933
  originalErrorMessage: n == null ? void 0 : n.message
4934
4934
  });
4935
- ve.warn(r.message);
4935
+ we.warn(r.message);
4936
4936
  }
4937
4937
  }
4938
4938
  }
@@ -4955,7 +4955,7 @@ function Ws(t) {
4955
4955
  * See the License for the specific language governing permissions and
4956
4956
  * limitations under the License.
4957
4957
  */
4958
- const mu = 1024, fu = 30 * 24 * 60 * 60 * 1e3;
4958
+ const fu = 1024, mu = 30 * 24 * 60 * 60 * 1e3;
4959
4959
  class gu {
4960
4960
  constructor(e) {
4961
4961
  this.container = e, this._heartbeatsCache = null;
@@ -4975,10 +4975,10 @@ class gu {
4975
4975
  const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), i = gr();
4976
4976
  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) => {
4977
4977
  const c = new Date(a.date).valueOf();
4978
- return Date.now() - c <= fu;
4978
+ return Date.now() - c <= mu;
4979
4979
  }), this._storage.overwrite(this._heartbeatsCache));
4980
4980
  } catch (r) {
4981
- ve.warn(r);
4981
+ we.warn(r);
4982
4982
  }
4983
4983
  }
4984
4984
  /**
@@ -4996,14 +4996,14 @@ class gu {
4996
4996
  const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
4997
4997
  return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
4998
4998
  } catch (n) {
4999
- return ve.warn(n), "";
4999
+ return we.warn(n), "";
5000
5000
  }
5001
5001
  }
5002
5002
  }
5003
5003
  function gr() {
5004
5004
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
5005
5005
  }
5006
- function pu(t, e = mu) {
5006
+ function pu(t, e = fu) {
5007
5007
  const n = [];
5008
5008
  let r = t.slice();
5009
5009
  for (const s of t) {
@@ -5049,7 +5049,7 @@ class yu {
5049
5049
  var n;
5050
5050
  if (await this._canUseIndexedDBPromise) {
5051
5051
  const s = await this.read();
5052
- return fr(this.app, {
5052
+ return mr(this.app, {
5053
5053
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
5054
5054
  heartbeats: e.heartbeats
5055
5055
  });
@@ -5061,7 +5061,7 @@ class yu {
5061
5061
  var n;
5062
5062
  if (await this._canUseIndexedDBPromise) {
5063
5063
  const s = await this.read();
5064
- return fr(this.app, {
5064
+ return mr(this.app, {
5065
5065
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
5066
5066
  heartbeats: [
5067
5067
  ...s.heartbeats,
@@ -5095,12 +5095,12 @@ function pr(t) {
5095
5095
  * limitations under the License.
5096
5096
  */
5097
5097
  function bu(t) {
5098
- bt(new dt(
5098
+ vt(new dt(
5099
5099
  "platform-logger",
5100
5100
  (e) => new Gc(e),
5101
5101
  "PRIVATE"
5102
5102
  /* ComponentType.PRIVATE */
5103
- )), bt(new dt(
5103
+ )), vt(new dt(
5104
5104
  "heartbeat",
5105
5105
  (e) => new gu(e),
5106
5106
  "PRIVATE"
@@ -5108,7 +5108,7 @@ function bu(t) {
5108
5108
  )), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
5109
5109
  }
5110
5110
  bu("");
5111
- var wu = "firebase", vu = "10.14.1";
5111
+ var vu = "firebase", wu = "10.14.1";
5112
5112
  /**
5113
5113
  * @license
5114
5114
  * Copyright 2020 Google LLC
@@ -5125,7 +5125,7 @@ var wu = "firebase", vu = "10.14.1";
5125
5125
  * See the License for the specific language governing permissions and
5126
5126
  * limitations under the License.
5127
5127
  */
5128
- $e(wu, vu, "app");
5128
+ $e(vu, wu, "app");
5129
5129
  var yr = function() {
5130
5130
  return yr = Object.assign || function(e) {
5131
5131
  for (var n, r = 1, s = arguments.length; r < s; r++) {
@@ -5148,7 +5148,7 @@ function zs() {
5148
5148
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
5149
5149
  };
5150
5150
  }
5151
- const Bu = zs, Zs = new It("auth", "Firebase", zs());
5151
+ const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
5152
5152
  /**
5153
5153
  * @license
5154
5154
  * Copyright 2020 Google LLC
@@ -5165,12 +5165,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
5165
5165
  * See the License for the specific language governing permissions and
5166
5166
  * limitations under the License.
5167
5167
  */
5168
- const zt = new Ns("@firebase/auth");
5168
+ const Zt = new Ns("@firebase/auth");
5169
5169
  function Du(t, ...e) {
5170
- zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
5170
+ Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
5171
5171
  }
5172
- function qt(t, ...e) {
5173
- zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
5172
+ function Nt(t, ...e) {
5173
+ Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
5174
5174
  }
5175
5175
  /**
5176
5176
  * @license
@@ -5196,7 +5196,7 @@ function Ae(t, ...e) {
5196
5196
  }
5197
5197
  function Ls(t, e, n) {
5198
5198
  const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
5199
- return new It("auth", "Firebase", r).create(e, {
5199
+ return new Pt("auth", "Firebase", r).create(e, {
5200
5200
  appName: t.name
5201
5201
  });
5202
5202
  }
@@ -5216,7 +5216,7 @@ function M(t, e, ...n) {
5216
5216
  }
5217
5217
  function ye(t) {
5218
5218
  const e = "INTERNAL ASSERTION FAILED: " + t;
5219
- throw qt(e), new Error(e);
5219
+ throw Nt(e), new Error(e);
5220
5220
  }
5221
5221
  function De(t, e) {
5222
5222
  t || ye(e);
@@ -5300,7 +5300,7 @@ function Mu() {
5300
5300
  * See the License for the specific language governing permissions and
5301
5301
  * limitations under the License.
5302
5302
  */
5303
- class Tt {
5303
+ class Gt {
5304
5304
  constructor(e, n) {
5305
5305
  this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
5306
5306
  }
@@ -5490,17 +5490,17 @@ const Iu = {
5490
5490
  * See the License for the specific language governing permissions and
5491
5491
  * limitations under the License.
5492
5492
  */
5493
- const Pu = new Tt(3e4, 6e4);
5493
+ const Pu = new Gt(3e4, 6e4);
5494
5494
  function sn(t, e) {
5495
5495
  return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
5496
5496
  }
5497
- async function mt(t, e, n, r, s = {}) {
5497
+ async function ft(t, e, n, r, s = {}) {
5498
5498
  return Js(t, s, async () => {
5499
5499
  let i = {}, a = {};
5500
5500
  r && (e === "GET" ? a = r : i = {
5501
5501
  body: JSON.stringify(r)
5502
5502
  });
5503
- const c = Pt(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
5503
+ const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
5504
5504
  l[
5505
5505
  "Content-Type"
5506
5506
  /* HttpHeader.CONTENT_TYPE */
@@ -5526,21 +5526,21 @@ async function Js(t, e, n) {
5526
5526
  s.clearNetworkTimeout();
5527
5527
  const a = await i.json();
5528
5528
  if ("needConfirmation" in a)
5529
- throw Ft(t, "account-exists-with-different-credential", a);
5529
+ throw kt(t, "account-exists-with-different-credential", a);
5530
5530
  if (i.ok && !("errorMessage" in a))
5531
5531
  return a;
5532
5532
  {
5533
5533
  const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
5534
5534
  if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
5535
- throw Ft(t, "credential-already-in-use", a);
5535
+ throw kt(t, "credential-already-in-use", a);
5536
5536
  if (l === "EMAIL_EXISTS")
5537
- throw Ft(t, "email-already-in-use", a);
5537
+ throw kt(t, "email-already-in-use", a);
5538
5538
  if (l === "USER_DISABLED")
5539
- throw Ft(t, "user-disabled", a);
5540
- const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
5539
+ throw kt(t, "user-disabled", a);
5540
+ const m = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
5541
5541
  if (A)
5542
- throw Ls(t, f, A);
5543
- Be(t, f);
5542
+ throw Ls(t, m, A);
5543
+ Be(t, m);
5544
5544
  }
5545
5545
  } catch (s) {
5546
5546
  if (s instanceof qe)
@@ -5549,7 +5549,7 @@ async function Js(t, e, n) {
5549
5549
  }
5550
5550
  }
5551
5551
  async function _s(t, e, n, r, s = {}) {
5552
- const i = await mt(t, e, n, r, s);
5552
+ const i = await ft(t, e, n, r, s);
5553
5553
  return "mfaPendingCredential" in i && Be(t, "multi-factor-auth-required", {
5554
5554
  _serverResponse: i
5555
5555
  }), i;
@@ -5572,7 +5572,7 @@ class Ou {
5572
5572
  clearTimeout(this.timer);
5573
5573
  }
5574
5574
  }
5575
- function Ft(t, e, n) {
5575
+ function kt(t, e, n) {
5576
5576
  const r = {
5577
5577
  appName: t.name
5578
5578
  };
@@ -5597,10 +5597,10 @@ function Ft(t, e, n) {
5597
5597
  * limitations under the License.
5598
5598
  */
5599
5599
  async function Tu(t, e) {
5600
- return mt(t, "POST", "/v1/accounts:delete", e);
5600
+ return ft(t, "POST", "/v1/accounts:delete", e);
5601
5601
  }
5602
5602
  async function ei(t, e) {
5603
- return mt(t, "POST", "/v1/accounts:lookup", e);
5603
+ return ft(t, "POST", "/v1/accounts:lookup", e);
5604
5604
  }
5605
5605
  /**
5606
5606
  * @license
@@ -5652,15 +5652,15 @@ function yn(t) {
5652
5652
  function Ln(t) {
5653
5653
  const [e, n, r] = t.split(".");
5654
5654
  if (e === void 0 || n === void 0 || r === void 0)
5655
- return qt("JWT malformed, contained fewer than 3 sections"), null;
5655
+ return Nt("JWT malformed, contained fewer than 3 sections"), null;
5656
5656
  try {
5657
5657
  const s = ks(n);
5658
- return s ? JSON.parse(s) : (qt("Failed to decode base64 JWT payload"), null);
5658
+ return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
5659
5659
  } catch (s) {
5660
- return qt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5660
+ return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5661
5661
  }
5662
5662
  }
5663
- function wr(t) {
5663
+ function vr(t) {
5664
5664
  const e = Ln(t);
5665
5665
  return M(
5666
5666
  e,
@@ -5692,7 +5692,7 @@ function wr(t) {
5692
5692
  * See the License for the specific language governing permissions and
5693
5693
  * limitations under the License.
5694
5694
  */
5695
- async function vt(t, e, n = !1) {
5695
+ async function Bt(t, e, n = !1) {
5696
5696
  if (n)
5697
5697
  return e;
5698
5698
  try {
@@ -5815,9 +5815,9 @@ class Gn {
5815
5815
  * See the License for the specific language governing permissions and
5816
5816
  * limitations under the License.
5817
5817
  */
5818
- async function Zt(t) {
5818
+ async function Lt(t) {
5819
5819
  var e;
5820
- const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
5820
+ const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
5821
5821
  M(
5822
5822
  s == null ? void 0 : s.users.length,
5823
5823
  n,
@@ -5826,7 +5826,7 @@ async function Zt(t) {
5826
5826
  );
5827
5827
  const i = s.users[0];
5828
5828
  t._notifyReloadListener(i);
5829
- 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 = {
5829
+ 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 = {
5830
5830
  uid: i.localId,
5831
5831
  displayName: i.displayName || null,
5832
5832
  photoURL: i.photoUrl || null,
@@ -5836,13 +5836,13 @@ async function Zt(t) {
5836
5836
  tenantId: i.tenantId || null,
5837
5837
  providerData: c,
5838
5838
  metadata: new Gn(i.createdAt, i.lastLoginAt),
5839
- isAnonymous: f
5839
+ isAnonymous: m
5840
5840
  };
5841
5841
  Object.assign(t, p);
5842
5842
  }
5843
5843
  async function Vu(t) {
5844
5844
  const e = ht(t);
5845
- await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5845
+ await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5846
5846
  }
5847
5847
  function xu(t, e) {
5848
5848
  return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
@@ -5878,7 +5878,7 @@ function ti(t) {
5878
5878
  */
5879
5879
  async function Fu(t, e) {
5880
5880
  const n = await Js(t, {}, async () => {
5881
- const r = Pt({
5881
+ const r = Ot({
5882
5882
  grant_type: "refresh_token",
5883
5883
  refresh_token: e
5884
5884
  }).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
@@ -5898,7 +5898,7 @@ async function Fu(t, e) {
5898
5898
  };
5899
5899
  }
5900
5900
  async function ku(t, e) {
5901
- return mt(t, "POST", "/v2/accounts:revokeToken", sn(t, e));
5901
+ return ft(t, "POST", "/v2/accounts:revokeToken", sn(t, e));
5902
5902
  }
5903
5903
  /**
5904
5904
  * @license
@@ -5937,7 +5937,7 @@ class et {
5937
5937
  "internal-error"
5938
5938
  /* AuthErrorCode.INTERNAL_ERROR */
5939
5939
  );
5940
- const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : wr(e.idToken);
5940
+ const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
5941
5941
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
5942
5942
  }
5943
5943
  updateFromIdToken(e) {
@@ -5946,7 +5946,7 @@ class et {
5946
5946
  "internal-error"
5947
5947
  /* AuthErrorCode.INTERNAL_ERROR */
5948
5948
  );
5949
- const n = wr(e);
5949
+ const n = vr(e);
5950
5950
  this.updateTokensAndExpiration(e, null, n);
5951
5951
  }
5952
5952
  async getToken(e, n = !1) {
@@ -6019,7 +6019,7 @@ class be {
6019
6019
  this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
6020
6020
  }
6021
6021
  async getIdToken(e) {
6022
- const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
6022
+ const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
6023
6023
  return M(
6024
6024
  n,
6025
6025
  this.auth,
@@ -6064,13 +6064,13 @@ class be {
6064
6064
  }
6065
6065
  async _updateTokensIfNecessary(e, n = !1) {
6066
6066
  let r = !1;
6067
- 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);
6067
+ 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);
6068
6068
  }
6069
6069
  async delete() {
6070
6070
  if (pe(this.auth.app))
6071
6071
  return Promise.reject(Re(this.auth));
6072
6072
  const e = await this.getIdToken();
6073
- return await vt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
6073
+ return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
6074
6074
  }
6075
6075
  toJSON() {
6076
6076
  return Object.assign(Object.assign({
@@ -6097,8 +6097,8 @@ class be {
6097
6097
  return this.stsTokenManager.refreshToken || "";
6098
6098
  }
6099
6099
  static _fromJSON(e, n) {
6100
- var r, s, i, a, c, l, A, f;
6101
- 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;
6100
+ var r, s, i, a, c, l, A, m;
6101
+ const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (m = n.lastLoginAt) !== null && m !== void 0 ? m : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
6102
6102
  M(
6103
6103
  Y && ee,
6104
6104
  e,
@@ -6112,7 +6112,7 @@ class be {
6112
6112
  "internal-error"
6113
6113
  /* AuthErrorCode.INTERNAL_ERROR */
6114
6114
  ), Ee(p, e.name), Ee(B, e.name), M(
6115
- typeof w == "boolean",
6115
+ typeof v == "boolean",
6116
6116
  e,
6117
6117
  "internal-error"
6118
6118
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -6121,22 +6121,22 @@ class be {
6121
6121
  e,
6122
6122
  "internal-error"
6123
6123
  /* AuthErrorCode.INTERNAL_ERROR */
6124
- ), Ee(v, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
6124
+ ), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
6125
6125
  const u = new be({
6126
6126
  uid: Y,
6127
6127
  auth: e,
6128
6128
  email: B,
6129
- emailVerified: w,
6129
+ emailVerified: v,
6130
6130
  displayName: p,
6131
6131
  isAnonymous: H,
6132
6132
  photoURL: O,
6133
- phoneNumber: v,
6133
+ phoneNumber: w,
6134
6134
  tenantId: I,
6135
6135
  stsTokenManager: q,
6136
6136
  createdAt: R,
6137
6137
  lastLoginAt: Q
6138
6138
  });
6139
- return U && Array.isArray(U) && (u.providerData = U.map((m) => Object.assign({}, m))), V && (u._redirectEventId = V), u;
6139
+ return U && Array.isArray(U) && (u.providerData = U.map((f) => Object.assign({}, f))), V && (u._redirectEventId = V), u;
6140
6140
  }
6141
6141
  /**
6142
6142
  * Initialize a User from an idToken server response
@@ -6152,7 +6152,7 @@ class be {
6152
6152
  stsTokenManager: s,
6153
6153
  isAnonymous: r
6154
6154
  });
6155
- return await Zt(i), i;
6155
+ return await Lt(i), i;
6156
6156
  }
6157
6157
  /**
6158
6158
  * Initialize a User from an idToken server response
@@ -6204,11 +6204,11 @@ class be {
6204
6204
  * See the License for the specific language governing permissions and
6205
6205
  * limitations under the License.
6206
6206
  */
6207
- const vr = /* @__PURE__ */ new Map();
6208
- function we(t) {
6207
+ const wr = /* @__PURE__ */ new Map();
6208
+ function ve(t) {
6209
6209
  De(t instanceof Function, "Expected a class definition");
6210
- let e = vr.get(t);
6211
- return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), vr.set(t, e), e);
6210
+ let e = wr.get(t);
6211
+ return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
6212
6212
  }
6213
6213
  /**
6214
6214
  * @license
@@ -6266,14 +6266,14 @@ const Br = ni;
6266
6266
  * See the License for the specific language governing permissions and
6267
6267
  * limitations under the License.
6268
6268
  */
6269
- function Nt(t, e, n) {
6269
+ function Ht(t, e, n) {
6270
6270
  return `firebase:${t}:${e}:${n}`;
6271
6271
  }
6272
6272
  class tt {
6273
6273
  constructor(e, n, r) {
6274
6274
  this.persistence = e, this.auth = n, this.userKey = r;
6275
6275
  const { config: s, name: i } = this.auth;
6276
- this.fullUserKey = Nt(this.userKey, s.apiKey, i), this.fullPersistenceKey = Nt("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
6276
+ this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
6277
6277
  }
6278
6278
  setCurrentUser(e) {
6279
6279
  return this.persistence._set(this.fullUserKey, e.toJSON());
@@ -6300,19 +6300,19 @@ class tt {
6300
6300
  }
6301
6301
  static async create(e, n, r = "authUser") {
6302
6302
  if (!n.length)
6303
- return new tt(we(Br), e, r);
6303
+ return new tt(ve(Br), e, r);
6304
6304
  const s = (await Promise.all(n.map(async (A) => {
6305
6305
  if (await A._isAvailable())
6306
6306
  return A;
6307
6307
  }))).filter((A) => A);
6308
- let i = s[0] || we(Br);
6309
- const a = Nt(r, e.config.apiKey, e.name);
6308
+ let i = s[0] || ve(Br);
6309
+ const a = Ht(r, e.config.apiKey, e.name);
6310
6310
  let c = null;
6311
6311
  for (const A of n)
6312
6312
  try {
6313
- const f = await A._get(a);
6314
- if (f) {
6315
- const p = be._fromJSON(e, f);
6313
+ const m = await A._get(a);
6314
+ if (m) {
6315
+ const p = be._fromJSON(e, m);
6316
6316
  A !== i && (c = p), i = A;
6317
6317
  break;
6318
6318
  }
@@ -6439,7 +6439,7 @@ function Ai(t, e = []) {
6439
6439
  n = t;
6440
6440
  }
6441
6441
  const r = e.length ? e.join(",") : "FirebaseCore-web";
6442
- return `${n}/JsCore/${Ot}/${r}`;
6442
+ return `${n}/JsCore/${Tt}/${r}`;
6443
6443
  }
6444
6444
  /**
6445
6445
  * @license
@@ -6513,7 +6513,7 @@ class Nu {
6513
6513
  * limitations under the License.
6514
6514
  */
6515
6515
  async function Hu(t, e = {}) {
6516
- return mt(t, "GET", "/v2/passwordPolicy", sn(t, e));
6516
+ return ft(t, "GET", "/v2/passwordPolicy", sn(t, e));
6517
6517
  }
6518
6518
  /**
6519
6519
  * @license
@@ -6624,7 +6624,7 @@ class Su {
6624
6624
  this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zs, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
6625
6625
  }
6626
6626
  _initializeWithPersistence(e, n) {
6627
- return n && (this._popupRedirectResolver = we(n)), this._initializationPromise = this.queue(async () => {
6627
+ return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
6628
6628
  var r, s;
6629
6629
  if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
6630
6630
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
@@ -6707,7 +6707,7 @@ class Su {
6707
6707
  }
6708
6708
  async reloadAndSetCurrentUserOrClear(e) {
6709
6709
  try {
6710
- await Zt(e);
6710
+ await Lt(e);
6711
6711
  } catch (n) {
6712
6712
  if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
6713
6713
  return this.directlySetCurrentUser(null);
@@ -6751,7 +6751,7 @@ class Su {
6751
6751
  }
6752
6752
  setPersistence(e) {
6753
6753
  return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
6754
- await this.assertedPersistence.setPersistence(we(e));
6754
+ await this.assertedPersistence.setPersistence(ve(e));
6755
6755
  });
6756
6756
  }
6757
6757
  _getRecaptchaConfig() {
@@ -6773,7 +6773,7 @@ class Su {
6773
6773
  return this.assertedPersistence.persistence.type;
6774
6774
  }
6775
6775
  _updateErrorMap(e) {
6776
- this._errorFactory = new It("auth", "Firebase", e());
6776
+ this._errorFactory = new Pt("auth", "Firebase", e());
6777
6777
  }
6778
6778
  onAuthStateChanged(e, n, r) {
6779
6779
  return this.registerStateListener(this.authStateSubscription, e, n, r);
@@ -6824,7 +6824,7 @@ class Su {
6824
6824
  }
6825
6825
  async getOrInitRedirectPersistenceManager(e) {
6826
6826
  if (!this.redirectPersistenceManager) {
6827
- const n = e && we(e) || this._popupRedirectResolver;
6827
+ const n = e && ve(e) || this._popupRedirectResolver;
6828
6828
  M(
6829
6829
  n,
6830
6830
  this,
@@ -6832,7 +6832,7 @@ class Su {
6832
6832
  /* AuthErrorCode.ARGUMENT_ERROR */
6833
6833
  ), this.redirectPersistenceManager = await tt.create(
6834
6834
  this,
6835
- [we(n._redirectPersistence)],
6835
+ [ve(n._redirectPersistence)],
6836
6836
  "redirectUser"
6837
6837
  /* KeyName.REDIRECT_USER */
6838
6838
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -7024,7 +7024,7 @@ function Lu(t, e) {
7024
7024
  const n = Xs(t, "auth");
7025
7025
  if (n.isInitialized()) {
7026
7026
  const s = n.getImmediate(), i = n.getOptions();
7027
- if (Ut(i, e ?? {}))
7027
+ if (Wt(i, e ?? {}))
7028
7028
  return s;
7029
7029
  Be(
7030
7030
  s,
@@ -7035,7 +7035,7 @@ function Lu(t, e) {
7035
7035
  return n.initialize({ options: e });
7036
7036
  }
7037
7037
  function Ku(t, e) {
7038
- const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(we);
7038
+ const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
7039
7039
  e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
7040
7040
  }
7041
7041
  function Ju(t, e, n) {
@@ -7231,7 +7231,7 @@ class Ze extends hi {
7231
7231
  e.pendingToken = this.pendingToken;
7232
7232
  else {
7233
7233
  const n = {};
7234
- this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Pt(n);
7234
+ this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
7235
7235
  }
7236
7236
  return e;
7237
7237
  }
@@ -7252,7 +7252,7 @@ class Ze extends hi {
7252
7252
  * See the License for the specific language governing permissions and
7253
7253
  * limitations under the License.
7254
7254
  */
7255
- class mi {
7255
+ class fi {
7256
7256
  /**
7257
7257
  * Constructor for generic OAuth providers.
7258
7258
  *
@@ -7305,7 +7305,7 @@ class mi {
7305
7305
  * See the License for the specific language governing permissions and
7306
7306
  * limitations under the License.
7307
7307
  */
7308
- class Gt extends mi {
7308
+ class jt extends fi {
7309
7309
  constructor() {
7310
7310
  super(...arguments), this.scopes = [];
7311
7311
  }
@@ -7340,7 +7340,7 @@ class Gt extends mi {
7340
7340
  * See the License for the specific language governing permissions and
7341
7341
  * limitations under the License.
7342
7342
  */
7343
- class Ie extends Gt {
7343
+ class Ie extends jt {
7344
7344
  constructor() {
7345
7345
  super(
7346
7346
  "facebook.com"
@@ -7411,7 +7411,7 @@ Ie.PROVIDER_ID = "facebook.com";
7411
7411
  * See the License for the specific language governing permissions and
7412
7412
  * limitations under the License.
7413
7413
  */
7414
- class Pe extends Gt {
7414
+ class Pe extends jt {
7415
7415
  constructor() {
7416
7416
  super(
7417
7417
  "google.com"
@@ -7487,7 +7487,7 @@ Pe.PROVIDER_ID = "google.com";
7487
7487
  * See the License for the specific language governing permissions and
7488
7488
  * limitations under the License.
7489
7489
  */
7490
- class Oe extends Gt {
7490
+ class Oe extends jt {
7491
7491
  constructor() {
7492
7492
  super(
7493
7493
  "github.com"
@@ -7551,7 +7551,7 @@ Oe.PROVIDER_ID = "github.com";
7551
7551
  * See the License for the specific language governing permissions and
7552
7552
  * limitations under the License.
7553
7553
  */
7554
- class Te extends Gt {
7554
+ class Te extends jt {
7555
7555
  constructor() {
7556
7556
  super(
7557
7557
  "twitter.com"
@@ -7667,10 +7667,10 @@ function Mr(t) {
7667
7667
  * See the License for the specific language governing permissions and
7668
7668
  * limitations under the License.
7669
7669
  */
7670
- class Lt extends qe {
7670
+ class Kt extends qe {
7671
7671
  constructor(e, n, r, s) {
7672
7672
  var i;
7673
- super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
7673
+ super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
7674
7674
  appName: e.name,
7675
7675
  tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
7676
7676
  _serverResponse: n.customData._serverResponse,
@@ -7678,16 +7678,16 @@ class Lt extends qe {
7678
7678
  };
7679
7679
  }
7680
7680
  static _fromErrorAndOperation(e, n, r, s) {
7681
- return new Lt(e, n, r, s);
7681
+ return new Kt(e, n, r, s);
7682
7682
  }
7683
7683
  }
7684
- function fi(t, e, n, r) {
7684
+ function mi(t, e, n, r) {
7685
7685
  return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
7686
- throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
7686
+ throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
7687
7687
  });
7688
7688
  }
7689
7689
  async function tl(t, e, n = !1) {
7690
- const r = await vt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
7690
+ const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
7691
7691
  return Le._forOperation(t, "link", r);
7692
7692
  }
7693
7693
  /**
@@ -7712,7 +7712,7 @@ async function nl(t, e, n = !1) {
7712
7712
  return Promise.reject(Re(r));
7713
7713
  const s = "reauthenticate";
7714
7714
  try {
7715
- const i = await vt(t, fi(r, s, e, t), n);
7715
+ const i = await Bt(t, mi(r, s, e, t), n);
7716
7716
  M(
7717
7717
  i.idToken,
7718
7718
  r,
@@ -7760,7 +7760,7 @@ async function nl(t, e, n = !1) {
7760
7760
  async function rl(t, e, n = !1) {
7761
7761
  if (pe(t.app))
7762
7762
  return Promise.reject(Re(t));
7763
- const r = "signIn", s = await fi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
7763
+ const r = "signIn", s = await mi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
7764
7764
  return n || await t._updateCurrentUser(i.user), i;
7765
7765
  }
7766
7766
  /**
@@ -7813,7 +7813,7 @@ function al(t, e, n, r) {
7813
7813
  function ol(t, e, n) {
7814
7814
  return ht(t).beforeAuthStateChanged(e, n);
7815
7815
  }
7816
- const Kt = "__sak";
7816
+ const Jt = "__sak";
7817
7817
  /**
7818
7818
  * @license
7819
7819
  * Copyright 2019 Google LLC
@@ -7836,7 +7836,7 @@ class gi {
7836
7836
  }
7837
7837
  _isAvailable() {
7838
7838
  try {
7839
- return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
7839
+ return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
7840
7840
  } catch {
7841
7841
  return Promise.resolve(!1);
7842
7842
  }
@@ -8173,7 +8173,7 @@ class dl {
8173
8173
  return new Promise((c, l) => {
8174
8174
  const A = _n("", 20);
8175
8175
  s.port1.start();
8176
- const f = setTimeout(() => {
8176
+ const m = setTimeout(() => {
8177
8177
  l(new Error(
8178
8178
  "unsupported_event"
8179
8179
  /* _MessageError.UNSUPPORTED_EVENT */
@@ -8186,7 +8186,7 @@ class dl {
8186
8186
  if (B.data.eventId === A)
8187
8187
  switch (B.data.status) {
8188
8188
  case "ack":
8189
- clearTimeout(f), i = setTimeout(
8189
+ clearTimeout(m), i = setTimeout(
8190
8190
  () => {
8191
8191
  l(new Error(
8192
8192
  "timeout"
@@ -8201,7 +8201,7 @@ class dl {
8201
8201
  clearTimeout(i), c(B.data.response);
8202
8202
  break;
8203
8203
  default:
8204
- clearTimeout(f), clearTimeout(i), l(new Error(
8204
+ clearTimeout(m), clearTimeout(i), l(new Error(
8205
8205
  "invalid_response"
8206
8206
  /* _MessageError.INVALID_RESPONSE */
8207
8207
  ));
@@ -8256,10 +8256,10 @@ function hl(t) {
8256
8256
  * See the License for the specific language governing permissions and
8257
8257
  * limitations under the License.
8258
8258
  */
8259
- function wi() {
8259
+ function vi() {
8260
8260
  return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
8261
8261
  }
8262
- async function ml() {
8262
+ async function fl() {
8263
8263
  if (!(navigator != null && navigator.serviceWorker))
8264
8264
  return null;
8265
8265
  try {
@@ -8268,12 +8268,12 @@ async function ml() {
8268
8268
  return null;
8269
8269
  }
8270
8270
  }
8271
- function fl() {
8271
+ function ml() {
8272
8272
  var t;
8273
8273
  return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
8274
8274
  }
8275
8275
  function gl() {
8276
- return wi() ? self : null;
8276
+ return vi() ? self : null;
8277
8277
  }
8278
8278
  /**
8279
8279
  * @license
@@ -8291,8 +8291,8 @@ function gl() {
8291
8291
  * See the License for the specific language governing permissions and
8292
8292
  * limitations under the License.
8293
8293
  */
8294
- const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
8295
- class jt {
8294
+ const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
8295
+ class Yt {
8296
8296
  constructor(e) {
8297
8297
  this.request = e;
8298
8298
  }
@@ -8307,27 +8307,27 @@ class jt {
8307
8307
  }
8308
8308
  }
8309
8309
  function cn(t, e) {
8310
- return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
8310
+ return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
8311
8311
  }
8312
8312
  function yl() {
8313
- const t = indexedDB.deleteDatabase(vi);
8314
- return new jt(t).toPromise();
8313
+ const t = indexedDB.deleteDatabase(wi);
8314
+ return new Yt(t).toPromise();
8315
8315
  }
8316
8316
  function jn() {
8317
- const t = indexedDB.open(vi, pl);
8317
+ const t = indexedDB.open(wi, pl);
8318
8318
  return new Promise((e, n) => {
8319
8319
  t.addEventListener("error", () => {
8320
8320
  n(t.error);
8321
8321
  }), t.addEventListener("upgradeneeded", () => {
8322
8322
  const r = t.result;
8323
8323
  try {
8324
- r.createObjectStore(Jt, { keyPath: Bi });
8324
+ r.createObjectStore(_t, { keyPath: Bi });
8325
8325
  } catch (s) {
8326
8326
  n(s);
8327
8327
  }
8328
8328
  }), t.addEventListener("success", async () => {
8329
8329
  const r = t.result;
8330
- r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await jn()));
8330
+ r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
8331
8331
  });
8332
8332
  });
8333
8333
  }
@@ -8336,17 +8336,17 @@ async function Ir(t, e, n) {
8336
8336
  [Bi]: e,
8337
8337
  value: n
8338
8338
  });
8339
- return new jt(r).toPromise();
8339
+ return new Yt(r).toPromise();
8340
8340
  }
8341
8341
  async function bl(t, e) {
8342
- const n = cn(t, !1).get(e), r = await new jt(n).toPromise();
8342
+ const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
8343
8343
  return r === void 0 ? null : r.value;
8344
8344
  }
8345
8345
  function Pr(t, e) {
8346
8346
  const n = cn(t, !0).delete(e);
8347
- return new jt(n).toPromise();
8347
+ return new Yt(n).toPromise();
8348
8348
  }
8349
- const wl = 800, vl = 3;
8349
+ const vl = 800, wl = 3;
8350
8350
  class Di {
8351
8351
  constructor() {
8352
8352
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
@@ -8363,7 +8363,7 @@ class Di {
8363
8363
  const r = await this._openDb();
8364
8364
  return await e(r);
8365
8365
  } catch (r) {
8366
- if (n++ > vl)
8366
+ if (n++ > wl)
8367
8367
  throw r;
8368
8368
  this.db && (this.db.close(), this.db = void 0);
8369
8369
  }
@@ -8373,7 +8373,7 @@ class Di {
8373
8373
  * postMessage interface to send these events to the worker ourselves.
8374
8374
  */
8375
8375
  async initializeServiceWorkerMessaging() {
8376
- return wi() ? this.initializeReceiver() : this.initializeSender();
8376
+ return vi() ? this.initializeReceiver() : this.initializeSender();
8377
8377
  }
8378
8378
  /**
8379
8379
  * As the worker we should listen to events from the main window.
@@ -8395,7 +8395,7 @@ class Di {
8395
8395
  */
8396
8396
  async initializeSender() {
8397
8397
  var e, n;
8398
- if (this.activeServiceWorker = await ml(), !this.activeServiceWorker)
8398
+ if (this.activeServiceWorker = await fl(), !this.activeServiceWorker)
8399
8399
  return;
8400
8400
  this.sender = new dl(this.activeServiceWorker);
8401
8401
  const r = await this.sender._send(
@@ -8419,7 +8419,7 @@ class Di {
8419
8419
  * @param key - Storage key which changed.
8420
8420
  */
8421
8421
  async notifyServiceWorker(e) {
8422
- if (!(!this.sender || !this.activeServiceWorker || fl() !== this.activeServiceWorker))
8422
+ if (!(!this.sender || !this.activeServiceWorker || ml() !== this.activeServiceWorker))
8423
8423
  try {
8424
8424
  await this.sender._send(
8425
8425
  "keyChanged",
@@ -8436,7 +8436,7 @@ class Di {
8436
8436
  if (!indexedDB)
8437
8437
  return !1;
8438
8438
  const e = await jn();
8439
- return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
8439
+ return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
8440
8440
  } catch {
8441
8441
  }
8442
8442
  return !1;
@@ -8462,7 +8462,7 @@ class Di {
8462
8462
  async _poll() {
8463
8463
  const e = await this._withRetries((s) => {
8464
8464
  const i = cn(s, !1).getAll();
8465
- return new jt(i).toPromise();
8465
+ return new Yt(i).toPromise();
8466
8466
  });
8467
8467
  if (!e)
8468
8468
  return [];
@@ -8484,7 +8484,7 @@ class Di {
8484
8484
  s(n);
8485
8485
  }
8486
8486
  startPolling() {
8487
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), wl);
8487
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
8488
8488
  }
8489
8489
  stopPolling() {
8490
8490
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -8498,7 +8498,7 @@ class Di {
8498
8498
  }
8499
8499
  Di.type = "LOCAL";
8500
8500
  const Bl = Di;
8501
- new Tt(3e4, 6e4);
8501
+ new Gt(3e4, 6e4);
8502
8502
  /**
8503
8503
  * @license
8504
8504
  * Copyright 2021 Google LLC
@@ -8516,7 +8516,7 @@ new Tt(3e4, 6e4);
8516
8516
  * limitations under the License.
8517
8517
  */
8518
8518
  function Dl(t, e) {
8519
- return e ? we(e) : (M(
8519
+ return e ? ve(e) : (M(
8520
8520
  t._popupRedirectResolver,
8521
8521
  t,
8522
8522
  "argument-error"
@@ -8689,7 +8689,7 @@ class Ci {
8689
8689
  * See the License for the specific language governing permissions and
8690
8690
  * limitations under the License.
8691
8691
  */
8692
- const Il = new Tt(2e3, 1e4);
8692
+ const Il = new Gt(2e3, 1e4);
8693
8693
  class _e extends Ci {
8694
8694
  constructor(e, n, r, s, i) {
8695
8695
  super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
@@ -8775,7 +8775,7 @@ _e.currentPopupAction = null;
8775
8775
  * See the License for the specific language governing permissions and
8776
8776
  * limitations under the License.
8777
8777
  */
8778
- const Pl = "pendingRedirect", Ht = /* @__PURE__ */ new Map();
8778
+ const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
8779
8779
  class Ol extends Ci {
8780
8780
  constructor(e, n, r = !1) {
8781
8781
  super(e, [
@@ -8791,7 +8791,7 @@ class Ol extends Ci {
8791
8791
  * just return it.
8792
8792
  */
8793
8793
  async execute() {
8794
- let e = Ht.get(this.auth._key());
8794
+ let e = Qt.get(this.auth._key());
8795
8795
  if (!e) {
8796
8796
  try {
8797
8797
  const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
@@ -8799,9 +8799,9 @@ class Ol extends Ci {
8799
8799
  } catch (n) {
8800
8800
  e = () => Promise.reject(n);
8801
8801
  }
8802
- Ht.set(this.auth._key(), e);
8802
+ Qt.set(this.auth._key(), e);
8803
8803
  }
8804
- return this.bypassAuthState || Ht.set(this.auth._key(), () => Promise.resolve(null)), e();
8804
+ return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
8805
8805
  }
8806
8806
  async onAuthEvent(e) {
8807
8807
  if (e.type === "signInViaRedirect")
@@ -8830,13 +8830,13 @@ async function Tl(t, e) {
8830
8830
  return await r._remove(n), s;
8831
8831
  }
8832
8832
  function Gl(t, e) {
8833
- Ht.set(t._key(), e);
8833
+ Qt.set(t._key(), e);
8834
8834
  }
8835
8835
  function jl(t) {
8836
- return we(t._redirectPersistence);
8836
+ return ve(t._redirectPersistence);
8837
8837
  }
8838
8838
  function Yl(t) {
8839
- return Nt(Pl, t.config.apiKey, t.name);
8839
+ return Ht(Pl, t.config.apiKey, t.name);
8840
8840
  }
8841
8841
  async function Vl(t, e, n = !1) {
8842
8842
  if (pe(t.app))
@@ -8933,7 +8933,7 @@ function kl(t) {
8933
8933
  * limitations under the License.
8934
8934
  */
8935
8935
  async function Rl(t, e = {}) {
8936
- return mt(t, "GET", "/v1/projects", e);
8936
+ return ft(t, "GET", "/v1/projects", e);
8937
8937
  }
8938
8938
  /**
8939
8939
  * @license
@@ -8997,7 +8997,7 @@ function Ql(t) {
8997
8997
  * See the License for the specific language governing permissions and
8998
8998
  * limitations under the License.
8999
8999
  */
9000
- const Xl = new Tt(3e4, 6e4);
9000
+ const Xl = new Gt(3e4, 6e4);
9001
9001
  function Tr() {
9002
9002
  const t = de().___jsl;
9003
9003
  if (t != null && t.H) {
@@ -9040,12 +9040,12 @@ function Sl(t) {
9040
9040
  }, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
9041
9041
  }
9042
9042
  }).catch((e) => {
9043
- throw Qt = null, e;
9043
+ throw Xt = null, e;
9044
9044
  });
9045
9045
  }
9046
- let Qt = null;
9046
+ let Xt = null;
9047
9047
  function Ul(t) {
9048
- return Qt = Qt || Sl(t), Qt;
9048
+ return Xt = Xt || Sl(t), Xt;
9049
9049
  }
9050
9050
  /**
9051
9051
  * @license
@@ -9063,7 +9063,7 @@ function Ul(t) {
9063
9063
  * See the License for the specific language governing permissions and
9064
9064
  * limitations under the License.
9065
9065
  */
9066
- const Wl = new Tt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
9066
+ const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
9067
9067
  style: {
9068
9068
  position: "absolute",
9069
9069
  top: "-100px",
@@ -9089,11 +9089,11 @@ function Jl(t) {
9089
9089
  const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
9090
9090
  apiKey: e.apiKey,
9091
9091
  appName: t.name,
9092
- v: Ot
9092
+ v: Tt
9093
9093
  }, s = Kl.get(t.config.apiHost);
9094
9094
  s && (r.eid = s);
9095
9095
  const i = t._getFrameworks();
9096
- return i.length && (r.fw = i.join(",")), `${n}?${Pt(r).slice(1)}`;
9096
+ return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
9097
9097
  }
9098
9098
  async function _l(t) {
9099
9099
  const e = await Ul(t), n = de().gapi;
@@ -9172,10 +9172,10 @@ function sA(t, e, n, r = eA, s = tA) {
9172
9172
  left: a
9173
9173
  }), A = K().toLowerCase();
9174
9174
  n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
9175
- const f = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
9175
+ const m = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
9176
9176
  if (Ru(A) && c !== "_self")
9177
9177
  return iA(e || "", c), new Gr(null);
9178
- const p = window.open(e || "", c, f);
9178
+ const p = window.open(e || "", c, m);
9179
9179
  M(
9180
9180
  p,
9181
9181
  t,
@@ -9228,24 +9228,24 @@ async function jr(t, e, n, r, s, i) {
9228
9228
  appName: t.name,
9229
9229
  authType: n,
9230
9230
  redirectUrl: r,
9231
- v: Ot,
9231
+ v: Tt,
9232
9232
  eventId: s
9233
9233
  };
9234
- if (e instanceof mi) {
9234
+ if (e instanceof fi) {
9235
9235
  e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "", cc(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
9236
- for (const [f, p] of Object.entries({}))
9237
- a[f] = p;
9236
+ for (const [m, p] of Object.entries({}))
9237
+ a[m] = p;
9238
9238
  }
9239
- if (e instanceof Gt) {
9240
- const f = e.getScopes().filter((p) => p !== "");
9241
- f.length > 0 && (a.scopes = f.join(","));
9239
+ if (e instanceof jt) {
9240
+ const m = e.getScopes().filter((p) => p !== "");
9241
+ m.length > 0 && (a.scopes = m.join(","));
9242
9242
  }
9243
9243
  t.tenantId && (a.tid = t.tenantId);
9244
9244
  const c = a;
9245
- for (const f of Object.keys(c))
9246
- c[f] === void 0 && delete c[f];
9245
+ for (const m of Object.keys(c))
9246
+ c[m] === void 0 && delete c[m];
9247
9247
  const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
9248
- return `${uA(t)}?${Pt(c).slice(1)}${A}`;
9248
+ return `${uA(t)}?${Ot(c).slice(1)}${A}`;
9249
9249
  }
9250
9250
  function uA({ config: t }) {
9251
9251
  return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
@@ -9412,8 +9412,8 @@ function hA(t) {
9412
9412
  return;
9413
9413
  }
9414
9414
  }
9415
- function mA(t) {
9416
- bt(new dt(
9415
+ function fA(t) {
9416
+ vt(new dt(
9417
9417
  "auth",
9418
9418
  (e, { options: n }) => {
9419
9419
  const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
@@ -9439,7 +9439,7 @@ function mA(t) {
9439
9439
  "auth-internal"
9440
9440
  /* _ComponentName.AUTH_INTERNAL */
9441
9441
  ).initialize();
9442
- })), bt(new dt(
9442
+ })), vt(new dt(
9443
9443
  "auth-internal",
9444
9444
  (e) => {
9445
9445
  const n = an(e.getProvider(
@@ -9471,7 +9471,7 @@ function mA(t) {
9471
9471
  * See the License for the specific language governing permissions and
9472
9472
  * limitations under the License.
9473
9473
  */
9474
- const fA = 5 * 60, gA = qs("authIdTokenMaxAge") || fA;
9474
+ const mA = 5 * 60, gA = qs("authIdTokenMaxAge") || mA;
9475
9475
  let xr = null;
9476
9476
  const pA = (t) => async (e) => {
9477
9477
  const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
@@ -9528,7 +9528,7 @@ Uu({
9528
9528
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
9529
9529
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
9530
9530
  });
9531
- mA(
9531
+ fA(
9532
9532
  "Browser"
9533
9533
  /* ClientPlatform.BROWSER */
9534
9534
  );
@@ -9548,7 +9548,7 @@ var un = class {
9548
9548
  }
9549
9549
  onUnsubscribe() {
9550
9550
  }
9551
- }, He, Ge, rt, Xr, wA = (Xr = class extends un {
9551
+ }, He, Ge, rt, Xr, vA = (Xr = class extends un {
9552
9552
  constructor() {
9553
9553
  super();
9554
9554
  G(this, He);
@@ -9589,7 +9589,7 @@ var un = class {
9589
9589
  var e;
9590
9590
  return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
9591
9591
  }
9592
- }, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new wA(), vA = {
9592
+ }, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
9593
9593
  // We need the wrapper function syntax below instead of direct references to
9594
9594
  // global setTimeout etc.
9595
9595
  //
@@ -9613,7 +9613,7 @@ var un = class {
9613
9613
  //
9614
9614
  // We settle for type safety for the TimeoutProvider type, and accept that
9615
9615
  // this class is unsafe internally to allow for extension.
9616
- G(this, oe, vA);
9616
+ G(this, oe, wA);
9617
9617
  G(this, Qe, !1);
9618
9618
  }
9619
9619
  setTimeoutProvider(t) {
@@ -9669,7 +9669,7 @@ function Fr(t, e) {
9669
9669
  if (r) {
9670
9670
  if (e.queryHash !== er(a, e.options))
9671
9671
  return !1;
9672
- } else if (!Dt(e.queryKey, a))
9672
+ } else if (!Ct(e.queryKey, a))
9673
9673
  return !1;
9674
9674
  }
9675
9675
  if (n !== "all") {
@@ -9685,24 +9685,24 @@ function kr(t, e) {
9685
9685
  if (!e.options.mutationKey)
9686
9686
  return !1;
9687
9687
  if (n) {
9688
- if (Bt(e.options.mutationKey) !== Bt(i))
9688
+ if (Dt(e.options.mutationKey) !== Dt(i))
9689
9689
  return !1;
9690
- } else if (!Dt(e.options.mutationKey, i))
9690
+ } else if (!Ct(e.options.mutationKey, i))
9691
9691
  return !1;
9692
9692
  }
9693
9693
  return !(r && e.state.status !== r || s && !s(e));
9694
9694
  }
9695
9695
  function er(t, e) {
9696
- return ((e == null ? void 0 : e.queryKeyHashFn) || Bt)(t);
9696
+ return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
9697
9697
  }
9698
- function Bt(t) {
9698
+ function Dt(t) {
9699
9699
  return JSON.stringify(
9700
9700
  t,
9701
9701
  (e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
9702
9702
  );
9703
9703
  }
9704
- function Dt(t, e) {
9705
- 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;
9704
+ function Ct(t, e) {
9705
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
9706
9706
  }
9707
9707
  var OA = Object.prototype.hasOwnProperty;
9708
9708
  function xn(t, e, n = 0) {
@@ -9713,17 +9713,17 @@ function xn(t, e, n = 0) {
9713
9713
  if (!r && !(Fn(t) && Fn(e))) return e;
9714
9714
  const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
9715
9715
  let A = 0;
9716
- for (let f = 0; f < c; f++) {
9717
- const p = r ? f : a[f], B = t[p], v = e[p];
9718
- if (B === v) {
9719
- l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
9716
+ for (let m = 0; m < c; m++) {
9717
+ const p = r ? m : a[m], B = t[p], w = e[p];
9718
+ if (B === w) {
9719
+ l[p] = B, (r ? m < i : OA.call(t, p)) && A++;
9720
9720
  continue;
9721
9721
  }
9722
- if (B === null || v === null || typeof B != "object" || typeof v != "object") {
9723
- l[p] = v;
9722
+ if (B === null || w === null || typeof B != "object" || typeof w != "object") {
9723
+ l[p] = w;
9724
9724
  continue;
9725
9725
  }
9726
- const O = xn(B, v, n + 1);
9726
+ const O = xn(B, w, n + 1);
9727
9727
  l[p] = O, O === B && A++;
9728
9728
  }
9729
9729
  return i === c && A === i ? t : l;
@@ -9783,11 +9783,11 @@ function YA(t, e, n = 0) {
9783
9783
  const r = [e, ...t];
9784
9784
  return n && r.length > n ? r.slice(0, -1) : r;
9785
9785
  }
9786
- var _t = /* @__PURE__ */ Symbol();
9786
+ var $t = /* @__PURE__ */ Symbol();
9787
9787
  function Ii(t, e) {
9788
- return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
9788
+ return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
9789
9789
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
9790
- ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9790
+ ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9791
9791
  }
9792
9792
  function hd(t, e) {
9793
9793
  return typeof t == "function" ? t(...e) : !!t;
@@ -9932,12 +9932,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
9932
9932
  isOnline() {
9933
9933
  return h(this, st);
9934
9934
  }
9935
- }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new RA();
9935
+ }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
9936
9936
  function qA(t) {
9937
9937
  return Math.min(1e3 * 2 ** t, 3e4);
9938
9938
  }
9939
9939
  function Oi(t) {
9940
- return (t ?? "online") === "online" ? $t.isOnline() : !0;
9940
+ return (t ?? "online") === "online" ? en.isOnline() : !0;
9941
9941
  }
9942
9942
  var kn = class extends Error {
9943
9943
  constructor(t) {
@@ -9956,11 +9956,11 @@ function Ti(t) {
9956
9956
  e = !0;
9957
9957
  }, l = () => {
9958
9958
  e = !1;
9959
- }, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9959
+ }, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), m = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9960
9960
  i() || (r == null || r(), s.resolve(I));
9961
9961
  }, B = (I) => {
9962
9962
  i() || (r == null || r(), s.reject(I));
9963
- }, v = () => new Promise((I) => {
9963
+ }, w = () => new Promise((I) => {
9964
9964
  var V;
9965
9965
  r = (R) => {
9966
9966
  (i() || A()) && I(R);
@@ -9982,12 +9982,12 @@ function Ti(t) {
9982
9982
  var U;
9983
9983
  if (i())
9984
9984
  return;
9985
- const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, w = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
9985
+ const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
9986
9986
  if (e || !H) {
9987
9987
  B(R);
9988
9988
  return;
9989
9989
  }
9990
- n++, (U = t.onFail) == null || U.call(t, n, R), TA(w).then(() => A() ? void 0 : v()).then(() => {
9990
+ n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
9991
9991
  e ? B(R) : O();
9992
9992
  });
9993
9993
  });
@@ -9999,8 +9999,8 @@ function Ti(t) {
9999
9999
  continue: () => (r == null || r(), s),
10000
10000
  cancelRetry: c,
10001
10001
  continueRetry: l,
10002
- canStart: f,
10003
- start: () => (f() ? O() : v().then(O), s)
10002
+ canStart: m,
10003
+ start: () => (m() ? O() : w().then(O), s)
10004
10004
  };
10005
10005
  }
10006
10006
  var Xe, Wr, Gi = (Wr = class {
@@ -10028,8 +10028,8 @@ var Xe, Wr, Gi = (Wr = class {
10028
10028
  function NA(t) {
10029
10029
  return {
10030
10030
  onFetch: (e, n) => {
10031
- var f, p, B, v, O;
10032
- 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) || [];
10031
+ var m, p, B, w, O;
10032
+ 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 = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
10033
10033
  let c = { pages: [], pageParams: [] }, l = 0;
10034
10034
  const A = async () => {
10035
10035
  let I = !1;
@@ -10039,39 +10039,39 @@ function NA(t) {
10039
10039
  () => e.signal,
10040
10040
  () => I = !0
10041
10041
  );
10042
- }, R = Ii(e.options, e.fetchOptions), Q = async (Y, w, H) => {
10042
+ }, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
10043
10043
  if (I)
10044
10044
  return Promise.reject(e.signal.reason);
10045
- if (w == null && Y.pages.length)
10045
+ if (v == null && Y.pages.length)
10046
10046
  return Promise.resolve(Y);
10047
10047
  const ee = (() => {
10048
10048
  const g = {
10049
10049
  client: e.client,
10050
10050
  queryKey: e.queryKey,
10051
- pageParam: w,
10051
+ pageParam: v,
10052
10052
  direction: H ? "backward" : "forward",
10053
10053
  meta: e.options.meta
10054
10054
  };
10055
10055
  return V(g), g;
10056
- })(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
10056
+ })(), q = await R(ee), { maxPages: u } = e.options, f = H ? YA : jA;
10057
10057
  return {
10058
- pages: m(Y.pages, q, u),
10059
- pageParams: m(Y.pageParams, w, u)
10058
+ pages: f(Y.pages, q, u),
10059
+ pageParams: f(Y.pageParams, v, u)
10060
10060
  };
10061
10061
  };
10062
10062
  if (s && i.length) {
10063
- const Y = s === "backward", w = Y ? HA : Nr, H = {
10063
+ const Y = s === "backward", v = Y ? HA : Nr, H = {
10064
10064
  pages: i,
10065
10065
  pageParams: a
10066
- }, U = w(r, H);
10066
+ }, U = v(r, H);
10067
10067
  c = await Q(H, U, Y);
10068
10068
  } else {
10069
10069
  const Y = t ?? i.length;
10070
10070
  do {
10071
- const w = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
10072
- if (l > 0 && w == null)
10071
+ const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
10072
+ if (l > 0 && v == null)
10073
10073
  break;
10074
- c = await Q(c, w), l++;
10074
+ c = await Q(c, v), l++;
10075
10075
  } while (l < Y);
10076
10076
  }
10077
10077
  return c;
@@ -10106,7 +10106,7 @@ function HA(t, { pages: e, pageParams: n }) {
10106
10106
  var r;
10107
10107
  return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
10108
10108
  }
10109
- var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10109
+ var at, Se, ot, re, Ue, S, Et, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
10110
10110
  constructor(e) {
10111
10111
  super();
10112
10112
  G(this, ne);
@@ -10116,9 +10116,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10116
10116
  G(this, re);
10117
10117
  G(this, Ue);
10118
10118
  G(this, S);
10119
- G(this, Ct);
10119
+ G(this, Et);
10120
10120
  G(this, We);
10121
- D(this, We, !1), D(this, Ct, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
10121
+ D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
10122
10122
  }
10123
10123
  get meta() {
10124
10124
  return this.options.meta;
@@ -10131,7 +10131,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10131
10131
  return (e = h(this, S)) == null ? void 0 : e.promise;
10132
10132
  }
10133
10133
  setOptions(e) {
10134
- if (this.options = { ...h(this, Ct), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
10134
+ if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
10135
10135
  const n = Qr(this.options);
10136
10136
  n.data !== void 0 && (this.setState(
10137
10137
  Hr(n.data, n.dataUpdatedAt)
@@ -10143,7 +10143,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10143
10143
  }
10144
10144
  setData(e, n) {
10145
10145
  const r = GA(this.state.data, e, this.options);
10146
- return z(this, ne, me).call(this, {
10146
+ return z(this, ne, fe).call(this, {
10147
10147
  data: r,
10148
10148
  type: "success",
10149
10149
  dataUpdatedAt: n == null ? void 0 : n.updatedAt,
@@ -10151,7 +10151,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10151
10151
  }), r;
10152
10152
  }
10153
10153
  setState(e) {
10154
- z(this, ne, me).call(this, { type: "setState", state: e });
10154
+ z(this, ne, fe).call(this, { type: "setState", state: e });
10155
10155
  }
10156
10156
  cancel(e) {
10157
10157
  var r, s;
@@ -10173,7 +10173,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10173
10173
  );
10174
10174
  }
10175
10175
  isDisabled() {
10176
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
10176
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
10177
10177
  }
10178
10178
  isFetched() {
10179
10179
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
@@ -10211,10 +10211,10 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10211
10211
  return this.observers.length;
10212
10212
  }
10213
10213
  invalidate() {
10214
- this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
10214
+ this.state.isInvalidated || z(this, ne, fe).call(this, { type: "invalidate" });
10215
10215
  }
10216
10216
  async fetch(e, n) {
10217
- var A, f, p, B, v, O, I, V, R, Q, Y;
10217
+ var A, m, p, B, w, O, I, V, R, Q, Y;
10218
10218
  if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
10219
10219
  // re-start the fetch; there is a chance that the query is still in a
10220
10220
  // pending state when that happens
@@ -10225,19 +10225,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10225
10225
  return h(this, S).continueRetry(), h(this, S).promise;
10226
10226
  }
10227
10227
  if (e && this.setOptions(e), !this.options.queryFn) {
10228
- const w = this.observers.find((H) => H.options.queryFn);
10229
- w && this.setOptions(w.options);
10228
+ const v = this.observers.find((H) => H.options.queryFn);
10229
+ v && this.setOptions(v.options);
10230
10230
  }
10231
10231
  process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
10232
10232
  "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
10233
10233
  ));
10234
- const r = new AbortController(), s = (w) => {
10235
- Object.defineProperty(w, "signal", {
10234
+ const r = new AbortController(), s = (v) => {
10235
+ Object.defineProperty(v, "signal", {
10236
10236
  enumerable: !0,
10237
10237
  get: () => (D(this, We, !0), r.signal)
10238
10238
  });
10239
10239
  }, i = () => {
10240
- const w = Ii(this.options, n), U = (() => {
10240
+ const v = Ii(this.options, n), U = (() => {
10241
10241
  const ee = {
10242
10242
  client: h(this, Ue),
10243
10243
  queryKey: this.queryKey,
@@ -10246,12 +10246,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10246
10246
  return s(ee), ee;
10247
10247
  })();
10248
10248
  return D(this, We, !1), this.options.persister ? this.options.persister(
10249
- w,
10249
+ v,
10250
10250
  U,
10251
10251
  this
10252
- ) : w(U);
10252
+ ) : v(U);
10253
10253
  }, c = (() => {
10254
- const w = {
10254
+ const v = {
10255
10255
  fetchOptions: n,
10256
10256
  options: this.options,
10257
10257
  queryKey: this.queryKey,
@@ -10259,27 +10259,27 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10259
10259
  state: this.state,
10260
10260
  fetchFn: i
10261
10261
  };
10262
- return s(w), w;
10262
+ return s(v), v;
10263
10263
  })(), l = h(this, at) === "infinite" ? NA(
10264
10264
  this.options.pages
10265
10265
  ) : this.options.behavior;
10266
- 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({
10266
+ 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({
10267
10267
  initialPromise: n == null ? void 0 : n.initialPromise,
10268
10268
  fn: c.fetchFn,
10269
- onCancel: (w) => {
10270
- w instanceof kn && w.revert && this.setState({
10269
+ onCancel: (v) => {
10270
+ v instanceof kn && v.revert && this.setState({
10271
10271
  ...h(this, ot),
10272
10272
  fetchStatus: "idle"
10273
10273
  }), r.abort();
10274
10274
  },
10275
- onFail: (w, H) => {
10276
- z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
10275
+ onFail: (v, H) => {
10276
+ z(this, ne, fe).call(this, { type: "failed", failureCount: v, error: H });
10277
10277
  },
10278
10278
  onPause: () => {
10279
- z(this, ne, me).call(this, { type: "pause" });
10279
+ z(this, ne, fe).call(this, { type: "pause" });
10280
10280
  },
10281
10281
  onContinue: () => {
10282
- z(this, ne, me).call(this, { type: "continue" });
10282
+ z(this, ne, fe).call(this, { type: "continue" });
10283
10283
  },
10284
10284
  retry: c.options.retry,
10285
10285
  retryDelay: c.options.retryDelay,
@@ -10287,47 +10287,47 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10287
10287
  canRun: () => !0
10288
10288
  }));
10289
10289
  try {
10290
- const w = await h(this, S).start();
10291
- if (w === void 0)
10290
+ const v = await h(this, S).start();
10291
+ if (v === void 0)
10292
10292
  throw process.env.NODE_ENV !== "production" && console.error(
10293
10293
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
10294
10294
  ), new Error(`${this.queryHash} data is undefined`);
10295
- return this.setData(w), (v = (B = h(this, re).config).onSuccess) == null || v.call(B, w, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
10295
+ return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
10296
10296
  O,
10297
- w,
10297
+ v,
10298
10298
  this.state.error,
10299
10299
  this
10300
- ), w;
10301
- } catch (w) {
10302
- if (w instanceof kn) {
10303
- if (w.silent)
10300
+ ), v;
10301
+ } catch (v) {
10302
+ if (v instanceof kn) {
10303
+ if (v.silent)
10304
10304
  return h(this, S).promise;
10305
- if (w.revert) {
10305
+ if (v.revert) {
10306
10306
  if (this.state.data === void 0)
10307
- throw w;
10307
+ throw v;
10308
10308
  return this.state.data;
10309
10309
  }
10310
10310
  }
10311
- throw z(this, ne, me).call(this, {
10311
+ throw z(this, ne, fe).call(this, {
10312
10312
  type: "error",
10313
- error: w
10313
+ error: v
10314
10314
  }), (R = (V = h(this, re).config).onError) == null || R.call(
10315
10315
  V,
10316
- w,
10316
+ v,
10317
10317
  this
10318
10318
  ), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
10319
10319
  Q,
10320
10320
  this.state.data,
10321
- w,
10321
+ v,
10322
10322
  this
10323
- ), w;
10323
+ ), v;
10324
10324
  } finally {
10325
10325
  this.scheduleGc();
10326
10326
  }
10327
10327
  }
10328
- }, 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() {
10328
+ }, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
10329
10329
  return this.state.fetchStatus === "paused" && this.state.status === "pending";
10330
- }, me = function(e) {
10330
+ }, fe = function(e) {
10331
10331
  const n = (r) => {
10332
10332
  switch (e.type) {
10333
10333
  case "failed":
@@ -10434,15 +10434,15 @@ function Qr(t) {
10434
10434
  fetchStatus: "idle"
10435
10435
  };
10436
10436
  }
10437
- var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10437
+ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10438
10438
  constructor(e) {
10439
10439
  super();
10440
10440
  G(this, ue);
10441
- G(this, Et);
10441
+ G(this, Mt);
10442
10442
  G(this, ce);
10443
10443
  G(this, Z);
10444
10444
  G(this, ze);
10445
- D(this, Et, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
10445
+ D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
10446
10446
  }
10447
10447
  setOptions(e) {
10448
10448
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -10473,11 +10473,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10473
10473
  this.execute(this.state.variables);
10474
10474
  }
10475
10475
  async execute(e) {
10476
- var a, c, l, A, f, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
10476
+ var a, c, l, A, m, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
10477
10477
  const n = () => {
10478
10478
  z(this, ue, Me).call(this, { type: "continue" });
10479
10479
  }, r = {
10480
- client: h(this, Et),
10480
+ client: h(this, Mt),
10481
10481
  meta: this.options.meta,
10482
10482
  mutationKey: this.options.mutationKey
10483
10483
  };
@@ -10525,13 +10525,13 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10525
10525
  this.state.context,
10526
10526
  this,
10527
10527
  r
10528
- )), await ((p = (f = this.options).onSuccess) == null ? void 0 : p.call(
10529
- f,
10528
+ )), await ((p = (m = this.options).onSuccess) == null ? void 0 : p.call(
10529
+ m,
10530
10530
  q,
10531
10531
  e,
10532
10532
  this.state.context,
10533
10533
  r
10534
- )), await ((v = (B = h(this, Z).config).onSettled) == null ? void 0 : v.call(
10534
+ )), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
10535
10535
  B,
10536
10536
  q,
10537
10537
  null,
@@ -10572,8 +10572,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10572
10572
  Promise.reject(u);
10573
10573
  }
10574
10574
  try {
10575
- await ((H = (w = h(this, Z).config).onSettled) == null ? void 0 : H.call(
10576
- w,
10575
+ await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
10576
+ v,
10577
10577
  void 0,
10578
10578
  q,
10579
10579
  this.state.variables,
@@ -10601,7 +10601,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10601
10601
  h(this, Z).runNext(this);
10602
10602
  }
10603
10603
  }
10604
- }, Et = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
10604
+ }, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
10605
10605
  const n = (r) => {
10606
10606
  switch (e.type) {
10607
10607
  case "failed":
@@ -10678,27 +10678,27 @@ function UA() {
10678
10678
  submittedAt: 0
10679
10679
  };
10680
10680
  }
10681
- var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10681
+ var me, ae, It, Lr, Yi = (Lr = class extends un {
10682
10682
  constructor(n = {}) {
10683
10683
  super();
10684
- G(this, fe);
10684
+ G(this, me);
10685
10685
  G(this, ae);
10686
- G(this, Mt);
10687
- this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
10686
+ G(this, It);
10687
+ this.config = n, D(this, me, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
10688
10688
  }
10689
10689
  build(n, r, s) {
10690
10690
  const i = new SA({
10691
10691
  client: n,
10692
10692
  mutationCache: this,
10693
- mutationId: ++Vt(this, Mt)._,
10693
+ mutationId: ++xt(this, It)._,
10694
10694
  options: n.defaultMutationOptions(r),
10695
10695
  state: s
10696
10696
  });
10697
10697
  return this.add(i), i;
10698
10698
  }
10699
10699
  add(n) {
10700
- h(this, fe).add(n);
10701
- const r = kt(n);
10700
+ h(this, me).add(n);
10701
+ const r = Rt(n);
10702
10702
  if (typeof r == "string") {
10703
10703
  const s = h(this, ae).get(r);
10704
10704
  s ? s.push(n) : h(this, ae).set(r, [n]);
@@ -10706,8 +10706,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10706
10706
  this.notify({ type: "added", mutation: n });
10707
10707
  }
10708
10708
  remove(n) {
10709
- if (h(this, fe).delete(n)) {
10710
- const r = kt(n);
10709
+ if (h(this, me).delete(n)) {
10710
+ const r = Rt(n);
10711
10711
  if (typeof r == "string") {
10712
10712
  const s = h(this, ae).get(r);
10713
10713
  if (s)
@@ -10720,7 +10720,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10720
10720
  this.notify({ type: "removed", mutation: n });
10721
10721
  }
10722
10722
  canRun(n) {
10723
- const r = kt(n);
10723
+ const r = Rt(n);
10724
10724
  if (typeof r == "string") {
10725
10725
  const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
10726
10726
  (a) => a.state.status === "pending"
@@ -10731,7 +10731,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10731
10731
  }
10732
10732
  runNext(n) {
10733
10733
  var s;
10734
- const r = kt(n);
10734
+ const r = Rt(n);
10735
10735
  if (typeof r == "string") {
10736
10736
  const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
10737
10737
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
@@ -10740,13 +10740,13 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10740
10740
  }
10741
10741
  clear() {
10742
10742
  L.batch(() => {
10743
- h(this, fe).forEach((n) => {
10743
+ h(this, me).forEach((n) => {
10744
10744
  this.notify({ type: "removed", mutation: n });
10745
- }), h(this, fe).clear(), h(this, ae).clear();
10745
+ }), h(this, me).clear(), h(this, ae).clear();
10746
10746
  });
10747
10747
  }
10748
10748
  getAll() {
10749
- return Array.from(h(this, fe));
10749
+ return Array.from(h(this, me));
10750
10750
  }
10751
10751
  find(n) {
10752
10752
  const r = { exact: !0, ...n };
@@ -10772,8 +10772,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10772
10772
  )
10773
10773
  );
10774
10774
  }
10775
- }, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
10776
- function kt(t) {
10775
+ }, me = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
10776
+ function Rt(t) {
10777
10777
  var e;
10778
10778
  return (e = t.options.scope) == null ? void 0 : e.id;
10779
10779
  }
@@ -10862,15 +10862,15 @@ var le, Kr, Vi = (Kr = class extends un {
10862
10862
  D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
10863
10863
  }
10864
10864
  mount() {
10865
- Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10865
+ xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10866
10866
  e && (await this.resumePausedMutations(), h(this, N).onFocus());
10867
- })), D(this, At, $t.subscribe(async (e) => {
10867
+ })), D(this, At, en.subscribe(async (e) => {
10868
10868
  e && (await this.resumePausedMutations(), h(this, N).onOnline());
10869
10869
  })));
10870
10870
  }
10871
10871
  unmount() {
10872
10872
  var e, n;
10873
- Vt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
10873
+ xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
10874
10874
  }
10875
10875
  isFetching(e) {
10876
10876
  return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -10992,7 +10992,7 @@ var le, Kr, Vi = (Kr = class extends un {
10992
10992
  return e._type = "infinite", this.ensureQueryData(e);
10993
10993
  }
10994
10994
  resumePausedMutations() {
10995
- return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10995
+ return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10996
10996
  }
10997
10997
  getQueryCache() {
10998
10998
  return h(this, N);
@@ -11007,7 +11007,7 @@ var le, Kr, Vi = (Kr = class extends un {
11007
11007
  D(this, Ve, e);
11008
11008
  }
11009
11009
  setQueryDefaults(e, n) {
11010
- h(this, ct).set(Bt(e), {
11010
+ h(this, ct).set(Dt(e), {
11011
11011
  queryKey: e,
11012
11012
  defaultOptions: n
11013
11013
  });
@@ -11015,11 +11015,11 @@ var le, Kr, Vi = (Kr = class extends un {
11015
11015
  getQueryDefaults(e) {
11016
11016
  const n = [...h(this, ct).values()], r = {};
11017
11017
  return n.forEach((s) => {
11018
- Dt(e, s.queryKey) && Object.assign(r, s.defaultOptions);
11018
+ Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
11019
11019
  }), r;
11020
11020
  }
11021
11021
  setMutationDefaults(e, n) {
11022
- h(this, ut).set(Bt(e), {
11022
+ h(this, ut).set(Dt(e), {
11023
11023
  mutationKey: e,
11024
11024
  defaultOptions: n
11025
11025
  });
@@ -11027,7 +11027,7 @@ var le, Kr, Vi = (Kr = class extends un {
11027
11027
  getMutationDefaults(e) {
11028
11028
  const n = [...h(this, ut).values()], r = {};
11029
11029
  return n.forEach((s) => {
11030
- Dt(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
11030
+ Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
11031
11031
  }), r;
11032
11032
  }
11033
11033
  defaultQueryOptions(e) {
@@ -11042,7 +11042,7 @@ var le, Kr, Vi = (Kr = class extends un {
11042
11042
  return n.queryHash || (n.queryHash = er(
11043
11043
  n.queryKey,
11044
11044
  n
11045
- )), 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;
11045
+ )), 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;
11046
11046
  }
11047
11047
  defaultMutationOptions(e) {
11048
11048
  return e != null && e._defaulted ? e : {
@@ -11127,7 +11127,7 @@ var KA = class extends Vi {
11127
11127
  queryCache: t.queryCache || new KA(),
11128
11128
  mutationCache: t.mutationCache || new JA()
11129
11129
  };
11130
- super(e), this.isRestoring = Xt(!1);
11130
+ super(e), this.isRestoring = St(!1);
11131
11131
  }
11132
11132
  isFetching(t = {}) {
11133
11133
  return super.isFetching(T(t));
@@ -11226,7 +11226,7 @@ var KA = class extends Vi {
11226
11226
  };
11227
11227
  const $A = Ki({
11228
11228
  history: Ji(),
11229
- routes: [...rn, ...pt].map((t) => ({
11229
+ routes: [...bt, ...pt].map((t) => ({
11230
11230
  ...t,
11231
11231
  component: os(
11232
11232
  _r({
@@ -11237,10 +11237,10 @@ const $A = Ki({
11237
11237
  });
11238
11238
  $A.beforeEach((t) => {
11239
11239
  var r;
11240
- const { currentCountry: e } = nn(), n = e.value;
11240
+ const { currentCountry: e } = rn(), n = e.value;
11241
11241
  if (!n) return !0;
11242
11242
  if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
11243
- const s = rn.find(
11243
+ const s = bt.find(
11244
11244
  (i) => {
11245
11245
  var a;
11246
11246
  return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
@@ -11250,32 +11250,32 @@ $A.beforeEach((t) => {
11250
11250
  }
11251
11251
  return !0;
11252
11252
  });
11253
- const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ en({
11253
+ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
11254
11254
  __name: "AppSidebar",
11255
11255
  setup(t) {
11256
- const e = nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
11256
+ const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
11257
11257
  $r(n.currentRoute, () => {
11258
11258
  let A = n.currentRoute.value.name;
11259
11259
  n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
11260
11260
  });
11261
- const i = rn.map((A) => {
11262
- var B, v;
11263
- if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
11261
+ const i = bt.map((A) => {
11262
+ var B, w;
11263
+ if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
11264
11264
  return;
11265
- const f = A.meta.sidebarDisplay, p = {
11266
- label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
11265
+ const m = A.meta.sidebarDisplay, p = {
11266
+ label: m.startsWith("i18n:") ? r(m.replaceAll("i18n:", "")) : m,
11267
11267
  value: A.name,
11268
11268
  action: () => {
11269
11269
  if (n.currentRoute.value.name !== A.name)
11270
11270
  return n.push({ name: A.name });
11271
11271
  }
11272
11272
  };
11273
- return A.meta.sidebarNew && (p.badge = () => wn(ea.FmPill, { label: "New" })), p;
11273
+ return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
11274
11274
  }).filter((A) => !!A);
11275
- function a(A, f) {
11275
+ function a(A, m) {
11276
11276
  return A.map((p) => {
11277
- var B, v;
11278
- return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== f ? [] : [
11277
+ var B, w;
11278
+ return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], m) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== m ? [] : [
11279
11279
  {
11280
11280
  label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
11281
11281
  value: p.name,
@@ -11288,8 +11288,8 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11288
11288
  }).flat().filter((p) => !!p);
11289
11289
  }
11290
11290
  const c = pt.map((A) => {
11291
- var f;
11292
- if ((f = A.meta) != null && f.sidebarDisplay && !A.meta.section)
11291
+ var m;
11292
+ if ((m = A.meta) != null && m.sidebarDisplay && !A.meta.section)
11293
11293
  return {
11294
11294
  label: A.meta.sidebarDisplay.startsWith("i18n:") ? r(A.meta.sidebarDisplay.replaceAll("i18n:", "")) : A.meta.sidebarDisplay,
11295
11295
  value: A.name,
@@ -11300,7 +11300,16 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11300
11300
  };
11301
11301
  }).filter((A) => !!A), l = Nn(() => {
11302
11302
  const A = [...i];
11303
- return ed(e.sessionUser.value) && (A.push({
11303
+ return A.push({
11304
+ label: "",
11305
+ value: "divider",
11306
+ disabled: !0
11307
+ }), A.push({
11308
+ label: r("financing.title"),
11309
+ icon: "credit_score",
11310
+ value: "divider",
11311
+ disabled: !0
11312
+ }), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
11304
11313
  label: "",
11305
11314
  value: "divider",
11306
11315
  disabled: !0
@@ -11329,22 +11338,22 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11329
11338
  disabled: !0
11330
11339
  }), A.push(...c)), A;
11331
11340
  });
11332
- return (A, f) => {
11341
+ return (A, m) => {
11333
11342
  const p = es("FmCollapsibleTabs");
11334
- return tn(), Hn(p, {
11343
+ return nn(), Hn(p, {
11335
11344
  modelValue: s.value,
11336
- "onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
11345
+ "onUpdate:modelValue": m[0] || (m[0] = (B) => s.value = B),
11337
11346
  items: l.value,
11338
11347
  class: "py-16 px-8 w-[240px]"
11339
11348
  }, null, 8, ["modelValue", "items"]);
11340
11349
  };
11341
11350
  }
11342
11351
  });
11343
- var nd = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
11344
- const bd = /* @__PURE__ */ en({
11352
+ var nd = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
11353
+ const bd = /* @__PURE__ */ tn({
11345
11354
  __name: "App",
11346
11355
  setup(t) {
11347
- const { state: e } = Qo(), n = nn(), r = ts(), s = new _A();
11356
+ const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
11348
11357
  Wi(xi, s);
11349
11358
  const i = Ss(nd.firebase);
11350
11359
  async function a() {
@@ -11361,12 +11370,12 @@ const bd = /* @__PURE__ */ en({
11361
11370
  s.unmount();
11362
11371
  }), (c, l) => {
11363
11372
  const A = es("RouterView");
11364
- return tn(), Hn(A, {
11373
+ return nn(), Hn(A, {
11365
11374
  key: ge(r).path
11366
11375
  });
11367
11376
  };
11368
11377
  }
11369
- }), wd = () => {
11378
+ }), vd = () => {
11370
11379
  const t = [
11371
11380
  { "en-US": na, "th-TH": sa, "zh-CN": aa },
11372
11381
  qi
@@ -11383,7 +11392,7 @@ const bd = /* @__PURE__ */ en({
11383
11392
  },
11384
11393
  {}
11385
11394
  );
11386
- }, vd = [...pt, ...rn].map((t) => ({
11395
+ }, wd = [...pt, ...bt].map((t) => ({
11387
11396
  ...t,
11388
11397
  component: os(
11389
11398
  _r({ loader: t.component })
@@ -11391,7 +11400,7 @@ const bd = /* @__PURE__ */ en({
11391
11400
  }));
11392
11401
  export {
11393
11402
  xa as A,
11394
- vd as B,
11403
+ wd as B,
11395
11404
  un as S,
11396
11405
  yr as _,
11397
11406
  Vn as a,
@@ -11419,5 +11428,5 @@ export {
11419
11428
  ua as w,
11420
11429
  ld as x,
11421
11430
  bd as y,
11422
- wd as z
11431
+ vd as z
11423
11432
  };