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