@everymatrix/player-account-controller 1.54.4 → 1.54.8
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-Ddt-oH9k.js → GeneralLogout-ChXyfO7j.js} +504 -512
- package/components/GeneralLogout-CoXr5Hra.js +4819 -0
- package/components/GeneralLogout-JiIri-az.cjs +8 -0
- package/components/PlayerAccountBettingHistory-C4SfQEr4.js +333 -0
- package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-CElNilNd.js} +24 -24
- package/components/PlayerAccountBettingHistory-CSI5k3hd.cjs +1 -0
- package/components/PlayerAccountBiometrics-BS3jkUXn.cjs +1 -0
- package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-D9kYcZXR.js} +26 -26
- package/components/PlayerAccountBiometrics-orQ-qG9h.js +307 -0
- package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-CHUq23nB.js} +13 -13
- package/components/PlayerAccountClosure-CWd3utu_.js +347 -0
- package/components/PlayerAccountClosure-DdfqiT7d.cjs +1 -0
- package/components/{PlayerAccountController-BZYAo3oo.js → PlayerAccountController-BclvS237.js} +126 -126
- package/components/PlayerAccountController-DEXL47fX.js +6671 -0
- package/components/PlayerAccountController-DX3vsM6e.cjs +1 -0
- package/components/PlayerAccountGamingLimits-CKnItii4.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-DXQNmZKD.js} +19 -19
- package/components/PlayerAccountGamingLimits-Db6qUAS-.js +766 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-i09zMH6w.js} +59 -59
- package/components/PlayerAccountGamingLimitsConfirmationModal-jZS53-sU.cjs +1 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-l4fu3WOl.js +310 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BIt0U7Ia.js} +51 -51
- package/components/PlayerAccountGamingLimitsGroupEdit-CsnzS7iF.js +4170 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DZlV6G_9.cjs +10 -0
- package/components/PlayerAccountGamingLimitsHistory2-CrW3EIzV.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-D04L-msb.js} +44 -44
- package/components/PlayerAccountGamingLimitsHistory2-DA5YY1gv.js +767 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-B2YB4bdP.js} +95 -95
- package/components/PlayerAccountGamingLimitsInfoCard-B4t7J9Ea.js +1513 -0
- package/components/PlayerAccountGamingLimitsInfoCard-CaJYYEdy.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-B1GlGvDK.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-CbtwzTC5.js +3283 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-D8OKZxQt.js} +90 -90
- package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-B7ZXSiK5.js} +17 -17
- package/components/PlayerAccountGamingLimitsPopup-C9KoZcRj.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPopup-DxXAP_Yw.js +344 -0
- package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BoFnZpPK.js} +8 -8
- package/components/PlayerAccountGamingLimitsWrapper2-Dll6Amu9.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-eSNYZCaw.js +866 -0
- package/components/PlayerAccountGeneralConfirmationModal-B-p3sJZ3.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-DLBQH_sl.js} +66 -66
- package/components/PlayerAccountGeneralConfirmationModal-DhTWcbuE.js +365 -0
- package/components/PlayerAccountMenu-BGRoL3Yz.js +579 -0
- package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-BxjdHhZ_.js} +17 -17
- package/components/PlayerAccountMenu-Csb1tUf_.cjs +1 -0
- package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-C4nIa5u0.js} +28 -28
- package/components/PlayerAccountModal-D29fr970.js +213 -0
- package/components/PlayerAccountModal-DabmJiP4.cjs +1 -0
- package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-4sGKSJWy.js} +16 -16
- package/components/PlayerAccountNotifications-C3rPIsKp.js +261 -0
- package/components/PlayerAccountNotifications-O92_s-dm.cjs +1 -0
- package/components/PlayerAccountSelfExclusion-BkBWGAy2.cjs +3557 -0
- package/components/PlayerAccountSelfExclusion-CpKuxBrZ.js +16678 -0
- package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-U9dfheYH.js} +11029 -12570
- package/components/PlayerAccountTimeout-CucYpS_w.cjs +1 -0
- package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-DIRXKowJ.js} +25 -25
- package/components/PlayerAccountTimeout-c2osWNku.js +819 -0
- package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-B2QAPJxC.js} +49 -49
- package/components/PlayerActiveBonuses-DDcAwy_n.js +1089 -0
- package/components/PlayerActiveBonuses-cecVnp46.cjs +1 -0
- package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-BQU7JBPr.js} +50 -50
- package/components/PlayerBonusCard-C9Xdv-lu.cjs +1 -0
- package/components/PlayerBonusCard-TYI-WkBy.js +701 -0
- package/components/PlayerBonusHistory-Boz8c3tb.js +919 -0
- package/components/PlayerBonusHistory-CMPf8GQz.cjs +1 -0
- package/components/PlayerBonusHistory-cNqY_wfD.js +920 -0
- package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-BGxYGFs-.js} +103 -103
- package/components/PlayerChangePassword-Dl3Pgpul.js +1177 -0
- package/components/PlayerChangePassword-X_GfgxAV.cjs +3 -0
- package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-BzSW3HMj.js} +25 -25
- package/components/PlayerDeposit-CqpNLpaq.cjs +1 -0
- package/components/PlayerDeposit-kjy658sM.js +395 -0
- package/components/PlayerGamingHistory-B6KJDVn0.cjs +1 -0
- package/components/PlayerGamingHistory-BW5rigFC.js +986 -0
- package/components/PlayerGamingHistory-DIgLxCfL.js +973 -0
- package/components/PlayerPendingWithdrawals--W6Dfn3K.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-BzOmRYiC.js} +33 -33
- package/components/PlayerPendingWithdrawals-pV1C12y5.js +311 -0
- package/components/PlayerProfileInfo-BTgis7wR.cjs +1 -0
- package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-CTgSfW-l.js} +45 -45
- package/components/PlayerProfileInfo-DkVAYiPX.js +1753 -0
- package/components/PlayerRealityCheck-BcsDhvm0.cjs +1 -0
- package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BdZDs3Tl.js} +26 -26
- package/components/PlayerRealityCheck-DT3kOky2.js +598 -0
- package/components/PlayerTransactionHistory-BL92RRLF.cjs +1 -0
- package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-BQIA4QRw.js} +23 -23
- package/components/PlayerTransactionHistory-Yhwt7kUa.js +315 -0
- package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-Cgv9nZE8.js} +20 -20
- package/components/PlayerWithdrawal-KgqM9wo-.cjs +1 -0
- package/components/PlayerWithdrawal-uB46JhmK.js +369 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
- package/stencil/checkbox-group-input_9-AKw0biZc.cjs +2045 -0
- package/stencil/checkbox-group-input_9-BewIfW-f.js +13203 -0
- package/stencil/checkbox-group-input_9-CbFpcwPG.js +13237 -0
- package/stencil/{general-input-DnFPstQP.js → general-input-BEcUF0Mm.js} +1 -1
- package/stencil/general-input-DI0pw0ot.cjs +1 -0
- package/stencil/general-input-DKyA-W8i.js +48 -0
- package/stencil/index-581287aa-CC7128Vz.js +654 -0
- package/stencil/index-581287aa-D5QW29QV.cjs +1 -0
- package/stencil/index-581287aa-D8NTWa_9.js +638 -0
- package/stencil/index-8b4525de-BFiXEsaX.cjs +1 -0
- package/stencil/index-8b4525de-C2xAv-3x.js +708 -0
- package/stencil/index-8b4525de-DeHXGvRF.js +692 -0
- package/stencil/index-a76d30c7-CFX9mSqu.cjs +1 -0
- package/stencil/index-a76d30c7-CQrAWNu0.js +658 -0
- package/stencil/index-a76d30c7-PfqrSVyu.js +631 -0
- package/stencil/index-c0196f50-3kAjMpUS.cjs +1 -0
- package/stencil/index-c0196f50-BjscP7kj.js +697 -0
- package/stencil/index-c0196f50-aE1zPmtS.js +724 -0
- package/stencil/locale-B5abSHU_.cjs +1 -0
- package/stencil/password-input_2-D97O8QAr.cjs +105 -0
- package/stencil/password-input_2-eDchPH-o.js +569 -0
- package/stencil/password-input_2-vTvSUJey.js +569 -0
- package/stencil/{player-change-password-gm2-DR3e2gh5.js → player-change-password-gm2-D4jpQFwb.js} +1 -1
- package/stencil/player-change-password-gm2-DSTqyOhE.js +25 -0
- package/stencil/player-change-password-gm2-Dw3D3ckz.cjs +1 -0
- package/stencil/{player-change-password-gm2-98dcb7bc-gLcZhl3S.js → player-change-password-gm2-e732ee8e-BjoYj-89.js} +1 -1
- package/stencil/player-change-password-gm2-e732ee8e-BqRUxIre.cjs +1 -0
- package/stencil/player-change-password-gm2-e732ee8e-Df6ljnLL.js +253 -0
- package/stencil/player-kyc-verification-B2FHAsrR.cjs +180 -0
- package/stencil/player-kyc-verification-CVqP43FY.js +865 -0
- package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-D6Au6XVN.js} +1 -1
- package/stencil/{toggle-checkbox-input-CCLW6-uK.js → toggle-checkbox-input-BckTBwKu.js} +1 -1
- package/stencil/toggle-checkbox-input-D8fVk4wA.js +46 -0
- package/stencil/toggle-checkbox-input-kw5Y1n3x.cjs +1 -0
- package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
- package/stencil/user-deposit-withdrawal-BpAi0dc-.js +668 -0
- package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-CrMPR6xn.js} +1 -1
- package/stencil/user-deposit-withdrawal-DrKFN7wp.cjs +59 -0
- package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-BgYG3IxS.js} +1 -1
- package/stencil/user-transaction-history-CBxwJE34.cjs +1 -0
- package/stencil/user-transaction-history-D8ebS-DZ.js +355 -0
- package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → vaadin-button-mixin-d131076c-C559kyH3.js} +3523 -3021
- package/stencil/vaadin-button-mixin-d131076c-brSraXp5.js +10277 -0
- package/stencil/vaadin-button-mixin-d131076c-zI_s2YZ5.cjs +2385 -0
- package/components/PlayerBonusHistory-BxBiQwQf.js +0 -847
- package/components/PlayerGamingHistory-BtQ73TId.js +0 -922
- package/stencil/checkbox-group-input_9-CMFoK7_E.js +0 -15610
- package/stencil/index-062e829b-DAFsZs6D.js +0 -686
- package/stencil/index-33f005e1-fFxPaeNy.js +0 -632
- package/stencil/index-9b3245b3-rzHgwqlB.js +0 -625
- package/stencil/index-fc58390d-BSwfXuUs.js +0 -691
- package/stencil/password-input_2-Bb9Q6Fe0.js +0 -2359
|
@@ -0,0 +1,4819 @@
|
|
|
1
|
+
var An = Object.defineProperty, Pn = Object.defineProperties;
|
|
2
|
+
var On = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var at = Object.getOwnPropertySymbols;
|
|
4
|
+
var In = Object.prototype.hasOwnProperty, Ln = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ne = (e, t, n) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ut = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
In.call(t, n) && Ne(e, n, t[n]);
|
|
8
|
+
if (at)
|
|
9
|
+
for (var n of at(t))
|
|
10
|
+
Ln.call(t, n) && Ne(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, ht = (e, t) => Pn(e, On(t));
|
|
13
|
+
var O = (e, t, n) => Ne(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var lt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
+
var o = (u) => {
|
|
16
|
+
try {
|
|
17
|
+
a(n.next(u));
|
|
18
|
+
} catch (h) {
|
|
19
|
+
i(h);
|
|
20
|
+
}
|
|
21
|
+
}, s = (u) => {
|
|
22
|
+
try {
|
|
23
|
+
a(n.throw(u));
|
|
24
|
+
} catch (h) {
|
|
25
|
+
i(h);
|
|
26
|
+
}
|
|
27
|
+
}, a = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
|
+
a((n = n.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
function B() {
|
|
31
|
+
}
|
|
32
|
+
const Nn = (e) => e;
|
|
33
|
+
function Cn(e, t) {
|
|
34
|
+
for (const n in t) e[n] = t[n];
|
|
35
|
+
return (
|
|
36
|
+
/** @type {T & S} */
|
|
37
|
+
e
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function $t(e) {
|
|
41
|
+
return e();
|
|
42
|
+
}
|
|
43
|
+
function ft() {
|
|
44
|
+
return /* @__PURE__ */ Object.create(null);
|
|
45
|
+
}
|
|
46
|
+
function F(e) {
|
|
47
|
+
e.forEach($t);
|
|
48
|
+
}
|
|
49
|
+
function le(e) {
|
|
50
|
+
return typeof e == "function";
|
|
51
|
+
}
|
|
52
|
+
function Rt(e, t) {
|
|
53
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
|
+
}
|
|
55
|
+
let me;
|
|
56
|
+
function xo(e, t) {
|
|
57
|
+
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
58
|
+
}
|
|
59
|
+
function Mn(e) {
|
|
60
|
+
return Object.keys(e).length === 0;
|
|
61
|
+
}
|
|
62
|
+
function Ut(e, ...t) {
|
|
63
|
+
if (e == null) {
|
|
64
|
+
for (const r of t)
|
|
65
|
+
r(void 0);
|
|
66
|
+
return B;
|
|
67
|
+
}
|
|
68
|
+
const n = e.subscribe(...t);
|
|
69
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
70
|
+
}
|
|
71
|
+
function $n(e, t, n) {
|
|
72
|
+
e.$$.on_destroy.push(Ut(t, n));
|
|
73
|
+
}
|
|
74
|
+
function Eo(e, t, n, r) {
|
|
75
|
+
if (e) {
|
|
76
|
+
const i = Gt(e, t, n, r);
|
|
77
|
+
return e[0](i);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function Gt(e, t, n, r) {
|
|
81
|
+
return e[1] && r ? Cn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
82
|
+
}
|
|
83
|
+
function So(e, t, n, r) {
|
|
84
|
+
if (e[2] && r) {
|
|
85
|
+
const i = e[2](r(n));
|
|
86
|
+
if (t.dirty === void 0)
|
|
87
|
+
return i;
|
|
88
|
+
if (typeof i == "object") {
|
|
89
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
90
|
+
for (let a = 0; a < s; a += 1)
|
|
91
|
+
o[a] = t.dirty[a] | i[a];
|
|
92
|
+
return o;
|
|
93
|
+
}
|
|
94
|
+
return t.dirty | i;
|
|
95
|
+
}
|
|
96
|
+
return t.dirty;
|
|
97
|
+
}
|
|
98
|
+
function To(e, t, n, r, i, o) {
|
|
99
|
+
if (i) {
|
|
100
|
+
const s = Gt(t, n, r, o);
|
|
101
|
+
e.p(s, i);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function wo(e) {
|
|
105
|
+
if (e.ctx.length > 32) {
|
|
106
|
+
const t = [], n = e.ctx.length / 32;
|
|
107
|
+
for (let r = 0; r < n; r++)
|
|
108
|
+
t[r] = -1;
|
|
109
|
+
return t;
|
|
110
|
+
}
|
|
111
|
+
return -1;
|
|
112
|
+
}
|
|
113
|
+
function Ho(e) {
|
|
114
|
+
return e == null ? "" : e;
|
|
115
|
+
}
|
|
116
|
+
function Bo(e) {
|
|
117
|
+
return e && le(e.destroy) ? e.destroy : B;
|
|
118
|
+
}
|
|
119
|
+
const Dt = typeof window != "undefined";
|
|
120
|
+
let Rn = Dt ? () => window.performance.now() : () => Date.now(), rt = Dt ? (e) => requestAnimationFrame(e) : B;
|
|
121
|
+
const z = /* @__PURE__ */ new Set();
|
|
122
|
+
function Ft(e) {
|
|
123
|
+
z.forEach((t) => {
|
|
124
|
+
t.c(e) || (z.delete(t), t.f());
|
|
125
|
+
}), z.size !== 0 && rt(Ft);
|
|
126
|
+
}
|
|
127
|
+
function Un(e) {
|
|
128
|
+
let t;
|
|
129
|
+
return z.size === 0 && rt(Ft), {
|
|
130
|
+
promise: new Promise((n) => {
|
|
131
|
+
z.add(t = { c: e, f: n });
|
|
132
|
+
}),
|
|
133
|
+
abort() {
|
|
134
|
+
z.delete(t);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const Ao = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
|
|
139
|
+
// @ts-ignore Node typings have this
|
|
140
|
+
global
|
|
141
|
+
);
|
|
142
|
+
function P(e, t) {
|
|
143
|
+
e.appendChild(t);
|
|
144
|
+
}
|
|
145
|
+
function Gn(e, t, n) {
|
|
146
|
+
const r = it(e);
|
|
147
|
+
if (!r.getElementById(t)) {
|
|
148
|
+
const i = N("style");
|
|
149
|
+
i.id = t, i.textContent = n, jt(r, i);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function it(e) {
|
|
153
|
+
if (!e) return document;
|
|
154
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
155
|
+
return t && /** @type {ShadowRoot} */
|
|
156
|
+
t.host ? (
|
|
157
|
+
/** @type {ShadowRoot} */
|
|
158
|
+
t
|
|
159
|
+
) : e.ownerDocument;
|
|
160
|
+
}
|
|
161
|
+
function Dn(e) {
|
|
162
|
+
const t = N("style");
|
|
163
|
+
return t.textContent = "/* empty */", jt(it(e), t), t.sheet;
|
|
164
|
+
}
|
|
165
|
+
function jt(e, t) {
|
|
166
|
+
return P(
|
|
167
|
+
/** @type {Document} */
|
|
168
|
+
e.head || e,
|
|
169
|
+
t
|
|
170
|
+
), t.sheet;
|
|
171
|
+
}
|
|
172
|
+
function fe(e, t, n) {
|
|
173
|
+
e.insertBefore(t, n || null);
|
|
174
|
+
}
|
|
175
|
+
function j(e) {
|
|
176
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
177
|
+
}
|
|
178
|
+
function Po(e, t) {
|
|
179
|
+
for (let n = 0; n < e.length; n += 1)
|
|
180
|
+
e[n] && e[n].d(t);
|
|
181
|
+
}
|
|
182
|
+
function N(e) {
|
|
183
|
+
return document.createElement(e);
|
|
184
|
+
}
|
|
185
|
+
function re(e) {
|
|
186
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
187
|
+
}
|
|
188
|
+
function ce(e) {
|
|
189
|
+
return document.createTextNode(e);
|
|
190
|
+
}
|
|
191
|
+
function Fn() {
|
|
192
|
+
return ce(" ");
|
|
193
|
+
}
|
|
194
|
+
function Oo() {
|
|
195
|
+
return ce("");
|
|
196
|
+
}
|
|
197
|
+
function kt(e, t, n, r) {
|
|
198
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
199
|
+
}
|
|
200
|
+
function Io(e) {
|
|
201
|
+
return function(t) {
|
|
202
|
+
return t.preventDefault(), e.call(this, t);
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function A(e, t, n) {
|
|
206
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
207
|
+
}
|
|
208
|
+
function Lo(e, t, n) {
|
|
209
|
+
const r = t.toLowerCase();
|
|
210
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : A(e, t, n);
|
|
211
|
+
}
|
|
212
|
+
function No(e) {
|
|
213
|
+
let t;
|
|
214
|
+
return {
|
|
215
|
+
/* push */
|
|
216
|
+
p(...n) {
|
|
217
|
+
t = n, t.forEach((r) => e.push(r));
|
|
218
|
+
},
|
|
219
|
+
/* remove */
|
|
220
|
+
r() {
|
|
221
|
+
t.forEach((n) => e.splice(e.indexOf(n), 1));
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
function Co(e) {
|
|
226
|
+
return e === "" ? null : +e;
|
|
227
|
+
}
|
|
228
|
+
function jn(e) {
|
|
229
|
+
return Array.from(e.childNodes);
|
|
230
|
+
}
|
|
231
|
+
function Vt(e, t) {
|
|
232
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
233
|
+
t);
|
|
234
|
+
}
|
|
235
|
+
function Mo(e, t) {
|
|
236
|
+
e.value = t == null ? "" : t;
|
|
237
|
+
}
|
|
238
|
+
function kn(e, t, n, r) {
|
|
239
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
240
|
+
}
|
|
241
|
+
function $o(e, t, n) {
|
|
242
|
+
for (let r = 0; r < e.options.length; r += 1) {
|
|
243
|
+
const i = e.options[r];
|
|
244
|
+
if (i.__value === t) {
|
|
245
|
+
i.selected = !0;
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
250
|
+
}
|
|
251
|
+
function Ro(e) {
|
|
252
|
+
const t = e.querySelector(":checked");
|
|
253
|
+
return t && t.__value;
|
|
254
|
+
}
|
|
255
|
+
function Uo(e, t, n) {
|
|
256
|
+
e.classList.toggle(t, !!n);
|
|
257
|
+
}
|
|
258
|
+
function Vn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
259
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
260
|
+
}
|
|
261
|
+
function Xn(e) {
|
|
262
|
+
const t = {};
|
|
263
|
+
return e.childNodes.forEach(
|
|
264
|
+
/** @param {Element} node */
|
|
265
|
+
(n) => {
|
|
266
|
+
t[n.slot || "default"] = !0;
|
|
267
|
+
}
|
|
268
|
+
), t;
|
|
269
|
+
}
|
|
270
|
+
const Se = /* @__PURE__ */ new Map();
|
|
271
|
+
let Te = 0;
|
|
272
|
+
function Wn(e) {
|
|
273
|
+
let t = 5381, n = e.length;
|
|
274
|
+
for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
|
|
275
|
+
return t >>> 0;
|
|
276
|
+
}
|
|
277
|
+
function zn(e, t) {
|
|
278
|
+
const n = { stylesheet: Dn(t), rules: {} };
|
|
279
|
+
return Se.set(e, n), n;
|
|
280
|
+
}
|
|
281
|
+
function ct(e, t, n, r, i, o, s, a = 0) {
|
|
282
|
+
const u = 16.666 / r;
|
|
283
|
+
let h = `{
|
|
284
|
+
`;
|
|
285
|
+
for (let x = 0; x <= 1; x += u) {
|
|
286
|
+
const T = t + (n - t) * o(x);
|
|
287
|
+
h += x * 100 + `%{${s(T, 1 - T)}}
|
|
288
|
+
`;
|
|
289
|
+
}
|
|
290
|
+
const l = h + `100% {${s(n, 1 - n)}}
|
|
291
|
+
}`, f = `__svelte_${Wn(l)}_${a}`, c = it(e), { stylesheet: d, rules: p } = Se.get(c) || zn(c, e);
|
|
292
|
+
p[f] || (p[f] = !0, d.insertRule(`@keyframes ${f} ${l}`, d.cssRules.length));
|
|
293
|
+
const m = e.style.animation || "";
|
|
294
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, Te += 1, f;
|
|
295
|
+
}
|
|
296
|
+
function Zn(e, t) {
|
|
297
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
298
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
299
|
+
// remove all Svelte animations
|
|
300
|
+
), i = n.length - r.length;
|
|
301
|
+
i && (e.style.animation = r.join(", "), Te -= i, Te || qn());
|
|
302
|
+
}
|
|
303
|
+
function qn() {
|
|
304
|
+
rt(() => {
|
|
305
|
+
Te || (Se.forEach((e) => {
|
|
306
|
+
const { ownerNode: t } = e.stylesheet;
|
|
307
|
+
t && j(t);
|
|
308
|
+
}), Se.clear());
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
let ae;
|
|
312
|
+
function se(e) {
|
|
313
|
+
ae = e;
|
|
314
|
+
}
|
|
315
|
+
function Qn() {
|
|
316
|
+
if (!ae) throw new Error("Function called outside component initialization");
|
|
317
|
+
return ae;
|
|
318
|
+
}
|
|
319
|
+
function Go(e) {
|
|
320
|
+
Qn().$$.on_mount.push(e);
|
|
321
|
+
}
|
|
322
|
+
const W = [], je = [];
|
|
323
|
+
let Z = [];
|
|
324
|
+
const dt = [], Xt = /* @__PURE__ */ Promise.resolve();
|
|
325
|
+
let ke = !1;
|
|
326
|
+
function Wt() {
|
|
327
|
+
ke || (ke = !0, Xt.then(C));
|
|
328
|
+
}
|
|
329
|
+
function Do() {
|
|
330
|
+
return Wt(), Xt;
|
|
331
|
+
}
|
|
332
|
+
function we(e) {
|
|
333
|
+
Z.push(e);
|
|
334
|
+
}
|
|
335
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
336
|
+
let V = 0;
|
|
337
|
+
function C() {
|
|
338
|
+
if (V !== 0)
|
|
339
|
+
return;
|
|
340
|
+
const e = ae;
|
|
341
|
+
do {
|
|
342
|
+
try {
|
|
343
|
+
for (; V < W.length; ) {
|
|
344
|
+
const t = W[V];
|
|
345
|
+
V++, se(t), Jn(t.$$);
|
|
346
|
+
}
|
|
347
|
+
} catch (t) {
|
|
348
|
+
throw W.length = 0, V = 0, t;
|
|
349
|
+
}
|
|
350
|
+
for (se(null), W.length = 0, V = 0; je.length; ) je.pop()();
|
|
351
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
352
|
+
const n = Z[t];
|
|
353
|
+
Ce.has(n) || (Ce.add(n), n());
|
|
354
|
+
}
|
|
355
|
+
Z.length = 0;
|
|
356
|
+
} while (W.length);
|
|
357
|
+
for (; dt.length; )
|
|
358
|
+
dt.pop()();
|
|
359
|
+
ke = !1, Ce.clear(), se(e);
|
|
360
|
+
}
|
|
361
|
+
function Jn(e) {
|
|
362
|
+
if (e.fragment !== null) {
|
|
363
|
+
e.update(), F(e.before_update);
|
|
364
|
+
const t = e.dirty;
|
|
365
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
function Yn(e) {
|
|
369
|
+
const t = [], n = [];
|
|
370
|
+
Z.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Z = t;
|
|
371
|
+
}
|
|
372
|
+
let ie;
|
|
373
|
+
function Kn() {
|
|
374
|
+
return ie || (ie = Promise.resolve(), ie.then(() => {
|
|
375
|
+
ie = null;
|
|
376
|
+
})), ie;
|
|
377
|
+
}
|
|
378
|
+
function Me(e, t, n) {
|
|
379
|
+
e.dispatchEvent(Vn(`${t ? "intro" : "outro"}${n}`));
|
|
380
|
+
}
|
|
381
|
+
const ye = /* @__PURE__ */ new Set();
|
|
382
|
+
let M;
|
|
383
|
+
function Fo() {
|
|
384
|
+
M = {
|
|
385
|
+
r: 0,
|
|
386
|
+
c: [],
|
|
387
|
+
p: M
|
|
388
|
+
// parent group
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
function jo() {
|
|
392
|
+
M.r || F(M.c), M = M.p;
|
|
393
|
+
}
|
|
394
|
+
function er(e, t) {
|
|
395
|
+
e && e.i && (ye.delete(e), e.i(t));
|
|
396
|
+
}
|
|
397
|
+
function ko(e, t, n, r) {
|
|
398
|
+
if (e && e.o) {
|
|
399
|
+
if (ye.has(e)) return;
|
|
400
|
+
ye.add(e), M.c.push(() => {
|
|
401
|
+
ye.delete(e), r && (n && e.d(1), r());
|
|
402
|
+
}), e.o(t);
|
|
403
|
+
} else r && r();
|
|
404
|
+
}
|
|
405
|
+
const tr = { duration: 0 };
|
|
406
|
+
function Vo(e, t, n, r) {
|
|
407
|
+
let o = t(e, n, { direction: "both" }), s = r ? 0 : 1, a = null, u = null, h = null, l;
|
|
408
|
+
function f() {
|
|
409
|
+
h && Zn(e, h);
|
|
410
|
+
}
|
|
411
|
+
function c(p, m) {
|
|
412
|
+
const x = (
|
|
413
|
+
/** @type {Program['d']} */
|
|
414
|
+
p.b - s
|
|
415
|
+
);
|
|
416
|
+
return m *= Math.abs(x), {
|
|
417
|
+
a: s,
|
|
418
|
+
b: p.b,
|
|
419
|
+
d: x,
|
|
420
|
+
duration: m,
|
|
421
|
+
start: p.start,
|
|
422
|
+
end: p.start + m,
|
|
423
|
+
group: p.group
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
function d(p) {
|
|
427
|
+
const {
|
|
428
|
+
delay: m = 0,
|
|
429
|
+
duration: x = 300,
|
|
430
|
+
easing: T = Nn,
|
|
431
|
+
tick: w = B,
|
|
432
|
+
css: E
|
|
433
|
+
} = o || tr, I = {
|
|
434
|
+
start: Rn() + m,
|
|
435
|
+
b: p
|
|
436
|
+
};
|
|
437
|
+
p || (I.group = M, M.r += 1), "inert" in e && (p ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
438
|
+
e.inert, e.inert = !0)), a || u ? u = I : (E && (f(), h = ct(e, s, p, x, m, T, E)), p && w(0, 1), a = c(I, x), we(() => Me(e, p, "start")), Un((H) => {
|
|
439
|
+
if (u && H > u.start && (a = c(u, x), u = null, Me(e, a.b, "start"), E && (f(), h = ct(
|
|
440
|
+
e,
|
|
441
|
+
s,
|
|
442
|
+
a.b,
|
|
443
|
+
a.duration,
|
|
444
|
+
0,
|
|
445
|
+
T,
|
|
446
|
+
o.css
|
|
447
|
+
))), a) {
|
|
448
|
+
if (H >= a.end)
|
|
449
|
+
w(s = a.b, 1 - s), Me(e, a.b, "end"), u || (a.b ? f() : --a.group.r || F(a.group.c)), a = null;
|
|
450
|
+
else if (H >= a.start) {
|
|
451
|
+
const U = H - a.start;
|
|
452
|
+
s = a.a + a.d * T(U / a.duration), w(s, 1 - s);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return !!(a || u);
|
|
456
|
+
}));
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
run(p) {
|
|
460
|
+
le(o) ? Kn().then(() => {
|
|
461
|
+
o = o({ direction: p ? "in" : "out" }), d(p);
|
|
462
|
+
}) : d(p);
|
|
463
|
+
},
|
|
464
|
+
end() {
|
|
465
|
+
f(), a = u = null;
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
function Xo(e) {
|
|
470
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
471
|
+
}
|
|
472
|
+
function nr(e, t, n) {
|
|
473
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
474
|
+
r && r.m(t, n), we(() => {
|
|
475
|
+
const o = e.$$.on_mount.map($t).filter(le);
|
|
476
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : F(o), e.$$.on_mount = [];
|
|
477
|
+
}), i.forEach(we);
|
|
478
|
+
}
|
|
479
|
+
function rr(e, t) {
|
|
480
|
+
const n = e.$$;
|
|
481
|
+
n.fragment !== null && (Yn(n.after_update), F(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
482
|
+
}
|
|
483
|
+
function ir(e, t) {
|
|
484
|
+
e.$$.dirty[0] === -1 && (W.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
485
|
+
}
|
|
486
|
+
function or(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
487
|
+
const u = ae;
|
|
488
|
+
se(e);
|
|
489
|
+
const h = e.$$ = {
|
|
490
|
+
fragment: null,
|
|
491
|
+
ctx: [],
|
|
492
|
+
// state
|
|
493
|
+
props: o,
|
|
494
|
+
update: B,
|
|
495
|
+
not_equal: i,
|
|
496
|
+
bound: ft(),
|
|
497
|
+
// lifecycle
|
|
498
|
+
on_mount: [],
|
|
499
|
+
on_destroy: [],
|
|
500
|
+
on_disconnect: [],
|
|
501
|
+
before_update: [],
|
|
502
|
+
after_update: [],
|
|
503
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
504
|
+
// everything else
|
|
505
|
+
callbacks: ft(),
|
|
506
|
+
dirty: a,
|
|
507
|
+
skip_bound: !1,
|
|
508
|
+
root: t.target || u.$$.root
|
|
509
|
+
};
|
|
510
|
+
s && s(h.root);
|
|
511
|
+
let l = !1;
|
|
512
|
+
if (h.ctx = n ? n(e, t.props || {}, (f, c, ...d) => {
|
|
513
|
+
const p = d.length ? d[0] : c;
|
|
514
|
+
return h.ctx && i(h.ctx[f], h.ctx[f] = p) && (!h.skip_bound && h.bound[f] && h.bound[f](p), l && ir(e, f)), c;
|
|
515
|
+
}) : [], h.update(), l = !0, F(h.before_update), h.fragment = r ? r(h.ctx) : !1, t.target) {
|
|
516
|
+
if (t.hydrate) {
|
|
517
|
+
const f = jn(t.target);
|
|
518
|
+
h.fragment && h.fragment.l(f), f.forEach(j);
|
|
519
|
+
} else
|
|
520
|
+
h.fragment && h.fragment.c();
|
|
521
|
+
t.intro && er(e.$$.fragment), nr(e, t.target, t.anchor), C();
|
|
522
|
+
}
|
|
523
|
+
se(u);
|
|
524
|
+
}
|
|
525
|
+
let zt;
|
|
526
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
527
|
+
constructor(t, n, r) {
|
|
528
|
+
super();
|
|
529
|
+
/** The Svelte component constructor */
|
|
530
|
+
O(this, "$$ctor");
|
|
531
|
+
/** Slots */
|
|
532
|
+
O(this, "$$s");
|
|
533
|
+
/** The Svelte component instance */
|
|
534
|
+
O(this, "$$c");
|
|
535
|
+
/** Whether or not the custom element is connected */
|
|
536
|
+
O(this, "$$cn", !1);
|
|
537
|
+
/** Component props data */
|
|
538
|
+
O(this, "$$d", {});
|
|
539
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
540
|
+
O(this, "$$r", !1);
|
|
541
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
542
|
+
O(this, "$$p_d", {});
|
|
543
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
544
|
+
O(this, "$$l", {});
|
|
545
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
546
|
+
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
547
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
548
|
+
}
|
|
549
|
+
addEventListener(t, n, r) {
|
|
550
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
551
|
+
const i = this.$$c.$on(t, n);
|
|
552
|
+
this.$$l_u.set(n, i);
|
|
553
|
+
}
|
|
554
|
+
super.addEventListener(t, n, r);
|
|
555
|
+
}
|
|
556
|
+
removeEventListener(t, n, r) {
|
|
557
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
558
|
+
const i = this.$$l_u.get(n);
|
|
559
|
+
i && (i(), this.$$l_u.delete(n));
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
connectedCallback() {
|
|
563
|
+
return lt(this, null, function* () {
|
|
564
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
565
|
+
let t = function(o) {
|
|
566
|
+
return () => {
|
|
567
|
+
let s;
|
|
568
|
+
return {
|
|
569
|
+
c: function() {
|
|
570
|
+
s = N("slot"), o !== "default" && A(s, "name", o);
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
* @param {HTMLElement} target
|
|
574
|
+
* @param {HTMLElement} [anchor]
|
|
575
|
+
*/
|
|
576
|
+
m: function(h, l) {
|
|
577
|
+
fe(h, s, l);
|
|
578
|
+
},
|
|
579
|
+
d: function(h) {
|
|
580
|
+
h && j(s);
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
586
|
+
return;
|
|
587
|
+
const n = {}, r = Xn(this);
|
|
588
|
+
for (const o of this.$$s)
|
|
589
|
+
o in r && (n[o] = [t(o)]);
|
|
590
|
+
for (const o of this.attributes) {
|
|
591
|
+
const s = this.$$g_p(o.name);
|
|
592
|
+
s in this.$$d || (this.$$d[s] = _e(s, o.value, this.$$p_d, "toProp"));
|
|
593
|
+
}
|
|
594
|
+
for (const o in this.$$p_d)
|
|
595
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
596
|
+
this.$$c = new this.$$ctor({
|
|
597
|
+
target: this.shadowRoot || this,
|
|
598
|
+
props: ht(ut({}, this.$$d), {
|
|
599
|
+
$$slots: n,
|
|
600
|
+
$$scope: {
|
|
601
|
+
ctx: []
|
|
602
|
+
}
|
|
603
|
+
})
|
|
604
|
+
});
|
|
605
|
+
const i = () => {
|
|
606
|
+
this.$$r = !0;
|
|
607
|
+
for (const o in this.$$p_d)
|
|
608
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
609
|
+
const s = _e(
|
|
610
|
+
o,
|
|
611
|
+
this.$$d[o],
|
|
612
|
+
this.$$p_d,
|
|
613
|
+
"toAttribute"
|
|
614
|
+
);
|
|
615
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
616
|
+
}
|
|
617
|
+
this.$$r = !1;
|
|
618
|
+
};
|
|
619
|
+
this.$$c.$$.after_update.push(i), i();
|
|
620
|
+
for (const o in this.$$l)
|
|
621
|
+
for (const s of this.$$l[o]) {
|
|
622
|
+
const a = this.$$c.$on(o, s);
|
|
623
|
+
this.$$l_u.set(s, a);
|
|
624
|
+
}
|
|
625
|
+
this.$$l = {};
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
630
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
631
|
+
attributeChangedCallback(t, n, r) {
|
|
632
|
+
var i;
|
|
633
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
634
|
+
}
|
|
635
|
+
disconnectedCallback() {
|
|
636
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
637
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
$$g_p(t) {
|
|
641
|
+
return Object.keys(this.$$p_d).find(
|
|
642
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
643
|
+
) || t;
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
function _e(e, t, n, r) {
|
|
647
|
+
var o;
|
|
648
|
+
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
649
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
650
|
+
return t;
|
|
651
|
+
if (r === "toAttribute")
|
|
652
|
+
switch (i) {
|
|
653
|
+
case "Object":
|
|
654
|
+
case "Array":
|
|
655
|
+
return t == null ? null : JSON.stringify(t);
|
|
656
|
+
case "Boolean":
|
|
657
|
+
return t ? "" : null;
|
|
658
|
+
case "Number":
|
|
659
|
+
return t == null ? null : t;
|
|
660
|
+
default:
|
|
661
|
+
return t;
|
|
662
|
+
}
|
|
663
|
+
else
|
|
664
|
+
switch (i) {
|
|
665
|
+
case "Object":
|
|
666
|
+
case "Array":
|
|
667
|
+
return t && JSON.parse(t);
|
|
668
|
+
case "Boolean":
|
|
669
|
+
return t;
|
|
670
|
+
case "Number":
|
|
671
|
+
return t != null ? +t : t;
|
|
672
|
+
default:
|
|
673
|
+
return t;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
function sr(e, t, n, r, i, o) {
|
|
677
|
+
let s = class extends zt {
|
|
678
|
+
constructor() {
|
|
679
|
+
super(e, n, i), this.$$p_d = t;
|
|
680
|
+
}
|
|
681
|
+
static get observedAttributes() {
|
|
682
|
+
return Object.keys(t).map(
|
|
683
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
return Object.keys(t).forEach((a) => {
|
|
688
|
+
Object.defineProperty(s.prototype, a, {
|
|
689
|
+
get() {
|
|
690
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
691
|
+
},
|
|
692
|
+
set(u) {
|
|
693
|
+
var h;
|
|
694
|
+
u = _e(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
}), r.forEach((a) => {
|
|
698
|
+
Object.defineProperty(s.prototype, a, {
|
|
699
|
+
get() {
|
|
700
|
+
var u;
|
|
701
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
}), e.element = /** @type {any} */
|
|
705
|
+
s, s;
|
|
706
|
+
}
|
|
707
|
+
class ar {
|
|
708
|
+
constructor() {
|
|
709
|
+
/**
|
|
710
|
+
* ### PRIVATE API
|
|
711
|
+
*
|
|
712
|
+
* Do not use, may change at any time
|
|
713
|
+
*
|
|
714
|
+
* @type {any}
|
|
715
|
+
*/
|
|
716
|
+
O(this, "$$");
|
|
717
|
+
/**
|
|
718
|
+
* ### PRIVATE API
|
|
719
|
+
*
|
|
720
|
+
* Do not use, may change at any time
|
|
721
|
+
*
|
|
722
|
+
* @type {any}
|
|
723
|
+
*/
|
|
724
|
+
O(this, "$$set");
|
|
725
|
+
}
|
|
726
|
+
/** @returns {void} */
|
|
727
|
+
$destroy() {
|
|
728
|
+
rr(this, 1), this.$destroy = B;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* @template {Extract<keyof Events, string>} K
|
|
732
|
+
* @param {K} type
|
|
733
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
734
|
+
* @returns {() => void}
|
|
735
|
+
*/
|
|
736
|
+
$on(t, n) {
|
|
737
|
+
if (!le(n))
|
|
738
|
+
return B;
|
|
739
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
740
|
+
return r.push(n), () => {
|
|
741
|
+
const i = r.indexOf(n);
|
|
742
|
+
i !== -1 && r.splice(i, 1);
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* @param {Partial<Props>} props
|
|
747
|
+
* @returns {void}
|
|
748
|
+
*/
|
|
749
|
+
$set(t) {
|
|
750
|
+
this.$$set && !Mn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
const ur = "4";
|
|
754
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
|
|
755
|
+
var Ve = function(e, t) {
|
|
756
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
757
|
+
n.__proto__ = r;
|
|
758
|
+
} || function(n, r) {
|
|
759
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
760
|
+
}, Ve(e, t);
|
|
761
|
+
};
|
|
762
|
+
function R(e, t) {
|
|
763
|
+
if (typeof t != "function" && t !== null)
|
|
764
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
765
|
+
Ve(e, t);
|
|
766
|
+
function n() {
|
|
767
|
+
this.constructor = e;
|
|
768
|
+
}
|
|
769
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
770
|
+
}
|
|
771
|
+
var _ = function() {
|
|
772
|
+
return _ = Object.assign || function(t) {
|
|
773
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
774
|
+
n = arguments[r];
|
|
775
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
776
|
+
}
|
|
777
|
+
return t;
|
|
778
|
+
}, _.apply(this, arguments);
|
|
779
|
+
};
|
|
780
|
+
function hr(e, t) {
|
|
781
|
+
var n = {};
|
|
782
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
783
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
784
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
785
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
786
|
+
return n;
|
|
787
|
+
}
|
|
788
|
+
function Xe(e) {
|
|
789
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
790
|
+
if (n) return n.call(e);
|
|
791
|
+
if (e && typeof e.length == "number") return {
|
|
792
|
+
next: function() {
|
|
793
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
797
|
+
}
|
|
798
|
+
function We(e, t) {
|
|
799
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
800
|
+
if (!n) return e;
|
|
801
|
+
var r = n.call(e), i, o = [], s;
|
|
802
|
+
try {
|
|
803
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) o.push(i.value);
|
|
804
|
+
} catch (a) {
|
|
805
|
+
s = { error: a };
|
|
806
|
+
} finally {
|
|
807
|
+
try {
|
|
808
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
809
|
+
} finally {
|
|
810
|
+
if (s) throw s.error;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return o;
|
|
814
|
+
}
|
|
815
|
+
function q(e, t, n) {
|
|
816
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
|
|
817
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
818
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
819
|
+
}
|
|
820
|
+
function $(e) {
|
|
821
|
+
return typeof e == "function";
|
|
822
|
+
}
|
|
823
|
+
function Zt(e) {
|
|
824
|
+
var t = function(r) {
|
|
825
|
+
Error.call(r), r.stack = new Error().stack;
|
|
826
|
+
}, n = e(t);
|
|
827
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
828
|
+
}
|
|
829
|
+
var $e = Zt(function(e) {
|
|
830
|
+
return function(n) {
|
|
831
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
832
|
+
` + n.map(function(r, i) {
|
|
833
|
+
return i + 1 + ") " + r.toString();
|
|
834
|
+
}).join(`
|
|
835
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
836
|
+
};
|
|
837
|
+
});
|
|
838
|
+
function ze(e, t) {
|
|
839
|
+
if (e) {
|
|
840
|
+
var n = e.indexOf(t);
|
|
841
|
+
0 <= n && e.splice(n, 1);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
var Ae = function() {
|
|
845
|
+
function e(t) {
|
|
846
|
+
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
847
|
+
}
|
|
848
|
+
return e.prototype.unsubscribe = function() {
|
|
849
|
+
var t, n, r, i, o;
|
|
850
|
+
if (!this.closed) {
|
|
851
|
+
this.closed = !0;
|
|
852
|
+
var s = this._parentage;
|
|
853
|
+
if (s)
|
|
854
|
+
if (this._parentage = null, Array.isArray(s))
|
|
855
|
+
try {
|
|
856
|
+
for (var a = Xe(s), u = a.next(); !u.done; u = a.next()) {
|
|
857
|
+
var h = u.value;
|
|
858
|
+
h.remove(this);
|
|
859
|
+
}
|
|
860
|
+
} catch (m) {
|
|
861
|
+
t = { error: m };
|
|
862
|
+
} finally {
|
|
863
|
+
try {
|
|
864
|
+
u && !u.done && (n = a.return) && n.call(a);
|
|
865
|
+
} finally {
|
|
866
|
+
if (t) throw t.error;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
else
|
|
870
|
+
s.remove(this);
|
|
871
|
+
var l = this.initialTeardown;
|
|
872
|
+
if ($(l))
|
|
873
|
+
try {
|
|
874
|
+
l();
|
|
875
|
+
} catch (m) {
|
|
876
|
+
o = m instanceof $e ? m.errors : [m];
|
|
877
|
+
}
|
|
878
|
+
var f = this._finalizers;
|
|
879
|
+
if (f) {
|
|
880
|
+
this._finalizers = null;
|
|
881
|
+
try {
|
|
882
|
+
for (var c = Xe(f), d = c.next(); !d.done; d = c.next()) {
|
|
883
|
+
var p = d.value;
|
|
884
|
+
try {
|
|
885
|
+
pt(p);
|
|
886
|
+
} catch (m) {
|
|
887
|
+
o = o != null ? o : [], m instanceof $e ? o = q(q([], We(o)), We(m.errors)) : o.push(m);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
} catch (m) {
|
|
891
|
+
r = { error: m };
|
|
892
|
+
} finally {
|
|
893
|
+
try {
|
|
894
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
895
|
+
} finally {
|
|
896
|
+
if (r) throw r.error;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
if (o)
|
|
901
|
+
throw new $e(o);
|
|
902
|
+
}
|
|
903
|
+
}, e.prototype.add = function(t) {
|
|
904
|
+
var n;
|
|
905
|
+
if (t && t !== this)
|
|
906
|
+
if (this.closed)
|
|
907
|
+
pt(t);
|
|
908
|
+
else {
|
|
909
|
+
if (t instanceof e) {
|
|
910
|
+
if (t.closed || t._hasParent(this))
|
|
911
|
+
return;
|
|
912
|
+
t._addParent(this);
|
|
913
|
+
}
|
|
914
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
915
|
+
}
|
|
916
|
+
}, e.prototype._hasParent = function(t) {
|
|
917
|
+
var n = this._parentage;
|
|
918
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
919
|
+
}, e.prototype._addParent = function(t) {
|
|
920
|
+
var n = this._parentage;
|
|
921
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
922
|
+
}, e.prototype._removeParent = function(t) {
|
|
923
|
+
var n = this._parentage;
|
|
924
|
+
n === t ? this._parentage = null : Array.isArray(n) && ze(n, t);
|
|
925
|
+
}, e.prototype.remove = function(t) {
|
|
926
|
+
var n = this._finalizers;
|
|
927
|
+
n && ze(n, t), t instanceof e && t._removeParent(this);
|
|
928
|
+
}, e.EMPTY = function() {
|
|
929
|
+
var t = new e();
|
|
930
|
+
return t.closed = !0, t;
|
|
931
|
+
}(), e;
|
|
932
|
+
}(), qt = Ae.EMPTY;
|
|
933
|
+
function Qt(e) {
|
|
934
|
+
return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
935
|
+
}
|
|
936
|
+
function pt(e) {
|
|
937
|
+
$(e) ? e() : e.unsubscribe();
|
|
938
|
+
}
|
|
939
|
+
var lr = {
|
|
940
|
+
Promise: void 0
|
|
941
|
+
}, fr = {
|
|
942
|
+
setTimeout: function(e, t) {
|
|
943
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
944
|
+
n[r - 2] = arguments[r];
|
|
945
|
+
return setTimeout.apply(void 0, q([e, t], We(n)));
|
|
946
|
+
},
|
|
947
|
+
clearTimeout: function(e) {
|
|
948
|
+
return clearTimeout(e);
|
|
949
|
+
},
|
|
950
|
+
delegate: void 0
|
|
951
|
+
};
|
|
952
|
+
function cr(e) {
|
|
953
|
+
fr.setTimeout(function() {
|
|
954
|
+
throw e;
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
function mt() {
|
|
958
|
+
}
|
|
959
|
+
function ve(e) {
|
|
960
|
+
e();
|
|
961
|
+
}
|
|
962
|
+
var Jt = function(e) {
|
|
963
|
+
R(t, e);
|
|
964
|
+
function t(n) {
|
|
965
|
+
var r = e.call(this) || this;
|
|
966
|
+
return r.isStopped = !1, n ? (r.destination = n, Qt(n) && n.add(r)) : r.destination = mr, r;
|
|
967
|
+
}
|
|
968
|
+
return t.create = function(n, r, i) {
|
|
969
|
+
return new Ze(n, r, i);
|
|
970
|
+
}, t.prototype.next = function(n) {
|
|
971
|
+
this.isStopped || this._next(n);
|
|
972
|
+
}, t.prototype.error = function(n) {
|
|
973
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
974
|
+
}, t.prototype.complete = function() {
|
|
975
|
+
this.isStopped || (this.isStopped = !0, this._complete());
|
|
976
|
+
}, t.prototype.unsubscribe = function() {
|
|
977
|
+
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
978
|
+
}, t.prototype._next = function(n) {
|
|
979
|
+
this.destination.next(n);
|
|
980
|
+
}, t.prototype._error = function(n) {
|
|
981
|
+
try {
|
|
982
|
+
this.destination.error(n);
|
|
983
|
+
} finally {
|
|
984
|
+
this.unsubscribe();
|
|
985
|
+
}
|
|
986
|
+
}, t.prototype._complete = function() {
|
|
987
|
+
try {
|
|
988
|
+
this.destination.complete();
|
|
989
|
+
} finally {
|
|
990
|
+
this.unsubscribe();
|
|
991
|
+
}
|
|
992
|
+
}, t;
|
|
993
|
+
}(Ae), dr = function() {
|
|
994
|
+
function e(t) {
|
|
995
|
+
this.partialObserver = t;
|
|
996
|
+
}
|
|
997
|
+
return e.prototype.next = function(t) {
|
|
998
|
+
var n = this.partialObserver;
|
|
999
|
+
if (n.next)
|
|
1000
|
+
try {
|
|
1001
|
+
n.next(t);
|
|
1002
|
+
} catch (r) {
|
|
1003
|
+
be(r);
|
|
1004
|
+
}
|
|
1005
|
+
}, e.prototype.error = function(t) {
|
|
1006
|
+
var n = this.partialObserver;
|
|
1007
|
+
if (n.error)
|
|
1008
|
+
try {
|
|
1009
|
+
n.error(t);
|
|
1010
|
+
} catch (r) {
|
|
1011
|
+
be(r);
|
|
1012
|
+
}
|
|
1013
|
+
else
|
|
1014
|
+
be(t);
|
|
1015
|
+
}, e.prototype.complete = function() {
|
|
1016
|
+
var t = this.partialObserver;
|
|
1017
|
+
if (t.complete)
|
|
1018
|
+
try {
|
|
1019
|
+
t.complete();
|
|
1020
|
+
} catch (n) {
|
|
1021
|
+
be(n);
|
|
1022
|
+
}
|
|
1023
|
+
}, e;
|
|
1024
|
+
}(), Ze = function(e) {
|
|
1025
|
+
R(t, e);
|
|
1026
|
+
function t(n, r, i) {
|
|
1027
|
+
var o = e.call(this) || this, s;
|
|
1028
|
+
return $(n) || !n ? s = {
|
|
1029
|
+
next: n != null ? n : void 0,
|
|
1030
|
+
error: r != null ? r : void 0,
|
|
1031
|
+
complete: i != null ? i : void 0
|
|
1032
|
+
} : s = n, o.destination = new dr(s), o;
|
|
1033
|
+
}
|
|
1034
|
+
return t;
|
|
1035
|
+
}(Jt);
|
|
1036
|
+
function be(e) {
|
|
1037
|
+
cr(e);
|
|
1038
|
+
}
|
|
1039
|
+
function pr(e) {
|
|
1040
|
+
throw e;
|
|
1041
|
+
}
|
|
1042
|
+
var mr = {
|
|
1043
|
+
closed: !0,
|
|
1044
|
+
next: mt,
|
|
1045
|
+
error: pr,
|
|
1046
|
+
complete: mt
|
|
1047
|
+
}, br = function() {
|
|
1048
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1049
|
+
}();
|
|
1050
|
+
function gr(e) {
|
|
1051
|
+
return e;
|
|
1052
|
+
}
|
|
1053
|
+
function yr(e) {
|
|
1054
|
+
return e.length === 0 ? gr : e.length === 1 ? e[0] : function(n) {
|
|
1055
|
+
return e.reduce(function(r, i) {
|
|
1056
|
+
return i(r);
|
|
1057
|
+
}, n);
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
var bt = function() {
|
|
1061
|
+
function e(t) {
|
|
1062
|
+
t && (this._subscribe = t);
|
|
1063
|
+
}
|
|
1064
|
+
return e.prototype.lift = function(t) {
|
|
1065
|
+
var n = new e();
|
|
1066
|
+
return n.source = this, n.operator = t, n;
|
|
1067
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
1068
|
+
var i = this, o = vr(t) ? t : new Ze(t, n, r);
|
|
1069
|
+
return ve(function() {
|
|
1070
|
+
var s = i, a = s.operator, u = s.source;
|
|
1071
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
1072
|
+
}), o;
|
|
1073
|
+
}, e.prototype._trySubscribe = function(t) {
|
|
1074
|
+
try {
|
|
1075
|
+
return this._subscribe(t);
|
|
1076
|
+
} catch (n) {
|
|
1077
|
+
t.error(n);
|
|
1078
|
+
}
|
|
1079
|
+
}, e.prototype.forEach = function(t, n) {
|
|
1080
|
+
var r = this;
|
|
1081
|
+
return n = gt(n), new n(function(i, o) {
|
|
1082
|
+
var s = new Ze({
|
|
1083
|
+
next: function(a) {
|
|
1084
|
+
try {
|
|
1085
|
+
t(a);
|
|
1086
|
+
} catch (u) {
|
|
1087
|
+
o(u), s.unsubscribe();
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
error: o,
|
|
1091
|
+
complete: i
|
|
1092
|
+
});
|
|
1093
|
+
r.subscribe(s);
|
|
1094
|
+
});
|
|
1095
|
+
}, e.prototype._subscribe = function(t) {
|
|
1096
|
+
var n;
|
|
1097
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
1098
|
+
}, e.prototype[br] = function() {
|
|
1099
|
+
return this;
|
|
1100
|
+
}, e.prototype.pipe = function() {
|
|
1101
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1102
|
+
t[n] = arguments[n];
|
|
1103
|
+
return yr(t)(this);
|
|
1104
|
+
}, e.prototype.toPromise = function(t) {
|
|
1105
|
+
var n = this;
|
|
1106
|
+
return t = gt(t), new t(function(r, i) {
|
|
1107
|
+
var o;
|
|
1108
|
+
n.subscribe(function(s) {
|
|
1109
|
+
return o = s;
|
|
1110
|
+
}, function(s) {
|
|
1111
|
+
return i(s);
|
|
1112
|
+
}, function() {
|
|
1113
|
+
return r(o);
|
|
1114
|
+
});
|
|
1115
|
+
});
|
|
1116
|
+
}, e.create = function(t) {
|
|
1117
|
+
return new e(t);
|
|
1118
|
+
}, e;
|
|
1119
|
+
}();
|
|
1120
|
+
function gt(e) {
|
|
1121
|
+
var t;
|
|
1122
|
+
return (t = e != null ? e : lr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1123
|
+
}
|
|
1124
|
+
function _r(e) {
|
|
1125
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
1126
|
+
}
|
|
1127
|
+
function vr(e) {
|
|
1128
|
+
return e && e instanceof Jt || _r(e) && Qt(e);
|
|
1129
|
+
}
|
|
1130
|
+
var xr = Zt(function(e) {
|
|
1131
|
+
return function() {
|
|
1132
|
+
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1133
|
+
};
|
|
1134
|
+
}), Yt = function(e) {
|
|
1135
|
+
R(t, e);
|
|
1136
|
+
function t() {
|
|
1137
|
+
var n = e.call(this) || this;
|
|
1138
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1139
|
+
}
|
|
1140
|
+
return t.prototype.lift = function(n) {
|
|
1141
|
+
var r = new yt(this, this);
|
|
1142
|
+
return r.operator = n, r;
|
|
1143
|
+
}, t.prototype._throwIfClosed = function() {
|
|
1144
|
+
if (this.closed)
|
|
1145
|
+
throw new xr();
|
|
1146
|
+
}, t.prototype.next = function(n) {
|
|
1147
|
+
var r = this;
|
|
1148
|
+
ve(function() {
|
|
1149
|
+
var i, o;
|
|
1150
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1151
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1152
|
+
try {
|
|
1153
|
+
for (var s = Xe(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1154
|
+
var u = a.value;
|
|
1155
|
+
u.next(n);
|
|
1156
|
+
}
|
|
1157
|
+
} catch (h) {
|
|
1158
|
+
i = { error: h };
|
|
1159
|
+
} finally {
|
|
1160
|
+
try {
|
|
1161
|
+
a && !a.done && (o = s.return) && o.call(s);
|
|
1162
|
+
} finally {
|
|
1163
|
+
if (i) throw i.error;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
}, t.prototype.error = function(n) {
|
|
1169
|
+
var r = this;
|
|
1170
|
+
ve(function() {
|
|
1171
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1172
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1173
|
+
for (var i = r.observers; i.length; )
|
|
1174
|
+
i.shift().error(n);
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
}, t.prototype.complete = function() {
|
|
1178
|
+
var n = this;
|
|
1179
|
+
ve(function() {
|
|
1180
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1181
|
+
n.isStopped = !0;
|
|
1182
|
+
for (var r = n.observers; r.length; )
|
|
1183
|
+
r.shift().complete();
|
|
1184
|
+
}
|
|
1185
|
+
});
|
|
1186
|
+
}, t.prototype.unsubscribe = function() {
|
|
1187
|
+
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1188
|
+
}, Object.defineProperty(t.prototype, "observed", {
|
|
1189
|
+
get: function() {
|
|
1190
|
+
var n;
|
|
1191
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1192
|
+
},
|
|
1193
|
+
enumerable: !1,
|
|
1194
|
+
configurable: !0
|
|
1195
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1196
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1197
|
+
}, t.prototype._subscribe = function(n) {
|
|
1198
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1199
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1200
|
+
var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1201
|
+
return o || s ? qt : (this.currentObservers = null, a.push(n), new Ae(function() {
|
|
1202
|
+
r.currentObservers = null, ze(a, n);
|
|
1203
|
+
}));
|
|
1204
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1205
|
+
var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
1206
|
+
i ? n.error(o) : s && n.complete();
|
|
1207
|
+
}, t.prototype.asObservable = function() {
|
|
1208
|
+
var n = new bt();
|
|
1209
|
+
return n.source = this, n;
|
|
1210
|
+
}, t.create = function(n, r) {
|
|
1211
|
+
return new yt(n, r);
|
|
1212
|
+
}, t;
|
|
1213
|
+
}(bt), yt = function(e) {
|
|
1214
|
+
R(t, e);
|
|
1215
|
+
function t(n, r) {
|
|
1216
|
+
var i = e.call(this) || this;
|
|
1217
|
+
return i.destination = n, i.source = r, i;
|
|
1218
|
+
}
|
|
1219
|
+
return t.prototype.next = function(n) {
|
|
1220
|
+
var r, i;
|
|
1221
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1222
|
+
}, t.prototype.error = function(n) {
|
|
1223
|
+
var r, i;
|
|
1224
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1225
|
+
}, t.prototype.complete = function() {
|
|
1226
|
+
var n, r;
|
|
1227
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1228
|
+
}, t.prototype._subscribe = function(n) {
|
|
1229
|
+
var r, i;
|
|
1230
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : qt;
|
|
1231
|
+
}, t;
|
|
1232
|
+
}(Yt), Kt = {
|
|
1233
|
+
now: function() {
|
|
1234
|
+
return (Kt.delegate || Date).now();
|
|
1235
|
+
},
|
|
1236
|
+
delegate: void 0
|
|
1237
|
+
}, Er = function(e) {
|
|
1238
|
+
R(t, e);
|
|
1239
|
+
function t(n, r, i) {
|
|
1240
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Kt);
|
|
1241
|
+
var o = e.call(this) || this;
|
|
1242
|
+
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;
|
|
1243
|
+
}
|
|
1244
|
+
return t.prototype.next = function(n) {
|
|
1245
|
+
var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, u = r._windowTime;
|
|
1246
|
+
i || (o.push(n), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1247
|
+
}, t.prototype._subscribe = function(n) {
|
|
1248
|
+
this._throwIfClosed(), this._trimBuffer();
|
|
1249
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !n.closed; u += o ? 1 : 2)
|
|
1250
|
+
n.next(a[u]);
|
|
1251
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1252
|
+
}, t.prototype._trimBuffer = function() {
|
|
1253
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
1254
|
+
if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1255
|
+
for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
|
|
1256
|
+
h = l;
|
|
1257
|
+
h && o.splice(0, h + 1);
|
|
1258
|
+
}
|
|
1259
|
+
}, t;
|
|
1260
|
+
}(Yt);
|
|
1261
|
+
const _t = [], vt = {}, Sr = (e, t = 0) => {
|
|
1262
|
+
if (_t.indexOf(e) == -1) {
|
|
1263
|
+
const n = new Er(t);
|
|
1264
|
+
vt[e] = n, _t.push(e);
|
|
1265
|
+
}
|
|
1266
|
+
return vt[e];
|
|
1267
|
+
}, X = [];
|
|
1268
|
+
function Tr(e, t) {
|
|
1269
|
+
return {
|
|
1270
|
+
subscribe: Pe(e, t).subscribe
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
function Pe(e, t = B) {
|
|
1274
|
+
let n;
|
|
1275
|
+
const r = /* @__PURE__ */ new Set();
|
|
1276
|
+
function i(a) {
|
|
1277
|
+
if (Rt(e, a) && (e = a, n)) {
|
|
1278
|
+
const u = !X.length;
|
|
1279
|
+
for (const h of r)
|
|
1280
|
+
h[1](), X.push(h, e);
|
|
1281
|
+
if (u) {
|
|
1282
|
+
for (let h = 0; h < X.length; h += 2)
|
|
1283
|
+
X[h][0](X[h + 1]);
|
|
1284
|
+
X.length = 0;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
function o(a) {
|
|
1289
|
+
i(a(e));
|
|
1290
|
+
}
|
|
1291
|
+
function s(a, u = B) {
|
|
1292
|
+
const h = [a, u];
|
|
1293
|
+
return r.add(h), r.size === 1 && (n = t(i, o) || B), a(e), () => {
|
|
1294
|
+
r.delete(h), r.size === 0 && n && (n(), n = null);
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
return { set: i, update: o, subscribe: s };
|
|
1298
|
+
}
|
|
1299
|
+
function ee(e, t, n) {
|
|
1300
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1301
|
+
if (!i.every(Boolean))
|
|
1302
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1303
|
+
const o = t.length < 2;
|
|
1304
|
+
return Tr(n, (s, a) => {
|
|
1305
|
+
let u = !1;
|
|
1306
|
+
const h = [];
|
|
1307
|
+
let l = 0, f = B;
|
|
1308
|
+
const c = () => {
|
|
1309
|
+
if (l)
|
|
1310
|
+
return;
|
|
1311
|
+
f();
|
|
1312
|
+
const p = t(r ? h[0] : h, s, a);
|
|
1313
|
+
o ? s(p) : f = le(p) ? p : B;
|
|
1314
|
+
}, d = i.map(
|
|
1315
|
+
(p, m) => Ut(
|
|
1316
|
+
p,
|
|
1317
|
+
(x) => {
|
|
1318
|
+
h[m] = x, l &= ~(1 << m), u && c();
|
|
1319
|
+
},
|
|
1320
|
+
() => {
|
|
1321
|
+
l |= 1 << m;
|
|
1322
|
+
}
|
|
1323
|
+
)
|
|
1324
|
+
);
|
|
1325
|
+
return u = !0, c(), function() {
|
|
1326
|
+
F(d), f(), u = !1;
|
|
1327
|
+
};
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
var Wo = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1331
|
+
function wr(e) {
|
|
1332
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1333
|
+
}
|
|
1334
|
+
var Hr = function(t) {
|
|
1335
|
+
return Br(t) && !Ar(t);
|
|
1336
|
+
};
|
|
1337
|
+
function Br(e) {
|
|
1338
|
+
return !!e && typeof e == "object";
|
|
1339
|
+
}
|
|
1340
|
+
function Ar(e) {
|
|
1341
|
+
var t = Object.prototype.toString.call(e);
|
|
1342
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
|
|
1343
|
+
}
|
|
1344
|
+
var Pr = typeof Symbol == "function" && Symbol.for, Or = Pr ? Symbol.for("react.element") : 60103;
|
|
1345
|
+
function Ir(e) {
|
|
1346
|
+
return e.$$typeof === Or;
|
|
1347
|
+
}
|
|
1348
|
+
function Lr(e) {
|
|
1349
|
+
return Array.isArray(e) ? [] : {};
|
|
1350
|
+
}
|
|
1351
|
+
function ue(e, t) {
|
|
1352
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Lr(e), e, t) : e;
|
|
1353
|
+
}
|
|
1354
|
+
function Nr(e, t, n) {
|
|
1355
|
+
return e.concat(t).map(function(r) {
|
|
1356
|
+
return ue(r, n);
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
function Cr(e, t) {
|
|
1360
|
+
if (!t.customMerge)
|
|
1361
|
+
return Q;
|
|
1362
|
+
var n = t.customMerge(e);
|
|
1363
|
+
return typeof n == "function" ? n : Q;
|
|
1364
|
+
}
|
|
1365
|
+
function Mr(e) {
|
|
1366
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1367
|
+
return Object.propertyIsEnumerable.call(e, t);
|
|
1368
|
+
}) : [];
|
|
1369
|
+
}
|
|
1370
|
+
function xt(e) {
|
|
1371
|
+
return Object.keys(e).concat(Mr(e));
|
|
1372
|
+
}
|
|
1373
|
+
function en(e, t) {
|
|
1374
|
+
try {
|
|
1375
|
+
return t in e;
|
|
1376
|
+
} catch (n) {
|
|
1377
|
+
return !1;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
function $r(e, t) {
|
|
1381
|
+
return en(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1382
|
+
}
|
|
1383
|
+
function Rr(e, t, n) {
|
|
1384
|
+
var r = {};
|
|
1385
|
+
return n.isMergeableObject(e) && xt(e).forEach(function(i) {
|
|
1386
|
+
r[i] = ue(e[i], n);
|
|
1387
|
+
}), xt(t).forEach(function(i) {
|
|
1388
|
+
$r(e, i) || (en(e, i) && n.isMergeableObject(t[i]) ? r[i] = Cr(i, n)(e[i], t[i], n) : r[i] = ue(t[i], n));
|
|
1389
|
+
}), r;
|
|
1390
|
+
}
|
|
1391
|
+
function Q(e, t, n) {
|
|
1392
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Nr, n.isMergeableObject = n.isMergeableObject || Hr, n.cloneUnlessOtherwiseSpecified = ue;
|
|
1393
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
1394
|
+
return o ? r ? n.arrayMerge(e, t, n) : Rr(e, t, n) : ue(t, n);
|
|
1395
|
+
}
|
|
1396
|
+
Q.all = function(t, n) {
|
|
1397
|
+
if (!Array.isArray(t))
|
|
1398
|
+
throw new Error("first argument should be an array");
|
|
1399
|
+
return t.reduce(function(r, i) {
|
|
1400
|
+
return Q(r, i, n);
|
|
1401
|
+
}, {});
|
|
1402
|
+
};
|
|
1403
|
+
var Ur = Q, Gr = Ur;
|
|
1404
|
+
const Dr = /* @__PURE__ */ wr(Gr);
|
|
1405
|
+
function Re(e, t) {
|
|
1406
|
+
var n = t && t.cache ? t.cache : zr, r = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : kr;
|
|
1407
|
+
return i(e, {
|
|
1408
|
+
cache: n,
|
|
1409
|
+
serializer: r
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
function Fr(e) {
|
|
1413
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1414
|
+
}
|
|
1415
|
+
function jr(e, t, n, r) {
|
|
1416
|
+
var i = Fr(r) ? r : n(r), o = t.get(i);
|
|
1417
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
1418
|
+
}
|
|
1419
|
+
function tn(e, t, n) {
|
|
1420
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1421
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1422
|
+
}
|
|
1423
|
+
function nn(e, t, n, r, i) {
|
|
1424
|
+
return n.bind(t, e, r, i);
|
|
1425
|
+
}
|
|
1426
|
+
function kr(e, t) {
|
|
1427
|
+
var n = e.length === 1 ? jr : tn;
|
|
1428
|
+
return nn(e, this, n, t.cache.create(), t.serializer);
|
|
1429
|
+
}
|
|
1430
|
+
function Vr(e, t) {
|
|
1431
|
+
return nn(e, this, tn, t.cache.create(), t.serializer);
|
|
1432
|
+
}
|
|
1433
|
+
var Xr = function() {
|
|
1434
|
+
return JSON.stringify(arguments);
|
|
1435
|
+
}, Wr = (
|
|
1436
|
+
/** @class */
|
|
1437
|
+
function() {
|
|
1438
|
+
function e() {
|
|
1439
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1440
|
+
}
|
|
1441
|
+
return e.prototype.get = function(t) {
|
|
1442
|
+
return this.cache[t];
|
|
1443
|
+
}, e.prototype.set = function(t, n) {
|
|
1444
|
+
this.cache[t] = n;
|
|
1445
|
+
}, e;
|
|
1446
|
+
}()
|
|
1447
|
+
), zr = {
|
|
1448
|
+
create: function() {
|
|
1449
|
+
return new Wr();
|
|
1450
|
+
}
|
|
1451
|
+
}, Ue = {
|
|
1452
|
+
variadic: Vr
|
|
1453
|
+
}, b;
|
|
1454
|
+
(function(e) {
|
|
1455
|
+
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1456
|
+
})(b || (b = {}));
|
|
1457
|
+
var v;
|
|
1458
|
+
(function(e) {
|
|
1459
|
+
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1460
|
+
})(v || (v = {}));
|
|
1461
|
+
var J;
|
|
1462
|
+
(function(e) {
|
|
1463
|
+
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1464
|
+
})(J || (J = {}));
|
|
1465
|
+
function Et(e) {
|
|
1466
|
+
return e.type === v.literal;
|
|
1467
|
+
}
|
|
1468
|
+
function Zr(e) {
|
|
1469
|
+
return e.type === v.argument;
|
|
1470
|
+
}
|
|
1471
|
+
function rn(e) {
|
|
1472
|
+
return e.type === v.number;
|
|
1473
|
+
}
|
|
1474
|
+
function on(e) {
|
|
1475
|
+
return e.type === v.date;
|
|
1476
|
+
}
|
|
1477
|
+
function sn(e) {
|
|
1478
|
+
return e.type === v.time;
|
|
1479
|
+
}
|
|
1480
|
+
function an(e) {
|
|
1481
|
+
return e.type === v.select;
|
|
1482
|
+
}
|
|
1483
|
+
function un(e) {
|
|
1484
|
+
return e.type === v.plural;
|
|
1485
|
+
}
|
|
1486
|
+
function qr(e) {
|
|
1487
|
+
return e.type === v.pound;
|
|
1488
|
+
}
|
|
1489
|
+
function hn(e) {
|
|
1490
|
+
return e.type === v.tag;
|
|
1491
|
+
}
|
|
1492
|
+
function ln(e) {
|
|
1493
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
1494
|
+
}
|
|
1495
|
+
function qe(e) {
|
|
1496
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
1497
|
+
}
|
|
1498
|
+
var fn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
|
|
1499
|
+
function Jr(e) {
|
|
1500
|
+
var t = {};
|
|
1501
|
+
return e.replace(Qr, function(n) {
|
|
1502
|
+
var r = n.length;
|
|
1503
|
+
switch (n[0]) {
|
|
1504
|
+
case "G":
|
|
1505
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1506
|
+
break;
|
|
1507
|
+
case "y":
|
|
1508
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1509
|
+
break;
|
|
1510
|
+
case "Y":
|
|
1511
|
+
case "u":
|
|
1512
|
+
case "U":
|
|
1513
|
+
case "r":
|
|
1514
|
+
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
1515
|
+
case "q":
|
|
1516
|
+
case "Q":
|
|
1517
|
+
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1518
|
+
case "M":
|
|
1519
|
+
case "L":
|
|
1520
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1521
|
+
break;
|
|
1522
|
+
case "w":
|
|
1523
|
+
case "W":
|
|
1524
|
+
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1525
|
+
case "d":
|
|
1526
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1527
|
+
break;
|
|
1528
|
+
case "D":
|
|
1529
|
+
case "F":
|
|
1530
|
+
case "g":
|
|
1531
|
+
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1532
|
+
case "E":
|
|
1533
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1534
|
+
break;
|
|
1535
|
+
case "e":
|
|
1536
|
+
if (r < 4)
|
|
1537
|
+
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1538
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1539
|
+
break;
|
|
1540
|
+
case "c":
|
|
1541
|
+
if (r < 4)
|
|
1542
|
+
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1543
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1544
|
+
break;
|
|
1545
|
+
case "a":
|
|
1546
|
+
t.hour12 = !0;
|
|
1547
|
+
break;
|
|
1548
|
+
case "b":
|
|
1549
|
+
case "B":
|
|
1550
|
+
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1551
|
+
case "h":
|
|
1552
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1553
|
+
break;
|
|
1554
|
+
case "H":
|
|
1555
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1556
|
+
break;
|
|
1557
|
+
case "K":
|
|
1558
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1559
|
+
break;
|
|
1560
|
+
case "k":
|
|
1561
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1562
|
+
break;
|
|
1563
|
+
case "j":
|
|
1564
|
+
case "J":
|
|
1565
|
+
case "C":
|
|
1566
|
+
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1567
|
+
case "m":
|
|
1568
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1569
|
+
break;
|
|
1570
|
+
case "s":
|
|
1571
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1572
|
+
break;
|
|
1573
|
+
case "S":
|
|
1574
|
+
case "A":
|
|
1575
|
+
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1576
|
+
case "z":
|
|
1577
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1578
|
+
break;
|
|
1579
|
+
case "Z":
|
|
1580
|
+
case "O":
|
|
1581
|
+
case "v":
|
|
1582
|
+
case "V":
|
|
1583
|
+
case "X":
|
|
1584
|
+
case "x":
|
|
1585
|
+
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
1586
|
+
}
|
|
1587
|
+
return "";
|
|
1588
|
+
}), t;
|
|
1589
|
+
}
|
|
1590
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1591
|
+
function Kr(e) {
|
|
1592
|
+
if (e.length === 0)
|
|
1593
|
+
throw new Error("Number skeleton cannot be empty");
|
|
1594
|
+
for (var t = e.split(Yr).filter(function(c) {
|
|
1595
|
+
return c.length > 0;
|
|
1596
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1597
|
+
var o = i[r], s = o.split("/");
|
|
1598
|
+
if (s.length === 0)
|
|
1599
|
+
throw new Error("Invalid number skeleton");
|
|
1600
|
+
for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
|
|
1601
|
+
var f = l[h];
|
|
1602
|
+
if (f.length === 0)
|
|
1603
|
+
throw new Error("Invalid number skeleton");
|
|
1604
|
+
}
|
|
1605
|
+
n.push({ stem: a, options: u });
|
|
1606
|
+
}
|
|
1607
|
+
return n;
|
|
1608
|
+
}
|
|
1609
|
+
function ei(e) {
|
|
1610
|
+
return e.replace(/^(.*?)-/, "");
|
|
1611
|
+
}
|
|
1612
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cn = /^(@+)?(\+|#+)?[rs]?$/g, ti = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
|
|
1613
|
+
function Tt(e) {
|
|
1614
|
+
var t = {};
|
|
1615
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cn, function(n, r, i) {
|
|
1616
|
+
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)), "";
|
|
1617
|
+
}), t;
|
|
1618
|
+
}
|
|
1619
|
+
function pn(e) {
|
|
1620
|
+
switch (e) {
|
|
1621
|
+
case "sign-auto":
|
|
1622
|
+
return {
|
|
1623
|
+
signDisplay: "auto"
|
|
1624
|
+
};
|
|
1625
|
+
case "sign-accounting":
|
|
1626
|
+
case "()":
|
|
1627
|
+
return {
|
|
1628
|
+
currencySign: "accounting"
|
|
1629
|
+
};
|
|
1630
|
+
case "sign-always":
|
|
1631
|
+
case "+!":
|
|
1632
|
+
return {
|
|
1633
|
+
signDisplay: "always"
|
|
1634
|
+
};
|
|
1635
|
+
case "sign-accounting-always":
|
|
1636
|
+
case "()!":
|
|
1637
|
+
return {
|
|
1638
|
+
signDisplay: "always",
|
|
1639
|
+
currencySign: "accounting"
|
|
1640
|
+
};
|
|
1641
|
+
case "sign-except-zero":
|
|
1642
|
+
case "+?":
|
|
1643
|
+
return {
|
|
1644
|
+
signDisplay: "exceptZero"
|
|
1645
|
+
};
|
|
1646
|
+
case "sign-accounting-except-zero":
|
|
1647
|
+
case "()?":
|
|
1648
|
+
return {
|
|
1649
|
+
signDisplay: "exceptZero",
|
|
1650
|
+
currencySign: "accounting"
|
|
1651
|
+
};
|
|
1652
|
+
case "sign-never":
|
|
1653
|
+
case "+_":
|
|
1654
|
+
return {
|
|
1655
|
+
signDisplay: "never"
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
function ni(e) {
|
|
1660
|
+
var t;
|
|
1661
|
+
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1662
|
+
notation: "engineering"
|
|
1663
|
+
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1664
|
+
notation: "scientific"
|
|
1665
|
+
}, e = e.slice(1)), t) {
|
|
1666
|
+
var n = e.slice(0, 2);
|
|
1667
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
|
|
1668
|
+
throw new Error("Malformed concise eng/scientific notation");
|
|
1669
|
+
t.minimumIntegerDigits = e.length;
|
|
1670
|
+
}
|
|
1671
|
+
return t;
|
|
1672
|
+
}
|
|
1673
|
+
function wt(e) {
|
|
1674
|
+
var t = {}, n = pn(e);
|
|
1675
|
+
return n || t;
|
|
1676
|
+
}
|
|
1677
|
+
function ri(e) {
|
|
1678
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1679
|
+
var i = r[n];
|
|
1680
|
+
switch (i.stem) {
|
|
1681
|
+
case "percent":
|
|
1682
|
+
case "%":
|
|
1683
|
+
t.style = "percent";
|
|
1684
|
+
continue;
|
|
1685
|
+
case "%x100":
|
|
1686
|
+
t.style = "percent", t.scale = 100;
|
|
1687
|
+
continue;
|
|
1688
|
+
case "currency":
|
|
1689
|
+
t.style = "currency", t.currency = i.options[0];
|
|
1690
|
+
continue;
|
|
1691
|
+
case "group-off":
|
|
1692
|
+
case ",_":
|
|
1693
|
+
t.useGrouping = !1;
|
|
1694
|
+
continue;
|
|
1695
|
+
case "precision-integer":
|
|
1696
|
+
case ".":
|
|
1697
|
+
t.maximumFractionDigits = 0;
|
|
1698
|
+
continue;
|
|
1699
|
+
case "measure-unit":
|
|
1700
|
+
case "unit":
|
|
1701
|
+
t.style = "unit", t.unit = ei(i.options[0]);
|
|
1702
|
+
continue;
|
|
1703
|
+
case "compact-short":
|
|
1704
|
+
case "K":
|
|
1705
|
+
t.notation = "compact", t.compactDisplay = "short";
|
|
1706
|
+
continue;
|
|
1707
|
+
case "compact-long":
|
|
1708
|
+
case "KK":
|
|
1709
|
+
t.notation = "compact", t.compactDisplay = "long";
|
|
1710
|
+
continue;
|
|
1711
|
+
case "scientific":
|
|
1712
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1713
|
+
return _(_({}, u), wt(h));
|
|
1714
|
+
}, {}));
|
|
1715
|
+
continue;
|
|
1716
|
+
case "engineering":
|
|
1717
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1718
|
+
return _(_({}, u), wt(h));
|
|
1719
|
+
}, {}));
|
|
1720
|
+
continue;
|
|
1721
|
+
case "notation-simple":
|
|
1722
|
+
t.notation = "standard";
|
|
1723
|
+
continue;
|
|
1724
|
+
case "unit-width-narrow":
|
|
1725
|
+
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
1726
|
+
continue;
|
|
1727
|
+
case "unit-width-short":
|
|
1728
|
+
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
1729
|
+
continue;
|
|
1730
|
+
case "unit-width-full-name":
|
|
1731
|
+
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
1732
|
+
continue;
|
|
1733
|
+
case "unit-width-iso-code":
|
|
1734
|
+
t.currencyDisplay = "symbol";
|
|
1735
|
+
continue;
|
|
1736
|
+
case "scale":
|
|
1737
|
+
t.scale = parseFloat(i.options[0]);
|
|
1738
|
+
continue;
|
|
1739
|
+
case "rounding-mode-floor":
|
|
1740
|
+
t.roundingMode = "floor";
|
|
1741
|
+
continue;
|
|
1742
|
+
case "rounding-mode-ceiling":
|
|
1743
|
+
t.roundingMode = "ceil";
|
|
1744
|
+
continue;
|
|
1745
|
+
case "rounding-mode-down":
|
|
1746
|
+
t.roundingMode = "trunc";
|
|
1747
|
+
continue;
|
|
1748
|
+
case "rounding-mode-up":
|
|
1749
|
+
t.roundingMode = "expand";
|
|
1750
|
+
continue;
|
|
1751
|
+
case "rounding-mode-half-even":
|
|
1752
|
+
t.roundingMode = "halfEven";
|
|
1753
|
+
continue;
|
|
1754
|
+
case "rounding-mode-half-down":
|
|
1755
|
+
t.roundingMode = "halfTrunc";
|
|
1756
|
+
continue;
|
|
1757
|
+
case "rounding-mode-half-up":
|
|
1758
|
+
t.roundingMode = "halfExpand";
|
|
1759
|
+
continue;
|
|
1760
|
+
case "integer-width":
|
|
1761
|
+
if (i.options.length > 1)
|
|
1762
|
+
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1763
|
+
i.options[0].replace(ti, function(u, h, l, f, c, d) {
|
|
1764
|
+
if (h)
|
|
1765
|
+
t.minimumIntegerDigits = l.length;
|
|
1766
|
+
else {
|
|
1767
|
+
if (f && c)
|
|
1768
|
+
throw new Error("We currently do not support maximum integer digits");
|
|
1769
|
+
if (d)
|
|
1770
|
+
throw new Error("We currently do not support exact integer digits");
|
|
1771
|
+
}
|
|
1772
|
+
return "";
|
|
1773
|
+
});
|
|
1774
|
+
continue;
|
|
1775
|
+
}
|
|
1776
|
+
if (dn.test(i.stem)) {
|
|
1777
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1778
|
+
continue;
|
|
1779
|
+
}
|
|
1780
|
+
if (St.test(i.stem)) {
|
|
1781
|
+
if (i.options.length > 1)
|
|
1782
|
+
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1783
|
+
i.stem.replace(St, function(u, h, l, f, c, d) {
|
|
1784
|
+
return l === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1785
|
+
});
|
|
1786
|
+
var o = i.options[0];
|
|
1787
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Tt(o)));
|
|
1788
|
+
continue;
|
|
1789
|
+
}
|
|
1790
|
+
if (cn.test(i.stem)) {
|
|
1791
|
+
t = _(_({}, t), Tt(i.stem));
|
|
1792
|
+
continue;
|
|
1793
|
+
}
|
|
1794
|
+
var s = pn(i.stem);
|
|
1795
|
+
s && (t = _(_({}, t), s));
|
|
1796
|
+
var a = ni(i.stem);
|
|
1797
|
+
a && (t = _(_({}, t), a));
|
|
1798
|
+
}
|
|
1799
|
+
return t;
|
|
1800
|
+
}
|
|
1801
|
+
var ge = {
|
|
1802
|
+
"001": [
|
|
1803
|
+
"H",
|
|
1804
|
+
"h"
|
|
1805
|
+
],
|
|
1806
|
+
419: [
|
|
1807
|
+
"h",
|
|
1808
|
+
"H",
|
|
1809
|
+
"hB",
|
|
1810
|
+
"hb"
|
|
1811
|
+
],
|
|
1812
|
+
AC: [
|
|
1813
|
+
"H",
|
|
1814
|
+
"h",
|
|
1815
|
+
"hb",
|
|
1816
|
+
"hB"
|
|
1817
|
+
],
|
|
1818
|
+
AD: [
|
|
1819
|
+
"H",
|
|
1820
|
+
"hB"
|
|
1821
|
+
],
|
|
1822
|
+
AE: [
|
|
1823
|
+
"h",
|
|
1824
|
+
"hB",
|
|
1825
|
+
"hb",
|
|
1826
|
+
"H"
|
|
1827
|
+
],
|
|
1828
|
+
AF: [
|
|
1829
|
+
"H",
|
|
1830
|
+
"hb",
|
|
1831
|
+
"hB",
|
|
1832
|
+
"h"
|
|
1833
|
+
],
|
|
1834
|
+
AG: [
|
|
1835
|
+
"h",
|
|
1836
|
+
"hb",
|
|
1837
|
+
"H",
|
|
1838
|
+
"hB"
|
|
1839
|
+
],
|
|
1840
|
+
AI: [
|
|
1841
|
+
"H",
|
|
1842
|
+
"h",
|
|
1843
|
+
"hb",
|
|
1844
|
+
"hB"
|
|
1845
|
+
],
|
|
1846
|
+
AL: [
|
|
1847
|
+
"h",
|
|
1848
|
+
"H",
|
|
1849
|
+
"hB"
|
|
1850
|
+
],
|
|
1851
|
+
AM: [
|
|
1852
|
+
"H",
|
|
1853
|
+
"hB"
|
|
1854
|
+
],
|
|
1855
|
+
AO: [
|
|
1856
|
+
"H",
|
|
1857
|
+
"hB"
|
|
1858
|
+
],
|
|
1859
|
+
AR: [
|
|
1860
|
+
"h",
|
|
1861
|
+
"H",
|
|
1862
|
+
"hB",
|
|
1863
|
+
"hb"
|
|
1864
|
+
],
|
|
1865
|
+
AS: [
|
|
1866
|
+
"h",
|
|
1867
|
+
"H"
|
|
1868
|
+
],
|
|
1869
|
+
AT: [
|
|
1870
|
+
"H",
|
|
1871
|
+
"hB"
|
|
1872
|
+
],
|
|
1873
|
+
AU: [
|
|
1874
|
+
"h",
|
|
1875
|
+
"hb",
|
|
1876
|
+
"H",
|
|
1877
|
+
"hB"
|
|
1878
|
+
],
|
|
1879
|
+
AW: [
|
|
1880
|
+
"H",
|
|
1881
|
+
"hB"
|
|
1882
|
+
],
|
|
1883
|
+
AX: [
|
|
1884
|
+
"H"
|
|
1885
|
+
],
|
|
1886
|
+
AZ: [
|
|
1887
|
+
"H",
|
|
1888
|
+
"hB",
|
|
1889
|
+
"h"
|
|
1890
|
+
],
|
|
1891
|
+
BA: [
|
|
1892
|
+
"H",
|
|
1893
|
+
"hB",
|
|
1894
|
+
"h"
|
|
1895
|
+
],
|
|
1896
|
+
BB: [
|
|
1897
|
+
"h",
|
|
1898
|
+
"hb",
|
|
1899
|
+
"H",
|
|
1900
|
+
"hB"
|
|
1901
|
+
],
|
|
1902
|
+
BD: [
|
|
1903
|
+
"h",
|
|
1904
|
+
"hB",
|
|
1905
|
+
"H"
|
|
1906
|
+
],
|
|
1907
|
+
BE: [
|
|
1908
|
+
"H",
|
|
1909
|
+
"hB"
|
|
1910
|
+
],
|
|
1911
|
+
BF: [
|
|
1912
|
+
"H",
|
|
1913
|
+
"hB"
|
|
1914
|
+
],
|
|
1915
|
+
BG: [
|
|
1916
|
+
"H",
|
|
1917
|
+
"hB",
|
|
1918
|
+
"h"
|
|
1919
|
+
],
|
|
1920
|
+
BH: [
|
|
1921
|
+
"h",
|
|
1922
|
+
"hB",
|
|
1923
|
+
"hb",
|
|
1924
|
+
"H"
|
|
1925
|
+
],
|
|
1926
|
+
BI: [
|
|
1927
|
+
"H",
|
|
1928
|
+
"h"
|
|
1929
|
+
],
|
|
1930
|
+
BJ: [
|
|
1931
|
+
"H",
|
|
1932
|
+
"hB"
|
|
1933
|
+
],
|
|
1934
|
+
BL: [
|
|
1935
|
+
"H",
|
|
1936
|
+
"hB"
|
|
1937
|
+
],
|
|
1938
|
+
BM: [
|
|
1939
|
+
"h",
|
|
1940
|
+
"hb",
|
|
1941
|
+
"H",
|
|
1942
|
+
"hB"
|
|
1943
|
+
],
|
|
1944
|
+
BN: [
|
|
1945
|
+
"hb",
|
|
1946
|
+
"hB",
|
|
1947
|
+
"h",
|
|
1948
|
+
"H"
|
|
1949
|
+
],
|
|
1950
|
+
BO: [
|
|
1951
|
+
"h",
|
|
1952
|
+
"H",
|
|
1953
|
+
"hB",
|
|
1954
|
+
"hb"
|
|
1955
|
+
],
|
|
1956
|
+
BQ: [
|
|
1957
|
+
"H"
|
|
1958
|
+
],
|
|
1959
|
+
BR: [
|
|
1960
|
+
"H",
|
|
1961
|
+
"hB"
|
|
1962
|
+
],
|
|
1963
|
+
BS: [
|
|
1964
|
+
"h",
|
|
1965
|
+
"hb",
|
|
1966
|
+
"H",
|
|
1967
|
+
"hB"
|
|
1968
|
+
],
|
|
1969
|
+
BT: [
|
|
1970
|
+
"h",
|
|
1971
|
+
"H"
|
|
1972
|
+
],
|
|
1973
|
+
BW: [
|
|
1974
|
+
"H",
|
|
1975
|
+
"h",
|
|
1976
|
+
"hb",
|
|
1977
|
+
"hB"
|
|
1978
|
+
],
|
|
1979
|
+
BY: [
|
|
1980
|
+
"H",
|
|
1981
|
+
"h"
|
|
1982
|
+
],
|
|
1983
|
+
BZ: [
|
|
1984
|
+
"H",
|
|
1985
|
+
"h",
|
|
1986
|
+
"hb",
|
|
1987
|
+
"hB"
|
|
1988
|
+
],
|
|
1989
|
+
CA: [
|
|
1990
|
+
"h",
|
|
1991
|
+
"hb",
|
|
1992
|
+
"H",
|
|
1993
|
+
"hB"
|
|
1994
|
+
],
|
|
1995
|
+
CC: [
|
|
1996
|
+
"H",
|
|
1997
|
+
"h",
|
|
1998
|
+
"hb",
|
|
1999
|
+
"hB"
|
|
2000
|
+
],
|
|
2001
|
+
CD: [
|
|
2002
|
+
"hB",
|
|
2003
|
+
"H"
|
|
2004
|
+
],
|
|
2005
|
+
CF: [
|
|
2006
|
+
"H",
|
|
2007
|
+
"h",
|
|
2008
|
+
"hB"
|
|
2009
|
+
],
|
|
2010
|
+
CG: [
|
|
2011
|
+
"H",
|
|
2012
|
+
"hB"
|
|
2013
|
+
],
|
|
2014
|
+
CH: [
|
|
2015
|
+
"H",
|
|
2016
|
+
"hB",
|
|
2017
|
+
"h"
|
|
2018
|
+
],
|
|
2019
|
+
CI: [
|
|
2020
|
+
"H",
|
|
2021
|
+
"hB"
|
|
2022
|
+
],
|
|
2023
|
+
CK: [
|
|
2024
|
+
"H",
|
|
2025
|
+
"h",
|
|
2026
|
+
"hb",
|
|
2027
|
+
"hB"
|
|
2028
|
+
],
|
|
2029
|
+
CL: [
|
|
2030
|
+
"h",
|
|
2031
|
+
"H",
|
|
2032
|
+
"hB",
|
|
2033
|
+
"hb"
|
|
2034
|
+
],
|
|
2035
|
+
CM: [
|
|
2036
|
+
"H",
|
|
2037
|
+
"h",
|
|
2038
|
+
"hB"
|
|
2039
|
+
],
|
|
2040
|
+
CN: [
|
|
2041
|
+
"H",
|
|
2042
|
+
"hB",
|
|
2043
|
+
"hb",
|
|
2044
|
+
"h"
|
|
2045
|
+
],
|
|
2046
|
+
CO: [
|
|
2047
|
+
"h",
|
|
2048
|
+
"H",
|
|
2049
|
+
"hB",
|
|
2050
|
+
"hb"
|
|
2051
|
+
],
|
|
2052
|
+
CP: [
|
|
2053
|
+
"H"
|
|
2054
|
+
],
|
|
2055
|
+
CR: [
|
|
2056
|
+
"h",
|
|
2057
|
+
"H",
|
|
2058
|
+
"hB",
|
|
2059
|
+
"hb"
|
|
2060
|
+
],
|
|
2061
|
+
CU: [
|
|
2062
|
+
"h",
|
|
2063
|
+
"H",
|
|
2064
|
+
"hB",
|
|
2065
|
+
"hb"
|
|
2066
|
+
],
|
|
2067
|
+
CV: [
|
|
2068
|
+
"H",
|
|
2069
|
+
"hB"
|
|
2070
|
+
],
|
|
2071
|
+
CW: [
|
|
2072
|
+
"H",
|
|
2073
|
+
"hB"
|
|
2074
|
+
],
|
|
2075
|
+
CX: [
|
|
2076
|
+
"H",
|
|
2077
|
+
"h",
|
|
2078
|
+
"hb",
|
|
2079
|
+
"hB"
|
|
2080
|
+
],
|
|
2081
|
+
CY: [
|
|
2082
|
+
"h",
|
|
2083
|
+
"H",
|
|
2084
|
+
"hb",
|
|
2085
|
+
"hB"
|
|
2086
|
+
],
|
|
2087
|
+
CZ: [
|
|
2088
|
+
"H"
|
|
2089
|
+
],
|
|
2090
|
+
DE: [
|
|
2091
|
+
"H",
|
|
2092
|
+
"hB"
|
|
2093
|
+
],
|
|
2094
|
+
DG: [
|
|
2095
|
+
"H",
|
|
2096
|
+
"h",
|
|
2097
|
+
"hb",
|
|
2098
|
+
"hB"
|
|
2099
|
+
],
|
|
2100
|
+
DJ: [
|
|
2101
|
+
"h",
|
|
2102
|
+
"H"
|
|
2103
|
+
],
|
|
2104
|
+
DK: [
|
|
2105
|
+
"H"
|
|
2106
|
+
],
|
|
2107
|
+
DM: [
|
|
2108
|
+
"h",
|
|
2109
|
+
"hb",
|
|
2110
|
+
"H",
|
|
2111
|
+
"hB"
|
|
2112
|
+
],
|
|
2113
|
+
DO: [
|
|
2114
|
+
"h",
|
|
2115
|
+
"H",
|
|
2116
|
+
"hB",
|
|
2117
|
+
"hb"
|
|
2118
|
+
],
|
|
2119
|
+
DZ: [
|
|
2120
|
+
"h",
|
|
2121
|
+
"hB",
|
|
2122
|
+
"hb",
|
|
2123
|
+
"H"
|
|
2124
|
+
],
|
|
2125
|
+
EA: [
|
|
2126
|
+
"H",
|
|
2127
|
+
"h",
|
|
2128
|
+
"hB",
|
|
2129
|
+
"hb"
|
|
2130
|
+
],
|
|
2131
|
+
EC: [
|
|
2132
|
+
"h",
|
|
2133
|
+
"H",
|
|
2134
|
+
"hB",
|
|
2135
|
+
"hb"
|
|
2136
|
+
],
|
|
2137
|
+
EE: [
|
|
2138
|
+
"H",
|
|
2139
|
+
"hB"
|
|
2140
|
+
],
|
|
2141
|
+
EG: [
|
|
2142
|
+
"h",
|
|
2143
|
+
"hB",
|
|
2144
|
+
"hb",
|
|
2145
|
+
"H"
|
|
2146
|
+
],
|
|
2147
|
+
EH: [
|
|
2148
|
+
"h",
|
|
2149
|
+
"hB",
|
|
2150
|
+
"hb",
|
|
2151
|
+
"H"
|
|
2152
|
+
],
|
|
2153
|
+
ER: [
|
|
2154
|
+
"h",
|
|
2155
|
+
"H"
|
|
2156
|
+
],
|
|
2157
|
+
ES: [
|
|
2158
|
+
"H",
|
|
2159
|
+
"hB",
|
|
2160
|
+
"h",
|
|
2161
|
+
"hb"
|
|
2162
|
+
],
|
|
2163
|
+
ET: [
|
|
2164
|
+
"hB",
|
|
2165
|
+
"hb",
|
|
2166
|
+
"h",
|
|
2167
|
+
"H"
|
|
2168
|
+
],
|
|
2169
|
+
FI: [
|
|
2170
|
+
"H"
|
|
2171
|
+
],
|
|
2172
|
+
FJ: [
|
|
2173
|
+
"h",
|
|
2174
|
+
"hb",
|
|
2175
|
+
"H",
|
|
2176
|
+
"hB"
|
|
2177
|
+
],
|
|
2178
|
+
FK: [
|
|
2179
|
+
"H",
|
|
2180
|
+
"h",
|
|
2181
|
+
"hb",
|
|
2182
|
+
"hB"
|
|
2183
|
+
],
|
|
2184
|
+
FM: [
|
|
2185
|
+
"h",
|
|
2186
|
+
"hb",
|
|
2187
|
+
"H",
|
|
2188
|
+
"hB"
|
|
2189
|
+
],
|
|
2190
|
+
FO: [
|
|
2191
|
+
"H",
|
|
2192
|
+
"h"
|
|
2193
|
+
],
|
|
2194
|
+
FR: [
|
|
2195
|
+
"H",
|
|
2196
|
+
"hB"
|
|
2197
|
+
],
|
|
2198
|
+
GA: [
|
|
2199
|
+
"H",
|
|
2200
|
+
"hB"
|
|
2201
|
+
],
|
|
2202
|
+
GB: [
|
|
2203
|
+
"H",
|
|
2204
|
+
"h",
|
|
2205
|
+
"hb",
|
|
2206
|
+
"hB"
|
|
2207
|
+
],
|
|
2208
|
+
GD: [
|
|
2209
|
+
"h",
|
|
2210
|
+
"hb",
|
|
2211
|
+
"H",
|
|
2212
|
+
"hB"
|
|
2213
|
+
],
|
|
2214
|
+
GE: [
|
|
2215
|
+
"H",
|
|
2216
|
+
"hB",
|
|
2217
|
+
"h"
|
|
2218
|
+
],
|
|
2219
|
+
GF: [
|
|
2220
|
+
"H",
|
|
2221
|
+
"hB"
|
|
2222
|
+
],
|
|
2223
|
+
GG: [
|
|
2224
|
+
"H",
|
|
2225
|
+
"h",
|
|
2226
|
+
"hb",
|
|
2227
|
+
"hB"
|
|
2228
|
+
],
|
|
2229
|
+
GH: [
|
|
2230
|
+
"h",
|
|
2231
|
+
"H"
|
|
2232
|
+
],
|
|
2233
|
+
GI: [
|
|
2234
|
+
"H",
|
|
2235
|
+
"h",
|
|
2236
|
+
"hb",
|
|
2237
|
+
"hB"
|
|
2238
|
+
],
|
|
2239
|
+
GL: [
|
|
2240
|
+
"H",
|
|
2241
|
+
"h"
|
|
2242
|
+
],
|
|
2243
|
+
GM: [
|
|
2244
|
+
"h",
|
|
2245
|
+
"hb",
|
|
2246
|
+
"H",
|
|
2247
|
+
"hB"
|
|
2248
|
+
],
|
|
2249
|
+
GN: [
|
|
2250
|
+
"H",
|
|
2251
|
+
"hB"
|
|
2252
|
+
],
|
|
2253
|
+
GP: [
|
|
2254
|
+
"H",
|
|
2255
|
+
"hB"
|
|
2256
|
+
],
|
|
2257
|
+
GQ: [
|
|
2258
|
+
"H",
|
|
2259
|
+
"hB",
|
|
2260
|
+
"h",
|
|
2261
|
+
"hb"
|
|
2262
|
+
],
|
|
2263
|
+
GR: [
|
|
2264
|
+
"h",
|
|
2265
|
+
"H",
|
|
2266
|
+
"hb",
|
|
2267
|
+
"hB"
|
|
2268
|
+
],
|
|
2269
|
+
GT: [
|
|
2270
|
+
"h",
|
|
2271
|
+
"H",
|
|
2272
|
+
"hB",
|
|
2273
|
+
"hb"
|
|
2274
|
+
],
|
|
2275
|
+
GU: [
|
|
2276
|
+
"h",
|
|
2277
|
+
"hb",
|
|
2278
|
+
"H",
|
|
2279
|
+
"hB"
|
|
2280
|
+
],
|
|
2281
|
+
GW: [
|
|
2282
|
+
"H",
|
|
2283
|
+
"hB"
|
|
2284
|
+
],
|
|
2285
|
+
GY: [
|
|
2286
|
+
"h",
|
|
2287
|
+
"hb",
|
|
2288
|
+
"H",
|
|
2289
|
+
"hB"
|
|
2290
|
+
],
|
|
2291
|
+
HK: [
|
|
2292
|
+
"h",
|
|
2293
|
+
"hB",
|
|
2294
|
+
"hb",
|
|
2295
|
+
"H"
|
|
2296
|
+
],
|
|
2297
|
+
HN: [
|
|
2298
|
+
"h",
|
|
2299
|
+
"H",
|
|
2300
|
+
"hB",
|
|
2301
|
+
"hb"
|
|
2302
|
+
],
|
|
2303
|
+
HR: [
|
|
2304
|
+
"H",
|
|
2305
|
+
"hB"
|
|
2306
|
+
],
|
|
2307
|
+
HU: [
|
|
2308
|
+
"H",
|
|
2309
|
+
"h"
|
|
2310
|
+
],
|
|
2311
|
+
IC: [
|
|
2312
|
+
"H",
|
|
2313
|
+
"h",
|
|
2314
|
+
"hB",
|
|
2315
|
+
"hb"
|
|
2316
|
+
],
|
|
2317
|
+
ID: [
|
|
2318
|
+
"H"
|
|
2319
|
+
],
|
|
2320
|
+
IE: [
|
|
2321
|
+
"H",
|
|
2322
|
+
"h",
|
|
2323
|
+
"hb",
|
|
2324
|
+
"hB"
|
|
2325
|
+
],
|
|
2326
|
+
IL: [
|
|
2327
|
+
"H",
|
|
2328
|
+
"hB"
|
|
2329
|
+
],
|
|
2330
|
+
IM: [
|
|
2331
|
+
"H",
|
|
2332
|
+
"h",
|
|
2333
|
+
"hb",
|
|
2334
|
+
"hB"
|
|
2335
|
+
],
|
|
2336
|
+
IN: [
|
|
2337
|
+
"h",
|
|
2338
|
+
"H"
|
|
2339
|
+
],
|
|
2340
|
+
IO: [
|
|
2341
|
+
"H",
|
|
2342
|
+
"h",
|
|
2343
|
+
"hb",
|
|
2344
|
+
"hB"
|
|
2345
|
+
],
|
|
2346
|
+
IQ: [
|
|
2347
|
+
"h",
|
|
2348
|
+
"hB",
|
|
2349
|
+
"hb",
|
|
2350
|
+
"H"
|
|
2351
|
+
],
|
|
2352
|
+
IR: [
|
|
2353
|
+
"hB",
|
|
2354
|
+
"H"
|
|
2355
|
+
],
|
|
2356
|
+
IS: [
|
|
2357
|
+
"H"
|
|
2358
|
+
],
|
|
2359
|
+
IT: [
|
|
2360
|
+
"H",
|
|
2361
|
+
"hB"
|
|
2362
|
+
],
|
|
2363
|
+
JE: [
|
|
2364
|
+
"H",
|
|
2365
|
+
"h",
|
|
2366
|
+
"hb",
|
|
2367
|
+
"hB"
|
|
2368
|
+
],
|
|
2369
|
+
JM: [
|
|
2370
|
+
"h",
|
|
2371
|
+
"hb",
|
|
2372
|
+
"H",
|
|
2373
|
+
"hB"
|
|
2374
|
+
],
|
|
2375
|
+
JO: [
|
|
2376
|
+
"h",
|
|
2377
|
+
"hB",
|
|
2378
|
+
"hb",
|
|
2379
|
+
"H"
|
|
2380
|
+
],
|
|
2381
|
+
JP: [
|
|
2382
|
+
"H",
|
|
2383
|
+
"K",
|
|
2384
|
+
"h"
|
|
2385
|
+
],
|
|
2386
|
+
KE: [
|
|
2387
|
+
"hB",
|
|
2388
|
+
"hb",
|
|
2389
|
+
"H",
|
|
2390
|
+
"h"
|
|
2391
|
+
],
|
|
2392
|
+
KG: [
|
|
2393
|
+
"H",
|
|
2394
|
+
"h",
|
|
2395
|
+
"hB",
|
|
2396
|
+
"hb"
|
|
2397
|
+
],
|
|
2398
|
+
KH: [
|
|
2399
|
+
"hB",
|
|
2400
|
+
"h",
|
|
2401
|
+
"H",
|
|
2402
|
+
"hb"
|
|
2403
|
+
],
|
|
2404
|
+
KI: [
|
|
2405
|
+
"h",
|
|
2406
|
+
"hb",
|
|
2407
|
+
"H",
|
|
2408
|
+
"hB"
|
|
2409
|
+
],
|
|
2410
|
+
KM: [
|
|
2411
|
+
"H",
|
|
2412
|
+
"h",
|
|
2413
|
+
"hB",
|
|
2414
|
+
"hb"
|
|
2415
|
+
],
|
|
2416
|
+
KN: [
|
|
2417
|
+
"h",
|
|
2418
|
+
"hb",
|
|
2419
|
+
"H",
|
|
2420
|
+
"hB"
|
|
2421
|
+
],
|
|
2422
|
+
KP: [
|
|
2423
|
+
"h",
|
|
2424
|
+
"H",
|
|
2425
|
+
"hB",
|
|
2426
|
+
"hb"
|
|
2427
|
+
],
|
|
2428
|
+
KR: [
|
|
2429
|
+
"h",
|
|
2430
|
+
"H",
|
|
2431
|
+
"hB",
|
|
2432
|
+
"hb"
|
|
2433
|
+
],
|
|
2434
|
+
KW: [
|
|
2435
|
+
"h",
|
|
2436
|
+
"hB",
|
|
2437
|
+
"hb",
|
|
2438
|
+
"H"
|
|
2439
|
+
],
|
|
2440
|
+
KY: [
|
|
2441
|
+
"h",
|
|
2442
|
+
"hb",
|
|
2443
|
+
"H",
|
|
2444
|
+
"hB"
|
|
2445
|
+
],
|
|
2446
|
+
KZ: [
|
|
2447
|
+
"H",
|
|
2448
|
+
"hB"
|
|
2449
|
+
],
|
|
2450
|
+
LA: [
|
|
2451
|
+
"H",
|
|
2452
|
+
"hb",
|
|
2453
|
+
"hB",
|
|
2454
|
+
"h"
|
|
2455
|
+
],
|
|
2456
|
+
LB: [
|
|
2457
|
+
"h",
|
|
2458
|
+
"hB",
|
|
2459
|
+
"hb",
|
|
2460
|
+
"H"
|
|
2461
|
+
],
|
|
2462
|
+
LC: [
|
|
2463
|
+
"h",
|
|
2464
|
+
"hb",
|
|
2465
|
+
"H",
|
|
2466
|
+
"hB"
|
|
2467
|
+
],
|
|
2468
|
+
LI: [
|
|
2469
|
+
"H",
|
|
2470
|
+
"hB",
|
|
2471
|
+
"h"
|
|
2472
|
+
],
|
|
2473
|
+
LK: [
|
|
2474
|
+
"H",
|
|
2475
|
+
"h",
|
|
2476
|
+
"hB",
|
|
2477
|
+
"hb"
|
|
2478
|
+
],
|
|
2479
|
+
LR: [
|
|
2480
|
+
"h",
|
|
2481
|
+
"hb",
|
|
2482
|
+
"H",
|
|
2483
|
+
"hB"
|
|
2484
|
+
],
|
|
2485
|
+
LS: [
|
|
2486
|
+
"h",
|
|
2487
|
+
"H"
|
|
2488
|
+
],
|
|
2489
|
+
LT: [
|
|
2490
|
+
"H",
|
|
2491
|
+
"h",
|
|
2492
|
+
"hb",
|
|
2493
|
+
"hB"
|
|
2494
|
+
],
|
|
2495
|
+
LU: [
|
|
2496
|
+
"H",
|
|
2497
|
+
"h",
|
|
2498
|
+
"hB"
|
|
2499
|
+
],
|
|
2500
|
+
LV: [
|
|
2501
|
+
"H",
|
|
2502
|
+
"hB",
|
|
2503
|
+
"hb",
|
|
2504
|
+
"h"
|
|
2505
|
+
],
|
|
2506
|
+
LY: [
|
|
2507
|
+
"h",
|
|
2508
|
+
"hB",
|
|
2509
|
+
"hb",
|
|
2510
|
+
"H"
|
|
2511
|
+
],
|
|
2512
|
+
MA: [
|
|
2513
|
+
"H",
|
|
2514
|
+
"h",
|
|
2515
|
+
"hB",
|
|
2516
|
+
"hb"
|
|
2517
|
+
],
|
|
2518
|
+
MC: [
|
|
2519
|
+
"H",
|
|
2520
|
+
"hB"
|
|
2521
|
+
],
|
|
2522
|
+
MD: [
|
|
2523
|
+
"H",
|
|
2524
|
+
"hB"
|
|
2525
|
+
],
|
|
2526
|
+
ME: [
|
|
2527
|
+
"H",
|
|
2528
|
+
"hB",
|
|
2529
|
+
"h"
|
|
2530
|
+
],
|
|
2531
|
+
MF: [
|
|
2532
|
+
"H",
|
|
2533
|
+
"hB"
|
|
2534
|
+
],
|
|
2535
|
+
MG: [
|
|
2536
|
+
"H",
|
|
2537
|
+
"h"
|
|
2538
|
+
],
|
|
2539
|
+
MH: [
|
|
2540
|
+
"h",
|
|
2541
|
+
"hb",
|
|
2542
|
+
"H",
|
|
2543
|
+
"hB"
|
|
2544
|
+
],
|
|
2545
|
+
MK: [
|
|
2546
|
+
"H",
|
|
2547
|
+
"h",
|
|
2548
|
+
"hb",
|
|
2549
|
+
"hB"
|
|
2550
|
+
],
|
|
2551
|
+
ML: [
|
|
2552
|
+
"H"
|
|
2553
|
+
],
|
|
2554
|
+
MM: [
|
|
2555
|
+
"hB",
|
|
2556
|
+
"hb",
|
|
2557
|
+
"H",
|
|
2558
|
+
"h"
|
|
2559
|
+
],
|
|
2560
|
+
MN: [
|
|
2561
|
+
"H",
|
|
2562
|
+
"h",
|
|
2563
|
+
"hb",
|
|
2564
|
+
"hB"
|
|
2565
|
+
],
|
|
2566
|
+
MO: [
|
|
2567
|
+
"h",
|
|
2568
|
+
"hB",
|
|
2569
|
+
"hb",
|
|
2570
|
+
"H"
|
|
2571
|
+
],
|
|
2572
|
+
MP: [
|
|
2573
|
+
"h",
|
|
2574
|
+
"hb",
|
|
2575
|
+
"H",
|
|
2576
|
+
"hB"
|
|
2577
|
+
],
|
|
2578
|
+
MQ: [
|
|
2579
|
+
"H",
|
|
2580
|
+
"hB"
|
|
2581
|
+
],
|
|
2582
|
+
MR: [
|
|
2583
|
+
"h",
|
|
2584
|
+
"hB",
|
|
2585
|
+
"hb",
|
|
2586
|
+
"H"
|
|
2587
|
+
],
|
|
2588
|
+
MS: [
|
|
2589
|
+
"H",
|
|
2590
|
+
"h",
|
|
2591
|
+
"hb",
|
|
2592
|
+
"hB"
|
|
2593
|
+
],
|
|
2594
|
+
MT: [
|
|
2595
|
+
"H",
|
|
2596
|
+
"h"
|
|
2597
|
+
],
|
|
2598
|
+
MU: [
|
|
2599
|
+
"H",
|
|
2600
|
+
"h"
|
|
2601
|
+
],
|
|
2602
|
+
MV: [
|
|
2603
|
+
"H",
|
|
2604
|
+
"h"
|
|
2605
|
+
],
|
|
2606
|
+
MW: [
|
|
2607
|
+
"h",
|
|
2608
|
+
"hb",
|
|
2609
|
+
"H",
|
|
2610
|
+
"hB"
|
|
2611
|
+
],
|
|
2612
|
+
MX: [
|
|
2613
|
+
"h",
|
|
2614
|
+
"H",
|
|
2615
|
+
"hB",
|
|
2616
|
+
"hb"
|
|
2617
|
+
],
|
|
2618
|
+
MY: [
|
|
2619
|
+
"hb",
|
|
2620
|
+
"hB",
|
|
2621
|
+
"h",
|
|
2622
|
+
"H"
|
|
2623
|
+
],
|
|
2624
|
+
MZ: [
|
|
2625
|
+
"H",
|
|
2626
|
+
"hB"
|
|
2627
|
+
],
|
|
2628
|
+
NA: [
|
|
2629
|
+
"h",
|
|
2630
|
+
"H",
|
|
2631
|
+
"hB",
|
|
2632
|
+
"hb"
|
|
2633
|
+
],
|
|
2634
|
+
NC: [
|
|
2635
|
+
"H",
|
|
2636
|
+
"hB"
|
|
2637
|
+
],
|
|
2638
|
+
NE: [
|
|
2639
|
+
"H"
|
|
2640
|
+
],
|
|
2641
|
+
NF: [
|
|
2642
|
+
"H",
|
|
2643
|
+
"h",
|
|
2644
|
+
"hb",
|
|
2645
|
+
"hB"
|
|
2646
|
+
],
|
|
2647
|
+
NG: [
|
|
2648
|
+
"H",
|
|
2649
|
+
"h",
|
|
2650
|
+
"hb",
|
|
2651
|
+
"hB"
|
|
2652
|
+
],
|
|
2653
|
+
NI: [
|
|
2654
|
+
"h",
|
|
2655
|
+
"H",
|
|
2656
|
+
"hB",
|
|
2657
|
+
"hb"
|
|
2658
|
+
],
|
|
2659
|
+
NL: [
|
|
2660
|
+
"H",
|
|
2661
|
+
"hB"
|
|
2662
|
+
],
|
|
2663
|
+
NO: [
|
|
2664
|
+
"H",
|
|
2665
|
+
"h"
|
|
2666
|
+
],
|
|
2667
|
+
NP: [
|
|
2668
|
+
"H",
|
|
2669
|
+
"h",
|
|
2670
|
+
"hB"
|
|
2671
|
+
],
|
|
2672
|
+
NR: [
|
|
2673
|
+
"H",
|
|
2674
|
+
"h",
|
|
2675
|
+
"hb",
|
|
2676
|
+
"hB"
|
|
2677
|
+
],
|
|
2678
|
+
NU: [
|
|
2679
|
+
"H",
|
|
2680
|
+
"h",
|
|
2681
|
+
"hb",
|
|
2682
|
+
"hB"
|
|
2683
|
+
],
|
|
2684
|
+
NZ: [
|
|
2685
|
+
"h",
|
|
2686
|
+
"hb",
|
|
2687
|
+
"H",
|
|
2688
|
+
"hB"
|
|
2689
|
+
],
|
|
2690
|
+
OM: [
|
|
2691
|
+
"h",
|
|
2692
|
+
"hB",
|
|
2693
|
+
"hb",
|
|
2694
|
+
"H"
|
|
2695
|
+
],
|
|
2696
|
+
PA: [
|
|
2697
|
+
"h",
|
|
2698
|
+
"H",
|
|
2699
|
+
"hB",
|
|
2700
|
+
"hb"
|
|
2701
|
+
],
|
|
2702
|
+
PE: [
|
|
2703
|
+
"h",
|
|
2704
|
+
"H",
|
|
2705
|
+
"hB",
|
|
2706
|
+
"hb"
|
|
2707
|
+
],
|
|
2708
|
+
PF: [
|
|
2709
|
+
"H",
|
|
2710
|
+
"h",
|
|
2711
|
+
"hB"
|
|
2712
|
+
],
|
|
2713
|
+
PG: [
|
|
2714
|
+
"h",
|
|
2715
|
+
"H"
|
|
2716
|
+
],
|
|
2717
|
+
PH: [
|
|
2718
|
+
"h",
|
|
2719
|
+
"hB",
|
|
2720
|
+
"hb",
|
|
2721
|
+
"H"
|
|
2722
|
+
],
|
|
2723
|
+
PK: [
|
|
2724
|
+
"h",
|
|
2725
|
+
"hB",
|
|
2726
|
+
"H"
|
|
2727
|
+
],
|
|
2728
|
+
PL: [
|
|
2729
|
+
"H",
|
|
2730
|
+
"h"
|
|
2731
|
+
],
|
|
2732
|
+
PM: [
|
|
2733
|
+
"H",
|
|
2734
|
+
"hB"
|
|
2735
|
+
],
|
|
2736
|
+
PN: [
|
|
2737
|
+
"H",
|
|
2738
|
+
"h",
|
|
2739
|
+
"hb",
|
|
2740
|
+
"hB"
|
|
2741
|
+
],
|
|
2742
|
+
PR: [
|
|
2743
|
+
"h",
|
|
2744
|
+
"H",
|
|
2745
|
+
"hB",
|
|
2746
|
+
"hb"
|
|
2747
|
+
],
|
|
2748
|
+
PS: [
|
|
2749
|
+
"h",
|
|
2750
|
+
"hB",
|
|
2751
|
+
"hb",
|
|
2752
|
+
"H"
|
|
2753
|
+
],
|
|
2754
|
+
PT: [
|
|
2755
|
+
"H",
|
|
2756
|
+
"hB"
|
|
2757
|
+
],
|
|
2758
|
+
PW: [
|
|
2759
|
+
"h",
|
|
2760
|
+
"H"
|
|
2761
|
+
],
|
|
2762
|
+
PY: [
|
|
2763
|
+
"h",
|
|
2764
|
+
"H",
|
|
2765
|
+
"hB",
|
|
2766
|
+
"hb"
|
|
2767
|
+
],
|
|
2768
|
+
QA: [
|
|
2769
|
+
"h",
|
|
2770
|
+
"hB",
|
|
2771
|
+
"hb",
|
|
2772
|
+
"H"
|
|
2773
|
+
],
|
|
2774
|
+
RE: [
|
|
2775
|
+
"H",
|
|
2776
|
+
"hB"
|
|
2777
|
+
],
|
|
2778
|
+
RO: [
|
|
2779
|
+
"H",
|
|
2780
|
+
"hB"
|
|
2781
|
+
],
|
|
2782
|
+
RS: [
|
|
2783
|
+
"H",
|
|
2784
|
+
"hB",
|
|
2785
|
+
"h"
|
|
2786
|
+
],
|
|
2787
|
+
RU: [
|
|
2788
|
+
"H"
|
|
2789
|
+
],
|
|
2790
|
+
RW: [
|
|
2791
|
+
"H",
|
|
2792
|
+
"h"
|
|
2793
|
+
],
|
|
2794
|
+
SA: [
|
|
2795
|
+
"h",
|
|
2796
|
+
"hB",
|
|
2797
|
+
"hb",
|
|
2798
|
+
"H"
|
|
2799
|
+
],
|
|
2800
|
+
SB: [
|
|
2801
|
+
"h",
|
|
2802
|
+
"hb",
|
|
2803
|
+
"H",
|
|
2804
|
+
"hB"
|
|
2805
|
+
],
|
|
2806
|
+
SC: [
|
|
2807
|
+
"H",
|
|
2808
|
+
"h",
|
|
2809
|
+
"hB"
|
|
2810
|
+
],
|
|
2811
|
+
SD: [
|
|
2812
|
+
"h",
|
|
2813
|
+
"hB",
|
|
2814
|
+
"hb",
|
|
2815
|
+
"H"
|
|
2816
|
+
],
|
|
2817
|
+
SE: [
|
|
2818
|
+
"H"
|
|
2819
|
+
],
|
|
2820
|
+
SG: [
|
|
2821
|
+
"h",
|
|
2822
|
+
"hb",
|
|
2823
|
+
"H",
|
|
2824
|
+
"hB"
|
|
2825
|
+
],
|
|
2826
|
+
SH: [
|
|
2827
|
+
"H",
|
|
2828
|
+
"h",
|
|
2829
|
+
"hb",
|
|
2830
|
+
"hB"
|
|
2831
|
+
],
|
|
2832
|
+
SI: [
|
|
2833
|
+
"H",
|
|
2834
|
+
"hB"
|
|
2835
|
+
],
|
|
2836
|
+
SJ: [
|
|
2837
|
+
"H"
|
|
2838
|
+
],
|
|
2839
|
+
SK: [
|
|
2840
|
+
"H"
|
|
2841
|
+
],
|
|
2842
|
+
SL: [
|
|
2843
|
+
"h",
|
|
2844
|
+
"hb",
|
|
2845
|
+
"H",
|
|
2846
|
+
"hB"
|
|
2847
|
+
],
|
|
2848
|
+
SM: [
|
|
2849
|
+
"H",
|
|
2850
|
+
"h",
|
|
2851
|
+
"hB"
|
|
2852
|
+
],
|
|
2853
|
+
SN: [
|
|
2854
|
+
"H",
|
|
2855
|
+
"h",
|
|
2856
|
+
"hB"
|
|
2857
|
+
],
|
|
2858
|
+
SO: [
|
|
2859
|
+
"h",
|
|
2860
|
+
"H"
|
|
2861
|
+
],
|
|
2862
|
+
SR: [
|
|
2863
|
+
"H",
|
|
2864
|
+
"hB"
|
|
2865
|
+
],
|
|
2866
|
+
SS: [
|
|
2867
|
+
"h",
|
|
2868
|
+
"hb",
|
|
2869
|
+
"H",
|
|
2870
|
+
"hB"
|
|
2871
|
+
],
|
|
2872
|
+
ST: [
|
|
2873
|
+
"H",
|
|
2874
|
+
"hB"
|
|
2875
|
+
],
|
|
2876
|
+
SV: [
|
|
2877
|
+
"h",
|
|
2878
|
+
"H",
|
|
2879
|
+
"hB",
|
|
2880
|
+
"hb"
|
|
2881
|
+
],
|
|
2882
|
+
SX: [
|
|
2883
|
+
"H",
|
|
2884
|
+
"h",
|
|
2885
|
+
"hb",
|
|
2886
|
+
"hB"
|
|
2887
|
+
],
|
|
2888
|
+
SY: [
|
|
2889
|
+
"h",
|
|
2890
|
+
"hB",
|
|
2891
|
+
"hb",
|
|
2892
|
+
"H"
|
|
2893
|
+
],
|
|
2894
|
+
SZ: [
|
|
2895
|
+
"h",
|
|
2896
|
+
"hb",
|
|
2897
|
+
"H",
|
|
2898
|
+
"hB"
|
|
2899
|
+
],
|
|
2900
|
+
TA: [
|
|
2901
|
+
"H",
|
|
2902
|
+
"h",
|
|
2903
|
+
"hb",
|
|
2904
|
+
"hB"
|
|
2905
|
+
],
|
|
2906
|
+
TC: [
|
|
2907
|
+
"h",
|
|
2908
|
+
"hb",
|
|
2909
|
+
"H",
|
|
2910
|
+
"hB"
|
|
2911
|
+
],
|
|
2912
|
+
TD: [
|
|
2913
|
+
"h",
|
|
2914
|
+
"H",
|
|
2915
|
+
"hB"
|
|
2916
|
+
],
|
|
2917
|
+
TF: [
|
|
2918
|
+
"H",
|
|
2919
|
+
"h",
|
|
2920
|
+
"hB"
|
|
2921
|
+
],
|
|
2922
|
+
TG: [
|
|
2923
|
+
"H",
|
|
2924
|
+
"hB"
|
|
2925
|
+
],
|
|
2926
|
+
TH: [
|
|
2927
|
+
"H",
|
|
2928
|
+
"h"
|
|
2929
|
+
],
|
|
2930
|
+
TJ: [
|
|
2931
|
+
"H",
|
|
2932
|
+
"h"
|
|
2933
|
+
],
|
|
2934
|
+
TL: [
|
|
2935
|
+
"H",
|
|
2936
|
+
"hB",
|
|
2937
|
+
"hb",
|
|
2938
|
+
"h"
|
|
2939
|
+
],
|
|
2940
|
+
TM: [
|
|
2941
|
+
"H",
|
|
2942
|
+
"h"
|
|
2943
|
+
],
|
|
2944
|
+
TN: [
|
|
2945
|
+
"h",
|
|
2946
|
+
"hB",
|
|
2947
|
+
"hb",
|
|
2948
|
+
"H"
|
|
2949
|
+
],
|
|
2950
|
+
TO: [
|
|
2951
|
+
"h",
|
|
2952
|
+
"H"
|
|
2953
|
+
],
|
|
2954
|
+
TR: [
|
|
2955
|
+
"H",
|
|
2956
|
+
"hB"
|
|
2957
|
+
],
|
|
2958
|
+
TT: [
|
|
2959
|
+
"h",
|
|
2960
|
+
"hb",
|
|
2961
|
+
"H",
|
|
2962
|
+
"hB"
|
|
2963
|
+
],
|
|
2964
|
+
TW: [
|
|
2965
|
+
"hB",
|
|
2966
|
+
"hb",
|
|
2967
|
+
"h",
|
|
2968
|
+
"H"
|
|
2969
|
+
],
|
|
2970
|
+
TZ: [
|
|
2971
|
+
"hB",
|
|
2972
|
+
"hb",
|
|
2973
|
+
"H",
|
|
2974
|
+
"h"
|
|
2975
|
+
],
|
|
2976
|
+
UA: [
|
|
2977
|
+
"H",
|
|
2978
|
+
"hB",
|
|
2979
|
+
"h"
|
|
2980
|
+
],
|
|
2981
|
+
UG: [
|
|
2982
|
+
"hB",
|
|
2983
|
+
"hb",
|
|
2984
|
+
"H",
|
|
2985
|
+
"h"
|
|
2986
|
+
],
|
|
2987
|
+
UM: [
|
|
2988
|
+
"h",
|
|
2989
|
+
"hb",
|
|
2990
|
+
"H",
|
|
2991
|
+
"hB"
|
|
2992
|
+
],
|
|
2993
|
+
US: [
|
|
2994
|
+
"h",
|
|
2995
|
+
"hb",
|
|
2996
|
+
"H",
|
|
2997
|
+
"hB"
|
|
2998
|
+
],
|
|
2999
|
+
UY: [
|
|
3000
|
+
"h",
|
|
3001
|
+
"H",
|
|
3002
|
+
"hB",
|
|
3003
|
+
"hb"
|
|
3004
|
+
],
|
|
3005
|
+
UZ: [
|
|
3006
|
+
"H",
|
|
3007
|
+
"hB",
|
|
3008
|
+
"h"
|
|
3009
|
+
],
|
|
3010
|
+
VA: [
|
|
3011
|
+
"H",
|
|
3012
|
+
"h",
|
|
3013
|
+
"hB"
|
|
3014
|
+
],
|
|
3015
|
+
VC: [
|
|
3016
|
+
"h",
|
|
3017
|
+
"hb",
|
|
3018
|
+
"H",
|
|
3019
|
+
"hB"
|
|
3020
|
+
],
|
|
3021
|
+
VE: [
|
|
3022
|
+
"h",
|
|
3023
|
+
"H",
|
|
3024
|
+
"hB",
|
|
3025
|
+
"hb"
|
|
3026
|
+
],
|
|
3027
|
+
VG: [
|
|
3028
|
+
"h",
|
|
3029
|
+
"hb",
|
|
3030
|
+
"H",
|
|
3031
|
+
"hB"
|
|
3032
|
+
],
|
|
3033
|
+
VI: [
|
|
3034
|
+
"h",
|
|
3035
|
+
"hb",
|
|
3036
|
+
"H",
|
|
3037
|
+
"hB"
|
|
3038
|
+
],
|
|
3039
|
+
VN: [
|
|
3040
|
+
"H",
|
|
3041
|
+
"h"
|
|
3042
|
+
],
|
|
3043
|
+
VU: [
|
|
3044
|
+
"h",
|
|
3045
|
+
"H"
|
|
3046
|
+
],
|
|
3047
|
+
WF: [
|
|
3048
|
+
"H",
|
|
3049
|
+
"hB"
|
|
3050
|
+
],
|
|
3051
|
+
WS: [
|
|
3052
|
+
"h",
|
|
3053
|
+
"H"
|
|
3054
|
+
],
|
|
3055
|
+
XK: [
|
|
3056
|
+
"H",
|
|
3057
|
+
"hB",
|
|
3058
|
+
"h"
|
|
3059
|
+
],
|
|
3060
|
+
YE: [
|
|
3061
|
+
"h",
|
|
3062
|
+
"hB",
|
|
3063
|
+
"hb",
|
|
3064
|
+
"H"
|
|
3065
|
+
],
|
|
3066
|
+
YT: [
|
|
3067
|
+
"H",
|
|
3068
|
+
"hB"
|
|
3069
|
+
],
|
|
3070
|
+
ZA: [
|
|
3071
|
+
"H",
|
|
3072
|
+
"h",
|
|
3073
|
+
"hb",
|
|
3074
|
+
"hB"
|
|
3075
|
+
],
|
|
3076
|
+
ZM: [
|
|
3077
|
+
"h",
|
|
3078
|
+
"hb",
|
|
3079
|
+
"H",
|
|
3080
|
+
"hB"
|
|
3081
|
+
],
|
|
3082
|
+
ZW: [
|
|
3083
|
+
"H",
|
|
3084
|
+
"h"
|
|
3085
|
+
],
|
|
3086
|
+
"af-ZA": [
|
|
3087
|
+
"H",
|
|
3088
|
+
"h",
|
|
3089
|
+
"hB",
|
|
3090
|
+
"hb"
|
|
3091
|
+
],
|
|
3092
|
+
"ar-001": [
|
|
3093
|
+
"h",
|
|
3094
|
+
"hB",
|
|
3095
|
+
"hb",
|
|
3096
|
+
"H"
|
|
3097
|
+
],
|
|
3098
|
+
"ca-ES": [
|
|
3099
|
+
"H",
|
|
3100
|
+
"h",
|
|
3101
|
+
"hB"
|
|
3102
|
+
],
|
|
3103
|
+
"en-001": [
|
|
3104
|
+
"h",
|
|
3105
|
+
"hb",
|
|
3106
|
+
"H",
|
|
3107
|
+
"hB"
|
|
3108
|
+
],
|
|
3109
|
+
"en-HK": [
|
|
3110
|
+
"h",
|
|
3111
|
+
"hb",
|
|
3112
|
+
"H",
|
|
3113
|
+
"hB"
|
|
3114
|
+
],
|
|
3115
|
+
"en-IL": [
|
|
3116
|
+
"H",
|
|
3117
|
+
"h",
|
|
3118
|
+
"hb",
|
|
3119
|
+
"hB"
|
|
3120
|
+
],
|
|
3121
|
+
"en-MY": [
|
|
3122
|
+
"h",
|
|
3123
|
+
"hb",
|
|
3124
|
+
"H",
|
|
3125
|
+
"hB"
|
|
3126
|
+
],
|
|
3127
|
+
"es-BR": [
|
|
3128
|
+
"H",
|
|
3129
|
+
"h",
|
|
3130
|
+
"hB",
|
|
3131
|
+
"hb"
|
|
3132
|
+
],
|
|
3133
|
+
"es-ES": [
|
|
3134
|
+
"H",
|
|
3135
|
+
"h",
|
|
3136
|
+
"hB",
|
|
3137
|
+
"hb"
|
|
3138
|
+
],
|
|
3139
|
+
"es-GQ": [
|
|
3140
|
+
"H",
|
|
3141
|
+
"h",
|
|
3142
|
+
"hB",
|
|
3143
|
+
"hb"
|
|
3144
|
+
],
|
|
3145
|
+
"fr-CA": [
|
|
3146
|
+
"H",
|
|
3147
|
+
"h",
|
|
3148
|
+
"hB"
|
|
3149
|
+
],
|
|
3150
|
+
"gl-ES": [
|
|
3151
|
+
"H",
|
|
3152
|
+
"h",
|
|
3153
|
+
"hB"
|
|
3154
|
+
],
|
|
3155
|
+
"gu-IN": [
|
|
3156
|
+
"hB",
|
|
3157
|
+
"hb",
|
|
3158
|
+
"h",
|
|
3159
|
+
"H"
|
|
3160
|
+
],
|
|
3161
|
+
"hi-IN": [
|
|
3162
|
+
"hB",
|
|
3163
|
+
"h",
|
|
3164
|
+
"H"
|
|
3165
|
+
],
|
|
3166
|
+
"it-CH": [
|
|
3167
|
+
"H",
|
|
3168
|
+
"h",
|
|
3169
|
+
"hB"
|
|
3170
|
+
],
|
|
3171
|
+
"it-IT": [
|
|
3172
|
+
"H",
|
|
3173
|
+
"h",
|
|
3174
|
+
"hB"
|
|
3175
|
+
],
|
|
3176
|
+
"kn-IN": [
|
|
3177
|
+
"hB",
|
|
3178
|
+
"h",
|
|
3179
|
+
"H"
|
|
3180
|
+
],
|
|
3181
|
+
"ml-IN": [
|
|
3182
|
+
"hB",
|
|
3183
|
+
"h",
|
|
3184
|
+
"H"
|
|
3185
|
+
],
|
|
3186
|
+
"mr-IN": [
|
|
3187
|
+
"hB",
|
|
3188
|
+
"hb",
|
|
3189
|
+
"h",
|
|
3190
|
+
"H"
|
|
3191
|
+
],
|
|
3192
|
+
"pa-IN": [
|
|
3193
|
+
"hB",
|
|
3194
|
+
"hb",
|
|
3195
|
+
"h",
|
|
3196
|
+
"H"
|
|
3197
|
+
],
|
|
3198
|
+
"ta-IN": [
|
|
3199
|
+
"hB",
|
|
3200
|
+
"h",
|
|
3201
|
+
"hb",
|
|
3202
|
+
"H"
|
|
3203
|
+
],
|
|
3204
|
+
"te-IN": [
|
|
3205
|
+
"hB",
|
|
3206
|
+
"h",
|
|
3207
|
+
"H"
|
|
3208
|
+
],
|
|
3209
|
+
"zu-ZA": [
|
|
3210
|
+
"H",
|
|
3211
|
+
"hB",
|
|
3212
|
+
"hb",
|
|
3213
|
+
"h"
|
|
3214
|
+
]
|
|
3215
|
+
};
|
|
3216
|
+
function ii(e, t) {
|
|
3217
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3218
|
+
var i = e.charAt(r);
|
|
3219
|
+
if (i === "j") {
|
|
3220
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3221
|
+
o++, r++;
|
|
3222
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = oi(t);
|
|
3223
|
+
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
3224
|
+
n += u;
|
|
3225
|
+
for (; s-- > 0; )
|
|
3226
|
+
n = h + n;
|
|
3227
|
+
} else i === "J" ? n += "H" : n += i;
|
|
3228
|
+
}
|
|
3229
|
+
return n;
|
|
3230
|
+
}
|
|
3231
|
+
function oi(e) {
|
|
3232
|
+
var t = e.hourCycle;
|
|
3233
|
+
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3234
|
+
e.hourCycles && // @ts-ignore
|
|
3235
|
+
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
3236
|
+
switch (t) {
|
|
3237
|
+
case "h24":
|
|
3238
|
+
return "k";
|
|
3239
|
+
case "h23":
|
|
3240
|
+
return "H";
|
|
3241
|
+
case "h12":
|
|
3242
|
+
return "h";
|
|
3243
|
+
case "h11":
|
|
3244
|
+
return "K";
|
|
3245
|
+
default:
|
|
3246
|
+
throw new Error("Invalid hourCycle");
|
|
3247
|
+
}
|
|
3248
|
+
var n = e.language, r;
|
|
3249
|
+
n !== "root" && (r = e.maximize().region);
|
|
3250
|
+
var i = ge[r || ""] || ge[n || ""] || ge["".concat(n, "-001")] || ge["001"];
|
|
3251
|
+
return i[0];
|
|
3252
|
+
}
|
|
3253
|
+
var Ge, si = new RegExp("^".concat(fn.source, "*")), ai = new RegExp("".concat(fn.source, "*$"));
|
|
3254
|
+
function g(e, t) {
|
|
3255
|
+
return { start: e, end: t };
|
|
3256
|
+
}
|
|
3257
|
+
var ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), hi = !!String.fromCodePoint, li = !!Object.fromEntries, fi = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, pi = !!Number.isSafeInteger, mi = pi ? Number.isSafeInteger : function(e) {
|
|
3258
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3259
|
+
}, Qe = !0;
|
|
3260
|
+
try {
|
|
3261
|
+
var bi = bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3262
|
+
Qe = ((Ge = bi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3263
|
+
} catch (e) {
|
|
3264
|
+
Qe = !1;
|
|
3265
|
+
}
|
|
3266
|
+
var Ht = ui ? (
|
|
3267
|
+
// Native
|
|
3268
|
+
function(t, n, r) {
|
|
3269
|
+
return t.startsWith(n, r);
|
|
3270
|
+
}
|
|
3271
|
+
) : (
|
|
3272
|
+
// For IE11
|
|
3273
|
+
function(t, n, r) {
|
|
3274
|
+
return t.slice(r, r + n.length) === n;
|
|
3275
|
+
}
|
|
3276
|
+
), Je = hi ? String.fromCodePoint : (
|
|
3277
|
+
// IE11
|
|
3278
|
+
function() {
|
|
3279
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3280
|
+
t[n] = arguments[n];
|
|
3281
|
+
for (var r = "", i = t.length, o = 0, s; i > o; ) {
|
|
3282
|
+
if (s = t[o++], s > 1114111)
|
|
3283
|
+
throw RangeError(s + " is not a valid code point");
|
|
3284
|
+
r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3285
|
+
}
|
|
3286
|
+
return r;
|
|
3287
|
+
}
|
|
3288
|
+
), Bt = (
|
|
3289
|
+
// native
|
|
3290
|
+
li ? Object.fromEntries : (
|
|
3291
|
+
// Ponyfill
|
|
3292
|
+
function(t) {
|
|
3293
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3294
|
+
var o = i[r], s = o[0], a = o[1];
|
|
3295
|
+
n[s] = a;
|
|
3296
|
+
}
|
|
3297
|
+
return n;
|
|
3298
|
+
}
|
|
3299
|
+
)
|
|
3300
|
+
), mn = fi ? (
|
|
3301
|
+
// Native
|
|
3302
|
+
function(t, n) {
|
|
3303
|
+
return t.codePointAt(n);
|
|
3304
|
+
}
|
|
3305
|
+
) : (
|
|
3306
|
+
// IE 11
|
|
3307
|
+
function(t, n) {
|
|
3308
|
+
var r = t.length;
|
|
3309
|
+
if (!(n < 0 || n >= r)) {
|
|
3310
|
+
var i = t.charCodeAt(n), o;
|
|
3311
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
), gi = ci ? (
|
|
3315
|
+
// Native
|
|
3316
|
+
function(t) {
|
|
3317
|
+
return t.trimStart();
|
|
3318
|
+
}
|
|
3319
|
+
) : (
|
|
3320
|
+
// Ponyfill
|
|
3321
|
+
function(t) {
|
|
3322
|
+
return t.replace(si, "");
|
|
3323
|
+
}
|
|
3324
|
+
), yi = di ? (
|
|
3325
|
+
// Native
|
|
3326
|
+
function(t) {
|
|
3327
|
+
return t.trimEnd();
|
|
3328
|
+
}
|
|
3329
|
+
) : (
|
|
3330
|
+
// Ponyfill
|
|
3331
|
+
function(t) {
|
|
3332
|
+
return t.replace(ai, "");
|
|
3333
|
+
}
|
|
3334
|
+
);
|
|
3335
|
+
function bn(e, t) {
|
|
3336
|
+
return new RegExp(e, t);
|
|
3337
|
+
}
|
|
3338
|
+
var Ye;
|
|
3339
|
+
if (Qe) {
|
|
3340
|
+
var At = bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3341
|
+
Ye = function(t, n) {
|
|
3342
|
+
var r;
|
|
3343
|
+
At.lastIndex = n;
|
|
3344
|
+
var i = At.exec(t);
|
|
3345
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3346
|
+
};
|
|
3347
|
+
} else
|
|
3348
|
+
Ye = function(t, n) {
|
|
3349
|
+
for (var r = []; ; ) {
|
|
3350
|
+
var i = mn(t, n);
|
|
3351
|
+
if (i === void 0 || gn(i) || Ei(i))
|
|
3352
|
+
break;
|
|
3353
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3354
|
+
}
|
|
3355
|
+
return Je.apply(void 0, r);
|
|
3356
|
+
};
|
|
3357
|
+
var _i = (
|
|
3358
|
+
/** @class */
|
|
3359
|
+
function() {
|
|
3360
|
+
function e(t, n) {
|
|
3361
|
+
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;
|
|
3362
|
+
}
|
|
3363
|
+
return e.prototype.parse = function() {
|
|
3364
|
+
if (this.offset() !== 0)
|
|
3365
|
+
throw Error("parser can only be used once");
|
|
3366
|
+
return this.parseMessage(0, "", !1);
|
|
3367
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3368
|
+
for (var i = []; !this.isEOF(); ) {
|
|
3369
|
+
var o = this.char();
|
|
3370
|
+
if (o === 123) {
|
|
3371
|
+
var s = this.parseArgument(t, r);
|
|
3372
|
+
if (s.err)
|
|
3373
|
+
return s;
|
|
3374
|
+
i.push(s.val);
|
|
3375
|
+
} else {
|
|
3376
|
+
if (o === 125 && t > 0)
|
|
3377
|
+
break;
|
|
3378
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3379
|
+
var a = this.clonePosition();
|
|
3380
|
+
this.bump(), i.push({
|
|
3381
|
+
type: v.pound,
|
|
3382
|
+
location: g(a, this.clonePosition())
|
|
3383
|
+
});
|
|
3384
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3385
|
+
if (r)
|
|
3386
|
+
break;
|
|
3387
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3388
|
+
} else if (o === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3389
|
+
var s = this.parseTag(t, n);
|
|
3390
|
+
if (s.err)
|
|
3391
|
+
return s;
|
|
3392
|
+
i.push(s.val);
|
|
3393
|
+
} else {
|
|
3394
|
+
var s = this.parseLiteral(t, n);
|
|
3395
|
+
if (s.err)
|
|
3396
|
+
return s;
|
|
3397
|
+
i.push(s.val);
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
return { val: i, err: null };
|
|
3402
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3403
|
+
var r = this.clonePosition();
|
|
3404
|
+
this.bump();
|
|
3405
|
+
var i = this.parseTagName();
|
|
3406
|
+
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3407
|
+
return {
|
|
3408
|
+
val: {
|
|
3409
|
+
type: v.literal,
|
|
3410
|
+
value: "<".concat(i, "/>"),
|
|
3411
|
+
location: g(r, this.clonePosition())
|
|
3412
|
+
},
|
|
3413
|
+
err: null
|
|
3414
|
+
};
|
|
3415
|
+
if (this.bumpIf(">")) {
|
|
3416
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
3417
|
+
if (o.err)
|
|
3418
|
+
return o;
|
|
3419
|
+
var s = o.val, a = this.clonePosition();
|
|
3420
|
+
if (this.bumpIf("</")) {
|
|
3421
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3422
|
+
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3423
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
|
3424
|
+
return i !== h ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3425
|
+
val: {
|
|
3426
|
+
type: v.tag,
|
|
3427
|
+
value: i,
|
|
3428
|
+
children: s,
|
|
3429
|
+
location: g(r, this.clonePosition())
|
|
3430
|
+
},
|
|
3431
|
+
err: null
|
|
3432
|
+
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
3433
|
+
} else
|
|
3434
|
+
return this.error(b.UNCLOSED_TAG, g(r, this.clonePosition()));
|
|
3435
|
+
} else
|
|
3436
|
+
return this.error(b.INVALID_TAG, g(r, this.clonePosition()));
|
|
3437
|
+
}, e.prototype.parseTagName = function() {
|
|
3438
|
+
var t = this.offset();
|
|
3439
|
+
for (this.bump(); !this.isEOF() && xi(this.char()); )
|
|
3440
|
+
this.bump();
|
|
3441
|
+
return this.message.slice(t, this.offset());
|
|
3442
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3443
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3444
|
+
var o = this.tryParseQuote(n);
|
|
3445
|
+
if (o) {
|
|
3446
|
+
i += o;
|
|
3447
|
+
continue;
|
|
3448
|
+
}
|
|
3449
|
+
var s = this.tryParseUnquoted(t, n);
|
|
3450
|
+
if (s) {
|
|
3451
|
+
i += s;
|
|
3452
|
+
continue;
|
|
3453
|
+
}
|
|
3454
|
+
var a = this.tryParseLeftAngleBracket();
|
|
3455
|
+
if (a) {
|
|
3456
|
+
i += a;
|
|
3457
|
+
continue;
|
|
3458
|
+
}
|
|
3459
|
+
break;
|
|
3460
|
+
}
|
|
3461
|
+
var u = g(r, this.clonePosition());
|
|
3462
|
+
return {
|
|
3463
|
+
val: { type: v.literal, value: i, location: u },
|
|
3464
|
+
err: null
|
|
3465
|
+
};
|
|
3466
|
+
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3467
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3468
|
+
!vi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3469
|
+
}, e.prototype.tryParseQuote = function(t) {
|
|
3470
|
+
if (this.isEOF() || this.char() !== 39)
|
|
3471
|
+
return null;
|
|
3472
|
+
switch (this.peek()) {
|
|
3473
|
+
case 39:
|
|
3474
|
+
return this.bump(), this.bump(), "'";
|
|
3475
|
+
case 123:
|
|
3476
|
+
case 60:
|
|
3477
|
+
case 62:
|
|
3478
|
+
case 125:
|
|
3479
|
+
break;
|
|
3480
|
+
case 35:
|
|
3481
|
+
if (t === "plural" || t === "selectordinal")
|
|
3482
|
+
break;
|
|
3483
|
+
return null;
|
|
3484
|
+
default:
|
|
3485
|
+
return null;
|
|
3486
|
+
}
|
|
3487
|
+
this.bump();
|
|
3488
|
+
var n = [this.char()];
|
|
3489
|
+
for (this.bump(); !this.isEOF(); ) {
|
|
3490
|
+
var r = this.char();
|
|
3491
|
+
if (r === 39)
|
|
3492
|
+
if (this.peek() === 39)
|
|
3493
|
+
n.push(39), this.bump();
|
|
3494
|
+
else {
|
|
3495
|
+
this.bump();
|
|
3496
|
+
break;
|
|
3497
|
+
}
|
|
3498
|
+
else
|
|
3499
|
+
n.push(r);
|
|
3500
|
+
this.bump();
|
|
3501
|
+
}
|
|
3502
|
+
return Je.apply(void 0, n);
|
|
3503
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3504
|
+
if (this.isEOF())
|
|
3505
|
+
return null;
|
|
3506
|
+
var r = this.char();
|
|
3507
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Je(r));
|
|
3508
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3509
|
+
var r = this.clonePosition();
|
|
3510
|
+
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3511
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition()));
|
|
3512
|
+
if (this.char() === 125)
|
|
3513
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(r, this.clonePosition()));
|
|
3514
|
+
var i = this.parseIdentifierIfPossible().value;
|
|
3515
|
+
if (!i)
|
|
3516
|
+
return this.error(b.MALFORMED_ARGUMENT, g(r, this.clonePosition()));
|
|
3517
|
+
if (this.bumpSpace(), this.isEOF())
|
|
3518
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition()));
|
|
3519
|
+
switch (this.char()) {
|
|
3520
|
+
case 125:
|
|
3521
|
+
return this.bump(), {
|
|
3522
|
+
val: {
|
|
3523
|
+
type: v.argument,
|
|
3524
|
+
// value does not include the opening and closing braces.
|
|
3525
|
+
value: i,
|
|
3526
|
+
location: g(r, this.clonePosition())
|
|
3527
|
+
},
|
|
3528
|
+
err: null
|
|
3529
|
+
};
|
|
3530
|
+
case 44:
|
|
3531
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3532
|
+
default:
|
|
3533
|
+
return this.error(b.MALFORMED_ARGUMENT, g(r, this.clonePosition()));
|
|
3534
|
+
}
|
|
3535
|
+
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3536
|
+
var t = this.clonePosition(), n = this.offset(), r = Ye(this.message, n), i = n + r.length;
|
|
3537
|
+
this.bumpTo(i);
|
|
3538
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3539
|
+
return { value: r, location: s };
|
|
3540
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3541
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3542
|
+
switch (a) {
|
|
3543
|
+
case "":
|
|
3544
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, u));
|
|
3545
|
+
case "number":
|
|
3546
|
+
case "date":
|
|
3547
|
+
case "time": {
|
|
3548
|
+
this.bumpSpace();
|
|
3549
|
+
var h = null;
|
|
3550
|
+
if (this.bumpIf(",")) {
|
|
3551
|
+
this.bumpSpace();
|
|
3552
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3553
|
+
if (f.err)
|
|
3554
|
+
return f;
|
|
3555
|
+
var c = yi(f.val);
|
|
3556
|
+
if (c.length === 0)
|
|
3557
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3558
|
+
var d = g(l, this.clonePosition());
|
|
3559
|
+
h = { style: c, styleLocation: d };
|
|
3560
|
+
}
|
|
3561
|
+
var p = this.tryParseArgumentClose(i);
|
|
3562
|
+
if (p.err)
|
|
3563
|
+
return p;
|
|
3564
|
+
var m = g(i, this.clonePosition());
|
|
3565
|
+
if (h && Ht(h == null ? void 0 : h.style, "::", 0)) {
|
|
3566
|
+
var x = gi(h.style.slice(2));
|
|
3567
|
+
if (a === "number") {
|
|
3568
|
+
var f = this.parseNumberSkeletonFromString(x, h.styleLocation);
|
|
3569
|
+
return f.err ? f : {
|
|
3570
|
+
val: { type: v.number, value: r, location: m, style: f.val },
|
|
3571
|
+
err: null
|
|
3572
|
+
};
|
|
3573
|
+
} else {
|
|
3574
|
+
if (x.length === 0)
|
|
3575
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3576
|
+
var T = x;
|
|
3577
|
+
this.locale && (T = ii(x, this.locale));
|
|
3578
|
+
var c = {
|
|
3579
|
+
type: J.dateTime,
|
|
3580
|
+
pattern: T,
|
|
3581
|
+
location: h.styleLocation,
|
|
3582
|
+
parsedOptions: this.shouldParseSkeletons ? Jr(T) : {}
|
|
3583
|
+
}, w = a === "date" ? v.date : v.time;
|
|
3584
|
+
return {
|
|
3585
|
+
val: { type: w, value: r, location: m, style: c },
|
|
3586
|
+
err: null
|
|
3587
|
+
};
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
return {
|
|
3591
|
+
val: {
|
|
3592
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3593
|
+
value: r,
|
|
3594
|
+
location: m,
|
|
3595
|
+
style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
|
|
3596
|
+
},
|
|
3597
|
+
err: null
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
case "plural":
|
|
3601
|
+
case "selectordinal":
|
|
3602
|
+
case "select": {
|
|
3603
|
+
var E = this.clonePosition();
|
|
3604
|
+
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3605
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(E, _({}, E)));
|
|
3606
|
+
this.bumpSpace();
|
|
3607
|
+
var I = this.parseIdentifierIfPossible(), H = 0;
|
|
3608
|
+
if (a !== "select" && I.value === "offset") {
|
|
3609
|
+
if (!this.bumpIf(":"))
|
|
3610
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3611
|
+
this.bumpSpace();
|
|
3612
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3613
|
+
if (f.err)
|
|
3614
|
+
return f;
|
|
3615
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), H = f.val;
|
|
3616
|
+
}
|
|
3617
|
+
var U = this.tryParsePluralOrSelectOptions(t, a, n, I);
|
|
3618
|
+
if (U.err)
|
|
3619
|
+
return U;
|
|
3620
|
+
var p = this.tryParseArgumentClose(i);
|
|
3621
|
+
if (p.err)
|
|
3622
|
+
return p;
|
|
3623
|
+
var pe = g(i, this.clonePosition());
|
|
3624
|
+
return a === "select" ? {
|
|
3625
|
+
val: {
|
|
3626
|
+
type: v.select,
|
|
3627
|
+
value: r,
|
|
3628
|
+
options: Bt(U.val),
|
|
3629
|
+
location: pe
|
|
3630
|
+
},
|
|
3631
|
+
err: null
|
|
3632
|
+
} : {
|
|
3633
|
+
val: {
|
|
3634
|
+
type: v.plural,
|
|
3635
|
+
value: r,
|
|
3636
|
+
options: Bt(U.val),
|
|
3637
|
+
offset: H,
|
|
3638
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3639
|
+
location: pe
|
|
3640
|
+
},
|
|
3641
|
+
err: null
|
|
3642
|
+
};
|
|
3643
|
+
}
|
|
3644
|
+
default:
|
|
3645
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, u));
|
|
3646
|
+
}
|
|
3647
|
+
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3648
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3649
|
+
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3650
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3651
|
+
var r = this.char();
|
|
3652
|
+
switch (r) {
|
|
3653
|
+
case 39: {
|
|
3654
|
+
this.bump();
|
|
3655
|
+
var i = this.clonePosition();
|
|
3656
|
+
if (!this.bumpUntil("'"))
|
|
3657
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3658
|
+
this.bump();
|
|
3659
|
+
break;
|
|
3660
|
+
}
|
|
3661
|
+
case 123: {
|
|
3662
|
+
t += 1, this.bump();
|
|
3663
|
+
break;
|
|
3664
|
+
}
|
|
3665
|
+
case 125: {
|
|
3666
|
+
if (t > 0)
|
|
3667
|
+
t -= 1;
|
|
3668
|
+
else
|
|
3669
|
+
return {
|
|
3670
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3671
|
+
err: null
|
|
3672
|
+
};
|
|
3673
|
+
break;
|
|
3674
|
+
}
|
|
3675
|
+
default:
|
|
3676
|
+
this.bump();
|
|
3677
|
+
break;
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
return {
|
|
3681
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3682
|
+
err: null
|
|
3683
|
+
};
|
|
3684
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3685
|
+
var r = [];
|
|
3686
|
+
try {
|
|
3687
|
+
r = Kr(t);
|
|
3688
|
+
} catch (i) {
|
|
3689
|
+
return this.error(b.INVALID_NUMBER_SKELETON, n);
|
|
3690
|
+
}
|
|
3691
|
+
return {
|
|
3692
|
+
val: {
|
|
3693
|
+
type: J.number,
|
|
3694
|
+
tokens: r,
|
|
3695
|
+
location: n,
|
|
3696
|
+
parsedOptions: this.shouldParseSkeletons ? ri(r) : {}
|
|
3697
|
+
},
|
|
3698
|
+
err: null
|
|
3699
|
+
};
|
|
3700
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3701
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
|
3702
|
+
if (h.length === 0) {
|
|
3703
|
+
var f = this.clonePosition();
|
|
3704
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3705
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3706
|
+
if (c.err)
|
|
3707
|
+
return c;
|
|
3708
|
+
l = g(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
|
|
3709
|
+
} else
|
|
3710
|
+
break;
|
|
3711
|
+
}
|
|
3712
|
+
if (u.has(h))
|
|
3713
|
+
return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3714
|
+
h === "other" && (s = !0), this.bumpSpace();
|
|
3715
|
+
var d = this.clonePosition();
|
|
3716
|
+
if (!this.bumpIf("{"))
|
|
3717
|
+
return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3718
|
+
var p = this.parseMessage(t + 1, n, r);
|
|
3719
|
+
if (p.err)
|
|
3720
|
+
return p;
|
|
3721
|
+
var m = this.tryParseArgumentClose(d);
|
|
3722
|
+
if (m.err)
|
|
3723
|
+
return m;
|
|
3724
|
+
a.push([
|
|
3725
|
+
h,
|
|
3726
|
+
{
|
|
3727
|
+
value: p.val,
|
|
3728
|
+
location: g(d, this.clonePosition())
|
|
3729
|
+
}
|
|
3730
|
+
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
3731
|
+
}
|
|
3732
|
+
return a.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3733
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3734
|
+
var r = 1, i = this.clonePosition();
|
|
3735
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3736
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3737
|
+
var a = this.char();
|
|
3738
|
+
if (a >= 48 && a <= 57)
|
|
3739
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3740
|
+
else
|
|
3741
|
+
break;
|
|
3742
|
+
}
|
|
3743
|
+
var u = g(i, this.clonePosition());
|
|
3744
|
+
return o ? (s *= r, mi(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
|
|
3745
|
+
}, e.prototype.offset = function() {
|
|
3746
|
+
return this.position.offset;
|
|
3747
|
+
}, e.prototype.isEOF = function() {
|
|
3748
|
+
return this.offset() === this.message.length;
|
|
3749
|
+
}, e.prototype.clonePosition = function() {
|
|
3750
|
+
return {
|
|
3751
|
+
offset: this.position.offset,
|
|
3752
|
+
line: this.position.line,
|
|
3753
|
+
column: this.position.column
|
|
3754
|
+
};
|
|
3755
|
+
}, e.prototype.char = function() {
|
|
3756
|
+
var t = this.position.offset;
|
|
3757
|
+
if (t >= this.message.length)
|
|
3758
|
+
throw Error("out of bound");
|
|
3759
|
+
var n = mn(this.message, t);
|
|
3760
|
+
if (n === void 0)
|
|
3761
|
+
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3762
|
+
return n;
|
|
3763
|
+
}, e.prototype.error = function(t, n) {
|
|
3764
|
+
return {
|
|
3765
|
+
val: null,
|
|
3766
|
+
err: {
|
|
3767
|
+
kind: t,
|
|
3768
|
+
message: this.message,
|
|
3769
|
+
location: n
|
|
3770
|
+
}
|
|
3771
|
+
};
|
|
3772
|
+
}, e.prototype.bump = function() {
|
|
3773
|
+
if (!this.isEOF()) {
|
|
3774
|
+
var t = this.char();
|
|
3775
|
+
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);
|
|
3776
|
+
}
|
|
3777
|
+
}, e.prototype.bumpIf = function(t) {
|
|
3778
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3779
|
+
for (var n = 0; n < t.length; n++)
|
|
3780
|
+
this.bump();
|
|
3781
|
+
return !0;
|
|
3782
|
+
}
|
|
3783
|
+
return !1;
|
|
3784
|
+
}, e.prototype.bumpUntil = function(t) {
|
|
3785
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3786
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3787
|
+
}, e.prototype.bumpTo = function(t) {
|
|
3788
|
+
if (this.offset() > t)
|
|
3789
|
+
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3790
|
+
for (t = Math.min(t, this.message.length); ; ) {
|
|
3791
|
+
var n = this.offset();
|
|
3792
|
+
if (n === t)
|
|
3793
|
+
break;
|
|
3794
|
+
if (n > t)
|
|
3795
|
+
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3796
|
+
if (this.bump(), this.isEOF())
|
|
3797
|
+
break;
|
|
3798
|
+
}
|
|
3799
|
+
}, e.prototype.bumpSpace = function() {
|
|
3800
|
+
for (; !this.isEOF() && gn(this.char()); )
|
|
3801
|
+
this.bump();
|
|
3802
|
+
}, e.prototype.peek = function() {
|
|
3803
|
+
if (this.isEOF())
|
|
3804
|
+
return null;
|
|
3805
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3806
|
+
return r != null ? r : null;
|
|
3807
|
+
}, e;
|
|
3808
|
+
}()
|
|
3809
|
+
);
|
|
3810
|
+
function Ke(e) {
|
|
3811
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3812
|
+
}
|
|
3813
|
+
function vi(e) {
|
|
3814
|
+
return Ke(e) || e === 47;
|
|
3815
|
+
}
|
|
3816
|
+
function xi(e) {
|
|
3817
|
+
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;
|
|
3818
|
+
}
|
|
3819
|
+
function gn(e) {
|
|
3820
|
+
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3821
|
+
}
|
|
3822
|
+
function Ei(e) {
|
|
3823
|
+
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;
|
|
3824
|
+
}
|
|
3825
|
+
function et(e) {
|
|
3826
|
+
e.forEach(function(t) {
|
|
3827
|
+
if (delete t.location, an(t) || un(t))
|
|
3828
|
+
for (var n in t.options)
|
|
3829
|
+
delete t.options[n].location, et(t.options[n].value);
|
|
3830
|
+
else rn(t) && ln(t.style) || (on(t) || sn(t)) && qe(t.style) ? delete t.style.location : hn(t) && et(t.children);
|
|
3831
|
+
});
|
|
3832
|
+
}
|
|
3833
|
+
function Si(e, t) {
|
|
3834
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3835
|
+
var n = new _i(e, t).parse();
|
|
3836
|
+
if (n.err) {
|
|
3837
|
+
var r = SyntaxError(b[n.err.kind]);
|
|
3838
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3839
|
+
}
|
|
3840
|
+
return t != null && t.captureLocation || et(n.val), n.val;
|
|
3841
|
+
}
|
|
3842
|
+
var Y;
|
|
3843
|
+
(function(e) {
|
|
3844
|
+
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3845
|
+
})(Y || (Y = {}));
|
|
3846
|
+
var Oe = (
|
|
3847
|
+
/** @class */
|
|
3848
|
+
function(e) {
|
|
3849
|
+
R(t, e);
|
|
3850
|
+
function t(n, r, i) {
|
|
3851
|
+
var o = e.call(this, n) || this;
|
|
3852
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3853
|
+
}
|
|
3854
|
+
return t.prototype.toString = function() {
|
|
3855
|
+
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3856
|
+
}, t;
|
|
3857
|
+
}(Error)
|
|
3858
|
+
), Pt = (
|
|
3859
|
+
/** @class */
|
|
3860
|
+
function(e) {
|
|
3861
|
+
R(t, e);
|
|
3862
|
+
function t(n, r, i, o) {
|
|
3863
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3864
|
+
}
|
|
3865
|
+
return t;
|
|
3866
|
+
}(Oe)
|
|
3867
|
+
), Ti = (
|
|
3868
|
+
/** @class */
|
|
3869
|
+
function(e) {
|
|
3870
|
+
R(t, e);
|
|
3871
|
+
function t(n, r, i) {
|
|
3872
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Y.INVALID_VALUE, i) || this;
|
|
3873
|
+
}
|
|
3874
|
+
return t;
|
|
3875
|
+
}(Oe)
|
|
3876
|
+
), wi = (
|
|
3877
|
+
/** @class */
|
|
3878
|
+
function(e) {
|
|
3879
|
+
R(t, e);
|
|
3880
|
+
function t(n, r) {
|
|
3881
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Y.MISSING_VALUE, r) || this;
|
|
3882
|
+
}
|
|
3883
|
+
return t;
|
|
3884
|
+
}(Oe)
|
|
3885
|
+
), S;
|
|
3886
|
+
(function(e) {
|
|
3887
|
+
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3888
|
+
})(S || (S = {}));
|
|
3889
|
+
function Hi(e) {
|
|
3890
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3891
|
+
var r = t[t.length - 1];
|
|
3892
|
+
return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
|
|
3893
|
+
}, []);
|
|
3894
|
+
}
|
|
3895
|
+
function Bi(e) {
|
|
3896
|
+
return typeof e == "function";
|
|
3897
|
+
}
|
|
3898
|
+
function xe(e, t, n, r, i, o, s) {
|
|
3899
|
+
if (e.length === 1 && Et(e[0]))
|
|
3900
|
+
return [
|
|
3901
|
+
{
|
|
3902
|
+
type: S.literal,
|
|
3903
|
+
value: e[0].value
|
|
3904
|
+
}
|
|
3905
|
+
];
|
|
3906
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3907
|
+
var l = h[u];
|
|
3908
|
+
if (Et(l)) {
|
|
3909
|
+
a.push({
|
|
3910
|
+
type: S.literal,
|
|
3911
|
+
value: l.value
|
|
3912
|
+
});
|
|
3913
|
+
continue;
|
|
3914
|
+
}
|
|
3915
|
+
if (qr(l)) {
|
|
3916
|
+
typeof o == "number" && a.push({
|
|
3917
|
+
type: S.literal,
|
|
3918
|
+
value: n.getNumberFormat(t).format(o)
|
|
3919
|
+
});
|
|
3920
|
+
continue;
|
|
3921
|
+
}
|
|
3922
|
+
var f = l.value;
|
|
3923
|
+
if (!(i && f in i))
|
|
3924
|
+
throw new wi(f, s);
|
|
3925
|
+
var c = i[f];
|
|
3926
|
+
if (Zr(l)) {
|
|
3927
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3928
|
+
type: typeof c == "string" ? S.literal : S.object,
|
|
3929
|
+
value: c
|
|
3930
|
+
});
|
|
3931
|
+
continue;
|
|
3932
|
+
}
|
|
3933
|
+
if (on(l)) {
|
|
3934
|
+
var d = typeof l.style == "string" ? r.date[l.style] : qe(l.style) ? l.style.parsedOptions : void 0;
|
|
3935
|
+
a.push({
|
|
3936
|
+
type: S.literal,
|
|
3937
|
+
value: n.getDateTimeFormat(t, d).format(c)
|
|
3938
|
+
});
|
|
3939
|
+
continue;
|
|
3940
|
+
}
|
|
3941
|
+
if (sn(l)) {
|
|
3942
|
+
var d = typeof l.style == "string" ? r.time[l.style] : qe(l.style) ? l.style.parsedOptions : r.time.medium;
|
|
3943
|
+
a.push({
|
|
3944
|
+
type: S.literal,
|
|
3945
|
+
value: n.getDateTimeFormat(t, d).format(c)
|
|
3946
|
+
});
|
|
3947
|
+
continue;
|
|
3948
|
+
}
|
|
3949
|
+
if (rn(l)) {
|
|
3950
|
+
var d = typeof l.style == "string" ? r.number[l.style] : ln(l.style) ? l.style.parsedOptions : void 0;
|
|
3951
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3952
|
+
type: S.literal,
|
|
3953
|
+
value: n.getNumberFormat(t, d).format(c)
|
|
3954
|
+
});
|
|
3955
|
+
continue;
|
|
3956
|
+
}
|
|
3957
|
+
if (hn(l)) {
|
|
3958
|
+
var p = l.children, m = l.value, x = i[m];
|
|
3959
|
+
if (!Bi(x))
|
|
3960
|
+
throw new Ti(m, "function", s);
|
|
3961
|
+
var T = xe(p, t, n, r, i, o), w = x(T.map(function(H) {
|
|
3962
|
+
return H.value;
|
|
3963
|
+
}));
|
|
3964
|
+
Array.isArray(w) || (w = [w]), a.push.apply(a, w.map(function(H) {
|
|
3965
|
+
return {
|
|
3966
|
+
type: typeof H == "string" ? S.literal : S.object,
|
|
3967
|
+
value: H
|
|
3968
|
+
};
|
|
3969
|
+
}));
|
|
3970
|
+
}
|
|
3971
|
+
if (an(l)) {
|
|
3972
|
+
var E = l.options[c] || l.options.other;
|
|
3973
|
+
if (!E)
|
|
3974
|
+
throw new Pt(l.value, c, Object.keys(l.options), s);
|
|
3975
|
+
a.push.apply(a, xe(E.value, t, n, r, i));
|
|
3976
|
+
continue;
|
|
3977
|
+
}
|
|
3978
|
+
if (un(l)) {
|
|
3979
|
+
var E = l.options["=".concat(c)];
|
|
3980
|
+
if (!E) {
|
|
3981
|
+
if (!Intl.PluralRules)
|
|
3982
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3983
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3984
|
+
`, Y.MISSING_INTL_API, s);
|
|
3985
|
+
var I = n.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3986
|
+
E = l.options[I] || l.options.other;
|
|
3987
|
+
}
|
|
3988
|
+
if (!E)
|
|
3989
|
+
throw new Pt(l.value, c, Object.keys(l.options), s);
|
|
3990
|
+
a.push.apply(a, xe(E.value, t, n, r, i, c - (l.offset || 0)));
|
|
3991
|
+
continue;
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
return Hi(a);
|
|
3995
|
+
}
|
|
3996
|
+
function Ai(e, t) {
|
|
3997
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3998
|
+
return n[r] = _(_({}, e[r]), t[r] || {}), n;
|
|
3999
|
+
}, {})) : e;
|
|
4000
|
+
}
|
|
4001
|
+
function Pi(e, t) {
|
|
4002
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
4003
|
+
return n[r] = Ai(e[r], t[r]), n;
|
|
4004
|
+
}, _({}, e)) : e;
|
|
4005
|
+
}
|
|
4006
|
+
function De(e) {
|
|
4007
|
+
return {
|
|
4008
|
+
create: function() {
|
|
4009
|
+
return {
|
|
4010
|
+
get: function(t) {
|
|
4011
|
+
return e[t];
|
|
4012
|
+
},
|
|
4013
|
+
set: function(t, n) {
|
|
4014
|
+
e[t] = n;
|
|
4015
|
+
}
|
|
4016
|
+
};
|
|
4017
|
+
}
|
|
4018
|
+
};
|
|
4019
|
+
}
|
|
4020
|
+
function Oi(e) {
|
|
4021
|
+
return e === void 0 && (e = {
|
|
4022
|
+
number: {},
|
|
4023
|
+
dateTime: {},
|
|
4024
|
+
pluralRules: {}
|
|
4025
|
+
}), {
|
|
4026
|
+
getNumberFormat: Re(function() {
|
|
4027
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4028
|
+
n[r] = arguments[r];
|
|
4029
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], n, !1)))();
|
|
4030
|
+
}, {
|
|
4031
|
+
cache: De(e.number),
|
|
4032
|
+
strategy: Ue.variadic
|
|
4033
|
+
}),
|
|
4034
|
+
getDateTimeFormat: Re(function() {
|
|
4035
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4036
|
+
n[r] = arguments[r];
|
|
4037
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], n, !1)))();
|
|
4038
|
+
}, {
|
|
4039
|
+
cache: De(e.dateTime),
|
|
4040
|
+
strategy: Ue.variadic
|
|
4041
|
+
}),
|
|
4042
|
+
getPluralRules: Re(function() {
|
|
4043
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4044
|
+
n[r] = arguments[r];
|
|
4045
|
+
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], n, !1)))();
|
|
4046
|
+
}, {
|
|
4047
|
+
cache: De(e.pluralRules),
|
|
4048
|
+
strategy: Ue.variadic
|
|
4049
|
+
})
|
|
4050
|
+
};
|
|
4051
|
+
}
|
|
4052
|
+
var Ii = (
|
|
4053
|
+
/** @class */
|
|
4054
|
+
function() {
|
|
4055
|
+
function e(t, n, r, i) {
|
|
4056
|
+
n === void 0 && (n = e.defaultLocale);
|
|
4057
|
+
var o = this;
|
|
4058
|
+
if (this.formatterCache = {
|
|
4059
|
+
number: {},
|
|
4060
|
+
dateTime: {},
|
|
4061
|
+
pluralRules: {}
|
|
4062
|
+
}, this.format = function(u) {
|
|
4063
|
+
var h = o.formatToParts(u);
|
|
4064
|
+
if (h.length === 1)
|
|
4065
|
+
return h[0].value;
|
|
4066
|
+
var l = h.reduce(function(f, c) {
|
|
4067
|
+
return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4068
|
+
}, []);
|
|
4069
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
4070
|
+
}, this.formatToParts = function(u) {
|
|
4071
|
+
return xe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
4072
|
+
}, this.resolvedOptions = function() {
|
|
4073
|
+
var u;
|
|
4074
|
+
return {
|
|
4075
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4076
|
+
};
|
|
4077
|
+
}, this.getAst = function() {
|
|
4078
|
+
return o.ast;
|
|
4079
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
4080
|
+
if (this.message = t, !e.__parse)
|
|
4081
|
+
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4082
|
+
var s = i || {};
|
|
4083
|
+
s.formatters;
|
|
4084
|
+
var a = hr(s, ["formatters"]);
|
|
4085
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
4086
|
+
} else
|
|
4087
|
+
this.ast = t;
|
|
4088
|
+
if (!Array.isArray(this.ast))
|
|
4089
|
+
throw new TypeError("A message must be provided as a String or AST.");
|
|
4090
|
+
this.formats = Pi(e.formats, r), this.formatters = i && i.formatters || Oi(this.formatterCache);
|
|
4091
|
+
}
|
|
4092
|
+
return Object.defineProperty(e, "defaultLocale", {
|
|
4093
|
+
get: function() {
|
|
4094
|
+
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
4095
|
+
},
|
|
4096
|
+
enumerable: !1,
|
|
4097
|
+
configurable: !0
|
|
4098
|
+
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4099
|
+
if (typeof Intl.Locale != "undefined") {
|
|
4100
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4101
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4102
|
+
}
|
|
4103
|
+
}, e.__parse = Si, e.formats = {
|
|
4104
|
+
number: {
|
|
4105
|
+
integer: {
|
|
4106
|
+
maximumFractionDigits: 0
|
|
4107
|
+
},
|
|
4108
|
+
currency: {
|
|
4109
|
+
style: "currency"
|
|
4110
|
+
},
|
|
4111
|
+
percent: {
|
|
4112
|
+
style: "percent"
|
|
4113
|
+
}
|
|
4114
|
+
},
|
|
4115
|
+
date: {
|
|
4116
|
+
short: {
|
|
4117
|
+
month: "numeric",
|
|
4118
|
+
day: "numeric",
|
|
4119
|
+
year: "2-digit"
|
|
4120
|
+
},
|
|
4121
|
+
medium: {
|
|
4122
|
+
month: "short",
|
|
4123
|
+
day: "numeric",
|
|
4124
|
+
year: "numeric"
|
|
4125
|
+
},
|
|
4126
|
+
long: {
|
|
4127
|
+
month: "long",
|
|
4128
|
+
day: "numeric",
|
|
4129
|
+
year: "numeric"
|
|
4130
|
+
},
|
|
4131
|
+
full: {
|
|
4132
|
+
weekday: "long",
|
|
4133
|
+
month: "long",
|
|
4134
|
+
day: "numeric",
|
|
4135
|
+
year: "numeric"
|
|
4136
|
+
}
|
|
4137
|
+
},
|
|
4138
|
+
time: {
|
|
4139
|
+
short: {
|
|
4140
|
+
hour: "numeric",
|
|
4141
|
+
minute: "numeric"
|
|
4142
|
+
},
|
|
4143
|
+
medium: {
|
|
4144
|
+
hour: "numeric",
|
|
4145
|
+
minute: "numeric",
|
|
4146
|
+
second: "numeric"
|
|
4147
|
+
},
|
|
4148
|
+
long: {
|
|
4149
|
+
hour: "numeric",
|
|
4150
|
+
minute: "numeric",
|
|
4151
|
+
second: "numeric",
|
|
4152
|
+
timeZoneName: "short"
|
|
4153
|
+
},
|
|
4154
|
+
full: {
|
|
4155
|
+
hour: "numeric",
|
|
4156
|
+
minute: "numeric",
|
|
4157
|
+
second: "numeric",
|
|
4158
|
+
timeZoneName: "short"
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
}, e;
|
|
4162
|
+
}()
|
|
4163
|
+
);
|
|
4164
|
+
function Li(e, t) {
|
|
4165
|
+
if (t == null)
|
|
4166
|
+
return;
|
|
4167
|
+
if (t in e)
|
|
4168
|
+
return e[t];
|
|
4169
|
+
const n = t.split(".");
|
|
4170
|
+
let r = e;
|
|
4171
|
+
for (let i = 0; i < n.length; i++)
|
|
4172
|
+
if (typeof r == "object") {
|
|
4173
|
+
if (i > 0) {
|
|
4174
|
+
const o = n.slice(i, n.length).join(".");
|
|
4175
|
+
if (o in r) {
|
|
4176
|
+
r = r[o];
|
|
4177
|
+
break;
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
r = r[n[i]];
|
|
4181
|
+
} else
|
|
4182
|
+
r = void 0;
|
|
4183
|
+
return r;
|
|
4184
|
+
}
|
|
4185
|
+
const G = {}, Ni = (e, t, n) => n && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = n), n), yn = (e, t) => {
|
|
4186
|
+
if (t == null)
|
|
4187
|
+
return;
|
|
4188
|
+
if (t in G && e in G[t])
|
|
4189
|
+
return G[t][e];
|
|
4190
|
+
const n = Ie(t);
|
|
4191
|
+
for (let r = 0; r < n.length; r++) {
|
|
4192
|
+
const i = n[r], o = Mi(i, e);
|
|
4193
|
+
if (o)
|
|
4194
|
+
return Ni(e, t, o);
|
|
4195
|
+
}
|
|
4196
|
+
};
|
|
4197
|
+
let ot;
|
|
4198
|
+
const de = Pe({});
|
|
4199
|
+
function Ci(e) {
|
|
4200
|
+
return ot[e] || null;
|
|
4201
|
+
}
|
|
4202
|
+
function _n(e) {
|
|
4203
|
+
return e in ot;
|
|
4204
|
+
}
|
|
4205
|
+
function Mi(e, t) {
|
|
4206
|
+
if (!_n(e))
|
|
4207
|
+
return null;
|
|
4208
|
+
const n = Ci(e);
|
|
4209
|
+
return Li(n, t);
|
|
4210
|
+
}
|
|
4211
|
+
function $i(e) {
|
|
4212
|
+
if (e == null)
|
|
4213
|
+
return;
|
|
4214
|
+
const t = Ie(e);
|
|
4215
|
+
for (let n = 0; n < t.length; n++) {
|
|
4216
|
+
const r = t[n];
|
|
4217
|
+
if (_n(r))
|
|
4218
|
+
return r;
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
function vn(e, ...t) {
|
|
4222
|
+
delete G[e], de.update((n) => (n[e] = Dr.all([n[e] || {}, ...t]), n));
|
|
4223
|
+
}
|
|
4224
|
+
ee(
|
|
4225
|
+
[de],
|
|
4226
|
+
([e]) => Object.keys(e)
|
|
4227
|
+
);
|
|
4228
|
+
de.subscribe((e) => ot = e);
|
|
4229
|
+
const Ee = {};
|
|
4230
|
+
function Ri(e, t) {
|
|
4231
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4232
|
+
}
|
|
4233
|
+
function xn(e) {
|
|
4234
|
+
return Ee[e];
|
|
4235
|
+
}
|
|
4236
|
+
function Ui(e) {
|
|
4237
|
+
return Ie(e).map((t) => {
|
|
4238
|
+
const n = xn(t);
|
|
4239
|
+
return [t, n ? [...n] : []];
|
|
4240
|
+
}).filter(([, t]) => t.length > 0);
|
|
4241
|
+
}
|
|
4242
|
+
function tt(e) {
|
|
4243
|
+
return e == null ? !1 : Ie(e).some(
|
|
4244
|
+
(t) => {
|
|
4245
|
+
var n;
|
|
4246
|
+
return (n = xn(t)) == null ? void 0 : n.size;
|
|
4247
|
+
}
|
|
4248
|
+
);
|
|
4249
|
+
}
|
|
4250
|
+
function Gi(e, t) {
|
|
4251
|
+
return Promise.all(
|
|
4252
|
+
t.map((r) => (Ri(e, r), r().then((i) => i.default || i)))
|
|
4253
|
+
).then((r) => vn(e, ...r));
|
|
4254
|
+
}
|
|
4255
|
+
const oe = {};
|
|
4256
|
+
function En(e) {
|
|
4257
|
+
if (!tt(e))
|
|
4258
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
4259
|
+
const t = Ui(e);
|
|
4260
|
+
return oe[e] = Promise.all(
|
|
4261
|
+
t.map(
|
|
4262
|
+
([n, r]) => Gi(n, r)
|
|
4263
|
+
)
|
|
4264
|
+
).then(() => {
|
|
4265
|
+
if (tt(e))
|
|
4266
|
+
return En(e);
|
|
4267
|
+
delete oe[e];
|
|
4268
|
+
}), oe[e];
|
|
4269
|
+
}
|
|
4270
|
+
const Di = {
|
|
4271
|
+
number: {
|
|
4272
|
+
scientific: { notation: "scientific" },
|
|
4273
|
+
engineering: { notation: "engineering" },
|
|
4274
|
+
compactLong: { notation: "compact", compactDisplay: "long" },
|
|
4275
|
+
compactShort: { notation: "compact", compactDisplay: "short" }
|
|
4276
|
+
},
|
|
4277
|
+
date: {
|
|
4278
|
+
short: { month: "numeric", day: "numeric", year: "2-digit" },
|
|
4279
|
+
medium: { month: "short", day: "numeric", year: "numeric" },
|
|
4280
|
+
long: { month: "long", day: "numeric", year: "numeric" },
|
|
4281
|
+
full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
|
|
4282
|
+
},
|
|
4283
|
+
time: {
|
|
4284
|
+
short: { hour: "numeric", minute: "numeric" },
|
|
4285
|
+
medium: { hour: "numeric", minute: "numeric", second: "numeric" },
|
|
4286
|
+
long: {
|
|
4287
|
+
hour: "numeric",
|
|
4288
|
+
minute: "numeric",
|
|
4289
|
+
second: "numeric",
|
|
4290
|
+
timeZoneName: "short"
|
|
4291
|
+
},
|
|
4292
|
+
full: {
|
|
4293
|
+
hour: "numeric",
|
|
4294
|
+
minute: "numeric",
|
|
4295
|
+
second: "numeric",
|
|
4296
|
+
timeZoneName: "short"
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
}, Fi = {
|
|
4300
|
+
fallbackLocale: null,
|
|
4301
|
+
loadingDelay: 200,
|
|
4302
|
+
formats: Di,
|
|
4303
|
+
warnOnMissingMessages: !0,
|
|
4304
|
+
handleMissingMessage: void 0,
|
|
4305
|
+
ignoreTag: !0
|
|
4306
|
+
}, ji = Fi;
|
|
4307
|
+
function K() {
|
|
4308
|
+
return ji;
|
|
4309
|
+
}
|
|
4310
|
+
const Fe = Pe(!1);
|
|
4311
|
+
var ki = Object.defineProperty, Vi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, zi = Object.prototype.propertyIsEnumerable, It = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Zi = (e, t) => {
|
|
4312
|
+
for (var n in t || (t = {}))
|
|
4313
|
+
Wi.call(t, n) && It(e, n, t[n]);
|
|
4314
|
+
if (Ot)
|
|
4315
|
+
for (var n of Ot(t))
|
|
4316
|
+
zi.call(t, n) && It(e, n, t[n]);
|
|
4317
|
+
return e;
|
|
4318
|
+
}, qi = (e, t) => Vi(e, Xi(t));
|
|
4319
|
+
let nt;
|
|
4320
|
+
const He = Pe(null);
|
|
4321
|
+
function Lt(e) {
|
|
4322
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4323
|
+
}
|
|
4324
|
+
function Ie(e, t = K().fallbackLocale) {
|
|
4325
|
+
const n = Lt(e);
|
|
4326
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Lt(t)])] : n;
|
|
4327
|
+
}
|
|
4328
|
+
function k() {
|
|
4329
|
+
return nt != null ? nt : void 0;
|
|
4330
|
+
}
|
|
4331
|
+
He.subscribe((e) => {
|
|
4332
|
+
nt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4333
|
+
});
|
|
4334
|
+
const Qi = (e) => {
|
|
4335
|
+
if (e && $i(e) && tt(e)) {
|
|
4336
|
+
const { loadingDelay: t } = K();
|
|
4337
|
+
let n;
|
|
4338
|
+
return typeof window != "undefined" && k() != null && t ? n = window.setTimeout(
|
|
4339
|
+
() => Fe.set(!0),
|
|
4340
|
+
t
|
|
4341
|
+
) : Fe.set(!0), En(e).then(() => {
|
|
4342
|
+
He.set(e);
|
|
4343
|
+
}).finally(() => {
|
|
4344
|
+
clearTimeout(n), Fe.set(!1);
|
|
4345
|
+
});
|
|
4346
|
+
}
|
|
4347
|
+
return He.set(e);
|
|
4348
|
+
}, te = qi(Zi({}, He), {
|
|
4349
|
+
set: Qi
|
|
4350
|
+
}), Le = (e) => {
|
|
4351
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
4352
|
+
return (r) => {
|
|
4353
|
+
const i = JSON.stringify(r);
|
|
4354
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4355
|
+
};
|
|
4356
|
+
};
|
|
4357
|
+
var Ji = Object.defineProperty, Be = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, st = (e, t) => {
|
|
4358
|
+
for (var n in t || (t = {}))
|
|
4359
|
+
Sn.call(t, n) && Nt(e, n, t[n]);
|
|
4360
|
+
if (Be)
|
|
4361
|
+
for (var n of Be(t))
|
|
4362
|
+
Tn.call(t, n) && Nt(e, n, t[n]);
|
|
4363
|
+
return e;
|
|
4364
|
+
}, ne = (e, t) => {
|
|
4365
|
+
var n = {};
|
|
4366
|
+
for (var r in e)
|
|
4367
|
+
Sn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4368
|
+
if (e != null && Be)
|
|
4369
|
+
for (var r of Be(e))
|
|
4370
|
+
t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
|
|
4371
|
+
return n;
|
|
4372
|
+
};
|
|
4373
|
+
const he = (e, t) => {
|
|
4374
|
+
const { formats: n } = K();
|
|
4375
|
+
if (e in n && t in n[e])
|
|
4376
|
+
return n[e][t];
|
|
4377
|
+
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4378
|
+
}, Yi = Le(
|
|
4379
|
+
(e) => {
|
|
4380
|
+
var t = e, { locale: n, format: r } = t, i = ne(t, ["locale", "format"]);
|
|
4381
|
+
if (n == null)
|
|
4382
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4383
|
+
return r && (i = he("number", r)), new Intl.NumberFormat(n, i);
|
|
4384
|
+
}
|
|
4385
|
+
), Ki = Le(
|
|
4386
|
+
(e) => {
|
|
4387
|
+
var t = e, { locale: n, format: r } = t, i = ne(t, ["locale", "format"]);
|
|
4388
|
+
if (n == null)
|
|
4389
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4390
|
+
return r ? i = he("date", r) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4391
|
+
}
|
|
4392
|
+
), eo = Le(
|
|
4393
|
+
(e) => {
|
|
4394
|
+
var t = e, { locale: n, format: r } = t, i = ne(t, ["locale", "format"]);
|
|
4395
|
+
if (n == null)
|
|
4396
|
+
throw new Error(
|
|
4397
|
+
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4398
|
+
);
|
|
4399
|
+
return r ? i = he("time", r) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4400
|
+
}
|
|
4401
|
+
), to = (e = {}) => {
|
|
4402
|
+
var t = e, {
|
|
4403
|
+
locale: n = k()
|
|
4404
|
+
} = t, r = ne(t, [
|
|
4405
|
+
"locale"
|
|
4406
|
+
]);
|
|
4407
|
+
return Yi(st({ locale: n }, r));
|
|
4408
|
+
}, no = (e = {}) => {
|
|
4409
|
+
var t = e, {
|
|
4410
|
+
locale: n = k()
|
|
4411
|
+
} = t, r = ne(t, [
|
|
4412
|
+
"locale"
|
|
4413
|
+
]);
|
|
4414
|
+
return Ki(st({ locale: n }, r));
|
|
4415
|
+
}, ro = (e = {}) => {
|
|
4416
|
+
var t = e, {
|
|
4417
|
+
locale: n = k()
|
|
4418
|
+
} = t, r = ne(t, [
|
|
4419
|
+
"locale"
|
|
4420
|
+
]);
|
|
4421
|
+
return eo(st({ locale: n }, r));
|
|
4422
|
+
}, io = Le(
|
|
4423
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4424
|
+
(e, t = k()) => new Ii(e, t, K().formats, {
|
|
4425
|
+
ignoreTag: K().ignoreTag
|
|
4426
|
+
})
|
|
4427
|
+
), oo = (e, t = {}) => {
|
|
4428
|
+
var n, r, i, o;
|
|
4429
|
+
let s = t;
|
|
4430
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
4431
|
+
const {
|
|
4432
|
+
values: a,
|
|
4433
|
+
locale: u = k(),
|
|
4434
|
+
default: h
|
|
4435
|
+
} = s;
|
|
4436
|
+
if (u == null)
|
|
4437
|
+
throw new Error(
|
|
4438
|
+
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4439
|
+
);
|
|
4440
|
+
let l = yn(e, u);
|
|
4441
|
+
if (!l)
|
|
4442
|
+
l = (o = (i = (r = (n = K()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4443
|
+
else if (typeof l != "string")
|
|
4444
|
+
return console.warn(
|
|
4445
|
+
`[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.`
|
|
4446
|
+
), l;
|
|
4447
|
+
if (!a)
|
|
4448
|
+
return l;
|
|
4449
|
+
let f = l;
|
|
4450
|
+
try {
|
|
4451
|
+
f = io(l, u).format(a);
|
|
4452
|
+
} catch (c) {
|
|
4453
|
+
c instanceof Error && console.warn(
|
|
4454
|
+
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4455
|
+
c.message
|
|
4456
|
+
);
|
|
4457
|
+
}
|
|
4458
|
+
return f;
|
|
4459
|
+
}, so = (e, t) => ro(t).format(e), ao = (e, t) => no(t).format(e), uo = (e, t) => to(t).format(e), ho = (e, t = k()) => yn(e, t), lo = ee([te, de], () => oo);
|
|
4460
|
+
ee([te], () => so);
|
|
4461
|
+
ee([te], () => ao);
|
|
4462
|
+
ee([te], () => uo);
|
|
4463
|
+
ee([te, de], () => ho);
|
|
4464
|
+
window.emWidgets = { topic: Sr };
|
|
4465
|
+
const zo = (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)), fo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4466
|
+
function Ct(e, t) {
|
|
4467
|
+
vn(e, t);
|
|
4468
|
+
}
|
|
4469
|
+
function co(e) {
|
|
4470
|
+
te.set(e);
|
|
4471
|
+
}
|
|
4472
|
+
const Mt = {
|
|
4473
|
+
en: {
|
|
4474
|
+
logoutButton: "Logout"
|
|
4475
|
+
},
|
|
4476
|
+
"zh-hk": {
|
|
4477
|
+
logoutButton: "登出"
|
|
4478
|
+
},
|
|
4479
|
+
fr: {
|
|
4480
|
+
logoutButton: "Déconnexion"
|
|
4481
|
+
},
|
|
4482
|
+
tr: {
|
|
4483
|
+
logoutButton: "Çıkış Yap"
|
|
4484
|
+
},
|
|
4485
|
+
ro: {
|
|
4486
|
+
logoutButton: "Iesire"
|
|
4487
|
+
},
|
|
4488
|
+
es: {
|
|
4489
|
+
logoutButton: "Cerrar sesión"
|
|
4490
|
+
},
|
|
4491
|
+
pt: {
|
|
4492
|
+
logoutButton: "Sair"
|
|
4493
|
+
},
|
|
4494
|
+
hr: {
|
|
4495
|
+
logoutButton: "Odjava"
|
|
4496
|
+
},
|
|
4497
|
+
"pt-br": {
|
|
4498
|
+
logoutButton: "Fechar Sessão"
|
|
4499
|
+
},
|
|
4500
|
+
"es-mx": {
|
|
4501
|
+
logoutButton: "Cerrar sesión"
|
|
4502
|
+
},
|
|
4503
|
+
"en-us": {
|
|
4504
|
+
logoutButton: "Logout"
|
|
4505
|
+
}
|
|
4506
|
+
};
|
|
4507
|
+
function po(e) {
|
|
4508
|
+
Gn(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))}");
|
|
4509
|
+
}
|
|
4510
|
+
function mo(e) {
|
|
4511
|
+
let t, n, r, i = (
|
|
4512
|
+
/*$_*/
|
|
4513
|
+
e[2]("logoutButton") + ""
|
|
4514
|
+
), o, s, a;
|
|
4515
|
+
return {
|
|
4516
|
+
c() {
|
|
4517
|
+
t = N("div"), n = N("button"), r = N("span"), o = ce(i), A(t, "class", "GeneralLogout");
|
|
4518
|
+
},
|
|
4519
|
+
m(u, h) {
|
|
4520
|
+
fe(u, t, h), P(t, n), P(n, r), P(r, o), s || (a = kt(
|
|
4521
|
+
n,
|
|
4522
|
+
"click",
|
|
4523
|
+
/*click_handler_1*/
|
|
4524
|
+
e[13]
|
|
4525
|
+
), s = !0);
|
|
4526
|
+
},
|
|
4527
|
+
p(u, h) {
|
|
4528
|
+
h & /*$_*/
|
|
4529
|
+
4 && i !== (i = /*$_*/
|
|
4530
|
+
u[2]("logoutButton") + "") && Vt(o, i);
|
|
4531
|
+
},
|
|
4532
|
+
d(u) {
|
|
4533
|
+
u && j(t), s = !1, a();
|
|
4534
|
+
}
|
|
4535
|
+
};
|
|
4536
|
+
}
|
|
4537
|
+
function bo(e) {
|
|
4538
|
+
let t, n, r, i, o, s, a, u, h, l, f, c = !/*isMobile*/
|
|
4539
|
+
e[3] && go(e);
|
|
4540
|
+
return {
|
|
4541
|
+
c() {
|
|
4542
|
+
t = N("p"), n = N("span"), r = re("svg"), i = re("defs"), o = re("style"), s = ce(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = re("path"), u = re("path"), h = Fn(), c && c.c(), A(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), A(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), A(u, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), A(u, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), A(r, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), A(r, "data-name", "Layer 1"), A(r, "xmlns", "http://www.w3.org/2000/svg"), A(r, "viewBox", "0 0 150 150"), kn(n, "width", /*isMobile*/
|
|
4543
|
+
e[3] ? (
|
|
4544
|
+
/*mediaQuery*/
|
|
4545
|
+
e[4].matches ? "50px" : "24px"
|
|
4546
|
+
) : "20px"), A(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
|
|
4547
|
+
(e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
|
|
4548
|
+
(e[4].matches && /*isMobile*/
|
|
4549
|
+
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4550
|
+
},
|
|
4551
|
+
m(d, p) {
|
|
4552
|
+
fe(d, t, p), P(t, n), P(n, r), P(r, i), P(i, o), P(o, s), P(r, a), P(r, u), P(t, h), c && c.m(t, null), l || (f = kt(
|
|
4553
|
+
t,
|
|
4554
|
+
"click",
|
|
4555
|
+
/*click_handler*/
|
|
4556
|
+
e[12]
|
|
4557
|
+
), l = !0);
|
|
4558
|
+
},
|
|
4559
|
+
p(d, p) {
|
|
4560
|
+
/*isMobile*/
|
|
4561
|
+
d[3] || c.p(d, p);
|
|
4562
|
+
},
|
|
4563
|
+
d(d) {
|
|
4564
|
+
d && j(t), c && c.d(), l = !1, f();
|
|
4565
|
+
}
|
|
4566
|
+
};
|
|
4567
|
+
}
|
|
4568
|
+
function go(e) {
|
|
4569
|
+
let t, n = (
|
|
4570
|
+
/*$_*/
|
|
4571
|
+
e[2]("logoutButton") + ""
|
|
4572
|
+
), r;
|
|
4573
|
+
return {
|
|
4574
|
+
c() {
|
|
4575
|
+
t = N("span"), r = ce(n), A(t, "class", "PlayerLogoutText");
|
|
4576
|
+
},
|
|
4577
|
+
m(i, o) {
|
|
4578
|
+
fe(i, t, o), P(t, r);
|
|
4579
|
+
},
|
|
4580
|
+
p(i, o) {
|
|
4581
|
+
o & /*$_*/
|
|
4582
|
+
4 && n !== (n = /*$_*/
|
|
4583
|
+
i[2]("logoutButton") + "") && Vt(r, n);
|
|
4584
|
+
},
|
|
4585
|
+
d(i) {
|
|
4586
|
+
i && j(t);
|
|
4587
|
+
}
|
|
4588
|
+
};
|
|
4589
|
+
}
|
|
4590
|
+
function yo(e) {
|
|
4591
|
+
let t;
|
|
4592
|
+
function n(o, s) {
|
|
4593
|
+
return (
|
|
4594
|
+
/*buttonlocation*/
|
|
4595
|
+
o[0] === "PlayerAccountMenu" ? bo : mo
|
|
4596
|
+
);
|
|
4597
|
+
}
|
|
4598
|
+
let r = n(e), i = r(e);
|
|
4599
|
+
return {
|
|
4600
|
+
c() {
|
|
4601
|
+
t = N("div"), i.c();
|
|
4602
|
+
},
|
|
4603
|
+
m(o, s) {
|
|
4604
|
+
fe(o, t, s), i.m(t, null), e[14](t);
|
|
4605
|
+
},
|
|
4606
|
+
p(o, [s]) {
|
|
4607
|
+
r === (r = n(o)) && i ? i.p(o, s) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
|
|
4608
|
+
},
|
|
4609
|
+
i: B,
|
|
4610
|
+
o: B,
|
|
4611
|
+
d(o) {
|
|
4612
|
+
o && j(t), i.d(), e[14](null);
|
|
4613
|
+
}
|
|
4614
|
+
};
|
|
4615
|
+
}
|
|
4616
|
+
function _o(e, t, n) {
|
|
4617
|
+
let r;
|
|
4618
|
+
$n(e, lo, (y) => n(2, r = y));
|
|
4619
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: l = "" } = t, f = "", c = !1, d, p = window.navigator.userAgent, m = fo(p) !== "PC";
|
|
4620
|
+
const x = window.matchMedia("(min-width: 768px)"), T = () => {
|
|
4621
|
+
fetch(l).then((L) => L.json()).then((L) => {
|
|
4622
|
+
Object.keys(L).forEach((D) => {
|
|
4623
|
+
Ct(D, L[D]);
|
|
4624
|
+
});
|
|
4625
|
+
}).catch((L) => {
|
|
4626
|
+
console.log(L);
|
|
4627
|
+
});
|
|
4628
|
+
};
|
|
4629
|
+
Object.keys(Mt).forEach((y) => {
|
|
4630
|
+
Ct(y, Mt[y]);
|
|
4631
|
+
});
|
|
4632
|
+
const w = () => {
|
|
4633
|
+
let y = new Headers();
|
|
4634
|
+
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4635
|
+
let L = { method: "DELETE", headers: y };
|
|
4636
|
+
fetch(`${i}/v1/player/session/player`, L).then((D) => {
|
|
4637
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4638
|
+
});
|
|
4639
|
+
}, E = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", c = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", c = !0, console.error(f)), c), I = () => {
|
|
4640
|
+
co(a);
|
|
4641
|
+
}, H = () => {
|
|
4642
|
+
let y = document.createElement("style");
|
|
4643
|
+
y.innerHTML = u, d.appendChild(y);
|
|
4644
|
+
}, U = () => {
|
|
4645
|
+
let y = new URL(h), L = document.createElement("style");
|
|
4646
|
+
fetch(y.href).then((D) => D.text()).then((D) => {
|
|
4647
|
+
L.innerHTML = D, setTimeout(
|
|
4648
|
+
() => {
|
|
4649
|
+
d.appendChild(L);
|
|
4650
|
+
},
|
|
4651
|
+
1
|
|
4652
|
+
), setTimeout(
|
|
4653
|
+
() => {
|
|
4654
|
+
},
|
|
4655
|
+
500
|
|
4656
|
+
);
|
|
4657
|
+
});
|
|
4658
|
+
}, pe = () => w(), Hn = () => w();
|
|
4659
|
+
function Bn(y) {
|
|
4660
|
+
je[y ? "unshift" : "push"](() => {
|
|
4661
|
+
d = y, n(1, d);
|
|
4662
|
+
});
|
|
4663
|
+
}
|
|
4664
|
+
return e.$$set = (y) => {
|
|
4665
|
+
"endpoint" in y && n(6, i = y.endpoint), "session" in y && n(7, o = y.session), "buttonlocation" in y && n(0, s = y.buttonlocation), "lang" in y && n(8, a = y.lang), "clientstyling" in y && n(9, u = y.clientstyling), "clientstylingurl" in y && n(10, h = y.clientstylingurl), "translationurl" in y && n(11, l = y.translationurl);
|
|
4666
|
+
}, e.$$.update = () => {
|
|
4667
|
+
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4668
|
+
193 && i && o && s && E(), e.$$.dirty & /*lang*/
|
|
4669
|
+
256 && a && I(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4670
|
+
514 && u && d && H(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4671
|
+
1026 && h && d && U(), e.$$.dirty & /*translationurl*/
|
|
4672
|
+
2048 && l && T();
|
|
4673
|
+
}, [
|
|
4674
|
+
s,
|
|
4675
|
+
d,
|
|
4676
|
+
r,
|
|
4677
|
+
m,
|
|
4678
|
+
x,
|
|
4679
|
+
w,
|
|
4680
|
+
i,
|
|
4681
|
+
o,
|
|
4682
|
+
a,
|
|
4683
|
+
u,
|
|
4684
|
+
h,
|
|
4685
|
+
l,
|
|
4686
|
+
pe,
|
|
4687
|
+
Hn,
|
|
4688
|
+
Bn
|
|
4689
|
+
];
|
|
4690
|
+
}
|
|
4691
|
+
class wn extends ar {
|
|
4692
|
+
constructor(t) {
|
|
4693
|
+
super(), or(
|
|
4694
|
+
this,
|
|
4695
|
+
t,
|
|
4696
|
+
_o,
|
|
4697
|
+
yo,
|
|
4698
|
+
Rt,
|
|
4699
|
+
{
|
|
4700
|
+
endpoint: 6,
|
|
4701
|
+
session: 7,
|
|
4702
|
+
buttonlocation: 0,
|
|
4703
|
+
lang: 8,
|
|
4704
|
+
clientstyling: 9,
|
|
4705
|
+
clientstylingurl: 10,
|
|
4706
|
+
translationurl: 11
|
|
4707
|
+
},
|
|
4708
|
+
po
|
|
4709
|
+
);
|
|
4710
|
+
}
|
|
4711
|
+
get endpoint() {
|
|
4712
|
+
return this.$$.ctx[6];
|
|
4713
|
+
}
|
|
4714
|
+
set endpoint(t) {
|
|
4715
|
+
this.$$set({ endpoint: t }), C();
|
|
4716
|
+
}
|
|
4717
|
+
get session() {
|
|
4718
|
+
return this.$$.ctx[7];
|
|
4719
|
+
}
|
|
4720
|
+
set session(t) {
|
|
4721
|
+
this.$$set({ session: t }), C();
|
|
4722
|
+
}
|
|
4723
|
+
get buttonlocation() {
|
|
4724
|
+
return this.$$.ctx[0];
|
|
4725
|
+
}
|
|
4726
|
+
set buttonlocation(t) {
|
|
4727
|
+
this.$$set({ buttonlocation: t }), C();
|
|
4728
|
+
}
|
|
4729
|
+
get lang() {
|
|
4730
|
+
return this.$$.ctx[8];
|
|
4731
|
+
}
|
|
4732
|
+
set lang(t) {
|
|
4733
|
+
this.$$set({ lang: t }), C();
|
|
4734
|
+
}
|
|
4735
|
+
get clientstyling() {
|
|
4736
|
+
return this.$$.ctx[9];
|
|
4737
|
+
}
|
|
4738
|
+
set clientstyling(t) {
|
|
4739
|
+
this.$$set({ clientstyling: t }), C();
|
|
4740
|
+
}
|
|
4741
|
+
get clientstylingurl() {
|
|
4742
|
+
return this.$$.ctx[10];
|
|
4743
|
+
}
|
|
4744
|
+
set clientstylingurl(t) {
|
|
4745
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
4746
|
+
}
|
|
4747
|
+
get translationurl() {
|
|
4748
|
+
return this.$$.ctx[11];
|
|
4749
|
+
}
|
|
4750
|
+
set translationurl(t) {
|
|
4751
|
+
this.$$set({ translationurl: t }), C();
|
|
4752
|
+
}
|
|
4753
|
+
}
|
|
4754
|
+
sr(wn, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4755
|
+
const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4756
|
+
__proto__: null,
|
|
4757
|
+
default: wn
|
|
4758
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
4759
|
+
export {
|
|
4760
|
+
te as $,
|
|
4761
|
+
Do as A,
|
|
4762
|
+
Oo as B,
|
|
4763
|
+
Bo as C,
|
|
4764
|
+
Eo as D,
|
|
4765
|
+
ko as E,
|
|
4766
|
+
er as F,
|
|
4767
|
+
To as G,
|
|
4768
|
+
wo as H,
|
|
4769
|
+
So as I,
|
|
4770
|
+
Io as J,
|
|
4771
|
+
Xo as K,
|
|
4772
|
+
Po as L,
|
|
4773
|
+
Ro as M,
|
|
4774
|
+
Co as N,
|
|
4775
|
+
$o as O,
|
|
4776
|
+
le as P,
|
|
4777
|
+
Mo as Q,
|
|
4778
|
+
we as R,
|
|
4779
|
+
ar as S,
|
|
4780
|
+
zo as T,
|
|
4781
|
+
Ho as U,
|
|
4782
|
+
Ao as V,
|
|
4783
|
+
kn as W,
|
|
4784
|
+
xo as X,
|
|
4785
|
+
Nn as Y,
|
|
4786
|
+
Fo as Z,
|
|
4787
|
+
jo as _,
|
|
4788
|
+
vn as a,
|
|
4789
|
+
Vo as a0,
|
|
4790
|
+
wr as a1,
|
|
4791
|
+
Wo as a2,
|
|
4792
|
+
No as a3,
|
|
4793
|
+
Zo as a4,
|
|
4794
|
+
Gn as b,
|
|
4795
|
+
Vt as c,
|
|
4796
|
+
j as d,
|
|
4797
|
+
Lo as e,
|
|
4798
|
+
C as f,
|
|
4799
|
+
fe as g,
|
|
4800
|
+
P as h,
|
|
4801
|
+
or as i,
|
|
4802
|
+
N as j,
|
|
4803
|
+
Fn as k,
|
|
4804
|
+
kt as l,
|
|
4805
|
+
ce as m,
|
|
4806
|
+
B as n,
|
|
4807
|
+
A as o,
|
|
4808
|
+
$n as p,
|
|
4809
|
+
fo as q,
|
|
4810
|
+
F as r,
|
|
4811
|
+
Rt as s,
|
|
4812
|
+
Uo as t,
|
|
4813
|
+
Go as u,
|
|
4814
|
+
re as v,
|
|
4815
|
+
je as w,
|
|
4816
|
+
sr as x,
|
|
4817
|
+
lo as y,
|
|
4818
|
+
de as z
|
|
4819
|
+
};
|