@everymatrix/casino-most-played-section-nd 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoFilter-TkJI4TQp.js → CasinoFilter-Bch9-Za7.js} +941 -899
- package/components/CasinoFilter-CG0X9Tjs.cjs +5 -0
- package/components/{CasinoFilter-D8-OnnVG.js → CasinoFilter-ymJJY7X3.js} +912 -870
- package/components/{CasinoGameThumbnailNd-CHpXjHVm.cjs → CasinoGameThumbnailNd-CCxyJSgT.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-Dl_FCa6I.js → CasinoGameThumbnailNd-DP3r0fBl.js} +62 -62
- package/components/{CasinoGameThumbnailNd-CkuM82aL.js → CasinoGameThumbnailNd-_Q3xWtC2.js} +62 -62
- package/components/{CasinoGamesCategorySectionNd-Bc2nDk9e.cjs → CasinoGamesCategorySectionNd-B_rh8i_W.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-Dgaq2U8v.js → CasinoGamesCategorySectionNd-D_n0ddSb.js} +89 -89
- package/components/{CasinoGamesCategorySectionNd-CjRIzy0Z.js → CasinoGamesCategorySectionNd-KVk0OhPn.js} +86 -86
- package/components/{CasinoMostPlayedSectionNd-CYDsHan_.js → CasinoMostPlayedSectionNd-C3Sr90iN.js} +10 -10
- package/components/{CasinoMostPlayedSectionNd-DTqNLA_u.cjs → CasinoMostPlayedSectionNd-C7NwcMA_.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-8Uv9E8st.js → CasinoMostPlayedSectionNd-OsymUhND.js} +12 -12
- package/components/CasinoSort-0eWppqKb.js +427 -0
- package/components/CasinoSort-CXIb6SHE.cjs +1 -0
- package/components/CasinoSort-D9jgzU7n.js +428 -0
- package/es2015/casino-most-played-section-nd.cjs +1 -1
- package/es2015/casino-most-played-section-nd.js +1 -1
- package/esnext/casino-most-played-section-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoFilter-DoXQDU0g.cjs +0 -5
- package/components/CasinoSort-D9xoCFAb.js +0 -432
- package/components/CasinoSort-DMl4ZrR2.js +0 -431
- package/components/CasinoSort-DjA47XS5.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var We = (e, t, r) => t in e ?
|
|
1
|
+
var Gr = Object.defineProperty, kr = Object.defineProperties;
|
|
2
|
+
var jr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var wt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var We = (e, t, r) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Vr.call(t, r) && We(e, r, t[r]);
|
|
8
|
+
if (wt)
|
|
9
|
+
for (var r of wt(t))
|
|
10
|
+
Xr.call(t, r) && We(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Tt = (e, t) => kr(e, jr(t));
|
|
13
13
|
var R = (e, t, r) => We(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var
|
|
14
|
+
var Ht = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
@@ -29,29 +29,29 @@ var wt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function k() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function rr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function At() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function K(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(rr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function gt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function nr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let Be;
|
|
48
|
-
function
|
|
48
|
+
function Pt(e, t) {
|
|
49
49
|
return e === t ? !0 : (Be || (Be = document.createElement("a")), Be.href = t, e === Be.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Wr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ir(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function tr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function zr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(ir(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function _(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function Zr(e, t, r) {
|
|
70
|
+
const n = Jr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = C("style");
|
|
73
|
+
i.id = t, i.textContent = r, Qr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Jr(e) {
|
|
77
77
|
if (!e) return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,8 +82,8 @@ function Xr(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function Qr(e, t) {
|
|
86
|
+
return _(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
@@ -95,11 +95,11 @@ function W(e, t, r) {
|
|
|
95
95
|
function j(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function qr(e, t) {
|
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
|
100
100
|
e[r] && e[r].d(t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function C(e) {
|
|
103
103
|
return document.createElement(e);
|
|
104
104
|
}
|
|
105
105
|
function we(e) {
|
|
@@ -111,36 +111,36 @@ function G(e) {
|
|
|
111
111
|
function X() {
|
|
112
112
|
return G(" ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Bo() {
|
|
115
115
|
return G("");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function De(e, t, r, n) {
|
|
118
118
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function b(e, t, r) {
|
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Io(e, t, r) {
|
|
124
124
|
const n = t.toLowerCase();
|
|
125
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
125
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : b(e, t, r);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Yr(e) {
|
|
128
128
|
return Array.from(e.childNodes);
|
|
129
129
|
}
|
|
130
130
|
function Y(e, t) {
|
|
131
131
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
132
132
|
t);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ft(e, t) {
|
|
135
135
|
e.value = t == null ? "" : t;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Oo(e, t, r, n) {
|
|
138
138
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Lo(e, t, r) {
|
|
141
141
|
e.classList.toggle(t, !!r);
|
|
142
142
|
}
|
|
143
|
-
class
|
|
143
|
+
class No {
|
|
144
144
|
constructor(t = !1) {
|
|
145
145
|
/**
|
|
146
146
|
* @private
|
|
@@ -174,7 +174,7 @@ class Co {
|
|
|
174
174
|
this.e || (this.is_svg ? this.e = we(
|
|
175
175
|
/** @type {keyof SVGElementTagNameMap} */
|
|
176
176
|
r.nodeName
|
|
177
|
-
) : this.e =
|
|
177
|
+
) : this.e = C(
|
|
178
178
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
179
179
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
180
180
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -210,7 +210,7 @@ class Co {
|
|
|
210
210
|
this.n.forEach(j);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Kr(e) {
|
|
214
214
|
const t = {};
|
|
215
215
|
return e.childNodes.forEach(
|
|
216
216
|
/** @param {Element} node */
|
|
@@ -223,25 +223,25 @@ let Te;
|
|
|
223
223
|
function Se(e) {
|
|
224
224
|
Te = e;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function en() {
|
|
227
227
|
if (!Te) throw new Error("Function called outside component initialization");
|
|
228
228
|
return Te;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function tn(e) {
|
|
231
|
+
en().$$.on_mount.push(e);
|
|
232
232
|
}
|
|
233
|
-
const fe = [],
|
|
234
|
-
let
|
|
235
|
-
const
|
|
236
|
-
let
|
|
237
|
-
function
|
|
238
|
-
|
|
233
|
+
const fe = [], tt = [];
|
|
234
|
+
let de = [];
|
|
235
|
+
const Ct = [], or = /* @__PURE__ */ Promise.resolve();
|
|
236
|
+
let rt = !1;
|
|
237
|
+
function sr() {
|
|
238
|
+
rt || (rt = !0, or.then(U));
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
return
|
|
240
|
+
function Mo() {
|
|
241
|
+
return sr(), or;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
243
|
+
function nt(e) {
|
|
244
|
+
de.push(e);
|
|
245
245
|
}
|
|
246
246
|
const ze = /* @__PURE__ */ new Set();
|
|
247
247
|
let he = 0;
|
|
@@ -253,83 +253,83 @@ function U() {
|
|
|
253
253
|
try {
|
|
254
254
|
for (; he < fe.length; ) {
|
|
255
255
|
const t = fe[he];
|
|
256
|
-
he++, Se(t),
|
|
256
|
+
he++, Se(t), rn(t.$$);
|
|
257
257
|
}
|
|
258
258
|
} catch (t) {
|
|
259
259
|
throw fe.length = 0, he = 0, t;
|
|
260
260
|
}
|
|
261
|
-
for (Se(null), fe.length = 0, he = 0;
|
|
262
|
-
for (let t = 0; t <
|
|
263
|
-
const r =
|
|
261
|
+
for (Se(null), fe.length = 0, he = 0; tt.length; ) tt.pop()();
|
|
262
|
+
for (let t = 0; t < de.length; t += 1) {
|
|
263
|
+
const r = de[t];
|
|
264
264
|
ze.has(r) || (ze.add(r), r());
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
de.length = 0;
|
|
267
267
|
} while (fe.length);
|
|
268
|
-
for (;
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
for (; Ct.length; )
|
|
269
|
+
Ct.pop()();
|
|
270
|
+
rt = !1, ze.clear(), Se(e);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function rn(e) {
|
|
273
273
|
if (e.fragment !== null) {
|
|
274
274
|
e.update(), K(e.before_update);
|
|
275
275
|
const t = e.dirty;
|
|
276
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
276
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nt);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function nn(e) {
|
|
280
280
|
const t = [], r = [];
|
|
281
|
-
|
|
281
|
+
de.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), de = t;
|
|
282
282
|
}
|
|
283
|
-
const
|
|
284
|
-
function
|
|
285
|
-
e && e.i && (
|
|
283
|
+
const on = /* @__PURE__ */ new Set();
|
|
284
|
+
function ar(e, t) {
|
|
285
|
+
e && e.i && (on.delete(e), e.i(t));
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Bt(e) {
|
|
288
288
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ro(e, t) {
|
|
291
291
|
e.d(1), t.delete(e.key);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
let c = e.length, m = o.length,
|
|
295
|
-
const
|
|
296
|
-
for (;
|
|
297
|
-
const
|
|
298
|
-
for (
|
|
299
|
-
const
|
|
300
|
-
let
|
|
301
|
-
|
|
293
|
+
function Do(e, t, r, n, i, o, s, a, u, l, h, d) {
|
|
294
|
+
let c = e.length, m = o.length, y = c;
|
|
295
|
+
const g = {};
|
|
296
|
+
for (; y--; ) g[e[y].key] = y;
|
|
297
|
+
const F = [], w = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), x = [];
|
|
298
|
+
for (y = m; y--; ) {
|
|
299
|
+
const S = d(i, o, y), I = r(S);
|
|
300
|
+
let L = s.get(I);
|
|
301
|
+
L ? x.push(() => L.p(S, t)) : (L = l(I, S), L.c()), w.set(I, F[y] = L), I in g && v.set(I, Math.abs(y - g[I]));
|
|
302
302
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
305
|
-
|
|
303
|
+
const O = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
|
304
|
+
function M(S) {
|
|
305
|
+
ar(S, 1), S.m(a, h), s.set(S.key, S), h = S.first, m--;
|
|
306
306
|
}
|
|
307
307
|
for (; c && m; ) {
|
|
308
|
-
const
|
|
309
|
-
|
|
308
|
+
const S = F[m - 1], I = e[c - 1], L = S.key, z = I.key;
|
|
309
|
+
S === I ? (h = S.first, c--, m--) : w.has(z) ? !s.has(L) || O.has(L) ? M(S) : N.has(z) ? c-- : v.get(L) > v.get(z) ? (N.add(L), M(S)) : (O.add(z), c--) : (u(I, s), c--);
|
|
310
310
|
}
|
|
311
311
|
for (; c--; ) {
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
const S = e[c];
|
|
313
|
+
w.has(S.key) || u(S, s);
|
|
314
314
|
}
|
|
315
|
-
for (; m; )
|
|
316
|
-
return K(
|
|
315
|
+
for (; m; ) M(F[m - 1]);
|
|
316
|
+
return K(x), F;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function sn(e, t, r) {
|
|
319
319
|
const { fragment: n, after_update: i } = e.$$;
|
|
320
|
-
n && n.m(t, r),
|
|
321
|
-
const o = e.$$.on_mount.map(
|
|
320
|
+
n && n.m(t, r), nt(() => {
|
|
321
|
+
const o = e.$$.on_mount.map(rr).filter(gt);
|
|
322
322
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
323
|
-
}), i.forEach(
|
|
323
|
+
}), i.forEach(nt);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function an(e, t) {
|
|
326
326
|
const r = e.$$;
|
|
327
|
-
r.fragment !== null && (
|
|
327
|
+
r.fragment !== null && (nn(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
e.$$.dirty[0] === -1 && (fe.push(e),
|
|
329
|
+
function ln(e, t) {
|
|
330
|
+
e.$$.dirty[0] === -1 && (fe.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function un(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
333
333
|
const u = Te;
|
|
334
334
|
Se(e);
|
|
335
335
|
const l = e.$$ = {
|
|
@@ -339,7 +339,7 @@ function on(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
339
339
|
props: o,
|
|
340
340
|
update: k,
|
|
341
341
|
not_equal: i,
|
|
342
|
-
bound:
|
|
342
|
+
bound: At(),
|
|
343
343
|
// lifecycle
|
|
344
344
|
on_mount: [],
|
|
345
345
|
on_destroy: [],
|
|
@@ -348,28 +348,28 @@ function on(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
348
348
|
after_update: [],
|
|
349
349
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
350
350
|
// everything else
|
|
351
|
-
callbacks:
|
|
351
|
+
callbacks: At(),
|
|
352
352
|
dirty: a,
|
|
353
353
|
skip_bound: !1,
|
|
354
354
|
root: t.target || u.$$.root
|
|
355
355
|
};
|
|
356
356
|
s && s(l.root);
|
|
357
357
|
let h = !1;
|
|
358
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
|
359
|
-
const
|
|
360
|
-
return l.ctx && i(l.ctx[
|
|
358
|
+
if (l.ctx = r ? r(e, t.props || {}, (d, c, ...m) => {
|
|
359
|
+
const y = m.length ? m[0] : c;
|
|
360
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = y) && (!l.skip_bound && l.bound[d] && l.bound[d](y), h && ln(e, d)), c;
|
|
361
361
|
}) : [], l.update(), h = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
362
362
|
if (t.hydrate) {
|
|
363
|
-
const
|
|
364
|
-
l.fragment && l.fragment.l(
|
|
363
|
+
const d = Yr(t.target);
|
|
364
|
+
l.fragment && l.fragment.l(d), d.forEach(j);
|
|
365
365
|
} else
|
|
366
366
|
l.fragment && l.fragment.c();
|
|
367
|
-
t.intro &&
|
|
367
|
+
t.intro && ar(e.$$.fragment), sn(e, t.target, t.anchor), U();
|
|
368
368
|
}
|
|
369
369
|
Se(u);
|
|
370
370
|
}
|
|
371
|
-
let
|
|
372
|
-
typeof HTMLElement == "function" && (
|
|
371
|
+
let lr;
|
|
372
|
+
typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
373
373
|
constructor(t, r, n) {
|
|
374
374
|
super();
|
|
375
375
|
/** The Svelte component constructor */
|
|
@@ -406,14 +406,14 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
connectedCallback() {
|
|
409
|
-
return
|
|
409
|
+
return Ht(this, null, function* () {
|
|
410
410
|
if (this.$$cn = !0, !this.$$c) {
|
|
411
411
|
let t = function(o) {
|
|
412
412
|
return () => {
|
|
413
413
|
let s;
|
|
414
414
|
return {
|
|
415
415
|
c: function() {
|
|
416
|
-
s =
|
|
416
|
+
s = C("slot"), o !== "default" && b(s, "name", o);
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
419
419
|
* @param {HTMLElement} target
|
|
@@ -430,7 +430,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
430
430
|
};
|
|
431
431
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
432
432
|
return;
|
|
433
|
-
const r = {}, n =
|
|
433
|
+
const r = {}, n = Kr(this);
|
|
434
434
|
for (const o of this.$$s)
|
|
435
435
|
o in n && (r[o] = [t(o)]);
|
|
436
436
|
for (const o of this.attributes) {
|
|
@@ -441,7 +441,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
441
441
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
442
442
|
this.$$c = new this.$$ctor({
|
|
443
443
|
target: this.shadowRoot || this,
|
|
444
|
-
props:
|
|
444
|
+
props: Tt(St({}, this.$$d), {
|
|
445
445
|
$$slots: r,
|
|
446
446
|
$$scope: {
|
|
447
447
|
ctx: []
|
|
@@ -519,8 +519,8 @@ function Le(e, t, r, n) {
|
|
|
519
519
|
return t;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
let s = class extends
|
|
522
|
+
function hn(e, t, r, n, i, o) {
|
|
523
|
+
let s = class extends lr {
|
|
524
524
|
constructor() {
|
|
525
525
|
super(e, r, i), this.$$p_d = t;
|
|
526
526
|
}
|
|
@@ -550,7 +550,7 @@ function sn(e, t, r, n, i, o) {
|
|
|
550
550
|
}), e.element = /** @type {any} */
|
|
551
551
|
s, s;
|
|
552
552
|
}
|
|
553
|
-
class
|
|
553
|
+
class cn {
|
|
554
554
|
constructor() {
|
|
555
555
|
/**
|
|
556
556
|
* ### PRIVATE API
|
|
@@ -571,7 +571,7 @@ class an {
|
|
|
571
571
|
}
|
|
572
572
|
/** @returns {void} */
|
|
573
573
|
$destroy() {
|
|
574
|
-
|
|
574
|
+
an(this, 1), this.$destroy = k;
|
|
575
575
|
}
|
|
576
576
|
/**
|
|
577
577
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -580,7 +580,7 @@ class an {
|
|
|
580
580
|
* @returns {() => void}
|
|
581
581
|
*/
|
|
582
582
|
$on(t, r) {
|
|
583
|
-
if (!
|
|
583
|
+
if (!gt(r))
|
|
584
584
|
return k;
|
|
585
585
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
586
586
|
return n.push(r), () => {
|
|
@@ -593,37 +593,37 @@ class an {
|
|
|
593
593
|
* @returns {void}
|
|
594
594
|
*/
|
|
595
595
|
$set(t) {
|
|
596
|
-
this.$$set && !
|
|
596
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
const
|
|
600
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
601
|
-
var
|
|
602
|
-
return
|
|
599
|
+
const fn = "4";
|
|
600
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
|
|
601
|
+
var it = function(e, t) {
|
|
602
|
+
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
603
603
|
r.__proto__ = n;
|
|
604
604
|
} || function(r, n) {
|
|
605
605
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
606
|
-
},
|
|
606
|
+
}, it(e, t);
|
|
607
607
|
};
|
|
608
608
|
function J(e, t) {
|
|
609
609
|
if (typeof t != "function" && t !== null)
|
|
610
610
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
611
|
-
|
|
611
|
+
it(e, t);
|
|
612
612
|
function r() {
|
|
613
613
|
this.constructor = e;
|
|
614
614
|
}
|
|
615
615
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
return
|
|
617
|
+
var H = function() {
|
|
618
|
+
return H = Object.assign || function(t) {
|
|
619
619
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
620
620
|
r = arguments[n];
|
|
621
621
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
622
622
|
}
|
|
623
623
|
return t;
|
|
624
|
-
},
|
|
624
|
+
}, H.apply(this, arguments);
|
|
625
625
|
};
|
|
626
|
-
function
|
|
626
|
+
function dn(e, t) {
|
|
627
627
|
var r = {};
|
|
628
628
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
629
629
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -631,7 +631,7 @@ function un(e, t) {
|
|
|
631
631
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
632
632
|
return r;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ot(e) {
|
|
635
635
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
636
636
|
if (r) return r.call(e);
|
|
637
637
|
if (e && typeof e.length == "number") return {
|
|
@@ -641,7 +641,7 @@ function it(e) {
|
|
|
641
641
|
};
|
|
642
642
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function st(e, t) {
|
|
645
645
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
646
646
|
if (!r) return e;
|
|
647
647
|
var n = r.call(e), i, o = [], s;
|
|
@@ -658,7 +658,7 @@ function ot(e, t) {
|
|
|
658
658
|
}
|
|
659
659
|
return o;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function pe(e, t, r) {
|
|
662
662
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
663
663
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
664
664
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -666,13 +666,13 @@ function de(e, t, r) {
|
|
|
666
666
|
function Z(e) {
|
|
667
667
|
return typeof e == "function";
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function ur(e) {
|
|
670
670
|
var t = function(n) {
|
|
671
671
|
Error.call(n), n.stack = new Error().stack;
|
|
672
672
|
}, r = e(t);
|
|
673
673
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
674
674
|
}
|
|
675
|
-
var Ze =
|
|
675
|
+
var Ze = ur(function(e) {
|
|
676
676
|
return function(r) {
|
|
677
677
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
678
678
|
` + r.map(function(n, i) {
|
|
@@ -681,7 +681,7 @@ var Ze = sr(function(e) {
|
|
|
681
681
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
682
682
|
};
|
|
683
683
|
});
|
|
684
|
-
function
|
|
684
|
+
function at(e, t) {
|
|
685
685
|
if (e) {
|
|
686
686
|
var r = e.indexOf(t);
|
|
687
687
|
0 <= r && e.splice(r, 1);
|
|
@@ -699,12 +699,12 @@ var Ge = function() {
|
|
|
699
699
|
if (s)
|
|
700
700
|
if (this._parentage = null, Array.isArray(s))
|
|
701
701
|
try {
|
|
702
|
-
for (var a =
|
|
702
|
+
for (var a = ot(s), u = a.next(); !u.done; u = a.next()) {
|
|
703
703
|
var l = u.value;
|
|
704
704
|
l.remove(this);
|
|
705
705
|
}
|
|
706
|
-
} catch (
|
|
707
|
-
t = { error:
|
|
706
|
+
} catch (g) {
|
|
707
|
+
t = { error: g };
|
|
708
708
|
} finally {
|
|
709
709
|
try {
|
|
710
710
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -718,23 +718,23 @@ var Ge = function() {
|
|
|
718
718
|
if (Z(h))
|
|
719
719
|
try {
|
|
720
720
|
h();
|
|
721
|
-
} catch (
|
|
722
|
-
o =
|
|
721
|
+
} catch (g) {
|
|
722
|
+
o = g instanceof Ze ? g.errors : [g];
|
|
723
723
|
}
|
|
724
|
-
var
|
|
725
|
-
if (
|
|
724
|
+
var d = this._finalizers;
|
|
725
|
+
if (d) {
|
|
726
726
|
this._finalizers = null;
|
|
727
727
|
try {
|
|
728
|
-
for (var c =
|
|
729
|
-
var
|
|
728
|
+
for (var c = ot(d), m = c.next(); !m.done; m = c.next()) {
|
|
729
|
+
var y = m.value;
|
|
730
730
|
try {
|
|
731
|
-
|
|
732
|
-
} catch (
|
|
733
|
-
o = o != null ? o : [],
|
|
731
|
+
It(y);
|
|
732
|
+
} catch (g) {
|
|
733
|
+
o = o != null ? o : [], g instanceof Ze ? o = pe(pe([], st(o)), st(g.errors)) : o.push(g);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
} catch (
|
|
737
|
-
n = { error:
|
|
736
|
+
} catch (g) {
|
|
737
|
+
n = { error: g };
|
|
738
738
|
} finally {
|
|
739
739
|
try {
|
|
740
740
|
m && !m.done && (i = c.return) && i.call(c);
|
|
@@ -750,7 +750,7 @@ var Ge = function() {
|
|
|
750
750
|
var r;
|
|
751
751
|
if (t && t !== this)
|
|
752
752
|
if (this.closed)
|
|
753
|
-
|
|
753
|
+
It(t);
|
|
754
754
|
else {
|
|
755
755
|
if (t instanceof e) {
|
|
756
756
|
if (t.closed || t._hasParent(this))
|
|
@@ -767,52 +767,56 @@ var Ge = function() {
|
|
|
767
767
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
768
768
|
}, e.prototype._removeParent = function(t) {
|
|
769
769
|
var r = this._parentage;
|
|
770
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
770
|
+
r === t ? this._parentage = null : Array.isArray(r) && at(r, t);
|
|
771
771
|
}, e.prototype.remove = function(t) {
|
|
772
772
|
var r = this._finalizers;
|
|
773
|
-
r &&
|
|
773
|
+
r && at(r, t), t instanceof e && t._removeParent(this);
|
|
774
774
|
}, e.EMPTY = function() {
|
|
775
775
|
var t = new e();
|
|
776
776
|
return t.closed = !0, t;
|
|
777
777
|
}(), e;
|
|
778
|
-
}(),
|
|
779
|
-
function
|
|
778
|
+
}(), hr = Ge.EMPTY;
|
|
779
|
+
function cr(e) {
|
|
780
780
|
return e instanceof Ge || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function It(e) {
|
|
783
783
|
Z(e) ? e() : e.unsubscribe();
|
|
784
784
|
}
|
|
785
|
-
var
|
|
786
|
-
|
|
787
|
-
|
|
785
|
+
var fr = {
|
|
786
|
+
onUnhandledError: null,
|
|
787
|
+
onStoppedNotification: null,
|
|
788
|
+
Promise: void 0,
|
|
789
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
790
|
+
useDeprecatedNextContext: !1
|
|
791
|
+
}, pn = {
|
|
788
792
|
setTimeout: function(e, t) {
|
|
789
793
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
790
794
|
r[n - 2] = arguments[n];
|
|
791
|
-
return setTimeout.apply(void 0,
|
|
795
|
+
return setTimeout.apply(void 0, pe([e, t], st(r)));
|
|
792
796
|
},
|
|
793
797
|
clearTimeout: function(e) {
|
|
794
798
|
return clearTimeout(e);
|
|
795
799
|
},
|
|
796
800
|
delegate: void 0
|
|
797
801
|
};
|
|
798
|
-
function
|
|
799
|
-
|
|
802
|
+
function mn(e) {
|
|
803
|
+
pn.setTimeout(function() {
|
|
800
804
|
throw e;
|
|
801
805
|
});
|
|
802
806
|
}
|
|
803
|
-
function
|
|
807
|
+
function Ot() {
|
|
804
808
|
}
|
|
805
809
|
function Ne(e) {
|
|
806
810
|
e();
|
|
807
811
|
}
|
|
808
|
-
var
|
|
812
|
+
var dr = function(e) {
|
|
809
813
|
J(t, e);
|
|
810
814
|
function t(r) {
|
|
811
815
|
var n = e.call(this) || this;
|
|
812
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
816
|
+
return n.isStopped = !1, r ? (n.destination = r, cr(r) && r.add(n)) : n.destination = vn, n;
|
|
813
817
|
}
|
|
814
818
|
return t.create = function(r, n, i) {
|
|
815
|
-
return new
|
|
819
|
+
return new lt(r, n, i);
|
|
816
820
|
}, t.prototype.next = function(r) {
|
|
817
821
|
this.isStopped || this._next(r);
|
|
818
822
|
}, t.prototype.error = function(r) {
|
|
@@ -836,7 +840,11 @@ var ur = function(e) {
|
|
|
836
840
|
this.unsubscribe();
|
|
837
841
|
}
|
|
838
842
|
}, t;
|
|
839
|
-
}(Ge),
|
|
843
|
+
}(Ge), bn = Function.prototype.bind;
|
|
844
|
+
function Je(e, t) {
|
|
845
|
+
return bn.call(e, t);
|
|
846
|
+
}
|
|
847
|
+
var gn = function() {
|
|
840
848
|
function e(t) {
|
|
841
849
|
this.partialObserver = t;
|
|
842
850
|
}
|
|
@@ -846,7 +854,7 @@ var ur = function(e) {
|
|
|
846
854
|
try {
|
|
847
855
|
r.next(t);
|
|
848
856
|
} catch (n) {
|
|
849
|
-
|
|
857
|
+
Ie(n);
|
|
850
858
|
}
|
|
851
859
|
}, e.prototype.error = function(t) {
|
|
852
860
|
var r = this.partialObserver;
|
|
@@ -854,56 +862,68 @@ var ur = function(e) {
|
|
|
854
862
|
try {
|
|
855
863
|
r.error(t);
|
|
856
864
|
} catch (n) {
|
|
857
|
-
|
|
865
|
+
Ie(n);
|
|
858
866
|
}
|
|
859
867
|
else
|
|
860
|
-
|
|
868
|
+
Ie(t);
|
|
861
869
|
}, e.prototype.complete = function() {
|
|
862
870
|
var t = this.partialObserver;
|
|
863
871
|
if (t.complete)
|
|
864
872
|
try {
|
|
865
873
|
t.complete();
|
|
866
874
|
} catch (r) {
|
|
867
|
-
|
|
875
|
+
Ie(r);
|
|
868
876
|
}
|
|
869
877
|
}, e;
|
|
870
|
-
}(),
|
|
878
|
+
}(), lt = function(e) {
|
|
871
879
|
J(t, e);
|
|
872
880
|
function t(r, n, i) {
|
|
873
881
|
var o = e.call(this) || this, s;
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
882
|
+
if (Z(r) || !r)
|
|
883
|
+
s = {
|
|
884
|
+
next: r != null ? r : void 0,
|
|
885
|
+
error: n != null ? n : void 0,
|
|
886
|
+
complete: i != null ? i : void 0
|
|
887
|
+
};
|
|
888
|
+
else {
|
|
889
|
+
var a;
|
|
890
|
+
o && fr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
891
|
+
return o.unsubscribe();
|
|
892
|
+
}, s = {
|
|
893
|
+
next: r.next && Je(r.next, a),
|
|
894
|
+
error: r.error && Je(r.error, a),
|
|
895
|
+
complete: r.complete && Je(r.complete, a)
|
|
896
|
+
}) : s = r;
|
|
897
|
+
}
|
|
898
|
+
return o.destination = new gn(s), o;
|
|
879
899
|
}
|
|
880
900
|
return t;
|
|
881
|
-
}(
|
|
882
|
-
function
|
|
883
|
-
|
|
901
|
+
}(dr);
|
|
902
|
+
function Ie(e) {
|
|
903
|
+
mn(e);
|
|
884
904
|
}
|
|
885
|
-
function
|
|
905
|
+
function yn(e) {
|
|
886
906
|
throw e;
|
|
887
907
|
}
|
|
888
|
-
var
|
|
908
|
+
var vn = {
|
|
889
909
|
closed: !0,
|
|
890
|
-
next:
|
|
891
|
-
error:
|
|
892
|
-
complete:
|
|
893
|
-
},
|
|
910
|
+
next: Ot,
|
|
911
|
+
error: yn,
|
|
912
|
+
complete: Ot
|
|
913
|
+
}, _n = function() {
|
|
894
914
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
895
915
|
}();
|
|
896
|
-
function
|
|
916
|
+
function xn(e) {
|
|
897
917
|
return e;
|
|
898
918
|
}
|
|
899
|
-
function
|
|
900
|
-
return e.length === 0 ?
|
|
919
|
+
function En(e) {
|
|
920
|
+
return e.length === 0 ? xn : e.length === 1 ? e[0] : function(r) {
|
|
901
921
|
return e.reduce(function(n, i) {
|
|
902
922
|
return i(n);
|
|
903
923
|
}, r);
|
|
904
924
|
};
|
|
905
925
|
}
|
|
906
|
-
var
|
|
926
|
+
var Lt = function() {
|
|
907
927
|
function e(t) {
|
|
908
928
|
t && (this._subscribe = t);
|
|
909
929
|
}
|
|
@@ -911,7 +931,7 @@ var Bt = function() {
|
|
|
911
931
|
var r = new e();
|
|
912
932
|
return r.source = this, r.operator = t, r;
|
|
913
933
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
914
|
-
var i = this, o =
|
|
934
|
+
var i = this, o = Sn(t) ? t : new lt(t, r, n);
|
|
915
935
|
return Ne(function() {
|
|
916
936
|
var s = i, a = s.operator, u = s.source;
|
|
917
937
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -924,8 +944,8 @@ var Bt = function() {
|
|
|
924
944
|
}
|
|
925
945
|
}, e.prototype.forEach = function(t, r) {
|
|
926
946
|
var n = this;
|
|
927
|
-
return r =
|
|
928
|
-
var s = new
|
|
947
|
+
return r = Nt(r), new r(function(i, o) {
|
|
948
|
+
var s = new lt({
|
|
929
949
|
next: function(a) {
|
|
930
950
|
try {
|
|
931
951
|
t(a);
|
|
@@ -941,15 +961,15 @@ var Bt = function() {
|
|
|
941
961
|
}, e.prototype._subscribe = function(t) {
|
|
942
962
|
var r;
|
|
943
963
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
944
|
-
}, e.prototype[
|
|
964
|
+
}, e.prototype[_n] = function() {
|
|
945
965
|
return this;
|
|
946
966
|
}, e.prototype.pipe = function() {
|
|
947
967
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
948
968
|
t[r] = arguments[r];
|
|
949
|
-
return
|
|
969
|
+
return En(t)(this);
|
|
950
970
|
}, e.prototype.toPromise = function(t) {
|
|
951
971
|
var r = this;
|
|
952
|
-
return t =
|
|
972
|
+
return t = Nt(t), new t(function(n, i) {
|
|
953
973
|
var o;
|
|
954
974
|
r.subscribe(function(s) {
|
|
955
975
|
return o = s;
|
|
@@ -963,32 +983,32 @@ var Bt = function() {
|
|
|
963
983
|
return new e(t);
|
|
964
984
|
}, e;
|
|
965
985
|
}();
|
|
966
|
-
function
|
|
986
|
+
function Nt(e) {
|
|
967
987
|
var t;
|
|
968
|
-
return (t = e != null ? e :
|
|
988
|
+
return (t = e != null ? e : fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
969
989
|
}
|
|
970
|
-
function
|
|
990
|
+
function wn(e) {
|
|
971
991
|
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
|
972
992
|
}
|
|
973
|
-
function
|
|
974
|
-
return e && e instanceof
|
|
993
|
+
function Sn(e) {
|
|
994
|
+
return e && e instanceof dr || wn(e) && cr(e);
|
|
975
995
|
}
|
|
976
|
-
var
|
|
996
|
+
var Tn = ur(function(e) {
|
|
977
997
|
return function() {
|
|
978
998
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
979
999
|
};
|
|
980
|
-
}),
|
|
1000
|
+
}), pr = function(e) {
|
|
981
1001
|
J(t, e);
|
|
982
1002
|
function t() {
|
|
983
1003
|
var r = e.call(this) || this;
|
|
984
1004
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
985
1005
|
}
|
|
986
1006
|
return t.prototype.lift = function(r) {
|
|
987
|
-
var n = new
|
|
1007
|
+
var n = new Mt(this, this);
|
|
988
1008
|
return n.operator = r, n;
|
|
989
1009
|
}, t.prototype._throwIfClosed = function() {
|
|
990
1010
|
if (this.closed)
|
|
991
|
-
throw new
|
|
1011
|
+
throw new Tn();
|
|
992
1012
|
}, t.prototype.next = function(r) {
|
|
993
1013
|
var n = this;
|
|
994
1014
|
Ne(function() {
|
|
@@ -996,7 +1016,7 @@ var xn = sr(function(e) {
|
|
|
996
1016
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
997
1017
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
998
1018
|
try {
|
|
999
|
-
for (var s =
|
|
1019
|
+
for (var s = ot(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1000
1020
|
var u = a.value;
|
|
1001
1021
|
u.next(r);
|
|
1002
1022
|
}
|
|
@@ -1044,19 +1064,19 @@ var xn = sr(function(e) {
|
|
|
1044
1064
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1045
1065
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1046
1066
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1047
|
-
return o || s ?
|
|
1048
|
-
n.currentObservers = null,
|
|
1067
|
+
return o || s ? hr : (this.currentObservers = null, a.push(r), new Ge(function() {
|
|
1068
|
+
n.currentObservers = null, at(a, r);
|
|
1049
1069
|
}));
|
|
1050
1070
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1051
1071
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1052
1072
|
i ? r.error(o) : s && r.complete();
|
|
1053
1073
|
}, t.prototype.asObservable = function() {
|
|
1054
|
-
var r = new
|
|
1074
|
+
var r = new Lt();
|
|
1055
1075
|
return r.source = this, r;
|
|
1056
1076
|
}, t.create = function(r, n) {
|
|
1057
|
-
return new
|
|
1077
|
+
return new Mt(r, n);
|
|
1058
1078
|
}, t;
|
|
1059
|
-
}(
|
|
1079
|
+
}(Lt), Mt = function(e) {
|
|
1060
1080
|
J(t, e);
|
|
1061
1081
|
function t(r, n) {
|
|
1062
1082
|
var i = e.call(this) || this;
|
|
@@ -1073,17 +1093,17 @@ var xn = sr(function(e) {
|
|
|
1073
1093
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1074
1094
|
}, t.prototype._subscribe = function(r) {
|
|
1075
1095
|
var n, i;
|
|
1076
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1096
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : hr;
|
|
1077
1097
|
}, t;
|
|
1078
|
-
}(
|
|
1098
|
+
}(pr), mr = {
|
|
1079
1099
|
now: function() {
|
|
1080
|
-
return (
|
|
1100
|
+
return (mr.delegate || Date).now();
|
|
1081
1101
|
},
|
|
1082
1102
|
delegate: void 0
|
|
1083
|
-
},
|
|
1103
|
+
}, Hn = function(e) {
|
|
1084
1104
|
J(t, e);
|
|
1085
1105
|
function t(r, n, i) {
|
|
1086
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1106
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = mr);
|
|
1087
1107
|
var o = e.call(this) || this;
|
|
1088
1108
|
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;
|
|
1089
1109
|
}
|
|
@@ -1103,15 +1123,15 @@ var xn = sr(function(e) {
|
|
|
1103
1123
|
l && o.splice(0, l + 1);
|
|
1104
1124
|
}
|
|
1105
1125
|
}, t;
|
|
1106
|
-
}(
|
|
1107
|
-
const
|
|
1108
|
-
if (
|
|
1109
|
-
const r = new
|
|
1110
|
-
|
|
1126
|
+
}(pr);
|
|
1127
|
+
const Rt = [], Dt = {}, An = (e, t = 0) => {
|
|
1128
|
+
if (Rt.indexOf(e) == -1) {
|
|
1129
|
+
const r = new Hn(t);
|
|
1130
|
+
Dt[e] = r, Rt.push(e);
|
|
1111
1131
|
}
|
|
1112
|
-
return
|
|
1132
|
+
return Dt[e];
|
|
1113
1133
|
}, ce = [];
|
|
1114
|
-
function
|
|
1134
|
+
function Pn(e, t) {
|
|
1115
1135
|
return {
|
|
1116
1136
|
subscribe: ke(e, t).subscribe
|
|
1117
1137
|
};
|
|
@@ -1120,7 +1140,7 @@ function ke(e, t = k) {
|
|
|
1120
1140
|
let r;
|
|
1121
1141
|
const n = /* @__PURE__ */ new Set();
|
|
1122
1142
|
function i(a) {
|
|
1123
|
-
if (
|
|
1143
|
+
if (nr(e, a) && (e = a, r)) {
|
|
1124
1144
|
const u = !ce.length;
|
|
1125
1145
|
for (const l of n)
|
|
1126
1146
|
l[1](), ce.push(l, e);
|
|
@@ -1142,101 +1162,101 @@ function ke(e, t = k) {
|
|
|
1142
1162
|
}
|
|
1143
1163
|
return { set: i, update: o, subscribe: s };
|
|
1144
1164
|
}
|
|
1145
|
-
function
|
|
1165
|
+
function ve(e, t, r) {
|
|
1146
1166
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1147
1167
|
if (!i.every(Boolean))
|
|
1148
1168
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1149
1169
|
const o = t.length < 2;
|
|
1150
|
-
return
|
|
1170
|
+
return Pn(r, (s, a) => {
|
|
1151
1171
|
let u = !1;
|
|
1152
1172
|
const l = [];
|
|
1153
|
-
let h = 0,
|
|
1173
|
+
let h = 0, d = k;
|
|
1154
1174
|
const c = () => {
|
|
1155
1175
|
if (h)
|
|
1156
1176
|
return;
|
|
1157
|
-
|
|
1158
|
-
const
|
|
1159
|
-
o ? s(
|
|
1177
|
+
d();
|
|
1178
|
+
const y = t(n ? l[0] : l, s, a);
|
|
1179
|
+
o ? s(y) : d = gt(y) ? y : k;
|
|
1160
1180
|
}, m = i.map(
|
|
1161
|
-
(
|
|
1162
|
-
|
|
1163
|
-
(
|
|
1164
|
-
l[
|
|
1181
|
+
(y, g) => ir(
|
|
1182
|
+
y,
|
|
1183
|
+
(F) => {
|
|
1184
|
+
l[g] = F, h &= ~(1 << g), u && c();
|
|
1165
1185
|
},
|
|
1166
1186
|
() => {
|
|
1167
|
-
h |= 1 <<
|
|
1187
|
+
h |= 1 << g;
|
|
1168
1188
|
}
|
|
1169
1189
|
)
|
|
1170
1190
|
);
|
|
1171
1191
|
return u = !0, c(), function() {
|
|
1172
|
-
K(m),
|
|
1192
|
+
K(m), d(), u = !1;
|
|
1173
1193
|
};
|
|
1174
1194
|
});
|
|
1175
1195
|
}
|
|
1176
|
-
function
|
|
1196
|
+
function Fn(e) {
|
|
1177
1197
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1178
1198
|
}
|
|
1179
|
-
var
|
|
1180
|
-
return
|
|
1199
|
+
var Cn = function(t) {
|
|
1200
|
+
return Bn(t) && !In(t);
|
|
1181
1201
|
};
|
|
1182
|
-
function
|
|
1202
|
+
function Bn(e) {
|
|
1183
1203
|
return !!e && typeof e == "object";
|
|
1184
1204
|
}
|
|
1185
|
-
function
|
|
1205
|
+
function In(e) {
|
|
1186
1206
|
var t = Object.prototype.toString.call(e);
|
|
1187
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1207
|
+
return t === "[object RegExp]" || t === "[object Date]" || Nn(e);
|
|
1188
1208
|
}
|
|
1189
|
-
var
|
|
1190
|
-
function
|
|
1191
|
-
return e.$$typeof ===
|
|
1209
|
+
var On = typeof Symbol == "function" && Symbol.for, Ln = On ? Symbol.for("react.element") : 60103;
|
|
1210
|
+
function Nn(e) {
|
|
1211
|
+
return e.$$typeof === Ln;
|
|
1192
1212
|
}
|
|
1193
|
-
function
|
|
1213
|
+
function Mn(e) {
|
|
1194
1214
|
return Array.isArray(e) ? [] : {};
|
|
1195
1215
|
}
|
|
1196
1216
|
function He(e, t) {
|
|
1197
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? me(
|
|
1217
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? me(Mn(e), e, t) : e;
|
|
1198
1218
|
}
|
|
1199
|
-
function
|
|
1219
|
+
function Rn(e, t, r) {
|
|
1200
1220
|
return e.concat(t).map(function(n) {
|
|
1201
1221
|
return He(n, r);
|
|
1202
1222
|
});
|
|
1203
1223
|
}
|
|
1204
|
-
function
|
|
1224
|
+
function Dn(e, t) {
|
|
1205
1225
|
if (!t.customMerge)
|
|
1206
1226
|
return me;
|
|
1207
1227
|
var r = t.customMerge(e);
|
|
1208
1228
|
return typeof r == "function" ? r : me;
|
|
1209
1229
|
}
|
|
1210
|
-
function
|
|
1230
|
+
function Un(e) {
|
|
1211
1231
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1212
1232
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1213
1233
|
}) : [];
|
|
1214
1234
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return Object.keys(e).concat(
|
|
1235
|
+
function Ut(e) {
|
|
1236
|
+
return Object.keys(e).concat(Un(e));
|
|
1217
1237
|
}
|
|
1218
|
-
function
|
|
1238
|
+
function br(e, t) {
|
|
1219
1239
|
try {
|
|
1220
1240
|
return t in e;
|
|
1221
1241
|
} catch (r) {
|
|
1222
1242
|
return !1;
|
|
1223
1243
|
}
|
|
1224
1244
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return
|
|
1245
|
+
function $n(e, t) {
|
|
1246
|
+
return br(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1227
1247
|
}
|
|
1228
|
-
function
|
|
1248
|
+
function Gn(e, t, r) {
|
|
1229
1249
|
var n = {};
|
|
1230
|
-
return r.isMergeableObject(e) &&
|
|
1250
|
+
return r.isMergeableObject(e) && Ut(e).forEach(function(i) {
|
|
1231
1251
|
n[i] = He(e[i], r);
|
|
1232
|
-
}),
|
|
1233
|
-
|
|
1252
|
+
}), Ut(t).forEach(function(i) {
|
|
1253
|
+
$n(e, i) || (br(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = He(t[i], r));
|
|
1234
1254
|
}), n;
|
|
1235
1255
|
}
|
|
1236
1256
|
function me(e, t, r) {
|
|
1237
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1257
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = He;
|
|
1238
1258
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1239
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1259
|
+
return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) : He(t, r);
|
|
1240
1260
|
}
|
|
1241
1261
|
me.all = function(t, r) {
|
|
1242
1262
|
if (!Array.isArray(t))
|
|
@@ -1245,60 +1265,62 @@ me.all = function(t, r) {
|
|
|
1245
1265
|
return me(n, i, r);
|
|
1246
1266
|
}, {});
|
|
1247
1267
|
};
|
|
1248
|
-
var
|
|
1249
|
-
const
|
|
1250
|
-
function
|
|
1251
|
-
var r = t && t.cache ? t.cache :
|
|
1268
|
+
var kn = me, jn = kn;
|
|
1269
|
+
const Vn = /* @__PURE__ */ Fn(jn);
|
|
1270
|
+
function Qe(e, t) {
|
|
1271
|
+
var r = t && t.cache ? t.cache : Qn, n = t && t.serializer ? t.serializer : Jn, i = t && t.strategy ? t.strategy : Wn;
|
|
1252
1272
|
return i(e, {
|
|
1253
1273
|
cache: r,
|
|
1254
1274
|
serializer: n
|
|
1255
1275
|
});
|
|
1256
1276
|
}
|
|
1257
|
-
function
|
|
1277
|
+
function Xn(e) {
|
|
1258
1278
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1259
1279
|
}
|
|
1260
|
-
function
|
|
1261
|
-
var i =
|
|
1280
|
+
function gr(e, t, r, n) {
|
|
1281
|
+
var i = Xn(n) ? n : r(n), o = t.get(i);
|
|
1262
1282
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1263
1283
|
}
|
|
1264
|
-
function
|
|
1284
|
+
function yr(e, t, r) {
|
|
1265
1285
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1266
1286
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1267
1287
|
}
|
|
1268
|
-
function
|
|
1288
|
+
function yt(e, t, r, n, i) {
|
|
1269
1289
|
return r.bind(t, e, n, i);
|
|
1270
1290
|
}
|
|
1271
|
-
function
|
|
1272
|
-
var r = e.length === 1 ?
|
|
1273
|
-
return
|
|
1291
|
+
function Wn(e, t) {
|
|
1292
|
+
var r = e.length === 1 ? gr : yr;
|
|
1293
|
+
return yt(e, this, r, t.cache.create(), t.serializer);
|
|
1294
|
+
}
|
|
1295
|
+
function zn(e, t) {
|
|
1296
|
+
return yt(e, this, yr, t.cache.create(), t.serializer);
|
|
1274
1297
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return
|
|
1298
|
+
function Zn(e, t) {
|
|
1299
|
+
return yt(e, this, gr, t.cache.create(), t.serializer);
|
|
1277
1300
|
}
|
|
1278
|
-
var
|
|
1301
|
+
var Jn = function() {
|
|
1279
1302
|
return JSON.stringify(arguments);
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}()
|
|
1292
|
-
), zn = {
|
|
1303
|
+
};
|
|
1304
|
+
function vt() {
|
|
1305
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1306
|
+
}
|
|
1307
|
+
vt.prototype.get = function(e) {
|
|
1308
|
+
return this.cache[e];
|
|
1309
|
+
};
|
|
1310
|
+
vt.prototype.set = function(e, t) {
|
|
1311
|
+
this.cache[e] = t;
|
|
1312
|
+
};
|
|
1313
|
+
var Qn = {
|
|
1293
1314
|
create: function() {
|
|
1294
|
-
return new
|
|
1315
|
+
return new vt();
|
|
1295
1316
|
}
|
|
1296
|
-
},
|
|
1297
|
-
variadic:
|
|
1298
|
-
|
|
1317
|
+
}, qe = {
|
|
1318
|
+
variadic: zn,
|
|
1319
|
+
monadic: Zn
|
|
1320
|
+
}, E;
|
|
1299
1321
|
(function(e) {
|
|
1300
1322
|
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";
|
|
1301
|
-
})(
|
|
1323
|
+
})(E || (E = {}));
|
|
1302
1324
|
var B;
|
|
1303
1325
|
(function(e) {
|
|
1304
1326
|
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";
|
|
@@ -1307,43 +1329,43 @@ var be;
|
|
|
1307
1329
|
(function(e) {
|
|
1308
1330
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1309
1331
|
})(be || (be = {}));
|
|
1310
|
-
function
|
|
1332
|
+
function $t(e) {
|
|
1311
1333
|
return e.type === B.literal;
|
|
1312
1334
|
}
|
|
1313
|
-
function
|
|
1335
|
+
function qn(e) {
|
|
1314
1336
|
return e.type === B.argument;
|
|
1315
1337
|
}
|
|
1316
|
-
function
|
|
1338
|
+
function vr(e) {
|
|
1317
1339
|
return e.type === B.number;
|
|
1318
1340
|
}
|
|
1319
|
-
function
|
|
1341
|
+
function _r(e) {
|
|
1320
1342
|
return e.type === B.date;
|
|
1321
1343
|
}
|
|
1322
|
-
function
|
|
1344
|
+
function xr(e) {
|
|
1323
1345
|
return e.type === B.time;
|
|
1324
1346
|
}
|
|
1325
|
-
function
|
|
1347
|
+
function Er(e) {
|
|
1326
1348
|
return e.type === B.select;
|
|
1327
1349
|
}
|
|
1328
|
-
function
|
|
1350
|
+
function wr(e) {
|
|
1329
1351
|
return e.type === B.plural;
|
|
1330
1352
|
}
|
|
1331
|
-
function
|
|
1353
|
+
function Yn(e) {
|
|
1332
1354
|
return e.type === B.pound;
|
|
1333
1355
|
}
|
|
1334
|
-
function
|
|
1356
|
+
function Sr(e) {
|
|
1335
1357
|
return e.type === B.tag;
|
|
1336
1358
|
}
|
|
1337
|
-
function
|
|
1359
|
+
function Tr(e) {
|
|
1338
1360
|
return !!(e && typeof e == "object" && e.type === be.number);
|
|
1339
1361
|
}
|
|
1340
|
-
function
|
|
1362
|
+
function ut(e) {
|
|
1341
1363
|
return !!(e && typeof e == "object" && e.type === be.dateTime);
|
|
1342
1364
|
}
|
|
1343
|
-
var
|
|
1344
|
-
function
|
|
1365
|
+
var Hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kn = /(?:[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;
|
|
1366
|
+
function ei(e) {
|
|
1345
1367
|
var t = {};
|
|
1346
|
-
return e.replace(
|
|
1368
|
+
return e.replace(Kn, function(r) {
|
|
1347
1369
|
var n = r.length;
|
|
1348
1370
|
switch (r[0]) {
|
|
1349
1371
|
case "G":
|
|
@@ -1432,36 +1454,36 @@ function qn(e) {
|
|
|
1432
1454
|
return "";
|
|
1433
1455
|
}), t;
|
|
1434
1456
|
}
|
|
1435
|
-
var
|
|
1436
|
-
function
|
|
1457
|
+
var ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1458
|
+
function ri(e) {
|
|
1437
1459
|
if (e.length === 0)
|
|
1438
1460
|
throw new Error("Number skeleton cannot be empty");
|
|
1439
|
-
for (var t = e.split(
|
|
1461
|
+
for (var t = e.split(ti).filter(function(c) {
|
|
1440
1462
|
return c.length > 0;
|
|
1441
1463
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1442
1464
|
var o = i[n], s = o.split("/");
|
|
1443
1465
|
if (s.length === 0)
|
|
1444
1466
|
throw new Error("Invalid number skeleton");
|
|
1445
1467
|
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1446
|
-
var
|
|
1447
|
-
if (
|
|
1468
|
+
var d = h[l];
|
|
1469
|
+
if (d.length === 0)
|
|
1448
1470
|
throw new Error("Invalid number skeleton");
|
|
1449
1471
|
}
|
|
1450
1472
|
r.push({ stem: a, options: u });
|
|
1451
1473
|
}
|
|
1452
1474
|
return r;
|
|
1453
1475
|
}
|
|
1454
|
-
function
|
|
1476
|
+
function ni(e) {
|
|
1455
1477
|
return e.replace(/^(.*?)-/, "");
|
|
1456
1478
|
}
|
|
1457
|
-
var
|
|
1458
|
-
function
|
|
1479
|
+
var Gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ar = /^(@+)?(\+|#+)?[rs]?$/g, ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Pr = /^(0+)$/;
|
|
1480
|
+
function kt(e) {
|
|
1459
1481
|
var t = {};
|
|
1460
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1482
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ar, function(r, n, i) {
|
|
1461
1483
|
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)), "";
|
|
1462
1484
|
}), t;
|
|
1463
1485
|
}
|
|
1464
|
-
function
|
|
1486
|
+
function Fr(e) {
|
|
1465
1487
|
switch (e) {
|
|
1466
1488
|
case "sign-auto":
|
|
1467
1489
|
return {
|
|
@@ -1501,7 +1523,7 @@ function Tr(e) {
|
|
|
1501
1523
|
};
|
|
1502
1524
|
}
|
|
1503
1525
|
}
|
|
1504
|
-
function
|
|
1526
|
+
function oi(e) {
|
|
1505
1527
|
var t;
|
|
1506
1528
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1507
1529
|
notation: "engineering"
|
|
@@ -1509,17 +1531,17 @@ function ri(e) {
|
|
|
1509
1531
|
notation: "scientific"
|
|
1510
1532
|
}, e = e.slice(1)), t) {
|
|
1511
1533
|
var r = e.slice(0, 2);
|
|
1512
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1534
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pr.test(e))
|
|
1513
1535
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1514
1536
|
t.minimumIntegerDigits = e.length;
|
|
1515
1537
|
}
|
|
1516
1538
|
return t;
|
|
1517
1539
|
}
|
|
1518
|
-
function
|
|
1519
|
-
var t = {}, r =
|
|
1540
|
+
function jt(e) {
|
|
1541
|
+
var t = {}, r = Fr(e);
|
|
1520
1542
|
return r || t;
|
|
1521
1543
|
}
|
|
1522
|
-
function
|
|
1544
|
+
function si(e) {
|
|
1523
1545
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1524
1546
|
var i = n[r];
|
|
1525
1547
|
switch (i.stem) {
|
|
@@ -1543,7 +1565,7 @@ function ni(e) {
|
|
|
1543
1565
|
continue;
|
|
1544
1566
|
case "measure-unit":
|
|
1545
1567
|
case "unit":
|
|
1546
|
-
t.style = "unit", t.unit =
|
|
1568
|
+
t.style = "unit", t.unit = ni(i.options[0]);
|
|
1547
1569
|
continue;
|
|
1548
1570
|
case "compact-short":
|
|
1549
1571
|
case "K":
|
|
@@ -1554,13 +1576,13 @@ function ni(e) {
|
|
|
1554
1576
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1555
1577
|
continue;
|
|
1556
1578
|
case "scientific":
|
|
1557
|
-
t =
|
|
1558
|
-
return
|
|
1579
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1580
|
+
return H(H({}, u), jt(l));
|
|
1559
1581
|
}, {}));
|
|
1560
1582
|
continue;
|
|
1561
1583
|
case "engineering":
|
|
1562
|
-
t =
|
|
1563
|
-
return
|
|
1584
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1585
|
+
return H(H({}, u), jt(l));
|
|
1564
1586
|
}, {}));
|
|
1565
1587
|
continue;
|
|
1566
1588
|
case "notation-simple":
|
|
@@ -1605,11 +1627,11 @@ function ni(e) {
|
|
|
1605
1627
|
case "integer-width":
|
|
1606
1628
|
if (i.options.length > 1)
|
|
1607
1629
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1608
|
-
i.options[0].replace(
|
|
1630
|
+
i.options[0].replace(ii, function(u, l, h, d, c, m) {
|
|
1609
1631
|
if (l)
|
|
1610
1632
|
t.minimumIntegerDigits = h.length;
|
|
1611
1633
|
else {
|
|
1612
|
-
if (
|
|
1634
|
+
if (d && c)
|
|
1613
1635
|
throw new Error("We currently do not support maximum integer digits");
|
|
1614
1636
|
if (m)
|
|
1615
1637
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1618,32 +1640,32 @@ function ni(e) {
|
|
|
1618
1640
|
});
|
|
1619
1641
|
continue;
|
|
1620
1642
|
}
|
|
1621
|
-
if (
|
|
1643
|
+
if (Pr.test(i.stem)) {
|
|
1622
1644
|
t.minimumIntegerDigits = i.stem.length;
|
|
1623
1645
|
continue;
|
|
1624
1646
|
}
|
|
1625
|
-
if (
|
|
1647
|
+
if (Gt.test(i.stem)) {
|
|
1626
1648
|
if (i.options.length > 1)
|
|
1627
1649
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1628
|
-
i.stem.replace(
|
|
1629
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
|
1650
|
+
i.stem.replace(Gt, function(u, l, h, d, c, m) {
|
|
1651
|
+
return h === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1630
1652
|
});
|
|
1631
1653
|
var o = i.options[0];
|
|
1632
|
-
o === "w" ? t =
|
|
1654
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), kt(o)));
|
|
1633
1655
|
continue;
|
|
1634
1656
|
}
|
|
1635
|
-
if (
|
|
1636
|
-
t =
|
|
1657
|
+
if (Ar.test(i.stem)) {
|
|
1658
|
+
t = H(H({}, t), kt(i.stem));
|
|
1637
1659
|
continue;
|
|
1638
1660
|
}
|
|
1639
|
-
var s =
|
|
1640
|
-
s && (t =
|
|
1641
|
-
var a =
|
|
1642
|
-
a && (t =
|
|
1661
|
+
var s = Fr(i.stem);
|
|
1662
|
+
s && (t = H(H({}, t), s));
|
|
1663
|
+
var a = oi(i.stem);
|
|
1664
|
+
a && (t = H(H({}, t), a));
|
|
1643
1665
|
}
|
|
1644
1666
|
return t;
|
|
1645
1667
|
}
|
|
1646
|
-
var
|
|
1668
|
+
var Oe = {
|
|
1647
1669
|
"001": [
|
|
1648
1670
|
"H",
|
|
1649
1671
|
"h"
|
|
@@ -3058,13 +3080,13 @@ var Ie = {
|
|
|
3058
3080
|
"h"
|
|
3059
3081
|
]
|
|
3060
3082
|
};
|
|
3061
|
-
function
|
|
3083
|
+
function ai(e, t) {
|
|
3062
3084
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3063
3085
|
var i = e.charAt(n);
|
|
3064
3086
|
if (i === "j") {
|
|
3065
3087
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3066
3088
|
o++, n++;
|
|
3067
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
3089
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = li(t);
|
|
3068
3090
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3069
3091
|
r += u;
|
|
3070
3092
|
for (; s-- > 0; )
|
|
@@ -3073,7 +3095,7 @@ function ii(e, t) {
|
|
|
3073
3095
|
}
|
|
3074
3096
|
return r;
|
|
3075
3097
|
}
|
|
3076
|
-
function
|
|
3098
|
+
function li(e) {
|
|
3077
3099
|
var t = e.hourCycle;
|
|
3078
3100
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3079
3101
|
e.hourCycles && // @ts-ignore
|
|
@@ -3092,23 +3114,23 @@ function oi(e) {
|
|
|
3092
3114
|
}
|
|
3093
3115
|
var r = e.language, n;
|
|
3094
3116
|
r !== "root" && (n = e.maximize().region);
|
|
3095
|
-
var i =
|
|
3117
|
+
var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
|
|
3096
3118
|
return i[0];
|
|
3097
3119
|
}
|
|
3098
|
-
var
|
|
3099
|
-
function
|
|
3120
|
+
var Ye, ui = new RegExp("^".concat(Hr.source, "*")), hi = new RegExp("".concat(Hr.source, "*$"));
|
|
3121
|
+
function T(e, t) {
|
|
3100
3122
|
return { start: e, end: t };
|
|
3101
3123
|
}
|
|
3102
|
-
var
|
|
3124
|
+
var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), fi = !!String.fromCodePoint, di = !!Object.fromEntries, pi = !!String.prototype.codePointAt, mi = !!String.prototype.trimStart, bi = !!String.prototype.trimEnd, gi = !!Number.isSafeInteger, yi = gi ? Number.isSafeInteger : function(e) {
|
|
3103
3125
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3104
|
-
},
|
|
3126
|
+
}, ht = !0;
|
|
3105
3127
|
try {
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3128
|
+
var vi = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3129
|
+
ht = ((Ye = vi.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
|
3108
3130
|
} catch (e) {
|
|
3109
|
-
|
|
3131
|
+
ht = !1;
|
|
3110
3132
|
}
|
|
3111
|
-
var
|
|
3133
|
+
var Vt = ci ? (
|
|
3112
3134
|
// Native
|
|
3113
3135
|
function(t, r, n) {
|
|
3114
3136
|
return t.startsWith(r, n);
|
|
@@ -3118,7 +3140,7 @@ var Gt = li ? (
|
|
|
3118
3140
|
function(t, r, n) {
|
|
3119
3141
|
return t.slice(n, n + r.length) === r;
|
|
3120
3142
|
}
|
|
3121
|
-
),
|
|
3143
|
+
), ct = fi ? String.fromCodePoint : (
|
|
3122
3144
|
// IE11
|
|
3123
3145
|
function() {
|
|
3124
3146
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3130,9 +3152,9 @@ var Gt = li ? (
|
|
|
3130
3152
|
}
|
|
3131
3153
|
return n;
|
|
3132
3154
|
}
|
|
3133
|
-
),
|
|
3155
|
+
), Xt = (
|
|
3134
3156
|
// native
|
|
3135
|
-
|
|
3157
|
+
di ? Object.fromEntries : (
|
|
3136
3158
|
// Ponyfill
|
|
3137
3159
|
function(t) {
|
|
3138
3160
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3142,7 +3164,7 @@ var Gt = li ? (
|
|
|
3142
3164
|
return r;
|
|
3143
3165
|
}
|
|
3144
3166
|
)
|
|
3145
|
-
),
|
|
3167
|
+
), Cr = pi ? (
|
|
3146
3168
|
// Native
|
|
3147
3169
|
function(t, r) {
|
|
3148
3170
|
return t.codePointAt(r);
|
|
@@ -3156,7 +3178,7 @@ var Gt = li ? (
|
|
|
3156
3178
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3157
3179
|
}
|
|
3158
3180
|
}
|
|
3159
|
-
),
|
|
3181
|
+
), _i = mi ? (
|
|
3160
3182
|
// Native
|
|
3161
3183
|
function(t) {
|
|
3162
3184
|
return t.trimStart();
|
|
@@ -3164,9 +3186,9 @@ var Gt = li ? (
|
|
|
3164
3186
|
) : (
|
|
3165
3187
|
// Ponyfill
|
|
3166
3188
|
function(t) {
|
|
3167
|
-
return t.replace(
|
|
3189
|
+
return t.replace(ui, "");
|
|
3168
3190
|
}
|
|
3169
|
-
),
|
|
3191
|
+
), xi = bi ? (
|
|
3170
3192
|
// Native
|
|
3171
3193
|
function(t) {
|
|
3172
3194
|
return t.trimEnd();
|
|
@@ -3174,32 +3196,32 @@ var Gt = li ? (
|
|
|
3174
3196
|
) : (
|
|
3175
3197
|
// Ponyfill
|
|
3176
3198
|
function(t) {
|
|
3177
|
-
return t.replace(
|
|
3199
|
+
return t.replace(hi, "");
|
|
3178
3200
|
}
|
|
3179
3201
|
);
|
|
3180
|
-
function
|
|
3202
|
+
function Br(e, t) {
|
|
3181
3203
|
return new RegExp(e, t);
|
|
3182
3204
|
}
|
|
3183
|
-
var
|
|
3184
|
-
if (
|
|
3185
|
-
var
|
|
3186
|
-
|
|
3205
|
+
var ft;
|
|
3206
|
+
if (ht) {
|
|
3207
|
+
var Wt = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3208
|
+
ft = function(t, r) {
|
|
3187
3209
|
var n;
|
|
3188
|
-
|
|
3189
|
-
var i =
|
|
3210
|
+
Wt.lastIndex = r;
|
|
3211
|
+
var i = Wt.exec(t);
|
|
3190
3212
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3191
3213
|
};
|
|
3192
3214
|
} else
|
|
3193
|
-
|
|
3215
|
+
ft = function(t, r) {
|
|
3194
3216
|
for (var n = []; ; ) {
|
|
3195
|
-
var i =
|
|
3196
|
-
if (i === void 0 ||
|
|
3217
|
+
var i = Cr(t, r);
|
|
3218
|
+
if (i === void 0 || Ir(i) || Ti(i))
|
|
3197
3219
|
break;
|
|
3198
3220
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3199
3221
|
}
|
|
3200
|
-
return
|
|
3222
|
+
return ct.apply(void 0, n);
|
|
3201
3223
|
};
|
|
3202
|
-
var
|
|
3224
|
+
var Ei = (
|
|
3203
3225
|
/** @class */
|
|
3204
3226
|
function() {
|
|
3205
3227
|
function e(t, r) {
|
|
@@ -3224,13 +3246,13 @@ var yi = (
|
|
|
3224
3246
|
var a = this.clonePosition();
|
|
3225
3247
|
this.bump(), i.push({
|
|
3226
3248
|
type: B.pound,
|
|
3227
|
-
location:
|
|
3249
|
+
location: T(a, this.clonePosition())
|
|
3228
3250
|
});
|
|
3229
3251
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3230
3252
|
if (n)
|
|
3231
3253
|
break;
|
|
3232
|
-
return this.error(
|
|
3233
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3254
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
3255
|
+
} else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
3234
3256
|
var s = this.parseTag(t, r);
|
|
3235
3257
|
if (s.err)
|
|
3236
3258
|
return s;
|
|
@@ -3253,7 +3275,7 @@ var yi = (
|
|
|
3253
3275
|
val: {
|
|
3254
3276
|
type: B.literal,
|
|
3255
3277
|
value: "<".concat(i, "/>"),
|
|
3256
|
-
location:
|
|
3278
|
+
location: T(n, this.clonePosition())
|
|
3257
3279
|
},
|
|
3258
3280
|
err: null
|
|
3259
3281
|
};
|
|
@@ -3263,25 +3285,25 @@ var yi = (
|
|
|
3263
3285
|
return o;
|
|
3264
3286
|
var s = o.val, a = this.clonePosition();
|
|
3265
3287
|
if (this.bumpIf("</")) {
|
|
3266
|
-
if (this.isEOF() || !
|
|
3267
|
-
return this.error(
|
|
3288
|
+
if (this.isEOF() || !dt(this.char()))
|
|
3289
|
+
return this.error(E.INVALID_TAG, T(a, this.clonePosition()));
|
|
3268
3290
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3269
|
-
return i !== l ? this.error(
|
|
3291
|
+
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3270
3292
|
val: {
|
|
3271
3293
|
type: B.tag,
|
|
3272
3294
|
value: i,
|
|
3273
3295
|
children: s,
|
|
3274
|
-
location:
|
|
3296
|
+
location: T(n, this.clonePosition())
|
|
3275
3297
|
},
|
|
3276
3298
|
err: null
|
|
3277
|
-
} : this.error(
|
|
3299
|
+
} : this.error(E.INVALID_TAG, T(a, this.clonePosition())));
|
|
3278
3300
|
} else
|
|
3279
|
-
return this.error(
|
|
3301
|
+
return this.error(E.UNCLOSED_TAG, T(n, this.clonePosition()));
|
|
3280
3302
|
} else
|
|
3281
|
-
return this.error(
|
|
3303
|
+
return this.error(E.INVALID_TAG, T(n, this.clonePosition()));
|
|
3282
3304
|
}, e.prototype.parseTagName = function() {
|
|
3283
3305
|
var t = this.offset();
|
|
3284
|
-
for (this.bump(); !this.isEOF() &&
|
|
3306
|
+
for (this.bump(); !this.isEOF() && Si(this.char()); )
|
|
3285
3307
|
this.bump();
|
|
3286
3308
|
return this.message.slice(t, this.offset());
|
|
3287
3309
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3303,14 +3325,14 @@ var yi = (
|
|
|
3303
3325
|
}
|
|
3304
3326
|
break;
|
|
3305
3327
|
}
|
|
3306
|
-
var u =
|
|
3328
|
+
var u = T(n, this.clonePosition());
|
|
3307
3329
|
return {
|
|
3308
3330
|
val: { type: B.literal, value: i, location: u },
|
|
3309
3331
|
err: null
|
|
3310
3332
|
};
|
|
3311
3333
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3312
3334
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3313
|
-
!
|
|
3335
|
+
!wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3314
3336
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3315
3337
|
if (this.isEOF() || this.char() !== 39)
|
|
3316
3338
|
return null;
|
|
@@ -3344,23 +3366,23 @@ var yi = (
|
|
|
3344
3366
|
r.push(n);
|
|
3345
3367
|
this.bump();
|
|
3346
3368
|
}
|
|
3347
|
-
return
|
|
3369
|
+
return ct.apply(void 0, r);
|
|
3348
3370
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3349
3371
|
if (this.isEOF())
|
|
3350
3372
|
return null;
|
|
3351
3373
|
var n = this.char();
|
|
3352
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3374
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ct(n));
|
|
3353
3375
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3354
3376
|
var n = this.clonePosition();
|
|
3355
3377
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3356
|
-
return this.error(
|
|
3378
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
3357
3379
|
if (this.char() === 125)
|
|
3358
|
-
return this.bump(), this.error(
|
|
3380
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
|
3359
3381
|
var i = this.parseIdentifierIfPossible().value;
|
|
3360
3382
|
if (!i)
|
|
3361
|
-
return this.error(
|
|
3383
|
+
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
3362
3384
|
if (this.bumpSpace(), this.isEOF())
|
|
3363
|
-
return this.error(
|
|
3385
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
3364
3386
|
switch (this.char()) {
|
|
3365
3387
|
case 125:
|
|
3366
3388
|
return this.bump(), {
|
|
@@ -3368,25 +3390,25 @@ var yi = (
|
|
|
3368
3390
|
type: B.argument,
|
|
3369
3391
|
// value does not include the opening and closing braces.
|
|
3370
3392
|
value: i,
|
|
3371
|
-
location:
|
|
3393
|
+
location: T(n, this.clonePosition())
|
|
3372
3394
|
},
|
|
3373
3395
|
err: null
|
|
3374
3396
|
};
|
|
3375
3397
|
case 44:
|
|
3376
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3398
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3377
3399
|
default:
|
|
3378
|
-
return this.error(
|
|
3400
|
+
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
3379
3401
|
}
|
|
3380
3402
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3381
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3403
|
+
var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
|
|
3382
3404
|
this.bumpTo(i);
|
|
3383
|
-
var o = this.clonePosition(), s =
|
|
3405
|
+
var o = this.clonePosition(), s = T(t, o);
|
|
3384
3406
|
return { value: n, location: s };
|
|
3385
3407
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3386
3408
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3387
3409
|
switch (a) {
|
|
3388
3410
|
case "":
|
|
3389
|
-
return this.error(
|
|
3411
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, T(s, u));
|
|
3390
3412
|
case "number":
|
|
3391
3413
|
case "date":
|
|
3392
3414
|
case "time": {
|
|
@@ -3394,40 +3416,40 @@ var yi = (
|
|
|
3394
3416
|
var l = null;
|
|
3395
3417
|
if (this.bumpIf(",")) {
|
|
3396
3418
|
this.bumpSpace();
|
|
3397
|
-
var h = this.clonePosition(),
|
|
3398
|
-
if (
|
|
3399
|
-
return
|
|
3400
|
-
var c =
|
|
3419
|
+
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
3420
|
+
if (d.err)
|
|
3421
|
+
return d;
|
|
3422
|
+
var c = xi(d.val);
|
|
3401
3423
|
if (c.length === 0)
|
|
3402
|
-
return this.error(
|
|
3403
|
-
var m =
|
|
3424
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
3425
|
+
var m = T(h, this.clonePosition());
|
|
3404
3426
|
l = { style: c, styleLocation: m };
|
|
3405
3427
|
}
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3409
|
-
var
|
|
3410
|
-
if (l &&
|
|
3411
|
-
var
|
|
3428
|
+
var y = this.tryParseArgumentClose(i);
|
|
3429
|
+
if (y.err)
|
|
3430
|
+
return y;
|
|
3431
|
+
var g = T(i, this.clonePosition());
|
|
3432
|
+
if (l && Vt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3433
|
+
var F = _i(l.style.slice(2));
|
|
3412
3434
|
if (a === "number") {
|
|
3413
|
-
var
|
|
3414
|
-
return
|
|
3415
|
-
val: { type: B.number, value: n, location:
|
|
3435
|
+
var d = this.parseNumberSkeletonFromString(F, l.styleLocation);
|
|
3436
|
+
return d.err ? d : {
|
|
3437
|
+
val: { type: B.number, value: n, location: g, style: d.val },
|
|
3416
3438
|
err: null
|
|
3417
3439
|
};
|
|
3418
3440
|
} else {
|
|
3419
|
-
if (
|
|
3420
|
-
return this.error(
|
|
3421
|
-
var
|
|
3422
|
-
this.locale && (
|
|
3441
|
+
if (F.length === 0)
|
|
3442
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, g);
|
|
3443
|
+
var w = F;
|
|
3444
|
+
this.locale && (w = ai(F, this.locale));
|
|
3423
3445
|
var c = {
|
|
3424
3446
|
type: be.dateTime,
|
|
3425
|
-
pattern:
|
|
3447
|
+
pattern: w,
|
|
3426
3448
|
location: l.styleLocation,
|
|
3427
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3428
|
-
},
|
|
3449
|
+
parsedOptions: this.shouldParseSkeletons ? ei(w) : {}
|
|
3450
|
+
}, v = a === "date" ? B.date : B.time;
|
|
3429
3451
|
return {
|
|
3430
|
-
val: { type:
|
|
3452
|
+
val: { type: v, value: n, location: g, style: c },
|
|
3431
3453
|
err: null
|
|
3432
3454
|
};
|
|
3433
3455
|
}
|
|
@@ -3436,7 +3458,7 @@ var yi = (
|
|
|
3436
3458
|
val: {
|
|
3437
3459
|
type: a === "number" ? B.number : a === "date" ? B.date : B.time,
|
|
3438
3460
|
value: n,
|
|
3439
|
-
location:
|
|
3461
|
+
location: g,
|
|
3440
3462
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3441
3463
|
},
|
|
3442
3464
|
err: null
|
|
@@ -3445,52 +3467,52 @@ var yi = (
|
|
|
3445
3467
|
case "plural":
|
|
3446
3468
|
case "selectordinal":
|
|
3447
3469
|
case "select": {
|
|
3448
|
-
var
|
|
3470
|
+
var x = this.clonePosition();
|
|
3449
3471
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3450
|
-
return this.error(
|
|
3472
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x, H({}, x)));
|
|
3451
3473
|
this.bumpSpace();
|
|
3452
|
-
var
|
|
3453
|
-
if (a !== "select" &&
|
|
3474
|
+
var O = this.parseIdentifierIfPossible(), N = 0;
|
|
3475
|
+
if (a !== "select" && O.value === "offset") {
|
|
3454
3476
|
if (!this.bumpIf(":"))
|
|
3455
|
-
return this.error(
|
|
3477
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
3456
3478
|
this.bumpSpace();
|
|
3457
|
-
var
|
|
3458
|
-
if (
|
|
3459
|
-
return
|
|
3460
|
-
this.bumpSpace(),
|
|
3479
|
+
var d = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3480
|
+
if (d.err)
|
|
3481
|
+
return d;
|
|
3482
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), N = d.val;
|
|
3461
3483
|
}
|
|
3462
|
-
var
|
|
3463
|
-
if (
|
|
3464
|
-
return
|
|
3465
|
-
var
|
|
3466
|
-
if (
|
|
3467
|
-
return
|
|
3468
|
-
var
|
|
3484
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3485
|
+
if (M.err)
|
|
3486
|
+
return M;
|
|
3487
|
+
var y = this.tryParseArgumentClose(i);
|
|
3488
|
+
if (y.err)
|
|
3489
|
+
return y;
|
|
3490
|
+
var S = T(i, this.clonePosition());
|
|
3469
3491
|
return a === "select" ? {
|
|
3470
3492
|
val: {
|
|
3471
3493
|
type: B.select,
|
|
3472
3494
|
value: n,
|
|
3473
|
-
options:
|
|
3474
|
-
location:
|
|
3495
|
+
options: Xt(M.val),
|
|
3496
|
+
location: S
|
|
3475
3497
|
},
|
|
3476
3498
|
err: null
|
|
3477
3499
|
} : {
|
|
3478
3500
|
val: {
|
|
3479
3501
|
type: B.plural,
|
|
3480
3502
|
value: n,
|
|
3481
|
-
options:
|
|
3482
|
-
offset:
|
|
3503
|
+
options: Xt(M.val),
|
|
3504
|
+
offset: N,
|
|
3483
3505
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3484
|
-
location:
|
|
3506
|
+
location: S
|
|
3485
3507
|
},
|
|
3486
3508
|
err: null
|
|
3487
3509
|
};
|
|
3488
3510
|
}
|
|
3489
3511
|
default:
|
|
3490
|
-
return this.error(
|
|
3512
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, T(s, u));
|
|
3491
3513
|
}
|
|
3492
3514
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3493
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3515
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3494
3516
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3495
3517
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3496
3518
|
var n = this.char();
|
|
@@ -3499,7 +3521,7 @@ var yi = (
|
|
|
3499
3521
|
this.bump();
|
|
3500
3522
|
var i = this.clonePosition();
|
|
3501
3523
|
if (!this.bumpUntil("'"))
|
|
3502
|
-
return this.error(
|
|
3524
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
|
3503
3525
|
this.bump();
|
|
3504
3526
|
break;
|
|
3505
3527
|
}
|
|
@@ -3529,52 +3551,52 @@ var yi = (
|
|
|
3529
3551
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3530
3552
|
var n = [];
|
|
3531
3553
|
try {
|
|
3532
|
-
n =
|
|
3554
|
+
n = ri(t);
|
|
3533
3555
|
} catch (i) {
|
|
3534
|
-
return this.error(
|
|
3556
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3535
3557
|
}
|
|
3536
3558
|
return {
|
|
3537
3559
|
val: {
|
|
3538
3560
|
type: be.number,
|
|
3539
3561
|
tokens: n,
|
|
3540
3562
|
location: r,
|
|
3541
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3563
|
+
parsedOptions: this.shouldParseSkeletons ? si(n) : {}
|
|
3542
3564
|
},
|
|
3543
3565
|
err: null
|
|
3544
3566
|
};
|
|
3545
3567
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3546
3568
|
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3547
3569
|
if (l.length === 0) {
|
|
3548
|
-
var
|
|
3570
|
+
var d = this.clonePosition();
|
|
3549
3571
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3550
|
-
var c = this.tryParseDecimalInteger(
|
|
3572
|
+
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3551
3573
|
if (c.err)
|
|
3552
3574
|
return c;
|
|
3553
|
-
h =
|
|
3575
|
+
h = T(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
|
3554
3576
|
} else
|
|
3555
3577
|
break;
|
|
3556
3578
|
}
|
|
3557
3579
|
if (u.has(l))
|
|
3558
|
-
return this.error(r === "select" ?
|
|
3580
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3559
3581
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3560
3582
|
var m = this.clonePosition();
|
|
3561
3583
|
if (!this.bumpIf("{"))
|
|
3562
|
-
return this.error(r === "select" ?
|
|
3563
|
-
var
|
|
3564
|
-
if (
|
|
3565
|
-
return
|
|
3566
|
-
var
|
|
3567
|
-
if (
|
|
3568
|
-
return
|
|
3584
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
3585
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3586
|
+
if (y.err)
|
|
3587
|
+
return y;
|
|
3588
|
+
var g = this.tryParseArgumentClose(m);
|
|
3589
|
+
if (g.err)
|
|
3590
|
+
return g;
|
|
3569
3591
|
a.push([
|
|
3570
3592
|
l,
|
|
3571
3593
|
{
|
|
3572
|
-
value:
|
|
3573
|
-
location:
|
|
3594
|
+
value: y.val,
|
|
3595
|
+
location: T(m, this.clonePosition())
|
|
3574
3596
|
}
|
|
3575
3597
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3576
3598
|
}
|
|
3577
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3599
|
+
return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(E.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3578
3600
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3579
3601
|
var n = 1, i = this.clonePosition();
|
|
3580
3602
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3585,8 +3607,8 @@ var yi = (
|
|
|
3585
3607
|
else
|
|
3586
3608
|
break;
|
|
3587
3609
|
}
|
|
3588
|
-
var u =
|
|
3589
|
-
return o ? (s *= n,
|
|
3610
|
+
var u = T(i, this.clonePosition());
|
|
3611
|
+
return o ? (s *= n, yi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3590
3612
|
}, e.prototype.offset = function() {
|
|
3591
3613
|
return this.position.offset;
|
|
3592
3614
|
}, e.prototype.isEOF = function() {
|
|
@@ -3601,7 +3623,7 @@ var yi = (
|
|
|
3601
3623
|
var t = this.position.offset;
|
|
3602
3624
|
if (t >= this.message.length)
|
|
3603
3625
|
throw Error("out of bound");
|
|
3604
|
-
var r =
|
|
3626
|
+
var r = Cr(this.message, t);
|
|
3605
3627
|
if (r === void 0)
|
|
3606
3628
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3607
3629
|
return r;
|
|
@@ -3620,7 +3642,7 @@ var yi = (
|
|
|
3620
3642
|
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);
|
|
3621
3643
|
}
|
|
3622
3644
|
}, e.prototype.bumpIf = function(t) {
|
|
3623
|
-
if (
|
|
3645
|
+
if (Vt(this.message, t, this.offset())) {
|
|
3624
3646
|
for (var r = 0; r < t.length; r++)
|
|
3625
3647
|
this.bump();
|
|
3626
3648
|
return !0;
|
|
@@ -3642,7 +3664,7 @@ var yi = (
|
|
|
3642
3664
|
break;
|
|
3643
3665
|
}
|
|
3644
3666
|
}, e.prototype.bumpSpace = function() {
|
|
3645
|
-
for (; !this.isEOF() &&
|
|
3667
|
+
for (; !this.isEOF() && Ir(this.char()); )
|
|
3646
3668
|
this.bump();
|
|
3647
3669
|
}, e.prototype.peek = function() {
|
|
3648
3670
|
if (this.isEOF())
|
|
@@ -3652,34 +3674,34 @@ var yi = (
|
|
|
3652
3674
|
}, e;
|
|
3653
3675
|
}()
|
|
3654
3676
|
);
|
|
3655
|
-
function
|
|
3677
|
+
function dt(e) {
|
|
3656
3678
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3657
3679
|
}
|
|
3658
|
-
function
|
|
3659
|
-
return
|
|
3680
|
+
function wi(e) {
|
|
3681
|
+
return dt(e) || e === 47;
|
|
3660
3682
|
}
|
|
3661
|
-
function
|
|
3683
|
+
function Si(e) {
|
|
3662
3684
|
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;
|
|
3663
3685
|
}
|
|
3664
|
-
function
|
|
3686
|
+
function Ir(e) {
|
|
3665
3687
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3666
3688
|
}
|
|
3667
|
-
function
|
|
3689
|
+
function Ti(e) {
|
|
3668
3690
|
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;
|
|
3669
3691
|
}
|
|
3670
3692
|
function pt(e) {
|
|
3671
3693
|
e.forEach(function(t) {
|
|
3672
|
-
if (delete t.location,
|
|
3694
|
+
if (delete t.location, Er(t) || wr(t))
|
|
3673
3695
|
for (var r in t.options)
|
|
3674
3696
|
delete t.options[r].location, pt(t.options[r].value);
|
|
3675
|
-
else
|
|
3697
|
+
else vr(t) && Tr(t.style) || (_r(t) || xr(t)) && ut(t.style) ? delete t.style.location : Sr(t) && pt(t.children);
|
|
3676
3698
|
});
|
|
3677
3699
|
}
|
|
3678
|
-
function
|
|
3679
|
-
t === void 0 && (t = {}), t =
|
|
3680
|
-
var r = new
|
|
3700
|
+
function Hi(e, t) {
|
|
3701
|
+
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3702
|
+
var r = new Ei(e, t).parse();
|
|
3681
3703
|
if (r.err) {
|
|
3682
|
-
var n = SyntaxError(
|
|
3704
|
+
var n = SyntaxError(E[r.err.kind]);
|
|
3683
3705
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3684
3706
|
}
|
|
3685
3707
|
return t != null && t.captureLocation || pt(r.val), r.val;
|
|
@@ -3700,7 +3722,7 @@ var je = (
|
|
|
3700
3722
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3701
3723
|
}, t;
|
|
3702
3724
|
}(Error)
|
|
3703
|
-
),
|
|
3725
|
+
), zt = (
|
|
3704
3726
|
/** @class */
|
|
3705
3727
|
function(e) {
|
|
3706
3728
|
J(t, e);
|
|
@@ -3709,7 +3731,7 @@ var je = (
|
|
|
3709
3731
|
}
|
|
3710
3732
|
return t;
|
|
3711
3733
|
}(je)
|
|
3712
|
-
),
|
|
3734
|
+
), Ai = (
|
|
3713
3735
|
/** @class */
|
|
3714
3736
|
function(e) {
|
|
3715
3737
|
J(t, e);
|
|
@@ -3718,7 +3740,7 @@ var je = (
|
|
|
3718
3740
|
}
|
|
3719
3741
|
return t;
|
|
3720
3742
|
}(je)
|
|
3721
|
-
),
|
|
3743
|
+
), Pi = (
|
|
3722
3744
|
/** @class */
|
|
3723
3745
|
function(e) {
|
|
3724
3746
|
J(t, e);
|
|
@@ -3727,128 +3749,128 @@ var je = (
|
|
|
3727
3749
|
}
|
|
3728
3750
|
return t;
|
|
3729
3751
|
}(je)
|
|
3730
|
-
),
|
|
3752
|
+
), D;
|
|
3731
3753
|
(function(e) {
|
|
3732
3754
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3733
|
-
})(
|
|
3734
|
-
function
|
|
3755
|
+
})(D || (D = {}));
|
|
3756
|
+
function Fi(e) {
|
|
3735
3757
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3736
3758
|
var n = t[t.length - 1];
|
|
3737
|
-
return !n || n.type !==
|
|
3759
|
+
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
3738
3760
|
}, []);
|
|
3739
3761
|
}
|
|
3740
|
-
function
|
|
3762
|
+
function Ci(e) {
|
|
3741
3763
|
return typeof e == "function";
|
|
3742
3764
|
}
|
|
3743
3765
|
function Me(e, t, r, n, i, o, s) {
|
|
3744
|
-
if (e.length === 1 &&
|
|
3766
|
+
if (e.length === 1 && $t(e[0]))
|
|
3745
3767
|
return [
|
|
3746
3768
|
{
|
|
3747
|
-
type:
|
|
3769
|
+
type: D.literal,
|
|
3748
3770
|
value: e[0].value
|
|
3749
3771
|
}
|
|
3750
3772
|
];
|
|
3751
3773
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3752
3774
|
var h = l[u];
|
|
3753
|
-
if (
|
|
3775
|
+
if ($t(h)) {
|
|
3754
3776
|
a.push({
|
|
3755
|
-
type:
|
|
3777
|
+
type: D.literal,
|
|
3756
3778
|
value: h.value
|
|
3757
3779
|
});
|
|
3758
3780
|
continue;
|
|
3759
3781
|
}
|
|
3760
|
-
if (
|
|
3782
|
+
if (Yn(h)) {
|
|
3761
3783
|
typeof o == "number" && a.push({
|
|
3762
|
-
type:
|
|
3784
|
+
type: D.literal,
|
|
3763
3785
|
value: r.getNumberFormat(t).format(o)
|
|
3764
3786
|
});
|
|
3765
3787
|
continue;
|
|
3766
3788
|
}
|
|
3767
|
-
var
|
|
3768
|
-
if (!(i &&
|
|
3769
|
-
throw new
|
|
3770
|
-
var c = i[
|
|
3771
|
-
if (
|
|
3789
|
+
var d = h.value;
|
|
3790
|
+
if (!(i && d in i))
|
|
3791
|
+
throw new Pi(d, s);
|
|
3792
|
+
var c = i[d];
|
|
3793
|
+
if (qn(h)) {
|
|
3772
3794
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3773
|
-
type: typeof c == "string" ?
|
|
3795
|
+
type: typeof c == "string" ? D.literal : D.object,
|
|
3774
3796
|
value: c
|
|
3775
3797
|
});
|
|
3776
3798
|
continue;
|
|
3777
3799
|
}
|
|
3778
|
-
if (
|
|
3779
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3800
|
+
if (_r(h)) {
|
|
3801
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ut(h.style) ? h.style.parsedOptions : void 0;
|
|
3780
3802
|
a.push({
|
|
3781
|
-
type:
|
|
3803
|
+
type: D.literal,
|
|
3782
3804
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3783
3805
|
});
|
|
3784
3806
|
continue;
|
|
3785
3807
|
}
|
|
3786
|
-
if (
|
|
3787
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3808
|
+
if (xr(h)) {
|
|
3809
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ut(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3788
3810
|
a.push({
|
|
3789
|
-
type:
|
|
3811
|
+
type: D.literal,
|
|
3790
3812
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3791
3813
|
});
|
|
3792
3814
|
continue;
|
|
3793
3815
|
}
|
|
3794
|
-
if (
|
|
3795
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3816
|
+
if (vr(h)) {
|
|
3817
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Tr(h.style) ? h.style.parsedOptions : void 0;
|
|
3796
3818
|
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3797
|
-
type:
|
|
3819
|
+
type: D.literal,
|
|
3798
3820
|
value: r.getNumberFormat(t, m).format(c)
|
|
3799
3821
|
});
|
|
3800
3822
|
continue;
|
|
3801
3823
|
}
|
|
3802
|
-
if (
|
|
3803
|
-
var
|
|
3804
|
-
if (!
|
|
3805
|
-
throw new
|
|
3806
|
-
var
|
|
3807
|
-
return
|
|
3824
|
+
if (Sr(h)) {
|
|
3825
|
+
var y = h.children, g = h.value, F = i[g];
|
|
3826
|
+
if (!Ci(F))
|
|
3827
|
+
throw new Ai(g, "function", s);
|
|
3828
|
+
var w = Me(y, t, r, n, i, o), v = F(w.map(function(N) {
|
|
3829
|
+
return N.value;
|
|
3808
3830
|
}));
|
|
3809
|
-
Array.isArray(
|
|
3831
|
+
Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(N) {
|
|
3810
3832
|
return {
|
|
3811
|
-
type: typeof
|
|
3812
|
-
value:
|
|
3833
|
+
type: typeof N == "string" ? D.literal : D.object,
|
|
3834
|
+
value: N
|
|
3813
3835
|
};
|
|
3814
3836
|
}));
|
|
3815
3837
|
}
|
|
3816
|
-
if (
|
|
3817
|
-
var
|
|
3818
|
-
if (!
|
|
3819
|
-
throw new
|
|
3820
|
-
a.push.apply(a, Me(
|
|
3838
|
+
if (Er(h)) {
|
|
3839
|
+
var x = h.options[c] || h.options.other;
|
|
3840
|
+
if (!x)
|
|
3841
|
+
throw new zt(h.value, c, Object.keys(h.options), s);
|
|
3842
|
+
a.push.apply(a, Me(x.value, t, r, n, i));
|
|
3821
3843
|
continue;
|
|
3822
3844
|
}
|
|
3823
|
-
if (
|
|
3824
|
-
var
|
|
3825
|
-
if (!
|
|
3845
|
+
if (wr(h)) {
|
|
3846
|
+
var x = h.options["=".concat(c)];
|
|
3847
|
+
if (!x) {
|
|
3826
3848
|
if (!Intl.PluralRules)
|
|
3827
3849
|
throw new je(`Intl.PluralRules is not available in this environment.
|
|
3828
3850
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3829
3851
|
`, ge.MISSING_INTL_API, s);
|
|
3830
|
-
var
|
|
3831
|
-
|
|
3852
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3853
|
+
x = h.options[O] || h.options.other;
|
|
3832
3854
|
}
|
|
3833
|
-
if (!
|
|
3834
|
-
throw new
|
|
3835
|
-
a.push.apply(a, Me(
|
|
3855
|
+
if (!x)
|
|
3856
|
+
throw new zt(h.value, c, Object.keys(h.options), s);
|
|
3857
|
+
a.push.apply(a, Me(x.value, t, r, n, i, c - (h.offset || 0)));
|
|
3836
3858
|
continue;
|
|
3837
3859
|
}
|
|
3838
3860
|
}
|
|
3839
|
-
return
|
|
3861
|
+
return Fi(a);
|
|
3840
3862
|
}
|
|
3841
|
-
function
|
|
3842
|
-
return t ?
|
|
3843
|
-
return r[n] =
|
|
3863
|
+
function Bi(e, t) {
|
|
3864
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3865
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
3844
3866
|
}, {})) : e;
|
|
3845
3867
|
}
|
|
3846
|
-
function
|
|
3868
|
+
function Ii(e, t) {
|
|
3847
3869
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3848
|
-
return r[n] =
|
|
3849
|
-
},
|
|
3870
|
+
return r[n] = Bi(e[n], t[n]), r;
|
|
3871
|
+
}, H({}, e)) : e;
|
|
3850
3872
|
}
|
|
3851
|
-
function
|
|
3873
|
+
function Ke(e) {
|
|
3852
3874
|
return {
|
|
3853
3875
|
create: function() {
|
|
3854
3876
|
return {
|
|
@@ -3862,39 +3884,39 @@ function Ye(e) {
|
|
|
3862
3884
|
}
|
|
3863
3885
|
};
|
|
3864
3886
|
}
|
|
3865
|
-
function
|
|
3887
|
+
function Oi(e) {
|
|
3866
3888
|
return e === void 0 && (e = {
|
|
3867
3889
|
number: {},
|
|
3868
3890
|
dateTime: {},
|
|
3869
3891
|
pluralRules: {}
|
|
3870
3892
|
}), {
|
|
3871
|
-
getNumberFormat:
|
|
3893
|
+
getNumberFormat: Qe(function() {
|
|
3872
3894
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3873
3895
|
r[n] = arguments[n];
|
|
3874
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3896
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, pe([void 0], r, !1)))();
|
|
3875
3897
|
}, {
|
|
3876
|
-
cache:
|
|
3877
|
-
strategy:
|
|
3898
|
+
cache: Ke(e.number),
|
|
3899
|
+
strategy: qe.variadic
|
|
3878
3900
|
}),
|
|
3879
|
-
getDateTimeFormat:
|
|
3901
|
+
getDateTimeFormat: Qe(function() {
|
|
3880
3902
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3881
3903
|
r[n] = arguments[n];
|
|
3882
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3904
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, pe([void 0], r, !1)))();
|
|
3883
3905
|
}, {
|
|
3884
|
-
cache:
|
|
3885
|
-
strategy:
|
|
3906
|
+
cache: Ke(e.dateTime),
|
|
3907
|
+
strategy: qe.variadic
|
|
3886
3908
|
}),
|
|
3887
|
-
getPluralRules:
|
|
3909
|
+
getPluralRules: Qe(function() {
|
|
3888
3910
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3889
3911
|
r[n] = arguments[n];
|
|
3890
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3912
|
+
return new ((t = Intl.PluralRules).bind.apply(t, pe([void 0], r, !1)))();
|
|
3891
3913
|
}, {
|
|
3892
|
-
cache:
|
|
3893
|
-
strategy:
|
|
3914
|
+
cache: Ke(e.pluralRules),
|
|
3915
|
+
strategy: qe.variadic
|
|
3894
3916
|
})
|
|
3895
3917
|
};
|
|
3896
3918
|
}
|
|
3897
|
-
var
|
|
3919
|
+
var Li = (
|
|
3898
3920
|
/** @class */
|
|
3899
3921
|
function() {
|
|
3900
3922
|
function e(t, r, n, i) {
|
|
@@ -3908,8 +3930,8 @@ var Bi = (
|
|
|
3908
3930
|
var l = o.formatToParts(u);
|
|
3909
3931
|
if (l.length === 1)
|
|
3910
3932
|
return l[0].value;
|
|
3911
|
-
var h = l.reduce(function(
|
|
3912
|
-
return !
|
|
3933
|
+
var h = l.reduce(function(d, c) {
|
|
3934
|
+
return !d.length || c.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(c.value) : d[d.length - 1] += c.value, d;
|
|
3913
3935
|
}, []);
|
|
3914
3936
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3915
3937
|
}, this.formatToParts = function(u) {
|
|
@@ -3926,13 +3948,13 @@ var Bi = (
|
|
|
3926
3948
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3927
3949
|
var s = i || {};
|
|
3928
3950
|
s.formatters;
|
|
3929
|
-
var a =
|
|
3930
|
-
this.ast = e.__parse(t,
|
|
3951
|
+
var a = dn(s, ["formatters"]);
|
|
3952
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
|
3931
3953
|
} else
|
|
3932
3954
|
this.ast = t;
|
|
3933
3955
|
if (!Array.isArray(this.ast))
|
|
3934
3956
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3935
|
-
this.formats =
|
|
3957
|
+
this.formats = Ii(e.formats, n), this.formatters = i && i.formatters || Oi(this.formatterCache);
|
|
3936
3958
|
}
|
|
3937
3959
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3938
3960
|
get: function() {
|
|
@@ -3945,7 +3967,7 @@ var Bi = (
|
|
|
3945
3967
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3946
3968
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3947
3969
|
}
|
|
3948
|
-
}, e.__parse =
|
|
3970
|
+
}, e.__parse = Hi, e.formats = {
|
|
3949
3971
|
number: {
|
|
3950
3972
|
integer: {
|
|
3951
3973
|
maximumFractionDigits: 0
|
|
@@ -4006,7 +4028,7 @@ var Bi = (
|
|
|
4006
4028
|
}, e;
|
|
4007
4029
|
}()
|
|
4008
4030
|
);
|
|
4009
|
-
function
|
|
4031
|
+
function Ni(e, t) {
|
|
4010
4032
|
if (t == null)
|
|
4011
4033
|
return;
|
|
4012
4034
|
if (t in e)
|
|
@@ -4027,92 +4049,92 @@ function Oi(e, t) {
|
|
|
4027
4049
|
n = void 0;
|
|
4028
4050
|
return n;
|
|
4029
4051
|
}
|
|
4030
|
-
const q = {},
|
|
4052
|
+
const q = {}, Mi = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), Or = (e, t) => {
|
|
4031
4053
|
if (t == null)
|
|
4032
4054
|
return;
|
|
4033
4055
|
if (t in q && e in q[t])
|
|
4034
4056
|
return q[t][e];
|
|
4035
4057
|
const r = Ve(t);
|
|
4036
4058
|
for (let n = 0; n < r.length; n++) {
|
|
4037
|
-
const i = r[n], o =
|
|
4059
|
+
const i = r[n], o = Di(i, e);
|
|
4038
4060
|
if (o)
|
|
4039
|
-
return
|
|
4061
|
+
return Mi(e, t, o);
|
|
4040
4062
|
}
|
|
4041
4063
|
};
|
|
4042
|
-
let
|
|
4064
|
+
let _t;
|
|
4043
4065
|
const _e = ke({});
|
|
4044
|
-
function
|
|
4045
|
-
return
|
|
4066
|
+
function Ri(e) {
|
|
4067
|
+
return _t[e] || null;
|
|
4046
4068
|
}
|
|
4047
|
-
function
|
|
4048
|
-
return e in
|
|
4069
|
+
function Lr(e) {
|
|
4070
|
+
return e in _t;
|
|
4049
4071
|
}
|
|
4050
|
-
function
|
|
4051
|
-
if (!
|
|
4072
|
+
function Di(e, t) {
|
|
4073
|
+
if (!Lr(e))
|
|
4052
4074
|
return null;
|
|
4053
|
-
const r =
|
|
4054
|
-
return
|
|
4075
|
+
const r = Ri(e);
|
|
4076
|
+
return Ni(r, t);
|
|
4055
4077
|
}
|
|
4056
|
-
function
|
|
4078
|
+
function Ui(e) {
|
|
4057
4079
|
if (e == null)
|
|
4058
4080
|
return;
|
|
4059
4081
|
const t = Ve(e);
|
|
4060
4082
|
for (let r = 0; r < t.length; r++) {
|
|
4061
4083
|
const n = t[r];
|
|
4062
|
-
if (
|
|
4084
|
+
if (Lr(n))
|
|
4063
4085
|
return n;
|
|
4064
4086
|
}
|
|
4065
4087
|
}
|
|
4066
|
-
function
|
|
4067
|
-
delete q[e], _e.update((r) => (r[e] =
|
|
4088
|
+
function Nr(e, ...t) {
|
|
4089
|
+
delete q[e], _e.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
|
|
4068
4090
|
}
|
|
4069
|
-
|
|
4091
|
+
ve(
|
|
4070
4092
|
[_e],
|
|
4071
4093
|
([e]) => Object.keys(e)
|
|
4072
4094
|
);
|
|
4073
|
-
_e.subscribe((e) =>
|
|
4095
|
+
_e.subscribe((e) => _t = e);
|
|
4074
4096
|
const Re = {};
|
|
4075
|
-
function
|
|
4097
|
+
function $i(e, t) {
|
|
4076
4098
|
Re[e].delete(t), Re[e].size === 0 && delete Re[e];
|
|
4077
4099
|
}
|
|
4078
|
-
function
|
|
4100
|
+
function Mr(e) {
|
|
4079
4101
|
return Re[e];
|
|
4080
4102
|
}
|
|
4081
|
-
function
|
|
4103
|
+
function Gi(e) {
|
|
4082
4104
|
return Ve(e).map((t) => {
|
|
4083
|
-
const r =
|
|
4105
|
+
const r = Mr(t);
|
|
4084
4106
|
return [t, r ? [...r] : []];
|
|
4085
4107
|
}).filter(([, t]) => t.length > 0);
|
|
4086
4108
|
}
|
|
4087
|
-
function
|
|
4109
|
+
function mt(e) {
|
|
4088
4110
|
return e == null ? !1 : Ve(e).some(
|
|
4089
4111
|
(t) => {
|
|
4090
4112
|
var r;
|
|
4091
|
-
return (r =
|
|
4113
|
+
return (r = Mr(t)) == null ? void 0 : r.size;
|
|
4092
4114
|
}
|
|
4093
4115
|
);
|
|
4094
4116
|
}
|
|
4095
|
-
function
|
|
4117
|
+
function ki(e, t) {
|
|
4096
4118
|
return Promise.all(
|
|
4097
|
-
t.map((n) => (
|
|
4098
|
-
).then((n) =>
|
|
4119
|
+
t.map((n) => ($i(e, n), n().then((i) => i.default || i)))
|
|
4120
|
+
).then((n) => Nr(e, ...n));
|
|
4099
4121
|
}
|
|
4100
4122
|
const Ee = {};
|
|
4101
|
-
function
|
|
4102
|
-
if (!
|
|
4123
|
+
function Rr(e) {
|
|
4124
|
+
if (!mt(e))
|
|
4103
4125
|
return e in Ee ? Ee[e] : Promise.resolve();
|
|
4104
|
-
const t =
|
|
4126
|
+
const t = Gi(e);
|
|
4105
4127
|
return Ee[e] = Promise.all(
|
|
4106
4128
|
t.map(
|
|
4107
|
-
([r, n]) =>
|
|
4129
|
+
([r, n]) => ki(r, n)
|
|
4108
4130
|
)
|
|
4109
4131
|
).then(() => {
|
|
4110
|
-
if (
|
|
4111
|
-
return
|
|
4132
|
+
if (mt(e))
|
|
4133
|
+
return Rr(e);
|
|
4112
4134
|
delete Ee[e];
|
|
4113
4135
|
}), Ee[e];
|
|
4114
4136
|
}
|
|
4115
|
-
const
|
|
4137
|
+
const ji = {
|
|
4116
4138
|
number: {
|
|
4117
4139
|
scientific: { notation: "scientific" },
|
|
4118
4140
|
engineering: { notation: "engineering" },
|
|
@@ -4141,57 +4163,57 @@ const Ui = {
|
|
|
4141
4163
|
timeZoneName: "short"
|
|
4142
4164
|
}
|
|
4143
4165
|
}
|
|
4144
|
-
},
|
|
4166
|
+
}, Vi = {
|
|
4145
4167
|
fallbackLocale: null,
|
|
4146
4168
|
loadingDelay: 200,
|
|
4147
|
-
formats:
|
|
4169
|
+
formats: ji,
|
|
4148
4170
|
warnOnMissingMessages: !0,
|
|
4149
4171
|
handleMissingMessage: void 0,
|
|
4150
4172
|
ignoreTag: !0
|
|
4151
|
-
},
|
|
4152
|
-
function
|
|
4153
|
-
return
|
|
4173
|
+
}, Xi = Vi;
|
|
4174
|
+
function ye() {
|
|
4175
|
+
return Xi;
|
|
4154
4176
|
}
|
|
4155
|
-
const
|
|
4156
|
-
var
|
|
4177
|
+
const et = ke(!1);
|
|
4178
|
+
var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
|
|
4157
4179
|
for (var r in t || (t = {}))
|
|
4158
|
-
|
|
4159
|
-
if (
|
|
4160
|
-
for (var r of
|
|
4161
|
-
|
|
4180
|
+
Ji.call(t, r) && Jt(e, r, t[r]);
|
|
4181
|
+
if (Zt)
|
|
4182
|
+
for (var r of Zt(t))
|
|
4183
|
+
Qi.call(t, r) && Jt(e, r, t[r]);
|
|
4162
4184
|
return e;
|
|
4163
|
-
},
|
|
4164
|
-
let
|
|
4165
|
-
const
|
|
4166
|
-
function
|
|
4185
|
+
}, Yi = (e, t) => zi(e, Zi(t));
|
|
4186
|
+
let bt;
|
|
4187
|
+
const Ue = ke(null);
|
|
4188
|
+
function Qt(e) {
|
|
4167
4189
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4168
4190
|
}
|
|
4169
|
-
function Ve(e, t =
|
|
4170
|
-
const r =
|
|
4171
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4191
|
+
function Ve(e, t = ye().fallbackLocale) {
|
|
4192
|
+
const r = Qt(e);
|
|
4193
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Qt(t)])] : r;
|
|
4172
4194
|
}
|
|
4173
4195
|
function ne() {
|
|
4174
|
-
return
|
|
4196
|
+
return bt != null ? bt : void 0;
|
|
4175
4197
|
}
|
|
4176
|
-
|
|
4177
|
-
|
|
4198
|
+
Ue.subscribe((e) => {
|
|
4199
|
+
bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4178
4200
|
});
|
|
4179
|
-
const
|
|
4180
|
-
if (e &&
|
|
4181
|
-
const { loadingDelay: t } =
|
|
4201
|
+
const Ki = (e) => {
|
|
4202
|
+
if (e && Ui(e) && mt(e)) {
|
|
4203
|
+
const { loadingDelay: t } = ye();
|
|
4182
4204
|
let r;
|
|
4183
4205
|
return typeof window != "undefined" && ne() != null && t ? r = window.setTimeout(
|
|
4184
|
-
() =>
|
|
4206
|
+
() => et.set(!0),
|
|
4185
4207
|
t
|
|
4186
|
-
) :
|
|
4187
|
-
|
|
4208
|
+
) : et.set(!0), Rr(e).then(() => {
|
|
4209
|
+
Ue.set(e);
|
|
4188
4210
|
}).finally(() => {
|
|
4189
|
-
clearTimeout(r),
|
|
4211
|
+
clearTimeout(r), et.set(!1);
|
|
4190
4212
|
});
|
|
4191
4213
|
}
|
|
4192
|
-
return
|
|
4193
|
-
}, re =
|
|
4194
|
-
set:
|
|
4214
|
+
return Ue.set(e);
|
|
4215
|
+
}, re = Yi(qi({}, Ue), {
|
|
4216
|
+
set: Ki
|
|
4195
4217
|
}), Xe = (e) => {
|
|
4196
4218
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4197
4219
|
return (n) => {
|
|
@@ -4199,77 +4221,77 @@ const Qi = (e) => {
|
|
|
4199
4221
|
return i in t ? t[i] : t[i] = e(n);
|
|
4200
4222
|
};
|
|
4201
4223
|
};
|
|
4202
|
-
var
|
|
4224
|
+
var eo = Object.defineProperty, $e = Object.getOwnPropertySymbols, Dr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
|
4203
4225
|
for (var r in t || (t = {}))
|
|
4204
|
-
|
|
4205
|
-
if (
|
|
4206
|
-
for (var r of
|
|
4207
|
-
|
|
4226
|
+
Dr.call(t, r) && qt(e, r, t[r]);
|
|
4227
|
+
if ($e)
|
|
4228
|
+
for (var r of $e(t))
|
|
4229
|
+
Ur.call(t, r) && qt(e, r, t[r]);
|
|
4208
4230
|
return e;
|
|
4209
4231
|
}, xe = (e, t) => {
|
|
4210
4232
|
var r = {};
|
|
4211
4233
|
for (var n in e)
|
|
4212
|
-
|
|
4213
|
-
if (e != null &&
|
|
4214
|
-
for (var n of
|
|
4215
|
-
t.indexOf(n) < 0 &&
|
|
4234
|
+
Dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4235
|
+
if (e != null && $e)
|
|
4236
|
+
for (var n of $e(e))
|
|
4237
|
+
t.indexOf(n) < 0 && Ur.call(e, n) && (r[n] = e[n]);
|
|
4216
4238
|
return r;
|
|
4217
4239
|
};
|
|
4218
|
-
const
|
|
4219
|
-
const { formats: r } =
|
|
4240
|
+
const Ae = (e, t) => {
|
|
4241
|
+
const { formats: r } = ye();
|
|
4220
4242
|
if (e in r && t in r[e])
|
|
4221
4243
|
return r[e][t];
|
|
4222
4244
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4223
|
-
},
|
|
4245
|
+
}, to = Xe(
|
|
4224
4246
|
(e) => {
|
|
4225
4247
|
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
|
4226
4248
|
if (r == null)
|
|
4227
4249
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4228
|
-
return n && (i =
|
|
4250
|
+
return n && (i = Ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4229
4251
|
}
|
|
4230
|
-
),
|
|
4252
|
+
), ro = Xe(
|
|
4231
4253
|
(e) => {
|
|
4232
4254
|
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
|
4233
4255
|
if (r == null)
|
|
4234
4256
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4235
|
-
return n ? i =
|
|
4257
|
+
return n ? i = Ae("date", n) : Object.keys(i).length === 0 && (i = Ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4236
4258
|
}
|
|
4237
|
-
),
|
|
4259
|
+
), no = Xe(
|
|
4238
4260
|
(e) => {
|
|
4239
4261
|
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
|
4240
4262
|
if (r == null)
|
|
4241
4263
|
throw new Error(
|
|
4242
4264
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4243
4265
|
);
|
|
4244
|
-
return n ? i =
|
|
4266
|
+
return n ? i = Ae("time", n) : Object.keys(i).length === 0 && (i = Ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4245
4267
|
}
|
|
4246
|
-
),
|
|
4268
|
+
), io = (e = {}) => {
|
|
4247
4269
|
var t = e, {
|
|
4248
4270
|
locale: r = ne()
|
|
4249
4271
|
} = t, n = xe(t, [
|
|
4250
4272
|
"locale"
|
|
4251
4273
|
]);
|
|
4252
|
-
return
|
|
4253
|
-
},
|
|
4274
|
+
return to(xt({ locale: r }, n));
|
|
4275
|
+
}, oo = (e = {}) => {
|
|
4254
4276
|
var t = e, {
|
|
4255
4277
|
locale: r = ne()
|
|
4256
4278
|
} = t, n = xe(t, [
|
|
4257
4279
|
"locale"
|
|
4258
4280
|
]);
|
|
4259
|
-
return
|
|
4260
|
-
},
|
|
4281
|
+
return ro(xt({ locale: r }, n));
|
|
4282
|
+
}, so = (e = {}) => {
|
|
4261
4283
|
var t = e, {
|
|
4262
4284
|
locale: r = ne()
|
|
4263
4285
|
} = t, n = xe(t, [
|
|
4264
4286
|
"locale"
|
|
4265
4287
|
]);
|
|
4266
|
-
return
|
|
4267
|
-
},
|
|
4288
|
+
return no(xt({ locale: r }, n));
|
|
4289
|
+
}, ao = Xe(
|
|
4268
4290
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4269
|
-
(e, t = ne()) => new
|
|
4270
|
-
ignoreTag:
|
|
4291
|
+
(e, t = ne()) => new Li(e, t, ye().formats, {
|
|
4292
|
+
ignoreTag: ye().ignoreTag
|
|
4271
4293
|
})
|
|
4272
|
-
),
|
|
4294
|
+
), lo = (e, t = {}) => {
|
|
4273
4295
|
var r, n, i, o;
|
|
4274
4296
|
let s = t;
|
|
4275
4297
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4282,35 +4304,35 @@ const Pe = (e, t) => {
|
|
|
4282
4304
|
throw new Error(
|
|
4283
4305
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4284
4306
|
);
|
|
4285
|
-
let h =
|
|
4307
|
+
let h = Or(e, u);
|
|
4286
4308
|
if (!h)
|
|
4287
|
-
h = (o = (i = (n = (r =
|
|
4309
|
+
h = (o = (i = (n = (r = ye()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4288
4310
|
else if (typeof h != "string")
|
|
4289
4311
|
return console.warn(
|
|
4290
4312
|
`[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.`
|
|
4291
4313
|
), h;
|
|
4292
4314
|
if (!a)
|
|
4293
4315
|
return h;
|
|
4294
|
-
let
|
|
4316
|
+
let d = h;
|
|
4295
4317
|
try {
|
|
4296
|
-
|
|
4318
|
+
d = ao(h, u).format(a);
|
|
4297
4319
|
} catch (c) {
|
|
4298
4320
|
c instanceof Error && console.warn(
|
|
4299
4321
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4300
4322
|
c.message
|
|
4301
4323
|
);
|
|
4302
4324
|
}
|
|
4303
|
-
return
|
|
4304
|
-
},
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
window.emWidgets = { topic:
|
|
4310
|
-
const
|
|
4311
|
-
function
|
|
4325
|
+
return d;
|
|
4326
|
+
}, uo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = ne()) => Or(e, t), po = ve([re, _e], () => lo);
|
|
4327
|
+
ve([re], () => uo);
|
|
4328
|
+
ve([re], () => ho);
|
|
4329
|
+
ve([re], () => co);
|
|
4330
|
+
ve([re, _e], () => fo);
|
|
4331
|
+
window.emWidgets = { topic: An };
|
|
4332
|
+
const mo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4333
|
+
function Uo(e, t) {
|
|
4312
4334
|
const r = window.navigator.userAgent;
|
|
4313
|
-
return
|
|
4335
|
+
return mo(r) ? t = e.filter((n) => {
|
|
4314
4336
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
|
4315
4337
|
return n;
|
|
4316
4338
|
}) : t = e.filter((n) => {
|
|
@@ -4318,15 +4340,38 @@ function Io(e, t) {
|
|
|
4318
4340
|
return n;
|
|
4319
4341
|
}), t;
|
|
4320
4342
|
}
|
|
4321
|
-
function
|
|
4343
|
+
function go(e, t) {
|
|
4344
|
+
if (e) {
|
|
4345
|
+
const r = document.createElement("style");
|
|
4346
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
function yo(e, t) {
|
|
4350
|
+
const r = new URL(t);
|
|
4351
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4352
|
+
const i = document.createElement("style");
|
|
4353
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4354
|
+
}).catch((n) => {
|
|
4355
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4356
|
+
});
|
|
4357
|
+
}
|
|
4358
|
+
function vo(e, t, r) {
|
|
4359
|
+
if (window.emMessageBus) {
|
|
4360
|
+
const n = document.createElement("style");
|
|
4361
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4362
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4363
|
+
});
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
function _o({ withLocale: e, translations: t }) {
|
|
4322
4367
|
re.subscribe((r) => {
|
|
4323
4368
|
r == null && (_e.set(t), re.set(e));
|
|
4324
4369
|
});
|
|
4325
4370
|
}
|
|
4326
|
-
function
|
|
4327
|
-
|
|
4371
|
+
function Yt(e, t) {
|
|
4372
|
+
Nr(e, t);
|
|
4328
4373
|
}
|
|
4329
|
-
const
|
|
4374
|
+
const Kt = {
|
|
4330
4375
|
en: {
|
|
4331
4376
|
providers: "Providers:",
|
|
4332
4377
|
filterby: "Filter by:",
|
|
@@ -4436,123 +4481,123 @@ const Qt = {
|
|
|
4436
4481
|
clear: "Clear all"
|
|
4437
4482
|
}
|
|
4438
4483
|
};
|
|
4439
|
-
function
|
|
4440
|
-
|
|
4484
|
+
function xo(e) {
|
|
4485
|
+
Zr(e, "svelte-1v7rv6n", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
|
4441
4486
|
}
|
|
4442
|
-
function
|
|
4487
|
+
function er(e, t, r) {
|
|
4443
4488
|
const n = e.slice();
|
|
4444
4489
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
|
4445
4490
|
}
|
|
4446
|
-
function
|
|
4491
|
+
function Eo(e) {
|
|
4447
4492
|
let t, r, n, i, o, s, a, u, l = (
|
|
4448
4493
|
/*$_*/
|
|
4449
4494
|
e[11]("filterby") + ""
|
|
4450
|
-
), h,
|
|
4495
|
+
), h, d, c, m, y = (
|
|
4451
4496
|
/*$_*/
|
|
4452
4497
|
e[11]("providers") + ""
|
|
4453
|
-
),
|
|
4498
|
+
), g, F, w, v, x, O, N, M, S, I, L, z, V, ie = (
|
|
4454
4499
|
/*$_*/
|
|
4455
4500
|
e[11]("clear") + ""
|
|
4456
|
-
), oe, ee, se, te, ae,
|
|
4457
|
-
function
|
|
4501
|
+
), oe, ee, se, te, ae, Pe;
|
|
4502
|
+
function Fe(p, P) {
|
|
4458
4503
|
return (
|
|
4459
4504
|
/*fullSelection*/
|
|
4460
|
-
|
|
4505
|
+
p[7] ? To : So
|
|
4461
4506
|
);
|
|
4462
4507
|
}
|
|
4463
|
-
let le =
|
|
4508
|
+
let le = Fe(e), $ = le(e), Q = Bt(
|
|
4464
4509
|
/*vendorArray*/
|
|
4465
4510
|
e[5]
|
|
4466
4511
|
), f = [];
|
|
4467
|
-
for (let
|
|
4468
|
-
f[
|
|
4512
|
+
for (let p = 0; p < Q.length; p += 1)
|
|
4513
|
+
f[p] = tr(er(e, Q, p));
|
|
4469
4514
|
return {
|
|
4470
4515
|
c() {
|
|
4471
|
-
t =
|
|
4472
|
-
for (let
|
|
4473
|
-
f[
|
|
4474
|
-
z = X(), V =
|
|
4475
|
-
(e[4] ? "TriangleActive" : "")),
|
|
4476
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
|
4516
|
+
t = C("div"), r = C("div"), n = C("div"), i = we("svg"), o = we("path"), s = X(), a = C("div"), u = C("span"), h = G(l), d = X(), c = C("div"), m = C("span"), g = G(y), F = X(), $.c(), w = X(), v = C("span"), x = we("svg"), O = we("path"), S = X(), I = C("div"), L = C("ul");
|
|
4517
|
+
for (let p = 0; p < f.length; p += 1)
|
|
4518
|
+
f[p].c();
|
|
4519
|
+
z = X(), V = C("button"), oe = G(ie), b(o, "id", "noun_filter_736223"), b(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), b(o, "transform", "translate(-5 -6.2)"), b(o, "fill", "#fff"), b(i, "xmlns", "http://www.w3.org/2000/svg"), b(i, "width", "16"), b(i, "height", "16"), b(i, "viewBox", "0 0 16 16"), b(u, "class", "FilterName"), b(c, "class", "FilterValueContainer"), b(a, "class", "FilterTextContainer"), b(n, "class", "FilterMainArea"), b(O, "id", "arrow"), b(O, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), b(O, "transform", "translate(-274.511 -441.088)"), b(O, "fill", "#d1d1d1"), b(x, "xmlns", "http://www.w3.org/2000/svg"), b(x, "width", "14"), b(x, "height", "6.835"), b(x, "viewBox", "0 0 14 6.835"), b(v, "class", N = "TriangleInactive " + /*isFilterActive*/
|
|
4520
|
+
(e[4] ? "TriangleActive" : "")), b(r, "class", M = "FilterSelector " + /*isFilterActive*/
|
|
4521
|
+
(e[4] ? "FilterSelectorOpen" : "")), b(L, "class", "FilterDropdown"), b(V, "class", "ClearFilters"), V.disabled = ee = /*fullSelection*/
|
|
4477
4522
|
e[7] && /*selectedVendorArray*/
|
|
4478
4523
|
e[6].length != /*vendorArray*/
|
|
4479
|
-
e[5].length,
|
|
4480
|
-
(e[4] ? "FilterOpen" : "")),
|
|
4524
|
+
e[5].length, b(I, "class", se = "FilterDropdownContainer " + /*isFilterActive*/
|
|
4525
|
+
(e[4] ? "FilterOpen" : "")), b(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
|
4481
4526
|
(e[0] == "true" && /*addsortingselector*/
|
|
4482
4527
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
|
4483
4528
|
},
|
|
4484
|
-
m(
|
|
4485
|
-
W(
|
|
4486
|
-
for (let
|
|
4487
|
-
f[
|
|
4488
|
-
|
|
4489
|
-
|
|
4529
|
+
m(p, P) {
|
|
4530
|
+
W(p, t, P), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, u), _(u, h), _(a, d), _(a, c), _(c, m), _(m, g), _(c, F), $.m(c, null), _(r, w), _(r, v), _(v, x), _(x, O), _(t, S), _(t, I), _(I, L);
|
|
4531
|
+
for (let A = 0; A < f.length; A += 1)
|
|
4532
|
+
f[A] && f[A].m(L, null);
|
|
4533
|
+
_(I, z), _(I, V), _(V, oe), ae || (Pe = [
|
|
4534
|
+
De(
|
|
4490
4535
|
r,
|
|
4491
4536
|
"click",
|
|
4492
4537
|
/*click_handler*/
|
|
4493
|
-
e[
|
|
4538
|
+
e[23]
|
|
4494
4539
|
),
|
|
4495
|
-
|
|
4540
|
+
De(
|
|
4496
4541
|
V,
|
|
4497
4542
|
"click",
|
|
4498
4543
|
/*click_handler_2*/
|
|
4499
|
-
e[
|
|
4544
|
+
e[26]
|
|
4500
4545
|
)
|
|
4501
4546
|
], ae = !0);
|
|
4502
4547
|
},
|
|
4503
|
-
p(
|
|
4504
|
-
if (
|
|
4548
|
+
p(p, P) {
|
|
4549
|
+
if (P[0] & /*$_*/
|
|
4505
4550
|
2048 && l !== (l = /*$_*/
|
|
4506
|
-
|
|
4507
|
-
2048 &&
|
|
4508
|
-
|
|
4509
|
-
16 &&
|
|
4510
|
-
(
|
|
4511
|
-
16 &&
|
|
4512
|
-
(
|
|
4551
|
+
p[11]("filterby") + "") && Y(h, l), P[0] & /*$_*/
|
|
4552
|
+
2048 && y !== (y = /*$_*/
|
|
4553
|
+
p[11]("providers") + "") && Y(g, y), le === (le = Fe(p)) && $ ? $.p(p, P) : ($.d(1), $ = le(p), $ && ($.c(), $.m(c, null))), P[0] & /*isFilterActive*/
|
|
4554
|
+
16 && N !== (N = "TriangleInactive " + /*isFilterActive*/
|
|
4555
|
+
(p[4] ? "TriangleActive" : "")) && b(v, "class", N), P[0] & /*isFilterActive*/
|
|
4556
|
+
16 && M !== (M = "FilterSelector " + /*isFilterActive*/
|
|
4557
|
+
(p[4] ? "FilterSelectorOpen" : "")) && b(r, "class", M), P[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
4513
4558
|
8228) {
|
|
4514
|
-
Q =
|
|
4559
|
+
Q = Bt(
|
|
4515
4560
|
/*vendorArray*/
|
|
4516
|
-
|
|
4561
|
+
p[5]
|
|
4517
4562
|
);
|
|
4518
|
-
let
|
|
4519
|
-
for (
|
|
4520
|
-
const ue =
|
|
4521
|
-
f[
|
|
4563
|
+
let A;
|
|
4564
|
+
for (A = 0; A < Q.length; A += 1) {
|
|
4565
|
+
const ue = er(p, Q, A);
|
|
4566
|
+
f[A] ? f[A].p(ue, P) : (f[A] = tr(ue), f[A].c(), f[A].m(L, null));
|
|
4522
4567
|
}
|
|
4523
|
-
for (;
|
|
4524
|
-
f[
|
|
4568
|
+
for (; A < f.length; A += 1)
|
|
4569
|
+
f[A].d(1);
|
|
4525
4570
|
f.length = Q.length;
|
|
4526
4571
|
}
|
|
4527
|
-
|
|
4572
|
+
P[0] & /*$_*/
|
|
4528
4573
|
2048 && ie !== (ie = /*$_*/
|
|
4529
|
-
|
|
4574
|
+
p[11]("clear") + "") && Y(oe, ie), P[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
4530
4575
|
224 && ee !== (ee = /*fullSelection*/
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4576
|
+
p[7] && /*selectedVendorArray*/
|
|
4577
|
+
p[6].length != /*vendorArray*/
|
|
4578
|
+
p[5].length) && (V.disabled = ee), P[0] & /*isFilterActive*/
|
|
4534
4579
|
16 && se !== (se = "FilterDropdownContainer " + /*isFilterActive*/
|
|
4535
|
-
(
|
|
4580
|
+
(p[4] ? "FilterOpen" : "")) && b(I, "class", se), P[0] & /*addfilterselector, addsortingselector*/
|
|
4536
4581
|
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
|
4537
|
-
(
|
|
4538
|
-
|
|
4582
|
+
(p[0] == "true" && /*addsortingselector*/
|
|
4583
|
+
p[1] == "true" ? "FilerContainerSplit" : "")) && b(t, "class", te);
|
|
4539
4584
|
},
|
|
4540
|
-
d(
|
|
4541
|
-
|
|
4585
|
+
d(p) {
|
|
4586
|
+
p && j(t), $.d(), qr(f, p), ae = !1, K(Pe);
|
|
4542
4587
|
}
|
|
4543
4588
|
};
|
|
4544
4589
|
}
|
|
4545
|
-
function
|
|
4590
|
+
function wo(e) {
|
|
4546
4591
|
let t, r = (
|
|
4547
4592
|
/*$_*/
|
|
4548
4593
|
e[11]("500") + ""
|
|
4549
4594
|
), n;
|
|
4550
4595
|
return {
|
|
4551
4596
|
c() {
|
|
4552
|
-
t =
|
|
4597
|
+
t = C("p"), n = G(r), b(t, "class", "SearchLoading");
|
|
4553
4598
|
},
|
|
4554
4599
|
m(i, o) {
|
|
4555
|
-
W(i, t, o),
|
|
4600
|
+
W(i, t, o), _(t, n);
|
|
4556
4601
|
},
|
|
4557
4602
|
p(i, o) {
|
|
4558
4603
|
o[0] & /*$_*/
|
|
@@ -4564,17 +4609,17 @@ function go(e) {
|
|
|
4564
4609
|
}
|
|
4565
4610
|
};
|
|
4566
4611
|
}
|
|
4567
|
-
function
|
|
4612
|
+
function So(e) {
|
|
4568
4613
|
let t, r;
|
|
4569
4614
|
return {
|
|
4570
4615
|
c() {
|
|
4571
|
-
t =
|
|
4616
|
+
t = C("span"), r = G(
|
|
4572
4617
|
/*selectionNumber*/
|
|
4573
4618
|
e[8]
|
|
4574
|
-
),
|
|
4619
|
+
), b(t, "class", "FilterCounter");
|
|
4575
4620
|
},
|
|
4576
4621
|
m(n, i) {
|
|
4577
|
-
W(n, t, i),
|
|
4622
|
+
W(n, t, i), _(t, r);
|
|
4578
4623
|
},
|
|
4579
4624
|
p(n, i) {
|
|
4580
4625
|
i[0] & /*selectionNumber*/
|
|
@@ -4589,17 +4634,17 @@ function vo(e) {
|
|
|
4589
4634
|
}
|
|
4590
4635
|
};
|
|
4591
4636
|
}
|
|
4592
|
-
function
|
|
4637
|
+
function To(e) {
|
|
4593
4638
|
let t, r = (
|
|
4594
4639
|
/*$_*/
|
|
4595
4640
|
e[11]("all") + ""
|
|
4596
4641
|
), n;
|
|
4597
4642
|
return {
|
|
4598
4643
|
c() {
|
|
4599
|
-
t =
|
|
4644
|
+
t = C("span"), n = G(r), b(t, "class", "FilterCounter");
|
|
4600
4645
|
},
|
|
4601
4646
|
m(i, o) {
|
|
4602
|
-
W(i, t, o),
|
|
4647
|
+
W(i, t, o), _(t, n);
|
|
4603
4648
|
},
|
|
4604
4649
|
p(i, o) {
|
|
4605
4650
|
o[0] & /*$_*/
|
|
@@ -4611,27 +4656,27 @@ function yo(e) {
|
|
|
4611
4656
|
}
|
|
4612
4657
|
};
|
|
4613
4658
|
}
|
|
4614
|
-
function
|
|
4659
|
+
function Ho(e) {
|
|
4615
4660
|
let t, r;
|
|
4616
4661
|
return {
|
|
4617
4662
|
c() {
|
|
4618
|
-
t =
|
|
4619
|
-
e[36].logo) ||
|
|
4663
|
+
t = C("img"), Pt(t.src, r = /*vendor*/
|
|
4664
|
+
e[36].logo) || b(t, "src", r), b(t, "alt", "vendor logo");
|
|
4620
4665
|
},
|
|
4621
4666
|
m(n, i) {
|
|
4622
4667
|
W(n, t, i);
|
|
4623
4668
|
},
|
|
4624
4669
|
p(n, i) {
|
|
4625
4670
|
i[0] & /*vendorArray*/
|
|
4626
|
-
32 && !
|
|
4627
|
-
n[36].logo) &&
|
|
4671
|
+
32 && !Pt(t.src, r = /*vendor*/
|
|
4672
|
+
n[36].logo) && b(t, "src", r);
|
|
4628
4673
|
},
|
|
4629
4674
|
d(n) {
|
|
4630
4675
|
n && j(t);
|
|
4631
4676
|
}
|
|
4632
4677
|
};
|
|
4633
4678
|
}
|
|
4634
|
-
function
|
|
4679
|
+
function Ao(e) {
|
|
4635
4680
|
let t, r, n = (
|
|
4636
4681
|
/*vendor*/
|
|
4637
4682
|
e[36].name + ""
|
|
@@ -4641,27 +4686,27 @@ function xo(e) {
|
|
|
4641
4686
|
), l, h;
|
|
4642
4687
|
return {
|
|
4643
4688
|
c() {
|
|
4644
|
-
t =
|
|
4689
|
+
t = C("div"), r = C("span"), i = G(n), o = X(), s = C("span"), a = G("("), l = G(u), h = G(")"), b(r, "class", "VendorName"), b(t, "class", "FilterItemLabel");
|
|
4645
4690
|
},
|
|
4646
|
-
m(
|
|
4647
|
-
W(
|
|
4691
|
+
m(d, c) {
|
|
4692
|
+
W(d, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, h);
|
|
4648
4693
|
},
|
|
4649
|
-
p(
|
|
4694
|
+
p(d, c) {
|
|
4650
4695
|
c[0] & /*vendorArray*/
|
|
4651
4696
|
32 && n !== (n = /*vendor*/
|
|
4652
|
-
|
|
4697
|
+
d[36].name + "") && Y(i, n), c[0] & /*vendorArray*/
|
|
4653
4698
|
32 && u !== (u = /*vendor*/
|
|
4654
|
-
|
|
4699
|
+
d[36].games.count + "") && Y(l, u);
|
|
4655
4700
|
},
|
|
4656
|
-
d(
|
|
4657
|
-
|
|
4701
|
+
d(d) {
|
|
4702
|
+
d && j(t);
|
|
4658
4703
|
}
|
|
4659
4704
|
};
|
|
4660
4705
|
}
|
|
4661
|
-
function
|
|
4662
|
-
let t, r, n, i, o, s, a, u, l, h,
|
|
4706
|
+
function tr(e) {
|
|
4707
|
+
let t, r, n, i, o, s, a, u, l, h, d, c;
|
|
4663
4708
|
function m() {
|
|
4664
|
-
e[
|
|
4709
|
+
e[24].call(
|
|
4665
4710
|
n,
|
|
4666
4711
|
/*each_value*/
|
|
4667
4712
|
e[37],
|
|
@@ -4669,73 +4714,73 @@ function Yt(e) {
|
|
|
4669
4714
|
e[38]
|
|
4670
4715
|
);
|
|
4671
4716
|
}
|
|
4672
|
-
function
|
|
4717
|
+
function y() {
|
|
4673
4718
|
return (
|
|
4674
4719
|
/*click_handler_1*/
|
|
4675
|
-
e[
|
|
4720
|
+
e[25](
|
|
4676
4721
|
/*vendor*/
|
|
4677
4722
|
e[36]
|
|
4678
4723
|
)
|
|
4679
4724
|
);
|
|
4680
4725
|
}
|
|
4681
|
-
function
|
|
4726
|
+
function g(v, x) {
|
|
4682
4727
|
if (
|
|
4683
4728
|
/*filterbylogo*/
|
|
4684
|
-
|
|
4685
|
-
) return
|
|
4729
|
+
v[2] === "false"
|
|
4730
|
+
) return Ao;
|
|
4686
4731
|
if (
|
|
4687
4732
|
/*filterbylogo*/
|
|
4688
|
-
|
|
4689
|
-
) return
|
|
4733
|
+
v[2] === "true"
|
|
4734
|
+
) return Ho;
|
|
4690
4735
|
}
|
|
4691
|
-
let
|
|
4736
|
+
let F = g(e), w = F && F(e);
|
|
4692
4737
|
return {
|
|
4693
4738
|
c() {
|
|
4694
|
-
t =
|
|
4695
|
-
e[36].name,
|
|
4739
|
+
t = C("li"), r = C("label"), n = C("input"), o = X(), s = C("span"), a = X(), w && w.c(), u = X(), b(n, "type", "checkbox"), b(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
|
4740
|
+
e[36].name, Ft(n, n.__value), b(s, "class", "FiltersCheckmark"), b(r, "class", "FilterLabel"), b(t, "class", l = "FilterItem " + /*filterbylogo*/
|
|
4696
4741
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = h = /*vendor*/
|
|
4697
4742
|
e[36].name;
|
|
4698
4743
|
},
|
|
4699
|
-
m(
|
|
4700
|
-
W(
|
|
4701
|
-
e[36].isFilterSelected,
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
],
|
|
4744
|
+
m(v, x) {
|
|
4745
|
+
W(v, t, x), _(t, r), _(r, n), n.checked = /*vendor*/
|
|
4746
|
+
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, u), d || (c = [
|
|
4747
|
+
De(n, "change", m),
|
|
4748
|
+
De(n, "click", y)
|
|
4749
|
+
], d = !0);
|
|
4705
4750
|
},
|
|
4706
|
-
p(
|
|
4707
|
-
e =
|
|
4751
|
+
p(v, x) {
|
|
4752
|
+
e = v, x[0] & /*vendorArray*/
|
|
4708
4753
|
32 && i !== (i = /*vendor*/
|
|
4709
|
-
e[36].name) && (n.__value = i,
|
|
4754
|
+
e[36].name) && (n.__value = i, Ft(n, n.__value)), x[0] & /*vendorArray*/
|
|
4710
4755
|
32 && (n.checked = /*vendor*/
|
|
4711
|
-
e[36].isFilterSelected),
|
|
4756
|
+
e[36].isFilterSelected), F === (F = g(e)) && w ? w.p(e, x) : (w && w.d(1), w = F && F(e), w && (w.c(), w.m(r, null))), x[0] & /*filterbylogo*/
|
|
4712
4757
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
|
4713
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
|
4758
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && b(t, "class", l), x[0] & /*vendorArray*/
|
|
4714
4759
|
32 && h !== (h = /*vendor*/
|
|
4715
4760
|
e[36].name) && (t.value = h);
|
|
4716
4761
|
},
|
|
4717
|
-
d(
|
|
4718
|
-
|
|
4762
|
+
d(v) {
|
|
4763
|
+
v && j(t), w && w.d(), d = !1, K(c);
|
|
4719
4764
|
}
|
|
4720
4765
|
};
|
|
4721
4766
|
}
|
|
4722
|
-
function
|
|
4767
|
+
function Po(e) {
|
|
4723
4768
|
let t;
|
|
4724
4769
|
function r(o, s) {
|
|
4725
4770
|
if (
|
|
4726
4771
|
/*hasErrors*/
|
|
4727
4772
|
o[10]
|
|
4728
|
-
) return
|
|
4773
|
+
) return wo;
|
|
4729
4774
|
if (!/*isLoading*/
|
|
4730
|
-
o[9]) return
|
|
4775
|
+
o[9]) return Eo;
|
|
4731
4776
|
}
|
|
4732
4777
|
let n = r(e), i = n && n(e);
|
|
4733
4778
|
return {
|
|
4734
4779
|
c() {
|
|
4735
|
-
t =
|
|
4780
|
+
t = C("div"), i && i.c();
|
|
4736
4781
|
},
|
|
4737
4782
|
m(o, s) {
|
|
4738
|
-
W(o, t, s), i && i.m(t, null), e[
|
|
4783
|
+
W(o, t, s), i && i.m(t, null), e[27](t);
|
|
4739
4784
|
},
|
|
4740
4785
|
p(o, s) {
|
|
4741
4786
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4743,107 +4788,93 @@ function Eo(e) {
|
|
|
4743
4788
|
i: k,
|
|
4744
4789
|
o: k,
|
|
4745
4790
|
d(o) {
|
|
4746
|
-
o && j(t), i && i.d(), e[
|
|
4791
|
+
o && j(t), i && i.d(), e[27](null);
|
|
4747
4792
|
}
|
|
4748
4793
|
};
|
|
4749
4794
|
}
|
|
4750
|
-
function
|
|
4795
|
+
function Fo(e, t, r) {
|
|
4751
4796
|
let n;
|
|
4752
|
-
|
|
4753
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector:
|
|
4754
|
-
|
|
4755
|
-
const
|
|
4756
|
-
fetch(a).then((
|
|
4757
|
-
Object.keys(
|
|
4758
|
-
|
|
4797
|
+
zr(e, po, (f) => r(11, n = f));
|
|
4798
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector: d = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, { mbsource: y } = t, g = !1, F = window.navigator.userAgent, w = [], v = [], x = {}, O = !1, N = 0, M = !0, S, I = !1, L;
|
|
4799
|
+
_o({ withLocale: "en", translations: {} });
|
|
4800
|
+
const z = () => {
|
|
4801
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
|
4802
|
+
Object.keys(p).forEach((P) => {
|
|
4803
|
+
Yt(P, p[P]);
|
|
4759
4804
|
});
|
|
4760
|
-
}).catch((
|
|
4761
|
-
console.log(
|
|
4805
|
+
}).catch((p) => {
|
|
4806
|
+
console.log(p);
|
|
4762
4807
|
});
|
|
4763
4808
|
};
|
|
4764
|
-
Object.keys(
|
|
4765
|
-
|
|
4766
|
-
});
|
|
4767
|
-
const M = () => {
|
|
4768
|
-
let f = document.createElement("style");
|
|
4769
|
-
f.innerHTML = u, O.appendChild(f);
|
|
4770
|
-
}, z = () => {
|
|
4771
|
-
let f = document.createElement("style");
|
|
4772
|
-
fetch(new URL(l)).then((d) => d.text()).then((d) => {
|
|
4773
|
-
f.innerHTML = d, setTimeout(
|
|
4774
|
-
() => {
|
|
4775
|
-
O.appendChild(f);
|
|
4776
|
-
},
|
|
4777
|
-
1
|
|
4778
|
-
);
|
|
4779
|
-
});
|
|
4780
|
-
};
|
|
4781
|
-
H[h] && (H = { [h]: [] });
|
|
4809
|
+
Object.keys(Kt).forEach((f) => {
|
|
4810
|
+
Yt(f, Kt[f]);
|
|
4811
|
+
}), x[h] && (x = { [h]: [] });
|
|
4782
4812
|
const V = () => {
|
|
4783
|
-
r(4,
|
|
4784
|
-
}, ie = (f) => (r(9,
|
|
4785
|
-
fetch(f).then((
|
|
4786
|
-
|
|
4813
|
+
r(4, g = !g), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
4814
|
+
}, ie = (f) => (r(9, M = !0), new Promise((p, P) => {
|
|
4815
|
+
fetch(f).then((A) => A.json()).then((A) => {
|
|
4816
|
+
A = A.items, p(A.items), r(6, v = []);
|
|
4787
4817
|
let ue = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
4788
|
-
|
|
4789
|
-
var
|
|
4790
|
-
ue || (ue = { currentCategoryId: [] }), ((
|
|
4791
|
-
}), r(5,
|
|
4792
|
-
}).catch((
|
|
4793
|
-
console.error(
|
|
4818
|
+
A.forEach((Ce) => {
|
|
4819
|
+
var Et;
|
|
4820
|
+
ue || (ue = { currentCategoryId: [] }), ((Et = ue[h]) == null ? void 0 : Et.indexOf(Ce.id)) >= 0 ? (Ce.isFilterSelected = !0, v.push(Ce)) : Ce.isFilterSelected = !1;
|
|
4821
|
+
}), r(5, w = A), ee();
|
|
4822
|
+
}).catch((A) => {
|
|
4823
|
+
console.error(A), r(10, I = !0), P(A);
|
|
4794
4824
|
}).finally(() => {
|
|
4795
|
-
r(9,
|
|
4825
|
+
r(9, M = !1);
|
|
4796
4826
|
});
|
|
4797
4827
|
})), oe = (f) => {
|
|
4798
|
-
let
|
|
4799
|
-
f.isFilterSelected = !f.isFilterSelected, !v.length || v.filter((
|
|
4800
|
-
[h]: v.map((
|
|
4801
|
-
})) : (
|
|
4828
|
+
let p = localStorage.getItem("vendorFiltersByCategory");
|
|
4829
|
+
f.isFilterSelected = !f.isFilterSelected, !v.length || v.filter((P) => P.name === f.name).length == 0 ? v.push(f) : r(6, v = v.filter((P) => P.name !== f.name)), p == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
|
4830
|
+
[h]: v.map((P) => P.id)
|
|
4831
|
+
})) : (p = JSON.parse(p), p[h] = v.map((P) => P.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(p))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
|
4802
4832
|
}, ee = () => {
|
|
4803
|
-
r(7,
|
|
4833
|
+
r(7, O = v.length === w.length || v.length == 0), r(8, N = v.length);
|
|
4804
4834
|
}, se = () => {
|
|
4805
4835
|
const f = new URL(`${i}/v1/casino/vendors`);
|
|
4806
|
-
r(4,
|
|
4836
|
+
r(4, g = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", bo(F)), (h.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${h})`), f.searchParams.append("subVendors", `games(subGroups=${h})`)) : f.searchParams.append("filter", `games(groups=${h})`), ie(f);
|
|
4807
4837
|
}, te = () => {
|
|
4808
|
-
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(
|
|
4838
|
+
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
|
4809
4839
|
[h]: v.map((f) => f.id)
|
|
4810
|
-
})),
|
|
4840
|
+
})), w.forEach((f) => f.isFilterSelected = !1), r(5, w), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, O = !0), r(4, g = !1);
|
|
4811
4841
|
}, ae = (f) => {
|
|
4812
|
-
f.data.type == "SortingOpened" && r(4,
|
|
4842
|
+
f.data.type == "SortingOpened" && r(4, g = !1);
|
|
4813
4843
|
};
|
|
4814
|
-
|
|
4815
|
-
window.removeEventListener("message", ae);
|
|
4844
|
+
tn(() => (window.addEventListener("message", ae, !1), () => {
|
|
4845
|
+
window.emMessageBus != null && L && L.unsubscribe(), window.removeEventListener("message", ae);
|
|
4816
4846
|
}));
|
|
4817
|
-
const
|
|
4818
|
-
function
|
|
4819
|
-
f[
|
|
4847
|
+
const Pe = () => V();
|
|
4848
|
+
function Fe(f, p) {
|
|
4849
|
+
f[p].isFilterSelected = this.checked, r(5, w);
|
|
4820
4850
|
}
|
|
4821
|
-
const le = (f) => oe(f),
|
|
4851
|
+
const le = (f) => oe(f), $ = () => te();
|
|
4822
4852
|
function Q(f) {
|
|
4823
|
-
|
|
4824
|
-
|
|
4853
|
+
tt[f ? "unshift" : "push"](() => {
|
|
4854
|
+
S = f, r(3, S);
|
|
4825
4855
|
});
|
|
4826
4856
|
}
|
|
4827
4857
|
return e.$$set = (f) => {
|
|
4828
|
-
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, u = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, h = f.categoryid), "addfilterselector" in f && r(0,
|
|
4858
|
+
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, u = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, h = f.categoryid), "addfilterselector" in f && r(0, d = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo), "mbsource" in f && r(22, y = f.mbsource);
|
|
4829
4859
|
}, e.$$.update = () => {
|
|
4830
4860
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
4831
4861
|
2195460 && i && o && h && m && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4832
|
-
524296 && u &&
|
|
4833
|
-
1048584 && l &&
|
|
4834
|
-
|
|
4862
|
+
524296 && u && S && go(S, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4863
|
+
1048584 && l && S && yo(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4864
|
+
4194312 && S && vo(S, `${y}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4865
|
+
262144 && a && z();
|
|
4835
4866
|
}, [
|
|
4836
|
-
|
|
4867
|
+
d,
|
|
4837
4868
|
c,
|
|
4838
4869
|
m,
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4870
|
+
S,
|
|
4871
|
+
g,
|
|
4872
|
+
w,
|
|
4842
4873
|
v,
|
|
4843
|
-
|
|
4874
|
+
O,
|
|
4844
4875
|
N,
|
|
4845
|
-
|
|
4846
|
-
|
|
4876
|
+
M,
|
|
4877
|
+
I,
|
|
4847
4878
|
n,
|
|
4848
4879
|
V,
|
|
4849
4880
|
oe,
|
|
@@ -4855,21 +4886,22 @@ function wo(e, t, r) {
|
|
|
4855
4886
|
u,
|
|
4856
4887
|
l,
|
|
4857
4888
|
h,
|
|
4858
|
-
|
|
4859
|
-
|
|
4889
|
+
y,
|
|
4890
|
+
Pe,
|
|
4891
|
+
Fe,
|
|
4860
4892
|
le,
|
|
4861
|
-
|
|
4893
|
+
$,
|
|
4862
4894
|
Q
|
|
4863
4895
|
];
|
|
4864
4896
|
}
|
|
4865
|
-
class
|
|
4897
|
+
class $r extends cn {
|
|
4866
4898
|
constructor(t) {
|
|
4867
|
-
super(),
|
|
4899
|
+
super(), un(
|
|
4868
4900
|
this,
|
|
4869
4901
|
t,
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4902
|
+
Fo,
|
|
4903
|
+
Po,
|
|
4904
|
+
nr,
|
|
4873
4905
|
{
|
|
4874
4906
|
endpoint: 15,
|
|
4875
4907
|
datasource: 16,
|
|
@@ -4880,9 +4912,10 @@ class Mr extends an {
|
|
|
4880
4912
|
categoryid: 21,
|
|
4881
4913
|
addfilterselector: 0,
|
|
4882
4914
|
addsortingselector: 1,
|
|
4883
|
-
filterbylogo: 2
|
|
4915
|
+
filterbylogo: 2,
|
|
4916
|
+
mbsource: 22
|
|
4884
4917
|
},
|
|
4885
|
-
|
|
4918
|
+
xo,
|
|
4886
4919
|
[-1, -1]
|
|
4887
4920
|
);
|
|
4888
4921
|
}
|
|
@@ -4946,50 +4979,59 @@ class Mr extends an {
|
|
|
4946
4979
|
set filterbylogo(t) {
|
|
4947
4980
|
this.$$set({ filterbylogo: t }), U();
|
|
4948
4981
|
}
|
|
4982
|
+
get mbsource() {
|
|
4983
|
+
return this.$$.ctx[22];
|
|
4984
|
+
}
|
|
4985
|
+
set mbsource(t) {
|
|
4986
|
+
this.$$set({ mbsource: t }), U();
|
|
4987
|
+
}
|
|
4949
4988
|
}
|
|
4950
|
-
|
|
4951
|
-
const
|
|
4989
|
+
hn($r, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {} }, [], [], !0);
|
|
4990
|
+
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4952
4991
|
__proto__: null,
|
|
4953
|
-
default:
|
|
4992
|
+
default: $r
|
|
4954
4993
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4955
4994
|
export {
|
|
4956
4995
|
re as $,
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4996
|
+
qr as A,
|
|
4997
|
+
Oo as B,
|
|
4998
|
+
po as C,
|
|
4999
|
+
Mo as D,
|
|
5000
|
+
Uo as E,
|
|
5001
|
+
Do as F,
|
|
5002
|
+
Io as G,
|
|
5003
|
+
No as H,
|
|
5004
|
+
Ro as I,
|
|
4966
5005
|
_e as J,
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
5006
|
+
yo as K,
|
|
5007
|
+
go as L,
|
|
5008
|
+
vo as M,
|
|
5009
|
+
$o as N,
|
|
5010
|
+
cn as S,
|
|
5011
|
+
Nr as a,
|
|
5012
|
+
Zr as b,
|
|
5013
|
+
hn as c,
|
|
5014
|
+
X as d,
|
|
5015
|
+
C as e,
|
|
4974
5016
|
U as f,
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
5017
|
+
Pt as g,
|
|
5018
|
+
b as h,
|
|
5019
|
+
un as i,
|
|
5020
|
+
W as j,
|
|
5021
|
+
_ as k,
|
|
5022
|
+
j as l,
|
|
5023
|
+
zr as m,
|
|
4982
5024
|
k as n,
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
5025
|
+
tn as o,
|
|
5026
|
+
mo as p,
|
|
5027
|
+
G as q,
|
|
5028
|
+
De as r,
|
|
5029
|
+
nr as s,
|
|
5030
|
+
Lo as t,
|
|
5031
|
+
Y as u,
|
|
5032
|
+
Bo as v,
|
|
5033
|
+
bo as w,
|
|
5034
|
+
tt as x,
|
|
5035
|
+
we as y,
|
|
5036
|
+
Bt as z
|
|
4995
5037
|
};
|