@everymatrix/casino-providers 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoProviders-BYYBUFLe.cjs +16 -0
- package/components/{CasinoProviders-qQkwlKEj.js → CasinoProviders-LwC7cLP2.js} +687 -689
- package/components/{CasinoProviders-BqMPCH3r.js → CasinoProviders-ofpGnWLA.js} +700 -702
- package/es2015/casino-providers.cjs +1 -1
- package/es2015/casino-providers.js +1 -1
- package/esnext/casino-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoProviders-D2WegCyi.cjs +0 -3
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function M() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function dt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Xe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(dt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function De(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function mt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let ae;
|
|
19
|
+
function de(e, t) {
|
|
20
|
+
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function jt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function gt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function kt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Vt(e, t, r) {
|
|
41
|
+
const n = Xt(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = A("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, zt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Xt(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function zt(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function zt(e, t) {
|
|
58
58
|
return y(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,7 +67,7 @@ function C(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ze(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -77,26 +77,26 @@ function A(e) {
|
|
|
77
77
|
function $(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function R() {
|
|
81
81
|
return $(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Wt() {
|
|
84
84
|
return $("");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function gt(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
89
|
function S(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Zt(e) {
|
|
93
93
|
return Array.from(e.childNodes);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function D(e, t) {
|
|
96
96
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
97
97
|
t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Qt(e) {
|
|
100
100
|
const t = {};
|
|
101
101
|
return e.childNodes.forEach(
|
|
102
102
|
/** @param {Element} node */
|
|
@@ -105,82 +105,82 @@ function qt(e) {
|
|
|
105
105
|
}
|
|
106
106
|
), t;
|
|
107
107
|
}
|
|
108
|
-
let
|
|
109
|
-
function
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
108
|
+
let Fe;
|
|
109
|
+
function re(e) {
|
|
110
|
+
Fe = e;
|
|
111
|
+
}
|
|
112
|
+
const z = [], Ae = [];
|
|
113
|
+
let W = [];
|
|
114
|
+
const We = [], qt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Oe = !1;
|
|
116
|
+
function Jt() {
|
|
117
|
+
Oe || (Oe = !0, qt.then(G));
|
|
118
|
+
}
|
|
119
|
+
function we(e) {
|
|
120
|
+
W.push(e);
|
|
121
|
+
}
|
|
122
|
+
const xe = /* @__PURE__ */ new Set();
|
|
123
|
+
let V = 0;
|
|
124
|
+
function G() {
|
|
125
|
+
if (V !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = Fe;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; V < z.length; ) {
|
|
131
|
+
const t = z[V];
|
|
132
|
+
V++, re(t), Yt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw z.length = 0, V = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
137
|
+
for (re(null), z.length = 0, V = 0; Ae.length; )
|
|
138
|
+
Ae.pop()();
|
|
139
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
140
|
+
const r = W[t];
|
|
141
|
+
xe.has(r) || (xe.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
W.length = 0;
|
|
144
|
+
} while (z.length);
|
|
145
|
+
for (; We.length; )
|
|
146
|
+
We.pop()();
|
|
147
|
+
Oe = !1, xe.clear(), re(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Yt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), se(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Kt(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const er = /* @__PURE__ */ new Set();
|
|
161
|
+
function tr(e, t) {
|
|
162
|
+
e && e.i && (er.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ue(e) {
|
|
165
165
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function rr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const s = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), we(() => {
|
|
170
|
+
const s = e.$$.on_mount.map(dt).filter(De);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(we);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function nr(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (Kt(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (
|
|
178
|
+
function ir(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (z.push(e), Jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const l =
|
|
183
|
-
|
|
181
|
+
function sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
182
|
+
const l = Fe;
|
|
183
|
+
re(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
188
188
|
props: s,
|
|
189
189
|
update: M,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: Xe(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: Xe(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || l.$$.root
|
|
204
204
|
};
|
|
205
205
|
o && o(u.root);
|
|
206
206
|
let h = !1;
|
|
207
|
-
if (u.ctx = r
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
210
|
-
})
|
|
207
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...g) => {
|
|
208
|
+
const p = g.length ? g[0] : f;
|
|
209
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), h && ir(e, c)), f;
|
|
210
|
+
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const c =
|
|
212
|
+
const c = Zt(t.target);
|
|
213
213
|
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && tr(e.$$.fragment), rr(e, t.target, t.anchor), G();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
re(l);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let bt;
|
|
221
|
+
typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -277,12 +277,12 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = Qt(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
284
284
|
const s = this.$$g_p(i.name);
|
|
285
|
-
s in this.$$d || (this.$$d[s] =
|
|
285
|
+
s in this.$$d || (this.$$d[s] = le(s, i.value, this.$$p_d, "toProp"));
|
|
286
286
|
}
|
|
287
287
|
for (const i in this.$$p_d)
|
|
288
288
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
300
300
|
this.$$r = !0;
|
|
301
301
|
for (const i in this.$$p_d)
|
|
302
302
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
303
|
-
const s =
|
|
303
|
+
const s = le(
|
|
304
304
|
i,
|
|
305
305
|
this.$$d[i],
|
|
306
306
|
this.$$p_d,
|
|
@@ -322,7 +322,7 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
322
322
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
323
323
|
// and setting attributes through setAttribute etc, this is helpful
|
|
324
324
|
attributeChangedCallback(e, t, r) {
|
|
325
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
325
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
326
326
|
}
|
|
327
327
|
disconnectedCallback() {
|
|
328
328
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
335
335
|
) || e;
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
function
|
|
338
|
+
function le(e, t, r, n) {
|
|
339
339
|
const i = r[e]?.type;
|
|
340
340
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
341
341
|
return t;
|
|
@@ -364,8 +364,8 @@ function fe(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let o = class extends
|
|
367
|
+
function or(e, t, r, n, i, s) {
|
|
368
|
+
let o = class extends bt {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -381,7 +381,7 @@ function ar(e, t, r, n, i, s) {
|
|
|
381
381
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
382
382
|
},
|
|
383
383
|
set(l) {
|
|
384
|
-
l =
|
|
384
|
+
l = le(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
}), n.forEach((a) => {
|
|
@@ -393,7 +393,7 @@ function ar(e, t, r, n, i, s) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
o, o;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class ar {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class ur {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
nr(this, 1), this.$destroy = M;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class ur {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!De(r))
|
|
425
425
|
return M;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,12 +434,12 @@ class ur {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
-
const
|
|
440
|
+
const ur = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
|
|
442
|
+
const Ze = {
|
|
443
443
|
en: {
|
|
444
444
|
popularProviders: "Popular Suppliers",
|
|
445
445
|
otherProviders: "Other Suppliers",
|
|
@@ -548,24 +548,24 @@ const Qe = {
|
|
|
548
548
|
loading: "Loading, please wait...",
|
|
549
549
|
games: "games"
|
|
550
550
|
}
|
|
551
|
-
},
|
|
552
|
-
function
|
|
551
|
+
}, X = [];
|
|
552
|
+
function hr(e, t) {
|
|
553
553
|
return {
|
|
554
|
-
subscribe:
|
|
554
|
+
subscribe: ge(e, t).subscribe
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ge(e, t = M) {
|
|
558
558
|
let r;
|
|
559
559
|
const n = /* @__PURE__ */ new Set();
|
|
560
560
|
function i(a) {
|
|
561
|
-
if (
|
|
562
|
-
const l = !
|
|
561
|
+
if (mt(e, a) && (e = a, r)) {
|
|
562
|
+
const l = !X.length;
|
|
563
563
|
for (const u of n)
|
|
564
|
-
u[1](),
|
|
564
|
+
u[1](), X.push(u, e);
|
|
565
565
|
if (l) {
|
|
566
|
-
for (let u = 0; u <
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
for (let u = 0; u < X.length; u += 2)
|
|
567
|
+
X[u][0](X[u + 1]);
|
|
568
|
+
X.length = 0;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
@@ -580,12 +580,12 @@ function ve(e, t = M) {
|
|
|
580
580
|
}
|
|
581
581
|
return { set: i, update: s, subscribe: o };
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Y(e, t, r) {
|
|
584
584
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
585
585
|
if (!i.every(Boolean))
|
|
586
586
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
587
587
|
const s = t.length < 2;
|
|
588
|
-
return
|
|
588
|
+
return hr(r, (o, a) => {
|
|
589
589
|
let l = !1;
|
|
590
590
|
const u = [];
|
|
591
591
|
let h = 0, c = M;
|
|
@@ -593,67 +593,67 @@ function K(e, t, r) {
|
|
|
593
593
|
if (h)
|
|
594
594
|
return;
|
|
595
595
|
c();
|
|
596
|
-
const
|
|
597
|
-
s ? o(
|
|
596
|
+
const p = t(n ? u[0] : u, o, a);
|
|
597
|
+
s ? o(p) : c = De(p) ? p : M;
|
|
598
598
|
}, g = i.map(
|
|
599
|
-
(
|
|
600
|
-
|
|
599
|
+
(p, d) => pt(
|
|
600
|
+
p,
|
|
601
601
|
(v) => {
|
|
602
|
-
u[
|
|
602
|
+
u[d] = v, h &= ~(1 << d), l && f();
|
|
603
603
|
},
|
|
604
604
|
() => {
|
|
605
|
-
h |= 1 <<
|
|
605
|
+
h |= 1 << d;
|
|
606
606
|
}
|
|
607
607
|
)
|
|
608
608
|
);
|
|
609
609
|
return l = !0, f(), function() {
|
|
610
|
-
|
|
610
|
+
se(g), c(), l = !1;
|
|
611
611
|
};
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
return e
|
|
614
|
+
function lr(e) {
|
|
615
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
return
|
|
617
|
+
var fr = function(t) {
|
|
618
|
+
return cr(t) && !dr(t);
|
|
619
619
|
};
|
|
620
|
-
function
|
|
620
|
+
function cr(e) {
|
|
621
621
|
return !!e && typeof e == "object";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function dr(e) {
|
|
624
624
|
var t = Object.prototype.toString.call(e);
|
|
625
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
625
|
+
return t === "[object RegExp]" || t === "[object Date]" || gr(e);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return e.$$typeof ===
|
|
627
|
+
var mr = typeof Symbol == "function" && Symbol.for, pr = mr ? Symbol.for("react.element") : 60103;
|
|
628
|
+
function gr(e) {
|
|
629
|
+
return e.$$typeof === pr;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function br(e) {
|
|
632
632
|
return Array.isArray(e) ? [] : {};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
634
|
+
function ne(e, t) {
|
|
635
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(br(e), e, t) : e;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function vr(e, t, r) {
|
|
638
638
|
return e.concat(t).map(function(n) {
|
|
639
|
-
return
|
|
639
|
+
return ne(n, r);
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function _r(e, t) {
|
|
643
643
|
if (!t.customMerge)
|
|
644
|
-
return
|
|
644
|
+
return Z;
|
|
645
645
|
var r = t.customMerge(e);
|
|
646
|
-
return typeof r == "function" ? r :
|
|
646
|
+
return typeof r == "function" ? r : Z;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Er(e) {
|
|
649
649
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
650
650
|
return Object.propertyIsEnumerable.call(e, t);
|
|
651
651
|
}) : [];
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return Object.keys(e).concat(
|
|
653
|
+
function Qe(e) {
|
|
654
|
+
return Object.keys(e).concat(Er(e));
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function vt(e, t) {
|
|
657
657
|
try {
|
|
658
658
|
return t in e;
|
|
659
659
|
} catch {
|
|
@@ -661,58 +661,72 @@ function _t(e, t) {
|
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
function xr(e, t) {
|
|
664
|
-
return
|
|
664
|
+
return vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function yr(e, t, r) {
|
|
667
667
|
var n = {};
|
|
668
|
-
return r.isMergeableObject(e) &&
|
|
669
|
-
n[i] =
|
|
670
|
-
}),
|
|
671
|
-
xr(e, i) || (
|
|
668
|
+
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
669
|
+
n[i] = ne(e[i], r);
|
|
670
|
+
}), Qe(t).forEach(function(i) {
|
|
671
|
+
xr(e, i) || (vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
672
672
|
}), n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
674
|
+
function Z(e, t, r) {
|
|
675
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || fr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
676
676
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
677
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
677
|
+
return s ? n ? r.arrayMerge(e, t, r) : yr(e, t, r) : ne(t, r);
|
|
678
678
|
}
|
|
679
|
-
|
|
679
|
+
Z.all = function(t, r) {
|
|
680
680
|
if (!Array.isArray(t))
|
|
681
681
|
throw new Error("first argument should be an array");
|
|
682
682
|
return t.reduce(function(n, i) {
|
|
683
|
-
return
|
|
683
|
+
return Z(n, i, r);
|
|
684
684
|
}, {});
|
|
685
685
|
};
|
|
686
|
-
var
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
|
|
686
|
+
var Pr = Z, Hr = Pr;
|
|
687
|
+
const Tr = /* @__PURE__ */ lr(Hr);
|
|
688
|
+
/*! *****************************************************************************
|
|
689
|
+
Copyright (c) Microsoft Corporation.
|
|
690
|
+
|
|
691
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
692
|
+
purpose with or without fee is hereby granted.
|
|
693
|
+
|
|
694
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
695
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
696
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
697
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
698
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
699
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
700
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
701
|
+
***************************************************************************** */
|
|
702
|
+
var Ne = function(e, t) {
|
|
703
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
690
704
|
r.__proto__ = n;
|
|
691
705
|
} || function(r, n) {
|
|
692
706
|
for (var i in n)
|
|
693
707
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
694
|
-
},
|
|
708
|
+
}, Ne(e, t);
|
|
695
709
|
};
|
|
696
|
-
function
|
|
710
|
+
function be(e, t) {
|
|
697
711
|
if (typeof t != "function" && t !== null)
|
|
698
712
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
699
|
-
|
|
713
|
+
Ne(e, t);
|
|
700
714
|
function r() {
|
|
701
715
|
this.constructor = e;
|
|
702
716
|
}
|
|
703
717
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
704
718
|
}
|
|
705
|
-
var
|
|
706
|
-
return
|
|
719
|
+
var x = function() {
|
|
720
|
+
return x = Object.assign || function(t) {
|
|
707
721
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
708
722
|
r = arguments[n];
|
|
709
723
|
for (var s in r)
|
|
710
724
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
711
725
|
}
|
|
712
726
|
return t;
|
|
713
|
-
},
|
|
727
|
+
}, x.apply(this, arguments);
|
|
714
728
|
};
|
|
715
|
-
function
|
|
729
|
+
function Sr(e, t) {
|
|
716
730
|
var r = {};
|
|
717
731
|
for (var n in e)
|
|
718
732
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -721,43 +735,46 @@ function Br(e, t) {
|
|
|
721
735
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
722
736
|
return r;
|
|
723
737
|
}
|
|
724
|
-
function
|
|
725
|
-
if (
|
|
738
|
+
function ye(e, t, r) {
|
|
739
|
+
if (arguments.length === 2)
|
|
726
740
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
727
741
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
728
|
-
return e.concat(s ||
|
|
742
|
+
return e.concat(s || t);
|
|
729
743
|
}
|
|
730
|
-
function
|
|
731
|
-
var r = t && t.cache ? t.cache :
|
|
744
|
+
function Pe(e, t) {
|
|
745
|
+
var r = t && t.cache ? t.cache : Ir, n = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Ar;
|
|
732
746
|
return i(e, {
|
|
733
747
|
cache: r,
|
|
734
748
|
serializer: n
|
|
735
749
|
});
|
|
736
750
|
}
|
|
737
|
-
function
|
|
751
|
+
function Br(e) {
|
|
738
752
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
739
753
|
}
|
|
740
|
-
function
|
|
741
|
-
var i =
|
|
754
|
+
function _t(e, t, r, n) {
|
|
755
|
+
var i = Br(n) ? n : r(n), s = t.get(i);
|
|
742
756
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
743
757
|
}
|
|
744
758
|
function Et(e, t, r) {
|
|
745
759
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
746
760
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
747
761
|
}
|
|
748
|
-
function
|
|
762
|
+
function je(e, t, r, n, i) {
|
|
749
763
|
return r.bind(t, e, n, i);
|
|
750
764
|
}
|
|
751
|
-
function
|
|
752
|
-
var r = e.length === 1 ?
|
|
753
|
-
return
|
|
765
|
+
function Ar(e, t) {
|
|
766
|
+
var r = e.length === 1 ? _t : Et;
|
|
767
|
+
return je(e, this, r, t.cache.create(), t.serializer);
|
|
754
768
|
}
|
|
755
|
-
function
|
|
756
|
-
return
|
|
769
|
+
function Or(e, t) {
|
|
770
|
+
return je(e, this, Et, t.cache.create(), t.serializer);
|
|
757
771
|
}
|
|
758
|
-
|
|
772
|
+
function wr(e, t) {
|
|
773
|
+
return je(e, this, _t, t.cache.create(), t.serializer);
|
|
774
|
+
}
|
|
775
|
+
var Nr = function() {
|
|
759
776
|
return JSON.stringify(arguments);
|
|
760
|
-
},
|
|
777
|
+
}, Lr = (
|
|
761
778
|
/** @class */
|
|
762
779
|
function() {
|
|
763
780
|
function e() {
|
|
@@ -769,71 +786,62 @@ var Lr = function() {
|
|
|
769
786
|
this.cache[t] = r;
|
|
770
787
|
}, e;
|
|
771
788
|
}()
|
|
772
|
-
),
|
|
789
|
+
), Ir = {
|
|
773
790
|
create: function() {
|
|
774
|
-
return new
|
|
791
|
+
return new Lr();
|
|
775
792
|
}
|
|
776
|
-
},
|
|
777
|
-
variadic:
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
781
|
-
r = arguments[n];
|
|
782
|
-
for (var s in r)
|
|
783
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
784
|
-
}
|
|
785
|
-
return t;
|
|
786
|
-
}, de.apply(this, arguments);
|
|
787
|
-
};
|
|
788
|
-
var _;
|
|
793
|
+
}, He = {
|
|
794
|
+
variadic: Or,
|
|
795
|
+
monadic: wr
|
|
796
|
+
}, _;
|
|
789
797
|
(function(e) {
|
|
790
798
|
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";
|
|
791
799
|
})(_ || (_ = {}));
|
|
792
|
-
var
|
|
800
|
+
var P;
|
|
793
801
|
(function(e) {
|
|
794
802
|
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";
|
|
795
|
-
})(
|
|
796
|
-
var
|
|
803
|
+
})(P || (P = {}));
|
|
804
|
+
var Q;
|
|
797
805
|
(function(e) {
|
|
798
806
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
799
|
-
})(
|
|
800
|
-
function
|
|
801
|
-
return e.type ===
|
|
807
|
+
})(Q || (Q = {}));
|
|
808
|
+
function qe(e) {
|
|
809
|
+
return e.type === P.literal;
|
|
802
810
|
}
|
|
803
|
-
function
|
|
804
|
-
return e.type ===
|
|
811
|
+
function Cr(e) {
|
|
812
|
+
return e.type === P.argument;
|
|
805
813
|
}
|
|
806
814
|
function xt(e) {
|
|
807
|
-
return e.type ===
|
|
815
|
+
return e.type === P.number;
|
|
816
|
+
}
|
|
817
|
+
function yt(e) {
|
|
818
|
+
return e.type === P.date;
|
|
808
819
|
}
|
|
809
820
|
function Pt(e) {
|
|
810
|
-
return e.type ===
|
|
821
|
+
return e.type === P.time;
|
|
811
822
|
}
|
|
812
823
|
function Ht(e) {
|
|
813
|
-
return e.type ===
|
|
824
|
+
return e.type === P.select;
|
|
814
825
|
}
|
|
815
826
|
function Tt(e) {
|
|
816
|
-
return e.type ===
|
|
827
|
+
return e.type === P.plural;
|
|
817
828
|
}
|
|
818
|
-
function
|
|
819
|
-
return e.type ===
|
|
829
|
+
function Mr(e) {
|
|
830
|
+
return e.type === P.pound;
|
|
820
831
|
}
|
|
821
|
-
function
|
|
822
|
-
return e.type ===
|
|
832
|
+
function St(e) {
|
|
833
|
+
return e.type === P.tag;
|
|
823
834
|
}
|
|
824
835
|
function Bt(e) {
|
|
825
|
-
return e.type ===
|
|
836
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
826
837
|
}
|
|
827
|
-
function
|
|
828
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
829
|
-
}
|
|
830
|
-
function Ce(e) {
|
|
831
|
-
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
838
|
+
function Le(e) {
|
|
839
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
832
840
|
}
|
|
833
|
-
var
|
|
834
|
-
function
|
|
841
|
+
var At = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $r = /(?:[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;
|
|
842
|
+
function Rr(e) {
|
|
835
843
|
var t = {};
|
|
836
|
-
return e.replace(
|
|
844
|
+
return e.replace($r, function(r) {
|
|
837
845
|
var n = r.length;
|
|
838
846
|
switch (r[0]) {
|
|
839
847
|
case "G":
|
|
@@ -922,21 +930,11 @@ function Ur(e) {
|
|
|
922
930
|
return "";
|
|
923
931
|
}), t;
|
|
924
932
|
}
|
|
925
|
-
var
|
|
926
|
-
|
|
927
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
928
|
-
r = arguments[n];
|
|
929
|
-
for (var s in r)
|
|
930
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
931
|
-
}
|
|
932
|
-
return t;
|
|
933
|
-
}, T.apply(this, arguments);
|
|
934
|
-
};
|
|
935
|
-
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
936
|
-
function Dr(e) {
|
|
933
|
+
var Ur = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
934
|
+
function Gr(e) {
|
|
937
935
|
if (e.length === 0)
|
|
938
936
|
throw new Error("Number skeleton cannot be empty");
|
|
939
|
-
for (var t = e.split(
|
|
937
|
+
for (var t = e.split(Ur).filter(function(f) {
|
|
940
938
|
return f.length > 0;
|
|
941
939
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
942
940
|
var s = i[n], o = s.split("/");
|
|
@@ -951,17 +949,17 @@ function Dr(e) {
|
|
|
951
949
|
}
|
|
952
950
|
return r;
|
|
953
951
|
}
|
|
954
|
-
function
|
|
952
|
+
function Dr(e) {
|
|
955
953
|
return e.replace(/^(.*?)-/, "");
|
|
956
954
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
955
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ot = /^(@+)?(\+|#+)?[rs]?$/g, Fr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
956
|
+
function Ye(e) {
|
|
959
957
|
var t = {};
|
|
960
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
958
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ot, function(r, n, i) {
|
|
961
959
|
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)), "";
|
|
962
960
|
}), t;
|
|
963
961
|
}
|
|
964
|
-
function
|
|
962
|
+
function Nt(e) {
|
|
965
963
|
switch (e) {
|
|
966
964
|
case "sign-auto":
|
|
967
965
|
return {
|
|
@@ -1001,7 +999,7 @@ function Lt(e) {
|
|
|
1001
999
|
};
|
|
1002
1000
|
}
|
|
1003
1001
|
}
|
|
1004
|
-
function
|
|
1002
|
+
function jr(e) {
|
|
1005
1003
|
var t;
|
|
1006
1004
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1007
1005
|
notation: "engineering"
|
|
@@ -1009,17 +1007,17 @@ function kr(e) {
|
|
|
1009
1007
|
notation: "scientific"
|
|
1010
1008
|
}, e = e.slice(1)), t) {
|
|
1011
1009
|
var r = e.slice(0, 2);
|
|
1012
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1010
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wt.test(e))
|
|
1013
1011
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1014
1012
|
t.minimumIntegerDigits = e.length;
|
|
1015
1013
|
}
|
|
1016
1014
|
return t;
|
|
1017
1015
|
}
|
|
1018
|
-
function
|
|
1019
|
-
var t = {}, r =
|
|
1016
|
+
function Ke(e) {
|
|
1017
|
+
var t = {}, r = Nt(e);
|
|
1020
1018
|
return r || t;
|
|
1021
1019
|
}
|
|
1022
|
-
function
|
|
1020
|
+
function kr(e) {
|
|
1023
1021
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1024
1022
|
var i = n[r];
|
|
1025
1023
|
switch (i.stem) {
|
|
@@ -1043,7 +1041,7 @@ function Vr(e) {
|
|
|
1043
1041
|
continue;
|
|
1044
1042
|
case "measure-unit":
|
|
1045
1043
|
case "unit":
|
|
1046
|
-
t.style = "unit", t.unit =
|
|
1044
|
+
t.style = "unit", t.unit = Dr(i.options[0]);
|
|
1047
1045
|
continue;
|
|
1048
1046
|
case "compact-short":
|
|
1049
1047
|
case "K":
|
|
@@ -1054,13 +1052,13 @@ function Vr(e) {
|
|
|
1054
1052
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1055
1053
|
continue;
|
|
1056
1054
|
case "scientific":
|
|
1057
|
-
t =
|
|
1058
|
-
return
|
|
1055
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1056
|
+
return x(x({}, l), Ke(u));
|
|
1059
1057
|
}, {}));
|
|
1060
1058
|
continue;
|
|
1061
1059
|
case "engineering":
|
|
1062
|
-
t =
|
|
1063
|
-
return
|
|
1060
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1061
|
+
return x(x({}, l), Ke(u));
|
|
1064
1062
|
}, {}));
|
|
1065
1063
|
continue;
|
|
1066
1064
|
case "notation-simple":
|
|
@@ -1105,7 +1103,7 @@ function Vr(e) {
|
|
|
1105
1103
|
case "integer-width":
|
|
1106
1104
|
if (i.options.length > 1)
|
|
1107
1105
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1108
|
-
i.options[0].replace(
|
|
1106
|
+
i.options[0].replace(Fr, function(l, u, h, c, f, g) {
|
|
1109
1107
|
if (u)
|
|
1110
1108
|
t.minimumIntegerDigits = h.length;
|
|
1111
1109
|
else {
|
|
@@ -1118,32 +1116,32 @@ function Vr(e) {
|
|
|
1118
1116
|
});
|
|
1119
1117
|
continue;
|
|
1120
1118
|
}
|
|
1121
|
-
if (
|
|
1119
|
+
if (wt.test(i.stem)) {
|
|
1122
1120
|
t.minimumIntegerDigits = i.stem.length;
|
|
1123
1121
|
continue;
|
|
1124
1122
|
}
|
|
1125
|
-
if (
|
|
1123
|
+
if (Je.test(i.stem)) {
|
|
1126
1124
|
if (i.options.length > 1)
|
|
1127
1125
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1128
|
-
i.stem.replace(
|
|
1126
|
+
i.stem.replace(Je, function(l, u, h, c, f, g) {
|
|
1129
1127
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1130
1128
|
});
|
|
1131
1129
|
var s = i.options[0];
|
|
1132
|
-
s === "w" ? t =
|
|
1130
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), Ye(s)));
|
|
1133
1131
|
continue;
|
|
1134
1132
|
}
|
|
1135
|
-
if (
|
|
1136
|
-
t =
|
|
1133
|
+
if (Ot.test(i.stem)) {
|
|
1134
|
+
t = x(x({}, t), Ye(i.stem));
|
|
1137
1135
|
continue;
|
|
1138
1136
|
}
|
|
1139
|
-
var o =
|
|
1140
|
-
o && (t =
|
|
1141
|
-
var a =
|
|
1142
|
-
a && (t =
|
|
1137
|
+
var o = Nt(i.stem);
|
|
1138
|
+
o && (t = x(x({}, t), o));
|
|
1139
|
+
var a = jr(i.stem);
|
|
1140
|
+
a && (t = x(x({}, t), a));
|
|
1143
1141
|
}
|
|
1144
1142
|
return t;
|
|
1145
1143
|
}
|
|
1146
|
-
var
|
|
1144
|
+
var he = {
|
|
1147
1145
|
"001": [
|
|
1148
1146
|
"H",
|
|
1149
1147
|
"h"
|
|
@@ -2558,13 +2556,13 @@ var le = {
|
|
|
2558
2556
|
"h"
|
|
2559
2557
|
]
|
|
2560
2558
|
};
|
|
2561
|
-
function
|
|
2559
|
+
function Vr(e, t) {
|
|
2562
2560
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2563
2561
|
var i = e.charAt(n);
|
|
2564
2562
|
if (i === "j") {
|
|
2565
2563
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2566
2564
|
s++, n++;
|
|
2567
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2565
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Xr(t);
|
|
2568
2566
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2569
2567
|
r += l;
|
|
2570
2568
|
for (; o-- > 0; )
|
|
@@ -2574,7 +2572,7 @@ function Xr(e, t) {
|
|
|
2574
2572
|
}
|
|
2575
2573
|
return r;
|
|
2576
2574
|
}
|
|
2577
|
-
function
|
|
2575
|
+
function Xr(e) {
|
|
2578
2576
|
var t = e.hourCycle;
|
|
2579
2577
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2580
2578
|
e.hourCycles && // @ts-ignore
|
|
@@ -2593,23 +2591,23 @@ function zr(e) {
|
|
|
2593
2591
|
}
|
|
2594
2592
|
var r = e.language, n;
|
|
2595
2593
|
r !== "root" && (n = e.maximize().region);
|
|
2596
|
-
var i =
|
|
2594
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2597
2595
|
return i[0];
|
|
2598
2596
|
}
|
|
2599
|
-
var
|
|
2597
|
+
var Te, zr = new RegExp("^".concat(At.source, "*")), Wr = new RegExp("".concat(At.source, "*$"));
|
|
2600
2598
|
function E(e, t) {
|
|
2601
2599
|
return { start: e, end: t };
|
|
2602
2600
|
}
|
|
2603
|
-
var
|
|
2601
|
+
var Zr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qr = !!String.fromCodePoint, qr = !!Object.fromEntries, Jr = !!String.prototype.codePointAt, Yr = !!String.prototype.trimStart, Kr = !!String.prototype.trimEnd, en = !!Number.isSafeInteger, tn = en ? Number.isSafeInteger : function(e) {
|
|
2604
2602
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2605
|
-
},
|
|
2603
|
+
}, Ie = !0;
|
|
2606
2604
|
try {
|
|
2607
|
-
var
|
|
2608
|
-
|
|
2605
|
+
var rn = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2606
|
+
Ie = ((Te = rn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2609
2607
|
} catch {
|
|
2610
|
-
|
|
2608
|
+
Ie = !1;
|
|
2611
2609
|
}
|
|
2612
|
-
var
|
|
2610
|
+
var et = Zr ? (
|
|
2613
2611
|
// Native
|
|
2614
2612
|
function(t, r, n) {
|
|
2615
2613
|
return t.startsWith(r, n);
|
|
@@ -2619,7 +2617,7 @@ var tt = Qr ? (
|
|
|
2619
2617
|
function(t, r, n) {
|
|
2620
2618
|
return t.slice(n, n + r.length) === r;
|
|
2621
2619
|
}
|
|
2622
|
-
),
|
|
2620
|
+
), Ce = Qr ? String.fromCodePoint : (
|
|
2623
2621
|
// IE11
|
|
2624
2622
|
function() {
|
|
2625
2623
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2631,9 +2629,9 @@ var tt = Qr ? (
|
|
|
2631
2629
|
}
|
|
2632
2630
|
return n;
|
|
2633
2631
|
}
|
|
2634
|
-
),
|
|
2632
|
+
), tt = (
|
|
2635
2633
|
// native
|
|
2636
|
-
|
|
2634
|
+
qr ? Object.fromEntries : (
|
|
2637
2635
|
// Ponyfill
|
|
2638
2636
|
function(t) {
|
|
2639
2637
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2643,7 +2641,7 @@ var tt = Qr ? (
|
|
|
2643
2641
|
return r;
|
|
2644
2642
|
}
|
|
2645
2643
|
)
|
|
2646
|
-
),
|
|
2644
|
+
), Lt = Jr ? (
|
|
2647
2645
|
// Native
|
|
2648
2646
|
function(t, r) {
|
|
2649
2647
|
return t.codePointAt(r);
|
|
@@ -2657,7 +2655,7 @@ var tt = Qr ? (
|
|
|
2657
2655
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2658
2656
|
}
|
|
2659
2657
|
}
|
|
2660
|
-
),
|
|
2658
|
+
), nn = Yr ? (
|
|
2661
2659
|
// Native
|
|
2662
2660
|
function(t) {
|
|
2663
2661
|
return t.trimStart();
|
|
@@ -2665,9 +2663,9 @@ var tt = Qr ? (
|
|
|
2665
2663
|
) : (
|
|
2666
2664
|
// Ponyfill
|
|
2667
2665
|
function(t) {
|
|
2668
|
-
return t.replace(
|
|
2666
|
+
return t.replace(zr, "");
|
|
2669
2667
|
}
|
|
2670
|
-
),
|
|
2668
|
+
), sn = Kr ? (
|
|
2671
2669
|
// Native
|
|
2672
2670
|
function(t) {
|
|
2673
2671
|
return t.trimEnd();
|
|
@@ -2675,32 +2673,32 @@ var tt = Qr ? (
|
|
|
2675
2673
|
) : (
|
|
2676
2674
|
// Ponyfill
|
|
2677
2675
|
function(t) {
|
|
2678
|
-
return t.replace(
|
|
2676
|
+
return t.replace(Wr, "");
|
|
2679
2677
|
}
|
|
2680
2678
|
);
|
|
2681
|
-
function
|
|
2679
|
+
function It(e, t) {
|
|
2682
2680
|
return new RegExp(e, t);
|
|
2683
2681
|
}
|
|
2684
|
-
var
|
|
2685
|
-
if (
|
|
2686
|
-
var
|
|
2687
|
-
|
|
2682
|
+
var Me;
|
|
2683
|
+
if (Ie) {
|
|
2684
|
+
var rt = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2685
|
+
Me = function(t, r) {
|
|
2688
2686
|
var n;
|
|
2689
|
-
|
|
2690
|
-
var i =
|
|
2687
|
+
rt.lastIndex = r;
|
|
2688
|
+
var i = rt.exec(t);
|
|
2691
2689
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2692
2690
|
};
|
|
2693
2691
|
} else
|
|
2694
|
-
|
|
2692
|
+
Me = function(t, r) {
|
|
2695
2693
|
for (var n = []; ; ) {
|
|
2696
|
-
var i =
|
|
2697
|
-
if (i === void 0 ||
|
|
2694
|
+
var i = Lt(t, r);
|
|
2695
|
+
if (i === void 0 || Ct(i) || hn(i))
|
|
2698
2696
|
break;
|
|
2699
2697
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2700
2698
|
}
|
|
2701
|
-
return
|
|
2699
|
+
return Ce.apply(void 0, n);
|
|
2702
2700
|
};
|
|
2703
|
-
var
|
|
2701
|
+
var on = (
|
|
2704
2702
|
/** @class */
|
|
2705
2703
|
function() {
|
|
2706
2704
|
function e(t, r) {
|
|
@@ -2724,14 +2722,14 @@ var an = (
|
|
|
2724
2722
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2725
2723
|
var a = this.clonePosition();
|
|
2726
2724
|
this.bump(), i.push({
|
|
2727
|
-
type:
|
|
2725
|
+
type: P.pound,
|
|
2728
2726
|
location: E(a, this.clonePosition())
|
|
2729
2727
|
});
|
|
2730
2728
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2731
2729
|
if (n)
|
|
2732
2730
|
break;
|
|
2733
2731
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2734
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2732
|
+
} else if (s === 60 && !this.ignoreTag && $e(this.peek() || 0)) {
|
|
2735
2733
|
var o = this.parseTag(t, r);
|
|
2736
2734
|
if (o.err)
|
|
2737
2735
|
return o;
|
|
@@ -2752,7 +2750,7 @@ var an = (
|
|
|
2752
2750
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2753
2751
|
return {
|
|
2754
2752
|
val: {
|
|
2755
|
-
type:
|
|
2753
|
+
type: P.literal,
|
|
2756
2754
|
value: "<".concat(i, "/>"),
|
|
2757
2755
|
location: E(n, this.clonePosition())
|
|
2758
2756
|
},
|
|
@@ -2764,12 +2762,12 @@ var an = (
|
|
|
2764
2762
|
return s;
|
|
2765
2763
|
var o = s.val, a = this.clonePosition();
|
|
2766
2764
|
if (this.bumpIf("</")) {
|
|
2767
|
-
if (this.isEOF() ||
|
|
2765
|
+
if (this.isEOF() || !$e(this.char()))
|
|
2768
2766
|
return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
|
|
2769
2767
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2770
2768
|
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2771
2769
|
val: {
|
|
2772
|
-
type:
|
|
2770
|
+
type: P.tag,
|
|
2773
2771
|
value: i,
|
|
2774
2772
|
children: o,
|
|
2775
2773
|
location: E(n, this.clonePosition())
|
|
@@ -2782,7 +2780,7 @@ var an = (
|
|
|
2782
2780
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
2783
2781
|
}, e.prototype.parseTagName = function() {
|
|
2784
2782
|
var t = this.offset();
|
|
2785
|
-
for (this.bump(); !this.isEOF() &&
|
|
2783
|
+
for (this.bump(); !this.isEOF() && un(this.char()); )
|
|
2786
2784
|
this.bump();
|
|
2787
2785
|
return this.message.slice(t, this.offset());
|
|
2788
2786
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2806,12 +2804,12 @@ var an = (
|
|
|
2806
2804
|
}
|
|
2807
2805
|
var l = E(n, this.clonePosition());
|
|
2808
2806
|
return {
|
|
2809
|
-
val: { type:
|
|
2807
|
+
val: { type: P.literal, value: i, location: l },
|
|
2810
2808
|
err: null
|
|
2811
2809
|
};
|
|
2812
2810
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2813
2811
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2814
|
-
!
|
|
2812
|
+
!an(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2815
2813
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2816
2814
|
if (this.isEOF() || this.char() !== 39)
|
|
2817
2815
|
return null;
|
|
@@ -2845,12 +2843,12 @@ var an = (
|
|
|
2845
2843
|
r.push(n);
|
|
2846
2844
|
this.bump();
|
|
2847
2845
|
}
|
|
2848
|
-
return
|
|
2846
|
+
return Ce.apply(void 0, r);
|
|
2849
2847
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2850
2848
|
if (this.isEOF())
|
|
2851
2849
|
return null;
|
|
2852
2850
|
var n = this.char();
|
|
2853
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2851
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ce(n));
|
|
2854
2852
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2855
2853
|
var n = this.clonePosition();
|
|
2856
2854
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2866,7 +2864,7 @@ var an = (
|
|
|
2866
2864
|
case 125:
|
|
2867
2865
|
return this.bump(), {
|
|
2868
2866
|
val: {
|
|
2869
|
-
type:
|
|
2867
|
+
type: P.argument,
|
|
2870
2868
|
// value does not include the opening and closing braces.
|
|
2871
2869
|
value: i,
|
|
2872
2870
|
location: E(n, this.clonePosition())
|
|
@@ -2879,7 +2877,7 @@ var an = (
|
|
|
2879
2877
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2880
2878
|
}
|
|
2881
2879
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2882
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2880
|
+
var t = this.clonePosition(), r = this.offset(), n = Me(this.message, r), i = r + n.length;
|
|
2883
2881
|
this.bumpTo(i);
|
|
2884
2882
|
var s = this.clonePosition(), o = E(t, s);
|
|
2885
2883
|
return { value: n, location: o };
|
|
@@ -2898,46 +2896,46 @@ var an = (
|
|
|
2898
2896
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2899
2897
|
if (c.err)
|
|
2900
2898
|
return c;
|
|
2901
|
-
var f =
|
|
2899
|
+
var f = sn(c.val);
|
|
2902
2900
|
if (f.length === 0)
|
|
2903
2901
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2904
2902
|
var g = E(h, this.clonePosition());
|
|
2905
2903
|
u = { style: f, styleLocation: g };
|
|
2906
2904
|
}
|
|
2907
|
-
var
|
|
2908
|
-
if (
|
|
2909
|
-
return
|
|
2910
|
-
var
|
|
2911
|
-
if (u &&
|
|
2912
|
-
var v =
|
|
2905
|
+
var p = this.tryParseArgumentClose(i);
|
|
2906
|
+
if (p.err)
|
|
2907
|
+
return p;
|
|
2908
|
+
var d = E(i, this.clonePosition());
|
|
2909
|
+
if (u && et(u?.style, "::", 0)) {
|
|
2910
|
+
var v = nn(u.style.slice(2));
|
|
2913
2911
|
if (a === "number") {
|
|
2914
2912
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2915
2913
|
return c.err ? c : {
|
|
2916
|
-
val: { type:
|
|
2914
|
+
val: { type: P.number, value: n, location: d, style: c.val },
|
|
2917
2915
|
err: null
|
|
2918
2916
|
};
|
|
2919
2917
|
} else {
|
|
2920
2918
|
if (v.length === 0)
|
|
2921
|
-
return this.error(_.EXPECT_DATE_TIME_SKELETON,
|
|
2919
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, d);
|
|
2922
2920
|
var m = v;
|
|
2923
|
-
this.locale && (m =
|
|
2921
|
+
this.locale && (m = Vr(v, this.locale));
|
|
2924
2922
|
var f = {
|
|
2925
|
-
type:
|
|
2923
|
+
type: Q.dateTime,
|
|
2926
2924
|
pattern: m,
|
|
2927
2925
|
location: u.styleLocation,
|
|
2928
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2929
|
-
},
|
|
2926
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(m) : {}
|
|
2927
|
+
}, H = a === "date" ? P.date : P.time;
|
|
2930
2928
|
return {
|
|
2931
|
-
val: { type:
|
|
2929
|
+
val: { type: H, value: n, location: d, style: f },
|
|
2932
2930
|
err: null
|
|
2933
2931
|
};
|
|
2934
2932
|
}
|
|
2935
2933
|
}
|
|
2936
2934
|
return {
|
|
2937
2935
|
val: {
|
|
2938
|
-
type: a === "number" ?
|
|
2936
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
2939
2937
|
value: n,
|
|
2940
|
-
location:
|
|
2938
|
+
location: d,
|
|
2941
2939
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2942
2940
|
},
|
|
2943
2941
|
err: null
|
|
@@ -2948,9 +2946,9 @@ var an = (
|
|
|
2948
2946
|
case "select": {
|
|
2949
2947
|
var B = this.clonePosition();
|
|
2950
2948
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2951
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(B,
|
|
2949
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(B, x({}, B)));
|
|
2952
2950
|
this.bumpSpace();
|
|
2953
|
-
var O = this.parseIdentifierIfPossible(),
|
|
2951
|
+
var O = this.parseIdentifierIfPossible(), T = 0;
|
|
2954
2952
|
if (a !== "select" && O.value === "offset") {
|
|
2955
2953
|
if (!this.bumpIf(":"))
|
|
2956
2954
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
@@ -2958,29 +2956,29 @@ var an = (
|
|
|
2958
2956
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2959
2957
|
if (c.err)
|
|
2960
2958
|
return c;
|
|
2961
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
2959
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = c.val;
|
|
2962
2960
|
}
|
|
2963
2961
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
2964
2962
|
if (N.err)
|
|
2965
2963
|
return N;
|
|
2966
|
-
var
|
|
2967
|
-
if (
|
|
2968
|
-
return
|
|
2964
|
+
var p = this.tryParseArgumentClose(i);
|
|
2965
|
+
if (p.err)
|
|
2966
|
+
return p;
|
|
2969
2967
|
var b = E(i, this.clonePosition());
|
|
2970
2968
|
return a === "select" ? {
|
|
2971
2969
|
val: {
|
|
2972
|
-
type:
|
|
2970
|
+
type: P.select,
|
|
2973
2971
|
value: n,
|
|
2974
|
-
options:
|
|
2972
|
+
options: tt(N.val),
|
|
2975
2973
|
location: b
|
|
2976
2974
|
},
|
|
2977
2975
|
err: null
|
|
2978
2976
|
} : {
|
|
2979
2977
|
val: {
|
|
2980
|
-
type:
|
|
2978
|
+
type: P.plural,
|
|
2981
2979
|
value: n,
|
|
2982
|
-
options:
|
|
2983
|
-
offset:
|
|
2980
|
+
options: tt(N.val),
|
|
2981
|
+
offset: T,
|
|
2984
2982
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2985
2983
|
location: b
|
|
2986
2984
|
},
|
|
@@ -3030,16 +3028,16 @@ var an = (
|
|
|
3030
3028
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3031
3029
|
var n = [];
|
|
3032
3030
|
try {
|
|
3033
|
-
n =
|
|
3031
|
+
n = Gr(t);
|
|
3034
3032
|
} catch {
|
|
3035
3033
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3036
3034
|
}
|
|
3037
3035
|
return {
|
|
3038
3036
|
val: {
|
|
3039
|
-
type:
|
|
3037
|
+
type: Q.number,
|
|
3040
3038
|
tokens: n,
|
|
3041
3039
|
location: r,
|
|
3042
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3040
|
+
parsedOptions: this.shouldParseSkeletons ? kr(n) : {}
|
|
3043
3041
|
},
|
|
3044
3042
|
err: null
|
|
3045
3043
|
};
|
|
@@ -3061,16 +3059,16 @@ var an = (
|
|
|
3061
3059
|
var g = this.clonePosition();
|
|
3062
3060
|
if (!this.bumpIf("{"))
|
|
3063
3061
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3064
|
-
var
|
|
3065
|
-
if (d.err)
|
|
3066
|
-
return d;
|
|
3067
|
-
var p = this.tryParseArgumentClose(g);
|
|
3062
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3068
3063
|
if (p.err)
|
|
3069
3064
|
return p;
|
|
3065
|
+
var d = this.tryParseArgumentClose(g);
|
|
3066
|
+
if (d.err)
|
|
3067
|
+
return d;
|
|
3070
3068
|
a.push([
|
|
3071
3069
|
u,
|
|
3072
3070
|
{
|
|
3073
|
-
value:
|
|
3071
|
+
value: p.val,
|
|
3074
3072
|
location: E(g, this.clonePosition())
|
|
3075
3073
|
}
|
|
3076
3074
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
@@ -3087,7 +3085,7 @@ var an = (
|
|
|
3087
3085
|
break;
|
|
3088
3086
|
}
|
|
3089
3087
|
var l = E(i, this.clonePosition());
|
|
3090
|
-
return s ? (o *= n,
|
|
3088
|
+
return s ? (o *= n, tn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3091
3089
|
}, e.prototype.offset = function() {
|
|
3092
3090
|
return this.position.offset;
|
|
3093
3091
|
}, e.prototype.isEOF = function() {
|
|
@@ -3102,7 +3100,7 @@ var an = (
|
|
|
3102
3100
|
var t = this.position.offset;
|
|
3103
3101
|
if (t >= this.message.length)
|
|
3104
3102
|
throw Error("out of bound");
|
|
3105
|
-
var r =
|
|
3103
|
+
var r = Lt(this.message, t);
|
|
3106
3104
|
if (r === void 0)
|
|
3107
3105
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3108
3106
|
return r;
|
|
@@ -3121,7 +3119,7 @@ var an = (
|
|
|
3121
3119
|
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);
|
|
3122
3120
|
}
|
|
3123
3121
|
}, e.prototype.bumpIf = function(t) {
|
|
3124
|
-
if (
|
|
3122
|
+
if (et(this.message, t, this.offset())) {
|
|
3125
3123
|
for (var r = 0; r < t.length; r++)
|
|
3126
3124
|
this.bump();
|
|
3127
3125
|
return !0;
|
|
@@ -3143,7 +3141,7 @@ var an = (
|
|
|
3143
3141
|
break;
|
|
3144
3142
|
}
|
|
3145
3143
|
}, e.prototype.bumpSpace = function() {
|
|
3146
|
-
for (; !this.isEOF() &&
|
|
3144
|
+
for (; !this.isEOF() && Ct(this.char()); )
|
|
3147
3145
|
this.bump();
|
|
3148
3146
|
}, e.prototype.peek = function() {
|
|
3149
3147
|
if (this.isEOF())
|
|
@@ -3153,47 +3151,47 @@ var an = (
|
|
|
3153
3151
|
}, e;
|
|
3154
3152
|
}()
|
|
3155
3153
|
);
|
|
3156
|
-
function
|
|
3154
|
+
function $e(e) {
|
|
3157
3155
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3158
3156
|
}
|
|
3159
|
-
function
|
|
3160
|
-
return
|
|
3157
|
+
function an(e) {
|
|
3158
|
+
return $e(e) || e === 47;
|
|
3161
3159
|
}
|
|
3162
|
-
function
|
|
3160
|
+
function un(e) {
|
|
3163
3161
|
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;
|
|
3164
3162
|
}
|
|
3165
|
-
function
|
|
3163
|
+
function Ct(e) {
|
|
3166
3164
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3167
3165
|
}
|
|
3168
|
-
function
|
|
3166
|
+
function hn(e) {
|
|
3169
3167
|
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;
|
|
3170
3168
|
}
|
|
3171
|
-
function
|
|
3169
|
+
function Re(e) {
|
|
3172
3170
|
e.forEach(function(t) {
|
|
3173
|
-
if (delete t.location,
|
|
3171
|
+
if (delete t.location, Ht(t) || Tt(t))
|
|
3174
3172
|
for (var r in t.options)
|
|
3175
|
-
delete t.options[r].location,
|
|
3173
|
+
delete t.options[r].location, Re(t.options[r].value);
|
|
3176
3174
|
else
|
|
3177
|
-
xt(t) &&
|
|
3175
|
+
xt(t) && Bt(t.style) || (yt(t) || Pt(t)) && Le(t.style) ? delete t.style.location : St(t) && Re(t.children);
|
|
3178
3176
|
});
|
|
3179
3177
|
}
|
|
3180
|
-
function
|
|
3181
|
-
t === void 0 && (t = {}), t =
|
|
3182
|
-
var r = new
|
|
3178
|
+
function ln(e, t) {
|
|
3179
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3180
|
+
var r = new on(e, t).parse();
|
|
3183
3181
|
if (r.err) {
|
|
3184
3182
|
var n = SyntaxError(_[r.err.kind]);
|
|
3185
3183
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3186
3184
|
}
|
|
3187
|
-
return t?.captureLocation ||
|
|
3185
|
+
return t?.captureLocation || Re(r.val), r.val;
|
|
3188
3186
|
}
|
|
3189
|
-
var
|
|
3187
|
+
var q;
|
|
3190
3188
|
(function(e) {
|
|
3191
3189
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3192
|
-
})(
|
|
3193
|
-
var
|
|
3190
|
+
})(q || (q = {}));
|
|
3191
|
+
var ve = (
|
|
3194
3192
|
/** @class */
|
|
3195
3193
|
function(e) {
|
|
3196
|
-
|
|
3194
|
+
be(t, e);
|
|
3197
3195
|
function t(r, n, i) {
|
|
3198
3196
|
var s = e.call(this, r) || this;
|
|
3199
3197
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3202,48 +3200,48 @@ var Ee = (
|
|
|
3202
3200
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3203
3201
|
}, t;
|
|
3204
3202
|
}(Error)
|
|
3205
|
-
),
|
|
3203
|
+
), nt = (
|
|
3206
3204
|
/** @class */
|
|
3207
3205
|
function(e) {
|
|
3208
|
-
|
|
3206
|
+
be(t, e);
|
|
3209
3207
|
function t(r, n, i, s) {
|
|
3210
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3208
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3211
3209
|
}
|
|
3212
3210
|
return t;
|
|
3213
|
-
}(
|
|
3214
|
-
),
|
|
3211
|
+
}(ve)
|
|
3212
|
+
), fn = (
|
|
3215
3213
|
/** @class */
|
|
3216
3214
|
function(e) {
|
|
3217
|
-
|
|
3215
|
+
be(t, e);
|
|
3218
3216
|
function t(r, n, i) {
|
|
3219
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3217
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3220
3218
|
}
|
|
3221
3219
|
return t;
|
|
3222
|
-
}(
|
|
3223
|
-
),
|
|
3220
|
+
}(ve)
|
|
3221
|
+
), cn = (
|
|
3224
3222
|
/** @class */
|
|
3225
3223
|
function(e) {
|
|
3226
|
-
|
|
3224
|
+
be(t, e);
|
|
3227
3225
|
function t(r, n) {
|
|
3228
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3226
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3229
3227
|
}
|
|
3230
3228
|
return t;
|
|
3231
|
-
}(
|
|
3229
|
+
}(ve)
|
|
3232
3230
|
), w;
|
|
3233
3231
|
(function(e) {
|
|
3234
3232
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3235
3233
|
})(w || (w = {}));
|
|
3236
|
-
function
|
|
3234
|
+
function dn(e) {
|
|
3237
3235
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3238
3236
|
var n = t[t.length - 1];
|
|
3239
3237
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3240
3238
|
}, []);
|
|
3241
3239
|
}
|
|
3242
|
-
function
|
|
3240
|
+
function mn(e) {
|
|
3243
3241
|
return typeof e == "function";
|
|
3244
3242
|
}
|
|
3245
|
-
function
|
|
3246
|
-
if (e.length === 1 &&
|
|
3243
|
+
function fe(e, t, r, n, i, s, o) {
|
|
3244
|
+
if (e.length === 1 && qe(e[0]))
|
|
3247
3245
|
return [
|
|
3248
3246
|
{
|
|
3249
3247
|
type: w.literal,
|
|
@@ -3252,14 +3250,14 @@ function ce(e, t, r, n, i, s, o) {
|
|
|
3252
3250
|
];
|
|
3253
3251
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3254
3252
|
var h = u[l];
|
|
3255
|
-
if (
|
|
3253
|
+
if (qe(h)) {
|
|
3256
3254
|
a.push({
|
|
3257
3255
|
type: w.literal,
|
|
3258
3256
|
value: h.value
|
|
3259
3257
|
});
|
|
3260
3258
|
continue;
|
|
3261
3259
|
}
|
|
3262
|
-
if (
|
|
3260
|
+
if (Mr(h)) {
|
|
3263
3261
|
typeof s == "number" && a.push({
|
|
3264
3262
|
type: w.literal,
|
|
3265
3263
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3268,25 +3266,25 @@ function ce(e, t, r, n, i, s, o) {
|
|
|
3268
3266
|
}
|
|
3269
3267
|
var c = h.value;
|
|
3270
3268
|
if (!(i && c in i))
|
|
3271
|
-
throw new
|
|
3269
|
+
throw new cn(c, o);
|
|
3272
3270
|
var f = i[c];
|
|
3273
|
-
if (
|
|
3271
|
+
if (Cr(h)) {
|
|
3274
3272
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3275
3273
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3276
3274
|
value: f
|
|
3277
3275
|
});
|
|
3278
3276
|
continue;
|
|
3279
3277
|
}
|
|
3280
|
-
if (
|
|
3281
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3278
|
+
if (yt(h)) {
|
|
3279
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
|
|
3282
3280
|
a.push({
|
|
3283
3281
|
type: w.literal,
|
|
3284
3282
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3285
3283
|
});
|
|
3286
3284
|
continue;
|
|
3287
3285
|
}
|
|
3288
|
-
if (
|
|
3289
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3286
|
+
if (Pt(h)) {
|
|
3287
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3290
3288
|
a.push({
|
|
3291
3289
|
type: w.literal,
|
|
3292
3290
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
@@ -3294,63 +3292,63 @@ function ce(e, t, r, n, i, s, o) {
|
|
|
3294
3292
|
continue;
|
|
3295
3293
|
}
|
|
3296
3294
|
if (xt(h)) {
|
|
3297
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3295
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3298
3296
|
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3299
3297
|
type: w.literal,
|
|
3300
3298
|
value: r.getNumberFormat(t, g).format(f)
|
|
3301
3299
|
});
|
|
3302
3300
|
continue;
|
|
3303
3301
|
}
|
|
3304
|
-
if (
|
|
3305
|
-
var
|
|
3306
|
-
if (!
|
|
3307
|
-
throw new
|
|
3308
|
-
var m =
|
|
3309
|
-
return
|
|
3302
|
+
if (St(h)) {
|
|
3303
|
+
var p = h.children, d = h.value, v = i[d];
|
|
3304
|
+
if (!mn(v))
|
|
3305
|
+
throw new fn(d, "function", o);
|
|
3306
|
+
var m = fe(p, t, r, n, i, s), H = v(m.map(function(T) {
|
|
3307
|
+
return T.value;
|
|
3310
3308
|
}));
|
|
3311
|
-
Array.isArray(
|
|
3309
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(T) {
|
|
3312
3310
|
return {
|
|
3313
|
-
type: typeof
|
|
3314
|
-
value:
|
|
3311
|
+
type: typeof T == "string" ? w.literal : w.object,
|
|
3312
|
+
value: T
|
|
3315
3313
|
};
|
|
3316
3314
|
}));
|
|
3317
3315
|
}
|
|
3318
|
-
if (
|
|
3316
|
+
if (Ht(h)) {
|
|
3319
3317
|
var B = h.options[f] || h.options.other;
|
|
3320
3318
|
if (!B)
|
|
3321
|
-
throw new
|
|
3322
|
-
a.push.apply(a,
|
|
3319
|
+
throw new nt(h.value, f, Object.keys(h.options), o);
|
|
3320
|
+
a.push.apply(a, fe(B.value, t, r, n, i));
|
|
3323
3321
|
continue;
|
|
3324
3322
|
}
|
|
3325
|
-
if (
|
|
3323
|
+
if (Tt(h)) {
|
|
3326
3324
|
var B = h.options["=".concat(f)];
|
|
3327
3325
|
if (!B) {
|
|
3328
3326
|
if (!Intl.PluralRules)
|
|
3329
|
-
throw new
|
|
3327
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3330
3328
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3331
|
-
`,
|
|
3329
|
+
`, q.MISSING_INTL_API, o);
|
|
3332
3330
|
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3333
3331
|
B = h.options[O] || h.options.other;
|
|
3334
3332
|
}
|
|
3335
3333
|
if (!B)
|
|
3336
|
-
throw new
|
|
3337
|
-
a.push.apply(a,
|
|
3334
|
+
throw new nt(h.value, f, Object.keys(h.options), o);
|
|
3335
|
+
a.push.apply(a, fe(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3338
3336
|
continue;
|
|
3339
3337
|
}
|
|
3340
3338
|
}
|
|
3341
|
-
return
|
|
3339
|
+
return dn(a);
|
|
3342
3340
|
}
|
|
3343
|
-
function
|
|
3344
|
-
return t ?
|
|
3345
|
-
return r[n] =
|
|
3341
|
+
function pn(e, t) {
|
|
3342
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3343
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3346
3344
|
}, {})) : e;
|
|
3347
3345
|
}
|
|
3348
|
-
function
|
|
3346
|
+
function gn(e, t) {
|
|
3349
3347
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3350
|
-
return r[n] =
|
|
3351
|
-
},
|
|
3348
|
+
return r[n] = pn(e[n], t[n]), r;
|
|
3349
|
+
}, x({}, e)) : e;
|
|
3352
3350
|
}
|
|
3353
|
-
function
|
|
3351
|
+
function Se(e) {
|
|
3354
3352
|
return {
|
|
3355
3353
|
create: function() {
|
|
3356
3354
|
return {
|
|
@@ -3364,39 +3362,39 @@ function Ae(e) {
|
|
|
3364
3362
|
}
|
|
3365
3363
|
};
|
|
3366
3364
|
}
|
|
3367
|
-
function
|
|
3365
|
+
function bn(e) {
|
|
3368
3366
|
return e === void 0 && (e = {
|
|
3369
3367
|
number: {},
|
|
3370
3368
|
dateTime: {},
|
|
3371
3369
|
pluralRules: {}
|
|
3372
3370
|
}), {
|
|
3373
|
-
getNumberFormat:
|
|
3371
|
+
getNumberFormat: Pe(function() {
|
|
3374
3372
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3375
3373
|
r[n] = arguments[n];
|
|
3376
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3374
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ye([void 0], r, !1)))();
|
|
3377
3375
|
}, {
|
|
3378
|
-
cache:
|
|
3379
|
-
strategy:
|
|
3376
|
+
cache: Se(e.number),
|
|
3377
|
+
strategy: He.variadic
|
|
3380
3378
|
}),
|
|
3381
|
-
getDateTimeFormat:
|
|
3379
|
+
getDateTimeFormat: Pe(function() {
|
|
3382
3380
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3383
3381
|
r[n] = arguments[n];
|
|
3384
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3382
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ye([void 0], r, !1)))();
|
|
3385
3383
|
}, {
|
|
3386
|
-
cache:
|
|
3387
|
-
strategy:
|
|
3384
|
+
cache: Se(e.dateTime),
|
|
3385
|
+
strategy: He.variadic
|
|
3388
3386
|
}),
|
|
3389
|
-
getPluralRules:
|
|
3387
|
+
getPluralRules: Pe(function() {
|
|
3390
3388
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3391
3389
|
r[n] = arguments[n];
|
|
3392
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3390
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ye([void 0], r, !1)))();
|
|
3393
3391
|
}, {
|
|
3394
|
-
cache:
|
|
3395
|
-
strategy:
|
|
3392
|
+
cache: Se(e.pluralRules),
|
|
3393
|
+
strategy: He.variadic
|
|
3396
3394
|
})
|
|
3397
3395
|
};
|
|
3398
3396
|
}
|
|
3399
|
-
var
|
|
3397
|
+
var vn = (
|
|
3400
3398
|
/** @class */
|
|
3401
3399
|
function() {
|
|
3402
3400
|
function e(t, r, n, i) {
|
|
@@ -3415,7 +3413,7 @@ var _n = (
|
|
|
3415
3413
|
}, []);
|
|
3416
3414
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3417
3415
|
}, this.formatToParts = function(l) {
|
|
3418
|
-
return
|
|
3416
|
+
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3419
3417
|
}, this.resolvedOptions = function() {
|
|
3420
3418
|
var l;
|
|
3421
3419
|
return {
|
|
@@ -3428,13 +3426,13 @@ var _n = (
|
|
|
3428
3426
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3429
3427
|
var o = i || {};
|
|
3430
3428
|
o.formatters;
|
|
3431
|
-
var a =
|
|
3432
|
-
this.ast = e.__parse(t,
|
|
3429
|
+
var a = Sr(o, ["formatters"]);
|
|
3430
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3433
3431
|
} else
|
|
3434
3432
|
this.ast = t;
|
|
3435
3433
|
if (!Array.isArray(this.ast))
|
|
3436
3434
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3437
|
-
this.formats =
|
|
3435
|
+
this.formats = gn(e.formats, n), this.formatters = i && i.formatters || bn(this.formatterCache);
|
|
3438
3436
|
}
|
|
3439
3437
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3440
3438
|
get: function() {
|
|
@@ -3447,7 +3445,7 @@ var _n = (
|
|
|
3447
3445
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3448
3446
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3449
3447
|
}
|
|
3450
|
-
}, e.__parse =
|
|
3448
|
+
}, e.__parse = ln, e.formats = {
|
|
3451
3449
|
number: {
|
|
3452
3450
|
integer: {
|
|
3453
3451
|
maximumFractionDigits: 0
|
|
@@ -3508,7 +3506,7 @@ var _n = (
|
|
|
3508
3506
|
}, e;
|
|
3509
3507
|
}()
|
|
3510
3508
|
);
|
|
3511
|
-
function
|
|
3509
|
+
function _n(e, t) {
|
|
3512
3510
|
if (t == null)
|
|
3513
3511
|
return;
|
|
3514
3512
|
if (t in e)
|
|
@@ -3529,92 +3527,92 @@ function En(e, t) {
|
|
|
3529
3527
|
n = void 0;
|
|
3530
3528
|
return n;
|
|
3531
3529
|
}
|
|
3532
|
-
const
|
|
3530
|
+
const F = {}, En = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Mt = (e, t) => {
|
|
3533
3531
|
if (t == null)
|
|
3534
3532
|
return;
|
|
3535
|
-
if (t in
|
|
3536
|
-
return
|
|
3537
|
-
const r =
|
|
3533
|
+
if (t in F && e in F[t])
|
|
3534
|
+
return F[t][e];
|
|
3535
|
+
const r = _e(t);
|
|
3538
3536
|
for (let n = 0; n < r.length; n++) {
|
|
3539
|
-
const i = r[n], s =
|
|
3537
|
+
const i = r[n], s = yn(i, e);
|
|
3540
3538
|
if (s)
|
|
3541
|
-
return
|
|
3539
|
+
return En(e, t, s);
|
|
3542
3540
|
}
|
|
3543
3541
|
};
|
|
3544
|
-
let
|
|
3545
|
-
const
|
|
3542
|
+
let ke;
|
|
3543
|
+
const oe = ge({});
|
|
3546
3544
|
function xn(e) {
|
|
3547
|
-
return
|
|
3545
|
+
return ke[e] || null;
|
|
3548
3546
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return e in
|
|
3547
|
+
function $t(e) {
|
|
3548
|
+
return e in ke;
|
|
3551
3549
|
}
|
|
3552
|
-
function
|
|
3553
|
-
if (
|
|
3550
|
+
function yn(e, t) {
|
|
3551
|
+
if (!$t(e))
|
|
3554
3552
|
return null;
|
|
3555
3553
|
const r = xn(e);
|
|
3556
|
-
return
|
|
3554
|
+
return _n(r, t);
|
|
3557
3555
|
}
|
|
3558
|
-
function
|
|
3556
|
+
function Pn(e) {
|
|
3559
3557
|
if (e == null)
|
|
3560
3558
|
return;
|
|
3561
|
-
const t =
|
|
3559
|
+
const t = _e(e);
|
|
3562
3560
|
for (let r = 0; r < t.length; r++) {
|
|
3563
3561
|
const n = t[r];
|
|
3564
|
-
if (
|
|
3562
|
+
if ($t(n))
|
|
3565
3563
|
return n;
|
|
3566
3564
|
}
|
|
3567
3565
|
}
|
|
3568
|
-
function
|
|
3569
|
-
delete
|
|
3566
|
+
function Rt(e, ...t) {
|
|
3567
|
+
delete F[e], oe.update((r) => (r[e] = Tr.all([r[e] || {}, ...t]), r));
|
|
3570
3568
|
}
|
|
3571
|
-
|
|
3572
|
-
[
|
|
3569
|
+
Y(
|
|
3570
|
+
[oe],
|
|
3573
3571
|
([e]) => Object.keys(e)
|
|
3574
3572
|
);
|
|
3575
|
-
|
|
3576
|
-
const
|
|
3577
|
-
function
|
|
3578
|
-
|
|
3573
|
+
oe.subscribe((e) => ke = e);
|
|
3574
|
+
const ce = {};
|
|
3575
|
+
function Hn(e, t) {
|
|
3576
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3579
3577
|
}
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3578
|
+
function Ut(e) {
|
|
3579
|
+
return ce[e];
|
|
3582
3580
|
}
|
|
3583
|
-
function
|
|
3584
|
-
return
|
|
3585
|
-
const r =
|
|
3581
|
+
function Tn(e) {
|
|
3582
|
+
return _e(e).map((t) => {
|
|
3583
|
+
const r = Ut(t);
|
|
3586
3584
|
return [t, r ? [...r] : []];
|
|
3587
3585
|
}).filter(([, t]) => t.length > 0);
|
|
3588
3586
|
}
|
|
3589
|
-
function
|
|
3590
|
-
return e == null ? !1 :
|
|
3587
|
+
function Ue(e) {
|
|
3588
|
+
return e == null ? !1 : _e(e).some(
|
|
3591
3589
|
(t) => {
|
|
3592
3590
|
var r;
|
|
3593
|
-
return (r =
|
|
3591
|
+
return (r = Ut(t)) == null ? void 0 : r.size;
|
|
3594
3592
|
}
|
|
3595
3593
|
);
|
|
3596
3594
|
}
|
|
3597
|
-
function
|
|
3595
|
+
function Sn(e, t) {
|
|
3598
3596
|
return Promise.all(
|
|
3599
|
-
t.map((n) => (
|
|
3600
|
-
).then((n) =>
|
|
3601
|
-
}
|
|
3602
|
-
const
|
|
3603
|
-
function
|
|
3604
|
-
if (!
|
|
3605
|
-
return e in
|
|
3606
|
-
const t =
|
|
3607
|
-
return
|
|
3597
|
+
t.map((n) => (Hn(e, n), n().then((i) => i.default || i)))
|
|
3598
|
+
).then((n) => Rt(e, ...n));
|
|
3599
|
+
}
|
|
3600
|
+
const te = {};
|
|
3601
|
+
function Gt(e) {
|
|
3602
|
+
if (!Ue(e))
|
|
3603
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3604
|
+
const t = Tn(e);
|
|
3605
|
+
return te[e] = Promise.all(
|
|
3608
3606
|
t.map(
|
|
3609
|
-
([r, n]) =>
|
|
3607
|
+
([r, n]) => Sn(r, n)
|
|
3610
3608
|
)
|
|
3611
3609
|
).then(() => {
|
|
3612
|
-
if (
|
|
3613
|
-
return
|
|
3614
|
-
delete
|
|
3615
|
-
}),
|
|
3610
|
+
if (Ue(e))
|
|
3611
|
+
return Gt(e);
|
|
3612
|
+
delete te[e];
|
|
3613
|
+
}), te[e];
|
|
3616
3614
|
}
|
|
3617
|
-
const
|
|
3615
|
+
const Bn = {
|
|
3618
3616
|
number: {
|
|
3619
3617
|
scientific: { notation: "scientific" },
|
|
3620
3618
|
engineering: { notation: "engineering" },
|
|
@@ -3643,150 +3641,150 @@ const An = {
|
|
|
3643
3641
|
timeZoneName: "short"
|
|
3644
3642
|
}
|
|
3645
3643
|
}
|
|
3646
|
-
},
|
|
3644
|
+
}, An = {
|
|
3647
3645
|
fallbackLocale: null,
|
|
3648
3646
|
loadingDelay: 200,
|
|
3649
|
-
formats:
|
|
3647
|
+
formats: Bn,
|
|
3650
3648
|
warnOnMissingMessages: !0,
|
|
3651
3649
|
handleMissingMessage: void 0,
|
|
3652
3650
|
ignoreTag: !0
|
|
3653
|
-
},
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3656
|
-
}
|
|
3657
|
-
const
|
|
3658
|
-
var
|
|
3659
|
-
for (var r in t
|
|
3660
|
-
|
|
3661
|
-
if (
|
|
3662
|
-
for (var r of
|
|
3663
|
-
|
|
3651
|
+
}, On = An;
|
|
3652
|
+
function J() {
|
|
3653
|
+
return On;
|
|
3654
|
+
}
|
|
3655
|
+
const Be = ge(!1);
|
|
3656
|
+
var wn = Object.defineProperty, Nn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, In = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
|
|
3657
|
+
for (var r in t)
|
|
3658
|
+
In.call(t, r) && st(e, r, t[r]);
|
|
3659
|
+
if (it)
|
|
3660
|
+
for (var r of it(t))
|
|
3661
|
+
Cn.call(t, r) && st(e, r, t[r]);
|
|
3664
3662
|
return e;
|
|
3665
|
-
},
|
|
3666
|
-
let
|
|
3667
|
-
const
|
|
3668
|
-
function
|
|
3663
|
+
}, $n = (e, t) => Nn(e, Ln(t));
|
|
3664
|
+
let Ge;
|
|
3665
|
+
const me = ge(null);
|
|
3666
|
+
function ot(e) {
|
|
3669
3667
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3670
3668
|
}
|
|
3671
|
-
function
|
|
3672
|
-
const r =
|
|
3673
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3669
|
+
function _e(e, t = J().fallbackLocale) {
|
|
3670
|
+
const r = ot(e);
|
|
3671
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
|
3674
3672
|
}
|
|
3675
|
-
function
|
|
3676
|
-
return
|
|
3673
|
+
function k() {
|
|
3674
|
+
return Ge ?? void 0;
|
|
3677
3675
|
}
|
|
3678
|
-
|
|
3679
|
-
|
|
3676
|
+
me.subscribe((e) => {
|
|
3677
|
+
Ge = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3680
3678
|
});
|
|
3681
|
-
const
|
|
3682
|
-
if (e &&
|
|
3683
|
-
const { loadingDelay: t } =
|
|
3679
|
+
const Rn = (e) => {
|
|
3680
|
+
if (e && Pn(e) && Ue(e)) {
|
|
3681
|
+
const { loadingDelay: t } = J();
|
|
3684
3682
|
let r;
|
|
3685
|
-
return typeof window < "u" &&
|
|
3686
|
-
() =>
|
|
3683
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3684
|
+
() => Be.set(!0),
|
|
3687
3685
|
t
|
|
3688
|
-
) :
|
|
3689
|
-
|
|
3686
|
+
) : Be.set(!0), Gt(e).then(() => {
|
|
3687
|
+
me.set(e);
|
|
3690
3688
|
}).finally(() => {
|
|
3691
|
-
clearTimeout(r),
|
|
3689
|
+
clearTimeout(r), Be.set(!1);
|
|
3692
3690
|
});
|
|
3693
3691
|
}
|
|
3694
|
-
return
|
|
3695
|
-
},
|
|
3696
|
-
set:
|
|
3697
|
-
}),
|
|
3692
|
+
return me.set(e);
|
|
3693
|
+
}, K = $n(Mn({}, me), {
|
|
3694
|
+
set: Rn
|
|
3695
|
+
}), Ee = (e) => {
|
|
3698
3696
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3699
3697
|
return (n) => {
|
|
3700
3698
|
const i = JSON.stringify(n);
|
|
3701
3699
|
return i in t ? t[i] : t[i] = e(n);
|
|
3702
3700
|
};
|
|
3703
3701
|
};
|
|
3704
|
-
var
|
|
3702
|
+
var Un = Object.defineProperty, pe = Object.getOwnPropertySymbols, Dt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3705
3703
|
for (var r in t || (t = {}))
|
|
3706
|
-
|
|
3707
|
-
if (
|
|
3708
|
-
for (var r of
|
|
3709
|
-
|
|
3704
|
+
Dt.call(t, r) && at(e, r, t[r]);
|
|
3705
|
+
if (pe)
|
|
3706
|
+
for (var r of pe(t))
|
|
3707
|
+
Ft.call(t, r) && at(e, r, t[r]);
|
|
3710
3708
|
return e;
|
|
3711
|
-
},
|
|
3709
|
+
}, ee = (e, t) => {
|
|
3712
3710
|
var r = {};
|
|
3713
3711
|
for (var n in e)
|
|
3714
|
-
|
|
3715
|
-
if (e != null &&
|
|
3716
|
-
for (var n of
|
|
3717
|
-
t.indexOf(n) < 0 &&
|
|
3712
|
+
Dt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3713
|
+
if (e != null && pe)
|
|
3714
|
+
for (var n of pe(e))
|
|
3715
|
+
t.indexOf(n) < 0 && Ft.call(e, n) && (r[n] = e[n]);
|
|
3718
3716
|
return r;
|
|
3719
3717
|
};
|
|
3720
|
-
const
|
|
3721
|
-
const { formats: r } =
|
|
3718
|
+
const ie = (e, t) => {
|
|
3719
|
+
const { formats: r } = J();
|
|
3722
3720
|
if (e in r && t in r[e])
|
|
3723
3721
|
return r[e][t];
|
|
3724
3722
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3725
|
-
},
|
|
3723
|
+
}, Gn = Ee(
|
|
3726
3724
|
(e) => {
|
|
3727
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3725
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3728
3726
|
if (r == null)
|
|
3729
3727
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3730
|
-
return n && (i =
|
|
3728
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
3731
3729
|
}
|
|
3732
|
-
),
|
|
3730
|
+
), Dn = Ee(
|
|
3733
3731
|
(e) => {
|
|
3734
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3732
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3735
3733
|
if (r == null)
|
|
3736
3734
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3737
|
-
return n ? i =
|
|
3735
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3738
3736
|
}
|
|
3739
|
-
),
|
|
3737
|
+
), Fn = Ee(
|
|
3740
3738
|
(e) => {
|
|
3741
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3739
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3742
3740
|
if (r == null)
|
|
3743
3741
|
throw new Error(
|
|
3744
3742
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3745
3743
|
);
|
|
3746
|
-
return n ? i =
|
|
3744
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3747
3745
|
}
|
|
3748
|
-
),
|
|
3746
|
+
), jn = (e = {}) => {
|
|
3749
3747
|
var t = e, {
|
|
3750
|
-
locale: r =
|
|
3751
|
-
} = t, n =
|
|
3748
|
+
locale: r = k()
|
|
3749
|
+
} = t, n = ee(t, [
|
|
3752
3750
|
"locale"
|
|
3753
3751
|
]);
|
|
3754
|
-
return
|
|
3755
|
-
},
|
|
3752
|
+
return Gn(Ve({ locale: r }, n));
|
|
3753
|
+
}, kn = (e = {}) => {
|
|
3756
3754
|
var t = e, {
|
|
3757
|
-
locale: r =
|
|
3758
|
-
} = t, n =
|
|
3755
|
+
locale: r = k()
|
|
3756
|
+
} = t, n = ee(t, [
|
|
3759
3757
|
"locale"
|
|
3760
3758
|
]);
|
|
3761
|
-
return
|
|
3762
|
-
},
|
|
3759
|
+
return Dn(Ve({ locale: r }, n));
|
|
3760
|
+
}, Vn = (e = {}) => {
|
|
3763
3761
|
var t = e, {
|
|
3764
|
-
locale: r =
|
|
3765
|
-
} = t, n =
|
|
3762
|
+
locale: r = k()
|
|
3763
|
+
} = t, n = ee(t, [
|
|
3766
3764
|
"locale"
|
|
3767
3765
|
]);
|
|
3768
|
-
return
|
|
3769
|
-
},
|
|
3766
|
+
return Fn(Ve({ locale: r }, n));
|
|
3767
|
+
}, Xn = Ee(
|
|
3770
3768
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3771
|
-
(e, t =
|
|
3772
|
-
ignoreTag:
|
|
3769
|
+
(e, t = k()) => new vn(e, t, J().formats, {
|
|
3770
|
+
ignoreTag: J().ignoreTag
|
|
3773
3771
|
})
|
|
3774
|
-
),
|
|
3772
|
+
), zn = (e, t = {}) => {
|
|
3775
3773
|
var r, n, i, s;
|
|
3776
3774
|
let o = t;
|
|
3777
3775
|
typeof e == "object" && (o = e, e = o.id);
|
|
3778
3776
|
const {
|
|
3779
3777
|
values: a,
|
|
3780
|
-
locale: l =
|
|
3778
|
+
locale: l = k(),
|
|
3781
3779
|
default: u
|
|
3782
3780
|
} = o;
|
|
3783
3781
|
if (l == null)
|
|
3784
3782
|
throw new Error(
|
|
3785
3783
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3786
3784
|
);
|
|
3787
|
-
let h =
|
|
3785
|
+
let h = Mt(e, l);
|
|
3788
3786
|
if (!h)
|
|
3789
|
-
h = (s = (i = (n = (r =
|
|
3787
|
+
h = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3790
3788
|
else if (typeof h != "string")
|
|
3791
3789
|
return console.warn(
|
|
3792
3790
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3795,7 +3793,7 @@ const se = (e, t) => {
|
|
|
3795
3793
|
return h;
|
|
3796
3794
|
let c = h;
|
|
3797
3795
|
try {
|
|
3798
|
-
c =
|
|
3796
|
+
c = Xn(h, l).format(a);
|
|
3799
3797
|
} catch (f) {
|
|
3800
3798
|
f instanceof Error && console.warn(
|
|
3801
3799
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3803,24 +3801,24 @@ const se = (e, t) => {
|
|
|
3803
3801
|
);
|
|
3804
3802
|
}
|
|
3805
3803
|
return c;
|
|
3806
|
-
},
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
function
|
|
3812
|
-
|
|
3813
|
-
}
|
|
3814
|
-
function
|
|
3815
|
-
|
|
3816
|
-
}
|
|
3817
|
-
function
|
|
3804
|
+
}, Wn = (e, t) => Vn(t).format(e), Zn = (e, t) => kn(t).format(e), Qn = (e, t) => jn(t).format(e), qn = (e, t = k()) => Mt(e, t), Jn = Y([K, oe], () => zn);
|
|
3805
|
+
Y([K], () => Wn);
|
|
3806
|
+
Y([K], () => Zn);
|
|
3807
|
+
Y([K], () => Qn);
|
|
3808
|
+
Y([K, oe], () => qn);
|
|
3809
|
+
function ut(e, t) {
|
|
3810
|
+
Rt(e, t);
|
|
3811
|
+
}
|
|
3812
|
+
function Yn(e) {
|
|
3813
|
+
K.set(e);
|
|
3814
|
+
}
|
|
3815
|
+
function Kn(e, t) {
|
|
3818
3816
|
if (e) {
|
|
3819
3817
|
const r = document.createElement("style");
|
|
3820
3818
|
r.innerHTML = t, e.appendChild(r);
|
|
3821
3819
|
}
|
|
3822
3820
|
}
|
|
3823
|
-
function
|
|
3821
|
+
function ei(e, t) {
|
|
3824
3822
|
const r = new URL(t);
|
|
3825
3823
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3826
3824
|
const i = document.createElement("style");
|
|
@@ -3829,7 +3827,7 @@ function ti(e, t) {
|
|
|
3829
3827
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3830
3828
|
});
|
|
3831
3829
|
}
|
|
3832
|
-
function
|
|
3830
|
+
function ti(e, t, r) {
|
|
3833
3831
|
if (window.emMessageBus) {
|
|
3834
3832
|
const n = document.createElement("style");
|
|
3835
3833
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3837,68 +3835,68 @@ function ri(e, t, r) {
|
|
|
3837
3835
|
});
|
|
3838
3836
|
}
|
|
3839
3837
|
}
|
|
3840
|
-
function
|
|
3841
|
-
|
|
3838
|
+
function ri(e) {
|
|
3839
|
+
Vt(e, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
|
|
3842
3840
|
}
|
|
3843
|
-
function
|
|
3841
|
+
function ht(e, t, r) {
|
|
3844
3842
|
const n = e.slice();
|
|
3845
3843
|
return n[21] = t[r], n;
|
|
3846
3844
|
}
|
|
3847
|
-
function
|
|
3845
|
+
function lt(e, t, r) {
|
|
3848
3846
|
const n = e.slice();
|
|
3849
3847
|
return n[21] = t[r], n;
|
|
3850
3848
|
}
|
|
3851
|
-
function
|
|
3849
|
+
function ni(e) {
|
|
3852
3850
|
let t, r = (
|
|
3853
3851
|
/*$_*/
|
|
3854
3852
|
e[4]("popularProviders") + ""
|
|
3855
3853
|
), n, i, s, o, a = (
|
|
3856
3854
|
/*$_*/
|
|
3857
3855
|
e[4]("otherProviders") + ""
|
|
3858
|
-
), l, u, h, c =
|
|
3856
|
+
), l, u, h, c = ue(
|
|
3859
3857
|
/*topProviders*/
|
|
3860
3858
|
e[1]
|
|
3861
3859
|
), f = [];
|
|
3862
|
-
for (let
|
|
3863
|
-
f[
|
|
3864
|
-
let g =
|
|
3860
|
+
for (let d = 0; d < c.length; d += 1)
|
|
3861
|
+
f[d] = ft(lt(e, c, d));
|
|
3862
|
+
let g = ue(
|
|
3865
3863
|
/*otherProviders*/
|
|
3866
3864
|
e[2]
|
|
3867
|
-
),
|
|
3868
|
-
for (let
|
|
3869
|
-
d
|
|
3865
|
+
), p = [];
|
|
3866
|
+
for (let d = 0; d < g.length; d += 1)
|
|
3867
|
+
p[d] = ct(ht(e, g, d));
|
|
3870
3868
|
return {
|
|
3871
3869
|
c() {
|
|
3872
|
-
t = A("h4"), n = $(r), i =
|
|
3873
|
-
for (let
|
|
3874
|
-
f[
|
|
3875
|
-
s =
|
|
3876
|
-
for (let
|
|
3877
|
-
d
|
|
3878
|
-
h =
|
|
3870
|
+
t = A("h4"), n = $(r), i = R();
|
|
3871
|
+
for (let d = 0; d < f.length; d += 1)
|
|
3872
|
+
f[d].c();
|
|
3873
|
+
s = R(), o = A("h4"), l = $(a), u = R();
|
|
3874
|
+
for (let d = 0; d < p.length; d += 1)
|
|
3875
|
+
p[d].c();
|
|
3876
|
+
h = Wt(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3879
3877
|
},
|
|
3880
|
-
m(
|
|
3881
|
-
C(
|
|
3878
|
+
m(d, v) {
|
|
3879
|
+
C(d, t, v), y(t, n), C(d, i, v);
|
|
3882
3880
|
for (let m = 0; m < f.length; m += 1)
|
|
3883
|
-
f[m] && f[m].m(
|
|
3884
|
-
C(
|
|
3885
|
-
for (let m = 0; m <
|
|
3886
|
-
|
|
3887
|
-
C(
|
|
3881
|
+
f[m] && f[m].m(d, v);
|
|
3882
|
+
C(d, s, v), C(d, o, v), y(o, l), C(d, u, v);
|
|
3883
|
+
for (let m = 0; m < p.length; m += 1)
|
|
3884
|
+
p[m] && p[m].m(d, v);
|
|
3885
|
+
C(d, h, v);
|
|
3888
3886
|
},
|
|
3889
|
-
p(
|
|
3887
|
+
p(d, v) {
|
|
3890
3888
|
if (v & /*$_*/
|
|
3891
3889
|
16 && r !== (r = /*$_*/
|
|
3892
|
-
|
|
3890
|
+
d[4]("popularProviders") + "") && D(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3893
3891
|
50) {
|
|
3894
|
-
c =
|
|
3892
|
+
c = ue(
|
|
3895
3893
|
/*topProviders*/
|
|
3896
|
-
|
|
3894
|
+
d[1]
|
|
3897
3895
|
);
|
|
3898
3896
|
let m;
|
|
3899
3897
|
for (m = 0; m < c.length; m += 1) {
|
|
3900
|
-
const
|
|
3901
|
-
f[m] ? f[m].p(
|
|
3898
|
+
const H = lt(d, c, m);
|
|
3899
|
+
f[m] ? f[m].p(H, v) : (f[m] = ft(H), f[m].c(), f[m].m(s.parentNode, s));
|
|
3902
3900
|
}
|
|
3903
3901
|
for (; m < f.length; m += 1)
|
|
3904
3902
|
f[m].d(1);
|
|
@@ -3906,28 +3904,28 @@ function ii(e) {
|
|
|
3906
3904
|
}
|
|
3907
3905
|
if (v & /*$_*/
|
|
3908
3906
|
16 && a !== (a = /*$_*/
|
|
3909
|
-
|
|
3907
|
+
d[4]("otherProviders") + "") && D(l, a), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3910
3908
|
52) {
|
|
3911
|
-
g =
|
|
3909
|
+
g = ue(
|
|
3912
3910
|
/*otherProviders*/
|
|
3913
|
-
|
|
3911
|
+
d[2]
|
|
3914
3912
|
);
|
|
3915
3913
|
let m;
|
|
3916
3914
|
for (m = 0; m < g.length; m += 1) {
|
|
3917
|
-
const
|
|
3918
|
-
|
|
3915
|
+
const H = ht(d, g, m);
|
|
3916
|
+
p[m] ? p[m].p(H, v) : (p[m] = ct(H), p[m].c(), p[m].m(h.parentNode, h));
|
|
3919
3917
|
}
|
|
3920
|
-
for (; m <
|
|
3921
|
-
|
|
3922
|
-
|
|
3918
|
+
for (; m < p.length; m += 1)
|
|
3919
|
+
p[m].d(1);
|
|
3920
|
+
p.length = g.length;
|
|
3923
3921
|
}
|
|
3924
3922
|
},
|
|
3925
|
-
d(
|
|
3926
|
-
|
|
3923
|
+
d(d) {
|
|
3924
|
+
d && (I(t), I(i), I(s), I(o), I(u), I(h)), ze(f, d), ze(p, d);
|
|
3927
3925
|
}
|
|
3928
3926
|
};
|
|
3929
3927
|
}
|
|
3930
|
-
function
|
|
3928
|
+
function ii(e) {
|
|
3931
3929
|
let t, r = (
|
|
3932
3930
|
/*$_*/
|
|
3933
3931
|
e[4]("loading") + ""
|
|
@@ -3942,24 +3940,24 @@ function si(e) {
|
|
|
3942
3940
|
p(i, s) {
|
|
3943
3941
|
s & /*$_*/
|
|
3944
3942
|
16 && r !== (r = /*$_*/
|
|
3945
|
-
i[4]("loading") + "") &&
|
|
3943
|
+
i[4]("loading") + "") && D(n, r);
|
|
3946
3944
|
},
|
|
3947
3945
|
d(i) {
|
|
3948
3946
|
i && I(t);
|
|
3949
3947
|
}
|
|
3950
3948
|
};
|
|
3951
3949
|
}
|
|
3952
|
-
function
|
|
3950
|
+
function ft(e) {
|
|
3953
3951
|
let t, r, n, i, s, o, a, l = (
|
|
3954
3952
|
/*provider*/
|
|
3955
3953
|
e[21].name + ""
|
|
3956
3954
|
), u, h, c, f = (
|
|
3957
3955
|
/*provider*/
|
|
3958
3956
|
e[21].games.count + ""
|
|
3959
|
-
), g,
|
|
3957
|
+
), g, p, d = (
|
|
3960
3958
|
/*$_*/
|
|
3961
3959
|
e[4]("games") + ""
|
|
3962
|
-
), v, m,
|
|
3960
|
+
), v, m, H;
|
|
3963
3961
|
function B() {
|
|
3964
3962
|
return (
|
|
3965
3963
|
/*click_handler*/
|
|
@@ -3971,42 +3969,42 @@ function ct(e) {
|
|
|
3971
3969
|
}
|
|
3972
3970
|
return {
|
|
3973
3971
|
c() {
|
|
3974
|
-
t = A("div"), r = A("img"), s =
|
|
3972
|
+
t = A("div"), r = A("img"), s = R(), o = A("div"), a = A("p"), u = $(l), h = R(), c = A("p"), g = $(f), p = R(), v = $(d), de(r.src, n = /*provider*/
|
|
3975
3973
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
3976
3974
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
3977
3975
|
},
|
|
3978
|
-
m(O,
|
|
3979
|
-
C(O, t,
|
|
3976
|
+
m(O, T) {
|
|
3977
|
+
C(O, t, T), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, p), y(c, v), m || (H = gt(t, "click", B), m = !0);
|
|
3980
3978
|
},
|
|
3981
|
-
p(O,
|
|
3982
|
-
e = O,
|
|
3983
|
-
2 && !
|
|
3984
|
-
e[21].logo) && S(r, "src", n),
|
|
3979
|
+
p(O, T) {
|
|
3980
|
+
e = O, T & /*topProviders*/
|
|
3981
|
+
2 && !de(r.src, n = /*provider*/
|
|
3982
|
+
e[21].logo) && S(r, "src", n), T & /*topProviders*/
|
|
3985
3983
|
2 && i !== (i = /*provider*/
|
|
3986
|
-
e[21].name) && S(r, "alt", i),
|
|
3984
|
+
e[21].name) && S(r, "alt", i), T & /*topProviders*/
|
|
3987
3985
|
2 && l !== (l = /*provider*/
|
|
3988
|
-
e[21].name + "") &&
|
|
3986
|
+
e[21].name + "") && D(u, l), T & /*topProviders*/
|
|
3989
3987
|
2 && f !== (f = /*provider*/
|
|
3990
|
-
e[21].games.count + "") &&
|
|
3991
|
-
16 &&
|
|
3992
|
-
e[4]("games") + "") &&
|
|
3988
|
+
e[21].games.count + "") && D(g, f), T & /*$_*/
|
|
3989
|
+
16 && d !== (d = /*$_*/
|
|
3990
|
+
e[4]("games") + "") && D(v, d);
|
|
3993
3991
|
},
|
|
3994
3992
|
d(O) {
|
|
3995
|
-
O && I(t), m = !1,
|
|
3993
|
+
O && I(t), m = !1, H();
|
|
3996
3994
|
}
|
|
3997
3995
|
};
|
|
3998
3996
|
}
|
|
3999
|
-
function
|
|
3997
|
+
function ct(e) {
|
|
4000
3998
|
let t, r, n, i, s, o, a, l = (
|
|
4001
3999
|
/*provider*/
|
|
4002
4000
|
e[21].name + ""
|
|
4003
4001
|
), u, h, c, f = (
|
|
4004
4002
|
/*provider*/
|
|
4005
4003
|
e[21].games.count + ""
|
|
4006
|
-
), g,
|
|
4004
|
+
), g, p, d = (
|
|
4007
4005
|
/*$_*/
|
|
4008
4006
|
e[4]("games") + ""
|
|
4009
|
-
), v, m,
|
|
4007
|
+
), v, m, H, B;
|
|
4010
4008
|
function O() {
|
|
4011
4009
|
return (
|
|
4012
4010
|
/*click_handler_1*/
|
|
@@ -4018,37 +4016,37 @@ function pt(e) {
|
|
|
4018
4016
|
}
|
|
4019
4017
|
return {
|
|
4020
4018
|
c() {
|
|
4021
|
-
t = A("div"), r = A("img"), s =
|
|
4019
|
+
t = A("div"), r = A("img"), s = R(), o = A("div"), a = A("p"), u = $(l), h = R(), c = A("p"), g = $(f), p = R(), v = $(d), m = R(), de(r.src, n = /*provider*/
|
|
4022
4020
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4023
4021
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4024
4022
|
},
|
|
4025
|
-
m(
|
|
4026
|
-
C(
|
|
4023
|
+
m(T, N) {
|
|
4024
|
+
C(T, t, N), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, p), y(c, v), y(t, m), H || (B = gt(t, "click", O), H = !0);
|
|
4027
4025
|
},
|
|
4028
|
-
p(
|
|
4029
|
-
e =
|
|
4030
|
-
4 && !
|
|
4026
|
+
p(T, N) {
|
|
4027
|
+
e = T, N & /*otherProviders*/
|
|
4028
|
+
4 && !de(r.src, n = /*provider*/
|
|
4031
4029
|
e[21].logo) && S(r, "src", n), N & /*otherProviders*/
|
|
4032
4030
|
4 && i !== (i = /*provider*/
|
|
4033
4031
|
e[21].name) && S(r, "alt", i), N & /*otherProviders*/
|
|
4034
4032
|
4 && l !== (l = /*provider*/
|
|
4035
|
-
e[21].name + "") &&
|
|
4033
|
+
e[21].name + "") && D(u, l), N & /*otherProviders*/
|
|
4036
4034
|
4 && f !== (f = /*provider*/
|
|
4037
|
-
e[21].games.count + "") &&
|
|
4038
|
-
16 &&
|
|
4039
|
-
e[4]("games") + "") &&
|
|
4035
|
+
e[21].games.count + "") && D(g, f), N & /*$_*/
|
|
4036
|
+
16 && d !== (d = /*$_*/
|
|
4037
|
+
e[4]("games") + "") && D(v, d);
|
|
4040
4038
|
},
|
|
4041
|
-
d(
|
|
4042
|
-
|
|
4039
|
+
d(T) {
|
|
4040
|
+
T && I(t), H = !1, B();
|
|
4043
4041
|
}
|
|
4044
4042
|
};
|
|
4045
4043
|
}
|
|
4046
|
-
function
|
|
4044
|
+
function si(e) {
|
|
4047
4045
|
let t;
|
|
4048
4046
|
function r(s, o) {
|
|
4049
4047
|
return (
|
|
4050
4048
|
/*isLoading*/
|
|
4051
|
-
s[3] === !0 ?
|
|
4049
|
+
s[3] === !0 ? ii : ni
|
|
4052
4050
|
);
|
|
4053
4051
|
}
|
|
4054
4052
|
let n = r(e), i = n(e);
|
|
@@ -4069,46 +4067,46 @@ function oi(e) {
|
|
|
4069
4067
|
}
|
|
4070
4068
|
};
|
|
4071
4069
|
}
|
|
4072
|
-
function
|
|
4070
|
+
function oi(e, t, r) {
|
|
4073
4071
|
let n;
|
|
4074
|
-
|
|
4075
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, c = [], f = [], g = [],
|
|
4072
|
+
kt(e, Jn, (b) => r(4, n = b));
|
|
4073
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, c = [], f = [], g = [], p = !1, d;
|
|
4076
4074
|
const v = () => {
|
|
4077
4075
|
fetch(u).then((L) => L.json()).then((L) => {
|
|
4078
|
-
Object.keys(L).forEach((
|
|
4079
|
-
|
|
4076
|
+
Object.keys(L).forEach((j) => {
|
|
4077
|
+
ut(j, L[j]);
|
|
4080
4078
|
});
|
|
4081
4079
|
}).catch((L) => {
|
|
4082
4080
|
console.log(L);
|
|
4083
4081
|
});
|
|
4084
4082
|
};
|
|
4085
|
-
Object.keys(
|
|
4086
|
-
|
|
4083
|
+
Object.keys(Ze).forEach((b) => {
|
|
4084
|
+
ut(b, Ze[b]);
|
|
4087
4085
|
});
|
|
4088
4086
|
const m = () => {
|
|
4089
|
-
r(3,
|
|
4087
|
+
r(3, p = !0);
|
|
4090
4088
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4091
4089
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((L) => L.json()).then((L) => {
|
|
4092
|
-
r(3,
|
|
4093
|
-
let
|
|
4094
|
-
|
|
4090
|
+
r(3, p = !1), c = L.items.map((U) => U), r(1, f = c.filter((U) => U.isTopVendor === !0)), r(2, g = c.filter((U) => U.isTopVendor === !1));
|
|
4091
|
+
let j = [];
|
|
4092
|
+
j = c.flatMap((U) => U.subVendors), g.push(...j.filter((U) => U.games.count > 0));
|
|
4095
4093
|
});
|
|
4096
|
-
},
|
|
4094
|
+
}, H = (b, L, j) => {
|
|
4097
4095
|
window.postMessage(
|
|
4098
4096
|
{
|
|
4099
4097
|
type: "OpenGameProvider",
|
|
4100
4098
|
providerId: b,
|
|
4101
4099
|
providerName: L,
|
|
4102
|
-
providerLogo:
|
|
4100
|
+
providerLogo: j
|
|
4103
4101
|
},
|
|
4104
4102
|
window.location.href
|
|
4105
4103
|
);
|
|
4106
4104
|
}, B = () => {
|
|
4107
|
-
|
|
4108
|
-
}, O = (b) =>
|
|
4105
|
+
Yn(o);
|
|
4106
|
+
}, O = (b) => H(b.id, b.name, b.logo), T = (b) => H(b.id, b.name, b.logo);
|
|
4109
4107
|
function N(b) {
|
|
4110
|
-
|
|
4111
|
-
|
|
4108
|
+
Ae[b ? "unshift" : "push"](() => {
|
|
4109
|
+
d = b, r(0, d);
|
|
4112
4110
|
});
|
|
4113
4111
|
}
|
|
4114
4112
|
return e.$$set = (b) => {
|
|
@@ -4118,16 +4116,16 @@ function ai(e, t, r) {
|
|
|
4118
4116
|
448 && i && o && s && m(), e.$$.dirty & /*lang*/
|
|
4119
4117
|
256 && o && B(), e.$$.dirty & /*translationurl*/
|
|
4120
4118
|
2048 && u && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4121
|
-
513 && a &&
|
|
4122
|
-
1025 && l &&
|
|
4123
|
-
4097 && h &&
|
|
4119
|
+
513 && a && d && Kn(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4120
|
+
1025 && l && d && ei(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4121
|
+
4097 && h && d && ti(d, `${h}.Style`);
|
|
4124
4122
|
}, [
|
|
4125
|
-
|
|
4123
|
+
d,
|
|
4126
4124
|
f,
|
|
4127
4125
|
g,
|
|
4128
|
-
|
|
4126
|
+
p,
|
|
4129
4127
|
n,
|
|
4130
|
-
|
|
4128
|
+
H,
|
|
4131
4129
|
i,
|
|
4132
4130
|
s,
|
|
4133
4131
|
o,
|
|
@@ -4136,18 +4134,18 @@ function ai(e, t, r) {
|
|
|
4136
4134
|
u,
|
|
4137
4135
|
h,
|
|
4138
4136
|
O,
|
|
4139
|
-
|
|
4137
|
+
T,
|
|
4140
4138
|
N
|
|
4141
4139
|
];
|
|
4142
4140
|
}
|
|
4143
|
-
class
|
|
4141
|
+
class ai extends ar {
|
|
4144
4142
|
constructor(t) {
|
|
4145
|
-
super(),
|
|
4143
|
+
super(), sr(
|
|
4146
4144
|
this,
|
|
4147
4145
|
t,
|
|
4148
|
-
ai,
|
|
4149
4146
|
oi,
|
|
4150
|
-
|
|
4147
|
+
si,
|
|
4148
|
+
mt,
|
|
4151
4149
|
{
|
|
4152
4150
|
endpoint: 6,
|
|
4153
4151
|
datasource: 7,
|
|
@@ -4157,53 +4155,53 @@ class ui extends ur {
|
|
|
4157
4155
|
translationurl: 11,
|
|
4158
4156
|
mbsource: 12
|
|
4159
4157
|
},
|
|
4160
|
-
|
|
4158
|
+
ri
|
|
4161
4159
|
);
|
|
4162
4160
|
}
|
|
4163
4161
|
get endpoint() {
|
|
4164
4162
|
return this.$$.ctx[6];
|
|
4165
4163
|
}
|
|
4166
4164
|
set endpoint(t) {
|
|
4167
|
-
this.$$set({ endpoint: t }),
|
|
4165
|
+
this.$$set({ endpoint: t }), G();
|
|
4168
4166
|
}
|
|
4169
4167
|
get datasource() {
|
|
4170
4168
|
return this.$$.ctx[7];
|
|
4171
4169
|
}
|
|
4172
4170
|
set datasource(t) {
|
|
4173
|
-
this.$$set({ datasource: t }),
|
|
4171
|
+
this.$$set({ datasource: t }), G();
|
|
4174
4172
|
}
|
|
4175
4173
|
get lang() {
|
|
4176
4174
|
return this.$$.ctx[8];
|
|
4177
4175
|
}
|
|
4178
4176
|
set lang(t) {
|
|
4179
|
-
this.$$set({ lang: t }),
|
|
4177
|
+
this.$$set({ lang: t }), G();
|
|
4180
4178
|
}
|
|
4181
4179
|
get clientstyling() {
|
|
4182
4180
|
return this.$$.ctx[9];
|
|
4183
4181
|
}
|
|
4184
4182
|
set clientstyling(t) {
|
|
4185
|
-
this.$$set({ clientstyling: t }),
|
|
4183
|
+
this.$$set({ clientstyling: t }), G();
|
|
4186
4184
|
}
|
|
4187
4185
|
get clientstylingurl() {
|
|
4188
4186
|
return this.$$.ctx[10];
|
|
4189
4187
|
}
|
|
4190
4188
|
set clientstylingurl(t) {
|
|
4191
|
-
this.$$set({ clientstylingurl: t }),
|
|
4189
|
+
this.$$set({ clientstylingurl: t }), G();
|
|
4192
4190
|
}
|
|
4193
4191
|
get translationurl() {
|
|
4194
4192
|
return this.$$.ctx[11];
|
|
4195
4193
|
}
|
|
4196
4194
|
set translationurl(t) {
|
|
4197
|
-
this.$$set({ translationurl: t }),
|
|
4195
|
+
this.$$set({ translationurl: t }), G();
|
|
4198
4196
|
}
|
|
4199
4197
|
get mbsource() {
|
|
4200
4198
|
return this.$$.ctx[12];
|
|
4201
4199
|
}
|
|
4202
4200
|
set mbsource(t) {
|
|
4203
|
-
this.$$set({ mbsource: t }),
|
|
4201
|
+
this.$$set({ mbsource: t }), G();
|
|
4204
4202
|
}
|
|
4205
4203
|
}
|
|
4206
|
-
|
|
4204
|
+
or(ai, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4207
4205
|
export {
|
|
4208
|
-
|
|
4206
|
+
ai as C
|
|
4209
4207
|
};
|