@everymatrix/casino-categories 1.87.25 → 1.87.27
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-CIX-rkDI.js → CasinoCategories-C1VGpHHW.js} +782 -755
- package/components/CasinoCategories-CeNYuvr4.cjs +3 -0
- package/components/{CasinoCategories-Bde9pPpf.js → CasinoCategories-radGbAeR.js} +913 -885
- 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/components/CasinoCategories-CPiBmzfm.cjs +0 -3
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function yt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Je() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function he(e) {
|
|
11
|
+
e.forEach(yt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ze(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function _t(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let fe;
|
|
20
|
-
function
|
|
20
|
+
function ye(e, t) {
|
|
21
21
|
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Jt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Et(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function _t(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function qt(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
37
37
|
}
|
|
38
38
|
function x(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Yt(e, t, r) {
|
|
42
|
+
const n = Kt(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
44
|
const i = B("style");
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
45
|
+
i.id = t, i.textContent = r, er(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Kt(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,20 +55,20 @@ function qt(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function er(e, t) {
|
|
59
59
|
return x(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ee(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
68
|
function k(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function qe(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
@@ -81,7 +81,7 @@ function G(e) {
|
|
|
81
81
|
function U() {
|
|
82
82
|
return G(" ");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function xt(e, t, r, n) {
|
|
85
85
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
86
86
|
}
|
|
87
87
|
function L(e, t, r) {
|
|
@@ -91,14 +91,14 @@ function $(e, t, r) {
|
|
|
91
91
|
const n = t.toLowerCase();
|
|
92
92
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function tr(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
97
|
function F(e, t) {
|
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
99
99
|
t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function rr(e) {
|
|
102
102
|
const t = {};
|
|
103
103
|
return e.childNodes.forEach(
|
|
104
104
|
/** @param {Element} node */
|
|
@@ -107,98 +107,98 @@ function er(e) {
|
|
|
107
107
|
}
|
|
108
108
|
), t;
|
|
109
109
|
}
|
|
110
|
-
let
|
|
111
|
-
function
|
|
112
|
-
|
|
110
|
+
let se;
|
|
111
|
+
function oe(e) {
|
|
112
|
+
se = e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!
|
|
114
|
+
function nr() {
|
|
115
|
+
if (!se)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
|
-
return
|
|
117
|
+
return se;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function ir(e) {
|
|
120
|
+
nr().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
|
-
const W = [],
|
|
123
|
-
let
|
|
124
|
-
const
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
122
|
+
const W = [], Ie = [];
|
|
123
|
+
let Q = [];
|
|
124
|
+
const Ye = [], or = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let Me = !1;
|
|
126
|
+
function sr() {
|
|
127
|
+
Me || (Me = !0, or.then(I));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function $e(e) {
|
|
130
|
+
Q.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
133
133
|
let X = 0;
|
|
134
134
|
function I() {
|
|
135
135
|
if (X !== 0)
|
|
136
136
|
return;
|
|
137
|
-
const e =
|
|
137
|
+
const e = se;
|
|
138
138
|
do {
|
|
139
139
|
try {
|
|
140
140
|
for (; X < W.length; ) {
|
|
141
141
|
const t = W[X];
|
|
142
|
-
X++,
|
|
142
|
+
X++, oe(t), ar(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
145
|
throw W.length = 0, X = 0, t;
|
|
146
146
|
}
|
|
147
|
-
for (
|
|
148
|
-
|
|
149
|
-
for (let t = 0; t <
|
|
150
|
-
const r =
|
|
151
|
-
|
|
147
|
+
for (oe(null), W.length = 0, X = 0; Ie.length; )
|
|
148
|
+
Ie.pop()();
|
|
149
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
150
|
+
const r = Q[t];
|
|
151
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
Q.length = 0;
|
|
154
154
|
} while (W.length);
|
|
155
|
-
for (;
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
for (; Ye.length; )
|
|
156
|
+
Ye.pop()();
|
|
157
|
+
Me = !1, Ae.clear(), oe(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function ar(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
161
|
+
e.update(), he(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ur(e) {
|
|
167
167
|
const t = [], r = [];
|
|
168
|
-
|
|
168
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
170
|
+
const hr = /* @__PURE__ */ new Set();
|
|
171
|
+
function lr(e, t) {
|
|
172
|
+
e && e.i && (hr.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function ge(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function cr(e, t, r) {
|
|
178
178
|
const { fragment: n, after_update: i } = e.$$;
|
|
179
|
-
n && n.m(t, r),
|
|
180
|
-
const o = e.$$.on_mount.map(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
-
}), i.forEach(
|
|
179
|
+
n && n.m(t, r), $e(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(yt).filter(ze);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach($e);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function fr(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (
|
|
186
|
+
r.fragment !== null && (ur(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
188
|
+
function gr(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (W.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const l =
|
|
193
|
-
|
|
194
|
-
const
|
|
191
|
+
function mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
192
|
+
const l = se;
|
|
193
|
+
oe(e);
|
|
194
|
+
const u = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
197
197
|
// state
|
|
198
198
|
props: o,
|
|
199
199
|
update: N,
|
|
200
200
|
not_equal: i,
|
|
201
|
-
bound:
|
|
201
|
+
bound: Je(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,28 +207,28 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
211
|
-
dirty:
|
|
210
|
+
callbacks: Je(),
|
|
211
|
+
dirty: a,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || l.$$.root
|
|
214
214
|
};
|
|
215
|
-
s && s(
|
|
215
|
+
s && s(u.root);
|
|
216
216
|
let h = !1;
|
|
217
|
-
if (
|
|
218
|
-
const d = p.length ? p[0] :
|
|
219
|
-
return
|
|
220
|
-
}) : [],
|
|
217
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
218
|
+
const d = p.length ? p[0] : c;
|
|
219
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && gr(e, f)), c;
|
|
220
|
+
}) : [], u.update(), h = !0, he(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const
|
|
223
|
-
|
|
222
|
+
const f = tr(t.target);
|
|
223
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
224
224
|
} else
|
|
225
|
-
|
|
226
|
-
t.intro &&
|
|
225
|
+
u.fragment && u.fragment.c();
|
|
226
|
+
t.intro && lr(e.$$.fragment), cr(e, t.target, t.anchor), I();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
oe(l);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let vt;
|
|
231
|
+
typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -276,8 +276,8 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
276
276
|
* @param {HTMLElement} target
|
|
277
277
|
* @param {HTMLElement} [anchor]
|
|
278
278
|
*/
|
|
279
|
-
m: function(l,
|
|
280
|
-
|
|
279
|
+
m: function(l, u) {
|
|
280
|
+
ee(l, o, u);
|
|
281
281
|
},
|
|
282
282
|
d: function(l) {
|
|
283
283
|
l && k(o);
|
|
@@ -287,12 +287,12 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {}, r =
|
|
290
|
+
const t = {}, r = rr(this);
|
|
291
291
|
for (const i of this.$$s)
|
|
292
292
|
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
294
294
|
const o = this.$$g_p(i.name);
|
|
295
|
-
o in this.$$d || (this.$$d[o] =
|
|
295
|
+
o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const i in this.$$p_d)
|
|
298
298
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const i in this.$$p_d)
|
|
312
312
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
-
const o =
|
|
313
|
+
const o = pe(
|
|
314
314
|
i,
|
|
315
315
|
this.$$d[i],
|
|
316
316
|
this.$$p_d,
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
334
|
attributeChangedCallback(e, t, r) {
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function pe(e, t, r, n) {
|
|
349
349
|
const i = r[e]?.type;
|
|
350
350
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
351
351
|
return t;
|
|
@@ -374,36 +374,36 @@ function me(e, t, r, n) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let s = class extends
|
|
377
|
+
function pr(e, t, r, n, i, o) {
|
|
378
|
+
let s = class extends vt {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
382
382
|
static get observedAttributes() {
|
|
383
383
|
return Object.keys(t).map(
|
|
384
|
-
(
|
|
384
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
385
385
|
);
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
-
return Object.keys(t).forEach((
|
|
389
|
-
Object.defineProperty(s.prototype,
|
|
388
|
+
return Object.keys(t).forEach((a) => {
|
|
389
|
+
Object.defineProperty(s.prototype, a, {
|
|
390
390
|
get() {
|
|
391
|
-
return this.$$c &&
|
|
391
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
392
392
|
},
|
|
393
393
|
set(l) {
|
|
394
|
-
l =
|
|
394
|
+
l = pe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
|
-
}), n.forEach((
|
|
398
|
-
Object.defineProperty(s.prototype,
|
|
397
|
+
}), n.forEach((a) => {
|
|
398
|
+
Object.defineProperty(s.prototype, a, {
|
|
399
399
|
get() {
|
|
400
|
-
return this.$$c?.[
|
|
400
|
+
return this.$$c?.[a];
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
404
|
s, s;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class dr {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class mr {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
fr(this, 1), this.$destroy = N;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,7 +431,7 @@ class mr {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, r) {
|
|
434
|
-
if (!
|
|
434
|
+
if (!ze(r))
|
|
435
435
|
return N;
|
|
436
436
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return n.push(r), () => {
|
|
@@ -444,160 +444,160 @@ class mr {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !Jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
450
|
+
const br = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(br);
|
|
452
452
|
const z = [];
|
|
453
|
-
function
|
|
453
|
+
function yr(e, t) {
|
|
454
454
|
return {
|
|
455
|
-
subscribe:
|
|
455
|
+
subscribe: ve(e, t).subscribe
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function ve(e, t = N) {
|
|
459
459
|
let r;
|
|
460
460
|
const n = /* @__PURE__ */ new Set();
|
|
461
|
-
function i(
|
|
462
|
-
if (
|
|
461
|
+
function i(a) {
|
|
462
|
+
if (_t(e, a) && (e = a, r)) {
|
|
463
463
|
const l = !z.length;
|
|
464
|
-
for (const
|
|
465
|
-
|
|
464
|
+
for (const u of n)
|
|
465
|
+
u[1](), z.push(u, e);
|
|
466
466
|
if (l) {
|
|
467
|
-
for (let
|
|
468
|
-
z[
|
|
467
|
+
for (let u = 0; u < z.length; u += 2)
|
|
468
|
+
z[u][0](z[u + 1]);
|
|
469
469
|
z.length = 0;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function o(
|
|
474
|
-
i(
|
|
473
|
+
function o(a) {
|
|
474
|
+
i(a(e));
|
|
475
475
|
}
|
|
476
|
-
function s(
|
|
477
|
-
const
|
|
478
|
-
return n.add(
|
|
479
|
-
n.delete(
|
|
476
|
+
function s(a, l = N) {
|
|
477
|
+
const u = [a, l];
|
|
478
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
479
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
return { set: i, update: o, subscribe: s };
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function te(e, t, r) {
|
|
485
485
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
486
486
|
if (!i.every(Boolean))
|
|
487
487
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
488
488
|
const o = t.length < 2;
|
|
489
|
-
return
|
|
489
|
+
return yr(r, (s, a) => {
|
|
490
490
|
let l = !1;
|
|
491
|
-
const
|
|
492
|
-
let h = 0,
|
|
493
|
-
const
|
|
491
|
+
const u = [];
|
|
492
|
+
let h = 0, f = N;
|
|
493
|
+
const c = () => {
|
|
494
494
|
if (h)
|
|
495
495
|
return;
|
|
496
|
-
|
|
497
|
-
const d = t(n ?
|
|
498
|
-
o ? s(d) :
|
|
496
|
+
f();
|
|
497
|
+
const d = t(n ? u[0] : u, s, a);
|
|
498
|
+
o ? s(d) : f = ze(d) ? d : N;
|
|
499
499
|
}, p = i.map(
|
|
500
|
-
(d, g) =>
|
|
500
|
+
(d, g) => Et(
|
|
501
501
|
d,
|
|
502
502
|
(E) => {
|
|
503
|
-
|
|
503
|
+
u[g] = E, h &= ~(1 << g), l && c();
|
|
504
504
|
},
|
|
505
505
|
() => {
|
|
506
506
|
h |= 1 << g;
|
|
507
507
|
}
|
|
508
508
|
)
|
|
509
509
|
);
|
|
510
|
-
return l = !0,
|
|
511
|
-
|
|
510
|
+
return l = !0, c(), function() {
|
|
511
|
+
he(p), f(), l = !1;
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function _r(e) {
|
|
516
516
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var Er = function(t) {
|
|
519
|
+
return xr(t) && !vr(t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function xr(e) {
|
|
522
522
|
return !!e && typeof e == "object";
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function vr(e) {
|
|
525
525
|
var t = Object.prototype.toString.call(e);
|
|
526
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
526
|
+
return t === "[object RegExp]" || t === "[object Date]" || Hr(e);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
return e.$$typeof ===
|
|
528
|
+
var Cr = typeof Symbol == "function" && Symbol.for, Tr = Cr ? Symbol.for("react.element") : 60103;
|
|
529
|
+
function Hr(e) {
|
|
530
|
+
return e.$$typeof === Tr;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Sr(e) {
|
|
533
533
|
return Array.isArray(e) ? [] : {};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
535
|
+
function ae(e, t) {
|
|
536
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(Sr(e), e, t) : e;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ar(e, t, r) {
|
|
539
539
|
return e.concat(t).map(function(n) {
|
|
540
|
-
return
|
|
540
|
+
return ae(n, r);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Br(e, t) {
|
|
544
544
|
if (!t.customMerge)
|
|
545
|
-
return
|
|
545
|
+
return J;
|
|
546
546
|
var r = t.customMerge(e);
|
|
547
|
-
return typeof r == "function" ? r :
|
|
547
|
+
return typeof r == "function" ? r : J;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function wr(e) {
|
|
550
550
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
551
551
|
return Object.propertyIsEnumerable.call(e, t);
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return Object.keys(e).concat(
|
|
554
|
+
function Ke(e) {
|
|
555
|
+
return Object.keys(e).concat(wr(e));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ct(e, t) {
|
|
558
558
|
try {
|
|
559
559
|
return t in e;
|
|
560
560
|
} catch {
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
564
|
+
function Or(e, t) {
|
|
565
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Pr(e, t, r) {
|
|
568
568
|
var n = {};
|
|
569
|
-
return r.isMergeableObject(e) &&
|
|
570
|
-
n[i] =
|
|
571
|
-
}),
|
|
572
|
-
|
|
569
|
+
return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
|
|
570
|
+
n[i] = ae(e[i], r);
|
|
571
|
+
}), Ke(t).forEach(function(i) {
|
|
572
|
+
Or(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Br(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
|
|
573
573
|
}), n;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
575
|
+
function J(e, t, r) {
|
|
576
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ar, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified = ae;
|
|
577
577
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
578
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
578
|
+
return o ? n ? r.arrayMerge(e, t, r) : Pr(e, t, r) : ae(t, r);
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
J.all = function(t, r) {
|
|
581
581
|
if (!Array.isArray(t))
|
|
582
582
|
throw new Error("first argument should be an array");
|
|
583
583
|
return t.reduce(function(n, i) {
|
|
584
|
-
return
|
|
584
|
+
return J(n, i, r);
|
|
585
585
|
}, {});
|
|
586
586
|
};
|
|
587
|
-
var
|
|
588
|
-
const
|
|
589
|
-
var
|
|
590
|
-
return
|
|
587
|
+
var Nr = J, Lr = Nr;
|
|
588
|
+
const Ir = /* @__PURE__ */ _r(Lr);
|
|
589
|
+
var Re = function(e, t) {
|
|
590
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
591
591
|
r.__proto__ = n;
|
|
592
592
|
} || function(r, n) {
|
|
593
593
|
for (var i in n)
|
|
594
594
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
595
|
-
},
|
|
595
|
+
}, Re(e, t);
|
|
596
596
|
};
|
|
597
|
-
function
|
|
597
|
+
function Ce(e, t) {
|
|
598
598
|
if (typeof t != "function" && t !== null)
|
|
599
599
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
600
|
-
|
|
600
|
+
Re(e, t);
|
|
601
601
|
function r() {
|
|
602
602
|
this.constructor = e;
|
|
603
603
|
}
|
|
@@ -613,7 +613,7 @@ var R = function() {
|
|
|
613
613
|
return t;
|
|
614
614
|
}, R.apply(this, arguments);
|
|
615
615
|
};
|
|
616
|
-
function
|
|
616
|
+
function Mr(e, t) {
|
|
617
617
|
var r = {};
|
|
618
618
|
for (var n in e)
|
|
619
619
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -622,43 +622,43 @@ function Lr(e, t) {
|
|
|
622
622
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
623
623
|
return r;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Be(e, t, r) {
|
|
626
626
|
if (r || arguments.length === 2)
|
|
627
627
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
628
628
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
629
629
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
var r = t && t.cache ? t.cache :
|
|
631
|
+
function we(e, t) {
|
|
632
|
+
var r = t && t.cache ? t.cache : jr, n = t && t.serializer ? t.serializer : Dr, i = t && t.strategy ? t.strategy : Ur;
|
|
633
633
|
return i(e, {
|
|
634
634
|
cache: r,
|
|
635
635
|
serializer: n
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function $r(e) {
|
|
639
639
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
var i =
|
|
641
|
+
function Rr(e, t, r, n) {
|
|
642
|
+
var i = $r(n) ? n : r(n), o = t.get(i);
|
|
643
643
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
644
644
|
}
|
|
645
645
|
function Tt(e, t, r) {
|
|
646
646
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
647
647
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Ht(e, t, r, n, i) {
|
|
650
650
|
return r.bind(t, e, n, i);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
var r = e.length === 1 ?
|
|
654
|
-
return
|
|
652
|
+
function Ur(e, t) {
|
|
653
|
+
var r = e.length === 1 ? Rr : Tt;
|
|
654
|
+
return Ht(e, this, r, t.cache.create(), t.serializer);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
656
|
+
function Gr(e, t) {
|
|
657
|
+
return Ht(e, this, Tt, t.cache.create(), t.serializer);
|
|
658
658
|
}
|
|
659
|
-
var
|
|
659
|
+
var Dr = function() {
|
|
660
660
|
return JSON.stringify(arguments);
|
|
661
|
-
},
|
|
661
|
+
}, Fr = (
|
|
662
662
|
/** @class */
|
|
663
663
|
function() {
|
|
664
664
|
function e() {
|
|
@@ -670,71 +670,71 @@ var Ur = function() {
|
|
|
670
670
|
this.cache[t] = r;
|
|
671
671
|
}, e;
|
|
672
672
|
}()
|
|
673
|
-
),
|
|
673
|
+
), jr = {
|
|
674
674
|
create: function() {
|
|
675
|
-
return new
|
|
675
|
+
return new Fr();
|
|
676
676
|
}
|
|
677
677
|
}, Oe = {
|
|
678
|
-
variadic:
|
|
679
|
-
},
|
|
680
|
-
return
|
|
678
|
+
variadic: Gr
|
|
679
|
+
}, _e = function() {
|
|
680
|
+
return _e = Object.assign || function(t) {
|
|
681
681
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
682
682
|
r = arguments[n];
|
|
683
683
|
for (var o in r)
|
|
684
684
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
685
685
|
}
|
|
686
686
|
return t;
|
|
687
|
-
},
|
|
687
|
+
}, _e.apply(this, arguments);
|
|
688
688
|
};
|
|
689
689
|
var y;
|
|
690
690
|
(function(e) {
|
|
691
691
|
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";
|
|
692
692
|
})(y || (y = {}));
|
|
693
|
-
var
|
|
693
|
+
var C;
|
|
694
694
|
(function(e) {
|
|
695
695
|
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";
|
|
696
|
-
})(
|
|
697
|
-
var
|
|
696
|
+
})(C || (C = {}));
|
|
697
|
+
var q;
|
|
698
698
|
(function(e) {
|
|
699
699
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
700
|
-
})(
|
|
701
|
-
function
|
|
702
|
-
return e.type ===
|
|
703
|
-
}
|
|
704
|
-
function Fr(e) {
|
|
705
|
-
return e.type === v.argument;
|
|
700
|
+
})(q || (q = {}));
|
|
701
|
+
function et(e) {
|
|
702
|
+
return e.type === C.literal;
|
|
706
703
|
}
|
|
707
|
-
function
|
|
708
|
-
return e.type ===
|
|
704
|
+
function kr(e) {
|
|
705
|
+
return e.type === C.argument;
|
|
709
706
|
}
|
|
710
707
|
function St(e) {
|
|
711
|
-
return e.type ===
|
|
708
|
+
return e.type === C.number;
|
|
712
709
|
}
|
|
713
710
|
function At(e) {
|
|
714
|
-
return e.type ===
|
|
711
|
+
return e.type === C.date;
|
|
715
712
|
}
|
|
716
713
|
function Bt(e) {
|
|
717
|
-
return e.type ===
|
|
714
|
+
return e.type === C.time;
|
|
718
715
|
}
|
|
719
|
-
function
|
|
720
|
-
return e.type ===
|
|
716
|
+
function wt(e) {
|
|
717
|
+
return e.type === C.select;
|
|
721
718
|
}
|
|
722
|
-
function
|
|
723
|
-
return e.type ===
|
|
719
|
+
function Ot(e) {
|
|
720
|
+
return e.type === C.plural;
|
|
724
721
|
}
|
|
725
|
-
function
|
|
726
|
-
return e.type ===
|
|
722
|
+
function Vr(e) {
|
|
723
|
+
return e.type === C.pound;
|
|
727
724
|
}
|
|
728
725
|
function Pt(e) {
|
|
729
|
-
return
|
|
726
|
+
return e.type === C.tag;
|
|
730
727
|
}
|
|
731
|
-
function
|
|
732
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
728
|
+
function Nt(e) {
|
|
729
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
733
730
|
}
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
function Ue(e) {
|
|
732
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
733
|
+
}
|
|
734
|
+
var Lt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xr = /(?:[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;
|
|
735
|
+
function zr(e) {
|
|
736
736
|
var t = {};
|
|
737
|
-
return e.replace(
|
|
737
|
+
return e.replace(Xr, function(r) {
|
|
738
738
|
var n = r.length;
|
|
739
739
|
switch (r[0]) {
|
|
740
740
|
case "G":
|
|
@@ -823,46 +823,46 @@ function Vr(e) {
|
|
|
823
823
|
return "";
|
|
824
824
|
}), t;
|
|
825
825
|
}
|
|
826
|
-
var
|
|
827
|
-
return
|
|
826
|
+
var T = function() {
|
|
827
|
+
return T = Object.assign || function(t) {
|
|
828
828
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
829
829
|
r = arguments[n];
|
|
830
830
|
for (var o in r)
|
|
831
831
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
832
832
|
}
|
|
833
833
|
return t;
|
|
834
|
-
},
|
|
834
|
+
}, T.apply(this, arguments);
|
|
835
835
|
};
|
|
836
|
-
var
|
|
837
|
-
function
|
|
836
|
+
var Wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
837
|
+
function Zr(e) {
|
|
838
838
|
if (e.length === 0)
|
|
839
839
|
throw new Error("Number skeleton cannot be empty");
|
|
840
|
-
for (var t = e.split(
|
|
841
|
-
return
|
|
840
|
+
for (var t = e.split(Wr).filter(function(c) {
|
|
841
|
+
return c.length > 0;
|
|
842
842
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
843
843
|
var o = i[n], s = o.split("/");
|
|
844
844
|
if (s.length === 0)
|
|
845
845
|
throw new Error("Invalid number skeleton");
|
|
846
|
-
for (var
|
|
847
|
-
var
|
|
848
|
-
if (
|
|
846
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
847
|
+
var f = h[u];
|
|
848
|
+
if (f.length === 0)
|
|
849
849
|
throw new Error("Invalid number skeleton");
|
|
850
850
|
}
|
|
851
|
-
r.push({ stem:
|
|
851
|
+
r.push({ stem: a, options: l });
|
|
852
852
|
}
|
|
853
853
|
return r;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function Qr(e) {
|
|
856
856
|
return e.replace(/^(.*?)-/, "");
|
|
857
857
|
}
|
|
858
|
-
var
|
|
859
|
-
function
|
|
858
|
+
var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Jr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
|
|
859
|
+
function rt(e) {
|
|
860
860
|
var t = {};
|
|
861
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
861
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(It, function(r, n, i) {
|
|
862
862
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
863
863
|
}), t;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function $t(e) {
|
|
866
866
|
switch (e) {
|
|
867
867
|
case "sign-auto":
|
|
868
868
|
return {
|
|
@@ -902,7 +902,7 @@ function Mt(e) {
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function qr(e) {
|
|
906
906
|
var t;
|
|
907
907
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
908
908
|
notation: "engineering"
|
|
@@ -910,17 +910,17 @@ function Qr(e) {
|
|
|
910
910
|
notation: "scientific"
|
|
911
911
|
}, e = e.slice(1)), t) {
|
|
912
912
|
var r = e.slice(0, 2);
|
|
913
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
913
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
|
|
914
914
|
throw new Error("Malformed concise eng/scientific notation");
|
|
915
915
|
t.minimumIntegerDigits = e.length;
|
|
916
916
|
}
|
|
917
917
|
return t;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
var t = {}, r =
|
|
919
|
+
function nt(e) {
|
|
920
|
+
var t = {}, r = $t(e);
|
|
921
921
|
return r || t;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Yr(e) {
|
|
924
924
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
925
925
|
var i = n[r];
|
|
926
926
|
switch (i.stem) {
|
|
@@ -944,7 +944,7 @@ function Jr(e) {
|
|
|
944
944
|
continue;
|
|
945
945
|
case "measure-unit":
|
|
946
946
|
case "unit":
|
|
947
|
-
t.style = "unit", t.unit =
|
|
947
|
+
t.style = "unit", t.unit = Qr(i.options[0]);
|
|
948
948
|
continue;
|
|
949
949
|
case "compact-short":
|
|
950
950
|
case "K":
|
|
@@ -955,13 +955,13 @@ function Jr(e) {
|
|
|
955
955
|
t.notation = "compact", t.compactDisplay = "long";
|
|
956
956
|
continue;
|
|
957
957
|
case "scientific":
|
|
958
|
-
t =
|
|
959
|
-
return
|
|
958
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
959
|
+
return T(T({}, l), nt(u));
|
|
960
960
|
}, {}));
|
|
961
961
|
continue;
|
|
962
962
|
case "engineering":
|
|
963
|
-
t =
|
|
964
|
-
return
|
|
963
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
964
|
+
return T(T({}, l), nt(u));
|
|
965
965
|
}, {}));
|
|
966
966
|
continue;
|
|
967
967
|
case "notation-simple":
|
|
@@ -1006,11 +1006,11 @@ function Jr(e) {
|
|
|
1006
1006
|
case "integer-width":
|
|
1007
1007
|
if (i.options.length > 1)
|
|
1008
1008
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1009
|
-
i.options[0].replace(
|
|
1010
|
-
if (
|
|
1009
|
+
i.options[0].replace(Jr, function(l, u, h, f, c, p) {
|
|
1010
|
+
if (u)
|
|
1011
1011
|
t.minimumIntegerDigits = h.length;
|
|
1012
1012
|
else {
|
|
1013
|
-
if (
|
|
1013
|
+
if (f && c)
|
|
1014
1014
|
throw new Error("We currently do not support maximum integer digits");
|
|
1015
1015
|
if (p)
|
|
1016
1016
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1019,32 +1019,32 @@ function Jr(e) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
continue;
|
|
1021
1021
|
}
|
|
1022
|
-
if (
|
|
1022
|
+
if (Mt.test(i.stem)) {
|
|
1023
1023
|
t.minimumIntegerDigits = i.stem.length;
|
|
1024
1024
|
continue;
|
|
1025
1025
|
}
|
|
1026
|
-
if (
|
|
1026
|
+
if (tt.test(i.stem)) {
|
|
1027
1027
|
if (i.options.length > 1)
|
|
1028
1028
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1029
|
-
i.stem.replace(
|
|
1030
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1029
|
+
i.stem.replace(tt, function(l, u, h, f, c, p) {
|
|
1030
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1031
1031
|
});
|
|
1032
1032
|
var o = i.options[0];
|
|
1033
|
-
o === "w" ? t =
|
|
1033
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), rt(o)));
|
|
1034
1034
|
continue;
|
|
1035
1035
|
}
|
|
1036
|
-
if (
|
|
1037
|
-
t =
|
|
1036
|
+
if (It.test(i.stem)) {
|
|
1037
|
+
t = T(T({}, t), rt(i.stem));
|
|
1038
1038
|
continue;
|
|
1039
1039
|
}
|
|
1040
|
-
var s =
|
|
1041
|
-
s && (t =
|
|
1042
|
-
var
|
|
1043
|
-
|
|
1040
|
+
var s = $t(i.stem);
|
|
1041
|
+
s && (t = T(T({}, t), s));
|
|
1042
|
+
var a = qr(i.stem);
|
|
1043
|
+
a && (t = T(T({}, t), a));
|
|
1044
1044
|
}
|
|
1045
1045
|
return t;
|
|
1046
1046
|
}
|
|
1047
|
-
var
|
|
1047
|
+
var me = {
|
|
1048
1048
|
"001": [
|
|
1049
1049
|
"H",
|
|
1050
1050
|
"h"
|
|
@@ -2459,23 +2459,23 @@ var ge = {
|
|
|
2459
2459
|
"h"
|
|
2460
2460
|
]
|
|
2461
2461
|
};
|
|
2462
|
-
function
|
|
2462
|
+
function Kr(e, t) {
|
|
2463
2463
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2464
2464
|
var i = e.charAt(n);
|
|
2465
2465
|
if (i === "j") {
|
|
2466
2466
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2467
2467
|
o++, n++;
|
|
2468
|
-
var s = 1 + (o & 1),
|
|
2469
|
-
for ((
|
|
2468
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = en(t);
|
|
2469
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2470
2470
|
r += l;
|
|
2471
2471
|
for (; s-- > 0; )
|
|
2472
|
-
r =
|
|
2472
|
+
r = u + r;
|
|
2473
2473
|
} else
|
|
2474
2474
|
i === "J" ? r += "H" : r += i;
|
|
2475
2475
|
}
|
|
2476
2476
|
return r;
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function en(e) {
|
|
2479
2479
|
var t = e.hourCycle;
|
|
2480
2480
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2481
2481
|
e.hourCycles && // @ts-ignore
|
|
@@ -2494,23 +2494,23 @@ function Yr(e) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
var r = e.language, n;
|
|
2496
2496
|
r !== "root" && (n = e.maximize().region);
|
|
2497
|
-
var i =
|
|
2497
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2498
2498
|
return i[0];
|
|
2499
2499
|
}
|
|
2500
|
-
var
|
|
2500
|
+
var Pe, tn = new RegExp("^".concat(Lt.source, "*")), rn = new RegExp("".concat(Lt.source, "*$"));
|
|
2501
2501
|
function _(e, t) {
|
|
2502
2502
|
return { start: e, end: t };
|
|
2503
2503
|
}
|
|
2504
|
-
var
|
|
2504
|
+
var nn = !!String.prototype.startsWith && "_a".startsWith("a", 1), on = !!String.fromCodePoint, sn = !!Object.fromEntries, an = !!String.prototype.codePointAt, un = !!String.prototype.trimStart, hn = !!String.prototype.trimEnd, ln = !!Number.isSafeInteger, cn = ln ? Number.isSafeInteger : function(e) {
|
|
2505
2505
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2506
|
-
},
|
|
2506
|
+
}, Ge = !0;
|
|
2507
2507
|
try {
|
|
2508
|
-
var
|
|
2509
|
-
|
|
2508
|
+
var fn = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2509
|
+
Ge = ((Pe = fn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2510
2510
|
} catch {
|
|
2511
|
-
|
|
2511
|
+
Ge = !1;
|
|
2512
2512
|
}
|
|
2513
|
-
var
|
|
2513
|
+
var it = nn ? (
|
|
2514
2514
|
// Native
|
|
2515
2515
|
function(t, r, n) {
|
|
2516
2516
|
return t.startsWith(r, n);
|
|
@@ -2520,7 +2520,7 @@ var nt = tn ? (
|
|
|
2520
2520
|
function(t, r, n) {
|
|
2521
2521
|
return t.slice(n, n + r.length) === r;
|
|
2522
2522
|
}
|
|
2523
|
-
),
|
|
2523
|
+
), De = on ? String.fromCodePoint : (
|
|
2524
2524
|
// IE11
|
|
2525
2525
|
function() {
|
|
2526
2526
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2532,19 +2532,19 @@ var nt = tn ? (
|
|
|
2532
2532
|
}
|
|
2533
2533
|
return n;
|
|
2534
2534
|
}
|
|
2535
|
-
),
|
|
2535
|
+
), ot = (
|
|
2536
2536
|
// native
|
|
2537
|
-
|
|
2537
|
+
sn ? Object.fromEntries : (
|
|
2538
2538
|
// Ponyfill
|
|
2539
2539
|
function(t) {
|
|
2540
2540
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2541
|
-
var o = i[n], s = o[0],
|
|
2542
|
-
r[s] =
|
|
2541
|
+
var o = i[n], s = o[0], a = o[1];
|
|
2542
|
+
r[s] = a;
|
|
2543
2543
|
}
|
|
2544
2544
|
return r;
|
|
2545
2545
|
}
|
|
2546
2546
|
)
|
|
2547
|
-
),
|
|
2547
|
+
), Rt = an ? (
|
|
2548
2548
|
// Native
|
|
2549
2549
|
function(t, r) {
|
|
2550
2550
|
return t.codePointAt(r);
|
|
@@ -2558,7 +2558,7 @@ var nt = tn ? (
|
|
|
2558
2558
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
),
|
|
2561
|
+
), gn = un ? (
|
|
2562
2562
|
// Native
|
|
2563
2563
|
function(t) {
|
|
2564
2564
|
return t.trimStart();
|
|
@@ -2566,9 +2566,9 @@ var nt = tn ? (
|
|
|
2566
2566
|
) : (
|
|
2567
2567
|
// Ponyfill
|
|
2568
2568
|
function(t) {
|
|
2569
|
-
return t.replace(
|
|
2569
|
+
return t.replace(tn, "");
|
|
2570
2570
|
}
|
|
2571
|
-
),
|
|
2571
|
+
), mn = hn ? (
|
|
2572
2572
|
// Native
|
|
2573
2573
|
function(t) {
|
|
2574
2574
|
return t.trimEnd();
|
|
@@ -2576,32 +2576,32 @@ var nt = tn ? (
|
|
|
2576
2576
|
) : (
|
|
2577
2577
|
// Ponyfill
|
|
2578
2578
|
function(t) {
|
|
2579
|
-
return t.replace(
|
|
2579
|
+
return t.replace(rn, "");
|
|
2580
2580
|
}
|
|
2581
2581
|
);
|
|
2582
|
-
function
|
|
2582
|
+
function Ut(e, t) {
|
|
2583
2583
|
return new RegExp(e, t);
|
|
2584
2584
|
}
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2585
|
+
var Fe;
|
|
2586
|
+
if (Ge) {
|
|
2587
|
+
var st = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2588
|
+
Fe = function(t, r) {
|
|
2589
2589
|
var n;
|
|
2590
|
-
|
|
2591
|
-
var i =
|
|
2590
|
+
st.lastIndex = r;
|
|
2591
|
+
var i = st.exec(t);
|
|
2592
2592
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2593
2593
|
};
|
|
2594
2594
|
} else
|
|
2595
|
-
|
|
2595
|
+
Fe = function(t, r) {
|
|
2596
2596
|
for (var n = []; ; ) {
|
|
2597
|
-
var i =
|
|
2598
|
-
if (i === void 0 ||
|
|
2597
|
+
var i = Rt(t, r);
|
|
2598
|
+
if (i === void 0 || Gt(i) || yn(i))
|
|
2599
2599
|
break;
|
|
2600
2600
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2601
2601
|
}
|
|
2602
|
-
return
|
|
2602
|
+
return De.apply(void 0, n);
|
|
2603
2603
|
};
|
|
2604
|
-
var
|
|
2604
|
+
var pn = (
|
|
2605
2605
|
/** @class */
|
|
2606
2606
|
function() {
|
|
2607
2607
|
function e(t, r) {
|
|
@@ -2623,16 +2623,16 @@ var gn = (
|
|
|
2623
2623
|
if (o === 125 && t > 0)
|
|
2624
2624
|
break;
|
|
2625
2625
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2626
|
-
var
|
|
2626
|
+
var a = this.clonePosition();
|
|
2627
2627
|
this.bump(), i.push({
|
|
2628
|
-
type:
|
|
2629
|
-
location: _(
|
|
2628
|
+
type: C.pound,
|
|
2629
|
+
location: _(a, this.clonePosition())
|
|
2630
2630
|
});
|
|
2631
2631
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2632
2632
|
if (n)
|
|
2633
2633
|
break;
|
|
2634
2634
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2635
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2635
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2636
2636
|
var s = this.parseTag(t, r);
|
|
2637
2637
|
if (s.err)
|
|
2638
2638
|
return s;
|
|
@@ -2653,7 +2653,7 @@ var gn = (
|
|
|
2653
2653
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2654
2654
|
return {
|
|
2655
2655
|
val: {
|
|
2656
|
-
type:
|
|
2656
|
+
type: C.literal,
|
|
2657
2657
|
value: "<".concat(i, "/>"),
|
|
2658
2658
|
location: _(n, this.clonePosition())
|
|
2659
2659
|
},
|
|
@@ -2663,27 +2663,27 @@ var gn = (
|
|
|
2663
2663
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2664
2664
|
if (o.err)
|
|
2665
2665
|
return o;
|
|
2666
|
-
var s = o.val,
|
|
2666
|
+
var s = o.val, a = this.clonePosition();
|
|
2667
2667
|
if (this.bumpIf("</")) {
|
|
2668
|
-
if (this.isEOF() || !
|
|
2669
|
-
return this.error(y.INVALID_TAG, _(
|
|
2670
|
-
var l = this.clonePosition(),
|
|
2671
|
-
return i !==
|
|
2668
|
+
if (this.isEOF() || !je(this.char()))
|
|
2669
|
+
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
|
2670
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2671
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2672
2672
|
val: {
|
|
2673
|
-
type:
|
|
2673
|
+
type: C.tag,
|
|
2674
2674
|
value: i,
|
|
2675
2675
|
children: s,
|
|
2676
2676
|
location: _(n, this.clonePosition())
|
|
2677
2677
|
},
|
|
2678
2678
|
err: null
|
|
2679
|
-
} : this.error(y.INVALID_TAG, _(
|
|
2679
|
+
} : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
|
|
2680
2680
|
} else
|
|
2681
2681
|
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
2682
2682
|
} else
|
|
2683
2683
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2684
2684
|
}, e.prototype.parseTagName = function() {
|
|
2685
2685
|
var t = this.offset();
|
|
2686
|
-
for (this.bump(); !this.isEOF() &&
|
|
2686
|
+
for (this.bump(); !this.isEOF() && bn(this.char()); )
|
|
2687
2687
|
this.bump();
|
|
2688
2688
|
return this.message.slice(t, this.offset());
|
|
2689
2689
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2698,21 +2698,21 @@ var gn = (
|
|
|
2698
2698
|
i += s;
|
|
2699
2699
|
continue;
|
|
2700
2700
|
}
|
|
2701
|
-
var
|
|
2702
|
-
if (
|
|
2703
|
-
i +=
|
|
2701
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2702
|
+
if (a) {
|
|
2703
|
+
i += a;
|
|
2704
2704
|
continue;
|
|
2705
2705
|
}
|
|
2706
2706
|
break;
|
|
2707
2707
|
}
|
|
2708
2708
|
var l = _(n, this.clonePosition());
|
|
2709
2709
|
return {
|
|
2710
|
-
val: { type:
|
|
2710
|
+
val: { type: C.literal, value: i, location: l },
|
|
2711
2711
|
err: null
|
|
2712
2712
|
};
|
|
2713
2713
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2714
2714
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2715
|
-
!
|
|
2715
|
+
!dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2716
2716
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2717
2717
|
if (this.isEOF() || this.char() !== 39)
|
|
2718
2718
|
return null;
|
|
@@ -2746,12 +2746,12 @@ var gn = (
|
|
|
2746
2746
|
r.push(n);
|
|
2747
2747
|
this.bump();
|
|
2748
2748
|
}
|
|
2749
|
-
return
|
|
2749
|
+
return De.apply(void 0, r);
|
|
2750
2750
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2751
2751
|
if (this.isEOF())
|
|
2752
2752
|
return null;
|
|
2753
2753
|
var n = this.char();
|
|
2754
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2754
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2755
2755
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2756
2756
|
var n = this.clonePosition();
|
|
2757
2757
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2767,7 +2767,7 @@ var gn = (
|
|
|
2767
2767
|
case 125:
|
|
2768
2768
|
return this.bump(), {
|
|
2769
2769
|
val: {
|
|
2770
|
-
type:
|
|
2770
|
+
type: C.argument,
|
|
2771
2771
|
// value does not include the opening and closing braces.
|
|
2772
2772
|
value: i,
|
|
2773
2773
|
location: _(n, this.clonePosition())
|
|
@@ -2780,66 +2780,66 @@ var gn = (
|
|
|
2780
2780
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2781
2781
|
}
|
|
2782
2782
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2783
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2783
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2784
2784
|
this.bumpTo(i);
|
|
2785
2785
|
var o = this.clonePosition(), s = _(t, o);
|
|
2786
2786
|
return { value: n, location: s };
|
|
2787
2787
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2788
|
-
var o, s = this.clonePosition(),
|
|
2789
|
-
switch (
|
|
2788
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2789
|
+
switch (a) {
|
|
2790
2790
|
case "":
|
|
2791
2791
|
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, l));
|
|
2792
2792
|
case "number":
|
|
2793
2793
|
case "date":
|
|
2794
2794
|
case "time": {
|
|
2795
2795
|
this.bumpSpace();
|
|
2796
|
-
var
|
|
2796
|
+
var u = null;
|
|
2797
2797
|
if (this.bumpIf(",")) {
|
|
2798
2798
|
this.bumpSpace();
|
|
2799
|
-
var h = this.clonePosition(),
|
|
2800
|
-
if (
|
|
2801
|
-
return
|
|
2802
|
-
var
|
|
2803
|
-
if (
|
|
2799
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2800
|
+
if (f.err)
|
|
2801
|
+
return f;
|
|
2802
|
+
var c = mn(f.val);
|
|
2803
|
+
if (c.length === 0)
|
|
2804
2804
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2805
2805
|
var p = _(h, this.clonePosition());
|
|
2806
|
-
|
|
2806
|
+
u = { style: c, styleLocation: p };
|
|
2807
2807
|
}
|
|
2808
2808
|
var d = this.tryParseArgumentClose(i);
|
|
2809
2809
|
if (d.err)
|
|
2810
2810
|
return d;
|
|
2811
2811
|
var g = _(i, this.clonePosition());
|
|
2812
|
-
if (
|
|
2813
|
-
var E =
|
|
2814
|
-
if (
|
|
2815
|
-
var
|
|
2816
|
-
return
|
|
2817
|
-
val: { type:
|
|
2812
|
+
if (u && it(u?.style, "::", 0)) {
|
|
2813
|
+
var E = gn(u.style.slice(2));
|
|
2814
|
+
if (a === "number") {
|
|
2815
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2816
|
+
return f.err ? f : {
|
|
2817
|
+
val: { type: C.number, value: n, location: g, style: f.val },
|
|
2818
2818
|
err: null
|
|
2819
2819
|
};
|
|
2820
2820
|
} else {
|
|
2821
2821
|
if (E.length === 0)
|
|
2822
2822
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2823
2823
|
var m = E;
|
|
2824
|
-
this.locale && (m =
|
|
2825
|
-
var
|
|
2826
|
-
type:
|
|
2824
|
+
this.locale && (m = Kr(E, this.locale));
|
|
2825
|
+
var c = {
|
|
2826
|
+
type: q.dateTime,
|
|
2827
2827
|
pattern: m,
|
|
2828
|
-
location:
|
|
2829
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2830
|
-
},
|
|
2828
|
+
location: u.styleLocation,
|
|
2829
|
+
parsedOptions: this.shouldParseSkeletons ? zr(m) : {}
|
|
2830
|
+
}, v = a === "date" ? C.date : C.time;
|
|
2831
2831
|
return {
|
|
2832
|
-
val: { type:
|
|
2832
|
+
val: { type: v, value: n, location: g, style: c },
|
|
2833
2833
|
err: null
|
|
2834
2834
|
};
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
2837
|
return {
|
|
2838
2838
|
val: {
|
|
2839
|
-
type:
|
|
2839
|
+
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
2840
2840
|
value: n,
|
|
2841
2841
|
location: g,
|
|
2842
|
-
style: (o =
|
|
2842
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2843
2843
|
},
|
|
2844
2844
|
err: null
|
|
2845
2845
|
};
|
|
@@ -2849,41 +2849,41 @@ var gn = (
|
|
|
2849
2849
|
case "select": {
|
|
2850
2850
|
var S = this.clonePosition();
|
|
2851
2851
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2852
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S,
|
|
2852
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, _e({}, S)));
|
|
2853
2853
|
this.bumpSpace();
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2854
|
+
var P = this.parseIdentifierIfPossible(), A = 0;
|
|
2855
|
+
if (a !== "select" && P.value === "offset") {
|
|
2856
2856
|
if (!this.bumpIf(":"))
|
|
2857
2857
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2858
2858
|
this.bumpSpace();
|
|
2859
|
-
var
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2862
|
-
this.bumpSpace(),
|
|
2859
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2860
|
+
if (f.err)
|
|
2861
|
+
return f;
|
|
2862
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), A = f.val;
|
|
2863
2863
|
}
|
|
2864
|
-
var H = this.tryParsePluralOrSelectOptions(t,
|
|
2864
|
+
var H = this.tryParsePluralOrSelectOptions(t, a, r, P);
|
|
2865
2865
|
if (H.err)
|
|
2866
2866
|
return H;
|
|
2867
2867
|
var d = this.tryParseArgumentClose(i);
|
|
2868
2868
|
if (d.err)
|
|
2869
2869
|
return d;
|
|
2870
|
-
var
|
|
2871
|
-
return
|
|
2870
|
+
var O = _(i, this.clonePosition());
|
|
2871
|
+
return a === "select" ? {
|
|
2872
2872
|
val: {
|
|
2873
|
-
type:
|
|
2873
|
+
type: C.select,
|
|
2874
2874
|
value: n,
|
|
2875
|
-
options:
|
|
2876
|
-
location:
|
|
2875
|
+
options: ot(H.val),
|
|
2876
|
+
location: O
|
|
2877
2877
|
},
|
|
2878
2878
|
err: null
|
|
2879
2879
|
} : {
|
|
2880
2880
|
val: {
|
|
2881
|
-
type:
|
|
2881
|
+
type: C.plural,
|
|
2882
2882
|
value: n,
|
|
2883
|
-
options:
|
|
2883
|
+
options: ot(H.val),
|
|
2884
2884
|
offset: A,
|
|
2885
|
-
pluralType:
|
|
2886
|
-
location:
|
|
2885
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2886
|
+
location: O
|
|
2887
2887
|
},
|
|
2888
2888
|
err: null
|
|
2889
2889
|
};
|
|
@@ -2931,34 +2931,34 @@ var gn = (
|
|
|
2931
2931
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2932
2932
|
var n = [];
|
|
2933
2933
|
try {
|
|
2934
|
-
n =
|
|
2934
|
+
n = Zr(t);
|
|
2935
2935
|
} catch {
|
|
2936
2936
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2937
2937
|
}
|
|
2938
2938
|
return {
|
|
2939
2939
|
val: {
|
|
2940
|
-
type:
|
|
2940
|
+
type: q.number,
|
|
2941
2941
|
tokens: n,
|
|
2942
2942
|
location: r,
|
|
2943
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
+
parsedOptions: this.shouldParseSkeletons ? Yr(n) : {}
|
|
2944
2944
|
},
|
|
2945
2945
|
err: null
|
|
2946
2946
|
};
|
|
2947
2947
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2948
|
-
for (var o, s = !1,
|
|
2949
|
-
if (
|
|
2950
|
-
var
|
|
2948
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2949
|
+
if (u.length === 0) {
|
|
2950
|
+
var f = this.clonePosition();
|
|
2951
2951
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2952
|
-
var
|
|
2953
|
-
if (
|
|
2954
|
-
return
|
|
2955
|
-
h = _(
|
|
2952
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2953
|
+
if (c.err)
|
|
2954
|
+
return c;
|
|
2955
|
+
h = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
2956
2956
|
} else
|
|
2957
2957
|
break;
|
|
2958
2958
|
}
|
|
2959
|
-
if (l.has(
|
|
2959
|
+
if (l.has(u))
|
|
2960
2960
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2961
|
-
|
|
2961
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
2962
2962
|
var p = this.clonePosition();
|
|
2963
2963
|
if (!this.bumpIf("{"))
|
|
2964
2964
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -2968,27 +2968,27 @@ var gn = (
|
|
|
2968
2968
|
var g = this.tryParseArgumentClose(p);
|
|
2969
2969
|
if (g.err)
|
|
2970
2970
|
return g;
|
|
2971
|
-
|
|
2972
|
-
|
|
2971
|
+
a.push([
|
|
2972
|
+
u,
|
|
2973
2973
|
{
|
|
2974
2974
|
value: d.val,
|
|
2975
2975
|
location: _(p, this.clonePosition())
|
|
2976
2976
|
}
|
|
2977
|
-
]), l.add(
|
|
2977
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
2978
2978
|
}
|
|
2979
|
-
return
|
|
2979
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2980
2980
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2981
2981
|
var n = 1, i = this.clonePosition();
|
|
2982
2982
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2983
2983
|
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2986
|
-
o = !0, s = s * 10 + (
|
|
2984
|
+
var a = this.char();
|
|
2985
|
+
if (a >= 48 && a <= 57)
|
|
2986
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
2987
2987
|
else
|
|
2988
2988
|
break;
|
|
2989
2989
|
}
|
|
2990
2990
|
var l = _(i, this.clonePosition());
|
|
2991
|
-
return o ? (s *= n,
|
|
2991
|
+
return o ? (s *= n, cn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2992
2992
|
}, e.prototype.offset = function() {
|
|
2993
2993
|
return this.position.offset;
|
|
2994
2994
|
}, e.prototype.isEOF = function() {
|
|
@@ -3003,7 +3003,7 @@ var gn = (
|
|
|
3003
3003
|
var t = this.position.offset;
|
|
3004
3004
|
if (t >= this.message.length)
|
|
3005
3005
|
throw Error("out of bound");
|
|
3006
|
-
var r =
|
|
3006
|
+
var r = Rt(this.message, t);
|
|
3007
3007
|
if (r === void 0)
|
|
3008
3008
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3009
3009
|
return r;
|
|
@@ -3022,7 +3022,7 @@ var gn = (
|
|
|
3022
3022
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3023
3023
|
}
|
|
3024
3024
|
}, e.prototype.bumpIf = function(t) {
|
|
3025
|
-
if (
|
|
3025
|
+
if (it(this.message, t, this.offset())) {
|
|
3026
3026
|
for (var r = 0; r < t.length; r++)
|
|
3027
3027
|
this.bump();
|
|
3028
3028
|
return !0;
|
|
@@ -3044,7 +3044,7 @@ var gn = (
|
|
|
3044
3044
|
break;
|
|
3045
3045
|
}
|
|
3046
3046
|
}, e.prototype.bumpSpace = function() {
|
|
3047
|
-
for (; !this.isEOF() &&
|
|
3047
|
+
for (; !this.isEOF() && Gt(this.char()); )
|
|
3048
3048
|
this.bump();
|
|
3049
3049
|
}, e.prototype.peek = function() {
|
|
3050
3050
|
if (this.isEOF())
|
|
@@ -3054,47 +3054,47 @@ var gn = (
|
|
|
3054
3054
|
}, e;
|
|
3055
3055
|
}()
|
|
3056
3056
|
);
|
|
3057
|
-
function
|
|
3057
|
+
function je(e) {
|
|
3058
3058
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3060
|
+
function dn(e) {
|
|
3061
|
+
return je(e) || e === 47;
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function bn(e) {
|
|
3064
3064
|
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;
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function Gt(e) {
|
|
3067
3067
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function yn(e) {
|
|
3070
3070
|
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;
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function ke(e) {
|
|
3073
3073
|
e.forEach(function(t) {
|
|
3074
|
-
if (delete t.location,
|
|
3074
|
+
if (delete t.location, wt(t) || Ot(t))
|
|
3075
3075
|
for (var r in t.options)
|
|
3076
|
-
delete t.options[r].location,
|
|
3076
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3077
3077
|
else
|
|
3078
|
-
|
|
3078
|
+
St(t) && Nt(t.style) || (At(t) || Bt(t)) && Ue(t.style) ? delete t.style.location : Pt(t) && ke(t.children);
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
3081
|
-
function
|
|
3082
|
-
t === void 0 && (t = {}), t =
|
|
3083
|
-
var r = new
|
|
3081
|
+
function _n(e, t) {
|
|
3082
|
+
t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3083
|
+
var r = new pn(e, t).parse();
|
|
3084
3084
|
if (r.err) {
|
|
3085
3085
|
var n = SyntaxError(y[r.err.kind]);
|
|
3086
3086
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3087
3087
|
}
|
|
3088
|
-
return t?.captureLocation ||
|
|
3088
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3089
3089
|
}
|
|
3090
|
-
var
|
|
3090
|
+
var Y;
|
|
3091
3091
|
(function(e) {
|
|
3092
3092
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3093
|
-
})(
|
|
3093
|
+
})(Y || (Y = {}));
|
|
3094
3094
|
var Te = (
|
|
3095
3095
|
/** @class */
|
|
3096
3096
|
function(e) {
|
|
3097
|
-
|
|
3097
|
+
Ce(t, e);
|
|
3098
3098
|
function t(r, n, i) {
|
|
3099
3099
|
var o = e.call(this, r) || this;
|
|
3100
3100
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3103,155 +3103,155 @@ var Te = (
|
|
|
3103
3103
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3104
3104
|
}, t;
|
|
3105
3105
|
}(Error)
|
|
3106
|
-
),
|
|
3106
|
+
), at = (
|
|
3107
3107
|
/** @class */
|
|
3108
3108
|
function(e) {
|
|
3109
|
-
|
|
3109
|
+
Ce(t, e);
|
|
3110
3110
|
function t(r, n, i, o) {
|
|
3111
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3111
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3112
3112
|
}
|
|
3113
3113
|
return t;
|
|
3114
3114
|
}(Te)
|
|
3115
|
-
),
|
|
3115
|
+
), En = (
|
|
3116
3116
|
/** @class */
|
|
3117
3117
|
function(e) {
|
|
3118
|
-
|
|
3118
|
+
Ce(t, e);
|
|
3119
3119
|
function t(r, n, i) {
|
|
3120
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3120
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3121
3121
|
}
|
|
3122
3122
|
return t;
|
|
3123
3123
|
}(Te)
|
|
3124
|
-
),
|
|
3124
|
+
), xn = (
|
|
3125
3125
|
/** @class */
|
|
3126
3126
|
function(e) {
|
|
3127
|
-
|
|
3127
|
+
Ce(t, e);
|
|
3128
3128
|
function t(r, n) {
|
|
3129
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3129
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3130
3130
|
}
|
|
3131
3131
|
return t;
|
|
3132
3132
|
}(Te)
|
|
3133
|
-
),
|
|
3133
|
+
), w;
|
|
3134
3134
|
(function(e) {
|
|
3135
3135
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3136
|
-
})(
|
|
3137
|
-
function
|
|
3136
|
+
})(w || (w = {}));
|
|
3137
|
+
function vn(e) {
|
|
3138
3138
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3139
3139
|
var n = t[t.length - 1];
|
|
3140
|
-
return !n || n.type !==
|
|
3140
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3141
3141
|
}, []);
|
|
3142
3142
|
}
|
|
3143
|
-
function
|
|
3143
|
+
function Cn(e) {
|
|
3144
3144
|
return typeof e == "function";
|
|
3145
3145
|
}
|
|
3146
|
-
function
|
|
3147
|
-
if (e.length === 1 &&
|
|
3146
|
+
function de(e, t, r, n, i, o, s) {
|
|
3147
|
+
if (e.length === 1 && et(e[0]))
|
|
3148
3148
|
return [
|
|
3149
3149
|
{
|
|
3150
|
-
type:
|
|
3150
|
+
type: w.literal,
|
|
3151
3151
|
value: e[0].value
|
|
3152
3152
|
}
|
|
3153
3153
|
];
|
|
3154
|
-
for (var
|
|
3155
|
-
var h =
|
|
3156
|
-
if (
|
|
3157
|
-
|
|
3158
|
-
type:
|
|
3154
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3155
|
+
var h = u[l];
|
|
3156
|
+
if (et(h)) {
|
|
3157
|
+
a.push({
|
|
3158
|
+
type: w.literal,
|
|
3159
3159
|
value: h.value
|
|
3160
3160
|
});
|
|
3161
3161
|
continue;
|
|
3162
3162
|
}
|
|
3163
|
-
if (
|
|
3164
|
-
typeof o == "number" &&
|
|
3165
|
-
type:
|
|
3163
|
+
if (Vr(h)) {
|
|
3164
|
+
typeof o == "number" && a.push({
|
|
3165
|
+
type: w.literal,
|
|
3166
3166
|
value: r.getNumberFormat(t).format(o)
|
|
3167
3167
|
});
|
|
3168
3168
|
continue;
|
|
3169
3169
|
}
|
|
3170
|
-
var
|
|
3171
|
-
if (!(i &&
|
|
3172
|
-
throw new
|
|
3173
|
-
var
|
|
3174
|
-
if (
|
|
3175
|
-
(!
|
|
3176
|
-
type: typeof
|
|
3177
|
-
value:
|
|
3170
|
+
var f = h.value;
|
|
3171
|
+
if (!(i && f in i))
|
|
3172
|
+
throw new xn(f, s);
|
|
3173
|
+
var c = i[f];
|
|
3174
|
+
if (kr(h)) {
|
|
3175
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3176
|
+
type: typeof c == "string" ? w.literal : w.object,
|
|
3177
|
+
value: c
|
|
3178
3178
|
});
|
|
3179
3179
|
continue;
|
|
3180
3180
|
}
|
|
3181
|
-
if (
|
|
3182
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3183
|
-
|
|
3184
|
-
type:
|
|
3185
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3181
|
+
if (At(h)) {
|
|
3182
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
|
|
3183
|
+
a.push({
|
|
3184
|
+
type: w.literal,
|
|
3185
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3186
3186
|
});
|
|
3187
3187
|
continue;
|
|
3188
3188
|
}
|
|
3189
|
-
if (
|
|
3190
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3191
|
-
|
|
3192
|
-
type:
|
|
3193
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3189
|
+
if (Bt(h)) {
|
|
3190
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3191
|
+
a.push({
|
|
3192
|
+
type: w.literal,
|
|
3193
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3194
3194
|
});
|
|
3195
3195
|
continue;
|
|
3196
3196
|
}
|
|
3197
|
-
if (
|
|
3198
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3199
|
-
p && p.scale && (
|
|
3200
|
-
type:
|
|
3201
|
-
value: r.getNumberFormat(t, p).format(
|
|
3197
|
+
if (St(h)) {
|
|
3198
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Nt(h.style) ? h.style.parsedOptions : void 0;
|
|
3199
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3200
|
+
type: w.literal,
|
|
3201
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3202
3202
|
});
|
|
3203
3203
|
continue;
|
|
3204
3204
|
}
|
|
3205
|
-
if (
|
|
3205
|
+
if (Pt(h)) {
|
|
3206
3206
|
var d = h.children, g = h.value, E = i[g];
|
|
3207
|
-
if (!
|
|
3208
|
-
throw new
|
|
3209
|
-
var m =
|
|
3207
|
+
if (!Cn(E))
|
|
3208
|
+
throw new En(g, "function", s);
|
|
3209
|
+
var m = de(d, t, r, n, i, o), v = E(m.map(function(A) {
|
|
3210
3210
|
return A.value;
|
|
3211
3211
|
}));
|
|
3212
|
-
Array.isArray(
|
|
3212
|
+
Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(A) {
|
|
3213
3213
|
return {
|
|
3214
|
-
type: typeof A == "string" ?
|
|
3214
|
+
type: typeof A == "string" ? w.literal : w.object,
|
|
3215
3215
|
value: A
|
|
3216
3216
|
};
|
|
3217
3217
|
}));
|
|
3218
3218
|
}
|
|
3219
|
-
if (
|
|
3220
|
-
var S = h.options[
|
|
3219
|
+
if (wt(h)) {
|
|
3220
|
+
var S = h.options[c] || h.options.other;
|
|
3221
3221
|
if (!S)
|
|
3222
|
-
throw new
|
|
3223
|
-
|
|
3222
|
+
throw new at(h.value, c, Object.keys(h.options), s);
|
|
3223
|
+
a.push.apply(a, de(S.value, t, r, n, i));
|
|
3224
3224
|
continue;
|
|
3225
3225
|
}
|
|
3226
3226
|
if (Ot(h)) {
|
|
3227
|
-
var S = h.options["=".concat(
|
|
3227
|
+
var S = h.options["=".concat(c)];
|
|
3228
3228
|
if (!S) {
|
|
3229
3229
|
if (!Intl.PluralRules)
|
|
3230
3230
|
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3231
3231
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3232
|
-
`,
|
|
3233
|
-
var
|
|
3234
|
-
S = h.options[
|
|
3232
|
+
`, Y.MISSING_INTL_API, s);
|
|
3233
|
+
var P = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3234
|
+
S = h.options[P] || h.options.other;
|
|
3235
3235
|
}
|
|
3236
3236
|
if (!S)
|
|
3237
|
-
throw new
|
|
3238
|
-
|
|
3237
|
+
throw new at(h.value, c, Object.keys(h.options), s);
|
|
3238
|
+
a.push.apply(a, de(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3239
3239
|
continue;
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
|
-
return
|
|
3242
|
+
return vn(a);
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Tn(e, t) {
|
|
3245
3245
|
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3246
3246
|
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3247
3247
|
}, {})) : e;
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Hn(e, t) {
|
|
3250
3250
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3251
|
-
return r[n] =
|
|
3251
|
+
return r[n] = Tn(e[n], t[n]), r;
|
|
3252
3252
|
}, R({}, e)) : e;
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3254
|
+
function Ne(e) {
|
|
3255
3255
|
return {
|
|
3256
3256
|
create: function() {
|
|
3257
3257
|
return {
|
|
@@ -3265,39 +3265,39 @@ function Pe(e) {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
};
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function Sn(e) {
|
|
3269
3269
|
return e === void 0 && (e = {
|
|
3270
3270
|
number: {},
|
|
3271
3271
|
dateTime: {},
|
|
3272
3272
|
pluralRules: {}
|
|
3273
3273
|
}), {
|
|
3274
|
-
getNumberFormat:
|
|
3274
|
+
getNumberFormat: we(function() {
|
|
3275
3275
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3276
3276
|
r[n] = arguments[n];
|
|
3277
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3277
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3278
3278
|
}, {
|
|
3279
|
-
cache:
|
|
3279
|
+
cache: Ne(e.number),
|
|
3280
3280
|
strategy: Oe.variadic
|
|
3281
3281
|
}),
|
|
3282
|
-
getDateTimeFormat:
|
|
3282
|
+
getDateTimeFormat: we(function() {
|
|
3283
3283
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3284
3284
|
r[n] = arguments[n];
|
|
3285
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3285
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3286
3286
|
}, {
|
|
3287
|
-
cache:
|
|
3287
|
+
cache: Ne(e.dateTime),
|
|
3288
3288
|
strategy: Oe.variadic
|
|
3289
3289
|
}),
|
|
3290
|
-
getPluralRules:
|
|
3290
|
+
getPluralRules: we(function() {
|
|
3291
3291
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3292
3292
|
r[n] = arguments[n];
|
|
3293
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3293
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3294
3294
|
}, {
|
|
3295
|
-
cache:
|
|
3295
|
+
cache: Ne(e.pluralRules),
|
|
3296
3296
|
strategy: Oe.variadic
|
|
3297
3297
|
})
|
|
3298
3298
|
};
|
|
3299
3299
|
}
|
|
3300
|
-
var
|
|
3300
|
+
var An = (
|
|
3301
3301
|
/** @class */
|
|
3302
3302
|
function() {
|
|
3303
3303
|
function e(t, r, n, i) {
|
|
@@ -3308,15 +3308,15 @@ var Hn = (
|
|
|
3308
3308
|
dateTime: {},
|
|
3309
3309
|
pluralRules: {}
|
|
3310
3310
|
}, this.format = function(l) {
|
|
3311
|
-
var
|
|
3312
|
-
if (
|
|
3313
|
-
return
|
|
3314
|
-
var h =
|
|
3315
|
-
return !
|
|
3311
|
+
var u = o.formatToParts(l);
|
|
3312
|
+
if (u.length === 1)
|
|
3313
|
+
return u[0].value;
|
|
3314
|
+
var h = u.reduce(function(f, c) {
|
|
3315
|
+
return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3316
3316
|
}, []);
|
|
3317
3317
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3318
3318
|
}, this.formatToParts = function(l) {
|
|
3319
|
-
return
|
|
3319
|
+
return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3320
3320
|
}, this.resolvedOptions = function() {
|
|
3321
3321
|
var l;
|
|
3322
3322
|
return {
|
|
@@ -3329,13 +3329,13 @@ var Hn = (
|
|
|
3329
3329
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3330
3330
|
var s = i || {};
|
|
3331
3331
|
s.formatters;
|
|
3332
|
-
var
|
|
3333
|
-
this.ast = e.__parse(t, R(R({},
|
|
3332
|
+
var a = Mr(s, ["formatters"]);
|
|
3333
|
+
this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
|
|
3334
3334
|
} else
|
|
3335
3335
|
this.ast = t;
|
|
3336
3336
|
if (!Array.isArray(this.ast))
|
|
3337
3337
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3338
|
-
this.formats =
|
|
3338
|
+
this.formats = Hn(e.formats, n), this.formatters = i && i.formatters || Sn(this.formatterCache);
|
|
3339
3339
|
}
|
|
3340
3340
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3341
3341
|
get: function() {
|
|
@@ -3348,7 +3348,7 @@ var Hn = (
|
|
|
3348
3348
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3349
3349
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3350
3350
|
}
|
|
3351
|
-
}, e.__parse =
|
|
3351
|
+
}, e.__parse = _n, e.formats = {
|
|
3352
3352
|
number: {
|
|
3353
3353
|
integer: {
|
|
3354
3354
|
maximumFractionDigits: 0
|
|
@@ -3409,7 +3409,7 @@ var Hn = (
|
|
|
3409
3409
|
}, e;
|
|
3410
3410
|
}()
|
|
3411
3411
|
);
|
|
3412
|
-
function
|
|
3412
|
+
function Bn(e, t) {
|
|
3413
3413
|
if (t == null)
|
|
3414
3414
|
return;
|
|
3415
3415
|
if (t in e)
|
|
@@ -3430,92 +3430,92 @@ function Sn(e, t) {
|
|
|
3430
3430
|
n = void 0;
|
|
3431
3431
|
return n;
|
|
3432
3432
|
}
|
|
3433
|
-
const D = {},
|
|
3433
|
+
const D = {}, wn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Dt = (e, t) => {
|
|
3434
3434
|
if (t == null)
|
|
3435
3435
|
return;
|
|
3436
3436
|
if (t in D && e in D[t])
|
|
3437
3437
|
return D[t][e];
|
|
3438
|
-
const r =
|
|
3438
|
+
const r = He(t);
|
|
3439
3439
|
for (let n = 0; n < r.length; n++) {
|
|
3440
|
-
const i = r[n], o =
|
|
3440
|
+
const i = r[n], o = Pn(i, e);
|
|
3441
3441
|
if (o)
|
|
3442
|
-
return
|
|
3442
|
+
return wn(e, t, o);
|
|
3443
3443
|
}
|
|
3444
3444
|
};
|
|
3445
|
-
let
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3448
|
-
return
|
|
3445
|
+
let We;
|
|
3446
|
+
const le = ve({});
|
|
3447
|
+
function On(e) {
|
|
3448
|
+
return We[e] || null;
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3451
|
-
return e in
|
|
3450
|
+
function Ft(e) {
|
|
3451
|
+
return e in We;
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3454
|
-
if (!
|
|
3453
|
+
function Pn(e, t) {
|
|
3454
|
+
if (!Ft(e))
|
|
3455
3455
|
return null;
|
|
3456
|
-
const r =
|
|
3457
|
-
return
|
|
3456
|
+
const r = On(e);
|
|
3457
|
+
return Bn(r, t);
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function Nn(e) {
|
|
3460
3460
|
if (e == null)
|
|
3461
3461
|
return;
|
|
3462
|
-
const t =
|
|
3462
|
+
const t = He(e);
|
|
3463
3463
|
for (let r = 0; r < t.length; r++) {
|
|
3464
3464
|
const n = t[r];
|
|
3465
|
-
if (
|
|
3465
|
+
if (Ft(n))
|
|
3466
3466
|
return n;
|
|
3467
3467
|
}
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3470
|
-
delete D[e],
|
|
3469
|
+
function jt(e, ...t) {
|
|
3470
|
+
delete D[e], le.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
|
|
3471
3471
|
}
|
|
3472
|
-
|
|
3473
|
-
[
|
|
3472
|
+
te(
|
|
3473
|
+
[le],
|
|
3474
3474
|
([e]) => Object.keys(e)
|
|
3475
3475
|
);
|
|
3476
|
-
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3479
|
-
|
|
3476
|
+
le.subscribe((e) => We = e);
|
|
3477
|
+
const be = {};
|
|
3478
|
+
function Ln(e, t) {
|
|
3479
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3481
|
+
function kt(e) {
|
|
3482
|
+
return be[e];
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3486
|
-
const r =
|
|
3484
|
+
function In(e) {
|
|
3485
|
+
return He(e).map((t) => {
|
|
3486
|
+
const r = kt(t);
|
|
3487
3487
|
return [t, r ? [...r] : []];
|
|
3488
3488
|
}).filter(([, t]) => t.length > 0);
|
|
3489
3489
|
}
|
|
3490
|
-
function
|
|
3491
|
-
return e == null ? !1 :
|
|
3490
|
+
function Ve(e) {
|
|
3491
|
+
return e == null ? !1 : He(e).some(
|
|
3492
3492
|
(t) => {
|
|
3493
3493
|
var r;
|
|
3494
|
-
return (r =
|
|
3494
|
+
return (r = kt(t)) == null ? void 0 : r.size;
|
|
3495
3495
|
}
|
|
3496
3496
|
);
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function Mn(e, t) {
|
|
3499
3499
|
return Promise.all(
|
|
3500
|
-
t.map((n) => (
|
|
3501
|
-
).then((n) =>
|
|
3502
|
-
}
|
|
3503
|
-
const
|
|
3504
|
-
function
|
|
3505
|
-
if (!
|
|
3506
|
-
return e in
|
|
3507
|
-
const t =
|
|
3508
|
-
return
|
|
3500
|
+
t.map((n) => (Ln(e, n), n().then((i) => i.default || i)))
|
|
3501
|
+
).then((n) => jt(e, ...n));
|
|
3502
|
+
}
|
|
3503
|
+
const ie = {};
|
|
3504
|
+
function Vt(e) {
|
|
3505
|
+
if (!Ve(e))
|
|
3506
|
+
return e in ie ? ie[e] : Promise.resolve();
|
|
3507
|
+
const t = In(e);
|
|
3508
|
+
return ie[e] = Promise.all(
|
|
3509
3509
|
t.map(
|
|
3510
|
-
([r, n]) =>
|
|
3510
|
+
([r, n]) => Mn(r, n)
|
|
3511
3511
|
)
|
|
3512
3512
|
).then(() => {
|
|
3513
|
-
if (
|
|
3514
|
-
return
|
|
3515
|
-
delete
|
|
3516
|
-
}),
|
|
3513
|
+
if (Ve(e))
|
|
3514
|
+
return Vt(e);
|
|
3515
|
+
delete ie[e];
|
|
3516
|
+
}), ie[e];
|
|
3517
3517
|
}
|
|
3518
|
-
const
|
|
3518
|
+
const $n = {
|
|
3519
3519
|
number: {
|
|
3520
3520
|
scientific: { notation: "scientific" },
|
|
3521
3521
|
engineering: { notation: "engineering" },
|
|
@@ -3544,178 +3544,178 @@ const In = {
|
|
|
3544
3544
|
timeZoneName: "short"
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
3547
|
-
},
|
|
3547
|
+
}, Rn = {
|
|
3548
3548
|
fallbackLocale: null,
|
|
3549
3549
|
loadingDelay: 200,
|
|
3550
|
-
formats:
|
|
3550
|
+
formats: $n,
|
|
3551
3551
|
warnOnMissingMessages: !0,
|
|
3552
3552
|
handleMissingMessage: void 0,
|
|
3553
3553
|
ignoreTag: !0
|
|
3554
|
-
},
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3554
|
+
}, Un = Rn;
|
|
3555
|
+
function K() {
|
|
3556
|
+
return Un;
|
|
3557
3557
|
}
|
|
3558
|
-
const
|
|
3559
|
-
var
|
|
3558
|
+
const Le = ve(!1);
|
|
3559
|
+
var Gn = Object.defineProperty, Dn = Object.defineProperties, Fn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, jn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vn = (e, t) => {
|
|
3560
3560
|
for (var r in t || (t = {}))
|
|
3561
|
-
|
|
3562
|
-
if (
|
|
3563
|
-
for (var r of
|
|
3564
|
-
|
|
3561
|
+
jn.call(t, r) && ht(e, r, t[r]);
|
|
3562
|
+
if (ut)
|
|
3563
|
+
for (var r of ut(t))
|
|
3564
|
+
kn.call(t, r) && ht(e, r, t[r]);
|
|
3565
3565
|
return e;
|
|
3566
|
-
},
|
|
3567
|
-
let
|
|
3568
|
-
const
|
|
3569
|
-
function
|
|
3566
|
+
}, Xn = (e, t) => Dn(e, Fn(t));
|
|
3567
|
+
let Xe;
|
|
3568
|
+
const Ee = ve(null);
|
|
3569
|
+
function lt(e) {
|
|
3570
3570
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3573
|
-
const r =
|
|
3574
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3572
|
+
function He(e, t = K().fallbackLocale) {
|
|
3573
|
+
const r = lt(e);
|
|
3574
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3575
3575
|
}
|
|
3576
3576
|
function V() {
|
|
3577
|
-
return
|
|
3577
|
+
return Xe ?? void 0;
|
|
3578
3578
|
}
|
|
3579
|
-
|
|
3580
|
-
|
|
3579
|
+
Ee.subscribe((e) => {
|
|
3580
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3581
3581
|
});
|
|
3582
|
-
const
|
|
3583
|
-
if (e &&
|
|
3584
|
-
const { loadingDelay: t } =
|
|
3582
|
+
const zn = (e) => {
|
|
3583
|
+
if (e && Nn(e) && Ve(e)) {
|
|
3584
|
+
const { loadingDelay: t } = K();
|
|
3585
3585
|
let r;
|
|
3586
3586
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3587
|
-
() =>
|
|
3587
|
+
() => Le.set(!0),
|
|
3588
3588
|
t
|
|
3589
|
-
) :
|
|
3590
|
-
|
|
3589
|
+
) : Le.set(!0), Vt(e).then(() => {
|
|
3590
|
+
Ee.set(e);
|
|
3591
3591
|
}).finally(() => {
|
|
3592
|
-
clearTimeout(r),
|
|
3592
|
+
clearTimeout(r), Le.set(!1);
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
|
-
return
|
|
3596
|
-
},
|
|
3597
|
-
set:
|
|
3598
|
-
}),
|
|
3595
|
+
return Ee.set(e);
|
|
3596
|
+
}, re = Xn(Vn({}, Ee), {
|
|
3597
|
+
set: zn
|
|
3598
|
+
}), Se = (e) => {
|
|
3599
3599
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3600
3600
|
return (n) => {
|
|
3601
3601
|
const i = JSON.stringify(n);
|
|
3602
3602
|
return i in t ? t[i] : t[i] = e(n);
|
|
3603
3603
|
};
|
|
3604
3604
|
};
|
|
3605
|
-
var
|
|
3605
|
+
var Wn = Object.defineProperty, xe = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3606
3606
|
for (var r in t || (t = {}))
|
|
3607
|
-
|
|
3608
|
-
if (
|
|
3609
|
-
for (var r of
|
|
3610
|
-
|
|
3607
|
+
Xt.call(t, r) && ct(e, r, t[r]);
|
|
3608
|
+
if (xe)
|
|
3609
|
+
for (var r of xe(t))
|
|
3610
|
+
zt.call(t, r) && ct(e, r, t[r]);
|
|
3611
3611
|
return e;
|
|
3612
|
-
},
|
|
3612
|
+
}, ne = (e, t) => {
|
|
3613
3613
|
var r = {};
|
|
3614
3614
|
for (var n in e)
|
|
3615
|
-
|
|
3616
|
-
if (e != null &&
|
|
3617
|
-
for (var n of
|
|
3618
|
-
t.indexOf(n) < 0 &&
|
|
3615
|
+
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3616
|
+
if (e != null && xe)
|
|
3617
|
+
for (var n of xe(e))
|
|
3618
|
+
t.indexOf(n) < 0 && zt.call(e, n) && (r[n] = e[n]);
|
|
3619
3619
|
return r;
|
|
3620
3620
|
};
|
|
3621
|
-
const
|
|
3622
|
-
const { formats: r } =
|
|
3621
|
+
const ue = (e, t) => {
|
|
3622
|
+
const { formats: r } = K();
|
|
3623
3623
|
if (e in r && t in r[e])
|
|
3624
3624
|
return r[e][t];
|
|
3625
3625
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3626
|
-
},
|
|
3626
|
+
}, Zn = Se(
|
|
3627
3627
|
(e) => {
|
|
3628
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3628
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3629
3629
|
if (r == null)
|
|
3630
3630
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3631
|
-
return n && (i =
|
|
3631
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3632
3632
|
}
|
|
3633
|
-
),
|
|
3633
|
+
), Qn = Se(
|
|
3634
3634
|
(e) => {
|
|
3635
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3635
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3636
3636
|
if (r == null)
|
|
3637
3637
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3638
|
-
return n ? i =
|
|
3638
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3639
3639
|
}
|
|
3640
|
-
),
|
|
3640
|
+
), Jn = Se(
|
|
3641
3641
|
(e) => {
|
|
3642
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3642
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3643
3643
|
if (r == null)
|
|
3644
3644
|
throw new Error(
|
|
3645
3645
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3646
3646
|
);
|
|
3647
|
-
return n ? i =
|
|
3647
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3648
3648
|
}
|
|
3649
|
-
),
|
|
3649
|
+
), qn = (e = {}) => {
|
|
3650
3650
|
var t = e, {
|
|
3651
3651
|
locale: r = V()
|
|
3652
|
-
} = t, n =
|
|
3652
|
+
} = t, n = ne(t, [
|
|
3653
3653
|
"locale"
|
|
3654
3654
|
]);
|
|
3655
|
-
return
|
|
3656
|
-
},
|
|
3655
|
+
return Zn(Ze({ locale: r }, n));
|
|
3656
|
+
}, Yn = (e = {}) => {
|
|
3657
3657
|
var t = e, {
|
|
3658
3658
|
locale: r = V()
|
|
3659
|
-
} = t, n =
|
|
3659
|
+
} = t, n = ne(t, [
|
|
3660
3660
|
"locale"
|
|
3661
3661
|
]);
|
|
3662
|
-
return
|
|
3663
|
-
},
|
|
3662
|
+
return Qn(Ze({ locale: r }, n));
|
|
3663
|
+
}, Kn = (e = {}) => {
|
|
3664
3664
|
var t = e, {
|
|
3665
3665
|
locale: r = V()
|
|
3666
|
-
} = t, n =
|
|
3666
|
+
} = t, n = ne(t, [
|
|
3667
3667
|
"locale"
|
|
3668
3668
|
]);
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3669
|
+
return Jn(Ze({ locale: r }, n));
|
|
3670
|
+
}, ei = Se(
|
|
3671
3671
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3672
|
-
(e, t = V()) => new
|
|
3673
|
-
ignoreTag:
|
|
3672
|
+
(e, t = V()) => new An(e, t, K().formats, {
|
|
3673
|
+
ignoreTag: K().ignoreTag
|
|
3674
3674
|
})
|
|
3675
|
-
),
|
|
3675
|
+
), ti = (e, t = {}) => {
|
|
3676
3676
|
var r, n, i, o;
|
|
3677
3677
|
let s = t;
|
|
3678
3678
|
typeof e == "object" && (s = e, e = s.id);
|
|
3679
3679
|
const {
|
|
3680
|
-
values:
|
|
3680
|
+
values: a,
|
|
3681
3681
|
locale: l = V(),
|
|
3682
|
-
default:
|
|
3682
|
+
default: u
|
|
3683
3683
|
} = s;
|
|
3684
3684
|
if (l == null)
|
|
3685
3685
|
throw new Error(
|
|
3686
3686
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3687
3687
|
);
|
|
3688
|
-
let h =
|
|
3688
|
+
let h = Dt(e, l);
|
|
3689
3689
|
if (!h)
|
|
3690
|
-
h = (o = (i = (n = (r =
|
|
3690
|
+
h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3691
3691
|
else if (typeof h != "string")
|
|
3692
3692
|
return console.warn(
|
|
3693
3693
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3694
3694
|
), h;
|
|
3695
|
-
if (!
|
|
3695
|
+
if (!a)
|
|
3696
3696
|
return h;
|
|
3697
|
-
let
|
|
3697
|
+
let f = h;
|
|
3698
3698
|
try {
|
|
3699
|
-
|
|
3700
|
-
} catch (
|
|
3701
|
-
|
|
3699
|
+
f = ei(h, l).format(a);
|
|
3700
|
+
} catch (c) {
|
|
3701
|
+
c instanceof Error && console.warn(
|
|
3702
3702
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3703
|
-
|
|
3703
|
+
c.message
|
|
3704
3704
|
);
|
|
3705
3705
|
}
|
|
3706
|
-
return
|
|
3707
|
-
},
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3706
|
+
return f;
|
|
3707
|
+
}, ri = (e, t) => Kn(t).format(e), ni = (e, t) => Yn(t).format(e), ii = (e, t) => qn(t).format(e), oi = (e, t = V()) => Dt(e, t), si = te([re, le], () => ti);
|
|
3708
|
+
te([re], () => ri);
|
|
3709
|
+
te([re], () => ni);
|
|
3710
|
+
te([re], () => ii);
|
|
3711
|
+
te([re, le], () => oi);
|
|
3712
3712
|
function ft(e, t) {
|
|
3713
|
-
|
|
3713
|
+
jt(e, t);
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3716
|
-
|
|
3715
|
+
function ai(e) {
|
|
3716
|
+
re.set(e);
|
|
3717
3717
|
}
|
|
3718
|
-
const
|
|
3718
|
+
const gt = {
|
|
3719
3719
|
en: {
|
|
3720
3720
|
topCategories: "Top Categories",
|
|
3721
3721
|
otherCategories: "Other Categories",
|
|
@@ -3824,14 +3824,14 @@ const ct = {
|
|
|
3824
3824
|
loading: "Loading, please wait...",
|
|
3825
3825
|
games: "games"
|
|
3826
3826
|
}
|
|
3827
|
-
};
|
|
3828
|
-
function
|
|
3827
|
+
}, Z = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3828
|
+
function ui(e, t) {
|
|
3829
3829
|
if (e) {
|
|
3830
3830
|
const r = document.createElement("style");
|
|
3831
3831
|
r.innerHTML = t, e.appendChild(r);
|
|
3832
3832
|
}
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3834
|
+
function hi(e, t) {
|
|
3835
3835
|
if (!e || !t)
|
|
3836
3836
|
return;
|
|
3837
3837
|
const r = new URL(t);
|
|
@@ -3842,59 +3842,86 @@ function ai(e, t) {
|
|
|
3842
3842
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
3845
|
-
function
|
|
3846
|
-
if (window.emMessageBus)
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3845
|
+
function li(e, t, r, n = !1) {
|
|
3846
|
+
if (!window.emMessageBus)
|
|
3847
|
+
return;
|
|
3848
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
3849
|
+
return r = ci(e, t), r;
|
|
3850
|
+
window[Z] || (window[Z] = {}), r = fi(e, t);
|
|
3851
|
+
const o = r.unsubscribe.bind(r), s = () => {
|
|
3852
|
+
if (window[Z][t]) {
|
|
3853
|
+
const a = window[Z][t];
|
|
3854
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[Z][t];
|
|
3855
|
+
}
|
|
3856
|
+
o();
|
|
3857
|
+
};
|
|
3858
|
+
return r.unsubscribe = s, r;
|
|
3859
|
+
}
|
|
3860
|
+
function ci(e, t) {
|
|
3861
|
+
const r = document.createElement("style");
|
|
3862
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
3863
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
3864
|
+
});
|
|
3865
|
+
}
|
|
3866
|
+
function fi(e, t) {
|
|
3867
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
3868
|
+
if (!e)
|
|
3869
|
+
return;
|
|
3870
|
+
const n = e.getRootNode(), i = window[Z];
|
|
3871
|
+
let o = i[t]?.sheet;
|
|
3872
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
3873
|
+
sheet: o,
|
|
3874
|
+
refCount: 1
|
|
3850
3875
|
});
|
|
3851
|
-
|
|
3876
|
+
const s = n.adoptedStyleSheets || [];
|
|
3877
|
+
s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
|
|
3878
|
+
});
|
|
3852
3879
|
}
|
|
3853
|
-
function
|
|
3854
|
-
|
|
3880
|
+
function gi(e) {
|
|
3881
|
+
Yt(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}");
|
|
3855
3882
|
}
|
|
3856
|
-
function
|
|
3883
|
+
function mt(e, t, r) {
|
|
3857
3884
|
const n = e.slice();
|
|
3858
3885
|
return n[23] = t[r], n;
|
|
3859
3886
|
}
|
|
3860
|
-
function
|
|
3887
|
+
function pt(e, t, r) {
|
|
3861
3888
|
const n = e.slice();
|
|
3862
3889
|
return n[23] = t[r], n;
|
|
3863
3890
|
}
|
|
3864
|
-
function
|
|
3891
|
+
function mi(e) {
|
|
3865
3892
|
let t, r, n = (
|
|
3866
3893
|
/*$_*/
|
|
3867
3894
|
e[5]("topCategories") + ""
|
|
3868
|
-
), i, o, s,
|
|
3895
|
+
), i, o, s, a, l = (
|
|
3869
3896
|
/*$_*/
|
|
3870
3897
|
e[5]("otherCategories") + ""
|
|
3871
|
-
),
|
|
3898
|
+
), u, h, f = ge(
|
|
3872
3899
|
/*topCategories*/
|
|
3873
3900
|
e[3]
|
|
3874
|
-
),
|
|
3875
|
-
for (let g = 0; g <
|
|
3876
|
-
|
|
3877
|
-
let p =
|
|
3901
|
+
), c = [];
|
|
3902
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3903
|
+
c[g] = dt(pt(e, f, g));
|
|
3904
|
+
let p = ge(
|
|
3878
3905
|
/*otherCategories*/
|
|
3879
3906
|
e[4]
|
|
3880
3907
|
), d = [];
|
|
3881
3908
|
for (let g = 0; g < p.length; g += 1)
|
|
3882
|
-
d[g] =
|
|
3909
|
+
d[g] = bt(mt(e, p, g));
|
|
3883
3910
|
return {
|
|
3884
3911
|
c() {
|
|
3885
3912
|
t = B("div"), r = B("h4"), i = G(n), o = U();
|
|
3886
|
-
for (let g = 0; g <
|
|
3887
|
-
|
|
3888
|
-
s = U(),
|
|
3913
|
+
for (let g = 0; g < c.length; g += 1)
|
|
3914
|
+
c[g].c();
|
|
3915
|
+
s = U(), a = B("h4"), u = G(l), h = U();
|
|
3889
3916
|
for (let g = 0; g < d.length; g += 1)
|
|
3890
3917
|
d[g].c();
|
|
3891
|
-
L(r, "class", "CategoryTitle"), L(
|
|
3918
|
+
L(r, "class", "CategoryTitle"), L(a, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
3892
3919
|
},
|
|
3893
3920
|
m(g, E) {
|
|
3894
|
-
|
|
3895
|
-
for (let m = 0; m <
|
|
3896
|
-
|
|
3897
|
-
x(t, s), x(t,
|
|
3921
|
+
ee(g, t, E), x(t, r), x(r, i), x(t, o);
|
|
3922
|
+
for (let m = 0; m < c.length; m += 1)
|
|
3923
|
+
c[m] && c[m].m(t, null);
|
|
3924
|
+
x(t, s), x(t, a), x(a, u), x(t, h);
|
|
3898
3925
|
for (let m = 0; m < d.length; m += 1)
|
|
3899
3926
|
d[m] && d[m].m(t, null);
|
|
3900
3927
|
},
|
|
@@ -3903,31 +3930,31 @@ function li(e) {
|
|
|
3903
3930
|
32 && n !== (n = /*$_*/
|
|
3904
3931
|
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3905
3932
|
105) {
|
|
3906
|
-
|
|
3933
|
+
f = ge(
|
|
3907
3934
|
/*topCategories*/
|
|
3908
3935
|
g[3]
|
|
3909
3936
|
);
|
|
3910
3937
|
let m;
|
|
3911
|
-
for (m = 0; m <
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3938
|
+
for (m = 0; m < f.length; m += 1) {
|
|
3939
|
+
const v = pt(g, f, m);
|
|
3940
|
+
c[m] ? c[m].p(v, E) : (c[m] = dt(v), c[m].c(), c[m].m(t, s));
|
|
3914
3941
|
}
|
|
3915
|
-
for (; m <
|
|
3916
|
-
|
|
3917
|
-
|
|
3942
|
+
for (; m < c.length; m += 1)
|
|
3943
|
+
c[m].d(1);
|
|
3944
|
+
c.length = f.length;
|
|
3918
3945
|
}
|
|
3919
3946
|
if (E & /*$_*/
|
|
3920
3947
|
32 && l !== (l = /*$_*/
|
|
3921
|
-
g[5]("otherCategories") + "") && F(
|
|
3948
|
+
g[5]("otherCategories") + "") && F(u, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3922
3949
|
113) {
|
|
3923
|
-
p =
|
|
3950
|
+
p = ge(
|
|
3924
3951
|
/*otherCategories*/
|
|
3925
3952
|
g[4]
|
|
3926
3953
|
);
|
|
3927
3954
|
let m;
|
|
3928
3955
|
for (m = 0; m < p.length; m += 1) {
|
|
3929
|
-
const
|
|
3930
|
-
d[m] ? d[m].p(
|
|
3956
|
+
const v = mt(g, p, m);
|
|
3957
|
+
d[m] ? d[m].p(v, E) : (d[m] = bt(v), d[m].c(), d[m].m(t, null));
|
|
3931
3958
|
}
|
|
3932
3959
|
for (; m < d.length; m += 1)
|
|
3933
3960
|
d[m].d(1);
|
|
@@ -3935,18 +3962,18 @@ function li(e) {
|
|
|
3935
3962
|
}
|
|
3936
3963
|
},
|
|
3937
3964
|
d(g) {
|
|
3938
|
-
g && k(t),
|
|
3965
|
+
g && k(t), qe(c, g), qe(d, g);
|
|
3939
3966
|
}
|
|
3940
3967
|
};
|
|
3941
3968
|
}
|
|
3942
|
-
function
|
|
3969
|
+
function pi(e) {
|
|
3943
3970
|
let t;
|
|
3944
3971
|
return {
|
|
3945
3972
|
c() {
|
|
3946
3973
|
t = B("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
3947
3974
|
},
|
|
3948
3975
|
m(r, n) {
|
|
3949
|
-
|
|
3976
|
+
ee(r, t, n);
|
|
3950
3977
|
},
|
|
3951
3978
|
p: N,
|
|
3952
3979
|
d(r) {
|
|
@@ -3954,18 +3981,18 @@ function fi(e) {
|
|
|
3954
3981
|
}
|
|
3955
3982
|
};
|
|
3956
3983
|
}
|
|
3957
|
-
function
|
|
3958
|
-
let t, r, n, i, o, s,
|
|
3984
|
+
function dt(e) {
|
|
3985
|
+
let t, r, n, i, o, s, a, l = (
|
|
3959
3986
|
/*category*/
|
|
3960
3987
|
e[23].name + ""
|
|
3961
|
-
),
|
|
3988
|
+
), u, h, f, c = (
|
|
3962
3989
|
/*category*/
|
|
3963
3990
|
e[23].games.count + ""
|
|
3964
3991
|
), p, d, g = (
|
|
3965
3992
|
/*$_*/
|
|
3966
3993
|
e[5]("games") + ""
|
|
3967
|
-
), E, m,
|
|
3968
|
-
function
|
|
3994
|
+
), E, m, v, S;
|
|
3995
|
+
function P() {
|
|
3969
3996
|
return (
|
|
3970
3997
|
/*click_handler*/
|
|
3971
3998
|
e[15](
|
|
@@ -3976,25 +4003,25 @@ function pt(e) {
|
|
|
3976
4003
|
}
|
|
3977
4004
|
return {
|
|
3978
4005
|
c() {
|
|
3979
|
-
t = B("div"), r = B("ui-image"), o = U(), s = B("div"),
|
|
4006
|
+
t = B("div"), r = B("ui-image"), o = U(), s = B("div"), a = B("p"), u = G(l), h = U(), f = B("p"), p = G(c), d = U(), E = G(g), ye(r.src, n = /*category*/
|
|
3980
4007
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
3981
4008
|
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
3982
4009
|
(e[0] === /*category*/
|
|
3983
4010
|
e[23].id ? "Active" : ""));
|
|
3984
4011
|
},
|
|
3985
4012
|
m(A, H) {
|
|
3986
|
-
|
|
4013
|
+
ee(A, t, H), x(t, r), x(t, o), x(t, s), x(s, a), x(a, u), x(s, h), x(s, f), x(f, p), x(f, d), x(f, E), v || (S = xt(t, "click", P), v = !0);
|
|
3987
4014
|
},
|
|
3988
4015
|
p(A, H) {
|
|
3989
4016
|
e = A, H & /*topCategories*/
|
|
3990
|
-
8 && !
|
|
4017
|
+
8 && !ye(r.src, n = /*category*/
|
|
3991
4018
|
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
3992
4019
|
8 && i !== (i = /*category*/
|
|
3993
4020
|
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
3994
4021
|
8 && l !== (l = /*category*/
|
|
3995
|
-
e[23].name + "") && F(
|
|
3996
|
-
8 &&
|
|
3997
|
-
e[23].games.count + "") && F(p,
|
|
4022
|
+
e[23].name + "") && F(u, l), H & /*topCategories*/
|
|
4023
|
+
8 && c !== (c = /*category*/
|
|
4024
|
+
e[23].games.count + "") && F(p, c), H & /*$_*/
|
|
3998
4025
|
32 && g !== (g = /*$_*/
|
|
3999
4026
|
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4000
4027
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
@@ -4002,21 +4029,21 @@ function pt(e) {
|
|
|
4002
4029
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
4003
4030
|
},
|
|
4004
4031
|
d(A) {
|
|
4005
|
-
A && k(t),
|
|
4032
|
+
A && k(t), v = !1, S();
|
|
4006
4033
|
}
|
|
4007
4034
|
};
|
|
4008
4035
|
}
|
|
4009
|
-
function
|
|
4010
|
-
let t, r, n, i, o, s,
|
|
4036
|
+
function bt(e) {
|
|
4037
|
+
let t, r, n, i, o, s, a, l = (
|
|
4011
4038
|
/*category*/
|
|
4012
4039
|
e[23].name + ""
|
|
4013
|
-
),
|
|
4040
|
+
), u, h, f, c = (
|
|
4014
4041
|
/*category*/
|
|
4015
4042
|
e[23].games.count + ""
|
|
4016
4043
|
), p, d, g = (
|
|
4017
4044
|
/*$_*/
|
|
4018
4045
|
e[5]("games") + ""
|
|
4019
|
-
), E, m,
|
|
4046
|
+
), E, m, v, S, P;
|
|
4020
4047
|
function A() {
|
|
4021
4048
|
return (
|
|
4022
4049
|
/*click_handler_1*/
|
|
@@ -4028,42 +4055,42 @@ function dt(e) {
|
|
|
4028
4055
|
}
|
|
4029
4056
|
return {
|
|
4030
4057
|
c() {
|
|
4031
|
-
t = B("div"), r = B("ui-image"), o = U(), s = B("div"),
|
|
4058
|
+
t = B("div"), r = B("ui-image"), o = U(), s = B("div"), a = B("p"), u = G(l), h = U(), f = B("p"), p = G(c), d = U(), E = G(g), m = U(), ye(r.src, n = /*category*/
|
|
4032
4059
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4033
|
-
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class",
|
|
4060
|
+
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", v = "Category " + /*activecategory*/
|
|
4034
4061
|
(e[0] === /*category*/
|
|
4035
4062
|
e[23].id ? "Active" : ""));
|
|
4036
4063
|
},
|
|
4037
|
-
m(H,
|
|
4038
|
-
|
|
4064
|
+
m(H, O) {
|
|
4065
|
+
ee(H, t, O), x(t, r), x(t, o), x(t, s), x(s, a), x(a, u), x(s, h), x(s, f), x(f, p), x(f, d), x(f, E), x(t, m), S || (P = xt(t, "click", A), S = !0);
|
|
4039
4066
|
},
|
|
4040
|
-
p(H,
|
|
4041
|
-
e = H,
|
|
4042
|
-
16 && !
|
|
4043
|
-
e[23].icon) && $(r, "src", n),
|
|
4067
|
+
p(H, O) {
|
|
4068
|
+
e = H, O & /*otherCategories*/
|
|
4069
|
+
16 && !ye(r.src, n = /*category*/
|
|
4070
|
+
e[23].icon) && $(r, "src", n), O & /*otherCategories*/
|
|
4044
4071
|
16 && i !== (i = /*category*/
|
|
4045
|
-
e[23].name) && $(r, "alt", i),
|
|
4072
|
+
e[23].name) && $(r, "alt", i), O & /*otherCategories*/
|
|
4046
4073
|
16 && l !== (l = /*category*/
|
|
4047
|
-
e[23].name + "") && F(
|
|
4048
|
-
16 &&
|
|
4049
|
-
e[23].games.count + "") && F(p,
|
|
4074
|
+
e[23].name + "") && F(u, l), O & /*otherCategories*/
|
|
4075
|
+
16 && c !== (c = /*category*/
|
|
4076
|
+
e[23].games.count + "") && F(p, c), O & /*$_*/
|
|
4050
4077
|
32 && g !== (g = /*$_*/
|
|
4051
|
-
e[5]("games") + "") && F(E, g),
|
|
4052
|
-
17 &&
|
|
4078
|
+
e[5]("games") + "") && F(E, g), O & /*activecategory, otherCategories*/
|
|
4079
|
+
17 && v !== (v = "Category " + /*activecategory*/
|
|
4053
4080
|
(e[0] === /*category*/
|
|
4054
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4081
|
+
e[23].id ? "Active" : "")) && L(t, "class", v);
|
|
4055
4082
|
},
|
|
4056
4083
|
d(H) {
|
|
4057
|
-
H && k(t), S = !1,
|
|
4084
|
+
H && k(t), S = !1, P();
|
|
4058
4085
|
}
|
|
4059
4086
|
};
|
|
4060
4087
|
}
|
|
4061
|
-
function
|
|
4088
|
+
function di(e) {
|
|
4062
4089
|
let t;
|
|
4063
4090
|
function r(o, s) {
|
|
4064
4091
|
return (
|
|
4065
4092
|
/*isLoading*/
|
|
4066
|
-
o[2] ?
|
|
4093
|
+
o[2] ? pi : mi
|
|
4067
4094
|
);
|
|
4068
4095
|
}
|
|
4069
4096
|
let n = r(e), i = n(e);
|
|
@@ -4072,7 +4099,7 @@ function ci(e) {
|
|
|
4072
4099
|
t = B("div"), i.c();
|
|
4073
4100
|
},
|
|
4074
4101
|
m(o, s) {
|
|
4075
|
-
|
|
4102
|
+
ee(o, t, s), i.m(t, null), e[17](t);
|
|
4076
4103
|
},
|
|
4077
4104
|
p(o, [s]) {
|
|
4078
4105
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4084,85 +4111,85 @@ function ci(e) {
|
|
|
4084
4111
|
}
|
|
4085
4112
|
};
|
|
4086
4113
|
}
|
|
4087
|
-
function
|
|
4114
|
+
function bi(e, t, r) {
|
|
4088
4115
|
let n;
|
|
4089
|
-
|
|
4090
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory:
|
|
4091
|
-
const
|
|
4092
|
-
let
|
|
4093
|
-
Object.keys(
|
|
4094
|
-
ft(b,
|
|
4116
|
+
qt(e, si, (b) => r(5, n = b));
|
|
4117
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: a = "" } = t, { excludedflags: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d, g = !1;
|
|
4118
|
+
const E = [];
|
|
4119
|
+
let m = [], v = [];
|
|
4120
|
+
Object.keys(gt).forEach((b) => {
|
|
4121
|
+
ft(b, gt[b]);
|
|
4095
4122
|
});
|
|
4096
|
-
const
|
|
4097
|
-
fetch(
|
|
4098
|
-
Object.keys(M).forEach((
|
|
4099
|
-
ft(
|
|
4123
|
+
const S = () => {
|
|
4124
|
+
fetch(f).then((M) => M.json()).then((M) => {
|
|
4125
|
+
Object.keys(M).forEach((ce) => {
|
|
4126
|
+
ft(ce, M[ce]);
|
|
4100
4127
|
});
|
|
4101
4128
|
}).catch((M) => {
|
|
4102
4129
|
console.log(M);
|
|
4103
4130
|
});
|
|
4104
|
-
},
|
|
4105
|
-
r(2,
|
|
4131
|
+
}, P = () => {
|
|
4132
|
+
r(2, g = !0);
|
|
4106
4133
|
const b = new URL(`${i}/v1/casino/groups/${o}`);
|
|
4107
4134
|
b.searchParams.append("language", s), fetch(b).then((M) => M.json()).then((M) => {
|
|
4108
|
-
r(2,
|
|
4109
|
-
const
|
|
4110
|
-
|
|
4111
|
-
const
|
|
4112
|
-
r(3,
|
|
4135
|
+
r(2, g = !1);
|
|
4136
|
+
const ce = l.split(",").map((j) => j.trim());
|
|
4137
|
+
E.push(...M.items);
|
|
4138
|
+
const Qe = E.filter((j) => !ce.some((Qt) => j.flags?.indexOf(Qt) >= 0));
|
|
4139
|
+
r(3, m = Qe.filter((j) => j.isTopCategory === !0)), r(4, v = Qe.filter((j) => j.isTopCategory === !1));
|
|
4113
4140
|
});
|
|
4114
|
-
},
|
|
4141
|
+
}, A = (b) => {
|
|
4115
4142
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4116
|
-
},
|
|
4117
|
-
|
|
4143
|
+
}, H = () => {
|
|
4144
|
+
ai(s);
|
|
4118
4145
|
};
|
|
4119
|
-
|
|
4146
|
+
ir(() => () => {
|
|
4120
4147
|
});
|
|
4121
|
-
const
|
|
4122
|
-
function
|
|
4123
|
-
|
|
4148
|
+
const O = (b) => A(b.id), Wt = (b) => A(b.id);
|
|
4149
|
+
function Zt(b) {
|
|
4150
|
+
Ie[b ? "unshift" : "push"](() => {
|
|
4124
4151
|
p = b, r(1, p);
|
|
4125
4152
|
});
|
|
4126
4153
|
}
|
|
4127
4154
|
return e.$$set = (b) => {
|
|
4128
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0,
|
|
4155
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0, a = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, u = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
|
|
4129
4156
|
}, e.$$.update = () => {
|
|
4130
4157
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4131
|
-
384 && i && o &&
|
|
4132
|
-
8192 &&
|
|
4133
|
-
512 && s &&
|
|
4134
|
-
2050 &&
|
|
4135
|
-
4098 && h && p &&
|
|
4136
|
-
16386 &&
|
|
4158
|
+
384 && i && o && P(), e.$$.dirty & /*translationurl*/
|
|
4159
|
+
8192 && f && S(), e.$$.dirty & /*lang*/
|
|
4160
|
+
512 && s && H(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4161
|
+
2050 && u && p && ui(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4162
|
+
4098 && h && p && hi(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4163
|
+
16386 && c && p && li(p, `${c}.Style`, d);
|
|
4137
4164
|
}, [
|
|
4138
|
-
|
|
4165
|
+
a,
|
|
4139
4166
|
p,
|
|
4140
|
-
|
|
4141
|
-
E,
|
|
4167
|
+
g,
|
|
4142
4168
|
m,
|
|
4169
|
+
v,
|
|
4143
4170
|
n,
|
|
4144
|
-
|
|
4171
|
+
A,
|
|
4145
4172
|
i,
|
|
4146
4173
|
o,
|
|
4147
4174
|
s,
|
|
4148
4175
|
l,
|
|
4149
|
-
|
|
4176
|
+
u,
|
|
4150
4177
|
h,
|
|
4151
|
-
c,
|
|
4152
4178
|
f,
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4179
|
+
c,
|
|
4180
|
+
O,
|
|
4181
|
+
Wt,
|
|
4182
|
+
Zt
|
|
4156
4183
|
];
|
|
4157
4184
|
}
|
|
4158
|
-
class
|
|
4185
|
+
class yi extends dr {
|
|
4159
4186
|
constructor(t) {
|
|
4160
|
-
super(),
|
|
4187
|
+
super(), mr(
|
|
4161
4188
|
this,
|
|
4162
4189
|
t,
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4190
|
+
bi,
|
|
4191
|
+
di,
|
|
4192
|
+
_t,
|
|
4166
4193
|
{
|
|
4167
4194
|
endpoint: 7,
|
|
4168
4195
|
datasource: 8,
|
|
@@ -4174,7 +4201,7 @@ class mi extends mr {
|
|
|
4174
4201
|
translationurl: 13,
|
|
4175
4202
|
mbsource: 14
|
|
4176
4203
|
},
|
|
4177
|
-
|
|
4204
|
+
gi
|
|
4178
4205
|
);
|
|
4179
4206
|
}
|
|
4180
4207
|
get endpoint() {
|
|
@@ -4232,7 +4259,7 @@ class mi extends mr {
|
|
|
4232
4259
|
this.$$set({ mbsource: t }), I();
|
|
4233
4260
|
}
|
|
4234
4261
|
}
|
|
4235
|
-
|
|
4262
|
+
pr(yi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4236
4263
|
export {
|
|
4237
|
-
|
|
4264
|
+
yi as C
|
|
4238
4265
|
};
|