@everymatrix/casino-navigation-search 1.86.3 → 1.86.5
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-eU_vuYrk.js → CasinoCategories-BIfo87kb.js} +653 -685
- package/components/CasinoCategories-B_XS4BnL.cjs +3 -0
- package/components/{CasinoCategories-DrneFv8D.js → CasinoCategories-EyDPHbRr.js} +578 -610
- package/components/{CasinoCategoriesProviders-BEOBNtWI.js → CasinoCategoriesProviders-C6jaH_bi.js} +28 -28
- package/components/{CasinoCategoriesProviders-ChK7lSMw.cjs → CasinoCategoriesProviders-DwzgJQIC.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-KQAYMxbe.js → CasinoCategoriesProviders-wiBurw3I.js} +28 -28
- package/components/{CasinoGameThumbnail-BpFYjbGz.js → CasinoGameThumbnail-COVYIHKr.js} +1435 -1386
- package/components/CasinoGameThumbnail-DJvF4m00.cjs +62 -0
- package/components/{CasinoGameThumbnail-d1EHJYWV.js → CasinoGameThumbnail-UFeFBP15.js} +1431 -1382
- package/components/{CasinoNavigationSearch-sk-soLfX.js → CasinoNavigationSearch-7vC0vX_R.js} +16 -16
- package/components/{CasinoNavigationSearch-CBfMLDuj.js → CasinoNavigationSearch-DZnDLNrA.js} +14 -14
- package/components/{CasinoNavigationSearch-Di3x_0J5.cjs → CasinoNavigationSearch-DdLipJ-m.cjs} +1 -1
- package/components/{CasinoProviders-BNFTsjmP.js → CasinoProviders-CNXaeFol.js} +68 -68
- package/components/{CasinoProviders-rtKPIVYL.cjs → CasinoProviders-CXfeouVv.cjs} +1 -1
- package/components/{CasinoProviders-CuqUP0xe.js → CasinoProviders-unwzg6FV.js} +68 -68
- package/components/{CasinoSearch-CdzsYxkr.js → CasinoSearch-4z15LzHk.js} +74 -74
- package/components/{CasinoSearch-Bo_XYfW4.js → CasinoSearch-Axyir5wR.js} +72 -72
- package/components/{CasinoSearch-Bevf78kE.cjs → CasinoSearch-DVaxD--r.cjs} +1 -1
- package/es2015/casino-navigation-search.cjs +1 -1
- package/es2015/casino-navigation-search.js +1 -1
- package/esnext/casino-navigation-search.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CasinoCategories-CalP-o1I.cjs +0 -16
- package/components/CasinoGameThumbnail-DwJ4MiwE.cjs +0 -49
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
4
|
function bt(e) {
|
|
@@ -7,20 +7,20 @@ function bt(e) {
|
|
|
7
7
|
function Qe() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function ue(e) {
|
|
11
11
|
e.forEach(bt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Xe(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
16
|
function _t(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return e === t ? !0 : (
|
|
19
|
+
let fe;
|
|
20
|
+
function be(e, t) {
|
|
21
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Jt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
26
|
function yt(e, ...t) {
|
|
@@ -41,7 +41,7 @@ function v(e, t) {
|
|
|
41
41
|
function Kt(e, t, r) {
|
|
42
42
|
const n = er(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
44
|
+
const i = A("style");
|
|
45
45
|
i.id = t, i.textContent = r, tr(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -62,30 +62,30 @@ function tr(e, t) {
|
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function V(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function j(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function qe(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function A(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
78
|
function rr(e) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function G(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function U() {
|
|
85
|
+
return G(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function bi() {
|
|
88
|
+
return G("");
|
|
89
89
|
}
|
|
90
90
|
function Et(e, t, r, n) {
|
|
91
91
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -100,17 +100,17 @@ function $(e, t, r) {
|
|
|
100
100
|
function nr(e) {
|
|
101
101
|
return Array.from(e.childNodes);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function F(e, t) {
|
|
104
104
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
105
105
|
t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function _i(e, t) {
|
|
108
108
|
e.value = t ?? "";
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function yi(e, t, r) {
|
|
111
111
|
e.classList.toggle(t, !!r);
|
|
112
112
|
}
|
|
113
|
-
class
|
|
113
|
+
class Ei {
|
|
114
114
|
/**
|
|
115
115
|
* @private
|
|
116
116
|
* @default false
|
|
@@ -144,7 +144,7 @@ class yi {
|
|
|
144
144
|
this.e || (this.is_svg ? this.e = rr(
|
|
145
145
|
/** @type {keyof SVGElementTagNameMap} */
|
|
146
146
|
r.nodeName
|
|
147
|
-
) : this.e =
|
|
147
|
+
) : this.e = A(
|
|
148
148
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
149
149
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
150
150
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -165,7 +165,7 @@ class yi {
|
|
|
165
165
|
* @returns {void} */
|
|
166
166
|
i(t) {
|
|
167
167
|
for (let r = 0; r < this.n.length; r += 1)
|
|
168
|
-
|
|
168
|
+
V(this.t, this.n[r], t);
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
* @param {string} html
|
|
@@ -177,7 +177,7 @@ class yi {
|
|
|
177
177
|
/**
|
|
178
178
|
* @returns {void} */
|
|
179
179
|
d() {
|
|
180
|
-
this.n.forEach(
|
|
180
|
+
this.n.forEach(j);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
function ir(e) {
|
|
@@ -189,94 +189,94 @@ function ir(e) {
|
|
|
189
189
|
}
|
|
190
190
|
), t;
|
|
191
191
|
}
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
|
|
192
|
+
let se;
|
|
193
|
+
function ie(e) {
|
|
194
|
+
se = e;
|
|
195
195
|
}
|
|
196
196
|
function sr() {
|
|
197
|
-
if (!
|
|
197
|
+
if (!se)
|
|
198
198
|
throw new Error("Function called outside component initialization");
|
|
199
|
-
return
|
|
199
|
+
return se;
|
|
200
200
|
}
|
|
201
201
|
function or(e) {
|
|
202
202
|
sr().$$.on_mount.push(e);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
let
|
|
206
|
-
const
|
|
207
|
-
let
|
|
208
|
-
function
|
|
209
|
-
|
|
204
|
+
const Z = [], Le = [];
|
|
205
|
+
let Q = [];
|
|
206
|
+
const Je = [], vt = /* @__PURE__ */ Promise.resolve();
|
|
207
|
+
let Ie = !1;
|
|
208
|
+
function xt() {
|
|
209
|
+
Ie || (Ie = !0, vt.then(I));
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
211
|
+
function vi() {
|
|
212
|
+
return xt(), vt;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function Me(e) {
|
|
215
|
+
Q.push(e);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
let
|
|
217
|
+
const Se = /* @__PURE__ */ new Set();
|
|
218
|
+
let z = 0;
|
|
219
219
|
function I() {
|
|
220
|
-
if (
|
|
220
|
+
if (z !== 0)
|
|
221
221
|
return;
|
|
222
|
-
const e =
|
|
222
|
+
const e = se;
|
|
223
223
|
do {
|
|
224
224
|
try {
|
|
225
|
-
for (;
|
|
226
|
-
const t =
|
|
227
|
-
|
|
225
|
+
for (; z < Z.length; ) {
|
|
226
|
+
const t = Z[z];
|
|
227
|
+
z++, ie(t), ar(t.$$);
|
|
228
228
|
}
|
|
229
229
|
} catch (t) {
|
|
230
|
-
throw
|
|
230
|
+
throw Z.length = 0, z = 0, t;
|
|
231
231
|
}
|
|
232
|
-
for (
|
|
233
|
-
|
|
234
|
-
for (let t = 0; t <
|
|
235
|
-
const r =
|
|
236
|
-
|
|
232
|
+
for (ie(null), Z.length = 0, z = 0; Le.length; )
|
|
233
|
+
Le.pop()();
|
|
234
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
235
|
+
const r = Q[t];
|
|
236
|
+
Se.has(r) || (Se.add(r), r());
|
|
237
237
|
}
|
|
238
|
-
|
|
239
|
-
} while (
|
|
240
|
-
for (;
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
Q.length = 0;
|
|
239
|
+
} while (Z.length);
|
|
240
|
+
for (; Je.length; )
|
|
241
|
+
Je.pop()();
|
|
242
|
+
Ie = !1, Se.clear(), ie(e);
|
|
243
243
|
}
|
|
244
244
|
function ar(e) {
|
|
245
245
|
if (e.fragment !== null) {
|
|
246
|
-
e.update(),
|
|
246
|
+
e.update(), ue(e.before_update);
|
|
247
247
|
const t = e.dirty;
|
|
248
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
248
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function ur(e) {
|
|
252
252
|
const t = [], r = [];
|
|
253
|
-
|
|
253
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
254
254
|
}
|
|
255
255
|
const hr = /* @__PURE__ */ new Set();
|
|
256
256
|
function lr(e, t) {
|
|
257
257
|
e && e.i && (hr.delete(e), e.i(t));
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ce(e) {
|
|
260
260
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
261
261
|
}
|
|
262
262
|
function fr(e, t, r) {
|
|
263
263
|
const { fragment: n, after_update: i } = e.$$;
|
|
264
|
-
n && n.m(t, r),
|
|
265
|
-
const s = e.$$.on_mount.map(bt).filter(
|
|
266
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
267
|
-
}), i.forEach(
|
|
264
|
+
n && n.m(t, r), Me(() => {
|
|
265
|
+
const s = e.$$.on_mount.map(bt).filter(Xe);
|
|
266
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
267
|
+
}), i.forEach(Me);
|
|
268
268
|
}
|
|
269
269
|
function cr(e, t) {
|
|
270
270
|
const r = e.$$;
|
|
271
|
-
r.fragment !== null && (ur(r.after_update),
|
|
271
|
+
r.fragment !== null && (ur(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
272
272
|
}
|
|
273
273
|
function gr(e, t) {
|
|
274
|
-
e.$$.dirty[0] === -1 && (
|
|
274
|
+
e.$$.dirty[0] === -1 && (Z.push(e), xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
275
275
|
}
|
|
276
|
-
function mr(e, t, r, n, i, s, o = null,
|
|
277
|
-
const l =
|
|
278
|
-
|
|
279
|
-
const
|
|
276
|
+
function mr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
277
|
+
const l = se;
|
|
278
|
+
ie(e);
|
|
279
|
+
const a = e.$$ = {
|
|
280
280
|
fragment: null,
|
|
281
281
|
ctx: [],
|
|
282
282
|
// state
|
|
@@ -293,24 +293,24 @@ function mr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
293
293
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
294
294
|
// everything else
|
|
295
295
|
callbacks: Qe(),
|
|
296
|
-
dirty:
|
|
296
|
+
dirty: u,
|
|
297
297
|
skip_bound: !1,
|
|
298
298
|
root: t.target || l.$$.root
|
|
299
299
|
};
|
|
300
|
-
o && o(
|
|
300
|
+
o && o(a.root);
|
|
301
301
|
let h = !1;
|
|
302
|
-
if (
|
|
302
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
303
303
|
const d = p.length ? p[0] : f;
|
|
304
|
-
return
|
|
305
|
-
}) : [],
|
|
304
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && gr(e, c)), f;
|
|
305
|
+
}) : [], a.update(), h = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
306
306
|
if (t.hydrate) {
|
|
307
307
|
const c = nr(t.target);
|
|
308
|
-
|
|
308
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
309
309
|
} else
|
|
310
|
-
|
|
310
|
+
a.fragment && a.fragment.c();
|
|
311
311
|
t.intro && lr(e.$$.fragment), fr(e, t.target, t.anchor), I();
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
ie(l);
|
|
314
314
|
}
|
|
315
315
|
let Tt;
|
|
316
316
|
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
@@ -355,17 +355,17 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
355
355
|
let s;
|
|
356
356
|
return {
|
|
357
357
|
c: function() {
|
|
358
|
-
s =
|
|
358
|
+
s = A("slot"), i !== "default" && L(s, "name", i);
|
|
359
359
|
},
|
|
360
360
|
/**
|
|
361
361
|
* @param {HTMLElement} target
|
|
362
362
|
* @param {HTMLElement} [anchor]
|
|
363
363
|
*/
|
|
364
|
-
m: function(l,
|
|
365
|
-
|
|
364
|
+
m: function(l, a) {
|
|
365
|
+
V(l, s, a);
|
|
366
366
|
},
|
|
367
367
|
d: function(l) {
|
|
368
|
-
l &&
|
|
368
|
+
l && j(s);
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
371
|
};
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
377
377
|
i in r && (t[i] = [e(i)]);
|
|
378
378
|
for (const i of this.attributes) {
|
|
379
379
|
const s = this.$$g_p(i.name);
|
|
380
|
-
s in this.$$d || (this.$$d[s] =
|
|
380
|
+
s in this.$$d || (this.$$d[s] = me(s, i.value, this.$$p_d, "toProp"));
|
|
381
381
|
}
|
|
382
382
|
for (const i in this.$$p_d)
|
|
383
383
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -395,7 +395,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
395
395
|
this.$$r = !0;
|
|
396
396
|
for (const i in this.$$p_d)
|
|
397
397
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
398
|
-
const s =
|
|
398
|
+
const s = me(
|
|
399
399
|
i,
|
|
400
400
|
this.$$d[i],
|
|
401
401
|
this.$$p_d,
|
|
@@ -417,7 +417,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
417
417
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
418
418
|
// and setting attributes through setAttribute etc, this is helpful
|
|
419
419
|
attributeChangedCallback(e, t, r) {
|
|
420
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
420
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
421
421
|
}
|
|
422
422
|
disconnectedCallback() {
|
|
423
423
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -430,7 +430,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
430
430
|
) || e;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
function
|
|
433
|
+
function me(e, t, r, n) {
|
|
434
434
|
const i = r[e]?.type;
|
|
435
435
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
436
436
|
return t;
|
|
@@ -466,23 +466,23 @@ function pr(e, t, r, n, i, s) {
|
|
|
466
466
|
}
|
|
467
467
|
static get observedAttributes() {
|
|
468
468
|
return Object.keys(t).map(
|
|
469
|
-
(
|
|
469
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
|
-
return Object.keys(t).forEach((
|
|
474
|
-
Object.defineProperty(o.prototype,
|
|
473
|
+
return Object.keys(t).forEach((u) => {
|
|
474
|
+
Object.defineProperty(o.prototype, u, {
|
|
475
475
|
get() {
|
|
476
|
-
return this.$$c &&
|
|
476
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
477
477
|
},
|
|
478
478
|
set(l) {
|
|
479
|
-
l =
|
|
479
|
+
l = me(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
|
-
}), n.forEach((
|
|
483
|
-
Object.defineProperty(o.prototype,
|
|
482
|
+
}), n.forEach((u) => {
|
|
483
|
+
Object.defineProperty(o.prototype, u, {
|
|
484
484
|
get() {
|
|
485
|
-
return this.$$c?.[
|
|
485
|
+
return this.$$c?.[u];
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}), e.element = /** @type {any} */
|
|
@@ -516,7 +516,7 @@ class dr {
|
|
|
516
516
|
* @returns {() => void}
|
|
517
517
|
*/
|
|
518
518
|
$on(t, r) {
|
|
519
|
-
if (!
|
|
519
|
+
if (!Xe(r))
|
|
520
520
|
return N;
|
|
521
521
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
522
522
|
return n.push(r), () => {
|
|
@@ -529,7 +529,7 @@ class dr {
|
|
|
529
529
|
* @returns {void}
|
|
530
530
|
*/
|
|
531
531
|
$set(t) {
|
|
532
|
-
this.$$set && !
|
|
532
|
+
this.$$set && !Jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
const br = "4";
|
|
@@ -559,58 +559,58 @@ function Er(e, t, r) {
|
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
const
|
|
563
|
-
function
|
|
562
|
+
const W = [];
|
|
563
|
+
function vr(e, t) {
|
|
564
564
|
return {
|
|
565
|
-
subscribe:
|
|
565
|
+
subscribe: ve(e, t).subscribe
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function ve(e, t = N) {
|
|
569
569
|
let r;
|
|
570
570
|
const n = /* @__PURE__ */ new Set();
|
|
571
|
-
function i(
|
|
572
|
-
if (_t(e,
|
|
573
|
-
const l = !
|
|
574
|
-
for (const
|
|
575
|
-
|
|
571
|
+
function i(u) {
|
|
572
|
+
if (_t(e, u) && (e = u, r)) {
|
|
573
|
+
const l = !W.length;
|
|
574
|
+
for (const a of n)
|
|
575
|
+
a[1](), W.push(a, e);
|
|
576
576
|
if (l) {
|
|
577
|
-
for (let
|
|
578
|
-
|
|
579
|
-
|
|
577
|
+
for (let a = 0; a < W.length; a += 2)
|
|
578
|
+
W[a][0](W[a + 1]);
|
|
579
|
+
W.length = 0;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
function s(
|
|
584
|
-
i(
|
|
583
|
+
function s(u) {
|
|
584
|
+
i(u(e));
|
|
585
585
|
}
|
|
586
|
-
function o(
|
|
587
|
-
const
|
|
588
|
-
return n.add(
|
|
589
|
-
n.delete(
|
|
586
|
+
function o(u, l = N) {
|
|
587
|
+
const a = [u, l];
|
|
588
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || N), u(e), () => {
|
|
589
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
return { set: i, update: s, subscribe: o };
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function ee(e, t, r) {
|
|
595
595
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
596
596
|
if (!i.every(Boolean))
|
|
597
597
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
598
598
|
const s = t.length < 2;
|
|
599
|
-
return
|
|
599
|
+
return vr(r, (o, u) => {
|
|
600
600
|
let l = !1;
|
|
601
|
-
const
|
|
601
|
+
const a = [];
|
|
602
602
|
let h = 0, c = N;
|
|
603
603
|
const f = () => {
|
|
604
604
|
if (h)
|
|
605
605
|
return;
|
|
606
606
|
c();
|
|
607
|
-
const d = t(n ?
|
|
608
|
-
s ? o(d) : c =
|
|
607
|
+
const d = t(n ? a[0] : a, o, u);
|
|
608
|
+
s ? o(d) : c = Xe(d) ? d : N;
|
|
609
609
|
}, p = i.map(
|
|
610
610
|
(d, g) => yt(
|
|
611
611
|
d,
|
|
612
|
-
(
|
|
613
|
-
|
|
612
|
+
(E) => {
|
|
613
|
+
a[g] = E, h &= ~(1 << g), l && f();
|
|
614
614
|
},
|
|
615
615
|
() => {
|
|
616
616
|
h |= 1 << g;
|
|
@@ -618,43 +618,43 @@ function K(e, t, r) {
|
|
|
618
618
|
)
|
|
619
619
|
);
|
|
620
620
|
return l = !0, f(), function() {
|
|
621
|
-
|
|
621
|
+
ue(p), c(), l = !1;
|
|
622
622
|
};
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function xr(e) {
|
|
626
626
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
627
627
|
}
|
|
628
628
|
var Tr = function(t) {
|
|
629
|
-
return
|
|
629
|
+
return Cr(t) && !Hr(t);
|
|
630
630
|
};
|
|
631
|
-
function
|
|
631
|
+
function Cr(e) {
|
|
632
632
|
return !!e && typeof e == "object";
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Hr(e) {
|
|
635
635
|
var t = Object.prototype.toString.call(e);
|
|
636
636
|
return t === "[object RegExp]" || t === "[object Date]" || Br(e);
|
|
637
637
|
}
|
|
638
|
-
var
|
|
638
|
+
var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.element") : 60103;
|
|
639
639
|
function Br(e) {
|
|
640
|
-
return e.$$typeof ===
|
|
640
|
+
return e.$$typeof === Ar;
|
|
641
641
|
}
|
|
642
642
|
function wr(e) {
|
|
643
643
|
return Array.isArray(e) ? [] : {};
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
645
|
+
function oe(e, t) {
|
|
646
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(wr(e), e, t) : e;
|
|
647
647
|
}
|
|
648
648
|
function Or(e, t, r) {
|
|
649
649
|
return e.concat(t).map(function(n) {
|
|
650
|
-
return
|
|
650
|
+
return oe(n, r);
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
function Pr(e, t) {
|
|
654
654
|
if (!t.customMerge)
|
|
655
|
-
return
|
|
655
|
+
return q;
|
|
656
656
|
var r = t.customMerge(e);
|
|
657
|
-
return typeof r == "function" ? r :
|
|
657
|
+
return typeof r == "function" ? r : q;
|
|
658
658
|
}
|
|
659
659
|
function Nr(e) {
|
|
660
660
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -664,7 +664,7 @@ function Nr(e) {
|
|
|
664
664
|
function Ye(e) {
|
|
665
665
|
return Object.keys(e).concat(Nr(e));
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Ct(e, t) {
|
|
668
668
|
try {
|
|
669
669
|
return t in e;
|
|
670
670
|
} catch {
|
|
@@ -672,70 +672,56 @@ function Ht(e, t) {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
function Lr(e, t) {
|
|
675
|
-
return
|
|
675
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
676
676
|
}
|
|
677
677
|
function Ir(e, t, r) {
|
|
678
678
|
var n = {};
|
|
679
679
|
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
680
|
-
n[i] =
|
|
680
|
+
n[i] = oe(e[i], r);
|
|
681
681
|
}), Ye(t).forEach(function(i) {
|
|
682
|
-
Lr(e, i) || (
|
|
682
|
+
Lr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
683
683
|
}), n;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified =
|
|
685
|
+
function q(e, t, r) {
|
|
686
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
687
687
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
688
|
-
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) :
|
|
688
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : oe(t, r);
|
|
689
689
|
}
|
|
690
|
-
|
|
690
|
+
q.all = function(t, r) {
|
|
691
691
|
if (!Array.isArray(t))
|
|
692
692
|
throw new Error("first argument should be an array");
|
|
693
693
|
return t.reduce(function(n, i) {
|
|
694
|
-
return
|
|
694
|
+
return q(n, i, r);
|
|
695
695
|
}, {});
|
|
696
696
|
};
|
|
697
|
-
var Mr =
|
|
698
|
-
const Rr = /* @__PURE__ */
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
703
|
-
purpose with or without fee is hereby granted.
|
|
704
|
-
|
|
705
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
706
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
707
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
708
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
709
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
710
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
711
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
712
|
-
***************************************************************************** */
|
|
713
|
-
var Ie = function(e, t) {
|
|
714
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
697
|
+
var Mr = q, $r = Mr;
|
|
698
|
+
const Rr = /* @__PURE__ */ xr($r);
|
|
699
|
+
var $e = function(e, t) {
|
|
700
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
715
701
|
r.__proto__ = n;
|
|
716
702
|
} || function(r, n) {
|
|
717
703
|
for (var i in n)
|
|
718
704
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
719
|
-
},
|
|
705
|
+
}, $e(e, t);
|
|
720
706
|
};
|
|
721
|
-
function
|
|
707
|
+
function xe(e, t) {
|
|
722
708
|
if (typeof t != "function" && t !== null)
|
|
723
709
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
724
|
-
|
|
710
|
+
$e(e, t);
|
|
725
711
|
function r() {
|
|
726
712
|
this.constructor = e;
|
|
727
713
|
}
|
|
728
714
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
729
715
|
}
|
|
730
|
-
var
|
|
731
|
-
return
|
|
716
|
+
var R = function() {
|
|
717
|
+
return R = Object.assign || function(t) {
|
|
732
718
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
733
719
|
r = arguments[n];
|
|
734
720
|
for (var s in r)
|
|
735
721
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
736
722
|
}
|
|
737
723
|
return t;
|
|
738
|
-
},
|
|
724
|
+
}, R.apply(this, arguments);
|
|
739
725
|
};
|
|
740
726
|
function Ur(e, t) {
|
|
741
727
|
var r = {};
|
|
@@ -746,46 +732,14 @@ function Ur(e, t) {
|
|
|
746
732
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
747
733
|
return r;
|
|
748
734
|
}
|
|
749
|
-
function
|
|
750
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
751
|
-
if (r)
|
|
752
|
-
return r.call(e);
|
|
753
|
-
if (e && typeof e.length == "number")
|
|
754
|
-
return {
|
|
755
|
-
next: function() {
|
|
756
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
757
|
-
}
|
|
758
|
-
};
|
|
759
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
760
|
-
}
|
|
761
|
-
function vi(e, t) {
|
|
762
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
763
|
-
if (!r)
|
|
764
|
-
return e;
|
|
765
|
-
var n = r.call(e), i, s = [], o;
|
|
766
|
-
try {
|
|
767
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
768
|
-
s.push(i.value);
|
|
769
|
-
} catch (a) {
|
|
770
|
-
o = { error: a };
|
|
771
|
-
} finally {
|
|
772
|
-
try {
|
|
773
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
774
|
-
} finally {
|
|
775
|
-
if (o)
|
|
776
|
-
throw o.error;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
return s;
|
|
780
|
-
}
|
|
781
|
-
function Ce(e, t, r) {
|
|
735
|
+
function Ae(e, t, r) {
|
|
782
736
|
if (r || arguments.length === 2)
|
|
783
737
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
784
738
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
785
|
-
return e.concat(s || t);
|
|
739
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
786
740
|
}
|
|
787
|
-
function
|
|
788
|
-
var r = t && t.cache ? t.cache :
|
|
741
|
+
function Be(e, t) {
|
|
742
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
789
743
|
return i(e, {
|
|
790
744
|
cache: r,
|
|
791
745
|
serializer: n
|
|
@@ -794,95 +748,103 @@ function Ae(e, t) {
|
|
|
794
748
|
function Gr(e) {
|
|
795
749
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
796
750
|
}
|
|
797
|
-
function
|
|
751
|
+
function Dr(e, t, r, n) {
|
|
798
752
|
var i = Gr(n) ? n : r(n), s = t.get(i);
|
|
799
753
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
800
754
|
}
|
|
801
|
-
function
|
|
755
|
+
function Ht(e, t, r) {
|
|
802
756
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
803
757
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
804
758
|
}
|
|
805
|
-
function
|
|
759
|
+
function St(e, t, r, n, i) {
|
|
806
760
|
return r.bind(t, e, n, i);
|
|
807
761
|
}
|
|
808
|
-
function Dr(e, t) {
|
|
809
|
-
var r = e.length === 1 ? Ct : At;
|
|
810
|
-
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
811
|
-
}
|
|
812
762
|
function Fr(e, t) {
|
|
813
|
-
|
|
763
|
+
var r = e.length === 1 ? Dr : Ht;
|
|
764
|
+
return St(e, this, r, t.cache.create(), t.serializer);
|
|
814
765
|
}
|
|
815
766
|
function jr(e, t) {
|
|
816
|
-
return
|
|
767
|
+
return St(e, this, Ht, t.cache.create(), t.serializer);
|
|
817
768
|
}
|
|
818
769
|
var kr = function() {
|
|
819
770
|
return JSON.stringify(arguments);
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
771
|
+
}, Vr = (
|
|
772
|
+
/** @class */
|
|
773
|
+
function() {
|
|
774
|
+
function e() {
|
|
775
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
776
|
+
}
|
|
777
|
+
return e.prototype.get = function(t) {
|
|
778
|
+
return this.cache[t];
|
|
779
|
+
}, e.prototype.set = function(t, r) {
|
|
780
|
+
this.cache[t] = r;
|
|
781
|
+
}, e;
|
|
782
|
+
}()
|
|
783
|
+
), Xr = {
|
|
831
784
|
create: function() {
|
|
832
|
-
return new
|
|
785
|
+
return new Vr();
|
|
833
786
|
}
|
|
834
|
-
},
|
|
835
|
-
variadic:
|
|
836
|
-
|
|
837
|
-
|
|
787
|
+
}, we = {
|
|
788
|
+
variadic: jr
|
|
789
|
+
}, _e = function() {
|
|
790
|
+
return _e = Object.assign || function(t) {
|
|
791
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
792
|
+
r = arguments[n];
|
|
793
|
+
for (var s in r)
|
|
794
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
795
|
+
}
|
|
796
|
+
return t;
|
|
797
|
+
}, _e.apply(this, arguments);
|
|
798
|
+
};
|
|
799
|
+
var _;
|
|
838
800
|
(function(e) {
|
|
839
801
|
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";
|
|
840
802
|
})(_ || (_ = {}));
|
|
841
|
-
var
|
|
803
|
+
var x;
|
|
842
804
|
(function(e) {
|
|
843
805
|
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";
|
|
844
|
-
})(
|
|
806
|
+
})(x || (x = {}));
|
|
845
807
|
var J;
|
|
846
808
|
(function(e) {
|
|
847
809
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
848
810
|
})(J || (J = {}));
|
|
849
811
|
function Ke(e) {
|
|
850
|
-
return e.type ===
|
|
812
|
+
return e.type === x.literal;
|
|
851
813
|
}
|
|
852
|
-
function
|
|
853
|
-
return e.type ===
|
|
814
|
+
function zr(e) {
|
|
815
|
+
return e.type === x.argument;
|
|
854
816
|
}
|
|
855
|
-
function
|
|
856
|
-
return e.type ===
|
|
817
|
+
function At(e) {
|
|
818
|
+
return e.type === x.number;
|
|
857
819
|
}
|
|
858
820
|
function Bt(e) {
|
|
859
|
-
return e.type ===
|
|
821
|
+
return e.type === x.date;
|
|
860
822
|
}
|
|
861
823
|
function wt(e) {
|
|
862
|
-
return e.type ===
|
|
824
|
+
return e.type === x.time;
|
|
863
825
|
}
|
|
864
826
|
function Ot(e) {
|
|
865
|
-
return e.type ===
|
|
827
|
+
return e.type === x.select;
|
|
866
828
|
}
|
|
867
829
|
function Pt(e) {
|
|
868
|
-
return e.type ===
|
|
830
|
+
return e.type === x.plural;
|
|
869
831
|
}
|
|
870
|
-
function
|
|
871
|
-
return e.type ===
|
|
832
|
+
function Wr(e) {
|
|
833
|
+
return e.type === x.pound;
|
|
872
834
|
}
|
|
873
835
|
function Nt(e) {
|
|
874
|
-
return e.type ===
|
|
836
|
+
return e.type === x.tag;
|
|
875
837
|
}
|
|
876
838
|
function Lt(e) {
|
|
877
839
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
878
840
|
}
|
|
879
|
-
function
|
|
841
|
+
function Re(e) {
|
|
880
842
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
881
843
|
}
|
|
882
|
-
var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
883
|
-
function
|
|
844
|
+
var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
|
|
845
|
+
function Qr(e) {
|
|
884
846
|
var t = {};
|
|
885
|
-
return e.replace(
|
|
847
|
+
return e.replace(Zr, function(r) {
|
|
886
848
|
var n = r.length;
|
|
887
849
|
switch (r[0]) {
|
|
888
850
|
case "G":
|
|
@@ -971,29 +933,39 @@ function Zr(e) {
|
|
|
971
933
|
return "";
|
|
972
934
|
}), t;
|
|
973
935
|
}
|
|
974
|
-
var
|
|
936
|
+
var C = function() {
|
|
937
|
+
return C = Object.assign || function(t) {
|
|
938
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
939
|
+
r = arguments[n];
|
|
940
|
+
for (var s in r)
|
|
941
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
942
|
+
}
|
|
943
|
+
return t;
|
|
944
|
+
}, C.apply(this, arguments);
|
|
945
|
+
};
|
|
946
|
+
var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
975
947
|
function Jr(e) {
|
|
976
948
|
if (e.length === 0)
|
|
977
949
|
throw new Error("Number skeleton cannot be empty");
|
|
978
|
-
for (var t = e.split(
|
|
950
|
+
for (var t = e.split(qr).filter(function(f) {
|
|
979
951
|
return f.length > 0;
|
|
980
952
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
981
953
|
var s = i[n], o = s.split("/");
|
|
982
954
|
if (o.length === 0)
|
|
983
955
|
throw new Error("Invalid number skeleton");
|
|
984
|
-
for (var
|
|
985
|
-
var c = h[
|
|
956
|
+
for (var u = o[0], l = o.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
957
|
+
var c = h[a];
|
|
986
958
|
if (c.length === 0)
|
|
987
959
|
throw new Error("Invalid number skeleton");
|
|
988
960
|
}
|
|
989
|
-
r.push({ stem:
|
|
961
|
+
r.push({ stem: u, options: l });
|
|
990
962
|
}
|
|
991
963
|
return r;
|
|
992
964
|
}
|
|
993
|
-
function
|
|
965
|
+
function Yr(e) {
|
|
994
966
|
return e.replace(/^(.*?)-/, "");
|
|
995
967
|
}
|
|
996
|
-
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
968
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
|
|
997
969
|
function tt(e) {
|
|
998
970
|
var t = {};
|
|
999
971
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(r, n, i) {
|
|
@@ -1040,7 +1012,7 @@ function Rt(e) {
|
|
|
1040
1012
|
};
|
|
1041
1013
|
}
|
|
1042
1014
|
}
|
|
1043
|
-
function
|
|
1015
|
+
function en(e) {
|
|
1044
1016
|
var t;
|
|
1045
1017
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1046
1018
|
notation: "engineering"
|
|
@@ -1058,7 +1030,7 @@ function rt(e) {
|
|
|
1058
1030
|
var t = {}, r = Rt(e);
|
|
1059
1031
|
return r || t;
|
|
1060
1032
|
}
|
|
1061
|
-
function
|
|
1033
|
+
function tn(e) {
|
|
1062
1034
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1063
1035
|
var i = n[r];
|
|
1064
1036
|
switch (i.stem) {
|
|
@@ -1082,7 +1054,7 @@ function en(e) {
|
|
|
1082
1054
|
continue;
|
|
1083
1055
|
case "measure-unit":
|
|
1084
1056
|
case "unit":
|
|
1085
|
-
t.style = "unit", t.unit =
|
|
1057
|
+
t.style = "unit", t.unit = Yr(i.options[0]);
|
|
1086
1058
|
continue;
|
|
1087
1059
|
case "compact-short":
|
|
1088
1060
|
case "K":
|
|
@@ -1093,13 +1065,13 @@ function en(e) {
|
|
|
1093
1065
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1094
1066
|
continue;
|
|
1095
1067
|
case "scientific":
|
|
1096
|
-
t =
|
|
1097
|
-
return
|
|
1068
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1069
|
+
return C(C({}, l), rt(a));
|
|
1098
1070
|
}, {}));
|
|
1099
1071
|
continue;
|
|
1100
1072
|
case "engineering":
|
|
1101
|
-
t =
|
|
1102
|
-
return
|
|
1073
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1074
|
+
return C(C({}, l), rt(a));
|
|
1103
1075
|
}, {}));
|
|
1104
1076
|
continue;
|
|
1105
1077
|
case "notation-simple":
|
|
@@ -1144,8 +1116,8 @@ function en(e) {
|
|
|
1144
1116
|
case "integer-width":
|
|
1145
1117
|
if (i.options.length > 1)
|
|
1146
1118
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1147
|
-
i.options[0].replace(
|
|
1148
|
-
if (
|
|
1119
|
+
i.options[0].replace(Kr, function(l, a, h, c, f, p) {
|
|
1120
|
+
if (a)
|
|
1149
1121
|
t.minimumIntegerDigits = h.length;
|
|
1150
1122
|
else {
|
|
1151
1123
|
if (c && f)
|
|
@@ -1164,25 +1136,25 @@ function en(e) {
|
|
|
1164
1136
|
if (et.test(i.stem)) {
|
|
1165
1137
|
if (i.options.length > 1)
|
|
1166
1138
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1167
|
-
i.stem.replace(et, function(l,
|
|
1168
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1139
|
+
i.stem.replace(et, function(l, a, h, c, f, p) {
|
|
1140
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1169
1141
|
});
|
|
1170
1142
|
var s = i.options[0];
|
|
1171
|
-
s === "w" ? t =
|
|
1143
|
+
s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), tt(s)));
|
|
1172
1144
|
continue;
|
|
1173
1145
|
}
|
|
1174
1146
|
if (Mt.test(i.stem)) {
|
|
1175
|
-
t =
|
|
1147
|
+
t = C(C({}, t), tt(i.stem));
|
|
1176
1148
|
continue;
|
|
1177
1149
|
}
|
|
1178
1150
|
var o = Rt(i.stem);
|
|
1179
|
-
o && (t =
|
|
1180
|
-
var
|
|
1181
|
-
|
|
1151
|
+
o && (t = C(C({}, t), o));
|
|
1152
|
+
var u = en(i.stem);
|
|
1153
|
+
u && (t = C(C({}, t), u));
|
|
1182
1154
|
}
|
|
1183
1155
|
return t;
|
|
1184
1156
|
}
|
|
1185
|
-
var
|
|
1157
|
+
var ge = {
|
|
1186
1158
|
"001": [
|
|
1187
1159
|
"H",
|
|
1188
1160
|
"h"
|
|
@@ -2597,23 +2569,23 @@ var ce = {
|
|
|
2597
2569
|
"h"
|
|
2598
2570
|
]
|
|
2599
2571
|
};
|
|
2600
|
-
function
|
|
2572
|
+
function rn(e, t) {
|
|
2601
2573
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2602
2574
|
var i = e.charAt(n);
|
|
2603
2575
|
if (i === "j") {
|
|
2604
2576
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2605
2577
|
s++, n++;
|
|
2606
|
-
var o = 1 + (s & 1),
|
|
2607
|
-
for ((
|
|
2578
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
|
|
2579
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2608
2580
|
r += l;
|
|
2609
2581
|
for (; o-- > 0; )
|
|
2610
|
-
r =
|
|
2582
|
+
r = a + r;
|
|
2611
2583
|
} else
|
|
2612
2584
|
i === "J" ? r += "H" : r += i;
|
|
2613
2585
|
}
|
|
2614
2586
|
return r;
|
|
2615
2587
|
}
|
|
2616
|
-
function
|
|
2588
|
+
function nn(e) {
|
|
2617
2589
|
var t = e.hourCycle;
|
|
2618
2590
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2619
2591
|
e.hourCycles && // @ts-ignore
|
|
@@ -2632,23 +2604,23 @@ function rn(e) {
|
|
|
2632
2604
|
}
|
|
2633
2605
|
var r = e.language, n;
|
|
2634
2606
|
r !== "root" && (n = e.maximize().region);
|
|
2635
|
-
var i =
|
|
2607
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2636
2608
|
return i[0];
|
|
2637
2609
|
}
|
|
2638
|
-
var
|
|
2610
|
+
var Oe, sn = new RegExp("^".concat(It.source, "*")), on = new RegExp("".concat(It.source, "*$"));
|
|
2639
2611
|
function y(e, t) {
|
|
2640
2612
|
return { start: e, end: t };
|
|
2641
2613
|
}
|
|
2642
|
-
var
|
|
2614
|
+
var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, gn = !!Number.isSafeInteger, mn = gn ? Number.isSafeInteger : function(e) {
|
|
2643
2615
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2644
|
-
},
|
|
2616
|
+
}, Ue = !0;
|
|
2645
2617
|
try {
|
|
2646
|
-
var
|
|
2647
|
-
|
|
2618
|
+
var pn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2619
|
+
Ue = ((Oe = pn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2648
2620
|
} catch {
|
|
2649
|
-
|
|
2621
|
+
Ue = !1;
|
|
2650
2622
|
}
|
|
2651
|
-
var nt =
|
|
2623
|
+
var nt = an ? (
|
|
2652
2624
|
// Native
|
|
2653
2625
|
function(t, r, n) {
|
|
2654
2626
|
return t.startsWith(r, n);
|
|
@@ -2658,7 +2630,7 @@ var nt = on ? (
|
|
|
2658
2630
|
function(t, r, n) {
|
|
2659
2631
|
return t.slice(n, n + r.length) === r;
|
|
2660
2632
|
}
|
|
2661
|
-
),
|
|
2633
|
+
), Ge = un ? String.fromCodePoint : (
|
|
2662
2634
|
// IE11
|
|
2663
2635
|
function() {
|
|
2664
2636
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2672,17 +2644,17 @@ var nt = on ? (
|
|
|
2672
2644
|
}
|
|
2673
2645
|
), it = (
|
|
2674
2646
|
// native
|
|
2675
|
-
|
|
2647
|
+
hn ? Object.fromEntries : (
|
|
2676
2648
|
// Ponyfill
|
|
2677
2649
|
function(t) {
|
|
2678
2650
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2679
|
-
var s = i[n], o = s[0],
|
|
2680
|
-
r[o] =
|
|
2651
|
+
var s = i[n], o = s[0], u = s[1];
|
|
2652
|
+
r[o] = u;
|
|
2681
2653
|
}
|
|
2682
2654
|
return r;
|
|
2683
2655
|
}
|
|
2684
2656
|
)
|
|
2685
|
-
), Ut =
|
|
2657
|
+
), Ut = ln ? (
|
|
2686
2658
|
// Native
|
|
2687
2659
|
function(t, r) {
|
|
2688
2660
|
return t.codePointAt(r);
|
|
@@ -2696,7 +2668,7 @@ var nt = on ? (
|
|
|
2696
2668
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2697
2669
|
}
|
|
2698
2670
|
}
|
|
2699
|
-
),
|
|
2671
|
+
), dn = fn ? (
|
|
2700
2672
|
// Native
|
|
2701
2673
|
function(t) {
|
|
2702
2674
|
return t.trimStart();
|
|
@@ -2704,9 +2676,9 @@ var nt = on ? (
|
|
|
2704
2676
|
) : (
|
|
2705
2677
|
// Ponyfill
|
|
2706
2678
|
function(t) {
|
|
2707
|
-
return t.replace(
|
|
2679
|
+
return t.replace(sn, "");
|
|
2708
2680
|
}
|
|
2709
|
-
),
|
|
2681
|
+
), bn = cn ? (
|
|
2710
2682
|
// Native
|
|
2711
2683
|
function(t) {
|
|
2712
2684
|
return t.trimEnd();
|
|
@@ -2714,32 +2686,32 @@ var nt = on ? (
|
|
|
2714
2686
|
) : (
|
|
2715
2687
|
// Ponyfill
|
|
2716
2688
|
function(t) {
|
|
2717
|
-
return t.replace(
|
|
2689
|
+
return t.replace(on, "");
|
|
2718
2690
|
}
|
|
2719
2691
|
);
|
|
2720
2692
|
function Gt(e, t) {
|
|
2721
2693
|
return new RegExp(e, t);
|
|
2722
2694
|
}
|
|
2723
|
-
var
|
|
2724
|
-
if (
|
|
2695
|
+
var De;
|
|
2696
|
+
if (Ue) {
|
|
2725
2697
|
var st = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2726
|
-
|
|
2698
|
+
De = function(t, r) {
|
|
2727
2699
|
var n;
|
|
2728
2700
|
st.lastIndex = r;
|
|
2729
2701
|
var i = st.exec(t);
|
|
2730
2702
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2731
2703
|
};
|
|
2732
2704
|
} else
|
|
2733
|
-
|
|
2705
|
+
De = function(t, r) {
|
|
2734
2706
|
for (var n = []; ; ) {
|
|
2735
2707
|
var i = Ut(t, r);
|
|
2736
|
-
if (i === void 0 || Dt(i) ||
|
|
2708
|
+
if (i === void 0 || Dt(i) || vn(i))
|
|
2737
2709
|
break;
|
|
2738
2710
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2739
2711
|
}
|
|
2740
|
-
return
|
|
2712
|
+
return Ge.apply(void 0, n);
|
|
2741
2713
|
};
|
|
2742
|
-
var
|
|
2714
|
+
var _n = (
|
|
2743
2715
|
/** @class */
|
|
2744
2716
|
function() {
|
|
2745
2717
|
function e(t, r) {
|
|
@@ -2761,16 +2733,16 @@ var bn = (
|
|
|
2761
2733
|
if (s === 125 && t > 0)
|
|
2762
2734
|
break;
|
|
2763
2735
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2764
|
-
var
|
|
2736
|
+
var u = this.clonePosition();
|
|
2765
2737
|
this.bump(), i.push({
|
|
2766
|
-
type:
|
|
2767
|
-
location: y(
|
|
2738
|
+
type: x.pound,
|
|
2739
|
+
location: y(u, this.clonePosition())
|
|
2768
2740
|
});
|
|
2769
2741
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2770
2742
|
if (n)
|
|
2771
2743
|
break;
|
|
2772
2744
|
return this.error(_.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2773
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2745
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2774
2746
|
var o = this.parseTag(t, r);
|
|
2775
2747
|
if (o.err)
|
|
2776
2748
|
return o;
|
|
@@ -2791,7 +2763,7 @@ var bn = (
|
|
|
2791
2763
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2792
2764
|
return {
|
|
2793
2765
|
val: {
|
|
2794
|
-
type:
|
|
2766
|
+
type: x.literal,
|
|
2795
2767
|
value: "<".concat(i, "/>"),
|
|
2796
2768
|
location: y(n, this.clonePosition())
|
|
2797
2769
|
},
|
|
@@ -2801,27 +2773,27 @@ var bn = (
|
|
|
2801
2773
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2802
2774
|
if (s.err)
|
|
2803
2775
|
return s;
|
|
2804
|
-
var o = s.val,
|
|
2776
|
+
var o = s.val, u = this.clonePosition();
|
|
2805
2777
|
if (this.bumpIf("</")) {
|
|
2806
|
-
if (this.isEOF() || !
|
|
2807
|
-
return this.error(_.INVALID_TAG, y(
|
|
2808
|
-
var l = this.clonePosition(),
|
|
2809
|
-
return i !==
|
|
2778
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2779
|
+
return this.error(_.INVALID_TAG, y(u, this.clonePosition()));
|
|
2780
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2781
|
+
return i !== a ? this.error(_.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2810
2782
|
val: {
|
|
2811
|
-
type:
|
|
2783
|
+
type: x.tag,
|
|
2812
2784
|
value: i,
|
|
2813
2785
|
children: o,
|
|
2814
2786
|
location: y(n, this.clonePosition())
|
|
2815
2787
|
},
|
|
2816
2788
|
err: null
|
|
2817
|
-
} : this.error(_.INVALID_TAG, y(
|
|
2789
|
+
} : this.error(_.INVALID_TAG, y(u, this.clonePosition())));
|
|
2818
2790
|
} else
|
|
2819
2791
|
return this.error(_.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2820
2792
|
} else
|
|
2821
2793
|
return this.error(_.INVALID_TAG, y(n, this.clonePosition()));
|
|
2822
2794
|
}, e.prototype.parseTagName = function() {
|
|
2823
2795
|
var t = this.offset();
|
|
2824
|
-
for (this.bump(); !this.isEOF() &&
|
|
2796
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2825
2797
|
this.bump();
|
|
2826
2798
|
return this.message.slice(t, this.offset());
|
|
2827
2799
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2836,21 +2808,21 @@ var bn = (
|
|
|
2836
2808
|
i += o;
|
|
2837
2809
|
continue;
|
|
2838
2810
|
}
|
|
2839
|
-
var
|
|
2840
|
-
if (
|
|
2841
|
-
i +=
|
|
2811
|
+
var u = this.tryParseLeftAngleBracket();
|
|
2812
|
+
if (u) {
|
|
2813
|
+
i += u;
|
|
2842
2814
|
continue;
|
|
2843
2815
|
}
|
|
2844
2816
|
break;
|
|
2845
2817
|
}
|
|
2846
2818
|
var l = y(n, this.clonePosition());
|
|
2847
2819
|
return {
|
|
2848
|
-
val: { type:
|
|
2820
|
+
val: { type: x.literal, value: i, location: l },
|
|
2849
2821
|
err: null
|
|
2850
2822
|
};
|
|
2851
2823
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2852
2824
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2853
|
-
!
|
|
2825
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2854
2826
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2855
2827
|
if (this.isEOF() || this.char() !== 39)
|
|
2856
2828
|
return null;
|
|
@@ -2884,12 +2856,12 @@ var bn = (
|
|
|
2884
2856
|
r.push(n);
|
|
2885
2857
|
this.bump();
|
|
2886
2858
|
}
|
|
2887
|
-
return
|
|
2859
|
+
return Ge.apply(void 0, r);
|
|
2888
2860
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2889
2861
|
if (this.isEOF())
|
|
2890
2862
|
return null;
|
|
2891
2863
|
var n = this.char();
|
|
2892
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2864
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2893
2865
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2894
2866
|
var n = this.clonePosition();
|
|
2895
2867
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2905,7 +2877,7 @@ var bn = (
|
|
|
2905
2877
|
case 125:
|
|
2906
2878
|
return this.bump(), {
|
|
2907
2879
|
val: {
|
|
2908
|
-
type:
|
|
2880
|
+
type: x.argument,
|
|
2909
2881
|
// value does not include the opening and closing braces.
|
|
2910
2882
|
value: i,
|
|
2911
2883
|
location: y(n, this.clonePosition())
|
|
@@ -2918,66 +2890,66 @@ var bn = (
|
|
|
2918
2890
|
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2919
2891
|
}
|
|
2920
2892
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2921
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2893
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2922
2894
|
this.bumpTo(i);
|
|
2923
2895
|
var s = this.clonePosition(), o = y(t, s);
|
|
2924
2896
|
return { value: n, location: o };
|
|
2925
2897
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2926
|
-
var s, o = this.clonePosition(),
|
|
2927
|
-
switch (
|
|
2898
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2899
|
+
switch (u) {
|
|
2928
2900
|
case "":
|
|
2929
2901
|
return this.error(_.EXPECT_ARGUMENT_TYPE, y(o, l));
|
|
2930
2902
|
case "number":
|
|
2931
2903
|
case "date":
|
|
2932
2904
|
case "time": {
|
|
2933
2905
|
this.bumpSpace();
|
|
2934
|
-
var
|
|
2906
|
+
var a = null;
|
|
2935
2907
|
if (this.bumpIf(",")) {
|
|
2936
2908
|
this.bumpSpace();
|
|
2937
2909
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2938
2910
|
if (c.err)
|
|
2939
2911
|
return c;
|
|
2940
|
-
var f =
|
|
2912
|
+
var f = bn(c.val);
|
|
2941
2913
|
if (f.length === 0)
|
|
2942
2914
|
return this.error(_.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2943
2915
|
var p = y(h, this.clonePosition());
|
|
2944
|
-
|
|
2916
|
+
a = { style: f, styleLocation: p };
|
|
2945
2917
|
}
|
|
2946
2918
|
var d = this.tryParseArgumentClose(i);
|
|
2947
2919
|
if (d.err)
|
|
2948
2920
|
return d;
|
|
2949
2921
|
var g = y(i, this.clonePosition());
|
|
2950
|
-
if (
|
|
2951
|
-
var
|
|
2952
|
-
if (
|
|
2953
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2922
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2923
|
+
var E = dn(a.style.slice(2));
|
|
2924
|
+
if (u === "number") {
|
|
2925
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2954
2926
|
return c.err ? c : {
|
|
2955
|
-
val: { type:
|
|
2927
|
+
val: { type: x.number, value: n, location: g, style: c.val },
|
|
2956
2928
|
err: null
|
|
2957
2929
|
};
|
|
2958
2930
|
} else {
|
|
2959
|
-
if (
|
|
2931
|
+
if (E.length === 0)
|
|
2960
2932
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
2961
|
-
var m =
|
|
2962
|
-
this.locale && (m =
|
|
2933
|
+
var m = E;
|
|
2934
|
+
this.locale && (m = rn(E, this.locale));
|
|
2963
2935
|
var f = {
|
|
2964
2936
|
type: J.dateTime,
|
|
2965
2937
|
pattern: m,
|
|
2966
|
-
location:
|
|
2967
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2968
|
-
},
|
|
2938
|
+
location: a.styleLocation,
|
|
2939
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(m) : {}
|
|
2940
|
+
}, T = u === "date" ? x.date : x.time;
|
|
2969
2941
|
return {
|
|
2970
|
-
val: { type:
|
|
2942
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2971
2943
|
err: null
|
|
2972
2944
|
};
|
|
2973
2945
|
}
|
|
2974
2946
|
}
|
|
2975
2947
|
return {
|
|
2976
2948
|
val: {
|
|
2977
|
-
type:
|
|
2949
|
+
type: u === "number" ? x.number : u === "date" ? x.date : x.time,
|
|
2978
2950
|
value: n,
|
|
2979
2951
|
location: g,
|
|
2980
|
-
style: (s =
|
|
2952
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2981
2953
|
},
|
|
2982
2954
|
err: null
|
|
2983
2955
|
};
|
|
@@ -2985,12 +2957,12 @@ var bn = (
|
|
|
2985
2957
|
case "plural":
|
|
2986
2958
|
case "selectordinal":
|
|
2987
2959
|
case "select": {
|
|
2988
|
-
var
|
|
2960
|
+
var S = this.clonePosition();
|
|
2989
2961
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2990
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, y(
|
|
2962
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, _e({}, S)));
|
|
2991
2963
|
this.bumpSpace();
|
|
2992
2964
|
var O = this.parseIdentifierIfPossible(), B = 0;
|
|
2993
|
-
if (
|
|
2965
|
+
if (u !== "select" && O.value === "offset") {
|
|
2994
2966
|
if (!this.bumpIf(":"))
|
|
2995
2967
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2996
2968
|
this.bumpSpace();
|
|
@@ -2999,28 +2971,28 @@ var bn = (
|
|
|
2999
2971
|
return c;
|
|
3000
2972
|
this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
|
|
3001
2973
|
}
|
|
3002
|
-
var
|
|
3003
|
-
if (
|
|
3004
|
-
return
|
|
2974
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2975
|
+
if (H.err)
|
|
2976
|
+
return H;
|
|
3005
2977
|
var d = this.tryParseArgumentClose(i);
|
|
3006
2978
|
if (d.err)
|
|
3007
2979
|
return d;
|
|
3008
2980
|
var P = y(i, this.clonePosition());
|
|
3009
|
-
return
|
|
2981
|
+
return u === "select" ? {
|
|
3010
2982
|
val: {
|
|
3011
|
-
type:
|
|
2983
|
+
type: x.select,
|
|
3012
2984
|
value: n,
|
|
3013
|
-
options: it(
|
|
2985
|
+
options: it(H.val),
|
|
3014
2986
|
location: P
|
|
3015
2987
|
},
|
|
3016
2988
|
err: null
|
|
3017
2989
|
} : {
|
|
3018
2990
|
val: {
|
|
3019
|
-
type:
|
|
2991
|
+
type: x.plural,
|
|
3020
2992
|
value: n,
|
|
3021
|
-
options: it(
|
|
2993
|
+
options: it(H.val),
|
|
3022
2994
|
offset: B,
|
|
3023
|
-
pluralType:
|
|
2995
|
+
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3024
2996
|
location: P
|
|
3025
2997
|
},
|
|
3026
2998
|
err: null
|
|
@@ -3078,25 +3050,25 @@ var bn = (
|
|
|
3078
3050
|
type: J.number,
|
|
3079
3051
|
tokens: n,
|
|
3080
3052
|
location: r,
|
|
3081
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3053
|
+
parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
|
|
3082
3054
|
},
|
|
3083
3055
|
err: null
|
|
3084
3056
|
};
|
|
3085
3057
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3086
|
-
for (var s, o = !1,
|
|
3087
|
-
if (
|
|
3058
|
+
for (var s, o = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3059
|
+
if (a.length === 0) {
|
|
3088
3060
|
var c = this.clonePosition();
|
|
3089
3061
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3090
3062
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3091
3063
|
if (f.err)
|
|
3092
3064
|
return f;
|
|
3093
|
-
h = y(c, this.clonePosition()),
|
|
3065
|
+
h = y(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3094
3066
|
} else
|
|
3095
3067
|
break;
|
|
3096
3068
|
}
|
|
3097
|
-
if (l.has(
|
|
3069
|
+
if (l.has(a))
|
|
3098
3070
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3099
|
-
|
|
3071
|
+
a === "other" && (o = !0), this.bumpSpace();
|
|
3100
3072
|
var p = this.clonePosition();
|
|
3101
3073
|
if (!this.bumpIf("{"))
|
|
3102
3074
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3106,27 +3078,27 @@ var bn = (
|
|
|
3106
3078
|
var g = this.tryParseArgumentClose(p);
|
|
3107
3079
|
if (g.err)
|
|
3108
3080
|
return g;
|
|
3109
|
-
|
|
3110
|
-
|
|
3081
|
+
u.push([
|
|
3082
|
+
a,
|
|
3111
3083
|
{
|
|
3112
3084
|
value: d.val,
|
|
3113
3085
|
location: y(p, this.clonePosition())
|
|
3114
3086
|
}
|
|
3115
|
-
]), l.add(
|
|
3087
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3116
3088
|
}
|
|
3117
|
-
return
|
|
3089
|
+
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3118
3090
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3119
3091
|
var n = 1, i = this.clonePosition();
|
|
3120
3092
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3121
3093
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3122
|
-
var
|
|
3123
|
-
if (
|
|
3124
|
-
s = !0, o = o * 10 + (
|
|
3094
|
+
var u = this.char();
|
|
3095
|
+
if (u >= 48 && u <= 57)
|
|
3096
|
+
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
3125
3097
|
else
|
|
3126
3098
|
break;
|
|
3127
3099
|
}
|
|
3128
3100
|
var l = y(i, this.clonePosition());
|
|
3129
|
-
return s ? (o *= n,
|
|
3101
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3130
3102
|
}, e.prototype.offset = function() {
|
|
3131
3103
|
return this.position.offset;
|
|
3132
3104
|
}, e.prototype.isEOF = function() {
|
|
@@ -3192,47 +3164,47 @@ var bn = (
|
|
|
3192
3164
|
}, e;
|
|
3193
3165
|
}()
|
|
3194
3166
|
);
|
|
3195
|
-
function
|
|
3167
|
+
function Fe(e) {
|
|
3196
3168
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3197
3169
|
}
|
|
3198
|
-
function _n(e) {
|
|
3199
|
-
return Ge(e) || e === 47;
|
|
3200
|
-
}
|
|
3201
3170
|
function yn(e) {
|
|
3171
|
+
return Fe(e) || e === 47;
|
|
3172
|
+
}
|
|
3173
|
+
function En(e) {
|
|
3202
3174
|
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;
|
|
3203
3175
|
}
|
|
3204
3176
|
function Dt(e) {
|
|
3205
3177
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3206
3178
|
}
|
|
3207
|
-
function
|
|
3179
|
+
function vn(e) {
|
|
3208
3180
|
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;
|
|
3209
3181
|
}
|
|
3210
|
-
function
|
|
3182
|
+
function je(e) {
|
|
3211
3183
|
e.forEach(function(t) {
|
|
3212
3184
|
if (delete t.location, Ot(t) || Pt(t))
|
|
3213
3185
|
for (var r in t.options)
|
|
3214
|
-
delete t.options[r].location,
|
|
3186
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3215
3187
|
else
|
|
3216
|
-
|
|
3188
|
+
At(t) && Lt(t.style) || (Bt(t) || wt(t)) && Re(t.style) ? delete t.style.location : Nt(t) && je(t.children);
|
|
3217
3189
|
});
|
|
3218
3190
|
}
|
|
3219
3191
|
function xn(e, t) {
|
|
3220
|
-
t === void 0 && (t = {}), t =
|
|
3221
|
-
var r = new
|
|
3192
|
+
t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3193
|
+
var r = new _n(e, t).parse();
|
|
3222
3194
|
if (r.err) {
|
|
3223
3195
|
var n = SyntaxError(_[r.err.kind]);
|
|
3224
3196
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3225
3197
|
}
|
|
3226
|
-
return t?.captureLocation ||
|
|
3198
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3227
3199
|
}
|
|
3228
|
-
var
|
|
3200
|
+
var Y;
|
|
3229
3201
|
(function(e) {
|
|
3230
3202
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3231
|
-
})(
|
|
3232
|
-
var
|
|
3203
|
+
})(Y || (Y = {}));
|
|
3204
|
+
var Te = (
|
|
3233
3205
|
/** @class */
|
|
3234
3206
|
function(e) {
|
|
3235
|
-
|
|
3207
|
+
xe(t, e);
|
|
3236
3208
|
function t(r, n, i) {
|
|
3237
3209
|
var s = e.call(this, r) || this;
|
|
3238
3210
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3244,30 +3216,30 @@ var xe = (
|
|
|
3244
3216
|
), ot = (
|
|
3245
3217
|
/** @class */
|
|
3246
3218
|
function(e) {
|
|
3247
|
-
|
|
3219
|
+
xe(t, e);
|
|
3248
3220
|
function t(r, n, i, s) {
|
|
3249
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3221
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3250
3222
|
}
|
|
3251
3223
|
return t;
|
|
3252
|
-
}(
|
|
3253
|
-
),
|
|
3224
|
+
}(Te)
|
|
3225
|
+
), Tn = (
|
|
3254
3226
|
/** @class */
|
|
3255
3227
|
function(e) {
|
|
3256
|
-
|
|
3228
|
+
xe(t, e);
|
|
3257
3229
|
function t(r, n, i) {
|
|
3258
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3230
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3259
3231
|
}
|
|
3260
3232
|
return t;
|
|
3261
|
-
}(
|
|
3262
|
-
),
|
|
3233
|
+
}(Te)
|
|
3234
|
+
), Cn = (
|
|
3263
3235
|
/** @class */
|
|
3264
3236
|
function(e) {
|
|
3265
|
-
|
|
3237
|
+
xe(t, e);
|
|
3266
3238
|
function t(r, n) {
|
|
3267
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3239
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3268
3240
|
}
|
|
3269
3241
|
return t;
|
|
3270
|
-
}(
|
|
3242
|
+
}(Te)
|
|
3271
3243
|
), w;
|
|
3272
3244
|
(function(e) {
|
|
3273
3245
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3278,10 +3250,10 @@ function Hn(e) {
|
|
|
3278
3250
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3279
3251
|
}, []);
|
|
3280
3252
|
}
|
|
3281
|
-
function
|
|
3253
|
+
function Sn(e) {
|
|
3282
3254
|
return typeof e == "function";
|
|
3283
3255
|
}
|
|
3284
|
-
function
|
|
3256
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3285
3257
|
if (e.length === 1 && Ke(e[0]))
|
|
3286
3258
|
return [
|
|
3287
3259
|
{
|
|
@@ -3289,17 +3261,17 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3289
3261
|
value: e[0].value
|
|
3290
3262
|
}
|
|
3291
3263
|
];
|
|
3292
|
-
for (var
|
|
3293
|
-
var h =
|
|
3264
|
+
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3265
|
+
var h = a[l];
|
|
3294
3266
|
if (Ke(h)) {
|
|
3295
|
-
|
|
3267
|
+
u.push({
|
|
3296
3268
|
type: w.literal,
|
|
3297
3269
|
value: h.value
|
|
3298
3270
|
});
|
|
3299
3271
|
continue;
|
|
3300
3272
|
}
|
|
3301
|
-
if (
|
|
3302
|
-
typeof s == "number" &&
|
|
3273
|
+
if (Wr(h)) {
|
|
3274
|
+
typeof s == "number" && u.push({
|
|
3303
3275
|
type: w.literal,
|
|
3304
3276
|
value: r.getNumberFormat(t).format(s)
|
|
3305
3277
|
});
|
|
@@ -3307,47 +3279,47 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3307
3279
|
}
|
|
3308
3280
|
var c = h.value;
|
|
3309
3281
|
if (!(i && c in i))
|
|
3310
|
-
throw new
|
|
3282
|
+
throw new Cn(c, o);
|
|
3311
3283
|
var f = i[c];
|
|
3312
|
-
if (
|
|
3313
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3284
|
+
if (zr(h)) {
|
|
3285
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3314
3286
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3315
3287
|
value: f
|
|
3316
3288
|
});
|
|
3317
3289
|
continue;
|
|
3318
3290
|
}
|
|
3319
3291
|
if (Bt(h)) {
|
|
3320
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3321
|
-
|
|
3292
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3293
|
+
u.push({
|
|
3322
3294
|
type: w.literal,
|
|
3323
3295
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3324
3296
|
});
|
|
3325
3297
|
continue;
|
|
3326
3298
|
}
|
|
3327
3299
|
if (wt(h)) {
|
|
3328
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3329
|
-
|
|
3300
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3301
|
+
u.push({
|
|
3330
3302
|
type: w.literal,
|
|
3331
3303
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3332
3304
|
});
|
|
3333
3305
|
continue;
|
|
3334
3306
|
}
|
|
3335
|
-
if (
|
|
3307
|
+
if (At(h)) {
|
|
3336
3308
|
var p = typeof h.style == "string" ? n.number[h.style] : Lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3337
|
-
p && p.scale && (f = f * (p.scale || 1)),
|
|
3309
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3338
3310
|
type: w.literal,
|
|
3339
3311
|
value: r.getNumberFormat(t, p).format(f)
|
|
3340
3312
|
});
|
|
3341
3313
|
continue;
|
|
3342
3314
|
}
|
|
3343
3315
|
if (Nt(h)) {
|
|
3344
|
-
var d = h.children, g = h.value,
|
|
3345
|
-
if (!
|
|
3346
|
-
throw new
|
|
3347
|
-
var m =
|
|
3316
|
+
var d = h.children, g = h.value, E = i[g];
|
|
3317
|
+
if (!Sn(E))
|
|
3318
|
+
throw new Tn(g, "function", o);
|
|
3319
|
+
var m = pe(d, t, r, n, i, s), T = E(m.map(function(B) {
|
|
3348
3320
|
return B.value;
|
|
3349
3321
|
}));
|
|
3350
|
-
Array.isArray(
|
|
3322
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(B) {
|
|
3351
3323
|
return {
|
|
3352
3324
|
type: typeof B == "string" ? w.literal : w.object,
|
|
3353
3325
|
value: B
|
|
@@ -3355,41 +3327,41 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3355
3327
|
}));
|
|
3356
3328
|
}
|
|
3357
3329
|
if (Ot(h)) {
|
|
3358
|
-
var
|
|
3359
|
-
if (!
|
|
3330
|
+
var S = h.options[f] || h.options.other;
|
|
3331
|
+
if (!S)
|
|
3360
3332
|
throw new ot(h.value, f, Object.keys(h.options), o);
|
|
3361
|
-
|
|
3333
|
+
u.push.apply(u, pe(S.value, t, r, n, i));
|
|
3362
3334
|
continue;
|
|
3363
3335
|
}
|
|
3364
3336
|
if (Pt(h)) {
|
|
3365
|
-
var
|
|
3366
|
-
if (!
|
|
3337
|
+
var S = h.options["=".concat(f)];
|
|
3338
|
+
if (!S) {
|
|
3367
3339
|
if (!Intl.PluralRules)
|
|
3368
|
-
throw new
|
|
3340
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3369
3341
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3370
|
-
`,
|
|
3342
|
+
`, Y.MISSING_INTL_API, o);
|
|
3371
3343
|
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3372
|
-
|
|
3344
|
+
S = h.options[O] || h.options.other;
|
|
3373
3345
|
}
|
|
3374
|
-
if (!
|
|
3346
|
+
if (!S)
|
|
3375
3347
|
throw new ot(h.value, f, Object.keys(h.options), o);
|
|
3376
|
-
|
|
3348
|
+
u.push.apply(u, pe(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3377
3349
|
continue;
|
|
3378
3350
|
}
|
|
3379
3351
|
}
|
|
3380
|
-
return Hn(
|
|
3352
|
+
return Hn(u);
|
|
3381
3353
|
}
|
|
3382
3354
|
function An(e, t) {
|
|
3383
|
-
return t ?
|
|
3384
|
-
return r[n] =
|
|
3355
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3356
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3385
3357
|
}, {})) : e;
|
|
3386
3358
|
}
|
|
3387
|
-
function
|
|
3359
|
+
function Bn(e, t) {
|
|
3388
3360
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3389
3361
|
return r[n] = An(e[n], t[n]), r;
|
|
3390
|
-
},
|
|
3362
|
+
}, R({}, e)) : e;
|
|
3391
3363
|
}
|
|
3392
|
-
function
|
|
3364
|
+
function Pe(e) {
|
|
3393
3365
|
return {
|
|
3394
3366
|
create: function() {
|
|
3395
3367
|
return {
|
|
@@ -3403,39 +3375,39 @@ function we(e) {
|
|
|
3403
3375
|
}
|
|
3404
3376
|
};
|
|
3405
3377
|
}
|
|
3406
|
-
function
|
|
3378
|
+
function wn(e) {
|
|
3407
3379
|
return e === void 0 && (e = {
|
|
3408
3380
|
number: {},
|
|
3409
3381
|
dateTime: {},
|
|
3410
3382
|
pluralRules: {}
|
|
3411
3383
|
}), {
|
|
3412
|
-
getNumberFormat:
|
|
3384
|
+
getNumberFormat: Be(function() {
|
|
3413
3385
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3414
3386
|
r[n] = arguments[n];
|
|
3415
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3387
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3416
3388
|
}, {
|
|
3417
|
-
cache:
|
|
3418
|
-
strategy:
|
|
3389
|
+
cache: Pe(e.number),
|
|
3390
|
+
strategy: we.variadic
|
|
3419
3391
|
}),
|
|
3420
|
-
getDateTimeFormat:
|
|
3392
|
+
getDateTimeFormat: Be(function() {
|
|
3421
3393
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3422
3394
|
r[n] = arguments[n];
|
|
3423
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3395
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3424
3396
|
}, {
|
|
3425
|
-
cache:
|
|
3426
|
-
strategy:
|
|
3397
|
+
cache: Pe(e.dateTime),
|
|
3398
|
+
strategy: we.variadic
|
|
3427
3399
|
}),
|
|
3428
|
-
getPluralRules:
|
|
3400
|
+
getPluralRules: Be(function() {
|
|
3429
3401
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3430
3402
|
r[n] = arguments[n];
|
|
3431
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3403
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3432
3404
|
}, {
|
|
3433
|
-
cache:
|
|
3434
|
-
strategy:
|
|
3405
|
+
cache: Pe(e.pluralRules),
|
|
3406
|
+
strategy: we.variadic
|
|
3435
3407
|
})
|
|
3436
3408
|
};
|
|
3437
3409
|
}
|
|
3438
|
-
var
|
|
3410
|
+
var On = (
|
|
3439
3411
|
/** @class */
|
|
3440
3412
|
function() {
|
|
3441
3413
|
function e(t, r, n, i) {
|
|
@@ -3446,15 +3418,15 @@ var wn = (
|
|
|
3446
3418
|
dateTime: {},
|
|
3447
3419
|
pluralRules: {}
|
|
3448
3420
|
}, this.format = function(l) {
|
|
3449
|
-
var
|
|
3450
|
-
if (
|
|
3451
|
-
return
|
|
3452
|
-
var h =
|
|
3421
|
+
var a = s.formatToParts(l);
|
|
3422
|
+
if (a.length === 1)
|
|
3423
|
+
return a[0].value;
|
|
3424
|
+
var h = a.reduce(function(c, f) {
|
|
3453
3425
|
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3454
3426
|
}, []);
|
|
3455
3427
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3456
3428
|
}, this.formatToParts = function(l) {
|
|
3457
|
-
return
|
|
3429
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3458
3430
|
}, this.resolvedOptions = function() {
|
|
3459
3431
|
var l;
|
|
3460
3432
|
return {
|
|
@@ -3467,13 +3439,13 @@ var wn = (
|
|
|
3467
3439
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3468
3440
|
var o = i || {};
|
|
3469
3441
|
o.formatters;
|
|
3470
|
-
var
|
|
3471
|
-
this.ast = e.__parse(t,
|
|
3442
|
+
var u = Ur(o, ["formatters"]);
|
|
3443
|
+
this.ast = e.__parse(t, R(R({}, u), { locale: this.resolvedLocale }));
|
|
3472
3444
|
} else
|
|
3473
3445
|
this.ast = t;
|
|
3474
3446
|
if (!Array.isArray(this.ast))
|
|
3475
3447
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3476
|
-
this.formats =
|
|
3448
|
+
this.formats = Bn(e.formats, n), this.formatters = i && i.formatters || wn(this.formatterCache);
|
|
3477
3449
|
}
|
|
3478
3450
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3479
3451
|
get: function() {
|
|
@@ -3547,7 +3519,7 @@ var wn = (
|
|
|
3547
3519
|
}, e;
|
|
3548
3520
|
}()
|
|
3549
3521
|
);
|
|
3550
|
-
function
|
|
3522
|
+
function Pn(e, t) {
|
|
3551
3523
|
if (t == null)
|
|
3552
3524
|
return;
|
|
3553
3525
|
if (t in e)
|
|
@@ -3568,36 +3540,36 @@ function On(e, t) {
|
|
|
3568
3540
|
n = void 0;
|
|
3569
3541
|
return n;
|
|
3570
3542
|
}
|
|
3571
|
-
const
|
|
3543
|
+
const D = {}, Nn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Ft = (e, t) => {
|
|
3572
3544
|
if (t == null)
|
|
3573
3545
|
return;
|
|
3574
|
-
if (t in
|
|
3575
|
-
return
|
|
3576
|
-
const r =
|
|
3546
|
+
if (t in D && e in D[t])
|
|
3547
|
+
return D[t][e];
|
|
3548
|
+
const r = Ce(t);
|
|
3577
3549
|
for (let n = 0; n < r.length; n++) {
|
|
3578
|
-
const i = r[n], s =
|
|
3550
|
+
const i = r[n], s = In(i, e);
|
|
3579
3551
|
if (s)
|
|
3580
|
-
return
|
|
3552
|
+
return Nn(e, t, s);
|
|
3581
3553
|
}
|
|
3582
3554
|
};
|
|
3583
3555
|
let ze;
|
|
3584
|
-
const
|
|
3585
|
-
function
|
|
3556
|
+
const he = ve({});
|
|
3557
|
+
function Ln(e) {
|
|
3586
3558
|
return ze[e] || null;
|
|
3587
3559
|
}
|
|
3588
3560
|
function jt(e) {
|
|
3589
3561
|
return e in ze;
|
|
3590
3562
|
}
|
|
3591
|
-
function
|
|
3563
|
+
function In(e, t) {
|
|
3592
3564
|
if (!jt(e))
|
|
3593
3565
|
return null;
|
|
3594
|
-
const r =
|
|
3595
|
-
return
|
|
3566
|
+
const r = Ln(e);
|
|
3567
|
+
return Pn(r, t);
|
|
3596
3568
|
}
|
|
3597
|
-
function
|
|
3569
|
+
function Mn(e) {
|
|
3598
3570
|
if (e == null)
|
|
3599
3571
|
return;
|
|
3600
|
-
const t =
|
|
3572
|
+
const t = Ce(e);
|
|
3601
3573
|
for (let r = 0; r < t.length; r++) {
|
|
3602
3574
|
const n = t[r];
|
|
3603
3575
|
if (jt(n))
|
|
@@ -3605,55 +3577,55 @@ function In(e) {
|
|
|
3605
3577
|
}
|
|
3606
3578
|
}
|
|
3607
3579
|
function kt(e, ...t) {
|
|
3608
|
-
delete
|
|
3580
|
+
delete D[e], he.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3609
3581
|
}
|
|
3610
|
-
|
|
3611
|
-
[
|
|
3582
|
+
ee(
|
|
3583
|
+
[he],
|
|
3612
3584
|
([e]) => Object.keys(e)
|
|
3613
3585
|
);
|
|
3614
|
-
|
|
3615
|
-
const
|
|
3616
|
-
function
|
|
3617
|
-
|
|
3586
|
+
he.subscribe((e) => ze = e);
|
|
3587
|
+
const de = {};
|
|
3588
|
+
function $n(e, t) {
|
|
3589
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3618
3590
|
}
|
|
3619
3591
|
function Vt(e) {
|
|
3620
|
-
return
|
|
3592
|
+
return de[e];
|
|
3621
3593
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3594
|
+
function Rn(e) {
|
|
3595
|
+
return Ce(e).map((t) => {
|
|
3624
3596
|
const r = Vt(t);
|
|
3625
3597
|
return [t, r ? [...r] : []];
|
|
3626
3598
|
}).filter(([, t]) => t.length > 0);
|
|
3627
3599
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return e == null ? !1 :
|
|
3600
|
+
function ke(e) {
|
|
3601
|
+
return e == null ? !1 : Ce(e).some(
|
|
3630
3602
|
(t) => {
|
|
3631
3603
|
var r;
|
|
3632
3604
|
return (r = Vt(t)) == null ? void 0 : r.size;
|
|
3633
3605
|
}
|
|
3634
3606
|
);
|
|
3635
3607
|
}
|
|
3636
|
-
function
|
|
3608
|
+
function Un(e, t) {
|
|
3637
3609
|
return Promise.all(
|
|
3638
|
-
t.map((n) => (
|
|
3610
|
+
t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
|
|
3639
3611
|
).then((n) => kt(e, ...n));
|
|
3640
3612
|
}
|
|
3641
|
-
const
|
|
3613
|
+
const ne = {};
|
|
3642
3614
|
function Xt(e) {
|
|
3643
|
-
if (!
|
|
3644
|
-
return e in
|
|
3645
|
-
const t =
|
|
3646
|
-
return
|
|
3615
|
+
if (!ke(e))
|
|
3616
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3617
|
+
const t = Rn(e);
|
|
3618
|
+
return ne[e] = Promise.all(
|
|
3647
3619
|
t.map(
|
|
3648
|
-
([r, n]) =>
|
|
3620
|
+
([r, n]) => Un(r, n)
|
|
3649
3621
|
)
|
|
3650
3622
|
).then(() => {
|
|
3651
|
-
if (
|
|
3623
|
+
if (ke(e))
|
|
3652
3624
|
return Xt(e);
|
|
3653
|
-
delete
|
|
3654
|
-
}),
|
|
3625
|
+
delete ne[e];
|
|
3626
|
+
}), ne[e];
|
|
3655
3627
|
}
|
|
3656
|
-
const
|
|
3628
|
+
const Gn = {
|
|
3657
3629
|
number: {
|
|
3658
3630
|
scientific: { notation: "scientific" },
|
|
3659
3631
|
engineering: { notation: "engineering" },
|
|
@@ -3682,142 +3654,142 @@ const Un = {
|
|
|
3682
3654
|
timeZoneName: "short"
|
|
3683
3655
|
}
|
|
3684
3656
|
}
|
|
3685
|
-
},
|
|
3657
|
+
}, Dn = {
|
|
3686
3658
|
fallbackLocale: null,
|
|
3687
3659
|
loadingDelay: 200,
|
|
3688
|
-
formats:
|
|
3660
|
+
formats: Gn,
|
|
3689
3661
|
warnOnMissingMessages: !0,
|
|
3690
3662
|
handleMissingMessage: void 0,
|
|
3691
3663
|
ignoreTag: !0
|
|
3692
|
-
},
|
|
3693
|
-
function
|
|
3694
|
-
return
|
|
3664
|
+
}, Fn = Dn;
|
|
3665
|
+
function K() {
|
|
3666
|
+
return Fn;
|
|
3695
3667
|
}
|
|
3696
|
-
const
|
|
3697
|
-
var
|
|
3668
|
+
const Ne = ve(!1);
|
|
3669
|
+
var jn = Object.defineProperty, kn = Object.defineProperties, Vn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Xn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wn = (e, t) => {
|
|
3698
3670
|
for (var r in t || (t = {}))
|
|
3699
|
-
|
|
3671
|
+
Xn.call(t, r) && ut(e, r, t[r]);
|
|
3700
3672
|
if (at)
|
|
3701
3673
|
for (var r of at(t))
|
|
3702
|
-
|
|
3674
|
+
zn.call(t, r) && ut(e, r, t[r]);
|
|
3703
3675
|
return e;
|
|
3704
|
-
},
|
|
3705
|
-
let
|
|
3706
|
-
const
|
|
3676
|
+
}, Zn = (e, t) => kn(e, Vn(t));
|
|
3677
|
+
let Ve;
|
|
3678
|
+
const ye = ve(null);
|
|
3707
3679
|
function ht(e) {
|
|
3708
3680
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3709
3681
|
}
|
|
3710
|
-
function
|
|
3682
|
+
function Ce(e, t = K().fallbackLocale) {
|
|
3711
3683
|
const r = ht(e);
|
|
3712
3684
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3713
3685
|
}
|
|
3714
|
-
function
|
|
3715
|
-
return
|
|
3686
|
+
function X() {
|
|
3687
|
+
return Ve ?? void 0;
|
|
3716
3688
|
}
|
|
3717
|
-
|
|
3718
|
-
|
|
3689
|
+
ye.subscribe((e) => {
|
|
3690
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3719
3691
|
});
|
|
3720
|
-
const
|
|
3721
|
-
if (e &&
|
|
3722
|
-
const { loadingDelay: t } =
|
|
3692
|
+
const Qn = (e) => {
|
|
3693
|
+
if (e && Mn(e) && ke(e)) {
|
|
3694
|
+
const { loadingDelay: t } = K();
|
|
3723
3695
|
let r;
|
|
3724
|
-
return typeof window < "u" &&
|
|
3725
|
-
() =>
|
|
3696
|
+
return typeof window < "u" && X() != null && t ? r = window.setTimeout(
|
|
3697
|
+
() => Ne.set(!0),
|
|
3726
3698
|
t
|
|
3727
|
-
) :
|
|
3728
|
-
|
|
3699
|
+
) : Ne.set(!0), Xt(e).then(() => {
|
|
3700
|
+
ye.set(e);
|
|
3729
3701
|
}).finally(() => {
|
|
3730
|
-
clearTimeout(r),
|
|
3702
|
+
clearTimeout(r), Ne.set(!1);
|
|
3731
3703
|
});
|
|
3732
3704
|
}
|
|
3733
|
-
return
|
|
3734
|
-
},
|
|
3735
|
-
set:
|
|
3736
|
-
}),
|
|
3705
|
+
return ye.set(e);
|
|
3706
|
+
}, te = Zn(Wn({}, ye), {
|
|
3707
|
+
set: Qn
|
|
3708
|
+
}), He = (e) => {
|
|
3737
3709
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3738
3710
|
return (n) => {
|
|
3739
3711
|
const i = JSON.stringify(n);
|
|
3740
3712
|
return i in t ? t[i] : t[i] = e(n);
|
|
3741
3713
|
};
|
|
3742
3714
|
};
|
|
3743
|
-
var
|
|
3715
|
+
var qn = Object.defineProperty, Ee = Object.getOwnPropertySymbols, zt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3744
3716
|
for (var r in t || (t = {}))
|
|
3745
3717
|
zt.call(t, r) && lt(e, r, t[r]);
|
|
3746
|
-
if (
|
|
3747
|
-
for (var r of
|
|
3718
|
+
if (Ee)
|
|
3719
|
+
for (var r of Ee(t))
|
|
3748
3720
|
Wt.call(t, r) && lt(e, r, t[r]);
|
|
3749
3721
|
return e;
|
|
3750
|
-
},
|
|
3722
|
+
}, re = (e, t) => {
|
|
3751
3723
|
var r = {};
|
|
3752
3724
|
for (var n in e)
|
|
3753
3725
|
zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3754
|
-
if (e != null &&
|
|
3755
|
-
for (var n of
|
|
3726
|
+
if (e != null && Ee)
|
|
3727
|
+
for (var n of Ee(e))
|
|
3756
3728
|
t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
|
|
3757
3729
|
return r;
|
|
3758
3730
|
};
|
|
3759
|
-
const
|
|
3760
|
-
const { formats: r } =
|
|
3731
|
+
const ae = (e, t) => {
|
|
3732
|
+
const { formats: r } = K();
|
|
3761
3733
|
if (e in r && t in r[e])
|
|
3762
3734
|
return r[e][t];
|
|
3763
3735
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3764
|
-
}, Jn =
|
|
3736
|
+
}, Jn = He(
|
|
3765
3737
|
(e) => {
|
|
3766
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3738
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3767
3739
|
if (r == null)
|
|
3768
3740
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3769
|
-
return n && (i =
|
|
3741
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3770
3742
|
}
|
|
3771
|
-
),
|
|
3743
|
+
), Yn = He(
|
|
3772
3744
|
(e) => {
|
|
3773
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3745
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3774
3746
|
if (r == null)
|
|
3775
3747
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3776
|
-
return n ? i =
|
|
3748
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3777
3749
|
}
|
|
3778
|
-
),
|
|
3750
|
+
), Kn = He(
|
|
3779
3751
|
(e) => {
|
|
3780
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3752
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3781
3753
|
if (r == null)
|
|
3782
3754
|
throw new Error(
|
|
3783
3755
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3784
3756
|
);
|
|
3785
|
-
return n ? i =
|
|
3757
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3786
3758
|
}
|
|
3787
|
-
),
|
|
3759
|
+
), ei = (e = {}) => {
|
|
3788
3760
|
var t = e, {
|
|
3789
|
-
locale: r =
|
|
3790
|
-
} = t, n =
|
|
3761
|
+
locale: r = X()
|
|
3762
|
+
} = t, n = re(t, [
|
|
3791
3763
|
"locale"
|
|
3792
3764
|
]);
|
|
3793
3765
|
return Jn(We({ locale: r }, n));
|
|
3794
|
-
},
|
|
3766
|
+
}, ti = (e = {}) => {
|
|
3795
3767
|
var t = e, {
|
|
3796
|
-
locale: r =
|
|
3797
|
-
} = t, n =
|
|
3768
|
+
locale: r = X()
|
|
3769
|
+
} = t, n = re(t, [
|
|
3798
3770
|
"locale"
|
|
3799
3771
|
]);
|
|
3800
|
-
return
|
|
3801
|
-
},
|
|
3772
|
+
return Yn(We({ locale: r }, n));
|
|
3773
|
+
}, ri = (e = {}) => {
|
|
3802
3774
|
var t = e, {
|
|
3803
|
-
locale: r =
|
|
3804
|
-
} = t, n =
|
|
3775
|
+
locale: r = X()
|
|
3776
|
+
} = t, n = re(t, [
|
|
3805
3777
|
"locale"
|
|
3806
3778
|
]);
|
|
3807
|
-
return
|
|
3808
|
-
},
|
|
3779
|
+
return Kn(We({ locale: r }, n));
|
|
3780
|
+
}, ni = He(
|
|
3809
3781
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3810
|
-
(e, t =
|
|
3811
|
-
ignoreTag:
|
|
3782
|
+
(e, t = X()) => new On(e, t, K().formats, {
|
|
3783
|
+
ignoreTag: K().ignoreTag
|
|
3812
3784
|
})
|
|
3813
|
-
),
|
|
3785
|
+
), ii = (e, t = {}) => {
|
|
3814
3786
|
var r, n, i, s;
|
|
3815
3787
|
let o = t;
|
|
3816
3788
|
typeof e == "object" && (o = e, e = o.id);
|
|
3817
3789
|
const {
|
|
3818
|
-
values:
|
|
3819
|
-
locale: l =
|
|
3820
|
-
default:
|
|
3790
|
+
values: u,
|
|
3791
|
+
locale: l = X(),
|
|
3792
|
+
default: a
|
|
3821
3793
|
} = o;
|
|
3822
3794
|
if (l == null)
|
|
3823
3795
|
throw new Error(
|
|
@@ -3825,16 +3797,16 @@ const oe = (e, t) => {
|
|
|
3825
3797
|
);
|
|
3826
3798
|
let h = Ft(e, l);
|
|
3827
3799
|
if (!h)
|
|
3828
|
-
h = (s = (i = (n = (r =
|
|
3800
|
+
h = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3829
3801
|
else if (typeof h != "string")
|
|
3830
3802
|
return console.warn(
|
|
3831
3803
|
`[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.`
|
|
3832
3804
|
), h;
|
|
3833
|
-
if (!
|
|
3805
|
+
if (!u)
|
|
3834
3806
|
return h;
|
|
3835
3807
|
let c = h;
|
|
3836
3808
|
try {
|
|
3837
|
-
c =
|
|
3809
|
+
c = ni(h, l).format(u);
|
|
3838
3810
|
} catch (f) {
|
|
3839
3811
|
f instanceof Error && console.warn(
|
|
3840
3812
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3842,16 +3814,16 @@ const oe = (e, t) => {
|
|
|
3842
3814
|
);
|
|
3843
3815
|
}
|
|
3844
3816
|
return c;
|
|
3845
|
-
},
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3817
|
+
}, si = (e, t) => ri(t).format(e), oi = (e, t) => ti(t).format(e), ai = (e, t) => ei(t).format(e), ui = (e, t = X()) => Ft(e, t), hi = ee([te, he], () => ii);
|
|
3818
|
+
ee([te], () => si);
|
|
3819
|
+
ee([te], () => oi);
|
|
3820
|
+
ee([te], () => ai);
|
|
3821
|
+
ee([te, he], () => ui);
|
|
3850
3822
|
function ft(e, t) {
|
|
3851
3823
|
kt(e, t);
|
|
3852
3824
|
}
|
|
3853
|
-
function
|
|
3854
|
-
|
|
3825
|
+
function li(e) {
|
|
3826
|
+
te.set(e);
|
|
3855
3827
|
}
|
|
3856
3828
|
const ct = {
|
|
3857
3829
|
en: {
|
|
@@ -3963,7 +3935,7 @@ const ct = {
|
|
|
3963
3935
|
games: "games"
|
|
3964
3936
|
}
|
|
3965
3937
|
};
|
|
3966
|
-
function
|
|
3938
|
+
function fi(e) {
|
|
3967
3939
|
Kt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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}");
|
|
3968
3940
|
}
|
|
3969
3941
|
function gt(e, t, r) {
|
|
@@ -3974,20 +3946,20 @@ function mt(e, t, r) {
|
|
|
3974
3946
|
const n = e.slice();
|
|
3975
3947
|
return n[23] = t[r], n;
|
|
3976
3948
|
}
|
|
3977
|
-
function
|
|
3949
|
+
function ci(e) {
|
|
3978
3950
|
let t, r, n = (
|
|
3979
3951
|
/*$_*/
|
|
3980
3952
|
e[5]("topCategories") + ""
|
|
3981
|
-
), i, s, o,
|
|
3953
|
+
), i, s, o, u, l = (
|
|
3982
3954
|
/*$_*/
|
|
3983
3955
|
e[5]("otherCategories") + ""
|
|
3984
|
-
),
|
|
3956
|
+
), a, h, c = ce(
|
|
3985
3957
|
/*topCategories*/
|
|
3986
3958
|
e[3]
|
|
3987
3959
|
), f = [];
|
|
3988
3960
|
for (let g = 0; g < c.length; g += 1)
|
|
3989
3961
|
f[g] = pt(mt(e, c, g));
|
|
3990
|
-
let p =
|
|
3962
|
+
let p = ce(
|
|
3991
3963
|
/*otherCategories*/
|
|
3992
3964
|
e[4]
|
|
3993
3965
|
), d = [];
|
|
@@ -3995,52 +3967,52 @@ function fi(e) {
|
|
|
3995
3967
|
d[g] = dt(gt(e, p, g));
|
|
3996
3968
|
return {
|
|
3997
3969
|
c() {
|
|
3998
|
-
t =
|
|
3970
|
+
t = A("div"), r = A("h4"), i = G(n), s = U();
|
|
3999
3971
|
for (let g = 0; g < f.length; g += 1)
|
|
4000
3972
|
f[g].c();
|
|
4001
|
-
o =
|
|
3973
|
+
o = U(), u = A("h4"), a = G(l), h = U();
|
|
4002
3974
|
for (let g = 0; g < d.length; g += 1)
|
|
4003
3975
|
d[g].c();
|
|
4004
|
-
L(r, "class", "CategoryTitle"), L(
|
|
3976
|
+
L(r, "class", "CategoryTitle"), L(u, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
4005
3977
|
},
|
|
4006
|
-
m(g,
|
|
4007
|
-
|
|
3978
|
+
m(g, E) {
|
|
3979
|
+
V(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
4008
3980
|
for (let m = 0; m < f.length; m += 1)
|
|
4009
3981
|
f[m] && f[m].m(t, null);
|
|
4010
|
-
v(t, o), v(t,
|
|
3982
|
+
v(t, o), v(t, u), v(u, a), v(t, h);
|
|
4011
3983
|
for (let m = 0; m < d.length; m += 1)
|
|
4012
3984
|
d[m] && d[m].m(t, null);
|
|
4013
3985
|
},
|
|
4014
|
-
p(g,
|
|
4015
|
-
if (
|
|
3986
|
+
p(g, E) {
|
|
3987
|
+
if (E & /*$_*/
|
|
4016
3988
|
32 && n !== (n = /*$_*/
|
|
4017
|
-
g[5]("topCategories") + "") &&
|
|
3989
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
4018
3990
|
105) {
|
|
4019
|
-
c =
|
|
3991
|
+
c = ce(
|
|
4020
3992
|
/*topCategories*/
|
|
4021
3993
|
g[3]
|
|
4022
3994
|
);
|
|
4023
3995
|
let m;
|
|
4024
3996
|
for (m = 0; m < c.length; m += 1) {
|
|
4025
|
-
const
|
|
4026
|
-
f[m] ? f[m].p(
|
|
3997
|
+
const T = mt(g, c, m);
|
|
3998
|
+
f[m] ? f[m].p(T, E) : (f[m] = pt(T), f[m].c(), f[m].m(t, o));
|
|
4027
3999
|
}
|
|
4028
4000
|
for (; m < f.length; m += 1)
|
|
4029
4001
|
f[m].d(1);
|
|
4030
4002
|
f.length = c.length;
|
|
4031
4003
|
}
|
|
4032
|
-
if (
|
|
4004
|
+
if (E & /*$_*/
|
|
4033
4005
|
32 && l !== (l = /*$_*/
|
|
4034
|
-
g[5]("otherCategories") + "") &&
|
|
4006
|
+
g[5]("otherCategories") + "") && F(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
4035
4007
|
113) {
|
|
4036
|
-
p =
|
|
4008
|
+
p = ce(
|
|
4037
4009
|
/*otherCategories*/
|
|
4038
4010
|
g[4]
|
|
4039
4011
|
);
|
|
4040
4012
|
let m;
|
|
4041
4013
|
for (m = 0; m < p.length; m += 1) {
|
|
4042
|
-
const
|
|
4043
|
-
d[m] ? d[m].p(
|
|
4014
|
+
const T = gt(g, p, m);
|
|
4015
|
+
d[m] ? d[m].p(T, E) : (d[m] = dt(T), d[m].c(), d[m].m(t, null));
|
|
4044
4016
|
}
|
|
4045
4017
|
for (; m < d.length; m += 1)
|
|
4046
4018
|
d[m].d(1);
|
|
@@ -4048,36 +4020,36 @@ function fi(e) {
|
|
|
4048
4020
|
}
|
|
4049
4021
|
},
|
|
4050
4022
|
d(g) {
|
|
4051
|
-
g &&
|
|
4023
|
+
g && j(t), qe(f, g), qe(d, g);
|
|
4052
4024
|
}
|
|
4053
4025
|
};
|
|
4054
4026
|
}
|
|
4055
|
-
function
|
|
4027
|
+
function gi(e) {
|
|
4056
4028
|
let t;
|
|
4057
4029
|
return {
|
|
4058
4030
|
c() {
|
|
4059
|
-
t =
|
|
4031
|
+
t = A("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
4060
4032
|
},
|
|
4061
4033
|
m(r, n) {
|
|
4062
|
-
|
|
4034
|
+
V(r, t, n);
|
|
4063
4035
|
},
|
|
4064
4036
|
p: N,
|
|
4065
4037
|
d(r) {
|
|
4066
|
-
r &&
|
|
4038
|
+
r && j(t);
|
|
4067
4039
|
}
|
|
4068
4040
|
};
|
|
4069
4041
|
}
|
|
4070
4042
|
function pt(e) {
|
|
4071
|
-
let t, r, n, i, s, o,
|
|
4043
|
+
let t, r, n, i, s, o, u, l = (
|
|
4072
4044
|
/*category*/
|
|
4073
4045
|
e[23].name + ""
|
|
4074
|
-
),
|
|
4046
|
+
), a, h, c, f = (
|
|
4075
4047
|
/*category*/
|
|
4076
4048
|
e[23].games.count + ""
|
|
4077
4049
|
), p, d, g = (
|
|
4078
4050
|
/*$_*/
|
|
4079
4051
|
e[5]("games") + ""
|
|
4080
|
-
),
|
|
4052
|
+
), E, m, T, S;
|
|
4081
4053
|
function O() {
|
|
4082
4054
|
return (
|
|
4083
4055
|
/*click_handler*/
|
|
@@ -4089,47 +4061,47 @@ function pt(e) {
|
|
|
4089
4061
|
}
|
|
4090
4062
|
return {
|
|
4091
4063
|
c() {
|
|
4092
|
-
t =
|
|
4064
|
+
t = A("div"), r = A("ui-image"), s = U(), o = A("div"), u = A("p"), a = G(l), h = U(), c = A("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
|
|
4093
4065
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4094
4066
|
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
4095
4067
|
(e[0] === /*category*/
|
|
4096
4068
|
e[23].id ? "Active" : ""));
|
|
4097
4069
|
},
|
|
4098
|
-
m(B,
|
|
4099
|
-
|
|
4070
|
+
m(B, H) {
|
|
4071
|
+
V(B, t, H), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, p), v(c, d), v(c, E), T || (S = Et(t, "click", O), T = !0);
|
|
4100
4072
|
},
|
|
4101
|
-
p(B,
|
|
4102
|
-
e = B,
|
|
4103
|
-
8 && !
|
|
4104
|
-
e[23].icon) && $(r, "src", n),
|
|
4073
|
+
p(B, H) {
|
|
4074
|
+
e = B, H & /*topCategories*/
|
|
4075
|
+
8 && !be(r.src, n = /*category*/
|
|
4076
|
+
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
4105
4077
|
8 && i !== (i = /*category*/
|
|
4106
|
-
e[23].name) && $(r, "alt", i),
|
|
4078
|
+
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
4107
4079
|
8 && l !== (l = /*category*/
|
|
4108
|
-
e[23].name + "") &&
|
|
4080
|
+
e[23].name + "") && F(a, l), H & /*topCategories*/
|
|
4109
4081
|
8 && f !== (f = /*category*/
|
|
4110
|
-
e[23].games.count + "") &&
|
|
4082
|
+
e[23].games.count + "") && F(p, f), H & /*$_*/
|
|
4111
4083
|
32 && g !== (g = /*$_*/
|
|
4112
|
-
e[5]("games") + "") &&
|
|
4084
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4113
4085
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4114
4086
|
(e[0] === /*category*/
|
|
4115
4087
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
4116
4088
|
},
|
|
4117
4089
|
d(B) {
|
|
4118
|
-
B &&
|
|
4090
|
+
B && j(t), T = !1, S();
|
|
4119
4091
|
}
|
|
4120
4092
|
};
|
|
4121
4093
|
}
|
|
4122
4094
|
function dt(e) {
|
|
4123
|
-
let t, r, n, i, s, o,
|
|
4095
|
+
let t, r, n, i, s, o, u, l = (
|
|
4124
4096
|
/*category*/
|
|
4125
4097
|
e[23].name + ""
|
|
4126
|
-
),
|
|
4098
|
+
), a, h, c, f = (
|
|
4127
4099
|
/*category*/
|
|
4128
4100
|
e[23].games.count + ""
|
|
4129
4101
|
), p, d, g = (
|
|
4130
4102
|
/*$_*/
|
|
4131
4103
|
e[5]("games") + ""
|
|
4132
|
-
),
|
|
4104
|
+
), E, m, T, S, O;
|
|
4133
4105
|
function B() {
|
|
4134
4106
|
return (
|
|
4135
4107
|
/*click_handler_1*/
|
|
@@ -4141,51 +4113,51 @@ function dt(e) {
|
|
|
4141
4113
|
}
|
|
4142
4114
|
return {
|
|
4143
4115
|
c() {
|
|
4144
|
-
t =
|
|
4116
|
+
t = A("div"), r = A("ui-image"), s = U(), o = A("div"), u = A("p"), a = G(l), h = U(), c = A("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4145
4117
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4146
|
-
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class",
|
|
4118
|
+
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", T = "Category " + /*activecategory*/
|
|
4147
4119
|
(e[0] === /*category*/
|
|
4148
4120
|
e[23].id ? "Active" : ""));
|
|
4149
4121
|
},
|
|
4150
|
-
m(
|
|
4151
|
-
|
|
4122
|
+
m(H, P) {
|
|
4123
|
+
V(H, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, p), v(c, d), v(c, E), v(t, m), S || (O = Et(t, "click", B), S = !0);
|
|
4152
4124
|
},
|
|
4153
|
-
p(
|
|
4154
|
-
e =
|
|
4155
|
-
16 && !
|
|
4125
|
+
p(H, P) {
|
|
4126
|
+
e = H, P & /*otherCategories*/
|
|
4127
|
+
16 && !be(r.src, n = /*category*/
|
|
4156
4128
|
e[23].icon) && $(r, "src", n), P & /*otherCategories*/
|
|
4157
4129
|
16 && i !== (i = /*category*/
|
|
4158
4130
|
e[23].name) && $(r, "alt", i), P & /*otherCategories*/
|
|
4159
4131
|
16 && l !== (l = /*category*/
|
|
4160
|
-
e[23].name + "") &&
|
|
4132
|
+
e[23].name + "") && F(a, l), P & /*otherCategories*/
|
|
4161
4133
|
16 && f !== (f = /*category*/
|
|
4162
|
-
e[23].games.count + "") &&
|
|
4134
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4163
4135
|
32 && g !== (g = /*$_*/
|
|
4164
|
-
e[5]("games") + "") &&
|
|
4165
|
-
17 &&
|
|
4136
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4137
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4166
4138
|
(e[0] === /*category*/
|
|
4167
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4139
|
+
e[23].id ? "Active" : "")) && L(t, "class", T);
|
|
4168
4140
|
},
|
|
4169
|
-
d(
|
|
4170
|
-
|
|
4141
|
+
d(H) {
|
|
4142
|
+
H && j(t), S = !1, O();
|
|
4171
4143
|
}
|
|
4172
4144
|
};
|
|
4173
4145
|
}
|
|
4174
|
-
function
|
|
4146
|
+
function mi(e) {
|
|
4175
4147
|
let t;
|
|
4176
4148
|
function r(s, o) {
|
|
4177
4149
|
return (
|
|
4178
4150
|
/*isLoading*/
|
|
4179
|
-
s[2] ?
|
|
4151
|
+
s[2] ? gi : ci
|
|
4180
4152
|
);
|
|
4181
4153
|
}
|
|
4182
4154
|
let n = r(e), i = n(e);
|
|
4183
4155
|
return {
|
|
4184
4156
|
c() {
|
|
4185
|
-
t =
|
|
4157
|
+
t = A("div"), i.c();
|
|
4186
4158
|
},
|
|
4187
4159
|
m(s, o) {
|
|
4188
|
-
|
|
4160
|
+
V(s, t, o), i.m(t, null), e[17](t);
|
|
4189
4161
|
},
|
|
4190
4162
|
p(s, [o]) {
|
|
4191
4163
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4193,65 +4165,65 @@ function gi(e) {
|
|
|
4193
4165
|
i: N,
|
|
4194
4166
|
o: N,
|
|
4195
4167
|
d(s) {
|
|
4196
|
-
s &&
|
|
4168
|
+
s && j(t), i.d(), e[17](null);
|
|
4197
4169
|
}
|
|
4198
4170
|
};
|
|
4199
4171
|
}
|
|
4200
|
-
function
|
|
4172
|
+
function pi(e, t, r) {
|
|
4201
4173
|
let n;
|
|
4202
|
-
Yt(e,
|
|
4203
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory:
|
|
4174
|
+
Yt(e, hi, (b) => r(5, n = b));
|
|
4175
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4204
4176
|
const g = [];
|
|
4205
|
-
let
|
|
4177
|
+
let E = [], m = [];
|
|
4206
4178
|
Object.keys(ct).forEach((b) => {
|
|
4207
4179
|
ft(b, ct[b]);
|
|
4208
4180
|
});
|
|
4209
|
-
const
|
|
4181
|
+
const T = () => {
|
|
4210
4182
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4211
|
-
Object.keys(M).forEach((
|
|
4212
|
-
ft(
|
|
4183
|
+
Object.keys(M).forEach((le) => {
|
|
4184
|
+
ft(le, M[le]);
|
|
4213
4185
|
});
|
|
4214
4186
|
}).catch((M) => {
|
|
4215
4187
|
console.log(M);
|
|
4216
4188
|
});
|
|
4217
|
-
},
|
|
4189
|
+
}, S = () => {
|
|
4218
4190
|
r(2, d = !0);
|
|
4219
4191
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4220
4192
|
b.searchParams.append("language", o), fetch(b).then((M) => M.json()).then((M) => {
|
|
4221
4193
|
r(2, d = !1);
|
|
4222
|
-
const
|
|
4194
|
+
const le = l.split(",").map((k) => k.trim());
|
|
4223
4195
|
g.push(...M.items);
|
|
4224
|
-
const Ze = g.filter((
|
|
4225
|
-
r(3,
|
|
4196
|
+
const Ze = g.filter((k) => !le.some((qt) => k.flags?.indexOf(qt) >= 0));
|
|
4197
|
+
r(3, E = Ze.filter((k) => k.isTopCategory === !0)), r(4, m = Ze.filter((k) => k.isTopCategory === !1));
|
|
4226
4198
|
});
|
|
4227
4199
|
}, O = (b) => {
|
|
4228
4200
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4229
4201
|
}, B = () => {
|
|
4230
|
-
|
|
4202
|
+
li(o);
|
|
4231
4203
|
};
|
|
4232
4204
|
or(() => () => {
|
|
4233
4205
|
});
|
|
4234
|
-
const
|
|
4206
|
+
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4235
4207
|
function Qt(b) {
|
|
4236
|
-
|
|
4208
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4237
4209
|
p = b, r(1, p);
|
|
4238
4210
|
});
|
|
4239
4211
|
}
|
|
4240
4212
|
return e.$$set = (b) => {
|
|
4241
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0,
|
|
4213
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4242
4214
|
}, e.$$.update = () => {
|
|
4243
4215
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4244
|
-
384 && i && s &&
|
|
4245
|
-
8192 && c &&
|
|
4216
|
+
384 && i && s && S(), e.$$.dirty & /*translationurl*/
|
|
4217
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4246
4218
|
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4247
|
-
2050 &&
|
|
4219
|
+
2050 && a && p && _r(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4248
4220
|
4098 && h && p && yr(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4249
4221
|
16386 && f && p && Er(p, `${f}.Style`);
|
|
4250
4222
|
}, [
|
|
4251
|
-
|
|
4223
|
+
u,
|
|
4252
4224
|
p,
|
|
4253
4225
|
d,
|
|
4254
|
-
|
|
4226
|
+
E,
|
|
4255
4227
|
m,
|
|
4256
4228
|
n,
|
|
4257
4229
|
O,
|
|
@@ -4259,11 +4231,11 @@ function mi(e, t, r) {
|
|
|
4259
4231
|
s,
|
|
4260
4232
|
o,
|
|
4261
4233
|
l,
|
|
4262
|
-
|
|
4234
|
+
a,
|
|
4263
4235
|
h,
|
|
4264
4236
|
c,
|
|
4265
4237
|
f,
|
|
4266
|
-
|
|
4238
|
+
H,
|
|
4267
4239
|
P,
|
|
4268
4240
|
Qt
|
|
4269
4241
|
];
|
|
@@ -4273,8 +4245,8 @@ class Zt extends dr {
|
|
|
4273
4245
|
super(), mr(
|
|
4274
4246
|
this,
|
|
4275
4247
|
t,
|
|
4248
|
+
pi,
|
|
4276
4249
|
mi,
|
|
4277
|
-
gi,
|
|
4278
4250
|
_t,
|
|
4279
4251
|
{
|
|
4280
4252
|
endpoint: 7,
|
|
@@ -4287,7 +4259,7 @@ class Zt extends dr {
|
|
|
4287
4259
|
translationurl: 13,
|
|
4288
4260
|
mbsource: 14
|
|
4289
4261
|
},
|
|
4290
|
-
|
|
4262
|
+
fi
|
|
4291
4263
|
);
|
|
4292
4264
|
}
|
|
4293
4265
|
get endpoint() {
|
|
@@ -4346,50 +4318,46 @@ class Zt extends dr {
|
|
|
4346
4318
|
}
|
|
4347
4319
|
}
|
|
4348
4320
|
pr(Zt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4349
|
-
const
|
|
4321
|
+
const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4350
4322
|
__proto__: null,
|
|
4351
4323
|
default: Zt
|
|
4352
4324
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4353
4325
|
export {
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
rr as J,
|
|
4365
|
-
bi as K,
|
|
4366
|
-
Ti as L,
|
|
4326
|
+
te as $,
|
|
4327
|
+
yi as A,
|
|
4328
|
+
bi as B,
|
|
4329
|
+
ce as C,
|
|
4330
|
+
qe as D,
|
|
4331
|
+
vi as E,
|
|
4332
|
+
rr as F,
|
|
4333
|
+
_i as G,
|
|
4334
|
+
Ei as H,
|
|
4335
|
+
xi as I,
|
|
4367
4336
|
dr as S,
|
|
4368
|
-
xi as _,
|
|
4369
4337
|
kt as a,
|
|
4370
4338
|
Kt as b,
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4339
|
+
F as c,
|
|
4340
|
+
j as d,
|
|
4341
|
+
L as e,
|
|
4374
4342
|
I as f,
|
|
4375
|
-
|
|
4376
|
-
|
|
4343
|
+
$ as g,
|
|
4344
|
+
V as h,
|
|
4377
4345
|
mr as i,
|
|
4378
|
-
|
|
4379
|
-
|
|
4346
|
+
v as j,
|
|
4347
|
+
A as k,
|
|
4380
4348
|
Et as l,
|
|
4381
|
-
|
|
4349
|
+
U as m,
|
|
4382
4350
|
N as n,
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4351
|
+
Yt as o,
|
|
4352
|
+
or as p,
|
|
4353
|
+
Le as q,
|
|
4354
|
+
ue as r,
|
|
4387
4355
|
_t as s,
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4356
|
+
G as t,
|
|
4357
|
+
_r as u,
|
|
4358
|
+
yr as v,
|
|
4359
|
+
Er as w,
|
|
4360
|
+
pr as x,
|
|
4361
|
+
hi as y,
|
|
4362
|
+
be as z
|
|
4395
4363
|
};
|