@everymatrix/casino-collections-providers 1.74.1 → 1.74.3
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/{CasinoCollectionsProviders-Dr6Zug99.js → CasinoCollectionsProviders-BBtiOdOd.js} +833 -868
- package/components/CasinoCollectionsProviders-DIkeoPWx.cjs +18 -0
- package/components/{CasinoCollectionsProviders-Dk0oppKx.js → CasinoCollectionsProviders-eSo1VPlV.js} +806 -841
- package/es2015/casino-collections-providers.cjs +1 -1
- package/es2015/casino-collections-providers.js +1 -1
- package/esnext/casino-collections-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCollectionsProviders-BDhWKZsF.cjs +0 -18
package/components/{CasinoCollectionsProviders-Dk0oppKx.js → CasinoCollectionsProviders-eSo1VPlV.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
function A() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Ft(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function ct() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function te(e) {
|
10
|
+
e.forEach(Ft);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function et(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function jt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let ce;
|
19
|
-
function
|
19
|
+
function ye(e, t) {
|
20
20
|
return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Nr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function kt(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,20 +31,20 @@ function zt(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function Mr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(kt(t, r));
|
36
36
|
}
|
37
37
|
function H(e, t) {
|
38
38
|
e.appendChild(t);
|
39
39
|
}
|
40
|
-
function
|
41
|
-
const n =
|
40
|
+
function Rr(e, t, r) {
|
41
|
+
const n = $r(e);
|
42
42
|
if (!n.getElementById(t)) {
|
43
43
|
const i = C("style");
|
44
|
-
i.id = t, i.textContent = r,
|
44
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function $r(e) {
|
48
48
|
if (!e)
|
49
49
|
return document;
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -54,36 +54,36 @@ function Fr(e) {
|
|
54
54
|
t
|
55
55
|
) : e.ownerDocument;
|
56
56
|
}
|
57
|
-
function
|
57
|
+
function Gr(e, t) {
|
58
58
|
return H(
|
59
59
|
/** @type {Document} */
|
60
60
|
e.head || e,
|
61
61
|
t
|
62
62
|
), t.sheet;
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function $(e, t, r) {
|
65
65
|
e.insertBefore(t, r || null);
|
66
66
|
}
|
67
67
|
function I(e) {
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function Vt(e, t) {
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
72
72
|
e[r] && e[r].d(t);
|
73
73
|
}
|
74
74
|
function C(e) {
|
75
75
|
return document.createElement(e);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function we(e) {
|
78
78
|
return document.createTextNode(e);
|
79
79
|
}
|
80
80
|
function k() {
|
81
|
-
return
|
81
|
+
return we(" ");
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function ve(e, t, r, n) {
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
85
85
|
}
|
86
|
-
function
|
86
|
+
function Ur(e) {
|
87
87
|
return function(t) {
|
88
88
|
return t.stopPropagation(), e.call(this, t);
|
89
89
|
};
|
@@ -91,17 +91,17 @@ function kr(e) {
|
|
91
91
|
function E(e, t, r) {
|
92
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function Dr(e) {
|
95
95
|
return Array.from(e.childNodes);
|
96
96
|
}
|
97
|
-
function
|
97
|
+
function tt(e, t) {
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
99
99
|
t);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function Oe(e, t, r, n) {
|
102
102
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
103
103
|
}
|
104
|
-
function
|
104
|
+
function Fr(e) {
|
105
105
|
const t = {};
|
106
106
|
return e.childNodes.forEach(
|
107
107
|
/** @param {Element} node */
|
@@ -110,90 +110,90 @@ function Xr(e) {
|
|
110
110
|
}
|
111
111
|
), t;
|
112
112
|
}
|
113
|
-
let
|
114
|
-
function
|
115
|
-
|
113
|
+
let ae;
|
114
|
+
function se(e) {
|
115
|
+
ae = e;
|
116
116
|
}
|
117
|
-
function
|
118
|
-
if (!
|
117
|
+
function jr() {
|
118
|
+
if (!ae)
|
119
119
|
throw new Error("Function called outside component initialization");
|
120
|
-
return
|
120
|
+
return ae;
|
121
121
|
}
|
122
|
-
function
|
123
|
-
|
122
|
+
function kr(e) {
|
123
|
+
jr().$$.on_mount.push(e);
|
124
124
|
}
|
125
125
|
const Z = [], _e = [];
|
126
126
|
let Q = [];
|
127
|
-
const
|
128
|
-
let
|
129
|
-
function
|
130
|
-
|
127
|
+
const ft = [], Vr = /* @__PURE__ */ Promise.resolve();
|
128
|
+
let Ue = !1;
|
129
|
+
function Xr() {
|
130
|
+
Ue || (Ue = !0, Vr.then(O));
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function De(e) {
|
133
133
|
Q.push(e);
|
134
134
|
}
|
135
|
-
const
|
135
|
+
const Le = /* @__PURE__ */ new Set();
|
136
136
|
let W = 0;
|
137
137
|
function O() {
|
138
138
|
if (W !== 0)
|
139
139
|
return;
|
140
|
-
const e =
|
140
|
+
const e = ae;
|
141
141
|
do {
|
142
142
|
try {
|
143
143
|
for (; W < Z.length; ) {
|
144
144
|
const t = Z[W];
|
145
|
-
W++,
|
145
|
+
W++, se(t), Wr(t.$$);
|
146
146
|
}
|
147
147
|
} catch (t) {
|
148
148
|
throw Z.length = 0, W = 0, t;
|
149
149
|
}
|
150
|
-
for (
|
150
|
+
for (se(null), Z.length = 0, W = 0; _e.length; )
|
151
151
|
_e.pop()();
|
152
152
|
for (let t = 0; t < Q.length; t += 1) {
|
153
153
|
const r = Q[t];
|
154
|
-
|
154
|
+
Le.has(r) || (Le.add(r), r());
|
155
155
|
}
|
156
156
|
Q.length = 0;
|
157
157
|
} while (Z.length);
|
158
|
-
for (;
|
159
|
-
|
160
|
-
|
158
|
+
for (; ft.length; )
|
159
|
+
ft.pop()();
|
160
|
+
Ue = !1, Le.clear(), se(e);
|
161
161
|
}
|
162
|
-
function
|
162
|
+
function Wr(e) {
|
163
163
|
if (e.fragment !== null) {
|
164
|
-
e.update(),
|
164
|
+
e.update(), te(e.before_update);
|
165
165
|
const t = e.dirty;
|
166
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
166
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
167
167
|
}
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function zr(e) {
|
170
170
|
const t = [], r = [];
|
171
171
|
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
172
172
|
}
|
173
|
-
const
|
174
|
-
function
|
175
|
-
e && e.i && (
|
173
|
+
const Zr = /* @__PURE__ */ new Set();
|
174
|
+
function Qr(e, t) {
|
175
|
+
e && e.i && (Zr.delete(e), e.i(t));
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function xe(e) {
|
178
178
|
return e?.length !== void 0 ? e : Array.from(e);
|
179
179
|
}
|
180
|
-
function
|
180
|
+
function Jr(e, t, r) {
|
181
181
|
const { fragment: n, after_update: i } = e.$$;
|
182
|
-
n && n.m(t, r),
|
183
|
-
const o = e.$$.on_mount.map(
|
184
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
185
|
-
}), i.forEach(
|
182
|
+
n && n.m(t, r), De(() => {
|
183
|
+
const o = e.$$.on_mount.map(Ft).filter(et);
|
184
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
185
|
+
}), i.forEach(De);
|
186
186
|
}
|
187
|
-
function
|
187
|
+
function qr(e, t) {
|
188
188
|
const r = e.$$;
|
189
|
-
r.fragment !== null && (
|
189
|
+
r.fragment !== null && (zr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
190
190
|
}
|
191
|
-
function
|
192
|
-
e.$$.dirty[0] === -1 && (Z.push(e),
|
191
|
+
function Yr(e, t) {
|
192
|
+
e.$$.dirty[0] === -1 && (Z.push(e), Xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
193
193
|
}
|
194
|
-
function
|
195
|
-
const h =
|
196
|
-
|
194
|
+
function Kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
195
|
+
const h = ae;
|
196
|
+
se(e);
|
197
197
|
const l = e.$$ = {
|
198
198
|
fragment: null,
|
199
199
|
ctx: [],
|
@@ -201,7 +201,7 @@ function nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
201
201
|
props: o,
|
202
202
|
update: A,
|
203
203
|
not_equal: i,
|
204
|
-
bound:
|
204
|
+
bound: ct(),
|
205
205
|
// lifecycle
|
206
206
|
on_mount: [],
|
207
207
|
on_destroy: [],
|
@@ -210,28 +210,28 @@ function nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
210
210
|
after_update: [],
|
211
211
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
212
212
|
// everything else
|
213
|
-
callbacks:
|
213
|
+
callbacks: ct(),
|
214
214
|
dirty: a,
|
215
215
|
skip_bound: !1,
|
216
216
|
root: t.target || h.$$.root
|
217
217
|
};
|
218
218
|
s && s(l.root);
|
219
219
|
let u = !1;
|
220
|
-
if (l.ctx = r
|
220
|
+
if (l.ctx = r(e, t.props || {}, (f, c, ...d) => {
|
221
221
|
const m = d.length ? d[0] : c;
|
222
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u &&
|
223
|
-
})
|
222
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && Yr(e, f)), c;
|
223
|
+
}), l.update(), u = !0, te(l.before_update), l.fragment = n(l.ctx), t.target) {
|
224
224
|
if (t.hydrate) {
|
225
|
-
const f =
|
225
|
+
const f = Dr(t.target);
|
226
226
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
227
227
|
} else
|
228
228
|
l.fragment && l.fragment.c();
|
229
|
-
t.intro &&
|
229
|
+
t.intro && Qr(e.$$.fragment), Jr(e, t.target, t.anchor), O();
|
230
230
|
}
|
231
|
-
|
231
|
+
se(h);
|
232
232
|
}
|
233
|
-
let
|
234
|
-
typeof HTMLElement == "function" && (
|
233
|
+
let Xt;
|
234
|
+
typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
235
235
|
/** The Svelte component constructor */
|
236
236
|
$$ctor;
|
237
237
|
/** Slots */
|
@@ -280,7 +280,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
280
280
|
* @param {HTMLElement} [anchor]
|
281
281
|
*/
|
282
282
|
m: function(h, l) {
|
283
|
-
|
283
|
+
$(h, o, l);
|
284
284
|
},
|
285
285
|
d: function(h) {
|
286
286
|
h && I(o);
|
@@ -290,7 +290,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
290
290
|
};
|
291
291
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
292
292
|
return;
|
293
|
-
const t = {}, r =
|
293
|
+
const t = {}, r = Fr(this);
|
294
294
|
for (const i of this.$$s)
|
295
295
|
i in r && (t[i] = [e(i)]);
|
296
296
|
for (const i of this.attributes) {
|
@@ -377,8 +377,8 @@ function pe(e, t, r, n) {
|
|
377
377
|
return t;
|
378
378
|
}
|
379
379
|
}
|
380
|
-
function
|
381
|
-
let s = class extends
|
380
|
+
function en(e, t, r, n, i, o) {
|
381
|
+
let s = class extends Xt {
|
382
382
|
constructor() {
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
384
384
|
}
|
@@ -406,7 +406,7 @@ function on(e, t, r, n, i, o) {
|
|
406
406
|
}), e.element = /** @type {any} */
|
407
407
|
s, s;
|
408
408
|
}
|
409
|
-
class
|
409
|
+
class tn {
|
410
410
|
/**
|
411
411
|
* ### PRIVATE API
|
412
412
|
*
|
@@ -425,7 +425,7 @@ class sn {
|
|
425
425
|
$$set = void 0;
|
426
426
|
/** @returns {void} */
|
427
427
|
$destroy() {
|
428
|
-
|
428
|
+
qr(this, 1), this.$destroy = A;
|
429
429
|
}
|
430
430
|
/**
|
431
431
|
* @template {Extract<keyof Events, string>} K
|
@@ -434,7 +434,7 @@ class sn {
|
|
434
434
|
* @returns {() => void}
|
435
435
|
*/
|
436
436
|
$on(t, r) {
|
437
|
-
if (!
|
437
|
+
if (!et(r))
|
438
438
|
return A;
|
439
439
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
440
440
|
return n.push(r), () => {
|
@@ -447,22 +447,22 @@ class sn {
|
|
447
447
|
* @returns {void}
|
448
448
|
*/
|
449
449
|
$set(t) {
|
450
|
-
this.$$set && !
|
450
|
+
this.$$set && !Nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
451
451
|
}
|
452
452
|
}
|
453
|
-
const
|
454
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
453
|
+
const rn = "4";
|
454
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rn);
|
455
455
|
const z = [];
|
456
|
-
function
|
456
|
+
function nn(e, t) {
|
457
457
|
return {
|
458
|
-
subscribe:
|
458
|
+
subscribe: Te(e, t).subscribe
|
459
459
|
};
|
460
460
|
}
|
461
|
-
function
|
461
|
+
function Te(e, t = A) {
|
462
462
|
let r;
|
463
463
|
const n = /* @__PURE__ */ new Set();
|
464
464
|
function i(a) {
|
465
|
-
if (
|
465
|
+
if (jt(e, a) && (e = a, r)) {
|
466
466
|
const h = !z.length;
|
467
467
|
for (const l of n)
|
468
468
|
l[1](), z.push(l, e);
|
@@ -484,12 +484,12 @@ function He(e, t = A) {
|
|
484
484
|
}
|
485
485
|
return { set: i, update: o, subscribe: s };
|
486
486
|
}
|
487
|
-
function
|
487
|
+
function re(e, t, r) {
|
488
488
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
489
489
|
if (!i.every(Boolean))
|
490
490
|
throw new Error("derived() expects stores as input, got a falsy value");
|
491
491
|
const o = t.length < 2;
|
492
|
-
return
|
492
|
+
return nn(r, (s, a) => {
|
493
493
|
let h = !1;
|
494
494
|
const l = [];
|
495
495
|
let u = 0, f = A;
|
@@ -498,9 +498,9 @@ function te(e, t, r) {
|
|
498
498
|
return;
|
499
499
|
f();
|
500
500
|
const m = t(n ? l[0] : l, s, a);
|
501
|
-
o ? s(m) : f =
|
501
|
+
o ? s(m) : f = et(m) ? m : A;
|
502
502
|
}, d = i.map(
|
503
|
-
(m, b) =>
|
503
|
+
(m, b) => kt(
|
504
504
|
m,
|
505
505
|
(g) => {
|
506
506
|
l[b] = g, u &= ~(1 << b), h && c();
|
@@ -511,112 +511,126 @@ function te(e, t, r) {
|
|
511
511
|
)
|
512
512
|
);
|
513
513
|
return h = !0, c(), function() {
|
514
|
-
|
514
|
+
te(d), f(), h = !1;
|
515
515
|
};
|
516
516
|
});
|
517
517
|
}
|
518
|
-
function
|
519
|
-
return e
|
518
|
+
function on(e) {
|
519
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
520
520
|
}
|
521
|
-
var
|
522
|
-
return
|
521
|
+
var sn = function(t) {
|
522
|
+
return an(t) && !un(t);
|
523
523
|
};
|
524
|
-
function
|
524
|
+
function an(e) {
|
525
525
|
return !!e && typeof e == "object";
|
526
526
|
}
|
527
|
-
function
|
527
|
+
function un(e) {
|
528
528
|
var t = Object.prototype.toString.call(e);
|
529
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
529
|
+
return t === "[object RegExp]" || t === "[object Date]" || cn(e);
|
530
530
|
}
|
531
|
-
var
|
532
|
-
function
|
533
|
-
return e.$$typeof ===
|
531
|
+
var ln = typeof Symbol == "function" && Symbol.for, hn = ln ? Symbol.for("react.element") : 60103;
|
532
|
+
function cn(e) {
|
533
|
+
return e.$$typeof === hn;
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function fn(e) {
|
536
536
|
return Array.isArray(e) ? [] : {};
|
537
537
|
}
|
538
|
-
function
|
539
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
538
|
+
function ue(e, t) {
|
539
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(fn(e), e, t) : e;
|
540
540
|
}
|
541
|
-
function
|
541
|
+
function dn(e, t, r) {
|
542
542
|
return e.concat(t).map(function(n) {
|
543
|
-
return
|
543
|
+
return ue(n, r);
|
544
544
|
});
|
545
545
|
}
|
546
|
-
function
|
546
|
+
function pn(e, t) {
|
547
547
|
if (!t.customMerge)
|
548
|
-
return
|
548
|
+
return q;
|
549
549
|
var r = t.customMerge(e);
|
550
|
-
return typeof r == "function" ? r :
|
550
|
+
return typeof r == "function" ? r : q;
|
551
551
|
}
|
552
|
-
function
|
552
|
+
function mn(e) {
|
553
553
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
554
554
|
return Object.propertyIsEnumerable.call(e, t);
|
555
555
|
}) : [];
|
556
556
|
}
|
557
|
-
function
|
558
|
-
return Object.keys(e).concat(
|
557
|
+
function dt(e) {
|
558
|
+
return Object.keys(e).concat(mn(e));
|
559
559
|
}
|
560
|
-
function
|
560
|
+
function Wt(e, t) {
|
561
561
|
try {
|
562
562
|
return t in e;
|
563
563
|
} catch {
|
564
564
|
return !1;
|
565
565
|
}
|
566
566
|
}
|
567
|
-
function
|
568
|
-
return
|
567
|
+
function bn(e, t) {
|
568
|
+
return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
569
569
|
}
|
570
|
-
function
|
570
|
+
function gn(e, t, r) {
|
571
571
|
var n = {};
|
572
|
-
return r.isMergeableObject(e) &&
|
573
|
-
n[i] =
|
574
|
-
}),
|
575
|
-
|
572
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
573
|
+
n[i] = ue(e[i], r);
|
574
|
+
}), dt(t).forEach(function(i) {
|
575
|
+
bn(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
576
576
|
}), n;
|
577
577
|
}
|
578
|
-
function
|
579
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
578
|
+
function q(e, t, r) {
|
579
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || dn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = ue;
|
580
580
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
581
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
581
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : ue(t, r);
|
582
582
|
}
|
583
|
-
|
583
|
+
q.all = function(t, r) {
|
584
584
|
if (!Array.isArray(t))
|
585
585
|
throw new Error("first argument should be an array");
|
586
586
|
return t.reduce(function(n, i) {
|
587
|
-
return
|
587
|
+
return q(n, i, r);
|
588
588
|
}, {});
|
589
589
|
};
|
590
|
-
var
|
591
|
-
const
|
592
|
-
|
593
|
-
|
590
|
+
var yn = q, vn = yn;
|
591
|
+
const _n = /* @__PURE__ */ on(vn);
|
592
|
+
/*! *****************************************************************************
|
593
|
+
Copyright (c) Microsoft Corporation.
|
594
|
+
|
595
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
596
|
+
purpose with or without fee is hereby granted.
|
597
|
+
|
598
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
599
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
600
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
601
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
602
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
603
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
604
|
+
PERFORMANCE OF THIS SOFTWARE.
|
605
|
+
***************************************************************************** */
|
606
|
+
var Fe = function(e, t) {
|
607
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
594
608
|
r.__proto__ = n;
|
595
609
|
} || function(r, n) {
|
596
610
|
for (var i in n)
|
597
611
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
598
|
-
},
|
612
|
+
}, Fe(e, t);
|
599
613
|
};
|
600
|
-
function
|
614
|
+
function U(e, t) {
|
601
615
|
if (typeof t != "function" && t !== null)
|
602
616
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
603
|
-
|
617
|
+
Fe(e, t);
|
604
618
|
function r() {
|
605
619
|
this.constructor = e;
|
606
620
|
}
|
607
621
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
608
622
|
}
|
609
|
-
var
|
610
|
-
return
|
623
|
+
var _ = function() {
|
624
|
+
return _ = Object.assign || function(t) {
|
611
625
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
612
626
|
r = arguments[n];
|
613
627
|
for (var o in r)
|
614
628
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
615
629
|
}
|
616
630
|
return t;
|
617
|
-
},
|
631
|
+
}, _.apply(this, arguments);
|
618
632
|
};
|
619
|
-
function
|
633
|
+
function xn(e, t) {
|
620
634
|
var r = {};
|
621
635
|
for (var n in e)
|
622
636
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -625,43 +639,78 @@ function Tn(e, t) {
|
|
625
639
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
626
640
|
return r;
|
627
641
|
}
|
628
|
-
function
|
642
|
+
function je(e) {
|
643
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
644
|
+
if (r)
|
645
|
+
return r.call(e);
|
646
|
+
if (e && typeof e.length == "number")
|
647
|
+
return {
|
648
|
+
next: function() {
|
649
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
650
|
+
}
|
651
|
+
};
|
652
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
653
|
+
}
|
654
|
+
function ke(e, t) {
|
655
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
656
|
+
if (!r)
|
657
|
+
return e;
|
658
|
+
var n = r.call(e), i, o = [], s;
|
659
|
+
try {
|
660
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
661
|
+
o.push(i.value);
|
662
|
+
} catch (a) {
|
663
|
+
s = { error: a };
|
664
|
+
} finally {
|
665
|
+
try {
|
666
|
+
i && !i.done && (r = n.return) && r.call(n);
|
667
|
+
} finally {
|
668
|
+
if (s)
|
669
|
+
throw s.error;
|
670
|
+
}
|
671
|
+
}
|
672
|
+
return o;
|
673
|
+
}
|
674
|
+
function J(e, t, r) {
|
629
675
|
if (r || arguments.length === 2)
|
630
676
|
for (var n = 0, i = t.length, o; n < i; n++)
|
631
677
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
632
|
-
return e.concat(o ||
|
678
|
+
return e.concat(o || t);
|
633
679
|
}
|
634
|
-
function
|
635
|
-
var r = t && t.cache ? t.cache :
|
680
|
+
function Ie(e, t) {
|
681
|
+
var r = t && t.cache ? t.cache : Pn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : Sn;
|
636
682
|
return i(e, {
|
637
683
|
cache: r,
|
638
684
|
serializer: n
|
639
685
|
});
|
640
686
|
}
|
641
|
-
function
|
687
|
+
function En(e) {
|
642
688
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
643
689
|
}
|
644
|
-
function
|
645
|
-
var i =
|
690
|
+
function zt(e, t, r, n) {
|
691
|
+
var i = En(n) ? n : r(n), o = t.get(i);
|
646
692
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
647
693
|
}
|
648
|
-
function
|
694
|
+
function Zt(e, t, r) {
|
649
695
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
650
696
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
651
697
|
}
|
652
|
-
function
|
698
|
+
function rt(e, t, r, n, i) {
|
653
699
|
return r.bind(t, e, n, i);
|
654
700
|
}
|
655
|
-
function
|
656
|
-
var r = e.length === 1 ?
|
657
|
-
return
|
701
|
+
function Sn(e, t) {
|
702
|
+
var r = e.length === 1 ? zt : Zt;
|
703
|
+
return rt(e, this, r, t.cache.create(), t.serializer);
|
658
704
|
}
|
659
|
-
function
|
660
|
-
return
|
705
|
+
function wn(e, t) {
|
706
|
+
return rt(e, this, Zt, t.cache.create(), t.serializer);
|
661
707
|
}
|
662
|
-
|
708
|
+
function Tn(e, t) {
|
709
|
+
return rt(e, this, zt, t.cache.create(), t.serializer);
|
710
|
+
}
|
711
|
+
var Hn = function() {
|
663
712
|
return JSON.stringify(arguments);
|
664
|
-
},
|
713
|
+
}, Cn = (
|
665
714
|
/** @class */
|
666
715
|
function() {
|
667
716
|
function e() {
|
@@ -673,71 +722,62 @@ var An = function() {
|
|
673
722
|
this.cache[t] = r;
|
674
723
|
}, e;
|
675
724
|
}()
|
676
|
-
),
|
725
|
+
), Pn = {
|
677
726
|
create: function() {
|
678
|
-
return new
|
727
|
+
return new Cn();
|
679
728
|
}
|
680
|
-
},
|
681
|
-
variadic:
|
682
|
-
|
683
|
-
|
684
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
685
|
-
r = arguments[n];
|
686
|
-
for (var o in r)
|
687
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
688
|
-
}
|
689
|
-
return t;
|
690
|
-
}, xe.apply(this, arguments);
|
691
|
-
};
|
692
|
-
var v;
|
729
|
+
}, Ne = {
|
730
|
+
variadic: wn,
|
731
|
+
monadic: Tn
|
732
|
+
}, y;
|
693
733
|
(function(e) {
|
694
734
|
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";
|
695
|
-
})(
|
696
|
-
var
|
735
|
+
})(y || (y = {}));
|
736
|
+
var w;
|
697
737
|
(function(e) {
|
698
738
|
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";
|
699
|
-
})(
|
700
|
-
var
|
739
|
+
})(w || (w = {}));
|
740
|
+
var Y;
|
701
741
|
(function(e) {
|
702
742
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
703
|
-
})(
|
704
|
-
function
|
705
|
-
return e.type ===
|
743
|
+
})(Y || (Y = {}));
|
744
|
+
function pt(e) {
|
745
|
+
return e.type === w.literal;
|
706
746
|
}
|
707
|
-
function
|
708
|
-
return e.type ===
|
747
|
+
function Bn(e) {
|
748
|
+
return e.type === w.argument;
|
709
749
|
}
|
710
|
-
function
|
711
|
-
return e.type ===
|
750
|
+
function Qt(e) {
|
751
|
+
return e.type === w.number;
|
712
752
|
}
|
713
|
-
function
|
714
|
-
return e.type ===
|
753
|
+
function Jt(e) {
|
754
|
+
return e.type === w.date;
|
715
755
|
}
|
716
|
-
function
|
717
|
-
return e.type ===
|
756
|
+
function qt(e) {
|
757
|
+
return e.type === w.time;
|
718
758
|
}
|
719
|
-
function
|
720
|
-
return e.type ===
|
759
|
+
function Yt(e) {
|
760
|
+
return e.type === w.select;
|
721
761
|
}
|
722
|
-
function
|
723
|
-
return e.type ===
|
762
|
+
function Kt(e) {
|
763
|
+
return e.type === w.plural;
|
724
764
|
}
|
725
|
-
function
|
726
|
-
return e.type ===
|
765
|
+
function An(e) {
|
766
|
+
return e.type === w.pound;
|
727
767
|
}
|
728
|
-
function
|
729
|
-
return e.type ===
|
768
|
+
function er(e) {
|
769
|
+
return e.type === w.tag;
|
730
770
|
}
|
731
|
-
function
|
732
|
-
return !!(e && typeof e == "object" && e.type ===
|
771
|
+
function tr(e) {
|
772
|
+
return !!(e && typeof e == "object" && e.type === Y.number);
|
733
773
|
}
|
734
|
-
function
|
735
|
-
return !!(e && typeof e == "object" && e.type ===
|
774
|
+
function Ve(e) {
|
775
|
+
return !!(e && typeof e == "object" && e.type === Y.dateTime);
|
736
776
|
}
|
737
|
-
var
|
738
|
-
function
|
777
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
778
|
+
function Ln(e) {
|
739
779
|
var t = {};
|
740
|
-
return e.replace(
|
780
|
+
return e.replace(On, function(r) {
|
741
781
|
var n = r.length;
|
742
782
|
switch (r[0]) {
|
743
783
|
case "G":
|
@@ -826,21 +866,11 @@ function Rn(e) {
|
|
826
866
|
return "";
|
827
867
|
}), t;
|
828
868
|
}
|
829
|
-
var
|
830
|
-
|
831
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
832
|
-
r = arguments[n];
|
833
|
-
for (var o in r)
|
834
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
835
|
-
}
|
836
|
-
return t;
|
837
|
-
}, w.apply(this, arguments);
|
838
|
-
};
|
839
|
-
var $n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
840
|
-
function Gn(e) {
|
869
|
+
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
870
|
+
function Nn(e) {
|
841
871
|
if (e.length === 0)
|
842
872
|
throw new Error("Number skeleton cannot be empty");
|
843
|
-
for (var t = e.split(
|
873
|
+
for (var t = e.split(In).filter(function(c) {
|
844
874
|
return c.length > 0;
|
845
875
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
846
876
|
var o = i[n], s = o.split("/");
|
@@ -855,17 +885,17 @@ function Gn(e) {
|
|
855
885
|
}
|
856
886
|
return r;
|
857
887
|
}
|
858
|
-
function
|
888
|
+
function Mn(e) {
|
859
889
|
return e.replace(/^(.*?)-/, "");
|
860
890
|
}
|
861
|
-
var
|
862
|
-
function
|
891
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Rn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
|
892
|
+
function bt(e) {
|
863
893
|
var t = {};
|
864
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
894
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
|
865
895
|
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)), "";
|
866
896
|
}), t;
|
867
897
|
}
|
868
|
-
function
|
898
|
+
function or(e) {
|
869
899
|
switch (e) {
|
870
900
|
case "sign-auto":
|
871
901
|
return {
|
@@ -905,7 +935,7 @@ function lr(e) {
|
|
905
935
|
};
|
906
936
|
}
|
907
937
|
}
|
908
|
-
function
|
938
|
+
function $n(e) {
|
909
939
|
var t;
|
910
940
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
911
941
|
notation: "engineering"
|
@@ -913,17 +943,17 @@ function Fn(e) {
|
|
913
943
|
notation: "scientific"
|
914
944
|
}, e = e.slice(1)), t) {
|
915
945
|
var r = e.slice(0, 2);
|
916
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
946
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
|
917
947
|
throw new Error("Malformed concise eng/scientific notation");
|
918
948
|
t.minimumIntegerDigits = e.length;
|
919
949
|
}
|
920
950
|
return t;
|
921
951
|
}
|
922
|
-
function
|
923
|
-
var t = {}, r =
|
952
|
+
function gt(e) {
|
953
|
+
var t = {}, r = or(e);
|
924
954
|
return r || t;
|
925
955
|
}
|
926
|
-
function
|
956
|
+
function Gn(e) {
|
927
957
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
928
958
|
var i = n[r];
|
929
959
|
switch (i.stem) {
|
@@ -947,7 +977,7 @@ function jn(e) {
|
|
947
977
|
continue;
|
948
978
|
case "measure-unit":
|
949
979
|
case "unit":
|
950
|
-
t.style = "unit", t.unit =
|
980
|
+
t.style = "unit", t.unit = Mn(i.options[0]);
|
951
981
|
continue;
|
952
982
|
case "compact-short":
|
953
983
|
case "K":
|
@@ -958,13 +988,13 @@ function jn(e) {
|
|
958
988
|
t.notation = "compact", t.compactDisplay = "long";
|
959
989
|
continue;
|
960
990
|
case "scientific":
|
961
|
-
t =
|
962
|
-
return
|
991
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
992
|
+
return _(_({}, h), gt(l));
|
963
993
|
}, {}));
|
964
994
|
continue;
|
965
995
|
case "engineering":
|
966
|
-
t =
|
967
|
-
return
|
996
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
997
|
+
return _(_({}, h), gt(l));
|
968
998
|
}, {}));
|
969
999
|
continue;
|
970
1000
|
case "notation-simple":
|
@@ -1009,7 +1039,7 @@ function jn(e) {
|
|
1009
1039
|
case "integer-width":
|
1010
1040
|
if (i.options.length > 1)
|
1011
1041
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1012
|
-
i.options[0].replace(
|
1042
|
+
i.options[0].replace(Rn, function(h, l, u, f, c, d) {
|
1013
1043
|
if (l)
|
1014
1044
|
t.minimumIntegerDigits = u.length;
|
1015
1045
|
else {
|
@@ -1022,28 +1052,28 @@ function jn(e) {
|
|
1022
1052
|
});
|
1023
1053
|
continue;
|
1024
1054
|
}
|
1025
|
-
if (
|
1055
|
+
if (ir.test(i.stem)) {
|
1026
1056
|
t.minimumIntegerDigits = i.stem.length;
|
1027
1057
|
continue;
|
1028
1058
|
}
|
1029
|
-
if (
|
1059
|
+
if (mt.test(i.stem)) {
|
1030
1060
|
if (i.options.length > 1)
|
1031
1061
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1032
|
-
i.stem.replace(
|
1062
|
+
i.stem.replace(mt, function(h, l, u, f, c, d) {
|
1033
1063
|
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1034
1064
|
});
|
1035
1065
|
var o = i.options[0];
|
1036
|
-
o === "w" ? t =
|
1066
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
|
1037
1067
|
continue;
|
1038
1068
|
}
|
1039
|
-
if (
|
1040
|
-
t =
|
1069
|
+
if (nr.test(i.stem)) {
|
1070
|
+
t = _(_({}, t), bt(i.stem));
|
1041
1071
|
continue;
|
1042
1072
|
}
|
1043
|
-
var s =
|
1044
|
-
s && (t =
|
1045
|
-
var a =
|
1046
|
-
a && (t =
|
1073
|
+
var s = or(i.stem);
|
1074
|
+
s && (t = _(_({}, t), s));
|
1075
|
+
var a = $n(i.stem);
|
1076
|
+
a && (t = _(_({}, t), a));
|
1047
1077
|
}
|
1048
1078
|
return t;
|
1049
1079
|
}
|
@@ -2462,13 +2492,13 @@ var fe = {
|
|
2462
2492
|
"h"
|
2463
2493
|
]
|
2464
2494
|
};
|
2465
|
-
function
|
2495
|
+
function Un(e, t) {
|
2466
2496
|
for (var r = "", n = 0; n < e.length; n++) {
|
2467
2497
|
var i = e.charAt(n);
|
2468
2498
|
if (i === "j") {
|
2469
2499
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2470
2500
|
o++, n++;
|
2471
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
2501
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Dn(t);
|
2472
2502
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2473
2503
|
r += h;
|
2474
2504
|
for (; s-- > 0; )
|
@@ -2478,7 +2508,7 @@ function kn(e, t) {
|
|
2478
2508
|
}
|
2479
2509
|
return r;
|
2480
2510
|
}
|
2481
|
-
function
|
2511
|
+
function Dn(e) {
|
2482
2512
|
var t = e.hourCycle;
|
2483
2513
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2484
2514
|
e.hourCycles && // @ts-ignore
|
@@ -2500,20 +2530,20 @@ function Vn(e) {
|
|
2500
2530
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
2501
2531
|
return i[0];
|
2502
2532
|
}
|
2503
|
-
var
|
2504
|
-
function
|
2533
|
+
var Me, Fn = new RegExp("^".concat(rr.source, "*")), jn = new RegExp("".concat(rr.source, "*$"));
|
2534
|
+
function v(e, t) {
|
2505
2535
|
return { start: e, end: t };
|
2506
2536
|
}
|
2507
|
-
var
|
2537
|
+
var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, Wn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
|
2508
2538
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2509
|
-
},
|
2539
|
+
}, Xe = !0;
|
2510
2540
|
try {
|
2511
|
-
var
|
2512
|
-
|
2541
|
+
var qn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2542
|
+
Xe = ((Me = qn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
2513
2543
|
} catch {
|
2514
|
-
|
2544
|
+
Xe = !1;
|
2515
2545
|
}
|
2516
|
-
var
|
2546
|
+
var yt = kn ? (
|
2517
2547
|
// Native
|
2518
2548
|
function(t, r, n) {
|
2519
2549
|
return t.startsWith(r, n);
|
@@ -2523,7 +2553,7 @@ var xt = zn ? (
|
|
2523
2553
|
function(t, r, n) {
|
2524
2554
|
return t.slice(n, n + r.length) === r;
|
2525
2555
|
}
|
2526
|
-
),
|
2556
|
+
), We = Vn ? String.fromCodePoint : (
|
2527
2557
|
// IE11
|
2528
2558
|
function() {
|
2529
2559
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2535,9 +2565,9 @@ var xt = zn ? (
|
|
2535
2565
|
}
|
2536
2566
|
return n;
|
2537
2567
|
}
|
2538
|
-
),
|
2568
|
+
), vt = (
|
2539
2569
|
// native
|
2540
|
-
|
2570
|
+
Xn ? Object.fromEntries : (
|
2541
2571
|
// Ponyfill
|
2542
2572
|
function(t) {
|
2543
2573
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2547,7 +2577,7 @@ var xt = zn ? (
|
|
2547
2577
|
return r;
|
2548
2578
|
}
|
2549
2579
|
)
|
2550
|
-
),
|
2580
|
+
), sr = Wn ? (
|
2551
2581
|
// Native
|
2552
2582
|
function(t, r) {
|
2553
2583
|
return t.codePointAt(r);
|
@@ -2561,7 +2591,7 @@ var xt = zn ? (
|
|
2561
2591
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2562
2592
|
}
|
2563
2593
|
}
|
2564
|
-
),
|
2594
|
+
), Yn = zn ? (
|
2565
2595
|
// Native
|
2566
2596
|
function(t) {
|
2567
2597
|
return t.trimStart();
|
@@ -2569,9 +2599,9 @@ var xt = zn ? (
|
|
2569
2599
|
) : (
|
2570
2600
|
// Ponyfill
|
2571
2601
|
function(t) {
|
2572
|
-
return t.replace(
|
2602
|
+
return t.replace(Fn, "");
|
2573
2603
|
}
|
2574
|
-
),
|
2604
|
+
), Kn = Zn ? (
|
2575
2605
|
// Native
|
2576
2606
|
function(t) {
|
2577
2607
|
return t.trimEnd();
|
@@ -2579,32 +2609,32 @@ var xt = zn ? (
|
|
2579
2609
|
) : (
|
2580
2610
|
// Ponyfill
|
2581
2611
|
function(t) {
|
2582
|
-
return t.replace(
|
2612
|
+
return t.replace(jn, "");
|
2583
2613
|
}
|
2584
2614
|
);
|
2585
|
-
function
|
2615
|
+
function ar(e, t) {
|
2586
2616
|
return new RegExp(e, t);
|
2587
2617
|
}
|
2588
|
-
var
|
2589
|
-
if (
|
2590
|
-
var
|
2591
|
-
|
2618
|
+
var ze;
|
2619
|
+
if (Xe) {
|
2620
|
+
var _t = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2621
|
+
ze = function(t, r) {
|
2592
2622
|
var n;
|
2593
|
-
|
2594
|
-
var i =
|
2623
|
+
_t.lastIndex = r;
|
2624
|
+
var i = _t.exec(t);
|
2595
2625
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2596
2626
|
};
|
2597
2627
|
} else
|
2598
|
-
|
2628
|
+
ze = function(t, r) {
|
2599
2629
|
for (var n = []; ; ) {
|
2600
|
-
var i =
|
2601
|
-
if (i === void 0 ||
|
2630
|
+
var i = sr(t, r);
|
2631
|
+
if (i === void 0 || ur(i) || ni(i))
|
2602
2632
|
break;
|
2603
2633
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2604
2634
|
}
|
2605
|
-
return
|
2635
|
+
return We.apply(void 0, n);
|
2606
2636
|
};
|
2607
|
-
var
|
2637
|
+
var ei = (
|
2608
2638
|
/** @class */
|
2609
2639
|
function() {
|
2610
2640
|
function e(t, r) {
|
@@ -2628,14 +2658,14 @@ var ii = (
|
|
2628
2658
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2629
2659
|
var a = this.clonePosition();
|
2630
2660
|
this.bump(), i.push({
|
2631
|
-
type:
|
2632
|
-
location:
|
2661
|
+
type: w.pound,
|
2662
|
+
location: v(a, this.clonePosition())
|
2633
2663
|
});
|
2634
2664
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2635
2665
|
if (n)
|
2636
2666
|
break;
|
2637
|
-
return this.error(
|
2638
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2667
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2668
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
2639
2669
|
var s = this.parseTag(t, r);
|
2640
2670
|
if (s.err)
|
2641
2671
|
return s;
|
@@ -2656,9 +2686,9 @@ var ii = (
|
|
2656
2686
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2657
2687
|
return {
|
2658
2688
|
val: {
|
2659
|
-
type:
|
2689
|
+
type: w.literal,
|
2660
2690
|
value: "<".concat(i, "/>"),
|
2661
|
-
location:
|
2691
|
+
location: v(n, this.clonePosition())
|
2662
2692
|
},
|
2663
2693
|
err: null
|
2664
2694
|
};
|
@@ -2668,25 +2698,25 @@ var ii = (
|
|
2668
2698
|
return o;
|
2669
2699
|
var s = o.val, a = this.clonePosition();
|
2670
2700
|
if (this.bumpIf("</")) {
|
2671
|
-
if (this.isEOF() || !
|
2672
|
-
return this.error(
|
2701
|
+
if (this.isEOF() || !Ze(this.char()))
|
2702
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2673
2703
|
var h = this.clonePosition(), l = this.parseTagName();
|
2674
|
-
return i !== l ? this.error(
|
2704
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2675
2705
|
val: {
|
2676
|
-
type:
|
2706
|
+
type: w.tag,
|
2677
2707
|
value: i,
|
2678
2708
|
children: s,
|
2679
|
-
location:
|
2709
|
+
location: v(n, this.clonePosition())
|
2680
2710
|
},
|
2681
2711
|
err: null
|
2682
|
-
} : this.error(
|
2712
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
2683
2713
|
} else
|
2684
|
-
return this.error(
|
2714
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
2685
2715
|
} else
|
2686
|
-
return this.error(
|
2716
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2687
2717
|
}, e.prototype.parseTagName = function() {
|
2688
2718
|
var t = this.offset();
|
2689
|
-
for (this.bump(); !this.isEOF() &&
|
2719
|
+
for (this.bump(); !this.isEOF() && ri(this.char()); )
|
2690
2720
|
this.bump();
|
2691
2721
|
return this.message.slice(t, this.offset());
|
2692
2722
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2708,14 +2738,14 @@ var ii = (
|
|
2708
2738
|
}
|
2709
2739
|
break;
|
2710
2740
|
}
|
2711
|
-
var h =
|
2741
|
+
var h = v(n, this.clonePosition());
|
2712
2742
|
return {
|
2713
|
-
val: { type:
|
2743
|
+
val: { type: w.literal, value: i, location: h },
|
2714
2744
|
err: null
|
2715
2745
|
};
|
2716
2746
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2717
2747
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2718
|
-
!
|
2748
|
+
!ti(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2719
2749
|
}, e.prototype.tryParseQuote = function(t) {
|
2720
2750
|
if (this.isEOF() || this.char() !== 39)
|
2721
2751
|
return null;
|
@@ -2749,49 +2779,49 @@ var ii = (
|
|
2749
2779
|
r.push(n);
|
2750
2780
|
this.bump();
|
2751
2781
|
}
|
2752
|
-
return
|
2782
|
+
return We.apply(void 0, r);
|
2753
2783
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2754
2784
|
if (this.isEOF())
|
2755
2785
|
return null;
|
2756
2786
|
var n = this.char();
|
2757
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2787
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
2758
2788
|
}, e.prototype.parseArgument = function(t, r) {
|
2759
2789
|
var n = this.clonePosition();
|
2760
2790
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2761
|
-
return this.error(
|
2791
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
2762
2792
|
if (this.char() === 125)
|
2763
|
-
return this.bump(), this.error(
|
2793
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
2764
2794
|
var i = this.parseIdentifierIfPossible().value;
|
2765
2795
|
if (!i)
|
2766
|
-
return this.error(
|
2796
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2767
2797
|
if (this.bumpSpace(), this.isEOF())
|
2768
|
-
return this.error(
|
2798
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
2769
2799
|
switch (this.char()) {
|
2770
2800
|
case 125:
|
2771
2801
|
return this.bump(), {
|
2772
2802
|
val: {
|
2773
|
-
type:
|
2803
|
+
type: w.argument,
|
2774
2804
|
// value does not include the opening and closing braces.
|
2775
2805
|
value: i,
|
2776
|
-
location:
|
2806
|
+
location: v(n, this.clonePosition())
|
2777
2807
|
},
|
2778
2808
|
err: null
|
2779
2809
|
};
|
2780
2810
|
case 44:
|
2781
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
2811
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2782
2812
|
default:
|
2783
|
-
return this.error(
|
2813
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2784
2814
|
}
|
2785
2815
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2786
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2816
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
2787
2817
|
this.bumpTo(i);
|
2788
|
-
var o = this.clonePosition(), s =
|
2818
|
+
var o = this.clonePosition(), s = v(t, o);
|
2789
2819
|
return { value: n, location: s };
|
2790
2820
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2791
2821
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2792
2822
|
switch (a) {
|
2793
2823
|
case "":
|
2794
|
-
return this.error(
|
2824
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, h));
|
2795
2825
|
case "number":
|
2796
2826
|
case "date":
|
2797
2827
|
case "time": {
|
@@ -2802,44 +2832,44 @@ var ii = (
|
|
2802
2832
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2803
2833
|
if (f.err)
|
2804
2834
|
return f;
|
2805
|
-
var c =
|
2835
|
+
var c = Kn(f.val);
|
2806
2836
|
if (c.length === 0)
|
2807
|
-
return this.error(
|
2808
|
-
var d =
|
2837
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2838
|
+
var d = v(u, this.clonePosition());
|
2809
2839
|
l = { style: c, styleLocation: d };
|
2810
2840
|
}
|
2811
2841
|
var m = this.tryParseArgumentClose(i);
|
2812
2842
|
if (m.err)
|
2813
2843
|
return m;
|
2814
|
-
var b =
|
2815
|
-
if (l &&
|
2816
|
-
var g =
|
2844
|
+
var b = v(i, this.clonePosition());
|
2845
|
+
if (l && yt(l?.style, "::", 0)) {
|
2846
|
+
var g = Yn(l.style.slice(2));
|
2817
2847
|
if (a === "number") {
|
2818
2848
|
var f = this.parseNumberSkeletonFromString(g, l.styleLocation);
|
2819
2849
|
return f.err ? f : {
|
2820
|
-
val: { type:
|
2850
|
+
val: { type: w.number, value: n, location: b, style: f.val },
|
2821
2851
|
err: null
|
2822
2852
|
};
|
2823
2853
|
} else {
|
2824
2854
|
if (g.length === 0)
|
2825
|
-
return this.error(
|
2826
|
-
var
|
2827
|
-
this.locale && (
|
2855
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2856
|
+
var S = g;
|
2857
|
+
this.locale && (S = Un(g, this.locale));
|
2828
2858
|
var c = {
|
2829
|
-
type:
|
2830
|
-
pattern:
|
2859
|
+
type: Y.dateTime,
|
2860
|
+
pattern: S,
|
2831
2861
|
location: l.styleLocation,
|
2832
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2833
|
-
},
|
2862
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(S) : {}
|
2863
|
+
}, x = a === "date" ? w.date : w.time;
|
2834
2864
|
return {
|
2835
|
-
val: { type:
|
2865
|
+
val: { type: x, value: n, location: b, style: c },
|
2836
2866
|
err: null
|
2837
2867
|
};
|
2838
2868
|
}
|
2839
2869
|
}
|
2840
2870
|
return {
|
2841
2871
|
val: {
|
2842
|
-
type: a === "number" ?
|
2872
|
+
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
2843
2873
|
value: n,
|
2844
2874
|
location: b,
|
2845
2875
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
@@ -2852,14 +2882,14 @@ var ii = (
|
|
2852
2882
|
case "select": {
|
2853
2883
|
var T = this.clonePosition();
|
2854
2884
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2855
|
-
return this.error(
|
2885
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, _({}, T)));
|
2856
2886
|
this.bumpSpace();
|
2857
2887
|
var D = this.parseIdentifierIfPossible(), L = 0;
|
2858
2888
|
if (a !== "select" && D.value === "offset") {
|
2859
2889
|
if (!this.bumpIf(":"))
|
2860
|
-
return this.error(
|
2890
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
2861
2891
|
this.bumpSpace();
|
2862
|
-
var f = this.tryParseDecimalInteger(
|
2892
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2863
2893
|
if (f.err)
|
2864
2894
|
return f;
|
2865
2895
|
this.bumpSpace(), D = this.parseIdentifierIfPossible(), L = f.val;
|
@@ -2870,20 +2900,20 @@ var ii = (
|
|
2870
2900
|
var m = this.tryParseArgumentClose(i);
|
2871
2901
|
if (m.err)
|
2872
2902
|
return m;
|
2873
|
-
var X =
|
2903
|
+
var X = v(i, this.clonePosition());
|
2874
2904
|
return a === "select" ? {
|
2875
2905
|
val: {
|
2876
|
-
type:
|
2906
|
+
type: w.select,
|
2877
2907
|
value: n,
|
2878
|
-
options:
|
2908
|
+
options: vt(j.val),
|
2879
2909
|
location: X
|
2880
2910
|
},
|
2881
2911
|
err: null
|
2882
2912
|
} : {
|
2883
2913
|
val: {
|
2884
|
-
type:
|
2914
|
+
type: w.plural,
|
2885
2915
|
value: n,
|
2886
|
-
options:
|
2916
|
+
options: vt(j.val),
|
2887
2917
|
offset: L,
|
2888
2918
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2889
2919
|
location: X
|
@@ -2892,10 +2922,10 @@ var ii = (
|
|
2892
2922
|
};
|
2893
2923
|
}
|
2894
2924
|
default:
|
2895
|
-
return this.error(
|
2925
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, h));
|
2896
2926
|
}
|
2897
2927
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2898
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
2928
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2899
2929
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2900
2930
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2901
2931
|
var n = this.char();
|
@@ -2904,7 +2934,7 @@ var ii = (
|
|
2904
2934
|
this.bump();
|
2905
2935
|
var i = this.clonePosition();
|
2906
2936
|
if (!this.bumpUntil("'"))
|
2907
|
-
return this.error(
|
2937
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
2908
2938
|
this.bump();
|
2909
2939
|
break;
|
2910
2940
|
}
|
@@ -2934,16 +2964,16 @@ var ii = (
|
|
2934
2964
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2935
2965
|
var n = [];
|
2936
2966
|
try {
|
2937
|
-
n =
|
2967
|
+
n = Nn(t);
|
2938
2968
|
} catch {
|
2939
|
-
return this.error(
|
2969
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2940
2970
|
}
|
2941
2971
|
return {
|
2942
2972
|
val: {
|
2943
|
-
type:
|
2973
|
+
type: Y.number,
|
2944
2974
|
tokens: n,
|
2945
2975
|
location: r,
|
2946
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2976
|
+
parsedOptions: this.shouldParseSkeletons ? Gn(n) : {}
|
2947
2977
|
},
|
2948
2978
|
err: null
|
2949
2979
|
};
|
@@ -2952,19 +2982,19 @@ var ii = (
|
|
2952
2982
|
if (l.length === 0) {
|
2953
2983
|
var f = this.clonePosition();
|
2954
2984
|
if (r !== "select" && this.bumpIf("=")) {
|
2955
|
-
var c = this.tryParseDecimalInteger(
|
2985
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2956
2986
|
if (c.err)
|
2957
2987
|
return c;
|
2958
|
-
u =
|
2988
|
+
u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
2959
2989
|
} else
|
2960
2990
|
break;
|
2961
2991
|
}
|
2962
2992
|
if (h.has(l))
|
2963
|
-
return this.error(r === "select" ?
|
2993
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
2964
2994
|
l === "other" && (s = !0), this.bumpSpace();
|
2965
2995
|
var d = this.clonePosition();
|
2966
2996
|
if (!this.bumpIf("{"))
|
2967
|
-
return this.error(r === "select" ?
|
2997
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
2968
2998
|
var m = this.parseMessage(t + 1, r, n);
|
2969
2999
|
if (m.err)
|
2970
3000
|
return m;
|
@@ -2975,11 +3005,11 @@ var ii = (
|
|
2975
3005
|
l,
|
2976
3006
|
{
|
2977
3007
|
value: m.val,
|
2978
|
-
location:
|
3008
|
+
location: v(d, this.clonePosition())
|
2979
3009
|
}
|
2980
3010
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
2981
3011
|
}
|
2982
|
-
return a.length === 0 ? this.error(r === "select" ?
|
3012
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
2983
3013
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2984
3014
|
var n = 1, i = this.clonePosition();
|
2985
3015
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2990,8 +3020,8 @@ var ii = (
|
|
2990
3020
|
else
|
2991
3021
|
break;
|
2992
3022
|
}
|
2993
|
-
var h =
|
2994
|
-
return o ? (s *= n,
|
3023
|
+
var h = v(i, this.clonePosition());
|
3024
|
+
return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
2995
3025
|
}, e.prototype.offset = function() {
|
2996
3026
|
return this.position.offset;
|
2997
3027
|
}, e.prototype.isEOF = function() {
|
@@ -3006,7 +3036,7 @@ var ii = (
|
|
3006
3036
|
var t = this.position.offset;
|
3007
3037
|
if (t >= this.message.length)
|
3008
3038
|
throw Error("out of bound");
|
3009
|
-
var r =
|
3039
|
+
var r = sr(this.message, t);
|
3010
3040
|
if (r === void 0)
|
3011
3041
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3012
3042
|
return r;
|
@@ -3025,7 +3055,7 @@ var ii = (
|
|
3025
3055
|
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);
|
3026
3056
|
}
|
3027
3057
|
}, e.prototype.bumpIf = function(t) {
|
3028
|
-
if (
|
3058
|
+
if (yt(this.message, t, this.offset())) {
|
3029
3059
|
for (var r = 0; r < t.length; r++)
|
3030
3060
|
this.bump();
|
3031
3061
|
return !0;
|
@@ -3047,7 +3077,7 @@ var ii = (
|
|
3047
3077
|
break;
|
3048
3078
|
}
|
3049
3079
|
}, e.prototype.bumpSpace = function() {
|
3050
|
-
for (; !this.isEOF() &&
|
3080
|
+
for (; !this.isEOF() && ur(this.char()); )
|
3051
3081
|
this.bump();
|
3052
3082
|
}, e.prototype.peek = function() {
|
3053
3083
|
if (this.isEOF())
|
@@ -3057,47 +3087,47 @@ var ii = (
|
|
3057
3087
|
}, e;
|
3058
3088
|
}()
|
3059
3089
|
);
|
3060
|
-
function
|
3090
|
+
function Ze(e) {
|
3061
3091
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3062
3092
|
}
|
3063
|
-
function
|
3064
|
-
return
|
3093
|
+
function ti(e) {
|
3094
|
+
return Ze(e) || e === 47;
|
3065
3095
|
}
|
3066
|
-
function
|
3096
|
+
function ri(e) {
|
3067
3097
|
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;
|
3068
3098
|
}
|
3069
|
-
function
|
3099
|
+
function ur(e) {
|
3070
3100
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3071
3101
|
}
|
3072
|
-
function
|
3102
|
+
function ni(e) {
|
3073
3103
|
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;
|
3074
3104
|
}
|
3075
|
-
function
|
3105
|
+
function Qe(e) {
|
3076
3106
|
e.forEach(function(t) {
|
3077
|
-
if (delete t.location,
|
3107
|
+
if (delete t.location, Yt(t) || Kt(t))
|
3078
3108
|
for (var r in t.options)
|
3079
|
-
delete t.options[r].location,
|
3109
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
3080
3110
|
else
|
3081
|
-
|
3111
|
+
Qt(t) && tr(t.style) || (Jt(t) || qt(t)) && Ve(t.style) ? delete t.style.location : er(t) && Qe(t.children);
|
3082
3112
|
});
|
3083
3113
|
}
|
3084
|
-
function
|
3085
|
-
t === void 0 && (t = {}), t =
|
3086
|
-
var r = new
|
3114
|
+
function ii(e, t) {
|
3115
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3116
|
+
var r = new ei(e, t).parse();
|
3087
3117
|
if (r.err) {
|
3088
|
-
var n = SyntaxError(
|
3118
|
+
var n = SyntaxError(y[r.err.kind]);
|
3089
3119
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3090
3120
|
}
|
3091
|
-
return t?.captureLocation ||
|
3121
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
3092
3122
|
}
|
3093
|
-
var
|
3123
|
+
var K;
|
3094
3124
|
(function(e) {
|
3095
3125
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3096
|
-
})(
|
3097
|
-
var
|
3126
|
+
})(K || (K = {}));
|
3127
|
+
var He = (
|
3098
3128
|
/** @class */
|
3099
3129
|
function(e) {
|
3100
|
-
|
3130
|
+
U(t, e);
|
3101
3131
|
function t(r, n, i) {
|
3102
3132
|
var o = e.call(this, r) || this;
|
3103
3133
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3106,48 +3136,48 @@ var Pe = (
|
|
3106
3136
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3107
3137
|
}, t;
|
3108
3138
|
}(Error)
|
3109
|
-
),
|
3139
|
+
), xt = (
|
3110
3140
|
/** @class */
|
3111
3141
|
function(e) {
|
3112
|
-
|
3142
|
+
U(t, e);
|
3113
3143
|
function t(r, n, i, o) {
|
3114
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3144
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
|
3115
3145
|
}
|
3116
3146
|
return t;
|
3117
|
-
}(
|
3118
|
-
),
|
3147
|
+
}(He)
|
3148
|
+
), oi = (
|
3119
3149
|
/** @class */
|
3120
3150
|
function(e) {
|
3121
|
-
|
3151
|
+
U(t, e);
|
3122
3152
|
function t(r, n, i) {
|
3123
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3153
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
|
3124
3154
|
}
|
3125
3155
|
return t;
|
3126
|
-
}(
|
3127
|
-
),
|
3156
|
+
}(He)
|
3157
|
+
), si = (
|
3128
3158
|
/** @class */
|
3129
3159
|
function(e) {
|
3130
|
-
|
3160
|
+
U(t, e);
|
3131
3161
|
function t(r, n) {
|
3132
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3162
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
|
3133
3163
|
}
|
3134
3164
|
return t;
|
3135
|
-
}(
|
3165
|
+
}(He)
|
3136
3166
|
), B;
|
3137
3167
|
(function(e) {
|
3138
3168
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3139
3169
|
})(B || (B = {}));
|
3140
|
-
function
|
3170
|
+
function ai(e) {
|
3141
3171
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3142
3172
|
var n = t[t.length - 1];
|
3143
3173
|
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
3144
3174
|
}, []);
|
3145
3175
|
}
|
3146
|
-
function
|
3176
|
+
function ui(e) {
|
3147
3177
|
return typeof e == "function";
|
3148
3178
|
}
|
3149
3179
|
function me(e, t, r, n, i, o, s) {
|
3150
|
-
if (e.length === 1 &&
|
3180
|
+
if (e.length === 1 && pt(e[0]))
|
3151
3181
|
return [
|
3152
3182
|
{
|
3153
3183
|
type: B.literal,
|
@@ -3156,14 +3186,14 @@ function me(e, t, r, n, i, o, s) {
|
|
3156
3186
|
];
|
3157
3187
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3158
3188
|
var u = l[h];
|
3159
|
-
if (
|
3189
|
+
if (pt(u)) {
|
3160
3190
|
a.push({
|
3161
3191
|
type: B.literal,
|
3162
3192
|
value: u.value
|
3163
3193
|
});
|
3164
3194
|
continue;
|
3165
3195
|
}
|
3166
|
-
if (
|
3196
|
+
if (An(u)) {
|
3167
3197
|
typeof o == "number" && a.push({
|
3168
3198
|
type: B.literal,
|
3169
3199
|
value: r.getNumberFormat(t).format(o)
|
@@ -3172,89 +3202,89 @@ function me(e, t, r, n, i, o, s) {
|
|
3172
3202
|
}
|
3173
3203
|
var f = u.value;
|
3174
3204
|
if (!(i && f in i))
|
3175
|
-
throw new
|
3205
|
+
throw new si(f, s);
|
3176
3206
|
var c = i[f];
|
3177
|
-
if (
|
3207
|
+
if (Bn(u)) {
|
3178
3208
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3179
3209
|
type: typeof c == "string" ? B.literal : B.object,
|
3180
3210
|
value: c
|
3181
3211
|
});
|
3182
3212
|
continue;
|
3183
3213
|
}
|
3184
|
-
if (
|
3185
|
-
var d = typeof u.style == "string" ? n.date[u.style] :
|
3214
|
+
if (Jt(u)) {
|
3215
|
+
var d = typeof u.style == "string" ? n.date[u.style] : Ve(u.style) ? u.style.parsedOptions : void 0;
|
3186
3216
|
a.push({
|
3187
3217
|
type: B.literal,
|
3188
3218
|
value: r.getDateTimeFormat(t, d).format(c)
|
3189
3219
|
});
|
3190
3220
|
continue;
|
3191
3221
|
}
|
3192
|
-
if (
|
3193
|
-
var d = typeof u.style == "string" ? n.time[u.style] :
|
3222
|
+
if (qt(u)) {
|
3223
|
+
var d = typeof u.style == "string" ? n.time[u.style] : Ve(u.style) ? u.style.parsedOptions : n.time.medium;
|
3194
3224
|
a.push({
|
3195
3225
|
type: B.literal,
|
3196
3226
|
value: r.getDateTimeFormat(t, d).format(c)
|
3197
3227
|
});
|
3198
3228
|
continue;
|
3199
3229
|
}
|
3200
|
-
if (
|
3201
|
-
var d = typeof u.style == "string" ? n.number[u.style] :
|
3230
|
+
if (Qt(u)) {
|
3231
|
+
var d = typeof u.style == "string" ? n.number[u.style] : tr(u.style) ? u.style.parsedOptions : void 0;
|
3202
3232
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3203
3233
|
type: B.literal,
|
3204
3234
|
value: r.getNumberFormat(t, d).format(c)
|
3205
3235
|
});
|
3206
3236
|
continue;
|
3207
3237
|
}
|
3208
|
-
if (
|
3238
|
+
if (er(u)) {
|
3209
3239
|
var m = u.children, b = u.value, g = i[b];
|
3210
|
-
if (!
|
3211
|
-
throw new
|
3212
|
-
var
|
3240
|
+
if (!ui(g))
|
3241
|
+
throw new oi(b, "function", s);
|
3242
|
+
var S = me(m, t, r, n, i, o), x = g(S.map(function(L) {
|
3213
3243
|
return L.value;
|
3214
3244
|
}));
|
3215
|
-
Array.isArray(
|
3245
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(L) {
|
3216
3246
|
return {
|
3217
3247
|
type: typeof L == "string" ? B.literal : B.object,
|
3218
3248
|
value: L
|
3219
3249
|
};
|
3220
3250
|
}));
|
3221
3251
|
}
|
3222
|
-
if (
|
3252
|
+
if (Yt(u)) {
|
3223
3253
|
var T = u.options[c] || u.options.other;
|
3224
3254
|
if (!T)
|
3225
|
-
throw new
|
3255
|
+
throw new xt(u.value, c, Object.keys(u.options), s);
|
3226
3256
|
a.push.apply(a, me(T.value, t, r, n, i));
|
3227
3257
|
continue;
|
3228
3258
|
}
|
3229
|
-
if (
|
3259
|
+
if (Kt(u)) {
|
3230
3260
|
var T = u.options["=".concat(c)];
|
3231
3261
|
if (!T) {
|
3232
3262
|
if (!Intl.PluralRules)
|
3233
|
-
throw new
|
3263
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
3234
3264
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3235
|
-
`,
|
3265
|
+
`, K.MISSING_INTL_API, s);
|
3236
3266
|
var D = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3237
3267
|
T = u.options[D] || u.options.other;
|
3238
3268
|
}
|
3239
3269
|
if (!T)
|
3240
|
-
throw new
|
3270
|
+
throw new xt(u.value, c, Object.keys(u.options), s);
|
3241
3271
|
a.push.apply(a, me(T.value, t, r, n, i, c - (u.offset || 0)));
|
3242
3272
|
continue;
|
3243
3273
|
}
|
3244
3274
|
}
|
3245
|
-
return
|
3275
|
+
return ai(a);
|
3246
3276
|
}
|
3247
|
-
function
|
3248
|
-
return t ?
|
3249
|
-
return r[n] =
|
3277
|
+
function li(e, t) {
|
3278
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3279
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3250
3280
|
}, {})) : e;
|
3251
3281
|
}
|
3252
|
-
function
|
3282
|
+
function hi(e, t) {
|
3253
3283
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3254
|
-
return r[n] =
|
3255
|
-
},
|
3284
|
+
return r[n] = li(e[n], t[n]), r;
|
3285
|
+
}, _({}, e)) : e;
|
3256
3286
|
}
|
3257
|
-
function
|
3287
|
+
function Re(e) {
|
3258
3288
|
return {
|
3259
3289
|
create: function() {
|
3260
3290
|
return {
|
@@ -3268,39 +3298,39 @@ function Ue(e) {
|
|
3268
3298
|
}
|
3269
3299
|
};
|
3270
3300
|
}
|
3271
|
-
function
|
3301
|
+
function ci(e) {
|
3272
3302
|
return e === void 0 && (e = {
|
3273
3303
|
number: {},
|
3274
3304
|
dateTime: {},
|
3275
3305
|
pluralRules: {}
|
3276
3306
|
}), {
|
3277
|
-
getNumberFormat:
|
3307
|
+
getNumberFormat: Ie(function() {
|
3278
3308
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3279
3309
|
r[n] = arguments[n];
|
3280
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3310
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
|
3281
3311
|
}, {
|
3282
|
-
cache:
|
3283
|
-
strategy:
|
3312
|
+
cache: Re(e.number),
|
3313
|
+
strategy: Ne.variadic
|
3284
3314
|
}),
|
3285
|
-
getDateTimeFormat:
|
3315
|
+
getDateTimeFormat: Ie(function() {
|
3286
3316
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3287
3317
|
r[n] = arguments[n];
|
3288
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3318
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
|
3289
3319
|
}, {
|
3290
|
-
cache:
|
3291
|
-
strategy:
|
3320
|
+
cache: Re(e.dateTime),
|
3321
|
+
strategy: Ne.variadic
|
3292
3322
|
}),
|
3293
|
-
getPluralRules:
|
3323
|
+
getPluralRules: Ie(function() {
|
3294
3324
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3295
3325
|
r[n] = arguments[n];
|
3296
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3326
|
+
return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
|
3297
3327
|
}, {
|
3298
|
-
cache:
|
3299
|
-
strategy:
|
3328
|
+
cache: Re(e.pluralRules),
|
3329
|
+
strategy: Ne.variadic
|
3300
3330
|
})
|
3301
3331
|
};
|
3302
3332
|
}
|
3303
|
-
var
|
3333
|
+
var fi = (
|
3304
3334
|
/** @class */
|
3305
3335
|
function() {
|
3306
3336
|
function e(t, r, n, i) {
|
@@ -3332,13 +3362,13 @@ var bi = (
|
|
3332
3362
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3333
3363
|
var s = i || {};
|
3334
3364
|
s.formatters;
|
3335
|
-
var a =
|
3336
|
-
this.ast = e.__parse(t,
|
3365
|
+
var a = xn(s, ["formatters"]);
|
3366
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3337
3367
|
} else
|
3338
3368
|
this.ast = t;
|
3339
3369
|
if (!Array.isArray(this.ast))
|
3340
3370
|
throw new TypeError("A message must be provided as a String or AST.");
|
3341
|
-
this.formats =
|
3371
|
+
this.formats = hi(e.formats, n), this.formatters = i && i.formatters || ci(this.formatterCache);
|
3342
3372
|
}
|
3343
3373
|
return Object.defineProperty(e, "defaultLocale", {
|
3344
3374
|
get: function() {
|
@@ -3351,7 +3381,7 @@ var bi = (
|
|
3351
3381
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3352
3382
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3353
3383
|
}
|
3354
|
-
}, e.__parse =
|
3384
|
+
}, e.__parse = ii, e.formats = {
|
3355
3385
|
number: {
|
3356
3386
|
integer: {
|
3357
3387
|
maximumFractionDigits: 0
|
@@ -3412,7 +3442,7 @@ var bi = (
|
|
3412
3442
|
}, e;
|
3413
3443
|
}()
|
3414
3444
|
);
|
3415
|
-
function
|
3445
|
+
function di(e, t) {
|
3416
3446
|
if (t == null)
|
3417
3447
|
return;
|
3418
3448
|
if (t in e)
|
@@ -3433,92 +3463,92 @@ function gi(e, t) {
|
|
3433
3463
|
n = void 0;
|
3434
3464
|
return n;
|
3435
3465
|
}
|
3436
|
-
const F = {},
|
3466
|
+
const F = {}, pi = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), lr = (e, t) => {
|
3437
3467
|
if (t == null)
|
3438
3468
|
return;
|
3439
3469
|
if (t in F && e in F[t])
|
3440
3470
|
return F[t][e];
|
3441
|
-
const r =
|
3471
|
+
const r = Ce(t);
|
3442
3472
|
for (let n = 0; n < r.length; n++) {
|
3443
|
-
const i = r[n], o =
|
3473
|
+
const i = r[n], o = bi(i, e);
|
3444
3474
|
if (o)
|
3445
|
-
return
|
3475
|
+
return pi(e, t, o);
|
3446
3476
|
}
|
3447
3477
|
};
|
3448
|
-
let
|
3449
|
-
const
|
3450
|
-
function
|
3451
|
-
return
|
3478
|
+
let nt;
|
3479
|
+
const he = Te({});
|
3480
|
+
function mi(e) {
|
3481
|
+
return nt[e] || null;
|
3452
3482
|
}
|
3453
|
-
function
|
3454
|
-
return e in
|
3483
|
+
function hr(e) {
|
3484
|
+
return e in nt;
|
3455
3485
|
}
|
3456
|
-
function
|
3457
|
-
if (!
|
3486
|
+
function bi(e, t) {
|
3487
|
+
if (!hr(e))
|
3458
3488
|
return null;
|
3459
|
-
const r =
|
3460
|
-
return
|
3489
|
+
const r = mi(e);
|
3490
|
+
return di(r, t);
|
3461
3491
|
}
|
3462
|
-
function
|
3492
|
+
function gi(e) {
|
3463
3493
|
if (e == null)
|
3464
3494
|
return;
|
3465
|
-
const t =
|
3495
|
+
const t = Ce(e);
|
3466
3496
|
for (let r = 0; r < t.length; r++) {
|
3467
3497
|
const n = t[r];
|
3468
|
-
if (
|
3498
|
+
if (hr(n))
|
3469
3499
|
return n;
|
3470
3500
|
}
|
3471
3501
|
}
|
3472
|
-
function
|
3473
|
-
delete F[e],
|
3502
|
+
function cr(e, ...t) {
|
3503
|
+
delete F[e], he.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
3474
3504
|
}
|
3475
|
-
|
3476
|
-
[
|
3505
|
+
re(
|
3506
|
+
[he],
|
3477
3507
|
([e]) => Object.keys(e)
|
3478
3508
|
);
|
3479
|
-
|
3509
|
+
he.subscribe((e) => nt = e);
|
3480
3510
|
const be = {};
|
3481
|
-
function
|
3511
|
+
function yi(e, t) {
|
3482
3512
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
3483
3513
|
}
|
3484
|
-
function
|
3514
|
+
function fr(e) {
|
3485
3515
|
return be[e];
|
3486
3516
|
}
|
3487
|
-
function
|
3488
|
-
return
|
3489
|
-
const r =
|
3517
|
+
function vi(e) {
|
3518
|
+
return Ce(e).map((t) => {
|
3519
|
+
const r = fr(t);
|
3490
3520
|
return [t, r ? [...r] : []];
|
3491
3521
|
}).filter(([, t]) => t.length > 0);
|
3492
3522
|
}
|
3493
|
-
function
|
3494
|
-
return e == null ? !1 :
|
3523
|
+
function Je(e) {
|
3524
|
+
return e == null ? !1 : Ce(e).some(
|
3495
3525
|
(t) => {
|
3496
3526
|
var r;
|
3497
|
-
return (r =
|
3527
|
+
return (r = fr(t)) == null ? void 0 : r.size;
|
3498
3528
|
}
|
3499
3529
|
);
|
3500
3530
|
}
|
3501
|
-
function
|
3531
|
+
function _i(e, t) {
|
3502
3532
|
return Promise.all(
|
3503
|
-
t.map((n) => (
|
3504
|
-
).then((n) =>
|
3505
|
-
}
|
3506
|
-
const
|
3507
|
-
function
|
3508
|
-
if (!
|
3509
|
-
return e in
|
3510
|
-
const t =
|
3511
|
-
return
|
3533
|
+
t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
|
3534
|
+
).then((n) => cr(e, ...n));
|
3535
|
+
}
|
3536
|
+
const oe = {};
|
3537
|
+
function dr(e) {
|
3538
|
+
if (!Je(e))
|
3539
|
+
return e in oe ? oe[e] : Promise.resolve();
|
3540
|
+
const t = vi(e);
|
3541
|
+
return oe[e] = Promise.all(
|
3512
3542
|
t.map(
|
3513
|
-
([r, n]) =>
|
3543
|
+
([r, n]) => _i(r, n)
|
3514
3544
|
)
|
3515
3545
|
).then(() => {
|
3516
|
-
if (
|
3517
|
-
return
|
3518
|
-
delete
|
3519
|
-
}),
|
3546
|
+
if (Je(e))
|
3547
|
+
return dr(e);
|
3548
|
+
delete oe[e];
|
3549
|
+
}), oe[e];
|
3520
3550
|
}
|
3521
|
-
const
|
3551
|
+
const xi = {
|
3522
3552
|
number: {
|
3523
3553
|
scientific: { notation: "scientific" },
|
3524
3554
|
engineering: { notation: "engineering" },
|
@@ -3547,135 +3577,135 @@ const Ti = {
|
|
3547
3577
|
timeZoneName: "short"
|
3548
3578
|
}
|
3549
3579
|
}
|
3550
|
-
},
|
3580
|
+
}, Ei = {
|
3551
3581
|
fallbackLocale: null,
|
3552
3582
|
loadingDelay: 200,
|
3553
|
-
formats:
|
3583
|
+
formats: xi,
|
3554
3584
|
warnOnMissingMessages: !0,
|
3555
3585
|
handleMissingMessage: void 0,
|
3556
3586
|
ignoreTag: !0
|
3557
|
-
},
|
3558
|
-
function
|
3559
|
-
return
|
3560
|
-
}
|
3561
|
-
const
|
3562
|
-
var
|
3563
|
-
for (var r in t
|
3564
|
-
|
3565
|
-
if (
|
3566
|
-
for (var r of
|
3567
|
-
|
3587
|
+
}, Si = Ei;
|
3588
|
+
function ee() {
|
3589
|
+
return Si;
|
3590
|
+
}
|
3591
|
+
const $e = Te(!1);
|
3592
|
+
var wi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
3593
|
+
for (var r in t)
|
3594
|
+
Ci.call(t, r) && St(e, r, t[r]);
|
3595
|
+
if (Et)
|
3596
|
+
for (var r of Et(t))
|
3597
|
+
Pi.call(t, r) && St(e, r, t[r]);
|
3568
3598
|
return e;
|
3569
|
-
},
|
3570
|
-
let
|
3571
|
-
const
|
3572
|
-
function
|
3599
|
+
}, Ai = (e, t) => Ti(e, Hi(t));
|
3600
|
+
let qe;
|
3601
|
+
const Ee = Te(null);
|
3602
|
+
function wt(e) {
|
3573
3603
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3574
3604
|
}
|
3575
|
-
function
|
3576
|
-
const r =
|
3577
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3605
|
+
function Ce(e, t = ee().fallbackLocale) {
|
3606
|
+
const r = wt(e);
|
3607
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
3578
3608
|
}
|
3579
3609
|
function V() {
|
3580
|
-
return
|
3610
|
+
return qe ?? void 0;
|
3581
3611
|
}
|
3582
|
-
|
3583
|
-
|
3612
|
+
Ee.subscribe((e) => {
|
3613
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3584
3614
|
});
|
3585
|
-
const
|
3586
|
-
if (e &&
|
3587
|
-
const { loadingDelay: t } =
|
3615
|
+
const Oi = (e) => {
|
3616
|
+
if (e && gi(e) && Je(e)) {
|
3617
|
+
const { loadingDelay: t } = ee();
|
3588
3618
|
let r;
|
3589
3619
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
3590
|
-
() =>
|
3620
|
+
() => $e.set(!0),
|
3591
3621
|
t
|
3592
|
-
) :
|
3593
|
-
|
3622
|
+
) : $e.set(!0), dr(e).then(() => {
|
3623
|
+
Ee.set(e);
|
3594
3624
|
}).finally(() => {
|
3595
|
-
clearTimeout(r),
|
3625
|
+
clearTimeout(r), $e.set(!1);
|
3596
3626
|
});
|
3597
3627
|
}
|
3598
|
-
return
|
3599
|
-
},
|
3600
|
-
set:
|
3601
|
-
}),
|
3628
|
+
return Ee.set(e);
|
3629
|
+
}, ne = Ai(Bi({}, Ee), {
|
3630
|
+
set: Oi
|
3631
|
+
}), Pe = (e) => {
|
3602
3632
|
const t = /* @__PURE__ */ Object.create(null);
|
3603
3633
|
return (n) => {
|
3604
3634
|
const i = JSON.stringify(n);
|
3605
3635
|
return i in t ? t[i] : t[i] = e(n);
|
3606
3636
|
};
|
3607
3637
|
};
|
3608
|
-
var
|
3638
|
+
var Li = Object.defineProperty, Se = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
3609
3639
|
for (var r in t || (t = {}))
|
3610
|
-
|
3611
|
-
if (
|
3612
|
-
for (var r of
|
3613
|
-
|
3640
|
+
pr.call(t, r) && Tt(e, r, t[r]);
|
3641
|
+
if (Se)
|
3642
|
+
for (var r of Se(t))
|
3643
|
+
mr.call(t, r) && Tt(e, r, t[r]);
|
3614
3644
|
return e;
|
3615
|
-
},
|
3645
|
+
}, ie = (e, t) => {
|
3616
3646
|
var r = {};
|
3617
3647
|
for (var n in e)
|
3618
|
-
|
3619
|
-
if (e != null &&
|
3620
|
-
for (var n of
|
3621
|
-
t.indexOf(n) < 0 &&
|
3648
|
+
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3649
|
+
if (e != null && Se)
|
3650
|
+
for (var n of Se(e))
|
3651
|
+
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
3622
3652
|
return r;
|
3623
3653
|
};
|
3624
|
-
const
|
3625
|
-
const { formats: r } =
|
3654
|
+
const le = (e, t) => {
|
3655
|
+
const { formats: r } = ee();
|
3626
3656
|
if (e in r && t in r[e])
|
3627
3657
|
return r[e][t];
|
3628
3658
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3629
|
-
},
|
3659
|
+
}, Ii = Pe(
|
3630
3660
|
(e) => {
|
3631
|
-
var t = e, { locale: r, format: n } = t, i =
|
3661
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
3632
3662
|
if (r == null)
|
3633
3663
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3634
|
-
return n && (i =
|
3664
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
3635
3665
|
}
|
3636
|
-
),
|
3666
|
+
), Ni = Pe(
|
3637
3667
|
(e) => {
|
3638
|
-
var t = e, { locale: r, format: n } = t, i =
|
3668
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
3639
3669
|
if (r == null)
|
3640
3670
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3641
|
-
return n ? i =
|
3671
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
3642
3672
|
}
|
3643
|
-
),
|
3673
|
+
), Mi = Pe(
|
3644
3674
|
(e) => {
|
3645
|
-
var t = e, { locale: r, format: n } = t, i =
|
3675
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
3646
3676
|
if (r == null)
|
3647
3677
|
throw new Error(
|
3648
3678
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3649
3679
|
);
|
3650
|
-
return n ? i =
|
3680
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
3651
3681
|
}
|
3652
|
-
),
|
3682
|
+
), Ri = (e = {}) => {
|
3653
3683
|
var t = e, {
|
3654
3684
|
locale: r = V()
|
3655
|
-
} = t, n =
|
3685
|
+
} = t, n = ie(t, [
|
3656
3686
|
"locale"
|
3657
3687
|
]);
|
3658
|
-
return
|
3659
|
-
},
|
3688
|
+
return Ii(it({ locale: r }, n));
|
3689
|
+
}, $i = (e = {}) => {
|
3660
3690
|
var t = e, {
|
3661
3691
|
locale: r = V()
|
3662
|
-
} = t, n =
|
3692
|
+
} = t, n = ie(t, [
|
3663
3693
|
"locale"
|
3664
3694
|
]);
|
3665
|
-
return
|
3666
|
-
},
|
3695
|
+
return Ni(it({ locale: r }, n));
|
3696
|
+
}, Gi = (e = {}) => {
|
3667
3697
|
var t = e, {
|
3668
3698
|
locale: r = V()
|
3669
|
-
} = t, n =
|
3699
|
+
} = t, n = ie(t, [
|
3670
3700
|
"locale"
|
3671
3701
|
]);
|
3672
|
-
return
|
3673
|
-
},
|
3702
|
+
return Mi(it({ locale: r }, n));
|
3703
|
+
}, Ui = Pe(
|
3674
3704
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3675
|
-
(e, t = V()) => new
|
3676
|
-
ignoreTag:
|
3705
|
+
(e, t = V()) => new fi(e, t, ee().formats, {
|
3706
|
+
ignoreTag: ee().ignoreTag
|
3677
3707
|
})
|
3678
|
-
),
|
3708
|
+
), Di = (e, t = {}) => {
|
3679
3709
|
var r, n, i, o;
|
3680
3710
|
let s = t;
|
3681
3711
|
typeof e == "object" && (s = e, e = s.id);
|
@@ -3688,9 +3718,9 @@ const ue = (e, t) => {
|
|
3688
3718
|
throw new Error(
|
3689
3719
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3690
3720
|
);
|
3691
|
-
let u =
|
3721
|
+
let u = lr(e, h);
|
3692
3722
|
if (!u)
|
3693
|
-
u = (o = (i = (n = (r =
|
3723
|
+
u = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3694
3724
|
else if (typeof u != "string")
|
3695
3725
|
return console.warn(
|
3696
3726
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3699,7 +3729,7 @@ const ue = (e, t) => {
|
|
3699
3729
|
return u;
|
3700
3730
|
let f = u;
|
3701
3731
|
try {
|
3702
|
-
f =
|
3732
|
+
f = Ui(u, h).format(a);
|
3703
3733
|
} catch (c) {
|
3704
3734
|
c instanceof Error && console.warn(
|
3705
3735
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3707,18 +3737,18 @@ const ue = (e, t) => {
|
|
3707
3737
|
);
|
3708
3738
|
}
|
3709
3739
|
return f;
|
3710
|
-
},
|
3711
|
-
|
3712
|
-
|
3713
|
-
|
3714
|
-
|
3715
|
-
function
|
3716
|
-
|
3717
|
-
}
|
3718
|
-
function
|
3719
|
-
|
3720
|
-
}
|
3721
|
-
const
|
3740
|
+
}, Fi = (e, t) => Gi(t).format(e), ji = (e, t) => $i(t).format(e), ki = (e, t) => Ri(t).format(e), Vi = (e, t = V()) => lr(e, t), Xi = re([ne, he], () => Di);
|
3741
|
+
re([ne], () => Fi);
|
3742
|
+
re([ne], () => ji);
|
3743
|
+
re([ne], () => ki);
|
3744
|
+
re([ne, he], () => Vi);
|
3745
|
+
function Ht(e, t) {
|
3746
|
+
cr(e, t);
|
3747
|
+
}
|
3748
|
+
function Wi(e) {
|
3749
|
+
ne.set(e);
|
3750
|
+
}
|
3751
|
+
const Ct = {
|
3722
3752
|
en: {
|
3723
3753
|
collections: "Game Collections",
|
3724
3754
|
providers: "Game Providers",
|
@@ -3815,85 +3845,16 @@ const Ot = {
|
|
3815
3845
|
loading: "Loading, please wait ..."
|
3816
3846
|
}
|
3817
3847
|
};
|
3818
|
-
|
3819
|
-
Copyright (c) Microsoft Corporation.
|
3820
|
-
|
3821
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
3822
|
-
purpose with or without fee is hereby granted.
|
3823
|
-
|
3824
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
3825
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
3826
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
3827
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
3828
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
3829
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
3830
|
-
PERFORMANCE OF THIS SOFTWARE.
|
3831
|
-
***************************************************************************** */
|
3832
|
-
var Ke = function(e, t) {
|
3833
|
-
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
3834
|
-
r.__proto__ = n;
|
3835
|
-
} || function(r, n) {
|
3836
|
-
for (var i in n)
|
3837
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
3838
|
-
}, Ke(e, t);
|
3839
|
-
};
|
3840
|
-
function he(e, t) {
|
3841
|
-
if (typeof t != "function" && t !== null)
|
3842
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
3843
|
-
Ke(e, t);
|
3844
|
-
function r() {
|
3845
|
-
this.constructor = e;
|
3846
|
-
}
|
3847
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
3848
|
-
}
|
3849
|
-
function et(e) {
|
3850
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
3851
|
-
if (r)
|
3852
|
-
return r.call(e);
|
3853
|
-
if (e && typeof e.length == "number")
|
3854
|
-
return {
|
3855
|
-
next: function() {
|
3856
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
3857
|
-
}
|
3858
|
-
};
|
3859
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
3860
|
-
}
|
3861
|
-
function tt(e, t) {
|
3862
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
3863
|
-
if (!r)
|
3864
|
-
return e;
|
3865
|
-
var n = r.call(e), i, o = [], s;
|
3866
|
-
try {
|
3867
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
3868
|
-
o.push(i.value);
|
3869
|
-
} catch (a) {
|
3870
|
-
s = { error: a };
|
3871
|
-
} finally {
|
3872
|
-
try {
|
3873
|
-
i && !i.done && (r = n.return) && r.call(n);
|
3874
|
-
} finally {
|
3875
|
-
if (s)
|
3876
|
-
throw s.error;
|
3877
|
-
}
|
3878
|
-
}
|
3879
|
-
return o;
|
3880
|
-
}
|
3881
|
-
function rt(e, t, r) {
|
3882
|
-
if (arguments.length === 2)
|
3883
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
3884
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
3885
|
-
return e.concat(o || t);
|
3886
|
-
}
|
3887
|
-
function U(e) {
|
3848
|
+
function G(e) {
|
3888
3849
|
return typeof e == "function";
|
3889
3850
|
}
|
3890
|
-
function
|
3851
|
+
function br(e) {
|
3891
3852
|
var t = function(n) {
|
3892
3853
|
Error.call(n), n.stack = new Error().stack;
|
3893
3854
|
}, r = e(t);
|
3894
3855
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
3895
3856
|
}
|
3896
|
-
var
|
3857
|
+
var Ge = br(function(e) {
|
3897
3858
|
return function(r) {
|
3898
3859
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
3899
3860
|
` + r.map(function(n, i) {
|
@@ -3902,13 +3863,13 @@ var Fe = _r(function(e) {
|
|
3902
3863
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
3903
3864
|
};
|
3904
3865
|
});
|
3905
|
-
function
|
3866
|
+
function Ye(e, t) {
|
3906
3867
|
if (e) {
|
3907
3868
|
var r = e.indexOf(t);
|
3908
3869
|
0 <= r && e.splice(r, 1);
|
3909
3870
|
}
|
3910
3871
|
}
|
3911
|
-
var
|
3872
|
+
var Be = function() {
|
3912
3873
|
function e(t) {
|
3913
3874
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
3914
3875
|
}
|
@@ -3920,7 +3881,7 @@ var Oe = function() {
|
|
3920
3881
|
if (s)
|
3921
3882
|
if (this._parentage = null, Array.isArray(s))
|
3922
3883
|
try {
|
3923
|
-
for (var a =
|
3884
|
+
for (var a = je(s), h = a.next(); !h.done; h = a.next()) {
|
3924
3885
|
var l = h.value;
|
3925
3886
|
l.remove(this);
|
3926
3887
|
}
|
@@ -3937,22 +3898,22 @@ var Oe = function() {
|
|
3937
3898
|
else
|
3938
3899
|
s.remove(this);
|
3939
3900
|
var u = this.initialTeardown;
|
3940
|
-
if (
|
3901
|
+
if (G(u))
|
3941
3902
|
try {
|
3942
3903
|
u();
|
3943
3904
|
} catch (b) {
|
3944
|
-
o = b instanceof
|
3905
|
+
o = b instanceof Ge ? b.errors : [b];
|
3945
3906
|
}
|
3946
3907
|
var f = this._finalizers;
|
3947
3908
|
if (f) {
|
3948
3909
|
this._finalizers = null;
|
3949
3910
|
try {
|
3950
|
-
for (var c =
|
3911
|
+
for (var c = je(f), d = c.next(); !d.done; d = c.next()) {
|
3951
3912
|
var m = d.value;
|
3952
3913
|
try {
|
3953
|
-
|
3914
|
+
Pt(m);
|
3954
3915
|
} catch (b) {
|
3955
|
-
o = o ?? [], b instanceof
|
3916
|
+
o = o ?? [], b instanceof Ge ? o = J(J([], ke(o)), ke(b.errors)) : o.push(b);
|
3956
3917
|
}
|
3957
3918
|
}
|
3958
3919
|
} catch (b) {
|
@@ -3967,13 +3928,13 @@ var Oe = function() {
|
|
3967
3928
|
}
|
3968
3929
|
}
|
3969
3930
|
if (o)
|
3970
|
-
throw new
|
3931
|
+
throw new Ge(o);
|
3971
3932
|
}
|
3972
3933
|
}, e.prototype.add = function(t) {
|
3973
3934
|
var r;
|
3974
3935
|
if (t && t !== this)
|
3975
3936
|
if (this.closed)
|
3976
|
-
|
3937
|
+
Pt(t);
|
3977
3938
|
else {
|
3978
3939
|
if (t instanceof e) {
|
3979
3940
|
if (t.closed || t._hasParent(this))
|
@@ -3990,52 +3951,56 @@ var Oe = function() {
|
|
3990
3951
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
3991
3952
|
}, e.prototype._removeParent = function(t) {
|
3992
3953
|
var r = this._parentage;
|
3993
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
3954
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
|
3994
3955
|
}, e.prototype.remove = function(t) {
|
3995
3956
|
var r = this._finalizers;
|
3996
|
-
r &&
|
3957
|
+
r && Ye(r, t), t instanceof e && t._removeParent(this);
|
3997
3958
|
}, e.EMPTY = function() {
|
3998
3959
|
var t = new e();
|
3999
3960
|
return t.closed = !0, t;
|
4000
3961
|
}(), e;
|
4001
|
-
}(),
|
4002
|
-
function
|
4003
|
-
return e instanceof
|
4004
|
-
}
|
4005
|
-
function Lt(e) {
|
4006
|
-
U(e) ? e() : e.unsubscribe();
|
3962
|
+
}(), gr = Be.EMPTY;
|
3963
|
+
function yr(e) {
|
3964
|
+
return e instanceof Be || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
4007
3965
|
}
|
4008
|
-
|
4009
|
-
|
4010
|
-
}
|
3966
|
+
function Pt(e) {
|
3967
|
+
G(e) ? e() : e.unsubscribe();
|
3968
|
+
}
|
3969
|
+
var zi = {
|
3970
|
+
onUnhandledError: null,
|
3971
|
+
onStoppedNotification: null,
|
3972
|
+
Promise: void 0,
|
3973
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
3974
|
+
useDeprecatedNextContext: !1
|
3975
|
+
}, Zi = {
|
4011
3976
|
setTimeout: function(e, t) {
|
4012
3977
|
for (var r = [], n = 2; n < arguments.length; n++)
|
4013
3978
|
r[n - 2] = arguments[n];
|
4014
|
-
return setTimeout.apply(void 0,
|
3979
|
+
return setTimeout.apply(void 0, J([e, t], ke(r)));
|
4015
3980
|
},
|
4016
3981
|
clearTimeout: function(e) {
|
4017
3982
|
return clearTimeout(e);
|
4018
3983
|
},
|
4019
3984
|
delegate: void 0
|
4020
3985
|
};
|
4021
|
-
function
|
4022
|
-
|
3986
|
+
function Qi(e) {
|
3987
|
+
Zi.setTimeout(function() {
|
4023
3988
|
throw e;
|
4024
3989
|
});
|
4025
3990
|
}
|
4026
|
-
function
|
3991
|
+
function Bt() {
|
4027
3992
|
}
|
4028
3993
|
function ge(e) {
|
4029
3994
|
e();
|
4030
3995
|
}
|
4031
|
-
var
|
4032
|
-
|
3996
|
+
var vr = function(e) {
|
3997
|
+
U(t, e);
|
4033
3998
|
function t(r) {
|
4034
3999
|
var n = e.call(this) || this;
|
4035
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
4000
|
+
return n.isStopped = !1, r ? (n.destination = r, yr(r) && r.add(n)) : n.destination = Yi, n;
|
4036
4001
|
}
|
4037
4002
|
return t.create = function(r, n, i) {
|
4038
|
-
return new
|
4003
|
+
return new Ke(r, n, i);
|
4039
4004
|
}, t.prototype.next = function(r) {
|
4040
4005
|
this.isStopped || this._next(r);
|
4041
4006
|
}, t.prototype.error = function(r) {
|
@@ -4059,7 +4024,7 @@ var Sr = function(e) {
|
|
4059
4024
|
this.unsubscribe();
|
4060
4025
|
}
|
4061
4026
|
}, t;
|
4062
|
-
}(
|
4027
|
+
}(Be), Ji = function() {
|
4063
4028
|
function e(t) {
|
4064
4029
|
this.partialObserver = t;
|
4065
4030
|
}
|
@@ -4090,43 +4055,43 @@ var Sr = function(e) {
|
|
4090
4055
|
de(r);
|
4091
4056
|
}
|
4092
4057
|
}, e;
|
4093
|
-
}(),
|
4094
|
-
|
4058
|
+
}(), Ke = function(e) {
|
4059
|
+
U(t, e);
|
4095
4060
|
function t(r, n, i) {
|
4096
4061
|
var o = e.call(this) || this, s;
|
4097
|
-
return
|
4062
|
+
return G(r) || !r ? s = {
|
4098
4063
|
next: r ?? void 0,
|
4099
4064
|
error: n ?? void 0,
|
4100
4065
|
complete: i ?? void 0
|
4101
|
-
} : s = r, o.destination = new
|
4066
|
+
} : s = r, o.destination = new Ji(s), o;
|
4102
4067
|
}
|
4103
4068
|
return t;
|
4104
|
-
}(
|
4069
|
+
}(vr);
|
4105
4070
|
function de(e) {
|
4106
|
-
|
4071
|
+
Qi(e);
|
4107
4072
|
}
|
4108
|
-
function
|
4073
|
+
function qi(e) {
|
4109
4074
|
throw e;
|
4110
4075
|
}
|
4111
|
-
var
|
4076
|
+
var Yi = {
|
4112
4077
|
closed: !0,
|
4113
|
-
next:
|
4114
|
-
error:
|
4115
|
-
complete:
|
4116
|
-
},
|
4078
|
+
next: Bt,
|
4079
|
+
error: qi,
|
4080
|
+
complete: Bt
|
4081
|
+
}, Ki = function() {
|
4117
4082
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
4118
4083
|
}();
|
4119
|
-
function
|
4084
|
+
function eo(e) {
|
4120
4085
|
return e;
|
4121
4086
|
}
|
4122
|
-
function
|
4123
|
-
return e.length === 0 ?
|
4087
|
+
function to(e) {
|
4088
|
+
return e.length === 0 ? eo : e.length === 1 ? e[0] : function(r) {
|
4124
4089
|
return e.reduce(function(n, i) {
|
4125
4090
|
return i(n);
|
4126
4091
|
}, r);
|
4127
4092
|
};
|
4128
4093
|
}
|
4129
|
-
var
|
4094
|
+
var At = function() {
|
4130
4095
|
function e(t) {
|
4131
4096
|
t && (this._subscribe = t);
|
4132
4097
|
}
|
@@ -4134,7 +4099,7 @@ var Nt = function() {
|
|
4134
4099
|
var r = new e();
|
4135
4100
|
return r.source = this, r.operator = t, r;
|
4136
4101
|
}, e.prototype.subscribe = function(t, r, n) {
|
4137
|
-
var i = this, o =
|
4102
|
+
var i = this, o = no(t) ? t : new Ke(t, r, n);
|
4138
4103
|
return ge(function() {
|
4139
4104
|
var s = i, a = s.operator, h = s.source;
|
4140
4105
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -4147,8 +4112,8 @@ var Nt = function() {
|
|
4147
4112
|
}
|
4148
4113
|
}, e.prototype.forEach = function(t, r) {
|
4149
4114
|
var n = this;
|
4150
|
-
return r =
|
4151
|
-
var s = new
|
4115
|
+
return r = Ot(r), new r(function(i, o) {
|
4116
|
+
var s = new Ke({
|
4152
4117
|
next: function(a) {
|
4153
4118
|
try {
|
4154
4119
|
t(a);
|
@@ -4164,15 +4129,15 @@ var Nt = function() {
|
|
4164
4129
|
}, e.prototype._subscribe = function(t) {
|
4165
4130
|
var r;
|
4166
4131
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
4167
|
-
}, e.prototype[
|
4132
|
+
}, e.prototype[Ki] = function() {
|
4168
4133
|
return this;
|
4169
4134
|
}, e.prototype.pipe = function() {
|
4170
4135
|
for (var t = [], r = 0; r < arguments.length; r++)
|
4171
4136
|
t[r] = arguments[r];
|
4172
|
-
return
|
4137
|
+
return to(t)(this);
|
4173
4138
|
}, e.prototype.toPromise = function(t) {
|
4174
4139
|
var r = this;
|
4175
|
-
return t =
|
4140
|
+
return t = Ot(t), new t(function(n, i) {
|
4176
4141
|
var o;
|
4177
4142
|
r.subscribe(function(s) {
|
4178
4143
|
return o = s;
|
@@ -4186,32 +4151,32 @@ var Nt = function() {
|
|
4186
4151
|
return new e(t);
|
4187
4152
|
}, e;
|
4188
4153
|
}();
|
4189
|
-
function
|
4154
|
+
function Ot(e) {
|
4190
4155
|
var t;
|
4191
|
-
return (t = e ??
|
4156
|
+
return (t = e ?? zi.Promise) !== null && t !== void 0 ? t : Promise;
|
4192
4157
|
}
|
4193
|
-
function
|
4194
|
-
return e &&
|
4158
|
+
function ro(e) {
|
4159
|
+
return e && G(e.next) && G(e.error) && G(e.complete);
|
4195
4160
|
}
|
4196
|
-
function
|
4197
|
-
return e && e instanceof
|
4161
|
+
function no(e) {
|
4162
|
+
return e && e instanceof vr || ro(e) && yr(e);
|
4198
4163
|
}
|
4199
|
-
var
|
4164
|
+
var io = br(function(e) {
|
4200
4165
|
return function() {
|
4201
4166
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
4202
4167
|
};
|
4203
|
-
}),
|
4204
|
-
|
4168
|
+
}), _r = function(e) {
|
4169
|
+
U(t, e);
|
4205
4170
|
function t() {
|
4206
4171
|
var r = e.call(this) || this;
|
4207
4172
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
4208
4173
|
}
|
4209
4174
|
return t.prototype.lift = function(r) {
|
4210
|
-
var n = new
|
4175
|
+
var n = new Lt(this, this);
|
4211
4176
|
return n.operator = r, n;
|
4212
4177
|
}, t.prototype._throwIfClosed = function() {
|
4213
4178
|
if (this.closed)
|
4214
|
-
throw new
|
4179
|
+
throw new io();
|
4215
4180
|
}, t.prototype.next = function(r) {
|
4216
4181
|
var n = this;
|
4217
4182
|
ge(function() {
|
@@ -4219,7 +4184,7 @@ var uo = _r(function(e) {
|
|
4219
4184
|
if (n._throwIfClosed(), !n.isStopped) {
|
4220
4185
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
4221
4186
|
try {
|
4222
|
-
for (var s =
|
4187
|
+
for (var s = je(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
4223
4188
|
var h = a.value;
|
4224
4189
|
h.next(r);
|
4225
4190
|
}
|
@@ -4268,20 +4233,20 @@ var uo = _r(function(e) {
|
|
4268
4233
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
4269
4234
|
}, t.prototype._innerSubscribe = function(r) {
|
4270
4235
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
4271
|
-
return o || s ?
|
4272
|
-
n.currentObservers = null,
|
4236
|
+
return o || s ? gr : (this.currentObservers = null, a.push(r), new Be(function() {
|
4237
|
+
n.currentObservers = null, Ye(a, r);
|
4273
4238
|
}));
|
4274
4239
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
4275
4240
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
4276
4241
|
i ? r.error(o) : s && r.complete();
|
4277
4242
|
}, t.prototype.asObservable = function() {
|
4278
|
-
var r = new
|
4243
|
+
var r = new At();
|
4279
4244
|
return r.source = this, r;
|
4280
4245
|
}, t.create = function(r, n) {
|
4281
|
-
return new
|
4246
|
+
return new Lt(r, n);
|
4282
4247
|
}, t;
|
4283
|
-
}(
|
4284
|
-
|
4248
|
+
}(At), Lt = function(e) {
|
4249
|
+
U(t, e);
|
4285
4250
|
function t(r, n) {
|
4286
4251
|
var i = e.call(this) || this;
|
4287
4252
|
return i.destination = r, i.source = n, i;
|
@@ -4297,17 +4262,17 @@ var uo = _r(function(e) {
|
|
4297
4262
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
4298
4263
|
}, t.prototype._subscribe = function(r) {
|
4299
4264
|
var n, i;
|
4300
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
4265
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : gr;
|
4301
4266
|
}, t;
|
4302
|
-
}(
|
4267
|
+
}(_r), xr = {
|
4303
4268
|
now: function() {
|
4304
|
-
return (
|
4269
|
+
return (xr.delegate || Date).now();
|
4305
4270
|
},
|
4306
4271
|
delegate: void 0
|
4307
|
-
},
|
4308
|
-
|
4272
|
+
}, oo = function(e) {
|
4273
|
+
U(t, e);
|
4309
4274
|
function t(r, n, i) {
|
4310
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
4275
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = xr);
|
4311
4276
|
var o = e.call(this) || this;
|
4312
4277
|
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;
|
4313
4278
|
}
|
@@ -4327,23 +4292,23 @@ var uo = _r(function(e) {
|
|
4327
4292
|
l && o.splice(0, l + 1);
|
4328
4293
|
}
|
4329
4294
|
}, t;
|
4330
|
-
}(
|
4331
|
-
const
|
4332
|
-
if (
|
4333
|
-
const r = new
|
4334
|
-
|
4295
|
+
}(_r);
|
4296
|
+
const It = [], Nt = {}, so = (e, t = 0) => {
|
4297
|
+
if (It.indexOf(e) == -1) {
|
4298
|
+
const r = new oo(t);
|
4299
|
+
Nt[e] = r, It.push(e);
|
4335
4300
|
}
|
4336
|
-
return
|
4301
|
+
return Nt[e];
|
4337
4302
|
};
|
4338
|
-
window.emWidgets = { topic:
|
4339
|
-
const
|
4340
|
-
function
|
4303
|
+
window.emWidgets = { topic: so };
|
4304
|
+
const ao = (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));
|
4305
|
+
function uo(e, t) {
|
4341
4306
|
if (e) {
|
4342
4307
|
const r = document.createElement("style");
|
4343
4308
|
r.innerHTML = t, e.appendChild(r);
|
4344
4309
|
}
|
4345
4310
|
}
|
4346
|
-
function
|
4311
|
+
function lo(e, t) {
|
4347
4312
|
const r = new URL(t);
|
4348
4313
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4349
4314
|
const i = document.createElement("style");
|
@@ -4352,7 +4317,7 @@ function po(e, t) {
|
|
4352
4317
|
console.error("There was an error while trying to load client styling from URL", n);
|
4353
4318
|
});
|
4354
4319
|
}
|
4355
|
-
function
|
4320
|
+
function ho(e, t, r) {
|
4356
4321
|
if (window.emMessageBus) {
|
4357
4322
|
const n = document.createElement("style");
|
4358
4323
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4360,18 +4325,18 @@ function mo(e, t, r) {
|
|
4360
4325
|
});
|
4361
4326
|
}
|
4362
4327
|
}
|
4363
|
-
function
|
4364
|
-
|
4328
|
+
function co(e) {
|
4329
|
+
Rr(e, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
4365
4330
|
}
|
4366
|
-
function
|
4331
|
+
function Mt(e, t, r) {
|
4367
4332
|
const n = e.slice();
|
4368
4333
|
return n[41] = t[r], n;
|
4369
4334
|
}
|
4370
|
-
function
|
4335
|
+
function Rt(e, t, r) {
|
4371
4336
|
const n = e.slice();
|
4372
4337
|
return n[44] = t[r], n;
|
4373
4338
|
}
|
4374
|
-
function
|
4339
|
+
function fo(e) {
|
4375
4340
|
let t, r, n, i = (
|
4376
4341
|
/*type*/
|
4377
4342
|
(e[0] === "vendor" ? (
|
@@ -4384,16 +4349,16 @@ function go(e) {
|
|
4384
4349
|
), o, s, a, h, l, u = (
|
4385
4350
|
/*numberOfSlides*/
|
4386
4351
|
e[7] > /*numberOfVisibleSlides*/
|
4387
|
-
e[8] &&
|
4388
|
-
), f =
|
4352
|
+
e[8] && $t(e)
|
4353
|
+
), f = xe(
|
4389
4354
|
/*gameCategories*/
|
4390
4355
|
e[3]
|
4391
4356
|
), c = [];
|
4392
4357
|
for (let d = 0; d < f.length; d += 1)
|
4393
|
-
c[d] =
|
4358
|
+
c[d] = Dt(Mt(e, f, d));
|
4394
4359
|
return {
|
4395
4360
|
c() {
|
4396
|
-
t = C("div"), r = C("div"), n = C("p"), o =
|
4361
|
+
t = C("div"), r = C("div"), n = C("p"), o = we(i), s = k(), u && u.c(), a = k(), h = C("div");
|
4397
4362
|
for (let d = 0; d < c.length; d += 1)
|
4398
4363
|
c[d].c();
|
4399
4364
|
E(n, "class", "Title"), E(r, "class", "CategoriesHeader"), E(h, "class", "CategoriesSlider"), E(t, "class", l = "CasinoCollectionsProviders " + /*mobile*/
|
@@ -4401,7 +4366,7 @@ function go(e) {
|
|
4401
4366
|
(e[0] === "vendor" ? "Providers" : "Collections"));
|
4402
4367
|
},
|
4403
4368
|
m(d, m) {
|
4404
|
-
|
4369
|
+
$(d, t, m), H(t, r), H(r, n), H(n, o), H(r, s), u && u.m(r, null), H(t, a), H(t, h);
|
4405
4370
|
for (let b = 0; b < c.length; b += 1)
|
4406
4371
|
c[b] && c[b].m(h, null);
|
4407
4372
|
e[25](h);
|
@@ -4415,18 +4380,18 @@ function go(e) {
|
|
4415
4380
|
) : (
|
4416
4381
|
/*$_*/
|
4417
4382
|
d[10]("collections")
|
4418
|
-
)) + "") &&
|
4383
|
+
)) + "") && tt(o, i), /*numberOfSlides*/
|
4419
4384
|
d[7] > /*numberOfVisibleSlides*/
|
4420
|
-
d[8] ? u ? u.p(d, m) : (u =
|
4385
|
+
d[8] ? u ? u.p(d, m) : (u = $t(d), u.c(), u.m(r, null)) : u && (u.d(1), u = null), m[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
4421
4386
|
24590) {
|
4422
|
-
f =
|
4387
|
+
f = xe(
|
4423
4388
|
/*gameCategories*/
|
4424
4389
|
d[3]
|
4425
4390
|
);
|
4426
4391
|
let b;
|
4427
4392
|
for (b = 0; b < f.length; b += 1) {
|
4428
|
-
const g =
|
4429
|
-
c[b] ? c[b].p(g, m) : (c[b] =
|
4393
|
+
const g = Mt(d, f, b);
|
4394
|
+
c[b] ? c[b].p(g, m) : (c[b] = Dt(g), c[b].c(), c[b].m(h, null));
|
4430
4395
|
}
|
4431
4396
|
for (; b < c.length; b += 1)
|
4432
4397
|
c[b].d(1);
|
@@ -4438,18 +4403,18 @@ function go(e) {
|
|
4438
4403
|
(d[0] === "vendor" ? "Providers" : "Collections")) && E(t, "class", l);
|
4439
4404
|
},
|
4440
4405
|
d(d) {
|
4441
|
-
d && I(t), u && u.d(),
|
4406
|
+
d && I(t), u && u.d(), Vt(c, d), e[25](null);
|
4442
4407
|
}
|
4443
4408
|
};
|
4444
4409
|
}
|
4445
|
-
function
|
4410
|
+
function po(e) {
|
4446
4411
|
let t;
|
4447
4412
|
return {
|
4448
4413
|
c() {
|
4449
4414
|
t = C("div"), E(t, "class", "LoadingSpinner");
|
4450
4415
|
},
|
4451
4416
|
m(r, n) {
|
4452
|
-
|
4417
|
+
$(r, t, n);
|
4453
4418
|
},
|
4454
4419
|
p: A,
|
4455
4420
|
d(r) {
|
@@ -4457,21 +4422,21 @@ function vo(e) {
|
|
4457
4422
|
}
|
4458
4423
|
};
|
4459
4424
|
}
|
4460
|
-
function
|
4425
|
+
function $t(e) {
|
4461
4426
|
let t, r, n, i, o, s;
|
4462
4427
|
return {
|
4463
4428
|
c() {
|
4464
4429
|
t = C("div"), r = C("button"), r.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = k(), i = C("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', E(t, "class", "ButtonsContainer");
|
4465
4430
|
},
|
4466
4431
|
m(a, h) {
|
4467
|
-
|
4468
|
-
|
4432
|
+
$(a, t, h), H(t, r), H(t, n), H(t, i), o || (s = [
|
4433
|
+
ve(
|
4469
4434
|
r,
|
4470
4435
|
"click",
|
4471
4436
|
/*sliderScrollLeft*/
|
4472
4437
|
e[11]
|
4473
4438
|
),
|
4474
|
-
|
4439
|
+
ve(
|
4475
4440
|
i,
|
4476
4441
|
"click",
|
4477
4442
|
/*sliderScrollRight*/
|
@@ -4481,46 +4446,46 @@ function Ft(e) {
|
|
4481
4446
|
},
|
4482
4447
|
p: A,
|
4483
4448
|
d(a) {
|
4484
|
-
a && I(t), o = !1,
|
4449
|
+
a && I(t), o = !1, te(s);
|
4485
4450
|
}
|
4486
4451
|
};
|
4487
4452
|
}
|
4488
|
-
function
|
4453
|
+
function mo(e) {
|
4489
4454
|
let t, r = (
|
4490
4455
|
/*category*/
|
4491
4456
|
e[41].name + ""
|
4492
4457
|
), n;
|
4493
4458
|
return {
|
4494
4459
|
c() {
|
4495
|
-
t = C("p"), n =
|
4460
|
+
t = C("p"), n = we(r), E(t, "class", "CategorySlideTitle");
|
4496
4461
|
},
|
4497
4462
|
m(i, o) {
|
4498
|
-
|
4463
|
+
$(i, t, o), H(t, n);
|
4499
4464
|
},
|
4500
4465
|
p(i, o) {
|
4501
4466
|
o[0] & /*gameCategories*/
|
4502
4467
|
8 && r !== (r = /*category*/
|
4503
|
-
i[41].name + "") &&
|
4468
|
+
i[41].name + "") && tt(n, r);
|
4504
4469
|
},
|
4505
4470
|
d(i) {
|
4506
4471
|
i && I(t);
|
4507
4472
|
}
|
4508
4473
|
};
|
4509
4474
|
}
|
4510
|
-
function
|
4475
|
+
function bo(e) {
|
4511
4476
|
let t, r, n;
|
4512
4477
|
return {
|
4513
4478
|
c() {
|
4514
|
-
t = C("img"), E(t, "class", "CategorySlideLogo"),
|
4479
|
+
t = C("img"), E(t, "class", "CategorySlideLogo"), ye(t.src, r = /*category*/
|
4515
4480
|
e[41].icon) || E(t, "src", r), E(t, "alt", n = /*category*/
|
4516
4481
|
e[41].name + " icon");
|
4517
4482
|
},
|
4518
4483
|
m(i, o) {
|
4519
|
-
|
4484
|
+
$(i, t, o);
|
4520
4485
|
},
|
4521
4486
|
p(i, o) {
|
4522
4487
|
o[0] & /*gameCategories*/
|
4523
|
-
8 && !
|
4488
|
+
8 && !ye(t.src, r = /*category*/
|
4524
4489
|
i[41].icon) && E(t, "src", r), o[0] & /*gameCategories*/
|
4525
4490
|
8 && n !== (n = /*category*/
|
4526
4491
|
i[41].name + " icon") && E(t, "alt", n);
|
@@ -4530,23 +4495,23 @@ function _o(e) {
|
|
4530
4495
|
}
|
4531
4496
|
};
|
4532
4497
|
}
|
4533
|
-
function
|
4498
|
+
function Gt(e) {
|
4534
4499
|
let t, r = (
|
4535
4500
|
/*game*/
|
4536
4501
|
e[44].name + ""
|
4537
4502
|
), n, i;
|
4538
4503
|
return {
|
4539
4504
|
c() {
|
4540
|
-
t = C("p"), n =
|
4505
|
+
t = C("p"), n = we(r), E(t, "title", i = /*game*/
|
4541
4506
|
e[44].name);
|
4542
4507
|
},
|
4543
4508
|
m(o, s) {
|
4544
|
-
|
4509
|
+
$(o, t, s), H(t, n);
|
4545
4510
|
},
|
4546
4511
|
p(o, s) {
|
4547
4512
|
s[0] & /*gameCategories*/
|
4548
4513
|
8 && r !== (r = /*game*/
|
4549
|
-
o[44].name + "") &&
|
4514
|
+
o[44].name + "") && tt(n, r), s[0] & /*gameCategories*/
|
4550
4515
|
8 && i !== (i = /*game*/
|
4551
4516
|
o[44].name) && E(t, "title", i);
|
4552
4517
|
},
|
@@ -4555,7 +4520,7 @@ function jt(e) {
|
|
4555
4520
|
}
|
4556
4521
|
};
|
4557
4522
|
}
|
4558
|
-
function
|
4523
|
+
function Ut(e) {
|
4559
4524
|
let t, r, n, i, o, s, a, h;
|
4560
4525
|
function l() {
|
4561
4526
|
return (
|
@@ -4568,50 +4533,50 @@ function kt(e) {
|
|
4568
4533
|
}
|
4569
4534
|
let u = (
|
4570
4535
|
/*collectionprovidersgamenames*/
|
4571
|
-
e[2] == "true" &&
|
4536
|
+
e[2] == "true" && Gt(e)
|
4572
4537
|
);
|
4573
4538
|
return {
|
4574
4539
|
c() {
|
4575
|
-
t = C("div"), r = C("img"), o = k(), u && u.c(), s = k(), E(r, "class", "CategorySlideGameImage"),
|
4540
|
+
t = C("div"), r = C("img"), o = k(), u && u.c(), s = k(), E(r, "class", "CategorySlideGameImage"), ye(r.src, n = /*game*/
|
4576
4541
|
e[44].defaultThumbnail) || E(r, "src", n), E(r, "alt", i = /*game*/
|
4577
4542
|
e[44].name), E(t, "class", "CategorySlideGames");
|
4578
4543
|
},
|
4579
4544
|
m(f, c) {
|
4580
|
-
|
4545
|
+
$(f, t, c), H(t, r), H(t, o), u && u.m(t, null), H(t, s), a || (h = ve(r, "click", Ur(l)), a = !0);
|
4581
4546
|
},
|
4582
4547
|
p(f, c) {
|
4583
4548
|
e = f, c[0] & /*gameCategories*/
|
4584
|
-
8 && !
|
4549
|
+
8 && !ye(r.src, n = /*game*/
|
4585
4550
|
e[44].defaultThumbnail) && E(r, "src", n), c[0] & /*gameCategories*/
|
4586
4551
|
8 && i !== (i = /*game*/
|
4587
4552
|
e[44].name) && E(r, "alt", i), /*collectionprovidersgamenames*/
|
4588
|
-
e[2] == "true" ? u ? u.p(e, c) : (u =
|
4553
|
+
e[2] == "true" ? u ? u.p(e, c) : (u = Gt(e), u.c(), u.m(t, s)) : u && (u.d(1), u = null);
|
4589
4554
|
},
|
4590
4555
|
d(f) {
|
4591
4556
|
f && I(t), u && u.d(), a = !1, h();
|
4592
4557
|
}
|
4593
4558
|
};
|
4594
4559
|
}
|
4595
|
-
function
|
4560
|
+
function Dt(e) {
|
4596
4561
|
let t, r, n, i, o, s, a, h, l;
|
4597
|
-
function u(g,
|
4562
|
+
function u(g, S) {
|
4598
4563
|
if (
|
4599
4564
|
/*titletype*/
|
4600
4565
|
g[1] === "logo"
|
4601
4566
|
)
|
4602
|
-
return
|
4567
|
+
return bo;
|
4603
4568
|
if (
|
4604
4569
|
/*titletype*/
|
4605
4570
|
g[1] === "title"
|
4606
4571
|
)
|
4607
|
-
return
|
4572
|
+
return mo;
|
4608
4573
|
}
|
4609
|
-
let f = u(e), c = f && f(e), d =
|
4574
|
+
let f = u(e), c = f && f(e), d = xe(
|
4610
4575
|
/*category*/
|
4611
4576
|
e[41].games
|
4612
4577
|
), m = [];
|
4613
4578
|
for (let g = 0; g < d.length; g += 1)
|
4614
|
-
m[g] =
|
4579
|
+
m[g] = Ut(Rt(e, d, g));
|
4615
4580
|
function b() {
|
4616
4581
|
return (
|
4617
4582
|
/*click_handler_1*/
|
@@ -4627,48 +4592,48 @@ function Vt(e) {
|
|
4627
4592
|
for (let g = 0; g < m.length; g += 1)
|
4628
4593
|
m[g].c();
|
4629
4594
|
a = k(), E(n, "class", "CategorySlideTopContainer"), E(o, "class", "CategorySlideGameContainer"), E(r, "class", s = "CategorySlide " + /*category*/
|
4630
|
-
(e[41]?.flag[0] === "vendor" ? "CategorySlideNoHighlight" : "")),
|
4631
|
-
e[41]?.background + ")"),
|
4595
|
+
(e[41]?.flag[0] === "vendor" ? "CategorySlideNoHighlight" : "")), Oe(r, "background-image", "url(" + /*category*/
|
4596
|
+
e[41]?.background + ")"), Oe(r, "background-size", "cover"), E(t, "class", "CategoriesSliderWrapper Animation");
|
4632
4597
|
},
|
4633
|
-
m(g,
|
4634
|
-
|
4635
|
-
for (let
|
4636
|
-
m[
|
4637
|
-
H(t, a), h || (l =
|
4598
|
+
m(g, S) {
|
4599
|
+
$(g, t, S), H(t, r), H(r, n), c && c.m(n, null), H(r, i), H(r, o);
|
4600
|
+
for (let x = 0; x < m.length; x += 1)
|
4601
|
+
m[x] && m[x].m(o, null);
|
4602
|
+
H(t, a), h || (l = ve(r, "click", b), h = !0);
|
4638
4603
|
},
|
4639
|
-
p(g,
|
4640
|
-
if (e = g, f === (f = u(e)) && c ? c.p(e,
|
4604
|
+
p(g, S) {
|
4605
|
+
if (e = g, f === (f = u(e)) && c ? c.p(e, S) : (c && c.d(1), c = f && f(e), c && (c.c(), c.m(n, null))), S[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
4641
4606
|
8204) {
|
4642
|
-
d =
|
4607
|
+
d = xe(
|
4643
4608
|
/*category*/
|
4644
4609
|
e[41].games
|
4645
4610
|
);
|
4646
|
-
let
|
4647
|
-
for (
|
4648
|
-
const T =
|
4649
|
-
m[
|
4611
|
+
let x;
|
4612
|
+
for (x = 0; x < d.length; x += 1) {
|
4613
|
+
const T = Rt(e, d, x);
|
4614
|
+
m[x] ? m[x].p(T, S) : (m[x] = Ut(T), m[x].c(), m[x].m(o, null));
|
4650
4615
|
}
|
4651
|
-
for (;
|
4652
|
-
m[
|
4616
|
+
for (; x < m.length; x += 1)
|
4617
|
+
m[x].d(1);
|
4653
4618
|
m.length = d.length;
|
4654
4619
|
}
|
4655
|
-
|
4620
|
+
S[0] & /*gameCategories*/
|
4656
4621
|
8 && s !== (s = "CategorySlide " + /*category*/
|
4657
|
-
(e[41]?.flag[0] === "vendor" ? "CategorySlideNoHighlight" : "")) && E(r, "class", s),
|
4658
|
-
8 &&
|
4622
|
+
(e[41]?.flag[0] === "vendor" ? "CategorySlideNoHighlight" : "")) && E(r, "class", s), S[0] & /*gameCategories*/
|
4623
|
+
8 && Oe(r, "background-image", "url(" + /*category*/
|
4659
4624
|
e[41]?.background + ")");
|
4660
4625
|
},
|
4661
4626
|
d(g) {
|
4662
|
-
g && I(t), c && c.d(),
|
4627
|
+
g && I(t), c && c.d(), Vt(m, g), h = !1, l();
|
4663
4628
|
}
|
4664
4629
|
};
|
4665
4630
|
}
|
4666
|
-
function
|
4631
|
+
function go(e) {
|
4667
4632
|
let t;
|
4668
4633
|
function r(o, s) {
|
4669
4634
|
return (
|
4670
4635
|
/*isLoading*/
|
4671
|
-
o[6] ?
|
4636
|
+
o[6] ? po : fo
|
4672
4637
|
);
|
4673
4638
|
}
|
4674
4639
|
let n = r(e), i = n(e);
|
@@ -4677,7 +4642,7 @@ function Eo(e) {
|
|
4677
4642
|
t = C("div"), i.c();
|
4678
4643
|
},
|
4679
4644
|
m(o, s) {
|
4680
|
-
|
4645
|
+
$(o, t, s), i.m(t, null), e[26](t);
|
4681
4646
|
},
|
4682
4647
|
p(o, s) {
|
4683
4648
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
@@ -4689,52 +4654,52 @@ function Eo(e) {
|
|
4689
4654
|
}
|
4690
4655
|
};
|
4691
4656
|
}
|
4692
|
-
function
|
4657
|
+
function yo(e, t, r) {
|
4693
4658
|
let n;
|
4694
|
-
|
4695
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g,
|
4696
|
-
const
|
4659
|
+
Mr(e, Xi, (p) => r(10, n = p));
|
4660
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g, S = 0, x = 0, T = 0, D, L, j = 0, X = 50, Ae = !1, N, Er = window.navigator.userAgent, ot;
|
4661
|
+
const Sr = () => {
|
4697
4662
|
fetch(f).then((P) => P.json()).then((P) => {
|
4698
4663
|
Object.keys(P).forEach((M) => {
|
4699
|
-
|
4664
|
+
Ht(M, P[M]);
|
4700
4665
|
});
|
4701
4666
|
}).catch((P) => {
|
4702
4667
|
console.log(P);
|
4703
4668
|
});
|
4704
4669
|
};
|
4705
|
-
Object.keys(
|
4706
|
-
|
4670
|
+
Object.keys(Ct).forEach((p) => {
|
4671
|
+
Ht(p, Ct[p]);
|
4707
4672
|
});
|
4708
|
-
const
|
4673
|
+
const st = () => {
|
4709
4674
|
const p = new URL(`${i}/v2/casino/groups/${o}`);
|
4710
4675
|
p.searchParams.append("language", s), p.searchParams.append("expand", "games"), p.searchParams.append("filter", `$and(flags=${a})`), p.searchParams.append("pagination", `offset=${j},limit=${X}`), fetch(p.href).then((P) => P.json()).then((P) => {
|
4711
|
-
r(6, b = !1), P.total > X && (j += 50, X += 50, r(22,
|
4676
|
+
r(6, b = !1), P.total > X && (j += 50, X += 50, r(22, Ae = !0));
|
4712
4677
|
let M = P.items.map((R) => ({
|
4713
4678
|
id: R.id,
|
4714
4679
|
name: R.name,
|
4715
4680
|
icon: R.icon ? R.icon : R.vendors?.items[0]?.subVendors[0]?.logo,
|
4716
|
-
games: R.games.items.slice(0, 4).map((
|
4681
|
+
games: R.games.items.slice(0, 4).map((Ir) => Ir),
|
4717
4682
|
background: R.background,
|
4718
4683
|
flag: R.flags
|
4719
4684
|
}));
|
4720
|
-
r(3, m = [...m, ...M]), r(7,
|
4685
|
+
r(3, m = [...m, ...M]), r(7, x = m.length), wr();
|
4721
4686
|
});
|
4722
|
-
},
|
4687
|
+
}, wr = () => {
|
4723
4688
|
const p = N.getRootNode().host;
|
4724
4689
|
p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
|
4725
|
-
},
|
4690
|
+
}, at = (p) => {
|
4726
4691
|
L = [...g.children], L.forEach((P, M) => {
|
4727
4692
|
P.style.transform = `translateX(${100 * (p ? M - p : M)}%)`;
|
4728
|
-
}), D = L[0]?.getBoundingClientRect().width,
|
4729
|
-
},
|
4693
|
+
}), D = L[0]?.getBoundingClientRect().width, Tr();
|
4694
|
+
}, Tr = () => {
|
4730
4695
|
r(8, T = Math.floor(g.clientWidth / D));
|
4731
|
-
},
|
4732
|
-
|
4733
|
-
},
|
4734
|
-
|
4735
|
-
},
|
4736
|
-
|
4737
|
-
},
|
4696
|
+
}, ut = () => {
|
4697
|
+
at(S);
|
4698
|
+
}, Hr = () => {
|
4699
|
+
S === 0 ? S = x - T : S - T < -1 ? S = 0 : S--, ut();
|
4700
|
+
}, Cr = () => {
|
4701
|
+
S === x - T ? S = 0 : x - T < S + 1 ? S = x - T : S++, ut();
|
4702
|
+
}, lt = (p, P, M, R) => {
|
4738
4703
|
window.postMessage(
|
4739
4704
|
{
|
4740
4705
|
type: "OpenCollectionsProvidersGame",
|
@@ -4748,7 +4713,7 @@ function xo(e, t, r) {
|
|
4748
4713
|
context: "CollectionsProviders",
|
4749
4714
|
gameName: `${M}`
|
4750
4715
|
});
|
4751
|
-
},
|
4716
|
+
}, ht = (p) => {
|
4752
4717
|
window.postMessage(
|
4753
4718
|
{
|
4754
4719
|
type: "OpenCollectionsProvidersCategory",
|
@@ -4756,18 +4721,18 @@ function xo(e, t, r) {
|
|
4756
4721
|
},
|
4757
4722
|
window.location.href
|
4758
4723
|
);
|
4759
|
-
},
|
4760
|
-
|
4724
|
+
}, Pr = () => {
|
4725
|
+
Wi(s);
|
4761
4726
|
};
|
4762
|
-
|
4727
|
+
kr(() => (r(9, ot = ao(Er)), () => {
|
4763
4728
|
}));
|
4764
|
-
const
|
4765
|
-
function
|
4729
|
+
const Br = (p) => lt(p.gameId, p.launchUrl, p.name, p.subVendor), Ar = (p) => ht(p.id);
|
4730
|
+
function Or(p) {
|
4766
4731
|
_e[p ? "unshift" : "push"](() => {
|
4767
4732
|
g = p, r(4, g);
|
4768
4733
|
});
|
4769
4734
|
}
|
4770
|
-
function
|
4735
|
+
function Lr(p) {
|
4771
4736
|
_e[p ? "unshift" : "push"](() => {
|
4772
4737
|
N = p, r(5, N);
|
4773
4738
|
});
|
@@ -4776,14 +4741,14 @@ function xo(e, t, r) {
|
|
4776
4741
|
"endpoint" in p && r(15, i = p.endpoint), "datasource" in p && r(16, o = p.datasource), "lang" in p && r(17, s = p.lang), "type" in p && r(0, a = p.type), "titletype" in p && r(1, h = p.titletype), "clientstyling" in p && r(18, l = p.clientstyling), "clientstylingurl" in p && r(19, u = p.clientstylingurl), "translationurl" in p && r(20, f = p.translationurl), "collectionprovidersgamenames" in p && r(2, c = p.collectionprovidersgamenames), "mbsource" in p && r(21, d = p.mbsource);
|
4777
4742
|
}, e.$$.update = () => {
|
4778
4743
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4779
|
-
229376 && i && o && s &&
|
4780
|
-
24 && m && g &&
|
4781
|
-
131072 && s &&
|
4782
|
-
262176 && l && N &&
|
4783
|
-
524320 && u && N &&
|
4784
|
-
2097184 && N &&
|
4785
|
-
1048576 && f &&
|
4786
|
-
4194304 &&
|
4744
|
+
229376 && i && o && s && st(), e.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
4745
|
+
24 && m && g && at(), e.$$.dirty[0] & /*lang*/
|
4746
|
+
131072 && s && Pr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4747
|
+
262176 && l && N && uo(N, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4748
|
+
524320 && u && N && lo(N, u), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4749
|
+
2097184 && N && ho(N, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4750
|
+
1048576 && f && Sr(), e.$$.dirty[0] & /*paginationrequired*/
|
4751
|
+
4194304 && Ae && st();
|
4787
4752
|
}, [
|
4788
4753
|
a,
|
4789
4754
|
h,
|
@@ -4792,14 +4757,14 @@ function xo(e, t, r) {
|
|
4792
4757
|
g,
|
4793
4758
|
N,
|
4794
4759
|
b,
|
4795
|
-
|
4760
|
+
x,
|
4796
4761
|
T,
|
4797
|
-
|
4762
|
+
ot,
|
4798
4763
|
n,
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4764
|
+
Hr,
|
4765
|
+
Cr,
|
4766
|
+
lt,
|
4767
|
+
ht,
|
4803
4768
|
i,
|
4804
4769
|
o,
|
4805
4770
|
s,
|
@@ -4807,21 +4772,21 @@ function xo(e, t, r) {
|
|
4807
4772
|
u,
|
4808
4773
|
f,
|
4809
4774
|
d,
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4775
|
+
Ae,
|
4776
|
+
Br,
|
4777
|
+
Ar,
|
4778
|
+
Or,
|
4779
|
+
Lr
|
4815
4780
|
];
|
4816
4781
|
}
|
4817
|
-
class
|
4782
|
+
class vo extends tn {
|
4818
4783
|
constructor(t) {
|
4819
|
-
super(),
|
4784
|
+
super(), Kr(
|
4820
4785
|
this,
|
4821
4786
|
t,
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4787
|
+
yo,
|
4788
|
+
go,
|
4789
|
+
jt,
|
4825
4790
|
{
|
4826
4791
|
endpoint: 15,
|
4827
4792
|
datasource: 16,
|
@@ -4834,7 +4799,7 @@ class So extends sn {
|
|
4834
4799
|
collectionprovidersgamenames: 2,
|
4835
4800
|
mbsource: 21
|
4836
4801
|
},
|
4837
|
-
|
4802
|
+
co,
|
4838
4803
|
[-1, -1]
|
4839
4804
|
);
|
4840
4805
|
}
|
@@ -4899,7 +4864,7 @@ class So extends sn {
|
|
4899
4864
|
this.$$set({ mbsource: t }), O();
|
4900
4865
|
}
|
4901
4866
|
}
|
4902
|
-
|
4867
|
+
en(vo, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
4903
4868
|
export {
|
4904
|
-
|
4869
|
+
vo as C
|
4905
4870
|
};
|