@everymatrix/casino-navigation-search 1.54.4 → 1.54.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-BVV69FR_.js → CasinoCategories-B7tTtizO.js} +369 -373
- package/components/CasinoCategories-CERkwPyU.js +4381 -0
- package/components/CasinoCategories-Cr8gbFiL.cjs +3 -0
- package/components/CasinoCategoriesProviders-BlxR3Bcx.js +461 -0
- package/components/CasinoCategoriesProviders-DuvHMWOk.cjs +1 -0
- package/components/{CasinoCategoriesProviders-D46WISf1.js → CasinoCategoriesProviders-noOI1It6.js} +17 -17
- package/components/CasinoGameThumbnail-B6f0YcEd.js +4883 -0
- package/components/CasinoGameThumbnail-BdKdRl9Y.cjs +49 -0
- package/components/{CasinoGameThumbnail-y5mMm2dM.js → CasinoGameThumbnail-DMUC8pyx.js} +159 -163
- package/components/CasinoNavigationSearch-BbBzaHxM.cjs +1 -0
- package/components/{CasinoNavigationSearch-aFR1wJef.js → CasinoNavigationSearch-DyPPLsF6.js} +10 -10
- package/components/CasinoNavigationSearch-QPGyy0uj.js +454 -0
- package/components/{CasinoProviders-ZOdiCkDq.js → CasinoProviders-TmhfeD1q.js} +33 -33
- package/components/CasinoProviders-sV7pLZMc.js +491 -0
- package/components/CasinoProviders-siFiKlyt.cjs +1 -0
- package/components/CasinoSearch-BFZykKNn.cjs +1 -0
- package/components/CasinoSearch-BtK85SYi.js +1087 -0
- package/components/{CasinoSearch-Cma-KA8d.js → CasinoSearch-D2ii3Y7U.js} +47 -47
- package/es2015/casino-navigation-search.cjs +1 -0
- package/es2015/casino-navigation-search.js +16 -0
- package/esnext/casino-navigation-search.js +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function mt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ae(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(mt);
|
|
11
11
|
}
|
|
12
12
|
function je(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function dt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
19
|
function de(e, t) {
|
|
20
20
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Qt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function bt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function qt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function v(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Jt(e, t, r) {
|
|
41
|
+
const n = Yt(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = B("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Kt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Yt(e) {
|
|
48
48
|
if (!e) return document;
|
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
50
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -53,7 +53,7 @@ function Kt(e) {
|
|
|
53
53
|
t
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Kt(e, t) {
|
|
57
57
|
return v(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
@@ -66,14 +66,14 @@ function k(e, t, r) {
|
|
|
66
66
|
function F(e) {
|
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function We(e, t) {
|
|
70
70
|
for (let r = 0; r < e.length; r += 1)
|
|
71
71
|
e[r] && e[r].d(t);
|
|
72
72
|
}
|
|
73
73
|
function B(e) {
|
|
74
74
|
return document.createElement(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function er(e) {
|
|
77
77
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
78
78
|
}
|
|
79
79
|
function R(e) {
|
|
@@ -82,33 +82,33 @@ function R(e) {
|
|
|
82
82
|
function $() {
|
|
83
83
|
return R(" ");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function li() {
|
|
86
86
|
return R("");
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function bt(e, t, r, n) {
|
|
89
89
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
90
90
|
}
|
|
91
91
|
function H(e, t, r) {
|
|
92
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function fi(e, t, r) {
|
|
95
95
|
const n = t.toLowerCase();
|
|
96
96
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function tr(e) {
|
|
99
99
|
return Array.from(e.childNodes);
|
|
100
100
|
}
|
|
101
101
|
function D(e, t) {
|
|
102
102
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
103
103
|
t);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function ci(e, t) {
|
|
106
106
|
e.value = t ?? "";
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function gi(e, t, r) {
|
|
109
109
|
e.classList.toggle(t, !!r);
|
|
110
110
|
}
|
|
111
|
-
class
|
|
111
|
+
class mi {
|
|
112
112
|
/**
|
|
113
113
|
* @private
|
|
114
114
|
* @default false
|
|
@@ -139,7 +139,7 @@ class di {
|
|
|
139
139
|
* @returns {void}
|
|
140
140
|
*/
|
|
141
141
|
m(t, r, n = null) {
|
|
142
|
-
this.e || (this.is_svg ? this.e =
|
|
142
|
+
this.e || (this.is_svg ? this.e = er(
|
|
143
143
|
/** @type {keyof SVGElementTagNameMap} */
|
|
144
144
|
r.nodeName
|
|
145
145
|
) : this.e = B(
|
|
@@ -178,7 +178,7 @@ class di {
|
|
|
178
178
|
this.n.forEach(F);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function rr(e) {
|
|
182
182
|
const t = {};
|
|
183
183
|
return e.childNodes.forEach(
|
|
184
184
|
/** @param {Element} node */
|
|
@@ -191,22 +191,22 @@ let ie;
|
|
|
191
191
|
function ne(e) {
|
|
192
192
|
ie = e;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function nr() {
|
|
195
195
|
if (!ie) throw new Error("Function called outside component initialization");
|
|
196
196
|
return ie;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
198
|
+
function di(e) {
|
|
199
|
+
nr().$$.on_mount.push(e);
|
|
200
200
|
}
|
|
201
201
|
const W = [], Oe = [];
|
|
202
202
|
let Z = [];
|
|
203
|
-
const
|
|
203
|
+
const Ze = [], yt = /* @__PURE__ */ Promise.resolve();
|
|
204
204
|
let Pe = !1;
|
|
205
|
-
function
|
|
206
|
-
Pe || (Pe = !0,
|
|
205
|
+
function _t() {
|
|
206
|
+
Pe || (Pe = !0, yt.then(M));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
208
|
+
function pi() {
|
|
209
|
+
return _t(), yt;
|
|
210
210
|
}
|
|
211
211
|
function Ne(e) {
|
|
212
212
|
Z.push(e);
|
|
@@ -221,7 +221,7 @@ function M() {
|
|
|
221
221
|
try {
|
|
222
222
|
for (; X < W.length; ) {
|
|
223
223
|
const t = W[X];
|
|
224
|
-
X++, ne(t),
|
|
224
|
+
X++, ne(t), ir(t.$$);
|
|
225
225
|
}
|
|
226
226
|
} catch (t) {
|
|
227
227
|
throw W.length = 0, X = 0, t;
|
|
@@ -233,43 +233,43 @@ function M() {
|
|
|
233
233
|
}
|
|
234
234
|
Z.length = 0;
|
|
235
235
|
} while (W.length);
|
|
236
|
-
for (;
|
|
237
|
-
|
|
236
|
+
for (; Ze.length; )
|
|
237
|
+
Ze.pop()();
|
|
238
238
|
Pe = !1, Te.clear(), ne(e);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ir(e) {
|
|
241
241
|
if (e.fragment !== null) {
|
|
242
242
|
e.update(), ae(e.before_update);
|
|
243
243
|
const t = e.dirty;
|
|
244
244
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function sr(e) {
|
|
248
248
|
const t = [], r = [];
|
|
249
249
|
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
e && e.i && (
|
|
251
|
+
const or = /* @__PURE__ */ new Set();
|
|
252
|
+
function ar(e, t) {
|
|
253
|
+
e && e.i && (or.delete(e), e.i(t));
|
|
254
254
|
}
|
|
255
255
|
function le(e) {
|
|
256
256
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function ur(e, t, r) {
|
|
259
259
|
const { fragment: n, after_update: i } = e.$$;
|
|
260
260
|
n && n.m(t, r), Ne(() => {
|
|
261
|
-
const s = e.$$.on_mount.map(
|
|
261
|
+
const s = e.$$.on_mount.map(mt).filter(je);
|
|
262
262
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
263
263
|
}), i.forEach(Ne);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function hr(e, t) {
|
|
266
266
|
const r = e.$$;
|
|
267
|
-
r.fragment !== null && (
|
|
267
|
+
r.fragment !== null && (sr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
269
|
+
function lr(e, t) {
|
|
270
|
+
e.$$.dirty[0] === -1 && (W.push(e), _t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function fr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
273
273
|
const f = ie;
|
|
274
274
|
ne(e);
|
|
275
275
|
const u = e.$$ = {
|
|
@@ -279,7 +279,7 @@ function cr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
279
279
|
props: s,
|
|
280
280
|
update: I,
|
|
281
281
|
not_equal: i,
|
|
282
|
-
bound:
|
|
282
|
+
bound: ze(),
|
|
283
283
|
// lifecycle
|
|
284
284
|
on_mount: [],
|
|
285
285
|
on_destroy: [],
|
|
@@ -288,7 +288,7 @@ function cr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
288
288
|
after_update: [],
|
|
289
289
|
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
290
290
|
// everything else
|
|
291
|
-
callbacks:
|
|
291
|
+
callbacks: ze(),
|
|
292
292
|
dirty: a,
|
|
293
293
|
skip_bound: !1,
|
|
294
294
|
root: t.target || f.$$.root
|
|
@@ -297,19 +297,19 @@ function cr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
297
297
|
let h = !1;
|
|
298
298
|
if (u.ctx = r ? r(e, t.props || {}, (c, l, ...p) => {
|
|
299
299
|
const d = p.length ? p[0] : l;
|
|
300
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h &&
|
|
300
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && lr(e, c)), l;
|
|
301
301
|
}) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
302
302
|
if (t.hydrate) {
|
|
303
|
-
const c =
|
|
303
|
+
const c = tr(t.target);
|
|
304
304
|
u.fragment && u.fragment.l(c), c.forEach(F);
|
|
305
305
|
} else
|
|
306
306
|
u.fragment && u.fragment.c();
|
|
307
|
-
t.intro &&
|
|
307
|
+
t.intro && ar(e.$$.fragment), ur(e, t.target, t.anchor), M();
|
|
308
308
|
}
|
|
309
309
|
ne(f);
|
|
310
310
|
}
|
|
311
|
-
let
|
|
312
|
-
typeof HTMLElement == "function" && (
|
|
311
|
+
let Et;
|
|
312
|
+
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
313
313
|
/** The Svelte component constructor */
|
|
314
314
|
$$ctor;
|
|
315
315
|
/** Slots */
|
|
@@ -368,7 +368,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
368
368
|
};
|
|
369
369
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
370
370
|
return;
|
|
371
|
-
const t = {}, r =
|
|
371
|
+
const t = {}, r = rr(this);
|
|
372
372
|
for (const i of this.$$s)
|
|
373
373
|
i in r && (t[i] = [e(i)]);
|
|
374
374
|
for (const i of this.attributes) {
|
|
@@ -455,8 +455,8 @@ function ce(e, t, r, n) {
|
|
|
455
455
|
return t;
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
let o = class extends
|
|
458
|
+
function cr(e, t, r, n, i, s) {
|
|
459
|
+
let o = class extends Et {
|
|
460
460
|
constructor() {
|
|
461
461
|
super(e, r, i), this.$$p_d = t;
|
|
462
462
|
}
|
|
@@ -484,7 +484,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
484
484
|
}), e.element = /** @type {any} */
|
|
485
485
|
o, o;
|
|
486
486
|
}
|
|
487
|
-
class
|
|
487
|
+
class gr {
|
|
488
488
|
/**
|
|
489
489
|
* ### PRIVATE API
|
|
490
490
|
*
|
|
@@ -503,7 +503,7 @@ class mr {
|
|
|
503
503
|
$$set = void 0;
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
hr(this, 1), this.$destroy = I;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -525,13 +525,13 @@ class mr {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const mr = "4";
|
|
532
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
|
|
533
533
|
const z = [];
|
|
534
|
-
function
|
|
534
|
+
function dr(e, t) {
|
|
535
535
|
return {
|
|
536
536
|
subscribe: ye(e, t).subscribe
|
|
537
537
|
};
|
|
@@ -540,7 +540,7 @@ function ye(e, t = I) {
|
|
|
540
540
|
let r;
|
|
541
541
|
const n = /* @__PURE__ */ new Set();
|
|
542
542
|
function i(a) {
|
|
543
|
-
if (
|
|
543
|
+
if (dt(e, a) && (e = a, r)) {
|
|
544
544
|
const f = !z.length;
|
|
545
545
|
for (const u of n)
|
|
546
546
|
u[1](), z.push(u, e);
|
|
@@ -567,7 +567,7 @@ function K(e, t, r) {
|
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return dr(r, (o, a) => {
|
|
571
571
|
let f = !1;
|
|
572
572
|
const u = [];
|
|
573
573
|
let h = 0, c = I;
|
|
@@ -578,7 +578,7 @@ function K(e, t, r) {
|
|
|
578
578
|
const d = t(n ? u[0] : u, o, a);
|
|
579
579
|
s ? o(d) : c = je(d) ? d : I;
|
|
580
580
|
}, p = i.map(
|
|
581
|
-
(d, g) =>
|
|
581
|
+
(d, g) => pt(
|
|
582
582
|
d,
|
|
583
583
|
(x) => {
|
|
584
584
|
u[g] = x, h &= ~(1 << g), f && l();
|
|
@@ -593,70 +593,70 @@ function K(e, t, r) {
|
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
596
|
+
function pr(e) {
|
|
597
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var br = function(t) {
|
|
600
|
+
return yr(t) && !_r(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function yr(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function _r(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || vr(e);
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var Er = typeof Symbol == "function" && Symbol.for, xr = Er ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function vr(e) {
|
|
611
|
+
return e.$$typeof === xr;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Tr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
616
|
function se(e, t) {
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Tr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Cr(e, t, r) {
|
|
620
620
|
return e.concat(t).map(function(n) {
|
|
621
621
|
return se(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Hr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
626
|
return Q;
|
|
627
627
|
var r = t.customMerge(e);
|
|
628
628
|
return typeof r == "function" ? r : Q;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ar(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return Object.keys(e).concat(
|
|
635
|
+
function Qe(e) {
|
|
636
|
+
return Object.keys(e).concat(Ar(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function xt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
641
|
} catch {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Sr(e, t) {
|
|
646
|
+
return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Br(e, t, r) {
|
|
649
649
|
var n = {};
|
|
650
|
-
return r.isMergeableObject(e) &&
|
|
650
|
+
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
651
651
|
n[i] = se(e[i], r);
|
|
652
|
-
}),
|
|
653
|
-
|
|
652
|
+
}), Qe(t).forEach(function(i) {
|
|
653
|
+
Sr(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
654
654
|
}), n;
|
|
655
655
|
}
|
|
656
656
|
function Q(e, t, r) {
|
|
657
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = se;
|
|
658
658
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : se(t, r);
|
|
660
660
|
}
|
|
661
661
|
Q.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
@@ -665,8 +665,8 @@ Q.all = function(t, r) {
|
|
|
665
665
|
return Q(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
668
|
+
var wr = Q, Or = wr;
|
|
669
|
+
const Pr = /* @__PURE__ */ pr(Or);
|
|
670
670
|
var Le = function(e, t) {
|
|
671
671
|
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
672
672
|
r.__proto__ = n;
|
|
@@ -692,7 +692,7 @@ var E = function() {
|
|
|
692
692
|
return t;
|
|
693
693
|
}, E.apply(this, arguments);
|
|
694
694
|
};
|
|
695
|
-
function
|
|
695
|
+
function Nr(e, t) {
|
|
696
696
|
var r = {};
|
|
697
697
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
698
698
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -700,7 +700,7 @@ function Lr(e, t) {
|
|
|
700
700
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
701
701
|
return r;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function bi(e) {
|
|
704
704
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
705
705
|
if (r) return r.call(e);
|
|
706
706
|
if (e && typeof e.length == "number") return {
|
|
@@ -710,7 +710,7 @@ function yi(e) {
|
|
|
710
710
|
};
|
|
711
711
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function yi(e, t) {
|
|
714
714
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
715
715
|
if (!r) return e;
|
|
716
716
|
var n = r.call(e), i, s = [], o;
|
|
@@ -733,39 +733,36 @@ function Ce(e, t, r) {
|
|
|
733
733
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
734
734
|
}
|
|
735
735
|
function He(e, t) {
|
|
736
|
-
var r = t && t.cache ? t.cache :
|
|
736
|
+
var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Mr;
|
|
737
737
|
return i(e, {
|
|
738
738
|
cache: r,
|
|
739
739
|
serializer: n
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Lr(e) {
|
|
743
743
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
var i =
|
|
745
|
+
function Ir(e, t, r, n) {
|
|
746
|
+
var i = Lr(n) ? n : r(n), s = t.get(i);
|
|
747
747
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function vt(e, t, r) {
|
|
750
750
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
751
751
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Tt(e, t, r, n, i) {
|
|
754
754
|
return r.bind(t, e, n, i);
|
|
755
755
|
}
|
|
756
756
|
function Mr(e, t) {
|
|
757
|
-
var r = e.length === 1 ?
|
|
758
|
-
return
|
|
757
|
+
var r = e.length === 1 ? Ir : vt;
|
|
758
|
+
return Tt(e, this, r, t.cache.create(), t.serializer);
|
|
759
759
|
}
|
|
760
760
|
function $r(e, t) {
|
|
761
|
-
return
|
|
762
|
-
}
|
|
763
|
-
function Rr(e, t) {
|
|
764
|
-
return ke(e, this, Tt, t.cache.create(), t.serializer);
|
|
761
|
+
return Tt(e, this, vt, t.cache.create(), t.serializer);
|
|
765
762
|
}
|
|
766
|
-
var
|
|
763
|
+
var Rr = function() {
|
|
767
764
|
return JSON.stringify(arguments);
|
|
768
|
-
},
|
|
765
|
+
}, Ur = (
|
|
769
766
|
/** @class */
|
|
770
767
|
function() {
|
|
771
768
|
function e() {
|
|
@@ -777,13 +774,12 @@ var Ur = function() {
|
|
|
777
774
|
this.cache[t] = r;
|
|
778
775
|
}, e;
|
|
779
776
|
}()
|
|
780
|
-
),
|
|
777
|
+
), Gr = {
|
|
781
778
|
create: function() {
|
|
782
|
-
return new
|
|
779
|
+
return new Ur();
|
|
783
780
|
}
|
|
784
781
|
}, Ae = {
|
|
785
|
-
variadic: $r
|
|
786
|
-
monadic: Rr
|
|
782
|
+
variadic: $r
|
|
787
783
|
}, y;
|
|
788
784
|
(function(e) {
|
|
789
785
|
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";
|
|
@@ -796,43 +792,43 @@ var q;
|
|
|
796
792
|
(function(e) {
|
|
797
793
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
798
794
|
})(q || (q = {}));
|
|
799
|
-
function
|
|
795
|
+
function qe(e) {
|
|
800
796
|
return e.type === T.literal;
|
|
801
797
|
}
|
|
802
|
-
function
|
|
798
|
+
function Dr(e) {
|
|
803
799
|
return e.type === T.argument;
|
|
804
800
|
}
|
|
805
|
-
function
|
|
801
|
+
function Ct(e) {
|
|
806
802
|
return e.type === T.number;
|
|
807
803
|
}
|
|
808
|
-
function
|
|
804
|
+
function Ht(e) {
|
|
809
805
|
return e.type === T.date;
|
|
810
806
|
}
|
|
811
|
-
function
|
|
807
|
+
function At(e) {
|
|
812
808
|
return e.type === T.time;
|
|
813
809
|
}
|
|
814
|
-
function
|
|
810
|
+
function St(e) {
|
|
815
811
|
return e.type === T.select;
|
|
816
812
|
}
|
|
817
|
-
function
|
|
813
|
+
function Bt(e) {
|
|
818
814
|
return e.type === T.plural;
|
|
819
815
|
}
|
|
820
|
-
function
|
|
816
|
+
function Fr(e) {
|
|
821
817
|
return e.type === T.pound;
|
|
822
818
|
}
|
|
823
|
-
function
|
|
819
|
+
function wt(e) {
|
|
824
820
|
return e.type === T.tag;
|
|
825
821
|
}
|
|
826
|
-
function
|
|
822
|
+
function Ot(e) {
|
|
827
823
|
return !!(e && typeof e == "object" && e.type === q.number);
|
|
828
824
|
}
|
|
829
825
|
function Ie(e) {
|
|
830
826
|
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
831
827
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
828
|
+
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
829
|
+
function kr(e) {
|
|
834
830
|
var t = {};
|
|
835
|
-
return e.replace(
|
|
831
|
+
return e.replace(jr, function(r) {
|
|
836
832
|
var n = r.length;
|
|
837
833
|
switch (r[0]) {
|
|
838
834
|
case "G":
|
|
@@ -921,11 +917,11 @@ function Vr(e) {
|
|
|
921
917
|
return "";
|
|
922
918
|
}), t;
|
|
923
919
|
}
|
|
924
|
-
var
|
|
925
|
-
function
|
|
920
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
921
|
+
function Xr(e) {
|
|
926
922
|
if (e.length === 0)
|
|
927
923
|
throw new Error("Number skeleton cannot be empty");
|
|
928
|
-
for (var t = e.split(
|
|
924
|
+
for (var t = e.split(Vr).filter(function(l) {
|
|
929
925
|
return l.length > 0;
|
|
930
926
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
931
927
|
var s = i[n], o = s.split("/");
|
|
@@ -940,17 +936,17 @@ function zr(e) {
|
|
|
940
936
|
}
|
|
941
937
|
return r;
|
|
942
938
|
}
|
|
943
|
-
function
|
|
939
|
+
function zr(e) {
|
|
944
940
|
return e.replace(/^(.*?)-/, "");
|
|
945
941
|
}
|
|
946
|
-
var
|
|
947
|
-
function
|
|
942
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Wr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
|
|
943
|
+
function Ye(e) {
|
|
948
944
|
var t = {};
|
|
949
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
945
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
950
946
|
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)), "";
|
|
951
947
|
}), t;
|
|
952
948
|
}
|
|
953
|
-
function
|
|
949
|
+
function It(e) {
|
|
954
950
|
switch (e) {
|
|
955
951
|
case "sign-auto":
|
|
956
952
|
return {
|
|
@@ -990,7 +986,7 @@ function Mt(e) {
|
|
|
990
986
|
};
|
|
991
987
|
}
|
|
992
988
|
}
|
|
993
|
-
function
|
|
989
|
+
function Zr(e) {
|
|
994
990
|
var t;
|
|
995
991
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
996
992
|
notation: "engineering"
|
|
@@ -998,17 +994,17 @@ function Qr(e) {
|
|
|
998
994
|
notation: "scientific"
|
|
999
995
|
}, e = e.slice(1)), t) {
|
|
1000
996
|
var r = e.slice(0, 2);
|
|
1001
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
997
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lt.test(e))
|
|
1002
998
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1003
999
|
t.minimumIntegerDigits = e.length;
|
|
1004
1000
|
}
|
|
1005
1001
|
return t;
|
|
1006
1002
|
}
|
|
1007
|
-
function
|
|
1008
|
-
var t = {}, r =
|
|
1003
|
+
function Ke(e) {
|
|
1004
|
+
var t = {}, r = It(e);
|
|
1009
1005
|
return r || t;
|
|
1010
1006
|
}
|
|
1011
|
-
function
|
|
1007
|
+
function Qr(e) {
|
|
1012
1008
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1013
1009
|
var i = n[r];
|
|
1014
1010
|
switch (i.stem) {
|
|
@@ -1032,7 +1028,7 @@ function qr(e) {
|
|
|
1032
1028
|
continue;
|
|
1033
1029
|
case "measure-unit":
|
|
1034
1030
|
case "unit":
|
|
1035
|
-
t.style = "unit", t.unit =
|
|
1031
|
+
t.style = "unit", t.unit = zr(i.options[0]);
|
|
1036
1032
|
continue;
|
|
1037
1033
|
case "compact-short":
|
|
1038
1034
|
case "K":
|
|
@@ -1044,12 +1040,12 @@ function qr(e) {
|
|
|
1044
1040
|
continue;
|
|
1045
1041
|
case "scientific":
|
|
1046
1042
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(f, u) {
|
|
1047
|
-
return E(E({}, f),
|
|
1043
|
+
return E(E({}, f), Ke(u));
|
|
1048
1044
|
}, {}));
|
|
1049
1045
|
continue;
|
|
1050
1046
|
case "engineering":
|
|
1051
1047
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(f, u) {
|
|
1052
|
-
return E(E({}, f),
|
|
1048
|
+
return E(E({}, f), Ke(u));
|
|
1053
1049
|
}, {}));
|
|
1054
1050
|
continue;
|
|
1055
1051
|
case "notation-simple":
|
|
@@ -1094,7 +1090,7 @@ function qr(e) {
|
|
|
1094
1090
|
case "integer-width":
|
|
1095
1091
|
if (i.options.length > 1)
|
|
1096
1092
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1097
|
-
i.options[0].replace(
|
|
1093
|
+
i.options[0].replace(Wr, function(f, u, h, c, l, p) {
|
|
1098
1094
|
if (u)
|
|
1099
1095
|
t.minimumIntegerDigits = h.length;
|
|
1100
1096
|
else {
|
|
@@ -1107,27 +1103,27 @@ function qr(e) {
|
|
|
1107
1103
|
});
|
|
1108
1104
|
continue;
|
|
1109
1105
|
}
|
|
1110
|
-
if (
|
|
1106
|
+
if (Lt.test(i.stem)) {
|
|
1111
1107
|
t.minimumIntegerDigits = i.stem.length;
|
|
1112
1108
|
continue;
|
|
1113
1109
|
}
|
|
1114
|
-
if (
|
|
1110
|
+
if (Je.test(i.stem)) {
|
|
1115
1111
|
if (i.options.length > 1)
|
|
1116
1112
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1117
|
-
i.stem.replace(
|
|
1113
|
+
i.stem.replace(Je, function(f, u, h, c, l, p) {
|
|
1118
1114
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : l && p ? (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1119
1115
|
});
|
|
1120
1116
|
var s = i.options[0];
|
|
1121
|
-
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t),
|
|
1117
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Ye(s)));
|
|
1122
1118
|
continue;
|
|
1123
1119
|
}
|
|
1124
|
-
if (
|
|
1125
|
-
t = E(E({}, t),
|
|
1120
|
+
if (Nt.test(i.stem)) {
|
|
1121
|
+
t = E(E({}, t), Ye(i.stem));
|
|
1126
1122
|
continue;
|
|
1127
1123
|
}
|
|
1128
|
-
var o =
|
|
1124
|
+
var o = It(i.stem);
|
|
1129
1125
|
o && (t = E(E({}, t), o));
|
|
1130
|
-
var a =
|
|
1126
|
+
var a = Zr(i.stem);
|
|
1131
1127
|
a && (t = E(E({}, t), a));
|
|
1132
1128
|
}
|
|
1133
1129
|
return t;
|
|
@@ -2547,13 +2543,13 @@ var fe = {
|
|
|
2547
2543
|
"h"
|
|
2548
2544
|
]
|
|
2549
2545
|
};
|
|
2550
|
-
function
|
|
2546
|
+
function qr(e, t) {
|
|
2551
2547
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2552
2548
|
var i = e.charAt(n);
|
|
2553
2549
|
if (i === "j") {
|
|
2554
2550
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2555
2551
|
s++, n++;
|
|
2556
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), f = "a", u =
|
|
2552
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), f = "a", u = Jr(t);
|
|
2557
2553
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2558
2554
|
r += f;
|
|
2559
2555
|
for (; o-- > 0; )
|
|
@@ -2562,7 +2558,7 @@ function Jr(e, t) {
|
|
|
2562
2558
|
}
|
|
2563
2559
|
return r;
|
|
2564
2560
|
}
|
|
2565
|
-
function
|
|
2561
|
+
function Jr(e) {
|
|
2566
2562
|
var t = e.hourCycle;
|
|
2567
2563
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2568
2564
|
e.hourCycles && // @ts-ignore
|
|
@@ -2584,20 +2580,20 @@ function Yr(e) {
|
|
|
2584
2580
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2585
2581
|
return i[0];
|
|
2586
2582
|
}
|
|
2587
|
-
var Se,
|
|
2583
|
+
var Se, Yr = new RegExp("^".concat(Pt.source, "*")), Kr = new RegExp("".concat(Pt.source, "*$"));
|
|
2588
2584
|
function _(e, t) {
|
|
2589
2585
|
return { start: e, end: t };
|
|
2590
2586
|
}
|
|
2591
|
-
var
|
|
2587
|
+
var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, un = an ? Number.isSafeInteger : function(e) {
|
|
2592
2588
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2593
2589
|
}, Me = !0;
|
|
2594
2590
|
try {
|
|
2595
|
-
var
|
|
2596
|
-
Me = ((Se =
|
|
2591
|
+
var hn = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2592
|
+
Me = ((Se = hn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2597
2593
|
} catch {
|
|
2598
2594
|
Me = !1;
|
|
2599
2595
|
}
|
|
2600
|
-
var
|
|
2596
|
+
var et = en ? (
|
|
2601
2597
|
// Native
|
|
2602
2598
|
function(t, r, n) {
|
|
2603
2599
|
return t.startsWith(r, n);
|
|
@@ -2607,7 +2603,7 @@ var tt = tn ? (
|
|
|
2607
2603
|
function(t, r, n) {
|
|
2608
2604
|
return t.slice(n, n + r.length) === r;
|
|
2609
2605
|
}
|
|
2610
|
-
), $e =
|
|
2606
|
+
), $e = tn ? String.fromCodePoint : (
|
|
2611
2607
|
// IE11
|
|
2612
2608
|
function() {
|
|
2613
2609
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2619,9 +2615,9 @@ var tt = tn ? (
|
|
|
2619
2615
|
}
|
|
2620
2616
|
return n;
|
|
2621
2617
|
}
|
|
2622
|
-
),
|
|
2618
|
+
), tt = (
|
|
2623
2619
|
// native
|
|
2624
|
-
|
|
2620
|
+
rn ? Object.fromEntries : (
|
|
2625
2621
|
// Ponyfill
|
|
2626
2622
|
function(t) {
|
|
2627
2623
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2631,7 +2627,7 @@ var tt = tn ? (
|
|
|
2631
2627
|
return r;
|
|
2632
2628
|
}
|
|
2633
2629
|
)
|
|
2634
|
-
),
|
|
2630
|
+
), Mt = nn ? (
|
|
2635
2631
|
// Native
|
|
2636
2632
|
function(t, r) {
|
|
2637
2633
|
return t.codePointAt(r);
|
|
@@ -2645,7 +2641,7 @@ var tt = tn ? (
|
|
|
2645
2641
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2646
2642
|
}
|
|
2647
2643
|
}
|
|
2648
|
-
),
|
|
2644
|
+
), ln = sn ? (
|
|
2649
2645
|
// Native
|
|
2650
2646
|
function(t) {
|
|
2651
2647
|
return t.trimStart();
|
|
@@ -2653,9 +2649,9 @@ var tt = tn ? (
|
|
|
2653
2649
|
) : (
|
|
2654
2650
|
// Ponyfill
|
|
2655
2651
|
function(t) {
|
|
2656
|
-
return t.replace(
|
|
2652
|
+
return t.replace(Yr, "");
|
|
2657
2653
|
}
|
|
2658
|
-
),
|
|
2654
|
+
), fn = on ? (
|
|
2659
2655
|
// Native
|
|
2660
2656
|
function(t) {
|
|
2661
2657
|
return t.trimEnd();
|
|
@@ -2663,32 +2659,32 @@ var tt = tn ? (
|
|
|
2663
2659
|
) : (
|
|
2664
2660
|
// Ponyfill
|
|
2665
2661
|
function(t) {
|
|
2666
|
-
return t.replace(
|
|
2662
|
+
return t.replace(Kr, "");
|
|
2667
2663
|
}
|
|
2668
2664
|
);
|
|
2669
|
-
function
|
|
2665
|
+
function $t(e, t) {
|
|
2670
2666
|
return new RegExp(e, t);
|
|
2671
2667
|
}
|
|
2672
2668
|
var Re;
|
|
2673
2669
|
if (Me) {
|
|
2674
|
-
var
|
|
2670
|
+
var rt = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2675
2671
|
Re = function(t, r) {
|
|
2676
2672
|
var n;
|
|
2677
|
-
|
|
2678
|
-
var i =
|
|
2673
|
+
rt.lastIndex = r;
|
|
2674
|
+
var i = rt.exec(t);
|
|
2679
2675
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2680
2676
|
};
|
|
2681
2677
|
} else
|
|
2682
2678
|
Re = function(t, r) {
|
|
2683
2679
|
for (var n = []; ; ) {
|
|
2684
|
-
var i =
|
|
2685
|
-
if (i === void 0 ||
|
|
2680
|
+
var i = Mt(t, r);
|
|
2681
|
+
if (i === void 0 || Rt(i) || dn(i))
|
|
2686
2682
|
break;
|
|
2687
2683
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2688
2684
|
}
|
|
2689
2685
|
return $e.apply(void 0, n);
|
|
2690
2686
|
};
|
|
2691
|
-
var
|
|
2687
|
+
var cn = (
|
|
2692
2688
|
/** @class */
|
|
2693
2689
|
function() {
|
|
2694
2690
|
function e(t, r) {
|
|
@@ -2770,7 +2766,7 @@ var gn = (
|
|
|
2770
2766
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2771
2767
|
}, e.prototype.parseTagName = function() {
|
|
2772
2768
|
var t = this.offset();
|
|
2773
|
-
for (this.bump(); !this.isEOF() &&
|
|
2769
|
+
for (this.bump(); !this.isEOF() && mn(this.char()); )
|
|
2774
2770
|
this.bump();
|
|
2775
2771
|
return this.message.slice(t, this.offset());
|
|
2776
2772
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2799,7 +2795,7 @@ var gn = (
|
|
|
2799
2795
|
};
|
|
2800
2796
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2801
2797
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2802
|
-
!
|
|
2798
|
+
!gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2803
2799
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2804
2800
|
if (this.isEOF() || this.char() !== 39)
|
|
2805
2801
|
return null;
|
|
@@ -2886,7 +2882,7 @@ var gn = (
|
|
|
2886
2882
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2887
2883
|
if (c.err)
|
|
2888
2884
|
return c;
|
|
2889
|
-
var l =
|
|
2885
|
+
var l = fn(c.val);
|
|
2890
2886
|
if (l.length === 0)
|
|
2891
2887
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2892
2888
|
var p = _(h, this.clonePosition());
|
|
@@ -2896,8 +2892,8 @@ var gn = (
|
|
|
2896
2892
|
if (d.err)
|
|
2897
2893
|
return d;
|
|
2898
2894
|
var g = _(i, this.clonePosition());
|
|
2899
|
-
if (u &&
|
|
2900
|
-
var x =
|
|
2895
|
+
if (u && et(u?.style, "::", 0)) {
|
|
2896
|
+
var x = ln(u.style.slice(2));
|
|
2901
2897
|
if (a === "number") {
|
|
2902
2898
|
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2903
2899
|
return c.err ? c : {
|
|
@@ -2908,12 +2904,12 @@ var gn = (
|
|
|
2908
2904
|
if (x.length === 0)
|
|
2909
2905
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2910
2906
|
var m = x;
|
|
2911
|
-
this.locale && (m =
|
|
2907
|
+
this.locale && (m = qr(x, this.locale));
|
|
2912
2908
|
var l = {
|
|
2913
2909
|
type: q.dateTime,
|
|
2914
2910
|
pattern: m,
|
|
2915
2911
|
location: u.styleLocation,
|
|
2916
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2912
|
+
parsedOptions: this.shouldParseSkeletons ? kr(m) : {}
|
|
2917
2913
|
}, C = a === "date" ? T.date : T.time;
|
|
2918
2914
|
return {
|
|
2919
2915
|
val: { type: C, value: n, location: g, style: l },
|
|
@@ -2959,7 +2955,7 @@ var gn = (
|
|
|
2959
2955
|
val: {
|
|
2960
2956
|
type: T.select,
|
|
2961
2957
|
value: n,
|
|
2962
|
-
options:
|
|
2958
|
+
options: tt(S.val),
|
|
2963
2959
|
location: P
|
|
2964
2960
|
},
|
|
2965
2961
|
err: null
|
|
@@ -2967,7 +2963,7 @@ var gn = (
|
|
|
2967
2963
|
val: {
|
|
2968
2964
|
type: T.plural,
|
|
2969
2965
|
value: n,
|
|
2970
|
-
options:
|
|
2966
|
+
options: tt(S.val),
|
|
2971
2967
|
offset: w,
|
|
2972
2968
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2973
2969
|
location: P
|
|
@@ -3018,7 +3014,7 @@ var gn = (
|
|
|
3018
3014
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3019
3015
|
var n = [];
|
|
3020
3016
|
try {
|
|
3021
|
-
n =
|
|
3017
|
+
n = Xr(t);
|
|
3022
3018
|
} catch {
|
|
3023
3019
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3024
3020
|
}
|
|
@@ -3027,7 +3023,7 @@ var gn = (
|
|
|
3027
3023
|
type: q.number,
|
|
3028
3024
|
tokens: n,
|
|
3029
3025
|
location: r,
|
|
3030
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3026
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
|
|
3031
3027
|
},
|
|
3032
3028
|
err: null
|
|
3033
3029
|
};
|
|
@@ -3075,7 +3071,7 @@ var gn = (
|
|
|
3075
3071
|
break;
|
|
3076
3072
|
}
|
|
3077
3073
|
var f = _(i, this.clonePosition());
|
|
3078
|
-
return s ? (o *= n,
|
|
3074
|
+
return s ? (o *= n, un(o) ? { val: o, err: null } : this.error(r, f)) : this.error(t, f);
|
|
3079
3075
|
}, e.prototype.offset = function() {
|
|
3080
3076
|
return this.position.offset;
|
|
3081
3077
|
}, e.prototype.isEOF = function() {
|
|
@@ -3090,7 +3086,7 @@ var gn = (
|
|
|
3090
3086
|
var t = this.position.offset;
|
|
3091
3087
|
if (t >= this.message.length)
|
|
3092
3088
|
throw Error("out of bound");
|
|
3093
|
-
var r =
|
|
3089
|
+
var r = Mt(this.message, t);
|
|
3094
3090
|
if (r === void 0)
|
|
3095
3091
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3096
3092
|
return r;
|
|
@@ -3109,7 +3105,7 @@ var gn = (
|
|
|
3109
3105
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3110
3106
|
}
|
|
3111
3107
|
}, e.prototype.bumpIf = function(t) {
|
|
3112
|
-
if (
|
|
3108
|
+
if (et(this.message, t, this.offset())) {
|
|
3113
3109
|
for (var r = 0; r < t.length; r++)
|
|
3114
3110
|
this.bump();
|
|
3115
3111
|
return !0;
|
|
@@ -3131,7 +3127,7 @@ var gn = (
|
|
|
3131
3127
|
break;
|
|
3132
3128
|
}
|
|
3133
3129
|
}, e.prototype.bumpSpace = function() {
|
|
3134
|
-
for (; !this.isEOF() &&
|
|
3130
|
+
for (; !this.isEOF() && Rt(this.char()); )
|
|
3135
3131
|
this.bump();
|
|
3136
3132
|
}, e.prototype.peek = function() {
|
|
3137
3133
|
if (this.isEOF())
|
|
@@ -3144,29 +3140,29 @@ var gn = (
|
|
|
3144
3140
|
function Ue(e) {
|
|
3145
3141
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3146
3142
|
}
|
|
3147
|
-
function
|
|
3143
|
+
function gn(e) {
|
|
3148
3144
|
return Ue(e) || e === 47;
|
|
3149
3145
|
}
|
|
3150
|
-
function
|
|
3146
|
+
function mn(e) {
|
|
3151
3147
|
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;
|
|
3152
3148
|
}
|
|
3153
|
-
function
|
|
3149
|
+
function Rt(e) {
|
|
3154
3150
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3155
3151
|
}
|
|
3156
|
-
function
|
|
3152
|
+
function dn(e) {
|
|
3157
3153
|
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;
|
|
3158
3154
|
}
|
|
3159
3155
|
function Ge(e) {
|
|
3160
3156
|
e.forEach(function(t) {
|
|
3161
|
-
if (delete t.location,
|
|
3157
|
+
if (delete t.location, St(t) || Bt(t))
|
|
3162
3158
|
for (var r in t.options)
|
|
3163
3159
|
delete t.options[r].location, Ge(t.options[r].value);
|
|
3164
|
-
else
|
|
3160
|
+
else Ct(t) && Ot(t.style) || (Ht(t) || At(t)) && Ie(t.style) ? delete t.style.location : wt(t) && Ge(t.children);
|
|
3165
3161
|
});
|
|
3166
3162
|
}
|
|
3167
|
-
function
|
|
3163
|
+
function pn(e, t) {
|
|
3168
3164
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3169
|
-
var r = new
|
|
3165
|
+
var r = new cn(e, t).parse();
|
|
3170
3166
|
if (r.err) {
|
|
3171
3167
|
var n = SyntaxError(y[r.err.kind]);
|
|
3172
3168
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3189,7 +3185,7 @@ var Ee = (
|
|
|
3189
3185
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3190
3186
|
}, t;
|
|
3191
3187
|
}(Error)
|
|
3192
|
-
),
|
|
3188
|
+
), nt = (
|
|
3193
3189
|
/** @class */
|
|
3194
3190
|
function(e) {
|
|
3195
3191
|
_e(t, e);
|
|
@@ -3198,7 +3194,7 @@ var Ee = (
|
|
|
3198
3194
|
}
|
|
3199
3195
|
return t;
|
|
3200
3196
|
}(Ee)
|
|
3201
|
-
),
|
|
3197
|
+
), bn = (
|
|
3202
3198
|
/** @class */
|
|
3203
3199
|
function(e) {
|
|
3204
3200
|
_e(t, e);
|
|
@@ -3207,7 +3203,7 @@ var Ee = (
|
|
|
3207
3203
|
}
|
|
3208
3204
|
return t;
|
|
3209
3205
|
}(Ee)
|
|
3210
|
-
),
|
|
3206
|
+
), yn = (
|
|
3211
3207
|
/** @class */
|
|
3212
3208
|
function(e) {
|
|
3213
3209
|
_e(t, e);
|
|
@@ -3220,17 +3216,17 @@ var Ee = (
|
|
|
3220
3216
|
(function(e) {
|
|
3221
3217
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3222
3218
|
})(O || (O = {}));
|
|
3223
|
-
function
|
|
3219
|
+
function _n(e) {
|
|
3224
3220
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3225
3221
|
var n = t[t.length - 1];
|
|
3226
3222
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3227
3223
|
}, []);
|
|
3228
3224
|
}
|
|
3229
|
-
function
|
|
3225
|
+
function En(e) {
|
|
3230
3226
|
return typeof e == "function";
|
|
3231
3227
|
}
|
|
3232
3228
|
function ge(e, t, r, n, i, s, o) {
|
|
3233
|
-
if (e.length === 1 &&
|
|
3229
|
+
if (e.length === 1 && qe(e[0]))
|
|
3234
3230
|
return [
|
|
3235
3231
|
{
|
|
3236
3232
|
type: O.literal,
|
|
@@ -3239,14 +3235,14 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3239
3235
|
];
|
|
3240
3236
|
for (var a = [], f = 0, u = e; f < u.length; f++) {
|
|
3241
3237
|
var h = u[f];
|
|
3242
|
-
if (
|
|
3238
|
+
if (qe(h)) {
|
|
3243
3239
|
a.push({
|
|
3244
3240
|
type: O.literal,
|
|
3245
3241
|
value: h.value
|
|
3246
3242
|
});
|
|
3247
3243
|
continue;
|
|
3248
3244
|
}
|
|
3249
|
-
if (
|
|
3245
|
+
if (Fr(h)) {
|
|
3250
3246
|
typeof s == "number" && a.push({
|
|
3251
3247
|
type: O.literal,
|
|
3252
3248
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3255,16 +3251,16 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3255
3251
|
}
|
|
3256
3252
|
var c = h.value;
|
|
3257
3253
|
if (!(i && c in i))
|
|
3258
|
-
throw new
|
|
3254
|
+
throw new yn(c, o);
|
|
3259
3255
|
var l = i[c];
|
|
3260
|
-
if (
|
|
3256
|
+
if (Dr(h)) {
|
|
3261
3257
|
(!l || typeof l == "string" || typeof l == "number") && (l = typeof l == "string" || typeof l == "number" ? String(l) : ""), a.push({
|
|
3262
3258
|
type: typeof l == "string" ? O.literal : O.object,
|
|
3263
3259
|
value: l
|
|
3264
3260
|
});
|
|
3265
3261
|
continue;
|
|
3266
3262
|
}
|
|
3267
|
-
if (
|
|
3263
|
+
if (Ht(h)) {
|
|
3268
3264
|
var p = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
|
|
3269
3265
|
a.push({
|
|
3270
3266
|
type: O.literal,
|
|
@@ -3272,7 +3268,7 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3272
3268
|
});
|
|
3273
3269
|
continue;
|
|
3274
3270
|
}
|
|
3275
|
-
if (
|
|
3271
|
+
if (At(h)) {
|
|
3276
3272
|
var p = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3277
3273
|
a.push({
|
|
3278
3274
|
type: O.literal,
|
|
@@ -3280,18 +3276,18 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3280
3276
|
});
|
|
3281
3277
|
continue;
|
|
3282
3278
|
}
|
|
3283
|
-
if (
|
|
3284
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3279
|
+
if (Ct(h)) {
|
|
3280
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3285
3281
|
p && p.scale && (l = l * (p.scale || 1)), a.push({
|
|
3286
3282
|
type: O.literal,
|
|
3287
3283
|
value: r.getNumberFormat(t, p).format(l)
|
|
3288
3284
|
});
|
|
3289
3285
|
continue;
|
|
3290
3286
|
}
|
|
3291
|
-
if (
|
|
3287
|
+
if (wt(h)) {
|
|
3292
3288
|
var d = h.children, g = h.value, x = i[g];
|
|
3293
|
-
if (!
|
|
3294
|
-
throw new
|
|
3289
|
+
if (!En(x))
|
|
3290
|
+
throw new bn(g, "function", o);
|
|
3295
3291
|
var m = ge(d, t, r, n, i, s), C = x(m.map(function(w) {
|
|
3296
3292
|
return w.value;
|
|
3297
3293
|
}));
|
|
@@ -3302,14 +3298,14 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3302
3298
|
};
|
|
3303
3299
|
}));
|
|
3304
3300
|
}
|
|
3305
|
-
if (
|
|
3301
|
+
if (St(h)) {
|
|
3306
3302
|
var A = h.options[l] || h.options.other;
|
|
3307
3303
|
if (!A)
|
|
3308
|
-
throw new
|
|
3304
|
+
throw new nt(h.value, l, Object.keys(h.options), o);
|
|
3309
3305
|
a.push.apply(a, ge(A.value, t, r, n, i));
|
|
3310
3306
|
continue;
|
|
3311
3307
|
}
|
|
3312
|
-
if (
|
|
3308
|
+
if (Bt(h)) {
|
|
3313
3309
|
var A = h.options["=".concat(l)];
|
|
3314
3310
|
if (!A) {
|
|
3315
3311
|
if (!Intl.PluralRules)
|
|
@@ -3320,21 +3316,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3320
3316
|
A = h.options[L] || h.options.other;
|
|
3321
3317
|
}
|
|
3322
3318
|
if (!A)
|
|
3323
|
-
throw new
|
|
3319
|
+
throw new nt(h.value, l, Object.keys(h.options), o);
|
|
3324
3320
|
a.push.apply(a, ge(A.value, t, r, n, i, l - (h.offset || 0)));
|
|
3325
3321
|
continue;
|
|
3326
3322
|
}
|
|
3327
3323
|
}
|
|
3328
|
-
return
|
|
3324
|
+
return _n(a);
|
|
3329
3325
|
}
|
|
3330
|
-
function
|
|
3326
|
+
function xn(e, t) {
|
|
3331
3327
|
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3332
3328
|
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3333
3329
|
}, {})) : e;
|
|
3334
3330
|
}
|
|
3335
|
-
function
|
|
3331
|
+
function vn(e, t) {
|
|
3336
3332
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3337
|
-
return r[n] =
|
|
3333
|
+
return r[n] = xn(e[n], t[n]), r;
|
|
3338
3334
|
}, E({}, e)) : e;
|
|
3339
3335
|
}
|
|
3340
3336
|
function Be(e) {
|
|
@@ -3351,7 +3347,7 @@ function Be(e) {
|
|
|
3351
3347
|
}
|
|
3352
3348
|
};
|
|
3353
3349
|
}
|
|
3354
|
-
function
|
|
3350
|
+
function Tn(e) {
|
|
3355
3351
|
return e === void 0 && (e = {
|
|
3356
3352
|
number: {},
|
|
3357
3353
|
dateTime: {},
|
|
@@ -3383,7 +3379,7 @@ function Cn(e) {
|
|
|
3383
3379
|
})
|
|
3384
3380
|
};
|
|
3385
3381
|
}
|
|
3386
|
-
var
|
|
3382
|
+
var Cn = (
|
|
3387
3383
|
/** @class */
|
|
3388
3384
|
function() {
|
|
3389
3385
|
function e(t, r, n, i) {
|
|
@@ -3415,13 +3411,13 @@ var Hn = (
|
|
|
3415
3411
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3416
3412
|
var o = i || {};
|
|
3417
3413
|
o.formatters;
|
|
3418
|
-
var a =
|
|
3414
|
+
var a = Nr(o, ["formatters"]);
|
|
3419
3415
|
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
3420
3416
|
} else
|
|
3421
3417
|
this.ast = t;
|
|
3422
3418
|
if (!Array.isArray(this.ast))
|
|
3423
3419
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3424
|
-
this.formats =
|
|
3420
|
+
this.formats = vn(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
|
|
3425
3421
|
}
|
|
3426
3422
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3427
3423
|
get: function() {
|
|
@@ -3434,7 +3430,7 @@ var Hn = (
|
|
|
3434
3430
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3435
3431
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3436
3432
|
}
|
|
3437
|
-
}, e.__parse =
|
|
3433
|
+
}, e.__parse = pn, e.formats = {
|
|
3438
3434
|
number: {
|
|
3439
3435
|
integer: {
|
|
3440
3436
|
maximumFractionDigits: 0
|
|
@@ -3495,7 +3491,7 @@ var Hn = (
|
|
|
3495
3491
|
}, e;
|
|
3496
3492
|
}()
|
|
3497
3493
|
);
|
|
3498
|
-
function
|
|
3494
|
+
function Hn(e, t) {
|
|
3499
3495
|
if (t == null)
|
|
3500
3496
|
return;
|
|
3501
3497
|
if (t in e)
|
|
@@ -3516,60 +3512,60 @@ function An(e, t) {
|
|
|
3516
3512
|
n = void 0;
|
|
3517
3513
|
return n;
|
|
3518
3514
|
}
|
|
3519
|
-
const G = {},
|
|
3515
|
+
const G = {}, An = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ut = (e, t) => {
|
|
3520
3516
|
if (t == null)
|
|
3521
3517
|
return;
|
|
3522
3518
|
if (t in G && e in G[t])
|
|
3523
3519
|
return G[t][e];
|
|
3524
3520
|
const r = xe(t);
|
|
3525
3521
|
for (let n = 0; n < r.length; n++) {
|
|
3526
|
-
const i = r[n], s =
|
|
3522
|
+
const i = r[n], s = Bn(i, e);
|
|
3527
3523
|
if (s)
|
|
3528
|
-
return
|
|
3524
|
+
return An(e, t, s);
|
|
3529
3525
|
}
|
|
3530
3526
|
};
|
|
3531
|
-
let
|
|
3527
|
+
let ke;
|
|
3532
3528
|
const ue = ye({});
|
|
3533
|
-
function
|
|
3534
|
-
return
|
|
3529
|
+
function Sn(e) {
|
|
3530
|
+
return ke[e] || null;
|
|
3535
3531
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e in
|
|
3532
|
+
function Gt(e) {
|
|
3533
|
+
return e in ke;
|
|
3538
3534
|
}
|
|
3539
|
-
function
|
|
3540
|
-
if (!
|
|
3535
|
+
function Bn(e, t) {
|
|
3536
|
+
if (!Gt(e))
|
|
3541
3537
|
return null;
|
|
3542
|
-
const r =
|
|
3543
|
-
return
|
|
3538
|
+
const r = Sn(e);
|
|
3539
|
+
return Hn(r, t);
|
|
3544
3540
|
}
|
|
3545
|
-
function
|
|
3541
|
+
function wn(e) {
|
|
3546
3542
|
if (e == null)
|
|
3547
3543
|
return;
|
|
3548
3544
|
const t = xe(e);
|
|
3549
3545
|
for (let r = 0; r < t.length; r++) {
|
|
3550
3546
|
const n = t[r];
|
|
3551
|
-
if (
|
|
3547
|
+
if (Gt(n))
|
|
3552
3548
|
return n;
|
|
3553
3549
|
}
|
|
3554
3550
|
}
|
|
3555
|
-
function
|
|
3556
|
-
delete G[e], ue.update((r) => (r[e] =
|
|
3551
|
+
function Dt(e, ...t) {
|
|
3552
|
+
delete G[e], ue.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
|
|
3557
3553
|
}
|
|
3558
3554
|
K(
|
|
3559
3555
|
[ue],
|
|
3560
3556
|
([e]) => Object.keys(e)
|
|
3561
3557
|
);
|
|
3562
|
-
ue.subscribe((e) =>
|
|
3558
|
+
ue.subscribe((e) => ke = e);
|
|
3563
3559
|
const me = {};
|
|
3564
|
-
function
|
|
3560
|
+
function On(e, t) {
|
|
3565
3561
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3566
3562
|
}
|
|
3567
|
-
function
|
|
3563
|
+
function Ft(e) {
|
|
3568
3564
|
return me[e];
|
|
3569
3565
|
}
|
|
3570
|
-
function
|
|
3566
|
+
function Pn(e) {
|
|
3571
3567
|
return xe(e).map((t) => {
|
|
3572
|
-
const r =
|
|
3568
|
+
const r = Ft(t);
|
|
3573
3569
|
return [t, r ? [...r] : []];
|
|
3574
3570
|
}).filter(([, t]) => t.length > 0);
|
|
3575
3571
|
}
|
|
@@ -3577,31 +3573,31 @@ function De(e) {
|
|
|
3577
3573
|
return e == null ? !1 : xe(e).some(
|
|
3578
3574
|
(t) => {
|
|
3579
3575
|
var r;
|
|
3580
|
-
return (r =
|
|
3576
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3581
3577
|
}
|
|
3582
3578
|
);
|
|
3583
3579
|
}
|
|
3584
|
-
function
|
|
3580
|
+
function Nn(e, t) {
|
|
3585
3581
|
return Promise.all(
|
|
3586
|
-
t.map((n) => (
|
|
3587
|
-
).then((n) =>
|
|
3582
|
+
t.map((n) => (On(e, n), n().then((i) => i.default || i)))
|
|
3583
|
+
).then((n) => Dt(e, ...n));
|
|
3588
3584
|
}
|
|
3589
3585
|
const re = {};
|
|
3590
|
-
function
|
|
3586
|
+
function jt(e) {
|
|
3591
3587
|
if (!De(e))
|
|
3592
3588
|
return e in re ? re[e] : Promise.resolve();
|
|
3593
|
-
const t =
|
|
3589
|
+
const t = Pn(e);
|
|
3594
3590
|
return re[e] = Promise.all(
|
|
3595
3591
|
t.map(
|
|
3596
|
-
([r, n]) =>
|
|
3592
|
+
([r, n]) => Nn(r, n)
|
|
3597
3593
|
)
|
|
3598
3594
|
).then(() => {
|
|
3599
3595
|
if (De(e))
|
|
3600
|
-
return
|
|
3596
|
+
return jt(e);
|
|
3601
3597
|
delete re[e];
|
|
3602
3598
|
}), re[e];
|
|
3603
3599
|
}
|
|
3604
|
-
const
|
|
3600
|
+
const Ln = {
|
|
3605
3601
|
number: {
|
|
3606
3602
|
scientific: { notation: "scientific" },
|
|
3607
3603
|
engineering: { notation: "engineering" },
|
|
@@ -3630,34 +3626,34 @@ const In = {
|
|
|
3630
3626
|
timeZoneName: "short"
|
|
3631
3627
|
}
|
|
3632
3628
|
}
|
|
3633
|
-
},
|
|
3629
|
+
}, In = {
|
|
3634
3630
|
fallbackLocale: null,
|
|
3635
3631
|
loadingDelay: 200,
|
|
3636
|
-
formats:
|
|
3632
|
+
formats: Ln,
|
|
3637
3633
|
warnOnMissingMessages: !0,
|
|
3638
3634
|
handleMissingMessage: void 0,
|
|
3639
3635
|
ignoreTag: !0
|
|
3640
|
-
},
|
|
3636
|
+
}, Mn = In;
|
|
3641
3637
|
function Y() {
|
|
3642
|
-
return
|
|
3638
|
+
return Mn;
|
|
3643
3639
|
}
|
|
3644
3640
|
const we = ye(!1);
|
|
3645
|
-
var
|
|
3646
|
-
for (var r in t)
|
|
3647
|
-
|
|
3648
|
-
if (
|
|
3649
|
-
for (var r of
|
|
3650
|
-
|
|
3641
|
+
var $n = Object.defineProperty, Rn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3642
|
+
for (var r in t || (t = {}))
|
|
3643
|
+
Gn.call(t, r) && st(e, r, t[r]);
|
|
3644
|
+
if (it)
|
|
3645
|
+
for (var r of it(t))
|
|
3646
|
+
Dn.call(t, r) && st(e, r, t[r]);
|
|
3651
3647
|
return e;
|
|
3652
|
-
},
|
|
3648
|
+
}, jn = (e, t) => Rn(e, Un(t));
|
|
3653
3649
|
let Fe;
|
|
3654
3650
|
const pe = ye(null);
|
|
3655
|
-
function
|
|
3651
|
+
function ot(e) {
|
|
3656
3652
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3657
3653
|
}
|
|
3658
3654
|
function xe(e, t = Y().fallbackLocale) {
|
|
3659
|
-
const r =
|
|
3660
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3655
|
+
const r = ot(e);
|
|
3656
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
|
3661
3657
|
}
|
|
3662
3658
|
function V() {
|
|
3663
3659
|
return Fe ?? void 0;
|
|
@@ -3665,22 +3661,22 @@ function V() {
|
|
|
3665
3661
|
pe.subscribe((e) => {
|
|
3666
3662
|
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3667
3663
|
});
|
|
3668
|
-
const
|
|
3669
|
-
if (e &&
|
|
3664
|
+
const kn = (e) => {
|
|
3665
|
+
if (e && wn(e) && De(e)) {
|
|
3670
3666
|
const { loadingDelay: t } = Y();
|
|
3671
3667
|
let r;
|
|
3672
3668
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3673
3669
|
() => we.set(!0),
|
|
3674
3670
|
t
|
|
3675
|
-
) : we.set(!0),
|
|
3671
|
+
) : we.set(!0), jt(e).then(() => {
|
|
3676
3672
|
pe.set(e);
|
|
3677
3673
|
}).finally(() => {
|
|
3678
3674
|
clearTimeout(r), we.set(!1);
|
|
3679
3675
|
});
|
|
3680
3676
|
}
|
|
3681
3677
|
return pe.set(e);
|
|
3682
|
-
}, ee =
|
|
3683
|
-
set:
|
|
3678
|
+
}, ee = jn(Fn({}, pe), {
|
|
3679
|
+
set: kn
|
|
3684
3680
|
}), ve = (e) => {
|
|
3685
3681
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3686
3682
|
return (n) => {
|
|
@@ -3688,20 +3684,20 @@ const Vn = (e) => {
|
|
|
3688
3684
|
return i in t ? t[i] : t[i] = e(n);
|
|
3689
3685
|
};
|
|
3690
3686
|
};
|
|
3691
|
-
var
|
|
3687
|
+
var Vn = Object.defineProperty, be = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3692
3688
|
for (var r in t || (t = {}))
|
|
3693
|
-
|
|
3689
|
+
kt.call(t, r) && at(e, r, t[r]);
|
|
3694
3690
|
if (be)
|
|
3695
3691
|
for (var r of be(t))
|
|
3696
|
-
|
|
3692
|
+
Vt.call(t, r) && at(e, r, t[r]);
|
|
3697
3693
|
return e;
|
|
3698
3694
|
}, te = (e, t) => {
|
|
3699
3695
|
var r = {};
|
|
3700
3696
|
for (var n in e)
|
|
3701
|
-
|
|
3697
|
+
kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3702
3698
|
if (e != null && be)
|
|
3703
3699
|
for (var n of be(e))
|
|
3704
|
-
t.indexOf(n) < 0 &&
|
|
3700
|
+
t.indexOf(n) < 0 && Vt.call(e, n) && (r[n] = e[n]);
|
|
3705
3701
|
return r;
|
|
3706
3702
|
};
|
|
3707
3703
|
const oe = (e, t) => {
|
|
@@ -3709,21 +3705,21 @@ const oe = (e, t) => {
|
|
|
3709
3705
|
if (e in r && t in r[e])
|
|
3710
3706
|
return r[e][t];
|
|
3711
3707
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3712
|
-
},
|
|
3708
|
+
}, Xn = ve(
|
|
3713
3709
|
(e) => {
|
|
3714
3710
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3715
3711
|
if (r == null)
|
|
3716
3712
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3717
3713
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3718
3714
|
}
|
|
3719
|
-
),
|
|
3715
|
+
), zn = ve(
|
|
3720
3716
|
(e) => {
|
|
3721
3717
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3722
3718
|
if (r == null)
|
|
3723
3719
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3724
3720
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3725
3721
|
}
|
|
3726
|
-
),
|
|
3722
|
+
), Wn = ve(
|
|
3727
3723
|
(e) => {
|
|
3728
3724
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3729
3725
|
if (r == null)
|
|
@@ -3732,33 +3728,33 @@ const oe = (e, t) => {
|
|
|
3732
3728
|
);
|
|
3733
3729
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3734
3730
|
}
|
|
3735
|
-
),
|
|
3731
|
+
), Zn = (e = {}) => {
|
|
3736
3732
|
var t = e, {
|
|
3737
3733
|
locale: r = V()
|
|
3738
3734
|
} = t, n = te(t, [
|
|
3739
3735
|
"locale"
|
|
3740
3736
|
]);
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3737
|
+
return Xn(Ve({ locale: r }, n));
|
|
3738
|
+
}, Qn = (e = {}) => {
|
|
3743
3739
|
var t = e, {
|
|
3744
3740
|
locale: r = V()
|
|
3745
3741
|
} = t, n = te(t, [
|
|
3746
3742
|
"locale"
|
|
3747
3743
|
]);
|
|
3748
|
-
return
|
|
3749
|
-
},
|
|
3744
|
+
return zn(Ve({ locale: r }, n));
|
|
3745
|
+
}, qn = (e = {}) => {
|
|
3750
3746
|
var t = e, {
|
|
3751
3747
|
locale: r = V()
|
|
3752
3748
|
} = t, n = te(t, [
|
|
3753
3749
|
"locale"
|
|
3754
3750
|
]);
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3751
|
+
return Wn(Ve({ locale: r }, n));
|
|
3752
|
+
}, Jn = ve(
|
|
3757
3753
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3758
|
-
(e, t = V()) => new
|
|
3754
|
+
(e, t = V()) => new Cn(e, t, Y().formats, {
|
|
3759
3755
|
ignoreTag: Y().ignoreTag
|
|
3760
3756
|
})
|
|
3761
|
-
),
|
|
3757
|
+
), Yn = (e, t = {}) => {
|
|
3762
3758
|
var r, n, i, s;
|
|
3763
3759
|
let o = t;
|
|
3764
3760
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3771,7 +3767,7 @@ const oe = (e, t) => {
|
|
|
3771
3767
|
throw new Error(
|
|
3772
3768
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3773
3769
|
);
|
|
3774
|
-
let h =
|
|
3770
|
+
let h = Ut(e, f);
|
|
3775
3771
|
if (!h)
|
|
3776
3772
|
h = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3777
3773
|
else if (typeof h != "string")
|
|
@@ -3782,7 +3778,7 @@ const oe = (e, t) => {
|
|
|
3782
3778
|
return h;
|
|
3783
3779
|
let c = h;
|
|
3784
3780
|
try {
|
|
3785
|
-
c =
|
|
3781
|
+
c = Jn(h, f).format(a);
|
|
3786
3782
|
} catch (l) {
|
|
3787
3783
|
l instanceof Error && console.warn(
|
|
3788
3784
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3790,18 +3786,18 @@ const oe = (e, t) => {
|
|
|
3790
3786
|
);
|
|
3791
3787
|
}
|
|
3792
3788
|
return c;
|
|
3793
|
-
},
|
|
3789
|
+
}, Kn = (e, t) => qn(t).format(e), ei = (e, t) => Qn(t).format(e), ti = (e, t) => Zn(t).format(e), ri = (e, t = V()) => Ut(e, t), ni = K([ee, ue], () => Yn);
|
|
3790
|
+
K([ee], () => Kn);
|
|
3794
3791
|
K([ee], () => ei);
|
|
3795
3792
|
K([ee], () => ti);
|
|
3796
|
-
K([ee], () => ri);
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
Ft(e, t);
|
|
3793
|
+
K([ee, ue], () => ri);
|
|
3794
|
+
function ut(e, t) {
|
|
3795
|
+
Dt(e, t);
|
|
3800
3796
|
}
|
|
3801
|
-
function
|
|
3797
|
+
function ii(e) {
|
|
3802
3798
|
ee.set(e);
|
|
3803
3799
|
}
|
|
3804
|
-
const
|
|
3800
|
+
const ht = {
|
|
3805
3801
|
en: {
|
|
3806
3802
|
topCategories: "Top Categories",
|
|
3807
3803
|
otherCategories: "Other Categories",
|
|
@@ -3911,18 +3907,18 @@ const lt = {
|
|
|
3911
3907
|
games: "games"
|
|
3912
3908
|
}
|
|
3913
3909
|
};
|
|
3914
|
-
function
|
|
3915
|
-
|
|
3910
|
+
function si(e) {
|
|
3911
|
+
Jt(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3916
3912
|
}
|
|
3917
|
-
function
|
|
3913
|
+
function lt(e, t, r) {
|
|
3918
3914
|
const n = e.slice();
|
|
3919
3915
|
return n[24] = t[r], n;
|
|
3920
3916
|
}
|
|
3921
|
-
function
|
|
3917
|
+
function ft(e, t, r) {
|
|
3922
3918
|
const n = e.slice();
|
|
3923
3919
|
return n[24] = t[r], n;
|
|
3924
3920
|
}
|
|
3925
|
-
function
|
|
3921
|
+
function oi(e) {
|
|
3926
3922
|
let t, r, n = (
|
|
3927
3923
|
/*$_*/
|
|
3928
3924
|
e[5]("topCategories") + ""
|
|
@@ -3934,13 +3930,13 @@ function ai(e) {
|
|
|
3934
3930
|
e[3]
|
|
3935
3931
|
), l = [];
|
|
3936
3932
|
for (let g = 0; g < c.length; g += 1)
|
|
3937
|
-
l[g] =
|
|
3933
|
+
l[g] = ct(ft(e, c, g));
|
|
3938
3934
|
let p = le(
|
|
3939
3935
|
/*otherCategories*/
|
|
3940
3936
|
e[4]
|
|
3941
3937
|
), d = [];
|
|
3942
3938
|
for (let g = 0; g < p.length; g += 1)
|
|
3943
|
-
d[g] =
|
|
3939
|
+
d[g] = gt(lt(e, p, g));
|
|
3944
3940
|
return {
|
|
3945
3941
|
c() {
|
|
3946
3942
|
t = B("div"), r = B("h4"), i = R(n), s = $();
|
|
@@ -3970,8 +3966,8 @@ function ai(e) {
|
|
|
3970
3966
|
);
|
|
3971
3967
|
let m;
|
|
3972
3968
|
for (m = 0; m < c.length; m += 1) {
|
|
3973
|
-
const C =
|
|
3974
|
-
l[m] ? l[m].p(C, x) : (l[m] =
|
|
3969
|
+
const C = ft(g, c, m);
|
|
3970
|
+
l[m] ? l[m].p(C, x) : (l[m] = ct(C), l[m].c(), l[m].m(t, o));
|
|
3975
3971
|
}
|
|
3976
3972
|
for (; m < l.length; m += 1)
|
|
3977
3973
|
l[m].d(1);
|
|
@@ -3987,8 +3983,8 @@ function ai(e) {
|
|
|
3987
3983
|
);
|
|
3988
3984
|
let m;
|
|
3989
3985
|
for (m = 0; m < p.length; m += 1) {
|
|
3990
|
-
const C =
|
|
3991
|
-
d[m] ? d[m].p(C, x) : (d[m] =
|
|
3986
|
+
const C = lt(g, p, m);
|
|
3987
|
+
d[m] ? d[m].p(C, x) : (d[m] = gt(C), d[m].c(), d[m].m(t, null));
|
|
3992
3988
|
}
|
|
3993
3989
|
for (; m < d.length; m += 1)
|
|
3994
3990
|
d[m].d(1);
|
|
@@ -3996,11 +3992,11 @@ function ai(e) {
|
|
|
3996
3992
|
}
|
|
3997
3993
|
},
|
|
3998
3994
|
d(g) {
|
|
3999
|
-
g && F(t),
|
|
3995
|
+
g && F(t), We(l, g), We(d, g);
|
|
4000
3996
|
}
|
|
4001
3997
|
};
|
|
4002
3998
|
}
|
|
4003
|
-
function
|
|
3999
|
+
function ai(e) {
|
|
4004
4000
|
let t;
|
|
4005
4001
|
return {
|
|
4006
4002
|
c() {
|
|
@@ -4015,7 +4011,7 @@ function ui(e) {
|
|
|
4015
4011
|
}
|
|
4016
4012
|
};
|
|
4017
4013
|
}
|
|
4018
|
-
function
|
|
4014
|
+
function ct(e) {
|
|
4019
4015
|
let t, r, n, i, s, o, a, f = (
|
|
4020
4016
|
/*category*/
|
|
4021
4017
|
e[24].name + ""
|
|
@@ -4044,7 +4040,7 @@ function gt(e) {
|
|
|
4044
4040
|
e[24].id ? "Active" : ""));
|
|
4045
4041
|
},
|
|
4046
4042
|
m(w, S) {
|
|
4047
|
-
k(w, t, S), v(t, r), v(t, s), v(t, o), v(o, a), v(a, u), v(o, h), v(o, c), v(c, p), v(c, d), v(c, x), C || (A =
|
|
4043
|
+
k(w, t, S), v(t, r), v(t, s), v(t, o), v(o, a), v(a, u), v(o, h), v(o, c), v(c, p), v(c, d), v(c, x), C || (A = bt(t, "click", L), C = !0);
|
|
4048
4044
|
},
|
|
4049
4045
|
p(w, S) {
|
|
4050
4046
|
e = w, S & /*topCategories*/
|
|
@@ -4067,7 +4063,7 @@ function gt(e) {
|
|
|
4067
4063
|
}
|
|
4068
4064
|
};
|
|
4069
4065
|
}
|
|
4070
|
-
function
|
|
4066
|
+
function gt(e) {
|
|
4071
4067
|
let t, r, n, i, s, o, a, f = (
|
|
4072
4068
|
/*category*/
|
|
4073
4069
|
e[24].name + ""
|
|
@@ -4096,7 +4092,7 @@ function mt(e) {
|
|
|
4096
4092
|
e[24].id ? "Active" : ""));
|
|
4097
4093
|
},
|
|
4098
4094
|
m(S, P) {
|
|
4099
|
-
k(S, t, P), v(t, r), v(t, s), v(t, o), v(o, a), v(a, u), v(o, h), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), A || (L =
|
|
4095
|
+
k(S, t, P), v(t, r), v(t, s), v(t, o), v(o, a), v(a, u), v(o, h), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), A || (L = bt(t, "click", w), A = !0);
|
|
4100
4096
|
},
|
|
4101
4097
|
p(S, P) {
|
|
4102
4098
|
e = S, P & /*otherCategories*/
|
|
@@ -4119,12 +4115,12 @@ function mt(e) {
|
|
|
4119
4115
|
}
|
|
4120
4116
|
};
|
|
4121
4117
|
}
|
|
4122
|
-
function
|
|
4118
|
+
function ui(e) {
|
|
4123
4119
|
let t;
|
|
4124
4120
|
function r(s, o) {
|
|
4125
4121
|
return (
|
|
4126
4122
|
/*isLoading*/
|
|
4127
|
-
s[2] ?
|
|
4123
|
+
s[2] ? ai : oi
|
|
4128
4124
|
);
|
|
4129
4125
|
}
|
|
4130
4126
|
let n = r(e), i = n(e);
|
|
@@ -4145,19 +4141,19 @@ function hi(e) {
|
|
|
4145
4141
|
}
|
|
4146
4142
|
};
|
|
4147
4143
|
}
|
|
4148
|
-
function
|
|
4144
|
+
function hi(e, t, r) {
|
|
4149
4145
|
let n;
|
|
4150
|
-
|
|
4146
|
+
qt(e, ni, (b) => r(5, n = b));
|
|
4151
4147
|
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: a = "" } = t, { excludedflags: f = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, l, p = !1;
|
|
4152
4148
|
const d = [];
|
|
4153
4149
|
let g = [], x = [];
|
|
4154
|
-
Object.keys(
|
|
4155
|
-
|
|
4150
|
+
Object.keys(ht).forEach((b) => {
|
|
4151
|
+
ut(b, ht[b]);
|
|
4156
4152
|
});
|
|
4157
4153
|
const m = () => {
|
|
4158
4154
|
fetch(c).then((N) => N.json()).then((N) => {
|
|
4159
4155
|
Object.keys(N).forEach((U) => {
|
|
4160
|
-
|
|
4156
|
+
ut(U, N[U]);
|
|
4161
4157
|
});
|
|
4162
4158
|
}).catch((N) => {
|
|
4163
4159
|
console.log(N);
|
|
@@ -4169,13 +4165,13 @@ function li(e, t, r) {
|
|
|
4169
4165
|
r(2, p = !1);
|
|
4170
4166
|
const U = f.split(",").map((j) => j.trim());
|
|
4171
4167
|
d.push(...N.items);
|
|
4172
|
-
const
|
|
4173
|
-
r(3, g =
|
|
4168
|
+
const Xe = d.filter((j) => !U.some((Zt) => j.flags?.indexOf(Zt) >= 0));
|
|
4169
|
+
r(3, g = Xe.filter((j) => j.isTopCategory === !0)), r(4, x = Xe.filter((j) => j.isTopCategory === !1));
|
|
4174
4170
|
});
|
|
4175
4171
|
}, A = (b) => {
|
|
4176
4172
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4177
4173
|
}, L = () => {
|
|
4178
|
-
|
|
4174
|
+
ii(o);
|
|
4179
4175
|
}, w = () => {
|
|
4180
4176
|
let b = document.createElement("style");
|
|
4181
4177
|
b.innerHTML = u, l.appendChild(b);
|
|
@@ -4193,8 +4189,8 @@ function li(e, t, r) {
|
|
|
4193
4189
|
500
|
|
4194
4190
|
);
|
|
4195
4191
|
});
|
|
4196
|
-
}, P = (b) => A(b.id),
|
|
4197
|
-
function
|
|
4192
|
+
}, P = (b) => A(b.id), zt = (b) => A(b.id);
|
|
4193
|
+
function Wt(b) {
|
|
4198
4194
|
Oe[b ? "unshift" : "push"](() => {
|
|
4199
4195
|
l = b, r(1, l);
|
|
4200
4196
|
});
|
|
@@ -4224,18 +4220,18 @@ function li(e, t, r) {
|
|
|
4224
4220
|
h,
|
|
4225
4221
|
c,
|
|
4226
4222
|
P,
|
|
4227
|
-
|
|
4228
|
-
|
|
4223
|
+
zt,
|
|
4224
|
+
Wt
|
|
4229
4225
|
];
|
|
4230
4226
|
}
|
|
4231
|
-
class
|
|
4227
|
+
class Xt extends gr {
|
|
4232
4228
|
constructor(t) {
|
|
4233
|
-
super(),
|
|
4229
|
+
super(), fr(
|
|
4234
4230
|
this,
|
|
4235
4231
|
t,
|
|
4236
|
-
li,
|
|
4237
4232
|
hi,
|
|
4238
|
-
|
|
4233
|
+
ui,
|
|
4234
|
+
dt,
|
|
4239
4235
|
{
|
|
4240
4236
|
endpoint: 7,
|
|
4241
4237
|
datasource: 8,
|
|
@@ -4246,7 +4242,7 @@ class zt extends mr {
|
|
|
4246
4242
|
clientstylingurl: 12,
|
|
4247
4243
|
translationurl: 13
|
|
4248
4244
|
},
|
|
4249
|
-
|
|
4245
|
+
si
|
|
4250
4246
|
);
|
|
4251
4247
|
}
|
|
4252
4248
|
get endpoint() {
|
|
@@ -4298,48 +4294,48 @@ class zt extends mr {
|
|
|
4298
4294
|
this.$$set({ translationurl: t }), M();
|
|
4299
4295
|
}
|
|
4300
4296
|
}
|
|
4301
|
-
|
|
4302
|
-
const
|
|
4297
|
+
cr(Xt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4298
|
+
const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4303
4299
|
__proto__: null,
|
|
4304
|
-
default:
|
|
4300
|
+
default: Xt
|
|
4305
4301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4306
4302
|
export {
|
|
4307
4303
|
ee as $,
|
|
4308
|
-
|
|
4309
|
-
|
|
4304
|
+
di as A,
|
|
4305
|
+
li as B,
|
|
4310
4306
|
le as C,
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4307
|
+
We as D,
|
|
4308
|
+
pi as E,
|
|
4309
|
+
er as F,
|
|
4310
|
+
ci as G,
|
|
4311
|
+
mi as H,
|
|
4312
|
+
_i as I,
|
|
4313
|
+
gr as S,
|
|
4314
|
+
bi as _,
|
|
4315
|
+
Dt as a,
|
|
4316
|
+
Jt as b,
|
|
4317
|
+
D as c,
|
|
4318
|
+
F as d,
|
|
4319
|
+
H as e,
|
|
4324
4320
|
M as f,
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4321
|
+
fi as g,
|
|
4322
|
+
k as h,
|
|
4323
|
+
fr as i,
|
|
4324
|
+
v as j,
|
|
4325
|
+
B as k,
|
|
4326
|
+
bt as l,
|
|
4327
|
+
$ as m,
|
|
4332
4328
|
I as n,
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4329
|
+
qt as o,
|
|
4330
|
+
Oe as p,
|
|
4331
|
+
cr as q,
|
|
4336
4332
|
ae as r,
|
|
4337
|
-
|
|
4333
|
+
dt as s,
|
|
4338
4334
|
R as t,
|
|
4339
|
-
|
|
4335
|
+
ni as u,
|
|
4340
4336
|
Ce as v,
|
|
4341
|
-
|
|
4337
|
+
yi as w,
|
|
4342
4338
|
_e as x,
|
|
4343
4339
|
de as y,
|
|
4344
|
-
|
|
4340
|
+
gi as z
|
|
4345
4341
|
};
|