@everymatrix/casino-categories-vendor-bar 1.86.2 → 1.86.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategoriesVendorBar-DSihTTcd.cjs +18 -0
- package/components/{CasinoCategoriesVendorBar-BHdReW32.js → CasinoCategoriesVendorBar-RXNr3U5m.js} +907 -928
- package/components/{CasinoCategoriesVendorBar-gtnZNPFW.js → CasinoCategoriesVendorBar-RcyRoEdP.js} +881 -902
- package/es2015/casino-categories-vendor-bar.cjs +1 -1
- package/es2015/casino-categories-vendor-bar.js +1 -1
- package/esnext/casino-categories-vendor-bar.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesVendorBar-E7Kuf6Y9.cjs +0 -18
package/components/{CasinoCategoriesVendorBar-gtnZNPFW.js → CasinoCategoriesVendorBar-RcyRoEdP.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Vt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ct() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function X(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Vt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Se(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let me;
|
|
19
19
|
function Ee(e, t) {
|
|
20
20
|
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ur(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Dr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -34,11 +34,11 @@ function $r(e, ...t) {
|
|
|
34
34
|
function H(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function $r(e, t, r) {
|
|
38
38
|
const n = Gr(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
40
|
const i = S("style");
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
41
|
+
i.id = t, i.textContent = r, kr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
function Gr(e) {
|
|
@@ -51,7 +51,7 @@ function Gr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function kr(e, t) {
|
|
55
55
|
return H(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
@@ -70,26 +70,26 @@ function S(e) {
|
|
|
70
70
|
function pe(e) {
|
|
71
71
|
return document.createTextNode(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function k() {
|
|
74
74
|
return pe(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function nt() {
|
|
77
77
|
return pe("");
|
|
78
78
|
}
|
|
79
79
|
function J(e, t, r, n) {
|
|
80
80
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function E(e, t, r) {
|
|
83
83
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Fr(e) {
|
|
86
86
|
return Array.from(e.childNodes);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function it(e, t) {
|
|
89
89
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
90
90
|
t);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function jr(e) {
|
|
93
93
|
const t = {};
|
|
94
94
|
return e.childNodes.forEach(
|
|
95
95
|
/** @param {Element} node */
|
|
@@ -98,158 +98,158 @@ function Vr(e) {
|
|
|
98
98
|
}
|
|
99
99
|
), t;
|
|
100
100
|
}
|
|
101
|
-
let
|
|
102
|
-
function
|
|
103
|
-
|
|
101
|
+
let ce;
|
|
102
|
+
function he(e) {
|
|
103
|
+
ce = e;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function Vr() {
|
|
106
|
+
if (!ce)
|
|
107
107
|
throw new Error("Function called outside component initialization");
|
|
108
|
-
return
|
|
108
|
+
return ce;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function Wr(e) {
|
|
111
|
+
Vr().$$.on_mount.push(e);
|
|
112
112
|
}
|
|
113
113
|
const q = [], K = [];
|
|
114
114
|
let ee = [];
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
115
|
+
const ft = [], Xr = /* @__PURE__ */ Promise.resolve();
|
|
116
|
+
let Fe = !1;
|
|
117
|
+
function zr() {
|
|
118
|
+
Fe || (Fe = !0, Xr.then(R));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function je(e) {
|
|
121
121
|
ee.push(e);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const Le = /* @__PURE__ */ new Set();
|
|
124
124
|
let Q = 0;
|
|
125
125
|
function R() {
|
|
126
126
|
if (Q !== 0)
|
|
127
127
|
return;
|
|
128
|
-
const e =
|
|
128
|
+
const e = ce;
|
|
129
129
|
do {
|
|
130
130
|
try {
|
|
131
131
|
for (; Q < q.length; ) {
|
|
132
132
|
const t = q[Q];
|
|
133
|
-
Q++,
|
|
133
|
+
Q++, he(t), Zr(t.$$);
|
|
134
134
|
}
|
|
135
135
|
} catch (t) {
|
|
136
136
|
throw q.length = 0, Q = 0, t;
|
|
137
137
|
}
|
|
138
|
-
for (
|
|
138
|
+
for (he(null), q.length = 0, Q = 0; K.length; )
|
|
139
139
|
K.pop()();
|
|
140
140
|
for (let t = 0; t < ee.length; t += 1) {
|
|
141
141
|
const r = ee[t];
|
|
142
|
-
|
|
142
|
+
Le.has(r) || (Le.add(r), r());
|
|
143
143
|
}
|
|
144
144
|
ee.length = 0;
|
|
145
145
|
} while (q.length);
|
|
146
|
-
for (;
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
for (; ft.length; )
|
|
147
|
+
ft.pop()();
|
|
148
|
+
Fe = !1, Le.clear(), he(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Zr(e) {
|
|
151
151
|
if (e.fragment !== null) {
|
|
152
152
|
e.update(), X(e.before_update);
|
|
153
153
|
const t = e.dirty;
|
|
154
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
154
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Qr(e) {
|
|
158
158
|
const t = [], r = [];
|
|
159
159
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function
|
|
163
|
-
e && e.i && (
|
|
161
|
+
const Yr = /* @__PURE__ */ new Set();
|
|
162
|
+
function Xt(e, t) {
|
|
163
|
+
e && e.i && (Yr.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function dt(e) {
|
|
166
166
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function qr(e, t) {
|
|
169
169
|
e.d(1), t.delete(e.key);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
let f = e.length, m = o.length,
|
|
171
|
+
function Jr(e, t, r, n, i, o, s, a, l, u, h, c) {
|
|
172
|
+
let f = e.length, m = o.length, p = f;
|
|
173
173
|
const b = {};
|
|
174
|
-
for (;
|
|
175
|
-
b[e[
|
|
174
|
+
for (; p--; )
|
|
175
|
+
b[e[p].key] = p;
|
|
176
176
|
const T = [], L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = [];
|
|
177
|
-
for (
|
|
178
|
-
const g = c(i, o,
|
|
179
|
-
let
|
|
180
|
-
|
|
177
|
+
for (p = m; p--; ) {
|
|
178
|
+
const g = c(i, o, p), $ = r(g);
|
|
179
|
+
let G = s.get($);
|
|
180
|
+
G ? A.push(() => G.p(g, t)) : (G = u($, g), G.c()), L.set($, T[p] = G), $ in b && P.set($, Math.abs(p - b[$]));
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const M = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
183
183
|
function N(g) {
|
|
184
|
-
|
|
184
|
+
Xt(g, 1), g.m(a, h), s.set(g.key, g), h = g.first, m--;
|
|
185
185
|
}
|
|
186
186
|
for (; f && m; ) {
|
|
187
|
-
const g = T[m - 1], $ = e[f - 1],
|
|
188
|
-
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(
|
|
187
|
+
const g = T[m - 1], $ = e[f - 1], G = g.key, Z = $.key;
|
|
188
|
+
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(G) || M.has(G) ? N(g) : w.has(Z) ? f-- : P.get(G) > P.get(Z) ? (w.add(G), N(g)) : (M.add(Z), f--) : (l($, s), f--);
|
|
189
189
|
}
|
|
190
190
|
for (; f--; ) {
|
|
191
191
|
const g = e[f];
|
|
192
|
-
L.has(g.key) ||
|
|
192
|
+
L.has(g.key) || l(g, s);
|
|
193
193
|
}
|
|
194
194
|
for (; m; )
|
|
195
195
|
N(T[m - 1]);
|
|
196
196
|
return X(A), T;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Kr(e, t, r) {
|
|
199
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const o = e.$$.on_mount.map(
|
|
200
|
+
n && n.m(t, r), je(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Vt).filter(Se);
|
|
202
202
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
203
|
+
}), i.forEach(je);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function en(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Qr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
209
|
+
function tn(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (q.push(e), zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const
|
|
212
|
+
function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
213
|
+
const l = ce;
|
|
214
|
+
he(e);
|
|
215
|
+
const u = e.$$ = {
|
|
216
216
|
fragment: null,
|
|
217
217
|
ctx: [],
|
|
218
218
|
// state
|
|
219
219
|
props: o,
|
|
220
220
|
update: D,
|
|
221
221
|
not_equal: i,
|
|
222
|
-
bound:
|
|
222
|
+
bound: ct(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
226
226
|
on_disconnect: [],
|
|
227
227
|
before_update: [],
|
|
228
228
|
after_update: [],
|
|
229
|
-
context: new Map(t.context || (
|
|
229
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
230
230
|
// everything else
|
|
231
|
-
callbacks:
|
|
231
|
+
callbacks: ct(),
|
|
232
232
|
dirty: a,
|
|
233
233
|
skip_bound: !1,
|
|
234
|
-
root: t.target ||
|
|
234
|
+
root: t.target || l.$$.root
|
|
235
235
|
};
|
|
236
|
-
s && s(
|
|
236
|
+
s && s(u.root);
|
|
237
237
|
let h = !1;
|
|
238
|
-
if (
|
|
239
|
-
const
|
|
240
|
-
return
|
|
241
|
-
}) : [],
|
|
238
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
239
|
+
const p = m.length ? m[0] : f;
|
|
240
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), h && tn(e, c)), f;
|
|
241
|
+
}) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const c =
|
|
244
|
-
|
|
243
|
+
const c = Fr(t.target);
|
|
244
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
245
245
|
} else
|
|
246
|
-
|
|
247
|
-
t.intro &&
|
|
246
|
+
u.fragment && u.fragment.c();
|
|
247
|
+
t.intro && Xt(e.$$.fragment), Kr(e, t.target, t.anchor), R();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
he(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let zt;
|
|
252
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
254
|
$$ctor;
|
|
255
255
|
/** Slots */
|
|
@@ -291,24 +291,24 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
291
291
|
let o;
|
|
292
292
|
return {
|
|
293
293
|
c: function() {
|
|
294
|
-
o = S("slot"), i !== "default" &&
|
|
294
|
+
o = S("slot"), i !== "default" && E(o, "name", i);
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
297
297
|
* @param {HTMLElement} target
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
|
-
m: function(
|
|
301
|
-
B(
|
|
300
|
+
m: function(l, u) {
|
|
301
|
+
B(l, o, u);
|
|
302
302
|
},
|
|
303
|
-
d: function(
|
|
304
|
-
|
|
303
|
+
d: function(l) {
|
|
304
|
+
l && I(o);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const t = {}, r =
|
|
311
|
+
const t = {}, r = jr(this);
|
|
312
312
|
for (const i of this.$$s)
|
|
313
313
|
i in r && (t[i] = [e(i)]);
|
|
314
314
|
for (const i of this.attributes) {
|
|
@@ -395,8 +395,8 @@ function ve(e, t, r, n) {
|
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
let s = class extends
|
|
398
|
+
function nn(e, t, r, n, i, o) {
|
|
399
|
+
let s = class extends zt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
402
402
|
}
|
|
@@ -411,8 +411,8 @@ function on(e, t, r, n, i, o) {
|
|
|
411
411
|
get() {
|
|
412
412
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
413
413
|
},
|
|
414
|
-
set(
|
|
415
|
-
|
|
414
|
+
set(l) {
|
|
415
|
+
l = ve(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -424,7 +424,7 @@ function on(e, t, r, n, i, o) {
|
|
|
424
424
|
}), e.element = /** @type {any} */
|
|
425
425
|
s, s;
|
|
426
426
|
}
|
|
427
|
-
class
|
|
427
|
+
class on {
|
|
428
428
|
/**
|
|
429
429
|
* ### PRIVATE API
|
|
430
430
|
*
|
|
@@ -443,7 +443,7 @@ class sn {
|
|
|
443
443
|
$$set = void 0;
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
en(this, 1), this.$destroy = D;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -452,7 +452,7 @@ class sn {
|
|
|
452
452
|
* @returns {() => void}
|
|
453
453
|
*/
|
|
454
454
|
$on(t, r) {
|
|
455
|
-
if (!
|
|
455
|
+
if (!Se(r))
|
|
456
456
|
return D;
|
|
457
457
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
458
458
|
return n.push(r), () => {
|
|
@@ -465,11 +465,11 @@ class sn {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !Ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
471
|
+
const sn = "4";
|
|
472
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(sn);
|
|
473
473
|
/*! *****************************************************************************
|
|
474
474
|
Copyright (c) Microsoft Corporation.
|
|
475
475
|
|
|
@@ -484,24 +484,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
484
484
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
485
485
|
PERFORMANCE OF THIS SOFTWARE.
|
|
486
486
|
***************************************************************************** */
|
|
487
|
-
var
|
|
488
|
-
return
|
|
487
|
+
var Ve = function(e, t) {
|
|
488
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
489
489
|
r.__proto__ = n;
|
|
490
490
|
} || function(r, n) {
|
|
491
491
|
for (var i in n)
|
|
492
492
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
493
|
-
},
|
|
493
|
+
}, Ve(e, t);
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function j(e, t) {
|
|
496
496
|
if (typeof t != "function" && t !== null)
|
|
497
497
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
498
|
-
|
|
498
|
+
Ve(e, t);
|
|
499
499
|
function r() {
|
|
500
500
|
this.constructor = e;
|
|
501
501
|
}
|
|
502
502
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
var _ = function() {
|
|
505
|
+
return _ = Object.assign || function(t) {
|
|
506
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
507
|
+
r = arguments[n];
|
|
508
|
+
for (var o in r)
|
|
509
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
510
|
+
}
|
|
511
|
+
return t;
|
|
512
|
+
}, _.apply(this, arguments);
|
|
513
|
+
};
|
|
514
|
+
function an(e, t) {
|
|
515
|
+
var r = {};
|
|
516
|
+
for (var n in e)
|
|
517
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
518
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
519
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
520
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
521
|
+
return r;
|
|
522
|
+
}
|
|
523
|
+
function We(e) {
|
|
505
524
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
506
525
|
if (r)
|
|
507
526
|
return r.call(e);
|
|
@@ -513,7 +532,7 @@ function ze(e) {
|
|
|
513
532
|
};
|
|
514
533
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
515
534
|
}
|
|
516
|
-
function
|
|
535
|
+
function Xe(e, t) {
|
|
517
536
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
518
537
|
if (!r)
|
|
519
538
|
return e;
|
|
@@ -533,22 +552,22 @@ function Ze(e, t) {
|
|
|
533
552
|
}
|
|
534
553
|
return o;
|
|
535
554
|
}
|
|
536
|
-
function
|
|
537
|
-
if (arguments.length === 2)
|
|
555
|
+
function te(e, t, r) {
|
|
556
|
+
if (r || arguments.length === 2)
|
|
538
557
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
539
558
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
540
559
|
return e.concat(o || t);
|
|
541
560
|
}
|
|
542
|
-
function
|
|
561
|
+
function F(e) {
|
|
543
562
|
return typeof e == "function";
|
|
544
563
|
}
|
|
545
|
-
function
|
|
564
|
+
function Zt(e) {
|
|
546
565
|
var t = function(n) {
|
|
547
566
|
Error.call(n), n.stack = new Error().stack;
|
|
548
567
|
}, r = e(t);
|
|
549
568
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
550
569
|
}
|
|
551
|
-
var
|
|
570
|
+
var Ne = Zt(function(e) {
|
|
552
571
|
return function(r) {
|
|
553
572
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
554
573
|
` + r.map(function(n, i) {
|
|
@@ -557,13 +576,13 @@ var Ue = Yt(function(e) {
|
|
|
557
576
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
558
577
|
};
|
|
559
578
|
});
|
|
560
|
-
function
|
|
579
|
+
function ze(e, t) {
|
|
561
580
|
if (e) {
|
|
562
581
|
var r = e.indexOf(t);
|
|
563
582
|
0 <= r && e.splice(r, 1);
|
|
564
583
|
}
|
|
565
584
|
}
|
|
566
|
-
var
|
|
585
|
+
var Te = function() {
|
|
567
586
|
function e(t) {
|
|
568
587
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
569
588
|
}
|
|
@@ -575,15 +594,15 @@ var He = function() {
|
|
|
575
594
|
if (s)
|
|
576
595
|
if (this._parentage = null, Array.isArray(s))
|
|
577
596
|
try {
|
|
578
|
-
for (var a =
|
|
579
|
-
var
|
|
580
|
-
|
|
597
|
+
for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
|
|
598
|
+
var u = l.value;
|
|
599
|
+
u.remove(this);
|
|
581
600
|
}
|
|
582
601
|
} catch (b) {
|
|
583
602
|
t = { error: b };
|
|
584
603
|
} finally {
|
|
585
604
|
try {
|
|
586
|
-
|
|
605
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
587
606
|
} finally {
|
|
588
607
|
if (t)
|
|
589
608
|
throw t.error;
|
|
@@ -592,22 +611,22 @@ var He = function() {
|
|
|
592
611
|
else
|
|
593
612
|
s.remove(this);
|
|
594
613
|
var h = this.initialTeardown;
|
|
595
|
-
if (
|
|
614
|
+
if (F(h))
|
|
596
615
|
try {
|
|
597
616
|
h();
|
|
598
617
|
} catch (b) {
|
|
599
|
-
o = b instanceof
|
|
618
|
+
o = b instanceof Ne ? b.errors : [b];
|
|
600
619
|
}
|
|
601
620
|
var c = this._finalizers;
|
|
602
621
|
if (c) {
|
|
603
622
|
this._finalizers = null;
|
|
604
623
|
try {
|
|
605
|
-
for (var f =
|
|
606
|
-
var
|
|
624
|
+
for (var f = We(c), m = f.next(); !m.done; m = f.next()) {
|
|
625
|
+
var p = m.value;
|
|
607
626
|
try {
|
|
608
|
-
|
|
627
|
+
pt(p);
|
|
609
628
|
} catch (b) {
|
|
610
|
-
o = o ?? [], b instanceof
|
|
629
|
+
o = o ?? [], b instanceof Ne ? o = te(te([], Xe(o)), Xe(b.errors)) : o.push(b);
|
|
611
630
|
}
|
|
612
631
|
}
|
|
613
632
|
} catch (b) {
|
|
@@ -622,13 +641,13 @@ var He = function() {
|
|
|
622
641
|
}
|
|
623
642
|
}
|
|
624
643
|
if (o)
|
|
625
|
-
throw new
|
|
644
|
+
throw new Ne(o);
|
|
626
645
|
}
|
|
627
646
|
}, e.prototype.add = function(t) {
|
|
628
647
|
var r;
|
|
629
648
|
if (t && t !== this)
|
|
630
649
|
if (this.closed)
|
|
631
|
-
|
|
650
|
+
pt(t);
|
|
632
651
|
else {
|
|
633
652
|
if (t instanceof e) {
|
|
634
653
|
if (t.closed || t._hasParent(this))
|
|
@@ -645,52 +664,56 @@ var He = function() {
|
|
|
645
664
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
646
665
|
}, e.prototype._removeParent = function(t) {
|
|
647
666
|
var r = this._parentage;
|
|
648
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
667
|
+
r === t ? this._parentage = null : Array.isArray(r) && ze(r, t);
|
|
649
668
|
}, e.prototype.remove = function(t) {
|
|
650
669
|
var r = this._finalizers;
|
|
651
|
-
r &&
|
|
670
|
+
r && ze(r, t), t instanceof e && t._removeParent(this);
|
|
652
671
|
}, e.EMPTY = function() {
|
|
653
672
|
var t = new e();
|
|
654
673
|
return t.closed = !0, t;
|
|
655
674
|
}(), e;
|
|
656
|
-
}(),
|
|
657
|
-
function
|
|
658
|
-
return e instanceof
|
|
675
|
+
}(), Qt = Te.EMPTY;
|
|
676
|
+
function Yt(e) {
|
|
677
|
+
return e instanceof Te || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
659
678
|
}
|
|
660
|
-
function
|
|
661
|
-
|
|
679
|
+
function pt(e) {
|
|
680
|
+
F(e) ? e() : e.unsubscribe();
|
|
662
681
|
}
|
|
663
|
-
var
|
|
664
|
-
|
|
682
|
+
var qt = {
|
|
683
|
+
onUnhandledError: null,
|
|
684
|
+
onStoppedNotification: null,
|
|
685
|
+
Promise: void 0,
|
|
686
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
687
|
+
useDeprecatedNextContext: !1
|
|
665
688
|
}, ln = {
|
|
666
689
|
setTimeout: function(e, t) {
|
|
667
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
668
691
|
r[n - 2] = arguments[n];
|
|
669
|
-
return setTimeout.apply(void 0,
|
|
692
|
+
return setTimeout.apply(void 0, te([e, t], Xe(r)));
|
|
670
693
|
},
|
|
671
694
|
clearTimeout: function(e) {
|
|
672
695
|
return clearTimeout(e);
|
|
673
696
|
},
|
|
674
697
|
delegate: void 0
|
|
675
698
|
};
|
|
676
|
-
function
|
|
699
|
+
function un(e) {
|
|
677
700
|
ln.setTimeout(function() {
|
|
678
701
|
throw e;
|
|
679
702
|
});
|
|
680
703
|
}
|
|
681
|
-
function
|
|
704
|
+
function mt() {
|
|
682
705
|
}
|
|
683
706
|
function ye(e) {
|
|
684
707
|
e();
|
|
685
708
|
}
|
|
686
|
-
var
|
|
687
|
-
|
|
709
|
+
var Jt = function(e) {
|
|
710
|
+
j(t, e);
|
|
688
711
|
function t(r) {
|
|
689
712
|
var n = e.call(this) || this;
|
|
690
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Yt(r) && r.add(n)) : n.destination = dn, n;
|
|
691
714
|
}
|
|
692
715
|
return t.create = function(r, n, i) {
|
|
693
|
-
return new
|
|
716
|
+
return new Ze(r, n, i);
|
|
694
717
|
}, t.prototype.next = function(r) {
|
|
695
718
|
this.isStopped || this._next(r);
|
|
696
719
|
}, t.prototype.error = function(r) {
|
|
@@ -714,7 +737,11 @@ var Kt = function(e) {
|
|
|
714
737
|
this.unsubscribe();
|
|
715
738
|
}
|
|
716
739
|
}, t;
|
|
717
|
-
}(
|
|
740
|
+
}(Te), hn = Function.prototype.bind;
|
|
741
|
+
function Re(e, t) {
|
|
742
|
+
return hn.call(e, t);
|
|
743
|
+
}
|
|
744
|
+
var cn = function() {
|
|
718
745
|
function e(t) {
|
|
719
746
|
this.partialObserver = t;
|
|
720
747
|
}
|
|
@@ -745,30 +772,42 @@ var Kt = function(e) {
|
|
|
745
772
|
be(r);
|
|
746
773
|
}
|
|
747
774
|
}, e;
|
|
748
|
-
}(),
|
|
749
|
-
|
|
775
|
+
}(), Ze = function(e) {
|
|
776
|
+
j(t, e);
|
|
750
777
|
function t(r, n, i) {
|
|
751
778
|
var o = e.call(this) || this, s;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
779
|
+
if (F(r) || !r)
|
|
780
|
+
s = {
|
|
781
|
+
next: r ?? void 0,
|
|
782
|
+
error: n ?? void 0,
|
|
783
|
+
complete: i ?? void 0
|
|
784
|
+
};
|
|
785
|
+
else {
|
|
786
|
+
var a;
|
|
787
|
+
o && qt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
788
|
+
return o.unsubscribe();
|
|
789
|
+
}, s = {
|
|
790
|
+
next: r.next && Re(r.next, a),
|
|
791
|
+
error: r.error && Re(r.error, a),
|
|
792
|
+
complete: r.complete && Re(r.complete, a)
|
|
793
|
+
}) : s = r;
|
|
794
|
+
}
|
|
795
|
+
return o.destination = new cn(s), o;
|
|
757
796
|
}
|
|
758
797
|
return t;
|
|
759
|
-
}(
|
|
798
|
+
}(Jt);
|
|
760
799
|
function be(e) {
|
|
761
|
-
|
|
800
|
+
un(e);
|
|
762
801
|
}
|
|
763
802
|
function fn(e) {
|
|
764
803
|
throw e;
|
|
765
804
|
}
|
|
766
|
-
var
|
|
805
|
+
var dn = {
|
|
767
806
|
closed: !0,
|
|
768
|
-
next:
|
|
807
|
+
next: mt,
|
|
769
808
|
error: fn,
|
|
770
|
-
complete:
|
|
771
|
-
},
|
|
809
|
+
complete: mt
|
|
810
|
+
}, pn = function() {
|
|
772
811
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
773
812
|
}();
|
|
774
813
|
function mn(e) {
|
|
@@ -781,7 +820,7 @@ function bn(e) {
|
|
|
781
820
|
}, r);
|
|
782
821
|
};
|
|
783
822
|
}
|
|
784
|
-
var
|
|
823
|
+
var bt = function() {
|
|
785
824
|
function e(t) {
|
|
786
825
|
t && (this._subscribe = t);
|
|
787
826
|
}
|
|
@@ -789,10 +828,10 @@ var vt = function() {
|
|
|
789
828
|
var r = new e();
|
|
790
829
|
return r.source = this, r.operator = t, r;
|
|
791
830
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
792
|
-
var i = this, o = vn(t) ? t : new
|
|
831
|
+
var i = this, o = vn(t) ? t : new Ze(t, r, n);
|
|
793
832
|
return ye(function() {
|
|
794
|
-
var s = i, a = s.operator,
|
|
795
|
-
o.add(a ? a.call(o,
|
|
833
|
+
var s = i, a = s.operator, l = s.source;
|
|
834
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
796
835
|
}), o;
|
|
797
836
|
}, e.prototype._trySubscribe = function(t) {
|
|
798
837
|
try {
|
|
@@ -802,13 +841,13 @@ var vt = function() {
|
|
|
802
841
|
}
|
|
803
842
|
}, e.prototype.forEach = function(t, r) {
|
|
804
843
|
var n = this;
|
|
805
|
-
return r =
|
|
806
|
-
var s = new
|
|
844
|
+
return r = gt(r), new r(function(i, o) {
|
|
845
|
+
var s = new Ze({
|
|
807
846
|
next: function(a) {
|
|
808
847
|
try {
|
|
809
848
|
t(a);
|
|
810
|
-
} catch (
|
|
811
|
-
o(
|
|
849
|
+
} catch (l) {
|
|
850
|
+
o(l), s.unsubscribe();
|
|
812
851
|
}
|
|
813
852
|
},
|
|
814
853
|
error: o,
|
|
@@ -819,7 +858,7 @@ var vt = function() {
|
|
|
819
858
|
}, e.prototype._subscribe = function(t) {
|
|
820
859
|
var r;
|
|
821
860
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
822
|
-
}, e.prototype[
|
|
861
|
+
}, e.prototype[pn] = function() {
|
|
823
862
|
return this;
|
|
824
863
|
}, e.prototype.pipe = function() {
|
|
825
864
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -827,7 +866,7 @@ var vt = function() {
|
|
|
827
866
|
return bn(t)(this);
|
|
828
867
|
}, e.prototype.toPromise = function(t) {
|
|
829
868
|
var r = this;
|
|
830
|
-
return t =
|
|
869
|
+
return t = gt(t), new t(function(n, i) {
|
|
831
870
|
var o;
|
|
832
871
|
r.subscribe(function(s) {
|
|
833
872
|
return o = s;
|
|
@@ -841,28 +880,28 @@ var vt = function() {
|
|
|
841
880
|
return new e(t);
|
|
842
881
|
}, e;
|
|
843
882
|
}();
|
|
844
|
-
function
|
|
883
|
+
function gt(e) {
|
|
845
884
|
var t;
|
|
846
|
-
return (t = e ??
|
|
885
|
+
return (t = e ?? qt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
847
886
|
}
|
|
848
887
|
function gn(e) {
|
|
849
|
-
return e &&
|
|
888
|
+
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
850
889
|
}
|
|
851
890
|
function vn(e) {
|
|
852
|
-
return e && e instanceof
|
|
891
|
+
return e && e instanceof Jt || gn(e) && Yt(e);
|
|
853
892
|
}
|
|
854
|
-
var yn =
|
|
893
|
+
var yn = Zt(function(e) {
|
|
855
894
|
return function() {
|
|
856
895
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
857
896
|
};
|
|
858
|
-
}),
|
|
859
|
-
|
|
897
|
+
}), Kt = function(e) {
|
|
898
|
+
j(t, e);
|
|
860
899
|
function t() {
|
|
861
900
|
var r = e.call(this) || this;
|
|
862
901
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
863
902
|
}
|
|
864
903
|
return t.prototype.lift = function(r) {
|
|
865
|
-
var n = new
|
|
904
|
+
var n = new vt(this, this);
|
|
866
905
|
return n.operator = r, n;
|
|
867
906
|
}, t.prototype._throwIfClosed = function() {
|
|
868
907
|
if (this.closed)
|
|
@@ -874,12 +913,12 @@ var yn = Yt(function(e) {
|
|
|
874
913
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
875
914
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
876
915
|
try {
|
|
877
|
-
for (var s =
|
|
878
|
-
var
|
|
879
|
-
|
|
916
|
+
for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
917
|
+
var l = a.value;
|
|
918
|
+
l.next(r);
|
|
880
919
|
}
|
|
881
|
-
} catch (
|
|
882
|
-
i = { error:
|
|
920
|
+
} catch (u) {
|
|
921
|
+
i = { error: u };
|
|
883
922
|
} finally {
|
|
884
923
|
try {
|
|
885
924
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -923,20 +962,20 @@ var yn = Yt(function(e) {
|
|
|
923
962
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
924
963
|
}, t.prototype._innerSubscribe = function(r) {
|
|
925
964
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
926
|
-
return o || s ?
|
|
927
|
-
n.currentObservers = null,
|
|
965
|
+
return o || s ? Qt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
966
|
+
n.currentObservers = null, ze(a, r);
|
|
928
967
|
}));
|
|
929
968
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
930
969
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
931
970
|
i ? r.error(o) : s && r.complete();
|
|
932
971
|
}, t.prototype.asObservable = function() {
|
|
933
|
-
var r = new
|
|
972
|
+
var r = new bt();
|
|
934
973
|
return r.source = this, r;
|
|
935
974
|
}, t.create = function(r, n) {
|
|
936
|
-
return new
|
|
975
|
+
return new vt(r, n);
|
|
937
976
|
}, t;
|
|
938
|
-
}(
|
|
939
|
-
|
|
977
|
+
}(bt), vt = function(e) {
|
|
978
|
+
j(t, e);
|
|
940
979
|
function t(r, n) {
|
|
941
980
|
var i = e.call(this) || this;
|
|
942
981
|
return i.destination = r, i.source = n, i;
|
|
@@ -952,60 +991,60 @@ var yn = Yt(function(e) {
|
|
|
952
991
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
953
992
|
}, t.prototype._subscribe = function(r) {
|
|
954
993
|
var n, i;
|
|
955
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
994
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Qt;
|
|
956
995
|
}, t;
|
|
957
|
-
}(
|
|
996
|
+
}(Kt), er = {
|
|
958
997
|
now: function() {
|
|
959
|
-
return (
|
|
998
|
+
return (er.delegate || Date).now();
|
|
960
999
|
},
|
|
961
1000
|
delegate: void 0
|
|
962
1001
|
}, _n = function(e) {
|
|
963
|
-
|
|
1002
|
+
j(t, e);
|
|
964
1003
|
function t(r, n, i) {
|
|
965
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1004
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
|
|
966
1005
|
var o = e.call(this) || this;
|
|
967
1006
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
968
1007
|
}
|
|
969
1008
|
return t.prototype.next = function(r) {
|
|
970
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
971
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
1009
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1010
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
972
1011
|
}, t.prototype._subscribe = function(r) {
|
|
973
1012
|
this._throwIfClosed(), this._trimBuffer();
|
|
974
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
975
|
-
r.next(a[
|
|
1013
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
1014
|
+
r.next(a[l]);
|
|
976
1015
|
return this._checkFinalizedStatuses(r), n;
|
|
977
1016
|
}, t.prototype._trimBuffer = function() {
|
|
978
1017
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
979
1018
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
980
|
-
for (var
|
|
981
|
-
|
|
982
|
-
|
|
1019
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1020
|
+
u = h;
|
|
1021
|
+
u && o.splice(0, u + 1);
|
|
983
1022
|
}
|
|
984
1023
|
}, t;
|
|
985
|
-
}(
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
1024
|
+
}(Kt);
|
|
1025
|
+
const yt = [], _t = {}, xn = (e, t = 0) => {
|
|
1026
|
+
if (yt.indexOf(e) == -1) {
|
|
988
1027
|
const r = new _n(t);
|
|
989
|
-
|
|
1028
|
+
_t[e] = r, yt.push(e);
|
|
990
1029
|
}
|
|
991
|
-
return
|
|
1030
|
+
return _t[e];
|
|
992
1031
|
}, Y = [];
|
|
993
1032
|
function En(e, t) {
|
|
994
1033
|
return {
|
|
995
|
-
subscribe:
|
|
1034
|
+
subscribe: He(e, t).subscribe
|
|
996
1035
|
};
|
|
997
1036
|
}
|
|
998
|
-
function
|
|
1037
|
+
function He(e, t = D) {
|
|
999
1038
|
let r;
|
|
1000
1039
|
const n = /* @__PURE__ */ new Set();
|
|
1001
1040
|
function i(a) {
|
|
1002
|
-
if (
|
|
1003
|
-
const
|
|
1004
|
-
for (const
|
|
1005
|
-
|
|
1006
|
-
if (
|
|
1007
|
-
for (let
|
|
1008
|
-
Y[
|
|
1041
|
+
if (Wt(e, a) && (e = a, r)) {
|
|
1042
|
+
const l = !Y.length;
|
|
1043
|
+
for (const u of n)
|
|
1044
|
+
u[1](), Y.push(u, e);
|
|
1045
|
+
if (l) {
|
|
1046
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
1047
|
+
Y[u][0](Y[u + 1]);
|
|
1009
1048
|
Y.length = 0;
|
|
1010
1049
|
}
|
|
1011
1050
|
}
|
|
@@ -1013,49 +1052,49 @@ function Ae(e, t = D) {
|
|
|
1013
1052
|
function o(a) {
|
|
1014
1053
|
i(a(e));
|
|
1015
1054
|
}
|
|
1016
|
-
function s(a,
|
|
1017
|
-
const
|
|
1018
|
-
return n.add(
|
|
1019
|
-
n.delete(
|
|
1055
|
+
function s(a, l = D) {
|
|
1056
|
+
const u = [a, l];
|
|
1057
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
1058
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1020
1059
|
};
|
|
1021
1060
|
}
|
|
1022
1061
|
return { set: i, update: o, subscribe: s };
|
|
1023
1062
|
}
|
|
1024
|
-
function
|
|
1063
|
+
function se(e, t, r) {
|
|
1025
1064
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1026
1065
|
if (!i.every(Boolean))
|
|
1027
1066
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1028
1067
|
const o = t.length < 2;
|
|
1029
1068
|
return En(r, (s, a) => {
|
|
1030
|
-
let
|
|
1031
|
-
const
|
|
1069
|
+
let l = !1;
|
|
1070
|
+
const u = [];
|
|
1032
1071
|
let h = 0, c = D;
|
|
1033
1072
|
const f = () => {
|
|
1034
1073
|
if (h)
|
|
1035
1074
|
return;
|
|
1036
1075
|
c();
|
|
1037
|
-
const
|
|
1038
|
-
o ? s(
|
|
1076
|
+
const p = t(n ? u[0] : u, s, a);
|
|
1077
|
+
o ? s(p) : c = Se(p) ? p : D;
|
|
1039
1078
|
}, m = i.map(
|
|
1040
|
-
(
|
|
1041
|
-
|
|
1079
|
+
(p, b) => Dr(
|
|
1080
|
+
p,
|
|
1042
1081
|
(T) => {
|
|
1043
|
-
|
|
1082
|
+
u[b] = T, h &= ~(1 << b), l && f();
|
|
1044
1083
|
},
|
|
1045
1084
|
() => {
|
|
1046
1085
|
h |= 1 << b;
|
|
1047
1086
|
}
|
|
1048
1087
|
)
|
|
1049
1088
|
);
|
|
1050
|
-
return
|
|
1051
|
-
X(m), c(),
|
|
1089
|
+
return l = !0, f(), function() {
|
|
1090
|
+
X(m), c(), l = !1;
|
|
1052
1091
|
};
|
|
1053
1092
|
});
|
|
1054
1093
|
}
|
|
1055
|
-
function
|
|
1094
|
+
function Cn(e) {
|
|
1056
1095
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1057
1096
|
}
|
|
1058
|
-
var
|
|
1097
|
+
var wn = function(t) {
|
|
1059
1098
|
return Sn(t) && !Tn(t);
|
|
1060
1099
|
};
|
|
1061
1100
|
function Sn(e) {
|
|
@@ -1072,29 +1111,29 @@ function In(e) {
|
|
|
1072
1111
|
function Bn(e) {
|
|
1073
1112
|
return Array.isArray(e) ? [] : {};
|
|
1074
1113
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1114
|
+
function fe(e, t) {
|
|
1115
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Bn(e), e, t) : e;
|
|
1077
1116
|
}
|
|
1078
1117
|
function Pn(e, t, r) {
|
|
1079
1118
|
return e.concat(t).map(function(n) {
|
|
1080
|
-
return
|
|
1119
|
+
return fe(n, r);
|
|
1081
1120
|
});
|
|
1082
1121
|
}
|
|
1083
|
-
function
|
|
1122
|
+
function Mn(e, t) {
|
|
1084
1123
|
if (!t.customMerge)
|
|
1085
|
-
return
|
|
1124
|
+
return re;
|
|
1086
1125
|
var r = t.customMerge(e);
|
|
1087
|
-
return typeof r == "function" ? r :
|
|
1126
|
+
return typeof r == "function" ? r : re;
|
|
1088
1127
|
}
|
|
1089
|
-
function
|
|
1128
|
+
function On(e) {
|
|
1090
1129
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1091
1130
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1092
1131
|
}) : [];
|
|
1093
1132
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return Object.keys(e).concat(
|
|
1133
|
+
function xt(e) {
|
|
1134
|
+
return Object.keys(e).concat(On(e));
|
|
1096
1135
|
}
|
|
1097
|
-
function
|
|
1136
|
+
function tr(e, t) {
|
|
1098
1137
|
try {
|
|
1099
1138
|
return t in e;
|
|
1100
1139
|
} catch {
|
|
@@ -1102,179 +1141,129 @@ function rr(e, t) {
|
|
|
1102
1141
|
}
|
|
1103
1142
|
}
|
|
1104
1143
|
function Ln(e, t) {
|
|
1105
|
-
return
|
|
1144
|
+
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1106
1145
|
}
|
|
1107
1146
|
function Nn(e, t, r) {
|
|
1108
1147
|
var n = {};
|
|
1109
|
-
return r.isMergeableObject(e) &&
|
|
1110
|
-
n[i] =
|
|
1111
|
-
}),
|
|
1112
|
-
Ln(e, i) || (
|
|
1148
|
+
return r.isMergeableObject(e) && xt(e).forEach(function(i) {
|
|
1149
|
+
n[i] = fe(e[i], r);
|
|
1150
|
+
}), xt(t).forEach(function(i) {
|
|
1151
|
+
Ln(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Mn(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1113
1152
|
}), n;
|
|
1114
1153
|
}
|
|
1115
|
-
function
|
|
1116
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Pn, r.isMergeableObject = r.isMergeableObject ||
|
|
1154
|
+
function re(e, t, r) {
|
|
1155
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pn, r.isMergeableObject = r.isMergeableObject || wn, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1117
1156
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1118
|
-
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) :
|
|
1157
|
+
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : fe(t, r);
|
|
1119
1158
|
}
|
|
1120
|
-
|
|
1159
|
+
re.all = function(t, r) {
|
|
1121
1160
|
if (!Array.isArray(t))
|
|
1122
1161
|
throw new Error("first argument should be an array");
|
|
1123
1162
|
return t.reduce(function(n, i) {
|
|
1124
|
-
return
|
|
1163
|
+
return re(n, i, r);
|
|
1125
1164
|
}, {});
|
|
1126
1165
|
};
|
|
1127
|
-
var Rn =
|
|
1128
|
-
const Dn = /* @__PURE__ */
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
r.__proto__ = n;
|
|
1132
|
-
} || function(r, n) {
|
|
1133
|
-
for (var i in n)
|
|
1134
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1135
|
-
}, Je(e, t);
|
|
1136
|
-
};
|
|
1137
|
-
function Ie(e, t) {
|
|
1138
|
-
if (typeof t != "function" && t !== null)
|
|
1139
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1140
|
-
Je(e, t);
|
|
1141
|
-
function r() {
|
|
1142
|
-
this.constructor = e;
|
|
1143
|
-
}
|
|
1144
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1145
|
-
}
|
|
1146
|
-
var G = function() {
|
|
1147
|
-
return G = Object.assign || function(t) {
|
|
1148
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1149
|
-
r = arguments[n];
|
|
1150
|
-
for (var o in r)
|
|
1151
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1152
|
-
}
|
|
1153
|
-
return t;
|
|
1154
|
-
}, G.apply(this, arguments);
|
|
1155
|
-
};
|
|
1156
|
-
function $n(e, t) {
|
|
1157
|
-
var r = {};
|
|
1158
|
-
for (var n in e)
|
|
1159
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1160
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1161
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1162
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1163
|
-
return r;
|
|
1164
|
-
}
|
|
1165
|
-
function De(e, t, r) {
|
|
1166
|
-
if (r || arguments.length === 2)
|
|
1167
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1168
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1169
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1170
|
-
}
|
|
1171
|
-
function $e(e, t) {
|
|
1172
|
-
var r = t && t.cache ? t.cache : Xn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : Fn;
|
|
1166
|
+
var Rn = re, Un = Rn;
|
|
1167
|
+
const Dn = /* @__PURE__ */ Cn(Un);
|
|
1168
|
+
function Ue(e, t) {
|
|
1169
|
+
var r = t && t.cache ? t.cache : Vn, n = t && t.serializer ? t.serializer : jn, i = t && t.strategy ? t.strategy : Gn;
|
|
1173
1170
|
return i(e, {
|
|
1174
1171
|
cache: r,
|
|
1175
1172
|
serializer: n
|
|
1176
1173
|
});
|
|
1177
1174
|
}
|
|
1178
|
-
function
|
|
1175
|
+
function $n(e) {
|
|
1179
1176
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1180
1177
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var i =
|
|
1178
|
+
function rr(e, t, r, n) {
|
|
1179
|
+
var i = $n(n) ? n : r(n), o = t.get(i);
|
|
1183
1180
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1184
1181
|
}
|
|
1185
1182
|
function nr(e, t, r) {
|
|
1186
1183
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1187
1184
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1188
1185
|
}
|
|
1189
|
-
function
|
|
1186
|
+
function ot(e, t, r, n, i) {
|
|
1190
1187
|
return r.bind(t, e, n, i);
|
|
1191
1188
|
}
|
|
1192
|
-
function
|
|
1193
|
-
var r = e.length === 1 ?
|
|
1194
|
-
return
|
|
1189
|
+
function Gn(e, t) {
|
|
1190
|
+
var r = e.length === 1 ? rr : nr;
|
|
1191
|
+
return ot(e, this, r, t.cache.create(), t.serializer);
|
|
1192
|
+
}
|
|
1193
|
+
function kn(e, t) {
|
|
1194
|
+
return ot(e, this, nr, t.cache.create(), t.serializer);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1196
|
+
function Fn(e, t) {
|
|
1197
|
+
return ot(e, this, rr, t.cache.create(), t.serializer);
|
|
1198
1198
|
}
|
|
1199
|
-
var
|
|
1199
|
+
var jn = function() {
|
|
1200
1200
|
return JSON.stringify(arguments);
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
}()
|
|
1213
|
-
), Xn = {
|
|
1201
|
+
};
|
|
1202
|
+
function st() {
|
|
1203
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1204
|
+
}
|
|
1205
|
+
st.prototype.get = function(e) {
|
|
1206
|
+
return this.cache[e];
|
|
1207
|
+
};
|
|
1208
|
+
st.prototype.set = function(e, t) {
|
|
1209
|
+
this.cache[e] = t;
|
|
1210
|
+
};
|
|
1211
|
+
var Vn = {
|
|
1214
1212
|
create: function() {
|
|
1215
|
-
return new
|
|
1213
|
+
return new st();
|
|
1216
1214
|
}
|
|
1217
|
-
},
|
|
1218
|
-
variadic:
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1222
|
-
r = arguments[n];
|
|
1223
|
-
for (var o in r)
|
|
1224
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1225
|
-
}
|
|
1226
|
-
return t;
|
|
1227
|
-
}, we.apply(this, arguments);
|
|
1228
|
-
};
|
|
1229
|
-
var v;
|
|
1215
|
+
}, De = {
|
|
1216
|
+
variadic: kn,
|
|
1217
|
+
monadic: Fn
|
|
1218
|
+
}, v;
|
|
1230
1219
|
(function(e) {
|
|
1231
1220
|
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";
|
|
1232
1221
|
})(v || (v = {}));
|
|
1233
|
-
var
|
|
1222
|
+
var C;
|
|
1234
1223
|
(function(e) {
|
|
1235
1224
|
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";
|
|
1236
|
-
})(
|
|
1237
|
-
var
|
|
1225
|
+
})(C || (C = {}));
|
|
1226
|
+
var ne;
|
|
1238
1227
|
(function(e) {
|
|
1239
1228
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1240
|
-
})(
|
|
1241
|
-
function
|
|
1242
|
-
return e.type ===
|
|
1229
|
+
})(ne || (ne = {}));
|
|
1230
|
+
function Et(e) {
|
|
1231
|
+
return e.type === C.literal;
|
|
1243
1232
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1233
|
+
function Wn(e) {
|
|
1234
|
+
return e.type === C.argument;
|
|
1235
|
+
}
|
|
1236
|
+
function ir(e) {
|
|
1237
|
+
return e.type === C.number;
|
|
1246
1238
|
}
|
|
1247
1239
|
function or(e) {
|
|
1248
|
-
return e.type ===
|
|
1240
|
+
return e.type === C.date;
|
|
1249
1241
|
}
|
|
1250
1242
|
function sr(e) {
|
|
1251
|
-
return e.type ===
|
|
1243
|
+
return e.type === C.time;
|
|
1252
1244
|
}
|
|
1253
1245
|
function ar(e) {
|
|
1254
|
-
return e.type ===
|
|
1255
|
-
}
|
|
1256
|
-
function ur(e) {
|
|
1257
|
-
return e.type === E.select;
|
|
1246
|
+
return e.type === C.select;
|
|
1258
1247
|
}
|
|
1259
1248
|
function lr(e) {
|
|
1260
|
-
return e.type ===
|
|
1249
|
+
return e.type === C.plural;
|
|
1261
1250
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1251
|
+
function Xn(e) {
|
|
1252
|
+
return e.type === C.pound;
|
|
1264
1253
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1254
|
+
function ur(e) {
|
|
1255
|
+
return e.type === C.tag;
|
|
1267
1256
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1257
|
+
function hr(e) {
|
|
1258
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1270
1259
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1260
|
+
function Qe(e) {
|
|
1261
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1273
1262
|
}
|
|
1274
|
-
var
|
|
1275
|
-
function
|
|
1263
|
+
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
|
|
1264
|
+
function Zn(e) {
|
|
1276
1265
|
var t = {};
|
|
1277
|
-
return e.replace(
|
|
1266
|
+
return e.replace(zn, function(r) {
|
|
1278
1267
|
var n = r.length;
|
|
1279
1268
|
switch (r[0]) {
|
|
1280
1269
|
case "G":
|
|
@@ -1363,46 +1352,36 @@ function Yn(e) {
|
|
|
1363
1352
|
return "";
|
|
1364
1353
|
}), t;
|
|
1365
1354
|
}
|
|
1366
|
-
var
|
|
1367
|
-
|
|
1368
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1369
|
-
r = arguments[n];
|
|
1370
|
-
for (var o in r)
|
|
1371
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1372
|
-
}
|
|
1373
|
-
return t;
|
|
1374
|
-
}, C.apply(this, arguments);
|
|
1375
|
-
};
|
|
1376
|
-
var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1377
|
-
function Jn(e) {
|
|
1355
|
+
var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1356
|
+
function Yn(e) {
|
|
1378
1357
|
if (e.length === 0)
|
|
1379
1358
|
throw new Error("Number skeleton cannot be empty");
|
|
1380
|
-
for (var t = e.split(
|
|
1359
|
+
for (var t = e.split(Qn).filter(function(f) {
|
|
1381
1360
|
return f.length > 0;
|
|
1382
1361
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1383
1362
|
var o = i[n], s = o.split("/");
|
|
1384
1363
|
if (s.length === 0)
|
|
1385
1364
|
throw new Error("Invalid number skeleton");
|
|
1386
|
-
for (var a = s[0],
|
|
1387
|
-
var c = h[
|
|
1365
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1366
|
+
var c = h[u];
|
|
1388
1367
|
if (c.length === 0)
|
|
1389
1368
|
throw new Error("Invalid number skeleton");
|
|
1390
1369
|
}
|
|
1391
|
-
r.push({ stem: a, options:
|
|
1370
|
+
r.push({ stem: a, options: l });
|
|
1392
1371
|
}
|
|
1393
1372
|
return r;
|
|
1394
1373
|
}
|
|
1395
|
-
function
|
|
1374
|
+
function qn(e) {
|
|
1396
1375
|
return e.replace(/^(.*?)-/, "");
|
|
1397
1376
|
}
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1377
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, dr = /^(0+)$/;
|
|
1378
|
+
function wt(e) {
|
|
1400
1379
|
var t = {};
|
|
1401
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1380
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
|
|
1402
1381
|
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)), "";
|
|
1403
1382
|
}), t;
|
|
1404
1383
|
}
|
|
1405
|
-
function
|
|
1384
|
+
function pr(e) {
|
|
1406
1385
|
switch (e) {
|
|
1407
1386
|
case "sign-auto":
|
|
1408
1387
|
return {
|
|
@@ -1442,7 +1421,7 @@ function mr(e) {
|
|
|
1442
1421
|
};
|
|
1443
1422
|
}
|
|
1444
1423
|
}
|
|
1445
|
-
function
|
|
1424
|
+
function Kn(e) {
|
|
1446
1425
|
var t;
|
|
1447
1426
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1448
1427
|
notation: "engineering"
|
|
@@ -1456,11 +1435,11 @@ function ti(e) {
|
|
|
1456
1435
|
}
|
|
1457
1436
|
return t;
|
|
1458
1437
|
}
|
|
1459
|
-
function
|
|
1460
|
-
var t = {}, r =
|
|
1438
|
+
function St(e) {
|
|
1439
|
+
var t = {}, r = pr(e);
|
|
1461
1440
|
return r || t;
|
|
1462
1441
|
}
|
|
1463
|
-
function
|
|
1442
|
+
function ei(e) {
|
|
1464
1443
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1465
1444
|
var i = n[r];
|
|
1466
1445
|
switch (i.stem) {
|
|
@@ -1484,7 +1463,7 @@ function ri(e) {
|
|
|
1484
1463
|
continue;
|
|
1485
1464
|
case "measure-unit":
|
|
1486
1465
|
case "unit":
|
|
1487
|
-
t.style = "unit", t.unit =
|
|
1466
|
+
t.style = "unit", t.unit = qn(i.options[0]);
|
|
1488
1467
|
continue;
|
|
1489
1468
|
case "compact-short":
|
|
1490
1469
|
case "K":
|
|
@@ -1495,13 +1474,13 @@ function ri(e) {
|
|
|
1495
1474
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1496
1475
|
continue;
|
|
1497
1476
|
case "scientific":
|
|
1498
|
-
t =
|
|
1499
|
-
return
|
|
1477
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1478
|
+
return _(_({}, l), St(u));
|
|
1500
1479
|
}, {}));
|
|
1501
1480
|
continue;
|
|
1502
1481
|
case "engineering":
|
|
1503
|
-
t =
|
|
1504
|
-
return
|
|
1482
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1483
|
+
return _(_({}, l), St(u));
|
|
1505
1484
|
}, {}));
|
|
1506
1485
|
continue;
|
|
1507
1486
|
case "notation-simple":
|
|
@@ -1546,8 +1525,8 @@ function ri(e) {
|
|
|
1546
1525
|
case "integer-width":
|
|
1547
1526
|
if (i.options.length > 1)
|
|
1548
1527
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1549
|
-
i.options[0].replace(
|
|
1550
|
-
if (
|
|
1528
|
+
i.options[0].replace(Jn, function(l, u, h, c, f, m) {
|
|
1529
|
+
if (u)
|
|
1551
1530
|
t.minimumIntegerDigits = h.length;
|
|
1552
1531
|
else {
|
|
1553
1532
|
if (c && f)
|
|
@@ -1563,24 +1542,24 @@ function ri(e) {
|
|
|
1563
1542
|
t.minimumIntegerDigits = i.stem.length;
|
|
1564
1543
|
continue;
|
|
1565
1544
|
}
|
|
1566
|
-
if (
|
|
1545
|
+
if (Ct.test(i.stem)) {
|
|
1567
1546
|
if (i.options.length > 1)
|
|
1568
1547
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1569
|
-
i.stem.replace(
|
|
1570
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1548
|
+
i.stem.replace(Ct, function(l, u, h, c, f, m) {
|
|
1549
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1571
1550
|
});
|
|
1572
1551
|
var o = i.options[0];
|
|
1573
|
-
o === "w" ? t =
|
|
1552
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), wt(o)));
|
|
1574
1553
|
continue;
|
|
1575
1554
|
}
|
|
1576
|
-
if (
|
|
1577
|
-
t =
|
|
1555
|
+
if (fr.test(i.stem)) {
|
|
1556
|
+
t = _(_({}, t), wt(i.stem));
|
|
1578
1557
|
continue;
|
|
1579
1558
|
}
|
|
1580
|
-
var s =
|
|
1581
|
-
s && (t =
|
|
1582
|
-
var a =
|
|
1583
|
-
a && (t =
|
|
1559
|
+
var s = pr(i.stem);
|
|
1560
|
+
s && (t = _(_({}, t), s));
|
|
1561
|
+
var a = Kn(i.stem);
|
|
1562
|
+
a && (t = _(_({}, t), a));
|
|
1584
1563
|
}
|
|
1585
1564
|
return t;
|
|
1586
1565
|
}
|
|
@@ -2999,23 +2978,23 @@ var ge = {
|
|
|
2999
2978
|
"h"
|
|
3000
2979
|
]
|
|
3001
2980
|
};
|
|
3002
|
-
function
|
|
2981
|
+
function ti(e, t) {
|
|
3003
2982
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3004
2983
|
var i = e.charAt(n);
|
|
3005
2984
|
if (i === "j") {
|
|
3006
2985
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3007
2986
|
o++, n++;
|
|
3008
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
3009
|
-
for ((
|
|
3010
|
-
r +=
|
|
2987
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ri(t);
|
|
2988
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2989
|
+
r += l;
|
|
3011
2990
|
for (; s-- > 0; )
|
|
3012
|
-
r =
|
|
2991
|
+
r = u + r;
|
|
3013
2992
|
} else
|
|
3014
2993
|
i === "J" ? r += "H" : r += i;
|
|
3015
2994
|
}
|
|
3016
2995
|
return r;
|
|
3017
2996
|
}
|
|
3018
|
-
function
|
|
2997
|
+
function ri(e) {
|
|
3019
2998
|
var t = e.hourCycle;
|
|
3020
2999
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3021
3000
|
e.hourCycles && // @ts-ignore
|
|
@@ -3037,20 +3016,20 @@ function ii(e) {
|
|
|
3037
3016
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3038
3017
|
return i[0];
|
|
3039
3018
|
}
|
|
3040
|
-
var
|
|
3019
|
+
var $e, ni = new RegExp("^".concat(cr.source, "*")), ii = new RegExp("".concat(cr.source, "*$"));
|
|
3041
3020
|
function y(e, t) {
|
|
3042
3021
|
return { start: e, end: t };
|
|
3043
3022
|
}
|
|
3044
|
-
var
|
|
3023
|
+
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, li = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
|
3045
3024
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3046
|
-
},
|
|
3025
|
+
}, Ye = !0;
|
|
3047
3026
|
try {
|
|
3048
|
-
var
|
|
3049
|
-
|
|
3027
|
+
var di = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3028
|
+
Ye = (($e = di.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
3050
3029
|
} catch {
|
|
3051
|
-
|
|
3030
|
+
Ye = !1;
|
|
3052
3031
|
}
|
|
3053
|
-
var
|
|
3032
|
+
var Tt = oi ? (
|
|
3054
3033
|
// Native
|
|
3055
3034
|
function(t, r, n) {
|
|
3056
3035
|
return t.startsWith(r, n);
|
|
@@ -3060,7 +3039,7 @@ var At = ai ? (
|
|
|
3060
3039
|
function(t, r, n) {
|
|
3061
3040
|
return t.slice(n, n + r.length) === r;
|
|
3062
3041
|
}
|
|
3063
|
-
),
|
|
3042
|
+
), qe = si ? String.fromCodePoint : (
|
|
3064
3043
|
// IE11
|
|
3065
3044
|
function() {
|
|
3066
3045
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3072,9 +3051,9 @@ var At = ai ? (
|
|
|
3072
3051
|
}
|
|
3073
3052
|
return n;
|
|
3074
3053
|
}
|
|
3075
|
-
),
|
|
3054
|
+
), Ht = (
|
|
3076
3055
|
// native
|
|
3077
|
-
|
|
3056
|
+
ai ? Object.fromEntries : (
|
|
3078
3057
|
// Ponyfill
|
|
3079
3058
|
function(t) {
|
|
3080
3059
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3084,7 +3063,7 @@ var At = ai ? (
|
|
|
3084
3063
|
return r;
|
|
3085
3064
|
}
|
|
3086
3065
|
)
|
|
3087
|
-
),
|
|
3066
|
+
), mr = li ? (
|
|
3088
3067
|
// Native
|
|
3089
3068
|
function(t, r) {
|
|
3090
3069
|
return t.codePointAt(r);
|
|
@@ -3098,7 +3077,7 @@ var At = ai ? (
|
|
|
3098
3077
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3099
3078
|
}
|
|
3100
3079
|
}
|
|
3101
|
-
),
|
|
3080
|
+
), pi = ui ? (
|
|
3102
3081
|
// Native
|
|
3103
3082
|
function(t) {
|
|
3104
3083
|
return t.trimStart();
|
|
@@ -3106,9 +3085,9 @@ var At = ai ? (
|
|
|
3106
3085
|
) : (
|
|
3107
3086
|
// Ponyfill
|
|
3108
3087
|
function(t) {
|
|
3109
|
-
return t.replace(
|
|
3088
|
+
return t.replace(ni, "");
|
|
3110
3089
|
}
|
|
3111
|
-
),
|
|
3090
|
+
), mi = hi ? (
|
|
3112
3091
|
// Native
|
|
3113
3092
|
function(t) {
|
|
3114
3093
|
return t.trimEnd();
|
|
@@ -3116,32 +3095,32 @@ var At = ai ? (
|
|
|
3116
3095
|
) : (
|
|
3117
3096
|
// Ponyfill
|
|
3118
3097
|
function(t) {
|
|
3119
|
-
return t.replace(
|
|
3098
|
+
return t.replace(ii, "");
|
|
3120
3099
|
}
|
|
3121
3100
|
);
|
|
3122
|
-
function
|
|
3101
|
+
function br(e, t) {
|
|
3123
3102
|
return new RegExp(e, t);
|
|
3124
3103
|
}
|
|
3125
|
-
var
|
|
3126
|
-
if (
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3104
|
+
var Je;
|
|
3105
|
+
if (Ye) {
|
|
3106
|
+
var At = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3107
|
+
Je = function(t, r) {
|
|
3129
3108
|
var n;
|
|
3130
|
-
|
|
3131
|
-
var i =
|
|
3109
|
+
At.lastIndex = r;
|
|
3110
|
+
var i = At.exec(t);
|
|
3132
3111
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3133
3112
|
};
|
|
3134
3113
|
} else
|
|
3135
|
-
|
|
3114
|
+
Je = function(t, r) {
|
|
3136
3115
|
for (var n = []; ; ) {
|
|
3137
|
-
var i =
|
|
3138
|
-
if (i === void 0 ||
|
|
3116
|
+
var i = mr(t, r);
|
|
3117
|
+
if (i === void 0 || gr(i) || yi(i))
|
|
3139
3118
|
break;
|
|
3140
3119
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3141
3120
|
}
|
|
3142
|
-
return
|
|
3121
|
+
return qe.apply(void 0, n);
|
|
3143
3122
|
};
|
|
3144
|
-
var
|
|
3123
|
+
var bi = (
|
|
3145
3124
|
/** @class */
|
|
3146
3125
|
function() {
|
|
3147
3126
|
function e(t, r) {
|
|
@@ -3165,14 +3144,14 @@ var vi = (
|
|
|
3165
3144
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3166
3145
|
var a = this.clonePosition();
|
|
3167
3146
|
this.bump(), i.push({
|
|
3168
|
-
type:
|
|
3147
|
+
type: C.pound,
|
|
3169
3148
|
location: y(a, this.clonePosition())
|
|
3170
3149
|
});
|
|
3171
3150
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3172
3151
|
if (n)
|
|
3173
3152
|
break;
|
|
3174
3153
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3175
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3154
|
+
} else if (o === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3176
3155
|
var s = this.parseTag(t, r);
|
|
3177
3156
|
if (s.err)
|
|
3178
3157
|
return s;
|
|
@@ -3193,7 +3172,7 @@ var vi = (
|
|
|
3193
3172
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3194
3173
|
return {
|
|
3195
3174
|
val: {
|
|
3196
|
-
type:
|
|
3175
|
+
type: C.literal,
|
|
3197
3176
|
value: "<".concat(i, "/>"),
|
|
3198
3177
|
location: y(n, this.clonePosition())
|
|
3199
3178
|
},
|
|
@@ -3205,12 +3184,12 @@ var vi = (
|
|
|
3205
3184
|
return o;
|
|
3206
3185
|
var s = o.val, a = this.clonePosition();
|
|
3207
3186
|
if (this.bumpIf("</")) {
|
|
3208
|
-
if (this.isEOF() || !
|
|
3187
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3209
3188
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
|
3210
|
-
var
|
|
3211
|
-
return i !==
|
|
3189
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3190
|
+
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3212
3191
|
val: {
|
|
3213
|
-
type:
|
|
3192
|
+
type: C.tag,
|
|
3214
3193
|
value: i,
|
|
3215
3194
|
children: s,
|
|
3216
3195
|
location: y(n, this.clonePosition())
|
|
@@ -3223,7 +3202,7 @@ var vi = (
|
|
|
3223
3202
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
|
3224
3203
|
}, e.prototype.parseTagName = function() {
|
|
3225
3204
|
var t = this.offset();
|
|
3226
|
-
for (this.bump(); !this.isEOF() &&
|
|
3205
|
+
for (this.bump(); !this.isEOF() && vi(this.char()); )
|
|
3227
3206
|
this.bump();
|
|
3228
3207
|
return this.message.slice(t, this.offset());
|
|
3229
3208
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3245,14 +3224,14 @@ var vi = (
|
|
|
3245
3224
|
}
|
|
3246
3225
|
break;
|
|
3247
3226
|
}
|
|
3248
|
-
var
|
|
3227
|
+
var l = y(n, this.clonePosition());
|
|
3249
3228
|
return {
|
|
3250
|
-
val: { type:
|
|
3229
|
+
val: { type: C.literal, value: i, location: l },
|
|
3251
3230
|
err: null
|
|
3252
3231
|
};
|
|
3253
3232
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3254
3233
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3255
|
-
!
|
|
3234
|
+
!gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3256
3235
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3257
3236
|
if (this.isEOF() || this.char() !== 39)
|
|
3258
3237
|
return null;
|
|
@@ -3286,12 +3265,12 @@ var vi = (
|
|
|
3286
3265
|
r.push(n);
|
|
3287
3266
|
this.bump();
|
|
3288
3267
|
}
|
|
3289
|
-
return
|
|
3268
|
+
return qe.apply(void 0, r);
|
|
3290
3269
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3291
3270
|
if (this.isEOF())
|
|
3292
3271
|
return null;
|
|
3293
3272
|
var n = this.char();
|
|
3294
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3273
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3295
3274
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3296
3275
|
var n = this.clonePosition();
|
|
3297
3276
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3307,7 +3286,7 @@ var vi = (
|
|
|
3307
3286
|
case 125:
|
|
3308
3287
|
return this.bump(), {
|
|
3309
3288
|
val: {
|
|
3310
|
-
type:
|
|
3289
|
+
type: C.argument,
|
|
3311
3290
|
// value does not include the opening and closing braces.
|
|
3312
3291
|
value: i,
|
|
3313
3292
|
location: y(n, this.clonePosition())
|
|
@@ -3320,54 +3299,54 @@ var vi = (
|
|
|
3320
3299
|
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3321
3300
|
}
|
|
3322
3301
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3323
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3302
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
3324
3303
|
this.bumpTo(i);
|
|
3325
3304
|
var o = this.clonePosition(), s = y(t, o);
|
|
3326
3305
|
return { value: n, location: s };
|
|
3327
3306
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3328
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3307
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3329
3308
|
switch (a) {
|
|
3330
3309
|
case "":
|
|
3331
|
-
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s,
|
|
3310
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
3332
3311
|
case "number":
|
|
3333
3312
|
case "date":
|
|
3334
3313
|
case "time": {
|
|
3335
3314
|
this.bumpSpace();
|
|
3336
|
-
var
|
|
3315
|
+
var u = null;
|
|
3337
3316
|
if (this.bumpIf(",")) {
|
|
3338
3317
|
this.bumpSpace();
|
|
3339
3318
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3340
3319
|
if (c.err)
|
|
3341
3320
|
return c;
|
|
3342
|
-
var f =
|
|
3321
|
+
var f = mi(c.val);
|
|
3343
3322
|
if (f.length === 0)
|
|
3344
3323
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3345
3324
|
var m = y(h, this.clonePosition());
|
|
3346
|
-
|
|
3325
|
+
u = { style: f, styleLocation: m };
|
|
3347
3326
|
}
|
|
3348
|
-
var
|
|
3349
|
-
if (
|
|
3350
|
-
return
|
|
3327
|
+
var p = this.tryParseArgumentClose(i);
|
|
3328
|
+
if (p.err)
|
|
3329
|
+
return p;
|
|
3351
3330
|
var b = y(i, this.clonePosition());
|
|
3352
|
-
if (
|
|
3353
|
-
var T =
|
|
3331
|
+
if (u && Tt(u?.style, "::", 0)) {
|
|
3332
|
+
var T = pi(u.style.slice(2));
|
|
3354
3333
|
if (a === "number") {
|
|
3355
|
-
var c = this.parseNumberSkeletonFromString(T,
|
|
3334
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3356
3335
|
return c.err ? c : {
|
|
3357
|
-
val: { type:
|
|
3336
|
+
val: { type: C.number, value: n, location: b, style: c.val },
|
|
3358
3337
|
err: null
|
|
3359
3338
|
};
|
|
3360
3339
|
} else {
|
|
3361
3340
|
if (T.length === 0)
|
|
3362
3341
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3363
3342
|
var L = T;
|
|
3364
|
-
this.locale && (L =
|
|
3343
|
+
this.locale && (L = ti(T, this.locale));
|
|
3365
3344
|
var f = {
|
|
3366
|
-
type:
|
|
3345
|
+
type: ne.dateTime,
|
|
3367
3346
|
pattern: L,
|
|
3368
|
-
location:
|
|
3369
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3370
|
-
}, P = a === "date" ?
|
|
3347
|
+
location: u.styleLocation,
|
|
3348
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(L) : {}
|
|
3349
|
+
}, P = a === "date" ? C.date : C.time;
|
|
3371
3350
|
return {
|
|
3372
3351
|
val: { type: P, value: n, location: b, style: f },
|
|
3373
3352
|
err: null
|
|
@@ -3376,10 +3355,10 @@ var vi = (
|
|
|
3376
3355
|
}
|
|
3377
3356
|
return {
|
|
3378
3357
|
val: {
|
|
3379
|
-
type: a === "number" ?
|
|
3358
|
+
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
3380
3359
|
value: n,
|
|
3381
3360
|
location: b,
|
|
3382
|
-
style: (o =
|
|
3361
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3383
3362
|
},
|
|
3384
3363
|
err: null
|
|
3385
3364
|
};
|
|
@@ -3389,38 +3368,38 @@ var vi = (
|
|
|
3389
3368
|
case "select": {
|
|
3390
3369
|
var A = this.clonePosition();
|
|
3391
3370
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3392
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A,
|
|
3371
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, _({}, A)));
|
|
3393
3372
|
this.bumpSpace();
|
|
3394
|
-
var
|
|
3395
|
-
if (a !== "select" &&
|
|
3373
|
+
var M = this.parseIdentifierIfPossible(), w = 0;
|
|
3374
|
+
if (a !== "select" && M.value === "offset") {
|
|
3396
3375
|
if (!this.bumpIf(":"))
|
|
3397
3376
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3398
3377
|
this.bumpSpace();
|
|
3399
3378
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3400
3379
|
if (c.err)
|
|
3401
3380
|
return c;
|
|
3402
|
-
this.bumpSpace(),
|
|
3381
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), w = c.val;
|
|
3403
3382
|
}
|
|
3404
|
-
var N = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3383
|
+
var N = this.tryParsePluralOrSelectOptions(t, a, r, M);
|
|
3405
3384
|
if (N.err)
|
|
3406
3385
|
return N;
|
|
3407
|
-
var
|
|
3408
|
-
if (
|
|
3409
|
-
return
|
|
3386
|
+
var p = this.tryParseArgumentClose(i);
|
|
3387
|
+
if (p.err)
|
|
3388
|
+
return p;
|
|
3410
3389
|
var g = y(i, this.clonePosition());
|
|
3411
3390
|
return a === "select" ? {
|
|
3412
3391
|
val: {
|
|
3413
|
-
type:
|
|
3392
|
+
type: C.select,
|
|
3414
3393
|
value: n,
|
|
3415
|
-
options:
|
|
3394
|
+
options: Ht(N.val),
|
|
3416
3395
|
location: g
|
|
3417
3396
|
},
|
|
3418
3397
|
err: null
|
|
3419
3398
|
} : {
|
|
3420
3399
|
val: {
|
|
3421
|
-
type:
|
|
3400
|
+
type: C.plural,
|
|
3422
3401
|
value: n,
|
|
3423
|
-
options:
|
|
3402
|
+
options: Ht(N.val),
|
|
3424
3403
|
offset: w,
|
|
3425
3404
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3426
3405
|
location: g
|
|
@@ -3429,7 +3408,7 @@ var vi = (
|
|
|
3429
3408
|
};
|
|
3430
3409
|
}
|
|
3431
3410
|
default:
|
|
3432
|
-
return this.error(v.INVALID_ARGUMENT_TYPE, y(s,
|
|
3411
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3433
3412
|
}
|
|
3434
3413
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3435
3414
|
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3471,50 +3450,50 @@ var vi = (
|
|
|
3471
3450
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3472
3451
|
var n = [];
|
|
3473
3452
|
try {
|
|
3474
|
-
n =
|
|
3453
|
+
n = Yn(t);
|
|
3475
3454
|
} catch {
|
|
3476
3455
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3477
3456
|
}
|
|
3478
3457
|
return {
|
|
3479
3458
|
val: {
|
|
3480
|
-
type:
|
|
3459
|
+
type: ne.number,
|
|
3481
3460
|
tokens: n,
|
|
3482
3461
|
location: r,
|
|
3483
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3462
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
|
3484
3463
|
},
|
|
3485
3464
|
err: null
|
|
3486
3465
|
};
|
|
3487
3466
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3488
|
-
for (var o, s = !1, a = [],
|
|
3489
|
-
if (
|
|
3467
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3468
|
+
if (u.length === 0) {
|
|
3490
3469
|
var c = this.clonePosition();
|
|
3491
3470
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3492
3471
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3493
3472
|
if (f.err)
|
|
3494
3473
|
return f;
|
|
3495
|
-
h = y(c, this.clonePosition()),
|
|
3474
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3496
3475
|
} else
|
|
3497
3476
|
break;
|
|
3498
3477
|
}
|
|
3499
|
-
if (
|
|
3478
|
+
if (l.has(u))
|
|
3500
3479
|
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3501
|
-
|
|
3480
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3502
3481
|
var m = this.clonePosition();
|
|
3503
3482
|
if (!this.bumpIf("{"))
|
|
3504
3483
|
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3505
|
-
var
|
|
3506
|
-
if (
|
|
3507
|
-
return
|
|
3484
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3485
|
+
if (p.err)
|
|
3486
|
+
return p;
|
|
3508
3487
|
var b = this.tryParseArgumentClose(m);
|
|
3509
3488
|
if (b.err)
|
|
3510
3489
|
return b;
|
|
3511
3490
|
a.push([
|
|
3512
|
-
|
|
3491
|
+
u,
|
|
3513
3492
|
{
|
|
3514
|
-
value:
|
|
3493
|
+
value: p.val,
|
|
3515
3494
|
location: y(m, this.clonePosition())
|
|
3516
3495
|
}
|
|
3517
|
-
]),
|
|
3496
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3518
3497
|
}
|
|
3519
3498
|
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3520
3499
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3527,8 +3506,8 @@ var vi = (
|
|
|
3527
3506
|
else
|
|
3528
3507
|
break;
|
|
3529
3508
|
}
|
|
3530
|
-
var
|
|
3531
|
-
return o ? (s *= n,
|
|
3509
|
+
var l = y(i, this.clonePosition());
|
|
3510
|
+
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3532
3511
|
}, e.prototype.offset = function() {
|
|
3533
3512
|
return this.position.offset;
|
|
3534
3513
|
}, e.prototype.isEOF = function() {
|
|
@@ -3543,7 +3522,7 @@ var vi = (
|
|
|
3543
3522
|
var t = this.position.offset;
|
|
3544
3523
|
if (t >= this.message.length)
|
|
3545
3524
|
throw Error("out of bound");
|
|
3546
|
-
var r =
|
|
3525
|
+
var r = mr(this.message, t);
|
|
3547
3526
|
if (r === void 0)
|
|
3548
3527
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3549
3528
|
return r;
|
|
@@ -3562,7 +3541,7 @@ var vi = (
|
|
|
3562
3541
|
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);
|
|
3563
3542
|
}
|
|
3564
3543
|
}, e.prototype.bumpIf = function(t) {
|
|
3565
|
-
if (
|
|
3544
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3566
3545
|
for (var r = 0; r < t.length; r++)
|
|
3567
3546
|
this.bump();
|
|
3568
3547
|
return !0;
|
|
@@ -3584,7 +3563,7 @@ var vi = (
|
|
|
3584
3563
|
break;
|
|
3585
3564
|
}
|
|
3586
3565
|
}, e.prototype.bumpSpace = function() {
|
|
3587
|
-
for (; !this.isEOF() &&
|
|
3566
|
+
for (; !this.isEOF() && gr(this.char()); )
|
|
3588
3567
|
this.bump();
|
|
3589
3568
|
}, e.prototype.peek = function() {
|
|
3590
3569
|
if (this.isEOF())
|
|
@@ -3594,47 +3573,47 @@ var vi = (
|
|
|
3594
3573
|
}, e;
|
|
3595
3574
|
}()
|
|
3596
3575
|
);
|
|
3597
|
-
function
|
|
3576
|
+
function Ke(e) {
|
|
3598
3577
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3599
3578
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3579
|
+
function gi(e) {
|
|
3580
|
+
return Ke(e) || e === 47;
|
|
3602
3581
|
}
|
|
3603
|
-
function
|
|
3582
|
+
function vi(e) {
|
|
3604
3583
|
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;
|
|
3605
3584
|
}
|
|
3606
|
-
function
|
|
3585
|
+
function gr(e) {
|
|
3607
3586
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3608
3587
|
}
|
|
3609
|
-
function
|
|
3588
|
+
function yi(e) {
|
|
3610
3589
|
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;
|
|
3611
3590
|
}
|
|
3612
|
-
function
|
|
3591
|
+
function et(e) {
|
|
3613
3592
|
e.forEach(function(t) {
|
|
3614
|
-
if (delete t.location,
|
|
3593
|
+
if (delete t.location, ar(t) || lr(t))
|
|
3615
3594
|
for (var r in t.options)
|
|
3616
|
-
delete t.options[r].location,
|
|
3595
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3617
3596
|
else
|
|
3618
|
-
|
|
3597
|
+
ir(t) && hr(t.style) || (or(t) || sr(t)) && Qe(t.style) ? delete t.style.location : ur(t) && et(t.children);
|
|
3619
3598
|
});
|
|
3620
3599
|
}
|
|
3621
|
-
function
|
|
3622
|
-
t === void 0 && (t = {}), t =
|
|
3623
|
-
var r = new
|
|
3600
|
+
function _i(e, t) {
|
|
3601
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3602
|
+
var r = new bi(e, t).parse();
|
|
3624
3603
|
if (r.err) {
|
|
3625
3604
|
var n = SyntaxError(v[r.err.kind]);
|
|
3626
3605
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3627
3606
|
}
|
|
3628
|
-
return t?.captureLocation ||
|
|
3607
|
+
return t?.captureLocation || et(r.val), r.val;
|
|
3629
3608
|
}
|
|
3630
|
-
var
|
|
3609
|
+
var ie;
|
|
3631
3610
|
(function(e) {
|
|
3632
3611
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3633
|
-
})(
|
|
3634
|
-
var
|
|
3612
|
+
})(ie || (ie = {}));
|
|
3613
|
+
var Ae = (
|
|
3635
3614
|
/** @class */
|
|
3636
3615
|
function(e) {
|
|
3637
|
-
|
|
3616
|
+
j(t, e);
|
|
3638
3617
|
function t(r, n, i) {
|
|
3639
3618
|
var o = e.call(this, r) || this;
|
|
3640
3619
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3643,123 +3622,123 @@ var Be = (
|
|
|
3643
3622
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3644
3623
|
}, t;
|
|
3645
3624
|
}(Error)
|
|
3646
|
-
),
|
|
3625
|
+
), It = (
|
|
3647
3626
|
/** @class */
|
|
3648
3627
|
function(e) {
|
|
3649
|
-
|
|
3628
|
+
j(t, e);
|
|
3650
3629
|
function t(r, n, i, o) {
|
|
3651
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3630
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3652
3631
|
}
|
|
3653
3632
|
return t;
|
|
3654
|
-
}(
|
|
3655
|
-
),
|
|
3633
|
+
}(Ae)
|
|
3634
|
+
), xi = (
|
|
3656
3635
|
/** @class */
|
|
3657
3636
|
function(e) {
|
|
3658
|
-
|
|
3637
|
+
j(t, e);
|
|
3659
3638
|
function t(r, n, i) {
|
|
3660
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3639
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3661
3640
|
}
|
|
3662
3641
|
return t;
|
|
3663
|
-
}(
|
|
3664
|
-
),
|
|
3642
|
+
}(Ae)
|
|
3643
|
+
), Ei = (
|
|
3665
3644
|
/** @class */
|
|
3666
3645
|
function(e) {
|
|
3667
|
-
|
|
3646
|
+
j(t, e);
|
|
3668
3647
|
function t(r, n) {
|
|
3669
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3648
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3670
3649
|
}
|
|
3671
3650
|
return t;
|
|
3672
|
-
}(
|
|
3673
|
-
),
|
|
3651
|
+
}(Ae)
|
|
3652
|
+
), O;
|
|
3674
3653
|
(function(e) {
|
|
3675
3654
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3676
|
-
})(
|
|
3677
|
-
function
|
|
3655
|
+
})(O || (O = {}));
|
|
3656
|
+
function Ci(e) {
|
|
3678
3657
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3679
3658
|
var n = t[t.length - 1];
|
|
3680
|
-
return !n || n.type !==
|
|
3659
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3681
3660
|
}, []);
|
|
3682
3661
|
}
|
|
3683
|
-
function
|
|
3662
|
+
function wi(e) {
|
|
3684
3663
|
return typeof e == "function";
|
|
3685
3664
|
}
|
|
3686
3665
|
function _e(e, t, r, n, i, o, s) {
|
|
3687
|
-
if (e.length === 1 &&
|
|
3666
|
+
if (e.length === 1 && Et(e[0]))
|
|
3688
3667
|
return [
|
|
3689
3668
|
{
|
|
3690
|
-
type:
|
|
3669
|
+
type: O.literal,
|
|
3691
3670
|
value: e[0].value
|
|
3692
3671
|
}
|
|
3693
3672
|
];
|
|
3694
|
-
for (var a = [],
|
|
3695
|
-
var h = l
|
|
3696
|
-
if (
|
|
3673
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3674
|
+
var h = u[l];
|
|
3675
|
+
if (Et(h)) {
|
|
3697
3676
|
a.push({
|
|
3698
|
-
type:
|
|
3677
|
+
type: O.literal,
|
|
3699
3678
|
value: h.value
|
|
3700
3679
|
});
|
|
3701
3680
|
continue;
|
|
3702
3681
|
}
|
|
3703
|
-
if (
|
|
3682
|
+
if (Xn(h)) {
|
|
3704
3683
|
typeof o == "number" && a.push({
|
|
3705
|
-
type:
|
|
3684
|
+
type: O.literal,
|
|
3706
3685
|
value: r.getNumberFormat(t).format(o)
|
|
3707
3686
|
});
|
|
3708
3687
|
continue;
|
|
3709
3688
|
}
|
|
3710
3689
|
var c = h.value;
|
|
3711
3690
|
if (!(i && c in i))
|
|
3712
|
-
throw new
|
|
3691
|
+
throw new Ei(c, s);
|
|
3713
3692
|
var f = i[c];
|
|
3714
|
-
if (
|
|
3693
|
+
if (Wn(h)) {
|
|
3715
3694
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3716
|
-
type: typeof f == "string" ?
|
|
3695
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3717
3696
|
value: f
|
|
3718
3697
|
});
|
|
3719
3698
|
continue;
|
|
3720
3699
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3700
|
+
if (or(h)) {
|
|
3701
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3723
3702
|
a.push({
|
|
3724
|
-
type:
|
|
3703
|
+
type: O.literal,
|
|
3725
3704
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3726
3705
|
});
|
|
3727
3706
|
continue;
|
|
3728
3707
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3708
|
+
if (sr(h)) {
|
|
3709
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3731
3710
|
a.push({
|
|
3732
|
-
type:
|
|
3711
|
+
type: O.literal,
|
|
3733
3712
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3734
3713
|
});
|
|
3735
3714
|
continue;
|
|
3736
3715
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3716
|
+
if (ir(h)) {
|
|
3717
|
+
var m = typeof h.style == "string" ? n.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
|
|
3739
3718
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3740
|
-
type:
|
|
3719
|
+
type: O.literal,
|
|
3741
3720
|
value: r.getNumberFormat(t, m).format(f)
|
|
3742
3721
|
});
|
|
3743
3722
|
continue;
|
|
3744
3723
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var
|
|
3747
|
-
if (!
|
|
3748
|
-
throw new
|
|
3749
|
-
var L = _e(
|
|
3724
|
+
if (ur(h)) {
|
|
3725
|
+
var p = h.children, b = h.value, T = i[b];
|
|
3726
|
+
if (!wi(T))
|
|
3727
|
+
throw new xi(b, "function", s);
|
|
3728
|
+
var L = _e(p, t, r, n, i, o), P = T(L.map(function(w) {
|
|
3750
3729
|
return w.value;
|
|
3751
3730
|
}));
|
|
3752
3731
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3753
3732
|
return {
|
|
3754
|
-
type: typeof w == "string" ?
|
|
3733
|
+
type: typeof w == "string" ? O.literal : O.object,
|
|
3755
3734
|
value: w
|
|
3756
3735
|
};
|
|
3757
3736
|
}));
|
|
3758
3737
|
}
|
|
3759
|
-
if (
|
|
3738
|
+
if (ar(h)) {
|
|
3760
3739
|
var A = h.options[f] || h.options.other;
|
|
3761
3740
|
if (!A)
|
|
3762
|
-
throw new
|
|
3741
|
+
throw new It(h.value, f, Object.keys(h.options), s);
|
|
3763
3742
|
a.push.apply(a, _e(A.value, t, r, n, i));
|
|
3764
3743
|
continue;
|
|
3765
3744
|
}
|
|
@@ -3767,31 +3746,31 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3767
3746
|
var A = h.options["=".concat(f)];
|
|
3768
3747
|
if (!A) {
|
|
3769
3748
|
if (!Intl.PluralRules)
|
|
3770
|
-
throw new
|
|
3749
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3771
3750
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3772
|
-
`,
|
|
3773
|
-
var
|
|
3774
|
-
A = h.options[
|
|
3751
|
+
`, ie.MISSING_INTL_API, s);
|
|
3752
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3753
|
+
A = h.options[M] || h.options.other;
|
|
3775
3754
|
}
|
|
3776
3755
|
if (!A)
|
|
3777
|
-
throw new
|
|
3756
|
+
throw new It(h.value, f, Object.keys(h.options), s);
|
|
3778
3757
|
a.push.apply(a, _e(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3779
3758
|
continue;
|
|
3780
3759
|
}
|
|
3781
3760
|
}
|
|
3782
|
-
return
|
|
3761
|
+
return Ci(a);
|
|
3783
3762
|
}
|
|
3784
|
-
function
|
|
3785
|
-
return t ?
|
|
3786
|
-
return r[n] =
|
|
3763
|
+
function Si(e, t) {
|
|
3764
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3765
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3787
3766
|
}, {})) : e;
|
|
3788
3767
|
}
|
|
3789
|
-
function
|
|
3768
|
+
function Ti(e, t) {
|
|
3790
3769
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3791
|
-
return r[n] =
|
|
3792
|
-
},
|
|
3770
|
+
return r[n] = Si(e[n], t[n]), r;
|
|
3771
|
+
}, _({}, e)) : e;
|
|
3793
3772
|
}
|
|
3794
|
-
function
|
|
3773
|
+
function Ge(e) {
|
|
3795
3774
|
return {
|
|
3796
3775
|
create: function() {
|
|
3797
3776
|
return {
|
|
@@ -3805,39 +3784,39 @@ function Fe(e) {
|
|
|
3805
3784
|
}
|
|
3806
3785
|
};
|
|
3807
3786
|
}
|
|
3808
|
-
function
|
|
3787
|
+
function Hi(e) {
|
|
3809
3788
|
return e === void 0 && (e = {
|
|
3810
3789
|
number: {},
|
|
3811
3790
|
dateTime: {},
|
|
3812
3791
|
pluralRules: {}
|
|
3813
3792
|
}), {
|
|
3814
|
-
getNumberFormat:
|
|
3793
|
+
getNumberFormat: Ue(function() {
|
|
3815
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3795
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3796
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3818
3797
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3798
|
+
cache: Ge(e.number),
|
|
3799
|
+
strategy: De.variadic
|
|
3821
3800
|
}),
|
|
3822
|
-
getDateTimeFormat:
|
|
3801
|
+
getDateTimeFormat: Ue(function() {
|
|
3823
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3803
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3804
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3826
3805
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3806
|
+
cache: Ge(e.dateTime),
|
|
3807
|
+
strategy: De.variadic
|
|
3829
3808
|
}),
|
|
3830
|
-
getPluralRules:
|
|
3809
|
+
getPluralRules: Ue(function() {
|
|
3831
3810
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3832
3811
|
r[n] = arguments[n];
|
|
3833
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3812
|
+
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3834
3813
|
}, {
|
|
3835
|
-
cache:
|
|
3836
|
-
strategy:
|
|
3814
|
+
cache: Ge(e.pluralRules),
|
|
3815
|
+
strategy: De.variadic
|
|
3837
3816
|
})
|
|
3838
3817
|
};
|
|
3839
3818
|
}
|
|
3840
|
-
var
|
|
3819
|
+
var Ai = (
|
|
3841
3820
|
/** @class */
|
|
3842
3821
|
function() {
|
|
3843
3822
|
function e(t, r, n, i) {
|
|
@@ -3847,20 +3826,20 @@ var Bi = (
|
|
|
3847
3826
|
number: {},
|
|
3848
3827
|
dateTime: {},
|
|
3849
3828
|
pluralRules: {}
|
|
3850
|
-
}, this.format = function(
|
|
3851
|
-
var
|
|
3852
|
-
if (
|
|
3853
|
-
return
|
|
3854
|
-
var h =
|
|
3855
|
-
return !c.length || f.type !==
|
|
3829
|
+
}, this.format = function(l) {
|
|
3830
|
+
var u = o.formatToParts(l);
|
|
3831
|
+
if (u.length === 1)
|
|
3832
|
+
return u[0].value;
|
|
3833
|
+
var h = u.reduce(function(c, f) {
|
|
3834
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3856
3835
|
}, []);
|
|
3857
3836
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3858
|
-
}, this.formatToParts = function(
|
|
3859
|
-
return _e(o.ast, o.locales, o.formatters, o.formats,
|
|
3837
|
+
}, this.formatToParts = function(l) {
|
|
3838
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3860
3839
|
}, this.resolvedOptions = function() {
|
|
3861
|
-
var
|
|
3840
|
+
var l;
|
|
3862
3841
|
return {
|
|
3863
|
-
locale: ((
|
|
3842
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3864
3843
|
};
|
|
3865
3844
|
}, this.getAst = function() {
|
|
3866
3845
|
return o.ast;
|
|
@@ -3869,13 +3848,13 @@ var Bi = (
|
|
|
3869
3848
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3870
3849
|
var s = i || {};
|
|
3871
3850
|
s.formatters;
|
|
3872
|
-
var a =
|
|
3873
|
-
this.ast = e.__parse(t,
|
|
3851
|
+
var a = an(s, ["formatters"]);
|
|
3852
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3874
3853
|
} else
|
|
3875
3854
|
this.ast = t;
|
|
3876
3855
|
if (!Array.isArray(this.ast))
|
|
3877
3856
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3878
|
-
this.formats =
|
|
3857
|
+
this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
|
|
3879
3858
|
}
|
|
3880
3859
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3881
3860
|
get: function() {
|
|
@@ -3888,7 +3867,7 @@ var Bi = (
|
|
|
3888
3867
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3889
3868
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3890
3869
|
}
|
|
3891
|
-
}, e.__parse =
|
|
3870
|
+
}, e.__parse = _i, e.formats = {
|
|
3892
3871
|
number: {
|
|
3893
3872
|
integer: {
|
|
3894
3873
|
maximumFractionDigits: 0
|
|
@@ -3949,7 +3928,7 @@ var Bi = (
|
|
|
3949
3928
|
}, e;
|
|
3950
3929
|
}()
|
|
3951
3930
|
);
|
|
3952
|
-
function
|
|
3931
|
+
function Ii(e, t) {
|
|
3953
3932
|
if (t == null)
|
|
3954
3933
|
return;
|
|
3955
3934
|
if (t in e)
|
|
@@ -3970,92 +3949,92 @@ function Pi(e, t) {
|
|
|
3970
3949
|
n = void 0;
|
|
3971
3950
|
return n;
|
|
3972
3951
|
}
|
|
3973
|
-
const V = {},
|
|
3952
|
+
const V = {}, Bi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), vr = (e, t) => {
|
|
3974
3953
|
if (t == null)
|
|
3975
3954
|
return;
|
|
3976
3955
|
if (t in V && e in V[t])
|
|
3977
3956
|
return V[t][e];
|
|
3978
|
-
const r =
|
|
3957
|
+
const r = Ie(t);
|
|
3979
3958
|
for (let n = 0; n < r.length; n++) {
|
|
3980
|
-
const i = r[n], o =
|
|
3959
|
+
const i = r[n], o = Mi(i, e);
|
|
3981
3960
|
if (o)
|
|
3982
|
-
return
|
|
3961
|
+
return Bi(e, t, o);
|
|
3983
3962
|
}
|
|
3984
3963
|
};
|
|
3985
|
-
let
|
|
3986
|
-
const
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3964
|
+
let at;
|
|
3965
|
+
const ae = He({});
|
|
3966
|
+
function Pi(e) {
|
|
3967
|
+
return at[e] || null;
|
|
3989
3968
|
}
|
|
3990
|
-
function
|
|
3991
|
-
return e in
|
|
3969
|
+
function yr(e) {
|
|
3970
|
+
return e in at;
|
|
3992
3971
|
}
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
3972
|
+
function Mi(e, t) {
|
|
3973
|
+
if (!yr(e))
|
|
3995
3974
|
return null;
|
|
3996
|
-
const r =
|
|
3997
|
-
return
|
|
3975
|
+
const r = Pi(e);
|
|
3976
|
+
return Ii(r, t);
|
|
3998
3977
|
}
|
|
3999
|
-
function
|
|
3978
|
+
function Oi(e) {
|
|
4000
3979
|
if (e == null)
|
|
4001
3980
|
return;
|
|
4002
|
-
const t =
|
|
3981
|
+
const t = Ie(e);
|
|
4003
3982
|
for (let r = 0; r < t.length; r++) {
|
|
4004
3983
|
const n = t[r];
|
|
4005
|
-
if (
|
|
3984
|
+
if (yr(n))
|
|
4006
3985
|
return n;
|
|
4007
3986
|
}
|
|
4008
3987
|
}
|
|
4009
|
-
function
|
|
4010
|
-
delete V[e],
|
|
3988
|
+
function _r(e, ...t) {
|
|
3989
|
+
delete V[e], ae.update((r) => (r[e] = Dn.all([r[e] || {}, ...t]), r));
|
|
4011
3990
|
}
|
|
4012
|
-
|
|
4013
|
-
[
|
|
3991
|
+
se(
|
|
3992
|
+
[ae],
|
|
4014
3993
|
([e]) => Object.keys(e)
|
|
4015
3994
|
);
|
|
4016
|
-
|
|
3995
|
+
ae.subscribe((e) => at = e);
|
|
4017
3996
|
const xe = {};
|
|
4018
|
-
function
|
|
3997
|
+
function Li(e, t) {
|
|
4019
3998
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4020
3999
|
}
|
|
4021
|
-
function
|
|
4000
|
+
function xr(e) {
|
|
4022
4001
|
return xe[e];
|
|
4023
4002
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return
|
|
4026
|
-
const r =
|
|
4003
|
+
function Ni(e) {
|
|
4004
|
+
return Ie(e).map((t) => {
|
|
4005
|
+
const r = xr(t);
|
|
4027
4006
|
return [t, r ? [...r] : []];
|
|
4028
4007
|
}).filter(([, t]) => t.length > 0);
|
|
4029
4008
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return e == null ? !1 :
|
|
4009
|
+
function tt(e) {
|
|
4010
|
+
return e == null ? !1 : Ie(e).some(
|
|
4032
4011
|
(t) => {
|
|
4033
4012
|
var r;
|
|
4034
|
-
return (r =
|
|
4013
|
+
return (r = xr(t)) == null ? void 0 : r.size;
|
|
4035
4014
|
}
|
|
4036
4015
|
);
|
|
4037
4016
|
}
|
|
4038
|
-
function
|
|
4017
|
+
function Ri(e, t) {
|
|
4039
4018
|
return Promise.all(
|
|
4040
|
-
t.map((n) => (
|
|
4041
|
-
).then((n) =>
|
|
4019
|
+
t.map((n) => (Li(e, n), n().then((i) => i.default || i)))
|
|
4020
|
+
).then((n) => _r(e, ...n));
|
|
4042
4021
|
}
|
|
4043
4022
|
const ue = {};
|
|
4044
|
-
function
|
|
4045
|
-
if (!
|
|
4023
|
+
function Er(e) {
|
|
4024
|
+
if (!tt(e))
|
|
4046
4025
|
return e in ue ? ue[e] : Promise.resolve();
|
|
4047
|
-
const t =
|
|
4026
|
+
const t = Ni(e);
|
|
4048
4027
|
return ue[e] = Promise.all(
|
|
4049
4028
|
t.map(
|
|
4050
|
-
([r, n]) =>
|
|
4029
|
+
([r, n]) => Ri(r, n)
|
|
4051
4030
|
)
|
|
4052
4031
|
).then(() => {
|
|
4053
|
-
if (
|
|
4054
|
-
return
|
|
4032
|
+
if (tt(e))
|
|
4033
|
+
return Er(e);
|
|
4055
4034
|
delete ue[e];
|
|
4056
4035
|
}), ue[e];
|
|
4057
4036
|
}
|
|
4058
|
-
const
|
|
4037
|
+
const Ui = {
|
|
4059
4038
|
number: {
|
|
4060
4039
|
scientific: { notation: "scientific" },
|
|
4061
4040
|
engineering: { notation: "engineering" },
|
|
@@ -4084,150 +4063,150 @@ const $i = {
|
|
|
4084
4063
|
timeZoneName: "short"
|
|
4085
4064
|
}
|
|
4086
4065
|
}
|
|
4087
|
-
},
|
|
4066
|
+
}, Di = {
|
|
4088
4067
|
fallbackLocale: null,
|
|
4089
4068
|
loadingDelay: 200,
|
|
4090
|
-
formats:
|
|
4069
|
+
formats: Ui,
|
|
4091
4070
|
warnOnMissingMessages: !0,
|
|
4092
4071
|
handleMissingMessage: void 0,
|
|
4093
4072
|
ignoreTag: !0
|
|
4094
|
-
},
|
|
4095
|
-
function
|
|
4096
|
-
return
|
|
4073
|
+
}, $i = Di;
|
|
4074
|
+
function oe() {
|
|
4075
|
+
return $i;
|
|
4097
4076
|
}
|
|
4098
|
-
const
|
|
4099
|
-
var
|
|
4077
|
+
const ke = He(!1);
|
|
4078
|
+
var Gi = Object.defineProperty, ki = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wi = (e, t) => {
|
|
4100
4079
|
for (var r in t || (t = {}))
|
|
4101
|
-
|
|
4102
|
-
if (
|
|
4103
|
-
for (var r of
|
|
4104
|
-
|
|
4080
|
+
ji.call(t, r) && Pt(e, r, t[r]);
|
|
4081
|
+
if (Bt)
|
|
4082
|
+
for (var r of Bt(t))
|
|
4083
|
+
Vi.call(t, r) && Pt(e, r, t[r]);
|
|
4105
4084
|
return e;
|
|
4106
|
-
},
|
|
4107
|
-
let
|
|
4108
|
-
const Ce =
|
|
4109
|
-
function
|
|
4085
|
+
}, Xi = (e, t) => ki(e, Fi(t));
|
|
4086
|
+
let rt;
|
|
4087
|
+
const Ce = He(null);
|
|
4088
|
+
function Mt(e) {
|
|
4110
4089
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4111
4090
|
}
|
|
4112
|
-
function
|
|
4113
|
-
const r =
|
|
4114
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4091
|
+
function Ie(e, t = oe().fallbackLocale) {
|
|
4092
|
+
const r = Mt(e);
|
|
4093
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
|
|
4115
4094
|
}
|
|
4116
4095
|
function z() {
|
|
4117
|
-
return
|
|
4096
|
+
return rt ?? void 0;
|
|
4118
4097
|
}
|
|
4119
4098
|
Ce.subscribe((e) => {
|
|
4120
|
-
|
|
4099
|
+
rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4121
4100
|
});
|
|
4122
|
-
const
|
|
4123
|
-
if (e &&
|
|
4124
|
-
const { loadingDelay: t } =
|
|
4101
|
+
const zi = (e) => {
|
|
4102
|
+
if (e && Oi(e) && tt(e)) {
|
|
4103
|
+
const { loadingDelay: t } = oe();
|
|
4125
4104
|
let r;
|
|
4126
4105
|
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4127
|
-
() =>
|
|
4106
|
+
() => ke.set(!0),
|
|
4128
4107
|
t
|
|
4129
|
-
) :
|
|
4108
|
+
) : ke.set(!0), Er(e).then(() => {
|
|
4130
4109
|
Ce.set(e);
|
|
4131
4110
|
}).finally(() => {
|
|
4132
|
-
clearTimeout(r),
|
|
4111
|
+
clearTimeout(r), ke.set(!1);
|
|
4133
4112
|
});
|
|
4134
4113
|
}
|
|
4135
4114
|
return Ce.set(e);
|
|
4136
|
-
}, W =
|
|
4137
|
-
set:
|
|
4138
|
-
}),
|
|
4115
|
+
}, W = Xi(Wi({}, Ce), {
|
|
4116
|
+
set: zi
|
|
4117
|
+
}), Be = (e) => {
|
|
4139
4118
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4140
4119
|
return (n) => {
|
|
4141
4120
|
const i = JSON.stringify(n);
|
|
4142
4121
|
return i in t ? t[i] : t[i] = e(n);
|
|
4143
4122
|
};
|
|
4144
4123
|
};
|
|
4145
|
-
var
|
|
4124
|
+
var Zi = Object.defineProperty, we = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4146
4125
|
for (var r in t || (t = {}))
|
|
4147
|
-
Cr.call(t, r) &&
|
|
4148
|
-
if (
|
|
4149
|
-
for (var r of
|
|
4150
|
-
|
|
4126
|
+
Cr.call(t, r) && Ot(e, r, t[r]);
|
|
4127
|
+
if (we)
|
|
4128
|
+
for (var r of we(t))
|
|
4129
|
+
wr.call(t, r) && Ot(e, r, t[r]);
|
|
4151
4130
|
return e;
|
|
4152
|
-
},
|
|
4131
|
+
}, le = (e, t) => {
|
|
4153
4132
|
var r = {};
|
|
4154
4133
|
for (var n in e)
|
|
4155
4134
|
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4156
|
-
if (e != null &&
|
|
4157
|
-
for (var n of
|
|
4158
|
-
t.indexOf(n) < 0 &&
|
|
4135
|
+
if (e != null && we)
|
|
4136
|
+
for (var n of we(e))
|
|
4137
|
+
t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
|
|
4159
4138
|
return r;
|
|
4160
4139
|
};
|
|
4161
|
-
const
|
|
4162
|
-
const { formats: r } =
|
|
4140
|
+
const de = (e, t) => {
|
|
4141
|
+
const { formats: r } = oe();
|
|
4163
4142
|
if (e in r && t in r[e])
|
|
4164
4143
|
return r[e][t];
|
|
4165
4144
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4166
|
-
},
|
|
4145
|
+
}, Qi = Be(
|
|
4167
4146
|
(e) => {
|
|
4168
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4147
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4169
4148
|
if (r == null)
|
|
4170
4149
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4171
|
-
return n && (i =
|
|
4150
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4172
4151
|
}
|
|
4173
|
-
),
|
|
4152
|
+
), Yi = Be(
|
|
4174
4153
|
(e) => {
|
|
4175
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4154
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4176
4155
|
if (r == null)
|
|
4177
4156
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4178
|
-
return n ? i =
|
|
4157
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4179
4158
|
}
|
|
4180
|
-
),
|
|
4159
|
+
), qi = Be(
|
|
4181
4160
|
(e) => {
|
|
4182
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4161
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4183
4162
|
if (r == null)
|
|
4184
4163
|
throw new Error(
|
|
4185
4164
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4186
4165
|
);
|
|
4187
|
-
return n ? i =
|
|
4166
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4188
4167
|
}
|
|
4189
|
-
),
|
|
4168
|
+
), Ji = (e = {}) => {
|
|
4190
4169
|
var t = e, {
|
|
4191
4170
|
locale: r = z()
|
|
4192
|
-
} = t, n =
|
|
4171
|
+
} = t, n = le(t, [
|
|
4193
4172
|
"locale"
|
|
4194
4173
|
]);
|
|
4195
|
-
return
|
|
4196
|
-
},
|
|
4174
|
+
return Qi(lt({ locale: r }, n));
|
|
4175
|
+
}, Ki = (e = {}) => {
|
|
4197
4176
|
var t = e, {
|
|
4198
4177
|
locale: r = z()
|
|
4199
|
-
} = t, n =
|
|
4178
|
+
} = t, n = le(t, [
|
|
4200
4179
|
"locale"
|
|
4201
4180
|
]);
|
|
4202
|
-
return
|
|
4203
|
-
},
|
|
4181
|
+
return Yi(lt({ locale: r }, n));
|
|
4182
|
+
}, eo = (e = {}) => {
|
|
4204
4183
|
var t = e, {
|
|
4205
4184
|
locale: r = z()
|
|
4206
|
-
} = t, n =
|
|
4185
|
+
} = t, n = le(t, [
|
|
4207
4186
|
"locale"
|
|
4208
4187
|
]);
|
|
4209
|
-
return
|
|
4210
|
-
},
|
|
4188
|
+
return qi(lt({ locale: r }, n));
|
|
4189
|
+
}, to = Be(
|
|
4211
4190
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4212
|
-
(e, t = z()) => new
|
|
4213
|
-
ignoreTag:
|
|
4191
|
+
(e, t = z()) => new Ai(e, t, oe().formats, {
|
|
4192
|
+
ignoreTag: oe().ignoreTag
|
|
4214
4193
|
})
|
|
4215
|
-
),
|
|
4194
|
+
), ro = (e, t = {}) => {
|
|
4216
4195
|
var r, n, i, o;
|
|
4217
4196
|
let s = t;
|
|
4218
4197
|
typeof e == "object" && (s = e, e = s.id);
|
|
4219
4198
|
const {
|
|
4220
4199
|
values: a,
|
|
4221
|
-
locale:
|
|
4222
|
-
default:
|
|
4200
|
+
locale: l = z(),
|
|
4201
|
+
default: u
|
|
4223
4202
|
} = s;
|
|
4224
|
-
if (
|
|
4203
|
+
if (l == null)
|
|
4225
4204
|
throw new Error(
|
|
4226
4205
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4227
4206
|
);
|
|
4228
|
-
let h =
|
|
4207
|
+
let h = vr(e, l);
|
|
4229
4208
|
if (!h)
|
|
4230
|
-
h = (o = (i = (n = (r =
|
|
4209
|
+
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4231
4210
|
else if (typeof h != "string")
|
|
4232
4211
|
return console.warn(
|
|
4233
4212
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4236,7 +4215,7 @@ const fe = (e, t) => {
|
|
|
4236
4215
|
return h;
|
|
4237
4216
|
let c = h;
|
|
4238
4217
|
try {
|
|
4239
|
-
c =
|
|
4218
|
+
c = to(h, l).format(a);
|
|
4240
4219
|
} catch (f) {
|
|
4241
4220
|
f instanceof Error && console.warn(
|
|
4242
4221
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4244,33 +4223,33 @@ const fe = (e, t) => {
|
|
|
4244
4223
|
);
|
|
4245
4224
|
}
|
|
4246
4225
|
return c;
|
|
4247
|
-
},
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4226
|
+
}, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => Ji(t).format(e), so = (e, t = z()) => vr(e, t);
|
|
4227
|
+
se([W, ae], () => ro);
|
|
4228
|
+
se([W], () => no);
|
|
4229
|
+
se([W], () => io);
|
|
4230
|
+
se([W], () => oo);
|
|
4231
|
+
se([W, ae], () => so);
|
|
4253
4232
|
window.emWidgets = { topic: xn };
|
|
4254
|
-
const
|
|
4233
|
+
const Lt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4255
4234
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4256
|
-
function
|
|
4235
|
+
function ao({ withLocale: e, translations: t }) {
|
|
4257
4236
|
W.subscribe((r) => {
|
|
4258
|
-
r == null && (
|
|
4237
|
+
r == null && (ae.set(t), W.set(e));
|
|
4259
4238
|
});
|
|
4260
4239
|
}
|
|
4261
|
-
function
|
|
4262
|
-
|
|
4240
|
+
function lo(e, t) {
|
|
4241
|
+
_r(e, t);
|
|
4263
4242
|
}
|
|
4264
|
-
function
|
|
4243
|
+
function uo(e) {
|
|
4265
4244
|
W.set(e);
|
|
4266
4245
|
}
|
|
4267
|
-
function
|
|
4246
|
+
function ho(e, t) {
|
|
4268
4247
|
if (e) {
|
|
4269
4248
|
const r = document.createElement("style");
|
|
4270
4249
|
r.innerHTML = t, e.appendChild(r);
|
|
4271
4250
|
}
|
|
4272
4251
|
}
|
|
4273
|
-
function
|
|
4252
|
+
function co(e, t) {
|
|
4274
4253
|
if (!e || !t)
|
|
4275
4254
|
return;
|
|
4276
4255
|
const r = new URL(t);
|
|
@@ -4281,7 +4260,7 @@ function po(e, t) {
|
|
|
4281
4260
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4282
4261
|
});
|
|
4283
4262
|
}
|
|
4284
|
-
function
|
|
4263
|
+
function fo(e, t, r) {
|
|
4285
4264
|
if (window.emMessageBus) {
|
|
4286
4265
|
const n = document.createElement("style");
|
|
4287
4266
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4289,25 +4268,25 @@ function mo(e, t, r) {
|
|
|
4289
4268
|
});
|
|
4290
4269
|
}
|
|
4291
4270
|
}
|
|
4292
|
-
function
|
|
4293
|
-
|
|
4271
|
+
function po(e) {
|
|
4272
|
+
$r(e, "svelte-14514rm", '.CasinoVendorsLoading{height:52px}p{color:var(--emw--categories-typography, var(--emw--color-white) #ffffff);text-align:center}.CasinoVendorsContainer{background:transparent;border-radius:var(--emw--border-radius-medium, 10px)}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{min-height:72px;max-height:75px;background:var(--emw--color-primary, #194127);border-radius:var(--emw--border-radius-medium, 10px);max-width:1300px;margin:0 auto}.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;min-height:72px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{overflow-x:auto;overflow-y:hidden;scroll-snap-align:center}.CarouselContainer ul{align-items:center;list-style:none;padding:0;margin:0}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{align-items:center;font-size:var(--emw--font-size-medium, 15px);font-weight:500;line-height:34px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal;position:relative}.CarouselContainer ul li>a{position:relative;border-bottom:2px solid transparent}.CarouselContainer ul li.SecondaryMenu button,.CarouselContainer ul li.SecondaryMenu .ActiveImg{border-bottom:2px solid transparent;position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{cursor:pointer}.CarouselContainer ul li.SecondaryMenu:hover button,.CarouselContainer ul li.SecondaryMenu:hover .ActiveImg,.CarouselContainer ul li.SecondaryMenu.active button,.CarouselContainer ul li.SecondaryMenu.active .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus button,.CarouselContainer ul li.SecondaryMenu:focus .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus-within button,.CarouselContainer ul li.SecondaryMenu:focus-within .ActiveImg{border-bottom:2px solid var(--emw--color-green, #23b04e);position:relative}.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}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:22px;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;height:100%}.CarouselContainer .CarouselItems li{text-align:left;padding:18px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems li svg,.CarouselContainer .CarouselItems li img{height:100%;margin-right:5px;position:relative;top:5px;max-height:25px;line-height:25px;font-size:var(--emw--font-size-2x-small, 11px);overflow:auto}.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;padding-bottom:5px}.CarouselContainer .CarouselItems span{position:absolute;bottom:15px;right:-15px;background:var(--emw--pam-color-primary, var(--emw--color-primary, #23b04e));border-radius:50%;padding:3px;min-width:20px;max-width:30px;height:20px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-2x-small, 11px)}.CarouselContainer .CarouselItems .categoryImgButtonCount{top:15px;right:8px}.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:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d));background:linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d))}.CarouselContainer .CarouselItems .TouchOnly{display:none}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block;left:-10px}.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}.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)}.CategoryIconImg{height:20px;margin:0 auto;display:block}.CarouselWrapperMobile{margin:0 10px;border-radius:10px;max-height:75px}.CarouselWrapperMobile .MobileCategoryButton{margin-top:5px}.CarouselWrapperMobile .CarouselLeftArrow,.CarouselWrapperMobile .CarouselRightArrow{display:flex;max-height:75px}.CarouselWrapperMobile .CarouselLeftArrow svg,.CarouselWrapperMobile .CarouselRightArrow svg{max-width:15px}.CarouselWrapperMobile .CarouselItems li{display:inline-flex;flex-direction:column;justify-content:center;height:inherit;gap:5px;padding:15px 25px}.CarouselWrapperMobile .CarouselItems li svg{position:unset;top:unset}.CarouselWrapperMobile .CategoryIconContainer{position:relative;height:25px}.CarouselWrapperMobile .CategoryIconContainer span{top:-5px;right:-10px}.CarouselWrapperMobile .ImageContainer{display:block;height:25px}.CarouselWrapperMobile .CarouselContainer .CarouselItems li svg,.CarouselWrapperMobile .CarouselContainer .CarouselItems li img{margin:0;top:unset;position:static;overflow:auto}');
|
|
4294
4273
|
}
|
|
4295
|
-
function
|
|
4274
|
+
function Nt(e, t, r) {
|
|
4296
4275
|
const n = e.slice();
|
|
4297
4276
|
return n[43] = t[r], n[45] = r, n;
|
|
4298
4277
|
}
|
|
4299
|
-
function
|
|
4300
|
-
let t, r, n, i, o, s, a,
|
|
4278
|
+
function mo(e) {
|
|
4279
|
+
let t, r, n, i, o, s, a, l, u, h, c, f, m, p = (
|
|
4301
4280
|
/*vendors*/
|
|
4302
|
-
e[6].length > 0 &&
|
|
4281
|
+
e[6].length > 0 && Rt(e)
|
|
4303
4282
|
);
|
|
4304
4283
|
return {
|
|
4305
4284
|
c() {
|
|
4306
|
-
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.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="3" d="M15 19l-7-7 7-7"></path></svg>', o =
|
|
4307
|
-
(e[10] ? "CarouselWrapperMobile" : "")),
|
|
4285
|
+
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.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="3" d="M15 19l-7-7 7-7"></path></svg>', o = k(), s = S("div"), a = S("ul"), l = S("li"), l.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = k(), p && p.c(), h = k(), c = S("div"), c.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="3" d="M9 5l7 7-7 7"></path></svg>', E(i, "class", "CarouselLeftArrow"), E(l, "class", "TouchOnly"), E(a, "id", "CarouselNav"), E(a, "class", "CarouselItems"), E(s, "class", "CarouselNavWrap"), E(c, "class", "CarouselRightArrow"), E(n, "class", "CarouselContainer CarouselContainerMobile"), E(r, "class", "CarouselWrapper " + /*isMobile*/
|
|
4286
|
+
(e[10] ? "CarouselWrapperMobile" : "")), E(t, "class", "CasinoVendorsContainer"), E(t, "part", "CasinoVendorsContainer");
|
|
4308
4287
|
},
|
|
4309
4288
|
m(b, T) {
|
|
4310
|
-
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a,
|
|
4289
|
+
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a, l), H(a, u), p && p.m(a, null), e[28](a), e[29](s), H(n, h), H(n, c), e[30](r), f || (m = [
|
|
4311
4290
|
J(
|
|
4312
4291
|
i,
|
|
4313
4292
|
"click",
|
|
@@ -4336,18 +4315,18 @@ function go(e) {
|
|
|
4336
4315
|
},
|
|
4337
4316
|
p(b, T) {
|
|
4338
4317
|
/*vendors*/
|
|
4339
|
-
b[6].length > 0 ?
|
|
4318
|
+
b[6].length > 0 ? p ? p.p(b, T) : (p = Rt(b), p.c(), p.m(a, null)) : p && (p.d(1), p = null);
|
|
4340
4319
|
},
|
|
4341
4320
|
d(b) {
|
|
4342
|
-
b && I(t),
|
|
4321
|
+
b && I(t), p && p.d(), e[28](null), e[29](null), e[30](null), f = !1, X(m);
|
|
4343
4322
|
}
|
|
4344
4323
|
};
|
|
4345
4324
|
}
|
|
4346
|
-
function
|
|
4325
|
+
function bo(e) {
|
|
4347
4326
|
let t;
|
|
4348
4327
|
return {
|
|
4349
4328
|
c() {
|
|
4350
|
-
t = S("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4329
|
+
t = S("p"), t.textContent = "500 Error - Internal Server Error.", E(t, "class", "SearchLoading");
|
|
4351
4330
|
},
|
|
4352
4331
|
m(r, n) {
|
|
4353
4332
|
B(r, t, n);
|
|
@@ -4358,11 +4337,11 @@ function vo(e) {
|
|
|
4358
4337
|
}
|
|
4359
4338
|
};
|
|
4360
4339
|
}
|
|
4361
|
-
function
|
|
4340
|
+
function go(e) {
|
|
4362
4341
|
let t;
|
|
4363
4342
|
return {
|
|
4364
4343
|
c() {
|
|
4365
|
-
t = S("div"),
|
|
4344
|
+
t = S("div"), E(t, "class", "CasinoVendorsLoading");
|
|
4366
4345
|
},
|
|
4367
4346
|
m(r, n) {
|
|
4368
4347
|
B(r, t, n);
|
|
@@ -4373,8 +4352,8 @@ function yo(e) {
|
|
|
4373
4352
|
}
|
|
4374
4353
|
};
|
|
4375
4354
|
}
|
|
4376
|
-
function
|
|
4377
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4355
|
+
function Rt(e) {
|
|
4356
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = dt(
|
|
4378
4357
|
/*vendors*/
|
|
4379
4358
|
e[6]
|
|
4380
4359
|
);
|
|
@@ -4383,26 +4362,26 @@ function Dt(e) {
|
|
|
4383
4362
|
s[43].id
|
|
4384
4363
|
);
|
|
4385
4364
|
for (let s = 0; s < i.length; s += 1) {
|
|
4386
|
-
let a =
|
|
4387
|
-
r.set(
|
|
4365
|
+
let a = Nt(e, i, s), l = o(a);
|
|
4366
|
+
r.set(l, t[s] = jt(l, a));
|
|
4388
4367
|
}
|
|
4389
4368
|
return {
|
|
4390
4369
|
c() {
|
|
4391
4370
|
for (let s = 0; s < t.length; s += 1)
|
|
4392
4371
|
t[s].c();
|
|
4393
|
-
n =
|
|
4372
|
+
n = nt();
|
|
4394
4373
|
},
|
|
4395
4374
|
m(s, a) {
|
|
4396
|
-
for (let
|
|
4397
|
-
t[
|
|
4375
|
+
for (let l = 0; l < t.length; l += 1)
|
|
4376
|
+
t[l] && t[l].m(s, a);
|
|
4398
4377
|
B(s, n, a);
|
|
4399
4378
|
},
|
|
4400
4379
|
p(s, a) {
|
|
4401
4380
|
a[0] & /*activevendor, vendors, handleClick, onCarouselItemKeydown, getButtonClasses, getGamesTotal, showvendorgames, showvendorname, showvendoricon, isMobile*/
|
|
4402
|
-
461903 && (i =
|
|
4381
|
+
461903 && (i = dt(
|
|
4403
4382
|
/*vendors*/
|
|
4404
4383
|
s[6]
|
|
4405
|
-
), t =
|
|
4384
|
+
), t = Jr(t, a, o, 1, s, i, r, n.parentNode, qr, jt, n, Nt));
|
|
4406
4385
|
},
|
|
4407
4386
|
d(s) {
|
|
4408
4387
|
s && I(n);
|
|
@@ -4411,18 +4390,18 @@ function Dt(e) {
|
|
|
4411
4390
|
}
|
|
4412
4391
|
};
|
|
4413
4392
|
}
|
|
4414
|
-
function
|
|
4393
|
+
function Ut(e) {
|
|
4415
4394
|
let t;
|
|
4416
4395
|
function r(o, s) {
|
|
4417
4396
|
return (
|
|
4418
4397
|
/*isMobile*/
|
|
4419
|
-
o[10] ?
|
|
4398
|
+
o[10] ? yo : vo
|
|
4420
4399
|
);
|
|
4421
4400
|
}
|
|
4422
4401
|
let i = r(e)(e);
|
|
4423
4402
|
return {
|
|
4424
4403
|
c() {
|
|
4425
|
-
i.c(), t =
|
|
4404
|
+
i.c(), t = nt();
|
|
4426
4405
|
},
|
|
4427
4406
|
m(o, s) {
|
|
4428
4407
|
i.m(o, s), B(o, t, s);
|
|
@@ -4435,65 +4414,65 @@ function $t(e) {
|
|
|
4435
4414
|
}
|
|
4436
4415
|
};
|
|
4437
4416
|
}
|
|
4438
|
-
function
|
|
4417
|
+
function vo(e) {
|
|
4439
4418
|
let t, r, n, i, o, s = (
|
|
4440
4419
|
/*showvendorname*/
|
|
4441
|
-
e[2] === "false" &&
|
|
4420
|
+
e[2] === "false" && Dt()
|
|
4442
4421
|
);
|
|
4443
4422
|
return {
|
|
4444
4423
|
c() {
|
|
4445
|
-
t = S("img"), i =
|
|
4446
|
-
e[43].logo) ||
|
|
4424
|
+
t = S("img"), i = k(), s && s.c(), o = nt(), Ee(t.src, r = /*vendor*/
|
|
4425
|
+
e[43].logo) || E(t, "src", r), E(t, "alt", n = /*vendor*/
|
|
4447
4426
|
e[43].displayName);
|
|
4448
4427
|
},
|
|
4449
|
-
m(a,
|
|
4450
|
-
B(a, t,
|
|
4428
|
+
m(a, l) {
|
|
4429
|
+
B(a, t, l), B(a, i, l), s && s.m(a, l), B(a, o, l);
|
|
4451
4430
|
},
|
|
4452
|
-
p(a,
|
|
4453
|
-
|
|
4431
|
+
p(a, l) {
|
|
4432
|
+
l[0] & /*vendors*/
|
|
4454
4433
|
64 && !Ee(t.src, r = /*vendor*/
|
|
4455
|
-
a[43].logo) &&
|
|
4434
|
+
a[43].logo) && E(t, "src", r), l[0] & /*vendors*/
|
|
4456
4435
|
64 && n !== (n = /*vendor*/
|
|
4457
|
-
a[43].displayName) &&
|
|
4458
|
-
a[2] === "false" ? s || (s =
|
|
4436
|
+
a[43].displayName) && E(t, "alt", n), /*showvendorname*/
|
|
4437
|
+
a[2] === "false" ? s || (s = Dt(), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
4459
4438
|
},
|
|
4460
4439
|
d(a) {
|
|
4461
4440
|
a && (I(t), I(i), I(o)), s && s.d(a);
|
|
4462
4441
|
}
|
|
4463
4442
|
};
|
|
4464
4443
|
}
|
|
4465
|
-
function
|
|
4444
|
+
function yo(e) {
|
|
4466
4445
|
let t, r, n, i, o, s = (
|
|
4467
4446
|
/*showvendorname*/
|
|
4468
|
-
e[2] === "false" &&
|
|
4447
|
+
e[2] === "false" && $t()
|
|
4469
4448
|
);
|
|
4470
4449
|
return {
|
|
4471
4450
|
c() {
|
|
4472
|
-
t = S("div"), r = S("img"), o =
|
|
4473
|
-
e[43].logo) ||
|
|
4474
|
-
e[43].displayName),
|
|
4451
|
+
t = S("div"), r = S("img"), o = k(), s && s.c(), Ee(r.src, n = /*vendor*/
|
|
4452
|
+
e[43].logo) || E(r, "src", n), E(r, "alt", i = /*vendor*/
|
|
4453
|
+
e[43].displayName), E(t, "class", "ImageContainer");
|
|
4475
4454
|
},
|
|
4476
|
-
m(a,
|
|
4477
|
-
B(a, t,
|
|
4455
|
+
m(a, l) {
|
|
4456
|
+
B(a, t, l), H(t, r), H(t, o), s && s.m(t, null);
|
|
4478
4457
|
},
|
|
4479
|
-
p(a,
|
|
4480
|
-
|
|
4458
|
+
p(a, l) {
|
|
4459
|
+
l[0] & /*vendors*/
|
|
4481
4460
|
64 && !Ee(r.src, n = /*vendor*/
|
|
4482
|
-
a[43].logo) &&
|
|
4461
|
+
a[43].logo) && E(r, "src", n), l[0] & /*vendors*/
|
|
4483
4462
|
64 && i !== (i = /*vendor*/
|
|
4484
|
-
a[43].displayName) &&
|
|
4485
|
-
a[2] === "false" ? s || (s =
|
|
4463
|
+
a[43].displayName) && E(r, "alt", i), /*showvendorname*/
|
|
4464
|
+
a[2] === "false" ? s || (s = $t(), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4486
4465
|
},
|
|
4487
4466
|
d(a) {
|
|
4488
4467
|
a && I(t), s && s.d();
|
|
4489
4468
|
}
|
|
4490
4469
|
};
|
|
4491
4470
|
}
|
|
4492
|
-
function
|
|
4471
|
+
function Dt(e) {
|
|
4493
4472
|
let t;
|
|
4494
4473
|
return {
|
|
4495
4474
|
c() {
|
|
4496
|
-
t = S("div"),
|
|
4475
|
+
t = S("div"), E(t, "class", "ActiveImg");
|
|
4497
4476
|
},
|
|
4498
4477
|
m(r, n) {
|
|
4499
4478
|
B(r, t, n);
|
|
@@ -4503,11 +4482,11 @@ function kt(e) {
|
|
|
4503
4482
|
}
|
|
4504
4483
|
};
|
|
4505
4484
|
}
|
|
4506
|
-
function
|
|
4485
|
+
function $t(e) {
|
|
4507
4486
|
let t;
|
|
4508
4487
|
return {
|
|
4509
4488
|
c() {
|
|
4510
|
-
t = S("div"),
|
|
4489
|
+
t = S("div"), E(t, "class", "ActiveImg");
|
|
4511
4490
|
},
|
|
4512
4491
|
m(r, n) {
|
|
4513
4492
|
B(r, t, n);
|
|
@@ -4517,7 +4496,7 @@ function Gt(e) {
|
|
|
4517
4496
|
}
|
|
4518
4497
|
};
|
|
4519
4498
|
}
|
|
4520
|
-
function
|
|
4499
|
+
function Gt(e) {
|
|
4521
4500
|
let t, r = (
|
|
4522
4501
|
/*getGamesTotal*/
|
|
4523
4502
|
e[18](
|
|
@@ -4527,7 +4506,7 @@ function Ft(e) {
|
|
|
4527
4506
|
), n;
|
|
4528
4507
|
return {
|
|
4529
4508
|
c() {
|
|
4530
|
-
t = S("span"), n = pe(r),
|
|
4509
|
+
t = S("span"), n = pe(r), E(t, "class", "categoryImgButtonCount");
|
|
4531
4510
|
},
|
|
4532
4511
|
m(i, o) {
|
|
4533
4512
|
B(i, t, o), H(t, n);
|
|
@@ -4538,25 +4517,25 @@ function Ft(e) {
|
|
|
4538
4517
|
i[18](
|
|
4539
4518
|
/*vendor*/
|
|
4540
4519
|
i[43]?.games.total
|
|
4541
|
-
) + "") &&
|
|
4520
|
+
) + "") && it(n, r);
|
|
4542
4521
|
},
|
|
4543
4522
|
d(i) {
|
|
4544
4523
|
i && I(t);
|
|
4545
4524
|
}
|
|
4546
4525
|
};
|
|
4547
4526
|
}
|
|
4548
|
-
function
|
|
4527
|
+
function kt(e) {
|
|
4549
4528
|
let t, r = (
|
|
4550
4529
|
/*vendor*/
|
|
4551
4530
|
e[43].displayName + ""
|
|
4552
4531
|
), n, i, o = (
|
|
4553
4532
|
/*showvendorgames*/
|
|
4554
4533
|
e[3] !== "false" && /*vendor*/
|
|
4555
|
-
e[43]?.games.total &&
|
|
4534
|
+
e[43]?.games.total && Ft(e)
|
|
4556
4535
|
);
|
|
4557
4536
|
return {
|
|
4558
4537
|
c() {
|
|
4559
|
-
t = S("button"), n = pe(r), i =
|
|
4538
|
+
t = S("button"), n = pe(r), i = k(), o && o.c(), E(
|
|
4560
4539
|
t,
|
|
4561
4540
|
"class",
|
|
4562
4541
|
/*getButtonClasses*/
|
|
@@ -4569,16 +4548,16 @@ function jt(e) {
|
|
|
4569
4548
|
p(s, a) {
|
|
4570
4549
|
a[0] & /*vendors*/
|
|
4571
4550
|
64 && r !== (r = /*vendor*/
|
|
4572
|
-
s[43].displayName + "") &&
|
|
4551
|
+
s[43].displayName + "") && it(n, r), /*showvendorgames*/
|
|
4573
4552
|
s[3] !== "false" && /*vendor*/
|
|
4574
|
-
s[43]?.games.total ? o ? o.p(s, a) : (o =
|
|
4553
|
+
s[43]?.games.total ? o ? o.p(s, a) : (o = Ft(s), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4575
4554
|
},
|
|
4576
4555
|
d(s) {
|
|
4577
4556
|
s && I(t), o && o.d();
|
|
4578
4557
|
}
|
|
4579
4558
|
};
|
|
4580
4559
|
}
|
|
4581
|
-
function
|
|
4560
|
+
function Ft(e) {
|
|
4582
4561
|
let t, r = (
|
|
4583
4562
|
/*getGamesTotal*/
|
|
4584
4563
|
e[18](
|
|
@@ -4588,7 +4567,7 @@ function Vt(e) {
|
|
|
4588
4567
|
), n;
|
|
4589
4568
|
return {
|
|
4590
4569
|
c() {
|
|
4591
|
-
t = S("span"), n = pe(r),
|
|
4570
|
+
t = S("span"), n = pe(r), E(t, "class", "CategoryButtonCount");
|
|
4592
4571
|
},
|
|
4593
4572
|
m(i, o) {
|
|
4594
4573
|
B(i, t, o), H(t, n);
|
|
@@ -4599,26 +4578,26 @@ function Vt(e) {
|
|
|
4599
4578
|
i[18](
|
|
4600
4579
|
/*vendor*/
|
|
4601
4580
|
i[43]?.games.total
|
|
4602
|
-
) + "") &&
|
|
4581
|
+
) + "") && it(n, r);
|
|
4603
4582
|
},
|
|
4604
4583
|
d(i) {
|
|
4605
4584
|
i && I(t);
|
|
4606
4585
|
}
|
|
4607
4586
|
};
|
|
4608
4587
|
}
|
|
4609
|
-
function
|
|
4610
|
-
let r, n, i, o, s, a,
|
|
4588
|
+
function jt(e, t) {
|
|
4589
|
+
let r, n, i, o, s, a, l, u = (
|
|
4611
4590
|
/*showvendoricon*/
|
|
4612
|
-
t[1] !== "false" &&
|
|
4591
|
+
t[1] !== "false" && Ut(t)
|
|
4613
4592
|
), h = (
|
|
4614
4593
|
/*showvendoricon*/
|
|
4615
4594
|
t[1] == "true" && /*showvendorgames*/
|
|
4616
4595
|
t[3] !== "false" && /*showvendorname*/
|
|
4617
4596
|
t[2] == "false" && /*vendor*/
|
|
4618
|
-
t[43]?.games?.total &&
|
|
4597
|
+
t[43]?.games?.total && Gt(t)
|
|
4619
4598
|
), c = (
|
|
4620
4599
|
/*showvendorname*/
|
|
4621
|
-
t[2] !== "false" &&
|
|
4600
|
+
t[2] !== "false" && kt(t)
|
|
4622
4601
|
);
|
|
4623
4602
|
function f(...m) {
|
|
4624
4603
|
return (
|
|
@@ -4636,7 +4615,7 @@ function Wt(e, t) {
|
|
|
4636
4615
|
key: e,
|
|
4637
4616
|
first: null,
|
|
4638
4617
|
c() {
|
|
4639
|
-
r = S("li"),
|
|
4618
|
+
r = S("li"), u && u.c(), n = k(), h && h.c(), i = k(), c && c.c(), o = k(), E(r, "class", s = "CarouselItem " + (String(
|
|
4640
4619
|
/*activevendor*/
|
|
4641
4620
|
t[0]
|
|
4642
4621
|
) == String(
|
|
@@ -4644,11 +4623,11 @@ function Wt(e, t) {
|
|
|
4644
4623
|
t[43].id
|
|
4645
4624
|
) ? "active" : "") + " SecondaryMenu"), this.first = r;
|
|
4646
4625
|
},
|
|
4647
|
-
m(m,
|
|
4648
|
-
B(m, r,
|
|
4626
|
+
m(m, p) {
|
|
4627
|
+
B(m, r, p), u && u.m(r, null), H(r, n), h && h.m(r, null), H(r, i), c && c.m(r, null), H(r, o), a || (l = [
|
|
4649
4628
|
J(r, "click", f),
|
|
4650
4629
|
J(r, "keydown", function() {
|
|
4651
|
-
|
|
4630
|
+
Se(
|
|
4652
4631
|
/*onCarouselItemKeydown*/
|
|
4653
4632
|
t[16](
|
|
4654
4633
|
/*vendor*/
|
|
@@ -4665,35 +4644,35 @@ function Wt(e, t) {
|
|
|
4665
4644
|
})
|
|
4666
4645
|
], a = !0);
|
|
4667
4646
|
},
|
|
4668
|
-
p(m,
|
|
4647
|
+
p(m, p) {
|
|
4669
4648
|
t = m, /*showvendoricon*/
|
|
4670
|
-
t[1] !== "false" ?
|
|
4649
|
+
t[1] !== "false" ? u ? u.p(t, p) : (u = Ut(t), u.c(), u.m(r, n)) : u && (u.d(1), u = null), /*showvendoricon*/
|
|
4671
4650
|
t[1] == "true" && /*showvendorgames*/
|
|
4672
4651
|
t[3] !== "false" && /*showvendorname*/
|
|
4673
4652
|
t[2] == "false" && /*vendor*/
|
|
4674
|
-
t[43]?.games?.total ? h ? h.p(t,
|
|
4675
|
-
t[2] !== "false" ? c ? c.p(t,
|
|
4653
|
+
t[43]?.games?.total ? h ? h.p(t, p) : (h = Gt(t), h.c(), h.m(r, i)) : h && (h.d(1), h = null), /*showvendorname*/
|
|
4654
|
+
t[2] !== "false" ? c ? c.p(t, p) : (c = kt(t), c.c(), c.m(r, o)) : c && (c.d(1), c = null), p[0] & /*activevendor, vendors*/
|
|
4676
4655
|
65 && s !== (s = "CarouselItem " + (String(
|
|
4677
4656
|
/*activevendor*/
|
|
4678
4657
|
t[0]
|
|
4679
4658
|
) == String(
|
|
4680
4659
|
/*vendor*/
|
|
4681
4660
|
t[43].id
|
|
4682
|
-
) ? "active" : "") + " SecondaryMenu") &&
|
|
4661
|
+
) ? "active" : "") + " SecondaryMenu") && E(r, "class", s);
|
|
4683
4662
|
},
|
|
4684
4663
|
d(m) {
|
|
4685
|
-
m && I(r),
|
|
4664
|
+
m && I(r), u && u.d(), h && h.d(), c && c.d(), a = !1, X(l);
|
|
4686
4665
|
}
|
|
4687
4666
|
};
|
|
4688
4667
|
}
|
|
4689
|
-
function
|
|
4668
|
+
function _o(e) {
|
|
4690
4669
|
let t;
|
|
4691
4670
|
function r(o, s) {
|
|
4692
4671
|
return (
|
|
4693
4672
|
/*isLoading*/
|
|
4694
|
-
o[5] ?
|
|
4673
|
+
o[5] ? go : (
|
|
4695
4674
|
/*hasErrors*/
|
|
4696
|
-
o[7] ?
|
|
4675
|
+
o[7] ? bo : mo
|
|
4697
4676
|
)
|
|
4698
4677
|
);
|
|
4699
4678
|
}
|
|
@@ -4715,121 +4694,121 @@ function Eo(e) {
|
|
|
4715
4694
|
}
|
|
4716
4695
|
};
|
|
4717
4696
|
}
|
|
4718
|
-
function
|
|
4719
|
-
|
|
4720
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent:
|
|
4697
|
+
function xo(e, t, r) {
|
|
4698
|
+
ao({ withLocale: "en", translations: {} });
|
|
4699
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent: l = "defaultevent" } = t, { translationurl: u = "" } = t, { showvendoricon: h = "true" } = t, { showvendorname: c = "false" } = t, { showvendorgames: f = "false" } = t, { activevendor: m = "0" } = t, { mbsource: p } = t, b = window.navigator.userAgent, T = Lt(b) !== "PC", L = !0, P, A = [], M = !1, w, N, g;
|
|
4721
4700
|
const $ = () => {
|
|
4722
|
-
fetch(
|
|
4723
|
-
Object.keys(
|
|
4724
|
-
|
|
4701
|
+
fetch(u).then((x) => x.json()).then((x) => {
|
|
4702
|
+
Object.keys(x).forEach((U) => {
|
|
4703
|
+
lo(U, x[U]);
|
|
4725
4704
|
});
|
|
4726
|
-
}).catch((
|
|
4727
|
-
console.log(
|
|
4705
|
+
}).catch((x) => {
|
|
4706
|
+
console.log(x);
|
|
4728
4707
|
});
|
|
4729
|
-
},
|
|
4730
|
-
|
|
4731
|
-
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7,
|
|
4708
|
+
}, G = () => {
|
|
4709
|
+
uo(o);
|
|
4710
|
+
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, M = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, M = !0), r(5, L = !1), console.error(P)), M), Sr = () => {
|
|
4732
4711
|
if (!Z()) {
|
|
4733
|
-
let
|
|
4734
|
-
|
|
4735
|
-
(
|
|
4736
|
-
let U =
|
|
4712
|
+
let d = new URL(`${n}/v1/casino/vendors`);
|
|
4713
|
+
d.searchParams.append("datasource", i), d.searchParams.append("language", o), d.searchParams.append("platform", Lt(b)), fetch(d).then((x) => x.json()).then(
|
|
4714
|
+
(x) => {
|
|
4715
|
+
let U = x.items.filter((Oe) => Oe.games.total > 0);
|
|
4737
4716
|
r(6, A = []), r(6, A = A.concat(U)), r(5, L = !1);
|
|
4738
4717
|
},
|
|
4739
|
-
(
|
|
4740
|
-
r(7,
|
|
4718
|
+
(x) => {
|
|
4719
|
+
r(7, M = !0), console.error("There was an error while fetching the vendors", x);
|
|
4741
4720
|
}
|
|
4742
|
-
).catch((
|
|
4743
|
-
r(7,
|
|
4721
|
+
).catch((x) => {
|
|
4722
|
+
r(7, M = !0), console.error("There was an error while fetching the vendors", x);
|
|
4744
4723
|
});
|
|
4745
4724
|
}
|
|
4746
4725
|
};
|
|
4747
|
-
|
|
4726
|
+
Wr(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4748
4727
|
() => {
|
|
4749
|
-
g && g.addEventListener("scroll",
|
|
4728
|
+
g && g.addEventListener("scroll", Me);
|
|
4750
4729
|
},
|
|
4751
4730
|
500
|
|
4752
4731
|
), () => {
|
|
4753
|
-
N.removeEventListener("scroll",
|
|
4732
|
+
N.removeEventListener("scroll", Me);
|
|
4754
4733
|
}));
|
|
4755
|
-
let
|
|
4756
|
-
|
|
4734
|
+
let Pe = (d, x) => {
|
|
4735
|
+
Me(), r(0, m = d.id), window.postMessage(
|
|
4757
4736
|
{
|
|
4758
|
-
type:
|
|
4759
|
-
itemId:
|
|
4760
|
-
index:
|
|
4761
|
-
item:
|
|
4762
|
-
path:
|
|
4763
|
-
externalLink:
|
|
4764
|
-
target:
|
|
4737
|
+
type: l,
|
|
4738
|
+
itemId: d.id,
|
|
4739
|
+
index: x,
|
|
4740
|
+
item: d,
|
|
4741
|
+
path: d.path,
|
|
4742
|
+
externalLink: d.externalLink || !1,
|
|
4743
|
+
target: d.attrs?.target || null
|
|
4765
4744
|
},
|
|
4766
4745
|
window.location.href
|
|
4767
4746
|
);
|
|
4768
|
-
},
|
|
4769
|
-
const
|
|
4770
|
-
if (
|
|
4771
|
-
const
|
|
4747
|
+
}, ut = () => {
|
|
4748
|
+
const d = g.scrollLeft;
|
|
4749
|
+
if (d > 0) {
|
|
4750
|
+
const x = Math.min(250, d);
|
|
4772
4751
|
g.scrollBy({
|
|
4773
|
-
left: -
|
|
4752
|
+
left: -x,
|
|
4774
4753
|
behavior: "smooth"
|
|
4775
4754
|
});
|
|
4776
4755
|
}
|
|
4777
|
-
},
|
|
4778
|
-
const
|
|
4779
|
-
if (
|
|
4780
|
-
const
|
|
4781
|
-
g.scrollBy({ left:
|
|
4756
|
+
}, ht = () => {
|
|
4757
|
+
const d = g.scrollLeft, x = g.scrollWidth, U = g.clientWidth;
|
|
4758
|
+
if (d + U < x) {
|
|
4759
|
+
const Oe = x - (d + U), Rr = Math.min(250, Oe);
|
|
4760
|
+
g.scrollBy({ left: Rr, behavior: "smooth" });
|
|
4782
4761
|
}
|
|
4783
4762
|
};
|
|
4784
|
-
const
|
|
4785
|
-
const
|
|
4763
|
+
const Me = () => {
|
|
4764
|
+
const d = N.querySelectorAll(".DropDown");
|
|
4786
4765
|
document.activeElement.blur(), g.classList.add("isScrolling");
|
|
4787
|
-
for (let
|
|
4788
|
-
|
|
4766
|
+
for (let x = 0; x < d.length; x++)
|
|
4767
|
+
d[x].style.transform = "translateX(-" + g.scrollLeft + "px)";
|
|
4789
4768
|
g.classList.remove("isScrolling");
|
|
4790
|
-
},
|
|
4791
|
-
(
|
|
4792
|
-
},
|
|
4793
|
-
(
|
|
4794
|
-
},
|
|
4795
|
-
(U.key === "Enter" || U.key === " ") && (
|
|
4796
|
-
},
|
|
4769
|
+
}, Tr = (d) => {
|
|
4770
|
+
(d.key === "Enter" || d.key === " ") && (ht(), d.preventDefault());
|
|
4771
|
+
}, Hr = (d) => {
|
|
4772
|
+
(d.key === "Enter" || d.key === " ") && (ut(), d.preventDefault());
|
|
4773
|
+
}, Ar = (d, x) => (U) => {
|
|
4774
|
+
(U.key === "Enter" || U.key === " ") && (Pe(d, x), U.preventDefault());
|
|
4775
|
+
}, Ir = () => {
|
|
4797
4776
|
if (T && c === "true" && h === "false")
|
|
4798
4777
|
return "MobileCategoryButton";
|
|
4799
|
-
},
|
|
4800
|
-
|
|
4778
|
+
}, Br = (d) => d > 1e3 ? "999+" : d, Pr = (d, x, U) => {
|
|
4779
|
+
Pe(d, x), U.preventDefault();
|
|
4801
4780
|
};
|
|
4802
|
-
function Mr(
|
|
4803
|
-
K[
|
|
4804
|
-
N =
|
|
4781
|
+
function Mr(d) {
|
|
4782
|
+
K[d ? "unshift" : "push"](() => {
|
|
4783
|
+
N = d, r(8, N);
|
|
4805
4784
|
});
|
|
4806
4785
|
}
|
|
4807
|
-
function
|
|
4808
|
-
K[
|
|
4809
|
-
g =
|
|
4786
|
+
function Or(d) {
|
|
4787
|
+
K[d ? "unshift" : "push"](() => {
|
|
4788
|
+
g = d, r(9, g);
|
|
4810
4789
|
});
|
|
4811
4790
|
}
|
|
4812
|
-
function
|
|
4813
|
-
K[
|
|
4814
|
-
w =
|
|
4791
|
+
function Lr(d) {
|
|
4792
|
+
K[d ? "unshift" : "push"](() => {
|
|
4793
|
+
w = d, r(4, w);
|
|
4815
4794
|
});
|
|
4816
4795
|
}
|
|
4817
|
-
function
|
|
4818
|
-
K[
|
|
4819
|
-
w =
|
|
4796
|
+
function Nr(d) {
|
|
4797
|
+
K[d ? "unshift" : "push"](() => {
|
|
4798
|
+
w = d, r(4, w);
|
|
4820
4799
|
});
|
|
4821
4800
|
}
|
|
4822
|
-
return e.$$set = (
|
|
4823
|
-
"endpoint" in
|
|
4801
|
+
return e.$$set = (d) => {
|
|
4802
|
+
"endpoint" in d && r(19, n = d.endpoint), "datasource" in d && r(20, i = d.datasource), "lang" in d && r(21, o = d.lang), "clientstyling" in d && r(22, s = d.clientstyling), "clientstylingurl" in d && r(23, a = d.clientstylingurl), "actionevent" in d && r(24, l = d.actionevent), "translationurl" in d && r(25, u = d.translationurl), "showvendoricon" in d && r(1, h = d.showvendoricon), "showvendorname" in d && r(2, c = d.showvendorname), "showvendorgames" in d && r(3, f = d.showvendorgames), "activevendor" in d && r(0, m = d.activevendor), "mbsource" in d && r(26, p = d.mbsource);
|
|
4824
4803
|
}, e.$$.update = () => {
|
|
4825
4804
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
4826
|
-
2621440 && n && o &&
|
|
4827
|
-
33554432 &&
|
|
4805
|
+
2621440 && n && o && Sr(), e.$$.dirty[0] & /*translationurl*/
|
|
4806
|
+
33554432 && u && $(), e.$$.dirty[0] & /*activevendor*/
|
|
4828
4807
|
1, e.$$.dirty[0] & /*lang*/
|
|
4829
|
-
2097152 && o &&
|
|
4830
|
-
4194320 && s && w &&
|
|
4831
|
-
8388624 && a && w &&
|
|
4832
|
-
67108880 &&
|
|
4808
|
+
2097152 && o && G(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4809
|
+
4194320 && s && w && ho(w, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4810
|
+
8388624 && a && w && co(w, a), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4811
|
+
67108880 && p && w && fo(w, `${p}.Style`);
|
|
4833
4812
|
}, [
|
|
4834
4813
|
m,
|
|
4835
4814
|
h,
|
|
@@ -4838,41 +4817,41 @@ function wo(e, t, r) {
|
|
|
4838
4817
|
w,
|
|
4839
4818
|
L,
|
|
4840
4819
|
A,
|
|
4841
|
-
|
|
4820
|
+
M,
|
|
4842
4821
|
N,
|
|
4843
4822
|
g,
|
|
4844
4823
|
T,
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4824
|
+
Pe,
|
|
4825
|
+
ut,
|
|
4826
|
+
ht,
|
|
4827
|
+
Tr,
|
|
4848
4828
|
Hr,
|
|
4849
4829
|
Ar,
|
|
4850
4830
|
Ir,
|
|
4851
4831
|
Br,
|
|
4852
|
-
Pr,
|
|
4853
4832
|
n,
|
|
4854
4833
|
i,
|
|
4855
4834
|
o,
|
|
4856
4835
|
s,
|
|
4857
4836
|
a,
|
|
4858
|
-
u,
|
|
4859
4837
|
l,
|
|
4860
|
-
|
|
4861
|
-
|
|
4838
|
+
u,
|
|
4839
|
+
p,
|
|
4840
|
+
Pr,
|
|
4862
4841
|
Mr,
|
|
4842
|
+
Or,
|
|
4863
4843
|
Lr,
|
|
4864
|
-
Nr
|
|
4865
|
-
Rr
|
|
4844
|
+
Nr
|
|
4866
4845
|
];
|
|
4867
4846
|
}
|
|
4868
|
-
class
|
|
4847
|
+
class Eo extends on {
|
|
4869
4848
|
constructor(t) {
|
|
4870
|
-
super(),
|
|
4849
|
+
super(), rn(
|
|
4871
4850
|
this,
|
|
4872
4851
|
t,
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4852
|
+
xo,
|
|
4853
|
+
_o,
|
|
4854
|
+
Wt,
|
|
4876
4855
|
{
|
|
4877
4856
|
endpoint: 19,
|
|
4878
4857
|
datasource: 20,
|
|
@@ -4887,7 +4866,7 @@ class Co extends sn {
|
|
|
4887
4866
|
activevendor: 0,
|
|
4888
4867
|
mbsource: 26
|
|
4889
4868
|
},
|
|
4890
|
-
|
|
4869
|
+
po,
|
|
4891
4870
|
[-1, -1]
|
|
4892
4871
|
);
|
|
4893
4872
|
}
|
|
@@ -4964,7 +4943,7 @@ class Co extends sn {
|
|
|
4964
4943
|
this.$$set({ mbsource: t }), R();
|
|
4965
4944
|
}
|
|
4966
4945
|
}
|
|
4967
|
-
|
|
4946
|
+
nn(Eo, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, actionevent: {}, translationurl: {}, showvendoricon: {}, showvendorname: {}, showvendorgames: {}, activevendor: {}, mbsource: {} }, [], [], !0);
|
|
4968
4947
|
export {
|
|
4969
|
-
|
|
4948
|
+
Eo as C
|
|
4970
4949
|
};
|