@everymatrix/casino-tournaments-thumbnail-games 0.2.1 → 0.2.4
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/{CasinoTournamentsThumbnailGames-BoNXtTGv.js → CasinoTournamentsThumbnailGames-6Z4opXQ_.js} +775 -754
- package/components/{CasinoTournamentsThumbnailGames-5E9pnyA4.js → CasinoTournamentsThumbnailGames-AWAhNdqG.js} +751 -730
- package/components/CasinoTournamentsThumbnailGames-ChN1OI2H.cjs +18 -0
- package/es2015/casino-tournaments-thumbnail-games.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-games.js +1 -1
- package/esnext/casino-tournaments-thumbnail-games.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoTournamentsThumbnailGames-f1oC-a5z.cjs +0 -18
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
2
|
-
function
|
|
1
|
+
import "../stencil/ui-image-CHeV8e9p.js";
|
|
2
|
+
function I() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function It(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function rt() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function se(e) {
|
|
11
|
+
e.forEach(It);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function _e(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Lt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let ue;
|
|
20
|
-
function
|
|
20
|
+
function nt(e, t) {
|
|
21
21
|
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function pr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ct(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
30
|
-
return
|
|
30
|
+
return I;
|
|
31
31
|
}
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function mr(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function A(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function dr(e, t, r) {
|
|
42
|
+
const n = br(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
44
|
const i = P("style");
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
45
|
+
i.id = t, i.textContent = r, gr(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function br(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,8 +55,8 @@ function dr(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function gr(e, t) {
|
|
59
|
+
return A(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
@@ -68,21 +68,21 @@ function D(e, t, r) {
|
|
|
68
68
|
function G(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Mt(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
75
|
function P(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function W(e) {
|
|
79
79
|
return document.createTextNode(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function re() {
|
|
82
|
+
return W(" ");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function yr() {
|
|
85
|
+
return W("");
|
|
86
86
|
}
|
|
87
87
|
function vr(e, t, r, n) {
|
|
88
88
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -94,14 +94,14 @@ function w(e, t, r) {
|
|
|
94
94
|
const n = t.toLowerCase();
|
|
95
95
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function _r(e) {
|
|
98
98
|
return Array.from(e.childNodes);
|
|
99
99
|
}
|
|
100
100
|
function de(e, t) {
|
|
101
101
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
102
102
|
t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Er(e) {
|
|
105
105
|
const t = {};
|
|
106
106
|
return e.childNodes.forEach(
|
|
107
107
|
/** @param {Element} node */
|
|
@@ -110,98 +110,98 @@ function _r(e) {
|
|
|
110
110
|
}
|
|
111
111
|
), t;
|
|
112
112
|
}
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
let ne;
|
|
114
|
+
function te(e) {
|
|
115
|
+
ne = e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
if (!
|
|
117
|
+
function xr() {
|
|
118
|
+
if (!ne)
|
|
119
119
|
throw new Error("Function called outside component initialization");
|
|
120
|
-
return
|
|
120
|
+
return ne;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function Sr(e) {
|
|
123
|
+
xr().$$.on_mount.push(e);
|
|
124
124
|
}
|
|
125
|
-
const V = [],
|
|
125
|
+
const V = [], Me = [];
|
|
126
126
|
let X = [];
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
127
|
+
const it = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
128
|
+
let $e = !1;
|
|
129
|
+
function wr() {
|
|
130
|
+
$e || ($e = !0, Tr.then(U));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Re(e) {
|
|
133
133
|
X.push(e);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
135
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
136
136
|
let j = 0;
|
|
137
137
|
function U() {
|
|
138
138
|
if (j !== 0)
|
|
139
139
|
return;
|
|
140
|
-
const e =
|
|
140
|
+
const e = ne;
|
|
141
141
|
do {
|
|
142
142
|
try {
|
|
143
143
|
for (; j < V.length; ) {
|
|
144
144
|
const t = V[j];
|
|
145
|
-
j++,
|
|
145
|
+
j++, te(t), Hr(t.$$);
|
|
146
146
|
}
|
|
147
147
|
} catch (t) {
|
|
148
148
|
throw V.length = 0, j = 0, t;
|
|
149
149
|
}
|
|
150
|
-
for (
|
|
151
|
-
|
|
150
|
+
for (te(null), V.length = 0, j = 0; Me.length; )
|
|
151
|
+
Me.pop()();
|
|
152
152
|
for (let t = 0; t < X.length; t += 1) {
|
|
153
153
|
const r = X[t];
|
|
154
|
-
|
|
154
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
155
155
|
}
|
|
156
156
|
X.length = 0;
|
|
157
157
|
} while (V.length);
|
|
158
|
-
for (;
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
for (; it.length; )
|
|
159
|
+
it.pop()();
|
|
160
|
+
$e = !1, Ae.clear(), te(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Hr(e) {
|
|
163
163
|
if (e.fragment !== null) {
|
|
164
|
-
e.update(),
|
|
164
|
+
e.update(), se(e.before_update);
|
|
165
165
|
const t = e.dirty;
|
|
166
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
166
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ar(e) {
|
|
170
170
|
const t = [], r = [];
|
|
171
171
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
172
172
|
}
|
|
173
173
|
const Br = /* @__PURE__ */ new Set();
|
|
174
|
-
function
|
|
174
|
+
function Pr(e, t) {
|
|
175
175
|
e && e.i && (Br.delete(e), e.i(t));
|
|
176
176
|
}
|
|
177
177
|
function be(e) {
|
|
178
178
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Or(e, t, r) {
|
|
181
181
|
const { fragment: n, after_update: i } = e.$$;
|
|
182
|
-
n && n.m(t, r),
|
|
183
|
-
const o = e.$$.on_mount.map(
|
|
184
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
185
|
-
}), i.forEach(
|
|
182
|
+
n && n.m(t, r), Re(() => {
|
|
183
|
+
const o = e.$$.on_mount.map(It).filter(_e);
|
|
184
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
185
|
+
}), i.forEach(Re);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Nr(e, t) {
|
|
188
188
|
const r = e.$$;
|
|
189
|
-
r.fragment !== null && (
|
|
189
|
+
r.fragment !== null && (Ar(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
190
190
|
}
|
|
191
191
|
function Ir(e, t) {
|
|
192
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
192
|
+
e.$$.dirty[0] === -1 && (V.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const h =
|
|
196
|
-
|
|
194
|
+
function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
195
|
+
const h = ne;
|
|
196
|
+
te(e);
|
|
197
197
|
const u = e.$$ = {
|
|
198
198
|
fragment: null,
|
|
199
199
|
ctx: [],
|
|
200
200
|
// state
|
|
201
201
|
props: o,
|
|
202
|
-
update:
|
|
202
|
+
update: I,
|
|
203
203
|
not_equal: i,
|
|
204
|
-
bound:
|
|
204
|
+
bound: rt(),
|
|
205
205
|
// lifecycle
|
|
206
206
|
on_mount: [],
|
|
207
207
|
on_destroy: [],
|
|
@@ -210,7 +210,7 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
210
210
|
after_update: [],
|
|
211
211
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
212
212
|
// everything else
|
|
213
|
-
callbacks:
|
|
213
|
+
callbacks: rt(),
|
|
214
214
|
dirty: a,
|
|
215
215
|
skip_bound: !1,
|
|
216
216
|
root: t.target || h.$$.root
|
|
@@ -220,18 +220,18 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
220
220
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
221
221
|
const p = d.length ? d[0] : f;
|
|
222
222
|
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Ir(e, c)), f;
|
|
223
|
-
}) : [], u.update(), l = !0,
|
|
223
|
+
}) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
224
224
|
if (t.hydrate) {
|
|
225
|
-
const c =
|
|
225
|
+
const c = _r(t.target);
|
|
226
226
|
u.fragment && u.fragment.l(c), c.forEach(G);
|
|
227
227
|
} else
|
|
228
228
|
u.fragment && u.fragment.c();
|
|
229
|
-
t.intro &&
|
|
229
|
+
t.intro && Pr(e.$$.fragment), Or(e, t.target, t.anchor), U();
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
te(h);
|
|
232
232
|
}
|
|
233
|
-
let
|
|
234
|
-
typeof HTMLElement == "function" && (
|
|
233
|
+
let $t;
|
|
234
|
+
typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
235
235
|
/** The Svelte component constructor */
|
|
236
236
|
$$ctor;
|
|
237
237
|
/** Slots */
|
|
@@ -290,7 +290,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
290
290
|
};
|
|
291
291
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
292
292
|
return;
|
|
293
|
-
const t = {}, r =
|
|
293
|
+
const t = {}, r = Er(this);
|
|
294
294
|
for (const i of this.$$s)
|
|
295
295
|
i in r && (t[i] = [e(i)]);
|
|
296
296
|
for (const i of this.attributes) {
|
|
@@ -377,8 +377,8 @@ function ce(e, t, r, n) {
|
|
|
377
377
|
return t;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
let s = class extends
|
|
380
|
+
function Cr(e, t, r, n, i, o) {
|
|
381
|
+
let s = class extends $t {
|
|
382
382
|
constructor() {
|
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
|
384
384
|
}
|
|
@@ -406,7 +406,7 @@ function Lr(e, t, r, n, i, o) {
|
|
|
406
406
|
}), e.element = /** @type {any} */
|
|
407
407
|
s, s;
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class Mr {
|
|
410
410
|
/**
|
|
411
411
|
* ### PRIVATE API
|
|
412
412
|
*
|
|
@@ -425,7 +425,7 @@ class Cr {
|
|
|
425
425
|
$$set = void 0;
|
|
426
426
|
/** @returns {void} */
|
|
427
427
|
$destroy() {
|
|
428
|
-
|
|
428
|
+
Nr(this, 1), this.$destroy = I;
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
431
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -434,8 +434,8 @@ class Cr {
|
|
|
434
434
|
* @returns {() => void}
|
|
435
435
|
*/
|
|
436
436
|
$on(t, r) {
|
|
437
|
-
if (!
|
|
438
|
-
return
|
|
437
|
+
if (!_e(r))
|
|
438
|
+
return I;
|
|
439
439
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
440
440
|
return n.push(r), () => {
|
|
441
441
|
const i = n.indexOf(r);
|
|
@@ -447,18 +447,18 @@ class Cr {
|
|
|
447
447
|
* @returns {void}
|
|
448
448
|
*/
|
|
449
449
|
$set(t) {
|
|
450
|
-
this.$$set && !
|
|
450
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
454
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
455
|
-
function
|
|
453
|
+
const $r = "4";
|
|
454
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
|
|
455
|
+
function Rr(e, t) {
|
|
456
456
|
if (e) {
|
|
457
457
|
const r = document.createElement("style");
|
|
458
458
|
r.innerHTML = t, e.appendChild(r);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Gr(e, t) {
|
|
462
462
|
const r = new URL(t);
|
|
463
463
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
464
464
|
const i = document.createElement("style");
|
|
@@ -467,7 +467,7 @@ function Rr(e, t) {
|
|
|
467
467
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ur(e, t, r) {
|
|
471
471
|
if (window.emMessageBus) {
|
|
472
472
|
const n = document.createElement("style");
|
|
473
473
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -489,43 +489,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
489
489
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
490
490
|
PERFORMANCE OF THIS SOFTWARE.
|
|
491
491
|
***************************************************************************** */
|
|
492
|
-
var
|
|
493
|
-
return
|
|
492
|
+
var Ge = function(e, t) {
|
|
493
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
494
494
|
r.__proto__ = n;
|
|
495
495
|
} || function(r, n) {
|
|
496
496
|
for (var i in n)
|
|
497
497
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
498
|
-
},
|
|
498
|
+
}, Ge(e, t);
|
|
499
499
|
};
|
|
500
|
-
function
|
|
500
|
+
function ae(e, t) {
|
|
501
501
|
if (typeof t != "function" && t !== null)
|
|
502
502
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
503
|
-
|
|
503
|
+
Ge(e, t);
|
|
504
504
|
function r() {
|
|
505
505
|
this.constructor = e;
|
|
506
506
|
}
|
|
507
507
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
508
508
|
}
|
|
509
|
-
|
|
510
|
-
return _ = Object.assign || function(t) {
|
|
511
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
512
|
-
r = arguments[n];
|
|
513
|
-
for (var o in r)
|
|
514
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
515
|
-
}
|
|
516
|
-
return t;
|
|
517
|
-
}, _.apply(this, arguments);
|
|
518
|
-
};
|
|
519
|
-
function Ur(e, t) {
|
|
520
|
-
var r = {};
|
|
521
|
-
for (var n in e)
|
|
522
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
523
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
524
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
525
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
526
|
-
return r;
|
|
527
|
-
}
|
|
528
|
-
function Re(e) {
|
|
509
|
+
function Ue(e) {
|
|
529
510
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
530
511
|
if (r)
|
|
531
512
|
return r.call(e);
|
|
@@ -537,7 +518,7 @@ function Re(e) {
|
|
|
537
518
|
};
|
|
538
519
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
539
520
|
}
|
|
540
|
-
function
|
|
521
|
+
function De(e, t) {
|
|
541
522
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
542
523
|
if (!r)
|
|
543
524
|
return e;
|
|
@@ -557,22 +538,22 @@ function Ge(e, t) {
|
|
|
557
538
|
}
|
|
558
539
|
return o;
|
|
559
540
|
}
|
|
560
|
-
function
|
|
561
|
-
if (
|
|
541
|
+
function Fe(e, t, r) {
|
|
542
|
+
if (arguments.length === 2)
|
|
562
543
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
563
544
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
564
545
|
return e.concat(o || t);
|
|
565
546
|
}
|
|
566
|
-
function
|
|
547
|
+
function M(e) {
|
|
567
548
|
return typeof e == "function";
|
|
568
549
|
}
|
|
569
|
-
function
|
|
550
|
+
function Rt(e) {
|
|
570
551
|
var t = function(n) {
|
|
571
552
|
Error.call(n), n.stack = new Error().stack;
|
|
572
553
|
}, r = e(t);
|
|
573
554
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
574
555
|
}
|
|
575
|
-
var
|
|
556
|
+
var Be = Rt(function(e) {
|
|
576
557
|
return function(r) {
|
|
577
558
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
578
559
|
` + r.map(function(n, i) {
|
|
@@ -581,13 +562,13 @@ var He = Mt(function(e) {
|
|
|
581
562
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
582
563
|
};
|
|
583
564
|
});
|
|
584
|
-
function
|
|
565
|
+
function je(e, t) {
|
|
585
566
|
if (e) {
|
|
586
567
|
var r = e.indexOf(t);
|
|
587
568
|
0 <= r && e.splice(r, 1);
|
|
588
569
|
}
|
|
589
570
|
}
|
|
590
|
-
var
|
|
571
|
+
var Ee = function() {
|
|
591
572
|
function e(t) {
|
|
592
573
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
593
574
|
}
|
|
@@ -599,7 +580,7 @@ var _e = function() {
|
|
|
599
580
|
if (s)
|
|
600
581
|
if (this._parentage = null, Array.isArray(s))
|
|
601
582
|
try {
|
|
602
|
-
for (var a =
|
|
583
|
+
for (var a = Ue(s), h = a.next(); !h.done; h = a.next()) {
|
|
603
584
|
var u = h.value;
|
|
604
585
|
u.remove(this);
|
|
605
586
|
}
|
|
@@ -616,22 +597,22 @@ var _e = function() {
|
|
|
616
597
|
else
|
|
617
598
|
s.remove(this);
|
|
618
599
|
var l = this.initialTeardown;
|
|
619
|
-
if (
|
|
600
|
+
if (M(l))
|
|
620
601
|
try {
|
|
621
602
|
l();
|
|
622
603
|
} catch (g) {
|
|
623
|
-
o = g instanceof
|
|
604
|
+
o = g instanceof Be ? g.errors : [g];
|
|
624
605
|
}
|
|
625
606
|
var c = this._finalizers;
|
|
626
607
|
if (c) {
|
|
627
608
|
this._finalizers = null;
|
|
628
609
|
try {
|
|
629
|
-
for (var f =
|
|
610
|
+
for (var f = Ue(c), d = f.next(); !d.done; d = f.next()) {
|
|
630
611
|
var p = d.value;
|
|
631
612
|
try {
|
|
632
|
-
|
|
613
|
+
ot(p);
|
|
633
614
|
} catch (g) {
|
|
634
|
-
o = o ?? [], g instanceof
|
|
615
|
+
o = o ?? [], g instanceof Be ? o = Fe(Fe([], De(o)), De(g.errors)) : o.push(g);
|
|
635
616
|
}
|
|
636
617
|
}
|
|
637
618
|
} catch (g) {
|
|
@@ -646,13 +627,13 @@ var _e = function() {
|
|
|
646
627
|
}
|
|
647
628
|
}
|
|
648
629
|
if (o)
|
|
649
|
-
throw new
|
|
630
|
+
throw new Be(o);
|
|
650
631
|
}
|
|
651
632
|
}, e.prototype.add = function(t) {
|
|
652
633
|
var r;
|
|
653
634
|
if (t && t !== this)
|
|
654
635
|
if (this.closed)
|
|
655
|
-
|
|
636
|
+
ot(t);
|
|
656
637
|
else {
|
|
657
638
|
if (t instanceof e) {
|
|
658
639
|
if (t.closed || t._hasParent(this))
|
|
@@ -669,56 +650,52 @@ var _e = function() {
|
|
|
669
650
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
670
651
|
}, e.prototype._removeParent = function(t) {
|
|
671
652
|
var r = this._parentage;
|
|
672
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
653
|
+
r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
|
|
673
654
|
}, e.prototype.remove = function(t) {
|
|
674
655
|
var r = this._finalizers;
|
|
675
|
-
r &&
|
|
656
|
+
r && je(r, t), t instanceof e && t._removeParent(this);
|
|
676
657
|
}, e.EMPTY = function() {
|
|
677
658
|
var t = new e();
|
|
678
659
|
return t.closed = !0, t;
|
|
679
660
|
}(), e;
|
|
680
|
-
}(),
|
|
681
|
-
function
|
|
682
|
-
return e instanceof
|
|
683
|
-
}
|
|
684
|
-
function
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
var
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
Promise: void 0,
|
|
691
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
692
|
-
useDeprecatedNextContext: !1
|
|
693
|
-
}, Dr = {
|
|
661
|
+
}(), Gt = Ee.EMPTY;
|
|
662
|
+
function Ut(e) {
|
|
663
|
+
return e instanceof Ee || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
664
|
+
}
|
|
665
|
+
function ot(e) {
|
|
666
|
+
M(e) ? e() : e.unsubscribe();
|
|
667
|
+
}
|
|
668
|
+
var Dr = {
|
|
669
|
+
Promise: void 0
|
|
670
|
+
}, Fr = {
|
|
694
671
|
setTimeout: function(e, t) {
|
|
695
672
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
696
673
|
r[n - 2] = arguments[n];
|
|
697
|
-
return setTimeout.apply(void 0,
|
|
674
|
+
return setTimeout.apply(void 0, Fe([e, t], De(r)));
|
|
698
675
|
},
|
|
699
676
|
clearTimeout: function(e) {
|
|
700
677
|
return clearTimeout(e);
|
|
701
678
|
},
|
|
702
679
|
delegate: void 0
|
|
703
680
|
};
|
|
704
|
-
function
|
|
705
|
-
|
|
681
|
+
function jr(e) {
|
|
682
|
+
Fr.setTimeout(function() {
|
|
706
683
|
throw e;
|
|
707
684
|
});
|
|
708
685
|
}
|
|
709
|
-
function
|
|
686
|
+
function st() {
|
|
710
687
|
}
|
|
711
688
|
function fe(e) {
|
|
712
689
|
e();
|
|
713
690
|
}
|
|
714
|
-
var
|
|
715
|
-
|
|
691
|
+
var Dt = function(e) {
|
|
692
|
+
ae(t, e);
|
|
716
693
|
function t(r) {
|
|
717
694
|
var n = e.call(this) || this;
|
|
718
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
695
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Xr, n;
|
|
719
696
|
}
|
|
720
697
|
return t.create = function(r, n, i) {
|
|
721
|
-
return new
|
|
698
|
+
return new ke(r, n, i);
|
|
722
699
|
}, t.prototype.next = function(r) {
|
|
723
700
|
this.isStopped || this._next(r);
|
|
724
701
|
}, t.prototype.error = function(r) {
|
|
@@ -742,11 +719,7 @@ var Ut = function(e) {
|
|
|
742
719
|
this.unsubscribe();
|
|
743
720
|
}
|
|
744
721
|
}, t;
|
|
745
|
-
}(
|
|
746
|
-
function Be(e, t) {
|
|
747
|
-
return jr.call(e, t);
|
|
748
|
-
}
|
|
749
|
-
var kr = function() {
|
|
722
|
+
}(Ee), kr = function() {
|
|
750
723
|
function e(t) {
|
|
751
724
|
this.partialObserver = t;
|
|
752
725
|
}
|
|
@@ -777,41 +750,29 @@ var kr = function() {
|
|
|
777
750
|
he(r);
|
|
778
751
|
}
|
|
779
752
|
}, e;
|
|
780
|
-
}(),
|
|
781
|
-
|
|
753
|
+
}(), ke = function(e) {
|
|
754
|
+
ae(t, e);
|
|
782
755
|
function t(r, n, i) {
|
|
783
756
|
var o = e.call(this) || this, s;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
};
|
|
790
|
-
else {
|
|
791
|
-
var a;
|
|
792
|
-
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
793
|
-
return o.unsubscribe();
|
|
794
|
-
}, s = {
|
|
795
|
-
next: r.next && Be(r.next, a),
|
|
796
|
-
error: r.error && Be(r.error, a),
|
|
797
|
-
complete: r.complete && Be(r.complete, a)
|
|
798
|
-
}) : s = r;
|
|
799
|
-
}
|
|
800
|
-
return o.destination = new kr(s), o;
|
|
757
|
+
return M(r) || !r ? s = {
|
|
758
|
+
next: r ?? void 0,
|
|
759
|
+
error: n ?? void 0,
|
|
760
|
+
complete: i ?? void 0
|
|
761
|
+
} : s = r, o.destination = new kr(s), o;
|
|
801
762
|
}
|
|
802
763
|
return t;
|
|
803
|
-
}(
|
|
764
|
+
}(Dt);
|
|
804
765
|
function he(e) {
|
|
805
|
-
|
|
766
|
+
jr(e);
|
|
806
767
|
}
|
|
807
768
|
function Vr(e) {
|
|
808
769
|
throw e;
|
|
809
770
|
}
|
|
810
771
|
var Xr = {
|
|
811
772
|
closed: !0,
|
|
812
|
-
next:
|
|
773
|
+
next: st,
|
|
813
774
|
error: Vr,
|
|
814
|
-
complete:
|
|
775
|
+
complete: st
|
|
815
776
|
}, Wr = function() {
|
|
816
777
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
817
778
|
}();
|
|
@@ -825,7 +786,7 @@ function Zr(e) {
|
|
|
825
786
|
}, r);
|
|
826
787
|
};
|
|
827
788
|
}
|
|
828
|
-
var
|
|
789
|
+
var at = function() {
|
|
829
790
|
function e(t) {
|
|
830
791
|
t && (this._subscribe = t);
|
|
831
792
|
}
|
|
@@ -833,7 +794,7 @@ var ot = function() {
|
|
|
833
794
|
var r = new e();
|
|
834
795
|
return r.source = this, r.operator = t, r;
|
|
835
796
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
836
|
-
var i = this, o = Jr(t) ? t : new
|
|
797
|
+
var i = this, o = Jr(t) ? t : new ke(t, r, n);
|
|
837
798
|
return fe(function() {
|
|
838
799
|
var s = i, a = s.operator, h = s.source;
|
|
839
800
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -846,8 +807,8 @@ var ot = function() {
|
|
|
846
807
|
}
|
|
847
808
|
}, e.prototype.forEach = function(t, r) {
|
|
848
809
|
var n = this;
|
|
849
|
-
return r =
|
|
850
|
-
var s = new
|
|
810
|
+
return r = ut(r), new r(function(i, o) {
|
|
811
|
+
var s = new ke({
|
|
851
812
|
next: function(a) {
|
|
852
813
|
try {
|
|
853
814
|
t(a);
|
|
@@ -871,7 +832,7 @@ var ot = function() {
|
|
|
871
832
|
return Zr(t)(this);
|
|
872
833
|
}, e.prototype.toPromise = function(t) {
|
|
873
834
|
var r = this;
|
|
874
|
-
return t =
|
|
835
|
+
return t = ut(t), new t(function(n, i) {
|
|
875
836
|
var o;
|
|
876
837
|
r.subscribe(function(s) {
|
|
877
838
|
return o = s;
|
|
@@ -885,28 +846,28 @@ var ot = function() {
|
|
|
885
846
|
return new e(t);
|
|
886
847
|
}, e;
|
|
887
848
|
}();
|
|
888
|
-
function
|
|
849
|
+
function ut(e) {
|
|
889
850
|
var t;
|
|
890
|
-
return (t = e ??
|
|
851
|
+
return (t = e ?? Dr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
891
852
|
}
|
|
892
853
|
function Qr(e) {
|
|
893
|
-
return e &&
|
|
854
|
+
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
894
855
|
}
|
|
895
856
|
function Jr(e) {
|
|
896
|
-
return e && e instanceof
|
|
857
|
+
return e && e instanceof Dt || Qr(e) && Ut(e);
|
|
897
858
|
}
|
|
898
|
-
var qr =
|
|
859
|
+
var qr = Rt(function(e) {
|
|
899
860
|
return function() {
|
|
900
861
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
901
862
|
};
|
|
902
|
-
}),
|
|
903
|
-
|
|
863
|
+
}), Ft = function(e) {
|
|
864
|
+
ae(t, e);
|
|
904
865
|
function t() {
|
|
905
866
|
var r = e.call(this) || this;
|
|
906
867
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
907
868
|
}
|
|
908
869
|
return t.prototype.lift = function(r) {
|
|
909
|
-
var n = new
|
|
870
|
+
var n = new ht(this, this);
|
|
910
871
|
return n.operator = r, n;
|
|
911
872
|
}, t.prototype._throwIfClosed = function() {
|
|
912
873
|
if (this.closed)
|
|
@@ -918,7 +879,7 @@ var qr = Mt(function(e) {
|
|
|
918
879
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
919
880
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
920
881
|
try {
|
|
921
|
-
for (var s =
|
|
882
|
+
for (var s = Ue(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
922
883
|
var h = a.value;
|
|
923
884
|
h.next(r);
|
|
924
885
|
}
|
|
@@ -967,20 +928,20 @@ var qr = Mt(function(e) {
|
|
|
967
928
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
968
929
|
}, t.prototype._innerSubscribe = function(r) {
|
|
969
930
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
970
|
-
return o || s ?
|
|
971
|
-
n.currentObservers = null,
|
|
931
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new Ee(function() {
|
|
932
|
+
n.currentObservers = null, je(a, r);
|
|
972
933
|
}));
|
|
973
934
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
974
935
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
975
936
|
i ? r.error(o) : s && r.complete();
|
|
976
937
|
}, t.prototype.asObservable = function() {
|
|
977
|
-
var r = new
|
|
938
|
+
var r = new at();
|
|
978
939
|
return r.source = this, r;
|
|
979
940
|
}, t.create = function(r, n) {
|
|
980
|
-
return new
|
|
941
|
+
return new ht(r, n);
|
|
981
942
|
}, t;
|
|
982
|
-
}(
|
|
983
|
-
|
|
943
|
+
}(at), ht = function(e) {
|
|
944
|
+
ae(t, e);
|
|
984
945
|
function t(r, n) {
|
|
985
946
|
var i = e.call(this) || this;
|
|
986
947
|
return i.destination = r, i.source = n, i;
|
|
@@ -996,17 +957,17 @@ var qr = Mt(function(e) {
|
|
|
996
957
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
997
958
|
}, t.prototype._subscribe = function(r) {
|
|
998
959
|
var n, i;
|
|
999
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
960
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
1000
961
|
}, t;
|
|
1001
|
-
}(
|
|
962
|
+
}(Ft), jt = {
|
|
1002
963
|
now: function() {
|
|
1003
|
-
return (
|
|
964
|
+
return (jt.delegate || Date).now();
|
|
1004
965
|
},
|
|
1005
966
|
delegate: void 0
|
|
1006
967
|
}, Yr = function(e) {
|
|
1007
|
-
|
|
968
|
+
ae(t, e);
|
|
1008
969
|
function t(r, n, i) {
|
|
1009
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
970
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1010
971
|
var o = e.call(this) || this;
|
|
1011
972
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1012
973
|
}
|
|
@@ -1026,24 +987,24 @@ var qr = Mt(function(e) {
|
|
|
1026
987
|
u && o.splice(0, u + 1);
|
|
1027
988
|
}
|
|
1028
989
|
}, t;
|
|
1029
|
-
}(
|
|
1030
|
-
const
|
|
1031
|
-
if (
|
|
990
|
+
}(Ft);
|
|
991
|
+
const lt = [], ct = {}, Kr = (e, t = 0) => {
|
|
992
|
+
if (lt.indexOf(e) == -1) {
|
|
1032
993
|
const r = new Yr(t);
|
|
1033
|
-
|
|
994
|
+
ct[e] = r, lt.push(e);
|
|
1034
995
|
}
|
|
1035
|
-
return
|
|
996
|
+
return ct[e];
|
|
1036
997
|
}, k = [];
|
|
1037
998
|
function en(e, t) {
|
|
1038
999
|
return {
|
|
1039
|
-
subscribe:
|
|
1000
|
+
subscribe: xe(e, t).subscribe
|
|
1040
1001
|
};
|
|
1041
1002
|
}
|
|
1042
|
-
function
|
|
1003
|
+
function xe(e, t = I) {
|
|
1043
1004
|
let r;
|
|
1044
1005
|
const n = /* @__PURE__ */ new Set();
|
|
1045
1006
|
function i(a) {
|
|
1046
|
-
if (
|
|
1007
|
+
if (Lt(e, a) && (e = a, r)) {
|
|
1047
1008
|
const h = !k.length;
|
|
1048
1009
|
for (const u of n)
|
|
1049
1010
|
u[1](), k.push(u, e);
|
|
@@ -1057,15 +1018,15 @@ function Ee(e, t = N) {
|
|
|
1057
1018
|
function o(a) {
|
|
1058
1019
|
i(a(e));
|
|
1059
1020
|
}
|
|
1060
|
-
function s(a, h =
|
|
1021
|
+
function s(a, h = I) {
|
|
1061
1022
|
const u = [a, h];
|
|
1062
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1023
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
|
1063
1024
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1064
1025
|
};
|
|
1065
1026
|
}
|
|
1066
1027
|
return { set: i, update: o, subscribe: s };
|
|
1067
1028
|
}
|
|
1068
|
-
function
|
|
1029
|
+
function q(e, t, r) {
|
|
1069
1030
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1070
1031
|
if (!i.every(Boolean))
|
|
1071
1032
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1073,18 +1034,18 @@ function Y(e, t, r) {
|
|
|
1073
1034
|
return en(r, (s, a) => {
|
|
1074
1035
|
let h = !1;
|
|
1075
1036
|
const u = [];
|
|
1076
|
-
let l = 0, c =
|
|
1037
|
+
let l = 0, c = I;
|
|
1077
1038
|
const f = () => {
|
|
1078
1039
|
if (l)
|
|
1079
1040
|
return;
|
|
1080
1041
|
c();
|
|
1081
1042
|
const p = t(n ? u[0] : u, s, a);
|
|
1082
|
-
o ? s(p) : c =
|
|
1043
|
+
o ? s(p) : c = _e(p) ? p : I;
|
|
1083
1044
|
}, d = i.map(
|
|
1084
|
-
(p, g) =>
|
|
1045
|
+
(p, g) => Ct(
|
|
1085
1046
|
p,
|
|
1086
|
-
(
|
|
1087
|
-
u[g] =
|
|
1047
|
+
(E) => {
|
|
1048
|
+
u[g] = E, l &= ~(1 << g), h && f();
|
|
1088
1049
|
},
|
|
1089
1050
|
() => {
|
|
1090
1051
|
l |= 1 << g;
|
|
@@ -1092,7 +1053,7 @@ function Y(e, t, r) {
|
|
|
1092
1053
|
)
|
|
1093
1054
|
);
|
|
1094
1055
|
return h = !0, f(), function() {
|
|
1095
|
-
|
|
1056
|
+
se(d), c(), h = !1;
|
|
1096
1057
|
};
|
|
1097
1058
|
});
|
|
1098
1059
|
}
|
|
@@ -1116,29 +1077,29 @@ function un(e) {
|
|
|
1116
1077
|
function hn(e) {
|
|
1117
1078
|
return Array.isArray(e) ? [] : {};
|
|
1118
1079
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1080
|
+
function ie(e, t) {
|
|
1081
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(hn(e), e, t) : e;
|
|
1121
1082
|
}
|
|
1122
1083
|
function ln(e, t, r) {
|
|
1123
1084
|
return e.concat(t).map(function(n) {
|
|
1124
|
-
return
|
|
1085
|
+
return ie(n, r);
|
|
1125
1086
|
});
|
|
1126
1087
|
}
|
|
1127
1088
|
function cn(e, t) {
|
|
1128
1089
|
if (!t.customMerge)
|
|
1129
|
-
return
|
|
1090
|
+
return z;
|
|
1130
1091
|
var r = t.customMerge(e);
|
|
1131
|
-
return typeof r == "function" ? r :
|
|
1092
|
+
return typeof r == "function" ? r : z;
|
|
1132
1093
|
}
|
|
1133
1094
|
function fn(e) {
|
|
1134
1095
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1135
1096
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1136
1097
|
}) : [];
|
|
1137
1098
|
}
|
|
1138
|
-
function
|
|
1099
|
+
function ft(e) {
|
|
1139
1100
|
return Object.keys(e).concat(fn(e));
|
|
1140
1101
|
}
|
|
1141
|
-
function
|
|
1102
|
+
function kt(e, t) {
|
|
1142
1103
|
try {
|
|
1143
1104
|
return t in e;
|
|
1144
1105
|
} catch {
|
|
@@ -1146,32 +1107,74 @@ function jt(e, t) {
|
|
|
1146
1107
|
}
|
|
1147
1108
|
}
|
|
1148
1109
|
function pn(e, t) {
|
|
1149
|
-
return
|
|
1110
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1150
1111
|
}
|
|
1151
1112
|
function mn(e, t, r) {
|
|
1152
1113
|
var n = {};
|
|
1153
|
-
return r.isMergeableObject(e) &&
|
|
1154
|
-
n[i] =
|
|
1155
|
-
}),
|
|
1156
|
-
pn(e, i) || (
|
|
1114
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1115
|
+
n[i] = ie(e[i], r);
|
|
1116
|
+
}), ft(t).forEach(function(i) {
|
|
1117
|
+
pn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1157
1118
|
}), n;
|
|
1158
1119
|
}
|
|
1159
|
-
function
|
|
1160
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified =
|
|
1120
|
+
function z(e, t, r) {
|
|
1121
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1161
1122
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1162
|
-
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) :
|
|
1123
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ie(t, r);
|
|
1163
1124
|
}
|
|
1164
|
-
|
|
1125
|
+
z.all = function(t, r) {
|
|
1165
1126
|
if (!Array.isArray(t))
|
|
1166
1127
|
throw new Error("first argument should be an array");
|
|
1167
1128
|
return t.reduce(function(n, i) {
|
|
1168
|
-
return
|
|
1129
|
+
return z(n, i, r);
|
|
1169
1130
|
}, {});
|
|
1170
1131
|
};
|
|
1171
|
-
var dn =
|
|
1132
|
+
var dn = z, bn = dn;
|
|
1172
1133
|
const gn = /* @__PURE__ */ tn(bn);
|
|
1173
|
-
function
|
|
1174
|
-
|
|
1134
|
+
var Ve = function(e, t) {
|
|
1135
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1136
|
+
r.__proto__ = n;
|
|
1137
|
+
} || function(r, n) {
|
|
1138
|
+
for (var i in n)
|
|
1139
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1140
|
+
}, Ve(e, t);
|
|
1141
|
+
};
|
|
1142
|
+
function Se(e, t) {
|
|
1143
|
+
if (typeof t != "function" && t !== null)
|
|
1144
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1145
|
+
Ve(e, t);
|
|
1146
|
+
function r() {
|
|
1147
|
+
this.constructor = e;
|
|
1148
|
+
}
|
|
1149
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1150
|
+
}
|
|
1151
|
+
var L = function() {
|
|
1152
|
+
return L = Object.assign || function(t) {
|
|
1153
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1154
|
+
r = arguments[n];
|
|
1155
|
+
for (var o in r)
|
|
1156
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1157
|
+
}
|
|
1158
|
+
return t;
|
|
1159
|
+
}, L.apply(this, arguments);
|
|
1160
|
+
};
|
|
1161
|
+
function yn(e, t) {
|
|
1162
|
+
var r = {};
|
|
1163
|
+
for (var n in e)
|
|
1164
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1165
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1166
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1167
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1168
|
+
return r;
|
|
1169
|
+
}
|
|
1170
|
+
function Pe(e, t, r) {
|
|
1171
|
+
if (r || arguments.length === 2)
|
|
1172
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1173
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1174
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1175
|
+
}
|
|
1176
|
+
function Oe(e, t) {
|
|
1177
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : En;
|
|
1175
1178
|
return i(e, {
|
|
1176
1179
|
cache: r,
|
|
1177
1180
|
serializer: n
|
|
@@ -1180,7 +1183,7 @@ function Ae(e, t) {
|
|
|
1180
1183
|
function vn(e) {
|
|
1181
1184
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1182
1185
|
}
|
|
1183
|
-
function
|
|
1186
|
+
function _n(e, t, r, n) {
|
|
1184
1187
|
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
1185
1188
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1186
1189
|
}
|
|
@@ -1188,87 +1191,95 @@ function Vt(e, t, r) {
|
|
|
1188
1191
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1189
1192
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1190
1193
|
}
|
|
1191
|
-
function
|
|
1194
|
+
function Xt(e, t, r, n, i) {
|
|
1192
1195
|
return r.bind(t, e, n, i);
|
|
1193
1196
|
}
|
|
1194
|
-
function yn(e, t) {
|
|
1195
|
-
var r = e.length === 1 ? kt : Vt;
|
|
1196
|
-
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1197
|
-
}
|
|
1198
|
-
function _n(e, t) {
|
|
1199
|
-
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1200
|
-
}
|
|
1201
1197
|
function En(e, t) {
|
|
1202
|
-
|
|
1198
|
+
var r = e.length === 1 ? _n : Vt;
|
|
1199
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1203
1200
|
}
|
|
1204
|
-
|
|
1205
|
-
return
|
|
1206
|
-
};
|
|
1207
|
-
function qe() {
|
|
1208
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1201
|
+
function xn(e, t) {
|
|
1202
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1209
1203
|
}
|
|
1210
|
-
|
|
1211
|
-
return
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1204
|
+
var Sn = function() {
|
|
1205
|
+
return JSON.stringify(arguments);
|
|
1206
|
+
}, Tn = (
|
|
1207
|
+
/** @class */
|
|
1208
|
+
function() {
|
|
1209
|
+
function e() {
|
|
1210
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1211
|
+
}
|
|
1212
|
+
return e.prototype.get = function(t) {
|
|
1213
|
+
return this.cache[t];
|
|
1214
|
+
}, e.prototype.set = function(t, r) {
|
|
1215
|
+
this.cache[t] = r;
|
|
1216
|
+
}, e;
|
|
1217
|
+
}()
|
|
1218
|
+
), wn = {
|
|
1217
1219
|
create: function() {
|
|
1218
|
-
return new
|
|
1220
|
+
return new Tn();
|
|
1219
1221
|
}
|
|
1220
|
-
},
|
|
1221
|
-
variadic:
|
|
1222
|
-
|
|
1223
|
-
|
|
1222
|
+
}, Ne = {
|
|
1223
|
+
variadic: xn
|
|
1224
|
+
}, ge = function() {
|
|
1225
|
+
return ge = Object.assign || function(t) {
|
|
1226
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1227
|
+
r = arguments[n];
|
|
1228
|
+
for (var o in r)
|
|
1229
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1230
|
+
}
|
|
1231
|
+
return t;
|
|
1232
|
+
}, ge.apply(this, arguments);
|
|
1233
|
+
};
|
|
1234
|
+
var y;
|
|
1224
1235
|
(function(e) {
|
|
1225
1236
|
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";
|
|
1226
|
-
})(
|
|
1227
|
-
var
|
|
1237
|
+
})(y || (y = {}));
|
|
1238
|
+
var x;
|
|
1228
1239
|
(function(e) {
|
|
1229
1240
|
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";
|
|
1230
|
-
})(
|
|
1231
|
-
var
|
|
1241
|
+
})(x || (x = {}));
|
|
1242
|
+
var Z;
|
|
1232
1243
|
(function(e) {
|
|
1233
1244
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1234
|
-
})(
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1237
|
-
}
|
|
1238
|
-
function Sn(e) {
|
|
1239
|
-
return e.type === T.argument;
|
|
1245
|
+
})(Z || (Z = {}));
|
|
1246
|
+
function pt(e) {
|
|
1247
|
+
return e.type === x.literal;
|
|
1240
1248
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return e.type ===
|
|
1249
|
+
function Hn(e) {
|
|
1250
|
+
return e.type === x.argument;
|
|
1243
1251
|
}
|
|
1244
1252
|
function Wt(e) {
|
|
1245
|
-
return e.type ===
|
|
1253
|
+
return e.type === x.number;
|
|
1246
1254
|
}
|
|
1247
1255
|
function zt(e) {
|
|
1248
|
-
return e.type ===
|
|
1256
|
+
return e.type === x.date;
|
|
1249
1257
|
}
|
|
1250
1258
|
function Zt(e) {
|
|
1251
|
-
return e.type ===
|
|
1259
|
+
return e.type === x.time;
|
|
1252
1260
|
}
|
|
1253
1261
|
function Qt(e) {
|
|
1254
|
-
return e.type ===
|
|
1255
|
-
}
|
|
1256
|
-
function wn(e) {
|
|
1257
|
-
return e.type === T.pound;
|
|
1262
|
+
return e.type === x.select;
|
|
1258
1263
|
}
|
|
1259
1264
|
function Jt(e) {
|
|
1260
|
-
return e.type ===
|
|
1265
|
+
return e.type === x.plural;
|
|
1266
|
+
}
|
|
1267
|
+
function An(e) {
|
|
1268
|
+
return e.type === x.pound;
|
|
1261
1269
|
}
|
|
1262
1270
|
function qt(e) {
|
|
1263
|
-
return
|
|
1271
|
+
return e.type === x.tag;
|
|
1272
|
+
}
|
|
1273
|
+
function Yt(e) {
|
|
1274
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1264
1275
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1276
|
+
function Xe(e) {
|
|
1277
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1267
1278
|
}
|
|
1268
|
-
var
|
|
1269
|
-
function
|
|
1279
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Bn = /(?:[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;
|
|
1280
|
+
function Pn(e) {
|
|
1270
1281
|
var t = {};
|
|
1271
|
-
return e.replace(
|
|
1282
|
+
return e.replace(Bn, function(r) {
|
|
1272
1283
|
var n = r.length;
|
|
1273
1284
|
switch (r[0]) {
|
|
1274
1285
|
case "G":
|
|
@@ -1357,11 +1368,21 @@ function Bn(e) {
|
|
|
1357
1368
|
return "";
|
|
1358
1369
|
}), t;
|
|
1359
1370
|
}
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1371
|
+
var S = function() {
|
|
1372
|
+
return S = Object.assign || function(t) {
|
|
1373
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1374
|
+
r = arguments[n];
|
|
1375
|
+
for (var o in r)
|
|
1376
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1377
|
+
}
|
|
1378
|
+
return t;
|
|
1379
|
+
}, S.apply(this, arguments);
|
|
1380
|
+
};
|
|
1381
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1382
|
+
function Nn(e) {
|
|
1362
1383
|
if (e.length === 0)
|
|
1363
1384
|
throw new Error("Number skeleton cannot be empty");
|
|
1364
|
-
for (var t = e.split(
|
|
1385
|
+
for (var t = e.split(On).filter(function(f) {
|
|
1365
1386
|
return f.length > 0;
|
|
1366
1387
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1367
1388
|
var o = i[n], s = o.split("/");
|
|
@@ -1376,17 +1397,17 @@ function Pn(e) {
|
|
|
1376
1397
|
}
|
|
1377
1398
|
return r;
|
|
1378
1399
|
}
|
|
1379
|
-
function
|
|
1400
|
+
function In(e) {
|
|
1380
1401
|
return e.replace(/^(.*?)-/, "");
|
|
1381
1402
|
}
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1403
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1404
|
+
function dt(e) {
|
|
1384
1405
|
var t = {};
|
|
1385
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1406
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1386
1407
|
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)), "";
|
|
1387
1408
|
}), t;
|
|
1388
1409
|
}
|
|
1389
|
-
function
|
|
1410
|
+
function rr(e) {
|
|
1390
1411
|
switch (e) {
|
|
1391
1412
|
case "sign-auto":
|
|
1392
1413
|
return {
|
|
@@ -1426,7 +1447,7 @@ function tr(e) {
|
|
|
1426
1447
|
};
|
|
1427
1448
|
}
|
|
1428
1449
|
}
|
|
1429
|
-
function
|
|
1450
|
+
function Cn(e) {
|
|
1430
1451
|
var t;
|
|
1431
1452
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1432
1453
|
notation: "engineering"
|
|
@@ -1434,17 +1455,17 @@ function Nn(e) {
|
|
|
1434
1455
|
notation: "scientific"
|
|
1435
1456
|
}, e = e.slice(1)), t) {
|
|
1436
1457
|
var r = e.slice(0, 2);
|
|
1437
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1458
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1438
1459
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1439
1460
|
t.minimumIntegerDigits = e.length;
|
|
1440
1461
|
}
|
|
1441
1462
|
return t;
|
|
1442
1463
|
}
|
|
1443
|
-
function
|
|
1444
|
-
var t = {}, r =
|
|
1464
|
+
function bt(e) {
|
|
1465
|
+
var t = {}, r = rr(e);
|
|
1445
1466
|
return r || t;
|
|
1446
1467
|
}
|
|
1447
|
-
function
|
|
1468
|
+
function Mn(e) {
|
|
1448
1469
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1449
1470
|
var i = n[r];
|
|
1450
1471
|
switch (i.stem) {
|
|
@@ -1468,7 +1489,7 @@ function Ln(e) {
|
|
|
1468
1489
|
continue;
|
|
1469
1490
|
case "measure-unit":
|
|
1470
1491
|
case "unit":
|
|
1471
|
-
t.style = "unit", t.unit =
|
|
1492
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1472
1493
|
continue;
|
|
1473
1494
|
case "compact-short":
|
|
1474
1495
|
case "K":
|
|
@@ -1479,13 +1500,13 @@ function Ln(e) {
|
|
|
1479
1500
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1480
1501
|
continue;
|
|
1481
1502
|
case "scientific":
|
|
1482
|
-
t =
|
|
1483
|
-
return
|
|
1503
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1504
|
+
return S(S({}, h), bt(u));
|
|
1484
1505
|
}, {}));
|
|
1485
1506
|
continue;
|
|
1486
1507
|
case "engineering":
|
|
1487
|
-
t =
|
|
1488
|
-
return
|
|
1508
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1509
|
+
return S(S({}, h), bt(u));
|
|
1489
1510
|
}, {}));
|
|
1490
1511
|
continue;
|
|
1491
1512
|
case "notation-simple":
|
|
@@ -1530,7 +1551,7 @@ function Ln(e) {
|
|
|
1530
1551
|
case "integer-width":
|
|
1531
1552
|
if (i.options.length > 1)
|
|
1532
1553
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1533
|
-
i.options[0].replace(
|
|
1554
|
+
i.options[0].replace(Ln, function(h, u, l, c, f, d) {
|
|
1534
1555
|
if (u)
|
|
1535
1556
|
t.minimumIntegerDigits = l.length;
|
|
1536
1557
|
else {
|
|
@@ -1543,28 +1564,28 @@ function Ln(e) {
|
|
|
1543
1564
|
});
|
|
1544
1565
|
continue;
|
|
1545
1566
|
}
|
|
1546
|
-
if (
|
|
1567
|
+
if (tr.test(i.stem)) {
|
|
1547
1568
|
t.minimumIntegerDigits = i.stem.length;
|
|
1548
1569
|
continue;
|
|
1549
1570
|
}
|
|
1550
|
-
if (
|
|
1571
|
+
if (mt.test(i.stem)) {
|
|
1551
1572
|
if (i.options.length > 1)
|
|
1552
1573
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1553
|
-
i.stem.replace(
|
|
1574
|
+
i.stem.replace(mt, function(h, u, l, c, f, d) {
|
|
1554
1575
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1555
1576
|
});
|
|
1556
1577
|
var o = i.options[0];
|
|
1557
|
-
o === "w" ? t =
|
|
1578
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), dt(o)));
|
|
1558
1579
|
continue;
|
|
1559
1580
|
}
|
|
1560
|
-
if (
|
|
1561
|
-
t =
|
|
1581
|
+
if (er.test(i.stem)) {
|
|
1582
|
+
t = S(S({}, t), dt(i.stem));
|
|
1562
1583
|
continue;
|
|
1563
1584
|
}
|
|
1564
|
-
var s =
|
|
1565
|
-
s && (t =
|
|
1566
|
-
var a =
|
|
1567
|
-
a && (t =
|
|
1585
|
+
var s = rr(i.stem);
|
|
1586
|
+
s && (t = S(S({}, t), s));
|
|
1587
|
+
var a = Cn(i.stem);
|
|
1588
|
+
a && (t = S(S({}, t), a));
|
|
1568
1589
|
}
|
|
1569
1590
|
return t;
|
|
1570
1591
|
}
|
|
@@ -2983,13 +3004,13 @@ var le = {
|
|
|
2983
3004
|
"h"
|
|
2984
3005
|
]
|
|
2985
3006
|
};
|
|
2986
|
-
function
|
|
3007
|
+
function $n(e, t) {
|
|
2987
3008
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2988
3009
|
var i = e.charAt(n);
|
|
2989
3010
|
if (i === "j") {
|
|
2990
3011
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2991
3012
|
o++, n++;
|
|
2992
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3013
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
|
|
2993
3014
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2994
3015
|
r += h;
|
|
2995
3016
|
for (; s-- > 0; )
|
|
@@ -2999,7 +3020,7 @@ function Cn(e, t) {
|
|
|
2999
3020
|
}
|
|
3000
3021
|
return r;
|
|
3001
3022
|
}
|
|
3002
|
-
function
|
|
3023
|
+
function Rn(e) {
|
|
3003
3024
|
var t = e.hourCycle;
|
|
3004
3025
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3005
3026
|
e.hourCycles && // @ts-ignore
|
|
@@ -3021,20 +3042,20 @@ function Mn(e) {
|
|
|
3021
3042
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3022
3043
|
return i[0];
|
|
3023
3044
|
}
|
|
3024
|
-
var
|
|
3025
|
-
function
|
|
3045
|
+
var Ie, Gn = new RegExp("^".concat(Kt.source, "*")), Un = new RegExp("".concat(Kt.source, "*$"));
|
|
3046
|
+
function v(e, t) {
|
|
3026
3047
|
return { start: e, end: t };
|
|
3027
3048
|
}
|
|
3028
|
-
var
|
|
3049
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3029
3050
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3030
|
-
},
|
|
3051
|
+
}, We = !0;
|
|
3031
3052
|
try {
|
|
3032
|
-
var
|
|
3033
|
-
|
|
3053
|
+
var Zn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3054
|
+
We = ((Ie = Zn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
3034
3055
|
} catch {
|
|
3035
|
-
|
|
3056
|
+
We = !1;
|
|
3036
3057
|
}
|
|
3037
|
-
var
|
|
3058
|
+
var gt = Dn ? (
|
|
3038
3059
|
// Native
|
|
3039
3060
|
function(t, r, n) {
|
|
3040
3061
|
return t.startsWith(r, n);
|
|
@@ -3044,7 +3065,7 @@ var dt = Gn ? (
|
|
|
3044
3065
|
function(t, r, n) {
|
|
3045
3066
|
return t.slice(n, n + r.length) === r;
|
|
3046
3067
|
}
|
|
3047
|
-
),
|
|
3068
|
+
), ze = Fn ? String.fromCodePoint : (
|
|
3048
3069
|
// IE11
|
|
3049
3070
|
function() {
|
|
3050
3071
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3056,9 +3077,9 @@ var dt = Gn ? (
|
|
|
3056
3077
|
}
|
|
3057
3078
|
return n;
|
|
3058
3079
|
}
|
|
3059
|
-
),
|
|
3080
|
+
), yt = (
|
|
3060
3081
|
// native
|
|
3061
|
-
|
|
3082
|
+
jn ? Object.fromEntries : (
|
|
3062
3083
|
// Ponyfill
|
|
3063
3084
|
function(t) {
|
|
3064
3085
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3068,7 +3089,7 @@ var dt = Gn ? (
|
|
|
3068
3089
|
return r;
|
|
3069
3090
|
}
|
|
3070
3091
|
)
|
|
3071
|
-
),
|
|
3092
|
+
), nr = kn ? (
|
|
3072
3093
|
// Native
|
|
3073
3094
|
function(t, r) {
|
|
3074
3095
|
return t.codePointAt(r);
|
|
@@ -3082,7 +3103,7 @@ var dt = Gn ? (
|
|
|
3082
3103
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3083
3104
|
}
|
|
3084
3105
|
}
|
|
3085
|
-
),
|
|
3106
|
+
), Qn = Vn ? (
|
|
3086
3107
|
// Native
|
|
3087
3108
|
function(t) {
|
|
3088
3109
|
return t.trimStart();
|
|
@@ -3090,9 +3111,9 @@ var dt = Gn ? (
|
|
|
3090
3111
|
) : (
|
|
3091
3112
|
// Ponyfill
|
|
3092
3113
|
function(t) {
|
|
3093
|
-
return t.replace(
|
|
3114
|
+
return t.replace(Gn, "");
|
|
3094
3115
|
}
|
|
3095
|
-
),
|
|
3116
|
+
), Jn = Xn ? (
|
|
3096
3117
|
// Native
|
|
3097
3118
|
function(t) {
|
|
3098
3119
|
return t.trimEnd();
|
|
@@ -3100,32 +3121,32 @@ var dt = Gn ? (
|
|
|
3100
3121
|
) : (
|
|
3101
3122
|
// Ponyfill
|
|
3102
3123
|
function(t) {
|
|
3103
|
-
return t.replace(
|
|
3124
|
+
return t.replace(Un, "");
|
|
3104
3125
|
}
|
|
3105
3126
|
);
|
|
3106
|
-
function
|
|
3127
|
+
function ir(e, t) {
|
|
3107
3128
|
return new RegExp(e, t);
|
|
3108
3129
|
}
|
|
3109
|
-
var
|
|
3110
|
-
if (
|
|
3111
|
-
var
|
|
3112
|
-
|
|
3130
|
+
var Ze;
|
|
3131
|
+
if (We) {
|
|
3132
|
+
var vt = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3133
|
+
Ze = function(t, r) {
|
|
3113
3134
|
var n;
|
|
3114
|
-
|
|
3115
|
-
var i =
|
|
3135
|
+
vt.lastIndex = r;
|
|
3136
|
+
var i = vt.exec(t);
|
|
3116
3137
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3117
3138
|
};
|
|
3118
3139
|
} else
|
|
3119
|
-
|
|
3140
|
+
Ze = function(t, r) {
|
|
3120
3141
|
for (var n = []; ; ) {
|
|
3121
|
-
var i =
|
|
3122
|
-
if (i === void 0 ||
|
|
3142
|
+
var i = nr(t, r);
|
|
3143
|
+
if (i === void 0 || or(i) || ei(i))
|
|
3123
3144
|
break;
|
|
3124
3145
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3125
3146
|
}
|
|
3126
|
-
return
|
|
3147
|
+
return ze.apply(void 0, n);
|
|
3127
3148
|
};
|
|
3128
|
-
var
|
|
3149
|
+
var qn = (
|
|
3129
3150
|
/** @class */
|
|
3130
3151
|
function() {
|
|
3131
3152
|
function e(t, r) {
|
|
@@ -3149,14 +3170,14 @@ var Qn = (
|
|
|
3149
3170
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3150
3171
|
var a = this.clonePosition();
|
|
3151
3172
|
this.bump(), i.push({
|
|
3152
|
-
type:
|
|
3153
|
-
location:
|
|
3173
|
+
type: x.pound,
|
|
3174
|
+
location: v(a, this.clonePosition())
|
|
3154
3175
|
});
|
|
3155
3176
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3156
3177
|
if (n)
|
|
3157
3178
|
break;
|
|
3158
|
-
return this.error(
|
|
3159
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3179
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3180
|
+
} else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
3160
3181
|
var s = this.parseTag(t, r);
|
|
3161
3182
|
if (s.err)
|
|
3162
3183
|
return s;
|
|
@@ -3177,9 +3198,9 @@ var Qn = (
|
|
|
3177
3198
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3178
3199
|
return {
|
|
3179
3200
|
val: {
|
|
3180
|
-
type:
|
|
3201
|
+
type: x.literal,
|
|
3181
3202
|
value: "<".concat(i, "/>"),
|
|
3182
|
-
location:
|
|
3203
|
+
location: v(n, this.clonePosition())
|
|
3183
3204
|
},
|
|
3184
3205
|
err: null
|
|
3185
3206
|
};
|
|
@@ -3189,25 +3210,25 @@ var Qn = (
|
|
|
3189
3210
|
return o;
|
|
3190
3211
|
var s = o.val, a = this.clonePosition();
|
|
3191
3212
|
if (this.bumpIf("</")) {
|
|
3192
|
-
if (this.isEOF() || !
|
|
3193
|
-
return this.error(
|
|
3213
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
3214
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
|
3194
3215
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3195
|
-
return i !== u ? this.error(
|
|
3216
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3196
3217
|
val: {
|
|
3197
|
-
type:
|
|
3218
|
+
type: x.tag,
|
|
3198
3219
|
value: i,
|
|
3199
3220
|
children: s,
|
|
3200
|
-
location:
|
|
3221
|
+
location: v(n, this.clonePosition())
|
|
3201
3222
|
},
|
|
3202
3223
|
err: null
|
|
3203
|
-
} : this.error(
|
|
3224
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
|
3204
3225
|
} else
|
|
3205
|
-
return this.error(
|
|
3226
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3206
3227
|
} else
|
|
3207
|
-
return this.error(
|
|
3228
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3208
3229
|
}, e.prototype.parseTagName = function() {
|
|
3209
3230
|
var t = this.offset();
|
|
3210
|
-
for (this.bump(); !this.isEOF() &&
|
|
3231
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3211
3232
|
this.bump();
|
|
3212
3233
|
return this.message.slice(t, this.offset());
|
|
3213
3234
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3229,14 +3250,14 @@ var Qn = (
|
|
|
3229
3250
|
}
|
|
3230
3251
|
break;
|
|
3231
3252
|
}
|
|
3232
|
-
var h =
|
|
3253
|
+
var h = v(n, this.clonePosition());
|
|
3233
3254
|
return {
|
|
3234
|
-
val: { type:
|
|
3255
|
+
val: { type: x.literal, value: i, location: h },
|
|
3235
3256
|
err: null
|
|
3236
3257
|
};
|
|
3237
3258
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3238
3259
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3239
|
-
!
|
|
3260
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3240
3261
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3241
3262
|
if (this.isEOF() || this.char() !== 39)
|
|
3242
3263
|
return null;
|
|
@@ -3270,49 +3291,49 @@ var Qn = (
|
|
|
3270
3291
|
r.push(n);
|
|
3271
3292
|
this.bump();
|
|
3272
3293
|
}
|
|
3273
|
-
return
|
|
3294
|
+
return ze.apply(void 0, r);
|
|
3274
3295
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3275
3296
|
if (this.isEOF())
|
|
3276
3297
|
return null;
|
|
3277
3298
|
var n = this.char();
|
|
3278
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3299
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
3279
3300
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3280
3301
|
var n = this.clonePosition();
|
|
3281
3302
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3282
|
-
return this.error(
|
|
3303
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3283
3304
|
if (this.char() === 125)
|
|
3284
|
-
return this.bump(), this.error(
|
|
3305
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3285
3306
|
var i = this.parseIdentifierIfPossible().value;
|
|
3286
3307
|
if (!i)
|
|
3287
|
-
return this.error(
|
|
3308
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3288
3309
|
if (this.bumpSpace(), this.isEOF())
|
|
3289
|
-
return this.error(
|
|
3310
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3290
3311
|
switch (this.char()) {
|
|
3291
3312
|
case 125:
|
|
3292
3313
|
return this.bump(), {
|
|
3293
3314
|
val: {
|
|
3294
|
-
type:
|
|
3315
|
+
type: x.argument,
|
|
3295
3316
|
// value does not include the opening and closing braces.
|
|
3296
3317
|
value: i,
|
|
3297
|
-
location:
|
|
3318
|
+
location: v(n, this.clonePosition())
|
|
3298
3319
|
},
|
|
3299
3320
|
err: null
|
|
3300
3321
|
};
|
|
3301
3322
|
case 44:
|
|
3302
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3323
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3303
3324
|
default:
|
|
3304
|
-
return this.error(
|
|
3325
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3305
3326
|
}
|
|
3306
3327
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3307
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3328
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
3308
3329
|
this.bumpTo(i);
|
|
3309
|
-
var o = this.clonePosition(), s =
|
|
3330
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3310
3331
|
return { value: n, location: s };
|
|
3311
3332
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3312
3333
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3313
3334
|
switch (a) {
|
|
3314
3335
|
case "":
|
|
3315
|
-
return this.error(
|
|
3336
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, h));
|
|
3316
3337
|
case "number":
|
|
3317
3338
|
case "date":
|
|
3318
3339
|
case "time": {
|
|
@@ -3323,44 +3344,44 @@ var Qn = (
|
|
|
3323
3344
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3324
3345
|
if (c.err)
|
|
3325
3346
|
return c;
|
|
3326
|
-
var f =
|
|
3347
|
+
var f = Jn(c.val);
|
|
3327
3348
|
if (f.length === 0)
|
|
3328
|
-
return this.error(
|
|
3329
|
-
var d =
|
|
3349
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3350
|
+
var d = v(l, this.clonePosition());
|
|
3330
3351
|
u = { style: f, styleLocation: d };
|
|
3331
3352
|
}
|
|
3332
3353
|
var p = this.tryParseArgumentClose(i);
|
|
3333
3354
|
if (p.err)
|
|
3334
3355
|
return p;
|
|
3335
|
-
var g =
|
|
3336
|
-
if (u &&
|
|
3337
|
-
var
|
|
3356
|
+
var g = v(i, this.clonePosition());
|
|
3357
|
+
if (u && gt(u?.style, "::", 0)) {
|
|
3358
|
+
var E = Qn(u.style.slice(2));
|
|
3338
3359
|
if (a === "number") {
|
|
3339
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3360
|
+
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3340
3361
|
return c.err ? c : {
|
|
3341
|
-
val: { type:
|
|
3362
|
+
val: { type: x.number, value: n, location: g, style: c.val },
|
|
3342
3363
|
err: null
|
|
3343
3364
|
};
|
|
3344
3365
|
} else {
|
|
3345
|
-
if (
|
|
3346
|
-
return this.error(
|
|
3347
|
-
var b =
|
|
3348
|
-
this.locale && (b =
|
|
3366
|
+
if (E.length === 0)
|
|
3367
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3368
|
+
var b = E;
|
|
3369
|
+
this.locale && (b = $n(E, this.locale));
|
|
3349
3370
|
var f = {
|
|
3350
|
-
type:
|
|
3371
|
+
type: Z.dateTime,
|
|
3351
3372
|
pattern: b,
|
|
3352
3373
|
location: u.styleLocation,
|
|
3353
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3354
|
-
},
|
|
3374
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(b) : {}
|
|
3375
|
+
}, T = a === "date" ? x.date : x.time;
|
|
3355
3376
|
return {
|
|
3356
|
-
val: { type:
|
|
3377
|
+
val: { type: T, value: n, location: g, style: f },
|
|
3357
3378
|
err: null
|
|
3358
3379
|
};
|
|
3359
3380
|
}
|
|
3360
3381
|
}
|
|
3361
3382
|
return {
|
|
3362
3383
|
val: {
|
|
3363
|
-
type: a === "number" ?
|
|
3384
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3364
3385
|
value: n,
|
|
3365
3386
|
location: g,
|
|
3366
3387
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3371,41 +3392,41 @@ var Qn = (
|
|
|
3371
3392
|
case "plural":
|
|
3372
3393
|
case "selectordinal":
|
|
3373
3394
|
case "select": {
|
|
3374
|
-
var
|
|
3395
|
+
var _ = this.clonePosition();
|
|
3375
3396
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3376
|
-
return this.error(
|
|
3397
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(_, ge({}, _)));
|
|
3377
3398
|
this.bumpSpace();
|
|
3378
|
-
var
|
|
3379
|
-
if (a !== "select" &&
|
|
3399
|
+
var N = this.parseIdentifierIfPossible(), C = 0;
|
|
3400
|
+
if (a !== "select" && N.value === "offset") {
|
|
3380
3401
|
if (!this.bumpIf(":"))
|
|
3381
|
-
return this.error(
|
|
3402
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3382
3403
|
this.bumpSpace();
|
|
3383
|
-
var c = this.tryParseDecimalInteger(
|
|
3404
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3384
3405
|
if (c.err)
|
|
3385
3406
|
return c;
|
|
3386
|
-
this.bumpSpace(),
|
|
3407
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), C = c.val;
|
|
3387
3408
|
}
|
|
3388
|
-
var m = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3409
|
+
var m = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
|
3389
3410
|
if (m.err)
|
|
3390
3411
|
return m;
|
|
3391
3412
|
var p = this.tryParseArgumentClose(i);
|
|
3392
3413
|
if (p.err)
|
|
3393
3414
|
return p;
|
|
3394
|
-
var O =
|
|
3415
|
+
var O = v(i, this.clonePosition());
|
|
3395
3416
|
return a === "select" ? {
|
|
3396
3417
|
val: {
|
|
3397
|
-
type:
|
|
3418
|
+
type: x.select,
|
|
3398
3419
|
value: n,
|
|
3399
|
-
options:
|
|
3420
|
+
options: yt(m.val),
|
|
3400
3421
|
location: O
|
|
3401
3422
|
},
|
|
3402
3423
|
err: null
|
|
3403
3424
|
} : {
|
|
3404
3425
|
val: {
|
|
3405
|
-
type:
|
|
3426
|
+
type: x.plural,
|
|
3406
3427
|
value: n,
|
|
3407
|
-
options:
|
|
3408
|
-
offset:
|
|
3428
|
+
options: yt(m.val),
|
|
3429
|
+
offset: C,
|
|
3409
3430
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3410
3431
|
location: O
|
|
3411
3432
|
},
|
|
@@ -3413,10 +3434,10 @@ var Qn = (
|
|
|
3413
3434
|
};
|
|
3414
3435
|
}
|
|
3415
3436
|
default:
|
|
3416
|
-
return this.error(
|
|
3437
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, h));
|
|
3417
3438
|
}
|
|
3418
3439
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3419
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3440
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3420
3441
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3421
3442
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3422
3443
|
var n = this.char();
|
|
@@ -3425,7 +3446,7 @@ var Qn = (
|
|
|
3425
3446
|
this.bump();
|
|
3426
3447
|
var i = this.clonePosition();
|
|
3427
3448
|
if (!this.bumpUntil("'"))
|
|
3428
|
-
return this.error(
|
|
3449
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3429
3450
|
this.bump();
|
|
3430
3451
|
break;
|
|
3431
3452
|
}
|
|
@@ -3455,16 +3476,16 @@ var Qn = (
|
|
|
3455
3476
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3456
3477
|
var n = [];
|
|
3457
3478
|
try {
|
|
3458
|
-
n =
|
|
3479
|
+
n = Nn(t);
|
|
3459
3480
|
} catch {
|
|
3460
|
-
return this.error(
|
|
3481
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3461
3482
|
}
|
|
3462
3483
|
return {
|
|
3463
3484
|
val: {
|
|
3464
|
-
type:
|
|
3485
|
+
type: Z.number,
|
|
3465
3486
|
tokens: n,
|
|
3466
3487
|
location: r,
|
|
3467
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3488
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3468
3489
|
},
|
|
3469
3490
|
err: null
|
|
3470
3491
|
};
|
|
@@ -3473,19 +3494,19 @@ var Qn = (
|
|
|
3473
3494
|
if (u.length === 0) {
|
|
3474
3495
|
var c = this.clonePosition();
|
|
3475
3496
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3476
|
-
var f = this.tryParseDecimalInteger(
|
|
3497
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3477
3498
|
if (f.err)
|
|
3478
3499
|
return f;
|
|
3479
|
-
l =
|
|
3500
|
+
l = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3480
3501
|
} else
|
|
3481
3502
|
break;
|
|
3482
3503
|
}
|
|
3483
3504
|
if (h.has(u))
|
|
3484
|
-
return this.error(r === "select" ?
|
|
3505
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3485
3506
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3486
3507
|
var d = this.clonePosition();
|
|
3487
3508
|
if (!this.bumpIf("{"))
|
|
3488
|
-
return this.error(r === "select" ?
|
|
3509
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3489
3510
|
var p = this.parseMessage(t + 1, r, n);
|
|
3490
3511
|
if (p.err)
|
|
3491
3512
|
return p;
|
|
@@ -3496,11 +3517,11 @@ var Qn = (
|
|
|
3496
3517
|
u,
|
|
3497
3518
|
{
|
|
3498
3519
|
value: p.val,
|
|
3499
|
-
location:
|
|
3520
|
+
location: v(d, this.clonePosition())
|
|
3500
3521
|
}
|
|
3501
3522
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3502
3523
|
}
|
|
3503
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3524
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3504
3525
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3505
3526
|
var n = 1, i = this.clonePosition();
|
|
3506
3527
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3511,8 +3532,8 @@ var Qn = (
|
|
|
3511
3532
|
else
|
|
3512
3533
|
break;
|
|
3513
3534
|
}
|
|
3514
|
-
var h =
|
|
3515
|
-
return o ? (s *= n,
|
|
3535
|
+
var h = v(i, this.clonePosition());
|
|
3536
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3516
3537
|
}, e.prototype.offset = function() {
|
|
3517
3538
|
return this.position.offset;
|
|
3518
3539
|
}, e.prototype.isEOF = function() {
|
|
@@ -3527,7 +3548,7 @@ var Qn = (
|
|
|
3527
3548
|
var t = this.position.offset;
|
|
3528
3549
|
if (t >= this.message.length)
|
|
3529
3550
|
throw Error("out of bound");
|
|
3530
|
-
var r =
|
|
3551
|
+
var r = nr(this.message, t);
|
|
3531
3552
|
if (r === void 0)
|
|
3532
3553
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3533
3554
|
return r;
|
|
@@ -3546,7 +3567,7 @@ var Qn = (
|
|
|
3546
3567
|
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);
|
|
3547
3568
|
}
|
|
3548
3569
|
}, e.prototype.bumpIf = function(t) {
|
|
3549
|
-
if (
|
|
3570
|
+
if (gt(this.message, t, this.offset())) {
|
|
3550
3571
|
for (var r = 0; r < t.length; r++)
|
|
3551
3572
|
this.bump();
|
|
3552
3573
|
return !0;
|
|
@@ -3568,7 +3589,7 @@ var Qn = (
|
|
|
3568
3589
|
break;
|
|
3569
3590
|
}
|
|
3570
3591
|
}, e.prototype.bumpSpace = function() {
|
|
3571
|
-
for (; !this.isEOF() &&
|
|
3592
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3572
3593
|
this.bump();
|
|
3573
3594
|
}, e.prototype.peek = function() {
|
|
3574
3595
|
if (this.isEOF())
|
|
@@ -3578,47 +3599,47 @@ var Qn = (
|
|
|
3578
3599
|
}, e;
|
|
3579
3600
|
}()
|
|
3580
3601
|
);
|
|
3581
|
-
function
|
|
3602
|
+
function Qe(e) {
|
|
3582
3603
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3583
3604
|
}
|
|
3584
|
-
function
|
|
3585
|
-
return
|
|
3605
|
+
function Yn(e) {
|
|
3606
|
+
return Qe(e) || e === 47;
|
|
3586
3607
|
}
|
|
3587
|
-
function
|
|
3608
|
+
function Kn(e) {
|
|
3588
3609
|
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;
|
|
3589
3610
|
}
|
|
3590
|
-
function
|
|
3611
|
+
function or(e) {
|
|
3591
3612
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3592
3613
|
}
|
|
3593
|
-
function
|
|
3614
|
+
function ei(e) {
|
|
3594
3615
|
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;
|
|
3595
3616
|
}
|
|
3596
|
-
function
|
|
3617
|
+
function Je(e) {
|
|
3597
3618
|
e.forEach(function(t) {
|
|
3598
|
-
if (delete t.location,
|
|
3619
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3599
3620
|
for (var r in t.options)
|
|
3600
|
-
delete t.options[r].location,
|
|
3621
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3601
3622
|
else
|
|
3602
|
-
|
|
3623
|
+
Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : qt(t) && Je(t.children);
|
|
3603
3624
|
});
|
|
3604
3625
|
}
|
|
3605
|
-
function
|
|
3606
|
-
t === void 0 && (t = {}), t =
|
|
3607
|
-
var r = new
|
|
3626
|
+
function ti(e, t) {
|
|
3627
|
+
t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3628
|
+
var r = new qn(e, t).parse();
|
|
3608
3629
|
if (r.err) {
|
|
3609
|
-
var n = SyntaxError(
|
|
3630
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3610
3631
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3611
3632
|
}
|
|
3612
|
-
return t?.captureLocation ||
|
|
3633
|
+
return t?.captureLocation || Je(r.val), r.val;
|
|
3613
3634
|
}
|
|
3614
|
-
var
|
|
3635
|
+
var Q;
|
|
3615
3636
|
(function(e) {
|
|
3616
3637
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3617
|
-
})(
|
|
3618
|
-
var
|
|
3638
|
+
})(Q || (Q = {}));
|
|
3639
|
+
var Te = (
|
|
3619
3640
|
/** @class */
|
|
3620
3641
|
function(e) {
|
|
3621
|
-
|
|
3642
|
+
Se(t, e);
|
|
3622
3643
|
function t(r, n, i) {
|
|
3623
3644
|
var o = e.call(this, r) || this;
|
|
3624
3645
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3627,155 +3648,155 @@ var xe = (
|
|
|
3627
3648
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3628
3649
|
}, t;
|
|
3629
3650
|
}(Error)
|
|
3630
|
-
),
|
|
3651
|
+
), _t = (
|
|
3631
3652
|
/** @class */
|
|
3632
3653
|
function(e) {
|
|
3633
|
-
|
|
3654
|
+
Se(t, e);
|
|
3634
3655
|
function t(r, n, i, o) {
|
|
3635
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3656
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3636
3657
|
}
|
|
3637
3658
|
return t;
|
|
3638
|
-
}(
|
|
3639
|
-
),
|
|
3659
|
+
}(Te)
|
|
3660
|
+
), ri = (
|
|
3640
3661
|
/** @class */
|
|
3641
3662
|
function(e) {
|
|
3642
|
-
|
|
3663
|
+
Se(t, e);
|
|
3643
3664
|
function t(r, n, i) {
|
|
3644
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3665
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3645
3666
|
}
|
|
3646
3667
|
return t;
|
|
3647
|
-
}(
|
|
3648
|
-
),
|
|
3668
|
+
}(Te)
|
|
3669
|
+
), ni = (
|
|
3649
3670
|
/** @class */
|
|
3650
3671
|
function(e) {
|
|
3651
|
-
|
|
3672
|
+
Se(t, e);
|
|
3652
3673
|
function t(r, n) {
|
|
3653
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3674
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3654
3675
|
}
|
|
3655
3676
|
return t;
|
|
3656
|
-
}(
|
|
3657
|
-
),
|
|
3677
|
+
}(Te)
|
|
3678
|
+
), B;
|
|
3658
3679
|
(function(e) {
|
|
3659
3680
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3660
|
-
})(
|
|
3661
|
-
function
|
|
3681
|
+
})(B || (B = {}));
|
|
3682
|
+
function ii(e) {
|
|
3662
3683
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3663
3684
|
var n = t[t.length - 1];
|
|
3664
|
-
return !n || n.type !==
|
|
3685
|
+
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3665
3686
|
}, []);
|
|
3666
3687
|
}
|
|
3667
|
-
function
|
|
3688
|
+
function oi(e) {
|
|
3668
3689
|
return typeof e == "function";
|
|
3669
3690
|
}
|
|
3670
3691
|
function pe(e, t, r, n, i, o, s) {
|
|
3671
|
-
if (e.length === 1 &&
|
|
3692
|
+
if (e.length === 1 && pt(e[0]))
|
|
3672
3693
|
return [
|
|
3673
3694
|
{
|
|
3674
|
-
type:
|
|
3695
|
+
type: B.literal,
|
|
3675
3696
|
value: e[0].value
|
|
3676
3697
|
}
|
|
3677
3698
|
];
|
|
3678
3699
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3679
3700
|
var l = u[h];
|
|
3680
|
-
if (
|
|
3701
|
+
if (pt(l)) {
|
|
3681
3702
|
a.push({
|
|
3682
|
-
type:
|
|
3703
|
+
type: B.literal,
|
|
3683
3704
|
value: l.value
|
|
3684
3705
|
});
|
|
3685
3706
|
continue;
|
|
3686
3707
|
}
|
|
3687
|
-
if (
|
|
3708
|
+
if (An(l)) {
|
|
3688
3709
|
typeof o == "number" && a.push({
|
|
3689
|
-
type:
|
|
3710
|
+
type: B.literal,
|
|
3690
3711
|
value: r.getNumberFormat(t).format(o)
|
|
3691
3712
|
});
|
|
3692
3713
|
continue;
|
|
3693
3714
|
}
|
|
3694
3715
|
var c = l.value;
|
|
3695
3716
|
if (!(i && c in i))
|
|
3696
|
-
throw new
|
|
3717
|
+
throw new ni(c, s);
|
|
3697
3718
|
var f = i[c];
|
|
3698
|
-
if (
|
|
3719
|
+
if (Hn(l)) {
|
|
3699
3720
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3700
|
-
type: typeof f == "string" ?
|
|
3721
|
+
type: typeof f == "string" ? B.literal : B.object,
|
|
3701
3722
|
value: f
|
|
3702
3723
|
});
|
|
3703
3724
|
continue;
|
|
3704
3725
|
}
|
|
3705
|
-
if (
|
|
3706
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3726
|
+
if (zt(l)) {
|
|
3727
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
|
|
3707
3728
|
a.push({
|
|
3708
|
-
type:
|
|
3729
|
+
type: B.literal,
|
|
3709
3730
|
value: r.getDateTimeFormat(t, d).format(f)
|
|
3710
3731
|
});
|
|
3711
3732
|
continue;
|
|
3712
3733
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3734
|
+
if (Zt(l)) {
|
|
3735
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3715
3736
|
a.push({
|
|
3716
|
-
type:
|
|
3737
|
+
type: B.literal,
|
|
3717
3738
|
value: r.getDateTimeFormat(t, d).format(f)
|
|
3718
3739
|
});
|
|
3719
3740
|
continue;
|
|
3720
3741
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3742
|
+
if (Wt(l)) {
|
|
3743
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3723
3744
|
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3724
|
-
type:
|
|
3745
|
+
type: B.literal,
|
|
3725
3746
|
value: r.getNumberFormat(t, d).format(f)
|
|
3726
3747
|
});
|
|
3727
3748
|
continue;
|
|
3728
3749
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var p = l.children, g = l.value,
|
|
3731
|
-
if (!
|
|
3732
|
-
throw new
|
|
3733
|
-
var b = pe(p, t, r, n, i, o),
|
|
3734
|
-
return
|
|
3750
|
+
if (qt(l)) {
|
|
3751
|
+
var p = l.children, g = l.value, E = i[g];
|
|
3752
|
+
if (!oi(E))
|
|
3753
|
+
throw new ri(g, "function", s);
|
|
3754
|
+
var b = pe(p, t, r, n, i, o), T = E(b.map(function(C) {
|
|
3755
|
+
return C.value;
|
|
3735
3756
|
}));
|
|
3736
|
-
Array.isArray(
|
|
3757
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(C) {
|
|
3737
3758
|
return {
|
|
3738
|
-
type: typeof
|
|
3739
|
-
value:
|
|
3759
|
+
type: typeof C == "string" ? B.literal : B.object,
|
|
3760
|
+
value: C
|
|
3740
3761
|
};
|
|
3741
3762
|
}));
|
|
3742
3763
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var
|
|
3745
|
-
if (!
|
|
3746
|
-
throw new
|
|
3747
|
-
a.push.apply(a, pe(
|
|
3764
|
+
if (Qt(l)) {
|
|
3765
|
+
var _ = l.options[f] || l.options.other;
|
|
3766
|
+
if (!_)
|
|
3767
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3768
|
+
a.push.apply(a, pe(_.value, t, r, n, i));
|
|
3748
3769
|
continue;
|
|
3749
3770
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var
|
|
3752
|
-
if (!
|
|
3771
|
+
if (Jt(l)) {
|
|
3772
|
+
var _ = l.options["=".concat(f)];
|
|
3773
|
+
if (!_) {
|
|
3753
3774
|
if (!Intl.PluralRules)
|
|
3754
|
-
throw new
|
|
3775
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3755
3776
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3756
|
-
`,
|
|
3757
|
-
var
|
|
3758
|
-
|
|
3777
|
+
`, Q.MISSING_INTL_API, s);
|
|
3778
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3779
|
+
_ = l.options[N] || l.options.other;
|
|
3759
3780
|
}
|
|
3760
|
-
if (!
|
|
3761
|
-
throw new
|
|
3762
|
-
a.push.apply(a, pe(
|
|
3781
|
+
if (!_)
|
|
3782
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3783
|
+
a.push.apply(a, pe(_.value, t, r, n, i, f - (l.offset || 0)));
|
|
3763
3784
|
continue;
|
|
3764
3785
|
}
|
|
3765
3786
|
}
|
|
3766
|
-
return
|
|
3787
|
+
return ii(a);
|
|
3767
3788
|
}
|
|
3768
|
-
function
|
|
3769
|
-
return t ?
|
|
3770
|
-
return r[n] =
|
|
3789
|
+
function si(e, t) {
|
|
3790
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3791
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3771
3792
|
}, {})) : e;
|
|
3772
3793
|
}
|
|
3773
|
-
function
|
|
3794
|
+
function ai(e, t) {
|
|
3774
3795
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3775
|
-
return r[n] =
|
|
3776
|
-
},
|
|
3796
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3797
|
+
}, L({}, e)) : e;
|
|
3777
3798
|
}
|
|
3778
|
-
function
|
|
3799
|
+
function Le(e) {
|
|
3779
3800
|
return {
|
|
3780
3801
|
create: function() {
|
|
3781
3802
|
return {
|
|
@@ -3789,39 +3810,39 @@ function Ie(e) {
|
|
|
3789
3810
|
}
|
|
3790
3811
|
};
|
|
3791
3812
|
}
|
|
3792
|
-
function
|
|
3813
|
+
function ui(e) {
|
|
3793
3814
|
return e === void 0 && (e = {
|
|
3794
3815
|
number: {},
|
|
3795
3816
|
dateTime: {},
|
|
3796
3817
|
pluralRules: {}
|
|
3797
3818
|
}), {
|
|
3798
|
-
getNumberFormat:
|
|
3819
|
+
getNumberFormat: Oe(function() {
|
|
3799
3820
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3800
3821
|
r[n] = arguments[n];
|
|
3801
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3822
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3802
3823
|
}, {
|
|
3803
|
-
cache:
|
|
3804
|
-
strategy:
|
|
3824
|
+
cache: Le(e.number),
|
|
3825
|
+
strategy: Ne.variadic
|
|
3805
3826
|
}),
|
|
3806
|
-
getDateTimeFormat:
|
|
3827
|
+
getDateTimeFormat: Oe(function() {
|
|
3807
3828
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3808
3829
|
r[n] = arguments[n];
|
|
3809
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3830
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3810
3831
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3832
|
+
cache: Le(e.dateTime),
|
|
3833
|
+
strategy: Ne.variadic
|
|
3813
3834
|
}),
|
|
3814
|
-
getPluralRules:
|
|
3835
|
+
getPluralRules: Oe(function() {
|
|
3815
3836
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3837
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3838
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3818
3839
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3840
|
+
cache: Le(e.pluralRules),
|
|
3841
|
+
strategy: Ne.variadic
|
|
3821
3842
|
})
|
|
3822
3843
|
};
|
|
3823
3844
|
}
|
|
3824
|
-
var
|
|
3845
|
+
var hi = (
|
|
3825
3846
|
/** @class */
|
|
3826
3847
|
function() {
|
|
3827
3848
|
function e(t, r, n, i) {
|
|
@@ -3836,7 +3857,7 @@ var ai = (
|
|
|
3836
3857
|
if (u.length === 1)
|
|
3837
3858
|
return u[0].value;
|
|
3838
3859
|
var l = u.reduce(function(c, f) {
|
|
3839
|
-
return !c.length || f.type !==
|
|
3860
|
+
return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3840
3861
|
}, []);
|
|
3841
3862
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3842
3863
|
}, this.formatToParts = function(h) {
|
|
@@ -3853,13 +3874,13 @@ var ai = (
|
|
|
3853
3874
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3854
3875
|
var s = i || {};
|
|
3855
3876
|
s.formatters;
|
|
3856
|
-
var a =
|
|
3857
|
-
this.ast = e.__parse(t,
|
|
3877
|
+
var a = yn(s, ["formatters"]);
|
|
3878
|
+
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3858
3879
|
} else
|
|
3859
3880
|
this.ast = t;
|
|
3860
3881
|
if (!Array.isArray(this.ast))
|
|
3861
3882
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3862
|
-
this.formats =
|
|
3883
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3863
3884
|
}
|
|
3864
3885
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3865
3886
|
get: function() {
|
|
@@ -3872,7 +3893,7 @@ var ai = (
|
|
|
3872
3893
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3873
3894
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3874
3895
|
}
|
|
3875
|
-
}, e.__parse =
|
|
3896
|
+
}, e.__parse = ti, e.formats = {
|
|
3876
3897
|
number: {
|
|
3877
3898
|
integer: {
|
|
3878
3899
|
maximumFractionDigits: 0
|
|
@@ -3933,7 +3954,7 @@ var ai = (
|
|
|
3933
3954
|
}, e;
|
|
3934
3955
|
}()
|
|
3935
3956
|
);
|
|
3936
|
-
function
|
|
3957
|
+
function li(e, t) {
|
|
3937
3958
|
if (t == null)
|
|
3938
3959
|
return;
|
|
3939
3960
|
if (t in e)
|
|
@@ -3954,92 +3975,92 @@ function ui(e, t) {
|
|
|
3954
3975
|
n = void 0;
|
|
3955
3976
|
return n;
|
|
3956
3977
|
}
|
|
3957
|
-
const $ = {},
|
|
3978
|
+
const $ = {}, ci = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
|
|
3958
3979
|
if (t == null)
|
|
3959
3980
|
return;
|
|
3960
3981
|
if (t in $ && e in $[t])
|
|
3961
3982
|
return $[t][e];
|
|
3962
|
-
const r =
|
|
3983
|
+
const r = we(t);
|
|
3963
3984
|
for (let n = 0; n < r.length; n++) {
|
|
3964
|
-
const i = r[n], o =
|
|
3985
|
+
const i = r[n], o = pi(i, e);
|
|
3965
3986
|
if (o)
|
|
3966
|
-
return
|
|
3987
|
+
return ci(e, t, o);
|
|
3967
3988
|
}
|
|
3968
3989
|
};
|
|
3969
|
-
let
|
|
3970
|
-
const
|
|
3971
|
-
function
|
|
3972
|
-
return
|
|
3990
|
+
let et;
|
|
3991
|
+
const Y = xe({});
|
|
3992
|
+
function fi(e) {
|
|
3993
|
+
return et[e] || null;
|
|
3973
3994
|
}
|
|
3974
|
-
function
|
|
3975
|
-
return e in
|
|
3995
|
+
function ar(e) {
|
|
3996
|
+
return e in et;
|
|
3976
3997
|
}
|
|
3977
|
-
function
|
|
3978
|
-
if (!
|
|
3998
|
+
function pi(e, t) {
|
|
3999
|
+
if (!ar(e))
|
|
3979
4000
|
return null;
|
|
3980
|
-
const r =
|
|
3981
|
-
return
|
|
4001
|
+
const r = fi(e);
|
|
4002
|
+
return li(r, t);
|
|
3982
4003
|
}
|
|
3983
|
-
function
|
|
4004
|
+
function mi(e) {
|
|
3984
4005
|
if (e == null)
|
|
3985
4006
|
return;
|
|
3986
|
-
const t =
|
|
4007
|
+
const t = we(e);
|
|
3987
4008
|
for (let r = 0; r < t.length; r++) {
|
|
3988
4009
|
const n = t[r];
|
|
3989
|
-
if (
|
|
4010
|
+
if (ar(n))
|
|
3990
4011
|
return n;
|
|
3991
4012
|
}
|
|
3992
4013
|
}
|
|
3993
|
-
function
|
|
3994
|
-
delete $[e],
|
|
4014
|
+
function ur(e, ...t) {
|
|
4015
|
+
delete $[e], Y.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3995
4016
|
}
|
|
3996
|
-
|
|
3997
|
-
[
|
|
4017
|
+
q(
|
|
4018
|
+
[Y],
|
|
3998
4019
|
([e]) => Object.keys(e)
|
|
3999
4020
|
);
|
|
4000
|
-
|
|
4021
|
+
Y.subscribe((e) => et = e);
|
|
4001
4022
|
const me = {};
|
|
4002
|
-
function
|
|
4023
|
+
function di(e, t) {
|
|
4003
4024
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4004
4025
|
}
|
|
4005
|
-
function
|
|
4026
|
+
function hr(e) {
|
|
4006
4027
|
return me[e];
|
|
4007
4028
|
}
|
|
4008
|
-
function
|
|
4009
|
-
return
|
|
4010
|
-
const r =
|
|
4029
|
+
function bi(e) {
|
|
4030
|
+
return we(e).map((t) => {
|
|
4031
|
+
const r = hr(t);
|
|
4011
4032
|
return [t, r ? [...r] : []];
|
|
4012
4033
|
}).filter(([, t]) => t.length > 0);
|
|
4013
4034
|
}
|
|
4014
|
-
function
|
|
4015
|
-
return e == null ? !1 :
|
|
4035
|
+
function qe(e) {
|
|
4036
|
+
return e == null ? !1 : we(e).some(
|
|
4016
4037
|
(t) => {
|
|
4017
4038
|
var r;
|
|
4018
|
-
return (r =
|
|
4039
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
4019
4040
|
}
|
|
4020
4041
|
);
|
|
4021
4042
|
}
|
|
4022
|
-
function
|
|
4043
|
+
function gi(e, t) {
|
|
4023
4044
|
return Promise.all(
|
|
4024
|
-
t.map((n) => (
|
|
4025
|
-
).then((n) =>
|
|
4026
|
-
}
|
|
4027
|
-
const
|
|
4028
|
-
function
|
|
4029
|
-
if (!
|
|
4030
|
-
return e in
|
|
4031
|
-
const t =
|
|
4032
|
-
return
|
|
4045
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4046
|
+
).then((n) => ur(e, ...n));
|
|
4047
|
+
}
|
|
4048
|
+
const ee = {};
|
|
4049
|
+
function lr(e) {
|
|
4050
|
+
if (!qe(e))
|
|
4051
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4052
|
+
const t = bi(e);
|
|
4053
|
+
return ee[e] = Promise.all(
|
|
4033
4054
|
t.map(
|
|
4034
|
-
([r, n]) =>
|
|
4055
|
+
([r, n]) => gi(r, n)
|
|
4035
4056
|
)
|
|
4036
4057
|
).then(() => {
|
|
4037
|
-
if (
|
|
4038
|
-
return
|
|
4039
|
-
delete
|
|
4040
|
-
}),
|
|
4058
|
+
if (qe(e))
|
|
4059
|
+
return lr(e);
|
|
4060
|
+
delete ee[e];
|
|
4061
|
+
}), ee[e];
|
|
4041
4062
|
}
|
|
4042
|
-
const
|
|
4063
|
+
const yi = {
|
|
4043
4064
|
number: {
|
|
4044
4065
|
scientific: { notation: "scientific" },
|
|
4045
4066
|
engineering: { notation: "engineering" },
|
|
@@ -4068,135 +4089,135 @@ const bi = {
|
|
|
4068
4089
|
timeZoneName: "short"
|
|
4069
4090
|
}
|
|
4070
4091
|
}
|
|
4071
|
-
},
|
|
4092
|
+
}, vi = {
|
|
4072
4093
|
fallbackLocale: null,
|
|
4073
4094
|
loadingDelay: 200,
|
|
4074
|
-
formats:
|
|
4095
|
+
formats: yi,
|
|
4075
4096
|
warnOnMissingMessages: !0,
|
|
4076
4097
|
handleMissingMessage: void 0,
|
|
4077
4098
|
ignoreTag: !0
|
|
4078
|
-
},
|
|
4079
|
-
function
|
|
4080
|
-
return
|
|
4099
|
+
}, _i = vi;
|
|
4100
|
+
function J() {
|
|
4101
|
+
return _i;
|
|
4081
4102
|
}
|
|
4082
|
-
const
|
|
4083
|
-
var
|
|
4103
|
+
const Ce = xe(!1);
|
|
4104
|
+
var Ei = Object.defineProperty, xi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4084
4105
|
for (var r in t || (t = {}))
|
|
4085
|
-
|
|
4086
|
-
if (
|
|
4087
|
-
for (var r of
|
|
4088
|
-
|
|
4106
|
+
Ti.call(t, r) && xt(e, r, t[r]);
|
|
4107
|
+
if (Et)
|
|
4108
|
+
for (var r of Et(t))
|
|
4109
|
+
wi.call(t, r) && xt(e, r, t[r]);
|
|
4089
4110
|
return e;
|
|
4090
|
-
},
|
|
4091
|
-
let
|
|
4092
|
-
const
|
|
4093
|
-
function
|
|
4111
|
+
}, Ai = (e, t) => xi(e, Si(t));
|
|
4112
|
+
let Ye;
|
|
4113
|
+
const ye = xe(null);
|
|
4114
|
+
function St(e) {
|
|
4094
4115
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4095
4116
|
}
|
|
4096
|
-
function
|
|
4097
|
-
const r =
|
|
4098
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4117
|
+
function we(e, t = J().fallbackLocale) {
|
|
4118
|
+
const r = St(e);
|
|
4119
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4099
4120
|
}
|
|
4100
4121
|
function F() {
|
|
4101
|
-
return
|
|
4122
|
+
return Ye ?? void 0;
|
|
4102
4123
|
}
|
|
4103
|
-
|
|
4104
|
-
|
|
4124
|
+
ye.subscribe((e) => {
|
|
4125
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4105
4126
|
});
|
|
4106
|
-
const
|
|
4107
|
-
if (e &&
|
|
4108
|
-
const { loadingDelay: t } =
|
|
4127
|
+
const Bi = (e) => {
|
|
4128
|
+
if (e && mi(e) && qe(e)) {
|
|
4129
|
+
const { loadingDelay: t } = J();
|
|
4109
4130
|
let r;
|
|
4110
4131
|
return typeof window < "u" && F() != null && t ? r = window.setTimeout(
|
|
4111
|
-
() =>
|
|
4132
|
+
() => Ce.set(!0),
|
|
4112
4133
|
t
|
|
4113
|
-
) :
|
|
4114
|
-
|
|
4134
|
+
) : Ce.set(!0), lr(e).then(() => {
|
|
4135
|
+
ye.set(e);
|
|
4115
4136
|
}).finally(() => {
|
|
4116
|
-
clearTimeout(r),
|
|
4137
|
+
clearTimeout(r), Ce.set(!1);
|
|
4117
4138
|
});
|
|
4118
4139
|
}
|
|
4119
|
-
return
|
|
4120
|
-
}, R =
|
|
4121
|
-
set:
|
|
4122
|
-
}),
|
|
4140
|
+
return ye.set(e);
|
|
4141
|
+
}, R = Ai(Hi({}, ye), {
|
|
4142
|
+
set: Bi
|
|
4143
|
+
}), He = (e) => {
|
|
4123
4144
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4124
4145
|
return (n) => {
|
|
4125
4146
|
const i = JSON.stringify(n);
|
|
4126
4147
|
return i in t ? t[i] : t[i] = e(n);
|
|
4127
4148
|
};
|
|
4128
4149
|
};
|
|
4129
|
-
var
|
|
4150
|
+
var Pi = Object.defineProperty, ve = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4130
4151
|
for (var r in t || (t = {}))
|
|
4131
|
-
|
|
4152
|
+
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4132
4153
|
if (ve)
|
|
4133
4154
|
for (var r of ve(t))
|
|
4134
|
-
|
|
4155
|
+
fr.call(t, r) && Tt(e, r, t[r]);
|
|
4135
4156
|
return e;
|
|
4136
|
-
},
|
|
4157
|
+
}, K = (e, t) => {
|
|
4137
4158
|
var r = {};
|
|
4138
4159
|
for (var n in e)
|
|
4139
|
-
|
|
4160
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4140
4161
|
if (e != null && ve)
|
|
4141
4162
|
for (var n of ve(e))
|
|
4142
|
-
t.indexOf(n) < 0 &&
|
|
4163
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4143
4164
|
return r;
|
|
4144
4165
|
};
|
|
4145
|
-
const
|
|
4146
|
-
const { formats: r } =
|
|
4166
|
+
const oe = (e, t) => {
|
|
4167
|
+
const { formats: r } = J();
|
|
4147
4168
|
if (e in r && t in r[e])
|
|
4148
4169
|
return r[e][t];
|
|
4149
4170
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4150
|
-
},
|
|
4171
|
+
}, Oi = He(
|
|
4151
4172
|
(e) => {
|
|
4152
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4173
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4153
4174
|
if (r == null)
|
|
4154
4175
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4155
|
-
return n && (i =
|
|
4176
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4156
4177
|
}
|
|
4157
|
-
),
|
|
4178
|
+
), Ni = He(
|
|
4158
4179
|
(e) => {
|
|
4159
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4180
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4160
4181
|
if (r == null)
|
|
4161
4182
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4162
|
-
return n ? i =
|
|
4183
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4163
4184
|
}
|
|
4164
|
-
),
|
|
4185
|
+
), Ii = He(
|
|
4165
4186
|
(e) => {
|
|
4166
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4187
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4167
4188
|
if (r == null)
|
|
4168
4189
|
throw new Error(
|
|
4169
4190
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4170
4191
|
);
|
|
4171
|
-
return n ? i =
|
|
4192
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4172
4193
|
}
|
|
4173
|
-
),
|
|
4194
|
+
), Li = (e = {}) => {
|
|
4174
4195
|
var t = e, {
|
|
4175
4196
|
locale: r = F()
|
|
4176
|
-
} = t, n =
|
|
4197
|
+
} = t, n = K(t, [
|
|
4177
4198
|
"locale"
|
|
4178
4199
|
]);
|
|
4179
|
-
return
|
|
4180
|
-
},
|
|
4200
|
+
return Oi(tt({ locale: r }, n));
|
|
4201
|
+
}, Ci = (e = {}) => {
|
|
4181
4202
|
var t = e, {
|
|
4182
4203
|
locale: r = F()
|
|
4183
|
-
} = t, n =
|
|
4204
|
+
} = t, n = K(t, [
|
|
4184
4205
|
"locale"
|
|
4185
4206
|
]);
|
|
4186
|
-
return
|
|
4187
|
-
},
|
|
4207
|
+
return Ni(tt({ locale: r }, n));
|
|
4208
|
+
}, Mi = (e = {}) => {
|
|
4188
4209
|
var t = e, {
|
|
4189
4210
|
locale: r = F()
|
|
4190
|
-
} = t, n =
|
|
4211
|
+
} = t, n = K(t, [
|
|
4191
4212
|
"locale"
|
|
4192
4213
|
]);
|
|
4193
|
-
return
|
|
4194
|
-
},
|
|
4214
|
+
return Ii(tt({ locale: r }, n));
|
|
4215
|
+
}, $i = He(
|
|
4195
4216
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4196
|
-
(e, t = F()) => new
|
|
4197
|
-
ignoreTag:
|
|
4217
|
+
(e, t = F()) => new hi(e, t, J().formats, {
|
|
4218
|
+
ignoreTag: J().ignoreTag
|
|
4198
4219
|
})
|
|
4199
|
-
),
|
|
4220
|
+
), Ri = (e, t = {}) => {
|
|
4200
4221
|
var r, n, i, o;
|
|
4201
4222
|
let s = t;
|
|
4202
4223
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4209,9 +4230,9 @@ const se = (e, t) => {
|
|
|
4209
4230
|
throw new Error(
|
|
4210
4231
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4211
4232
|
);
|
|
4212
|
-
let l =
|
|
4233
|
+
let l = sr(e, h);
|
|
4213
4234
|
if (!l)
|
|
4214
|
-
l = (o = (i = (n = (r =
|
|
4235
|
+
l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4215
4236
|
else if (typeof l != "string")
|
|
4216
4237
|
return console.warn(
|
|
4217
4238
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4220,7 +4241,7 @@ const se = (e, t) => {
|
|
|
4220
4241
|
return l;
|
|
4221
4242
|
let c = l;
|
|
4222
4243
|
try {
|
|
4223
|
-
c =
|
|
4244
|
+
c = $i(l, h).format(a);
|
|
4224
4245
|
} catch (f) {
|
|
4225
4246
|
f instanceof Error && console.warn(
|
|
4226
4247
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4228,25 +4249,25 @@ const se = (e, t) => {
|
|
|
4228
4249
|
);
|
|
4229
4250
|
}
|
|
4230
4251
|
return c;
|
|
4231
|
-
},
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4252
|
+
}, Gi = (e, t) => Mi(t).format(e), Ui = (e, t) => Ci(t).format(e), Di = (e, t) => Li(t).format(e), Fi = (e, t = F()) => sr(e, t), ji = q([R, Y], () => Ri);
|
|
4253
|
+
q([R], () => Gi);
|
|
4254
|
+
q([R], () => Ui);
|
|
4255
|
+
q([R], () => Di);
|
|
4256
|
+
q([R, Y], () => Fi);
|
|
4236
4257
|
window.emWidgets = { topic: Kr };
|
|
4237
|
-
const
|
|
4238
|
-
function
|
|
4258
|
+
const ki = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4259
|
+
function Vi({ withLocale: e, translations: t }) {
|
|
4239
4260
|
R.subscribe((r) => {
|
|
4240
|
-
r == null && (
|
|
4261
|
+
r == null && (Y.set(t), R.set(e));
|
|
4241
4262
|
});
|
|
4242
4263
|
}
|
|
4243
|
-
function
|
|
4244
|
-
|
|
4264
|
+
function wt(e, t) {
|
|
4265
|
+
ur(e, t);
|
|
4245
4266
|
}
|
|
4246
|
-
function
|
|
4267
|
+
function Xi(e) {
|
|
4247
4268
|
R.set(e);
|
|
4248
4269
|
}
|
|
4249
|
-
const
|
|
4270
|
+
const Ht = {
|
|
4250
4271
|
en: {
|
|
4251
4272
|
loading: "Loading, please wait ...",
|
|
4252
4273
|
playNow: "Play Now",
|
|
@@ -4256,22 +4277,22 @@ const St = {
|
|
|
4256
4277
|
noGamesAvailable: "No games have been configured yet!"
|
|
4257
4278
|
}
|
|
4258
4279
|
};
|
|
4259
|
-
function
|
|
4260
|
-
|
|
4280
|
+
function Wi(e) {
|
|
4281
|
+
dr(e, "svelte-grpqez", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}");
|
|
4261
4282
|
}
|
|
4262
|
-
function
|
|
4283
|
+
function At(e, t, r) {
|
|
4263
4284
|
const n = e.slice();
|
|
4264
4285
|
return n[20] = t[r], n;
|
|
4265
4286
|
}
|
|
4266
|
-
function
|
|
4287
|
+
function Bt(e, t, r) {
|
|
4267
4288
|
const n = e.slice();
|
|
4268
4289
|
return n[20] = t[r], n;
|
|
4269
4290
|
}
|
|
4270
|
-
function
|
|
4291
|
+
function Pt(e) {
|
|
4271
4292
|
let t, r;
|
|
4272
4293
|
return {
|
|
4273
4294
|
c() {
|
|
4274
|
-
t = P("div"), r = P("casino-tournaments-tab"), w(r, "part", "TournamentGames"), w(r, "tabs", "casino,sports"), w(r, "tab", "casino"), w(r, "tid",
|
|
4295
|
+
t = P("div"), r = P("casino-tournaments-tab"), w(r, "part", "TournamentGames"), w(r, "tabs", "casino,sports"), w(r, "tab", "casino"), w(r, "tid", Ke), w(
|
|
4275
4296
|
r,
|
|
4276
4297
|
"clientstyling",
|
|
4277
4298
|
/*clientstyling*/
|
|
@@ -4289,7 +4310,7 @@ function Bt(e) {
|
|
|
4289
4310
|
), H(t, "class", "GamesTabNav");
|
|
4290
4311
|
},
|
|
4291
4312
|
m(n, i) {
|
|
4292
|
-
D(n, t, i),
|
|
4313
|
+
D(n, t, i), A(t, r);
|
|
4293
4314
|
},
|
|
4294
4315
|
p(n, i) {
|
|
4295
4316
|
i & /*clientstyling*/
|
|
@@ -4317,17 +4338,17 @@ function Bt(e) {
|
|
|
4317
4338
|
}
|
|
4318
4339
|
};
|
|
4319
4340
|
}
|
|
4320
|
-
function
|
|
4341
|
+
function zi(e) {
|
|
4321
4342
|
let t, r = (
|
|
4322
4343
|
/*$_*/
|
|
4323
4344
|
e[8]("noGamesAvailable") + ""
|
|
4324
4345
|
), n;
|
|
4325
4346
|
return {
|
|
4326
4347
|
c() {
|
|
4327
|
-
t = P("div"), n =
|
|
4348
|
+
t = P("div"), n = W(r), H(t, "class", "NoGames");
|
|
4328
4349
|
},
|
|
4329
4350
|
m(i, o) {
|
|
4330
|
-
D(i, t, o),
|
|
4351
|
+
D(i, t, o), A(t, n);
|
|
4331
4352
|
},
|
|
4332
4353
|
p(i, o) {
|
|
4333
4354
|
o & /*$_*/
|
|
@@ -4339,18 +4360,18 @@ function Xi(e) {
|
|
|
4339
4360
|
}
|
|
4340
4361
|
};
|
|
4341
4362
|
}
|
|
4342
|
-
function
|
|
4363
|
+
function Zi(e) {
|
|
4343
4364
|
let t, r = be(
|
|
4344
4365
|
/*casinoGames*/
|
|
4345
4366
|
e[7]
|
|
4346
4367
|
), n = [];
|
|
4347
4368
|
for (let i = 0; i < r.length; i += 1)
|
|
4348
|
-
n[i] =
|
|
4369
|
+
n[i] = Ot(Bt(e, r, i));
|
|
4349
4370
|
return {
|
|
4350
4371
|
c() {
|
|
4351
4372
|
for (let i = 0; i < n.length; i += 1)
|
|
4352
4373
|
n[i].c();
|
|
4353
|
-
t =
|
|
4374
|
+
t = yr();
|
|
4354
4375
|
},
|
|
4355
4376
|
m(i, o) {
|
|
4356
4377
|
for (let s = 0; s < n.length; s += 1)
|
|
@@ -4366,8 +4387,8 @@ function Wi(e) {
|
|
|
4366
4387
|
);
|
|
4367
4388
|
let s;
|
|
4368
4389
|
for (s = 0; s < r.length; s += 1) {
|
|
4369
|
-
const a =
|
|
4370
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4390
|
+
const a = Bt(i, r, s);
|
|
4391
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ot(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4371
4392
|
}
|
|
4372
4393
|
for (; s < n.length; s += 1)
|
|
4373
4394
|
n[s].d(1);
|
|
@@ -4375,25 +4396,25 @@ function Wi(e) {
|
|
|
4375
4396
|
}
|
|
4376
4397
|
},
|
|
4377
4398
|
d(i) {
|
|
4378
|
-
i && G(t),
|
|
4399
|
+
i && G(t), Mt(n, i);
|
|
4379
4400
|
}
|
|
4380
4401
|
};
|
|
4381
4402
|
}
|
|
4382
|
-
function
|
|
4403
|
+
function Ot(e) {
|
|
4383
4404
|
let t, r, n = (
|
|
4384
4405
|
/*$_*/
|
|
4385
4406
|
e[8]("playNow") + ""
|
|
4386
4407
|
), i, o, s, a, h, u, l, c, f;
|
|
4387
4408
|
return {
|
|
4388
4409
|
c() {
|
|
4389
|
-
t = P("div"), r = P("span"), i =
|
|
4410
|
+
t = P("div"), r = P("span"), i = W(n), o = re(), s = P("ui-image"), l = re(), H(r, "class", "PlayNowButton"), nt(s.src, a = /*item*/
|
|
4390
4411
|
e[20].thumbnail) || w(s, "src", a), w(s, "width", "132px"), w(s, "height", "100px"), w(s, "alt", h = /*item*/
|
|
4391
4412
|
e[20].name), w(s, "title", u = /*item*/
|
|
4392
4413
|
e[20].name), H(t, "class", "item"), H(t, "role", "button"), H(t, "tabindex", "0");
|
|
4393
4414
|
},
|
|
4394
4415
|
m(d, p) {
|
|
4395
|
-
D(d, t, p),
|
|
4396
|
-
|
|
4416
|
+
D(d, t, p), A(t, r), A(r, i), A(t, o), A(t, s), A(t, l), c || (f = vr(t, "click", function() {
|
|
4417
|
+
_e(
|
|
4397
4418
|
/*gameClicked*/
|
|
4398
4419
|
e[10](
|
|
4399
4420
|
/*item*/
|
|
@@ -4409,7 +4430,7 @@ function At(e) {
|
|
|
4409
4430
|
e = d, p & /*$_*/
|
|
4410
4431
|
256 && n !== (n = /*$_*/
|
|
4411
4432
|
e[8]("playNow") + "") && de(i, n), p & /*casinoGames*/
|
|
4412
|
-
128 && !
|
|
4433
|
+
128 && !nt(s.src, a = /*item*/
|
|
4413
4434
|
e[20].thumbnail) && w(s, "src", a), p & /*casinoGames*/
|
|
4414
4435
|
128 && h !== (h = /*item*/
|
|
4415
4436
|
e[20].name) && w(s, "alt", h), p & /*casinoGames*/
|
|
@@ -4421,7 +4442,7 @@ function At(e) {
|
|
|
4421
4442
|
}
|
|
4422
4443
|
};
|
|
4423
4444
|
}
|
|
4424
|
-
function
|
|
4445
|
+
function Nt(e) {
|
|
4425
4446
|
let t, r = (
|
|
4426
4447
|
/*item*/
|
|
4427
4448
|
e[20].rule + ""
|
|
@@ -4431,10 +4452,10 @@ function Pt(e) {
|
|
|
4431
4452
|
), s;
|
|
4432
4453
|
return {
|
|
4433
4454
|
c() {
|
|
4434
|
-
t = P("li"), n =
|
|
4455
|
+
t = P("li"), n = W(r), i = re(), s = W(o), H(t, "part", "li"), H(t, "class", "Market");
|
|
4435
4456
|
},
|
|
4436
4457
|
m(a, h) {
|
|
4437
|
-
D(a, t, h),
|
|
4458
|
+
D(a, t, h), A(t, n), A(t, i), A(t, s);
|
|
4438
4459
|
},
|
|
4439
4460
|
p(a, h) {
|
|
4440
4461
|
h & /*sportsRules*/
|
|
@@ -4448,95 +4469,95 @@ function Pt(e) {
|
|
|
4448
4469
|
}
|
|
4449
4470
|
};
|
|
4450
4471
|
}
|
|
4451
|
-
function
|
|
4472
|
+
function Qi(e) {
|
|
4452
4473
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4453
4474
|
/*tournamentdetails*/
|
|
4454
4475
|
e[3] && /*tournamentdetails*/
|
|
4455
4476
|
e[3].wallet?.sports && /*tournamentdetails*/
|
|
4456
|
-
e[3].wallet?.casino &&
|
|
4477
|
+
e[3].wallet?.casino && Pt(e)
|
|
4457
4478
|
);
|
|
4458
|
-
function f(b,
|
|
4479
|
+
function f(b, T) {
|
|
4459
4480
|
return (
|
|
4460
4481
|
/*casinoGames*/
|
|
4461
|
-
b[7]?.length ?
|
|
4482
|
+
b[7]?.length ? Zi : zi
|
|
4462
4483
|
);
|
|
4463
4484
|
}
|
|
4464
4485
|
let d = f(e), p = d(e), g = be(
|
|
4465
4486
|
/*sportsRules*/
|
|
4466
4487
|
e[6]
|
|
4467
|
-
),
|
|
4488
|
+
), E = [];
|
|
4468
4489
|
for (let b = 0; b < g.length; b += 1)
|
|
4469
|
-
|
|
4490
|
+
E[b] = Nt(At(e, g, b));
|
|
4470
4491
|
return {
|
|
4471
4492
|
c() {
|
|
4472
|
-
t = P("div"), c && c.c(), r =
|
|
4473
|
-
for (let b = 0; b <
|
|
4474
|
-
|
|
4493
|
+
t = P("div"), c && c.c(), r = re(), n = P("div"), i = P("div"), o = P("div"), p.c(), a = re(), h = P("div"), u = P("ul");
|
|
4494
|
+
for (let b = 0; b < E.length; b += 1)
|
|
4495
|
+
E[b].c();
|
|
4475
4496
|
H(o, "class", "GameList items"), H(i, "class", s = "TabContent GamesContent " + /*activeTab*/
|
|
4476
4497
|
(e[5] != "casino" ? "hidden" : "")), H(u, "class", "SportsPage"), H(h, "class", l = "TabContent GamesContent " + /*activeTab*/
|
|
4477
|
-
(e[5] != "sports" ? "hidden" : "")), H(n, "class", "GamesWrapper"), H(t, "class",
|
|
4498
|
+
(e[5] != "sports" ? "hidden" : "")), H(n, "class", "GamesWrapper"), H(t, "class", ki(
|
|
4478
4499
|
/*userAgent*/
|
|
4479
4500
|
e[9]
|
|
4480
4501
|
) ? "MobileClass" : "");
|
|
4481
4502
|
},
|
|
4482
|
-
m(b,
|
|
4483
|
-
D(b, t,
|
|
4484
|
-
for (let
|
|
4485
|
-
|
|
4503
|
+
m(b, T) {
|
|
4504
|
+
D(b, t, T), c && c.m(t, null), A(t, r), A(t, n), A(n, i), A(i, o), p.m(o, null), A(n, a), A(n, h), A(h, u);
|
|
4505
|
+
for (let _ = 0; _ < E.length; _ += 1)
|
|
4506
|
+
E[_] && E[_].m(u, null);
|
|
4486
4507
|
e[13](t);
|
|
4487
4508
|
},
|
|
4488
|
-
p(b, [
|
|
4509
|
+
p(b, [T]) {
|
|
4489
4510
|
if (/*tournamentdetails*/
|
|
4490
4511
|
b[3] && /*tournamentdetails*/
|
|
4491
4512
|
b[3].wallet?.sports && /*tournamentdetails*/
|
|
4492
|
-
b[3].wallet?.casino ? c ? c.p(b,
|
|
4513
|
+
b[3].wallet?.casino ? c ? c.p(b, T) : (c = Pt(b), c.c(), c.m(t, r)) : c && (c.d(1), c = null), d === (d = f(b)) && p ? p.p(b, T) : (p.d(1), p = d(b), p && (p.c(), p.m(o, null))), T & /*activeTab*/
|
|
4493
4514
|
32 && s !== (s = "TabContent GamesContent " + /*activeTab*/
|
|
4494
|
-
(b[5] != "casino" ? "hidden" : "")) && H(i, "class", s),
|
|
4515
|
+
(b[5] != "casino" ? "hidden" : "")) && H(i, "class", s), T & /*$_, sportsRules*/
|
|
4495
4516
|
320) {
|
|
4496
4517
|
g = be(
|
|
4497
4518
|
/*sportsRules*/
|
|
4498
4519
|
b[6]
|
|
4499
4520
|
);
|
|
4500
|
-
let
|
|
4501
|
-
for (
|
|
4502
|
-
const
|
|
4503
|
-
|
|
4521
|
+
let _;
|
|
4522
|
+
for (_ = 0; _ < g.length; _ += 1) {
|
|
4523
|
+
const N = At(b, g, _);
|
|
4524
|
+
E[_] ? E[_].p(N, T) : (E[_] = Nt(N), E[_].c(), E[_].m(u, null));
|
|
4504
4525
|
}
|
|
4505
|
-
for (;
|
|
4506
|
-
|
|
4507
|
-
|
|
4526
|
+
for (; _ < E.length; _ += 1)
|
|
4527
|
+
E[_].d(1);
|
|
4528
|
+
E.length = g.length;
|
|
4508
4529
|
}
|
|
4509
|
-
|
|
4530
|
+
T & /*activeTab*/
|
|
4510
4531
|
32 && l !== (l = "TabContent GamesContent " + /*activeTab*/
|
|
4511
4532
|
(b[5] != "sports" ? "hidden" : "")) && H(h, "class", l);
|
|
4512
4533
|
},
|
|
4513
|
-
i:
|
|
4514
|
-
o:
|
|
4534
|
+
i: I,
|
|
4535
|
+
o: I,
|
|
4515
4536
|
d(b) {
|
|
4516
|
-
b && G(t), c && c.d(), p.d(),
|
|
4537
|
+
b && G(t), c && c.d(), p.d(), Mt(E, b), e[13](null);
|
|
4517
4538
|
}
|
|
4518
4539
|
};
|
|
4519
4540
|
}
|
|
4520
|
-
let
|
|
4521
|
-
function
|
|
4541
|
+
let Ke = "gameTab";
|
|
4542
|
+
function Ji(e, t, r) {
|
|
4522
4543
|
let n;
|
|
4523
|
-
|
|
4544
|
+
mr(e, ji, (m) => r(8, n = m));
|
|
4524
4545
|
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: h = "en" } = t, u = "casino", l = [], c = [], f, d = window.navigator.userAgent, p;
|
|
4525
|
-
|
|
4546
|
+
Vi({ withLocale: "en", translations: {} });
|
|
4526
4547
|
const g = () => {
|
|
4527
4548
|
fetch(a).then((m) => m.json()).then((m) => {
|
|
4528
4549
|
Object.keys(m).forEach((O) => {
|
|
4529
|
-
|
|
4550
|
+
wt(O, m[O]);
|
|
4530
4551
|
});
|
|
4531
4552
|
}).catch((m) => {
|
|
4532
4553
|
console.log(m);
|
|
4533
4554
|
});
|
|
4534
4555
|
};
|
|
4535
|
-
Object.keys(
|
|
4536
|
-
|
|
4556
|
+
Object.keys(Ht).forEach((m) => {
|
|
4557
|
+
wt(m, Ht[m]);
|
|
4537
4558
|
});
|
|
4538
|
-
const
|
|
4539
|
-
|
|
4559
|
+
const E = () => {
|
|
4560
|
+
Xi(h), setTimeout(
|
|
4540
4561
|
() => {
|
|
4541
4562
|
b();
|
|
4542
4563
|
},
|
|
@@ -4553,7 +4574,7 @@ function Zi(e, t, r) {
|
|
|
4553
4574
|
},
|
|
4554
4575
|
window.location.href
|
|
4555
4576
|
);
|
|
4556
|
-
},
|
|
4577
|
+
}, T = (m) => {
|
|
4557
4578
|
window.postMessage(
|
|
4558
4579
|
{
|
|
4559
4580
|
type: "TournamentGameAction",
|
|
@@ -4563,7 +4584,7 @@ function Zi(e, t, r) {
|
|
|
4563
4584
|
},
|
|
4564
4585
|
window.location.href
|
|
4565
4586
|
);
|
|
4566
|
-
},
|
|
4587
|
+
}, _ = () => {
|
|
4567
4588
|
r(7, c = f.games?.items || []);
|
|
4568
4589
|
const m = f.metadata?.sports?.rules;
|
|
4569
4590
|
if (m) {
|
|
@@ -4575,36 +4596,36 @@ function Zi(e, t, r) {
|
|
|
4575
4596
|
console.error("Error parsing tournament rules", O);
|
|
4576
4597
|
}
|
|
4577
4598
|
}
|
|
4578
|
-
},
|
|
4599
|
+
}, N = (m) => {
|
|
4579
4600
|
if (!m.data || !m.data.type)
|
|
4580
4601
|
return;
|
|
4581
4602
|
const O = m.data.tid || "";
|
|
4582
4603
|
switch (m.data.type) {
|
|
4583
4604
|
case "TournamentsTabSwitch":
|
|
4584
|
-
O ===
|
|
4605
|
+
O === Ke && r(5, u = m.data.tab);
|
|
4585
4606
|
break;
|
|
4586
4607
|
case "TournamentsTabListenerLoaded":
|
|
4587
4608
|
b();
|
|
4588
4609
|
break;
|
|
4589
4610
|
case "TournamentsGamesUpdate":
|
|
4590
|
-
r(3, f = m.data.details),
|
|
4611
|
+
r(3, f = m.data.details), _();
|
|
4591
4612
|
break;
|
|
4592
4613
|
default:
|
|
4593
4614
|
console.warn(`Unhandled message type: ${m.data.type}`);
|
|
4594
4615
|
break;
|
|
4595
4616
|
}
|
|
4596
4617
|
};
|
|
4597
|
-
|
|
4618
|
+
Sr(() => (window.postMessage(
|
|
4598
4619
|
{
|
|
4599
4620
|
type: "TournamentsGamesListenerLoaded",
|
|
4600
|
-
gamesTabTid:
|
|
4621
|
+
gamesTabTid: Ke
|
|
4601
4622
|
},
|
|
4602
4623
|
window.location.href
|
|
4603
|
-
), window.addEventListener("message",
|
|
4604
|
-
window.removeEventListener("message",
|
|
4624
|
+
), window.addEventListener("message", N, !1), () => {
|
|
4625
|
+
window.removeEventListener("message", N);
|
|
4605
4626
|
}));
|
|
4606
|
-
function
|
|
4607
|
-
|
|
4627
|
+
function C(m) {
|
|
4628
|
+
Me[m ? "unshift" : "push"](() => {
|
|
4608
4629
|
p = m, r(4, p);
|
|
4609
4630
|
});
|
|
4610
4631
|
}
|
|
@@ -4612,12 +4633,12 @@ function Zi(e, t, r) {
|
|
|
4612
4633
|
"clientstyling" in m && r(0, i = m.clientstyling), "clientstylingurl" in m && r(1, o = m.clientstylingurl), "mbsource" in m && r(2, s = m.mbsource), "translationurl" in m && r(11, a = m.translationurl), "lang" in m && r(12, h = m.lang);
|
|
4613
4634
|
}, e.$$.update = () => {
|
|
4614
4635
|
e.$$.dirty & /*tournamentdetails*/
|
|
4615
|
-
8 && f &&
|
|
4616
|
-
4096 && h &&
|
|
4636
|
+
8 && f && _(), e.$$.dirty & /*lang*/
|
|
4637
|
+
4096 && h && E(), e.$$.dirty & /*translationurl*/
|
|
4617
4638
|
2048 && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4618
|
-
17 && i && p &&
|
|
4619
|
-
18 && o && p &&
|
|
4620
|
-
20 && s && p &&
|
|
4639
|
+
17 && i && p && Rr(p, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4640
|
+
18 && o && p && Gr(p, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4641
|
+
20 && s && p && Ur(p, `${s}.Style`);
|
|
4621
4642
|
}, [
|
|
4622
4643
|
i,
|
|
4623
4644
|
o,
|
|
@@ -4629,20 +4650,20 @@ function Zi(e, t, r) {
|
|
|
4629
4650
|
c,
|
|
4630
4651
|
n,
|
|
4631
4652
|
d,
|
|
4632
|
-
|
|
4653
|
+
T,
|
|
4633
4654
|
a,
|
|
4634
4655
|
h,
|
|
4635
|
-
|
|
4656
|
+
C
|
|
4636
4657
|
];
|
|
4637
4658
|
}
|
|
4638
|
-
class
|
|
4659
|
+
class qi extends Mr {
|
|
4639
4660
|
constructor(t) {
|
|
4640
|
-
super(),
|
|
4661
|
+
super(), Lr(
|
|
4641
4662
|
this,
|
|
4642
4663
|
t,
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4664
|
+
Ji,
|
|
4665
|
+
Qi,
|
|
4666
|
+
Lt,
|
|
4646
4667
|
{
|
|
4647
4668
|
clientstyling: 0,
|
|
4648
4669
|
clientstylingurl: 1,
|
|
@@ -4650,7 +4671,7 @@ class Qi extends Cr {
|
|
|
4650
4671
|
translationurl: 11,
|
|
4651
4672
|
lang: 12
|
|
4652
4673
|
},
|
|
4653
|
-
|
|
4674
|
+
Wi
|
|
4654
4675
|
);
|
|
4655
4676
|
}
|
|
4656
4677
|
get clientstyling() {
|
|
@@ -4684,7 +4705,7 @@ class Qi extends Cr {
|
|
|
4684
4705
|
this.$$set({ lang: t }), U();
|
|
4685
4706
|
}
|
|
4686
4707
|
}
|
|
4687
|
-
|
|
4708
|
+
Cr(qi, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4688
4709
|
export {
|
|
4689
|
-
|
|
4710
|
+
qi as C
|
|
4690
4711
|
};
|