@everymatrix/casino-slider 1.61.0 → 1.62.0
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-BFkyPgVj.cjs +16 -0
- package/components/{CasinoSlider-PJD_gO7W.js → CasinoSlider-DJnv-C0E.js} +451 -449
- package/components/{CasinoSlider-c6MV6q5T.js → CasinoSlider-_gh8eyBy.js} +401 -399
- 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/stencil/index-b7bbd57e-6KaMTlNN.js +534 -0
- package/stencil/index-b7bbd57e-BSagye0B.js +550 -0
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +1 -0
- package/stencil/{ui-image-38c3c15f-ByZECnci.js → ui-image-38c3c15f-CumwWbNu.js} +1 -1
- package/stencil/{ui-image-38c3c15f-D_V48h1L.js → ui-image-38c3c15f-Dxl-aZb-.js} +1 -1
- package/stencil/{ui-image-38c3c15f-VguNkCIq.cjs → ui-image-38c3c15f-y5t5ZLG0.cjs} +1 -1
- package/stencil/{ui-image-BNrzgSpe.js → ui-image-BQa5UbqU.js} +2 -2
- package/stencil/{ui-image-CPH6BqjQ.js → ui-image-Bi4jDe3D.js} +2 -2
- package/stencil/{ui-image-CLghOqUz.cjs → ui-image-z441BZiX.cjs} +1 -1
- package/components/CasinoSlider-qZUsGheA.cjs +0 -16
- package/stencil/index-b7bbd57e-BBUBsGhp.js +0 -550
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +0 -1
- package/stencil/index-b7bbd57e-wJC_uAuk.js +0 -534
@@ -1,29 +1,29 @@
|
|
1
|
-
import "../stencil/ui-image-
|
1
|
+
import "../stencil/ui-image-BQa5UbqU.js";
|
2
2
|
function G() {
|
3
3
|
}
|
4
|
-
function
|
4
|
+
function Ut(e) {
|
5
5
|
return e();
|
6
6
|
}
|
7
|
-
function
|
7
|
+
function ct() {
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
9
9
|
}
|
10
10
|
function Q(e) {
|
11
|
-
e.forEach(
|
11
|
+
e.forEach(Ut);
|
12
12
|
}
|
13
13
|
function tt(e) {
|
14
14
|
return typeof e == "function";
|
15
15
|
}
|
16
|
-
function
|
16
|
+
function Gt(e, t) {
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
18
18
|
}
|
19
19
|
let xe;
|
20
|
-
function
|
20
|
+
function ft(e, t) {
|
21
21
|
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
22
22
|
}
|
23
|
-
function
|
23
|
+
function Ar(e) {
|
24
24
|
return Object.keys(e).length === 0;
|
25
25
|
}
|
26
|
-
function
|
26
|
+
function Br(e, ...t) {
|
27
27
|
if (e == null) {
|
28
28
|
for (const n of t)
|
29
29
|
n(void 0);
|
@@ -35,14 +35,14 @@ function Tr(e, ...t) {
|
|
35
35
|
function B(e, t) {
|
36
36
|
e.appendChild(t);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
const n =
|
38
|
+
function Ir(e, t, r) {
|
39
|
+
const n = Mr(e);
|
40
40
|
if (!n.getElementById(t)) {
|
41
41
|
const i = N("style");
|
42
|
-
i.id = t, i.textContent = r,
|
42
|
+
i.id = t, i.textContent = r, Nr(n, i);
|
43
43
|
}
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function Mr(e) {
|
46
46
|
if (!e)
|
47
47
|
return document;
|
48
48
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -52,7 +52,7 @@ function Br(e) {
|
|
52
52
|
t
|
53
53
|
) : e.ownerDocument;
|
54
54
|
}
|
55
|
-
function
|
55
|
+
function Nr(e, t) {
|
56
56
|
return B(
|
57
57
|
/** @type {Document} */
|
58
58
|
e.head || e,
|
@@ -65,7 +65,7 @@ function U(e, t, r) {
|
|
65
65
|
function F(e) {
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
67
67
|
}
|
68
|
-
function
|
68
|
+
function Lr(e, t) {
|
69
69
|
for (let r = 0; r < e.length; r += 1)
|
70
70
|
e[r] && e[r].d(t);
|
71
71
|
}
|
@@ -91,14 +91,14 @@ function Ce(e, t, r) {
|
|
91
91
|
const n = t.toLowerCase();
|
92
92
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function Pr(e) {
|
95
95
|
return Array.from(e.childNodes);
|
96
96
|
}
|
97
97
|
function rt(e, t) {
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
99
99
|
t);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function Or(e) {
|
102
102
|
const t = {};
|
103
103
|
return e.childNodes.forEach(
|
104
104
|
/** @param {Element} node */
|
@@ -107,24 +107,24 @@ function Lr(e) {
|
|
107
107
|
}
|
108
108
|
), t;
|
109
109
|
}
|
110
|
-
let
|
110
|
+
let ge;
|
111
111
|
function fe(e) {
|
112
|
-
|
112
|
+
ge = e;
|
113
113
|
}
|
114
|
-
function
|
115
|
-
if (!
|
114
|
+
function Fr() {
|
115
|
+
if (!ge)
|
116
116
|
throw new Error("Function called outside component initialization");
|
117
|
-
return
|
117
|
+
return ge;
|
118
118
|
}
|
119
|
-
function
|
120
|
-
|
119
|
+
function Rr(e) {
|
120
|
+
Fr().$$.on_mount.push(e);
|
121
121
|
}
|
122
122
|
const ee = [], me = [];
|
123
123
|
let te = [];
|
124
|
-
const
|
124
|
+
const mt = [], Dr = /* @__PURE__ */ Promise.resolve();
|
125
125
|
let Ve = !1;
|
126
|
-
function
|
127
|
-
Ve || (Ve = !0,
|
126
|
+
function Ur() {
|
127
|
+
Ve || (Ve = !0, Dr.then(A));
|
128
128
|
}
|
129
129
|
function Xe(e) {
|
130
130
|
te.push(e);
|
@@ -134,12 +134,12 @@ let Y = 0;
|
|
134
134
|
function A() {
|
135
135
|
if (Y !== 0)
|
136
136
|
return;
|
137
|
-
const e =
|
137
|
+
const e = ge;
|
138
138
|
do {
|
139
139
|
try {
|
140
140
|
for (; Y < ee.length; ) {
|
141
141
|
const t = ee[Y];
|
142
|
-
Y++, fe(t),
|
142
|
+
Y++, fe(t), Gr(t.$$);
|
143
143
|
}
|
144
144
|
} catch (t) {
|
145
145
|
throw ee.length = 0, Y = 0, t;
|
@@ -152,74 +152,74 @@ function A() {
|
|
152
152
|
}
|
153
153
|
te.length = 0;
|
154
154
|
} while (ee.length);
|
155
|
-
for (;
|
156
|
-
|
155
|
+
for (; mt.length; )
|
156
|
+
mt.pop()();
|
157
157
|
Ve = !1, Re.clear(), fe(e);
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function Gr(e) {
|
160
160
|
if (e.fragment !== null) {
|
161
161
|
e.update(), Q(e.before_update);
|
162
162
|
const t = e.dirty;
|
163
163
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
164
164
|
}
|
165
165
|
}
|
166
|
-
function
|
166
|
+
function kr(e) {
|
167
167
|
const t = [], r = [];
|
168
168
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
169
169
|
}
|
170
|
-
const
|
171
|
-
function
|
172
|
-
e && e.i && (
|
170
|
+
const $r = /* @__PURE__ */ new Set();
|
171
|
+
function kt(e, t) {
|
172
|
+
e && e.i && ($r.delete(e), e.i(t));
|
173
173
|
}
|
174
174
|
function re(e) {
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function $t(e, t) {
|
178
178
|
e.d(1), t.delete(e.key);
|
179
179
|
}
|
180
|
-
function
|
181
|
-
let f = e.length,
|
180
|
+
function jt(e, t, r, n, i, s, o, a, h, l, u, m) {
|
181
|
+
let f = e.length, g = s.length, p = f;
|
182
182
|
const b = {};
|
183
|
-
for (;
|
184
|
-
b[e[
|
183
|
+
for (; p--; )
|
184
|
+
b[e[p].key] = p;
|
185
185
|
const d = [], w = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), H = [];
|
186
|
-
for (
|
187
|
-
const C = m(i, s,
|
186
|
+
for (p = g; p--; ) {
|
187
|
+
const C = m(i, s, p), I = r(C);
|
188
188
|
let L = o.get(I);
|
189
|
-
L ? H.push(() => L.p(C, t)) : (L = l(I, C), L.c()), w.set(I, d[
|
189
|
+
L ? H.push(() => L.p(C, t)) : (L = l(I, C), L.c()), w.set(I, d[p] = L), I in b && E.set(I, Math.abs(p - b[I]));
|
190
190
|
}
|
191
191
|
const R = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
192
192
|
function k(C) {
|
193
|
-
|
193
|
+
kt(C, 1), C.m(a, u), o.set(C.key, C), u = C.first, g--;
|
194
194
|
}
|
195
|
-
for (; f &&
|
196
|
-
const C = d[
|
197
|
-
C === I ? (u = C.first, f--,
|
195
|
+
for (; f && g; ) {
|
196
|
+
const C = d[g - 1], I = e[f - 1], L = C.key, j = I.key;
|
197
|
+
C === I ? (u = C.first, f--, g--) : w.has(j) ? !o.has(L) || R.has(L) ? k(C) : P.has(j) ? f-- : E.get(L) > E.get(j) ? (P.add(L), k(C)) : (R.add(j), f--) : (h(I, o), f--);
|
198
198
|
}
|
199
199
|
for (; f--; ) {
|
200
200
|
const C = e[f];
|
201
201
|
w.has(C.key) || h(C, o);
|
202
202
|
}
|
203
|
-
for (;
|
204
|
-
k(d[
|
203
|
+
for (; g; )
|
204
|
+
k(d[g - 1]);
|
205
205
|
return Q(H), d;
|
206
206
|
}
|
207
|
-
function
|
207
|
+
function jr(e, t, r) {
|
208
208
|
const { fragment: n, after_update: i } = e.$$;
|
209
209
|
n && n.m(t, r), Xe(() => {
|
210
|
-
const s = e.$$.on_mount.map(
|
210
|
+
const s = e.$$.on_mount.map(Ut).filter(tt);
|
211
211
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Q(s), e.$$.on_mount = [];
|
212
212
|
}), i.forEach(Xe);
|
213
213
|
}
|
214
|
-
function
|
214
|
+
function Vr(e, t) {
|
215
215
|
const r = e.$$;
|
216
|
-
r.fragment !== null && (
|
216
|
+
r.fragment !== null && (kr(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
217
217
|
}
|
218
|
-
function
|
219
|
-
e.$$.dirty[0] === -1 && (ee.push(e),
|
218
|
+
function Xr(e, t) {
|
219
|
+
e.$$.dirty[0] === -1 && (ee.push(e), Ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
220
220
|
}
|
221
|
-
function
|
222
|
-
const h =
|
221
|
+
function Wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
222
|
+
const h = ge;
|
223
223
|
fe(e);
|
224
224
|
const l = e.$$ = {
|
225
225
|
fragment: null,
|
@@ -228,7 +228,7 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
228
228
|
props: s,
|
229
229
|
update: G,
|
230
230
|
not_equal: i,
|
231
|
-
bound:
|
231
|
+
bound: ct(),
|
232
232
|
// lifecycle
|
233
233
|
on_mount: [],
|
234
234
|
on_destroy: [],
|
@@ -237,28 +237,28 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
237
237
|
after_update: [],
|
238
238
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
239
239
|
// everything else
|
240
|
-
callbacks:
|
240
|
+
callbacks: ct(),
|
241
241
|
dirty: a,
|
242
242
|
skip_bound: !1,
|
243
243
|
root: t.target || h.$$.root
|
244
244
|
};
|
245
245
|
o && o(l.root);
|
246
246
|
let u = !1;
|
247
|
-
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...
|
248
|
-
const
|
249
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] =
|
247
|
+
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...g) => {
|
248
|
+
const p = g.length ? g[0] : f;
|
249
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = p) && (!l.skip_bound && l.bound[m] && l.bound[m](p), u && Xr(e, m)), f;
|
250
250
|
}) : [], l.update(), u = !0, Q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
251
251
|
if (t.hydrate) {
|
252
|
-
const m =
|
252
|
+
const m = Pr(t.target);
|
253
253
|
l.fragment && l.fragment.l(m), m.forEach(F);
|
254
254
|
} else
|
255
255
|
l.fragment && l.fragment.c();
|
256
|
-
t.intro &&
|
256
|
+
t.intro && kt(e.$$.fragment), jr(e, t.target, t.anchor), A();
|
257
257
|
}
|
258
258
|
fe(h);
|
259
259
|
}
|
260
|
-
let
|
261
|
-
typeof HTMLElement == "function" && (
|
260
|
+
let Vt;
|
261
|
+
typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
262
262
|
/** The Svelte component constructor */
|
263
263
|
$$ctor;
|
264
264
|
/** Slots */
|
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
317
317
|
};
|
318
318
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
319
319
|
return;
|
320
|
-
const t = {}, r =
|
320
|
+
const t = {}, r = Or(this);
|
321
321
|
for (const i of this.$$s)
|
322
322
|
i in r && (t[i] = [e(i)]);
|
323
323
|
for (const i of this.attributes) {
|
@@ -404,8 +404,8 @@ function He(e, t, r, n) {
|
|
404
404
|
return t;
|
405
405
|
}
|
406
406
|
}
|
407
|
-
function
|
408
|
-
let o = class extends
|
407
|
+
function zr(e, t, r, n, i, s) {
|
408
|
+
let o = class extends Vt {
|
409
409
|
constructor() {
|
410
410
|
super(e, r, i), this.$$p_d = t;
|
411
411
|
}
|
@@ -433,7 +433,7 @@ function Xr(e, t, r, n, i, s) {
|
|
433
433
|
}), e.element = /** @type {any} */
|
434
434
|
o, o;
|
435
435
|
}
|
436
|
-
class
|
436
|
+
class Zr {
|
437
437
|
/**
|
438
438
|
* ### PRIVATE API
|
439
439
|
*
|
@@ -452,7 +452,7 @@ class Wr {
|
|
452
452
|
$$set = void 0;
|
453
453
|
/** @returns {void} */
|
454
454
|
$destroy() {
|
455
|
-
|
455
|
+
Vr(this, 1), this.$destroy = G;
|
456
456
|
}
|
457
457
|
/**
|
458
458
|
* @template {Extract<keyof Events, string>} K
|
@@ -474,18 +474,18 @@ class Wr {
|
|
474
474
|
* @returns {void}
|
475
475
|
*/
|
476
476
|
$set(t) {
|
477
|
-
this.$$set && !
|
477
|
+
this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
478
478
|
}
|
479
479
|
}
|
480
|
-
const
|
481
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
482
|
-
function
|
480
|
+
const Qr = "4";
|
481
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qr);
|
482
|
+
function qr(e, t) {
|
483
483
|
if (e) {
|
484
484
|
const r = document.createElement("style");
|
485
485
|
r.innerHTML = t, e.appendChild(r);
|
486
486
|
}
|
487
487
|
}
|
488
|
-
function
|
488
|
+
function Jr(e, t) {
|
489
489
|
const r = new URL(t);
|
490
490
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
491
491
|
const i = document.createElement("style");
|
@@ -494,7 +494,7 @@ function Qr(e, t) {
|
|
494
494
|
console.error("There was an error while trying to load client styling from URL", n);
|
495
495
|
});
|
496
496
|
}
|
497
|
-
function
|
497
|
+
function Yr(e, t, r) {
|
498
498
|
if (window.emMessageBus) {
|
499
499
|
const n = document.createElement("style");
|
500
500
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -503,7 +503,7 @@ function qr(e, t, r) {
|
|
503
503
|
}
|
504
504
|
}
|
505
505
|
const K = [];
|
506
|
-
function
|
506
|
+
function Kr(e, t) {
|
507
507
|
return {
|
508
508
|
subscribe: Me(e, t).subscribe
|
509
509
|
};
|
@@ -512,7 +512,7 @@ function Me(e, t = G) {
|
|
512
512
|
let r;
|
513
513
|
const n = /* @__PURE__ */ new Set();
|
514
514
|
function i(a) {
|
515
|
-
if (
|
515
|
+
if (Gt(e, a) && (e = a, r)) {
|
516
516
|
const h = !K.length;
|
517
517
|
for (const l of n)
|
518
518
|
l[1](), K.push(l, e);
|
@@ -539,7 +539,7 @@ function ae(e, t, r) {
|
|
539
539
|
if (!i.every(Boolean))
|
540
540
|
throw new Error("derived() expects stores as input, got a falsy value");
|
541
541
|
const s = t.length < 2;
|
542
|
-
return
|
542
|
+
return Kr(r, (o, a) => {
|
543
543
|
let h = !1;
|
544
544
|
const l = [];
|
545
545
|
let u = 0, m = G;
|
@@ -547,11 +547,11 @@ function ae(e, t, r) {
|
|
547
547
|
if (u)
|
548
548
|
return;
|
549
549
|
m();
|
550
|
-
const
|
551
|
-
s ? o(
|
552
|
-
},
|
553
|
-
(
|
554
|
-
|
550
|
+
const p = t(n ? l[0] : l, o, a);
|
551
|
+
s ? o(p) : m = tt(p) ? p : G;
|
552
|
+
}, g = i.map(
|
553
|
+
(p, b) => Br(
|
554
|
+
p,
|
555
555
|
(d) => {
|
556
556
|
l[b] = d, u &= ~(1 << b), h && f();
|
557
557
|
},
|
@@ -561,74 +561,74 @@ function ae(e, t, r) {
|
|
561
561
|
)
|
562
562
|
);
|
563
563
|
return h = !0, f(), function() {
|
564
|
-
Q(
|
564
|
+
Q(g), m(), h = !1;
|
565
565
|
};
|
566
566
|
});
|
567
567
|
}
|
568
|
-
function
|
568
|
+
function en(e) {
|
569
569
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
570
570
|
}
|
571
|
-
var
|
572
|
-
return
|
571
|
+
var tn = function(t) {
|
572
|
+
return rn(t) && !nn(t);
|
573
573
|
};
|
574
|
-
function
|
574
|
+
function rn(e) {
|
575
575
|
return !!e && typeof e == "object";
|
576
576
|
}
|
577
|
-
function
|
577
|
+
function nn(e) {
|
578
578
|
var t = Object.prototype.toString.call(e);
|
579
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
579
|
+
return t === "[object RegExp]" || t === "[object Date]" || an(e);
|
580
580
|
}
|
581
|
-
var
|
582
|
-
function
|
583
|
-
return e.$$typeof ===
|
581
|
+
var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
|
582
|
+
function an(e) {
|
583
|
+
return e.$$typeof === sn;
|
584
584
|
}
|
585
|
-
function
|
585
|
+
function ln(e) {
|
586
586
|
return Array.isArray(e) ? [] : {};
|
587
587
|
}
|
588
|
-
function
|
589
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ne(
|
588
|
+
function pe(e, t) {
|
589
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(ln(e), e, t) : e;
|
590
590
|
}
|
591
|
-
function
|
591
|
+
function un(e, t, r) {
|
592
592
|
return e.concat(t).map(function(n) {
|
593
|
-
return
|
593
|
+
return pe(n, r);
|
594
594
|
});
|
595
595
|
}
|
596
|
-
function
|
596
|
+
function hn(e, t) {
|
597
597
|
if (!t.customMerge)
|
598
598
|
return ne;
|
599
599
|
var r = t.customMerge(e);
|
600
600
|
return typeof r == "function" ? r : ne;
|
601
601
|
}
|
602
|
-
function
|
602
|
+
function cn(e) {
|
603
603
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
604
604
|
return Object.propertyIsEnumerable.call(e, t);
|
605
605
|
}) : [];
|
606
606
|
}
|
607
|
-
function
|
608
|
-
return Object.keys(e).concat(
|
607
|
+
function dt(e) {
|
608
|
+
return Object.keys(e).concat(cn(e));
|
609
609
|
}
|
610
|
-
function
|
610
|
+
function Xt(e, t) {
|
611
611
|
try {
|
612
612
|
return t in e;
|
613
613
|
} catch {
|
614
614
|
return !1;
|
615
615
|
}
|
616
616
|
}
|
617
|
-
function
|
618
|
-
return
|
617
|
+
function fn(e, t) {
|
618
|
+
return Xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
619
619
|
}
|
620
|
-
function
|
620
|
+
function mn(e, t, r) {
|
621
621
|
var n = {};
|
622
|
-
return r.isMergeableObject(e) &&
|
623
|
-
n[i] =
|
624
|
-
}),
|
625
|
-
|
622
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
623
|
+
n[i] = pe(e[i], r);
|
624
|
+
}), dt(t).forEach(function(i) {
|
625
|
+
fn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
626
626
|
}), n;
|
627
627
|
}
|
628
628
|
function ne(e, t, r) {
|
629
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
629
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = pe;
|
630
630
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
631
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
631
|
+
return s ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : pe(t, r);
|
632
632
|
}
|
633
633
|
ne.all = function(t, r) {
|
634
634
|
if (!Array.isArray(t))
|
@@ -637,8 +637,8 @@ ne.all = function(t, r) {
|
|
637
637
|
return ne(n, i, r);
|
638
638
|
}, {});
|
639
639
|
};
|
640
|
-
var
|
641
|
-
const
|
640
|
+
var dn = ne, gn = dn;
|
641
|
+
const pn = /* @__PURE__ */ en(gn);
|
642
642
|
/*! *****************************************************************************
|
643
643
|
Copyright (c) Microsoft Corporation.
|
644
644
|
|
@@ -680,7 +680,7 @@ var _ = function() {
|
|
680
680
|
return t;
|
681
681
|
}, _.apply(this, arguments);
|
682
682
|
};
|
683
|
-
function
|
683
|
+
function bn(e, t) {
|
684
684
|
var r = {};
|
685
685
|
for (var n in e)
|
686
686
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -696,53 +696,55 @@ function De(e, t, r) {
|
|
696
696
|
return e.concat(s || t);
|
697
697
|
}
|
698
698
|
function Ue(e, t) {
|
699
|
-
var r = t && t.cache ? t.cache :
|
699
|
+
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : vn;
|
700
700
|
return i(e, {
|
701
701
|
cache: r,
|
702
702
|
serializer: n
|
703
703
|
});
|
704
704
|
}
|
705
|
-
function
|
705
|
+
function yn(e) {
|
706
706
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
707
707
|
}
|
708
|
-
function
|
709
|
-
var i =
|
708
|
+
function Wt(e, t, r, n) {
|
709
|
+
var i = yn(n) ? n : r(n), s = t.get(i);
|
710
710
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
711
711
|
}
|
712
|
-
function
|
712
|
+
function zt(e, t, r) {
|
713
713
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
714
714
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
715
715
|
}
|
716
|
-
function
|
716
|
+
function nt(e, t, r, n, i) {
|
717
717
|
return r.bind(t, e, n, i);
|
718
718
|
}
|
719
|
-
function yn(e, t) {
|
720
|
-
var r = e.length === 1 ? bn : Vt;
|
721
|
-
return Xt(e, this, r, t.cache.create(), t.serializer);
|
722
|
-
}
|
723
719
|
function vn(e, t) {
|
724
|
-
|
720
|
+
var r = e.length === 1 ? Wt : zt;
|
721
|
+
return nt(e, this, r, t.cache.create(), t.serializer);
|
722
|
+
}
|
723
|
+
function _n(e, t) {
|
724
|
+
return nt(e, this, zt, t.cache.create(), t.serializer);
|
725
725
|
}
|
726
|
-
|
726
|
+
function En(e, t) {
|
727
|
+
return nt(e, this, Wt, t.cache.create(), t.serializer);
|
728
|
+
}
|
729
|
+
var xn = function() {
|
727
730
|
return JSON.stringify(arguments);
|
728
|
-
}
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
}()
|
740
|
-
), xn = {
|
731
|
+
};
|
732
|
+
function it() {
|
733
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
734
|
+
}
|
735
|
+
it.prototype.get = function(e) {
|
736
|
+
return this.cache[e];
|
737
|
+
};
|
738
|
+
it.prototype.set = function(e, t) {
|
739
|
+
this.cache[e] = t;
|
740
|
+
};
|
741
|
+
var Cn = {
|
741
742
|
create: function() {
|
742
|
-
return new
|
743
|
+
return new it();
|
743
744
|
}
|
744
745
|
}, Ge = {
|
745
|
-
variadic:
|
746
|
+
variadic: _n,
|
747
|
+
monadic: En
|
746
748
|
}, y;
|
747
749
|
(function(e) {
|
748
750
|
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";
|
@@ -755,43 +757,43 @@ var ie;
|
|
755
757
|
(function(e) {
|
756
758
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
757
759
|
})(ie || (ie = {}));
|
758
|
-
function
|
760
|
+
function gt(e) {
|
759
761
|
return e.type === S.literal;
|
760
762
|
}
|
761
|
-
function
|
763
|
+
function wn(e) {
|
762
764
|
return e.type === S.argument;
|
763
765
|
}
|
764
|
-
function
|
766
|
+
function Zt(e) {
|
765
767
|
return e.type === S.number;
|
766
768
|
}
|
767
|
-
function
|
769
|
+
function Qt(e) {
|
768
770
|
return e.type === S.date;
|
769
771
|
}
|
770
|
-
function
|
772
|
+
function qt(e) {
|
771
773
|
return e.type === S.time;
|
772
774
|
}
|
773
|
-
function
|
775
|
+
function Jt(e) {
|
774
776
|
return e.type === S.select;
|
775
777
|
}
|
776
|
-
function
|
778
|
+
function Yt(e) {
|
777
779
|
return e.type === S.plural;
|
778
780
|
}
|
779
|
-
function
|
781
|
+
function Hn(e) {
|
780
782
|
return e.type === S.pound;
|
781
783
|
}
|
782
|
-
function
|
784
|
+
function Kt(e) {
|
783
785
|
return e.type === S.tag;
|
784
786
|
}
|
785
|
-
function
|
787
|
+
function er(e) {
|
786
788
|
return !!(e && typeof e == "object" && e.type === ie.number);
|
787
789
|
}
|
788
790
|
function ze(e) {
|
789
791
|
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
790
792
|
}
|
791
|
-
var
|
792
|
-
function
|
793
|
+
var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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;
|
794
|
+
function Tn(e) {
|
793
795
|
var t = {};
|
794
|
-
return e.replace(
|
796
|
+
return e.replace(Sn, function(r) {
|
795
797
|
var n = r.length;
|
796
798
|
switch (r[0]) {
|
797
799
|
case "G":
|
@@ -880,11 +882,11 @@ function Sn(e) {
|
|
880
882
|
return "";
|
881
883
|
}), t;
|
882
884
|
}
|
883
|
-
var
|
884
|
-
function
|
885
|
+
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
886
|
+
function Bn(e) {
|
885
887
|
if (e.length === 0)
|
886
888
|
throw new Error("Number skeleton cannot be empty");
|
887
|
-
for (var t = e.split(
|
889
|
+
for (var t = e.split(An).filter(function(f) {
|
888
890
|
return f.length > 0;
|
889
891
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
890
892
|
var s = i[n], o = s.split("/");
|
@@ -899,17 +901,17 @@ function An(e) {
|
|
899
901
|
}
|
900
902
|
return r;
|
901
903
|
}
|
902
|
-
function
|
904
|
+
function In(e) {
|
903
905
|
return e.replace(/^(.*?)-/, "");
|
904
906
|
}
|
905
|
-
var
|
906
|
-
function
|
907
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rr = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, nr = /^(0+)$/;
|
908
|
+
function bt(e) {
|
907
909
|
var t = {};
|
908
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
910
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(rr, function(r, n, i) {
|
909
911
|
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)), "";
|
910
912
|
}), t;
|
911
913
|
}
|
912
|
-
function
|
914
|
+
function ir(e) {
|
913
915
|
switch (e) {
|
914
916
|
case "sign-auto":
|
915
917
|
return {
|
@@ -949,7 +951,7 @@ function rr(e) {
|
|
949
951
|
};
|
950
952
|
}
|
951
953
|
}
|
952
|
-
function
|
954
|
+
function Nn(e) {
|
953
955
|
var t;
|
954
956
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
955
957
|
notation: "engineering"
|
@@ -957,17 +959,17 @@ function Mn(e) {
|
|
957
959
|
notation: "scientific"
|
958
960
|
}, e = e.slice(1)), t) {
|
959
961
|
var r = e.slice(0, 2);
|
960
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
962
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !nr.test(e))
|
961
963
|
throw new Error("Malformed concise eng/scientific notation");
|
962
964
|
t.minimumIntegerDigits = e.length;
|
963
965
|
}
|
964
966
|
return t;
|
965
967
|
}
|
966
|
-
function
|
967
|
-
var t = {}, r =
|
968
|
+
function yt(e) {
|
969
|
+
var t = {}, r = ir(e);
|
968
970
|
return r || t;
|
969
971
|
}
|
970
|
-
function
|
972
|
+
function Ln(e) {
|
971
973
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
972
974
|
var i = n[r];
|
973
975
|
switch (i.stem) {
|
@@ -991,7 +993,7 @@ function Nn(e) {
|
|
991
993
|
continue;
|
992
994
|
case "measure-unit":
|
993
995
|
case "unit":
|
994
|
-
t.style = "unit", t.unit =
|
996
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
995
997
|
continue;
|
996
998
|
case "compact-short":
|
997
999
|
case "K":
|
@@ -1003,12 +1005,12 @@ function Nn(e) {
|
|
1003
1005
|
continue;
|
1004
1006
|
case "scientific":
|
1005
1007
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1006
|
-
return _(_({}, h),
|
1008
|
+
return _(_({}, h), yt(l));
|
1007
1009
|
}, {}));
|
1008
1010
|
continue;
|
1009
1011
|
case "engineering":
|
1010
1012
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1011
|
-
return _(_({}, h),
|
1013
|
+
return _(_({}, h), yt(l));
|
1012
1014
|
}, {}));
|
1013
1015
|
continue;
|
1014
1016
|
case "notation-simple":
|
@@ -1053,40 +1055,40 @@ function Nn(e) {
|
|
1053
1055
|
case "integer-width":
|
1054
1056
|
if (i.options.length > 1)
|
1055
1057
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1056
|
-
i.options[0].replace(
|
1058
|
+
i.options[0].replace(Mn, function(h, l, u, m, f, g) {
|
1057
1059
|
if (l)
|
1058
1060
|
t.minimumIntegerDigits = u.length;
|
1059
1061
|
else {
|
1060
1062
|
if (m && f)
|
1061
1063
|
throw new Error("We currently do not support maximum integer digits");
|
1062
|
-
if (
|
1064
|
+
if (g)
|
1063
1065
|
throw new Error("We currently do not support exact integer digits");
|
1064
1066
|
}
|
1065
1067
|
return "";
|
1066
1068
|
});
|
1067
1069
|
continue;
|
1068
1070
|
}
|
1069
|
-
if (
|
1071
|
+
if (nr.test(i.stem)) {
|
1070
1072
|
t.minimumIntegerDigits = i.stem.length;
|
1071
1073
|
continue;
|
1072
1074
|
}
|
1073
|
-
if (
|
1075
|
+
if (pt.test(i.stem)) {
|
1074
1076
|
if (i.options.length > 1)
|
1075
1077
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1076
|
-
i.stem.replace(
|
1077
|
-
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f &&
|
1078
|
+
i.stem.replace(pt, function(h, l, u, m, f, g) {
|
1079
|
+
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1078
1080
|
});
|
1079
1081
|
var s = i.options[0];
|
1080
|
-
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t),
|
1082
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), bt(s)));
|
1081
1083
|
continue;
|
1082
1084
|
}
|
1083
|
-
if (
|
1084
|
-
t = _(_({}, t),
|
1085
|
+
if (rr.test(i.stem)) {
|
1086
|
+
t = _(_({}, t), bt(i.stem));
|
1085
1087
|
continue;
|
1086
1088
|
}
|
1087
|
-
var o =
|
1089
|
+
var o = ir(i.stem);
|
1088
1090
|
o && (t = _(_({}, t), o));
|
1089
|
-
var a =
|
1091
|
+
var a = Nn(i.stem);
|
1090
1092
|
a && (t = _(_({}, t), a));
|
1091
1093
|
}
|
1092
1094
|
return t;
|
@@ -2506,13 +2508,13 @@ var we = {
|
|
2506
2508
|
"h"
|
2507
2509
|
]
|
2508
2510
|
};
|
2509
|
-
function
|
2511
|
+
function Pn(e, t) {
|
2510
2512
|
for (var r = "", n = 0; n < e.length; n++) {
|
2511
2513
|
var i = e.charAt(n);
|
2512
2514
|
if (i === "j") {
|
2513
2515
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2514
2516
|
s++, n++;
|
2515
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
2517
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = On(t);
|
2516
2518
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2517
2519
|
r += h;
|
2518
2520
|
for (; o-- > 0; )
|
@@ -2522,7 +2524,7 @@ function Ln(e, t) {
|
|
2522
2524
|
}
|
2523
2525
|
return r;
|
2524
2526
|
}
|
2525
|
-
function
|
2527
|
+
function On(e) {
|
2526
2528
|
var t = e.hourCycle;
|
2527
2529
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2528
2530
|
e.hourCycles && // @ts-ignore
|
@@ -2544,20 +2546,20 @@ function Pn(e) {
|
|
2544
2546
|
var i = we[n || ""] || we[r || ""] || we["".concat(r, "-001")] || we["001"];
|
2545
2547
|
return i[0];
|
2546
2548
|
}
|
2547
|
-
var ke,
|
2549
|
+
var ke, Fn = new RegExp("^".concat(tr.source, "*")), Rn = new RegExp("".concat(tr.source, "*$"));
|
2548
2550
|
function v(e, t) {
|
2549
2551
|
return { start: e, end: t };
|
2550
2552
|
}
|
2551
|
-
var
|
2553
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Gn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
|
2552
2554
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2553
2555
|
}, Ze = !0;
|
2554
2556
|
try {
|
2555
|
-
var
|
2556
|
-
Ze = ((ke =
|
2557
|
+
var Wn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2558
|
+
Ze = ((ke = Wn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
2557
2559
|
} catch {
|
2558
2560
|
Ze = !1;
|
2559
2561
|
}
|
2560
|
-
var
|
2562
|
+
var vt = Dn ? (
|
2561
2563
|
// Native
|
2562
2564
|
function(t, r, n) {
|
2563
2565
|
return t.startsWith(r, n);
|
@@ -2567,7 +2569,7 @@ var bt = Rn ? (
|
|
2567
2569
|
function(t, r, n) {
|
2568
2570
|
return t.slice(n, n + r.length) === r;
|
2569
2571
|
}
|
2570
|
-
), Qe =
|
2572
|
+
), Qe = Un ? String.fromCodePoint : (
|
2571
2573
|
// IE11
|
2572
2574
|
function() {
|
2573
2575
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2579,9 +2581,9 @@ var bt = Rn ? (
|
|
2579
2581
|
}
|
2580
2582
|
return n;
|
2581
2583
|
}
|
2582
|
-
),
|
2584
|
+
), _t = (
|
2583
2585
|
// native
|
2584
|
-
|
2586
|
+
Gn ? Object.fromEntries : (
|
2585
2587
|
// Ponyfill
|
2586
2588
|
function(t) {
|
2587
2589
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2591,7 +2593,7 @@ var bt = Rn ? (
|
|
2591
2593
|
return r;
|
2592
2594
|
}
|
2593
2595
|
)
|
2594
|
-
),
|
2596
|
+
), or = kn ? (
|
2595
2597
|
// Native
|
2596
2598
|
function(t, r) {
|
2597
2599
|
return t.codePointAt(r);
|
@@ -2605,7 +2607,7 @@ var bt = Rn ? (
|
|
2605
2607
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2606
2608
|
}
|
2607
2609
|
}
|
2608
|
-
),
|
2610
|
+
), zn = $n ? (
|
2609
2611
|
// Native
|
2610
2612
|
function(t) {
|
2611
2613
|
return t.trimStart();
|
@@ -2613,9 +2615,9 @@ var bt = Rn ? (
|
|
2613
2615
|
) : (
|
2614
2616
|
// Ponyfill
|
2615
2617
|
function(t) {
|
2616
|
-
return t.replace(
|
2618
|
+
return t.replace(Fn, "");
|
2617
2619
|
}
|
2618
|
-
),
|
2620
|
+
), Zn = jn ? (
|
2619
2621
|
// Native
|
2620
2622
|
function(t) {
|
2621
2623
|
return t.trimEnd();
|
@@ -2623,32 +2625,32 @@ var bt = Rn ? (
|
|
2623
2625
|
) : (
|
2624
2626
|
// Ponyfill
|
2625
2627
|
function(t) {
|
2626
|
-
return t.replace(
|
2628
|
+
return t.replace(Rn, "");
|
2627
2629
|
}
|
2628
2630
|
);
|
2629
|
-
function
|
2631
|
+
function sr(e, t) {
|
2630
2632
|
return new RegExp(e, t);
|
2631
2633
|
}
|
2632
2634
|
var qe;
|
2633
2635
|
if (Ze) {
|
2634
|
-
var
|
2636
|
+
var Et = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2635
2637
|
qe = function(t, r) {
|
2636
2638
|
var n;
|
2637
|
-
|
2638
|
-
var i =
|
2639
|
+
Et.lastIndex = r;
|
2640
|
+
var i = Et.exec(t);
|
2639
2641
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2640
2642
|
};
|
2641
2643
|
} else
|
2642
2644
|
qe = function(t, r) {
|
2643
2645
|
for (var n = []; ; ) {
|
2644
|
-
var i =
|
2645
|
-
if (i === void 0 ||
|
2646
|
+
var i = or(t, r);
|
2647
|
+
if (i === void 0 || ar(i) || Yn(i))
|
2646
2648
|
break;
|
2647
2649
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2648
2650
|
}
|
2649
2651
|
return Qe.apply(void 0, n);
|
2650
2652
|
};
|
2651
|
-
var
|
2653
|
+
var Qn = (
|
2652
2654
|
/** @class */
|
2653
2655
|
function() {
|
2654
2656
|
function e(t, r) {
|
@@ -2730,7 +2732,7 @@ var Zn = (
|
|
2730
2732
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2731
2733
|
}, e.prototype.parseTagName = function() {
|
2732
2734
|
var t = this.offset();
|
2733
|
-
for (this.bump(); !this.isEOF() &&
|
2735
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
2734
2736
|
this.bump();
|
2735
2737
|
return this.message.slice(t, this.offset());
|
2736
2738
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2759,7 +2761,7 @@ var Zn = (
|
|
2759
2761
|
};
|
2760
2762
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2761
2763
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2762
|
-
!
|
2764
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2763
2765
|
}, e.prototype.tryParseQuote = function(t) {
|
2764
2766
|
if (this.isEOF() || this.char() !== 39)
|
2765
2767
|
return null;
|
@@ -2846,18 +2848,18 @@ var Zn = (
|
|
2846
2848
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2847
2849
|
if (m.err)
|
2848
2850
|
return m;
|
2849
|
-
var f =
|
2851
|
+
var f = Zn(m.val);
|
2850
2852
|
if (f.length === 0)
|
2851
2853
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2852
|
-
var
|
2853
|
-
l = { style: f, styleLocation:
|
2854
|
+
var g = v(u, this.clonePosition());
|
2855
|
+
l = { style: f, styleLocation: g };
|
2854
2856
|
}
|
2855
|
-
var
|
2856
|
-
if (
|
2857
|
-
return
|
2857
|
+
var p = this.tryParseArgumentClose(i);
|
2858
|
+
if (p.err)
|
2859
|
+
return p;
|
2858
2860
|
var b = v(i, this.clonePosition());
|
2859
|
-
if (l &&
|
2860
|
-
var d =
|
2861
|
+
if (l && vt(l?.style, "::", 0)) {
|
2862
|
+
var d = zn(l.style.slice(2));
|
2861
2863
|
if (a === "number") {
|
2862
2864
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2863
2865
|
return m.err ? m : {
|
@@ -2868,12 +2870,12 @@ var Zn = (
|
|
2868
2870
|
if (d.length === 0)
|
2869
2871
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2870
2872
|
var w = d;
|
2871
|
-
this.locale && (w =
|
2873
|
+
this.locale && (w = Pn(d, this.locale));
|
2872
2874
|
var f = {
|
2873
2875
|
type: ie.dateTime,
|
2874
2876
|
pattern: w,
|
2875
2877
|
location: l.styleLocation,
|
2876
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2878
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(w) : {}
|
2877
2879
|
}, E = a === "date" ? S.date : S.time;
|
2878
2880
|
return {
|
2879
2881
|
val: { type: E, value: n, location: b, style: f },
|
@@ -2911,15 +2913,15 @@ var Zn = (
|
|
2911
2913
|
var k = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
2912
2914
|
if (k.err)
|
2913
2915
|
return k;
|
2914
|
-
var
|
2915
|
-
if (
|
2916
|
-
return
|
2916
|
+
var p = this.tryParseArgumentClose(i);
|
2917
|
+
if (p.err)
|
2918
|
+
return p;
|
2917
2919
|
var C = v(i, this.clonePosition());
|
2918
2920
|
return a === "select" ? {
|
2919
2921
|
val: {
|
2920
2922
|
type: S.select,
|
2921
2923
|
value: n,
|
2922
|
-
options:
|
2924
|
+
options: _t(k.val),
|
2923
2925
|
location: C
|
2924
2926
|
},
|
2925
2927
|
err: null
|
@@ -2927,7 +2929,7 @@ var Zn = (
|
|
2927
2929
|
val: {
|
2928
2930
|
type: S.plural,
|
2929
2931
|
value: n,
|
2930
|
-
options:
|
2932
|
+
options: _t(k.val),
|
2931
2933
|
offset: P,
|
2932
2934
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2933
2935
|
location: C
|
@@ -2978,7 +2980,7 @@ var Zn = (
|
|
2978
2980
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2979
2981
|
var n = [];
|
2980
2982
|
try {
|
2981
|
-
n =
|
2983
|
+
n = Bn(t);
|
2982
2984
|
} catch {
|
2983
2985
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2984
2986
|
}
|
@@ -2987,7 +2989,7 @@ var Zn = (
|
|
2987
2989
|
type: ie.number,
|
2988
2990
|
tokens: n,
|
2989
2991
|
location: r,
|
2990
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2992
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
|
2991
2993
|
},
|
2992
2994
|
err: null
|
2993
2995
|
};
|
@@ -3006,20 +3008,20 @@ var Zn = (
|
|
3006
3008
|
if (h.has(l))
|
3007
3009
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3008
3010
|
l === "other" && (o = !0), this.bumpSpace();
|
3009
|
-
var
|
3011
|
+
var g = this.clonePosition();
|
3010
3012
|
if (!this.bumpIf("{"))
|
3011
3013
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
3012
|
-
var
|
3013
|
-
if (
|
3014
|
-
return
|
3015
|
-
var b = this.tryParseArgumentClose(
|
3014
|
+
var p = this.parseMessage(t + 1, r, n);
|
3015
|
+
if (p.err)
|
3016
|
+
return p;
|
3017
|
+
var b = this.tryParseArgumentClose(g);
|
3016
3018
|
if (b.err)
|
3017
3019
|
return b;
|
3018
3020
|
a.push([
|
3019
3021
|
l,
|
3020
3022
|
{
|
3021
|
-
value:
|
3022
|
-
location: v(
|
3023
|
+
value: p.val,
|
3024
|
+
location: v(g, this.clonePosition())
|
3023
3025
|
}
|
3024
3026
|
]), h.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, u = s.location;
|
3025
3027
|
}
|
@@ -3035,7 +3037,7 @@ var Zn = (
|
|
3035
3037
|
break;
|
3036
3038
|
}
|
3037
3039
|
var h = v(i, this.clonePosition());
|
3038
|
-
return s ? (o *= n,
|
3040
|
+
return s ? (o *= n, Xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3039
3041
|
}, e.prototype.offset = function() {
|
3040
3042
|
return this.position.offset;
|
3041
3043
|
}, e.prototype.isEOF = function() {
|
@@ -3050,7 +3052,7 @@ var Zn = (
|
|
3050
3052
|
var t = this.position.offset;
|
3051
3053
|
if (t >= this.message.length)
|
3052
3054
|
throw Error("out of bound");
|
3053
|
-
var r =
|
3055
|
+
var r = or(this.message, t);
|
3054
3056
|
if (r === void 0)
|
3055
3057
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3056
3058
|
return r;
|
@@ -3069,7 +3071,7 @@ var Zn = (
|
|
3069
3071
|
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);
|
3070
3072
|
}
|
3071
3073
|
}, e.prototype.bumpIf = function(t) {
|
3072
|
-
if (
|
3074
|
+
if (vt(this.message, t, this.offset())) {
|
3073
3075
|
for (var r = 0; r < t.length; r++)
|
3074
3076
|
this.bump();
|
3075
3077
|
return !0;
|
@@ -3091,7 +3093,7 @@ var Zn = (
|
|
3091
3093
|
break;
|
3092
3094
|
}
|
3093
3095
|
}, e.prototype.bumpSpace = function() {
|
3094
|
-
for (; !this.isEOF() &&
|
3096
|
+
for (; !this.isEOF() && ar(this.char()); )
|
3095
3097
|
this.bump();
|
3096
3098
|
}, e.prototype.peek = function() {
|
3097
3099
|
if (this.isEOF())
|
@@ -3104,30 +3106,30 @@ var Zn = (
|
|
3104
3106
|
function Je(e) {
|
3105
3107
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3106
3108
|
}
|
3107
|
-
function
|
3109
|
+
function qn(e) {
|
3108
3110
|
return Je(e) || e === 47;
|
3109
3111
|
}
|
3110
|
-
function
|
3112
|
+
function Jn(e) {
|
3111
3113
|
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;
|
3112
3114
|
}
|
3113
|
-
function
|
3115
|
+
function ar(e) {
|
3114
3116
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3115
3117
|
}
|
3116
|
-
function
|
3118
|
+
function Yn(e) {
|
3117
3119
|
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;
|
3118
3120
|
}
|
3119
3121
|
function Ye(e) {
|
3120
3122
|
e.forEach(function(t) {
|
3121
|
-
if (delete t.location,
|
3123
|
+
if (delete t.location, Jt(t) || Yt(t))
|
3122
3124
|
for (var r in t.options)
|
3123
3125
|
delete t.options[r].location, Ye(t.options[r].value);
|
3124
3126
|
else
|
3125
|
-
|
3127
|
+
Zt(t) && er(t.style) || (Qt(t) || qt(t)) && ze(t.style) ? delete t.style.location : Kt(t) && Ye(t.children);
|
3126
3128
|
});
|
3127
3129
|
}
|
3128
|
-
function
|
3130
|
+
function Kn(e, t) {
|
3129
3131
|
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3130
|
-
var r = new
|
3132
|
+
var r = new Qn(e, t).parse();
|
3131
3133
|
if (r.err) {
|
3132
3134
|
var n = SyntaxError(y[r.err.kind]);
|
3133
3135
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3150,7 +3152,7 @@ var Le = (
|
|
3150
3152
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3151
3153
|
}, t;
|
3152
3154
|
}(Error)
|
3153
|
-
),
|
3155
|
+
), xt = (
|
3154
3156
|
/** @class */
|
3155
3157
|
function(e) {
|
3156
3158
|
Ne(t, e);
|
@@ -3159,7 +3161,7 @@ var Le = (
|
|
3159
3161
|
}
|
3160
3162
|
return t;
|
3161
3163
|
}(Le)
|
3162
|
-
),
|
3164
|
+
), ei = (
|
3163
3165
|
/** @class */
|
3164
3166
|
function(e) {
|
3165
3167
|
Ne(t, e);
|
@@ -3168,7 +3170,7 @@ var Le = (
|
|
3168
3170
|
}
|
3169
3171
|
return t;
|
3170
3172
|
}(Le)
|
3171
|
-
),
|
3173
|
+
), ti = (
|
3172
3174
|
/** @class */
|
3173
3175
|
function(e) {
|
3174
3176
|
Ne(t, e);
|
@@ -3181,17 +3183,17 @@ var Le = (
|
|
3181
3183
|
(function(e) {
|
3182
3184
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3183
3185
|
})(O || (O = {}));
|
3184
|
-
function
|
3186
|
+
function ri(e) {
|
3185
3187
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3186
3188
|
var n = t[t.length - 1];
|
3187
3189
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
3188
3190
|
}, []);
|
3189
3191
|
}
|
3190
|
-
function
|
3192
|
+
function ni(e) {
|
3191
3193
|
return typeof e == "function";
|
3192
3194
|
}
|
3193
3195
|
function Se(e, t, r, n, i, s, o) {
|
3194
|
-
if (e.length === 1 &&
|
3196
|
+
if (e.length === 1 && gt(e[0]))
|
3195
3197
|
return [
|
3196
3198
|
{
|
3197
3199
|
type: O.literal,
|
@@ -3200,14 +3202,14 @@ function Se(e, t, r, n, i, s, o) {
|
|
3200
3202
|
];
|
3201
3203
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3202
3204
|
var u = l[h];
|
3203
|
-
if (
|
3205
|
+
if (gt(u)) {
|
3204
3206
|
a.push({
|
3205
3207
|
type: O.literal,
|
3206
3208
|
value: u.value
|
3207
3209
|
});
|
3208
3210
|
continue;
|
3209
3211
|
}
|
3210
|
-
if (
|
3212
|
+
if (Hn(u)) {
|
3211
3213
|
typeof s == "number" && a.push({
|
3212
3214
|
type: O.literal,
|
3213
3215
|
value: r.getNumberFormat(t).format(s)
|
@@ -3216,44 +3218,44 @@ function Se(e, t, r, n, i, s, o) {
|
|
3216
3218
|
}
|
3217
3219
|
var m = u.value;
|
3218
3220
|
if (!(i && m in i))
|
3219
|
-
throw new
|
3221
|
+
throw new ti(m, o);
|
3220
3222
|
var f = i[m];
|
3221
|
-
if (
|
3223
|
+
if (wn(u)) {
|
3222
3224
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3223
3225
|
type: typeof f == "string" ? O.literal : O.object,
|
3224
3226
|
value: f
|
3225
3227
|
});
|
3226
3228
|
continue;
|
3227
3229
|
}
|
3228
|
-
if (
|
3229
|
-
var
|
3230
|
+
if (Qt(u)) {
|
3231
|
+
var g = typeof u.style == "string" ? n.date[u.style] : ze(u.style) ? u.style.parsedOptions : void 0;
|
3230
3232
|
a.push({
|
3231
3233
|
type: O.literal,
|
3232
|
-
value: r.getDateTimeFormat(t,
|
3234
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
3233
3235
|
});
|
3234
3236
|
continue;
|
3235
3237
|
}
|
3236
|
-
if (
|
3237
|
-
var
|
3238
|
+
if (qt(u)) {
|
3239
|
+
var g = typeof u.style == "string" ? n.time[u.style] : ze(u.style) ? u.style.parsedOptions : n.time.medium;
|
3238
3240
|
a.push({
|
3239
3241
|
type: O.literal,
|
3240
|
-
value: r.getDateTimeFormat(t,
|
3242
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
3241
3243
|
});
|
3242
3244
|
continue;
|
3243
3245
|
}
|
3244
|
-
if (
|
3245
|
-
var
|
3246
|
-
|
3246
|
+
if (Zt(u)) {
|
3247
|
+
var g = typeof u.style == "string" ? n.number[u.style] : er(u.style) ? u.style.parsedOptions : void 0;
|
3248
|
+
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
3247
3249
|
type: O.literal,
|
3248
|
-
value: r.getNumberFormat(t,
|
3250
|
+
value: r.getNumberFormat(t, g).format(f)
|
3249
3251
|
});
|
3250
3252
|
continue;
|
3251
3253
|
}
|
3252
|
-
if (
|
3253
|
-
var
|
3254
|
-
if (!
|
3255
|
-
throw new
|
3256
|
-
var w = Se(
|
3254
|
+
if (Kt(u)) {
|
3255
|
+
var p = u.children, b = u.value, d = i[b];
|
3256
|
+
if (!ni(d))
|
3257
|
+
throw new ei(b, "function", o);
|
3258
|
+
var w = Se(p, t, r, n, i, s), E = d(w.map(function(P) {
|
3257
3259
|
return P.value;
|
3258
3260
|
}));
|
3259
3261
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(P) {
|
@@ -3263,14 +3265,14 @@ function Se(e, t, r, n, i, s, o) {
|
|
3263
3265
|
};
|
3264
3266
|
}));
|
3265
3267
|
}
|
3266
|
-
if (
|
3268
|
+
if (Jt(u)) {
|
3267
3269
|
var H = u.options[f] || u.options.other;
|
3268
3270
|
if (!H)
|
3269
|
-
throw new
|
3271
|
+
throw new xt(u.value, f, Object.keys(u.options), o);
|
3270
3272
|
a.push.apply(a, Se(H.value, t, r, n, i));
|
3271
3273
|
continue;
|
3272
3274
|
}
|
3273
|
-
if (
|
3275
|
+
if (Yt(u)) {
|
3274
3276
|
var H = u.options["=".concat(f)];
|
3275
3277
|
if (!H) {
|
3276
3278
|
if (!Intl.PluralRules)
|
@@ -3281,21 +3283,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3281
3283
|
H = u.options[R] || u.options.other;
|
3282
3284
|
}
|
3283
3285
|
if (!H)
|
3284
|
-
throw new
|
3286
|
+
throw new xt(u.value, f, Object.keys(u.options), o);
|
3285
3287
|
a.push.apply(a, Se(H.value, t, r, n, i, f - (u.offset || 0)));
|
3286
3288
|
continue;
|
3287
3289
|
}
|
3288
3290
|
}
|
3289
|
-
return
|
3291
|
+
return ri(a);
|
3290
3292
|
}
|
3291
|
-
function
|
3293
|
+
function ii(e, t) {
|
3292
3294
|
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3293
3295
|
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3294
3296
|
}, {})) : e;
|
3295
3297
|
}
|
3296
|
-
function
|
3298
|
+
function oi(e, t) {
|
3297
3299
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3298
|
-
return r[n] =
|
3300
|
+
return r[n] = ii(e[n], t[n]), r;
|
3299
3301
|
}, _({}, e)) : e;
|
3300
3302
|
}
|
3301
3303
|
function $e(e) {
|
@@ -3312,7 +3314,7 @@ function $e(e) {
|
|
3312
3314
|
}
|
3313
3315
|
};
|
3314
3316
|
}
|
3315
|
-
function
|
3317
|
+
function si(e) {
|
3316
3318
|
return e === void 0 && (e = {
|
3317
3319
|
number: {},
|
3318
3320
|
dateTime: {},
|
@@ -3344,7 +3346,7 @@ function oi(e) {
|
|
3344
3346
|
})
|
3345
3347
|
};
|
3346
3348
|
}
|
3347
|
-
var
|
3349
|
+
var ai = (
|
3348
3350
|
/** @class */
|
3349
3351
|
function() {
|
3350
3352
|
function e(t, r, n, i) {
|
@@ -3376,13 +3378,13 @@ var si = (
|
|
3376
3378
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3377
3379
|
var o = i || {};
|
3378
3380
|
o.formatters;
|
3379
|
-
var a =
|
3381
|
+
var a = bn(o, ["formatters"]);
|
3380
3382
|
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3381
3383
|
} else
|
3382
3384
|
this.ast = t;
|
3383
3385
|
if (!Array.isArray(this.ast))
|
3384
3386
|
throw new TypeError("A message must be provided as a String or AST.");
|
3385
|
-
this.formats =
|
3387
|
+
this.formats = oi(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
|
3386
3388
|
}
|
3387
3389
|
return Object.defineProperty(e, "defaultLocale", {
|
3388
3390
|
get: function() {
|
@@ -3395,7 +3397,7 @@ var si = (
|
|
3395
3397
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3396
3398
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3397
3399
|
}
|
3398
|
-
}, e.__parse =
|
3400
|
+
}, e.__parse = Kn, e.formats = {
|
3399
3401
|
number: {
|
3400
3402
|
integer: {
|
3401
3403
|
maximumFractionDigits: 0
|
@@ -3456,7 +3458,7 @@ var si = (
|
|
3456
3458
|
}, e;
|
3457
3459
|
}()
|
3458
3460
|
);
|
3459
|
-
function
|
3461
|
+
function li(e, t) {
|
3460
3462
|
if (t == null)
|
3461
3463
|
return;
|
3462
3464
|
if (t in e)
|
@@ -3477,60 +3479,60 @@ function ai(e, t) {
|
|
3477
3479
|
n = void 0;
|
3478
3480
|
return n;
|
3479
3481
|
}
|
3480
|
-
const X = {},
|
3482
|
+
const X = {}, ui = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), lr = (e, t) => {
|
3481
3483
|
if (t == null)
|
3482
3484
|
return;
|
3483
3485
|
if (t in X && e in X[t])
|
3484
3486
|
return X[t][e];
|
3485
3487
|
const r = Pe(t);
|
3486
3488
|
for (let n = 0; n < r.length; n++) {
|
3487
|
-
const i = r[n], s =
|
3489
|
+
const i = r[n], s = ci(i, e);
|
3488
3490
|
if (s)
|
3489
|
-
return
|
3491
|
+
return ui(e, t, s);
|
3490
3492
|
}
|
3491
3493
|
};
|
3492
|
-
let
|
3494
|
+
let ot;
|
3493
3495
|
const le = Me({});
|
3494
|
-
function
|
3495
|
-
return
|
3496
|
+
function hi(e) {
|
3497
|
+
return ot[e] || null;
|
3496
3498
|
}
|
3497
|
-
function
|
3498
|
-
return e in
|
3499
|
+
function ur(e) {
|
3500
|
+
return e in ot;
|
3499
3501
|
}
|
3500
|
-
function
|
3501
|
-
if (!
|
3502
|
+
function ci(e, t) {
|
3503
|
+
if (!ur(e))
|
3502
3504
|
return null;
|
3503
|
-
const r =
|
3504
|
-
return
|
3505
|
+
const r = hi(e);
|
3506
|
+
return li(r, t);
|
3505
3507
|
}
|
3506
|
-
function
|
3508
|
+
function fi(e) {
|
3507
3509
|
if (e == null)
|
3508
3510
|
return;
|
3509
3511
|
const t = Pe(e);
|
3510
3512
|
for (let r = 0; r < t.length; r++) {
|
3511
3513
|
const n = t[r];
|
3512
|
-
if (
|
3514
|
+
if (ur(n))
|
3513
3515
|
return n;
|
3514
3516
|
}
|
3515
3517
|
}
|
3516
|
-
function
|
3517
|
-
delete X[e], le.update((r) => (r[e] =
|
3518
|
+
function hr(e, ...t) {
|
3519
|
+
delete X[e], le.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
3518
3520
|
}
|
3519
3521
|
ae(
|
3520
3522
|
[le],
|
3521
3523
|
([e]) => Object.keys(e)
|
3522
3524
|
);
|
3523
|
-
le.subscribe((e) =>
|
3525
|
+
le.subscribe((e) => ot = e);
|
3524
3526
|
const Te = {};
|
3525
|
-
function
|
3527
|
+
function mi(e, t) {
|
3526
3528
|
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
3527
3529
|
}
|
3528
|
-
function
|
3530
|
+
function cr(e) {
|
3529
3531
|
return Te[e];
|
3530
3532
|
}
|
3531
|
-
function
|
3533
|
+
function di(e) {
|
3532
3534
|
return Pe(e).map((t) => {
|
3533
|
-
const r =
|
3535
|
+
const r = cr(t);
|
3534
3536
|
return [t, r ? [...r] : []];
|
3535
3537
|
}).filter(([, t]) => t.length > 0);
|
3536
3538
|
}
|
@@ -3538,27 +3540,27 @@ function Ke(e) {
|
|
3538
3540
|
return e == null ? !1 : Pe(e).some(
|
3539
3541
|
(t) => {
|
3540
3542
|
var r;
|
3541
|
-
return (r =
|
3543
|
+
return (r = cr(t)) == null ? void 0 : r.size;
|
3542
3544
|
}
|
3543
3545
|
);
|
3544
3546
|
}
|
3545
|
-
function
|
3547
|
+
function gi(e, t) {
|
3546
3548
|
return Promise.all(
|
3547
|
-
t.map((n) => (
|
3548
|
-
).then((n) =>
|
3549
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
3550
|
+
).then((n) => hr(e, ...n));
|
3549
3551
|
}
|
3550
3552
|
const ce = {};
|
3551
|
-
function
|
3553
|
+
function fr(e) {
|
3552
3554
|
if (!Ke(e))
|
3553
3555
|
return e in ce ? ce[e] : Promise.resolve();
|
3554
|
-
const t =
|
3556
|
+
const t = di(e);
|
3555
3557
|
return ce[e] = Promise.all(
|
3556
3558
|
t.map(
|
3557
|
-
([r, n]) =>
|
3559
|
+
([r, n]) => gi(r, n)
|
3558
3560
|
)
|
3559
3561
|
).then(() => {
|
3560
3562
|
if (Ke(e))
|
3561
|
-
return
|
3563
|
+
return fr(e);
|
3562
3564
|
delete ce[e];
|
3563
3565
|
}), ce[e];
|
3564
3566
|
}
|
@@ -3591,34 +3593,34 @@ const pi = {
|
|
3591
3593
|
timeZoneName: "short"
|
3592
3594
|
}
|
3593
3595
|
}
|
3594
|
-
},
|
3596
|
+
}, bi = {
|
3595
3597
|
fallbackLocale: null,
|
3596
3598
|
loadingDelay: 200,
|
3597
3599
|
formats: pi,
|
3598
3600
|
warnOnMissingMessages: !0,
|
3599
3601
|
handleMissingMessage: void 0,
|
3600
3602
|
ignoreTag: !0
|
3601
|
-
},
|
3603
|
+
}, yi = bi;
|
3602
3604
|
function se() {
|
3603
|
-
return
|
3605
|
+
return yi;
|
3604
3606
|
}
|
3605
3607
|
const je = Me(!1);
|
3606
|
-
var
|
3608
|
+
var vi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
3607
3609
|
for (var r in t || (t = {}))
|
3608
|
-
|
3609
|
-
if (
|
3610
|
-
for (var r of
|
3611
|
-
|
3610
|
+
xi.call(t, r) && wt(e, r, t[r]);
|
3611
|
+
if (Ct)
|
3612
|
+
for (var r of Ct(t))
|
3613
|
+
Ci.call(t, r) && wt(e, r, t[r]);
|
3612
3614
|
return e;
|
3613
|
-
},
|
3615
|
+
}, Hi = (e, t) => _i(e, Ei(t));
|
3614
3616
|
let et;
|
3615
3617
|
const Be = Me(null);
|
3616
|
-
function
|
3618
|
+
function Ht(e) {
|
3617
3619
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3618
3620
|
}
|
3619
3621
|
function Pe(e, t = se().fallbackLocale) {
|
3620
|
-
const r =
|
3621
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3622
|
+
const r = Ht(e);
|
3623
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ht(t)])] : r;
|
3622
3624
|
}
|
3623
3625
|
function q() {
|
3624
3626
|
return et ?? void 0;
|
@@ -3626,22 +3628,22 @@ function q() {
|
|
3626
3628
|
Be.subscribe((e) => {
|
3627
3629
|
et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3628
3630
|
});
|
3629
|
-
const
|
3630
|
-
if (e &&
|
3631
|
+
const Si = (e) => {
|
3632
|
+
if (e && fi(e) && Ke(e)) {
|
3631
3633
|
const { loadingDelay: t } = se();
|
3632
3634
|
let r;
|
3633
3635
|
return typeof window < "u" && q() != null && t ? r = window.setTimeout(
|
3634
3636
|
() => je.set(!0),
|
3635
3637
|
t
|
3636
|
-
) : je.set(!0),
|
3638
|
+
) : je.set(!0), fr(e).then(() => {
|
3637
3639
|
Be.set(e);
|
3638
3640
|
}).finally(() => {
|
3639
3641
|
clearTimeout(r), je.set(!1);
|
3640
3642
|
});
|
3641
3643
|
}
|
3642
3644
|
return Be.set(e);
|
3643
|
-
}, W = wi(
|
3644
|
-
set:
|
3645
|
+
}, W = Hi(wi({}, Be), {
|
3646
|
+
set: Si
|
3645
3647
|
}), Oe = (e) => {
|
3646
3648
|
const t = /* @__PURE__ */ Object.create(null);
|
3647
3649
|
return (n) => {
|
@@ -3649,20 +3651,20 @@ const Hi = (e) => {
|
|
3649
3651
|
return i in t ? t[i] : t[i] = e(n);
|
3650
3652
|
};
|
3651
3653
|
};
|
3652
|
-
var
|
3654
|
+
var Ti = Object.defineProperty, Ie = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
3653
3655
|
for (var r in t || (t = {}))
|
3654
|
-
|
3656
|
+
mr.call(t, r) && St(e, r, t[r]);
|
3655
3657
|
if (Ie)
|
3656
3658
|
for (var r of Ie(t))
|
3657
|
-
|
3659
|
+
dr.call(t, r) && St(e, r, t[r]);
|
3658
3660
|
return e;
|
3659
3661
|
}, ue = (e, t) => {
|
3660
3662
|
var r = {};
|
3661
3663
|
for (var n in e)
|
3662
|
-
|
3664
|
+
mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3663
3665
|
if (e != null && Ie)
|
3664
3666
|
for (var n of Ie(e))
|
3665
|
-
t.indexOf(n) < 0 &&
|
3667
|
+
t.indexOf(n) < 0 && dr.call(e, n) && (r[n] = e[n]);
|
3666
3668
|
return r;
|
3667
3669
|
};
|
3668
3670
|
const be = (e, t) => {
|
@@ -3670,21 +3672,21 @@ const be = (e, t) => {
|
|
3670
3672
|
if (e in r && t in r[e])
|
3671
3673
|
return r[e][t];
|
3672
3674
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3673
|
-
},
|
3675
|
+
}, Ai = Oe(
|
3674
3676
|
(e) => {
|
3675
3677
|
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3676
3678
|
if (r == null)
|
3677
3679
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3678
3680
|
return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
|
3679
3681
|
}
|
3680
|
-
),
|
3682
|
+
), Bi = Oe(
|
3681
3683
|
(e) => {
|
3682
3684
|
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3683
3685
|
if (r == null)
|
3684
3686
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3685
3687
|
return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
|
3686
3688
|
}
|
3687
|
-
),
|
3689
|
+
), Ii = Oe(
|
3688
3690
|
(e) => {
|
3689
3691
|
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3690
3692
|
if (r == null)
|
@@ -3693,33 +3695,33 @@ const be = (e, t) => {
|
|
3693
3695
|
);
|
3694
3696
|
return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
|
3695
3697
|
}
|
3696
|
-
),
|
3698
|
+
), Mi = (e = {}) => {
|
3697
3699
|
var t = e, {
|
3698
3700
|
locale: r = q()
|
3699
3701
|
} = t, n = ue(t, [
|
3700
3702
|
"locale"
|
3701
3703
|
]);
|
3702
|
-
return
|
3703
|
-
},
|
3704
|
+
return Ai(st({ locale: r }, n));
|
3705
|
+
}, Ni = (e = {}) => {
|
3704
3706
|
var t = e, {
|
3705
3707
|
locale: r = q()
|
3706
3708
|
} = t, n = ue(t, [
|
3707
3709
|
"locale"
|
3708
3710
|
]);
|
3709
|
-
return
|
3710
|
-
},
|
3711
|
+
return Bi(st({ locale: r }, n));
|
3712
|
+
}, Li = (e = {}) => {
|
3711
3713
|
var t = e, {
|
3712
3714
|
locale: r = q()
|
3713
3715
|
} = t, n = ue(t, [
|
3714
3716
|
"locale"
|
3715
3717
|
]);
|
3716
|
-
return
|
3717
|
-
},
|
3718
|
+
return Ii(st({ locale: r }, n));
|
3719
|
+
}, Pi = Oe(
|
3718
3720
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3719
|
-
(e, t = q()) => new
|
3721
|
+
(e, t = q()) => new ai(e, t, se().formats, {
|
3720
3722
|
ignoreTag: se().ignoreTag
|
3721
3723
|
})
|
3722
|
-
),
|
3724
|
+
), Oi = (e, t = {}) => {
|
3723
3725
|
var r, n, i, s;
|
3724
3726
|
let o = t;
|
3725
3727
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -3732,7 +3734,7 @@ const be = (e, t) => {
|
|
3732
3734
|
throw new Error(
|
3733
3735
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3734
3736
|
);
|
3735
|
-
let u =
|
3737
|
+
let u = lr(e, h);
|
3736
3738
|
if (!u)
|
3737
3739
|
u = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3738
3740
|
else if (typeof u != "string")
|
@@ -3743,7 +3745,7 @@ const be = (e, t) => {
|
|
3743
3745
|
return u;
|
3744
3746
|
let m = u;
|
3745
3747
|
try {
|
3746
|
-
m =
|
3748
|
+
m = Pi(u, h).format(a);
|
3747
3749
|
} catch (f) {
|
3748
3750
|
f instanceof Error && console.warn(
|
3749
3751
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3751,24 +3753,24 @@ const be = (e, t) => {
|
|
3751
3753
|
);
|
3752
3754
|
}
|
3753
3755
|
return m;
|
3754
|
-
},
|
3755
|
-
ae([W, le], () =>
|
3756
|
-
ae([W], () => Oi);
|
3756
|
+
}, Fi = (e, t) => Li(t).format(e), Ri = (e, t) => Ni(t).format(e), Di = (e, t) => Mi(t).format(e), Ui = (e, t = q()) => lr(e, t);
|
3757
|
+
ae([W, le], () => Oi);
|
3757
3758
|
ae([W], () => Fi);
|
3758
3759
|
ae([W], () => Ri);
|
3759
|
-
ae([W
|
3760
|
-
|
3760
|
+
ae([W], () => Di);
|
3761
|
+
ae([W, le], () => Ui);
|
3762
|
+
function Gi({ withLocale: e, translations: t }) {
|
3761
3763
|
W.subscribe((r) => {
|
3762
3764
|
r == null && (le.set(t), W.set(e));
|
3763
3765
|
});
|
3764
3766
|
}
|
3765
|
-
function
|
3766
|
-
|
3767
|
+
function Tt(e, t) {
|
3768
|
+
hr(e, t);
|
3767
3769
|
}
|
3768
|
-
function
|
3770
|
+
function ki(e) {
|
3769
3771
|
W.set(e);
|
3770
3772
|
}
|
3771
|
-
const
|
3773
|
+
const At = {
|
3772
3774
|
en: {
|
3773
3775
|
login: "Login",
|
3774
3776
|
register: "Register",
|
@@ -3825,22 +3827,22 @@ const St = {
|
|
3825
3827
|
deposit: "Deposit"
|
3826
3828
|
}
|
3827
3829
|
};
|
3828
|
-
function
|
3829
|
-
|
3830
|
+
function $i(e) {
|
3831
|
+
Ir(e, "svelte-2e7gs6", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.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}');
|
3830
3832
|
}
|
3831
|
-
function
|
3833
|
+
function Bt(e, t, r) {
|
3832
3834
|
const n = e.slice();
|
3833
3835
|
return n[48] = t[r], n[50] = r, n;
|
3834
3836
|
}
|
3835
|
-
function
|
3837
|
+
function It(e, t, r) {
|
3836
3838
|
const n = e.slice();
|
3837
3839
|
return n[51] = t[r], n;
|
3838
3840
|
}
|
3839
|
-
function
|
3841
|
+
function Mt(e, t, r) {
|
3840
3842
|
const n = e.slice();
|
3841
3843
|
return n[54] = t[r], n[56] = r, n;
|
3842
3844
|
}
|
3843
|
-
function
|
3845
|
+
function Nt(e) {
|
3844
3846
|
let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
|
3845
3847
|
/*sliderdata*/
|
3846
3848
|
e[9]
|
@@ -3850,8 +3852,8 @@ function It(e) {
|
|
3850
3852
|
o[48].id
|
3851
3853
|
);
|
3852
3854
|
for (let o = 0; o < i.length; o += 1) {
|
3853
|
-
let a =
|
3854
|
-
r.set(h, t[o] =
|
3855
|
+
let a = Bt(e, i, o), h = s(a);
|
3856
|
+
r.set(h, t[o] = Dt(h, a));
|
3855
3857
|
}
|
3856
3858
|
return {
|
3857
3859
|
c() {
|
@@ -3869,7 +3871,7 @@ function It(e) {
|
|
3869
3871
|
77775 && (i = re(
|
3870
3872
|
/*sliderdata*/
|
3871
3873
|
o[9]
|
3872
|
-
), t =
|
3874
|
+
), t = jt(t, a, s, 1, o, i, r, n.parentNode, $t, Dt, n, Bt));
|
3873
3875
|
},
|
3874
3876
|
d(o) {
|
3875
3877
|
o && F(n);
|
@@ -3878,7 +3880,7 @@ function It(e) {
|
|
3878
3880
|
}
|
3879
3881
|
};
|
3880
3882
|
}
|
3881
|
-
function
|
3883
|
+
function ji(e) {
|
3882
3884
|
let t, r = (
|
3883
3885
|
/*category*/
|
3884
3886
|
e[48].name + ""
|
@@ -3900,7 +3902,7 @@ function $i(e) {
|
|
3900
3902
|
}
|
3901
3903
|
};
|
3902
3904
|
}
|
3903
|
-
function
|
3905
|
+
function Vi(e) {
|
3904
3906
|
let t, r = (
|
3905
3907
|
/*category*/
|
3906
3908
|
e[48].label + ""
|
@@ -3925,11 +3927,11 @@ function ji(e) {
|
|
3925
3927
|
}
|
3926
3928
|
};
|
3927
3929
|
}
|
3928
|
-
function
|
3930
|
+
function Lt(e) {
|
3929
3931
|
let t, r = (
|
3930
3932
|
/*subGroupsData*/
|
3931
3933
|
e[10].length > 0 && /*showsubgroups*/
|
3932
|
-
e[2] == "true" &&
|
3934
|
+
e[2] == "true" && Pt(e)
|
3933
3935
|
);
|
3934
3936
|
return {
|
3935
3937
|
c() {
|
@@ -3941,20 +3943,20 @@ function Mt(e) {
|
|
3941
3943
|
p(n, i) {
|
3942
3944
|
/*subGroupsData*/
|
3943
3945
|
n[10].length > 0 && /*showsubgroups*/
|
3944
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3946
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Pt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3945
3947
|
},
|
3946
3948
|
d(n) {
|
3947
3949
|
n && F(t), r && r.d(n);
|
3948
3950
|
}
|
3949
3951
|
};
|
3950
3952
|
}
|
3951
|
-
function
|
3953
|
+
function Pt(e) {
|
3952
3954
|
let t, r = re(
|
3953
3955
|
/*subGroupsData*/
|
3954
3956
|
e[10]
|
3955
3957
|
), n = [];
|
3956
3958
|
for (let i = 0; i < r.length; i += 1)
|
3957
|
-
n[i] =
|
3959
|
+
n[i] = Rt(It(e, r, i));
|
3958
3960
|
return {
|
3959
3961
|
c() {
|
3960
3962
|
t = N("ul");
|
@@ -3976,8 +3978,8 @@ function Nt(e) {
|
|
3976
3978
|
);
|
3977
3979
|
let o;
|
3978
3980
|
for (o = 0; o < r.length; o += 1) {
|
3979
|
-
const a =
|
3980
|
-
n[o] ? n[o].p(a, s) : (n[o] =
|
3981
|
+
const a = It(i, r, o);
|
3982
|
+
n[o] ? n[o].p(a, s) : (n[o] = Rt(a), n[o].c(), n[o].m(t, null));
|
3981
3983
|
}
|
3982
3984
|
for (; o < n.length; o += 1)
|
3983
3985
|
n[o].d(1);
|
@@ -3985,11 +3987,11 @@ function Nt(e) {
|
|
3985
3987
|
}
|
3986
3988
|
},
|
3987
3989
|
d(i) {
|
3988
|
-
i && F(t),
|
3990
|
+
i && F(t), Lr(n, i);
|
3989
3991
|
}
|
3990
3992
|
};
|
3991
3993
|
}
|
3992
|
-
function
|
3994
|
+
function Ot(e) {
|
3993
3995
|
let t, r, n = (
|
3994
3996
|
/*subGroupItem*/
|
3995
3997
|
e[54]?.name + ""
|
@@ -4040,11 +4042,11 @@ function Lt(e) {
|
|
4040
4042
|
}
|
4041
4043
|
};
|
4042
4044
|
}
|
4043
|
-
function
|
4045
|
+
function Ft(e, t) {
|
4044
4046
|
let r, n, i = (
|
4045
4047
|
/*index*/
|
4046
4048
|
t[50] == /*subGroup*/
|
4047
|
-
t[51].index &&
|
4049
|
+
t[51].index && Ot(t)
|
4048
4050
|
);
|
4049
4051
|
return {
|
4050
4052
|
key: e,
|
@@ -4058,14 +4060,14 @@ function Pt(e, t) {
|
|
4058
4060
|
p(s, o) {
|
4059
4061
|
t = s, /*index*/
|
4060
4062
|
t[50] == /*subGroup*/
|
4061
|
-
t[51].index ? i ? i.p(t, o) : (i =
|
4063
|
+
t[51].index ? i ? i.p(t, o) : (i = Ot(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4062
4064
|
},
|
4063
4065
|
d(s) {
|
4064
4066
|
s && (F(r), F(n)), i && i.d(s);
|
4065
4067
|
}
|
4066
4068
|
};
|
4067
4069
|
}
|
4068
|
-
function
|
4070
|
+
function Rt(e) {
|
4069
4071
|
let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
|
4070
4072
|
/*subGroup*/
|
4071
4073
|
e[51].items
|
@@ -4075,8 +4077,8 @@ function Ot(e) {
|
|
4075
4077
|
o[54].id
|
4076
4078
|
);
|
4077
4079
|
for (let o = 0; o < i.length; o += 1) {
|
4078
|
-
let a =
|
4079
|
-
r.set(h, t[o] =
|
4080
|
+
let a = Mt(e, i, o), h = s(a);
|
4081
|
+
r.set(h, t[o] = Ft(h, a));
|
4080
4082
|
}
|
4081
4083
|
return {
|
4082
4084
|
c() {
|
@@ -4094,7 +4096,7 @@ function Ot(e) {
|
|
4094
4096
|
10176 && (i = re(
|
4095
4097
|
/*subGroup*/
|
4096
4098
|
o[51].items
|
4097
|
-
), t =
|
4099
|
+
), t = jt(t, a, s, 1, o, i, r, n.parentNode, $t, Ft, n, Mt));
|
4098
4100
|
},
|
4099
4101
|
d(o) {
|
4100
4102
|
o && F(n);
|
@@ -4103,20 +4105,20 @@ function Ot(e) {
|
|
4103
4105
|
}
|
4104
4106
|
};
|
4105
4107
|
}
|
4106
|
-
function
|
4108
|
+
function Dt(e, t) {
|
4107
4109
|
let r, n, i, s, o, a, h, l, u, m, f;
|
4108
|
-
function
|
4110
|
+
function g(E, H) {
|
4109
4111
|
return (
|
4110
4112
|
/*location*/
|
4111
|
-
E[0] === "headerMain" ?
|
4113
|
+
E[0] === "headerMain" ? Vi : ji
|
4112
4114
|
);
|
4113
4115
|
}
|
4114
|
-
let
|
4116
|
+
let p = g(t), b = p(t), d = (
|
4115
4117
|
/*itemsActive*/
|
4116
4118
|
t[11][
|
4117
4119
|
/*index*/
|
4118
4120
|
t[50]
|
4119
|
-
] == !0 &&
|
4121
|
+
] == !0 && Lt(t)
|
4120
4122
|
);
|
4121
4123
|
function w(...E) {
|
4122
4124
|
return (
|
@@ -4135,7 +4137,7 @@ function Ft(e, t) {
|
|
4135
4137
|
first: null,
|
4136
4138
|
c() {
|
4137
4139
|
r = N("li"), n = N("div"), i = N("ui-image"), a = Z(), b.c(), h = Z(), d && d.c(), l = Z(), Ce(i, "imgClass", s = "CategoryIconImg " + /*categoriesicon*/
|
4138
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4140
|
+
(t[3] === "true" ? "" : "DisplayNone")), ft(i.src, o = /*handleSrc*/
|
4139
4141
|
t[16](
|
4140
4142
|
/*category*/
|
4141
4143
|
t[48]
|
@@ -4158,15 +4160,15 @@ function Ft(e, t) {
|
|
4158
4160
|
t = E, H[0] & /*categoriesicon*/
|
4159
4161
|
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
4160
4162
|
(t[3] === "true" ? "" : "DisplayNone")) && Ce(i, "imgClass", s), H[0] & /*sliderdata*/
|
4161
|
-
512 && !
|
4163
|
+
512 && !ft(i.src, o = /*handleSrc*/
|
4162
4164
|
t[16](
|
4163
4165
|
/*category*/
|
4164
4166
|
t[48]
|
4165
|
-
)) && Ce(i, "src", o),
|
4167
|
+
)) && Ce(i, "src", o), p === (p = g(t)) && b ? b.p(t, H) : (b.d(1), b = p(t), b && (b.c(), b.m(r, h))), /*itemsActive*/
|
4166
4168
|
t[11][
|
4167
4169
|
/*index*/
|
4168
4170
|
t[50]
|
4169
|
-
] == !0 ? d ? d.p(t, H) : (d =
|
4171
|
+
] == !0 ? d ? d.p(t, H) : (d = Lt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), H[0] & /*activeindex, sliderdata, location*/
|
4170
4172
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4171
4173
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4172
4174
|
/*activeindex*/
|
@@ -4184,20 +4186,20 @@ function Ft(e, t) {
|
|
4184
4186
|
}
|
4185
4187
|
};
|
4186
4188
|
}
|
4187
|
-
function
|
4188
|
-
let t, r, n, i, s, o, a, h, l, u, m, f,
|
4189
|
+
function Xi(e) {
|
4190
|
+
let t, r, n, i, s, o, a, h, l, u, m, f, g, p, b, d = (
|
4189
4191
|
/*sliderdata*/
|
4190
|
-
e[9].length > 0 &&
|
4192
|
+
e[9].length > 0 && Nt(e)
|
4191
4193
|
);
|
4192
4194
|
return {
|
4193
4195
|
c() {
|
4194
4196
|
t = N("div"), r = N("div"), n = N("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Z(), s = N("div"), o = N("ul"), a = N("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Z(), d && d.c(), l = Z(), u = N("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', T(n, "class", "CarouselLeftArrow"), T(a, "class", "TouchOnly"), T(o, "id", "CarouselNav"), T(o, "class", "CarouselItems"), T(s, "class", "CarouselNavWrap scroller"), T(u, "class", "CarouselRightArrow"), T(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4195
4197
|
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), T(r, "style", f = /*location*/
|
4196
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0), T(t, "class",
|
4198
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), T(t, "class", g = "CarouselWrapper " + /*location*/
|
4197
4199
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4198
4200
|
},
|
4199
4201
|
m(w, E) {
|
4200
|
-
U(w, t, E), B(t, r), B(r, n), B(r, i), B(r, s), B(s, o), B(o, a), B(o, h), d && d.m(o, null), e[35](o), e[36](s), B(r, l), B(r, u), e[38](t),
|
4202
|
+
U(w, t, E), B(t, r), B(r, n), B(r, i), B(r, s), B(s, o), B(o, a), B(o, h), d && d.m(o, null), e[35](o), e[36](s), B(r, l), B(r, u), e[38](t), p || (b = [
|
4201
4203
|
Ae(
|
4202
4204
|
n,
|
4203
4205
|
"click",
|
@@ -4210,39 +4212,39 @@ function Vi(e) {
|
|
4210
4212
|
/*click_handler_3*/
|
4211
4213
|
e[37]
|
4212
4214
|
)
|
4213
|
-
],
|
4215
|
+
], p = !0);
|
4214
4216
|
},
|
4215
4217
|
p(w, E) {
|
4216
4218
|
/*sliderdata*/
|
4217
|
-
w[9].length > 0 ? d ? d.p(w, E) : (d =
|
4219
|
+
w[9].length > 0 ? d ? d.p(w, E) : (d = Nt(w), d.c(), d.m(o, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
4218
4220
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4219
4221
|
w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && T(r, "class", m), E[0] & /*location*/
|
4220
4222
|
1 && f !== (f = /*location*/
|
4221
4223
|
w[0] === "headerMain" ? "max-width: auto" : void 0) && T(r, "style", f), E[0] & /*location*/
|
4222
|
-
1 &&
|
4223
|
-
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && T(t, "class",
|
4224
|
+
1 && g !== (g = "CarouselWrapper " + /*location*/
|
4225
|
+
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && T(t, "class", g);
|
4224
4226
|
},
|
4225
4227
|
i: G,
|
4226
4228
|
o: G,
|
4227
4229
|
d(w) {
|
4228
|
-
w && F(t), d && d.d(), e[35](null), e[36](null), e[38](null),
|
4230
|
+
w && F(t), d && d.d(), e[35](null), e[36](null), e[38](null), p = !1, Q(b);
|
4229
4231
|
}
|
4230
4232
|
};
|
4231
4233
|
}
|
4232
|
-
function
|
4233
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu:
|
4234
|
-
|
4234
|
+
function Wi(e, t, r) {
|
4235
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: g = !1 } = t, { issecondarymenu: p = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: w = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: H = "" } = t, { mygamesiconimage: R = "" } = t, { mbsource: P = "" } = t;
|
4236
|
+
Gi({ withLocale: "en", translations: {} });
|
4235
4237
|
const k = () => {
|
4236
4238
|
fetch(f).then((x) => x.json()).then((x) => {
|
4237
4239
|
Object.keys(x).forEach((D) => {
|
4238
|
-
|
4240
|
+
Tt(D, x[D]);
|
4239
4241
|
});
|
4240
4242
|
}).catch((x) => {
|
4241
4243
|
console.log(x);
|
4242
4244
|
});
|
4243
4245
|
};
|
4244
|
-
Object.keys(
|
4245
|
-
|
4246
|
+
Object.keys(At).forEach((c) => {
|
4247
|
+
Tt(c, At[c]);
|
4246
4248
|
});
|
4247
4249
|
let C, I, L, j, $, he = [], ve = [], J = [], M, Fe = (c, x, D, z, V) => {
|
4248
4250
|
if (!(c.subGroups && z === null)) {
|
@@ -4272,18 +4274,18 @@ function Xi(e, t, r) {
|
|
4272
4274
|
window.location.href
|
4273
4275
|
);
|
4274
4276
|
}
|
4275
|
-
},
|
4277
|
+
}, at = () => {
|
4276
4278
|
M && (J.length !== I ? r(12, M.scrollLeft -= 250, M) : r(12, M.scrollLeft = 0, M));
|
4277
|
-
},
|
4279
|
+
}, lt = () => {
|
4278
4280
|
M && (J.length !== I ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4279
4281
|
};
|
4280
|
-
const
|
4281
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9, he = c.data.data), r(11, J = new Array(he.length).fill(!1)), w == "true" &&
|
4282
|
+
const ut = (c) => {
|
4283
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, he = c.data.data), r(11, J = new Array(he.length).fill(!1)), w == "true" && br()), c.data.type == "GoToHomepage" && he.forEach((x, D) => {
|
4282
4284
|
x.path.endsWith("/casino") && (r(6, I = D), r(6, I));
|
4283
4285
|
});
|
4284
|
-
},
|
4285
|
-
|
4286
|
-
},
|
4286
|
+
}, gr = () => {
|
4287
|
+
ki(b);
|
4288
|
+
}, pr = (c, x, D) => {
|
4287
4289
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4288
4290
|
let z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4289
4291
|
fetch(z.href).then((V) => V.json()).then((V) => {
|
@@ -4297,8 +4299,8 @@ function Xi(e, t, r) {
|
|
4297
4299
|
window.location.href
|
4298
4300
|
);
|
4299
4301
|
const Ee = [];
|
4300
|
-
ve.map((
|
4301
|
-
Ee.find((
|
4302
|
+
ve.map((Sr) => (Sr.items.forEach((ht) => {
|
4303
|
+
Ee.find((Tr) => ht.id == Tr) || Ee.push(ht.id);
|
4302
4304
|
}), Ee.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Ee }, window.location.href);
|
4303
4305
|
}).then(() => {
|
4304
4306
|
C.querySelectorAll(".DropDown") && _e();
|
@@ -4311,54 +4313,54 @@ function Xi(e, t, r) {
|
|
4311
4313
|
for (let x = 0; x < c.length; x++)
|
4312
4314
|
c[x].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4313
4315
|
M.classList.remove("isScrolling");
|
4314
|
-
},
|
4316
|
+
}, br = () => {
|
4315
4317
|
he.forEach((c, x) => {
|
4316
|
-
c?.subGroups?.count > 0 && (r(11, J[x] = !0, J),
|
4318
|
+
c?.subGroups?.count > 0 && (r(11, J[x] = !0, J), pr(c, x));
|
4317
4319
|
});
|
4318
|
-
},
|
4320
|
+
}, yr = (c) => {
|
4319
4321
|
let x = "";
|
4320
4322
|
return c.id === "LOBBY" ? x = H : c.id === "MYGAMES" && (x = R), c.icon || x;
|
4321
4323
|
};
|
4322
|
-
|
4324
|
+
Rr(() => (window.addEventListener("message", ut, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4323
4325
|
() => {
|
4324
4326
|
M.addEventListener("scroll", _e);
|
4325
4327
|
},
|
4326
4328
|
500
|
4327
4329
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4328
|
-
window.removeEventListener("message",
|
4330
|
+
window.removeEventListener("message", ut), C.removeEventListener("scroll", _e);
|
4329
4331
|
}));
|
4330
|
-
const
|
4332
|
+
const vr = () => at(), _r = (c, x, D, z, V) => {
|
4331
4333
|
Fe(c, x, D, z, "secondary"), V.stopPropagation();
|
4332
|
-
},
|
4334
|
+
}, Er = (c, x, D) => {
|
4333
4335
|
Fe(c, x, null, null, "main"), D.preventDefault();
|
4334
4336
|
};
|
4335
|
-
function
|
4337
|
+
function xr(c) {
|
4336
4338
|
me[c ? "unshift" : "push"](() => {
|
4337
4339
|
C = c, r(5, C);
|
4338
4340
|
});
|
4339
4341
|
}
|
4340
|
-
function
|
4342
|
+
function Cr(c) {
|
4341
4343
|
me[c ? "unshift" : "push"](() => {
|
4342
4344
|
M = c, r(12, M);
|
4343
4345
|
});
|
4344
4346
|
}
|
4345
|
-
const
|
4346
|
-
function
|
4347
|
+
const wr = () => lt();
|
4348
|
+
function Hr(c) {
|
4347
4349
|
me[c ? "unshift" : "push"](() => {
|
4348
4350
|
$ = c, r(4, $);
|
4349
4351
|
});
|
4350
4352
|
}
|
4351
4353
|
return e.$$set = (c) => {
|
4352
|
-
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26,
|
4354
|
+
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, g = c.isprimarymenu), "issecondarymenu" in c && r(27, p = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, E = c.categoriesicon), "lobbyiconimage" in c && r(29, H = c.lobbyiconimage), "mygamesiconimage" in c && r(30, R = c.mygamesiconimage), "mbsource" in c && r(31, P = c.mbsource);
|
4353
4355
|
}, e.$$.update = () => {
|
4354
4356
|
e.$$.dirty[0] & /*activeindex*/
|
4355
4357
|
2, e.$$.dirty[0] & /*translationurl*/
|
4356
4358
|
33554432 && f && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4357
|
-
4194320 && l && $ &&
|
4358
|
-
8388624 && u && $ &&
|
4359
|
+
4194320 && l && $ && qr($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4360
|
+
8388624 && u && $ && Jr($, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4359
4361
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4360
|
-
1 && P && $ &&
|
4361
|
-
268435456 && b &&
|
4362
|
+
1 && P && $ && Yr($, `${P}.Style`), e.$$.dirty[0] & /*lang*/
|
4363
|
+
268435456 && b && gr();
|
4362
4364
|
}, [
|
4363
4365
|
h,
|
4364
4366
|
d,
|
@@ -4374,9 +4376,9 @@ function Xi(e, t, r) {
|
|
4374
4376
|
J,
|
4375
4377
|
M,
|
4376
4378
|
Fe,
|
4377
|
-
|
4378
|
-
|
4379
|
-
|
4379
|
+
at,
|
4380
|
+
lt,
|
4381
|
+
yr,
|
4380
4382
|
n,
|
4381
4383
|
i,
|
4382
4384
|
s,
|
@@ -4386,29 +4388,29 @@ function Xi(e, t, r) {
|
|
4386
4388
|
u,
|
4387
4389
|
m,
|
4388
4390
|
f,
|
4389
|
-
p,
|
4390
4391
|
g,
|
4392
|
+
p,
|
4391
4393
|
b,
|
4392
4394
|
H,
|
4393
4395
|
R,
|
4394
4396
|
P,
|
4395
|
-
br,
|
4396
|
-
yr,
|
4397
4397
|
vr,
|
4398
4398
|
_r,
|
4399
4399
|
Er,
|
4400
4400
|
xr,
|
4401
|
-
Cr
|
4401
|
+
Cr,
|
4402
|
+
wr,
|
4403
|
+
Hr
|
4402
4404
|
];
|
4403
4405
|
}
|
4404
|
-
class
|
4406
|
+
class zi extends Zr {
|
4405
4407
|
constructor(t) {
|
4406
|
-
super(),
|
4408
|
+
super(), Wr(
|
4407
4409
|
this,
|
4408
4410
|
t,
|
4411
|
+
Wi,
|
4409
4412
|
Xi,
|
4410
|
-
|
4411
|
-
Dt,
|
4413
|
+
Gt,
|
4412
4414
|
{
|
4413
4415
|
endpoint: 17,
|
4414
4416
|
datasource: 18,
|
@@ -4430,7 +4432,7 @@ class Wi extends Wr {
|
|
4430
4432
|
mygamesiconimage: 30,
|
4431
4433
|
mbsource: 31
|
4432
4434
|
},
|
4433
|
-
|
4435
|
+
$i,
|
4434
4436
|
[-1, -1]
|
4435
4437
|
);
|
4436
4438
|
}
|
@@ -4549,7 +4551,7 @@ class Wi extends Wr {
|
|
4549
4551
|
this.$$set({ mbsource: t }), A();
|
4550
4552
|
}
|
4551
4553
|
}
|
4552
|
-
|
4554
|
+
zr(zi, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4553
4555
|
export {
|
4554
|
-
|
4556
|
+
zi as C
|
4555
4557
|
};
|