@everymatrix/casino-slider 1.76.1 → 1.76.4
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-CFKoVTOF.cjs +3 -0
- package/components/{CasinoSlider-CMPyMc_g.js → CasinoSlider-DL_bvtZw.js} +766 -762
- package/components/{CasinoSlider-5lZXuYHt.js → CasinoSlider-JyVDKB5k.js} +755 -751
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-CeKQcPVb.cjs +0 -16
@@ -6,18 +6,18 @@ function kt(e) {
|
|
6
6
|
function mt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
9
|
+
function J(e) {
|
10
10
|
e.forEach(kt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function ot(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
15
|
function $t(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
let
|
18
|
+
let Se;
|
19
19
|
function dt(e, t) {
|
20
|
-
return e === t ? !0 : (
|
20
|
+
return e === t ? !0 : (Se || (Se = document.createElement("a")), Se.href = t, e === Se.href);
|
21
21
|
}
|
22
22
|
function Or(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
@@ -71,16 +71,16 @@ function Gr(e, t) {
|
|
71
71
|
function L(e) {
|
72
72
|
return document.createElement(e);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function xe(e) {
|
75
75
|
return document.createTextNode(e);
|
76
76
|
}
|
77
|
-
function
|
78
|
-
return
|
77
|
+
function q() {
|
78
|
+
return xe(" ");
|
79
79
|
}
|
80
|
-
function
|
81
|
-
return
|
80
|
+
function ye() {
|
81
|
+
return xe("");
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function V(e, t, r, n) {
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
85
85
|
}
|
86
86
|
function kr(e) {
|
@@ -88,13 +88,13 @@ function kr(e) {
|
|
88
88
|
return t.preventDefault(), e.call(this, t);
|
89
89
|
};
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function H(e, t, r) {
|
92
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
93
93
|
}
|
94
94
|
function $r(e) {
|
95
95
|
return Array.from(e.childNodes);
|
96
96
|
}
|
97
|
-
function
|
97
|
+
function st(e, t) {
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
99
99
|
t);
|
100
100
|
}
|
@@ -107,14 +107,14 @@ function jr(e) {
|
|
107
107
|
}
|
108
108
|
), t;
|
109
109
|
}
|
110
|
-
let
|
111
|
-
function
|
112
|
-
|
110
|
+
let ve;
|
111
|
+
function ge(e) {
|
112
|
+
ve = e;
|
113
113
|
}
|
114
114
|
function Vr() {
|
115
|
-
if (!
|
115
|
+
if (!ve)
|
116
116
|
throw new Error("Function called outside component initialization");
|
117
|
-
return
|
117
|
+
return ve;
|
118
118
|
}
|
119
119
|
function Xr(e) {
|
120
120
|
Vr().$$.on_mount.push(e);
|
@@ -123,113 +123,113 @@ function Wr(e, t) {
|
|
123
123
|
const r = e.$$.callbacks[t.type];
|
124
124
|
r && r.slice().forEach((n) => n.call(this, t));
|
125
125
|
}
|
126
|
-
const
|
127
|
-
let
|
126
|
+
const ne = [], be = [];
|
127
|
+
let ie = [];
|
128
128
|
const pt = [], zr = /* @__PURE__ */ Promise.resolve();
|
129
|
-
let
|
129
|
+
let Ze = !1;
|
130
130
|
function Zr() {
|
131
|
-
|
131
|
+
Ze || (Ze = !0, zr.then(B));
|
132
132
|
}
|
133
|
-
function
|
134
|
-
|
133
|
+
function Qe(e) {
|
134
|
+
ie.push(e);
|
135
135
|
}
|
136
|
-
const
|
137
|
-
let
|
136
|
+
const ke = /* @__PURE__ */ new Set();
|
137
|
+
let te = 0;
|
138
138
|
function B() {
|
139
|
-
if (
|
139
|
+
if (te !== 0)
|
140
140
|
return;
|
141
|
-
const e =
|
141
|
+
const e = ve;
|
142
142
|
do {
|
143
143
|
try {
|
144
|
-
for (;
|
145
|
-
const t =
|
146
|
-
|
144
|
+
for (; te < ne.length; ) {
|
145
|
+
const t = ne[te];
|
146
|
+
te++, ge(t), Qr(t.$$);
|
147
147
|
}
|
148
148
|
} catch (t) {
|
149
|
-
throw
|
149
|
+
throw ne.length = 0, te = 0, t;
|
150
150
|
}
|
151
|
-
for (
|
152
|
-
|
153
|
-
for (let t = 0; t <
|
154
|
-
const r =
|
155
|
-
|
151
|
+
for (ge(null), ne.length = 0, te = 0; be.length; )
|
152
|
+
be.pop()();
|
153
|
+
for (let t = 0; t < ie.length; t += 1) {
|
154
|
+
const r = ie[t];
|
155
|
+
ke.has(r) || (ke.add(r), r());
|
156
156
|
}
|
157
|
-
|
158
|
-
} while (
|
157
|
+
ie.length = 0;
|
158
|
+
} while (ne.length);
|
159
159
|
for (; pt.length; )
|
160
160
|
pt.pop()();
|
161
|
-
|
161
|
+
Ze = !1, ke.clear(), ge(e);
|
162
162
|
}
|
163
163
|
function Qr(e) {
|
164
164
|
if (e.fragment !== null) {
|
165
|
-
e.update(),
|
165
|
+
e.update(), J(e.before_update);
|
166
166
|
const t = e.dirty;
|
167
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
167
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qe);
|
168
168
|
}
|
169
169
|
}
|
170
170
|
function qr(e) {
|
171
171
|
const t = [], r = [];
|
172
|
-
|
172
|
+
ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
|
173
173
|
}
|
174
174
|
const Jr = /* @__PURE__ */ new Set();
|
175
175
|
function jt(e, t) {
|
176
176
|
e && e.i && (Jr.delete(e), e.i(t));
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function oe(e) {
|
179
179
|
return e?.length !== void 0 ? e : Array.from(e);
|
180
180
|
}
|
181
181
|
function Vt(e, t) {
|
182
182
|
e.d(1), t.delete(e.key);
|
183
183
|
}
|
184
|
-
function Xt(e, t, r, n, i,
|
185
|
-
let f = e.length, p =
|
184
|
+
function Xt(e, t, r, n, i, o, s, a, h, l, u, m) {
|
185
|
+
let f = e.length, p = o.length, g = f;
|
186
186
|
const b = {};
|
187
187
|
for (; g--; )
|
188
188
|
b[e[g].key] = g;
|
189
|
-
const d = [],
|
189
|
+
const d = [], x = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), w = [];
|
190
190
|
for (g = p; g--; ) {
|
191
|
-
const
|
192
|
-
let R =
|
193
|
-
R ? w.push(() => R.p(
|
191
|
+
const C = m(i, o, g), F = r(C);
|
192
|
+
let R = s.get(F);
|
193
|
+
R ? w.push(() => R.p(C, t)) : (R = l(F, C), R.c()), x.set(F, d[g] = R), F in b && _.set(F, Math.abs(g - b[F]));
|
194
194
|
}
|
195
195
|
const U = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
196
|
-
function
|
197
|
-
jt(
|
196
|
+
function S(C) {
|
197
|
+
jt(C, 1), C.m(a, u), s.set(C.key, C), u = C.first, p--;
|
198
198
|
}
|
199
199
|
for (; f && p; ) {
|
200
|
-
const
|
201
|
-
|
200
|
+
const C = d[p - 1], F = e[f - 1], R = C.key, K = F.key;
|
201
|
+
C === F ? (u = C.first, f--, p--) : x.has(K) ? !s.has(R) || U.has(R) ? S(C) : N.has(K) ? f-- : _.get(R) > _.get(K) ? (N.add(R), S(C)) : (U.add(K), f--) : (h(F, s), f--);
|
202
202
|
}
|
203
203
|
for (; f--; ) {
|
204
|
-
const
|
205
|
-
|
204
|
+
const C = e[f];
|
205
|
+
x.has(C.key) || h(C, s);
|
206
206
|
}
|
207
207
|
for (; p; )
|
208
|
-
|
209
|
-
return
|
208
|
+
S(d[p - 1]);
|
209
|
+
return J(w), d;
|
210
210
|
}
|
211
211
|
function Yr(e, t, r) {
|
212
212
|
const { fragment: n, after_update: i } = e.$$;
|
213
|
-
n && n.m(t, r),
|
214
|
-
const
|
215
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
216
|
-
}), i.forEach(
|
213
|
+
n && n.m(t, r), Qe(() => {
|
214
|
+
const o = e.$$.on_mount.map(kt).filter(ot);
|
215
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
216
|
+
}), i.forEach(Qe);
|
217
217
|
}
|
218
218
|
function Kr(e, t) {
|
219
219
|
const r = e.$$;
|
220
|
-
r.fragment !== null && (qr(r.after_update),
|
220
|
+
r.fragment !== null && (qr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
221
221
|
}
|
222
222
|
function en(e, t) {
|
223
|
-
e.$$.dirty[0] === -1 && (
|
223
|
+
e.$$.dirty[0] === -1 && (ne.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
224
224
|
}
|
225
|
-
function tn(e, t, r, n, i,
|
226
|
-
const h =
|
227
|
-
|
225
|
+
function tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
226
|
+
const h = ve;
|
227
|
+
ge(e);
|
228
228
|
const l = e.$$ = {
|
229
229
|
fragment: null,
|
230
230
|
ctx: [],
|
231
231
|
// state
|
232
|
-
props:
|
232
|
+
props: o,
|
233
233
|
update: k,
|
234
234
|
not_equal: i,
|
235
235
|
bound: mt(),
|
@@ -246,12 +246,12 @@ function tn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
246
246
|
skip_bound: !1,
|
247
247
|
root: t.target || h.$$.root
|
248
248
|
};
|
249
|
-
|
249
|
+
s && s(l.root);
|
250
250
|
let u = !1;
|
251
251
|
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
252
252
|
const g = p.length ? p[0] : f;
|
253
253
|
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && en(e, m)), f;
|
254
|
-
}) : [], l.update(), u = !0,
|
254
|
+
}) : [], l.update(), u = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
255
255
|
if (t.hydrate) {
|
256
256
|
const m = $r(t.target);
|
257
257
|
l.fragment && l.fragment.l(m), m.forEach(D);
|
@@ -259,7 +259,7 @@ function tn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
259
259
|
l.fragment && l.fragment.c();
|
260
260
|
t.intro && jt(e.$$.fragment), Yr(e, t.target, t.anchor), B();
|
261
261
|
}
|
262
|
-
|
262
|
+
ge(h);
|
263
263
|
}
|
264
264
|
let Wt;
|
265
265
|
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
@@ -301,20 +301,20 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
301
301
|
if (this.$$cn = !0, !this.$$c) {
|
302
302
|
let e = function(i) {
|
303
303
|
return () => {
|
304
|
-
let
|
304
|
+
let o;
|
305
305
|
return {
|
306
306
|
c: function() {
|
307
|
-
|
307
|
+
o = L("slot"), i !== "default" && H(o, "name", i);
|
308
308
|
},
|
309
309
|
/**
|
310
310
|
* @param {HTMLElement} target
|
311
311
|
* @param {HTMLElement} [anchor]
|
312
312
|
*/
|
313
313
|
m: function(h, l) {
|
314
|
-
G(h,
|
314
|
+
G(h, o, l);
|
315
315
|
},
|
316
316
|
d: function(h) {
|
317
|
-
h && D(
|
317
|
+
h && D(o);
|
318
318
|
}
|
319
319
|
};
|
320
320
|
};
|
@@ -325,8 +325,8 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
325
325
|
for (const i of this.$$s)
|
326
326
|
i in r && (t[i] = [e(i)]);
|
327
327
|
for (const i of this.attributes) {
|
328
|
-
const
|
329
|
-
|
328
|
+
const o = this.$$g_p(i.name);
|
329
|
+
o in this.$$d || (this.$$d[o] = Ae(o, i.value, this.$$p_d, "toProp"));
|
330
330
|
}
|
331
331
|
for (const i in this.$$p_d)
|
332
332
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -344,21 +344,21 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
344
344
|
this.$$r = !0;
|
345
345
|
for (const i in this.$$p_d)
|
346
346
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
347
|
-
const
|
347
|
+
const o = Ae(
|
348
348
|
i,
|
349
349
|
this.$$d[i],
|
350
350
|
this.$$p_d,
|
351
351
|
"toAttribute"
|
352
352
|
);
|
353
|
-
|
353
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
354
354
|
}
|
355
355
|
this.$$r = !1;
|
356
356
|
};
|
357
357
|
this.$$c.$$.after_update.push(n), n();
|
358
358
|
for (const i in this.$$l)
|
359
|
-
for (const
|
360
|
-
const
|
361
|
-
this.$$l_u.set(
|
359
|
+
for (const o of this.$$l[i]) {
|
360
|
+
const s = this.$$c.$on(i, o);
|
361
|
+
this.$$l_u.set(o, s);
|
362
362
|
}
|
363
363
|
this.$$l = {};
|
364
364
|
}
|
@@ -366,7 +366,7 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
366
366
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
367
367
|
// and setting attributes through setAttribute etc, this is helpful
|
368
368
|
attributeChangedCallback(e, t, r) {
|
369
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
369
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ae(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
370
370
|
}
|
371
371
|
disconnectedCallback() {
|
372
372
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
379
379
|
) || e;
|
380
380
|
}
|
381
381
|
});
|
382
|
-
function
|
382
|
+
function Ae(e, t, r, n) {
|
383
383
|
const i = r[e]?.type;
|
384
384
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
385
385
|
return t;
|
@@ -408,8 +408,8 @@ function Te(e, t, r, n) {
|
|
408
408
|
return t;
|
409
409
|
}
|
410
410
|
}
|
411
|
-
function rn(e, t, r, n, i,
|
412
|
-
let
|
411
|
+
function rn(e, t, r, n, i, o) {
|
412
|
+
let s = class extends Wt {
|
413
413
|
constructor() {
|
414
414
|
super(e, r, i), this.$$p_d = t;
|
415
415
|
}
|
@@ -420,22 +420,22 @@ function rn(e, t, r, n, i, s) {
|
|
420
420
|
}
|
421
421
|
};
|
422
422
|
return Object.keys(t).forEach((a) => {
|
423
|
-
Object.defineProperty(
|
423
|
+
Object.defineProperty(s.prototype, a, {
|
424
424
|
get() {
|
425
425
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
426
426
|
},
|
427
427
|
set(h) {
|
428
|
-
h =
|
428
|
+
h = Ae(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
429
429
|
}
|
430
430
|
});
|
431
431
|
}), n.forEach((a) => {
|
432
|
-
Object.defineProperty(
|
432
|
+
Object.defineProperty(s.prototype, a, {
|
433
433
|
get() {
|
434
434
|
return this.$$c?.[a];
|
435
435
|
}
|
436
436
|
});
|
437
437
|
}), e.element = /** @type {any} */
|
438
|
-
|
438
|
+
s, s;
|
439
439
|
}
|
440
440
|
class nn {
|
441
441
|
/**
|
@@ -465,7 +465,7 @@ class nn {
|
|
465
465
|
* @returns {() => void}
|
466
466
|
*/
|
467
467
|
$on(t, r) {
|
468
|
-
if (!
|
468
|
+
if (!ot(r))
|
469
469
|
return k;
|
470
470
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
471
471
|
return n.push(r), () => {
|
@@ -506,44 +506,44 @@ function ln(e, t, r) {
|
|
506
506
|
});
|
507
507
|
}
|
508
508
|
}
|
509
|
-
const
|
509
|
+
const re = [];
|
510
510
|
function un(e, t) {
|
511
511
|
return {
|
512
|
-
subscribe:
|
512
|
+
subscribe: Pe(e, t).subscribe
|
513
513
|
};
|
514
514
|
}
|
515
|
-
function
|
515
|
+
function Pe(e, t = k) {
|
516
516
|
let r;
|
517
517
|
const n = /* @__PURE__ */ new Set();
|
518
518
|
function i(a) {
|
519
519
|
if ($t(e, a) && (e = a, r)) {
|
520
|
-
const h = !
|
520
|
+
const h = !re.length;
|
521
521
|
for (const l of n)
|
522
|
-
l[1](),
|
522
|
+
l[1](), re.push(l, e);
|
523
523
|
if (h) {
|
524
|
-
for (let l = 0; l <
|
525
|
-
|
526
|
-
|
524
|
+
for (let l = 0; l < re.length; l += 2)
|
525
|
+
re[l][0](re[l + 1]);
|
526
|
+
re.length = 0;
|
527
527
|
}
|
528
528
|
}
|
529
529
|
}
|
530
|
-
function
|
530
|
+
function o(a) {
|
531
531
|
i(a(e));
|
532
532
|
}
|
533
|
-
function
|
533
|
+
function s(a, h = k) {
|
534
534
|
const l = [a, h];
|
535
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
535
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
536
536
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
537
537
|
};
|
538
538
|
}
|
539
|
-
return { set: i, update:
|
539
|
+
return { set: i, update: o, subscribe: s };
|
540
540
|
}
|
541
|
-
function
|
541
|
+
function he(e, t, r) {
|
542
542
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
543
543
|
if (!i.every(Boolean))
|
544
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
545
|
-
const
|
546
|
-
return un(r, (
|
545
|
+
const o = t.length < 2;
|
546
|
+
return un(r, (s, a) => {
|
547
547
|
let h = !1;
|
548
548
|
const l = [];
|
549
549
|
let u = 0, m = k;
|
@@ -551,8 +551,8 @@ function ue(e, t, r) {
|
|
551
551
|
if (u)
|
552
552
|
return;
|
553
553
|
m();
|
554
|
-
const g = t(n ? l[0] : l,
|
555
|
-
|
554
|
+
const g = t(n ? l[0] : l, s, a);
|
555
|
+
o ? s(g) : m = ot(g) ? g : k;
|
556
556
|
}, p = i.map(
|
557
557
|
(g, b) => Fr(
|
558
558
|
g,
|
@@ -565,7 +565,7 @@ function ue(e, t, r) {
|
|
565
565
|
)
|
566
566
|
);
|
567
567
|
return h = !0, f(), function() {
|
568
|
-
|
568
|
+
J(p), m(), h = !1;
|
569
569
|
};
|
570
570
|
});
|
571
571
|
}
|
@@ -589,19 +589,19 @@ function gn(e) {
|
|
589
589
|
function bn(e) {
|
590
590
|
return Array.isArray(e) ? [] : {};
|
591
591
|
}
|
592
|
-
function
|
593
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
592
|
+
function _e(e, t) {
|
593
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? se(bn(e), e, t) : e;
|
594
594
|
}
|
595
595
|
function yn(e, t, r) {
|
596
596
|
return e.concat(t).map(function(n) {
|
597
|
-
return
|
597
|
+
return _e(n, r);
|
598
598
|
});
|
599
599
|
}
|
600
600
|
function vn(e, t) {
|
601
601
|
if (!t.customMerge)
|
602
|
-
return
|
602
|
+
return se;
|
603
603
|
var r = t.customMerge(e);
|
604
|
-
return typeof r == "function" ? r :
|
604
|
+
return typeof r == "function" ? r : se;
|
605
605
|
}
|
606
606
|
function _n(e) {
|
607
607
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
@@ -624,65 +624,51 @@ function En(e, t) {
|
|
624
624
|
function xn(e, t, r) {
|
625
625
|
var n = {};
|
626
626
|
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
627
|
-
n[i] =
|
627
|
+
n[i] = _e(e[i], r);
|
628
628
|
}), gt(t).forEach(function(i) {
|
629
|
-
En(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = vn(i, r)(e[i], t[i], r) : n[i] =
|
629
|
+
En(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = vn(i, r)(e[i], t[i], r) : n[i] = _e(t[i], r));
|
630
630
|
}), n;
|
631
631
|
}
|
632
|
-
function
|
633
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified =
|
634
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
635
|
-
return
|
632
|
+
function se(e, t, r) {
|
633
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = _e;
|
634
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
635
|
+
return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : _e(t, r);
|
636
636
|
}
|
637
|
-
|
637
|
+
se.all = function(t, r) {
|
638
638
|
if (!Array.isArray(t))
|
639
639
|
throw new Error("first argument should be an array");
|
640
640
|
return t.reduce(function(n, i) {
|
641
|
-
return
|
641
|
+
return se(n, i, r);
|
642
642
|
}, {});
|
643
643
|
};
|
644
|
-
var
|
645
|
-
const Hn = /* @__PURE__ */ hn(
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
650
|
-
purpose with or without fee is hereby granted.
|
651
|
-
|
652
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
653
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
654
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
655
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
656
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
657
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
658
|
-
PERFORMANCE OF THIS SOFTWARE.
|
659
|
-
***************************************************************************** */
|
660
|
-
var Ze = function(e, t) {
|
661
|
-
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
644
|
+
var wn = se, Cn = wn;
|
645
|
+
const Hn = /* @__PURE__ */ hn(Cn);
|
646
|
+
var qe = function(e, t) {
|
647
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
662
648
|
r.__proto__ = n;
|
663
649
|
} || function(r, n) {
|
664
650
|
for (var i in n)
|
665
651
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
666
|
-
},
|
652
|
+
}, qe(e, t);
|
667
653
|
};
|
668
|
-
function
|
654
|
+
function Oe(e, t) {
|
669
655
|
if (typeof t != "function" && t !== null)
|
670
656
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
671
|
-
|
657
|
+
qe(e, t);
|
672
658
|
function r() {
|
673
659
|
this.constructor = e;
|
674
660
|
}
|
675
661
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
676
662
|
}
|
677
|
-
var
|
678
|
-
return
|
663
|
+
var $ = function() {
|
664
|
+
return $ = Object.assign || function(t) {
|
679
665
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
680
666
|
r = arguments[n];
|
681
|
-
for (var
|
682
|
-
Object.prototype.hasOwnProperty.call(r,
|
667
|
+
for (var o in r)
|
668
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
683
669
|
}
|
684
670
|
return t;
|
685
|
-
},
|
671
|
+
}, $.apply(this, arguments);
|
686
672
|
};
|
687
673
|
function Sn(e, t) {
|
688
674
|
var r = {};
|
@@ -693,14 +679,14 @@ function Sn(e, t) {
|
|
693
679
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
694
680
|
return r;
|
695
681
|
}
|
696
|
-
function
|
697
|
-
if (arguments.length === 2)
|
698
|
-
for (var n = 0, i = t.length,
|
699
|
-
(
|
700
|
-
return e.concat(
|
682
|
+
function $e(e, t, r) {
|
683
|
+
if (r || arguments.length === 2)
|
684
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
685
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
686
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
701
687
|
}
|
702
|
-
function
|
703
|
-
var r = t && t.cache ? t.cache :
|
688
|
+
function je(e, t) {
|
689
|
+
var r = t && t.cache ? t.cache : Nn, n = t && t.serializer ? t.serializer : Mn, i = t && t.strategy ? t.strategy : Bn;
|
704
690
|
return i(e, {
|
705
691
|
cache: r,
|
706
692
|
serializer: n
|
@@ -709,95 +695,103 @@ function ke(e, t) {
|
|
709
695
|
function Tn(e) {
|
710
696
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
711
697
|
}
|
712
|
-
function
|
713
|
-
var i = Tn(n) ? n : r(n),
|
714
|
-
return typeof
|
698
|
+
function An(e, t, r, n) {
|
699
|
+
var i = Tn(n) ? n : r(n), o = t.get(i);
|
700
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
715
701
|
}
|
716
|
-
function
|
717
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
718
|
-
return typeof
|
702
|
+
function Zt(e, t, r) {
|
703
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
704
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
719
705
|
}
|
720
|
-
function
|
706
|
+
function Qt(e, t, r, n, i) {
|
721
707
|
return r.bind(t, e, n, i);
|
722
708
|
}
|
723
|
-
function An(e, t) {
|
724
|
-
var r = e.length === 1 ? Zt : Qt;
|
725
|
-
return ot(e, this, r, t.cache.create(), t.serializer);
|
726
|
-
}
|
727
709
|
function Bn(e, t) {
|
728
|
-
|
710
|
+
var r = e.length === 1 ? An : Zt;
|
711
|
+
return Qt(e, this, r, t.cache.create(), t.serializer);
|
729
712
|
}
|
730
713
|
function In(e, t) {
|
731
|
-
return
|
714
|
+
return Qt(e, this, Zt, t.cache.create(), t.serializer);
|
732
715
|
}
|
733
716
|
var Mn = function() {
|
734
717
|
return JSON.stringify(arguments);
|
735
|
-
}
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
718
|
+
}, Ln = (
|
719
|
+
/** @class */
|
720
|
+
function() {
|
721
|
+
function e() {
|
722
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
723
|
+
}
|
724
|
+
return e.prototype.get = function(t) {
|
725
|
+
return this.cache[t];
|
726
|
+
}, e.prototype.set = function(t, r) {
|
727
|
+
this.cache[t] = r;
|
728
|
+
}, e;
|
729
|
+
}()
|
730
|
+
), Nn = {
|
746
731
|
create: function() {
|
747
|
-
return new
|
732
|
+
return new Ln();
|
748
733
|
}
|
749
|
-
},
|
750
|
-
variadic:
|
751
|
-
|
752
|
-
|
734
|
+
}, Ve = {
|
735
|
+
variadic: In
|
736
|
+
}, Me = function() {
|
737
|
+
return Me = Object.assign || function(t) {
|
738
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
739
|
+
r = arguments[n];
|
740
|
+
for (var o in r)
|
741
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
742
|
+
}
|
743
|
+
return t;
|
744
|
+
}, Me.apply(this, arguments);
|
745
|
+
};
|
746
|
+
var y;
|
753
747
|
(function(e) {
|
754
748
|
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
749
|
})(y || (y = {}));
|
756
|
-
var
|
750
|
+
var T;
|
757
751
|
(function(e) {
|
758
752
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
759
|
-
})(
|
760
|
-
var
|
753
|
+
})(T || (T = {}));
|
754
|
+
var ae;
|
761
755
|
(function(e) {
|
762
756
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
763
|
-
})(
|
757
|
+
})(ae || (ae = {}));
|
764
758
|
function bt(e) {
|
765
|
-
return e.type ===
|
759
|
+
return e.type === T.literal;
|
766
760
|
}
|
767
|
-
function
|
768
|
-
return e.type ===
|
761
|
+
function Pn(e) {
|
762
|
+
return e.type === T.argument;
|
769
763
|
}
|
770
764
|
function qt(e) {
|
771
|
-
return e.type ===
|
765
|
+
return e.type === T.number;
|
772
766
|
}
|
773
767
|
function Jt(e) {
|
774
|
-
return e.type ===
|
768
|
+
return e.type === T.date;
|
775
769
|
}
|
776
770
|
function Yt(e) {
|
777
|
-
return e.type ===
|
771
|
+
return e.type === T.time;
|
778
772
|
}
|
779
773
|
function Kt(e) {
|
780
|
-
return e.type ===
|
774
|
+
return e.type === T.select;
|
781
775
|
}
|
782
776
|
function er(e) {
|
783
|
-
return e.type ===
|
777
|
+
return e.type === T.plural;
|
784
778
|
}
|
785
|
-
function
|
786
|
-
return e.type ===
|
779
|
+
function On(e) {
|
780
|
+
return e.type === T.pound;
|
787
781
|
}
|
788
782
|
function tr(e) {
|
789
|
-
return e.type ===
|
783
|
+
return e.type === T.tag;
|
790
784
|
}
|
791
785
|
function rr(e) {
|
792
|
-
return !!(e && typeof e == "object" && e.type ===
|
786
|
+
return !!(e && typeof e == "object" && e.type === ae.number);
|
793
787
|
}
|
794
|
-
function
|
795
|
-
return !!(e && typeof e == "object" && e.type ===
|
788
|
+
function Je(e) {
|
789
|
+
return !!(e && typeof e == "object" && e.type === ae.dateTime);
|
796
790
|
}
|
797
|
-
var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
798
|
-
function
|
791
|
+
var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
792
|
+
function Rn(e) {
|
799
793
|
var t = {};
|
800
|
-
return e.replace(
|
794
|
+
return e.replace(Fn, function(r) {
|
801
795
|
var n = r.length;
|
802
796
|
switch (r[0]) {
|
803
797
|
case "G":
|
@@ -886,17 +880,27 @@ function Fn(e) {
|
|
886
880
|
return "";
|
887
881
|
}), t;
|
888
882
|
}
|
889
|
-
var
|
890
|
-
function
|
883
|
+
var A = function() {
|
884
|
+
return A = Object.assign || function(t) {
|
885
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
886
|
+
r = arguments[n];
|
887
|
+
for (var o in r)
|
888
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
889
|
+
}
|
890
|
+
return t;
|
891
|
+
}, A.apply(this, arguments);
|
892
|
+
};
|
893
|
+
var Dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
894
|
+
function Un(e) {
|
891
895
|
if (e.length === 0)
|
892
896
|
throw new Error("Number skeleton cannot be empty");
|
893
|
-
for (var t = e.split(
|
897
|
+
for (var t = e.split(Dn).filter(function(f) {
|
894
898
|
return f.length > 0;
|
895
899
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
896
|
-
var
|
897
|
-
if (
|
900
|
+
var o = i[n], s = o.split("/");
|
901
|
+
if (s.length === 0)
|
898
902
|
throw new Error("Invalid number skeleton");
|
899
|
-
for (var a =
|
903
|
+
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
900
904
|
var m = u[l];
|
901
905
|
if (m.length === 0)
|
902
906
|
throw new Error("Invalid number skeleton");
|
@@ -905,10 +909,10 @@ function Dn(e) {
|
|
905
909
|
}
|
906
910
|
return r;
|
907
911
|
}
|
908
|
-
function
|
912
|
+
function Gn(e) {
|
909
913
|
return e.replace(/^(.*?)-/, "");
|
910
914
|
}
|
911
|
-
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g,
|
915
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
|
912
916
|
function vt(e) {
|
913
917
|
var t = {};
|
914
918
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
|
@@ -955,7 +959,7 @@ function sr(e) {
|
|
955
959
|
};
|
956
960
|
}
|
957
961
|
}
|
958
|
-
function
|
962
|
+
function $n(e) {
|
959
963
|
var t;
|
960
964
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
961
965
|
notation: "engineering"
|
@@ -973,7 +977,7 @@ function _t(e) {
|
|
973
977
|
var t = {}, r = sr(e);
|
974
978
|
return r || t;
|
975
979
|
}
|
976
|
-
function
|
980
|
+
function jn(e) {
|
977
981
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
978
982
|
var i = n[r];
|
979
983
|
switch (i.stem) {
|
@@ -997,7 +1001,7 @@ function $n(e) {
|
|
997
1001
|
continue;
|
998
1002
|
case "measure-unit":
|
999
1003
|
case "unit":
|
1000
|
-
t.style = "unit", t.unit =
|
1004
|
+
t.style = "unit", t.unit = Gn(i.options[0]);
|
1001
1005
|
continue;
|
1002
1006
|
case "compact-short":
|
1003
1007
|
case "K":
|
@@ -1008,13 +1012,13 @@ function $n(e) {
|
|
1008
1012
|
t.notation = "compact", t.compactDisplay = "long";
|
1009
1013
|
continue;
|
1010
1014
|
case "scientific":
|
1011
|
-
t =
|
1012
|
-
return
|
1015
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1016
|
+
return A(A({}, h), _t(l));
|
1013
1017
|
}, {}));
|
1014
1018
|
continue;
|
1015
1019
|
case "engineering":
|
1016
|
-
t =
|
1017
|
-
return
|
1020
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1021
|
+
return A(A({}, h), _t(l));
|
1018
1022
|
}, {}));
|
1019
1023
|
continue;
|
1020
1024
|
case "notation-simple":
|
@@ -1059,7 +1063,7 @@ function $n(e) {
|
|
1059
1063
|
case "integer-width":
|
1060
1064
|
if (i.options.length > 1)
|
1061
1065
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1062
|
-
i.options[0].replace(
|
1066
|
+
i.options[0].replace(kn, function(h, l, u, m, f, p) {
|
1063
1067
|
if (l)
|
1064
1068
|
t.minimumIntegerDigits = u.length;
|
1065
1069
|
else {
|
@@ -1082,22 +1086,22 @@ function $n(e) {
|
|
1082
1086
|
i.stem.replace(yt, function(h, l, u, m, f, p) {
|
1083
1087
|
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1084
1088
|
});
|
1085
|
-
var
|
1086
|
-
|
1089
|
+
var o = i.options[0];
|
1090
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), vt(o)));
|
1087
1091
|
continue;
|
1088
1092
|
}
|
1089
1093
|
if (ir.test(i.stem)) {
|
1090
|
-
t =
|
1094
|
+
t = A(A({}, t), vt(i.stem));
|
1091
1095
|
continue;
|
1092
1096
|
}
|
1093
|
-
var
|
1094
|
-
|
1095
|
-
var a =
|
1096
|
-
a && (t =
|
1097
|
+
var s = sr(i.stem);
|
1098
|
+
s && (t = A(A({}, t), s));
|
1099
|
+
var a = $n(i.stem);
|
1100
|
+
a && (t = A(A({}, t), a));
|
1097
1101
|
}
|
1098
1102
|
return t;
|
1099
1103
|
}
|
1100
|
-
var
|
1104
|
+
var Te = {
|
1101
1105
|
"001": [
|
1102
1106
|
"H",
|
1103
1107
|
"h"
|
@@ -2512,23 +2516,23 @@ var Se = {
|
|
2512
2516
|
"h"
|
2513
2517
|
]
|
2514
2518
|
};
|
2515
|
-
function
|
2519
|
+
function Vn(e, t) {
|
2516
2520
|
for (var r = "", n = 0; n < e.length; n++) {
|
2517
2521
|
var i = e.charAt(n);
|
2518
2522
|
if (i === "j") {
|
2519
|
-
for (var
|
2520
|
-
|
2521
|
-
var
|
2523
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2524
|
+
o++, n++;
|
2525
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Xn(t);
|
2522
2526
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2523
2527
|
r += h;
|
2524
|
-
for (;
|
2528
|
+
for (; s-- > 0; )
|
2525
2529
|
r = l + r;
|
2526
2530
|
} else
|
2527
2531
|
i === "J" ? r += "H" : r += i;
|
2528
2532
|
}
|
2529
2533
|
return r;
|
2530
2534
|
}
|
2531
|
-
function
|
2535
|
+
function Xn(e) {
|
2532
2536
|
var t = e.hourCycle;
|
2533
2537
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2534
2538
|
e.hourCycles && // @ts-ignore
|
@@ -2547,23 +2551,23 @@ function Vn(e) {
|
|
2547
2551
|
}
|
2548
2552
|
var r = e.language, n;
|
2549
2553
|
r !== "root" && (n = e.maximize().region);
|
2550
|
-
var i =
|
2554
|
+
var i = Te[n || ""] || Te[r || ""] || Te["".concat(r, "-001")] || Te["001"];
|
2551
2555
|
return i[0];
|
2552
2556
|
}
|
2553
|
-
var
|
2557
|
+
var Xe, Wn = new RegExp("^".concat(nr.source, "*")), zn = new RegExp("".concat(nr.source, "*$"));
|
2554
2558
|
function v(e, t) {
|
2555
2559
|
return { start: e, end: t };
|
2556
2560
|
}
|
2557
|
-
var
|
2561
|
+
var Zn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, qn = !!Object.fromEntries, Jn = !!String.prototype.codePointAt, Yn = !!String.prototype.trimStart, Kn = !!String.prototype.trimEnd, ei = !!Number.isSafeInteger, ti = ei ? Number.isSafeInteger : function(e) {
|
2558
2562
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2559
|
-
},
|
2563
|
+
}, Ye = !0;
|
2560
2564
|
try {
|
2561
|
-
var
|
2562
|
-
|
2565
|
+
var ri = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2566
|
+
Ye = ((Xe = ri.exec("a")) === null || Xe === void 0 ? void 0 : Xe[0]) === "a";
|
2563
2567
|
} catch {
|
2564
|
-
|
2568
|
+
Ye = !1;
|
2565
2569
|
}
|
2566
|
-
var Et =
|
2570
|
+
var Et = Zn ? (
|
2567
2571
|
// Native
|
2568
2572
|
function(t, r, n) {
|
2569
2573
|
return t.startsWith(r, n);
|
@@ -2573,31 +2577,31 @@ var Et = zn ? (
|
|
2573
2577
|
function(t, r, n) {
|
2574
2578
|
return t.slice(n, n + r.length) === r;
|
2575
2579
|
}
|
2576
|
-
),
|
2580
|
+
), Ke = Qn ? String.fromCodePoint : (
|
2577
2581
|
// IE11
|
2578
2582
|
function() {
|
2579
2583
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2580
2584
|
t[r] = arguments[r];
|
2581
|
-
for (var n = "", i = t.length,
|
2582
|
-
if (
|
2583
|
-
throw RangeError(
|
2584
|
-
n +=
|
2585
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
2586
|
+
if (s = t[o++], s > 1114111)
|
2587
|
+
throw RangeError(s + " is not a valid code point");
|
2588
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
2585
2589
|
}
|
2586
2590
|
return n;
|
2587
2591
|
}
|
2588
2592
|
), xt = (
|
2589
2593
|
// native
|
2590
|
-
|
2594
|
+
qn ? Object.fromEntries : (
|
2591
2595
|
// Ponyfill
|
2592
2596
|
function(t) {
|
2593
2597
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2594
|
-
var
|
2595
|
-
r[
|
2598
|
+
var o = i[n], s = o[0], a = o[1];
|
2599
|
+
r[s] = a;
|
2596
2600
|
}
|
2597
2601
|
return r;
|
2598
2602
|
}
|
2599
2603
|
)
|
2600
|
-
), ar =
|
2604
|
+
), ar = Jn ? (
|
2601
2605
|
// Native
|
2602
2606
|
function(t, r) {
|
2603
2607
|
return t.codePointAt(r);
|
@@ -2607,11 +2611,11 @@ var Et = zn ? (
|
|
2607
2611
|
function(t, r) {
|
2608
2612
|
var n = t.length;
|
2609
2613
|
if (!(r < 0 || r >= n)) {
|
2610
|
-
var i = t.charCodeAt(r),
|
2611
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
2614
|
+
var i = t.charCodeAt(r), o;
|
2615
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2612
2616
|
}
|
2613
2617
|
}
|
2614
|
-
),
|
2618
|
+
), ni = Yn ? (
|
2615
2619
|
// Native
|
2616
2620
|
function(t) {
|
2617
2621
|
return t.trimStart();
|
@@ -2619,9 +2623,9 @@ var Et = zn ? (
|
|
2619
2623
|
) : (
|
2620
2624
|
// Ponyfill
|
2621
2625
|
function(t) {
|
2622
|
-
return t.replace(
|
2626
|
+
return t.replace(Wn, "");
|
2623
2627
|
}
|
2624
|
-
),
|
2628
|
+
), ii = Kn ? (
|
2625
2629
|
// Native
|
2626
2630
|
function(t) {
|
2627
2631
|
return t.trimEnd();
|
@@ -2629,32 +2633,32 @@ var Et = zn ? (
|
|
2629
2633
|
) : (
|
2630
2634
|
// Ponyfill
|
2631
2635
|
function(t) {
|
2632
|
-
return t.replace(
|
2636
|
+
return t.replace(zn, "");
|
2633
2637
|
}
|
2634
2638
|
);
|
2635
2639
|
function lr(e, t) {
|
2636
2640
|
return new RegExp(e, t);
|
2637
2641
|
}
|
2638
|
-
var
|
2639
|
-
if (
|
2640
|
-
var
|
2641
|
-
|
2642
|
+
var et;
|
2643
|
+
if (Ye) {
|
2644
|
+
var wt = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2645
|
+
et = function(t, r) {
|
2642
2646
|
var n;
|
2643
|
-
|
2644
|
-
var i =
|
2647
|
+
wt.lastIndex = r;
|
2648
|
+
var i = wt.exec(t);
|
2645
2649
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2646
2650
|
};
|
2647
2651
|
} else
|
2648
|
-
|
2652
|
+
et = function(t, r) {
|
2649
2653
|
for (var n = []; ; ) {
|
2650
2654
|
var i = ar(t, r);
|
2651
|
-
if (i === void 0 || ur(i) ||
|
2655
|
+
if (i === void 0 || ur(i) || li(i))
|
2652
2656
|
break;
|
2653
2657
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2654
2658
|
}
|
2655
|
-
return
|
2659
|
+
return Ke.apply(void 0, n);
|
2656
2660
|
};
|
2657
|
-
var
|
2661
|
+
var oi = (
|
2658
2662
|
/** @class */
|
2659
2663
|
function() {
|
2660
2664
|
function e(t, r) {
|
@@ -2666,35 +2670,35 @@ var ii = (
|
|
2666
2670
|
return this.parseMessage(0, "", !1);
|
2667
2671
|
}, e.prototype.parseMessage = function(t, r, n) {
|
2668
2672
|
for (var i = []; !this.isEOF(); ) {
|
2669
|
-
var
|
2670
|
-
if (
|
2671
|
-
var
|
2672
|
-
if (
|
2673
|
-
return
|
2674
|
-
i.push(
|
2673
|
+
var o = this.char();
|
2674
|
+
if (o === 123) {
|
2675
|
+
var s = this.parseArgument(t, n);
|
2676
|
+
if (s.err)
|
2677
|
+
return s;
|
2678
|
+
i.push(s.val);
|
2675
2679
|
} else {
|
2676
|
-
if (
|
2680
|
+
if (o === 125 && t > 0)
|
2677
2681
|
break;
|
2678
|
-
if (
|
2682
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2679
2683
|
var a = this.clonePosition();
|
2680
2684
|
this.bump(), i.push({
|
2681
|
-
type:
|
2685
|
+
type: T.pound,
|
2682
2686
|
location: v(a, this.clonePosition())
|
2683
2687
|
});
|
2684
|
-
} else if (
|
2688
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2685
2689
|
if (n)
|
2686
2690
|
break;
|
2687
2691
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2688
|
-
} else if (
|
2689
|
-
var
|
2690
|
-
if (
|
2691
|
-
return
|
2692
|
-
i.push(
|
2692
|
+
} else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
|
2693
|
+
var s = this.parseTag(t, r);
|
2694
|
+
if (s.err)
|
2695
|
+
return s;
|
2696
|
+
i.push(s.val);
|
2693
2697
|
} else {
|
2694
|
-
var
|
2695
|
-
if (
|
2696
|
-
return
|
2697
|
-
i.push(
|
2698
|
+
var s = this.parseLiteral(t, r);
|
2699
|
+
if (s.err)
|
2700
|
+
return s;
|
2701
|
+
i.push(s.val);
|
2698
2702
|
}
|
2699
2703
|
}
|
2700
2704
|
}
|
@@ -2706,26 +2710,26 @@ var ii = (
|
|
2706
2710
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2707
2711
|
return {
|
2708
2712
|
val: {
|
2709
|
-
type:
|
2713
|
+
type: T.literal,
|
2710
2714
|
value: "<".concat(i, "/>"),
|
2711
2715
|
location: v(n, this.clonePosition())
|
2712
2716
|
},
|
2713
2717
|
err: null
|
2714
2718
|
};
|
2715
2719
|
if (this.bumpIf(">")) {
|
2716
|
-
var
|
2717
|
-
if (
|
2718
|
-
return
|
2719
|
-
var
|
2720
|
+
var o = this.parseMessage(t + 1, r, !0);
|
2721
|
+
if (o.err)
|
2722
|
+
return o;
|
2723
|
+
var s = o.val, a = this.clonePosition();
|
2720
2724
|
if (this.bumpIf("</")) {
|
2721
|
-
if (this.isEOF() || !
|
2725
|
+
if (this.isEOF() || !tt(this.char()))
|
2722
2726
|
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2723
2727
|
var h = this.clonePosition(), l = this.parseTagName();
|
2724
2728
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2725
2729
|
val: {
|
2726
|
-
type:
|
2730
|
+
type: T.tag,
|
2727
2731
|
value: i,
|
2728
|
-
children:
|
2732
|
+
children: s,
|
2729
2733
|
location: v(n, this.clonePosition())
|
2730
2734
|
},
|
2731
2735
|
err: null
|
@@ -2736,21 +2740,21 @@ var ii = (
|
|
2736
2740
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2737
2741
|
}, e.prototype.parseTagName = function() {
|
2738
2742
|
var t = this.offset();
|
2739
|
-
for (this.bump(); !this.isEOF() &&
|
2743
|
+
for (this.bump(); !this.isEOF() && ai(this.char()); )
|
2740
2744
|
this.bump();
|
2741
2745
|
return this.message.slice(t, this.offset());
|
2742
2746
|
}, e.prototype.parseLiteral = function(t, r) {
|
2743
2747
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
2744
|
-
var
|
2745
|
-
if (s) {
|
2746
|
-
i += s;
|
2747
|
-
continue;
|
2748
|
-
}
|
2749
|
-
var o = this.tryParseUnquoted(t, r);
|
2748
|
+
var o = this.tryParseQuote(r);
|
2750
2749
|
if (o) {
|
2751
2750
|
i += o;
|
2752
2751
|
continue;
|
2753
2752
|
}
|
2753
|
+
var s = this.tryParseUnquoted(t, r);
|
2754
|
+
if (s) {
|
2755
|
+
i += s;
|
2756
|
+
continue;
|
2757
|
+
}
|
2754
2758
|
var a = this.tryParseLeftAngleBracket();
|
2755
2759
|
if (a) {
|
2756
2760
|
i += a;
|
@@ -2760,12 +2764,12 @@ var ii = (
|
|
2760
2764
|
}
|
2761
2765
|
var h = v(n, this.clonePosition());
|
2762
2766
|
return {
|
2763
|
-
val: { type:
|
2767
|
+
val: { type: T.literal, value: i, location: h },
|
2764
2768
|
err: null
|
2765
2769
|
};
|
2766
2770
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2767
2771
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2768
|
-
!
|
2772
|
+
!si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2769
2773
|
}, e.prototype.tryParseQuote = function(t) {
|
2770
2774
|
if (this.isEOF() || this.char() !== 39)
|
2771
2775
|
return null;
|
@@ -2799,12 +2803,12 @@ var ii = (
|
|
2799
2803
|
r.push(n);
|
2800
2804
|
this.bump();
|
2801
2805
|
}
|
2802
|
-
return
|
2806
|
+
return Ke.apply(void 0, r);
|
2803
2807
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2804
2808
|
if (this.isEOF())
|
2805
2809
|
return null;
|
2806
2810
|
var n = this.char();
|
2807
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2811
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
|
2808
2812
|
}, e.prototype.parseArgument = function(t, r) {
|
2809
2813
|
var n = this.clonePosition();
|
2810
2814
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2820,7 +2824,7 @@ var ii = (
|
|
2820
2824
|
case 125:
|
2821
2825
|
return this.bump(), {
|
2822
2826
|
val: {
|
2823
|
-
type:
|
2827
|
+
type: T.argument,
|
2824
2828
|
// value does not include the opening and closing braces.
|
2825
2829
|
value: i,
|
2826
2830
|
location: v(n, this.clonePosition())
|
@@ -2833,15 +2837,15 @@ var ii = (
|
|
2833
2837
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2834
2838
|
}
|
2835
2839
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2836
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2840
|
+
var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
|
2837
2841
|
this.bumpTo(i);
|
2838
|
-
var
|
2839
|
-
return { value: n, location:
|
2842
|
+
var o = this.clonePosition(), s = v(t, o);
|
2843
|
+
return { value: n, location: s };
|
2840
2844
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2841
|
-
var
|
2845
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2842
2846
|
switch (a) {
|
2843
2847
|
case "":
|
2844
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, v(
|
2848
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, h));
|
2845
2849
|
case "number":
|
2846
2850
|
case "date":
|
2847
2851
|
case "time": {
|
@@ -2852,7 +2856,7 @@ var ii = (
|
|
2852
2856
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2853
2857
|
if (m.err)
|
2854
2858
|
return m;
|
2855
|
-
var f =
|
2859
|
+
var f = ii(m.val);
|
2856
2860
|
if (f.length === 0)
|
2857
2861
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2858
2862
|
var p = v(u, this.clonePosition());
|
@@ -2863,36 +2867,36 @@ var ii = (
|
|
2863
2867
|
return g;
|
2864
2868
|
var b = v(i, this.clonePosition());
|
2865
2869
|
if (l && Et(l?.style, "::", 0)) {
|
2866
|
-
var d =
|
2870
|
+
var d = ni(l.style.slice(2));
|
2867
2871
|
if (a === "number") {
|
2868
2872
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2869
2873
|
return m.err ? m : {
|
2870
|
-
val: { type:
|
2874
|
+
val: { type: T.number, value: n, location: b, style: m.val },
|
2871
2875
|
err: null
|
2872
2876
|
};
|
2873
2877
|
} else {
|
2874
2878
|
if (d.length === 0)
|
2875
2879
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2876
|
-
var
|
2877
|
-
this.locale && (
|
2880
|
+
var x = d;
|
2881
|
+
this.locale && (x = Vn(d, this.locale));
|
2878
2882
|
var f = {
|
2879
|
-
type:
|
2880
|
-
pattern:
|
2883
|
+
type: ae.dateTime,
|
2884
|
+
pattern: x,
|
2881
2885
|
location: l.styleLocation,
|
2882
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2883
|
-
},
|
2886
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(x) : {}
|
2887
|
+
}, _ = a === "date" ? T.date : T.time;
|
2884
2888
|
return {
|
2885
|
-
val: { type:
|
2889
|
+
val: { type: _, value: n, location: b, style: f },
|
2886
2890
|
err: null
|
2887
2891
|
};
|
2888
2892
|
}
|
2889
2893
|
}
|
2890
2894
|
return {
|
2891
2895
|
val: {
|
2892
|
-
type: a === "number" ?
|
2896
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
2893
2897
|
value: n,
|
2894
2898
|
location: b,
|
2895
|
-
style: (
|
2899
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
2896
2900
|
},
|
2897
2901
|
err: null
|
2898
2902
|
};
|
@@ -2902,7 +2906,7 @@ var ii = (
|
|
2902
2906
|
case "select": {
|
2903
2907
|
var w = this.clonePosition();
|
2904
2908
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2905
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w,
|
2909
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, Me({}, w)));
|
2906
2910
|
this.bumpSpace();
|
2907
2911
|
var U = this.parseIdentifierIfPossible(), N = 0;
|
2908
2912
|
if (a !== "select" && U.value === "offset") {
|
@@ -2914,35 +2918,35 @@ var ii = (
|
|
2914
2918
|
return m;
|
2915
2919
|
this.bumpSpace(), U = this.parseIdentifierIfPossible(), N = m.val;
|
2916
2920
|
}
|
2917
|
-
var
|
2918
|
-
if (
|
2919
|
-
return
|
2921
|
+
var S = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
2922
|
+
if (S.err)
|
2923
|
+
return S;
|
2920
2924
|
var g = this.tryParseArgumentClose(i);
|
2921
2925
|
if (g.err)
|
2922
2926
|
return g;
|
2923
|
-
var
|
2927
|
+
var C = v(i, this.clonePosition());
|
2924
2928
|
return a === "select" ? {
|
2925
2929
|
val: {
|
2926
|
-
type:
|
2930
|
+
type: T.select,
|
2927
2931
|
value: n,
|
2928
|
-
options: xt(
|
2929
|
-
location:
|
2932
|
+
options: xt(S.val),
|
2933
|
+
location: C
|
2930
2934
|
},
|
2931
2935
|
err: null
|
2932
2936
|
} : {
|
2933
2937
|
val: {
|
2934
|
-
type:
|
2938
|
+
type: T.plural,
|
2935
2939
|
value: n,
|
2936
|
-
options: xt(
|
2940
|
+
options: xt(S.val),
|
2937
2941
|
offset: N,
|
2938
2942
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2939
|
-
location:
|
2943
|
+
location: C
|
2940
2944
|
},
|
2941
2945
|
err: null
|
2942
2946
|
};
|
2943
2947
|
}
|
2944
2948
|
default:
|
2945
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, v(
|
2949
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, h));
|
2946
2950
|
}
|
2947
2951
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2948
2952
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2984,21 +2988,21 @@ var ii = (
|
|
2984
2988
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2985
2989
|
var n = [];
|
2986
2990
|
try {
|
2987
|
-
n =
|
2991
|
+
n = Un(t);
|
2988
2992
|
} catch {
|
2989
2993
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2990
2994
|
}
|
2991
2995
|
return {
|
2992
2996
|
val: {
|
2993
|
-
type:
|
2997
|
+
type: ae.number,
|
2994
2998
|
tokens: n,
|
2995
2999
|
location: r,
|
2996
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3000
|
+
parsedOptions: this.shouldParseSkeletons ? jn(n) : {}
|
2997
3001
|
},
|
2998
3002
|
err: null
|
2999
3003
|
};
|
3000
3004
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3001
|
-
for (var
|
3005
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3002
3006
|
if (l.length === 0) {
|
3003
3007
|
var m = this.clonePosition();
|
3004
3008
|
if (r !== "select" && this.bumpIf("=")) {
|
@@ -3011,7 +3015,7 @@ var ii = (
|
|
3011
3015
|
}
|
3012
3016
|
if (h.has(l))
|
3013
3017
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3014
|
-
l === "other" && (
|
3018
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3015
3019
|
var p = this.clonePosition();
|
3016
3020
|
if (!this.bumpIf("{"))
|
3017
3021
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
@@ -3027,21 +3031,21 @@ var ii = (
|
|
3027
3031
|
value: g.val,
|
3028
3032
|
location: v(p, this.clonePosition())
|
3029
3033
|
}
|
3030
|
-
]), h.add(l), this.bumpSpace(),
|
3034
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3031
3035
|
}
|
3032
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
3036
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3033
3037
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3034
3038
|
var n = 1, i = this.clonePosition();
|
3035
3039
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3036
|
-
for (var
|
3040
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
3037
3041
|
var a = this.char();
|
3038
3042
|
if (a >= 48 && a <= 57)
|
3039
|
-
|
3043
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
3040
3044
|
else
|
3041
3045
|
break;
|
3042
3046
|
}
|
3043
3047
|
var h = v(i, this.clonePosition());
|
3044
|
-
return
|
3048
|
+
return o ? (s *= n, ti(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3045
3049
|
}, e.prototype.offset = function() {
|
3046
3050
|
return this.position.offset;
|
3047
3051
|
}, e.prototype.isEOF = function() {
|
@@ -3107,96 +3111,96 @@ var ii = (
|
|
3107
3111
|
}, e;
|
3108
3112
|
}()
|
3109
3113
|
);
|
3110
|
-
function
|
3114
|
+
function tt(e) {
|
3111
3115
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3112
3116
|
}
|
3113
|
-
function oi(e) {
|
3114
|
-
return Ke(e) || e === 47;
|
3115
|
-
}
|
3116
3117
|
function si(e) {
|
3118
|
+
return tt(e) || e === 47;
|
3119
|
+
}
|
3120
|
+
function ai(e) {
|
3117
3121
|
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;
|
3118
3122
|
}
|
3119
3123
|
function ur(e) {
|
3120
3124
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3121
3125
|
}
|
3122
|
-
function
|
3126
|
+
function li(e) {
|
3123
3127
|
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;
|
3124
3128
|
}
|
3125
|
-
function
|
3129
|
+
function rt(e) {
|
3126
3130
|
e.forEach(function(t) {
|
3127
3131
|
if (delete t.location, Kt(t) || er(t))
|
3128
3132
|
for (var r in t.options)
|
3129
|
-
delete t.options[r].location,
|
3133
|
+
delete t.options[r].location, rt(t.options[r].value);
|
3130
3134
|
else
|
3131
|
-
qt(t) && rr(t.style) || (Jt(t) || Yt(t)) &&
|
3135
|
+
qt(t) && rr(t.style) || (Jt(t) || Yt(t)) && Je(t.style) ? delete t.style.location : tr(t) && rt(t.children);
|
3132
3136
|
});
|
3133
3137
|
}
|
3134
|
-
function
|
3135
|
-
t === void 0 && (t = {}), t =
|
3136
|
-
var r = new
|
3138
|
+
function ui(e, t) {
|
3139
|
+
t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3140
|
+
var r = new oi(e, t).parse();
|
3137
3141
|
if (r.err) {
|
3138
3142
|
var n = SyntaxError(y[r.err.kind]);
|
3139
3143
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3140
3144
|
}
|
3141
|
-
return t?.captureLocation ||
|
3145
|
+
return t?.captureLocation || rt(r.val), r.val;
|
3142
3146
|
}
|
3143
|
-
var
|
3147
|
+
var le;
|
3144
3148
|
(function(e) {
|
3145
3149
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3146
|
-
})(
|
3147
|
-
var
|
3150
|
+
})(le || (le = {}));
|
3151
|
+
var Fe = (
|
3148
3152
|
/** @class */
|
3149
3153
|
function(e) {
|
3150
|
-
|
3154
|
+
Oe(t, e);
|
3151
3155
|
function t(r, n, i) {
|
3152
|
-
var
|
3153
|
-
return
|
3156
|
+
var o = e.call(this, r) || this;
|
3157
|
+
return o.code = n, o.originalMessage = i, o;
|
3154
3158
|
}
|
3155
3159
|
return t.prototype.toString = function() {
|
3156
3160
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3157
3161
|
}, t;
|
3158
3162
|
}(Error)
|
3159
|
-
),
|
3163
|
+
), Ct = (
|
3160
3164
|
/** @class */
|
3161
3165
|
function(e) {
|
3162
|
-
|
3163
|
-
function t(r, n, i,
|
3164
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3166
|
+
Oe(t, e);
|
3167
|
+
function t(r, n, i, o) {
|
3168
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), le.INVALID_VALUE, o) || this;
|
3165
3169
|
}
|
3166
3170
|
return t;
|
3167
|
-
}(
|
3168
|
-
),
|
3171
|
+
}(Fe)
|
3172
|
+
), hi = (
|
3169
3173
|
/** @class */
|
3170
3174
|
function(e) {
|
3171
|
-
|
3175
|
+
Oe(t, e);
|
3172
3176
|
function t(r, n, i) {
|
3173
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3177
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), le.INVALID_VALUE, i) || this;
|
3174
3178
|
}
|
3175
3179
|
return t;
|
3176
|
-
}(
|
3177
|
-
),
|
3180
|
+
}(Fe)
|
3181
|
+
), ci = (
|
3178
3182
|
/** @class */
|
3179
3183
|
function(e) {
|
3180
|
-
|
3184
|
+
Oe(t, e);
|
3181
3185
|
function t(r, n) {
|
3182
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3186
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), le.MISSING_VALUE, n) || this;
|
3183
3187
|
}
|
3184
3188
|
return t;
|
3185
|
-
}(
|
3189
|
+
}(Fe)
|
3186
3190
|
), P;
|
3187
3191
|
(function(e) {
|
3188
3192
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3189
3193
|
})(P || (P = {}));
|
3190
|
-
function
|
3194
|
+
function fi(e) {
|
3191
3195
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3192
3196
|
var n = t[t.length - 1];
|
3193
3197
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
3194
3198
|
}, []);
|
3195
3199
|
}
|
3196
|
-
function
|
3200
|
+
function mi(e) {
|
3197
3201
|
return typeof e == "function";
|
3198
3202
|
}
|
3199
|
-
function
|
3203
|
+
function Be(e, t, r, n, i, o, s) {
|
3200
3204
|
if (e.length === 1 && bt(e[0]))
|
3201
3205
|
return [
|
3202
3206
|
{
|
@@ -3213,18 +3217,18 @@ function Ae(e, t, r, n, i, s, o) {
|
|
3213
3217
|
});
|
3214
3218
|
continue;
|
3215
3219
|
}
|
3216
|
-
if (
|
3217
|
-
typeof
|
3220
|
+
if (On(u)) {
|
3221
|
+
typeof o == "number" && a.push({
|
3218
3222
|
type: P.literal,
|
3219
|
-
value: r.getNumberFormat(t).format(
|
3223
|
+
value: r.getNumberFormat(t).format(o)
|
3220
3224
|
});
|
3221
3225
|
continue;
|
3222
3226
|
}
|
3223
3227
|
var m = u.value;
|
3224
3228
|
if (!(i && m in i))
|
3225
|
-
throw new
|
3229
|
+
throw new ci(m, s);
|
3226
3230
|
var f = i[m];
|
3227
|
-
if (
|
3231
|
+
if (Pn(u)) {
|
3228
3232
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3229
3233
|
type: typeof f == "string" ? P.literal : P.object,
|
3230
3234
|
value: f
|
@@ -3232,7 +3236,7 @@ function Ae(e, t, r, n, i, s, o) {
|
|
3232
3236
|
continue;
|
3233
3237
|
}
|
3234
3238
|
if (Jt(u)) {
|
3235
|
-
var p = typeof u.style == "string" ? n.date[u.style] :
|
3239
|
+
var p = typeof u.style == "string" ? n.date[u.style] : Je(u.style) ? u.style.parsedOptions : void 0;
|
3236
3240
|
a.push({
|
3237
3241
|
type: P.literal,
|
3238
3242
|
value: r.getDateTimeFormat(t, p).format(f)
|
@@ -3240,7 +3244,7 @@ function Ae(e, t, r, n, i, s, o) {
|
|
3240
3244
|
continue;
|
3241
3245
|
}
|
3242
3246
|
if (Yt(u)) {
|
3243
|
-
var p = typeof u.style == "string" ? n.time[u.style] :
|
3247
|
+
var p = typeof u.style == "string" ? n.time[u.style] : Je(u.style) ? u.style.parsedOptions : n.time.medium;
|
3244
3248
|
a.push({
|
3245
3249
|
type: P.literal,
|
3246
3250
|
value: r.getDateTimeFormat(t, p).format(f)
|
@@ -3257,12 +3261,12 @@ function Ae(e, t, r, n, i, s, o) {
|
|
3257
3261
|
}
|
3258
3262
|
if (tr(u)) {
|
3259
3263
|
var g = u.children, b = u.value, d = i[b];
|
3260
|
-
if (!
|
3261
|
-
throw new
|
3262
|
-
var
|
3264
|
+
if (!mi(d))
|
3265
|
+
throw new hi(b, "function", s);
|
3266
|
+
var x = Be(g, t, r, n, i, o), _ = d(x.map(function(N) {
|
3263
3267
|
return N.value;
|
3264
3268
|
}));
|
3265
|
-
Array.isArray(
|
3269
|
+
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(N) {
|
3266
3270
|
return {
|
3267
3271
|
type: typeof N == "string" ? P.literal : P.object,
|
3268
3272
|
value: N
|
@@ -3272,39 +3276,39 @@ function Ae(e, t, r, n, i, s, o) {
|
|
3272
3276
|
if (Kt(u)) {
|
3273
3277
|
var w = u.options[f] || u.options.other;
|
3274
3278
|
if (!w)
|
3275
|
-
throw new
|
3276
|
-
a.push.apply(a,
|
3279
|
+
throw new Ct(u.value, f, Object.keys(u.options), s);
|
3280
|
+
a.push.apply(a, Be(w.value, t, r, n, i));
|
3277
3281
|
continue;
|
3278
3282
|
}
|
3279
3283
|
if (er(u)) {
|
3280
3284
|
var w = u.options["=".concat(f)];
|
3281
3285
|
if (!w) {
|
3282
3286
|
if (!Intl.PluralRules)
|
3283
|
-
throw new
|
3287
|
+
throw new Fe(`Intl.PluralRules is not available in this environment.
|
3284
3288
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3285
|
-
`,
|
3289
|
+
`, le.MISSING_INTL_API, s);
|
3286
3290
|
var U = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3287
3291
|
w = u.options[U] || u.options.other;
|
3288
3292
|
}
|
3289
3293
|
if (!w)
|
3290
|
-
throw new
|
3291
|
-
a.push.apply(a,
|
3294
|
+
throw new Ct(u.value, f, Object.keys(u.options), s);
|
3295
|
+
a.push.apply(a, Be(w.value, t, r, n, i, f - (u.offset || 0)));
|
3292
3296
|
continue;
|
3293
3297
|
}
|
3294
3298
|
}
|
3295
|
-
return
|
3299
|
+
return fi(a);
|
3296
3300
|
}
|
3297
|
-
function
|
3298
|
-
return t ?
|
3299
|
-
return r[n] =
|
3301
|
+
function di(e, t) {
|
3302
|
+
return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3303
|
+
return r[n] = $($({}, e[n]), t[n] || {}), r;
|
3300
3304
|
}, {})) : e;
|
3301
3305
|
}
|
3302
|
-
function
|
3306
|
+
function pi(e, t) {
|
3303
3307
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3304
|
-
return r[n] =
|
3305
|
-
},
|
3308
|
+
return r[n] = di(e[n], t[n]), r;
|
3309
|
+
}, $({}, e)) : e;
|
3306
3310
|
}
|
3307
|
-
function
|
3311
|
+
function We(e) {
|
3308
3312
|
return {
|
3309
3313
|
create: function() {
|
3310
3314
|
return {
|
@@ -3318,50 +3322,50 @@ function Ve(e) {
|
|
3318
3322
|
}
|
3319
3323
|
};
|
3320
3324
|
}
|
3321
|
-
function
|
3325
|
+
function gi(e) {
|
3322
3326
|
return e === void 0 && (e = {
|
3323
3327
|
number: {},
|
3324
3328
|
dateTime: {},
|
3325
3329
|
pluralRules: {}
|
3326
3330
|
}), {
|
3327
|
-
getNumberFormat:
|
3331
|
+
getNumberFormat: je(function() {
|
3328
3332
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3329
3333
|
r[n] = arguments[n];
|
3330
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3334
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
3331
3335
|
}, {
|
3332
|
-
cache:
|
3333
|
-
strategy:
|
3336
|
+
cache: We(e.number),
|
3337
|
+
strategy: Ve.variadic
|
3334
3338
|
}),
|
3335
|
-
getDateTimeFormat:
|
3339
|
+
getDateTimeFormat: je(function() {
|
3336
3340
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3337
3341
|
r[n] = arguments[n];
|
3338
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3342
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
3339
3343
|
}, {
|
3340
|
-
cache:
|
3341
|
-
strategy:
|
3344
|
+
cache: We(e.dateTime),
|
3345
|
+
strategy: Ve.variadic
|
3342
3346
|
}),
|
3343
|
-
getPluralRules:
|
3347
|
+
getPluralRules: je(function() {
|
3344
3348
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3345
3349
|
r[n] = arguments[n];
|
3346
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3350
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
3347
3351
|
}, {
|
3348
|
-
cache:
|
3349
|
-
strategy:
|
3352
|
+
cache: We(e.pluralRules),
|
3353
|
+
strategy: Ve.variadic
|
3350
3354
|
})
|
3351
3355
|
};
|
3352
3356
|
}
|
3353
|
-
var
|
3357
|
+
var bi = (
|
3354
3358
|
/** @class */
|
3355
3359
|
function() {
|
3356
3360
|
function e(t, r, n, i) {
|
3357
3361
|
r === void 0 && (r = e.defaultLocale);
|
3358
|
-
var
|
3362
|
+
var o = this;
|
3359
3363
|
if (this.formatterCache = {
|
3360
3364
|
number: {},
|
3361
3365
|
dateTime: {},
|
3362
3366
|
pluralRules: {}
|
3363
3367
|
}, this.format = function(h) {
|
3364
|
-
var l =
|
3368
|
+
var l = o.formatToParts(h);
|
3365
3369
|
if (l.length === 1)
|
3366
3370
|
return l[0].value;
|
3367
3371
|
var u = l.reduce(function(m, f) {
|
@@ -3369,26 +3373,26 @@ var gi = (
|
|
3369
3373
|
}, []);
|
3370
3374
|
return u.length <= 1 ? u[0] || "" : u;
|
3371
3375
|
}, this.formatToParts = function(h) {
|
3372
|
-
return
|
3376
|
+
return Be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3373
3377
|
}, this.resolvedOptions = function() {
|
3374
3378
|
var h;
|
3375
3379
|
return {
|
3376
|
-
locale: ((h =
|
3380
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3377
3381
|
};
|
3378
3382
|
}, this.getAst = function() {
|
3379
|
-
return
|
3383
|
+
return o.ast;
|
3380
3384
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3381
3385
|
if (this.message = t, !e.__parse)
|
3382
3386
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3383
|
-
var
|
3384
|
-
|
3385
|
-
var a = Sn(
|
3386
|
-
this.ast = e.__parse(t,
|
3387
|
+
var s = i || {};
|
3388
|
+
s.formatters;
|
3389
|
+
var a = Sn(s, ["formatters"]);
|
3390
|
+
this.ast = e.__parse(t, $($({}, a), { locale: this.resolvedLocale }));
|
3387
3391
|
} else
|
3388
3392
|
this.ast = t;
|
3389
3393
|
if (!Array.isArray(this.ast))
|
3390
3394
|
throw new TypeError("A message must be provided as a String or AST.");
|
3391
|
-
this.formats =
|
3395
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
3392
3396
|
}
|
3393
3397
|
return Object.defineProperty(e, "defaultLocale", {
|
3394
3398
|
get: function() {
|
@@ -3401,7 +3405,7 @@ var gi = (
|
|
3401
3405
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3402
3406
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3403
3407
|
}
|
3404
|
-
}, e.__parse =
|
3408
|
+
}, e.__parse = ui, e.formats = {
|
3405
3409
|
number: {
|
3406
3410
|
integer: {
|
3407
3411
|
maximumFractionDigits: 0
|
@@ -3462,7 +3466,7 @@ var gi = (
|
|
3462
3466
|
}, e;
|
3463
3467
|
}()
|
3464
3468
|
);
|
3465
|
-
function
|
3469
|
+
function yi(e, t) {
|
3466
3470
|
if (t == null)
|
3467
3471
|
return;
|
3468
3472
|
if (t in e)
|
@@ -3472,9 +3476,9 @@ function bi(e, t) {
|
|
3472
3476
|
for (let i = 0; i < r.length; i++)
|
3473
3477
|
if (typeof n == "object") {
|
3474
3478
|
if (i > 0) {
|
3475
|
-
const
|
3476
|
-
if (
|
3477
|
-
n = n[
|
3479
|
+
const o = r.slice(i, r.length).join(".");
|
3480
|
+
if (o in n) {
|
3481
|
+
n = n[o];
|
3478
3482
|
break;
|
3479
3483
|
}
|
3480
3484
|
}
|
@@ -3483,36 +3487,36 @@ function bi(e, t) {
|
|
3483
3487
|
n = void 0;
|
3484
3488
|
return n;
|
3485
3489
|
}
|
3486
|
-
const
|
3490
|
+
const W = {}, vi = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), hr = (e, t) => {
|
3487
3491
|
if (t == null)
|
3488
3492
|
return;
|
3489
|
-
if (t in
|
3490
|
-
return
|
3491
|
-
const r =
|
3493
|
+
if (t in W && e in W[t])
|
3494
|
+
return W[t][e];
|
3495
|
+
const r = Re(t);
|
3492
3496
|
for (let n = 0; n < r.length; n++) {
|
3493
|
-
const i = r[n],
|
3494
|
-
if (
|
3495
|
-
return
|
3497
|
+
const i = r[n], o = Ei(i, e);
|
3498
|
+
if (o)
|
3499
|
+
return vi(e, t, o);
|
3496
3500
|
}
|
3497
3501
|
};
|
3498
3502
|
let at;
|
3499
|
-
const
|
3500
|
-
function
|
3503
|
+
const ce = Pe({});
|
3504
|
+
function _i(e) {
|
3501
3505
|
return at[e] || null;
|
3502
3506
|
}
|
3503
3507
|
function cr(e) {
|
3504
3508
|
return e in at;
|
3505
3509
|
}
|
3506
|
-
function
|
3510
|
+
function Ei(e, t) {
|
3507
3511
|
if (!cr(e))
|
3508
3512
|
return null;
|
3509
|
-
const r =
|
3510
|
-
return
|
3513
|
+
const r = _i(e);
|
3514
|
+
return yi(r, t);
|
3511
3515
|
}
|
3512
|
-
function
|
3516
|
+
function xi(e) {
|
3513
3517
|
if (e == null)
|
3514
3518
|
return;
|
3515
|
-
const t =
|
3519
|
+
const t = Re(e);
|
3516
3520
|
for (let r = 0; r < t.length; r++) {
|
3517
3521
|
const n = t[r];
|
3518
3522
|
if (cr(n))
|
@@ -3520,55 +3524,55 @@ function Ei(e) {
|
|
3520
3524
|
}
|
3521
3525
|
}
|
3522
3526
|
function fr(e, ...t) {
|
3523
|
-
delete
|
3527
|
+
delete W[e], ce.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
|
3524
3528
|
}
|
3525
|
-
|
3526
|
-
[
|
3529
|
+
he(
|
3530
|
+
[ce],
|
3527
3531
|
([e]) => Object.keys(e)
|
3528
3532
|
);
|
3529
|
-
|
3530
|
-
const
|
3531
|
-
function
|
3532
|
-
|
3533
|
+
ce.subscribe((e) => at = e);
|
3534
|
+
const Ie = {};
|
3535
|
+
function wi(e, t) {
|
3536
|
+
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
3533
3537
|
}
|
3534
3538
|
function mr(e) {
|
3535
|
-
return
|
3539
|
+
return Ie[e];
|
3536
3540
|
}
|
3537
3541
|
function Ci(e) {
|
3538
|
-
return
|
3542
|
+
return Re(e).map((t) => {
|
3539
3543
|
const r = mr(t);
|
3540
3544
|
return [t, r ? [...r] : []];
|
3541
3545
|
}).filter(([, t]) => t.length > 0);
|
3542
3546
|
}
|
3543
|
-
function
|
3544
|
-
return e == null ? !1 :
|
3547
|
+
function nt(e) {
|
3548
|
+
return e == null ? !1 : Re(e).some(
|
3545
3549
|
(t) => {
|
3546
3550
|
var r;
|
3547
3551
|
return (r = mr(t)) == null ? void 0 : r.size;
|
3548
3552
|
}
|
3549
3553
|
);
|
3550
3554
|
}
|
3551
|
-
function
|
3555
|
+
function Hi(e, t) {
|
3552
3556
|
return Promise.all(
|
3553
|
-
t.map((n) => (
|
3557
|
+
t.map((n) => (wi(e, n), n().then((i) => i.default || i)))
|
3554
3558
|
).then((n) => fr(e, ...n));
|
3555
3559
|
}
|
3556
|
-
const
|
3560
|
+
const pe = {};
|
3557
3561
|
function dr(e) {
|
3558
|
-
if (!
|
3559
|
-
return e in
|
3562
|
+
if (!nt(e))
|
3563
|
+
return e in pe ? pe[e] : Promise.resolve();
|
3560
3564
|
const t = Ci(e);
|
3561
|
-
return
|
3565
|
+
return pe[e] = Promise.all(
|
3562
3566
|
t.map(
|
3563
|
-
([r, n]) =>
|
3567
|
+
([r, n]) => Hi(r, n)
|
3564
3568
|
)
|
3565
3569
|
).then(() => {
|
3566
|
-
if (
|
3570
|
+
if (nt(e))
|
3567
3571
|
return dr(e);
|
3568
|
-
delete
|
3569
|
-
}),
|
3572
|
+
delete pe[e];
|
3573
|
+
}), pe[e];
|
3570
3574
|
}
|
3571
|
-
const
|
3575
|
+
const Si = {
|
3572
3576
|
number: {
|
3573
3577
|
scientific: { notation: "scientific" },
|
3574
3578
|
engineering: { notation: "engineering" },
|
@@ -3597,150 +3601,150 @@ const Hi = {
|
|
3597
3601
|
timeZoneName: "short"
|
3598
3602
|
}
|
3599
3603
|
}
|
3600
|
-
},
|
3604
|
+
}, Ti = {
|
3601
3605
|
fallbackLocale: null,
|
3602
3606
|
loadingDelay: 200,
|
3603
|
-
formats:
|
3607
|
+
formats: Si,
|
3604
3608
|
warnOnMissingMessages: !0,
|
3605
3609
|
handleMissingMessage: void 0,
|
3606
3610
|
ignoreTag: !0
|
3607
|
-
},
|
3608
|
-
function
|
3609
|
-
return
|
3611
|
+
}, Ai = Ti;
|
3612
|
+
function ue() {
|
3613
|
+
return Ai;
|
3610
3614
|
}
|
3611
|
-
const
|
3612
|
-
var
|
3615
|
+
const ze = Pe(!1);
|
3616
|
+
var Bi = Object.defineProperty, Ii = Object.defineProperties, Mi = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
3613
3617
|
for (var r in t || (t = {}))
|
3614
|
-
|
3618
|
+
Li.call(t, r) && St(e, r, t[r]);
|
3615
3619
|
if (Ht)
|
3616
3620
|
for (var r of Ht(t))
|
3617
|
-
|
3621
|
+
Ni.call(t, r) && St(e, r, t[r]);
|
3618
3622
|
return e;
|
3619
|
-
},
|
3620
|
-
let
|
3621
|
-
const
|
3623
|
+
}, Oi = (e, t) => Ii(e, Mi(t));
|
3624
|
+
let it;
|
3625
|
+
const Le = Pe(null);
|
3622
3626
|
function Tt(e) {
|
3623
3627
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3624
3628
|
}
|
3625
|
-
function
|
3629
|
+
function Re(e, t = ue().fallbackLocale) {
|
3626
3630
|
const r = Tt(e);
|
3627
3631
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
3628
3632
|
}
|
3629
|
-
function
|
3630
|
-
return
|
3633
|
+
function Y() {
|
3634
|
+
return it ?? void 0;
|
3631
3635
|
}
|
3632
|
-
|
3633
|
-
|
3636
|
+
Le.subscribe((e) => {
|
3637
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3634
3638
|
});
|
3635
|
-
const
|
3636
|
-
if (e &&
|
3637
|
-
const { loadingDelay: t } =
|
3639
|
+
const Fi = (e) => {
|
3640
|
+
if (e && xi(e) && nt(e)) {
|
3641
|
+
const { loadingDelay: t } = ue();
|
3638
3642
|
let r;
|
3639
|
-
return typeof window < "u" &&
|
3640
|
-
() =>
|
3643
|
+
return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
|
3644
|
+
() => ze.set(!0),
|
3641
3645
|
t
|
3642
|
-
) :
|
3643
|
-
|
3646
|
+
) : ze.set(!0), dr(e).then(() => {
|
3647
|
+
Le.set(e);
|
3644
3648
|
}).finally(() => {
|
3645
|
-
clearTimeout(r),
|
3649
|
+
clearTimeout(r), ze.set(!1);
|
3646
3650
|
});
|
3647
3651
|
}
|
3648
|
-
return
|
3649
|
-
},
|
3650
|
-
set:
|
3651
|
-
}),
|
3652
|
+
return Le.set(e);
|
3653
|
+
}, z = Oi(Pi({}, Le), {
|
3654
|
+
set: Fi
|
3655
|
+
}), De = (e) => {
|
3652
3656
|
const t = /* @__PURE__ */ Object.create(null);
|
3653
3657
|
return (n) => {
|
3654
3658
|
const i = JSON.stringify(n);
|
3655
3659
|
return i in t ? t[i] : t[i] = e(n);
|
3656
3660
|
};
|
3657
3661
|
};
|
3658
|
-
var
|
3662
|
+
var Ri = Object.defineProperty, Ne = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
3659
3663
|
for (var r in t || (t = {}))
|
3660
3664
|
pr.call(t, r) && At(e, r, t[r]);
|
3661
|
-
if (
|
3662
|
-
for (var r of
|
3665
|
+
if (Ne)
|
3666
|
+
for (var r of Ne(t))
|
3663
3667
|
gr.call(t, r) && At(e, r, t[r]);
|
3664
3668
|
return e;
|
3665
|
-
},
|
3669
|
+
}, fe = (e, t) => {
|
3666
3670
|
var r = {};
|
3667
3671
|
for (var n in e)
|
3668
3672
|
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3669
|
-
if (e != null &&
|
3670
|
-
for (var n of
|
3673
|
+
if (e != null && Ne)
|
3674
|
+
for (var n of Ne(e))
|
3671
3675
|
t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
|
3672
3676
|
return r;
|
3673
3677
|
};
|
3674
|
-
const
|
3675
|
-
const { formats: r } =
|
3678
|
+
const Ee = (e, t) => {
|
3679
|
+
const { formats: r } = ue();
|
3676
3680
|
if (e in r && t in r[e])
|
3677
3681
|
return r[e][t];
|
3678
3682
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3679
|
-
},
|
3683
|
+
}, Di = De(
|
3680
3684
|
(e) => {
|
3681
|
-
var t = e, { locale: r, format: n } = t, i =
|
3685
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3682
3686
|
if (r == null)
|
3683
3687
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3684
|
-
return n && (i =
|
3688
|
+
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
3685
3689
|
}
|
3686
|
-
),
|
3690
|
+
), Ui = De(
|
3687
3691
|
(e) => {
|
3688
|
-
var t = e, { locale: r, format: n } = t, i =
|
3692
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3689
3693
|
if (r == null)
|
3690
3694
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3691
|
-
return n ? i =
|
3695
|
+
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
3692
3696
|
}
|
3693
|
-
),
|
3697
|
+
), Gi = De(
|
3694
3698
|
(e) => {
|
3695
|
-
var t = e, { locale: r, format: n } = t, i =
|
3699
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3696
3700
|
if (r == null)
|
3697
3701
|
throw new Error(
|
3698
3702
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3699
3703
|
);
|
3700
|
-
return n ? i =
|
3704
|
+
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
3701
3705
|
}
|
3702
|
-
),
|
3706
|
+
), ki = (e = {}) => {
|
3703
3707
|
var t = e, {
|
3704
|
-
locale: r =
|
3705
|
-
} = t, n =
|
3706
|
-
"locale"
|
3707
|
-
]);
|
3708
|
-
return Ri(lt({ locale: r }, n));
|
3709
|
-
}, ki = (e = {}) => {
|
3710
|
-
var t = e, {
|
3711
|
-
locale: r = J()
|
3712
|
-
} = t, n = ce(t, [
|
3708
|
+
locale: r = Y()
|
3709
|
+
} = t, n = fe(t, [
|
3713
3710
|
"locale"
|
3714
3711
|
]);
|
3715
3712
|
return Di(lt({ locale: r }, n));
|
3716
3713
|
}, $i = (e = {}) => {
|
3717
3714
|
var t = e, {
|
3718
|
-
locale: r =
|
3719
|
-
} = t, n =
|
3715
|
+
locale: r = Y()
|
3716
|
+
} = t, n = fe(t, [
|
3720
3717
|
"locale"
|
3721
3718
|
]);
|
3722
3719
|
return Ui(lt({ locale: r }, n));
|
3723
|
-
}, ji =
|
3720
|
+
}, ji = (e = {}) => {
|
3721
|
+
var t = e, {
|
3722
|
+
locale: r = Y()
|
3723
|
+
} = t, n = fe(t, [
|
3724
|
+
"locale"
|
3725
|
+
]);
|
3726
|
+
return Gi(lt({ locale: r }, n));
|
3727
|
+
}, Vi = De(
|
3724
3728
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3725
|
-
(e, t =
|
3726
|
-
ignoreTag:
|
3729
|
+
(e, t = Y()) => new bi(e, t, ue().formats, {
|
3730
|
+
ignoreTag: ue().ignoreTag
|
3727
3731
|
})
|
3728
|
-
),
|
3729
|
-
var r, n, i,
|
3730
|
-
let
|
3731
|
-
typeof e == "object" && (
|
3732
|
+
), Xi = (e, t = {}) => {
|
3733
|
+
var r, n, i, o;
|
3734
|
+
let s = t;
|
3735
|
+
typeof e == "object" && (s = e, e = s.id);
|
3732
3736
|
const {
|
3733
3737
|
values: a,
|
3734
|
-
locale: h =
|
3738
|
+
locale: h = Y(),
|
3735
3739
|
default: l
|
3736
|
-
} =
|
3740
|
+
} = s;
|
3737
3741
|
if (h == null)
|
3738
3742
|
throw new Error(
|
3739
3743
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3740
3744
|
);
|
3741
3745
|
let u = hr(e, h);
|
3742
3746
|
if (!u)
|
3743
|
-
u = (
|
3747
|
+
u = (o = (i = (n = (r = ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3744
3748
|
else if (typeof u != "string")
|
3745
3749
|
return console.warn(
|
3746
3750
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3749,7 +3753,7 @@ const _e = (e, t) => {
|
|
3749
3753
|
return u;
|
3750
3754
|
let m = u;
|
3751
3755
|
try {
|
3752
|
-
m =
|
3756
|
+
m = Vi(u, h).format(a);
|
3753
3757
|
} catch (f) {
|
3754
3758
|
f instanceof Error && console.warn(
|
3755
3759
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3757,22 +3761,22 @@ const _e = (e, t) => {
|
|
3757
3761
|
);
|
3758
3762
|
}
|
3759
3763
|
return m;
|
3760
|
-
},
|
3761
|
-
|
3762
|
-
|
3763
|
-
|
3764
|
-
|
3765
|
-
|
3766
|
-
function
|
3767
|
-
|
3768
|
-
r == null && (
|
3764
|
+
}, Wi = (e, t) => ji(t).format(e), zi = (e, t) => $i(t).format(e), Zi = (e, t) => ki(t).format(e), Qi = (e, t = Y()) => hr(e, t);
|
3765
|
+
he([z, ce], () => Xi);
|
3766
|
+
he([z], () => Wi);
|
3767
|
+
he([z], () => zi);
|
3768
|
+
he([z], () => Zi);
|
3769
|
+
he([z, ce], () => Qi);
|
3770
|
+
function qi({ withLocale: e, translations: t }) {
|
3771
|
+
z.subscribe((r) => {
|
3772
|
+
r == null && (ce.set(t), z.set(e));
|
3769
3773
|
});
|
3770
3774
|
}
|
3771
3775
|
function Bt(e, t) {
|
3772
3776
|
fr(e, t);
|
3773
3777
|
}
|
3774
|
-
function
|
3775
|
-
|
3778
|
+
function Ji(e) {
|
3779
|
+
z.set(e);
|
3776
3780
|
}
|
3777
3781
|
const It = {
|
3778
3782
|
en: {
|
@@ -3831,7 +3835,7 @@ const It = {
|
|
3831
3835
|
deposit: "Deposit"
|
3832
3836
|
}
|
3833
3837
|
};
|
3834
|
-
function
|
3838
|
+
function Yi(e) {
|
3835
3839
|
Rr(e, "svelte-wvhhix", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.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, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.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, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.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}');
|
3836
3840
|
}
|
3837
3841
|
function Mt(e, t, r) {
|
@@ -3847,87 +3851,87 @@ function Nt(e, t, r) {
|
|
3847
3851
|
return n[63] = t[r], n[65] = r, n;
|
3848
3852
|
}
|
3849
3853
|
function Pt(e) {
|
3850
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3854
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
|
3851
3855
|
/*sliderdata*/
|
3852
3856
|
e[9]
|
3853
3857
|
);
|
3854
|
-
const
|
3858
|
+
const o = (s) => (
|
3855
3859
|
/*category*/
|
3856
|
-
|
3860
|
+
s[57].id
|
3857
3861
|
);
|
3858
|
-
for (let
|
3859
|
-
let a = Mt(e, i,
|
3860
|
-
r.set(h, t[
|
3862
|
+
for (let s = 0; s < i.length; s += 1) {
|
3863
|
+
let a = Mt(e, i, s), h = o(a);
|
3864
|
+
r.set(h, t[s] = Gt(h, a));
|
3861
3865
|
}
|
3862
3866
|
return {
|
3863
3867
|
c() {
|
3864
|
-
for (let
|
3865
|
-
t[
|
3866
|
-
n =
|
3868
|
+
for (let s = 0; s < t.length; s += 1)
|
3869
|
+
t[s].c();
|
3870
|
+
n = ye();
|
3867
3871
|
},
|
3868
|
-
m(
|
3872
|
+
m(s, a) {
|
3869
3873
|
for (let h = 0; h < t.length; h += 1)
|
3870
|
-
t[h] && t[h].m(
|
3871
|
-
G(
|
3874
|
+
t[h] && t[h].m(s, a);
|
3875
|
+
G(s, n, a);
|
3872
3876
|
},
|
3873
|
-
p(
|
3877
|
+
p(s, a) {
|
3874
3878
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3875
|
-
1183695 && (i =
|
3879
|
+
1183695 && (i = oe(
|
3876
3880
|
/*sliderdata*/
|
3877
|
-
|
3878
|
-
), t = Xt(t, a,
|
3881
|
+
s[9]
|
3882
|
+
), t = Xt(t, a, o, 1, s, i, r, n.parentNode, Vt, Gt, n, Mt));
|
3879
3883
|
},
|
3880
|
-
d(
|
3881
|
-
|
3884
|
+
d(s) {
|
3885
|
+
s && D(n);
|
3882
3886
|
for (let a = 0; a < t.length; a += 1)
|
3883
|
-
t[a].d(
|
3887
|
+
t[a].d(s);
|
3884
3888
|
}
|
3885
3889
|
};
|
3886
3890
|
}
|
3887
|
-
function
|
3891
|
+
function Ki(e) {
|
3888
3892
|
let t, r = (
|
3889
3893
|
/*category*/
|
3890
3894
|
e[57].name + ""
|
3891
3895
|
), n;
|
3892
3896
|
return {
|
3893
3897
|
c() {
|
3894
|
-
t = L("button"), n =
|
3898
|
+
t = L("button"), n = xe(r), H(t, "class", "CategoryButton");
|
3895
3899
|
},
|
3896
|
-
m(i,
|
3897
|
-
G(i, t,
|
3900
|
+
m(i, o) {
|
3901
|
+
G(i, t, o), I(t, n);
|
3898
3902
|
},
|
3899
|
-
p(i,
|
3900
|
-
|
3903
|
+
p(i, o) {
|
3904
|
+
o[0] & /*sliderdata*/
|
3901
3905
|
512 && r !== (r = /*category*/
|
3902
|
-
i[57].name + "") &&
|
3906
|
+
i[57].name + "") && st(n, r);
|
3903
3907
|
},
|
3904
3908
|
d(i) {
|
3905
3909
|
i && D(t);
|
3906
3910
|
}
|
3907
3911
|
};
|
3908
3912
|
}
|
3909
|
-
function
|
3913
|
+
function eo(e) {
|
3910
3914
|
let t, r = (
|
3911
3915
|
/*category*/
|
3912
3916
|
e[57].label + ""
|
3913
3917
|
), n, i;
|
3914
3918
|
return {
|
3915
3919
|
c() {
|
3916
|
-
t = L("a"), n =
|
3920
|
+
t = L("a"), n = xe(r), H(t, "href", i = /*category*/
|
3917
3921
|
e[57].path);
|
3918
3922
|
},
|
3919
|
-
m(
|
3920
|
-
G(
|
3923
|
+
m(o, s) {
|
3924
|
+
G(o, t, s), I(t, n);
|
3921
3925
|
},
|
3922
|
-
p(
|
3923
|
-
|
3926
|
+
p(o, s) {
|
3927
|
+
s[0] & /*sliderdata*/
|
3924
3928
|
512 && r !== (r = /*category*/
|
3925
|
-
|
3929
|
+
o[57].label + "") && st(n, r), s[0] & /*sliderdata*/
|
3926
3930
|
512 && i !== (i = /*category*/
|
3927
|
-
|
3931
|
+
o[57].path) && H(t, "href", i);
|
3928
3932
|
},
|
3929
|
-
d(
|
3930
|
-
|
3933
|
+
d(o) {
|
3934
|
+
o && D(t);
|
3931
3935
|
}
|
3932
3936
|
};
|
3933
3937
|
}
|
@@ -3939,7 +3943,7 @@ function Ot(e) {
|
|
3939
3943
|
);
|
3940
3944
|
return {
|
3941
3945
|
c() {
|
3942
|
-
r && r.c(), t =
|
3946
|
+
r && r.c(), t = ye();
|
3943
3947
|
},
|
3944
3948
|
m(n, i) {
|
3945
3949
|
r && r.m(n, i), G(n, t, i);
|
@@ -3955,7 +3959,7 @@ function Ot(e) {
|
|
3955
3959
|
};
|
3956
3960
|
}
|
3957
3961
|
function Ft(e) {
|
3958
|
-
let t, r =
|
3962
|
+
let t, r = oe(
|
3959
3963
|
/*subGroupsData*/
|
3960
3964
|
e[10]
|
3961
3965
|
), n = [];
|
@@ -3966,27 +3970,27 @@ function Ft(e) {
|
|
3966
3970
|
t = L("ul");
|
3967
3971
|
for (let i = 0; i < n.length; i += 1)
|
3968
3972
|
n[i].c();
|
3969
|
-
|
3973
|
+
H(t, "class", "DropDown");
|
3970
3974
|
},
|
3971
|
-
m(i,
|
3972
|
-
G(i, t,
|
3973
|
-
for (let
|
3974
|
-
n[
|
3975
|
+
m(i, o) {
|
3976
|
+
G(i, t, o);
|
3977
|
+
for (let s = 0; s < n.length; s += 1)
|
3978
|
+
n[s] && n[s].m(t, null);
|
3975
3979
|
},
|
3976
|
-
p(i,
|
3977
|
-
if (
|
3980
|
+
p(i, o) {
|
3981
|
+
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3978
3982
|
133056) {
|
3979
|
-
r =
|
3983
|
+
r = oe(
|
3980
3984
|
/*subGroupsData*/
|
3981
3985
|
i[10]
|
3982
3986
|
);
|
3983
|
-
let
|
3984
|
-
for (
|
3985
|
-
const a = Lt(i, r,
|
3986
|
-
n[
|
3987
|
+
let s;
|
3988
|
+
for (s = 0; s < r.length; s += 1) {
|
3989
|
+
const a = Lt(i, r, s);
|
3990
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ut(a), n[s].c(), n[s].m(t, null));
|
3987
3991
|
}
|
3988
|
-
for (;
|
3989
|
-
n[
|
3992
|
+
for (; s < n.length; s += 1)
|
3993
|
+
n[s].d(1);
|
3990
3994
|
n.length = r.length;
|
3991
3995
|
}
|
3992
3996
|
},
|
@@ -3999,7 +4003,7 @@ function Rt(e) {
|
|
3999
4003
|
let t, r, n = (
|
4000
4004
|
/*subGroupItem*/
|
4001
4005
|
e[63]?.name + ""
|
4002
|
-
), i,
|
4006
|
+
), i, o, s, a, h;
|
4003
4007
|
function l(...u) {
|
4004
4008
|
return (
|
4005
4009
|
/*click_handler_2*/
|
@@ -4018,7 +4022,7 @@ function Rt(e) {
|
|
4018
4022
|
}
|
4019
4023
|
return {
|
4020
4024
|
c() {
|
4021
|
-
t = L("li"), r = L("a"), i =
|
4025
|
+
t = L("li"), r = L("a"), i = xe(n), s = q(), H(r, "class", o = "SubDropDown " + /*index*/
|
4022
4026
|
(e[59] == /*activeIndex*/
|
4023
4027
|
e[6] && /*activeSubIndex*/
|
4024
4028
|
(e[7] == /*subindex*/
|
@@ -4027,19 +4031,19 @@ function Rt(e) {
|
|
4027
4031
|
e[65]) ? "active" : ""));
|
4028
4032
|
},
|
4029
4033
|
m(u, m) {
|
4030
|
-
G(u, t, m), I(t, r), I(r, i), I(t,
|
4034
|
+
G(u, t, m), I(t, r), I(r, i), I(t, s), a || (h = V(t, "click", l), a = !0);
|
4031
4035
|
},
|
4032
4036
|
p(u, m) {
|
4033
4037
|
e = u, m[0] & /*subGroupsData*/
|
4034
4038
|
1024 && n !== (n = /*subGroupItem*/
|
4035
|
-
e[63]?.name + "") &&
|
4036
|
-
1984 &&
|
4039
|
+
e[63]?.name + "") && st(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4040
|
+
1984 && o !== (o = "SubDropDown " + /*index*/
|
4037
4041
|
(e[59] == /*activeIndex*/
|
4038
4042
|
e[6] && /*activeSubIndex*/
|
4039
4043
|
(e[7] == /*subindex*/
|
4040
4044
|
e[65] || /*prevSubIndex*/
|
4041
4045
|
e[8] == /*subindex*/
|
4042
|
-
e[65]) ? "active" : "")) &&
|
4046
|
+
e[65]) ? "active" : "")) && H(r, "class", o);
|
4043
4047
|
},
|
4044
4048
|
d(u) {
|
4045
4049
|
u && D(t), a = !1, h();
|
@@ -4056,65 +4060,65 @@ function Dt(e, t) {
|
|
4056
4060
|
key: e,
|
4057
4061
|
first: null,
|
4058
4062
|
c() {
|
4059
|
-
r =
|
4063
|
+
r = ye(), i && i.c(), n = ye(), this.first = r;
|
4060
4064
|
},
|
4061
|
-
m(
|
4062
|
-
G(
|
4065
|
+
m(o, s) {
|
4066
|
+
G(o, r, s), i && i.m(o, s), G(o, n, s);
|
4063
4067
|
},
|
4064
|
-
p(
|
4065
|
-
t =
|
4068
|
+
p(o, s) {
|
4069
|
+
t = o, /*index*/
|
4066
4070
|
t[59] == /*subGroup*/
|
4067
|
-
t[60].index ? i ? i.p(t,
|
4071
|
+
t[60].index ? i ? i.p(t, s) : (i = Rt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4068
4072
|
},
|
4069
|
-
d(
|
4070
|
-
|
4073
|
+
d(o) {
|
4074
|
+
o && (D(r), D(n)), i && i.d(o);
|
4071
4075
|
}
|
4072
4076
|
};
|
4073
4077
|
}
|
4074
4078
|
function Ut(e) {
|
4075
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4079
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
|
4076
4080
|
/*subGroup*/
|
4077
4081
|
e[60].items
|
4078
4082
|
);
|
4079
|
-
const
|
4083
|
+
const o = (s) => (
|
4080
4084
|
/*subGroupItem*/
|
4081
|
-
|
4085
|
+
s[63].id
|
4082
4086
|
);
|
4083
|
-
for (let
|
4084
|
-
let a = Nt(e, i,
|
4085
|
-
r.set(h, t[
|
4087
|
+
for (let s = 0; s < i.length; s += 1) {
|
4088
|
+
let a = Nt(e, i, s), h = o(a);
|
4089
|
+
r.set(h, t[s] = Dt(h, a));
|
4086
4090
|
}
|
4087
4091
|
return {
|
4088
4092
|
c() {
|
4089
|
-
for (let
|
4090
|
-
t[
|
4091
|
-
n =
|
4093
|
+
for (let s = 0; s < t.length; s += 1)
|
4094
|
+
t[s].c();
|
4095
|
+
n = ye();
|
4092
4096
|
},
|
4093
|
-
m(
|
4097
|
+
m(s, a) {
|
4094
4098
|
for (let h = 0; h < t.length; h += 1)
|
4095
|
-
t[h] && t[h].m(
|
4096
|
-
G(
|
4099
|
+
t[h] && t[h].m(s, a);
|
4100
|
+
G(s, n, a);
|
4097
4101
|
},
|
4098
|
-
p(
|
4102
|
+
p(s, a) {
|
4099
4103
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4100
|
-
133056 && (i =
|
4104
|
+
133056 && (i = oe(
|
4101
4105
|
/*subGroup*/
|
4102
|
-
|
4103
|
-
), t = Xt(t, a,
|
4106
|
+
s[60].items
|
4107
|
+
), t = Xt(t, a, o, 1, s, i, r, n.parentNode, Vt, Dt, n, Nt));
|
4104
4108
|
},
|
4105
|
-
d(
|
4106
|
-
|
4109
|
+
d(s) {
|
4110
|
+
s && D(n);
|
4107
4111
|
for (let a = 0; a < t.length; a += 1)
|
4108
|
-
t[a].d(
|
4112
|
+
t[a].d(s);
|
4109
4113
|
}
|
4110
4114
|
};
|
4111
4115
|
}
|
4112
4116
|
function Gt(e, t) {
|
4113
|
-
let r, n, i,
|
4114
|
-
function p(
|
4117
|
+
let r, n, i, o, s, a, h, l, u, m, f;
|
4118
|
+
function p(_, w) {
|
4115
4119
|
return (
|
4116
4120
|
/*location*/
|
4117
|
-
|
4121
|
+
_[0] === "headerMain" ? eo : Ki
|
4118
4122
|
);
|
4119
4123
|
}
|
4120
4124
|
let g = p(t), b = g(t), d = (
|
@@ -4124,7 +4128,7 @@ function Gt(e, t) {
|
|
4124
4128
|
t[59]
|
4125
4129
|
] == !0 && Ot(t)
|
4126
4130
|
);
|
4127
|
-
function
|
4131
|
+
function x(..._) {
|
4128
4132
|
return (
|
4129
4133
|
/*click_handler_3*/
|
4130
4134
|
t[39](
|
@@ -4132,7 +4136,7 @@ function Gt(e, t) {
|
|
4132
4136
|
t[57],
|
4133
4137
|
/*index*/
|
4134
4138
|
t[59],
|
4135
|
-
...
|
4139
|
+
..._
|
4136
4140
|
)
|
4137
4141
|
);
|
4138
4142
|
}
|
@@ -4140,12 +4144,12 @@ function Gt(e, t) {
|
|
4140
4144
|
key: e,
|
4141
4145
|
first: null,
|
4142
4146
|
c() {
|
4143
|
-
r = L("li"), n = L("div"), i = L("img"), a =
|
4144
|
-
(t[3] === "true" ? "" : "DisplayNone")), dt(i.src,
|
4147
|
+
r = L("li"), n = L("div"), i = L("img"), a = q(), b.c(), h = q(), d && d.c(), l = q(), H(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
|
4148
|
+
(t[3] === "true" ? "" : "DisplayNone")), dt(i.src, s = /*handleSrc*/
|
4145
4149
|
t[20](
|
4146
4150
|
/*category*/
|
4147
4151
|
t[57]
|
4148
|
-
)) ||
|
4152
|
+
)) || H(i, "src", s), H(n, "class", "CategoryIcon"), H(r, "class", u = "CarouselItem " + /*activeindex*/
|
4149
4153
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4150
4154
|
/*activeindex*/
|
4151
4155
|
t[1]?.split("$").pop() == /*category*/
|
@@ -4157,18 +4161,18 @@ function Gt(e, t) {
|
|
4157
4161
|
)) + " " + /*location*/
|
4158
4162
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4159
4163
|
},
|
4160
|
-
m(
|
4161
|
-
G(
|
4164
|
+
m(_, w) {
|
4165
|
+
G(_, r, w), I(r, n), I(n, i), I(r, a), b.m(r, null), I(r, h), d && d.m(r, null), I(r, l), m || (f = V(r, "click", x), m = !0);
|
4162
4166
|
},
|
4163
|
-
p(
|
4164
|
-
t =
|
4165
|
-
8 &&
|
4166
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4167
|
-
512 && !dt(i.src,
|
4167
|
+
p(_, w) {
|
4168
|
+
t = _, w[0] & /*categoriesicon*/
|
4169
|
+
8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
|
4170
|
+
(t[3] === "true" ? "" : "DisplayNone")) && H(i, "class", o), w[0] & /*sliderdata*/
|
4171
|
+
512 && !dt(i.src, s = /*handleSrc*/
|
4168
4172
|
t[20](
|
4169
4173
|
/*category*/
|
4170
4174
|
t[57]
|
4171
|
-
)) &&
|
4175
|
+
)) && H(i, "src", s), g === (g = p(t)) && b ? b.p(t, w) : (b.d(1), b = g(t), b && (b.c(), b.m(r, h))), /*itemsActive*/
|
4172
4176
|
t[11][
|
4173
4177
|
/*index*/
|
4174
4178
|
t[59]
|
@@ -4183,62 +4187,62 @@ function Gt(e, t) {
|
|
4183
4187
|
t[1] == /*category*/
|
4184
4188
|
t[57].id ? "active" : ""
|
4185
4189
|
)) + " " + /*location*/
|
4186
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4190
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && H(r, "class", u);
|
4187
4191
|
},
|
4188
|
-
d(
|
4189
|
-
|
4192
|
+
d(_) {
|
4193
|
+
_ && D(r), b.d(), d && d.d(), m = !1, f();
|
4190
4194
|
}
|
4191
4195
|
};
|
4192
4196
|
}
|
4193
|
-
function
|
4194
|
-
let t, r, n, i,
|
4197
|
+
function to(e) {
|
4198
|
+
let t, r, n, i, o, s, a, h, l, u, m, f, p, g, b, d = (
|
4195
4199
|
/*sliderdata*/
|
4196
4200
|
e[9].length > 0 && Pt(e)
|
4197
4201
|
);
|
4198
4202
|
return {
|
4199
4203
|
c() {
|
4200
|
-
t = L("div"), r = L("div"), n = L("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 =
|
4201
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4202
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
4204
|
+
t = L("div"), r = L("div"), n = L("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 = q(), o = L("div"), s = L("ul"), a = L("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = q(), d && d.c(), l = q(), u = L("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>', H(n, "class", "CarouselLeftArrow"), H(a, "class", "TouchOnly"), H(s, "id", "CarouselNav"), H(s, "class", "CarouselItems"), H(o, "class", "CarouselNavWrap scroller"), H(u, "class", "CarouselRightArrow"), H(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4205
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), H(r, "style", f = /*location*/
|
4206
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), H(t, "class", p = "CarouselWrapper " + /*location*/
|
4203
4207
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4204
4208
|
},
|
4205
|
-
m(
|
4206
|
-
G(
|
4207
|
-
|
4209
|
+
m(x, _) {
|
4210
|
+
G(x, t, _), I(t, r), I(r, n), I(r, i), I(r, o), I(o, s), I(s, a), I(s, h), d && d.m(s, null), e[40](s), e[41](o), I(r, l), I(r, u), e[43](t), g || (b = [
|
4211
|
+
V(
|
4208
4212
|
n,
|
4209
4213
|
"click",
|
4210
4214
|
/*click_handler_1*/
|
4211
4215
|
e[37]
|
4212
4216
|
),
|
4213
|
-
|
4214
|
-
|
4217
|
+
V(
|
4218
|
+
s,
|
4215
4219
|
"mousedown",
|
4216
4220
|
/*handleMouseDown*/
|
4217
4221
|
e[13]
|
4218
4222
|
),
|
4219
|
-
|
4220
|
-
|
4223
|
+
V(
|
4224
|
+
s,
|
4221
4225
|
"mouseleave",
|
4222
4226
|
/*handleMouseLeave*/
|
4223
4227
|
e[14]
|
4224
4228
|
),
|
4225
|
-
|
4226
|
-
|
4229
|
+
V(
|
4230
|
+
s,
|
4227
4231
|
"mouseup",
|
4228
4232
|
/*handleMouseUp*/
|
4229
4233
|
e[15]
|
4230
4234
|
),
|
4231
|
-
|
4232
|
-
|
4235
|
+
V(
|
4236
|
+
s,
|
4233
4237
|
"mousemove",
|
4234
4238
|
/*handleMouseMove*/
|
4235
4239
|
e[16]
|
4236
4240
|
),
|
4237
|
-
|
4241
|
+
V(s, "click", kr(
|
4238
4242
|
/*click_handler*/
|
4239
4243
|
e[36]
|
4240
4244
|
)),
|
4241
|
-
|
4245
|
+
V(
|
4242
4246
|
u,
|
4243
4247
|
"click",
|
4244
4248
|
/*click_handler_4*/
|
@@ -4246,125 +4250,125 @@ function eo(e) {
|
|
4246
4250
|
)
|
4247
4251
|
], g = !0);
|
4248
4252
|
},
|
4249
|
-
p(
|
4253
|
+
p(x, _) {
|
4250
4254
|
/*sliderdata*/
|
4251
|
-
|
4255
|
+
x[9].length > 0 ? d ? d.p(x, _) : (d = Pt(x), d.c(), d.m(s, null)) : d && (d.d(1), d = null), _[0] & /*location*/
|
4252
4256
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4253
|
-
|
4257
|
+
x[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), _[0] & /*location*/
|
4254
4258
|
1 && f !== (f = /*location*/
|
4255
|
-
|
4259
|
+
x[0] === "headerMain" ? "max-width: auto" : void 0) && H(r, "style", f), _[0] & /*location*/
|
4256
4260
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4257
|
-
(
|
4261
|
+
(x[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && H(t, "class", p);
|
4258
4262
|
},
|
4259
4263
|
i: k,
|
4260
4264
|
o: k,
|
4261
|
-
d(
|
4262
|
-
|
4265
|
+
d(x) {
|
4266
|
+
x && D(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, J(b);
|
4263
4267
|
}
|
4264
4268
|
};
|
4265
4269
|
}
|
4266
|
-
function
|
4267
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
4268
|
-
|
4269
|
-
let
|
4270
|
-
const
|
4271
|
-
c.preventDefault(),
|
4270
|
+
function ro(e, t, r) {
|
4271
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: x = "false" } = t, { categoriesicon: _ = "false" } = t, { lobbyiconimage: w = "" } = t, { mygamesiconimage: U = "" } = t, { mbsource: N = "" } = t, S;
|
4272
|
+
qi({ withLocale: "en", translations: {} });
|
4273
|
+
let C = !1, F = 0, R = 0;
|
4274
|
+
const K = (c) => {
|
4275
|
+
c.preventDefault(), C = !0, S?.classList.add("dragging"), F = c.pageX - (S?.offsetLeft ?? 0), R = S?.scrollLeft ?? 0;
|
4272
4276
|
}, br = (c) => {
|
4273
|
-
c.preventDefault(),
|
4277
|
+
c.preventDefault(), C = !1, S?.classList.remove("dragging");
|
4274
4278
|
}, yr = (c) => {
|
4275
|
-
|
4279
|
+
C = !1, S?.classList.remove("dragging");
|
4276
4280
|
}, vr = (c) => {
|
4277
|
-
if (!
|
4281
|
+
if (!C || !S)
|
4278
4282
|
return;
|
4279
4283
|
c.preventDefault();
|
4280
|
-
const O = (c.pageX -
|
4281
|
-
r(5,
|
4284
|
+
const O = (c.pageX - S.offsetLeft - F) * 2.5;
|
4285
|
+
r(5, S.scrollLeft = R - O, S);
|
4282
4286
|
}, _r = () => {
|
4283
|
-
fetch(f).then((
|
4284
|
-
Object.keys(
|
4285
|
-
Bt(O,
|
4287
|
+
fetch(f).then((E) => E.json()).then((E) => {
|
4288
|
+
Object.keys(E).forEach((O) => {
|
4289
|
+
Bt(O, E[O]);
|
4286
4290
|
});
|
4287
|
-
}).catch((
|
4288
|
-
console.log(
|
4291
|
+
}).catch((E) => {
|
4292
|
+
console.log(E);
|
4289
4293
|
});
|
4290
4294
|
};
|
4291
4295
|
Object.keys(It).forEach((c) => {
|
4292
4296
|
Bt(c, It[c]);
|
4293
4297
|
});
|
4294
|
-
let
|
4295
|
-
if (!(c.subGroups &&
|
4296
|
-
if (Ce(), r(6,
|
4298
|
+
let Z, me, Ue, j, de = [], we = [], ee = [], M, Ge = (c, E, O, Q, X) => {
|
4299
|
+
if (!(c.subGroups && Q === null)) {
|
4300
|
+
if (Ce(), r(6, Z = E), r(6, Z), X != "secondary") {
|
4297
4301
|
window.postMessage(
|
4298
4302
|
{
|
4299
|
-
type:
|
4303
|
+
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4300
4304
|
buzz: "1",
|
4301
4305
|
itemId: c.id,
|
4302
|
-
index:
|
4306
|
+
index: E,
|
4303
4307
|
item: c,
|
4304
4308
|
path: c.path,
|
4305
4309
|
externalLink: c.externalLink || !1,
|
4306
4310
|
target: c.attrs?.target || null
|
4307
4311
|
},
|
4308
4312
|
window.location.href
|
4309
|
-
), r(7,
|
4313
|
+
), r(7, me = null), r(8, Ue = null);
|
4310
4314
|
return;
|
4311
4315
|
}
|
4312
|
-
r(7,
|
4316
|
+
r(7, me = Q), r(7, me), r(8, Ue = me), window.postMessage(
|
4313
4317
|
{
|
4314
|
-
type:
|
4318
|
+
type: s,
|
4315
4319
|
itemId: O.id,
|
4316
|
-
subIndex:
|
4320
|
+
subIndex: Q,
|
4317
4321
|
subItem: O
|
4318
4322
|
},
|
4319
4323
|
window.location.href
|
4320
4324
|
);
|
4321
4325
|
}
|
4322
4326
|
}, ut = () => {
|
4323
|
-
M && (
|
4327
|
+
M && (ee.length !== Z ? r(12, M.scrollLeft -= 250, M) : r(12, M.scrollLeft = 0, M));
|
4324
4328
|
}, ht = () => {
|
4325
|
-
M && (
|
4329
|
+
M && (ee.length !== Z ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4326
4330
|
};
|
4327
4331
|
const ct = (c) => {
|
4328
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4329
|
-
|
4332
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, de = c.data.data), r(11, ee = new Array(de.length).fill(!1)), x == "true" && wr()), c.data.type == "GoToHomepage" && de.forEach((E, O) => {
|
4333
|
+
E.path.endsWith("/casino") && (r(6, Z = O), r(6, Z));
|
4330
4334
|
});
|
4331
4335
|
}, Er = () => {
|
4332
|
-
|
4333
|
-
}, xr = (c,
|
4336
|
+
Ji(b);
|
4337
|
+
}, xr = (c, E, O) => {
|
4334
4338
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4335
|
-
let
|
4336
|
-
fetch(
|
4337
|
-
|
4339
|
+
let Q = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4340
|
+
fetch(Q.href).then((X) => X.json()).then((X) => {
|
4341
|
+
X.index = E, r(10, we = we.concat(X)), x == "false" && window.postMessage(
|
4338
4342
|
{
|
4339
|
-
type:
|
4343
|
+
type: s,
|
4340
4344
|
itemId: c.id,
|
4341
|
-
index:
|
4345
|
+
index: E,
|
4342
4346
|
item: c
|
4343
4347
|
},
|
4344
4348
|
window.location.href
|
4345
4349
|
);
|
4346
|
-
const
|
4347
|
-
|
4348
|
-
|
4349
|
-
}),
|
4350
|
+
const He = [];
|
4351
|
+
we.map((Nr) => (Nr.items.forEach((ft) => {
|
4352
|
+
He.find((Pr) => ft.id == Pr) || He.push(ft.id);
|
4353
|
+
}), He.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: He }, window.location.href);
|
4350
4354
|
}).then(() => {
|
4351
|
-
|
4355
|
+
S.querySelectorAll(".DropDown") && Ce();
|
4352
4356
|
});
|
4353
4357
|
}
|
4354
|
-
h == "headerMain" && window.postMessage({ type:
|
4358
|
+
h == "headerMain" && window.postMessage({ type: s, item: c }, window.location.href);
|
4355
4359
|
}, Ce = () => {
|
4356
|
-
const c =
|
4360
|
+
const c = S.querySelectorAll(".DropDown");
|
4357
4361
|
document.activeElement.blur(), M.classList.add("isScrolling");
|
4358
|
-
for (let
|
4359
|
-
c[
|
4362
|
+
for (let E = 0; E < c.length; E++)
|
4363
|
+
c[E].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4360
4364
|
M.classList.remove("isScrolling");
|
4361
|
-
},
|
4362
|
-
|
4363
|
-
c?.subGroups?.count > 0 && (r(11,
|
4365
|
+
}, wr = () => {
|
4366
|
+
de.forEach((c, E) => {
|
4367
|
+
c?.subGroups?.count > 0 && (r(11, ee[E] = !0, ee), xr(c, E));
|
4364
4368
|
});
|
4365
|
-
},
|
4366
|
-
let
|
4367
|
-
return c.id === "LOBBY" ?
|
4369
|
+
}, Cr = (c) => {
|
4370
|
+
let E = "";
|
4371
|
+
return c.id === "LOBBY" ? E = w : c.id === "MYGAMES" && (E = U), c.icon || E;
|
4368
4372
|
};
|
4369
4373
|
Xr(() => (window.addEventListener("message", ct, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4370
4374
|
() => {
|
@@ -4372,69 +4376,69 @@ function to(e, t, r) {
|
|
4372
4376
|
},
|
4373
4377
|
500
|
4374
4378
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4375
|
-
window.removeEventListener("message", ct),
|
4379
|
+
window.removeEventListener("message", ct), S.removeEventListener("scroll", Ce);
|
4376
4380
|
}));
|
4377
4381
|
function Hr(c) {
|
4378
4382
|
Wr.call(this, e, c);
|
4379
4383
|
}
|
4380
|
-
const Sr = () => ut(), Tr = (c,
|
4381
|
-
|
4382
|
-
}, Ar = (c,
|
4383
|
-
|
4384
|
+
const Sr = () => ut(), Tr = (c, E, O, Q, X) => {
|
4385
|
+
Ge(c, E, O, Q, "secondary"), X.stopPropagation();
|
4386
|
+
}, Ar = (c, E, O) => {
|
4387
|
+
Ge(c, E, null, null, "main"), O.preventDefault();
|
4384
4388
|
};
|
4385
4389
|
function Br(c) {
|
4386
|
-
|
4387
|
-
|
4390
|
+
be[c ? "unshift" : "push"](() => {
|
4391
|
+
S = c, r(5, S);
|
4388
4392
|
});
|
4389
4393
|
}
|
4390
4394
|
function Ir(c) {
|
4391
|
-
|
4395
|
+
be[c ? "unshift" : "push"](() => {
|
4392
4396
|
M = c, r(12, M);
|
4393
4397
|
});
|
4394
4398
|
}
|
4395
4399
|
const Mr = () => ht();
|
4396
4400
|
function Lr(c) {
|
4397
|
-
|
4398
|
-
|
4401
|
+
be[c ? "unshift" : "push"](() => {
|
4402
|
+
j = c, r(4, j);
|
4399
4403
|
});
|
4400
4404
|
}
|
4401
4405
|
return e.$$set = (c) => {
|
4402
|
-
"endpoint" in c && r(21, n = c.endpoint), "datasource" in c && r(22, i = c.datasource), "onclickeventname" in c && r(23,
|
4406
|
+
"endpoint" in c && r(21, n = c.endpoint), "datasource" in c && r(22, i = c.datasource), "onclickeventname" in c && r(23, o = c.onclickeventname), "actionevent" in c && r(24, s = c.actionevent), "favoritesnumber" in c && r(25, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(26, l = c.clientstyling), "clientstylingurl" in c && r(27, u = c.clientstylingurl), "identity" in c && r(28, m = c.identity), "translationurl" in c && r(29, f = c.translationurl), "isprimarymenu" in c && r(30, p = c.isprimarymenu), "issecondarymenu" in c && r(31, g = c.issecondarymenu), "lang" in c && r(32, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, x = c.showsubgroups), "categoriesicon" in c && r(3, _ = c.categoriesicon), "lobbyiconimage" in c && r(33, w = c.lobbyiconimage), "mygamesiconimage" in c && r(34, U = c.mygamesiconimage), "mbsource" in c && r(35, N = c.mbsource);
|
4403
4407
|
}, e.$$.update = () => {
|
4404
4408
|
e.$$.dirty[0] & /*activeindex*/
|
4405
4409
|
2, e.$$.dirty[0] & /*translationurl*/
|
4406
4410
|
536870912 && f && _r(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4407
|
-
67108880 && l &&
|
4408
|
-
134217744 && u &&
|
4411
|
+
67108880 && l && j && sn(j, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4412
|
+
134217744 && u && j && an(j, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4409
4413
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4410
|
-
16 && N &&
|
4414
|
+
16 && N && j && ln(j, `${N}.Style`), e.$$.dirty[1] & /*lang*/
|
4411
4415
|
2 && b && Er();
|
4412
4416
|
}, [
|
4413
4417
|
h,
|
4414
4418
|
d,
|
4415
|
-
|
4416
|
-
|
4417
|
-
|
4418
|
-
|
4419
|
-
|
4420
|
-
fe,
|
4421
|
-
Re,
|
4419
|
+
x,
|
4420
|
+
_,
|
4421
|
+
j,
|
4422
|
+
S,
|
4423
|
+
Z,
|
4422
4424
|
me,
|
4423
|
-
|
4424
|
-
|
4425
|
+
Ue,
|
4426
|
+
de,
|
4427
|
+
we,
|
4428
|
+
ee,
|
4425
4429
|
M,
|
4426
|
-
|
4430
|
+
K,
|
4427
4431
|
br,
|
4428
4432
|
yr,
|
4429
4433
|
vr,
|
4430
|
-
|
4434
|
+
Ge,
|
4431
4435
|
ut,
|
4432
4436
|
ht,
|
4433
|
-
|
4437
|
+
Cr,
|
4434
4438
|
n,
|
4435
4439
|
i,
|
4436
|
-
s,
|
4437
4440
|
o,
|
4441
|
+
s,
|
4438
4442
|
a,
|
4439
4443
|
l,
|
4440
4444
|
u,
|
@@ -4456,13 +4460,13 @@ function to(e, t, r) {
|
|
4456
4460
|
Lr
|
4457
4461
|
];
|
4458
4462
|
}
|
4459
|
-
class
|
4463
|
+
class no extends nn {
|
4460
4464
|
constructor(t) {
|
4461
4465
|
super(), tn(
|
4462
4466
|
this,
|
4463
4467
|
t,
|
4468
|
+
ro,
|
4464
4469
|
to,
|
4465
|
-
eo,
|
4466
4470
|
$t,
|
4467
4471
|
{
|
4468
4472
|
endpoint: 21,
|
@@ -4485,7 +4489,7 @@ class ro extends nn {
|
|
4485
4489
|
mygamesiconimage: 34,
|
4486
4490
|
mbsource: 35
|
4487
4491
|
},
|
4488
|
-
|
4492
|
+
Yi,
|
4489
4493
|
[-1, -1, -1]
|
4490
4494
|
);
|
4491
4495
|
}
|
@@ -4604,7 +4608,7 @@ class ro extends nn {
|
|
4604
4608
|
this.$$set({ mbsource: t }), B();
|
4605
4609
|
}
|
4606
4610
|
}
|
4607
|
-
rn(
|
4611
|
+
rn(no, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4608
4612
|
export {
|
4609
|
-
|
4613
|
+
no as C
|
4610
4614
|
};
|