@everymatrix/casino-categories 1.56.0 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-BbyoIeMS.js → CasinoCategories-CK42zzTY.js} +528 -503
- package/components/CasinoCategories-D_VBai82.cjs +16 -0
- package/components/{CasinoCategories-DnYec2h6.js → CasinoCategories-m2CgVQem.js} +726 -701
- 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-DHswuew3.cjs +0 -3
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var er = Object.defineProperty, tr = Object.defineProperties;
|
|
2
|
+
var rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
nr.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
ir.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var L = (e, t, r) =>
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, Ke = (e, t) => tr(e, rr(t));
|
|
13
|
+
var L = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
i(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (h) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(h));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
i(a);
|
|
26
26
|
}
|
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(
|
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function tt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Tt);
|
|
40
40
|
}
|
|
41
41
|
function Ve(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ht(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let le;
|
|
48
48
|
function de(e, t) {
|
|
49
49
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function sr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ct(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,21 +60,22 @@ function Tt(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function or(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
65
65
|
}
|
|
66
66
|
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function ar(e, t, r) {
|
|
70
|
+
const n = ur(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = O("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
if (!e)
|
|
76
|
+
function ur(e) {
|
|
77
|
+
if (!e)
|
|
78
|
+
return document;
|
|
78
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
80
|
return t && /** @type {ShadowRoot} */
|
|
80
81
|
t.host ? (
|
|
@@ -82,7 +83,7 @@ function sr(e) {
|
|
|
82
83
|
t
|
|
83
84
|
) : e.ownerDocument;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function hr(e, t) {
|
|
86
87
|
return v(
|
|
87
88
|
/** @type {Document} */
|
|
88
89
|
e.head || e,
|
|
@@ -95,7 +96,7 @@ function Y(e, t, r) {
|
|
|
95
96
|
function j(e) {
|
|
96
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function rt(e, t) {
|
|
99
100
|
for (let r = 0; r < e.length; r += 1)
|
|
100
101
|
e[r] && e[r].d(t);
|
|
101
102
|
}
|
|
@@ -108,20 +109,20 @@ function U(e) {
|
|
|
108
109
|
function R() {
|
|
109
110
|
return U(" ");
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function At(e, t, r, n) {
|
|
112
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
114
|
}
|
|
114
115
|
function A(e, t, r) {
|
|
115
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function lr(e) {
|
|
118
119
|
return Array.from(e.childNodes);
|
|
119
120
|
}
|
|
120
121
|
function D(e, t) {
|
|
121
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
123
|
t);
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
+
function cr(e) {
|
|
125
126
|
const t = {};
|
|
126
127
|
return e.childNodes.forEach(
|
|
127
128
|
/** @param {Element} node */
|
|
@@ -134,24 +135,25 @@ let ie;
|
|
|
134
135
|
function ne(e) {
|
|
135
136
|
ie = e;
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!ie)
|
|
138
|
+
function fr() {
|
|
139
|
+
if (!ie)
|
|
140
|
+
throw new Error("Function called outside component initialization");
|
|
139
141
|
return ie;
|
|
140
142
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
+
function gr(e) {
|
|
144
|
+
fr().$$.on_mount.push(e);
|
|
143
145
|
}
|
|
144
146
|
const z = [], Ne = [];
|
|
145
147
|
let W = [];
|
|
146
|
-
const
|
|
148
|
+
const nt = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
147
149
|
let Le = !1;
|
|
148
|
-
function
|
|
149
|
-
Le || (Le = !0,
|
|
150
|
+
function pr() {
|
|
151
|
+
Le || (Le = !0, mr.then(M));
|
|
150
152
|
}
|
|
151
153
|
function Ie(e) {
|
|
152
154
|
W.push(e);
|
|
153
155
|
}
|
|
154
|
-
const
|
|
156
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
155
157
|
let V = 0;
|
|
156
158
|
function M() {
|
|
157
159
|
if (V !== 0)
|
|
@@ -161,65 +163,66 @@ function M() {
|
|
|
161
163
|
try {
|
|
162
164
|
for (; V < z.length; ) {
|
|
163
165
|
const t = z[V];
|
|
164
|
-
V++, ne(t),
|
|
166
|
+
V++, ne(t), dr(t.$$);
|
|
165
167
|
}
|
|
166
168
|
} catch (t) {
|
|
167
169
|
throw z.length = 0, V = 0, t;
|
|
168
170
|
}
|
|
169
|
-
for (ne(null), z.length = 0, V = 0; Ne.length; )
|
|
171
|
+
for (ne(null), z.length = 0, V = 0; Ne.length; )
|
|
172
|
+
Ne.pop()();
|
|
170
173
|
for (let t = 0; t < W.length; t += 1) {
|
|
171
174
|
const r = W[t];
|
|
172
|
-
|
|
175
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
173
176
|
}
|
|
174
177
|
W.length = 0;
|
|
175
178
|
} while (z.length);
|
|
176
|
-
for (;
|
|
177
|
-
|
|
178
|
-
Le = !1,
|
|
179
|
+
for (; nt.length; )
|
|
180
|
+
nt.pop()();
|
|
181
|
+
Le = !1, Ce.clear(), ne(e);
|
|
179
182
|
}
|
|
180
|
-
function
|
|
183
|
+
function dr(e) {
|
|
181
184
|
if (e.fragment !== null) {
|
|
182
185
|
e.update(), ae(e.before_update);
|
|
183
186
|
const t = e.dirty;
|
|
184
187
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
|
-
function
|
|
190
|
+
function br(e) {
|
|
188
191
|
const t = [], r = [];
|
|
189
192
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
190
193
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
e && e.i && (
|
|
194
|
+
const yr = /* @__PURE__ */ new Set();
|
|
195
|
+
function xr(e, t) {
|
|
196
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
194
197
|
}
|
|
195
|
-
function
|
|
198
|
+
function ce(e) {
|
|
196
199
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
197
200
|
}
|
|
198
|
-
function
|
|
201
|
+
function Er(e, t, r) {
|
|
199
202
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
203
|
n && n.m(t, r), Ie(() => {
|
|
201
|
-
const
|
|
202
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
204
|
+
const s = e.$$.on_mount.map(Tt).filter(Ve);
|
|
205
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
203
206
|
}), i.forEach(Ie);
|
|
204
207
|
}
|
|
205
|
-
function
|
|
208
|
+
function _r(e, t) {
|
|
206
209
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
210
|
+
r.fragment !== null && (br(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
211
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (z.push(e),
|
|
212
|
+
function vr(e, t) {
|
|
213
|
+
e.$$.dirty[0] === -1 && (z.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
214
|
}
|
|
212
|
-
function
|
|
215
|
+
function Tr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
213
216
|
const h = ie;
|
|
214
217
|
ne(e);
|
|
215
218
|
const a = e.$$ = {
|
|
216
219
|
fragment: null,
|
|
217
220
|
ctx: [],
|
|
218
221
|
// state
|
|
219
|
-
props:
|
|
222
|
+
props: s,
|
|
220
223
|
update: I,
|
|
221
224
|
not_equal: i,
|
|
222
|
-
bound:
|
|
225
|
+
bound: tt(),
|
|
223
226
|
// lifecycle
|
|
224
227
|
on_mount: [],
|
|
225
228
|
on_destroy: [],
|
|
@@ -228,28 +231,28 @@ function _r(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
228
231
|
after_update: [],
|
|
229
232
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
230
233
|
// everything else
|
|
231
|
-
callbacks:
|
|
234
|
+
callbacks: tt(),
|
|
232
235
|
dirty: u,
|
|
233
236
|
skip_bound: !1,
|
|
234
237
|
root: t.target || h.$$.root
|
|
235
238
|
};
|
|
236
|
-
|
|
239
|
+
o && o(a.root);
|
|
237
240
|
let l = !1;
|
|
238
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
|
239
|
-
const d = p.length ? p[0] :
|
|
240
|
-
return a.ctx && i(a.ctx[
|
|
241
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
242
|
+
const d = p.length ? p[0] : c;
|
|
243
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = d) && (!a.skip_bound && a.bound[f] && a.bound[f](d), l && vr(e, f)), c;
|
|
241
244
|
}) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
242
245
|
if (t.hydrate) {
|
|
243
|
-
const
|
|
244
|
-
a.fragment && a.fragment.l(
|
|
246
|
+
const f = lr(t.target);
|
|
247
|
+
a.fragment && a.fragment.l(f), f.forEach(j);
|
|
245
248
|
} else
|
|
246
249
|
a.fragment && a.fragment.c();
|
|
247
|
-
t.intro &&
|
|
250
|
+
t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), M();
|
|
248
251
|
}
|
|
249
252
|
ne(h);
|
|
250
253
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
254
|
+
let Bt;
|
|
255
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
253
256
|
constructor(t, r, n) {
|
|
254
257
|
super();
|
|
255
258
|
/** The Svelte component constructor */
|
|
@@ -286,42 +289,42 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
286
289
|
}
|
|
287
290
|
}
|
|
288
291
|
connectedCallback() {
|
|
289
|
-
return
|
|
292
|
+
return et(this, null, function* () {
|
|
290
293
|
if (this.$$cn = !0, !this.$$c) {
|
|
291
|
-
let t = function(
|
|
294
|
+
let t = function(s) {
|
|
292
295
|
return () => {
|
|
293
|
-
let
|
|
296
|
+
let o;
|
|
294
297
|
return {
|
|
295
298
|
c: function() {
|
|
296
|
-
|
|
299
|
+
o = O("slot"), s !== "default" && A(o, "name", s);
|
|
297
300
|
},
|
|
298
301
|
/**
|
|
299
302
|
* @param {HTMLElement} target
|
|
300
303
|
* @param {HTMLElement} [anchor]
|
|
301
304
|
*/
|
|
302
305
|
m: function(a, l) {
|
|
303
|
-
Y(a,
|
|
306
|
+
Y(a, o, l);
|
|
304
307
|
},
|
|
305
308
|
d: function(a) {
|
|
306
|
-
a && j(
|
|
309
|
+
a && j(o);
|
|
307
310
|
}
|
|
308
311
|
};
|
|
309
312
|
};
|
|
310
313
|
};
|
|
311
314
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
315
|
return;
|
|
313
|
-
const r = {}, n =
|
|
314
|
-
for (const
|
|
315
|
-
|
|
316
|
-
for (const
|
|
317
|
-
const
|
|
318
|
-
|
|
316
|
+
const r = {}, n = cr(this);
|
|
317
|
+
for (const s of this.$$s)
|
|
318
|
+
s in n && (r[s] = [t(s)]);
|
|
319
|
+
for (const s of this.attributes) {
|
|
320
|
+
const o = this.$$g_p(s.name);
|
|
321
|
+
o in this.$$d || (this.$$d[o] = ge(o, s.value, this.$$p_d, "toProp"));
|
|
319
322
|
}
|
|
320
|
-
for (const
|
|
321
|
-
!(
|
|
323
|
+
for (const s in this.$$p_d)
|
|
324
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
322
325
|
this.$$c = new this.$$ctor({
|
|
323
326
|
target: this.shadowRoot || this,
|
|
324
|
-
props:
|
|
327
|
+
props: Ke(Ye({}, this.$$d), {
|
|
325
328
|
$$slots: r,
|
|
326
329
|
$$scope: {
|
|
327
330
|
ctx: []
|
|
@@ -330,23 +333,23 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
330
333
|
});
|
|
331
334
|
const i = () => {
|
|
332
335
|
this.$$r = !0;
|
|
333
|
-
for (const
|
|
334
|
-
if (this.$$d[
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
this.$$d[
|
|
336
|
+
for (const s in this.$$p_d)
|
|
337
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
338
|
+
const o = ge(
|
|
339
|
+
s,
|
|
340
|
+
this.$$d[s],
|
|
338
341
|
this.$$p_d,
|
|
339
342
|
"toAttribute"
|
|
340
343
|
);
|
|
341
|
-
|
|
344
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
342
345
|
}
|
|
343
346
|
this.$$r = !1;
|
|
344
347
|
};
|
|
345
348
|
this.$$c.$$.after_update.push(i), i();
|
|
346
|
-
for (const
|
|
347
|
-
for (const
|
|
348
|
-
const u = this.$$c.$on(
|
|
349
|
-
this.$$l_u.set(
|
|
349
|
+
for (const s in this.$$l)
|
|
350
|
+
for (const o of this.$$l[s]) {
|
|
351
|
+
const u = this.$$c.$on(s, o);
|
|
352
|
+
this.$$l_u.set(o, u);
|
|
350
353
|
}
|
|
351
354
|
this.$$l = {};
|
|
352
355
|
}
|
|
@@ -370,8 +373,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
370
373
|
}
|
|
371
374
|
});
|
|
372
375
|
function ge(e, t, r, n) {
|
|
373
|
-
var
|
|
374
|
-
const i = (
|
|
376
|
+
var s;
|
|
377
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
375
378
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
376
379
|
return t;
|
|
377
380
|
if (n === "toAttribute")
|
|
@@ -399,8 +402,8 @@ function ge(e, t, r, n) {
|
|
|
399
402
|
return t;
|
|
400
403
|
}
|
|
401
404
|
}
|
|
402
|
-
function
|
|
403
|
-
let
|
|
405
|
+
function Hr(e, t, r, n, i, s) {
|
|
406
|
+
let o = class extends Bt {
|
|
404
407
|
constructor() {
|
|
405
408
|
super(e, r, i), this.$$p_d = t;
|
|
406
409
|
}
|
|
@@ -411,7 +414,7 @@ function vr(e, t, r, n, i, o) {
|
|
|
411
414
|
}
|
|
412
415
|
};
|
|
413
416
|
return Object.keys(t).forEach((u) => {
|
|
414
|
-
Object.defineProperty(
|
|
417
|
+
Object.defineProperty(o.prototype, u, {
|
|
415
418
|
get() {
|
|
416
419
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
417
420
|
},
|
|
@@ -421,16 +424,16 @@ function vr(e, t, r, n, i, o) {
|
|
|
421
424
|
}
|
|
422
425
|
});
|
|
423
426
|
}), n.forEach((u) => {
|
|
424
|
-
Object.defineProperty(
|
|
427
|
+
Object.defineProperty(o.prototype, u, {
|
|
425
428
|
get() {
|
|
426
429
|
var h;
|
|
427
430
|
return (h = this.$$c) == null ? void 0 : h[u];
|
|
428
431
|
}
|
|
429
432
|
});
|
|
430
433
|
}), e.element = /** @type {any} */
|
|
431
|
-
|
|
434
|
+
o, o;
|
|
432
435
|
}
|
|
433
|
-
class
|
|
436
|
+
class Cr {
|
|
434
437
|
constructor() {
|
|
435
438
|
/**
|
|
436
439
|
* ### PRIVATE API
|
|
@@ -451,7 +454,7 @@ class Tr {
|
|
|
451
454
|
}
|
|
452
455
|
/** @returns {void} */
|
|
453
456
|
$destroy() {
|
|
454
|
-
|
|
457
|
+
_r(this, 1), this.$destroy = I;
|
|
455
458
|
}
|
|
456
459
|
/**
|
|
457
460
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -473,22 +476,22 @@ class Tr {
|
|
|
473
476
|
* @returns {void}
|
|
474
477
|
*/
|
|
475
478
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
479
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
480
|
}
|
|
478
481
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
482
|
+
const Ar = "4";
|
|
483
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
481
484
|
const X = [];
|
|
482
|
-
function
|
|
485
|
+
function Br(e, t) {
|
|
483
486
|
return {
|
|
484
|
-
subscribe:
|
|
487
|
+
subscribe: xe(e, t).subscribe
|
|
485
488
|
};
|
|
486
489
|
}
|
|
487
|
-
function
|
|
490
|
+
function xe(e, t = I) {
|
|
488
491
|
let r;
|
|
489
492
|
const n = /* @__PURE__ */ new Set();
|
|
490
493
|
function i(u) {
|
|
491
|
-
if (
|
|
494
|
+
if (Ht(e, u) && (e = u, r)) {
|
|
492
495
|
const h = !X.length;
|
|
493
496
|
for (const a of n)
|
|
494
497
|
a[1](), X.push(a, e);
|
|
@@ -499,112 +502,112 @@ function Ee(e, t = I) {
|
|
|
499
502
|
}
|
|
500
503
|
}
|
|
501
504
|
}
|
|
502
|
-
function
|
|
505
|
+
function s(u) {
|
|
503
506
|
i(u(e));
|
|
504
507
|
}
|
|
505
|
-
function
|
|
508
|
+
function o(u, h = I) {
|
|
506
509
|
const a = [u, h];
|
|
507
|
-
return n.add(a), n.size === 1 && (r = t(i,
|
|
510
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || I), u(e), () => {
|
|
508
511
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
509
512
|
};
|
|
510
513
|
}
|
|
511
|
-
return { set: i, update:
|
|
514
|
+
return { set: i, update: s, subscribe: o };
|
|
512
515
|
}
|
|
513
516
|
function K(e, t, r) {
|
|
514
517
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
515
518
|
if (!i.every(Boolean))
|
|
516
519
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
517
|
-
const
|
|
518
|
-
return
|
|
520
|
+
const s = t.length < 2;
|
|
521
|
+
return Br(r, (o, u) => {
|
|
519
522
|
let h = !1;
|
|
520
523
|
const a = [];
|
|
521
|
-
let l = 0,
|
|
522
|
-
const
|
|
524
|
+
let l = 0, f = I;
|
|
525
|
+
const c = () => {
|
|
523
526
|
if (l)
|
|
524
527
|
return;
|
|
525
|
-
|
|
526
|
-
const d = t(n ? a[0] : a,
|
|
527
|
-
|
|
528
|
+
f();
|
|
529
|
+
const d = t(n ? a[0] : a, o, u);
|
|
530
|
+
s ? o(d) : f = Ve(d) ? d : I;
|
|
528
531
|
}, p = i.map(
|
|
529
|
-
(d, g) =>
|
|
532
|
+
(d, g) => Ct(
|
|
530
533
|
d,
|
|
531
534
|
(_) => {
|
|
532
|
-
a[g] = _, l &= ~(1 << g), h &&
|
|
535
|
+
a[g] = _, l &= ~(1 << g), h && c();
|
|
533
536
|
},
|
|
534
537
|
() => {
|
|
535
538
|
l |= 1 << g;
|
|
536
539
|
}
|
|
537
540
|
)
|
|
538
541
|
);
|
|
539
|
-
return h = !0,
|
|
540
|
-
ae(p),
|
|
542
|
+
return h = !0, c(), function() {
|
|
543
|
+
ae(p), f(), h = !1;
|
|
541
544
|
};
|
|
542
545
|
});
|
|
543
546
|
}
|
|
544
|
-
function
|
|
547
|
+
function Sr(e) {
|
|
545
548
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
546
549
|
}
|
|
547
|
-
var
|
|
548
|
-
return
|
|
550
|
+
var Or = function(t) {
|
|
551
|
+
return wr(t) && !Pr(t);
|
|
549
552
|
};
|
|
550
|
-
function
|
|
553
|
+
function wr(e) {
|
|
551
554
|
return !!e && typeof e == "object";
|
|
552
555
|
}
|
|
553
|
-
function
|
|
556
|
+
function Pr(e) {
|
|
554
557
|
var t = Object.prototype.toString.call(e);
|
|
555
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
558
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
|
|
556
559
|
}
|
|
557
|
-
var
|
|
558
|
-
function
|
|
559
|
-
return e.$$typeof ===
|
|
560
|
+
var Nr = typeof Symbol == "function" && Symbol.for, Lr = Nr ? Symbol.for("react.element") : 60103;
|
|
561
|
+
function Ir(e) {
|
|
562
|
+
return e.$$typeof === Lr;
|
|
560
563
|
}
|
|
561
|
-
function
|
|
564
|
+
function Mr(e) {
|
|
562
565
|
return Array.isArray(e) ? [] : {};
|
|
563
566
|
}
|
|
564
|
-
function
|
|
565
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Z(
|
|
567
|
+
function se(e, t) {
|
|
568
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Mr(e), e, t) : e;
|
|
566
569
|
}
|
|
567
|
-
function
|
|
570
|
+
function $r(e, t, r) {
|
|
568
571
|
return e.concat(t).map(function(n) {
|
|
569
|
-
return
|
|
572
|
+
return se(n, r);
|
|
570
573
|
});
|
|
571
574
|
}
|
|
572
|
-
function
|
|
575
|
+
function Rr(e, t) {
|
|
573
576
|
if (!t.customMerge)
|
|
574
577
|
return Z;
|
|
575
578
|
var r = t.customMerge(e);
|
|
576
579
|
return typeof r == "function" ? r : Z;
|
|
577
580
|
}
|
|
578
|
-
function
|
|
581
|
+
function Ur(e) {
|
|
579
582
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
580
583
|
return Object.propertyIsEnumerable.call(e, t);
|
|
581
584
|
}) : [];
|
|
582
585
|
}
|
|
583
|
-
function
|
|
584
|
-
return Object.keys(e).concat(
|
|
586
|
+
function it(e) {
|
|
587
|
+
return Object.keys(e).concat(Ur(e));
|
|
585
588
|
}
|
|
586
|
-
function
|
|
589
|
+
function St(e, t) {
|
|
587
590
|
try {
|
|
588
591
|
return t in e;
|
|
589
592
|
} catch (r) {
|
|
590
593
|
return !1;
|
|
591
594
|
}
|
|
592
595
|
}
|
|
593
|
-
function
|
|
594
|
-
return
|
|
596
|
+
function Gr(e, t) {
|
|
597
|
+
return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
595
598
|
}
|
|
596
|
-
function
|
|
599
|
+
function Dr(e, t, r) {
|
|
597
600
|
var n = {};
|
|
598
|
-
return r.isMergeableObject(e) &&
|
|
599
|
-
n[i] =
|
|
600
|
-
}),
|
|
601
|
-
|
|
601
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
602
|
+
n[i] = se(e[i], r);
|
|
603
|
+
}), it(t).forEach(function(i) {
|
|
604
|
+
Gr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
602
605
|
}), n;
|
|
603
606
|
}
|
|
604
607
|
function Z(e, t, r) {
|
|
605
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
606
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
607
|
-
return
|
|
608
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = se;
|
|
609
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
610
|
+
return s ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : se(t, r);
|
|
608
611
|
}
|
|
609
612
|
Z.all = function(t, r) {
|
|
610
613
|
if (!Array.isArray(t))
|
|
@@ -613,16 +616,31 @@ Z.all = function(t, r) {
|
|
|
613
616
|
return Z(n, i, r);
|
|
614
617
|
}, {});
|
|
615
618
|
};
|
|
616
|
-
var
|
|
617
|
-
const
|
|
619
|
+
var Fr = Z, jr = Fr;
|
|
620
|
+
const kr = /* @__PURE__ */ Sr(jr);
|
|
621
|
+
/*! *****************************************************************************
|
|
622
|
+
Copyright (c) Microsoft Corporation.
|
|
623
|
+
|
|
624
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
625
|
+
purpose with or without fee is hereby granted.
|
|
626
|
+
|
|
627
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
628
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
629
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
630
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
631
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
632
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
633
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
634
|
+
***************************************************************************** */
|
|
618
635
|
var Me = function(e, t) {
|
|
619
636
|
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
620
637
|
r.__proto__ = n;
|
|
621
638
|
} || function(r, n) {
|
|
622
|
-
for (var i in n)
|
|
639
|
+
for (var i in n)
|
|
640
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
623
641
|
}, Me(e, t);
|
|
624
642
|
};
|
|
625
|
-
function
|
|
643
|
+
function Ee(e, t) {
|
|
626
644
|
if (typeof t != "function" && t !== null)
|
|
627
645
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
628
646
|
Me(e, t);
|
|
@@ -631,76 +649,81 @@ function xe(e, t) {
|
|
|
631
649
|
}
|
|
632
650
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
633
651
|
}
|
|
634
|
-
var
|
|
635
|
-
return
|
|
652
|
+
var E = function() {
|
|
653
|
+
return E = Object.assign || function(t) {
|
|
636
654
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
637
655
|
r = arguments[n];
|
|
638
|
-
for (var
|
|
656
|
+
for (var s in r)
|
|
657
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
639
658
|
}
|
|
640
659
|
return t;
|
|
641
|
-
},
|
|
660
|
+
}, E.apply(this, arguments);
|
|
642
661
|
};
|
|
643
|
-
function
|
|
662
|
+
function Vr(e, t) {
|
|
644
663
|
var r = {};
|
|
645
|
-
for (var n in e)
|
|
664
|
+
for (var n in e)
|
|
665
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
646
666
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
647
667
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
648
668
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
649
669
|
return r;
|
|
650
670
|
}
|
|
651
671
|
function Ae(e, t, r) {
|
|
652
|
-
if (
|
|
653
|
-
(
|
|
654
|
-
|
|
672
|
+
if (arguments.length === 2)
|
|
673
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
674
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
675
|
+
return e.concat(s || t);
|
|
655
676
|
}
|
|
656
|
-
function
|
|
657
|
-
var r = t && t.cache ? t.cache :
|
|
677
|
+
function Be(e, t) {
|
|
678
|
+
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : zr;
|
|
658
679
|
return i(e, {
|
|
659
680
|
cache: r,
|
|
660
681
|
serializer: n
|
|
661
682
|
});
|
|
662
683
|
}
|
|
663
|
-
function
|
|
684
|
+
function Xr(e) {
|
|
664
685
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
686
|
}
|
|
666
|
-
function
|
|
667
|
-
var i =
|
|
668
|
-
return typeof
|
|
687
|
+
function Ot(e, t, r, n) {
|
|
688
|
+
var i = Xr(n) ? n : r(n), s = t.get(i);
|
|
689
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
669
690
|
}
|
|
670
|
-
function
|
|
671
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
672
|
-
return typeof
|
|
691
|
+
function wt(e, t, r) {
|
|
692
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
693
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
673
694
|
}
|
|
674
|
-
function
|
|
695
|
+
function Xe(e, t, r, n, i) {
|
|
675
696
|
return r.bind(t, e, n, i);
|
|
676
697
|
}
|
|
677
|
-
function Xr(e, t) {
|
|
678
|
-
var r = e.length === 1 ? Vr : St;
|
|
679
|
-
return Bt(e, this, r, t.cache.create(), t.serializer);
|
|
680
|
-
}
|
|
681
698
|
function zr(e, t) {
|
|
682
|
-
|
|
699
|
+
var r = e.length === 1 ? Ot : wt;
|
|
700
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
683
701
|
}
|
|
684
|
-
|
|
702
|
+
function Wr(e, t) {
|
|
703
|
+
return Xe(e, this, wt, t.cache.create(), t.serializer);
|
|
704
|
+
}
|
|
705
|
+
function Zr(e, t) {
|
|
706
|
+
return Xe(e, this, Ot, t.cache.create(), t.serializer);
|
|
707
|
+
}
|
|
708
|
+
var Qr = function() {
|
|
685
709
|
return JSON.stringify(arguments);
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}()
|
|
698
|
-
), Qr = {
|
|
710
|
+
};
|
|
711
|
+
function ze() {
|
|
712
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
713
|
+
}
|
|
714
|
+
ze.prototype.get = function(e) {
|
|
715
|
+
return this.cache[e];
|
|
716
|
+
};
|
|
717
|
+
ze.prototype.set = function(e, t) {
|
|
718
|
+
this.cache[e] = t;
|
|
719
|
+
};
|
|
720
|
+
var Jr = {
|
|
699
721
|
create: function() {
|
|
700
|
-
return new
|
|
722
|
+
return new ze();
|
|
701
723
|
}
|
|
702
|
-
},
|
|
703
|
-
variadic:
|
|
724
|
+
}, Se = {
|
|
725
|
+
variadic: Wr,
|
|
726
|
+
monadic: Zr
|
|
704
727
|
}, y;
|
|
705
728
|
(function(e) {
|
|
706
729
|
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";
|
|
@@ -713,43 +736,43 @@ var Q;
|
|
|
713
736
|
(function(e) {
|
|
714
737
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
715
738
|
})(Q || (Q = {}));
|
|
716
|
-
function
|
|
739
|
+
function st(e) {
|
|
717
740
|
return e.type === T.literal;
|
|
718
741
|
}
|
|
719
|
-
function
|
|
742
|
+
function qr(e) {
|
|
720
743
|
return e.type === T.argument;
|
|
721
744
|
}
|
|
722
|
-
function
|
|
745
|
+
function Pt(e) {
|
|
723
746
|
return e.type === T.number;
|
|
724
747
|
}
|
|
725
|
-
function
|
|
748
|
+
function Nt(e) {
|
|
726
749
|
return e.type === T.date;
|
|
727
750
|
}
|
|
728
|
-
function
|
|
751
|
+
function Lt(e) {
|
|
729
752
|
return e.type === T.time;
|
|
730
753
|
}
|
|
731
|
-
function
|
|
754
|
+
function It(e) {
|
|
732
755
|
return e.type === T.select;
|
|
733
756
|
}
|
|
734
|
-
function
|
|
757
|
+
function Mt(e) {
|
|
735
758
|
return e.type === T.plural;
|
|
736
759
|
}
|
|
737
|
-
function
|
|
760
|
+
function Yr(e) {
|
|
738
761
|
return e.type === T.pound;
|
|
739
762
|
}
|
|
740
|
-
function
|
|
763
|
+
function $t(e) {
|
|
741
764
|
return e.type === T.tag;
|
|
742
765
|
}
|
|
743
|
-
function
|
|
766
|
+
function Rt(e) {
|
|
744
767
|
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
745
768
|
}
|
|
746
769
|
function $e(e) {
|
|
747
770
|
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
748
771
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
772
|
+
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
|
|
773
|
+
function en(e) {
|
|
751
774
|
var t = {};
|
|
752
|
-
return e.replace(
|
|
775
|
+
return e.replace(Kr, function(r) {
|
|
753
776
|
var n = r.length;
|
|
754
777
|
switch (r[0]) {
|
|
755
778
|
case "G":
|
|
@@ -838,36 +861,36 @@ function Kr(e) {
|
|
|
838
861
|
return "";
|
|
839
862
|
}), t;
|
|
840
863
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
864
|
+
var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
865
|
+
function rn(e) {
|
|
843
866
|
if (e.length === 0)
|
|
844
867
|
throw new Error("Number skeleton cannot be empty");
|
|
845
|
-
for (var t = e.split(
|
|
846
|
-
return
|
|
868
|
+
for (var t = e.split(tn).filter(function(c) {
|
|
869
|
+
return c.length > 0;
|
|
847
870
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
848
|
-
var
|
|
849
|
-
if (
|
|
871
|
+
var s = i[n], o = s.split("/");
|
|
872
|
+
if (o.length === 0)
|
|
850
873
|
throw new Error("Invalid number skeleton");
|
|
851
|
-
for (var u =
|
|
852
|
-
var
|
|
853
|
-
if (
|
|
874
|
+
for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
|
|
875
|
+
var f = l[a];
|
|
876
|
+
if (f.length === 0)
|
|
854
877
|
throw new Error("Invalid number skeleton");
|
|
855
878
|
}
|
|
856
879
|
r.push({ stem: u, options: h });
|
|
857
880
|
}
|
|
858
881
|
return r;
|
|
859
882
|
}
|
|
860
|
-
function
|
|
883
|
+
function nn(e) {
|
|
861
884
|
return e.replace(/^(.*?)-/, "");
|
|
862
885
|
}
|
|
863
|
-
var
|
|
864
|
-
function
|
|
886
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
|
|
887
|
+
function at(e) {
|
|
865
888
|
var t = {};
|
|
866
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
889
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
|
|
867
890
|
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)), "";
|
|
868
891
|
}), t;
|
|
869
892
|
}
|
|
870
|
-
function
|
|
893
|
+
function Ft(e) {
|
|
871
894
|
switch (e) {
|
|
872
895
|
case "sign-auto":
|
|
873
896
|
return {
|
|
@@ -915,17 +938,17 @@ function on(e) {
|
|
|
915
938
|
notation: "scientific"
|
|
916
939
|
}, e = e.slice(1)), t) {
|
|
917
940
|
var r = e.slice(0, 2);
|
|
918
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
941
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
|
|
919
942
|
throw new Error("Malformed concise eng/scientific notation");
|
|
920
943
|
t.minimumIntegerDigits = e.length;
|
|
921
944
|
}
|
|
922
945
|
return t;
|
|
923
946
|
}
|
|
924
|
-
function
|
|
925
|
-
var t = {}, r =
|
|
947
|
+
function ut(e) {
|
|
948
|
+
var t = {}, r = Ft(e);
|
|
926
949
|
return r || t;
|
|
927
950
|
}
|
|
928
|
-
function
|
|
951
|
+
function an(e) {
|
|
929
952
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
930
953
|
var i = n[r];
|
|
931
954
|
switch (i.stem) {
|
|
@@ -949,7 +972,7 @@ function sn(e) {
|
|
|
949
972
|
continue;
|
|
950
973
|
case "measure-unit":
|
|
951
974
|
case "unit":
|
|
952
|
-
t.style = "unit", t.unit =
|
|
975
|
+
t.style = "unit", t.unit = nn(i.options[0]);
|
|
953
976
|
continue;
|
|
954
977
|
case "compact-short":
|
|
955
978
|
case "K":
|
|
@@ -960,13 +983,13 @@ function sn(e) {
|
|
|
960
983
|
t.notation = "compact", t.compactDisplay = "long";
|
|
961
984
|
continue;
|
|
962
985
|
case "scientific":
|
|
963
|
-
t =
|
|
964
|
-
return
|
|
986
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
987
|
+
return E(E({}, h), ut(a));
|
|
965
988
|
}, {}));
|
|
966
989
|
continue;
|
|
967
990
|
case "engineering":
|
|
968
|
-
t =
|
|
969
|
-
return
|
|
991
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
992
|
+
return E(E({}, h), ut(a));
|
|
970
993
|
}, {}));
|
|
971
994
|
continue;
|
|
972
995
|
case "notation-simple":
|
|
@@ -1011,11 +1034,11 @@ function sn(e) {
|
|
|
1011
1034
|
case "integer-width":
|
|
1012
1035
|
if (i.options.length > 1)
|
|
1013
1036
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1014
|
-
i.options[0].replace(
|
|
1037
|
+
i.options[0].replace(sn, function(h, a, l, f, c, p) {
|
|
1015
1038
|
if (a)
|
|
1016
1039
|
t.minimumIntegerDigits = l.length;
|
|
1017
1040
|
else {
|
|
1018
|
-
if (
|
|
1041
|
+
if (f && c)
|
|
1019
1042
|
throw new Error("We currently do not support maximum integer digits");
|
|
1020
1043
|
if (p)
|
|
1021
1044
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1024,32 +1047,32 @@ function sn(e) {
|
|
|
1024
1047
|
});
|
|
1025
1048
|
continue;
|
|
1026
1049
|
}
|
|
1027
|
-
if (
|
|
1050
|
+
if (Dt.test(i.stem)) {
|
|
1028
1051
|
t.minimumIntegerDigits = i.stem.length;
|
|
1029
1052
|
continue;
|
|
1030
1053
|
}
|
|
1031
|
-
if (
|
|
1054
|
+
if (ot.test(i.stem)) {
|
|
1032
1055
|
if (i.options.length > 1)
|
|
1033
1056
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1034
|
-
i.stem.replace(
|
|
1035
|
-
return l === "*" ? t.minimumFractionDigits = a.length :
|
|
1057
|
+
i.stem.replace(ot, function(h, a, l, f, c, p) {
|
|
1058
|
+
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1036
1059
|
});
|
|
1037
|
-
var
|
|
1038
|
-
|
|
1060
|
+
var s = i.options[0];
|
|
1061
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
|
|
1039
1062
|
continue;
|
|
1040
1063
|
}
|
|
1041
|
-
if (
|
|
1042
|
-
t =
|
|
1064
|
+
if (Gt.test(i.stem)) {
|
|
1065
|
+
t = E(E({}, t), at(i.stem));
|
|
1043
1066
|
continue;
|
|
1044
1067
|
}
|
|
1045
|
-
var
|
|
1046
|
-
|
|
1068
|
+
var o = Ft(i.stem);
|
|
1069
|
+
o && (t = E(E({}, t), o));
|
|
1047
1070
|
var u = on(i.stem);
|
|
1048
|
-
u && (t =
|
|
1071
|
+
u && (t = E(E({}, t), u));
|
|
1049
1072
|
}
|
|
1050
1073
|
return t;
|
|
1051
1074
|
}
|
|
1052
|
-
var
|
|
1075
|
+
var fe = {
|
|
1053
1076
|
"001": [
|
|
1054
1077
|
"H",
|
|
1055
1078
|
"h"
|
|
@@ -2464,22 +2487,23 @@ var ce = {
|
|
|
2464
2487
|
"h"
|
|
2465
2488
|
]
|
|
2466
2489
|
};
|
|
2467
|
-
function
|
|
2490
|
+
function un(e, t) {
|
|
2468
2491
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2469
2492
|
var i = e.charAt(n);
|
|
2470
2493
|
if (i === "j") {
|
|
2471
|
-
for (var
|
|
2472
|
-
|
|
2473
|
-
var
|
|
2494
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2495
|
+
s++, n++;
|
|
2496
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = hn(t);
|
|
2474
2497
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2475
2498
|
r += h;
|
|
2476
|
-
for (;
|
|
2499
|
+
for (; o-- > 0; )
|
|
2477
2500
|
r = a + r;
|
|
2478
|
-
} else
|
|
2501
|
+
} else
|
|
2502
|
+
i === "J" ? r += "H" : r += i;
|
|
2479
2503
|
}
|
|
2480
2504
|
return r;
|
|
2481
2505
|
}
|
|
2482
|
-
function
|
|
2506
|
+
function hn(e) {
|
|
2483
2507
|
var t = e.hourCycle;
|
|
2484
2508
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2485
2509
|
e.hourCycles && // @ts-ignore
|
|
@@ -2498,23 +2522,23 @@ function un(e) {
|
|
|
2498
2522
|
}
|
|
2499
2523
|
var r = e.language, n;
|
|
2500
2524
|
r !== "root" && (n = e.maximize().region);
|
|
2501
|
-
var i =
|
|
2525
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2502
2526
|
return i[0];
|
|
2503
2527
|
}
|
|
2504
|
-
var Oe,
|
|
2505
|
-
function
|
|
2528
|
+
var Oe, ln = new RegExp("^".concat(Ut.source, "*")), cn = new RegExp("".concat(Ut.source, "*$"));
|
|
2529
|
+
function x(e, t) {
|
|
2506
2530
|
return { start: e, end: t };
|
|
2507
2531
|
}
|
|
2508
|
-
var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1),
|
|
2532
|
+
var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, mn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, xn = yn ? Number.isSafeInteger : function(e) {
|
|
2509
2533
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2510
2534
|
}, Re = !0;
|
|
2511
2535
|
try {
|
|
2512
|
-
var En =
|
|
2536
|
+
var En = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2513
2537
|
Re = ((Oe = En.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2514
2538
|
} catch (e) {
|
|
2515
2539
|
Re = !1;
|
|
2516
2540
|
}
|
|
2517
|
-
var
|
|
2541
|
+
var ht = fn ? (
|
|
2518
2542
|
// Native
|
|
2519
2543
|
function(t, r, n) {
|
|
2520
2544
|
return t.startsWith(r, n);
|
|
@@ -2524,31 +2548,31 @@ var at = fn ? (
|
|
|
2524
2548
|
function(t, r, n) {
|
|
2525
2549
|
return t.slice(n, n + r.length) === r;
|
|
2526
2550
|
}
|
|
2527
|
-
), Ue =
|
|
2551
|
+
), Ue = gn ? String.fromCodePoint : (
|
|
2528
2552
|
// IE11
|
|
2529
2553
|
function() {
|
|
2530
2554
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2531
2555
|
t[r] = arguments[r];
|
|
2532
|
-
for (var n = "", i = t.length,
|
|
2533
|
-
if (
|
|
2534
|
-
throw RangeError(
|
|
2535
|
-
n +=
|
|
2556
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2557
|
+
if (o = t[s++], o > 1114111)
|
|
2558
|
+
throw RangeError(o + " is not a valid code point");
|
|
2559
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2536
2560
|
}
|
|
2537
2561
|
return n;
|
|
2538
2562
|
}
|
|
2539
|
-
),
|
|
2563
|
+
), lt = (
|
|
2540
2564
|
// native
|
|
2541
|
-
|
|
2565
|
+
mn ? Object.fromEntries : (
|
|
2542
2566
|
// Ponyfill
|
|
2543
2567
|
function(t) {
|
|
2544
2568
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2545
|
-
var
|
|
2546
|
-
r[
|
|
2569
|
+
var s = i[n], o = s[0], u = s[1];
|
|
2570
|
+
r[o] = u;
|
|
2547
2571
|
}
|
|
2548
2572
|
return r;
|
|
2549
2573
|
}
|
|
2550
2574
|
)
|
|
2551
|
-
),
|
|
2575
|
+
), jt = pn ? (
|
|
2552
2576
|
// Native
|
|
2553
2577
|
function(t, r) {
|
|
2554
2578
|
return t.codePointAt(r);
|
|
@@ -2558,11 +2582,11 @@ var at = fn ? (
|
|
|
2558
2582
|
function(t, r) {
|
|
2559
2583
|
var n = t.length;
|
|
2560
2584
|
if (!(r < 0 || r >= n)) {
|
|
2561
|
-
var i = t.charCodeAt(r),
|
|
2562
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2585
|
+
var i = t.charCodeAt(r), s;
|
|
2586
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2563
2587
|
}
|
|
2564
2588
|
}
|
|
2565
|
-
),
|
|
2589
|
+
), _n = dn ? (
|
|
2566
2590
|
// Native
|
|
2567
2591
|
function(t) {
|
|
2568
2592
|
return t.trimStart();
|
|
@@ -2570,9 +2594,9 @@ var at = fn ? (
|
|
|
2570
2594
|
) : (
|
|
2571
2595
|
// Ponyfill
|
|
2572
2596
|
function(t) {
|
|
2573
|
-
return t.replace(
|
|
2597
|
+
return t.replace(ln, "");
|
|
2574
2598
|
}
|
|
2575
|
-
),
|
|
2599
|
+
), vn = bn ? (
|
|
2576
2600
|
// Native
|
|
2577
2601
|
function(t) {
|
|
2578
2602
|
return t.trimEnd();
|
|
@@ -2580,32 +2604,32 @@ var at = fn ? (
|
|
|
2580
2604
|
) : (
|
|
2581
2605
|
// Ponyfill
|
|
2582
2606
|
function(t) {
|
|
2583
|
-
return t.replace(
|
|
2607
|
+
return t.replace(cn, "");
|
|
2584
2608
|
}
|
|
2585
2609
|
);
|
|
2586
|
-
function
|
|
2610
|
+
function kt(e, t) {
|
|
2587
2611
|
return new RegExp(e, t);
|
|
2588
2612
|
}
|
|
2589
2613
|
var Ge;
|
|
2590
2614
|
if (Re) {
|
|
2591
|
-
var
|
|
2615
|
+
var ct = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2592
2616
|
Ge = function(t, r) {
|
|
2593
2617
|
var n;
|
|
2594
|
-
|
|
2595
|
-
var i =
|
|
2618
|
+
ct.lastIndex = r;
|
|
2619
|
+
var i = ct.exec(t);
|
|
2596
2620
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2597
2621
|
};
|
|
2598
2622
|
} else
|
|
2599
2623
|
Ge = function(t, r) {
|
|
2600
2624
|
for (var n = []; ; ) {
|
|
2601
|
-
var i =
|
|
2602
|
-
if (i === void 0 ||
|
|
2625
|
+
var i = jt(t, r);
|
|
2626
|
+
if (i === void 0 || Vt(i) || An(i))
|
|
2603
2627
|
break;
|
|
2604
2628
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2605
2629
|
}
|
|
2606
2630
|
return Ue.apply(void 0, n);
|
|
2607
2631
|
};
|
|
2608
|
-
var
|
|
2632
|
+
var Tn = (
|
|
2609
2633
|
/** @class */
|
|
2610
2634
|
function() {
|
|
2611
2635
|
function e(t, r) {
|
|
@@ -2617,35 +2641,35 @@ var vn = (
|
|
|
2617
2641
|
return this.parseMessage(0, "", !1);
|
|
2618
2642
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2619
2643
|
for (var i = []; !this.isEOF(); ) {
|
|
2620
|
-
var
|
|
2621
|
-
if (
|
|
2622
|
-
var
|
|
2623
|
-
if (
|
|
2624
|
-
return
|
|
2625
|
-
i.push(
|
|
2644
|
+
var s = this.char();
|
|
2645
|
+
if (s === 123) {
|
|
2646
|
+
var o = this.parseArgument(t, n);
|
|
2647
|
+
if (o.err)
|
|
2648
|
+
return o;
|
|
2649
|
+
i.push(o.val);
|
|
2626
2650
|
} else {
|
|
2627
|
-
if (
|
|
2651
|
+
if (s === 125 && t > 0)
|
|
2628
2652
|
break;
|
|
2629
|
-
if (
|
|
2653
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2630
2654
|
var u = this.clonePosition();
|
|
2631
2655
|
this.bump(), i.push({
|
|
2632
2656
|
type: T.pound,
|
|
2633
|
-
location:
|
|
2657
|
+
location: x(u, this.clonePosition())
|
|
2634
2658
|
});
|
|
2635
|
-
} else if (
|
|
2659
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2636
2660
|
if (n)
|
|
2637
2661
|
break;
|
|
2638
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
2639
|
-
} else if (
|
|
2640
|
-
var
|
|
2641
|
-
if (
|
|
2642
|
-
return
|
|
2643
|
-
i.push(
|
|
2662
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
2663
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2664
|
+
var o = this.parseTag(t, r);
|
|
2665
|
+
if (o.err)
|
|
2666
|
+
return o;
|
|
2667
|
+
i.push(o.val);
|
|
2644
2668
|
} else {
|
|
2645
|
-
var
|
|
2646
|
-
if (
|
|
2647
|
-
return
|
|
2648
|
-
i.push(
|
|
2669
|
+
var o = this.parseLiteral(t, r);
|
|
2670
|
+
if (o.err)
|
|
2671
|
+
return o;
|
|
2672
|
+
i.push(o.val);
|
|
2649
2673
|
}
|
|
2650
2674
|
}
|
|
2651
2675
|
}
|
|
@@ -2659,32 +2683,32 @@ var vn = (
|
|
|
2659
2683
|
val: {
|
|
2660
2684
|
type: T.literal,
|
|
2661
2685
|
value: "<".concat(i, "/>"),
|
|
2662
|
-
location:
|
|
2686
|
+
location: x(n, this.clonePosition())
|
|
2663
2687
|
},
|
|
2664
2688
|
err: null
|
|
2665
2689
|
};
|
|
2666
2690
|
if (this.bumpIf(">")) {
|
|
2667
|
-
var
|
|
2668
|
-
if (
|
|
2669
|
-
return
|
|
2670
|
-
var
|
|
2691
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2692
|
+
if (s.err)
|
|
2693
|
+
return s;
|
|
2694
|
+
var o = s.val, u = this.clonePosition();
|
|
2671
2695
|
if (this.bumpIf("</")) {
|
|
2672
2696
|
if (this.isEOF() || !De(this.char()))
|
|
2673
|
-
return this.error(y.INVALID_TAG,
|
|
2697
|
+
return this.error(y.INVALID_TAG, x(u, this.clonePosition()));
|
|
2674
2698
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2675
|
-
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
2699
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, x(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2676
2700
|
val: {
|
|
2677
2701
|
type: T.tag,
|
|
2678
2702
|
value: i,
|
|
2679
|
-
children:
|
|
2680
|
-
location:
|
|
2703
|
+
children: o,
|
|
2704
|
+
location: x(n, this.clonePosition())
|
|
2681
2705
|
},
|
|
2682
2706
|
err: null
|
|
2683
|
-
} : this.error(y.INVALID_TAG,
|
|
2707
|
+
} : this.error(y.INVALID_TAG, x(u, this.clonePosition())));
|
|
2684
2708
|
} else
|
|
2685
|
-
return this.error(y.UNCLOSED_TAG,
|
|
2709
|
+
return this.error(y.UNCLOSED_TAG, x(n, this.clonePosition()));
|
|
2686
2710
|
} else
|
|
2687
|
-
return this.error(y.INVALID_TAG,
|
|
2711
|
+
return this.error(y.INVALID_TAG, x(n, this.clonePosition()));
|
|
2688
2712
|
}, e.prototype.parseTagName = function() {
|
|
2689
2713
|
var t = this.offset();
|
|
2690
2714
|
for (this.bump(); !this.isEOF() && Cn(this.char()); )
|
|
@@ -2692,16 +2716,16 @@ var vn = (
|
|
|
2692
2716
|
return this.message.slice(t, this.offset());
|
|
2693
2717
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2694
2718
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2695
|
-
var
|
|
2696
|
-
if (o) {
|
|
2697
|
-
i += o;
|
|
2698
|
-
continue;
|
|
2699
|
-
}
|
|
2700
|
-
var s = this.tryParseUnquoted(t, r);
|
|
2719
|
+
var s = this.tryParseQuote(r);
|
|
2701
2720
|
if (s) {
|
|
2702
2721
|
i += s;
|
|
2703
2722
|
continue;
|
|
2704
2723
|
}
|
|
2724
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2725
|
+
if (o) {
|
|
2726
|
+
i += o;
|
|
2727
|
+
continue;
|
|
2728
|
+
}
|
|
2705
2729
|
var u = this.tryParseLeftAngleBracket();
|
|
2706
2730
|
if (u) {
|
|
2707
2731
|
i += u;
|
|
@@ -2709,14 +2733,14 @@ var vn = (
|
|
|
2709
2733
|
}
|
|
2710
2734
|
break;
|
|
2711
2735
|
}
|
|
2712
|
-
var h =
|
|
2736
|
+
var h = x(n, this.clonePosition());
|
|
2713
2737
|
return {
|
|
2714
2738
|
val: { type: T.literal, value: i, location: h },
|
|
2715
2739
|
err: null
|
|
2716
2740
|
};
|
|
2717
2741
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2718
2742
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2719
|
-
!
|
|
2743
|
+
!Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2720
2744
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2721
2745
|
if (this.isEOF() || this.char() !== 39)
|
|
2722
2746
|
return null;
|
|
@@ -2759,14 +2783,14 @@ var vn = (
|
|
|
2759
2783
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2760
2784
|
var n = this.clonePosition();
|
|
2761
2785
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2762
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2786
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
2763
2787
|
if (this.char() === 125)
|
|
2764
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
2788
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, x(n, this.clonePosition()));
|
|
2765
2789
|
var i = this.parseIdentifierIfPossible().value;
|
|
2766
2790
|
if (!i)
|
|
2767
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
2791
|
+
return this.error(y.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
2768
2792
|
if (this.bumpSpace(), this.isEOF())
|
|
2769
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2793
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
2770
2794
|
switch (this.char()) {
|
|
2771
2795
|
case 125:
|
|
2772
2796
|
return this.bump(), {
|
|
@@ -2774,25 +2798,25 @@ var vn = (
|
|
|
2774
2798
|
type: T.argument,
|
|
2775
2799
|
// value does not include the opening and closing braces.
|
|
2776
2800
|
value: i,
|
|
2777
|
-
location:
|
|
2801
|
+
location: x(n, this.clonePosition())
|
|
2778
2802
|
},
|
|
2779
2803
|
err: null
|
|
2780
2804
|
};
|
|
2781
2805
|
case 44:
|
|
2782
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2806
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2783
2807
|
default:
|
|
2784
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
2808
|
+
return this.error(y.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
2785
2809
|
}
|
|
2786
2810
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2787
2811
|
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2788
2812
|
this.bumpTo(i);
|
|
2789
|
-
var
|
|
2790
|
-
return { value: n, location:
|
|
2813
|
+
var s = this.clonePosition(), o = x(t, s);
|
|
2814
|
+
return { value: n, location: o };
|
|
2791
2815
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2792
|
-
var
|
|
2816
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2793
2817
|
switch (u) {
|
|
2794
2818
|
case "":
|
|
2795
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
2819
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, x(o, h));
|
|
2796
2820
|
case "number":
|
|
2797
2821
|
case "date":
|
|
2798
2822
|
case "time": {
|
|
@@ -2800,40 +2824,40 @@ var vn = (
|
|
|
2800
2824
|
var a = null;
|
|
2801
2825
|
if (this.bumpIf(",")) {
|
|
2802
2826
|
this.bumpSpace();
|
|
2803
|
-
var l = this.clonePosition(),
|
|
2804
|
-
if (
|
|
2805
|
-
return
|
|
2806
|
-
var
|
|
2807
|
-
if (
|
|
2808
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
2809
|
-
var p =
|
|
2810
|
-
a = { style:
|
|
2827
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2828
|
+
if (f.err)
|
|
2829
|
+
return f;
|
|
2830
|
+
var c = vn(f.val);
|
|
2831
|
+
if (c.length === 0)
|
|
2832
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
2833
|
+
var p = x(l, this.clonePosition());
|
|
2834
|
+
a = { style: c, styleLocation: p };
|
|
2811
2835
|
}
|
|
2812
2836
|
var d = this.tryParseArgumentClose(i);
|
|
2813
2837
|
if (d.err)
|
|
2814
2838
|
return d;
|
|
2815
|
-
var g =
|
|
2816
|
-
if (a &&
|
|
2817
|
-
var _ =
|
|
2839
|
+
var g = x(i, this.clonePosition());
|
|
2840
|
+
if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
|
|
2841
|
+
var _ = _n(a.style.slice(2));
|
|
2818
2842
|
if (u === "number") {
|
|
2819
|
-
var
|
|
2820
|
-
return
|
|
2821
|
-
val: { type: T.number, value: n, location: g, style:
|
|
2843
|
+
var f = this.parseNumberSkeletonFromString(_, a.styleLocation);
|
|
2844
|
+
return f.err ? f : {
|
|
2845
|
+
val: { type: T.number, value: n, location: g, style: f.val },
|
|
2822
2846
|
err: null
|
|
2823
2847
|
};
|
|
2824
2848
|
} else {
|
|
2825
2849
|
if (_.length === 0)
|
|
2826
2850
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2827
2851
|
var m = _;
|
|
2828
|
-
this.locale && (m =
|
|
2829
|
-
var
|
|
2852
|
+
this.locale && (m = un(_, this.locale));
|
|
2853
|
+
var c = {
|
|
2830
2854
|
type: Q.dateTime,
|
|
2831
2855
|
pattern: m,
|
|
2832
2856
|
location: a.styleLocation,
|
|
2833
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2834
|
-
},
|
|
2857
|
+
parsedOptions: this.shouldParseSkeletons ? en(m) : {}
|
|
2858
|
+
}, H = u === "date" ? T.date : T.time;
|
|
2835
2859
|
return {
|
|
2836
|
-
val: { type:
|
|
2860
|
+
val: { type: H, value: n, location: g, style: c },
|
|
2837
2861
|
err: null
|
|
2838
2862
|
};
|
|
2839
2863
|
}
|
|
@@ -2843,7 +2867,7 @@ var vn = (
|
|
|
2843
2867
|
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2844
2868
|
value: n,
|
|
2845
2869
|
location: g,
|
|
2846
|
-
style: (
|
|
2870
|
+
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
2847
2871
|
},
|
|
2848
2872
|
err: null
|
|
2849
2873
|
};
|
|
@@ -2851,32 +2875,32 @@ var vn = (
|
|
|
2851
2875
|
case "plural":
|
|
2852
2876
|
case "selectordinal":
|
|
2853
2877
|
case "select": {
|
|
2854
|
-
var
|
|
2878
|
+
var B = this.clonePosition();
|
|
2855
2879
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2856
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2880
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, x(B, E({}, B)));
|
|
2857
2881
|
this.bumpSpace();
|
|
2858
|
-
var P = this.parseIdentifierIfPossible(),
|
|
2882
|
+
var P = this.parseIdentifierIfPossible(), S = 0;
|
|
2859
2883
|
if (u !== "select" && P.value === "offset") {
|
|
2860
2884
|
if (!this.bumpIf(":"))
|
|
2861
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2885
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
2862
2886
|
this.bumpSpace();
|
|
2863
|
-
var
|
|
2864
|
-
if (
|
|
2865
|
-
return
|
|
2866
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(),
|
|
2887
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2888
|
+
if (f.err)
|
|
2889
|
+
return f;
|
|
2890
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = f.val;
|
|
2867
2891
|
}
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2870
|
-
return
|
|
2892
|
+
var C = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2893
|
+
if (C.err)
|
|
2894
|
+
return C;
|
|
2871
2895
|
var d = this.tryParseArgumentClose(i);
|
|
2872
2896
|
if (d.err)
|
|
2873
2897
|
return d;
|
|
2874
|
-
var N =
|
|
2898
|
+
var N = x(i, this.clonePosition());
|
|
2875
2899
|
return u === "select" ? {
|
|
2876
2900
|
val: {
|
|
2877
2901
|
type: T.select,
|
|
2878
2902
|
value: n,
|
|
2879
|
-
options:
|
|
2903
|
+
options: lt(C.val),
|
|
2880
2904
|
location: N
|
|
2881
2905
|
},
|
|
2882
2906
|
err: null
|
|
@@ -2884,8 +2908,8 @@ var vn = (
|
|
|
2884
2908
|
val: {
|
|
2885
2909
|
type: T.plural,
|
|
2886
2910
|
value: n,
|
|
2887
|
-
options:
|
|
2888
|
-
offset:
|
|
2911
|
+
options: lt(C.val),
|
|
2912
|
+
offset: S,
|
|
2889
2913
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2890
2914
|
location: N
|
|
2891
2915
|
},
|
|
@@ -2893,10 +2917,10 @@ var vn = (
|
|
|
2893
2917
|
};
|
|
2894
2918
|
}
|
|
2895
2919
|
default:
|
|
2896
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
2920
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, x(o, h));
|
|
2897
2921
|
}
|
|
2898
2922
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2899
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2923
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2900
2924
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2901
2925
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2902
2926
|
var n = this.char();
|
|
@@ -2905,7 +2929,7 @@ var vn = (
|
|
|
2905
2929
|
this.bump();
|
|
2906
2930
|
var i = this.clonePosition();
|
|
2907
2931
|
if (!this.bumpUntil("'"))
|
|
2908
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2932
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
|
|
2909
2933
|
this.bump();
|
|
2910
2934
|
break;
|
|
2911
2935
|
}
|
|
@@ -2935,7 +2959,7 @@ var vn = (
|
|
|
2935
2959
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2936
2960
|
var n = [];
|
|
2937
2961
|
try {
|
|
2938
|
-
n =
|
|
2962
|
+
n = rn(t);
|
|
2939
2963
|
} catch (i) {
|
|
2940
2964
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2941
2965
|
}
|
|
@@ -2944,28 +2968,28 @@ var vn = (
|
|
|
2944
2968
|
type: Q.number,
|
|
2945
2969
|
tokens: n,
|
|
2946
2970
|
location: r,
|
|
2947
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2971
|
+
parsedOptions: this.shouldParseSkeletons ? an(n) : {}
|
|
2948
2972
|
},
|
|
2949
2973
|
err: null
|
|
2950
2974
|
};
|
|
2951
2975
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2952
|
-
for (var
|
|
2976
|
+
for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
2953
2977
|
if (a.length === 0) {
|
|
2954
|
-
var
|
|
2978
|
+
var f = this.clonePosition();
|
|
2955
2979
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2956
|
-
var
|
|
2957
|
-
if (
|
|
2958
|
-
return
|
|
2959
|
-
l =
|
|
2980
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2981
|
+
if (c.err)
|
|
2982
|
+
return c;
|
|
2983
|
+
l = x(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
2960
2984
|
} else
|
|
2961
2985
|
break;
|
|
2962
2986
|
}
|
|
2963
2987
|
if (h.has(a))
|
|
2964
2988
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2965
|
-
a === "other" && (
|
|
2989
|
+
a === "other" && (o = !0), this.bumpSpace();
|
|
2966
2990
|
var p = this.clonePosition();
|
|
2967
2991
|
if (!this.bumpIf("{"))
|
|
2968
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2992
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
|
|
2969
2993
|
var d = this.parseMessage(t + 1, r, n);
|
|
2970
2994
|
if (d.err)
|
|
2971
2995
|
return d;
|
|
@@ -2976,23 +3000,23 @@ var vn = (
|
|
|
2976
3000
|
a,
|
|
2977
3001
|
{
|
|
2978
3002
|
value: d.val,
|
|
2979
|
-
location:
|
|
3003
|
+
location: x(p, this.clonePosition())
|
|
2980
3004
|
}
|
|
2981
|
-
]), h.add(a), this.bumpSpace(),
|
|
3005
|
+
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
2982
3006
|
}
|
|
2983
|
-
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3007
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2984
3008
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2985
3009
|
var n = 1, i = this.clonePosition();
|
|
2986
3010
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2987
|
-
for (var
|
|
3011
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
2988
3012
|
var u = this.char();
|
|
2989
3013
|
if (u >= 48 && u <= 57)
|
|
2990
|
-
|
|
3014
|
+
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
2991
3015
|
else
|
|
2992
3016
|
break;
|
|
2993
3017
|
}
|
|
2994
|
-
var h =
|
|
2995
|
-
return
|
|
3018
|
+
var h = x(i, this.clonePosition());
|
|
3019
|
+
return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2996
3020
|
}, e.prototype.offset = function() {
|
|
2997
3021
|
return this.position.offset;
|
|
2998
3022
|
}, e.prototype.isEOF = function() {
|
|
@@ -3007,7 +3031,7 @@ var vn = (
|
|
|
3007
3031
|
var t = this.position.offset;
|
|
3008
3032
|
if (t >= this.message.length)
|
|
3009
3033
|
throw Error("out of bound");
|
|
3010
|
-
var r =
|
|
3034
|
+
var r = jt(this.message, t);
|
|
3011
3035
|
if (r === void 0)
|
|
3012
3036
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3013
3037
|
return r;
|
|
@@ -3026,7 +3050,7 @@ var vn = (
|
|
|
3026
3050
|
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);
|
|
3027
3051
|
}
|
|
3028
3052
|
}, e.prototype.bumpIf = function(t) {
|
|
3029
|
-
if (
|
|
3053
|
+
if (ht(this.message, t, this.offset())) {
|
|
3030
3054
|
for (var r = 0; r < t.length; r++)
|
|
3031
3055
|
this.bump();
|
|
3032
3056
|
return !0;
|
|
@@ -3048,7 +3072,7 @@ var vn = (
|
|
|
3048
3072
|
break;
|
|
3049
3073
|
}
|
|
3050
3074
|
}, e.prototype.bumpSpace = function() {
|
|
3051
|
-
for (; !this.isEOF() &&
|
|
3075
|
+
for (; !this.isEOF() && Vt(this.char()); )
|
|
3052
3076
|
this.bump();
|
|
3053
3077
|
}, e.prototype.peek = function() {
|
|
3054
3078
|
if (this.isEOF())
|
|
@@ -3061,29 +3085,30 @@ var vn = (
|
|
|
3061
3085
|
function De(e) {
|
|
3062
3086
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3063
3087
|
}
|
|
3064
|
-
function
|
|
3088
|
+
function Hn(e) {
|
|
3065
3089
|
return De(e) || e === 47;
|
|
3066
3090
|
}
|
|
3067
3091
|
function Cn(e) {
|
|
3068
3092
|
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;
|
|
3069
3093
|
}
|
|
3070
|
-
function
|
|
3094
|
+
function Vt(e) {
|
|
3071
3095
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3072
3096
|
}
|
|
3073
|
-
function
|
|
3097
|
+
function An(e) {
|
|
3074
3098
|
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;
|
|
3075
3099
|
}
|
|
3076
3100
|
function Fe(e) {
|
|
3077
3101
|
e.forEach(function(t) {
|
|
3078
|
-
if (delete t.location,
|
|
3102
|
+
if (delete t.location, It(t) || Mt(t))
|
|
3079
3103
|
for (var r in t.options)
|
|
3080
3104
|
delete t.options[r].location, Fe(t.options[r].value);
|
|
3081
|
-
else
|
|
3105
|
+
else
|
|
3106
|
+
Pt(t) && Rt(t.style) || (Nt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : $t(t) && Fe(t.children);
|
|
3082
3107
|
});
|
|
3083
3108
|
}
|
|
3084
|
-
function
|
|
3085
|
-
t === void 0 && (t = {}), t =
|
|
3086
|
-
var r = new
|
|
3109
|
+
function Bn(e, t) {
|
|
3110
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3111
|
+
var r = new Tn(e, t).parse();
|
|
3087
3112
|
if (r.err) {
|
|
3088
3113
|
var n = SyntaxError(y[r.err.kind]);
|
|
3089
3114
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3097,37 +3122,37 @@ var J;
|
|
|
3097
3122
|
var _e = (
|
|
3098
3123
|
/** @class */
|
|
3099
3124
|
function(e) {
|
|
3100
|
-
|
|
3125
|
+
Ee(t, e);
|
|
3101
3126
|
function t(r, n, i) {
|
|
3102
|
-
var
|
|
3103
|
-
return
|
|
3127
|
+
var s = e.call(this, r) || this;
|
|
3128
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3104
3129
|
}
|
|
3105
3130
|
return t.prototype.toString = function() {
|
|
3106
3131
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3107
3132
|
}, t;
|
|
3108
3133
|
}(Error)
|
|
3109
|
-
),
|
|
3134
|
+
), ft = (
|
|
3110
3135
|
/** @class */
|
|
3111
3136
|
function(e) {
|
|
3112
|
-
|
|
3113
|
-
function t(r, n, i,
|
|
3114
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE,
|
|
3137
|
+
Ee(t, e);
|
|
3138
|
+
function t(r, n, i, s) {
|
|
3139
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3115
3140
|
}
|
|
3116
3141
|
return t;
|
|
3117
3142
|
}(_e)
|
|
3118
3143
|
), Sn = (
|
|
3119
3144
|
/** @class */
|
|
3120
3145
|
function(e) {
|
|
3121
|
-
|
|
3146
|
+
Ee(t, e);
|
|
3122
3147
|
function t(r, n, i) {
|
|
3123
3148
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3124
3149
|
}
|
|
3125
3150
|
return t;
|
|
3126
3151
|
}(_e)
|
|
3127
|
-
),
|
|
3152
|
+
), On = (
|
|
3128
3153
|
/** @class */
|
|
3129
3154
|
function(e) {
|
|
3130
|
-
|
|
3155
|
+
Ee(t, e);
|
|
3131
3156
|
function t(r, n) {
|
|
3132
3157
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3133
3158
|
}
|
|
@@ -3137,17 +3162,17 @@ var _e = (
|
|
|
3137
3162
|
(function(e) {
|
|
3138
3163
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3139
3164
|
})(w || (w = {}));
|
|
3140
|
-
function
|
|
3165
|
+
function wn(e) {
|
|
3141
3166
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3142
3167
|
var n = t[t.length - 1];
|
|
3143
3168
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3144
3169
|
}, []);
|
|
3145
3170
|
}
|
|
3146
|
-
function
|
|
3171
|
+
function Pn(e) {
|
|
3147
3172
|
return typeof e == "function";
|
|
3148
3173
|
}
|
|
3149
|
-
function me(e, t, r, n, i,
|
|
3150
|
-
if (e.length === 1 &&
|
|
3174
|
+
function me(e, t, r, n, i, s, o) {
|
|
3175
|
+
if (e.length === 1 && st(e[0]))
|
|
3151
3176
|
return [
|
|
3152
3177
|
{
|
|
3153
3178
|
type: w.literal,
|
|
@@ -3156,103 +3181,103 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3156
3181
|
];
|
|
3157
3182
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3158
3183
|
var l = a[h];
|
|
3159
|
-
if (
|
|
3184
|
+
if (st(l)) {
|
|
3160
3185
|
u.push({
|
|
3161
3186
|
type: w.literal,
|
|
3162
3187
|
value: l.value
|
|
3163
3188
|
});
|
|
3164
3189
|
continue;
|
|
3165
3190
|
}
|
|
3166
|
-
if (
|
|
3167
|
-
typeof
|
|
3191
|
+
if (Yr(l)) {
|
|
3192
|
+
typeof s == "number" && u.push({
|
|
3168
3193
|
type: w.literal,
|
|
3169
|
-
value: r.getNumberFormat(t).format(
|
|
3194
|
+
value: r.getNumberFormat(t).format(s)
|
|
3170
3195
|
});
|
|
3171
3196
|
continue;
|
|
3172
3197
|
}
|
|
3173
|
-
var
|
|
3174
|
-
if (!(i &&
|
|
3175
|
-
throw new
|
|
3176
|
-
var
|
|
3177
|
-
if (
|
|
3178
|
-
(!
|
|
3179
|
-
type: typeof
|
|
3180
|
-
value:
|
|
3198
|
+
var f = l.value;
|
|
3199
|
+
if (!(i && f in i))
|
|
3200
|
+
throw new On(f, o);
|
|
3201
|
+
var c = i[f];
|
|
3202
|
+
if (qr(l)) {
|
|
3203
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3204
|
+
type: typeof c == "string" ? w.literal : w.object,
|
|
3205
|
+
value: c
|
|
3181
3206
|
});
|
|
3182
3207
|
continue;
|
|
3183
3208
|
}
|
|
3184
|
-
if (
|
|
3209
|
+
if (Nt(l)) {
|
|
3185
3210
|
var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3186
3211
|
u.push({
|
|
3187
3212
|
type: w.literal,
|
|
3188
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3213
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3189
3214
|
});
|
|
3190
3215
|
continue;
|
|
3191
3216
|
}
|
|
3192
|
-
if (
|
|
3217
|
+
if (Lt(l)) {
|
|
3193
3218
|
var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3194
3219
|
u.push({
|
|
3195
3220
|
type: w.literal,
|
|
3196
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3221
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3197
3222
|
});
|
|
3198
3223
|
continue;
|
|
3199
3224
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3202
|
-
p && p.scale && (
|
|
3225
|
+
if (Pt(l)) {
|
|
3226
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
|
|
3227
|
+
p && p.scale && (c = c * (p.scale || 1)), u.push({
|
|
3203
3228
|
type: w.literal,
|
|
3204
|
-
value: r.getNumberFormat(t, p).format(
|
|
3229
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3205
3230
|
});
|
|
3206
3231
|
continue;
|
|
3207
3232
|
}
|
|
3208
|
-
if (
|
|
3233
|
+
if ($t(l)) {
|
|
3209
3234
|
var d = l.children, g = l.value, _ = i[g];
|
|
3210
|
-
if (!
|
|
3211
|
-
throw new Sn(g, "function",
|
|
3212
|
-
var m = me(d, t, r, n, i,
|
|
3213
|
-
return
|
|
3235
|
+
if (!Pn(_))
|
|
3236
|
+
throw new Sn(g, "function", o);
|
|
3237
|
+
var m = me(d, t, r, n, i, s), H = _(m.map(function(S) {
|
|
3238
|
+
return S.value;
|
|
3214
3239
|
}));
|
|
3215
|
-
Array.isArray(
|
|
3240
|
+
Array.isArray(H) || (H = [H]), u.push.apply(u, H.map(function(S) {
|
|
3216
3241
|
return {
|
|
3217
|
-
type: typeof
|
|
3218
|
-
value:
|
|
3242
|
+
type: typeof S == "string" ? w.literal : w.object,
|
|
3243
|
+
value: S
|
|
3219
3244
|
};
|
|
3220
3245
|
}));
|
|
3221
3246
|
}
|
|
3222
|
-
if (
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3225
|
-
throw new
|
|
3226
|
-
u.push.apply(u, me(
|
|
3247
|
+
if (It(l)) {
|
|
3248
|
+
var B = l.options[c] || l.options.other;
|
|
3249
|
+
if (!B)
|
|
3250
|
+
throw new ft(l.value, c, Object.keys(l.options), o);
|
|
3251
|
+
u.push.apply(u, me(B.value, t, r, n, i));
|
|
3227
3252
|
continue;
|
|
3228
3253
|
}
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3231
|
-
if (!
|
|
3254
|
+
if (Mt(l)) {
|
|
3255
|
+
var B = l.options["=".concat(c)];
|
|
3256
|
+
if (!B) {
|
|
3232
3257
|
if (!Intl.PluralRules)
|
|
3233
3258
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3234
3259
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3235
|
-
`, J.MISSING_INTL_API,
|
|
3236
|
-
var P = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3237
|
-
|
|
3260
|
+
`, J.MISSING_INTL_API, o);
|
|
3261
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3262
|
+
B = l.options[P] || l.options.other;
|
|
3238
3263
|
}
|
|
3239
|
-
if (!
|
|
3240
|
-
throw new
|
|
3241
|
-
u.push.apply(u, me(
|
|
3264
|
+
if (!B)
|
|
3265
|
+
throw new ft(l.value, c, Object.keys(l.options), o);
|
|
3266
|
+
u.push.apply(u, me(B.value, t, r, n, i, c - (l.offset || 0)));
|
|
3242
3267
|
continue;
|
|
3243
3268
|
}
|
|
3244
3269
|
}
|
|
3245
|
-
return
|
|
3270
|
+
return wn(u);
|
|
3246
3271
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return t ?
|
|
3249
|
-
return r[n] =
|
|
3272
|
+
function Nn(e, t) {
|
|
3273
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3274
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3250
3275
|
}, {})) : e;
|
|
3251
3276
|
}
|
|
3252
|
-
function
|
|
3277
|
+
function Ln(e, t) {
|
|
3253
3278
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3254
|
-
return r[n] =
|
|
3255
|
-
},
|
|
3279
|
+
return r[n] = Nn(e[n], t[n]), r;
|
|
3280
|
+
}, E({}, e)) : e;
|
|
3256
3281
|
}
|
|
3257
3282
|
function we(e) {
|
|
3258
3283
|
return {
|
|
@@ -3268,77 +3293,77 @@ function we(e) {
|
|
|
3268
3293
|
}
|
|
3269
3294
|
};
|
|
3270
3295
|
}
|
|
3271
|
-
function
|
|
3296
|
+
function In(e) {
|
|
3272
3297
|
return e === void 0 && (e = {
|
|
3273
3298
|
number: {},
|
|
3274
3299
|
dateTime: {},
|
|
3275
3300
|
pluralRules: {}
|
|
3276
3301
|
}), {
|
|
3277
|
-
getNumberFormat:
|
|
3302
|
+
getNumberFormat: Be(function() {
|
|
3278
3303
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3304
|
r[n] = arguments[n];
|
|
3280
3305
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3281
3306
|
}, {
|
|
3282
3307
|
cache: we(e.number),
|
|
3283
|
-
strategy:
|
|
3308
|
+
strategy: Se.variadic
|
|
3284
3309
|
}),
|
|
3285
|
-
getDateTimeFormat:
|
|
3310
|
+
getDateTimeFormat: Be(function() {
|
|
3286
3311
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3312
|
r[n] = arguments[n];
|
|
3288
3313
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3289
3314
|
}, {
|
|
3290
3315
|
cache: we(e.dateTime),
|
|
3291
|
-
strategy:
|
|
3316
|
+
strategy: Se.variadic
|
|
3292
3317
|
}),
|
|
3293
|
-
getPluralRules:
|
|
3318
|
+
getPluralRules: Be(function() {
|
|
3294
3319
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3295
3320
|
r[n] = arguments[n];
|
|
3296
3321
|
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3297
3322
|
}, {
|
|
3298
3323
|
cache: we(e.pluralRules),
|
|
3299
|
-
strategy:
|
|
3324
|
+
strategy: Se.variadic
|
|
3300
3325
|
})
|
|
3301
3326
|
};
|
|
3302
3327
|
}
|
|
3303
|
-
var
|
|
3328
|
+
var Mn = (
|
|
3304
3329
|
/** @class */
|
|
3305
3330
|
function() {
|
|
3306
3331
|
function e(t, r, n, i) {
|
|
3307
3332
|
r === void 0 && (r = e.defaultLocale);
|
|
3308
|
-
var
|
|
3333
|
+
var s = this;
|
|
3309
3334
|
if (this.formatterCache = {
|
|
3310
3335
|
number: {},
|
|
3311
3336
|
dateTime: {},
|
|
3312
3337
|
pluralRules: {}
|
|
3313
3338
|
}, this.format = function(h) {
|
|
3314
|
-
var a =
|
|
3339
|
+
var a = s.formatToParts(h);
|
|
3315
3340
|
if (a.length === 1)
|
|
3316
3341
|
return a[0].value;
|
|
3317
|
-
var l = a.reduce(function(
|
|
3318
|
-
return !
|
|
3342
|
+
var l = a.reduce(function(f, c) {
|
|
3343
|
+
return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3319
3344
|
}, []);
|
|
3320
3345
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3321
3346
|
}, this.formatToParts = function(h) {
|
|
3322
|
-
return me(
|
|
3347
|
+
return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3323
3348
|
}, this.resolvedOptions = function() {
|
|
3324
3349
|
var h;
|
|
3325
3350
|
return {
|
|
3326
|
-
locale: ((h =
|
|
3351
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3327
3352
|
};
|
|
3328
3353
|
}, this.getAst = function() {
|
|
3329
|
-
return
|
|
3354
|
+
return s.ast;
|
|
3330
3355
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3331
3356
|
if (this.message = t, !e.__parse)
|
|
3332
3357
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3333
|
-
var
|
|
3334
|
-
|
|
3335
|
-
var u =
|
|
3336
|
-
this.ast = e.__parse(t,
|
|
3358
|
+
var o = i || {};
|
|
3359
|
+
o.formatters;
|
|
3360
|
+
var u = Vr(o, ["formatters"]);
|
|
3361
|
+
this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
|
|
3337
3362
|
} else
|
|
3338
3363
|
this.ast = t;
|
|
3339
3364
|
if (!Array.isArray(this.ast))
|
|
3340
3365
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3341
|
-
this.formats =
|
|
3366
|
+
this.formats = Ln(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3342
3367
|
}
|
|
3343
3368
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3344
3369
|
get: function() {
|
|
@@ -3351,7 +3376,7 @@ var In = (
|
|
|
3351
3376
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3352
3377
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3353
3378
|
}
|
|
3354
|
-
}, e.__parse =
|
|
3379
|
+
}, e.__parse = Bn, e.formats = {
|
|
3355
3380
|
number: {
|
|
3356
3381
|
integer: {
|
|
3357
3382
|
maximumFractionDigits: 0
|
|
@@ -3412,7 +3437,7 @@ var In = (
|
|
|
3412
3437
|
}, e;
|
|
3413
3438
|
}()
|
|
3414
3439
|
);
|
|
3415
|
-
function
|
|
3440
|
+
function $n(e, t) {
|
|
3416
3441
|
if (t == null)
|
|
3417
3442
|
return;
|
|
3418
3443
|
if (t in e)
|
|
@@ -3422,9 +3447,9 @@ function Mn(e, t) {
|
|
|
3422
3447
|
for (let i = 0; i < r.length; i++)
|
|
3423
3448
|
if (typeof n == "object") {
|
|
3424
3449
|
if (i > 0) {
|
|
3425
|
-
const
|
|
3426
|
-
if (
|
|
3427
|
-
n = n[
|
|
3450
|
+
const s = r.slice(i, r.length).join(".");
|
|
3451
|
+
if (s in n) {
|
|
3452
|
+
n = n[s];
|
|
3428
3453
|
break;
|
|
3429
3454
|
}
|
|
3430
3455
|
}
|
|
@@ -3433,60 +3458,60 @@ function Mn(e, t) {
|
|
|
3433
3458
|
n = void 0;
|
|
3434
3459
|
return n;
|
|
3435
3460
|
}
|
|
3436
|
-
const G = {},
|
|
3461
|
+
const G = {}, Rn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Xt = (e, t) => {
|
|
3437
3462
|
if (t == null)
|
|
3438
3463
|
return;
|
|
3439
3464
|
if (t in G && e in G[t])
|
|
3440
3465
|
return G[t][e];
|
|
3441
3466
|
const r = ve(t);
|
|
3442
3467
|
for (let n = 0; n < r.length; n++) {
|
|
3443
|
-
const i = r[n],
|
|
3444
|
-
if (
|
|
3445
|
-
return
|
|
3468
|
+
const i = r[n], s = Gn(i, e);
|
|
3469
|
+
if (s)
|
|
3470
|
+
return Rn(e, t, s);
|
|
3446
3471
|
}
|
|
3447
3472
|
};
|
|
3448
|
-
let
|
|
3449
|
-
const ue =
|
|
3450
|
-
function
|
|
3451
|
-
return
|
|
3473
|
+
let We;
|
|
3474
|
+
const ue = xe({});
|
|
3475
|
+
function Un(e) {
|
|
3476
|
+
return We[e] || null;
|
|
3452
3477
|
}
|
|
3453
|
-
function
|
|
3454
|
-
return e in
|
|
3478
|
+
function zt(e) {
|
|
3479
|
+
return e in We;
|
|
3455
3480
|
}
|
|
3456
|
-
function
|
|
3457
|
-
if (!
|
|
3481
|
+
function Gn(e, t) {
|
|
3482
|
+
if (!zt(e))
|
|
3458
3483
|
return null;
|
|
3459
|
-
const r =
|
|
3460
|
-
return
|
|
3484
|
+
const r = Un(e);
|
|
3485
|
+
return $n(r, t);
|
|
3461
3486
|
}
|
|
3462
|
-
function
|
|
3487
|
+
function Dn(e) {
|
|
3463
3488
|
if (e == null)
|
|
3464
3489
|
return;
|
|
3465
3490
|
const t = ve(e);
|
|
3466
3491
|
for (let r = 0; r < t.length; r++) {
|
|
3467
3492
|
const n = t[r];
|
|
3468
|
-
if (
|
|
3493
|
+
if (zt(n))
|
|
3469
3494
|
return n;
|
|
3470
3495
|
}
|
|
3471
3496
|
}
|
|
3472
|
-
function
|
|
3473
|
-
delete G[e], ue.update((r) => (r[e] =
|
|
3497
|
+
function Wt(e, ...t) {
|
|
3498
|
+
delete G[e], ue.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
|
|
3474
3499
|
}
|
|
3475
3500
|
K(
|
|
3476
3501
|
[ue],
|
|
3477
3502
|
([e]) => Object.keys(e)
|
|
3478
3503
|
);
|
|
3479
|
-
ue.subscribe((e) =>
|
|
3504
|
+
ue.subscribe((e) => We = e);
|
|
3480
3505
|
const pe = {};
|
|
3481
|
-
function
|
|
3506
|
+
function Fn(e, t) {
|
|
3482
3507
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3483
3508
|
}
|
|
3484
|
-
function
|
|
3509
|
+
function Zt(e) {
|
|
3485
3510
|
return pe[e];
|
|
3486
3511
|
}
|
|
3487
|
-
function
|
|
3512
|
+
function jn(e) {
|
|
3488
3513
|
return ve(e).map((t) => {
|
|
3489
|
-
const r =
|
|
3514
|
+
const r = Zt(t);
|
|
3490
3515
|
return [t, r ? [...r] : []];
|
|
3491
3516
|
}).filter(([, t]) => t.length > 0);
|
|
3492
3517
|
}
|
|
@@ -3494,31 +3519,31 @@ function je(e) {
|
|
|
3494
3519
|
return e == null ? !1 : ve(e).some(
|
|
3495
3520
|
(t) => {
|
|
3496
3521
|
var r;
|
|
3497
|
-
return (r =
|
|
3522
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3498
3523
|
}
|
|
3499
3524
|
);
|
|
3500
3525
|
}
|
|
3501
|
-
function
|
|
3526
|
+
function kn(e, t) {
|
|
3502
3527
|
return Promise.all(
|
|
3503
|
-
t.map((n) => (
|
|
3504
|
-
).then((n) =>
|
|
3528
|
+
t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
|
|
3529
|
+
).then((n) => Wt(e, ...n));
|
|
3505
3530
|
}
|
|
3506
3531
|
const re = {};
|
|
3507
|
-
function
|
|
3532
|
+
function Qt(e) {
|
|
3508
3533
|
if (!je(e))
|
|
3509
3534
|
return e in re ? re[e] : Promise.resolve();
|
|
3510
|
-
const t =
|
|
3535
|
+
const t = jn(e);
|
|
3511
3536
|
return re[e] = Promise.all(
|
|
3512
3537
|
t.map(
|
|
3513
|
-
([r, n]) =>
|
|
3538
|
+
([r, n]) => kn(r, n)
|
|
3514
3539
|
)
|
|
3515
3540
|
).then(() => {
|
|
3516
3541
|
if (je(e))
|
|
3517
|
-
return
|
|
3542
|
+
return Qt(e);
|
|
3518
3543
|
delete re[e];
|
|
3519
3544
|
}), re[e];
|
|
3520
3545
|
}
|
|
3521
|
-
const
|
|
3546
|
+
const Vn = {
|
|
3522
3547
|
number: {
|
|
3523
3548
|
scientific: { notation: "scientific" },
|
|
3524
3549
|
engineering: { notation: "engineering" },
|
|
@@ -3547,34 +3572,34 @@ const kn = {
|
|
|
3547
3572
|
timeZoneName: "short"
|
|
3548
3573
|
}
|
|
3549
3574
|
}
|
|
3550
|
-
},
|
|
3575
|
+
}, Xn = {
|
|
3551
3576
|
fallbackLocale: null,
|
|
3552
3577
|
loadingDelay: 200,
|
|
3553
|
-
formats:
|
|
3578
|
+
formats: Vn,
|
|
3554
3579
|
warnOnMissingMessages: !0,
|
|
3555
3580
|
handleMissingMessage: void 0,
|
|
3556
3581
|
ignoreTag: !0
|
|
3557
|
-
},
|
|
3582
|
+
}, zn = Xn;
|
|
3558
3583
|
function q() {
|
|
3559
|
-
return
|
|
3584
|
+
return zn;
|
|
3560
3585
|
}
|
|
3561
|
-
const Pe =
|
|
3562
|
-
var
|
|
3586
|
+
const Pe = xe(!1);
|
|
3587
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3563
3588
|
for (var r in t || (t = {}))
|
|
3564
|
-
|
|
3565
|
-
if (
|
|
3566
|
-
for (var r of
|
|
3567
|
-
|
|
3589
|
+
Jn.call(t, r) && mt(e, r, t[r]);
|
|
3590
|
+
if (gt)
|
|
3591
|
+
for (var r of gt(t))
|
|
3592
|
+
qn.call(t, r) && mt(e, r, t[r]);
|
|
3568
3593
|
return e;
|
|
3569
|
-
},
|
|
3594
|
+
}, Kn = (e, t) => Zn(e, Qn(t));
|
|
3570
3595
|
let ke;
|
|
3571
|
-
const be =
|
|
3572
|
-
function
|
|
3596
|
+
const be = xe(null);
|
|
3597
|
+
function pt(e) {
|
|
3573
3598
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3574
3599
|
}
|
|
3575
3600
|
function ve(e, t = q().fallbackLocale) {
|
|
3576
|
-
const r =
|
|
3577
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3601
|
+
const r = pt(e);
|
|
3602
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3578
3603
|
}
|
|
3579
3604
|
function k() {
|
|
3580
3605
|
return ke != null ? ke : void 0;
|
|
@@ -3582,22 +3607,22 @@ function k() {
|
|
|
3582
3607
|
be.subscribe((e) => {
|
|
3583
3608
|
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3584
3609
|
});
|
|
3585
|
-
const
|
|
3586
|
-
if (e &&
|
|
3610
|
+
const ei = (e) => {
|
|
3611
|
+
if (e && Dn(e) && je(e)) {
|
|
3587
3612
|
const { loadingDelay: t } = q();
|
|
3588
3613
|
let r;
|
|
3589
3614
|
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
3590
3615
|
() => Pe.set(!0),
|
|
3591
3616
|
t
|
|
3592
|
-
) : Pe.set(!0),
|
|
3617
|
+
) : Pe.set(!0), Qt(e).then(() => {
|
|
3593
3618
|
be.set(e);
|
|
3594
3619
|
}).finally(() => {
|
|
3595
3620
|
clearTimeout(r), Pe.set(!1);
|
|
3596
3621
|
});
|
|
3597
3622
|
}
|
|
3598
3623
|
return be.set(e);
|
|
3599
|
-
}, ee = Yn(
|
|
3600
|
-
set:
|
|
3624
|
+
}, ee = Kn(Yn({}, be), {
|
|
3625
|
+
set: ei
|
|
3601
3626
|
}), Te = (e) => {
|
|
3602
3627
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3603
3628
|
return (n) => {
|
|
@@ -3605,120 +3630,120 @@ const Kn = (e) => {
|
|
|
3605
3630
|
return i in t ? t[i] : t[i] = e(n);
|
|
3606
3631
|
};
|
|
3607
3632
|
};
|
|
3608
|
-
var
|
|
3633
|
+
var ti = Object.defineProperty, ye = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3609
3634
|
for (var r in t || (t = {}))
|
|
3610
|
-
|
|
3635
|
+
Jt.call(t, r) && dt(e, r, t[r]);
|
|
3611
3636
|
if (ye)
|
|
3612
3637
|
for (var r of ye(t))
|
|
3613
|
-
|
|
3638
|
+
qt.call(t, r) && dt(e, r, t[r]);
|
|
3614
3639
|
return e;
|
|
3615
3640
|
}, te = (e, t) => {
|
|
3616
3641
|
var r = {};
|
|
3617
3642
|
for (var n in e)
|
|
3618
|
-
|
|
3643
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3619
3644
|
if (e != null && ye)
|
|
3620
3645
|
for (var n of ye(e))
|
|
3621
|
-
t.indexOf(n) < 0 &&
|
|
3646
|
+
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3622
3647
|
return r;
|
|
3623
3648
|
};
|
|
3624
|
-
const
|
|
3649
|
+
const oe = (e, t) => {
|
|
3625
3650
|
const { formats: r } = q();
|
|
3626
3651
|
if (e in r && t in r[e])
|
|
3627
3652
|
return r[e][t];
|
|
3628
3653
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3629
|
-
},
|
|
3654
|
+
}, ri = Te(
|
|
3630
3655
|
(e) => {
|
|
3631
3656
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3632
3657
|
if (r == null)
|
|
3633
3658
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3634
|
-
return n && (i =
|
|
3659
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3635
3660
|
}
|
|
3636
|
-
),
|
|
3661
|
+
), ni = Te(
|
|
3637
3662
|
(e) => {
|
|
3638
3663
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3639
3664
|
if (r == null)
|
|
3640
3665
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3641
|
-
return n ? i =
|
|
3666
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3667
|
}
|
|
3643
|
-
),
|
|
3668
|
+
), ii = Te(
|
|
3644
3669
|
(e) => {
|
|
3645
3670
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3646
3671
|
if (r == null)
|
|
3647
3672
|
throw new Error(
|
|
3648
3673
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3649
3674
|
);
|
|
3650
|
-
return n ? i =
|
|
3675
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3651
3676
|
}
|
|
3652
|
-
),
|
|
3677
|
+
), si = (e = {}) => {
|
|
3653
3678
|
var t = e, {
|
|
3654
3679
|
locale: r = k()
|
|
3655
3680
|
} = t, n = te(t, [
|
|
3656
3681
|
"locale"
|
|
3657
3682
|
]);
|
|
3658
|
-
return
|
|
3683
|
+
return ri(Ze({ locale: r }, n));
|
|
3659
3684
|
}, oi = (e = {}) => {
|
|
3660
3685
|
var t = e, {
|
|
3661
3686
|
locale: r = k()
|
|
3662
3687
|
} = t, n = te(t, [
|
|
3663
3688
|
"locale"
|
|
3664
3689
|
]);
|
|
3665
|
-
return
|
|
3666
|
-
},
|
|
3690
|
+
return ni(Ze({ locale: r }, n));
|
|
3691
|
+
}, ai = (e = {}) => {
|
|
3667
3692
|
var t = e, {
|
|
3668
3693
|
locale: r = k()
|
|
3669
3694
|
} = t, n = te(t, [
|
|
3670
3695
|
"locale"
|
|
3671
3696
|
]);
|
|
3672
|
-
return
|
|
3673
|
-
},
|
|
3697
|
+
return ii(Ze({ locale: r }, n));
|
|
3698
|
+
}, ui = Te(
|
|
3674
3699
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3675
|
-
(e, t = k()) => new
|
|
3700
|
+
(e, t = k()) => new Mn(e, t, q().formats, {
|
|
3676
3701
|
ignoreTag: q().ignoreTag
|
|
3677
3702
|
})
|
|
3678
|
-
),
|
|
3679
|
-
var r, n, i,
|
|
3680
|
-
let
|
|
3681
|
-
typeof e == "object" && (
|
|
3703
|
+
), hi = (e, t = {}) => {
|
|
3704
|
+
var r, n, i, s;
|
|
3705
|
+
let o = t;
|
|
3706
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3682
3707
|
const {
|
|
3683
3708
|
values: u,
|
|
3684
3709
|
locale: h = k(),
|
|
3685
3710
|
default: a
|
|
3686
|
-
} =
|
|
3711
|
+
} = o;
|
|
3687
3712
|
if (h == null)
|
|
3688
3713
|
throw new Error(
|
|
3689
3714
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3690
3715
|
);
|
|
3691
|
-
let l =
|
|
3716
|
+
let l = Xt(e, h);
|
|
3692
3717
|
if (!l)
|
|
3693
|
-
l = (
|
|
3718
|
+
l = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3694
3719
|
else if (typeof l != "string")
|
|
3695
3720
|
return console.warn(
|
|
3696
3721
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3697
3722
|
), l;
|
|
3698
3723
|
if (!u)
|
|
3699
3724
|
return l;
|
|
3700
|
-
let
|
|
3725
|
+
let f = l;
|
|
3701
3726
|
try {
|
|
3702
|
-
|
|
3703
|
-
} catch (
|
|
3704
|
-
|
|
3727
|
+
f = ui(l, h).format(u);
|
|
3728
|
+
} catch (c) {
|
|
3729
|
+
c instanceof Error && console.warn(
|
|
3705
3730
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3706
|
-
|
|
3731
|
+
c.message
|
|
3707
3732
|
);
|
|
3708
3733
|
}
|
|
3709
|
-
return
|
|
3710
|
-
},
|
|
3711
|
-
K([ee], () => hi);
|
|
3734
|
+
return f;
|
|
3735
|
+
}, li = (e, t) => ai(t).format(e), ci = (e, t) => oi(t).format(e), fi = (e, t) => si(t).format(e), gi = (e, t = k()) => Xt(e, t), mi = K([ee, ue], () => hi);
|
|
3712
3736
|
K([ee], () => li);
|
|
3737
|
+
K([ee], () => ci);
|
|
3713
3738
|
K([ee], () => fi);
|
|
3714
|
-
K([ee, ue], () =>
|
|
3715
|
-
function
|
|
3716
|
-
|
|
3739
|
+
K([ee, ue], () => gi);
|
|
3740
|
+
function bt(e, t) {
|
|
3741
|
+
Wt(e, t);
|
|
3717
3742
|
}
|
|
3718
|
-
function
|
|
3743
|
+
function pi(e) {
|
|
3719
3744
|
ee.set(e);
|
|
3720
3745
|
}
|
|
3721
|
-
const
|
|
3746
|
+
const yt = {
|
|
3722
3747
|
en: {
|
|
3723
3748
|
topCategories: "Top Categories",
|
|
3724
3749
|
otherCategories: "Other Categories",
|
|
@@ -3828,13 +3853,13 @@ const dt = {
|
|
|
3828
3853
|
games: "games"
|
|
3829
3854
|
}
|
|
3830
3855
|
};
|
|
3831
|
-
function
|
|
3856
|
+
function di(e, t) {
|
|
3832
3857
|
if (e) {
|
|
3833
3858
|
const r = document.createElement("style");
|
|
3834
3859
|
r.innerHTML = t, e.appendChild(r);
|
|
3835
3860
|
}
|
|
3836
3861
|
}
|
|
3837
|
-
function
|
|
3862
|
+
function bi(e, t) {
|
|
3838
3863
|
const r = new URL(t);
|
|
3839
3864
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3840
3865
|
const i = document.createElement("style");
|
|
@@ -3843,7 +3868,7 @@ function di(e, t) {
|
|
|
3843
3868
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3844
3869
|
});
|
|
3845
3870
|
}
|
|
3846
|
-
function
|
|
3871
|
+
function yi(e, t, r) {
|
|
3847
3872
|
if (window.emMessageBus) {
|
|
3848
3873
|
const n = document.createElement("style");
|
|
3849
3874
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3851,14 +3876,14 @@ function bi(e, t, r) {
|
|
|
3851
3876
|
});
|
|
3852
3877
|
}
|
|
3853
3878
|
}
|
|
3854
|
-
function
|
|
3855
|
-
|
|
3879
|
+
function xi(e) {
|
|
3880
|
+
ar(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}");
|
|
3856
3881
|
}
|
|
3857
|
-
function
|
|
3882
|
+
function xt(e, t, r) {
|
|
3858
3883
|
const n = e.slice();
|
|
3859
3884
|
return n[23] = t[r], n;
|
|
3860
3885
|
}
|
|
3861
|
-
function
|
|
3886
|
+
function Et(e, t, r) {
|
|
3862
3887
|
const n = e.slice();
|
|
3863
3888
|
return n[23] = t[r], n;
|
|
3864
3889
|
}
|
|
@@ -3866,36 +3891,36 @@ function Ei(e) {
|
|
|
3866
3891
|
let t, r, n = (
|
|
3867
3892
|
/*$_*/
|
|
3868
3893
|
e[5]("topCategories") + ""
|
|
3869
|
-
), i,
|
|
3894
|
+
), i, s, o, u, h = (
|
|
3870
3895
|
/*$_*/
|
|
3871
3896
|
e[5]("otherCategories") + ""
|
|
3872
|
-
), a, l,
|
|
3897
|
+
), a, l, f = ce(
|
|
3873
3898
|
/*topCategories*/
|
|
3874
3899
|
e[3]
|
|
3875
|
-
),
|
|
3876
|
-
for (let g = 0; g <
|
|
3877
|
-
|
|
3878
|
-
let p =
|
|
3900
|
+
), c = [];
|
|
3901
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3902
|
+
c[g] = _t(Et(e, f, g));
|
|
3903
|
+
let p = ce(
|
|
3879
3904
|
/*otherCategories*/
|
|
3880
3905
|
e[4]
|
|
3881
3906
|
), d = [];
|
|
3882
3907
|
for (let g = 0; g < p.length; g += 1)
|
|
3883
|
-
d[g] = xt(
|
|
3908
|
+
d[g] = vt(xt(e, p, g));
|
|
3884
3909
|
return {
|
|
3885
3910
|
c() {
|
|
3886
|
-
t = O("div"), r = O("h4"), i = U(n),
|
|
3887
|
-
for (let g = 0; g <
|
|
3888
|
-
|
|
3889
|
-
|
|
3911
|
+
t = O("div"), r = O("h4"), i = U(n), s = R();
|
|
3912
|
+
for (let g = 0; g < c.length; g += 1)
|
|
3913
|
+
c[g].c();
|
|
3914
|
+
o = R(), u = O("h4"), a = U(h), l = R();
|
|
3890
3915
|
for (let g = 0; g < d.length; g += 1)
|
|
3891
3916
|
d[g].c();
|
|
3892
3917
|
A(r, "class", "CategoryTitle"), A(u, "class", "CategoryTitle"), A(t, "class", "CasinoCategories");
|
|
3893
3918
|
},
|
|
3894
3919
|
m(g, _) {
|
|
3895
|
-
Y(g, t, _), v(t, r), v(r, i), v(t,
|
|
3896
|
-
for (let m = 0; m <
|
|
3897
|
-
|
|
3898
|
-
v(t,
|
|
3920
|
+
Y(g, t, _), v(t, r), v(r, i), v(t, s);
|
|
3921
|
+
for (let m = 0; m < c.length; m += 1)
|
|
3922
|
+
c[m] && c[m].m(t, null);
|
|
3923
|
+
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3899
3924
|
for (let m = 0; m < d.length; m += 1)
|
|
3900
3925
|
d[m] && d[m].m(t, null);
|
|
3901
3926
|
},
|
|
@@ -3904,31 +3929,31 @@ function Ei(e) {
|
|
|
3904
3929
|
32 && n !== (n = /*$_*/
|
|
3905
3930
|
g[5]("topCategories") + "") && D(i, n), _ & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3906
3931
|
105) {
|
|
3907
|
-
|
|
3932
|
+
f = ce(
|
|
3908
3933
|
/*topCategories*/
|
|
3909
3934
|
g[3]
|
|
3910
3935
|
);
|
|
3911
3936
|
let m;
|
|
3912
|
-
for (m = 0; m <
|
|
3913
|
-
const
|
|
3914
|
-
|
|
3937
|
+
for (m = 0; m < f.length; m += 1) {
|
|
3938
|
+
const H = Et(g, f, m);
|
|
3939
|
+
c[m] ? c[m].p(H, _) : (c[m] = _t(H), c[m].c(), c[m].m(t, o));
|
|
3915
3940
|
}
|
|
3916
|
-
for (; m <
|
|
3917
|
-
|
|
3918
|
-
|
|
3941
|
+
for (; m < c.length; m += 1)
|
|
3942
|
+
c[m].d(1);
|
|
3943
|
+
c.length = f.length;
|
|
3919
3944
|
}
|
|
3920
3945
|
if (_ & /*$_*/
|
|
3921
3946
|
32 && h !== (h = /*$_*/
|
|
3922
3947
|
g[5]("otherCategories") + "") && D(a, h), _ & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3923
3948
|
113) {
|
|
3924
|
-
p =
|
|
3949
|
+
p = ce(
|
|
3925
3950
|
/*otherCategories*/
|
|
3926
3951
|
g[4]
|
|
3927
3952
|
);
|
|
3928
3953
|
let m;
|
|
3929
3954
|
for (m = 0; m < p.length; m += 1) {
|
|
3930
|
-
const
|
|
3931
|
-
d[m] ? d[m].p(
|
|
3955
|
+
const H = xt(g, p, m);
|
|
3956
|
+
d[m] ? d[m].p(H, _) : (d[m] = vt(H), d[m].c(), d[m].m(t, null));
|
|
3932
3957
|
}
|
|
3933
3958
|
for (; m < d.length; m += 1)
|
|
3934
3959
|
d[m].d(1);
|
|
@@ -3936,11 +3961,11 @@ function Ei(e) {
|
|
|
3936
3961
|
}
|
|
3937
3962
|
},
|
|
3938
3963
|
d(g) {
|
|
3939
|
-
g && j(t),
|
|
3964
|
+
g && j(t), rt(c, g), rt(d, g);
|
|
3940
3965
|
}
|
|
3941
3966
|
};
|
|
3942
3967
|
}
|
|
3943
|
-
function
|
|
3968
|
+
function _i(e) {
|
|
3944
3969
|
let t;
|
|
3945
3970
|
return {
|
|
3946
3971
|
c() {
|
|
@@ -3955,17 +3980,17 @@ function xi(e) {
|
|
|
3955
3980
|
}
|
|
3956
3981
|
};
|
|
3957
3982
|
}
|
|
3958
|
-
function
|
|
3959
|
-
let t, r, n, i,
|
|
3983
|
+
function _t(e) {
|
|
3984
|
+
let t, r, n, i, s, o, u, h = (
|
|
3960
3985
|
/*category*/
|
|
3961
3986
|
e[23].name + ""
|
|
3962
|
-
), a, l,
|
|
3987
|
+
), a, l, f, c = (
|
|
3963
3988
|
/*category*/
|
|
3964
3989
|
e[23].games.count + ""
|
|
3965
3990
|
), p, d, g = (
|
|
3966
3991
|
/*$_*/
|
|
3967
3992
|
e[5]("games") + ""
|
|
3968
|
-
), _, m,
|
|
3993
|
+
), _, m, H, B;
|
|
3969
3994
|
function P() {
|
|
3970
3995
|
return (
|
|
3971
3996
|
/*click_handler*/
|
|
@@ -3977,48 +4002,48 @@ function Et(e) {
|
|
|
3977
4002
|
}
|
|
3978
4003
|
return {
|
|
3979
4004
|
c() {
|
|
3980
|
-
t = O("div"), r = O("img"),
|
|
4005
|
+
t = O("div"), r = O("img"), s = R(), o = O("div"), u = O("p"), a = U(h), l = R(), f = O("p"), p = U(c), d = R(), _ = U(g), de(r.src, n = /*category*/
|
|
3981
4006
|
e[23].icon) || A(r, "src", n), A(r, "alt", i = /*category*/
|
|
3982
|
-
e[23].name), A(r, "class", "CategoryImage"), A(
|
|
4007
|
+
e[23].name), A(r, "class", "CategoryImage"), A(o, "class", "CategoryTextContainer"), A(t, "class", m = "Category " + /*activecategory*/
|
|
3983
4008
|
(e[0] === /*category*/
|
|
3984
4009
|
e[23].id ? "Active" : ""));
|
|
3985
4010
|
},
|
|
3986
|
-
m(
|
|
3987
|
-
Y(
|
|
4011
|
+
m(S, C) {
|
|
4012
|
+
Y(S, t, C), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, f), v(f, p), v(f, d), v(f, _), H || (B = At(t, "click", P), H = !0);
|
|
3988
4013
|
},
|
|
3989
|
-
p(
|
|
3990
|
-
e =
|
|
4014
|
+
p(S, C) {
|
|
4015
|
+
e = S, C & /*topCategories*/
|
|
3991
4016
|
8 && !de(r.src, n = /*category*/
|
|
3992
|
-
e[23].icon) && A(r, "src", n),
|
|
4017
|
+
e[23].icon) && A(r, "src", n), C & /*topCategories*/
|
|
3993
4018
|
8 && i !== (i = /*category*/
|
|
3994
|
-
e[23].name) && A(r, "alt", i),
|
|
4019
|
+
e[23].name) && A(r, "alt", i), C & /*topCategories*/
|
|
3995
4020
|
8 && h !== (h = /*category*/
|
|
3996
|
-
e[23].name + "") && D(a, h),
|
|
3997
|
-
8 &&
|
|
3998
|
-
e[23].games.count + "") && D(p,
|
|
4021
|
+
e[23].name + "") && D(a, h), C & /*topCategories*/
|
|
4022
|
+
8 && c !== (c = /*category*/
|
|
4023
|
+
e[23].games.count + "") && D(p, c), C & /*$_*/
|
|
3999
4024
|
32 && g !== (g = /*$_*/
|
|
4000
|
-
e[5]("games") + "") && D(_, g),
|
|
4025
|
+
e[5]("games") + "") && D(_, g), C & /*activecategory, topCategories*/
|
|
4001
4026
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4002
4027
|
(e[0] === /*category*/
|
|
4003
4028
|
e[23].id ? "Active" : "")) && A(t, "class", m);
|
|
4004
4029
|
},
|
|
4005
|
-
d(
|
|
4006
|
-
|
|
4030
|
+
d(S) {
|
|
4031
|
+
S && j(t), H = !1, B();
|
|
4007
4032
|
}
|
|
4008
4033
|
};
|
|
4009
4034
|
}
|
|
4010
|
-
function
|
|
4011
|
-
let t, r, n, i,
|
|
4035
|
+
function vt(e) {
|
|
4036
|
+
let t, r, n, i, s, o, u, h = (
|
|
4012
4037
|
/*category*/
|
|
4013
4038
|
e[23].name + ""
|
|
4014
|
-
), a, l,
|
|
4039
|
+
), a, l, f, c = (
|
|
4015
4040
|
/*category*/
|
|
4016
4041
|
e[23].games.count + ""
|
|
4017
4042
|
), p, d, g = (
|
|
4018
4043
|
/*$_*/
|
|
4019
4044
|
e[5]("games") + ""
|
|
4020
|
-
), _, m,
|
|
4021
|
-
function
|
|
4045
|
+
), _, m, H, B, P;
|
|
4046
|
+
function S() {
|
|
4022
4047
|
return (
|
|
4023
4048
|
/*click_handler_1*/
|
|
4024
4049
|
e[16](
|
|
@@ -4029,42 +4054,42 @@ function xt(e) {
|
|
|
4029
4054
|
}
|
|
4030
4055
|
return {
|
|
4031
4056
|
c() {
|
|
4032
|
-
t = O("div"), r = O("img"),
|
|
4057
|
+
t = O("div"), r = O("img"), s = R(), o = O("div"), u = O("p"), a = U(h), l = R(), f = O("p"), p = U(c), d = R(), _ = U(g), m = R(), de(r.src, n = /*category*/
|
|
4033
4058
|
e[23].icon) || A(r, "src", n), A(r, "alt", i = /*category*/
|
|
4034
|
-
e[23].name), A(r, "class", "CategoryImage"), A(
|
|
4059
|
+
e[23].name), A(r, "class", "CategoryImage"), A(o, "class", "CategoryTextContainer"), A(t, "class", H = "Category " + /*activecategory*/
|
|
4035
4060
|
(e[0] === /*category*/
|
|
4036
4061
|
e[23].id ? "Active" : ""));
|
|
4037
4062
|
},
|
|
4038
|
-
m(
|
|
4039
|
-
Y(
|
|
4063
|
+
m(C, N) {
|
|
4064
|
+
Y(C, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, f), v(f, p), v(f, d), v(f, _), v(t, m), B || (P = At(t, "click", S), B = !0);
|
|
4040
4065
|
},
|
|
4041
|
-
p(
|
|
4042
|
-
e =
|
|
4066
|
+
p(C, N) {
|
|
4067
|
+
e = C, N & /*otherCategories*/
|
|
4043
4068
|
16 && !de(r.src, n = /*category*/
|
|
4044
4069
|
e[23].icon) && A(r, "src", n), N & /*otherCategories*/
|
|
4045
4070
|
16 && i !== (i = /*category*/
|
|
4046
4071
|
e[23].name) && A(r, "alt", i), N & /*otherCategories*/
|
|
4047
4072
|
16 && h !== (h = /*category*/
|
|
4048
4073
|
e[23].name + "") && D(a, h), N & /*otherCategories*/
|
|
4049
|
-
16 &&
|
|
4050
|
-
e[23].games.count + "") && D(p,
|
|
4074
|
+
16 && c !== (c = /*category*/
|
|
4075
|
+
e[23].games.count + "") && D(p, c), N & /*$_*/
|
|
4051
4076
|
32 && g !== (g = /*$_*/
|
|
4052
4077
|
e[5]("games") + "") && D(_, g), N & /*activecategory, otherCategories*/
|
|
4053
|
-
17 &&
|
|
4078
|
+
17 && H !== (H = "Category " + /*activecategory*/
|
|
4054
4079
|
(e[0] === /*category*/
|
|
4055
|
-
e[23].id ? "Active" : "")) && A(t, "class",
|
|
4080
|
+
e[23].id ? "Active" : "")) && A(t, "class", H);
|
|
4056
4081
|
},
|
|
4057
|
-
d(
|
|
4058
|
-
|
|
4082
|
+
d(C) {
|
|
4083
|
+
C && j(t), B = !1, P();
|
|
4059
4084
|
}
|
|
4060
4085
|
};
|
|
4061
4086
|
}
|
|
4062
|
-
function
|
|
4087
|
+
function vi(e) {
|
|
4063
4088
|
let t;
|
|
4064
|
-
function r(
|
|
4089
|
+
function r(s, o) {
|
|
4065
4090
|
return (
|
|
4066
4091
|
/*isLoading*/
|
|
4067
|
-
|
|
4092
|
+
s[2] ? _i : Ei
|
|
4068
4093
|
);
|
|
4069
4094
|
}
|
|
4070
4095
|
let n = r(e), i = n(e);
|
|
@@ -4072,72 +4097,72 @@ function _i(e) {
|
|
|
4072
4097
|
c() {
|
|
4073
4098
|
t = O("div"), i.c();
|
|
4074
4099
|
},
|
|
4075
|
-
m(
|
|
4076
|
-
Y(
|
|
4100
|
+
m(s, o) {
|
|
4101
|
+
Y(s, t, o), i.m(t, null), e[17](t);
|
|
4077
4102
|
},
|
|
4078
|
-
p(
|
|
4079
|
-
n === (n = r(
|
|
4103
|
+
p(s, [o]) {
|
|
4104
|
+
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4080
4105
|
},
|
|
4081
4106
|
i: I,
|
|
4082
4107
|
o: I,
|
|
4083
|
-
d(
|
|
4084
|
-
|
|
4108
|
+
d(s) {
|
|
4109
|
+
s && j(t), i.d(), e[17](null);
|
|
4085
4110
|
}
|
|
4086
4111
|
};
|
|
4087
4112
|
}
|
|
4088
|
-
function
|
|
4113
|
+
function Ti(e, t, r) {
|
|
4089
4114
|
let n;
|
|
4090
|
-
|
|
4091
|
-
let { endpoint: i = "" } = t, { datasource:
|
|
4115
|
+
or(e, mi, (b) => r(5, n = b));
|
|
4116
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d = !1;
|
|
4092
4117
|
const g = [];
|
|
4093
4118
|
let _ = [], m = [];
|
|
4094
|
-
Object.keys(
|
|
4095
|
-
|
|
4119
|
+
Object.keys(yt).forEach((b) => {
|
|
4120
|
+
bt(b, yt[b]);
|
|
4096
4121
|
});
|
|
4097
|
-
const
|
|
4098
|
-
fetch(
|
|
4122
|
+
const H = () => {
|
|
4123
|
+
fetch(f).then(($) => $.json()).then(($) => {
|
|
4099
4124
|
Object.keys($).forEach((he) => {
|
|
4100
|
-
|
|
4125
|
+
bt(he, $[he]);
|
|
4101
4126
|
});
|
|
4102
4127
|
}).catch(($) => {
|
|
4103
4128
|
console.log($);
|
|
4104
4129
|
});
|
|
4105
|
-
},
|
|
4130
|
+
}, B = () => {
|
|
4106
4131
|
r(2, d = !0);
|
|
4107
|
-
const b = new URL(`${i}/v1/casino/groups/${
|
|
4108
|
-
b.searchParams.append("language",
|
|
4132
|
+
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4133
|
+
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4109
4134
|
r(2, d = !1);
|
|
4110
4135
|
const he = h.split(",").map((F) => F.trim());
|
|
4111
4136
|
g.push(...$.items);
|
|
4112
|
-
const
|
|
4113
|
-
var
|
|
4114
|
-
return ((
|
|
4137
|
+
const Qe = g.filter((F) => !he.some((Kt) => {
|
|
4138
|
+
var Je;
|
|
4139
|
+
return ((Je = F.flags) == null ? void 0 : Je.indexOf(Kt)) >= 0;
|
|
4115
4140
|
}));
|
|
4116
|
-
r(3, _ =
|
|
4141
|
+
r(3, _ = Qe.filter((F) => F.isTopCategory === !0)), r(4, m = Qe.filter((F) => F.isTopCategory === !1));
|
|
4117
4142
|
});
|
|
4118
4143
|
}, P = (b) => {
|
|
4119
4144
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4120
|
-
},
|
|
4121
|
-
|
|
4145
|
+
}, S = () => {
|
|
4146
|
+
pi(o);
|
|
4122
4147
|
};
|
|
4123
|
-
|
|
4148
|
+
gr(() => () => {
|
|
4124
4149
|
});
|
|
4125
|
-
const
|
|
4126
|
-
function
|
|
4150
|
+
const C = (b) => P(b.id), N = (b) => P(b.id);
|
|
4151
|
+
function Yt(b) {
|
|
4127
4152
|
Ne[b ? "unshift" : "push"](() => {
|
|
4128
4153
|
p = b, r(1, p);
|
|
4129
4154
|
});
|
|
4130
4155
|
}
|
|
4131
4156
|
return e.$$set = (b) => {
|
|
4132
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8,
|
|
4157
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
|
|
4133
4158
|
}, e.$$.update = () => {
|
|
4134
4159
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4135
|
-
384 && i &&
|
|
4136
|
-
8192 &&
|
|
4137
|
-
512 &&
|
|
4138
|
-
2050 && a && p &&
|
|
4139
|
-
4098 && l && p &&
|
|
4140
|
-
16386 &&
|
|
4160
|
+
384 && i && s && B(), e.$$.dirty & /*translationurl*/
|
|
4161
|
+
8192 && f && H(), e.$$.dirty & /*lang*/
|
|
4162
|
+
512 && o && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4163
|
+
2050 && a && p && di(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4164
|
+
4098 && l && p && bi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4165
|
+
16386 && c && p && yi(p, `${c}.Style`);
|
|
4141
4166
|
}, [
|
|
4142
4167
|
u,
|
|
4143
4168
|
p,
|
|
@@ -4147,26 +4172,26 @@ function vi(e, t, r) {
|
|
|
4147
4172
|
n,
|
|
4148
4173
|
P,
|
|
4149
4174
|
i,
|
|
4150
|
-
o,
|
|
4151
4175
|
s,
|
|
4176
|
+
o,
|
|
4152
4177
|
h,
|
|
4153
4178
|
a,
|
|
4154
4179
|
l,
|
|
4155
|
-
c,
|
|
4156
4180
|
f,
|
|
4157
|
-
|
|
4181
|
+
c,
|
|
4182
|
+
C,
|
|
4158
4183
|
N,
|
|
4159
|
-
|
|
4184
|
+
Yt
|
|
4160
4185
|
];
|
|
4161
4186
|
}
|
|
4162
|
-
class
|
|
4187
|
+
class Hi extends Cr {
|
|
4163
4188
|
constructor(t) {
|
|
4164
|
-
super(),
|
|
4189
|
+
super(), Tr(
|
|
4165
4190
|
this,
|
|
4166
4191
|
t,
|
|
4192
|
+
Ti,
|
|
4167
4193
|
vi,
|
|
4168
|
-
|
|
4169
|
-
vt,
|
|
4194
|
+
Ht,
|
|
4170
4195
|
{
|
|
4171
4196
|
endpoint: 7,
|
|
4172
4197
|
datasource: 8,
|
|
@@ -4178,7 +4203,7 @@ class Ti extends Tr {
|
|
|
4178
4203
|
translationurl: 13,
|
|
4179
4204
|
mbsource: 14
|
|
4180
4205
|
},
|
|
4181
|
-
|
|
4206
|
+
xi
|
|
4182
4207
|
);
|
|
4183
4208
|
}
|
|
4184
4209
|
get endpoint() {
|
|
@@ -4236,7 +4261,7 @@ class Ti extends Tr {
|
|
|
4236
4261
|
this.$$set({ mbsource: t }), M();
|
|
4237
4262
|
}
|
|
4238
4263
|
}
|
|
4239
|
-
|
|
4264
|
+
Hr(Hi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4240
4265
|
export {
|
|
4241
|
-
|
|
4266
|
+
Hi as default
|
|
4242
4267
|
};
|