@feedmepos/mf-payment 1.5.70-dev → 1.5.71-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-CL4sf6Ci.js → Actions.vue_vue_type_script_setup_true_lang-C2stiK29.js} +1 -1
- package/dist/{Chargeback-D99Rk7ns.js → Chargeback-BjCClrZV.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DwTcZC8y.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BF52Ma-4.js} +1 -1
- package/dist/{OnboardForm-DFc9kzTX.js → OnboardForm-BMBvyEvu.js} +5 -5
- package/dist/{OnboardForm-B6631kJ8.js → OnboardForm-C1ZJKDXD.js} +5 -5
- package/dist/{OnboardSubmission-DJSgHzBF.js → OnboardSubmission-jSsHufSg.js} +2 -2
- package/dist/{OnboardSubmission-DEvsCVwA.js → OnboardSubmission-k3_x1Shy.js} +5 -5
- package/dist/{PayoutAccount-PPzE4LWE.js → PayoutAccount-CsR9_qUx.js} +5 -5
- package/dist/{PayoutAccount-wZZTknUD.js → PayoutAccount-DlV4rRzo.js} +4 -4
- package/dist/{PayoutAccountSetting-BGa1y1er.js → PayoutAccountSetting-BW6eS4Dg.js} +4 -4
- package/dist/{Restaurant-C3P4YdWX.js → Restaurant-AHLA5_Dr.js} +4 -4
- package/dist/{RestaurantSetting-Cs4I1PzX.js → RestaurantSetting-C5NqoLwe.js} +3 -3
- package/dist/{Settlement-DGPcNS_k.js → Settlement-CZfN7ra0.js} +4 -4
- package/dist/{Settlement-DabgWRUJ.js → Settlement-D0eKkwEv.js} +3 -3
- package/dist/{SettlementTransactions-2PbUuCSU.js → SettlementTransactions-Sqz_p1n0.js} +4 -4
- package/dist/{SettlementTransactions-BZ7kZw36.js → SettlementTransactions-Xr2Wql6O.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DCSe_kJG.js → Status.vue_vue_type_script_setup_true_lang-JbaAUFTL.js} +1 -1
- package/dist/{Terminal-jW0WzfpL.js → Terminal-B17QgypB.js} +5 -5
- package/dist/{TerminalSetting-Dyi_Cdyw.js → TerminalSetting-BJ7FxfO0.js} +4 -4
- package/dist/{Transaction-vOnhssXV.js → Transaction-C9ICgUIh.js} +5 -5
- package/dist/{Transaction-DLQppLc4.js → Transaction-uORSgDkc.js} +9 -9
- package/dist/{TransactionOld-oHIBE2c0.js → TransactionOld-Cp2Ekbkz.js} +6 -6
- package/dist/{app-C1cYEYMp.js → app-PWkZtVm8.js} +739 -736
- package/dist/app.js +1 -1
- package/dist/{assets-Bkv1IHBB.js → assets-Dp4VQ9tU.js} +1 -1
- package/dist/{grafana-DcXGdkXI.js → grafana-GNemwie7.js} +1 -1
- package/dist/{index-DpTjoakF.js → index-501ITqhf.js} +1 -1
- package/dist/{index-Cfwjz1b8.js → index-ABnhO8IP.js} +1 -1
- package/dist/{index-Bh3eWzGK.js → index-BAcVaFtX.js} +1 -1
- package/dist/{index-BIw0Q1_k.js → index-BdWlvO95.js} +1 -1
- package/dist/{index-LWSxo2CQ.js → index-Byl-Ry7x.js} +1 -1
- package/dist/{index-Dsilh7zk.js → index-CilQki4f.js} +1 -1
- package/dist/{index-BTgjEMwB.js → index-CmBcHH7Q.js} +2 -2
- package/dist/{index-BiugCWFI.js → index-CpZ3sFhd.js} +1 -1
- package/dist/{index-CN_LyS6t.js → index-DYpLfNDf.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DALQYYmF.js → index.vue_vue_type_script_setup_true_lang-C8T_waUk.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DmloejU6.js → payout-account-PIhlNLY6.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FmApp as
|
|
2
|
-
import { createRouter as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { components as
|
|
7
|
-
const
|
|
1
|
+
import { FmApp as Sr, routes as Er, i18nMessages as Rr } from "@feedmepos/mf-financing";
|
|
2
|
+
import { createRouter as Ar, createWebHistory as Cr, useRouter as Pr, useRoute as Or } from "vue-router";
|
|
3
|
+
import { computed as gn, defineAsyncComponent as Dr, watch as qe, defineComponent as yn, ref as Nr, resolveComponent as bn, openBlock as vn, createBlock as _n, h as Mr, onMounted as Lr, onBeforeMount as Br, unref as jr } from "vue";
|
|
4
|
+
import { withPermission as Ur, useCoreStore as Et, useI18n as xr } from "@feedmepos/mf-common";
|
|
5
|
+
import { defineStore as $r } from "pinia";
|
|
6
|
+
import { components as Fr } from "@feedmepos/ui-library";
|
|
7
|
+
const Hr = {
|
|
8
8
|
components: {
|
|
9
9
|
select: "Select filter entity",
|
|
10
10
|
select_payout_account: "Select payout account",
|
|
@@ -408,9 +408,9 @@ const Fr = {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
}, Hr = {
|
|
412
|
-
payment: Fr
|
|
413
411
|
}, qr = {
|
|
412
|
+
payment: Hr
|
|
413
|
+
}, Vr = {
|
|
414
414
|
components: {
|
|
415
415
|
select: "เลือกตัวกรอง",
|
|
416
416
|
restaurant: "ร้านอาหาร",
|
|
@@ -811,9 +811,9 @@ const Fr = {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
}, Vr = {
|
|
815
|
-
payment: qr
|
|
816
814
|
}, zr = {
|
|
815
|
+
payment: Vr
|
|
816
|
+
}, Wr = {
|
|
817
817
|
components: {
|
|
818
818
|
select: "选择筛选对象",
|
|
819
819
|
restaurant: "餐厅",
|
|
@@ -1214,14 +1214,14 @@ const Fr = {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
},
|
|
1218
|
-
payment:
|
|
1217
|
+
}, Gr = {
|
|
1218
|
+
payment: Wr
|
|
1219
1219
|
};
|
|
1220
|
-
var
|
|
1221
|
-
function
|
|
1220
|
+
var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1221
|
+
function rc(t) {
|
|
1222
1222
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function ic(t) {
|
|
1225
1225
|
if (t.__esModule) return t;
|
|
1226
1226
|
var e = t.default;
|
|
1227
1227
|
if (typeof e == "function") {
|
|
@@ -1240,11 +1240,11 @@ function rc(t) {
|
|
|
1240
1240
|
});
|
|
1241
1241
|
}), n;
|
|
1242
1242
|
}
|
|
1243
|
-
var
|
|
1243
|
+
var Jr = { exports: {} };
|
|
1244
1244
|
(function(t, e) {
|
|
1245
1245
|
(function(n, r) {
|
|
1246
1246
|
t.exports = r();
|
|
1247
|
-
})(
|
|
1247
|
+
})(Kr, function() {
|
|
1248
1248
|
return function(n) {
|
|
1249
1249
|
var r = {};
|
|
1250
1250
|
function i(s) {
|
|
@@ -1521,13 +1521,13 @@ var Kr = { exports: {} };
|
|
|
1521
1521
|
}
|
|
1522
1522
|
function De(o, d) {
|
|
1523
1523
|
var p = o.keyPath, m = o.child, b = o.query, _ = [];
|
|
1524
|
-
if (function
|
|
1524
|
+
if (function xt(W, ve, _e, Tr, st) {
|
|
1525
1525
|
if (_e === ve.length || W == null)
|
|
1526
|
-
return void
|
|
1527
|
-
var
|
|
1528
|
-
if (l(W) && isNaN(Number(
|
|
1529
|
-
for (var
|
|
1530
|
-
else
|
|
1526
|
+
return void st.push([W, ve[_e - 1], Tr]);
|
|
1527
|
+
var $t = g(ve, _e);
|
|
1528
|
+
if (l(W) && isNaN(Number($t)))
|
|
1529
|
+
for (var at = 0, kr = W.length; at < kr; at++) xt(g(W, at), ve, _e, W, st);
|
|
1530
|
+
else xt(g(W, $t), ve, _e + 1, W, st);
|
|
1531
1531
|
}(d, p, 0, d, _), _.length === 1) {
|
|
1532
1532
|
var w = _[0];
|
|
1533
1533
|
return S(m, w[0], w[1], w[2]);
|
|
@@ -1617,21 +1617,21 @@ var Kr = { exports: {} };
|
|
|
1617
1617
|
}
|
|
1618
1618
|
]);
|
|
1619
1619
|
});
|
|
1620
|
-
})(
|
|
1621
|
-
function
|
|
1620
|
+
})(Jr);
|
|
1621
|
+
function Yr(t, e) {
|
|
1622
1622
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1625
|
-
return
|
|
1624
|
+
function gt(t) {
|
|
1625
|
+
return gt = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1626
1626
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1627
|
-
},
|
|
1627
|
+
}, gt(t);
|
|
1628
1628
|
}
|
|
1629
1629
|
function Ve(t, e) {
|
|
1630
1630
|
return Ve = Object.setPrototypeOf || function(r, i) {
|
|
1631
1631
|
return r.__proto__ = i, r;
|
|
1632
1632
|
}, Ve(t, e);
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function Xr() {
|
|
1635
1635
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
1636
1636
|
if (typeof Proxy == "function") return !0;
|
|
1637
1637
|
try {
|
|
@@ -1642,20 +1642,20 @@ function Yr() {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
function Ue(t, e, n) {
|
|
1645
|
-
return
|
|
1645
|
+
return Xr() ? Ue = Reflect.construct : Ue = function(i, s, a) {
|
|
1646
1646
|
var l = [null];
|
|
1647
1647
|
l.push.apply(l, s);
|
|
1648
1648
|
var u = Function.bind.apply(i, l), h = new u();
|
|
1649
1649
|
return a && Ve(h, a.prototype), h;
|
|
1650
1650
|
}, Ue.apply(null, arguments);
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function Qr(t) {
|
|
1653
1653
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function yt(t) {
|
|
1656
1656
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1657
|
-
return
|
|
1658
|
-
if (r === null || !
|
|
1657
|
+
return yt = function(r) {
|
|
1658
|
+
if (r === null || !Qr(r)) return r;
|
|
1659
1659
|
if (typeof r != "function")
|
|
1660
1660
|
throw new TypeError("Super expression must either be null or a function");
|
|
1661
1661
|
if (typeof e < "u") {
|
|
@@ -1663,7 +1663,7 @@ function gt(t) {
|
|
|
1663
1663
|
e.set(r, i);
|
|
1664
1664
|
}
|
|
1665
1665
|
function i() {
|
|
1666
|
-
return Ue(r, arguments,
|
|
1666
|
+
return Ue(r, arguments, gt(this).constructor);
|
|
1667
1667
|
}
|
|
1668
1668
|
return i.prototype = Object.create(r.prototype, {
|
|
1669
1669
|
constructor: {
|
|
@@ -1673,18 +1673,18 @@ function gt(t) {
|
|
|
1673
1673
|
configurable: !0
|
|
1674
1674
|
}
|
|
1675
1675
|
}), Ve(i, r);
|
|
1676
|
-
},
|
|
1676
|
+
}, yt(t);
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function Ft(t) {
|
|
1679
1679
|
if (t === void 0)
|
|
1680
1680
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1681
1681
|
return t;
|
|
1682
1682
|
}
|
|
1683
|
-
var
|
|
1683
|
+
var In = function(e) {
|
|
1684
1684
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1685
|
-
}, Le =
|
|
1686
|
-
|
|
1687
|
-
var c = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(c || {}),
|
|
1685
|
+
}, Le = In;
|
|
1686
|
+
yt(Error);
|
|
1687
|
+
var Ze = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(Ze || {}), c = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(c || {}), et = /* @__PURE__ */ ((t) => (t.all = "all", t.restaurant = "restaurant", t.business = "business", t.delivery = "delivery", t.agent = "agent", t))(et || {}), wn = /* @__PURE__ */ ((t) => (t.quota = "quota", t.owner = "owner", t))(wn || {}), f = /* @__PURE__ */ ((t) => (t.crm = "business::crm", t.crm_promotion = "business::crm::promotion", t.crm_voucher = "business::crm::voucher", t.crm_membership = "business::crm::membership", t.inventory_stock = "business::inventory::stock", t.inventory_stockBalance = "business::inventory::stockBalance", t.inventory_stockAdjustment = "business::inventory::stockAdjustment", t.inventory_unitCostHistory = "business::inventory::unitCostHistory", t.inventory_wastageTemplate = "business::inventory::wastageTemplate", t.inventory_closingHistory = "business::inventory::closingHistory", t.inventory_closingTemplate = "business::inventory::closingTemplate", t.inventory_closingDraft = "business::inventory::closingDraft", t.inventory_ingredient = "business::inventory::ingredient", t.inventory_ingredientGroup = "business::inventory::ingredientGroup", t.inventory_recipe = "business::inventory::recipe", t.inventory_unit = "business::inventory::unit", t.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", t.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", t.inventory_transferOut = "business::inventory::transferOut", t.inventory_surcharge = "business::inventory::surcharge", t.inventory_orderTemplate = "business::inventory::orderTemplate", t.inventory_supplier = "business::inventory::supplier", t.inventory_warehouse = "business::inventory::warehouse", t.inventory_publish = "business::inventory::publish", t.inventory_import = "business::inventory::import", t.inventory_integration = "business::inventory::integration", t.hrm = "business::hrm", t.hrm_employee = "business::hrm::employee", t.hrm_teamMember = "business::hrm::teamMember", t.hrm_auditLog = "business::hrm::auditLog", t.menu = "business::menu", t.restaurant = "business::restaurant", t.role = "business::role", t.profile = "business::profile", t.report_createReport = "business::report::createReport", t.report_accessInsight = "business::report::accessInsight", t.report_accessSetting = "business::report::accessSetting", t.report_accessIntegration = "business::report::accessIntegration", t.report_accessOverview = "business::report::accessOverview", t.report_reports_allDefaultReports = "business::report::allDefaultReports", t.report_reports_allCustomReports = "business::report::allCustomReports", t))(f || {}), R = /* @__PURE__ */ ((t) => (t.profile = "business::profile", t.restaurant = "business::restaurant", t.menu = "business::menu", t.promotion = "business::promotion", t.voucher = "business::voucher", t.membership = "business::membership", t.stock = "business::stock", t.permission = "business::permission", t.role = "business::role", t.wastageTemplate = "business::wastageTemplate", t.closingTemplate = "business::closingTemplate", t.orderTemplate = "business::orderTemplate", t.ingredient = "business::ingredient", t.recipe = "business::recipe", t.unit = "business::unit", t.supplier = "business::supplier", t.warehouse = "business::warehouse", t.publish = "business::publish", t.integration = "business::integration", t.orderDraft = "business::orderDraft", t.unitCostHistory = "business::unitCostHistory", t))(R || {});
|
|
1688
1688
|
R.permission + "", f.hrm_teamMember, R.promotion + "", f.crm_promotion, R.voucher + "", f.crm_voucher, R.membership + "", f.crm_membership, R.stock + "", f.inventory_stock, R.wastageTemplate + "", f.inventory_wastageTemplate, R.closingTemplate + "", f.inventory_closingTemplate, R.orderTemplate + "", f.inventory_orderTemplate, R.ingredient + "", f.inventory_ingredient, R.recipe + "", f.inventory_recipe, R.unit + "", f.inventory_unit, R.supplier + "", f.inventory_supplier, R.warehouse + "", f.inventory_warehouse, R.publish + "", f.inventory_publish, R.integration + "", f.inventory_integration, R.orderDraft + "", f.inventory_orderDraftApproval, R.unitCostHistory + "", f.inventory_unitCostHistory;
|
|
1689
1689
|
f.restaurant, c.manage, f.menu, c.manage, f.inventory_stockBalance, c.manage, f.inventory_stockAdjustment, c.manage, f.inventory_unitCostHistory, c.manage, f.inventory_wastageTemplate, c.manage, f.inventory_closingHistory, c.manage, f.inventory_closingTemplate, c.manage, f.inventory_closingDraft, c.manage, f.inventory_ingredient, c.manage, f.inventory_ingredientGroup, c.manage, f.inventory_recipe, c.manage, f.inventory_unit, c.manage, f.inventory_purchaseTransfer, c.manage, f.inventory_orderDraftApproval, c.manage, f.inventory_transferOut, c.manage, f.inventory_surcharge, c.manage, f.inventory_orderTemplate, c.manage, f.inventory_supplier, c.manage, f.inventory_warehouse, c.manage, f.inventory_publish, c.manage, f.inventory_import, c.manage, f.inventory_integration, c.manage, f.crm_promotion, c.manage, f.crm_voucher, c.manage, f.crm_membership, c.manage, f.hrm_teamMember, c.manage, f.hrm_employee, c.manage, f.hrm_auditLog, c.manage, f.report_createReport, c.manage, f.report_accessOverview, c.manage, f.report_accessInsight, c.manage, f.report_accessSetting, c.manage, f.report_accessIntegration, c.manage, f.report_reports_allDefaultReports, c.manage, c.read, c.create, f.report_reports_allCustomReports, c.manage, c.read, c.create, c.update, c.delete;
|
|
1690
1690
|
var v = /* @__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))(v || {});
|
|
@@ -1694,7 +1694,7 @@ const P = [
|
|
|
1694
1694
|
subject: v.inventory,
|
|
1695
1695
|
actions: [c.read]
|
|
1696
1696
|
}
|
|
1697
|
-
],
|
|
1697
|
+
], Rt = [
|
|
1698
1698
|
...P,
|
|
1699
1699
|
{
|
|
1700
1700
|
label: "Stock",
|
|
@@ -1716,21 +1716,21 @@ const P = [
|
|
|
1716
1716
|
subject: v.inventory_unitCostHistory,
|
|
1717
1717
|
actions: [c.read]
|
|
1718
1718
|
}
|
|
1719
|
-
],
|
|
1719
|
+
], Zr = [
|
|
1720
1720
|
...P,
|
|
1721
1721
|
{
|
|
1722
1722
|
label: "Stock Adjustment",
|
|
1723
1723
|
subject: v.inventory_stockAdjustment,
|
|
1724
1724
|
actions: [c.update]
|
|
1725
1725
|
}
|
|
1726
|
-
],
|
|
1726
|
+
], Tn = [
|
|
1727
1727
|
...P,
|
|
1728
1728
|
{
|
|
1729
1729
|
label: "Unit Cost History",
|
|
1730
1730
|
subject: v.inventory_unitCostHistory,
|
|
1731
1731
|
actions: [c.read, c.update]
|
|
1732
1732
|
}
|
|
1733
|
-
],
|
|
1733
|
+
], kn = [
|
|
1734
1734
|
...P,
|
|
1735
1735
|
{
|
|
1736
1736
|
label: "Wastage Template",
|
|
@@ -1744,11 +1744,11 @@ const P = [
|
|
|
1744
1744
|
}
|
|
1745
1745
|
];
|
|
1746
1746
|
[
|
|
1747
|
-
...
|
|
1748
|
-
...
|
|
1749
|
-
...
|
|
1747
|
+
...Rt,
|
|
1748
|
+
...Tn,
|
|
1749
|
+
...kn
|
|
1750
1750
|
];
|
|
1751
|
-
const
|
|
1751
|
+
const At = [
|
|
1752
1752
|
...P,
|
|
1753
1753
|
{
|
|
1754
1754
|
label: "Closing",
|
|
@@ -1765,7 +1765,7 @@ const Rt = [
|
|
|
1765
1765
|
subject: v.inventory_closingDraft,
|
|
1766
1766
|
actions: [c.read]
|
|
1767
1767
|
}
|
|
1768
|
-
],
|
|
1768
|
+
], Sn = [
|
|
1769
1769
|
...P,
|
|
1770
1770
|
{
|
|
1771
1771
|
label: "Closing Draft",
|
|
@@ -1792,7 +1792,7 @@ const Rt = [
|
|
|
1792
1792
|
subject: v.inventory_stockAdjustment,
|
|
1793
1793
|
actions: [c.read]
|
|
1794
1794
|
}
|
|
1795
|
-
],
|
|
1795
|
+
], En = [
|
|
1796
1796
|
...P,
|
|
1797
1797
|
{
|
|
1798
1798
|
label: "Closing Template",
|
|
@@ -1811,11 +1811,11 @@ const Rt = [
|
|
|
1811
1811
|
}
|
|
1812
1812
|
];
|
|
1813
1813
|
[
|
|
1814
|
-
...
|
|
1815
|
-
...
|
|
1816
|
-
...
|
|
1814
|
+
...At,
|
|
1815
|
+
...Sn,
|
|
1816
|
+
...En
|
|
1817
1817
|
];
|
|
1818
|
-
const
|
|
1818
|
+
const ei = [
|
|
1819
1819
|
{
|
|
1820
1820
|
label: "Inventory",
|
|
1821
1821
|
subject: v.inventory,
|
|
@@ -1836,25 +1836,25 @@ const Zr = [
|
|
|
1836
1836
|
subject: v.inventory_closingTemplate,
|
|
1837
1837
|
actions: [c.read, c.update]
|
|
1838
1838
|
}
|
|
1839
|
-
],
|
|
1839
|
+
], ti = [
|
|
1840
1840
|
{
|
|
1841
1841
|
label: "Inventory",
|
|
1842
1842
|
subject: v.inventory,
|
|
1843
1843
|
actions: [c.read, c.update]
|
|
1844
1844
|
}
|
|
1845
|
-
],
|
|
1845
|
+
], ni = [
|
|
1846
1846
|
{
|
|
1847
1847
|
label: "Inventory",
|
|
1848
1848
|
subject: v.inventory,
|
|
1849
1849
|
actions: [c.read, c.update]
|
|
1850
1850
|
}
|
|
1851
|
-
],
|
|
1851
|
+
], ri = [
|
|
1852
1852
|
{
|
|
1853
1853
|
label: "Inventory",
|
|
1854
1854
|
subject: v.inventory,
|
|
1855
1855
|
actions: [c.read, c.update]
|
|
1856
1856
|
}
|
|
1857
|
-
],
|
|
1857
|
+
], Rn = [
|
|
1858
1858
|
{
|
|
1859
1859
|
label: "Purchase Order",
|
|
1860
1860
|
subject: v.inventory_purchaseOrder,
|
|
@@ -1895,7 +1895,7 @@ const Zr = [
|
|
|
1895
1895
|
subject: v.inventory_shipment,
|
|
1896
1896
|
actions: [c.read, c.update]
|
|
1897
1897
|
}
|
|
1898
|
-
],
|
|
1898
|
+
], An = [
|
|
1899
1899
|
{
|
|
1900
1900
|
label: "Purchase Order",
|
|
1901
1901
|
subject: v.inventory_purchaseOrder,
|
|
@@ -1916,7 +1916,7 @@ const Zr = [
|
|
|
1916
1916
|
subject: v.inventory_shipment,
|
|
1917
1917
|
actions: [c.read, c.update]
|
|
1918
1918
|
}
|
|
1919
|
-
],
|
|
1919
|
+
], Cn = [
|
|
1920
1920
|
...P,
|
|
1921
1921
|
{
|
|
1922
1922
|
label: "Surcharge",
|
|
@@ -1933,7 +1933,7 @@ const Zr = [
|
|
|
1933
1933
|
subject: v.inventory_supplier,
|
|
1934
1934
|
actions: [c.read]
|
|
1935
1935
|
}
|
|
1936
|
-
],
|
|
1936
|
+
], Pn = [
|
|
1937
1937
|
...P,
|
|
1938
1938
|
{
|
|
1939
1939
|
label: "Order Template",
|
|
@@ -1955,7 +1955,7 @@ const Zr = [
|
|
|
1955
1955
|
subject: v.inventory_shipment,
|
|
1956
1956
|
actions: [c.read, c.update]
|
|
1957
1957
|
}
|
|
1958
|
-
],
|
|
1958
|
+
], ii = [
|
|
1959
1959
|
...P,
|
|
1960
1960
|
{
|
|
1961
1961
|
label: "Order Draft Approval",
|
|
@@ -1964,12 +1964,12 @@ const Zr = [
|
|
|
1964
1964
|
}
|
|
1965
1965
|
];
|
|
1966
1966
|
[
|
|
1967
|
-
...En,
|
|
1968
1967
|
...Rn,
|
|
1969
1968
|
...An,
|
|
1970
|
-
...Cn
|
|
1969
|
+
...Cn,
|
|
1970
|
+
...Pn
|
|
1971
1971
|
];
|
|
1972
|
-
const
|
|
1972
|
+
const si = [
|
|
1973
1973
|
...P,
|
|
1974
1974
|
{
|
|
1975
1975
|
label: "Supplier",
|
|
@@ -1986,7 +1986,7 @@ const ii = [
|
|
|
1986
1986
|
subject: v.inventory_orderTemplate,
|
|
1987
1987
|
actions: [c.read, c.update]
|
|
1988
1988
|
}
|
|
1989
|
-
],
|
|
1989
|
+
], ai = [
|
|
1990
1990
|
...P,
|
|
1991
1991
|
{
|
|
1992
1992
|
label: "Warehouse",
|
|
@@ -1998,20 +1998,20 @@ const ii = [
|
|
|
1998
1998
|
c.delete
|
|
1999
1999
|
]
|
|
2000
2000
|
}
|
|
2001
|
-
],
|
|
2001
|
+
], oi = [
|
|
2002
2002
|
{
|
|
2003
2003
|
label: "Inventory",
|
|
2004
2004
|
subject: v.inventory,
|
|
2005
2005
|
actions: [c.read, c.update]
|
|
2006
2006
|
}
|
|
2007
|
-
],
|
|
2007
|
+
], ci = [
|
|
2008
2008
|
...P,
|
|
2009
2009
|
{
|
|
2010
2010
|
label: "Inventory",
|
|
2011
2011
|
subject: v.inventory,
|
|
2012
2012
|
actions: [c.update]
|
|
2013
2013
|
}
|
|
2014
|
-
],
|
|
2014
|
+
], li = [
|
|
2015
2015
|
...P,
|
|
2016
2016
|
{
|
|
2017
2017
|
label: "Integration",
|
|
@@ -2021,118 +2021,118 @@ const ii = [
|
|
|
2021
2021
|
];
|
|
2022
2022
|
[
|
|
2023
2023
|
...P,
|
|
2024
|
-
...
|
|
2025
|
-
...
|
|
2024
|
+
...Rt,
|
|
2025
|
+
...At
|
|
2026
2026
|
];
|
|
2027
|
-
const
|
|
2027
|
+
const ui = {
|
|
2028
2028
|
[`set_${f.inventory_stockBalance}`]: {
|
|
2029
2029
|
key: "sys:inventory:stock_balance",
|
|
2030
2030
|
name: "Stock Balance",
|
|
2031
|
-
permissions:
|
|
2031
|
+
permissions: Rt
|
|
2032
2032
|
},
|
|
2033
2033
|
[`set_${f.inventory_stockAdjustment}`]: {
|
|
2034
2034
|
key: "sys:inventory:stock_adjustment",
|
|
2035
2035
|
name: "Stock Adjustment",
|
|
2036
|
-
permissions:
|
|
2036
|
+
permissions: Zr
|
|
2037
2037
|
},
|
|
2038
2038
|
[`set_${f.inventory_unitCostHistory}`]: {
|
|
2039
2039
|
key: "sys:inventory:unit_cost_history",
|
|
2040
2040
|
name: "Unit Cost History",
|
|
2041
|
-
permissions:
|
|
2041
|
+
permissions: Tn
|
|
2042
2042
|
},
|
|
2043
2043
|
[`set_${f.inventory_wastageTemplate}`]: {
|
|
2044
2044
|
key: "sys:inventory:wastage_template",
|
|
2045
2045
|
name: "Wastage Template",
|
|
2046
|
-
permissions:
|
|
2046
|
+
permissions: kn
|
|
2047
2047
|
},
|
|
2048
2048
|
[`set_${f.inventory_closingHistory}`]: {
|
|
2049
2049
|
key: "sys:inventory:closing_history",
|
|
2050
2050
|
name: "Closing History",
|
|
2051
|
-
permissions:
|
|
2051
|
+
permissions: At
|
|
2052
2052
|
},
|
|
2053
2053
|
[`set_${f.inventory_closingTemplate}`]: {
|
|
2054
2054
|
key: "sys:inventory:closing_template",
|
|
2055
2055
|
name: "Closing Template",
|
|
2056
|
-
permissions:
|
|
2056
|
+
permissions: En
|
|
2057
2057
|
},
|
|
2058
2058
|
[`set_${f.inventory_closingDraft}`]: {
|
|
2059
2059
|
key: "sys:inventory:closing_draft",
|
|
2060
2060
|
name: "Closing Draft",
|
|
2061
|
-
permissions:
|
|
2061
|
+
permissions: Sn
|
|
2062
2062
|
},
|
|
2063
2063
|
[`set_${f.inventory_ingredient}`]: {
|
|
2064
2064
|
key: "sys:inventory:ingredient",
|
|
2065
2065
|
name: "Ingredient",
|
|
2066
|
-
permissions:
|
|
2066
|
+
permissions: ei
|
|
2067
2067
|
},
|
|
2068
2068
|
[`set_${f.inventory_ingredientGroup}`]: {
|
|
2069
2069
|
key: "sys:inventory:ingredient_group",
|
|
2070
2070
|
name: "Ingredient Group",
|
|
2071
|
-
permissions:
|
|
2071
|
+
permissions: ti
|
|
2072
2072
|
},
|
|
2073
2073
|
[`set_${f.inventory_recipe}`]: {
|
|
2074
2074
|
key: "sys:inventory:recipe",
|
|
2075
2075
|
name: "Recipe",
|
|
2076
|
-
permissions:
|
|
2076
|
+
permissions: ni
|
|
2077
2077
|
},
|
|
2078
2078
|
[`set_${f.inventory_unit}`]: {
|
|
2079
2079
|
key: "sys:inventory:unit",
|
|
2080
2080
|
name: "Unit",
|
|
2081
|
-
permissions:
|
|
2081
|
+
permissions: ri
|
|
2082
2082
|
},
|
|
2083
2083
|
[`set_${f.inventory_purchaseTransfer}`]: {
|
|
2084
2084
|
key: "sys:inventory:purchase_transfer",
|
|
2085
2085
|
name: "Purchase Transfer",
|
|
2086
|
-
permissions:
|
|
2086
|
+
permissions: Rn
|
|
2087
2087
|
},
|
|
2088
2088
|
[`set_${f.inventory_orderDraftApproval}`]: {
|
|
2089
2089
|
key: "sys:inventory:order_draft_approval",
|
|
2090
2090
|
name: "Order Draft Approval",
|
|
2091
|
-
permissions:
|
|
2091
|
+
permissions: ii
|
|
2092
2092
|
},
|
|
2093
2093
|
[`set_${f.inventory_transferOut}`]: {
|
|
2094
2094
|
key: "sys:inventory:transfer_out",
|
|
2095
2095
|
name: "Transfer Out",
|
|
2096
|
-
permissions:
|
|
2096
|
+
permissions: An
|
|
2097
2097
|
},
|
|
2098
2098
|
[`set_${f.inventory_surcharge}`]: {
|
|
2099
2099
|
key: "sys:inventory:surcharge",
|
|
2100
2100
|
name: "Surcharge",
|
|
2101
|
-
permissions:
|
|
2101
|
+
permissions: Cn
|
|
2102
2102
|
},
|
|
2103
2103
|
[`set_${f.inventory_orderTemplate}`]: {
|
|
2104
2104
|
key: "sys:inventory:order_template",
|
|
2105
2105
|
name: "Order Template",
|
|
2106
|
-
permissions:
|
|
2106
|
+
permissions: Pn
|
|
2107
2107
|
},
|
|
2108
2108
|
[`set_${f.inventory_supplier}`]: {
|
|
2109
2109
|
key: "sys:inventory:supplier",
|
|
2110
2110
|
name: "Supplier",
|
|
2111
|
-
permissions:
|
|
2111
|
+
permissions: si
|
|
2112
2112
|
},
|
|
2113
2113
|
[`set_${f.inventory_warehouse}`]: {
|
|
2114
2114
|
key: "sys:inventory:warehouse",
|
|
2115
2115
|
name: "Warehouse",
|
|
2116
|
-
permissions:
|
|
2116
|
+
permissions: ai
|
|
2117
2117
|
},
|
|
2118
2118
|
[`set_${f.inventory_publish}`]: {
|
|
2119
2119
|
key: "sys:inventory:publish",
|
|
2120
2120
|
name: "Publish",
|
|
2121
|
-
permissions:
|
|
2121
|
+
permissions: oi
|
|
2122
2122
|
},
|
|
2123
2123
|
[`set_${f.inventory_import}`]: {
|
|
2124
2124
|
key: "sys:inventory:import",
|
|
2125
2125
|
name: "Import",
|
|
2126
|
-
permissions:
|
|
2126
|
+
permissions: ci
|
|
2127
2127
|
},
|
|
2128
2128
|
[`set_${f.inventory_integration}`]: {
|
|
2129
2129
|
key: "sys:inventory:integration",
|
|
2130
2130
|
name: "Integration",
|
|
2131
|
-
permissions:
|
|
2131
|
+
permissions: li
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
2134
|
var ae = /* @__PURE__ */ ((t) => (t.hrm_posRole = "hrm::posRole", t.hrm_portalUsers = "hrm::portalUsers", t))(ae || {});
|
|
2135
|
-
const
|
|
2135
|
+
const di = {
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
2138
2138
|
* Injects: team member list read + pos role read
|
|
@@ -2201,12 +2201,12 @@ const ui = {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
]
|
|
2203
2203
|
}
|
|
2204
|
-
},
|
|
2205
|
-
...
|
|
2206
|
-
...
|
|
2204
|
+
}, hi = {
|
|
2205
|
+
...ui,
|
|
2206
|
+
...di
|
|
2207
2207
|
};
|
|
2208
2208
|
Object.values(
|
|
2209
|
-
|
|
2209
|
+
hi
|
|
2210
2210
|
).flatMap((t) => t.permissions ?? []).reduce(
|
|
2211
2211
|
(t, e) => {
|
|
2212
2212
|
var n;
|
|
@@ -2214,11 +2214,11 @@ Object.values(
|
|
|
2214
2214
|
},
|
|
2215
2215
|
{}
|
|
2216
2216
|
);
|
|
2217
|
-
const
|
|
2217
|
+
const pi = () => ({
|
|
2218
2218
|
validationManifest: {
|
|
2219
2219
|
requiredCaslPermissions: [
|
|
2220
2220
|
{
|
|
2221
|
-
subject:
|
|
2221
|
+
subject: et.all,
|
|
2222
2222
|
action: c.manage
|
|
2223
2223
|
}
|
|
2224
2224
|
]
|
|
@@ -2231,7 +2231,7 @@ const hi = () => ({
|
|
|
2231
2231
|
sidebarDisplay: "Restaurants",
|
|
2232
2232
|
section: "payment-gateway"
|
|
2233
2233
|
},
|
|
2234
|
-
component: () => import("./Restaurant-
|
|
2234
|
+
component: () => import("./Restaurant-AHLA5_Dr.js")
|
|
2235
2235
|
},
|
|
2236
2236
|
{
|
|
2237
2237
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -2240,7 +2240,7 @@ const hi = () => ({
|
|
|
2240
2240
|
meta: {
|
|
2241
2241
|
parent: "mf-payment-admin.restaurant"
|
|
2242
2242
|
},
|
|
2243
|
-
component: () => import("./RestaurantSetting-
|
|
2243
|
+
component: () => import("./RestaurantSetting-C5NqoLwe.js")
|
|
2244
2244
|
},
|
|
2245
2245
|
{
|
|
2246
2246
|
path: "/admin/payout-accounts",
|
|
@@ -2249,7 +2249,7 @@ const hi = () => ({
|
|
|
2249
2249
|
sidebarDisplay: "Payout Accounts",
|
|
2250
2250
|
section: "payment-gateway"
|
|
2251
2251
|
},
|
|
2252
|
-
component: () => import("./PayoutAccount-
|
|
2252
|
+
component: () => import("./PayoutAccount-CsR9_qUx.js")
|
|
2253
2253
|
},
|
|
2254
2254
|
{
|
|
2255
2255
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -2258,7 +2258,7 @@ const hi = () => ({
|
|
|
2258
2258
|
meta: {
|
|
2259
2259
|
parent: "mf-payment-admin.payout-account"
|
|
2260
2260
|
},
|
|
2261
|
-
component: () => import("./PayoutAccountSetting-
|
|
2261
|
+
component: () => import("./PayoutAccountSetting-BW6eS4Dg.js")
|
|
2262
2262
|
},
|
|
2263
2263
|
{
|
|
2264
2264
|
path: "/admin/onboarding",
|
|
@@ -2267,7 +2267,7 @@ const hi = () => ({
|
|
|
2267
2267
|
sidebarDisplay: "Payment Onboarding",
|
|
2268
2268
|
section: "payment-gateway"
|
|
2269
2269
|
},
|
|
2270
|
-
component: () => import("./OnboardSubmission-
|
|
2270
|
+
component: () => import("./OnboardSubmission-k3_x1Shy.js")
|
|
2271
2271
|
},
|
|
2272
2272
|
{
|
|
2273
2273
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -2276,7 +2276,7 @@ const hi = () => ({
|
|
|
2276
2276
|
meta: {
|
|
2277
2277
|
parent: "mf-payment-admin.onboard-submission"
|
|
2278
2278
|
},
|
|
2279
|
-
component: () => import("./OnboardForm-
|
|
2279
|
+
component: () => import("./OnboardForm-BMBvyEvu.js")
|
|
2280
2280
|
},
|
|
2281
2281
|
{
|
|
2282
2282
|
path: "/admin/terminal/pos",
|
|
@@ -2285,7 +2285,7 @@ const hi = () => ({
|
|
|
2285
2285
|
sidebarDisplay: "POS",
|
|
2286
2286
|
section: "device"
|
|
2287
2287
|
},
|
|
2288
|
-
component: () => import("./Terminal-
|
|
2288
|
+
component: () => import("./Terminal-B17QgypB.js"),
|
|
2289
2289
|
props: {
|
|
2290
2290
|
type: "POS"
|
|
2291
2291
|
}
|
|
@@ -2297,7 +2297,7 @@ const hi = () => ({
|
|
|
2297
2297
|
sidebarDisplay: "Kiosks",
|
|
2298
2298
|
section: "device"
|
|
2299
2299
|
},
|
|
2300
|
-
component: () => import("./Terminal-
|
|
2300
|
+
component: () => import("./Terminal-B17QgypB.js"),
|
|
2301
2301
|
props: {
|
|
2302
2302
|
type: "KIOSK"
|
|
2303
2303
|
}
|
|
@@ -2309,7 +2309,7 @@ const hi = () => ({
|
|
|
2309
2309
|
sidebarDisplay: "Terminals",
|
|
2310
2310
|
section: "device"
|
|
2311
2311
|
},
|
|
2312
|
-
component: () => import("./Terminal-
|
|
2312
|
+
component: () => import("./Terminal-B17QgypB.js"),
|
|
2313
2313
|
props: {
|
|
2314
2314
|
type: "TERMINAL"
|
|
2315
2315
|
}
|
|
@@ -2321,7 +2321,7 @@ const hi = () => ({
|
|
|
2321
2321
|
meta: {
|
|
2322
2322
|
parent: "mf-payment-admin.pos"
|
|
2323
2323
|
},
|
|
2324
|
-
component: () => import("./TerminalSetting-
|
|
2324
|
+
component: () => import("./TerminalSetting-BJ7FxfO0.js")
|
|
2325
2325
|
},
|
|
2326
2326
|
{
|
|
2327
2327
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -2330,7 +2330,7 @@ const hi = () => ({
|
|
|
2330
2330
|
meta: {
|
|
2331
2331
|
parent: "mf-payment-admin.kiosk"
|
|
2332
2332
|
},
|
|
2333
|
-
component: () => import("./TerminalSetting-
|
|
2333
|
+
component: () => import("./TerminalSetting-BJ7FxfO0.js")
|
|
2334
2334
|
},
|
|
2335
2335
|
{
|
|
2336
2336
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -2339,7 +2339,7 @@ const hi = () => ({
|
|
|
2339
2339
|
meta: {
|
|
2340
2340
|
parent: "mf-payment-admin.terminal"
|
|
2341
2341
|
},
|
|
2342
|
-
component: () => import("./TerminalSetting-
|
|
2342
|
+
component: () => import("./TerminalSetting-BJ7FxfO0.js")
|
|
2343
2343
|
},
|
|
2344
2344
|
{
|
|
2345
2345
|
path: "/admin/transaction",
|
|
@@ -2347,7 +2347,7 @@ const hi = () => ({
|
|
|
2347
2347
|
meta: {
|
|
2348
2348
|
sidebarDisplay: "Transactions"
|
|
2349
2349
|
},
|
|
2350
|
-
component: () => import("./Transaction-
|
|
2350
|
+
component: () => import("./Transaction-C9ICgUIh.js")
|
|
2351
2351
|
},
|
|
2352
2352
|
{
|
|
2353
2353
|
path: "/admin/chargeback",
|
|
@@ -2355,7 +2355,7 @@ const hi = () => ({
|
|
|
2355
2355
|
meta: {
|
|
2356
2356
|
sidebarDisplay: "Chargebacks"
|
|
2357
2357
|
},
|
|
2358
|
-
component: () => import("./Chargeback-
|
|
2358
|
+
component: () => import("./Chargeback-BjCClrZV.js")
|
|
2359
2359
|
},
|
|
2360
2360
|
{
|
|
2361
2361
|
path: "/admin/settlement",
|
|
@@ -2363,7 +2363,7 @@ const hi = () => ({
|
|
|
2363
2363
|
meta: {
|
|
2364
2364
|
sidebarDisplay: "Settlements"
|
|
2365
2365
|
},
|
|
2366
|
-
component: () => import("./Settlement-
|
|
2366
|
+
component: () => import("./Settlement-D0eKkwEv.js")
|
|
2367
2367
|
},
|
|
2368
2368
|
{
|
|
2369
2369
|
path: "/admin/settlement/:settlementId",
|
|
@@ -2372,28 +2372,30 @@ const hi = () => ({
|
|
|
2372
2372
|
meta: {
|
|
2373
2373
|
parent: "mf-payment-admin.settlement"
|
|
2374
2374
|
},
|
|
2375
|
-
component: () => import("./SettlementTransactions-
|
|
2375
|
+
component: () => import("./SettlementTransactions-Sqz_p1n0.js")
|
|
2376
2376
|
}
|
|
2377
2377
|
].map((t) => ({
|
|
2378
2378
|
...t,
|
|
2379
2379
|
meta: {
|
|
2380
2380
|
...t.meta,
|
|
2381
|
-
...
|
|
2381
|
+
...pi()
|
|
2382
2382
|
}
|
|
2383
|
-
})),
|
|
2383
|
+
})), fi = () => ({
|
|
2384
2384
|
validationManifest: {
|
|
2385
2385
|
requiredCaslPermissions: [
|
|
2386
2386
|
{
|
|
2387
|
-
|
|
2387
|
+
level: Ze.business,
|
|
2388
|
+
subject: wn.owner,
|
|
2388
2389
|
action: c.manage
|
|
2389
2390
|
}
|
|
2390
2391
|
]
|
|
2391
2392
|
}
|
|
2392
|
-
}),
|
|
2393
|
+
}), ot = () => ({
|
|
2393
2394
|
validationManifest: {
|
|
2394
2395
|
requiredCaslPermissions: [
|
|
2395
2396
|
{
|
|
2396
|
-
|
|
2397
|
+
level: Ze.business,
|
|
2398
|
+
subject: et.business,
|
|
2397
2399
|
action: c.manage
|
|
2398
2400
|
}
|
|
2399
2401
|
]
|
|
@@ -2402,7 +2404,8 @@ const hi = () => ({
|
|
|
2402
2404
|
validationManifest: {
|
|
2403
2405
|
requiredCaslPermissions: [
|
|
2404
2406
|
{
|
|
2405
|
-
|
|
2407
|
+
level: Ze.restaurant,
|
|
2408
|
+
subject: et.restaurant,
|
|
2406
2409
|
action: c.manage
|
|
2407
2410
|
}
|
|
2408
2411
|
]
|
|
@@ -2415,36 +2418,36 @@ const hi = () => ({
|
|
|
2415
2418
|
{
|
|
2416
2419
|
path: "/payout-account",
|
|
2417
2420
|
name: "mf-payment-payout-account",
|
|
2418
|
-
component: () => import("./PayoutAccount-
|
|
2421
|
+
component: () => import("./PayoutAccount-DlV4rRzo.js"),
|
|
2419
2422
|
meta: {
|
|
2420
2423
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
2421
|
-
...
|
|
2424
|
+
...ot()
|
|
2422
2425
|
}
|
|
2423
2426
|
},
|
|
2424
2427
|
{
|
|
2425
2428
|
path: "/onboard-submission",
|
|
2426
2429
|
name: "mf-payment-onboard-submission",
|
|
2427
|
-
component: () => import("./OnboardSubmission-
|
|
2430
|
+
component: () => import("./OnboardSubmission-jSsHufSg.js"),
|
|
2428
2431
|
meta: {
|
|
2429
2432
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
2430
2433
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
2431
|
-
...
|
|
2434
|
+
...ot()
|
|
2432
2435
|
}
|
|
2433
2436
|
},
|
|
2434
2437
|
{
|
|
2435
2438
|
path: "/onboard-submission/:type/:submission?",
|
|
2436
2439
|
name: "mf-payment-onboard-submission-form",
|
|
2437
2440
|
props: !0,
|
|
2438
|
-
component: () => import("./OnboardForm-
|
|
2441
|
+
component: () => import("./OnboardForm-C1ZJKDXD.js"),
|
|
2439
2442
|
meta: {
|
|
2440
2443
|
parent: "mf-payment-onboard-submission",
|
|
2441
|
-
...
|
|
2444
|
+
...ot()
|
|
2442
2445
|
}
|
|
2443
2446
|
},
|
|
2444
2447
|
{
|
|
2445
2448
|
path: "/transaction-old",
|
|
2446
2449
|
name: "mf-payment-old-transaction",
|
|
2447
|
-
component: () => import("./TransactionOld-
|
|
2450
|
+
component: () => import("./TransactionOld-Cp2Ekbkz.js"),
|
|
2448
2451
|
meta: {
|
|
2449
2452
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
2450
2453
|
...Be()
|
|
@@ -2453,7 +2456,7 @@ const hi = () => ({
|
|
|
2453
2456
|
{
|
|
2454
2457
|
path: "/transaction",
|
|
2455
2458
|
name: "mf-payment-transaction",
|
|
2456
|
-
component: () => import("./Transaction-
|
|
2459
|
+
component: () => import("./Transaction-uORSgDkc.js"),
|
|
2457
2460
|
meta: {
|
|
2458
2461
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
2459
2462
|
sidebarNew: !0,
|
|
@@ -2463,7 +2466,7 @@ const hi = () => ({
|
|
|
2463
2466
|
{
|
|
2464
2467
|
path: "/settlement",
|
|
2465
2468
|
name: "mf-payment-settlement",
|
|
2466
|
-
component: () => import("./Settlement-
|
|
2469
|
+
component: () => import("./Settlement-CZfN7ra0.js"),
|
|
2467
2470
|
meta: {
|
|
2468
2471
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
2469
2472
|
region: { MY: !0, SG: !0 },
|
|
@@ -2474,7 +2477,7 @@ const hi = () => ({
|
|
|
2474
2477
|
path: "/settlement/:settlementId",
|
|
2475
2478
|
name: "mf-payment-settlement-transaction",
|
|
2476
2479
|
props: !0,
|
|
2477
|
-
component: () => import("./SettlementTransactions-
|
|
2480
|
+
component: () => import("./SettlementTransactions-Xr2Wql6O.js"),
|
|
2478
2481
|
meta: {
|
|
2479
2482
|
parent: "mf-payment-settlement",
|
|
2480
2483
|
...Be()
|
|
@@ -2483,12 +2486,12 @@ const hi = () => ({
|
|
|
2483
2486
|
{
|
|
2484
2487
|
path: "/financing",
|
|
2485
2488
|
name: "mf-payment-financing",
|
|
2486
|
-
component:
|
|
2489
|
+
component: Sr,
|
|
2487
2490
|
meta: {
|
|
2488
2491
|
useChildrenRoutes: !0,
|
|
2489
|
-
...
|
|
2492
|
+
...fi()
|
|
2490
2493
|
},
|
|
2491
|
-
children:
|
|
2494
|
+
children: Er.map((t) => ({
|
|
2492
2495
|
...t,
|
|
2493
2496
|
meta: {
|
|
2494
2497
|
...t.meta,
|
|
@@ -2497,10 +2500,10 @@ const hi = () => ({
|
|
|
2497
2500
|
path: `/financing${t.path}`
|
|
2498
2501
|
}))
|
|
2499
2502
|
}
|
|
2500
|
-
],
|
|
2503
|
+
], mi = $r("mf-payment-iframe", () => {
|
|
2501
2504
|
const t = {
|
|
2502
2505
|
isIframe: !1
|
|
2503
|
-
}, e =
|
|
2506
|
+
}, e = gn(() => t);
|
|
2504
2507
|
function n(r) {
|
|
2505
2508
|
t.isIframe = r;
|
|
2506
2509
|
}
|
|
@@ -2541,7 +2544,7 @@ const hi = () => ({
|
|
|
2541
2544
|
* See the License for the specific language governing permissions and
|
|
2542
2545
|
* limitations under the License.
|
|
2543
2546
|
*/
|
|
2544
|
-
const
|
|
2547
|
+
const On = function(t) {
|
|
2545
2548
|
const e = [];
|
|
2546
2549
|
let n = 0;
|
|
2547
2550
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -2549,7 +2552,7 @@ const Pn = function(t) {
|
|
|
2549
2552
|
i < 128 ? e[n++] = i : i < 2048 ? (e[n++] = i >> 6 | 192, e[n++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < t.length && (t.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (t.charCodeAt(++r) & 1023), e[n++] = i >> 18 | 240, e[n++] = i >> 12 & 63 | 128, e[n++] = i >> 6 & 63 | 128, e[n++] = i & 63 | 128) : (e[n++] = i >> 12 | 224, e[n++] = i >> 6 & 63 | 128, e[n++] = i & 63 | 128);
|
|
2550
2553
|
}
|
|
2551
2554
|
return e;
|
|
2552
|
-
},
|
|
2555
|
+
}, gi = function(t) {
|
|
2553
2556
|
const e = [];
|
|
2554
2557
|
let n = 0, r = 0;
|
|
2555
2558
|
for (; n < t.length; ) {
|
|
@@ -2568,7 +2571,7 @@ const Pn = function(t) {
|
|
|
2568
2571
|
}
|
|
2569
2572
|
}
|
|
2570
2573
|
return e.join("");
|
|
2571
|
-
},
|
|
2574
|
+
}, Dn = {
|
|
2572
2575
|
/**
|
|
2573
2576
|
* Maps bytes to characters.
|
|
2574
2577
|
*/
|
|
@@ -2642,7 +2645,7 @@ const Pn = function(t) {
|
|
|
2642
2645
|
* @return The base64 encoded string.
|
|
2643
2646
|
*/
|
|
2644
2647
|
encodeString(t, e) {
|
|
2645
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(
|
|
2648
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(On(t), e);
|
|
2646
2649
|
},
|
|
2647
2650
|
/**
|
|
2648
2651
|
* Base64-decode a string.
|
|
@@ -2653,7 +2656,7 @@ const Pn = function(t) {
|
|
|
2653
2656
|
* @return string representing the decoded value.
|
|
2654
2657
|
*/
|
|
2655
2658
|
decodeString(t, e) {
|
|
2656
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(t) :
|
|
2659
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(t) : gi(this.decodeStringToByteArray(t, e));
|
|
2657
2660
|
},
|
|
2658
2661
|
/**
|
|
2659
2662
|
* Base64-decode a string.
|
|
@@ -2680,7 +2683,7 @@ const Pn = function(t) {
|
|
|
2680
2683
|
++i;
|
|
2681
2684
|
const y = i < t.length ? n[t.charAt(i)] : 64;
|
|
2682
2685
|
if (++i, s == null || l == null || h == null || y == null)
|
|
2683
|
-
throw new
|
|
2686
|
+
throw new yi();
|
|
2684
2687
|
const E = s << 2 | l >> 4;
|
|
2685
2688
|
if (r.push(E), h !== 64) {
|
|
2686
2689
|
const S = l << 4 & 240 | h >> 2;
|
|
@@ -2705,19 +2708,19 @@ const Pn = function(t) {
|
|
|
2705
2708
|
}
|
|
2706
2709
|
}
|
|
2707
2710
|
};
|
|
2708
|
-
class
|
|
2711
|
+
class yi extends Error {
|
|
2709
2712
|
constructor() {
|
|
2710
2713
|
super(...arguments), this.name = "DecodeBase64StringError";
|
|
2711
2714
|
}
|
|
2712
2715
|
}
|
|
2713
|
-
const
|
|
2714
|
-
const e =
|
|
2715
|
-
return
|
|
2716
|
-
}, Dn = function(t) {
|
|
2717
|
-
return yi(t).replace(/\./g, "");
|
|
2716
|
+
const bi = function(t) {
|
|
2717
|
+
const e = On(t);
|
|
2718
|
+
return Dn.encodeByteArray(e, !0);
|
|
2718
2719
|
}, Nn = function(t) {
|
|
2720
|
+
return bi(t).replace(/\./g, "");
|
|
2721
|
+
}, Mn = function(t) {
|
|
2719
2722
|
try {
|
|
2720
|
-
return
|
|
2723
|
+
return Dn.decodeString(t, !0);
|
|
2721
2724
|
} catch (e) {
|
|
2722
2725
|
console.error("base64Decode failed: ", e);
|
|
2723
2726
|
}
|
|
@@ -2739,7 +2742,7 @@ const yi = function(t) {
|
|
|
2739
2742
|
* See the License for the specific language governing permissions and
|
|
2740
2743
|
* limitations under the License.
|
|
2741
2744
|
*/
|
|
2742
|
-
function
|
|
2745
|
+
function vi() {
|
|
2743
2746
|
if (typeof self < "u")
|
|
2744
2747
|
return self;
|
|
2745
2748
|
if (typeof window < "u")
|
|
@@ -2764,13 +2767,13 @@ function bi() {
|
|
|
2764
2767
|
* See the License for the specific language governing permissions and
|
|
2765
2768
|
* limitations under the License.
|
|
2766
2769
|
*/
|
|
2767
|
-
const
|
|
2770
|
+
const _i = () => vi().__FIREBASE_DEFAULTS__, Ii = () => {
|
|
2768
2771
|
if (typeof process > "u" || typeof process.env > "u")
|
|
2769
2772
|
return;
|
|
2770
2773
|
const t = process.env.__FIREBASE_DEFAULTS__;
|
|
2771
2774
|
if (t)
|
|
2772
2775
|
return JSON.parse(t);
|
|
2773
|
-
},
|
|
2776
|
+
}, wi = () => {
|
|
2774
2777
|
if (typeof document > "u")
|
|
2775
2778
|
return;
|
|
2776
2779
|
let t;
|
|
@@ -2779,24 +2782,24 @@ const vi = () => bi().__FIREBASE_DEFAULTS__, _i = () => {
|
|
|
2779
2782
|
} catch {
|
|
2780
2783
|
return;
|
|
2781
2784
|
}
|
|
2782
|
-
const e = t &&
|
|
2785
|
+
const e = t && Mn(t[1]);
|
|
2783
2786
|
return e && JSON.parse(e);
|
|
2784
|
-
},
|
|
2787
|
+
}, Ct = () => {
|
|
2785
2788
|
try {
|
|
2786
|
-
return
|
|
2789
|
+
return _i() || Ii() || wi();
|
|
2787
2790
|
} catch (t) {
|
|
2788
2791
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);
|
|
2789
2792
|
return;
|
|
2790
2793
|
}
|
|
2791
|
-
},
|
|
2794
|
+
}, Ti = (t) => {
|
|
2792
2795
|
var e, n;
|
|
2793
|
-
return (n = (e =
|
|
2794
|
-
},
|
|
2796
|
+
return (n = (e = Ct()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || n === void 0 ? void 0 : n[t];
|
|
2797
|
+
}, Ln = () => {
|
|
2795
2798
|
var t;
|
|
2796
|
-
return (t =
|
|
2797
|
-
},
|
|
2799
|
+
return (t = Ct()) === null || t === void 0 ? void 0 : t.config;
|
|
2800
|
+
}, Bn = (t) => {
|
|
2798
2801
|
var e;
|
|
2799
|
-
return (e =
|
|
2802
|
+
return (e = Ct()) === null || e === void 0 ? void 0 : e[`_${t}`];
|
|
2800
2803
|
};
|
|
2801
2804
|
/**
|
|
2802
2805
|
* @license
|
|
@@ -2814,7 +2817,7 @@ const vi = () => bi().__FIREBASE_DEFAULTS__, _i = () => {
|
|
|
2814
2817
|
* See the License for the specific language governing permissions and
|
|
2815
2818
|
* limitations under the License.
|
|
2816
2819
|
*/
|
|
2817
|
-
class
|
|
2820
|
+
class ki {
|
|
2818
2821
|
constructor() {
|
|
2819
2822
|
this.reject = () => {
|
|
2820
2823
|
}, this.resolve = () => {
|
|
@@ -2853,33 +2856,33 @@ class Ti {
|
|
|
2853
2856
|
function C() {
|
|
2854
2857
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
|
2855
2858
|
}
|
|
2856
|
-
function
|
|
2859
|
+
function Si() {
|
|
2857
2860
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
|
2858
2861
|
// just to deal with this case would probably be a bad idea.
|
|
2859
2862
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(C());
|
|
2860
2863
|
}
|
|
2861
|
-
function
|
|
2864
|
+
function Ei() {
|
|
2862
2865
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
|
2863
2866
|
}
|
|
2864
|
-
function
|
|
2867
|
+
function Ri() {
|
|
2865
2868
|
const t = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
|
2866
2869
|
return typeof t == "object" && t.id !== void 0;
|
|
2867
2870
|
}
|
|
2868
|
-
function
|
|
2871
|
+
function Ai() {
|
|
2869
2872
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
|
2870
2873
|
}
|
|
2871
|
-
function
|
|
2874
|
+
function Ci() {
|
|
2872
2875
|
const t = C();
|
|
2873
2876
|
return t.indexOf("MSIE ") >= 0 || t.indexOf("Trident/") >= 0;
|
|
2874
2877
|
}
|
|
2875
|
-
function
|
|
2878
|
+
function Pi() {
|
|
2876
2879
|
try {
|
|
2877
2880
|
return typeof indexedDB == "object";
|
|
2878
2881
|
} catch {
|
|
2879
2882
|
return !1;
|
|
2880
2883
|
}
|
|
2881
2884
|
}
|
|
2882
|
-
function
|
|
2885
|
+
function Oi() {
|
|
2883
2886
|
return new Promise((t, e) => {
|
|
2884
2887
|
try {
|
|
2885
2888
|
let n = !0;
|
|
@@ -2913,10 +2916,10 @@ function Pi() {
|
|
|
2913
2916
|
* See the License for the specific language governing permissions and
|
|
2914
2917
|
* limitations under the License.
|
|
2915
2918
|
*/
|
|
2916
|
-
const
|
|
2919
|
+
const Di = "FirebaseError";
|
|
2917
2920
|
class te extends Error {
|
|
2918
2921
|
constructor(e, n, r) {
|
|
2919
|
-
super(n), this.code = e, this.customData = r, this.name =
|
|
2922
|
+
super(n), this.code = e, this.customData = r, this.name = Di, Object.setPrototypeOf(this, te.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Ee.prototype.create);
|
|
2920
2923
|
}
|
|
2921
2924
|
}
|
|
2922
2925
|
class Ee {
|
|
@@ -2924,18 +2927,18 @@ class Ee {
|
|
|
2924
2927
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
2925
2928
|
}
|
|
2926
2929
|
create(e, ...n) {
|
|
2927
|
-
const r = n[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
|
2930
|
+
const r = n[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? Ni(s, r) : "Error", l = `${this.serviceName}: ${a} (${i}).`;
|
|
2928
2931
|
return new te(i, l, r);
|
|
2929
2932
|
}
|
|
2930
2933
|
}
|
|
2931
|
-
function
|
|
2932
|
-
return t.replace(
|
|
2934
|
+
function Ni(t, e) {
|
|
2935
|
+
return t.replace(Mi, (n, r) => {
|
|
2933
2936
|
const i = e[r];
|
|
2934
2937
|
return i != null ? String(i) : `<${r}?>`;
|
|
2935
2938
|
});
|
|
2936
2939
|
}
|
|
2937
|
-
const
|
|
2938
|
-
function
|
|
2940
|
+
const Mi = /\{\$([^}]+)}/g;
|
|
2941
|
+
function Li(t) {
|
|
2939
2942
|
for (const e in t)
|
|
2940
2943
|
if (Object.prototype.hasOwnProperty.call(t, e))
|
|
2941
2944
|
return !1;
|
|
@@ -2949,7 +2952,7 @@ function We(t, e) {
|
|
|
2949
2952
|
if (!r.includes(i))
|
|
2950
2953
|
return !1;
|
|
2951
2954
|
const s = t[i], a = e[i];
|
|
2952
|
-
if (
|
|
2955
|
+
if (Ht(s) && Ht(a)) {
|
|
2953
2956
|
if (!We(s, a))
|
|
2954
2957
|
return !1;
|
|
2955
2958
|
} else if (s !== a)
|
|
@@ -2960,7 +2963,7 @@ function We(t, e) {
|
|
|
2960
2963
|
return !1;
|
|
2961
2964
|
return !0;
|
|
2962
2965
|
}
|
|
2963
|
-
function
|
|
2966
|
+
function Ht(t) {
|
|
2964
2967
|
return t !== null && typeof t == "object";
|
|
2965
2968
|
}
|
|
2966
2969
|
/**
|
|
@@ -2987,11 +2990,11 @@ function Re(t) {
|
|
|
2987
2990
|
}) : e.push(encodeURIComponent(n) + "=" + encodeURIComponent(r));
|
|
2988
2991
|
return e.length ? "&" + e.join("&") : "";
|
|
2989
2992
|
}
|
|
2990
|
-
function
|
|
2991
|
-
const n = new
|
|
2993
|
+
function Bi(t, e) {
|
|
2994
|
+
const n = new ji(t, e);
|
|
2992
2995
|
return n.subscribe.bind(n);
|
|
2993
2996
|
}
|
|
2994
|
-
class
|
|
2997
|
+
class ji {
|
|
2995
2998
|
/**
|
|
2996
2999
|
* @param executor Function which can make calls to a single Observer
|
|
2997
3000
|
* as a proxy.
|
|
@@ -3029,7 +3032,7 @@ class Bi {
|
|
|
3029
3032
|
let i;
|
|
3030
3033
|
if (e === void 0 && n === void 0 && r === void 0)
|
|
3031
3034
|
throw new Error("Missing Observer.");
|
|
3032
|
-
|
|
3035
|
+
Ui(e, [
|
|
3033
3036
|
"next",
|
|
3034
3037
|
"error",
|
|
3035
3038
|
"complete"
|
|
@@ -3037,7 +3040,7 @@ class Bi {
|
|
|
3037
3040
|
next: e,
|
|
3038
3041
|
error: n,
|
|
3039
3042
|
complete: r
|
|
3040
|
-
}, i.next === void 0 && (i.next =
|
|
3043
|
+
}, i.next === void 0 && (i.next = ct), i.error === void 0 && (i.error = ct), i.complete === void 0 && (i.complete = ct);
|
|
3041
3044
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
3042
3045
|
return this.finalized && this.task.then(() => {
|
|
3043
3046
|
try {
|
|
@@ -3075,7 +3078,7 @@ class Bi {
|
|
|
3075
3078
|
}));
|
|
3076
3079
|
}
|
|
3077
3080
|
}
|
|
3078
|
-
function
|
|
3081
|
+
function Ui(t, e) {
|
|
3079
3082
|
if (typeof t != "object" || t === null)
|
|
3080
3083
|
return !1;
|
|
3081
3084
|
for (const n of e)
|
|
@@ -3083,7 +3086,7 @@ function ji(t, e) {
|
|
|
3083
3086
|
return !0;
|
|
3084
3087
|
return !1;
|
|
3085
3088
|
}
|
|
3086
|
-
function
|
|
3089
|
+
function ct() {
|
|
3087
3090
|
}
|
|
3088
3091
|
/**
|
|
3089
3092
|
* @license
|
|
@@ -3160,7 +3163,7 @@ const re = "[DEFAULT]";
|
|
|
3160
3163
|
* See the License for the specific language governing permissions and
|
|
3161
3164
|
* limitations under the License.
|
|
3162
3165
|
*/
|
|
3163
|
-
class
|
|
3166
|
+
class xi {
|
|
3164
3167
|
constructor(e, n) {
|
|
3165
3168
|
this.name = e, this.container = n, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
|
3166
3169
|
}
|
|
@@ -3171,7 +3174,7 @@ class Ui {
|
|
|
3171
3174
|
get(e) {
|
|
3172
3175
|
const n = this.normalizeInstanceIdentifier(e);
|
|
3173
3176
|
if (!this.instancesDeferred.has(n)) {
|
|
3174
|
-
const r = new
|
|
3177
|
+
const r = new ki();
|
|
3175
3178
|
if (this.instancesDeferred.set(n, r), this.isInitialized(n) || this.shouldAutoInitialize())
|
|
3176
3179
|
try {
|
|
3177
3180
|
const i = this.getOrInitializeService({
|
|
@@ -3211,7 +3214,7 @@ class Ui {
|
|
|
3211
3214
|
if (this.component)
|
|
3212
3215
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
3213
3216
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
|
3214
|
-
if (
|
|
3217
|
+
if (Fi(e))
|
|
3215
3218
|
try {
|
|
3216
3219
|
this.getOrInitializeService({ instanceIdentifier: re });
|
|
3217
3220
|
} catch {
|
|
@@ -3298,7 +3301,7 @@ class Ui {
|
|
|
3298
3301
|
getOrInitializeService({ instanceIdentifier: e, options: n = {} }) {
|
|
3299
3302
|
let r = this.instances.get(e);
|
|
3300
3303
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
|
3301
|
-
instanceIdentifier:
|
|
3304
|
+
instanceIdentifier: $i(e),
|
|
3302
3305
|
options: n
|
|
3303
3306
|
}), this.instances.set(e, r), this.instancesOptions.set(e, n), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
|
3304
3307
|
try {
|
|
@@ -3314,10 +3317,10 @@ class Ui {
|
|
|
3314
3317
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
|
3315
3318
|
}
|
|
3316
3319
|
}
|
|
3317
|
-
function
|
|
3320
|
+
function $i(t) {
|
|
3318
3321
|
return t === re ? void 0 : t;
|
|
3319
3322
|
}
|
|
3320
|
-
function
|
|
3323
|
+
function Fi(t) {
|
|
3321
3324
|
return t.instantiationMode === "EAGER";
|
|
3322
3325
|
}
|
|
3323
3326
|
/**
|
|
@@ -3336,7 +3339,7 @@ function $i(t) {
|
|
|
3336
3339
|
* See the License for the specific language governing permissions and
|
|
3337
3340
|
* limitations under the License.
|
|
3338
3341
|
*/
|
|
3339
|
-
class
|
|
3342
|
+
class Hi {
|
|
3340
3343
|
constructor(e) {
|
|
3341
3344
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
|
3342
3345
|
}
|
|
@@ -3368,7 +3371,7 @@ class Fi {
|
|
|
3368
3371
|
getProvider(e) {
|
|
3369
3372
|
if (this.providers.has(e))
|
|
3370
3373
|
return this.providers.get(e);
|
|
3371
|
-
const n = new
|
|
3374
|
+
const n = new xi(e, this);
|
|
3372
3375
|
return this.providers.set(e, n), n;
|
|
3373
3376
|
}
|
|
3374
3377
|
getProviders() {
|
|
@@ -3395,29 +3398,29 @@ var k;
|
|
|
3395
3398
|
(function(t) {
|
|
3396
3399
|
t[t.DEBUG = 0] = "DEBUG", t[t.VERBOSE = 1] = "VERBOSE", t[t.INFO = 2] = "INFO", t[t.WARN = 3] = "WARN", t[t.ERROR = 4] = "ERROR", t[t.SILENT = 5] = "SILENT";
|
|
3397
3400
|
})(k || (k = {}));
|
|
3398
|
-
const
|
|
3401
|
+
const qi = {
|
|
3399
3402
|
debug: k.DEBUG,
|
|
3400
3403
|
verbose: k.VERBOSE,
|
|
3401
3404
|
info: k.INFO,
|
|
3402
3405
|
warn: k.WARN,
|
|
3403
3406
|
error: k.ERROR,
|
|
3404
3407
|
silent: k.SILENT
|
|
3405
|
-
},
|
|
3408
|
+
}, Vi = k.INFO, zi = {
|
|
3406
3409
|
[k.DEBUG]: "log",
|
|
3407
3410
|
[k.VERBOSE]: "log",
|
|
3408
3411
|
[k.INFO]: "info",
|
|
3409
3412
|
[k.WARN]: "warn",
|
|
3410
3413
|
[k.ERROR]: "error"
|
|
3411
|
-
},
|
|
3414
|
+
}, Wi = (t, e, ...n) => {
|
|
3412
3415
|
if (e < t.logLevel)
|
|
3413
3416
|
return;
|
|
3414
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
|
3417
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = zi[e];
|
|
3415
3418
|
if (i)
|
|
3416
3419
|
console[i](`[${r}] ${t.name}:`, ...n);
|
|
3417
3420
|
else
|
|
3418
3421
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
|
3419
3422
|
};
|
|
3420
|
-
class
|
|
3423
|
+
class jn {
|
|
3421
3424
|
/**
|
|
3422
3425
|
* Gives you an instance of a Logger to capture messages according to
|
|
3423
3426
|
* Firebase's logging scheme.
|
|
@@ -3425,7 +3428,7 @@ class Bn {
|
|
|
3425
3428
|
* @param name The name that the logs will be associated with
|
|
3426
3429
|
*/
|
|
3427
3430
|
constructor(e) {
|
|
3428
|
-
this.name = e, this._logLevel =
|
|
3431
|
+
this.name = e, this._logLevel = Vi, this._logHandler = Wi, this._userLogHandler = null;
|
|
3429
3432
|
}
|
|
3430
3433
|
get logLevel() {
|
|
3431
3434
|
return this._logLevel;
|
|
@@ -3437,7 +3440,7 @@ class Bn {
|
|
|
3437
3440
|
}
|
|
3438
3441
|
// Workaround for setter/getter having to be the same type.
|
|
3439
3442
|
setLogLevel(e) {
|
|
3440
|
-
this._logLevel = typeof e == "string" ?
|
|
3443
|
+
this._logLevel = typeof e == "string" ? qi[e] : e;
|
|
3441
3444
|
}
|
|
3442
3445
|
get logHandler() {
|
|
3443
3446
|
return this._logHandler;
|
|
@@ -3472,10 +3475,10 @@ class Bn {
|
|
|
3472
3475
|
this._userLogHandler && this._userLogHandler(this, k.ERROR, ...e), this._logHandler(this, k.ERROR, ...e);
|
|
3473
3476
|
}
|
|
3474
3477
|
}
|
|
3475
|
-
const
|
|
3476
|
-
let
|
|
3477
|
-
function
|
|
3478
|
-
return
|
|
3478
|
+
const Gi = (t, e) => e.some((n) => t instanceof n);
|
|
3479
|
+
let qt, Vt;
|
|
3480
|
+
function Ki() {
|
|
3481
|
+
return qt || (qt = [
|
|
3479
3482
|
IDBDatabase,
|
|
3480
3483
|
IDBObjectStore,
|
|
3481
3484
|
IDBIndex,
|
|
@@ -3483,15 +3486,15 @@ function Gi() {
|
|
|
3483
3486
|
IDBTransaction
|
|
3484
3487
|
]);
|
|
3485
3488
|
}
|
|
3486
|
-
function
|
|
3487
|
-
return
|
|
3489
|
+
function Ji() {
|
|
3490
|
+
return Vt || (Vt = [
|
|
3488
3491
|
IDBCursor.prototype.advance,
|
|
3489
3492
|
IDBCursor.prototype.continue,
|
|
3490
3493
|
IDBCursor.prototype.continuePrimaryKey
|
|
3491
3494
|
]);
|
|
3492
3495
|
}
|
|
3493
|
-
const
|
|
3494
|
-
function
|
|
3496
|
+
const Un = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap();
|
|
3497
|
+
function Yi(t) {
|
|
3495
3498
|
const e = new Promise((n, r) => {
|
|
3496
3499
|
const i = () => {
|
|
3497
3500
|
t.removeEventListener("success", s), t.removeEventListener("error", a);
|
|
@@ -3503,12 +3506,12 @@ function Ji(t) {
|
|
|
3503
3506
|
t.addEventListener("success", s), t.addEventListener("error", a);
|
|
3504
3507
|
});
|
|
3505
3508
|
return e.then((n) => {
|
|
3506
|
-
n instanceof IDBCursor &&
|
|
3509
|
+
n instanceof IDBCursor && Un.set(n, t);
|
|
3507
3510
|
}).catch(() => {
|
|
3508
|
-
}),
|
|
3511
|
+
}), Pt.set(e, t), e;
|
|
3509
3512
|
}
|
|
3510
|
-
function
|
|
3511
|
-
if (
|
|
3513
|
+
function Xi(t) {
|
|
3514
|
+
if (bt.has(t))
|
|
3512
3515
|
return;
|
|
3513
3516
|
const e = new Promise((n, r) => {
|
|
3514
3517
|
const i = () => {
|
|
@@ -3520,15 +3523,15 @@ function Yi(t) {
|
|
|
3520
3523
|
};
|
|
3521
3524
|
t.addEventListener("complete", s), t.addEventListener("error", a), t.addEventListener("abort", a);
|
|
3522
3525
|
});
|
|
3523
|
-
|
|
3526
|
+
bt.set(t, e);
|
|
3524
3527
|
}
|
|
3525
|
-
let
|
|
3528
|
+
let vt = {
|
|
3526
3529
|
get(t, e, n) {
|
|
3527
3530
|
if (t instanceof IDBTransaction) {
|
|
3528
3531
|
if (e === "done")
|
|
3529
|
-
return
|
|
3532
|
+
return bt.get(t);
|
|
3530
3533
|
if (e === "objectStoreNames")
|
|
3531
|
-
return t.objectStoreNames ||
|
|
3534
|
+
return t.objectStoreNames || xn.get(t);
|
|
3532
3535
|
if (e === "store")
|
|
3533
3536
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
|
3534
3537
|
}
|
|
@@ -3541,32 +3544,32 @@ let bt = {
|
|
|
3541
3544
|
return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
|
|
3542
3545
|
}
|
|
3543
3546
|
};
|
|
3544
|
-
function Xi(t) {
|
|
3545
|
-
bt = t(bt);
|
|
3546
|
-
}
|
|
3547
3547
|
function Qi(t) {
|
|
3548
|
+
vt = t(vt);
|
|
3549
|
+
}
|
|
3550
|
+
function Zi(t) {
|
|
3548
3551
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
3549
|
-
const r = t.call(
|
|
3550
|
-
return
|
|
3551
|
-
} :
|
|
3552
|
-
return t.apply(
|
|
3552
|
+
const r = t.call(ut(this), e, ...n);
|
|
3553
|
+
return xn.set(r, e.sort ? e.sort() : [e]), Q(r);
|
|
3554
|
+
} : Ji().includes(t) ? function(...e) {
|
|
3555
|
+
return t.apply(ut(this), e), Q(Un.get(this));
|
|
3553
3556
|
} : function(...e) {
|
|
3554
|
-
return Q(t.apply(
|
|
3557
|
+
return Q(t.apply(ut(this), e));
|
|
3555
3558
|
};
|
|
3556
3559
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return typeof t == "function" ?
|
|
3560
|
+
function es(t) {
|
|
3561
|
+
return typeof t == "function" ? Zi(t) : (t instanceof IDBTransaction && Xi(t), Gi(t, Ki()) ? new Proxy(t, vt) : t);
|
|
3559
3562
|
}
|
|
3560
3563
|
function Q(t) {
|
|
3561
3564
|
if (t instanceof IDBRequest)
|
|
3562
|
-
return
|
|
3563
|
-
if (
|
|
3564
|
-
return
|
|
3565
|
-
const e =
|
|
3566
|
-
return e !== t && (
|
|
3567
|
-
}
|
|
3568
|
-
const
|
|
3569
|
-
function
|
|
3565
|
+
return Yi(t);
|
|
3566
|
+
if (lt.has(t))
|
|
3567
|
+
return lt.get(t);
|
|
3568
|
+
const e = es(t);
|
|
3569
|
+
return e !== t && (lt.set(t, e), Pt.set(e, t)), e;
|
|
3570
|
+
}
|
|
3571
|
+
const ut = (t) => Pt.get(t);
|
|
3572
|
+
function ts(t, e, { blocked: n, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
3570
3573
|
const a = indexedDB.open(t, e), l = Q(a);
|
|
3571
3574
|
return r && a.addEventListener("upgradeneeded", (u) => {
|
|
3572
3575
|
r(Q(a.result), u.oldVersion, u.newVersion, Q(a.transaction), u);
|
|
@@ -3580,16 +3583,16 @@ function es(t, e, { blocked: n, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
3580
3583
|
}).catch(() => {
|
|
3581
3584
|
}), l;
|
|
3582
3585
|
}
|
|
3583
|
-
const
|
|
3584
|
-
function
|
|
3586
|
+
const ns = ["get", "getKey", "getAll", "getAllKeys", "count"], rs = ["put", "add", "delete", "clear"], dt = /* @__PURE__ */ new Map();
|
|
3587
|
+
function zt(t, e) {
|
|
3585
3588
|
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
3586
3589
|
return;
|
|
3587
|
-
if (
|
|
3588
|
-
return
|
|
3589
|
-
const n = e.replace(/FromIndex$/, ""), r = e !== n, i =
|
|
3590
|
+
if (dt.get(e))
|
|
3591
|
+
return dt.get(e);
|
|
3592
|
+
const n = e.replace(/FromIndex$/, ""), r = e !== n, i = rs.includes(n);
|
|
3590
3593
|
if (
|
|
3591
3594
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
3592
|
-
!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
|
3595
|
+
!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || ns.includes(n))
|
|
3593
3596
|
)
|
|
3594
3597
|
return;
|
|
3595
3598
|
const s = async function(a, ...l) {
|
|
@@ -3600,12 +3603,12 @@ function Vt(t, e) {
|
|
|
3600
3603
|
i && u.done
|
|
3601
3604
|
]))[0];
|
|
3602
3605
|
};
|
|
3603
|
-
return
|
|
3606
|
+
return dt.set(e, s), s;
|
|
3604
3607
|
}
|
|
3605
|
-
|
|
3608
|
+
Qi((t) => ({
|
|
3606
3609
|
...t,
|
|
3607
|
-
get: (e, n, r) =>
|
|
3608
|
-
has: (e, n) => !!
|
|
3610
|
+
get: (e, n, r) => zt(e, n) || t.get(e, n, r),
|
|
3611
|
+
has: (e, n) => !!zt(e, n) || t.has(e, n)
|
|
3609
3612
|
}));
|
|
3610
3613
|
/**
|
|
3611
3614
|
* @license
|
|
@@ -3623,7 +3626,7 @@ Xi((t) => ({
|
|
|
3623
3626
|
* See the License for the specific language governing permissions and
|
|
3624
3627
|
* limitations under the License.
|
|
3625
3628
|
*/
|
|
3626
|
-
class
|
|
3629
|
+
class is {
|
|
3627
3630
|
constructor(e) {
|
|
3628
3631
|
this.container = e;
|
|
3629
3632
|
}
|
|
@@ -3631,7 +3634,7 @@ class rs {
|
|
|
3631
3634
|
// auth token refresh, and installations will send this string.
|
|
3632
3635
|
getPlatformInfoString() {
|
|
3633
3636
|
return this.container.getProviders().map((n) => {
|
|
3634
|
-
if (
|
|
3637
|
+
if (ss(n)) {
|
|
3635
3638
|
const r = n.getImmediate();
|
|
3636
3639
|
return `${r.library}/${r.version}`;
|
|
3637
3640
|
} else
|
|
@@ -3639,11 +3642,11 @@ class rs {
|
|
|
3639
3642
|
}).filter((n) => n).join(" ");
|
|
3640
3643
|
}
|
|
3641
3644
|
}
|
|
3642
|
-
function
|
|
3645
|
+
function ss(t) {
|
|
3643
3646
|
const e = t.getComponent();
|
|
3644
3647
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
3645
3648
|
}
|
|
3646
|
-
const
|
|
3649
|
+
const _t = "@firebase/app", Wt = "0.10.13";
|
|
3647
3650
|
/**
|
|
3648
3651
|
* @license
|
|
3649
3652
|
* Copyright 2019 Google LLC
|
|
@@ -3660,7 +3663,7 @@ const vt = "@firebase/app", zt = "0.10.13";
|
|
|
3660
3663
|
* See the License for the specific language governing permissions and
|
|
3661
3664
|
* limitations under the License.
|
|
3662
3665
|
*/
|
|
3663
|
-
const F = new
|
|
3666
|
+
const F = new jn("@firebase/app"), as = "@firebase/app-compat", os = "@firebase/analytics-compat", cs = "@firebase/analytics", ls = "@firebase/app-check-compat", us = "@firebase/app-check", ds = "@firebase/auth", hs = "@firebase/auth-compat", ps = "@firebase/database", fs = "@firebase/data-connect", ms = "@firebase/database-compat", gs = "@firebase/functions", ys = "@firebase/functions-compat", bs = "@firebase/installations", vs = "@firebase/installations-compat", _s = "@firebase/messaging", Is = "@firebase/messaging-compat", ws = "@firebase/performance", Ts = "@firebase/performance-compat", ks = "@firebase/remote-config", Ss = "@firebase/remote-config-compat", Es = "@firebase/storage", Rs = "@firebase/storage-compat", As = "@firebase/firestore", Cs = "@firebase/vertexai-preview", Ps = "@firebase/firestore-compat", Os = "firebase", Ds = "10.14.1";
|
|
3664
3667
|
/**
|
|
3665
3668
|
* @license
|
|
3666
3669
|
* Copyright 2019 Google LLC
|
|
@@ -3677,35 +3680,35 @@ const F = new Bn("@firebase/app"), ss = "@firebase/app-compat", as = "@firebase/
|
|
|
3677
3680
|
* See the License for the specific language governing permissions and
|
|
3678
3681
|
* limitations under the License.
|
|
3679
3682
|
*/
|
|
3680
|
-
const
|
|
3681
|
-
[
|
|
3682
|
-
[
|
|
3683
|
-
[
|
|
3684
|
-
[
|
|
3685
|
-
[
|
|
3686
|
-
[
|
|
3687
|
-
[
|
|
3688
|
-
[
|
|
3689
|
-
[
|
|
3690
|
-
[
|
|
3691
|
-
[
|
|
3692
|
-
[
|
|
3693
|
-
[
|
|
3694
|
-
[
|
|
3695
|
-
[
|
|
3696
|
-
[
|
|
3697
|
-
[
|
|
3698
|
-
[
|
|
3699
|
-
[
|
|
3700
|
-
[
|
|
3701
|
-
[
|
|
3702
|
-
[
|
|
3703
|
-
[
|
|
3704
|
-
[
|
|
3705
|
-
[
|
|
3706
|
-
[
|
|
3683
|
+
const It = "[DEFAULT]", Ns = {
|
|
3684
|
+
[_t]: "fire-core",
|
|
3685
|
+
[as]: "fire-core-compat",
|
|
3686
|
+
[cs]: "fire-analytics",
|
|
3687
|
+
[os]: "fire-analytics-compat",
|
|
3688
|
+
[us]: "fire-app-check",
|
|
3689
|
+
[ls]: "fire-app-check-compat",
|
|
3690
|
+
[ds]: "fire-auth",
|
|
3691
|
+
[hs]: "fire-auth-compat",
|
|
3692
|
+
[ps]: "fire-rtdb",
|
|
3693
|
+
[fs]: "fire-data-connect",
|
|
3694
|
+
[ms]: "fire-rtdb-compat",
|
|
3695
|
+
[gs]: "fire-fn",
|
|
3696
|
+
[ys]: "fire-fn-compat",
|
|
3697
|
+
[bs]: "fire-iid",
|
|
3698
|
+
[vs]: "fire-iid-compat",
|
|
3699
|
+
[_s]: "fire-fcm",
|
|
3700
|
+
[Is]: "fire-fcm-compat",
|
|
3701
|
+
[ws]: "fire-perf",
|
|
3702
|
+
[Ts]: "fire-perf-compat",
|
|
3703
|
+
[ks]: "fire-rc",
|
|
3704
|
+
[Ss]: "fire-rc-compat",
|
|
3705
|
+
[Es]: "fire-gcs",
|
|
3706
|
+
[Rs]: "fire-gcs-compat",
|
|
3707
|
+
[As]: "fire-fst",
|
|
3708
|
+
[Ps]: "fire-fst-compat",
|
|
3709
|
+
[Cs]: "fire-vertex",
|
|
3707
3710
|
"fire-js": "fire-js",
|
|
3708
|
-
[
|
|
3711
|
+
[Os]: "fire-js-all"
|
|
3709
3712
|
};
|
|
3710
3713
|
/**
|
|
3711
3714
|
* @license
|
|
@@ -3723,8 +3726,8 @@ const _t = "[DEFAULT]", Ds = {
|
|
|
3723
3726
|
* See the License for the specific language governing permissions and
|
|
3724
3727
|
* limitations under the License.
|
|
3725
3728
|
*/
|
|
3726
|
-
const Ge = /* @__PURE__ */ new Map(),
|
|
3727
|
-
function
|
|
3729
|
+
const Ge = /* @__PURE__ */ new Map(), Ms = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
|
|
3730
|
+
function Gt(t, e) {
|
|
3728
3731
|
try {
|
|
3729
3732
|
t.container.addComponent(e);
|
|
3730
3733
|
} catch (n) {
|
|
@@ -3733,16 +3736,16 @@ function Wt(t, e) {
|
|
|
3733
3736
|
}
|
|
3734
3737
|
function Te(t) {
|
|
3735
3738
|
const e = t.name;
|
|
3736
|
-
if (
|
|
3739
|
+
if (wt.has(e))
|
|
3737
3740
|
return F.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
3738
|
-
|
|
3741
|
+
wt.set(e, t);
|
|
3739
3742
|
for (const n of Ge.values())
|
|
3740
|
-
|
|
3741
|
-
for (const n of
|
|
3742
|
-
|
|
3743
|
+
Gt(n, t);
|
|
3744
|
+
for (const n of Ms.values())
|
|
3745
|
+
Gt(n, t);
|
|
3743
3746
|
return !0;
|
|
3744
3747
|
}
|
|
3745
|
-
function
|
|
3748
|
+
function $n(t, e) {
|
|
3746
3749
|
const n = t.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
|
3747
3750
|
return n && n.triggerHeartbeat(), t.container.getProvider(e);
|
|
3748
3751
|
}
|
|
@@ -3765,7 +3768,7 @@ function j(t) {
|
|
|
3765
3768
|
* See the License for the specific language governing permissions and
|
|
3766
3769
|
* limitations under the License.
|
|
3767
3770
|
*/
|
|
3768
|
-
const
|
|
3771
|
+
const Ls = {
|
|
3769
3772
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
|
3770
3773
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
|
3771
3774
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
|
@@ -3780,7 +3783,7 @@ const Ms = {
|
|
|
3780
3783
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
3781
3784
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
3782
3785
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
3783
|
-
}, Z = new Ee("app", "Firebase",
|
|
3786
|
+
}, Z = new Ee("app", "Firebase", Ls);
|
|
3784
3787
|
/**
|
|
3785
3788
|
* @license
|
|
3786
3789
|
* Copyright 2019 Google LLC
|
|
@@ -3797,7 +3800,7 @@ const Ms = {
|
|
|
3797
3800
|
* See the License for the specific language governing permissions and
|
|
3798
3801
|
* limitations under the License.
|
|
3799
3802
|
*/
|
|
3800
|
-
class
|
|
3803
|
+
class Bs {
|
|
3801
3804
|
constructor(e, n, r) {
|
|
3802
3805
|
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, n), this._name = n.name, this._automaticDataCollectionEnabled = n.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new he(
|
|
3803
3806
|
"app",
|
|
@@ -3855,16 +3858,16 @@ class Ls {
|
|
|
3855
3858
|
* See the License for the specific language governing permissions and
|
|
3856
3859
|
* limitations under the License.
|
|
3857
3860
|
*/
|
|
3858
|
-
const Ae =
|
|
3859
|
-
function
|
|
3861
|
+
const Ae = Ds;
|
|
3862
|
+
function Fn(t, e = {}) {
|
|
3860
3863
|
let n = t;
|
|
3861
3864
|
typeof e != "object" && (e = { name: e });
|
|
3862
|
-
const r = Object.assign({ name:
|
|
3865
|
+
const r = Object.assign({ name: It, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
3863
3866
|
if (typeof i != "string" || !i)
|
|
3864
3867
|
throw Z.create("bad-app-name", {
|
|
3865
3868
|
appName: String(i)
|
|
3866
3869
|
});
|
|
3867
|
-
if (n || (n =
|
|
3870
|
+
if (n || (n = Ln()), !n)
|
|
3868
3871
|
throw Z.create(
|
|
3869
3872
|
"no-options"
|
|
3870
3873
|
/* AppError.NO_OPTIONS */
|
|
@@ -3875,23 +3878,23 @@ function $n(t, e = {}) {
|
|
|
3875
3878
|
return s;
|
|
3876
3879
|
throw Z.create("duplicate-app", { appName: i });
|
|
3877
3880
|
}
|
|
3878
|
-
const a = new
|
|
3879
|
-
for (const u of
|
|
3881
|
+
const a = new Hi(i);
|
|
3882
|
+
for (const u of wt.values())
|
|
3880
3883
|
a.addComponent(u);
|
|
3881
|
-
const l = new
|
|
3884
|
+
const l = new Bs(n, r, a);
|
|
3882
3885
|
return Ge.set(i, l), l;
|
|
3883
3886
|
}
|
|
3884
|
-
function
|
|
3887
|
+
function js(t = It) {
|
|
3885
3888
|
const e = Ge.get(t);
|
|
3886
|
-
if (!e && t ===
|
|
3887
|
-
return
|
|
3889
|
+
if (!e && t === It && Ln())
|
|
3890
|
+
return Fn();
|
|
3888
3891
|
if (!e)
|
|
3889
3892
|
throw Z.create("no-app", { appName: t });
|
|
3890
3893
|
return e;
|
|
3891
3894
|
}
|
|
3892
3895
|
function ce(t, e, n) {
|
|
3893
3896
|
var r;
|
|
3894
|
-
let i = (r =
|
|
3897
|
+
let i = (r = Ns[t]) !== null && r !== void 0 ? r : t;
|
|
3895
3898
|
n && (i += `-${n}`);
|
|
3896
3899
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
|
3897
3900
|
if (s || a) {
|
|
@@ -3924,10 +3927,10 @@ function ce(t, e, n) {
|
|
|
3924
3927
|
* See the License for the specific language governing permissions and
|
|
3925
3928
|
* limitations under the License.
|
|
3926
3929
|
*/
|
|
3927
|
-
const
|
|
3928
|
-
let
|
|
3929
|
-
function
|
|
3930
|
-
return
|
|
3930
|
+
const Us = "firebase-heartbeat-database", xs = 1, ke = "firebase-heartbeat-store";
|
|
3931
|
+
let ht = null;
|
|
3932
|
+
function Hn() {
|
|
3933
|
+
return ht || (ht = ts(Us, xs, {
|
|
3931
3934
|
upgrade: (t, e) => {
|
|
3932
3935
|
switch (e) {
|
|
3933
3936
|
case 0:
|
|
@@ -3942,11 +3945,11 @@ function Fn() {
|
|
|
3942
3945
|
throw Z.create("idb-open", {
|
|
3943
3946
|
originalErrorMessage: t.message
|
|
3944
3947
|
});
|
|
3945
|
-
})),
|
|
3948
|
+
})), ht;
|
|
3946
3949
|
}
|
|
3947
|
-
async function
|
|
3950
|
+
async function $s(t) {
|
|
3948
3951
|
try {
|
|
3949
|
-
const n = (await
|
|
3952
|
+
const n = (await Hn()).transaction(ke), r = await n.objectStore(ke).get(qn(t));
|
|
3950
3953
|
return await n.done, r;
|
|
3951
3954
|
} catch (e) {
|
|
3952
3955
|
if (e instanceof te)
|
|
@@ -3959,10 +3962,10 @@ async function xs(t) {
|
|
|
3959
3962
|
}
|
|
3960
3963
|
}
|
|
3961
3964
|
}
|
|
3962
|
-
async function
|
|
3965
|
+
async function Kt(t, e) {
|
|
3963
3966
|
try {
|
|
3964
|
-
const r = (await
|
|
3965
|
-
await r.objectStore(ke).put(e,
|
|
3967
|
+
const r = (await Hn()).transaction(ke, "readwrite");
|
|
3968
|
+
await r.objectStore(ke).put(e, qn(t)), await r.done;
|
|
3966
3969
|
} catch (n) {
|
|
3967
3970
|
if (n instanceof te)
|
|
3968
3971
|
F.warn(n.message);
|
|
@@ -3974,7 +3977,7 @@ async function Gt(t, e) {
|
|
|
3974
3977
|
}
|
|
3975
3978
|
}
|
|
3976
3979
|
}
|
|
3977
|
-
function
|
|
3980
|
+
function qn(t) {
|
|
3978
3981
|
return `${t.name}!${t.options.appId}`;
|
|
3979
3982
|
}
|
|
3980
3983
|
/**
|
|
@@ -3993,12 +3996,12 @@ function Hn(t) {
|
|
|
3993
3996
|
* See the License for the specific language governing permissions and
|
|
3994
3997
|
* limitations under the License.
|
|
3995
3998
|
*/
|
|
3996
|
-
const
|
|
3997
|
-
class
|
|
3999
|
+
const Fs = 1024, Hs = 30 * 24 * 60 * 60 * 1e3;
|
|
4000
|
+
class qs {
|
|
3998
4001
|
constructor(e) {
|
|
3999
4002
|
this.container = e, this._heartbeatsCache = null;
|
|
4000
4003
|
const n = this.container.getProvider("app").getImmediate();
|
|
4001
|
-
this._storage = new
|
|
4004
|
+
this._storage = new zs(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
|
4002
4005
|
}
|
|
4003
4006
|
/**
|
|
4004
4007
|
* Called to report a heartbeat. The function will generate
|
|
@@ -4010,10 +4013,10 @@ class Hs {
|
|
|
4010
4013
|
async triggerHeartbeat() {
|
|
4011
4014
|
var e, n;
|
|
4012
4015
|
try {
|
|
4013
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
|
4016
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = Jt();
|
|
4014
4017
|
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 === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
|
4015
4018
|
const l = new Date(a.date).valueOf();
|
|
4016
|
-
return Date.now() - l <=
|
|
4019
|
+
return Date.now() - l <= Hs;
|
|
4017
4020
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4018
4021
|
} catch (r) {
|
|
4019
4022
|
F.warn(r);
|
|
@@ -4031,30 +4034,30 @@ class Hs {
|
|
|
4031
4034
|
try {
|
|
4032
4035
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
|
4033
4036
|
return "";
|
|
4034
|
-
const n =
|
|
4037
|
+
const n = Jt(), { heartbeatsToSend: r, unsentEntries: i } = Vs(this._heartbeatsCache.heartbeats), s = Nn(JSON.stringify({ version: 2, heartbeats: r }));
|
|
4035
4038
|
return this._heartbeatsCache.lastSentHeartbeatDate = n, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
|
|
4036
4039
|
} catch (n) {
|
|
4037
4040
|
return F.warn(n), "";
|
|
4038
4041
|
}
|
|
4039
4042
|
}
|
|
4040
4043
|
}
|
|
4041
|
-
function
|
|
4044
|
+
function Jt() {
|
|
4042
4045
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
4043
4046
|
}
|
|
4044
|
-
function
|
|
4047
|
+
function Vs(t, e = Fs) {
|
|
4045
4048
|
const n = [];
|
|
4046
4049
|
let r = t.slice();
|
|
4047
4050
|
for (const i of t) {
|
|
4048
4051
|
const s = n.find((a) => a.agent === i.agent);
|
|
4049
4052
|
if (s) {
|
|
4050
|
-
if (s.dates.push(i.date),
|
|
4053
|
+
if (s.dates.push(i.date), Yt(n) > e) {
|
|
4051
4054
|
s.dates.pop();
|
|
4052
4055
|
break;
|
|
4053
4056
|
}
|
|
4054
4057
|
} else if (n.push({
|
|
4055
4058
|
agent: i.agent,
|
|
4056
4059
|
dates: [i.date]
|
|
4057
|
-
}),
|
|
4060
|
+
}), Yt(n) > e) {
|
|
4058
4061
|
n.pop();
|
|
4059
4062
|
break;
|
|
4060
4063
|
}
|
|
@@ -4065,19 +4068,19 @@ function qs(t, e = $s) {
|
|
|
4065
4068
|
unsentEntries: r
|
|
4066
4069
|
};
|
|
4067
4070
|
}
|
|
4068
|
-
class
|
|
4071
|
+
class zs {
|
|
4069
4072
|
constructor(e) {
|
|
4070
4073
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
4071
4074
|
}
|
|
4072
4075
|
async runIndexedDBEnvironmentCheck() {
|
|
4073
|
-
return
|
|
4076
|
+
return Pi() ? Oi().then(() => !0).catch(() => !1) : !1;
|
|
4074
4077
|
}
|
|
4075
4078
|
/**
|
|
4076
4079
|
* Read all heartbeats.
|
|
4077
4080
|
*/
|
|
4078
4081
|
async read() {
|
|
4079
4082
|
if (await this._canUseIndexedDBPromise) {
|
|
4080
|
-
const n = await
|
|
4083
|
+
const n = await $s(this.app);
|
|
4081
4084
|
return n != null && n.heartbeats ? n : { heartbeats: [] };
|
|
4082
4085
|
} else
|
|
4083
4086
|
return { heartbeats: [] };
|
|
@@ -4087,7 +4090,7 @@ class Vs {
|
|
|
4087
4090
|
var n;
|
|
4088
4091
|
if (await this._canUseIndexedDBPromise) {
|
|
4089
4092
|
const i = await this.read();
|
|
4090
|
-
return
|
|
4093
|
+
return Kt(this.app, {
|
|
4091
4094
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : i.lastSentHeartbeatDate,
|
|
4092
4095
|
heartbeats: e.heartbeats
|
|
4093
4096
|
});
|
|
@@ -4099,7 +4102,7 @@ class Vs {
|
|
|
4099
4102
|
var n;
|
|
4100
4103
|
if (await this._canUseIndexedDBPromise) {
|
|
4101
4104
|
const i = await this.read();
|
|
4102
|
-
return
|
|
4105
|
+
return Kt(this.app, {
|
|
4103
4106
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : i.lastSentHeartbeatDate,
|
|
4104
4107
|
heartbeats: [
|
|
4105
4108
|
...i.heartbeats,
|
|
@@ -4110,8 +4113,8 @@ class Vs {
|
|
|
4110
4113
|
return;
|
|
4111
4114
|
}
|
|
4112
4115
|
}
|
|
4113
|
-
function
|
|
4114
|
-
return
|
|
4116
|
+
function Yt(t) {
|
|
4117
|
+
return Nn(
|
|
4115
4118
|
// heartbeatsCache wrapper properties
|
|
4116
4119
|
JSON.stringify({ version: 2, heartbeats: t })
|
|
4117
4120
|
).length;
|
|
@@ -4132,21 +4135,21 @@ function Jt(t) {
|
|
|
4132
4135
|
* See the License for the specific language governing permissions and
|
|
4133
4136
|
* limitations under the License.
|
|
4134
4137
|
*/
|
|
4135
|
-
function
|
|
4138
|
+
function Ws(t) {
|
|
4136
4139
|
Te(new he(
|
|
4137
4140
|
"platform-logger",
|
|
4138
|
-
(e) => new
|
|
4141
|
+
(e) => new is(e),
|
|
4139
4142
|
"PRIVATE"
|
|
4140
4143
|
/* ComponentType.PRIVATE */
|
|
4141
4144
|
)), Te(new he(
|
|
4142
4145
|
"heartbeat",
|
|
4143
|
-
(e) => new
|
|
4146
|
+
(e) => new qs(e),
|
|
4144
4147
|
"PRIVATE"
|
|
4145
4148
|
/* ComponentType.PRIVATE */
|
|
4146
|
-
)), ce(
|
|
4149
|
+
)), ce(_t, Wt, t), ce(_t, Wt, "esm2017"), ce("fire-js", "");
|
|
4147
4150
|
}
|
|
4148
|
-
|
|
4149
|
-
var
|
|
4151
|
+
Ws("");
|
|
4152
|
+
var Gs = "firebase", Ks = "10.14.1";
|
|
4150
4153
|
/**
|
|
4151
4154
|
* @license
|
|
4152
4155
|
* Copyright 2020 Google LLC
|
|
@@ -4163,17 +4166,17 @@ var Ws = "firebase", Gs = "10.14.1";
|
|
|
4163
4166
|
* See the License for the specific language governing permissions and
|
|
4164
4167
|
* limitations under the License.
|
|
4165
4168
|
*/
|
|
4166
|
-
ce(
|
|
4167
|
-
var
|
|
4168
|
-
return
|
|
4169
|
+
ce(Gs, Ks, "app");
|
|
4170
|
+
var Xt = function() {
|
|
4171
|
+
return Xt = Object.assign || function(e) {
|
|
4169
4172
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
4170
4173
|
n = arguments[r];
|
|
4171
4174
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (e[s] = n[s]);
|
|
4172
4175
|
}
|
|
4173
4176
|
return e;
|
|
4174
|
-
},
|
|
4177
|
+
}, Xt.apply(this, arguments);
|
|
4175
4178
|
};
|
|
4176
|
-
function
|
|
4179
|
+
function Ot(t, e) {
|
|
4177
4180
|
var n = {};
|
|
4178
4181
|
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
4179
4182
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -4181,12 +4184,12 @@ function Pt(t, e) {
|
|
|
4181
4184
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
|
|
4182
4185
|
return n;
|
|
4183
4186
|
}
|
|
4184
|
-
function
|
|
4187
|
+
function Vn() {
|
|
4185
4188
|
return {
|
|
4186
4189
|
"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."
|
|
4187
4190
|
};
|
|
4188
4191
|
}
|
|
4189
|
-
const
|
|
4192
|
+
const Js = Vn, zn = new Ee("auth", "Firebase", Vn());
|
|
4190
4193
|
/**
|
|
4191
4194
|
* @license
|
|
4192
4195
|
* Copyright 2020 Google LLC
|
|
@@ -4203,8 +4206,8 @@ const Ks = qn, Vn = new Ee("auth", "Firebase", qn());
|
|
|
4203
4206
|
* See the License for the specific language governing permissions and
|
|
4204
4207
|
* limitations under the License.
|
|
4205
4208
|
*/
|
|
4206
|
-
const Ke = new
|
|
4207
|
-
function
|
|
4209
|
+
const Ke = new jn("@firebase/auth");
|
|
4210
|
+
function Ys(t, ...e) {
|
|
4208
4211
|
Ke.logLevel <= k.WARN && Ke.warn(`Auth (${Ae}): ${t}`, ...e);
|
|
4209
4212
|
}
|
|
4210
4213
|
function xe(t, ...e) {
|
|
@@ -4227,30 +4230,30 @@ function xe(t, ...e) {
|
|
|
4227
4230
|
* limitations under the License.
|
|
4228
4231
|
*/
|
|
4229
4232
|
function H(t, ...e) {
|
|
4230
|
-
throw
|
|
4233
|
+
throw Dt(t, ...e);
|
|
4231
4234
|
}
|
|
4232
4235
|
function M(t, ...e) {
|
|
4233
|
-
return
|
|
4236
|
+
return Dt(t, ...e);
|
|
4234
4237
|
}
|
|
4235
|
-
function
|
|
4236
|
-
const r = Object.assign(Object.assign({},
|
|
4238
|
+
function Wn(t, e, n) {
|
|
4239
|
+
const r = Object.assign(Object.assign({}, Js()), { [e]: n });
|
|
4237
4240
|
return new Ee("auth", "Firebase", r).create(e, {
|
|
4238
4241
|
appName: t.name
|
|
4239
4242
|
});
|
|
4240
4243
|
}
|
|
4241
4244
|
function ee(t) {
|
|
4242
|
-
return
|
|
4245
|
+
return Wn(t, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
4243
4246
|
}
|
|
4244
|
-
function
|
|
4247
|
+
function Dt(t, ...e) {
|
|
4245
4248
|
if (typeof t != "string") {
|
|
4246
4249
|
const n = e[0], r = [...e.slice(1)];
|
|
4247
4250
|
return r[0] && (r[0].appName = t.name), t._errorFactory.create(n, ...r);
|
|
4248
4251
|
}
|
|
4249
|
-
return
|
|
4252
|
+
return zn.create(t, ...e);
|
|
4250
4253
|
}
|
|
4251
4254
|
function I(t, e, ...n) {
|
|
4252
4255
|
if (!t)
|
|
4253
|
-
throw
|
|
4256
|
+
throw Dt(e, ...n);
|
|
4254
4257
|
}
|
|
4255
4258
|
function U(t) {
|
|
4256
4259
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
@@ -4275,14 +4278,14 @@ function q(t, e) {
|
|
|
4275
4278
|
* See the License for the specific language governing permissions and
|
|
4276
4279
|
* limitations under the License.
|
|
4277
4280
|
*/
|
|
4278
|
-
function
|
|
4281
|
+
function Tt() {
|
|
4279
4282
|
var t;
|
|
4280
4283
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
|
|
4281
4284
|
}
|
|
4282
|
-
function
|
|
4283
|
-
return
|
|
4285
|
+
function Xs() {
|
|
4286
|
+
return Qt() === "http:" || Qt() === "https:";
|
|
4284
4287
|
}
|
|
4285
|
-
function
|
|
4288
|
+
function Qt() {
|
|
4286
4289
|
var t;
|
|
4287
4290
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.protocol) || null;
|
|
4288
4291
|
}
|
|
@@ -4302,15 +4305,15 @@ function Xt() {
|
|
|
4302
4305
|
* See the License for the specific language governing permissions and
|
|
4303
4306
|
* limitations under the License.
|
|
4304
4307
|
*/
|
|
4305
|
-
function
|
|
4308
|
+
function Qs() {
|
|
4306
4309
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
|
4307
4310
|
// This is especially true for Cordova apps which have unreliable
|
|
4308
4311
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
4309
4312
|
// installed which overwrites the native navigator.onLine value and
|
|
4310
4313
|
// defines navigator.connection.
|
|
4311
|
-
(
|
|
4314
|
+
(Xs() || Ri() || "connection" in navigator) ? navigator.onLine : !0;
|
|
4312
4315
|
}
|
|
4313
|
-
function
|
|
4316
|
+
function Zs() {
|
|
4314
4317
|
if (typeof navigator > "u")
|
|
4315
4318
|
return null;
|
|
4316
4319
|
const t = navigator;
|
|
@@ -4340,10 +4343,10 @@ function Qs() {
|
|
|
4340
4343
|
*/
|
|
4341
4344
|
class Ce {
|
|
4342
4345
|
constructor(e, n) {
|
|
4343
|
-
this.shortDelay = e, this.longDelay = n, q(n > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
4346
|
+
this.shortDelay = e, this.longDelay = n, q(n > e, "Short delay should be less than long delay!"), this.isMobile = Si() || Ai();
|
|
4344
4347
|
}
|
|
4345
4348
|
get() {
|
|
4346
|
-
return
|
|
4349
|
+
return Qs() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
4347
4350
|
}
|
|
4348
4351
|
}
|
|
4349
4352
|
/**
|
|
@@ -4362,7 +4365,7 @@ class Ce {
|
|
|
4362
4365
|
* See the License for the specific language governing permissions and
|
|
4363
4366
|
* limitations under the License.
|
|
4364
4367
|
*/
|
|
4365
|
-
function
|
|
4368
|
+
function Nt(t, e) {
|
|
4366
4369
|
q(t.emulator, "Emulator should always be set here");
|
|
4367
4370
|
const { url: n } = t.emulator;
|
|
4368
4371
|
return e ? `${n}${e.startsWith("/") ? e.slice(1) : e}` : n;
|
|
@@ -4383,7 +4386,7 @@ function Dt(t, e) {
|
|
|
4383
4386
|
* See the License for the specific language governing permissions and
|
|
4384
4387
|
* limitations under the License.
|
|
4385
4388
|
*/
|
|
4386
|
-
class
|
|
4389
|
+
class Gn {
|
|
4387
4390
|
static initialize(e, n, r) {
|
|
4388
4391
|
this.fetchImpl = e, n && (this.headersImpl = n), r && (this.responseImpl = r);
|
|
4389
4392
|
}
|
|
@@ -4437,7 +4440,7 @@ class Wn {
|
|
|
4437
4440
|
* See the License for the specific language governing permissions and
|
|
4438
4441
|
* limitations under the License.
|
|
4439
4442
|
*/
|
|
4440
|
-
const
|
|
4443
|
+
const ea = {
|
|
4441
4444
|
// Custom token errors.
|
|
4442
4445
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
|
4443
4446
|
// This can only happen if the SDK sends a bad request.
|
|
@@ -4528,12 +4531,12 @@ const Zs = {
|
|
|
4528
4531
|
* See the License for the specific language governing permissions and
|
|
4529
4532
|
* limitations under the License.
|
|
4530
4533
|
*/
|
|
4531
|
-
const
|
|
4532
|
-
function
|
|
4534
|
+
const ta = new Ce(3e4, 6e4);
|
|
4535
|
+
function tt(t, e) {
|
|
4533
4536
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
4534
4537
|
}
|
|
4535
4538
|
async function fe(t, e, n, r, i = {}) {
|
|
4536
|
-
return
|
|
4539
|
+
return Kn(t, i, async () => {
|
|
4537
4540
|
let s = {}, a = {};
|
|
4538
4541
|
r && (e === "GET" ? a = r : s = {
|
|
4539
4542
|
body: JSON.stringify(r)
|
|
@@ -4550,14 +4553,14 @@ async function fe(t, e, n, r, i = {}) {
|
|
|
4550
4553
|
method: e,
|
|
4551
4554
|
headers: u
|
|
4552
4555
|
}, s);
|
|
4553
|
-
return
|
|
4556
|
+
return Ei() || (h.referrerPolicy = "no-referrer"), Gn.fetch()(Yn(t, t.config.apiHost, n, l), h);
|
|
4554
4557
|
});
|
|
4555
4558
|
}
|
|
4556
|
-
async function
|
|
4559
|
+
async function Kn(t, e, n) {
|
|
4557
4560
|
t._canInitEmulator = !1;
|
|
4558
|
-
const r = Object.assign(Object.assign({},
|
|
4561
|
+
const r = Object.assign(Object.assign({}, ea), e);
|
|
4559
4562
|
try {
|
|
4560
|
-
const i = new
|
|
4563
|
+
const i = new na(t), s = await Promise.race([
|
|
4561
4564
|
n(),
|
|
4562
4565
|
i.promise
|
|
4563
4566
|
]);
|
|
@@ -4577,7 +4580,7 @@ async function Gn(t, e, n) {
|
|
|
4577
4580
|
throw je(t, "user-disabled", a);
|
|
4578
4581
|
const g = r[u] || u.toLowerCase().replace(/[_\s]+/g, "-");
|
|
4579
4582
|
if (h)
|
|
4580
|
-
throw
|
|
4583
|
+
throw Wn(t, g, h);
|
|
4581
4584
|
H(t, g);
|
|
4582
4585
|
}
|
|
4583
4586
|
} catch (i) {
|
|
@@ -4586,24 +4589,24 @@ async function Gn(t, e, n) {
|
|
|
4586
4589
|
H(t, "network-request-failed", { message: String(i) });
|
|
4587
4590
|
}
|
|
4588
4591
|
}
|
|
4589
|
-
async function
|
|
4592
|
+
async function Jn(t, e, n, r, i = {}) {
|
|
4590
4593
|
const s = await fe(t, e, n, r, i);
|
|
4591
4594
|
return "mfaPendingCredential" in s && H(t, "multi-factor-auth-required", {
|
|
4592
4595
|
_serverResponse: s
|
|
4593
4596
|
}), s;
|
|
4594
4597
|
}
|
|
4595
|
-
function
|
|
4598
|
+
function Yn(t, e, n, r) {
|
|
4596
4599
|
const i = `${e}${n}?${r}`;
|
|
4597
|
-
return t.config.emulator ?
|
|
4600
|
+
return t.config.emulator ? Nt(t.config, i) : `${t.config.apiScheme}://${i}`;
|
|
4598
4601
|
}
|
|
4599
|
-
class
|
|
4602
|
+
class na {
|
|
4600
4603
|
constructor(e) {
|
|
4601
4604
|
this.auth = e, this.timer = null, this.promise = new Promise((n, r) => {
|
|
4602
4605
|
this.timer = setTimeout(() => r(M(
|
|
4603
4606
|
this.auth,
|
|
4604
4607
|
"network-request-failed"
|
|
4605
4608
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4606
|
-
)),
|
|
4609
|
+
)), ta.get());
|
|
4607
4610
|
});
|
|
4608
4611
|
}
|
|
4609
4612
|
clearNetworkTimeout() {
|
|
@@ -4634,10 +4637,10 @@ function je(t, e, n) {
|
|
|
4634
4637
|
* See the License for the specific language governing permissions and
|
|
4635
4638
|
* limitations under the License.
|
|
4636
4639
|
*/
|
|
4637
|
-
async function
|
|
4640
|
+
async function ra(t, e) {
|
|
4638
4641
|
return fe(t, "POST", "/v1/accounts:delete", e);
|
|
4639
4642
|
}
|
|
4640
|
-
async function
|
|
4643
|
+
async function Xn(t, e) {
|
|
4641
4644
|
return fe(t, "POST", "/v1/accounts:lookup", e);
|
|
4642
4645
|
}
|
|
4643
4646
|
/**
|
|
@@ -4665,8 +4668,8 @@ function we(t) {
|
|
|
4665
4668
|
} catch {
|
|
4666
4669
|
}
|
|
4667
4670
|
}
|
|
4668
|
-
async function
|
|
4669
|
-
const n = pe(t), r = await n.getIdToken(e), i =
|
|
4671
|
+
async function ia(t, e = !1) {
|
|
4672
|
+
const n = pe(t), r = await n.getIdToken(e), i = Mt(r);
|
|
4670
4673
|
I(
|
|
4671
4674
|
i && i.exp && i.auth_time && i.iat,
|
|
4672
4675
|
n.auth,
|
|
@@ -4677,29 +4680,29 @@ async function ra(t, e = !1) {
|
|
|
4677
4680
|
return {
|
|
4678
4681
|
claims: i,
|
|
4679
4682
|
token: r,
|
|
4680
|
-
authTime: we(
|
|
4681
|
-
issuedAtTime: we(
|
|
4682
|
-
expirationTime: we(
|
|
4683
|
+
authTime: we(pt(i.auth_time)),
|
|
4684
|
+
issuedAtTime: we(pt(i.iat)),
|
|
4685
|
+
expirationTime: we(pt(i.exp)),
|
|
4683
4686
|
signInProvider: a || null,
|
|
4684
4687
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
4685
4688
|
};
|
|
4686
4689
|
}
|
|
4687
|
-
function
|
|
4690
|
+
function pt(t) {
|
|
4688
4691
|
return Number(t) * 1e3;
|
|
4689
4692
|
}
|
|
4690
|
-
function
|
|
4693
|
+
function Mt(t) {
|
|
4691
4694
|
const [e, n, r] = t.split(".");
|
|
4692
4695
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
4693
4696
|
return xe("JWT malformed, contained fewer than 3 sections"), null;
|
|
4694
4697
|
try {
|
|
4695
|
-
const i =
|
|
4698
|
+
const i = Mn(n);
|
|
4696
4699
|
return i ? JSON.parse(i) : (xe("Failed to decode base64 JWT payload"), null);
|
|
4697
4700
|
} catch (i) {
|
|
4698
4701
|
return xe("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
|
4699
4702
|
}
|
|
4700
4703
|
}
|
|
4701
|
-
function
|
|
4702
|
-
const e =
|
|
4704
|
+
function Zt(t) {
|
|
4705
|
+
const e = Mt(t);
|
|
4703
4706
|
return I(
|
|
4704
4707
|
e,
|
|
4705
4708
|
"internal-error"
|
|
@@ -4736,10 +4739,10 @@ async function Se(t, e, n = !1) {
|
|
|
4736
4739
|
try {
|
|
4737
4740
|
return await e;
|
|
4738
4741
|
} catch (r) {
|
|
4739
|
-
throw r instanceof te &&
|
|
4742
|
+
throw r instanceof te && sa(r) && t.auth.currentUser === t && await t.auth.signOut(), r;
|
|
4740
4743
|
}
|
|
4741
4744
|
}
|
|
4742
|
-
function
|
|
4745
|
+
function sa({ code: t }) {
|
|
4743
4746
|
return t === "auth/user-disabled" || t === "auth/user-token-expired";
|
|
4744
4747
|
}
|
|
4745
4748
|
/**
|
|
@@ -4758,7 +4761,7 @@ function ia({ code: t }) {
|
|
|
4758
4761
|
* See the License for the specific language governing permissions and
|
|
4759
4762
|
* limitations under the License.
|
|
4760
4763
|
*/
|
|
4761
|
-
class
|
|
4764
|
+
class aa {
|
|
4762
4765
|
constructor(e) {
|
|
4763
4766
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
4764
4767
|
}
|
|
@@ -4820,7 +4823,7 @@ class sa {
|
|
|
4820
4823
|
* See the License for the specific language governing permissions and
|
|
4821
4824
|
* limitations under the License.
|
|
4822
4825
|
*/
|
|
4823
|
-
class
|
|
4826
|
+
class kt {
|
|
4824
4827
|
constructor(e, n) {
|
|
4825
4828
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
4826
4829
|
}
|
|
@@ -4855,7 +4858,7 @@ class Tt {
|
|
|
4855
4858
|
*/
|
|
4856
4859
|
async function Je(t) {
|
|
4857
4860
|
var e;
|
|
4858
|
-
const n = t.auth, r = await t.getIdToken(), i = await Se(t,
|
|
4861
|
+
const n = t.auth, r = await t.getIdToken(), i = await Se(t, Xn(n, { idToken: r }));
|
|
4859
4862
|
I(
|
|
4860
4863
|
i == null ? void 0 : i.users.length,
|
|
4861
4864
|
n,
|
|
@@ -4864,7 +4867,7 @@ async function Je(t) {
|
|
|
4864
4867
|
);
|
|
4865
4868
|
const s = i.users[0];
|
|
4866
4869
|
t._notifyReloadListener(s);
|
|
4867
|
-
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ?
|
|
4870
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Qn(s.providerUserInfo) : [], l = ca(t.providerData, a), u = t.isAnonymous, h = !(t.email && s.passwordHash) && !(l != null && l.length), g = u ? h : !1, y = {
|
|
4868
4871
|
uid: s.localId,
|
|
4869
4872
|
displayName: s.displayName || null,
|
|
4870
4873
|
photoURL: s.photoUrl || null,
|
|
@@ -4873,21 +4876,21 @@ async function Je(t) {
|
|
|
4873
4876
|
phoneNumber: s.phoneNumber || null,
|
|
4874
4877
|
tenantId: s.tenantId || null,
|
|
4875
4878
|
providerData: l,
|
|
4876
|
-
metadata: new
|
|
4879
|
+
metadata: new kt(s.createdAt, s.lastLoginAt),
|
|
4877
4880
|
isAnonymous: g
|
|
4878
4881
|
};
|
|
4879
4882
|
Object.assign(t, y);
|
|
4880
4883
|
}
|
|
4881
|
-
async function
|
|
4884
|
+
async function oa(t) {
|
|
4882
4885
|
const e = pe(t);
|
|
4883
4886
|
await Je(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
4884
4887
|
}
|
|
4885
|
-
function
|
|
4888
|
+
function ca(t, e) {
|
|
4886
4889
|
return [...t.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
4887
4890
|
}
|
|
4888
|
-
function
|
|
4891
|
+
function Qn(t) {
|
|
4889
4892
|
return t.map((e) => {
|
|
4890
|
-
var { providerId: n } = e, r =
|
|
4893
|
+
var { providerId: n } = e, r = Ot(e, ["providerId"]);
|
|
4891
4894
|
return {
|
|
4892
4895
|
providerId: n,
|
|
4893
4896
|
uid: r.rawId || "",
|
|
@@ -4914,16 +4917,16 @@ function Xn(t) {
|
|
|
4914
4917
|
* See the License for the specific language governing permissions and
|
|
4915
4918
|
* limitations under the License.
|
|
4916
4919
|
*/
|
|
4917
|
-
async function
|
|
4918
|
-
const n = await
|
|
4920
|
+
async function la(t, e) {
|
|
4921
|
+
const n = await Kn(t, {}, async () => {
|
|
4919
4922
|
const r = Re({
|
|
4920
4923
|
grant_type: "refresh_token",
|
|
4921
4924
|
refresh_token: e
|
|
4922
|
-
}).slice(1), { tokenApiHost: i, apiKey: s } = t.config, a =
|
|
4925
|
+
}).slice(1), { tokenApiHost: i, apiKey: s } = t.config, a = Yn(t, i, "/v1/token", `key=${s}`), l = await t._getAdditionalHeaders();
|
|
4923
4926
|
return l[
|
|
4924
4927
|
"Content-Type"
|
|
4925
4928
|
/* HttpHeader.CONTENT_TYPE */
|
|
4926
|
-
] = "application/x-www-form-urlencoded",
|
|
4929
|
+
] = "application/x-www-form-urlencoded", Gn.fetch()(a, {
|
|
4927
4930
|
method: "POST",
|
|
4928
4931
|
headers: l,
|
|
4929
4932
|
body: r
|
|
@@ -4935,8 +4938,8 @@ async function ca(t, e) {
|
|
|
4935
4938
|
refreshToken: n.refresh_token
|
|
4936
4939
|
};
|
|
4937
4940
|
}
|
|
4938
|
-
async function
|
|
4939
|
-
return fe(t, "POST", "/v2/accounts:revokeToken",
|
|
4941
|
+
async function ua(t, e) {
|
|
4942
|
+
return fe(t, "POST", "/v2/accounts:revokeToken", tt(t, e));
|
|
4940
4943
|
}
|
|
4941
4944
|
/**
|
|
4942
4945
|
* @license
|
|
@@ -4975,7 +4978,7 @@ class le {
|
|
|
4975
4978
|
"internal-error"
|
|
4976
4979
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4977
4980
|
);
|
|
4978
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
4981
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : Zt(e.idToken);
|
|
4979
4982
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
4980
4983
|
}
|
|
4981
4984
|
updateFromIdToken(e) {
|
|
@@ -4984,7 +4987,7 @@ class le {
|
|
|
4984
4987
|
"internal-error"
|
|
4985
4988
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4986
4989
|
);
|
|
4987
|
-
const n =
|
|
4990
|
+
const n = Zt(e);
|
|
4988
4991
|
this.updateTokensAndExpiration(e, null, n);
|
|
4989
4992
|
}
|
|
4990
4993
|
async getToken(e, n = !1) {
|
|
@@ -4999,7 +5002,7 @@ class le {
|
|
|
4999
5002
|
this.refreshToken = null;
|
|
5000
5003
|
}
|
|
5001
5004
|
async refresh(e, n) {
|
|
5002
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
|
5005
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await la(e, n);
|
|
5003
5006
|
this.updateTokensAndExpiration(r, i, Number(s));
|
|
5004
5007
|
}
|
|
5005
5008
|
updateTokensAndExpiration(e, n, r) {
|
|
@@ -5053,8 +5056,8 @@ function G(t, e) {
|
|
|
5053
5056
|
}
|
|
5054
5057
|
class x {
|
|
5055
5058
|
constructor(e) {
|
|
5056
|
-
var { uid: n, auth: r, stsTokenManager: i } = e, s =
|
|
5057
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
5059
|
+
var { uid: n, auth: r, stsTokenManager: i } = e, s = Ot(e, ["uid", "auth", "stsTokenManager"]);
|
|
5060
|
+
this.providerId = "firebase", this.proactiveRefresh = new aa(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new kt(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
5058
5061
|
}
|
|
5059
5062
|
async getIdToken(e) {
|
|
5060
5063
|
const n = await Se(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -5066,10 +5069,10 @@ class x {
|
|
|
5066
5069
|
), this.accessToken !== n && (this.accessToken = n, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), n;
|
|
5067
5070
|
}
|
|
5068
5071
|
getIdTokenResult(e) {
|
|
5069
|
-
return
|
|
5072
|
+
return ia(this, e);
|
|
5070
5073
|
}
|
|
5071
5074
|
reload() {
|
|
5072
|
-
return
|
|
5075
|
+
return oa(this);
|
|
5073
5076
|
}
|
|
5074
5077
|
_assign(e) {
|
|
5075
5078
|
this !== e && (I(
|
|
@@ -5108,7 +5111,7 @@ class x {
|
|
|
5108
5111
|
if (j(this.auth.app))
|
|
5109
5112
|
return Promise.reject(ee(this.auth));
|
|
5110
5113
|
const e = await this.getIdToken();
|
|
5111
|
-
return await Se(this,
|
|
5114
|
+
return await Se(this, ra(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
5112
5115
|
}
|
|
5113
5116
|
toJSON() {
|
|
5114
5117
|
return Object.assign(Object.assign({
|
|
@@ -5204,7 +5207,7 @@ class x {
|
|
|
5204
5207
|
"internal-error"
|
|
5205
5208
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5206
5209
|
);
|
|
5207
|
-
const s = i.providerUserInfo !== void 0 ?
|
|
5210
|
+
const s = i.providerUserInfo !== void 0 ? Qn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), l = new le();
|
|
5208
5211
|
l.updateFromIdToken(r);
|
|
5209
5212
|
const u = new x({
|
|
5210
5213
|
uid: i.localId,
|
|
@@ -5220,7 +5223,7 @@ class x {
|
|
|
5220
5223
|
phoneNumber: i.phoneNumber || null,
|
|
5221
5224
|
tenantId: i.tenantId || null,
|
|
5222
5225
|
providerData: s,
|
|
5223
|
-
metadata: new
|
|
5226
|
+
metadata: new kt(i.createdAt, i.lastLoginAt),
|
|
5224
5227
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
|
5225
5228
|
};
|
|
5226
5229
|
return Object.assign(u, h), u;
|
|
@@ -5242,11 +5245,11 @@ class x {
|
|
|
5242
5245
|
* See the License for the specific language governing permissions and
|
|
5243
5246
|
* limitations under the License.
|
|
5244
5247
|
*/
|
|
5245
|
-
const
|
|
5248
|
+
const en = /* @__PURE__ */ new Map();
|
|
5246
5249
|
function $(t) {
|
|
5247
5250
|
q(t instanceof Function, "Expected a class definition");
|
|
5248
|
-
let e =
|
|
5249
|
-
return e ? (q(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
5251
|
+
let e = en.get(t);
|
|
5252
|
+
return e ? (q(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), en.set(t, e), e);
|
|
5250
5253
|
}
|
|
5251
5254
|
/**
|
|
5252
5255
|
* @license
|
|
@@ -5264,7 +5267,7 @@ function $(t) {
|
|
|
5264
5267
|
* See the License for the specific language governing permissions and
|
|
5265
5268
|
* limitations under the License.
|
|
5266
5269
|
*/
|
|
5267
|
-
class
|
|
5270
|
+
class Zn {
|
|
5268
5271
|
constructor() {
|
|
5269
5272
|
this.type = "NONE", this.storage = {};
|
|
5270
5273
|
}
|
|
@@ -5286,8 +5289,8 @@ class Qn {
|
|
|
5286
5289
|
_removeListener(e, n) {
|
|
5287
5290
|
}
|
|
5288
5291
|
}
|
|
5289
|
-
|
|
5290
|
-
const
|
|
5292
|
+
Zn.type = "NONE";
|
|
5293
|
+
const tn = Zn;
|
|
5291
5294
|
/**
|
|
5292
5295
|
* @license
|
|
5293
5296
|
* Copyright 2019 Google LLC
|
|
@@ -5338,12 +5341,12 @@ class ue {
|
|
|
5338
5341
|
}
|
|
5339
5342
|
static async create(e, n, r = "authUser") {
|
|
5340
5343
|
if (!n.length)
|
|
5341
|
-
return new ue($(
|
|
5344
|
+
return new ue($(tn), e, r);
|
|
5342
5345
|
const i = (await Promise.all(n.map(async (h) => {
|
|
5343
5346
|
if (await h._isAvailable())
|
|
5344
5347
|
return h;
|
|
5345
5348
|
}))).filter((h) => h);
|
|
5346
|
-
let s = i[0] || $(
|
|
5349
|
+
let s = i[0] || $(tn);
|
|
5347
5350
|
const a = $e(r, e.config.apiKey, e.name);
|
|
5348
5351
|
let l = null;
|
|
5349
5352
|
for (const h of n)
|
|
@@ -5382,29 +5385,29 @@ class ue {
|
|
|
5382
5385
|
* See the License for the specific language governing permissions and
|
|
5383
5386
|
* limitations under the License.
|
|
5384
5387
|
*/
|
|
5385
|
-
function
|
|
5388
|
+
function nn(t) {
|
|
5386
5389
|
const e = t.toLowerCase();
|
|
5387
5390
|
if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
|
|
5388
5391
|
return "Opera";
|
|
5389
|
-
if (
|
|
5392
|
+
if (rr(e))
|
|
5390
5393
|
return "IEMobile";
|
|
5391
5394
|
if (e.includes("msie") || e.includes("trident/"))
|
|
5392
5395
|
return "IE";
|
|
5393
5396
|
if (e.includes("edge/"))
|
|
5394
5397
|
return "Edge";
|
|
5395
|
-
if (
|
|
5398
|
+
if (er(e))
|
|
5396
5399
|
return "Firefox";
|
|
5397
5400
|
if (e.includes("silk/"))
|
|
5398
5401
|
return "Silk";
|
|
5399
|
-
if (ir(e))
|
|
5400
|
-
return "Blackberry";
|
|
5401
5402
|
if (sr(e))
|
|
5403
|
+
return "Blackberry";
|
|
5404
|
+
if (ar(e))
|
|
5402
5405
|
return "Webos";
|
|
5403
|
-
if (
|
|
5406
|
+
if (tr(e))
|
|
5404
5407
|
return "Safari";
|
|
5405
|
-
if ((e.includes("chrome/") ||
|
|
5408
|
+
if ((e.includes("chrome/") || nr(e)) && !e.includes("edge/"))
|
|
5406
5409
|
return "Chrome";
|
|
5407
|
-
if (
|
|
5410
|
+
if (ir(e))
|
|
5408
5411
|
return "Android";
|
|
5409
5412
|
{
|
|
5410
5413
|
const n = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = t.match(n);
|
|
@@ -5413,40 +5416,40 @@ function tn(t) {
|
|
|
5413
5416
|
}
|
|
5414
5417
|
return "Other";
|
|
5415
5418
|
}
|
|
5416
|
-
function
|
|
5419
|
+
function er(t = C()) {
|
|
5417
5420
|
return /firefox\//i.test(t);
|
|
5418
5421
|
}
|
|
5419
|
-
function
|
|
5422
|
+
function tr(t = C()) {
|
|
5420
5423
|
const e = t.toLowerCase();
|
|
5421
5424
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
5422
5425
|
}
|
|
5423
|
-
function
|
|
5426
|
+
function nr(t = C()) {
|
|
5424
5427
|
return /crios\//i.test(t);
|
|
5425
5428
|
}
|
|
5426
|
-
function
|
|
5429
|
+
function rr(t = C()) {
|
|
5427
5430
|
return /iemobile/i.test(t);
|
|
5428
5431
|
}
|
|
5429
|
-
function
|
|
5432
|
+
function ir(t = C()) {
|
|
5430
5433
|
return /android/i.test(t);
|
|
5431
5434
|
}
|
|
5432
|
-
function
|
|
5435
|
+
function sr(t = C()) {
|
|
5433
5436
|
return /blackberry/i.test(t);
|
|
5434
5437
|
}
|
|
5435
|
-
function
|
|
5438
|
+
function ar(t = C()) {
|
|
5436
5439
|
return /webos/i.test(t);
|
|
5437
5440
|
}
|
|
5438
|
-
function
|
|
5441
|
+
function Lt(t = C()) {
|
|
5439
5442
|
return /iphone|ipad|ipod/i.test(t) || /macintosh/i.test(t) && /mobile/i.test(t);
|
|
5440
5443
|
}
|
|
5441
|
-
function
|
|
5444
|
+
function da(t = C()) {
|
|
5442
5445
|
var e;
|
|
5443
|
-
return
|
|
5446
|
+
return Lt(t) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
5444
5447
|
}
|
|
5445
|
-
function
|
|
5446
|
-
return
|
|
5448
|
+
function ha() {
|
|
5449
|
+
return Ci() && document.documentMode === 10;
|
|
5447
5450
|
}
|
|
5448
|
-
function
|
|
5449
|
-
return
|
|
5451
|
+
function or(t = C()) {
|
|
5452
|
+
return Lt(t) || ir(t) || ar(t) || sr(t) || /windows phone/i.test(t) || rr(t);
|
|
5450
5453
|
}
|
|
5451
5454
|
/**
|
|
5452
5455
|
* @license
|
|
@@ -5464,14 +5467,14 @@ function ar(t = C()) {
|
|
|
5464
5467
|
* See the License for the specific language governing permissions and
|
|
5465
5468
|
* limitations under the License.
|
|
5466
5469
|
*/
|
|
5467
|
-
function
|
|
5470
|
+
function cr(t, e = []) {
|
|
5468
5471
|
let n;
|
|
5469
5472
|
switch (t) {
|
|
5470
5473
|
case "Browser":
|
|
5471
|
-
n =
|
|
5474
|
+
n = nn(C());
|
|
5472
5475
|
break;
|
|
5473
5476
|
case "Worker":
|
|
5474
|
-
n = `${
|
|
5477
|
+
n = `${nn(C())}-${t}`;
|
|
5475
5478
|
break;
|
|
5476
5479
|
default:
|
|
5477
5480
|
n = t;
|
|
@@ -5495,7 +5498,7 @@ function or(t, e = []) {
|
|
|
5495
5498
|
* See the License for the specific language governing permissions and
|
|
5496
5499
|
* limitations under the License.
|
|
5497
5500
|
*/
|
|
5498
|
-
class
|
|
5501
|
+
class pa {
|
|
5499
5502
|
constructor(e) {
|
|
5500
5503
|
this.auth = e, this.queue = [];
|
|
5501
5504
|
}
|
|
@@ -5550,8 +5553,8 @@ class ha {
|
|
|
5550
5553
|
* See the License for the specific language governing permissions and
|
|
5551
5554
|
* limitations under the License.
|
|
5552
5555
|
*/
|
|
5553
|
-
async function
|
|
5554
|
-
return fe(t, "GET", "/v2/passwordPolicy",
|
|
5556
|
+
async function fa(t, e = {}) {
|
|
5557
|
+
return fe(t, "GET", "/v2/passwordPolicy", tt(t, e));
|
|
5555
5558
|
}
|
|
5556
5559
|
/**
|
|
5557
5560
|
* @license
|
|
@@ -5569,12 +5572,12 @@ async function pa(t, e = {}) {
|
|
|
5569
5572
|
* See the License for the specific language governing permissions and
|
|
5570
5573
|
* limitations under the License.
|
|
5571
5574
|
*/
|
|
5572
|
-
const
|
|
5573
|
-
class
|
|
5575
|
+
const ma = 6;
|
|
5576
|
+
class ga {
|
|
5574
5577
|
constructor(e) {
|
|
5575
5578
|
var n, r, i, s;
|
|
5576
5579
|
const a = e.customStrengthOptions;
|
|
5577
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (n = a.minPasswordLength) !== null && n !== void 0 ? n :
|
|
5580
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (n = a.minPasswordLength) !== null && n !== void 0 ? n : ma, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
|
5578
5581
|
}
|
|
5579
5582
|
validatePassword(e) {
|
|
5580
5583
|
var n, r, i, s, a, l;
|
|
@@ -5657,9 +5660,9 @@ class ma {
|
|
|
5657
5660
|
* See the License for the specific language governing permissions and
|
|
5658
5661
|
* limitations under the License.
|
|
5659
5662
|
*/
|
|
5660
|
-
class
|
|
5663
|
+
class ya {
|
|
5661
5664
|
constructor(e, n, r, i) {
|
|
5662
|
-
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new
|
|
5665
|
+
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new rn(this), this.idTokenSubscription = new rn(this), this.beforeStateQueue = new pa(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 = zn, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
|
|
5663
5666
|
}
|
|
5664
5667
|
_initializeWithPersistence(e, n) {
|
|
5665
5668
|
return n && (this._popupRedirectResolver = $(n)), this._initializationPromise = this.queue(async () => {
|
|
@@ -5695,7 +5698,7 @@ class ga {
|
|
|
5695
5698
|
}
|
|
5696
5699
|
async initializeCurrentUserFromIdToken(e) {
|
|
5697
5700
|
try {
|
|
5698
|
-
const n = await
|
|
5701
|
+
const n = await Xn(this, { idToken: e }), r = await x._fromGetAccountInfoResponse(this, n, e);
|
|
5699
5702
|
await this.directlySetCurrentUser(r);
|
|
5700
5703
|
} catch (n) {
|
|
5701
5704
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", n), await this.directlySetCurrentUser(null);
|
|
@@ -5753,7 +5756,7 @@ class ga {
|
|
|
5753
5756
|
return this.directlySetCurrentUser(e);
|
|
5754
5757
|
}
|
|
5755
5758
|
useDeviceLanguage() {
|
|
5756
|
-
this.languageCode =
|
|
5759
|
+
this.languageCode = Zs();
|
|
5757
5760
|
}
|
|
5758
5761
|
async _delete() {
|
|
5759
5762
|
this._deleted = !0;
|
|
@@ -5804,7 +5807,7 @@ class ga {
|
|
|
5804
5807
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
5805
5808
|
}
|
|
5806
5809
|
async _updatePasswordPolicy() {
|
|
5807
|
-
const e = await
|
|
5810
|
+
const e = await fa(this), n = new ga(e);
|
|
5808
5811
|
this.tenantId === null ? this._projectPasswordPolicy = n : this._tenantPasswordPolicies[this.tenantId] = n;
|
|
5809
5812
|
}
|
|
5810
5813
|
_getPersistence() {
|
|
@@ -5844,7 +5847,7 @@ class ga {
|
|
|
5844
5847
|
token: e,
|
|
5845
5848
|
idToken: n
|
|
5846
5849
|
};
|
|
5847
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
|
5850
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await ua(this, r);
|
|
5848
5851
|
}
|
|
5849
5852
|
}
|
|
5850
5853
|
toJSON() {
|
|
@@ -5957,7 +5960,7 @@ class ga {
|
|
|
5957
5960
|
), this.persistenceManager;
|
|
5958
5961
|
}
|
|
5959
5962
|
_logFramework(e) {
|
|
5960
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
5963
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = cr(this.config.clientPlatform, this._getFrameworks()));
|
|
5961
5964
|
}
|
|
5962
5965
|
_getFrameworks() {
|
|
5963
5966
|
return this.frameworks;
|
|
@@ -5987,15 +5990,15 @@ class ga {
|
|
|
5987
5990
|
async _getAppCheckToken() {
|
|
5988
5991
|
var e;
|
|
5989
5992
|
const n = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
|
5990
|
-
return n != null && n.error &&
|
|
5993
|
+
return n != null && n.error && Ys(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
|
|
5991
5994
|
}
|
|
5992
5995
|
}
|
|
5993
|
-
function
|
|
5996
|
+
function nt(t) {
|
|
5994
5997
|
return pe(t);
|
|
5995
5998
|
}
|
|
5996
|
-
class
|
|
5999
|
+
class rn {
|
|
5997
6000
|
constructor(e) {
|
|
5998
|
-
this.auth = e, this.observer = null, this.addObserver =
|
|
6001
|
+
this.auth = e, this.observer = null, this.addObserver = Bi((n) => this.observer = n);
|
|
5999
6002
|
}
|
|
6000
6003
|
get next() {
|
|
6001
6004
|
return I(
|
|
@@ -6022,7 +6025,7 @@ class nn {
|
|
|
6022
6025
|
* See the License for the specific language governing permissions and
|
|
6023
6026
|
* limitations under the License.
|
|
6024
6027
|
*/
|
|
6025
|
-
let
|
|
6028
|
+
let Bt = {
|
|
6026
6029
|
async loadJS() {
|
|
6027
6030
|
throw new Error("Unable to load external scripts");
|
|
6028
6031
|
},
|
|
@@ -6030,16 +6033,16 @@ let Lt = {
|
|
|
6030
6033
|
recaptchaEnterpriseScript: "",
|
|
6031
6034
|
gapiScript: ""
|
|
6032
6035
|
};
|
|
6033
|
-
function ya(t) {
|
|
6034
|
-
Lt = t;
|
|
6035
|
-
}
|
|
6036
6036
|
function ba(t) {
|
|
6037
|
-
|
|
6037
|
+
Bt = t;
|
|
6038
|
+
}
|
|
6039
|
+
function va(t) {
|
|
6040
|
+
return Bt.loadJS(t);
|
|
6038
6041
|
}
|
|
6039
|
-
function
|
|
6040
|
-
return
|
|
6042
|
+
function _a() {
|
|
6043
|
+
return Bt.gapiScript;
|
|
6041
6044
|
}
|
|
6042
|
-
function
|
|
6045
|
+
function Ia(t) {
|
|
6043
6046
|
return `__${t}${Math.floor(Math.random() * 1e6)}`;
|
|
6044
6047
|
}
|
|
6045
6048
|
/**
|
|
@@ -6058,8 +6061,8 @@ function _a(t) {
|
|
|
6058
6061
|
* See the License for the specific language governing permissions and
|
|
6059
6062
|
* limitations under the License.
|
|
6060
6063
|
*/
|
|
6061
|
-
function
|
|
6062
|
-
const n =
|
|
6064
|
+
function wa(t, e) {
|
|
6065
|
+
const n = $n(t, "auth");
|
|
6063
6066
|
if (n.isInitialized()) {
|
|
6064
6067
|
const i = n.getImmediate(), s = n.getOptions();
|
|
6065
6068
|
if (We(s, e ?? {}))
|
|
@@ -6072,12 +6075,12 @@ function Ia(t, e) {
|
|
|
6072
6075
|
}
|
|
6073
6076
|
return n.initialize({ options: e });
|
|
6074
6077
|
}
|
|
6075
|
-
function
|
|
6078
|
+
function Ta(t, e) {
|
|
6076
6079
|
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map($);
|
|
6077
6080
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
6078
6081
|
}
|
|
6079
|
-
function
|
|
6080
|
-
const r =
|
|
6082
|
+
function ka(t, e, n) {
|
|
6083
|
+
const r = nt(t);
|
|
6081
6084
|
I(
|
|
6082
6085
|
r._canInitEmulator,
|
|
6083
6086
|
r,
|
|
@@ -6089,38 +6092,38 @@ function Ta(t, e, n) {
|
|
|
6089
6092
|
"invalid-emulator-scheme"
|
|
6090
6093
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
6091
6094
|
);
|
|
6092
|
-
const i = !1, s =
|
|
6095
|
+
const i = !1, s = lr(e), { host: a, port: l } = Sa(e), u = l === null ? "" : `:${l}`;
|
|
6093
6096
|
r.config.emulator = { url: `${s}//${a}${u}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
|
6094
6097
|
host: a,
|
|
6095
6098
|
port: l,
|
|
6096
6099
|
protocol: s.replace(":", ""),
|
|
6097
6100
|
options: Object.freeze({ disableWarnings: i })
|
|
6098
|
-
}),
|
|
6101
|
+
}), Ea();
|
|
6099
6102
|
}
|
|
6100
|
-
function
|
|
6103
|
+
function lr(t) {
|
|
6101
6104
|
const e = t.indexOf(":");
|
|
6102
6105
|
return e < 0 ? "" : t.substr(0, e + 1);
|
|
6103
6106
|
}
|
|
6104
|
-
function
|
|
6105
|
-
const e =
|
|
6107
|
+
function Sa(t) {
|
|
6108
|
+
const e = lr(t), n = /(\/\/)?([^?#/]+)/.exec(t.substr(e.length));
|
|
6106
6109
|
if (!n)
|
|
6107
6110
|
return { host: "", port: null };
|
|
6108
6111
|
const r = n[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
|
6109
6112
|
if (i) {
|
|
6110
6113
|
const s = i[1];
|
|
6111
|
-
return { host: s, port:
|
|
6114
|
+
return { host: s, port: sn(r.substr(s.length + 1)) };
|
|
6112
6115
|
} else {
|
|
6113
6116
|
const [s, a] = r.split(":");
|
|
6114
|
-
return { host: s, port:
|
|
6117
|
+
return { host: s, port: sn(a) };
|
|
6115
6118
|
}
|
|
6116
6119
|
}
|
|
6117
|
-
function
|
|
6120
|
+
function sn(t) {
|
|
6118
6121
|
if (!t)
|
|
6119
6122
|
return null;
|
|
6120
6123
|
const e = Number(t);
|
|
6121
6124
|
return isNaN(e) ? null : e;
|
|
6122
6125
|
}
|
|
6123
|
-
function
|
|
6126
|
+
function Ea() {
|
|
6124
6127
|
function t() {
|
|
6125
6128
|
const e = document.createElement("p"), n = e.style;
|
|
6126
6129
|
e.innerText = "Running in emulator mode. Do not use with production credentials.", n.position = "fixed", n.width = "100%", n.backgroundColor = "#ffffff", n.border = ".1em solid #000000", n.color = "#b50000", n.bottom = "0px", n.left = "0px", n.margin = "0px", n.zIndex = "10000", n.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
|
|
@@ -6143,7 +6146,7 @@ function Sa() {
|
|
|
6143
6146
|
* See the License for the specific language governing permissions and
|
|
6144
6147
|
* limitations under the License.
|
|
6145
6148
|
*/
|
|
6146
|
-
class
|
|
6149
|
+
class ur {
|
|
6147
6150
|
/** @internal */
|
|
6148
6151
|
constructor(e, n) {
|
|
6149
6152
|
this.providerId = e, this.signInMethod = n;
|
|
@@ -6186,7 +6189,7 @@ class lr {
|
|
|
6186
6189
|
* limitations under the License.
|
|
6187
6190
|
*/
|
|
6188
6191
|
async function de(t, e) {
|
|
6189
|
-
return
|
|
6192
|
+
return Jn(t, "POST", "/v1/accounts:signInWithIdp", tt(t, e));
|
|
6190
6193
|
}
|
|
6191
6194
|
/**
|
|
6192
6195
|
* @license
|
|
@@ -6204,8 +6207,8 @@ async function de(t, e) {
|
|
|
6204
6207
|
* See the License for the specific language governing permissions and
|
|
6205
6208
|
* limitations under the License.
|
|
6206
6209
|
*/
|
|
6207
|
-
const
|
|
6208
|
-
class ie extends
|
|
6210
|
+
const Ra = "http://localhost";
|
|
6211
|
+
class ie extends ur {
|
|
6209
6212
|
constructor() {
|
|
6210
6213
|
super(...arguments), this.pendingToken = null;
|
|
6211
6214
|
}
|
|
@@ -6239,7 +6242,7 @@ class ie extends lr {
|
|
|
6239
6242
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
6240
6243
|
*/
|
|
6241
6244
|
static fromJSON(e) {
|
|
6242
|
-
const n = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = n, s =
|
|
6245
|
+
const n = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = n, s = Ot(n, ["providerId", "signInMethod"]);
|
|
6243
6246
|
if (!r || !i)
|
|
6244
6247
|
return null;
|
|
6245
6248
|
const a = new ie(r, i);
|
|
@@ -6262,7 +6265,7 @@ class ie extends lr {
|
|
|
6262
6265
|
}
|
|
6263
6266
|
buildRequest() {
|
|
6264
6267
|
const e = {
|
|
6265
|
-
requestUri:
|
|
6268
|
+
requestUri: Ra,
|
|
6266
6269
|
returnSecureToken: !0
|
|
6267
6270
|
};
|
|
6268
6271
|
if (this.pendingToken)
|
|
@@ -6290,7 +6293,7 @@ class ie extends lr {
|
|
|
6290
6293
|
* See the License for the specific language governing permissions and
|
|
6291
6294
|
* limitations under the License.
|
|
6292
6295
|
*/
|
|
6293
|
-
class
|
|
6296
|
+
class dr {
|
|
6294
6297
|
/**
|
|
6295
6298
|
* Constructor for generic OAuth providers.
|
|
6296
6299
|
*
|
|
@@ -6343,7 +6346,7 @@ class ur {
|
|
|
6343
6346
|
* See the License for the specific language governing permissions and
|
|
6344
6347
|
* limitations under the License.
|
|
6345
6348
|
*/
|
|
6346
|
-
class Pe extends
|
|
6349
|
+
class Pe extends dr {
|
|
6347
6350
|
constructor() {
|
|
6348
6351
|
super(...arguments), this.scopes = [];
|
|
6349
6352
|
}
|
|
@@ -6663,7 +6666,7 @@ class se {
|
|
|
6663
6666
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
6664
6667
|
}
|
|
6665
6668
|
static async _fromIdTokenResponse(e, n, r, i = !1) {
|
|
6666
|
-
const s = await x._fromIdTokenResponse(e, r, i), a =
|
|
6669
|
+
const s = await x._fromIdTokenResponse(e, r, i), a = an(r);
|
|
6667
6670
|
return new se({
|
|
6668
6671
|
user: s,
|
|
6669
6672
|
providerId: a,
|
|
@@ -6677,7 +6680,7 @@ class se {
|
|
|
6677
6680
|
/* reload */
|
|
6678
6681
|
!0
|
|
6679
6682
|
);
|
|
6680
|
-
const i =
|
|
6683
|
+
const i = an(r);
|
|
6681
6684
|
return new se({
|
|
6682
6685
|
user: e,
|
|
6683
6686
|
providerId: i,
|
|
@@ -6686,7 +6689,7 @@ class se {
|
|
|
6686
6689
|
});
|
|
6687
6690
|
}
|
|
6688
6691
|
}
|
|
6689
|
-
function
|
|
6692
|
+
function an(t) {
|
|
6690
6693
|
return t.providerId ? t.providerId : "phoneNumber" in t ? "phone" : null;
|
|
6691
6694
|
}
|
|
6692
6695
|
/**
|
|
@@ -6719,12 +6722,12 @@ class Ye extends te {
|
|
|
6719
6722
|
return new Ye(e, n, r, i);
|
|
6720
6723
|
}
|
|
6721
6724
|
}
|
|
6722
|
-
function
|
|
6725
|
+
function hr(t, e, n, r) {
|
|
6723
6726
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((s) => {
|
|
6724
6727
|
throw s.code === "auth/multi-factor-auth-required" ? Ye._fromErrorAndOperation(t, s, e, r) : s;
|
|
6725
6728
|
});
|
|
6726
6729
|
}
|
|
6727
|
-
async function
|
|
6730
|
+
async function Aa(t, e, n = !1) {
|
|
6728
6731
|
const r = await Se(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
6729
6732
|
return se._forOperation(t, "link", r);
|
|
6730
6733
|
}
|
|
@@ -6744,20 +6747,20 @@ async function Ra(t, e, n = !1) {
|
|
|
6744
6747
|
* See the License for the specific language governing permissions and
|
|
6745
6748
|
* limitations under the License.
|
|
6746
6749
|
*/
|
|
6747
|
-
async function
|
|
6750
|
+
async function Ca(t, e, n = !1) {
|
|
6748
6751
|
const { auth: r } = t;
|
|
6749
6752
|
if (j(r.app))
|
|
6750
6753
|
return Promise.reject(ee(r));
|
|
6751
6754
|
const i = "reauthenticate";
|
|
6752
6755
|
try {
|
|
6753
|
-
const s = await Se(t,
|
|
6756
|
+
const s = await Se(t, hr(r, i, e, t), n);
|
|
6754
6757
|
I(
|
|
6755
6758
|
s.idToken,
|
|
6756
6759
|
r,
|
|
6757
6760
|
"internal-error"
|
|
6758
6761
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6759
6762
|
);
|
|
6760
|
-
const a =
|
|
6763
|
+
const a = Mt(s.idToken);
|
|
6761
6764
|
I(
|
|
6762
6765
|
a,
|
|
6763
6766
|
r,
|
|
@@ -6795,10 +6798,10 @@ async function Aa(t, e, n = !1) {
|
|
|
6795
6798
|
* See the License for the specific language governing permissions and
|
|
6796
6799
|
* limitations under the License.
|
|
6797
6800
|
*/
|
|
6798
|
-
async function
|
|
6801
|
+
async function Pa(t, e, n = !1) {
|
|
6799
6802
|
if (j(t.app))
|
|
6800
6803
|
return Promise.reject(ee(t));
|
|
6801
|
-
const r = "signIn", i = await
|
|
6804
|
+
const r = "signIn", i = await hr(t, r, e), s = await se._fromIdTokenResponse(t, r, i);
|
|
6802
6805
|
return n || await t._updateCurrentUser(s.user), s;
|
|
6803
6806
|
}
|
|
6804
6807
|
/**
|
|
@@ -6817,8 +6820,8 @@ async function Ca(t, e, n = !1) {
|
|
|
6817
6820
|
* See the License for the specific language governing permissions and
|
|
6818
6821
|
* limitations under the License.
|
|
6819
6822
|
*/
|
|
6820
|
-
async function
|
|
6821
|
-
return
|
|
6823
|
+
async function Oa(t, e) {
|
|
6824
|
+
return Jn(t, "POST", "/v1/accounts:signInWithCustomToken", tt(t, e));
|
|
6822
6825
|
}
|
|
6823
6826
|
/**
|
|
6824
6827
|
* @license
|
|
@@ -6836,19 +6839,19 @@ async function Pa(t, e) {
|
|
|
6836
6839
|
* See the License for the specific language governing permissions and
|
|
6837
6840
|
* limitations under the License.
|
|
6838
6841
|
*/
|
|
6839
|
-
async function
|
|
6842
|
+
async function Da(t, e) {
|
|
6840
6843
|
if (j(t.app))
|
|
6841
6844
|
return Promise.reject(ee(t));
|
|
6842
|
-
const n =
|
|
6845
|
+
const n = nt(t), r = await Oa(n, {
|
|
6843
6846
|
token: e,
|
|
6844
6847
|
returnSecureToken: !0
|
|
6845
6848
|
}), i = await se._fromIdTokenResponse(n, "signIn", r);
|
|
6846
6849
|
return await n._updateCurrentUser(i.user), i;
|
|
6847
6850
|
}
|
|
6848
|
-
function
|
|
6851
|
+
function Na(t, e, n, r) {
|
|
6849
6852
|
return pe(t).onIdTokenChanged(e, n, r);
|
|
6850
6853
|
}
|
|
6851
|
-
function
|
|
6854
|
+
function Ma(t, e, n) {
|
|
6852
6855
|
return pe(t).beforeAuthStateChanged(e, n);
|
|
6853
6856
|
}
|
|
6854
6857
|
const Xe = "__sak";
|
|
@@ -6868,7 +6871,7 @@ const Xe = "__sak";
|
|
|
6868
6871
|
* See the License for the specific language governing permissions and
|
|
6869
6872
|
* limitations under the License.
|
|
6870
6873
|
*/
|
|
6871
|
-
class
|
|
6874
|
+
class pr {
|
|
6872
6875
|
constructor(e, n) {
|
|
6873
6876
|
this.storageRetriever = e, this.type = n;
|
|
6874
6877
|
}
|
|
@@ -6909,14 +6912,14 @@ class hr {
|
|
|
6909
6912
|
* See the License for the specific language governing permissions and
|
|
6910
6913
|
* limitations under the License.
|
|
6911
6914
|
*/
|
|
6912
|
-
const
|
|
6913
|
-
class
|
|
6915
|
+
const La = 1e3, Ba = 10;
|
|
6916
|
+
class fr extends pr {
|
|
6914
6917
|
constructor() {
|
|
6915
6918
|
super(
|
|
6916
6919
|
() => window.localStorage,
|
|
6917
6920
|
"LOCAL"
|
|
6918
6921
|
/* PersistenceType.LOCAL */
|
|
6919
|
-
), this.boundEventHandler = (e, n) => this.onStorageEvent(e, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling =
|
|
6922
|
+
), this.boundEventHandler = (e, n) => this.onStorageEvent(e, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling = or(), this._shouldAllowMigration = !0;
|
|
6920
6923
|
}
|
|
6921
6924
|
forAllChangedKeys(e) {
|
|
6922
6925
|
for (const n of Object.keys(this.listeners)) {
|
|
@@ -6937,7 +6940,7 @@ class pr extends hr {
|
|
|
6937
6940
|
const a = this.storage.getItem(r);
|
|
6938
6941
|
!n && this.localCache[r] === a || this.notifyListeners(r, a);
|
|
6939
6942
|
}, s = this.storage.getItem(r);
|
|
6940
|
-
|
|
6943
|
+
ha() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, Ba) : i();
|
|
6941
6944
|
}
|
|
6942
6945
|
notifyListeners(e, n) {
|
|
6943
6946
|
this.localCache[e] = n;
|
|
@@ -6959,7 +6962,7 @@ class pr extends hr {
|
|
|
6959
6962
|
!0
|
|
6960
6963
|
);
|
|
6961
6964
|
});
|
|
6962
|
-
},
|
|
6965
|
+
}, La);
|
|
6963
6966
|
}
|
|
6964
6967
|
stopPolling() {
|
|
6965
6968
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -6988,8 +6991,8 @@ class pr extends hr {
|
|
|
6988
6991
|
await super._remove(e), delete this.localCache[e];
|
|
6989
6992
|
}
|
|
6990
6993
|
}
|
|
6991
|
-
|
|
6992
|
-
const
|
|
6994
|
+
fr.type = "LOCAL";
|
|
6995
|
+
const ja = fr;
|
|
6993
6996
|
/**
|
|
6994
6997
|
* @license
|
|
6995
6998
|
* Copyright 2020 Google LLC
|
|
@@ -7006,7 +7009,7 @@ const Ba = pr;
|
|
|
7006
7009
|
* See the License for the specific language governing permissions and
|
|
7007
7010
|
* limitations under the License.
|
|
7008
7011
|
*/
|
|
7009
|
-
class
|
|
7012
|
+
class mr extends pr {
|
|
7010
7013
|
constructor() {
|
|
7011
7014
|
super(
|
|
7012
7015
|
() => window.sessionStorage,
|
|
@@ -7019,8 +7022,8 @@ class fr extends hr {
|
|
|
7019
7022
|
_removeListener(e, n) {
|
|
7020
7023
|
}
|
|
7021
7024
|
}
|
|
7022
|
-
|
|
7023
|
-
const
|
|
7025
|
+
mr.type = "SESSION";
|
|
7026
|
+
const gr = mr;
|
|
7024
7027
|
/**
|
|
7025
7028
|
* @license
|
|
7026
7029
|
* Copyright 2019 Google LLC
|
|
@@ -7037,7 +7040,7 @@ const mr = fr;
|
|
|
7037
7040
|
* See the License for the specific language governing permissions and
|
|
7038
7041
|
* limitations under the License.
|
|
7039
7042
|
*/
|
|
7040
|
-
function
|
|
7043
|
+
function Ua(t) {
|
|
7041
7044
|
return Promise.all(t.map(async (e) => {
|
|
7042
7045
|
try {
|
|
7043
7046
|
return {
|
|
@@ -7068,7 +7071,7 @@ function ja(t) {
|
|
|
7068
7071
|
* See the License for the specific language governing permissions and
|
|
7069
7072
|
* limitations under the License.
|
|
7070
7073
|
*/
|
|
7071
|
-
class
|
|
7074
|
+
class rt {
|
|
7072
7075
|
constructor(e) {
|
|
7073
7076
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
7074
7077
|
}
|
|
@@ -7082,7 +7085,7 @@ class nt {
|
|
|
7082
7085
|
const n = this.receivers.find((i) => i.isListeningto(e));
|
|
7083
7086
|
if (n)
|
|
7084
7087
|
return n;
|
|
7085
|
-
const r = new
|
|
7088
|
+
const r = new rt(e);
|
|
7086
7089
|
return this.receivers.push(r), r;
|
|
7087
7090
|
}
|
|
7088
7091
|
isListeningto(e) {
|
|
@@ -7107,7 +7110,7 @@ class nt {
|
|
|
7107
7110
|
eventId: r,
|
|
7108
7111
|
eventType: i
|
|
7109
7112
|
});
|
|
7110
|
-
const l = Array.from(a).map(async (h) => h(n.origin, s)), u = await
|
|
7113
|
+
const l = Array.from(a).map(async (h) => h(n.origin, s)), u = await Ua(l);
|
|
7111
7114
|
n.ports[0].postMessage({
|
|
7112
7115
|
status: "done",
|
|
7113
7116
|
eventId: r,
|
|
@@ -7136,7 +7139,7 @@ class nt {
|
|
|
7136
7139
|
this.handlersMap[e] && n && this.handlersMap[e].delete(n), (!n || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
7137
7140
|
}
|
|
7138
7141
|
}
|
|
7139
|
-
|
|
7142
|
+
rt.receivers = [];
|
|
7140
7143
|
/**
|
|
7141
7144
|
* @license
|
|
7142
7145
|
* Copyright 2020 Google LLC
|
|
@@ -7153,7 +7156,7 @@ nt.receivers = [];
|
|
|
7153
7156
|
* See the License for the specific language governing permissions and
|
|
7154
7157
|
* limitations under the License.
|
|
7155
7158
|
*/
|
|
7156
|
-
function
|
|
7159
|
+
function jt(t = "", e = 10) {
|
|
7157
7160
|
let n = "";
|
|
7158
7161
|
for (let r = 0; r < e; r++)
|
|
7159
7162
|
n += Math.floor(Math.random() * 10);
|
|
@@ -7175,7 +7178,7 @@ function Bt(t = "", e = 10) {
|
|
|
7175
7178
|
* See the License for the specific language governing permissions and
|
|
7176
7179
|
* limitations under the License.
|
|
7177
7180
|
*/
|
|
7178
|
-
class
|
|
7181
|
+
class xa {
|
|
7179
7182
|
constructor(e) {
|
|
7180
7183
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
|
7181
7184
|
}
|
|
@@ -7209,7 +7212,7 @@ class Ua {
|
|
|
7209
7212
|
);
|
|
7210
7213
|
let s, a;
|
|
7211
7214
|
return new Promise((l, u) => {
|
|
7212
|
-
const h =
|
|
7215
|
+
const h = jt("", 20);
|
|
7213
7216
|
i.port1.start();
|
|
7214
7217
|
const g = setTimeout(() => {
|
|
7215
7218
|
u(new Error(
|
|
@@ -7275,7 +7278,7 @@ class Ua {
|
|
|
7275
7278
|
function L() {
|
|
7276
7279
|
return window;
|
|
7277
7280
|
}
|
|
7278
|
-
function
|
|
7281
|
+
function $a(t) {
|
|
7279
7282
|
L().location.href = t;
|
|
7280
7283
|
}
|
|
7281
7284
|
/**
|
|
@@ -7294,10 +7297,10 @@ function xa(t) {
|
|
|
7294
7297
|
* See the License for the specific language governing permissions and
|
|
7295
7298
|
* limitations under the License.
|
|
7296
7299
|
*/
|
|
7297
|
-
function
|
|
7300
|
+
function yr() {
|
|
7298
7301
|
return typeof L().WorkerGlobalScope < "u" && typeof L().importScripts == "function";
|
|
7299
7302
|
}
|
|
7300
|
-
async function
|
|
7303
|
+
async function Fa() {
|
|
7301
7304
|
if (!(navigator != null && navigator.serviceWorker))
|
|
7302
7305
|
return null;
|
|
7303
7306
|
try {
|
|
@@ -7306,12 +7309,12 @@ async function $a() {
|
|
|
7306
7309
|
return null;
|
|
7307
7310
|
}
|
|
7308
7311
|
}
|
|
7309
|
-
function
|
|
7312
|
+
function Ha() {
|
|
7310
7313
|
var t;
|
|
7311
7314
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
7312
7315
|
}
|
|
7313
|
-
function
|
|
7314
|
-
return
|
|
7316
|
+
function qa() {
|
|
7317
|
+
return yr() ? self : null;
|
|
7315
7318
|
}
|
|
7316
7319
|
/**
|
|
7317
7320
|
* @license
|
|
@@ -7329,7 +7332,7 @@ function Ha() {
|
|
|
7329
7332
|
* See the License for the specific language governing permissions and
|
|
7330
7333
|
* limitations under the License.
|
|
7331
7334
|
*/
|
|
7332
|
-
const
|
|
7335
|
+
const br = "firebaseLocalStorageDb", Va = 1, Qe = "firebaseLocalStorage", vr = "fbase_key";
|
|
7333
7336
|
class Oe {
|
|
7334
7337
|
constructor(e) {
|
|
7335
7338
|
this.request = e;
|
|
@@ -7344,55 +7347,55 @@ class Oe {
|
|
|
7344
7347
|
});
|
|
7345
7348
|
}
|
|
7346
7349
|
}
|
|
7347
|
-
function
|
|
7350
|
+
function it(t, e) {
|
|
7348
7351
|
return t.transaction([Qe], e ? "readwrite" : "readonly").objectStore(Qe);
|
|
7349
7352
|
}
|
|
7350
|
-
function
|
|
7351
|
-
const t = indexedDB.deleteDatabase(
|
|
7353
|
+
function za() {
|
|
7354
|
+
const t = indexedDB.deleteDatabase(br);
|
|
7352
7355
|
return new Oe(t).toPromise();
|
|
7353
7356
|
}
|
|
7354
|
-
function
|
|
7355
|
-
const t = indexedDB.open(
|
|
7357
|
+
function St() {
|
|
7358
|
+
const t = indexedDB.open(br, Va);
|
|
7356
7359
|
return new Promise((e, n) => {
|
|
7357
7360
|
t.addEventListener("error", () => {
|
|
7358
7361
|
n(t.error);
|
|
7359
7362
|
}), t.addEventListener("upgradeneeded", () => {
|
|
7360
7363
|
const r = t.result;
|
|
7361
7364
|
try {
|
|
7362
|
-
r.createObjectStore(Qe, { keyPath:
|
|
7365
|
+
r.createObjectStore(Qe, { keyPath: vr });
|
|
7363
7366
|
} catch (i) {
|
|
7364
7367
|
n(i);
|
|
7365
7368
|
}
|
|
7366
7369
|
}), t.addEventListener("success", async () => {
|
|
7367
7370
|
const r = t.result;
|
|
7368
|
-
r.objectStoreNames.contains(Qe) ? e(r) : (r.close(), await
|
|
7371
|
+
r.objectStoreNames.contains(Qe) ? e(r) : (r.close(), await za(), e(await St()));
|
|
7369
7372
|
});
|
|
7370
7373
|
});
|
|
7371
7374
|
}
|
|
7372
|
-
async function
|
|
7373
|
-
const r =
|
|
7374
|
-
[
|
|
7375
|
+
async function on(t, e, n) {
|
|
7376
|
+
const r = it(t, !0).put({
|
|
7377
|
+
[vr]: e,
|
|
7375
7378
|
value: n
|
|
7376
7379
|
});
|
|
7377
7380
|
return new Oe(r).toPromise();
|
|
7378
7381
|
}
|
|
7379
|
-
async function
|
|
7380
|
-
const n =
|
|
7382
|
+
async function Wa(t, e) {
|
|
7383
|
+
const n = it(t, !1).get(e), r = await new Oe(n).toPromise();
|
|
7381
7384
|
return r === void 0 ? null : r.value;
|
|
7382
7385
|
}
|
|
7383
|
-
function
|
|
7384
|
-
const n =
|
|
7386
|
+
function cn(t, e) {
|
|
7387
|
+
const n = it(t, !0).delete(e);
|
|
7385
7388
|
return new Oe(n).toPromise();
|
|
7386
7389
|
}
|
|
7387
|
-
const
|
|
7388
|
-
class
|
|
7390
|
+
const Ga = 800, Ka = 3;
|
|
7391
|
+
class _r {
|
|
7389
7392
|
constructor() {
|
|
7390
7393
|
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(() => {
|
|
7391
7394
|
}, () => {
|
|
7392
7395
|
});
|
|
7393
7396
|
}
|
|
7394
7397
|
async _openDb() {
|
|
7395
|
-
return this.db ? this.db : (this.db = await
|
|
7398
|
+
return this.db ? this.db : (this.db = await St(), this.db);
|
|
7396
7399
|
}
|
|
7397
7400
|
async _withRetries(e) {
|
|
7398
7401
|
let n = 0;
|
|
@@ -7401,7 +7404,7 @@ class vr {
|
|
|
7401
7404
|
const r = await this._openDb();
|
|
7402
7405
|
return await e(r);
|
|
7403
7406
|
} catch (r) {
|
|
7404
|
-
if (n++ >
|
|
7407
|
+
if (n++ > Ka)
|
|
7405
7408
|
throw r;
|
|
7406
7409
|
this.db && (this.db.close(), this.db = void 0);
|
|
7407
7410
|
}
|
|
@@ -7411,13 +7414,13 @@ class vr {
|
|
|
7411
7414
|
* postMessage interface to send these events to the worker ourselves.
|
|
7412
7415
|
*/
|
|
7413
7416
|
async initializeServiceWorkerMessaging() {
|
|
7414
|
-
return
|
|
7417
|
+
return yr() ? this.initializeReceiver() : this.initializeSender();
|
|
7415
7418
|
}
|
|
7416
7419
|
/**
|
|
7417
7420
|
* As the worker we should listen to events from the main window.
|
|
7418
7421
|
*/
|
|
7419
7422
|
async initializeReceiver() {
|
|
7420
|
-
this.receiver =
|
|
7423
|
+
this.receiver = rt._getInstance(qa()), this.receiver._subscribe("keyChanged", async (e, n) => ({
|
|
7421
7424
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
7422
7425
|
})), this.receiver._subscribe("ping", async (e, n) => [
|
|
7423
7426
|
"keyChanged"
|
|
@@ -7433,9 +7436,9 @@ class vr {
|
|
|
7433
7436
|
*/
|
|
7434
7437
|
async initializeSender() {
|
|
7435
7438
|
var e, n;
|
|
7436
|
-
if (this.activeServiceWorker = await
|
|
7439
|
+
if (this.activeServiceWorker = await Fa(), !this.activeServiceWorker)
|
|
7437
7440
|
return;
|
|
7438
|
-
this.sender = new
|
|
7441
|
+
this.sender = new xa(this.activeServiceWorker);
|
|
7439
7442
|
const r = await this.sender._send(
|
|
7440
7443
|
"ping",
|
|
7441
7444
|
{},
|
|
@@ -7457,7 +7460,7 @@ class vr {
|
|
|
7457
7460
|
* @param key - Storage key which changed.
|
|
7458
7461
|
*/
|
|
7459
7462
|
async notifyServiceWorker(e) {
|
|
7460
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
7463
|
+
if (!(!this.sender || !this.activeServiceWorker || Ha() !== this.activeServiceWorker))
|
|
7461
7464
|
try {
|
|
7462
7465
|
await this.sender._send(
|
|
7463
7466
|
"keyChanged",
|
|
@@ -7473,8 +7476,8 @@ class vr {
|
|
|
7473
7476
|
try {
|
|
7474
7477
|
if (!indexedDB)
|
|
7475
7478
|
return !1;
|
|
7476
|
-
const e = await
|
|
7477
|
-
return await
|
|
7479
|
+
const e = await St();
|
|
7480
|
+
return await on(e, Xe, "1"), await cn(e, Xe), !0;
|
|
7478
7481
|
} catch {
|
|
7479
7482
|
}
|
|
7480
7483
|
return !1;
|
|
@@ -7488,18 +7491,18 @@ class vr {
|
|
|
7488
7491
|
}
|
|
7489
7492
|
}
|
|
7490
7493
|
async _set(e, n) {
|
|
7491
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
|
7494
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => on(r, e, n)), this.localCache[e] = n, this.notifyServiceWorker(e)));
|
|
7492
7495
|
}
|
|
7493
7496
|
async _get(e) {
|
|
7494
|
-
const n = await this._withRetries((r) =>
|
|
7497
|
+
const n = await this._withRetries((r) => Wa(r, e));
|
|
7495
7498
|
return this.localCache[e] = n, n;
|
|
7496
7499
|
}
|
|
7497
7500
|
async _remove(e) {
|
|
7498
|
-
return this._withPendingWrite(async () => (await this._withRetries((n) =>
|
|
7501
|
+
return this._withPendingWrite(async () => (await this._withRetries((n) => cn(n, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
|
7499
7502
|
}
|
|
7500
7503
|
async _poll() {
|
|
7501
7504
|
const e = await this._withRetries((i) => {
|
|
7502
|
-
const s =
|
|
7505
|
+
const s = it(i, !1).getAll();
|
|
7503
7506
|
return new Oe(s).toPromise();
|
|
7504
7507
|
});
|
|
7505
7508
|
if (!e)
|
|
@@ -7522,7 +7525,7 @@ class vr {
|
|
|
7522
7525
|
i(n);
|
|
7523
7526
|
}
|
|
7524
7527
|
startPolling() {
|
|
7525
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
7528
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ga);
|
|
7526
7529
|
}
|
|
7527
7530
|
stopPolling() {
|
|
7528
7531
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -7534,8 +7537,8 @@ class vr {
|
|
|
7534
7537
|
this.listeners[e] && (this.listeners[e].delete(n), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
|
|
7535
7538
|
}
|
|
7536
7539
|
}
|
|
7537
|
-
|
|
7538
|
-
const
|
|
7540
|
+
_r.type = "LOCAL";
|
|
7541
|
+
const Ja = _r;
|
|
7539
7542
|
new Ce(3e4, 6e4);
|
|
7540
7543
|
/**
|
|
7541
7544
|
* @license
|
|
@@ -7553,7 +7556,7 @@ new Ce(3e4, 6e4);
|
|
|
7553
7556
|
* See the License for the specific language governing permissions and
|
|
7554
7557
|
* limitations under the License.
|
|
7555
7558
|
*/
|
|
7556
|
-
function
|
|
7559
|
+
function Ya(t, e) {
|
|
7557
7560
|
return e ? $(e) : (I(
|
|
7558
7561
|
t._popupRedirectResolver,
|
|
7559
7562
|
t,
|
|
@@ -7577,7 +7580,7 @@ function Ja(t, e) {
|
|
|
7577
7580
|
* See the License for the specific language governing permissions and
|
|
7578
7581
|
* limitations under the License.
|
|
7579
7582
|
*/
|
|
7580
|
-
class
|
|
7583
|
+
class Ut extends ur {
|
|
7581
7584
|
constructor(e) {
|
|
7582
7585
|
super(
|
|
7583
7586
|
"custom",
|
|
@@ -7607,26 +7610,26 @@ class jt extends lr {
|
|
|
7607
7610
|
return e && (n.idToken = e), n;
|
|
7608
7611
|
}
|
|
7609
7612
|
}
|
|
7610
|
-
function Ya(t) {
|
|
7611
|
-
return Ca(t.auth, new jt(t), t.bypassAuthState);
|
|
7612
|
-
}
|
|
7613
7613
|
function Xa(t) {
|
|
7614
|
+
return Pa(t.auth, new Ut(t), t.bypassAuthState);
|
|
7615
|
+
}
|
|
7616
|
+
function Qa(t) {
|
|
7614
7617
|
const { auth: e, user: n } = t;
|
|
7615
7618
|
return I(
|
|
7616
7619
|
n,
|
|
7617
7620
|
e,
|
|
7618
7621
|
"internal-error"
|
|
7619
7622
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
7620
|
-
),
|
|
7623
|
+
), Ca(n, new Ut(t), t.bypassAuthState);
|
|
7621
7624
|
}
|
|
7622
|
-
async function
|
|
7625
|
+
async function Za(t) {
|
|
7623
7626
|
const { auth: e, user: n } = t;
|
|
7624
7627
|
return I(
|
|
7625
7628
|
n,
|
|
7626
7629
|
e,
|
|
7627
7630
|
"internal-error"
|
|
7628
7631
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
7629
|
-
),
|
|
7632
|
+
), Aa(n, new Ut(t), t.bypassAuthState);
|
|
7630
7633
|
}
|
|
7631
7634
|
/**
|
|
7632
7635
|
* @license
|
|
@@ -7644,7 +7647,7 @@ async function Qa(t) {
|
|
|
7644
7647
|
* See the License for the specific language governing permissions and
|
|
7645
7648
|
* limitations under the License.
|
|
7646
7649
|
*/
|
|
7647
|
-
class
|
|
7650
|
+
class Ir {
|
|
7648
7651
|
constructor(e, n, r, i, s = !1) {
|
|
7649
7652
|
this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(n) ? n : [n];
|
|
7650
7653
|
}
|
|
@@ -7686,13 +7689,13 @@ class _r {
|
|
|
7686
7689
|
switch (e) {
|
|
7687
7690
|
case "signInViaPopup":
|
|
7688
7691
|
case "signInViaRedirect":
|
|
7689
|
-
return
|
|
7692
|
+
return Xa;
|
|
7690
7693
|
case "linkViaPopup":
|
|
7691
7694
|
case "linkViaRedirect":
|
|
7692
|
-
return
|
|
7695
|
+
return Za;
|
|
7693
7696
|
case "reauthViaPopup":
|
|
7694
7697
|
case "reauthViaRedirect":
|
|
7695
|
-
return
|
|
7698
|
+
return Qa;
|
|
7696
7699
|
default:
|
|
7697
7700
|
H(
|
|
7698
7701
|
this.auth,
|
|
@@ -7727,8 +7730,8 @@ class _r {
|
|
|
7727
7730
|
* See the License for the specific language governing permissions and
|
|
7728
7731
|
* limitations under the License.
|
|
7729
7732
|
*/
|
|
7730
|
-
const
|
|
7731
|
-
class oe extends
|
|
7733
|
+
const eo = new Ce(2e3, 1e4);
|
|
7734
|
+
class oe extends Ir {
|
|
7732
7735
|
constructor(e, n, r, i, s) {
|
|
7733
7736
|
super(e, n, i, s), this.provider = r, this.authWindow = null, this.pollId = null, oe.currentPopupAction && oe.currentPopupAction.cancel(), oe.currentPopupAction = this;
|
|
7734
7737
|
}
|
|
@@ -7743,7 +7746,7 @@ class oe extends _r {
|
|
|
7743
7746
|
}
|
|
7744
7747
|
async onExecution() {
|
|
7745
7748
|
q(this.filter.length === 1, "Popup operations only handle one event");
|
|
7746
|
-
const e =
|
|
7749
|
+
const e = jt();
|
|
7747
7750
|
this.authWindow = await this.resolver._openPopup(
|
|
7748
7751
|
this.auth,
|
|
7749
7752
|
this.provider,
|
|
@@ -7791,7 +7794,7 @@ class oe extends _r {
|
|
|
7791
7794
|
);
|
|
7792
7795
|
return;
|
|
7793
7796
|
}
|
|
7794
|
-
this.pollId = window.setTimeout(e,
|
|
7797
|
+
this.pollId = window.setTimeout(e, eo.get());
|
|
7795
7798
|
};
|
|
7796
7799
|
e();
|
|
7797
7800
|
}
|
|
@@ -7813,8 +7816,8 @@ oe.currentPopupAction = null;
|
|
|
7813
7816
|
* See the License for the specific language governing permissions and
|
|
7814
7817
|
* limitations under the License.
|
|
7815
7818
|
*/
|
|
7816
|
-
const
|
|
7817
|
-
class
|
|
7819
|
+
const to = "pendingRedirect", Fe = /* @__PURE__ */ new Map();
|
|
7820
|
+
class no extends Ir {
|
|
7818
7821
|
constructor(e, n, r = !1) {
|
|
7819
7822
|
super(e, [
|
|
7820
7823
|
"signInViaRedirect",
|
|
@@ -7832,7 +7835,7 @@ class to extends _r {
|
|
|
7832
7835
|
let e = Fe.get(this.auth._key());
|
|
7833
7836
|
if (!e) {
|
|
7834
7837
|
try {
|
|
7835
|
-
const r = await
|
|
7838
|
+
const r = await ro(this.resolver, this.auth) ? await super.execute() : null;
|
|
7836
7839
|
e = () => Promise.resolve(r);
|
|
7837
7840
|
} catch (n) {
|
|
7838
7841
|
e = () => Promise.reject(n);
|
|
@@ -7860,26 +7863,26 @@ class to extends _r {
|
|
|
7860
7863
|
cleanUp() {
|
|
7861
7864
|
}
|
|
7862
7865
|
}
|
|
7863
|
-
async function
|
|
7864
|
-
const n =
|
|
7866
|
+
async function ro(t, e) {
|
|
7867
|
+
const n = ao(e), r = so(t);
|
|
7865
7868
|
if (!await r._isAvailable())
|
|
7866
7869
|
return !1;
|
|
7867
7870
|
const i = await r._get(n) === "true";
|
|
7868
7871
|
return await r._remove(n), i;
|
|
7869
7872
|
}
|
|
7870
|
-
function
|
|
7873
|
+
function io(t, e) {
|
|
7871
7874
|
Fe.set(t._key(), e);
|
|
7872
7875
|
}
|
|
7873
|
-
function
|
|
7876
|
+
function so(t) {
|
|
7874
7877
|
return $(t._redirectPersistence);
|
|
7875
7878
|
}
|
|
7876
|
-
function
|
|
7877
|
-
return $e(
|
|
7879
|
+
function ao(t) {
|
|
7880
|
+
return $e(to, t.config.apiKey, t.name);
|
|
7878
7881
|
}
|
|
7879
|
-
async function
|
|
7882
|
+
async function oo(t, e, n = !1) {
|
|
7880
7883
|
if (j(t.app))
|
|
7881
7884
|
return Promise.reject(ee(t));
|
|
7882
|
-
const r =
|
|
7885
|
+
const r = nt(t), i = Ya(r, e), a = await new no(r, i, n).execute();
|
|
7883
7886
|
return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
7884
7887
|
}
|
|
7885
7888
|
/**
|
|
@@ -7898,8 +7901,8 @@ async function ao(t, e, n = !1) {
|
|
|
7898
7901
|
* See the License for the specific language governing permissions and
|
|
7899
7902
|
* limitations under the License.
|
|
7900
7903
|
*/
|
|
7901
|
-
const
|
|
7902
|
-
class
|
|
7904
|
+
const co = 10 * 60 * 1e3;
|
|
7905
|
+
class lo {
|
|
7903
7906
|
constructor(e) {
|
|
7904
7907
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
7905
7908
|
}
|
|
@@ -7915,11 +7918,11 @@ class co {
|
|
|
7915
7918
|
let n = !1;
|
|
7916
7919
|
return this.consumers.forEach((r) => {
|
|
7917
7920
|
this.isEventForConsumer(e, r) && (n = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
|
7918
|
-
}), this.hasHandledPotentialRedirect || !
|
|
7921
|
+
}), this.hasHandledPotentialRedirect || !uo(e) || (this.hasHandledPotentialRedirect = !0, n || (this.queuedRedirectEvent = e, n = !0)), n;
|
|
7919
7922
|
}
|
|
7920
7923
|
sendToConsumer(e, n) {
|
|
7921
7924
|
var r;
|
|
7922
|
-
if (e.error && !
|
|
7925
|
+
if (e.error && !wr(e)) {
|
|
7923
7926
|
const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
|
7924
7927
|
n.onError(M(this.auth, i));
|
|
7925
7928
|
} else
|
|
@@ -7930,26 +7933,26 @@ class co {
|
|
|
7930
7933
|
return n.filter.includes(e.type) && r;
|
|
7931
7934
|
}
|
|
7932
7935
|
hasEventBeenHandled(e) {
|
|
7933
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
7936
|
+
return Date.now() - this.lastProcessedEventTime >= co && this.cachedEventUids.clear(), this.cachedEventUids.has(ln(e));
|
|
7934
7937
|
}
|
|
7935
7938
|
saveEventToCache(e) {
|
|
7936
|
-
this.cachedEventUids.add(
|
|
7939
|
+
this.cachedEventUids.add(ln(e)), this.lastProcessedEventTime = Date.now();
|
|
7937
7940
|
}
|
|
7938
7941
|
}
|
|
7939
|
-
function
|
|
7942
|
+
function ln(t) {
|
|
7940
7943
|
return [t.type, t.eventId, t.sessionId, t.tenantId].filter((e) => e).join("-");
|
|
7941
7944
|
}
|
|
7942
|
-
function
|
|
7945
|
+
function wr({ type: t, error: e }) {
|
|
7943
7946
|
return t === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
7944
7947
|
}
|
|
7945
|
-
function
|
|
7948
|
+
function uo(t) {
|
|
7946
7949
|
switch (t.type) {
|
|
7947
7950
|
case "signInViaRedirect":
|
|
7948
7951
|
case "linkViaRedirect":
|
|
7949
7952
|
case "reauthViaRedirect":
|
|
7950
7953
|
return !0;
|
|
7951
7954
|
case "unknown":
|
|
7952
|
-
return
|
|
7955
|
+
return wr(t);
|
|
7953
7956
|
default:
|
|
7954
7957
|
return !1;
|
|
7955
7958
|
}
|
|
@@ -7970,7 +7973,7 @@ function lo(t) {
|
|
|
7970
7973
|
* See the License for the specific language governing permissions and
|
|
7971
7974
|
* limitations under the License.
|
|
7972
7975
|
*/
|
|
7973
|
-
async function
|
|
7976
|
+
async function ho(t, e = {}) {
|
|
7974
7977
|
return fe(t, "GET", "/v1/projects", e);
|
|
7975
7978
|
}
|
|
7976
7979
|
/**
|
|
@@ -7989,14 +7992,14 @@ async function uo(t, e = {}) {
|
|
|
7989
7992
|
* See the License for the specific language governing permissions and
|
|
7990
7993
|
* limitations under the License.
|
|
7991
7994
|
*/
|
|
7992
|
-
const
|
|
7993
|
-
async function
|
|
7995
|
+
const po = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, fo = /^https?/;
|
|
7996
|
+
async function mo(t) {
|
|
7994
7997
|
if (t.config.emulator)
|
|
7995
7998
|
return;
|
|
7996
|
-
const { authorizedDomains: e } = await
|
|
7999
|
+
const { authorizedDomains: e } = await ho(t);
|
|
7997
8000
|
for (const n of e)
|
|
7998
8001
|
try {
|
|
7999
|
-
if (
|
|
8002
|
+
if (go(n))
|
|
8000
8003
|
return;
|
|
8001
8004
|
} catch {
|
|
8002
8005
|
}
|
|
@@ -8006,15 +8009,15 @@ async function fo(t) {
|
|
|
8006
8009
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
8007
8010
|
);
|
|
8008
8011
|
}
|
|
8009
|
-
function
|
|
8010
|
-
const e =
|
|
8012
|
+
function go(t) {
|
|
8013
|
+
const e = Tt(), { protocol: n, hostname: r } = new URL(e);
|
|
8011
8014
|
if (t.startsWith("chrome-extension://")) {
|
|
8012
8015
|
const a = new URL(t);
|
|
8013
8016
|
return a.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === r;
|
|
8014
8017
|
}
|
|
8015
|
-
if (!
|
|
8018
|
+
if (!fo.test(n))
|
|
8016
8019
|
return !1;
|
|
8017
|
-
if (
|
|
8020
|
+
if (po.test(t))
|
|
8018
8021
|
return r === t;
|
|
8019
8022
|
const i = t.replace(/\./g, "\\.");
|
|
8020
8023
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
|
@@ -8035,8 +8038,8 @@ function mo(t) {
|
|
|
8035
8038
|
* See the License for the specific language governing permissions and
|
|
8036
8039
|
* limitations under the License.
|
|
8037
8040
|
*/
|
|
8038
|
-
const
|
|
8039
|
-
function
|
|
8041
|
+
const yo = new Ce(3e4, 6e4);
|
|
8042
|
+
function un() {
|
|
8040
8043
|
const t = L().___jsl;
|
|
8041
8044
|
if (t != null && t.H) {
|
|
8042
8045
|
for (const e of Object.keys(t.H))
|
|
@@ -8045,22 +8048,22 @@ function ln() {
|
|
|
8045
8048
|
t.CP[n] = null;
|
|
8046
8049
|
}
|
|
8047
8050
|
}
|
|
8048
|
-
function
|
|
8051
|
+
function bo(t) {
|
|
8049
8052
|
return new Promise((e, n) => {
|
|
8050
8053
|
var r, i, s;
|
|
8051
8054
|
function a() {
|
|
8052
|
-
|
|
8055
|
+
un(), gapi.load("gapi.iframes", {
|
|
8053
8056
|
callback: () => {
|
|
8054
8057
|
e(gapi.iframes.getContext());
|
|
8055
8058
|
},
|
|
8056
8059
|
ontimeout: () => {
|
|
8057
|
-
|
|
8060
|
+
un(), n(M(
|
|
8058
8061
|
t,
|
|
8059
8062
|
"network-request-failed"
|
|
8060
8063
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
8061
8064
|
));
|
|
8062
8065
|
},
|
|
8063
|
-
timeout:
|
|
8066
|
+
timeout: yo.get()
|
|
8064
8067
|
});
|
|
8065
8068
|
}
|
|
8066
8069
|
if (!((i = (r = L().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
|
@@ -8068,22 +8071,22 @@ function yo(t) {
|
|
|
8068
8071
|
else if (!((s = L().gapi) === null || s === void 0) && s.load)
|
|
8069
8072
|
a();
|
|
8070
8073
|
else {
|
|
8071
|
-
const l =
|
|
8074
|
+
const l = Ia("iframefcb");
|
|
8072
8075
|
return L()[l] = () => {
|
|
8073
8076
|
gapi.load ? a() : n(M(
|
|
8074
8077
|
t,
|
|
8075
8078
|
"network-request-failed"
|
|
8076
8079
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
8077
8080
|
));
|
|
8078
|
-
},
|
|
8081
|
+
}, va(`${_a()}?onload=${l}`).catch((u) => n(u));
|
|
8079
8082
|
}
|
|
8080
8083
|
}).catch((e) => {
|
|
8081
8084
|
throw He = null, e;
|
|
8082
8085
|
});
|
|
8083
8086
|
}
|
|
8084
8087
|
let He = null;
|
|
8085
|
-
function
|
|
8086
|
-
return He = He ||
|
|
8088
|
+
function vo(t) {
|
|
8089
|
+
return He = He || bo(t), He;
|
|
8087
8090
|
}
|
|
8088
8091
|
/**
|
|
8089
8092
|
* @license
|
|
@@ -8101,7 +8104,7 @@ function bo(t) {
|
|
|
8101
8104
|
* See the License for the specific language governing permissions and
|
|
8102
8105
|
* limitations under the License.
|
|
8103
8106
|
*/
|
|
8104
|
-
const
|
|
8107
|
+
const _o = new Ce(5e3, 15e3), Io = "__/auth/iframe", wo = "emulator/auth/iframe", To = {
|
|
8105
8108
|
style: {
|
|
8106
8109
|
position: "absolute",
|
|
8107
8110
|
top: "-100px",
|
|
@@ -8110,13 +8113,13 @@ const vo = new Ce(5e3, 15e3), _o = "__/auth/iframe", Io = "emulator/auth/iframe"
|
|
|
8110
8113
|
},
|
|
8111
8114
|
"aria-hidden": "true",
|
|
8112
8115
|
tabindex: "-1"
|
|
8113
|
-
},
|
|
8116
|
+
}, ko = /* @__PURE__ */ new Map([
|
|
8114
8117
|
["identitytoolkit.googleapis.com", "p"],
|
|
8115
8118
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
8116
8119
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
8117
8120
|
// test
|
|
8118
8121
|
]);
|
|
8119
|
-
function
|
|
8122
|
+
function So(t) {
|
|
8120
8123
|
const e = t.config;
|
|
8121
8124
|
I(
|
|
8122
8125
|
e.authDomain,
|
|
@@ -8124,17 +8127,17 @@ function ko(t) {
|
|
|
8124
8127
|
"auth-domain-config-required"
|
|
8125
8128
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
8126
8129
|
);
|
|
8127
|
-
const n = e.emulator ?
|
|
8130
|
+
const n = e.emulator ? Nt(e, wo) : `https://${t.config.authDomain}/${Io}`, r = {
|
|
8128
8131
|
apiKey: e.apiKey,
|
|
8129
8132
|
appName: t.name,
|
|
8130
8133
|
v: Ae
|
|
8131
|
-
}, i =
|
|
8134
|
+
}, i = ko.get(t.config.apiHost);
|
|
8132
8135
|
i && (r.eid = i);
|
|
8133
8136
|
const s = t._getFrameworks();
|
|
8134
8137
|
return s.length && (r.fw = s.join(",")), `${n}?${Re(r).slice(1)}`;
|
|
8135
8138
|
}
|
|
8136
|
-
async function
|
|
8137
|
-
const e = await
|
|
8139
|
+
async function Eo(t) {
|
|
8140
|
+
const e = await vo(t), n = L().gapi;
|
|
8138
8141
|
return I(
|
|
8139
8142
|
n,
|
|
8140
8143
|
t,
|
|
@@ -8142,9 +8145,9 @@ async function So(t) {
|
|
|
8142
8145
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
8143
8146
|
), e.open({
|
|
8144
8147
|
where: document.body,
|
|
8145
|
-
url:
|
|
8148
|
+
url: So(t),
|
|
8146
8149
|
messageHandlersFilter: n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
8147
|
-
attributes:
|
|
8150
|
+
attributes: To,
|
|
8148
8151
|
dontclear: !0
|
|
8149
8152
|
}, (r) => new Promise(async (i, s) => {
|
|
8150
8153
|
await r.restyle({
|
|
@@ -8157,7 +8160,7 @@ async function So(t) {
|
|
|
8157
8160
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
8158
8161
|
), l = L().setTimeout(() => {
|
|
8159
8162
|
s(a);
|
|
8160
|
-
},
|
|
8163
|
+
}, _o.get());
|
|
8161
8164
|
function u() {
|
|
8162
8165
|
L().clearTimeout(l), i(r);
|
|
8163
8166
|
}
|
|
@@ -8182,13 +8185,13 @@ async function So(t) {
|
|
|
8182
8185
|
* See the License for the specific language governing permissions and
|
|
8183
8186
|
* limitations under the License.
|
|
8184
8187
|
*/
|
|
8185
|
-
const
|
|
8188
|
+
const Ro = {
|
|
8186
8189
|
location: "yes",
|
|
8187
8190
|
resizable: "yes",
|
|
8188
8191
|
statusbar: "yes",
|
|
8189
8192
|
toolbar: "no"
|
|
8190
|
-
},
|
|
8191
|
-
class
|
|
8193
|
+
}, Ao = 500, Co = 600, Po = "_blank", Oo = "http://localhost";
|
|
8194
|
+
class dn {
|
|
8192
8195
|
constructor(e) {
|
|
8193
8196
|
this.window = e, this.associatedEvent = null;
|
|
8194
8197
|
}
|
|
@@ -8200,19 +8203,19 @@ class un {
|
|
|
8200
8203
|
}
|
|
8201
8204
|
}
|
|
8202
8205
|
}
|
|
8203
|
-
function
|
|
8206
|
+
function Do(t, e, n, r = Ao, i = Co) {
|
|
8204
8207
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
|
8205
8208
|
let l = "";
|
|
8206
|
-
const u = Object.assign(Object.assign({},
|
|
8209
|
+
const u = Object.assign(Object.assign({}, Ro), {
|
|
8207
8210
|
width: r.toString(),
|
|
8208
8211
|
height: i.toString(),
|
|
8209
8212
|
top: s,
|
|
8210
8213
|
left: a
|
|
8211
8214
|
}), h = C().toLowerCase();
|
|
8212
|
-
n && (l =
|
|
8215
|
+
n && (l = nr(h) ? Po : n), er(h) && (e = e || Oo, u.scrollbars = "yes");
|
|
8213
8216
|
const g = Object.entries(u).reduce((E, [S, D]) => `${E}${S}=${D},`, "");
|
|
8214
|
-
if (
|
|
8215
|
-
return
|
|
8217
|
+
if (da(h) && l !== "_self")
|
|
8218
|
+
return No(e || "", l), new dn(null);
|
|
8216
8219
|
const y = window.open(e || "", l, g);
|
|
8217
8220
|
I(
|
|
8218
8221
|
y,
|
|
@@ -8224,9 +8227,9 @@ function Oo(t, e, n, r = Ro, i = Ao) {
|
|
|
8224
8227
|
y.focus();
|
|
8225
8228
|
} catch {
|
|
8226
8229
|
}
|
|
8227
|
-
return new
|
|
8230
|
+
return new dn(y);
|
|
8228
8231
|
}
|
|
8229
|
-
function
|
|
8232
|
+
function No(t, e) {
|
|
8230
8233
|
const n = document.createElement("a");
|
|
8231
8234
|
n.href = t, n.target = e;
|
|
8232
8235
|
const r = document.createEvent("MouseEvent");
|
|
@@ -8248,8 +8251,8 @@ function Do(t, e) {
|
|
|
8248
8251
|
* See the License for the specific language governing permissions and
|
|
8249
8252
|
* limitations under the License.
|
|
8250
8253
|
*/
|
|
8251
|
-
const
|
|
8252
|
-
async function
|
|
8254
|
+
const Mo = "__/auth/handler", Lo = "emulator/auth/handler", Bo = encodeURIComponent("fac");
|
|
8255
|
+
async function hn(t, e, n, r, i, s) {
|
|
8253
8256
|
I(
|
|
8254
8257
|
t.config.authDomain,
|
|
8255
8258
|
t,
|
|
@@ -8269,8 +8272,8 @@ async function dn(t, e, n, r, i, s) {
|
|
|
8269
8272
|
v: Ae,
|
|
8270
8273
|
eventId: i
|
|
8271
8274
|
};
|
|
8272
|
-
if (e instanceof
|
|
8273
|
-
e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "",
|
|
8275
|
+
if (e instanceof dr) {
|
|
8276
|
+
e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "", Li(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
8274
8277
|
for (const [g, y] of Object.entries({}))
|
|
8275
8278
|
a[g] = y;
|
|
8276
8279
|
}
|
|
@@ -8282,11 +8285,11 @@ async function dn(t, e, n, r, i, s) {
|
|
|
8282
8285
|
const l = a;
|
|
8283
8286
|
for (const g of Object.keys(l))
|
|
8284
8287
|
l[g] === void 0 && delete l[g];
|
|
8285
|
-
const u = await t._getAppCheckToken(), h = u ? `#${
|
|
8286
|
-
return `${
|
|
8288
|
+
const u = await t._getAppCheckToken(), h = u ? `#${Bo}=${encodeURIComponent(u)}` : "";
|
|
8289
|
+
return `${jo(t)}?${Re(l).slice(1)}${h}`;
|
|
8287
8290
|
}
|
|
8288
|
-
function
|
|
8289
|
-
return t.emulator ?
|
|
8291
|
+
function jo({ config: t }) {
|
|
8292
|
+
return t.emulator ? Nt(t, Lo) : `https://${t.authDomain}/${Mo}`;
|
|
8290
8293
|
}
|
|
8291
8294
|
/**
|
|
8292
8295
|
* @license
|
|
@@ -8304,23 +8307,23 @@ function Bo({ config: t }) {
|
|
|
8304
8307
|
* See the License for the specific language governing permissions and
|
|
8305
8308
|
* limitations under the License.
|
|
8306
8309
|
*/
|
|
8307
|
-
const
|
|
8308
|
-
class
|
|
8310
|
+
const ft = "webStorageSupport";
|
|
8311
|
+
class Uo {
|
|
8309
8312
|
constructor() {
|
|
8310
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
|
8313
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = gr, this._completeRedirectFn = oo, this._overrideRedirectResult = io;
|
|
8311
8314
|
}
|
|
8312
8315
|
// Wrapping in async even though we don't await anywhere in order
|
|
8313
8316
|
// to make sure errors are raised as promise rejections
|
|
8314
8317
|
async _openPopup(e, n, r, i) {
|
|
8315
8318
|
var s;
|
|
8316
8319
|
q((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
8317
|
-
const a = await
|
|
8318
|
-
return
|
|
8320
|
+
const a = await hn(e, n, r, Tt(), i);
|
|
8321
|
+
return Do(e, a, jt());
|
|
8319
8322
|
}
|
|
8320
8323
|
async _openRedirect(e, n, r, i) {
|
|
8321
8324
|
await this._originValidation(e);
|
|
8322
|
-
const s = await
|
|
8323
|
-
return
|
|
8325
|
+
const s = await hn(e, n, r, Tt(), i);
|
|
8326
|
+
return $a(s), new Promise(() => {
|
|
8324
8327
|
});
|
|
8325
8328
|
}
|
|
8326
8329
|
_initialize(e) {
|
|
@@ -8335,7 +8338,7 @@ class jo {
|
|
|
8335
8338
|
}), r;
|
|
8336
8339
|
}
|
|
8337
8340
|
async initAndGetManager(e) {
|
|
8338
|
-
const n = await
|
|
8341
|
+
const n = await Eo(e), r = new lo(e);
|
|
8339
8342
|
return n.register("authEvent", (i) => (I(
|
|
8340
8343
|
i == null ? void 0 : i.authEvent,
|
|
8341
8344
|
e,
|
|
@@ -8347,9 +8350,9 @@ class jo {
|
|
|
8347
8350
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
|
|
8348
8351
|
}
|
|
8349
8352
|
_isIframeWebStorageSupported(e, n) {
|
|
8350
|
-
this.iframes[e._key()].send(
|
|
8353
|
+
this.iframes[e._key()].send(ft, { type: ft }, (i) => {
|
|
8351
8354
|
var s;
|
|
8352
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
8355
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[ft];
|
|
8353
8356
|
a !== void 0 && n(!!a), H(
|
|
8354
8357
|
e,
|
|
8355
8358
|
"internal-error"
|
|
@@ -8359,14 +8362,14 @@ class jo {
|
|
|
8359
8362
|
}
|
|
8360
8363
|
_originValidation(e) {
|
|
8361
8364
|
const n = e._key();
|
|
8362
|
-
return this.originValidationPromises[n] || (this.originValidationPromises[n] =
|
|
8365
|
+
return this.originValidationPromises[n] || (this.originValidationPromises[n] = mo(e)), this.originValidationPromises[n];
|
|
8363
8366
|
}
|
|
8364
8367
|
get _shouldInitProactively() {
|
|
8365
|
-
return
|
|
8368
|
+
return or() || tr() || Lt();
|
|
8366
8369
|
}
|
|
8367
8370
|
}
|
|
8368
|
-
const
|
|
8369
|
-
var
|
|
8371
|
+
const xo = Uo;
|
|
8372
|
+
var pn = "@firebase/auth", fn = "1.7.9";
|
|
8370
8373
|
/**
|
|
8371
8374
|
* @license
|
|
8372
8375
|
* Copyright 2020 Google LLC
|
|
@@ -8383,7 +8386,7 @@ var hn = "@firebase/auth", pn = "1.7.9";
|
|
|
8383
8386
|
* See the License for the specific language governing permissions and
|
|
8384
8387
|
* limitations under the License.
|
|
8385
8388
|
*/
|
|
8386
|
-
class
|
|
8389
|
+
class $o {
|
|
8387
8390
|
constructor(e) {
|
|
8388
8391
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
|
8389
8392
|
}
|
|
@@ -8434,7 +8437,7 @@ class xo {
|
|
|
8434
8437
|
* See the License for the specific language governing permissions and
|
|
8435
8438
|
* limitations under the License.
|
|
8436
8439
|
*/
|
|
8437
|
-
function
|
|
8440
|
+
function Fo(t) {
|
|
8438
8441
|
switch (t) {
|
|
8439
8442
|
case "Node":
|
|
8440
8443
|
return "node";
|
|
@@ -8450,7 +8453,7 @@ function $o(t) {
|
|
|
8450
8453
|
return;
|
|
8451
8454
|
}
|
|
8452
8455
|
}
|
|
8453
|
-
function
|
|
8456
|
+
function Ho(t) {
|
|
8454
8457
|
Te(new he(
|
|
8455
8458
|
"auth",
|
|
8456
8459
|
(e, { options: n }) => {
|
|
@@ -8463,9 +8466,9 @@ function Fo(t) {
|
|
|
8463
8466
|
apiHost: "identitytoolkit.googleapis.com",
|
|
8464
8467
|
tokenApiHost: "securetoken.googleapis.com",
|
|
8465
8468
|
apiScheme: "https",
|
|
8466
|
-
sdkClientVersion:
|
|
8467
|
-
}, h = new
|
|
8468
|
-
return
|
|
8469
|
+
sdkClientVersion: cr(t)
|
|
8470
|
+
}, h = new ya(r, i, s, u);
|
|
8471
|
+
return Ta(h, n), h;
|
|
8469
8472
|
},
|
|
8470
8473
|
"PUBLIC"
|
|
8471
8474
|
/* ComponentType.PUBLIC */
|
|
@@ -8480,18 +8483,18 @@ function Fo(t) {
|
|
|
8480
8483
|
})), Te(new he(
|
|
8481
8484
|
"auth-internal",
|
|
8482
8485
|
(e) => {
|
|
8483
|
-
const n =
|
|
8486
|
+
const n = nt(e.getProvider(
|
|
8484
8487
|
"auth"
|
|
8485
8488
|
/* _ComponentName.AUTH */
|
|
8486
8489
|
).getImmediate());
|
|
8487
|
-
return ((r) => new
|
|
8490
|
+
return ((r) => new $o(r))(n);
|
|
8488
8491
|
},
|
|
8489
8492
|
"PRIVATE"
|
|
8490
8493
|
/* ComponentType.PRIVATE */
|
|
8491
8494
|
).setInstantiationMode(
|
|
8492
8495
|
"EXPLICIT"
|
|
8493
8496
|
/* InstantiationMode.EXPLICIT */
|
|
8494
|
-
)), ce(
|
|
8497
|
+
)), ce(pn, fn, Fo(t)), ce(pn, fn, "esm2017");
|
|
8495
8498
|
}
|
|
8496
8499
|
/**
|
|
8497
8500
|
* @license
|
|
@@ -8509,47 +8512,47 @@ function Fo(t) {
|
|
|
8509
8512
|
* See the License for the specific language governing permissions and
|
|
8510
8513
|
* limitations under the License.
|
|
8511
8514
|
*/
|
|
8512
|
-
const
|
|
8513
|
-
let
|
|
8514
|
-
const
|
|
8515
|
+
const qo = 5 * 60, Vo = Bn("authIdTokenMaxAge") || qo;
|
|
8516
|
+
let mn = null;
|
|
8517
|
+
const zo = (t) => async (e) => {
|
|
8515
8518
|
const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
|
|
8516
|
-
if (r && r >
|
|
8519
|
+
if (r && r > Vo)
|
|
8517
8520
|
return;
|
|
8518
8521
|
const i = n == null ? void 0 : n.token;
|
|
8519
|
-
|
|
8522
|
+
mn !== i && (mn = i, await fetch(t, {
|
|
8520
8523
|
method: i ? "POST" : "DELETE",
|
|
8521
8524
|
headers: i ? {
|
|
8522
8525
|
Authorization: `Bearer ${i}`
|
|
8523
8526
|
} : {}
|
|
8524
8527
|
}));
|
|
8525
8528
|
};
|
|
8526
|
-
function
|
|
8527
|
-
const e =
|
|
8529
|
+
function Wo(t = js()) {
|
|
8530
|
+
const e = $n(t, "auth");
|
|
8528
8531
|
if (e.isInitialized())
|
|
8529
8532
|
return e.getImmediate();
|
|
8530
|
-
const n =
|
|
8531
|
-
popupRedirectResolver:
|
|
8533
|
+
const n = wa(t, {
|
|
8534
|
+
popupRedirectResolver: xo,
|
|
8532
8535
|
persistence: [
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
+
Ja,
|
|
8537
|
+
ja,
|
|
8538
|
+
gr
|
|
8536
8539
|
]
|
|
8537
|
-
}), r =
|
|
8540
|
+
}), r = Bn("authTokenSyncURL");
|
|
8538
8541
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
|
8539
8542
|
const s = new URL(r, location.origin);
|
|
8540
8543
|
if (location.origin === s.origin) {
|
|
8541
|
-
const a =
|
|
8542
|
-
|
|
8544
|
+
const a = zo(s.toString());
|
|
8545
|
+
Ma(n, a, () => a(n.currentUser)), Na(n, (l) => a(l));
|
|
8543
8546
|
}
|
|
8544
8547
|
}
|
|
8545
|
-
const i =
|
|
8546
|
-
return i &&
|
|
8548
|
+
const i = Ti("auth");
|
|
8549
|
+
return i && ka(n, `http://${i}`), n;
|
|
8547
8550
|
}
|
|
8548
|
-
function
|
|
8551
|
+
function Go() {
|
|
8549
8552
|
var t, e;
|
|
8550
8553
|
return (e = (t = document.getElementsByTagName("head")) === null || t === void 0 ? void 0 : t[0]) !== null && e !== void 0 ? e : document;
|
|
8551
8554
|
}
|
|
8552
|
-
|
|
8555
|
+
ba({
|
|
8553
8556
|
loadJS(t) {
|
|
8554
8557
|
return new Promise((e, n) => {
|
|
8555
8558
|
const r = document.createElement("script");
|
|
@@ -8559,19 +8562,19 @@ ya({
|
|
|
8559
8562
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
8560
8563
|
);
|
|
8561
8564
|
s.customData = i, n(s);
|
|
8562
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
|
8565
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", Go().appendChild(r);
|
|
8563
8566
|
});
|
|
8564
8567
|
},
|
|
8565
8568
|
gapiScript: "https://apis.google.com/js/api.js",
|
|
8566
8569
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
8567
8570
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
8568
8571
|
});
|
|
8569
|
-
|
|
8572
|
+
Ho(
|
|
8570
8573
|
"Browser"
|
|
8571
8574
|
/* ClientPlatform.BROWSER */
|
|
8572
8575
|
);
|
|
8573
|
-
const
|
|
8574
|
-
history:
|
|
8576
|
+
const Ko = Ar({
|
|
8577
|
+
history: Cr(),
|
|
8575
8578
|
routes: [
|
|
8576
8579
|
...ze,
|
|
8577
8580
|
...Ie
|
|
@@ -8582,23 +8585,23 @@ const Go = Rr({
|
|
|
8582
8585
|
// },
|
|
8583
8586
|
].map((t) => ({
|
|
8584
8587
|
...t,
|
|
8585
|
-
component:
|
|
8586
|
-
|
|
8588
|
+
component: Ur(
|
|
8589
|
+
Dr({
|
|
8587
8590
|
loader: t.component
|
|
8588
8591
|
})
|
|
8589
8592
|
)
|
|
8590
8593
|
}))
|
|
8591
8594
|
});
|
|
8592
|
-
let
|
|
8593
|
-
|
|
8595
|
+
let mt;
|
|
8596
|
+
Ko.beforeEach(async (t) => {
|
|
8594
8597
|
const {
|
|
8595
8598
|
// sessionUser,
|
|
8596
8599
|
currentRestaurant: e,
|
|
8597
8600
|
currentBusiness: n,
|
|
8598
8601
|
readRestaurants: r,
|
|
8599
8602
|
changeRestaurant: i
|
|
8600
|
-
} =
|
|
8601
|
-
return !n.value || !e.value ? (
|
|
8603
|
+
} = Et();
|
|
8604
|
+
return !n.value || !e.value ? (mt || (mt = Promise.all([
|
|
8602
8605
|
new Promise(async (s) => {
|
|
8603
8606
|
const a = qe(n, (l) => {
|
|
8604
8607
|
l && (a(), s(!0));
|
|
@@ -8610,12 +8613,12 @@ Go.beforeEach(async (t) => {
|
|
|
8610
8613
|
}), l = await r();
|
|
8611
8614
|
await i(l == null ? void 0 : l.at(0));
|
|
8612
8615
|
})
|
|
8613
|
-
]).then((s) => !0)),
|
|
8616
|
+
]).then((s) => !0)), mt) : !0;
|
|
8614
8617
|
});
|
|
8615
|
-
const
|
|
8618
|
+
const Jo = /* @__PURE__ */ yn({
|
|
8616
8619
|
__name: "AppSidebar",
|
|
8617
8620
|
setup(t) {
|
|
8618
|
-
const e =
|
|
8621
|
+
const e = Et(), n = Pr(), { t: r } = xr(), i = Nr(n.currentRoute.value.name);
|
|
8619
8622
|
qe(n.currentRoute, () => {
|
|
8620
8623
|
let h = n.currentRoute.value.name;
|
|
8621
8624
|
n.currentRoute.value.meta.parent && (h = n.currentRoute.value.meta.parent), i.value = h;
|
|
@@ -8632,7 +8635,7 @@ const Ko = /* @__PURE__ */ gn({
|
|
|
8632
8635
|
return n.push({ name: h.name });
|
|
8633
8636
|
}
|
|
8634
8637
|
};
|
|
8635
|
-
return h.meta.sidebarNew && (y.badge = () =>
|
|
8638
|
+
return h.meta.sidebarNew && (y.badge = () => Mr(Fr.FmPill, { label: "New" })), y;
|
|
8636
8639
|
}).filter((h) => !!h);
|
|
8637
8640
|
function a(h, g) {
|
|
8638
8641
|
return h.map((y) => {
|
|
@@ -8660,7 +8663,7 @@ const Ko = /* @__PURE__ */ gn({
|
|
|
8660
8663
|
return n.push({ name: h.name });
|
|
8661
8664
|
}
|
|
8662
8665
|
};
|
|
8663
|
-
}).filter((h) => !!h), u =
|
|
8666
|
+
}).filter((h) => !!h), u = gn(() => {
|
|
8664
8667
|
var g, y;
|
|
8665
8668
|
const h = [...s];
|
|
8666
8669
|
return h.push({
|
|
@@ -8702,8 +8705,8 @@ const Ko = /* @__PURE__ */ gn({
|
|
|
8702
8705
|
}), h.push(...l)), h;
|
|
8703
8706
|
});
|
|
8704
8707
|
return (h, g) => {
|
|
8705
|
-
const y =
|
|
8706
|
-
return
|
|
8708
|
+
const y = bn("FmCollapsibleTabs");
|
|
8709
|
+
return vn(), _n(y, {
|
|
8707
8710
|
modelValue: i.value,
|
|
8708
8711
|
"onUpdate:modelValue": g[0] || (g[0] = (E) => i.value = E),
|
|
8709
8712
|
items: u.value,
|
|
@@ -8712,32 +8715,32 @@ const Ko = /* @__PURE__ */ gn({
|
|
|
8712
8715
|
};
|
|
8713
8716
|
}
|
|
8714
8717
|
});
|
|
8715
|
-
var
|
|
8716
|
-
const
|
|
8718
|
+
var Yo = { 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" } };
|
|
8719
|
+
const sc = /* @__PURE__ */ yn({
|
|
8717
8720
|
__name: "App",
|
|
8718
8721
|
setup(t) {
|
|
8719
|
-
const { state: e } =
|
|
8722
|
+
const { state: e } = mi(), n = Et(), r = Or(), i = Fn(Yo.firebase);
|
|
8720
8723
|
async function s() {
|
|
8721
8724
|
const a = n.sessionUser.value;
|
|
8722
8725
|
if (!a || !a.token) return;
|
|
8723
|
-
const l = await a.getCustomToken(), u =
|
|
8724
|
-
await
|
|
8726
|
+
const l = await a.getCustomToken(), u = Wo(i);
|
|
8727
|
+
await Da(u, l);
|
|
8725
8728
|
}
|
|
8726
|
-
return s(), qe(n.sessionUser, s),
|
|
8729
|
+
return s(), qe(n.sessionUser, s), Lr(() => {
|
|
8727
8730
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
|
8728
|
-
}),
|
|
8729
|
-
n.registerSidebarComponent(
|
|
8731
|
+
}), Br(() => {
|
|
8732
|
+
n.registerSidebarComponent(Jo);
|
|
8730
8733
|
}), (a, l) => {
|
|
8731
|
-
const u =
|
|
8732
|
-
return
|
|
8733
|
-
key:
|
|
8734
|
+
const u = bn("RouterView");
|
|
8735
|
+
return vn(), _n(u, {
|
|
8736
|
+
key: jr(r).path
|
|
8734
8737
|
});
|
|
8735
8738
|
};
|
|
8736
8739
|
}
|
|
8737
|
-
}),
|
|
8740
|
+
}), ac = () => {
|
|
8738
8741
|
const t = [
|
|
8739
|
-
{ "en-US":
|
|
8740
|
-
|
|
8742
|
+
{ "en-US": qr, "th-TH": zr, "zh-CN": Gr },
|
|
8743
|
+
Rr
|
|
8741
8744
|
], e = new Set(
|
|
8742
8745
|
t.flatMap((n) => Object.keys(n))
|
|
8743
8746
|
);
|
|
@@ -8751,13 +8754,13 @@ const ic = /* @__PURE__ */ gn({
|
|
|
8751
8754
|
},
|
|
8752
8755
|
{}
|
|
8753
8756
|
);
|
|
8754
|
-
},
|
|
8757
|
+
}, oc = [...Ie, ...ze];
|
|
8755
8758
|
export {
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8759
|
+
Xt as _,
|
|
8760
|
+
ic as a,
|
|
8761
|
+
sc as b,
|
|
8762
|
+
Kr as c,
|
|
8763
|
+
rc as g,
|
|
8764
|
+
ac as i,
|
|
8765
|
+
oc as r
|
|
8763
8766
|
};
|