@everymatrix/player-account-controller 1.76.0 → 1.76.3
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-COm1JcKW.cjs +21 -0
- package/components/{GeneralLogout-DSECYo0-.js → GeneralLogout-CiyGpZGU.js} +1392 -1427
- package/components/{GeneralLogout-DpZ-BcWm.js → GeneralLogout-Vg76ri4V.js} +1397 -1432
- package/components/{PlayerAccountBettingHistory-CNH9wk4q.js → PlayerAccountBettingHistory-Bv1Qcp8m.js} +27 -27
- package/components/{PlayerAccountBettingHistory-Cb9zY2cj.cjs → PlayerAccountBettingHistory-CE023VGz.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-BDYeFmkk.js → PlayerAccountBettingHistory-Dn9IsrIP.js} +27 -27
- package/components/{PlayerAccountBiometrics-B9d0_egW.js → PlayerAccountBiometrics-C2wumiJ3.js} +22 -22
- package/components/{PlayerAccountBiometrics-DvAjLCSX.js → PlayerAccountBiometrics-CH9MN1vT.js} +22 -22
- package/components/{PlayerAccountBiometrics-CSSQNl0K.cjs → PlayerAccountBiometrics-DPdT285K.cjs} +1 -1
- package/components/{PlayerAccountClosure-DzDcGjw6.js → PlayerAccountClosure-BqrCJaGp.js} +17 -17
- package/components/{PlayerAccountClosure-D2ovK8jC.cjs → PlayerAccountClosure-DG5NrDqY.cjs} +1 -1
- package/components/{PlayerAccountClosure-uGbZZ9An.js → PlayerAccountClosure-Dda9CHdX.js} +17 -17
- package/components/{PlayerAccountController-DvF_-Gnz.js → PlayerAccountController-B4PFrYEI.js} +141 -141
- package/components/{PlayerAccountController-BaPQkVoS.js → PlayerAccountController-ByUWaGAx.js} +143 -143
- package/components/{PlayerAccountController-CNO7uWc6.cjs → PlayerAccountController-COYhGK6M.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BPVpte4c.cjs → PlayerAccountGamingLimits-B2vzRems.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-DBraet-_.js → PlayerAccountGamingLimits-CJksEBIA.js} +19 -19
- package/components/{PlayerAccountGamingLimits-B6wKBvsB.js → PlayerAccountGamingLimits-CqPkjNdS.js} +19 -19
- package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BKVbjWGo.js → PlayerAccountGamingLimitsConfirmationModal-BX8_aYoz.js} +53 -53
- package/components/{PlayerAccountGamingLimitsConfirmationModal-C7eo4n91.js → PlayerAccountGamingLimitsConfirmationModal-CfPKMMkU.js} +53 -53
- package/components/{PlayerAccountGamingLimitsGroupEdit-JjBMtw_4.js → PlayerAccountGamingLimitsGroupEdit-Ageqronh.js} +1081 -1079
- package/components/{PlayerAccountGamingLimitsGroupEdit-CfD-M6Qh.js → PlayerAccountGamingLimitsGroupEdit-BD9SWhvO.js} +1081 -1079
- package/components/PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsHistory2-Bl-VMGFi.cjs → PlayerAccountGamingLimitsHistory2-B6QgZ3Qd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-BM9UlpyS.js → PlayerAccountGamingLimitsHistory2-BusoJL-w.js} +41 -41
- package/components/{PlayerAccountGamingLimitsHistory2-B41VVq8R.js → PlayerAccountGamingLimitsHistory2-kH5zBkQX.js} +39 -39
- package/components/{PlayerAccountGamingLimitsInfoCard-B9H7I5Gr.js → PlayerAccountGamingLimitsInfoCard-BHAREEgX.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-DwX_bkPR.js → PlayerAccountGamingLimitsInfoCard-BvQ7pktR.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-B1-rS3C8.cjs → PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Cg-G38ui.js → PlayerAccountGamingLimitsPage2Gm16-2oRWSXWO.js} +184 -184
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DtHQGK21.cjs → PlayerAccountGamingLimitsPage2Gm16-CZcdczjv.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-T6Ii0fag.js → PlayerAccountGamingLimitsPage2Gm16-ojAv_lpK.js} +157 -157
- package/components/{PlayerAccountGamingLimitsPopup-BhTuwNDv.js → PlayerAccountGamingLimitsPopup-Bl1xoGPY.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-Bm8wJyt7.js → PlayerAccountGamingLimitsPopup-D0ltWJSo.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-B9mkm7cd.cjs → PlayerAccountGamingLimitsPopup-D16rhs4n.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-CrCkUbSW.cjs → PlayerAccountGamingLimitsWrapper2-BnQ3dx8-.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-CbFe0wKm.js → PlayerAccountGamingLimitsWrapper2-BwvNsW4e.js} +37 -37
- package/components/{PlayerAccountGamingLimitsWrapper2-Bjsb9I8u.js → PlayerAccountGamingLimitsWrapper2-ZXbMFdyJ.js} +37 -37
- package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-TR0re855.js → PlayerAccountGeneralConfirmationModal-JvzRw4bx.js} +68 -68
- package/components/{PlayerAccountGeneralConfirmationModal-C2j-cezP.js → PlayerAccountGeneralConfirmationModal-T_JYxL62.js} +68 -68
- package/components/{PlayerAccountMenu-DZqChKXK.js → PlayerAccountMenu-C4sG1dhf.js} +33 -33
- package/components/{PlayerAccountMenu-DDK28uRA.js → PlayerAccountMenu-DPpd0Onj.js} +33 -33
- package/components/{PlayerAccountMenu-BQu1uMXy.cjs → PlayerAccountMenu-JDfi5y52.cjs} +1 -1
- package/components/{PlayerAccountModal-Cw2Mcd-d.js → PlayerAccountModal-BGCTA59j.js} +25 -25
- package/components/{PlayerAccountModal-DoBwOdNI.js → PlayerAccountModal-DkyQ5JIi.js} +25 -25
- package/components/{PlayerAccountModal-CzspHDhO.cjs → PlayerAccountModal-DvJ0OsPC.cjs} +1 -1
- package/components/{PlayerAccountNotifications-CGmkTd-y.cjs → PlayerAccountNotifications-CdPeCghS.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BpsUOj0M.js → PlayerAccountNotifications-DTtMvV8M.js} +36 -36
- package/components/{PlayerAccountNotifications-CzhNTTTd.js → PlayerAccountNotifications-OJnPC108.js} +35 -35
- package/components/PlayerAccountProductRestriction-BJ0LFpLp.cjs +6061 -0
- package/components/{PlayerAccountProductRestriction-DEGzc5kz.js → PlayerAccountProductRestriction-BtXJwF14.js} +4421 -9491
- package/components/{PlayerAccountProductRestriction-ClvW28BI.js → PlayerAccountProductRestriction-DSjfzN0L.js} +4394 -9464
- package/components/{PlayerAccountSelfExclusion-BOViWFS9.js → PlayerAccountSelfExclusion-BFhhj0lU.js} +901 -899
- package/components/{PlayerAccountSelfExclusion-C7Br5VmH.js → PlayerAccountSelfExclusion-CLHfQEii.js} +1218 -1216
- package/components/{PlayerAccountSelfExclusion-BWBLv-18.cjs → PlayerAccountSelfExclusion-CdvQXAjK.cjs} +155 -155
- package/components/{PlayerAccountTimeout-CIHTd0LQ.js → PlayerAccountTimeout-Dfa2jJXc.js} +103 -103
- package/components/{PlayerAccountTimeout-DtpzMxQd.cjs → PlayerAccountTimeout-Dhey1QrR.cjs} +1 -1
- package/components/{PlayerAccountTimeout-CfEHZ9pc.js → PlayerAccountTimeout-lsP1D_FM.js} +103 -103
- package/components/PlayerAccountTransactionsHistory-BX9loazR.js +1925 -0
- package/components/PlayerAccountTransactionsHistory-CcbcOFdo.js +1956 -0
- package/components/PlayerAccountTransactionsHistory-DBFq20c2.cjs +4 -0
- package/components/{PlayerActiveBonuses-M2nfyZqa.js → PlayerActiveBonuses-BWfdGowJ.js} +48 -48
- package/components/{PlayerActiveBonuses-vH3WJNi8.js → PlayerActiveBonuses-DcuRFKFP.js} +54 -54
- package/components/{PlayerActiveBonuses-_NK812L8.cjs → PlayerActiveBonuses-Me5Q3o65.cjs} +1 -1
- package/components/{PlayerBonusCard-BXjt3PQh.js → PlayerBonusCard-CkEs_ikq.js} +81 -81
- package/components/{PlayerBonusCard-BYBQy1Si.js → PlayerBonusCard-D8XTVs99.js} +81 -81
- package/components/{PlayerBonusCard-C6zYcpN6.cjs → PlayerBonusCard-DgyhSYBs.cjs} +1 -1
- package/components/{PlayerBonusHistory-DLt5HM6L.cjs → PlayerBonusHistory-BmeRyaDK.cjs} +1 -1
- package/components/{PlayerBonusHistory-DOeREoa9.js → PlayerBonusHistory-CTKJuEJG.js} +30 -30
- package/components/{PlayerBonusHistory-CoCvBZgH.js → PlayerBonusHistory-DmYF8qYy.js} +30 -30
- package/components/{PlayerChangePassword-B5A-0Obq.js → PlayerChangePassword-Cc15tSRv.js} +66 -66
- package/components/{PlayerChangePassword-CTNjnq_r.cjs → PlayerChangePassword-CfCN79eP.cjs} +1 -1
- package/components/{PlayerChangePassword-DTahlEtx.js → PlayerChangePassword-Hj0mD9xL.js} +66 -66
- package/components/{PlayerDeposit-DOzGblzs.js → PlayerDeposit-Bm1DOHlW.js} +29 -29
- package/components/{PlayerDeposit-DqT5-LKW.js → PlayerDeposit-BpS3fS46.js} +29 -29
- package/components/{PlayerDeposit-BsyYS9xx.cjs → PlayerDeposit-CmBFg6tX.cjs} +1 -1
- package/components/{PlayerGamingHistory-CfvSHYhg.js → PlayerGamingHistory-B9lwGb0Z.js} +102 -102
- package/components/{PlayerGamingHistory-ByLE5wRu.js → PlayerGamingHistory-Bew4OVxF.js} +82 -82
- package/components/{PlayerGamingHistory-8Bo-uc3o.cjs → PlayerGamingHistory-F3yi70Vu.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-Dvq9lK8F.cjs → PlayerPendingWithdrawals-D-KWiMH6.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-CGYcCotO.js → PlayerPendingWithdrawals-pfC5sUpM.js} +26 -26
- package/components/{PlayerPendingWithdrawals-iWN6LsIP.js → PlayerPendingWithdrawals-scSFcYAA.js} +26 -26
- package/components/{PlayerProfileInfo-tCIspsyo.js → PlayerProfileInfo-1ELKHIQs.js} +158 -158
- package/components/{PlayerProfileInfo-CYPlnEWJ.cjs → PlayerProfileInfo-CwZQ79SV.cjs} +1 -1
- package/components/{PlayerProfileInfo-kZXtGVGK.js → PlayerProfileInfo-DYvdUkJZ.js} +146 -146
- package/components/{PlayerRealityCheck-kgcCV8FV.js → PlayerRealityCheck-DLPtMaP7.js} +44 -44
- package/components/{PlayerRealityCheck-BynMsi1X.cjs → PlayerRealityCheck-JdOGHDG6.cjs} +1 -1
- package/components/{PlayerRealityCheck-Dr5lvwHL.js → PlayerRealityCheck-pQWsLK1G.js} +45 -45
- package/components/{PlayerTransactionHistory-CEEirGIE.js → PlayerTransactionHistory-B7ts1zGr.js} +19 -19
- package/components/{PlayerTransactionHistory-j-FbnqEI.js → PlayerTransactionHistory-CUa0IaZD.js} +19 -19
- package/components/{PlayerTransactionHistory-BU4_vLyx.cjs → PlayerTransactionHistory-Hz2IWD73.cjs} +1 -1
- package/components/{PlayerWithdrawal-DjRR7TrQ.js → PlayerWithdrawal-BTfz-sCc.js} +19 -19
- package/components/{PlayerWithdrawal-B_nHZSvY.js → PlayerWithdrawal-DYVDpOnE.js} +19 -19
- package/components/{PlayerWithdrawal-CkSCfQ4A.cjs → PlayerWithdrawal-P_0MIA-u.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_15-C9RSqwNE.js → checkbox-group-input_15-Cm-Io-xD.js} +4375 -9431
- package/stencil/{checkbox-group-input_15-COZrprO3.js → checkbox-group-input_15-DuNUJJTh.js} +4372 -9428
- package/stencil/checkbox-group-input_15-_nxwaXJG.cjs +6305 -0
- package/stencil/index-1ef3a64c-DD-PHh2g.cjs +1 -0
- package/stencil/{index-1ef3a64c-zEGNB-u8.js → index-1ef3a64c-DQk1yZfC.js} +185 -185
- package/stencil/{index-1ef3a64c-HE2lDlEL.js → index-1ef3a64c-DuKSFSN8.js} +192 -192
- package/stencil/{index-6e523641-CIqESSFm.js → index-6e523641-BMbc57IV.js} +207 -207
- package/stencil/index-6e523641-BZDelC3M.cjs +1 -0
- package/stencil/{index-6e523641-C-aWDr56.js → index-6e523641-D97cqlCQ.js} +185 -185
- package/stencil/index-9c0f6c58-8Ks3y9ln.cjs +1 -0
- package/stencil/{index-9c0f6c58-CWsaYxOT.js → index-9c0f6c58-GCIFeGLp.js} +176 -176
- package/stencil/{index-9c0f6c58-ntq_iYNK.js → index-9c0f6c58-Ucwc3Jk1.js} +180 -180
- package/stencil/index-b2193545-BMFR9-V2.cjs +1 -0
- package/stencil/index-b2193545-DPKCFIaU.js +503 -0
- package/stencil/index-b2193545-LzjWxki5.js +519 -0
- package/stencil/index-c666b6e6-boVOGpc7.cjs +1 -0
- package/stencil/{index-13661b98-C1LBo8p_.js → index-c666b6e6-c0hf32cu.js} +218 -218
- package/stencil/{index-13661b98-BGWA5lR-.js → index-c666b6e6-eYzoO3Jn.js} +207 -207
- package/stencil/{pam-change-password-c578e291-DjiJJQNq.js → pam-change-password-9aef79f2-CavSOe-m.js} +59 -59
- package/stencil/{pam-change-password-c578e291-CObxKeQj.cjs → pam-change-password-9aef79f2-ONc9NBqY.cjs} +2 -2
- package/stencil/{pam-change-password-c578e291-ApXrRZhk.js → pam-change-password-9aef79f2-mdiqi4BL.js} +59 -59
- package/stencil/pam-change-password-BKya2rzZ.cjs +1 -0
- package/stencil/pam-change-password-CZxcB-oo.js +25 -0
- package/stencil/pam-change-password-CurSbN32.js +7 -0
- package/stencil/{player-kyc-verification-sZ9OAQ8Z.js → player-kyc-verification-B9ZaCq1K.js} +1 -1
- package/stencil/{player-kyc-verification-BOxNJ6x_.cjs → player-kyc-verification-D10m225z.cjs} +1 -1
- package/stencil/{player-kyc-verification-jOo_qPpq.js → player-kyc-verification-Wsswi9br.js} +1 -1
- package/stencil/{ui-skeleton-C_FDz0NJ.js → ui-skeleton-2XsWxl4S.js} +2 -2
- package/stencil/{ui-skeleton-GEqIXVxo.cjs → ui-skeleton-Cbqo0oYF.cjs} +1 -1
- package/stencil/{ui-skeleton-mkMdvWYI.js → ui-skeleton-LneRlsD3.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-e6Wte4qi.js → ui-skeleton-ae35c6f2-8s3Rqu1P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CeNpgiKf.cjs → ui-skeleton-ae35c6f2-B4ncHe9g.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BreM325l.js → ui-skeleton-ae35c6f2-OnzqIAY0.js} +1 -1
- package/stencil/{user-deposit-withdrawal-BuFBx-hr.cjs → user-deposit-withdrawal-BP58nPO1.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-DdJYJeX1.js → user-deposit-withdrawal-CSakhNt1.js} +45 -45
- package/stencil/{user-deposit-withdrawal-Cr0-V-2c.js → user-deposit-withdrawal-DcVKAa80.js} +45 -45
- package/stencil/{user-transaction-history-D4WBmCh8.cjs → user-transaction-history-DLnBnc9G.cjs} +1 -1
- package/stencil/{user-transaction-history-ChQcZwtX.js → user-transaction-history-DgJplHTM.js} +1 -1
- package/stencil/{user-transaction-history-Dla0Do5o.js → user-transaction-history-DmJRwGhM.js} +1 -1
- package/stencil/{user-transaction-history_2-DznYNRIL.js → user-transaction-history_2-B2zGklPY.js} +849 -847
- package/stencil/{user-transaction-history_2-B1al0Y-h.js → user-transaction-history_2-C4mIlMIA.js} +843 -841
- package/stencil/user-transaction-history_2-hm8W11mj.cjs +2 -0
- package/components/GeneralLogout-CuvnoUn1.cjs +0 -21
- package/components/PlayerAccountGamingLimitsConfirmationModal-CTub7J3N.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-gUkWnHwu.cjs +0 -2
- package/components/PlayerAccountGeneralConfirmationModal-OYut1Lou.cjs +0 -1
- package/components/PlayerAccountProductRestriction-HFCCxFxz.cjs +0 -7968
- package/components/PlayerAccountTransactionsHistory-CDHvYjjJ.cjs +0 -4
- package/components/PlayerAccountTransactionsHistory-CnZ9-j-P.js +0 -1950
- package/components/PlayerAccountTransactionsHistory-DXz91A1z.js +0 -1919
- package/stencil/checkbox-group-input_15-4Hs1gM1f.cjs +0 -8212
- package/stencil/index-13661b98-8hgREsxq.cjs +0 -1
- package/stencil/index-1ef3a64c-DR7bpfUj.cjs +0 -1
- package/stencil/index-6e523641-D-RFKZXR.cjs +0 -1
- package/stencil/index-9c0f6c58-Cv5Mos03.cjs +0 -1
- package/stencil/index-b2193545-DQUvHUpa.cjs +0 -1
- package/stencil/index-b2193545-DoYU_tL8.js +0 -503
- package/stencil/index-b2193545-_I2wisuY.js +0 -519
- package/stencil/pam-change-password-CgN62FEK.js +0 -25
- package/stencil/pam-change-password-Ck1Dqung.js +0 -7
- package/stencil/pam-change-password-q-zLWG5h.cjs +0 -1
- package/stencil/user-transaction-history_2-bMxqSwYs.cjs +0 -2
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
for (const
|
|
6
|
-
e[
|
|
3
|
+
const Tn = (e) => e;
|
|
4
|
+
function wn(e, t) {
|
|
5
|
+
for (const n in t)
|
|
6
|
+
e[n] = t[n];
|
|
7
7
|
return (
|
|
8
8
|
/** @type {T & S} */
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Lt(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function st() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function G(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach(Lt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function he(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Nt(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 de;
|
|
28
|
+
function po(e, t) {
|
|
29
|
+
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Hn(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Mt(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
|
-
for (const
|
|
37
|
-
|
|
36
|
+
for (const r of t)
|
|
37
|
+
r(void 0);
|
|
38
38
|
return H;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const n = e.subscribe(...t);
|
|
41
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function Bn(e, t, n) {
|
|
44
|
+
e.$$.on_destroy.push(Mt(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function mo(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Ct(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] &&
|
|
52
|
+
function Ct(e, t, n, r) {
|
|
53
|
+
return e[1] && r ? wn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (e[2] &&
|
|
57
|
-
const i = e[2](n
|
|
55
|
+
function bo(e, t, n, r) {
|
|
56
|
+
if (e[2] && r) {
|
|
57
|
+
const i = e[2](r(n));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
@@ -67,40 +67,40 @@ function _o(e, t, r, n) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function go(e, t, n, r, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const a =
|
|
72
|
+
const a = Ct(t, n, r, o);
|
|
73
73
|
e.p(a, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function yo(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
|
-
const t = [],
|
|
79
|
-
for (let
|
|
80
|
-
t[
|
|
78
|
+
const t = [], n = e.ctx.length / 32;
|
|
79
|
+
for (let r = 0; r < n; r++)
|
|
80
|
+
t[r] = -1;
|
|
81
81
|
return t;
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _o(e) {
|
|
86
86
|
return e ?? "";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return e &&
|
|
88
|
+
function vo(e) {
|
|
89
|
+
return e && he(e.destroy) ? e.destroy : H;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
let
|
|
91
|
+
const $t = typeof window < "u";
|
|
92
|
+
let An = $t ? () => window.performance.now() : () => Date.now(), tt = $t ? (e) => requestAnimationFrame(e) : H;
|
|
93
93
|
const W = /* @__PURE__ */ new Set();
|
|
94
|
-
function
|
|
94
|
+
function Rt(e) {
|
|
95
95
|
W.forEach((t) => {
|
|
96
96
|
t.c(e) || (W.delete(t), t.f());
|
|
97
|
-
}), W.size !== 0 &&
|
|
97
|
+
}), W.size !== 0 && tt(Rt);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Pn(e) {
|
|
100
100
|
let t;
|
|
101
|
-
return W.size === 0 &&
|
|
102
|
-
promise: new Promise((
|
|
103
|
-
W.add(t = { c: e, f:
|
|
101
|
+
return W.size === 0 && tt(Rt), {
|
|
102
|
+
promise: new Promise((n) => {
|
|
103
|
+
W.add(t = { c: e, f: n });
|
|
104
104
|
}),
|
|
105
105
|
abort() {
|
|
106
106
|
W.delete(t);
|
|
@@ -110,14 +110,14 @@ function Lr(e) {
|
|
|
110
110
|
function A(e, t) {
|
|
111
111
|
e.appendChild(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
113
|
+
function On(e, t, n) {
|
|
114
|
+
const r = nt(e);
|
|
115
|
+
if (!r.getElementById(t)) {
|
|
116
116
|
const i = I("style");
|
|
117
|
-
i.id = t, i.textContent =
|
|
117
|
+
i.id = t, i.textContent = n, Ut(r, i);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function nt(e) {
|
|
121
121
|
if (!e)
|
|
122
122
|
return document;
|
|
123
123
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -127,26 +127,26 @@ function at(e) {
|
|
|
127
127
|
t
|
|
128
128
|
) : e.ownerDocument;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function In(e) {
|
|
131
131
|
const t = I("style");
|
|
132
|
-
return t.textContent = "/* empty */",
|
|
132
|
+
return t.textContent = "/* empty */", Ut(nt(e), t), t.sheet;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ut(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 K(e, t, n) {
|
|
142
|
+
e.insertBefore(t, n || null);
|
|
143
143
|
}
|
|
144
144
|
function D(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
for (let
|
|
149
|
-
e[
|
|
147
|
+
function xo(e, t) {
|
|
148
|
+
for (let n = 0; n < e.length; n += 1)
|
|
149
|
+
e[n] && e[n].d(t);
|
|
150
150
|
}
|
|
151
151
|
function I(e) {
|
|
152
152
|
return document.createElement(e);
|
|
@@ -154,80 +154,80 @@ function I(e) {
|
|
|
154
154
|
function V(e) {
|
|
155
155
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function le(e) {
|
|
158
158
|
return document.createTextNode(e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function Ln() {
|
|
161
|
+
return le(" ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
163
|
+
function Eo() {
|
|
164
|
+
return le("");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return e.addEventListener(t,
|
|
166
|
+
function Dt(e, t, n, r) {
|
|
167
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function So(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, n) {
|
|
175
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const
|
|
179
|
-
|
|
177
|
+
function To(e, t, n) {
|
|
178
|
+
const r = t.toLowerCase();
|
|
179
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : B(e, t, n);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function wo(e) {
|
|
182
182
|
let t;
|
|
183
183
|
return {
|
|
184
184
|
/* push */
|
|
185
|
-
p(...
|
|
186
|
-
t =
|
|
185
|
+
p(...n) {
|
|
186
|
+
t = n, t.forEach((r) => e.push(r));
|
|
187
187
|
},
|
|
188
188
|
/* remove */
|
|
189
189
|
r() {
|
|
190
|
-
t.forEach((
|
|
190
|
+
t.forEach((n) => e.splice(e.indexOf(n), 1));
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Ho(e) {
|
|
195
195
|
return e === "" ? null : +e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Nn(e) {
|
|
198
198
|
return Array.from(e.childNodes);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Gt(e, t) {
|
|
201
201
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
202
202
|
t);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Bo(e, t) {
|
|
205
205
|
e.value = t ?? "";
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function Mn(e, t, n, r) {
|
|
208
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
for (let
|
|
212
|
-
const i = e.options[
|
|
210
|
+
function Ao(e, t, n) {
|
|
211
|
+
for (let r = 0; r < e.options.length; r += 1) {
|
|
212
|
+
const i = e.options[r];
|
|
213
213
|
if (i.__value === t) {
|
|
214
214
|
i.selected = !0;
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
(!
|
|
218
|
+
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Po(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 Oo(e, t, n) {
|
|
225
|
+
e.classList.toggle(t, !!n);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Cn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
229
229
|
}
|
|
230
|
-
class
|
|
230
|
+
class Io {
|
|
231
231
|
/**
|
|
232
232
|
* @private
|
|
233
233
|
* @default false
|
|
@@ -257,17 +257,17 @@ class Co {
|
|
|
257
257
|
* @param {HTMLElement | SVGElement} anchor
|
|
258
258
|
* @returns {void}
|
|
259
259
|
*/
|
|
260
|
-
m(t,
|
|
260
|
+
m(t, n, r = null) {
|
|
261
261
|
this.e || (this.is_svg ? this.e = V(
|
|
262
262
|
/** @type {keyof SVGElementTagNameMap} */
|
|
263
|
-
|
|
263
|
+
n.nodeName
|
|
264
264
|
) : this.e = I(
|
|
265
265
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
266
|
-
|
|
267
|
-
), this.t =
|
|
266
|
+
n.nodeType === 11 ? "TEMPLATE" : n.nodeName
|
|
267
|
+
), this.t = n.tagName !== "TEMPLATE" ? n : (
|
|
268
268
|
/** @type {HTMLTemplateElement} */
|
|
269
|
-
|
|
270
|
-
), this.c(t)), this.i(
|
|
269
|
+
n.content
|
|
270
|
+
), this.c(t)), this.i(r);
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
* @param {string} html
|
|
@@ -281,8 +281,8 @@ class Co {
|
|
|
281
281
|
/**
|
|
282
282
|
* @returns {void} */
|
|
283
283
|
i(t) {
|
|
284
|
-
for (let
|
|
285
|
-
|
|
284
|
+
for (let n = 0; n < this.n.length; n += 1)
|
|
285
|
+
K(this.t, this.n[n], t);
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
288
|
* @param {string} html
|
|
@@ -297,190 +297,190 @@ class Co {
|
|
|
297
297
|
this.n.forEach(D);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function $n(e) {
|
|
301
301
|
const t = {};
|
|
302
302
|
return e.childNodes.forEach(
|
|
303
303
|
/** @param {Element} node */
|
|
304
|
-
(
|
|
305
|
-
t[
|
|
304
|
+
(n) => {
|
|
305
|
+
t[n.slot || "default"] = !0;
|
|
306
306
|
}
|
|
307
307
|
), t;
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
let
|
|
311
|
-
function
|
|
312
|
-
let t = 5381,
|
|
313
|
-
for (;
|
|
314
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
309
|
+
const xe = /* @__PURE__ */ new Map();
|
|
310
|
+
let Ee = 0;
|
|
311
|
+
function Rn(e) {
|
|
312
|
+
let t = 5381, n = e.length;
|
|
313
|
+
for (; n--; )
|
|
314
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
315
315
|
return t >>> 0;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
const
|
|
319
|
-
return
|
|
317
|
+
function Un(e, t) {
|
|
318
|
+
const n = { stylesheet: In(t), rules: {} };
|
|
319
|
+
return xe.set(e, n), n;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
const h = 16.666 /
|
|
321
|
+
function at(e, t, n, r, i, o, a, s = 0) {
|
|
322
|
+
const h = 16.666 / r;
|
|
323
323
|
let u = `{
|
|
324
324
|
`;
|
|
325
|
-
for (let
|
|
326
|
-
const T = t + (
|
|
327
|
-
u +=
|
|
325
|
+
for (let x = 0; x <= 1; x += h) {
|
|
326
|
+
const T = t + (n - t) * o(x);
|
|
327
|
+
u += x * 100 + `%{${a(T, 1 - T)}}
|
|
328
328
|
`;
|
|
329
329
|
}
|
|
330
|
-
const l = u + `100% {${a(
|
|
331
|
-
}`,
|
|
332
|
-
|
|
330
|
+
const l = u + `100% {${a(n, 1 - n)}}
|
|
331
|
+
}`, c = `__svelte_${Rn(l)}_${s}`, f = nt(e), { stylesheet: p, rules: d } = xe.get(f) || Un(f, e);
|
|
332
|
+
d[c] || (d[c] = !0, p.insertRule(`@keyframes ${c} ${l}`, p.cssRules.length));
|
|
333
333
|
const m = e.style.animation || "";
|
|
334
|
-
return e.style.animation = `${m ? `${m}, ` : ""}${
|
|
334
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${c} ${r}ms linear ${i}ms 1 both`, Ee += 1, c;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
const
|
|
336
|
+
function Dn(e, t) {
|
|
337
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
338
338
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
339
339
|
// remove all Svelte animations
|
|
340
|
-
), i =
|
|
341
|
-
i && (e.style.animation =
|
|
340
|
+
), i = n.length - r.length;
|
|
341
|
+
i && (e.style.animation = r.join(", "), Ee -= i, Ee || Gn());
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
function Gn() {
|
|
344
|
+
tt(() => {
|
|
345
|
+
Ee || (xe.forEach((e) => {
|
|
346
346
|
const { ownerNode: t } = e.stylesheet;
|
|
347
347
|
t && D(t);
|
|
348
|
-
}),
|
|
348
|
+
}), xe.clear());
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
|
-
let
|
|
352
|
-
function
|
|
353
|
-
|
|
351
|
+
let se;
|
|
352
|
+
function oe(e) {
|
|
353
|
+
se = e;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
if (!
|
|
355
|
+
function Fn() {
|
|
356
|
+
if (!se)
|
|
357
357
|
throw new Error("Function called outside component initialization");
|
|
358
|
-
return
|
|
358
|
+
return se;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
360
|
+
function jn(e) {
|
|
361
|
+
Fn().$$.on_mount.push(e);
|
|
362
362
|
}
|
|
363
|
-
const X = [],
|
|
363
|
+
const X = [], Ge = [];
|
|
364
364
|
let z = [];
|
|
365
|
-
const
|
|
366
|
-
let
|
|
367
|
-
function
|
|
368
|
-
|
|
365
|
+
const ut = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
366
|
+
let Fe = !1;
|
|
367
|
+
function jt() {
|
|
368
|
+
Fe || (Fe = !0, Ft.then(L));
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function Lo() {
|
|
371
|
+
return jt(), Ft;
|
|
372
372
|
}
|
|
373
373
|
function Se(e) {
|
|
374
374
|
z.push(e);
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Le = /* @__PURE__ */ new Set();
|
|
377
377
|
let j = 0;
|
|
378
378
|
function L() {
|
|
379
379
|
if (j !== 0)
|
|
380
380
|
return;
|
|
381
|
-
const e =
|
|
381
|
+
const e = se;
|
|
382
382
|
do {
|
|
383
383
|
try {
|
|
384
384
|
for (; j < X.length; ) {
|
|
385
385
|
const t = X[j];
|
|
386
|
-
j++,
|
|
386
|
+
j++, oe(t), kn(t.$$);
|
|
387
387
|
}
|
|
388
388
|
} catch (t) {
|
|
389
389
|
throw X.length = 0, j = 0, t;
|
|
390
390
|
}
|
|
391
|
-
for (
|
|
392
|
-
|
|
391
|
+
for (oe(null), X.length = 0, j = 0; Ge.length; )
|
|
392
|
+
Ge.pop()();
|
|
393
393
|
for (let t = 0; t < z.length; t += 1) {
|
|
394
|
-
const
|
|
395
|
-
|
|
394
|
+
const n = z[t];
|
|
395
|
+
Le.has(n) || (Le.add(n), n());
|
|
396
396
|
}
|
|
397
397
|
z.length = 0;
|
|
398
398
|
} while (X.length);
|
|
399
|
-
for (;
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
for (; ut.length; )
|
|
400
|
+
ut.pop()();
|
|
401
|
+
Fe = !1, Le.clear(), oe(e);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function kn(e) {
|
|
404
404
|
if (e.fragment !== null) {
|
|
405
405
|
e.update(), G(e.before_update);
|
|
406
406
|
const t = e.dirty;
|
|
407
407
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
const t = [],
|
|
412
|
-
z.forEach((
|
|
410
|
+
function Vn(e) {
|
|
411
|
+
const t = [], n = [];
|
|
412
|
+
z.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), z = t;
|
|
413
413
|
}
|
|
414
414
|
let re;
|
|
415
|
-
function
|
|
415
|
+
function Xn() {
|
|
416
416
|
return re || (re = Promise.resolve(), re.then(() => {
|
|
417
417
|
re = null;
|
|
418
418
|
})), re;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
e.dispatchEvent(
|
|
420
|
+
function Ne(e, t, n) {
|
|
421
|
+
e.dispatchEvent(Cn(`${t ? "intro" : "outro"}${n}`));
|
|
422
422
|
}
|
|
423
423
|
const be = /* @__PURE__ */ new Set();
|
|
424
|
-
let
|
|
425
|
-
function
|
|
426
|
-
|
|
424
|
+
let N;
|
|
425
|
+
function No() {
|
|
426
|
+
N = {
|
|
427
427
|
r: 0,
|
|
428
428
|
c: [],
|
|
429
|
-
p:
|
|
429
|
+
p: N
|
|
430
430
|
// parent group
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
|
|
433
|
+
function Mo() {
|
|
434
|
+
N.r || G(N.c), N = N.p;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Wn(e, t) {
|
|
437
437
|
e && e.i && (be.delete(e), e.i(t));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Co(e, t, n, r) {
|
|
440
440
|
if (e && e.o) {
|
|
441
441
|
if (be.has(e))
|
|
442
442
|
return;
|
|
443
|
-
be.add(e),
|
|
444
|
-
be.delete(e),
|
|
443
|
+
be.add(e), N.c.push(() => {
|
|
444
|
+
be.delete(e), r && (n && e.d(1), r());
|
|
445
445
|
}), e.o(t);
|
|
446
446
|
} else
|
|
447
|
-
|
|
447
|
+
r && r();
|
|
448
448
|
}
|
|
449
|
-
const
|
|
450
|
-
function
|
|
451
|
-
let o = t(e,
|
|
452
|
-
function
|
|
453
|
-
u &&
|
|
449
|
+
const zn = { duration: 0 };
|
|
450
|
+
function $o(e, t, n, r) {
|
|
451
|
+
let o = t(e, n, { direction: "both" }), a = r ? 0 : 1, s = null, h = null, u = null, l;
|
|
452
|
+
function c() {
|
|
453
|
+
u && Dn(e, u);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
const
|
|
455
|
+
function f(d, m) {
|
|
456
|
+
const x = (
|
|
457
457
|
/** @type {Program['d']} */
|
|
458
|
-
|
|
458
|
+
d.b - a
|
|
459
459
|
);
|
|
460
|
-
return m *= Math.abs(
|
|
460
|
+
return m *= Math.abs(x), {
|
|
461
461
|
a,
|
|
462
|
-
b:
|
|
463
|
-
d:
|
|
462
|
+
b: d.b,
|
|
463
|
+
d: x,
|
|
464
464
|
duration: m,
|
|
465
|
-
start:
|
|
466
|
-
end:
|
|
467
|
-
group:
|
|
465
|
+
start: d.start,
|
|
466
|
+
end: d.start + m,
|
|
467
|
+
group: d.group
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
function d
|
|
470
|
+
function p(d) {
|
|
471
471
|
const {
|
|
472
472
|
delay: m = 0,
|
|
473
|
-
duration:
|
|
474
|
-
easing: T =
|
|
473
|
+
duration: x = 300,
|
|
474
|
+
easing: T = Tn,
|
|
475
475
|
tick: P = H,
|
|
476
|
-
css:
|
|
477
|
-
} = o ||
|
|
478
|
-
start:
|
|
479
|
-
b:
|
|
476
|
+
css: E
|
|
477
|
+
} = o || zn, O = {
|
|
478
|
+
start: An() + m,
|
|
479
|
+
b: d
|
|
480
480
|
};
|
|
481
|
-
|
|
482
|
-
e.inert, e.inert = !0)), s || h ? h = O : (
|
|
483
|
-
if (h && w > h.start && (s =
|
|
481
|
+
d || (O.group = N, N.r += 1), "inert" in e && (d ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
482
|
+
e.inert, e.inert = !0)), s || h ? h = O : (E && (c(), u = at(e, a, d, x, m, T, E)), d && P(0, 1), s = f(O, x), Se(() => Ne(e, d, "start")), Pn((w) => {
|
|
483
|
+
if (h && w > h.start && (s = f(h, x), h = null, Ne(e, s.b, "start"), E && (c(), u = at(
|
|
484
484
|
e,
|
|
485
485
|
a,
|
|
486
486
|
s.b,
|
|
@@ -490,7 +490,7 @@ function Go(e, t, r, n) {
|
|
|
490
490
|
o.css
|
|
491
491
|
))), s) {
|
|
492
492
|
if (w >= s.end)
|
|
493
|
-
P(a = s.b, 1 - a),
|
|
493
|
+
P(a = s.b, 1 - a), Ne(e, s.b, "end"), h || (s.b ? c() : --s.group.r || G(s.group.c)), s = null;
|
|
494
494
|
else if (w >= s.start) {
|
|
495
495
|
const $ = w - s.start;
|
|
496
496
|
a = s.a + s.d * T($ / s.duration), P(a, 1 - a);
|
|
@@ -500,36 +500,36 @@ function Go(e, t, r, n) {
|
|
|
500
500
|
}));
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
|
-
run(
|
|
504
|
-
|
|
505
|
-
o = o({ direction:
|
|
506
|
-
}) : d
|
|
503
|
+
run(d) {
|
|
504
|
+
he(o) ? Xn().then(() => {
|
|
505
|
+
o = o({ direction: d ? "in" : "out" }), p(d);
|
|
506
|
+
}) : p(d);
|
|
507
507
|
},
|
|
508
508
|
end() {
|
|
509
|
-
|
|
509
|
+
c(), s = h = null;
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Ro(e) {
|
|
514
514
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
const { fragment:
|
|
518
|
-
|
|
519
|
-
const o = e.$$.on_mount.map(
|
|
516
|
+
function Zn(e, t, n) {
|
|
517
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
518
|
+
r && r.m(t, n), Se(() => {
|
|
519
|
+
const o = e.$$.on_mount.map(Lt).filter(he);
|
|
520
520
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : G(o), e.$$.on_mount = [];
|
|
521
521
|
}), i.forEach(Se);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
const
|
|
525
|
-
|
|
523
|
+
function qn(e, t) {
|
|
524
|
+
const n = e.$$;
|
|
525
|
+
n.fragment !== null && (Vn(n.after_update), G(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
527
|
+
function Qn(e, t) {
|
|
528
|
+
e.$$.dirty[0] === -1 && (X.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
const h =
|
|
532
|
-
|
|
530
|
+
function Jn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
531
|
+
const h = se;
|
|
532
|
+
oe(e);
|
|
533
533
|
const u = e.$$ = {
|
|
534
534
|
fragment: null,
|
|
535
535
|
ctx: [],
|
|
@@ -537,7 +537,7 @@ function en(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
537
537
|
props: o,
|
|
538
538
|
update: H,
|
|
539
539
|
not_equal: i,
|
|
540
|
-
bound:
|
|
540
|
+
bound: st(),
|
|
541
541
|
// lifecycle
|
|
542
542
|
on_mount: [],
|
|
543
543
|
on_destroy: [],
|
|
@@ -546,28 +546,28 @@ function en(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
546
546
|
after_update: [],
|
|
547
547
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
548
548
|
// everything else
|
|
549
|
-
callbacks:
|
|
549
|
+
callbacks: st(),
|
|
550
550
|
dirty: s,
|
|
551
551
|
skip_bound: !1,
|
|
552
552
|
root: t.target || h.$$.root
|
|
553
553
|
};
|
|
554
554
|
a && a(u.root);
|
|
555
555
|
let l = !1;
|
|
556
|
-
if (u.ctx =
|
|
557
|
-
const
|
|
558
|
-
return u.ctx && i(u.ctx[
|
|
559
|
-
}) : [], u.update(), l = !0, G(u.before_update), u.fragment =
|
|
556
|
+
if (u.ctx = n ? n(e, t.props || {}, (c, f, ...p) => {
|
|
557
|
+
const d = p.length ? p[0] : f;
|
|
558
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && Qn(e, c)), f;
|
|
559
|
+
}) : [], u.update(), l = !0, G(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
560
560
|
if (t.hydrate) {
|
|
561
|
-
const
|
|
562
|
-
u.fragment && u.fragment.l(
|
|
561
|
+
const c = Nn(t.target);
|
|
562
|
+
u.fragment && u.fragment.l(c), c.forEach(D);
|
|
563
563
|
} else
|
|
564
564
|
u.fragment && u.fragment.c();
|
|
565
|
-
t.intro &&
|
|
565
|
+
t.intro && Wn(e.$$.fragment), Zn(e, t.target, t.anchor), L();
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
oe(h);
|
|
568
568
|
}
|
|
569
|
-
let
|
|
570
|
-
typeof HTMLElement == "function" && (
|
|
569
|
+
let kt;
|
|
570
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
571
571
|
/** The Svelte component constructor */
|
|
572
572
|
$$ctor;
|
|
573
573
|
/** Slots */
|
|
@@ -586,20 +586,20 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
586
586
|
$$l = {};
|
|
587
587
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
588
588
|
$$l_u = /* @__PURE__ */ new Map();
|
|
589
|
-
constructor(e, t,
|
|
590
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
589
|
+
constructor(e, t, n) {
|
|
590
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
591
591
|
}
|
|
592
|
-
addEventListener(e, t,
|
|
592
|
+
addEventListener(e, t, n) {
|
|
593
593
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
594
|
-
const
|
|
595
|
-
this.$$l_u.set(t,
|
|
594
|
+
const r = this.$$c.$on(e, t);
|
|
595
|
+
this.$$l_u.set(t, r);
|
|
596
596
|
}
|
|
597
|
-
super.addEventListener(e, t,
|
|
597
|
+
super.addEventListener(e, t, n);
|
|
598
598
|
}
|
|
599
|
-
removeEventListener(e, t,
|
|
600
|
-
if (super.removeEventListener(e, t,
|
|
601
|
-
const
|
|
602
|
-
|
|
599
|
+
removeEventListener(e, t, n) {
|
|
600
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
601
|
+
const r = this.$$l_u.get(t);
|
|
602
|
+
r && (r(), this.$$l_u.delete(t));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
async connectedCallback() {
|
|
@@ -616,7 +616,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
616
616
|
* @param {HTMLElement} [anchor]
|
|
617
617
|
*/
|
|
618
618
|
m: function(h, u) {
|
|
619
|
-
|
|
619
|
+
K(h, o, u);
|
|
620
620
|
},
|
|
621
621
|
d: function(h) {
|
|
622
622
|
h && D(o);
|
|
@@ -626,12 +626,12 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
626
626
|
};
|
|
627
627
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
628
628
|
return;
|
|
629
|
-
const t = {},
|
|
629
|
+
const t = {}, n = $n(this);
|
|
630
630
|
for (const i of this.$$s)
|
|
631
|
-
i in
|
|
631
|
+
i in n && (t[i] = [e(i)]);
|
|
632
632
|
for (const i of this.attributes) {
|
|
633
633
|
const o = this.$$g_p(i.name);
|
|
634
|
-
o in this.$$d || (this.$$d[o] =
|
|
634
|
+
o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
|
|
635
635
|
}
|
|
636
636
|
for (const i in this.$$p_d)
|
|
637
637
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -645,11 +645,11 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
|
-
const
|
|
648
|
+
const r = () => {
|
|
649
649
|
this.$$r = !0;
|
|
650
650
|
for (const i in this.$$p_d)
|
|
651
651
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
652
|
-
const o =
|
|
652
|
+
const o = ge(
|
|
653
653
|
i,
|
|
654
654
|
this.$$d[i],
|
|
655
655
|
this.$$p_d,
|
|
@@ -659,7 +659,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
659
659
|
}
|
|
660
660
|
this.$$r = !1;
|
|
661
661
|
};
|
|
662
|
-
this.$$c.$$.after_update.push(
|
|
662
|
+
this.$$c.$$.after_update.push(r), r();
|
|
663
663
|
for (const i in this.$$l)
|
|
664
664
|
for (const o of this.$$l[i]) {
|
|
665
665
|
const a = this.$$c.$on(i, o);
|
|
@@ -670,8 +670,8 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
670
670
|
}
|
|
671
671
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
672
672
|
// and setting attributes through setAttribute etc, this is helpful
|
|
673
|
-
attributeChangedCallback(e, t,
|
|
674
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
673
|
+
attributeChangedCallback(e, t, n) {
|
|
674
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
675
675
|
}
|
|
676
676
|
disconnectedCallback() {
|
|
677
677
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -684,11 +684,11 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
684
684
|
) || e;
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
|
-
function
|
|
688
|
-
const i =
|
|
689
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
687
|
+
function ge(e, t, n, r) {
|
|
688
|
+
const i = n[e]?.type;
|
|
689
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
690
690
|
return t;
|
|
691
|
-
if (
|
|
691
|
+
if (r === "toAttribute")
|
|
692
692
|
switch (i) {
|
|
693
693
|
case "Object":
|
|
694
694
|
case "Array":
|
|
@@ -713,10 +713,10 @@ function ye(e, t, r, n) {
|
|
|
713
713
|
return t;
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
let a = class extends
|
|
716
|
+
function Yn(e, t, n, r, i, o) {
|
|
717
|
+
let a = class extends kt {
|
|
718
718
|
constructor() {
|
|
719
|
-
super(e,
|
|
719
|
+
super(e, n, i), this.$$p_d = t;
|
|
720
720
|
}
|
|
721
721
|
static get observedAttributes() {
|
|
722
722
|
return Object.keys(t).map(
|
|
@@ -730,10 +730,10 @@ function tn(e, t, r, n, i, o) {
|
|
|
730
730
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
731
731
|
},
|
|
732
732
|
set(h) {
|
|
733
|
-
h =
|
|
733
|
+
h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
|
-
}),
|
|
736
|
+
}), r.forEach((s) => {
|
|
737
737
|
Object.defineProperty(a.prototype, s, {
|
|
738
738
|
get() {
|
|
739
739
|
return this.$$c?.[s];
|
|
@@ -742,7 +742,7 @@ function tn(e, t, r, n, i, o) {
|
|
|
742
742
|
}), e.element = /** @type {any} */
|
|
743
743
|
a, a;
|
|
744
744
|
}
|
|
745
|
-
class
|
|
745
|
+
class Kn {
|
|
746
746
|
/**
|
|
747
747
|
* ### PRIVATE API
|
|
748
748
|
*
|
|
@@ -761,7 +761,7 @@ class rn {
|
|
|
761
761
|
$$set = void 0;
|
|
762
762
|
/** @returns {void} */
|
|
763
763
|
$destroy() {
|
|
764
|
-
|
|
764
|
+
qn(this, 1), this.$destroy = H;
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
767
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -769,13 +769,13 @@ class rn {
|
|
|
769
769
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
770
770
|
* @returns {() => void}
|
|
771
771
|
*/
|
|
772
|
-
$on(t,
|
|
773
|
-
if (!
|
|
772
|
+
$on(t, n) {
|
|
773
|
+
if (!he(n))
|
|
774
774
|
return H;
|
|
775
|
-
const
|
|
776
|
-
return
|
|
777
|
-
const i =
|
|
778
|
-
i !== -1 &&
|
|
775
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
776
|
+
return r.push(n), () => {
|
|
777
|
+
const i = r.indexOf(n);
|
|
778
|
+
i !== -1 && r.splice(i, 1);
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
@@ -783,11 +783,11 @@ class rn {
|
|
|
783
783
|
* @returns {void}
|
|
784
784
|
*/
|
|
785
785
|
$set(t) {
|
|
786
|
-
this.$$set && !
|
|
786
|
+
this.$$set && !Hn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
const
|
|
790
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
789
|
+
const er = "4";
|
|
790
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
|
791
791
|
/*! *****************************************************************************
|
|
792
792
|
Copyright (c) Microsoft Corporation.
|
|
793
793
|
|
|
@@ -802,48 +802,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
802
802
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
803
803
|
PERFORMANCE OF THIS SOFTWARE.
|
|
804
804
|
***************************************************************************** */
|
|
805
|
-
var
|
|
806
|
-
return
|
|
807
|
-
|
|
808
|
-
} || function(
|
|
809
|
-
for (var i in
|
|
810
|
-
Object.prototype.hasOwnProperty.call(
|
|
811
|
-
},
|
|
805
|
+
var je = function(e, t) {
|
|
806
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
807
|
+
n.__proto__ = r;
|
|
808
|
+
} || function(n, r) {
|
|
809
|
+
for (var i in r)
|
|
810
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
811
|
+
}, je(e, t);
|
|
812
812
|
};
|
|
813
|
-
function
|
|
813
|
+
function C(e, t) {
|
|
814
814
|
if (typeof t != "function" && t !== null)
|
|
815
815
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
816
|
-
|
|
817
|
-
function
|
|
816
|
+
je(e, t);
|
|
817
|
+
function n() {
|
|
818
818
|
this.constructor = e;
|
|
819
819
|
}
|
|
820
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
820
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
821
|
+
}
|
|
822
|
+
var y = function() {
|
|
823
|
+
return y = Object.assign || function(t) {
|
|
824
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
825
|
+
n = arguments[r];
|
|
826
|
+
for (var o in n)
|
|
827
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
828
|
+
}
|
|
829
|
+
return t;
|
|
830
|
+
}, y.apply(this, arguments);
|
|
831
|
+
};
|
|
832
|
+
function tr(e, t) {
|
|
833
|
+
var n = {};
|
|
834
|
+
for (var r in e)
|
|
835
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
836
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
837
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
838
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
839
|
+
return n;
|
|
821
840
|
}
|
|
822
|
-
function
|
|
823
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
824
|
-
if (
|
|
825
|
-
return
|
|
841
|
+
function ke(e) {
|
|
842
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
843
|
+
if (n)
|
|
844
|
+
return n.call(e);
|
|
826
845
|
if (e && typeof e.length == "number")
|
|
827
846
|
return {
|
|
828
847
|
next: function() {
|
|
829
|
-
return e &&
|
|
848
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
830
849
|
}
|
|
831
850
|
};
|
|
832
851
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
833
852
|
}
|
|
834
|
-
function
|
|
835
|
-
var
|
|
836
|
-
if (!
|
|
853
|
+
function Ve(e, t) {
|
|
854
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
855
|
+
if (!n)
|
|
837
856
|
return e;
|
|
838
|
-
var
|
|
857
|
+
var r = n.call(e), i, o = [], a;
|
|
839
858
|
try {
|
|
840
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
859
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
841
860
|
o.push(i.value);
|
|
842
861
|
} catch (s) {
|
|
843
862
|
a = { error: s };
|
|
844
863
|
} finally {
|
|
845
864
|
try {
|
|
846
|
-
i && !i.done && (
|
|
865
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
847
866
|
} finally {
|
|
848
867
|
if (a)
|
|
849
868
|
throw a.error;
|
|
@@ -851,49 +870,49 @@ function ze(e, t) {
|
|
|
851
870
|
}
|
|
852
871
|
return o;
|
|
853
872
|
}
|
|
854
|
-
function
|
|
855
|
-
if (arguments.length === 2)
|
|
856
|
-
for (var
|
|
857
|
-
(o || !(
|
|
873
|
+
function Z(e, t, n) {
|
|
874
|
+
if (n || arguments.length === 2)
|
|
875
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
876
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
858
877
|
return e.concat(o || t);
|
|
859
878
|
}
|
|
860
|
-
function
|
|
879
|
+
function M(e) {
|
|
861
880
|
return typeof e == "function";
|
|
862
881
|
}
|
|
863
|
-
function
|
|
864
|
-
var t = function(
|
|
865
|
-
Error.call(
|
|
866
|
-
},
|
|
867
|
-
return
|
|
868
|
-
}
|
|
869
|
-
var
|
|
870
|
-
return function(
|
|
871
|
-
e(this), this.message =
|
|
872
|
-
` +
|
|
873
|
-
return i + 1 + ") " +
|
|
882
|
+
function Vt(e) {
|
|
883
|
+
var t = function(r) {
|
|
884
|
+
Error.call(r), r.stack = new Error().stack;
|
|
885
|
+
}, n = e(t);
|
|
886
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
887
|
+
}
|
|
888
|
+
var Me = Vt(function(e) {
|
|
889
|
+
return function(n) {
|
|
890
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
891
|
+
` + n.map(function(r, i) {
|
|
892
|
+
return i + 1 + ") " + r.toString();
|
|
874
893
|
}).join(`
|
|
875
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
894
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
876
895
|
};
|
|
877
896
|
});
|
|
878
|
-
function
|
|
897
|
+
function Xe(e, t) {
|
|
879
898
|
if (e) {
|
|
880
|
-
var
|
|
881
|
-
0 <=
|
|
899
|
+
var n = e.indexOf(t);
|
|
900
|
+
0 <= n && e.splice(n, 1);
|
|
882
901
|
}
|
|
883
902
|
}
|
|
884
|
-
var
|
|
903
|
+
var He = function() {
|
|
885
904
|
function e(t) {
|
|
886
905
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
887
906
|
}
|
|
888
907
|
return e.prototype.unsubscribe = function() {
|
|
889
|
-
var t,
|
|
908
|
+
var t, n, r, i, o;
|
|
890
909
|
if (!this.closed) {
|
|
891
910
|
this.closed = !0;
|
|
892
911
|
var a = this._parentage;
|
|
893
912
|
if (a)
|
|
894
913
|
if (this._parentage = null, Array.isArray(a))
|
|
895
914
|
try {
|
|
896
|
-
for (var s =
|
|
915
|
+
for (var s = ke(a), h = s.next(); !h.done; h = s.next()) {
|
|
897
916
|
var u = h.value;
|
|
898
917
|
u.remove(this);
|
|
899
918
|
}
|
|
@@ -901,7 +920,7 @@ var Be = function() {
|
|
|
901
920
|
t = { error: m };
|
|
902
921
|
} finally {
|
|
903
922
|
try {
|
|
904
|
-
h && !h.done && (
|
|
923
|
+
h && !h.done && (n = s.return) && n.call(s);
|
|
905
924
|
} finally {
|
|
906
925
|
if (t)
|
|
907
926
|
throw t.error;
|
|
@@ -910,118 +929,122 @@ var Be = function() {
|
|
|
910
929
|
else
|
|
911
930
|
a.remove(this);
|
|
912
931
|
var l = this.initialTeardown;
|
|
913
|
-
if (
|
|
932
|
+
if (M(l))
|
|
914
933
|
try {
|
|
915
934
|
l();
|
|
916
935
|
} catch (m) {
|
|
917
|
-
o = m instanceof
|
|
936
|
+
o = m instanceof Me ? m.errors : [m];
|
|
918
937
|
}
|
|
919
|
-
var
|
|
920
|
-
if (
|
|
938
|
+
var c = this._finalizers;
|
|
939
|
+
if (c) {
|
|
921
940
|
this._finalizers = null;
|
|
922
941
|
try {
|
|
923
|
-
for (var
|
|
924
|
-
var
|
|
942
|
+
for (var f = ke(c), p = f.next(); !p.done; p = f.next()) {
|
|
943
|
+
var d = p.value;
|
|
925
944
|
try {
|
|
926
|
-
|
|
945
|
+
ht(d);
|
|
927
946
|
} catch (m) {
|
|
928
|
-
o = o ?? [], m instanceof
|
|
947
|
+
o = o ?? [], m instanceof Me ? o = Z(Z([], Ve(o)), Ve(m.errors)) : o.push(m);
|
|
929
948
|
}
|
|
930
949
|
}
|
|
931
950
|
} catch (m) {
|
|
932
|
-
|
|
951
|
+
r = { error: m };
|
|
933
952
|
} finally {
|
|
934
953
|
try {
|
|
935
|
-
|
|
954
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
936
955
|
} finally {
|
|
937
|
-
if (
|
|
938
|
-
throw
|
|
956
|
+
if (r)
|
|
957
|
+
throw r.error;
|
|
939
958
|
}
|
|
940
959
|
}
|
|
941
960
|
}
|
|
942
961
|
if (o)
|
|
943
|
-
throw new
|
|
962
|
+
throw new Me(o);
|
|
944
963
|
}
|
|
945
964
|
}, e.prototype.add = function(t) {
|
|
946
|
-
var
|
|
965
|
+
var n;
|
|
947
966
|
if (t && t !== this)
|
|
948
967
|
if (this.closed)
|
|
949
|
-
|
|
968
|
+
ht(t);
|
|
950
969
|
else {
|
|
951
970
|
if (t instanceof e) {
|
|
952
971
|
if (t.closed || t._hasParent(this))
|
|
953
972
|
return;
|
|
954
973
|
t._addParent(this);
|
|
955
974
|
}
|
|
956
|
-
(this._finalizers = (
|
|
975
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
957
976
|
}
|
|
958
977
|
}, e.prototype._hasParent = function(t) {
|
|
959
|
-
var
|
|
960
|
-
return
|
|
978
|
+
var n = this._parentage;
|
|
979
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
961
980
|
}, e.prototype._addParent = function(t) {
|
|
962
|
-
var
|
|
963
|
-
this._parentage = Array.isArray(
|
|
981
|
+
var n = this._parentage;
|
|
982
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
964
983
|
}, e.prototype._removeParent = function(t) {
|
|
965
|
-
var
|
|
966
|
-
|
|
984
|
+
var n = this._parentage;
|
|
985
|
+
n === t ? this._parentage = null : Array.isArray(n) && Xe(n, t);
|
|
967
986
|
}, e.prototype.remove = function(t) {
|
|
968
|
-
var
|
|
969
|
-
|
|
987
|
+
var n = this._finalizers;
|
|
988
|
+
n && Xe(n, t), t instanceof e && t._removeParent(this);
|
|
970
989
|
}, e.EMPTY = function() {
|
|
971
990
|
var t = new e();
|
|
972
991
|
return t.closed = !0, t;
|
|
973
992
|
}(), e;
|
|
974
|
-
}(),
|
|
975
|
-
function
|
|
976
|
-
return e instanceof
|
|
977
|
-
}
|
|
978
|
-
function
|
|
979
|
-
|
|
980
|
-
}
|
|
981
|
-
var
|
|
982
|
-
|
|
983
|
-
|
|
993
|
+
}(), Xt = He.EMPTY;
|
|
994
|
+
function Wt(e) {
|
|
995
|
+
return e instanceof He || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
996
|
+
}
|
|
997
|
+
function ht(e) {
|
|
998
|
+
M(e) ? e() : e.unsubscribe();
|
|
999
|
+
}
|
|
1000
|
+
var nr = {
|
|
1001
|
+
onUnhandledError: null,
|
|
1002
|
+
onStoppedNotification: null,
|
|
1003
|
+
Promise: void 0,
|
|
1004
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
1005
|
+
useDeprecatedNextContext: !1
|
|
1006
|
+
}, rr = {
|
|
984
1007
|
setTimeout: function(e, t) {
|
|
985
|
-
for (var
|
|
986
|
-
r
|
|
987
|
-
return setTimeout.apply(void 0,
|
|
1008
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
1009
|
+
n[r - 2] = arguments[r];
|
|
1010
|
+
return setTimeout.apply(void 0, Z([e, t], Ve(n)));
|
|
988
1011
|
},
|
|
989
1012
|
clearTimeout: function(e) {
|
|
990
1013
|
return clearTimeout(e);
|
|
991
1014
|
},
|
|
992
1015
|
delegate: void 0
|
|
993
1016
|
};
|
|
994
|
-
function
|
|
995
|
-
|
|
1017
|
+
function ir(e) {
|
|
1018
|
+
rr.setTimeout(function() {
|
|
996
1019
|
throw e;
|
|
997
1020
|
});
|
|
998
1021
|
}
|
|
999
|
-
function
|
|
1022
|
+
function lt() {
|
|
1000
1023
|
}
|
|
1001
|
-
function
|
|
1024
|
+
function ye(e) {
|
|
1002
1025
|
e();
|
|
1003
1026
|
}
|
|
1004
|
-
var
|
|
1005
|
-
|
|
1006
|
-
function t(
|
|
1007
|
-
var
|
|
1008
|
-
return
|
|
1027
|
+
var zt = function(e) {
|
|
1028
|
+
C(t, e);
|
|
1029
|
+
function t(n) {
|
|
1030
|
+
var r = e.call(this) || this;
|
|
1031
|
+
return r.isStopped = !1, n ? (r.destination = n, Wt(n) && n.add(r)) : r.destination = ar, r;
|
|
1009
1032
|
}
|
|
1010
|
-
return t.create = function(
|
|
1011
|
-
return new
|
|
1012
|
-
}, t.prototype.next = function(
|
|
1013
|
-
this.isStopped || this._next(
|
|
1014
|
-
}, t.prototype.error = function(
|
|
1015
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
1033
|
+
return t.create = function(n, r, i) {
|
|
1034
|
+
return new We(n, r, i);
|
|
1035
|
+
}, t.prototype.next = function(n) {
|
|
1036
|
+
this.isStopped || this._next(n);
|
|
1037
|
+
}, t.prototype.error = function(n) {
|
|
1038
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
1016
1039
|
}, t.prototype.complete = function() {
|
|
1017
1040
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
1018
1041
|
}, t.prototype.unsubscribe = function() {
|
|
1019
1042
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
1020
|
-
}, t.prototype._next = function(
|
|
1021
|
-
this.destination.next(
|
|
1022
|
-
}, t.prototype._error = function(
|
|
1043
|
+
}, t.prototype._next = function(n) {
|
|
1044
|
+
this.destination.next(n);
|
|
1045
|
+
}, t.prototype._error = function(n) {
|
|
1023
1046
|
try {
|
|
1024
|
-
this.destination.error(
|
|
1047
|
+
this.destination.error(n);
|
|
1025
1048
|
} finally {
|
|
1026
1049
|
this.unsubscribe();
|
|
1027
1050
|
}
|
|
@@ -1032,96 +1055,96 @@ var Jt = function(e) {
|
|
|
1032
1055
|
this.unsubscribe();
|
|
1033
1056
|
}
|
|
1034
1057
|
}, t;
|
|
1035
|
-
}(
|
|
1058
|
+
}(He), or = function() {
|
|
1036
1059
|
function e(t) {
|
|
1037
1060
|
this.partialObserver = t;
|
|
1038
1061
|
}
|
|
1039
1062
|
return e.prototype.next = function(t) {
|
|
1040
|
-
var
|
|
1041
|
-
if (
|
|
1063
|
+
var n = this.partialObserver;
|
|
1064
|
+
if (n.next)
|
|
1042
1065
|
try {
|
|
1043
|
-
|
|
1044
|
-
} catch (
|
|
1045
|
-
|
|
1066
|
+
n.next(t);
|
|
1067
|
+
} catch (r) {
|
|
1068
|
+
pe(r);
|
|
1046
1069
|
}
|
|
1047
1070
|
}, e.prototype.error = function(t) {
|
|
1048
|
-
var
|
|
1049
|
-
if (
|
|
1071
|
+
var n = this.partialObserver;
|
|
1072
|
+
if (n.error)
|
|
1050
1073
|
try {
|
|
1051
|
-
|
|
1052
|
-
} catch (
|
|
1053
|
-
|
|
1074
|
+
n.error(t);
|
|
1075
|
+
} catch (r) {
|
|
1076
|
+
pe(r);
|
|
1054
1077
|
}
|
|
1055
1078
|
else
|
|
1056
|
-
|
|
1079
|
+
pe(t);
|
|
1057
1080
|
}, e.prototype.complete = function() {
|
|
1058
1081
|
var t = this.partialObserver;
|
|
1059
1082
|
if (t.complete)
|
|
1060
1083
|
try {
|
|
1061
1084
|
t.complete();
|
|
1062
|
-
} catch (
|
|
1063
|
-
|
|
1085
|
+
} catch (n) {
|
|
1086
|
+
pe(n);
|
|
1064
1087
|
}
|
|
1065
1088
|
}, e;
|
|
1066
|
-
}(),
|
|
1067
|
-
|
|
1068
|
-
function t(
|
|
1089
|
+
}(), We = function(e) {
|
|
1090
|
+
C(t, e);
|
|
1091
|
+
function t(n, r, i) {
|
|
1069
1092
|
var o = e.call(this) || this, a;
|
|
1070
|
-
return
|
|
1071
|
-
next:
|
|
1072
|
-
error:
|
|
1093
|
+
return M(n) || !n ? a = {
|
|
1094
|
+
next: n ?? void 0,
|
|
1095
|
+
error: r ?? void 0,
|
|
1073
1096
|
complete: i ?? void 0
|
|
1074
|
-
} : a =
|
|
1097
|
+
} : a = n, o.destination = new or(a), o;
|
|
1075
1098
|
}
|
|
1076
1099
|
return t;
|
|
1077
|
-
}(
|
|
1078
|
-
function
|
|
1079
|
-
|
|
1100
|
+
}(zt);
|
|
1101
|
+
function pe(e) {
|
|
1102
|
+
ir(e);
|
|
1080
1103
|
}
|
|
1081
|
-
function
|
|
1104
|
+
function sr(e) {
|
|
1082
1105
|
throw e;
|
|
1083
1106
|
}
|
|
1084
|
-
var
|
|
1107
|
+
var ar = {
|
|
1085
1108
|
closed: !0,
|
|
1086
|
-
next:
|
|
1087
|
-
error:
|
|
1088
|
-
complete:
|
|
1089
|
-
},
|
|
1109
|
+
next: lt,
|
|
1110
|
+
error: sr,
|
|
1111
|
+
complete: lt
|
|
1112
|
+
}, ur = function() {
|
|
1090
1113
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1091
1114
|
}();
|
|
1092
|
-
function
|
|
1115
|
+
function hr(e) {
|
|
1093
1116
|
return e;
|
|
1094
1117
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return e.length === 0 ?
|
|
1097
|
-
return e.reduce(function(
|
|
1098
|
-
return i(
|
|
1099
|
-
},
|
|
1118
|
+
function lr(e) {
|
|
1119
|
+
return e.length === 0 ? hr : e.length === 1 ? e[0] : function(n) {
|
|
1120
|
+
return e.reduce(function(r, i) {
|
|
1121
|
+
return i(r);
|
|
1122
|
+
}, n);
|
|
1100
1123
|
};
|
|
1101
1124
|
}
|
|
1102
|
-
var
|
|
1125
|
+
var ft = function() {
|
|
1103
1126
|
function e(t) {
|
|
1104
1127
|
t && (this._subscribe = t);
|
|
1105
1128
|
}
|
|
1106
1129
|
return e.prototype.lift = function(t) {
|
|
1107
|
-
var
|
|
1108
|
-
return
|
|
1109
|
-
}, e.prototype.subscribe = function(t,
|
|
1110
|
-
var i = this, o =
|
|
1111
|
-
return
|
|
1130
|
+
var n = new e();
|
|
1131
|
+
return n.source = this, n.operator = t, n;
|
|
1132
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
1133
|
+
var i = this, o = cr(t) ? t : new We(t, n, r);
|
|
1134
|
+
return ye(function() {
|
|
1112
1135
|
var a = i, s = a.operator, h = a.source;
|
|
1113
1136
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
1114
1137
|
}), o;
|
|
1115
1138
|
}, e.prototype._trySubscribe = function(t) {
|
|
1116
1139
|
try {
|
|
1117
1140
|
return this._subscribe(t);
|
|
1118
|
-
} catch (
|
|
1119
|
-
t.error(
|
|
1141
|
+
} catch (n) {
|
|
1142
|
+
t.error(n);
|
|
1120
1143
|
}
|
|
1121
|
-
}, e.prototype.forEach = function(t,
|
|
1122
|
-
var
|
|
1123
|
-
return
|
|
1124
|
-
var a = new
|
|
1144
|
+
}, e.prototype.forEach = function(t, n) {
|
|
1145
|
+
var r = this;
|
|
1146
|
+
return n = ct(n), new n(function(i, o) {
|
|
1147
|
+
var a = new We({
|
|
1125
1148
|
next: function(s) {
|
|
1126
1149
|
try {
|
|
1127
1150
|
t(s);
|
|
@@ -1132,69 +1155,69 @@ var mt = function() {
|
|
|
1132
1155
|
error: o,
|
|
1133
1156
|
complete: i
|
|
1134
1157
|
});
|
|
1135
|
-
|
|
1158
|
+
r.subscribe(a);
|
|
1136
1159
|
});
|
|
1137
1160
|
}, e.prototype._subscribe = function(t) {
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1140
|
-
}, e.prototype[
|
|
1161
|
+
var n;
|
|
1162
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
1163
|
+
}, e.prototype[ur] = function() {
|
|
1141
1164
|
return this;
|
|
1142
1165
|
}, e.prototype.pipe = function() {
|
|
1143
|
-
for (var t = [],
|
|
1144
|
-
t[
|
|
1145
|
-
return
|
|
1166
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1167
|
+
t[n] = arguments[n];
|
|
1168
|
+
return lr(t)(this);
|
|
1146
1169
|
}, e.prototype.toPromise = function(t) {
|
|
1147
|
-
var
|
|
1148
|
-
return t =
|
|
1170
|
+
var n = this;
|
|
1171
|
+
return t = ct(t), new t(function(r, i) {
|
|
1149
1172
|
var o;
|
|
1150
|
-
|
|
1173
|
+
n.subscribe(function(a) {
|
|
1151
1174
|
return o = a;
|
|
1152
1175
|
}, function(a) {
|
|
1153
1176
|
return i(a);
|
|
1154
1177
|
}, function() {
|
|
1155
|
-
return
|
|
1178
|
+
return r(o);
|
|
1156
1179
|
});
|
|
1157
1180
|
});
|
|
1158
1181
|
}, e.create = function(t) {
|
|
1159
1182
|
return new e(t);
|
|
1160
1183
|
}, e;
|
|
1161
1184
|
}();
|
|
1162
|
-
function
|
|
1185
|
+
function ct(e) {
|
|
1163
1186
|
var t;
|
|
1164
|
-
return (t = e ??
|
|
1187
|
+
return (t = e ?? nr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1165
1188
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return e &&
|
|
1189
|
+
function fr(e) {
|
|
1190
|
+
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
1168
1191
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return e && e instanceof
|
|
1192
|
+
function cr(e) {
|
|
1193
|
+
return e && e instanceof zt || fr(e) && Wt(e);
|
|
1171
1194
|
}
|
|
1172
|
-
var
|
|
1195
|
+
var dr = Vt(function(e) {
|
|
1173
1196
|
return function() {
|
|
1174
1197
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1175
1198
|
};
|
|
1176
|
-
}),
|
|
1177
|
-
|
|
1199
|
+
}), Zt = function(e) {
|
|
1200
|
+
C(t, e);
|
|
1178
1201
|
function t() {
|
|
1179
|
-
var
|
|
1180
|
-
return
|
|
1202
|
+
var n = e.call(this) || this;
|
|
1203
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1181
1204
|
}
|
|
1182
|
-
return t.prototype.lift = function(
|
|
1183
|
-
var
|
|
1184
|
-
return
|
|
1205
|
+
return t.prototype.lift = function(n) {
|
|
1206
|
+
var r = new dt(this, this);
|
|
1207
|
+
return r.operator = n, r;
|
|
1185
1208
|
}, t.prototype._throwIfClosed = function() {
|
|
1186
1209
|
if (this.closed)
|
|
1187
|
-
throw new
|
|
1188
|
-
}, t.prototype.next = function(
|
|
1189
|
-
var
|
|
1190
|
-
|
|
1210
|
+
throw new dr();
|
|
1211
|
+
}, t.prototype.next = function(n) {
|
|
1212
|
+
var r = this;
|
|
1213
|
+
ye(function() {
|
|
1191
1214
|
var i, o;
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1215
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1216
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1194
1217
|
try {
|
|
1195
|
-
for (var a =
|
|
1218
|
+
for (var a = ke(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1196
1219
|
var h = s.value;
|
|
1197
|
-
h.next(
|
|
1220
|
+
h.next(n);
|
|
1198
1221
|
}
|
|
1199
1222
|
} catch (u) {
|
|
1200
1223
|
i = { error: u };
|
|
@@ -1208,118 +1231,118 @@ var bn = Zt(function(e) {
|
|
|
1208
1231
|
}
|
|
1209
1232
|
}
|
|
1210
1233
|
});
|
|
1211
|
-
}, t.prototype.error = function(
|
|
1212
|
-
var
|
|
1213
|
-
|
|
1214
|
-
if (
|
|
1215
|
-
|
|
1216
|
-
for (var i =
|
|
1217
|
-
i.shift().error(
|
|
1234
|
+
}, t.prototype.error = function(n) {
|
|
1235
|
+
var r = this;
|
|
1236
|
+
ye(function() {
|
|
1237
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1238
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1239
|
+
for (var i = r.observers; i.length; )
|
|
1240
|
+
i.shift().error(n);
|
|
1218
1241
|
}
|
|
1219
1242
|
});
|
|
1220
1243
|
}, t.prototype.complete = function() {
|
|
1221
|
-
var
|
|
1222
|
-
|
|
1223
|
-
if (
|
|
1224
|
-
|
|
1225
|
-
for (var
|
|
1226
|
-
|
|
1244
|
+
var n = this;
|
|
1245
|
+
ye(function() {
|
|
1246
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1247
|
+
n.isStopped = !0;
|
|
1248
|
+
for (var r = n.observers; r.length; )
|
|
1249
|
+
r.shift().complete();
|
|
1227
1250
|
}
|
|
1228
1251
|
});
|
|
1229
1252
|
}, t.prototype.unsubscribe = function() {
|
|
1230
1253
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1231
1254
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1232
1255
|
get: function() {
|
|
1233
|
-
var
|
|
1234
|
-
return ((
|
|
1256
|
+
var n;
|
|
1257
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1235
1258
|
},
|
|
1236
1259
|
enumerable: !1,
|
|
1237
1260
|
configurable: !0
|
|
1238
|
-
}), t.prototype._trySubscribe = function(
|
|
1239
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1240
|
-
}, t.prototype._subscribe = function(
|
|
1241
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1242
|
-
}, t.prototype._innerSubscribe = function(
|
|
1243
|
-
var
|
|
1244
|
-
return o || a ?
|
|
1245
|
-
|
|
1261
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1262
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1263
|
+
}, t.prototype._subscribe = function(n) {
|
|
1264
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1265
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1266
|
+
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1267
|
+
return o || a ? Xt : (this.currentObservers = null, s.push(n), new He(function() {
|
|
1268
|
+
r.currentObservers = null, Xe(s, n);
|
|
1246
1269
|
}));
|
|
1247
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1248
|
-
var
|
|
1249
|
-
i ?
|
|
1270
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1271
|
+
var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
|
|
1272
|
+
i ? n.error(o) : a && n.complete();
|
|
1250
1273
|
}, t.prototype.asObservable = function() {
|
|
1251
|
-
var
|
|
1252
|
-
return
|
|
1253
|
-
}, t.create = function(
|
|
1254
|
-
return new
|
|
1274
|
+
var n = new ft();
|
|
1275
|
+
return n.source = this, n;
|
|
1276
|
+
}, t.create = function(n, r) {
|
|
1277
|
+
return new dt(n, r);
|
|
1255
1278
|
}, t;
|
|
1256
|
-
}(
|
|
1257
|
-
|
|
1258
|
-
function t(
|
|
1279
|
+
}(ft), dt = function(e) {
|
|
1280
|
+
C(t, e);
|
|
1281
|
+
function t(n, r) {
|
|
1259
1282
|
var i = e.call(this) || this;
|
|
1260
|
-
return i.destination =
|
|
1283
|
+
return i.destination = n, i.source = r, i;
|
|
1261
1284
|
}
|
|
1262
|
-
return t.prototype.next = function(
|
|
1263
|
-
var
|
|
1264
|
-
(i = (
|
|
1265
|
-
}, t.prototype.error = function(
|
|
1266
|
-
var
|
|
1267
|
-
(i = (
|
|
1285
|
+
return t.prototype.next = function(n) {
|
|
1286
|
+
var r, i;
|
|
1287
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1288
|
+
}, t.prototype.error = function(n) {
|
|
1289
|
+
var r, i;
|
|
1290
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1268
1291
|
}, t.prototype.complete = function() {
|
|
1269
|
-
var
|
|
1270
|
-
(
|
|
1271
|
-
}, t.prototype._subscribe = function(
|
|
1272
|
-
var
|
|
1273
|
-
return (i = (
|
|
1292
|
+
var n, r;
|
|
1293
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1294
|
+
}, t.prototype._subscribe = function(n) {
|
|
1295
|
+
var r, i;
|
|
1296
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Xt;
|
|
1274
1297
|
}, t;
|
|
1275
|
-
}(
|
|
1298
|
+
}(Zt), qt = {
|
|
1276
1299
|
now: function() {
|
|
1277
|
-
return (
|
|
1300
|
+
return (qt.delegate || Date).now();
|
|
1278
1301
|
},
|
|
1279
1302
|
delegate: void 0
|
|
1280
|
-
},
|
|
1281
|
-
|
|
1282
|
-
function t(
|
|
1283
|
-
|
|
1303
|
+
}, pr = function(e) {
|
|
1304
|
+
C(t, e);
|
|
1305
|
+
function t(n, r, i) {
|
|
1306
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = qt);
|
|
1284
1307
|
var o = e.call(this) || this;
|
|
1285
|
-
return o._bufferSize =
|
|
1308
|
+
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
1286
1309
|
}
|
|
1287
|
-
return t.prototype.next = function(
|
|
1288
|
-
var
|
|
1289
|
-
i || (o.push(
|
|
1290
|
-
}, t.prototype._subscribe = function(
|
|
1310
|
+
return t.prototype.next = function(n) {
|
|
1311
|
+
var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, h = r._windowTime;
|
|
1312
|
+
i || (o.push(n), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1313
|
+
}, t.prototype._subscribe = function(n) {
|
|
1291
1314
|
this._throwIfClosed(), this._trimBuffer();
|
|
1292
|
-
for (var
|
|
1293
|
-
|
|
1294
|
-
return this._checkFinalizedStatuses(
|
|
1315
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !n.closed; h += o ? 1 : 2)
|
|
1316
|
+
n.next(s[h]);
|
|
1317
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1295
1318
|
}, t.prototype._trimBuffer = function() {
|
|
1296
|
-
var
|
|
1297
|
-
if (
|
|
1319
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
|
|
1320
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1298
1321
|
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
1299
1322
|
u = l;
|
|
1300
1323
|
u && o.splice(0, u + 1);
|
|
1301
1324
|
}
|
|
1302
1325
|
}, t;
|
|
1303
|
-
}(
|
|
1304
|
-
const
|
|
1305
|
-
if (
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1326
|
+
}(Zt);
|
|
1327
|
+
const pt = [], mt = {}, mr = (e, t = 0) => {
|
|
1328
|
+
if (pt.indexOf(e) == -1) {
|
|
1329
|
+
const n = new pr(t);
|
|
1330
|
+
mt[e] = n, pt.push(e);
|
|
1308
1331
|
}
|
|
1309
|
-
return
|
|
1332
|
+
return mt[e];
|
|
1310
1333
|
}, k = [];
|
|
1311
|
-
function
|
|
1334
|
+
function br(e, t) {
|
|
1312
1335
|
return {
|
|
1313
|
-
subscribe:
|
|
1336
|
+
subscribe: Be(e, t).subscribe
|
|
1314
1337
|
};
|
|
1315
1338
|
}
|
|
1316
|
-
function
|
|
1317
|
-
let
|
|
1318
|
-
const
|
|
1339
|
+
function Be(e, t = H) {
|
|
1340
|
+
let n;
|
|
1341
|
+
const r = /* @__PURE__ */ new Set();
|
|
1319
1342
|
function i(s) {
|
|
1320
|
-
if (
|
|
1343
|
+
if (Nt(e, s) && (e = s, n)) {
|
|
1321
1344
|
const h = !k.length;
|
|
1322
|
-
for (const u of
|
|
1345
|
+
for (const u of r)
|
|
1323
1346
|
u[1](), k.push(u, e);
|
|
1324
1347
|
if (h) {
|
|
1325
1348
|
for (let u = 0; u < k.length; u += 2)
|
|
@@ -1333,191 +1356,152 @@ function Ae(e, t = H) {
|
|
|
1333
1356
|
}
|
|
1334
1357
|
function a(s, h = H) {
|
|
1335
1358
|
const u = [s, h];
|
|
1336
|
-
return
|
|
1337
|
-
|
|
1359
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || H), s(e), () => {
|
|
1360
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
1338
1361
|
};
|
|
1339
1362
|
}
|
|
1340
1363
|
return { set: i, update: o, subscribe: a };
|
|
1341
1364
|
}
|
|
1342
|
-
function
|
|
1343
|
-
const
|
|
1365
|
+
function ee(e, t, n) {
|
|
1366
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1344
1367
|
if (!i.every(Boolean))
|
|
1345
1368
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1346
1369
|
const o = t.length < 2;
|
|
1347
|
-
return
|
|
1370
|
+
return br(n, (a, s) => {
|
|
1348
1371
|
let h = !1;
|
|
1349
1372
|
const u = [];
|
|
1350
|
-
let l = 0,
|
|
1351
|
-
const
|
|
1373
|
+
let l = 0, c = H;
|
|
1374
|
+
const f = () => {
|
|
1352
1375
|
if (l)
|
|
1353
1376
|
return;
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1356
|
-
o ? a(
|
|
1357
|
-
},
|
|
1358
|
-
(
|
|
1359
|
-
|
|
1360
|
-
(
|
|
1361
|
-
u[m] =
|
|
1377
|
+
c();
|
|
1378
|
+
const d = t(r ? u[0] : u, a, s);
|
|
1379
|
+
o ? a(d) : c = he(d) ? d : H;
|
|
1380
|
+
}, p = i.map(
|
|
1381
|
+
(d, m) => Mt(
|
|
1382
|
+
d,
|
|
1383
|
+
(x) => {
|
|
1384
|
+
u[m] = x, l &= ~(1 << m), h && f();
|
|
1362
1385
|
},
|
|
1363
1386
|
() => {
|
|
1364
1387
|
l |= 1 << m;
|
|
1365
1388
|
}
|
|
1366
1389
|
)
|
|
1367
1390
|
);
|
|
1368
|
-
return h = !0,
|
|
1369
|
-
G(
|
|
1391
|
+
return h = !0, f(), function() {
|
|
1392
|
+
G(p), c(), h = !1;
|
|
1370
1393
|
};
|
|
1371
1394
|
});
|
|
1372
1395
|
}
|
|
1373
|
-
var
|
|
1374
|
-
function
|
|
1396
|
+
var Uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1397
|
+
function gr(e) {
|
|
1375
1398
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1376
1399
|
}
|
|
1377
|
-
var
|
|
1378
|
-
return
|
|
1400
|
+
var yr = function(t) {
|
|
1401
|
+
return _r(t) && !vr(t);
|
|
1379
1402
|
};
|
|
1380
|
-
function
|
|
1403
|
+
function _r(e) {
|
|
1381
1404
|
return !!e && typeof e == "object";
|
|
1382
1405
|
}
|
|
1383
|
-
function
|
|
1406
|
+
function vr(e) {
|
|
1384
1407
|
var t = Object.prototype.toString.call(e);
|
|
1385
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1408
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
|
|
1386
1409
|
}
|
|
1387
|
-
var
|
|
1388
|
-
function
|
|
1389
|
-
return e.$$typeof ===
|
|
1410
|
+
var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
|
|
1411
|
+
function Sr(e) {
|
|
1412
|
+
return e.$$typeof === Er;
|
|
1390
1413
|
}
|
|
1391
|
-
function
|
|
1414
|
+
function Tr(e) {
|
|
1392
1415
|
return Array.isArray(e) ? [] : {};
|
|
1393
1416
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1417
|
+
function ae(e, t) {
|
|
1418
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Tr(e), e, t) : e;
|
|
1396
1419
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return e.concat(t).map(function(
|
|
1399
|
-
return
|
|
1420
|
+
function wr(e, t, n) {
|
|
1421
|
+
return e.concat(t).map(function(r) {
|
|
1422
|
+
return ae(r, n);
|
|
1400
1423
|
});
|
|
1401
1424
|
}
|
|
1402
|
-
function
|
|
1425
|
+
function Hr(e, t) {
|
|
1403
1426
|
if (!t.customMerge)
|
|
1404
|
-
return
|
|
1405
|
-
var
|
|
1406
|
-
return typeof
|
|
1427
|
+
return q;
|
|
1428
|
+
var n = t.customMerge(e);
|
|
1429
|
+
return typeof n == "function" ? n : q;
|
|
1407
1430
|
}
|
|
1408
|
-
function
|
|
1431
|
+
function Br(e) {
|
|
1409
1432
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1410
1433
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1411
1434
|
}) : [];
|
|
1412
1435
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return Object.keys(e).concat(
|
|
1436
|
+
function bt(e) {
|
|
1437
|
+
return Object.keys(e).concat(Br(e));
|
|
1415
1438
|
}
|
|
1416
|
-
function
|
|
1439
|
+
function Qt(e, t) {
|
|
1417
1440
|
try {
|
|
1418
1441
|
return t in e;
|
|
1419
1442
|
} catch {
|
|
1420
1443
|
return !1;
|
|
1421
1444
|
}
|
|
1422
1445
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1446
|
+
function Ar(e, t) {
|
|
1447
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1425
1448
|
}
|
|
1426
|
-
function
|
|
1427
|
-
var
|
|
1428
|
-
return
|
|
1429
|
-
|
|
1430
|
-
}),
|
|
1431
|
-
|
|
1432
|
-
}),
|
|
1433
|
-
}
|
|
1434
|
-
function
|
|
1435
|
-
|
|
1436
|
-
var
|
|
1437
|
-
return o ?
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1449
|
+
function Pr(e, t, n) {
|
|
1450
|
+
var r = {};
|
|
1451
|
+
return n.isMergeableObject(e) && bt(e).forEach(function(i) {
|
|
1452
|
+
r[i] = ae(e[i], n);
|
|
1453
|
+
}), bt(t).forEach(function(i) {
|
|
1454
|
+
Ar(e, i) || (Qt(e, i) && n.isMergeableObject(t[i]) ? r[i] = Hr(i, n)(e[i], t[i], n) : r[i] = ae(t[i], n));
|
|
1455
|
+
}), r;
|
|
1456
|
+
}
|
|
1457
|
+
function q(e, t, n) {
|
|
1458
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || wr, n.isMergeableObject = n.isMergeableObject || yr, n.cloneUnlessOtherwiseSpecified = ae;
|
|
1459
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
1460
|
+
return o ? r ? n.arrayMerge(e, t, n) : Pr(e, t, n) : ae(t, n);
|
|
1461
|
+
}
|
|
1462
|
+
q.all = function(t, n) {
|
|
1440
1463
|
if (!Array.isArray(t))
|
|
1441
1464
|
throw new Error("first argument should be an array");
|
|
1442
|
-
return t.reduce(function(
|
|
1443
|
-
return
|
|
1465
|
+
return t.reduce(function(r, i) {
|
|
1466
|
+
return q(r, i, n);
|
|
1444
1467
|
}, {});
|
|
1445
1468
|
};
|
|
1446
|
-
var
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
r.__proto__ = n;
|
|
1451
|
-
} || function(r, n) {
|
|
1452
|
-
for (var i in n)
|
|
1453
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1454
|
-
}, Je(e, t);
|
|
1455
|
-
};
|
|
1456
|
-
function Pe(e, t) {
|
|
1457
|
-
if (typeof t != "function" && t !== null)
|
|
1458
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1459
|
-
Je(e, t);
|
|
1460
|
-
function r() {
|
|
1461
|
-
this.constructor = e;
|
|
1462
|
-
}
|
|
1463
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1464
|
-
}
|
|
1465
|
-
var N = function() {
|
|
1466
|
-
return N = Object.assign || function(t) {
|
|
1467
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1468
|
-
r = arguments[n];
|
|
1469
|
-
for (var o in r)
|
|
1470
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1471
|
-
}
|
|
1472
|
-
return t;
|
|
1473
|
-
}, N.apply(this, arguments);
|
|
1474
|
-
};
|
|
1475
|
-
function $n(e, t) {
|
|
1476
|
-
var r = {};
|
|
1477
|
-
for (var n in e)
|
|
1478
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1479
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1480
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1481
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1482
|
-
return r;
|
|
1483
|
-
}
|
|
1484
|
-
function Re(e, t, r) {
|
|
1485
|
-
if (r || arguments.length === 2)
|
|
1486
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1487
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1488
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1489
|
-
}
|
|
1490
|
-
function Ue(e, t) {
|
|
1491
|
-
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
|
|
1469
|
+
var Or = q, Ir = Or;
|
|
1470
|
+
const Lr = /* @__PURE__ */ gr(Ir);
|
|
1471
|
+
function Ce(e, t) {
|
|
1472
|
+
var n = t && t.cache ? t.cache : Dr, r = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Mr;
|
|
1492
1473
|
return i(e, {
|
|
1493
|
-
cache:
|
|
1494
|
-
serializer:
|
|
1474
|
+
cache: n,
|
|
1475
|
+
serializer: r
|
|
1495
1476
|
});
|
|
1496
1477
|
}
|
|
1497
|
-
function
|
|
1478
|
+
function Nr(e) {
|
|
1498
1479
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1499
1480
|
}
|
|
1500
|
-
function
|
|
1501
|
-
var i =
|
|
1502
|
-
return typeof o > "u" && (o = e.call(this,
|
|
1481
|
+
function Jt(e, t, n, r) {
|
|
1482
|
+
var i = Nr(r) ? r : n(r), o = t.get(i);
|
|
1483
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
1503
1484
|
}
|
|
1504
|
-
function
|
|
1505
|
-
var
|
|
1506
|
-
return typeof o > "u" && (o = e.apply(this,
|
|
1485
|
+
function Yt(e, t, n) {
|
|
1486
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1487
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1507
1488
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1489
|
+
function rt(e, t, n, r, i) {
|
|
1490
|
+
return n.bind(t, e, r, i);
|
|
1510
1491
|
}
|
|
1511
|
-
function
|
|
1512
|
-
var
|
|
1513
|
-
return
|
|
1492
|
+
function Mr(e, t) {
|
|
1493
|
+
var n = e.length === 1 ? Jt : Yt;
|
|
1494
|
+
return rt(e, this, n, t.cache.create(), t.serializer);
|
|
1514
1495
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return
|
|
1496
|
+
function Cr(e, t) {
|
|
1497
|
+
return rt(e, this, Yt, t.cache.create(), t.serializer);
|
|
1517
1498
|
}
|
|
1518
|
-
|
|
1499
|
+
function $r(e, t) {
|
|
1500
|
+
return rt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1501
|
+
}
|
|
1502
|
+
var Rr = function() {
|
|
1519
1503
|
return JSON.stringify(arguments);
|
|
1520
|
-
},
|
|
1504
|
+
}, Ur = (
|
|
1521
1505
|
/** @class */
|
|
1522
1506
|
function() {
|
|
1523
1507
|
function e() {
|
|
@@ -1525,27 +1509,18 @@ var Fn = function() {
|
|
|
1525
1509
|
}
|
|
1526
1510
|
return e.prototype.get = function(t) {
|
|
1527
1511
|
return this.cache[t];
|
|
1528
|
-
}, e.prototype.set = function(t,
|
|
1529
|
-
this.cache[t] =
|
|
1512
|
+
}, e.prototype.set = function(t, n) {
|
|
1513
|
+
this.cache[t] = n;
|
|
1530
1514
|
}, e;
|
|
1531
1515
|
}()
|
|
1532
|
-
),
|
|
1516
|
+
), Dr = {
|
|
1533
1517
|
create: function() {
|
|
1534
|
-
return new
|
|
1518
|
+
return new Ur();
|
|
1535
1519
|
}
|
|
1536
|
-
},
|
|
1537
|
-
variadic:
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1541
|
-
r = arguments[n];
|
|
1542
|
-
for (var o in r)
|
|
1543
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1544
|
-
}
|
|
1545
|
-
return t;
|
|
1546
|
-
}, Te.apply(this, arguments);
|
|
1547
|
-
};
|
|
1548
|
-
var b;
|
|
1520
|
+
}, $e = {
|
|
1521
|
+
variadic: Cr,
|
|
1522
|
+
monadic: $r
|
|
1523
|
+
}, b;
|
|
1549
1524
|
(function(e) {
|
|
1550
1525
|
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";
|
|
1551
1526
|
})(b || (b = {}));
|
|
@@ -1553,54 +1528,54 @@ var v;
|
|
|
1553
1528
|
(function(e) {
|
|
1554
1529
|
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";
|
|
1555
1530
|
})(v || (v = {}));
|
|
1556
|
-
var
|
|
1531
|
+
var Q;
|
|
1557
1532
|
(function(e) {
|
|
1558
1533
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1559
|
-
})(
|
|
1560
|
-
function
|
|
1534
|
+
})(Q || (Q = {}));
|
|
1535
|
+
function gt(e) {
|
|
1561
1536
|
return e.type === v.literal;
|
|
1562
1537
|
}
|
|
1563
|
-
function
|
|
1538
|
+
function Gr(e) {
|
|
1564
1539
|
return e.type === v.argument;
|
|
1565
1540
|
}
|
|
1566
|
-
function
|
|
1541
|
+
function Kt(e) {
|
|
1567
1542
|
return e.type === v.number;
|
|
1568
1543
|
}
|
|
1569
|
-
function
|
|
1544
|
+
function en(e) {
|
|
1570
1545
|
return e.type === v.date;
|
|
1571
1546
|
}
|
|
1572
|
-
function
|
|
1547
|
+
function tn(e) {
|
|
1573
1548
|
return e.type === v.time;
|
|
1574
1549
|
}
|
|
1575
|
-
function
|
|
1550
|
+
function nn(e) {
|
|
1576
1551
|
return e.type === v.select;
|
|
1577
1552
|
}
|
|
1578
|
-
function
|
|
1553
|
+
function rn(e) {
|
|
1579
1554
|
return e.type === v.plural;
|
|
1580
1555
|
}
|
|
1581
|
-
function
|
|
1556
|
+
function Fr(e) {
|
|
1582
1557
|
return e.type === v.pound;
|
|
1583
1558
|
}
|
|
1584
|
-
function
|
|
1559
|
+
function on(e) {
|
|
1585
1560
|
return e.type === v.tag;
|
|
1586
1561
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1562
|
+
function sn(e) {
|
|
1563
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
1589
1564
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1565
|
+
function ze(e) {
|
|
1566
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
1592
1567
|
}
|
|
1593
|
-
var
|
|
1594
|
-
function
|
|
1568
|
+
var an = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[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;
|
|
1569
|
+
function kr(e) {
|
|
1595
1570
|
var t = {};
|
|
1596
|
-
return e.replace(
|
|
1597
|
-
var
|
|
1598
|
-
switch (
|
|
1571
|
+
return e.replace(jr, function(n) {
|
|
1572
|
+
var r = n.length;
|
|
1573
|
+
switch (n[0]) {
|
|
1599
1574
|
case "G":
|
|
1600
|
-
t.era =
|
|
1575
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1601
1576
|
break;
|
|
1602
1577
|
case "y":
|
|
1603
|
-
t.year =
|
|
1578
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1604
1579
|
break;
|
|
1605
1580
|
case "Y":
|
|
1606
1581
|
case "u":
|
|
@@ -1612,30 +1587,30 @@ function zn(e) {
|
|
|
1612
1587
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1613
1588
|
case "M":
|
|
1614
1589
|
case "L":
|
|
1615
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1590
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1616
1591
|
break;
|
|
1617
1592
|
case "w":
|
|
1618
1593
|
case "W":
|
|
1619
1594
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1620
1595
|
case "d":
|
|
1621
|
-
t.day = ["numeric", "2-digit"][
|
|
1596
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1622
1597
|
break;
|
|
1623
1598
|
case "D":
|
|
1624
1599
|
case "F":
|
|
1625
1600
|
case "g":
|
|
1626
1601
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1627
1602
|
case "E":
|
|
1628
|
-
t.weekday =
|
|
1603
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1629
1604
|
break;
|
|
1630
1605
|
case "e":
|
|
1631
|
-
if (
|
|
1606
|
+
if (r < 4)
|
|
1632
1607
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1633
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1608
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1634
1609
|
break;
|
|
1635
1610
|
case "c":
|
|
1636
|
-
if (
|
|
1611
|
+
if (r < 4)
|
|
1637
1612
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1638
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1613
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1639
1614
|
break;
|
|
1640
1615
|
case "a":
|
|
1641
1616
|
t.hour12 = !0;
|
|
@@ -1644,32 +1619,32 @@ function zn(e) {
|
|
|
1644
1619
|
case "B":
|
|
1645
1620
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1646
1621
|
case "h":
|
|
1647
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1622
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1648
1623
|
break;
|
|
1649
1624
|
case "H":
|
|
1650
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1625
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1651
1626
|
break;
|
|
1652
1627
|
case "K":
|
|
1653
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1628
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1654
1629
|
break;
|
|
1655
1630
|
case "k":
|
|
1656
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1631
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1657
1632
|
break;
|
|
1658
1633
|
case "j":
|
|
1659
1634
|
case "J":
|
|
1660
1635
|
case "C":
|
|
1661
1636
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1662
1637
|
case "m":
|
|
1663
|
-
t.minute = ["numeric", "2-digit"][
|
|
1638
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1664
1639
|
break;
|
|
1665
1640
|
case "s":
|
|
1666
|
-
t.second = ["numeric", "2-digit"][
|
|
1641
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1667
1642
|
break;
|
|
1668
1643
|
case "S":
|
|
1669
1644
|
case "A":
|
|
1670
1645
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1671
1646
|
case "z":
|
|
1672
|
-
t.timeZoneName =
|
|
1647
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1673
1648
|
break;
|
|
1674
1649
|
case "Z":
|
|
1675
1650
|
case "O":
|
|
@@ -1682,46 +1657,36 @@ function zn(e) {
|
|
|
1682
1657
|
return "";
|
|
1683
1658
|
}), t;
|
|
1684
1659
|
}
|
|
1685
|
-
var
|
|
1686
|
-
|
|
1687
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1688
|
-
r = arguments[n];
|
|
1689
|
-
for (var o in r)
|
|
1690
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1691
|
-
}
|
|
1692
|
-
return t;
|
|
1693
|
-
}, E.apply(this, arguments);
|
|
1694
|
-
};
|
|
1695
|
-
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1696
|
-
function qn(e) {
|
|
1660
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1661
|
+
function Xr(e) {
|
|
1697
1662
|
if (e.length === 0)
|
|
1698
1663
|
throw new Error("Number skeleton cannot be empty");
|
|
1699
|
-
for (var t = e.split(
|
|
1700
|
-
return
|
|
1701
|
-
}),
|
|
1702
|
-
var o = i[
|
|
1664
|
+
for (var t = e.split(Vr).filter(function(f) {
|
|
1665
|
+
return f.length > 0;
|
|
1666
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1667
|
+
var o = i[r], a = o.split("/");
|
|
1703
1668
|
if (a.length === 0)
|
|
1704
1669
|
throw new Error("Invalid number skeleton");
|
|
1705
1670
|
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1706
|
-
var
|
|
1707
|
-
if (
|
|
1671
|
+
var c = l[u];
|
|
1672
|
+
if (c.length === 0)
|
|
1708
1673
|
throw new Error("Invalid number skeleton");
|
|
1709
1674
|
}
|
|
1710
|
-
|
|
1675
|
+
n.push({ stem: s, options: h });
|
|
1711
1676
|
}
|
|
1712
|
-
return
|
|
1677
|
+
return n;
|
|
1713
1678
|
}
|
|
1714
|
-
function
|
|
1679
|
+
function Wr(e) {
|
|
1715
1680
|
return e.replace(/^(.*?)-/, "");
|
|
1716
1681
|
}
|
|
1717
|
-
var
|
|
1718
|
-
function
|
|
1682
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, un = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, hn = /^(0+)$/;
|
|
1683
|
+
function _t(e) {
|
|
1719
1684
|
var t = {};
|
|
1720
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1721
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1685
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(un, function(n, r, i) {
|
|
1686
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1722
1687
|
}), t;
|
|
1723
1688
|
}
|
|
1724
|
-
function
|
|
1689
|
+
function ln(e) {
|
|
1725
1690
|
switch (e) {
|
|
1726
1691
|
case "sign-auto":
|
|
1727
1692
|
return {
|
|
@@ -1761,27 +1726,27 @@ function pr(e) {
|
|
|
1761
1726
|
};
|
|
1762
1727
|
}
|
|
1763
1728
|
}
|
|
1764
|
-
function
|
|
1729
|
+
function Zr(e) {
|
|
1765
1730
|
var t;
|
|
1766
1731
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1767
1732
|
notation: "engineering"
|
|
1768
1733
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1769
1734
|
notation: "scientific"
|
|
1770
1735
|
}, e = e.slice(1)), t) {
|
|
1771
|
-
var
|
|
1772
|
-
if (
|
|
1736
|
+
var n = e.slice(0, 2);
|
|
1737
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hn.test(e))
|
|
1773
1738
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1774
1739
|
t.minimumIntegerDigits = e.length;
|
|
1775
1740
|
}
|
|
1776
1741
|
return t;
|
|
1777
1742
|
}
|
|
1778
|
-
function
|
|
1779
|
-
var t = {},
|
|
1780
|
-
return
|
|
1743
|
+
function vt(e) {
|
|
1744
|
+
var t = {}, n = ln(e);
|
|
1745
|
+
return n || t;
|
|
1781
1746
|
}
|
|
1782
|
-
function
|
|
1783
|
-
for (var t = {},
|
|
1784
|
-
var i = n
|
|
1747
|
+
function qr(e) {
|
|
1748
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1749
|
+
var i = r[n];
|
|
1785
1750
|
switch (i.stem) {
|
|
1786
1751
|
case "percent":
|
|
1787
1752
|
case "%":
|
|
@@ -1803,7 +1768,7 @@ function Kn(e) {
|
|
|
1803
1768
|
continue;
|
|
1804
1769
|
case "measure-unit":
|
|
1805
1770
|
case "unit":
|
|
1806
|
-
t.style = "unit", t.unit =
|
|
1771
|
+
t.style = "unit", t.unit = Wr(i.options[0]);
|
|
1807
1772
|
continue;
|
|
1808
1773
|
case "compact-short":
|
|
1809
1774
|
case "K":
|
|
@@ -1814,13 +1779,13 @@ function Kn(e) {
|
|
|
1814
1779
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1815
1780
|
continue;
|
|
1816
1781
|
case "scientific":
|
|
1817
|
-
t =
|
|
1818
|
-
return
|
|
1782
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1783
|
+
return y(y({}, h), vt(u));
|
|
1819
1784
|
}, {}));
|
|
1820
1785
|
continue;
|
|
1821
1786
|
case "engineering":
|
|
1822
|
-
t =
|
|
1823
|
-
return
|
|
1787
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1788
|
+
return y(y({}, h), vt(u));
|
|
1824
1789
|
}, {}));
|
|
1825
1790
|
continue;
|
|
1826
1791
|
case "notation-simple":
|
|
@@ -1865,41 +1830,41 @@ function Kn(e) {
|
|
|
1865
1830
|
case "integer-width":
|
|
1866
1831
|
if (i.options.length > 1)
|
|
1867
1832
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1868
|
-
i.options[0].replace(
|
|
1833
|
+
i.options[0].replace(zr, function(h, u, l, c, f, p) {
|
|
1869
1834
|
if (u)
|
|
1870
1835
|
t.minimumIntegerDigits = l.length;
|
|
1871
1836
|
else {
|
|
1872
|
-
if (
|
|
1837
|
+
if (c && f)
|
|
1873
1838
|
throw new Error("We currently do not support maximum integer digits");
|
|
1874
|
-
if (
|
|
1839
|
+
if (p)
|
|
1875
1840
|
throw new Error("We currently do not support exact integer digits");
|
|
1876
1841
|
}
|
|
1877
1842
|
return "";
|
|
1878
1843
|
});
|
|
1879
1844
|
continue;
|
|
1880
1845
|
}
|
|
1881
|
-
if (
|
|
1846
|
+
if (hn.test(i.stem)) {
|
|
1882
1847
|
t.minimumIntegerDigits = i.stem.length;
|
|
1883
1848
|
continue;
|
|
1884
1849
|
}
|
|
1885
|
-
if (
|
|
1850
|
+
if (yt.test(i.stem)) {
|
|
1886
1851
|
if (i.options.length > 1)
|
|
1887
1852
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1888
|
-
i.stem.replace(
|
|
1889
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1853
|
+
i.stem.replace(yt, function(h, u, l, c, f, p) {
|
|
1854
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1890
1855
|
});
|
|
1891
1856
|
var o = i.options[0];
|
|
1892
|
-
o === "w" ? t =
|
|
1857
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), _t(o)));
|
|
1893
1858
|
continue;
|
|
1894
1859
|
}
|
|
1895
|
-
if (
|
|
1896
|
-
t =
|
|
1860
|
+
if (un.test(i.stem)) {
|
|
1861
|
+
t = y(y({}, t), _t(i.stem));
|
|
1897
1862
|
continue;
|
|
1898
1863
|
}
|
|
1899
|
-
var a =
|
|
1900
|
-
a && (t =
|
|
1901
|
-
var s =
|
|
1902
|
-
s && (t =
|
|
1864
|
+
var a = ln(i.stem);
|
|
1865
|
+
a && (t = y(y({}, t), a));
|
|
1866
|
+
var s = Zr(i.stem);
|
|
1867
|
+
s && (t = y(y({}, t), s));
|
|
1903
1868
|
}
|
|
1904
1869
|
return t;
|
|
1905
1870
|
}
|
|
@@ -3318,23 +3283,23 @@ var me = {
|
|
|
3318
3283
|
"h"
|
|
3319
3284
|
]
|
|
3320
3285
|
};
|
|
3321
|
-
function
|
|
3322
|
-
for (var
|
|
3323
|
-
var i = e.charAt(
|
|
3286
|
+
function Qr(e, t) {
|
|
3287
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3288
|
+
var i = e.charAt(r);
|
|
3324
3289
|
if (i === "j") {
|
|
3325
|
-
for (var o = 0;
|
|
3326
|
-
o++,
|
|
3327
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3290
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3291
|
+
o++, r++;
|
|
3292
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Jr(t);
|
|
3328
3293
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3329
|
-
|
|
3294
|
+
n += h;
|
|
3330
3295
|
for (; a-- > 0; )
|
|
3331
|
-
|
|
3296
|
+
n = u + n;
|
|
3332
3297
|
} else
|
|
3333
|
-
i === "J" ?
|
|
3298
|
+
i === "J" ? n += "H" : n += i;
|
|
3334
3299
|
}
|
|
3335
|
-
return
|
|
3300
|
+
return n;
|
|
3336
3301
|
}
|
|
3337
|
-
function
|
|
3302
|
+
function Jr(e) {
|
|
3338
3303
|
var t = e.hourCycle;
|
|
3339
3304
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3340
3305
|
e.hourCycles && // @ts-ignore
|
|
@@ -3351,73 +3316,73 @@ function ti(e) {
|
|
|
3351
3316
|
default:
|
|
3352
3317
|
throw new Error("Invalid hourCycle");
|
|
3353
3318
|
}
|
|
3354
|
-
var
|
|
3355
|
-
|
|
3356
|
-
var i = me[
|
|
3319
|
+
var n = e.language, r;
|
|
3320
|
+
n !== "root" && (r = e.maximize().region);
|
|
3321
|
+
var i = me[r || ""] || me[n || ""] || me["".concat(n, "-001")] || me["001"];
|
|
3357
3322
|
return i[0];
|
|
3358
3323
|
}
|
|
3359
|
-
var
|
|
3360
|
-
function
|
|
3324
|
+
var Re, Yr = new RegExp("^".concat(an.source, "*")), Kr = new RegExp("".concat(an.source, "*$"));
|
|
3325
|
+
function g(e, t) {
|
|
3361
3326
|
return { start: e, end: t };
|
|
3362
3327
|
}
|
|
3363
|
-
var
|
|
3328
|
+
var ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), ti = !!String.fromCodePoint, ni = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, oi = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, ai = si ? Number.isSafeInteger : function(e) {
|
|
3364
3329
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3365
|
-
},
|
|
3330
|
+
}, Ze = !0;
|
|
3366
3331
|
try {
|
|
3367
|
-
var
|
|
3368
|
-
|
|
3332
|
+
var ui = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3333
|
+
Ze = ((Re = ui.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
|
|
3369
3334
|
} catch {
|
|
3370
|
-
|
|
3335
|
+
Ze = !1;
|
|
3371
3336
|
}
|
|
3372
|
-
var
|
|
3337
|
+
var xt = ei ? (
|
|
3373
3338
|
// Native
|
|
3374
|
-
function(t,
|
|
3375
|
-
return t.startsWith(
|
|
3339
|
+
function(t, n, r) {
|
|
3340
|
+
return t.startsWith(n, r);
|
|
3376
3341
|
}
|
|
3377
3342
|
) : (
|
|
3378
3343
|
// For IE11
|
|
3379
|
-
function(t,
|
|
3380
|
-
return t.slice(
|
|
3344
|
+
function(t, n, r) {
|
|
3345
|
+
return t.slice(r, r + n.length) === n;
|
|
3381
3346
|
}
|
|
3382
|
-
),
|
|
3347
|
+
), qe = ti ? String.fromCodePoint : (
|
|
3383
3348
|
// IE11
|
|
3384
3349
|
function() {
|
|
3385
|
-
for (var t = [],
|
|
3386
|
-
t[
|
|
3387
|
-
for (var
|
|
3350
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3351
|
+
t[n] = arguments[n];
|
|
3352
|
+
for (var r = "", i = t.length, o = 0, a; i > o; ) {
|
|
3388
3353
|
if (a = t[o++], a > 1114111)
|
|
3389
3354
|
throw RangeError(a + " is not a valid code point");
|
|
3390
|
-
|
|
3355
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3391
3356
|
}
|
|
3392
|
-
return
|
|
3357
|
+
return r;
|
|
3393
3358
|
}
|
|
3394
|
-
),
|
|
3359
|
+
), Et = (
|
|
3395
3360
|
// native
|
|
3396
|
-
|
|
3361
|
+
ni ? Object.fromEntries : (
|
|
3397
3362
|
// Ponyfill
|
|
3398
3363
|
function(t) {
|
|
3399
|
-
for (var
|
|
3400
|
-
var o = i[
|
|
3401
|
-
|
|
3364
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3365
|
+
var o = i[r], a = o[0], s = o[1];
|
|
3366
|
+
n[a] = s;
|
|
3402
3367
|
}
|
|
3403
|
-
return
|
|
3368
|
+
return n;
|
|
3404
3369
|
}
|
|
3405
3370
|
)
|
|
3406
|
-
),
|
|
3371
|
+
), fn = ri ? (
|
|
3407
3372
|
// Native
|
|
3408
|
-
function(t,
|
|
3409
|
-
return t.codePointAt(
|
|
3373
|
+
function(t, n) {
|
|
3374
|
+
return t.codePointAt(n);
|
|
3410
3375
|
}
|
|
3411
3376
|
) : (
|
|
3412
3377
|
// IE 11
|
|
3413
|
-
function(t,
|
|
3414
|
-
var
|
|
3415
|
-
if (!(
|
|
3416
|
-
var i = t.charCodeAt(
|
|
3417
|
-
return i < 55296 || i > 56319 ||
|
|
3378
|
+
function(t, n) {
|
|
3379
|
+
var r = t.length;
|
|
3380
|
+
if (!(n < 0 || n >= r)) {
|
|
3381
|
+
var i = t.charCodeAt(n), o;
|
|
3382
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3418
3383
|
}
|
|
3419
3384
|
}
|
|
3420
|
-
),
|
|
3385
|
+
), hi = ii ? (
|
|
3421
3386
|
// Native
|
|
3422
3387
|
function(t) {
|
|
3423
3388
|
return t.trimStart();
|
|
@@ -3425,9 +3390,9 @@ var wt = ii ? (
|
|
|
3425
3390
|
) : (
|
|
3426
3391
|
// Ponyfill
|
|
3427
3392
|
function(t) {
|
|
3428
|
-
return t.replace(
|
|
3393
|
+
return t.replace(Yr, "");
|
|
3429
3394
|
}
|
|
3430
|
-
),
|
|
3395
|
+
), li = oi ? (
|
|
3431
3396
|
// Native
|
|
3432
3397
|
function(t) {
|
|
3433
3398
|
return t.trimEnd();
|
|
@@ -3435,69 +3400,69 @@ var wt = ii ? (
|
|
|
3435
3400
|
) : (
|
|
3436
3401
|
// Ponyfill
|
|
3437
3402
|
function(t) {
|
|
3438
|
-
return t.replace(
|
|
3403
|
+
return t.replace(Kr, "");
|
|
3439
3404
|
}
|
|
3440
3405
|
);
|
|
3441
|
-
function
|
|
3406
|
+
function cn(e, t) {
|
|
3442
3407
|
return new RegExp(e, t);
|
|
3443
3408
|
}
|
|
3444
|
-
var
|
|
3445
|
-
if (
|
|
3446
|
-
var
|
|
3447
|
-
|
|
3448
|
-
var
|
|
3449
|
-
|
|
3450
|
-
var i =
|
|
3451
|
-
return (
|
|
3409
|
+
var Qe;
|
|
3410
|
+
if (Ze) {
|
|
3411
|
+
var St = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3412
|
+
Qe = function(t, n) {
|
|
3413
|
+
var r;
|
|
3414
|
+
St.lastIndex = n;
|
|
3415
|
+
var i = St.exec(t);
|
|
3416
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3452
3417
|
};
|
|
3453
3418
|
} else
|
|
3454
|
-
|
|
3455
|
-
for (var
|
|
3456
|
-
var i =
|
|
3457
|
-
if (i === void 0 ||
|
|
3419
|
+
Qe = function(t, n) {
|
|
3420
|
+
for (var r = []; ; ) {
|
|
3421
|
+
var i = fn(t, n);
|
|
3422
|
+
if (i === void 0 || dn(i) || pi(i))
|
|
3458
3423
|
break;
|
|
3459
|
-
|
|
3424
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3460
3425
|
}
|
|
3461
|
-
return
|
|
3426
|
+
return qe.apply(void 0, r);
|
|
3462
3427
|
};
|
|
3463
|
-
var
|
|
3428
|
+
var fi = (
|
|
3464
3429
|
/** @class */
|
|
3465
3430
|
function() {
|
|
3466
|
-
function e(t,
|
|
3467
|
-
|
|
3431
|
+
function e(t, n) {
|
|
3432
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3468
3433
|
}
|
|
3469
3434
|
return e.prototype.parse = function() {
|
|
3470
3435
|
if (this.offset() !== 0)
|
|
3471
3436
|
throw Error("parser can only be used once");
|
|
3472
3437
|
return this.parseMessage(0, "", !1);
|
|
3473
|
-
}, e.prototype.parseMessage = function(t,
|
|
3438
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3474
3439
|
for (var i = []; !this.isEOF(); ) {
|
|
3475
3440
|
var o = this.char();
|
|
3476
3441
|
if (o === 123) {
|
|
3477
|
-
var a = this.parseArgument(t,
|
|
3442
|
+
var a = this.parseArgument(t, r);
|
|
3478
3443
|
if (a.err)
|
|
3479
3444
|
return a;
|
|
3480
3445
|
i.push(a.val);
|
|
3481
3446
|
} else {
|
|
3482
3447
|
if (o === 125 && t > 0)
|
|
3483
3448
|
break;
|
|
3484
|
-
if (o === 35 && (
|
|
3449
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3485
3450
|
var s = this.clonePosition();
|
|
3486
3451
|
this.bump(), i.push({
|
|
3487
3452
|
type: v.pound,
|
|
3488
|
-
location:
|
|
3453
|
+
location: g(s, this.clonePosition())
|
|
3489
3454
|
});
|
|
3490
3455
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3491
|
-
if (
|
|
3456
|
+
if (r)
|
|
3492
3457
|
break;
|
|
3493
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3494
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3495
|
-
var a = this.parseTag(t,
|
|
3458
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3459
|
+
} else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
|
3460
|
+
var a = this.parseTag(t, n);
|
|
3496
3461
|
if (a.err)
|
|
3497
3462
|
return a;
|
|
3498
3463
|
i.push(a.val);
|
|
3499
3464
|
} else {
|
|
3500
|
-
var a = this.parseLiteral(t,
|
|
3465
|
+
var a = this.parseLiteral(t, n);
|
|
3501
3466
|
if (a.err)
|
|
3502
3467
|
return a;
|
|
3503
3468
|
i.push(a.val);
|
|
@@ -3505,8 +3470,8 @@ var mi = (
|
|
|
3505
3470
|
}
|
|
3506
3471
|
}
|
|
3507
3472
|
return { val: i, err: null };
|
|
3508
|
-
}, e.prototype.parseTag = function(t,
|
|
3509
|
-
var
|
|
3473
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3474
|
+
var r = this.clonePosition();
|
|
3510
3475
|
this.bump();
|
|
3511
3476
|
var i = this.parseTagName();
|
|
3512
3477
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3514,45 +3479,45 @@ var mi = (
|
|
|
3514
3479
|
val: {
|
|
3515
3480
|
type: v.literal,
|
|
3516
3481
|
value: "<".concat(i, "/>"),
|
|
3517
|
-
location:
|
|
3482
|
+
location: g(r, this.clonePosition())
|
|
3518
3483
|
},
|
|
3519
3484
|
err: null
|
|
3520
3485
|
};
|
|
3521
3486
|
if (this.bumpIf(">")) {
|
|
3522
|
-
var o = this.parseMessage(t + 1,
|
|
3487
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
3523
3488
|
if (o.err)
|
|
3524
3489
|
return o;
|
|
3525
3490
|
var a = o.val, s = this.clonePosition();
|
|
3526
3491
|
if (this.bumpIf("</")) {
|
|
3527
|
-
if (this.isEOF() || !
|
|
3528
|
-
return this.error(b.INVALID_TAG,
|
|
3492
|
+
if (this.isEOF() || !Je(this.char()))
|
|
3493
|
+
return this.error(b.INVALID_TAG, g(s, this.clonePosition()));
|
|
3529
3494
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3530
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3495
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3531
3496
|
val: {
|
|
3532
3497
|
type: v.tag,
|
|
3533
3498
|
value: i,
|
|
3534
3499
|
children: a,
|
|
3535
|
-
location:
|
|
3500
|
+
location: g(r, this.clonePosition())
|
|
3536
3501
|
},
|
|
3537
3502
|
err: null
|
|
3538
|
-
} : this.error(b.INVALID_TAG,
|
|
3503
|
+
} : this.error(b.INVALID_TAG, g(s, this.clonePosition())));
|
|
3539
3504
|
} else
|
|
3540
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3505
|
+
return this.error(b.UNCLOSED_TAG, g(r, this.clonePosition()));
|
|
3541
3506
|
} else
|
|
3542
|
-
return this.error(b.INVALID_TAG,
|
|
3507
|
+
return this.error(b.INVALID_TAG, g(r, this.clonePosition()));
|
|
3543
3508
|
}, e.prototype.parseTagName = function() {
|
|
3544
3509
|
var t = this.offset();
|
|
3545
|
-
for (this.bump(); !this.isEOF() &&
|
|
3510
|
+
for (this.bump(); !this.isEOF() && di(this.char()); )
|
|
3546
3511
|
this.bump();
|
|
3547
3512
|
return this.message.slice(t, this.offset());
|
|
3548
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3549
|
-
for (var
|
|
3550
|
-
var o = this.tryParseQuote(
|
|
3513
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3514
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3515
|
+
var o = this.tryParseQuote(n);
|
|
3551
3516
|
if (o) {
|
|
3552
3517
|
i += o;
|
|
3553
3518
|
continue;
|
|
3554
3519
|
}
|
|
3555
|
-
var a = this.tryParseUnquoted(t,
|
|
3520
|
+
var a = this.tryParseUnquoted(t, n);
|
|
3556
3521
|
if (a) {
|
|
3557
3522
|
i += a;
|
|
3558
3523
|
continue;
|
|
@@ -3564,14 +3529,14 @@ var mi = (
|
|
|
3564
3529
|
}
|
|
3565
3530
|
break;
|
|
3566
3531
|
}
|
|
3567
|
-
var h =
|
|
3532
|
+
var h = g(r, this.clonePosition());
|
|
3568
3533
|
return {
|
|
3569
3534
|
val: { type: v.literal, value: i, location: h },
|
|
3570
3535
|
err: null
|
|
3571
3536
|
};
|
|
3572
3537
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3573
3538
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3574
|
-
!
|
|
3539
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3575
3540
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3576
3541
|
if (this.isEOF() || this.char() !== 39)
|
|
3577
3542
|
return null;
|
|
@@ -3591,37 +3556,37 @@ var mi = (
|
|
|
3591
3556
|
return null;
|
|
3592
3557
|
}
|
|
3593
3558
|
this.bump();
|
|
3594
|
-
var
|
|
3559
|
+
var n = [this.char()];
|
|
3595
3560
|
for (this.bump(); !this.isEOF(); ) {
|
|
3596
|
-
var
|
|
3597
|
-
if (
|
|
3561
|
+
var r = this.char();
|
|
3562
|
+
if (r === 39)
|
|
3598
3563
|
if (this.peek() === 39)
|
|
3599
|
-
|
|
3564
|
+
n.push(39), this.bump();
|
|
3600
3565
|
else {
|
|
3601
3566
|
this.bump();
|
|
3602
3567
|
break;
|
|
3603
3568
|
}
|
|
3604
3569
|
else
|
|
3605
|
-
|
|
3570
|
+
n.push(r);
|
|
3606
3571
|
this.bump();
|
|
3607
3572
|
}
|
|
3608
|
-
return
|
|
3609
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3573
|
+
return qe.apply(void 0, n);
|
|
3574
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3610
3575
|
if (this.isEOF())
|
|
3611
3576
|
return null;
|
|
3612
|
-
var
|
|
3613
|
-
return
|
|
3614
|
-
}, e.prototype.parseArgument = function(t,
|
|
3615
|
-
var
|
|
3577
|
+
var r = this.char();
|
|
3578
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qe(r));
|
|
3579
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3580
|
+
var r = this.clonePosition();
|
|
3616
3581
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3617
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3582
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition()));
|
|
3618
3583
|
if (this.char() === 125)
|
|
3619
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3584
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(r, this.clonePosition()));
|
|
3620
3585
|
var i = this.parseIdentifierIfPossible().value;
|
|
3621
3586
|
if (!i)
|
|
3622
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3587
|
+
return this.error(b.MALFORMED_ARGUMENT, g(r, this.clonePosition()));
|
|
3623
3588
|
if (this.bumpSpace(), this.isEOF())
|
|
3624
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3589
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition()));
|
|
3625
3590
|
switch (this.char()) {
|
|
3626
3591
|
case 125:
|
|
3627
3592
|
return this.bump(), {
|
|
@@ -3629,25 +3594,25 @@ var mi = (
|
|
|
3629
3594
|
type: v.argument,
|
|
3630
3595
|
// value does not include the opening and closing braces.
|
|
3631
3596
|
value: i,
|
|
3632
|
-
location:
|
|
3597
|
+
location: g(r, this.clonePosition())
|
|
3633
3598
|
},
|
|
3634
3599
|
err: null
|
|
3635
3600
|
};
|
|
3636
3601
|
case 44:
|
|
3637
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3602
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3638
3603
|
default:
|
|
3639
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3604
|
+
return this.error(b.MALFORMED_ARGUMENT, g(r, this.clonePosition()));
|
|
3640
3605
|
}
|
|
3641
3606
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3642
|
-
var t = this.clonePosition(),
|
|
3607
|
+
var t = this.clonePosition(), n = this.offset(), r = Qe(this.message, n), i = n + r.length;
|
|
3643
3608
|
this.bumpTo(i);
|
|
3644
|
-
var o = this.clonePosition(), a =
|
|
3645
|
-
return { value:
|
|
3646
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3609
|
+
var o = this.clonePosition(), a = g(t, o);
|
|
3610
|
+
return { value: r, location: a };
|
|
3611
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3647
3612
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3648
3613
|
switch (s) {
|
|
3649
3614
|
case "":
|
|
3650
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3615
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(a, h));
|
|
3651
3616
|
case "number":
|
|
3652
3617
|
case "date":
|
|
3653
3618
|
case "time": {
|
|
@@ -3655,40 +3620,40 @@ var mi = (
|
|
|
3655
3620
|
var u = null;
|
|
3656
3621
|
if (this.bumpIf(",")) {
|
|
3657
3622
|
this.bumpSpace();
|
|
3658
|
-
var l = this.clonePosition(),
|
|
3659
|
-
if (
|
|
3660
|
-
return
|
|
3661
|
-
var
|
|
3662
|
-
if (
|
|
3663
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3664
|
-
var
|
|
3665
|
-
u = { style:
|
|
3623
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3624
|
+
if (c.err)
|
|
3625
|
+
return c;
|
|
3626
|
+
var f = li(c.val);
|
|
3627
|
+
if (f.length === 0)
|
|
3628
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3629
|
+
var p = g(l, this.clonePosition());
|
|
3630
|
+
u = { style: f, styleLocation: p };
|
|
3666
3631
|
}
|
|
3667
|
-
var
|
|
3668
|
-
if (
|
|
3669
|
-
return
|
|
3670
|
-
var m =
|
|
3671
|
-
if (u &&
|
|
3672
|
-
var
|
|
3632
|
+
var d = this.tryParseArgumentClose(i);
|
|
3633
|
+
if (d.err)
|
|
3634
|
+
return d;
|
|
3635
|
+
var m = g(i, this.clonePosition());
|
|
3636
|
+
if (u && xt(u?.style, "::", 0)) {
|
|
3637
|
+
var x = hi(u.style.slice(2));
|
|
3673
3638
|
if (s === "number") {
|
|
3674
|
-
var
|
|
3675
|
-
return
|
|
3676
|
-
val: { type: v.number, value:
|
|
3639
|
+
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3640
|
+
return c.err ? c : {
|
|
3641
|
+
val: { type: v.number, value: r, location: m, style: c.val },
|
|
3677
3642
|
err: null
|
|
3678
3643
|
};
|
|
3679
3644
|
} else {
|
|
3680
|
-
if (
|
|
3645
|
+
if (x.length === 0)
|
|
3681
3646
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3682
|
-
var T =
|
|
3683
|
-
this.locale && (T =
|
|
3684
|
-
var
|
|
3685
|
-
type:
|
|
3647
|
+
var T = x;
|
|
3648
|
+
this.locale && (T = Qr(x, this.locale));
|
|
3649
|
+
var f = {
|
|
3650
|
+
type: Q.dateTime,
|
|
3686
3651
|
pattern: T,
|
|
3687
3652
|
location: u.styleLocation,
|
|
3688
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3653
|
+
parsedOptions: this.shouldParseSkeletons ? kr(T) : {}
|
|
3689
3654
|
}, P = s === "date" ? v.date : v.time;
|
|
3690
3655
|
return {
|
|
3691
|
-
val: { type: P, value:
|
|
3656
|
+
val: { type: P, value: r, location: m, style: f },
|
|
3692
3657
|
err: null
|
|
3693
3658
|
};
|
|
3694
3659
|
}
|
|
@@ -3696,7 +3661,7 @@ var mi = (
|
|
|
3696
3661
|
return {
|
|
3697
3662
|
val: {
|
|
3698
3663
|
type: s === "number" ? v.number : s === "date" ? v.date : v.time,
|
|
3699
|
-
value:
|
|
3664
|
+
value: r,
|
|
3700
3665
|
location: m,
|
|
3701
3666
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3702
3667
|
},
|
|
@@ -3706,61 +3671,61 @@ var mi = (
|
|
|
3706
3671
|
case "plural":
|
|
3707
3672
|
case "selectordinal":
|
|
3708
3673
|
case "select": {
|
|
3709
|
-
var
|
|
3674
|
+
var E = this.clonePosition();
|
|
3710
3675
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3711
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3676
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(E, y({}, E)));
|
|
3712
3677
|
this.bumpSpace();
|
|
3713
3678
|
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3714
3679
|
if (s !== "select" && O.value === "offset") {
|
|
3715
3680
|
if (!this.bumpIf(":"))
|
|
3716
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3681
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3717
3682
|
this.bumpSpace();
|
|
3718
|
-
var
|
|
3719
|
-
if (
|
|
3720
|
-
return
|
|
3721
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w =
|
|
3683
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3684
|
+
if (c.err)
|
|
3685
|
+
return c;
|
|
3686
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = c.val;
|
|
3722
3687
|
}
|
|
3723
|
-
var $ = this.tryParsePluralOrSelectOptions(t, s,
|
|
3688
|
+
var $ = this.tryParsePluralOrSelectOptions(t, s, n, O);
|
|
3724
3689
|
if ($.err)
|
|
3725
3690
|
return $;
|
|
3726
|
-
var
|
|
3727
|
-
if (
|
|
3728
|
-
return
|
|
3729
|
-
var
|
|
3691
|
+
var d = this.tryParseArgumentClose(i);
|
|
3692
|
+
if (d.err)
|
|
3693
|
+
return d;
|
|
3694
|
+
var ce = g(i, this.clonePosition());
|
|
3730
3695
|
return s === "select" ? {
|
|
3731
3696
|
val: {
|
|
3732
3697
|
type: v.select,
|
|
3733
|
-
value:
|
|
3734
|
-
options:
|
|
3735
|
-
location:
|
|
3698
|
+
value: r,
|
|
3699
|
+
options: Et($.val),
|
|
3700
|
+
location: ce
|
|
3736
3701
|
},
|
|
3737
3702
|
err: null
|
|
3738
3703
|
} : {
|
|
3739
3704
|
val: {
|
|
3740
3705
|
type: v.plural,
|
|
3741
|
-
value:
|
|
3742
|
-
options:
|
|
3706
|
+
value: r,
|
|
3707
|
+
options: Et($.val),
|
|
3743
3708
|
offset: w,
|
|
3744
3709
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3745
|
-
location:
|
|
3710
|
+
location: ce
|
|
3746
3711
|
},
|
|
3747
3712
|
err: null
|
|
3748
3713
|
};
|
|
3749
3714
|
}
|
|
3750
3715
|
default:
|
|
3751
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3716
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(a, h));
|
|
3752
3717
|
}
|
|
3753
3718
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3754
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3719
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3755
3720
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3756
|
-
for (var t = 0,
|
|
3757
|
-
var
|
|
3758
|
-
switch (
|
|
3721
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3722
|
+
var r = this.char();
|
|
3723
|
+
switch (r) {
|
|
3759
3724
|
case 39: {
|
|
3760
3725
|
this.bump();
|
|
3761
3726
|
var i = this.clonePosition();
|
|
3762
3727
|
if (!this.bumpUntil("'"))
|
|
3763
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3728
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3764
3729
|
this.bump();
|
|
3765
3730
|
break;
|
|
3766
3731
|
}
|
|
@@ -3773,7 +3738,7 @@ var mi = (
|
|
|
3773
3738
|
t -= 1;
|
|
3774
3739
|
else
|
|
3775
3740
|
return {
|
|
3776
|
-
val: this.message.slice(
|
|
3741
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3777
3742
|
err: null
|
|
3778
3743
|
};
|
|
3779
3744
|
break;
|
|
@@ -3784,61 +3749,61 @@ var mi = (
|
|
|
3784
3749
|
}
|
|
3785
3750
|
}
|
|
3786
3751
|
return {
|
|
3787
|
-
val: this.message.slice(
|
|
3752
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3788
3753
|
err: null
|
|
3789
3754
|
};
|
|
3790
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3791
|
-
var
|
|
3755
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3756
|
+
var r = [];
|
|
3792
3757
|
try {
|
|
3793
|
-
|
|
3758
|
+
r = Xr(t);
|
|
3794
3759
|
} catch {
|
|
3795
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3760
|
+
return this.error(b.INVALID_NUMBER_SKELETON, n);
|
|
3796
3761
|
}
|
|
3797
3762
|
return {
|
|
3798
3763
|
val: {
|
|
3799
|
-
type:
|
|
3800
|
-
tokens:
|
|
3801
|
-
location:
|
|
3802
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3764
|
+
type: Q.number,
|
|
3765
|
+
tokens: r,
|
|
3766
|
+
location: n,
|
|
3767
|
+
parsedOptions: this.shouldParseSkeletons ? qr(r) : {}
|
|
3803
3768
|
},
|
|
3804
3769
|
err: null
|
|
3805
3770
|
};
|
|
3806
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3771
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3807
3772
|
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3808
3773
|
if (u.length === 0) {
|
|
3809
|
-
var
|
|
3810
|
-
if (
|
|
3811
|
-
var
|
|
3812
|
-
if (
|
|
3813
|
-
return
|
|
3814
|
-
l =
|
|
3774
|
+
var c = this.clonePosition();
|
|
3775
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3776
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3777
|
+
if (f.err)
|
|
3778
|
+
return f;
|
|
3779
|
+
l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3815
3780
|
} else
|
|
3816
3781
|
break;
|
|
3817
3782
|
}
|
|
3818
3783
|
if (h.has(u))
|
|
3819
|
-
return this.error(
|
|
3784
|
+
return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3820
3785
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3821
|
-
var
|
|
3786
|
+
var p = this.clonePosition();
|
|
3822
3787
|
if (!this.bumpIf("{"))
|
|
3823
|
-
return this.error(
|
|
3824
|
-
var
|
|
3825
|
-
if (
|
|
3826
|
-
return
|
|
3827
|
-
var m = this.tryParseArgumentClose(
|
|
3788
|
+
return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3789
|
+
var d = this.parseMessage(t + 1, n, r);
|
|
3790
|
+
if (d.err)
|
|
3791
|
+
return d;
|
|
3792
|
+
var m = this.tryParseArgumentClose(p);
|
|
3828
3793
|
if (m.err)
|
|
3829
3794
|
return m;
|
|
3830
3795
|
s.push([
|
|
3831
3796
|
u,
|
|
3832
3797
|
{
|
|
3833
|
-
value:
|
|
3834
|
-
location:
|
|
3798
|
+
value: d.val,
|
|
3799
|
+
location: g(p, this.clonePosition())
|
|
3835
3800
|
}
|
|
3836
3801
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3837
3802
|
}
|
|
3838
|
-
return s.length === 0 ? this.error(
|
|
3839
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3840
|
-
var
|
|
3841
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3803
|
+
return s.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3804
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3805
|
+
var r = 1, i = this.clonePosition();
|
|
3806
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3842
3807
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3843
3808
|
var s = this.char();
|
|
3844
3809
|
if (s >= 48 && s <= 57)
|
|
@@ -3846,8 +3811,8 @@ var mi = (
|
|
|
3846
3811
|
else
|
|
3847
3812
|
break;
|
|
3848
3813
|
}
|
|
3849
|
-
var h =
|
|
3850
|
-
return o ? (a *=
|
|
3814
|
+
var h = g(i, this.clonePosition());
|
|
3815
|
+
return o ? (a *= r, ai(a) ? { val: a, err: null } : this.error(n, h)) : this.error(t, h);
|
|
3851
3816
|
}, e.prototype.offset = function() {
|
|
3852
3817
|
return this.position.offset;
|
|
3853
3818
|
}, e.prototype.isEOF = function() {
|
|
@@ -3862,17 +3827,17 @@ var mi = (
|
|
|
3862
3827
|
var t = this.position.offset;
|
|
3863
3828
|
if (t >= this.message.length)
|
|
3864
3829
|
throw Error("out of bound");
|
|
3865
|
-
var
|
|
3866
|
-
if (
|
|
3830
|
+
var n = fn(this.message, t);
|
|
3831
|
+
if (n === void 0)
|
|
3867
3832
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3868
|
-
return
|
|
3869
|
-
}, e.prototype.error = function(t,
|
|
3833
|
+
return n;
|
|
3834
|
+
}, e.prototype.error = function(t, n) {
|
|
3870
3835
|
return {
|
|
3871
3836
|
val: null,
|
|
3872
3837
|
err: {
|
|
3873
3838
|
kind: t,
|
|
3874
3839
|
message: this.message,
|
|
3875
|
-
location:
|
|
3840
|
+
location: n
|
|
3876
3841
|
}
|
|
3877
3842
|
};
|
|
3878
3843
|
}, e.prototype.bump = function() {
|
|
@@ -3881,129 +3846,129 @@ var mi = (
|
|
|
3881
3846
|
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);
|
|
3882
3847
|
}
|
|
3883
3848
|
}, e.prototype.bumpIf = function(t) {
|
|
3884
|
-
if (
|
|
3885
|
-
for (var
|
|
3849
|
+
if (xt(this.message, t, this.offset())) {
|
|
3850
|
+
for (var n = 0; n < t.length; n++)
|
|
3886
3851
|
this.bump();
|
|
3887
3852
|
return !0;
|
|
3888
3853
|
}
|
|
3889
3854
|
return !1;
|
|
3890
3855
|
}, e.prototype.bumpUntil = function(t) {
|
|
3891
|
-
var
|
|
3892
|
-
return
|
|
3856
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3857
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3893
3858
|
}, e.prototype.bumpTo = function(t) {
|
|
3894
3859
|
if (this.offset() > t)
|
|
3895
3860
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3896
3861
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3897
|
-
var
|
|
3898
|
-
if (
|
|
3862
|
+
var n = this.offset();
|
|
3863
|
+
if (n === t)
|
|
3899
3864
|
break;
|
|
3900
|
-
if (
|
|
3865
|
+
if (n > t)
|
|
3901
3866
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3902
3867
|
if (this.bump(), this.isEOF())
|
|
3903
3868
|
break;
|
|
3904
3869
|
}
|
|
3905
3870
|
}, e.prototype.bumpSpace = function() {
|
|
3906
|
-
for (; !this.isEOF() &&
|
|
3871
|
+
for (; !this.isEOF() && dn(this.char()); )
|
|
3907
3872
|
this.bump();
|
|
3908
3873
|
}, e.prototype.peek = function() {
|
|
3909
3874
|
if (this.isEOF())
|
|
3910
3875
|
return null;
|
|
3911
|
-
var t = this.char(),
|
|
3912
|
-
return
|
|
3876
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3877
|
+
return r ?? null;
|
|
3913
3878
|
}, e;
|
|
3914
3879
|
}()
|
|
3915
3880
|
);
|
|
3916
|
-
function
|
|
3881
|
+
function Je(e) {
|
|
3917
3882
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3918
3883
|
}
|
|
3919
|
-
function
|
|
3920
|
-
return
|
|
3884
|
+
function ci(e) {
|
|
3885
|
+
return Je(e) || e === 47;
|
|
3921
3886
|
}
|
|
3922
|
-
function
|
|
3887
|
+
function di(e) {
|
|
3923
3888
|
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;
|
|
3924
3889
|
}
|
|
3925
|
-
function
|
|
3890
|
+
function dn(e) {
|
|
3926
3891
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3927
3892
|
}
|
|
3928
|
-
function
|
|
3893
|
+
function pi(e) {
|
|
3929
3894
|
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;
|
|
3930
3895
|
}
|
|
3931
|
-
function
|
|
3896
|
+
function Ye(e) {
|
|
3932
3897
|
e.forEach(function(t) {
|
|
3933
|
-
if (delete t.location,
|
|
3934
|
-
for (var
|
|
3935
|
-
delete t.options[
|
|
3898
|
+
if (delete t.location, nn(t) || rn(t))
|
|
3899
|
+
for (var n in t.options)
|
|
3900
|
+
delete t.options[n].location, Ye(t.options[n].value);
|
|
3936
3901
|
else
|
|
3937
|
-
|
|
3902
|
+
Kt(t) && sn(t.style) || (en(t) || tn(t)) && ze(t.style) ? delete t.style.location : on(t) && Ye(t.children);
|
|
3938
3903
|
});
|
|
3939
3904
|
}
|
|
3940
|
-
function
|
|
3941
|
-
t === void 0 && (t = {}), t =
|
|
3942
|
-
var
|
|
3943
|
-
if (
|
|
3944
|
-
var
|
|
3945
|
-
throw
|
|
3905
|
+
function mi(e, t) {
|
|
3906
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3907
|
+
var n = new fi(e, t).parse();
|
|
3908
|
+
if (n.err) {
|
|
3909
|
+
var r = SyntaxError(b[n.err.kind]);
|
|
3910
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3946
3911
|
}
|
|
3947
|
-
return t?.captureLocation ||
|
|
3912
|
+
return t?.captureLocation || Ye(n.val), n.val;
|
|
3948
3913
|
}
|
|
3949
|
-
var
|
|
3914
|
+
var J;
|
|
3950
3915
|
(function(e) {
|
|
3951
3916
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3952
|
-
})(
|
|
3953
|
-
var
|
|
3917
|
+
})(J || (J = {}));
|
|
3918
|
+
var Ae = (
|
|
3954
3919
|
/** @class */
|
|
3955
3920
|
function(e) {
|
|
3956
|
-
|
|
3957
|
-
function t(
|
|
3958
|
-
var o = e.call(this,
|
|
3959
|
-
return o.code =
|
|
3921
|
+
C(t, e);
|
|
3922
|
+
function t(n, r, i) {
|
|
3923
|
+
var o = e.call(this, n) || this;
|
|
3924
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3960
3925
|
}
|
|
3961
3926
|
return t.prototype.toString = function() {
|
|
3962
3927
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3963
3928
|
}, t;
|
|
3964
3929
|
}(Error)
|
|
3965
|
-
),
|
|
3930
|
+
), Tt = (
|
|
3966
3931
|
/** @class */
|
|
3967
3932
|
function(e) {
|
|
3968
|
-
|
|
3969
|
-
function t(
|
|
3970
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3933
|
+
C(t, e);
|
|
3934
|
+
function t(n, r, i, o) {
|
|
3935
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, o) || this;
|
|
3971
3936
|
}
|
|
3972
3937
|
return t;
|
|
3973
|
-
}(
|
|
3974
|
-
),
|
|
3938
|
+
}(Ae)
|
|
3939
|
+
), bi = (
|
|
3975
3940
|
/** @class */
|
|
3976
3941
|
function(e) {
|
|
3977
|
-
|
|
3978
|
-
function t(
|
|
3979
|
-
return e.call(this, 'Value for "'.concat(
|
|
3942
|
+
C(t, e);
|
|
3943
|
+
function t(n, r, i) {
|
|
3944
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), J.INVALID_VALUE, i) || this;
|
|
3980
3945
|
}
|
|
3981
3946
|
return t;
|
|
3982
|
-
}(
|
|
3983
|
-
),
|
|
3947
|
+
}(Ae)
|
|
3948
|
+
), gi = (
|
|
3984
3949
|
/** @class */
|
|
3985
3950
|
function(e) {
|
|
3986
|
-
|
|
3987
|
-
function t(
|
|
3988
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3951
|
+
C(t, e);
|
|
3952
|
+
function t(n, r) {
|
|
3953
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), J.MISSING_VALUE, r) || this;
|
|
3989
3954
|
}
|
|
3990
3955
|
return t;
|
|
3991
|
-
}(
|
|
3956
|
+
}(Ae)
|
|
3992
3957
|
), S;
|
|
3993
3958
|
(function(e) {
|
|
3994
3959
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3995
3960
|
})(S || (S = {}));
|
|
3996
|
-
function
|
|
3997
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3998
|
-
var
|
|
3999
|
-
return !
|
|
3961
|
+
function yi(e) {
|
|
3962
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3963
|
+
var r = t[t.length - 1];
|
|
3964
|
+
return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
|
|
4000
3965
|
}, []);
|
|
4001
3966
|
}
|
|
4002
|
-
function
|
|
3967
|
+
function _i(e) {
|
|
4003
3968
|
return typeof e == "function";
|
|
4004
3969
|
}
|
|
4005
|
-
function
|
|
4006
|
-
if (e.length === 1 &&
|
|
3970
|
+
function _e(e, t, n, r, i, o, a) {
|
|
3971
|
+
if (e.length === 1 && gt(e[0]))
|
|
4007
3972
|
return [
|
|
4008
3973
|
{
|
|
4009
3974
|
type: S.literal,
|
|
@@ -4012,60 +3977,60 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
4012
3977
|
];
|
|
4013
3978
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
4014
3979
|
var l = u[h];
|
|
4015
|
-
if (
|
|
3980
|
+
if (gt(l)) {
|
|
4016
3981
|
s.push({
|
|
4017
3982
|
type: S.literal,
|
|
4018
3983
|
value: l.value
|
|
4019
3984
|
});
|
|
4020
3985
|
continue;
|
|
4021
3986
|
}
|
|
4022
|
-
if (
|
|
3987
|
+
if (Fr(l)) {
|
|
4023
3988
|
typeof o == "number" && s.push({
|
|
4024
3989
|
type: S.literal,
|
|
4025
|
-
value:
|
|
3990
|
+
value: n.getNumberFormat(t).format(o)
|
|
4026
3991
|
});
|
|
4027
3992
|
continue;
|
|
4028
3993
|
}
|
|
4029
|
-
var
|
|
4030
|
-
if (!(i &&
|
|
4031
|
-
throw new
|
|
4032
|
-
var
|
|
4033
|
-
if (
|
|
4034
|
-
(!
|
|
4035
|
-
type: typeof
|
|
4036
|
-
value:
|
|
3994
|
+
var c = l.value;
|
|
3995
|
+
if (!(i && c in i))
|
|
3996
|
+
throw new gi(c, a);
|
|
3997
|
+
var f = i[c];
|
|
3998
|
+
if (Gr(l)) {
|
|
3999
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
4000
|
+
type: typeof f == "string" ? S.literal : S.object,
|
|
4001
|
+
value: f
|
|
4037
4002
|
});
|
|
4038
4003
|
continue;
|
|
4039
4004
|
}
|
|
4040
|
-
if (
|
|
4041
|
-
var
|
|
4005
|
+
if (en(l)) {
|
|
4006
|
+
var p = typeof l.style == "string" ? r.date[l.style] : ze(l.style) ? l.style.parsedOptions : void 0;
|
|
4042
4007
|
s.push({
|
|
4043
4008
|
type: S.literal,
|
|
4044
|
-
value:
|
|
4009
|
+
value: n.getDateTimeFormat(t, p).format(f)
|
|
4045
4010
|
});
|
|
4046
4011
|
continue;
|
|
4047
4012
|
}
|
|
4048
|
-
if (
|
|
4049
|
-
var
|
|
4013
|
+
if (tn(l)) {
|
|
4014
|
+
var p = typeof l.style == "string" ? r.time[l.style] : ze(l.style) ? l.style.parsedOptions : r.time.medium;
|
|
4050
4015
|
s.push({
|
|
4051
4016
|
type: S.literal,
|
|
4052
|
-
value:
|
|
4017
|
+
value: n.getDateTimeFormat(t, p).format(f)
|
|
4053
4018
|
});
|
|
4054
4019
|
continue;
|
|
4055
4020
|
}
|
|
4056
|
-
if (
|
|
4057
|
-
var
|
|
4058
|
-
|
|
4021
|
+
if (Kt(l)) {
|
|
4022
|
+
var p = typeof l.style == "string" ? r.number[l.style] : sn(l.style) ? l.style.parsedOptions : void 0;
|
|
4023
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
4059
4024
|
type: S.literal,
|
|
4060
|
-
value:
|
|
4025
|
+
value: n.getNumberFormat(t, p).format(f)
|
|
4061
4026
|
});
|
|
4062
4027
|
continue;
|
|
4063
4028
|
}
|
|
4064
|
-
if (
|
|
4065
|
-
var
|
|
4066
|
-
if (!
|
|
4067
|
-
throw new
|
|
4068
|
-
var T =
|
|
4029
|
+
if (on(l)) {
|
|
4030
|
+
var d = l.children, m = l.value, x = i[m];
|
|
4031
|
+
if (!_i(x))
|
|
4032
|
+
throw new bi(m, "function", a);
|
|
4033
|
+
var T = _e(d, t, n, r, i, o), P = x(T.map(function(w) {
|
|
4069
4034
|
return w.value;
|
|
4070
4035
|
}));
|
|
4071
4036
|
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(w) {
|
|
@@ -4075,92 +4040,92 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
4075
4040
|
};
|
|
4076
4041
|
}));
|
|
4077
4042
|
}
|
|
4078
|
-
if (
|
|
4079
|
-
var
|
|
4080
|
-
if (!
|
|
4081
|
-
throw new
|
|
4082
|
-
s.push.apply(s,
|
|
4043
|
+
if (nn(l)) {
|
|
4044
|
+
var E = l.options[f] || l.options.other;
|
|
4045
|
+
if (!E)
|
|
4046
|
+
throw new Tt(l.value, f, Object.keys(l.options), a);
|
|
4047
|
+
s.push.apply(s, _e(E.value, t, n, r, i));
|
|
4083
4048
|
continue;
|
|
4084
4049
|
}
|
|
4085
|
-
if (
|
|
4086
|
-
var
|
|
4087
|
-
if (!
|
|
4050
|
+
if (rn(l)) {
|
|
4051
|
+
var E = l.options["=".concat(f)];
|
|
4052
|
+
if (!E) {
|
|
4088
4053
|
if (!Intl.PluralRules)
|
|
4089
|
-
throw new
|
|
4054
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
4090
4055
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4091
|
-
`,
|
|
4092
|
-
var O =
|
|
4093
|
-
|
|
4056
|
+
`, J.MISSING_INTL_API, a);
|
|
4057
|
+
var O = n.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
4058
|
+
E = l.options[O] || l.options.other;
|
|
4094
4059
|
}
|
|
4095
|
-
if (!
|
|
4096
|
-
throw new
|
|
4097
|
-
s.push.apply(s,
|
|
4060
|
+
if (!E)
|
|
4061
|
+
throw new Tt(l.value, f, Object.keys(l.options), a);
|
|
4062
|
+
s.push.apply(s, _e(E.value, t, n, r, i, f - (l.offset || 0)));
|
|
4098
4063
|
continue;
|
|
4099
4064
|
}
|
|
4100
4065
|
}
|
|
4101
|
-
return
|
|
4066
|
+
return yi(s);
|
|
4102
4067
|
}
|
|
4103
|
-
function
|
|
4104
|
-
return t ?
|
|
4105
|
-
return r
|
|
4068
|
+
function vi(e, t) {
|
|
4069
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
4070
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
4106
4071
|
}, {})) : e;
|
|
4107
4072
|
}
|
|
4108
|
-
function
|
|
4109
|
-
return t ? Object.keys(e).reduce(function(
|
|
4110
|
-
return r
|
|
4111
|
-
},
|
|
4073
|
+
function xi(e, t) {
|
|
4074
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
4075
|
+
return n[r] = vi(e[r], t[r]), n;
|
|
4076
|
+
}, y({}, e)) : e;
|
|
4112
4077
|
}
|
|
4113
|
-
function
|
|
4078
|
+
function Ue(e) {
|
|
4114
4079
|
return {
|
|
4115
4080
|
create: function() {
|
|
4116
4081
|
return {
|
|
4117
4082
|
get: function(t) {
|
|
4118
4083
|
return e[t];
|
|
4119
4084
|
},
|
|
4120
|
-
set: function(t,
|
|
4121
|
-
e[t] =
|
|
4085
|
+
set: function(t, n) {
|
|
4086
|
+
e[t] = n;
|
|
4122
4087
|
}
|
|
4123
4088
|
};
|
|
4124
4089
|
}
|
|
4125
4090
|
};
|
|
4126
4091
|
}
|
|
4127
|
-
function
|
|
4092
|
+
function Ei(e) {
|
|
4128
4093
|
return e === void 0 && (e = {
|
|
4129
4094
|
number: {},
|
|
4130
4095
|
dateTime: {},
|
|
4131
4096
|
pluralRules: {}
|
|
4132
4097
|
}), {
|
|
4133
|
-
getNumberFormat:
|
|
4134
|
-
for (var t,
|
|
4135
|
-
r
|
|
4136
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4098
|
+
getNumberFormat: Ce(function() {
|
|
4099
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4100
|
+
n[r] = arguments[r];
|
|
4101
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], n, !1)))();
|
|
4137
4102
|
}, {
|
|
4138
|
-
cache:
|
|
4139
|
-
strategy:
|
|
4103
|
+
cache: Ue(e.number),
|
|
4104
|
+
strategy: $e.variadic
|
|
4140
4105
|
}),
|
|
4141
|
-
getDateTimeFormat:
|
|
4142
|
-
for (var t,
|
|
4143
|
-
r
|
|
4144
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4106
|
+
getDateTimeFormat: Ce(function() {
|
|
4107
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4108
|
+
n[r] = arguments[r];
|
|
4109
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], n, !1)))();
|
|
4145
4110
|
}, {
|
|
4146
|
-
cache:
|
|
4147
|
-
strategy:
|
|
4111
|
+
cache: Ue(e.dateTime),
|
|
4112
|
+
strategy: $e.variadic
|
|
4148
4113
|
}),
|
|
4149
|
-
getPluralRules:
|
|
4150
|
-
for (var t,
|
|
4151
|
-
r
|
|
4152
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4114
|
+
getPluralRules: Ce(function() {
|
|
4115
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4116
|
+
n[r] = arguments[r];
|
|
4117
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], n, !1)))();
|
|
4153
4118
|
}, {
|
|
4154
|
-
cache:
|
|
4155
|
-
strategy:
|
|
4119
|
+
cache: Ue(e.pluralRules),
|
|
4120
|
+
strategy: $e.variadic
|
|
4156
4121
|
})
|
|
4157
4122
|
};
|
|
4158
4123
|
}
|
|
4159
|
-
var
|
|
4124
|
+
var Si = (
|
|
4160
4125
|
/** @class */
|
|
4161
4126
|
function() {
|
|
4162
|
-
function e(t,
|
|
4163
|
-
|
|
4127
|
+
function e(t, n, r, i) {
|
|
4128
|
+
n === void 0 && (n = e.defaultLocale);
|
|
4164
4129
|
var o = this;
|
|
4165
4130
|
if (this.formatterCache = {
|
|
4166
4131
|
number: {},
|
|
@@ -4170,12 +4135,12 @@ var Bi = (
|
|
|
4170
4135
|
var u = o.formatToParts(h);
|
|
4171
4136
|
if (u.length === 1)
|
|
4172
4137
|
return u[0].value;
|
|
4173
|
-
var l = u.reduce(function(
|
|
4174
|
-
return !
|
|
4138
|
+
var l = u.reduce(function(c, f) {
|
|
4139
|
+
return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4175
4140
|
}, []);
|
|
4176
4141
|
return l.length <= 1 ? l[0] || "" : l;
|
|
4177
4142
|
}, this.formatToParts = function(h) {
|
|
4178
|
-
return
|
|
4143
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
4179
4144
|
}, this.resolvedOptions = function() {
|
|
4180
4145
|
var h;
|
|
4181
4146
|
return {
|
|
@@ -4183,18 +4148,18 @@ var Bi = (
|
|
|
4183
4148
|
};
|
|
4184
4149
|
}, this.getAst = function() {
|
|
4185
4150
|
return o.ast;
|
|
4186
|
-
}, this.locales =
|
|
4151
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
4187
4152
|
if (this.message = t, !e.__parse)
|
|
4188
4153
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4189
4154
|
var a = i || {};
|
|
4190
4155
|
a.formatters;
|
|
4191
|
-
var s =
|
|
4192
|
-
this.ast = e.__parse(t,
|
|
4156
|
+
var s = tr(a, ["formatters"]);
|
|
4157
|
+
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
4193
4158
|
} else
|
|
4194
4159
|
this.ast = t;
|
|
4195
4160
|
if (!Array.isArray(this.ast))
|
|
4196
4161
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4197
|
-
this.formats =
|
|
4162
|
+
this.formats = xi(e.formats, r), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
4198
4163
|
}
|
|
4199
4164
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4200
4165
|
get: function() {
|
|
@@ -4204,10 +4169,10 @@ var Bi = (
|
|
|
4204
4169
|
configurable: !0
|
|
4205
4170
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4206
4171
|
if (!(typeof Intl.Locale > "u")) {
|
|
4207
|
-
var
|
|
4208
|
-
return
|
|
4172
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4173
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4209
4174
|
}
|
|
4210
|
-
}, e.__parse =
|
|
4175
|
+
}, e.__parse = mi, e.formats = {
|
|
4211
4176
|
number: {
|
|
4212
4177
|
integer: {
|
|
4213
4178
|
maximumFractionDigits: 0
|
|
@@ -4268,113 +4233,113 @@ var Bi = (
|
|
|
4268
4233
|
}, e;
|
|
4269
4234
|
}()
|
|
4270
4235
|
);
|
|
4271
|
-
function
|
|
4236
|
+
function Ti(e, t) {
|
|
4272
4237
|
if (t == null)
|
|
4273
4238
|
return;
|
|
4274
4239
|
if (t in e)
|
|
4275
4240
|
return e[t];
|
|
4276
|
-
const
|
|
4277
|
-
let
|
|
4278
|
-
for (let i = 0; i <
|
|
4279
|
-
if (typeof
|
|
4241
|
+
const n = t.split(".");
|
|
4242
|
+
let r = e;
|
|
4243
|
+
for (let i = 0; i < n.length; i++)
|
|
4244
|
+
if (typeof r == "object") {
|
|
4280
4245
|
if (i > 0) {
|
|
4281
|
-
const o =
|
|
4282
|
-
if (o in
|
|
4283
|
-
|
|
4246
|
+
const o = n.slice(i, n.length).join(".");
|
|
4247
|
+
if (o in r) {
|
|
4248
|
+
r = r[o];
|
|
4284
4249
|
break;
|
|
4285
4250
|
}
|
|
4286
4251
|
}
|
|
4287
|
-
|
|
4252
|
+
r = r[n[i]];
|
|
4288
4253
|
} else
|
|
4289
|
-
|
|
4290
|
-
return
|
|
4254
|
+
r = void 0;
|
|
4255
|
+
return r;
|
|
4291
4256
|
}
|
|
4292
|
-
const U = {},
|
|
4257
|
+
const U = {}, wi = (e, t, n) => n && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = n), n), pn = (e, t) => {
|
|
4293
4258
|
if (t == null)
|
|
4294
4259
|
return;
|
|
4295
4260
|
if (t in U && e in U[t])
|
|
4296
4261
|
return U[t][e];
|
|
4297
|
-
const
|
|
4298
|
-
for (let
|
|
4299
|
-
const i = r
|
|
4262
|
+
const n = Pe(t);
|
|
4263
|
+
for (let r = 0; r < n.length; r++) {
|
|
4264
|
+
const i = n[r], o = Bi(i, e);
|
|
4300
4265
|
if (o)
|
|
4301
|
-
return
|
|
4266
|
+
return wi(e, t, o);
|
|
4302
4267
|
}
|
|
4303
4268
|
};
|
|
4304
|
-
let
|
|
4305
|
-
const
|
|
4306
|
-
function
|
|
4307
|
-
return
|
|
4269
|
+
let it;
|
|
4270
|
+
const fe = Be({});
|
|
4271
|
+
function Hi(e) {
|
|
4272
|
+
return it[e] || null;
|
|
4308
4273
|
}
|
|
4309
|
-
function
|
|
4310
|
-
return e in
|
|
4274
|
+
function mn(e) {
|
|
4275
|
+
return e in it;
|
|
4311
4276
|
}
|
|
4312
|
-
function
|
|
4313
|
-
if (!
|
|
4277
|
+
function Bi(e, t) {
|
|
4278
|
+
if (!mn(e))
|
|
4314
4279
|
return null;
|
|
4315
|
-
const
|
|
4316
|
-
return
|
|
4280
|
+
const n = Hi(e);
|
|
4281
|
+
return Ti(n, t);
|
|
4317
4282
|
}
|
|
4318
|
-
function
|
|
4283
|
+
function Ai(e) {
|
|
4319
4284
|
if (e == null)
|
|
4320
4285
|
return;
|
|
4321
|
-
const t =
|
|
4322
|
-
for (let
|
|
4323
|
-
const
|
|
4324
|
-
if (
|
|
4325
|
-
return
|
|
4286
|
+
const t = Pe(e);
|
|
4287
|
+
for (let n = 0; n < t.length; n++) {
|
|
4288
|
+
const r = t[n];
|
|
4289
|
+
if (mn(r))
|
|
4290
|
+
return r;
|
|
4326
4291
|
}
|
|
4327
4292
|
}
|
|
4328
|
-
function
|
|
4329
|
-
delete U[e],
|
|
4293
|
+
function bn(e, ...t) {
|
|
4294
|
+
delete U[e], fe.update((n) => (n[e] = Lr.all([n[e] || {}, ...t]), n));
|
|
4330
4295
|
}
|
|
4331
|
-
|
|
4332
|
-
[
|
|
4296
|
+
ee(
|
|
4297
|
+
[fe],
|
|
4333
4298
|
([e]) => Object.keys(e)
|
|
4334
4299
|
);
|
|
4335
|
-
|
|
4336
|
-
const
|
|
4337
|
-
function
|
|
4338
|
-
|
|
4300
|
+
fe.subscribe((e) => it = e);
|
|
4301
|
+
const ve = {};
|
|
4302
|
+
function Pi(e, t) {
|
|
4303
|
+
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
4339
4304
|
}
|
|
4340
|
-
function
|
|
4341
|
-
return
|
|
4305
|
+
function gn(e) {
|
|
4306
|
+
return ve[e];
|
|
4342
4307
|
}
|
|
4343
|
-
function
|
|
4344
|
-
return
|
|
4345
|
-
const
|
|
4346
|
-
return [t,
|
|
4308
|
+
function Oi(e) {
|
|
4309
|
+
return Pe(e).map((t) => {
|
|
4310
|
+
const n = gn(t);
|
|
4311
|
+
return [t, n ? [...n] : []];
|
|
4347
4312
|
}).filter(([, t]) => t.length > 0);
|
|
4348
4313
|
}
|
|
4349
|
-
function
|
|
4350
|
-
return e == null ? !1 :
|
|
4314
|
+
function Ke(e) {
|
|
4315
|
+
return e == null ? !1 : Pe(e).some(
|
|
4351
4316
|
(t) => {
|
|
4352
|
-
var
|
|
4353
|
-
return (
|
|
4317
|
+
var n;
|
|
4318
|
+
return (n = gn(t)) == null ? void 0 : n.size;
|
|
4354
4319
|
}
|
|
4355
4320
|
);
|
|
4356
4321
|
}
|
|
4357
|
-
function
|
|
4322
|
+
function Ii(e, t) {
|
|
4358
4323
|
return Promise.all(
|
|
4359
|
-
t.map((
|
|
4360
|
-
).then((
|
|
4361
|
-
}
|
|
4362
|
-
const
|
|
4363
|
-
function
|
|
4364
|
-
if (!
|
|
4365
|
-
return e in
|
|
4366
|
-
const t =
|
|
4367
|
-
return
|
|
4324
|
+
t.map((r) => (Pi(e, r), r().then((i) => i.default || i)))
|
|
4325
|
+
).then((r) => bn(e, ...r));
|
|
4326
|
+
}
|
|
4327
|
+
const ie = {};
|
|
4328
|
+
function yn(e) {
|
|
4329
|
+
if (!Ke(e))
|
|
4330
|
+
return e in ie ? ie[e] : Promise.resolve();
|
|
4331
|
+
const t = Oi(e);
|
|
4332
|
+
return ie[e] = Promise.all(
|
|
4368
4333
|
t.map(
|
|
4369
|
-
([
|
|
4334
|
+
([n, r]) => Ii(n, r)
|
|
4370
4335
|
)
|
|
4371
4336
|
).then(() => {
|
|
4372
|
-
if (
|
|
4373
|
-
return
|
|
4374
|
-
delete
|
|
4375
|
-
}),
|
|
4337
|
+
if (Ke(e))
|
|
4338
|
+
return yn(e);
|
|
4339
|
+
delete ie[e];
|
|
4340
|
+
}), ie[e];
|
|
4376
4341
|
}
|
|
4377
|
-
const
|
|
4342
|
+
const Li = {
|
|
4378
4343
|
number: {
|
|
4379
4344
|
scientific: { notation: "scientific" },
|
|
4380
4345
|
engineering: { notation: "engineering" },
|
|
@@ -4403,136 +4368,136 @@ const $i = {
|
|
|
4403
4368
|
timeZoneName: "short"
|
|
4404
4369
|
}
|
|
4405
4370
|
}
|
|
4406
|
-
},
|
|
4371
|
+
}, Ni = {
|
|
4407
4372
|
fallbackLocale: null,
|
|
4408
4373
|
loadingDelay: 200,
|
|
4409
|
-
formats:
|
|
4374
|
+
formats: Li,
|
|
4410
4375
|
warnOnMissingMessages: !0,
|
|
4411
4376
|
handleMissingMessage: void 0,
|
|
4412
4377
|
ignoreTag: !0
|
|
4413
|
-
},
|
|
4414
|
-
function
|
|
4415
|
-
return
|
|
4416
|
-
}
|
|
4417
|
-
const
|
|
4418
|
-
var
|
|
4419
|
-
for (var
|
|
4420
|
-
|
|
4421
|
-
if (
|
|
4422
|
-
for (var
|
|
4423
|
-
|
|
4378
|
+
}, Mi = Ni;
|
|
4379
|
+
function Y() {
|
|
4380
|
+
return Mi;
|
|
4381
|
+
}
|
|
4382
|
+
const De = Be(!1);
|
|
4383
|
+
var Ci = Object.defineProperty, $i = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, Ht = (e, t, n) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gi = (e, t) => {
|
|
4384
|
+
for (var n in t)
|
|
4385
|
+
Ui.call(t, n) && Ht(e, n, t[n]);
|
|
4386
|
+
if (wt)
|
|
4387
|
+
for (var n of wt(t))
|
|
4388
|
+
Di.call(t, n) && Ht(e, n, t[n]);
|
|
4424
4389
|
return e;
|
|
4425
|
-
},
|
|
4426
|
-
let
|
|
4427
|
-
const
|
|
4428
|
-
function
|
|
4429
|
-
return e.split("-").map((t,
|
|
4390
|
+
}, Fi = (e, t) => $i(e, Ri(t));
|
|
4391
|
+
let et;
|
|
4392
|
+
const Te = Be(null);
|
|
4393
|
+
function Bt(e) {
|
|
4394
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4430
4395
|
}
|
|
4431
|
-
function
|
|
4432
|
-
const
|
|
4433
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4396
|
+
function Pe(e, t = Y().fallbackLocale) {
|
|
4397
|
+
const n = Bt(e);
|
|
4398
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Bt(t)])] : n;
|
|
4434
4399
|
}
|
|
4435
4400
|
function F() {
|
|
4436
|
-
return
|
|
4401
|
+
return et ?? void 0;
|
|
4437
4402
|
}
|
|
4438
|
-
|
|
4439
|
-
|
|
4403
|
+
Te.subscribe((e) => {
|
|
4404
|
+
et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4440
4405
|
});
|
|
4441
|
-
const
|
|
4442
|
-
if (e &&
|
|
4443
|
-
const { loadingDelay: t } =
|
|
4444
|
-
let
|
|
4445
|
-
return typeof window < "u" && F() != null && t ?
|
|
4446
|
-
() =>
|
|
4406
|
+
const ji = (e) => {
|
|
4407
|
+
if (e && Ai(e) && Ke(e)) {
|
|
4408
|
+
const { loadingDelay: t } = Y();
|
|
4409
|
+
let n;
|
|
4410
|
+
return typeof window < "u" && F() != null && t ? n = window.setTimeout(
|
|
4411
|
+
() => De.set(!0),
|
|
4447
4412
|
t
|
|
4448
|
-
) :
|
|
4449
|
-
|
|
4413
|
+
) : De.set(!0), yn(e).then(() => {
|
|
4414
|
+
Te.set(e);
|
|
4450
4415
|
}).finally(() => {
|
|
4451
|
-
clearTimeout(
|
|
4416
|
+
clearTimeout(n), De.set(!1);
|
|
4452
4417
|
});
|
|
4453
4418
|
}
|
|
4454
|
-
return
|
|
4455
|
-
},
|
|
4456
|
-
set:
|
|
4457
|
-
}),
|
|
4419
|
+
return Te.set(e);
|
|
4420
|
+
}, te = Fi(Gi({}, Te), {
|
|
4421
|
+
set: ji
|
|
4422
|
+
}), Oe = (e) => {
|
|
4458
4423
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4459
|
-
return (
|
|
4460
|
-
const i = JSON.stringify(
|
|
4461
|
-
return i in t ? t[i] : t[i] = e(
|
|
4424
|
+
return (r) => {
|
|
4425
|
+
const i = JSON.stringify(r);
|
|
4426
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4462
4427
|
};
|
|
4463
4428
|
};
|
|
4464
|
-
var
|
|
4465
|
-
for (var
|
|
4466
|
-
|
|
4467
|
-
if (
|
|
4468
|
-
for (var
|
|
4469
|
-
|
|
4429
|
+
var ki = Object.defineProperty, we = Object.getOwnPropertySymbols, _n = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, At = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ot = (e, t) => {
|
|
4430
|
+
for (var n in t || (t = {}))
|
|
4431
|
+
_n.call(t, n) && At(e, n, t[n]);
|
|
4432
|
+
if (we)
|
|
4433
|
+
for (var n of we(t))
|
|
4434
|
+
vn.call(t, n) && At(e, n, t[n]);
|
|
4470
4435
|
return e;
|
|
4471
|
-
},
|
|
4472
|
-
var
|
|
4473
|
-
for (var
|
|
4474
|
-
|
|
4475
|
-
if (e != null &&
|
|
4476
|
-
for (var
|
|
4477
|
-
t.indexOf(
|
|
4478
|
-
return
|
|
4436
|
+
}, ne = (e, t) => {
|
|
4437
|
+
var n = {};
|
|
4438
|
+
for (var r in e)
|
|
4439
|
+
_n.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4440
|
+
if (e != null && we)
|
|
4441
|
+
for (var r of we(e))
|
|
4442
|
+
t.indexOf(r) < 0 && vn.call(e, r) && (n[r] = e[r]);
|
|
4443
|
+
return n;
|
|
4479
4444
|
};
|
|
4480
|
-
const
|
|
4481
|
-
const { formats:
|
|
4482
|
-
if (e in
|
|
4483
|
-
return
|
|
4445
|
+
const ue = (e, t) => {
|
|
4446
|
+
const { formats: n } = Y();
|
|
4447
|
+
if (e in n && t in n[e])
|
|
4448
|
+
return n[e][t];
|
|
4484
4449
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4485
|
-
},
|
|
4450
|
+
}, Vi = Oe(
|
|
4486
4451
|
(e) => {
|
|
4487
|
-
var t = e, { locale:
|
|
4488
|
-
if (
|
|
4452
|
+
var t = e, { locale: n, format: r } = t, i = ne(t, ["locale", "format"]);
|
|
4453
|
+
if (n == null)
|
|
4489
4454
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4490
|
-
return
|
|
4455
|
+
return r && (i = ue("number", r)), new Intl.NumberFormat(n, i);
|
|
4491
4456
|
}
|
|
4492
|
-
),
|
|
4457
|
+
), Xi = Oe(
|
|
4493
4458
|
(e) => {
|
|
4494
|
-
var t = e, { locale:
|
|
4495
|
-
if (
|
|
4459
|
+
var t = e, { locale: n, format: r } = t, i = ne(t, ["locale", "format"]);
|
|
4460
|
+
if (n == null)
|
|
4496
4461
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4497
|
-
return
|
|
4462
|
+
return r ? i = ue("date", r) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4498
4463
|
}
|
|
4499
|
-
),
|
|
4464
|
+
), Wi = Oe(
|
|
4500
4465
|
(e) => {
|
|
4501
|
-
var t = e, { locale:
|
|
4502
|
-
if (
|
|
4466
|
+
var t = e, { locale: n, format: r } = t, i = ne(t, ["locale", "format"]);
|
|
4467
|
+
if (n == null)
|
|
4503
4468
|
throw new Error(
|
|
4504
4469
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4505
4470
|
);
|
|
4506
|
-
return
|
|
4471
|
+
return r ? i = ue("time", r) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4507
4472
|
}
|
|
4508
|
-
),
|
|
4473
|
+
), zi = (e = {}) => {
|
|
4509
4474
|
var t = e, {
|
|
4510
|
-
locale:
|
|
4511
|
-
} = t,
|
|
4475
|
+
locale: n = F()
|
|
4476
|
+
} = t, r = ne(t, [
|
|
4512
4477
|
"locale"
|
|
4513
4478
|
]);
|
|
4514
|
-
return
|
|
4515
|
-
},
|
|
4479
|
+
return Vi(ot({ locale: n }, r));
|
|
4480
|
+
}, Zi = (e = {}) => {
|
|
4516
4481
|
var t = e, {
|
|
4517
|
-
locale:
|
|
4518
|
-
} = t,
|
|
4482
|
+
locale: n = F()
|
|
4483
|
+
} = t, r = ne(t, [
|
|
4519
4484
|
"locale"
|
|
4520
4485
|
]);
|
|
4521
|
-
return
|
|
4522
|
-
},
|
|
4486
|
+
return Xi(ot({ locale: n }, r));
|
|
4487
|
+
}, qi = (e = {}) => {
|
|
4523
4488
|
var t = e, {
|
|
4524
|
-
locale:
|
|
4525
|
-
} = t,
|
|
4489
|
+
locale: n = F()
|
|
4490
|
+
} = t, r = ne(t, [
|
|
4526
4491
|
"locale"
|
|
4527
4492
|
]);
|
|
4528
|
-
return
|
|
4529
|
-
},
|
|
4493
|
+
return Wi(ot({ locale: n }, r));
|
|
4494
|
+
}, Qi = Oe(
|
|
4530
4495
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4531
|
-
(e, t = F()) => new
|
|
4532
|
-
ignoreTag:
|
|
4496
|
+
(e, t = F()) => new Si(e, t, Y().formats, {
|
|
4497
|
+
ignoreTag: Y().ignoreTag
|
|
4533
4498
|
})
|
|
4534
|
-
),
|
|
4535
|
-
var
|
|
4499
|
+
), Ji = (e, t = {}) => {
|
|
4500
|
+
var n, r, i, o;
|
|
4536
4501
|
let a = t;
|
|
4537
4502
|
typeof e == "object" && (a = e, e = a.id);
|
|
4538
4503
|
const {
|
|
@@ -4544,70 +4509,70 @@ const ae = (e, t) => {
|
|
|
4544
4509
|
throw new Error(
|
|
4545
4510
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4546
4511
|
);
|
|
4547
|
-
let l =
|
|
4512
|
+
let l = pn(e, h);
|
|
4548
4513
|
if (!l)
|
|
4549
|
-
l = (o = (i = (
|
|
4514
|
+
l = (o = (i = (r = (n = Y()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4550
4515
|
else if (typeof l != "string")
|
|
4551
4516
|
return console.warn(
|
|
4552
4517
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4553
4518
|
), l;
|
|
4554
4519
|
if (!s)
|
|
4555
4520
|
return l;
|
|
4556
|
-
let
|
|
4521
|
+
let c = l;
|
|
4557
4522
|
try {
|
|
4558
|
-
|
|
4559
|
-
} catch (
|
|
4560
|
-
|
|
4523
|
+
c = Qi(l, h).format(s);
|
|
4524
|
+
} catch (f) {
|
|
4525
|
+
f instanceof Error && console.warn(
|
|
4561
4526
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4562
|
-
|
|
4527
|
+
f.message
|
|
4563
4528
|
);
|
|
4564
4529
|
}
|
|
4565
|
-
return
|
|
4566
|
-
},
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
window.emWidgets = { topic:
|
|
4572
|
-
const
|
|
4573
|
-
function
|
|
4574
|
-
const
|
|
4530
|
+
return c;
|
|
4531
|
+
}, Yi = (e, t) => qi(t).format(e), Ki = (e, t) => Zi(t).format(e), eo = (e, t) => zi(t).format(e), to = (e, t = F()) => pn(e, t), no = ee([te, fe], () => Ji);
|
|
4532
|
+
ee([te], () => Yi);
|
|
4533
|
+
ee([te], () => Ki);
|
|
4534
|
+
ee([te], () => eo);
|
|
4535
|
+
ee([te, fe], () => to);
|
|
4536
|
+
window.emWidgets = { topic: mr };
|
|
4537
|
+
const Do = (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)), xn = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Go = (e) => e.match(/CustomNative/i) ? "NativeApp" : xn(e) === "PC" ? "Desktop" : "Mobile";
|
|
4538
|
+
function Fo(e, t) {
|
|
4539
|
+
const n = () => !0;
|
|
4575
4540
|
switch (typeof e) {
|
|
4576
4541
|
case "string": {
|
|
4577
|
-
const
|
|
4578
|
-
return
|
|
4542
|
+
const r = e.trim();
|
|
4543
|
+
return r && isFinite(Number(r)) && n();
|
|
4579
4544
|
}
|
|
4580
4545
|
case "number":
|
|
4581
|
-
return isFinite(e) &&
|
|
4546
|
+
return isFinite(e) && n();
|
|
4582
4547
|
default:
|
|
4583
4548
|
return !1;
|
|
4584
4549
|
}
|
|
4585
4550
|
}
|
|
4586
|
-
function
|
|
4551
|
+
function Pt(e, t) {
|
|
4587
4552
|
if (e) {
|
|
4588
|
-
const
|
|
4589
|
-
|
|
4553
|
+
const n = document.createElement("style");
|
|
4554
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4590
4555
|
}
|
|
4591
4556
|
}
|
|
4592
|
-
function
|
|
4593
|
-
const
|
|
4594
|
-
fetch(
|
|
4557
|
+
function ro(e, t) {
|
|
4558
|
+
const n = new URL(t);
|
|
4559
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4595
4560
|
const i = document.createElement("style");
|
|
4596
|
-
i.innerHTML =
|
|
4597
|
-
}).catch((
|
|
4598
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4561
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
4562
|
+
}).catch((r) => {
|
|
4563
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4599
4564
|
});
|
|
4600
4565
|
}
|
|
4601
|
-
function
|
|
4566
|
+
function io(e, t, n) {
|
|
4602
4567
|
if (window.emMessageBus) {
|
|
4603
|
-
const
|
|
4568
|
+
const r = document.createElement("style");
|
|
4604
4569
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4605
|
-
|
|
4570
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
4606
4571
|
});
|
|
4607
4572
|
}
|
|
4608
4573
|
}
|
|
4609
|
-
const
|
|
4610
|
-
const
|
|
4574
|
+
const oo = (e, t = {}) => {
|
|
4575
|
+
const n = new CustomEvent("track-custom-event", {
|
|
4611
4576
|
detail: {
|
|
4612
4577
|
type: e,
|
|
4613
4578
|
data: t
|
|
@@ -4615,15 +4580,15 @@ const ho = (e, t = {}) => {
|
|
|
4615
4580
|
bubbles: !0,
|
|
4616
4581
|
composed: !0
|
|
4617
4582
|
});
|
|
4618
|
-
document.dispatchEvent(
|
|
4583
|
+
document.dispatchEvent(n);
|
|
4619
4584
|
};
|
|
4620
|
-
function
|
|
4621
|
-
|
|
4585
|
+
function Ot(e, t) {
|
|
4586
|
+
bn(e, t);
|
|
4622
4587
|
}
|
|
4623
|
-
function
|
|
4624
|
-
|
|
4588
|
+
function so(e) {
|
|
4589
|
+
te.set(e);
|
|
4625
4590
|
}
|
|
4626
|
-
const
|
|
4591
|
+
const It = {
|
|
4627
4592
|
en: {
|
|
4628
4593
|
logoutButton: "Logout"
|
|
4629
4594
|
},
|
|
@@ -4658,21 +4623,21 @@ const Ct = {
|
|
|
4658
4623
|
logoutButton: "Logout"
|
|
4659
4624
|
}
|
|
4660
4625
|
};
|
|
4661
|
-
function
|
|
4662
|
-
|
|
4626
|
+
function ao(e) {
|
|
4627
|
+
On(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))}");
|
|
4663
4628
|
}
|
|
4664
|
-
function
|
|
4665
|
-
let t,
|
|
4629
|
+
function uo(e) {
|
|
4630
|
+
let t, n, r, i = (
|
|
4666
4631
|
/*$_*/
|
|
4667
4632
|
e[2]("logoutButton") + ""
|
|
4668
4633
|
), o, a, s;
|
|
4669
4634
|
return {
|
|
4670
4635
|
c() {
|
|
4671
|
-
t = I("div"),
|
|
4636
|
+
t = I("div"), n = I("button"), r = I("span"), o = le(i), B(t, "class", "GeneralLogout");
|
|
4672
4637
|
},
|
|
4673
4638
|
m(h, u) {
|
|
4674
|
-
|
|
4675
|
-
|
|
4639
|
+
K(h, t, u), A(t, n), A(n, r), A(r, o), a || (s = Dt(
|
|
4640
|
+
n,
|
|
4676
4641
|
"click",
|
|
4677
4642
|
/*click_handler_1*/
|
|
4678
4643
|
e[14]
|
|
@@ -4681,19 +4646,19 @@ function fo(e) {
|
|
|
4681
4646
|
p(h, u) {
|
|
4682
4647
|
u & /*$_*/
|
|
4683
4648
|
4 && i !== (i = /*$_*/
|
|
4684
|
-
h[2]("logoutButton") + "") &&
|
|
4649
|
+
h[2]("logoutButton") + "") && Gt(o, i);
|
|
4685
4650
|
},
|
|
4686
4651
|
d(h) {
|
|
4687
4652
|
h && D(t), a = !1, s();
|
|
4688
4653
|
}
|
|
4689
4654
|
};
|
|
4690
4655
|
}
|
|
4691
|
-
function
|
|
4692
|
-
let t,
|
|
4693
|
-
e[3] &&
|
|
4656
|
+
function ho(e) {
|
|
4657
|
+
let t, n, r, i, o, a, s, h, u, l, c, f = !/*isMobile*/
|
|
4658
|
+
e[3] && lo(e);
|
|
4694
4659
|
return {
|
|
4695
4660
|
c() {
|
|
4696
|
-
t = I("p"),
|
|
4661
|
+
t = I("p"), n = I("span"), r = V("svg"), i = V("defs"), o = V("style"), a = le(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), s = V("path"), h = V("path"), u = Ln(), f && f.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(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(h, "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(r, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), B(r, "data-name", "Layer 1"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "viewBox", "0 0 150 150"), Mn(n, "width", /*isMobile*/
|
|
4697
4662
|
e[3] ? (
|
|
4698
4663
|
/*mediaQuery*/
|
|
4699
4664
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4702,63 +4667,63 @@ function po(e) {
|
|
|
4702
4667
|
(e[4].matches && /*isMobile*/
|
|
4703
4668
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4704
4669
|
},
|
|
4705
|
-
m(
|
|
4706
|
-
|
|
4670
|
+
m(p, d) {
|
|
4671
|
+
K(p, t, d), A(t, n), A(n, r), A(r, i), A(i, o), A(o, a), A(r, s), A(r, h), A(t, u), f && f.m(t, null), l || (c = Dt(
|
|
4707
4672
|
t,
|
|
4708
4673
|
"click",
|
|
4709
4674
|
/*click_handler*/
|
|
4710
4675
|
e[13]
|
|
4711
4676
|
), l = !0);
|
|
4712
4677
|
},
|
|
4713
|
-
p(
|
|
4678
|
+
p(p, d) {
|
|
4714
4679
|
/*isMobile*/
|
|
4715
|
-
|
|
4680
|
+
p[3] || f.p(p, d);
|
|
4716
4681
|
},
|
|
4717
|
-
d(
|
|
4718
|
-
|
|
4682
|
+
d(p) {
|
|
4683
|
+
p && D(t), f && f.d(), l = !1, c();
|
|
4719
4684
|
}
|
|
4720
4685
|
};
|
|
4721
4686
|
}
|
|
4722
|
-
function
|
|
4723
|
-
let t,
|
|
4687
|
+
function lo(e) {
|
|
4688
|
+
let t, n = (
|
|
4724
4689
|
/*$_*/
|
|
4725
4690
|
e[2]("logoutButton") + ""
|
|
4726
|
-
),
|
|
4691
|
+
), r;
|
|
4727
4692
|
return {
|
|
4728
4693
|
c() {
|
|
4729
|
-
t = I("span"),
|
|
4694
|
+
t = I("span"), r = le(n), B(t, "class", "PlayerLogoutText");
|
|
4730
4695
|
},
|
|
4731
4696
|
m(i, o) {
|
|
4732
|
-
|
|
4697
|
+
K(i, t, o), A(t, r);
|
|
4733
4698
|
},
|
|
4734
4699
|
p(i, o) {
|
|
4735
4700
|
o & /*$_*/
|
|
4736
|
-
4 &&
|
|
4737
|
-
i[2]("logoutButton") + "") &&
|
|
4701
|
+
4 && n !== (n = /*$_*/
|
|
4702
|
+
i[2]("logoutButton") + "") && Gt(r, n);
|
|
4738
4703
|
},
|
|
4739
4704
|
d(i) {
|
|
4740
4705
|
i && D(t);
|
|
4741
4706
|
}
|
|
4742
4707
|
};
|
|
4743
4708
|
}
|
|
4744
|
-
function
|
|
4709
|
+
function fo(e) {
|
|
4745
4710
|
let t;
|
|
4746
|
-
function
|
|
4711
|
+
function n(o, a) {
|
|
4747
4712
|
return (
|
|
4748
4713
|
/*buttonlocation*/
|
|
4749
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4714
|
+
o[0] === "PlayerAccountMenu" ? ho : uo
|
|
4750
4715
|
);
|
|
4751
4716
|
}
|
|
4752
|
-
let
|
|
4717
|
+
let r = n(e), i = r(e);
|
|
4753
4718
|
return {
|
|
4754
4719
|
c() {
|
|
4755
4720
|
t = I("div"), i.c();
|
|
4756
4721
|
},
|
|
4757
4722
|
m(o, a) {
|
|
4758
|
-
|
|
4723
|
+
K(o, t, a), i.m(t, null), e[15](t);
|
|
4759
4724
|
},
|
|
4760
4725
|
p(o, [a]) {
|
|
4761
|
-
|
|
4726
|
+
r === (r = n(o)) && i ? i.p(o, a) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
|
|
4762
4727
|
},
|
|
4763
4728
|
i: H,
|
|
4764
4729
|
o: H,
|
|
@@ -4767,78 +4732,78 @@ function bo(e) {
|
|
|
4767
4732
|
}
|
|
4768
4733
|
};
|
|
4769
4734
|
}
|
|
4770
|
-
function
|
|
4771
|
-
let
|
|
4772
|
-
|
|
4773
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4735
|
+
function co(e, t, n) {
|
|
4736
|
+
let r;
|
|
4737
|
+
Bn(e, no, (_) => n(2, r = _));
|
|
4738
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", p = !1, d, m = window.navigator.userAgent, x = xn(m) !== "PC";
|
|
4774
4739
|
const T = window.matchMedia("(min-width: 768px)"), P = () => {
|
|
4775
|
-
fetch(
|
|
4776
|
-
Object.keys(R).forEach((
|
|
4777
|
-
|
|
4740
|
+
fetch(c).then((R) => R.json()).then((R) => {
|
|
4741
|
+
Object.keys(R).forEach((Ie) => {
|
|
4742
|
+
Ot(Ie, R[Ie]);
|
|
4778
4743
|
});
|
|
4779
4744
|
}).catch((R) => {
|
|
4780
4745
|
console.log(R);
|
|
4781
4746
|
});
|
|
4782
4747
|
};
|
|
4783
|
-
Object.keys(
|
|
4784
|
-
|
|
4748
|
+
Object.keys(It).forEach((_) => {
|
|
4749
|
+
Ot(_, It[_]);
|
|
4785
4750
|
});
|
|
4786
|
-
const
|
|
4787
|
-
let
|
|
4788
|
-
|
|
4789
|
-
let R = { method: "DELETE", headers:
|
|
4790
|
-
fetch(`${i}/v1/player/session/player`, R).then((
|
|
4791
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4751
|
+
const E = () => {
|
|
4752
|
+
let _ = new Headers();
|
|
4753
|
+
_.append("Content-type", "application/json"), _.append("X-SessionID", o);
|
|
4754
|
+
let R = { method: "DELETE", headers: _ };
|
|
4755
|
+
fetch(`${i}/v1/player/session/player`, R).then((Ie) => {
|
|
4756
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), oo("logged_out", {});
|
|
4792
4757
|
});
|
|
4793
|
-
}, O = () => (i || (
|
|
4794
|
-
|
|
4758
|
+
}, O = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(f)), p), w = () => {
|
|
4759
|
+
so(s);
|
|
4795
4760
|
};
|
|
4796
|
-
|
|
4761
|
+
jn(() => () => {
|
|
4797
4762
|
});
|
|
4798
|
-
const $ = () =>
|
|
4799
|
-
function
|
|
4800
|
-
|
|
4801
|
-
|
|
4763
|
+
const $ = () => E(), ce = () => E();
|
|
4764
|
+
function Sn(_) {
|
|
4765
|
+
Ge[_ ? "unshift" : "push"](() => {
|
|
4766
|
+
d = _, n(1, d);
|
|
4802
4767
|
});
|
|
4803
4768
|
}
|
|
4804
|
-
return e.$$set = (
|
|
4805
|
-
"endpoint" in
|
|
4769
|
+
return e.$$set = (_) => {
|
|
4770
|
+
"endpoint" in _ && n(6, i = _.endpoint), "session" in _ && n(7, o = _.session), "buttonlocation" in _ && n(0, a = _.buttonlocation), "lang" in _ && n(8, s = _.lang), "mbsource" in _ && n(9, h = _.mbsource), "clientstyling" in _ && n(10, u = _.clientstyling), "clientstylingurl" in _ && n(11, l = _.clientstylingurl), "translationurl" in _ && n(12, c = _.translationurl);
|
|
4806
4771
|
}, e.$$.update = () => {
|
|
4807
4772
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4808
4773
|
193 && i && o && a && O(), e.$$.dirty & /*lang*/
|
|
4809
4774
|
256 && s && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4810
|
-
1026 && u &&
|
|
4811
|
-
1026 && u &&
|
|
4812
|
-
2050 && l &&
|
|
4813
|
-
514 && h &&
|
|
4814
|
-
4096 &&
|
|
4775
|
+
1026 && u && d && Pt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4776
|
+
1026 && u && d && Pt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4777
|
+
2050 && l && d && ro(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4778
|
+
514 && h && d && io(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4779
|
+
4096 && c && P();
|
|
4815
4780
|
}, [
|
|
4816
4781
|
a,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
_,
|
|
4820
|
-
T,
|
|
4782
|
+
d,
|
|
4783
|
+
r,
|
|
4821
4784
|
x,
|
|
4785
|
+
T,
|
|
4786
|
+
E,
|
|
4822
4787
|
i,
|
|
4823
4788
|
o,
|
|
4824
4789
|
s,
|
|
4825
4790
|
h,
|
|
4826
4791
|
u,
|
|
4827
4792
|
l,
|
|
4828
|
-
|
|
4793
|
+
c,
|
|
4829
4794
|
$,
|
|
4830
|
-
|
|
4831
|
-
|
|
4795
|
+
ce,
|
|
4796
|
+
Sn
|
|
4832
4797
|
];
|
|
4833
4798
|
}
|
|
4834
|
-
class
|
|
4799
|
+
class En extends Kn {
|
|
4835
4800
|
constructor(t) {
|
|
4836
|
-
super(),
|
|
4801
|
+
super(), Jn(
|
|
4837
4802
|
this,
|
|
4838
4803
|
t,
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4804
|
+
co,
|
|
4805
|
+
fo,
|
|
4806
|
+
Nt,
|
|
4842
4807
|
{
|
|
4843
4808
|
endpoint: 6,
|
|
4844
4809
|
session: 7,
|
|
@@ -4849,7 +4814,7 @@ class wr extends rn {
|
|
|
4849
4814
|
clientstylingurl: 11,
|
|
4850
4815
|
translationurl: 12
|
|
4851
4816
|
},
|
|
4852
|
-
|
|
4817
|
+
ao
|
|
4853
4818
|
);
|
|
4854
4819
|
}
|
|
4855
4820
|
get endpoint() {
|
|
@@ -4901,74 +4866,74 @@ class wr extends rn {
|
|
|
4901
4866
|
this.$$set({ translationurl: t }), L();
|
|
4902
4867
|
}
|
|
4903
4868
|
}
|
|
4904
|
-
|
|
4905
|
-
const
|
|
4869
|
+
Yn(En, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4870
|
+
const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4906
4871
|
__proto__: null,
|
|
4907
|
-
default:
|
|
4872
|
+
default: En
|
|
4908
4873
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4909
4874
|
export {
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4875
|
+
te as $,
|
|
4876
|
+
io as A,
|
|
4877
|
+
no as B,
|
|
4878
|
+
fe as C,
|
|
4879
|
+
Go as D,
|
|
4880
|
+
Lo as E,
|
|
4881
|
+
Eo as F,
|
|
4882
|
+
vo as G,
|
|
4883
|
+
mo as H,
|
|
4884
|
+
go as I,
|
|
4885
|
+
yo as J,
|
|
4886
|
+
bo as K,
|
|
4887
|
+
Wn as L,
|
|
4888
|
+
Co as M,
|
|
4889
|
+
So as N,
|
|
4890
|
+
Ro as O,
|
|
4891
|
+
xo as P,
|
|
4892
|
+
Po as Q,
|
|
4893
|
+
Ho as R,
|
|
4894
|
+
Kn as S,
|
|
4895
|
+
Bo as T,
|
|
4896
|
+
Se as U,
|
|
4897
|
+
Ao as V,
|
|
4898
|
+
he as W,
|
|
4899
|
+
Do as X,
|
|
4900
|
+
_o as Y,
|
|
4901
|
+
Mn as Z,
|
|
4902
|
+
Mo as _,
|
|
4903
|
+
bn as a,
|
|
4904
|
+
No as a0,
|
|
4905
|
+
Io as a1,
|
|
4906
|
+
po as a2,
|
|
4907
|
+
Tn as a3,
|
|
4908
|
+
$o as a4,
|
|
4909
|
+
Uo as a5,
|
|
4910
|
+
gr as a6,
|
|
4911
|
+
Fo as a7,
|
|
4912
|
+
wo as a8,
|
|
4913
|
+
jo as a9,
|
|
4914
|
+
On as b,
|
|
4915
|
+
Yn as c,
|
|
4916
|
+
Ln as d,
|
|
4917
|
+
I as e,
|
|
4953
4918
|
L as f,
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4919
|
+
B as g,
|
|
4920
|
+
To as h,
|
|
4921
|
+
Jn as i,
|
|
4922
|
+
Oo as j,
|
|
4923
|
+
K as k,
|
|
4924
|
+
A as l,
|
|
4925
|
+
Dt as m,
|
|
4926
|
+
Gt as n,
|
|
4927
|
+
H as o,
|
|
4928
|
+
D as p,
|
|
4929
|
+
Bn as q,
|
|
4965
4930
|
G as r,
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4931
|
+
Nt as s,
|
|
4932
|
+
le as t,
|
|
4933
|
+
xn as u,
|
|
4934
|
+
jn as v,
|
|
4935
|
+
V as w,
|
|
4936
|
+
Ge as x,
|
|
4937
|
+
Pt as y,
|
|
4938
|
+
ro as z
|
|
4974
4939
|
};
|