@everymatrix/casino-my-games 1.77.26 → 1.77.28
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/{CasinoFavoritesSection-BEp8B-6P.js → CasinoFavoritesSection-BXiNKajp.js} +1014 -1046
- package/components/{CasinoFavoritesSection-BrpW2dHe.js → CasinoFavoritesSection-BhmYNoJe.js} +1048 -1080
- package/components/CasinoFavoritesSection-D6yt1tzP.cjs +3 -0
- package/components/{CasinoFilter-BATFEutk.js → CasinoFilter-ChoCgQ3w.js} +442 -394
- package/components/{CasinoFilter-DLNIdSEu.js → CasinoFilter-CrAzQ_l-.js} +418 -368
- package/components/CasinoFilter-CtdTUQqV.cjs +16 -0
- package/components/{CasinoGameThumbnail-D-UmK8xM.js → CasinoGameThumbnail-D1swZOWG.js} +1253 -1269
- package/components/CasinoGameThumbnail-DEm78qtm.cjs +47 -0
- package/components/{CasinoGameThumbnail-YejqGjXp.js → CasinoGameThumbnail-DuJWa1yd.js} +779 -763
- package/components/{CasinoGamesCategorySection-C1AK-P77.cjs → CasinoGamesCategorySection-BbI9zz0I.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-DHzKTvWb.js → CasinoGamesCategorySection-BnYJNqCW.js} +250 -250
- package/components/{CasinoGamesCategorySection-jrImKX0U.js → CasinoGamesCategorySection-K8poTXpJ.js} +279 -279
- package/components/{CasinoLastPlayedSection-D676ApRA.cjs → CasinoLastPlayedSection-BiJT2JQs.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-B7cob2Om.js → CasinoLastPlayedSection-COP0YJ11.js} +44 -44
- package/components/{CasinoLastPlayedSection-DDzq10NK.js → CasinoLastPlayedSection-D-enGXQ_.js} +44 -44
- package/components/{CasinoMostPlayedSection-BnSQduex.js → CasinoMostPlayedSection-Bqi_S8FR.js} +40 -40
- package/components/{CasinoMostPlayedSection-BymvSGFt.cjs → CasinoMostPlayedSection-DZelWQsM.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-B59HjL67.js → CasinoMostPlayedSection-xfiPNhaG.js} +40 -40
- package/components/{CasinoMyGames-DJCa0zBS.js → CasinoMyGames-BunXTxhl.js} +26 -26
- package/components/{CasinoMyGames-BIq1_qT0.js → CasinoMyGames-UmtQ5bU9.js} +31 -31
- package/components/{CasinoMyGames-D4Tm1ExL.cjs → CasinoMyGames-ZGQP5CPd.cjs} +1 -1
- package/components/{CasinoSort-DtlL9ofU.js → CasinoSort-COot142U.js} +109 -108
- package/components/{CasinoSort-C0rMZa02.js → CasinoSort-ClLb_08t.js} +116 -117
- package/components/{CasinoSort-CtoM_0t6.cjs → CasinoSort-HBfFAv9Z.cjs} +1 -1
- package/es2015/casino-my-games.cjs +1 -1
- package/es2015/casino-my-games.js +1 -1
- package/esnext/casino-my-games.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoFavoritesSection-DeGbjfRk.cjs +0 -16
- package/components/CasinoFilter-CuPUsJ5i.cjs +0 -3
- package/components/CasinoGameThumbnail-CHLLCTQ-.cjs +0 -47
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
package/components/{CasinoFavoritesSection-BEp8B-6P.js → CasinoFavoritesSection-BXiNKajp.js}
RENAMED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function nt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
6
|
function Fe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function z(e) {
|
|
10
|
+
e.forEach(nt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $e(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function it(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let ie;
|
|
19
|
+
function Jn(e, t) {
|
|
20
|
+
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
21
21
|
}
|
|
22
22
|
function Rt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
25
|
function st(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
|
-
for (const
|
|
28
|
-
|
|
27
|
+
for (const n of t)
|
|
28
|
+
n(void 0);
|
|
29
29
|
return I;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
return
|
|
31
|
+
const r = e.subscribe(...t);
|
|
32
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(st(t,
|
|
34
|
+
function Yn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(st(t, r));
|
|
36
36
|
}
|
|
37
37
|
function $t(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function Ut(e, t,
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent =
|
|
40
|
+
function Ut(e, t, r) {
|
|
41
|
+
const n = Dt(e);
|
|
42
|
+
if (!n.getElementById(t)) {
|
|
43
|
+
const i = re("style");
|
|
44
|
+
i.id = t, i.textContent = r, Gt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function Dt(e) {
|
|
@@ -61,17 +61,17 @@ function Gt(e, t) {
|
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.insertBefore(t,
|
|
64
|
+
function ce(e, t, r) {
|
|
65
|
+
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function te(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
for (let
|
|
72
|
-
e[
|
|
70
|
+
function Kn(e, t) {
|
|
71
|
+
for (let r = 0; r < e.length; r += 1)
|
|
72
|
+
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function re(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
77
|
function Ft(e) {
|
|
@@ -80,21 +80,21 @@ function Ft(e) {
|
|
|
80
80
|
function at(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ei() {
|
|
84
84
|
return at(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ti() {
|
|
87
87
|
return at("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return e.addEventListener(t,
|
|
89
|
+
function ri(e, t, r, n) {
|
|
90
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
92
|
+
function Ue(e, t, r) {
|
|
93
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function g(e, t,
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
function g(e, t, r) {
|
|
96
|
+
const n = t.toLowerCase();
|
|
97
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Ue(e, t, r);
|
|
98
98
|
}
|
|
99
99
|
function jt(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
@@ -103,13 +103,13 @@ function ni(e, t) {
|
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ii(e, t) {
|
|
107
107
|
e.value = t ?? "";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
e.classList.toggle(t, !!
|
|
109
|
+
function si(e, t, r) {
|
|
110
|
+
e.classList.toggle(t, !!r);
|
|
111
111
|
}
|
|
112
|
-
class
|
|
112
|
+
class ai {
|
|
113
113
|
/**
|
|
114
114
|
* @private
|
|
115
115
|
* @default false
|
|
@@ -139,17 +139,17 @@ class si {
|
|
|
139
139
|
* @param {HTMLElement | SVGElement} anchor
|
|
140
140
|
* @returns {void}
|
|
141
141
|
*/
|
|
142
|
-
m(t,
|
|
142
|
+
m(t, r, n = null) {
|
|
143
143
|
this.e || (this.is_svg ? this.e = Ft(
|
|
144
144
|
/** @type {keyof SVGElementTagNameMap} */
|
|
145
|
-
|
|
146
|
-
) : this.e =
|
|
145
|
+
r.nodeName
|
|
146
|
+
) : this.e = re(
|
|
147
147
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
148
|
-
|
|
149
|
-
), this.t =
|
|
148
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
149
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
150
150
|
/** @type {HTMLTemplateElement} */
|
|
151
|
-
|
|
152
|
-
), this.c(t)), this.i(
|
|
151
|
+
r.content
|
|
152
|
+
), this.c(t)), this.i(n);
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
155
|
* @param {string} html
|
|
@@ -163,8 +163,8 @@ class si {
|
|
|
163
163
|
/**
|
|
164
164
|
* @returns {void} */
|
|
165
165
|
i(t) {
|
|
166
|
-
for (let
|
|
167
|
-
|
|
166
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
167
|
+
ce(this.t, this.n[r], t);
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* @param {string} html
|
|
@@ -176,139 +176,139 @@ class si {
|
|
|
176
176
|
/**
|
|
177
177
|
* @returns {void} */
|
|
178
178
|
d() {
|
|
179
|
-
this.n.forEach(
|
|
179
|
+
this.n.forEach(te);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
function kt(e) {
|
|
183
183
|
const t = {};
|
|
184
184
|
return e.childNodes.forEach(
|
|
185
185
|
/** @param {Element} node */
|
|
186
|
-
(
|
|
187
|
-
t[
|
|
186
|
+
(r) => {
|
|
187
|
+
t[r.slot || "default"] = !0;
|
|
188
188
|
}
|
|
189
189
|
), t;
|
|
190
190
|
}
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
191
|
+
let Y;
|
|
192
|
+
function J(e) {
|
|
193
|
+
Y = e;
|
|
194
194
|
}
|
|
195
195
|
function ot() {
|
|
196
|
-
if (!
|
|
196
|
+
if (!Y)
|
|
197
197
|
throw new Error("Function called outside component initialization");
|
|
198
|
-
return
|
|
198
|
+
return Y;
|
|
199
199
|
}
|
|
200
200
|
function Vt(e) {
|
|
201
201
|
ot().$$.on_mount.push(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function oi(e) {
|
|
204
204
|
ot().$$.on_destroy.push(e);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
let
|
|
206
|
+
const G = [], Se = [];
|
|
207
|
+
let F = [];
|
|
208
208
|
const je = [], ut = /* @__PURE__ */ Promise.resolve();
|
|
209
|
-
let
|
|
209
|
+
let Be = !1;
|
|
210
210
|
function ht() {
|
|
211
|
-
|
|
211
|
+
Be || (Be = !0, ut.then(H));
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function ui() {
|
|
214
214
|
return ht(), ut;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
216
|
+
function Ae(e) {
|
|
217
|
+
F.push(e);
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
let
|
|
219
|
+
const ye = /* @__PURE__ */ new Set();
|
|
220
|
+
let U = 0;
|
|
221
221
|
function H() {
|
|
222
|
-
if (
|
|
222
|
+
if (U !== 0)
|
|
223
223
|
return;
|
|
224
|
-
const e =
|
|
224
|
+
const e = Y;
|
|
225
225
|
do {
|
|
226
226
|
try {
|
|
227
|
-
for (;
|
|
228
|
-
const t =
|
|
229
|
-
|
|
227
|
+
for (; U < G.length; ) {
|
|
228
|
+
const t = G[U];
|
|
229
|
+
U++, J(t), Xt(t.$$);
|
|
230
230
|
}
|
|
231
231
|
} catch (t) {
|
|
232
|
-
throw
|
|
232
|
+
throw G.length = 0, U = 0, t;
|
|
233
233
|
}
|
|
234
|
-
for (
|
|
235
|
-
|
|
236
|
-
for (let t = 0; t <
|
|
237
|
-
const
|
|
238
|
-
|
|
234
|
+
for (J(null), G.length = 0, U = 0; Se.length; )
|
|
235
|
+
Se.pop()();
|
|
236
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
237
|
+
const r = F[t];
|
|
238
|
+
ye.has(r) || (ye.add(r), r());
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
} while (
|
|
240
|
+
F.length = 0;
|
|
241
|
+
} while (G.length);
|
|
242
242
|
for (; je.length; )
|
|
243
243
|
je.pop()();
|
|
244
|
-
|
|
244
|
+
Be = !1, ye.clear(), J(e);
|
|
245
245
|
}
|
|
246
246
|
function Xt(e) {
|
|
247
247
|
if (e.fragment !== null) {
|
|
248
|
-
e.update(),
|
|
248
|
+
e.update(), z(e.before_update);
|
|
249
249
|
const t = e.dirty;
|
|
250
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
250
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
function zt(e) {
|
|
254
|
-
const t = [],
|
|
255
|
-
|
|
254
|
+
const t = [], r = [];
|
|
255
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
256
256
|
}
|
|
257
257
|
const Wt = /* @__PURE__ */ new Set();
|
|
258
258
|
function lt(e, t) {
|
|
259
259
|
e && e.i && (Wt.delete(e), e.i(t));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function hi(e) {
|
|
262
262
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function li(e, t) {
|
|
265
265
|
e.d(1), t.delete(e.key);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function fi(e, t, r, n, i, s, u, o, l, a, h, c) {
|
|
268
268
|
let f = e.length, b = s.length, y = f;
|
|
269
269
|
const x = {};
|
|
270
270
|
for (; y--; )
|
|
271
271
|
x[e[y].key] = y;
|
|
272
|
-
const S = [],
|
|
272
|
+
const S = [], O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), B = [];
|
|
273
273
|
for (y = b; y--; ) {
|
|
274
|
-
const
|
|
275
|
-
let L =
|
|
276
|
-
L ? B.push(() => L.p(
|
|
274
|
+
const v = c(i, s, y), m = r(v);
|
|
275
|
+
let L = u.get(m);
|
|
276
|
+
L ? B.push(() => L.p(v, t)) : (L = a(m, v), L.c()), O.set(m, S[y] = L), m in x && P.set(m, Math.abs(y - x[m]));
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
function T(
|
|
280
|
-
lt(
|
|
278
|
+
const N = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
279
|
+
function T(v) {
|
|
280
|
+
lt(v, 1), v.m(o, h), u.set(v.key, v), h = v.first, b--;
|
|
281
281
|
}
|
|
282
282
|
for (; f && b; ) {
|
|
283
|
-
const
|
|
284
|
-
|
|
283
|
+
const v = S[b - 1], m = e[f - 1], L = v.key, ne = m.key;
|
|
284
|
+
v === m ? (h = v.first, f--, b--) : O.has(ne) ? !u.has(L) || N.has(L) ? T(v) : w.has(ne) ? f-- : P.get(L) > P.get(ne) ? (w.add(L), T(v)) : (N.add(ne), f--) : (l(m, u), f--);
|
|
285
285
|
}
|
|
286
286
|
for (; f--; ) {
|
|
287
|
-
const
|
|
288
|
-
|
|
287
|
+
const v = e[f];
|
|
288
|
+
O.has(v.key) || l(v, u);
|
|
289
289
|
}
|
|
290
290
|
for (; b; )
|
|
291
291
|
T(S[b - 1]);
|
|
292
|
-
return
|
|
292
|
+
return z(B), S;
|
|
293
293
|
}
|
|
294
|
-
function Zt(e, t,
|
|
295
|
-
const { fragment:
|
|
296
|
-
|
|
297
|
-
const s = e.$$.on_mount.map(
|
|
298
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
299
|
-
}), i.forEach(
|
|
294
|
+
function Zt(e, t, r) {
|
|
295
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
296
|
+
n && n.m(t, r), Ae(() => {
|
|
297
|
+
const s = e.$$.on_mount.map(nt).filter($e);
|
|
298
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
299
|
+
}), i.forEach(Ae);
|
|
300
300
|
}
|
|
301
301
|
function Qt(e, t) {
|
|
302
|
-
const
|
|
303
|
-
|
|
302
|
+
const r = e.$$;
|
|
303
|
+
r.fragment !== null && (zt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
304
304
|
}
|
|
305
305
|
function qt(e, t) {
|
|
306
|
-
e.$$.dirty[0] === -1 && (
|
|
306
|
+
e.$$.dirty[0] === -1 && (G.push(e), ht(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
307
307
|
}
|
|
308
|
-
function Jt(e, t,
|
|
309
|
-
const l =
|
|
310
|
-
|
|
311
|
-
const
|
|
308
|
+
function Jt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
309
|
+
const l = Y;
|
|
310
|
+
J(e);
|
|
311
|
+
const a = e.$$ = {
|
|
312
312
|
fragment: null,
|
|
313
313
|
ctx: [],
|
|
314
314
|
// state
|
|
@@ -329,20 +329,20 @@ function Jt(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
|
329
329
|
skip_bound: !1,
|
|
330
330
|
root: t.target || l.$$.root
|
|
331
331
|
};
|
|
332
|
-
|
|
332
|
+
u && u(a.root);
|
|
333
333
|
let h = !1;
|
|
334
|
-
if (
|
|
334
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
|
|
335
335
|
const y = b.length ? b[0] : f;
|
|
336
|
-
return
|
|
337
|
-
}) : [],
|
|
336
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = y) && (!a.skip_bound && a.bound[c] && a.bound[c](y), h && qt(e, c)), f;
|
|
337
|
+
}) : [], a.update(), h = !0, z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
338
338
|
if (t.hydrate) {
|
|
339
339
|
const c = jt(t.target);
|
|
340
|
-
|
|
340
|
+
a.fragment && a.fragment.l(c), c.forEach(te);
|
|
341
341
|
} else
|
|
342
|
-
|
|
342
|
+
a.fragment && a.fragment.c();
|
|
343
343
|
t.intro && lt(e.$$.fragment), Zt(e, t.target, t.anchor), H();
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
J(l);
|
|
346
346
|
}
|
|
347
347
|
let ft;
|
|
348
348
|
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
@@ -364,20 +364,20 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
364
364
|
$$l = {};
|
|
365
365
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
366
366
|
$$l_u = /* @__PURE__ */ new Map();
|
|
367
|
-
constructor(e, t,
|
|
368
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
367
|
+
constructor(e, t, r) {
|
|
368
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
369
369
|
}
|
|
370
|
-
addEventListener(e, t,
|
|
370
|
+
addEventListener(e, t, r) {
|
|
371
371
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
372
|
-
const
|
|
373
|
-
this.$$l_u.set(t,
|
|
372
|
+
const n = this.$$c.$on(e, t);
|
|
373
|
+
this.$$l_u.set(t, n);
|
|
374
374
|
}
|
|
375
|
-
super.addEventListener(e, t,
|
|
375
|
+
super.addEventListener(e, t, r);
|
|
376
376
|
}
|
|
377
|
-
removeEventListener(e, t,
|
|
378
|
-
if (super.removeEventListener(e, t,
|
|
379
|
-
const
|
|
380
|
-
|
|
377
|
+
removeEventListener(e, t, r) {
|
|
378
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
379
|
+
const n = this.$$l_u.get(t);
|
|
380
|
+
n && (n(), this.$$l_u.delete(t));
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
async connectedCallback() {
|
|
@@ -387,29 +387,29 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
387
387
|
let s;
|
|
388
388
|
return {
|
|
389
389
|
c: function() {
|
|
390
|
-
s =
|
|
390
|
+
s = re("slot"), i !== "default" && Ue(s, "name", i);
|
|
391
391
|
},
|
|
392
392
|
/**
|
|
393
393
|
* @param {HTMLElement} target
|
|
394
394
|
* @param {HTMLElement} [anchor]
|
|
395
395
|
*/
|
|
396
|
-
m: function(l,
|
|
397
|
-
|
|
396
|
+
m: function(l, a) {
|
|
397
|
+
ce(l, s, a);
|
|
398
398
|
},
|
|
399
399
|
d: function(l) {
|
|
400
|
-
l &&
|
|
400
|
+
l && te(s);
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
405
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
406
406
|
return;
|
|
407
|
-
const t = {},
|
|
407
|
+
const t = {}, r = kt(this);
|
|
408
408
|
for (const i of this.$$s)
|
|
409
|
-
i in
|
|
409
|
+
i in r && (t[i] = [e(i)]);
|
|
410
410
|
for (const i of this.attributes) {
|
|
411
411
|
const s = this.$$g_p(i.name);
|
|
412
|
-
s in this.$$d || (this.$$d[s] =
|
|
412
|
+
s in this.$$d || (this.$$d[s] = ae(s, i.value, this.$$p_d, "toProp"));
|
|
413
413
|
}
|
|
414
414
|
for (const i in this.$$p_d)
|
|
415
415
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -423,11 +423,11 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const
|
|
426
|
+
const n = () => {
|
|
427
427
|
this.$$r = !0;
|
|
428
428
|
for (const i in this.$$p_d)
|
|
429
429
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
430
|
-
const s =
|
|
430
|
+
const s = ae(
|
|
431
431
|
i,
|
|
432
432
|
this.$$d[i],
|
|
433
433
|
this.$$p_d,
|
|
@@ -437,19 +437,19 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
437
437
|
}
|
|
438
438
|
this.$$r = !1;
|
|
439
439
|
};
|
|
440
|
-
this.$$c.$$.after_update.push(
|
|
440
|
+
this.$$c.$$.after_update.push(n), n();
|
|
441
441
|
for (const i in this.$$l)
|
|
442
442
|
for (const s of this.$$l[i]) {
|
|
443
|
-
const
|
|
444
|
-
this.$$l_u.set(s,
|
|
443
|
+
const u = this.$$c.$on(i, s);
|
|
444
|
+
this.$$l_u.set(s, u);
|
|
445
445
|
}
|
|
446
446
|
this.$$l = {};
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
450
450
|
// and setting attributes through setAttribute etc, this is helpful
|
|
451
|
-
attributeChangedCallback(e, t,
|
|
452
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
451
|
+
attributeChangedCallback(e, t, r) {
|
|
452
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ae(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
453
453
|
}
|
|
454
454
|
disconnectedCallback() {
|
|
455
455
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -462,11 +462,11 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
462
462
|
) || e;
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
|
-
function
|
|
466
|
-
const i =
|
|
467
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
465
|
+
function ae(e, t, r, n) {
|
|
466
|
+
const i = r[e]?.type;
|
|
467
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
468
468
|
return t;
|
|
469
|
-
if (
|
|
469
|
+
if (n === "toAttribute")
|
|
470
470
|
switch (i) {
|
|
471
471
|
case "Object":
|
|
472
472
|
case "Array":
|
|
@@ -491,10 +491,10 @@ function se(e, t, n, r) {
|
|
|
491
491
|
return t;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function Yt(e, t,
|
|
495
|
-
let
|
|
494
|
+
function Yt(e, t, r, n, i, s) {
|
|
495
|
+
let u = class extends ft {
|
|
496
496
|
constructor() {
|
|
497
|
-
super(e,
|
|
497
|
+
super(e, r, i), this.$$p_d = t;
|
|
498
498
|
}
|
|
499
499
|
static get observedAttributes() {
|
|
500
500
|
return Object.keys(t).map(
|
|
@@ -503,22 +503,22 @@ function Yt(e, t, n, r, i, s) {
|
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
return Object.keys(t).forEach((o) => {
|
|
506
|
-
Object.defineProperty(
|
|
506
|
+
Object.defineProperty(u.prototype, o, {
|
|
507
507
|
get() {
|
|
508
508
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
509
509
|
},
|
|
510
510
|
set(l) {
|
|
511
|
-
l =
|
|
511
|
+
l = ae(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
-
}),
|
|
515
|
-
Object.defineProperty(
|
|
514
|
+
}), n.forEach((o) => {
|
|
515
|
+
Object.defineProperty(u.prototype, o, {
|
|
516
516
|
get() {
|
|
517
517
|
return this.$$c?.[o];
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
520
|
}), e.element = /** @type {any} */
|
|
521
|
-
|
|
521
|
+
u, u;
|
|
522
522
|
}
|
|
523
523
|
class Kt {
|
|
524
524
|
/**
|
|
@@ -547,13 +547,13 @@ class Kt {
|
|
|
547
547
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
548
548
|
* @returns {() => void}
|
|
549
549
|
*/
|
|
550
|
-
$on(t,
|
|
551
|
-
if (
|
|
550
|
+
$on(t, r) {
|
|
551
|
+
if (!$e(r))
|
|
552
552
|
return I;
|
|
553
|
-
const
|
|
554
|
-
return
|
|
555
|
-
const i =
|
|
556
|
-
i !== -1 &&
|
|
553
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
554
|
+
return n.push(r), () => {
|
|
555
|
+
const i = n.indexOf(r);
|
|
556
|
+
i !== -1 && n.splice(i, 1);
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
@@ -564,148 +564,60 @@ class Kt {
|
|
|
564
564
|
this.$$set && !Rt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const
|
|
568
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
573
|
-
purpose with or without fee is hereby granted.
|
|
574
|
-
|
|
575
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
576
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
577
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
578
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
579
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
580
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
581
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
582
|
-
***************************************************************************** */
|
|
583
|
-
var Be = function(e, t) {
|
|
584
|
-
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
585
|
-
n.__proto__ = r;
|
|
586
|
-
} || function(n, r) {
|
|
587
|
-
for (var i in r)
|
|
588
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
589
|
-
}, Be(e, t);
|
|
590
|
-
};
|
|
591
|
-
function fe(e, t) {
|
|
592
|
-
if (typeof t != "function" && t !== null)
|
|
593
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
594
|
-
Be(e, t);
|
|
595
|
-
function n() {
|
|
596
|
-
this.constructor = e;
|
|
597
|
-
}
|
|
598
|
-
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
599
|
-
}
|
|
600
|
-
var E = function() {
|
|
601
|
-
return E = Object.assign || function(t) {
|
|
602
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
603
|
-
n = arguments[r];
|
|
604
|
-
for (var s in n)
|
|
605
|
-
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
606
|
-
}
|
|
607
|
-
return t;
|
|
608
|
-
}, E.apply(this, arguments);
|
|
609
|
-
};
|
|
610
|
-
function tn(e, t) {
|
|
611
|
-
var n = {};
|
|
612
|
-
for (var r in e)
|
|
613
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
614
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
615
|
-
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
616
|
-
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
617
|
-
return n;
|
|
618
|
-
}
|
|
619
|
-
function fi(e) {
|
|
620
|
-
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
621
|
-
if (n)
|
|
622
|
-
return n.call(e);
|
|
623
|
-
if (e && typeof e.length == "number")
|
|
624
|
-
return {
|
|
625
|
-
next: function() {
|
|
626
|
-
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
630
|
-
}
|
|
631
|
-
function ci(e, t) {
|
|
632
|
-
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
633
|
-
if (!n)
|
|
634
|
-
return e;
|
|
635
|
-
var r = n.call(e), i, s = [], a;
|
|
636
|
-
try {
|
|
637
|
-
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
638
|
-
s.push(i.value);
|
|
639
|
-
} catch (o) {
|
|
640
|
-
a = { error: o };
|
|
641
|
-
} finally {
|
|
642
|
-
try {
|
|
643
|
-
i && !i.done && (n = r.return) && n.call(r);
|
|
644
|
-
} finally {
|
|
645
|
-
if (a)
|
|
646
|
-
throw a.error;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
return s;
|
|
650
|
-
}
|
|
651
|
-
function pe(e, t, n) {
|
|
652
|
-
if (n || arguments.length === 2)
|
|
653
|
-
for (var r = 0, i = t.length, s; r < i; r++)
|
|
654
|
-
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
655
|
-
return e.concat(s || t);
|
|
656
|
-
}
|
|
657
|
-
const U = [];
|
|
658
|
-
function nn(e, t) {
|
|
567
|
+
const er = "4";
|
|
568
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
|
569
|
+
const D = [];
|
|
570
|
+
function tr(e, t) {
|
|
659
571
|
return {
|
|
660
|
-
subscribe:
|
|
572
|
+
subscribe: me(e, t).subscribe
|
|
661
573
|
};
|
|
662
574
|
}
|
|
663
|
-
function
|
|
664
|
-
let
|
|
665
|
-
const
|
|
575
|
+
function me(e, t = I) {
|
|
576
|
+
let r;
|
|
577
|
+
const n = /* @__PURE__ */ new Set();
|
|
666
578
|
function i(o) {
|
|
667
|
-
if (it(e, o) && (e = o,
|
|
668
|
-
const l = !
|
|
669
|
-
for (const
|
|
670
|
-
|
|
579
|
+
if (it(e, o) && (e = o, r)) {
|
|
580
|
+
const l = !D.length;
|
|
581
|
+
for (const a of n)
|
|
582
|
+
a[1](), D.push(a, e);
|
|
671
583
|
if (l) {
|
|
672
|
-
for (let
|
|
673
|
-
|
|
674
|
-
|
|
584
|
+
for (let a = 0; a < D.length; a += 2)
|
|
585
|
+
D[a][0](D[a + 1]);
|
|
586
|
+
D.length = 0;
|
|
675
587
|
}
|
|
676
588
|
}
|
|
677
589
|
}
|
|
678
590
|
function s(o) {
|
|
679
591
|
i(o(e));
|
|
680
592
|
}
|
|
681
|
-
function
|
|
682
|
-
const
|
|
683
|
-
return
|
|
684
|
-
|
|
593
|
+
function u(o, l = I) {
|
|
594
|
+
const a = [o, l];
|
|
595
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || I), o(e), () => {
|
|
596
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
685
597
|
};
|
|
686
598
|
}
|
|
687
|
-
return { set: i, update: s, subscribe:
|
|
599
|
+
return { set: i, update: s, subscribe: u };
|
|
688
600
|
}
|
|
689
|
-
function
|
|
690
|
-
const
|
|
601
|
+
function W(e, t, r) {
|
|
602
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
691
603
|
if (!i.every(Boolean))
|
|
692
604
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
693
605
|
const s = t.length < 2;
|
|
694
|
-
return
|
|
606
|
+
return tr(r, (u, o) => {
|
|
695
607
|
let l = !1;
|
|
696
|
-
const
|
|
608
|
+
const a = [];
|
|
697
609
|
let h = 0, c = I;
|
|
698
610
|
const f = () => {
|
|
699
611
|
if (h)
|
|
700
612
|
return;
|
|
701
613
|
c();
|
|
702
|
-
const y = t(
|
|
703
|
-
s ?
|
|
614
|
+
const y = t(n ? a[0] : a, u, o);
|
|
615
|
+
s ? u(y) : c = $e(y) ? y : I;
|
|
704
616
|
}, b = i.map(
|
|
705
617
|
(y, x) => st(
|
|
706
618
|
y,
|
|
707
619
|
(S) => {
|
|
708
|
-
|
|
620
|
+
a[x] = S, h &= ~(1 << x), l && f();
|
|
709
621
|
},
|
|
710
622
|
() => {
|
|
711
623
|
h |= 1 << x;
|
|
@@ -713,51 +625,51 @@ function z(e, t, n) {
|
|
|
713
625
|
)
|
|
714
626
|
);
|
|
715
627
|
return l = !0, f(), function() {
|
|
716
|
-
|
|
628
|
+
z(b), c(), l = !1;
|
|
717
629
|
};
|
|
718
630
|
});
|
|
719
631
|
}
|
|
720
|
-
function
|
|
632
|
+
function rr(e) {
|
|
721
633
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
722
634
|
}
|
|
723
|
-
var
|
|
724
|
-
return
|
|
635
|
+
var nr = function(t) {
|
|
636
|
+
return ir(t) && !sr(t);
|
|
725
637
|
};
|
|
726
|
-
function
|
|
638
|
+
function ir(e) {
|
|
727
639
|
return !!e && typeof e == "object";
|
|
728
640
|
}
|
|
729
|
-
function
|
|
641
|
+
function sr(e) {
|
|
730
642
|
var t = Object.prototype.toString.call(e);
|
|
731
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
643
|
+
return t === "[object RegExp]" || t === "[object Date]" || ur(e);
|
|
732
644
|
}
|
|
733
|
-
var
|
|
734
|
-
function
|
|
735
|
-
return e.$$typeof ===
|
|
645
|
+
var ar = typeof Symbol == "function" && Symbol.for, or = ar ? Symbol.for("react.element") : 60103;
|
|
646
|
+
function ur(e) {
|
|
647
|
+
return e.$$typeof === or;
|
|
736
648
|
}
|
|
737
|
-
function
|
|
649
|
+
function hr(e) {
|
|
738
650
|
return Array.isArray(e) ? [] : {};
|
|
739
651
|
}
|
|
740
|
-
function
|
|
741
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
652
|
+
function K(e, t) {
|
|
653
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(hr(e), e, t) : e;
|
|
742
654
|
}
|
|
743
|
-
function
|
|
744
|
-
return e.concat(t).map(function(
|
|
745
|
-
return
|
|
655
|
+
function lr(e, t, r) {
|
|
656
|
+
return e.concat(t).map(function(n) {
|
|
657
|
+
return K(n, r);
|
|
746
658
|
});
|
|
747
659
|
}
|
|
748
|
-
function
|
|
660
|
+
function fr(e, t) {
|
|
749
661
|
if (!t.customMerge)
|
|
750
|
-
return
|
|
751
|
-
var
|
|
752
|
-
return typeof
|
|
662
|
+
return j;
|
|
663
|
+
var r = t.customMerge(e);
|
|
664
|
+
return typeof r == "function" ? r : j;
|
|
753
665
|
}
|
|
754
|
-
function
|
|
666
|
+
function cr(e) {
|
|
755
667
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
756
668
|
return Object.propertyIsEnumerable.call(e, t);
|
|
757
669
|
}) : [];
|
|
758
670
|
}
|
|
759
671
|
function ke(e) {
|
|
760
|
-
return Object.keys(e).concat(
|
|
672
|
+
return Object.keys(e).concat(cr(e));
|
|
761
673
|
}
|
|
762
674
|
function ct(e, t) {
|
|
763
675
|
try {
|
|
@@ -766,137 +678,187 @@ function ct(e, t) {
|
|
|
766
678
|
return !1;
|
|
767
679
|
}
|
|
768
680
|
}
|
|
769
|
-
function
|
|
681
|
+
function mr(e, t) {
|
|
770
682
|
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
771
683
|
}
|
|
772
|
-
function
|
|
773
|
-
var
|
|
774
|
-
return
|
|
775
|
-
|
|
684
|
+
function gr(e, t, r) {
|
|
685
|
+
var n = {};
|
|
686
|
+
return r.isMergeableObject(e) && ke(e).forEach(function(i) {
|
|
687
|
+
n[i] = K(e[i], r);
|
|
776
688
|
}), ke(t).forEach(function(i) {
|
|
777
|
-
|
|
778
|
-
}),
|
|
689
|
+
mr(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
690
|
+
}), n;
|
|
779
691
|
}
|
|
780
|
-
function
|
|
781
|
-
|
|
782
|
-
var
|
|
783
|
-
return s ?
|
|
692
|
+
function j(e, t, r) {
|
|
693
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = K;
|
|
694
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
695
|
+
return s ? n ? r.arrayMerge(e, t, r) : gr(e, t, r) : K(t, r);
|
|
784
696
|
}
|
|
785
|
-
|
|
697
|
+
j.all = function(t, r) {
|
|
786
698
|
if (!Array.isArray(t))
|
|
787
699
|
throw new Error("first argument should be an array");
|
|
788
|
-
return t.reduce(function(
|
|
789
|
-
return
|
|
700
|
+
return t.reduce(function(n, i) {
|
|
701
|
+
return j(n, i, r);
|
|
790
702
|
}, {});
|
|
791
703
|
};
|
|
792
|
-
var
|
|
793
|
-
const
|
|
794
|
-
function
|
|
795
|
-
|
|
704
|
+
var dr = j, br = dr;
|
|
705
|
+
const pr = /* @__PURE__ */ rr(br);
|
|
706
|
+
var we = function(e, t) {
|
|
707
|
+
return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
708
|
+
r.__proto__ = n;
|
|
709
|
+
} || function(r, n) {
|
|
710
|
+
for (var i in n)
|
|
711
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
712
|
+
}, we(e, t);
|
|
713
|
+
};
|
|
714
|
+
function ge(e, t) {
|
|
715
|
+
if (typeof t != "function" && t !== null)
|
|
716
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
717
|
+
we(e, t);
|
|
718
|
+
function r() {
|
|
719
|
+
this.constructor = e;
|
|
720
|
+
}
|
|
721
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
722
|
+
}
|
|
723
|
+
var C = function() {
|
|
724
|
+
return C = Object.assign || function(t) {
|
|
725
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
726
|
+
r = arguments[n];
|
|
727
|
+
for (var s in r)
|
|
728
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
729
|
+
}
|
|
730
|
+
return t;
|
|
731
|
+
}, C.apply(this, arguments);
|
|
732
|
+
};
|
|
733
|
+
function yr(e, t) {
|
|
734
|
+
var r = {};
|
|
735
|
+
for (var n in e)
|
|
736
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
737
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
738
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
739
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
740
|
+
return r;
|
|
741
|
+
}
|
|
742
|
+
function Ee(e, t, r) {
|
|
743
|
+
if (r || arguments.length === 2)
|
|
744
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
745
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
746
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
747
|
+
}
|
|
748
|
+
function ve(e, t) {
|
|
749
|
+
var r = t && t.cache ? t.cache : Sr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
|
796
750
|
return i(e, {
|
|
797
|
-
cache:
|
|
798
|
-
serializer:
|
|
751
|
+
cache: r,
|
|
752
|
+
serializer: n
|
|
799
753
|
});
|
|
800
754
|
}
|
|
801
|
-
function
|
|
755
|
+
function Er(e) {
|
|
802
756
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
803
757
|
}
|
|
804
|
-
function
|
|
805
|
-
var i =
|
|
806
|
-
return typeof s > "u" && (s = e.call(this,
|
|
758
|
+
function vr(e, t, r, n) {
|
|
759
|
+
var i = Er(n) ? n : r(n), s = t.get(i);
|
|
760
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
807
761
|
}
|
|
808
|
-
function
|
|
809
|
-
var
|
|
810
|
-
return typeof s > "u" && (s = e.apply(this,
|
|
762
|
+
function mt(e, t, r) {
|
|
763
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
764
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
811
765
|
}
|
|
812
|
-
function
|
|
813
|
-
return
|
|
766
|
+
function gt(e, t, r, n, i) {
|
|
767
|
+
return r.bind(t, e, n, i);
|
|
814
768
|
}
|
|
815
|
-
function
|
|
816
|
-
var
|
|
817
|
-
return
|
|
769
|
+
function _r(e, t) {
|
|
770
|
+
var r = e.length === 1 ? vr : mt;
|
|
771
|
+
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
818
772
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
773
|
+
function xr(e, t) {
|
|
774
|
+
return gt(e, this, mt, t.cache.create(), t.serializer);
|
|
821
775
|
}
|
|
822
|
-
function
|
|
823
|
-
return $e(e, this, mt, t.cache.create(), t.serializer);
|
|
824
|
-
}
|
|
825
|
-
var Tn = function() {
|
|
776
|
+
var Hr = function() {
|
|
826
777
|
return JSON.stringify(arguments);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
778
|
+
}, Tr = (
|
|
779
|
+
/** @class */
|
|
780
|
+
function() {
|
|
781
|
+
function e() {
|
|
782
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
783
|
+
}
|
|
784
|
+
return e.prototype.get = function(t) {
|
|
785
|
+
return this.cache[t];
|
|
786
|
+
}, e.prototype.set = function(t, r) {
|
|
787
|
+
this.cache[t] = r;
|
|
788
|
+
}, e;
|
|
789
|
+
}()
|
|
790
|
+
), Sr = {
|
|
838
791
|
create: function() {
|
|
839
|
-
return new
|
|
792
|
+
return new Tr();
|
|
840
793
|
}
|
|
841
|
-
},
|
|
842
|
-
variadic:
|
|
843
|
-
|
|
844
|
-
|
|
794
|
+
}, _e = {
|
|
795
|
+
variadic: xr
|
|
796
|
+
}, he = function() {
|
|
797
|
+
return he = Object.assign || function(t) {
|
|
798
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
799
|
+
r = arguments[n];
|
|
800
|
+
for (var s in r)
|
|
801
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
802
|
+
}
|
|
803
|
+
return t;
|
|
804
|
+
}, he.apply(this, arguments);
|
|
805
|
+
};
|
|
806
|
+
var d;
|
|
845
807
|
(function(e) {
|
|
846
808
|
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";
|
|
847
809
|
})(d || (d = {}));
|
|
848
|
-
var
|
|
810
|
+
var E;
|
|
849
811
|
(function(e) {
|
|
850
812
|
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";
|
|
851
|
-
})(
|
|
852
|
-
var
|
|
813
|
+
})(E || (E = {}));
|
|
814
|
+
var k;
|
|
853
815
|
(function(e) {
|
|
854
816
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
855
|
-
})(
|
|
817
|
+
})(k || (k = {}));
|
|
856
818
|
function Ve(e) {
|
|
857
|
-
return e.type ===
|
|
819
|
+
return e.type === E.literal;
|
|
858
820
|
}
|
|
859
|
-
function
|
|
860
|
-
return e.type ===
|
|
821
|
+
function Br(e) {
|
|
822
|
+
return e.type === E.argument;
|
|
861
823
|
}
|
|
862
824
|
function dt(e) {
|
|
863
|
-
return e.type ===
|
|
825
|
+
return e.type === E.number;
|
|
864
826
|
}
|
|
865
827
|
function bt(e) {
|
|
866
|
-
return e.type ===
|
|
828
|
+
return e.type === E.date;
|
|
867
829
|
}
|
|
868
830
|
function pt(e) {
|
|
869
|
-
return e.type ===
|
|
831
|
+
return e.type === E.time;
|
|
870
832
|
}
|
|
871
833
|
function yt(e) {
|
|
872
|
-
return e.type ===
|
|
834
|
+
return e.type === E.select;
|
|
873
835
|
}
|
|
874
836
|
function Et(e) {
|
|
875
|
-
return e.type ===
|
|
837
|
+
return e.type === E.plural;
|
|
876
838
|
}
|
|
877
|
-
function
|
|
878
|
-
return e.type ===
|
|
839
|
+
function Ar(e) {
|
|
840
|
+
return e.type === E.pound;
|
|
879
841
|
}
|
|
880
842
|
function vt(e) {
|
|
881
|
-
return e.type ===
|
|
843
|
+
return e.type === E.tag;
|
|
882
844
|
}
|
|
883
845
|
function _t(e) {
|
|
884
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
846
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
885
847
|
}
|
|
886
|
-
function
|
|
887
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
848
|
+
function Pe(e) {
|
|
849
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
888
850
|
}
|
|
889
|
-
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
890
|
-
function
|
|
851
|
+
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wr = /(?:[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;
|
|
852
|
+
function Pr(e) {
|
|
891
853
|
var t = {};
|
|
892
|
-
return e.replace(
|
|
893
|
-
var
|
|
894
|
-
switch (
|
|
854
|
+
return e.replace(wr, function(r) {
|
|
855
|
+
var n = r.length;
|
|
856
|
+
switch (r[0]) {
|
|
895
857
|
case "G":
|
|
896
|
-
t.era =
|
|
858
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
897
859
|
break;
|
|
898
860
|
case "y":
|
|
899
|
-
t.year =
|
|
861
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
900
862
|
break;
|
|
901
863
|
case "Y":
|
|
902
864
|
case "u":
|
|
@@ -908,30 +870,30 @@ function Pn(e) {
|
|
|
908
870
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
909
871
|
case "M":
|
|
910
872
|
case "L":
|
|
911
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
873
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
912
874
|
break;
|
|
913
875
|
case "w":
|
|
914
876
|
case "W":
|
|
915
877
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
916
878
|
case "d":
|
|
917
|
-
t.day = ["numeric", "2-digit"][
|
|
879
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
918
880
|
break;
|
|
919
881
|
case "D":
|
|
920
882
|
case "F":
|
|
921
883
|
case "g":
|
|
922
884
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
923
885
|
case "E":
|
|
924
|
-
t.weekday =
|
|
886
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
925
887
|
break;
|
|
926
888
|
case "e":
|
|
927
|
-
if (
|
|
889
|
+
if (n < 4)
|
|
928
890
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
929
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
891
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
930
892
|
break;
|
|
931
893
|
case "c":
|
|
932
|
-
if (
|
|
894
|
+
if (n < 4)
|
|
933
895
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
934
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
896
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
935
897
|
break;
|
|
936
898
|
case "a":
|
|
937
899
|
t.hour12 = !0;
|
|
@@ -940,32 +902,32 @@ function Pn(e) {
|
|
|
940
902
|
case "B":
|
|
941
903
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
942
904
|
case "h":
|
|
943
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
905
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
944
906
|
break;
|
|
945
907
|
case "H":
|
|
946
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
908
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
947
909
|
break;
|
|
948
910
|
case "K":
|
|
949
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
911
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
950
912
|
break;
|
|
951
913
|
case "k":
|
|
952
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
914
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
953
915
|
break;
|
|
954
916
|
case "j":
|
|
955
917
|
case "J":
|
|
956
918
|
case "C":
|
|
957
919
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
958
920
|
case "m":
|
|
959
|
-
t.minute = ["numeric", "2-digit"][
|
|
921
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
960
922
|
break;
|
|
961
923
|
case "s":
|
|
962
|
-
t.second = ["numeric", "2-digit"][
|
|
924
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
963
925
|
break;
|
|
964
926
|
case "S":
|
|
965
927
|
case "A":
|
|
966
928
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
967
929
|
case "z":
|
|
968
|
-
t.timeZoneName =
|
|
930
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
969
931
|
break;
|
|
970
932
|
case "Z":
|
|
971
933
|
case "O":
|
|
@@ -978,33 +940,43 @@ function Pn(e) {
|
|
|
978
940
|
return "";
|
|
979
941
|
}), t;
|
|
980
942
|
}
|
|
981
|
-
var
|
|
982
|
-
function
|
|
943
|
+
var _ = function() {
|
|
944
|
+
return _ = Object.assign || function(t) {
|
|
945
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
946
|
+
r = arguments[n];
|
|
947
|
+
for (var s in r)
|
|
948
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
949
|
+
}
|
|
950
|
+
return t;
|
|
951
|
+
}, _.apply(this, arguments);
|
|
952
|
+
};
|
|
953
|
+
var Or = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
954
|
+
function Nr(e) {
|
|
983
955
|
if (e.length === 0)
|
|
984
956
|
throw new Error("Number skeleton cannot be empty");
|
|
985
|
-
for (var t = e.split(
|
|
957
|
+
for (var t = e.split(Or).filter(function(f) {
|
|
986
958
|
return f.length > 0;
|
|
987
|
-
}),
|
|
988
|
-
var s = i[
|
|
989
|
-
if (
|
|
959
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
960
|
+
var s = i[n], u = s.split("/");
|
|
961
|
+
if (u.length === 0)
|
|
990
962
|
throw new Error("Invalid number skeleton");
|
|
991
|
-
for (var o =
|
|
992
|
-
var c = h[
|
|
963
|
+
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
964
|
+
var c = h[a];
|
|
993
965
|
if (c.length === 0)
|
|
994
966
|
throw new Error("Invalid number skeleton");
|
|
995
967
|
}
|
|
996
|
-
|
|
968
|
+
r.push({ stem: o, options: l });
|
|
997
969
|
}
|
|
998
|
-
return
|
|
970
|
+
return r;
|
|
999
971
|
}
|
|
1000
|
-
function
|
|
972
|
+
function Ir(e) {
|
|
1001
973
|
return e.replace(/^(.*?)-/, "");
|
|
1002
974
|
}
|
|
1003
|
-
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
975
|
+
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
|
1004
976
|
function ze(e) {
|
|
1005
977
|
var t = {};
|
|
1006
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(
|
|
1007
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
978
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
|
979
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1008
980
|
}), t;
|
|
1009
981
|
}
|
|
1010
982
|
function St(e) {
|
|
@@ -1047,27 +1019,27 @@ function St(e) {
|
|
|
1047
1019
|
};
|
|
1048
1020
|
}
|
|
1049
1021
|
}
|
|
1050
|
-
function
|
|
1022
|
+
function Cr(e) {
|
|
1051
1023
|
var t;
|
|
1052
1024
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1053
1025
|
notation: "engineering"
|
|
1054
1026
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1055
1027
|
notation: "scientific"
|
|
1056
1028
|
}, e = e.slice(1)), t) {
|
|
1057
|
-
var
|
|
1058
|
-
if (
|
|
1029
|
+
var r = e.slice(0, 2);
|
|
1030
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
|
1059
1031
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1060
1032
|
t.minimumIntegerDigits = e.length;
|
|
1061
1033
|
}
|
|
1062
1034
|
return t;
|
|
1063
1035
|
}
|
|
1064
1036
|
function We(e) {
|
|
1065
|
-
var t = {},
|
|
1066
|
-
return
|
|
1037
|
+
var t = {}, r = St(e);
|
|
1038
|
+
return r || t;
|
|
1067
1039
|
}
|
|
1068
|
-
function
|
|
1069
|
-
for (var t = {},
|
|
1070
|
-
var i = r
|
|
1040
|
+
function Mr(e) {
|
|
1041
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1042
|
+
var i = n[r];
|
|
1071
1043
|
switch (i.stem) {
|
|
1072
1044
|
case "percent":
|
|
1073
1045
|
case "%":
|
|
@@ -1089,7 +1061,7 @@ function Mn(e) {
|
|
|
1089
1061
|
continue;
|
|
1090
1062
|
case "measure-unit":
|
|
1091
1063
|
case "unit":
|
|
1092
|
-
t.style = "unit", t.unit =
|
|
1064
|
+
t.style = "unit", t.unit = Ir(i.options[0]);
|
|
1093
1065
|
continue;
|
|
1094
1066
|
case "compact-short":
|
|
1095
1067
|
case "K":
|
|
@@ -1100,13 +1072,13 @@ function Mn(e) {
|
|
|
1100
1072
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1101
1073
|
continue;
|
|
1102
1074
|
case "scientific":
|
|
1103
|
-
t =
|
|
1104
|
-
return
|
|
1075
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1076
|
+
return _(_({}, l), We(a));
|
|
1105
1077
|
}, {}));
|
|
1106
1078
|
continue;
|
|
1107
1079
|
case "engineering":
|
|
1108
|
-
t =
|
|
1109
|
-
return
|
|
1080
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1081
|
+
return _(_({}, l), We(a));
|
|
1110
1082
|
}, {}));
|
|
1111
1083
|
continue;
|
|
1112
1084
|
case "notation-simple":
|
|
@@ -1151,8 +1123,8 @@ function Mn(e) {
|
|
|
1151
1123
|
case "integer-width":
|
|
1152
1124
|
if (i.options.length > 1)
|
|
1153
1125
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1154
|
-
i.options[0].replace(
|
|
1155
|
-
if (
|
|
1126
|
+
i.options[0].replace(Lr, function(l, a, h, c, f, b) {
|
|
1127
|
+
if (a)
|
|
1156
1128
|
t.minimumIntegerDigits = h.length;
|
|
1157
1129
|
else {
|
|
1158
1130
|
if (c && f)
|
|
@@ -1171,25 +1143,25 @@ function Mn(e) {
|
|
|
1171
1143
|
if (Xe.test(i.stem)) {
|
|
1172
1144
|
if (i.options.length > 1)
|
|
1173
1145
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1174
|
-
i.stem.replace(Xe, function(l,
|
|
1175
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1146
|
+
i.stem.replace(Xe, function(l, a, h, c, f, b) {
|
|
1147
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1176
1148
|
});
|
|
1177
1149
|
var s = i.options[0];
|
|
1178
|
-
s === "w" ? t =
|
|
1150
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), ze(s)));
|
|
1179
1151
|
continue;
|
|
1180
1152
|
}
|
|
1181
1153
|
if (Ht.test(i.stem)) {
|
|
1182
|
-
t =
|
|
1154
|
+
t = _(_({}, t), ze(i.stem));
|
|
1183
1155
|
continue;
|
|
1184
1156
|
}
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1187
|
-
var o =
|
|
1188
|
-
o && (t =
|
|
1157
|
+
var u = St(i.stem);
|
|
1158
|
+
u && (t = _(_({}, t), u));
|
|
1159
|
+
var o = Cr(i.stem);
|
|
1160
|
+
o && (t = _(_({}, t), o));
|
|
1189
1161
|
}
|
|
1190
1162
|
return t;
|
|
1191
1163
|
}
|
|
1192
|
-
var
|
|
1164
|
+
var se = {
|
|
1193
1165
|
"001": [
|
|
1194
1166
|
"H",
|
|
1195
1167
|
"h"
|
|
@@ -2604,23 +2576,23 @@ var ie = {
|
|
|
2604
2576
|
"h"
|
|
2605
2577
|
]
|
|
2606
2578
|
};
|
|
2607
|
-
function
|
|
2608
|
-
for (var
|
|
2609
|
-
var i = e.charAt(
|
|
2579
|
+
function Rr(e, t) {
|
|
2580
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2581
|
+
var i = e.charAt(n);
|
|
2610
2582
|
if (i === "j") {
|
|
2611
|
-
for (var s = 0;
|
|
2612
|
-
s++,
|
|
2613
|
-
var
|
|
2614
|
-
for ((
|
|
2615
|
-
|
|
2616
|
-
for (;
|
|
2617
|
-
|
|
2583
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2584
|
+
s++, n++;
|
|
2585
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = $r(t);
|
|
2586
|
+
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2587
|
+
r += l;
|
|
2588
|
+
for (; u-- > 0; )
|
|
2589
|
+
r = a + r;
|
|
2618
2590
|
} else
|
|
2619
|
-
i === "J" ?
|
|
2591
|
+
i === "J" ? r += "H" : r += i;
|
|
2620
2592
|
}
|
|
2621
|
-
return
|
|
2593
|
+
return r;
|
|
2622
2594
|
}
|
|
2623
|
-
function $
|
|
2595
|
+
function $r(e) {
|
|
2624
2596
|
var t = e.hourCycle;
|
|
2625
2597
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2626
2598
|
e.hourCycles && // @ts-ignore
|
|
@@ -2637,73 +2609,73 @@ function $n(e) {
|
|
|
2637
2609
|
default:
|
|
2638
2610
|
throw new Error("Invalid hourCycle");
|
|
2639
2611
|
}
|
|
2640
|
-
var
|
|
2641
|
-
|
|
2642
|
-
var i =
|
|
2612
|
+
var r = e.language, n;
|
|
2613
|
+
r !== "root" && (n = e.maximize().region);
|
|
2614
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2643
2615
|
return i[0];
|
|
2644
2616
|
}
|
|
2645
|
-
var
|
|
2617
|
+
var xe, Ur = new RegExp("^".concat(xt.source, "*")), Dr = new RegExp("".concat(xt.source, "*$"));
|
|
2646
2618
|
function p(e, t) {
|
|
2647
2619
|
return { start: e, end: t };
|
|
2648
2620
|
}
|
|
2649
|
-
var
|
|
2621
|
+
var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, jr = !!Object.fromEntries, kr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Wr = zr ? Number.isSafeInteger : function(e) {
|
|
2650
2622
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2651
|
-
},
|
|
2623
|
+
}, Oe = !0;
|
|
2652
2624
|
try {
|
|
2653
|
-
var
|
|
2654
|
-
|
|
2625
|
+
var Zr = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2626
|
+
Oe = ((xe = Zr.exec("a")) === null || xe === void 0 ? void 0 : xe[0]) === "a";
|
|
2655
2627
|
} catch {
|
|
2656
|
-
|
|
2628
|
+
Oe = !1;
|
|
2657
2629
|
}
|
|
2658
|
-
var Ze =
|
|
2630
|
+
var Ze = Gr ? (
|
|
2659
2631
|
// Native
|
|
2660
|
-
function(t,
|
|
2661
|
-
return t.startsWith(
|
|
2632
|
+
function(t, r, n) {
|
|
2633
|
+
return t.startsWith(r, n);
|
|
2662
2634
|
}
|
|
2663
2635
|
) : (
|
|
2664
2636
|
// For IE11
|
|
2665
|
-
function(t,
|
|
2666
|
-
return t.slice(
|
|
2637
|
+
function(t, r, n) {
|
|
2638
|
+
return t.slice(n, n + r.length) === r;
|
|
2667
2639
|
}
|
|
2668
|
-
),
|
|
2640
|
+
), Ne = Fr ? String.fromCodePoint : (
|
|
2669
2641
|
// IE11
|
|
2670
2642
|
function() {
|
|
2671
|
-
for (var t = [],
|
|
2672
|
-
t[
|
|
2673
|
-
for (var
|
|
2674
|
-
if (
|
|
2675
|
-
throw RangeError(
|
|
2676
|
-
|
|
2643
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2644
|
+
t[r] = arguments[r];
|
|
2645
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2646
|
+
if (u = t[s++], u > 1114111)
|
|
2647
|
+
throw RangeError(u + " is not a valid code point");
|
|
2648
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2677
2649
|
}
|
|
2678
|
-
return
|
|
2650
|
+
return n;
|
|
2679
2651
|
}
|
|
2680
2652
|
), Qe = (
|
|
2681
2653
|
// native
|
|
2682
|
-
|
|
2654
|
+
jr ? Object.fromEntries : (
|
|
2683
2655
|
// Ponyfill
|
|
2684
2656
|
function(t) {
|
|
2685
|
-
for (var
|
|
2686
|
-
var s = i[
|
|
2687
|
-
|
|
2657
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2658
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2659
|
+
r[u] = o;
|
|
2688
2660
|
}
|
|
2689
|
-
return
|
|
2661
|
+
return r;
|
|
2690
2662
|
}
|
|
2691
2663
|
)
|
|
2692
|
-
), Bt =
|
|
2664
|
+
), Bt = kr ? (
|
|
2693
2665
|
// Native
|
|
2694
|
-
function(t,
|
|
2695
|
-
return t.codePointAt(
|
|
2666
|
+
function(t, r) {
|
|
2667
|
+
return t.codePointAt(r);
|
|
2696
2668
|
}
|
|
2697
2669
|
) : (
|
|
2698
2670
|
// IE 11
|
|
2699
|
-
function(t,
|
|
2700
|
-
var
|
|
2701
|
-
if (!(
|
|
2702
|
-
var i = t.charCodeAt(
|
|
2703
|
-
return i < 55296 || i > 56319 ||
|
|
2671
|
+
function(t, r) {
|
|
2672
|
+
var n = t.length;
|
|
2673
|
+
if (!(r < 0 || r >= n)) {
|
|
2674
|
+
var i = t.charCodeAt(r), s;
|
|
2675
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2704
2676
|
}
|
|
2705
2677
|
}
|
|
2706
|
-
),
|
|
2678
|
+
), Qr = Vr ? (
|
|
2707
2679
|
// Native
|
|
2708
2680
|
function(t) {
|
|
2709
2681
|
return t.trimStart();
|
|
@@ -2711,9 +2683,9 @@ var Ze = Gn ? (
|
|
|
2711
2683
|
) : (
|
|
2712
2684
|
// Ponyfill
|
|
2713
2685
|
function(t) {
|
|
2714
|
-
return t.replace(
|
|
2686
|
+
return t.replace(Ur, "");
|
|
2715
2687
|
}
|
|
2716
|
-
),
|
|
2688
|
+
), qr = Xr ? (
|
|
2717
2689
|
// Native
|
|
2718
2690
|
function(t) {
|
|
2719
2691
|
return t.trimEnd();
|
|
@@ -2721,126 +2693,126 @@ var Ze = Gn ? (
|
|
|
2721
2693
|
) : (
|
|
2722
2694
|
// Ponyfill
|
|
2723
2695
|
function(t) {
|
|
2724
|
-
return t.replace(
|
|
2696
|
+
return t.replace(Dr, "");
|
|
2725
2697
|
}
|
|
2726
2698
|
);
|
|
2727
2699
|
function At(e, t) {
|
|
2728
2700
|
return new RegExp(e, t);
|
|
2729
2701
|
}
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2702
|
+
var Ie;
|
|
2703
|
+
if (Oe) {
|
|
2732
2704
|
var qe = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2733
|
-
|
|
2734
|
-
var
|
|
2735
|
-
qe.lastIndex =
|
|
2705
|
+
Ie = function(t, r) {
|
|
2706
|
+
var n;
|
|
2707
|
+
qe.lastIndex = r;
|
|
2736
2708
|
var i = qe.exec(t);
|
|
2737
|
-
return (
|
|
2709
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2738
2710
|
};
|
|
2739
2711
|
} else
|
|
2740
|
-
|
|
2741
|
-
for (var
|
|
2742
|
-
var i = Bt(t,
|
|
2743
|
-
if (i === void 0 || wt(i) ||
|
|
2712
|
+
Ie = function(t, r) {
|
|
2713
|
+
for (var n = []; ; ) {
|
|
2714
|
+
var i = Bt(t, r);
|
|
2715
|
+
if (i === void 0 || wt(i) || en(i))
|
|
2744
2716
|
break;
|
|
2745
|
-
|
|
2717
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2746
2718
|
}
|
|
2747
|
-
return
|
|
2719
|
+
return Ne.apply(void 0, n);
|
|
2748
2720
|
};
|
|
2749
|
-
var
|
|
2721
|
+
var Jr = (
|
|
2750
2722
|
/** @class */
|
|
2751
2723
|
function() {
|
|
2752
|
-
function e(t,
|
|
2753
|
-
|
|
2724
|
+
function e(t, r) {
|
|
2725
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2754
2726
|
}
|
|
2755
2727
|
return e.prototype.parse = function() {
|
|
2756
2728
|
if (this.offset() !== 0)
|
|
2757
2729
|
throw Error("parser can only be used once");
|
|
2758
2730
|
return this.parseMessage(0, "", !1);
|
|
2759
|
-
}, e.prototype.parseMessage = function(t,
|
|
2731
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2760
2732
|
for (var i = []; !this.isEOF(); ) {
|
|
2761
2733
|
var s = this.char();
|
|
2762
2734
|
if (s === 123) {
|
|
2763
|
-
var
|
|
2764
|
-
if (
|
|
2765
|
-
return
|
|
2766
|
-
i.push(
|
|
2735
|
+
var u = this.parseArgument(t, n);
|
|
2736
|
+
if (u.err)
|
|
2737
|
+
return u;
|
|
2738
|
+
i.push(u.val);
|
|
2767
2739
|
} else {
|
|
2768
2740
|
if (s === 125 && t > 0)
|
|
2769
2741
|
break;
|
|
2770
|
-
if (s === 35 && (
|
|
2742
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2771
2743
|
var o = this.clonePosition();
|
|
2772
2744
|
this.bump(), i.push({
|
|
2773
|
-
type:
|
|
2745
|
+
type: E.pound,
|
|
2774
2746
|
location: p(o, this.clonePosition())
|
|
2775
2747
|
});
|
|
2776
2748
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2777
|
-
if (
|
|
2749
|
+
if (n)
|
|
2778
2750
|
break;
|
|
2779
2751
|
return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2780
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2781
|
-
var
|
|
2782
|
-
if (
|
|
2783
|
-
return
|
|
2784
|
-
i.push(
|
|
2752
|
+
} else if (s === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
|
|
2753
|
+
var u = this.parseTag(t, r);
|
|
2754
|
+
if (u.err)
|
|
2755
|
+
return u;
|
|
2756
|
+
i.push(u.val);
|
|
2785
2757
|
} else {
|
|
2786
|
-
var
|
|
2787
|
-
if (
|
|
2788
|
-
return
|
|
2789
|
-
i.push(
|
|
2758
|
+
var u = this.parseLiteral(t, r);
|
|
2759
|
+
if (u.err)
|
|
2760
|
+
return u;
|
|
2761
|
+
i.push(u.val);
|
|
2790
2762
|
}
|
|
2791
2763
|
}
|
|
2792
2764
|
}
|
|
2793
2765
|
return { val: i, err: null };
|
|
2794
|
-
}, e.prototype.parseTag = function(t,
|
|
2795
|
-
var
|
|
2766
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2767
|
+
var n = this.clonePosition();
|
|
2796
2768
|
this.bump();
|
|
2797
2769
|
var i = this.parseTagName();
|
|
2798
2770
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2799
2771
|
return {
|
|
2800
2772
|
val: {
|
|
2801
|
-
type:
|
|
2773
|
+
type: E.literal,
|
|
2802
2774
|
value: "<".concat(i, "/>"),
|
|
2803
|
-
location: p(
|
|
2775
|
+
location: p(n, this.clonePosition())
|
|
2804
2776
|
},
|
|
2805
2777
|
err: null
|
|
2806
2778
|
};
|
|
2807
2779
|
if (this.bumpIf(">")) {
|
|
2808
|
-
var s = this.parseMessage(t + 1,
|
|
2780
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2809
2781
|
if (s.err)
|
|
2810
2782
|
return s;
|
|
2811
|
-
var
|
|
2783
|
+
var u = s.val, o = this.clonePosition();
|
|
2812
2784
|
if (this.bumpIf("</")) {
|
|
2813
|
-
if (this.isEOF() || !
|
|
2785
|
+
if (this.isEOF() || !Le(this.char()))
|
|
2814
2786
|
return this.error(d.INVALID_TAG, p(o, this.clonePosition()));
|
|
2815
|
-
var l = this.clonePosition(),
|
|
2816
|
-
return i !==
|
|
2787
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2788
|
+
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2817
2789
|
val: {
|
|
2818
|
-
type:
|
|
2790
|
+
type: E.tag,
|
|
2819
2791
|
value: i,
|
|
2820
|
-
children:
|
|
2821
|
-
location: p(
|
|
2792
|
+
children: u,
|
|
2793
|
+
location: p(n, this.clonePosition())
|
|
2822
2794
|
},
|
|
2823
2795
|
err: null
|
|
2824
2796
|
} : this.error(d.INVALID_TAG, p(o, this.clonePosition())));
|
|
2825
2797
|
} else
|
|
2826
|
-
return this.error(d.UNCLOSED_TAG, p(
|
|
2798
|
+
return this.error(d.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2827
2799
|
} else
|
|
2828
|
-
return this.error(d.INVALID_TAG, p(
|
|
2800
|
+
return this.error(d.INVALID_TAG, p(n, this.clonePosition()));
|
|
2829
2801
|
}, e.prototype.parseTagName = function() {
|
|
2830
2802
|
var t = this.offset();
|
|
2831
|
-
for (this.bump(); !this.isEOF() &&
|
|
2803
|
+
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
|
2832
2804
|
this.bump();
|
|
2833
2805
|
return this.message.slice(t, this.offset());
|
|
2834
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2835
|
-
for (var
|
|
2836
|
-
var s = this.tryParseQuote(
|
|
2806
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2807
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2808
|
+
var s = this.tryParseQuote(r);
|
|
2837
2809
|
if (s) {
|
|
2838
2810
|
i += s;
|
|
2839
2811
|
continue;
|
|
2840
2812
|
}
|
|
2841
|
-
var
|
|
2842
|
-
if (
|
|
2843
|
-
i +=
|
|
2813
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2814
|
+
if (u) {
|
|
2815
|
+
i += u;
|
|
2844
2816
|
continue;
|
|
2845
2817
|
}
|
|
2846
2818
|
var o = this.tryParseLeftAngleBracket();
|
|
@@ -2850,14 +2822,14 @@ var Jn = (
|
|
|
2850
2822
|
}
|
|
2851
2823
|
break;
|
|
2852
2824
|
}
|
|
2853
|
-
var l = p(
|
|
2825
|
+
var l = p(n, this.clonePosition());
|
|
2854
2826
|
return {
|
|
2855
|
-
val: { type:
|
|
2827
|
+
val: { type: E.literal, value: i, location: l },
|
|
2856
2828
|
err: null
|
|
2857
2829
|
};
|
|
2858
2830
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2859
2831
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2860
|
-
!
|
|
2832
|
+
!Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2861
2833
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2862
2834
|
if (this.isEOF() || this.char() !== 39)
|
|
2863
2835
|
return null;
|
|
@@ -2877,114 +2849,114 @@ var Jn = (
|
|
|
2877
2849
|
return null;
|
|
2878
2850
|
}
|
|
2879
2851
|
this.bump();
|
|
2880
|
-
var
|
|
2852
|
+
var r = [this.char()];
|
|
2881
2853
|
for (this.bump(); !this.isEOF(); ) {
|
|
2882
|
-
var
|
|
2883
|
-
if (
|
|
2854
|
+
var n = this.char();
|
|
2855
|
+
if (n === 39)
|
|
2884
2856
|
if (this.peek() === 39)
|
|
2885
|
-
|
|
2857
|
+
r.push(39), this.bump();
|
|
2886
2858
|
else {
|
|
2887
2859
|
this.bump();
|
|
2888
2860
|
break;
|
|
2889
2861
|
}
|
|
2890
2862
|
else
|
|
2891
|
-
|
|
2863
|
+
r.push(n);
|
|
2892
2864
|
this.bump();
|
|
2893
2865
|
}
|
|
2894
|
-
return
|
|
2895
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2866
|
+
return Ne.apply(void 0, r);
|
|
2867
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2896
2868
|
if (this.isEOF())
|
|
2897
2869
|
return null;
|
|
2898
|
-
var
|
|
2899
|
-
return
|
|
2900
|
-
}, e.prototype.parseArgument = function(t,
|
|
2901
|
-
var
|
|
2870
|
+
var n = this.char();
|
|
2871
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ne(n));
|
|
2872
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2873
|
+
var n = this.clonePosition();
|
|
2902
2874
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2903
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(
|
|
2875
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2904
2876
|
if (this.char() === 125)
|
|
2905
|
-
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(
|
|
2877
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2906
2878
|
var i = this.parseIdentifierIfPossible().value;
|
|
2907
2879
|
if (!i)
|
|
2908
|
-
return this.error(d.MALFORMED_ARGUMENT, p(
|
|
2880
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2909
2881
|
if (this.bumpSpace(), this.isEOF())
|
|
2910
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(
|
|
2882
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2911
2883
|
switch (this.char()) {
|
|
2912
2884
|
case 125:
|
|
2913
2885
|
return this.bump(), {
|
|
2914
2886
|
val: {
|
|
2915
|
-
type:
|
|
2887
|
+
type: E.argument,
|
|
2916
2888
|
// value does not include the opening and closing braces.
|
|
2917
2889
|
value: i,
|
|
2918
|
-
location: p(
|
|
2890
|
+
location: p(n, this.clonePosition())
|
|
2919
2891
|
},
|
|
2920
2892
|
err: null
|
|
2921
2893
|
};
|
|
2922
2894
|
case 44:
|
|
2923
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(
|
|
2895
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2924
2896
|
default:
|
|
2925
|
-
return this.error(d.MALFORMED_ARGUMENT, p(
|
|
2897
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2926
2898
|
}
|
|
2927
2899
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2928
|
-
var t = this.clonePosition(),
|
|
2900
|
+
var t = this.clonePosition(), r = this.offset(), n = Ie(this.message, r), i = r + n.length;
|
|
2929
2901
|
this.bumpTo(i);
|
|
2930
|
-
var s = this.clonePosition(),
|
|
2931
|
-
return { value:
|
|
2932
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2933
|
-
var s,
|
|
2902
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2903
|
+
return { value: n, location: u };
|
|
2904
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2905
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2934
2906
|
switch (o) {
|
|
2935
2907
|
case "":
|
|
2936
|
-
return this.error(d.EXPECT_ARGUMENT_TYPE, p(
|
|
2908
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, p(u, l));
|
|
2937
2909
|
case "number":
|
|
2938
2910
|
case "date":
|
|
2939
2911
|
case "time": {
|
|
2940
2912
|
this.bumpSpace();
|
|
2941
|
-
var
|
|
2913
|
+
var a = null;
|
|
2942
2914
|
if (this.bumpIf(",")) {
|
|
2943
2915
|
this.bumpSpace();
|
|
2944
2916
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2945
2917
|
if (c.err)
|
|
2946
2918
|
return c;
|
|
2947
|
-
var f =
|
|
2919
|
+
var f = qr(c.val);
|
|
2948
2920
|
if (f.length === 0)
|
|
2949
2921
|
return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2950
2922
|
var b = p(h, this.clonePosition());
|
|
2951
|
-
|
|
2923
|
+
a = { style: f, styleLocation: b };
|
|
2952
2924
|
}
|
|
2953
2925
|
var y = this.tryParseArgumentClose(i);
|
|
2954
2926
|
if (y.err)
|
|
2955
2927
|
return y;
|
|
2956
2928
|
var x = p(i, this.clonePosition());
|
|
2957
|
-
if (
|
|
2958
|
-
var S =
|
|
2929
|
+
if (a && Ze(a?.style, "::", 0)) {
|
|
2930
|
+
var S = Qr(a.style.slice(2));
|
|
2959
2931
|
if (o === "number") {
|
|
2960
|
-
var c = this.parseNumberSkeletonFromString(S,
|
|
2932
|
+
var c = this.parseNumberSkeletonFromString(S, a.styleLocation);
|
|
2961
2933
|
return c.err ? c : {
|
|
2962
|
-
val: { type:
|
|
2934
|
+
val: { type: E.number, value: n, location: x, style: c.val },
|
|
2963
2935
|
err: null
|
|
2964
2936
|
};
|
|
2965
2937
|
} else {
|
|
2966
2938
|
if (S.length === 0)
|
|
2967
2939
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, x);
|
|
2968
|
-
var
|
|
2969
|
-
this.locale && (
|
|
2940
|
+
var O = S;
|
|
2941
|
+
this.locale && (O = Rr(S, this.locale));
|
|
2970
2942
|
var f = {
|
|
2971
|
-
type:
|
|
2972
|
-
pattern:
|
|
2973
|
-
location:
|
|
2974
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2975
|
-
}, P = o === "date" ?
|
|
2943
|
+
type: k.dateTime,
|
|
2944
|
+
pattern: O,
|
|
2945
|
+
location: a.styleLocation,
|
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? Pr(O) : {}
|
|
2947
|
+
}, P = o === "date" ? E.date : E.time;
|
|
2976
2948
|
return {
|
|
2977
|
-
val: { type: P, value:
|
|
2949
|
+
val: { type: P, value: n, location: x, style: f },
|
|
2978
2950
|
err: null
|
|
2979
2951
|
};
|
|
2980
2952
|
}
|
|
2981
2953
|
}
|
|
2982
2954
|
return {
|
|
2983
2955
|
val: {
|
|
2984
|
-
type: o === "number" ?
|
|
2985
|
-
value:
|
|
2956
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2957
|
+
value: n,
|
|
2986
2958
|
location: x,
|
|
2987
|
-
style: (s =
|
|
2959
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2988
2960
|
},
|
|
2989
2961
|
err: null
|
|
2990
2962
|
};
|
|
@@ -2994,54 +2966,54 @@ var Jn = (
|
|
|
2994
2966
|
case "select": {
|
|
2995
2967
|
var B = this.clonePosition();
|
|
2996
2968
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2997
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B,
|
|
2969
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B, he({}, B)));
|
|
2998
2970
|
this.bumpSpace();
|
|
2999
|
-
var
|
|
3000
|
-
if (o !== "select" &&
|
|
2971
|
+
var N = this.parseIdentifierIfPossible(), w = 0;
|
|
2972
|
+
if (o !== "select" && N.value === "offset") {
|
|
3001
2973
|
if (!this.bumpIf(":"))
|
|
3002
2974
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
3003
2975
|
this.bumpSpace();
|
|
3004
2976
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3005
2977
|
if (c.err)
|
|
3006
2978
|
return c;
|
|
3007
|
-
this.bumpSpace(),
|
|
2979
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), w = c.val;
|
|
3008
2980
|
}
|
|
3009
|
-
var T = this.tryParsePluralOrSelectOptions(t, o,
|
|
2981
|
+
var T = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
3010
2982
|
if (T.err)
|
|
3011
2983
|
return T;
|
|
3012
2984
|
var y = this.tryParseArgumentClose(i);
|
|
3013
2985
|
if (y.err)
|
|
3014
2986
|
return y;
|
|
3015
|
-
var
|
|
2987
|
+
var v = p(i, this.clonePosition());
|
|
3016
2988
|
return o === "select" ? {
|
|
3017
2989
|
val: {
|
|
3018
|
-
type:
|
|
3019
|
-
value:
|
|
2990
|
+
type: E.select,
|
|
2991
|
+
value: n,
|
|
3020
2992
|
options: Qe(T.val),
|
|
3021
|
-
location:
|
|
2993
|
+
location: v
|
|
3022
2994
|
},
|
|
3023
2995
|
err: null
|
|
3024
2996
|
} : {
|
|
3025
2997
|
val: {
|
|
3026
|
-
type:
|
|
3027
|
-
value:
|
|
2998
|
+
type: E.plural,
|
|
2999
|
+
value: n,
|
|
3028
3000
|
options: Qe(T.val),
|
|
3029
3001
|
offset: w,
|
|
3030
3002
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3031
|
-
location:
|
|
3003
|
+
location: v
|
|
3032
3004
|
},
|
|
3033
3005
|
err: null
|
|
3034
3006
|
};
|
|
3035
3007
|
}
|
|
3036
3008
|
default:
|
|
3037
|
-
return this.error(d.INVALID_ARGUMENT_TYPE, p(
|
|
3009
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, p(u, l));
|
|
3038
3010
|
}
|
|
3039
3011
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3040
3012
|
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3041
3013
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3042
|
-
for (var t = 0,
|
|
3043
|
-
var
|
|
3044
|
-
switch (
|
|
3014
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3015
|
+
var n = this.char();
|
|
3016
|
+
switch (n) {
|
|
3045
3017
|
case 39: {
|
|
3046
3018
|
this.bump();
|
|
3047
3019
|
var i = this.clonePosition();
|
|
@@ -3059,7 +3031,7 @@ var Jn = (
|
|
|
3059
3031
|
t -= 1;
|
|
3060
3032
|
else
|
|
3061
3033
|
return {
|
|
3062
|
-
val: this.message.slice(
|
|
3034
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3063
3035
|
err: null
|
|
3064
3036
|
};
|
|
3065
3037
|
break;
|
|
@@ -3070,70 +3042,70 @@ var Jn = (
|
|
|
3070
3042
|
}
|
|
3071
3043
|
}
|
|
3072
3044
|
return {
|
|
3073
|
-
val: this.message.slice(
|
|
3045
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3074
3046
|
err: null
|
|
3075
3047
|
};
|
|
3076
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3077
|
-
var
|
|
3048
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3049
|
+
var n = [];
|
|
3078
3050
|
try {
|
|
3079
|
-
|
|
3051
|
+
n = Nr(t);
|
|
3080
3052
|
} catch {
|
|
3081
|
-
return this.error(d.INVALID_NUMBER_SKELETON,
|
|
3053
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3082
3054
|
}
|
|
3083
3055
|
return {
|
|
3084
3056
|
val: {
|
|
3085
|
-
type:
|
|
3086
|
-
tokens:
|
|
3087
|
-
location:
|
|
3088
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3057
|
+
type: k.number,
|
|
3058
|
+
tokens: n,
|
|
3059
|
+
location: r,
|
|
3060
|
+
parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
|
|
3089
3061
|
},
|
|
3090
3062
|
err: null
|
|
3091
3063
|
};
|
|
3092
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3093
|
-
for (var s,
|
|
3094
|
-
if (
|
|
3064
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3065
|
+
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3066
|
+
if (a.length === 0) {
|
|
3095
3067
|
var c = this.clonePosition();
|
|
3096
|
-
if (
|
|
3068
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3097
3069
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3098
3070
|
if (f.err)
|
|
3099
3071
|
return f;
|
|
3100
|
-
h = p(c, this.clonePosition()),
|
|
3072
|
+
h = p(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3101
3073
|
} else
|
|
3102
3074
|
break;
|
|
3103
3075
|
}
|
|
3104
|
-
if (l.has(
|
|
3105
|
-
return this.error(
|
|
3106
|
-
|
|
3076
|
+
if (l.has(a))
|
|
3077
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3078
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
3107
3079
|
var b = this.clonePosition();
|
|
3108
3080
|
if (!this.bumpIf("{"))
|
|
3109
|
-
return this.error(
|
|
3110
|
-
var y = this.parseMessage(t + 1,
|
|
3081
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3082
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3111
3083
|
if (y.err)
|
|
3112
3084
|
return y;
|
|
3113
3085
|
var x = this.tryParseArgumentClose(b);
|
|
3114
3086
|
if (x.err)
|
|
3115
3087
|
return x;
|
|
3116
3088
|
o.push([
|
|
3117
|
-
|
|
3089
|
+
a,
|
|
3118
3090
|
{
|
|
3119
3091
|
value: y.val,
|
|
3120
3092
|
location: p(b, this.clonePosition())
|
|
3121
3093
|
}
|
|
3122
|
-
]), l.add(
|
|
3094
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3123
3095
|
}
|
|
3124
|
-
return o.length === 0 ? this.error(
|
|
3125
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3126
|
-
var
|
|
3127
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3128
|
-
for (var s = !1,
|
|
3096
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3097
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3098
|
+
var n = 1, i = this.clonePosition();
|
|
3099
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3100
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
3129
3101
|
var o = this.char();
|
|
3130
3102
|
if (o >= 48 && o <= 57)
|
|
3131
|
-
s = !0,
|
|
3103
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
3132
3104
|
else
|
|
3133
3105
|
break;
|
|
3134
3106
|
}
|
|
3135
3107
|
var l = p(i, this.clonePosition());
|
|
3136
|
-
return s ? (
|
|
3108
|
+
return s ? (u *= n, Wr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3137
3109
|
}, e.prototype.offset = function() {
|
|
3138
3110
|
return this.position.offset;
|
|
3139
3111
|
}, e.prototype.isEOF = function() {
|
|
@@ -3148,17 +3120,17 @@ var Jn = (
|
|
|
3148
3120
|
var t = this.position.offset;
|
|
3149
3121
|
if (t >= this.message.length)
|
|
3150
3122
|
throw Error("out of bound");
|
|
3151
|
-
var
|
|
3152
|
-
if (
|
|
3123
|
+
var r = Bt(this.message, t);
|
|
3124
|
+
if (r === void 0)
|
|
3153
3125
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3154
|
-
return
|
|
3155
|
-
}, e.prototype.error = function(t,
|
|
3126
|
+
return r;
|
|
3127
|
+
}, e.prototype.error = function(t, r) {
|
|
3156
3128
|
return {
|
|
3157
3129
|
val: null,
|
|
3158
3130
|
err: {
|
|
3159
3131
|
kind: t,
|
|
3160
3132
|
message: this.message,
|
|
3161
|
-
location:
|
|
3133
|
+
location: r
|
|
3162
3134
|
}
|
|
3163
3135
|
};
|
|
3164
3136
|
}, e.prototype.bump = function() {
|
|
@@ -3168,22 +3140,22 @@ var Jn = (
|
|
|
3168
3140
|
}
|
|
3169
3141
|
}, e.prototype.bumpIf = function(t) {
|
|
3170
3142
|
if (Ze(this.message, t, this.offset())) {
|
|
3171
|
-
for (var
|
|
3143
|
+
for (var r = 0; r < t.length; r++)
|
|
3172
3144
|
this.bump();
|
|
3173
3145
|
return !0;
|
|
3174
3146
|
}
|
|
3175
3147
|
return !1;
|
|
3176
3148
|
}, e.prototype.bumpUntil = function(t) {
|
|
3177
|
-
var
|
|
3178
|
-
return
|
|
3149
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3150
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3179
3151
|
}, e.prototype.bumpTo = function(t) {
|
|
3180
3152
|
if (this.offset() > t)
|
|
3181
3153
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3182
3154
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3183
|
-
var
|
|
3184
|
-
if (
|
|
3155
|
+
var r = this.offset();
|
|
3156
|
+
if (r === t)
|
|
3185
3157
|
break;
|
|
3186
|
-
if (
|
|
3158
|
+
if (r > t)
|
|
3187
3159
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3188
3160
|
if (this.bump(), this.isEOF())
|
|
3189
3161
|
break;
|
|
@@ -3194,55 +3166,55 @@ var Jn = (
|
|
|
3194
3166
|
}, e.prototype.peek = function() {
|
|
3195
3167
|
if (this.isEOF())
|
|
3196
3168
|
return null;
|
|
3197
|
-
var t = this.char(),
|
|
3198
|
-
return
|
|
3169
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3170
|
+
return n ?? null;
|
|
3199
3171
|
}, e;
|
|
3200
3172
|
}()
|
|
3201
3173
|
);
|
|
3202
|
-
function
|
|
3174
|
+
function Le(e) {
|
|
3203
3175
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3204
3176
|
}
|
|
3205
|
-
function
|
|
3206
|
-
return
|
|
3177
|
+
function Yr(e) {
|
|
3178
|
+
return Le(e) || e === 47;
|
|
3207
3179
|
}
|
|
3208
|
-
function
|
|
3180
|
+
function Kr(e) {
|
|
3209
3181
|
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;
|
|
3210
3182
|
}
|
|
3211
3183
|
function wt(e) {
|
|
3212
3184
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3213
3185
|
}
|
|
3214
|
-
function
|
|
3186
|
+
function en(e) {
|
|
3215
3187
|
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;
|
|
3216
3188
|
}
|
|
3217
|
-
function
|
|
3189
|
+
function Ce(e) {
|
|
3218
3190
|
e.forEach(function(t) {
|
|
3219
3191
|
if (delete t.location, yt(t) || Et(t))
|
|
3220
|
-
for (var
|
|
3221
|
-
delete t.options[
|
|
3192
|
+
for (var r in t.options)
|
|
3193
|
+
delete t.options[r].location, Ce(t.options[r].value);
|
|
3222
3194
|
else
|
|
3223
|
-
dt(t) && _t(t.style) || (bt(t) || pt(t)) &&
|
|
3195
|
+
dt(t) && _t(t.style) || (bt(t) || pt(t)) && Pe(t.style) ? delete t.style.location : vt(t) && Ce(t.children);
|
|
3224
3196
|
});
|
|
3225
3197
|
}
|
|
3226
|
-
function
|
|
3227
|
-
t === void 0 && (t = {}), t =
|
|
3228
|
-
var
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3231
|
-
throw
|
|
3198
|
+
function tn(e, t) {
|
|
3199
|
+
t === void 0 && (t = {}), t = he({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3200
|
+
var r = new Jr(e, t).parse();
|
|
3201
|
+
if (r.err) {
|
|
3202
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3203
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3232
3204
|
}
|
|
3233
|
-
return t?.captureLocation ||
|
|
3205
|
+
return t?.captureLocation || Ce(r.val), r.val;
|
|
3234
3206
|
}
|
|
3235
|
-
var
|
|
3207
|
+
var V;
|
|
3236
3208
|
(function(e) {
|
|
3237
3209
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3238
|
-
})(
|
|
3239
|
-
var
|
|
3210
|
+
})(V || (V = {}));
|
|
3211
|
+
var de = (
|
|
3240
3212
|
/** @class */
|
|
3241
3213
|
function(e) {
|
|
3242
|
-
|
|
3243
|
-
function t(
|
|
3244
|
-
var s = e.call(this,
|
|
3245
|
-
return s.code =
|
|
3214
|
+
ge(t, e);
|
|
3215
|
+
function t(r, n, i) {
|
|
3216
|
+
var s = e.call(this, r) || this;
|
|
3217
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3246
3218
|
}
|
|
3247
3219
|
return t.prototype.toString = function() {
|
|
3248
3220
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3251,44 +3223,44 @@ var me = (
|
|
|
3251
3223
|
), Je = (
|
|
3252
3224
|
/** @class */
|
|
3253
3225
|
function(e) {
|
|
3254
|
-
|
|
3255
|
-
function t(
|
|
3256
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3226
|
+
ge(t, e);
|
|
3227
|
+
function t(r, n, i, s) {
|
|
3228
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3257
3229
|
}
|
|
3258
3230
|
return t;
|
|
3259
|
-
}(
|
|
3260
|
-
),
|
|
3231
|
+
}(de)
|
|
3232
|
+
), rn = (
|
|
3261
3233
|
/** @class */
|
|
3262
3234
|
function(e) {
|
|
3263
|
-
|
|
3264
|
-
function t(
|
|
3265
|
-
return e.call(this, 'Value for "'.concat(
|
|
3235
|
+
ge(t, e);
|
|
3236
|
+
function t(r, n, i) {
|
|
3237
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3266
3238
|
}
|
|
3267
3239
|
return t;
|
|
3268
|
-
}(
|
|
3269
|
-
),
|
|
3240
|
+
}(de)
|
|
3241
|
+
), nn = (
|
|
3270
3242
|
/** @class */
|
|
3271
3243
|
function(e) {
|
|
3272
|
-
|
|
3273
|
-
function t(
|
|
3274
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3244
|
+
ge(t, e);
|
|
3245
|
+
function t(r, n) {
|
|
3246
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3275
3247
|
}
|
|
3276
3248
|
return t;
|
|
3277
|
-
}(
|
|
3249
|
+
}(de)
|
|
3278
3250
|
), A;
|
|
3279
3251
|
(function(e) {
|
|
3280
3252
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3281
3253
|
})(A || (A = {}));
|
|
3282
|
-
function
|
|
3283
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3284
|
-
var
|
|
3285
|
-
return !
|
|
3254
|
+
function sn(e) {
|
|
3255
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3256
|
+
var n = t[t.length - 1];
|
|
3257
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3286
3258
|
}, []);
|
|
3287
3259
|
}
|
|
3288
|
-
function
|
|
3260
|
+
function an(e) {
|
|
3289
3261
|
return typeof e == "function";
|
|
3290
3262
|
}
|
|
3291
|
-
function
|
|
3263
|
+
function oe(e, t, r, n, i, s, u) {
|
|
3292
3264
|
if (e.length === 1 && Ve(e[0]))
|
|
3293
3265
|
return [
|
|
3294
3266
|
{
|
|
@@ -3296,8 +3268,8 @@ function ae(e, t, n, r, i, s, a) {
|
|
|
3296
3268
|
value: e[0].value
|
|
3297
3269
|
}
|
|
3298
3270
|
];
|
|
3299
|
-
for (var o = [], l = 0,
|
|
3300
|
-
var h =
|
|
3271
|
+
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3272
|
+
var h = a[l];
|
|
3301
3273
|
if (Ve(h)) {
|
|
3302
3274
|
o.push({
|
|
3303
3275
|
type: A.literal,
|
|
@@ -3305,18 +3277,18 @@ function ae(e, t, n, r, i, s, a) {
|
|
|
3305
3277
|
});
|
|
3306
3278
|
continue;
|
|
3307
3279
|
}
|
|
3308
|
-
if (
|
|
3280
|
+
if (Ar(h)) {
|
|
3309
3281
|
typeof s == "number" && o.push({
|
|
3310
3282
|
type: A.literal,
|
|
3311
|
-
value:
|
|
3283
|
+
value: r.getNumberFormat(t).format(s)
|
|
3312
3284
|
});
|
|
3313
3285
|
continue;
|
|
3314
3286
|
}
|
|
3315
3287
|
var c = h.value;
|
|
3316
3288
|
if (!(i && c in i))
|
|
3317
|
-
throw new
|
|
3289
|
+
throw new nn(c, u);
|
|
3318
3290
|
var f = i[c];
|
|
3319
|
-
if (
|
|
3291
|
+
if (Br(h)) {
|
|
3320
3292
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3321
3293
|
type: typeof f == "string" ? A.literal : A.object,
|
|
3322
3294
|
value: f
|
|
@@ -3324,34 +3296,34 @@ function ae(e, t, n, r, i, s, a) {
|
|
|
3324
3296
|
continue;
|
|
3325
3297
|
}
|
|
3326
3298
|
if (bt(h)) {
|
|
3327
|
-
var b = typeof h.style == "string" ?
|
|
3299
|
+
var b = typeof h.style == "string" ? n.date[h.style] : Pe(h.style) ? h.style.parsedOptions : void 0;
|
|
3328
3300
|
o.push({
|
|
3329
3301
|
type: A.literal,
|
|
3330
|
-
value:
|
|
3302
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
|
3331
3303
|
});
|
|
3332
3304
|
continue;
|
|
3333
3305
|
}
|
|
3334
3306
|
if (pt(h)) {
|
|
3335
|
-
var b = typeof h.style == "string" ?
|
|
3307
|
+
var b = typeof h.style == "string" ? n.time[h.style] : Pe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3336
3308
|
o.push({
|
|
3337
3309
|
type: A.literal,
|
|
3338
|
-
value:
|
|
3310
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
|
3339
3311
|
});
|
|
3340
3312
|
continue;
|
|
3341
3313
|
}
|
|
3342
3314
|
if (dt(h)) {
|
|
3343
|
-
var b = typeof h.style == "string" ?
|
|
3315
|
+
var b = typeof h.style == "string" ? n.number[h.style] : _t(h.style) ? h.style.parsedOptions : void 0;
|
|
3344
3316
|
b && b.scale && (f = f * (b.scale || 1)), o.push({
|
|
3345
3317
|
type: A.literal,
|
|
3346
|
-
value:
|
|
3318
|
+
value: r.getNumberFormat(t, b).format(f)
|
|
3347
3319
|
});
|
|
3348
3320
|
continue;
|
|
3349
3321
|
}
|
|
3350
3322
|
if (vt(h)) {
|
|
3351
3323
|
var y = h.children, x = h.value, S = i[x];
|
|
3352
|
-
if (!
|
|
3353
|
-
throw new
|
|
3354
|
-
var
|
|
3324
|
+
if (!an(S))
|
|
3325
|
+
throw new rn(x, "function", u);
|
|
3326
|
+
var O = oe(y, t, r, n, i, s), P = S(O.map(function(w) {
|
|
3355
3327
|
return w.value;
|
|
3356
3328
|
}));
|
|
3357
3329
|
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(w) {
|
|
@@ -3364,104 +3336,104 @@ function ae(e, t, n, r, i, s, a) {
|
|
|
3364
3336
|
if (yt(h)) {
|
|
3365
3337
|
var B = h.options[f] || h.options.other;
|
|
3366
3338
|
if (!B)
|
|
3367
|
-
throw new Je(h.value, f, Object.keys(h.options),
|
|
3368
|
-
o.push.apply(o,
|
|
3339
|
+
throw new Je(h.value, f, Object.keys(h.options), u);
|
|
3340
|
+
o.push.apply(o, oe(B.value, t, r, n, i));
|
|
3369
3341
|
continue;
|
|
3370
3342
|
}
|
|
3371
3343
|
if (Et(h)) {
|
|
3372
3344
|
var B = h.options["=".concat(f)];
|
|
3373
3345
|
if (!B) {
|
|
3374
3346
|
if (!Intl.PluralRules)
|
|
3375
|
-
throw new
|
|
3347
|
+
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3376
3348
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3377
|
-
`,
|
|
3378
|
-
var
|
|
3379
|
-
B = h.options[
|
|
3349
|
+
`, V.MISSING_INTL_API, u);
|
|
3350
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3351
|
+
B = h.options[N] || h.options.other;
|
|
3380
3352
|
}
|
|
3381
3353
|
if (!B)
|
|
3382
|
-
throw new Je(h.value, f, Object.keys(h.options),
|
|
3383
|
-
o.push.apply(o,
|
|
3354
|
+
throw new Je(h.value, f, Object.keys(h.options), u);
|
|
3355
|
+
o.push.apply(o, oe(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3384
3356
|
continue;
|
|
3385
3357
|
}
|
|
3386
3358
|
}
|
|
3387
|
-
return
|
|
3359
|
+
return sn(o);
|
|
3388
3360
|
}
|
|
3389
|
-
function
|
|
3390
|
-
return t ?
|
|
3391
|
-
return n
|
|
3361
|
+
function on(e, t) {
|
|
3362
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3363
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3392
3364
|
}, {})) : e;
|
|
3393
3365
|
}
|
|
3394
|
-
function
|
|
3395
|
-
return t ? Object.keys(e).reduce(function(
|
|
3396
|
-
return n
|
|
3397
|
-
},
|
|
3366
|
+
function un(e, t) {
|
|
3367
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3368
|
+
return r[n] = on(e[n], t[n]), r;
|
|
3369
|
+
}, C({}, e)) : e;
|
|
3398
3370
|
}
|
|
3399
|
-
function
|
|
3371
|
+
function He(e) {
|
|
3400
3372
|
return {
|
|
3401
3373
|
create: function() {
|
|
3402
3374
|
return {
|
|
3403
3375
|
get: function(t) {
|
|
3404
3376
|
return e[t];
|
|
3405
3377
|
},
|
|
3406
|
-
set: function(t,
|
|
3407
|
-
e[t] =
|
|
3378
|
+
set: function(t, r) {
|
|
3379
|
+
e[t] = r;
|
|
3408
3380
|
}
|
|
3409
3381
|
};
|
|
3410
3382
|
}
|
|
3411
3383
|
};
|
|
3412
3384
|
}
|
|
3413
|
-
function
|
|
3385
|
+
function hn(e) {
|
|
3414
3386
|
return e === void 0 && (e = {
|
|
3415
3387
|
number: {},
|
|
3416
3388
|
dateTime: {},
|
|
3417
3389
|
pluralRules: {}
|
|
3418
3390
|
}), {
|
|
3419
|
-
getNumberFormat:
|
|
3420
|
-
for (var t,
|
|
3421
|
-
n
|
|
3422
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3391
|
+
getNumberFormat: ve(function() {
|
|
3392
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3393
|
+
r[n] = arguments[n];
|
|
3394
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3423
3395
|
}, {
|
|
3424
|
-
cache:
|
|
3425
|
-
strategy:
|
|
3396
|
+
cache: He(e.number),
|
|
3397
|
+
strategy: _e.variadic
|
|
3426
3398
|
}),
|
|
3427
|
-
getDateTimeFormat:
|
|
3428
|
-
for (var t,
|
|
3429
|
-
n
|
|
3430
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3399
|
+
getDateTimeFormat: ve(function() {
|
|
3400
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3401
|
+
r[n] = arguments[n];
|
|
3402
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3431
3403
|
}, {
|
|
3432
|
-
cache:
|
|
3433
|
-
strategy:
|
|
3404
|
+
cache: He(e.dateTime),
|
|
3405
|
+
strategy: _e.variadic
|
|
3434
3406
|
}),
|
|
3435
|
-
getPluralRules:
|
|
3436
|
-
for (var t,
|
|
3437
|
-
n
|
|
3438
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3407
|
+
getPluralRules: ve(function() {
|
|
3408
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3409
|
+
r[n] = arguments[n];
|
|
3410
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3439
3411
|
}, {
|
|
3440
|
-
cache:
|
|
3441
|
-
strategy:
|
|
3412
|
+
cache: He(e.pluralRules),
|
|
3413
|
+
strategy: _e.variadic
|
|
3442
3414
|
})
|
|
3443
3415
|
};
|
|
3444
3416
|
}
|
|
3445
|
-
var
|
|
3417
|
+
var ln = (
|
|
3446
3418
|
/** @class */
|
|
3447
3419
|
function() {
|
|
3448
|
-
function e(t,
|
|
3449
|
-
|
|
3420
|
+
function e(t, r, n, i) {
|
|
3421
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3450
3422
|
var s = this;
|
|
3451
3423
|
if (this.formatterCache = {
|
|
3452
3424
|
number: {},
|
|
3453
3425
|
dateTime: {},
|
|
3454
3426
|
pluralRules: {}
|
|
3455
3427
|
}, this.format = function(l) {
|
|
3456
|
-
var
|
|
3457
|
-
if (
|
|
3458
|
-
return
|
|
3459
|
-
var h =
|
|
3428
|
+
var a = s.formatToParts(l);
|
|
3429
|
+
if (a.length === 1)
|
|
3430
|
+
return a[0].value;
|
|
3431
|
+
var h = a.reduce(function(c, f) {
|
|
3460
3432
|
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3461
3433
|
}, []);
|
|
3462
3434
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3463
3435
|
}, this.formatToParts = function(l) {
|
|
3464
|
-
return
|
|
3436
|
+
return oe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3465
3437
|
}, this.resolvedOptions = function() {
|
|
3466
3438
|
var l;
|
|
3467
3439
|
return {
|
|
@@ -3469,18 +3441,18 @@ var hr = (
|
|
|
3469
3441
|
};
|
|
3470
3442
|
}, this.getAst = function() {
|
|
3471
3443
|
return s.ast;
|
|
3472
|
-
}, this.locales =
|
|
3444
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3473
3445
|
if (this.message = t, !e.__parse)
|
|
3474
3446
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3475
|
-
var
|
|
3476
|
-
|
|
3477
|
-
var o =
|
|
3478
|
-
this.ast = e.__parse(t,
|
|
3447
|
+
var u = i || {};
|
|
3448
|
+
u.formatters;
|
|
3449
|
+
var o = yr(u, ["formatters"]);
|
|
3450
|
+
this.ast = e.__parse(t, C(C({}, o), { locale: this.resolvedLocale }));
|
|
3479
3451
|
} else
|
|
3480
3452
|
this.ast = t;
|
|
3481
3453
|
if (!Array.isArray(this.ast))
|
|
3482
3454
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3483
|
-
this.formats =
|
|
3455
|
+
this.formats = un(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
|
|
3484
3456
|
}
|
|
3485
3457
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3486
3458
|
get: function() {
|
|
@@ -3490,10 +3462,10 @@ var hr = (
|
|
|
3490
3462
|
configurable: !0
|
|
3491
3463
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3492
3464
|
if (!(typeof Intl.Locale > "u")) {
|
|
3493
|
-
var
|
|
3494
|
-
return
|
|
3465
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3466
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3495
3467
|
}
|
|
3496
|
-
}, e.__parse =
|
|
3468
|
+
}, e.__parse = tn, e.formats = {
|
|
3497
3469
|
number: {
|
|
3498
3470
|
integer: {
|
|
3499
3471
|
maximumFractionDigits: 0
|
|
@@ -3554,113 +3526,113 @@ var hr = (
|
|
|
3554
3526
|
}, e;
|
|
3555
3527
|
}()
|
|
3556
3528
|
);
|
|
3557
|
-
function
|
|
3529
|
+
function fn(e, t) {
|
|
3558
3530
|
if (t == null)
|
|
3559
3531
|
return;
|
|
3560
3532
|
if (t in e)
|
|
3561
3533
|
return e[t];
|
|
3562
|
-
const
|
|
3563
|
-
let
|
|
3564
|
-
for (let i = 0; i <
|
|
3565
|
-
if (typeof
|
|
3534
|
+
const r = t.split(".");
|
|
3535
|
+
let n = e;
|
|
3536
|
+
for (let i = 0; i < r.length; i++)
|
|
3537
|
+
if (typeof n == "object") {
|
|
3566
3538
|
if (i > 0) {
|
|
3567
|
-
const s =
|
|
3568
|
-
if (s in
|
|
3569
|
-
|
|
3539
|
+
const s = r.slice(i, r.length).join(".");
|
|
3540
|
+
if (s in n) {
|
|
3541
|
+
n = n[s];
|
|
3570
3542
|
break;
|
|
3571
3543
|
}
|
|
3572
3544
|
}
|
|
3573
|
-
|
|
3545
|
+
n = n[r[i]];
|
|
3574
3546
|
} else
|
|
3575
|
-
|
|
3576
|
-
return
|
|
3547
|
+
n = void 0;
|
|
3548
|
+
return n;
|
|
3577
3549
|
}
|
|
3578
|
-
const
|
|
3550
|
+
const M = {}, cn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Pt = (e, t) => {
|
|
3579
3551
|
if (t == null)
|
|
3580
3552
|
return;
|
|
3581
|
-
if (t in
|
|
3582
|
-
return
|
|
3583
|
-
const
|
|
3584
|
-
for (let
|
|
3585
|
-
const i = n
|
|
3553
|
+
if (t in M && e in M[t])
|
|
3554
|
+
return M[t][e];
|
|
3555
|
+
const r = be(t);
|
|
3556
|
+
for (let n = 0; n < r.length; n++) {
|
|
3557
|
+
const i = r[n], s = gn(i, e);
|
|
3586
3558
|
if (s)
|
|
3587
|
-
return
|
|
3559
|
+
return cn(e, t, s);
|
|
3588
3560
|
}
|
|
3589
3561
|
};
|
|
3590
3562
|
let De;
|
|
3591
|
-
const
|
|
3592
|
-
function
|
|
3563
|
+
const Z = me({});
|
|
3564
|
+
function mn(e) {
|
|
3593
3565
|
return De[e] || null;
|
|
3594
3566
|
}
|
|
3595
|
-
function
|
|
3567
|
+
function Ot(e) {
|
|
3596
3568
|
return e in De;
|
|
3597
3569
|
}
|
|
3598
|
-
function
|
|
3599
|
-
if (!
|
|
3570
|
+
function gn(e, t) {
|
|
3571
|
+
if (!Ot(e))
|
|
3600
3572
|
return null;
|
|
3601
|
-
const
|
|
3602
|
-
return
|
|
3573
|
+
const r = mn(e);
|
|
3574
|
+
return fn(r, t);
|
|
3603
3575
|
}
|
|
3604
|
-
function
|
|
3576
|
+
function dn(e) {
|
|
3605
3577
|
if (e == null)
|
|
3606
3578
|
return;
|
|
3607
|
-
const t =
|
|
3608
|
-
for (let
|
|
3609
|
-
const
|
|
3610
|
-
if (
|
|
3611
|
-
return
|
|
3579
|
+
const t = be(e);
|
|
3580
|
+
for (let r = 0; r < t.length; r++) {
|
|
3581
|
+
const n = t[r];
|
|
3582
|
+
if (Ot(n))
|
|
3583
|
+
return n;
|
|
3612
3584
|
}
|
|
3613
3585
|
}
|
|
3614
|
-
function
|
|
3615
|
-
delete
|
|
3586
|
+
function bn(e, ...t) {
|
|
3587
|
+
delete M[e], Z.update((r) => (r[e] = pr.all([r[e] || {}, ...t]), r));
|
|
3616
3588
|
}
|
|
3617
|
-
|
|
3618
|
-
[
|
|
3589
|
+
W(
|
|
3590
|
+
[Z],
|
|
3619
3591
|
([e]) => Object.keys(e)
|
|
3620
3592
|
);
|
|
3621
|
-
|
|
3622
|
-
const
|
|
3623
|
-
function
|
|
3624
|
-
|
|
3593
|
+
Z.subscribe((e) => De = e);
|
|
3594
|
+
const ue = {};
|
|
3595
|
+
function pn(e, t) {
|
|
3596
|
+
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
|
3625
3597
|
}
|
|
3626
|
-
function
|
|
3627
|
-
return
|
|
3598
|
+
function Nt(e) {
|
|
3599
|
+
return ue[e];
|
|
3628
3600
|
}
|
|
3629
|
-
function
|
|
3630
|
-
return
|
|
3631
|
-
const
|
|
3632
|
-
return [t,
|
|
3601
|
+
function yn(e) {
|
|
3602
|
+
return be(e).map((t) => {
|
|
3603
|
+
const r = Nt(t);
|
|
3604
|
+
return [t, r ? [...r] : []];
|
|
3633
3605
|
}).filter(([, t]) => t.length > 0);
|
|
3634
3606
|
}
|
|
3635
|
-
function
|
|
3636
|
-
return e == null ? !1 :
|
|
3607
|
+
function Me(e) {
|
|
3608
|
+
return e == null ? !1 : be(e).some(
|
|
3637
3609
|
(t) => {
|
|
3638
|
-
var
|
|
3639
|
-
return (
|
|
3610
|
+
var r;
|
|
3611
|
+
return (r = Nt(t)) == null ? void 0 : r.size;
|
|
3640
3612
|
}
|
|
3641
3613
|
);
|
|
3642
3614
|
}
|
|
3643
|
-
function
|
|
3615
|
+
function En(e, t) {
|
|
3644
3616
|
return Promise.all(
|
|
3645
|
-
t.map((
|
|
3646
|
-
).then((
|
|
3617
|
+
t.map((n) => (pn(e, n), n().then((i) => i.default || i)))
|
|
3618
|
+
).then((n) => bn(e, ...n));
|
|
3647
3619
|
}
|
|
3648
|
-
const
|
|
3620
|
+
const q = {};
|
|
3649
3621
|
function It(e) {
|
|
3650
|
-
if (!
|
|
3651
|
-
return e in
|
|
3652
|
-
const t =
|
|
3653
|
-
return
|
|
3622
|
+
if (!Me(e))
|
|
3623
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3624
|
+
const t = yn(e);
|
|
3625
|
+
return q[e] = Promise.all(
|
|
3654
3626
|
t.map(
|
|
3655
|
-
([
|
|
3627
|
+
([r, n]) => En(r, n)
|
|
3656
3628
|
)
|
|
3657
3629
|
).then(() => {
|
|
3658
|
-
if (
|
|
3630
|
+
if (Me(e))
|
|
3659
3631
|
return It(e);
|
|
3660
|
-
delete
|
|
3661
|
-
}),
|
|
3632
|
+
delete q[e];
|
|
3633
|
+
}), q[e];
|
|
3662
3634
|
}
|
|
3663
|
-
const
|
|
3635
|
+
const vn = {
|
|
3664
3636
|
number: {
|
|
3665
3637
|
scientific: { notation: "scientific" },
|
|
3666
3638
|
engineering: { notation: "engineering" },
|
|
@@ -3689,150 +3661,150 @@ const Er = {
|
|
|
3689
3661
|
timeZoneName: "short"
|
|
3690
3662
|
}
|
|
3691
3663
|
}
|
|
3692
|
-
},
|
|
3664
|
+
}, _n = {
|
|
3693
3665
|
fallbackLocale: null,
|
|
3694
3666
|
loadingDelay: 200,
|
|
3695
|
-
formats:
|
|
3667
|
+
formats: vn,
|
|
3696
3668
|
warnOnMissingMessages: !0,
|
|
3697
3669
|
handleMissingMessage: void 0,
|
|
3698
3670
|
ignoreTag: !0
|
|
3699
|
-
},
|
|
3700
|
-
function
|
|
3701
|
-
return
|
|
3702
|
-
}
|
|
3703
|
-
const
|
|
3704
|
-
var
|
|
3705
|
-
for (var
|
|
3706
|
-
|
|
3671
|
+
}, xn = _n;
|
|
3672
|
+
function X() {
|
|
3673
|
+
return xn;
|
|
3674
|
+
}
|
|
3675
|
+
const Te = me(!1);
|
|
3676
|
+
var Hn = Object.defineProperty, Tn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wn = (e, t) => {
|
|
3677
|
+
for (var r in t || (t = {}))
|
|
3678
|
+
Bn.call(t, r) && Ke(e, r, t[r]);
|
|
3707
3679
|
if (Ye)
|
|
3708
|
-
for (var
|
|
3709
|
-
|
|
3680
|
+
for (var r of Ye(t))
|
|
3681
|
+
An.call(t, r) && Ke(e, r, t[r]);
|
|
3710
3682
|
return e;
|
|
3711
|
-
},
|
|
3712
|
-
let
|
|
3713
|
-
const
|
|
3683
|
+
}, Pn = (e, t) => Tn(e, Sn(t));
|
|
3684
|
+
let Re;
|
|
3685
|
+
const le = me(null);
|
|
3714
3686
|
function et(e) {
|
|
3715
|
-
return e.split("-").map((t,
|
|
3687
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3716
3688
|
}
|
|
3717
|
-
function
|
|
3718
|
-
const
|
|
3719
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3689
|
+
function be(e, t = X().fallbackLocale) {
|
|
3690
|
+
const r = et(e);
|
|
3691
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...et(t)])] : r;
|
|
3720
3692
|
}
|
|
3721
|
-
function
|
|
3722
|
-
return
|
|
3693
|
+
function $() {
|
|
3694
|
+
return Re ?? void 0;
|
|
3723
3695
|
}
|
|
3724
|
-
|
|
3725
|
-
|
|
3696
|
+
le.subscribe((e) => {
|
|
3697
|
+
Re = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3726
3698
|
});
|
|
3727
|
-
const
|
|
3728
|
-
if (e &&
|
|
3729
|
-
const { loadingDelay: t } =
|
|
3730
|
-
let
|
|
3731
|
-
return typeof window < "u" &&
|
|
3732
|
-
() =>
|
|
3699
|
+
const On = (e) => {
|
|
3700
|
+
if (e && dn(e) && Me(e)) {
|
|
3701
|
+
const { loadingDelay: t } = X();
|
|
3702
|
+
let r;
|
|
3703
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
3704
|
+
() => Te.set(!0),
|
|
3733
3705
|
t
|
|
3734
|
-
) :
|
|
3735
|
-
|
|
3706
|
+
) : Te.set(!0), It(e).then(() => {
|
|
3707
|
+
le.set(e);
|
|
3736
3708
|
}).finally(() => {
|
|
3737
|
-
clearTimeout(
|
|
3709
|
+
clearTimeout(r), Te.set(!1);
|
|
3738
3710
|
});
|
|
3739
3711
|
}
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3742
|
-
set:
|
|
3743
|
-
}),
|
|
3712
|
+
return le.set(e);
|
|
3713
|
+
}, R = Pn(wn({}, le), {
|
|
3714
|
+
set: On
|
|
3715
|
+
}), pe = (e) => {
|
|
3744
3716
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3745
|
-
return (
|
|
3746
|
-
const i = JSON.stringify(
|
|
3747
|
-
return i in t ? t[i] : t[i] = e(
|
|
3717
|
+
return (n) => {
|
|
3718
|
+
const i = JSON.stringify(n);
|
|
3719
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3748
3720
|
};
|
|
3749
3721
|
};
|
|
3750
|
-
var
|
|
3751
|
-
for (var
|
|
3752
|
-
Lt.call(t,
|
|
3753
|
-
if (
|
|
3754
|
-
for (var
|
|
3755
|
-
Ct.call(t,
|
|
3722
|
+
var Nn = Object.defineProperty, fe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
|
3723
|
+
for (var r in t || (t = {}))
|
|
3724
|
+
Lt.call(t, r) && tt(e, r, t[r]);
|
|
3725
|
+
if (fe)
|
|
3726
|
+
for (var r of fe(t))
|
|
3727
|
+
Ct.call(t, r) && tt(e, r, t[r]);
|
|
3756
3728
|
return e;
|
|
3757
|
-
},
|
|
3758
|
-
var
|
|
3759
|
-
for (var
|
|
3760
|
-
Lt.call(e,
|
|
3761
|
-
if (e != null &&
|
|
3762
|
-
for (var
|
|
3763
|
-
t.indexOf(
|
|
3764
|
-
return
|
|
3729
|
+
}, Q = (e, t) => {
|
|
3730
|
+
var r = {};
|
|
3731
|
+
for (var n in e)
|
|
3732
|
+
Lt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3733
|
+
if (e != null && fe)
|
|
3734
|
+
for (var n of fe(e))
|
|
3735
|
+
t.indexOf(n) < 0 && Ct.call(e, n) && (r[n] = e[n]);
|
|
3736
|
+
return r;
|
|
3765
3737
|
};
|
|
3766
|
-
const
|
|
3767
|
-
const { formats:
|
|
3768
|
-
if (e in
|
|
3769
|
-
return
|
|
3738
|
+
const ee = (e, t) => {
|
|
3739
|
+
const { formats: r } = X();
|
|
3740
|
+
if (e in r && t in r[e])
|
|
3741
|
+
return r[e][t];
|
|
3770
3742
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3771
|
-
},
|
|
3743
|
+
}, In = pe(
|
|
3772
3744
|
(e) => {
|
|
3773
|
-
var t = e, { locale:
|
|
3774
|
-
if (
|
|
3745
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3746
|
+
if (r == null)
|
|
3775
3747
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3776
|
-
return
|
|
3748
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3777
3749
|
}
|
|
3778
|
-
),
|
|
3750
|
+
), Ln = pe(
|
|
3779
3751
|
(e) => {
|
|
3780
|
-
var t = e, { locale:
|
|
3781
|
-
if (
|
|
3752
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3753
|
+
if (r == null)
|
|
3782
3754
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3783
|
-
return
|
|
3755
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3784
3756
|
}
|
|
3785
|
-
),
|
|
3757
|
+
), Cn = pe(
|
|
3786
3758
|
(e) => {
|
|
3787
|
-
var t = e, { locale:
|
|
3788
|
-
if (
|
|
3759
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3760
|
+
if (r == null)
|
|
3789
3761
|
throw new Error(
|
|
3790
3762
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3791
3763
|
);
|
|
3792
|
-
return
|
|
3764
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3793
3765
|
}
|
|
3794
|
-
),
|
|
3766
|
+
), Mn = (e = {}) => {
|
|
3795
3767
|
var t = e, {
|
|
3796
|
-
locale:
|
|
3797
|
-
} = t,
|
|
3768
|
+
locale: r = $()
|
|
3769
|
+
} = t, n = Q(t, [
|
|
3798
3770
|
"locale"
|
|
3799
3771
|
]);
|
|
3800
|
-
return
|
|
3801
|
-
},
|
|
3772
|
+
return In(Ge({ locale: r }, n));
|
|
3773
|
+
}, Rn = (e = {}) => {
|
|
3802
3774
|
var t = e, {
|
|
3803
|
-
locale:
|
|
3804
|
-
} = t,
|
|
3775
|
+
locale: r = $()
|
|
3776
|
+
} = t, n = Q(t, [
|
|
3805
3777
|
"locale"
|
|
3806
3778
|
]);
|
|
3807
|
-
return
|
|
3808
|
-
},
|
|
3779
|
+
return Ln(Ge({ locale: r }, n));
|
|
3780
|
+
}, $n = (e = {}) => {
|
|
3809
3781
|
var t = e, {
|
|
3810
|
-
locale:
|
|
3811
|
-
} = t,
|
|
3782
|
+
locale: r = $()
|
|
3783
|
+
} = t, n = Q(t, [
|
|
3812
3784
|
"locale"
|
|
3813
3785
|
]);
|
|
3814
|
-
return
|
|
3815
|
-
},
|
|
3786
|
+
return Cn(Ge({ locale: r }, n));
|
|
3787
|
+
}, Un = pe(
|
|
3816
3788
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3817
|
-
(e, t =
|
|
3818
|
-
ignoreTag:
|
|
3789
|
+
(e, t = $()) => new ln(e, t, X().formats, {
|
|
3790
|
+
ignoreTag: X().ignoreTag
|
|
3819
3791
|
})
|
|
3820
|
-
),
|
|
3821
|
-
var
|
|
3822
|
-
let
|
|
3823
|
-
typeof e == "object" && (
|
|
3792
|
+
), Dn = (e, t = {}) => {
|
|
3793
|
+
var r, n, i, s;
|
|
3794
|
+
let u = t;
|
|
3795
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3824
3796
|
const {
|
|
3825
3797
|
values: o,
|
|
3826
|
-
locale: l =
|
|
3827
|
-
default:
|
|
3828
|
-
} =
|
|
3798
|
+
locale: l = $(),
|
|
3799
|
+
default: a
|
|
3800
|
+
} = u;
|
|
3829
3801
|
if (l == null)
|
|
3830
3802
|
throw new Error(
|
|
3831
3803
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3832
3804
|
);
|
|
3833
3805
|
let h = Pt(e, l);
|
|
3834
3806
|
if (!h)
|
|
3835
|
-
h = (s = (i = (
|
|
3807
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3836
3808
|
else if (typeof h != "string")
|
|
3837
3809
|
return console.warn(
|
|
3838
3810
|
`[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.`
|
|
@@ -3841,7 +3813,7 @@ const K = (e, t) => {
|
|
|
3841
3813
|
return h;
|
|
3842
3814
|
let c = h;
|
|
3843
3815
|
try {
|
|
3844
|
-
c =
|
|
3816
|
+
c = Un(h, l).format(o);
|
|
3845
3817
|
} catch (f) {
|
|
3846
3818
|
f instanceof Error && console.warn(
|
|
3847
3819
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3849,63 +3821,63 @@ const K = (e, t) => {
|
|
|
3849
3821
|
);
|
|
3850
3822
|
}
|
|
3851
3823
|
return c;
|
|
3852
|
-
},
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
function
|
|
3824
|
+
}, Gn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), kn = (e, t = $()) => Pt(e, t), ci = W([R, Z], () => Dn);
|
|
3825
|
+
W([R], () => Gn);
|
|
3826
|
+
W([R], () => Fn);
|
|
3827
|
+
W([R], () => jn);
|
|
3828
|
+
W([R, Z], () => kn);
|
|
3829
|
+
function Vn(e, t) {
|
|
3858
3830
|
if (e) {
|
|
3859
|
-
const
|
|
3860
|
-
|
|
3831
|
+
const r = document.createElement("style");
|
|
3832
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3861
3833
|
}
|
|
3862
3834
|
}
|
|
3863
|
-
function
|
|
3864
|
-
const
|
|
3865
|
-
fetch(
|
|
3835
|
+
function Xn(e, t) {
|
|
3836
|
+
const r = new URL(t);
|
|
3837
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3866
3838
|
const i = document.createElement("style");
|
|
3867
|
-
i.innerHTML =
|
|
3868
|
-
}).catch((
|
|
3869
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3839
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3840
|
+
}).catch((n) => {
|
|
3841
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3870
3842
|
});
|
|
3871
3843
|
}
|
|
3872
|
-
function
|
|
3844
|
+
function zn(e, t, r) {
|
|
3873
3845
|
if (window.emMessageBus) {
|
|
3874
|
-
const
|
|
3846
|
+
const n = document.createElement("style");
|
|
3875
3847
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3876
|
-
|
|
3848
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3877
3849
|
});
|
|
3878
3850
|
}
|
|
3879
3851
|
}
|
|
3880
|
-
function
|
|
3881
|
-
|
|
3882
|
-
|
|
3852
|
+
function Wn({ withLocale: e, translations: t }) {
|
|
3853
|
+
R.subscribe((r) => {
|
|
3854
|
+
r == null && (Z.set(t), R.set(e));
|
|
3883
3855
|
});
|
|
3884
3856
|
}
|
|
3885
3857
|
if (typeof window < "u") {
|
|
3886
3858
|
let e = function(t) {
|
|
3887
|
-
return function(...
|
|
3859
|
+
return function(...r) {
|
|
3888
3860
|
try {
|
|
3889
|
-
return t.apply(this,
|
|
3890
|
-
} catch (
|
|
3891
|
-
if (
|
|
3861
|
+
return t.apply(this, r);
|
|
3862
|
+
} catch (n) {
|
|
3863
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
3892
3864
|
return !1;
|
|
3893
|
-
throw
|
|
3865
|
+
throw n;
|
|
3894
3866
|
}
|
|
3895
3867
|
};
|
|
3896
3868
|
};
|
|
3897
|
-
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-
|
|
3869
|
+
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-K8poTXpJ.js").then(({ default: t }) => {
|
|
3898
3870
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
|
|
3899
3871
|
});
|
|
3900
3872
|
}
|
|
3901
|
-
function
|
|
3873
|
+
function Zn(e) {
|
|
3902
3874
|
Ut(e, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
3903
3875
|
}
|
|
3904
|
-
function
|
|
3876
|
+
function rt(e) {
|
|
3905
3877
|
let t;
|
|
3906
3878
|
return {
|
|
3907
3879
|
c() {
|
|
3908
|
-
t =
|
|
3880
|
+
t = re("casino-games-category-section"), g(
|
|
3909
3881
|
t,
|
|
3910
3882
|
"session",
|
|
3911
3883
|
/*session*/
|
|
@@ -4002,178 +3974,178 @@ function nt(e) {
|
|
|
4002
3974
|
e[16]
|
|
4003
3975
|
);
|
|
4004
3976
|
},
|
|
4005
|
-
m(
|
|
4006
|
-
|
|
3977
|
+
m(r, n) {
|
|
3978
|
+
ce(r, t, n);
|
|
4007
3979
|
},
|
|
4008
|
-
p(
|
|
4009
|
-
|
|
3980
|
+
p(r, n) {
|
|
3981
|
+
n & /*session*/
|
|
4010
3982
|
16 && g(
|
|
4011
3983
|
t,
|
|
4012
3984
|
"session",
|
|
4013
3985
|
/*session*/
|
|
4014
|
-
|
|
4015
|
-
),
|
|
3986
|
+
r[4]
|
|
3987
|
+
), n & /*userid*/
|
|
4016
3988
|
32 && g(
|
|
4017
3989
|
t,
|
|
4018
3990
|
"userid",
|
|
4019
3991
|
/*userid*/
|
|
4020
|
-
|
|
4021
|
-
),
|
|
3992
|
+
r[5]
|
|
3993
|
+
), n & /*endpoint*/
|
|
4022
3994
|
1 && g(
|
|
4023
3995
|
t,
|
|
4024
3996
|
"endpoint",
|
|
4025
3997
|
/*endpoint*/
|
|
4026
|
-
|
|
4027
|
-
),
|
|
3998
|
+
r[0]
|
|
3999
|
+
), n & /*datasource*/
|
|
4028
4000
|
2 && g(
|
|
4029
4001
|
t,
|
|
4030
4002
|
"datasource",
|
|
4031
4003
|
/*datasource*/
|
|
4032
|
-
|
|
4033
|
-
),
|
|
4004
|
+
r[1]
|
|
4005
|
+
), n & /*lang*/
|
|
4034
4006
|
8 && g(
|
|
4035
4007
|
t,
|
|
4036
4008
|
"lang",
|
|
4037
4009
|
/*lang*/
|
|
4038
|
-
|
|
4039
|
-
),
|
|
4010
|
+
r[3]
|
|
4011
|
+
), n & /*currency*/
|
|
4040
4012
|
4 && g(
|
|
4041
4013
|
t,
|
|
4042
4014
|
"currency",
|
|
4043
4015
|
/*currency*/
|
|
4044
|
-
|
|
4045
|
-
),
|
|
4016
|
+
r[2]
|
|
4017
|
+
), n & /*favorites*/
|
|
4046
4018
|
32768 && g(
|
|
4047
4019
|
t,
|
|
4048
4020
|
"favorites",
|
|
4049
4021
|
/*favorites*/
|
|
4050
|
-
|
|
4051
|
-
),
|
|
4022
|
+
r[15]
|
|
4023
|
+
), n & /*fetchviaevent*/
|
|
4052
4024
|
131072 && g(
|
|
4053
4025
|
t,
|
|
4054
4026
|
"fetchviaevent",
|
|
4055
4027
|
/*fetchviaevent*/
|
|
4056
|
-
|
|
4057
|
-
),
|
|
4028
|
+
r[17]
|
|
4029
|
+
), n & /*mbsource*/
|
|
4058
4030
|
262144 && g(
|
|
4059
4031
|
t,
|
|
4060
4032
|
"mbsource",
|
|
4061
4033
|
/*mbsource*/
|
|
4062
|
-
|
|
4063
|
-
),
|
|
4034
|
+
r[18]
|
|
4035
|
+
), n & /*showgamename*/
|
|
4064
4036
|
4096 && g(
|
|
4065
4037
|
t,
|
|
4066
4038
|
"showgamename",
|
|
4067
4039
|
/*showgamename*/
|
|
4068
|
-
|
|
4069
|
-
),
|
|
4040
|
+
r[12]
|
|
4041
|
+
), n & /*clientstyling*/
|
|
4070
4042
|
64 && g(
|
|
4071
4043
|
t,
|
|
4072
4044
|
"clientstyling",
|
|
4073
4045
|
/*clientstyling*/
|
|
4074
|
-
|
|
4075
|
-
),
|
|
4046
|
+
r[6]
|
|
4047
|
+
), n & /*clientstylingurl*/
|
|
4076
4048
|
128 && g(
|
|
4077
4049
|
t,
|
|
4078
4050
|
"clientstylingurl",
|
|
4079
4051
|
/*clientstylingurl*/
|
|
4080
|
-
|
|
4081
|
-
),
|
|
4052
|
+
r[7]
|
|
4053
|
+
), n & /*translationurl*/
|
|
4082
4054
|
256 && g(
|
|
4083
4055
|
t,
|
|
4084
4056
|
"translationurl",
|
|
4085
4057
|
/*translationurl*/
|
|
4086
|
-
|
|
4087
|
-
),
|
|
4058
|
+
r[8]
|
|
4059
|
+
), n & /*livecasino*/
|
|
4088
4060
|
512 && g(
|
|
4089
4061
|
t,
|
|
4090
4062
|
"livecasino",
|
|
4091
4063
|
/*livecasino*/
|
|
4092
|
-
|
|
4093
|
-
),
|
|
4064
|
+
r[9]
|
|
4065
|
+
), n & /*visiblegames*/
|
|
4094
4066
|
16384 && g(
|
|
4095
4067
|
t,
|
|
4096
4068
|
"visiblegames",
|
|
4097
4069
|
/*visiblegames*/
|
|
4098
|
-
|
|
4099
|
-
),
|
|
4070
|
+
r[14]
|
|
4071
|
+
), n & /*gamepagemodalurl*/
|
|
4100
4072
|
8192 && g(
|
|
4101
4073
|
t,
|
|
4102
4074
|
"gamepagemodalurl",
|
|
4103
4075
|
/*gamepagemodalurl*/
|
|
4104
|
-
|
|
4105
|
-
),
|
|
4076
|
+
r[13]
|
|
4077
|
+
), n & /*integratedgameframedesktop*/
|
|
4106
4078
|
2048 && g(
|
|
4107
4079
|
t,
|
|
4108
4080
|
"integratedgameframedesktop",
|
|
4109
4081
|
/*integratedgameframedesktop*/
|
|
4110
|
-
|
|
4111
|
-
),
|
|
4082
|
+
r[11]
|
|
4083
|
+
), n & /*integratedgameframemobile*/
|
|
4112
4084
|
1024 && g(
|
|
4113
4085
|
t,
|
|
4114
4086
|
"integratedgameframemobile",
|
|
4115
4087
|
/*integratedgameframemobile*/
|
|
4116
|
-
|
|
4117
|
-
),
|
|
4088
|
+
r[10]
|
|
4089
|
+
), n & /*casinomygames*/
|
|
4118
4090
|
65536 && g(
|
|
4119
4091
|
t,
|
|
4120
4092
|
"casinomygames",
|
|
4121
4093
|
/*casinomygames*/
|
|
4122
|
-
|
|
4094
|
+
r[16]
|
|
4123
4095
|
);
|
|
4124
4096
|
},
|
|
4125
|
-
d(
|
|
4126
|
-
|
|
4097
|
+
d(r) {
|
|
4098
|
+
r && te(t);
|
|
4127
4099
|
}
|
|
4128
4100
|
};
|
|
4129
4101
|
}
|
|
4130
|
-
function
|
|
4131
|
-
let t,
|
|
4102
|
+
function Qn(e) {
|
|
4103
|
+
let t, r = (
|
|
4132
4104
|
/*session*/
|
|
4133
|
-
e[4] &&
|
|
4105
|
+
e[4] && rt(e)
|
|
4134
4106
|
);
|
|
4135
4107
|
return {
|
|
4136
4108
|
c() {
|
|
4137
|
-
t =
|
|
4109
|
+
t = re("div"), r && r.c(), Ue(t, "class", "CasinoFavoritesSectionContainer");
|
|
4138
4110
|
},
|
|
4139
|
-
m(
|
|
4140
|
-
|
|
4111
|
+
m(n, i) {
|
|
4112
|
+
ce(n, t, i), r && r.m(t, null), e[20](t);
|
|
4141
4113
|
},
|
|
4142
|
-
p(
|
|
4114
|
+
p(n, [i]) {
|
|
4143
4115
|
/*session*/
|
|
4144
|
-
|
|
4116
|
+
n[4] ? r ? r.p(n, i) : (r = rt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4145
4117
|
},
|
|
4146
4118
|
i: I,
|
|
4147
4119
|
o: I,
|
|
4148
|
-
d(
|
|
4149
|
-
|
|
4120
|
+
d(n) {
|
|
4121
|
+
n && te(t), r && r.d(), e[20](null);
|
|
4150
4122
|
}
|
|
4151
4123
|
};
|
|
4152
4124
|
}
|
|
4153
|
-
function
|
|
4154
|
-
let { endpoint:
|
|
4155
|
-
|
|
4125
|
+
function qn(e, t, r) {
|
|
4126
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { session: o = "" } = t, { userid: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { livecasino: f = "false" } = t, { integratedgameframemobile: b = "false" } = t, { integratedgameframedesktop: y = "false" } = t, { showgamename: x = "" } = t, { gamepagemodalurl: S = "false" } = t, { visiblegames: O = "" } = t, { favorites: P = "" } = t, { casinomygames: B = "false" } = t, { fetchviaevent: N = "true" } = t, { mbsource: w } = t, T;
|
|
4127
|
+
Wn({ withLocale: "en", translations: {} }), Vt(() => () => {
|
|
4156
4128
|
});
|
|
4157
|
-
function
|
|
4158
|
-
|
|
4159
|
-
T = m,
|
|
4129
|
+
function v(m) {
|
|
4130
|
+
Se[m ? "unshift" : "push"](() => {
|
|
4131
|
+
T = m, r(19, T);
|
|
4160
4132
|
});
|
|
4161
4133
|
}
|
|
4162
4134
|
return e.$$set = (m) => {
|
|
4163
|
-
"endpoint" in m &&
|
|
4135
|
+
"endpoint" in m && r(0, n = m.endpoint), "datasource" in m && r(1, i = m.datasource), "currency" in m && r(2, s = m.currency), "lang" in m && r(3, u = m.lang), "session" in m && r(4, o = m.session), "userid" in m && r(5, l = m.userid), "clientstyling" in m && r(6, a = m.clientstyling), "clientstylingurl" in m && r(7, h = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "livecasino" in m && r(9, f = m.livecasino), "integratedgameframemobile" in m && r(10, b = m.integratedgameframemobile), "integratedgameframedesktop" in m && r(11, y = m.integratedgameframedesktop), "showgamename" in m && r(12, x = m.showgamename), "gamepagemodalurl" in m && r(13, S = m.gamepagemodalurl), "visiblegames" in m && r(14, O = m.visiblegames), "favorites" in m && r(15, P = m.favorites), "casinomygames" in m && r(16, B = m.casinomygames), "fetchviaevent" in m && r(17, N = m.fetchviaevent), "mbsource" in m && r(18, w = m.mbsource);
|
|
4164
4136
|
}, e.$$.update = () => {
|
|
4165
4137
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4166
|
-
524352 &&
|
|
4167
|
-
524416 && h && T &&
|
|
4168
|
-
786432 && T &&
|
|
4138
|
+
524352 && a && T && Vn(T, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4139
|
+
524416 && h && T && Xn(T, h), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4140
|
+
786432 && T && zn(T, `${w}.Style`);
|
|
4169
4141
|
}, [
|
|
4170
|
-
|
|
4142
|
+
n,
|
|
4171
4143
|
i,
|
|
4172
4144
|
s,
|
|
4173
|
-
|
|
4145
|
+
u,
|
|
4174
4146
|
o,
|
|
4175
4147
|
l,
|
|
4176
|
-
|
|
4148
|
+
a,
|
|
4177
4149
|
h,
|
|
4178
4150
|
c,
|
|
4179
4151
|
f,
|
|
@@ -4181,13 +4153,13 @@ function Qr(e, t, n) {
|
|
|
4181
4153
|
y,
|
|
4182
4154
|
x,
|
|
4183
4155
|
S,
|
|
4184
|
-
|
|
4156
|
+
O,
|
|
4185
4157
|
P,
|
|
4186
4158
|
B,
|
|
4187
|
-
|
|
4159
|
+
N,
|
|
4188
4160
|
w,
|
|
4189
4161
|
T,
|
|
4190
|
-
|
|
4162
|
+
v
|
|
4191
4163
|
];
|
|
4192
4164
|
}
|
|
4193
4165
|
class Mt extends Kt {
|
|
@@ -4195,8 +4167,8 @@ class Mt extends Kt {
|
|
|
4195
4167
|
super(), Jt(
|
|
4196
4168
|
this,
|
|
4197
4169
|
t,
|
|
4198
|
-
|
|
4199
|
-
|
|
4170
|
+
qn,
|
|
4171
|
+
Qn,
|
|
4200
4172
|
it,
|
|
4201
4173
|
{
|
|
4202
4174
|
endpoint: 0,
|
|
@@ -4219,7 +4191,7 @@ class Mt extends Kt {
|
|
|
4219
4191
|
fetchviaevent: 17,
|
|
4220
4192
|
mbsource: 18
|
|
4221
4193
|
},
|
|
4222
|
-
|
|
4194
|
+
Zn
|
|
4223
4195
|
);
|
|
4224
4196
|
}
|
|
4225
4197
|
get endpoint() {
|
|
@@ -4338,54 +4310,50 @@ class Mt extends Kt {
|
|
|
4338
4310
|
}
|
|
4339
4311
|
}
|
|
4340
4312
|
Yt(Mt, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
|
4341
|
-
const
|
|
4313
|
+
const mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4342
4314
|
__proto__: null,
|
|
4343
4315
|
default: Mt
|
|
4344
4316
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4345
4317
|
export {
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
li as N,
|
|
4361
|
-
hi as O,
|
|
4362
|
-
gi as P,
|
|
4318
|
+
R as $,
|
|
4319
|
+
Xn as A,
|
|
4320
|
+
zn as B,
|
|
4321
|
+
Yt as C,
|
|
4322
|
+
ci as D,
|
|
4323
|
+
g as E,
|
|
4324
|
+
si as F,
|
|
4325
|
+
ti as G,
|
|
4326
|
+
ai as H,
|
|
4327
|
+
ui as I,
|
|
4328
|
+
oi as J,
|
|
4329
|
+
fi as K,
|
|
4330
|
+
li as L,
|
|
4331
|
+
mi as M,
|
|
4363
4332
|
Kt as S,
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
dr as e,
|
|
4333
|
+
Z as a,
|
|
4334
|
+
bn as b,
|
|
4335
|
+
Ut as c,
|
|
4336
|
+
te as d,
|
|
4337
|
+
ce as e,
|
|
4370
4338
|
H as f,
|
|
4371
|
-
|
|
4372
|
-
|
|
4339
|
+
re as g,
|
|
4340
|
+
Yn as h,
|
|
4373
4341
|
Jt as i,
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4342
|
+
Se as j,
|
|
4343
|
+
Ue as k,
|
|
4344
|
+
hi as l,
|
|
4345
|
+
Kn as m,
|
|
4378
4346
|
I as n,
|
|
4379
4347
|
Vt as o,
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4348
|
+
ni as p,
|
|
4349
|
+
$t as q,
|
|
4350
|
+
z as r,
|
|
4383
4351
|
it as s,
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4352
|
+
ri as t,
|
|
4353
|
+
Ft as u,
|
|
4354
|
+
ei as v,
|
|
4355
|
+
at as w,
|
|
4356
|
+
ii as x,
|
|
4357
|
+
Jn as y,
|
|
4358
|
+
Vn as z
|
|
4391
4359
|
};
|