@everymatrix/casino-categories 1.86.4 → 1.86.5
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/{CasinoCategories-CIWE4ELK.js → CasinoCategories-Bde9pPpf.js} +562 -558
- package/components/{CasinoCategories-CDvop_YB.js → CasinoCategories-CIX-rkDI.js} +588 -584
- package/components/CasinoCategories-CPiBmzfm.cjs +3 -0
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CasinoCategories-B2iy_gnp.cjs +0 -16
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -2,15 +2,15 @@ var tr = Object.defineProperty, rr = Object.defineProperties;
|
|
|
2
2
|
var nr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ye = Object.getOwnPropertySymbols;
|
|
4
4
|
var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ae = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
ir.call(t, r) &&
|
|
7
|
+
ir.call(t, r) && Ae(e, r, t[r]);
|
|
8
8
|
if (Ye)
|
|
9
9
|
for (var r of Ye(t))
|
|
10
|
-
sr.call(t, r) &&
|
|
10
|
+
sr.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, et = (e, t) => rr(e, nr(t));
|
|
13
|
-
var N = (e, t, r) => (
|
|
13
|
+
var N = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,32 +27,32 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
31
|
function L() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ct(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
36
|
function rt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function he(e) {
|
|
40
|
+
e.forEach(Ct);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function We(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ht(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
let
|
|
49
|
-
function
|
|
50
|
-
return e === t ? !0 : (
|
|
48
|
+
let ce;
|
|
49
|
+
function ye(e, t) {
|
|
50
|
+
return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
|
|
51
51
|
}
|
|
52
52
|
function or(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function St(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -62,15 +62,15 @@ function At(e, ...t) {
|
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
64
|
function ar(e, t, r) {
|
|
65
|
-
e.$$.on_destroy.push(
|
|
65
|
+
e.$$.on_destroy.push(St(t, r));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function x(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
70
|
function ur(e, t, r) {
|
|
71
71
|
const n = hr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
|
-
const i =
|
|
73
|
+
const i = B("style");
|
|
74
74
|
i.id = t, i.textContent = r, lr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -85,32 +85,32 @@ function hr(e) {
|
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
87
|
function lr(e, t) {
|
|
88
|
-
return
|
|
88
|
+
return x(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ee(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function V(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
100
|
function nt(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function B(e) {
|
|
105
105
|
return document.createElement(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function D(e) {
|
|
108
108
|
return document.createTextNode(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function G() {
|
|
111
|
+
return D(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function At(e, t, r, n) {
|
|
114
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
115
115
|
}
|
|
116
116
|
function I(e, t, r) {
|
|
@@ -123,7 +123,7 @@ function R(e, t, r) {
|
|
|
123
123
|
function fr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function j(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
@@ -136,90 +136,90 @@ function cr(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let oe;
|
|
140
|
+
function se(e) {
|
|
141
|
+
oe = e;
|
|
142
142
|
}
|
|
143
143
|
function gr() {
|
|
144
|
-
if (!
|
|
144
|
+
if (!oe)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return oe;
|
|
147
147
|
}
|
|
148
148
|
function mr(e) {
|
|
149
149
|
gr().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
151
|
+
const Z = [], Me = [];
|
|
152
|
+
let Q = [];
|
|
153
153
|
const it = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
-
let
|
|
154
|
+
let $e = !1;
|
|
155
155
|
function dr() {
|
|
156
|
-
|
|
156
|
+
$e || ($e = !0, pr.then(M));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function Re(e) {
|
|
159
|
+
Q.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
let
|
|
161
|
+
const Be = /* @__PURE__ */ new Set();
|
|
162
|
+
let z = 0;
|
|
163
163
|
function M() {
|
|
164
|
-
if (
|
|
164
|
+
if (z !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = oe;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
|
-
for (;
|
|
170
|
-
const t =
|
|
171
|
-
|
|
169
|
+
for (; z < Z.length; ) {
|
|
170
|
+
const t = Z[z];
|
|
171
|
+
z++, se(t), br(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
|
-
throw
|
|
174
|
+
throw Z.length = 0, z = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
for (let t = 0; t <
|
|
179
|
-
const r =
|
|
180
|
-
|
|
176
|
+
for (se(null), Z.length = 0, z = 0; Me.length; )
|
|
177
|
+
Me.pop()();
|
|
178
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
179
|
+
const r = Q[t];
|
|
180
|
+
Be.has(r) || (Be.add(r), r());
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
} while (
|
|
182
|
+
Q.length = 0;
|
|
183
|
+
} while (Z.length);
|
|
184
184
|
for (; it.length; )
|
|
185
185
|
it.pop()();
|
|
186
|
-
|
|
186
|
+
$e = !1, Be.clear(), se(e);
|
|
187
187
|
}
|
|
188
188
|
function br(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), he(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function yr(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
|
-
|
|
197
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
198
198
|
}
|
|
199
199
|
const _r = /* @__PURE__ */ new Set();
|
|
200
|
-
function
|
|
200
|
+
function Er(e, t) {
|
|
201
201
|
e && e.i && (_r.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ge(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function xr(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const s = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Re(() => {
|
|
209
|
+
const s = e.$$.on_mount.map(Ct).filter(We);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : he(s), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Re);
|
|
212
212
|
}
|
|
213
213
|
function vr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (yr(r.after_update),
|
|
215
|
+
r.fragment !== null && (yr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
217
|
function Tr(e, t) {
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
218
|
+
e.$$.dirty[0] === -1 && (Z.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const h =
|
|
222
|
-
|
|
220
|
+
function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
221
|
+
const h = oe;
|
|
222
|
+
se(e);
|
|
223
223
|
const a = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
@@ -246,18 +246,18 @@ function Hr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
246
246
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
247
247
|
const d = p.length ? p[0] : f;
|
|
248
248
|
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
|
|
249
|
-
}) : [], a.update(), l = !0,
|
|
249
|
+
}) : [], a.update(), l = !0, he(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
251
|
const c = fr(t.target);
|
|
252
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
252
|
+
a.fragment && a.fragment.l(c), c.forEach(V);
|
|
253
253
|
} else
|
|
254
254
|
a.fragment && a.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), M();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
se(h);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let Bt;
|
|
260
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -301,17 +301,17 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
301
301
|
let o;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
o =
|
|
304
|
+
o = B("slot"), s !== "default" && I(o, "name", s);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(a, l) {
|
|
311
|
-
|
|
311
|
+
ee(a, o, l);
|
|
312
312
|
},
|
|
313
313
|
d: function(a) {
|
|
314
|
-
a &&
|
|
314
|
+
a && V(o);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
323
323
|
s in n && (r[s] = [t(s)]);
|
|
324
324
|
for (const s of this.attributes) {
|
|
325
325
|
const o = this.$$g_p(s.name);
|
|
326
|
-
o in this.$$d || (this.$$d[o] =
|
|
326
|
+
o in this.$$d || (this.$$d[o] = pe(o, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const s in this.$$p_d)
|
|
342
342
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
-
const o =
|
|
343
|
+
const o = pe(
|
|
344
344
|
s,
|
|
345
345
|
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
365
|
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function pe(e, t, r, n) {
|
|
381
381
|
var s;
|
|
382
382
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -407,8 +407,8 @@ function me(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let o = class extends
|
|
410
|
+
function Hr(e, t, r, n, i, s) {
|
|
411
|
+
let o = class extends Bt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
@@ -425,7 +425,7 @@ function Cr(e, t, r, n, i, s) {
|
|
|
425
425
|
},
|
|
426
426
|
set(h) {
|
|
427
427
|
var a;
|
|
428
|
-
h =
|
|
428
|
+
h = pe(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((u) => {
|
|
@@ -438,7 +438,7 @@ function Cr(e, t, r, n, i, s) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
o, o;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class Sr {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -468,7 +468,7 @@ class Ar {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
471
|
+
if (!We(r))
|
|
472
472
|
return L;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
@@ -484,26 +484,26 @@ class Ar {
|
|
|
484
484
|
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
const
|
|
490
|
-
function
|
|
487
|
+
const Ar = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
489
|
+
const W = [];
|
|
490
|
+
function Br(e, t) {
|
|
491
491
|
return {
|
|
492
|
-
subscribe:
|
|
492
|
+
subscribe: ve(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function ve(e, t = L) {
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(u) {
|
|
499
|
-
if (
|
|
500
|
-
const h = !
|
|
499
|
+
if (Ht(e, u) && (e = u, r)) {
|
|
500
|
+
const h = !W.length;
|
|
501
501
|
for (const a of n)
|
|
502
|
-
a[1](),
|
|
502
|
+
a[1](), W.push(a, e);
|
|
503
503
|
if (h) {
|
|
504
|
-
for (let a = 0; a <
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
for (let a = 0; a < W.length; a += 2)
|
|
505
|
+
W[a][0](W[a + 1]);
|
|
506
|
+
W.length = 0;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -518,12 +518,12 @@ function xe(e, t = L) {
|
|
|
518
518
|
}
|
|
519
519
|
return { set: i, update: s, subscribe: o };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function te(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
525
|
const s = t.length < 2;
|
|
526
|
-
return
|
|
526
|
+
return Br(r, (o, u) => {
|
|
527
527
|
let h = !1;
|
|
528
528
|
const a = [];
|
|
529
529
|
let l = 0, c = L;
|
|
@@ -532,9 +532,9 @@ function ee(e, t, r) {
|
|
|
532
532
|
return;
|
|
533
533
|
c();
|
|
534
534
|
const d = t(n ? a[0] : a, o, u);
|
|
535
|
-
s ? o(d) : c =
|
|
535
|
+
s ? o(d) : c = We(d) ? d : L;
|
|
536
536
|
}, p = i.map(
|
|
537
|
-
(d, g) =>
|
|
537
|
+
(d, g) => St(
|
|
538
538
|
d,
|
|
539
539
|
(E) => {
|
|
540
540
|
a[g] = E, l &= ~(1 << g), h && f();
|
|
@@ -545,14 +545,14 @@ function ee(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return h = !0, f(), function() {
|
|
548
|
-
|
|
548
|
+
he(p), c(), h = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Or(e) {
|
|
553
553
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
555
|
+
var wr = function(t) {
|
|
556
556
|
return Pr(t) && !Nr(t);
|
|
557
557
|
};
|
|
558
558
|
function Pr(e) {
|
|
@@ -569,19 +569,19 @@ function Mr(e) {
|
|
|
569
569
|
function $r(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function ae(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J($r(e), e, t) : e;
|
|
574
574
|
}
|
|
575
575
|
function Rr(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return ae(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
function Ur(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return J;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : J;
|
|
585
585
|
}
|
|
586
586
|
function Gr(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -591,7 +591,7 @@ function Gr(e) {
|
|
|
591
591
|
function st(e) {
|
|
592
592
|
return Object.keys(e).concat(Gr(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ot(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
@@ -599,70 +599,56 @@ function wt(e, t) {
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
function Dr(e, t) {
|
|
602
|
-
return
|
|
602
|
+
return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
604
|
function Fr(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
606
|
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
607
|
-
n[i] =
|
|
607
|
+
n[i] = ae(e[i], r);
|
|
608
608
|
}), st(t).forEach(function(i) {
|
|
609
|
-
Dr(e, i) || (
|
|
609
|
+
Dr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject ||
|
|
612
|
+
function J(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = ae;
|
|
614
614
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
-
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) :
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : ae(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
J.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(n, i) {
|
|
621
|
-
return
|
|
621
|
+
return J(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var jr =
|
|
625
|
-
const Vr = /* @__PURE__ */
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
-
purpose with or without fee is hereby granted.
|
|
631
|
-
|
|
632
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
-
***************************************************************************** */
|
|
640
|
-
var $e = function(e, t) {
|
|
641
|
-
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
624
|
+
var jr = J, kr = jr;
|
|
625
|
+
const Vr = /* @__PURE__ */ Or(kr);
|
|
626
|
+
var Ue = function(e, t) {
|
|
627
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
642
628
|
r.__proto__ = n;
|
|
643
629
|
} || function(r, n) {
|
|
644
630
|
for (var i in n)
|
|
645
631
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
646
|
-
},
|
|
632
|
+
}, Ue(e, t);
|
|
647
633
|
};
|
|
648
|
-
function
|
|
634
|
+
function Te(e, t) {
|
|
649
635
|
if (typeof t != "function" && t !== null)
|
|
650
636
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
651
|
-
|
|
637
|
+
Ue(e, t);
|
|
652
638
|
function r() {
|
|
653
639
|
this.constructor = e;
|
|
654
640
|
}
|
|
655
641
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
656
642
|
}
|
|
657
|
-
var
|
|
658
|
-
return
|
|
643
|
+
var U = function() {
|
|
644
|
+
return U = Object.assign || function(t) {
|
|
659
645
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
660
646
|
r = arguments[n];
|
|
661
647
|
for (var s in r)
|
|
662
648
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
663
649
|
}
|
|
664
650
|
return t;
|
|
665
|
-
},
|
|
651
|
+
}, U.apply(this, arguments);
|
|
666
652
|
};
|
|
667
653
|
function Xr(e, t) {
|
|
668
654
|
var r = {};
|
|
@@ -673,14 +659,14 @@ function Xr(e, t) {
|
|
|
673
659
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
674
660
|
return r;
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
if (arguments.length === 2)
|
|
662
|
+
function Oe(e, t, r) {
|
|
663
|
+
if (r || arguments.length === 2)
|
|
678
664
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
679
665
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
680
|
-
return e.concat(s || t);
|
|
666
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
681
667
|
}
|
|
682
|
-
function
|
|
683
|
-
var r = t && t.cache ? t.cache :
|
|
668
|
+
function we(e, t) {
|
|
669
|
+
var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Zr;
|
|
684
670
|
return i(e, {
|
|
685
671
|
cache: r,
|
|
686
672
|
serializer: n
|
|
@@ -689,95 +675,103 @@ function Se(e, t) {
|
|
|
689
675
|
function zr(e) {
|
|
690
676
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
691
677
|
}
|
|
692
|
-
function
|
|
678
|
+
function Wr(e, t, r, n) {
|
|
693
679
|
var i = zr(n) ? n : r(n), s = t.get(i);
|
|
694
680
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
695
681
|
}
|
|
696
|
-
function
|
|
682
|
+
function wt(e, t, r) {
|
|
697
683
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
698
684
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
699
685
|
}
|
|
700
|
-
function
|
|
686
|
+
function Pt(e, t, r, n, i) {
|
|
701
687
|
return r.bind(t, e, n, i);
|
|
702
688
|
}
|
|
703
|
-
function Wr(e, t) {
|
|
704
|
-
var r = e.length === 1 ? Ot : Pt;
|
|
705
|
-
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
706
|
-
}
|
|
707
689
|
function Zr(e, t) {
|
|
708
|
-
|
|
690
|
+
var r = e.length === 1 ? Wr : wt;
|
|
691
|
+
return Pt(e, this, r, t.cache.create(), t.serializer);
|
|
709
692
|
}
|
|
710
693
|
function Qr(e, t) {
|
|
711
|
-
return
|
|
694
|
+
return Pt(e, this, wt, t.cache.create(), t.serializer);
|
|
712
695
|
}
|
|
713
696
|
var Jr = function() {
|
|
714
697
|
return JSON.stringify(arguments);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
698
|
+
}, qr = (
|
|
699
|
+
/** @class */
|
|
700
|
+
function() {
|
|
701
|
+
function e() {
|
|
702
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
703
|
+
}
|
|
704
|
+
return e.prototype.get = function(t) {
|
|
705
|
+
return this.cache[t];
|
|
706
|
+
}, e.prototype.set = function(t, r) {
|
|
707
|
+
this.cache[t] = r;
|
|
708
|
+
}, e;
|
|
709
|
+
}()
|
|
710
|
+
), Yr = {
|
|
726
711
|
create: function() {
|
|
727
|
-
return new
|
|
712
|
+
return new qr();
|
|
728
713
|
}
|
|
729
|
-
},
|
|
730
|
-
variadic:
|
|
731
|
-
|
|
732
|
-
|
|
714
|
+
}, Pe = {
|
|
715
|
+
variadic: Qr
|
|
716
|
+
}, _e = function() {
|
|
717
|
+
return _e = Object.assign || function(t) {
|
|
718
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
|
+
r = arguments[n];
|
|
720
|
+
for (var s in r)
|
|
721
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
|
+
}
|
|
723
|
+
return t;
|
|
724
|
+
}, _e.apply(this, arguments);
|
|
725
|
+
};
|
|
726
|
+
var y;
|
|
733
727
|
(function(e) {
|
|
734
728
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
735
729
|
})(y || (y = {}));
|
|
736
|
-
var
|
|
730
|
+
var v;
|
|
737
731
|
(function(e) {
|
|
738
732
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
739
|
-
})(
|
|
740
|
-
var
|
|
733
|
+
})(v || (v = {}));
|
|
734
|
+
var q;
|
|
741
735
|
(function(e) {
|
|
742
736
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
743
|
-
})(
|
|
737
|
+
})(q || (q = {}));
|
|
744
738
|
function ot(e) {
|
|
745
|
-
return e.type ===
|
|
739
|
+
return e.type === v.literal;
|
|
746
740
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.type ===
|
|
741
|
+
function Kr(e) {
|
|
742
|
+
return e.type === v.argument;
|
|
749
743
|
}
|
|
750
744
|
function Nt(e) {
|
|
751
|
-
return e.type ===
|
|
745
|
+
return e.type === v.number;
|
|
752
746
|
}
|
|
753
747
|
function Lt(e) {
|
|
754
|
-
return e.type ===
|
|
748
|
+
return e.type === v.date;
|
|
755
749
|
}
|
|
756
750
|
function It(e) {
|
|
757
|
-
return e.type ===
|
|
751
|
+
return e.type === v.time;
|
|
758
752
|
}
|
|
759
753
|
function Mt(e) {
|
|
760
|
-
return e.type ===
|
|
754
|
+
return e.type === v.select;
|
|
761
755
|
}
|
|
762
756
|
function $t(e) {
|
|
763
|
-
return e.type ===
|
|
757
|
+
return e.type === v.plural;
|
|
764
758
|
}
|
|
765
|
-
function
|
|
766
|
-
return e.type ===
|
|
759
|
+
function en(e) {
|
|
760
|
+
return e.type === v.pound;
|
|
767
761
|
}
|
|
768
762
|
function Rt(e) {
|
|
769
|
-
return e.type ===
|
|
763
|
+
return e.type === v.tag;
|
|
770
764
|
}
|
|
771
765
|
function Ut(e) {
|
|
772
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
766
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
773
767
|
}
|
|
774
|
-
function
|
|
775
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
768
|
+
function Ge(e) {
|
|
769
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
776
770
|
}
|
|
777
|
-
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
778
|
-
function
|
|
771
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
|
|
772
|
+
function rn(e) {
|
|
779
773
|
var t = {};
|
|
780
|
-
return e.replace(
|
|
774
|
+
return e.replace(tn, function(r) {
|
|
781
775
|
var n = r.length;
|
|
782
776
|
switch (r[0]) {
|
|
783
777
|
case "G":
|
|
@@ -866,11 +860,21 @@ function tn(e) {
|
|
|
866
860
|
return "";
|
|
867
861
|
}), t;
|
|
868
862
|
}
|
|
869
|
-
var
|
|
870
|
-
function
|
|
863
|
+
var C = function() {
|
|
864
|
+
return C = Object.assign || function(t) {
|
|
865
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
866
|
+
r = arguments[n];
|
|
867
|
+
for (var s in r)
|
|
868
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
869
|
+
}
|
|
870
|
+
return t;
|
|
871
|
+
}, C.apply(this, arguments);
|
|
872
|
+
};
|
|
873
|
+
var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function sn(e) {
|
|
871
875
|
if (e.length === 0)
|
|
872
876
|
throw new Error("Number skeleton cannot be empty");
|
|
873
|
-
for (var t = e.split(
|
|
877
|
+
for (var t = e.split(nn).filter(function(f) {
|
|
874
878
|
return f.length > 0;
|
|
875
879
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
876
880
|
var s = i[n], o = s.split("/");
|
|
@@ -885,10 +889,10 @@ function nn(e) {
|
|
|
885
889
|
}
|
|
886
890
|
return r;
|
|
887
891
|
}
|
|
888
|
-
function
|
|
892
|
+
function on(e) {
|
|
889
893
|
return e.replace(/^(.*?)-/, "");
|
|
890
894
|
}
|
|
891
|
-
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
895
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
|
|
892
896
|
function ut(e) {
|
|
893
897
|
var t = {};
|
|
894
898
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
@@ -935,7 +939,7 @@ function jt(e) {
|
|
|
935
939
|
};
|
|
936
940
|
}
|
|
937
941
|
}
|
|
938
|
-
function
|
|
942
|
+
function un(e) {
|
|
939
943
|
var t;
|
|
940
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
941
945
|
notation: "engineering"
|
|
@@ -953,7 +957,7 @@ function ht(e) {
|
|
|
953
957
|
var t = {}, r = jt(e);
|
|
954
958
|
return r || t;
|
|
955
959
|
}
|
|
956
|
-
function
|
|
960
|
+
function hn(e) {
|
|
957
961
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
958
962
|
var i = n[r];
|
|
959
963
|
switch (i.stem) {
|
|
@@ -977,7 +981,7 @@ function un(e) {
|
|
|
977
981
|
continue;
|
|
978
982
|
case "measure-unit":
|
|
979
983
|
case "unit":
|
|
980
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = on(i.options[0]);
|
|
981
985
|
continue;
|
|
982
986
|
case "compact-short":
|
|
983
987
|
case "K":
|
|
@@ -988,13 +992,13 @@ function un(e) {
|
|
|
988
992
|
t.notation = "compact", t.compactDisplay = "long";
|
|
989
993
|
continue;
|
|
990
994
|
case "scientific":
|
|
991
|
-
t =
|
|
992
|
-
return
|
|
995
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
996
|
+
return C(C({}, h), ht(a));
|
|
993
997
|
}, {}));
|
|
994
998
|
continue;
|
|
995
999
|
case "engineering":
|
|
996
|
-
t =
|
|
997
|
-
return
|
|
1000
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1001
|
+
return C(C({}, h), ht(a));
|
|
998
1002
|
}, {}));
|
|
999
1003
|
continue;
|
|
1000
1004
|
case "notation-simple":
|
|
@@ -1039,7 +1043,7 @@ function un(e) {
|
|
|
1039
1043
|
case "integer-width":
|
|
1040
1044
|
if (i.options.length > 1)
|
|
1041
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1042
|
-
i.options[0].replace(
|
|
1046
|
+
i.options[0].replace(an, function(h, a, l, c, f, p) {
|
|
1043
1047
|
if (a)
|
|
1044
1048
|
t.minimumIntegerDigits = l.length;
|
|
1045
1049
|
else {
|
|
@@ -1063,21 +1067,21 @@ function un(e) {
|
|
|
1063
1067
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1064
1068
|
});
|
|
1065
1069
|
var s = i.options[0];
|
|
1066
|
-
s === "w" ? t =
|
|
1070
|
+
s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), ut(s)));
|
|
1067
1071
|
continue;
|
|
1068
1072
|
}
|
|
1069
1073
|
if (Dt.test(i.stem)) {
|
|
1070
|
-
t =
|
|
1074
|
+
t = C(C({}, t), ut(i.stem));
|
|
1071
1075
|
continue;
|
|
1072
1076
|
}
|
|
1073
1077
|
var o = jt(i.stem);
|
|
1074
|
-
o && (t =
|
|
1075
|
-
var u =
|
|
1076
|
-
u && (t =
|
|
1078
|
+
o && (t = C(C({}, t), o));
|
|
1079
|
+
var u = un(i.stem);
|
|
1080
|
+
u && (t = C(C({}, t), u));
|
|
1077
1081
|
}
|
|
1078
1082
|
return t;
|
|
1079
1083
|
}
|
|
1080
|
-
var
|
|
1084
|
+
var me = {
|
|
1081
1085
|
"001": [
|
|
1082
1086
|
"H",
|
|
1083
1087
|
"h"
|
|
@@ -2492,13 +2496,13 @@ var ge = {
|
|
|
2492
2496
|
"h"
|
|
2493
2497
|
]
|
|
2494
2498
|
};
|
|
2495
|
-
function
|
|
2499
|
+
function ln(e, t) {
|
|
2496
2500
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2497
2501
|
var i = e.charAt(n);
|
|
2498
2502
|
if (i === "j") {
|
|
2499
2503
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2500
2504
|
s++, n++;
|
|
2501
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2505
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = fn(t);
|
|
2502
2506
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2503
2507
|
r += h;
|
|
2504
2508
|
for (; o-- > 0; )
|
|
@@ -2508,7 +2512,7 @@ function hn(e, t) {
|
|
|
2508
2512
|
}
|
|
2509
2513
|
return r;
|
|
2510
2514
|
}
|
|
2511
|
-
function
|
|
2515
|
+
function fn(e) {
|
|
2512
2516
|
var t = e.hourCycle;
|
|
2513
2517
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2514
2518
|
e.hourCycles && // @ts-ignore
|
|
@@ -2527,23 +2531,23 @@ function ln(e) {
|
|
|
2527
2531
|
}
|
|
2528
2532
|
var r = e.language, n;
|
|
2529
2533
|
r !== "root" && (n = e.maximize().region);
|
|
2530
|
-
var i =
|
|
2534
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2531
2535
|
return i[0];
|
|
2532
2536
|
}
|
|
2533
|
-
var
|
|
2537
|
+
var Ne, cn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
|
|
2534
2538
|
function _(e, t) {
|
|
2535
2539
|
return { start: e, end: t };
|
|
2536
2540
|
}
|
|
2537
|
-
var
|
|
2541
|
+
var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), pn = !!String.fromCodePoint, dn = !!Object.fromEntries, bn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
|
|
2538
2542
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2539
|
-
},
|
|
2543
|
+
}, De = !0;
|
|
2540
2544
|
try {
|
|
2541
|
-
var
|
|
2542
|
-
|
|
2545
|
+
var vn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2546
|
+
De = ((Ne = vn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2543
2547
|
} catch (e) {
|
|
2544
|
-
|
|
2548
|
+
De = !1;
|
|
2545
2549
|
}
|
|
2546
|
-
var lt =
|
|
2550
|
+
var lt = mn ? (
|
|
2547
2551
|
// Native
|
|
2548
2552
|
function(t, r, n) {
|
|
2549
2553
|
return t.startsWith(r, n);
|
|
@@ -2553,7 +2557,7 @@ var lt = gn ? (
|
|
|
2553
2557
|
function(t, r, n) {
|
|
2554
2558
|
return t.slice(n, n + r.length) === r;
|
|
2555
2559
|
}
|
|
2556
|
-
),
|
|
2560
|
+
), Fe = pn ? String.fromCodePoint : (
|
|
2557
2561
|
// IE11
|
|
2558
2562
|
function() {
|
|
2559
2563
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2567,7 +2571,7 @@ var lt = gn ? (
|
|
|
2567
2571
|
}
|
|
2568
2572
|
), ft = (
|
|
2569
2573
|
// native
|
|
2570
|
-
|
|
2574
|
+
dn ? Object.fromEntries : (
|
|
2571
2575
|
// Ponyfill
|
|
2572
2576
|
function(t) {
|
|
2573
2577
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2577,7 +2581,7 @@ var lt = gn ? (
|
|
|
2577
2581
|
return r;
|
|
2578
2582
|
}
|
|
2579
2583
|
)
|
|
2580
|
-
), kt =
|
|
2584
|
+
), kt = bn ? (
|
|
2581
2585
|
// Native
|
|
2582
2586
|
function(t, r) {
|
|
2583
2587
|
return t.codePointAt(r);
|
|
@@ -2591,7 +2595,7 @@ var lt = gn ? (
|
|
|
2591
2595
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2592
2596
|
}
|
|
2593
2597
|
}
|
|
2594
|
-
),
|
|
2598
|
+
), Tn = yn ? (
|
|
2595
2599
|
// Native
|
|
2596
2600
|
function(t) {
|
|
2597
2601
|
return t.trimStart();
|
|
@@ -2599,9 +2603,9 @@ var lt = gn ? (
|
|
|
2599
2603
|
) : (
|
|
2600
2604
|
// Ponyfill
|
|
2601
2605
|
function(t) {
|
|
2602
|
-
return t.replace(
|
|
2606
|
+
return t.replace(cn, "");
|
|
2603
2607
|
}
|
|
2604
|
-
),
|
|
2608
|
+
), Cn = _n ? (
|
|
2605
2609
|
// Native
|
|
2606
2610
|
function(t) {
|
|
2607
2611
|
return t.trimEnd();
|
|
@@ -2609,30 +2613,30 @@ var lt = gn ? (
|
|
|
2609
2613
|
) : (
|
|
2610
2614
|
// Ponyfill
|
|
2611
2615
|
function(t) {
|
|
2612
|
-
return t.replace(
|
|
2616
|
+
return t.replace(gn, "");
|
|
2613
2617
|
}
|
|
2614
2618
|
);
|
|
2615
2619
|
function Vt(e, t) {
|
|
2616
2620
|
return new RegExp(e, t);
|
|
2617
2621
|
}
|
|
2618
|
-
var
|
|
2619
|
-
if (
|
|
2622
|
+
var je;
|
|
2623
|
+
if (De) {
|
|
2620
2624
|
var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2621
|
-
|
|
2625
|
+
je = function(t, r) {
|
|
2622
2626
|
var n;
|
|
2623
2627
|
ct.lastIndex = r;
|
|
2624
2628
|
var i = ct.exec(t);
|
|
2625
2629
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2626
2630
|
};
|
|
2627
2631
|
} else
|
|
2628
|
-
|
|
2632
|
+
je = function(t, r) {
|
|
2629
2633
|
for (var n = []; ; ) {
|
|
2630
2634
|
var i = kt(t, r);
|
|
2631
2635
|
if (i === void 0 || Xt(i) || Bn(i))
|
|
2632
2636
|
break;
|
|
2633
2637
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2634
2638
|
}
|
|
2635
|
-
return
|
|
2639
|
+
return Fe.apply(void 0, n);
|
|
2636
2640
|
};
|
|
2637
2641
|
var Hn = (
|
|
2638
2642
|
/** @class */
|
|
@@ -2658,14 +2662,14 @@ var Hn = (
|
|
|
2658
2662
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2659
2663
|
var u = this.clonePosition();
|
|
2660
2664
|
this.bump(), i.push({
|
|
2661
|
-
type:
|
|
2665
|
+
type: v.pound,
|
|
2662
2666
|
location: _(u, this.clonePosition())
|
|
2663
2667
|
});
|
|
2664
2668
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2665
2669
|
if (n)
|
|
2666
2670
|
break;
|
|
2667
2671
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2668
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2672
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2669
2673
|
var o = this.parseTag(t, r);
|
|
2670
2674
|
if (o.err)
|
|
2671
2675
|
return o;
|
|
@@ -2686,7 +2690,7 @@ var Hn = (
|
|
|
2686
2690
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2687
2691
|
return {
|
|
2688
2692
|
val: {
|
|
2689
|
-
type:
|
|
2693
|
+
type: v.literal,
|
|
2690
2694
|
value: "<".concat(i, "/>"),
|
|
2691
2695
|
location: _(n, this.clonePosition())
|
|
2692
2696
|
},
|
|
@@ -2698,12 +2702,12 @@ var Hn = (
|
|
|
2698
2702
|
return s;
|
|
2699
2703
|
var o = s.val, u = this.clonePosition();
|
|
2700
2704
|
if (this.bumpIf("</")) {
|
|
2701
|
-
if (this.isEOF() || !
|
|
2705
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2702
2706
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2703
2707
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2704
2708
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2705
2709
|
val: {
|
|
2706
|
-
type:
|
|
2710
|
+
type: v.tag,
|
|
2707
2711
|
value: i,
|
|
2708
2712
|
children: o,
|
|
2709
2713
|
location: _(n, this.clonePosition())
|
|
@@ -2740,12 +2744,12 @@ var Hn = (
|
|
|
2740
2744
|
}
|
|
2741
2745
|
var h = _(n, this.clonePosition());
|
|
2742
2746
|
return {
|
|
2743
|
-
val: { type:
|
|
2747
|
+
val: { type: v.literal, value: i, location: h },
|
|
2744
2748
|
err: null
|
|
2745
2749
|
};
|
|
2746
2750
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2747
2751
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2748
|
-
!
|
|
2752
|
+
!Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2749
2753
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2750
2754
|
if (this.isEOF() || this.char() !== 39)
|
|
2751
2755
|
return null;
|
|
@@ -2779,12 +2783,12 @@ var Hn = (
|
|
|
2779
2783
|
r.push(n);
|
|
2780
2784
|
this.bump();
|
|
2781
2785
|
}
|
|
2782
|
-
return
|
|
2786
|
+
return Fe.apply(void 0, r);
|
|
2783
2787
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2784
2788
|
if (this.isEOF())
|
|
2785
2789
|
return null;
|
|
2786
2790
|
var n = this.char();
|
|
2787
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2791
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2788
2792
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2789
2793
|
var n = this.clonePosition();
|
|
2790
2794
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2800,7 +2804,7 @@ var Hn = (
|
|
|
2800
2804
|
case 125:
|
|
2801
2805
|
return this.bump(), {
|
|
2802
2806
|
val: {
|
|
2803
|
-
type:
|
|
2807
|
+
type: v.argument,
|
|
2804
2808
|
// value does not include the opening and closing braces.
|
|
2805
2809
|
value: i,
|
|
2806
2810
|
location: _(n, this.clonePosition())
|
|
@@ -2813,7 +2817,7 @@ var Hn = (
|
|
|
2813
2817
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2814
2818
|
}
|
|
2815
2819
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2816
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2820
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2817
2821
|
this.bumpTo(i);
|
|
2818
2822
|
var s = this.clonePosition(), o = _(t, s);
|
|
2819
2823
|
return { value: n, location: o };
|
|
@@ -2832,7 +2836,7 @@ var Hn = (
|
|
|
2832
2836
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2833
2837
|
if (c.err)
|
|
2834
2838
|
return c;
|
|
2835
|
-
var f =
|
|
2839
|
+
var f = Cn(c.val);
|
|
2836
2840
|
if (f.length === 0)
|
|
2837
2841
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2838
2842
|
var p = _(l, this.clonePosition());
|
|
@@ -2843,33 +2847,33 @@ var Hn = (
|
|
|
2843
2847
|
return d;
|
|
2844
2848
|
var g = _(i, this.clonePosition());
|
|
2845
2849
|
if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
|
|
2846
|
-
var E =
|
|
2850
|
+
var E = Tn(a.style.slice(2));
|
|
2847
2851
|
if (u === "number") {
|
|
2848
2852
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2849
2853
|
return c.err ? c : {
|
|
2850
|
-
val: { type:
|
|
2854
|
+
val: { type: v.number, value: n, location: g, style: c.val },
|
|
2851
2855
|
err: null
|
|
2852
2856
|
};
|
|
2853
2857
|
} else {
|
|
2854
2858
|
if (E.length === 0)
|
|
2855
2859
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2856
2860
|
var m = E;
|
|
2857
|
-
this.locale && (m =
|
|
2861
|
+
this.locale && (m = ln(E, this.locale));
|
|
2858
2862
|
var f = {
|
|
2859
|
-
type:
|
|
2863
|
+
type: q.dateTime,
|
|
2860
2864
|
pattern: m,
|
|
2861
2865
|
location: a.styleLocation,
|
|
2862
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2863
|
-
},
|
|
2866
|
+
parsedOptions: this.shouldParseSkeletons ? rn(m) : {}
|
|
2867
|
+
}, T = u === "date" ? v.date : v.time;
|
|
2864
2868
|
return {
|
|
2865
|
-
val: { type:
|
|
2869
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2866
2870
|
err: null
|
|
2867
2871
|
};
|
|
2868
2872
|
}
|
|
2869
2873
|
}
|
|
2870
2874
|
return {
|
|
2871
2875
|
val: {
|
|
2872
|
-
type: u === "number" ?
|
|
2876
|
+
type: u === "number" ? v.number : u === "date" ? v.date : v.time,
|
|
2873
2877
|
value: n,
|
|
2874
2878
|
location: g,
|
|
2875
2879
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2880,41 +2884,41 @@ var Hn = (
|
|
|
2880
2884
|
case "plural":
|
|
2881
2885
|
case "selectordinal":
|
|
2882
2886
|
case "select": {
|
|
2883
|
-
var
|
|
2887
|
+
var S = this.clonePosition();
|
|
2884
2888
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2885
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2889
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, _e({}, S)));
|
|
2886
2890
|
this.bumpSpace();
|
|
2887
|
-
var
|
|
2888
|
-
if (u !== "select" &&
|
|
2891
|
+
var w = this.parseIdentifierIfPossible(), A = 0;
|
|
2892
|
+
if (u !== "select" && w.value === "offset") {
|
|
2889
2893
|
if (!this.bumpIf(":"))
|
|
2890
2894
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2891
2895
|
this.bumpSpace();
|
|
2892
2896
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2893
2897
|
if (c.err)
|
|
2894
2898
|
return c;
|
|
2895
|
-
this.bumpSpace(),
|
|
2899
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
|
|
2896
2900
|
}
|
|
2897
|
-
var
|
|
2898
|
-
if (
|
|
2899
|
-
return
|
|
2901
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2902
|
+
if (H.err)
|
|
2903
|
+
return H;
|
|
2900
2904
|
var d = this.tryParseArgumentClose(i);
|
|
2901
2905
|
if (d.err)
|
|
2902
2906
|
return d;
|
|
2903
2907
|
var P = _(i, this.clonePosition());
|
|
2904
2908
|
return u === "select" ? {
|
|
2905
2909
|
val: {
|
|
2906
|
-
type:
|
|
2910
|
+
type: v.select,
|
|
2907
2911
|
value: n,
|
|
2908
|
-
options: ft(
|
|
2912
|
+
options: ft(H.val),
|
|
2909
2913
|
location: P
|
|
2910
2914
|
},
|
|
2911
2915
|
err: null
|
|
2912
2916
|
} : {
|
|
2913
2917
|
val: {
|
|
2914
|
-
type:
|
|
2918
|
+
type: v.plural,
|
|
2915
2919
|
value: n,
|
|
2916
|
-
options: ft(
|
|
2917
|
-
offset:
|
|
2920
|
+
options: ft(H.val),
|
|
2921
|
+
offset: A,
|
|
2918
2922
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2919
2923
|
location: P
|
|
2920
2924
|
},
|
|
@@ -2964,16 +2968,16 @@ var Hn = (
|
|
|
2964
2968
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2965
2969
|
var n = [];
|
|
2966
2970
|
try {
|
|
2967
|
-
n =
|
|
2971
|
+
n = sn(t);
|
|
2968
2972
|
} catch (i) {
|
|
2969
2973
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2970
2974
|
}
|
|
2971
2975
|
return {
|
|
2972
2976
|
val: {
|
|
2973
|
-
type:
|
|
2977
|
+
type: q.number,
|
|
2974
2978
|
tokens: n,
|
|
2975
2979
|
location: r,
|
|
2976
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
+
parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
|
|
2977
2981
|
},
|
|
2978
2982
|
err: null
|
|
2979
2983
|
};
|
|
@@ -3087,11 +3091,11 @@ var Hn = (
|
|
|
3087
3091
|
}, e;
|
|
3088
3092
|
}()
|
|
3089
3093
|
);
|
|
3090
|
-
function
|
|
3094
|
+
function ke(e) {
|
|
3091
3095
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3092
3096
|
}
|
|
3093
|
-
function
|
|
3094
|
-
return
|
|
3097
|
+
function Sn(e) {
|
|
3098
|
+
return ke(e) || e === 47;
|
|
3095
3099
|
}
|
|
3096
3100
|
function An(e) {
|
|
3097
3101
|
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;
|
|
@@ -3102,32 +3106,32 @@ function Xt(e) {
|
|
|
3102
3106
|
function Bn(e) {
|
|
3103
3107
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3104
3108
|
}
|
|
3105
|
-
function
|
|
3109
|
+
function Ve(e) {
|
|
3106
3110
|
e.forEach(function(t) {
|
|
3107
3111
|
if (delete t.location, Mt(t) || $t(t))
|
|
3108
3112
|
for (var r in t.options)
|
|
3109
|
-
delete t.options[r].location,
|
|
3113
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3110
3114
|
else
|
|
3111
|
-
Nt(t) && Ut(t.style) || (Lt(t) || It(t)) &&
|
|
3115
|
+
Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && Ge(t.style) ? delete t.style.location : Rt(t) && Ve(t.children);
|
|
3112
3116
|
});
|
|
3113
3117
|
}
|
|
3114
|
-
function
|
|
3115
|
-
t === void 0 && (t = {}), t =
|
|
3118
|
+
function On(e, t) {
|
|
3119
|
+
t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3116
3120
|
var r = new Hn(e, t).parse();
|
|
3117
3121
|
if (r.err) {
|
|
3118
3122
|
var n = SyntaxError(y[r.err.kind]);
|
|
3119
3123
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3120
3124
|
}
|
|
3121
|
-
return t != null && t.captureLocation ||
|
|
3125
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3122
3126
|
}
|
|
3123
|
-
var
|
|
3127
|
+
var Y;
|
|
3124
3128
|
(function(e) {
|
|
3125
3129
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3126
|
-
})(
|
|
3127
|
-
var
|
|
3130
|
+
})(Y || (Y = {}));
|
|
3131
|
+
var Ce = (
|
|
3128
3132
|
/** @class */
|
|
3129
3133
|
function(e) {
|
|
3130
|
-
|
|
3134
|
+
Te(t, e);
|
|
3131
3135
|
function t(r, n, i) {
|
|
3132
3136
|
var s = e.call(this, r) || this;
|
|
3133
3137
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3139,48 +3143,48 @@ var ve = (
|
|
|
3139
3143
|
), gt = (
|
|
3140
3144
|
/** @class */
|
|
3141
3145
|
function(e) {
|
|
3142
|
-
|
|
3146
|
+
Te(t, e);
|
|
3143
3147
|
function t(r, n, i, s) {
|
|
3144
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3148
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3145
3149
|
}
|
|
3146
3150
|
return t;
|
|
3147
|
-
}(
|
|
3151
|
+
}(Ce)
|
|
3148
3152
|
), wn = (
|
|
3149
3153
|
/** @class */
|
|
3150
3154
|
function(e) {
|
|
3151
|
-
|
|
3155
|
+
Te(t, e);
|
|
3152
3156
|
function t(r, n, i) {
|
|
3153
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3157
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3154
3158
|
}
|
|
3155
3159
|
return t;
|
|
3156
|
-
}(
|
|
3157
|
-
),
|
|
3160
|
+
}(Ce)
|
|
3161
|
+
), Pn = (
|
|
3158
3162
|
/** @class */
|
|
3159
3163
|
function(e) {
|
|
3160
|
-
|
|
3164
|
+
Te(t, e);
|
|
3161
3165
|
function t(r, n) {
|
|
3162
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3166
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3163
3167
|
}
|
|
3164
3168
|
return t;
|
|
3165
|
-
}(
|
|
3166
|
-
),
|
|
3169
|
+
}(Ce)
|
|
3170
|
+
), O;
|
|
3167
3171
|
(function(e) {
|
|
3168
3172
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3169
|
-
})(
|
|
3170
|
-
function
|
|
3173
|
+
})(O || (O = {}));
|
|
3174
|
+
function Nn(e) {
|
|
3171
3175
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3172
3176
|
var n = t[t.length - 1];
|
|
3173
|
-
return !n || n.type !==
|
|
3177
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3174
3178
|
}, []);
|
|
3175
3179
|
}
|
|
3176
|
-
function
|
|
3180
|
+
function Ln(e) {
|
|
3177
3181
|
return typeof e == "function";
|
|
3178
3182
|
}
|
|
3179
|
-
function
|
|
3183
|
+
function de(e, t, r, n, i, s, o) {
|
|
3180
3184
|
if (e.length === 1 && ot(e[0]))
|
|
3181
3185
|
return [
|
|
3182
3186
|
{
|
|
3183
|
-
type:
|
|
3187
|
+
type: O.literal,
|
|
3184
3188
|
value: e[0].value
|
|
3185
3189
|
}
|
|
3186
3190
|
];
|
|
@@ -3188,41 +3192,41 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3188
3192
|
var l = a[h];
|
|
3189
3193
|
if (ot(l)) {
|
|
3190
3194
|
u.push({
|
|
3191
|
-
type:
|
|
3195
|
+
type: O.literal,
|
|
3192
3196
|
value: l.value
|
|
3193
3197
|
});
|
|
3194
3198
|
continue;
|
|
3195
3199
|
}
|
|
3196
|
-
if (
|
|
3200
|
+
if (en(l)) {
|
|
3197
3201
|
typeof s == "number" && u.push({
|
|
3198
|
-
type:
|
|
3202
|
+
type: O.literal,
|
|
3199
3203
|
value: r.getNumberFormat(t).format(s)
|
|
3200
3204
|
});
|
|
3201
3205
|
continue;
|
|
3202
3206
|
}
|
|
3203
3207
|
var c = l.value;
|
|
3204
3208
|
if (!(i && c in i))
|
|
3205
|
-
throw new
|
|
3209
|
+
throw new Pn(c, o);
|
|
3206
3210
|
var f = i[c];
|
|
3207
|
-
if (
|
|
3211
|
+
if (Kr(l)) {
|
|
3208
3212
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3209
|
-
type: typeof f == "string" ?
|
|
3213
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3210
3214
|
value: f
|
|
3211
3215
|
});
|
|
3212
3216
|
continue;
|
|
3213
3217
|
}
|
|
3214
3218
|
if (Lt(l)) {
|
|
3215
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3219
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3216
3220
|
u.push({
|
|
3217
|
-
type:
|
|
3221
|
+
type: O.literal,
|
|
3218
3222
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3219
3223
|
});
|
|
3220
3224
|
continue;
|
|
3221
3225
|
}
|
|
3222
3226
|
if (It(l)) {
|
|
3223
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3227
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3224
3228
|
u.push({
|
|
3225
|
-
type:
|
|
3229
|
+
type: O.literal,
|
|
3226
3230
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3227
3231
|
});
|
|
3228
3232
|
continue;
|
|
@@ -3230,61 +3234,61 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3230
3234
|
if (Nt(l)) {
|
|
3231
3235
|
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3232
3236
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3233
|
-
type:
|
|
3237
|
+
type: O.literal,
|
|
3234
3238
|
value: r.getNumberFormat(t, p).format(f)
|
|
3235
3239
|
});
|
|
3236
3240
|
continue;
|
|
3237
3241
|
}
|
|
3238
3242
|
if (Rt(l)) {
|
|
3239
3243
|
var d = l.children, g = l.value, E = i[g];
|
|
3240
|
-
if (!
|
|
3244
|
+
if (!Ln(E))
|
|
3241
3245
|
throw new wn(g, "function", o);
|
|
3242
|
-
var m =
|
|
3243
|
-
return
|
|
3246
|
+
var m = de(d, t, r, n, i, s), T = E(m.map(function(A) {
|
|
3247
|
+
return A.value;
|
|
3244
3248
|
}));
|
|
3245
|
-
Array.isArray(
|
|
3249
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(A) {
|
|
3246
3250
|
return {
|
|
3247
|
-
type: typeof
|
|
3248
|
-
value:
|
|
3251
|
+
type: typeof A == "string" ? O.literal : O.object,
|
|
3252
|
+
value: A
|
|
3249
3253
|
};
|
|
3250
3254
|
}));
|
|
3251
3255
|
}
|
|
3252
3256
|
if (Mt(l)) {
|
|
3253
|
-
var
|
|
3254
|
-
if (!
|
|
3257
|
+
var S = l.options[f] || l.options.other;
|
|
3258
|
+
if (!S)
|
|
3255
3259
|
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3256
|
-
u.push.apply(u,
|
|
3260
|
+
u.push.apply(u, de(S.value, t, r, n, i));
|
|
3257
3261
|
continue;
|
|
3258
3262
|
}
|
|
3259
3263
|
if ($t(l)) {
|
|
3260
|
-
var
|
|
3261
|
-
if (!
|
|
3264
|
+
var S = l.options["=".concat(f)];
|
|
3265
|
+
if (!S) {
|
|
3262
3266
|
if (!Intl.PluralRules)
|
|
3263
|
-
throw new
|
|
3267
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3264
3268
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3265
|
-
`,
|
|
3266
|
-
var
|
|
3267
|
-
|
|
3269
|
+
`, Y.MISSING_INTL_API, o);
|
|
3270
|
+
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3271
|
+
S = l.options[w] || l.options.other;
|
|
3268
3272
|
}
|
|
3269
|
-
if (!
|
|
3273
|
+
if (!S)
|
|
3270
3274
|
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3271
|
-
u.push.apply(u,
|
|
3275
|
+
u.push.apply(u, de(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3272
3276
|
continue;
|
|
3273
3277
|
}
|
|
3274
3278
|
}
|
|
3275
|
-
return
|
|
3279
|
+
return Nn(u);
|
|
3276
3280
|
}
|
|
3277
|
-
function
|
|
3278
|
-
return t ?
|
|
3279
|
-
return r[n] =
|
|
3281
|
+
function In(e, t) {
|
|
3282
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3283
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3280
3284
|
}, {})) : e;
|
|
3281
3285
|
}
|
|
3282
|
-
function
|
|
3286
|
+
function Mn(e, t) {
|
|
3283
3287
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3284
|
-
return r[n] =
|
|
3285
|
-
},
|
|
3288
|
+
return r[n] = In(e[n], t[n]), r;
|
|
3289
|
+
}, U({}, e)) : e;
|
|
3286
3290
|
}
|
|
3287
|
-
function
|
|
3291
|
+
function Le(e) {
|
|
3288
3292
|
return {
|
|
3289
3293
|
create: function() {
|
|
3290
3294
|
return {
|
|
@@ -3298,39 +3302,39 @@ function Pe(e) {
|
|
|
3298
3302
|
}
|
|
3299
3303
|
};
|
|
3300
3304
|
}
|
|
3301
|
-
function
|
|
3305
|
+
function $n(e) {
|
|
3302
3306
|
return e === void 0 && (e = {
|
|
3303
3307
|
number: {},
|
|
3304
3308
|
dateTime: {},
|
|
3305
3309
|
pluralRules: {}
|
|
3306
3310
|
}), {
|
|
3307
|
-
getNumberFormat:
|
|
3311
|
+
getNumberFormat: we(function() {
|
|
3308
3312
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3309
3313
|
r[n] = arguments[n];
|
|
3310
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3311
3315
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3316
|
+
cache: Le(e.number),
|
|
3317
|
+
strategy: Pe.variadic
|
|
3314
3318
|
}),
|
|
3315
|
-
getDateTimeFormat:
|
|
3319
|
+
getDateTimeFormat: we(function() {
|
|
3316
3320
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3317
3321
|
r[n] = arguments[n];
|
|
3318
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3319
3323
|
}, {
|
|
3320
|
-
cache:
|
|
3321
|
-
strategy:
|
|
3324
|
+
cache: Le(e.dateTime),
|
|
3325
|
+
strategy: Pe.variadic
|
|
3322
3326
|
}),
|
|
3323
|
-
getPluralRules:
|
|
3327
|
+
getPluralRules: we(function() {
|
|
3324
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3325
3329
|
r[n] = arguments[n];
|
|
3326
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3327
3331
|
}, {
|
|
3328
|
-
cache:
|
|
3329
|
-
strategy:
|
|
3332
|
+
cache: Le(e.pluralRules),
|
|
3333
|
+
strategy: Pe.variadic
|
|
3330
3334
|
})
|
|
3331
3335
|
};
|
|
3332
3336
|
}
|
|
3333
|
-
var
|
|
3337
|
+
var Rn = (
|
|
3334
3338
|
/** @class */
|
|
3335
3339
|
function() {
|
|
3336
3340
|
function e(t, r, n, i) {
|
|
@@ -3345,11 +3349,11 @@ var $n = (
|
|
|
3345
3349
|
if (a.length === 1)
|
|
3346
3350
|
return a[0].value;
|
|
3347
3351
|
var l = a.reduce(function(c, f) {
|
|
3348
|
-
return !c.length || f.type !==
|
|
3352
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3349
3353
|
}, []);
|
|
3350
3354
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3351
3355
|
}, this.formatToParts = function(h) {
|
|
3352
|
-
return
|
|
3356
|
+
return de(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3353
3357
|
}, this.resolvedOptions = function() {
|
|
3354
3358
|
var h;
|
|
3355
3359
|
return {
|
|
@@ -3363,12 +3367,12 @@ var $n = (
|
|
|
3363
3367
|
var o = i || {};
|
|
3364
3368
|
o.formatters;
|
|
3365
3369
|
var u = Xr(o, ["formatters"]);
|
|
3366
|
-
this.ast = e.__parse(t,
|
|
3370
|
+
this.ast = e.__parse(t, U(U({}, u), { locale: this.resolvedLocale }));
|
|
3367
3371
|
} else
|
|
3368
3372
|
this.ast = t;
|
|
3369
3373
|
if (!Array.isArray(this.ast))
|
|
3370
3374
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3371
|
-
this.formats =
|
|
3375
|
+
this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || $n(this.formatterCache);
|
|
3372
3376
|
}
|
|
3373
3377
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3374
3378
|
get: function() {
|
|
@@ -3381,7 +3385,7 @@ var $n = (
|
|
|
3381
3385
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3382
3386
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3383
3387
|
}
|
|
3384
|
-
}, e.__parse =
|
|
3388
|
+
}, e.__parse = On, e.formats = {
|
|
3385
3389
|
number: {
|
|
3386
3390
|
integer: {
|
|
3387
3391
|
maximumFractionDigits: 0
|
|
@@ -3442,7 +3446,7 @@ var $n = (
|
|
|
3442
3446
|
}, e;
|
|
3443
3447
|
}()
|
|
3444
3448
|
);
|
|
3445
|
-
function
|
|
3449
|
+
function Un(e, t) {
|
|
3446
3450
|
if (t == null)
|
|
3447
3451
|
return;
|
|
3448
3452
|
if (t in e)
|
|
@@ -3463,36 +3467,36 @@ function Rn(e, t) {
|
|
|
3463
3467
|
n = void 0;
|
|
3464
3468
|
return n;
|
|
3465
3469
|
}
|
|
3466
|
-
const
|
|
3470
|
+
const F = {}, Gn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), zt = (e, t) => {
|
|
3467
3471
|
if (t == null)
|
|
3468
3472
|
return;
|
|
3469
|
-
if (t in
|
|
3470
|
-
return
|
|
3471
|
-
const r =
|
|
3473
|
+
if (t in F && e in F[t])
|
|
3474
|
+
return F[t][e];
|
|
3475
|
+
const r = He(t);
|
|
3472
3476
|
for (let n = 0; n < r.length; n++) {
|
|
3473
|
-
const i = r[n], s =
|
|
3477
|
+
const i = r[n], s = Fn(i, e);
|
|
3474
3478
|
if (s)
|
|
3475
|
-
return
|
|
3479
|
+
return Gn(e, t, s);
|
|
3476
3480
|
}
|
|
3477
3481
|
};
|
|
3478
3482
|
let Ze;
|
|
3479
|
-
const
|
|
3480
|
-
function
|
|
3483
|
+
const le = ve({});
|
|
3484
|
+
function Dn(e) {
|
|
3481
3485
|
return Ze[e] || null;
|
|
3482
3486
|
}
|
|
3483
3487
|
function Wt(e) {
|
|
3484
3488
|
return e in Ze;
|
|
3485
3489
|
}
|
|
3486
|
-
function
|
|
3490
|
+
function Fn(e, t) {
|
|
3487
3491
|
if (!Wt(e))
|
|
3488
3492
|
return null;
|
|
3489
|
-
const r =
|
|
3490
|
-
return
|
|
3493
|
+
const r = Dn(e);
|
|
3494
|
+
return Un(r, t);
|
|
3491
3495
|
}
|
|
3492
|
-
function
|
|
3496
|
+
function jn(e) {
|
|
3493
3497
|
if (e == null)
|
|
3494
3498
|
return;
|
|
3495
|
-
const t =
|
|
3499
|
+
const t = He(e);
|
|
3496
3500
|
for (let r = 0; r < t.length; r++) {
|
|
3497
3501
|
const n = t[r];
|
|
3498
3502
|
if (Wt(n))
|
|
@@ -3500,55 +3504,55 @@ function Fn(e) {
|
|
|
3500
3504
|
}
|
|
3501
3505
|
}
|
|
3502
3506
|
function Zt(e, ...t) {
|
|
3503
|
-
delete
|
|
3507
|
+
delete F[e], le.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
|
|
3504
3508
|
}
|
|
3505
|
-
|
|
3506
|
-
[
|
|
3509
|
+
te(
|
|
3510
|
+
[le],
|
|
3507
3511
|
([e]) => Object.keys(e)
|
|
3508
3512
|
);
|
|
3509
|
-
|
|
3510
|
-
const
|
|
3511
|
-
function
|
|
3512
|
-
|
|
3513
|
+
le.subscribe((e) => Ze = e);
|
|
3514
|
+
const be = {};
|
|
3515
|
+
function kn(e, t) {
|
|
3516
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3513
3517
|
}
|
|
3514
3518
|
function Qt(e) {
|
|
3515
|
-
return
|
|
3519
|
+
return be[e];
|
|
3516
3520
|
}
|
|
3517
|
-
function
|
|
3518
|
-
return
|
|
3521
|
+
function Vn(e) {
|
|
3522
|
+
return He(e).map((t) => {
|
|
3519
3523
|
const r = Qt(t);
|
|
3520
3524
|
return [t, r ? [...r] : []];
|
|
3521
3525
|
}).filter(([, t]) => t.length > 0);
|
|
3522
3526
|
}
|
|
3523
|
-
function
|
|
3524
|
-
return e == null ? !1 :
|
|
3527
|
+
function Xe(e) {
|
|
3528
|
+
return e == null ? !1 : He(e).some(
|
|
3525
3529
|
(t) => {
|
|
3526
3530
|
var r;
|
|
3527
3531
|
return (r = Qt(t)) == null ? void 0 : r.size;
|
|
3528
3532
|
}
|
|
3529
3533
|
);
|
|
3530
3534
|
}
|
|
3531
|
-
function
|
|
3535
|
+
function Xn(e, t) {
|
|
3532
3536
|
return Promise.all(
|
|
3533
|
-
t.map((n) => (
|
|
3537
|
+
t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
|
|
3534
3538
|
).then((n) => Zt(e, ...n));
|
|
3535
3539
|
}
|
|
3536
|
-
const
|
|
3540
|
+
const ie = {};
|
|
3537
3541
|
function Jt(e) {
|
|
3538
|
-
if (!
|
|
3539
|
-
return e in
|
|
3540
|
-
const t =
|
|
3541
|
-
return
|
|
3542
|
+
if (!Xe(e))
|
|
3543
|
+
return e in ie ? ie[e] : Promise.resolve();
|
|
3544
|
+
const t = Vn(e);
|
|
3545
|
+
return ie[e] = Promise.all(
|
|
3542
3546
|
t.map(
|
|
3543
|
-
([r, n]) =>
|
|
3547
|
+
([r, n]) => Xn(r, n)
|
|
3544
3548
|
)
|
|
3545
3549
|
).then(() => {
|
|
3546
|
-
if (
|
|
3550
|
+
if (Xe(e))
|
|
3547
3551
|
return Jt(e);
|
|
3548
|
-
delete
|
|
3549
|
-
}),
|
|
3552
|
+
delete ie[e];
|
|
3553
|
+
}), ie[e];
|
|
3550
3554
|
}
|
|
3551
|
-
const
|
|
3555
|
+
const zn = {
|
|
3552
3556
|
number: {
|
|
3553
3557
|
scientific: { notation: "scientific" },
|
|
3554
3558
|
engineering: { notation: "engineering" },
|
|
@@ -3577,141 +3581,141 @@ const Xn = {
|
|
|
3577
3581
|
timeZoneName: "short"
|
|
3578
3582
|
}
|
|
3579
3583
|
}
|
|
3580
|
-
},
|
|
3584
|
+
}, Wn = {
|
|
3581
3585
|
fallbackLocale: null,
|
|
3582
3586
|
loadingDelay: 200,
|
|
3583
|
-
formats:
|
|
3587
|
+
formats: zn,
|
|
3584
3588
|
warnOnMissingMessages: !0,
|
|
3585
3589
|
handleMissingMessage: void 0,
|
|
3586
3590
|
ignoreTag: !0
|
|
3587
|
-
},
|
|
3588
|
-
function
|
|
3589
|
-
return
|
|
3591
|
+
}, Zn = Wn;
|
|
3592
|
+
function K() {
|
|
3593
|
+
return Zn;
|
|
3590
3594
|
}
|
|
3591
|
-
const
|
|
3592
|
-
var
|
|
3595
|
+
const Ie = ve(!1);
|
|
3596
|
+
var Qn = Object.defineProperty, Jn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
|
|
3593
3597
|
for (var r in t || (t = {}))
|
|
3594
|
-
|
|
3598
|
+
Yn.call(t, r) && pt(e, r, t[r]);
|
|
3595
3599
|
if (mt)
|
|
3596
3600
|
for (var r of mt(t))
|
|
3597
|
-
|
|
3601
|
+
Kn.call(t, r) && pt(e, r, t[r]);
|
|
3598
3602
|
return e;
|
|
3599
|
-
},
|
|
3600
|
-
let
|
|
3601
|
-
const
|
|
3603
|
+
}, ti = (e, t) => Jn(e, qn(t));
|
|
3604
|
+
let ze;
|
|
3605
|
+
const Ee = ve(null);
|
|
3602
3606
|
function dt(e) {
|
|
3603
3607
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3604
3608
|
}
|
|
3605
|
-
function
|
|
3609
|
+
function He(e, t = K().fallbackLocale) {
|
|
3606
3610
|
const r = dt(e);
|
|
3607
3611
|
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3608
3612
|
}
|
|
3609
|
-
function
|
|
3610
|
-
return
|
|
3613
|
+
function X() {
|
|
3614
|
+
return ze != null ? ze : void 0;
|
|
3611
3615
|
}
|
|
3612
|
-
|
|
3613
|
-
|
|
3616
|
+
Ee.subscribe((e) => {
|
|
3617
|
+
ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3614
3618
|
});
|
|
3615
|
-
const
|
|
3616
|
-
if (e &&
|
|
3617
|
-
const { loadingDelay: t } =
|
|
3619
|
+
const ri = (e) => {
|
|
3620
|
+
if (e && jn(e) && Xe(e)) {
|
|
3621
|
+
const { loadingDelay: t } = K();
|
|
3618
3622
|
let r;
|
|
3619
|
-
return typeof window != "undefined" &&
|
|
3620
|
-
() =>
|
|
3623
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3624
|
+
() => Ie.set(!0),
|
|
3621
3625
|
t
|
|
3622
|
-
) :
|
|
3623
|
-
|
|
3626
|
+
) : Ie.set(!0), Jt(e).then(() => {
|
|
3627
|
+
Ee.set(e);
|
|
3624
3628
|
}).finally(() => {
|
|
3625
|
-
clearTimeout(r),
|
|
3629
|
+
clearTimeout(r), Ie.set(!1);
|
|
3626
3630
|
});
|
|
3627
3631
|
}
|
|
3628
|
-
return
|
|
3629
|
-
},
|
|
3630
|
-
set:
|
|
3631
|
-
}),
|
|
3632
|
+
return Ee.set(e);
|
|
3633
|
+
}, re = ti(ei({}, Ee), {
|
|
3634
|
+
set: ri
|
|
3635
|
+
}), Se = (e) => {
|
|
3632
3636
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3633
3637
|
return (n) => {
|
|
3634
3638
|
const i = JSON.stringify(n);
|
|
3635
3639
|
return i in t ? t[i] : t[i] = e(n);
|
|
3636
3640
|
};
|
|
3637
3641
|
};
|
|
3638
|
-
var
|
|
3642
|
+
var ni = Object.defineProperty, xe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3639
3643
|
for (var r in t || (t = {}))
|
|
3640
3644
|
qt.call(t, r) && bt(e, r, t[r]);
|
|
3641
|
-
if (
|
|
3642
|
-
for (var r of
|
|
3645
|
+
if (xe)
|
|
3646
|
+
for (var r of xe(t))
|
|
3643
3647
|
Yt.call(t, r) && bt(e, r, t[r]);
|
|
3644
3648
|
return e;
|
|
3645
|
-
},
|
|
3649
|
+
}, ne = (e, t) => {
|
|
3646
3650
|
var r = {};
|
|
3647
3651
|
for (var n in e)
|
|
3648
3652
|
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3649
|
-
if (e != null &&
|
|
3650
|
-
for (var n of
|
|
3653
|
+
if (e != null && xe)
|
|
3654
|
+
for (var n of xe(e))
|
|
3651
3655
|
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3652
3656
|
return r;
|
|
3653
3657
|
};
|
|
3654
|
-
const
|
|
3655
|
-
const { formats: r } =
|
|
3658
|
+
const ue = (e, t) => {
|
|
3659
|
+
const { formats: r } = K();
|
|
3656
3660
|
if (e in r && t in r[e])
|
|
3657
3661
|
return r[e][t];
|
|
3658
3662
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3659
|
-
},
|
|
3663
|
+
}, ii = Se(
|
|
3660
3664
|
(e) => {
|
|
3661
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3665
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3662
3666
|
if (r == null)
|
|
3663
3667
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3664
|
-
return n && (i =
|
|
3668
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3665
3669
|
}
|
|
3666
|
-
),
|
|
3670
|
+
), si = Se(
|
|
3667
3671
|
(e) => {
|
|
3668
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3669
3673
|
if (r == null)
|
|
3670
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3671
|
-
return n ? i =
|
|
3675
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3672
3676
|
}
|
|
3673
|
-
),
|
|
3677
|
+
), oi = Se(
|
|
3674
3678
|
(e) => {
|
|
3675
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3676
3680
|
if (r == null)
|
|
3677
3681
|
throw new Error(
|
|
3678
3682
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3679
3683
|
);
|
|
3680
|
-
return n ? i =
|
|
3684
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3681
3685
|
}
|
|
3682
|
-
),
|
|
3686
|
+
), ai = (e = {}) => {
|
|
3683
3687
|
var t = e, {
|
|
3684
|
-
locale: r =
|
|
3685
|
-
} = t, n =
|
|
3686
|
-
"locale"
|
|
3687
|
-
]);
|
|
3688
|
-
return ni(Qe({ locale: r }, n));
|
|
3689
|
-
}, ai = (e = {}) => {
|
|
3690
|
-
var t = e, {
|
|
3691
|
-
locale: r = V()
|
|
3692
|
-
} = t, n = re(t, [
|
|
3688
|
+
locale: r = X()
|
|
3689
|
+
} = t, n = ne(t, [
|
|
3693
3690
|
"locale"
|
|
3694
3691
|
]);
|
|
3695
3692
|
return ii(Qe({ locale: r }, n));
|
|
3696
3693
|
}, ui = (e = {}) => {
|
|
3697
3694
|
var t = e, {
|
|
3698
|
-
locale: r =
|
|
3699
|
-
} = t, n =
|
|
3695
|
+
locale: r = X()
|
|
3696
|
+
} = t, n = ne(t, [
|
|
3700
3697
|
"locale"
|
|
3701
3698
|
]);
|
|
3702
3699
|
return si(Qe({ locale: r }, n));
|
|
3703
|
-
}, hi =
|
|
3700
|
+
}, hi = (e = {}) => {
|
|
3701
|
+
var t = e, {
|
|
3702
|
+
locale: r = X()
|
|
3703
|
+
} = t, n = ne(t, [
|
|
3704
|
+
"locale"
|
|
3705
|
+
]);
|
|
3706
|
+
return oi(Qe({ locale: r }, n));
|
|
3707
|
+
}, li = Se(
|
|
3704
3708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3705
|
-
(e, t =
|
|
3706
|
-
ignoreTag:
|
|
3709
|
+
(e, t = X()) => new Rn(e, t, K().formats, {
|
|
3710
|
+
ignoreTag: K().ignoreTag
|
|
3707
3711
|
})
|
|
3708
|
-
),
|
|
3712
|
+
), fi = (e, t = {}) => {
|
|
3709
3713
|
var r, n, i, s;
|
|
3710
3714
|
let o = t;
|
|
3711
3715
|
typeof e == "object" && (o = e, e = o.id);
|
|
3712
3716
|
const {
|
|
3713
3717
|
values: u,
|
|
3714
|
-
locale: h =
|
|
3718
|
+
locale: h = X(),
|
|
3715
3719
|
default: a
|
|
3716
3720
|
} = o;
|
|
3717
3721
|
if (h == null)
|
|
@@ -3720,7 +3724,7 @@ const ae = (e, t) => {
|
|
|
3720
3724
|
);
|
|
3721
3725
|
let l = zt(e, h);
|
|
3722
3726
|
if (!l)
|
|
3723
|
-
l = (s = (i = (n = (r =
|
|
3727
|
+
l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3724
3728
|
else if (typeof l != "string")
|
|
3725
3729
|
return console.warn(
|
|
3726
3730
|
`[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.`
|
|
@@ -3729,7 +3733,7 @@ const ae = (e, t) => {
|
|
|
3729
3733
|
return l;
|
|
3730
3734
|
let c = l;
|
|
3731
3735
|
try {
|
|
3732
|
-
c =
|
|
3736
|
+
c = li(l, h).format(u);
|
|
3733
3737
|
} catch (f) {
|
|
3734
3738
|
f instanceof Error && console.warn(
|
|
3735
3739
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3737,16 +3741,16 @@ const ae = (e, t) => {
|
|
|
3737
3741
|
);
|
|
3738
3742
|
}
|
|
3739
3743
|
return c;
|
|
3740
|
-
},
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3744
|
+
}, ci = (e, t) => hi(t).format(e), gi = (e, t) => ui(t).format(e), mi = (e, t) => ai(t).format(e), pi = (e, t = X()) => zt(e, t), di = te([re, le], () => fi);
|
|
3745
|
+
te([re], () => ci);
|
|
3746
|
+
te([re], () => gi);
|
|
3747
|
+
te([re], () => mi);
|
|
3748
|
+
te([re, le], () => pi);
|
|
3745
3749
|
function yt(e, t) {
|
|
3746
3750
|
Zt(e, t);
|
|
3747
3751
|
}
|
|
3748
|
-
function
|
|
3749
|
-
|
|
3752
|
+
function bi(e) {
|
|
3753
|
+
re.set(e);
|
|
3750
3754
|
}
|
|
3751
3755
|
const _t = {
|
|
3752
3756
|
en: {
|
|
@@ -3858,13 +3862,13 @@ const _t = {
|
|
|
3858
3862
|
games: "games"
|
|
3859
3863
|
}
|
|
3860
3864
|
};
|
|
3861
|
-
function
|
|
3865
|
+
function yi(e, t) {
|
|
3862
3866
|
if (e) {
|
|
3863
3867
|
const r = document.createElement("style");
|
|
3864
3868
|
r.innerHTML = t, e.appendChild(r);
|
|
3865
3869
|
}
|
|
3866
3870
|
}
|
|
3867
|
-
function
|
|
3871
|
+
function _i(e, t) {
|
|
3868
3872
|
if (!e || !t)
|
|
3869
3873
|
return;
|
|
3870
3874
|
const r = new URL(t);
|
|
@@ -3875,7 +3879,7 @@ function yi(e, t) {
|
|
|
3875
3879
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3876
3880
|
});
|
|
3877
3881
|
}
|
|
3878
|
-
function
|
|
3882
|
+
function Ei(e, t, r) {
|
|
3879
3883
|
if (window.emMessageBus) {
|
|
3880
3884
|
const n = document.createElement("style");
|
|
3881
3885
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3886,64 +3890,64 @@ function _i(e, t, r) {
|
|
|
3886
3890
|
function xi(e) {
|
|
3887
3891
|
ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3888
3892
|
}
|
|
3889
|
-
function
|
|
3893
|
+
function Et(e, t, r) {
|
|
3890
3894
|
const n = e.slice();
|
|
3891
3895
|
return n[23] = t[r], n;
|
|
3892
3896
|
}
|
|
3893
|
-
function
|
|
3897
|
+
function xt(e, t, r) {
|
|
3894
3898
|
const n = e.slice();
|
|
3895
3899
|
return n[23] = t[r], n;
|
|
3896
3900
|
}
|
|
3897
|
-
function
|
|
3901
|
+
function vi(e) {
|
|
3898
3902
|
let t, r, n = (
|
|
3899
3903
|
/*$_*/
|
|
3900
3904
|
e[5]("topCategories") + ""
|
|
3901
3905
|
), i, s, o, u, h = (
|
|
3902
3906
|
/*$_*/
|
|
3903
3907
|
e[5]("otherCategories") + ""
|
|
3904
|
-
), a, l, c =
|
|
3908
|
+
), a, l, c = ge(
|
|
3905
3909
|
/*topCategories*/
|
|
3906
3910
|
e[3]
|
|
3907
3911
|
), f = [];
|
|
3908
3912
|
for (let g = 0; g < c.length; g += 1)
|
|
3909
|
-
f[g] = vt(
|
|
3910
|
-
let p =
|
|
3913
|
+
f[g] = vt(xt(e, c, g));
|
|
3914
|
+
let p = ge(
|
|
3911
3915
|
/*otherCategories*/
|
|
3912
3916
|
e[4]
|
|
3913
3917
|
), d = [];
|
|
3914
3918
|
for (let g = 0; g < p.length; g += 1)
|
|
3915
|
-
d[g] = Tt(
|
|
3919
|
+
d[g] = Tt(Et(e, p, g));
|
|
3916
3920
|
return {
|
|
3917
3921
|
c() {
|
|
3918
|
-
t =
|
|
3922
|
+
t = B("div"), r = B("h4"), i = D(n), s = G();
|
|
3919
3923
|
for (let g = 0; g < f.length; g += 1)
|
|
3920
3924
|
f[g].c();
|
|
3921
|
-
o =
|
|
3925
|
+
o = G(), u = B("h4"), a = D(h), l = G();
|
|
3922
3926
|
for (let g = 0; g < d.length; g += 1)
|
|
3923
3927
|
d[g].c();
|
|
3924
3928
|
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3925
3929
|
},
|
|
3926
3930
|
m(g, E) {
|
|
3927
|
-
|
|
3931
|
+
ee(g, t, E), x(t, r), x(r, i), x(t, s);
|
|
3928
3932
|
for (let m = 0; m < f.length; m += 1)
|
|
3929
3933
|
f[m] && f[m].m(t, null);
|
|
3930
|
-
|
|
3934
|
+
x(t, o), x(t, u), x(u, a), x(t, l);
|
|
3931
3935
|
for (let m = 0; m < d.length; m += 1)
|
|
3932
3936
|
d[m] && d[m].m(t, null);
|
|
3933
3937
|
},
|
|
3934
3938
|
p(g, E) {
|
|
3935
3939
|
if (E & /*$_*/
|
|
3936
3940
|
32 && n !== (n = /*$_*/
|
|
3937
|
-
g[5]("topCategories") + "") &&
|
|
3941
|
+
g[5]("topCategories") + "") && j(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3938
3942
|
105) {
|
|
3939
|
-
c =
|
|
3943
|
+
c = ge(
|
|
3940
3944
|
/*topCategories*/
|
|
3941
3945
|
g[3]
|
|
3942
3946
|
);
|
|
3943
3947
|
let m;
|
|
3944
3948
|
for (m = 0; m < c.length; m += 1) {
|
|
3945
|
-
const
|
|
3946
|
-
f[m] ? f[m].p(
|
|
3949
|
+
const T = xt(g, c, m);
|
|
3950
|
+
f[m] ? f[m].p(T, E) : (f[m] = vt(T), f[m].c(), f[m].m(t, o));
|
|
3947
3951
|
}
|
|
3948
3952
|
for (; m < f.length; m += 1)
|
|
3949
3953
|
f[m].d(1);
|
|
@@ -3951,16 +3955,16 @@ function Ei(e) {
|
|
|
3951
3955
|
}
|
|
3952
3956
|
if (E & /*$_*/
|
|
3953
3957
|
32 && h !== (h = /*$_*/
|
|
3954
|
-
g[5]("otherCategories") + "") &&
|
|
3958
|
+
g[5]("otherCategories") + "") && j(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3955
3959
|
113) {
|
|
3956
|
-
p =
|
|
3960
|
+
p = ge(
|
|
3957
3961
|
/*otherCategories*/
|
|
3958
3962
|
g[4]
|
|
3959
3963
|
);
|
|
3960
3964
|
let m;
|
|
3961
3965
|
for (m = 0; m < p.length; m += 1) {
|
|
3962
|
-
const
|
|
3963
|
-
d[m] ? d[m].p(
|
|
3966
|
+
const T = Et(g, p, m);
|
|
3967
|
+
d[m] ? d[m].p(T, E) : (d[m] = Tt(T), d[m].c(), d[m].m(t, null));
|
|
3964
3968
|
}
|
|
3965
3969
|
for (; m < d.length; m += 1)
|
|
3966
3970
|
d[m].d(1);
|
|
@@ -3968,22 +3972,22 @@ function Ei(e) {
|
|
|
3968
3972
|
}
|
|
3969
3973
|
},
|
|
3970
3974
|
d(g) {
|
|
3971
|
-
g &&
|
|
3975
|
+
g && V(t), nt(f, g), nt(d, g);
|
|
3972
3976
|
}
|
|
3973
3977
|
};
|
|
3974
3978
|
}
|
|
3975
|
-
function
|
|
3979
|
+
function Ti(e) {
|
|
3976
3980
|
let t;
|
|
3977
3981
|
return {
|
|
3978
3982
|
c() {
|
|
3979
|
-
t =
|
|
3983
|
+
t = B("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3980
3984
|
},
|
|
3981
3985
|
m(r, n) {
|
|
3982
|
-
|
|
3986
|
+
ee(r, t, n);
|
|
3983
3987
|
},
|
|
3984
3988
|
p: L,
|
|
3985
3989
|
d(r) {
|
|
3986
|
-
r &&
|
|
3990
|
+
r && V(t);
|
|
3987
3991
|
}
|
|
3988
3992
|
};
|
|
3989
3993
|
}
|
|
@@ -3997,8 +4001,8 @@ function vt(e) {
|
|
|
3997
4001
|
), p, d, g = (
|
|
3998
4002
|
/*$_*/
|
|
3999
4003
|
e[5]("games") + ""
|
|
4000
|
-
), E, m,
|
|
4001
|
-
function
|
|
4004
|
+
), E, m, T, S;
|
|
4005
|
+
function w() {
|
|
4002
4006
|
return (
|
|
4003
4007
|
/*click_handler*/
|
|
4004
4008
|
e[15](
|
|
@@ -4009,33 +4013,33 @@ function vt(e) {
|
|
|
4009
4013
|
}
|
|
4010
4014
|
return {
|
|
4011
4015
|
c() {
|
|
4012
|
-
t =
|
|
4016
|
+
t = B("div"), r = B("ui-image"), s = G(), o = B("div"), u = B("p"), a = D(h), l = G(), c = B("p"), p = D(f), d = G(), E = D(g), ye(r.src, n = /*category*/
|
|
4013
4017
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4014
4018
|
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4015
4019
|
(e[0] === /*category*/
|
|
4016
4020
|
e[23].id ? "Active" : ""));
|
|
4017
4021
|
},
|
|
4018
|
-
m(
|
|
4019
|
-
|
|
4022
|
+
m(A, H) {
|
|
4023
|
+
ee(A, t, H), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), T || (S = At(t, "click", w), T = !0);
|
|
4020
4024
|
},
|
|
4021
|
-
p(
|
|
4022
|
-
e =
|
|
4023
|
-
8 && !
|
|
4024
|
-
e[23].icon) && R(r, "src", n),
|
|
4025
|
+
p(A, H) {
|
|
4026
|
+
e = A, H & /*topCategories*/
|
|
4027
|
+
8 && !ye(r.src, n = /*category*/
|
|
4028
|
+
e[23].icon) && R(r, "src", n), H & /*topCategories*/
|
|
4025
4029
|
8 && i !== (i = /*category*/
|
|
4026
|
-
e[23].name) && R(r, "alt", i),
|
|
4030
|
+
e[23].name) && R(r, "alt", i), H & /*topCategories*/
|
|
4027
4031
|
8 && h !== (h = /*category*/
|
|
4028
|
-
e[23].name + "") &&
|
|
4032
|
+
e[23].name + "") && j(a, h), H & /*topCategories*/
|
|
4029
4033
|
8 && f !== (f = /*category*/
|
|
4030
|
-
e[23].games.count + "") &&
|
|
4034
|
+
e[23].games.count + "") && j(p, f), H & /*$_*/
|
|
4031
4035
|
32 && g !== (g = /*$_*/
|
|
4032
|
-
e[5]("games") + "") &&
|
|
4036
|
+
e[5]("games") + "") && j(E, g), H & /*activecategory, topCategories*/
|
|
4033
4037
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4034
4038
|
(e[0] === /*category*/
|
|
4035
4039
|
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4036
4040
|
},
|
|
4037
|
-
d(
|
|
4038
|
-
|
|
4041
|
+
d(A) {
|
|
4042
|
+
A && V(t), T = !1, S();
|
|
4039
4043
|
}
|
|
4040
4044
|
};
|
|
4041
4045
|
}
|
|
@@ -4049,8 +4053,8 @@ function Tt(e) {
|
|
|
4049
4053
|
), p, d, g = (
|
|
4050
4054
|
/*$_*/
|
|
4051
4055
|
e[5]("games") + ""
|
|
4052
|
-
), E, m,
|
|
4053
|
-
function
|
|
4056
|
+
), E, m, T, S, w;
|
|
4057
|
+
function A() {
|
|
4054
4058
|
return (
|
|
4055
4059
|
/*click_handler_1*/
|
|
4056
4060
|
e[16](
|
|
@@ -4061,51 +4065,51 @@ function Tt(e) {
|
|
|
4061
4065
|
}
|
|
4062
4066
|
return {
|
|
4063
4067
|
c() {
|
|
4064
|
-
t =
|
|
4068
|
+
t = B("div"), r = B("ui-image"), s = G(), o = B("div"), u = B("p"), a = D(h), l = G(), c = B("p"), p = D(f), d = G(), E = D(g), m = G(), ye(r.src, n = /*category*/
|
|
4065
4069
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4066
|
-
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class",
|
|
4070
|
+
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", T = "Category " + /*activecategory*/
|
|
4067
4071
|
(e[0] === /*category*/
|
|
4068
4072
|
e[23].id ? "Active" : ""));
|
|
4069
4073
|
},
|
|
4070
|
-
m(
|
|
4071
|
-
|
|
4074
|
+
m(H, P) {
|
|
4075
|
+
ee(H, t, P), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), x(t, m), S || (w = At(t, "click", A), S = !0);
|
|
4072
4076
|
},
|
|
4073
|
-
p(
|
|
4074
|
-
e =
|
|
4075
|
-
16 && !
|
|
4077
|
+
p(H, P) {
|
|
4078
|
+
e = H, P & /*otherCategories*/
|
|
4079
|
+
16 && !ye(r.src, n = /*category*/
|
|
4076
4080
|
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4077
4081
|
16 && i !== (i = /*category*/
|
|
4078
4082
|
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4079
4083
|
16 && h !== (h = /*category*/
|
|
4080
|
-
e[23].name + "") &&
|
|
4084
|
+
e[23].name + "") && j(a, h), P & /*otherCategories*/
|
|
4081
4085
|
16 && f !== (f = /*category*/
|
|
4082
|
-
e[23].games.count + "") &&
|
|
4086
|
+
e[23].games.count + "") && j(p, f), P & /*$_*/
|
|
4083
4087
|
32 && g !== (g = /*$_*/
|
|
4084
|
-
e[5]("games") + "") &&
|
|
4085
|
-
17 &&
|
|
4088
|
+
e[5]("games") + "") && j(E, g), P & /*activecategory, otherCategories*/
|
|
4089
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4086
4090
|
(e[0] === /*category*/
|
|
4087
|
-
e[23].id ? "Active" : "")) && I(t, "class",
|
|
4091
|
+
e[23].id ? "Active" : "")) && I(t, "class", T);
|
|
4088
4092
|
},
|
|
4089
|
-
d(
|
|
4090
|
-
|
|
4093
|
+
d(H) {
|
|
4094
|
+
H && V(t), S = !1, w();
|
|
4091
4095
|
}
|
|
4092
4096
|
};
|
|
4093
4097
|
}
|
|
4094
|
-
function
|
|
4098
|
+
function Ci(e) {
|
|
4095
4099
|
let t;
|
|
4096
4100
|
function r(s, o) {
|
|
4097
4101
|
return (
|
|
4098
4102
|
/*isLoading*/
|
|
4099
|
-
s[2] ?
|
|
4103
|
+
s[2] ? Ti : vi
|
|
4100
4104
|
);
|
|
4101
4105
|
}
|
|
4102
4106
|
let n = r(e), i = n(e);
|
|
4103
4107
|
return {
|
|
4104
4108
|
c() {
|
|
4105
|
-
t =
|
|
4109
|
+
t = B("div"), i.c();
|
|
4106
4110
|
},
|
|
4107
4111
|
m(s, o) {
|
|
4108
|
-
|
|
4112
|
+
ee(s, t, o), i.m(t, null), e[17](t);
|
|
4109
4113
|
},
|
|
4110
4114
|
p(s, [o]) {
|
|
4111
4115
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4113,50 +4117,50 @@ function Ti(e) {
|
|
|
4113
4117
|
i: L,
|
|
4114
4118
|
o: L,
|
|
4115
4119
|
d(s) {
|
|
4116
|
-
s &&
|
|
4120
|
+
s && V(t), i.d(), e[17](null);
|
|
4117
4121
|
}
|
|
4118
4122
|
};
|
|
4119
4123
|
}
|
|
4120
4124
|
function Hi(e, t, r) {
|
|
4121
4125
|
let n;
|
|
4122
|
-
ar(e,
|
|
4126
|
+
ar(e, di, (b) => r(5, n = b));
|
|
4123
4127
|
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4124
4128
|
const g = [];
|
|
4125
4129
|
let E = [], m = [];
|
|
4126
4130
|
Object.keys(_t).forEach((b) => {
|
|
4127
4131
|
yt(b, _t[b]);
|
|
4128
4132
|
});
|
|
4129
|
-
const
|
|
4133
|
+
const T = () => {
|
|
4130
4134
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4131
|
-
Object.keys($).forEach((
|
|
4132
|
-
yt(
|
|
4135
|
+
Object.keys($).forEach((fe) => {
|
|
4136
|
+
yt(fe, $[fe]);
|
|
4133
4137
|
});
|
|
4134
4138
|
}).catch(($) => {
|
|
4135
4139
|
console.log($);
|
|
4136
4140
|
});
|
|
4137
|
-
},
|
|
4141
|
+
}, S = () => {
|
|
4138
4142
|
r(2, d = !0);
|
|
4139
4143
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4140
4144
|
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4141
4145
|
r(2, d = !1);
|
|
4142
|
-
const
|
|
4146
|
+
const fe = h.split(",").map((k) => k.trim());
|
|
4143
4147
|
g.push(...$.items);
|
|
4144
|
-
const Je = g.filter((
|
|
4148
|
+
const Je = g.filter((k) => !fe.some((er) => {
|
|
4145
4149
|
var qe;
|
|
4146
|
-
return ((qe =
|
|
4150
|
+
return ((qe = k.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
|
|
4147
4151
|
}));
|
|
4148
|
-
r(3, E = Je.filter((
|
|
4152
|
+
r(3, E = Je.filter((k) => k.isTopCategory === !0)), r(4, m = Je.filter((k) => k.isTopCategory === !1));
|
|
4149
4153
|
});
|
|
4150
|
-
},
|
|
4154
|
+
}, w = (b) => {
|
|
4151
4155
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4152
|
-
},
|
|
4153
|
-
|
|
4156
|
+
}, A = () => {
|
|
4157
|
+
bi(o);
|
|
4154
4158
|
};
|
|
4155
4159
|
mr(() => () => {
|
|
4156
4160
|
});
|
|
4157
|
-
const
|
|
4161
|
+
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4158
4162
|
function Kt(b) {
|
|
4159
|
-
|
|
4163
|
+
Me[b ? "unshift" : "push"](() => {
|
|
4160
4164
|
p = b, r(1, p);
|
|
4161
4165
|
});
|
|
4162
4166
|
}
|
|
@@ -4164,12 +4168,12 @@ function Hi(e, t, r) {
|
|
|
4164
4168
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4165
4169
|
}, e.$$.update = () => {
|
|
4166
4170
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4167
|
-
384 && i && s &&
|
|
4168
|
-
8192 && c &&
|
|
4169
|
-
512 && o &&
|
|
4170
|
-
2050 && a && p &&
|
|
4171
|
-
4098 && l && p &&
|
|
4172
|
-
16386 && f && p &&
|
|
4171
|
+
384 && i && s && S(), e.$$.dirty & /*translationurl*/
|
|
4172
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4173
|
+
512 && o && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4174
|
+
2050 && a && p && yi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4175
|
+
4098 && l && p && _i(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4176
|
+
16386 && f && p && Ei(p, `${f}.Style`);
|
|
4173
4177
|
}, [
|
|
4174
4178
|
u,
|
|
4175
4179
|
p,
|
|
@@ -4177,7 +4181,7 @@ function Hi(e, t, r) {
|
|
|
4177
4181
|
E,
|
|
4178
4182
|
m,
|
|
4179
4183
|
n,
|
|
4180
|
-
|
|
4184
|
+
w,
|
|
4181
4185
|
i,
|
|
4182
4186
|
s,
|
|
4183
4187
|
o,
|
|
@@ -4186,19 +4190,19 @@ function Hi(e, t, r) {
|
|
|
4186
4190
|
l,
|
|
4187
4191
|
c,
|
|
4188
4192
|
f,
|
|
4189
|
-
|
|
4193
|
+
H,
|
|
4190
4194
|
P,
|
|
4191
4195
|
Kt
|
|
4192
4196
|
];
|
|
4193
4197
|
}
|
|
4194
|
-
class
|
|
4198
|
+
class Si extends Sr {
|
|
4195
4199
|
constructor(t) {
|
|
4196
|
-
super(),
|
|
4200
|
+
super(), Cr(
|
|
4197
4201
|
this,
|
|
4198
4202
|
t,
|
|
4199
4203
|
Hi,
|
|
4200
|
-
|
|
4201
|
-
|
|
4204
|
+
Ci,
|
|
4205
|
+
Ht,
|
|
4202
4206
|
{
|
|
4203
4207
|
endpoint: 7,
|
|
4204
4208
|
datasource: 8,
|
|
@@ -4268,7 +4272,7 @@ class Ci extends Ar {
|
|
|
4268
4272
|
this.$$set({ mbsource: t }), M();
|
|
4269
4273
|
}
|
|
4270
4274
|
}
|
|
4271
|
-
|
|
4275
|
+
Hr(Si, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4272
4276
|
export {
|
|
4273
|
-
|
|
4277
|
+
Si as default
|
|
4274
4278
|
};
|