@everymatrix/casino-slider 1.56.0 → 1.56.2
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/{CasinoSlider-swPJ54x1.js → CasinoSlider-CDNb0RJP.js} +438 -411
- package/components/{CasinoSlider-C0VZprDT.js → CasinoSlider-ClyLSUZL.js} +424 -397
- package/components/CasinoSlider-mJFWsMq5.cjs +16 -0
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-DLUyCug0.cjs +0 -3
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var Re = (e, t, r) => t in e ?
|
1
|
+
var Pr = Object.defineProperty, Lr = Object.defineProperties;
|
2
|
+
var Or = Object.getOwnPropertyDescriptors;
|
3
|
+
var ft = Object.getOwnPropertySymbols;
|
4
|
+
var Fr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Re = (e, t, r) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Fr.call(t, r) && Re(e, r, t[r]);
|
8
|
+
if (ft)
|
9
|
+
for (var r of ft(t))
|
10
|
+
Rr.call(t, r) && Re(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var D = (e, t, r) => Re(e, typeof t != "symbol" ? t + "" : t, r);
|
14
|
-
var
|
12
|
+
}, dt = (e, t) => Lr(e, Or(t));
|
13
|
+
var D = (e, t, r) => (Re(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var pt = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (u) => {
|
16
16
|
try {
|
17
17
|
a(r.next(u));
|
@@ -29,29 +29,29 @@ var mt = (e, t, r) => new Promise((n, i) => {
|
|
29
29
|
});
|
30
30
|
function G() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function Vt(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function gt() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function J(e) {
|
39
|
-
e.forEach(
|
39
|
+
e.forEach(Vt);
|
40
40
|
}
|
41
41
|
function rt(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Xt(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
47
|
let Ce;
|
48
|
-
function
|
48
|
+
function bt(e, t) {
|
49
49
|
return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Dr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function Ur(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
@@ -63,15 +63,16 @@ function Rr(e, ...t) {
|
|
63
63
|
function B(e, t) {
|
64
64
|
e.appendChild(t);
|
65
65
|
}
|
66
|
-
function
|
67
|
-
const n =
|
66
|
+
function Gr(e, t, r) {
|
67
|
+
const n = kr(e);
|
68
68
|
if (!n.getElementById(t)) {
|
69
69
|
const i = M("style");
|
70
|
-
i.id = t, i.textContent = r,
|
70
|
+
i.id = t, i.textContent = r, $r(n, i);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
function
|
74
|
-
if (!e)
|
73
|
+
function kr(e) {
|
74
|
+
if (!e)
|
75
|
+
return document;
|
75
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
76
77
|
return t && /** @type {ShadowRoot} */
|
77
78
|
t.host ? (
|
@@ -79,7 +80,7 @@ function Ur(e) {
|
|
79
80
|
t
|
80
81
|
) : e.ownerDocument;
|
81
82
|
}
|
82
|
-
function
|
83
|
+
function $r(e, t) {
|
83
84
|
return B(
|
84
85
|
/** @type {Document} */
|
85
86
|
e.head || e,
|
@@ -92,7 +93,7 @@ function U(e, t, r) {
|
|
92
93
|
function R(e) {
|
93
94
|
e.parentNode && e.parentNode.removeChild(e);
|
94
95
|
}
|
95
|
-
function
|
96
|
+
function jr(e, t) {
|
96
97
|
for (let r = 0; r < e.length; r += 1)
|
97
98
|
e[r] && e[r].d(t);
|
98
99
|
}
|
@@ -114,14 +115,14 @@ function Ae(e, t, r, n) {
|
|
114
115
|
function S(e, t, r) {
|
115
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
116
117
|
}
|
117
|
-
function
|
118
|
+
function Vr(e) {
|
118
119
|
return Array.from(e.childNodes);
|
119
120
|
}
|
120
121
|
function nt(e, t) {
|
121
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
122
123
|
t);
|
123
124
|
}
|
124
|
-
function
|
125
|
+
function Xr(e) {
|
125
126
|
const t = {};
|
126
127
|
return e.childNodes.forEach(
|
127
128
|
/** @param {Element} node */
|
@@ -134,19 +135,20 @@ let ge;
|
|
134
135
|
function me(e) {
|
135
136
|
ge = e;
|
136
137
|
}
|
137
|
-
function
|
138
|
-
if (!ge)
|
138
|
+
function Wr() {
|
139
|
+
if (!ge)
|
140
|
+
throw new Error("Function called outside component initialization");
|
139
141
|
return ge;
|
140
142
|
}
|
141
|
-
function
|
142
|
-
|
143
|
+
function zr(e) {
|
144
|
+
Wr().$$.on_mount.push(e);
|
143
145
|
}
|
144
146
|
const te = [], de = [];
|
145
147
|
let re = [];
|
146
|
-
const
|
148
|
+
const yt = [], Zr = /* @__PURE__ */ Promise.resolve();
|
147
149
|
let Xe = !1;
|
148
|
-
function
|
149
|
-
Xe || (Xe = !0,
|
150
|
+
function Qr() {
|
151
|
+
Xe || (Xe = !0, Zr.then(A));
|
150
152
|
}
|
151
153
|
function We(e) {
|
152
154
|
re.push(e);
|
@@ -161,47 +163,49 @@ function A() {
|
|
161
163
|
try {
|
162
164
|
for (; K < te.length; ) {
|
163
165
|
const t = te[K];
|
164
|
-
K++, me(t),
|
166
|
+
K++, me(t), qr(t.$$);
|
165
167
|
}
|
166
168
|
} catch (t) {
|
167
169
|
throw te.length = 0, K = 0, t;
|
168
170
|
}
|
169
|
-
for (me(null), te.length = 0, K = 0; de.length; )
|
171
|
+
for (me(null), te.length = 0, K = 0; de.length; )
|
172
|
+
de.pop()();
|
170
173
|
for (let t = 0; t < re.length; t += 1) {
|
171
174
|
const r = re[t];
|
172
175
|
De.has(r) || (De.add(r), r());
|
173
176
|
}
|
174
177
|
re.length = 0;
|
175
178
|
} while (te.length);
|
176
|
-
for (;
|
177
|
-
|
179
|
+
for (; yt.length; )
|
180
|
+
yt.pop()();
|
178
181
|
Xe = !1, De.clear(), me(e);
|
179
182
|
}
|
180
|
-
function
|
183
|
+
function qr(e) {
|
181
184
|
if (e.fragment !== null) {
|
182
185
|
e.update(), J(e.before_update);
|
183
186
|
const t = e.dirty;
|
184
187
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
185
188
|
}
|
186
189
|
}
|
187
|
-
function
|
190
|
+
function Jr(e) {
|
188
191
|
const t = [], r = [];
|
189
192
|
re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
|
190
193
|
}
|
191
|
-
const
|
192
|
-
function
|
193
|
-
e && e.i && (
|
194
|
+
const Yr = /* @__PURE__ */ new Set();
|
195
|
+
function Wt(e, t) {
|
196
|
+
e && e.i && (Yr.delete(e), e.i(t));
|
194
197
|
}
|
195
198
|
function ne(e) {
|
196
199
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
197
200
|
}
|
198
|
-
function
|
201
|
+
function zt(e, t) {
|
199
202
|
e.d(1), t.delete(e.key);
|
200
203
|
}
|
201
|
-
function
|
204
|
+
function Zt(e, t, r, n, i, o, s, a, u, l, h, m) {
|
202
205
|
let f = e.length, p = o.length, g = f;
|
203
206
|
const b = {};
|
204
|
-
for (; g--; )
|
207
|
+
for (; g--; )
|
208
|
+
b[e[g].key] = g;
|
205
209
|
const d = [], H = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), x = [];
|
206
210
|
for (g = p; g--; ) {
|
207
211
|
const w = m(i, o, g), N = r(w);
|
@@ -210,7 +214,7 @@ function Wt(e, t, r, n, i, o, s, a, u, l, h, m) {
|
|
210
214
|
}
|
211
215
|
const L = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set();
|
212
216
|
function k(w) {
|
213
|
-
|
217
|
+
Wt(w, 1), w.m(a, h), s.set(w.key, w), h = w.first, p--;
|
214
218
|
}
|
215
219
|
for (; f && p; ) {
|
216
220
|
const w = d[p - 1], N = e[f - 1], P = w.key, V = N.key;
|
@@ -220,24 +224,25 @@ function Wt(e, t, r, n, i, o, s, a, u, l, h, m) {
|
|
220
224
|
const w = e[f];
|
221
225
|
H.has(w.key) || u(w, s);
|
222
226
|
}
|
223
|
-
for (; p; )
|
227
|
+
for (; p; )
|
228
|
+
k(d[p - 1]);
|
224
229
|
return J(x), d;
|
225
230
|
}
|
226
|
-
function
|
231
|
+
function Kr(e, t, r) {
|
227
232
|
const { fragment: n, after_update: i } = e.$$;
|
228
233
|
n && n.m(t, r), We(() => {
|
229
|
-
const o = e.$$.on_mount.map(
|
234
|
+
const o = e.$$.on_mount.map(Vt).filter(rt);
|
230
235
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
231
236
|
}), i.forEach(We);
|
232
237
|
}
|
233
|
-
function
|
238
|
+
function en(e, t) {
|
234
239
|
const r = e.$$;
|
235
|
-
r.fragment !== null && (
|
240
|
+
r.fragment !== null && (Jr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
236
241
|
}
|
237
|
-
function
|
238
|
-
e.$$.dirty[0] === -1 && (te.push(e),
|
242
|
+
function tn(e, t) {
|
243
|
+
e.$$.dirty[0] === -1 && (te.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
239
244
|
}
|
240
|
-
function
|
245
|
+
function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
241
246
|
const u = ge;
|
242
247
|
me(e);
|
243
248
|
const l = e.$$ = {
|
@@ -247,7 +252,7 @@ function en(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
247
252
|
props: o,
|
248
253
|
update: G,
|
249
254
|
not_equal: i,
|
250
|
-
bound:
|
255
|
+
bound: gt(),
|
251
256
|
// lifecycle
|
252
257
|
on_mount: [],
|
253
258
|
on_destroy: [],
|
@@ -256,7 +261,7 @@ function en(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
256
261
|
after_update: [],
|
257
262
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
258
263
|
// everything else
|
259
|
-
callbacks:
|
264
|
+
callbacks: gt(),
|
260
265
|
dirty: a,
|
261
266
|
skip_bound: !1,
|
262
267
|
root: t.target || u.$$.root
|
@@ -265,19 +270,19 @@ function en(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
265
270
|
let h = !1;
|
266
271
|
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
267
272
|
const g = p.length ? p[0] : f;
|
268
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), h &&
|
273
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), h && tn(e, m)), f;
|
269
274
|
}) : [], l.update(), h = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
270
275
|
if (t.hydrate) {
|
271
|
-
const m =
|
276
|
+
const m = Vr(t.target);
|
272
277
|
l.fragment && l.fragment.l(m), m.forEach(R);
|
273
278
|
} else
|
274
279
|
l.fragment && l.fragment.c();
|
275
|
-
t.intro &&
|
280
|
+
t.intro && Wt(e.$$.fragment), Kr(e, t.target, t.anchor), A();
|
276
281
|
}
|
277
282
|
me(u);
|
278
283
|
}
|
279
|
-
let
|
280
|
-
typeof HTMLElement == "function" && (
|
284
|
+
let Qt;
|
285
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
281
286
|
constructor(t, r, n) {
|
282
287
|
super();
|
283
288
|
/** The Svelte component constructor */
|
@@ -314,7 +319,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
314
319
|
}
|
315
320
|
}
|
316
321
|
connectedCallback() {
|
317
|
-
return
|
322
|
+
return pt(this, null, function* () {
|
318
323
|
if (this.$$cn = !0, !this.$$c) {
|
319
324
|
let t = function(o) {
|
320
325
|
return () => {
|
@@ -338,7 +343,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
338
343
|
};
|
339
344
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
340
345
|
return;
|
341
|
-
const r = {}, n =
|
346
|
+
const r = {}, n = Xr(this);
|
342
347
|
for (const o of this.$$s)
|
343
348
|
o in n && (r[o] = [t(o)]);
|
344
349
|
for (const o of this.attributes) {
|
@@ -349,7 +354,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
349
354
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
350
355
|
this.$$c = new this.$$ctor({
|
351
356
|
target: this.shadowRoot || this,
|
352
|
-
props:
|
357
|
+
props: dt(mt({}, this.$$d), {
|
353
358
|
$$slots: r,
|
354
359
|
$$scope: {
|
355
360
|
ctx: []
|
@@ -427,8 +432,8 @@ function He(e, t, r, n) {
|
|
427
432
|
return t;
|
428
433
|
}
|
429
434
|
}
|
430
|
-
function
|
431
|
-
let s = class extends
|
435
|
+
function nn(e, t, r, n, i, o) {
|
436
|
+
let s = class extends Qt {
|
432
437
|
constructor() {
|
433
438
|
super(e, r, i), this.$$p_d = t;
|
434
439
|
}
|
@@ -458,7 +463,7 @@ function tn(e, t, r, n, i, o) {
|
|
458
463
|
}), e.element = /** @type {any} */
|
459
464
|
s, s;
|
460
465
|
}
|
461
|
-
class
|
466
|
+
class on {
|
462
467
|
constructor() {
|
463
468
|
/**
|
464
469
|
* ### PRIVATE API
|
@@ -479,7 +484,7 @@ class rn {
|
|
479
484
|
}
|
480
485
|
/** @returns {void} */
|
481
486
|
$destroy() {
|
482
|
-
|
487
|
+
en(this, 1), this.$destroy = G;
|
483
488
|
}
|
484
489
|
/**
|
485
490
|
* @template {Extract<keyof Events, string>} K
|
@@ -501,18 +506,18 @@ class rn {
|
|
501
506
|
* @returns {void}
|
502
507
|
*/
|
503
508
|
$set(t) {
|
504
|
-
this.$$set && !
|
509
|
+
this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
505
510
|
}
|
506
511
|
}
|
507
|
-
const
|
508
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
509
|
-
function
|
512
|
+
const sn = "4";
|
513
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(sn);
|
514
|
+
function an(e, t) {
|
510
515
|
if (e) {
|
511
516
|
const r = document.createElement("style");
|
512
517
|
r.innerHTML = t, e.appendChild(r);
|
513
518
|
}
|
514
519
|
}
|
515
|
-
function
|
520
|
+
function ln(e, t) {
|
516
521
|
const r = new URL(t);
|
517
522
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
518
523
|
const i = document.createElement("style");
|
@@ -521,7 +526,7 @@ function sn(e, t) {
|
|
521
526
|
console.error("There was an error while trying to load client styling from URL", n);
|
522
527
|
});
|
523
528
|
}
|
524
|
-
function
|
529
|
+
function un(e, t, r) {
|
525
530
|
if (window.emMessageBus) {
|
526
531
|
const n = document.createElement("style");
|
527
532
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -530,7 +535,7 @@ function an(e, t, r) {
|
|
530
535
|
}
|
531
536
|
}
|
532
537
|
const ee = [];
|
533
|
-
function
|
538
|
+
function hn(e, t) {
|
534
539
|
return {
|
535
540
|
subscribe: Me(e, t).subscribe
|
536
541
|
};
|
@@ -539,7 +544,7 @@ function Me(e, t = G) {
|
|
539
544
|
let r;
|
540
545
|
const n = /* @__PURE__ */ new Set();
|
541
546
|
function i(a) {
|
542
|
-
if (
|
547
|
+
if (Xt(e, a) && (e = a, r)) {
|
543
548
|
const u = !ee.length;
|
544
549
|
for (const l of n)
|
545
550
|
l[1](), ee.push(l, e);
|
@@ -566,7 +571,7 @@ function le(e, t, r) {
|
|
566
571
|
if (!i.every(Boolean))
|
567
572
|
throw new Error("derived() expects stores as input, got a falsy value");
|
568
573
|
const o = t.length < 2;
|
569
|
-
return
|
574
|
+
return hn(r, (s, a) => {
|
570
575
|
let u = !1;
|
571
576
|
const l = [];
|
572
577
|
let h = 0, m = G;
|
@@ -577,7 +582,7 @@ function le(e, t, r) {
|
|
577
582
|
const g = t(n ? l[0] : l, s, a);
|
578
583
|
o ? s(g) : m = rt(g) ? g : G;
|
579
584
|
}, p = i.map(
|
580
|
-
(g, b) =>
|
585
|
+
(g, b) => Ur(
|
581
586
|
g,
|
582
587
|
(d) => {
|
583
588
|
l[b] = d, h &= ~(1 << b), u && f();
|
@@ -592,70 +597,70 @@ function le(e, t, r) {
|
|
592
597
|
};
|
593
598
|
});
|
594
599
|
}
|
595
|
-
function
|
600
|
+
function cn(e) {
|
596
601
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
597
602
|
}
|
598
|
-
var
|
599
|
-
return
|
603
|
+
var fn = function(t) {
|
604
|
+
return mn(t) && !dn(t);
|
600
605
|
};
|
601
|
-
function
|
606
|
+
function mn(e) {
|
602
607
|
return !!e && typeof e == "object";
|
603
608
|
}
|
604
|
-
function
|
609
|
+
function dn(e) {
|
605
610
|
var t = Object.prototype.toString.call(e);
|
606
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
611
|
+
return t === "[object RegExp]" || t === "[object Date]" || bn(e);
|
607
612
|
}
|
608
|
-
var
|
609
|
-
function
|
610
|
-
return e.$$typeof ===
|
613
|
+
var pn = typeof Symbol == "function" && Symbol.for, gn = pn ? Symbol.for("react.element") : 60103;
|
614
|
+
function bn(e) {
|
615
|
+
return e.$$typeof === gn;
|
611
616
|
}
|
612
|
-
function
|
617
|
+
function yn(e) {
|
613
618
|
return Array.isArray(e) ? [] : {};
|
614
619
|
}
|
615
620
|
function be(e, t) {
|
616
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ie(
|
621
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ie(yn(e), e, t) : e;
|
617
622
|
}
|
618
|
-
function
|
623
|
+
function vn(e, t, r) {
|
619
624
|
return e.concat(t).map(function(n) {
|
620
625
|
return be(n, r);
|
621
626
|
});
|
622
627
|
}
|
623
|
-
function
|
628
|
+
function _n(e, t) {
|
624
629
|
if (!t.customMerge)
|
625
630
|
return ie;
|
626
631
|
var r = t.customMerge(e);
|
627
632
|
return typeof r == "function" ? r : ie;
|
628
633
|
}
|
629
|
-
function
|
634
|
+
function En(e) {
|
630
635
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
631
636
|
return Object.propertyIsEnumerable.call(e, t);
|
632
637
|
}) : [];
|
633
638
|
}
|
634
|
-
function
|
635
|
-
return Object.keys(e).concat(
|
639
|
+
function vt(e) {
|
640
|
+
return Object.keys(e).concat(En(e));
|
636
641
|
}
|
637
|
-
function
|
642
|
+
function qt(e, t) {
|
638
643
|
try {
|
639
644
|
return t in e;
|
640
645
|
} catch (r) {
|
641
646
|
return !1;
|
642
647
|
}
|
643
648
|
}
|
644
|
-
function
|
645
|
-
return
|
649
|
+
function xn(e, t) {
|
650
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
646
651
|
}
|
647
|
-
function
|
652
|
+
function Cn(e, t, r) {
|
648
653
|
var n = {};
|
649
|
-
return r.isMergeableObject(e) &&
|
654
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
650
655
|
n[i] = be(e[i], r);
|
651
|
-
}),
|
652
|
-
|
656
|
+
}), vt(t).forEach(function(i) {
|
657
|
+
xn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _n(i, r)(e[i], t[i], r) : n[i] = be(t[i], r));
|
653
658
|
}), n;
|
654
659
|
}
|
655
660
|
function ie(e, t, r) {
|
656
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
661
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vn, r.isMergeableObject = r.isMergeableObject || fn, r.cloneUnlessOtherwiseSpecified = be;
|
657
662
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
658
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
663
|
+
return o ? n ? r.arrayMerge(e, t, r) : Cn(e, t, r) : be(t, r);
|
659
664
|
}
|
660
665
|
ie.all = function(t, r) {
|
661
666
|
if (!Array.isArray(t))
|
@@ -664,13 +669,28 @@ ie.all = function(t, r) {
|
|
664
669
|
return ie(n, i, r);
|
665
670
|
}, {});
|
666
671
|
};
|
667
|
-
var
|
668
|
-
const
|
672
|
+
var wn = ie, Hn = wn;
|
673
|
+
const Sn = /* @__PURE__ */ cn(Hn);
|
674
|
+
/*! *****************************************************************************
|
675
|
+
Copyright (c) Microsoft Corporation.
|
676
|
+
|
677
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
678
|
+
purpose with or without fee is hereby granted.
|
679
|
+
|
680
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
681
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
682
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
683
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
684
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
685
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
686
|
+
PERFORMANCE OF THIS SOFTWARE.
|
687
|
+
***************************************************************************** */
|
669
688
|
var ze = function(e, t) {
|
670
689
|
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
671
690
|
r.__proto__ = n;
|
672
691
|
} || function(r, n) {
|
673
|
-
for (var i in n)
|
692
|
+
for (var i in n)
|
693
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
674
694
|
}, ze(e, t);
|
675
695
|
};
|
676
696
|
function Ne(e, t) {
|
@@ -686,72 +706,77 @@ var E = function() {
|
|
686
706
|
return E = Object.assign || function(t) {
|
687
707
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
688
708
|
r = arguments[n];
|
689
|
-
for (var o in r)
|
709
|
+
for (var o in r)
|
710
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
690
711
|
}
|
691
712
|
return t;
|
692
713
|
}, E.apply(this, arguments);
|
693
714
|
};
|
694
|
-
function
|
715
|
+
function Tn(e, t) {
|
695
716
|
var r = {};
|
696
|
-
for (var n in e)
|
717
|
+
for (var n in e)
|
718
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
697
719
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
698
720
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
699
721
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
700
722
|
return r;
|
701
723
|
}
|
702
724
|
function Ue(e, t, r) {
|
703
|
-
if (
|
704
|
-
(
|
705
|
-
|
725
|
+
if (arguments.length === 2)
|
726
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
727
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
728
|
+
return e.concat(o || t);
|
706
729
|
}
|
707
730
|
function Ge(e, t) {
|
708
|
-
var r = t && t.cache ? t.cache :
|
731
|
+
var r = t && t.cache ? t.cache : Pn, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : Bn;
|
709
732
|
return i(e, {
|
710
733
|
cache: r,
|
711
734
|
serializer: n
|
712
735
|
});
|
713
736
|
}
|
714
|
-
function
|
737
|
+
function An(e) {
|
715
738
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
716
739
|
}
|
717
|
-
function
|
718
|
-
var i =
|
740
|
+
function Jt(e, t, r, n) {
|
741
|
+
var i = An(n) ? n : r(n), o = t.get(i);
|
719
742
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
720
743
|
}
|
721
|
-
function
|
744
|
+
function Yt(e, t, r) {
|
722
745
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
723
746
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
724
747
|
}
|
725
|
-
function
|
748
|
+
function it(e, t, r, n, i) {
|
726
749
|
return r.bind(t, e, n, i);
|
727
750
|
}
|
728
|
-
function An(e, t) {
|
729
|
-
var r = e.length === 1 ? Tn : Qt;
|
730
|
-
return qt(e, this, r, t.cache.create(), t.serializer);
|
731
|
-
}
|
732
751
|
function Bn(e, t) {
|
733
|
-
|
752
|
+
var r = e.length === 1 ? Jt : Yt;
|
753
|
+
return it(e, this, r, t.cache.create(), t.serializer);
|
734
754
|
}
|
735
|
-
|
755
|
+
function In(e, t) {
|
756
|
+
return it(e, this, Yt, t.cache.create(), t.serializer);
|
757
|
+
}
|
758
|
+
function Mn(e, t) {
|
759
|
+
return it(e, this, Jt, t.cache.create(), t.serializer);
|
760
|
+
}
|
761
|
+
var Nn = function() {
|
736
762
|
return JSON.stringify(arguments);
|
737
|
-
}
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
}()
|
749
|
-
), Nn = {
|
763
|
+
};
|
764
|
+
function ot() {
|
765
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
766
|
+
}
|
767
|
+
ot.prototype.get = function(e) {
|
768
|
+
return this.cache[e];
|
769
|
+
};
|
770
|
+
ot.prototype.set = function(e, t) {
|
771
|
+
this.cache[e] = t;
|
772
|
+
};
|
773
|
+
var Pn = {
|
750
774
|
create: function() {
|
751
|
-
return new
|
775
|
+
return new ot();
|
752
776
|
}
|
753
777
|
}, ke = {
|
754
|
-
variadic:
|
778
|
+
variadic: In,
|
779
|
+
monadic: Mn
|
755
780
|
}, y;
|
756
781
|
(function(e) {
|
757
782
|
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";
|
@@ -764,43 +789,43 @@ var oe;
|
|
764
789
|
(function(e) {
|
765
790
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
766
791
|
})(oe || (oe = {}));
|
767
|
-
function
|
792
|
+
function _t(e) {
|
768
793
|
return e.type === T.literal;
|
769
794
|
}
|
770
|
-
function
|
795
|
+
function Ln(e) {
|
771
796
|
return e.type === T.argument;
|
772
797
|
}
|
773
|
-
function
|
798
|
+
function Kt(e) {
|
774
799
|
return e.type === T.number;
|
775
800
|
}
|
776
|
-
function
|
801
|
+
function er(e) {
|
777
802
|
return e.type === T.date;
|
778
803
|
}
|
779
|
-
function
|
804
|
+
function tr(e) {
|
780
805
|
return e.type === T.time;
|
781
806
|
}
|
782
|
-
function
|
807
|
+
function rr(e) {
|
783
808
|
return e.type === T.select;
|
784
809
|
}
|
785
|
-
function
|
810
|
+
function nr(e) {
|
786
811
|
return e.type === T.plural;
|
787
812
|
}
|
788
|
-
function
|
813
|
+
function On(e) {
|
789
814
|
return e.type === T.pound;
|
790
815
|
}
|
791
|
-
function
|
816
|
+
function ir(e) {
|
792
817
|
return e.type === T.tag;
|
793
818
|
}
|
794
|
-
function
|
819
|
+
function or(e) {
|
795
820
|
return !!(e && typeof e == "object" && e.type === oe.number);
|
796
821
|
}
|
797
822
|
function Ze(e) {
|
798
823
|
return !!(e && typeof e == "object" && e.type === oe.dateTime);
|
799
824
|
}
|
800
|
-
var
|
801
|
-
function
|
825
|
+
var sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
|
826
|
+
function Rn(e) {
|
802
827
|
var t = {};
|
803
|
-
return e.replace(
|
828
|
+
return e.replace(Fn, function(r) {
|
804
829
|
var n = r.length;
|
805
830
|
switch (r[0]) {
|
806
831
|
case "G":
|
@@ -889,11 +914,11 @@ function Fn(e) {
|
|
889
914
|
return "";
|
890
915
|
}), t;
|
891
916
|
}
|
892
|
-
var
|
893
|
-
function
|
917
|
+
var Dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
918
|
+
function Un(e) {
|
894
919
|
if (e.length === 0)
|
895
920
|
throw new Error("Number skeleton cannot be empty");
|
896
|
-
for (var t = e.split(
|
921
|
+
for (var t = e.split(Dn).filter(function(f) {
|
897
922
|
return f.length > 0;
|
898
923
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
899
924
|
var o = i[n], s = o.split("/");
|
@@ -908,17 +933,17 @@ function Dn(e) {
|
|
908
933
|
}
|
909
934
|
return r;
|
910
935
|
}
|
911
|
-
function
|
936
|
+
function Gn(e) {
|
912
937
|
return e.replace(/^(.*?)-/, "");
|
913
938
|
}
|
914
|
-
var
|
915
|
-
function
|
939
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
940
|
+
function xt(e) {
|
916
941
|
var t = {};
|
917
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
942
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(r, n, i) {
|
918
943
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
919
944
|
}), t;
|
920
945
|
}
|
921
|
-
function
|
946
|
+
function ur(e) {
|
922
947
|
switch (e) {
|
923
948
|
case "sign-auto":
|
924
949
|
return {
|
@@ -958,7 +983,7 @@ function ar(e) {
|
|
958
983
|
};
|
959
984
|
}
|
960
985
|
}
|
961
|
-
function
|
986
|
+
function $n(e) {
|
962
987
|
var t;
|
963
988
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
964
989
|
notation: "engineering"
|
@@ -966,17 +991,17 @@ function kn(e) {
|
|
966
991
|
notation: "scientific"
|
967
992
|
}, e = e.slice(1)), t) {
|
968
993
|
var r = e.slice(0, 2);
|
969
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
994
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
970
995
|
throw new Error("Malformed concise eng/scientific notation");
|
971
996
|
t.minimumIntegerDigits = e.length;
|
972
997
|
}
|
973
998
|
return t;
|
974
999
|
}
|
975
|
-
function
|
976
|
-
var t = {}, r =
|
1000
|
+
function Ct(e) {
|
1001
|
+
var t = {}, r = ur(e);
|
977
1002
|
return r || t;
|
978
1003
|
}
|
979
|
-
function
|
1004
|
+
function jn(e) {
|
980
1005
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
981
1006
|
var i = n[r];
|
982
1007
|
switch (i.stem) {
|
@@ -1000,7 +1025,7 @@ function $n(e) {
|
|
1000
1025
|
continue;
|
1001
1026
|
case "measure-unit":
|
1002
1027
|
case "unit":
|
1003
|
-
t.style = "unit", t.unit =
|
1028
|
+
t.style = "unit", t.unit = Gn(i.options[0]);
|
1004
1029
|
continue;
|
1005
1030
|
case "compact-short":
|
1006
1031
|
case "K":
|
@@ -1012,12 +1037,12 @@ function $n(e) {
|
|
1012
1037
|
continue;
|
1013
1038
|
case "scientific":
|
1014
1039
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1015
|
-
return E(E({}, u),
|
1040
|
+
return E(E({}, u), Ct(l));
|
1016
1041
|
}, {}));
|
1017
1042
|
continue;
|
1018
1043
|
case "engineering":
|
1019
1044
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1020
|
-
return E(E({}, u),
|
1045
|
+
return E(E({}, u), Ct(l));
|
1021
1046
|
}, {}));
|
1022
1047
|
continue;
|
1023
1048
|
case "notation-simple":
|
@@ -1062,7 +1087,7 @@ function $n(e) {
|
|
1062
1087
|
case "integer-width":
|
1063
1088
|
if (i.options.length > 1)
|
1064
1089
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1065
|
-
i.options[0].replace(
|
1090
|
+
i.options[0].replace(kn, function(u, l, h, m, f, p) {
|
1066
1091
|
if (l)
|
1067
1092
|
t.minimumIntegerDigits = h.length;
|
1068
1093
|
else {
|
@@ -1075,27 +1100,27 @@ function $n(e) {
|
|
1075
1100
|
});
|
1076
1101
|
continue;
|
1077
1102
|
}
|
1078
|
-
if (
|
1103
|
+
if (lr.test(i.stem)) {
|
1079
1104
|
t.minimumIntegerDigits = i.stem.length;
|
1080
1105
|
continue;
|
1081
1106
|
}
|
1082
|
-
if (
|
1107
|
+
if (Et.test(i.stem)) {
|
1083
1108
|
if (i.options.length > 1)
|
1084
1109
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1085
|
-
i.stem.replace(
|
1110
|
+
i.stem.replace(Et, function(u, l, h, m, f, p) {
|
1086
1111
|
return h === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1087
1112
|
});
|
1088
1113
|
var o = i.options[0];
|
1089
|
-
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t),
|
1114
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), xt(o)));
|
1090
1115
|
continue;
|
1091
1116
|
}
|
1092
|
-
if (
|
1093
|
-
t = E(E({}, t),
|
1117
|
+
if (ar.test(i.stem)) {
|
1118
|
+
t = E(E({}, t), xt(i.stem));
|
1094
1119
|
continue;
|
1095
1120
|
}
|
1096
|
-
var s =
|
1121
|
+
var s = ur(i.stem);
|
1097
1122
|
s && (t = E(E({}, t), s));
|
1098
|
-
var a =
|
1123
|
+
var a = $n(i.stem);
|
1099
1124
|
a && (t = E(E({}, t), a));
|
1100
1125
|
}
|
1101
1126
|
return t;
|
@@ -2515,22 +2540,23 @@ var we = {
|
|
2515
2540
|
"h"
|
2516
2541
|
]
|
2517
2542
|
};
|
2518
|
-
function
|
2543
|
+
function Vn(e, t) {
|
2519
2544
|
for (var r = "", n = 0; n < e.length; n++) {
|
2520
2545
|
var i = e.charAt(n);
|
2521
2546
|
if (i === "j") {
|
2522
2547
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2523
2548
|
o++, n++;
|
2524
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
2549
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Xn(t);
|
2525
2550
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2526
2551
|
r += u;
|
2527
2552
|
for (; s-- > 0; )
|
2528
2553
|
r = l + r;
|
2529
|
-
} else
|
2554
|
+
} else
|
2555
|
+
i === "J" ? r += "H" : r += i;
|
2530
2556
|
}
|
2531
2557
|
return r;
|
2532
2558
|
}
|
2533
|
-
function
|
2559
|
+
function Xn(e) {
|
2534
2560
|
var t = e.hourCycle;
|
2535
2561
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2536
2562
|
e.hourCycles && // @ts-ignore
|
@@ -2552,20 +2578,20 @@ function Vn(e) {
|
|
2552
2578
|
var i = we[n || ""] || we[r || ""] || we["".concat(r, "-001")] || we["001"];
|
2553
2579
|
return i[0];
|
2554
2580
|
}
|
2555
|
-
var $e,
|
2581
|
+
var $e, Wn = new RegExp("^".concat(sr.source, "*")), zn = new RegExp("".concat(sr.source, "*$"));
|
2556
2582
|
function v(e, t) {
|
2557
2583
|
return { start: e, end: t };
|
2558
2584
|
}
|
2559
|
-
var
|
2585
|
+
var Zn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, qn = !!Object.fromEntries, Jn = !!String.prototype.codePointAt, Yn = !!String.prototype.trimStart, Kn = !!String.prototype.trimEnd, ei = !!Number.isSafeInteger, ti = ei ? Number.isSafeInteger : function(e) {
|
2560
2586
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2561
2587
|
}, Qe = !0;
|
2562
2588
|
try {
|
2563
|
-
var
|
2564
|
-
Qe = (($e =
|
2589
|
+
var ri = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2590
|
+
Qe = (($e = ri.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
2565
2591
|
} catch (e) {
|
2566
2592
|
Qe = !1;
|
2567
2593
|
}
|
2568
|
-
var
|
2594
|
+
var wt = Zn ? (
|
2569
2595
|
// Native
|
2570
2596
|
function(t, r, n) {
|
2571
2597
|
return t.startsWith(r, n);
|
@@ -2575,7 +2601,7 @@ var xt = zn ? (
|
|
2575
2601
|
function(t, r, n) {
|
2576
2602
|
return t.slice(n, n + r.length) === r;
|
2577
2603
|
}
|
2578
|
-
), qe =
|
2604
|
+
), qe = Qn ? String.fromCodePoint : (
|
2579
2605
|
// IE11
|
2580
2606
|
function() {
|
2581
2607
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2587,9 +2613,9 @@ var xt = zn ? (
|
|
2587
2613
|
}
|
2588
2614
|
return n;
|
2589
2615
|
}
|
2590
|
-
),
|
2616
|
+
), Ht = (
|
2591
2617
|
// native
|
2592
|
-
|
2618
|
+
qn ? Object.fromEntries : (
|
2593
2619
|
// Ponyfill
|
2594
2620
|
function(t) {
|
2595
2621
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2599,7 +2625,7 @@ var xt = zn ? (
|
|
2599
2625
|
return r;
|
2600
2626
|
}
|
2601
2627
|
)
|
2602
|
-
),
|
2628
|
+
), hr = Jn ? (
|
2603
2629
|
// Native
|
2604
2630
|
function(t, r) {
|
2605
2631
|
return t.codePointAt(r);
|
@@ -2613,7 +2639,7 @@ var xt = zn ? (
|
|
2613
2639
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2614
2640
|
}
|
2615
2641
|
}
|
2616
|
-
),
|
2642
|
+
), ni = Yn ? (
|
2617
2643
|
// Native
|
2618
2644
|
function(t) {
|
2619
2645
|
return t.trimStart();
|
@@ -2621,9 +2647,9 @@ var xt = zn ? (
|
|
2621
2647
|
) : (
|
2622
2648
|
// Ponyfill
|
2623
2649
|
function(t) {
|
2624
|
-
return t.replace(
|
2650
|
+
return t.replace(Wn, "");
|
2625
2651
|
}
|
2626
|
-
),
|
2652
|
+
), ii = Kn ? (
|
2627
2653
|
// Native
|
2628
2654
|
function(t) {
|
2629
2655
|
return t.trimEnd();
|
@@ -2631,32 +2657,32 @@ var xt = zn ? (
|
|
2631
2657
|
) : (
|
2632
2658
|
// Ponyfill
|
2633
2659
|
function(t) {
|
2634
|
-
return t.replace(
|
2660
|
+
return t.replace(zn, "");
|
2635
2661
|
}
|
2636
2662
|
);
|
2637
|
-
function
|
2663
|
+
function cr(e, t) {
|
2638
2664
|
return new RegExp(e, t);
|
2639
2665
|
}
|
2640
2666
|
var Je;
|
2641
2667
|
if (Qe) {
|
2642
|
-
var
|
2668
|
+
var St = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2643
2669
|
Je = function(t, r) {
|
2644
2670
|
var n;
|
2645
|
-
|
2646
|
-
var i =
|
2671
|
+
St.lastIndex = r;
|
2672
|
+
var i = St.exec(t);
|
2647
2673
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2648
2674
|
};
|
2649
2675
|
} else
|
2650
2676
|
Je = function(t, r) {
|
2651
2677
|
for (var n = []; ; ) {
|
2652
|
-
var i =
|
2653
|
-
if (i === void 0 ||
|
2678
|
+
var i = hr(t, r);
|
2679
|
+
if (i === void 0 || fr(i) || li(i))
|
2654
2680
|
break;
|
2655
2681
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2656
2682
|
}
|
2657
2683
|
return qe.apply(void 0, n);
|
2658
2684
|
};
|
2659
|
-
var
|
2685
|
+
var oi = (
|
2660
2686
|
/** @class */
|
2661
2687
|
function() {
|
2662
2688
|
function e(t, r) {
|
@@ -2738,7 +2764,7 @@ var ii = (
|
|
2738
2764
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2739
2765
|
}, e.prototype.parseTagName = function() {
|
2740
2766
|
var t = this.offset();
|
2741
|
-
for (this.bump(); !this.isEOF() &&
|
2767
|
+
for (this.bump(); !this.isEOF() && ai(this.char()); )
|
2742
2768
|
this.bump();
|
2743
2769
|
return this.message.slice(t, this.offset());
|
2744
2770
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2767,7 +2793,7 @@ var ii = (
|
|
2767
2793
|
};
|
2768
2794
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2769
2795
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2770
|
-
!
|
2796
|
+
!si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2771
2797
|
}, e.prototype.tryParseQuote = function(t) {
|
2772
2798
|
if (this.isEOF() || this.char() !== 39)
|
2773
2799
|
return null;
|
@@ -2854,7 +2880,7 @@ var ii = (
|
|
2854
2880
|
var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2855
2881
|
if (m.err)
|
2856
2882
|
return m;
|
2857
|
-
var f =
|
2883
|
+
var f = ii(m.val);
|
2858
2884
|
if (f.length === 0)
|
2859
2885
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2860
2886
|
var p = v(h, this.clonePosition());
|
@@ -2864,8 +2890,8 @@ var ii = (
|
|
2864
2890
|
if (g.err)
|
2865
2891
|
return g;
|
2866
2892
|
var b = v(i, this.clonePosition());
|
2867
|
-
if (l &&
|
2868
|
-
var d =
|
2893
|
+
if (l && wt(l == null ? void 0 : l.style, "::", 0)) {
|
2894
|
+
var d = ni(l.style.slice(2));
|
2869
2895
|
if (a === "number") {
|
2870
2896
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2871
2897
|
return m.err ? m : {
|
@@ -2876,12 +2902,12 @@ var ii = (
|
|
2876
2902
|
if (d.length === 0)
|
2877
2903
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2878
2904
|
var H = d;
|
2879
|
-
this.locale && (H =
|
2905
|
+
this.locale && (H = Vn(d, this.locale));
|
2880
2906
|
var f = {
|
2881
2907
|
type: oe.dateTime,
|
2882
2908
|
pattern: H,
|
2883
2909
|
location: l.styleLocation,
|
2884
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2910
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(H) : {}
|
2885
2911
|
}, _ = a === "date" ? T.date : T.time;
|
2886
2912
|
return {
|
2887
2913
|
val: { type: _, value: n, location: b, style: f },
|
@@ -2927,7 +2953,7 @@ var ii = (
|
|
2927
2953
|
val: {
|
2928
2954
|
type: T.select,
|
2929
2955
|
value: n,
|
2930
|
-
options:
|
2956
|
+
options: Ht(k.val),
|
2931
2957
|
location: w
|
2932
2958
|
},
|
2933
2959
|
err: null
|
@@ -2935,7 +2961,7 @@ var ii = (
|
|
2935
2961
|
val: {
|
2936
2962
|
type: T.plural,
|
2937
2963
|
value: n,
|
2938
|
-
options:
|
2964
|
+
options: Ht(k.val),
|
2939
2965
|
offset: I,
|
2940
2966
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2941
2967
|
location: w
|
@@ -2986,7 +3012,7 @@ var ii = (
|
|
2986
3012
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2987
3013
|
var n = [];
|
2988
3014
|
try {
|
2989
|
-
n =
|
3015
|
+
n = Un(t);
|
2990
3016
|
} catch (i) {
|
2991
3017
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2992
3018
|
}
|
@@ -2995,7 +3021,7 @@ var ii = (
|
|
2995
3021
|
type: oe.number,
|
2996
3022
|
tokens: n,
|
2997
3023
|
location: r,
|
2998
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3024
|
+
parsedOptions: this.shouldParseSkeletons ? jn(n) : {}
|
2999
3025
|
},
|
3000
3026
|
err: null
|
3001
3027
|
};
|
@@ -3043,7 +3069,7 @@ var ii = (
|
|
3043
3069
|
break;
|
3044
3070
|
}
|
3045
3071
|
var u = v(i, this.clonePosition());
|
3046
|
-
return o ? (s *= n,
|
3072
|
+
return o ? (s *= n, ti(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3047
3073
|
}, e.prototype.offset = function() {
|
3048
3074
|
return this.position.offset;
|
3049
3075
|
}, e.prototype.isEOF = function() {
|
@@ -3058,7 +3084,7 @@ var ii = (
|
|
3058
3084
|
var t = this.position.offset;
|
3059
3085
|
if (t >= this.message.length)
|
3060
3086
|
throw Error("out of bound");
|
3061
|
-
var r =
|
3087
|
+
var r = hr(this.message, t);
|
3062
3088
|
if (r === void 0)
|
3063
3089
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3064
3090
|
return r;
|
@@ -3077,7 +3103,7 @@ var ii = (
|
|
3077
3103
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
3078
3104
|
}
|
3079
3105
|
}, e.prototype.bumpIf = function(t) {
|
3080
|
-
if (
|
3106
|
+
if (wt(this.message, t, this.offset())) {
|
3081
3107
|
for (var r = 0; r < t.length; r++)
|
3082
3108
|
this.bump();
|
3083
3109
|
return !0;
|
@@ -3099,7 +3125,7 @@ var ii = (
|
|
3099
3125
|
break;
|
3100
3126
|
}
|
3101
3127
|
}, e.prototype.bumpSpace = function() {
|
3102
|
-
for (; !this.isEOF() &&
|
3128
|
+
for (; !this.isEOF() && fr(this.char()); )
|
3103
3129
|
this.bump();
|
3104
3130
|
}, e.prototype.peek = function() {
|
3105
3131
|
if (this.isEOF())
|
@@ -3112,29 +3138,30 @@ var ii = (
|
|
3112
3138
|
function Ye(e) {
|
3113
3139
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3114
3140
|
}
|
3115
|
-
function
|
3141
|
+
function si(e) {
|
3116
3142
|
return Ye(e) || e === 47;
|
3117
3143
|
}
|
3118
|
-
function
|
3144
|
+
function ai(e) {
|
3119
3145
|
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;
|
3120
3146
|
}
|
3121
|
-
function
|
3147
|
+
function fr(e) {
|
3122
3148
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3123
3149
|
}
|
3124
|
-
function
|
3150
|
+
function li(e) {
|
3125
3151
|
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;
|
3126
3152
|
}
|
3127
3153
|
function Ke(e) {
|
3128
3154
|
e.forEach(function(t) {
|
3129
|
-
if (delete t.location,
|
3155
|
+
if (delete t.location, rr(t) || nr(t))
|
3130
3156
|
for (var r in t.options)
|
3131
3157
|
delete t.options[r].location, Ke(t.options[r].value);
|
3132
|
-
else
|
3158
|
+
else
|
3159
|
+
Kt(t) && or(t.style) || (er(t) || tr(t)) && Ze(t.style) ? delete t.style.location : ir(t) && Ke(t.children);
|
3133
3160
|
});
|
3134
3161
|
}
|
3135
|
-
function
|
3162
|
+
function ui(e, t) {
|
3136
3163
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3137
|
-
var r = new
|
3164
|
+
var r = new oi(e, t).parse();
|
3138
3165
|
if (r.err) {
|
3139
3166
|
var n = SyntaxError(y[r.err.kind]);
|
3140
3167
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3157,7 +3184,7 @@ var Pe = (
|
|
3157
3184
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3158
3185
|
}, t;
|
3159
3186
|
}(Error)
|
3160
|
-
),
|
3187
|
+
), Tt = (
|
3161
3188
|
/** @class */
|
3162
3189
|
function(e) {
|
3163
3190
|
Ne(t, e);
|
@@ -3166,7 +3193,7 @@ var Pe = (
|
|
3166
3193
|
}
|
3167
3194
|
return t;
|
3168
3195
|
}(Pe)
|
3169
|
-
),
|
3196
|
+
), hi = (
|
3170
3197
|
/** @class */
|
3171
3198
|
function(e) {
|
3172
3199
|
Ne(t, e);
|
@@ -3175,7 +3202,7 @@ var Pe = (
|
|
3175
3202
|
}
|
3176
3203
|
return t;
|
3177
3204
|
}(Pe)
|
3178
|
-
),
|
3205
|
+
), ci = (
|
3179
3206
|
/** @class */
|
3180
3207
|
function(e) {
|
3181
3208
|
Ne(t, e);
|
@@ -3188,17 +3215,17 @@ var Pe = (
|
|
3188
3215
|
(function(e) {
|
3189
3216
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3190
3217
|
})(F || (F = {}));
|
3191
|
-
function
|
3218
|
+
function fi(e) {
|
3192
3219
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3193
3220
|
var n = t[t.length - 1];
|
3194
3221
|
return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
|
3195
3222
|
}, []);
|
3196
3223
|
}
|
3197
|
-
function
|
3224
|
+
function mi(e) {
|
3198
3225
|
return typeof e == "function";
|
3199
3226
|
}
|
3200
3227
|
function Se(e, t, r, n, i, o, s) {
|
3201
|
-
if (e.length === 1 &&
|
3228
|
+
if (e.length === 1 && _t(e[0]))
|
3202
3229
|
return [
|
3203
3230
|
{
|
3204
3231
|
type: F.literal,
|
@@ -3207,14 +3234,14 @@ function Se(e, t, r, n, i, o, s) {
|
|
3207
3234
|
];
|
3208
3235
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
3209
3236
|
var h = l[u];
|
3210
|
-
if (
|
3237
|
+
if (_t(h)) {
|
3211
3238
|
a.push({
|
3212
3239
|
type: F.literal,
|
3213
3240
|
value: h.value
|
3214
3241
|
});
|
3215
3242
|
continue;
|
3216
3243
|
}
|
3217
|
-
if (
|
3244
|
+
if (On(h)) {
|
3218
3245
|
typeof o == "number" && a.push({
|
3219
3246
|
type: F.literal,
|
3220
3247
|
value: r.getNumberFormat(t).format(o)
|
@@ -3223,16 +3250,16 @@ function Se(e, t, r, n, i, o, s) {
|
|
3223
3250
|
}
|
3224
3251
|
var m = h.value;
|
3225
3252
|
if (!(i && m in i))
|
3226
|
-
throw new
|
3253
|
+
throw new ci(m, s);
|
3227
3254
|
var f = i[m];
|
3228
|
-
if (
|
3255
|
+
if (Ln(h)) {
|
3229
3256
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3230
3257
|
type: typeof f == "string" ? F.literal : F.object,
|
3231
3258
|
value: f
|
3232
3259
|
});
|
3233
3260
|
continue;
|
3234
3261
|
}
|
3235
|
-
if (
|
3262
|
+
if (er(h)) {
|
3236
3263
|
var p = typeof h.style == "string" ? n.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
|
3237
3264
|
a.push({
|
3238
3265
|
type: F.literal,
|
@@ -3240,7 +3267,7 @@ function Se(e, t, r, n, i, o, s) {
|
|
3240
3267
|
});
|
3241
3268
|
continue;
|
3242
3269
|
}
|
3243
|
-
if (
|
3270
|
+
if (tr(h)) {
|
3244
3271
|
var p = typeof h.style == "string" ? n.time[h.style] : Ze(h.style) ? h.style.parsedOptions : n.time.medium;
|
3245
3272
|
a.push({
|
3246
3273
|
type: F.literal,
|
@@ -3248,18 +3275,18 @@ function Se(e, t, r, n, i, o, s) {
|
|
3248
3275
|
});
|
3249
3276
|
continue;
|
3250
3277
|
}
|
3251
|
-
if (
|
3252
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
3278
|
+
if (Kt(h)) {
|
3279
|
+
var p = typeof h.style == "string" ? n.number[h.style] : or(h.style) ? h.style.parsedOptions : void 0;
|
3253
3280
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3254
3281
|
type: F.literal,
|
3255
3282
|
value: r.getNumberFormat(t, p).format(f)
|
3256
3283
|
});
|
3257
3284
|
continue;
|
3258
3285
|
}
|
3259
|
-
if (
|
3286
|
+
if (ir(h)) {
|
3260
3287
|
var g = h.children, b = h.value, d = i[b];
|
3261
|
-
if (!
|
3262
|
-
throw new
|
3288
|
+
if (!mi(d))
|
3289
|
+
throw new hi(b, "function", s);
|
3263
3290
|
var H = Se(g, t, r, n, i, o), _ = d(H.map(function(I) {
|
3264
3291
|
return I.value;
|
3265
3292
|
}));
|
@@ -3270,14 +3297,14 @@ function Se(e, t, r, n, i, o, s) {
|
|
3270
3297
|
};
|
3271
3298
|
}));
|
3272
3299
|
}
|
3273
|
-
if (
|
3300
|
+
if (rr(h)) {
|
3274
3301
|
var x = h.options[f] || h.options.other;
|
3275
3302
|
if (!x)
|
3276
|
-
throw new
|
3303
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
3277
3304
|
a.push.apply(a, Se(x.value, t, r, n, i));
|
3278
3305
|
continue;
|
3279
3306
|
}
|
3280
|
-
if (
|
3307
|
+
if (nr(h)) {
|
3281
3308
|
var x = h.options["=".concat(f)];
|
3282
3309
|
if (!x) {
|
3283
3310
|
if (!Intl.PluralRules)
|
@@ -3288,21 +3315,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3288
3315
|
x = h.options[L] || h.options.other;
|
3289
3316
|
}
|
3290
3317
|
if (!x)
|
3291
|
-
throw new
|
3318
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
3292
3319
|
a.push.apply(a, Se(x.value, t, r, n, i, f - (h.offset || 0)));
|
3293
3320
|
continue;
|
3294
3321
|
}
|
3295
3322
|
}
|
3296
|
-
return
|
3323
|
+
return fi(a);
|
3297
3324
|
}
|
3298
|
-
function
|
3325
|
+
function di(e, t) {
|
3299
3326
|
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3300
3327
|
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
3301
3328
|
}, {})) : e;
|
3302
3329
|
}
|
3303
|
-
function
|
3330
|
+
function pi(e, t) {
|
3304
3331
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3305
|
-
return r[n] =
|
3332
|
+
return r[n] = di(e[n], t[n]), r;
|
3306
3333
|
}, E({}, e)) : e;
|
3307
3334
|
}
|
3308
3335
|
function je(e) {
|
@@ -3319,7 +3346,7 @@ function je(e) {
|
|
3319
3346
|
}
|
3320
3347
|
};
|
3321
3348
|
}
|
3322
|
-
function
|
3349
|
+
function gi(e) {
|
3323
3350
|
return e === void 0 && (e = {
|
3324
3351
|
number: {},
|
3325
3352
|
dateTime: {},
|
@@ -3351,7 +3378,7 @@ function pi(e) {
|
|
3351
3378
|
})
|
3352
3379
|
};
|
3353
3380
|
}
|
3354
|
-
var
|
3381
|
+
var bi = (
|
3355
3382
|
/** @class */
|
3356
3383
|
function() {
|
3357
3384
|
function e(t, r, n, i) {
|
@@ -3383,13 +3410,13 @@ var gi = (
|
|
3383
3410
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3384
3411
|
var s = i || {};
|
3385
3412
|
s.formatters;
|
3386
|
-
var a =
|
3413
|
+
var a = Tn(s, ["formatters"]);
|
3387
3414
|
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
3388
3415
|
} else
|
3389
3416
|
this.ast = t;
|
3390
3417
|
if (!Array.isArray(this.ast))
|
3391
3418
|
throw new TypeError("A message must be provided as a String or AST.");
|
3392
|
-
this.formats =
|
3419
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
3393
3420
|
}
|
3394
3421
|
return Object.defineProperty(e, "defaultLocale", {
|
3395
3422
|
get: function() {
|
@@ -3402,7 +3429,7 @@ var gi = (
|
|
3402
3429
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3403
3430
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3404
3431
|
}
|
3405
|
-
}, e.__parse =
|
3432
|
+
}, e.__parse = ui, e.formats = {
|
3406
3433
|
number: {
|
3407
3434
|
integer: {
|
3408
3435
|
maximumFractionDigits: 0
|
@@ -3463,7 +3490,7 @@ var gi = (
|
|
3463
3490
|
}, e;
|
3464
3491
|
}()
|
3465
3492
|
);
|
3466
|
-
function
|
3493
|
+
function yi(e, t) {
|
3467
3494
|
if (t == null)
|
3468
3495
|
return;
|
3469
3496
|
if (t in e)
|
@@ -3484,60 +3511,60 @@ function bi(e, t) {
|
|
3484
3511
|
n = void 0;
|
3485
3512
|
return n;
|
3486
3513
|
}
|
3487
|
-
const W = {},
|
3514
|
+
const W = {}, vi = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), mr = (e, t) => {
|
3488
3515
|
if (t == null)
|
3489
3516
|
return;
|
3490
3517
|
if (t in W && e in W[t])
|
3491
3518
|
return W[t][e];
|
3492
3519
|
const r = Le(t);
|
3493
3520
|
for (let n = 0; n < r.length; n++) {
|
3494
|
-
const i = r[n], o =
|
3521
|
+
const i = r[n], o = Ei(i, e);
|
3495
3522
|
if (o)
|
3496
|
-
return
|
3523
|
+
return vi(e, t, o);
|
3497
3524
|
}
|
3498
3525
|
};
|
3499
|
-
let
|
3526
|
+
let st;
|
3500
3527
|
const ue = Me({});
|
3501
|
-
function
|
3502
|
-
return
|
3528
|
+
function _i(e) {
|
3529
|
+
return st[e] || null;
|
3503
3530
|
}
|
3504
|
-
function
|
3505
|
-
return e in
|
3531
|
+
function dr(e) {
|
3532
|
+
return e in st;
|
3506
3533
|
}
|
3507
|
-
function
|
3508
|
-
if (!
|
3534
|
+
function Ei(e, t) {
|
3535
|
+
if (!dr(e))
|
3509
3536
|
return null;
|
3510
|
-
const r =
|
3511
|
-
return
|
3537
|
+
const r = _i(e);
|
3538
|
+
return yi(r, t);
|
3512
3539
|
}
|
3513
|
-
function
|
3540
|
+
function xi(e) {
|
3514
3541
|
if (e == null)
|
3515
3542
|
return;
|
3516
3543
|
const t = Le(e);
|
3517
3544
|
for (let r = 0; r < t.length; r++) {
|
3518
3545
|
const n = t[r];
|
3519
|
-
if (
|
3546
|
+
if (dr(n))
|
3520
3547
|
return n;
|
3521
3548
|
}
|
3522
3549
|
}
|
3523
|
-
function
|
3524
|
-
delete W[e], ue.update((r) => (r[e] =
|
3550
|
+
function pr(e, ...t) {
|
3551
|
+
delete W[e], ue.update((r) => (r[e] = Sn.all([r[e] || {}, ...t]), r));
|
3525
3552
|
}
|
3526
3553
|
le(
|
3527
3554
|
[ue],
|
3528
3555
|
([e]) => Object.keys(e)
|
3529
3556
|
);
|
3530
|
-
ue.subscribe((e) =>
|
3557
|
+
ue.subscribe((e) => st = e);
|
3531
3558
|
const Te = {};
|
3532
|
-
function
|
3559
|
+
function Ci(e, t) {
|
3533
3560
|
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
3534
3561
|
}
|
3535
|
-
function
|
3562
|
+
function gr(e) {
|
3536
3563
|
return Te[e];
|
3537
3564
|
}
|
3538
|
-
function
|
3565
|
+
function wi(e) {
|
3539
3566
|
return Le(e).map((t) => {
|
3540
|
-
const r =
|
3567
|
+
const r = gr(t);
|
3541
3568
|
return [t, r ? [...r] : []];
|
3542
3569
|
}).filter(([, t]) => t.length > 0);
|
3543
3570
|
}
|
@@ -3545,31 +3572,31 @@ function et(e) {
|
|
3545
3572
|
return e == null ? !1 : Le(e).some(
|
3546
3573
|
(t) => {
|
3547
3574
|
var r;
|
3548
|
-
return (r =
|
3575
|
+
return (r = gr(t)) == null ? void 0 : r.size;
|
3549
3576
|
}
|
3550
3577
|
);
|
3551
3578
|
}
|
3552
|
-
function
|
3579
|
+
function Hi(e, t) {
|
3553
3580
|
return Promise.all(
|
3554
|
-
t.map((n) => (
|
3555
|
-
).then((n) =>
|
3581
|
+
t.map((n) => (Ci(e, n), n().then((i) => i.default || i)))
|
3582
|
+
).then((n) => pr(e, ...n));
|
3556
3583
|
}
|
3557
3584
|
const fe = {};
|
3558
|
-
function
|
3585
|
+
function br(e) {
|
3559
3586
|
if (!et(e))
|
3560
3587
|
return e in fe ? fe[e] : Promise.resolve();
|
3561
|
-
const t =
|
3588
|
+
const t = wi(e);
|
3562
3589
|
return fe[e] = Promise.all(
|
3563
3590
|
t.map(
|
3564
|
-
([r, n]) =>
|
3591
|
+
([r, n]) => Hi(r, n)
|
3565
3592
|
)
|
3566
3593
|
).then(() => {
|
3567
3594
|
if (et(e))
|
3568
|
-
return
|
3595
|
+
return br(e);
|
3569
3596
|
delete fe[e];
|
3570
3597
|
}), fe[e];
|
3571
3598
|
}
|
3572
|
-
const
|
3599
|
+
const Si = {
|
3573
3600
|
number: {
|
3574
3601
|
scientific: { notation: "scientific" },
|
3575
3602
|
engineering: { notation: "engineering" },
|
@@ -3598,34 +3625,34 @@ const Hi = {
|
|
3598
3625
|
timeZoneName: "short"
|
3599
3626
|
}
|
3600
3627
|
}
|
3601
|
-
},
|
3628
|
+
}, Ti = {
|
3602
3629
|
fallbackLocale: null,
|
3603
3630
|
loadingDelay: 200,
|
3604
|
-
formats:
|
3631
|
+
formats: Si,
|
3605
3632
|
warnOnMissingMessages: !0,
|
3606
3633
|
handleMissingMessage: void 0,
|
3607
3634
|
ignoreTag: !0
|
3608
|
-
},
|
3635
|
+
}, Ai = Ti;
|
3609
3636
|
function ae() {
|
3610
|
-
return
|
3637
|
+
return Ai;
|
3611
3638
|
}
|
3612
3639
|
const Ve = Me(!1);
|
3613
|
-
var
|
3640
|
+
var Bi = Object.defineProperty, Ii = Object.defineProperties, Mi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Li = (e, t) => {
|
3614
3641
|
for (var r in t || (t = {}))
|
3615
|
-
|
3616
|
-
if (
|
3617
|
-
for (var r of
|
3618
|
-
|
3642
|
+
Ni.call(t, r) && Bt(e, r, t[r]);
|
3643
|
+
if (At)
|
3644
|
+
for (var r of At(t))
|
3645
|
+
Pi.call(t, r) && Bt(e, r, t[r]);
|
3619
3646
|
return e;
|
3620
|
-
},
|
3647
|
+
}, Oi = (e, t) => Ii(e, Mi(t));
|
3621
3648
|
let tt;
|
3622
3649
|
const Be = Me(null);
|
3623
|
-
function
|
3650
|
+
function It(e) {
|
3624
3651
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3625
3652
|
}
|
3626
3653
|
function Le(e, t = ae().fallbackLocale) {
|
3627
|
-
const r =
|
3628
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3654
|
+
const r = It(e);
|
3655
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
3629
3656
|
}
|
3630
3657
|
function Y() {
|
3631
3658
|
return tt != null ? tt : void 0;
|
@@ -3633,22 +3660,22 @@ function Y() {
|
|
3633
3660
|
Be.subscribe((e) => {
|
3634
3661
|
tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3635
3662
|
});
|
3636
|
-
const
|
3637
|
-
if (e &&
|
3663
|
+
const Fi = (e) => {
|
3664
|
+
if (e && xi(e) && et(e)) {
|
3638
3665
|
const { loadingDelay: t } = ae();
|
3639
3666
|
let r;
|
3640
3667
|
return typeof window != "undefined" && Y() != null && t ? r = window.setTimeout(
|
3641
3668
|
() => Ve.set(!0),
|
3642
3669
|
t
|
3643
|
-
) : Ve.set(!0),
|
3670
|
+
) : Ve.set(!0), br(e).then(() => {
|
3644
3671
|
Be.set(e);
|
3645
3672
|
}).finally(() => {
|
3646
3673
|
clearTimeout(r), Ve.set(!1);
|
3647
3674
|
});
|
3648
3675
|
}
|
3649
3676
|
return Be.set(e);
|
3650
|
-
}, z = Li(
|
3651
|
-
set:
|
3677
|
+
}, z = Oi(Li({}, Be), {
|
3678
|
+
set: Fi
|
3652
3679
|
}), Oe = (e) => {
|
3653
3680
|
const t = /* @__PURE__ */ Object.create(null);
|
3654
3681
|
return (n) => {
|
@@ -3656,20 +3683,20 @@ const Oi = (e) => {
|
|
3656
3683
|
return i in t ? t[i] : t[i] = e(n);
|
3657
3684
|
};
|
3658
3685
|
};
|
3659
|
-
var
|
3686
|
+
var Ri = Object.defineProperty, Ie = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
3660
3687
|
for (var r in t || (t = {}))
|
3661
|
-
|
3688
|
+
yr.call(t, r) && Mt(e, r, t[r]);
|
3662
3689
|
if (Ie)
|
3663
3690
|
for (var r of Ie(t))
|
3664
|
-
|
3691
|
+
vr.call(t, r) && Mt(e, r, t[r]);
|
3665
3692
|
return e;
|
3666
3693
|
}, he = (e, t) => {
|
3667
3694
|
var r = {};
|
3668
3695
|
for (var n in e)
|
3669
|
-
|
3696
|
+
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3670
3697
|
if (e != null && Ie)
|
3671
3698
|
for (var n of Ie(e))
|
3672
|
-
t.indexOf(n) < 0 &&
|
3699
|
+
t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
|
3673
3700
|
return r;
|
3674
3701
|
};
|
3675
3702
|
const ye = (e, t) => {
|
@@ -3677,21 +3704,21 @@ const ye = (e, t) => {
|
|
3677
3704
|
if (e in r && t in r[e])
|
3678
3705
|
return r[e][t];
|
3679
3706
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3680
|
-
},
|
3707
|
+
}, Di = Oe(
|
3681
3708
|
(e) => {
|
3682
3709
|
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
3683
3710
|
if (r == null)
|
3684
3711
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3685
3712
|
return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
|
3686
3713
|
}
|
3687
|
-
),
|
3714
|
+
), Ui = Oe(
|
3688
3715
|
(e) => {
|
3689
3716
|
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
3690
3717
|
if (r == null)
|
3691
3718
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3692
3719
|
return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
|
3693
3720
|
}
|
3694
|
-
),
|
3721
|
+
), Gi = Oe(
|
3695
3722
|
(e) => {
|
3696
3723
|
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
3697
3724
|
if (r == null)
|
@@ -3700,33 +3727,33 @@ const ye = (e, t) => {
|
|
3700
3727
|
);
|
3701
3728
|
return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
|
3702
3729
|
}
|
3703
|
-
),
|
3730
|
+
), ki = (e = {}) => {
|
3704
3731
|
var t = e, {
|
3705
3732
|
locale: r = Y()
|
3706
3733
|
} = t, n = he(t, [
|
3707
3734
|
"locale"
|
3708
3735
|
]);
|
3709
|
-
return
|
3710
|
-
},
|
3736
|
+
return Di(at({ locale: r }, n));
|
3737
|
+
}, $i = (e = {}) => {
|
3711
3738
|
var t = e, {
|
3712
3739
|
locale: r = Y()
|
3713
3740
|
} = t, n = he(t, [
|
3714
3741
|
"locale"
|
3715
3742
|
]);
|
3716
|
-
return
|
3717
|
-
},
|
3743
|
+
return Ui(at({ locale: r }, n));
|
3744
|
+
}, ji = (e = {}) => {
|
3718
3745
|
var t = e, {
|
3719
3746
|
locale: r = Y()
|
3720
3747
|
} = t, n = he(t, [
|
3721
3748
|
"locale"
|
3722
3749
|
]);
|
3723
|
-
return
|
3724
|
-
},
|
3750
|
+
return Gi(at({ locale: r }, n));
|
3751
|
+
}, Vi = Oe(
|
3725
3752
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3726
|
-
(e, t = Y()) => new
|
3753
|
+
(e, t = Y()) => new bi(e, t, ae().formats, {
|
3727
3754
|
ignoreTag: ae().ignoreTag
|
3728
3755
|
})
|
3729
|
-
),
|
3756
|
+
), Xi = (e, t = {}) => {
|
3730
3757
|
var r, n, i, o;
|
3731
3758
|
let s = t;
|
3732
3759
|
typeof e == "object" && (s = e, e = s.id);
|
@@ -3739,7 +3766,7 @@ const ye = (e, t) => {
|
|
3739
3766
|
throw new Error(
|
3740
3767
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3741
3768
|
);
|
3742
|
-
let h =
|
3769
|
+
let h = mr(e, u);
|
3743
3770
|
if (!h)
|
3744
3771
|
h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3745
3772
|
else if (typeof h != "string")
|
@@ -3750,7 +3777,7 @@ const ye = (e, t) => {
|
|
3750
3777
|
return h;
|
3751
3778
|
let m = h;
|
3752
3779
|
try {
|
3753
|
-
m =
|
3780
|
+
m = Vi(h, u).format(a);
|
3754
3781
|
} catch (f) {
|
3755
3782
|
f instanceof Error && console.warn(
|
3756
3783
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3758,24 +3785,24 @@ const ye = (e, t) => {
|
|
3758
3785
|
);
|
3759
3786
|
}
|
3760
3787
|
return m;
|
3761
|
-
},
|
3762
|
-
le([z, ue], () =>
|
3763
|
-
le([z], () => Xi);
|
3788
|
+
}, Wi = (e, t) => ji(t).format(e), zi = (e, t) => $i(t).format(e), Zi = (e, t) => ki(t).format(e), Qi = (e, t = Y()) => mr(e, t);
|
3789
|
+
le([z, ue], () => Xi);
|
3764
3790
|
le([z], () => Wi);
|
3765
3791
|
le([z], () => zi);
|
3766
|
-
le([z
|
3767
|
-
|
3792
|
+
le([z], () => Zi);
|
3793
|
+
le([z, ue], () => Qi);
|
3794
|
+
function qi({ withLocale: e, translations: t }) {
|
3768
3795
|
z.subscribe((r) => {
|
3769
3796
|
r == null && (ue.set(t), z.set(e));
|
3770
3797
|
});
|
3771
3798
|
}
|
3772
|
-
function
|
3773
|
-
|
3799
|
+
function Nt(e, t) {
|
3800
|
+
pr(e, t);
|
3774
3801
|
}
|
3775
|
-
function
|
3802
|
+
function Ji(e) {
|
3776
3803
|
z.set(e);
|
3777
3804
|
}
|
3778
|
-
const
|
3805
|
+
const Pt = {
|
3779
3806
|
en: {
|
3780
3807
|
login: "Login",
|
3781
3808
|
register: "Register",
|
@@ -3832,22 +3859,22 @@ const Mt = {
|
|
3832
3859
|
deposit: "Deposit"
|
3833
3860
|
}
|
3834
3861
|
};
|
3835
|
-
function
|
3836
|
-
|
3862
|
+
function Yi(e) {
|
3863
|
+
Gr(e, "svelte-1lder3j", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
|
3837
3864
|
}
|
3838
|
-
function
|
3865
|
+
function Lt(e, t, r) {
|
3839
3866
|
const n = e.slice();
|
3840
3867
|
return n[48] = t[r], n[50] = r, n;
|
3841
3868
|
}
|
3842
|
-
function
|
3869
|
+
function Ot(e, t, r) {
|
3843
3870
|
const n = e.slice();
|
3844
3871
|
return n[51] = t[r], n;
|
3845
3872
|
}
|
3846
|
-
function
|
3873
|
+
function Ft(e, t, r) {
|
3847
3874
|
const n = e.slice();
|
3848
3875
|
return n[54] = t[r], n[56] = r, n;
|
3849
3876
|
}
|
3850
|
-
function
|
3877
|
+
function Rt(e) {
|
3851
3878
|
let t = [], r = /* @__PURE__ */ new Map(), n, i = ne(
|
3852
3879
|
/*sliderdata*/
|
3853
3880
|
e[9]
|
@@ -3857,8 +3884,8 @@ function Ot(e) {
|
|
3857
3884
|
s[48].id
|
3858
3885
|
);
|
3859
3886
|
for (let s = 0; s < i.length; s += 1) {
|
3860
|
-
let a =
|
3861
|
-
r.set(u, t[s] =
|
3887
|
+
let a = Lt(e, i, s), u = o(a);
|
3888
|
+
r.set(u, t[s] = jt(u, a));
|
3862
3889
|
}
|
3863
3890
|
return {
|
3864
3891
|
c() {
|
@@ -3876,7 +3903,7 @@ function Ot(e) {
|
|
3876
3903
|
77775 && (i = ne(
|
3877
3904
|
/*sliderdata*/
|
3878
3905
|
s[9]
|
3879
|
-
), t =
|
3906
|
+
), t = Zt(t, a, o, 1, s, i, r, n.parentNode, zt, jt, n, Lt));
|
3880
3907
|
},
|
3881
3908
|
d(s) {
|
3882
3909
|
s && R(n);
|
@@ -3885,7 +3912,7 @@ function Ot(e) {
|
|
3885
3912
|
}
|
3886
3913
|
};
|
3887
3914
|
}
|
3888
|
-
function
|
3915
|
+
function Ki(e) {
|
3889
3916
|
let t, r = (
|
3890
3917
|
/*category*/
|
3891
3918
|
e[48].name + ""
|
@@ -3907,7 +3934,7 @@ function Yi(e) {
|
|
3907
3934
|
}
|
3908
3935
|
};
|
3909
3936
|
}
|
3910
|
-
function
|
3937
|
+
function eo(e) {
|
3911
3938
|
let t, r = (
|
3912
3939
|
/*category*/
|
3913
3940
|
e[48].label + ""
|
@@ -3932,11 +3959,11 @@ function Ki(e) {
|
|
3932
3959
|
}
|
3933
3960
|
};
|
3934
3961
|
}
|
3935
|
-
function
|
3962
|
+
function Dt(e) {
|
3936
3963
|
let t, r = (
|
3937
3964
|
/*subGroupsData*/
|
3938
3965
|
e[10].length > 0 && /*showsubgroups*/
|
3939
|
-
e[2] == "true" &&
|
3966
|
+
e[2] == "true" && Ut(e)
|
3940
3967
|
);
|
3941
3968
|
return {
|
3942
3969
|
c() {
|
@@ -3948,20 +3975,20 @@ function Ft(e) {
|
|
3948
3975
|
p(n, i) {
|
3949
3976
|
/*subGroupsData*/
|
3950
3977
|
n[10].length > 0 && /*showsubgroups*/
|
3951
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3978
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Ut(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3952
3979
|
},
|
3953
3980
|
d(n) {
|
3954
3981
|
n && R(t), r && r.d(n);
|
3955
3982
|
}
|
3956
3983
|
};
|
3957
3984
|
}
|
3958
|
-
function
|
3985
|
+
function Ut(e) {
|
3959
3986
|
let t, r = ne(
|
3960
3987
|
/*subGroupsData*/
|
3961
3988
|
e[10]
|
3962
3989
|
), n = [];
|
3963
3990
|
for (let i = 0; i < r.length; i += 1)
|
3964
|
-
n[i] =
|
3991
|
+
n[i] = $t(Ot(e, r, i));
|
3965
3992
|
return {
|
3966
3993
|
c() {
|
3967
3994
|
t = M("ul");
|
@@ -3983,8 +4010,8 @@ function Rt(e) {
|
|
3983
4010
|
);
|
3984
4011
|
let s;
|
3985
4012
|
for (s = 0; s < r.length; s += 1) {
|
3986
|
-
const a =
|
3987
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
4013
|
+
const a = Ot(i, r, s);
|
4014
|
+
n[s] ? n[s].p(a, o) : (n[s] = $t(a), n[s].c(), n[s].m(t, null));
|
3988
4015
|
}
|
3989
4016
|
for (; s < n.length; s += 1)
|
3990
4017
|
n[s].d(1);
|
@@ -3992,11 +4019,11 @@ function Rt(e) {
|
|
3992
4019
|
}
|
3993
4020
|
},
|
3994
4021
|
d(i) {
|
3995
|
-
i && R(t),
|
4022
|
+
i && R(t), jr(n, i);
|
3996
4023
|
}
|
3997
4024
|
};
|
3998
4025
|
}
|
3999
|
-
function
|
4026
|
+
function Gt(e) {
|
4000
4027
|
var h;
|
4001
4028
|
let t, r, n = (
|
4002
4029
|
/*subGroupItem*/
|
@@ -4049,11 +4076,11 @@ function Dt(e) {
|
|
4049
4076
|
}
|
4050
4077
|
};
|
4051
4078
|
}
|
4052
|
-
function
|
4079
|
+
function kt(e, t) {
|
4053
4080
|
let r, n, i = (
|
4054
4081
|
/*index*/
|
4055
4082
|
t[50] == /*subGroup*/
|
4056
|
-
t[51].index &&
|
4083
|
+
t[51].index && Gt(t)
|
4057
4084
|
);
|
4058
4085
|
return {
|
4059
4086
|
key: e,
|
@@ -4067,14 +4094,14 @@ function Ut(e, t) {
|
|
4067
4094
|
p(o, s) {
|
4068
4095
|
t = o, /*index*/
|
4069
4096
|
t[50] == /*subGroup*/
|
4070
|
-
t[51].index ? i ? i.p(t, s) : (i =
|
4097
|
+
t[51].index ? i ? i.p(t, s) : (i = Gt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4071
4098
|
},
|
4072
4099
|
d(o) {
|
4073
4100
|
o && (R(r), R(n)), i && i.d(o);
|
4074
4101
|
}
|
4075
4102
|
};
|
4076
4103
|
}
|
4077
|
-
function
|
4104
|
+
function $t(e) {
|
4078
4105
|
let t = [], r = /* @__PURE__ */ new Map(), n, i = ne(
|
4079
4106
|
/*subGroup*/
|
4080
4107
|
e[51].items
|
@@ -4084,8 +4111,8 @@ function Gt(e) {
|
|
4084
4111
|
s[54].id
|
4085
4112
|
);
|
4086
4113
|
for (let s = 0; s < i.length; s += 1) {
|
4087
|
-
let a =
|
4088
|
-
r.set(u, t[s] =
|
4114
|
+
let a = Ft(e, i, s), u = o(a);
|
4115
|
+
r.set(u, t[s] = kt(u, a));
|
4089
4116
|
}
|
4090
4117
|
return {
|
4091
4118
|
c() {
|
@@ -4103,7 +4130,7 @@ function Gt(e) {
|
|
4103
4130
|
10176 && (i = ne(
|
4104
4131
|
/*subGroup*/
|
4105
4132
|
s[51].items
|
4106
|
-
), t =
|
4133
|
+
), t = Zt(t, a, o, 1, s, i, r, n.parentNode, zt, kt, n, Ft));
|
4107
4134
|
},
|
4108
4135
|
d(s) {
|
4109
4136
|
s && R(n);
|
@@ -4112,12 +4139,12 @@ function Gt(e) {
|
|
4112
4139
|
}
|
4113
4140
|
};
|
4114
4141
|
}
|
4115
|
-
function
|
4142
|
+
function jt(e, t) {
|
4116
4143
|
let r, n, i, o, s, a, u, l, h, m, f;
|
4117
4144
|
function p(_, x) {
|
4118
4145
|
return (
|
4119
4146
|
/*location*/
|
4120
|
-
_[0] === "headerMain" ?
|
4147
|
+
_[0] === "headerMain" ? eo : Ki
|
4121
4148
|
);
|
4122
4149
|
}
|
4123
4150
|
let g = p(t), b = g(t), d = (
|
@@ -4125,7 +4152,7 @@ function kt(e, t) {
|
|
4125
4152
|
t[11][
|
4126
4153
|
/*index*/
|
4127
4154
|
t[50]
|
4128
|
-
] == !0 &&
|
4155
|
+
] == !0 && Dt(t)
|
4129
4156
|
);
|
4130
4157
|
function H(..._) {
|
4131
4158
|
return (
|
@@ -4145,7 +4172,7 @@ function kt(e, t) {
|
|
4145
4172
|
c() {
|
4146
4173
|
var _, x;
|
4147
4174
|
r = M("li"), n = M("div"), i = M("img"), a = q(), b.c(), u = q(), d && d.c(), l = q(), S(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
|
4148
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4175
|
+
(t[3] === "true" ? "" : "DisplayNone")), bt(i.src, s = /*handleSrc*/
|
4149
4176
|
t[16](
|
4150
4177
|
/*category*/
|
4151
4178
|
t[48]
|
@@ -4169,7 +4196,7 @@ function kt(e, t) {
|
|
4169
4196
|
t = _, x[0] & /*categoriesicon*/
|
4170
4197
|
8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
|
4171
4198
|
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", o), x[0] & /*sliderdata*/
|
4172
|
-
512 && !
|
4199
|
+
512 && !bt(i.src, s = /*handleSrc*/
|
4173
4200
|
t[16](
|
4174
4201
|
/*category*/
|
4175
4202
|
t[48]
|
@@ -4177,7 +4204,7 @@ function kt(e, t) {
|
|
4177
4204
|
t[11][
|
4178
4205
|
/*index*/
|
4179
4206
|
t[50]
|
4180
|
-
] == !0 ? d ? d.p(t, x) : (d =
|
4207
|
+
] == !0 ? d ? d.p(t, x) : (d = Dt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), x[0] & /*activeindex, sliderdata, location*/
|
4181
4208
|
515 && h !== (h = "CarouselItem " + /*activeindex*/
|
4182
4209
|
(((L = t[1]) == null ? void 0 : L.toString().indexOf("$")) > -1 ? (
|
4183
4210
|
/*activeindex*/
|
@@ -4195,10 +4222,10 @@ function kt(e, t) {
|
|
4195
4222
|
}
|
4196
4223
|
};
|
4197
4224
|
}
|
4198
|
-
function
|
4225
|
+
function to(e) {
|
4199
4226
|
let t, r, n, i, o, s, a, u, l, h, m, f, p, g, b, d = (
|
4200
4227
|
/*sliderdata*/
|
4201
|
-
e[9].length > 0 &&
|
4228
|
+
e[9].length > 0 && Rt(e)
|
4202
4229
|
);
|
4203
4230
|
return {
|
4204
4231
|
c() {
|
@@ -4225,7 +4252,7 @@ function eo(e) {
|
|
4225
4252
|
},
|
4226
4253
|
p(H, _) {
|
4227
4254
|
/*sliderdata*/
|
4228
|
-
H[9].length > 0 ? d ? d.p(H, _) : (d =
|
4255
|
+
H[9].length > 0 ? d ? d.p(H, _) : (d = Rt(H), d.c(), d.m(s, null)) : d && (d.d(1), d = null), _[0] & /*location*/
|
4229
4256
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4230
4257
|
H[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), _[0] & /*location*/
|
4231
4258
|
1 && f !== (f = /*location*/
|
@@ -4240,20 +4267,20 @@ function eo(e) {
|
|
4240
4267
|
}
|
4241
4268
|
};
|
4242
4269
|
}
|
4243
|
-
function
|
4270
|
+
function ro(e, t, r) {
|
4244
4271
|
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: H = "false" } = t, { categoriesicon: _ = "false" } = t, { lobbyiconimage: x = "" } = t, { mygamesiconimage: L = "" } = t, { mbsource: I = "" } = t;
|
4245
|
-
|
4272
|
+
qi({ withLocale: "en", translations: {} });
|
4246
4273
|
const k = () => {
|
4247
4274
|
fetch(f).then((C) => C.json()).then((C) => {
|
4248
4275
|
Object.keys(C).forEach((O) => {
|
4249
|
-
|
4276
|
+
Nt(O, C[O]);
|
4250
4277
|
});
|
4251
4278
|
}).catch((C) => {
|
4252
4279
|
console.log(C);
|
4253
4280
|
});
|
4254
4281
|
};
|
4255
|
-
Object.keys(
|
4256
|
-
|
4282
|
+
Object.keys(Pt).forEach((c) => {
|
4283
|
+
Nt(c, Pt[c]);
|
4257
4284
|
});
|
4258
4285
|
let w, N, P, V, $, ce = [], _e = [], Ee = [], j, Fe = (c, C, O, Z, X) => {
|
4259
4286
|
var Q;
|
@@ -4284,18 +4311,18 @@ function to(e, t, r) {
|
|
4284
4311
|
window.location.href
|
4285
4312
|
);
|
4286
4313
|
}
|
4287
|
-
},
|
4314
|
+
}, lt = () => {
|
4288
4315
|
j.scrollBy({ left: -250, behavior: "smooth" });
|
4289
|
-
},
|
4316
|
+
}, ut = () => {
|
4290
4317
|
j.scrollBy({ left: 250, behavior: "smooth" });
|
4291
4318
|
};
|
4292
|
-
const
|
4293
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9, ce = c.data.data), r(11, Ee = new Array(ce.length).fill(!1)), H == "true" &&
|
4319
|
+
const ht = (c) => {
|
4320
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, ce = c.data.data), r(11, Ee = new Array(ce.length).fill(!1)), H == "true" && xr()), c.data.type == "GoToHomepage" && ce.forEach((C, O) => {
|
4294
4321
|
C.path.endsWith("/casino") && (r(6, N = O), r(6, N));
|
4295
4322
|
});
|
4296
|
-
},
|
4297
|
-
|
4298
|
-
},
|
4323
|
+
}, _r = () => {
|
4324
|
+
Ji(b);
|
4325
|
+
}, Er = (c, C, O) => {
|
4299
4326
|
if (u == "secondaryMenu" && n && i && b && c.id) {
|
4300
4327
|
let Z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4301
4328
|
fetch(Z.href).then((X) => X.json()).then((X) => {
|
@@ -4309,8 +4336,8 @@ function to(e, t, r) {
|
|
4309
4336
|
window.location.href
|
4310
4337
|
);
|
4311
4338
|
const Q = [];
|
4312
|
-
_e.map((
|
4313
|
-
Q.find((
|
4339
|
+
_e.map((Mr) => (Mr.items.forEach((ct) => {
|
4340
|
+
Q.find((Nr) => ct.id == Nr) || Q.push(ct.id);
|
4314
4341
|
}), Q.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Q }, window.location.href);
|
4315
4342
|
}).then(() => {
|
4316
4343
|
w.querySelectorAll(".DropDown") && xe();
|
@@ -4323,40 +4350,40 @@ function to(e, t, r) {
|
|
4323
4350
|
for (let C = 0; C < c.length; C++)
|
4324
4351
|
c[C].style.transform = "translateX(-" + j.scrollLeft + "px)";
|
4325
4352
|
j.classList.remove("isScrolling");
|
4326
|
-
},
|
4353
|
+
}, xr = () => {
|
4327
4354
|
ce.forEach((c, C) => {
|
4328
4355
|
var O;
|
4329
|
-
((O = c == null ? void 0 : c.subGroups) == null ? void 0 : O.count) > 0 && (r(11, Ee[C] = !0, Ee),
|
4356
|
+
((O = c == null ? void 0 : c.subGroups) == null ? void 0 : O.count) > 0 && (r(11, Ee[C] = !0, Ee), Er(c, C));
|
4330
4357
|
});
|
4331
|
-
},
|
4358
|
+
}, Cr = (c) => {
|
4332
4359
|
let C = "";
|
4333
4360
|
return c.id === "LOBBY" ? C = x : c.id === "MYGAMES" && (C = L), c.icon || C;
|
4334
4361
|
};
|
4335
|
-
|
4362
|
+
zr(() => (window.addEventListener("message", ht, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4336
4363
|
() => {
|
4337
4364
|
j.addEventListener("scroll", xe);
|
4338
4365
|
},
|
4339
4366
|
500
|
4340
4367
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4341
|
-
window.removeEventListener("message",
|
4368
|
+
window.removeEventListener("message", ht), w.removeEventListener("scroll", xe);
|
4342
4369
|
}));
|
4343
|
-
const
|
4370
|
+
const wr = () => lt(), Hr = (c, C, O, Z, X) => {
|
4344
4371
|
Fe(c, C, O, Z, "secondary"), X.stopPropagation();
|
4345
|
-
},
|
4372
|
+
}, Sr = (c, C, O) => {
|
4346
4373
|
Fe(c, C, null, null, "main"), O.preventDefault();
|
4347
4374
|
};
|
4348
|
-
function
|
4375
|
+
function Tr(c) {
|
4349
4376
|
de[c ? "unshift" : "push"](() => {
|
4350
4377
|
w = c, r(5, w);
|
4351
4378
|
});
|
4352
4379
|
}
|
4353
|
-
function
|
4380
|
+
function Ar(c) {
|
4354
4381
|
de[c ? "unshift" : "push"](() => {
|
4355
4382
|
j = c, r(12, j);
|
4356
4383
|
});
|
4357
4384
|
}
|
4358
|
-
const
|
4359
|
-
function
|
4385
|
+
const Br = () => ut();
|
4386
|
+
function Ir(c) {
|
4360
4387
|
de[c ? "unshift" : "push"](() => {
|
4361
4388
|
$ = c, r(4, $);
|
4362
4389
|
});
|
@@ -4367,11 +4394,11 @@ function to(e, t, r) {
|
|
4367
4394
|
e.$$.dirty[0] & /*activeindex*/
|
4368
4395
|
2, e.$$.dirty[0] & /*translationurl*/
|
4369
4396
|
33554432 && f && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4370
|
-
4194320 && l && $ &&
|
4371
|
-
8388624 && h && $ &&
|
4397
|
+
4194320 && l && $ && an($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4398
|
+
8388624 && h && $ && ln($, h), e.$$.dirty[0] & /*customStylingContainer*/
|
4372
4399
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4373
|
-
1 && I && $ &&
|
4374
|
-
268435456 && b &&
|
4400
|
+
1 && I && $ && un($, `${I}.Style`), e.$$.dirty[0] & /*lang*/
|
4401
|
+
268435456 && b && _r();
|
4375
4402
|
}, [
|
4376
4403
|
u,
|
4377
4404
|
d,
|
@@ -4387,9 +4414,9 @@ function to(e, t, r) {
|
|
4387
4414
|
Ee,
|
4388
4415
|
j,
|
4389
4416
|
Fe,
|
4390
|
-
|
4391
|
-
|
4392
|
-
|
4417
|
+
lt,
|
4418
|
+
ut,
|
4419
|
+
Cr,
|
4393
4420
|
n,
|
4394
4421
|
i,
|
4395
4422
|
o,
|
@@ -4405,23 +4432,23 @@ function to(e, t, r) {
|
|
4405
4432
|
x,
|
4406
4433
|
L,
|
4407
4434
|
I,
|
4408
|
-
xr,
|
4409
|
-
Cr,
|
4410
4435
|
wr,
|
4411
4436
|
Hr,
|
4412
4437
|
Sr,
|
4413
4438
|
Tr,
|
4414
|
-
Ar
|
4439
|
+
Ar,
|
4440
|
+
Br,
|
4441
|
+
Ir
|
4415
4442
|
];
|
4416
4443
|
}
|
4417
|
-
class
|
4444
|
+
class no extends on {
|
4418
4445
|
constructor(t) {
|
4419
|
-
super(),
|
4446
|
+
super(), rn(
|
4420
4447
|
this,
|
4421
4448
|
t,
|
4449
|
+
ro,
|
4422
4450
|
to,
|
4423
|
-
|
4424
|
-
jt,
|
4451
|
+
Xt,
|
4425
4452
|
{
|
4426
4453
|
endpoint: 17,
|
4427
4454
|
datasource: 18,
|
@@ -4443,7 +4470,7 @@ class ro extends rn {
|
|
4443
4470
|
mygamesiconimage: 30,
|
4444
4471
|
mbsource: 31
|
4445
4472
|
},
|
4446
|
-
|
4473
|
+
Yi,
|
4447
4474
|
[-1, -1]
|
4448
4475
|
);
|
4449
4476
|
}
|
@@ -4562,7 +4589,7 @@ class ro extends rn {
|
|
4562
4589
|
this.$$set({ mbsource: t }), A();
|
4563
4590
|
}
|
4564
4591
|
}
|
4565
|
-
|
4592
|
+
nn(no, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4566
4593
|
export {
|
4567
|
-
|
4594
|
+
no as default
|
4568
4595
|
};
|