@everymatrix/player-account-controller-nd 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-BqarYaGX.js → GeneralLogout-D_LZ6noj.js} +1474 -1439
- package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
- package/components/{GeneralLogout-DpRb1GKt.js → GeneralLogout-PryurO1h.js} +1493 -1458
- package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-CZ-2Eo65.js → PlayerAccountBettingHistory-BzAXq1xX.js} +27 -27
- package/components/{PlayerAccountBettingHistory-DRNj2_nh.js → PlayerAccountBettingHistory-CwTEYOIN.js} +27 -27
- package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CS2Ou41a.js → PlayerAccountBiometrics-CtLvJg_Q.js} +22 -22
- package/components/{PlayerAccountBiometrics-Cp02JZ-p.js → PlayerAccountBiometrics-DIkqSnzX.js} +22 -22
- package/components/{PlayerAccountClosureNd-BDf6ZV_O.js → PlayerAccountClosureNd-7SyXUtdN.js} +17 -17
- package/components/{PlayerAccountClosureNd-DTSPR235.js → PlayerAccountClosureNd-Byw-X8Sr.js} +17 -17
- package/components/{PlayerAccountClosureNd-CEw0GMdr.cjs → PlayerAccountClosureNd-WqmFJkpU.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-B290RGZ4.js → PlayerAccountControllerNd-C4fyqqh1.js} +1413 -1265
- package/components/{PlayerAccountControllerNd-D_OA5Wau.js → PlayerAccountControllerNd-Dwdl_p1l.js} +1412 -1264
- package/components/PlayerAccountControllerNd-zBnRxjjD.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-DYeE-UoB.js → PlayerAccountGamingLimits-Bj6iDB2S.js} +19 -19
- package/components/{PlayerAccountGamingLimits-Dj1vdgsP.js → PlayerAccountGamingLimits-DxoR6Rl0.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-9Smxn0Eo.js → PlayerAccountGamingLimitsConfirmationModal-BzaZH1VM.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BKE3chFw.js → PlayerAccountGamingLimitsConfirmationModal-CxFJV4Qq.js} +53 -53
- package/components/PlayerAccountGamingLimitsGroupEdit-5Xl-352p.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-CYeY3dwe.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsHistory2Nd-B1bxRx8n.js → PlayerAccountGamingLimitsHistory2Nd-DrMT268T.js} +192 -192
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CyUmcHfd.cjs → PlayerAccountGamingLimitsHistory2Nd-juZ45FBC.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BWUzYYof.js → PlayerAccountGamingLimitsHistory2Nd-p3iqTl1u.js} +199 -199
- package/components/{PlayerAccountGamingLimitsInfoCard-n38U4Bet.js → PlayerAccountGamingLimitsInfoCard-B-8AhoxC.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-Cu4_dbfd.js → PlayerAccountGamingLimitsInfoCard-DSLO6bv_.js} +80 -80
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-P6QYtcDU.js → PlayerAccountGamingLimitsPage2Gm16Nd-Cp0HPknx.js} +91 -91
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BPahpiGc.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-D0j9FESV.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B0YXR_Gq.js → PlayerAccountGamingLimitsPage2Gm16Nd-JTp7ykpl.js} +618 -618
- package/components/{PlayerAccountGamingLimitsPopup-Chfup4AC.js → PlayerAccountGamingLimitsPopup-B5CoTG_T.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-D3tfs8br.js → PlayerAccountGamingLimitsPopup-CzDFUbRs.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-Lpnlu5qV.js → PlayerAccountGamingLimitsWrapper2Nd-BEi1Ax2s.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BNIOS6YH.cjs → PlayerAccountGamingLimitsWrapper2Nd-D6DATRJZ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DrBzSlfn.js → PlayerAccountGamingLimitsWrapper2Nd-DnzmU3uL.js} +36 -36
- package/components/{PlayerAccountGeneralConfirmationModal-C9sZnKk-.js → PlayerAccountGeneralConfirmationModal-BBveBuYk.js} +100 -105
- package/components/{PlayerAccountGeneralConfirmationModal-CzWW7TO1.js → PlayerAccountGeneralConfirmationModal-DFj-HuBM.js} +100 -105
- package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
- package/components/{PlayerAccountMenuNd-BMezijtf.cjs → PlayerAccountMenuNd-BFdU3ZXb.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-B14HHDMC.js → PlayerAccountMenuNd-Cs9UjL2S.js} +29 -29
- package/components/{PlayerAccountMenuNd-CGHNQ9Ia.js → PlayerAccountMenuNd-Cx7Fxjin.js} +29 -29
- package/components/{PlayerAccountModal-CNPgYrpB.js → PlayerAccountModal-DHs1T-B4.js} +44 -44
- package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
- package/components/{PlayerAccountModal-NKWbQg0Z.js → PlayerAccountModal-iZqtQZF3.js} +44 -44
- package/components/{PlayerAccountNotifications-Um7wlaR9.js → PlayerAccountNotifications-BjAtYQls.js} +120 -120
- package/components/{PlayerAccountNotifications-BciDzDyI.js → PlayerAccountNotifications-bjLmyXO3.js} +35 -35
- package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-CsV5cZJ7.js → PlayerAccountProductRestriction-ESKHafqp.js} +2241 -2215
- package/components/{PlayerAccountProductRestriction-D8hGhkip.js → PlayerAccountProductRestriction-h9nnGXrP.js} +2228 -2202
- package/components/{PlayerAccountProductRestriction-DWcq863g.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +271 -271
- package/components/{PlayerAccountSelfExclusionNd-CkhmY4v6.js → PlayerAccountSelfExclusionNd-9tdRb-BD.js} +906 -908
- package/components/{PlayerAccountSelfExclusionNd-Dxhpsh1V.js → PlayerAccountSelfExclusionNd-BQlI8ffc.js} +1204 -1206
- package/components/{PlayerAccountSelfExclusionNd-DA8DdIps.cjs → PlayerAccountSelfExclusionNd-BxnljuoQ.cjs} +155 -155
- package/components/{PlayerAccountTimeout-CK_vb2Rd.cjs → PlayerAccountTimeout-6ruoWoF3.cjs} +1 -1
- package/components/{PlayerAccountTimeout-DWrpBYDF.js → PlayerAccountTimeout-Bf9hZOsd.js} +103 -103
- package/components/{PlayerAccountTimeout-qUMzgfPL.js → PlayerAccountTimeout-CZR3PPPV.js} +103 -103
- package/components/{PlayerAccountTransactionsHistory-YXxnxAQo.js → PlayerAccountTransactionsHistory-CLGmdqFi.js} +56 -56
- package/components/{PlayerAccountTransactionsHistory-DUUcK6v0.cjs → PlayerAccountTransactionsHistory-CRmQjcHX.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-Dvj8Arct.js → PlayerAccountTransactionsHistory-CtyhdBep.js} +56 -56
- package/components/{PlayerActiveBonuses-rd6l2Hsn.js → PlayerActiveBonuses-CD7vVwcl.js} +497 -467
- package/components/{PlayerActiveBonuses-BxaW95IK.js → PlayerActiveBonuses-CfJuOJRv.js} +490 -460
- package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
- package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
- package/components/{PlayerBonusCard-DIuiutMI.js → PlayerBonusCard-CLcU7jvi.js} +207 -191
- package/components/{PlayerBonusCard-O-ukO4ru.js → PlayerBonusCard-DqH1t5fZ.js} +207 -191
- package/components/PlayerBonusHistory-BBM_Ee_C.js +1051 -0
- package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
- package/components/PlayerBonusHistory-DtPqQdZo.js +1040 -0
- package/components/{PlayerChangePasswordNd-1bGRcLqZ.js → PlayerChangePasswordNd-B0W5bdN2.js} +71 -71
- package/components/{PlayerChangePasswordNd-DCg61OgS.js → PlayerChangePasswordNd-B0yPdyGM.js} +71 -71
- package/components/{PlayerChangePasswordNd-CjKqxbi8.cjs → PlayerChangePasswordNd-DEzeq-CF.cjs} +1 -1
- package/components/{PlayerDeposit-odz0L-Xa.js → PlayerDeposit-CHnzNVZy.js} +29 -29
- package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
- package/components/{PlayerDeposit-CwClAkf8.js → PlayerDeposit-N7o3ip4d.js} +29 -29
- package/components/PlayerGamingHistory-COsI7V9y.js +1016 -0
- package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
- package/components/{PlayerGamingHistory-B5lPYVlE.js → PlayerGamingHistory-DlQpmkPh.js} +472 -456
- package/components/{PlayerPendingWithdrawals-WueprUX6.js → PlayerPendingWithdrawals-B2WyLuNV.js} +26 -26
- package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-DSZjjRc5.js → PlayerPendingWithdrawals-CRRuYNXr.js} +26 -26
- package/components/{PlayerProfileInfo-ZyRI38hk.js → PlayerProfileInfo-Cnrcnxn9.js} +120 -120
- package/components/{PlayerProfileInfo-CQWJWCmN.cjs → PlayerProfileInfo-DcmY9plr.cjs} +1 -1
- package/components/{PlayerProfileInfo-x9MQyKin.js → PlayerProfileInfo-yVopMUMB.js} +116 -116
- package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
- package/components/{PlayerRealityCheck-Cvp1LCTw.js → PlayerRealityCheck-C7EUl18t.js} +44 -44
- package/components/{PlayerRealityCheck-BB6ql_la.js → PlayerRealityCheck-RsT9a67Q.js} +45 -45
- package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
- package/components/{PlayerTransactionHistory-B-WizKVy.js → PlayerTransactionHistory-BQlWb-B9.js} +19 -19
- package/components/{PlayerTransactionHistory-OP187htZ.js → PlayerTransactionHistory-DyBRNwAw.js} +19 -19
- package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
- package/components/{PlayerWithdrawal-5dv65FN3.js → PlayerWithdrawal-C6_CSTeL.js} +19 -19
- package/components/{PlayerWithdrawal-Cmns8eAn.js → PlayerWithdrawal-CgR0BwqA.js} +19 -19
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.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/PlayerAccountControllerNd-DkVyWe_r.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-CmrrVg_q.js +0 -2893
- package/components/PlayerAccountGamingLimitsGroupEdit-IS7pwiyD.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-B6_Qlsz7.js +0 -985
- package/components/PlayerBonusHistory-BAFl02wK.cjs +0 -1
- package/components/PlayerBonusHistory-BrGDpOUK.js +0 -986
- package/components/PlayerGamingHistory-BMqF0jZ1.cjs +0 -1
- package/components/PlayerGamingHistory-DMzWvxJW.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,60 +1,60 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
for (const
|
|
6
|
-
e[
|
|
3
|
+
const Br = (e) => e;
|
|
4
|
+
function Ar(e, t) {
|
|
5
|
+
for (const r in t)
|
|
6
|
+
e[r] = t[r];
|
|
7
7
|
return (
|
|
8
8
|
/** @type {T & S} */
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $t(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ht() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function D(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach($t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ae(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Rt(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let pe;
|
|
28
|
+
function go(e, t) {
|
|
29
|
+
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Pr(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ut(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
|
-
for (const
|
|
37
|
-
|
|
36
|
+
for (const n of t)
|
|
37
|
+
n(void 0);
|
|
38
38
|
return H;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const r = e.subscribe(...t);
|
|
41
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function Or(e, t, r) {
|
|
44
|
+
e.$$.on_destroy.push(Ut(t, r));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function vo(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Dt(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] &&
|
|
52
|
+
function Dt(e, t, r, n) {
|
|
53
|
+
return e[1] && n ? Ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (e[2] &&
|
|
57
|
-
const i = e[2](r
|
|
55
|
+
function _o(e, t, r, n) {
|
|
56
|
+
if (e[2] && n) {
|
|
57
|
+
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
@@ -67,40 +67,40 @@ function bo(e, t, n, r) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Eo(e, t, r, n, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const a =
|
|
72
|
+
const a = Dt(t, r, n, o);
|
|
73
73
|
e.p(a, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function xo(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
|
-
const t = [],
|
|
79
|
-
for (let
|
|
80
|
-
t[
|
|
78
|
+
const t = [], r = e.ctx.length / 32;
|
|
79
|
+
for (let n = 0; n < r; n++)
|
|
80
|
+
t[n] = -1;
|
|
81
81
|
return t;
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function So(e) {
|
|
86
86
|
return e ?? "";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return e &&
|
|
88
|
+
function wo(e) {
|
|
89
|
+
return e && ae(e.destroy) ? e.destroy : H;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
let
|
|
91
|
+
const Gt = typeof window < "u";
|
|
92
|
+
let Ir = Gt ? () => window.performance.now() : () => Date.now(), st = Gt ? (e) => requestAnimationFrame(e) : H;
|
|
93
93
|
const X = /* @__PURE__ */ new Set();
|
|
94
|
-
function
|
|
94
|
+
function Ft(e) {
|
|
95
95
|
X.forEach((t) => {
|
|
96
96
|
t.c(e) || (X.delete(t), t.f());
|
|
97
|
-
}), X.size !== 0 &&
|
|
97
|
+
}), X.size !== 0 && st(Ft);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Lr(e) {
|
|
100
100
|
let t;
|
|
101
|
-
return X.size === 0 &&
|
|
102
|
-
promise: new Promise((
|
|
103
|
-
X.add(t = { c: e, f:
|
|
101
|
+
return X.size === 0 && st(Ft), {
|
|
102
|
+
promise: new Promise((r) => {
|
|
103
|
+
X.add(t = { c: e, f: r });
|
|
104
104
|
}),
|
|
105
105
|
abort() {
|
|
106
106
|
X.delete(t);
|
|
@@ -110,14 +110,14 @@ function Pn(e) {
|
|
|
110
110
|
function A(e, t) {
|
|
111
111
|
e.appendChild(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
116
|
-
const i =
|
|
117
|
-
i.id = t, i.textContent =
|
|
113
|
+
function Nr(e, t, r) {
|
|
114
|
+
const n = at(e);
|
|
115
|
+
if (!n.getElementById(t)) {
|
|
116
|
+
const i = N("style");
|
|
117
|
+
i.id = t, i.textContent = r, jt(n, i);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function at(e) {
|
|
121
121
|
if (!e)
|
|
122
122
|
return document;
|
|
123
123
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -127,339 +127,339 @@ function nt(e) {
|
|
|
127
127
|
t
|
|
128
128
|
) : e.ownerDocument;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const t =
|
|
132
|
-
return t.textContent = "/* empty */",
|
|
130
|
+
function Cr(e) {
|
|
131
|
+
const t = N("style");
|
|
132
|
+
return t.textContent = "/* empty */", jt(at(e), t), t.sheet;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function jt(e, t) {
|
|
135
135
|
return A(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
e.insertBefore(t,
|
|
141
|
+
function ue(e, t, r) {
|
|
142
|
+
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
144
|
function G(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
for (let
|
|
149
|
-
e[
|
|
147
|
+
function To(e, t) {
|
|
148
|
+
for (let r = 0; r < e.length; r += 1)
|
|
149
|
+
e[r] && e[r].d(t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function N(e) {
|
|
152
152
|
return document.createElement(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function ee(e) {
|
|
155
155
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
156
|
}
|
|
157
157
|
function le(e) {
|
|
158
158
|
return document.createTextNode(e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Mr() {
|
|
161
161
|
return le(" ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ho() {
|
|
164
164
|
return le("");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return e.addEventListener(t,
|
|
166
|
+
function kt(e, t, r, n) {
|
|
167
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Bo(e) {
|
|
170
170
|
return function(t) {
|
|
171
171
|
return t.preventDefault(), e.call(this, t);
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function B(e, t,
|
|
175
|
-
|
|
174
|
+
function B(e, t, r) {
|
|
175
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const
|
|
179
|
-
|
|
177
|
+
function Ao(e, t, r) {
|
|
178
|
+
const n = t.toLowerCase();
|
|
179
|
+
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);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Po(e) {
|
|
182
182
|
let t;
|
|
183
183
|
return {
|
|
184
184
|
/* push */
|
|
185
|
-
p(...
|
|
186
|
-
t =
|
|
185
|
+
p(...r) {
|
|
186
|
+
t = r, t.forEach((n) => e.push(n));
|
|
187
187
|
},
|
|
188
188
|
/* remove */
|
|
189
189
|
r() {
|
|
190
|
-
t.forEach((
|
|
190
|
+
t.forEach((r) => e.splice(e.indexOf(r), 1));
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Oo(e) {
|
|
195
195
|
return e === "" ? null : +e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function $r(e) {
|
|
198
198
|
return Array.from(e.childNodes);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Vt(e, t) {
|
|
201
201
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
202
202
|
t);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Io(e, t) {
|
|
205
205
|
e.value = t ?? "";
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function Rr(e, t, r, n) {
|
|
208
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
for (let
|
|
212
|
-
const i = e.options[
|
|
210
|
+
function Lo(e, t, r) {
|
|
211
|
+
for (let n = 0; n < e.options.length; n += 1) {
|
|
212
|
+
const i = e.options[n];
|
|
213
213
|
if (i.__value === t) {
|
|
214
214
|
i.selected = !0;
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
(!
|
|
218
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function No(e) {
|
|
221
221
|
const t = e.querySelector(":checked");
|
|
222
222
|
return t && t.__value;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
e.classList.toggle(t, !!
|
|
224
|
+
function Co(e, t, r) {
|
|
225
|
+
e.classList.toggle(t, !!r);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Ur(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Dr(e) {
|
|
231
231
|
const t = {};
|
|
232
232
|
return e.childNodes.forEach(
|
|
233
233
|
/** @param {Element} node */
|
|
234
|
-
(
|
|
235
|
-
t[
|
|
234
|
+
(r) => {
|
|
235
|
+
t[r.slot || "default"] = !0;
|
|
236
236
|
}
|
|
237
237
|
), t;
|
|
238
238
|
}
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
function
|
|
242
|
-
let t = 5381,
|
|
243
|
-
for (;
|
|
244
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
239
|
+
const Ee = /* @__PURE__ */ new Map();
|
|
240
|
+
let xe = 0;
|
|
241
|
+
function Gr(e) {
|
|
242
|
+
let t = 5381, r = e.length;
|
|
243
|
+
for (; r--; )
|
|
244
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
245
245
|
return t >>> 0;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return
|
|
247
|
+
function Fr(e, t) {
|
|
248
|
+
const r = { stylesheet: Cr(t), rules: {} };
|
|
249
|
+
return Ee.set(e, r), r;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const
|
|
251
|
+
function ct(e, t, r, n, i, o, a, s = 0) {
|
|
252
|
+
const l = 16.666 / n;
|
|
253
253
|
let u = `{
|
|
254
254
|
`;
|
|
255
|
-
for (let
|
|
256
|
-
const
|
|
257
|
-
u +=
|
|
255
|
+
for (let _ = 0; _ <= 1; _ += l) {
|
|
256
|
+
const w = t + (r - t) * o(_);
|
|
257
|
+
u += _ * 100 + `%{${a(w, 1 - w)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
}`,
|
|
262
|
-
|
|
260
|
+
const h = u + `100% {${a(r, 1 - r)}}
|
|
261
|
+
}`, f = `__svelte_${Gr(h)}_${s}`, c = at(e), { stylesheet: d, rules: p } = Ee.get(c) || Fr(c, e);
|
|
262
|
+
p[f] || (p[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
|
|
263
263
|
const m = e.style.animation || "";
|
|
264
|
-
return e.style.animation = `${m ? `${m}, ` : ""}${
|
|
264
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, xe += 1, f;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
266
|
+
function jr(e, t) {
|
|
267
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
268
268
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
|
-
), i =
|
|
271
|
-
i && (e.style.animation =
|
|
270
|
+
), i = r.length - n.length;
|
|
271
|
+
i && (e.style.animation = n.join(", "), xe -= i, xe || kr());
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
function kr() {
|
|
274
|
+
st(() => {
|
|
275
|
+
xe || (Ee.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
277
277
|
t && G(t);
|
|
278
|
-
}),
|
|
278
|
+
}), Ee.clear());
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
function
|
|
283
|
-
|
|
281
|
+
let ie;
|
|
282
|
+
function ne(e) {
|
|
283
|
+
ie = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
if (!
|
|
285
|
+
function Vr() {
|
|
286
|
+
if (!ie)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
|
-
return
|
|
288
|
+
return ie;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function Xr(e) {
|
|
291
|
+
Vr().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const V = [],
|
|
293
|
+
const V = [], ke = [];
|
|
294
294
|
let W = [];
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
const ft = [], Xt = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let Ve = !1;
|
|
297
|
+
function Wt() {
|
|
298
|
+
Ve || (Ve = !0, Xt.then(I));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function Mo() {
|
|
301
|
+
return Wt(), Xt;
|
|
302
302
|
}
|
|
303
303
|
function Se(e) {
|
|
304
304
|
W.push(e);
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
307
307
|
let j = 0;
|
|
308
308
|
function I() {
|
|
309
309
|
if (j !== 0)
|
|
310
310
|
return;
|
|
311
|
-
const e =
|
|
311
|
+
const e = ie;
|
|
312
312
|
do {
|
|
313
313
|
try {
|
|
314
314
|
for (; j < V.length; ) {
|
|
315
315
|
const t = V[j];
|
|
316
|
-
j++,
|
|
316
|
+
j++, ne(t), Wr(t.$$);
|
|
317
317
|
}
|
|
318
318
|
} catch (t) {
|
|
319
319
|
throw V.length = 0, j = 0, t;
|
|
320
320
|
}
|
|
321
|
-
for (
|
|
322
|
-
|
|
321
|
+
for (ne(null), V.length = 0, j = 0; ke.length; )
|
|
322
|
+
ke.pop()();
|
|
323
323
|
for (let t = 0; t < W.length; t += 1) {
|
|
324
|
-
const
|
|
325
|
-
|
|
324
|
+
const r = W[t];
|
|
325
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
326
326
|
}
|
|
327
327
|
W.length = 0;
|
|
328
328
|
} while (V.length);
|
|
329
|
-
for (;
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
for (; ft.length; )
|
|
330
|
+
ft.pop()();
|
|
331
|
+
Ve = !1, Ce.clear(), ne(e);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Wr(e) {
|
|
334
334
|
if (e.fragment !== null) {
|
|
335
335
|
e.update(), D(e.before_update);
|
|
336
336
|
const t = e.dirty;
|
|
337
337
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
const t = [],
|
|
342
|
-
W.forEach((
|
|
340
|
+
function zr(e) {
|
|
341
|
+
const t = [], r = [];
|
|
342
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
343
343
|
}
|
|
344
|
-
let
|
|
345
|
-
function
|
|
346
|
-
return
|
|
347
|
-
|
|
348
|
-
})),
|
|
344
|
+
let te;
|
|
345
|
+
function Zr() {
|
|
346
|
+
return te || (te = Promise.resolve(), te.then(() => {
|
|
347
|
+
te = null;
|
|
348
|
+
})), te;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
e.dispatchEvent(
|
|
350
|
+
function Me(e, t, r) {
|
|
351
|
+
e.dispatchEvent(Ur(`${t ? "intro" : "outro"}${r}`));
|
|
352
352
|
}
|
|
353
353
|
const be = /* @__PURE__ */ new Set();
|
|
354
|
-
let
|
|
355
|
-
function
|
|
356
|
-
|
|
354
|
+
let C;
|
|
355
|
+
function $o() {
|
|
356
|
+
C = {
|
|
357
357
|
r: 0,
|
|
358
358
|
c: [],
|
|
359
|
-
p:
|
|
359
|
+
p: C
|
|
360
360
|
// parent group
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
363
|
+
function Ro() {
|
|
364
|
+
C.r || D(C.c), C = C.p;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function qr(e, t) {
|
|
367
367
|
e && e.i && (be.delete(e), e.i(t));
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Uo(e, t, r, n) {
|
|
370
370
|
if (e && e.o) {
|
|
371
371
|
if (be.has(e))
|
|
372
372
|
return;
|
|
373
|
-
be.add(e),
|
|
374
|
-
be.delete(e),
|
|
373
|
+
be.add(e), C.c.push(() => {
|
|
374
|
+
be.delete(e), n && (r && e.d(1), n());
|
|
375
375
|
}), e.o(t);
|
|
376
376
|
} else
|
|
377
|
-
|
|
377
|
+
n && n();
|
|
378
378
|
}
|
|
379
|
-
const
|
|
380
|
-
function
|
|
381
|
-
let o = t(e,
|
|
382
|
-
function
|
|
383
|
-
u &&
|
|
379
|
+
const Qr = { duration: 0 };
|
|
380
|
+
function Do(e, t, r, n) {
|
|
381
|
+
let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
|
|
382
|
+
function f() {
|
|
383
|
+
u && jr(e, u);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
385
|
+
function c(p, m) {
|
|
386
|
+
const _ = (
|
|
387
387
|
/** @type {Program['d']} */
|
|
388
|
-
|
|
388
|
+
p.b - a
|
|
389
389
|
);
|
|
390
|
-
return m *= Math.abs(
|
|
390
|
+
return m *= Math.abs(_), {
|
|
391
391
|
a,
|
|
392
|
-
b:
|
|
393
|
-
d:
|
|
392
|
+
b: p.b,
|
|
393
|
+
d: _,
|
|
394
394
|
duration: m,
|
|
395
|
-
start:
|
|
396
|
-
end:
|
|
397
|
-
group:
|
|
395
|
+
start: p.start,
|
|
396
|
+
end: p.start + m,
|
|
397
|
+
group: p.group
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function p
|
|
400
|
+
function d(p) {
|
|
401
401
|
const {
|
|
402
402
|
delay: m = 0,
|
|
403
|
-
duration:
|
|
404
|
-
easing:
|
|
403
|
+
duration: _ = 300,
|
|
404
|
+
easing: w = Br,
|
|
405
405
|
tick: P = H,
|
|
406
|
-
css:
|
|
407
|
-
} = o ||
|
|
408
|
-
start:
|
|
409
|
-
b:
|
|
406
|
+
css: x
|
|
407
|
+
} = o || Qr, O = {
|
|
408
|
+
start: Ir() + m,
|
|
409
|
+
b: p
|
|
410
410
|
};
|
|
411
|
-
|
|
412
|
-
e.inert, e.inert = !0)), s ||
|
|
413
|
-
if (
|
|
411
|
+
p || (O.group = C, C.r += 1), "inert" in e && (p ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
412
|
+
e.inert, e.inert = !0)), s || l ? l = O : (x && (f(), u = ct(e, a, p, _, m, w, x)), p && P(0, 1), s = c(O, _), Se(() => Me(e, p, "start")), Lr((T) => {
|
|
413
|
+
if (l && T > l.start && (s = c(l, _), l = null, Me(e, s.b, "start"), x && (f(), u = ct(
|
|
414
414
|
e,
|
|
415
415
|
a,
|
|
416
416
|
s.b,
|
|
417
417
|
s.duration,
|
|
418
418
|
0,
|
|
419
|
-
|
|
419
|
+
w,
|
|
420
420
|
o.css
|
|
421
421
|
))), s) {
|
|
422
|
-
if (
|
|
423
|
-
P(a = s.b, 1 - a),
|
|
424
|
-
else if (
|
|
425
|
-
const $ =
|
|
426
|
-
a = s.a + s.d *
|
|
422
|
+
if (T >= s.end)
|
|
423
|
+
P(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ? f() : --s.group.r || D(s.group.c)), s = null;
|
|
424
|
+
else if (T >= s.start) {
|
|
425
|
+
const $ = T - s.start;
|
|
426
|
+
a = s.a + s.d * w($ / s.duration), P(a, 1 - a);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
return !!(s ||
|
|
429
|
+
return !!(s || l);
|
|
430
430
|
}));
|
|
431
431
|
}
|
|
432
432
|
return {
|
|
433
|
-
run(
|
|
434
|
-
|
|
435
|
-
o = o({ direction:
|
|
436
|
-
}) : p
|
|
433
|
+
run(p) {
|
|
434
|
+
ae(o) ? Zr().then(() => {
|
|
435
|
+
o = o({ direction: p ? "in" : "out" }), d(p);
|
|
436
|
+
}) : d(p);
|
|
437
437
|
},
|
|
438
438
|
end() {
|
|
439
|
-
|
|
439
|
+
f(), s = l = null;
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Go(e) {
|
|
444
444
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
const { fragment:
|
|
448
|
-
|
|
449
|
-
const o = e.$$.on_mount.map(
|
|
446
|
+
function Jr(e, t, r) {
|
|
447
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
448
|
+
n && n.m(t, r), Se(() => {
|
|
449
|
+
const o = e.$$.on_mount.map($t).filter(ae);
|
|
450
450
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : D(o), e.$$.on_mount = [];
|
|
451
451
|
}), i.forEach(Se);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
|
|
453
|
+
function Yr(e, t) {
|
|
454
|
+
const r = e.$$;
|
|
455
|
+
r.fragment !== null && (zr(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
457
|
+
function Kr(e, t) {
|
|
458
|
+
e.$$.dirty[0] === -1 && (V.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
const
|
|
462
|
-
|
|
460
|
+
function en(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
461
|
+
const l = ie;
|
|
462
|
+
ne(e);
|
|
463
463
|
const u = e.$$ = {
|
|
464
464
|
fragment: null,
|
|
465
465
|
ctx: [],
|
|
@@ -467,37 +467,37 @@ function Jn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
467
467
|
props: o,
|
|
468
468
|
update: H,
|
|
469
469
|
not_equal: i,
|
|
470
|
-
bound:
|
|
470
|
+
bound: ht(),
|
|
471
471
|
// lifecycle
|
|
472
472
|
on_mount: [],
|
|
473
473
|
on_destroy: [],
|
|
474
474
|
on_disconnect: [],
|
|
475
475
|
before_update: [],
|
|
476
476
|
after_update: [],
|
|
477
|
-
context: new Map(t.context || (
|
|
477
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
478
478
|
// everything else
|
|
479
|
-
callbacks:
|
|
479
|
+
callbacks: ht(),
|
|
480
480
|
dirty: s,
|
|
481
481
|
skip_bound: !1,
|
|
482
|
-
root: t.target ||
|
|
482
|
+
root: t.target || l.$$.root
|
|
483
483
|
};
|
|
484
484
|
a && a(u.root);
|
|
485
|
-
let
|
|
486
|
-
if (u.ctx =
|
|
487
|
-
const
|
|
488
|
-
return u.ctx && i(u.ctx[
|
|
489
|
-
}) : [], u.update(),
|
|
485
|
+
let h = !1;
|
|
486
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
487
|
+
const p = d.length ? d[0] : c;
|
|
488
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && Kr(e, f)), c;
|
|
489
|
+
}) : [], u.update(), h = !0, D(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
490
490
|
if (t.hydrate) {
|
|
491
|
-
const
|
|
492
|
-
u.fragment && u.fragment.l(
|
|
491
|
+
const f = $r(t.target);
|
|
492
|
+
u.fragment && u.fragment.l(f), f.forEach(G);
|
|
493
493
|
} else
|
|
494
494
|
u.fragment && u.fragment.c();
|
|
495
|
-
t.intro &&
|
|
495
|
+
t.intro && qr(e.$$.fragment), Jr(e, t.target, t.anchor), I();
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
ne(l);
|
|
498
498
|
}
|
|
499
|
-
let
|
|
500
|
-
typeof HTMLElement == "function" && (
|
|
499
|
+
let zt;
|
|
500
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
501
501
|
/** The Svelte component constructor */
|
|
502
502
|
$$ctor;
|
|
503
503
|
/** Slots */
|
|
@@ -516,20 +516,20 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
516
516
|
$$l = {};
|
|
517
517
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
518
518
|
$$l_u = /* @__PURE__ */ new Map();
|
|
519
|
-
constructor(e, t,
|
|
520
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
519
|
+
constructor(e, t, r) {
|
|
520
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
521
521
|
}
|
|
522
|
-
addEventListener(e, t,
|
|
522
|
+
addEventListener(e, t, r) {
|
|
523
523
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
524
|
-
const
|
|
525
|
-
this.$$l_u.set(t,
|
|
524
|
+
const n = this.$$c.$on(e, t);
|
|
525
|
+
this.$$l_u.set(t, n);
|
|
526
526
|
}
|
|
527
|
-
super.addEventListener(e, t,
|
|
527
|
+
super.addEventListener(e, t, r);
|
|
528
528
|
}
|
|
529
|
-
removeEventListener(e, t,
|
|
530
|
-
if (super.removeEventListener(e, t,
|
|
531
|
-
const
|
|
532
|
-
|
|
529
|
+
removeEventListener(e, t, r) {
|
|
530
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
531
|
+
const n = this.$$l_u.get(t);
|
|
532
|
+
n && (n(), this.$$l_u.delete(t));
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
async connectedCallback() {
|
|
@@ -539,29 +539,29 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
539
539
|
let o;
|
|
540
540
|
return {
|
|
541
541
|
c: function() {
|
|
542
|
-
o =
|
|
542
|
+
o = N("slot"), i !== "default" && B(o, "name", i);
|
|
543
543
|
},
|
|
544
544
|
/**
|
|
545
545
|
* @param {HTMLElement} target
|
|
546
546
|
* @param {HTMLElement} [anchor]
|
|
547
547
|
*/
|
|
548
|
-
m: function(
|
|
549
|
-
|
|
548
|
+
m: function(l, u) {
|
|
549
|
+
ue(l, o, u);
|
|
550
550
|
},
|
|
551
|
-
d: function(
|
|
552
|
-
|
|
551
|
+
d: function(l) {
|
|
552
|
+
l && G(o);
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
557
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
558
558
|
return;
|
|
559
|
-
const t = {},
|
|
559
|
+
const t = {}, r = Dr(this);
|
|
560
560
|
for (const i of this.$$s)
|
|
561
|
-
i in
|
|
561
|
+
i in r && (t[i] = [e(i)]);
|
|
562
562
|
for (const i of this.attributes) {
|
|
563
563
|
const o = this.$$g_p(i.name);
|
|
564
|
-
o in this.$$d || (this.$$d[o] =
|
|
564
|
+
o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
|
|
565
565
|
}
|
|
566
566
|
for (const i in this.$$p_d)
|
|
567
567
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -575,11 +575,11 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
});
|
|
578
|
-
const
|
|
578
|
+
const n = () => {
|
|
579
579
|
this.$$r = !0;
|
|
580
580
|
for (const i in this.$$p_d)
|
|
581
581
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
582
|
-
const o =
|
|
582
|
+
const o = ye(
|
|
583
583
|
i,
|
|
584
584
|
this.$$d[i],
|
|
585
585
|
this.$$p_d,
|
|
@@ -589,7 +589,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
589
589
|
}
|
|
590
590
|
this.$$r = !1;
|
|
591
591
|
};
|
|
592
|
-
this.$$c.$$.after_update.push(
|
|
592
|
+
this.$$c.$$.after_update.push(n), n();
|
|
593
593
|
for (const i in this.$$l)
|
|
594
594
|
for (const o of this.$$l[i]) {
|
|
595
595
|
const a = this.$$c.$on(i, o);
|
|
@@ -600,8 +600,8 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
600
600
|
}
|
|
601
601
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
602
602
|
// and setting attributes through setAttribute etc, this is helpful
|
|
603
|
-
attributeChangedCallback(e, t,
|
|
604
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
603
|
+
attributeChangedCallback(e, t, r) {
|
|
604
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
605
605
|
}
|
|
606
606
|
disconnectedCallback() {
|
|
607
607
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -614,11 +614,11 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
614
614
|
) || e;
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
function
|
|
618
|
-
const i =
|
|
619
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
617
|
+
function ye(e, t, r, n) {
|
|
618
|
+
const i = r[e]?.type;
|
|
619
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
620
620
|
return t;
|
|
621
|
-
if (
|
|
621
|
+
if (n === "toAttribute")
|
|
622
622
|
switch (i) {
|
|
623
623
|
case "Object":
|
|
624
624
|
case "Array":
|
|
@@ -643,10 +643,10 @@ function ge(e, t, n, r) {
|
|
|
643
643
|
return t;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
let a = class extends
|
|
646
|
+
function tn(e, t, r, n, i, o) {
|
|
647
|
+
let a = class extends zt {
|
|
648
648
|
constructor() {
|
|
649
|
-
super(e,
|
|
649
|
+
super(e, r, i), this.$$p_d = t;
|
|
650
650
|
}
|
|
651
651
|
static get observedAttributes() {
|
|
652
652
|
return Object.keys(t).map(
|
|
@@ -659,11 +659,11 @@ function Yn(e, t, n, r, i, o) {
|
|
|
659
659
|
get() {
|
|
660
660
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
661
661
|
},
|
|
662
|
-
set(
|
|
663
|
-
|
|
662
|
+
set(l) {
|
|
663
|
+
l = ye(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
|
-
}),
|
|
666
|
+
}), n.forEach((s) => {
|
|
667
667
|
Object.defineProperty(a.prototype, s, {
|
|
668
668
|
get() {
|
|
669
669
|
return this.$$c?.[s];
|
|
@@ -672,7 +672,7 @@ function Yn(e, t, n, r, i, o) {
|
|
|
672
672
|
}), e.element = /** @type {any} */
|
|
673
673
|
a, a;
|
|
674
674
|
}
|
|
675
|
-
class
|
|
675
|
+
class rn {
|
|
676
676
|
/**
|
|
677
677
|
* ### PRIVATE API
|
|
678
678
|
*
|
|
@@ -691,7 +691,7 @@ class Kn {
|
|
|
691
691
|
$$set = void 0;
|
|
692
692
|
/** @returns {void} */
|
|
693
693
|
$destroy() {
|
|
694
|
-
|
|
694
|
+
Yr(this, 1), this.$destroy = H;
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
697
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -699,13 +699,13 @@ class Kn {
|
|
|
699
699
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
700
700
|
* @returns {() => void}
|
|
701
701
|
*/
|
|
702
|
-
$on(t,
|
|
703
|
-
if (!
|
|
702
|
+
$on(t, r) {
|
|
703
|
+
if (!ae(r))
|
|
704
704
|
return H;
|
|
705
|
-
const
|
|
706
|
-
return
|
|
707
|
-
const i =
|
|
708
|
-
i !== -1 &&
|
|
705
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
706
|
+
return n.push(r), () => {
|
|
707
|
+
const i = n.indexOf(r);
|
|
708
|
+
i !== -1 && n.splice(i, 1);
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
711
|
/**
|
|
@@ -713,11 +713,11 @@ class Kn {
|
|
|
713
713
|
* @returns {void}
|
|
714
714
|
*/
|
|
715
715
|
$set(t) {
|
|
716
|
-
this.$$set && !
|
|
716
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
const
|
|
720
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
719
|
+
const nn = "4";
|
|
720
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(nn);
|
|
721
721
|
/*! *****************************************************************************
|
|
722
722
|
Copyright (c) Microsoft Corporation.
|
|
723
723
|
|
|
@@ -732,67 +732,48 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
732
732
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
733
733
|
PERFORMANCE OF THIS SOFTWARE.
|
|
734
734
|
***************************************************************************** */
|
|
735
|
-
var
|
|
736
|
-
return
|
|
737
|
-
|
|
738
|
-
} || function(
|
|
739
|
-
for (var i in
|
|
740
|
-
Object.prototype.hasOwnProperty.call(
|
|
741
|
-
},
|
|
735
|
+
var Xe = function(e, t) {
|
|
736
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
737
|
+
r.__proto__ = n;
|
|
738
|
+
} || function(r, n) {
|
|
739
|
+
for (var i in n)
|
|
740
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
741
|
+
}, Xe(e, t);
|
|
742
742
|
};
|
|
743
|
-
function
|
|
743
|
+
function he(e, t) {
|
|
744
744
|
if (typeof t != "function" && t !== null)
|
|
745
745
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
746
|
-
|
|
747
|
-
function
|
|
746
|
+
Xe(e, t);
|
|
747
|
+
function r() {
|
|
748
748
|
this.constructor = e;
|
|
749
749
|
}
|
|
750
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
751
|
-
}
|
|
752
|
-
var y = function() {
|
|
753
|
-
return y = Object.assign || function(t) {
|
|
754
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
755
|
-
n = arguments[r];
|
|
756
|
-
for (var o in n)
|
|
757
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
758
|
-
}
|
|
759
|
-
return t;
|
|
760
|
-
}, y.apply(this, arguments);
|
|
761
|
-
};
|
|
762
|
-
function tr(e, t) {
|
|
763
|
-
var n = {};
|
|
764
|
-
for (var r in e)
|
|
765
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
766
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
767
|
-
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
768
|
-
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
769
|
-
return n;
|
|
750
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
770
751
|
}
|
|
771
|
-
function
|
|
772
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
773
|
-
if (
|
|
774
|
-
return
|
|
752
|
+
function We(e) {
|
|
753
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
754
|
+
if (r)
|
|
755
|
+
return r.call(e);
|
|
775
756
|
if (e && typeof e.length == "number")
|
|
776
757
|
return {
|
|
777
758
|
next: function() {
|
|
778
|
-
return e &&
|
|
759
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
779
760
|
}
|
|
780
761
|
};
|
|
781
762
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
782
763
|
}
|
|
783
|
-
function
|
|
784
|
-
var
|
|
785
|
-
if (!
|
|
764
|
+
function ze(e, t) {
|
|
765
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
766
|
+
if (!r)
|
|
786
767
|
return e;
|
|
787
|
-
var
|
|
768
|
+
var n = r.call(e), i, o = [], a;
|
|
788
769
|
try {
|
|
789
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
770
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
790
771
|
o.push(i.value);
|
|
791
772
|
} catch (s) {
|
|
792
773
|
a = { error: s };
|
|
793
774
|
} finally {
|
|
794
775
|
try {
|
|
795
|
-
i && !i.done && (
|
|
776
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
796
777
|
} finally {
|
|
797
778
|
if (a)
|
|
798
779
|
throw a.error;
|
|
@@ -800,57 +781,57 @@ function Ve(e, t) {
|
|
|
800
781
|
}
|
|
801
782
|
return o;
|
|
802
783
|
}
|
|
803
|
-
function
|
|
804
|
-
if (
|
|
805
|
-
for (var
|
|
806
|
-
(o || !(
|
|
784
|
+
function Ze(e, t, r) {
|
|
785
|
+
if (arguments.length === 2)
|
|
786
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
787
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
807
788
|
return e.concat(o || t);
|
|
808
789
|
}
|
|
809
790
|
function M(e) {
|
|
810
791
|
return typeof e == "function";
|
|
811
792
|
}
|
|
812
|
-
function
|
|
813
|
-
var t = function(
|
|
814
|
-
Error.call(
|
|
815
|
-
},
|
|
816
|
-
return
|
|
817
|
-
}
|
|
818
|
-
var
|
|
819
|
-
return function(
|
|
820
|
-
e(this), this.message =
|
|
821
|
-
` +
|
|
822
|
-
return i + 1 + ") " +
|
|
793
|
+
function Zt(e) {
|
|
794
|
+
var t = function(n) {
|
|
795
|
+
Error.call(n), n.stack = new Error().stack;
|
|
796
|
+
}, r = e(t);
|
|
797
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
798
|
+
}
|
|
799
|
+
var $e = Zt(function(e) {
|
|
800
|
+
return function(r) {
|
|
801
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
802
|
+
` + r.map(function(n, i) {
|
|
803
|
+
return i + 1 + ") " + n.toString();
|
|
823
804
|
}).join(`
|
|
824
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
805
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
825
806
|
};
|
|
826
807
|
});
|
|
827
|
-
function
|
|
808
|
+
function qe(e, t) {
|
|
828
809
|
if (e) {
|
|
829
|
-
var
|
|
830
|
-
0 <=
|
|
810
|
+
var r = e.indexOf(t);
|
|
811
|
+
0 <= r && e.splice(r, 1);
|
|
831
812
|
}
|
|
832
813
|
}
|
|
833
|
-
var
|
|
814
|
+
var Be = function() {
|
|
834
815
|
function e(t) {
|
|
835
816
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
836
817
|
}
|
|
837
818
|
return e.prototype.unsubscribe = function() {
|
|
838
|
-
var t,
|
|
819
|
+
var t, r, n, i, o;
|
|
839
820
|
if (!this.closed) {
|
|
840
821
|
this.closed = !0;
|
|
841
822
|
var a = this._parentage;
|
|
842
823
|
if (a)
|
|
843
824
|
if (this._parentage = null, Array.isArray(a))
|
|
844
825
|
try {
|
|
845
|
-
for (var s =
|
|
846
|
-
var u =
|
|
826
|
+
for (var s = We(a), l = s.next(); !l.done; l = s.next()) {
|
|
827
|
+
var u = l.value;
|
|
847
828
|
u.remove(this);
|
|
848
829
|
}
|
|
849
830
|
} catch (m) {
|
|
850
831
|
t = { error: m };
|
|
851
832
|
} finally {
|
|
852
833
|
try {
|
|
853
|
-
|
|
834
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
854
835
|
} finally {
|
|
855
836
|
if (t)
|
|
856
837
|
throw t.error;
|
|
@@ -858,123 +839,119 @@ var He = function() {
|
|
|
858
839
|
}
|
|
859
840
|
else
|
|
860
841
|
a.remove(this);
|
|
861
|
-
var
|
|
862
|
-
if (M(
|
|
842
|
+
var h = this.initialTeardown;
|
|
843
|
+
if (M(h))
|
|
863
844
|
try {
|
|
864
|
-
|
|
845
|
+
h();
|
|
865
846
|
} catch (m) {
|
|
866
|
-
o = m instanceof
|
|
847
|
+
o = m instanceof $e ? m.errors : [m];
|
|
867
848
|
}
|
|
868
|
-
var
|
|
869
|
-
if (
|
|
849
|
+
var f = this._finalizers;
|
|
850
|
+
if (f) {
|
|
870
851
|
this._finalizers = null;
|
|
871
852
|
try {
|
|
872
|
-
for (var
|
|
873
|
-
var
|
|
853
|
+
for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
|
|
854
|
+
var p = d.value;
|
|
874
855
|
try {
|
|
875
|
-
|
|
856
|
+
pt(p);
|
|
876
857
|
} catch (m) {
|
|
877
|
-
o = o ?? [], m instanceof
|
|
858
|
+
o = o ?? [], m instanceof $e ? o = Ze(Ze([], ze(o)), ze(m.errors)) : o.push(m);
|
|
878
859
|
}
|
|
879
860
|
}
|
|
880
861
|
} catch (m) {
|
|
881
|
-
|
|
862
|
+
n = { error: m };
|
|
882
863
|
} finally {
|
|
883
864
|
try {
|
|
884
|
-
|
|
865
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
885
866
|
} finally {
|
|
886
|
-
if (
|
|
887
|
-
throw
|
|
867
|
+
if (n)
|
|
868
|
+
throw n.error;
|
|
888
869
|
}
|
|
889
870
|
}
|
|
890
871
|
}
|
|
891
872
|
if (o)
|
|
892
|
-
throw new
|
|
873
|
+
throw new $e(o);
|
|
893
874
|
}
|
|
894
875
|
}, e.prototype.add = function(t) {
|
|
895
|
-
var
|
|
876
|
+
var r;
|
|
896
877
|
if (t && t !== this)
|
|
897
878
|
if (this.closed)
|
|
898
|
-
|
|
879
|
+
pt(t);
|
|
899
880
|
else {
|
|
900
881
|
if (t instanceof e) {
|
|
901
882
|
if (t.closed || t._hasParent(this))
|
|
902
883
|
return;
|
|
903
884
|
t._addParent(this);
|
|
904
885
|
}
|
|
905
|
-
(this._finalizers = (
|
|
886
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
906
887
|
}
|
|
907
888
|
}, e.prototype._hasParent = function(t) {
|
|
908
|
-
var
|
|
909
|
-
return
|
|
889
|
+
var r = this._parentage;
|
|
890
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
910
891
|
}, e.prototype._addParent = function(t) {
|
|
911
|
-
var
|
|
912
|
-
this._parentage = Array.isArray(
|
|
892
|
+
var r = this._parentage;
|
|
893
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
913
894
|
}, e.prototype._removeParent = function(t) {
|
|
914
|
-
var
|
|
915
|
-
|
|
895
|
+
var r = this._parentage;
|
|
896
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
916
897
|
}, e.prototype.remove = function(t) {
|
|
917
|
-
var
|
|
918
|
-
|
|
898
|
+
var r = this._finalizers;
|
|
899
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
919
900
|
}, e.EMPTY = function() {
|
|
920
901
|
var t = new e();
|
|
921
902
|
return t.closed = !0, t;
|
|
922
903
|
}(), e;
|
|
923
|
-
}(),
|
|
924
|
-
function
|
|
925
|
-
return e instanceof
|
|
904
|
+
}(), qt = Be.EMPTY;
|
|
905
|
+
function Qt(e) {
|
|
906
|
+
return e instanceof Be || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
926
907
|
}
|
|
927
|
-
function
|
|
908
|
+
function pt(e) {
|
|
928
909
|
M(e) ? e() : e.unsubscribe();
|
|
929
910
|
}
|
|
930
|
-
var
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
Promise: void 0,
|
|
934
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
935
|
-
useDeprecatedNextContext: !1
|
|
936
|
-
}, rr = {
|
|
911
|
+
var on = {
|
|
912
|
+
Promise: void 0
|
|
913
|
+
}, sn = {
|
|
937
914
|
setTimeout: function(e, t) {
|
|
938
|
-
for (var
|
|
939
|
-
n
|
|
940
|
-
return setTimeout.apply(void 0,
|
|
915
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
916
|
+
r[n - 2] = arguments[n];
|
|
917
|
+
return setTimeout.apply(void 0, Ze([e, t], ze(r)));
|
|
941
918
|
},
|
|
942
919
|
clearTimeout: function(e) {
|
|
943
920
|
return clearTimeout(e);
|
|
944
921
|
},
|
|
945
922
|
delegate: void 0
|
|
946
923
|
};
|
|
947
|
-
function
|
|
948
|
-
|
|
924
|
+
function an(e) {
|
|
925
|
+
sn.setTimeout(function() {
|
|
949
926
|
throw e;
|
|
950
927
|
});
|
|
951
928
|
}
|
|
952
|
-
function
|
|
929
|
+
function dt() {
|
|
953
930
|
}
|
|
954
|
-
function
|
|
931
|
+
function ge(e) {
|
|
955
932
|
e();
|
|
956
933
|
}
|
|
957
|
-
var
|
|
958
|
-
|
|
959
|
-
function t(
|
|
960
|
-
var
|
|
961
|
-
return
|
|
934
|
+
var Jt = function(e) {
|
|
935
|
+
he(t, e);
|
|
936
|
+
function t(r) {
|
|
937
|
+
var n = e.call(this) || this;
|
|
938
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = hn, n;
|
|
962
939
|
}
|
|
963
|
-
return t.create = function(
|
|
964
|
-
return new
|
|
965
|
-
}, t.prototype.next = function(
|
|
966
|
-
this.isStopped || this._next(
|
|
967
|
-
}, t.prototype.error = function(
|
|
968
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
940
|
+
return t.create = function(r, n, i) {
|
|
941
|
+
return new Qe(r, n, i);
|
|
942
|
+
}, t.prototype.next = function(r) {
|
|
943
|
+
this.isStopped || this._next(r);
|
|
944
|
+
}, t.prototype.error = function(r) {
|
|
945
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
969
946
|
}, t.prototype.complete = function() {
|
|
970
947
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
971
948
|
}, t.prototype.unsubscribe = function() {
|
|
972
949
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
973
|
-
}, t.prototype._next = function(
|
|
974
|
-
this.destination.next(
|
|
975
|
-
}, t.prototype._error = function(
|
|
950
|
+
}, t.prototype._next = function(r) {
|
|
951
|
+
this.destination.next(r);
|
|
952
|
+
}, t.prototype._error = function(r) {
|
|
976
953
|
try {
|
|
977
|
-
this.destination.error(
|
|
954
|
+
this.destination.error(r);
|
|
978
955
|
} finally {
|
|
979
956
|
this.unsubscribe();
|
|
980
957
|
}
|
|
@@ -985,169 +962,169 @@ var zt = function(e) {
|
|
|
985
962
|
this.unsubscribe();
|
|
986
963
|
}
|
|
987
964
|
}, t;
|
|
988
|
-
}(
|
|
965
|
+
}(Be), un = function() {
|
|
989
966
|
function e(t) {
|
|
990
967
|
this.partialObserver = t;
|
|
991
968
|
}
|
|
992
969
|
return e.prototype.next = function(t) {
|
|
993
|
-
var
|
|
994
|
-
if (
|
|
970
|
+
var r = this.partialObserver;
|
|
971
|
+
if (r.next)
|
|
995
972
|
try {
|
|
996
|
-
|
|
997
|
-
} catch (
|
|
998
|
-
|
|
973
|
+
r.next(t);
|
|
974
|
+
} catch (n) {
|
|
975
|
+
de(n);
|
|
999
976
|
}
|
|
1000
977
|
}, e.prototype.error = function(t) {
|
|
1001
|
-
var
|
|
1002
|
-
if (
|
|
978
|
+
var r = this.partialObserver;
|
|
979
|
+
if (r.error)
|
|
1003
980
|
try {
|
|
1004
|
-
|
|
1005
|
-
} catch (
|
|
1006
|
-
|
|
981
|
+
r.error(t);
|
|
982
|
+
} catch (n) {
|
|
983
|
+
de(n);
|
|
1007
984
|
}
|
|
1008
985
|
else
|
|
1009
|
-
|
|
986
|
+
de(t);
|
|
1010
987
|
}, e.prototype.complete = function() {
|
|
1011
988
|
var t = this.partialObserver;
|
|
1012
989
|
if (t.complete)
|
|
1013
990
|
try {
|
|
1014
991
|
t.complete();
|
|
1015
|
-
} catch (
|
|
1016
|
-
|
|
992
|
+
} catch (r) {
|
|
993
|
+
de(r);
|
|
1017
994
|
}
|
|
1018
995
|
}, e;
|
|
1019
|
-
}(),
|
|
1020
|
-
|
|
1021
|
-
function t(
|
|
996
|
+
}(), Qe = function(e) {
|
|
997
|
+
he(t, e);
|
|
998
|
+
function t(r, n, i) {
|
|
1022
999
|
var o = e.call(this) || this, a;
|
|
1023
|
-
return M(
|
|
1024
|
-
next:
|
|
1025
|
-
error:
|
|
1000
|
+
return M(r) || !r ? a = {
|
|
1001
|
+
next: r ?? void 0,
|
|
1002
|
+
error: n ?? void 0,
|
|
1026
1003
|
complete: i ?? void 0
|
|
1027
|
-
} : a =
|
|
1004
|
+
} : a = r, o.destination = new un(a), o;
|
|
1028
1005
|
}
|
|
1029
1006
|
return t;
|
|
1030
|
-
}(
|
|
1031
|
-
function
|
|
1032
|
-
|
|
1007
|
+
}(Jt);
|
|
1008
|
+
function de(e) {
|
|
1009
|
+
an(e);
|
|
1033
1010
|
}
|
|
1034
|
-
function
|
|
1011
|
+
function ln(e) {
|
|
1035
1012
|
throw e;
|
|
1036
1013
|
}
|
|
1037
|
-
var
|
|
1014
|
+
var hn = {
|
|
1038
1015
|
closed: !0,
|
|
1039
|
-
next:
|
|
1040
|
-
error:
|
|
1041
|
-
complete:
|
|
1042
|
-
},
|
|
1016
|
+
next: dt,
|
|
1017
|
+
error: ln,
|
|
1018
|
+
complete: dt
|
|
1019
|
+
}, cn = function() {
|
|
1043
1020
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1044
1021
|
}();
|
|
1045
|
-
function
|
|
1022
|
+
function fn(e) {
|
|
1046
1023
|
return e;
|
|
1047
1024
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return e.length === 0 ?
|
|
1050
|
-
return e.reduce(function(
|
|
1051
|
-
return i(
|
|
1052
|
-
},
|
|
1025
|
+
function pn(e) {
|
|
1026
|
+
return e.length === 0 ? fn : e.length === 1 ? e[0] : function(r) {
|
|
1027
|
+
return e.reduce(function(n, i) {
|
|
1028
|
+
return i(n);
|
|
1029
|
+
}, r);
|
|
1053
1030
|
};
|
|
1054
1031
|
}
|
|
1055
|
-
var
|
|
1032
|
+
var mt = function() {
|
|
1056
1033
|
function e(t) {
|
|
1057
1034
|
t && (this._subscribe = t);
|
|
1058
1035
|
}
|
|
1059
1036
|
return e.prototype.lift = function(t) {
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1062
|
-
}, e.prototype.subscribe = function(t,
|
|
1063
|
-
var i = this, o =
|
|
1064
|
-
return
|
|
1065
|
-
var a = i, s = a.operator,
|
|
1066
|
-
o.add(s ? s.call(o,
|
|
1037
|
+
var r = new e();
|
|
1038
|
+
return r.source = this, r.operator = t, r;
|
|
1039
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1040
|
+
var i = this, o = mn(t) ? t : new Qe(t, r, n);
|
|
1041
|
+
return ge(function() {
|
|
1042
|
+
var a = i, s = a.operator, l = a.source;
|
|
1043
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1067
1044
|
}), o;
|
|
1068
1045
|
}, e.prototype._trySubscribe = function(t) {
|
|
1069
1046
|
try {
|
|
1070
1047
|
return this._subscribe(t);
|
|
1071
|
-
} catch (
|
|
1072
|
-
t.error(
|
|
1048
|
+
} catch (r) {
|
|
1049
|
+
t.error(r);
|
|
1073
1050
|
}
|
|
1074
|
-
}, e.prototype.forEach = function(t,
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1077
|
-
var a = new
|
|
1051
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1052
|
+
var n = this;
|
|
1053
|
+
return r = bt(r), new r(function(i, o) {
|
|
1054
|
+
var a = new Qe({
|
|
1078
1055
|
next: function(s) {
|
|
1079
1056
|
try {
|
|
1080
1057
|
t(s);
|
|
1081
|
-
} catch (
|
|
1082
|
-
o(
|
|
1058
|
+
} catch (l) {
|
|
1059
|
+
o(l), a.unsubscribe();
|
|
1083
1060
|
}
|
|
1084
1061
|
},
|
|
1085
1062
|
error: o,
|
|
1086
1063
|
complete: i
|
|
1087
1064
|
});
|
|
1088
|
-
|
|
1065
|
+
n.subscribe(a);
|
|
1089
1066
|
});
|
|
1090
1067
|
}, e.prototype._subscribe = function(t) {
|
|
1091
|
-
var
|
|
1092
|
-
return (
|
|
1093
|
-
}, e.prototype[
|
|
1068
|
+
var r;
|
|
1069
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1070
|
+
}, e.prototype[cn] = function() {
|
|
1094
1071
|
return this;
|
|
1095
1072
|
}, e.prototype.pipe = function() {
|
|
1096
|
-
for (var t = [],
|
|
1097
|
-
t[
|
|
1098
|
-
return
|
|
1073
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1074
|
+
t[r] = arguments[r];
|
|
1075
|
+
return pn(t)(this);
|
|
1099
1076
|
}, e.prototype.toPromise = function(t) {
|
|
1100
|
-
var
|
|
1101
|
-
return t =
|
|
1077
|
+
var r = this;
|
|
1078
|
+
return t = bt(t), new t(function(n, i) {
|
|
1102
1079
|
var o;
|
|
1103
|
-
|
|
1080
|
+
r.subscribe(function(a) {
|
|
1104
1081
|
return o = a;
|
|
1105
1082
|
}, function(a) {
|
|
1106
1083
|
return i(a);
|
|
1107
1084
|
}, function() {
|
|
1108
|
-
return
|
|
1085
|
+
return n(o);
|
|
1109
1086
|
});
|
|
1110
1087
|
});
|
|
1111
1088
|
}, e.create = function(t) {
|
|
1112
1089
|
return new e(t);
|
|
1113
1090
|
}, e;
|
|
1114
1091
|
}();
|
|
1115
|
-
function
|
|
1092
|
+
function bt(e) {
|
|
1116
1093
|
var t;
|
|
1117
|
-
return (t = e ??
|
|
1094
|
+
return (t = e ?? on.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1118
1095
|
}
|
|
1119
|
-
function
|
|
1096
|
+
function dn(e) {
|
|
1120
1097
|
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
1121
1098
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return e && e instanceof
|
|
1099
|
+
function mn(e) {
|
|
1100
|
+
return e && e instanceof Jt || dn(e) && Qt(e);
|
|
1124
1101
|
}
|
|
1125
|
-
var
|
|
1102
|
+
var bn = Zt(function(e) {
|
|
1126
1103
|
return function() {
|
|
1127
1104
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1128
1105
|
};
|
|
1129
|
-
}),
|
|
1130
|
-
|
|
1106
|
+
}), Yt = function(e) {
|
|
1107
|
+
he(t, e);
|
|
1131
1108
|
function t() {
|
|
1132
|
-
var
|
|
1133
|
-
return
|
|
1109
|
+
var r = e.call(this) || this;
|
|
1110
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1134
1111
|
}
|
|
1135
|
-
return t.prototype.lift = function(
|
|
1136
|
-
var
|
|
1137
|
-
return
|
|
1112
|
+
return t.prototype.lift = function(r) {
|
|
1113
|
+
var n = new yt(this, this);
|
|
1114
|
+
return n.operator = r, n;
|
|
1138
1115
|
}, t.prototype._throwIfClosed = function() {
|
|
1139
1116
|
if (this.closed)
|
|
1140
|
-
throw new
|
|
1141
|
-
}, t.prototype.next = function(
|
|
1142
|
-
var
|
|
1143
|
-
|
|
1117
|
+
throw new bn();
|
|
1118
|
+
}, t.prototype.next = function(r) {
|
|
1119
|
+
var n = this;
|
|
1120
|
+
ge(function() {
|
|
1144
1121
|
var i, o;
|
|
1145
|
-
if (
|
|
1146
|
-
|
|
1122
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1123
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1147
1124
|
try {
|
|
1148
|
-
for (var a =
|
|
1149
|
-
var
|
|
1150
|
-
|
|
1125
|
+
for (var a = We(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1126
|
+
var l = s.value;
|
|
1127
|
+
l.next(r);
|
|
1151
1128
|
}
|
|
1152
1129
|
} catch (u) {
|
|
1153
1130
|
i = { error: u };
|
|
@@ -1161,120 +1138,120 @@ var dr = Vt(function(e) {
|
|
|
1161
1138
|
}
|
|
1162
1139
|
}
|
|
1163
1140
|
});
|
|
1164
|
-
}, t.prototype.error = function(
|
|
1165
|
-
var
|
|
1166
|
-
|
|
1167
|
-
if (
|
|
1168
|
-
|
|
1169
|
-
for (var i =
|
|
1170
|
-
i.shift().error(
|
|
1141
|
+
}, t.prototype.error = function(r) {
|
|
1142
|
+
var n = this;
|
|
1143
|
+
ge(function() {
|
|
1144
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1145
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1146
|
+
for (var i = n.observers; i.length; )
|
|
1147
|
+
i.shift().error(r);
|
|
1171
1148
|
}
|
|
1172
1149
|
});
|
|
1173
1150
|
}, t.prototype.complete = function() {
|
|
1174
|
-
var
|
|
1175
|
-
|
|
1176
|
-
if (
|
|
1177
|
-
|
|
1178
|
-
for (var
|
|
1179
|
-
|
|
1151
|
+
var r = this;
|
|
1152
|
+
ge(function() {
|
|
1153
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1154
|
+
r.isStopped = !0;
|
|
1155
|
+
for (var n = r.observers; n.length; )
|
|
1156
|
+
n.shift().complete();
|
|
1180
1157
|
}
|
|
1181
1158
|
});
|
|
1182
1159
|
}, t.prototype.unsubscribe = function() {
|
|
1183
1160
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1184
1161
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1185
1162
|
get: function() {
|
|
1186
|
-
var
|
|
1187
|
-
return ((
|
|
1163
|
+
var r;
|
|
1164
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1188
1165
|
},
|
|
1189
1166
|
enumerable: !1,
|
|
1190
1167
|
configurable: !0
|
|
1191
|
-
}), t.prototype._trySubscribe = function(
|
|
1192
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1193
|
-
}, t.prototype._subscribe = function(
|
|
1194
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1195
|
-
}, t.prototype._innerSubscribe = function(
|
|
1196
|
-
var
|
|
1197
|
-
return o || a ?
|
|
1198
|
-
|
|
1168
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1169
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1170
|
+
}, t.prototype._subscribe = function(r) {
|
|
1171
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1172
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1173
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1174
|
+
return o || a ? qt : (this.currentObservers = null, s.push(r), new Be(function() {
|
|
1175
|
+
n.currentObservers = null, qe(s, r);
|
|
1199
1176
|
}));
|
|
1200
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1201
|
-
var
|
|
1202
|
-
i ?
|
|
1177
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1178
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1179
|
+
i ? r.error(o) : a && r.complete();
|
|
1203
1180
|
}, t.prototype.asObservable = function() {
|
|
1204
|
-
var
|
|
1205
|
-
return
|
|
1206
|
-
}, t.create = function(
|
|
1207
|
-
return new
|
|
1181
|
+
var r = new mt();
|
|
1182
|
+
return r.source = this, r;
|
|
1183
|
+
}, t.create = function(r, n) {
|
|
1184
|
+
return new yt(r, n);
|
|
1208
1185
|
}, t;
|
|
1209
|
-
}(
|
|
1210
|
-
|
|
1211
|
-
function t(
|
|
1186
|
+
}(mt), yt = function(e) {
|
|
1187
|
+
he(t, e);
|
|
1188
|
+
function t(r, n) {
|
|
1212
1189
|
var i = e.call(this) || this;
|
|
1213
|
-
return i.destination =
|
|
1190
|
+
return i.destination = r, i.source = n, i;
|
|
1214
1191
|
}
|
|
1215
|
-
return t.prototype.next = function(
|
|
1216
|
-
var
|
|
1217
|
-
(i = (
|
|
1218
|
-
}, t.prototype.error = function(
|
|
1219
|
-
var
|
|
1220
|
-
(i = (
|
|
1192
|
+
return t.prototype.next = function(r) {
|
|
1193
|
+
var n, i;
|
|
1194
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1195
|
+
}, t.prototype.error = function(r) {
|
|
1196
|
+
var n, i;
|
|
1197
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1221
1198
|
}, t.prototype.complete = function() {
|
|
1222
|
-
var
|
|
1223
|
-
(
|
|
1224
|
-
}, t.prototype._subscribe = function(
|
|
1225
|
-
var
|
|
1226
|
-
return (i = (
|
|
1199
|
+
var r, n;
|
|
1200
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1201
|
+
}, t.prototype._subscribe = function(r) {
|
|
1202
|
+
var n, i;
|
|
1203
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
|
|
1227
1204
|
}, t;
|
|
1228
|
-
}(
|
|
1205
|
+
}(Yt), Kt = {
|
|
1229
1206
|
now: function() {
|
|
1230
|
-
return (
|
|
1207
|
+
return (Kt.delegate || Date).now();
|
|
1231
1208
|
},
|
|
1232
1209
|
delegate: void 0
|
|
1233
|
-
},
|
|
1234
|
-
|
|
1235
|
-
function t(
|
|
1236
|
-
|
|
1210
|
+
}, yn = function(e) {
|
|
1211
|
+
he(t, e);
|
|
1212
|
+
function t(r, n, i) {
|
|
1213
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
|
1237
1214
|
var o = e.call(this) || this;
|
|
1238
|
-
return o._bufferSize =
|
|
1215
|
+
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;
|
|
1239
1216
|
}
|
|
1240
|
-
return t.prototype.next = function(
|
|
1241
|
-
var
|
|
1242
|
-
i || (o.push(
|
|
1243
|
-
}, t.prototype._subscribe = function(
|
|
1217
|
+
return t.prototype.next = function(r) {
|
|
1218
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1219
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1220
|
+
}, t.prototype._subscribe = function(r) {
|
|
1244
1221
|
this._throwIfClosed(), this._trimBuffer();
|
|
1245
|
-
for (var
|
|
1246
|
-
|
|
1247
|
-
return this._checkFinalizedStatuses(
|
|
1222
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1223
|
+
r.next(s[l]);
|
|
1224
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1248
1225
|
}, t.prototype._trimBuffer = function() {
|
|
1249
|
-
var
|
|
1250
|
-
if (
|
|
1251
|
-
for (var
|
|
1252
|
-
u =
|
|
1226
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1227
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1228
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1229
|
+
u = h;
|
|
1253
1230
|
u && o.splice(0, u + 1);
|
|
1254
1231
|
}
|
|
1255
1232
|
}, t;
|
|
1256
|
-
}(
|
|
1257
|
-
const
|
|
1258
|
-
if (
|
|
1259
|
-
const
|
|
1260
|
-
|
|
1233
|
+
}(Yt);
|
|
1234
|
+
const gt = [], vt = {}, gn = (e, t = 0) => {
|
|
1235
|
+
if (gt.indexOf(e) == -1) {
|
|
1236
|
+
const r = new yn(t);
|
|
1237
|
+
vt[e] = r, gt.push(e);
|
|
1261
1238
|
}
|
|
1262
|
-
return
|
|
1239
|
+
return vt[e];
|
|
1263
1240
|
}, k = [];
|
|
1264
|
-
function
|
|
1241
|
+
function vn(e, t) {
|
|
1265
1242
|
return {
|
|
1266
|
-
subscribe:
|
|
1243
|
+
subscribe: Ae(e, t).subscribe
|
|
1267
1244
|
};
|
|
1268
1245
|
}
|
|
1269
|
-
function
|
|
1270
|
-
let
|
|
1271
|
-
const
|
|
1246
|
+
function Ae(e, t = H) {
|
|
1247
|
+
let r;
|
|
1248
|
+
const n = /* @__PURE__ */ new Set();
|
|
1272
1249
|
function i(s) {
|
|
1273
|
-
if (
|
|
1274
|
-
const
|
|
1275
|
-
for (const u of
|
|
1250
|
+
if (Rt(e, s) && (e = s, r)) {
|
|
1251
|
+
const l = !k.length;
|
|
1252
|
+
for (const u of n)
|
|
1276
1253
|
u[1](), k.push(u, e);
|
|
1277
|
-
if (
|
|
1254
|
+
if (l) {
|
|
1278
1255
|
for (let u = 0; u < k.length; u += 2)
|
|
1279
1256
|
k[u][0](k[u + 1]);
|
|
1280
1257
|
k.length = 0;
|
|
@@ -1284,154 +1261,193 @@ function Be(e, t = H) {
|
|
|
1284
1261
|
function o(s) {
|
|
1285
1262
|
i(s(e));
|
|
1286
1263
|
}
|
|
1287
|
-
function a(s,
|
|
1288
|
-
const u = [s,
|
|
1289
|
-
return
|
|
1290
|
-
|
|
1264
|
+
function a(s, l = H) {
|
|
1265
|
+
const u = [s, l];
|
|
1266
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || H), s(e), () => {
|
|
1267
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1291
1268
|
};
|
|
1292
1269
|
}
|
|
1293
1270
|
return { set: i, update: o, subscribe: a };
|
|
1294
1271
|
}
|
|
1295
|
-
function
|
|
1296
|
-
const
|
|
1272
|
+
function J(e, t, r) {
|
|
1273
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1297
1274
|
if (!i.every(Boolean))
|
|
1298
1275
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1299
1276
|
const o = t.length < 2;
|
|
1300
|
-
return
|
|
1301
|
-
let
|
|
1277
|
+
return vn(r, (a, s) => {
|
|
1278
|
+
let l = !1;
|
|
1302
1279
|
const u = [];
|
|
1303
|
-
let
|
|
1304
|
-
const
|
|
1305
|
-
if (
|
|
1280
|
+
let h = 0, f = H;
|
|
1281
|
+
const c = () => {
|
|
1282
|
+
if (h)
|
|
1306
1283
|
return;
|
|
1307
|
-
|
|
1308
|
-
const
|
|
1309
|
-
o ? a(
|
|
1310
|
-
},
|
|
1311
|
-
(
|
|
1312
|
-
|
|
1313
|
-
(
|
|
1314
|
-
u[m] =
|
|
1284
|
+
f();
|
|
1285
|
+
const p = t(n ? u[0] : u, a, s);
|
|
1286
|
+
o ? a(p) : f = ae(p) ? p : H;
|
|
1287
|
+
}, d = i.map(
|
|
1288
|
+
(p, m) => Ut(
|
|
1289
|
+
p,
|
|
1290
|
+
(_) => {
|
|
1291
|
+
u[m] = _, h &= ~(1 << m), l && c();
|
|
1315
1292
|
},
|
|
1316
1293
|
() => {
|
|
1317
|
-
|
|
1294
|
+
h |= 1 << m;
|
|
1318
1295
|
}
|
|
1319
1296
|
)
|
|
1320
1297
|
);
|
|
1321
|
-
return
|
|
1322
|
-
D(
|
|
1298
|
+
return l = !0, c(), function() {
|
|
1299
|
+
D(d), f(), l = !1;
|
|
1323
1300
|
};
|
|
1324
1301
|
});
|
|
1325
1302
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1303
|
+
var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1304
|
+
function _n(e) {
|
|
1328
1305
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1329
1306
|
}
|
|
1330
|
-
var
|
|
1331
|
-
return
|
|
1307
|
+
var En = function(t) {
|
|
1308
|
+
return xn(t) && !Sn(t);
|
|
1332
1309
|
};
|
|
1333
|
-
function
|
|
1310
|
+
function xn(e) {
|
|
1334
1311
|
return !!e && typeof e == "object";
|
|
1335
1312
|
}
|
|
1336
|
-
function
|
|
1313
|
+
function Sn(e) {
|
|
1337
1314
|
var t = Object.prototype.toString.call(e);
|
|
1338
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1315
|
+
return t === "[object RegExp]" || t === "[object Date]" || Hn(e);
|
|
1339
1316
|
}
|
|
1340
|
-
var
|
|
1341
|
-
function
|
|
1342
|
-
return e.$$typeof ===
|
|
1317
|
+
var wn = typeof Symbol == "function" && Symbol.for, Tn = wn ? Symbol.for("react.element") : 60103;
|
|
1318
|
+
function Hn(e) {
|
|
1319
|
+
return e.$$typeof === Tn;
|
|
1343
1320
|
}
|
|
1344
|
-
function
|
|
1321
|
+
function Bn(e) {
|
|
1345
1322
|
return Array.isArray(e) ? [] : {};
|
|
1346
1323
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1324
|
+
function oe(e, t) {
|
|
1325
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(Bn(e), e, t) : e;
|
|
1349
1326
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return e.concat(t).map(function(
|
|
1352
|
-
return
|
|
1327
|
+
function An(e, t, r) {
|
|
1328
|
+
return e.concat(t).map(function(n) {
|
|
1329
|
+
return oe(n, r);
|
|
1353
1330
|
});
|
|
1354
1331
|
}
|
|
1355
|
-
function
|
|
1332
|
+
function Pn(e, t) {
|
|
1356
1333
|
if (!t.customMerge)
|
|
1357
|
-
return
|
|
1358
|
-
var
|
|
1359
|
-
return typeof
|
|
1334
|
+
return z;
|
|
1335
|
+
var r = t.customMerge(e);
|
|
1336
|
+
return typeof r == "function" ? r : z;
|
|
1360
1337
|
}
|
|
1361
|
-
function
|
|
1338
|
+
function On(e) {
|
|
1362
1339
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1363
1340
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1364
1341
|
}) : [];
|
|
1365
1342
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return Object.keys(e).concat(
|
|
1343
|
+
function _t(e) {
|
|
1344
|
+
return Object.keys(e).concat(On(e));
|
|
1368
1345
|
}
|
|
1369
|
-
function
|
|
1346
|
+
function er(e, t) {
|
|
1370
1347
|
try {
|
|
1371
1348
|
return t in e;
|
|
1372
1349
|
} catch {
|
|
1373
1350
|
return !1;
|
|
1374
1351
|
}
|
|
1375
1352
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1353
|
+
function In(e, t) {
|
|
1354
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1378
1355
|
}
|
|
1379
|
-
function
|
|
1380
|
-
var
|
|
1381
|
-
return
|
|
1382
|
-
|
|
1383
|
-
}),
|
|
1384
|
-
|
|
1385
|
-
}),
|
|
1386
|
-
}
|
|
1387
|
-
function
|
|
1388
|
-
|
|
1389
|
-
var
|
|
1390
|
-
return o ?
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1356
|
+
function Ln(e, t, r) {
|
|
1357
|
+
var n = {};
|
|
1358
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1359
|
+
n[i] = oe(e[i], r);
|
|
1360
|
+
}), _t(t).forEach(function(i) {
|
|
1361
|
+
In(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1362
|
+
}), n;
|
|
1363
|
+
}
|
|
1364
|
+
function z(e, t, r) {
|
|
1365
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1366
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1367
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ln(e, t, r) : oe(t, r);
|
|
1368
|
+
}
|
|
1369
|
+
z.all = function(t, r) {
|
|
1393
1370
|
if (!Array.isArray(t))
|
|
1394
1371
|
throw new Error("first argument should be an array");
|
|
1395
|
-
return t.reduce(function(
|
|
1396
|
-
return
|
|
1372
|
+
return t.reduce(function(n, i) {
|
|
1373
|
+
return z(n, i, r);
|
|
1397
1374
|
}, {});
|
|
1398
1375
|
};
|
|
1399
|
-
var
|
|
1400
|
-
const
|
|
1401
|
-
function
|
|
1402
|
-
|
|
1376
|
+
var Nn = z, Cn = Nn;
|
|
1377
|
+
const Mn = /* @__PURE__ */ _n(Cn);
|
|
1378
|
+
var Je = function(e, t) {
|
|
1379
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1380
|
+
r.__proto__ = n;
|
|
1381
|
+
} || function(r, n) {
|
|
1382
|
+
for (var i in n)
|
|
1383
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1384
|
+
}, Je(e, t);
|
|
1385
|
+
};
|
|
1386
|
+
function Pe(e, t) {
|
|
1387
|
+
if (typeof t != "function" && t !== null)
|
|
1388
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1389
|
+
Je(e, t);
|
|
1390
|
+
function r() {
|
|
1391
|
+
this.constructor = e;
|
|
1392
|
+
}
|
|
1393
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1394
|
+
}
|
|
1395
|
+
var L = function() {
|
|
1396
|
+
return L = Object.assign || function(t) {
|
|
1397
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1398
|
+
r = arguments[n];
|
|
1399
|
+
for (var o in r)
|
|
1400
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1401
|
+
}
|
|
1402
|
+
return t;
|
|
1403
|
+
}, L.apply(this, arguments);
|
|
1404
|
+
};
|
|
1405
|
+
function $n(e, t) {
|
|
1406
|
+
var r = {};
|
|
1407
|
+
for (var n in e)
|
|
1408
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1409
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1410
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1411
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1412
|
+
return r;
|
|
1413
|
+
}
|
|
1414
|
+
function Re(e, t, r) {
|
|
1415
|
+
if (r || arguments.length === 2)
|
|
1416
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1417
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1418
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1419
|
+
}
|
|
1420
|
+
function Ue(e, t) {
|
|
1421
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
|
|
1403
1422
|
return i(e, {
|
|
1404
|
-
cache:
|
|
1405
|
-
serializer:
|
|
1423
|
+
cache: r,
|
|
1424
|
+
serializer: n
|
|
1406
1425
|
});
|
|
1407
1426
|
}
|
|
1408
|
-
function
|
|
1427
|
+
function Rn(e) {
|
|
1409
1428
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1410
1429
|
}
|
|
1411
|
-
function
|
|
1412
|
-
var i =
|
|
1413
|
-
return typeof o > "u" && (o = e.call(this,
|
|
1414
|
-
}
|
|
1415
|
-
function Yt(e, t, n) {
|
|
1416
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1417
|
-
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1430
|
+
function Un(e, t, r, n) {
|
|
1431
|
+
var i = Rn(n) ? n : r(n), o = t.get(i);
|
|
1432
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1418
1433
|
}
|
|
1419
|
-
function
|
|
1420
|
-
|
|
1434
|
+
function tr(e, t, r) {
|
|
1435
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1436
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1421
1437
|
}
|
|
1422
|
-
function
|
|
1423
|
-
|
|
1424
|
-
return rt(e, this, n, t.cache.create(), t.serializer);
|
|
1438
|
+
function rr(e, t, r, n, i) {
|
|
1439
|
+
return r.bind(t, e, n, i);
|
|
1425
1440
|
}
|
|
1426
|
-
function
|
|
1427
|
-
|
|
1441
|
+
function Dn(e, t) {
|
|
1442
|
+
var r = e.length === 1 ? Un : tr;
|
|
1443
|
+
return rr(e, this, r, t.cache.create(), t.serializer);
|
|
1428
1444
|
}
|
|
1429
|
-
function
|
|
1430
|
-
return
|
|
1445
|
+
function Gn(e, t) {
|
|
1446
|
+
return rr(e, this, tr, t.cache.create(), t.serializer);
|
|
1431
1447
|
}
|
|
1432
|
-
var
|
|
1448
|
+
var Fn = function() {
|
|
1433
1449
|
return JSON.stringify(arguments);
|
|
1434
|
-
},
|
|
1450
|
+
}, jn = (
|
|
1435
1451
|
/** @class */
|
|
1436
1452
|
function() {
|
|
1437
1453
|
function e() {
|
|
@@ -1439,18 +1455,27 @@ var Rr = function() {
|
|
|
1439
1455
|
}
|
|
1440
1456
|
return e.prototype.get = function(t) {
|
|
1441
1457
|
return this.cache[t];
|
|
1442
|
-
}, e.prototype.set = function(t,
|
|
1443
|
-
this.cache[t] =
|
|
1458
|
+
}, e.prototype.set = function(t, r) {
|
|
1459
|
+
this.cache[t] = r;
|
|
1444
1460
|
}, e;
|
|
1445
1461
|
}()
|
|
1446
|
-
),
|
|
1462
|
+
), kn = {
|
|
1447
1463
|
create: function() {
|
|
1448
|
-
return new
|
|
1464
|
+
return new jn();
|
|
1449
1465
|
}
|
|
1450
|
-
},
|
|
1451
|
-
variadic:
|
|
1452
|
-
|
|
1453
|
-
|
|
1466
|
+
}, De = {
|
|
1467
|
+
variadic: Gn
|
|
1468
|
+
}, we = function() {
|
|
1469
|
+
return we = Object.assign || function(t) {
|
|
1470
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1471
|
+
r = arguments[n];
|
|
1472
|
+
for (var o in r)
|
|
1473
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1474
|
+
}
|
|
1475
|
+
return t;
|
|
1476
|
+
}, we.apply(this, arguments);
|
|
1477
|
+
};
|
|
1478
|
+
var b;
|
|
1454
1479
|
(function(e) {
|
|
1455
1480
|
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";
|
|
1456
1481
|
})(b || (b = {}));
|
|
@@ -1458,54 +1483,54 @@ var v;
|
|
|
1458
1483
|
(function(e) {
|
|
1459
1484
|
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";
|
|
1460
1485
|
})(v || (v = {}));
|
|
1461
|
-
var
|
|
1486
|
+
var Z;
|
|
1462
1487
|
(function(e) {
|
|
1463
1488
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1464
|
-
})(
|
|
1465
|
-
function
|
|
1489
|
+
})(Z || (Z = {}));
|
|
1490
|
+
function Et(e) {
|
|
1466
1491
|
return e.type === v.literal;
|
|
1467
1492
|
}
|
|
1468
|
-
function
|
|
1493
|
+
function Vn(e) {
|
|
1469
1494
|
return e.type === v.argument;
|
|
1470
1495
|
}
|
|
1471
|
-
function
|
|
1496
|
+
function nr(e) {
|
|
1472
1497
|
return e.type === v.number;
|
|
1473
1498
|
}
|
|
1474
|
-
function
|
|
1499
|
+
function ir(e) {
|
|
1475
1500
|
return e.type === v.date;
|
|
1476
1501
|
}
|
|
1477
|
-
function
|
|
1502
|
+
function or(e) {
|
|
1478
1503
|
return e.type === v.time;
|
|
1479
1504
|
}
|
|
1480
|
-
function
|
|
1505
|
+
function sr(e) {
|
|
1481
1506
|
return e.type === v.select;
|
|
1482
1507
|
}
|
|
1483
|
-
function
|
|
1508
|
+
function ar(e) {
|
|
1484
1509
|
return e.type === v.plural;
|
|
1485
1510
|
}
|
|
1486
|
-
function
|
|
1511
|
+
function Xn(e) {
|
|
1487
1512
|
return e.type === v.pound;
|
|
1488
1513
|
}
|
|
1489
|
-
function
|
|
1514
|
+
function ur(e) {
|
|
1490
1515
|
return e.type === v.tag;
|
|
1491
1516
|
}
|
|
1492
|
-
function
|
|
1493
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1517
|
+
function lr(e) {
|
|
1518
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1494
1519
|
}
|
|
1495
|
-
function
|
|
1496
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1520
|
+
function Ye(e) {
|
|
1521
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1497
1522
|
}
|
|
1498
|
-
var
|
|
1499
|
-
function
|
|
1523
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[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;
|
|
1524
|
+
function zn(e) {
|
|
1500
1525
|
var t = {};
|
|
1501
|
-
return e.replace(
|
|
1502
|
-
var
|
|
1503
|
-
switch (
|
|
1526
|
+
return e.replace(Wn, function(r) {
|
|
1527
|
+
var n = r.length;
|
|
1528
|
+
switch (r[0]) {
|
|
1504
1529
|
case "G":
|
|
1505
|
-
t.era =
|
|
1530
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1506
1531
|
break;
|
|
1507
1532
|
case "y":
|
|
1508
|
-
t.year =
|
|
1533
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1509
1534
|
break;
|
|
1510
1535
|
case "Y":
|
|
1511
1536
|
case "u":
|
|
@@ -1517,30 +1542,30 @@ function kr(e) {
|
|
|
1517
1542
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1518
1543
|
case "M":
|
|
1519
1544
|
case "L":
|
|
1520
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1545
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1521
1546
|
break;
|
|
1522
1547
|
case "w":
|
|
1523
1548
|
case "W":
|
|
1524
1549
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1525
1550
|
case "d":
|
|
1526
|
-
t.day = ["numeric", "2-digit"][
|
|
1551
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1527
1552
|
break;
|
|
1528
1553
|
case "D":
|
|
1529
1554
|
case "F":
|
|
1530
1555
|
case "g":
|
|
1531
1556
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1532
1557
|
case "E":
|
|
1533
|
-
t.weekday =
|
|
1558
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1534
1559
|
break;
|
|
1535
1560
|
case "e":
|
|
1536
|
-
if (
|
|
1561
|
+
if (n < 4)
|
|
1537
1562
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1538
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1563
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1539
1564
|
break;
|
|
1540
1565
|
case "c":
|
|
1541
|
-
if (
|
|
1566
|
+
if (n < 4)
|
|
1542
1567
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1543
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1568
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1544
1569
|
break;
|
|
1545
1570
|
case "a":
|
|
1546
1571
|
t.hour12 = !0;
|
|
@@ -1549,32 +1574,32 @@ function kr(e) {
|
|
|
1549
1574
|
case "B":
|
|
1550
1575
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1551
1576
|
case "h":
|
|
1552
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1577
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1553
1578
|
break;
|
|
1554
1579
|
case "H":
|
|
1555
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1580
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1556
1581
|
break;
|
|
1557
1582
|
case "K":
|
|
1558
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1583
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1559
1584
|
break;
|
|
1560
1585
|
case "k":
|
|
1561
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1586
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1562
1587
|
break;
|
|
1563
1588
|
case "j":
|
|
1564
1589
|
case "J":
|
|
1565
1590
|
case "C":
|
|
1566
1591
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1567
1592
|
case "m":
|
|
1568
|
-
t.minute = ["numeric", "2-digit"][
|
|
1593
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1569
1594
|
break;
|
|
1570
1595
|
case "s":
|
|
1571
|
-
t.second = ["numeric", "2-digit"][
|
|
1596
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1572
1597
|
break;
|
|
1573
1598
|
case "S":
|
|
1574
1599
|
case "A":
|
|
1575
1600
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1576
1601
|
case "z":
|
|
1577
|
-
t.timeZoneName =
|
|
1602
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1578
1603
|
break;
|
|
1579
1604
|
case "Z":
|
|
1580
1605
|
case "O":
|
|
@@ -1587,36 +1612,46 @@ function kr(e) {
|
|
|
1587
1612
|
return "";
|
|
1588
1613
|
}), t;
|
|
1589
1614
|
}
|
|
1590
|
-
var
|
|
1591
|
-
function
|
|
1615
|
+
var E = function() {
|
|
1616
|
+
return E = Object.assign || function(t) {
|
|
1617
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1618
|
+
r = arguments[n];
|
|
1619
|
+
for (var o in r)
|
|
1620
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1621
|
+
}
|
|
1622
|
+
return t;
|
|
1623
|
+
}, E.apply(this, arguments);
|
|
1624
|
+
};
|
|
1625
|
+
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1626
|
+
function qn(e) {
|
|
1592
1627
|
if (e.length === 0)
|
|
1593
1628
|
throw new Error("Number skeleton cannot be empty");
|
|
1594
|
-
for (var t = e.split(
|
|
1595
|
-
return
|
|
1596
|
-
}),
|
|
1597
|
-
var o = i[
|
|
1629
|
+
for (var t = e.split(Zn).filter(function(c) {
|
|
1630
|
+
return c.length > 0;
|
|
1631
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1632
|
+
var o = i[n], a = o.split("/");
|
|
1598
1633
|
if (a.length === 0)
|
|
1599
1634
|
throw new Error("Invalid number skeleton");
|
|
1600
|
-
for (var s = a[0],
|
|
1601
|
-
var
|
|
1602
|
-
if (
|
|
1635
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1636
|
+
var f = h[u];
|
|
1637
|
+
if (f.length === 0)
|
|
1603
1638
|
throw new Error("Invalid number skeleton");
|
|
1604
1639
|
}
|
|
1605
|
-
|
|
1640
|
+
r.push({ stem: s, options: l });
|
|
1606
1641
|
}
|
|
1607
|
-
return
|
|
1642
|
+
return r;
|
|
1608
1643
|
}
|
|
1609
|
-
function
|
|
1644
|
+
function Qn(e) {
|
|
1610
1645
|
return e.replace(/^(.*?)-/, "");
|
|
1611
1646
|
}
|
|
1612
|
-
var
|
|
1613
|
-
function
|
|
1647
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
1648
|
+
function St(e) {
|
|
1614
1649
|
var t = {};
|
|
1615
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1616
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1650
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
1651
|
+
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)), "";
|
|
1617
1652
|
}), t;
|
|
1618
1653
|
}
|
|
1619
|
-
function
|
|
1654
|
+
function pr(e) {
|
|
1620
1655
|
switch (e) {
|
|
1621
1656
|
case "sign-auto":
|
|
1622
1657
|
return {
|
|
@@ -1656,27 +1691,27 @@ function ln(e) {
|
|
|
1656
1691
|
};
|
|
1657
1692
|
}
|
|
1658
1693
|
}
|
|
1659
|
-
function
|
|
1694
|
+
function Yn(e) {
|
|
1660
1695
|
var t;
|
|
1661
1696
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1662
1697
|
notation: "engineering"
|
|
1663
1698
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1664
1699
|
notation: "scientific"
|
|
1665
1700
|
}, e = e.slice(1)), t) {
|
|
1666
|
-
var
|
|
1667
|
-
if (
|
|
1701
|
+
var r = e.slice(0, 2);
|
|
1702
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
1668
1703
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1669
1704
|
t.minimumIntegerDigits = e.length;
|
|
1670
1705
|
}
|
|
1671
1706
|
return t;
|
|
1672
1707
|
}
|
|
1673
|
-
function
|
|
1674
|
-
var t = {},
|
|
1675
|
-
return
|
|
1708
|
+
function wt(e) {
|
|
1709
|
+
var t = {}, r = pr(e);
|
|
1710
|
+
return r || t;
|
|
1676
1711
|
}
|
|
1677
|
-
function
|
|
1678
|
-
for (var t = {},
|
|
1679
|
-
var i = r
|
|
1712
|
+
function Kn(e) {
|
|
1713
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1714
|
+
var i = n[r];
|
|
1680
1715
|
switch (i.stem) {
|
|
1681
1716
|
case "percent":
|
|
1682
1717
|
case "%":
|
|
@@ -1698,7 +1733,7 @@ function qr(e) {
|
|
|
1698
1733
|
continue;
|
|
1699
1734
|
case "measure-unit":
|
|
1700
1735
|
case "unit":
|
|
1701
|
-
t.style = "unit", t.unit =
|
|
1736
|
+
t.style = "unit", t.unit = Qn(i.options[0]);
|
|
1702
1737
|
continue;
|
|
1703
1738
|
case "compact-short":
|
|
1704
1739
|
case "K":
|
|
@@ -1709,13 +1744,13 @@ function qr(e) {
|
|
|
1709
1744
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1710
1745
|
continue;
|
|
1711
1746
|
case "scientific":
|
|
1712
|
-
t =
|
|
1713
|
-
return
|
|
1747
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1748
|
+
return E(E({}, l), wt(u));
|
|
1714
1749
|
}, {}));
|
|
1715
1750
|
continue;
|
|
1716
1751
|
case "engineering":
|
|
1717
|
-
t =
|
|
1718
|
-
return
|
|
1752
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1753
|
+
return E(E({}, l), wt(u));
|
|
1719
1754
|
}, {}));
|
|
1720
1755
|
continue;
|
|
1721
1756
|
case "notation-simple":
|
|
@@ -1760,41 +1795,41 @@ function qr(e) {
|
|
|
1760
1795
|
case "integer-width":
|
|
1761
1796
|
if (i.options.length > 1)
|
|
1762
1797
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1763
|
-
i.options[0].replace(
|
|
1798
|
+
i.options[0].replace(Jn, function(l, u, h, f, c, d) {
|
|
1764
1799
|
if (u)
|
|
1765
|
-
t.minimumIntegerDigits =
|
|
1800
|
+
t.minimumIntegerDigits = h.length;
|
|
1766
1801
|
else {
|
|
1767
|
-
if (
|
|
1802
|
+
if (f && c)
|
|
1768
1803
|
throw new Error("We currently do not support maximum integer digits");
|
|
1769
|
-
if (
|
|
1804
|
+
if (d)
|
|
1770
1805
|
throw new Error("We currently do not support exact integer digits");
|
|
1771
1806
|
}
|
|
1772
1807
|
return "";
|
|
1773
1808
|
});
|
|
1774
1809
|
continue;
|
|
1775
1810
|
}
|
|
1776
|
-
if (
|
|
1811
|
+
if (fr.test(i.stem)) {
|
|
1777
1812
|
t.minimumIntegerDigits = i.stem.length;
|
|
1778
1813
|
continue;
|
|
1779
1814
|
}
|
|
1780
|
-
if (
|
|
1815
|
+
if (xt.test(i.stem)) {
|
|
1781
1816
|
if (i.options.length > 1)
|
|
1782
1817
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1783
|
-
i.stem.replace(
|
|
1784
|
-
return
|
|
1818
|
+
i.stem.replace(xt, function(l, u, h, f, c, d) {
|
|
1819
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1785
1820
|
});
|
|
1786
1821
|
var o = i.options[0];
|
|
1787
|
-
o === "w" ? t =
|
|
1822
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), St(o)));
|
|
1788
1823
|
continue;
|
|
1789
1824
|
}
|
|
1790
|
-
if (
|
|
1791
|
-
t =
|
|
1825
|
+
if (cr.test(i.stem)) {
|
|
1826
|
+
t = E(E({}, t), St(i.stem));
|
|
1792
1827
|
continue;
|
|
1793
1828
|
}
|
|
1794
|
-
var a =
|
|
1795
|
-
a && (t =
|
|
1796
|
-
var s =
|
|
1797
|
-
s && (t =
|
|
1829
|
+
var a = pr(i.stem);
|
|
1830
|
+
a && (t = E(E({}, t), a));
|
|
1831
|
+
var s = Yn(i.stem);
|
|
1832
|
+
s && (t = E(E({}, t), s));
|
|
1798
1833
|
}
|
|
1799
1834
|
return t;
|
|
1800
1835
|
}
|
|
@@ -3213,23 +3248,23 @@ var me = {
|
|
|
3213
3248
|
"h"
|
|
3214
3249
|
]
|
|
3215
3250
|
};
|
|
3216
|
-
function
|
|
3217
|
-
for (var
|
|
3218
|
-
var i = e.charAt(
|
|
3251
|
+
function ei(e, t) {
|
|
3252
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3253
|
+
var i = e.charAt(n);
|
|
3219
3254
|
if (i === "j") {
|
|
3220
|
-
for (var o = 0;
|
|
3221
|
-
o++,
|
|
3222
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3255
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3256
|
+
o++, n++;
|
|
3257
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ti(t);
|
|
3223
3258
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3224
|
-
|
|
3259
|
+
r += l;
|
|
3225
3260
|
for (; a-- > 0; )
|
|
3226
|
-
|
|
3261
|
+
r = u + r;
|
|
3227
3262
|
} else
|
|
3228
|
-
i === "J" ?
|
|
3263
|
+
i === "J" ? r += "H" : r += i;
|
|
3229
3264
|
}
|
|
3230
|
-
return
|
|
3265
|
+
return r;
|
|
3231
3266
|
}
|
|
3232
|
-
function
|
|
3267
|
+
function ti(e) {
|
|
3233
3268
|
var t = e.hourCycle;
|
|
3234
3269
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3235
3270
|
e.hourCycles && // @ts-ignore
|
|
@@ -3246,73 +3281,73 @@ function Jr(e) {
|
|
|
3246
3281
|
default:
|
|
3247
3282
|
throw new Error("Invalid hourCycle");
|
|
3248
3283
|
}
|
|
3249
|
-
var
|
|
3250
|
-
|
|
3251
|
-
var i = me[
|
|
3284
|
+
var r = e.language, n;
|
|
3285
|
+
r !== "root" && (n = e.maximize().region);
|
|
3286
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
3252
3287
|
return i[0];
|
|
3253
3288
|
}
|
|
3254
|
-
var
|
|
3255
|
-
function
|
|
3289
|
+
var Ge, ri = new RegExp("^".concat(hr.source, "*")), ni = new RegExp("".concat(hr.source, "*$"));
|
|
3290
|
+
function y(e, t) {
|
|
3256
3291
|
return { start: e, end: t };
|
|
3257
3292
|
}
|
|
3258
|
-
var
|
|
3293
|
+
var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, li = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, ci = hi ? Number.isSafeInteger : function(e) {
|
|
3259
3294
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3260
|
-
},
|
|
3295
|
+
}, Ke = !0;
|
|
3261
3296
|
try {
|
|
3262
|
-
var
|
|
3263
|
-
|
|
3297
|
+
var fi = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3298
|
+
Ke = ((Ge = fi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3264
3299
|
} catch {
|
|
3265
|
-
|
|
3300
|
+
Ke = !1;
|
|
3266
3301
|
}
|
|
3267
|
-
var
|
|
3302
|
+
var Tt = ii ? (
|
|
3268
3303
|
// Native
|
|
3269
|
-
function(t,
|
|
3270
|
-
return t.startsWith(
|
|
3304
|
+
function(t, r, n) {
|
|
3305
|
+
return t.startsWith(r, n);
|
|
3271
3306
|
}
|
|
3272
3307
|
) : (
|
|
3273
3308
|
// For IE11
|
|
3274
|
-
function(t,
|
|
3275
|
-
return t.slice(
|
|
3309
|
+
function(t, r, n) {
|
|
3310
|
+
return t.slice(n, n + r.length) === r;
|
|
3276
3311
|
}
|
|
3277
|
-
),
|
|
3312
|
+
), et = oi ? String.fromCodePoint : (
|
|
3278
3313
|
// IE11
|
|
3279
3314
|
function() {
|
|
3280
|
-
for (var t = [],
|
|
3281
|
-
t[
|
|
3282
|
-
for (var
|
|
3315
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3316
|
+
t[r] = arguments[r];
|
|
3317
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3283
3318
|
if (a = t[o++], a > 1114111)
|
|
3284
3319
|
throw RangeError(a + " is not a valid code point");
|
|
3285
|
-
|
|
3320
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3286
3321
|
}
|
|
3287
|
-
return
|
|
3322
|
+
return n;
|
|
3288
3323
|
}
|
|
3289
|
-
),
|
|
3324
|
+
), Ht = (
|
|
3290
3325
|
// native
|
|
3291
|
-
|
|
3326
|
+
si ? Object.fromEntries : (
|
|
3292
3327
|
// Ponyfill
|
|
3293
3328
|
function(t) {
|
|
3294
|
-
for (var
|
|
3295
|
-
var o = i[
|
|
3296
|
-
|
|
3329
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3330
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3331
|
+
r[a] = s;
|
|
3297
3332
|
}
|
|
3298
|
-
return
|
|
3333
|
+
return r;
|
|
3299
3334
|
}
|
|
3300
3335
|
)
|
|
3301
|
-
),
|
|
3336
|
+
), dr = ai ? (
|
|
3302
3337
|
// Native
|
|
3303
|
-
function(t,
|
|
3304
|
-
return t.codePointAt(
|
|
3338
|
+
function(t, r) {
|
|
3339
|
+
return t.codePointAt(r);
|
|
3305
3340
|
}
|
|
3306
3341
|
) : (
|
|
3307
3342
|
// IE 11
|
|
3308
|
-
function(t,
|
|
3309
|
-
var
|
|
3310
|
-
if (!(
|
|
3311
|
-
var i = t.charCodeAt(
|
|
3312
|
-
return i < 55296 || i > 56319 ||
|
|
3343
|
+
function(t, r) {
|
|
3344
|
+
var n = t.length;
|
|
3345
|
+
if (!(r < 0 || r >= n)) {
|
|
3346
|
+
var i = t.charCodeAt(r), o;
|
|
3347
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3313
3348
|
}
|
|
3314
3349
|
}
|
|
3315
|
-
),
|
|
3350
|
+
), pi = ui ? (
|
|
3316
3351
|
// Native
|
|
3317
3352
|
function(t) {
|
|
3318
3353
|
return t.trimStart();
|
|
@@ -3320,9 +3355,9 @@ var xt = ei ? (
|
|
|
3320
3355
|
) : (
|
|
3321
3356
|
// Ponyfill
|
|
3322
3357
|
function(t) {
|
|
3323
|
-
return t.replace(
|
|
3358
|
+
return t.replace(ri, "");
|
|
3324
3359
|
}
|
|
3325
|
-
),
|
|
3360
|
+
), di = li ? (
|
|
3326
3361
|
// Native
|
|
3327
3362
|
function(t) {
|
|
3328
3363
|
return t.trimEnd();
|
|
@@ -3330,69 +3365,69 @@ var xt = ei ? (
|
|
|
3330
3365
|
) : (
|
|
3331
3366
|
// Ponyfill
|
|
3332
3367
|
function(t) {
|
|
3333
|
-
return t.replace(
|
|
3368
|
+
return t.replace(ni, "");
|
|
3334
3369
|
}
|
|
3335
3370
|
);
|
|
3336
|
-
function
|
|
3371
|
+
function mr(e, t) {
|
|
3337
3372
|
return new RegExp(e, t);
|
|
3338
3373
|
}
|
|
3339
|
-
var
|
|
3340
|
-
if (
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
var
|
|
3344
|
-
|
|
3345
|
-
var i =
|
|
3346
|
-
return (
|
|
3374
|
+
var tt;
|
|
3375
|
+
if (Ke) {
|
|
3376
|
+
var Bt = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3377
|
+
tt = function(t, r) {
|
|
3378
|
+
var n;
|
|
3379
|
+
Bt.lastIndex = r;
|
|
3380
|
+
var i = Bt.exec(t);
|
|
3381
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3347
3382
|
};
|
|
3348
3383
|
} else
|
|
3349
|
-
|
|
3350
|
-
for (var
|
|
3351
|
-
var i =
|
|
3352
|
-
if (i === void 0 ||
|
|
3384
|
+
tt = function(t, r) {
|
|
3385
|
+
for (var n = []; ; ) {
|
|
3386
|
+
var i = dr(t, r);
|
|
3387
|
+
if (i === void 0 || br(i) || gi(i))
|
|
3353
3388
|
break;
|
|
3354
|
-
|
|
3389
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3355
3390
|
}
|
|
3356
|
-
return
|
|
3391
|
+
return et.apply(void 0, n);
|
|
3357
3392
|
};
|
|
3358
|
-
var
|
|
3393
|
+
var mi = (
|
|
3359
3394
|
/** @class */
|
|
3360
3395
|
function() {
|
|
3361
|
-
function e(t,
|
|
3362
|
-
|
|
3396
|
+
function e(t, r) {
|
|
3397
|
+
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;
|
|
3363
3398
|
}
|
|
3364
3399
|
return e.prototype.parse = function() {
|
|
3365
3400
|
if (this.offset() !== 0)
|
|
3366
3401
|
throw Error("parser can only be used once");
|
|
3367
3402
|
return this.parseMessage(0, "", !1);
|
|
3368
|
-
}, e.prototype.parseMessage = function(t,
|
|
3403
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3369
3404
|
for (var i = []; !this.isEOF(); ) {
|
|
3370
3405
|
var o = this.char();
|
|
3371
3406
|
if (o === 123) {
|
|
3372
|
-
var a = this.parseArgument(t,
|
|
3407
|
+
var a = this.parseArgument(t, n);
|
|
3373
3408
|
if (a.err)
|
|
3374
3409
|
return a;
|
|
3375
3410
|
i.push(a.val);
|
|
3376
3411
|
} else {
|
|
3377
3412
|
if (o === 125 && t > 0)
|
|
3378
3413
|
break;
|
|
3379
|
-
if (o === 35 && (
|
|
3414
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3380
3415
|
var s = this.clonePosition();
|
|
3381
3416
|
this.bump(), i.push({
|
|
3382
3417
|
type: v.pound,
|
|
3383
|
-
location:
|
|
3418
|
+
location: y(s, this.clonePosition())
|
|
3384
3419
|
});
|
|
3385
3420
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3386
|
-
if (
|
|
3421
|
+
if (n)
|
|
3387
3422
|
break;
|
|
3388
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3389
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3390
|
-
var a = this.parseTag(t,
|
|
3423
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3424
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3425
|
+
var a = this.parseTag(t, r);
|
|
3391
3426
|
if (a.err)
|
|
3392
3427
|
return a;
|
|
3393
3428
|
i.push(a.val);
|
|
3394
3429
|
} else {
|
|
3395
|
-
var a = this.parseLiteral(t,
|
|
3430
|
+
var a = this.parseLiteral(t, r);
|
|
3396
3431
|
if (a.err)
|
|
3397
3432
|
return a;
|
|
3398
3433
|
i.push(a.val);
|
|
@@ -3400,8 +3435,8 @@ var fi = (
|
|
|
3400
3435
|
}
|
|
3401
3436
|
}
|
|
3402
3437
|
return { val: i, err: null };
|
|
3403
|
-
}, e.prototype.parseTag = function(t,
|
|
3404
|
-
var
|
|
3438
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3439
|
+
var n = this.clonePosition();
|
|
3405
3440
|
this.bump();
|
|
3406
3441
|
var i = this.parseTagName();
|
|
3407
3442
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3409,45 +3444,45 @@ var fi = (
|
|
|
3409
3444
|
val: {
|
|
3410
3445
|
type: v.literal,
|
|
3411
3446
|
value: "<".concat(i, "/>"),
|
|
3412
|
-
location:
|
|
3447
|
+
location: y(n, this.clonePosition())
|
|
3413
3448
|
},
|
|
3414
3449
|
err: null
|
|
3415
3450
|
};
|
|
3416
3451
|
if (this.bumpIf(">")) {
|
|
3417
|
-
var o = this.parseMessage(t + 1,
|
|
3452
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3418
3453
|
if (o.err)
|
|
3419
3454
|
return o;
|
|
3420
3455
|
var a = o.val, s = this.clonePosition();
|
|
3421
3456
|
if (this.bumpIf("</")) {
|
|
3422
|
-
if (this.isEOF() || !
|
|
3423
|
-
return this.error(b.INVALID_TAG,
|
|
3424
|
-
var
|
|
3425
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3457
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3458
|
+
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3459
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3460
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3426
3461
|
val: {
|
|
3427
3462
|
type: v.tag,
|
|
3428
3463
|
value: i,
|
|
3429
3464
|
children: a,
|
|
3430
|
-
location:
|
|
3465
|
+
location: y(n, this.clonePosition())
|
|
3431
3466
|
},
|
|
3432
3467
|
err: null
|
|
3433
|
-
} : this.error(b.INVALID_TAG,
|
|
3468
|
+
} : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
|
|
3434
3469
|
} else
|
|
3435
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3470
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3436
3471
|
} else
|
|
3437
|
-
return this.error(b.INVALID_TAG,
|
|
3472
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3438
3473
|
}, e.prototype.parseTagName = function() {
|
|
3439
3474
|
var t = this.offset();
|
|
3440
|
-
for (this.bump(); !this.isEOF() &&
|
|
3475
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
|
3441
3476
|
this.bump();
|
|
3442
3477
|
return this.message.slice(t, this.offset());
|
|
3443
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3444
|
-
for (var
|
|
3445
|
-
var o = this.tryParseQuote(
|
|
3478
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3479
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3480
|
+
var o = this.tryParseQuote(r);
|
|
3446
3481
|
if (o) {
|
|
3447
3482
|
i += o;
|
|
3448
3483
|
continue;
|
|
3449
3484
|
}
|
|
3450
|
-
var a = this.tryParseUnquoted(t,
|
|
3485
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3451
3486
|
if (a) {
|
|
3452
3487
|
i += a;
|
|
3453
3488
|
continue;
|
|
@@ -3459,14 +3494,14 @@ var fi = (
|
|
|
3459
3494
|
}
|
|
3460
3495
|
break;
|
|
3461
3496
|
}
|
|
3462
|
-
var
|
|
3497
|
+
var l = y(n, this.clonePosition());
|
|
3463
3498
|
return {
|
|
3464
|
-
val: { type: v.literal, value: i, location:
|
|
3499
|
+
val: { type: v.literal, value: i, location: l },
|
|
3465
3500
|
err: null
|
|
3466
3501
|
};
|
|
3467
3502
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3468
3503
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3469
|
-
!
|
|
3504
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3470
3505
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3471
3506
|
if (this.isEOF() || this.char() !== 39)
|
|
3472
3507
|
return null;
|
|
@@ -3486,37 +3521,37 @@ var fi = (
|
|
|
3486
3521
|
return null;
|
|
3487
3522
|
}
|
|
3488
3523
|
this.bump();
|
|
3489
|
-
var
|
|
3524
|
+
var r = [this.char()];
|
|
3490
3525
|
for (this.bump(); !this.isEOF(); ) {
|
|
3491
|
-
var
|
|
3492
|
-
if (
|
|
3526
|
+
var n = this.char();
|
|
3527
|
+
if (n === 39)
|
|
3493
3528
|
if (this.peek() === 39)
|
|
3494
|
-
|
|
3529
|
+
r.push(39), this.bump();
|
|
3495
3530
|
else {
|
|
3496
3531
|
this.bump();
|
|
3497
3532
|
break;
|
|
3498
3533
|
}
|
|
3499
3534
|
else
|
|
3500
|
-
|
|
3535
|
+
r.push(n);
|
|
3501
3536
|
this.bump();
|
|
3502
3537
|
}
|
|
3503
|
-
return
|
|
3504
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3538
|
+
return et.apply(void 0, r);
|
|
3539
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3505
3540
|
if (this.isEOF())
|
|
3506
3541
|
return null;
|
|
3507
|
-
var
|
|
3508
|
-
return
|
|
3509
|
-
}, e.prototype.parseArgument = function(t,
|
|
3510
|
-
var
|
|
3542
|
+
var n = this.char();
|
|
3543
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3544
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3545
|
+
var n = this.clonePosition();
|
|
3511
3546
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3512
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3547
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3513
3548
|
if (this.char() === 125)
|
|
3514
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3549
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3515
3550
|
var i = this.parseIdentifierIfPossible().value;
|
|
3516
3551
|
if (!i)
|
|
3517
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3552
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3518
3553
|
if (this.bumpSpace(), this.isEOF())
|
|
3519
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3554
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3520
3555
|
switch (this.char()) {
|
|
3521
3556
|
case 125:
|
|
3522
3557
|
return this.bump(), {
|
|
@@ -3524,25 +3559,25 @@ var fi = (
|
|
|
3524
3559
|
type: v.argument,
|
|
3525
3560
|
// value does not include the opening and closing braces.
|
|
3526
3561
|
value: i,
|
|
3527
|
-
location:
|
|
3562
|
+
location: y(n, this.clonePosition())
|
|
3528
3563
|
},
|
|
3529
3564
|
err: null
|
|
3530
3565
|
};
|
|
3531
3566
|
case 44:
|
|
3532
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3567
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3533
3568
|
default:
|
|
3534
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3569
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3535
3570
|
}
|
|
3536
3571
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3537
|
-
var t = this.clonePosition(),
|
|
3572
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3538
3573
|
this.bumpTo(i);
|
|
3539
|
-
var o = this.clonePosition(), a =
|
|
3540
|
-
return { value:
|
|
3541
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3542
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3574
|
+
var o = this.clonePosition(), a = y(t, o);
|
|
3575
|
+
return { value: n, location: a };
|
|
3576
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3577
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3543
3578
|
switch (s) {
|
|
3544
3579
|
case "":
|
|
3545
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3580
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
|
|
3546
3581
|
case "number":
|
|
3547
3582
|
case "date":
|
|
3548
3583
|
case "time": {
|
|
@@ -3550,40 +3585,40 @@ var fi = (
|
|
|
3550
3585
|
var u = null;
|
|
3551
3586
|
if (this.bumpIf(",")) {
|
|
3552
3587
|
this.bumpSpace();
|
|
3553
|
-
var
|
|
3554
|
-
if (
|
|
3555
|
-
return
|
|
3556
|
-
var
|
|
3557
|
-
if (
|
|
3558
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3559
|
-
var
|
|
3560
|
-
u = { style:
|
|
3588
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3589
|
+
if (f.err)
|
|
3590
|
+
return f;
|
|
3591
|
+
var c = di(f.val);
|
|
3592
|
+
if (c.length === 0)
|
|
3593
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3594
|
+
var d = y(h, this.clonePosition());
|
|
3595
|
+
u = { style: c, styleLocation: d };
|
|
3561
3596
|
}
|
|
3562
|
-
var
|
|
3563
|
-
if (
|
|
3564
|
-
return
|
|
3565
|
-
var m =
|
|
3566
|
-
if (u &&
|
|
3567
|
-
var
|
|
3597
|
+
var p = this.tryParseArgumentClose(i);
|
|
3598
|
+
if (p.err)
|
|
3599
|
+
return p;
|
|
3600
|
+
var m = y(i, this.clonePosition());
|
|
3601
|
+
if (u && Tt(u?.style, "::", 0)) {
|
|
3602
|
+
var _ = pi(u.style.slice(2));
|
|
3568
3603
|
if (s === "number") {
|
|
3569
|
-
var
|
|
3570
|
-
return
|
|
3571
|
-
val: { type: v.number, value:
|
|
3604
|
+
var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3605
|
+
return f.err ? f : {
|
|
3606
|
+
val: { type: v.number, value: n, location: m, style: f.val },
|
|
3572
3607
|
err: null
|
|
3573
3608
|
};
|
|
3574
3609
|
} else {
|
|
3575
|
-
if (
|
|
3610
|
+
if (_.length === 0)
|
|
3576
3611
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3577
|
-
var
|
|
3578
|
-
this.locale && (
|
|
3579
|
-
var
|
|
3580
|
-
type:
|
|
3581
|
-
pattern:
|
|
3612
|
+
var w = _;
|
|
3613
|
+
this.locale && (w = ei(_, this.locale));
|
|
3614
|
+
var c = {
|
|
3615
|
+
type: Z.dateTime,
|
|
3616
|
+
pattern: w,
|
|
3582
3617
|
location: u.styleLocation,
|
|
3583
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3618
|
+
parsedOptions: this.shouldParseSkeletons ? zn(w) : {}
|
|
3584
3619
|
}, P = s === "date" ? v.date : v.time;
|
|
3585
3620
|
return {
|
|
3586
|
-
val: { type: P, value:
|
|
3621
|
+
val: { type: P, value: n, location: m, style: c },
|
|
3587
3622
|
err: null
|
|
3588
3623
|
};
|
|
3589
3624
|
}
|
|
@@ -3591,7 +3626,7 @@ var fi = (
|
|
|
3591
3626
|
return {
|
|
3592
3627
|
val: {
|
|
3593
3628
|
type: s === "number" ? v.number : s === "date" ? v.date : v.time,
|
|
3594
|
-
value:
|
|
3629
|
+
value: n,
|
|
3595
3630
|
location: m,
|
|
3596
3631
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3597
3632
|
},
|
|
@@ -3601,61 +3636,61 @@ var fi = (
|
|
|
3601
3636
|
case "plural":
|
|
3602
3637
|
case "selectordinal":
|
|
3603
3638
|
case "select": {
|
|
3604
|
-
var
|
|
3639
|
+
var x = this.clonePosition();
|
|
3605
3640
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3606
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3641
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(x, we({}, x)));
|
|
3607
3642
|
this.bumpSpace();
|
|
3608
|
-
var O = this.parseIdentifierIfPossible(),
|
|
3643
|
+
var O = this.parseIdentifierIfPossible(), T = 0;
|
|
3609
3644
|
if (s !== "select" && O.value === "offset") {
|
|
3610
3645
|
if (!this.bumpIf(":"))
|
|
3611
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3646
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3612
3647
|
this.bumpSpace();
|
|
3613
|
-
var
|
|
3614
|
-
if (
|
|
3615
|
-
return
|
|
3616
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
3648
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3649
|
+
if (f.err)
|
|
3650
|
+
return f;
|
|
3651
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = f.val;
|
|
3617
3652
|
}
|
|
3618
|
-
var $ = this.tryParsePluralOrSelectOptions(t, s,
|
|
3653
|
+
var $ = this.tryParsePluralOrSelectOptions(t, s, r, O);
|
|
3619
3654
|
if ($.err)
|
|
3620
3655
|
return $;
|
|
3621
|
-
var
|
|
3622
|
-
if (
|
|
3623
|
-
return
|
|
3624
|
-
var
|
|
3656
|
+
var p = this.tryParseArgumentClose(i);
|
|
3657
|
+
if (p.err)
|
|
3658
|
+
return p;
|
|
3659
|
+
var fe = y(i, this.clonePosition());
|
|
3625
3660
|
return s === "select" ? {
|
|
3626
3661
|
val: {
|
|
3627
3662
|
type: v.select,
|
|
3628
|
-
value:
|
|
3629
|
-
options:
|
|
3630
|
-
location:
|
|
3663
|
+
value: n,
|
|
3664
|
+
options: Ht($.val),
|
|
3665
|
+
location: fe
|
|
3631
3666
|
},
|
|
3632
3667
|
err: null
|
|
3633
3668
|
} : {
|
|
3634
3669
|
val: {
|
|
3635
3670
|
type: v.plural,
|
|
3636
|
-
value:
|
|
3637
|
-
options:
|
|
3638
|
-
offset:
|
|
3671
|
+
value: n,
|
|
3672
|
+
options: Ht($.val),
|
|
3673
|
+
offset: T,
|
|
3639
3674
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3640
|
-
location:
|
|
3675
|
+
location: fe
|
|
3641
3676
|
},
|
|
3642
3677
|
err: null
|
|
3643
3678
|
};
|
|
3644
3679
|
}
|
|
3645
3680
|
default:
|
|
3646
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3681
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
|
|
3647
3682
|
}
|
|
3648
3683
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3649
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3684
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3650
3685
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3651
|
-
for (var t = 0,
|
|
3652
|
-
var
|
|
3653
|
-
switch (
|
|
3686
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3687
|
+
var n = this.char();
|
|
3688
|
+
switch (n) {
|
|
3654
3689
|
case 39: {
|
|
3655
3690
|
this.bump();
|
|
3656
3691
|
var i = this.clonePosition();
|
|
3657
3692
|
if (!this.bumpUntil("'"))
|
|
3658
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3693
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3659
3694
|
this.bump();
|
|
3660
3695
|
break;
|
|
3661
3696
|
}
|
|
@@ -3668,7 +3703,7 @@ var fi = (
|
|
|
3668
3703
|
t -= 1;
|
|
3669
3704
|
else
|
|
3670
3705
|
return {
|
|
3671
|
-
val: this.message.slice(
|
|
3706
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3672
3707
|
err: null
|
|
3673
3708
|
};
|
|
3674
3709
|
break;
|
|
@@ -3679,61 +3714,61 @@ var fi = (
|
|
|
3679
3714
|
}
|
|
3680
3715
|
}
|
|
3681
3716
|
return {
|
|
3682
|
-
val: this.message.slice(
|
|
3717
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3683
3718
|
err: null
|
|
3684
3719
|
};
|
|
3685
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3686
|
-
var
|
|
3720
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3721
|
+
var n = [];
|
|
3687
3722
|
try {
|
|
3688
|
-
|
|
3723
|
+
n = qn(t);
|
|
3689
3724
|
} catch {
|
|
3690
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3725
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3691
3726
|
}
|
|
3692
3727
|
return {
|
|
3693
3728
|
val: {
|
|
3694
|
-
type:
|
|
3695
|
-
tokens:
|
|
3696
|
-
location:
|
|
3697
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3729
|
+
type: Z.number,
|
|
3730
|
+
tokens: n,
|
|
3731
|
+
location: r,
|
|
3732
|
+
parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
|
|
3698
3733
|
},
|
|
3699
3734
|
err: null
|
|
3700
3735
|
};
|
|
3701
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3702
|
-
for (var o, a = !1, s = [],
|
|
3736
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3737
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3703
3738
|
if (u.length === 0) {
|
|
3704
|
-
var
|
|
3705
|
-
if (
|
|
3706
|
-
var
|
|
3707
|
-
if (
|
|
3708
|
-
return
|
|
3709
|
-
|
|
3739
|
+
var f = this.clonePosition();
|
|
3740
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3741
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3742
|
+
if (c.err)
|
|
3743
|
+
return c;
|
|
3744
|
+
h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3710
3745
|
} else
|
|
3711
3746
|
break;
|
|
3712
3747
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
return this.error(
|
|
3748
|
+
if (l.has(u))
|
|
3749
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3715
3750
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3716
|
-
var
|
|
3751
|
+
var d = this.clonePosition();
|
|
3717
3752
|
if (!this.bumpIf("{"))
|
|
3718
|
-
return this.error(
|
|
3719
|
-
var
|
|
3720
|
-
if (
|
|
3721
|
-
return
|
|
3722
|
-
var m = this.tryParseArgumentClose(
|
|
3753
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3754
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3755
|
+
if (p.err)
|
|
3756
|
+
return p;
|
|
3757
|
+
var m = this.tryParseArgumentClose(d);
|
|
3723
3758
|
if (m.err)
|
|
3724
3759
|
return m;
|
|
3725
3760
|
s.push([
|
|
3726
3761
|
u,
|
|
3727
3762
|
{
|
|
3728
|
-
value:
|
|
3729
|
-
location:
|
|
3763
|
+
value: p.val,
|
|
3764
|
+
location: y(d, this.clonePosition())
|
|
3730
3765
|
}
|
|
3731
|
-
]),
|
|
3766
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3732
3767
|
}
|
|
3733
|
-
return s.length === 0 ? this.error(
|
|
3734
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3735
|
-
var
|
|
3736
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3768
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3769
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3770
|
+
var n = 1, i = this.clonePosition();
|
|
3771
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3737
3772
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3738
3773
|
var s = this.char();
|
|
3739
3774
|
if (s >= 48 && s <= 57)
|
|
@@ -3741,8 +3776,8 @@ var fi = (
|
|
|
3741
3776
|
else
|
|
3742
3777
|
break;
|
|
3743
3778
|
}
|
|
3744
|
-
var
|
|
3745
|
-
return o ? (a *=
|
|
3779
|
+
var l = y(i, this.clonePosition());
|
|
3780
|
+
return o ? (a *= n, ci(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3746
3781
|
}, e.prototype.offset = function() {
|
|
3747
3782
|
return this.position.offset;
|
|
3748
3783
|
}, e.prototype.isEOF = function() {
|
|
@@ -3757,17 +3792,17 @@ var fi = (
|
|
|
3757
3792
|
var t = this.position.offset;
|
|
3758
3793
|
if (t >= this.message.length)
|
|
3759
3794
|
throw Error("out of bound");
|
|
3760
|
-
var
|
|
3761
|
-
if (
|
|
3795
|
+
var r = dr(this.message, t);
|
|
3796
|
+
if (r === void 0)
|
|
3762
3797
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3763
|
-
return
|
|
3764
|
-
}, e.prototype.error = function(t,
|
|
3798
|
+
return r;
|
|
3799
|
+
}, e.prototype.error = function(t, r) {
|
|
3765
3800
|
return {
|
|
3766
3801
|
val: null,
|
|
3767
3802
|
err: {
|
|
3768
3803
|
kind: t,
|
|
3769
3804
|
message: this.message,
|
|
3770
|
-
location:
|
|
3805
|
+
location: r
|
|
3771
3806
|
}
|
|
3772
3807
|
};
|
|
3773
3808
|
}, e.prototype.bump = function() {
|
|
@@ -3776,320 +3811,320 @@ var fi = (
|
|
|
3776
3811
|
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);
|
|
3777
3812
|
}
|
|
3778
3813
|
}, e.prototype.bumpIf = function(t) {
|
|
3779
|
-
if (
|
|
3780
|
-
for (var
|
|
3814
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3815
|
+
for (var r = 0; r < t.length; r++)
|
|
3781
3816
|
this.bump();
|
|
3782
3817
|
return !0;
|
|
3783
3818
|
}
|
|
3784
3819
|
return !1;
|
|
3785
3820
|
}, e.prototype.bumpUntil = function(t) {
|
|
3786
|
-
var
|
|
3787
|
-
return
|
|
3821
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3822
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3788
3823
|
}, e.prototype.bumpTo = function(t) {
|
|
3789
3824
|
if (this.offset() > t)
|
|
3790
3825
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3791
3826
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3792
|
-
var
|
|
3793
|
-
if (
|
|
3827
|
+
var r = this.offset();
|
|
3828
|
+
if (r === t)
|
|
3794
3829
|
break;
|
|
3795
|
-
if (
|
|
3830
|
+
if (r > t)
|
|
3796
3831
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3797
3832
|
if (this.bump(), this.isEOF())
|
|
3798
3833
|
break;
|
|
3799
3834
|
}
|
|
3800
3835
|
}, e.prototype.bumpSpace = function() {
|
|
3801
|
-
for (; !this.isEOF() &&
|
|
3836
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3802
3837
|
this.bump();
|
|
3803
3838
|
}, e.prototype.peek = function() {
|
|
3804
3839
|
if (this.isEOF())
|
|
3805
3840
|
return null;
|
|
3806
|
-
var t = this.char(),
|
|
3807
|
-
return
|
|
3841
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3842
|
+
return n ?? null;
|
|
3808
3843
|
}, e;
|
|
3809
3844
|
}()
|
|
3810
3845
|
);
|
|
3811
|
-
function
|
|
3846
|
+
function rt(e) {
|
|
3812
3847
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3813
3848
|
}
|
|
3814
|
-
function
|
|
3815
|
-
return
|
|
3849
|
+
function bi(e) {
|
|
3850
|
+
return rt(e) || e === 47;
|
|
3816
3851
|
}
|
|
3817
|
-
function
|
|
3852
|
+
function yi(e) {
|
|
3818
3853
|
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;
|
|
3819
3854
|
}
|
|
3820
|
-
function
|
|
3855
|
+
function br(e) {
|
|
3821
3856
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3822
3857
|
}
|
|
3823
|
-
function
|
|
3858
|
+
function gi(e) {
|
|
3824
3859
|
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;
|
|
3825
3860
|
}
|
|
3826
|
-
function
|
|
3861
|
+
function nt(e) {
|
|
3827
3862
|
e.forEach(function(t) {
|
|
3828
|
-
if (delete t.location,
|
|
3829
|
-
for (var
|
|
3830
|
-
delete t.options[
|
|
3863
|
+
if (delete t.location, sr(t) || ar(t))
|
|
3864
|
+
for (var r in t.options)
|
|
3865
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3831
3866
|
else
|
|
3832
|
-
|
|
3867
|
+
nr(t) && lr(t.style) || (ir(t) || or(t)) && Ye(t.style) ? delete t.style.location : ur(t) && nt(t.children);
|
|
3833
3868
|
});
|
|
3834
3869
|
}
|
|
3835
|
-
function
|
|
3836
|
-
t === void 0 && (t = {}), t =
|
|
3837
|
-
var
|
|
3838
|
-
if (
|
|
3839
|
-
var
|
|
3840
|
-
throw
|
|
3870
|
+
function vi(e, t) {
|
|
3871
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3872
|
+
var r = new mi(e, t).parse();
|
|
3873
|
+
if (r.err) {
|
|
3874
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3875
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3841
3876
|
}
|
|
3842
|
-
return t?.captureLocation ||
|
|
3877
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3843
3878
|
}
|
|
3844
|
-
var
|
|
3879
|
+
var q;
|
|
3845
3880
|
(function(e) {
|
|
3846
3881
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3847
|
-
})(
|
|
3848
|
-
var
|
|
3882
|
+
})(q || (q = {}));
|
|
3883
|
+
var Oe = (
|
|
3849
3884
|
/** @class */
|
|
3850
3885
|
function(e) {
|
|
3851
|
-
|
|
3852
|
-
function t(
|
|
3853
|
-
var o = e.call(this,
|
|
3854
|
-
return o.code =
|
|
3886
|
+
Pe(t, e);
|
|
3887
|
+
function t(r, n, i) {
|
|
3888
|
+
var o = e.call(this, r) || this;
|
|
3889
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3855
3890
|
}
|
|
3856
3891
|
return t.prototype.toString = function() {
|
|
3857
3892
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3858
3893
|
}, t;
|
|
3859
3894
|
}(Error)
|
|
3860
|
-
),
|
|
3895
|
+
), At = (
|
|
3861
3896
|
/** @class */
|
|
3862
3897
|
function(e) {
|
|
3863
|
-
|
|
3864
|
-
function t(
|
|
3865
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3898
|
+
Pe(t, e);
|
|
3899
|
+
function t(r, n, i, o) {
|
|
3900
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3866
3901
|
}
|
|
3867
3902
|
return t;
|
|
3868
|
-
}(
|
|
3869
|
-
),
|
|
3903
|
+
}(Oe)
|
|
3904
|
+
), _i = (
|
|
3870
3905
|
/** @class */
|
|
3871
3906
|
function(e) {
|
|
3872
|
-
|
|
3873
|
-
function t(
|
|
3874
|
-
return e.call(this, 'Value for "'.concat(
|
|
3907
|
+
Pe(t, e);
|
|
3908
|
+
function t(r, n, i) {
|
|
3909
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3875
3910
|
}
|
|
3876
3911
|
return t;
|
|
3877
|
-
}(
|
|
3878
|
-
),
|
|
3912
|
+
}(Oe)
|
|
3913
|
+
), Ei = (
|
|
3879
3914
|
/** @class */
|
|
3880
3915
|
function(e) {
|
|
3881
|
-
|
|
3882
|
-
function t(
|
|
3883
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3916
|
+
Pe(t, e);
|
|
3917
|
+
function t(r, n) {
|
|
3918
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3884
3919
|
}
|
|
3885
3920
|
return t;
|
|
3886
|
-
}(
|
|
3921
|
+
}(Oe)
|
|
3887
3922
|
), S;
|
|
3888
3923
|
(function(e) {
|
|
3889
3924
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3890
3925
|
})(S || (S = {}));
|
|
3891
|
-
function
|
|
3892
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3893
|
-
var
|
|
3894
|
-
return !
|
|
3926
|
+
function xi(e) {
|
|
3927
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3928
|
+
var n = t[t.length - 1];
|
|
3929
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3895
3930
|
}, []);
|
|
3896
3931
|
}
|
|
3897
|
-
function
|
|
3932
|
+
function Si(e) {
|
|
3898
3933
|
return typeof e == "function";
|
|
3899
3934
|
}
|
|
3900
|
-
function
|
|
3901
|
-
if (e.length === 1 &&
|
|
3935
|
+
function ve(e, t, r, n, i, o, a) {
|
|
3936
|
+
if (e.length === 1 && Et(e[0]))
|
|
3902
3937
|
return [
|
|
3903
3938
|
{
|
|
3904
3939
|
type: S.literal,
|
|
3905
3940
|
value: e[0].value
|
|
3906
3941
|
}
|
|
3907
3942
|
];
|
|
3908
|
-
for (var s = [],
|
|
3909
|
-
var
|
|
3910
|
-
if (
|
|
3943
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3944
|
+
var h = u[l];
|
|
3945
|
+
if (Et(h)) {
|
|
3911
3946
|
s.push({
|
|
3912
3947
|
type: S.literal,
|
|
3913
|
-
value:
|
|
3948
|
+
value: h.value
|
|
3914
3949
|
});
|
|
3915
3950
|
continue;
|
|
3916
3951
|
}
|
|
3917
|
-
if (
|
|
3952
|
+
if (Xn(h)) {
|
|
3918
3953
|
typeof o == "number" && s.push({
|
|
3919
3954
|
type: S.literal,
|
|
3920
|
-
value:
|
|
3955
|
+
value: r.getNumberFormat(t).format(o)
|
|
3921
3956
|
});
|
|
3922
3957
|
continue;
|
|
3923
3958
|
}
|
|
3924
|
-
var
|
|
3925
|
-
if (!(i &&
|
|
3926
|
-
throw new
|
|
3927
|
-
var
|
|
3928
|
-
if (
|
|
3929
|
-
(!
|
|
3930
|
-
type: typeof
|
|
3931
|
-
value:
|
|
3959
|
+
var f = h.value;
|
|
3960
|
+
if (!(i && f in i))
|
|
3961
|
+
throw new Ei(f, a);
|
|
3962
|
+
var c = i[f];
|
|
3963
|
+
if (Vn(h)) {
|
|
3964
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3965
|
+
type: typeof c == "string" ? S.literal : S.object,
|
|
3966
|
+
value: c
|
|
3932
3967
|
});
|
|
3933
3968
|
continue;
|
|
3934
3969
|
}
|
|
3935
|
-
if (
|
|
3936
|
-
var
|
|
3970
|
+
if (ir(h)) {
|
|
3971
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ye(h.style) ? h.style.parsedOptions : void 0;
|
|
3937
3972
|
s.push({
|
|
3938
3973
|
type: S.literal,
|
|
3939
|
-
value:
|
|
3974
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3940
3975
|
});
|
|
3941
3976
|
continue;
|
|
3942
3977
|
}
|
|
3943
|
-
if (
|
|
3944
|
-
var
|
|
3978
|
+
if (or(h)) {
|
|
3979
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ye(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3945
3980
|
s.push({
|
|
3946
3981
|
type: S.literal,
|
|
3947
|
-
value:
|
|
3982
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3948
3983
|
});
|
|
3949
3984
|
continue;
|
|
3950
3985
|
}
|
|
3951
|
-
if (
|
|
3952
|
-
var
|
|
3953
|
-
|
|
3986
|
+
if (nr(h)) {
|
|
3987
|
+
var d = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3988
|
+
d && d.scale && (c = c * (d.scale || 1)), s.push({
|
|
3954
3989
|
type: S.literal,
|
|
3955
|
-
value:
|
|
3990
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3956
3991
|
});
|
|
3957
3992
|
continue;
|
|
3958
3993
|
}
|
|
3959
|
-
if (
|
|
3960
|
-
var
|
|
3961
|
-
if (!
|
|
3962
|
-
throw new
|
|
3963
|
-
var
|
|
3964
|
-
return
|
|
3994
|
+
if (ur(h)) {
|
|
3995
|
+
var p = h.children, m = h.value, _ = i[m];
|
|
3996
|
+
if (!Si(_))
|
|
3997
|
+
throw new _i(m, "function", a);
|
|
3998
|
+
var w = ve(p, t, r, n, i, o), P = _(w.map(function(T) {
|
|
3999
|
+
return T.value;
|
|
3965
4000
|
}));
|
|
3966
|
-
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(
|
|
4001
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(T) {
|
|
3967
4002
|
return {
|
|
3968
|
-
type: typeof
|
|
3969
|
-
value:
|
|
4003
|
+
type: typeof T == "string" ? S.literal : S.object,
|
|
4004
|
+
value: T
|
|
3970
4005
|
};
|
|
3971
4006
|
}));
|
|
3972
4007
|
}
|
|
3973
|
-
if (
|
|
3974
|
-
var
|
|
3975
|
-
if (!
|
|
3976
|
-
throw new
|
|
3977
|
-
s.push.apply(s,
|
|
4008
|
+
if (sr(h)) {
|
|
4009
|
+
var x = h.options[c] || h.options.other;
|
|
4010
|
+
if (!x)
|
|
4011
|
+
throw new At(h.value, c, Object.keys(h.options), a);
|
|
4012
|
+
s.push.apply(s, ve(x.value, t, r, n, i));
|
|
3978
4013
|
continue;
|
|
3979
4014
|
}
|
|
3980
|
-
if (
|
|
3981
|
-
var
|
|
3982
|
-
if (!
|
|
4015
|
+
if (ar(h)) {
|
|
4016
|
+
var x = h.options["=".concat(c)];
|
|
4017
|
+
if (!x) {
|
|
3983
4018
|
if (!Intl.PluralRules)
|
|
3984
|
-
throw new
|
|
4019
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3985
4020
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3986
|
-
`,
|
|
3987
|
-
var O =
|
|
3988
|
-
|
|
4021
|
+
`, q.MISSING_INTL_API, a);
|
|
4022
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
4023
|
+
x = h.options[O] || h.options.other;
|
|
3989
4024
|
}
|
|
3990
|
-
if (!
|
|
3991
|
-
throw new
|
|
3992
|
-
s.push.apply(s,
|
|
4025
|
+
if (!x)
|
|
4026
|
+
throw new At(h.value, c, Object.keys(h.options), a);
|
|
4027
|
+
s.push.apply(s, ve(x.value, t, r, n, i, c - (h.offset || 0)));
|
|
3993
4028
|
continue;
|
|
3994
4029
|
}
|
|
3995
4030
|
}
|
|
3996
|
-
return
|
|
4031
|
+
return xi(s);
|
|
3997
4032
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return t ?
|
|
4000
|
-
return n
|
|
4033
|
+
function wi(e, t) {
|
|
4034
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4035
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
4001
4036
|
}, {})) : e;
|
|
4002
4037
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return t ? Object.keys(e).reduce(function(
|
|
4005
|
-
return n
|
|
4006
|
-
},
|
|
4038
|
+
function Ti(e, t) {
|
|
4039
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4040
|
+
return r[n] = wi(e[n], t[n]), r;
|
|
4041
|
+
}, L({}, e)) : e;
|
|
4007
4042
|
}
|
|
4008
|
-
function
|
|
4043
|
+
function Fe(e) {
|
|
4009
4044
|
return {
|
|
4010
4045
|
create: function() {
|
|
4011
4046
|
return {
|
|
4012
4047
|
get: function(t) {
|
|
4013
4048
|
return e[t];
|
|
4014
4049
|
},
|
|
4015
|
-
set: function(t,
|
|
4016
|
-
e[t] =
|
|
4050
|
+
set: function(t, r) {
|
|
4051
|
+
e[t] = r;
|
|
4017
4052
|
}
|
|
4018
4053
|
};
|
|
4019
4054
|
}
|
|
4020
4055
|
};
|
|
4021
4056
|
}
|
|
4022
|
-
function
|
|
4057
|
+
function Hi(e) {
|
|
4023
4058
|
return e === void 0 && (e = {
|
|
4024
4059
|
number: {},
|
|
4025
4060
|
dateTime: {},
|
|
4026
4061
|
pluralRules: {}
|
|
4027
4062
|
}), {
|
|
4028
|
-
getNumberFormat:
|
|
4029
|
-
for (var t,
|
|
4030
|
-
n
|
|
4031
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4063
|
+
getNumberFormat: Ue(function() {
|
|
4064
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4065
|
+
r[n] = arguments[n];
|
|
4066
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
4032
4067
|
}, {
|
|
4033
|
-
cache:
|
|
4034
|
-
strategy:
|
|
4068
|
+
cache: Fe(e.number),
|
|
4069
|
+
strategy: De.variadic
|
|
4035
4070
|
}),
|
|
4036
|
-
getDateTimeFormat:
|
|
4037
|
-
for (var t,
|
|
4038
|
-
n
|
|
4039
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4071
|
+
getDateTimeFormat: Ue(function() {
|
|
4072
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4073
|
+
r[n] = arguments[n];
|
|
4074
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
4040
4075
|
}, {
|
|
4041
|
-
cache:
|
|
4042
|
-
strategy:
|
|
4076
|
+
cache: Fe(e.dateTime),
|
|
4077
|
+
strategy: De.variadic
|
|
4043
4078
|
}),
|
|
4044
|
-
getPluralRules:
|
|
4045
|
-
for (var t,
|
|
4046
|
-
n
|
|
4047
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4079
|
+
getPluralRules: Ue(function() {
|
|
4080
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4081
|
+
r[n] = arguments[n];
|
|
4082
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
|
4048
4083
|
}, {
|
|
4049
|
-
cache:
|
|
4050
|
-
strategy:
|
|
4084
|
+
cache: Fe(e.pluralRules),
|
|
4085
|
+
strategy: De.variadic
|
|
4051
4086
|
})
|
|
4052
4087
|
};
|
|
4053
4088
|
}
|
|
4054
|
-
var
|
|
4089
|
+
var Bi = (
|
|
4055
4090
|
/** @class */
|
|
4056
4091
|
function() {
|
|
4057
|
-
function e(t,
|
|
4058
|
-
|
|
4092
|
+
function e(t, r, n, i) {
|
|
4093
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4059
4094
|
var o = this;
|
|
4060
4095
|
if (this.formatterCache = {
|
|
4061
4096
|
number: {},
|
|
4062
4097
|
dateTime: {},
|
|
4063
4098
|
pluralRules: {}
|
|
4064
|
-
}, this.format = function(
|
|
4065
|
-
var u = o.formatToParts(
|
|
4099
|
+
}, this.format = function(l) {
|
|
4100
|
+
var u = o.formatToParts(l);
|
|
4066
4101
|
if (u.length === 1)
|
|
4067
4102
|
return u[0].value;
|
|
4068
|
-
var
|
|
4069
|
-
return !
|
|
4103
|
+
var h = u.reduce(function(f, c) {
|
|
4104
|
+
return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4070
4105
|
}, []);
|
|
4071
|
-
return
|
|
4072
|
-
}, this.formatToParts = function(
|
|
4073
|
-
return
|
|
4106
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
4107
|
+
}, this.formatToParts = function(l) {
|
|
4108
|
+
return ve(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4074
4109
|
}, this.resolvedOptions = function() {
|
|
4075
|
-
var
|
|
4110
|
+
var l;
|
|
4076
4111
|
return {
|
|
4077
|
-
locale: ((
|
|
4112
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4078
4113
|
};
|
|
4079
4114
|
}, this.getAst = function() {
|
|
4080
4115
|
return o.ast;
|
|
4081
|
-
}, this.locales =
|
|
4116
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4082
4117
|
if (this.message = t, !e.__parse)
|
|
4083
4118
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4084
4119
|
var a = i || {};
|
|
4085
4120
|
a.formatters;
|
|
4086
|
-
var s =
|
|
4087
|
-
this.ast = e.__parse(t,
|
|
4121
|
+
var s = $n(a, ["formatters"]);
|
|
4122
|
+
this.ast = e.__parse(t, L(L({}, s), { locale: this.resolvedLocale }));
|
|
4088
4123
|
} else
|
|
4089
4124
|
this.ast = t;
|
|
4090
4125
|
if (!Array.isArray(this.ast))
|
|
4091
4126
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4092
|
-
this.formats =
|
|
4127
|
+
this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
|
|
4093
4128
|
}
|
|
4094
4129
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4095
4130
|
get: function() {
|
|
@@ -4099,10 +4134,10 @@ var Si = (
|
|
|
4099
4134
|
configurable: !0
|
|
4100
4135
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4101
4136
|
if (!(typeof Intl.Locale > "u")) {
|
|
4102
|
-
var
|
|
4103
|
-
return
|
|
4137
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4138
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4104
4139
|
}
|
|
4105
|
-
}, e.__parse =
|
|
4140
|
+
}, e.__parse = vi, e.formats = {
|
|
4106
4141
|
number: {
|
|
4107
4142
|
integer: {
|
|
4108
4143
|
maximumFractionDigits: 0
|
|
@@ -4163,113 +4198,113 @@ var Si = (
|
|
|
4163
4198
|
}, e;
|
|
4164
4199
|
}()
|
|
4165
4200
|
);
|
|
4166
|
-
function
|
|
4201
|
+
function Ai(e, t) {
|
|
4167
4202
|
if (t == null)
|
|
4168
4203
|
return;
|
|
4169
4204
|
if (t in e)
|
|
4170
4205
|
return e[t];
|
|
4171
|
-
const
|
|
4172
|
-
let
|
|
4173
|
-
for (let i = 0; i <
|
|
4174
|
-
if (typeof
|
|
4206
|
+
const r = t.split(".");
|
|
4207
|
+
let n = e;
|
|
4208
|
+
for (let i = 0; i < r.length; i++)
|
|
4209
|
+
if (typeof n == "object") {
|
|
4175
4210
|
if (i > 0) {
|
|
4176
|
-
const o =
|
|
4177
|
-
if (o in
|
|
4178
|
-
|
|
4211
|
+
const o = r.slice(i, r.length).join(".");
|
|
4212
|
+
if (o in n) {
|
|
4213
|
+
n = n[o];
|
|
4179
4214
|
break;
|
|
4180
4215
|
}
|
|
4181
4216
|
}
|
|
4182
|
-
|
|
4217
|
+
n = n[r[i]];
|
|
4183
4218
|
} else
|
|
4184
|
-
|
|
4185
|
-
return
|
|
4219
|
+
n = void 0;
|
|
4220
|
+
return n;
|
|
4186
4221
|
}
|
|
4187
|
-
const U = {},
|
|
4222
|
+
const U = {}, Pi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), yr = (e, t) => {
|
|
4188
4223
|
if (t == null)
|
|
4189
4224
|
return;
|
|
4190
4225
|
if (t in U && e in U[t])
|
|
4191
4226
|
return U[t][e];
|
|
4192
|
-
const
|
|
4193
|
-
for (let
|
|
4194
|
-
const i = n
|
|
4227
|
+
const r = Ie(t);
|
|
4228
|
+
for (let n = 0; n < r.length; n++) {
|
|
4229
|
+
const i = r[n], o = Ii(i, e);
|
|
4195
4230
|
if (o)
|
|
4196
|
-
return
|
|
4231
|
+
return Pi(e, t, o);
|
|
4197
4232
|
}
|
|
4198
4233
|
};
|
|
4199
|
-
let
|
|
4200
|
-
const
|
|
4201
|
-
function
|
|
4202
|
-
return
|
|
4234
|
+
let ut;
|
|
4235
|
+
const ce = Ae({});
|
|
4236
|
+
function Oi(e) {
|
|
4237
|
+
return ut[e] || null;
|
|
4203
4238
|
}
|
|
4204
|
-
function
|
|
4205
|
-
return e in
|
|
4239
|
+
function gr(e) {
|
|
4240
|
+
return e in ut;
|
|
4206
4241
|
}
|
|
4207
|
-
function
|
|
4208
|
-
if (!
|
|
4242
|
+
function Ii(e, t) {
|
|
4243
|
+
if (!gr(e))
|
|
4209
4244
|
return null;
|
|
4210
|
-
const
|
|
4211
|
-
return
|
|
4245
|
+
const r = Oi(e);
|
|
4246
|
+
return Ai(r, t);
|
|
4212
4247
|
}
|
|
4213
|
-
function
|
|
4248
|
+
function Li(e) {
|
|
4214
4249
|
if (e == null)
|
|
4215
4250
|
return;
|
|
4216
|
-
const t =
|
|
4217
|
-
for (let
|
|
4218
|
-
const
|
|
4219
|
-
if (
|
|
4220
|
-
return
|
|
4251
|
+
const t = Ie(e);
|
|
4252
|
+
for (let r = 0; r < t.length; r++) {
|
|
4253
|
+
const n = t[r];
|
|
4254
|
+
if (gr(n))
|
|
4255
|
+
return n;
|
|
4221
4256
|
}
|
|
4222
4257
|
}
|
|
4223
|
-
function
|
|
4224
|
-
delete U[e],
|
|
4258
|
+
function vr(e, ...t) {
|
|
4259
|
+
delete U[e], ce.update((r) => (r[e] = Mn.all([r[e] || {}, ...t]), r));
|
|
4225
4260
|
}
|
|
4226
|
-
|
|
4227
|
-
[
|
|
4261
|
+
J(
|
|
4262
|
+
[ce],
|
|
4228
4263
|
([e]) => Object.keys(e)
|
|
4229
4264
|
);
|
|
4230
|
-
|
|
4231
|
-
const
|
|
4232
|
-
function
|
|
4233
|
-
|
|
4265
|
+
ce.subscribe((e) => ut = e);
|
|
4266
|
+
const _e = {};
|
|
4267
|
+
function Ni(e, t) {
|
|
4268
|
+
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
4234
4269
|
}
|
|
4235
|
-
function
|
|
4236
|
-
return
|
|
4270
|
+
function _r(e) {
|
|
4271
|
+
return _e[e];
|
|
4237
4272
|
}
|
|
4238
|
-
function
|
|
4239
|
-
return
|
|
4240
|
-
const
|
|
4241
|
-
return [t,
|
|
4273
|
+
function Ci(e) {
|
|
4274
|
+
return Ie(e).map((t) => {
|
|
4275
|
+
const r = _r(t);
|
|
4276
|
+
return [t, r ? [...r] : []];
|
|
4242
4277
|
}).filter(([, t]) => t.length > 0);
|
|
4243
4278
|
}
|
|
4244
|
-
function
|
|
4245
|
-
return e == null ? !1 :
|
|
4279
|
+
function it(e) {
|
|
4280
|
+
return e == null ? !1 : Ie(e).some(
|
|
4246
4281
|
(t) => {
|
|
4247
|
-
var
|
|
4248
|
-
return (
|
|
4282
|
+
var r;
|
|
4283
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
4249
4284
|
}
|
|
4250
4285
|
);
|
|
4251
4286
|
}
|
|
4252
|
-
function
|
|
4287
|
+
function Mi(e, t) {
|
|
4253
4288
|
return Promise.all(
|
|
4254
|
-
t.map((
|
|
4255
|
-
).then((
|
|
4289
|
+
t.map((n) => (Ni(e, n), n().then((i) => i.default || i)))
|
|
4290
|
+
).then((n) => vr(e, ...n));
|
|
4256
4291
|
}
|
|
4257
4292
|
const re = {};
|
|
4258
|
-
function
|
|
4259
|
-
if (!
|
|
4293
|
+
function Er(e) {
|
|
4294
|
+
if (!it(e))
|
|
4260
4295
|
return e in re ? re[e] : Promise.resolve();
|
|
4261
|
-
const t =
|
|
4296
|
+
const t = Ci(e);
|
|
4262
4297
|
return re[e] = Promise.all(
|
|
4263
4298
|
t.map(
|
|
4264
|
-
([
|
|
4299
|
+
([r, n]) => Mi(r, n)
|
|
4265
4300
|
)
|
|
4266
4301
|
).then(() => {
|
|
4267
|
-
if (
|
|
4268
|
-
return
|
|
4302
|
+
if (it(e))
|
|
4303
|
+
return Er(e);
|
|
4269
4304
|
delete re[e];
|
|
4270
4305
|
}), re[e];
|
|
4271
4306
|
}
|
|
4272
|
-
const
|
|
4307
|
+
const $i = {
|
|
4273
4308
|
number: {
|
|
4274
4309
|
scientific: { notation: "scientific" },
|
|
4275
4310
|
engineering: { notation: "engineering" },
|
|
@@ -4298,198 +4333,198 @@ const Li = {
|
|
|
4298
4333
|
timeZoneName: "short"
|
|
4299
4334
|
}
|
|
4300
4335
|
}
|
|
4301
|
-
},
|
|
4336
|
+
}, Ri = {
|
|
4302
4337
|
fallbackLocale: null,
|
|
4303
4338
|
loadingDelay: 200,
|
|
4304
|
-
formats:
|
|
4339
|
+
formats: $i,
|
|
4305
4340
|
warnOnMissingMessages: !0,
|
|
4306
4341
|
handleMissingMessage: void 0,
|
|
4307
4342
|
ignoreTag: !0
|
|
4308
|
-
},
|
|
4309
|
-
function
|
|
4310
|
-
return
|
|
4311
|
-
}
|
|
4312
|
-
const
|
|
4313
|
-
var
|
|
4314
|
-
for (var
|
|
4315
|
-
|
|
4316
|
-
if (
|
|
4317
|
-
for (var
|
|
4318
|
-
|
|
4343
|
+
}, Ui = Ri;
|
|
4344
|
+
function Q() {
|
|
4345
|
+
return Ui;
|
|
4346
|
+
}
|
|
4347
|
+
const je = Ae(!1);
|
|
4348
|
+
var Di = Object.defineProperty, Gi = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
|
|
4349
|
+
for (var r in t || (t = {}))
|
|
4350
|
+
ji.call(t, r) && Ot(e, r, t[r]);
|
|
4351
|
+
if (Pt)
|
|
4352
|
+
for (var r of Pt(t))
|
|
4353
|
+
ki.call(t, r) && Ot(e, r, t[r]);
|
|
4319
4354
|
return e;
|
|
4320
|
-
},
|
|
4321
|
-
let
|
|
4322
|
-
const Te =
|
|
4323
|
-
function
|
|
4324
|
-
return e.split("-").map((t,
|
|
4355
|
+
}, Xi = (e, t) => Gi(e, Fi(t));
|
|
4356
|
+
let ot;
|
|
4357
|
+
const Te = Ae(null);
|
|
4358
|
+
function It(e) {
|
|
4359
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4325
4360
|
}
|
|
4326
|
-
function
|
|
4327
|
-
const
|
|
4328
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4361
|
+
function Ie(e, t = Q().fallbackLocale) {
|
|
4362
|
+
const r = It(e);
|
|
4363
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
4329
4364
|
}
|
|
4330
4365
|
function F() {
|
|
4331
|
-
return
|
|
4366
|
+
return ot ?? void 0;
|
|
4332
4367
|
}
|
|
4333
4368
|
Te.subscribe((e) => {
|
|
4334
|
-
|
|
4369
|
+
ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4335
4370
|
});
|
|
4336
|
-
const
|
|
4337
|
-
if (e &&
|
|
4338
|
-
const { loadingDelay: t } =
|
|
4339
|
-
let
|
|
4340
|
-
return typeof window < "u" && F() != null && t ?
|
|
4341
|
-
() =>
|
|
4371
|
+
const Wi = (e) => {
|
|
4372
|
+
if (e && Li(e) && it(e)) {
|
|
4373
|
+
const { loadingDelay: t } = Q();
|
|
4374
|
+
let r;
|
|
4375
|
+
return typeof window < "u" && F() != null && t ? r = window.setTimeout(
|
|
4376
|
+
() => je.set(!0),
|
|
4342
4377
|
t
|
|
4343
|
-
) :
|
|
4378
|
+
) : je.set(!0), Er(e).then(() => {
|
|
4344
4379
|
Te.set(e);
|
|
4345
4380
|
}).finally(() => {
|
|
4346
|
-
clearTimeout(
|
|
4381
|
+
clearTimeout(r), je.set(!1);
|
|
4347
4382
|
});
|
|
4348
4383
|
}
|
|
4349
4384
|
return Te.set(e);
|
|
4350
|
-
},
|
|
4351
|
-
set:
|
|
4352
|
-
}),
|
|
4385
|
+
}, Y = Xi(Vi({}, Te), {
|
|
4386
|
+
set: Wi
|
|
4387
|
+
}), Le = (e) => {
|
|
4353
4388
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4354
|
-
return (
|
|
4355
|
-
const i = JSON.stringify(
|
|
4356
|
-
return i in t ? t[i] : t[i] = e(
|
|
4389
|
+
return (n) => {
|
|
4390
|
+
const i = JSON.stringify(n);
|
|
4391
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4357
4392
|
};
|
|
4358
4393
|
};
|
|
4359
|
-
var
|
|
4360
|
-
for (var
|
|
4361
|
-
|
|
4362
|
-
if (
|
|
4363
|
-
for (var
|
|
4364
|
-
|
|
4394
|
+
var zi = Object.defineProperty, He = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4395
|
+
for (var r in t || (t = {}))
|
|
4396
|
+
xr.call(t, r) && Lt(e, r, t[r]);
|
|
4397
|
+
if (He)
|
|
4398
|
+
for (var r of He(t))
|
|
4399
|
+
Sr.call(t, r) && Lt(e, r, t[r]);
|
|
4365
4400
|
return e;
|
|
4366
|
-
},
|
|
4367
|
-
var
|
|
4368
|
-
for (var
|
|
4369
|
-
|
|
4370
|
-
if (e != null &&
|
|
4371
|
-
for (var
|
|
4372
|
-
t.indexOf(
|
|
4373
|
-
return
|
|
4401
|
+
}, K = (e, t) => {
|
|
4402
|
+
var r = {};
|
|
4403
|
+
for (var n in e)
|
|
4404
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4405
|
+
if (e != null && He)
|
|
4406
|
+
for (var n of He(e))
|
|
4407
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
4408
|
+
return r;
|
|
4374
4409
|
};
|
|
4375
|
-
const
|
|
4376
|
-
const { formats:
|
|
4377
|
-
if (e in
|
|
4378
|
-
return
|
|
4410
|
+
const se = (e, t) => {
|
|
4411
|
+
const { formats: r } = Q();
|
|
4412
|
+
if (e in r && t in r[e])
|
|
4413
|
+
return r[e][t];
|
|
4379
4414
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4380
|
-
},
|
|
4415
|
+
}, Zi = Le(
|
|
4381
4416
|
(e) => {
|
|
4382
|
-
var t = e, { locale:
|
|
4383
|
-
if (
|
|
4417
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4418
|
+
if (r == null)
|
|
4384
4419
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4385
|
-
return
|
|
4420
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4386
4421
|
}
|
|
4387
|
-
),
|
|
4422
|
+
), qi = Le(
|
|
4388
4423
|
(e) => {
|
|
4389
|
-
var t = e, { locale:
|
|
4390
|
-
if (
|
|
4424
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4425
|
+
if (r == null)
|
|
4391
4426
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4392
|
-
return
|
|
4427
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4393
4428
|
}
|
|
4394
|
-
),
|
|
4429
|
+
), Qi = Le(
|
|
4395
4430
|
(e) => {
|
|
4396
|
-
var t = e, { locale:
|
|
4397
|
-
if (
|
|
4431
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4432
|
+
if (r == null)
|
|
4398
4433
|
throw new Error(
|
|
4399
4434
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4400
4435
|
);
|
|
4401
|
-
return
|
|
4436
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4402
4437
|
}
|
|
4403
|
-
),
|
|
4438
|
+
), Ji = (e = {}) => {
|
|
4404
4439
|
var t = e, {
|
|
4405
|
-
locale:
|
|
4406
|
-
} = t,
|
|
4440
|
+
locale: r = F()
|
|
4441
|
+
} = t, n = K(t, [
|
|
4407
4442
|
"locale"
|
|
4408
4443
|
]);
|
|
4409
|
-
return
|
|
4410
|
-
},
|
|
4444
|
+
return Zi(lt({ locale: r }, n));
|
|
4445
|
+
}, Yi = (e = {}) => {
|
|
4411
4446
|
var t = e, {
|
|
4412
|
-
locale:
|
|
4413
|
-
} = t,
|
|
4447
|
+
locale: r = F()
|
|
4448
|
+
} = t, n = K(t, [
|
|
4414
4449
|
"locale"
|
|
4415
4450
|
]);
|
|
4416
|
-
return
|
|
4417
|
-
},
|
|
4451
|
+
return qi(lt({ locale: r }, n));
|
|
4452
|
+
}, Ki = (e = {}) => {
|
|
4418
4453
|
var t = e, {
|
|
4419
|
-
locale:
|
|
4420
|
-
} = t,
|
|
4454
|
+
locale: r = F()
|
|
4455
|
+
} = t, n = K(t, [
|
|
4421
4456
|
"locale"
|
|
4422
4457
|
]);
|
|
4423
|
-
return
|
|
4424
|
-
},
|
|
4458
|
+
return Qi(lt({ locale: r }, n));
|
|
4459
|
+
}, eo = Le(
|
|
4425
4460
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4426
|
-
(e, t = F()) => new
|
|
4427
|
-
ignoreTag:
|
|
4461
|
+
(e, t = F()) => new Bi(e, t, Q().formats, {
|
|
4462
|
+
ignoreTag: Q().ignoreTag
|
|
4428
4463
|
})
|
|
4429
|
-
),
|
|
4430
|
-
var
|
|
4464
|
+
), to = (e, t = {}) => {
|
|
4465
|
+
var r, n, i, o;
|
|
4431
4466
|
let a = t;
|
|
4432
4467
|
typeof e == "object" && (a = e, e = a.id);
|
|
4433
4468
|
const {
|
|
4434
4469
|
values: s,
|
|
4435
|
-
locale:
|
|
4470
|
+
locale: l = F(),
|
|
4436
4471
|
default: u
|
|
4437
4472
|
} = a;
|
|
4438
|
-
if (
|
|
4473
|
+
if (l == null)
|
|
4439
4474
|
throw new Error(
|
|
4440
4475
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4441
4476
|
);
|
|
4442
|
-
let
|
|
4443
|
-
if (!
|
|
4444
|
-
|
|
4445
|
-
else if (typeof
|
|
4477
|
+
let h = yr(e, l);
|
|
4478
|
+
if (!h)
|
|
4479
|
+
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4480
|
+
else if (typeof h != "string")
|
|
4446
4481
|
return console.warn(
|
|
4447
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4448
|
-
),
|
|
4482
|
+
`[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.`
|
|
4483
|
+
), h;
|
|
4449
4484
|
if (!s)
|
|
4450
|
-
return
|
|
4451
|
-
let
|
|
4485
|
+
return h;
|
|
4486
|
+
let f = h;
|
|
4452
4487
|
try {
|
|
4453
|
-
|
|
4454
|
-
} catch (
|
|
4455
|
-
|
|
4488
|
+
f = eo(h, l).format(s);
|
|
4489
|
+
} catch (c) {
|
|
4490
|
+
c instanceof Error && console.warn(
|
|
4456
4491
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4457
|
-
|
|
4492
|
+
c.message
|
|
4458
4493
|
);
|
|
4459
4494
|
}
|
|
4460
|
-
return
|
|
4461
|
-
},
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
window.emWidgets = { topic:
|
|
4467
|
-
const
|
|
4468
|
-
function
|
|
4495
|
+
return f;
|
|
4496
|
+
}, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Ji(t).format(e), oo = (e, t = F()) => yr(e, t), so = J([Y, ce], () => to);
|
|
4497
|
+
J([Y], () => ro);
|
|
4498
|
+
J([Y], () => no);
|
|
4499
|
+
J([Y], () => io);
|
|
4500
|
+
J([Y, ce], () => oo);
|
|
4501
|
+
window.emWidgets = { topic: gn };
|
|
4502
|
+
const jo = (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)), wr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", ko = (e) => e.match(/CustomNative/i) ? "NativeApp" : wr(e) === "PC" ? "Desktop" : "Mobile";
|
|
4503
|
+
function Nt(e, t) {
|
|
4469
4504
|
if (e) {
|
|
4470
|
-
const
|
|
4471
|
-
|
|
4505
|
+
const r = document.createElement("style");
|
|
4506
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4472
4507
|
}
|
|
4473
4508
|
}
|
|
4474
|
-
function
|
|
4475
|
-
const
|
|
4476
|
-
fetch(
|
|
4509
|
+
function ao(e, t) {
|
|
4510
|
+
const r = new URL(t);
|
|
4511
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4477
4512
|
const i = document.createElement("style");
|
|
4478
|
-
i.innerHTML =
|
|
4479
|
-
}).catch((
|
|
4480
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4513
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4514
|
+
}).catch((n) => {
|
|
4515
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4481
4516
|
});
|
|
4482
4517
|
}
|
|
4483
|
-
function
|
|
4518
|
+
function uo(e, t, r) {
|
|
4484
4519
|
if (window.emMessageBus) {
|
|
4485
|
-
const
|
|
4520
|
+
const n = document.createElement("style");
|
|
4486
4521
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4487
|
-
|
|
4522
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4488
4523
|
});
|
|
4489
4524
|
}
|
|
4490
4525
|
}
|
|
4491
|
-
const
|
|
4492
|
-
const
|
|
4526
|
+
const lo = (e, t = {}) => {
|
|
4527
|
+
const r = new CustomEvent("track-custom-event", {
|
|
4493
4528
|
detail: {
|
|
4494
4529
|
type: e,
|
|
4495
4530
|
data: t
|
|
@@ -4497,15 +4532,15 @@ const oo = (e, t = {}) => {
|
|
|
4497
4532
|
bubbles: !0,
|
|
4498
4533
|
composed: !0
|
|
4499
4534
|
});
|
|
4500
|
-
document.dispatchEvent(
|
|
4535
|
+
document.dispatchEvent(r);
|
|
4501
4536
|
};
|
|
4502
|
-
function
|
|
4503
|
-
|
|
4537
|
+
function Ct(e, t) {
|
|
4538
|
+
vr(e, t);
|
|
4504
4539
|
}
|
|
4505
|
-
function
|
|
4506
|
-
|
|
4540
|
+
function ho(e) {
|
|
4541
|
+
Y.set(e);
|
|
4507
4542
|
}
|
|
4508
|
-
const
|
|
4543
|
+
const Mt = {
|
|
4509
4544
|
en: {
|
|
4510
4545
|
logoutButton: "Logout"
|
|
4511
4546
|
},
|
|
@@ -4540,42 +4575,42 @@ const It = {
|
|
|
4540
4575
|
logoutButton: "Logout"
|
|
4541
4576
|
}
|
|
4542
4577
|
};
|
|
4543
|
-
function
|
|
4544
|
-
|
|
4578
|
+
function co(e) {
|
|
4579
|
+
Nr(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))}");
|
|
4545
4580
|
}
|
|
4546
|
-
function
|
|
4547
|
-
let t,
|
|
4581
|
+
function fo(e) {
|
|
4582
|
+
let t, r, n, i = (
|
|
4548
4583
|
/*$_*/
|
|
4549
4584
|
e[2]("logoutButton") + ""
|
|
4550
4585
|
), o, a, s;
|
|
4551
4586
|
return {
|
|
4552
4587
|
c() {
|
|
4553
|
-
t =
|
|
4588
|
+
t = N("div"), r = N("button"), n = N("span"), o = le(i), B(t, "class", "GeneralLogout");
|
|
4554
4589
|
},
|
|
4555
|
-
m(
|
|
4556
|
-
|
|
4557
|
-
|
|
4590
|
+
m(l, u) {
|
|
4591
|
+
ue(l, t, u), A(t, r), A(r, n), A(n, o), a || (s = kt(
|
|
4592
|
+
r,
|
|
4558
4593
|
"click",
|
|
4559
4594
|
/*click_handler_1*/
|
|
4560
4595
|
e[14]
|
|
4561
4596
|
), a = !0);
|
|
4562
4597
|
},
|
|
4563
|
-
p(
|
|
4598
|
+
p(l, u) {
|
|
4564
4599
|
u & /*$_*/
|
|
4565
4600
|
4 && i !== (i = /*$_*/
|
|
4566
|
-
|
|
4601
|
+
l[2]("logoutButton") + "") && Vt(o, i);
|
|
4567
4602
|
},
|
|
4568
|
-
d(
|
|
4569
|
-
|
|
4603
|
+
d(l) {
|
|
4604
|
+
l && G(t), a = !1, s();
|
|
4570
4605
|
}
|
|
4571
4606
|
};
|
|
4572
4607
|
}
|
|
4573
|
-
function
|
|
4574
|
-
let t,
|
|
4575
|
-
e[3] &&
|
|
4608
|
+
function po(e) {
|
|
4609
|
+
let t, r, n, i, o, a, s, l, u, h, f, c = !/*isMobile*/
|
|
4610
|
+
e[3] && mo(e);
|
|
4576
4611
|
return {
|
|
4577
4612
|
c() {
|
|
4578
|
-
t =
|
|
4613
|
+
t = N("p"), r = N("span"), n = ee("svg"), i = ee("defs"), o = ee("style"), a = le(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), s = ee("path"), l = ee("path"), u = Mr(), c && c.c(), B(s, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(s, "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(l, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(l, "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"), Rr(r, "width", /*isMobile*/
|
|
4579
4614
|
e[3] ? (
|
|
4580
4615
|
/*mediaQuery*/
|
|
4581
4616
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4584,63 +4619,63 @@ function ho(e) {
|
|
|
4584
4619
|
(e[4].matches && /*isMobile*/
|
|
4585
4620
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4586
4621
|
},
|
|
4587
|
-
m(
|
|
4588
|
-
|
|
4622
|
+
m(d, p) {
|
|
4623
|
+
ue(d, t, p), A(t, r), A(r, n), A(n, i), A(i, o), A(o, a), A(n, s), A(n, l), A(t, u), c && c.m(t, null), h || (f = kt(
|
|
4589
4624
|
t,
|
|
4590
4625
|
"click",
|
|
4591
4626
|
/*click_handler*/
|
|
4592
4627
|
e[13]
|
|
4593
|
-
),
|
|
4628
|
+
), h = !0);
|
|
4594
4629
|
},
|
|
4595
|
-
p(
|
|
4630
|
+
p(d, p) {
|
|
4596
4631
|
/*isMobile*/
|
|
4597
|
-
|
|
4632
|
+
d[3] || c.p(d, p);
|
|
4598
4633
|
},
|
|
4599
|
-
d(
|
|
4600
|
-
|
|
4634
|
+
d(d) {
|
|
4635
|
+
d && G(t), c && c.d(), h = !1, f();
|
|
4601
4636
|
}
|
|
4602
4637
|
};
|
|
4603
4638
|
}
|
|
4604
|
-
function
|
|
4605
|
-
let t,
|
|
4639
|
+
function mo(e) {
|
|
4640
|
+
let t, r = (
|
|
4606
4641
|
/*$_*/
|
|
4607
4642
|
e[2]("logoutButton") + ""
|
|
4608
|
-
),
|
|
4643
|
+
), n;
|
|
4609
4644
|
return {
|
|
4610
4645
|
c() {
|
|
4611
|
-
t =
|
|
4646
|
+
t = N("span"), n = le(r), B(t, "class", "PlayerLogoutText");
|
|
4612
4647
|
},
|
|
4613
4648
|
m(i, o) {
|
|
4614
|
-
|
|
4649
|
+
ue(i, t, o), A(t, n);
|
|
4615
4650
|
},
|
|
4616
4651
|
p(i, o) {
|
|
4617
4652
|
o & /*$_*/
|
|
4618
|
-
4 &&
|
|
4619
|
-
i[2]("logoutButton") + "") &&
|
|
4653
|
+
4 && r !== (r = /*$_*/
|
|
4654
|
+
i[2]("logoutButton") + "") && Vt(n, r);
|
|
4620
4655
|
},
|
|
4621
4656
|
d(i) {
|
|
4622
4657
|
i && G(t);
|
|
4623
4658
|
}
|
|
4624
4659
|
};
|
|
4625
4660
|
}
|
|
4626
|
-
function
|
|
4661
|
+
function bo(e) {
|
|
4627
4662
|
let t;
|
|
4628
|
-
function
|
|
4663
|
+
function r(o, a) {
|
|
4629
4664
|
return (
|
|
4630
4665
|
/*buttonlocation*/
|
|
4631
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4666
|
+
o[0] === "PlayerAccountMenu" ? po : fo
|
|
4632
4667
|
);
|
|
4633
4668
|
}
|
|
4634
|
-
let
|
|
4669
|
+
let n = r(e), i = n(e);
|
|
4635
4670
|
return {
|
|
4636
4671
|
c() {
|
|
4637
|
-
t =
|
|
4672
|
+
t = N("div"), i.c();
|
|
4638
4673
|
},
|
|
4639
4674
|
m(o, a) {
|
|
4640
|
-
|
|
4675
|
+
ue(o, t, a), i.m(t, null), e[15](t);
|
|
4641
4676
|
},
|
|
4642
4677
|
p(o, [a]) {
|
|
4643
|
-
|
|
4678
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4644
4679
|
},
|
|
4645
4680
|
i: H,
|
|
4646
4681
|
o: H,
|
|
@@ -4649,78 +4684,78 @@ function fo(e) {
|
|
|
4649
4684
|
}
|
|
4650
4685
|
};
|
|
4651
4686
|
}
|
|
4652
|
-
function
|
|
4653
|
-
let
|
|
4654
|
-
|
|
4655
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource:
|
|
4656
|
-
const
|
|
4657
|
-
fetch(
|
|
4658
|
-
Object.keys(R).forEach((
|
|
4659
|
-
|
|
4687
|
+
function yo(e, t, r) {
|
|
4688
|
+
let n;
|
|
4689
|
+
Or(e, so, (g) => r(2, n = g));
|
|
4690
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c = "", d = !1, p, m = window.navigator.userAgent, _ = wr(m) !== "PC";
|
|
4691
|
+
const w = window.matchMedia("(min-width: 768px)"), P = () => {
|
|
4692
|
+
fetch(f).then((R) => R.json()).then((R) => {
|
|
4693
|
+
Object.keys(R).forEach((Ne) => {
|
|
4694
|
+
Ct(Ne, R[Ne]);
|
|
4660
4695
|
});
|
|
4661
4696
|
}).catch((R) => {
|
|
4662
4697
|
console.log(R);
|
|
4663
4698
|
});
|
|
4664
4699
|
};
|
|
4665
|
-
Object.keys(
|
|
4666
|
-
|
|
4700
|
+
Object.keys(Mt).forEach((g) => {
|
|
4701
|
+
Ct(g, Mt[g]);
|
|
4667
4702
|
});
|
|
4668
|
-
const
|
|
4669
|
-
let
|
|
4670
|
-
|
|
4671
|
-
let R = { method: "DELETE", headers:
|
|
4672
|
-
fetch(`${i}/v1/player/session/player`, R).then((
|
|
4673
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4703
|
+
const x = () => {
|
|
4704
|
+
let g = new Headers();
|
|
4705
|
+
g.append("Content-type", "application/json"), g.append("X-SessionID", o);
|
|
4706
|
+
let R = { method: "DELETE", headers: g };
|
|
4707
|
+
fetch(`${i}/v1/player/session/player`, R).then((Ne) => {
|
|
4708
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), lo("logged_out", {});
|
|
4674
4709
|
});
|
|
4675
|
-
}, O = () => (i || (
|
|
4676
|
-
|
|
4710
|
+
}, O = () => (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 = () => {
|
|
4711
|
+
ho(s);
|
|
4677
4712
|
};
|
|
4678
|
-
|
|
4713
|
+
Xr(() => () => {
|
|
4679
4714
|
});
|
|
4680
|
-
const $ = () =>
|
|
4681
|
-
function
|
|
4682
|
-
|
|
4683
|
-
|
|
4715
|
+
const $ = () => x(), fe = () => x();
|
|
4716
|
+
function Hr(g) {
|
|
4717
|
+
ke[g ? "unshift" : "push"](() => {
|
|
4718
|
+
p = g, r(1, p);
|
|
4684
4719
|
});
|
|
4685
4720
|
}
|
|
4686
|
-
return e.$$set = (
|
|
4687
|
-
"endpoint" in
|
|
4721
|
+
return e.$$set = (g) => {
|
|
4722
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, a = g.buttonlocation), "lang" in g && r(8, s = g.lang), "mbsource" in g && r(9, l = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, h = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
|
|
4688
4723
|
}, e.$$.update = () => {
|
|
4689
4724
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4690
4725
|
193 && i && o && a && O(), e.$$.dirty & /*lang*/
|
|
4691
|
-
256 && s &&
|
|
4692
|
-
1026 && u &&
|
|
4693
|
-
1026 && u &&
|
|
4694
|
-
2050 &&
|
|
4695
|
-
514 &&
|
|
4696
|
-
4096 &&
|
|
4726
|
+
256 && s && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4727
|
+
1026 && u && p && Nt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4728
|
+
1026 && u && p && Nt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4729
|
+
2050 && h && p && ao(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4730
|
+
514 && l && p && uo(p, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4731
|
+
4096 && f && P();
|
|
4697
4732
|
}, [
|
|
4698
4733
|
a,
|
|
4699
|
-
|
|
4700
|
-
|
|
4734
|
+
p,
|
|
4735
|
+
n,
|
|
4736
|
+
_,
|
|
4737
|
+
w,
|
|
4701
4738
|
x,
|
|
4702
|
-
T,
|
|
4703
|
-
E,
|
|
4704
4739
|
i,
|
|
4705
4740
|
o,
|
|
4706
4741
|
s,
|
|
4707
|
-
h,
|
|
4708
|
-
u,
|
|
4709
4742
|
l,
|
|
4710
|
-
|
|
4743
|
+
u,
|
|
4744
|
+
h,
|
|
4745
|
+
f,
|
|
4711
4746
|
$,
|
|
4712
|
-
|
|
4713
|
-
|
|
4747
|
+
fe,
|
|
4748
|
+
Hr
|
|
4714
4749
|
];
|
|
4715
4750
|
}
|
|
4716
|
-
class
|
|
4751
|
+
class Tr extends rn {
|
|
4717
4752
|
constructor(t) {
|
|
4718
|
-
super(),
|
|
4753
|
+
super(), en(
|
|
4719
4754
|
this,
|
|
4720
4755
|
t,
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4756
|
+
yo,
|
|
4757
|
+
bo,
|
|
4758
|
+
Rt,
|
|
4724
4759
|
{
|
|
4725
4760
|
endpoint: 6,
|
|
4726
4761
|
session: 7,
|
|
@@ -4731,7 +4766,7 @@ class En extends Kn {
|
|
|
4731
4766
|
clientstylingurl: 11,
|
|
4732
4767
|
translationurl: 12
|
|
4733
4768
|
},
|
|
4734
|
-
|
|
4769
|
+
co
|
|
4735
4770
|
);
|
|
4736
4771
|
}
|
|
4737
4772
|
get endpoint() {
|
|
@@ -4783,72 +4818,72 @@ class En extends Kn {
|
|
|
4783
4818
|
this.$$set({ translationurl: t }), I();
|
|
4784
4819
|
}
|
|
4785
4820
|
}
|
|
4786
|
-
|
|
4787
|
-
const
|
|
4821
|
+
tn(Tr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4822
|
+
const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4788
4823
|
__proto__: null,
|
|
4789
|
-
default:
|
|
4824
|
+
default: Tr
|
|
4790
4825
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4791
4826
|
export {
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4827
|
+
Y as $,
|
|
4828
|
+
tn as A,
|
|
4829
|
+
so as B,
|
|
4830
|
+
ce as C,
|
|
4831
|
+
ko as D,
|
|
4832
|
+
Mo as E,
|
|
4833
|
+
Ho as F,
|
|
4834
|
+
wo as G,
|
|
4835
|
+
vo as H,
|
|
4836
|
+
Uo as I,
|
|
4837
|
+
qr as J,
|
|
4838
|
+
Eo as K,
|
|
4839
|
+
xo as L,
|
|
4840
|
+
_o as M,
|
|
4841
|
+
Bo as N,
|
|
4842
|
+
Go as O,
|
|
4843
|
+
To as P,
|
|
4844
|
+
No as Q,
|
|
4845
|
+
Oo as R,
|
|
4846
|
+
rn as S,
|
|
4847
|
+
Lo as T,
|
|
4848
|
+
ae as U,
|
|
4849
|
+
Io as V,
|
|
4850
|
+
Se as W,
|
|
4851
|
+
jo as X,
|
|
4852
|
+
Rr as Y,
|
|
4853
|
+
So as Z,
|
|
4854
|
+
Ro as _,
|
|
4855
|
+
vr as a,
|
|
4856
|
+
$o as a0,
|
|
4857
|
+
go as a1,
|
|
4858
|
+
Br as a2,
|
|
4859
|
+
Do as a3,
|
|
4860
|
+
_n as a4,
|
|
4861
|
+
Fo as a5,
|
|
4862
|
+
Po as a6,
|
|
4863
|
+
Vo as a7,
|
|
4864
|
+
Nr as b,
|
|
4865
|
+
Vt as c,
|
|
4866
|
+
G as d,
|
|
4867
|
+
Ao as e,
|
|
4833
4868
|
I as f,
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4869
|
+
ue as g,
|
|
4870
|
+
A as h,
|
|
4871
|
+
en as i,
|
|
4872
|
+
N as j,
|
|
4873
|
+
Mr as k,
|
|
4874
|
+
kt as l,
|
|
4875
|
+
le as m,
|
|
4876
|
+
H as n,
|
|
4877
|
+
B as o,
|
|
4878
|
+
Or as p,
|
|
4879
|
+
wr as q,
|
|
4845
4880
|
D as r,
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4881
|
+
Rt as s,
|
|
4882
|
+
Co as t,
|
|
4883
|
+
Xr as u,
|
|
4884
|
+
ee as v,
|
|
4885
|
+
ke as w,
|
|
4886
|
+
Nt as x,
|
|
4887
|
+
ao as y,
|
|
4888
|
+
uo as z
|
|
4854
4889
|
};
|