@everymatrix/casino-tournaments-thumbnail-games 1.77.20 → 1.77.22
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-BEb_Y7vR.js → CasinoTournamentsThumbnailGames-D0pYbVi1.js} +847 -804
- package/components/{CasinoTournamentsThumbnailGames-CIFmGYMy.js → CasinoTournamentsThumbnailGames-DVwtSIOX.js} +794 -751
- package/components/CasinoTournamentsThumbnailGames-DbrFRheL.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-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
- package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-DfVgiF6v.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BY8ZO6br.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoTournamentsThumbnailGames-C2tVD_2o.cjs +0 -18
- package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-CHeV8e9p.js";
|
|
2
2
|
function G() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function kt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function pt() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function oe(e) {
|
|
11
|
+
e.forEach(kt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Pe(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Vt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let de;
|
|
20
|
-
function
|
|
20
|
+
function mt(e, t) {
|
|
21
21
|
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ar(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Xt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function Dt(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function Or(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(Xt(t, r));
|
|
37
37
|
}
|
|
38
38
|
function x(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Nr(e, t, r) {
|
|
42
|
+
const n = Cr(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, Ir(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Cr(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,20 +55,20 @@ function Br(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ir(e, t) {
|
|
59
59
|
return x(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function F(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
68
|
function $(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Wt(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
@@ -78,16 +78,16 @@ function P(e) {
|
|
|
78
78
|
function be(e) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function D(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function j() {
|
|
85
|
+
return D(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function Lr() {
|
|
88
|
+
return D("");
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ke(e, t, r, n) {
|
|
91
91
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
92
92
|
}
|
|
93
93
|
function v(e, t, r) {
|
|
@@ -97,14 +97,14 @@ function O(e, t, r) {
|
|
|
97
97
|
const n = t.toLowerCase();
|
|
98
98
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : v(e, t, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Mr(e) {
|
|
101
101
|
return Array.from(e.childNodes);
|
|
102
102
|
}
|
|
103
103
|
function X(e, t) {
|
|
104
104
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
105
105
|
t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Rr(e) {
|
|
108
108
|
const t = {};
|
|
109
109
|
return e.childNodes.forEach(
|
|
110
110
|
/** @param {Element} node */
|
|
@@ -113,93 +113,93 @@ function Nr(e) {
|
|
|
113
113
|
}
|
|
114
114
|
), t;
|
|
115
115
|
}
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
116
|
+
let ce;
|
|
117
|
+
function he(e) {
|
|
118
|
+
ce = e;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
if (!
|
|
120
|
+
function zt() {
|
|
121
|
+
if (!ce)
|
|
122
122
|
throw new Error("Function called outside component initialization");
|
|
123
|
-
return
|
|
123
|
+
return ce;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Gr(e) {
|
|
126
|
+
zt().$$.on_mount.push(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
128
|
+
function $r(e) {
|
|
129
|
+
zt().$$.on_destroy.push(e);
|
|
130
130
|
}
|
|
131
131
|
const K = [], we = [];
|
|
132
132
|
let ee = [];
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
133
|
+
const dt = [], Ur = /* @__PURE__ */ Promise.resolve();
|
|
134
|
+
let Ve = !1;
|
|
135
|
+
function Dr() {
|
|
136
|
+
Ve || (Ve = !0, Ur.then(Q));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Xe(e) {
|
|
139
139
|
ee.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Me = /* @__PURE__ */ new Set();
|
|
142
142
|
let q = 0;
|
|
143
143
|
function Q() {
|
|
144
144
|
if (q !== 0)
|
|
145
145
|
return;
|
|
146
|
-
const e =
|
|
146
|
+
const e = ce;
|
|
147
147
|
do {
|
|
148
148
|
try {
|
|
149
149
|
for (; q < K.length; ) {
|
|
150
150
|
const t = K[q];
|
|
151
|
-
q++,
|
|
151
|
+
q++, he(t), Fr(t.$$);
|
|
152
152
|
}
|
|
153
153
|
} catch (t) {
|
|
154
154
|
throw K.length = 0, q = 0, t;
|
|
155
155
|
}
|
|
156
|
-
for (
|
|
156
|
+
for (he(null), K.length = 0, q = 0; we.length; )
|
|
157
157
|
we.pop()();
|
|
158
158
|
for (let t = 0; t < ee.length; t += 1) {
|
|
159
159
|
const r = ee[t];
|
|
160
|
-
|
|
160
|
+
Me.has(r) || (Me.add(r), r());
|
|
161
161
|
}
|
|
162
162
|
ee.length = 0;
|
|
163
163
|
} while (K.length);
|
|
164
|
-
for (;
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
for (; dt.length; )
|
|
165
|
+
dt.pop()();
|
|
166
|
+
Ve = !1, Me.clear(), he(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Fr(e) {
|
|
169
169
|
if (e.fragment !== null) {
|
|
170
|
-
e.update(),
|
|
170
|
+
e.update(), oe(e.before_update);
|
|
171
171
|
const t = e.dirty;
|
|
172
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
172
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function jr(e) {
|
|
176
176
|
const t = [], r = [];
|
|
177
177
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
e && e.i && (
|
|
179
|
+
const kr = /* @__PURE__ */ new Set();
|
|
180
|
+
function Vr(e, t) {
|
|
181
|
+
e && e.i && (kr.delete(e), e.i(t));
|
|
182
182
|
}
|
|
183
183
|
function Te(e) {
|
|
184
184
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Xr(e, t, r) {
|
|
187
187
|
const { fragment: n, after_update: i } = e.$$;
|
|
188
|
-
n && n.m(t, r),
|
|
189
|
-
const o = e.$$.on_mount.map(
|
|
190
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
191
|
-
}), i.forEach(
|
|
188
|
+
n && n.m(t, r), Xe(() => {
|
|
189
|
+
const o = e.$$.on_mount.map(kt).filter(Pe);
|
|
190
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
191
|
+
}), i.forEach(Xe);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Wr(e, t) {
|
|
194
194
|
const r = e.$$;
|
|
195
|
-
r.fragment !== null && (
|
|
195
|
+
r.fragment !== null && (jr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
197
|
+
function zr(e, t) {
|
|
198
|
+
e.$$.dirty[0] === -1 && (K.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const l =
|
|
202
|
-
|
|
200
|
+
function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
201
|
+
const l = ce;
|
|
202
|
+
he(e);
|
|
203
203
|
const u = e.$$ = {
|
|
204
204
|
fragment: null,
|
|
205
205
|
ctx: [],
|
|
@@ -207,7 +207,7 @@ function kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
207
207
|
props: o,
|
|
208
208
|
update: G,
|
|
209
209
|
not_equal: i,
|
|
210
|
-
bound:
|
|
210
|
+
bound: pt(),
|
|
211
211
|
// lifecycle
|
|
212
212
|
on_mount: [],
|
|
213
213
|
on_destroy: [],
|
|
@@ -216,7 +216,7 @@ function kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
after_update: [],
|
|
217
217
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
218
218
|
// everything else
|
|
219
|
-
callbacks:
|
|
219
|
+
callbacks: pt(),
|
|
220
220
|
dirty: a,
|
|
221
221
|
skip_bound: !1,
|
|
222
222
|
root: t.target || l.$$.root
|
|
@@ -225,19 +225,19 @@ function kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
225
225
|
let h = !1;
|
|
226
226
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
227
227
|
const b = d.length ? d[0] : c;
|
|
228
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h &&
|
|
229
|
-
}) : [], u.update(), h = !0,
|
|
228
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && zr(e, f)), c;
|
|
229
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
230
230
|
if (t.hydrate) {
|
|
231
|
-
const f =
|
|
231
|
+
const f = Mr(t.target);
|
|
232
232
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
233
233
|
} else
|
|
234
234
|
u.fragment && u.fragment.c();
|
|
235
|
-
t.intro &&
|
|
235
|
+
t.intro && Vr(e.$$.fragment), Xr(e, t.target, t.anchor), Q();
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
he(l);
|
|
238
238
|
}
|
|
239
|
-
let
|
|
240
|
-
typeof HTMLElement == "function" && (
|
|
239
|
+
let Zt;
|
|
240
|
+
typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
241
241
|
/** The Svelte component constructor */
|
|
242
242
|
$$ctor;
|
|
243
243
|
/** Slots */
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
286
286
|
* @param {HTMLElement} [anchor]
|
|
287
287
|
*/
|
|
288
288
|
m: function(l, u) {
|
|
289
|
-
|
|
289
|
+
F(l, o, u);
|
|
290
290
|
},
|
|
291
291
|
d: function(l) {
|
|
292
292
|
l && $(o);
|
|
@@ -296,7 +296,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
296
296
|
};
|
|
297
297
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
298
298
|
return;
|
|
299
|
-
const t = {}, r =
|
|
299
|
+
const t = {}, r = Rr(this);
|
|
300
300
|
for (const i of this.$$s)
|
|
301
301
|
i in r && (t[i] = [e(i)]);
|
|
302
302
|
for (const i of this.attributes) {
|
|
@@ -383,8 +383,8 @@ function ye(e, t, r, n) {
|
|
|
383
383
|
return t;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
let s = class extends
|
|
386
|
+
function Qr(e, t, r, n, i, o) {
|
|
387
|
+
let s = class extends Zt {
|
|
388
388
|
constructor() {
|
|
389
389
|
super(e, r, i), this.$$p_d = t;
|
|
390
390
|
}
|
|
@@ -412,7 +412,7 @@ function Vr(e, t, r, n, i, o) {
|
|
|
412
412
|
}), e.element = /** @type {any} */
|
|
413
413
|
s, s;
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class Jr {
|
|
416
416
|
/**
|
|
417
417
|
* ### PRIVATE API
|
|
418
418
|
*
|
|
@@ -431,7 +431,7 @@ class Xr {
|
|
|
431
431
|
$$set = void 0;
|
|
432
432
|
/** @returns {void} */
|
|
433
433
|
$destroy() {
|
|
434
|
-
|
|
434
|
+
Wr(this, 1), this.$destroy = G;
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
437
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -440,7 +440,7 @@ class Xr {
|
|
|
440
440
|
* @returns {() => void}
|
|
441
441
|
*/
|
|
442
442
|
$on(t, r) {
|
|
443
|
-
if (!
|
|
443
|
+
if (!Pe(r))
|
|
444
444
|
return G;
|
|
445
445
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
446
446
|
return n.push(r), () => {
|
|
@@ -453,18 +453,18 @@ class Xr {
|
|
|
453
453
|
* @returns {void}
|
|
454
454
|
*/
|
|
455
455
|
$set(t) {
|
|
456
|
-
this.$$set && !
|
|
456
|
+
this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const
|
|
460
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
461
|
-
function
|
|
459
|
+
const qr = "4";
|
|
460
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qr);
|
|
461
|
+
function Yr(e, t) {
|
|
462
462
|
if (e) {
|
|
463
463
|
const r = document.createElement("style");
|
|
464
464
|
r.innerHTML = t, e.appendChild(r);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Kr(e, t) {
|
|
468
468
|
const r = new URL(t);
|
|
469
469
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
470
470
|
const i = document.createElement("style");
|
|
@@ -473,7 +473,7 @@ function Zr(e, t) {
|
|
|
473
473
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function en(e, t, r) {
|
|
477
477
|
if (window.emMessageBus) {
|
|
478
478
|
const n = document.createElement("style");
|
|
479
479
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -495,43 +495,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
495
495
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
496
496
|
PERFORMANCE OF THIS SOFTWARE.
|
|
497
497
|
***************************************************************************** */
|
|
498
|
-
var
|
|
499
|
-
return
|
|
498
|
+
var We = function(e, t) {
|
|
499
|
+
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
500
500
|
r.__proto__ = n;
|
|
501
501
|
} || function(r, n) {
|
|
502
502
|
for (var i in n)
|
|
503
503
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
504
|
-
},
|
|
504
|
+
}, We(e, t);
|
|
505
505
|
};
|
|
506
|
-
function
|
|
506
|
+
function me(e, t) {
|
|
507
507
|
if (typeof t != "function" && t !== null)
|
|
508
508
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
509
|
-
|
|
509
|
+
We(e, t);
|
|
510
510
|
function r() {
|
|
511
511
|
this.constructor = e;
|
|
512
512
|
}
|
|
513
513
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
514
514
|
}
|
|
515
|
-
|
|
516
|
-
return T = Object.assign || function(t) {
|
|
517
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
518
|
-
r = arguments[n];
|
|
519
|
-
for (var o in r)
|
|
520
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
521
|
-
}
|
|
522
|
-
return t;
|
|
523
|
-
}, T.apply(this, arguments);
|
|
524
|
-
};
|
|
525
|
-
function Jr(e, t) {
|
|
526
|
-
var r = {};
|
|
527
|
-
for (var n in e)
|
|
528
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
529
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
530
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
531
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
532
|
-
return r;
|
|
533
|
-
}
|
|
534
|
-
function Ve(e) {
|
|
515
|
+
function ze(e) {
|
|
535
516
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
536
517
|
if (r)
|
|
537
518
|
return r.call(e);
|
|
@@ -543,7 +524,7 @@ function Ve(e) {
|
|
|
543
524
|
};
|
|
544
525
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
545
526
|
}
|
|
546
|
-
function
|
|
527
|
+
function Ze(e, t) {
|
|
547
528
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
548
529
|
if (!r)
|
|
549
530
|
return e;
|
|
@@ -563,22 +544,22 @@ function Xe(e, t) {
|
|
|
563
544
|
}
|
|
564
545
|
return o;
|
|
565
546
|
}
|
|
566
|
-
function
|
|
567
|
-
if (
|
|
547
|
+
function Qe(e, t, r) {
|
|
548
|
+
if (arguments.length === 2)
|
|
568
549
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
569
550
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
570
551
|
return e.concat(o || t);
|
|
571
552
|
}
|
|
572
|
-
function
|
|
553
|
+
function k(e) {
|
|
573
554
|
return typeof e == "function";
|
|
574
555
|
}
|
|
575
|
-
function
|
|
556
|
+
function Qt(e) {
|
|
576
557
|
var t = function(n) {
|
|
577
558
|
Error.call(n), n.stack = new Error().stack;
|
|
578
559
|
}, r = e(t);
|
|
579
560
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
580
561
|
}
|
|
581
|
-
var
|
|
562
|
+
var Re = Qt(function(e) {
|
|
582
563
|
return function(r) {
|
|
583
564
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
584
565
|
` + r.map(function(n, i) {
|
|
@@ -587,13 +568,13 @@ var Le = Vt(function(e) {
|
|
|
587
568
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
588
569
|
};
|
|
589
570
|
});
|
|
590
|
-
function
|
|
571
|
+
function Je(e, t) {
|
|
591
572
|
if (e) {
|
|
592
573
|
var r = e.indexOf(t);
|
|
593
574
|
0 <= r && e.splice(r, 1);
|
|
594
575
|
}
|
|
595
576
|
}
|
|
596
|
-
var
|
|
577
|
+
var Ae = function() {
|
|
597
578
|
function e(t) {
|
|
598
579
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
599
580
|
}
|
|
@@ -605,7 +586,7 @@ var Pe = function() {
|
|
|
605
586
|
if (s)
|
|
606
587
|
if (this._parentage = null, Array.isArray(s))
|
|
607
588
|
try {
|
|
608
|
-
for (var a =
|
|
589
|
+
for (var a = ze(s), l = a.next(); !l.done; l = a.next()) {
|
|
609
590
|
var u = l.value;
|
|
610
591
|
u.remove(this);
|
|
611
592
|
}
|
|
@@ -622,22 +603,22 @@ var Pe = function() {
|
|
|
622
603
|
else
|
|
623
604
|
s.remove(this);
|
|
624
605
|
var h = this.initialTeardown;
|
|
625
|
-
if (
|
|
606
|
+
if (k(h))
|
|
626
607
|
try {
|
|
627
608
|
h();
|
|
628
609
|
} catch (g) {
|
|
629
|
-
o = g instanceof
|
|
610
|
+
o = g instanceof Re ? g.errors : [g];
|
|
630
611
|
}
|
|
631
612
|
var f = this._finalizers;
|
|
632
613
|
if (f) {
|
|
633
614
|
this._finalizers = null;
|
|
634
615
|
try {
|
|
635
|
-
for (var c =
|
|
616
|
+
for (var c = ze(f), d = c.next(); !d.done; d = c.next()) {
|
|
636
617
|
var b = d.value;
|
|
637
618
|
try {
|
|
638
|
-
|
|
619
|
+
bt(b);
|
|
639
620
|
} catch (g) {
|
|
640
|
-
o = o ?? [], g instanceof
|
|
621
|
+
o = o ?? [], g instanceof Re ? o = Qe(Qe([], Ze(o)), Ze(g.errors)) : o.push(g);
|
|
641
622
|
}
|
|
642
623
|
}
|
|
643
624
|
} catch (g) {
|
|
@@ -652,13 +633,13 @@ var Pe = function() {
|
|
|
652
633
|
}
|
|
653
634
|
}
|
|
654
635
|
if (o)
|
|
655
|
-
throw new
|
|
636
|
+
throw new Re(o);
|
|
656
637
|
}
|
|
657
638
|
}, e.prototype.add = function(t) {
|
|
658
639
|
var r;
|
|
659
640
|
if (t && t !== this)
|
|
660
641
|
if (this.closed)
|
|
661
|
-
|
|
642
|
+
bt(t);
|
|
662
643
|
else {
|
|
663
644
|
if (t instanceof e) {
|
|
664
645
|
if (t.closed || t._hasParent(this))
|
|
@@ -675,52 +656,52 @@ var Pe = function() {
|
|
|
675
656
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
676
657
|
}, e.prototype._removeParent = function(t) {
|
|
677
658
|
var r = this._parentage;
|
|
678
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
659
|
+
r === t ? this._parentage = null : Array.isArray(r) && Je(r, t);
|
|
679
660
|
}, e.prototype.remove = function(t) {
|
|
680
661
|
var r = this._finalizers;
|
|
681
|
-
r &&
|
|
662
|
+
r && Je(r, t), t instanceof e && t._removeParent(this);
|
|
682
663
|
}, e.EMPTY = function() {
|
|
683
664
|
var t = new e();
|
|
684
665
|
return t.closed = !0, t;
|
|
685
666
|
}(), e;
|
|
686
|
-
}(),
|
|
687
|
-
function
|
|
688
|
-
return e instanceof
|
|
667
|
+
}(), Jt = Ae.EMPTY;
|
|
668
|
+
function qt(e) {
|
|
669
|
+
return e instanceof Ae || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
689
670
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
671
|
+
function bt(e) {
|
|
672
|
+
k(e) ? e() : e.unsubscribe();
|
|
692
673
|
}
|
|
693
|
-
var
|
|
674
|
+
var tn = {
|
|
694
675
|
Promise: void 0
|
|
695
|
-
},
|
|
676
|
+
}, rn = {
|
|
696
677
|
setTimeout: function(e, t) {
|
|
697
678
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
698
679
|
r[n - 2] = arguments[n];
|
|
699
|
-
return setTimeout.apply(void 0,
|
|
680
|
+
return setTimeout.apply(void 0, Qe([e, t], Ze(r)));
|
|
700
681
|
},
|
|
701
682
|
clearTimeout: function(e) {
|
|
702
683
|
return clearTimeout(e);
|
|
703
684
|
},
|
|
704
685
|
delegate: void 0
|
|
705
686
|
};
|
|
706
|
-
function
|
|
707
|
-
|
|
687
|
+
function nn(e) {
|
|
688
|
+
rn.setTimeout(function() {
|
|
708
689
|
throw e;
|
|
709
690
|
});
|
|
710
691
|
}
|
|
711
|
-
function
|
|
692
|
+
function gt() {
|
|
712
693
|
}
|
|
713
694
|
function _e(e) {
|
|
714
695
|
e();
|
|
715
696
|
}
|
|
716
|
-
var
|
|
717
|
-
|
|
697
|
+
var Yt = function(e) {
|
|
698
|
+
me(t, e);
|
|
718
699
|
function t(r) {
|
|
719
700
|
var n = e.call(this) || this;
|
|
720
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
701
|
+
return n.isStopped = !1, r ? (n.destination = r, qt(r) && r.add(n)) : n.destination = an, n;
|
|
721
702
|
}
|
|
722
703
|
return t.create = function(r, n, i) {
|
|
723
|
-
return new
|
|
704
|
+
return new qe(r, n, i);
|
|
724
705
|
}, t.prototype.next = function(r) {
|
|
725
706
|
this.isStopped || this._next(r);
|
|
726
707
|
}, t.prototype.error = function(r) {
|
|
@@ -744,7 +725,7 @@ var zt = function(e) {
|
|
|
744
725
|
this.unsubscribe();
|
|
745
726
|
}
|
|
746
727
|
}, t;
|
|
747
|
-
}(
|
|
728
|
+
}(Ae), on = function() {
|
|
748
729
|
function e(t) {
|
|
749
730
|
this.partialObserver = t;
|
|
750
731
|
}
|
|
@@ -775,43 +756,43 @@ var zt = function(e) {
|
|
|
775
756
|
ge(r);
|
|
776
757
|
}
|
|
777
758
|
}, e;
|
|
778
|
-
}(),
|
|
779
|
-
|
|
759
|
+
}(), qe = function(e) {
|
|
760
|
+
me(t, e);
|
|
780
761
|
function t(r, n, i) {
|
|
781
762
|
var o = e.call(this) || this, s;
|
|
782
|
-
return
|
|
763
|
+
return k(r) || !r ? s = {
|
|
783
764
|
next: r ?? void 0,
|
|
784
765
|
error: n ?? void 0,
|
|
785
766
|
complete: i ?? void 0
|
|
786
|
-
} : s = r, o.destination = new
|
|
767
|
+
} : s = r, o.destination = new on(s), o;
|
|
787
768
|
}
|
|
788
769
|
return t;
|
|
789
|
-
}(
|
|
770
|
+
}(Yt);
|
|
790
771
|
function ge(e) {
|
|
791
|
-
|
|
772
|
+
nn(e);
|
|
792
773
|
}
|
|
793
|
-
function
|
|
774
|
+
function sn(e) {
|
|
794
775
|
throw e;
|
|
795
776
|
}
|
|
796
|
-
var
|
|
777
|
+
var an = {
|
|
797
778
|
closed: !0,
|
|
798
|
-
next:
|
|
799
|
-
error:
|
|
800
|
-
complete:
|
|
801
|
-
},
|
|
779
|
+
next: gt,
|
|
780
|
+
error: sn,
|
|
781
|
+
complete: gt
|
|
782
|
+
}, un = function() {
|
|
802
783
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
803
784
|
}();
|
|
804
|
-
function
|
|
785
|
+
function ln(e) {
|
|
805
786
|
return e;
|
|
806
787
|
}
|
|
807
|
-
function
|
|
808
|
-
return e.length === 0 ?
|
|
788
|
+
function hn(e) {
|
|
789
|
+
return e.length === 0 ? ln : e.length === 1 ? e[0] : function(r) {
|
|
809
790
|
return e.reduce(function(n, i) {
|
|
810
791
|
return i(n);
|
|
811
792
|
}, r);
|
|
812
793
|
};
|
|
813
794
|
}
|
|
814
|
-
var
|
|
795
|
+
var vt = function() {
|
|
815
796
|
function e(t) {
|
|
816
797
|
t && (this._subscribe = t);
|
|
817
798
|
}
|
|
@@ -819,7 +800,7 @@ var mt = function() {
|
|
|
819
800
|
var r = new e();
|
|
820
801
|
return r.source = this, r.operator = t, r;
|
|
821
802
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
822
|
-
var i = this, o =
|
|
803
|
+
var i = this, o = fn(t) ? t : new qe(t, r, n);
|
|
823
804
|
return _e(function() {
|
|
824
805
|
var s = i, a = s.operator, l = s.source;
|
|
825
806
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -832,8 +813,8 @@ var mt = function() {
|
|
|
832
813
|
}
|
|
833
814
|
}, e.prototype.forEach = function(t, r) {
|
|
834
815
|
var n = this;
|
|
835
|
-
return r =
|
|
836
|
-
var s = new
|
|
816
|
+
return r = yt(r), new r(function(i, o) {
|
|
817
|
+
var s = new qe({
|
|
837
818
|
next: function(a) {
|
|
838
819
|
try {
|
|
839
820
|
t(a);
|
|
@@ -849,15 +830,15 @@ var mt = function() {
|
|
|
849
830
|
}, e.prototype._subscribe = function(t) {
|
|
850
831
|
var r;
|
|
851
832
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
852
|
-
}, e.prototype[
|
|
833
|
+
}, e.prototype[un] = function() {
|
|
853
834
|
return this;
|
|
854
835
|
}, e.prototype.pipe = function() {
|
|
855
836
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
856
837
|
t[r] = arguments[r];
|
|
857
|
-
return
|
|
838
|
+
return hn(t)(this);
|
|
858
839
|
}, e.prototype.toPromise = function(t) {
|
|
859
840
|
var r = this;
|
|
860
|
-
return t =
|
|
841
|
+
return t = yt(t), new t(function(n, i) {
|
|
861
842
|
var o;
|
|
862
843
|
r.subscribe(function(s) {
|
|
863
844
|
return o = s;
|
|
@@ -871,32 +852,32 @@ var mt = function() {
|
|
|
871
852
|
return new e(t);
|
|
872
853
|
}, e;
|
|
873
854
|
}();
|
|
874
|
-
function
|
|
855
|
+
function yt(e) {
|
|
875
856
|
var t;
|
|
876
|
-
return (t = e ??
|
|
857
|
+
return (t = e ?? tn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
877
858
|
}
|
|
878
|
-
function
|
|
879
|
-
return e &&
|
|
859
|
+
function cn(e) {
|
|
860
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
880
861
|
}
|
|
881
|
-
function
|
|
882
|
-
return e && e instanceof
|
|
862
|
+
function fn(e) {
|
|
863
|
+
return e && e instanceof Yt || cn(e) && qt(e);
|
|
883
864
|
}
|
|
884
|
-
var
|
|
865
|
+
var pn = Qt(function(e) {
|
|
885
866
|
return function() {
|
|
886
867
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
887
868
|
};
|
|
888
|
-
}),
|
|
889
|
-
|
|
869
|
+
}), Kt = function(e) {
|
|
870
|
+
me(t, e);
|
|
890
871
|
function t() {
|
|
891
872
|
var r = e.call(this) || this;
|
|
892
873
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
893
874
|
}
|
|
894
875
|
return t.prototype.lift = function(r) {
|
|
895
|
-
var n = new
|
|
876
|
+
var n = new _t(this, this);
|
|
896
877
|
return n.operator = r, n;
|
|
897
878
|
}, t.prototype._throwIfClosed = function() {
|
|
898
879
|
if (this.closed)
|
|
899
|
-
throw new
|
|
880
|
+
throw new pn();
|
|
900
881
|
}, t.prototype.next = function(r) {
|
|
901
882
|
var n = this;
|
|
902
883
|
_e(function() {
|
|
@@ -904,7 +885,7 @@ var ln = Vt(function(e) {
|
|
|
904
885
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
905
886
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
906
887
|
try {
|
|
907
|
-
for (var s =
|
|
888
|
+
for (var s = ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
908
889
|
var l = a.value;
|
|
909
890
|
l.next(r);
|
|
910
891
|
}
|
|
@@ -953,20 +934,20 @@ var ln = Vt(function(e) {
|
|
|
953
934
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
954
935
|
}, t.prototype._innerSubscribe = function(r) {
|
|
955
936
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
956
|
-
return o || s ?
|
|
957
|
-
n.currentObservers = null,
|
|
937
|
+
return o || s ? Jt : (this.currentObservers = null, a.push(r), new Ae(function() {
|
|
938
|
+
n.currentObservers = null, Je(a, r);
|
|
958
939
|
}));
|
|
959
940
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
960
941
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
961
942
|
i ? r.error(o) : s && r.complete();
|
|
962
943
|
}, t.prototype.asObservable = function() {
|
|
963
|
-
var r = new
|
|
944
|
+
var r = new vt();
|
|
964
945
|
return r.source = this, r;
|
|
965
946
|
}, t.create = function(r, n) {
|
|
966
|
-
return new
|
|
947
|
+
return new _t(r, n);
|
|
967
948
|
}, t;
|
|
968
|
-
}(
|
|
969
|
-
|
|
949
|
+
}(vt), _t = function(e) {
|
|
950
|
+
me(t, e);
|
|
970
951
|
function t(r, n) {
|
|
971
952
|
var i = e.call(this) || this;
|
|
972
953
|
return i.destination = r, i.source = n, i;
|
|
@@ -982,17 +963,17 @@ var ln = Vt(function(e) {
|
|
|
982
963
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
983
964
|
}, t.prototype._subscribe = function(r) {
|
|
984
965
|
var n, i;
|
|
985
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
966
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Jt;
|
|
986
967
|
}, t;
|
|
987
|
-
}(
|
|
968
|
+
}(Kt), er = {
|
|
988
969
|
now: function() {
|
|
989
|
-
return (
|
|
970
|
+
return (er.delegate || Date).now();
|
|
990
971
|
},
|
|
991
972
|
delegate: void 0
|
|
992
|
-
},
|
|
993
|
-
|
|
973
|
+
}, mn = function(e) {
|
|
974
|
+
me(t, e);
|
|
994
975
|
function t(r, n, i) {
|
|
995
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
976
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
|
|
996
977
|
var o = e.call(this) || this;
|
|
997
978
|
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;
|
|
998
979
|
}
|
|
@@ -1012,24 +993,24 @@ var ln = Vt(function(e) {
|
|
|
1012
993
|
u && o.splice(0, u + 1);
|
|
1013
994
|
}
|
|
1014
995
|
}, t;
|
|
1015
|
-
}(
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
1018
|
-
const r = new
|
|
1019
|
-
|
|
996
|
+
}(Kt);
|
|
997
|
+
const Et = [], xt = {}, dn = (e, t = 0) => {
|
|
998
|
+
if (Et.indexOf(e) == -1) {
|
|
999
|
+
const r = new mn(t);
|
|
1000
|
+
xt[e] = r, Et.push(e);
|
|
1020
1001
|
}
|
|
1021
|
-
return
|
|
1002
|
+
return xt[e];
|
|
1022
1003
|
}, Y = [];
|
|
1023
|
-
function
|
|
1004
|
+
function bn(e, t) {
|
|
1024
1005
|
return {
|
|
1025
|
-
subscribe:
|
|
1006
|
+
subscribe: Oe(e, t).subscribe
|
|
1026
1007
|
};
|
|
1027
1008
|
}
|
|
1028
|
-
function
|
|
1009
|
+
function Oe(e, t = G) {
|
|
1029
1010
|
let r;
|
|
1030
1011
|
const n = /* @__PURE__ */ new Set();
|
|
1031
1012
|
function i(a) {
|
|
1032
|
-
if (
|
|
1013
|
+
if (Vt(e, a) && (e = a, r)) {
|
|
1033
1014
|
const l = !Y.length;
|
|
1034
1015
|
for (const u of n)
|
|
1035
1016
|
u[1](), Y.push(u, e);
|
|
@@ -1051,12 +1032,12 @@ function Ae(e, t = G) {
|
|
|
1051
1032
|
}
|
|
1052
1033
|
return { set: i, update: o, subscribe: s };
|
|
1053
1034
|
}
|
|
1054
|
-
function
|
|
1035
|
+
function se(e, t, r) {
|
|
1055
1036
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1056
1037
|
if (!i.every(Boolean))
|
|
1057
1038
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1058
1039
|
const o = t.length < 2;
|
|
1059
|
-
return
|
|
1040
|
+
return bn(r, (s, a) => {
|
|
1060
1041
|
let l = !1;
|
|
1061
1042
|
const u = [];
|
|
1062
1043
|
let h = 0, f = G;
|
|
@@ -1065,12 +1046,12 @@ function ae(e, t, r) {
|
|
|
1065
1046
|
return;
|
|
1066
1047
|
f();
|
|
1067
1048
|
const b = t(n ? u[0] : u, s, a);
|
|
1068
|
-
o ? s(b) : f =
|
|
1049
|
+
o ? s(b) : f = Pe(b) ? b : G;
|
|
1069
1050
|
}, d = i.map(
|
|
1070
|
-
(b, g) =>
|
|
1051
|
+
(b, g) => Xt(
|
|
1071
1052
|
b,
|
|
1072
|
-
(
|
|
1073
|
-
u[g] =
|
|
1053
|
+
(T) => {
|
|
1054
|
+
u[g] = T, h &= ~(1 << g), l && c();
|
|
1074
1055
|
},
|
|
1075
1056
|
() => {
|
|
1076
1057
|
h |= 1 << g;
|
|
@@ -1078,115 +1059,157 @@ function ae(e, t, r) {
|
|
|
1078
1059
|
)
|
|
1079
1060
|
);
|
|
1080
1061
|
return l = !0, c(), function() {
|
|
1081
|
-
|
|
1062
|
+
oe(d), f(), l = !1;
|
|
1082
1063
|
};
|
|
1083
1064
|
});
|
|
1084
1065
|
}
|
|
1085
|
-
function
|
|
1066
|
+
function gn(e) {
|
|
1086
1067
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1087
1068
|
}
|
|
1088
|
-
var
|
|
1089
|
-
return
|
|
1069
|
+
var vn = function(t) {
|
|
1070
|
+
return yn(t) && !_n(t);
|
|
1090
1071
|
};
|
|
1091
|
-
function
|
|
1072
|
+
function yn(e) {
|
|
1092
1073
|
return !!e && typeof e == "object";
|
|
1093
1074
|
}
|
|
1094
|
-
function
|
|
1075
|
+
function _n(e) {
|
|
1095
1076
|
var t = Object.prototype.toString.call(e);
|
|
1096
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1077
|
+
return t === "[object RegExp]" || t === "[object Date]" || wn(e);
|
|
1097
1078
|
}
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
1100
|
-
return e.$$typeof ===
|
|
1079
|
+
var En = typeof Symbol == "function" && Symbol.for, xn = En ? Symbol.for("react.element") : 60103;
|
|
1080
|
+
function wn(e) {
|
|
1081
|
+
return e.$$typeof === xn;
|
|
1101
1082
|
}
|
|
1102
|
-
function
|
|
1083
|
+
function Tn(e) {
|
|
1103
1084
|
return Array.isArray(e) ? [] : {};
|
|
1104
1085
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1086
|
+
function fe(e, t) {
|
|
1087
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Tn(e), e, t) : e;
|
|
1107
1088
|
}
|
|
1108
|
-
function
|
|
1089
|
+
function Sn(e, t, r) {
|
|
1109
1090
|
return e.concat(t).map(function(n) {
|
|
1110
|
-
return
|
|
1091
|
+
return fe(n, r);
|
|
1111
1092
|
});
|
|
1112
1093
|
}
|
|
1113
|
-
function
|
|
1094
|
+
function Hn(e, t) {
|
|
1114
1095
|
if (!t.customMerge)
|
|
1115
|
-
return
|
|
1096
|
+
return te;
|
|
1116
1097
|
var r = t.customMerge(e);
|
|
1117
|
-
return typeof r == "function" ? r :
|
|
1098
|
+
return typeof r == "function" ? r : te;
|
|
1118
1099
|
}
|
|
1119
|
-
function
|
|
1100
|
+
function Bn(e) {
|
|
1120
1101
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1121
1102
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1122
1103
|
}) : [];
|
|
1123
1104
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return Object.keys(e).concat(
|
|
1105
|
+
function wt(e) {
|
|
1106
|
+
return Object.keys(e).concat(Bn(e));
|
|
1126
1107
|
}
|
|
1127
|
-
function
|
|
1108
|
+
function tr(e, t) {
|
|
1128
1109
|
try {
|
|
1129
1110
|
return t in e;
|
|
1130
1111
|
} catch {
|
|
1131
1112
|
return !1;
|
|
1132
1113
|
}
|
|
1133
1114
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return
|
|
1115
|
+
function Pn(e, t) {
|
|
1116
|
+
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1136
1117
|
}
|
|
1137
|
-
function
|
|
1118
|
+
function An(e, t, r) {
|
|
1138
1119
|
var n = {};
|
|
1139
|
-
return r.isMergeableObject(e) &&
|
|
1140
|
-
n[i] =
|
|
1141
|
-
}),
|
|
1142
|
-
|
|
1120
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1121
|
+
n[i] = fe(e[i], r);
|
|
1122
|
+
}), wt(t).forEach(function(i) {
|
|
1123
|
+
Pn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1143
1124
|
}), n;
|
|
1144
1125
|
}
|
|
1145
|
-
function
|
|
1146
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1126
|
+
function te(e, t, r) {
|
|
1127
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1147
1128
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1148
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1129
|
+
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : fe(t, r);
|
|
1149
1130
|
}
|
|
1150
|
-
|
|
1131
|
+
te.all = function(t, r) {
|
|
1151
1132
|
if (!Array.isArray(t))
|
|
1152
1133
|
throw new Error("first argument should be an array");
|
|
1153
1134
|
return t.reduce(function(n, i) {
|
|
1154
|
-
return
|
|
1135
|
+
return te(n, i, r);
|
|
1155
1136
|
}, {});
|
|
1156
1137
|
};
|
|
1157
|
-
var
|
|
1158
|
-
const
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1138
|
+
var On = te, Nn = On;
|
|
1139
|
+
const Cn = /* @__PURE__ */ gn(Nn);
|
|
1140
|
+
var Ye = function(e, t) {
|
|
1141
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1142
|
+
r.__proto__ = n;
|
|
1143
|
+
} || function(r, n) {
|
|
1144
|
+
for (var i in n)
|
|
1145
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1146
|
+
}, Ye(e, t);
|
|
1147
|
+
};
|
|
1148
|
+
function Ne(e, t) {
|
|
1149
|
+
if (typeof t != "function" && t !== null)
|
|
1150
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1151
|
+
Ye(e, t);
|
|
1152
|
+
function r() {
|
|
1153
|
+
this.constructor = e;
|
|
1154
|
+
}
|
|
1155
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1156
|
+
}
|
|
1157
|
+
var U = function() {
|
|
1158
|
+
return U = Object.assign || function(t) {
|
|
1159
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1160
|
+
r = arguments[n];
|
|
1161
|
+
for (var o in r)
|
|
1162
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1163
|
+
}
|
|
1164
|
+
return t;
|
|
1165
|
+
}, U.apply(this, arguments);
|
|
1166
|
+
};
|
|
1167
|
+
function In(e, t) {
|
|
1168
|
+
var r = {};
|
|
1169
|
+
for (var n in e)
|
|
1170
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1171
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1172
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1173
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1174
|
+
return r;
|
|
1175
|
+
}
|
|
1176
|
+
function Ge(e, t, r) {
|
|
1177
|
+
if (r || arguments.length === 2)
|
|
1178
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1179
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1180
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1181
|
+
}
|
|
1182
|
+
function $e(e, t) {
|
|
1183
|
+
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Rn;
|
|
1161
1184
|
return i(e, {
|
|
1162
1185
|
cache: r,
|
|
1163
1186
|
serializer: n
|
|
1164
1187
|
});
|
|
1165
1188
|
}
|
|
1166
|
-
function
|
|
1189
|
+
function Ln(e) {
|
|
1167
1190
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1168
1191
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var i =
|
|
1192
|
+
function Mn(e, t, r, n) {
|
|
1193
|
+
var i = Ln(n) ? n : r(n), o = t.get(i);
|
|
1171
1194
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1172
1195
|
}
|
|
1173
|
-
function
|
|
1196
|
+
function rr(e, t, r) {
|
|
1174
1197
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1175
1198
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1176
1199
|
}
|
|
1177
|
-
function
|
|
1200
|
+
function nr(e, t, r, n, i) {
|
|
1178
1201
|
return r.bind(t, e, n, i);
|
|
1179
1202
|
}
|
|
1180
|
-
function
|
|
1181
|
-
var r = e.length === 1 ?
|
|
1182
|
-
return
|
|
1203
|
+
function Rn(e, t) {
|
|
1204
|
+
var r = e.length === 1 ? Mn : rr;
|
|
1205
|
+
return nr(e, this, r, t.cache.create(), t.serializer);
|
|
1183
1206
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1207
|
+
function Gn(e, t) {
|
|
1208
|
+
return nr(e, this, rr, t.cache.create(), t.serializer);
|
|
1186
1209
|
}
|
|
1187
|
-
var
|
|
1210
|
+
var $n = function() {
|
|
1188
1211
|
return JSON.stringify(arguments);
|
|
1189
|
-
},
|
|
1212
|
+
}, Un = (
|
|
1190
1213
|
/** @class */
|
|
1191
1214
|
function() {
|
|
1192
1215
|
function e() {
|
|
@@ -1198,61 +1221,71 @@ var In = function() {
|
|
|
1198
1221
|
this.cache[t] = r;
|
|
1199
1222
|
}, e;
|
|
1200
1223
|
}()
|
|
1201
|
-
),
|
|
1224
|
+
), Dn = {
|
|
1202
1225
|
create: function() {
|
|
1203
|
-
return new
|
|
1226
|
+
return new Un();
|
|
1204
1227
|
}
|
|
1205
|
-
},
|
|
1206
|
-
variadic:
|
|
1207
|
-
},
|
|
1228
|
+
}, Ue = {
|
|
1229
|
+
variadic: Gn
|
|
1230
|
+
}, Se = function() {
|
|
1231
|
+
return Se = Object.assign || function(t) {
|
|
1232
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1233
|
+
r = arguments[n];
|
|
1234
|
+
for (var o in r)
|
|
1235
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1236
|
+
}
|
|
1237
|
+
return t;
|
|
1238
|
+
}, Se.apply(this, arguments);
|
|
1239
|
+
};
|
|
1240
|
+
var y;
|
|
1208
1241
|
(function(e) {
|
|
1209
1242
|
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";
|
|
1210
1243
|
})(y || (y = {}));
|
|
1211
|
-
var
|
|
1244
|
+
var S;
|
|
1212
1245
|
(function(e) {
|
|
1213
1246
|
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";
|
|
1214
|
-
})(
|
|
1215
|
-
var
|
|
1247
|
+
})(S || (S = {}));
|
|
1248
|
+
var re;
|
|
1216
1249
|
(function(e) {
|
|
1217
1250
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1218
|
-
})(
|
|
1219
|
-
function
|
|
1220
|
-
return e.type ===
|
|
1251
|
+
})(re || (re = {}));
|
|
1252
|
+
function Tt(e) {
|
|
1253
|
+
return e.type === S.literal;
|
|
1221
1254
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return e.type ===
|
|
1255
|
+
function Fn(e) {
|
|
1256
|
+
return e.type === S.argument;
|
|
1224
1257
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return e.type ===
|
|
1258
|
+
function ir(e) {
|
|
1259
|
+
return e.type === S.number;
|
|
1227
1260
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return e.type ===
|
|
1261
|
+
function or(e) {
|
|
1262
|
+
return e.type === S.date;
|
|
1230
1263
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return e.type ===
|
|
1264
|
+
function sr(e) {
|
|
1265
|
+
return e.type === S.time;
|
|
1233
1266
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return e.type ===
|
|
1267
|
+
function ar(e) {
|
|
1268
|
+
return e.type === S.select;
|
|
1236
1269
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return e.type ===
|
|
1270
|
+
function ur(e) {
|
|
1271
|
+
return e.type === S.plural;
|
|
1239
1272
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return e.type ===
|
|
1273
|
+
function jn(e) {
|
|
1274
|
+
return e.type === S.pound;
|
|
1242
1275
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return e.type ===
|
|
1276
|
+
function lr(e) {
|
|
1277
|
+
return e.type === S.tag;
|
|
1245
1278
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1279
|
+
function hr(e) {
|
|
1280
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1248
1281
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1282
|
+
function Ke(e) {
|
|
1283
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1251
1284
|
}
|
|
1252
|
-
var
|
|
1253
|
-
function
|
|
1285
|
+
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kn = /(?:[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;
|
|
1286
|
+
function Vn(e) {
|
|
1254
1287
|
var t = {};
|
|
1255
|
-
return e.replace(
|
|
1288
|
+
return e.replace(kn, function(r) {
|
|
1256
1289
|
var n = r.length;
|
|
1257
1290
|
switch (r[0]) {
|
|
1258
1291
|
case "G":
|
|
@@ -1341,11 +1374,21 @@ function Un(e) {
|
|
|
1341
1374
|
return "";
|
|
1342
1375
|
}), t;
|
|
1343
1376
|
}
|
|
1344
|
-
var
|
|
1345
|
-
function
|
|
1377
|
+
var B = function() {
|
|
1378
|
+
return B = Object.assign || function(t) {
|
|
1379
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1380
|
+
r = arguments[n];
|
|
1381
|
+
for (var o in r)
|
|
1382
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1383
|
+
}
|
|
1384
|
+
return t;
|
|
1385
|
+
}, B.apply(this, arguments);
|
|
1386
|
+
};
|
|
1387
|
+
var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1388
|
+
function Wn(e) {
|
|
1346
1389
|
if (e.length === 0)
|
|
1347
1390
|
throw new Error("Number skeleton cannot be empty");
|
|
1348
|
-
for (var t = e.split(
|
|
1391
|
+
for (var t = e.split(Xn).filter(function(c) {
|
|
1349
1392
|
return c.length > 0;
|
|
1350
1393
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1351
1394
|
var o = i[n], s = o.split("/");
|
|
@@ -1360,17 +1403,17 @@ function Fn(e) {
|
|
|
1360
1403
|
}
|
|
1361
1404
|
return r;
|
|
1362
1405
|
}
|
|
1363
|
-
function
|
|
1406
|
+
function zn(e) {
|
|
1364
1407
|
return e.replace(/^(.*?)-/, "");
|
|
1365
1408
|
}
|
|
1366
|
-
var
|
|
1367
|
-
function
|
|
1409
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Zn = /(\*)(0+)|(#+)(0+)|(0+)/g, pr = /^(0+)$/;
|
|
1410
|
+
function Ht(e) {
|
|
1368
1411
|
var t = {};
|
|
1369
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1412
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
|
|
1370
1413
|
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)), "";
|
|
1371
1414
|
}), t;
|
|
1372
1415
|
}
|
|
1373
|
-
function
|
|
1416
|
+
function mr(e) {
|
|
1374
1417
|
switch (e) {
|
|
1375
1418
|
case "sign-auto":
|
|
1376
1419
|
return {
|
|
@@ -1410,7 +1453,7 @@ function lr(e) {
|
|
|
1410
1453
|
};
|
|
1411
1454
|
}
|
|
1412
1455
|
}
|
|
1413
|
-
function
|
|
1456
|
+
function Qn(e) {
|
|
1414
1457
|
var t;
|
|
1415
1458
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1416
1459
|
notation: "engineering"
|
|
@@ -1418,17 +1461,17 @@ function Vn(e) {
|
|
|
1418
1461
|
notation: "scientific"
|
|
1419
1462
|
}, e = e.slice(1)), t) {
|
|
1420
1463
|
var r = e.slice(0, 2);
|
|
1421
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1464
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pr.test(e))
|
|
1422
1465
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1423
1466
|
t.minimumIntegerDigits = e.length;
|
|
1424
1467
|
}
|
|
1425
1468
|
return t;
|
|
1426
1469
|
}
|
|
1427
|
-
function
|
|
1428
|
-
var t = {}, r =
|
|
1470
|
+
function Bt(e) {
|
|
1471
|
+
var t = {}, r = mr(e);
|
|
1429
1472
|
return r || t;
|
|
1430
1473
|
}
|
|
1431
|
-
function
|
|
1474
|
+
function Jn(e) {
|
|
1432
1475
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1433
1476
|
var i = n[r];
|
|
1434
1477
|
switch (i.stem) {
|
|
@@ -1452,7 +1495,7 @@ function Xn(e) {
|
|
|
1452
1495
|
continue;
|
|
1453
1496
|
case "measure-unit":
|
|
1454
1497
|
case "unit":
|
|
1455
|
-
t.style = "unit", t.unit =
|
|
1498
|
+
t.style = "unit", t.unit = zn(i.options[0]);
|
|
1456
1499
|
continue;
|
|
1457
1500
|
case "compact-short":
|
|
1458
1501
|
case "K":
|
|
@@ -1463,13 +1506,13 @@ function Xn(e) {
|
|
|
1463
1506
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1464
1507
|
continue;
|
|
1465
1508
|
case "scientific":
|
|
1466
|
-
t =
|
|
1467
|
-
return
|
|
1509
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1510
|
+
return B(B({}, l), Bt(u));
|
|
1468
1511
|
}, {}));
|
|
1469
1512
|
continue;
|
|
1470
1513
|
case "engineering":
|
|
1471
|
-
t =
|
|
1472
|
-
return
|
|
1514
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1515
|
+
return B(B({}, l), Bt(u));
|
|
1473
1516
|
}, {}));
|
|
1474
1517
|
continue;
|
|
1475
1518
|
case "notation-simple":
|
|
@@ -1514,7 +1557,7 @@ function Xn(e) {
|
|
|
1514
1557
|
case "integer-width":
|
|
1515
1558
|
if (i.options.length > 1)
|
|
1516
1559
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1517
|
-
i.options[0].replace(
|
|
1560
|
+
i.options[0].replace(Zn, function(l, u, h, f, c, d) {
|
|
1518
1561
|
if (u)
|
|
1519
1562
|
t.minimumIntegerDigits = h.length;
|
|
1520
1563
|
else {
|
|
@@ -1527,28 +1570,28 @@ function Xn(e) {
|
|
|
1527
1570
|
});
|
|
1528
1571
|
continue;
|
|
1529
1572
|
}
|
|
1530
|
-
if (
|
|
1573
|
+
if (pr.test(i.stem)) {
|
|
1531
1574
|
t.minimumIntegerDigits = i.stem.length;
|
|
1532
1575
|
continue;
|
|
1533
1576
|
}
|
|
1534
|
-
if (
|
|
1577
|
+
if (St.test(i.stem)) {
|
|
1535
1578
|
if (i.options.length > 1)
|
|
1536
1579
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1537
|
-
i.stem.replace(
|
|
1580
|
+
i.stem.replace(St, function(l, u, h, f, c, d) {
|
|
1538
1581
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1539
1582
|
});
|
|
1540
1583
|
var o = i.options[0];
|
|
1541
|
-
o === "w" ? t =
|
|
1584
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Ht(o)));
|
|
1542
1585
|
continue;
|
|
1543
1586
|
}
|
|
1544
|
-
if (
|
|
1545
|
-
t =
|
|
1587
|
+
if (fr.test(i.stem)) {
|
|
1588
|
+
t = B(B({}, t), Ht(i.stem));
|
|
1546
1589
|
continue;
|
|
1547
1590
|
}
|
|
1548
|
-
var s =
|
|
1549
|
-
s && (t =
|
|
1550
|
-
var a =
|
|
1551
|
-
a && (t =
|
|
1591
|
+
var s = mr(i.stem);
|
|
1592
|
+
s && (t = B(B({}, t), s));
|
|
1593
|
+
var a = Qn(i.stem);
|
|
1594
|
+
a && (t = B(B({}, t), a));
|
|
1552
1595
|
}
|
|
1553
1596
|
return t;
|
|
1554
1597
|
}
|
|
@@ -2967,13 +3010,13 @@ var ve = {
|
|
|
2967
3010
|
"h"
|
|
2968
3011
|
]
|
|
2969
3012
|
};
|
|
2970
|
-
function
|
|
3013
|
+
function qn(e, t) {
|
|
2971
3014
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2972
3015
|
var i = e.charAt(n);
|
|
2973
3016
|
if (i === "j") {
|
|
2974
3017
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2975
3018
|
o++, n++;
|
|
2976
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3019
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Yn(t);
|
|
2977
3020
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2978
3021
|
r += l;
|
|
2979
3022
|
for (; s-- > 0; )
|
|
@@ -2983,7 +3026,7 @@ function Wn(e, t) {
|
|
|
2983
3026
|
}
|
|
2984
3027
|
return r;
|
|
2985
3028
|
}
|
|
2986
|
-
function
|
|
3029
|
+
function Yn(e) {
|
|
2987
3030
|
var t = e.hourCycle;
|
|
2988
3031
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2989
3032
|
e.hourCycles && // @ts-ignore
|
|
@@ -3005,20 +3048,20 @@ function zn(e) {
|
|
|
3005
3048
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3006
3049
|
return i[0];
|
|
3007
3050
|
}
|
|
3008
|
-
var
|
|
3051
|
+
var De, Kn = new RegExp("^".concat(cr.source, "*")), ei = new RegExp("".concat(cr.source, "*$"));
|
|
3009
3052
|
function E(e, t) {
|
|
3010
3053
|
return { start: e, end: t };
|
|
3011
3054
|
}
|
|
3012
|
-
var
|
|
3055
|
+
var ti = !!String.prototype.startsWith && "_a".startsWith("a", 1), ri = !!String.fromCodePoint, ni = !!Object.fromEntries, ii = !!String.prototype.codePointAt, oi = !!String.prototype.trimStart, si = !!String.prototype.trimEnd, ai = !!Number.isSafeInteger, ui = ai ? Number.isSafeInteger : function(e) {
|
|
3013
3056
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3014
|
-
},
|
|
3057
|
+
}, et = !0;
|
|
3015
3058
|
try {
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3059
|
+
var li = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3060
|
+
et = ((De = li.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3018
3061
|
} catch {
|
|
3019
|
-
|
|
3062
|
+
et = !1;
|
|
3020
3063
|
}
|
|
3021
|
-
var
|
|
3064
|
+
var Pt = ti ? (
|
|
3022
3065
|
// Native
|
|
3023
3066
|
function(t, r, n) {
|
|
3024
3067
|
return t.startsWith(r, n);
|
|
@@ -3028,7 +3071,7 @@ var wt = Jn ? (
|
|
|
3028
3071
|
function(t, r, n) {
|
|
3029
3072
|
return t.slice(n, n + r.length) === r;
|
|
3030
3073
|
}
|
|
3031
|
-
),
|
|
3074
|
+
), tt = ri ? String.fromCodePoint : (
|
|
3032
3075
|
// IE11
|
|
3033
3076
|
function() {
|
|
3034
3077
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3040,9 +3083,9 @@ var wt = Jn ? (
|
|
|
3040
3083
|
}
|
|
3041
3084
|
return n;
|
|
3042
3085
|
}
|
|
3043
|
-
),
|
|
3086
|
+
), At = (
|
|
3044
3087
|
// native
|
|
3045
|
-
|
|
3088
|
+
ni ? Object.fromEntries : (
|
|
3046
3089
|
// Ponyfill
|
|
3047
3090
|
function(t) {
|
|
3048
3091
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3052,7 +3095,7 @@ var wt = Jn ? (
|
|
|
3052
3095
|
return r;
|
|
3053
3096
|
}
|
|
3054
3097
|
)
|
|
3055
|
-
),
|
|
3098
|
+
), dr = ii ? (
|
|
3056
3099
|
// Native
|
|
3057
3100
|
function(t, r) {
|
|
3058
3101
|
return t.codePointAt(r);
|
|
@@ -3066,7 +3109,7 @@ var wt = Jn ? (
|
|
|
3066
3109
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3067
3110
|
}
|
|
3068
3111
|
}
|
|
3069
|
-
),
|
|
3112
|
+
), hi = oi ? (
|
|
3070
3113
|
// Native
|
|
3071
3114
|
function(t) {
|
|
3072
3115
|
return t.trimStart();
|
|
@@ -3074,9 +3117,9 @@ var wt = Jn ? (
|
|
|
3074
3117
|
) : (
|
|
3075
3118
|
// Ponyfill
|
|
3076
3119
|
function(t) {
|
|
3077
|
-
return t.replace(
|
|
3120
|
+
return t.replace(Kn, "");
|
|
3078
3121
|
}
|
|
3079
|
-
),
|
|
3122
|
+
), ci = si ? (
|
|
3080
3123
|
// Native
|
|
3081
3124
|
function(t) {
|
|
3082
3125
|
return t.trimEnd();
|
|
@@ -3084,32 +3127,32 @@ var wt = Jn ? (
|
|
|
3084
3127
|
) : (
|
|
3085
3128
|
// Ponyfill
|
|
3086
3129
|
function(t) {
|
|
3087
|
-
return t.replace(
|
|
3130
|
+
return t.replace(ei, "");
|
|
3088
3131
|
}
|
|
3089
3132
|
);
|
|
3090
|
-
function
|
|
3133
|
+
function br(e, t) {
|
|
3091
3134
|
return new RegExp(e, t);
|
|
3092
3135
|
}
|
|
3093
|
-
var
|
|
3094
|
-
if (
|
|
3095
|
-
var
|
|
3096
|
-
|
|
3136
|
+
var rt;
|
|
3137
|
+
if (et) {
|
|
3138
|
+
var Ot = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3139
|
+
rt = function(t, r) {
|
|
3097
3140
|
var n;
|
|
3098
|
-
|
|
3099
|
-
var i =
|
|
3141
|
+
Ot.lastIndex = r;
|
|
3142
|
+
var i = Ot.exec(t);
|
|
3100
3143
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3101
3144
|
};
|
|
3102
3145
|
} else
|
|
3103
|
-
|
|
3146
|
+
rt = function(t, r) {
|
|
3104
3147
|
for (var n = []; ; ) {
|
|
3105
|
-
var i =
|
|
3106
|
-
if (i === void 0 ||
|
|
3148
|
+
var i = dr(t, r);
|
|
3149
|
+
if (i === void 0 || gr(i) || di(i))
|
|
3107
3150
|
break;
|
|
3108
3151
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3109
3152
|
}
|
|
3110
|
-
return
|
|
3153
|
+
return tt.apply(void 0, n);
|
|
3111
3154
|
};
|
|
3112
|
-
var
|
|
3155
|
+
var fi = (
|
|
3113
3156
|
/** @class */
|
|
3114
3157
|
function() {
|
|
3115
3158
|
function e(t, r) {
|
|
@@ -3133,14 +3176,14 @@ var ai = (
|
|
|
3133
3176
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3134
3177
|
var a = this.clonePosition();
|
|
3135
3178
|
this.bump(), i.push({
|
|
3136
|
-
type:
|
|
3179
|
+
type: S.pound,
|
|
3137
3180
|
location: E(a, this.clonePosition())
|
|
3138
3181
|
});
|
|
3139
3182
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3140
3183
|
if (n)
|
|
3141
3184
|
break;
|
|
3142
3185
|
return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3143
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3186
|
+
} else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
|
3144
3187
|
var s = this.parseTag(t, r);
|
|
3145
3188
|
if (s.err)
|
|
3146
3189
|
return s;
|
|
@@ -3161,7 +3204,7 @@ var ai = (
|
|
|
3161
3204
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3162
3205
|
return {
|
|
3163
3206
|
val: {
|
|
3164
|
-
type:
|
|
3207
|
+
type: S.literal,
|
|
3165
3208
|
value: "<".concat(i, "/>"),
|
|
3166
3209
|
location: E(n, this.clonePosition())
|
|
3167
3210
|
},
|
|
@@ -3173,12 +3216,12 @@ var ai = (
|
|
|
3173
3216
|
return o;
|
|
3174
3217
|
var s = o.val, a = this.clonePosition();
|
|
3175
3218
|
if (this.bumpIf("</")) {
|
|
3176
|
-
if (this.isEOF() || !
|
|
3219
|
+
if (this.isEOF() || !nt(this.char()))
|
|
3177
3220
|
return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
|
|
3178
3221
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3179
3222
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3180
3223
|
val: {
|
|
3181
|
-
type:
|
|
3224
|
+
type: S.tag,
|
|
3182
3225
|
value: i,
|
|
3183
3226
|
children: s,
|
|
3184
3227
|
location: E(n, this.clonePosition())
|
|
@@ -3191,7 +3234,7 @@ var ai = (
|
|
|
3191
3234
|
return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
|
|
3192
3235
|
}, e.prototype.parseTagName = function() {
|
|
3193
3236
|
var t = this.offset();
|
|
3194
|
-
for (this.bump(); !this.isEOF() &&
|
|
3237
|
+
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
|
3195
3238
|
this.bump();
|
|
3196
3239
|
return this.message.slice(t, this.offset());
|
|
3197
3240
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3215,12 +3258,12 @@ var ai = (
|
|
|
3215
3258
|
}
|
|
3216
3259
|
var l = E(n, this.clonePosition());
|
|
3217
3260
|
return {
|
|
3218
|
-
val: { type:
|
|
3261
|
+
val: { type: S.literal, value: i, location: l },
|
|
3219
3262
|
err: null
|
|
3220
3263
|
};
|
|
3221
3264
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3222
3265
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3223
|
-
!
|
|
3266
|
+
!pi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3224
3267
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3225
3268
|
if (this.isEOF() || this.char() !== 39)
|
|
3226
3269
|
return null;
|
|
@@ -3254,12 +3297,12 @@ var ai = (
|
|
|
3254
3297
|
r.push(n);
|
|
3255
3298
|
this.bump();
|
|
3256
3299
|
}
|
|
3257
|
-
return
|
|
3300
|
+
return tt.apply(void 0, r);
|
|
3258
3301
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3259
3302
|
if (this.isEOF())
|
|
3260
3303
|
return null;
|
|
3261
3304
|
var n = this.char();
|
|
3262
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3305
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
|
|
3263
3306
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3264
3307
|
var n = this.clonePosition();
|
|
3265
3308
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3275,7 +3318,7 @@ var ai = (
|
|
|
3275
3318
|
case 125:
|
|
3276
3319
|
return this.bump(), {
|
|
3277
3320
|
val: {
|
|
3278
|
-
type:
|
|
3321
|
+
type: S.argument,
|
|
3279
3322
|
// value does not include the opening and closing braces.
|
|
3280
3323
|
value: i,
|
|
3281
3324
|
location: E(n, this.clonePosition())
|
|
@@ -3288,7 +3331,7 @@ var ai = (
|
|
|
3288
3331
|
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3289
3332
|
}
|
|
3290
3333
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3291
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3334
|
+
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
|
3292
3335
|
this.bumpTo(i);
|
|
3293
3336
|
var o = this.clonePosition(), s = E(t, o);
|
|
3294
3337
|
return { value: n, location: s };
|
|
@@ -3307,7 +3350,7 @@ var ai = (
|
|
|
3307
3350
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3308
3351
|
if (f.err)
|
|
3309
3352
|
return f;
|
|
3310
|
-
var c =
|
|
3353
|
+
var c = ci(f.val);
|
|
3311
3354
|
if (c.length === 0)
|
|
3312
3355
|
return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3313
3356
|
var d = E(h, this.clonePosition());
|
|
@@ -3317,25 +3360,25 @@ var ai = (
|
|
|
3317
3360
|
if (b.err)
|
|
3318
3361
|
return b;
|
|
3319
3362
|
var g = E(i, this.clonePosition());
|
|
3320
|
-
if (u &&
|
|
3321
|
-
var
|
|
3363
|
+
if (u && Pt(u?.style, "::", 0)) {
|
|
3364
|
+
var T = hi(u.style.slice(2));
|
|
3322
3365
|
if (a === "number") {
|
|
3323
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3366
|
+
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3324
3367
|
return f.err ? f : {
|
|
3325
|
-
val: { type:
|
|
3368
|
+
val: { type: S.number, value: n, location: g, style: f.val },
|
|
3326
3369
|
err: null
|
|
3327
3370
|
};
|
|
3328
3371
|
} else {
|
|
3329
|
-
if (
|
|
3372
|
+
if (T.length === 0)
|
|
3330
3373
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3331
|
-
var A =
|
|
3332
|
-
this.locale && (A =
|
|
3374
|
+
var A = T;
|
|
3375
|
+
this.locale && (A = qn(T, this.locale));
|
|
3333
3376
|
var c = {
|
|
3334
|
-
type:
|
|
3377
|
+
type: re.dateTime,
|
|
3335
3378
|
pattern: A,
|
|
3336
3379
|
location: u.styleLocation,
|
|
3337
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3338
|
-
}, _ = a === "date" ?
|
|
3380
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(A) : {}
|
|
3381
|
+
}, _ = a === "date" ? S.date : S.time;
|
|
3339
3382
|
return {
|
|
3340
3383
|
val: { type: _, value: n, location: g, style: c },
|
|
3341
3384
|
err: null
|
|
@@ -3344,7 +3387,7 @@ var ai = (
|
|
|
3344
3387
|
}
|
|
3345
3388
|
return {
|
|
3346
3389
|
val: {
|
|
3347
|
-
type: a === "number" ?
|
|
3390
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3348
3391
|
value: n,
|
|
3349
3392
|
location: g,
|
|
3350
3393
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3355,21 +3398,21 @@ var ai = (
|
|
|
3355
3398
|
case "plural":
|
|
3356
3399
|
case "selectordinal":
|
|
3357
3400
|
case "select": {
|
|
3358
|
-
var
|
|
3401
|
+
var m = this.clonePosition();
|
|
3359
3402
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3360
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3403
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(m, Se({}, m)));
|
|
3361
3404
|
this.bumpSpace();
|
|
3362
|
-
var
|
|
3363
|
-
if (a !== "select" &&
|
|
3405
|
+
var H = this.parseIdentifierIfPossible(), w = 0;
|
|
3406
|
+
if (a !== "select" && H.value === "offset") {
|
|
3364
3407
|
if (!this.bumpIf(":"))
|
|
3365
3408
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3366
3409
|
this.bumpSpace();
|
|
3367
3410
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3368
3411
|
if (f.err)
|
|
3369
3412
|
return f;
|
|
3370
|
-
this.bumpSpace(),
|
|
3413
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), w = f.val;
|
|
3371
3414
|
}
|
|
3372
|
-
var I = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3415
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3373
3416
|
if (I.err)
|
|
3374
3417
|
return I;
|
|
3375
3418
|
var b = this.tryParseArgumentClose(i);
|
|
@@ -3378,17 +3421,17 @@ var ai = (
|
|
|
3378
3421
|
var M = E(i, this.clonePosition());
|
|
3379
3422
|
return a === "select" ? {
|
|
3380
3423
|
val: {
|
|
3381
|
-
type:
|
|
3424
|
+
type: S.select,
|
|
3382
3425
|
value: n,
|
|
3383
|
-
options:
|
|
3426
|
+
options: At(I.val),
|
|
3384
3427
|
location: M
|
|
3385
3428
|
},
|
|
3386
3429
|
err: null
|
|
3387
3430
|
} : {
|
|
3388
3431
|
val: {
|
|
3389
|
-
type:
|
|
3432
|
+
type: S.plural,
|
|
3390
3433
|
value: n,
|
|
3391
|
-
options:
|
|
3434
|
+
options: At(I.val),
|
|
3392
3435
|
offset: w,
|
|
3393
3436
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3394
3437
|
location: M
|
|
@@ -3439,16 +3482,16 @@ var ai = (
|
|
|
3439
3482
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3440
3483
|
var n = [];
|
|
3441
3484
|
try {
|
|
3442
|
-
n =
|
|
3485
|
+
n = Wn(t);
|
|
3443
3486
|
} catch {
|
|
3444
3487
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3445
3488
|
}
|
|
3446
3489
|
return {
|
|
3447
3490
|
val: {
|
|
3448
|
-
type:
|
|
3491
|
+
type: re.number,
|
|
3449
3492
|
tokens: n,
|
|
3450
3493
|
location: r,
|
|
3451
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3494
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
|
|
3452
3495
|
},
|
|
3453
3496
|
err: null
|
|
3454
3497
|
};
|
|
@@ -3496,7 +3539,7 @@ var ai = (
|
|
|
3496
3539
|
break;
|
|
3497
3540
|
}
|
|
3498
3541
|
var l = E(i, this.clonePosition());
|
|
3499
|
-
return o ? (s *= n,
|
|
3542
|
+
return o ? (s *= n, ui(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3500
3543
|
}, e.prototype.offset = function() {
|
|
3501
3544
|
return this.position.offset;
|
|
3502
3545
|
}, e.prototype.isEOF = function() {
|
|
@@ -3511,7 +3554,7 @@ var ai = (
|
|
|
3511
3554
|
var t = this.position.offset;
|
|
3512
3555
|
if (t >= this.message.length)
|
|
3513
3556
|
throw Error("out of bound");
|
|
3514
|
-
var r =
|
|
3557
|
+
var r = dr(this.message, t);
|
|
3515
3558
|
if (r === void 0)
|
|
3516
3559
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3517
3560
|
return r;
|
|
@@ -3530,7 +3573,7 @@ var ai = (
|
|
|
3530
3573
|
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);
|
|
3531
3574
|
}
|
|
3532
3575
|
}, e.prototype.bumpIf = function(t) {
|
|
3533
|
-
if (
|
|
3576
|
+
if (Pt(this.message, t, this.offset())) {
|
|
3534
3577
|
for (var r = 0; r < t.length; r++)
|
|
3535
3578
|
this.bump();
|
|
3536
3579
|
return !0;
|
|
@@ -3552,7 +3595,7 @@ var ai = (
|
|
|
3552
3595
|
break;
|
|
3553
3596
|
}
|
|
3554
3597
|
}, e.prototype.bumpSpace = function() {
|
|
3555
|
-
for (; !this.isEOF() &&
|
|
3598
|
+
for (; !this.isEOF() && gr(this.char()); )
|
|
3556
3599
|
this.bump();
|
|
3557
3600
|
}, e.prototype.peek = function() {
|
|
3558
3601
|
if (this.isEOF())
|
|
@@ -3562,47 +3605,47 @@ var ai = (
|
|
|
3562
3605
|
}, e;
|
|
3563
3606
|
}()
|
|
3564
3607
|
);
|
|
3565
|
-
function
|
|
3608
|
+
function nt(e) {
|
|
3566
3609
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3567
3610
|
}
|
|
3568
|
-
function
|
|
3569
|
-
return
|
|
3611
|
+
function pi(e) {
|
|
3612
|
+
return nt(e) || e === 47;
|
|
3570
3613
|
}
|
|
3571
|
-
function
|
|
3614
|
+
function mi(e) {
|
|
3572
3615
|
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;
|
|
3573
3616
|
}
|
|
3574
|
-
function
|
|
3617
|
+
function gr(e) {
|
|
3575
3618
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3576
3619
|
}
|
|
3577
|
-
function
|
|
3620
|
+
function di(e) {
|
|
3578
3621
|
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;
|
|
3579
3622
|
}
|
|
3580
|
-
function
|
|
3623
|
+
function it(e) {
|
|
3581
3624
|
e.forEach(function(t) {
|
|
3582
|
-
if (delete t.location,
|
|
3625
|
+
if (delete t.location, ar(t) || ur(t))
|
|
3583
3626
|
for (var r in t.options)
|
|
3584
|
-
delete t.options[r].location,
|
|
3627
|
+
delete t.options[r].location, it(t.options[r].value);
|
|
3585
3628
|
else
|
|
3586
|
-
|
|
3629
|
+
ir(t) && hr(t.style) || (or(t) || sr(t)) && Ke(t.style) ? delete t.style.location : lr(t) && it(t.children);
|
|
3587
3630
|
});
|
|
3588
3631
|
}
|
|
3589
|
-
function
|
|
3590
|
-
t === void 0 && (t = {}), t =
|
|
3591
|
-
var r = new
|
|
3632
|
+
function bi(e, t) {
|
|
3633
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3634
|
+
var r = new fi(e, t).parse();
|
|
3592
3635
|
if (r.err) {
|
|
3593
3636
|
var n = SyntaxError(y[r.err.kind]);
|
|
3594
3637
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3595
3638
|
}
|
|
3596
|
-
return t?.captureLocation ||
|
|
3639
|
+
return t?.captureLocation || it(r.val), r.val;
|
|
3597
3640
|
}
|
|
3598
|
-
var
|
|
3641
|
+
var ne;
|
|
3599
3642
|
(function(e) {
|
|
3600
3643
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3601
|
-
})(
|
|
3602
|
-
var
|
|
3644
|
+
})(ne || (ne = {}));
|
|
3645
|
+
var Ce = (
|
|
3603
3646
|
/** @class */
|
|
3604
3647
|
function(e) {
|
|
3605
|
-
|
|
3648
|
+
Ne(t, e);
|
|
3606
3649
|
function t(r, n, i) {
|
|
3607
3650
|
var o = e.call(this, r) || this;
|
|
3608
3651
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3611,48 +3654,48 @@ var Oe = (
|
|
|
3611
3654
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3612
3655
|
}, t;
|
|
3613
3656
|
}(Error)
|
|
3614
|
-
),
|
|
3657
|
+
), Nt = (
|
|
3615
3658
|
/** @class */
|
|
3616
3659
|
function(e) {
|
|
3617
|
-
|
|
3660
|
+
Ne(t, e);
|
|
3618
3661
|
function t(r, n, i, o) {
|
|
3619
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3662
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3620
3663
|
}
|
|
3621
3664
|
return t;
|
|
3622
|
-
}(
|
|
3623
|
-
),
|
|
3665
|
+
}(Ce)
|
|
3666
|
+
), gi = (
|
|
3624
3667
|
/** @class */
|
|
3625
3668
|
function(e) {
|
|
3626
|
-
|
|
3669
|
+
Ne(t, e);
|
|
3627
3670
|
function t(r, n, i) {
|
|
3628
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3671
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3629
3672
|
}
|
|
3630
3673
|
return t;
|
|
3631
|
-
}(
|
|
3632
|
-
),
|
|
3674
|
+
}(Ce)
|
|
3675
|
+
), vi = (
|
|
3633
3676
|
/** @class */
|
|
3634
3677
|
function(e) {
|
|
3635
|
-
|
|
3678
|
+
Ne(t, e);
|
|
3636
3679
|
function t(r, n) {
|
|
3637
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3680
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3638
3681
|
}
|
|
3639
3682
|
return t;
|
|
3640
|
-
}(
|
|
3683
|
+
}(Ce)
|
|
3641
3684
|
), C;
|
|
3642
3685
|
(function(e) {
|
|
3643
3686
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3644
3687
|
})(C || (C = {}));
|
|
3645
|
-
function
|
|
3688
|
+
function yi(e) {
|
|
3646
3689
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3647
3690
|
var n = t[t.length - 1];
|
|
3648
3691
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3649
3692
|
}, []);
|
|
3650
3693
|
}
|
|
3651
|
-
function
|
|
3694
|
+
function _i(e) {
|
|
3652
3695
|
return typeof e == "function";
|
|
3653
3696
|
}
|
|
3654
3697
|
function Ee(e, t, r, n, i, o, s) {
|
|
3655
|
-
if (e.length === 1 &&
|
|
3698
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3656
3699
|
return [
|
|
3657
3700
|
{
|
|
3658
3701
|
type: C.literal,
|
|
@@ -3661,14 +3704,14 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3661
3704
|
];
|
|
3662
3705
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3663
3706
|
var h = u[l];
|
|
3664
|
-
if (
|
|
3707
|
+
if (Tt(h)) {
|
|
3665
3708
|
a.push({
|
|
3666
3709
|
type: C.literal,
|
|
3667
3710
|
value: h.value
|
|
3668
3711
|
});
|
|
3669
3712
|
continue;
|
|
3670
3713
|
}
|
|
3671
|
-
if (
|
|
3714
|
+
if (jn(h)) {
|
|
3672
3715
|
typeof o == "number" && a.push({
|
|
3673
3716
|
type: C.literal,
|
|
3674
3717
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3677,44 +3720,44 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3677
3720
|
}
|
|
3678
3721
|
var f = h.value;
|
|
3679
3722
|
if (!(i && f in i))
|
|
3680
|
-
throw new
|
|
3723
|
+
throw new vi(f, s);
|
|
3681
3724
|
var c = i[f];
|
|
3682
|
-
if (
|
|
3725
|
+
if (Fn(h)) {
|
|
3683
3726
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3684
3727
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3685
3728
|
value: c
|
|
3686
3729
|
});
|
|
3687
3730
|
continue;
|
|
3688
3731
|
}
|
|
3689
|
-
if (
|
|
3690
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3732
|
+
if (or(h)) {
|
|
3733
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3691
3734
|
a.push({
|
|
3692
3735
|
type: C.literal,
|
|
3693
3736
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3694
3737
|
});
|
|
3695
3738
|
continue;
|
|
3696
3739
|
}
|
|
3697
|
-
if (
|
|
3698
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3740
|
+
if (sr(h)) {
|
|
3741
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3699
3742
|
a.push({
|
|
3700
3743
|
type: C.literal,
|
|
3701
3744
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3702
3745
|
});
|
|
3703
3746
|
continue;
|
|
3704
3747
|
}
|
|
3705
|
-
if (
|
|
3706
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3748
|
+
if (ir(h)) {
|
|
3749
|
+
var d = typeof h.style == "string" ? n.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
|
|
3707
3750
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3708
3751
|
type: C.literal,
|
|
3709
3752
|
value: r.getNumberFormat(t, d).format(c)
|
|
3710
3753
|
});
|
|
3711
3754
|
continue;
|
|
3712
3755
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var b = h.children, g = h.value,
|
|
3715
|
-
if (!
|
|
3716
|
-
throw new
|
|
3717
|
-
var A = Ee(b, t, r, n, i, o), _ =
|
|
3756
|
+
if (lr(h)) {
|
|
3757
|
+
var b = h.children, g = h.value, T = i[g];
|
|
3758
|
+
if (!_i(T))
|
|
3759
|
+
throw new gi(g, "function", s);
|
|
3760
|
+
var A = Ee(b, t, r, n, i, o), _ = T(A.map(function(w) {
|
|
3718
3761
|
return w.value;
|
|
3719
3762
|
}));
|
|
3720
3763
|
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(w) {
|
|
@@ -3724,42 +3767,42 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3724
3767
|
};
|
|
3725
3768
|
}));
|
|
3726
3769
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var
|
|
3729
|
-
if (!
|
|
3730
|
-
throw new
|
|
3731
|
-
a.push.apply(a, Ee(
|
|
3770
|
+
if (ar(h)) {
|
|
3771
|
+
var m = h.options[c] || h.options.other;
|
|
3772
|
+
if (!m)
|
|
3773
|
+
throw new Nt(h.value, c, Object.keys(h.options), s);
|
|
3774
|
+
a.push.apply(a, Ee(m.value, t, r, n, i));
|
|
3732
3775
|
continue;
|
|
3733
3776
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var
|
|
3736
|
-
if (!
|
|
3777
|
+
if (ur(h)) {
|
|
3778
|
+
var m = h.options["=".concat(c)];
|
|
3779
|
+
if (!m) {
|
|
3737
3780
|
if (!Intl.PluralRules)
|
|
3738
|
-
throw new
|
|
3781
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3739
3782
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3740
|
-
`,
|
|
3741
|
-
var
|
|
3742
|
-
|
|
3783
|
+
`, ne.MISSING_INTL_API, s);
|
|
3784
|
+
var H = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3785
|
+
m = h.options[H] || h.options.other;
|
|
3743
3786
|
}
|
|
3744
|
-
if (!
|
|
3745
|
-
throw new
|
|
3746
|
-
a.push.apply(a, Ee(
|
|
3787
|
+
if (!m)
|
|
3788
|
+
throw new Nt(h.value, c, Object.keys(h.options), s);
|
|
3789
|
+
a.push.apply(a, Ee(m.value, t, r, n, i, c - (h.offset || 0)));
|
|
3747
3790
|
continue;
|
|
3748
3791
|
}
|
|
3749
3792
|
}
|
|
3750
|
-
return
|
|
3793
|
+
return yi(a);
|
|
3751
3794
|
}
|
|
3752
|
-
function
|
|
3753
|
-
return t ?
|
|
3754
|
-
return r[n] =
|
|
3795
|
+
function Ei(e, t) {
|
|
3796
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3797
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3755
3798
|
}, {})) : e;
|
|
3756
3799
|
}
|
|
3757
|
-
function
|
|
3800
|
+
function xi(e, t) {
|
|
3758
3801
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3759
|
-
return r[n] =
|
|
3760
|
-
},
|
|
3802
|
+
return r[n] = Ei(e[n], t[n]), r;
|
|
3803
|
+
}, U({}, e)) : e;
|
|
3761
3804
|
}
|
|
3762
|
-
function
|
|
3805
|
+
function Fe(e) {
|
|
3763
3806
|
return {
|
|
3764
3807
|
create: function() {
|
|
3765
3808
|
return {
|
|
@@ -3773,39 +3816,39 @@ function $e(e) {
|
|
|
3773
3816
|
}
|
|
3774
3817
|
};
|
|
3775
3818
|
}
|
|
3776
|
-
function
|
|
3819
|
+
function wi(e) {
|
|
3777
3820
|
return e === void 0 && (e = {
|
|
3778
3821
|
number: {},
|
|
3779
3822
|
dateTime: {},
|
|
3780
3823
|
pluralRules: {}
|
|
3781
3824
|
}), {
|
|
3782
|
-
getNumberFormat:
|
|
3825
|
+
getNumberFormat: $e(function() {
|
|
3783
3826
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3784
3827
|
r[n] = arguments[n];
|
|
3785
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3828
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3786
3829
|
}, {
|
|
3787
|
-
cache:
|
|
3788
|
-
strategy:
|
|
3830
|
+
cache: Fe(e.number),
|
|
3831
|
+
strategy: Ue.variadic
|
|
3789
3832
|
}),
|
|
3790
|
-
getDateTimeFormat:
|
|
3833
|
+
getDateTimeFormat: $e(function() {
|
|
3791
3834
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3792
3835
|
r[n] = arguments[n];
|
|
3793
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3836
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3794
3837
|
}, {
|
|
3795
|
-
cache:
|
|
3796
|
-
strategy:
|
|
3838
|
+
cache: Fe(e.dateTime),
|
|
3839
|
+
strategy: Ue.variadic
|
|
3797
3840
|
}),
|
|
3798
|
-
getPluralRules:
|
|
3841
|
+
getPluralRules: $e(function() {
|
|
3799
3842
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3800
3843
|
r[n] = arguments[n];
|
|
3801
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3844
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3802
3845
|
}, {
|
|
3803
|
-
cache:
|
|
3804
|
-
strategy:
|
|
3846
|
+
cache: Fe(e.pluralRules),
|
|
3847
|
+
strategy: Ue.variadic
|
|
3805
3848
|
})
|
|
3806
3849
|
};
|
|
3807
3850
|
}
|
|
3808
|
-
var
|
|
3851
|
+
var Ti = (
|
|
3809
3852
|
/** @class */
|
|
3810
3853
|
function() {
|
|
3811
3854
|
function e(t, r, n, i) {
|
|
@@ -3837,13 +3880,13 @@ var yi = (
|
|
|
3837
3880
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3838
3881
|
var s = i || {};
|
|
3839
3882
|
s.formatters;
|
|
3840
|
-
var a =
|
|
3841
|
-
this.ast = e.__parse(t,
|
|
3883
|
+
var a = In(s, ["formatters"]);
|
|
3884
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3842
3885
|
} else
|
|
3843
3886
|
this.ast = t;
|
|
3844
3887
|
if (!Array.isArray(this.ast))
|
|
3845
3888
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3846
|
-
this.formats =
|
|
3889
|
+
this.formats = xi(e.formats, n), this.formatters = i && i.formatters || wi(this.formatterCache);
|
|
3847
3890
|
}
|
|
3848
3891
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3849
3892
|
get: function() {
|
|
@@ -3856,7 +3899,7 @@ var yi = (
|
|
|
3856
3899
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3857
3900
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3858
3901
|
}
|
|
3859
|
-
}, e.__parse =
|
|
3902
|
+
}, e.__parse = bi, e.formats = {
|
|
3860
3903
|
number: {
|
|
3861
3904
|
integer: {
|
|
3862
3905
|
maximumFractionDigits: 0
|
|
@@ -3917,7 +3960,7 @@ var yi = (
|
|
|
3917
3960
|
}, e;
|
|
3918
3961
|
}()
|
|
3919
3962
|
);
|
|
3920
|
-
function
|
|
3963
|
+
function Si(e, t) {
|
|
3921
3964
|
if (t == null)
|
|
3922
3965
|
return;
|
|
3923
3966
|
if (t in e)
|
|
@@ -3938,92 +3981,92 @@ function _i(e, t) {
|
|
|
3938
3981
|
n = void 0;
|
|
3939
3982
|
return n;
|
|
3940
3983
|
}
|
|
3941
|
-
const V = {},
|
|
3984
|
+
const V = {}, Hi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), vr = (e, t) => {
|
|
3942
3985
|
if (t == null)
|
|
3943
3986
|
return;
|
|
3944
3987
|
if (t in V && e in V[t])
|
|
3945
3988
|
return V[t][e];
|
|
3946
|
-
const r =
|
|
3989
|
+
const r = Ie(t);
|
|
3947
3990
|
for (let n = 0; n < r.length; n++) {
|
|
3948
|
-
const i = r[n], o =
|
|
3991
|
+
const i = r[n], o = Pi(i, e);
|
|
3949
3992
|
if (o)
|
|
3950
|
-
return
|
|
3993
|
+
return Hi(e, t, o);
|
|
3951
3994
|
}
|
|
3952
3995
|
};
|
|
3953
|
-
let
|
|
3954
|
-
const
|
|
3955
|
-
function
|
|
3956
|
-
return
|
|
3996
|
+
let ut;
|
|
3997
|
+
const ae = Oe({});
|
|
3998
|
+
function Bi(e) {
|
|
3999
|
+
return ut[e] || null;
|
|
3957
4000
|
}
|
|
3958
|
-
function
|
|
3959
|
-
return e in
|
|
4001
|
+
function yr(e) {
|
|
4002
|
+
return e in ut;
|
|
3960
4003
|
}
|
|
3961
|
-
function
|
|
3962
|
-
if (!
|
|
4004
|
+
function Pi(e, t) {
|
|
4005
|
+
if (!yr(e))
|
|
3963
4006
|
return null;
|
|
3964
|
-
const r =
|
|
3965
|
-
return
|
|
4007
|
+
const r = Bi(e);
|
|
4008
|
+
return Si(r, t);
|
|
3966
4009
|
}
|
|
3967
|
-
function
|
|
4010
|
+
function Ai(e) {
|
|
3968
4011
|
if (e == null)
|
|
3969
4012
|
return;
|
|
3970
|
-
const t =
|
|
4013
|
+
const t = Ie(e);
|
|
3971
4014
|
for (let r = 0; r < t.length; r++) {
|
|
3972
4015
|
const n = t[r];
|
|
3973
|
-
if (
|
|
4016
|
+
if (yr(n))
|
|
3974
4017
|
return n;
|
|
3975
4018
|
}
|
|
3976
4019
|
}
|
|
3977
|
-
function
|
|
3978
|
-
delete V[e],
|
|
4020
|
+
function _r(e, ...t) {
|
|
4021
|
+
delete V[e], ae.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
3979
4022
|
}
|
|
3980
|
-
|
|
3981
|
-
[
|
|
4023
|
+
se(
|
|
4024
|
+
[ae],
|
|
3982
4025
|
([e]) => Object.keys(e)
|
|
3983
4026
|
);
|
|
3984
|
-
|
|
4027
|
+
ae.subscribe((e) => ut = e);
|
|
3985
4028
|
const xe = {};
|
|
3986
|
-
function
|
|
4029
|
+
function Oi(e, t) {
|
|
3987
4030
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3988
4031
|
}
|
|
3989
|
-
function
|
|
4032
|
+
function Er(e) {
|
|
3990
4033
|
return xe[e];
|
|
3991
4034
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
3994
|
-
const r =
|
|
4035
|
+
function Ni(e) {
|
|
4036
|
+
return Ie(e).map((t) => {
|
|
4037
|
+
const r = Er(t);
|
|
3995
4038
|
return [t, r ? [...r] : []];
|
|
3996
4039
|
}).filter(([, t]) => t.length > 0);
|
|
3997
4040
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return e == null ? !1 :
|
|
4041
|
+
function ot(e) {
|
|
4042
|
+
return e == null ? !1 : Ie(e).some(
|
|
4000
4043
|
(t) => {
|
|
4001
4044
|
var r;
|
|
4002
|
-
return (r =
|
|
4045
|
+
return (r = Er(t)) == null ? void 0 : r.size;
|
|
4003
4046
|
}
|
|
4004
4047
|
);
|
|
4005
4048
|
}
|
|
4006
|
-
function
|
|
4049
|
+
function Ci(e, t) {
|
|
4007
4050
|
return Promise.all(
|
|
4008
|
-
t.map((n) => (
|
|
4009
|
-
).then((n) =>
|
|
4010
|
-
}
|
|
4011
|
-
const
|
|
4012
|
-
function
|
|
4013
|
-
if (!
|
|
4014
|
-
return e in
|
|
4015
|
-
const t =
|
|
4016
|
-
return
|
|
4051
|
+
t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
|
|
4052
|
+
).then((n) => _r(e, ...n));
|
|
4053
|
+
}
|
|
4054
|
+
const le = {};
|
|
4055
|
+
function xr(e) {
|
|
4056
|
+
if (!ot(e))
|
|
4057
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4058
|
+
const t = Ni(e);
|
|
4059
|
+
return le[e] = Promise.all(
|
|
4017
4060
|
t.map(
|
|
4018
|
-
([r, n]) =>
|
|
4061
|
+
([r, n]) => Ci(r, n)
|
|
4019
4062
|
)
|
|
4020
4063
|
).then(() => {
|
|
4021
|
-
if (
|
|
4022
|
-
return
|
|
4023
|
-
delete
|
|
4024
|
-
}),
|
|
4064
|
+
if (ot(e))
|
|
4065
|
+
return xr(e);
|
|
4066
|
+
delete le[e];
|
|
4067
|
+
}), le[e];
|
|
4025
4068
|
}
|
|
4026
|
-
const
|
|
4069
|
+
const Ii = {
|
|
4027
4070
|
number: {
|
|
4028
4071
|
scientific: { notation: "scientific" },
|
|
4029
4072
|
engineering: { notation: "engineering" },
|
|
@@ -4052,135 +4095,135 @@ const Pi = {
|
|
|
4052
4095
|
timeZoneName: "short"
|
|
4053
4096
|
}
|
|
4054
4097
|
}
|
|
4055
|
-
},
|
|
4098
|
+
}, Li = {
|
|
4056
4099
|
fallbackLocale: null,
|
|
4057
4100
|
loadingDelay: 200,
|
|
4058
|
-
formats:
|
|
4101
|
+
formats: Ii,
|
|
4059
4102
|
warnOnMissingMessages: !0,
|
|
4060
4103
|
handleMissingMessage: void 0,
|
|
4061
4104
|
ignoreTag: !0
|
|
4062
|
-
},
|
|
4063
|
-
function
|
|
4064
|
-
return
|
|
4105
|
+
}, Mi = Li;
|
|
4106
|
+
function ie() {
|
|
4107
|
+
return Mi;
|
|
4065
4108
|
}
|
|
4066
|
-
const
|
|
4067
|
-
var
|
|
4109
|
+
const je = Oe(!1);
|
|
4110
|
+
var Ri = Object.defineProperty, Gi = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fi = (e, t) => {
|
|
4068
4111
|
for (var r in t || (t = {}))
|
|
4069
|
-
|
|
4070
|
-
if (
|
|
4071
|
-
for (var r of
|
|
4072
|
-
|
|
4112
|
+
Ui.call(t, r) && It(e, r, t[r]);
|
|
4113
|
+
if (Ct)
|
|
4114
|
+
for (var r of Ct(t))
|
|
4115
|
+
Di.call(t, r) && It(e, r, t[r]);
|
|
4073
4116
|
return e;
|
|
4074
|
-
},
|
|
4075
|
-
let
|
|
4076
|
-
const
|
|
4077
|
-
function
|
|
4117
|
+
}, ji = (e, t) => Gi(e, $i(t));
|
|
4118
|
+
let st;
|
|
4119
|
+
const He = Oe(null);
|
|
4120
|
+
function Lt(e) {
|
|
4078
4121
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4079
4122
|
}
|
|
4080
|
-
function
|
|
4081
|
-
const r =
|
|
4082
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4123
|
+
function Ie(e, t = ie().fallbackLocale) {
|
|
4124
|
+
const r = Lt(e);
|
|
4125
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Lt(t)])] : r;
|
|
4083
4126
|
}
|
|
4084
4127
|
function J() {
|
|
4085
|
-
return
|
|
4128
|
+
return st ?? void 0;
|
|
4086
4129
|
}
|
|
4087
|
-
|
|
4088
|
-
|
|
4130
|
+
He.subscribe((e) => {
|
|
4131
|
+
st = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4089
4132
|
});
|
|
4090
|
-
const
|
|
4091
|
-
if (e &&
|
|
4092
|
-
const { loadingDelay: t } =
|
|
4133
|
+
const ki = (e) => {
|
|
4134
|
+
if (e && Ai(e) && ot(e)) {
|
|
4135
|
+
const { loadingDelay: t } = ie();
|
|
4093
4136
|
let r;
|
|
4094
4137
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4095
|
-
() =>
|
|
4138
|
+
() => je.set(!0),
|
|
4096
4139
|
t
|
|
4097
|
-
) :
|
|
4098
|
-
|
|
4140
|
+
) : je.set(!0), xr(e).then(() => {
|
|
4141
|
+
He.set(e);
|
|
4099
4142
|
}).finally(() => {
|
|
4100
|
-
clearTimeout(r),
|
|
4143
|
+
clearTimeout(r), je.set(!1);
|
|
4101
4144
|
});
|
|
4102
4145
|
}
|
|
4103
|
-
return
|
|
4104
|
-
}, W =
|
|
4105
|
-
set:
|
|
4106
|
-
}),
|
|
4146
|
+
return He.set(e);
|
|
4147
|
+
}, W = ji(Fi({}, He), {
|
|
4148
|
+
set: ki
|
|
4149
|
+
}), Le = (e) => {
|
|
4107
4150
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4108
4151
|
return (n) => {
|
|
4109
4152
|
const i = JSON.stringify(n);
|
|
4110
4153
|
return i in t ? t[i] : t[i] = e(n);
|
|
4111
4154
|
};
|
|
4112
4155
|
};
|
|
4113
|
-
var
|
|
4156
|
+
var Vi = Object.defineProperty, Be = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4114
4157
|
for (var r in t || (t = {}))
|
|
4115
|
-
|
|
4116
|
-
if (
|
|
4117
|
-
for (var r of
|
|
4118
|
-
|
|
4158
|
+
wr.call(t, r) && Mt(e, r, t[r]);
|
|
4159
|
+
if (Be)
|
|
4160
|
+
for (var r of Be(t))
|
|
4161
|
+
Tr.call(t, r) && Mt(e, r, t[r]);
|
|
4119
4162
|
return e;
|
|
4120
|
-
},
|
|
4163
|
+
}, ue = (e, t) => {
|
|
4121
4164
|
var r = {};
|
|
4122
4165
|
for (var n in e)
|
|
4123
|
-
|
|
4124
|
-
if (e != null &&
|
|
4125
|
-
for (var n of
|
|
4126
|
-
t.indexOf(n) < 0 &&
|
|
4166
|
+
wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4167
|
+
if (e != null && Be)
|
|
4168
|
+
for (var n of Be(e))
|
|
4169
|
+
t.indexOf(n) < 0 && Tr.call(e, n) && (r[n] = e[n]);
|
|
4127
4170
|
return r;
|
|
4128
4171
|
};
|
|
4129
4172
|
const pe = (e, t) => {
|
|
4130
|
-
const { formats: r } =
|
|
4173
|
+
const { formats: r } = ie();
|
|
4131
4174
|
if (e in r && t in r[e])
|
|
4132
4175
|
return r[e][t];
|
|
4133
4176
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4134
|
-
},
|
|
4177
|
+
}, Xi = Le(
|
|
4135
4178
|
(e) => {
|
|
4136
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4179
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4137
4180
|
if (r == null)
|
|
4138
4181
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4139
4182
|
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
|
4140
4183
|
}
|
|
4141
|
-
),
|
|
4184
|
+
), Wi = Le(
|
|
4142
4185
|
(e) => {
|
|
4143
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4186
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4144
4187
|
if (r == null)
|
|
4145
4188
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4146
4189
|
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4147
4190
|
}
|
|
4148
|
-
),
|
|
4191
|
+
), zi = Le(
|
|
4149
4192
|
(e) => {
|
|
4150
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4193
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4151
4194
|
if (r == null)
|
|
4152
4195
|
throw new Error(
|
|
4153
4196
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4154
4197
|
);
|
|
4155
4198
|
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4156
4199
|
}
|
|
4157
|
-
),
|
|
4200
|
+
), Zi = (e = {}) => {
|
|
4158
4201
|
var t = e, {
|
|
4159
4202
|
locale: r = J()
|
|
4160
|
-
} = t, n =
|
|
4203
|
+
} = t, n = ue(t, [
|
|
4161
4204
|
"locale"
|
|
4162
4205
|
]);
|
|
4163
|
-
return
|
|
4164
|
-
},
|
|
4206
|
+
return Xi(lt({ locale: r }, n));
|
|
4207
|
+
}, Qi = (e = {}) => {
|
|
4165
4208
|
var t = e, {
|
|
4166
4209
|
locale: r = J()
|
|
4167
|
-
} = t, n =
|
|
4210
|
+
} = t, n = ue(t, [
|
|
4168
4211
|
"locale"
|
|
4169
4212
|
]);
|
|
4170
|
-
return
|
|
4171
|
-
},
|
|
4213
|
+
return Wi(lt({ locale: r }, n));
|
|
4214
|
+
}, Ji = (e = {}) => {
|
|
4172
4215
|
var t = e, {
|
|
4173
4216
|
locale: r = J()
|
|
4174
|
-
} = t, n =
|
|
4217
|
+
} = t, n = ue(t, [
|
|
4175
4218
|
"locale"
|
|
4176
4219
|
]);
|
|
4177
|
-
return
|
|
4178
|
-
},
|
|
4220
|
+
return zi(lt({ locale: r }, n));
|
|
4221
|
+
}, qi = Le(
|
|
4179
4222
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4180
|
-
(e, t = J()) => new
|
|
4181
|
-
ignoreTag:
|
|
4223
|
+
(e, t = J()) => new Ti(e, t, ie().formats, {
|
|
4224
|
+
ignoreTag: ie().ignoreTag
|
|
4182
4225
|
})
|
|
4183
|
-
),
|
|
4226
|
+
), Yi = (e, t = {}) => {
|
|
4184
4227
|
var r, n, i, o;
|
|
4185
4228
|
let s = t;
|
|
4186
4229
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4193,9 +4236,9 @@ const pe = (e, t) => {
|
|
|
4193
4236
|
throw new Error(
|
|
4194
4237
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4195
4238
|
);
|
|
4196
|
-
let h =
|
|
4239
|
+
let h = vr(e, l);
|
|
4197
4240
|
if (!h)
|
|
4198
|
-
h = (o = (i = (n = (r =
|
|
4241
|
+
h = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4199
4242
|
else if (typeof h != "string")
|
|
4200
4243
|
return console.warn(
|
|
4201
4244
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4204,7 +4247,7 @@ const pe = (e, t) => {
|
|
|
4204
4247
|
return h;
|
|
4205
4248
|
let f = h;
|
|
4206
4249
|
try {
|
|
4207
|
-
f =
|
|
4250
|
+
f = qi(h, l).format(a);
|
|
4208
4251
|
} catch (c) {
|
|
4209
4252
|
c instanceof Error && console.warn(
|
|
4210
4253
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4212,25 +4255,25 @@ const pe = (e, t) => {
|
|
|
4212
4255
|
);
|
|
4213
4256
|
}
|
|
4214
4257
|
return f;
|
|
4215
|
-
},
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
window.emWidgets = { topic:
|
|
4221
|
-
const
|
|
4222
|
-
function
|
|
4258
|
+
}, Ki = (e, t) => Ji(t).format(e), eo = (e, t) => Qi(t).format(e), to = (e, t) => Zi(t).format(e), ro = (e, t = J()) => vr(e, t), no = se([W, ae], () => Yi);
|
|
4259
|
+
se([W], () => Ki);
|
|
4260
|
+
se([W], () => eo);
|
|
4261
|
+
se([W], () => to);
|
|
4262
|
+
se([W, ae], () => ro);
|
|
4263
|
+
window.emWidgets = { topic: dn };
|
|
4264
|
+
const io = (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));
|
|
4265
|
+
function oo({ withLocale: e, translations: t }) {
|
|
4223
4266
|
W.subscribe((r) => {
|
|
4224
|
-
r == null && (
|
|
4267
|
+
r == null && (ae.set(t), W.set(e));
|
|
4225
4268
|
});
|
|
4226
4269
|
}
|
|
4227
|
-
function
|
|
4228
|
-
|
|
4270
|
+
function Rt(e, t) {
|
|
4271
|
+
_r(e, t);
|
|
4229
4272
|
}
|
|
4230
|
-
function
|
|
4273
|
+
function so(e) {
|
|
4231
4274
|
W.set(e);
|
|
4232
4275
|
}
|
|
4233
|
-
const
|
|
4276
|
+
const Gt = {
|
|
4234
4277
|
en: {
|
|
4235
4278
|
loading: "Loading, please wait ...",
|
|
4236
4279
|
playNow: "Play Now",
|
|
@@ -4241,22 +4284,22 @@ const Ct = {
|
|
|
4241
4284
|
noMoreGames: "No more games"
|
|
4242
4285
|
}
|
|
4243
4286
|
};
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4287
|
+
function ao(e) {
|
|
4288
|
+
Nr(e, "svelte-xv9pd7", "*,*::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 .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{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)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
|
|
4246
4289
|
}
|
|
4247
|
-
function
|
|
4290
|
+
function $t(e, t, r) {
|
|
4248
4291
|
const n = e.slice();
|
|
4249
4292
|
return n[32] = t[r], n;
|
|
4250
4293
|
}
|
|
4251
|
-
function
|
|
4294
|
+
function Ut(e, t, r) {
|
|
4252
4295
|
const n = e.slice();
|
|
4253
4296
|
return n[32] = t[r], n[36] = r, n;
|
|
4254
4297
|
}
|
|
4255
|
-
function
|
|
4298
|
+
function Dt(e) {
|
|
4256
4299
|
let t, r;
|
|
4257
4300
|
return {
|
|
4258
4301
|
c() {
|
|
4259
|
-
t = P("div"), r = P("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid",
|
|
4302
|
+
t = P("div"), r = P("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid", at), O(
|
|
4260
4303
|
r,
|
|
4261
4304
|
"clientstyling",
|
|
4262
4305
|
/*clientstyling*/
|
|
@@ -4274,7 +4317,7 @@ function Mt(e) {
|
|
|
4274
4317
|
), v(t, "class", "GamesTabNav");
|
|
4275
4318
|
},
|
|
4276
4319
|
m(n, i) {
|
|
4277
|
-
|
|
4320
|
+
F(n, t, i), x(t, r);
|
|
4278
4321
|
},
|
|
4279
4322
|
p(n, i) {
|
|
4280
4323
|
i[0] & /*clientstyling*/
|
|
@@ -4302,17 +4345,17 @@ function Mt(e) {
|
|
|
4302
4345
|
}
|
|
4303
4346
|
};
|
|
4304
4347
|
}
|
|
4305
|
-
function
|
|
4348
|
+
function uo(e) {
|
|
4306
4349
|
let t, r = (
|
|
4307
4350
|
/*$_*/
|
|
4308
4351
|
e[13]("noGamesAvailable") + ""
|
|
4309
4352
|
), n;
|
|
4310
4353
|
return {
|
|
4311
4354
|
c() {
|
|
4312
|
-
t = P("div"), n =
|
|
4355
|
+
t = P("div"), n = D(r), v(t, "class", "NoGames");
|
|
4313
4356
|
},
|
|
4314
4357
|
m(i, o) {
|
|
4315
|
-
|
|
4358
|
+
F(i, t, o), x(t, n);
|
|
4316
4359
|
},
|
|
4317
4360
|
p(i, o) {
|
|
4318
4361
|
o[0] & /*$_*/
|
|
@@ -4324,17 +4367,17 @@ function no(e) {
|
|
|
4324
4367
|
}
|
|
4325
4368
|
};
|
|
4326
4369
|
}
|
|
4327
|
-
function
|
|
4370
|
+
function lo(e) {
|
|
4328
4371
|
let t, r = (
|
|
4329
4372
|
/*$_*/
|
|
4330
4373
|
e[13]("noMoreGames") + ""
|
|
4331
4374
|
), n;
|
|
4332
4375
|
return {
|
|
4333
4376
|
c() {
|
|
4334
|
-
t = P("div"), n =
|
|
4377
|
+
t = P("div"), n = D(r), v(t, "class", "NoGames");
|
|
4335
4378
|
},
|
|
4336
4379
|
m(i, o) {
|
|
4337
|
-
|
|
4380
|
+
F(i, t, o), x(t, n);
|
|
4338
4381
|
},
|
|
4339
4382
|
p(i, o) {
|
|
4340
4383
|
o[0] & /*$_*/
|
|
@@ -4346,17 +4389,17 @@ function io(e) {
|
|
|
4346
4389
|
}
|
|
4347
4390
|
};
|
|
4348
4391
|
}
|
|
4349
|
-
function
|
|
4392
|
+
function ho(e) {
|
|
4350
4393
|
let t, r = (
|
|
4351
4394
|
/*$_*/
|
|
4352
4395
|
e[13]("loading") + ""
|
|
4353
4396
|
), n;
|
|
4354
4397
|
return {
|
|
4355
4398
|
c() {
|
|
4356
|
-
t = P("div"), n =
|
|
4399
|
+
t = P("div"), n = D(r), v(t, "class", "LoadingGames");
|
|
4357
4400
|
},
|
|
4358
4401
|
m(i, o) {
|
|
4359
|
-
|
|
4402
|
+
F(i, t, o), x(t, n);
|
|
4360
4403
|
},
|
|
4361
4404
|
p(i, o) {
|
|
4362
4405
|
o[0] & /*$_*/
|
|
@@ -4368,23 +4411,23 @@ function oo(e) {
|
|
|
4368
4411
|
}
|
|
4369
4412
|
};
|
|
4370
4413
|
}
|
|
4371
|
-
function
|
|
4414
|
+
function co(e) {
|
|
4372
4415
|
let t, r = Te(
|
|
4373
4416
|
/*casinoGames*/
|
|
4374
4417
|
e[8]
|
|
4375
4418
|
), n = [];
|
|
4376
4419
|
for (let i = 0; i < r.length; i += 1)
|
|
4377
|
-
n[i] =
|
|
4420
|
+
n[i] = Ft(Ut(e, r, i));
|
|
4378
4421
|
return {
|
|
4379
4422
|
c() {
|
|
4380
4423
|
for (let i = 0; i < n.length; i += 1)
|
|
4381
4424
|
n[i].c();
|
|
4382
|
-
t =
|
|
4425
|
+
t = Lr();
|
|
4383
4426
|
},
|
|
4384
4427
|
m(i, o) {
|
|
4385
4428
|
for (let s = 0; s < n.length; s += 1)
|
|
4386
4429
|
n[s] && n[s].m(i, o);
|
|
4387
|
-
|
|
4430
|
+
F(i, t, o);
|
|
4388
4431
|
},
|
|
4389
4432
|
p(i, o) {
|
|
4390
4433
|
if (o[0] & /*gameClicked, casinoGames, $_*/
|
|
@@ -4395,8 +4438,8 @@ function so(e) {
|
|
|
4395
4438
|
);
|
|
4396
4439
|
let s;
|
|
4397
4440
|
for (s = 0; s < r.length; s += 1) {
|
|
4398
|
-
const a =
|
|
4399
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4441
|
+
const a = Ut(i, r, s);
|
|
4442
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ft(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4400
4443
|
}
|
|
4401
4444
|
for (; s < n.length; s += 1)
|
|
4402
4445
|
n[s].d(1);
|
|
@@ -4404,26 +4447,26 @@ function so(e) {
|
|
|
4404
4447
|
}
|
|
4405
4448
|
},
|
|
4406
4449
|
d(i) {
|
|
4407
|
-
i && $(t),
|
|
4450
|
+
i && $(t), Wt(n, i);
|
|
4408
4451
|
}
|
|
4409
4452
|
};
|
|
4410
4453
|
}
|
|
4411
|
-
function
|
|
4454
|
+
function Ft(e) {
|
|
4412
4455
|
let t, r, n = (
|
|
4413
4456
|
/*$_*/
|
|
4414
4457
|
e[13]("playNow") + ""
|
|
4415
4458
|
), i, o, s, a, l, u, h, f, c;
|
|
4416
4459
|
return {
|
|
4417
4460
|
c() {
|
|
4418
|
-
t = P("div"), r = P("span"), i =
|
|
4461
|
+
t = P("div"), r = P("span"), i = D(n), o = j(), s = P("ui-image"), h = j(), v(r, "class", "PlayNowButton"), mt(s.src, a = /*item*/
|
|
4419
4462
|
e[32].thumbnail) || O(s, "src", a), O(s, "width", "132px"), O(s, "height", "100px"), O(s, "alt", l = /*item*/
|
|
4420
4463
|
e[32].name), O(s, "title", u = /*item*/
|
|
4421
4464
|
e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
|
|
4422
4465
|
e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
|
|
4423
4466
|
},
|
|
4424
4467
|
m(d, b) {
|
|
4425
|
-
|
|
4426
|
-
|
|
4468
|
+
F(d, t, b), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = ke(t, "click", function() {
|
|
4469
|
+
Pe(
|
|
4427
4470
|
/*gameClicked*/
|
|
4428
4471
|
e[15](
|
|
4429
4472
|
/*item*/
|
|
@@ -4439,7 +4482,7 @@ function Rt(e) {
|
|
|
4439
4482
|
e = d, b[0] & /*$_*/
|
|
4440
4483
|
8192 && n !== (n = /*$_*/
|
|
4441
4484
|
e[13]("playNow") + "") && X(i, n), b[0] & /*casinoGames*/
|
|
4442
|
-
256 && !
|
|
4485
|
+
256 && !mt(s.src, a = /*item*/
|
|
4443
4486
|
e[32].thumbnail) && O(s, "src", a), b[0] & /*casinoGames*/
|
|
4444
4487
|
256 && l !== (l = /*item*/
|
|
4445
4488
|
e[32].name) && O(s, "alt", l), b[0] & /*casinoGames*/
|
|
@@ -4451,33 +4494,33 @@ function Rt(e) {
|
|
|
4451
4494
|
}
|
|
4452
4495
|
};
|
|
4453
4496
|
}
|
|
4454
|
-
function
|
|
4497
|
+
function fo(e) {
|
|
4455
4498
|
let t, r, n, i, o, s, a, l = (
|
|
4456
4499
|
/*$_*/
|
|
4457
4500
|
e[13]("previous") + ""
|
|
4458
4501
|
), u, h, f, c, d, b, g = (
|
|
4459
4502
|
/*$_*/
|
|
4460
4503
|
e[13]("next") + ""
|
|
4461
|
-
),
|
|
4504
|
+
), T, A, _, m, H, w, I, M, z;
|
|
4462
4505
|
return {
|
|
4463
4506
|
c() {
|
|
4464
|
-
t = P("div"), r = P("button"), n = be("svg"), i = be("path"), s =
|
|
4507
|
+
t = P("div"), r = P("button"), n = be("svg"), i = be("path"), s = j(), a = P("span"), u = D(l), c = j(), d = P("button"), b = P("span"), T = D(g), A = j(), _ = be("svg"), m = be("path"), v(i, "fill", o = /*hasPreviousPage*/
|
|
4465
4508
|
e[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(i, "class", "a"), v(i, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(i, "transform", "translate(19.246 -6.188) rotate(90)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "8"), v(n, "height", "13.992"), v(n, "viewBox", "0 0 8 13.992"), v(a, "class", "TournamentsPaginationControlsText"), v(r, "class", h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
4466
4509
|
e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
|
|
4467
|
-
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(
|
|
4468
|
-
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(
|
|
4510
|
+
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(m, "fill", H = /*hasNextPage*/
|
|
4511
|
+
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(m, "class", "a"), v(m, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(m, "transform", "translate(-11.246 20.179) rotate(-90)"), v(_, "xmlns", "http://www.w3.org/2000/svg"), v(_, "width", "8"), v(_, "height", "13.992"), v(_, "viewBox", "0 0 8 13.992"), v(d, "class", w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4469
4512
|
e[11] ? "" : "Disabled")), d.disabled = I = /*hasNextPage*/
|
|
4470
4513
|
!e[11], v(t, "class", "TournamentsPaginationControlsArea");
|
|
4471
4514
|
},
|
|
4472
4515
|
m(N, L) {
|
|
4473
|
-
|
|
4474
|
-
|
|
4516
|
+
F(N, t, L), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, d), x(d, b), x(b, T), x(d, A), x(d, _), x(_, m), M || (z = [
|
|
4517
|
+
ke(
|
|
4475
4518
|
r,
|
|
4476
4519
|
"click",
|
|
4477
4520
|
/*gotoPage*/
|
|
4478
4521
|
e[16].bind(this, -1)
|
|
4479
4522
|
),
|
|
4480
|
-
|
|
4523
|
+
ke(
|
|
4481
4524
|
d,
|
|
4482
4525
|
"click",
|
|
4483
4526
|
/*gotoPage*/
|
|
@@ -4496,20 +4539,20 @@ function ao(e) {
|
|
|
4496
4539
|
1024 && f !== (f = /*hasPreviousPage*/
|
|
4497
4540
|
!N[10]) && (r.disabled = f), L[0] & /*$_*/
|
|
4498
4541
|
8192 && g !== (g = /*$_*/
|
|
4499
|
-
N[13]("next") + "") && X(
|
|
4500
|
-
2048 &&
|
|
4501
|
-
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(
|
|
4542
|
+
N[13]("next") + "") && X(T, g), L[0] & /*hasNextPage*/
|
|
4543
|
+
2048 && H !== (H = /*hasNextPage*/
|
|
4544
|
+
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(m, "fill", H), L[0] & /*hasNextPage*/
|
|
4502
4545
|
2048 && w !== (w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4503
4546
|
N[11] ? "" : "Disabled")) && v(d, "class", w), L[0] & /*hasNextPage*/
|
|
4504
4547
|
2048 && I !== (I = /*hasNextPage*/
|
|
4505
4548
|
!N[11]) && (d.disabled = I);
|
|
4506
4549
|
},
|
|
4507
4550
|
d(N) {
|
|
4508
|
-
N && $(t), M = !1,
|
|
4551
|
+
N && $(t), M = !1, oe(z);
|
|
4509
4552
|
}
|
|
4510
4553
|
};
|
|
4511
4554
|
}
|
|
4512
|
-
function
|
|
4555
|
+
function jt(e) {
|
|
4513
4556
|
let t, r = (
|
|
4514
4557
|
/*item*/
|
|
4515
4558
|
e[32].rule + ""
|
|
@@ -4519,10 +4562,10 @@ function Gt(e) {
|
|
|
4519
4562
|
), s;
|
|
4520
4563
|
return {
|
|
4521
4564
|
c() {
|
|
4522
|
-
t = P("li"), n =
|
|
4565
|
+
t = P("li"), n = D(r), i = j(), s = D(o), v(t, "part", "li"), v(t, "class", "Market");
|
|
4523
4566
|
},
|
|
4524
4567
|
m(a, l) {
|
|
4525
|
-
|
|
4568
|
+
F(a, t, l), x(t, n), x(t, i), x(t, s);
|
|
4526
4569
|
},
|
|
4527
4570
|
p(a, l) {
|
|
4528
4571
|
l[0] & /*sportsRules*/
|
|
@@ -4536,37 +4579,37 @@ function Gt(e) {
|
|
|
4536
4579
|
}
|
|
4537
4580
|
};
|
|
4538
4581
|
}
|
|
4539
|
-
function
|
|
4582
|
+
function po(e) {
|
|
4540
4583
|
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4541
4584
|
/*tournamentdetails*/
|
|
4542
4585
|
e[3] && /*tournamentdetails*/
|
|
4543
4586
|
e[3].wallet?.sports && /*tournamentdetails*/
|
|
4544
|
-
e[3].wallet?.casino &&
|
|
4587
|
+
e[3].wallet?.casino && Dt(e)
|
|
4545
4588
|
);
|
|
4546
|
-
function d(
|
|
4589
|
+
function d(m, H) {
|
|
4547
4590
|
return (
|
|
4548
4591
|
/*casinoGames*/
|
|
4549
|
-
|
|
4592
|
+
m[8]?.length ? co : (
|
|
4550
4593
|
/*isLoadingGames*/
|
|
4551
|
-
|
|
4594
|
+
m[12] ? ho : (
|
|
4552
4595
|
/*noMoreGamesWhenPagination*/
|
|
4553
|
-
|
|
4596
|
+
m[9] ? lo : uo
|
|
4554
4597
|
)
|
|
4555
4598
|
)
|
|
4556
4599
|
);
|
|
4557
4600
|
}
|
|
4558
|
-
let b = d(e), g = b(e),
|
|
4559
|
-
e[14] &&
|
|
4601
|
+
let b = d(e), g = b(e), T = !/*isMobileDevice*/
|
|
4602
|
+
e[14] && fo(e), A = Te(
|
|
4560
4603
|
/*sportsRules*/
|
|
4561
4604
|
e[7]
|
|
4562
4605
|
), _ = [];
|
|
4563
|
-
for (let
|
|
4564
|
-
_[
|
|
4606
|
+
for (let m = 0; m < A.length; m += 1)
|
|
4607
|
+
_[m] = jt($t(e, A, m));
|
|
4565
4608
|
return {
|
|
4566
4609
|
c() {
|
|
4567
|
-
t = P("div"), c && c.c(), r =
|
|
4568
|
-
for (let
|
|
4569
|
-
_[
|
|
4610
|
+
t = P("div"), c && c.c(), r = j(), n = P("div"), i = P("div"), o = P("div"), g.c(), s = j(), T && T.c(), l = j(), u = P("div"), h = P("ul");
|
|
4611
|
+
for (let m = 0; m < _.length; m += 1)
|
|
4612
|
+
_[m].c();
|
|
4570
4613
|
v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
|
|
4571
4614
|
(e[6] != "casino" ? "hidden" : "")), v(h, "class", "SportsPage"), v(u, "class", f = "TabContent GamesContent " + /*activeTab*/
|
|
4572
4615
|
(e[6] != "sports" ? "hidden" : "")), v(n, "class", "GamesWrapper"), v(
|
|
@@ -4576,65 +4619,65 @@ function uo(e) {
|
|
|
4576
4619
|
e[14] ? "MobileClass" : ""
|
|
4577
4620
|
);
|
|
4578
4621
|
},
|
|
4579
|
-
m(
|
|
4580
|
-
|
|
4622
|
+
m(m, H) {
|
|
4623
|
+
F(m, t, H), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), g.m(o, null), e[19](o), x(i, s), T && T.m(i, null), x(n, l), x(n, u), x(u, h);
|
|
4581
4624
|
for (let w = 0; w < _.length; w += 1)
|
|
4582
4625
|
_[w] && _[w].m(h, null);
|
|
4583
4626
|
e[20](t);
|
|
4584
4627
|
},
|
|
4585
|
-
p(
|
|
4628
|
+
p(m, H) {
|
|
4586
4629
|
if (/*tournamentdetails*/
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4630
|
+
m[3] && /*tournamentdetails*/
|
|
4631
|
+
m[3].wallet?.sports && /*tournamentdetails*/
|
|
4632
|
+
m[3].wallet?.casino ? c ? c.p(m, H) : (c = Dt(m), c.c(), c.m(t, r)) : c && (c.d(1), c = null), b === (b = d(m)) && g ? g.p(m, H) : (g.d(1), g = b(m), g && (g.c(), g.m(o, null))), /*isMobileDevice*/
|
|
4633
|
+
m[14] || T.p(m, H), H[0] & /*activeTab*/
|
|
4591
4634
|
64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
|
|
4592
|
-
(
|
|
4635
|
+
(m[6] != "casino" ? "hidden" : "")) && v(i, "class", a), H[0] & /*$_, sportsRules*/
|
|
4593
4636
|
8320) {
|
|
4594
4637
|
A = Te(
|
|
4595
4638
|
/*sportsRules*/
|
|
4596
|
-
|
|
4639
|
+
m[7]
|
|
4597
4640
|
);
|
|
4598
4641
|
let w;
|
|
4599
4642
|
for (w = 0; w < A.length; w += 1) {
|
|
4600
|
-
const I =
|
|
4601
|
-
_[w] ? _[w].p(I,
|
|
4643
|
+
const I = $t(m, A, w);
|
|
4644
|
+
_[w] ? _[w].p(I, H) : (_[w] = jt(I), _[w].c(), _[w].m(h, null));
|
|
4602
4645
|
}
|
|
4603
4646
|
for (; w < _.length; w += 1)
|
|
4604
4647
|
_[w].d(1);
|
|
4605
4648
|
_.length = A.length;
|
|
4606
4649
|
}
|
|
4607
|
-
|
|
4650
|
+
H[0] & /*activeTab*/
|
|
4608
4651
|
64 && f !== (f = "TabContent GamesContent " + /*activeTab*/
|
|
4609
|
-
(
|
|
4652
|
+
(m[6] != "sports" ? "hidden" : "")) && v(u, "class", f);
|
|
4610
4653
|
},
|
|
4611
4654
|
i: G,
|
|
4612
4655
|
o: G,
|
|
4613
|
-
d(
|
|
4614
|
-
|
|
4656
|
+
d(m) {
|
|
4657
|
+
m && $(t), c && c.d(), g.d(), e[19](null), T && T.d(), Wt(_, m), e[20](null);
|
|
4615
4658
|
}
|
|
4616
4659
|
};
|
|
4617
4660
|
}
|
|
4618
|
-
let
|
|
4619
|
-
function
|
|
4661
|
+
let at = "gameTab";
|
|
4662
|
+
function mo(e, t, r) {
|
|
4620
4663
|
let n;
|
|
4621
|
-
|
|
4622
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g,
|
|
4623
|
-
|
|
4624
|
-
const
|
|
4625
|
-
fetch(a).then((
|
|
4626
|
-
Object.keys(
|
|
4627
|
-
|
|
4664
|
+
Or(e, no, (p) => r(13, n = p));
|
|
4665
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g, T, A = io(d), _ = !1;
|
|
4666
|
+
oo({ withLocale: "en", translations: {} });
|
|
4667
|
+
const m = () => {
|
|
4668
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
|
4669
|
+
Object.keys(p).forEach((R) => {
|
|
4670
|
+
Rt(R, p[R]);
|
|
4628
4671
|
});
|
|
4629
|
-
}).catch((
|
|
4630
|
-
console.log(
|
|
4672
|
+
}).catch((p) => {
|
|
4673
|
+
console.log(p);
|
|
4631
4674
|
});
|
|
4632
4675
|
};
|
|
4633
|
-
Object.keys(
|
|
4634
|
-
|
|
4676
|
+
Object.keys(Gt).forEach((p) => {
|
|
4677
|
+
Rt(p, Gt[p]);
|
|
4635
4678
|
});
|
|
4636
|
-
const
|
|
4637
|
-
|
|
4679
|
+
const H = () => {
|
|
4680
|
+
so(l), setTimeout(
|
|
4638
4681
|
() => {
|
|
4639
4682
|
w();
|
|
4640
4683
|
},
|
|
@@ -4651,66 +4694,66 @@ function lo(e, t, r) {
|
|
|
4651
4694
|
},
|
|
4652
4695
|
window.location.href
|
|
4653
4696
|
);
|
|
4654
|
-
}, I = (
|
|
4697
|
+
}, I = (p) => {
|
|
4655
4698
|
window.postMessage(
|
|
4656
4699
|
{
|
|
4657
4700
|
type: "TournamentGameAction",
|
|
4658
|
-
gameId:
|
|
4659
|
-
name:
|
|
4660
|
-
launchUrl:
|
|
4701
|
+
gameId: p.id,
|
|
4702
|
+
name: p.name,
|
|
4703
|
+
launchUrl: p.launchUrl
|
|
4661
4704
|
},
|
|
4662
4705
|
window.location.href
|
|
4663
4706
|
);
|
|
4664
4707
|
};
|
|
4665
4708
|
let M = !1, z = !1, N = !1;
|
|
4666
|
-
const L = (
|
|
4667
|
-
!M &&
|
|
4709
|
+
const L = (p) => {
|
|
4710
|
+
!M && p === -1 || !z && p === 1 || (r(12, N = !0), r(8, f = []), window.postMessage(
|
|
4668
4711
|
{
|
|
4669
4712
|
type: "TournamentsLoadMoreGames",
|
|
4670
4713
|
id: c.id,
|
|
4671
|
-
isNext:
|
|
4714
|
+
isNext: p > 0
|
|
4672
4715
|
},
|
|
4673
4716
|
window.location.href
|
|
4674
4717
|
));
|
|
4675
|
-
},
|
|
4676
|
-
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, z = c.games?.total > c.games?.items.length),
|
|
4677
|
-
const
|
|
4678
|
-
if (
|
|
4718
|
+
}, ht = () => {
|
|
4719
|
+
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, z = c.games?.total > c.games?.items.length), ft();
|
|
4720
|
+
const p = c.metadata?.sports?.rules;
|
|
4721
|
+
if (p) {
|
|
4679
4722
|
r(6, u = c.wallet.casino ? "casino" : "sports");
|
|
4680
4723
|
try {
|
|
4681
|
-
const R = JSON.parse(
|
|
4724
|
+
const R = JSON.parse(p);
|
|
4682
4725
|
r(7, h = R[l] || R["*"]);
|
|
4683
4726
|
} catch (R) {
|
|
4684
4727
|
console.error("Error parsing tournament rules", R);
|
|
4685
4728
|
}
|
|
4686
4729
|
}
|
|
4687
|
-
},
|
|
4688
|
-
if (!
|
|
4730
|
+
}, ct = (p) => {
|
|
4731
|
+
if (!p.data || !p.data.type)
|
|
4689
4732
|
return;
|
|
4690
|
-
const R =
|
|
4691
|
-
switch (
|
|
4733
|
+
const R = p.data.tid || "";
|
|
4734
|
+
switch (p.data.type) {
|
|
4692
4735
|
case "TournamentsTabSwitch":
|
|
4693
|
-
R ===
|
|
4736
|
+
R === at && r(6, u = p.data.tab);
|
|
4694
4737
|
break;
|
|
4695
4738
|
case "TournamentsTabListenerLoaded":
|
|
4696
4739
|
w();
|
|
4697
4740
|
break;
|
|
4698
4741
|
case "TournamentsGamesUpdate":
|
|
4699
|
-
r(3, c =
|
|
4742
|
+
r(3, c = p.data.details), ht();
|
|
4700
4743
|
break;
|
|
4701
4744
|
case "TournamentsLoadedMoreGames":
|
|
4702
|
-
A ?
|
|
4745
|
+
A ? p.data.games?.items.length && (r(8, f = [...f, ...p.data.games.items]), ft()) : (r(12, N = !1), r(8, f = [...p.data.games.items]), r(11, z = p.data.hasNextPage), r(10, M = p.data.hasPreviousPage), r(9, _ = !f.length));
|
|
4703
4746
|
break;
|
|
4704
4747
|
default:
|
|
4705
|
-
console.warn(`Unhandled message type: ${
|
|
4748
|
+
console.warn(`Unhandled message type: ${p.data.type}`);
|
|
4706
4749
|
break;
|
|
4707
4750
|
}
|
|
4708
4751
|
};
|
|
4709
4752
|
let Z;
|
|
4710
|
-
const
|
|
4711
|
-
Z =
|
|
4712
|
-
R.forEach((
|
|
4713
|
-
|
|
4753
|
+
const Sr = (p) => {
|
|
4754
|
+
Z = p?.lastElementChild, !(!A || T || !p || !Z) && (T = new IntersectionObserver((R) => {
|
|
4755
|
+
R.forEach((Pr) => {
|
|
4756
|
+
Pr.isIntersecting && (T.unobserve(Z), window.postMessage(
|
|
4714
4757
|
{
|
|
4715
4758
|
type: "TournamentsLoadMoreGames",
|
|
4716
4759
|
id: c.id,
|
|
@@ -4720,39 +4763,39 @@ function lo(e, t, r) {
|
|
|
4720
4763
|
));
|
|
4721
4764
|
});
|
|
4722
4765
|
}));
|
|
4723
|
-
},
|
|
4724
|
-
!A || !Z || !
|
|
4766
|
+
}, ft = () => {
|
|
4767
|
+
!A || !Z || !T || !f.length || (T.unobserve(Z), Z = g.lastElementChild, T.observe(Z));
|
|
4725
4768
|
};
|
|
4726
|
-
|
|
4769
|
+
$r(() => A && T && T.disconnect()), Gr(() => (window.postMessage(
|
|
4727
4770
|
{
|
|
4728
4771
|
type: "TournamentsGamesListenerLoaded",
|
|
4729
|
-
gamesTabTid:
|
|
4772
|
+
gamesTabTid: at
|
|
4730
4773
|
},
|
|
4731
4774
|
window.location.href
|
|
4732
|
-
), window.addEventListener("message",
|
|
4733
|
-
window.removeEventListener("message",
|
|
4775
|
+
), window.addEventListener("message", ct, !1), () => {
|
|
4776
|
+
window.removeEventListener("message", ct);
|
|
4734
4777
|
}));
|
|
4735
|
-
function
|
|
4736
|
-
we[
|
|
4737
|
-
g =
|
|
4778
|
+
function Hr(p) {
|
|
4779
|
+
we[p ? "unshift" : "push"](() => {
|
|
4780
|
+
g = p, r(5, g);
|
|
4738
4781
|
});
|
|
4739
4782
|
}
|
|
4740
|
-
function
|
|
4741
|
-
we[
|
|
4742
|
-
b =
|
|
4783
|
+
function Br(p) {
|
|
4784
|
+
we[p ? "unshift" : "push"](() => {
|
|
4785
|
+
b = p, r(4, b);
|
|
4743
4786
|
});
|
|
4744
4787
|
}
|
|
4745
|
-
return e.$$set = (
|
|
4746
|
-
"clientstyling" in
|
|
4788
|
+
return e.$$set = (p) => {
|
|
4789
|
+
"clientstyling" in p && r(0, i = p.clientstyling), "clientstylingurl" in p && r(1, o = p.clientstylingurl), "mbsource" in p && r(2, s = p.mbsource), "translationurl" in p && r(17, a = p.translationurl), "lang" in p && r(18, l = p.lang);
|
|
4747
4790
|
}, e.$$.update = () => {
|
|
4748
4791
|
e.$$.dirty[0] & /*tournamentdetails*/
|
|
4749
|
-
8 && c &&
|
|
4750
|
-
262144 && l &&
|
|
4751
|
-
131072 && a &&
|
|
4752
|
-
17 && i && b &&
|
|
4753
|
-
18 && o && b &&
|
|
4754
|
-
20 && s && b &&
|
|
4755
|
-
32 && g &&
|
|
4792
|
+
8 && c && ht(), e.$$.dirty[0] & /*lang*/
|
|
4793
|
+
262144 && l && H(), e.$$.dirty[0] & /*translationurl*/
|
|
4794
|
+
131072 && a && m(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4795
|
+
17 && i && b && Yr(b, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4796
|
+
18 && o && b && Kr(b, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4797
|
+
20 && s && b && en(b, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
|
|
4798
|
+
32 && g && Sr(g);
|
|
4756
4799
|
}, [
|
|
4757
4800
|
i,
|
|
4758
4801
|
o,
|
|
@@ -4773,18 +4816,18 @@ function lo(e, t, r) {
|
|
|
4773
4816
|
L,
|
|
4774
4817
|
a,
|
|
4775
4818
|
l,
|
|
4776
|
-
|
|
4777
|
-
|
|
4819
|
+
Hr,
|
|
4820
|
+
Br
|
|
4778
4821
|
];
|
|
4779
4822
|
}
|
|
4780
|
-
class
|
|
4823
|
+
class bo extends Jr {
|
|
4781
4824
|
constructor(t) {
|
|
4782
|
-
super(),
|
|
4825
|
+
super(), Zr(
|
|
4783
4826
|
this,
|
|
4784
4827
|
t,
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4828
|
+
mo,
|
|
4829
|
+
po,
|
|
4830
|
+
Vt,
|
|
4788
4831
|
{
|
|
4789
4832
|
clientstyling: 0,
|
|
4790
4833
|
clientstylingurl: 1,
|
|
@@ -4792,7 +4835,7 @@ class ho extends Xr {
|
|
|
4792
4835
|
translationurl: 17,
|
|
4793
4836
|
lang: 18
|
|
4794
4837
|
},
|
|
4795
|
-
|
|
4838
|
+
ao,
|
|
4796
4839
|
[-1, -1]
|
|
4797
4840
|
);
|
|
4798
4841
|
}
|
|
@@ -4827,7 +4870,7 @@ class ho extends Xr {
|
|
|
4827
4870
|
this.$$set({ lang: t }), Q();
|
|
4828
4871
|
}
|
|
4829
4872
|
}
|
|
4830
|
-
|
|
4873
|
+
Qr(bo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4831
4874
|
export {
|
|
4832
|
-
|
|
4875
|
+
bo as C
|
|
4833
4876
|
};
|