@everymatrix/casino-providers 1.86.1 → 1.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoProviders-eJAMNumv.js → CasinoProviders-BkeGsHDc.js} +537 -541
- package/components/{CasinoProviders-CVEnVTrV.js → CasinoProviders-CY8sq6_T.js} +545 -549
- package/components/CasinoProviders-DW6hh65X.cjs +16 -0
- package/es2015/casino-providers.cjs +1 -1
- package/es2015/casino-providers.js +1 -1
- package/esnext/casino-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoProviders-B89EAnzR.cjs +0 -3
|
@@ -2,15 +2,15 @@ var Qt = Object.defineProperty, qt = Object.defineProperties;
|
|
|
2
2
|
var Jt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ze = Object.getOwnPropertySymbols;
|
|
4
4
|
var Yt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var ye = (e, t, r) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Yt.call(t, r) &&
|
|
7
|
+
Yt.call(t, r) && ye(e, r, t[r]);
|
|
8
8
|
if (Ze)
|
|
9
9
|
for (var r of Ze(t))
|
|
10
|
-
Kt.call(t, r) &&
|
|
10
|
+
Kt.call(t, r) && ye(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, qe = (e, t) => qt(e, Jt(t));
|
|
13
|
-
var I = (e, t, r) => (
|
|
13
|
+
var I = (e, t, r) => (ye(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -35,23 +35,23 @@ function _t(e) {
|
|
|
35
35
|
function Ye() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function oe(e) {
|
|
39
39
|
e.forEach(_t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function je(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function xt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let ue;
|
|
48
|
+
function pe(e, t) {
|
|
49
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
50
50
|
}
|
|
51
51
|
function er(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function yt(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -61,7 +61,7 @@ function xt(e, ...t) {
|
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
63
|
function tr(e, t, r) {
|
|
64
|
-
e.$$.on_destroy.push(
|
|
64
|
+
e.$$.on_destroy.push(yt(t, r));
|
|
65
65
|
}
|
|
66
66
|
function y(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
@@ -106,7 +106,7 @@ function A(e) {
|
|
|
106
106
|
function R(e) {
|
|
107
107
|
return document.createTextNode(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function U() {
|
|
110
110
|
return R(" ");
|
|
111
111
|
}
|
|
112
112
|
function sr() {
|
|
@@ -121,7 +121,7 @@ function S(e, t, r) {
|
|
|
121
121
|
function or(e) {
|
|
122
122
|
return Array.from(e.childNodes);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function F(e, t) {
|
|
125
125
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
126
126
|
t);
|
|
127
127
|
}
|
|
@@ -134,82 +134,82 @@ function ar(e) {
|
|
|
134
134
|
}
|
|
135
135
|
), t;
|
|
136
136
|
}
|
|
137
|
-
let
|
|
138
|
-
function
|
|
139
|
-
|
|
137
|
+
let ke;
|
|
138
|
+
function ne(e) {
|
|
139
|
+
ke = e;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
141
|
+
const W = [], we = [];
|
|
142
|
+
let Z = [];
|
|
143
143
|
const et = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
144
|
-
let
|
|
144
|
+
let Ne = !1;
|
|
145
145
|
function hr() {
|
|
146
|
-
|
|
146
|
+
Ne || (Ne = !0, ur.then(D));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function Le(e) {
|
|
149
|
+
Z.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
if (
|
|
151
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
152
|
+
let X = 0;
|
|
153
|
+
function D() {
|
|
154
|
+
if (X !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = ke;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
159
|
+
for (; X < W.length; ) {
|
|
160
|
+
const t = W[X];
|
|
161
|
+
X++, ne(t), lr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw W.length = 0, X = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
166
|
+
for (ne(null), W.length = 0, X = 0; we.length; )
|
|
167
|
+
we.pop()();
|
|
168
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
169
|
+
const r = Z[t];
|
|
170
|
+
Pe.has(r) || (Pe.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
172
|
+
Z.length = 0;
|
|
173
|
+
} while (W.length);
|
|
174
174
|
for (; et.length; )
|
|
175
175
|
et.pop()();
|
|
176
|
-
|
|
176
|
+
Ne = !1, Pe.clear(), ne(e);
|
|
177
177
|
}
|
|
178
178
|
function lr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), oe(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function fr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
188
188
|
}
|
|
189
189
|
const cr = /* @__PURE__ */ new Set();
|
|
190
|
-
function
|
|
190
|
+
function mr(e, t) {
|
|
191
191
|
e && e.i && (cr.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function he(e) {
|
|
194
194
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function pr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const s = e.$$.on_mount.map(_t).filter(
|
|
200
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
201
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), Le(() => {
|
|
199
|
+
const s = e.$$.on_mount.map(_t).filter(je);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(Le);
|
|
202
202
|
}
|
|
203
203
|
function dr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (fr(r.after_update),
|
|
205
|
+
r.fragment !== null && (fr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
207
|
function gr(e, t) {
|
|
208
|
-
e.$$.dirty[0] === -1 && (
|
|
208
|
+
e.$$.dirty[0] === -1 && (W.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
210
|
function br(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
211
|
-
const h =
|
|
212
|
-
|
|
211
|
+
const h = ke;
|
|
212
|
+
ne(e);
|
|
213
213
|
const a = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
@@ -236,15 +236,15 @@ function br(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
236
236
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
|
|
237
237
|
const d = g.length ? g[0] : f;
|
|
238
238
|
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && gr(e, c)), f;
|
|
239
|
-
}) : [], a.update(), l = !0,
|
|
239
|
+
}) : [], a.update(), l = !0, oe(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
241
|
const c = or(t.target);
|
|
242
242
|
a.fragment && a.fragment.l(c), c.forEach(C);
|
|
243
243
|
} else
|
|
244
244
|
a.fragment && a.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && mr(e.$$.fragment), pr(e, t.target, t.anchor), D();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
ne(h);
|
|
248
248
|
}
|
|
249
249
|
let Ht;
|
|
250
250
|
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
313
313
|
s in n && (r[s] = [t(s)]);
|
|
314
314
|
for (const s of this.attributes) {
|
|
315
315
|
const o = this.$$g_p(s.name);
|
|
316
|
-
o in this.$$d || (this.$$d[o] =
|
|
316
|
+
o in this.$$d || (this.$$d[o] = fe(o, s.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const s in this.$$p_d)
|
|
319
319
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
330
330
|
this.$$r = !0;
|
|
331
331
|
for (const s in this.$$p_d)
|
|
332
332
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
333
|
-
const o =
|
|
333
|
+
const o = fe(
|
|
334
334
|
s,
|
|
335
335
|
this.$$d[s],
|
|
336
336
|
this.$$p_d,
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(t, r, n) {
|
|
356
356
|
var i;
|
|
357
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
357
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
358
358
|
}
|
|
359
359
|
disconnectedCallback() {
|
|
360
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
367
367
|
) || t;
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
370
|
+
function fe(e, t, r, n) {
|
|
371
371
|
var s;
|
|
372
372
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
373
373
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -415,7 +415,7 @@ function vr(e, t, r, n, i, s) {
|
|
|
415
415
|
},
|
|
416
416
|
set(h) {
|
|
417
417
|
var a;
|
|
418
|
-
h =
|
|
418
|
+
h = fe(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}), n.forEach((u) => {
|
|
@@ -458,7 +458,7 @@ class Er {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!je(r))
|
|
462
462
|
return $;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -585,24 +585,24 @@ const tt = {
|
|
|
585
585
|
loading: "Loading, please wait...",
|
|
586
586
|
games: "games"
|
|
587
587
|
}
|
|
588
|
-
},
|
|
589
|
-
function
|
|
588
|
+
}, z = [];
|
|
589
|
+
function xr(e, t) {
|
|
590
590
|
return {
|
|
591
|
-
subscribe:
|
|
591
|
+
subscribe: be(e, t).subscribe
|
|
592
592
|
};
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function be(e, t = $) {
|
|
595
595
|
let r;
|
|
596
596
|
const n = /* @__PURE__ */ new Set();
|
|
597
597
|
function i(u) {
|
|
598
|
-
if (
|
|
599
|
-
const h = !
|
|
598
|
+
if (xt(e, u) && (e = u, r)) {
|
|
599
|
+
const h = !z.length;
|
|
600
600
|
for (const a of n)
|
|
601
|
-
a[1](),
|
|
601
|
+
a[1](), z.push(a, e);
|
|
602
602
|
if (h) {
|
|
603
|
-
for (let a = 0; a <
|
|
604
|
-
|
|
605
|
-
|
|
603
|
+
for (let a = 0; a < z.length; a += 2)
|
|
604
|
+
z[a][0](z[a + 1]);
|
|
605
|
+
z.length = 0;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
}
|
|
@@ -617,12 +617,12 @@ function Ee(e, t = $) {
|
|
|
617
617
|
}
|
|
618
618
|
return { set: i, update: s, subscribe: o };
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function K(e, t, r) {
|
|
621
621
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
622
622
|
if (!i.every(Boolean))
|
|
623
623
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
624
624
|
const s = t.length < 2;
|
|
625
|
-
return
|
|
625
|
+
return xr(r, (o, u) => {
|
|
626
626
|
let h = !1;
|
|
627
627
|
const a = [];
|
|
628
628
|
let l = 0, c = $;
|
|
@@ -631,24 +631,24 @@ function ee(e, t, r) {
|
|
|
631
631
|
return;
|
|
632
632
|
c();
|
|
633
633
|
const d = t(n ? a[0] : a, o, u);
|
|
634
|
-
s ? o(d) : c =
|
|
634
|
+
s ? o(d) : c = je(d) ? d : $;
|
|
635
635
|
}, g = i.map(
|
|
636
|
-
(d,
|
|
636
|
+
(d, m) => yt(
|
|
637
637
|
d,
|
|
638
638
|
(v) => {
|
|
639
|
-
a[
|
|
639
|
+
a[m] = v, l &= ~(1 << m), h && f();
|
|
640
640
|
},
|
|
641
641
|
() => {
|
|
642
|
-
l |= 1 <<
|
|
642
|
+
l |= 1 << m;
|
|
643
643
|
}
|
|
644
644
|
)
|
|
645
645
|
);
|
|
646
646
|
return h = !0, f(), function() {
|
|
647
|
-
|
|
647
|
+
oe(g), c(), h = !1;
|
|
648
648
|
};
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function yr(e) {
|
|
652
652
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
653
653
|
}
|
|
654
654
|
var Pr = function(t) {
|
|
@@ -668,19 +668,19 @@ function Ar(e) {
|
|
|
668
668
|
function Or(e) {
|
|
669
669
|
return Array.isArray(e) ? [] : {};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
671
|
+
function ie(e, t) {
|
|
672
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Or(e), e, t) : e;
|
|
673
673
|
}
|
|
674
674
|
function wr(e, t, r) {
|
|
675
675
|
return e.concat(t).map(function(n) {
|
|
676
|
-
return
|
|
676
|
+
return ie(n, r);
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
679
|
function Nr(e, t) {
|
|
680
680
|
if (!t.customMerge)
|
|
681
|
-
return
|
|
681
|
+
return Q;
|
|
682
682
|
var r = t.customMerge(e);
|
|
683
|
-
return typeof r == "function" ? r :
|
|
683
|
+
return typeof r == "function" ? r : Q;
|
|
684
684
|
}
|
|
685
685
|
function Lr(e) {
|
|
686
686
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -703,51 +703,65 @@ function Ir(e, t) {
|
|
|
703
703
|
function Cr(e, t, r) {
|
|
704
704
|
var n = {};
|
|
705
705
|
return r.isMergeableObject(e) && rt(e).forEach(function(i) {
|
|
706
|
-
n[i] =
|
|
706
|
+
n[i] = ie(e[i], r);
|
|
707
707
|
}), rt(t).forEach(function(i) {
|
|
708
|
-
Ir(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] =
|
|
708
|
+
Ir(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
709
709
|
}), n;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || wr, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified =
|
|
711
|
+
function Q(e, t, r) {
|
|
712
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || wr, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
713
713
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
714
|
-
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) :
|
|
714
|
+
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : ie(t, r);
|
|
715
715
|
}
|
|
716
|
-
|
|
716
|
+
Q.all = function(t, r) {
|
|
717
717
|
if (!Array.isArray(t))
|
|
718
718
|
throw new Error("first argument should be an array");
|
|
719
719
|
return t.reduce(function(n, i) {
|
|
720
|
-
return
|
|
720
|
+
return Q(n, i, r);
|
|
721
721
|
}, {});
|
|
722
722
|
};
|
|
723
|
-
var Mr =
|
|
724
|
-
const Rr = /* @__PURE__ */
|
|
725
|
-
|
|
726
|
-
|
|
723
|
+
var Mr = Q, $r = Mr;
|
|
724
|
+
const Rr = /* @__PURE__ */ yr($r);
|
|
725
|
+
/*! *****************************************************************************
|
|
726
|
+
Copyright (c) Microsoft Corporation.
|
|
727
|
+
|
|
728
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
729
|
+
purpose with or without fee is hereby granted.
|
|
730
|
+
|
|
731
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
732
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
733
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
734
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
735
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
736
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
737
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
738
|
+
***************************************************************************** */
|
|
739
|
+
var Ie = function(e, t) {
|
|
740
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
727
741
|
r.__proto__ = n;
|
|
728
742
|
} || function(r, n) {
|
|
729
743
|
for (var i in n)
|
|
730
744
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
731
|
-
},
|
|
745
|
+
}, Ie(e, t);
|
|
732
746
|
};
|
|
733
|
-
function
|
|
747
|
+
function ve(e, t) {
|
|
734
748
|
if (typeof t != "function" && t !== null)
|
|
735
749
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
736
|
-
|
|
750
|
+
Ie(e, t);
|
|
737
751
|
function r() {
|
|
738
752
|
this.constructor = e;
|
|
739
753
|
}
|
|
740
754
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
741
755
|
}
|
|
742
|
-
var
|
|
743
|
-
return
|
|
756
|
+
var x = function() {
|
|
757
|
+
return x = Object.assign || function(t) {
|
|
744
758
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
745
759
|
r = arguments[n];
|
|
746
760
|
for (var s in r)
|
|
747
761
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
748
762
|
}
|
|
749
763
|
return t;
|
|
750
|
-
},
|
|
764
|
+
}, x.apply(this, arguments);
|
|
751
765
|
};
|
|
752
766
|
function Ur(e, t) {
|
|
753
767
|
var r = {};
|
|
@@ -758,14 +772,14 @@ function Ur(e, t) {
|
|
|
758
772
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
759
773
|
return r;
|
|
760
774
|
}
|
|
761
|
-
function
|
|
762
|
-
if (
|
|
775
|
+
function He(e, t, r) {
|
|
776
|
+
if (arguments.length === 2)
|
|
763
777
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
764
778
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
765
|
-
return e.concat(s ||
|
|
779
|
+
return e.concat(s || t);
|
|
766
780
|
}
|
|
767
|
-
function
|
|
768
|
-
var r = t && t.cache ? t.cache :
|
|
781
|
+
function Te(e, t) {
|
|
782
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Dr;
|
|
769
783
|
return i(e, {
|
|
770
784
|
cache: r,
|
|
771
785
|
serializer: n
|
|
@@ -774,103 +788,95 @@ function Be(e, t) {
|
|
|
774
788
|
function Gr(e) {
|
|
775
789
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
776
790
|
}
|
|
777
|
-
function
|
|
791
|
+
function St(e, t, r, n) {
|
|
778
792
|
var i = Gr(n) ? n : r(n), s = t.get(i);
|
|
779
793
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
780
794
|
}
|
|
781
|
-
function
|
|
795
|
+
function Bt(e, t, r) {
|
|
782
796
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
783
797
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
784
798
|
}
|
|
785
|
-
function
|
|
799
|
+
function Ve(e, t, r, n, i) {
|
|
786
800
|
return r.bind(t, e, n, i);
|
|
787
801
|
}
|
|
802
|
+
function Dr(e, t) {
|
|
803
|
+
var r = e.length === 1 ? St : Bt;
|
|
804
|
+
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
805
|
+
}
|
|
788
806
|
function Fr(e, t) {
|
|
789
|
-
|
|
790
|
-
return Bt(e, this, r, t.cache.create(), t.serializer);
|
|
807
|
+
return Ve(e, this, Bt, t.cache.create(), t.serializer);
|
|
791
808
|
}
|
|
792
809
|
function jr(e, t) {
|
|
793
|
-
return
|
|
810
|
+
return Ve(e, this, St, t.cache.create(), t.serializer);
|
|
794
811
|
}
|
|
795
812
|
var kr = function() {
|
|
796
813
|
return JSON.stringify(arguments);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}()
|
|
809
|
-
), Xr = {
|
|
814
|
+
};
|
|
815
|
+
function Xe() {
|
|
816
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
817
|
+
}
|
|
818
|
+
Xe.prototype.get = function(e) {
|
|
819
|
+
return this.cache[e];
|
|
820
|
+
};
|
|
821
|
+
Xe.prototype.set = function(e, t) {
|
|
822
|
+
this.cache[e] = t;
|
|
823
|
+
};
|
|
824
|
+
var Vr = {
|
|
810
825
|
create: function() {
|
|
811
|
-
return new
|
|
826
|
+
return new Xe();
|
|
812
827
|
}
|
|
813
|
-
},
|
|
814
|
-
variadic:
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
818
|
-
r = arguments[n];
|
|
819
|
-
for (var s in r)
|
|
820
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
821
|
-
}
|
|
822
|
-
return t;
|
|
823
|
-
}, ge.apply(this, arguments);
|
|
824
|
-
};
|
|
825
|
-
var E;
|
|
828
|
+
}, Se = {
|
|
829
|
+
variadic: Fr,
|
|
830
|
+
monadic: jr
|
|
831
|
+
}, E;
|
|
826
832
|
(function(e) {
|
|
827
833
|
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";
|
|
828
834
|
})(E || (E = {}));
|
|
829
|
-
var
|
|
835
|
+
var P;
|
|
830
836
|
(function(e) {
|
|
831
837
|
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";
|
|
832
|
-
})(
|
|
833
|
-
var
|
|
838
|
+
})(P || (P = {}));
|
|
839
|
+
var q;
|
|
834
840
|
(function(e) {
|
|
835
841
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
836
|
-
})(
|
|
842
|
+
})(q || (q = {}));
|
|
837
843
|
function nt(e) {
|
|
838
|
-
return e.type ===
|
|
844
|
+
return e.type === P.literal;
|
|
839
845
|
}
|
|
840
|
-
function
|
|
841
|
-
return e.type ===
|
|
846
|
+
function Xr(e) {
|
|
847
|
+
return e.type === P.argument;
|
|
842
848
|
}
|
|
843
849
|
function At(e) {
|
|
844
|
-
return e.type ===
|
|
850
|
+
return e.type === P.number;
|
|
845
851
|
}
|
|
846
852
|
function Ot(e) {
|
|
847
|
-
return e.type ===
|
|
853
|
+
return e.type === P.date;
|
|
848
854
|
}
|
|
849
855
|
function wt(e) {
|
|
850
|
-
return e.type ===
|
|
856
|
+
return e.type === P.time;
|
|
851
857
|
}
|
|
852
858
|
function Nt(e) {
|
|
853
|
-
return e.type ===
|
|
859
|
+
return e.type === P.select;
|
|
854
860
|
}
|
|
855
861
|
function Lt(e) {
|
|
856
|
-
return e.type ===
|
|
862
|
+
return e.type === P.plural;
|
|
857
863
|
}
|
|
858
|
-
function
|
|
859
|
-
return e.type ===
|
|
864
|
+
function zr(e) {
|
|
865
|
+
return e.type === P.pound;
|
|
860
866
|
}
|
|
861
867
|
function It(e) {
|
|
862
|
-
return e.type ===
|
|
868
|
+
return e.type === P.tag;
|
|
863
869
|
}
|
|
864
870
|
function Ct(e) {
|
|
865
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
871
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
866
872
|
}
|
|
867
|
-
function
|
|
868
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
873
|
+
function Ce(e) {
|
|
874
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
869
875
|
}
|
|
870
|
-
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
871
|
-
function
|
|
876
|
+
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
|
|
877
|
+
function Zr(e) {
|
|
872
878
|
var t = {};
|
|
873
|
-
return e.replace(
|
|
879
|
+
return e.replace(Wr, function(r) {
|
|
874
880
|
var n = r.length;
|
|
875
881
|
switch (r[0]) {
|
|
876
882
|
case "G":
|
|
@@ -959,21 +965,11 @@ function Qr(e) {
|
|
|
959
965
|
return "";
|
|
960
966
|
}), t;
|
|
961
967
|
}
|
|
962
|
-
var
|
|
963
|
-
|
|
964
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
965
|
-
r = arguments[n];
|
|
966
|
-
for (var s in r)
|
|
967
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
968
|
-
}
|
|
969
|
-
return t;
|
|
970
|
-
}, T.apply(this, arguments);
|
|
971
|
-
};
|
|
972
|
-
var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
973
|
-
function Jr(e) {
|
|
968
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
969
|
+
function qr(e) {
|
|
974
970
|
if (e.length === 0)
|
|
975
971
|
throw new Error("Number skeleton cannot be empty");
|
|
976
|
-
for (var t = e.split(
|
|
972
|
+
for (var t = e.split(Qr).filter(function(f) {
|
|
977
973
|
return f.length > 0;
|
|
978
974
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
979
975
|
var s = i[n], o = s.split("/");
|
|
@@ -988,10 +984,10 @@ function Jr(e) {
|
|
|
988
984
|
}
|
|
989
985
|
return r;
|
|
990
986
|
}
|
|
991
|
-
function
|
|
987
|
+
function Jr(e) {
|
|
992
988
|
return e.replace(/^(.*?)-/, "");
|
|
993
989
|
}
|
|
994
|
-
var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
990
|
+
var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
995
991
|
function st(e) {
|
|
996
992
|
var t = {};
|
|
997
993
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
@@ -1038,7 +1034,7 @@ function Ut(e) {
|
|
|
1038
1034
|
};
|
|
1039
1035
|
}
|
|
1040
1036
|
}
|
|
1041
|
-
function
|
|
1037
|
+
function Kr(e) {
|
|
1042
1038
|
var t;
|
|
1043
1039
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1044
1040
|
notation: "engineering"
|
|
@@ -1056,7 +1052,7 @@ function ot(e) {
|
|
|
1056
1052
|
var t = {}, r = Ut(e);
|
|
1057
1053
|
return r || t;
|
|
1058
1054
|
}
|
|
1059
|
-
function
|
|
1055
|
+
function en(e) {
|
|
1060
1056
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1061
1057
|
var i = n[r];
|
|
1062
1058
|
switch (i.stem) {
|
|
@@ -1080,7 +1076,7 @@ function tn(e) {
|
|
|
1080
1076
|
continue;
|
|
1081
1077
|
case "measure-unit":
|
|
1082
1078
|
case "unit":
|
|
1083
|
-
t.style = "unit", t.unit =
|
|
1079
|
+
t.style = "unit", t.unit = Jr(i.options[0]);
|
|
1084
1080
|
continue;
|
|
1085
1081
|
case "compact-short":
|
|
1086
1082
|
case "K":
|
|
@@ -1091,13 +1087,13 @@ function tn(e) {
|
|
|
1091
1087
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1092
1088
|
continue;
|
|
1093
1089
|
case "scientific":
|
|
1094
|
-
t =
|
|
1095
|
-
return
|
|
1090
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
1091
|
+
return x(x({}, h), ot(a));
|
|
1096
1092
|
}, {}));
|
|
1097
1093
|
continue;
|
|
1098
1094
|
case "engineering":
|
|
1099
|
-
t =
|
|
1100
|
-
return
|
|
1095
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1096
|
+
return x(x({}, h), ot(a));
|
|
1101
1097
|
}, {}));
|
|
1102
1098
|
continue;
|
|
1103
1099
|
case "notation-simple":
|
|
@@ -1142,7 +1138,7 @@ function tn(e) {
|
|
|
1142
1138
|
case "integer-width":
|
|
1143
1139
|
if (i.options.length > 1)
|
|
1144
1140
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1145
|
-
i.options[0].replace(
|
|
1141
|
+
i.options[0].replace(Yr, function(h, a, l, c, f, g) {
|
|
1146
1142
|
if (a)
|
|
1147
1143
|
t.minimumIntegerDigits = l.length;
|
|
1148
1144
|
else {
|
|
@@ -1166,21 +1162,21 @@ function tn(e) {
|
|
|
1166
1162
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1167
1163
|
});
|
|
1168
1164
|
var s = i.options[0];
|
|
1169
|
-
s === "w" ? t =
|
|
1165
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), st(s)));
|
|
1170
1166
|
continue;
|
|
1171
1167
|
}
|
|
1172
1168
|
if ($t.test(i.stem)) {
|
|
1173
|
-
t =
|
|
1169
|
+
t = x(x({}, t), st(i.stem));
|
|
1174
1170
|
continue;
|
|
1175
1171
|
}
|
|
1176
1172
|
var o = Ut(i.stem);
|
|
1177
|
-
o && (t =
|
|
1178
|
-
var u =
|
|
1179
|
-
u && (t =
|
|
1173
|
+
o && (t = x(x({}, t), o));
|
|
1174
|
+
var u = Kr(i.stem);
|
|
1175
|
+
u && (t = x(x({}, t), u));
|
|
1180
1176
|
}
|
|
1181
1177
|
return t;
|
|
1182
1178
|
}
|
|
1183
|
-
var
|
|
1179
|
+
var le = {
|
|
1184
1180
|
"001": [
|
|
1185
1181
|
"H",
|
|
1186
1182
|
"h"
|
|
@@ -2595,13 +2591,13 @@ var fe = {
|
|
|
2595
2591
|
"h"
|
|
2596
2592
|
]
|
|
2597
2593
|
};
|
|
2598
|
-
function
|
|
2594
|
+
function tn(e, t) {
|
|
2599
2595
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2600
2596
|
var i = e.charAt(n);
|
|
2601
2597
|
if (i === "j") {
|
|
2602
2598
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2603
2599
|
s++, n++;
|
|
2604
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2600
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = rn(t);
|
|
2605
2601
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2606
2602
|
r += h;
|
|
2607
2603
|
for (; o-- > 0; )
|
|
@@ -2611,7 +2607,7 @@ function rn(e, t) {
|
|
|
2611
2607
|
}
|
|
2612
2608
|
return r;
|
|
2613
2609
|
}
|
|
2614
|
-
function
|
|
2610
|
+
function rn(e) {
|
|
2615
2611
|
var t = e.hourCycle;
|
|
2616
2612
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2617
2613
|
e.hourCycles && // @ts-ignore
|
|
@@ -2630,23 +2626,23 @@ function nn(e) {
|
|
|
2630
2626
|
}
|
|
2631
2627
|
var r = e.language, n;
|
|
2632
2628
|
r !== "root" && (n = e.maximize().region);
|
|
2633
|
-
var i =
|
|
2629
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2634
2630
|
return i[0];
|
|
2635
2631
|
}
|
|
2636
|
-
var
|
|
2632
|
+
var Be, nn = new RegExp("^".concat(Mt.source, "*")), sn = new RegExp("".concat(Mt.source, "*$"));
|
|
2637
2633
|
function _(e, t) {
|
|
2638
2634
|
return { start: e, end: t };
|
|
2639
2635
|
}
|
|
2640
|
-
var
|
|
2636
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, un = !!Object.fromEntries, hn = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2641
2637
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2642
|
-
},
|
|
2638
|
+
}, Me = !0;
|
|
2643
2639
|
try {
|
|
2644
|
-
var
|
|
2645
|
-
|
|
2640
|
+
var pn = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2641
|
+
Me = ((Be = pn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
2646
2642
|
} catch (e) {
|
|
2647
|
-
|
|
2643
|
+
Me = !1;
|
|
2648
2644
|
}
|
|
2649
|
-
var at =
|
|
2645
|
+
var at = on ? (
|
|
2650
2646
|
// Native
|
|
2651
2647
|
function(t, r, n) {
|
|
2652
2648
|
return t.startsWith(r, n);
|
|
@@ -2656,7 +2652,7 @@ var at = an ? (
|
|
|
2656
2652
|
function(t, r, n) {
|
|
2657
2653
|
return t.slice(n, n + r.length) === r;
|
|
2658
2654
|
}
|
|
2659
|
-
),
|
|
2655
|
+
), $e = an ? String.fromCodePoint : (
|
|
2660
2656
|
// IE11
|
|
2661
2657
|
function() {
|
|
2662
2658
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2670,7 +2666,7 @@ var at = an ? (
|
|
|
2670
2666
|
}
|
|
2671
2667
|
), ut = (
|
|
2672
2668
|
// native
|
|
2673
|
-
|
|
2669
|
+
un ? Object.fromEntries : (
|
|
2674
2670
|
// Ponyfill
|
|
2675
2671
|
function(t) {
|
|
2676
2672
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2680,7 +2676,7 @@ var at = an ? (
|
|
|
2680
2676
|
return r;
|
|
2681
2677
|
}
|
|
2682
2678
|
)
|
|
2683
|
-
), Gt =
|
|
2679
|
+
), Gt = hn ? (
|
|
2684
2680
|
// Native
|
|
2685
2681
|
function(t, r) {
|
|
2686
2682
|
return t.codePointAt(r);
|
|
@@ -2694,7 +2690,7 @@ var at = an ? (
|
|
|
2694
2690
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2695
2691
|
}
|
|
2696
2692
|
}
|
|
2697
|
-
),
|
|
2693
|
+
), dn = ln ? (
|
|
2698
2694
|
// Native
|
|
2699
2695
|
function(t) {
|
|
2700
2696
|
return t.trimStart();
|
|
@@ -2702,9 +2698,9 @@ var at = an ? (
|
|
|
2702
2698
|
) : (
|
|
2703
2699
|
// Ponyfill
|
|
2704
2700
|
function(t) {
|
|
2705
|
-
return t.replace(
|
|
2701
|
+
return t.replace(nn, "");
|
|
2706
2702
|
}
|
|
2707
|
-
),
|
|
2703
|
+
), gn = fn ? (
|
|
2708
2704
|
// Native
|
|
2709
2705
|
function(t) {
|
|
2710
2706
|
return t.trimEnd();
|
|
@@ -2712,32 +2708,32 @@ var at = an ? (
|
|
|
2712
2708
|
) : (
|
|
2713
2709
|
// Ponyfill
|
|
2714
2710
|
function(t) {
|
|
2715
|
-
return t.replace(
|
|
2711
|
+
return t.replace(sn, "");
|
|
2716
2712
|
}
|
|
2717
2713
|
);
|
|
2718
2714
|
function Dt(e, t) {
|
|
2719
2715
|
return new RegExp(e, t);
|
|
2720
2716
|
}
|
|
2721
|
-
var
|
|
2722
|
-
if (
|
|
2717
|
+
var Re;
|
|
2718
|
+
if (Me) {
|
|
2723
2719
|
var ht = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2724
|
-
|
|
2720
|
+
Re = function(t, r) {
|
|
2725
2721
|
var n;
|
|
2726
2722
|
ht.lastIndex = r;
|
|
2727
2723
|
var i = ht.exec(t);
|
|
2728
2724
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2729
2725
|
};
|
|
2730
2726
|
} else
|
|
2731
|
-
|
|
2727
|
+
Re = function(t, r) {
|
|
2732
2728
|
for (var n = []; ; ) {
|
|
2733
2729
|
var i = Gt(t, r);
|
|
2734
|
-
if (i === void 0 || Ft(i) ||
|
|
2730
|
+
if (i === void 0 || Ft(i) || _n(i))
|
|
2735
2731
|
break;
|
|
2736
2732
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2737
2733
|
}
|
|
2738
|
-
return
|
|
2734
|
+
return $e.apply(void 0, n);
|
|
2739
2735
|
};
|
|
2740
|
-
var
|
|
2736
|
+
var bn = (
|
|
2741
2737
|
/** @class */
|
|
2742
2738
|
function() {
|
|
2743
2739
|
function e(t, r) {
|
|
@@ -2761,14 +2757,14 @@ var vn = (
|
|
|
2761
2757
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2762
2758
|
var u = this.clonePosition();
|
|
2763
2759
|
this.bump(), i.push({
|
|
2764
|
-
type:
|
|
2760
|
+
type: P.pound,
|
|
2765
2761
|
location: _(u, this.clonePosition())
|
|
2766
2762
|
});
|
|
2767
2763
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2768
2764
|
if (n)
|
|
2769
2765
|
break;
|
|
2770
2766
|
return this.error(E.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2771
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2767
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2772
2768
|
var o = this.parseTag(t, r);
|
|
2773
2769
|
if (o.err)
|
|
2774
2770
|
return o;
|
|
@@ -2789,7 +2785,7 @@ var vn = (
|
|
|
2789
2785
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2790
2786
|
return {
|
|
2791
2787
|
val: {
|
|
2792
|
-
type:
|
|
2788
|
+
type: P.literal,
|
|
2793
2789
|
value: "<".concat(i, "/>"),
|
|
2794
2790
|
location: _(n, this.clonePosition())
|
|
2795
2791
|
},
|
|
@@ -2801,12 +2797,12 @@ var vn = (
|
|
|
2801
2797
|
return s;
|
|
2802
2798
|
var o = s.val, u = this.clonePosition();
|
|
2803
2799
|
if (this.bumpIf("</")) {
|
|
2804
|
-
if (this.isEOF() || !
|
|
2800
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2805
2801
|
return this.error(E.INVALID_TAG, _(u, this.clonePosition()));
|
|
2806
2802
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2807
2803
|
return i !== a ? this.error(E.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2808
2804
|
val: {
|
|
2809
|
-
type:
|
|
2805
|
+
type: P.tag,
|
|
2810
2806
|
value: i,
|
|
2811
2807
|
children: o,
|
|
2812
2808
|
location: _(n, this.clonePosition())
|
|
@@ -2819,7 +2815,7 @@ var vn = (
|
|
|
2819
2815
|
return this.error(E.INVALID_TAG, _(n, this.clonePosition()));
|
|
2820
2816
|
}, e.prototype.parseTagName = function() {
|
|
2821
2817
|
var t = this.offset();
|
|
2822
|
-
for (this.bump(); !this.isEOF() &&
|
|
2818
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2823
2819
|
this.bump();
|
|
2824
2820
|
return this.message.slice(t, this.offset());
|
|
2825
2821
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2843,12 +2839,12 @@ var vn = (
|
|
|
2843
2839
|
}
|
|
2844
2840
|
var h = _(n, this.clonePosition());
|
|
2845
2841
|
return {
|
|
2846
|
-
val: { type:
|
|
2842
|
+
val: { type: P.literal, value: i, location: h },
|
|
2847
2843
|
err: null
|
|
2848
2844
|
};
|
|
2849
2845
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2850
2846
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2851
|
-
!
|
|
2847
|
+
!vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2852
2848
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2853
2849
|
if (this.isEOF() || this.char() !== 39)
|
|
2854
2850
|
return null;
|
|
@@ -2882,12 +2878,12 @@ var vn = (
|
|
|
2882
2878
|
r.push(n);
|
|
2883
2879
|
this.bump();
|
|
2884
2880
|
}
|
|
2885
|
-
return
|
|
2881
|
+
return $e.apply(void 0, r);
|
|
2886
2882
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2887
2883
|
if (this.isEOF())
|
|
2888
2884
|
return null;
|
|
2889
2885
|
var n = this.char();
|
|
2890
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2886
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
|
|
2891
2887
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2892
2888
|
var n = this.clonePosition();
|
|
2893
2889
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2903,7 +2899,7 @@ var vn = (
|
|
|
2903
2899
|
case 125:
|
|
2904
2900
|
return this.bump(), {
|
|
2905
2901
|
val: {
|
|
2906
|
-
type:
|
|
2902
|
+
type: P.argument,
|
|
2907
2903
|
// value does not include the opening and closing braces.
|
|
2908
2904
|
value: i,
|
|
2909
2905
|
location: _(n, this.clonePosition())
|
|
@@ -2916,7 +2912,7 @@ var vn = (
|
|
|
2916
2912
|
return this.error(E.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2917
2913
|
}
|
|
2918
2914
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2919
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2915
|
+
var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
|
|
2920
2916
|
this.bumpTo(i);
|
|
2921
2917
|
var s = this.clonePosition(), o = _(t, s);
|
|
2922
2918
|
return { value: n, location: o };
|
|
@@ -2935,7 +2931,7 @@ var vn = (
|
|
|
2935
2931
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2936
2932
|
if (c.err)
|
|
2937
2933
|
return c;
|
|
2938
|
-
var f =
|
|
2934
|
+
var f = gn(c.val);
|
|
2939
2935
|
if (f.length === 0)
|
|
2940
2936
|
return this.error(E.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2941
2937
|
var g = _(l, this.clonePosition());
|
|
@@ -2944,37 +2940,37 @@ var vn = (
|
|
|
2944
2940
|
var d = this.tryParseArgumentClose(i);
|
|
2945
2941
|
if (d.err)
|
|
2946
2942
|
return d;
|
|
2947
|
-
var
|
|
2943
|
+
var m = _(i, this.clonePosition());
|
|
2948
2944
|
if (a && at(a == null ? void 0 : a.style, "::", 0)) {
|
|
2949
|
-
var v =
|
|
2945
|
+
var v = dn(a.style.slice(2));
|
|
2950
2946
|
if (u === "number") {
|
|
2951
2947
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2952
2948
|
return c.err ? c : {
|
|
2953
|
-
val: { type:
|
|
2949
|
+
val: { type: P.number, value: n, location: m, style: c.val },
|
|
2954
2950
|
err: null
|
|
2955
2951
|
};
|
|
2956
2952
|
} else {
|
|
2957
2953
|
if (v.length === 0)
|
|
2958
|
-
return this.error(E.EXPECT_DATE_TIME_SKELETON,
|
|
2959
|
-
var
|
|
2960
|
-
this.locale && (
|
|
2954
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, m);
|
|
2955
|
+
var p = v;
|
|
2956
|
+
this.locale && (p = tn(v, this.locale));
|
|
2961
2957
|
var f = {
|
|
2962
|
-
type:
|
|
2963
|
-
pattern:
|
|
2958
|
+
type: q.dateTime,
|
|
2959
|
+
pattern: p,
|
|
2964
2960
|
location: a.styleLocation,
|
|
2965
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2966
|
-
},
|
|
2961
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(p) : {}
|
|
2962
|
+
}, H = u === "date" ? P.date : P.time;
|
|
2967
2963
|
return {
|
|
2968
|
-
val: { type:
|
|
2964
|
+
val: { type: H, value: n, location: m, style: f },
|
|
2969
2965
|
err: null
|
|
2970
2966
|
};
|
|
2971
2967
|
}
|
|
2972
2968
|
}
|
|
2973
2969
|
return {
|
|
2974
2970
|
val: {
|
|
2975
|
-
type: u === "number" ?
|
|
2971
|
+
type: u === "number" ? P.number : u === "date" ? P.date : P.time,
|
|
2976
2972
|
value: n,
|
|
2977
|
-
location:
|
|
2973
|
+
location: m,
|
|
2978
2974
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
2979
2975
|
},
|
|
2980
2976
|
err: null
|
|
@@ -2985,9 +2981,9 @@ var vn = (
|
|
|
2985
2981
|
case "select": {
|
|
2986
2982
|
var B = this.clonePosition();
|
|
2987
2983
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2988
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B,
|
|
2984
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
|
|
2989
2985
|
this.bumpSpace();
|
|
2990
|
-
var O = this.parseIdentifierIfPossible(),
|
|
2986
|
+
var O = this.parseIdentifierIfPossible(), T = 0;
|
|
2991
2987
|
if (u !== "select" && O.value === "offset") {
|
|
2992
2988
|
if (!this.bumpIf(":"))
|
|
2993
2989
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -2995,7 +2991,7 @@ var vn = (
|
|
|
2995
2991
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2996
2992
|
if (c.err)
|
|
2997
2993
|
return c;
|
|
2998
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
2994
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = c.val;
|
|
2999
2995
|
}
|
|
3000
2996
|
var N = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
3001
2997
|
if (N.err)
|
|
@@ -3006,7 +3002,7 @@ var vn = (
|
|
|
3006
3002
|
var b = _(i, this.clonePosition());
|
|
3007
3003
|
return u === "select" ? {
|
|
3008
3004
|
val: {
|
|
3009
|
-
type:
|
|
3005
|
+
type: P.select,
|
|
3010
3006
|
value: n,
|
|
3011
3007
|
options: ut(N.val),
|
|
3012
3008
|
location: b
|
|
@@ -3014,10 +3010,10 @@ var vn = (
|
|
|
3014
3010
|
err: null
|
|
3015
3011
|
} : {
|
|
3016
3012
|
val: {
|
|
3017
|
-
type:
|
|
3013
|
+
type: P.plural,
|
|
3018
3014
|
value: n,
|
|
3019
3015
|
options: ut(N.val),
|
|
3020
|
-
offset:
|
|
3016
|
+
offset: T,
|
|
3021
3017
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3022
3018
|
location: b
|
|
3023
3019
|
},
|
|
@@ -3067,16 +3063,16 @@ var vn = (
|
|
|
3067
3063
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3068
3064
|
var n = [];
|
|
3069
3065
|
try {
|
|
3070
|
-
n =
|
|
3066
|
+
n = qr(t);
|
|
3071
3067
|
} catch (i) {
|
|
3072
3068
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3073
3069
|
}
|
|
3074
3070
|
return {
|
|
3075
3071
|
val: {
|
|
3076
|
-
type:
|
|
3072
|
+
type: q.number,
|
|
3077
3073
|
tokens: n,
|
|
3078
3074
|
location: r,
|
|
3079
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3075
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
3080
3076
|
},
|
|
3081
3077
|
err: null
|
|
3082
3078
|
};
|
|
@@ -3101,9 +3097,9 @@ var vn = (
|
|
|
3101
3097
|
var d = this.parseMessage(t + 1, r, n);
|
|
3102
3098
|
if (d.err)
|
|
3103
3099
|
return d;
|
|
3104
|
-
var
|
|
3105
|
-
if (
|
|
3106
|
-
return
|
|
3100
|
+
var m = this.tryParseArgumentClose(g);
|
|
3101
|
+
if (m.err)
|
|
3102
|
+
return m;
|
|
3107
3103
|
u.push([
|
|
3108
3104
|
a,
|
|
3109
3105
|
{
|
|
@@ -3190,47 +3186,47 @@ var vn = (
|
|
|
3190
3186
|
}, e;
|
|
3191
3187
|
}()
|
|
3192
3188
|
);
|
|
3193
|
-
function
|
|
3189
|
+
function Ue(e) {
|
|
3194
3190
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3195
3191
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3192
|
+
function vn(e) {
|
|
3193
|
+
return Ue(e) || e === 47;
|
|
3198
3194
|
}
|
|
3199
|
-
function
|
|
3195
|
+
function En(e) {
|
|
3200
3196
|
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;
|
|
3201
3197
|
}
|
|
3202
3198
|
function Ft(e) {
|
|
3203
3199
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3204
3200
|
}
|
|
3205
|
-
function
|
|
3201
|
+
function _n(e) {
|
|
3206
3202
|
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;
|
|
3207
3203
|
}
|
|
3208
|
-
function
|
|
3204
|
+
function Ge(e) {
|
|
3209
3205
|
e.forEach(function(t) {
|
|
3210
3206
|
if (delete t.location, Nt(t) || Lt(t))
|
|
3211
3207
|
for (var r in t.options)
|
|
3212
|
-
delete t.options[r].location,
|
|
3208
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3213
3209
|
else
|
|
3214
|
-
At(t) && Ct(t.style) || (Ot(t) || wt(t)) &&
|
|
3210
|
+
At(t) && Ct(t.style) || (Ot(t) || wt(t)) && Ce(t.style) ? delete t.style.location : It(t) && Ge(t.children);
|
|
3215
3211
|
});
|
|
3216
3212
|
}
|
|
3217
3213
|
function xn(e, t) {
|
|
3218
|
-
t === void 0 && (t = {}), t =
|
|
3219
|
-
var r = new
|
|
3214
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3215
|
+
var r = new bn(e, t).parse();
|
|
3220
3216
|
if (r.err) {
|
|
3221
3217
|
var n = SyntaxError(E[r.err.kind]);
|
|
3222
3218
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3223
3219
|
}
|
|
3224
|
-
return t != null && t.captureLocation ||
|
|
3220
|
+
return t != null && t.captureLocation || Ge(r.val), r.val;
|
|
3225
3221
|
}
|
|
3226
|
-
var
|
|
3222
|
+
var J;
|
|
3227
3223
|
(function(e) {
|
|
3228
3224
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3229
|
-
})(
|
|
3230
|
-
var
|
|
3225
|
+
})(J || (J = {}));
|
|
3226
|
+
var Ee = (
|
|
3231
3227
|
/** @class */
|
|
3232
3228
|
function(e) {
|
|
3233
|
-
|
|
3229
|
+
ve(t, e);
|
|
3234
3230
|
function t(r, n, i) {
|
|
3235
3231
|
var s = e.call(this, r) || this;
|
|
3236
3232
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3242,44 +3238,44 @@ var ye = (
|
|
|
3242
3238
|
), lt = (
|
|
3243
3239
|
/** @class */
|
|
3244
3240
|
function(e) {
|
|
3245
|
-
|
|
3241
|
+
ve(t, e);
|
|
3246
3242
|
function t(r, n, i, s) {
|
|
3247
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3243
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3248
3244
|
}
|
|
3249
3245
|
return t;
|
|
3250
|
-
}(
|
|
3251
|
-
),
|
|
3246
|
+
}(Ee)
|
|
3247
|
+
), yn = (
|
|
3252
3248
|
/** @class */
|
|
3253
3249
|
function(e) {
|
|
3254
|
-
|
|
3250
|
+
ve(t, e);
|
|
3255
3251
|
function t(r, n, i) {
|
|
3256
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3252
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3257
3253
|
}
|
|
3258
3254
|
return t;
|
|
3259
|
-
}(
|
|
3260
|
-
),
|
|
3255
|
+
}(Ee)
|
|
3256
|
+
), Pn = (
|
|
3261
3257
|
/** @class */
|
|
3262
3258
|
function(e) {
|
|
3263
|
-
|
|
3259
|
+
ve(t, e);
|
|
3264
3260
|
function t(r, n) {
|
|
3265
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3261
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3266
3262
|
}
|
|
3267
3263
|
return t;
|
|
3268
|
-
}(
|
|
3264
|
+
}(Ee)
|
|
3269
3265
|
), w;
|
|
3270
3266
|
(function(e) {
|
|
3271
3267
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3272
3268
|
})(w || (w = {}));
|
|
3273
|
-
function
|
|
3269
|
+
function Hn(e) {
|
|
3274
3270
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3275
3271
|
var n = t[t.length - 1];
|
|
3276
3272
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3277
3273
|
}, []);
|
|
3278
3274
|
}
|
|
3279
|
-
function
|
|
3275
|
+
function Tn(e) {
|
|
3280
3276
|
return typeof e == "function";
|
|
3281
3277
|
}
|
|
3282
|
-
function
|
|
3278
|
+
function ce(e, t, r, n, i, s, o) {
|
|
3283
3279
|
if (e.length === 1 && nt(e[0]))
|
|
3284
3280
|
return [
|
|
3285
3281
|
{
|
|
@@ -3296,7 +3292,7 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3296
3292
|
});
|
|
3297
3293
|
continue;
|
|
3298
3294
|
}
|
|
3299
|
-
if (
|
|
3295
|
+
if (zr(l)) {
|
|
3300
3296
|
typeof s == "number" && u.push({
|
|
3301
3297
|
type: w.literal,
|
|
3302
3298
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3305,9 +3301,9 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3305
3301
|
}
|
|
3306
3302
|
var c = l.value;
|
|
3307
3303
|
if (!(i && c in i))
|
|
3308
|
-
throw new
|
|
3304
|
+
throw new Pn(c, o);
|
|
3309
3305
|
var f = i[c];
|
|
3310
|
-
if (
|
|
3306
|
+
if (Xr(l)) {
|
|
3311
3307
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3312
3308
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3313
3309
|
value: f
|
|
@@ -3315,7 +3311,7 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3315
3311
|
continue;
|
|
3316
3312
|
}
|
|
3317
3313
|
if (Ot(l)) {
|
|
3318
|
-
var g = typeof l.style == "string" ? n.date[l.style] :
|
|
3314
|
+
var g = typeof l.style == "string" ? n.date[l.style] : Ce(l.style) ? l.style.parsedOptions : void 0;
|
|
3319
3315
|
u.push({
|
|
3320
3316
|
type: w.literal,
|
|
3321
3317
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
@@ -3323,7 +3319,7 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3323
3319
|
continue;
|
|
3324
3320
|
}
|
|
3325
3321
|
if (wt(l)) {
|
|
3326
|
-
var g = typeof l.style == "string" ? n.time[l.style] :
|
|
3322
|
+
var g = typeof l.style == "string" ? n.time[l.style] : Ce(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3327
3323
|
u.push({
|
|
3328
3324
|
type: w.literal,
|
|
3329
3325
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
@@ -3339,16 +3335,16 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3339
3335
|
continue;
|
|
3340
3336
|
}
|
|
3341
3337
|
if (It(l)) {
|
|
3342
|
-
var d = l.children,
|
|
3343
|
-
if (!
|
|
3344
|
-
throw new
|
|
3345
|
-
var
|
|
3346
|
-
return
|
|
3338
|
+
var d = l.children, m = l.value, v = i[m];
|
|
3339
|
+
if (!Tn(v))
|
|
3340
|
+
throw new yn(m, "function", o);
|
|
3341
|
+
var p = ce(d, t, r, n, i, s), H = v(p.map(function(T) {
|
|
3342
|
+
return T.value;
|
|
3347
3343
|
}));
|
|
3348
|
-
Array.isArray(
|
|
3344
|
+
Array.isArray(H) || (H = [H]), u.push.apply(u, H.map(function(T) {
|
|
3349
3345
|
return {
|
|
3350
|
-
type: typeof
|
|
3351
|
-
value:
|
|
3346
|
+
type: typeof T == "string" ? w.literal : w.object,
|
|
3347
|
+
value: T
|
|
3352
3348
|
};
|
|
3353
3349
|
}));
|
|
3354
3350
|
}
|
|
@@ -3356,38 +3352,38 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3356
3352
|
var B = l.options[f] || l.options.other;
|
|
3357
3353
|
if (!B)
|
|
3358
3354
|
throw new lt(l.value, f, Object.keys(l.options), o);
|
|
3359
|
-
u.push.apply(u,
|
|
3355
|
+
u.push.apply(u, ce(B.value, t, r, n, i));
|
|
3360
3356
|
continue;
|
|
3361
3357
|
}
|
|
3362
3358
|
if (Lt(l)) {
|
|
3363
3359
|
var B = l.options["=".concat(f)];
|
|
3364
3360
|
if (!B) {
|
|
3365
3361
|
if (!Intl.PluralRules)
|
|
3366
|
-
throw new
|
|
3362
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3367
3363
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3368
|
-
`,
|
|
3364
|
+
`, J.MISSING_INTL_API, o);
|
|
3369
3365
|
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3370
3366
|
B = l.options[O] || l.options.other;
|
|
3371
3367
|
}
|
|
3372
3368
|
if (!B)
|
|
3373
3369
|
throw new lt(l.value, f, Object.keys(l.options), o);
|
|
3374
|
-
u.push.apply(u,
|
|
3370
|
+
u.push.apply(u, ce(B.value, t, r, n, i, f - (l.offset || 0)));
|
|
3375
3371
|
continue;
|
|
3376
3372
|
}
|
|
3377
3373
|
}
|
|
3378
|
-
return
|
|
3374
|
+
return Hn(u);
|
|
3379
3375
|
}
|
|
3380
|
-
function
|
|
3381
|
-
return t ?
|
|
3382
|
-
return r[n] =
|
|
3376
|
+
function Sn(e, t) {
|
|
3377
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3378
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3383
3379
|
}, {})) : e;
|
|
3384
3380
|
}
|
|
3385
|
-
function
|
|
3381
|
+
function Bn(e, t) {
|
|
3386
3382
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3387
|
-
return r[n] =
|
|
3388
|
-
},
|
|
3383
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3384
|
+
}, x({}, e)) : e;
|
|
3389
3385
|
}
|
|
3390
|
-
function
|
|
3386
|
+
function Ae(e) {
|
|
3391
3387
|
return {
|
|
3392
3388
|
create: function() {
|
|
3393
3389
|
return {
|
|
@@ -3401,39 +3397,39 @@ function we(e) {
|
|
|
3401
3397
|
}
|
|
3402
3398
|
};
|
|
3403
3399
|
}
|
|
3404
|
-
function
|
|
3400
|
+
function An(e) {
|
|
3405
3401
|
return e === void 0 && (e = {
|
|
3406
3402
|
number: {},
|
|
3407
3403
|
dateTime: {},
|
|
3408
3404
|
pluralRules: {}
|
|
3409
3405
|
}), {
|
|
3410
|
-
getNumberFormat:
|
|
3406
|
+
getNumberFormat: Te(function() {
|
|
3411
3407
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3412
3408
|
r[n] = arguments[n];
|
|
3413
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3409
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3414
3410
|
}, {
|
|
3415
|
-
cache:
|
|
3416
|
-
strategy:
|
|
3411
|
+
cache: Ae(e.number),
|
|
3412
|
+
strategy: Se.variadic
|
|
3417
3413
|
}),
|
|
3418
|
-
getDateTimeFormat:
|
|
3414
|
+
getDateTimeFormat: Te(function() {
|
|
3419
3415
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3420
3416
|
r[n] = arguments[n];
|
|
3421
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3417
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3422
3418
|
}, {
|
|
3423
|
-
cache:
|
|
3424
|
-
strategy:
|
|
3419
|
+
cache: Ae(e.dateTime),
|
|
3420
|
+
strategy: Se.variadic
|
|
3425
3421
|
}),
|
|
3426
|
-
getPluralRules:
|
|
3422
|
+
getPluralRules: Te(function() {
|
|
3427
3423
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3428
3424
|
r[n] = arguments[n];
|
|
3429
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3425
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3430
3426
|
}, {
|
|
3431
|
-
cache:
|
|
3432
|
-
strategy:
|
|
3427
|
+
cache: Ae(e.pluralRules),
|
|
3428
|
+
strategy: Se.variadic
|
|
3433
3429
|
})
|
|
3434
3430
|
};
|
|
3435
3431
|
}
|
|
3436
|
-
var
|
|
3432
|
+
var On = (
|
|
3437
3433
|
/** @class */
|
|
3438
3434
|
function() {
|
|
3439
3435
|
function e(t, r, n, i) {
|
|
@@ -3452,7 +3448,7 @@ var wn = (
|
|
|
3452
3448
|
}, []);
|
|
3453
3449
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3454
3450
|
}, this.formatToParts = function(h) {
|
|
3455
|
-
return
|
|
3451
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3456
3452
|
}, this.resolvedOptions = function() {
|
|
3457
3453
|
var h;
|
|
3458
3454
|
return {
|
|
@@ -3466,12 +3462,12 @@ var wn = (
|
|
|
3466
3462
|
var o = i || {};
|
|
3467
3463
|
o.formatters;
|
|
3468
3464
|
var u = Ur(o, ["formatters"]);
|
|
3469
|
-
this.ast = e.__parse(t,
|
|
3465
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3470
3466
|
} else
|
|
3471
3467
|
this.ast = t;
|
|
3472
3468
|
if (!Array.isArray(this.ast))
|
|
3473
3469
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3474
|
-
this.formats =
|
|
3470
|
+
this.formats = Bn(e.formats, n), this.formatters = i && i.formatters || An(this.formatterCache);
|
|
3475
3471
|
}
|
|
3476
3472
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3477
3473
|
get: function() {
|
|
@@ -3545,7 +3541,7 @@ var wn = (
|
|
|
3545
3541
|
}, e;
|
|
3546
3542
|
}()
|
|
3547
3543
|
);
|
|
3548
|
-
function
|
|
3544
|
+
function wn(e, t) {
|
|
3549
3545
|
if (t == null)
|
|
3550
3546
|
return;
|
|
3551
3547
|
if (t in e)
|
|
@@ -3566,36 +3562,36 @@ function Nn(e, t) {
|
|
|
3566
3562
|
n = void 0;
|
|
3567
3563
|
return n;
|
|
3568
3564
|
}
|
|
3569
|
-
const
|
|
3565
|
+
const j = {}, Nn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), jt = (e, t) => {
|
|
3570
3566
|
if (t == null)
|
|
3571
3567
|
return;
|
|
3572
|
-
if (t in
|
|
3573
|
-
return
|
|
3574
|
-
const r =
|
|
3568
|
+
if (t in j && e in j[t])
|
|
3569
|
+
return j[t][e];
|
|
3570
|
+
const r = _e(t);
|
|
3575
3571
|
for (let n = 0; n < r.length; n++) {
|
|
3576
|
-
const i = r[n], s =
|
|
3572
|
+
const i = r[n], s = In(i, e);
|
|
3577
3573
|
if (s)
|
|
3578
|
-
return
|
|
3574
|
+
return Nn(e, t, s);
|
|
3579
3575
|
}
|
|
3580
3576
|
};
|
|
3581
3577
|
let ze;
|
|
3582
|
-
const
|
|
3583
|
-
function
|
|
3578
|
+
const ae = be({});
|
|
3579
|
+
function Ln(e) {
|
|
3584
3580
|
return ze[e] || null;
|
|
3585
3581
|
}
|
|
3586
3582
|
function kt(e) {
|
|
3587
3583
|
return e in ze;
|
|
3588
3584
|
}
|
|
3589
|
-
function
|
|
3585
|
+
function In(e, t) {
|
|
3590
3586
|
if (!kt(e))
|
|
3591
3587
|
return null;
|
|
3592
|
-
const r =
|
|
3593
|
-
return
|
|
3588
|
+
const r = Ln(e);
|
|
3589
|
+
return wn(r, t);
|
|
3594
3590
|
}
|
|
3595
|
-
function
|
|
3591
|
+
function Cn(e) {
|
|
3596
3592
|
if (e == null)
|
|
3597
3593
|
return;
|
|
3598
|
-
const t =
|
|
3594
|
+
const t = _e(e);
|
|
3599
3595
|
for (let r = 0; r < t.length; r++) {
|
|
3600
3596
|
const n = t[r];
|
|
3601
3597
|
if (kt(n))
|
|
@@ -3603,55 +3599,55 @@ function Mn(e) {
|
|
|
3603
3599
|
}
|
|
3604
3600
|
}
|
|
3605
3601
|
function Vt(e, ...t) {
|
|
3606
|
-
delete
|
|
3602
|
+
delete j[e], ae.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3607
3603
|
}
|
|
3608
|
-
|
|
3609
|
-
[
|
|
3604
|
+
K(
|
|
3605
|
+
[ae],
|
|
3610
3606
|
([e]) => Object.keys(e)
|
|
3611
3607
|
);
|
|
3612
|
-
|
|
3608
|
+
ae.subscribe((e) => ze = e);
|
|
3613
3609
|
const me = {};
|
|
3614
|
-
function
|
|
3610
|
+
function Mn(e, t) {
|
|
3615
3611
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3616
3612
|
}
|
|
3617
3613
|
function Xt(e) {
|
|
3618
3614
|
return me[e];
|
|
3619
3615
|
}
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3616
|
+
function $n(e) {
|
|
3617
|
+
return _e(e).map((t) => {
|
|
3622
3618
|
const r = Xt(t);
|
|
3623
3619
|
return [t, r ? [...r] : []];
|
|
3624
3620
|
}).filter(([, t]) => t.length > 0);
|
|
3625
3621
|
}
|
|
3626
|
-
function
|
|
3627
|
-
return e == null ? !1 :
|
|
3622
|
+
function De(e) {
|
|
3623
|
+
return e == null ? !1 : _e(e).some(
|
|
3628
3624
|
(t) => {
|
|
3629
3625
|
var r;
|
|
3630
3626
|
return (r = Xt(t)) == null ? void 0 : r.size;
|
|
3631
3627
|
}
|
|
3632
3628
|
);
|
|
3633
3629
|
}
|
|
3634
|
-
function
|
|
3630
|
+
function Rn(e, t) {
|
|
3635
3631
|
return Promise.all(
|
|
3636
|
-
t.map((n) => (
|
|
3632
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3637
3633
|
).then((n) => Vt(e, ...n));
|
|
3638
3634
|
}
|
|
3639
|
-
const
|
|
3635
|
+
const re = {};
|
|
3640
3636
|
function zt(e) {
|
|
3641
|
-
if (!
|
|
3642
|
-
return e in
|
|
3643
|
-
const t =
|
|
3644
|
-
return
|
|
3637
|
+
if (!De(e))
|
|
3638
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3639
|
+
const t = $n(e);
|
|
3640
|
+
return re[e] = Promise.all(
|
|
3645
3641
|
t.map(
|
|
3646
|
-
([r, n]) =>
|
|
3642
|
+
([r, n]) => Rn(r, n)
|
|
3647
3643
|
)
|
|
3648
3644
|
).then(() => {
|
|
3649
|
-
if (
|
|
3645
|
+
if (De(e))
|
|
3650
3646
|
return zt(e);
|
|
3651
|
-
delete
|
|
3652
|
-
}),
|
|
3647
|
+
delete re[e];
|
|
3648
|
+
}), re[e];
|
|
3653
3649
|
}
|
|
3654
|
-
const
|
|
3650
|
+
const Un = {
|
|
3655
3651
|
number: {
|
|
3656
3652
|
scientific: { notation: "scientific" },
|
|
3657
3653
|
engineering: { notation: "engineering" },
|
|
@@ -3680,141 +3676,141 @@ const Gn = {
|
|
|
3680
3676
|
timeZoneName: "short"
|
|
3681
3677
|
}
|
|
3682
3678
|
}
|
|
3683
|
-
},
|
|
3679
|
+
}, Gn = {
|
|
3684
3680
|
fallbackLocale: null,
|
|
3685
3681
|
loadingDelay: 200,
|
|
3686
|
-
formats:
|
|
3682
|
+
formats: Un,
|
|
3687
3683
|
warnOnMissingMessages: !0,
|
|
3688
3684
|
handleMissingMessage: void 0,
|
|
3689
3685
|
ignoreTag: !0
|
|
3690
|
-
},
|
|
3691
|
-
function
|
|
3692
|
-
return
|
|
3686
|
+
}, Dn = Gn;
|
|
3687
|
+
function Y() {
|
|
3688
|
+
return Dn;
|
|
3693
3689
|
}
|
|
3694
|
-
const
|
|
3695
|
-
var
|
|
3690
|
+
const Oe = be(!1);
|
|
3691
|
+
var Fn = Object.defineProperty, jn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
|
|
3696
3692
|
for (var r in t || (t = {}))
|
|
3697
|
-
|
|
3693
|
+
Vn.call(t, r) && ct(e, r, t[r]);
|
|
3698
3694
|
if (ft)
|
|
3699
3695
|
for (var r of ft(t))
|
|
3700
|
-
|
|
3696
|
+
Xn.call(t, r) && ct(e, r, t[r]);
|
|
3701
3697
|
return e;
|
|
3702
|
-
},
|
|
3703
|
-
let
|
|
3704
|
-
const
|
|
3705
|
-
function
|
|
3698
|
+
}, Wn = (e, t) => jn(e, kn(t));
|
|
3699
|
+
let Fe;
|
|
3700
|
+
const de = be(null);
|
|
3701
|
+
function mt(e) {
|
|
3706
3702
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3707
3703
|
}
|
|
3708
|
-
function
|
|
3709
|
-
const r =
|
|
3710
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3704
|
+
function _e(e, t = Y().fallbackLocale) {
|
|
3705
|
+
const r = mt(e);
|
|
3706
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
3711
3707
|
}
|
|
3712
|
-
function
|
|
3713
|
-
return
|
|
3708
|
+
function V() {
|
|
3709
|
+
return Fe != null ? Fe : void 0;
|
|
3714
3710
|
}
|
|
3715
|
-
|
|
3716
|
-
|
|
3711
|
+
de.subscribe((e) => {
|
|
3712
|
+
Fe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3717
3713
|
});
|
|
3718
|
-
const
|
|
3719
|
-
if (e &&
|
|
3720
|
-
const { loadingDelay: t } =
|
|
3714
|
+
const Zn = (e) => {
|
|
3715
|
+
if (e && Cn(e) && De(e)) {
|
|
3716
|
+
const { loadingDelay: t } = Y();
|
|
3721
3717
|
let r;
|
|
3722
|
-
return typeof window != "undefined" &&
|
|
3723
|
-
() =>
|
|
3718
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3719
|
+
() => Oe.set(!0),
|
|
3724
3720
|
t
|
|
3725
|
-
) :
|
|
3726
|
-
|
|
3721
|
+
) : Oe.set(!0), zt(e).then(() => {
|
|
3722
|
+
de.set(e);
|
|
3727
3723
|
}).finally(() => {
|
|
3728
|
-
clearTimeout(r),
|
|
3724
|
+
clearTimeout(r), Oe.set(!1);
|
|
3729
3725
|
});
|
|
3730
3726
|
}
|
|
3731
|
-
return
|
|
3732
|
-
},
|
|
3733
|
-
set:
|
|
3734
|
-
}),
|
|
3727
|
+
return de.set(e);
|
|
3728
|
+
}, ee = Wn(zn({}, de), {
|
|
3729
|
+
set: Zn
|
|
3730
|
+
}), xe = (e) => {
|
|
3735
3731
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3736
3732
|
return (n) => {
|
|
3737
3733
|
const i = JSON.stringify(n);
|
|
3738
3734
|
return i in t ? t[i] : t[i] = e(n);
|
|
3739
3735
|
};
|
|
3740
3736
|
};
|
|
3741
|
-
var
|
|
3737
|
+
var Qn = Object.defineProperty, ge = Object.getOwnPropertySymbols, Wt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3742
3738
|
for (var r in t || (t = {}))
|
|
3743
|
-
Wt.call(t, r) &&
|
|
3744
|
-
if (
|
|
3745
|
-
for (var r of
|
|
3746
|
-
Zt.call(t, r) &&
|
|
3739
|
+
Wt.call(t, r) && pt(e, r, t[r]);
|
|
3740
|
+
if (ge)
|
|
3741
|
+
for (var r of ge(t))
|
|
3742
|
+
Zt.call(t, r) && pt(e, r, t[r]);
|
|
3747
3743
|
return e;
|
|
3748
|
-
},
|
|
3744
|
+
}, te = (e, t) => {
|
|
3749
3745
|
var r = {};
|
|
3750
3746
|
for (var n in e)
|
|
3751
3747
|
Wt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3752
|
-
if (e != null &&
|
|
3753
|
-
for (var n of
|
|
3748
|
+
if (e != null && ge)
|
|
3749
|
+
for (var n of ge(e))
|
|
3754
3750
|
t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
|
|
3755
3751
|
return r;
|
|
3756
3752
|
};
|
|
3757
|
-
const
|
|
3758
|
-
const { formats: r } =
|
|
3753
|
+
const se = (e, t) => {
|
|
3754
|
+
const { formats: r } = Y();
|
|
3759
3755
|
if (e in r && t in r[e])
|
|
3760
3756
|
return r[e][t];
|
|
3761
3757
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3762
|
-
},
|
|
3758
|
+
}, qn = xe(
|
|
3763
3759
|
(e) => {
|
|
3764
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3760
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3765
3761
|
if (r == null)
|
|
3766
3762
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3767
|
-
return n && (i =
|
|
3763
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3768
3764
|
}
|
|
3769
|
-
),
|
|
3765
|
+
), Jn = xe(
|
|
3770
3766
|
(e) => {
|
|
3771
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3767
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3772
3768
|
if (r == null)
|
|
3773
3769
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3774
|
-
return n ? i =
|
|
3770
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3775
3771
|
}
|
|
3776
|
-
),
|
|
3772
|
+
), Yn = xe(
|
|
3777
3773
|
(e) => {
|
|
3778
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3774
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3779
3775
|
if (r == null)
|
|
3780
3776
|
throw new Error(
|
|
3781
3777
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3782
3778
|
);
|
|
3783
|
-
return n ? i =
|
|
3779
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3784
3780
|
}
|
|
3785
|
-
),
|
|
3781
|
+
), Kn = (e = {}) => {
|
|
3786
3782
|
var t = e, {
|
|
3787
|
-
locale: r =
|
|
3788
|
-
} = t, n =
|
|
3783
|
+
locale: r = V()
|
|
3784
|
+
} = t, n = te(t, [
|
|
3789
3785
|
"locale"
|
|
3790
3786
|
]);
|
|
3791
|
-
return
|
|
3792
|
-
},
|
|
3787
|
+
return qn(We({ locale: r }, n));
|
|
3788
|
+
}, ei = (e = {}) => {
|
|
3793
3789
|
var t = e, {
|
|
3794
|
-
locale: r =
|
|
3795
|
-
} = t, n =
|
|
3790
|
+
locale: r = V()
|
|
3791
|
+
} = t, n = te(t, [
|
|
3796
3792
|
"locale"
|
|
3797
3793
|
]);
|
|
3798
|
-
return
|
|
3799
|
-
},
|
|
3794
|
+
return Jn(We({ locale: r }, n));
|
|
3795
|
+
}, ti = (e = {}) => {
|
|
3800
3796
|
var t = e, {
|
|
3801
|
-
locale: r =
|
|
3802
|
-
} = t, n =
|
|
3797
|
+
locale: r = V()
|
|
3798
|
+
} = t, n = te(t, [
|
|
3803
3799
|
"locale"
|
|
3804
3800
|
]);
|
|
3805
|
-
return
|
|
3806
|
-
},
|
|
3801
|
+
return Yn(We({ locale: r }, n));
|
|
3802
|
+
}, ri = xe(
|
|
3807
3803
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3808
|
-
(e, t =
|
|
3809
|
-
ignoreTag:
|
|
3804
|
+
(e, t = V()) => new On(e, t, Y().formats, {
|
|
3805
|
+
ignoreTag: Y().ignoreTag
|
|
3810
3806
|
})
|
|
3811
|
-
),
|
|
3807
|
+
), ni = (e, t = {}) => {
|
|
3812
3808
|
var r, n, i, s;
|
|
3813
3809
|
let o = t;
|
|
3814
3810
|
typeof e == "object" && (o = e, e = o.id);
|
|
3815
3811
|
const {
|
|
3816
3812
|
values: u,
|
|
3817
|
-
locale: h =
|
|
3813
|
+
locale: h = V(),
|
|
3818
3814
|
default: a
|
|
3819
3815
|
} = o;
|
|
3820
3816
|
if (h == null)
|
|
@@ -3823,7 +3819,7 @@ const oe = (e, t) => {
|
|
|
3823
3819
|
);
|
|
3824
3820
|
let l = jt(e, h);
|
|
3825
3821
|
if (!l)
|
|
3826
|
-
l = (s = (i = (n = (r =
|
|
3822
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3827
3823
|
else if (typeof l != "string")
|
|
3828
3824
|
return console.warn(
|
|
3829
3825
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3832,7 +3828,7 @@ const oe = (e, t) => {
|
|
|
3832
3828
|
return l;
|
|
3833
3829
|
let c = l;
|
|
3834
3830
|
try {
|
|
3835
|
-
c =
|
|
3831
|
+
c = ri(l, h).format(u);
|
|
3836
3832
|
} catch (f) {
|
|
3837
3833
|
f instanceof Error && console.warn(
|
|
3838
3834
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3840,24 +3836,24 @@ const oe = (e, t) => {
|
|
|
3840
3836
|
);
|
|
3841
3837
|
}
|
|
3842
3838
|
return c;
|
|
3843
|
-
},
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3839
|
+
}, ii = (e, t) => ti(t).format(e), si = (e, t) => ei(t).format(e), oi = (e, t) => Kn(t).format(e), ai = (e, t = V()) => jt(e, t), ui = K([ee, ae], () => ni);
|
|
3840
|
+
K([ee], () => ii);
|
|
3841
|
+
K([ee], () => si);
|
|
3842
|
+
K([ee], () => oi);
|
|
3843
|
+
K([ee, ae], () => ai);
|
|
3848
3844
|
function dt(e, t) {
|
|
3849
3845
|
Vt(e, t);
|
|
3850
3846
|
}
|
|
3851
|
-
function
|
|
3852
|
-
|
|
3847
|
+
function hi(e) {
|
|
3848
|
+
ee.set(e);
|
|
3853
3849
|
}
|
|
3854
|
-
function
|
|
3850
|
+
function li(e, t) {
|
|
3855
3851
|
if (e) {
|
|
3856
3852
|
const r = document.createElement("style");
|
|
3857
3853
|
r.innerHTML = t, e.appendChild(r);
|
|
3858
3854
|
}
|
|
3859
3855
|
}
|
|
3860
|
-
function
|
|
3856
|
+
function fi(e, t) {
|
|
3861
3857
|
if (!e || !t)
|
|
3862
3858
|
return;
|
|
3863
3859
|
const r = new URL(t);
|
|
@@ -3868,7 +3864,7 @@ function ci(e, t) {
|
|
|
3868
3864
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3869
3865
|
});
|
|
3870
3866
|
}
|
|
3871
|
-
function
|
|
3867
|
+
function ci(e, t, r) {
|
|
3872
3868
|
if (window.emMessageBus) {
|
|
3873
3869
|
const n = document.createElement("style");
|
|
3874
3870
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3887,86 +3883,86 @@ function bt(e, t, r) {
|
|
|
3887
3883
|
const n = e.slice();
|
|
3888
3884
|
return n[21] = t[r], n;
|
|
3889
3885
|
}
|
|
3890
|
-
function
|
|
3886
|
+
function pi(e) {
|
|
3891
3887
|
let t, r = (
|
|
3892
3888
|
/*$_*/
|
|
3893
3889
|
e[4]("popularProviders") + ""
|
|
3894
3890
|
), n, i, s, o, u = (
|
|
3895
3891
|
/*$_*/
|
|
3896
3892
|
e[4]("otherProviders") + ""
|
|
3897
|
-
), h, a, l, c =
|
|
3893
|
+
), h, a, l, c = he(
|
|
3898
3894
|
/*topProviders*/
|
|
3899
3895
|
e[1]
|
|
3900
3896
|
), f = [];
|
|
3901
|
-
for (let
|
|
3902
|
-
f[
|
|
3903
|
-
let g =
|
|
3897
|
+
for (let m = 0; m < c.length; m += 1)
|
|
3898
|
+
f[m] = vt(bt(e, c, m));
|
|
3899
|
+
let g = he(
|
|
3904
3900
|
/*otherProviders*/
|
|
3905
3901
|
e[2]
|
|
3906
3902
|
), d = [];
|
|
3907
|
-
for (let
|
|
3908
|
-
d[
|
|
3903
|
+
for (let m = 0; m < g.length; m += 1)
|
|
3904
|
+
d[m] = Et(gt(e, g, m));
|
|
3909
3905
|
return {
|
|
3910
3906
|
c() {
|
|
3911
|
-
t = A("h4"), n = R(r), i =
|
|
3912
|
-
for (let p = 0; p < f.length; p += 1)
|
|
3913
|
-
f[p].c();
|
|
3914
|
-
s = G(), o = A("h4"), h = R(u), a = G();
|
|
3915
|
-
for (let p = 0; p < d.length; p += 1)
|
|
3916
|
-
d[p].c();
|
|
3917
|
-
l = sr(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3918
|
-
},
|
|
3919
|
-
m(p, v) {
|
|
3920
|
-
M(p, t, v), y(t, n), M(p, i, v);
|
|
3907
|
+
t = A("h4"), n = R(r), i = U();
|
|
3921
3908
|
for (let m = 0; m < f.length; m += 1)
|
|
3922
|
-
f[m]
|
|
3923
|
-
|
|
3909
|
+
f[m].c();
|
|
3910
|
+
s = U(), o = A("h4"), h = R(u), a = U();
|
|
3924
3911
|
for (let m = 0; m < d.length; m += 1)
|
|
3925
|
-
d[m]
|
|
3926
|
-
|
|
3912
|
+
d[m].c();
|
|
3913
|
+
l = sr(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3914
|
+
},
|
|
3915
|
+
m(m, v) {
|
|
3916
|
+
M(m, t, v), y(t, n), M(m, i, v);
|
|
3917
|
+
for (let p = 0; p < f.length; p += 1)
|
|
3918
|
+
f[p] && f[p].m(m, v);
|
|
3919
|
+
M(m, s, v), M(m, o, v), y(o, h), M(m, a, v);
|
|
3920
|
+
for (let p = 0; p < d.length; p += 1)
|
|
3921
|
+
d[p] && d[p].m(m, v);
|
|
3922
|
+
M(m, l, v);
|
|
3927
3923
|
},
|
|
3928
|
-
p(
|
|
3924
|
+
p(m, v) {
|
|
3929
3925
|
if (v & /*$_*/
|
|
3930
3926
|
16 && r !== (r = /*$_*/
|
|
3931
|
-
|
|
3927
|
+
m[4]("popularProviders") + "") && F(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3932
3928
|
50) {
|
|
3933
|
-
c =
|
|
3929
|
+
c = he(
|
|
3934
3930
|
/*topProviders*/
|
|
3935
|
-
|
|
3931
|
+
m[1]
|
|
3936
3932
|
);
|
|
3937
|
-
let
|
|
3938
|
-
for (
|
|
3939
|
-
const
|
|
3940
|
-
f[
|
|
3933
|
+
let p;
|
|
3934
|
+
for (p = 0; p < c.length; p += 1) {
|
|
3935
|
+
const H = bt(m, c, p);
|
|
3936
|
+
f[p] ? f[p].p(H, v) : (f[p] = vt(H), f[p].c(), f[p].m(s.parentNode, s));
|
|
3941
3937
|
}
|
|
3942
|
-
for (;
|
|
3943
|
-
f[
|
|
3938
|
+
for (; p < f.length; p += 1)
|
|
3939
|
+
f[p].d(1);
|
|
3944
3940
|
f.length = c.length;
|
|
3945
3941
|
}
|
|
3946
3942
|
if (v & /*$_*/
|
|
3947
3943
|
16 && u !== (u = /*$_*/
|
|
3948
|
-
|
|
3944
|
+
m[4]("otherProviders") + "") && F(h, u), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3949
3945
|
52) {
|
|
3950
|
-
g =
|
|
3946
|
+
g = he(
|
|
3951
3947
|
/*otherProviders*/
|
|
3952
|
-
|
|
3948
|
+
m[2]
|
|
3953
3949
|
);
|
|
3954
|
-
let
|
|
3955
|
-
for (
|
|
3956
|
-
const
|
|
3957
|
-
d[
|
|
3950
|
+
let p;
|
|
3951
|
+
for (p = 0; p < g.length; p += 1) {
|
|
3952
|
+
const H = gt(m, g, p);
|
|
3953
|
+
d[p] ? d[p].p(H, v) : (d[p] = Et(H), d[p].c(), d[p].m(l.parentNode, l));
|
|
3958
3954
|
}
|
|
3959
|
-
for (;
|
|
3960
|
-
d[
|
|
3955
|
+
for (; p < d.length; p += 1)
|
|
3956
|
+
d[p].d(1);
|
|
3961
3957
|
d.length = g.length;
|
|
3962
3958
|
}
|
|
3963
3959
|
},
|
|
3964
|
-
d(
|
|
3965
|
-
|
|
3960
|
+
d(m) {
|
|
3961
|
+
m && (C(t), C(i), C(s), C(o), C(a), C(l)), Ke(f, m), Ke(d, m);
|
|
3966
3962
|
}
|
|
3967
3963
|
};
|
|
3968
3964
|
}
|
|
3969
|
-
function
|
|
3965
|
+
function di(e) {
|
|
3970
3966
|
let t, r = (
|
|
3971
3967
|
/*$_*/
|
|
3972
3968
|
e[4]("loading") + ""
|
|
@@ -3981,7 +3977,7 @@ function gi(e) {
|
|
|
3981
3977
|
p(i, s) {
|
|
3982
3978
|
s & /*$_*/
|
|
3983
3979
|
16 && r !== (r = /*$_*/
|
|
3984
|
-
i[4]("loading") + "") &&
|
|
3980
|
+
i[4]("loading") + "") && F(n, r);
|
|
3985
3981
|
},
|
|
3986
3982
|
d(i) {
|
|
3987
3983
|
i && C(t);
|
|
@@ -3995,10 +3991,10 @@ function vt(e) {
|
|
|
3995
3991
|
), a, l, c, f = (
|
|
3996
3992
|
/*provider*/
|
|
3997
3993
|
e[21].games.count + ""
|
|
3998
|
-
), g, d,
|
|
3994
|
+
), g, d, m = (
|
|
3999
3995
|
/*$_*/
|
|
4000
3996
|
e[4]("games") + ""
|
|
4001
|
-
), v,
|
|
3997
|
+
), v, p, H;
|
|
4002
3998
|
function B() {
|
|
4003
3999
|
return (
|
|
4004
4000
|
/*click_handler*/
|
|
@@ -4010,28 +4006,28 @@ function vt(e) {
|
|
|
4010
4006
|
}
|
|
4011
4007
|
return {
|
|
4012
4008
|
c() {
|
|
4013
|
-
t = A("div"), r = A("img"), s =
|
|
4009
|
+
t = A("div"), r = A("img"), s = U(), o = A("div"), u = A("p"), a = R(h), l = U(), c = A("p"), g = R(f), d = U(), v = R(m), pe(r.src, n = /*provider*/
|
|
4014
4010
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4015
4011
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4016
4012
|
},
|
|
4017
|
-
m(O,
|
|
4018
|
-
M(O, t,
|
|
4013
|
+
m(O, T) {
|
|
4014
|
+
M(O, t, T), y(t, r), y(t, s), y(t, o), y(o, u), y(u, a), y(o, l), y(o, c), y(c, g), y(c, d), y(c, v), p || (H = Pt(t, "click", B), p = !0);
|
|
4019
4015
|
},
|
|
4020
|
-
p(O,
|
|
4021
|
-
e = O,
|
|
4022
|
-
2 && !
|
|
4023
|
-
e[21].logo) && S(r, "src", n),
|
|
4016
|
+
p(O, T) {
|
|
4017
|
+
e = O, T & /*topProviders*/
|
|
4018
|
+
2 && !pe(r.src, n = /*provider*/
|
|
4019
|
+
e[21].logo) && S(r, "src", n), T & /*topProviders*/
|
|
4024
4020
|
2 && i !== (i = /*provider*/
|
|
4025
|
-
e[21].name) && S(r, "alt", i),
|
|
4021
|
+
e[21].name) && S(r, "alt", i), T & /*topProviders*/
|
|
4026
4022
|
2 && h !== (h = /*provider*/
|
|
4027
|
-
e[21].name + "") &&
|
|
4023
|
+
e[21].name + "") && F(a, h), T & /*topProviders*/
|
|
4028
4024
|
2 && f !== (f = /*provider*/
|
|
4029
|
-
e[21].games.count + "") &&
|
|
4030
|
-
16 &&
|
|
4031
|
-
e[4]("games") + "") &&
|
|
4025
|
+
e[21].games.count + "") && F(g, f), T & /*$_*/
|
|
4026
|
+
16 && m !== (m = /*$_*/
|
|
4027
|
+
e[4]("games") + "") && F(v, m);
|
|
4032
4028
|
},
|
|
4033
4029
|
d(O) {
|
|
4034
|
-
O && C(t),
|
|
4030
|
+
O && C(t), p = !1, H();
|
|
4035
4031
|
}
|
|
4036
4032
|
};
|
|
4037
4033
|
}
|
|
@@ -4042,10 +4038,10 @@ function Et(e) {
|
|
|
4042
4038
|
), a, l, c, f = (
|
|
4043
4039
|
/*provider*/
|
|
4044
4040
|
e[21].games.count + ""
|
|
4045
|
-
), g, d,
|
|
4041
|
+
), g, d, m = (
|
|
4046
4042
|
/*$_*/
|
|
4047
4043
|
e[4]("games") + ""
|
|
4048
|
-
), v,
|
|
4044
|
+
), v, p, H, B;
|
|
4049
4045
|
function O() {
|
|
4050
4046
|
return (
|
|
4051
4047
|
/*click_handler_1*/
|
|
@@ -4057,37 +4053,37 @@ function Et(e) {
|
|
|
4057
4053
|
}
|
|
4058
4054
|
return {
|
|
4059
4055
|
c() {
|
|
4060
|
-
t = A("div"), r = A("img"), s =
|
|
4056
|
+
t = A("div"), r = A("img"), s = U(), o = A("div"), u = A("p"), a = R(h), l = U(), c = A("p"), g = R(f), d = U(), v = R(m), p = U(), pe(r.src, n = /*provider*/
|
|
4061
4057
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4062
4058
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4063
4059
|
},
|
|
4064
|
-
m(
|
|
4065
|
-
M(
|
|
4060
|
+
m(T, N) {
|
|
4061
|
+
M(T, t, N), y(t, r), y(t, s), y(t, o), y(o, u), y(u, a), y(o, l), y(o, c), y(c, g), y(c, d), y(c, v), y(t, p), H || (B = Pt(t, "click", O), H = !0);
|
|
4066
4062
|
},
|
|
4067
|
-
p(
|
|
4068
|
-
e =
|
|
4069
|
-
4 && !
|
|
4063
|
+
p(T, N) {
|
|
4064
|
+
e = T, N & /*otherProviders*/
|
|
4065
|
+
4 && !pe(r.src, n = /*provider*/
|
|
4070
4066
|
e[21].logo) && S(r, "src", n), N & /*otherProviders*/
|
|
4071
4067
|
4 && i !== (i = /*provider*/
|
|
4072
4068
|
e[21].name) && S(r, "alt", i), N & /*otherProviders*/
|
|
4073
4069
|
4 && h !== (h = /*provider*/
|
|
4074
|
-
e[21].name + "") &&
|
|
4070
|
+
e[21].name + "") && F(a, h), N & /*otherProviders*/
|
|
4075
4071
|
4 && f !== (f = /*provider*/
|
|
4076
|
-
e[21].games.count + "") &&
|
|
4077
|
-
16 &&
|
|
4078
|
-
e[4]("games") + "") &&
|
|
4072
|
+
e[21].games.count + "") && F(g, f), N & /*$_*/
|
|
4073
|
+
16 && m !== (m = /*$_*/
|
|
4074
|
+
e[4]("games") + "") && F(v, m);
|
|
4079
4075
|
},
|
|
4080
|
-
d(
|
|
4081
|
-
|
|
4076
|
+
d(T) {
|
|
4077
|
+
T && C(t), H = !1, B();
|
|
4082
4078
|
}
|
|
4083
4079
|
};
|
|
4084
4080
|
}
|
|
4085
|
-
function
|
|
4081
|
+
function gi(e) {
|
|
4086
4082
|
let t;
|
|
4087
4083
|
function r(s, o) {
|
|
4088
4084
|
return (
|
|
4089
4085
|
/*isLoading*/
|
|
4090
|
-
s[3] === !0 ?
|
|
4086
|
+
s[3] === !0 ? di : pi
|
|
4091
4087
|
);
|
|
4092
4088
|
}
|
|
4093
4089
|
let n = r(e), i = n(e);
|
|
@@ -4108,14 +4104,14 @@ function bi(e) {
|
|
|
4108
4104
|
}
|
|
4109
4105
|
};
|
|
4110
4106
|
}
|
|
4111
|
-
function
|
|
4107
|
+
function bi(e, t, r) {
|
|
4112
4108
|
let n;
|
|
4113
|
-
tr(e,
|
|
4114
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, c = [], f = [], g = [], d = !1,
|
|
4109
|
+
tr(e, ui, (b) => r(4, n = b));
|
|
4110
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, c = [], f = [], g = [], d = !1, m;
|
|
4115
4111
|
const v = () => {
|
|
4116
4112
|
fetch(a).then((L) => L.json()).then((L) => {
|
|
4117
|
-
Object.keys(L).forEach((
|
|
4118
|
-
dt(
|
|
4113
|
+
Object.keys(L).forEach((k) => {
|
|
4114
|
+
dt(k, L[k]);
|
|
4119
4115
|
});
|
|
4120
4116
|
}).catch((L) => {
|
|
4121
4117
|
console.log(L);
|
|
@@ -4124,49 +4120,49 @@ function vi(e, t, r) {
|
|
|
4124
4120
|
Object.keys(tt).forEach((b) => {
|
|
4125
4121
|
dt(b, tt[b]);
|
|
4126
4122
|
});
|
|
4127
|
-
const
|
|
4123
|
+
const p = () => {
|
|
4128
4124
|
r(3, d = !0);
|
|
4129
4125
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4130
4126
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((L) => L.json()).then((L) => {
|
|
4131
|
-
r(3, d = !1), c = L.items.map((
|
|
4132
|
-
let
|
|
4133
|
-
|
|
4127
|
+
r(3, d = !1), c = L.items.map((G) => G), r(1, f = c.filter((G) => G.isTopVendor === !0)), r(2, g = c.filter((G) => G.isTopVendor === !1));
|
|
4128
|
+
let k = [];
|
|
4129
|
+
k = c.flatMap((G) => G.subVendors), g.push(...k.filter((G) => G.games.count > 0));
|
|
4134
4130
|
});
|
|
4135
|
-
},
|
|
4131
|
+
}, H = (b, L, k) => {
|
|
4136
4132
|
window.postMessage(
|
|
4137
4133
|
{
|
|
4138
4134
|
type: "OpenGameProvider",
|
|
4139
4135
|
providerId: b,
|
|
4140
4136
|
providerName: L,
|
|
4141
|
-
providerLogo:
|
|
4137
|
+
providerLogo: k
|
|
4142
4138
|
},
|
|
4143
4139
|
window.location.href
|
|
4144
4140
|
);
|
|
4145
4141
|
}, B = () => {
|
|
4146
|
-
|
|
4147
|
-
}, O = (b) =>
|
|
4142
|
+
hi(o);
|
|
4143
|
+
}, O = (b) => H(b.id, b.name, b.logo), T = (b) => H(b.id, b.name, b.logo);
|
|
4148
4144
|
function N(b) {
|
|
4149
|
-
|
|
4150
|
-
|
|
4145
|
+
we[b ? "unshift" : "push"](() => {
|
|
4146
|
+
m = b, r(0, m);
|
|
4151
4147
|
});
|
|
4152
4148
|
}
|
|
4153
4149
|
return e.$$set = (b) => {
|
|
4154
4150
|
"endpoint" in b && r(6, i = b.endpoint), "datasource" in b && r(7, s = b.datasource), "lang" in b && r(8, o = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, h = b.clientstylingurl), "translationurl" in b && r(11, a = b.translationurl), "mbsource" in b && r(12, l = b.mbsource);
|
|
4155
4151
|
}, e.$$.update = () => {
|
|
4156
4152
|
e.$$.dirty & /*endpoint, lang, datasource*/
|
|
4157
|
-
448 && i && o && s &&
|
|
4153
|
+
448 && i && o && s && p(), e.$$.dirty & /*lang*/
|
|
4158
4154
|
256 && o && B(), e.$$.dirty & /*translationurl*/
|
|
4159
4155
|
2048 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4160
|
-
513 && u &&
|
|
4161
|
-
1025 && h &&
|
|
4162
|
-
4097 && l &&
|
|
4156
|
+
513 && u && m && li(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4157
|
+
1025 && h && m && fi(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4158
|
+
4097 && l && m && ci(m, `${l}.Style`);
|
|
4163
4159
|
}, [
|
|
4164
|
-
|
|
4160
|
+
m,
|
|
4165
4161
|
f,
|
|
4166
4162
|
g,
|
|
4167
4163
|
d,
|
|
4168
4164
|
n,
|
|
4169
|
-
|
|
4165
|
+
H,
|
|
4170
4166
|
i,
|
|
4171
4167
|
s,
|
|
4172
4168
|
o,
|
|
@@ -4175,18 +4171,18 @@ function vi(e, t, r) {
|
|
|
4175
4171
|
a,
|
|
4176
4172
|
l,
|
|
4177
4173
|
O,
|
|
4178
|
-
|
|
4174
|
+
T,
|
|
4179
4175
|
N
|
|
4180
4176
|
];
|
|
4181
4177
|
}
|
|
4182
|
-
class
|
|
4178
|
+
class vi extends Er {
|
|
4183
4179
|
constructor(t) {
|
|
4184
4180
|
super(), br(
|
|
4185
4181
|
this,
|
|
4186
4182
|
t,
|
|
4187
|
-
vi,
|
|
4188
4183
|
bi,
|
|
4189
|
-
|
|
4184
|
+
gi,
|
|
4185
|
+
xt,
|
|
4190
4186
|
{
|
|
4191
4187
|
endpoint: 6,
|
|
4192
4188
|
datasource: 7,
|
|
@@ -4203,46 +4199,46 @@ class Ei extends Er {
|
|
|
4203
4199
|
return this.$$.ctx[6];
|
|
4204
4200
|
}
|
|
4205
4201
|
set endpoint(t) {
|
|
4206
|
-
this.$$set({ endpoint: t }),
|
|
4202
|
+
this.$$set({ endpoint: t }), D();
|
|
4207
4203
|
}
|
|
4208
4204
|
get datasource() {
|
|
4209
4205
|
return this.$$.ctx[7];
|
|
4210
4206
|
}
|
|
4211
4207
|
set datasource(t) {
|
|
4212
|
-
this.$$set({ datasource: t }),
|
|
4208
|
+
this.$$set({ datasource: t }), D();
|
|
4213
4209
|
}
|
|
4214
4210
|
get lang() {
|
|
4215
4211
|
return this.$$.ctx[8];
|
|
4216
4212
|
}
|
|
4217
4213
|
set lang(t) {
|
|
4218
|
-
this.$$set({ lang: t }),
|
|
4214
|
+
this.$$set({ lang: t }), D();
|
|
4219
4215
|
}
|
|
4220
4216
|
get clientstyling() {
|
|
4221
4217
|
return this.$$.ctx[9];
|
|
4222
4218
|
}
|
|
4223
4219
|
set clientstyling(t) {
|
|
4224
|
-
this.$$set({ clientstyling: t }),
|
|
4220
|
+
this.$$set({ clientstyling: t }), D();
|
|
4225
4221
|
}
|
|
4226
4222
|
get clientstylingurl() {
|
|
4227
4223
|
return this.$$.ctx[10];
|
|
4228
4224
|
}
|
|
4229
4225
|
set clientstylingurl(t) {
|
|
4230
|
-
this.$$set({ clientstylingurl: t }),
|
|
4226
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
4231
4227
|
}
|
|
4232
4228
|
get translationurl() {
|
|
4233
4229
|
return this.$$.ctx[11];
|
|
4234
4230
|
}
|
|
4235
4231
|
set translationurl(t) {
|
|
4236
|
-
this.$$set({ translationurl: t }),
|
|
4232
|
+
this.$$set({ translationurl: t }), D();
|
|
4237
4233
|
}
|
|
4238
4234
|
get mbsource() {
|
|
4239
4235
|
return this.$$.ctx[12];
|
|
4240
4236
|
}
|
|
4241
4237
|
set mbsource(t) {
|
|
4242
|
-
this.$$set({ mbsource: t }),
|
|
4238
|
+
this.$$set({ mbsource: t }), D();
|
|
4243
4239
|
}
|
|
4244
4240
|
}
|
|
4245
|
-
vr(
|
|
4241
|
+
vr(vi, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4246
4242
|
export {
|
|
4247
|
-
|
|
4243
|
+
vi as default
|
|
4248
4244
|
};
|