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