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