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