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