@everymatrix/casino-categories-vendor-bar 1.77.19 → 1.77.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategoriesVendorBar-Bt5i-Va9.js → CasinoCategoriesVendorBar-4-CrahYH.js} +863 -906
- package/components/{CasinoCategoriesVendorBar-CNYocAMP.js → CasinoCategoriesVendorBar-BA8kCeqw.js} +899 -942
- package/components/CasinoCategoriesVendorBar-BMNv3a09.cjs +18 -0
- 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-DhkOvI_O.cjs +0 -18
package/components/{CasinoCategoriesVendorBar-Bt5i-Va9.js → CasinoCategoriesVendorBar-4-CrahYH.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Gt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function lt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function X(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Gt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Se(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ft(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 Mr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Lr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -34,14 +34,14 @@ function $r(e, ...t) {
|
|
|
34
34
|
function H(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function Nr(e, t, r) {
|
|
38
|
+
const n = Rr(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, Ur(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Rr(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,7 +51,7 @@ function Gr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ur(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 G() {
|
|
74
74
|
return pe(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function rt() {
|
|
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 Dr(e) {
|
|
86
86
|
return Array.from(e.childNodes);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function nt(e, t) {
|
|
89
89
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
90
90
|
t);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function $r(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 kr() {
|
|
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 Gr(e) {
|
|
111
|
+
kr().$$.on_mount.push(e);
|
|
112
112
|
}
|
|
113
113
|
const q = [], K = [];
|
|
114
114
|
let ee = [];
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
115
|
+
const ut = [], Fr = /* @__PURE__ */ Promise.resolve();
|
|
116
|
+
let Ge = !1;
|
|
117
|
+
function jr() {
|
|
118
|
+
Ge || (Ge = !0, Fr.then(R));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Fe(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), Vr(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 (; ut.length; )
|
|
147
|
+
ut.pop()();
|
|
148
|
+
Ge = !1, Le.clear(), he(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Vr(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(Fe);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Wr(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 Xr = /* @__PURE__ */ new Set();
|
|
162
|
+
function jt(e, t) {
|
|
163
|
+
e && e.i && (Xr.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ht(e) {
|
|
166
166
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function zr(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 Zr(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,
|
|
177
|
+
for (p = m; p--; ) {
|
|
178
|
+
const g = c(i, o, p), $ = r(g);
|
|
179
179
|
let k = s.get($);
|
|
180
|
-
k ? A.push(() => k.p(g, t)) : (k =
|
|
180
|
+
k ? A.push(() => k.p(g, t)) : (k = u($, g), k.c()), L.set($, T[p] = k), $ in b && P.set($, Math.abs(p - b[$]));
|
|
181
181
|
}
|
|
182
182
|
const O = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
183
183
|
function N(g) {
|
|
184
|
-
|
|
184
|
+
jt(g, 1), g.m(a, h), s.set(g.key, g), h = g.first, m--;
|
|
185
185
|
}
|
|
186
186
|
for (; f && m; ) {
|
|
187
187
|
const g = T[m - 1], $ = e[f - 1], k = g.key, Z = $.key;
|
|
188
|
-
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(k) || O.has(k) ? N(g) : w.has(Z) ? f-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (O.add(Z), f--) : (
|
|
188
|
+
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(k) || O.has(k) ? N(g) : w.has(Z) ? f-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (O.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 Qr(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), Fe(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Gt).filter(Se);
|
|
202
202
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
203
|
+
}), i.forEach(Fe);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Yr(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Wr(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 qr(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (q.push(e), jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const
|
|
212
|
+
function Jr(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: lt(),
|
|
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: lt(),
|
|
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 && qr(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 = Dr(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 && jt(e.$$.fragment), Qr(e, t.target, t.anchor), R();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
he(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Vt;
|
|
252
|
+
typeof HTMLElement == "function" && (Vt = 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 = $r(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 Kr(e, t, r, n, i, o) {
|
|
399
|
+
let s = class extends Vt {
|
|
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 en {
|
|
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
|
+
Yr(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 && !Mr(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 tn = "4";
|
|
472
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tn);
|
|
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 je = function(e, t) {
|
|
488
|
+
return je = 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
|
+
}, je(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
|
+
je(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 rn(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 Ve(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 We(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 Wt(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 = Wt(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 Xe(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 = Ve(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 = Ve(c), m = f.next(); !m.done; m = f.next()) {
|
|
625
|
+
var p = m.value;
|
|
607
626
|
try {
|
|
608
|
-
|
|
627
|
+
ct(p);
|
|
609
628
|
} catch (b) {
|
|
610
|
-
o = o ?? [], b instanceof
|
|
629
|
+
o = o ?? [], b instanceof Ne ? o = te(te([], We(o)), We(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
|
+
ct(t);
|
|
632
651
|
else {
|
|
633
652
|
if (t instanceof e) {
|
|
634
653
|
if (t.closed || t._hasParent(this))
|
|
@@ -645,52 +664,52 @@ 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) && Xe(r, t);
|
|
649
668
|
}, e.prototype.remove = function(t) {
|
|
650
669
|
var r = this._finalizers;
|
|
651
|
-
r &&
|
|
670
|
+
r && Xe(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
|
+
}(), Xt = Te.EMPTY;
|
|
676
|
+
function zt(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 ct(e) {
|
|
680
|
+
F(e) ? e() : e.unsubscribe();
|
|
662
681
|
}
|
|
663
|
-
var
|
|
682
|
+
var nn = {
|
|
664
683
|
Promise: void 0
|
|
665
|
-
},
|
|
684
|
+
}, on = {
|
|
666
685
|
setTimeout: function(e, t) {
|
|
667
686
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
668
687
|
r[n - 2] = arguments[n];
|
|
669
|
-
return setTimeout.apply(void 0,
|
|
688
|
+
return setTimeout.apply(void 0, te([e, t], We(r)));
|
|
670
689
|
},
|
|
671
690
|
clearTimeout: function(e) {
|
|
672
691
|
return clearTimeout(e);
|
|
673
692
|
},
|
|
674
693
|
delegate: void 0
|
|
675
694
|
};
|
|
676
|
-
function
|
|
677
|
-
|
|
695
|
+
function sn(e) {
|
|
696
|
+
on.setTimeout(function() {
|
|
678
697
|
throw e;
|
|
679
698
|
});
|
|
680
699
|
}
|
|
681
|
-
function
|
|
700
|
+
function ft() {
|
|
682
701
|
}
|
|
683
702
|
function ye(e) {
|
|
684
703
|
e();
|
|
685
704
|
}
|
|
686
|
-
var
|
|
687
|
-
|
|
705
|
+
var Zt = function(e) {
|
|
706
|
+
j(t, e);
|
|
688
707
|
function t(r) {
|
|
689
708
|
var n = e.call(this) || this;
|
|
690
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
709
|
+
return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = un, n;
|
|
691
710
|
}
|
|
692
711
|
return t.create = function(r, n, i) {
|
|
693
|
-
return new
|
|
712
|
+
return new ze(r, n, i);
|
|
694
713
|
}, t.prototype.next = function(r) {
|
|
695
714
|
this.isStopped || this._next(r);
|
|
696
715
|
}, t.prototype.error = function(r) {
|
|
@@ -714,7 +733,7 @@ var Kt = function(e) {
|
|
|
714
733
|
this.unsubscribe();
|
|
715
734
|
}
|
|
716
735
|
}, t;
|
|
717
|
-
}(
|
|
736
|
+
}(Te), an = function() {
|
|
718
737
|
function e(t) {
|
|
719
738
|
this.partialObserver = t;
|
|
720
739
|
}
|
|
@@ -745,43 +764,43 @@ var Kt = function(e) {
|
|
|
745
764
|
be(r);
|
|
746
765
|
}
|
|
747
766
|
}, e;
|
|
748
|
-
}(),
|
|
749
|
-
|
|
767
|
+
}(), ze = function(e) {
|
|
768
|
+
j(t, e);
|
|
750
769
|
function t(r, n, i) {
|
|
751
770
|
var o = e.call(this) || this, s;
|
|
752
|
-
return
|
|
771
|
+
return F(r) || !r ? s = {
|
|
753
772
|
next: r ?? void 0,
|
|
754
773
|
error: n ?? void 0,
|
|
755
774
|
complete: i ?? void 0
|
|
756
|
-
} : s = r, o.destination = new
|
|
775
|
+
} : s = r, o.destination = new an(s), o;
|
|
757
776
|
}
|
|
758
777
|
return t;
|
|
759
|
-
}(
|
|
778
|
+
}(Zt);
|
|
760
779
|
function be(e) {
|
|
761
|
-
|
|
780
|
+
sn(e);
|
|
762
781
|
}
|
|
763
|
-
function
|
|
782
|
+
function ln(e) {
|
|
764
783
|
throw e;
|
|
765
784
|
}
|
|
766
|
-
var
|
|
785
|
+
var un = {
|
|
767
786
|
closed: !0,
|
|
768
|
-
next:
|
|
769
|
-
error:
|
|
770
|
-
complete:
|
|
771
|
-
},
|
|
787
|
+
next: ft,
|
|
788
|
+
error: ln,
|
|
789
|
+
complete: ft
|
|
790
|
+
}, hn = function() {
|
|
772
791
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
773
792
|
}();
|
|
774
|
-
function
|
|
793
|
+
function cn(e) {
|
|
775
794
|
return e;
|
|
776
795
|
}
|
|
777
|
-
function
|
|
778
|
-
return e.length === 0 ?
|
|
796
|
+
function fn(e) {
|
|
797
|
+
return e.length === 0 ? cn : e.length === 1 ? e[0] : function(r) {
|
|
779
798
|
return e.reduce(function(n, i) {
|
|
780
799
|
return i(n);
|
|
781
800
|
}, r);
|
|
782
801
|
};
|
|
783
802
|
}
|
|
784
|
-
var
|
|
803
|
+
var dt = function() {
|
|
785
804
|
function e(t) {
|
|
786
805
|
t && (this._subscribe = t);
|
|
787
806
|
}
|
|
@@ -789,10 +808,10 @@ var vt = function() {
|
|
|
789
808
|
var r = new e();
|
|
790
809
|
return r.source = this, r.operator = t, r;
|
|
791
810
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
792
|
-
var i = this, o =
|
|
811
|
+
var i = this, o = pn(t) ? t : new ze(t, r, n);
|
|
793
812
|
return ye(function() {
|
|
794
|
-
var s = i, a = s.operator,
|
|
795
|
-
o.add(a ? a.call(o,
|
|
813
|
+
var s = i, a = s.operator, l = s.source;
|
|
814
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
796
815
|
}), o;
|
|
797
816
|
}, e.prototype._trySubscribe = function(t) {
|
|
798
817
|
try {
|
|
@@ -802,13 +821,13 @@ var vt = function() {
|
|
|
802
821
|
}
|
|
803
822
|
}, e.prototype.forEach = function(t, r) {
|
|
804
823
|
var n = this;
|
|
805
|
-
return r =
|
|
806
|
-
var s = new
|
|
824
|
+
return r = pt(r), new r(function(i, o) {
|
|
825
|
+
var s = new ze({
|
|
807
826
|
next: function(a) {
|
|
808
827
|
try {
|
|
809
828
|
t(a);
|
|
810
|
-
} catch (
|
|
811
|
-
o(
|
|
829
|
+
} catch (l) {
|
|
830
|
+
o(l), s.unsubscribe();
|
|
812
831
|
}
|
|
813
832
|
},
|
|
814
833
|
error: o,
|
|
@@ -819,15 +838,15 @@ var vt = function() {
|
|
|
819
838
|
}, e.prototype._subscribe = function(t) {
|
|
820
839
|
var r;
|
|
821
840
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
822
|
-
}, e.prototype[
|
|
841
|
+
}, e.prototype[hn] = function() {
|
|
823
842
|
return this;
|
|
824
843
|
}, e.prototype.pipe = function() {
|
|
825
844
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
826
845
|
t[r] = arguments[r];
|
|
827
|
-
return
|
|
846
|
+
return fn(t)(this);
|
|
828
847
|
}, e.prototype.toPromise = function(t) {
|
|
829
848
|
var r = this;
|
|
830
|
-
return t =
|
|
849
|
+
return t = pt(t), new t(function(n, i) {
|
|
831
850
|
var o;
|
|
832
851
|
r.subscribe(function(s) {
|
|
833
852
|
return o = s;
|
|
@@ -841,32 +860,32 @@ var vt = function() {
|
|
|
841
860
|
return new e(t);
|
|
842
861
|
}, e;
|
|
843
862
|
}();
|
|
844
|
-
function
|
|
863
|
+
function pt(e) {
|
|
845
864
|
var t;
|
|
846
|
-
return (t = e ??
|
|
865
|
+
return (t = e ?? nn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
847
866
|
}
|
|
848
|
-
function
|
|
849
|
-
return e &&
|
|
867
|
+
function dn(e) {
|
|
868
|
+
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
850
869
|
}
|
|
851
|
-
function
|
|
852
|
-
return e && e instanceof
|
|
870
|
+
function pn(e) {
|
|
871
|
+
return e && e instanceof Zt || dn(e) && zt(e);
|
|
853
872
|
}
|
|
854
|
-
var
|
|
873
|
+
var mn = Wt(function(e) {
|
|
855
874
|
return function() {
|
|
856
875
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
857
876
|
};
|
|
858
|
-
}),
|
|
859
|
-
|
|
877
|
+
}), Qt = function(e) {
|
|
878
|
+
j(t, e);
|
|
860
879
|
function t() {
|
|
861
880
|
var r = e.call(this) || this;
|
|
862
881
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
863
882
|
}
|
|
864
883
|
return t.prototype.lift = function(r) {
|
|
865
|
-
var n = new
|
|
884
|
+
var n = new mt(this, this);
|
|
866
885
|
return n.operator = r, n;
|
|
867
886
|
}, t.prototype._throwIfClosed = function() {
|
|
868
887
|
if (this.closed)
|
|
869
|
-
throw new
|
|
888
|
+
throw new mn();
|
|
870
889
|
}, t.prototype.next = function(r) {
|
|
871
890
|
var n = this;
|
|
872
891
|
ye(function() {
|
|
@@ -874,12 +893,12 @@ var yn = Yt(function(e) {
|
|
|
874
893
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
875
894
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
876
895
|
try {
|
|
877
|
-
for (var s =
|
|
878
|
-
var
|
|
879
|
-
|
|
896
|
+
for (var s = Ve(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
897
|
+
var l = a.value;
|
|
898
|
+
l.next(r);
|
|
880
899
|
}
|
|
881
|
-
} catch (
|
|
882
|
-
i = { error:
|
|
900
|
+
} catch (u) {
|
|
901
|
+
i = { error: u };
|
|
883
902
|
} finally {
|
|
884
903
|
try {
|
|
885
904
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -923,20 +942,20 @@ var yn = Yt(function(e) {
|
|
|
923
942
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
924
943
|
}, t.prototype._innerSubscribe = function(r) {
|
|
925
944
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
926
|
-
return o || s ?
|
|
927
|
-
n.currentObservers = null,
|
|
945
|
+
return o || s ? Xt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
946
|
+
n.currentObservers = null, Xe(a, r);
|
|
928
947
|
}));
|
|
929
948
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
930
949
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
931
950
|
i ? r.error(o) : s && r.complete();
|
|
932
951
|
}, t.prototype.asObservable = function() {
|
|
933
|
-
var r = new
|
|
952
|
+
var r = new dt();
|
|
934
953
|
return r.source = this, r;
|
|
935
954
|
}, t.create = function(r, n) {
|
|
936
|
-
return new
|
|
955
|
+
return new mt(r, n);
|
|
937
956
|
}, t;
|
|
938
|
-
}(
|
|
939
|
-
|
|
957
|
+
}(dt), mt = function(e) {
|
|
958
|
+
j(t, e);
|
|
940
959
|
function t(r, n) {
|
|
941
960
|
var i = e.call(this) || this;
|
|
942
961
|
return i.destination = r, i.source = n, i;
|
|
@@ -952,60 +971,60 @@ var yn = Yt(function(e) {
|
|
|
952
971
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
953
972
|
}, t.prototype._subscribe = function(r) {
|
|
954
973
|
var n, i;
|
|
955
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
974
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
|
|
956
975
|
}, t;
|
|
957
|
-
}(
|
|
976
|
+
}(Qt), Yt = {
|
|
958
977
|
now: function() {
|
|
959
|
-
return (
|
|
978
|
+
return (Yt.delegate || Date).now();
|
|
960
979
|
},
|
|
961
980
|
delegate: void 0
|
|
962
|
-
},
|
|
963
|
-
|
|
981
|
+
}, bn = function(e) {
|
|
982
|
+
j(t, e);
|
|
964
983
|
function t(r, n, i) {
|
|
965
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
984
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
|
|
966
985
|
var o = e.call(this) || this;
|
|
967
986
|
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
987
|
}
|
|
969
988
|
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() +
|
|
989
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
990
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
972
991
|
}, t.prototype._subscribe = function(r) {
|
|
973
992
|
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[
|
|
993
|
+
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)
|
|
994
|
+
r.next(a[l]);
|
|
976
995
|
return this._checkFinalizedStatuses(r), n;
|
|
977
996
|
}, t.prototype._trimBuffer = function() {
|
|
978
997
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
979
998
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
980
|
-
for (var
|
|
981
|
-
|
|
982
|
-
|
|
999
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1000
|
+
u = h;
|
|
1001
|
+
u && o.splice(0, u + 1);
|
|
983
1002
|
}
|
|
984
1003
|
}, t;
|
|
985
|
-
}(
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
988
|
-
const r = new
|
|
989
|
-
|
|
1004
|
+
}(Qt);
|
|
1005
|
+
const bt = [], gt = {}, gn = (e, t = 0) => {
|
|
1006
|
+
if (bt.indexOf(e) == -1) {
|
|
1007
|
+
const r = new bn(t);
|
|
1008
|
+
gt[e] = r, bt.push(e);
|
|
990
1009
|
}
|
|
991
|
-
return
|
|
1010
|
+
return gt[e];
|
|
992
1011
|
}, Y = [];
|
|
993
|
-
function
|
|
1012
|
+
function vn(e, t) {
|
|
994
1013
|
return {
|
|
995
|
-
subscribe:
|
|
1014
|
+
subscribe: He(e, t).subscribe
|
|
996
1015
|
};
|
|
997
1016
|
}
|
|
998
|
-
function
|
|
1017
|
+
function He(e, t = D) {
|
|
999
1018
|
let r;
|
|
1000
1019
|
const n = /* @__PURE__ */ new Set();
|
|
1001
1020
|
function i(a) {
|
|
1002
|
-
if (
|
|
1003
|
-
const
|
|
1004
|
-
for (const
|
|
1005
|
-
|
|
1006
|
-
if (
|
|
1007
|
-
for (let
|
|
1008
|
-
Y[
|
|
1021
|
+
if (Ft(e, a) && (e = a, r)) {
|
|
1022
|
+
const l = !Y.length;
|
|
1023
|
+
for (const u of n)
|
|
1024
|
+
u[1](), Y.push(u, e);
|
|
1025
|
+
if (l) {
|
|
1026
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
1027
|
+
Y[u][0](Y[u + 1]);
|
|
1009
1028
|
Y.length = 0;
|
|
1010
1029
|
}
|
|
1011
1030
|
}
|
|
@@ -1013,192 +1032,150 @@ function Ae(e, t = D) {
|
|
|
1013
1032
|
function o(a) {
|
|
1014
1033
|
i(a(e));
|
|
1015
1034
|
}
|
|
1016
|
-
function s(a,
|
|
1017
|
-
const
|
|
1018
|
-
return n.add(
|
|
1019
|
-
n.delete(
|
|
1035
|
+
function s(a, l = D) {
|
|
1036
|
+
const u = [a, l];
|
|
1037
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
1038
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1020
1039
|
};
|
|
1021
1040
|
}
|
|
1022
1041
|
return { set: i, update: o, subscribe: s };
|
|
1023
1042
|
}
|
|
1024
|
-
function
|
|
1043
|
+
function se(e, t, r) {
|
|
1025
1044
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1026
1045
|
if (!i.every(Boolean))
|
|
1027
1046
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1028
1047
|
const o = t.length < 2;
|
|
1029
|
-
return
|
|
1030
|
-
let
|
|
1031
|
-
const
|
|
1048
|
+
return vn(r, (s, a) => {
|
|
1049
|
+
let l = !1;
|
|
1050
|
+
const u = [];
|
|
1032
1051
|
let h = 0, c = D;
|
|
1033
1052
|
const f = () => {
|
|
1034
1053
|
if (h)
|
|
1035
1054
|
return;
|
|
1036
1055
|
c();
|
|
1037
|
-
const
|
|
1038
|
-
o ? s(
|
|
1056
|
+
const p = t(n ? u[0] : u, s, a);
|
|
1057
|
+
o ? s(p) : c = Se(p) ? p : D;
|
|
1039
1058
|
}, m = i.map(
|
|
1040
|
-
(
|
|
1041
|
-
|
|
1059
|
+
(p, b) => Lr(
|
|
1060
|
+
p,
|
|
1042
1061
|
(T) => {
|
|
1043
|
-
|
|
1062
|
+
u[b] = T, h &= ~(1 << b), l && f();
|
|
1044
1063
|
},
|
|
1045
1064
|
() => {
|
|
1046
1065
|
h |= 1 << b;
|
|
1047
1066
|
}
|
|
1048
1067
|
)
|
|
1049
1068
|
);
|
|
1050
|
-
return
|
|
1051
|
-
X(m), c(),
|
|
1069
|
+
return l = !0, f(), function() {
|
|
1070
|
+
X(m), c(), l = !1;
|
|
1052
1071
|
};
|
|
1053
1072
|
});
|
|
1054
1073
|
}
|
|
1055
|
-
function
|
|
1074
|
+
function yn(e) {
|
|
1056
1075
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1057
1076
|
}
|
|
1058
|
-
var
|
|
1059
|
-
return
|
|
1077
|
+
var _n = function(t) {
|
|
1078
|
+
return xn(t) && !En(t);
|
|
1060
1079
|
};
|
|
1061
|
-
function
|
|
1080
|
+
function xn(e) {
|
|
1062
1081
|
return !!e && typeof e == "object";
|
|
1063
1082
|
}
|
|
1064
|
-
function
|
|
1083
|
+
function En(e) {
|
|
1065
1084
|
var t = Object.prototype.toString.call(e);
|
|
1066
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1085
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
|
1067
1086
|
}
|
|
1068
|
-
var
|
|
1069
|
-
function
|
|
1070
|
-
return e.$$typeof ===
|
|
1087
|
+
var Cn = typeof Symbol == "function" && Symbol.for, wn = Cn ? Symbol.for("react.element") : 60103;
|
|
1088
|
+
function Sn(e) {
|
|
1089
|
+
return e.$$typeof === wn;
|
|
1071
1090
|
}
|
|
1072
|
-
function
|
|
1091
|
+
function Tn(e) {
|
|
1073
1092
|
return Array.isArray(e) ? [] : {};
|
|
1074
1093
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1094
|
+
function fe(e, t) {
|
|
1095
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Tn(e), e, t) : e;
|
|
1077
1096
|
}
|
|
1078
|
-
function
|
|
1097
|
+
function Hn(e, t, r) {
|
|
1079
1098
|
return e.concat(t).map(function(n) {
|
|
1080
|
-
return
|
|
1099
|
+
return fe(n, r);
|
|
1081
1100
|
});
|
|
1082
1101
|
}
|
|
1083
|
-
function
|
|
1102
|
+
function An(e, t) {
|
|
1084
1103
|
if (!t.customMerge)
|
|
1085
|
-
return
|
|
1104
|
+
return re;
|
|
1086
1105
|
var r = t.customMerge(e);
|
|
1087
|
-
return typeof r == "function" ? r :
|
|
1106
|
+
return typeof r == "function" ? r : re;
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1108
|
+
function In(e) {
|
|
1090
1109
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1091
1110
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1092
1111
|
}) : [];
|
|
1093
1112
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return Object.keys(e).concat(
|
|
1113
|
+
function vt(e) {
|
|
1114
|
+
return Object.keys(e).concat(In(e));
|
|
1096
1115
|
}
|
|
1097
|
-
function
|
|
1116
|
+
function qt(e, t) {
|
|
1098
1117
|
try {
|
|
1099
1118
|
return t in e;
|
|
1100
1119
|
} catch {
|
|
1101
1120
|
return !1;
|
|
1102
1121
|
}
|
|
1103
1122
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1123
|
+
function Bn(e, t) {
|
|
1124
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1106
1125
|
}
|
|
1107
|
-
function
|
|
1126
|
+
function Pn(e, t, r) {
|
|
1108
1127
|
var n = {};
|
|
1109
|
-
return r.isMergeableObject(e) &&
|
|
1110
|
-
n[i] =
|
|
1111
|
-
}),
|
|
1112
|
-
|
|
1128
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
|
1129
|
+
n[i] = fe(e[i], r);
|
|
1130
|
+
}), vt(t).forEach(function(i) {
|
|
1131
|
+
Bn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1113
1132
|
}), n;
|
|
1114
1133
|
}
|
|
1115
|
-
function
|
|
1116
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1134
|
+
function re(e, t, r) {
|
|
1135
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hn, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1117
1136
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1118
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1137
|
+
return o ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : fe(t, r);
|
|
1119
1138
|
}
|
|
1120
|
-
|
|
1139
|
+
re.all = function(t, r) {
|
|
1121
1140
|
if (!Array.isArray(t))
|
|
1122
1141
|
throw new Error("first argument should be an array");
|
|
1123
1142
|
return t.reduce(function(n, i) {
|
|
1124
|
-
return
|
|
1143
|
+
return re(n, i, r);
|
|
1125
1144
|
}, {});
|
|
1126
1145
|
};
|
|
1127
|
-
var
|
|
1128
|
-
const
|
|
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;
|
|
1146
|
+
var On = re, Mn = On;
|
|
1147
|
+
const Ln = /* @__PURE__ */ yn(Mn);
|
|
1148
|
+
function Re(e, t) {
|
|
1149
|
+
var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Un;
|
|
1173
1150
|
return i(e, {
|
|
1174
1151
|
cache: r,
|
|
1175
1152
|
serializer: n
|
|
1176
1153
|
});
|
|
1177
1154
|
}
|
|
1178
|
-
function
|
|
1155
|
+
function Nn(e) {
|
|
1179
1156
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1180
1157
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var i =
|
|
1158
|
+
function Rn(e, t, r, n) {
|
|
1159
|
+
var i = Nn(n) ? n : r(n), o = t.get(i);
|
|
1183
1160
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1184
1161
|
}
|
|
1185
|
-
function
|
|
1162
|
+
function Jt(e, t, r) {
|
|
1186
1163
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1187
1164
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1188
1165
|
}
|
|
1189
|
-
function
|
|
1166
|
+
function Kt(e, t, r, n, i) {
|
|
1190
1167
|
return r.bind(t, e, n, i);
|
|
1191
1168
|
}
|
|
1192
|
-
function
|
|
1193
|
-
var r = e.length === 1 ?
|
|
1194
|
-
return
|
|
1169
|
+
function Un(e, t) {
|
|
1170
|
+
var r = e.length === 1 ? Rn : Jt;
|
|
1171
|
+
return Kt(e, this, r, t.cache.create(), t.serializer);
|
|
1195
1172
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1173
|
+
function Dn(e, t) {
|
|
1174
|
+
return Kt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1198
1175
|
}
|
|
1199
|
-
var
|
|
1176
|
+
var $n = function() {
|
|
1200
1177
|
return JSON.stringify(arguments);
|
|
1201
|
-
},
|
|
1178
|
+
}, kn = (
|
|
1202
1179
|
/** @class */
|
|
1203
1180
|
function() {
|
|
1204
1181
|
function e() {
|
|
@@ -1210,71 +1187,61 @@ var Vn = function() {
|
|
|
1210
1187
|
this.cache[t] = r;
|
|
1211
1188
|
}, e;
|
|
1212
1189
|
}()
|
|
1213
|
-
),
|
|
1190
|
+
), Gn = {
|
|
1214
1191
|
create: function() {
|
|
1215
|
-
return new
|
|
1192
|
+
return new kn();
|
|
1216
1193
|
}
|
|
1217
|
-
},
|
|
1218
|
-
variadic:
|
|
1219
|
-
},
|
|
1220
|
-
return we = Object.assign || function(t) {
|
|
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;
|
|
1194
|
+
}, Ue = {
|
|
1195
|
+
variadic: Dn
|
|
1196
|
+
}, v;
|
|
1230
1197
|
(function(e) {
|
|
1231
1198
|
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
1199
|
})(v || (v = {}));
|
|
1233
|
-
var
|
|
1200
|
+
var C;
|
|
1234
1201
|
(function(e) {
|
|
1235
1202
|
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
|
|
1203
|
+
})(C || (C = {}));
|
|
1204
|
+
var ne;
|
|
1238
1205
|
(function(e) {
|
|
1239
1206
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1240
|
-
})(
|
|
1241
|
-
function
|
|
1242
|
-
return e.type ===
|
|
1207
|
+
})(ne || (ne = {}));
|
|
1208
|
+
function yt(e) {
|
|
1209
|
+
return e.type === C.literal;
|
|
1243
1210
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1211
|
+
function Fn(e) {
|
|
1212
|
+
return e.type === C.argument;
|
|
1246
1213
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1214
|
+
function er(e) {
|
|
1215
|
+
return e.type === C.number;
|
|
1249
1216
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return e.type ===
|
|
1217
|
+
function tr(e) {
|
|
1218
|
+
return e.type === C.date;
|
|
1252
1219
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1220
|
+
function rr(e) {
|
|
1221
|
+
return e.type === C.time;
|
|
1255
1222
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1223
|
+
function nr(e) {
|
|
1224
|
+
return e.type === C.select;
|
|
1258
1225
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1226
|
+
function ir(e) {
|
|
1227
|
+
return e.type === C.plural;
|
|
1261
1228
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1229
|
+
function jn(e) {
|
|
1230
|
+
return e.type === C.pound;
|
|
1264
1231
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1232
|
+
function or(e) {
|
|
1233
|
+
return e.type === C.tag;
|
|
1267
1234
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1235
|
+
function sr(e) {
|
|
1236
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1270
1237
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1238
|
+
function Ze(e) {
|
|
1239
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1273
1240
|
}
|
|
1274
|
-
var
|
|
1275
|
-
function
|
|
1241
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vn = /(?:[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;
|
|
1242
|
+
function Wn(e) {
|
|
1276
1243
|
var t = {};
|
|
1277
|
-
return e.replace(
|
|
1244
|
+
return e.replace(Vn, function(r) {
|
|
1278
1245
|
var n = r.length;
|
|
1279
1246
|
switch (r[0]) {
|
|
1280
1247
|
case "G":
|
|
@@ -1363,46 +1330,36 @@ function Yn(e) {
|
|
|
1363
1330
|
return "";
|
|
1364
1331
|
}), t;
|
|
1365
1332
|
}
|
|
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) {
|
|
1333
|
+
var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1334
|
+
function zn(e) {
|
|
1378
1335
|
if (e.length === 0)
|
|
1379
1336
|
throw new Error("Number skeleton cannot be empty");
|
|
1380
|
-
for (var t = e.split(
|
|
1337
|
+
for (var t = e.split(Xn).filter(function(f) {
|
|
1381
1338
|
return f.length > 0;
|
|
1382
1339
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1383
1340
|
var o = i[n], s = o.split("/");
|
|
1384
1341
|
if (s.length === 0)
|
|
1385
1342
|
throw new Error("Invalid number skeleton");
|
|
1386
|
-
for (var a = s[0],
|
|
1387
|
-
var c = h[
|
|
1343
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1344
|
+
var c = h[u];
|
|
1388
1345
|
if (c.length === 0)
|
|
1389
1346
|
throw new Error("Invalid number skeleton");
|
|
1390
1347
|
}
|
|
1391
|
-
r.push({ stem: a, options:
|
|
1348
|
+
r.push({ stem: a, options: l });
|
|
1392
1349
|
}
|
|
1393
1350
|
return r;
|
|
1394
1351
|
}
|
|
1395
|
-
function
|
|
1352
|
+
function Zn(e) {
|
|
1396
1353
|
return e.replace(/^(.*?)-/, "");
|
|
1397
1354
|
}
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1355
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Qn = /(\*)(0+)|(#+)(0+)|(0+)/g, ur = /^(0+)$/;
|
|
1356
|
+
function xt(e) {
|
|
1400
1357
|
var t = {};
|
|
1401
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1358
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, n, i) {
|
|
1402
1359
|
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
1360
|
}), t;
|
|
1404
1361
|
}
|
|
1405
|
-
function
|
|
1362
|
+
function hr(e) {
|
|
1406
1363
|
switch (e) {
|
|
1407
1364
|
case "sign-auto":
|
|
1408
1365
|
return {
|
|
@@ -1442,7 +1399,7 @@ function mr(e) {
|
|
|
1442
1399
|
};
|
|
1443
1400
|
}
|
|
1444
1401
|
}
|
|
1445
|
-
function
|
|
1402
|
+
function Yn(e) {
|
|
1446
1403
|
var t;
|
|
1447
1404
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1448
1405
|
notation: "engineering"
|
|
@@ -1450,17 +1407,17 @@ function ti(e) {
|
|
|
1450
1407
|
notation: "scientific"
|
|
1451
1408
|
}, e = e.slice(1)), t) {
|
|
1452
1409
|
var r = e.slice(0, 2);
|
|
1453
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1410
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ur.test(e))
|
|
1454
1411
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1455
1412
|
t.minimumIntegerDigits = e.length;
|
|
1456
1413
|
}
|
|
1457
1414
|
return t;
|
|
1458
1415
|
}
|
|
1459
|
-
function
|
|
1460
|
-
var t = {}, r =
|
|
1416
|
+
function Et(e) {
|
|
1417
|
+
var t = {}, r = hr(e);
|
|
1461
1418
|
return r || t;
|
|
1462
1419
|
}
|
|
1463
|
-
function
|
|
1420
|
+
function qn(e) {
|
|
1464
1421
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1465
1422
|
var i = n[r];
|
|
1466
1423
|
switch (i.stem) {
|
|
@@ -1484,7 +1441,7 @@ function ri(e) {
|
|
|
1484
1441
|
continue;
|
|
1485
1442
|
case "measure-unit":
|
|
1486
1443
|
case "unit":
|
|
1487
|
-
t.style = "unit", t.unit =
|
|
1444
|
+
t.style = "unit", t.unit = Zn(i.options[0]);
|
|
1488
1445
|
continue;
|
|
1489
1446
|
case "compact-short":
|
|
1490
1447
|
case "K":
|
|
@@ -1495,13 +1452,13 @@ function ri(e) {
|
|
|
1495
1452
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1496
1453
|
continue;
|
|
1497
1454
|
case "scientific":
|
|
1498
|
-
t =
|
|
1499
|
-
return
|
|
1455
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1456
|
+
return _(_({}, l), Et(u));
|
|
1500
1457
|
}, {}));
|
|
1501
1458
|
continue;
|
|
1502
1459
|
case "engineering":
|
|
1503
|
-
t =
|
|
1504
|
-
return
|
|
1460
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1461
|
+
return _(_({}, l), Et(u));
|
|
1505
1462
|
}, {}));
|
|
1506
1463
|
continue;
|
|
1507
1464
|
case "notation-simple":
|
|
@@ -1546,8 +1503,8 @@ function ri(e) {
|
|
|
1546
1503
|
case "integer-width":
|
|
1547
1504
|
if (i.options.length > 1)
|
|
1548
1505
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1549
|
-
i.options[0].replace(
|
|
1550
|
-
if (
|
|
1506
|
+
i.options[0].replace(Qn, function(l, u, h, c, f, m) {
|
|
1507
|
+
if (u)
|
|
1551
1508
|
t.minimumIntegerDigits = h.length;
|
|
1552
1509
|
else {
|
|
1553
1510
|
if (c && f)
|
|
@@ -1559,28 +1516,28 @@ function ri(e) {
|
|
|
1559
1516
|
});
|
|
1560
1517
|
continue;
|
|
1561
1518
|
}
|
|
1562
|
-
if (
|
|
1519
|
+
if (ur.test(i.stem)) {
|
|
1563
1520
|
t.minimumIntegerDigits = i.stem.length;
|
|
1564
1521
|
continue;
|
|
1565
1522
|
}
|
|
1566
|
-
if (
|
|
1523
|
+
if (_t.test(i.stem)) {
|
|
1567
1524
|
if (i.options.length > 1)
|
|
1568
1525
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1569
|
-
i.stem.replace(
|
|
1570
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1526
|
+
i.stem.replace(_t, function(l, u, h, c, f, m) {
|
|
1527
|
+
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
1528
|
});
|
|
1572
1529
|
var o = i.options[0];
|
|
1573
|
-
o === "w" ? t =
|
|
1530
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), xt(o)));
|
|
1574
1531
|
continue;
|
|
1575
1532
|
}
|
|
1576
|
-
if (
|
|
1577
|
-
t =
|
|
1533
|
+
if (lr.test(i.stem)) {
|
|
1534
|
+
t = _(_({}, t), xt(i.stem));
|
|
1578
1535
|
continue;
|
|
1579
1536
|
}
|
|
1580
|
-
var s =
|
|
1581
|
-
s && (t =
|
|
1582
|
-
var a =
|
|
1583
|
-
a && (t =
|
|
1537
|
+
var s = hr(i.stem);
|
|
1538
|
+
s && (t = _(_({}, t), s));
|
|
1539
|
+
var a = Yn(i.stem);
|
|
1540
|
+
a && (t = _(_({}, t), a));
|
|
1584
1541
|
}
|
|
1585
1542
|
return t;
|
|
1586
1543
|
}
|
|
@@ -2999,23 +2956,23 @@ var ge = {
|
|
|
2999
2956
|
"h"
|
|
3000
2957
|
]
|
|
3001
2958
|
};
|
|
3002
|
-
function
|
|
2959
|
+
function Jn(e, t) {
|
|
3003
2960
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3004
2961
|
var i = e.charAt(n);
|
|
3005
2962
|
if (i === "j") {
|
|
3006
2963
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3007
2964
|
o++, n++;
|
|
3008
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
3009
|
-
for ((
|
|
3010
|
-
r +=
|
|
2965
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Kn(t);
|
|
2966
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2967
|
+
r += l;
|
|
3011
2968
|
for (; s-- > 0; )
|
|
3012
|
-
r =
|
|
2969
|
+
r = u + r;
|
|
3013
2970
|
} else
|
|
3014
2971
|
i === "J" ? r += "H" : r += i;
|
|
3015
2972
|
}
|
|
3016
2973
|
return r;
|
|
3017
2974
|
}
|
|
3018
|
-
function
|
|
2975
|
+
function Kn(e) {
|
|
3019
2976
|
var t = e.hourCycle;
|
|
3020
2977
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3021
2978
|
e.hourCycles && // @ts-ignore
|
|
@@ -3037,20 +2994,20 @@ function ii(e) {
|
|
|
3037
2994
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3038
2995
|
return i[0];
|
|
3039
2996
|
}
|
|
3040
|
-
var
|
|
2997
|
+
var De, ei = new RegExp("^".concat(ar.source, "*")), ti = new RegExp("".concat(ar.source, "*$"));
|
|
3041
2998
|
function y(e, t) {
|
|
3042
2999
|
return { start: e, end: t };
|
|
3043
3000
|
}
|
|
3044
|
-
var
|
|
3001
|
+
var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
|
|
3045
3002
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3046
|
-
},
|
|
3003
|
+
}, Qe = !0;
|
|
3047
3004
|
try {
|
|
3048
|
-
var
|
|
3049
|
-
|
|
3005
|
+
var hi = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3006
|
+
Qe = ((De = hi.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3050
3007
|
} catch {
|
|
3051
|
-
|
|
3008
|
+
Qe = !1;
|
|
3052
3009
|
}
|
|
3053
|
-
var
|
|
3010
|
+
var Ct = ri ? (
|
|
3054
3011
|
// Native
|
|
3055
3012
|
function(t, r, n) {
|
|
3056
3013
|
return t.startsWith(r, n);
|
|
@@ -3060,7 +3017,7 @@ var At = ai ? (
|
|
|
3060
3017
|
function(t, r, n) {
|
|
3061
3018
|
return t.slice(n, n + r.length) === r;
|
|
3062
3019
|
}
|
|
3063
|
-
),
|
|
3020
|
+
), Ye = ni ? String.fromCodePoint : (
|
|
3064
3021
|
// IE11
|
|
3065
3022
|
function() {
|
|
3066
3023
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3072,9 +3029,9 @@ var At = ai ? (
|
|
|
3072
3029
|
}
|
|
3073
3030
|
return n;
|
|
3074
3031
|
}
|
|
3075
|
-
),
|
|
3032
|
+
), wt = (
|
|
3076
3033
|
// native
|
|
3077
|
-
|
|
3034
|
+
ii ? Object.fromEntries : (
|
|
3078
3035
|
// Ponyfill
|
|
3079
3036
|
function(t) {
|
|
3080
3037
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3084,7 +3041,7 @@ var At = ai ? (
|
|
|
3084
3041
|
return r;
|
|
3085
3042
|
}
|
|
3086
3043
|
)
|
|
3087
|
-
),
|
|
3044
|
+
), cr = oi ? (
|
|
3088
3045
|
// Native
|
|
3089
3046
|
function(t, r) {
|
|
3090
3047
|
return t.codePointAt(r);
|
|
@@ -3098,7 +3055,7 @@ var At = ai ? (
|
|
|
3098
3055
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3099
3056
|
}
|
|
3100
3057
|
}
|
|
3101
|
-
),
|
|
3058
|
+
), ci = si ? (
|
|
3102
3059
|
// Native
|
|
3103
3060
|
function(t) {
|
|
3104
3061
|
return t.trimStart();
|
|
@@ -3106,9 +3063,9 @@ var At = ai ? (
|
|
|
3106
3063
|
) : (
|
|
3107
3064
|
// Ponyfill
|
|
3108
3065
|
function(t) {
|
|
3109
|
-
return t.replace(
|
|
3066
|
+
return t.replace(ei, "");
|
|
3110
3067
|
}
|
|
3111
|
-
),
|
|
3068
|
+
), fi = ai ? (
|
|
3112
3069
|
// Native
|
|
3113
3070
|
function(t) {
|
|
3114
3071
|
return t.trimEnd();
|
|
@@ -3116,32 +3073,32 @@ var At = ai ? (
|
|
|
3116
3073
|
) : (
|
|
3117
3074
|
// Ponyfill
|
|
3118
3075
|
function(t) {
|
|
3119
|
-
return t.replace(
|
|
3076
|
+
return t.replace(ti, "");
|
|
3120
3077
|
}
|
|
3121
3078
|
);
|
|
3122
|
-
function
|
|
3079
|
+
function fr(e, t) {
|
|
3123
3080
|
return new RegExp(e, t);
|
|
3124
3081
|
}
|
|
3125
|
-
var
|
|
3126
|
-
if (
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3082
|
+
var qe;
|
|
3083
|
+
if (Qe) {
|
|
3084
|
+
var St = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3085
|
+
qe = function(t, r) {
|
|
3129
3086
|
var n;
|
|
3130
|
-
|
|
3131
|
-
var i =
|
|
3087
|
+
St.lastIndex = r;
|
|
3088
|
+
var i = St.exec(t);
|
|
3132
3089
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3133
3090
|
};
|
|
3134
3091
|
} else
|
|
3135
|
-
|
|
3092
|
+
qe = function(t, r) {
|
|
3136
3093
|
for (var n = []; ; ) {
|
|
3137
|
-
var i =
|
|
3138
|
-
if (i === void 0 ||
|
|
3094
|
+
var i = cr(t, r);
|
|
3095
|
+
if (i === void 0 || dr(i) || bi(i))
|
|
3139
3096
|
break;
|
|
3140
3097
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3141
3098
|
}
|
|
3142
|
-
return
|
|
3099
|
+
return Ye.apply(void 0, n);
|
|
3143
3100
|
};
|
|
3144
|
-
var
|
|
3101
|
+
var di = (
|
|
3145
3102
|
/** @class */
|
|
3146
3103
|
function() {
|
|
3147
3104
|
function e(t, r) {
|
|
@@ -3165,14 +3122,14 @@ var vi = (
|
|
|
3165
3122
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3166
3123
|
var a = this.clonePosition();
|
|
3167
3124
|
this.bump(), i.push({
|
|
3168
|
-
type:
|
|
3125
|
+
type: C.pound,
|
|
3169
3126
|
location: y(a, this.clonePosition())
|
|
3170
3127
|
});
|
|
3171
3128
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3172
3129
|
if (n)
|
|
3173
3130
|
break;
|
|
3174
3131
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3175
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3132
|
+
} else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
|
3176
3133
|
var s = this.parseTag(t, r);
|
|
3177
3134
|
if (s.err)
|
|
3178
3135
|
return s;
|
|
@@ -3193,7 +3150,7 @@ var vi = (
|
|
|
3193
3150
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3194
3151
|
return {
|
|
3195
3152
|
val: {
|
|
3196
|
-
type:
|
|
3153
|
+
type: C.literal,
|
|
3197
3154
|
value: "<".concat(i, "/>"),
|
|
3198
3155
|
location: y(n, this.clonePosition())
|
|
3199
3156
|
},
|
|
@@ -3205,12 +3162,12 @@ var vi = (
|
|
|
3205
3162
|
return o;
|
|
3206
3163
|
var s = o.val, a = this.clonePosition();
|
|
3207
3164
|
if (this.bumpIf("</")) {
|
|
3208
|
-
if (this.isEOF() || !
|
|
3165
|
+
if (this.isEOF() || !Je(this.char()))
|
|
3209
3166
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
|
3210
|
-
var
|
|
3211
|
-
return i !==
|
|
3167
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3168
|
+
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3212
3169
|
val: {
|
|
3213
|
-
type:
|
|
3170
|
+
type: C.tag,
|
|
3214
3171
|
value: i,
|
|
3215
3172
|
children: s,
|
|
3216
3173
|
location: y(n, this.clonePosition())
|
|
@@ -3223,7 +3180,7 @@ var vi = (
|
|
|
3223
3180
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
|
3224
3181
|
}, e.prototype.parseTagName = function() {
|
|
3225
3182
|
var t = this.offset();
|
|
3226
|
-
for (this.bump(); !this.isEOF() &&
|
|
3183
|
+
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
|
3227
3184
|
this.bump();
|
|
3228
3185
|
return this.message.slice(t, this.offset());
|
|
3229
3186
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3245,14 +3202,14 @@ var vi = (
|
|
|
3245
3202
|
}
|
|
3246
3203
|
break;
|
|
3247
3204
|
}
|
|
3248
|
-
var
|
|
3205
|
+
var l = y(n, this.clonePosition());
|
|
3249
3206
|
return {
|
|
3250
|
-
val: { type:
|
|
3207
|
+
val: { type: C.literal, value: i, location: l },
|
|
3251
3208
|
err: null
|
|
3252
3209
|
};
|
|
3253
3210
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3254
3211
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3255
|
-
!
|
|
3212
|
+
!pi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3256
3213
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3257
3214
|
if (this.isEOF() || this.char() !== 39)
|
|
3258
3215
|
return null;
|
|
@@ -3286,12 +3243,12 @@ var vi = (
|
|
|
3286
3243
|
r.push(n);
|
|
3287
3244
|
this.bump();
|
|
3288
3245
|
}
|
|
3289
|
-
return
|
|
3246
|
+
return Ye.apply(void 0, r);
|
|
3290
3247
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3291
3248
|
if (this.isEOF())
|
|
3292
3249
|
return null;
|
|
3293
3250
|
var n = this.char();
|
|
3294
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3251
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
|
3295
3252
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3296
3253
|
var n = this.clonePosition();
|
|
3297
3254
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3307,7 +3264,7 @@ var vi = (
|
|
|
3307
3264
|
case 125:
|
|
3308
3265
|
return this.bump(), {
|
|
3309
3266
|
val: {
|
|
3310
|
-
type:
|
|
3267
|
+
type: C.argument,
|
|
3311
3268
|
// value does not include the opening and closing braces.
|
|
3312
3269
|
value: i,
|
|
3313
3270
|
location: y(n, this.clonePosition())
|
|
@@ -3320,54 +3277,54 @@ var vi = (
|
|
|
3320
3277
|
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3321
3278
|
}
|
|
3322
3279
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3323
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3280
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
3324
3281
|
this.bumpTo(i);
|
|
3325
3282
|
var o = this.clonePosition(), s = y(t, o);
|
|
3326
3283
|
return { value: n, location: s };
|
|
3327
3284
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3328
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3285
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3329
3286
|
switch (a) {
|
|
3330
3287
|
case "":
|
|
3331
|
-
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s,
|
|
3288
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
3332
3289
|
case "number":
|
|
3333
3290
|
case "date":
|
|
3334
3291
|
case "time": {
|
|
3335
3292
|
this.bumpSpace();
|
|
3336
|
-
var
|
|
3293
|
+
var u = null;
|
|
3337
3294
|
if (this.bumpIf(",")) {
|
|
3338
3295
|
this.bumpSpace();
|
|
3339
3296
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3340
3297
|
if (c.err)
|
|
3341
3298
|
return c;
|
|
3342
|
-
var f =
|
|
3299
|
+
var f = fi(c.val);
|
|
3343
3300
|
if (f.length === 0)
|
|
3344
3301
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3345
3302
|
var m = y(h, this.clonePosition());
|
|
3346
|
-
|
|
3303
|
+
u = { style: f, styleLocation: m };
|
|
3347
3304
|
}
|
|
3348
|
-
var
|
|
3349
|
-
if (
|
|
3350
|
-
return
|
|
3305
|
+
var p = this.tryParseArgumentClose(i);
|
|
3306
|
+
if (p.err)
|
|
3307
|
+
return p;
|
|
3351
3308
|
var b = y(i, this.clonePosition());
|
|
3352
|
-
if (
|
|
3353
|
-
var T =
|
|
3309
|
+
if (u && Ct(u?.style, "::", 0)) {
|
|
3310
|
+
var T = ci(u.style.slice(2));
|
|
3354
3311
|
if (a === "number") {
|
|
3355
|
-
var c = this.parseNumberSkeletonFromString(T,
|
|
3312
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3356
3313
|
return c.err ? c : {
|
|
3357
|
-
val: { type:
|
|
3314
|
+
val: { type: C.number, value: n, location: b, style: c.val },
|
|
3358
3315
|
err: null
|
|
3359
3316
|
};
|
|
3360
3317
|
} else {
|
|
3361
3318
|
if (T.length === 0)
|
|
3362
3319
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3363
3320
|
var L = T;
|
|
3364
|
-
this.locale && (L =
|
|
3321
|
+
this.locale && (L = Jn(T, this.locale));
|
|
3365
3322
|
var f = {
|
|
3366
|
-
type:
|
|
3323
|
+
type: ne.dateTime,
|
|
3367
3324
|
pattern: L,
|
|
3368
|
-
location:
|
|
3369
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3370
|
-
}, P = a === "date" ?
|
|
3325
|
+
location: u.styleLocation,
|
|
3326
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(L) : {}
|
|
3327
|
+
}, P = a === "date" ? C.date : C.time;
|
|
3371
3328
|
return {
|
|
3372
3329
|
val: { type: P, value: n, location: b, style: f },
|
|
3373
3330
|
err: null
|
|
@@ -3376,10 +3333,10 @@ var vi = (
|
|
|
3376
3333
|
}
|
|
3377
3334
|
return {
|
|
3378
3335
|
val: {
|
|
3379
|
-
type: a === "number" ?
|
|
3336
|
+
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
3380
3337
|
value: n,
|
|
3381
3338
|
location: b,
|
|
3382
|
-
style: (o =
|
|
3339
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3383
3340
|
},
|
|
3384
3341
|
err: null
|
|
3385
3342
|
};
|
|
@@ -3389,7 +3346,7 @@ var vi = (
|
|
|
3389
3346
|
case "select": {
|
|
3390
3347
|
var A = this.clonePosition();
|
|
3391
3348
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3392
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A,
|
|
3349
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, _({}, A)));
|
|
3393
3350
|
this.bumpSpace();
|
|
3394
3351
|
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3395
3352
|
if (a !== "select" && O.value === "offset") {
|
|
@@ -3404,23 +3361,23 @@ var vi = (
|
|
|
3404
3361
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3405
3362
|
if (N.err)
|
|
3406
3363
|
return N;
|
|
3407
|
-
var
|
|
3408
|
-
if (
|
|
3409
|
-
return
|
|
3364
|
+
var p = this.tryParseArgumentClose(i);
|
|
3365
|
+
if (p.err)
|
|
3366
|
+
return p;
|
|
3410
3367
|
var g = y(i, this.clonePosition());
|
|
3411
3368
|
return a === "select" ? {
|
|
3412
3369
|
val: {
|
|
3413
|
-
type:
|
|
3370
|
+
type: C.select,
|
|
3414
3371
|
value: n,
|
|
3415
|
-
options:
|
|
3372
|
+
options: wt(N.val),
|
|
3416
3373
|
location: g
|
|
3417
3374
|
},
|
|
3418
3375
|
err: null
|
|
3419
3376
|
} : {
|
|
3420
3377
|
val: {
|
|
3421
|
-
type:
|
|
3378
|
+
type: C.plural,
|
|
3422
3379
|
value: n,
|
|
3423
|
-
options:
|
|
3380
|
+
options: wt(N.val),
|
|
3424
3381
|
offset: w,
|
|
3425
3382
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3426
3383
|
location: g
|
|
@@ -3429,7 +3386,7 @@ var vi = (
|
|
|
3429
3386
|
};
|
|
3430
3387
|
}
|
|
3431
3388
|
default:
|
|
3432
|
-
return this.error(v.INVALID_ARGUMENT_TYPE, y(s,
|
|
3389
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3433
3390
|
}
|
|
3434
3391
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3435
3392
|
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 +3428,50 @@ var vi = (
|
|
|
3471
3428
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3472
3429
|
var n = [];
|
|
3473
3430
|
try {
|
|
3474
|
-
n =
|
|
3431
|
+
n = zn(t);
|
|
3475
3432
|
} catch {
|
|
3476
3433
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3477
3434
|
}
|
|
3478
3435
|
return {
|
|
3479
3436
|
val: {
|
|
3480
|
-
type:
|
|
3437
|
+
type: ne.number,
|
|
3481
3438
|
tokens: n,
|
|
3482
3439
|
location: r,
|
|
3483
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3440
|
+
parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
|
|
3484
3441
|
},
|
|
3485
3442
|
err: null
|
|
3486
3443
|
};
|
|
3487
3444
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3488
|
-
for (var o, s = !1, a = [],
|
|
3489
|
-
if (
|
|
3445
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3446
|
+
if (u.length === 0) {
|
|
3490
3447
|
var c = this.clonePosition();
|
|
3491
3448
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3492
3449
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3493
3450
|
if (f.err)
|
|
3494
3451
|
return f;
|
|
3495
|
-
h = y(c, this.clonePosition()),
|
|
3452
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3496
3453
|
} else
|
|
3497
3454
|
break;
|
|
3498
3455
|
}
|
|
3499
|
-
if (
|
|
3456
|
+
if (l.has(u))
|
|
3500
3457
|
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3501
|
-
|
|
3458
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3502
3459
|
var m = this.clonePosition();
|
|
3503
3460
|
if (!this.bumpIf("{"))
|
|
3504
3461
|
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
|
|
3462
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3463
|
+
if (p.err)
|
|
3464
|
+
return p;
|
|
3508
3465
|
var b = this.tryParseArgumentClose(m);
|
|
3509
3466
|
if (b.err)
|
|
3510
3467
|
return b;
|
|
3511
3468
|
a.push([
|
|
3512
|
-
|
|
3469
|
+
u,
|
|
3513
3470
|
{
|
|
3514
|
-
value:
|
|
3471
|
+
value: p.val,
|
|
3515
3472
|
location: y(m, this.clonePosition())
|
|
3516
3473
|
}
|
|
3517
|
-
]),
|
|
3474
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3518
3475
|
}
|
|
3519
3476
|
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
3477
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3527,8 +3484,8 @@ var vi = (
|
|
|
3527
3484
|
else
|
|
3528
3485
|
break;
|
|
3529
3486
|
}
|
|
3530
|
-
var
|
|
3531
|
-
return o ? (s *= n,
|
|
3487
|
+
var l = y(i, this.clonePosition());
|
|
3488
|
+
return o ? (s *= n, ui(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3532
3489
|
}, e.prototype.offset = function() {
|
|
3533
3490
|
return this.position.offset;
|
|
3534
3491
|
}, e.prototype.isEOF = function() {
|
|
@@ -3543,7 +3500,7 @@ var vi = (
|
|
|
3543
3500
|
var t = this.position.offset;
|
|
3544
3501
|
if (t >= this.message.length)
|
|
3545
3502
|
throw Error("out of bound");
|
|
3546
|
-
var r =
|
|
3503
|
+
var r = cr(this.message, t);
|
|
3547
3504
|
if (r === void 0)
|
|
3548
3505
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3549
3506
|
return r;
|
|
@@ -3562,7 +3519,7 @@ var vi = (
|
|
|
3562
3519
|
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
3520
|
}
|
|
3564
3521
|
}, e.prototype.bumpIf = function(t) {
|
|
3565
|
-
if (
|
|
3522
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3566
3523
|
for (var r = 0; r < t.length; r++)
|
|
3567
3524
|
this.bump();
|
|
3568
3525
|
return !0;
|
|
@@ -3584,7 +3541,7 @@ var vi = (
|
|
|
3584
3541
|
break;
|
|
3585
3542
|
}
|
|
3586
3543
|
}, e.prototype.bumpSpace = function() {
|
|
3587
|
-
for (; !this.isEOF() &&
|
|
3544
|
+
for (; !this.isEOF() && dr(this.char()); )
|
|
3588
3545
|
this.bump();
|
|
3589
3546
|
}, e.prototype.peek = function() {
|
|
3590
3547
|
if (this.isEOF())
|
|
@@ -3594,47 +3551,47 @@ var vi = (
|
|
|
3594
3551
|
}, e;
|
|
3595
3552
|
}()
|
|
3596
3553
|
);
|
|
3597
|
-
function
|
|
3554
|
+
function Je(e) {
|
|
3598
3555
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3599
3556
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3557
|
+
function pi(e) {
|
|
3558
|
+
return Je(e) || e === 47;
|
|
3602
3559
|
}
|
|
3603
|
-
function
|
|
3560
|
+
function mi(e) {
|
|
3604
3561
|
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
3562
|
}
|
|
3606
|
-
function
|
|
3563
|
+
function dr(e) {
|
|
3607
3564
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3608
3565
|
}
|
|
3609
|
-
function
|
|
3566
|
+
function bi(e) {
|
|
3610
3567
|
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
3568
|
}
|
|
3612
|
-
function
|
|
3569
|
+
function Ke(e) {
|
|
3613
3570
|
e.forEach(function(t) {
|
|
3614
|
-
if (delete t.location,
|
|
3571
|
+
if (delete t.location, nr(t) || ir(t))
|
|
3615
3572
|
for (var r in t.options)
|
|
3616
|
-
delete t.options[r].location,
|
|
3573
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
|
3617
3574
|
else
|
|
3618
|
-
|
|
3575
|
+
er(t) && sr(t.style) || (tr(t) || rr(t)) && Ze(t.style) ? delete t.style.location : or(t) && Ke(t.children);
|
|
3619
3576
|
});
|
|
3620
3577
|
}
|
|
3621
|
-
function
|
|
3622
|
-
t === void 0 && (t = {}), t =
|
|
3623
|
-
var r = new
|
|
3578
|
+
function gi(e, t) {
|
|
3579
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3580
|
+
var r = new di(e, t).parse();
|
|
3624
3581
|
if (r.err) {
|
|
3625
3582
|
var n = SyntaxError(v[r.err.kind]);
|
|
3626
3583
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3627
3584
|
}
|
|
3628
|
-
return t?.captureLocation ||
|
|
3585
|
+
return t?.captureLocation || Ke(r.val), r.val;
|
|
3629
3586
|
}
|
|
3630
|
-
var
|
|
3587
|
+
var ie;
|
|
3631
3588
|
(function(e) {
|
|
3632
3589
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3633
|
-
})(
|
|
3634
|
-
var
|
|
3590
|
+
})(ie || (ie = {}));
|
|
3591
|
+
var Ae = (
|
|
3635
3592
|
/** @class */
|
|
3636
3593
|
function(e) {
|
|
3637
|
-
|
|
3594
|
+
j(t, e);
|
|
3638
3595
|
function t(r, n, i) {
|
|
3639
3596
|
var o = e.call(this, r) || this;
|
|
3640
3597
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3643,64 +3600,64 @@ var Be = (
|
|
|
3643
3600
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3644
3601
|
}, t;
|
|
3645
3602
|
}(Error)
|
|
3646
|
-
),
|
|
3603
|
+
), Tt = (
|
|
3647
3604
|
/** @class */
|
|
3648
3605
|
function(e) {
|
|
3649
|
-
|
|
3606
|
+
j(t, e);
|
|
3650
3607
|
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('", "'), '"'),
|
|
3608
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3652
3609
|
}
|
|
3653
3610
|
return t;
|
|
3654
|
-
}(
|
|
3655
|
-
),
|
|
3611
|
+
}(Ae)
|
|
3612
|
+
), vi = (
|
|
3656
3613
|
/** @class */
|
|
3657
3614
|
function(e) {
|
|
3658
|
-
|
|
3615
|
+
j(t, e);
|
|
3659
3616
|
function t(r, n, i) {
|
|
3660
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3617
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3661
3618
|
}
|
|
3662
3619
|
return t;
|
|
3663
|
-
}(
|
|
3664
|
-
),
|
|
3620
|
+
}(Ae)
|
|
3621
|
+
), yi = (
|
|
3665
3622
|
/** @class */
|
|
3666
3623
|
function(e) {
|
|
3667
|
-
|
|
3624
|
+
j(t, e);
|
|
3668
3625
|
function t(r, n) {
|
|
3669
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3626
|
+
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
3627
|
}
|
|
3671
3628
|
return t;
|
|
3672
|
-
}(
|
|
3629
|
+
}(Ae)
|
|
3673
3630
|
), M;
|
|
3674
3631
|
(function(e) {
|
|
3675
3632
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3676
3633
|
})(M || (M = {}));
|
|
3677
|
-
function
|
|
3634
|
+
function _i(e) {
|
|
3678
3635
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3679
3636
|
var n = t[t.length - 1];
|
|
3680
3637
|
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3681
3638
|
}, []);
|
|
3682
3639
|
}
|
|
3683
|
-
function
|
|
3640
|
+
function xi(e) {
|
|
3684
3641
|
return typeof e == "function";
|
|
3685
3642
|
}
|
|
3686
3643
|
function _e(e, t, r, n, i, o, s) {
|
|
3687
|
-
if (e.length === 1 &&
|
|
3644
|
+
if (e.length === 1 && yt(e[0]))
|
|
3688
3645
|
return [
|
|
3689
3646
|
{
|
|
3690
3647
|
type: M.literal,
|
|
3691
3648
|
value: e[0].value
|
|
3692
3649
|
}
|
|
3693
3650
|
];
|
|
3694
|
-
for (var a = [],
|
|
3695
|
-
var h = l
|
|
3696
|
-
if (
|
|
3651
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3652
|
+
var h = u[l];
|
|
3653
|
+
if (yt(h)) {
|
|
3697
3654
|
a.push({
|
|
3698
3655
|
type: M.literal,
|
|
3699
3656
|
value: h.value
|
|
3700
3657
|
});
|
|
3701
3658
|
continue;
|
|
3702
3659
|
}
|
|
3703
|
-
if (
|
|
3660
|
+
if (jn(h)) {
|
|
3704
3661
|
typeof o == "number" && a.push({
|
|
3705
3662
|
type: M.literal,
|
|
3706
3663
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3709,44 +3666,44 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3709
3666
|
}
|
|
3710
3667
|
var c = h.value;
|
|
3711
3668
|
if (!(i && c in i))
|
|
3712
|
-
throw new
|
|
3669
|
+
throw new yi(c, s);
|
|
3713
3670
|
var f = i[c];
|
|
3714
|
-
if (
|
|
3671
|
+
if (Fn(h)) {
|
|
3715
3672
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3716
3673
|
type: typeof f == "string" ? M.literal : M.object,
|
|
3717
3674
|
value: f
|
|
3718
3675
|
});
|
|
3719
3676
|
continue;
|
|
3720
3677
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3678
|
+
if (tr(h)) {
|
|
3679
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
|
|
3723
3680
|
a.push({
|
|
3724
3681
|
type: M.literal,
|
|
3725
3682
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3726
3683
|
});
|
|
3727
3684
|
continue;
|
|
3728
3685
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3686
|
+
if (rr(h)) {
|
|
3687
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ze(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3731
3688
|
a.push({
|
|
3732
3689
|
type: M.literal,
|
|
3733
3690
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3734
3691
|
});
|
|
3735
3692
|
continue;
|
|
3736
3693
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3694
|
+
if (er(h)) {
|
|
3695
|
+
var m = typeof h.style == "string" ? n.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
|
|
3739
3696
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3740
3697
|
type: M.literal,
|
|
3741
3698
|
value: r.getNumberFormat(t, m).format(f)
|
|
3742
3699
|
});
|
|
3743
3700
|
continue;
|
|
3744
3701
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var
|
|
3747
|
-
if (!
|
|
3748
|
-
throw new
|
|
3749
|
-
var L = _e(
|
|
3702
|
+
if (or(h)) {
|
|
3703
|
+
var p = h.children, b = h.value, T = i[b];
|
|
3704
|
+
if (!xi(T))
|
|
3705
|
+
throw new vi(b, "function", s);
|
|
3706
|
+
var L = _e(p, t, r, n, i, o), P = T(L.map(function(w) {
|
|
3750
3707
|
return w.value;
|
|
3751
3708
|
}));
|
|
3752
3709
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
@@ -3756,42 +3713,42 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3756
3713
|
};
|
|
3757
3714
|
}));
|
|
3758
3715
|
}
|
|
3759
|
-
if (
|
|
3716
|
+
if (nr(h)) {
|
|
3760
3717
|
var A = h.options[f] || h.options.other;
|
|
3761
3718
|
if (!A)
|
|
3762
|
-
throw new
|
|
3719
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3763
3720
|
a.push.apply(a, _e(A.value, t, r, n, i));
|
|
3764
3721
|
continue;
|
|
3765
3722
|
}
|
|
3766
|
-
if (
|
|
3723
|
+
if (ir(h)) {
|
|
3767
3724
|
var A = h.options["=".concat(f)];
|
|
3768
3725
|
if (!A) {
|
|
3769
3726
|
if (!Intl.PluralRules)
|
|
3770
|
-
throw new
|
|
3727
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3771
3728
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3772
|
-
`,
|
|
3729
|
+
`, ie.MISSING_INTL_API, s);
|
|
3773
3730
|
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3774
3731
|
A = h.options[O] || h.options.other;
|
|
3775
3732
|
}
|
|
3776
3733
|
if (!A)
|
|
3777
|
-
throw new
|
|
3734
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3778
3735
|
a.push.apply(a, _e(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3779
3736
|
continue;
|
|
3780
3737
|
}
|
|
3781
3738
|
}
|
|
3782
|
-
return
|
|
3739
|
+
return _i(a);
|
|
3783
3740
|
}
|
|
3784
|
-
function
|
|
3785
|
-
return t ?
|
|
3786
|
-
return r[n] =
|
|
3741
|
+
function Ei(e, t) {
|
|
3742
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3743
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3787
3744
|
}, {})) : e;
|
|
3788
3745
|
}
|
|
3789
|
-
function
|
|
3746
|
+
function Ci(e, t) {
|
|
3790
3747
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3791
|
-
return r[n] =
|
|
3792
|
-
},
|
|
3748
|
+
return r[n] = Ei(e[n], t[n]), r;
|
|
3749
|
+
}, _({}, e)) : e;
|
|
3793
3750
|
}
|
|
3794
|
-
function
|
|
3751
|
+
function $e(e) {
|
|
3795
3752
|
return {
|
|
3796
3753
|
create: function() {
|
|
3797
3754
|
return {
|
|
@@ -3805,39 +3762,39 @@ function Fe(e) {
|
|
|
3805
3762
|
}
|
|
3806
3763
|
};
|
|
3807
3764
|
}
|
|
3808
|
-
function
|
|
3765
|
+
function wi(e) {
|
|
3809
3766
|
return e === void 0 && (e = {
|
|
3810
3767
|
number: {},
|
|
3811
3768
|
dateTime: {},
|
|
3812
3769
|
pluralRules: {}
|
|
3813
3770
|
}), {
|
|
3814
|
-
getNumberFormat:
|
|
3771
|
+
getNumberFormat: Re(function() {
|
|
3815
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3773
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3774
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3818
3775
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3776
|
+
cache: $e(e.number),
|
|
3777
|
+
strategy: Ue.variadic
|
|
3821
3778
|
}),
|
|
3822
|
-
getDateTimeFormat:
|
|
3779
|
+
getDateTimeFormat: Re(function() {
|
|
3823
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3781
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3782
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3826
3783
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3784
|
+
cache: $e(e.dateTime),
|
|
3785
|
+
strategy: Ue.variadic
|
|
3829
3786
|
}),
|
|
3830
|
-
getPluralRules:
|
|
3787
|
+
getPluralRules: Re(function() {
|
|
3831
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3832
3789
|
r[n] = arguments[n];
|
|
3833
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3790
|
+
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3834
3791
|
}, {
|
|
3835
|
-
cache:
|
|
3836
|
-
strategy:
|
|
3792
|
+
cache: $e(e.pluralRules),
|
|
3793
|
+
strategy: Ue.variadic
|
|
3837
3794
|
})
|
|
3838
3795
|
};
|
|
3839
3796
|
}
|
|
3840
|
-
var
|
|
3797
|
+
var Si = (
|
|
3841
3798
|
/** @class */
|
|
3842
3799
|
function() {
|
|
3843
3800
|
function e(t, r, n, i) {
|
|
@@ -3847,20 +3804,20 @@ var Bi = (
|
|
|
3847
3804
|
number: {},
|
|
3848
3805
|
dateTime: {},
|
|
3849
3806
|
pluralRules: {}
|
|
3850
|
-
}, this.format = function(
|
|
3851
|
-
var
|
|
3852
|
-
if (
|
|
3853
|
-
return
|
|
3854
|
-
var h =
|
|
3807
|
+
}, this.format = function(l) {
|
|
3808
|
+
var u = o.formatToParts(l);
|
|
3809
|
+
if (u.length === 1)
|
|
3810
|
+
return u[0].value;
|
|
3811
|
+
var h = u.reduce(function(c, f) {
|
|
3855
3812
|
return !c.length || f.type !== M.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3856
3813
|
}, []);
|
|
3857
3814
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3858
|
-
}, this.formatToParts = function(
|
|
3859
|
-
return _e(o.ast, o.locales, o.formatters, o.formats,
|
|
3815
|
+
}, this.formatToParts = function(l) {
|
|
3816
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3860
3817
|
}, this.resolvedOptions = function() {
|
|
3861
|
-
var
|
|
3818
|
+
var l;
|
|
3862
3819
|
return {
|
|
3863
|
-
locale: ((
|
|
3820
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3864
3821
|
};
|
|
3865
3822
|
}, this.getAst = function() {
|
|
3866
3823
|
return o.ast;
|
|
@@ -3869,13 +3826,13 @@ var Bi = (
|
|
|
3869
3826
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3870
3827
|
var s = i || {};
|
|
3871
3828
|
s.formatters;
|
|
3872
|
-
var a =
|
|
3873
|
-
this.ast = e.__parse(t,
|
|
3829
|
+
var a = rn(s, ["formatters"]);
|
|
3830
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3874
3831
|
} else
|
|
3875
3832
|
this.ast = t;
|
|
3876
3833
|
if (!Array.isArray(this.ast))
|
|
3877
3834
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3878
|
-
this.formats =
|
|
3835
|
+
this.formats = Ci(e.formats, n), this.formatters = i && i.formatters || wi(this.formatterCache);
|
|
3879
3836
|
}
|
|
3880
3837
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3881
3838
|
get: function() {
|
|
@@ -3888,7 +3845,7 @@ var Bi = (
|
|
|
3888
3845
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3889
3846
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3890
3847
|
}
|
|
3891
|
-
}, e.__parse =
|
|
3848
|
+
}, e.__parse = gi, e.formats = {
|
|
3892
3849
|
number: {
|
|
3893
3850
|
integer: {
|
|
3894
3851
|
maximumFractionDigits: 0
|
|
@@ -3949,7 +3906,7 @@ var Bi = (
|
|
|
3949
3906
|
}, e;
|
|
3950
3907
|
}()
|
|
3951
3908
|
);
|
|
3952
|
-
function
|
|
3909
|
+
function Ti(e, t) {
|
|
3953
3910
|
if (t == null)
|
|
3954
3911
|
return;
|
|
3955
3912
|
if (t in e)
|
|
@@ -3970,92 +3927,92 @@ function Pi(e, t) {
|
|
|
3970
3927
|
n = void 0;
|
|
3971
3928
|
return n;
|
|
3972
3929
|
}
|
|
3973
|
-
const V = {},
|
|
3930
|
+
const V = {}, Hi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), pr = (e, t) => {
|
|
3974
3931
|
if (t == null)
|
|
3975
3932
|
return;
|
|
3976
3933
|
if (t in V && e in V[t])
|
|
3977
3934
|
return V[t][e];
|
|
3978
|
-
const r =
|
|
3935
|
+
const r = Ie(t);
|
|
3979
3936
|
for (let n = 0; n < r.length; n++) {
|
|
3980
|
-
const i = r[n], o =
|
|
3937
|
+
const i = r[n], o = Ii(i, e);
|
|
3981
3938
|
if (o)
|
|
3982
|
-
return
|
|
3939
|
+
return Hi(e, t, o);
|
|
3983
3940
|
}
|
|
3984
3941
|
};
|
|
3985
|
-
let
|
|
3986
|
-
const
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3942
|
+
let it;
|
|
3943
|
+
const ae = He({});
|
|
3944
|
+
function Ai(e) {
|
|
3945
|
+
return it[e] || null;
|
|
3989
3946
|
}
|
|
3990
|
-
function
|
|
3991
|
-
return e in
|
|
3947
|
+
function mr(e) {
|
|
3948
|
+
return e in it;
|
|
3992
3949
|
}
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
3950
|
+
function Ii(e, t) {
|
|
3951
|
+
if (!mr(e))
|
|
3995
3952
|
return null;
|
|
3996
|
-
const r =
|
|
3997
|
-
return
|
|
3953
|
+
const r = Ai(e);
|
|
3954
|
+
return Ti(r, t);
|
|
3998
3955
|
}
|
|
3999
|
-
function
|
|
3956
|
+
function Bi(e) {
|
|
4000
3957
|
if (e == null)
|
|
4001
3958
|
return;
|
|
4002
|
-
const t =
|
|
3959
|
+
const t = Ie(e);
|
|
4003
3960
|
for (let r = 0; r < t.length; r++) {
|
|
4004
3961
|
const n = t[r];
|
|
4005
|
-
if (
|
|
3962
|
+
if (mr(n))
|
|
4006
3963
|
return n;
|
|
4007
3964
|
}
|
|
4008
3965
|
}
|
|
4009
|
-
function
|
|
4010
|
-
delete V[e],
|
|
3966
|
+
function br(e, ...t) {
|
|
3967
|
+
delete V[e], ae.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
|
4011
3968
|
}
|
|
4012
|
-
|
|
4013
|
-
[
|
|
3969
|
+
se(
|
|
3970
|
+
[ae],
|
|
4014
3971
|
([e]) => Object.keys(e)
|
|
4015
3972
|
);
|
|
4016
|
-
|
|
3973
|
+
ae.subscribe((e) => it = e);
|
|
4017
3974
|
const xe = {};
|
|
4018
|
-
function
|
|
3975
|
+
function Pi(e, t) {
|
|
4019
3976
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4020
3977
|
}
|
|
4021
|
-
function
|
|
3978
|
+
function gr(e) {
|
|
4022
3979
|
return xe[e];
|
|
4023
3980
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return
|
|
4026
|
-
const r =
|
|
3981
|
+
function Oi(e) {
|
|
3982
|
+
return Ie(e).map((t) => {
|
|
3983
|
+
const r = gr(t);
|
|
4027
3984
|
return [t, r ? [...r] : []];
|
|
4028
3985
|
}).filter(([, t]) => t.length > 0);
|
|
4029
3986
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return e == null ? !1 :
|
|
3987
|
+
function et(e) {
|
|
3988
|
+
return e == null ? !1 : Ie(e).some(
|
|
4032
3989
|
(t) => {
|
|
4033
3990
|
var r;
|
|
4034
|
-
return (r =
|
|
3991
|
+
return (r = gr(t)) == null ? void 0 : r.size;
|
|
4035
3992
|
}
|
|
4036
3993
|
);
|
|
4037
3994
|
}
|
|
4038
|
-
function
|
|
3995
|
+
function Mi(e, t) {
|
|
4039
3996
|
return Promise.all(
|
|
4040
|
-
t.map((n) => (
|
|
4041
|
-
).then((n) =>
|
|
3997
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
|
3998
|
+
).then((n) => br(e, ...n));
|
|
4042
3999
|
}
|
|
4043
4000
|
const ue = {};
|
|
4044
|
-
function
|
|
4045
|
-
if (!
|
|
4001
|
+
function vr(e) {
|
|
4002
|
+
if (!et(e))
|
|
4046
4003
|
return e in ue ? ue[e] : Promise.resolve();
|
|
4047
|
-
const t =
|
|
4004
|
+
const t = Oi(e);
|
|
4048
4005
|
return ue[e] = Promise.all(
|
|
4049
4006
|
t.map(
|
|
4050
|
-
([r, n]) =>
|
|
4007
|
+
([r, n]) => Mi(r, n)
|
|
4051
4008
|
)
|
|
4052
4009
|
).then(() => {
|
|
4053
|
-
if (
|
|
4054
|
-
return
|
|
4010
|
+
if (et(e))
|
|
4011
|
+
return vr(e);
|
|
4055
4012
|
delete ue[e];
|
|
4056
4013
|
}), ue[e];
|
|
4057
4014
|
}
|
|
4058
|
-
const
|
|
4015
|
+
const Li = {
|
|
4059
4016
|
number: {
|
|
4060
4017
|
scientific: { notation: "scientific" },
|
|
4061
4018
|
engineering: { notation: "engineering" },
|
|
@@ -4084,150 +4041,150 @@ const $i = {
|
|
|
4084
4041
|
timeZoneName: "short"
|
|
4085
4042
|
}
|
|
4086
4043
|
}
|
|
4087
|
-
},
|
|
4044
|
+
}, Ni = {
|
|
4088
4045
|
fallbackLocale: null,
|
|
4089
4046
|
loadingDelay: 200,
|
|
4090
|
-
formats:
|
|
4047
|
+
formats: Li,
|
|
4091
4048
|
warnOnMissingMessages: !0,
|
|
4092
4049
|
handleMissingMessage: void 0,
|
|
4093
4050
|
ignoreTag: !0
|
|
4094
|
-
},
|
|
4095
|
-
function
|
|
4096
|
-
return
|
|
4051
|
+
}, Ri = Ni;
|
|
4052
|
+
function oe() {
|
|
4053
|
+
return Ri;
|
|
4097
4054
|
}
|
|
4098
|
-
const
|
|
4099
|
-
var
|
|
4055
|
+
const ke = He(!1);
|
|
4056
|
+
var Ui = Object.defineProperty, Di = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, ki = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fi = (e, t) => {
|
|
4100
4057
|
for (var r in t || (t = {}))
|
|
4101
|
-
|
|
4102
|
-
if (
|
|
4103
|
-
for (var r of
|
|
4104
|
-
|
|
4058
|
+
ki.call(t, r) && At(e, r, t[r]);
|
|
4059
|
+
if (Ht)
|
|
4060
|
+
for (var r of Ht(t))
|
|
4061
|
+
Gi.call(t, r) && At(e, r, t[r]);
|
|
4105
4062
|
return e;
|
|
4106
|
-
},
|
|
4107
|
-
let
|
|
4108
|
-
const Ce =
|
|
4109
|
-
function
|
|
4063
|
+
}, ji = (e, t) => Di(e, $i(t));
|
|
4064
|
+
let tt;
|
|
4065
|
+
const Ce = He(null);
|
|
4066
|
+
function It(e) {
|
|
4110
4067
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4111
4068
|
}
|
|
4112
|
-
function
|
|
4113
|
-
const r =
|
|
4114
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4069
|
+
function Ie(e, t = oe().fallbackLocale) {
|
|
4070
|
+
const r = It(e);
|
|
4071
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
4115
4072
|
}
|
|
4116
4073
|
function z() {
|
|
4117
|
-
return
|
|
4074
|
+
return tt ?? void 0;
|
|
4118
4075
|
}
|
|
4119
4076
|
Ce.subscribe((e) => {
|
|
4120
|
-
|
|
4077
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4121
4078
|
});
|
|
4122
|
-
const
|
|
4123
|
-
if (e &&
|
|
4124
|
-
const { loadingDelay: t } =
|
|
4079
|
+
const Vi = (e) => {
|
|
4080
|
+
if (e && Bi(e) && et(e)) {
|
|
4081
|
+
const { loadingDelay: t } = oe();
|
|
4125
4082
|
let r;
|
|
4126
4083
|
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4127
|
-
() =>
|
|
4084
|
+
() => ke.set(!0),
|
|
4128
4085
|
t
|
|
4129
|
-
) :
|
|
4086
|
+
) : ke.set(!0), vr(e).then(() => {
|
|
4130
4087
|
Ce.set(e);
|
|
4131
4088
|
}).finally(() => {
|
|
4132
|
-
clearTimeout(r),
|
|
4089
|
+
clearTimeout(r), ke.set(!1);
|
|
4133
4090
|
});
|
|
4134
4091
|
}
|
|
4135
4092
|
return Ce.set(e);
|
|
4136
|
-
}, W =
|
|
4137
|
-
set:
|
|
4138
|
-
}),
|
|
4093
|
+
}, W = ji(Fi({}, Ce), {
|
|
4094
|
+
set: Vi
|
|
4095
|
+
}), Be = (e) => {
|
|
4139
4096
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4140
4097
|
return (n) => {
|
|
4141
4098
|
const i = JSON.stringify(n);
|
|
4142
4099
|
return i in t ? t[i] : t[i] = e(n);
|
|
4143
4100
|
};
|
|
4144
4101
|
};
|
|
4145
|
-
var
|
|
4102
|
+
var Wi = Object.defineProperty, we = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
4146
4103
|
for (var r in t || (t = {}))
|
|
4147
|
-
|
|
4148
|
-
if (
|
|
4149
|
-
for (var r of
|
|
4150
|
-
|
|
4104
|
+
yr.call(t, r) && Bt(e, r, t[r]);
|
|
4105
|
+
if (we)
|
|
4106
|
+
for (var r of we(t))
|
|
4107
|
+
_r.call(t, r) && Bt(e, r, t[r]);
|
|
4151
4108
|
return e;
|
|
4152
|
-
},
|
|
4109
|
+
}, le = (e, t) => {
|
|
4153
4110
|
var r = {};
|
|
4154
4111
|
for (var n in e)
|
|
4155
|
-
|
|
4156
|
-
if (e != null &&
|
|
4157
|
-
for (var n of
|
|
4158
|
-
t.indexOf(n) < 0 &&
|
|
4112
|
+
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4113
|
+
if (e != null && we)
|
|
4114
|
+
for (var n of we(e))
|
|
4115
|
+
t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
|
|
4159
4116
|
return r;
|
|
4160
4117
|
};
|
|
4161
|
-
const
|
|
4162
|
-
const { formats: r } =
|
|
4118
|
+
const de = (e, t) => {
|
|
4119
|
+
const { formats: r } = oe();
|
|
4163
4120
|
if (e in r && t in r[e])
|
|
4164
4121
|
return r[e][t];
|
|
4165
4122
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4166
|
-
},
|
|
4123
|
+
}, Xi = Be(
|
|
4167
4124
|
(e) => {
|
|
4168
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4125
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4169
4126
|
if (r == null)
|
|
4170
4127
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4171
|
-
return n && (i =
|
|
4128
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4172
4129
|
}
|
|
4173
|
-
),
|
|
4130
|
+
), zi = Be(
|
|
4174
4131
|
(e) => {
|
|
4175
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4132
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4176
4133
|
if (r == null)
|
|
4177
4134
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4178
|
-
return n ? i =
|
|
4135
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4179
4136
|
}
|
|
4180
|
-
),
|
|
4137
|
+
), Zi = Be(
|
|
4181
4138
|
(e) => {
|
|
4182
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4139
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4183
4140
|
if (r == null)
|
|
4184
4141
|
throw new Error(
|
|
4185
4142
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4186
4143
|
);
|
|
4187
|
-
return n ? i =
|
|
4144
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4188
4145
|
}
|
|
4189
|
-
),
|
|
4146
|
+
), Qi = (e = {}) => {
|
|
4190
4147
|
var t = e, {
|
|
4191
4148
|
locale: r = z()
|
|
4192
|
-
} = t, n =
|
|
4149
|
+
} = t, n = le(t, [
|
|
4193
4150
|
"locale"
|
|
4194
4151
|
]);
|
|
4195
|
-
return
|
|
4196
|
-
},
|
|
4152
|
+
return Xi(ot({ locale: r }, n));
|
|
4153
|
+
}, Yi = (e = {}) => {
|
|
4197
4154
|
var t = e, {
|
|
4198
4155
|
locale: r = z()
|
|
4199
|
-
} = t, n =
|
|
4156
|
+
} = t, n = le(t, [
|
|
4200
4157
|
"locale"
|
|
4201
4158
|
]);
|
|
4202
|
-
return
|
|
4203
|
-
},
|
|
4159
|
+
return zi(ot({ locale: r }, n));
|
|
4160
|
+
}, qi = (e = {}) => {
|
|
4204
4161
|
var t = e, {
|
|
4205
4162
|
locale: r = z()
|
|
4206
|
-
} = t, n =
|
|
4163
|
+
} = t, n = le(t, [
|
|
4207
4164
|
"locale"
|
|
4208
4165
|
]);
|
|
4209
|
-
return
|
|
4210
|
-
},
|
|
4166
|
+
return Zi(ot({ locale: r }, n));
|
|
4167
|
+
}, Ji = Be(
|
|
4211
4168
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4212
|
-
(e, t = z()) => new
|
|
4213
|
-
ignoreTag:
|
|
4169
|
+
(e, t = z()) => new Si(e, t, oe().formats, {
|
|
4170
|
+
ignoreTag: oe().ignoreTag
|
|
4214
4171
|
})
|
|
4215
|
-
),
|
|
4172
|
+
), Ki = (e, t = {}) => {
|
|
4216
4173
|
var r, n, i, o;
|
|
4217
4174
|
let s = t;
|
|
4218
4175
|
typeof e == "object" && (s = e, e = s.id);
|
|
4219
4176
|
const {
|
|
4220
4177
|
values: a,
|
|
4221
|
-
locale:
|
|
4222
|
-
default:
|
|
4178
|
+
locale: l = z(),
|
|
4179
|
+
default: u
|
|
4223
4180
|
} = s;
|
|
4224
|
-
if (
|
|
4181
|
+
if (l == null)
|
|
4225
4182
|
throw new Error(
|
|
4226
4183
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4227
4184
|
);
|
|
4228
|
-
let h =
|
|
4185
|
+
let h = pr(e, l);
|
|
4229
4186
|
if (!h)
|
|
4230
|
-
h = (o = (i = (n = (r =
|
|
4187
|
+
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
4188
|
else if (typeof h != "string")
|
|
4232
4189
|
return console.warn(
|
|
4233
4190
|
`[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 +4193,7 @@ const fe = (e, t) => {
|
|
|
4236
4193
|
return h;
|
|
4237
4194
|
let c = h;
|
|
4238
4195
|
try {
|
|
4239
|
-
c =
|
|
4196
|
+
c = Ji(h, l).format(a);
|
|
4240
4197
|
} catch (f) {
|
|
4241
4198
|
f instanceof Error && console.warn(
|
|
4242
4199
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4244,32 +4201,32 @@ const fe = (e, t) => {
|
|
|
4244
4201
|
);
|
|
4245
4202
|
}
|
|
4246
4203
|
return c;
|
|
4247
|
-
},
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
window.emWidgets = { topic:
|
|
4254
|
-
const
|
|
4255
|
-
function
|
|
4204
|
+
}, eo = (e, t) => qi(t).format(e), to = (e, t) => Yi(t).format(e), ro = (e, t) => Qi(t).format(e), no = (e, t = z()) => pr(e, t);
|
|
4205
|
+
se([W, ae], () => Ki);
|
|
4206
|
+
se([W], () => eo);
|
|
4207
|
+
se([W], () => to);
|
|
4208
|
+
se([W], () => ro);
|
|
4209
|
+
se([W, ae], () => no);
|
|
4210
|
+
window.emWidgets = { topic: gn };
|
|
4211
|
+
const Pt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4212
|
+
function io({ withLocale: e, translations: t }) {
|
|
4256
4213
|
W.subscribe((r) => {
|
|
4257
|
-
r == null && (
|
|
4214
|
+
r == null && (ae.set(t), W.set(e));
|
|
4258
4215
|
});
|
|
4259
4216
|
}
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4217
|
+
function oo(e, t) {
|
|
4218
|
+
br(e, t);
|
|
4262
4219
|
}
|
|
4263
|
-
function
|
|
4220
|
+
function so(e) {
|
|
4264
4221
|
W.set(e);
|
|
4265
4222
|
}
|
|
4266
|
-
function
|
|
4223
|
+
function ao(e, t) {
|
|
4267
4224
|
if (e) {
|
|
4268
4225
|
const r = document.createElement("style");
|
|
4269
4226
|
r.innerHTML = t, e.appendChild(r);
|
|
4270
4227
|
}
|
|
4271
4228
|
}
|
|
4272
|
-
function
|
|
4229
|
+
function lo(e, t) {
|
|
4273
4230
|
const r = new URL(t);
|
|
4274
4231
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4275
4232
|
const i = document.createElement("style");
|
|
@@ -4278,7 +4235,7 @@ function po(e, t) {
|
|
|
4278
4235
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4279
4236
|
});
|
|
4280
4237
|
}
|
|
4281
|
-
function
|
|
4238
|
+
function uo(e, t, r) {
|
|
4282
4239
|
if (window.emMessageBus) {
|
|
4283
4240
|
const n = document.createElement("style");
|
|
4284
4241
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4286,25 +4243,25 @@ function mo(e, t, r) {
|
|
|
4286
4243
|
});
|
|
4287
4244
|
}
|
|
4288
4245
|
}
|
|
4289
|
-
function
|
|
4290
|
-
|
|
4246
|
+
function ho(e) {
|
|
4247
|
+
Nr(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}');
|
|
4291
4248
|
}
|
|
4292
|
-
function
|
|
4249
|
+
function Ot(e, t, r) {
|
|
4293
4250
|
const n = e.slice();
|
|
4294
4251
|
return n[43] = t[r], n[45] = r, n;
|
|
4295
4252
|
}
|
|
4296
|
-
function
|
|
4297
|
-
let t, r, n, i, o, s, a,
|
|
4253
|
+
function co(e) {
|
|
4254
|
+
let t, r, n, i, o, s, a, l, u, h, c, f, m, p = (
|
|
4298
4255
|
/*vendors*/
|
|
4299
|
-
e[6].length > 0 &&
|
|
4256
|
+
e[6].length > 0 && Mt(e)
|
|
4300
4257
|
);
|
|
4301
4258
|
return {
|
|
4302
4259
|
c() {
|
|
4303
|
-
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 =
|
|
4304
|
-
(e[10] ? "CarouselWrapperMobile" : "")),
|
|
4260
|
+
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 = G(), s = S("div"), a = S("ul"), l = S("li"), l.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = G(), p && p.c(), h = G(), 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*/
|
|
4261
|
+
(e[10] ? "CarouselWrapperMobile" : "")), E(t, "class", "CasinoVendorsContainer"), E(t, "part", "CasinoVendorsContainer");
|
|
4305
4262
|
},
|
|
4306
4263
|
m(b, T) {
|
|
4307
|
-
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a,
|
|
4264
|
+
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 = [
|
|
4308
4265
|
J(
|
|
4309
4266
|
i,
|
|
4310
4267
|
"click",
|
|
@@ -4333,18 +4290,18 @@ function go(e) {
|
|
|
4333
4290
|
},
|
|
4334
4291
|
p(b, T) {
|
|
4335
4292
|
/*vendors*/
|
|
4336
|
-
b[6].length > 0 ?
|
|
4293
|
+
b[6].length > 0 ? p ? p.p(b, T) : (p = Mt(b), p.c(), p.m(a, null)) : p && (p.d(1), p = null);
|
|
4337
4294
|
},
|
|
4338
4295
|
d(b) {
|
|
4339
|
-
b && I(t),
|
|
4296
|
+
b && I(t), p && p.d(), e[28](null), e[29](null), e[30](null), f = !1, X(m);
|
|
4340
4297
|
}
|
|
4341
4298
|
};
|
|
4342
4299
|
}
|
|
4343
|
-
function
|
|
4300
|
+
function fo(e) {
|
|
4344
4301
|
let t;
|
|
4345
4302
|
return {
|
|
4346
4303
|
c() {
|
|
4347
|
-
t = S("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4304
|
+
t = S("p"), t.textContent = "500 Error - Internal Server Error.", E(t, "class", "SearchLoading");
|
|
4348
4305
|
},
|
|
4349
4306
|
m(r, n) {
|
|
4350
4307
|
B(r, t, n);
|
|
@@ -4355,11 +4312,11 @@ function vo(e) {
|
|
|
4355
4312
|
}
|
|
4356
4313
|
};
|
|
4357
4314
|
}
|
|
4358
|
-
function
|
|
4315
|
+
function po(e) {
|
|
4359
4316
|
let t;
|
|
4360
4317
|
return {
|
|
4361
4318
|
c() {
|
|
4362
|
-
t = S("div"),
|
|
4319
|
+
t = S("div"), E(t, "class", "CasinoVendorsLoading");
|
|
4363
4320
|
},
|
|
4364
4321
|
m(r, n) {
|
|
4365
4322
|
B(r, t, n);
|
|
@@ -4370,8 +4327,8 @@ function yo(e) {
|
|
|
4370
4327
|
}
|
|
4371
4328
|
};
|
|
4372
4329
|
}
|
|
4373
|
-
function
|
|
4374
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4330
|
+
function Mt(e) {
|
|
4331
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ht(
|
|
4375
4332
|
/*vendors*/
|
|
4376
4333
|
e[6]
|
|
4377
4334
|
);
|
|
@@ -4380,26 +4337,26 @@ function Dt(e) {
|
|
|
4380
4337
|
s[43].id
|
|
4381
4338
|
);
|
|
4382
4339
|
for (let s = 0; s < i.length; s += 1) {
|
|
4383
|
-
let a =
|
|
4384
|
-
r.set(
|
|
4340
|
+
let a = Ot(e, i, s), l = o(a);
|
|
4341
|
+
r.set(l, t[s] = kt(l, a));
|
|
4385
4342
|
}
|
|
4386
4343
|
return {
|
|
4387
4344
|
c() {
|
|
4388
4345
|
for (let s = 0; s < t.length; s += 1)
|
|
4389
4346
|
t[s].c();
|
|
4390
|
-
n =
|
|
4347
|
+
n = rt();
|
|
4391
4348
|
},
|
|
4392
4349
|
m(s, a) {
|
|
4393
|
-
for (let
|
|
4394
|
-
t[
|
|
4350
|
+
for (let l = 0; l < t.length; l += 1)
|
|
4351
|
+
t[l] && t[l].m(s, a);
|
|
4395
4352
|
B(s, n, a);
|
|
4396
4353
|
},
|
|
4397
4354
|
p(s, a) {
|
|
4398
4355
|
a[0] & /*activevendor, vendors, handleClick, onCarouselItemKeydown, getButtonClasses, getGamesTotal, showvendorgames, showvendorname, showvendoricon, isMobile*/
|
|
4399
|
-
461903 && (i =
|
|
4356
|
+
461903 && (i = ht(
|
|
4400
4357
|
/*vendors*/
|
|
4401
4358
|
s[6]
|
|
4402
|
-
), t =
|
|
4359
|
+
), t = Zr(t, a, o, 1, s, i, r, n.parentNode, zr, kt, n, Ot));
|
|
4403
4360
|
},
|
|
4404
4361
|
d(s) {
|
|
4405
4362
|
s && I(n);
|
|
@@ -4408,18 +4365,18 @@ function Dt(e) {
|
|
|
4408
4365
|
}
|
|
4409
4366
|
};
|
|
4410
4367
|
}
|
|
4411
|
-
function
|
|
4368
|
+
function Lt(e) {
|
|
4412
4369
|
let t;
|
|
4413
4370
|
function r(o, s) {
|
|
4414
4371
|
return (
|
|
4415
4372
|
/*isMobile*/
|
|
4416
|
-
o[10] ?
|
|
4373
|
+
o[10] ? bo : mo
|
|
4417
4374
|
);
|
|
4418
4375
|
}
|
|
4419
4376
|
let i = r(e)(e);
|
|
4420
4377
|
return {
|
|
4421
4378
|
c() {
|
|
4422
|
-
i.c(), t =
|
|
4379
|
+
i.c(), t = rt();
|
|
4423
4380
|
},
|
|
4424
4381
|
m(o, s) {
|
|
4425
4382
|
i.m(o, s), B(o, t, s);
|
|
@@ -4432,65 +4389,65 @@ function $t(e) {
|
|
|
4432
4389
|
}
|
|
4433
4390
|
};
|
|
4434
4391
|
}
|
|
4435
|
-
function
|
|
4392
|
+
function mo(e) {
|
|
4436
4393
|
let t, r, n, i, o, s = (
|
|
4437
4394
|
/*showvendorname*/
|
|
4438
|
-
e[2] === "false" &&
|
|
4395
|
+
e[2] === "false" && Nt()
|
|
4439
4396
|
);
|
|
4440
4397
|
return {
|
|
4441
4398
|
c() {
|
|
4442
|
-
t = S("img"), i =
|
|
4443
|
-
e[43].logo) ||
|
|
4399
|
+
t = S("img"), i = G(), s && s.c(), o = rt(), Ee(t.src, r = /*vendor*/
|
|
4400
|
+
e[43].logo) || E(t, "src", r), E(t, "alt", n = /*vendor*/
|
|
4444
4401
|
e[43].displayName);
|
|
4445
4402
|
},
|
|
4446
|
-
m(a,
|
|
4447
|
-
B(a, t,
|
|
4403
|
+
m(a, l) {
|
|
4404
|
+
B(a, t, l), B(a, i, l), s && s.m(a, l), B(a, o, l);
|
|
4448
4405
|
},
|
|
4449
|
-
p(a,
|
|
4450
|
-
|
|
4406
|
+
p(a, l) {
|
|
4407
|
+
l[0] & /*vendors*/
|
|
4451
4408
|
64 && !Ee(t.src, r = /*vendor*/
|
|
4452
|
-
a[43].logo) &&
|
|
4409
|
+
a[43].logo) && E(t, "src", r), l[0] & /*vendors*/
|
|
4453
4410
|
64 && n !== (n = /*vendor*/
|
|
4454
|
-
a[43].displayName) &&
|
|
4455
|
-
a[2] === "false" ? s || (s =
|
|
4411
|
+
a[43].displayName) && E(t, "alt", n), /*showvendorname*/
|
|
4412
|
+
a[2] === "false" ? s || (s = Nt(), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
4456
4413
|
},
|
|
4457
4414
|
d(a) {
|
|
4458
4415
|
a && (I(t), I(i), I(o)), s && s.d(a);
|
|
4459
4416
|
}
|
|
4460
4417
|
};
|
|
4461
4418
|
}
|
|
4462
|
-
function
|
|
4419
|
+
function bo(e) {
|
|
4463
4420
|
let t, r, n, i, o, s = (
|
|
4464
4421
|
/*showvendorname*/
|
|
4465
|
-
e[2] === "false" &&
|
|
4422
|
+
e[2] === "false" && Rt()
|
|
4466
4423
|
);
|
|
4467
4424
|
return {
|
|
4468
4425
|
c() {
|
|
4469
|
-
t = S("div"), r = S("img"), o =
|
|
4470
|
-
e[43].logo) ||
|
|
4471
|
-
e[43].displayName),
|
|
4426
|
+
t = S("div"), r = S("img"), o = G(), s && s.c(), Ee(r.src, n = /*vendor*/
|
|
4427
|
+
e[43].logo) || E(r, "src", n), E(r, "alt", i = /*vendor*/
|
|
4428
|
+
e[43].displayName), E(t, "class", "ImageContainer");
|
|
4472
4429
|
},
|
|
4473
|
-
m(a,
|
|
4474
|
-
B(a, t,
|
|
4430
|
+
m(a, l) {
|
|
4431
|
+
B(a, t, l), H(t, r), H(t, o), s && s.m(t, null);
|
|
4475
4432
|
},
|
|
4476
|
-
p(a,
|
|
4477
|
-
|
|
4433
|
+
p(a, l) {
|
|
4434
|
+
l[0] & /*vendors*/
|
|
4478
4435
|
64 && !Ee(r.src, n = /*vendor*/
|
|
4479
|
-
a[43].logo) &&
|
|
4436
|
+
a[43].logo) && E(r, "src", n), l[0] & /*vendors*/
|
|
4480
4437
|
64 && i !== (i = /*vendor*/
|
|
4481
|
-
a[43].displayName) &&
|
|
4482
|
-
a[2] === "false" ? s || (s =
|
|
4438
|
+
a[43].displayName) && E(r, "alt", i), /*showvendorname*/
|
|
4439
|
+
a[2] === "false" ? s || (s = Rt(), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4483
4440
|
},
|
|
4484
4441
|
d(a) {
|
|
4485
4442
|
a && I(t), s && s.d();
|
|
4486
4443
|
}
|
|
4487
4444
|
};
|
|
4488
4445
|
}
|
|
4489
|
-
function
|
|
4446
|
+
function Nt(e) {
|
|
4490
4447
|
let t;
|
|
4491
4448
|
return {
|
|
4492
4449
|
c() {
|
|
4493
|
-
t = S("div"),
|
|
4450
|
+
t = S("div"), E(t, "class", "ActiveImg");
|
|
4494
4451
|
},
|
|
4495
4452
|
m(r, n) {
|
|
4496
4453
|
B(r, t, n);
|
|
@@ -4500,11 +4457,11 @@ function kt(e) {
|
|
|
4500
4457
|
}
|
|
4501
4458
|
};
|
|
4502
4459
|
}
|
|
4503
|
-
function
|
|
4460
|
+
function Rt(e) {
|
|
4504
4461
|
let t;
|
|
4505
4462
|
return {
|
|
4506
4463
|
c() {
|
|
4507
|
-
t = S("div"),
|
|
4464
|
+
t = S("div"), E(t, "class", "ActiveImg");
|
|
4508
4465
|
},
|
|
4509
4466
|
m(r, n) {
|
|
4510
4467
|
B(r, t, n);
|
|
@@ -4514,7 +4471,7 @@ function Gt(e) {
|
|
|
4514
4471
|
}
|
|
4515
4472
|
};
|
|
4516
4473
|
}
|
|
4517
|
-
function
|
|
4474
|
+
function Ut(e) {
|
|
4518
4475
|
let t, r = (
|
|
4519
4476
|
/*getGamesTotal*/
|
|
4520
4477
|
e[18](
|
|
@@ -4524,7 +4481,7 @@ function Ft(e) {
|
|
|
4524
4481
|
), n;
|
|
4525
4482
|
return {
|
|
4526
4483
|
c() {
|
|
4527
|
-
t = S("span"), n = pe(r),
|
|
4484
|
+
t = S("span"), n = pe(r), E(t, "class", "categoryImgButtonCount");
|
|
4528
4485
|
},
|
|
4529
4486
|
m(i, o) {
|
|
4530
4487
|
B(i, t, o), H(t, n);
|
|
@@ -4535,25 +4492,25 @@ function Ft(e) {
|
|
|
4535
4492
|
i[18](
|
|
4536
4493
|
/*vendor*/
|
|
4537
4494
|
i[43]?.games.total
|
|
4538
|
-
) + "") &&
|
|
4495
|
+
) + "") && nt(n, r);
|
|
4539
4496
|
},
|
|
4540
4497
|
d(i) {
|
|
4541
4498
|
i && I(t);
|
|
4542
4499
|
}
|
|
4543
4500
|
};
|
|
4544
4501
|
}
|
|
4545
|
-
function
|
|
4502
|
+
function Dt(e) {
|
|
4546
4503
|
let t, r = (
|
|
4547
4504
|
/*vendor*/
|
|
4548
4505
|
e[43].displayName + ""
|
|
4549
4506
|
), n, i, o = (
|
|
4550
4507
|
/*showvendorgames*/
|
|
4551
4508
|
e[3] !== "false" && /*vendor*/
|
|
4552
|
-
e[43]?.games.total &&
|
|
4509
|
+
e[43]?.games.total && $t(e)
|
|
4553
4510
|
);
|
|
4554
4511
|
return {
|
|
4555
4512
|
c() {
|
|
4556
|
-
t = S("button"), n = pe(r), i =
|
|
4513
|
+
t = S("button"), n = pe(r), i = G(), o && o.c(), E(
|
|
4557
4514
|
t,
|
|
4558
4515
|
"class",
|
|
4559
4516
|
/*getButtonClasses*/
|
|
@@ -4566,16 +4523,16 @@ function jt(e) {
|
|
|
4566
4523
|
p(s, a) {
|
|
4567
4524
|
a[0] & /*vendors*/
|
|
4568
4525
|
64 && r !== (r = /*vendor*/
|
|
4569
|
-
s[43].displayName + "") &&
|
|
4526
|
+
s[43].displayName + "") && nt(n, r), /*showvendorgames*/
|
|
4570
4527
|
s[3] !== "false" && /*vendor*/
|
|
4571
|
-
s[43]?.games.total ? o ? o.p(s, a) : (o =
|
|
4528
|
+
s[43]?.games.total ? o ? o.p(s, a) : (o = $t(s), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4572
4529
|
},
|
|
4573
4530
|
d(s) {
|
|
4574
4531
|
s && I(t), o && o.d();
|
|
4575
4532
|
}
|
|
4576
4533
|
};
|
|
4577
4534
|
}
|
|
4578
|
-
function
|
|
4535
|
+
function $t(e) {
|
|
4579
4536
|
let t, r = (
|
|
4580
4537
|
/*getGamesTotal*/
|
|
4581
4538
|
e[18](
|
|
@@ -4585,7 +4542,7 @@ function Vt(e) {
|
|
|
4585
4542
|
), n;
|
|
4586
4543
|
return {
|
|
4587
4544
|
c() {
|
|
4588
|
-
t = S("span"), n = pe(r),
|
|
4545
|
+
t = S("span"), n = pe(r), E(t, "class", "CategoryButtonCount");
|
|
4589
4546
|
},
|
|
4590
4547
|
m(i, o) {
|
|
4591
4548
|
B(i, t, o), H(t, n);
|
|
@@ -4596,26 +4553,26 @@ function Vt(e) {
|
|
|
4596
4553
|
i[18](
|
|
4597
4554
|
/*vendor*/
|
|
4598
4555
|
i[43]?.games.total
|
|
4599
|
-
) + "") &&
|
|
4556
|
+
) + "") && nt(n, r);
|
|
4600
4557
|
},
|
|
4601
4558
|
d(i) {
|
|
4602
4559
|
i && I(t);
|
|
4603
4560
|
}
|
|
4604
4561
|
};
|
|
4605
4562
|
}
|
|
4606
|
-
function
|
|
4607
|
-
let r, n, i, o, s, a,
|
|
4563
|
+
function kt(e, t) {
|
|
4564
|
+
let r, n, i, o, s, a, l, u = (
|
|
4608
4565
|
/*showvendoricon*/
|
|
4609
|
-
t[1] !== "false" &&
|
|
4566
|
+
t[1] !== "false" && Lt(t)
|
|
4610
4567
|
), h = (
|
|
4611
4568
|
/*showvendoricon*/
|
|
4612
4569
|
t[1] == "true" && /*showvendorgames*/
|
|
4613
4570
|
t[3] !== "false" && /*showvendorname*/
|
|
4614
4571
|
t[2] == "false" && /*vendor*/
|
|
4615
|
-
t[43]?.games?.total &&
|
|
4572
|
+
t[43]?.games?.total && Ut(t)
|
|
4616
4573
|
), c = (
|
|
4617
4574
|
/*showvendorname*/
|
|
4618
|
-
t[2] !== "false" &&
|
|
4575
|
+
t[2] !== "false" && Dt(t)
|
|
4619
4576
|
);
|
|
4620
4577
|
function f(...m) {
|
|
4621
4578
|
return (
|
|
@@ -4633,7 +4590,7 @@ function Wt(e, t) {
|
|
|
4633
4590
|
key: e,
|
|
4634
4591
|
first: null,
|
|
4635
4592
|
c() {
|
|
4636
|
-
r = S("li"),
|
|
4593
|
+
r = S("li"), u && u.c(), n = G(), h && h.c(), i = G(), c && c.c(), o = G(), E(r, "class", s = "CarouselItem " + (String(
|
|
4637
4594
|
/*activevendor*/
|
|
4638
4595
|
t[0]
|
|
4639
4596
|
) == String(
|
|
@@ -4641,11 +4598,11 @@ function Wt(e, t) {
|
|
|
4641
4598
|
t[43].id
|
|
4642
4599
|
) ? "active" : "") + " SecondaryMenu"), this.first = r;
|
|
4643
4600
|
},
|
|
4644
|
-
m(m,
|
|
4645
|
-
B(m, r,
|
|
4601
|
+
m(m, p) {
|
|
4602
|
+
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 = [
|
|
4646
4603
|
J(r, "click", f),
|
|
4647
4604
|
J(r, "keydown", function() {
|
|
4648
|
-
|
|
4605
|
+
Se(
|
|
4649
4606
|
/*onCarouselItemKeydown*/
|
|
4650
4607
|
t[16](
|
|
4651
4608
|
/*vendor*/
|
|
@@ -4662,35 +4619,35 @@ function Wt(e, t) {
|
|
|
4662
4619
|
})
|
|
4663
4620
|
], a = !0);
|
|
4664
4621
|
},
|
|
4665
|
-
p(m,
|
|
4622
|
+
p(m, p) {
|
|
4666
4623
|
t = m, /*showvendoricon*/
|
|
4667
|
-
t[1] !== "false" ?
|
|
4624
|
+
t[1] !== "false" ? u ? u.p(t, p) : (u = Lt(t), u.c(), u.m(r, n)) : u && (u.d(1), u = null), /*showvendoricon*/
|
|
4668
4625
|
t[1] == "true" && /*showvendorgames*/
|
|
4669
4626
|
t[3] !== "false" && /*showvendorname*/
|
|
4670
4627
|
t[2] == "false" && /*vendor*/
|
|
4671
|
-
t[43]?.games?.total ? h ? h.p(t,
|
|
4672
|
-
t[2] !== "false" ? c ? c.p(t,
|
|
4628
|
+
t[43]?.games?.total ? h ? h.p(t, p) : (h = Ut(t), h.c(), h.m(r, i)) : h && (h.d(1), h = null), /*showvendorname*/
|
|
4629
|
+
t[2] !== "false" ? c ? c.p(t, p) : (c = Dt(t), c.c(), c.m(r, o)) : c && (c.d(1), c = null), p[0] & /*activevendor, vendors*/
|
|
4673
4630
|
65 && s !== (s = "CarouselItem " + (String(
|
|
4674
4631
|
/*activevendor*/
|
|
4675
4632
|
t[0]
|
|
4676
4633
|
) == String(
|
|
4677
4634
|
/*vendor*/
|
|
4678
4635
|
t[43].id
|
|
4679
|
-
) ? "active" : "") + " SecondaryMenu") &&
|
|
4636
|
+
) ? "active" : "") + " SecondaryMenu") && E(r, "class", s);
|
|
4680
4637
|
},
|
|
4681
4638
|
d(m) {
|
|
4682
|
-
m && I(r),
|
|
4639
|
+
m && I(r), u && u.d(), h && h.d(), c && c.d(), a = !1, X(l);
|
|
4683
4640
|
}
|
|
4684
4641
|
};
|
|
4685
4642
|
}
|
|
4686
|
-
function
|
|
4643
|
+
function go(e) {
|
|
4687
4644
|
let t;
|
|
4688
4645
|
function r(o, s) {
|
|
4689
4646
|
return (
|
|
4690
4647
|
/*isLoading*/
|
|
4691
|
-
o[5] ?
|
|
4648
|
+
o[5] ? po : (
|
|
4692
4649
|
/*hasErrors*/
|
|
4693
|
-
o[7] ?
|
|
4650
|
+
o[7] ? fo : co
|
|
4694
4651
|
)
|
|
4695
4652
|
);
|
|
4696
4653
|
}
|
|
@@ -4712,121 +4669,121 @@ function Eo(e) {
|
|
|
4712
4669
|
}
|
|
4713
4670
|
};
|
|
4714
4671
|
}
|
|
4715
|
-
function
|
|
4716
|
-
|
|
4717
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent:
|
|
4672
|
+
function vo(e, t, r) {
|
|
4673
|
+
io({ withLocale: "en", translations: {} });
|
|
4674
|
+
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 = Pt(b) !== "PC", L = !0, P, A = [], O = !1, w, N, g;
|
|
4718
4675
|
const $ = () => {
|
|
4719
|
-
fetch(
|
|
4720
|
-
Object.keys(
|
|
4721
|
-
|
|
4676
|
+
fetch(u).then((x) => x.json()).then((x) => {
|
|
4677
|
+
Object.keys(x).forEach((U) => {
|
|
4678
|
+
oo(U, x[U]);
|
|
4722
4679
|
});
|
|
4723
|
-
}).catch((
|
|
4724
|
-
console.log(
|
|
4680
|
+
}).catch((x) => {
|
|
4681
|
+
console.log(x);
|
|
4725
4682
|
});
|
|
4726
4683
|
}, k = () => {
|
|
4727
|
-
|
|
4728
|
-
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, O = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, O = !0), r(5, L = !1), console.error(P)), O),
|
|
4684
|
+
so(o);
|
|
4685
|
+
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, O = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, O = !0), r(5, L = !1), console.error(P)), O), xr = () => {
|
|
4729
4686
|
if (!Z()) {
|
|
4730
|
-
let
|
|
4731
|
-
|
|
4732
|
-
(
|
|
4733
|
-
let U =
|
|
4687
|
+
let d = new URL(`${n}/v1/casino/vendors`);
|
|
4688
|
+
d.searchParams.append("datasource", i), d.searchParams.append("language", o), d.searchParams.append("platform", Pt(b)), fetch(d).then((x) => x.json()).then(
|
|
4689
|
+
(x) => {
|
|
4690
|
+
let U = x.items.filter((Me) => Me.games.total > 0);
|
|
4734
4691
|
r(6, A = []), r(6, A = A.concat(U)), r(5, L = !1);
|
|
4735
4692
|
},
|
|
4736
|
-
(
|
|
4737
|
-
r(7, O = !0), console.error("There was an error while fetching the vendors",
|
|
4693
|
+
(x) => {
|
|
4694
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", x);
|
|
4738
4695
|
}
|
|
4739
|
-
).catch((
|
|
4740
|
-
r(7, O = !0), console.error("There was an error while fetching the vendors",
|
|
4696
|
+
).catch((x) => {
|
|
4697
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", x);
|
|
4741
4698
|
});
|
|
4742
4699
|
}
|
|
4743
4700
|
};
|
|
4744
|
-
|
|
4701
|
+
Gr(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4745
4702
|
() => {
|
|
4746
|
-
g && g.addEventListener("scroll",
|
|
4703
|
+
g && g.addEventListener("scroll", Oe);
|
|
4747
4704
|
},
|
|
4748
4705
|
500
|
|
4749
4706
|
), () => {
|
|
4750
|
-
N.removeEventListener("scroll",
|
|
4707
|
+
N.removeEventListener("scroll", Oe);
|
|
4751
4708
|
}));
|
|
4752
|
-
let
|
|
4753
|
-
|
|
4709
|
+
let Pe = (d, x) => {
|
|
4710
|
+
Oe(), r(0, m = d.id), window.postMessage(
|
|
4754
4711
|
{
|
|
4755
|
-
type:
|
|
4756
|
-
itemId:
|
|
4757
|
-
index:
|
|
4758
|
-
item:
|
|
4759
|
-
path:
|
|
4760
|
-
externalLink:
|
|
4761
|
-
target:
|
|
4712
|
+
type: l,
|
|
4713
|
+
itemId: d.id,
|
|
4714
|
+
index: x,
|
|
4715
|
+
item: d,
|
|
4716
|
+
path: d.path,
|
|
4717
|
+
externalLink: d.externalLink || !1,
|
|
4718
|
+
target: d.attrs?.target || null
|
|
4762
4719
|
},
|
|
4763
4720
|
window.location.href
|
|
4764
4721
|
);
|
|
4765
|
-
},
|
|
4766
|
-
const
|
|
4767
|
-
if (
|
|
4768
|
-
const
|
|
4722
|
+
}, st = () => {
|
|
4723
|
+
const d = g.scrollLeft;
|
|
4724
|
+
if (d > 0) {
|
|
4725
|
+
const x = Math.min(250, d);
|
|
4769
4726
|
g.scrollBy({
|
|
4770
|
-
left: -
|
|
4727
|
+
left: -x,
|
|
4771
4728
|
behavior: "smooth"
|
|
4772
4729
|
});
|
|
4773
4730
|
}
|
|
4774
|
-
},
|
|
4775
|
-
const
|
|
4776
|
-
if (
|
|
4777
|
-
const
|
|
4778
|
-
g.scrollBy({ left:
|
|
4731
|
+
}, at = () => {
|
|
4732
|
+
const d = g.scrollLeft, x = g.scrollWidth, U = g.clientWidth;
|
|
4733
|
+
if (d + U < x) {
|
|
4734
|
+
const Me = x - (d + U), Or = Math.min(250, Me);
|
|
4735
|
+
g.scrollBy({ left: Or, behavior: "smooth" });
|
|
4779
4736
|
}
|
|
4780
4737
|
};
|
|
4781
|
-
const
|
|
4782
|
-
const
|
|
4738
|
+
const Oe = () => {
|
|
4739
|
+
const d = N.querySelectorAll(".DropDown");
|
|
4783
4740
|
document.activeElement.blur(), g.classList.add("isScrolling");
|
|
4784
|
-
for (let
|
|
4785
|
-
|
|
4741
|
+
for (let x = 0; x < d.length; x++)
|
|
4742
|
+
d[x].style.transform = "translateX(-" + g.scrollLeft + "px)";
|
|
4786
4743
|
g.classList.remove("isScrolling");
|
|
4787
|
-
},
|
|
4788
|
-
(
|
|
4789
|
-
},
|
|
4790
|
-
(
|
|
4791
|
-
},
|
|
4792
|
-
(U.key === "Enter" || U.key === " ") && (
|
|
4793
|
-
},
|
|
4744
|
+
}, Er = (d) => {
|
|
4745
|
+
(d.key === "Enter" || d.key === " ") && (at(), d.preventDefault());
|
|
4746
|
+
}, Cr = (d) => {
|
|
4747
|
+
(d.key === "Enter" || d.key === " ") && (st(), d.preventDefault());
|
|
4748
|
+
}, wr = (d, x) => (U) => {
|
|
4749
|
+
(U.key === "Enter" || U.key === " ") && (Pe(d, x), U.preventDefault());
|
|
4750
|
+
}, Sr = () => {
|
|
4794
4751
|
if (T && c === "true" && h === "false")
|
|
4795
4752
|
return "MobileCategoryButton";
|
|
4796
|
-
},
|
|
4797
|
-
|
|
4753
|
+
}, Tr = (d) => d > 1e3 ? "999+" : d, Hr = (d, x, U) => {
|
|
4754
|
+
Pe(d, x), U.preventDefault();
|
|
4798
4755
|
};
|
|
4799
|
-
function
|
|
4800
|
-
K[
|
|
4801
|
-
N =
|
|
4756
|
+
function Ar(d) {
|
|
4757
|
+
K[d ? "unshift" : "push"](() => {
|
|
4758
|
+
N = d, r(8, N);
|
|
4802
4759
|
});
|
|
4803
4760
|
}
|
|
4804
|
-
function
|
|
4805
|
-
K[
|
|
4806
|
-
g =
|
|
4761
|
+
function Ir(d) {
|
|
4762
|
+
K[d ? "unshift" : "push"](() => {
|
|
4763
|
+
g = d, r(9, g);
|
|
4807
4764
|
});
|
|
4808
4765
|
}
|
|
4809
|
-
function
|
|
4810
|
-
K[
|
|
4811
|
-
w =
|
|
4766
|
+
function Br(d) {
|
|
4767
|
+
K[d ? "unshift" : "push"](() => {
|
|
4768
|
+
w = d, r(4, w);
|
|
4812
4769
|
});
|
|
4813
4770
|
}
|
|
4814
|
-
function
|
|
4815
|
-
K[
|
|
4816
|
-
w =
|
|
4771
|
+
function Pr(d) {
|
|
4772
|
+
K[d ? "unshift" : "push"](() => {
|
|
4773
|
+
w = d, r(4, w);
|
|
4817
4774
|
});
|
|
4818
4775
|
}
|
|
4819
|
-
return e.$$set = (
|
|
4820
|
-
"endpoint" in
|
|
4776
|
+
return e.$$set = (d) => {
|
|
4777
|
+
"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);
|
|
4821
4778
|
}, e.$$.update = () => {
|
|
4822
4779
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
4823
|
-
2621440 && n && o &&
|
|
4824
|
-
33554432 &&
|
|
4780
|
+
2621440 && n && o && xr(), e.$$.dirty[0] & /*translationurl*/
|
|
4781
|
+
33554432 && u && $(), e.$$.dirty[0] & /*activevendor*/
|
|
4825
4782
|
1, e.$$.dirty[0] & /*lang*/
|
|
4826
4783
|
2097152 && o && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4827
|
-
4194320 && s && w &&
|
|
4828
|
-
8388624 && a && w &&
|
|
4829
|
-
67108880 &&
|
|
4784
|
+
4194320 && s && w && ao(w, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4785
|
+
8388624 && a && w && lo(w, a), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4786
|
+
67108880 && p && w && uo(w, `${p}.Style`);
|
|
4830
4787
|
}, [
|
|
4831
4788
|
m,
|
|
4832
4789
|
h,
|
|
@@ -4839,37 +4796,37 @@ function wo(e, t, r) {
|
|
|
4839
4796
|
N,
|
|
4840
4797
|
g,
|
|
4841
4798
|
T,
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4799
|
+
Pe,
|
|
4800
|
+
st,
|
|
4801
|
+
at,
|
|
4802
|
+
Er,
|
|
4803
|
+
Cr,
|
|
4804
|
+
wr,
|
|
4805
|
+
Sr,
|
|
4806
|
+
Tr,
|
|
4850
4807
|
n,
|
|
4851
4808
|
i,
|
|
4852
4809
|
o,
|
|
4853
4810
|
s,
|
|
4854
4811
|
a,
|
|
4855
|
-
u,
|
|
4856
4812
|
l,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4813
|
+
u,
|
|
4814
|
+
p,
|
|
4815
|
+
Hr,
|
|
4816
|
+
Ar,
|
|
4817
|
+
Ir,
|
|
4818
|
+
Br,
|
|
4819
|
+
Pr
|
|
4863
4820
|
];
|
|
4864
4821
|
}
|
|
4865
|
-
class
|
|
4822
|
+
class yo extends en {
|
|
4866
4823
|
constructor(t) {
|
|
4867
|
-
super(),
|
|
4824
|
+
super(), Jr(
|
|
4868
4825
|
this,
|
|
4869
4826
|
t,
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4827
|
+
vo,
|
|
4828
|
+
go,
|
|
4829
|
+
Ft,
|
|
4873
4830
|
{
|
|
4874
4831
|
endpoint: 19,
|
|
4875
4832
|
datasource: 20,
|
|
@@ -4884,7 +4841,7 @@ class Co extends sn {
|
|
|
4884
4841
|
activevendor: 0,
|
|
4885
4842
|
mbsource: 26
|
|
4886
4843
|
},
|
|
4887
|
-
|
|
4844
|
+
ho,
|
|
4888
4845
|
[-1, -1]
|
|
4889
4846
|
);
|
|
4890
4847
|
}
|
|
@@ -4961,7 +4918,7 @@ class Co extends sn {
|
|
|
4961
4918
|
this.$$set({ mbsource: t }), R();
|
|
4962
4919
|
}
|
|
4963
4920
|
}
|
|
4964
|
-
|
|
4921
|
+
Kr(yo, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, actionevent: {}, translationurl: {}, showvendoricon: {}, showvendorname: {}, showvendorgames: {}, activevendor: {}, mbsource: {} }, [], [], !0);
|
|
4965
4922
|
export {
|
|
4966
|
-
|
|
4923
|
+
yo as C
|
|
4967
4924
|
};
|