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