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