@everymatrix/player-account-controller 1.67.3 → 1.69.0
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/components/{GeneralLogout-DC1eQria.js → GeneralLogout-CYE3twI-.js} +1493 -1458
- package/components/{GeneralLogout-BvHI6IRl.js → GeneralLogout-CgxHUYZx.js} +1474 -1439
- package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
- package/components/{PlayerAccountBettingHistory-Bo3-gODs.js → PlayerAccountBettingHistory-B0IsJ01N.js} +27 -27
- package/components/{PlayerAccountBettingHistory-BTEzWQvN.js → PlayerAccountBettingHistory-BXBMy618.js} +27 -27
- package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DRMe1Ngk.js → PlayerAccountBiometrics-CCk_4MyI.js} +22 -22
- package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-eJ0NsGhR.js → PlayerAccountBiometrics-DrmVF6dX.js} +22 -22
- package/components/{PlayerAccountClosure-CenyN-4X.js → PlayerAccountClosure-B_xwOPds.js} +17 -17
- package/components/{PlayerAccountClosure-DMF66IyF.cjs → PlayerAccountClosure-DoZ91aH2.cjs} +1 -1
- package/components/{PlayerAccountClosure-D4FSDBR-.js → PlayerAccountClosure-UwL_V2IO.js} +17 -17
- package/components/{PlayerAccountController-D3jDQKMc.js → PlayerAccountController-Bj-XgQJE.js} +2247 -2187
- package/components/{PlayerAccountController-C88OV9t0.js → PlayerAccountController-CvlVSeuD.js} +2250 -2190
- package/components/PlayerAccountController-DOYR_ETm.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-bgH5yldD.js → PlayerAccountGamingLimits-B0QALjVi.js} +19 -19
- package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-qvefhQXf.js → PlayerAccountGamingLimits-C11On8aq.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js → PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js → PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js} +53 -53
- package/components/PlayerAccountGamingLimitsGroupEdit-C40tSY9Z.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-CoayAtf0.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js → PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js} +48 -48
- package/components/{PlayerAccountGamingLimitsHistory2-CkXX1K7L.js → PlayerAccountGamingLimitsHistory2-Br4h7_eS.js} +46 -46
- package/components/{PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs → PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-ByqimrlU.js → PlayerAccountGamingLimitsInfoCard-D5Vpi7Gd.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js → PlayerAccountGamingLimitsInfoCard-blI001Nx.js} +80 -80
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Bjtas4Og.js → PlayerAccountGamingLimitsPage2Gm16-C-xpYl-9.js} +118 -118
- package/components/{PlayerAccountGamingLimitsPage2Gm16-AMitiwvP.js → PlayerAccountGamingLimitsPage2Gm16-DHrtbHzT.js} +101 -101
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DfhEHyrV.cjs → PlayerAccountGamingLimitsPage2Gm16-D_gOt2wG.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Bhe4pnzt.js → PlayerAccountGamingLimitsPopup-DTb6cpuT.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-LjmHojBJ.js → PlayerAccountGamingLimitsPopup-Dz9ROowj.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2-bXqMOFZu.js → PlayerAccountGamingLimitsWrapper2-BCk1ujGX.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-Db4M3i4n.js → PlayerAccountGamingLimitsWrapper2-CfyD6xtV.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-DUm34VGO.cjs → PlayerAccountGamingLimitsWrapper2-CwscbjX3.cjs} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BXvbser8.js → PlayerAccountGeneralConfirmationModal-DbBEBukz.js} +100 -105
- package/components/{PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js → PlayerAccountGeneralConfirmationModal-DzZ3ym_J.js} +100 -105
- package/components/{PlayerAccountMenu-BZSV920e.cjs → PlayerAccountMenu-BZnkRiU-.cjs} +1 -1
- package/components/{PlayerAccountMenu-COhw6RUO.js → PlayerAccountMenu-D4d9TQsD.js} +29 -29
- package/components/{PlayerAccountMenu-CXkbGum8.js → PlayerAccountMenu-j3TA2Osb.js} +29 -29
- package/components/{PlayerAccountModal-BlJKMVDD.js → PlayerAccountModal-Cbpkb5P6.js} +44 -44
- package/components/{PlayerAccountModal-C2BAyjz8.js → PlayerAccountModal-Co5a_OZZ.js} +44 -44
- package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
- package/components/{PlayerAccountNotifications-Br27rQuw.js → PlayerAccountNotifications-CkbUxjuk.js} +35 -35
- package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
- package/components/{PlayerAccountNotifications-YIzJUJtW.js → PlayerAccountNotifications-f0A-2obd.js} +120 -120
- package/components/{PlayerAccountProductRestriction-JWXFId11.js → PlayerAccountProductRestriction-BXXflOCi.js} +2228 -2202
- package/components/{PlayerAccountProductRestriction-B77qHgnG.js → PlayerAccountProductRestriction-f6Ihr4uI.js} +2241 -2215
- package/components/{PlayerAccountProductRestriction-DWcq863g.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +271 -271
- package/components/{PlayerAccountSelfExclusion-hvxg512S.js → PlayerAccountSelfExclusion-B3xDcZXs.js} +898 -900
- package/components/{PlayerAccountSelfExclusion-DgB8NI71.cjs → PlayerAccountSelfExclusion-NoFOWnwy.cjs} +155 -155
- package/components/{PlayerAccountSelfExclusion-B-7yOGf0.js → PlayerAccountSelfExclusion-tzK5a7dq.js} +1208 -1210
- package/components/{PlayerAccountTimeout-BZa0DlXA.js → PlayerAccountTimeout-DFM9IiTT.js} +103 -103
- package/components/{PlayerAccountTimeout-ouzdA1ph.cjs → PlayerAccountTimeout-HZrAxL_1.cjs} +1 -1
- package/components/{PlayerAccountTimeout-DiPXXjP_.js → PlayerAccountTimeout-b0Nl9gfs.js} +103 -103
- package/components/{PlayerAccountTransactionsHistory-tOK25Lc2.js → PlayerAccountTransactionsHistory-B_kH0Hjt.js} +56 -56
- package/components/{PlayerAccountTransactionsHistory-DApJMGFo.js → PlayerAccountTransactionsHistory-DoyCBIgA.js} +56 -56
- package/components/{PlayerAccountTransactionsHistory-DrGUOnga.cjs → PlayerAccountTransactionsHistory-PIw_RR0i.cjs} +1 -1
- package/components/{PlayerActiveBonuses-dQ_zgejC.js → PlayerActiveBonuses-CSDz-kWg.js} +490 -460
- package/components/{PlayerActiveBonuses-5Q7f3yAG.js → PlayerActiveBonuses-CrOQdlJB.js} +497 -467
- package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
- package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
- package/components/{PlayerBonusCard-uudC6LGS.js → PlayerBonusCard-Ca4GQeMu.js} +207 -191
- package/components/{PlayerBonusCard-CBO8neP8.js → PlayerBonusCard-qHJ-z21x.js} +207 -191
- package/components/PlayerBonusHistory-2blkOHr3.js +1051 -0
- package/components/PlayerBonusHistory-ChzkBbAH.js +1040 -0
- package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
- package/components/{PlayerChangePassword-BUbXMFnB.js → PlayerChangePassword-C2ZoKuCq.js} +66 -66
- package/components/{PlayerChangePassword-D4DzBZed.js → PlayerChangePassword-ChwKfBC6.js} +66 -66
- package/components/{PlayerChangePassword-D0aYOkoZ.cjs → PlayerChangePassword-LgjKzYU1.cjs} +1 -1
- package/components/{PlayerDeposit-lfkc7jOj.js → PlayerDeposit-BPZ5wCAZ.js} +29 -29
- package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
- package/components/{PlayerDeposit-BB64hmyO.js → PlayerDeposit-VLcz0tQH.js} +29 -29
- package/components/PlayerGamingHistory-8wco0drZ.js +1016 -0
- package/components/{PlayerGamingHistory-NKBfYTcF.js → PlayerGamingHistory-CRFPc2yB.js} +472 -456
- package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-QAaJbf_-.js → PlayerPendingWithdrawals-DeNKdUgJ.js} +26 -26
- package/components/{PlayerPendingWithdrawals-B6qiUkpB.js → PlayerPendingWithdrawals-go7okUzL.js} +26 -26
- package/components/{PlayerProfileInfo-CQWJWCmN.cjs → PlayerProfileInfo-DcmY9plr.cjs} +1 -1
- package/components/{PlayerProfileInfo-Bpxnw7hG.js → PlayerProfileInfo-FeIk7zXc.js} +120 -120
- package/components/{PlayerProfileInfo-C-yTxZtj.js → PlayerProfileInfo-lfogo592.js} +116 -116
- package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
- package/components/{PlayerRealityCheck-DQ-_y3IT.js → PlayerRealityCheck-C2TUMl9-.js} +45 -45
- package/components/{PlayerRealityCheck-CyxiiYoi.js → PlayerRealityCheck-DMNAglZN.js} +44 -44
- package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
- package/components/{PlayerTransactionHistory-6G6ws2ky.js → PlayerTransactionHistory-A-aVfyoc.js} +19 -19
- package/components/{PlayerTransactionHistory-BjRhtwD4.js → PlayerTransactionHistory-BFV_XJw9.js} +19 -19
- package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
- package/components/{PlayerWithdrawal-BIBZrL0i.js → PlayerWithdrawal-B_wQZI_t.js} +19 -19
- package/components/{PlayerWithdrawal-CuR6Pb4o.js → PlayerWithdrawal-CTttZqLr.js} +19 -19
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_14-yDxYy7hE.js → checkbox-group-input_14-0MlabybW.js} +3270 -3262
- package/stencil/{checkbox-group-input_14-BQWBhbsW.cjs → checkbox-group-input_14-BUUOn-f1.cjs} +263 -263
- package/stencil/{checkbox-group-input_14-Rk4kY_Jo.js → checkbox-group-input_14-D0Wi9yCm.js} +3273 -3265
- package/stencil/{index-13661b98-mRWmP463.js → index-13661b98-Dd0kDfGP.js} +215 -215
- package/stencil/{index-13661b98-l0CINbAR.js → index-13661b98-Vb11Gqfi.js} +207 -207
- package/stencil/index-13661b98-wjpz7oVL.cjs +1 -0
- package/stencil/{index-1ef3a64c-Dd-0nq4l.js → index-1ef3a64c-B5I86vac.js} +192 -192
- package/stencil/{index-1ef3a64c-B1Hda3TY.js → index-1ef3a64c-DqUPq8OL.js} +185 -185
- package/stencil/index-1ef3a64c-uiTzpR-U.cjs +1 -0
- package/stencil/{index-7c5e707a-CuTkyLaW.js → index-7c5e707a-2AC9SnQ7.js} +209 -209
- package/stencil/index-7c5e707a-BM4sfR0h.js +643 -0
- package/stencil/index-7c5e707a-Cw-c3Bke.cjs +1 -0
- package/stencil/{index-9c0f6c58-RPoO1End.js → index-9c0f6c58-BB5opCt9.js} +176 -176
- package/stencil/index-9c0f6c58-DmOKHEVq.cjs +1 -0
- package/stencil/{index-9c0f6c58-NlVKpLut.js → index-9c0f6c58-bxjYqwOi.js} +180 -180
- package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
- package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
- package/stencil/index-b2193545-DePry399.js +503 -0
- package/stencil/{pam-change-password-CCgx2ZAF.cjs → pam-change-password-1_IegfkZ.cjs} +1 -1
- package/stencil/{pam-change-password-CDNRmQRk.js → pam-change-password-BUGFXbZ2.js} +1 -1
- package/stencil/{pam-change-password-CThYR6vj.js → pam-change-password-D23ISzqi.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-B3Gc4JmD.cjs → pam-change-password-f4a1e7e7-BqEyIcXD.cjs} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-DegbNPpZ.js → pam-change-password-f4a1e7e7-Cxe8Atmr.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-B0x-tDUM.js → pam-change-password-f4a1e7e7-DzJmDiaX.js} +1 -1
- package/stencil/{player-kyc-verification-Cxnz1raa.js → player-kyc-verification-CMAkNiAB.js} +9 -9
- package/stencil/{player-kyc-verification-qKWuqiUm.cjs → player-kyc-verification-DYcPWwfi.cjs} +2 -2
- package/stencil/{player-kyc-verification-DA_O1Dqu.js → player-kyc-verification-p2WFnKBp.js} +12 -12
- package/stencil/{ui-skeleton-1cb75d00-CZJ4UoDJ.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-dFWe5qbW.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-D5Bub0nv.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +1 -1
- package/stencil/{ui-skeleton-CZ5yC1WO.js → ui-skeleton-C974aG7g.js} +2 -2
- package/stencil/{ui-skeleton-vLKdvRqw.js → ui-skeleton-DoX-UmRU.js} +2 -2
- package/stencil/{ui-skeleton-BH5oLkn9.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-BMWb-WJE.js → user-deposit-withdrawal-BjmaGgRK.js} +46 -46
- package/stencil/{user-deposit-withdrawal-ByE9O4TW.js → user-deposit-withdrawal-D6SDVw3h.js} +46 -46
- package/stencil/{user-deposit-withdrawal-DGTrOlxS.cjs → user-deposit-withdrawal-Du59X_-y.cjs} +2 -2
- package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
- package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
- package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
- package/components/GeneralLogout-DweBl3EQ.cjs +0 -21
- package/components/PlayerAccountController-BrHDusjh.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js +0 -2893
- package/components/PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js +0 -2893
- package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +0 -1
- package/components/PlayerActiveBonuses-C7-7ACSS.cjs +0 -1
- package/components/PlayerBonusCard-nwlvuWsq.cjs +0 -1
- package/components/PlayerBonusHistory-CG01zuOG.js +0 -985
- package/components/PlayerBonusHistory-D1AxPL0k.js +0 -986
- package/components/PlayerBonusHistory-DI5gRSGg.cjs +0 -1
- package/components/PlayerGamingHistory-C7HQc8KL.cjs +0 -1
- package/components/PlayerGamingHistory-DxA-MkBo.js +0 -975
- package/stencil/index-13661b98-Pl0EtfMi.cjs +0 -1
- package/stencil/index-1ef3a64c-CCWt3IAA.cjs +0 -1
- package/stencil/index-7c5e707a-8-4_dLFT.js +0 -643
- package/stencil/index-7c5e707a-nBsW029h.cjs +0 -1
- package/stencil/index-9c0f6c58-DbSOntvG.cjs +0 -1
- package/stencil/index-b2193545-BXNomIzV.js +0 -519
- package/stencil/index-b2193545-CYe2oVMy.js +0 -503
- package/stencil/index-b2193545-DxRobzZI.cjs +0 -1
- package/stencil/user-transaction-history-BU4-cXt6.js +0 -350
- package/stencil/user-transaction-history-CXBKXul8.js +0 -374
- package/stencil/user-transaction-history-DLLIZ5Ck.cjs +0 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Nr = Object.defineProperty, Cr = Object.defineProperties;
|
|
2
|
+
var Mr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ft = Object.getOwnPropertySymbols;
|
|
4
|
+
var $r = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (e, t, r) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
$r.call(t, r) && Me(e, r, t[r]);
|
|
8
|
+
if (ft)
|
|
9
|
+
for (var r of ft(t))
|
|
10
|
+
Rr.call(t, r) && Me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var O = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, dt = (e, t) => Cr(e, Mr(t));
|
|
13
|
+
var O = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var mt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
a(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
a(r.next(u));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, s = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
a(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
a(r.throw(u));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, a = (u) => u.done ?
|
|
28
|
-
a((
|
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function H() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
32
|
+
const Ur = (e) => e;
|
|
33
|
+
function Dr(e, t) {
|
|
34
|
+
for (const r in t)
|
|
35
|
+
e[r] = t[r];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function jt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function bt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function G(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(jt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ue(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function kt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
-
return e === t ? !0 : (
|
|
56
|
+
let de;
|
|
57
|
+
function Oo(e, t) {
|
|
58
|
+
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Gr(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Vt(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
|
-
for (const
|
|
66
|
-
|
|
65
|
+
for (const n of t)
|
|
66
|
+
n(void 0);
|
|
67
67
|
return H;
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
return
|
|
69
|
+
const r = e.subscribe(...t);
|
|
70
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
e.$$.on_destroy.push(
|
|
72
|
+
function Fr(e, t, r) {
|
|
73
|
+
e.$$.on_destroy.push(Vt(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Io(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
|
-
const i =
|
|
77
|
+
const i = Xt(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return e[1] &&
|
|
81
|
+
function Xt(e, t, r, n) {
|
|
82
|
+
return e[1] && n ? Dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (e[2] &&
|
|
86
|
-
const i = e[2](r
|
|
84
|
+
function Lo(e, t, r, n) {
|
|
85
|
+
if (e[2] && n) {
|
|
86
|
+
const i = e[2](n(r));
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
@@ -96,40 +96,40 @@ function Ao(e, t, n, r) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function No(e, t, r, n, i, o) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const s =
|
|
101
|
+
const s = Xt(t, r, n, o);
|
|
102
102
|
e.p(s, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Co(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
|
-
const t = [],
|
|
108
|
-
for (let
|
|
109
|
-
t[
|
|
107
|
+
const t = [], r = e.ctx.length / 32;
|
|
108
|
+
for (let n = 0; n < r; n++)
|
|
109
|
+
t[n] = -1;
|
|
110
110
|
return t;
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Mo(e) {
|
|
115
115
|
return e == null ? "" : e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return e &&
|
|
117
|
+
function $o(e) {
|
|
118
|
+
return e && ue(e.destroy) ? e.destroy : H;
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
let
|
|
120
|
+
const Wt = typeof window != "undefined";
|
|
121
|
+
let jr = Wt ? () => window.performance.now() : () => Date.now(), ut = Wt ? (e) => requestAnimationFrame(e) : H;
|
|
122
122
|
const W = /* @__PURE__ */ new Set();
|
|
123
|
-
function
|
|
123
|
+
function zt(e) {
|
|
124
124
|
W.forEach((t) => {
|
|
125
125
|
t.c(e) || (W.delete(t), t.f());
|
|
126
|
-
}), W.size !== 0 &&
|
|
126
|
+
}), W.size !== 0 && ut(zt);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function kr(e) {
|
|
129
129
|
let t;
|
|
130
|
-
return W.size === 0 &&
|
|
131
|
-
promise: new Promise((
|
|
132
|
-
W.add(t = { c: e, f:
|
|
130
|
+
return W.size === 0 && ut(zt), {
|
|
131
|
+
promise: new Promise((r) => {
|
|
132
|
+
W.add(t = { c: e, f: r });
|
|
133
133
|
}),
|
|
134
134
|
abort() {
|
|
135
135
|
W.delete(t);
|
|
@@ -139,14 +139,14 @@ function Gn(e) {
|
|
|
139
139
|
function A(e, t) {
|
|
140
140
|
e.appendChild(t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const
|
|
144
|
-
if (!
|
|
145
|
-
const i =
|
|
146
|
-
i.id = t, i.textContent =
|
|
142
|
+
function Vr(e, t, r) {
|
|
143
|
+
const n = lt(e);
|
|
144
|
+
if (!n.getElementById(t)) {
|
|
145
|
+
const i = C("style");
|
|
146
|
+
i.id = t, i.textContent = r, Zt(n, i);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function lt(e) {
|
|
150
150
|
if (!e)
|
|
151
151
|
return document;
|
|
152
152
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -156,232 +156,232 @@ function it(e) {
|
|
|
156
156
|
t
|
|
157
157
|
) : e.ownerDocument;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
const t =
|
|
161
|
-
return t.textContent = "/* empty */",
|
|
159
|
+
function Xr(e) {
|
|
160
|
+
const t = C("style");
|
|
161
|
+
return t.textContent = "/* empty */", Zt(lt(e), t), t.sheet;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Zt(e, t) {
|
|
164
164
|
return A(
|
|
165
165
|
/** @type {Document} */
|
|
166
166
|
e.head || e,
|
|
167
167
|
t
|
|
168
168
|
), t.sheet;
|
|
169
169
|
}
|
|
170
|
-
function le(e, t,
|
|
171
|
-
e.insertBefore(t,
|
|
170
|
+
function le(e, t, r) {
|
|
171
|
+
e.insertBefore(t, r || null);
|
|
172
172
|
}
|
|
173
173
|
function F(e) {
|
|
174
174
|
e.parentNode && e.parentNode.removeChild(e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
for (let
|
|
178
|
-
e[
|
|
176
|
+
function Ro(e, t) {
|
|
177
|
+
for (let r = 0; r < e.length; r += 1)
|
|
178
|
+
e[r] && e[r].d(t);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function C(e) {
|
|
181
181
|
return document.createElement(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function te(e) {
|
|
184
184
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function he(e) {
|
|
187
187
|
return document.createTextNode(e);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
189
|
+
function Wr() {
|
|
190
|
+
return he(" ");
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function Uo() {
|
|
193
|
+
return he("");
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return e.addEventListener(t,
|
|
195
|
+
function qt(e, t, r, n) {
|
|
196
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Do(e) {
|
|
199
199
|
return function(t) {
|
|
200
200
|
return t.preventDefault(), e.call(this, t);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function B(e, t,
|
|
204
|
-
|
|
203
|
+
function B(e, t, r) {
|
|
204
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const
|
|
208
|
-
|
|
206
|
+
function Go(e, t, r) {
|
|
207
|
+
const n = t.toLowerCase();
|
|
208
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Fo(e) {
|
|
211
211
|
let t;
|
|
212
212
|
return {
|
|
213
213
|
/* push */
|
|
214
|
-
p(...
|
|
215
|
-
t =
|
|
214
|
+
p(...r) {
|
|
215
|
+
t = r, t.forEach((n) => e.push(n));
|
|
216
216
|
},
|
|
217
217
|
/* remove */
|
|
218
218
|
r() {
|
|
219
|
-
t.forEach((
|
|
219
|
+
t.forEach((r) => e.splice(e.indexOf(r), 1));
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function jo(e) {
|
|
224
224
|
return e === "" ? null : +e;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function zr(e) {
|
|
227
227
|
return Array.from(e.childNodes);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Qt(e, t) {
|
|
230
230
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
231
231
|
t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function ko(e, t) {
|
|
234
234
|
e.value = t == null ? "" : t;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
236
|
+
function Zr(e, t, r, n) {
|
|
237
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
for (let
|
|
241
|
-
const i = e.options[
|
|
239
|
+
function Vo(e, t, r) {
|
|
240
|
+
for (let n = 0; n < e.options.length; n += 1) {
|
|
241
|
+
const i = e.options[n];
|
|
242
242
|
if (i.__value === t) {
|
|
243
243
|
i.selected = !0;
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
(!
|
|
247
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Xo(e) {
|
|
250
250
|
const t = e.querySelector(":checked");
|
|
251
251
|
return t && t.__value;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
e.classList.toggle(t, !!
|
|
253
|
+
function Wo(e, t, r) {
|
|
254
|
+
e.classList.toggle(t, !!r);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
256
|
+
function qr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
257
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Qr(e) {
|
|
260
260
|
const t = {};
|
|
261
261
|
return e.childNodes.forEach(
|
|
262
262
|
/** @param {Element} node */
|
|
263
|
-
(
|
|
264
|
-
t[
|
|
263
|
+
(r) => {
|
|
264
|
+
t[r.slot || "default"] = !0;
|
|
265
265
|
}
|
|
266
266
|
), t;
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const xe = /* @__PURE__ */ new Map();
|
|
269
269
|
let Se = 0;
|
|
270
|
-
function
|
|
271
|
-
let t = 5381,
|
|
272
|
-
for (;
|
|
273
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
270
|
+
function Jr(e) {
|
|
271
|
+
let t = 5381, r = e.length;
|
|
272
|
+
for (; r--; )
|
|
273
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
274
274
|
return t >>> 0;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
const
|
|
278
|
-
return
|
|
276
|
+
function Yr(e, t) {
|
|
277
|
+
const r = { stylesheet: Xr(t), rules: {} };
|
|
278
|
+
return xe.set(e, r), r;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
const u = 16.666 /
|
|
282
|
-
let
|
|
280
|
+
function gt(e, t, r, n, i, o, s, a = 0) {
|
|
281
|
+
const u = 16.666 / n;
|
|
282
|
+
let l = `{
|
|
283
283
|
`;
|
|
284
|
-
for (let
|
|
285
|
-
const
|
|
286
|
-
|
|
284
|
+
for (let _ = 0; _ <= 1; _ += u) {
|
|
285
|
+
const w = t + (r - t) * o(_);
|
|
286
|
+
l += _ * 100 + `%{${s(w, 1 - w)}}
|
|
287
287
|
`;
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
}`,
|
|
291
|
-
|
|
289
|
+
const h = l + `100% {${s(r, 1 - r)}}
|
|
290
|
+
}`, f = `__svelte_${Jr(h)}_${a}`, c = lt(e), { stylesheet: d, rules: p } = xe.get(c) || Yr(c, e);
|
|
291
|
+
p[f] || (p[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
|
|
292
292
|
const m = e.style.animation || "";
|
|
293
|
-
return e.style.animation = `${m ? `${m}, ` : ""}${
|
|
293
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Se += 1, f;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
const
|
|
295
|
+
function Kr(e, t) {
|
|
296
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
297
297
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
298
298
|
// remove all Svelte animations
|
|
299
|
-
), i =
|
|
300
|
-
i && (e.style.animation =
|
|
299
|
+
), i = r.length - n.length;
|
|
300
|
+
i && (e.style.animation = n.join(", "), Se -= i, Se || en());
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
304
|
-
Se || (
|
|
302
|
+
function en() {
|
|
303
|
+
ut(() => {
|
|
304
|
+
Se || (xe.forEach((e) => {
|
|
305
305
|
const { ownerNode: t } = e.stylesheet;
|
|
306
306
|
t && F(t);
|
|
307
|
-
}),
|
|
307
|
+
}), xe.clear());
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
let
|
|
311
|
-
function
|
|
312
|
-
|
|
310
|
+
let oe;
|
|
311
|
+
function ie(e) {
|
|
312
|
+
oe = e;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
if (!
|
|
314
|
+
function tn() {
|
|
315
|
+
if (!oe)
|
|
316
316
|
throw new Error("Function called outside component initialization");
|
|
317
|
-
return
|
|
317
|
+
return oe;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
319
|
+
function rn(e) {
|
|
320
|
+
tn().$$.on_mount.push(e);
|
|
321
321
|
}
|
|
322
|
-
const X = [],
|
|
322
|
+
const X = [], Xe = [];
|
|
323
323
|
let z = [];
|
|
324
|
-
const
|
|
325
|
-
let
|
|
326
|
-
function
|
|
327
|
-
|
|
324
|
+
const yt = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
325
|
+
let We = !1;
|
|
326
|
+
function Yt() {
|
|
327
|
+
We || (We = !0, Jt.then(L));
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
329
|
+
function zo() {
|
|
330
|
+
return Yt(), Jt;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function we(e) {
|
|
333
333
|
z.push(e);
|
|
334
334
|
}
|
|
335
|
-
const
|
|
335
|
+
const $e = /* @__PURE__ */ new Set();
|
|
336
336
|
let k = 0;
|
|
337
337
|
function L() {
|
|
338
338
|
if (k !== 0)
|
|
339
339
|
return;
|
|
340
|
-
const e =
|
|
340
|
+
const e = oe;
|
|
341
341
|
do {
|
|
342
342
|
try {
|
|
343
343
|
for (; k < X.length; ) {
|
|
344
344
|
const t = X[k];
|
|
345
|
-
k++,
|
|
345
|
+
k++, ie(t), nn(t.$$);
|
|
346
346
|
}
|
|
347
347
|
} catch (t) {
|
|
348
348
|
throw X.length = 0, k = 0, t;
|
|
349
349
|
}
|
|
350
|
-
for (
|
|
351
|
-
|
|
350
|
+
for (ie(null), X.length = 0, k = 0; Xe.length; )
|
|
351
|
+
Xe.pop()();
|
|
352
352
|
for (let t = 0; t < z.length; t += 1) {
|
|
353
|
-
const
|
|
354
|
-
|
|
353
|
+
const r = z[t];
|
|
354
|
+
$e.has(r) || ($e.add(r), r());
|
|
355
355
|
}
|
|
356
356
|
z.length = 0;
|
|
357
357
|
} while (X.length);
|
|
358
|
-
for (;
|
|
359
|
-
|
|
360
|
-
|
|
358
|
+
for (; yt.length; )
|
|
359
|
+
yt.pop()();
|
|
360
|
+
We = !1, $e.clear(), ie(e);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function nn(e) {
|
|
363
363
|
if (e.fragment !== null) {
|
|
364
364
|
e.update(), G(e.before_update);
|
|
365
365
|
const t = e.dirty;
|
|
366
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
366
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
const t = [],
|
|
371
|
-
z.forEach((
|
|
369
|
+
function on(e) {
|
|
370
|
+
const t = [], r = [];
|
|
371
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
372
372
|
}
|
|
373
373
|
let re;
|
|
374
|
-
function
|
|
374
|
+
function sn() {
|
|
375
375
|
return re || (re = Promise.resolve(), re.then(() => {
|
|
376
376
|
re = null;
|
|
377
377
|
})), re;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
e.dispatchEvent(
|
|
379
|
+
function Re(e, t, r) {
|
|
380
|
+
e.dispatchEvent(qr(`${t ? "intro" : "outro"}${r}`));
|
|
381
381
|
}
|
|
382
382
|
const ge = /* @__PURE__ */ new Set();
|
|
383
383
|
let M;
|
|
384
|
-
function
|
|
384
|
+
function Zo() {
|
|
385
385
|
M = {
|
|
386
386
|
r: 0,
|
|
387
387
|
c: [],
|
|
@@ -389,114 +389,114 @@ function Vo() {
|
|
|
389
389
|
// parent group
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function qo() {
|
|
393
393
|
M.r || G(M.c), M = M.p;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function an(e, t) {
|
|
396
396
|
e && e.i && (ge.delete(e), e.i(t));
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Qo(e, t, r, n) {
|
|
399
399
|
if (e && e.o) {
|
|
400
400
|
if (ge.has(e))
|
|
401
401
|
return;
|
|
402
402
|
ge.add(e), M.c.push(() => {
|
|
403
|
-
ge.delete(e),
|
|
403
|
+
ge.delete(e), n && (r && e.d(1), n());
|
|
404
404
|
}), e.o(t);
|
|
405
405
|
} else
|
|
406
|
-
|
|
406
|
+
n && n();
|
|
407
407
|
}
|
|
408
|
-
const
|
|
409
|
-
function
|
|
410
|
-
let o = t(e,
|
|
411
|
-
function
|
|
412
|
-
|
|
408
|
+
const un = { duration: 0 };
|
|
409
|
+
function Jo(e, t, r, n) {
|
|
410
|
+
let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, u = null, l = null, h;
|
|
411
|
+
function f() {
|
|
412
|
+
l && Kr(e, l);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
const
|
|
414
|
+
function c(p, m) {
|
|
415
|
+
const _ = (
|
|
416
416
|
/** @type {Program['d']} */
|
|
417
|
-
|
|
417
|
+
p.b - s
|
|
418
418
|
);
|
|
419
|
-
return m *= Math.abs(
|
|
419
|
+
return m *= Math.abs(_), {
|
|
420
420
|
a: s,
|
|
421
|
-
b:
|
|
422
|
-
d:
|
|
421
|
+
b: p.b,
|
|
422
|
+
d: _,
|
|
423
423
|
duration: m,
|
|
424
|
-
start:
|
|
425
|
-
end:
|
|
426
|
-
group:
|
|
424
|
+
start: p.start,
|
|
425
|
+
end: p.start + m,
|
|
426
|
+
group: p.group
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
function p
|
|
429
|
+
function d(p) {
|
|
430
430
|
const {
|
|
431
431
|
delay: m = 0,
|
|
432
|
-
duration:
|
|
433
|
-
easing:
|
|
432
|
+
duration: _ = 300,
|
|
433
|
+
easing: w = Ur,
|
|
434
434
|
tick: P = H,
|
|
435
|
-
css:
|
|
436
|
-
} = o ||
|
|
437
|
-
start:
|
|
438
|
-
b:
|
|
435
|
+
css: x
|
|
436
|
+
} = o || un, I = {
|
|
437
|
+
start: jr() + m,
|
|
438
|
+
b: p
|
|
439
439
|
};
|
|
440
|
-
|
|
441
|
-
e.inert, e.inert = !0)), a || u ? u = I : (
|
|
442
|
-
if (u &&
|
|
440
|
+
p || (I.group = M, M.r += 1), "inert" in e && (p ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
441
|
+
e.inert, e.inert = !0)), a || u ? u = I : (x && (f(), l = gt(e, s, p, _, m, w, x)), p && P(0, 1), a = c(I, _), we(() => Re(e, p, "start")), kr((T) => {
|
|
442
|
+
if (u && T > u.start && (a = c(u, _), u = null, Re(e, a.b, "start"), x && (f(), l = gt(
|
|
443
443
|
e,
|
|
444
444
|
s,
|
|
445
445
|
a.b,
|
|
446
446
|
a.duration,
|
|
447
447
|
0,
|
|
448
|
-
|
|
448
|
+
w,
|
|
449
449
|
o.css
|
|
450
450
|
))), a) {
|
|
451
|
-
if (
|
|
452
|
-
P(s = a.b, 1 - s),
|
|
453
|
-
else if (
|
|
454
|
-
const R =
|
|
455
|
-
s = a.a + a.d *
|
|
451
|
+
if (T >= a.end)
|
|
452
|
+
P(s = a.b, 1 - s), Re(e, a.b, "end"), u || (a.b ? f() : --a.group.r || G(a.group.c)), a = null;
|
|
453
|
+
else if (T >= a.start) {
|
|
454
|
+
const R = T - a.start;
|
|
455
|
+
s = a.a + a.d * w(R / a.duration), P(s, 1 - s);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
return !!(a || u);
|
|
459
459
|
}));
|
|
460
460
|
}
|
|
461
461
|
return {
|
|
462
|
-
run(
|
|
463
|
-
|
|
464
|
-
o = o({ direction:
|
|
465
|
-
}) : p
|
|
462
|
+
run(p) {
|
|
463
|
+
ue(o) ? sn().then(() => {
|
|
464
|
+
o = o({ direction: p ? "in" : "out" }), d(p);
|
|
465
|
+
}) : d(p);
|
|
466
466
|
},
|
|
467
467
|
end() {
|
|
468
|
-
|
|
468
|
+
f(), a = u = null;
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function Yo(e) {
|
|
473
473
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
const { fragment:
|
|
477
|
-
|
|
478
|
-
const o = e.$$.on_mount.map(
|
|
475
|
+
function ln(e, t, r) {
|
|
476
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
477
|
+
n && n.m(t, r), we(() => {
|
|
478
|
+
const o = e.$$.on_mount.map(jt).filter(ue);
|
|
479
479
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : G(o), e.$$.on_mount = [];
|
|
480
|
-
}), i.forEach(
|
|
480
|
+
}), i.forEach(we);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
const
|
|
484
|
-
|
|
482
|
+
function hn(e, t) {
|
|
483
|
+
const r = e.$$;
|
|
484
|
+
r.fragment !== null && (on(r.after_update), G(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
486
|
+
function cn(e, t) {
|
|
487
|
+
e.$$.dirty[0] === -1 && (X.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
const u =
|
|
491
|
-
|
|
492
|
-
const
|
|
489
|
+
function fn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
490
|
+
const u = oe;
|
|
491
|
+
ie(e);
|
|
492
|
+
const l = e.$$ = {
|
|
493
493
|
fragment: null,
|
|
494
494
|
ctx: [],
|
|
495
495
|
// state
|
|
496
496
|
props: o,
|
|
497
497
|
update: H,
|
|
498
498
|
not_equal: i,
|
|
499
|
-
bound:
|
|
499
|
+
bound: bt(),
|
|
500
500
|
// lifecycle
|
|
501
501
|
on_mount: [],
|
|
502
502
|
on_destroy: [],
|
|
@@ -505,29 +505,29 @@ function ur(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
|
505
505
|
after_update: [],
|
|
506
506
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
507
507
|
// everything else
|
|
508
|
-
callbacks:
|
|
508
|
+
callbacks: bt(),
|
|
509
509
|
dirty: a,
|
|
510
510
|
skip_bound: !1,
|
|
511
511
|
root: t.target || u.$$.root
|
|
512
512
|
};
|
|
513
|
-
s && s(
|
|
514
|
-
let
|
|
515
|
-
if (
|
|
516
|
-
const
|
|
517
|
-
return
|
|
518
|
-
}) : [],
|
|
513
|
+
s && s(l.root);
|
|
514
|
+
let h = !1;
|
|
515
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
516
|
+
const p = d.length ? d[0] : c;
|
|
517
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), h && cn(e, f)), c;
|
|
518
|
+
}) : [], l.update(), h = !0, G(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
519
519
|
if (t.hydrate) {
|
|
520
|
-
const
|
|
521
|
-
|
|
520
|
+
const f = zr(t.target);
|
|
521
|
+
l.fragment && l.fragment.l(f), f.forEach(F);
|
|
522
522
|
} else
|
|
523
|
-
|
|
524
|
-
t.intro &&
|
|
523
|
+
l.fragment && l.fragment.c();
|
|
524
|
+
t.intro && an(e.$$.fragment), ln(e, t.target, t.anchor), L();
|
|
525
525
|
}
|
|
526
|
-
|
|
526
|
+
ie(u);
|
|
527
527
|
}
|
|
528
|
-
let
|
|
529
|
-
typeof HTMLElement == "function" && (
|
|
530
|
-
constructor(t,
|
|
528
|
+
let Kt;
|
|
529
|
+
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
530
|
+
constructor(t, r, n) {
|
|
531
531
|
super();
|
|
532
532
|
/** The Svelte component constructor */
|
|
533
533
|
O(this, "$$ctor");
|
|
@@ -547,49 +547,49 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
547
547
|
O(this, "$$l", {});
|
|
548
548
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
549
549
|
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
550
|
-
this.$$ctor = t, this.$$s =
|
|
550
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
551
551
|
}
|
|
552
|
-
addEventListener(t,
|
|
553
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
554
|
-
const i = this.$$c.$on(t,
|
|
555
|
-
this.$$l_u.set(
|
|
552
|
+
addEventListener(t, r, n) {
|
|
553
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
554
|
+
const i = this.$$c.$on(t, r);
|
|
555
|
+
this.$$l_u.set(r, i);
|
|
556
556
|
}
|
|
557
|
-
super.addEventListener(t,
|
|
557
|
+
super.addEventListener(t, r, n);
|
|
558
558
|
}
|
|
559
|
-
removeEventListener(t,
|
|
560
|
-
if (super.removeEventListener(t,
|
|
561
|
-
const i = this.$$l_u.get(
|
|
562
|
-
i && (i(), this.$$l_u.delete(
|
|
559
|
+
removeEventListener(t, r, n) {
|
|
560
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
561
|
+
const i = this.$$l_u.get(r);
|
|
562
|
+
i && (i(), this.$$l_u.delete(r));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
connectedCallback() {
|
|
566
|
-
return
|
|
566
|
+
return mt(this, null, function* () {
|
|
567
567
|
if (this.$$cn = !0, !this.$$c) {
|
|
568
568
|
let t = function(o) {
|
|
569
569
|
return () => {
|
|
570
570
|
let s;
|
|
571
571
|
return {
|
|
572
572
|
c: function() {
|
|
573
|
-
s =
|
|
573
|
+
s = C("slot"), o !== "default" && B(s, "name", o);
|
|
574
574
|
},
|
|
575
575
|
/**
|
|
576
576
|
* @param {HTMLElement} target
|
|
577
577
|
* @param {HTMLElement} [anchor]
|
|
578
578
|
*/
|
|
579
|
-
m: function(
|
|
580
|
-
le(
|
|
579
|
+
m: function(l, h) {
|
|
580
|
+
le(l, s, h);
|
|
581
581
|
},
|
|
582
|
-
d: function(
|
|
583
|
-
|
|
582
|
+
d: function(l) {
|
|
583
|
+
l && F(s);
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
588
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
589
589
|
return;
|
|
590
|
-
const
|
|
590
|
+
const r = {}, n = Qr(this);
|
|
591
591
|
for (const o of this.$$s)
|
|
592
|
-
o in
|
|
592
|
+
o in n && (r[o] = [t(o)]);
|
|
593
593
|
for (const o of this.attributes) {
|
|
594
594
|
const s = this.$$g_p(o.name);
|
|
595
595
|
s in this.$$d || (this.$$d[s] = ye(s, o.value, this.$$p_d, "toProp"));
|
|
@@ -598,8 +598,8 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
598
598
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
599
599
|
this.$$c = new this.$$ctor({
|
|
600
600
|
target: this.shadowRoot || this,
|
|
601
|
-
props:
|
|
602
|
-
$$slots:
|
|
601
|
+
props: dt(pt({}, this.$$d), {
|
|
602
|
+
$$slots: r,
|
|
603
603
|
$$scope: {
|
|
604
604
|
ctx: []
|
|
605
605
|
}
|
|
@@ -631,9 +631,9 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
631
631
|
}
|
|
632
632
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
633
633
|
// and setting attributes through setAttribute etc, this is helpful
|
|
634
|
-
attributeChangedCallback(t,
|
|
634
|
+
attributeChangedCallback(t, r, n) {
|
|
635
635
|
var i;
|
|
636
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t,
|
|
636
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
637
637
|
}
|
|
638
638
|
disconnectedCallback() {
|
|
639
639
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -642,16 +642,16 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
642
642
|
}
|
|
643
643
|
$$g_p(t) {
|
|
644
644
|
return Object.keys(this.$$p_d).find(
|
|
645
|
-
(
|
|
645
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
646
646
|
) || t;
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
|
-
function ye(e, t,
|
|
649
|
+
function ye(e, t, r, n) {
|
|
650
650
|
var o;
|
|
651
|
-
const i = (o =
|
|
652
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
651
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
652
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
653
653
|
return t;
|
|
654
|
-
if (
|
|
654
|
+
if (n === "toAttribute")
|
|
655
655
|
switch (i) {
|
|
656
656
|
case "Object":
|
|
657
657
|
case "Array":
|
|
@@ -676,10 +676,10 @@ function ye(e, t, n, r) {
|
|
|
676
676
|
return t;
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
let s = class extends
|
|
679
|
+
function pn(e, t, r, n, i, o) {
|
|
680
|
+
let s = class extends Kt {
|
|
681
681
|
constructor() {
|
|
682
|
-
super(e,
|
|
682
|
+
super(e, r, i), this.$$p_d = t;
|
|
683
683
|
}
|
|
684
684
|
static get observedAttributes() {
|
|
685
685
|
return Object.keys(t).map(
|
|
@@ -693,11 +693,11 @@ function hr(e, t, n, r, i, o) {
|
|
|
693
693
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
694
694
|
},
|
|
695
695
|
set(u) {
|
|
696
|
-
var
|
|
697
|
-
u = ye(a, u, t), this.$$d[a] = u, (
|
|
696
|
+
var l;
|
|
697
|
+
u = ye(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
}),
|
|
700
|
+
}), n.forEach((a) => {
|
|
701
701
|
Object.defineProperty(s.prototype, a, {
|
|
702
702
|
get() {
|
|
703
703
|
var u;
|
|
@@ -707,7 +707,7 @@ function hr(e, t, n, r, i, o) {
|
|
|
707
707
|
}), e.element = /** @type {any} */
|
|
708
708
|
s, s;
|
|
709
709
|
}
|
|
710
|
-
class
|
|
710
|
+
class dn {
|
|
711
711
|
constructor() {
|
|
712
712
|
/**
|
|
713
713
|
* ### PRIVATE API
|
|
@@ -728,7 +728,7 @@ class lr {
|
|
|
728
728
|
}
|
|
729
729
|
/** @returns {void} */
|
|
730
730
|
$destroy() {
|
|
731
|
-
|
|
731
|
+
hn(this, 1), this.$destroy = H;
|
|
732
732
|
}
|
|
733
733
|
/**
|
|
734
734
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -736,13 +736,13 @@ class lr {
|
|
|
736
736
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
737
737
|
* @returns {() => void}
|
|
738
738
|
*/
|
|
739
|
-
$on(t,
|
|
740
|
-
if (!
|
|
739
|
+
$on(t, r) {
|
|
740
|
+
if (!ue(r))
|
|
741
741
|
return H;
|
|
742
|
-
const
|
|
743
|
-
return
|
|
744
|
-
const i =
|
|
745
|
-
i !== -1 &&
|
|
742
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
743
|
+
return n.push(r), () => {
|
|
744
|
+
const i = n.indexOf(r);
|
|
745
|
+
i !== -1 && n.splice(i, 1);
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
/**
|
|
@@ -750,11 +750,11 @@ class lr {
|
|
|
750
750
|
* @returns {void}
|
|
751
751
|
*/
|
|
752
752
|
$set(t) {
|
|
753
|
-
this.$$set && !
|
|
753
|
+
this.$$set && !Gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
const
|
|
757
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
756
|
+
const mn = "4";
|
|
757
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mn);
|
|
758
758
|
/*! *****************************************************************************
|
|
759
759
|
Copyright (c) Microsoft Corporation.
|
|
760
760
|
|
|
@@ -769,67 +769,48 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
769
769
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
770
770
|
PERFORMANCE OF THIS SOFTWARE.
|
|
771
771
|
***************************************************************************** */
|
|
772
|
-
var
|
|
773
|
-
return
|
|
774
|
-
|
|
775
|
-
} || function(
|
|
776
|
-
for (var i in
|
|
777
|
-
Object.prototype.hasOwnProperty.call(
|
|
778
|
-
},
|
|
772
|
+
var ze = function(e, t) {
|
|
773
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
774
|
+
r.__proto__ = n;
|
|
775
|
+
} || function(r, n) {
|
|
776
|
+
for (var i in n)
|
|
777
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
778
|
+
}, ze(e, t);
|
|
779
779
|
};
|
|
780
|
-
function
|
|
780
|
+
function ce(e, t) {
|
|
781
781
|
if (typeof t != "function" && t !== null)
|
|
782
782
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
783
|
-
|
|
784
|
-
function
|
|
783
|
+
ze(e, t);
|
|
784
|
+
function r() {
|
|
785
785
|
this.constructor = e;
|
|
786
786
|
}
|
|
787
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
788
|
-
}
|
|
789
|
-
var y = function() {
|
|
790
|
-
return y = Object.assign || function(t) {
|
|
791
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
792
|
-
n = arguments[r];
|
|
793
|
-
for (var o in n)
|
|
794
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
795
|
-
}
|
|
796
|
-
return t;
|
|
797
|
-
}, y.apply(this, arguments);
|
|
798
|
-
};
|
|
799
|
-
function cr(e, t) {
|
|
800
|
-
var n = {};
|
|
801
|
-
for (var r in e)
|
|
802
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
803
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
804
|
-
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
805
|
-
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
806
|
-
return n;
|
|
787
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
807
788
|
}
|
|
808
|
-
function
|
|
809
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
810
|
-
if (
|
|
811
|
-
return
|
|
789
|
+
function Ze(e) {
|
|
790
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
791
|
+
if (r)
|
|
792
|
+
return r.call(e);
|
|
812
793
|
if (e && typeof e.length == "number")
|
|
813
794
|
return {
|
|
814
795
|
next: function() {
|
|
815
|
-
return e &&
|
|
796
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
816
797
|
}
|
|
817
798
|
};
|
|
818
799
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
819
800
|
}
|
|
820
|
-
function
|
|
821
|
-
var
|
|
822
|
-
if (!
|
|
801
|
+
function qe(e, t) {
|
|
802
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
803
|
+
if (!r)
|
|
823
804
|
return e;
|
|
824
|
-
var
|
|
805
|
+
var n = r.call(e), i, o = [], s;
|
|
825
806
|
try {
|
|
826
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
807
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
827
808
|
o.push(i.value);
|
|
828
809
|
} catch (a) {
|
|
829
810
|
s = { error: a };
|
|
830
811
|
} finally {
|
|
831
812
|
try {
|
|
832
|
-
i && !i.done && (
|
|
813
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
833
814
|
} finally {
|
|
834
815
|
if (s)
|
|
835
816
|
throw s.error;
|
|
@@ -837,57 +818,57 @@ function We(e, t) {
|
|
|
837
818
|
}
|
|
838
819
|
return o;
|
|
839
820
|
}
|
|
840
|
-
function
|
|
841
|
-
if (
|
|
842
|
-
for (var
|
|
843
|
-
(o || !(
|
|
821
|
+
function Qe(e, t, r) {
|
|
822
|
+
if (arguments.length === 2)
|
|
823
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
824
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
844
825
|
return e.concat(o || t);
|
|
845
826
|
}
|
|
846
|
-
function
|
|
827
|
+
function $(e) {
|
|
847
828
|
return typeof e == "function";
|
|
848
829
|
}
|
|
849
|
-
function
|
|
850
|
-
var t = function(
|
|
851
|
-
Error.call(
|
|
852
|
-
},
|
|
853
|
-
return
|
|
854
|
-
}
|
|
855
|
-
var
|
|
856
|
-
return function(
|
|
857
|
-
e(this), this.message =
|
|
858
|
-
` +
|
|
859
|
-
return i + 1 + ") " +
|
|
830
|
+
function er(e) {
|
|
831
|
+
var t = function(n) {
|
|
832
|
+
Error.call(n), n.stack = new Error().stack;
|
|
833
|
+
}, r = e(t);
|
|
834
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
835
|
+
}
|
|
836
|
+
var Ue = er(function(e) {
|
|
837
|
+
return function(r) {
|
|
838
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
839
|
+
` + r.map(function(n, i) {
|
|
840
|
+
return i + 1 + ") " + n.toString();
|
|
860
841
|
}).join(`
|
|
861
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
842
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
862
843
|
};
|
|
863
844
|
});
|
|
864
|
-
function
|
|
845
|
+
function Je(e, t) {
|
|
865
846
|
if (e) {
|
|
866
|
-
var
|
|
867
|
-
0 <=
|
|
847
|
+
var r = e.indexOf(t);
|
|
848
|
+
0 <= r && e.splice(r, 1);
|
|
868
849
|
}
|
|
869
850
|
}
|
|
870
|
-
var
|
|
851
|
+
var Ae = function() {
|
|
871
852
|
function e(t) {
|
|
872
853
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
873
854
|
}
|
|
874
855
|
return e.prototype.unsubscribe = function() {
|
|
875
|
-
var t,
|
|
856
|
+
var t, r, n, i, o;
|
|
876
857
|
if (!this.closed) {
|
|
877
858
|
this.closed = !0;
|
|
878
859
|
var s = this._parentage;
|
|
879
860
|
if (s)
|
|
880
861
|
if (this._parentage = null, Array.isArray(s))
|
|
881
862
|
try {
|
|
882
|
-
for (var a =
|
|
883
|
-
var
|
|
884
|
-
|
|
863
|
+
for (var a = Ze(s), u = a.next(); !u.done; u = a.next()) {
|
|
864
|
+
var l = u.value;
|
|
865
|
+
l.remove(this);
|
|
885
866
|
}
|
|
886
867
|
} catch (m) {
|
|
887
868
|
t = { error: m };
|
|
888
869
|
} finally {
|
|
889
870
|
try {
|
|
890
|
-
u && !u.done && (
|
|
871
|
+
u && !u.done && (r = a.return) && r.call(a);
|
|
891
872
|
} finally {
|
|
892
873
|
if (t)
|
|
893
874
|
throw t.error;
|
|
@@ -895,123 +876,119 @@ var Be = function() {
|
|
|
895
876
|
}
|
|
896
877
|
else
|
|
897
878
|
s.remove(this);
|
|
898
|
-
var
|
|
899
|
-
if (
|
|
879
|
+
var h = this.initialTeardown;
|
|
880
|
+
if ($(h))
|
|
900
881
|
try {
|
|
901
|
-
|
|
882
|
+
h();
|
|
902
883
|
} catch (m) {
|
|
903
|
-
o = m instanceof
|
|
884
|
+
o = m instanceof Ue ? m.errors : [m];
|
|
904
885
|
}
|
|
905
|
-
var
|
|
906
|
-
if (
|
|
886
|
+
var f = this._finalizers;
|
|
887
|
+
if (f) {
|
|
907
888
|
this._finalizers = null;
|
|
908
889
|
try {
|
|
909
|
-
for (var
|
|
910
|
-
var
|
|
890
|
+
for (var c = Ze(f), d = c.next(); !d.done; d = c.next()) {
|
|
891
|
+
var p = d.value;
|
|
911
892
|
try {
|
|
912
|
-
|
|
893
|
+
vt(p);
|
|
913
894
|
} catch (m) {
|
|
914
|
-
o = o != null ? o : [], m instanceof
|
|
895
|
+
o = o != null ? o : [], m instanceof Ue ? o = Qe(Qe([], qe(o)), qe(m.errors)) : o.push(m);
|
|
915
896
|
}
|
|
916
897
|
}
|
|
917
898
|
} catch (m) {
|
|
918
|
-
|
|
899
|
+
n = { error: m };
|
|
919
900
|
} finally {
|
|
920
901
|
try {
|
|
921
|
-
|
|
902
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
922
903
|
} finally {
|
|
923
|
-
if (
|
|
924
|
-
throw
|
|
904
|
+
if (n)
|
|
905
|
+
throw n.error;
|
|
925
906
|
}
|
|
926
907
|
}
|
|
927
908
|
}
|
|
928
909
|
if (o)
|
|
929
|
-
throw new
|
|
910
|
+
throw new Ue(o);
|
|
930
911
|
}
|
|
931
912
|
}, e.prototype.add = function(t) {
|
|
932
|
-
var
|
|
913
|
+
var r;
|
|
933
914
|
if (t && t !== this)
|
|
934
915
|
if (this.closed)
|
|
935
|
-
|
|
916
|
+
vt(t);
|
|
936
917
|
else {
|
|
937
918
|
if (t instanceof e) {
|
|
938
919
|
if (t.closed || t._hasParent(this))
|
|
939
920
|
return;
|
|
940
921
|
t._addParent(this);
|
|
941
922
|
}
|
|
942
|
-
(this._finalizers = (
|
|
923
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
943
924
|
}
|
|
944
925
|
}, e.prototype._hasParent = function(t) {
|
|
945
|
-
var
|
|
946
|
-
return
|
|
926
|
+
var r = this._parentage;
|
|
927
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
947
928
|
}, e.prototype._addParent = function(t) {
|
|
948
|
-
var
|
|
949
|
-
this._parentage = Array.isArray(
|
|
929
|
+
var r = this._parentage;
|
|
930
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
950
931
|
}, e.prototype._removeParent = function(t) {
|
|
951
|
-
var
|
|
952
|
-
|
|
932
|
+
var r = this._parentage;
|
|
933
|
+
r === t ? this._parentage = null : Array.isArray(r) && Je(r, t);
|
|
953
934
|
}, e.prototype.remove = function(t) {
|
|
954
|
-
var
|
|
955
|
-
|
|
935
|
+
var r = this._finalizers;
|
|
936
|
+
r && Je(r, t), t instanceof e && t._removeParent(this);
|
|
956
937
|
}, e.EMPTY = function() {
|
|
957
938
|
var t = new e();
|
|
958
939
|
return t.closed = !0, t;
|
|
959
940
|
}(), e;
|
|
960
|
-
}(),
|
|
961
|
-
function
|
|
962
|
-
return e instanceof
|
|
963
|
-
}
|
|
964
|
-
function
|
|
965
|
-
|
|
966
|
-
}
|
|
967
|
-
var
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
Promise: void 0,
|
|
971
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
972
|
-
useDeprecatedNextContext: !1
|
|
973
|
-
}, pr = {
|
|
941
|
+
}(), tr = Ae.EMPTY;
|
|
942
|
+
function rr(e) {
|
|
943
|
+
return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
944
|
+
}
|
|
945
|
+
function vt(e) {
|
|
946
|
+
$(e) ? e() : e.unsubscribe();
|
|
947
|
+
}
|
|
948
|
+
var bn = {
|
|
949
|
+
Promise: void 0
|
|
950
|
+
}, gn = {
|
|
974
951
|
setTimeout: function(e, t) {
|
|
975
|
-
for (var
|
|
976
|
-
n
|
|
977
|
-
return setTimeout.apply(void 0,
|
|
952
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
953
|
+
r[n - 2] = arguments[n];
|
|
954
|
+
return setTimeout.apply(void 0, Qe([e, t], qe(r)));
|
|
978
955
|
},
|
|
979
956
|
clearTimeout: function(e) {
|
|
980
957
|
return clearTimeout(e);
|
|
981
958
|
},
|
|
982
959
|
delegate: void 0
|
|
983
960
|
};
|
|
984
|
-
function
|
|
985
|
-
|
|
961
|
+
function yn(e) {
|
|
962
|
+
gn.setTimeout(function() {
|
|
986
963
|
throw e;
|
|
987
964
|
});
|
|
988
965
|
}
|
|
989
|
-
function
|
|
966
|
+
function _t() {
|
|
990
967
|
}
|
|
991
|
-
function
|
|
968
|
+
function ve(e) {
|
|
992
969
|
e();
|
|
993
970
|
}
|
|
994
|
-
var
|
|
995
|
-
|
|
996
|
-
function t(
|
|
997
|
-
var
|
|
998
|
-
return
|
|
971
|
+
var nr = function(e) {
|
|
972
|
+
ce(t, e);
|
|
973
|
+
function t(r) {
|
|
974
|
+
var n = e.call(this) || this;
|
|
975
|
+
return n.isStopped = !1, r ? (n.destination = r, rr(r) && r.add(n)) : n.destination = En, n;
|
|
999
976
|
}
|
|
1000
|
-
return t.create = function(
|
|
1001
|
-
return new
|
|
1002
|
-
}, t.prototype.next = function(
|
|
1003
|
-
this.isStopped || this._next(
|
|
1004
|
-
}, t.prototype.error = function(
|
|
1005
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
977
|
+
return t.create = function(r, n, i) {
|
|
978
|
+
return new Ye(r, n, i);
|
|
979
|
+
}, t.prototype.next = function(r) {
|
|
980
|
+
this.isStopped || this._next(r);
|
|
981
|
+
}, t.prototype.error = function(r) {
|
|
982
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
1006
983
|
}, t.prototype.complete = function() {
|
|
1007
984
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
1008
985
|
}, t.prototype.unsubscribe = function() {
|
|
1009
986
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
1010
|
-
}, t.prototype._next = function(
|
|
1011
|
-
this.destination.next(
|
|
1012
|
-
}, t.prototype._error = function(
|
|
987
|
+
}, t.prototype._next = function(r) {
|
|
988
|
+
this.destination.next(r);
|
|
989
|
+
}, t.prototype._error = function(r) {
|
|
1013
990
|
try {
|
|
1014
|
-
this.destination.error(
|
|
991
|
+
this.destination.error(r);
|
|
1015
992
|
} finally {
|
|
1016
993
|
this.unsubscribe();
|
|
1017
994
|
}
|
|
@@ -1022,25 +999,25 @@ var Kt = function(e) {
|
|
|
1022
999
|
this.unsubscribe();
|
|
1023
1000
|
}
|
|
1024
1001
|
}, t;
|
|
1025
|
-
}(
|
|
1002
|
+
}(Ae), vn = function() {
|
|
1026
1003
|
function e(t) {
|
|
1027
1004
|
this.partialObserver = t;
|
|
1028
1005
|
}
|
|
1029
1006
|
return e.prototype.next = function(t) {
|
|
1030
|
-
var
|
|
1031
|
-
if (
|
|
1007
|
+
var r = this.partialObserver;
|
|
1008
|
+
if (r.next)
|
|
1032
1009
|
try {
|
|
1033
|
-
|
|
1034
|
-
} catch (
|
|
1035
|
-
me(
|
|
1010
|
+
r.next(t);
|
|
1011
|
+
} catch (n) {
|
|
1012
|
+
me(n);
|
|
1036
1013
|
}
|
|
1037
1014
|
}, e.prototype.error = function(t) {
|
|
1038
|
-
var
|
|
1039
|
-
if (
|
|
1015
|
+
var r = this.partialObserver;
|
|
1016
|
+
if (r.error)
|
|
1040
1017
|
try {
|
|
1041
|
-
|
|
1042
|
-
} catch (
|
|
1043
|
-
me(
|
|
1018
|
+
r.error(t);
|
|
1019
|
+
} catch (n) {
|
|
1020
|
+
me(n);
|
|
1044
1021
|
}
|
|
1045
1022
|
else
|
|
1046
1023
|
me(t);
|
|
@@ -1049,69 +1026,69 @@ var Kt = function(e) {
|
|
|
1049
1026
|
if (t.complete)
|
|
1050
1027
|
try {
|
|
1051
1028
|
t.complete();
|
|
1052
|
-
} catch (
|
|
1053
|
-
me(
|
|
1029
|
+
} catch (r) {
|
|
1030
|
+
me(r);
|
|
1054
1031
|
}
|
|
1055
1032
|
}, e;
|
|
1056
|
-
}(),
|
|
1057
|
-
|
|
1058
|
-
function t(
|
|
1033
|
+
}(), Ye = function(e) {
|
|
1034
|
+
ce(t, e);
|
|
1035
|
+
function t(r, n, i) {
|
|
1059
1036
|
var o = e.call(this) || this, s;
|
|
1060
|
-
return
|
|
1061
|
-
next:
|
|
1062
|
-
error:
|
|
1037
|
+
return $(r) || !r ? s = {
|
|
1038
|
+
next: r != null ? r : void 0,
|
|
1039
|
+
error: n != null ? n : void 0,
|
|
1063
1040
|
complete: i != null ? i : void 0
|
|
1064
|
-
} : s =
|
|
1041
|
+
} : s = r, o.destination = new vn(s), o;
|
|
1065
1042
|
}
|
|
1066
1043
|
return t;
|
|
1067
|
-
}(
|
|
1044
|
+
}(nr);
|
|
1068
1045
|
function me(e) {
|
|
1069
|
-
|
|
1046
|
+
yn(e);
|
|
1070
1047
|
}
|
|
1071
|
-
function
|
|
1048
|
+
function _n(e) {
|
|
1072
1049
|
throw e;
|
|
1073
1050
|
}
|
|
1074
|
-
var
|
|
1051
|
+
var En = {
|
|
1075
1052
|
closed: !0,
|
|
1076
|
-
next:
|
|
1077
|
-
error:
|
|
1078
|
-
complete:
|
|
1079
|
-
},
|
|
1053
|
+
next: _t,
|
|
1054
|
+
error: _n,
|
|
1055
|
+
complete: _t
|
|
1056
|
+
}, xn = function() {
|
|
1080
1057
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1081
1058
|
}();
|
|
1082
|
-
function
|
|
1059
|
+
function Sn(e) {
|
|
1083
1060
|
return e;
|
|
1084
1061
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return e.length === 0 ?
|
|
1087
|
-
return e.reduce(function(
|
|
1088
|
-
return i(
|
|
1089
|
-
},
|
|
1062
|
+
function wn(e) {
|
|
1063
|
+
return e.length === 0 ? Sn : e.length === 1 ? e[0] : function(r) {
|
|
1064
|
+
return e.reduce(function(n, i) {
|
|
1065
|
+
return i(n);
|
|
1066
|
+
}, r);
|
|
1090
1067
|
};
|
|
1091
1068
|
}
|
|
1092
|
-
var
|
|
1069
|
+
var Et = function() {
|
|
1093
1070
|
function e(t) {
|
|
1094
1071
|
t && (this._subscribe = t);
|
|
1095
1072
|
}
|
|
1096
1073
|
return e.prototype.lift = function(t) {
|
|
1097
|
-
var
|
|
1098
|
-
return
|
|
1099
|
-
}, e.prototype.subscribe = function(t,
|
|
1100
|
-
var i = this, o =
|
|
1101
|
-
return
|
|
1074
|
+
var r = new e();
|
|
1075
|
+
return r.source = this, r.operator = t, r;
|
|
1076
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1077
|
+
var i = this, o = Hn(t) ? t : new Ye(t, r, n);
|
|
1078
|
+
return ve(function() {
|
|
1102
1079
|
var s = i, a = s.operator, u = s.source;
|
|
1103
1080
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
1104
1081
|
}), o;
|
|
1105
1082
|
}, e.prototype._trySubscribe = function(t) {
|
|
1106
1083
|
try {
|
|
1107
1084
|
return this._subscribe(t);
|
|
1108
|
-
} catch (
|
|
1109
|
-
t.error(
|
|
1085
|
+
} catch (r) {
|
|
1086
|
+
t.error(r);
|
|
1110
1087
|
}
|
|
1111
|
-
}, e.prototype.forEach = function(t,
|
|
1112
|
-
var
|
|
1113
|
-
return
|
|
1114
|
-
var s = new
|
|
1088
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1089
|
+
var n = this;
|
|
1090
|
+
return r = xt(r), new r(function(i, o) {
|
|
1091
|
+
var s = new Ye({
|
|
1115
1092
|
next: function(a) {
|
|
1116
1093
|
try {
|
|
1117
1094
|
t(a);
|
|
@@ -1122,72 +1099,72 @@ var gt = function() {
|
|
|
1122
1099
|
error: o,
|
|
1123
1100
|
complete: i
|
|
1124
1101
|
});
|
|
1125
|
-
|
|
1102
|
+
n.subscribe(s);
|
|
1126
1103
|
});
|
|
1127
1104
|
}, e.prototype._subscribe = function(t) {
|
|
1128
|
-
var
|
|
1129
|
-
return (
|
|
1130
|
-
}, e.prototype[
|
|
1105
|
+
var r;
|
|
1106
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1107
|
+
}, e.prototype[xn] = function() {
|
|
1131
1108
|
return this;
|
|
1132
1109
|
}, e.prototype.pipe = function() {
|
|
1133
|
-
for (var t = [],
|
|
1134
|
-
t[
|
|
1135
|
-
return
|
|
1110
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1111
|
+
t[r] = arguments[r];
|
|
1112
|
+
return wn(t)(this);
|
|
1136
1113
|
}, e.prototype.toPromise = function(t) {
|
|
1137
|
-
var
|
|
1138
|
-
return t =
|
|
1114
|
+
var r = this;
|
|
1115
|
+
return t = xt(t), new t(function(n, i) {
|
|
1139
1116
|
var o;
|
|
1140
|
-
|
|
1117
|
+
r.subscribe(function(s) {
|
|
1141
1118
|
return o = s;
|
|
1142
1119
|
}, function(s) {
|
|
1143
1120
|
return i(s);
|
|
1144
1121
|
}, function() {
|
|
1145
|
-
return
|
|
1122
|
+
return n(o);
|
|
1146
1123
|
});
|
|
1147
1124
|
});
|
|
1148
1125
|
}, e.create = function(t) {
|
|
1149
1126
|
return new e(t);
|
|
1150
1127
|
}, e;
|
|
1151
1128
|
}();
|
|
1152
|
-
function
|
|
1129
|
+
function xt(e) {
|
|
1153
1130
|
var t;
|
|
1154
|
-
return (t = e != null ? e :
|
|
1131
|
+
return (t = e != null ? e : bn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1155
1132
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e &&
|
|
1133
|
+
function Tn(e) {
|
|
1134
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
1158
1135
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return e && e instanceof
|
|
1136
|
+
function Hn(e) {
|
|
1137
|
+
return e && e instanceof nr || Tn(e) && rr(e);
|
|
1161
1138
|
}
|
|
1162
|
-
var
|
|
1139
|
+
var Bn = er(function(e) {
|
|
1163
1140
|
return function() {
|
|
1164
1141
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1165
1142
|
};
|
|
1166
|
-
}),
|
|
1167
|
-
|
|
1143
|
+
}), ir = function(e) {
|
|
1144
|
+
ce(t, e);
|
|
1168
1145
|
function t() {
|
|
1169
|
-
var
|
|
1170
|
-
return
|
|
1146
|
+
var r = e.call(this) || this;
|
|
1147
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1171
1148
|
}
|
|
1172
|
-
return t.prototype.lift = function(
|
|
1173
|
-
var
|
|
1174
|
-
return
|
|
1149
|
+
return t.prototype.lift = function(r) {
|
|
1150
|
+
var n = new St(this, this);
|
|
1151
|
+
return n.operator = r, n;
|
|
1175
1152
|
}, t.prototype._throwIfClosed = function() {
|
|
1176
1153
|
if (this.closed)
|
|
1177
|
-
throw new
|
|
1178
|
-
}, t.prototype.next = function(
|
|
1179
|
-
var
|
|
1180
|
-
|
|
1154
|
+
throw new Bn();
|
|
1155
|
+
}, t.prototype.next = function(r) {
|
|
1156
|
+
var n = this;
|
|
1157
|
+
ve(function() {
|
|
1181
1158
|
var i, o;
|
|
1182
|
-
if (
|
|
1183
|
-
|
|
1159
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1160
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1184
1161
|
try {
|
|
1185
|
-
for (var s =
|
|
1162
|
+
for (var s = Ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1186
1163
|
var u = a.value;
|
|
1187
|
-
u.next(
|
|
1164
|
+
u.next(r);
|
|
1188
1165
|
}
|
|
1189
|
-
} catch (
|
|
1190
|
-
i = { error:
|
|
1166
|
+
} catch (l) {
|
|
1167
|
+
i = { error: l };
|
|
1191
1168
|
} finally {
|
|
1192
1169
|
try {
|
|
1193
1170
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -1198,122 +1175,122 @@ var Tr = Qt(function(e) {
|
|
|
1198
1175
|
}
|
|
1199
1176
|
}
|
|
1200
1177
|
});
|
|
1201
|
-
}, t.prototype.error = function(
|
|
1202
|
-
var
|
|
1203
|
-
|
|
1204
|
-
if (
|
|
1205
|
-
|
|
1206
|
-
for (var i =
|
|
1207
|
-
i.shift().error(
|
|
1178
|
+
}, t.prototype.error = function(r) {
|
|
1179
|
+
var n = this;
|
|
1180
|
+
ve(function() {
|
|
1181
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1182
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1183
|
+
for (var i = n.observers; i.length; )
|
|
1184
|
+
i.shift().error(r);
|
|
1208
1185
|
}
|
|
1209
1186
|
});
|
|
1210
1187
|
}, t.prototype.complete = function() {
|
|
1211
|
-
var
|
|
1212
|
-
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1215
|
-
for (var
|
|
1216
|
-
|
|
1188
|
+
var r = this;
|
|
1189
|
+
ve(function() {
|
|
1190
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1191
|
+
r.isStopped = !0;
|
|
1192
|
+
for (var n = r.observers; n.length; )
|
|
1193
|
+
n.shift().complete();
|
|
1217
1194
|
}
|
|
1218
1195
|
});
|
|
1219
1196
|
}, t.prototype.unsubscribe = function() {
|
|
1220
1197
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1221
1198
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1222
1199
|
get: function() {
|
|
1223
|
-
var
|
|
1224
|
-
return ((
|
|
1200
|
+
var r;
|
|
1201
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1225
1202
|
},
|
|
1226
1203
|
enumerable: !1,
|
|
1227
1204
|
configurable: !0
|
|
1228
|
-
}), t.prototype._trySubscribe = function(
|
|
1229
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1230
|
-
}, t.prototype._subscribe = function(
|
|
1231
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1232
|
-
}, t.prototype._innerSubscribe = function(
|
|
1233
|
-
var
|
|
1234
|
-
return o || s ?
|
|
1235
|
-
|
|
1205
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1206
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1207
|
+
}, t.prototype._subscribe = function(r) {
|
|
1208
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1209
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1210
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1211
|
+
return o || s ? tr : (this.currentObservers = null, a.push(r), new Ae(function() {
|
|
1212
|
+
n.currentObservers = null, Je(a, r);
|
|
1236
1213
|
}));
|
|
1237
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1238
|
-
var
|
|
1239
|
-
i ?
|
|
1214
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1215
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1216
|
+
i ? r.error(o) : s && r.complete();
|
|
1240
1217
|
}, t.prototype.asObservable = function() {
|
|
1241
|
-
var
|
|
1242
|
-
return
|
|
1243
|
-
}, t.create = function(
|
|
1244
|
-
return new
|
|
1218
|
+
var r = new Et();
|
|
1219
|
+
return r.source = this, r;
|
|
1220
|
+
}, t.create = function(r, n) {
|
|
1221
|
+
return new St(r, n);
|
|
1245
1222
|
}, t;
|
|
1246
|
-
}(
|
|
1247
|
-
|
|
1248
|
-
function t(
|
|
1223
|
+
}(Et), St = function(e) {
|
|
1224
|
+
ce(t, e);
|
|
1225
|
+
function t(r, n) {
|
|
1249
1226
|
var i = e.call(this) || this;
|
|
1250
|
-
return i.destination =
|
|
1227
|
+
return i.destination = r, i.source = n, i;
|
|
1251
1228
|
}
|
|
1252
|
-
return t.prototype.next = function(
|
|
1253
|
-
var
|
|
1254
|
-
(i = (
|
|
1255
|
-
}, t.prototype.error = function(
|
|
1256
|
-
var
|
|
1257
|
-
(i = (
|
|
1229
|
+
return t.prototype.next = function(r) {
|
|
1230
|
+
var n, i;
|
|
1231
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1232
|
+
}, t.prototype.error = function(r) {
|
|
1233
|
+
var n, i;
|
|
1234
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1258
1235
|
}, t.prototype.complete = function() {
|
|
1259
|
-
var
|
|
1260
|
-
(
|
|
1261
|
-
}, t.prototype._subscribe = function(
|
|
1262
|
-
var
|
|
1263
|
-
return (i = (
|
|
1236
|
+
var r, n;
|
|
1237
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1238
|
+
}, t.prototype._subscribe = function(r) {
|
|
1239
|
+
var n, i;
|
|
1240
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : tr;
|
|
1264
1241
|
}, t;
|
|
1265
|
-
}(
|
|
1242
|
+
}(ir), or = {
|
|
1266
1243
|
now: function() {
|
|
1267
|
-
return (
|
|
1244
|
+
return (or.delegate || Date).now();
|
|
1268
1245
|
},
|
|
1269
1246
|
delegate: void 0
|
|
1270
|
-
},
|
|
1271
|
-
|
|
1272
|
-
function t(
|
|
1273
|
-
|
|
1247
|
+
}, An = function(e) {
|
|
1248
|
+
ce(t, e);
|
|
1249
|
+
function t(r, n, i) {
|
|
1250
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = or);
|
|
1274
1251
|
var o = e.call(this) || this;
|
|
1275
|
-
return o._bufferSize =
|
|
1252
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1276
1253
|
}
|
|
1277
|
-
return t.prototype.next = function(
|
|
1278
|
-
var
|
|
1279
|
-
i || (o.push(
|
|
1280
|
-
}, t.prototype._subscribe = function(
|
|
1254
|
+
return t.prototype.next = function(r) {
|
|
1255
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
|
1256
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1257
|
+
}, t.prototype._subscribe = function(r) {
|
|
1281
1258
|
this._throwIfClosed(), this._trimBuffer();
|
|
1282
|
-
for (var
|
|
1283
|
-
|
|
1284
|
-
return this._checkFinalizedStatuses(
|
|
1259
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
|
1260
|
+
r.next(a[u]);
|
|
1261
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1285
1262
|
}, t.prototype._trimBuffer = function() {
|
|
1286
|
-
var
|
|
1287
|
-
if (
|
|
1288
|
-
for (var u = i.now(),
|
|
1289
|
-
|
|
1290
|
-
|
|
1263
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1264
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1265
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
1266
|
+
l = h;
|
|
1267
|
+
l && o.splice(0, l + 1);
|
|
1291
1268
|
}
|
|
1292
1269
|
}, t;
|
|
1293
|
-
}(
|
|
1294
|
-
const
|
|
1295
|
-
if (
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1270
|
+
}(ir);
|
|
1271
|
+
const wt = [], Tt = {}, Pn = (e, t = 0) => {
|
|
1272
|
+
if (wt.indexOf(e) == -1) {
|
|
1273
|
+
const r = new An(t);
|
|
1274
|
+
Tt[e] = r, wt.push(e);
|
|
1298
1275
|
}
|
|
1299
|
-
return
|
|
1276
|
+
return Tt[e];
|
|
1300
1277
|
}, V = [];
|
|
1301
|
-
function
|
|
1278
|
+
function On(e, t) {
|
|
1302
1279
|
return {
|
|
1303
|
-
subscribe:
|
|
1280
|
+
subscribe: Pe(e, t).subscribe
|
|
1304
1281
|
};
|
|
1305
1282
|
}
|
|
1306
|
-
function
|
|
1307
|
-
let
|
|
1308
|
-
const
|
|
1283
|
+
function Pe(e, t = H) {
|
|
1284
|
+
let r;
|
|
1285
|
+
const n = /* @__PURE__ */ new Set();
|
|
1309
1286
|
function i(a) {
|
|
1310
|
-
if (
|
|
1287
|
+
if (kt(e, a) && (e = a, r)) {
|
|
1311
1288
|
const u = !V.length;
|
|
1312
|
-
for (const
|
|
1313
|
-
|
|
1289
|
+
for (const l of n)
|
|
1290
|
+
l[1](), V.push(l, e);
|
|
1314
1291
|
if (u) {
|
|
1315
|
-
for (let
|
|
1316
|
-
V[
|
|
1292
|
+
for (let l = 0; l < V.length; l += 2)
|
|
1293
|
+
V[l][0](V[l + 1]);
|
|
1317
1294
|
V.length = 0;
|
|
1318
1295
|
}
|
|
1319
1296
|
}
|
|
@@ -1322,153 +1299,192 @@ function Ae(e, t = H) {
|
|
|
1322
1299
|
i(a(e));
|
|
1323
1300
|
}
|
|
1324
1301
|
function s(a, u = H) {
|
|
1325
|
-
const
|
|
1326
|
-
return
|
|
1327
|
-
|
|
1302
|
+
const l = [a, u];
|
|
1303
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || H), a(e), () => {
|
|
1304
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1328
1305
|
};
|
|
1329
1306
|
}
|
|
1330
1307
|
return { set: i, update: o, subscribe: s };
|
|
1331
1308
|
}
|
|
1332
|
-
function
|
|
1333
|
-
const
|
|
1309
|
+
function Y(e, t, r) {
|
|
1310
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1334
1311
|
if (!i.every(Boolean))
|
|
1335
1312
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1336
1313
|
const o = t.length < 2;
|
|
1337
|
-
return
|
|
1314
|
+
return On(r, (s, a) => {
|
|
1338
1315
|
let u = !1;
|
|
1339
|
-
const
|
|
1340
|
-
let
|
|
1341
|
-
const
|
|
1342
|
-
if (
|
|
1316
|
+
const l = [];
|
|
1317
|
+
let h = 0, f = H;
|
|
1318
|
+
const c = () => {
|
|
1319
|
+
if (h)
|
|
1343
1320
|
return;
|
|
1344
|
-
|
|
1345
|
-
const
|
|
1346
|
-
o ? s(
|
|
1347
|
-
},
|
|
1348
|
-
(
|
|
1349
|
-
|
|
1350
|
-
(
|
|
1351
|
-
|
|
1321
|
+
f();
|
|
1322
|
+
const p = t(n ? l[0] : l, s, a);
|
|
1323
|
+
o ? s(p) : f = ue(p) ? p : H;
|
|
1324
|
+
}, d = i.map(
|
|
1325
|
+
(p, m) => Vt(
|
|
1326
|
+
p,
|
|
1327
|
+
(_) => {
|
|
1328
|
+
l[m] = _, h &= ~(1 << m), u && c();
|
|
1352
1329
|
},
|
|
1353
1330
|
() => {
|
|
1354
|
-
|
|
1331
|
+
h |= 1 << m;
|
|
1355
1332
|
}
|
|
1356
1333
|
)
|
|
1357
1334
|
);
|
|
1358
|
-
return u = !0,
|
|
1359
|
-
G(
|
|
1335
|
+
return u = !0, c(), function() {
|
|
1336
|
+
G(d), f(), u = !1;
|
|
1360
1337
|
};
|
|
1361
1338
|
});
|
|
1362
1339
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1340
|
+
var Ko = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1341
|
+
function In(e) {
|
|
1365
1342
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1366
1343
|
}
|
|
1367
|
-
var
|
|
1368
|
-
return
|
|
1344
|
+
var Ln = function(t) {
|
|
1345
|
+
return Nn(t) && !Cn(t);
|
|
1369
1346
|
};
|
|
1370
|
-
function
|
|
1347
|
+
function Nn(e) {
|
|
1371
1348
|
return !!e && typeof e == "object";
|
|
1372
1349
|
}
|
|
1373
|
-
function
|
|
1350
|
+
function Cn(e) {
|
|
1374
1351
|
var t = Object.prototype.toString.call(e);
|
|
1375
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1352
|
+
return t === "[object RegExp]" || t === "[object Date]" || Rn(e);
|
|
1376
1353
|
}
|
|
1377
|
-
var
|
|
1378
|
-
function
|
|
1379
|
-
return e.$$typeof ===
|
|
1354
|
+
var Mn = typeof Symbol == "function" && Symbol.for, $n = Mn ? Symbol.for("react.element") : 60103;
|
|
1355
|
+
function Rn(e) {
|
|
1356
|
+
return e.$$typeof === $n;
|
|
1380
1357
|
}
|
|
1381
|
-
function
|
|
1358
|
+
function Un(e) {
|
|
1382
1359
|
return Array.isArray(e) ? [] : {};
|
|
1383
1360
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1361
|
+
function se(e, t) {
|
|
1362
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Un(e), e, t) : e;
|
|
1386
1363
|
}
|
|
1387
|
-
function
|
|
1388
|
-
return e.concat(t).map(function(
|
|
1389
|
-
return
|
|
1364
|
+
function Dn(e, t, r) {
|
|
1365
|
+
return e.concat(t).map(function(n) {
|
|
1366
|
+
return se(n, r);
|
|
1390
1367
|
});
|
|
1391
1368
|
}
|
|
1392
|
-
function
|
|
1369
|
+
function Gn(e, t) {
|
|
1393
1370
|
if (!t.customMerge)
|
|
1394
|
-
return
|
|
1395
|
-
var
|
|
1396
|
-
return typeof
|
|
1371
|
+
return Z;
|
|
1372
|
+
var r = t.customMerge(e);
|
|
1373
|
+
return typeof r == "function" ? r : Z;
|
|
1397
1374
|
}
|
|
1398
|
-
function
|
|
1375
|
+
function Fn(e) {
|
|
1399
1376
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1400
1377
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1401
1378
|
}) : [];
|
|
1402
1379
|
}
|
|
1403
|
-
function
|
|
1404
|
-
return Object.keys(e).concat(
|
|
1380
|
+
function Ht(e) {
|
|
1381
|
+
return Object.keys(e).concat(Fn(e));
|
|
1405
1382
|
}
|
|
1406
|
-
function
|
|
1383
|
+
function sr(e, t) {
|
|
1407
1384
|
try {
|
|
1408
1385
|
return t in e;
|
|
1409
|
-
} catch (
|
|
1386
|
+
} catch (r) {
|
|
1410
1387
|
return !1;
|
|
1411
1388
|
}
|
|
1412
1389
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return
|
|
1390
|
+
function jn(e, t) {
|
|
1391
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1415
1392
|
}
|
|
1416
|
-
function
|
|
1417
|
-
var
|
|
1418
|
-
return
|
|
1419
|
-
|
|
1420
|
-
}),
|
|
1421
|
-
|
|
1422
|
-
}),
|
|
1423
|
-
}
|
|
1424
|
-
function
|
|
1425
|
-
|
|
1426
|
-
var
|
|
1427
|
-
return o ?
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1393
|
+
function kn(e, t, r) {
|
|
1394
|
+
var n = {};
|
|
1395
|
+
return r.isMergeableObject(e) && Ht(e).forEach(function(i) {
|
|
1396
|
+
n[i] = se(e[i], r);
|
|
1397
|
+
}), Ht(t).forEach(function(i) {
|
|
1398
|
+
jn(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Gn(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
1399
|
+
}), n;
|
|
1400
|
+
}
|
|
1401
|
+
function Z(e, t, r) {
|
|
1402
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || Ln, r.cloneUnlessOtherwiseSpecified = se;
|
|
1403
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1404
|
+
return o ? n ? r.arrayMerge(e, t, r) : kn(e, t, r) : se(t, r);
|
|
1405
|
+
}
|
|
1406
|
+
Z.all = function(t, r) {
|
|
1430
1407
|
if (!Array.isArray(t))
|
|
1431
1408
|
throw new Error("first argument should be an array");
|
|
1432
|
-
return t.reduce(function(
|
|
1433
|
-
return
|
|
1409
|
+
return t.reduce(function(n, i) {
|
|
1410
|
+
return Z(n, i, r);
|
|
1434
1411
|
}, {});
|
|
1435
1412
|
};
|
|
1436
|
-
var
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1439
|
-
|
|
1413
|
+
var Vn = Z, Xn = Vn;
|
|
1414
|
+
const Wn = /* @__PURE__ */ In(Xn);
|
|
1415
|
+
var Ke = function(e, t) {
|
|
1416
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1417
|
+
r.__proto__ = n;
|
|
1418
|
+
} || function(r, n) {
|
|
1419
|
+
for (var i in n)
|
|
1420
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1421
|
+
}, Ke(e, t);
|
|
1422
|
+
};
|
|
1423
|
+
function Oe(e, t) {
|
|
1424
|
+
if (typeof t != "function" && t !== null)
|
|
1425
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1426
|
+
Ke(e, t);
|
|
1427
|
+
function r() {
|
|
1428
|
+
this.constructor = e;
|
|
1429
|
+
}
|
|
1430
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1431
|
+
}
|
|
1432
|
+
var N = function() {
|
|
1433
|
+
return N = Object.assign || function(t) {
|
|
1434
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1435
|
+
r = arguments[n];
|
|
1436
|
+
for (var o in r)
|
|
1437
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1438
|
+
}
|
|
1439
|
+
return t;
|
|
1440
|
+
}, N.apply(this, arguments);
|
|
1441
|
+
};
|
|
1442
|
+
function zn(e, t) {
|
|
1443
|
+
var r = {};
|
|
1444
|
+
for (var n in e)
|
|
1445
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1446
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1447
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1448
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1449
|
+
return r;
|
|
1450
|
+
}
|
|
1451
|
+
function De(e, t, r) {
|
|
1452
|
+
if (r || arguments.length === 2)
|
|
1453
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1454
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1455
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1456
|
+
}
|
|
1457
|
+
function Ge(e, t) {
|
|
1458
|
+
var r = t && t.cache ? t.cache : ei, n = t && t.serializer ? t.serializer : Yn, i = t && t.strategy ? t.strategy : Qn;
|
|
1440
1459
|
return i(e, {
|
|
1441
|
-
cache:
|
|
1442
|
-
serializer:
|
|
1460
|
+
cache: r,
|
|
1461
|
+
serializer: n
|
|
1443
1462
|
});
|
|
1444
1463
|
}
|
|
1445
|
-
function
|
|
1464
|
+
function Zn(e) {
|
|
1446
1465
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1447
1466
|
}
|
|
1448
|
-
function
|
|
1449
|
-
var i =
|
|
1450
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1451
|
-
}
|
|
1452
|
-
function on(e, t, n) {
|
|
1453
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1454
|
-
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1467
|
+
function qn(e, t, r, n) {
|
|
1468
|
+
var i = Zn(n) ? n : r(n), o = t.get(i);
|
|
1469
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1455
1470
|
}
|
|
1456
|
-
function
|
|
1457
|
-
|
|
1471
|
+
function ar(e, t, r) {
|
|
1472
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1473
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1458
1474
|
}
|
|
1459
|
-
function
|
|
1460
|
-
|
|
1461
|
-
return ot(e, this, n, t.cache.create(), t.serializer);
|
|
1475
|
+
function ur(e, t, r, n, i) {
|
|
1476
|
+
return r.bind(t, e, n, i);
|
|
1462
1477
|
}
|
|
1463
|
-
function
|
|
1464
|
-
|
|
1478
|
+
function Qn(e, t) {
|
|
1479
|
+
var r = e.length === 1 ? qn : ar;
|
|
1480
|
+
return ur(e, this, r, t.cache.create(), t.serializer);
|
|
1465
1481
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return
|
|
1482
|
+
function Jn(e, t) {
|
|
1483
|
+
return ur(e, this, ar, t.cache.create(), t.serializer);
|
|
1468
1484
|
}
|
|
1469
|
-
var
|
|
1485
|
+
var Yn = function() {
|
|
1470
1486
|
return JSON.stringify(arguments);
|
|
1471
|
-
},
|
|
1487
|
+
}, Kn = (
|
|
1472
1488
|
/** @class */
|
|
1473
1489
|
function() {
|
|
1474
1490
|
function e() {
|
|
@@ -1476,18 +1492,27 @@ var Zr = function() {
|
|
|
1476
1492
|
}
|
|
1477
1493
|
return e.prototype.get = function(t) {
|
|
1478
1494
|
return this.cache[t];
|
|
1479
|
-
}, e.prototype.set = function(t,
|
|
1480
|
-
this.cache[t] =
|
|
1495
|
+
}, e.prototype.set = function(t, r) {
|
|
1496
|
+
this.cache[t] = r;
|
|
1481
1497
|
}, e;
|
|
1482
1498
|
}()
|
|
1483
|
-
),
|
|
1499
|
+
), ei = {
|
|
1484
1500
|
create: function() {
|
|
1485
|
-
return new
|
|
1501
|
+
return new Kn();
|
|
1486
1502
|
}
|
|
1487
|
-
},
|
|
1488
|
-
variadic:
|
|
1489
|
-
|
|
1490
|
-
|
|
1503
|
+
}, Fe = {
|
|
1504
|
+
variadic: Jn
|
|
1505
|
+
}, Te = function() {
|
|
1506
|
+
return Te = Object.assign || function(t) {
|
|
1507
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1508
|
+
r = arguments[n];
|
|
1509
|
+
for (var o in r)
|
|
1510
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1511
|
+
}
|
|
1512
|
+
return t;
|
|
1513
|
+
}, Te.apply(this, arguments);
|
|
1514
|
+
};
|
|
1515
|
+
var b;
|
|
1491
1516
|
(function(e) {
|
|
1492
1517
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1493
1518
|
})(b || (b = {}));
|
|
@@ -1495,54 +1520,54 @@ var v;
|
|
|
1495
1520
|
(function(e) {
|
|
1496
1521
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1497
1522
|
})(v || (v = {}));
|
|
1498
|
-
var
|
|
1523
|
+
var q;
|
|
1499
1524
|
(function(e) {
|
|
1500
1525
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1501
|
-
})(
|
|
1502
|
-
function
|
|
1526
|
+
})(q || (q = {}));
|
|
1527
|
+
function Bt(e) {
|
|
1503
1528
|
return e.type === v.literal;
|
|
1504
1529
|
}
|
|
1505
|
-
function
|
|
1530
|
+
function ti(e) {
|
|
1506
1531
|
return e.type === v.argument;
|
|
1507
1532
|
}
|
|
1508
|
-
function
|
|
1533
|
+
function lr(e) {
|
|
1509
1534
|
return e.type === v.number;
|
|
1510
1535
|
}
|
|
1511
|
-
function
|
|
1536
|
+
function hr(e) {
|
|
1512
1537
|
return e.type === v.date;
|
|
1513
1538
|
}
|
|
1514
|
-
function
|
|
1539
|
+
function cr(e) {
|
|
1515
1540
|
return e.type === v.time;
|
|
1516
1541
|
}
|
|
1517
|
-
function
|
|
1542
|
+
function fr(e) {
|
|
1518
1543
|
return e.type === v.select;
|
|
1519
1544
|
}
|
|
1520
|
-
function
|
|
1545
|
+
function pr(e) {
|
|
1521
1546
|
return e.type === v.plural;
|
|
1522
1547
|
}
|
|
1523
|
-
function
|
|
1548
|
+
function ri(e) {
|
|
1524
1549
|
return e.type === v.pound;
|
|
1525
1550
|
}
|
|
1526
|
-
function
|
|
1551
|
+
function dr(e) {
|
|
1527
1552
|
return e.type === v.tag;
|
|
1528
1553
|
}
|
|
1529
|
-
function
|
|
1530
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1554
|
+
function mr(e) {
|
|
1555
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1531
1556
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1557
|
+
function et(e) {
|
|
1558
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1534
1559
|
}
|
|
1535
|
-
var
|
|
1536
|
-
function
|
|
1560
|
+
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1561
|
+
function ii(e) {
|
|
1537
1562
|
var t = {};
|
|
1538
|
-
return e.replace(
|
|
1539
|
-
var
|
|
1540
|
-
switch (
|
|
1563
|
+
return e.replace(ni, function(r) {
|
|
1564
|
+
var n = r.length;
|
|
1565
|
+
switch (r[0]) {
|
|
1541
1566
|
case "G":
|
|
1542
|
-
t.era =
|
|
1567
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1543
1568
|
break;
|
|
1544
1569
|
case "y":
|
|
1545
|
-
t.year =
|
|
1570
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1546
1571
|
break;
|
|
1547
1572
|
case "Y":
|
|
1548
1573
|
case "u":
|
|
@@ -1554,30 +1579,30 @@ function ei(e) {
|
|
|
1554
1579
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1555
1580
|
case "M":
|
|
1556
1581
|
case "L":
|
|
1557
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1582
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1558
1583
|
break;
|
|
1559
1584
|
case "w":
|
|
1560
1585
|
case "W":
|
|
1561
1586
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1562
1587
|
case "d":
|
|
1563
|
-
t.day = ["numeric", "2-digit"][
|
|
1588
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1564
1589
|
break;
|
|
1565
1590
|
case "D":
|
|
1566
1591
|
case "F":
|
|
1567
1592
|
case "g":
|
|
1568
1593
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1569
1594
|
case "E":
|
|
1570
|
-
t.weekday =
|
|
1595
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1571
1596
|
break;
|
|
1572
1597
|
case "e":
|
|
1573
|
-
if (
|
|
1598
|
+
if (n < 4)
|
|
1574
1599
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1575
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1600
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1576
1601
|
break;
|
|
1577
1602
|
case "c":
|
|
1578
|
-
if (
|
|
1603
|
+
if (n < 4)
|
|
1579
1604
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1580
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1605
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1581
1606
|
break;
|
|
1582
1607
|
case "a":
|
|
1583
1608
|
t.hour12 = !0;
|
|
@@ -1586,32 +1611,32 @@ function ei(e) {
|
|
|
1586
1611
|
case "B":
|
|
1587
1612
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1588
1613
|
case "h":
|
|
1589
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1614
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1590
1615
|
break;
|
|
1591
1616
|
case "H":
|
|
1592
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1617
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1593
1618
|
break;
|
|
1594
1619
|
case "K":
|
|
1595
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1620
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1596
1621
|
break;
|
|
1597
1622
|
case "k":
|
|
1598
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1623
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1599
1624
|
break;
|
|
1600
1625
|
case "j":
|
|
1601
1626
|
case "J":
|
|
1602
1627
|
case "C":
|
|
1603
1628
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1604
1629
|
case "m":
|
|
1605
|
-
t.minute = ["numeric", "2-digit"][
|
|
1630
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1606
1631
|
break;
|
|
1607
1632
|
case "s":
|
|
1608
|
-
t.second = ["numeric", "2-digit"][
|
|
1633
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1609
1634
|
break;
|
|
1610
1635
|
case "S":
|
|
1611
1636
|
case "A":
|
|
1612
1637
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1613
1638
|
case "z":
|
|
1614
|
-
t.timeZoneName =
|
|
1639
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1615
1640
|
break;
|
|
1616
1641
|
case "Z":
|
|
1617
1642
|
case "O":
|
|
@@ -1624,36 +1649,46 @@ function ei(e) {
|
|
|
1624
1649
|
return "";
|
|
1625
1650
|
}), t;
|
|
1626
1651
|
}
|
|
1627
|
-
var
|
|
1628
|
-
function
|
|
1652
|
+
var E = function() {
|
|
1653
|
+
return E = Object.assign || function(t) {
|
|
1654
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1655
|
+
r = arguments[n];
|
|
1656
|
+
for (var o in r)
|
|
1657
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1658
|
+
}
|
|
1659
|
+
return t;
|
|
1660
|
+
}, E.apply(this, arguments);
|
|
1661
|
+
};
|
|
1662
|
+
var oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1663
|
+
function si(e) {
|
|
1629
1664
|
if (e.length === 0)
|
|
1630
1665
|
throw new Error("Number skeleton cannot be empty");
|
|
1631
|
-
for (var t = e.split(
|
|
1632
|
-
return
|
|
1633
|
-
}),
|
|
1634
|
-
var o = i[
|
|
1666
|
+
for (var t = e.split(oi).filter(function(c) {
|
|
1667
|
+
return c.length > 0;
|
|
1668
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1669
|
+
var o = i[n], s = o.split("/");
|
|
1635
1670
|
if (s.length === 0)
|
|
1636
1671
|
throw new Error("Invalid number skeleton");
|
|
1637
|
-
for (var a = s[0], u = s.slice(1),
|
|
1638
|
-
var
|
|
1639
|
-
if (
|
|
1672
|
+
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1673
|
+
var f = h[l];
|
|
1674
|
+
if (f.length === 0)
|
|
1640
1675
|
throw new Error("Invalid number skeleton");
|
|
1641
1676
|
}
|
|
1642
|
-
|
|
1677
|
+
r.push({ stem: a, options: u });
|
|
1643
1678
|
}
|
|
1644
|
-
return
|
|
1679
|
+
return r;
|
|
1645
1680
|
}
|
|
1646
|
-
function
|
|
1681
|
+
function ai(e) {
|
|
1647
1682
|
return e.replace(/^(.*?)-/, "");
|
|
1648
1683
|
}
|
|
1649
|
-
var
|
|
1650
|
-
function
|
|
1684
|
+
var At = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
1685
|
+
function Pt(e) {
|
|
1651
1686
|
var t = {};
|
|
1652
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1653
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1687
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
|
|
1688
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1654
1689
|
}), t;
|
|
1655
1690
|
}
|
|
1656
|
-
function
|
|
1691
|
+
function vr(e) {
|
|
1657
1692
|
switch (e) {
|
|
1658
1693
|
case "sign-auto":
|
|
1659
1694
|
return {
|
|
@@ -1693,27 +1728,27 @@ function bn(e) {
|
|
|
1693
1728
|
};
|
|
1694
1729
|
}
|
|
1695
1730
|
}
|
|
1696
|
-
function
|
|
1731
|
+
function li(e) {
|
|
1697
1732
|
var t;
|
|
1698
1733
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1699
1734
|
notation: "engineering"
|
|
1700
1735
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1701
1736
|
notation: "scientific"
|
|
1702
1737
|
}, e = e.slice(1)), t) {
|
|
1703
|
-
var
|
|
1704
|
-
if (
|
|
1738
|
+
var r = e.slice(0, 2);
|
|
1739
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
1705
1740
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1706
1741
|
t.minimumIntegerDigits = e.length;
|
|
1707
1742
|
}
|
|
1708
1743
|
return t;
|
|
1709
1744
|
}
|
|
1710
|
-
function
|
|
1711
|
-
var t = {},
|
|
1712
|
-
return
|
|
1745
|
+
function Ot(e) {
|
|
1746
|
+
var t = {}, r = vr(e);
|
|
1747
|
+
return r || t;
|
|
1713
1748
|
}
|
|
1714
|
-
function
|
|
1715
|
-
for (var t = {},
|
|
1716
|
-
var i = r
|
|
1749
|
+
function hi(e) {
|
|
1750
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1751
|
+
var i = n[r];
|
|
1717
1752
|
switch (i.stem) {
|
|
1718
1753
|
case "percent":
|
|
1719
1754
|
case "%":
|
|
@@ -1735,7 +1770,7 @@ function si(e) {
|
|
|
1735
1770
|
continue;
|
|
1736
1771
|
case "measure-unit":
|
|
1737
1772
|
case "unit":
|
|
1738
|
-
t.style = "unit", t.unit =
|
|
1773
|
+
t.style = "unit", t.unit = ai(i.options[0]);
|
|
1739
1774
|
continue;
|
|
1740
1775
|
case "compact-short":
|
|
1741
1776
|
case "K":
|
|
@@ -1746,13 +1781,13 @@ function si(e) {
|
|
|
1746
1781
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1747
1782
|
continue;
|
|
1748
1783
|
case "scientific":
|
|
1749
|
-
t =
|
|
1750
|
-
return
|
|
1784
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1785
|
+
return E(E({}, u), Ot(l));
|
|
1751
1786
|
}, {}));
|
|
1752
1787
|
continue;
|
|
1753
1788
|
case "engineering":
|
|
1754
|
-
t =
|
|
1755
|
-
return
|
|
1789
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1790
|
+
return E(E({}, u), Ot(l));
|
|
1756
1791
|
}, {}));
|
|
1757
1792
|
continue;
|
|
1758
1793
|
case "notation-simple":
|
|
@@ -1797,41 +1832,41 @@ function si(e) {
|
|
|
1797
1832
|
case "integer-width":
|
|
1798
1833
|
if (i.options.length > 1)
|
|
1799
1834
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1800
|
-
i.options[0].replace(
|
|
1801
|
-
if (
|
|
1802
|
-
t.minimumIntegerDigits =
|
|
1835
|
+
i.options[0].replace(ui, function(u, l, h, f, c, d) {
|
|
1836
|
+
if (l)
|
|
1837
|
+
t.minimumIntegerDigits = h.length;
|
|
1803
1838
|
else {
|
|
1804
|
-
if (
|
|
1839
|
+
if (f && c)
|
|
1805
1840
|
throw new Error("We currently do not support maximum integer digits");
|
|
1806
|
-
if (
|
|
1841
|
+
if (d)
|
|
1807
1842
|
throw new Error("We currently do not support exact integer digits");
|
|
1808
1843
|
}
|
|
1809
1844
|
return "";
|
|
1810
1845
|
});
|
|
1811
1846
|
continue;
|
|
1812
1847
|
}
|
|
1813
|
-
if (
|
|
1848
|
+
if (yr.test(i.stem)) {
|
|
1814
1849
|
t.minimumIntegerDigits = i.stem.length;
|
|
1815
1850
|
continue;
|
|
1816
1851
|
}
|
|
1817
|
-
if (
|
|
1852
|
+
if (At.test(i.stem)) {
|
|
1818
1853
|
if (i.options.length > 1)
|
|
1819
1854
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1820
|
-
i.stem.replace(
|
|
1821
|
-
return
|
|
1855
|
+
i.stem.replace(At, function(u, l, h, f, c, d) {
|
|
1856
|
+
return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1822
1857
|
});
|
|
1823
1858
|
var o = i.options[0];
|
|
1824
|
-
o === "w" ? t =
|
|
1859
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), Pt(o)));
|
|
1825
1860
|
continue;
|
|
1826
1861
|
}
|
|
1827
|
-
if (
|
|
1828
|
-
t =
|
|
1862
|
+
if (gr.test(i.stem)) {
|
|
1863
|
+
t = E(E({}, t), Pt(i.stem));
|
|
1829
1864
|
continue;
|
|
1830
1865
|
}
|
|
1831
|
-
var s =
|
|
1832
|
-
s && (t =
|
|
1833
|
-
var a =
|
|
1834
|
-
a && (t =
|
|
1866
|
+
var s = vr(i.stem);
|
|
1867
|
+
s && (t = E(E({}, t), s));
|
|
1868
|
+
var a = li(i.stem);
|
|
1869
|
+
a && (t = E(E({}, t), a));
|
|
1835
1870
|
}
|
|
1836
1871
|
return t;
|
|
1837
1872
|
}
|
|
@@ -3250,23 +3285,23 @@ var be = {
|
|
|
3250
3285
|
"h"
|
|
3251
3286
|
]
|
|
3252
3287
|
};
|
|
3253
|
-
function
|
|
3254
|
-
for (var
|
|
3255
|
-
var i = e.charAt(
|
|
3288
|
+
function ci(e, t) {
|
|
3289
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3290
|
+
var i = e.charAt(n);
|
|
3256
3291
|
if (i === "j") {
|
|
3257
|
-
for (var o = 0;
|
|
3258
|
-
o++,
|
|
3259
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a",
|
|
3260
|
-
for ((
|
|
3261
|
-
|
|
3292
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3293
|
+
o++, n++;
|
|
3294
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = fi(t);
|
|
3295
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3296
|
+
r += u;
|
|
3262
3297
|
for (; s-- > 0; )
|
|
3263
|
-
|
|
3298
|
+
r = l + r;
|
|
3264
3299
|
} else
|
|
3265
|
-
i === "J" ?
|
|
3300
|
+
i === "J" ? r += "H" : r += i;
|
|
3266
3301
|
}
|
|
3267
|
-
return
|
|
3302
|
+
return r;
|
|
3268
3303
|
}
|
|
3269
|
-
function
|
|
3304
|
+
function fi(e) {
|
|
3270
3305
|
var t = e.hourCycle;
|
|
3271
3306
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3272
3307
|
e.hourCycles && // @ts-ignore
|
|
@@ -3283,73 +3318,73 @@ function ui(e) {
|
|
|
3283
3318
|
default:
|
|
3284
3319
|
throw new Error("Invalid hourCycle");
|
|
3285
3320
|
}
|
|
3286
|
-
var
|
|
3287
|
-
|
|
3288
|
-
var i = be[
|
|
3321
|
+
var r = e.language, n;
|
|
3322
|
+
r !== "root" && (n = e.maximize().region);
|
|
3323
|
+
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
3289
3324
|
return i[0];
|
|
3290
3325
|
}
|
|
3291
|
-
var
|
|
3326
|
+
var je, pi = new RegExp("^".concat(br.source, "*")), di = new RegExp("".concat(br.source, "*$"));
|
|
3292
3327
|
function g(e, t) {
|
|
3293
3328
|
return { start: e, end: t };
|
|
3294
3329
|
}
|
|
3295
|
-
var
|
|
3330
|
+
var mi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, gi = !!Object.fromEntries, yi = !!String.prototype.codePointAt, vi = !!String.prototype.trimStart, _i = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, xi = Ei ? Number.isSafeInteger : function(e) {
|
|
3296
3331
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3297
|
-
},
|
|
3332
|
+
}, tt = !0;
|
|
3298
3333
|
try {
|
|
3299
|
-
var
|
|
3300
|
-
|
|
3334
|
+
var Si = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3335
|
+
tt = ((je = Si.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
3301
3336
|
} catch (e) {
|
|
3302
|
-
|
|
3337
|
+
tt = !1;
|
|
3303
3338
|
}
|
|
3304
|
-
var
|
|
3339
|
+
var It = mi ? (
|
|
3305
3340
|
// Native
|
|
3306
|
-
function(t,
|
|
3307
|
-
return t.startsWith(
|
|
3341
|
+
function(t, r, n) {
|
|
3342
|
+
return t.startsWith(r, n);
|
|
3308
3343
|
}
|
|
3309
3344
|
) : (
|
|
3310
3345
|
// For IE11
|
|
3311
|
-
function(t,
|
|
3312
|
-
return t.slice(
|
|
3346
|
+
function(t, r, n) {
|
|
3347
|
+
return t.slice(n, n + r.length) === r;
|
|
3313
3348
|
}
|
|
3314
|
-
),
|
|
3349
|
+
), rt = bi ? String.fromCodePoint : (
|
|
3315
3350
|
// IE11
|
|
3316
3351
|
function() {
|
|
3317
|
-
for (var t = [],
|
|
3318
|
-
t[
|
|
3319
|
-
for (var
|
|
3352
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3353
|
+
t[r] = arguments[r];
|
|
3354
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
3320
3355
|
if (s = t[o++], s > 1114111)
|
|
3321
3356
|
throw RangeError(s + " is not a valid code point");
|
|
3322
|
-
|
|
3357
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3323
3358
|
}
|
|
3324
|
-
return
|
|
3359
|
+
return n;
|
|
3325
3360
|
}
|
|
3326
|
-
),
|
|
3361
|
+
), Lt = (
|
|
3327
3362
|
// native
|
|
3328
|
-
|
|
3363
|
+
gi ? Object.fromEntries : (
|
|
3329
3364
|
// Ponyfill
|
|
3330
3365
|
function(t) {
|
|
3331
|
-
for (var
|
|
3332
|
-
var o = i[
|
|
3333
|
-
|
|
3366
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3367
|
+
var o = i[n], s = o[0], a = o[1];
|
|
3368
|
+
r[s] = a;
|
|
3334
3369
|
}
|
|
3335
|
-
return
|
|
3370
|
+
return r;
|
|
3336
3371
|
}
|
|
3337
3372
|
)
|
|
3338
|
-
),
|
|
3373
|
+
), _r = yi ? (
|
|
3339
3374
|
// Native
|
|
3340
|
-
function(t,
|
|
3341
|
-
return t.codePointAt(
|
|
3375
|
+
function(t, r) {
|
|
3376
|
+
return t.codePointAt(r);
|
|
3342
3377
|
}
|
|
3343
3378
|
) : (
|
|
3344
3379
|
// IE 11
|
|
3345
|
-
function(t,
|
|
3346
|
-
var
|
|
3347
|
-
if (!(
|
|
3348
|
-
var i = t.charCodeAt(
|
|
3349
|
-
return i < 55296 || i > 56319 ||
|
|
3380
|
+
function(t, r) {
|
|
3381
|
+
var n = t.length;
|
|
3382
|
+
if (!(r < 0 || r >= n)) {
|
|
3383
|
+
var i = t.charCodeAt(r), o;
|
|
3384
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3350
3385
|
}
|
|
3351
3386
|
}
|
|
3352
|
-
),
|
|
3387
|
+
), wi = vi ? (
|
|
3353
3388
|
// Native
|
|
3354
3389
|
function(t) {
|
|
3355
3390
|
return t.trimStart();
|
|
@@ -3357,9 +3392,9 @@ var Bt = fi ? (
|
|
|
3357
3392
|
) : (
|
|
3358
3393
|
// Ponyfill
|
|
3359
3394
|
function(t) {
|
|
3360
|
-
return t.replace(
|
|
3395
|
+
return t.replace(pi, "");
|
|
3361
3396
|
}
|
|
3362
|
-
),
|
|
3397
|
+
), Ti = _i ? (
|
|
3363
3398
|
// Native
|
|
3364
3399
|
function(t) {
|
|
3365
3400
|
return t.trimEnd();
|
|
@@ -3367,69 +3402,69 @@ var Bt = fi ? (
|
|
|
3367
3402
|
) : (
|
|
3368
3403
|
// Ponyfill
|
|
3369
3404
|
function(t) {
|
|
3370
|
-
return t.replace(
|
|
3405
|
+
return t.replace(di, "");
|
|
3371
3406
|
}
|
|
3372
3407
|
);
|
|
3373
|
-
function
|
|
3408
|
+
function Er(e, t) {
|
|
3374
3409
|
return new RegExp(e, t);
|
|
3375
3410
|
}
|
|
3376
|
-
var
|
|
3377
|
-
if (
|
|
3378
|
-
var
|
|
3379
|
-
|
|
3380
|
-
var
|
|
3381
|
-
|
|
3382
|
-
var i =
|
|
3383
|
-
return (
|
|
3411
|
+
var nt;
|
|
3412
|
+
if (tt) {
|
|
3413
|
+
var Nt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3414
|
+
nt = function(t, r) {
|
|
3415
|
+
var n;
|
|
3416
|
+
Nt.lastIndex = r;
|
|
3417
|
+
var i = Nt.exec(t);
|
|
3418
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3384
3419
|
};
|
|
3385
3420
|
} else
|
|
3386
|
-
|
|
3387
|
-
for (var
|
|
3388
|
-
var i =
|
|
3389
|
-
if (i === void 0 ||
|
|
3421
|
+
nt = function(t, r) {
|
|
3422
|
+
for (var n = []; ; ) {
|
|
3423
|
+
var i = _r(t, r);
|
|
3424
|
+
if (i === void 0 || xr(i) || Pi(i))
|
|
3390
3425
|
break;
|
|
3391
|
-
|
|
3426
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3392
3427
|
}
|
|
3393
|
-
return
|
|
3428
|
+
return rt.apply(void 0, n);
|
|
3394
3429
|
};
|
|
3395
|
-
var
|
|
3430
|
+
var Hi = (
|
|
3396
3431
|
/** @class */
|
|
3397
3432
|
function() {
|
|
3398
|
-
function e(t,
|
|
3399
|
-
|
|
3433
|
+
function e(t, r) {
|
|
3434
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3400
3435
|
}
|
|
3401
3436
|
return e.prototype.parse = function() {
|
|
3402
3437
|
if (this.offset() !== 0)
|
|
3403
3438
|
throw Error("parser can only be used once");
|
|
3404
3439
|
return this.parseMessage(0, "", !1);
|
|
3405
|
-
}, e.prototype.parseMessage = function(t,
|
|
3440
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3406
3441
|
for (var i = []; !this.isEOF(); ) {
|
|
3407
3442
|
var o = this.char();
|
|
3408
3443
|
if (o === 123) {
|
|
3409
|
-
var s = this.parseArgument(t,
|
|
3444
|
+
var s = this.parseArgument(t, n);
|
|
3410
3445
|
if (s.err)
|
|
3411
3446
|
return s;
|
|
3412
3447
|
i.push(s.val);
|
|
3413
3448
|
} else {
|
|
3414
3449
|
if (o === 125 && t > 0)
|
|
3415
3450
|
break;
|
|
3416
|
-
if (o === 35 && (
|
|
3451
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3417
3452
|
var a = this.clonePosition();
|
|
3418
3453
|
this.bump(), i.push({
|
|
3419
3454
|
type: v.pound,
|
|
3420
3455
|
location: g(a, this.clonePosition())
|
|
3421
3456
|
});
|
|
3422
3457
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3423
|
-
if (
|
|
3458
|
+
if (n)
|
|
3424
3459
|
break;
|
|
3425
3460
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3426
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3427
|
-
var s = this.parseTag(t,
|
|
3461
|
+
} else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
3462
|
+
var s = this.parseTag(t, r);
|
|
3428
3463
|
if (s.err)
|
|
3429
3464
|
return s;
|
|
3430
3465
|
i.push(s.val);
|
|
3431
3466
|
} else {
|
|
3432
|
-
var s = this.parseLiteral(t,
|
|
3467
|
+
var s = this.parseLiteral(t, r);
|
|
3433
3468
|
if (s.err)
|
|
3434
3469
|
return s;
|
|
3435
3470
|
i.push(s.val);
|
|
@@ -3437,8 +3472,8 @@ var Ei = (
|
|
|
3437
3472
|
}
|
|
3438
3473
|
}
|
|
3439
3474
|
return { val: i, err: null };
|
|
3440
|
-
}, e.prototype.parseTag = function(t,
|
|
3441
|
-
var
|
|
3475
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3476
|
+
var n = this.clonePosition();
|
|
3442
3477
|
this.bump();
|
|
3443
3478
|
var i = this.parseTagName();
|
|
3444
3479
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3446,45 +3481,45 @@ var Ei = (
|
|
|
3446
3481
|
val: {
|
|
3447
3482
|
type: v.literal,
|
|
3448
3483
|
value: "<".concat(i, "/>"),
|
|
3449
|
-
location: g(
|
|
3484
|
+
location: g(n, this.clonePosition())
|
|
3450
3485
|
},
|
|
3451
3486
|
err: null
|
|
3452
3487
|
};
|
|
3453
3488
|
if (this.bumpIf(">")) {
|
|
3454
|
-
var o = this.parseMessage(t + 1,
|
|
3489
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3455
3490
|
if (o.err)
|
|
3456
3491
|
return o;
|
|
3457
3492
|
var s = o.val, a = this.clonePosition();
|
|
3458
3493
|
if (this.bumpIf("</")) {
|
|
3459
|
-
if (this.isEOF() || !
|
|
3494
|
+
if (this.isEOF() || !it(this.char()))
|
|
3460
3495
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3461
|
-
var u = this.clonePosition(),
|
|
3462
|
-
return i !==
|
|
3496
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
3497
|
+
return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3463
3498
|
val: {
|
|
3464
3499
|
type: v.tag,
|
|
3465
3500
|
value: i,
|
|
3466
3501
|
children: s,
|
|
3467
|
-
location: g(
|
|
3502
|
+
location: g(n, this.clonePosition())
|
|
3468
3503
|
},
|
|
3469
3504
|
err: null
|
|
3470
3505
|
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
3471
3506
|
} else
|
|
3472
|
-
return this.error(b.UNCLOSED_TAG, g(
|
|
3507
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3473
3508
|
} else
|
|
3474
|
-
return this.error(b.INVALID_TAG, g(
|
|
3509
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3475
3510
|
}, e.prototype.parseTagName = function() {
|
|
3476
3511
|
var t = this.offset();
|
|
3477
|
-
for (this.bump(); !this.isEOF() &&
|
|
3512
|
+
for (this.bump(); !this.isEOF() && Ai(this.char()); )
|
|
3478
3513
|
this.bump();
|
|
3479
3514
|
return this.message.slice(t, this.offset());
|
|
3480
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3481
|
-
for (var
|
|
3482
|
-
var o = this.tryParseQuote(
|
|
3515
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3516
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3517
|
+
var o = this.tryParseQuote(r);
|
|
3483
3518
|
if (o) {
|
|
3484
3519
|
i += o;
|
|
3485
3520
|
continue;
|
|
3486
3521
|
}
|
|
3487
|
-
var s = this.tryParseUnquoted(t,
|
|
3522
|
+
var s = this.tryParseUnquoted(t, r);
|
|
3488
3523
|
if (s) {
|
|
3489
3524
|
i += s;
|
|
3490
3525
|
continue;
|
|
@@ -3496,14 +3531,14 @@ var Ei = (
|
|
|
3496
3531
|
}
|
|
3497
3532
|
break;
|
|
3498
3533
|
}
|
|
3499
|
-
var u = g(
|
|
3534
|
+
var u = g(n, this.clonePosition());
|
|
3500
3535
|
return {
|
|
3501
3536
|
val: { type: v.literal, value: i, location: u },
|
|
3502
3537
|
err: null
|
|
3503
3538
|
};
|
|
3504
3539
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3505
3540
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3506
|
-
!
|
|
3541
|
+
!Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3507
3542
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3508
3543
|
if (this.isEOF() || this.char() !== 39)
|
|
3509
3544
|
return null;
|
|
@@ -3523,37 +3558,37 @@ var Ei = (
|
|
|
3523
3558
|
return null;
|
|
3524
3559
|
}
|
|
3525
3560
|
this.bump();
|
|
3526
|
-
var
|
|
3561
|
+
var r = [this.char()];
|
|
3527
3562
|
for (this.bump(); !this.isEOF(); ) {
|
|
3528
|
-
var
|
|
3529
|
-
if (
|
|
3563
|
+
var n = this.char();
|
|
3564
|
+
if (n === 39)
|
|
3530
3565
|
if (this.peek() === 39)
|
|
3531
|
-
|
|
3566
|
+
r.push(39), this.bump();
|
|
3532
3567
|
else {
|
|
3533
3568
|
this.bump();
|
|
3534
3569
|
break;
|
|
3535
3570
|
}
|
|
3536
3571
|
else
|
|
3537
|
-
|
|
3572
|
+
r.push(n);
|
|
3538
3573
|
this.bump();
|
|
3539
3574
|
}
|
|
3540
|
-
return
|
|
3541
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3575
|
+
return rt.apply(void 0, r);
|
|
3576
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3542
3577
|
if (this.isEOF())
|
|
3543
3578
|
return null;
|
|
3544
|
-
var
|
|
3545
|
-
return
|
|
3546
|
-
}, e.prototype.parseArgument = function(t,
|
|
3547
|
-
var
|
|
3579
|
+
var n = this.char();
|
|
3580
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
|
|
3581
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3582
|
+
var n = this.clonePosition();
|
|
3548
3583
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3549
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(
|
|
3584
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3550
3585
|
if (this.char() === 125)
|
|
3551
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(
|
|
3586
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3552
3587
|
var i = this.parseIdentifierIfPossible().value;
|
|
3553
3588
|
if (!i)
|
|
3554
|
-
return this.error(b.MALFORMED_ARGUMENT, g(
|
|
3589
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3555
3590
|
if (this.bumpSpace(), this.isEOF())
|
|
3556
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(
|
|
3591
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3557
3592
|
switch (this.char()) {
|
|
3558
3593
|
case 125:
|
|
3559
3594
|
return this.bump(), {
|
|
@@ -3561,21 +3596,21 @@ var Ei = (
|
|
|
3561
3596
|
type: v.argument,
|
|
3562
3597
|
// value does not include the opening and closing braces.
|
|
3563
3598
|
value: i,
|
|
3564
|
-
location: g(
|
|
3599
|
+
location: g(n, this.clonePosition())
|
|
3565
3600
|
},
|
|
3566
3601
|
err: null
|
|
3567
3602
|
};
|
|
3568
3603
|
case 44:
|
|
3569
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(
|
|
3604
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3570
3605
|
default:
|
|
3571
|
-
return this.error(b.MALFORMED_ARGUMENT, g(
|
|
3606
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3572
3607
|
}
|
|
3573
3608
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3574
|
-
var t = this.clonePosition(),
|
|
3609
|
+
var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
|
|
3575
3610
|
this.bumpTo(i);
|
|
3576
3611
|
var o = this.clonePosition(), s = g(t, o);
|
|
3577
|
-
return { value:
|
|
3578
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3612
|
+
return { value: n, location: s };
|
|
3613
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3579
3614
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3580
3615
|
switch (a) {
|
|
3581
3616
|
case "":
|
|
@@ -3584,43 +3619,43 @@ var Ei = (
|
|
|
3584
3619
|
case "date":
|
|
3585
3620
|
case "time": {
|
|
3586
3621
|
this.bumpSpace();
|
|
3587
|
-
var
|
|
3622
|
+
var l = null;
|
|
3588
3623
|
if (this.bumpIf(",")) {
|
|
3589
3624
|
this.bumpSpace();
|
|
3590
|
-
var
|
|
3591
|
-
if (
|
|
3592
|
-
return
|
|
3593
|
-
var
|
|
3594
|
-
if (
|
|
3625
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3626
|
+
if (f.err)
|
|
3627
|
+
return f;
|
|
3628
|
+
var c = Ti(f.val);
|
|
3629
|
+
if (c.length === 0)
|
|
3595
3630
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3596
|
-
var
|
|
3597
|
-
|
|
3631
|
+
var d = g(h, this.clonePosition());
|
|
3632
|
+
l = { style: c, styleLocation: d };
|
|
3598
3633
|
}
|
|
3599
|
-
var
|
|
3600
|
-
if (
|
|
3601
|
-
return
|
|
3634
|
+
var p = this.tryParseArgumentClose(i);
|
|
3635
|
+
if (p.err)
|
|
3636
|
+
return p;
|
|
3602
3637
|
var m = g(i, this.clonePosition());
|
|
3603
|
-
if (
|
|
3604
|
-
var
|
|
3638
|
+
if (l && It(l == null ? void 0 : l.style, "::", 0)) {
|
|
3639
|
+
var _ = wi(l.style.slice(2));
|
|
3605
3640
|
if (a === "number") {
|
|
3606
|
-
var
|
|
3607
|
-
return
|
|
3608
|
-
val: { type: v.number, value:
|
|
3641
|
+
var f = this.parseNumberSkeletonFromString(_, l.styleLocation);
|
|
3642
|
+
return f.err ? f : {
|
|
3643
|
+
val: { type: v.number, value: n, location: m, style: f.val },
|
|
3609
3644
|
err: null
|
|
3610
3645
|
};
|
|
3611
3646
|
} else {
|
|
3612
|
-
if (
|
|
3647
|
+
if (_.length === 0)
|
|
3613
3648
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3614
|
-
var
|
|
3615
|
-
this.locale && (
|
|
3616
|
-
var
|
|
3617
|
-
type:
|
|
3618
|
-
pattern:
|
|
3619
|
-
location:
|
|
3620
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3649
|
+
var w = _;
|
|
3650
|
+
this.locale && (w = ci(_, this.locale));
|
|
3651
|
+
var c = {
|
|
3652
|
+
type: q.dateTime,
|
|
3653
|
+
pattern: w,
|
|
3654
|
+
location: l.styleLocation,
|
|
3655
|
+
parsedOptions: this.shouldParseSkeletons ? ii(w) : {}
|
|
3621
3656
|
}, P = a === "date" ? v.date : v.time;
|
|
3622
3657
|
return {
|
|
3623
|
-
val: { type: P, value:
|
|
3658
|
+
val: { type: P, value: n, location: m, style: c },
|
|
3624
3659
|
err: null
|
|
3625
3660
|
};
|
|
3626
3661
|
}
|
|
@@ -3628,9 +3663,9 @@ var Ei = (
|
|
|
3628
3663
|
return {
|
|
3629
3664
|
val: {
|
|
3630
3665
|
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3631
|
-
value:
|
|
3666
|
+
value: n,
|
|
3632
3667
|
location: m,
|
|
3633
|
-
style: (o =
|
|
3668
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3634
3669
|
},
|
|
3635
3670
|
err: null
|
|
3636
3671
|
};
|
|
@@ -3638,43 +3673,43 @@ var Ei = (
|
|
|
3638
3673
|
case "plural":
|
|
3639
3674
|
case "selectordinal":
|
|
3640
3675
|
case "select": {
|
|
3641
|
-
var
|
|
3676
|
+
var x = this.clonePosition();
|
|
3642
3677
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3643
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(
|
|
3678
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(x, Te({}, x)));
|
|
3644
3679
|
this.bumpSpace();
|
|
3645
|
-
var I = this.parseIdentifierIfPossible(),
|
|
3680
|
+
var I = this.parseIdentifierIfPossible(), T = 0;
|
|
3646
3681
|
if (a !== "select" && I.value === "offset") {
|
|
3647
3682
|
if (!this.bumpIf(":"))
|
|
3648
3683
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3649
3684
|
this.bumpSpace();
|
|
3650
|
-
var
|
|
3651
|
-
if (
|
|
3652
|
-
return
|
|
3653
|
-
this.bumpSpace(), I = this.parseIdentifierIfPossible(),
|
|
3685
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3686
|
+
if (f.err)
|
|
3687
|
+
return f;
|
|
3688
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), T = f.val;
|
|
3654
3689
|
}
|
|
3655
|
-
var R = this.tryParsePluralOrSelectOptions(t, a,
|
|
3690
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
|
3656
3691
|
if (R.err)
|
|
3657
3692
|
return R;
|
|
3658
|
-
var
|
|
3659
|
-
if (
|
|
3660
|
-
return
|
|
3661
|
-
var
|
|
3693
|
+
var p = this.tryParseArgumentClose(i);
|
|
3694
|
+
if (p.err)
|
|
3695
|
+
return p;
|
|
3696
|
+
var pe = g(i, this.clonePosition());
|
|
3662
3697
|
return a === "select" ? {
|
|
3663
3698
|
val: {
|
|
3664
3699
|
type: v.select,
|
|
3665
|
-
value:
|
|
3666
|
-
options:
|
|
3667
|
-
location:
|
|
3700
|
+
value: n,
|
|
3701
|
+
options: Lt(R.val),
|
|
3702
|
+
location: pe
|
|
3668
3703
|
},
|
|
3669
3704
|
err: null
|
|
3670
3705
|
} : {
|
|
3671
3706
|
val: {
|
|
3672
3707
|
type: v.plural,
|
|
3673
|
-
value:
|
|
3674
|
-
options:
|
|
3675
|
-
offset:
|
|
3708
|
+
value: n,
|
|
3709
|
+
options: Lt(R.val),
|
|
3710
|
+
offset: T,
|
|
3676
3711
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3677
|
-
location:
|
|
3712
|
+
location: pe
|
|
3678
3713
|
},
|
|
3679
3714
|
err: null
|
|
3680
3715
|
};
|
|
@@ -3685,9 +3720,9 @@ var Ei = (
|
|
|
3685
3720
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3686
3721
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3687
3722
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3688
|
-
for (var t = 0,
|
|
3689
|
-
var
|
|
3690
|
-
switch (
|
|
3723
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3724
|
+
var n = this.char();
|
|
3725
|
+
switch (n) {
|
|
3691
3726
|
case 39: {
|
|
3692
3727
|
this.bump();
|
|
3693
3728
|
var i = this.clonePosition();
|
|
@@ -3705,7 +3740,7 @@ var Ei = (
|
|
|
3705
3740
|
t -= 1;
|
|
3706
3741
|
else
|
|
3707
3742
|
return {
|
|
3708
|
-
val: this.message.slice(
|
|
3743
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3709
3744
|
err: null
|
|
3710
3745
|
};
|
|
3711
3746
|
break;
|
|
@@ -3716,61 +3751,61 @@ var Ei = (
|
|
|
3716
3751
|
}
|
|
3717
3752
|
}
|
|
3718
3753
|
return {
|
|
3719
|
-
val: this.message.slice(
|
|
3754
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3720
3755
|
err: null
|
|
3721
3756
|
};
|
|
3722
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3723
|
-
var
|
|
3757
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3758
|
+
var n = [];
|
|
3724
3759
|
try {
|
|
3725
|
-
|
|
3760
|
+
n = si(t);
|
|
3726
3761
|
} catch (i) {
|
|
3727
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3762
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3728
3763
|
}
|
|
3729
3764
|
return {
|
|
3730
3765
|
val: {
|
|
3731
|
-
type:
|
|
3732
|
-
tokens:
|
|
3733
|
-
location:
|
|
3734
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3766
|
+
type: q.number,
|
|
3767
|
+
tokens: n,
|
|
3768
|
+
location: r,
|
|
3769
|
+
parsedOptions: this.shouldParseSkeletons ? hi(n) : {}
|
|
3735
3770
|
},
|
|
3736
3771
|
err: null
|
|
3737
3772
|
};
|
|
3738
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3739
|
-
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(),
|
|
3740
|
-
if (
|
|
3741
|
-
var
|
|
3742
|
-
if (
|
|
3743
|
-
var
|
|
3744
|
-
if (
|
|
3745
|
-
return
|
|
3746
|
-
|
|
3773
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3774
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3775
|
+
if (l.length === 0) {
|
|
3776
|
+
var f = this.clonePosition();
|
|
3777
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3778
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3779
|
+
if (c.err)
|
|
3780
|
+
return c;
|
|
3781
|
+
h = g(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3747
3782
|
} else
|
|
3748
3783
|
break;
|
|
3749
3784
|
}
|
|
3750
|
-
if (u.has(
|
|
3751
|
-
return this.error(
|
|
3752
|
-
|
|
3753
|
-
var
|
|
3785
|
+
if (u.has(l))
|
|
3786
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3787
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3788
|
+
var d = this.clonePosition();
|
|
3754
3789
|
if (!this.bumpIf("{"))
|
|
3755
|
-
return this.error(
|
|
3756
|
-
var
|
|
3757
|
-
if (
|
|
3758
|
-
return
|
|
3759
|
-
var m = this.tryParseArgumentClose(
|
|
3790
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3791
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3792
|
+
if (p.err)
|
|
3793
|
+
return p;
|
|
3794
|
+
var m = this.tryParseArgumentClose(d);
|
|
3760
3795
|
if (m.err)
|
|
3761
3796
|
return m;
|
|
3762
3797
|
a.push([
|
|
3763
|
-
|
|
3798
|
+
l,
|
|
3764
3799
|
{
|
|
3765
|
-
value:
|
|
3766
|
-
location: g(
|
|
3800
|
+
value: p.val,
|
|
3801
|
+
location: g(d, this.clonePosition())
|
|
3767
3802
|
}
|
|
3768
|
-
]), u.add(
|
|
3803
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3769
3804
|
}
|
|
3770
|
-
return a.length === 0 ? this.error(
|
|
3771
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3772
|
-
var
|
|
3773
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3805
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3806
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3807
|
+
var n = 1, i = this.clonePosition();
|
|
3808
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3774
3809
|
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3775
3810
|
var a = this.char();
|
|
3776
3811
|
if (a >= 48 && a <= 57)
|
|
@@ -3779,7 +3814,7 @@ var Ei = (
|
|
|
3779
3814
|
break;
|
|
3780
3815
|
}
|
|
3781
3816
|
var u = g(i, this.clonePosition());
|
|
3782
|
-
return o ? (s *=
|
|
3817
|
+
return o ? (s *= n, xi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3783
3818
|
}, e.prototype.offset = function() {
|
|
3784
3819
|
return this.position.offset;
|
|
3785
3820
|
}, e.prototype.isEOF = function() {
|
|
@@ -3794,17 +3829,17 @@ var Ei = (
|
|
|
3794
3829
|
var t = this.position.offset;
|
|
3795
3830
|
if (t >= this.message.length)
|
|
3796
3831
|
throw Error("out of bound");
|
|
3797
|
-
var
|
|
3798
|
-
if (
|
|
3832
|
+
var r = _r(this.message, t);
|
|
3833
|
+
if (r === void 0)
|
|
3799
3834
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3800
|
-
return
|
|
3801
|
-
}, e.prototype.error = function(t,
|
|
3835
|
+
return r;
|
|
3836
|
+
}, e.prototype.error = function(t, r) {
|
|
3802
3837
|
return {
|
|
3803
3838
|
val: null,
|
|
3804
3839
|
err: {
|
|
3805
3840
|
kind: t,
|
|
3806
3841
|
message: this.message,
|
|
3807
|
-
location:
|
|
3842
|
+
location: r
|
|
3808
3843
|
}
|
|
3809
3844
|
};
|
|
3810
3845
|
}, e.prototype.bump = function() {
|
|
@@ -3813,301 +3848,301 @@ var Ei = (
|
|
|
3813
3848
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3814
3849
|
}
|
|
3815
3850
|
}, e.prototype.bumpIf = function(t) {
|
|
3816
|
-
if (
|
|
3817
|
-
for (var
|
|
3851
|
+
if (It(this.message, t, this.offset())) {
|
|
3852
|
+
for (var r = 0; r < t.length; r++)
|
|
3818
3853
|
this.bump();
|
|
3819
3854
|
return !0;
|
|
3820
3855
|
}
|
|
3821
3856
|
return !1;
|
|
3822
3857
|
}, e.prototype.bumpUntil = function(t) {
|
|
3823
|
-
var
|
|
3824
|
-
return
|
|
3858
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3859
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3825
3860
|
}, e.prototype.bumpTo = function(t) {
|
|
3826
3861
|
if (this.offset() > t)
|
|
3827
3862
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3828
3863
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3829
|
-
var
|
|
3830
|
-
if (
|
|
3864
|
+
var r = this.offset();
|
|
3865
|
+
if (r === t)
|
|
3831
3866
|
break;
|
|
3832
|
-
if (
|
|
3867
|
+
if (r > t)
|
|
3833
3868
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3834
3869
|
if (this.bump(), this.isEOF())
|
|
3835
3870
|
break;
|
|
3836
3871
|
}
|
|
3837
3872
|
}, e.prototype.bumpSpace = function() {
|
|
3838
|
-
for (; !this.isEOF() &&
|
|
3873
|
+
for (; !this.isEOF() && xr(this.char()); )
|
|
3839
3874
|
this.bump();
|
|
3840
3875
|
}, e.prototype.peek = function() {
|
|
3841
3876
|
if (this.isEOF())
|
|
3842
3877
|
return null;
|
|
3843
|
-
var t = this.char(),
|
|
3844
|
-
return
|
|
3878
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3879
|
+
return n != null ? n : null;
|
|
3845
3880
|
}, e;
|
|
3846
3881
|
}()
|
|
3847
3882
|
);
|
|
3848
|
-
function
|
|
3883
|
+
function it(e) {
|
|
3849
3884
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3850
3885
|
}
|
|
3851
|
-
function
|
|
3852
|
-
return
|
|
3886
|
+
function Bi(e) {
|
|
3887
|
+
return it(e) || e === 47;
|
|
3853
3888
|
}
|
|
3854
|
-
function
|
|
3889
|
+
function Ai(e) {
|
|
3855
3890
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3856
3891
|
}
|
|
3857
|
-
function
|
|
3892
|
+
function xr(e) {
|
|
3858
3893
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3859
3894
|
}
|
|
3860
|
-
function
|
|
3895
|
+
function Pi(e) {
|
|
3861
3896
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3862
3897
|
}
|
|
3863
|
-
function
|
|
3898
|
+
function ot(e) {
|
|
3864
3899
|
e.forEach(function(t) {
|
|
3865
|
-
if (delete t.location,
|
|
3866
|
-
for (var
|
|
3867
|
-
delete t.options[
|
|
3900
|
+
if (delete t.location, fr(t) || pr(t))
|
|
3901
|
+
for (var r in t.options)
|
|
3902
|
+
delete t.options[r].location, ot(t.options[r].value);
|
|
3868
3903
|
else
|
|
3869
|
-
|
|
3904
|
+
lr(t) && mr(t.style) || (hr(t) || cr(t)) && et(t.style) ? delete t.style.location : dr(t) && ot(t.children);
|
|
3870
3905
|
});
|
|
3871
3906
|
}
|
|
3872
|
-
function
|
|
3873
|
-
t === void 0 && (t = {}), t =
|
|
3874
|
-
var
|
|
3875
|
-
if (
|
|
3876
|
-
var
|
|
3877
|
-
throw
|
|
3907
|
+
function Oi(e, t) {
|
|
3908
|
+
t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3909
|
+
var r = new Hi(e, t).parse();
|
|
3910
|
+
if (r.err) {
|
|
3911
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3912
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3878
3913
|
}
|
|
3879
|
-
return t != null && t.captureLocation ||
|
|
3914
|
+
return t != null && t.captureLocation || ot(r.val), r.val;
|
|
3880
3915
|
}
|
|
3881
|
-
var
|
|
3916
|
+
var Q;
|
|
3882
3917
|
(function(e) {
|
|
3883
3918
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3884
|
-
})(
|
|
3885
|
-
var
|
|
3919
|
+
})(Q || (Q = {}));
|
|
3920
|
+
var Ie = (
|
|
3886
3921
|
/** @class */
|
|
3887
3922
|
function(e) {
|
|
3888
|
-
|
|
3889
|
-
function t(
|
|
3890
|
-
var o = e.call(this,
|
|
3891
|
-
return o.code =
|
|
3923
|
+
Oe(t, e);
|
|
3924
|
+
function t(r, n, i) {
|
|
3925
|
+
var o = e.call(this, r) || this;
|
|
3926
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3892
3927
|
}
|
|
3893
3928
|
return t.prototype.toString = function() {
|
|
3894
3929
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3895
3930
|
}, t;
|
|
3896
3931
|
}(Error)
|
|
3897
|
-
),
|
|
3932
|
+
), Ct = (
|
|
3898
3933
|
/** @class */
|
|
3899
3934
|
function(e) {
|
|
3900
|
-
|
|
3901
|
-
function t(
|
|
3902
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3935
|
+
Oe(t, e);
|
|
3936
|
+
function t(r, n, i, o) {
|
|
3937
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3903
3938
|
}
|
|
3904
3939
|
return t;
|
|
3905
|
-
}(
|
|
3906
|
-
),
|
|
3940
|
+
}(Ie)
|
|
3941
|
+
), Ii = (
|
|
3907
3942
|
/** @class */
|
|
3908
3943
|
function(e) {
|
|
3909
|
-
|
|
3910
|
-
function t(
|
|
3911
|
-
return e.call(this, 'Value for "'.concat(
|
|
3944
|
+
Oe(t, e);
|
|
3945
|
+
function t(r, n, i) {
|
|
3946
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3912
3947
|
}
|
|
3913
3948
|
return t;
|
|
3914
|
-
}(
|
|
3915
|
-
),
|
|
3949
|
+
}(Ie)
|
|
3950
|
+
), Li = (
|
|
3916
3951
|
/** @class */
|
|
3917
3952
|
function(e) {
|
|
3918
|
-
|
|
3919
|
-
function t(
|
|
3920
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3953
|
+
Oe(t, e);
|
|
3954
|
+
function t(r, n) {
|
|
3955
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3921
3956
|
}
|
|
3922
3957
|
return t;
|
|
3923
|
-
}(
|
|
3958
|
+
}(Ie)
|
|
3924
3959
|
), S;
|
|
3925
3960
|
(function(e) {
|
|
3926
3961
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3927
3962
|
})(S || (S = {}));
|
|
3928
|
-
function
|
|
3929
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3930
|
-
var
|
|
3931
|
-
return !
|
|
3963
|
+
function Ni(e) {
|
|
3964
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3965
|
+
var n = t[t.length - 1];
|
|
3966
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3932
3967
|
}, []);
|
|
3933
3968
|
}
|
|
3934
|
-
function
|
|
3969
|
+
function Ci(e) {
|
|
3935
3970
|
return typeof e == "function";
|
|
3936
3971
|
}
|
|
3937
|
-
function
|
|
3938
|
-
if (e.length === 1 &&
|
|
3972
|
+
function _e(e, t, r, n, i, o, s) {
|
|
3973
|
+
if (e.length === 1 && Bt(e[0]))
|
|
3939
3974
|
return [
|
|
3940
3975
|
{
|
|
3941
3976
|
type: S.literal,
|
|
3942
3977
|
value: e[0].value
|
|
3943
3978
|
}
|
|
3944
3979
|
];
|
|
3945
|
-
for (var a = [], u = 0,
|
|
3946
|
-
var
|
|
3947
|
-
if (
|
|
3980
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3981
|
+
var h = l[u];
|
|
3982
|
+
if (Bt(h)) {
|
|
3948
3983
|
a.push({
|
|
3949
3984
|
type: S.literal,
|
|
3950
|
-
value:
|
|
3985
|
+
value: h.value
|
|
3951
3986
|
});
|
|
3952
3987
|
continue;
|
|
3953
3988
|
}
|
|
3954
|
-
if (
|
|
3989
|
+
if (ri(h)) {
|
|
3955
3990
|
typeof o == "number" && a.push({
|
|
3956
3991
|
type: S.literal,
|
|
3957
|
-
value:
|
|
3992
|
+
value: r.getNumberFormat(t).format(o)
|
|
3958
3993
|
});
|
|
3959
3994
|
continue;
|
|
3960
3995
|
}
|
|
3961
|
-
var
|
|
3962
|
-
if (!(i &&
|
|
3963
|
-
throw new
|
|
3964
|
-
var
|
|
3965
|
-
if (
|
|
3966
|
-
(!
|
|
3967
|
-
type: typeof
|
|
3968
|
-
value:
|
|
3996
|
+
var f = h.value;
|
|
3997
|
+
if (!(i && f in i))
|
|
3998
|
+
throw new Li(f, s);
|
|
3999
|
+
var c = i[f];
|
|
4000
|
+
if (ti(h)) {
|
|
4001
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
4002
|
+
type: typeof c == "string" ? S.literal : S.object,
|
|
4003
|
+
value: c
|
|
3969
4004
|
});
|
|
3970
4005
|
continue;
|
|
3971
4006
|
}
|
|
3972
|
-
if (
|
|
3973
|
-
var
|
|
4007
|
+
if (hr(h)) {
|
|
4008
|
+
var d = typeof h.style == "string" ? n.date[h.style] : et(h.style) ? h.style.parsedOptions : void 0;
|
|
3974
4009
|
a.push({
|
|
3975
4010
|
type: S.literal,
|
|
3976
|
-
value:
|
|
4011
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3977
4012
|
});
|
|
3978
4013
|
continue;
|
|
3979
4014
|
}
|
|
3980
|
-
if (
|
|
3981
|
-
var
|
|
4015
|
+
if (cr(h)) {
|
|
4016
|
+
var d = typeof h.style == "string" ? n.time[h.style] : et(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3982
4017
|
a.push({
|
|
3983
4018
|
type: S.literal,
|
|
3984
|
-
value:
|
|
4019
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3985
4020
|
});
|
|
3986
4021
|
continue;
|
|
3987
4022
|
}
|
|
3988
|
-
if (
|
|
3989
|
-
var
|
|
3990
|
-
|
|
4023
|
+
if (lr(h)) {
|
|
4024
|
+
var d = typeof h.style == "string" ? n.number[h.style] : mr(h.style) ? h.style.parsedOptions : void 0;
|
|
4025
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3991
4026
|
type: S.literal,
|
|
3992
|
-
value:
|
|
4027
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3993
4028
|
});
|
|
3994
4029
|
continue;
|
|
3995
4030
|
}
|
|
3996
|
-
if (
|
|
3997
|
-
var
|
|
3998
|
-
if (!
|
|
3999
|
-
throw new
|
|
4000
|
-
var
|
|
4001
|
-
return
|
|
4031
|
+
if (dr(h)) {
|
|
4032
|
+
var p = h.children, m = h.value, _ = i[m];
|
|
4033
|
+
if (!Ci(_))
|
|
4034
|
+
throw new Ii(m, "function", s);
|
|
4035
|
+
var w = _e(p, t, r, n, i, o), P = _(w.map(function(T) {
|
|
4036
|
+
return T.value;
|
|
4002
4037
|
}));
|
|
4003
|
-
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(
|
|
4038
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(T) {
|
|
4004
4039
|
return {
|
|
4005
|
-
type: typeof
|
|
4006
|
-
value:
|
|
4040
|
+
type: typeof T == "string" ? S.literal : S.object,
|
|
4041
|
+
value: T
|
|
4007
4042
|
};
|
|
4008
4043
|
}));
|
|
4009
4044
|
}
|
|
4010
|
-
if (
|
|
4011
|
-
var
|
|
4012
|
-
if (!
|
|
4013
|
-
throw new
|
|
4014
|
-
a.push.apply(a,
|
|
4045
|
+
if (fr(h)) {
|
|
4046
|
+
var x = h.options[c] || h.options.other;
|
|
4047
|
+
if (!x)
|
|
4048
|
+
throw new Ct(h.value, c, Object.keys(h.options), s);
|
|
4049
|
+
a.push.apply(a, _e(x.value, t, r, n, i));
|
|
4015
4050
|
continue;
|
|
4016
4051
|
}
|
|
4017
|
-
if (
|
|
4018
|
-
var
|
|
4019
|
-
if (!
|
|
4052
|
+
if (pr(h)) {
|
|
4053
|
+
var x = h.options["=".concat(c)];
|
|
4054
|
+
if (!x) {
|
|
4020
4055
|
if (!Intl.PluralRules)
|
|
4021
|
-
throw new
|
|
4056
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
4022
4057
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4023
|
-
`,
|
|
4024
|
-
var I =
|
|
4025
|
-
|
|
4058
|
+
`, Q.MISSING_INTL_API, s);
|
|
4059
|
+
var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
4060
|
+
x = h.options[I] || h.options.other;
|
|
4026
4061
|
}
|
|
4027
|
-
if (!
|
|
4028
|
-
throw new
|
|
4029
|
-
a.push.apply(a,
|
|
4062
|
+
if (!x)
|
|
4063
|
+
throw new Ct(h.value, c, Object.keys(h.options), s);
|
|
4064
|
+
a.push.apply(a, _e(x.value, t, r, n, i, c - (h.offset || 0)));
|
|
4030
4065
|
continue;
|
|
4031
4066
|
}
|
|
4032
4067
|
}
|
|
4033
|
-
return
|
|
4068
|
+
return Ni(a);
|
|
4034
4069
|
}
|
|
4035
|
-
function
|
|
4036
|
-
return t ?
|
|
4037
|
-
return n
|
|
4070
|
+
function Mi(e, t) {
|
|
4071
|
+
return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4072
|
+
return r[n] = N(N({}, e[n]), t[n] || {}), r;
|
|
4038
4073
|
}, {})) : e;
|
|
4039
4074
|
}
|
|
4040
|
-
function
|
|
4041
|
-
return t ? Object.keys(e).reduce(function(
|
|
4042
|
-
return n
|
|
4043
|
-
},
|
|
4075
|
+
function $i(e, t) {
|
|
4076
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4077
|
+
return r[n] = Mi(e[n], t[n]), r;
|
|
4078
|
+
}, N({}, e)) : e;
|
|
4044
4079
|
}
|
|
4045
|
-
function
|
|
4080
|
+
function ke(e) {
|
|
4046
4081
|
return {
|
|
4047
4082
|
create: function() {
|
|
4048
4083
|
return {
|
|
4049
4084
|
get: function(t) {
|
|
4050
4085
|
return e[t];
|
|
4051
4086
|
},
|
|
4052
|
-
set: function(t,
|
|
4053
|
-
e[t] =
|
|
4087
|
+
set: function(t, r) {
|
|
4088
|
+
e[t] = r;
|
|
4054
4089
|
}
|
|
4055
4090
|
};
|
|
4056
4091
|
}
|
|
4057
4092
|
};
|
|
4058
4093
|
}
|
|
4059
|
-
function
|
|
4094
|
+
function Ri(e) {
|
|
4060
4095
|
return e === void 0 && (e = {
|
|
4061
4096
|
number: {},
|
|
4062
4097
|
dateTime: {},
|
|
4063
4098
|
pluralRules: {}
|
|
4064
4099
|
}), {
|
|
4065
|
-
getNumberFormat:
|
|
4066
|
-
for (var t,
|
|
4067
|
-
n
|
|
4068
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4100
|
+
getNumberFormat: Ge(function() {
|
|
4101
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4102
|
+
r[n] = arguments[n];
|
|
4103
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
4069
4104
|
}, {
|
|
4070
|
-
cache:
|
|
4071
|
-
strategy:
|
|
4105
|
+
cache: ke(e.number),
|
|
4106
|
+
strategy: Fe.variadic
|
|
4072
4107
|
}),
|
|
4073
|
-
getDateTimeFormat:
|
|
4074
|
-
for (var t,
|
|
4075
|
-
n
|
|
4076
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4108
|
+
getDateTimeFormat: Ge(function() {
|
|
4109
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4110
|
+
r[n] = arguments[n];
|
|
4111
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
4077
4112
|
}, {
|
|
4078
|
-
cache:
|
|
4079
|
-
strategy:
|
|
4113
|
+
cache: ke(e.dateTime),
|
|
4114
|
+
strategy: Fe.variadic
|
|
4080
4115
|
}),
|
|
4081
|
-
getPluralRules:
|
|
4082
|
-
for (var t,
|
|
4083
|
-
n
|
|
4084
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4116
|
+
getPluralRules: Ge(function() {
|
|
4117
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4118
|
+
r[n] = arguments[n];
|
|
4119
|
+
return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
|
|
4085
4120
|
}, {
|
|
4086
|
-
cache:
|
|
4087
|
-
strategy:
|
|
4121
|
+
cache: ke(e.pluralRules),
|
|
4122
|
+
strategy: Fe.variadic
|
|
4088
4123
|
})
|
|
4089
4124
|
};
|
|
4090
4125
|
}
|
|
4091
|
-
var
|
|
4126
|
+
var Ui = (
|
|
4092
4127
|
/** @class */
|
|
4093
4128
|
function() {
|
|
4094
|
-
function e(t,
|
|
4095
|
-
|
|
4129
|
+
function e(t, r, n, i) {
|
|
4130
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4096
4131
|
var o = this;
|
|
4097
4132
|
if (this.formatterCache = {
|
|
4098
4133
|
number: {},
|
|
4099
4134
|
dateTime: {},
|
|
4100
4135
|
pluralRules: {}
|
|
4101
4136
|
}, this.format = function(u) {
|
|
4102
|
-
var
|
|
4103
|
-
if (
|
|
4104
|
-
return
|
|
4105
|
-
var
|
|
4106
|
-
return !
|
|
4137
|
+
var l = o.formatToParts(u);
|
|
4138
|
+
if (l.length === 1)
|
|
4139
|
+
return l[0].value;
|
|
4140
|
+
var h = l.reduce(function(f, c) {
|
|
4141
|
+
return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4107
4142
|
}, []);
|
|
4108
|
-
return
|
|
4143
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
4109
4144
|
}, this.formatToParts = function(u) {
|
|
4110
|
-
return
|
|
4145
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
4111
4146
|
}, this.resolvedOptions = function() {
|
|
4112
4147
|
var u;
|
|
4113
4148
|
return {
|
|
@@ -4115,18 +4150,18 @@ var Mi = (
|
|
|
4115
4150
|
};
|
|
4116
4151
|
}, this.getAst = function() {
|
|
4117
4152
|
return o.ast;
|
|
4118
|
-
}, this.locales =
|
|
4153
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4119
4154
|
if (this.message = t, !e.__parse)
|
|
4120
4155
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4121
4156
|
var s = i || {};
|
|
4122
4157
|
s.formatters;
|
|
4123
|
-
var a =
|
|
4124
|
-
this.ast = e.__parse(t,
|
|
4158
|
+
var a = zn(s, ["formatters"]);
|
|
4159
|
+
this.ast = e.__parse(t, N(N({}, a), { locale: this.resolvedLocale }));
|
|
4125
4160
|
} else
|
|
4126
4161
|
this.ast = t;
|
|
4127
4162
|
if (!Array.isArray(this.ast))
|
|
4128
4163
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4129
|
-
this.formats =
|
|
4164
|
+
this.formats = $i(e.formats, n), this.formatters = i && i.formatters || Ri(this.formatterCache);
|
|
4130
4165
|
}
|
|
4131
4166
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4132
4167
|
get: function() {
|
|
@@ -4136,10 +4171,10 @@ var Mi = (
|
|
|
4136
4171
|
configurable: !0
|
|
4137
4172
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4138
4173
|
if (typeof Intl.Locale != "undefined") {
|
|
4139
|
-
var
|
|
4140
|
-
return
|
|
4174
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4175
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4141
4176
|
}
|
|
4142
|
-
}, e.__parse =
|
|
4177
|
+
}, e.__parse = Oi, e.formats = {
|
|
4143
4178
|
number: {
|
|
4144
4179
|
integer: {
|
|
4145
4180
|
maximumFractionDigits: 0
|
|
@@ -4200,113 +4235,113 @@ var Mi = (
|
|
|
4200
4235
|
}, e;
|
|
4201
4236
|
}()
|
|
4202
4237
|
);
|
|
4203
|
-
function
|
|
4238
|
+
function Di(e, t) {
|
|
4204
4239
|
if (t == null)
|
|
4205
4240
|
return;
|
|
4206
4241
|
if (t in e)
|
|
4207
4242
|
return e[t];
|
|
4208
|
-
const
|
|
4209
|
-
let
|
|
4210
|
-
for (let i = 0; i <
|
|
4211
|
-
if (typeof
|
|
4243
|
+
const r = t.split(".");
|
|
4244
|
+
let n = e;
|
|
4245
|
+
for (let i = 0; i < r.length; i++)
|
|
4246
|
+
if (typeof n == "object") {
|
|
4212
4247
|
if (i > 0) {
|
|
4213
|
-
const o =
|
|
4214
|
-
if (o in
|
|
4215
|
-
|
|
4248
|
+
const o = r.slice(i, r.length).join(".");
|
|
4249
|
+
if (o in n) {
|
|
4250
|
+
n = n[o];
|
|
4216
4251
|
break;
|
|
4217
4252
|
}
|
|
4218
4253
|
}
|
|
4219
|
-
|
|
4254
|
+
n = n[r[i]];
|
|
4220
4255
|
} else
|
|
4221
|
-
|
|
4222
|
-
return
|
|
4256
|
+
n = void 0;
|
|
4257
|
+
return n;
|
|
4223
4258
|
}
|
|
4224
|
-
const D = {},
|
|
4259
|
+
const D = {}, Gi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Sr = (e, t) => {
|
|
4225
4260
|
if (t == null)
|
|
4226
4261
|
return;
|
|
4227
4262
|
if (t in D && e in D[t])
|
|
4228
4263
|
return D[t][e];
|
|
4229
|
-
const
|
|
4230
|
-
for (let
|
|
4231
|
-
const i = n
|
|
4264
|
+
const r = Le(t);
|
|
4265
|
+
for (let n = 0; n < r.length; n++) {
|
|
4266
|
+
const i = r[n], o = ji(i, e);
|
|
4232
4267
|
if (o)
|
|
4233
|
-
return
|
|
4268
|
+
return Gi(e, t, o);
|
|
4234
4269
|
}
|
|
4235
4270
|
};
|
|
4236
|
-
let
|
|
4237
|
-
const
|
|
4238
|
-
function
|
|
4239
|
-
return
|
|
4271
|
+
let ht;
|
|
4272
|
+
const fe = Pe({});
|
|
4273
|
+
function Fi(e) {
|
|
4274
|
+
return ht[e] || null;
|
|
4240
4275
|
}
|
|
4241
|
-
function
|
|
4242
|
-
return e in
|
|
4276
|
+
function wr(e) {
|
|
4277
|
+
return e in ht;
|
|
4243
4278
|
}
|
|
4244
|
-
function
|
|
4245
|
-
if (!
|
|
4279
|
+
function ji(e, t) {
|
|
4280
|
+
if (!wr(e))
|
|
4246
4281
|
return null;
|
|
4247
|
-
const
|
|
4248
|
-
return
|
|
4282
|
+
const r = Fi(e);
|
|
4283
|
+
return Di(r, t);
|
|
4249
4284
|
}
|
|
4250
|
-
function
|
|
4285
|
+
function ki(e) {
|
|
4251
4286
|
if (e == null)
|
|
4252
4287
|
return;
|
|
4253
|
-
const t =
|
|
4254
|
-
for (let
|
|
4255
|
-
const
|
|
4256
|
-
if (
|
|
4257
|
-
return
|
|
4288
|
+
const t = Le(e);
|
|
4289
|
+
for (let r = 0; r < t.length; r++) {
|
|
4290
|
+
const n = t[r];
|
|
4291
|
+
if (wr(n))
|
|
4292
|
+
return n;
|
|
4258
4293
|
}
|
|
4259
4294
|
}
|
|
4260
|
-
function
|
|
4261
|
-
delete D[e],
|
|
4295
|
+
function Tr(e, ...t) {
|
|
4296
|
+
delete D[e], fe.update((r) => (r[e] = Wn.all([r[e] || {}, ...t]), r));
|
|
4262
4297
|
}
|
|
4263
|
-
|
|
4264
|
-
[
|
|
4298
|
+
Y(
|
|
4299
|
+
[fe],
|
|
4265
4300
|
([e]) => Object.keys(e)
|
|
4266
4301
|
);
|
|
4267
|
-
|
|
4268
|
-
const
|
|
4269
|
-
function
|
|
4270
|
-
|
|
4271
|
-
}
|
|
4272
|
-
function
|
|
4273
|
-
return
|
|
4274
|
-
}
|
|
4275
|
-
function
|
|
4276
|
-
return
|
|
4277
|
-
const
|
|
4278
|
-
return [t,
|
|
4302
|
+
fe.subscribe((e) => ht = e);
|
|
4303
|
+
const Ee = {};
|
|
4304
|
+
function Vi(e, t) {
|
|
4305
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4306
|
+
}
|
|
4307
|
+
function Hr(e) {
|
|
4308
|
+
return Ee[e];
|
|
4309
|
+
}
|
|
4310
|
+
function Xi(e) {
|
|
4311
|
+
return Le(e).map((t) => {
|
|
4312
|
+
const r = Hr(t);
|
|
4313
|
+
return [t, r ? [...r] : []];
|
|
4279
4314
|
}).filter(([, t]) => t.length > 0);
|
|
4280
4315
|
}
|
|
4281
|
-
function
|
|
4282
|
-
return e == null ? !1 :
|
|
4316
|
+
function st(e) {
|
|
4317
|
+
return e == null ? !1 : Le(e).some(
|
|
4283
4318
|
(t) => {
|
|
4284
|
-
var
|
|
4285
|
-
return (
|
|
4319
|
+
var r;
|
|
4320
|
+
return (r = Hr(t)) == null ? void 0 : r.size;
|
|
4286
4321
|
}
|
|
4287
4322
|
);
|
|
4288
4323
|
}
|
|
4289
|
-
function
|
|
4324
|
+
function Wi(e, t) {
|
|
4290
4325
|
return Promise.all(
|
|
4291
|
-
t.map((
|
|
4292
|
-
).then((
|
|
4293
|
-
}
|
|
4294
|
-
const
|
|
4295
|
-
function
|
|
4296
|
-
if (!
|
|
4297
|
-
return e in
|
|
4298
|
-
const t =
|
|
4299
|
-
return
|
|
4326
|
+
t.map((n) => (Vi(e, n), n().then((i) => i.default || i)))
|
|
4327
|
+
).then((n) => Tr(e, ...n));
|
|
4328
|
+
}
|
|
4329
|
+
const ne = {};
|
|
4330
|
+
function Br(e) {
|
|
4331
|
+
if (!st(e))
|
|
4332
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
4333
|
+
const t = Xi(e);
|
|
4334
|
+
return ne[e] = Promise.all(
|
|
4300
4335
|
t.map(
|
|
4301
|
-
([
|
|
4336
|
+
([r, n]) => Wi(r, n)
|
|
4302
4337
|
)
|
|
4303
4338
|
).then(() => {
|
|
4304
|
-
if (
|
|
4305
|
-
return
|
|
4306
|
-
delete
|
|
4307
|
-
}),
|
|
4339
|
+
if (st(e))
|
|
4340
|
+
return Br(e);
|
|
4341
|
+
delete ne[e];
|
|
4342
|
+
}), ne[e];
|
|
4308
4343
|
}
|
|
4309
|
-
const
|
|
4344
|
+
const zi = {
|
|
4310
4345
|
number: {
|
|
4311
4346
|
scientific: { notation: "scientific" },
|
|
4312
4347
|
engineering: { notation: "engineering" },
|
|
@@ -4335,198 +4370,198 @@ const ki = {
|
|
|
4335
4370
|
timeZoneName: "short"
|
|
4336
4371
|
}
|
|
4337
4372
|
}
|
|
4338
|
-
},
|
|
4373
|
+
}, Zi = {
|
|
4339
4374
|
fallbackLocale: null,
|
|
4340
4375
|
loadingDelay: 200,
|
|
4341
|
-
formats:
|
|
4376
|
+
formats: zi,
|
|
4342
4377
|
warnOnMissingMessages: !0,
|
|
4343
4378
|
handleMissingMessage: void 0,
|
|
4344
4379
|
ignoreTag: !0
|
|
4345
|
-
},
|
|
4346
|
-
function
|
|
4347
|
-
return
|
|
4348
|
-
}
|
|
4349
|
-
const
|
|
4350
|
-
var
|
|
4351
|
-
for (var
|
|
4352
|
-
|
|
4353
|
-
if (
|
|
4354
|
-
for (var
|
|
4355
|
-
|
|
4380
|
+
}, qi = Zi;
|
|
4381
|
+
function J() {
|
|
4382
|
+
return qi;
|
|
4383
|
+
}
|
|
4384
|
+
const Ve = Pe(!1);
|
|
4385
|
+
var Qi = Object.defineProperty, Ji = Object.defineProperties, Yi = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, Ki = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, to = (e, t) => {
|
|
4386
|
+
for (var r in t || (t = {}))
|
|
4387
|
+
Ki.call(t, r) && $t(e, r, t[r]);
|
|
4388
|
+
if (Mt)
|
|
4389
|
+
for (var r of Mt(t))
|
|
4390
|
+
eo.call(t, r) && $t(e, r, t[r]);
|
|
4356
4391
|
return e;
|
|
4357
|
-
},
|
|
4358
|
-
let
|
|
4359
|
-
const
|
|
4360
|
-
function
|
|
4361
|
-
return e.split("-").map((t,
|
|
4392
|
+
}, ro = (e, t) => Ji(e, Yi(t));
|
|
4393
|
+
let at;
|
|
4394
|
+
const He = Pe(null);
|
|
4395
|
+
function Rt(e) {
|
|
4396
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4362
4397
|
}
|
|
4363
|
-
function
|
|
4364
|
-
const
|
|
4365
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4398
|
+
function Le(e, t = J().fallbackLocale) {
|
|
4399
|
+
const r = Rt(e);
|
|
4400
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
|
|
4366
4401
|
}
|
|
4367
4402
|
function j() {
|
|
4368
|
-
return
|
|
4403
|
+
return at != null ? at : void 0;
|
|
4369
4404
|
}
|
|
4370
|
-
|
|
4371
|
-
|
|
4405
|
+
He.subscribe((e) => {
|
|
4406
|
+
at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4372
4407
|
});
|
|
4373
|
-
const
|
|
4374
|
-
if (e &&
|
|
4375
|
-
const { loadingDelay: t } =
|
|
4376
|
-
let
|
|
4377
|
-
return typeof window != "undefined" && j() != null && t ?
|
|
4378
|
-
() =>
|
|
4408
|
+
const no = (e) => {
|
|
4409
|
+
if (e && ki(e) && st(e)) {
|
|
4410
|
+
const { loadingDelay: t } = J();
|
|
4411
|
+
let r;
|
|
4412
|
+
return typeof window != "undefined" && j() != null && t ? r = window.setTimeout(
|
|
4413
|
+
() => Ve.set(!0),
|
|
4379
4414
|
t
|
|
4380
|
-
) :
|
|
4381
|
-
|
|
4415
|
+
) : Ve.set(!0), Br(e).then(() => {
|
|
4416
|
+
He.set(e);
|
|
4382
4417
|
}).finally(() => {
|
|
4383
|
-
clearTimeout(
|
|
4418
|
+
clearTimeout(r), Ve.set(!1);
|
|
4384
4419
|
});
|
|
4385
4420
|
}
|
|
4386
|
-
return
|
|
4387
|
-
},
|
|
4388
|
-
set:
|
|
4389
|
-
}),
|
|
4421
|
+
return He.set(e);
|
|
4422
|
+
}, K = ro(to({}, He), {
|
|
4423
|
+
set: no
|
|
4424
|
+
}), Ne = (e) => {
|
|
4390
4425
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4391
|
-
return (
|
|
4392
|
-
const i = JSON.stringify(
|
|
4393
|
-
return i in t ? t[i] : t[i] = e(
|
|
4426
|
+
return (n) => {
|
|
4427
|
+
const i = JSON.stringify(n);
|
|
4428
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4394
4429
|
};
|
|
4395
4430
|
};
|
|
4396
|
-
var
|
|
4397
|
-
for (var
|
|
4398
|
-
|
|
4399
|
-
if (
|
|
4400
|
-
for (var
|
|
4401
|
-
|
|
4431
|
+
var io = Object.defineProperty, Be = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4432
|
+
for (var r in t || (t = {}))
|
|
4433
|
+
Ar.call(t, r) && Ut(e, r, t[r]);
|
|
4434
|
+
if (Be)
|
|
4435
|
+
for (var r of Be(t))
|
|
4436
|
+
Pr.call(t, r) && Ut(e, r, t[r]);
|
|
4402
4437
|
return e;
|
|
4403
|
-
},
|
|
4404
|
-
var
|
|
4405
|
-
for (var
|
|
4406
|
-
|
|
4407
|
-
if (e != null &&
|
|
4408
|
-
for (var
|
|
4409
|
-
t.indexOf(
|
|
4410
|
-
return
|
|
4438
|
+
}, ee = (e, t) => {
|
|
4439
|
+
var r = {};
|
|
4440
|
+
for (var n in e)
|
|
4441
|
+
Ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4442
|
+
if (e != null && Be)
|
|
4443
|
+
for (var n of Be(e))
|
|
4444
|
+
t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
|
|
4445
|
+
return r;
|
|
4411
4446
|
};
|
|
4412
|
-
const
|
|
4413
|
-
const { formats:
|
|
4414
|
-
if (e in
|
|
4415
|
-
return
|
|
4447
|
+
const ae = (e, t) => {
|
|
4448
|
+
const { formats: r } = J();
|
|
4449
|
+
if (e in r && t in r[e])
|
|
4450
|
+
return r[e][t];
|
|
4416
4451
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4417
|
-
},
|
|
4452
|
+
}, oo = Ne(
|
|
4418
4453
|
(e) => {
|
|
4419
|
-
var t = e, { locale:
|
|
4420
|
-
if (
|
|
4454
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4455
|
+
if (r == null)
|
|
4421
4456
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4422
|
-
return
|
|
4457
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4423
4458
|
}
|
|
4424
|
-
),
|
|
4459
|
+
), so = Ne(
|
|
4425
4460
|
(e) => {
|
|
4426
|
-
var t = e, { locale:
|
|
4427
|
-
if (
|
|
4461
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4462
|
+
if (r == null)
|
|
4428
4463
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4429
|
-
return
|
|
4464
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4430
4465
|
}
|
|
4431
|
-
),
|
|
4466
|
+
), ao = Ne(
|
|
4432
4467
|
(e) => {
|
|
4433
|
-
var t = e, { locale:
|
|
4434
|
-
if (
|
|
4468
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4469
|
+
if (r == null)
|
|
4435
4470
|
throw new Error(
|
|
4436
4471
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4437
4472
|
);
|
|
4438
|
-
return
|
|
4473
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4439
4474
|
}
|
|
4440
|
-
),
|
|
4475
|
+
), uo = (e = {}) => {
|
|
4441
4476
|
var t = e, {
|
|
4442
|
-
locale:
|
|
4443
|
-
} = t,
|
|
4477
|
+
locale: r = j()
|
|
4478
|
+
} = t, n = ee(t, [
|
|
4444
4479
|
"locale"
|
|
4445
4480
|
]);
|
|
4446
|
-
return
|
|
4447
|
-
},
|
|
4481
|
+
return oo(ct({ locale: r }, n));
|
|
4482
|
+
}, lo = (e = {}) => {
|
|
4448
4483
|
var t = e, {
|
|
4449
|
-
locale:
|
|
4450
|
-
} = t,
|
|
4484
|
+
locale: r = j()
|
|
4485
|
+
} = t, n = ee(t, [
|
|
4451
4486
|
"locale"
|
|
4452
4487
|
]);
|
|
4453
|
-
return
|
|
4454
|
-
},
|
|
4488
|
+
return so(ct({ locale: r }, n));
|
|
4489
|
+
}, ho = (e = {}) => {
|
|
4455
4490
|
var t = e, {
|
|
4456
|
-
locale:
|
|
4457
|
-
} = t,
|
|
4491
|
+
locale: r = j()
|
|
4492
|
+
} = t, n = ee(t, [
|
|
4458
4493
|
"locale"
|
|
4459
4494
|
]);
|
|
4460
|
-
return
|
|
4461
|
-
},
|
|
4495
|
+
return ao(ct({ locale: r }, n));
|
|
4496
|
+
}, co = Ne(
|
|
4462
4497
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4463
|
-
(e, t = j()) => new
|
|
4464
|
-
ignoreTag:
|
|
4498
|
+
(e, t = j()) => new Ui(e, t, J().formats, {
|
|
4499
|
+
ignoreTag: J().ignoreTag
|
|
4465
4500
|
})
|
|
4466
|
-
),
|
|
4467
|
-
var
|
|
4501
|
+
), fo = (e, t = {}) => {
|
|
4502
|
+
var r, n, i, o;
|
|
4468
4503
|
let s = t;
|
|
4469
4504
|
typeof e == "object" && (s = e, e = s.id);
|
|
4470
4505
|
const {
|
|
4471
4506
|
values: a,
|
|
4472
4507
|
locale: u = j(),
|
|
4473
|
-
default:
|
|
4508
|
+
default: l
|
|
4474
4509
|
} = s;
|
|
4475
4510
|
if (u == null)
|
|
4476
4511
|
throw new Error(
|
|
4477
4512
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4478
4513
|
);
|
|
4479
|
-
let
|
|
4480
|
-
if (!
|
|
4481
|
-
|
|
4482
|
-
else if (typeof
|
|
4514
|
+
let h = Sr(e, u);
|
|
4515
|
+
if (!h)
|
|
4516
|
+
h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4517
|
+
else if (typeof h != "string")
|
|
4483
4518
|
return console.warn(
|
|
4484
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4485
|
-
),
|
|
4519
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4520
|
+
), h;
|
|
4486
4521
|
if (!a)
|
|
4487
|
-
return
|
|
4488
|
-
let
|
|
4522
|
+
return h;
|
|
4523
|
+
let f = h;
|
|
4489
4524
|
try {
|
|
4490
|
-
|
|
4491
|
-
} catch (
|
|
4492
|
-
|
|
4525
|
+
f = co(h, u).format(a);
|
|
4526
|
+
} catch (c) {
|
|
4527
|
+
c instanceof Error && console.warn(
|
|
4493
4528
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4494
|
-
|
|
4529
|
+
c.message
|
|
4495
4530
|
);
|
|
4496
4531
|
}
|
|
4497
|
-
return
|
|
4498
|
-
},
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
window.emWidgets = { topic:
|
|
4504
|
-
const
|
|
4505
|
-
function
|
|
4532
|
+
return f;
|
|
4533
|
+
}, po = (e, t) => ho(t).format(e), mo = (e, t) => lo(t).format(e), bo = (e, t) => uo(t).format(e), go = (e, t = j()) => Sr(e, t), yo = Y([K, fe], () => fo);
|
|
4534
|
+
Y([K], () => po);
|
|
4535
|
+
Y([K], () => mo);
|
|
4536
|
+
Y([K], () => bo);
|
|
4537
|
+
Y([K, fe], () => go);
|
|
4538
|
+
window.emWidgets = { topic: Pn };
|
|
4539
|
+
const es = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Or = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", ts = (e) => e.match(/CustomNative/i) ? "NativeApp" : Or(e) === "PC" ? "Desktop" : "Mobile";
|
|
4540
|
+
function Dt(e, t) {
|
|
4506
4541
|
if (e) {
|
|
4507
|
-
const
|
|
4508
|
-
|
|
4542
|
+
const r = document.createElement("style");
|
|
4543
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4509
4544
|
}
|
|
4510
4545
|
}
|
|
4511
|
-
function
|
|
4512
|
-
const
|
|
4513
|
-
fetch(
|
|
4546
|
+
function vo(e, t) {
|
|
4547
|
+
const r = new URL(t);
|
|
4548
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4514
4549
|
const i = document.createElement("style");
|
|
4515
|
-
i.innerHTML =
|
|
4516
|
-
}).catch((
|
|
4517
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4550
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4551
|
+
}).catch((n) => {
|
|
4552
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4518
4553
|
});
|
|
4519
4554
|
}
|
|
4520
|
-
function
|
|
4555
|
+
function _o(e, t, r) {
|
|
4521
4556
|
if (window.emMessageBus) {
|
|
4522
|
-
const
|
|
4557
|
+
const n = document.createElement("style");
|
|
4523
4558
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4524
|
-
|
|
4559
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4525
4560
|
});
|
|
4526
4561
|
}
|
|
4527
4562
|
}
|
|
4528
|
-
const
|
|
4529
|
-
const
|
|
4563
|
+
const Eo = (e, t = {}) => {
|
|
4564
|
+
const r = new CustomEvent("track-custom-event", {
|
|
4530
4565
|
detail: {
|
|
4531
4566
|
type: e,
|
|
4532
4567
|
data: t
|
|
@@ -4534,15 +4569,15 @@ const go = (e, t = {}) => {
|
|
|
4534
4569
|
bubbles: !0,
|
|
4535
4570
|
composed: !0
|
|
4536
4571
|
});
|
|
4537
|
-
document.dispatchEvent(
|
|
4572
|
+
document.dispatchEvent(r);
|
|
4538
4573
|
};
|
|
4539
|
-
function
|
|
4540
|
-
|
|
4574
|
+
function Gt(e, t) {
|
|
4575
|
+
Tr(e, t);
|
|
4541
4576
|
}
|
|
4542
|
-
function
|
|
4543
|
-
|
|
4577
|
+
function xo(e) {
|
|
4578
|
+
K.set(e);
|
|
4544
4579
|
}
|
|
4545
|
-
const
|
|
4580
|
+
const Ft = {
|
|
4546
4581
|
en: {
|
|
4547
4582
|
logoutButton: "Logout"
|
|
4548
4583
|
},
|
|
@@ -4577,42 +4612,42 @@ const Rt = {
|
|
|
4577
4612
|
logoutButton: "Logout"
|
|
4578
4613
|
}
|
|
4579
4614
|
};
|
|
4580
|
-
function
|
|
4581
|
-
|
|
4615
|
+
function So(e) {
|
|
4616
|
+
Vr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4582
4617
|
}
|
|
4583
|
-
function
|
|
4584
|
-
let t,
|
|
4618
|
+
function wo(e) {
|
|
4619
|
+
let t, r, n, i = (
|
|
4585
4620
|
/*$_*/
|
|
4586
4621
|
e[2]("logoutButton") + ""
|
|
4587
4622
|
), o, s, a;
|
|
4588
4623
|
return {
|
|
4589
4624
|
c() {
|
|
4590
|
-
t =
|
|
4625
|
+
t = C("div"), r = C("button"), n = C("span"), o = he(i), B(t, "class", "GeneralLogout");
|
|
4591
4626
|
},
|
|
4592
|
-
m(u,
|
|
4593
|
-
le(u, t,
|
|
4594
|
-
|
|
4627
|
+
m(u, l) {
|
|
4628
|
+
le(u, t, l), A(t, r), A(r, n), A(n, o), s || (a = qt(
|
|
4629
|
+
r,
|
|
4595
4630
|
"click",
|
|
4596
4631
|
/*click_handler_1*/
|
|
4597
4632
|
e[14]
|
|
4598
4633
|
), s = !0);
|
|
4599
4634
|
},
|
|
4600
|
-
p(u,
|
|
4601
|
-
|
|
4635
|
+
p(u, l) {
|
|
4636
|
+
l & /*$_*/
|
|
4602
4637
|
4 && i !== (i = /*$_*/
|
|
4603
|
-
u[2]("logoutButton") + "") &&
|
|
4638
|
+
u[2]("logoutButton") + "") && Qt(o, i);
|
|
4604
4639
|
},
|
|
4605
4640
|
d(u) {
|
|
4606
4641
|
u && F(t), s = !1, a();
|
|
4607
4642
|
}
|
|
4608
4643
|
};
|
|
4609
4644
|
}
|
|
4610
|
-
function
|
|
4611
|
-
let t,
|
|
4612
|
-
e[3] &&
|
|
4645
|
+
function To(e) {
|
|
4646
|
+
let t, r, n, i, o, s, a, u, l, h, f, c = !/*isMobile*/
|
|
4647
|
+
e[3] && Ho(e);
|
|
4613
4648
|
return {
|
|
4614
4649
|
c() {
|
|
4615
|
-
t =
|
|
4650
|
+
t = C("p"), r = C("span"), n = te("svg"), i = te("defs"), o = te("style"), s = he(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = te("path"), u = te("path"), l = Wr(), c && c.c(), B(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), B(u, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(u, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), B(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), B(n, "data-name", "Layer 1"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "viewBox", "0 0 150 150"), Zr(r, "width", /*isMobile*/
|
|
4616
4651
|
e[3] ? (
|
|
4617
4652
|
/*mediaQuery*/
|
|
4618
4653
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4621,63 +4656,63 @@ function xo(e) {
|
|
|
4621
4656
|
(e[4].matches && /*isMobile*/
|
|
4622
4657
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4623
4658
|
},
|
|
4624
|
-
m(
|
|
4625
|
-
le(
|
|
4659
|
+
m(d, p) {
|
|
4660
|
+
le(d, t, p), A(t, r), A(r, n), A(n, i), A(i, o), A(o, s), A(n, a), A(n, u), A(t, l), c && c.m(t, null), h || (f = qt(
|
|
4626
4661
|
t,
|
|
4627
4662
|
"click",
|
|
4628
4663
|
/*click_handler*/
|
|
4629
4664
|
e[13]
|
|
4630
|
-
),
|
|
4665
|
+
), h = !0);
|
|
4631
4666
|
},
|
|
4632
|
-
p(
|
|
4667
|
+
p(d, p) {
|
|
4633
4668
|
/*isMobile*/
|
|
4634
|
-
|
|
4669
|
+
d[3] || c.p(d, p);
|
|
4635
4670
|
},
|
|
4636
|
-
d(
|
|
4637
|
-
|
|
4671
|
+
d(d) {
|
|
4672
|
+
d && F(t), c && c.d(), h = !1, f();
|
|
4638
4673
|
}
|
|
4639
4674
|
};
|
|
4640
4675
|
}
|
|
4641
|
-
function
|
|
4642
|
-
let t,
|
|
4676
|
+
function Ho(e) {
|
|
4677
|
+
let t, r = (
|
|
4643
4678
|
/*$_*/
|
|
4644
4679
|
e[2]("logoutButton") + ""
|
|
4645
|
-
),
|
|
4680
|
+
), n;
|
|
4646
4681
|
return {
|
|
4647
4682
|
c() {
|
|
4648
|
-
t =
|
|
4683
|
+
t = C("span"), n = he(r), B(t, "class", "PlayerLogoutText");
|
|
4649
4684
|
},
|
|
4650
4685
|
m(i, o) {
|
|
4651
|
-
le(i, t, o), A(t,
|
|
4686
|
+
le(i, t, o), A(t, n);
|
|
4652
4687
|
},
|
|
4653
4688
|
p(i, o) {
|
|
4654
4689
|
o & /*$_*/
|
|
4655
|
-
4 &&
|
|
4656
|
-
i[2]("logoutButton") + "") &&
|
|
4690
|
+
4 && r !== (r = /*$_*/
|
|
4691
|
+
i[2]("logoutButton") + "") && Qt(n, r);
|
|
4657
4692
|
},
|
|
4658
4693
|
d(i) {
|
|
4659
4694
|
i && F(t);
|
|
4660
4695
|
}
|
|
4661
4696
|
};
|
|
4662
4697
|
}
|
|
4663
|
-
function
|
|
4698
|
+
function Bo(e) {
|
|
4664
4699
|
let t;
|
|
4665
|
-
function
|
|
4700
|
+
function r(o, s) {
|
|
4666
4701
|
return (
|
|
4667
4702
|
/*buttonlocation*/
|
|
4668
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4703
|
+
o[0] === "PlayerAccountMenu" ? To : wo
|
|
4669
4704
|
);
|
|
4670
4705
|
}
|
|
4671
|
-
let
|
|
4706
|
+
let n = r(e), i = n(e);
|
|
4672
4707
|
return {
|
|
4673
4708
|
c() {
|
|
4674
|
-
t =
|
|
4709
|
+
t = C("div"), i.c();
|
|
4675
4710
|
},
|
|
4676
4711
|
m(o, s) {
|
|
4677
4712
|
le(o, t, s), i.m(t, null), e[15](t);
|
|
4678
4713
|
},
|
|
4679
4714
|
p(o, [s]) {
|
|
4680
|
-
|
|
4715
|
+
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4681
4716
|
},
|
|
4682
4717
|
i: H,
|
|
4683
4718
|
o: H,
|
|
@@ -4686,78 +4721,78 @@ function So(e) {
|
|
|
4686
4721
|
}
|
|
4687
4722
|
};
|
|
4688
4723
|
}
|
|
4689
|
-
function
|
|
4690
|
-
let
|
|
4691
|
-
|
|
4692
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: u } = t, { clientstyling:
|
|
4693
|
-
const
|
|
4694
|
-
fetch(
|
|
4695
|
-
Object.keys(U).forEach((
|
|
4696
|
-
|
|
4724
|
+
function Ao(e, t, r) {
|
|
4725
|
+
let n;
|
|
4726
|
+
Fr(e, yo, (y) => r(2, n = y));
|
|
4727
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c = "", d = !1, p, m = window.navigator.userAgent, _ = Or(m) !== "PC";
|
|
4728
|
+
const w = window.matchMedia("(min-width: 768px)"), P = () => {
|
|
4729
|
+
fetch(f).then((U) => U.json()).then((U) => {
|
|
4730
|
+
Object.keys(U).forEach((Ce) => {
|
|
4731
|
+
Gt(Ce, U[Ce]);
|
|
4697
4732
|
});
|
|
4698
4733
|
}).catch((U) => {
|
|
4699
4734
|
console.log(U);
|
|
4700
4735
|
});
|
|
4701
4736
|
};
|
|
4702
|
-
Object.keys(
|
|
4703
|
-
|
|
4737
|
+
Object.keys(Ft).forEach((y) => {
|
|
4738
|
+
Gt(y, Ft[y]);
|
|
4704
4739
|
});
|
|
4705
|
-
const
|
|
4706
|
-
let
|
|
4707
|
-
|
|
4708
|
-
let U = { method: "DELETE", headers:
|
|
4709
|
-
fetch(`${i}/v1/player/session/player`, U).then((
|
|
4710
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4740
|
+
const x = () => {
|
|
4741
|
+
let y = new Headers();
|
|
4742
|
+
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4743
|
+
let U = { method: "DELETE", headers: y };
|
|
4744
|
+
fetch(`${i}/v1/player/session/player`, U).then((Ce) => {
|
|
4745
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Eo("logged_out", {});
|
|
4711
4746
|
});
|
|
4712
|
-
}, I = () => (i || (
|
|
4713
|
-
|
|
4747
|
+
}, I = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(c)), d), T = () => {
|
|
4748
|
+
xo(a);
|
|
4714
4749
|
};
|
|
4715
|
-
|
|
4750
|
+
rn(() => () => {
|
|
4716
4751
|
});
|
|
4717
|
-
const R = () =>
|
|
4718
|
-
function
|
|
4719
|
-
|
|
4720
|
-
|
|
4752
|
+
const R = () => x(), pe = () => x();
|
|
4753
|
+
function Lr(y) {
|
|
4754
|
+
Xe[y ? "unshift" : "push"](() => {
|
|
4755
|
+
p = y, r(1, p);
|
|
4721
4756
|
});
|
|
4722
4757
|
}
|
|
4723
|
-
return e.$$set = (
|
|
4724
|
-
"endpoint" in
|
|
4758
|
+
return e.$$set = (y) => {
|
|
4759
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, u = y.mbsource), "clientstyling" in y && r(10, l = y.clientstyling), "clientstylingurl" in y && r(11, h = y.clientstylingurl), "translationurl" in y && r(12, f = y.translationurl);
|
|
4725
4760
|
}, e.$$.update = () => {
|
|
4726
4761
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4727
4762
|
193 && i && o && s && I(), e.$$.dirty & /*lang*/
|
|
4728
|
-
256 && a &&
|
|
4729
|
-
1026 &&
|
|
4730
|
-
1026 &&
|
|
4731
|
-
2050 &&
|
|
4732
|
-
514 && u &&
|
|
4733
|
-
4096 &&
|
|
4763
|
+
256 && a && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4764
|
+
1026 && l && p && Dt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4765
|
+
1026 && l && p && Dt(p, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4766
|
+
2050 && h && p && vo(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4767
|
+
514 && u && p && _o(p, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4768
|
+
4096 && f && P();
|
|
4734
4769
|
}, [
|
|
4735
4770
|
s,
|
|
4736
|
-
|
|
4737
|
-
|
|
4771
|
+
p,
|
|
4772
|
+
n,
|
|
4773
|
+
_,
|
|
4774
|
+
w,
|
|
4738
4775
|
x,
|
|
4739
|
-
T,
|
|
4740
|
-
E,
|
|
4741
4776
|
i,
|
|
4742
4777
|
o,
|
|
4743
4778
|
a,
|
|
4744
4779
|
u,
|
|
4745
|
-
h,
|
|
4746
4780
|
l,
|
|
4747
|
-
|
|
4781
|
+
h,
|
|
4782
|
+
f,
|
|
4748
4783
|
R,
|
|
4749
|
-
|
|
4750
|
-
|
|
4784
|
+
pe,
|
|
4785
|
+
Lr
|
|
4751
4786
|
];
|
|
4752
4787
|
}
|
|
4753
|
-
class
|
|
4788
|
+
class Ir extends dn {
|
|
4754
4789
|
constructor(t) {
|
|
4755
|
-
super(),
|
|
4790
|
+
super(), fn(
|
|
4756
4791
|
this,
|
|
4757
4792
|
t,
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4793
|
+
Ao,
|
|
4794
|
+
Bo,
|
|
4795
|
+
kt,
|
|
4761
4796
|
{
|
|
4762
4797
|
endpoint: 6,
|
|
4763
4798
|
session: 7,
|
|
@@ -4768,7 +4803,7 @@ class An extends lr {
|
|
|
4768
4803
|
clientstylingurl: 11,
|
|
4769
4804
|
translationurl: 12
|
|
4770
4805
|
},
|
|
4771
|
-
|
|
4806
|
+
So
|
|
4772
4807
|
);
|
|
4773
4808
|
}
|
|
4774
4809
|
get endpoint() {
|
|
@@ -4820,72 +4855,72 @@ class An extends lr {
|
|
|
4820
4855
|
this.$$set({ translationurl: t }), L();
|
|
4821
4856
|
}
|
|
4822
4857
|
}
|
|
4823
|
-
|
|
4824
|
-
const
|
|
4858
|
+
pn(Ir, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4859
|
+
const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4825
4860
|
__proto__: null,
|
|
4826
|
-
default:
|
|
4861
|
+
default: Ir
|
|
4827
4862
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4828
4863
|
export {
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4864
|
+
K as $,
|
|
4865
|
+
pn as A,
|
|
4866
|
+
yo as B,
|
|
4867
|
+
fe as C,
|
|
4868
|
+
ts as D,
|
|
4869
|
+
zo as E,
|
|
4870
|
+
Uo as F,
|
|
4871
|
+
$o as G,
|
|
4872
|
+
Io as H,
|
|
4873
|
+
Qo as I,
|
|
4874
|
+
an as J,
|
|
4875
|
+
No as K,
|
|
4876
|
+
Co as L,
|
|
4877
|
+
Lo as M,
|
|
4878
|
+
Do as N,
|
|
4879
|
+
Yo as O,
|
|
4880
|
+
Ro as P,
|
|
4881
|
+
Xo as Q,
|
|
4882
|
+
jo as R,
|
|
4883
|
+
dn as S,
|
|
4884
|
+
Vo as T,
|
|
4885
|
+
ue as U,
|
|
4886
|
+
ko as V,
|
|
4887
|
+
we as W,
|
|
4888
|
+
es as X,
|
|
4889
|
+
Mo as Y,
|
|
4890
|
+
Zr as Z,
|
|
4891
|
+
qo as _,
|
|
4892
|
+
Tr as a,
|
|
4893
|
+
Zo as a0,
|
|
4894
|
+
Oo as a1,
|
|
4895
|
+
Ur as a2,
|
|
4896
|
+
Jo as a3,
|
|
4897
|
+
In as a4,
|
|
4898
|
+
Ko as a5,
|
|
4899
|
+
Fo as a6,
|
|
4900
|
+
rs as a7,
|
|
4901
|
+
Vr as b,
|
|
4902
|
+
Qt as c,
|
|
4903
|
+
F as d,
|
|
4904
|
+
Go as e,
|
|
4870
4905
|
L as f,
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4906
|
+
le as g,
|
|
4907
|
+
A as h,
|
|
4908
|
+
fn as i,
|
|
4909
|
+
C as j,
|
|
4910
|
+
Wr as k,
|
|
4911
|
+
qt as l,
|
|
4912
|
+
he as m,
|
|
4913
|
+
H as n,
|
|
4914
|
+
B as o,
|
|
4915
|
+
Fr as p,
|
|
4916
|
+
Or as q,
|
|
4882
4917
|
G as r,
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4918
|
+
kt as s,
|
|
4919
|
+
Wo as t,
|
|
4920
|
+
rn as u,
|
|
4921
|
+
te as v,
|
|
4922
|
+
Xe as w,
|
|
4923
|
+
Dt as x,
|
|
4924
|
+
vo as y,
|
|
4925
|
+
_o as z
|
|
4891
4926
|
};
|