@everymatrix/casino-tournaments-thumbnail-games 1.86.4 → 1.86.5
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-BOJ-mBz1.js → CasinoTournamentsThumbnailGames-Ck0JK0i_.js} +770 -749
- package/components/CasinoTournamentsThumbnailGames-CqSvghVB.cjs +18 -0
- package/components/{CasinoTournamentsThumbnailGames-DvKm0C8Y.js → CasinoTournamentsThumbnailGames-F0mlkU4B.js} +812 -791
- 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-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CasinoTournamentsThumbnailGames-CyuoEaxu.cjs +0 -18
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-Ch-GHki1.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 se(e) {
|
|
11
|
+
e.forEach(kt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Ae(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 be;
|
|
20
|
-
function
|
|
20
|
+
function mt(e, t) {
|
|
21
21
|
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.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 kt(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
|
-
const i =
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
const i = B("style");
|
|
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,39 +55,39 @@ function Nr(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
|
}
|
|
75
|
-
function
|
|
75
|
+
function B(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
78
|
function ge(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 Ve(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 W(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 Mr(e) {
|
|
|
113
113
|
}
|
|
114
114
|
), t;
|
|
115
115
|
}
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
116
|
+
let fe;
|
|
117
|
+
function ce(e) {
|
|
118
|
+
fe = e;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
if (!
|
|
120
|
+
function zt() {
|
|
121
|
+
if (!fe)
|
|
122
122
|
throw new Error("Function called outside component initialization");
|
|
123
|
-
return
|
|
124
|
-
}
|
|
125
|
-
function Rr(e) {
|
|
126
|
-
Xt().$$.on_mount.push(e);
|
|
123
|
+
return fe;
|
|
127
124
|
}
|
|
128
125
|
function Gr(e) {
|
|
129
|
-
|
|
126
|
+
zt().$$.on_mount.push(e);
|
|
127
|
+
}
|
|
128
|
+
function $r(e) {
|
|
129
|
+
zt().$$.on_destroy.push(e);
|
|
130
130
|
}
|
|
131
131
|
const ee = [], Te = [];
|
|
132
132
|
let te = [];
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
133
|
+
const dt = [], Ur = /* @__PURE__ */ Promise.resolve();
|
|
134
|
+
let Xe = !1;
|
|
135
|
+
function Dr() {
|
|
136
|
+
Xe || (Xe = !0, Ur.then(Q));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function We(e) {
|
|
139
139
|
te.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Re = /* @__PURE__ */ new Set();
|
|
142
142
|
let Y = 0;
|
|
143
143
|
function Q() {
|
|
144
144
|
if (Y !== 0)
|
|
145
145
|
return;
|
|
146
|
-
const e =
|
|
146
|
+
const e = fe;
|
|
147
147
|
do {
|
|
148
148
|
try {
|
|
149
149
|
for (; Y < ee.length; ) {
|
|
150
150
|
const t = ee[Y];
|
|
151
|
-
Y++,
|
|
151
|
+
Y++, ce(t), Fr(t.$$);
|
|
152
152
|
}
|
|
153
153
|
} catch (t) {
|
|
154
154
|
throw ee.length = 0, Y = 0, t;
|
|
155
155
|
}
|
|
156
|
-
for (
|
|
156
|
+
for (ce(null), ee.length = 0, Y = 0; Te.length; )
|
|
157
157
|
Te.pop()();
|
|
158
158
|
for (let t = 0; t < te.length; t += 1) {
|
|
159
159
|
const r = te[t];
|
|
160
|
-
|
|
160
|
+
Re.has(r) || (Re.add(r), r());
|
|
161
161
|
}
|
|
162
162
|
te.length = 0;
|
|
163
163
|
} while (ee.length);
|
|
164
|
-
for (;
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
for (; dt.length; )
|
|
165
|
+
dt.pop()();
|
|
166
|
+
Xe = !1, Re.clear(), ce(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Fr(e) {
|
|
169
169
|
if (e.fragment !== null) {
|
|
170
|
-
e.update(),
|
|
170
|
+
e.update(), se(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(We);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function jr(e) {
|
|
176
176
|
const t = [], r = [];
|
|
177
177
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = 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 Se(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), We(() => {
|
|
189
|
+
const o = e.$$.on_mount.map(kt).filter(Ae);
|
|
190
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
191
|
+
}), i.forEach(We);
|
|
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), se(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 && (ee.push(e),
|
|
197
|
+
function zr(e, t) {
|
|
198
|
+
e.$$.dirty[0] === -1 && (ee.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 = fe;
|
|
202
|
+
ce(e);
|
|
203
203
|
const u = e.$$ = {
|
|
204
204
|
fragment: null,
|
|
205
205
|
ctx: [],
|
|
@@ -207,7 +207,7 @@ function zr(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 zr(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 zr(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, se(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
|
+
ce(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 */
|
|
@@ -279,14 +279,14 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
279
279
|
let o;
|
|
280
280
|
return {
|
|
281
281
|
c: function() {
|
|
282
|
-
o =
|
|
282
|
+
o = B("slot"), i !== "default" && v(o, "name", i);
|
|
283
283
|
},
|
|
284
284
|
/**
|
|
285
285
|
* @param {HTMLElement} target
|
|
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" && (Wt = 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 _e(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 Zr(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 Qr {
|
|
|
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 Qr {
|
|
|
440
440
|
* @returns {() => void}
|
|
441
441
|
*/
|
|
442
442
|
$on(t, r) {
|
|
443
|
-
if (!
|
|
443
|
+
if (!Ae(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 Qr {
|
|
|
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
|
if (!e || !t)
|
|
469
469
|
return;
|
|
470
470
|
const r = new URL(t);
|
|
@@ -475,7 +475,7 @@ function Yr(e, t) {
|
|
|
475
475
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function en(e, t, r) {
|
|
479
479
|
if (window.emMessageBus) {
|
|
480
480
|
const n = document.createElement("style");
|
|
481
481
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -497,43 +497,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
497
497
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
498
498
|
PERFORMANCE OF THIS SOFTWARE.
|
|
499
499
|
***************************************************************************** */
|
|
500
|
-
var
|
|
501
|
-
return
|
|
500
|
+
var ze = function(e, t) {
|
|
501
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
502
502
|
r.__proto__ = n;
|
|
503
503
|
} || function(r, n) {
|
|
504
504
|
for (var i in n)
|
|
505
505
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
506
|
-
},
|
|
506
|
+
}, ze(e, t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function de(e, t) {
|
|
509
509
|
if (typeof t != "function" && t !== null)
|
|
510
510
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
511
|
-
|
|
511
|
+
ze(e, t);
|
|
512
512
|
function r() {
|
|
513
513
|
this.constructor = e;
|
|
514
514
|
}
|
|
515
515
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
516
516
|
}
|
|
517
|
-
|
|
518
|
-
return T = Object.assign || function(t) {
|
|
519
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
520
|
-
r = arguments[n];
|
|
521
|
-
for (var o in r)
|
|
522
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
523
|
-
}
|
|
524
|
-
return t;
|
|
525
|
-
}, T.apply(this, arguments);
|
|
526
|
-
};
|
|
527
|
-
function en(e, t) {
|
|
528
|
-
var r = {};
|
|
529
|
-
for (var n in e)
|
|
530
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
531
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
532
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
533
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
534
|
-
return r;
|
|
535
|
-
}
|
|
536
|
-
function We(e) {
|
|
517
|
+
function Ze(e) {
|
|
537
518
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
538
519
|
if (r)
|
|
539
520
|
return r.call(e);
|
|
@@ -545,7 +526,7 @@ function We(e) {
|
|
|
545
526
|
};
|
|
546
527
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
547
528
|
}
|
|
548
|
-
function
|
|
529
|
+
function Qe(e, t) {
|
|
549
530
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
550
531
|
if (!r)
|
|
551
532
|
return e;
|
|
@@ -565,22 +546,22 @@ function ze(e, t) {
|
|
|
565
546
|
}
|
|
566
547
|
return o;
|
|
567
548
|
}
|
|
568
|
-
function
|
|
569
|
-
if (
|
|
549
|
+
function Je(e, t, r) {
|
|
550
|
+
if (arguments.length === 2)
|
|
570
551
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
571
552
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
572
553
|
return e.concat(o || t);
|
|
573
554
|
}
|
|
574
|
-
function
|
|
555
|
+
function k(e) {
|
|
575
556
|
return typeof e == "function";
|
|
576
557
|
}
|
|
577
|
-
function
|
|
558
|
+
function Qt(e) {
|
|
578
559
|
var t = function(n) {
|
|
579
560
|
Error.call(n), n.stack = new Error().stack;
|
|
580
561
|
}, r = e(t);
|
|
581
562
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
582
563
|
}
|
|
583
|
-
var
|
|
564
|
+
var Ge = Qt(function(e) {
|
|
584
565
|
return function(r) {
|
|
585
566
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
586
567
|
` + r.map(function(n, i) {
|
|
@@ -589,13 +570,13 @@ var Me = zt(function(e) {
|
|
|
589
570
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
590
571
|
};
|
|
591
572
|
});
|
|
592
|
-
function
|
|
573
|
+
function qe(e, t) {
|
|
593
574
|
if (e) {
|
|
594
575
|
var r = e.indexOf(t);
|
|
595
576
|
0 <= r && e.splice(r, 1);
|
|
596
577
|
}
|
|
597
578
|
}
|
|
598
|
-
var
|
|
579
|
+
var Oe = function() {
|
|
599
580
|
function e(t) {
|
|
600
581
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
601
582
|
}
|
|
@@ -607,7 +588,7 @@ var Ae = function() {
|
|
|
607
588
|
if (s)
|
|
608
589
|
if (this._parentage = null, Array.isArray(s))
|
|
609
590
|
try {
|
|
610
|
-
for (var a =
|
|
591
|
+
for (var a = Ze(s), l = a.next(); !l.done; l = a.next()) {
|
|
611
592
|
var u = l.value;
|
|
612
593
|
u.remove(this);
|
|
613
594
|
}
|
|
@@ -624,22 +605,22 @@ var Ae = function() {
|
|
|
624
605
|
else
|
|
625
606
|
s.remove(this);
|
|
626
607
|
var h = this.initialTeardown;
|
|
627
|
-
if (
|
|
608
|
+
if (k(h))
|
|
628
609
|
try {
|
|
629
610
|
h();
|
|
630
611
|
} catch (g) {
|
|
631
|
-
o = g instanceof
|
|
612
|
+
o = g instanceof Ge ? g.errors : [g];
|
|
632
613
|
}
|
|
633
614
|
var f = this._finalizers;
|
|
634
615
|
if (f) {
|
|
635
616
|
this._finalizers = null;
|
|
636
617
|
try {
|
|
637
|
-
for (var c =
|
|
618
|
+
for (var c = Ze(f), d = c.next(); !d.done; d = c.next()) {
|
|
638
619
|
var b = d.value;
|
|
639
620
|
try {
|
|
640
|
-
|
|
621
|
+
bt(b);
|
|
641
622
|
} catch (g) {
|
|
642
|
-
o = o ?? [], g instanceof
|
|
623
|
+
o = o ?? [], g instanceof Ge ? o = Je(Je([], Qe(o)), Qe(g.errors)) : o.push(g);
|
|
643
624
|
}
|
|
644
625
|
}
|
|
645
626
|
} catch (g) {
|
|
@@ -654,13 +635,13 @@ var Ae = function() {
|
|
|
654
635
|
}
|
|
655
636
|
}
|
|
656
637
|
if (o)
|
|
657
|
-
throw new
|
|
638
|
+
throw new Ge(o);
|
|
658
639
|
}
|
|
659
640
|
}, e.prototype.add = function(t) {
|
|
660
641
|
var r;
|
|
661
642
|
if (t && t !== this)
|
|
662
643
|
if (this.closed)
|
|
663
|
-
|
|
644
|
+
bt(t);
|
|
664
645
|
else {
|
|
665
646
|
if (t instanceof e) {
|
|
666
647
|
if (t.closed || t._hasParent(this))
|
|
@@ -677,56 +658,52 @@ var Ae = function() {
|
|
|
677
658
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
678
659
|
}, e.prototype._removeParent = function(t) {
|
|
679
660
|
var r = this._parentage;
|
|
680
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
661
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
681
662
|
}, e.prototype.remove = function(t) {
|
|
682
663
|
var r = this._finalizers;
|
|
683
|
-
r &&
|
|
664
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
684
665
|
}, e.EMPTY = function() {
|
|
685
666
|
var t = new e();
|
|
686
667
|
return t.closed = !0, t;
|
|
687
668
|
}(), e;
|
|
688
|
-
}(),
|
|
689
|
-
function
|
|
690
|
-
return e instanceof
|
|
691
|
-
}
|
|
692
|
-
function
|
|
693
|
-
|
|
694
|
-
}
|
|
695
|
-
var
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
Promise: void 0,
|
|
699
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
700
|
-
useDeprecatedNextContext: !1
|
|
701
|
-
}, tn = {
|
|
669
|
+
}(), Jt = Oe.EMPTY;
|
|
670
|
+
function qt(e) {
|
|
671
|
+
return e instanceof Oe || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
672
|
+
}
|
|
673
|
+
function bt(e) {
|
|
674
|
+
k(e) ? e() : e.unsubscribe();
|
|
675
|
+
}
|
|
676
|
+
var tn = {
|
|
677
|
+
Promise: void 0
|
|
678
|
+
}, rn = {
|
|
702
679
|
setTimeout: function(e, t) {
|
|
703
680
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
704
681
|
r[n - 2] = arguments[n];
|
|
705
|
-
return setTimeout.apply(void 0,
|
|
682
|
+
return setTimeout.apply(void 0, Je([e, t], Qe(r)));
|
|
706
683
|
},
|
|
707
684
|
clearTimeout: function(e) {
|
|
708
685
|
return clearTimeout(e);
|
|
709
686
|
},
|
|
710
687
|
delegate: void 0
|
|
711
688
|
};
|
|
712
|
-
function
|
|
713
|
-
|
|
689
|
+
function nn(e) {
|
|
690
|
+
rn.setTimeout(function() {
|
|
714
691
|
throw e;
|
|
715
692
|
});
|
|
716
693
|
}
|
|
717
|
-
function
|
|
694
|
+
function gt() {
|
|
718
695
|
}
|
|
719
696
|
function Ee(e) {
|
|
720
697
|
e();
|
|
721
698
|
}
|
|
722
|
-
var
|
|
723
|
-
|
|
699
|
+
var Yt = function(e) {
|
|
700
|
+
de(t, e);
|
|
724
701
|
function t(r) {
|
|
725
702
|
var n = e.call(this) || this;
|
|
726
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
703
|
+
return n.isStopped = !1, r ? (n.destination = r, qt(r) && r.add(n)) : n.destination = an, n;
|
|
727
704
|
}
|
|
728
705
|
return t.create = function(r, n, i) {
|
|
729
|
-
return new
|
|
706
|
+
return new Ye(r, n, i);
|
|
730
707
|
}, t.prototype.next = function(r) {
|
|
731
708
|
this.isStopped || this._next(r);
|
|
732
709
|
}, t.prototype.error = function(r) {
|
|
@@ -750,11 +727,7 @@ var qt = function(e) {
|
|
|
750
727
|
this.unsubscribe();
|
|
751
728
|
}
|
|
752
729
|
}, t;
|
|
753
|
-
}(
|
|
754
|
-
function Re(e, t) {
|
|
755
|
-
return nn.call(e, t);
|
|
756
|
-
}
|
|
757
|
-
var on = function() {
|
|
730
|
+
}(Oe), on = function() {
|
|
758
731
|
function e(t) {
|
|
759
732
|
this.partialObserver = t;
|
|
760
733
|
}
|
|
@@ -785,41 +758,29 @@ var on = function() {
|
|
|
785
758
|
ve(r);
|
|
786
759
|
}
|
|
787
760
|
}, e;
|
|
788
|
-
}(),
|
|
789
|
-
|
|
761
|
+
}(), Ye = function(e) {
|
|
762
|
+
de(t, e);
|
|
790
763
|
function t(r, n, i) {
|
|
791
764
|
var o = e.call(this) || this, s;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
};
|
|
798
|
-
else {
|
|
799
|
-
var a;
|
|
800
|
-
o && Jt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
801
|
-
return o.unsubscribe();
|
|
802
|
-
}, s = {
|
|
803
|
-
next: r.next && Re(r.next, a),
|
|
804
|
-
error: r.error && Re(r.error, a),
|
|
805
|
-
complete: r.complete && Re(r.complete, a)
|
|
806
|
-
}) : s = r;
|
|
807
|
-
}
|
|
808
|
-
return o.destination = new on(s), o;
|
|
765
|
+
return k(r) || !r ? s = {
|
|
766
|
+
next: r ?? void 0,
|
|
767
|
+
error: n ?? void 0,
|
|
768
|
+
complete: i ?? void 0
|
|
769
|
+
} : s = r, o.destination = new on(s), o;
|
|
809
770
|
}
|
|
810
771
|
return t;
|
|
811
|
-
}(
|
|
772
|
+
}(Yt);
|
|
812
773
|
function ve(e) {
|
|
813
|
-
|
|
774
|
+
nn(e);
|
|
814
775
|
}
|
|
815
776
|
function sn(e) {
|
|
816
777
|
throw e;
|
|
817
778
|
}
|
|
818
779
|
var an = {
|
|
819
780
|
closed: !0,
|
|
820
|
-
next:
|
|
781
|
+
next: gt,
|
|
821
782
|
error: sn,
|
|
822
|
-
complete:
|
|
783
|
+
complete: gt
|
|
823
784
|
}, un = function() {
|
|
824
785
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
825
786
|
}();
|
|
@@ -833,7 +794,7 @@ function hn(e) {
|
|
|
833
794
|
}, r);
|
|
834
795
|
};
|
|
835
796
|
}
|
|
836
|
-
var
|
|
797
|
+
var vt = function() {
|
|
837
798
|
function e(t) {
|
|
838
799
|
t && (this._subscribe = t);
|
|
839
800
|
}
|
|
@@ -841,7 +802,7 @@ var bt = function() {
|
|
|
841
802
|
var r = new e();
|
|
842
803
|
return r.source = this, r.operator = t, r;
|
|
843
804
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
844
|
-
var i = this, o = fn(t) ? t : new
|
|
805
|
+
var i = this, o = fn(t) ? t : new Ye(t, r, n);
|
|
845
806
|
return Ee(function() {
|
|
846
807
|
var s = i, a = s.operator, l = s.source;
|
|
847
808
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -854,8 +815,8 @@ var bt = function() {
|
|
|
854
815
|
}
|
|
855
816
|
}, e.prototype.forEach = function(t, r) {
|
|
856
817
|
var n = this;
|
|
857
|
-
return r =
|
|
858
|
-
var s = new
|
|
818
|
+
return r = yt(r), new r(function(i, o) {
|
|
819
|
+
var s = new Ye({
|
|
859
820
|
next: function(a) {
|
|
860
821
|
try {
|
|
861
822
|
t(a);
|
|
@@ -879,7 +840,7 @@ var bt = function() {
|
|
|
879
840
|
return hn(t)(this);
|
|
880
841
|
}, e.prototype.toPromise = function(t) {
|
|
881
842
|
var r = this;
|
|
882
|
-
return t =
|
|
843
|
+
return t = yt(t), new t(function(n, i) {
|
|
883
844
|
var o;
|
|
884
845
|
r.subscribe(function(s) {
|
|
885
846
|
return o = s;
|
|
@@ -893,32 +854,32 @@ var bt = function() {
|
|
|
893
854
|
return new e(t);
|
|
894
855
|
}, e;
|
|
895
856
|
}();
|
|
896
|
-
function
|
|
857
|
+
function yt(e) {
|
|
897
858
|
var t;
|
|
898
|
-
return (t = e ??
|
|
859
|
+
return (t = e ?? tn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
899
860
|
}
|
|
900
861
|
function cn(e) {
|
|
901
|
-
return e &&
|
|
862
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
902
863
|
}
|
|
903
864
|
function fn(e) {
|
|
904
|
-
return e && e instanceof
|
|
865
|
+
return e && e instanceof Yt || cn(e) && qt(e);
|
|
905
866
|
}
|
|
906
|
-
var
|
|
867
|
+
var pn = Qt(function(e) {
|
|
907
868
|
return function() {
|
|
908
869
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
909
870
|
};
|
|
910
|
-
}),
|
|
911
|
-
|
|
871
|
+
}), Kt = function(e) {
|
|
872
|
+
de(t, e);
|
|
912
873
|
function t() {
|
|
913
874
|
var r = e.call(this) || this;
|
|
914
875
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
915
876
|
}
|
|
916
877
|
return t.prototype.lift = function(r) {
|
|
917
|
-
var n = new
|
|
878
|
+
var n = new _t(this, this);
|
|
918
879
|
return n.operator = r, n;
|
|
919
880
|
}, t.prototype._throwIfClosed = function() {
|
|
920
881
|
if (this.closed)
|
|
921
|
-
throw new
|
|
882
|
+
throw new pn();
|
|
922
883
|
}, t.prototype.next = function(r) {
|
|
923
884
|
var n = this;
|
|
924
885
|
Ee(function() {
|
|
@@ -926,7 +887,7 @@ var mn = zt(function(e) {
|
|
|
926
887
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
927
888
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
928
889
|
try {
|
|
929
|
-
for (var s =
|
|
890
|
+
for (var s = Ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
930
891
|
var l = a.value;
|
|
931
892
|
l.next(r);
|
|
932
893
|
}
|
|
@@ -975,20 +936,20 @@ var mn = zt(function(e) {
|
|
|
975
936
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
976
937
|
}, t.prototype._innerSubscribe = function(r) {
|
|
977
938
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
978
|
-
return o || s ?
|
|
979
|
-
n.currentObservers = null,
|
|
939
|
+
return o || s ? Jt : (this.currentObservers = null, a.push(r), new Oe(function() {
|
|
940
|
+
n.currentObservers = null, qe(a, r);
|
|
980
941
|
}));
|
|
981
942
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
982
943
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
983
944
|
i ? r.error(o) : s && r.complete();
|
|
984
945
|
}, t.prototype.asObservable = function() {
|
|
985
|
-
var r = new
|
|
946
|
+
var r = new vt();
|
|
986
947
|
return r.source = this, r;
|
|
987
948
|
}, t.create = function(r, n) {
|
|
988
|
-
return new
|
|
949
|
+
return new _t(r, n);
|
|
989
950
|
}, t;
|
|
990
|
-
}(
|
|
991
|
-
|
|
951
|
+
}(vt), _t = function(e) {
|
|
952
|
+
de(t, e);
|
|
992
953
|
function t(r, n) {
|
|
993
954
|
var i = e.call(this) || this;
|
|
994
955
|
return i.destination = r, i.source = n, i;
|
|
@@ -1004,17 +965,17 @@ var mn = zt(function(e) {
|
|
|
1004
965
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1005
966
|
}, t.prototype._subscribe = function(r) {
|
|
1006
967
|
var n, i;
|
|
1007
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
968
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Jt;
|
|
1008
969
|
}, t;
|
|
1009
|
-
}(
|
|
970
|
+
}(Kt), er = {
|
|
1010
971
|
now: function() {
|
|
1011
|
-
return (
|
|
972
|
+
return (er.delegate || Date).now();
|
|
1012
973
|
},
|
|
1013
974
|
delegate: void 0
|
|
1014
|
-
},
|
|
1015
|
-
|
|
975
|
+
}, mn = function(e) {
|
|
976
|
+
de(t, e);
|
|
1016
977
|
function t(r, n, i) {
|
|
1017
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
978
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
|
|
1018
979
|
var o = e.call(this) || this;
|
|
1019
980
|
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;
|
|
1020
981
|
}
|
|
@@ -1034,24 +995,24 @@ var mn = zt(function(e) {
|
|
|
1034
995
|
u && o.splice(0, u + 1);
|
|
1035
996
|
}
|
|
1036
997
|
}, t;
|
|
1037
|
-
}(
|
|
1038
|
-
const
|
|
1039
|
-
if (
|
|
1040
|
-
const r = new
|
|
1041
|
-
|
|
998
|
+
}(Kt);
|
|
999
|
+
const Et = [], xt = {}, dn = (e, t = 0) => {
|
|
1000
|
+
if (Et.indexOf(e) == -1) {
|
|
1001
|
+
const r = new mn(t);
|
|
1002
|
+
xt[e] = r, Et.push(e);
|
|
1042
1003
|
}
|
|
1043
|
-
return
|
|
1004
|
+
return xt[e];
|
|
1044
1005
|
}, K = [];
|
|
1045
1006
|
function bn(e, t) {
|
|
1046
1007
|
return {
|
|
1047
|
-
subscribe:
|
|
1008
|
+
subscribe: Ne(e, t).subscribe
|
|
1048
1009
|
};
|
|
1049
1010
|
}
|
|
1050
|
-
function
|
|
1011
|
+
function Ne(e, t = G) {
|
|
1051
1012
|
let r;
|
|
1052
1013
|
const n = /* @__PURE__ */ new Set();
|
|
1053
1014
|
function i(a) {
|
|
1054
|
-
if (
|
|
1015
|
+
if (Vt(e, a) && (e = a, r)) {
|
|
1055
1016
|
const l = !K.length;
|
|
1056
1017
|
for (const u of n)
|
|
1057
1018
|
u[1](), K.push(u, e);
|
|
@@ -1073,7 +1034,7 @@ function Oe(e, t = G) {
|
|
|
1073
1034
|
}
|
|
1074
1035
|
return { set: i, update: o, subscribe: s };
|
|
1075
1036
|
}
|
|
1076
|
-
function
|
|
1037
|
+
function ae(e, t, r) {
|
|
1077
1038
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1078
1039
|
if (!i.every(Boolean))
|
|
1079
1040
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1087,12 +1048,12 @@ function ue(e, t, r) {
|
|
|
1087
1048
|
return;
|
|
1088
1049
|
f();
|
|
1089
1050
|
const b = t(n ? u[0] : u, s, a);
|
|
1090
|
-
o ? s(b) : f =
|
|
1051
|
+
o ? s(b) : f = Ae(b) ? b : G;
|
|
1091
1052
|
}, d = i.map(
|
|
1092
|
-
(b, g) =>
|
|
1053
|
+
(b, g) => Xt(
|
|
1093
1054
|
b,
|
|
1094
|
-
(
|
|
1095
|
-
u[g] =
|
|
1055
|
+
(T) => {
|
|
1056
|
+
u[g] = T, h &= ~(1 << g), l && c();
|
|
1096
1057
|
},
|
|
1097
1058
|
() => {
|
|
1098
1059
|
h |= 1 << g;
|
|
@@ -1100,7 +1061,7 @@ function ue(e, t, r) {
|
|
|
1100
1061
|
)
|
|
1101
1062
|
);
|
|
1102
1063
|
return l = !0, c(), function() {
|
|
1103
|
-
|
|
1064
|
+
se(d), f(), l = !1;
|
|
1104
1065
|
};
|
|
1105
1066
|
});
|
|
1106
1067
|
}
|
|
@@ -1125,7 +1086,7 @@ function Tn(e) {
|
|
|
1125
1086
|
return Array.isArray(e) ? [] : {};
|
|
1126
1087
|
}
|
|
1127
1088
|
function pe(e, t) {
|
|
1128
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1089
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Tn(e), e, t) : e;
|
|
1129
1090
|
}
|
|
1130
1091
|
function Sn(e, t, r) {
|
|
1131
1092
|
return e.concat(t).map(function(n) {
|
|
@@ -1134,149 +1095,199 @@ function Sn(e, t, r) {
|
|
|
1134
1095
|
}
|
|
1135
1096
|
function Hn(e, t) {
|
|
1136
1097
|
if (!t.customMerge)
|
|
1137
|
-
return
|
|
1098
|
+
return re;
|
|
1138
1099
|
var r = t.customMerge(e);
|
|
1139
|
-
return typeof r == "function" ? r :
|
|
1100
|
+
return typeof r == "function" ? r : re;
|
|
1140
1101
|
}
|
|
1141
|
-
function
|
|
1102
|
+
function Pn(e) {
|
|
1142
1103
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1143
1104
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1144
1105
|
}) : [];
|
|
1145
1106
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return Object.keys(e).concat(
|
|
1107
|
+
function wt(e) {
|
|
1108
|
+
return Object.keys(e).concat(Pn(e));
|
|
1148
1109
|
}
|
|
1149
|
-
function
|
|
1110
|
+
function tr(e, t) {
|
|
1150
1111
|
try {
|
|
1151
1112
|
return t in e;
|
|
1152
1113
|
} catch {
|
|
1153
1114
|
return !1;
|
|
1154
1115
|
}
|
|
1155
1116
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1117
|
+
function Bn(e, t) {
|
|
1118
|
+
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1158
1119
|
}
|
|
1159
1120
|
function An(e, t, r) {
|
|
1160
1121
|
var n = {};
|
|
1161
|
-
return r.isMergeableObject(e) &&
|
|
1122
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1162
1123
|
n[i] = pe(e[i], r);
|
|
1163
|
-
}),
|
|
1164
|
-
|
|
1124
|
+
}), wt(t).forEach(function(i) {
|
|
1125
|
+
Bn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
|
1165
1126
|
}), n;
|
|
1166
1127
|
}
|
|
1167
|
-
function
|
|
1128
|
+
function re(e, t, r) {
|
|
1168
1129
|
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = pe;
|
|
1169
1130
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1170
1131
|
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : pe(t, r);
|
|
1171
1132
|
}
|
|
1172
|
-
|
|
1133
|
+
re.all = function(t, r) {
|
|
1173
1134
|
if (!Array.isArray(t))
|
|
1174
1135
|
throw new Error("first argument should be an array");
|
|
1175
1136
|
return t.reduce(function(n, i) {
|
|
1176
|
-
return
|
|
1137
|
+
return re(n, i, r);
|
|
1177
1138
|
}, {});
|
|
1178
1139
|
};
|
|
1179
|
-
var On =
|
|
1140
|
+
var On = re, Nn = On;
|
|
1180
1141
|
const Cn = /* @__PURE__ */ gn(Nn);
|
|
1181
|
-
function
|
|
1182
|
-
|
|
1142
|
+
var Ke = function(e, t) {
|
|
1143
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1144
|
+
r.__proto__ = n;
|
|
1145
|
+
} || function(r, n) {
|
|
1146
|
+
for (var i in n)
|
|
1147
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1148
|
+
}, Ke(e, t);
|
|
1149
|
+
};
|
|
1150
|
+
function Ce(e, t) {
|
|
1151
|
+
if (typeof t != "function" && t !== null)
|
|
1152
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1153
|
+
Ke(e, t);
|
|
1154
|
+
function r() {
|
|
1155
|
+
this.constructor = e;
|
|
1156
|
+
}
|
|
1157
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1158
|
+
}
|
|
1159
|
+
var U = function() {
|
|
1160
|
+
return U = Object.assign || function(t) {
|
|
1161
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1162
|
+
r = arguments[n];
|
|
1163
|
+
for (var o in r)
|
|
1164
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1165
|
+
}
|
|
1166
|
+
return t;
|
|
1167
|
+
}, U.apply(this, arguments);
|
|
1168
|
+
};
|
|
1169
|
+
function In(e, t) {
|
|
1170
|
+
var r = {};
|
|
1171
|
+
for (var n in e)
|
|
1172
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1173
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1174
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1175
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1176
|
+
return r;
|
|
1177
|
+
}
|
|
1178
|
+
function $e(e, t, r) {
|
|
1179
|
+
if (r || arguments.length === 2)
|
|
1180
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1181
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1182
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1183
|
+
}
|
|
1184
|
+
function Ue(e, t) {
|
|
1185
|
+
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Rn;
|
|
1183
1186
|
return i(e, {
|
|
1184
1187
|
cache: r,
|
|
1185
1188
|
serializer: n
|
|
1186
1189
|
});
|
|
1187
1190
|
}
|
|
1188
|
-
function
|
|
1191
|
+
function Ln(e) {
|
|
1189
1192
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1190
1193
|
}
|
|
1191
|
-
function
|
|
1192
|
-
var i =
|
|
1194
|
+
function Mn(e, t, r, n) {
|
|
1195
|
+
var i = Ln(n) ? n : r(n), o = t.get(i);
|
|
1193
1196
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1194
1197
|
}
|
|
1195
1198
|
function rr(e, t, r) {
|
|
1196
1199
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1197
1200
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1198
1201
|
}
|
|
1199
|
-
function
|
|
1202
|
+
function nr(e, t, r, n, i) {
|
|
1200
1203
|
return r.bind(t, e, n, i);
|
|
1201
1204
|
}
|
|
1202
|
-
function Ln(e, t) {
|
|
1203
|
-
var r = e.length === 1 ? tr : rr;
|
|
1204
|
-
return ot(e, this, r, t.cache.create(), t.serializer);
|
|
1205
|
-
}
|
|
1206
|
-
function Mn(e, t) {
|
|
1207
|
-
return ot(e, this, rr, t.cache.create(), t.serializer);
|
|
1208
|
-
}
|
|
1209
1205
|
function Rn(e, t) {
|
|
1210
|
-
|
|
1206
|
+
var r = e.length === 1 ? Mn : rr;
|
|
1207
|
+
return nr(e, this, r, t.cache.create(), t.serializer);
|
|
1211
1208
|
}
|
|
1212
|
-
|
|
1213
|
-
return
|
|
1214
|
-
};
|
|
1215
|
-
function st() {
|
|
1216
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1209
|
+
function Gn(e, t) {
|
|
1210
|
+
return nr(e, this, rr, t.cache.create(), t.serializer);
|
|
1217
1211
|
}
|
|
1218
|
-
|
|
1219
|
-
return
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1212
|
+
var $n = function() {
|
|
1213
|
+
return JSON.stringify(arguments);
|
|
1214
|
+
}, Un = (
|
|
1215
|
+
/** @class */
|
|
1216
|
+
function() {
|
|
1217
|
+
function e() {
|
|
1218
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1219
|
+
}
|
|
1220
|
+
return e.prototype.get = function(t) {
|
|
1221
|
+
return this.cache[t];
|
|
1222
|
+
}, e.prototype.set = function(t, r) {
|
|
1223
|
+
this.cache[t] = r;
|
|
1224
|
+
}, e;
|
|
1225
|
+
}()
|
|
1226
|
+
), Dn = {
|
|
1225
1227
|
create: function() {
|
|
1226
|
-
return new
|
|
1228
|
+
return new Un();
|
|
1227
1229
|
}
|
|
1228
|
-
},
|
|
1229
|
-
variadic:
|
|
1230
|
-
|
|
1231
|
-
|
|
1230
|
+
}, De = {
|
|
1231
|
+
variadic: Gn
|
|
1232
|
+
}, He = function() {
|
|
1233
|
+
return He = Object.assign || function(t) {
|
|
1234
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
+
r = arguments[n];
|
|
1236
|
+
for (var o in r)
|
|
1237
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
+
}
|
|
1239
|
+
return t;
|
|
1240
|
+
}, He.apply(this, arguments);
|
|
1241
|
+
};
|
|
1242
|
+
var y;
|
|
1232
1243
|
(function(e) {
|
|
1233
1244
|
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";
|
|
1234
1245
|
})(y || (y = {}));
|
|
1235
|
-
var
|
|
1246
|
+
var S;
|
|
1236
1247
|
(function(e) {
|
|
1237
1248
|
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";
|
|
1238
|
-
})(
|
|
1239
|
-
var
|
|
1249
|
+
})(S || (S = {}));
|
|
1250
|
+
var ne;
|
|
1240
1251
|
(function(e) {
|
|
1241
1252
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1242
|
-
})(
|
|
1243
|
-
function
|
|
1244
|
-
return e.type ===
|
|
1245
|
-
}
|
|
1246
|
-
function Un(e) {
|
|
1247
|
-
return e.type === H.argument;
|
|
1253
|
+
})(ne || (ne = {}));
|
|
1254
|
+
function Tt(e) {
|
|
1255
|
+
return e.type === S.literal;
|
|
1248
1256
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return e.type ===
|
|
1257
|
+
function Fn(e) {
|
|
1258
|
+
return e.type === S.argument;
|
|
1251
1259
|
}
|
|
1252
1260
|
function ir(e) {
|
|
1253
|
-
return e.type ===
|
|
1261
|
+
return e.type === S.number;
|
|
1254
1262
|
}
|
|
1255
1263
|
function or(e) {
|
|
1256
|
-
return e.type ===
|
|
1264
|
+
return e.type === S.date;
|
|
1257
1265
|
}
|
|
1258
1266
|
function sr(e) {
|
|
1259
|
-
return e.type ===
|
|
1267
|
+
return e.type === S.time;
|
|
1260
1268
|
}
|
|
1261
1269
|
function ar(e) {
|
|
1262
|
-
return e.type ===
|
|
1263
|
-
}
|
|
1264
|
-
function Dn(e) {
|
|
1265
|
-
return e.type === H.pound;
|
|
1270
|
+
return e.type === S.select;
|
|
1266
1271
|
}
|
|
1267
1272
|
function ur(e) {
|
|
1268
|
-
return e.type ===
|
|
1273
|
+
return e.type === S.plural;
|
|
1274
|
+
}
|
|
1275
|
+
function jn(e) {
|
|
1276
|
+
return e.type === S.pound;
|
|
1269
1277
|
}
|
|
1270
1278
|
function lr(e) {
|
|
1271
|
-
return
|
|
1279
|
+
return e.type === S.tag;
|
|
1272
1280
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1281
|
+
function hr(e) {
|
|
1282
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1275
1283
|
}
|
|
1276
|
-
|
|
1277
|
-
|
|
1284
|
+
function et(e) {
|
|
1285
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1286
|
+
}
|
|
1287
|
+
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;
|
|
1288
|
+
function Vn(e) {
|
|
1278
1289
|
var t = {};
|
|
1279
|
-
return e.replace(
|
|
1290
|
+
return e.replace(kn, function(r) {
|
|
1280
1291
|
var n = r.length;
|
|
1281
1292
|
switch (r[0]) {
|
|
1282
1293
|
case "G":
|
|
@@ -1365,11 +1376,21 @@ function jn(e) {
|
|
|
1365
1376
|
return "";
|
|
1366
1377
|
}), t;
|
|
1367
1378
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1379
|
+
var P = function() {
|
|
1380
|
+
return P = Object.assign || function(t) {
|
|
1381
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1382
|
+
r = arguments[n];
|
|
1383
|
+
for (var o in r)
|
|
1384
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1385
|
+
}
|
|
1386
|
+
return t;
|
|
1387
|
+
}, P.apply(this, arguments);
|
|
1388
|
+
};
|
|
1389
|
+
var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1390
|
+
function Wn(e) {
|
|
1370
1391
|
if (e.length === 0)
|
|
1371
1392
|
throw new Error("Number skeleton cannot be empty");
|
|
1372
|
-
for (var t = e.split(
|
|
1393
|
+
for (var t = e.split(Xn).filter(function(c) {
|
|
1373
1394
|
return c.length > 0;
|
|
1374
1395
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1375
1396
|
var o = i[n], s = o.split("/");
|
|
@@ -1384,13 +1405,13 @@ function Vn(e) {
|
|
|
1384
1405
|
}
|
|
1385
1406
|
return r;
|
|
1386
1407
|
}
|
|
1387
|
-
function
|
|
1408
|
+
function zn(e) {
|
|
1388
1409
|
return e.replace(/^(.*?)-/, "");
|
|
1389
1410
|
}
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1411
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Zn = /(\*)(0+)|(#+)(0+)|(0+)/g, pr = /^(0+)$/;
|
|
1412
|
+
function Ht(e) {
|
|
1392
1413
|
var t = {};
|
|
1393
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1414
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
|
|
1394
1415
|
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)), "";
|
|
1395
1416
|
}), t;
|
|
1396
1417
|
}
|
|
@@ -1434,7 +1455,7 @@ function mr(e) {
|
|
|
1434
1455
|
};
|
|
1435
1456
|
}
|
|
1436
1457
|
}
|
|
1437
|
-
function
|
|
1458
|
+
function Qn(e) {
|
|
1438
1459
|
var t;
|
|
1439
1460
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1440
1461
|
notation: "engineering"
|
|
@@ -1442,17 +1463,17 @@ function zn(e) {
|
|
|
1442
1463
|
notation: "scientific"
|
|
1443
1464
|
}, e = e.slice(1)), t) {
|
|
1444
1465
|
var r = e.slice(0, 2);
|
|
1445
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1466
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pr.test(e))
|
|
1446
1467
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1447
1468
|
t.minimumIntegerDigits = e.length;
|
|
1448
1469
|
}
|
|
1449
1470
|
return t;
|
|
1450
1471
|
}
|
|
1451
|
-
function
|
|
1472
|
+
function Pt(e) {
|
|
1452
1473
|
var t = {}, r = mr(e);
|
|
1453
1474
|
return r || t;
|
|
1454
1475
|
}
|
|
1455
|
-
function
|
|
1476
|
+
function Jn(e) {
|
|
1456
1477
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1457
1478
|
var i = n[r];
|
|
1458
1479
|
switch (i.stem) {
|
|
@@ -1476,7 +1497,7 @@ function Zn(e) {
|
|
|
1476
1497
|
continue;
|
|
1477
1498
|
case "measure-unit":
|
|
1478
1499
|
case "unit":
|
|
1479
|
-
t.style = "unit", t.unit =
|
|
1500
|
+
t.style = "unit", t.unit = zn(i.options[0]);
|
|
1480
1501
|
continue;
|
|
1481
1502
|
case "compact-short":
|
|
1482
1503
|
case "K":
|
|
@@ -1487,13 +1508,13 @@ function Zn(e) {
|
|
|
1487
1508
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1488
1509
|
continue;
|
|
1489
1510
|
case "scientific":
|
|
1490
|
-
t =
|
|
1491
|
-
return
|
|
1511
|
+
t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1512
|
+
return P(P({}, l), Pt(u));
|
|
1492
1513
|
}, {}));
|
|
1493
1514
|
continue;
|
|
1494
1515
|
case "engineering":
|
|
1495
|
-
t =
|
|
1496
|
-
return
|
|
1516
|
+
t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1517
|
+
return P(P({}, l), Pt(u));
|
|
1497
1518
|
}, {}));
|
|
1498
1519
|
continue;
|
|
1499
1520
|
case "notation-simple":
|
|
@@ -1538,7 +1559,7 @@ function Zn(e) {
|
|
|
1538
1559
|
case "integer-width":
|
|
1539
1560
|
if (i.options.length > 1)
|
|
1540
1561
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1541
|
-
i.options[0].replace(
|
|
1562
|
+
i.options[0].replace(Zn, function(l, u, h, f, c, d) {
|
|
1542
1563
|
if (u)
|
|
1543
1564
|
t.minimumIntegerDigits = h.length;
|
|
1544
1565
|
else {
|
|
@@ -1551,28 +1572,28 @@ function Zn(e) {
|
|
|
1551
1572
|
});
|
|
1552
1573
|
continue;
|
|
1553
1574
|
}
|
|
1554
|
-
if (
|
|
1575
|
+
if (pr.test(i.stem)) {
|
|
1555
1576
|
t.minimumIntegerDigits = i.stem.length;
|
|
1556
1577
|
continue;
|
|
1557
1578
|
}
|
|
1558
|
-
if (
|
|
1579
|
+
if (St.test(i.stem)) {
|
|
1559
1580
|
if (i.options.length > 1)
|
|
1560
1581
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1561
|
-
i.stem.replace(
|
|
1582
|
+
i.stem.replace(St, function(l, u, h, f, c, d) {
|
|
1562
1583
|
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), "";
|
|
1563
1584
|
});
|
|
1564
1585
|
var o = i.options[0];
|
|
1565
|
-
o === "w" ? t =
|
|
1586
|
+
o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Ht(o)));
|
|
1566
1587
|
continue;
|
|
1567
1588
|
}
|
|
1568
|
-
if (
|
|
1569
|
-
t =
|
|
1589
|
+
if (fr.test(i.stem)) {
|
|
1590
|
+
t = P(P({}, t), Ht(i.stem));
|
|
1570
1591
|
continue;
|
|
1571
1592
|
}
|
|
1572
1593
|
var s = mr(i.stem);
|
|
1573
|
-
s && (t =
|
|
1574
|
-
var a =
|
|
1575
|
-
a && (t =
|
|
1594
|
+
s && (t = P(P({}, t), s));
|
|
1595
|
+
var a = Qn(i.stem);
|
|
1596
|
+
a && (t = P(P({}, t), a));
|
|
1576
1597
|
}
|
|
1577
1598
|
return t;
|
|
1578
1599
|
}
|
|
@@ -2991,13 +3012,13 @@ var ye = {
|
|
|
2991
3012
|
"h"
|
|
2992
3013
|
]
|
|
2993
3014
|
};
|
|
2994
|
-
function
|
|
3015
|
+
function qn(e, t) {
|
|
2995
3016
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2996
3017
|
var i = e.charAt(n);
|
|
2997
3018
|
if (i === "j") {
|
|
2998
3019
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2999
3020
|
o++, n++;
|
|
3000
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3021
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Yn(t);
|
|
3001
3022
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3002
3023
|
r += l;
|
|
3003
3024
|
for (; s-- > 0; )
|
|
@@ -3007,7 +3028,7 @@ function Qn(e, t) {
|
|
|
3007
3028
|
}
|
|
3008
3029
|
return r;
|
|
3009
3030
|
}
|
|
3010
|
-
function
|
|
3031
|
+
function Yn(e) {
|
|
3011
3032
|
var t = e.hourCycle;
|
|
3012
3033
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3013
3034
|
e.hourCycles && // @ts-ignore
|
|
@@ -3029,20 +3050,20 @@ function Jn(e) {
|
|
|
3029
3050
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
3030
3051
|
return i[0];
|
|
3031
3052
|
}
|
|
3032
|
-
var
|
|
3053
|
+
var Fe, Kn = new RegExp("^".concat(cr.source, "*")), ei = new RegExp("".concat(cr.source, "*$"));
|
|
3033
3054
|
function E(e, t) {
|
|
3034
3055
|
return { start: e, end: t };
|
|
3035
3056
|
}
|
|
3036
|
-
var
|
|
3057
|
+
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) {
|
|
3037
3058
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3038
|
-
},
|
|
3059
|
+
}, tt = !0;
|
|
3039
3060
|
try {
|
|
3040
|
-
var
|
|
3041
|
-
|
|
3061
|
+
var li = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3062
|
+
tt = ((Fe = li.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
|
3042
3063
|
} catch {
|
|
3043
|
-
|
|
3064
|
+
tt = !1;
|
|
3044
3065
|
}
|
|
3045
|
-
var
|
|
3066
|
+
var Bt = ti ? (
|
|
3046
3067
|
// Native
|
|
3047
3068
|
function(t, r, n) {
|
|
3048
3069
|
return t.startsWith(r, n);
|
|
@@ -3052,7 +3073,7 @@ var Ht = Kn ? (
|
|
|
3052
3073
|
function(t, r, n) {
|
|
3053
3074
|
return t.slice(n, n + r.length) === r;
|
|
3054
3075
|
}
|
|
3055
|
-
),
|
|
3076
|
+
), rt = ri ? String.fromCodePoint : (
|
|
3056
3077
|
// IE11
|
|
3057
3078
|
function() {
|
|
3058
3079
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3064,9 +3085,9 @@ var Ht = Kn ? (
|
|
|
3064
3085
|
}
|
|
3065
3086
|
return n;
|
|
3066
3087
|
}
|
|
3067
|
-
),
|
|
3088
|
+
), At = (
|
|
3068
3089
|
// native
|
|
3069
|
-
|
|
3090
|
+
ni ? Object.fromEntries : (
|
|
3070
3091
|
// Ponyfill
|
|
3071
3092
|
function(t) {
|
|
3072
3093
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3076,7 +3097,7 @@ var Ht = Kn ? (
|
|
|
3076
3097
|
return r;
|
|
3077
3098
|
}
|
|
3078
3099
|
)
|
|
3079
|
-
),
|
|
3100
|
+
), dr = ii ? (
|
|
3080
3101
|
// Native
|
|
3081
3102
|
function(t, r) {
|
|
3082
3103
|
return t.codePointAt(r);
|
|
@@ -3090,7 +3111,7 @@ var Ht = Kn ? (
|
|
|
3090
3111
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3091
3112
|
}
|
|
3092
3113
|
}
|
|
3093
|
-
),
|
|
3114
|
+
), hi = oi ? (
|
|
3094
3115
|
// Native
|
|
3095
3116
|
function(t) {
|
|
3096
3117
|
return t.trimStart();
|
|
@@ -3098,9 +3119,9 @@ var Ht = Kn ? (
|
|
|
3098
3119
|
) : (
|
|
3099
3120
|
// Ponyfill
|
|
3100
3121
|
function(t) {
|
|
3101
|
-
return t.replace(
|
|
3122
|
+
return t.replace(Kn, "");
|
|
3102
3123
|
}
|
|
3103
|
-
),
|
|
3124
|
+
), ci = si ? (
|
|
3104
3125
|
// Native
|
|
3105
3126
|
function(t) {
|
|
3106
3127
|
return t.trimEnd();
|
|
@@ -3108,32 +3129,32 @@ var Ht = Kn ? (
|
|
|
3108
3129
|
) : (
|
|
3109
3130
|
// Ponyfill
|
|
3110
3131
|
function(t) {
|
|
3111
|
-
return t.replace(
|
|
3132
|
+
return t.replace(ei, "");
|
|
3112
3133
|
}
|
|
3113
3134
|
);
|
|
3114
|
-
function
|
|
3135
|
+
function br(e, t) {
|
|
3115
3136
|
return new RegExp(e, t);
|
|
3116
3137
|
}
|
|
3117
|
-
var
|
|
3118
|
-
if (
|
|
3119
|
-
var
|
|
3120
|
-
|
|
3138
|
+
var nt;
|
|
3139
|
+
if (tt) {
|
|
3140
|
+
var Ot = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3141
|
+
nt = function(t, r) {
|
|
3121
3142
|
var n;
|
|
3122
|
-
|
|
3123
|
-
var i =
|
|
3143
|
+
Ot.lastIndex = r;
|
|
3144
|
+
var i = Ot.exec(t);
|
|
3124
3145
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3125
3146
|
};
|
|
3126
3147
|
} else
|
|
3127
|
-
|
|
3148
|
+
nt = function(t, r) {
|
|
3128
3149
|
for (var n = []; ; ) {
|
|
3129
|
-
var i =
|
|
3130
|
-
if (i === void 0 ||
|
|
3150
|
+
var i = dr(t, r);
|
|
3151
|
+
if (i === void 0 || gr(i) || di(i))
|
|
3131
3152
|
break;
|
|
3132
3153
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3133
3154
|
}
|
|
3134
|
-
return
|
|
3155
|
+
return rt.apply(void 0, n);
|
|
3135
3156
|
};
|
|
3136
|
-
var
|
|
3157
|
+
var fi = (
|
|
3137
3158
|
/** @class */
|
|
3138
3159
|
function() {
|
|
3139
3160
|
function e(t, r) {
|
|
@@ -3157,14 +3178,14 @@ var hi = (
|
|
|
3157
3178
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3158
3179
|
var a = this.clonePosition();
|
|
3159
3180
|
this.bump(), i.push({
|
|
3160
|
-
type:
|
|
3181
|
+
type: S.pound,
|
|
3161
3182
|
location: E(a, this.clonePosition())
|
|
3162
3183
|
});
|
|
3163
3184
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3164
3185
|
if (n)
|
|
3165
3186
|
break;
|
|
3166
3187
|
return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3167
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3188
|
+
} else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
3168
3189
|
var s = this.parseTag(t, r);
|
|
3169
3190
|
if (s.err)
|
|
3170
3191
|
return s;
|
|
@@ -3185,7 +3206,7 @@ var hi = (
|
|
|
3185
3206
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3186
3207
|
return {
|
|
3187
3208
|
val: {
|
|
3188
|
-
type:
|
|
3209
|
+
type: S.literal,
|
|
3189
3210
|
value: "<".concat(i, "/>"),
|
|
3190
3211
|
location: E(n, this.clonePosition())
|
|
3191
3212
|
},
|
|
@@ -3197,12 +3218,12 @@ var hi = (
|
|
|
3197
3218
|
return o;
|
|
3198
3219
|
var s = o.val, a = this.clonePosition();
|
|
3199
3220
|
if (this.bumpIf("</")) {
|
|
3200
|
-
if (this.isEOF() || !
|
|
3221
|
+
if (this.isEOF() || !it(this.char()))
|
|
3201
3222
|
return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
|
|
3202
3223
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3203
3224
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3204
3225
|
val: {
|
|
3205
|
-
type:
|
|
3226
|
+
type: S.tag,
|
|
3206
3227
|
value: i,
|
|
3207
3228
|
children: s,
|
|
3208
3229
|
location: E(n, this.clonePosition())
|
|
@@ -3215,7 +3236,7 @@ var hi = (
|
|
|
3215
3236
|
return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
|
|
3216
3237
|
}, e.prototype.parseTagName = function() {
|
|
3217
3238
|
var t = this.offset();
|
|
3218
|
-
for (this.bump(); !this.isEOF() &&
|
|
3239
|
+
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
|
3219
3240
|
this.bump();
|
|
3220
3241
|
return this.message.slice(t, this.offset());
|
|
3221
3242
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3239,12 +3260,12 @@ var hi = (
|
|
|
3239
3260
|
}
|
|
3240
3261
|
var l = E(n, this.clonePosition());
|
|
3241
3262
|
return {
|
|
3242
|
-
val: { type:
|
|
3263
|
+
val: { type: S.literal, value: i, location: l },
|
|
3243
3264
|
err: null
|
|
3244
3265
|
};
|
|
3245
3266
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3246
3267
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3247
|
-
!
|
|
3268
|
+
!pi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3248
3269
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3249
3270
|
if (this.isEOF() || this.char() !== 39)
|
|
3250
3271
|
return null;
|
|
@@ -3278,12 +3299,12 @@ var hi = (
|
|
|
3278
3299
|
r.push(n);
|
|
3279
3300
|
this.bump();
|
|
3280
3301
|
}
|
|
3281
|
-
return
|
|
3302
|
+
return rt.apply(void 0, r);
|
|
3282
3303
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3283
3304
|
if (this.isEOF())
|
|
3284
3305
|
return null;
|
|
3285
3306
|
var n = this.char();
|
|
3286
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3307
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
|
|
3287
3308
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3288
3309
|
var n = this.clonePosition();
|
|
3289
3310
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3299,7 +3320,7 @@ var hi = (
|
|
|
3299
3320
|
case 125:
|
|
3300
3321
|
return this.bump(), {
|
|
3301
3322
|
val: {
|
|
3302
|
-
type:
|
|
3323
|
+
type: S.argument,
|
|
3303
3324
|
// value does not include the opening and closing braces.
|
|
3304
3325
|
value: i,
|
|
3305
3326
|
location: E(n, this.clonePosition())
|
|
@@ -3312,7 +3333,7 @@ var hi = (
|
|
|
3312
3333
|
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3313
3334
|
}
|
|
3314
3335
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3315
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3336
|
+
var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
|
|
3316
3337
|
this.bumpTo(i);
|
|
3317
3338
|
var o = this.clonePosition(), s = E(t, o);
|
|
3318
3339
|
return { value: n, location: s };
|
|
@@ -3331,7 +3352,7 @@ var hi = (
|
|
|
3331
3352
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3332
3353
|
if (f.err)
|
|
3333
3354
|
return f;
|
|
3334
|
-
var c =
|
|
3355
|
+
var c = ci(f.val);
|
|
3335
3356
|
if (c.length === 0)
|
|
3336
3357
|
return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3337
3358
|
var d = E(h, this.clonePosition());
|
|
@@ -3341,25 +3362,25 @@ var hi = (
|
|
|
3341
3362
|
if (b.err)
|
|
3342
3363
|
return b;
|
|
3343
3364
|
var g = E(i, this.clonePosition());
|
|
3344
|
-
if (u &&
|
|
3345
|
-
var
|
|
3365
|
+
if (u && Bt(u?.style, "::", 0)) {
|
|
3366
|
+
var T = hi(u.style.slice(2));
|
|
3346
3367
|
if (a === "number") {
|
|
3347
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3368
|
+
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3348
3369
|
return f.err ? f : {
|
|
3349
|
-
val: { type:
|
|
3370
|
+
val: { type: S.number, value: n, location: g, style: f.val },
|
|
3350
3371
|
err: null
|
|
3351
3372
|
};
|
|
3352
3373
|
} else {
|
|
3353
|
-
if (
|
|
3374
|
+
if (T.length === 0)
|
|
3354
3375
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3355
|
-
var A =
|
|
3356
|
-
this.locale && (A =
|
|
3376
|
+
var A = T;
|
|
3377
|
+
this.locale && (A = qn(T, this.locale));
|
|
3357
3378
|
var c = {
|
|
3358
|
-
type:
|
|
3379
|
+
type: ne.dateTime,
|
|
3359
3380
|
pattern: A,
|
|
3360
3381
|
location: u.styleLocation,
|
|
3361
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3362
|
-
}, _ = a === "date" ?
|
|
3382
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(A) : {}
|
|
3383
|
+
}, _ = a === "date" ? S.date : S.time;
|
|
3363
3384
|
return {
|
|
3364
3385
|
val: { type: _, value: n, location: g, style: c },
|
|
3365
3386
|
err: null
|
|
@@ -3368,7 +3389,7 @@ var hi = (
|
|
|
3368
3389
|
}
|
|
3369
3390
|
return {
|
|
3370
3391
|
val: {
|
|
3371
|
-
type: a === "number" ?
|
|
3392
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3372
3393
|
value: n,
|
|
3373
3394
|
location: g,
|
|
3374
3395
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3379,21 +3400,21 @@ var hi = (
|
|
|
3379
3400
|
case "plural":
|
|
3380
3401
|
case "selectordinal":
|
|
3381
3402
|
case "select": {
|
|
3382
|
-
var
|
|
3403
|
+
var m = this.clonePosition();
|
|
3383
3404
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3384
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3405
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(m, He({}, m)));
|
|
3385
3406
|
this.bumpSpace();
|
|
3386
|
-
var
|
|
3387
|
-
if (a !== "select" &&
|
|
3407
|
+
var H = this.parseIdentifierIfPossible(), w = 0;
|
|
3408
|
+
if (a !== "select" && H.value === "offset") {
|
|
3388
3409
|
if (!this.bumpIf(":"))
|
|
3389
3410
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3390
3411
|
this.bumpSpace();
|
|
3391
3412
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3392
3413
|
if (f.err)
|
|
3393
3414
|
return f;
|
|
3394
|
-
this.bumpSpace(),
|
|
3415
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), w = f.val;
|
|
3395
3416
|
}
|
|
3396
|
-
var I = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3417
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3397
3418
|
if (I.err)
|
|
3398
3419
|
return I;
|
|
3399
3420
|
var b = this.tryParseArgumentClose(i);
|
|
@@ -3402,17 +3423,17 @@ var hi = (
|
|
|
3402
3423
|
var M = E(i, this.clonePosition());
|
|
3403
3424
|
return a === "select" ? {
|
|
3404
3425
|
val: {
|
|
3405
|
-
type:
|
|
3426
|
+
type: S.select,
|
|
3406
3427
|
value: n,
|
|
3407
|
-
options:
|
|
3428
|
+
options: At(I.val),
|
|
3408
3429
|
location: M
|
|
3409
3430
|
},
|
|
3410
3431
|
err: null
|
|
3411
3432
|
} : {
|
|
3412
3433
|
val: {
|
|
3413
|
-
type:
|
|
3434
|
+
type: S.plural,
|
|
3414
3435
|
value: n,
|
|
3415
|
-
options:
|
|
3436
|
+
options: At(I.val),
|
|
3416
3437
|
offset: w,
|
|
3417
3438
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3418
3439
|
location: M
|
|
@@ -3463,16 +3484,16 @@ var hi = (
|
|
|
3463
3484
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3464
3485
|
var n = [];
|
|
3465
3486
|
try {
|
|
3466
|
-
n =
|
|
3487
|
+
n = Wn(t);
|
|
3467
3488
|
} catch {
|
|
3468
3489
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3469
3490
|
}
|
|
3470
3491
|
return {
|
|
3471
3492
|
val: {
|
|
3472
|
-
type:
|
|
3493
|
+
type: ne.number,
|
|
3473
3494
|
tokens: n,
|
|
3474
3495
|
location: r,
|
|
3475
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3496
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
|
|
3476
3497
|
},
|
|
3477
3498
|
err: null
|
|
3478
3499
|
};
|
|
@@ -3520,7 +3541,7 @@ var hi = (
|
|
|
3520
3541
|
break;
|
|
3521
3542
|
}
|
|
3522
3543
|
var l = E(i, this.clonePosition());
|
|
3523
|
-
return o ? (s *= n,
|
|
3544
|
+
return o ? (s *= n, ui(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3524
3545
|
}, e.prototype.offset = function() {
|
|
3525
3546
|
return this.position.offset;
|
|
3526
3547
|
}, e.prototype.isEOF = function() {
|
|
@@ -3535,7 +3556,7 @@ var hi = (
|
|
|
3535
3556
|
var t = this.position.offset;
|
|
3536
3557
|
if (t >= this.message.length)
|
|
3537
3558
|
throw Error("out of bound");
|
|
3538
|
-
var r =
|
|
3559
|
+
var r = dr(this.message, t);
|
|
3539
3560
|
if (r === void 0)
|
|
3540
3561
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3541
3562
|
return r;
|
|
@@ -3554,7 +3575,7 @@ var hi = (
|
|
|
3554
3575
|
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);
|
|
3555
3576
|
}
|
|
3556
3577
|
}, e.prototype.bumpIf = function(t) {
|
|
3557
|
-
if (
|
|
3578
|
+
if (Bt(this.message, t, this.offset())) {
|
|
3558
3579
|
for (var r = 0; r < t.length; r++)
|
|
3559
3580
|
this.bump();
|
|
3560
3581
|
return !0;
|
|
@@ -3576,7 +3597,7 @@ var hi = (
|
|
|
3576
3597
|
break;
|
|
3577
3598
|
}
|
|
3578
3599
|
}, e.prototype.bumpSpace = function() {
|
|
3579
|
-
for (; !this.isEOF() &&
|
|
3600
|
+
for (; !this.isEOF() && gr(this.char()); )
|
|
3580
3601
|
this.bump();
|
|
3581
3602
|
}, e.prototype.peek = function() {
|
|
3582
3603
|
if (this.isEOF())
|
|
@@ -3586,47 +3607,47 @@ var hi = (
|
|
|
3586
3607
|
}, e;
|
|
3587
3608
|
}()
|
|
3588
3609
|
);
|
|
3589
|
-
function
|
|
3610
|
+
function it(e) {
|
|
3590
3611
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3591
3612
|
}
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3613
|
+
function pi(e) {
|
|
3614
|
+
return it(e) || e === 47;
|
|
3594
3615
|
}
|
|
3595
|
-
function
|
|
3616
|
+
function mi(e) {
|
|
3596
3617
|
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;
|
|
3597
3618
|
}
|
|
3598
|
-
function
|
|
3619
|
+
function gr(e) {
|
|
3599
3620
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3600
3621
|
}
|
|
3601
|
-
function
|
|
3622
|
+
function di(e) {
|
|
3602
3623
|
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;
|
|
3603
3624
|
}
|
|
3604
|
-
function
|
|
3625
|
+
function ot(e) {
|
|
3605
3626
|
e.forEach(function(t) {
|
|
3606
|
-
if (delete t.location,
|
|
3627
|
+
if (delete t.location, ar(t) || ur(t))
|
|
3607
3628
|
for (var r in t.options)
|
|
3608
|
-
delete t.options[r].location,
|
|
3629
|
+
delete t.options[r].location, ot(t.options[r].value);
|
|
3609
3630
|
else
|
|
3610
|
-
|
|
3631
|
+
ir(t) && hr(t.style) || (or(t) || sr(t)) && et(t.style) ? delete t.style.location : lr(t) && ot(t.children);
|
|
3611
3632
|
});
|
|
3612
3633
|
}
|
|
3613
|
-
function
|
|
3614
|
-
t === void 0 && (t = {}), t =
|
|
3615
|
-
var r = new
|
|
3634
|
+
function bi(e, t) {
|
|
3635
|
+
t === void 0 && (t = {}), t = He({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3636
|
+
var r = new fi(e, t).parse();
|
|
3616
3637
|
if (r.err) {
|
|
3617
3638
|
var n = SyntaxError(y[r.err.kind]);
|
|
3618
3639
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3619
3640
|
}
|
|
3620
|
-
return t?.captureLocation ||
|
|
3641
|
+
return t?.captureLocation || ot(r.val), r.val;
|
|
3621
3642
|
}
|
|
3622
|
-
var
|
|
3643
|
+
var ie;
|
|
3623
3644
|
(function(e) {
|
|
3624
3645
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3625
|
-
})(
|
|
3626
|
-
var
|
|
3646
|
+
})(ie || (ie = {}));
|
|
3647
|
+
var Ie = (
|
|
3627
3648
|
/** @class */
|
|
3628
3649
|
function(e) {
|
|
3629
|
-
|
|
3650
|
+
Ce(t, e);
|
|
3630
3651
|
function t(r, n, i) {
|
|
3631
3652
|
var o = e.call(this, r) || this;
|
|
3632
3653
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3635,48 +3656,48 @@ var Ne = (
|
|
|
3635
3656
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3636
3657
|
}, t;
|
|
3637
3658
|
}(Error)
|
|
3638
|
-
),
|
|
3659
|
+
), Nt = (
|
|
3639
3660
|
/** @class */
|
|
3640
3661
|
function(e) {
|
|
3641
|
-
|
|
3662
|
+
Ce(t, e);
|
|
3642
3663
|
function t(r, n, i, o) {
|
|
3643
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3664
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3644
3665
|
}
|
|
3645
3666
|
return t;
|
|
3646
|
-
}(
|
|
3647
|
-
),
|
|
3667
|
+
}(Ie)
|
|
3668
|
+
), gi = (
|
|
3648
3669
|
/** @class */
|
|
3649
3670
|
function(e) {
|
|
3650
|
-
|
|
3671
|
+
Ce(t, e);
|
|
3651
3672
|
function t(r, n, i) {
|
|
3652
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3673
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3653
3674
|
}
|
|
3654
3675
|
return t;
|
|
3655
|
-
}(
|
|
3656
|
-
),
|
|
3676
|
+
}(Ie)
|
|
3677
|
+
), vi = (
|
|
3657
3678
|
/** @class */
|
|
3658
3679
|
function(e) {
|
|
3659
|
-
|
|
3680
|
+
Ce(t, e);
|
|
3660
3681
|
function t(r, n) {
|
|
3661
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3682
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3662
3683
|
}
|
|
3663
3684
|
return t;
|
|
3664
|
-
}(
|
|
3685
|
+
}(Ie)
|
|
3665
3686
|
), C;
|
|
3666
3687
|
(function(e) {
|
|
3667
3688
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3668
3689
|
})(C || (C = {}));
|
|
3669
|
-
function
|
|
3690
|
+
function yi(e) {
|
|
3670
3691
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3671
3692
|
var n = t[t.length - 1];
|
|
3672
3693
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3673
3694
|
}, []);
|
|
3674
3695
|
}
|
|
3675
|
-
function
|
|
3696
|
+
function _i(e) {
|
|
3676
3697
|
return typeof e == "function";
|
|
3677
3698
|
}
|
|
3678
3699
|
function xe(e, t, r, n, i, o, s) {
|
|
3679
|
-
if (e.length === 1 &&
|
|
3700
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3680
3701
|
return [
|
|
3681
3702
|
{
|
|
3682
3703
|
type: C.literal,
|
|
@@ -3685,14 +3706,14 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3685
3706
|
];
|
|
3686
3707
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3687
3708
|
var h = u[l];
|
|
3688
|
-
if (
|
|
3709
|
+
if (Tt(h)) {
|
|
3689
3710
|
a.push({
|
|
3690
3711
|
type: C.literal,
|
|
3691
3712
|
value: h.value
|
|
3692
3713
|
});
|
|
3693
3714
|
continue;
|
|
3694
3715
|
}
|
|
3695
|
-
if (
|
|
3716
|
+
if (jn(h)) {
|
|
3696
3717
|
typeof o == "number" && a.push({
|
|
3697
3718
|
type: C.literal,
|
|
3698
3719
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3701,44 +3722,44 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3701
3722
|
}
|
|
3702
3723
|
var f = h.value;
|
|
3703
3724
|
if (!(i && f in i))
|
|
3704
|
-
throw new
|
|
3725
|
+
throw new vi(f, s);
|
|
3705
3726
|
var c = i[f];
|
|
3706
|
-
if (
|
|
3727
|
+
if (Fn(h)) {
|
|
3707
3728
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3708
3729
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3709
3730
|
value: c
|
|
3710
3731
|
});
|
|
3711
3732
|
continue;
|
|
3712
3733
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3734
|
+
if (or(h)) {
|
|
3735
|
+
var d = typeof h.style == "string" ? n.date[h.style] : et(h.style) ? h.style.parsedOptions : void 0;
|
|
3715
3736
|
a.push({
|
|
3716
3737
|
type: C.literal,
|
|
3717
3738
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3718
3739
|
});
|
|
3719
3740
|
continue;
|
|
3720
3741
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3742
|
+
if (sr(h)) {
|
|
3743
|
+
var d = typeof h.style == "string" ? n.time[h.style] : et(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3723
3744
|
a.push({
|
|
3724
3745
|
type: C.literal,
|
|
3725
3746
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3726
3747
|
});
|
|
3727
3748
|
continue;
|
|
3728
3749
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3750
|
+
if (ir(h)) {
|
|
3751
|
+
var d = typeof h.style == "string" ? n.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
|
|
3731
3752
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3732
3753
|
type: C.literal,
|
|
3733
3754
|
value: r.getNumberFormat(t, d).format(c)
|
|
3734
3755
|
});
|
|
3735
3756
|
continue;
|
|
3736
3757
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var b = h.children, g = h.value,
|
|
3739
|
-
if (!
|
|
3740
|
-
throw new
|
|
3741
|
-
var A = xe(b, t, r, n, i, o), _ =
|
|
3758
|
+
if (lr(h)) {
|
|
3759
|
+
var b = h.children, g = h.value, T = i[g];
|
|
3760
|
+
if (!_i(T))
|
|
3761
|
+
throw new gi(g, "function", s);
|
|
3762
|
+
var A = xe(b, t, r, n, i, o), _ = T(A.map(function(w) {
|
|
3742
3763
|
return w.value;
|
|
3743
3764
|
}));
|
|
3744
3765
|
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(w) {
|
|
@@ -3748,42 +3769,42 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3748
3769
|
};
|
|
3749
3770
|
}));
|
|
3750
3771
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3753
|
-
if (!
|
|
3754
|
-
throw new
|
|
3755
|
-
a.push.apply(a, xe(
|
|
3772
|
+
if (ar(h)) {
|
|
3773
|
+
var m = h.options[c] || h.options.other;
|
|
3774
|
+
if (!m)
|
|
3775
|
+
throw new Nt(h.value, c, Object.keys(h.options), s);
|
|
3776
|
+
a.push.apply(a, xe(m.value, t, r, n, i));
|
|
3756
3777
|
continue;
|
|
3757
3778
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var
|
|
3760
|
-
if (!
|
|
3779
|
+
if (ur(h)) {
|
|
3780
|
+
var m = h.options["=".concat(c)];
|
|
3781
|
+
if (!m) {
|
|
3761
3782
|
if (!Intl.PluralRules)
|
|
3762
|
-
throw new
|
|
3783
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
3763
3784
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3764
|
-
`,
|
|
3765
|
-
var
|
|
3766
|
-
|
|
3785
|
+
`, ie.MISSING_INTL_API, s);
|
|
3786
|
+
var H = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3787
|
+
m = h.options[H] || h.options.other;
|
|
3767
3788
|
}
|
|
3768
|
-
if (!
|
|
3769
|
-
throw new
|
|
3770
|
-
a.push.apply(a, xe(
|
|
3789
|
+
if (!m)
|
|
3790
|
+
throw new Nt(h.value, c, Object.keys(h.options), s);
|
|
3791
|
+
a.push.apply(a, xe(m.value, t, r, n, i, c - (h.offset || 0)));
|
|
3771
3792
|
continue;
|
|
3772
3793
|
}
|
|
3773
3794
|
}
|
|
3774
|
-
return
|
|
3795
|
+
return yi(a);
|
|
3775
3796
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return t ?
|
|
3778
|
-
return r[n] =
|
|
3797
|
+
function Ei(e, t) {
|
|
3798
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3799
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3779
3800
|
}, {})) : e;
|
|
3780
3801
|
}
|
|
3781
|
-
function
|
|
3802
|
+
function xi(e, t) {
|
|
3782
3803
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3783
|
-
return r[n] =
|
|
3784
|
-
},
|
|
3804
|
+
return r[n] = Ei(e[n], t[n]), r;
|
|
3805
|
+
}, U({}, e)) : e;
|
|
3785
3806
|
}
|
|
3786
|
-
function
|
|
3807
|
+
function je(e) {
|
|
3787
3808
|
return {
|
|
3788
3809
|
create: function() {
|
|
3789
3810
|
return {
|
|
@@ -3797,39 +3818,39 @@ function De(e) {
|
|
|
3797
3818
|
}
|
|
3798
3819
|
};
|
|
3799
3820
|
}
|
|
3800
|
-
function
|
|
3821
|
+
function wi(e) {
|
|
3801
3822
|
return e === void 0 && (e = {
|
|
3802
3823
|
number: {},
|
|
3803
3824
|
dateTime: {},
|
|
3804
3825
|
pluralRules: {}
|
|
3805
3826
|
}), {
|
|
3806
|
-
getNumberFormat:
|
|
3827
|
+
getNumberFormat: Ue(function() {
|
|
3807
3828
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3808
3829
|
r[n] = arguments[n];
|
|
3809
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3830
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3810
3831
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3832
|
+
cache: je(e.number),
|
|
3833
|
+
strategy: De.variadic
|
|
3813
3834
|
}),
|
|
3814
|
-
getDateTimeFormat:
|
|
3835
|
+
getDateTimeFormat: Ue(function() {
|
|
3815
3836
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3837
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3838
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3818
3839
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3840
|
+
cache: je(e.dateTime),
|
|
3841
|
+
strategy: De.variadic
|
|
3821
3842
|
}),
|
|
3822
|
-
getPluralRules:
|
|
3843
|
+
getPluralRules: Ue(function() {
|
|
3823
3844
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3845
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3846
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
3826
3847
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3848
|
+
cache: je(e.pluralRules),
|
|
3849
|
+
strategy: De.variadic
|
|
3829
3850
|
})
|
|
3830
3851
|
};
|
|
3831
3852
|
}
|
|
3832
|
-
var
|
|
3853
|
+
var Ti = (
|
|
3833
3854
|
/** @class */
|
|
3834
3855
|
function() {
|
|
3835
3856
|
function e(t, r, n, i) {
|
|
@@ -3861,13 +3882,13 @@ var xi = (
|
|
|
3861
3882
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3862
3883
|
var s = i || {};
|
|
3863
3884
|
s.formatters;
|
|
3864
|
-
var a =
|
|
3865
|
-
this.ast = e.__parse(t,
|
|
3885
|
+
var a = In(s, ["formatters"]);
|
|
3886
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3866
3887
|
} else
|
|
3867
3888
|
this.ast = t;
|
|
3868
3889
|
if (!Array.isArray(this.ast))
|
|
3869
3890
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3870
|
-
this.formats =
|
|
3891
|
+
this.formats = xi(e.formats, n), this.formatters = i && i.formatters || wi(this.formatterCache);
|
|
3871
3892
|
}
|
|
3872
3893
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3873
3894
|
get: function() {
|
|
@@ -3880,7 +3901,7 @@ var xi = (
|
|
|
3880
3901
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3881
3902
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3882
3903
|
}
|
|
3883
|
-
}, e.__parse =
|
|
3904
|
+
}, e.__parse = bi, e.formats = {
|
|
3884
3905
|
number: {
|
|
3885
3906
|
integer: {
|
|
3886
3907
|
maximumFractionDigits: 0
|
|
@@ -3941,7 +3962,7 @@ var xi = (
|
|
|
3941
3962
|
}, e;
|
|
3942
3963
|
}()
|
|
3943
3964
|
);
|
|
3944
|
-
function
|
|
3965
|
+
function Si(e, t) {
|
|
3945
3966
|
if (t == null)
|
|
3946
3967
|
return;
|
|
3947
3968
|
if (t in e)
|
|
@@ -3962,92 +3983,92 @@ function wi(e, t) {
|
|
|
3962
3983
|
n = void 0;
|
|
3963
3984
|
return n;
|
|
3964
3985
|
}
|
|
3965
|
-
const X = {},
|
|
3986
|
+
const X = {}, Hi = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), vr = (e, t) => {
|
|
3966
3987
|
if (t == null)
|
|
3967
3988
|
return;
|
|
3968
3989
|
if (t in X && e in X[t])
|
|
3969
3990
|
return X[t][e];
|
|
3970
|
-
const r =
|
|
3991
|
+
const r = Le(t);
|
|
3971
3992
|
for (let n = 0; n < r.length; n++) {
|
|
3972
|
-
const i = r[n], o =
|
|
3993
|
+
const i = r[n], o = Bi(i, e);
|
|
3973
3994
|
if (o)
|
|
3974
|
-
return
|
|
3995
|
+
return Hi(e, t, o);
|
|
3975
3996
|
}
|
|
3976
3997
|
};
|
|
3977
|
-
let
|
|
3978
|
-
const
|
|
3979
|
-
function
|
|
3980
|
-
return
|
|
3998
|
+
let lt;
|
|
3999
|
+
const ue = Ne({});
|
|
4000
|
+
function Pi(e) {
|
|
4001
|
+
return lt[e] || null;
|
|
3981
4002
|
}
|
|
3982
|
-
function
|
|
3983
|
-
return e in
|
|
4003
|
+
function yr(e) {
|
|
4004
|
+
return e in lt;
|
|
3984
4005
|
}
|
|
3985
|
-
function
|
|
3986
|
-
if (!
|
|
4006
|
+
function Bi(e, t) {
|
|
4007
|
+
if (!yr(e))
|
|
3987
4008
|
return null;
|
|
3988
|
-
const r =
|
|
3989
|
-
return
|
|
4009
|
+
const r = Pi(e);
|
|
4010
|
+
return Si(r, t);
|
|
3990
4011
|
}
|
|
3991
|
-
function
|
|
4012
|
+
function Ai(e) {
|
|
3992
4013
|
if (e == null)
|
|
3993
4014
|
return;
|
|
3994
|
-
const t =
|
|
4015
|
+
const t = Le(e);
|
|
3995
4016
|
for (let r = 0; r < t.length; r++) {
|
|
3996
4017
|
const n = t[r];
|
|
3997
|
-
if (
|
|
4018
|
+
if (yr(n))
|
|
3998
4019
|
return n;
|
|
3999
4020
|
}
|
|
4000
4021
|
}
|
|
4001
|
-
function
|
|
4002
|
-
delete X[e],
|
|
4022
|
+
function _r(e, ...t) {
|
|
4023
|
+
delete X[e], ue.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
4003
4024
|
}
|
|
4004
|
-
|
|
4005
|
-
[
|
|
4025
|
+
ae(
|
|
4026
|
+
[ue],
|
|
4006
4027
|
([e]) => Object.keys(e)
|
|
4007
4028
|
);
|
|
4008
|
-
|
|
4029
|
+
ue.subscribe((e) => lt = e);
|
|
4009
4030
|
const we = {};
|
|
4010
|
-
function
|
|
4031
|
+
function Oi(e, t) {
|
|
4011
4032
|
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
4012
4033
|
}
|
|
4013
|
-
function
|
|
4034
|
+
function Er(e) {
|
|
4014
4035
|
return we[e];
|
|
4015
4036
|
}
|
|
4016
|
-
function
|
|
4017
|
-
return
|
|
4018
|
-
const r =
|
|
4037
|
+
function Ni(e) {
|
|
4038
|
+
return Le(e).map((t) => {
|
|
4039
|
+
const r = Er(t);
|
|
4019
4040
|
return [t, r ? [...r] : []];
|
|
4020
4041
|
}).filter(([, t]) => t.length > 0);
|
|
4021
4042
|
}
|
|
4022
|
-
function
|
|
4023
|
-
return e == null ? !1 :
|
|
4043
|
+
function st(e) {
|
|
4044
|
+
return e == null ? !1 : Le(e).some(
|
|
4024
4045
|
(t) => {
|
|
4025
4046
|
var r;
|
|
4026
|
-
return (r =
|
|
4047
|
+
return (r = Er(t)) == null ? void 0 : r.size;
|
|
4027
4048
|
}
|
|
4028
4049
|
);
|
|
4029
4050
|
}
|
|
4030
|
-
function
|
|
4051
|
+
function Ci(e, t) {
|
|
4031
4052
|
return Promise.all(
|
|
4032
|
-
t.map((n) => (
|
|
4033
|
-
).then((n) =>
|
|
4034
|
-
}
|
|
4035
|
-
const
|
|
4036
|
-
function
|
|
4037
|
-
if (!
|
|
4038
|
-
return e in
|
|
4039
|
-
const t =
|
|
4040
|
-
return
|
|
4053
|
+
t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
|
|
4054
|
+
).then((n) => _r(e, ...n));
|
|
4055
|
+
}
|
|
4056
|
+
const he = {};
|
|
4057
|
+
function xr(e) {
|
|
4058
|
+
if (!st(e))
|
|
4059
|
+
return e in he ? he[e] : Promise.resolve();
|
|
4060
|
+
const t = Ni(e);
|
|
4061
|
+
return he[e] = Promise.all(
|
|
4041
4062
|
t.map(
|
|
4042
|
-
([r, n]) =>
|
|
4063
|
+
([r, n]) => Ci(r, n)
|
|
4043
4064
|
)
|
|
4044
4065
|
).then(() => {
|
|
4045
|
-
if (
|
|
4046
|
-
return
|
|
4047
|
-
delete
|
|
4048
|
-
}),
|
|
4066
|
+
if (st(e))
|
|
4067
|
+
return xr(e);
|
|
4068
|
+
delete he[e];
|
|
4069
|
+
}), he[e];
|
|
4049
4070
|
}
|
|
4050
|
-
const
|
|
4071
|
+
const Ii = {
|
|
4051
4072
|
number: {
|
|
4052
4073
|
scientific: { notation: "scientific" },
|
|
4053
4074
|
engineering: { notation: "engineering" },
|
|
@@ -4076,135 +4097,135 @@ const Ni = {
|
|
|
4076
4097
|
timeZoneName: "short"
|
|
4077
4098
|
}
|
|
4078
4099
|
}
|
|
4079
|
-
},
|
|
4100
|
+
}, Li = {
|
|
4080
4101
|
fallbackLocale: null,
|
|
4081
4102
|
loadingDelay: 200,
|
|
4082
|
-
formats:
|
|
4103
|
+
formats: Ii,
|
|
4083
4104
|
warnOnMissingMessages: !0,
|
|
4084
4105
|
handleMissingMessage: void 0,
|
|
4085
4106
|
ignoreTag: !0
|
|
4086
|
-
},
|
|
4087
|
-
function
|
|
4088
|
-
return
|
|
4107
|
+
}, Mi = Li;
|
|
4108
|
+
function oe() {
|
|
4109
|
+
return Mi;
|
|
4089
4110
|
}
|
|
4090
|
-
const
|
|
4091
|
-
var
|
|
4111
|
+
const ke = Ne(!1);
|
|
4112
|
+
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) => {
|
|
4092
4113
|
for (var r in t || (t = {}))
|
|
4093
|
-
|
|
4094
|
-
if (
|
|
4095
|
-
for (var r of
|
|
4096
|
-
|
|
4114
|
+
Ui.call(t, r) && It(e, r, t[r]);
|
|
4115
|
+
if (Ct)
|
|
4116
|
+
for (var r of Ct(t))
|
|
4117
|
+
Di.call(t, r) && It(e, r, t[r]);
|
|
4097
4118
|
return e;
|
|
4098
|
-
},
|
|
4099
|
-
let
|
|
4100
|
-
const
|
|
4101
|
-
function
|
|
4119
|
+
}, ji = (e, t) => Gi(e, $i(t));
|
|
4120
|
+
let at;
|
|
4121
|
+
const Pe = Ne(null);
|
|
4122
|
+
function Lt(e) {
|
|
4102
4123
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4103
4124
|
}
|
|
4104
|
-
function
|
|
4105
|
-
const r =
|
|
4106
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4125
|
+
function Le(e, t = oe().fallbackLocale) {
|
|
4126
|
+
const r = Lt(e);
|
|
4127
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Lt(t)])] : r;
|
|
4107
4128
|
}
|
|
4108
4129
|
function J() {
|
|
4109
|
-
return
|
|
4130
|
+
return at ?? void 0;
|
|
4110
4131
|
}
|
|
4111
|
-
|
|
4112
|
-
|
|
4132
|
+
Pe.subscribe((e) => {
|
|
4133
|
+
at = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4113
4134
|
});
|
|
4114
|
-
const
|
|
4115
|
-
if (e &&
|
|
4116
|
-
const { loadingDelay: t } =
|
|
4135
|
+
const ki = (e) => {
|
|
4136
|
+
if (e && Ai(e) && st(e)) {
|
|
4137
|
+
const { loadingDelay: t } = oe();
|
|
4117
4138
|
let r;
|
|
4118
4139
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4119
|
-
() =>
|
|
4140
|
+
() => ke.set(!0),
|
|
4120
4141
|
t
|
|
4121
|
-
) :
|
|
4122
|
-
|
|
4142
|
+
) : ke.set(!0), xr(e).then(() => {
|
|
4143
|
+
Pe.set(e);
|
|
4123
4144
|
}).finally(() => {
|
|
4124
|
-
clearTimeout(r),
|
|
4145
|
+
clearTimeout(r), ke.set(!1);
|
|
4125
4146
|
});
|
|
4126
4147
|
}
|
|
4127
|
-
return
|
|
4128
|
-
}, z =
|
|
4129
|
-
set:
|
|
4130
|
-
}),
|
|
4148
|
+
return Pe.set(e);
|
|
4149
|
+
}, z = ji(Fi({}, Pe), {
|
|
4150
|
+
set: ki
|
|
4151
|
+
}), Me = (e) => {
|
|
4131
4152
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4132
4153
|
return (n) => {
|
|
4133
4154
|
const i = JSON.stringify(n);
|
|
4134
4155
|
return i in t ? t[i] : t[i] = e(n);
|
|
4135
4156
|
};
|
|
4136
4157
|
};
|
|
4137
|
-
var
|
|
4158
|
+
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, ht = (e, t) => {
|
|
4138
4159
|
for (var r in t || (t = {}))
|
|
4139
|
-
|
|
4160
|
+
wr.call(t, r) && Mt(e, r, t[r]);
|
|
4140
4161
|
if (Be)
|
|
4141
4162
|
for (var r of Be(t))
|
|
4142
|
-
|
|
4163
|
+
Tr.call(t, r) && Mt(e, r, t[r]);
|
|
4143
4164
|
return e;
|
|
4144
|
-
},
|
|
4165
|
+
}, le = (e, t) => {
|
|
4145
4166
|
var r = {};
|
|
4146
4167
|
for (var n in e)
|
|
4147
|
-
|
|
4168
|
+
wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4148
4169
|
if (e != null && Be)
|
|
4149
4170
|
for (var n of Be(e))
|
|
4150
|
-
t.indexOf(n) < 0 &&
|
|
4171
|
+
t.indexOf(n) < 0 && Tr.call(e, n) && (r[n] = e[n]);
|
|
4151
4172
|
return r;
|
|
4152
4173
|
};
|
|
4153
|
-
const
|
|
4154
|
-
const { formats: r } =
|
|
4174
|
+
const me = (e, t) => {
|
|
4175
|
+
const { formats: r } = oe();
|
|
4155
4176
|
if (e in r && t in r[e])
|
|
4156
4177
|
return r[e][t];
|
|
4157
4178
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4158
|
-
},
|
|
4179
|
+
}, Xi = Me(
|
|
4159
4180
|
(e) => {
|
|
4160
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4161
4182
|
if (r == null)
|
|
4162
4183
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4163
|
-
return n && (i =
|
|
4184
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
4164
4185
|
}
|
|
4165
|
-
),
|
|
4186
|
+
), Wi = Me(
|
|
4166
4187
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4168
4189
|
if (r == null)
|
|
4169
4190
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4170
|
-
return n ? i =
|
|
4191
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4171
4192
|
}
|
|
4172
|
-
),
|
|
4193
|
+
), zi = Me(
|
|
4173
4194
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4195
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4175
4196
|
if (r == null)
|
|
4176
4197
|
throw new Error(
|
|
4177
4198
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4178
4199
|
);
|
|
4179
|
-
return n ? i =
|
|
4200
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4180
4201
|
}
|
|
4181
|
-
),
|
|
4202
|
+
), Zi = (e = {}) => {
|
|
4182
4203
|
var t = e, {
|
|
4183
4204
|
locale: r = J()
|
|
4184
|
-
} = t, n =
|
|
4205
|
+
} = t, n = le(t, [
|
|
4185
4206
|
"locale"
|
|
4186
4207
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4208
|
+
return Xi(ht({ locale: r }, n));
|
|
4209
|
+
}, Qi = (e = {}) => {
|
|
4189
4210
|
var t = e, {
|
|
4190
4211
|
locale: r = J()
|
|
4191
|
-
} = t, n =
|
|
4212
|
+
} = t, n = le(t, [
|
|
4192
4213
|
"locale"
|
|
4193
4214
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4215
|
+
return Wi(ht({ locale: r }, n));
|
|
4216
|
+
}, Ji = (e = {}) => {
|
|
4196
4217
|
var t = e, {
|
|
4197
4218
|
locale: r = J()
|
|
4198
|
-
} = t, n =
|
|
4219
|
+
} = t, n = le(t, [
|
|
4199
4220
|
"locale"
|
|
4200
4221
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4222
|
+
return zi(ht({ locale: r }, n));
|
|
4223
|
+
}, qi = Me(
|
|
4203
4224
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4204
|
-
(e, t = J()) => new
|
|
4205
|
-
ignoreTag:
|
|
4225
|
+
(e, t = J()) => new Ti(e, t, oe().formats, {
|
|
4226
|
+
ignoreTag: oe().ignoreTag
|
|
4206
4227
|
})
|
|
4207
|
-
),
|
|
4228
|
+
), Yi = (e, t = {}) => {
|
|
4208
4229
|
var r, n, i, o;
|
|
4209
4230
|
let s = t;
|
|
4210
4231
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4217,9 +4238,9 @@ const de = (e, t) => {
|
|
|
4217
4238
|
throw new Error(
|
|
4218
4239
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4219
4240
|
);
|
|
4220
|
-
let h =
|
|
4241
|
+
let h = vr(e, l);
|
|
4221
4242
|
if (!h)
|
|
4222
|
-
h = (o = (i = (n = (r =
|
|
4243
|
+
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4223
4244
|
else if (typeof h != "string")
|
|
4224
4245
|
return console.warn(
|
|
4225
4246
|
`[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.`
|
|
@@ -4228,7 +4249,7 @@ const de = (e, t) => {
|
|
|
4228
4249
|
return h;
|
|
4229
4250
|
let f = h;
|
|
4230
4251
|
try {
|
|
4231
|
-
f =
|
|
4252
|
+
f = qi(h, l).format(a);
|
|
4232
4253
|
} catch (c) {
|
|
4233
4254
|
c instanceof Error && console.warn(
|
|
4234
4255
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4236,26 +4257,26 @@ const de = (e, t) => {
|
|
|
4236
4257
|
);
|
|
4237
4258
|
}
|
|
4238
4259
|
return f;
|
|
4239
|
-
},
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4260
|
+
}, 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 = ae([z, ue], () => Yi);
|
|
4261
|
+
ae([z], () => Ki);
|
|
4262
|
+
ae([z], () => eo);
|
|
4263
|
+
ae([z], () => to);
|
|
4264
|
+
ae([z, ue], () => ro);
|
|
4244
4265
|
window.emWidgets = { topic: dn };
|
|
4245
|
-
const
|
|
4266
|
+
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));
|
|
4246
4267
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4247
|
-
function
|
|
4268
|
+
function oo({ withLocale: e, translations: t }) {
|
|
4248
4269
|
z.subscribe((r) => {
|
|
4249
|
-
r == null && (
|
|
4270
|
+
r == null && (ue.set(t), z.set(e));
|
|
4250
4271
|
});
|
|
4251
4272
|
}
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4273
|
+
function Rt(e, t) {
|
|
4274
|
+
_r(e, t);
|
|
4254
4275
|
}
|
|
4255
|
-
function
|
|
4276
|
+
function so(e) {
|
|
4256
4277
|
z.set(e);
|
|
4257
4278
|
}
|
|
4258
|
-
const
|
|
4279
|
+
const Gt = {
|
|
4259
4280
|
en: {
|
|
4260
4281
|
loading: "Loading, please wait ...",
|
|
4261
4282
|
playNow: "Play Now",
|
|
@@ -4266,22 +4287,22 @@ const Mt = {
|
|
|
4266
4287
|
noMoreGames: "No more games"
|
|
4267
4288
|
}
|
|
4268
4289
|
};
|
|
4269
|
-
function
|
|
4270
|
-
|
|
4290
|
+
function ao(e) {
|
|
4291
|
+
Nr(e, "svelte-h1f7fe", "*,*::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%}.TournamentsPaginationControlsArea.SinglePage{display:none}.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}");
|
|
4271
4292
|
}
|
|
4272
|
-
function
|
|
4293
|
+
function $t(e, t, r) {
|
|
4273
4294
|
const n = e.slice();
|
|
4274
4295
|
return n[32] = t[r], n;
|
|
4275
4296
|
}
|
|
4276
|
-
function
|
|
4297
|
+
function Ut(e, t, r) {
|
|
4277
4298
|
const n = e.slice();
|
|
4278
4299
|
return n[32] = t[r], n[36] = r, n;
|
|
4279
4300
|
}
|
|
4280
|
-
function
|
|
4301
|
+
function Dt(e) {
|
|
4281
4302
|
let t, r;
|
|
4282
4303
|
return {
|
|
4283
4304
|
c() {
|
|
4284
|
-
t =
|
|
4305
|
+
t = B("div"), r = B("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid", ut), O(
|
|
4285
4306
|
r,
|
|
4286
4307
|
"clientstyling",
|
|
4287
4308
|
/*clientstyling*/
|
|
@@ -4299,7 +4320,7 @@ function $t(e) {
|
|
|
4299
4320
|
), v(t, "class", "GamesTabNav");
|
|
4300
4321
|
},
|
|
4301
4322
|
m(n, i) {
|
|
4302
|
-
|
|
4323
|
+
F(n, t, i), x(t, r);
|
|
4303
4324
|
},
|
|
4304
4325
|
p(n, i) {
|
|
4305
4326
|
i[0] & /*clientstyling*/
|
|
@@ -4327,17 +4348,17 @@ function $t(e) {
|
|
|
4327
4348
|
}
|
|
4328
4349
|
};
|
|
4329
4350
|
}
|
|
4330
|
-
function
|
|
4351
|
+
function uo(e) {
|
|
4331
4352
|
let t, r = (
|
|
4332
4353
|
/*$_*/
|
|
4333
4354
|
e[13]("noGamesAvailable") + ""
|
|
4334
4355
|
), n;
|
|
4335
4356
|
return {
|
|
4336
4357
|
c() {
|
|
4337
|
-
t =
|
|
4358
|
+
t = B("div"), n = D(r), v(t, "class", "NoGames");
|
|
4338
4359
|
},
|
|
4339
4360
|
m(i, o) {
|
|
4340
|
-
|
|
4361
|
+
F(i, t, o), x(t, n);
|
|
4341
4362
|
},
|
|
4342
4363
|
p(i, o) {
|
|
4343
4364
|
o[0] & /*$_*/
|
|
@@ -4349,17 +4370,17 @@ function so(e) {
|
|
|
4349
4370
|
}
|
|
4350
4371
|
};
|
|
4351
4372
|
}
|
|
4352
|
-
function
|
|
4373
|
+
function lo(e) {
|
|
4353
4374
|
let t, r = (
|
|
4354
4375
|
/*$_*/
|
|
4355
4376
|
e[13]("noMoreGames") + ""
|
|
4356
4377
|
), n;
|
|
4357
4378
|
return {
|
|
4358
4379
|
c() {
|
|
4359
|
-
t =
|
|
4380
|
+
t = B("div"), n = D(r), v(t, "class", "NoGames");
|
|
4360
4381
|
},
|
|
4361
4382
|
m(i, o) {
|
|
4362
|
-
|
|
4383
|
+
F(i, t, o), x(t, n);
|
|
4363
4384
|
},
|
|
4364
4385
|
p(i, o) {
|
|
4365
4386
|
o[0] & /*$_*/
|
|
@@ -4371,17 +4392,17 @@ function ao(e) {
|
|
|
4371
4392
|
}
|
|
4372
4393
|
};
|
|
4373
4394
|
}
|
|
4374
|
-
function
|
|
4395
|
+
function ho(e) {
|
|
4375
4396
|
let t, r = (
|
|
4376
4397
|
/*$_*/
|
|
4377
4398
|
e[13]("loading") + ""
|
|
4378
4399
|
), n;
|
|
4379
4400
|
return {
|
|
4380
4401
|
c() {
|
|
4381
|
-
t =
|
|
4402
|
+
t = B("div"), n = D(r), v(t, "class", "LoadingGames");
|
|
4382
4403
|
},
|
|
4383
4404
|
m(i, o) {
|
|
4384
|
-
|
|
4405
|
+
F(i, t, o), x(t, n);
|
|
4385
4406
|
},
|
|
4386
4407
|
p(i, o) {
|
|
4387
4408
|
o[0] & /*$_*/
|
|
@@ -4393,23 +4414,23 @@ function uo(e) {
|
|
|
4393
4414
|
}
|
|
4394
4415
|
};
|
|
4395
4416
|
}
|
|
4396
|
-
function
|
|
4417
|
+
function co(e) {
|
|
4397
4418
|
let t, r = Se(
|
|
4398
4419
|
/*casinoGames*/
|
|
4399
4420
|
e[8]
|
|
4400
4421
|
), n = [];
|
|
4401
4422
|
for (let i = 0; i < r.length; i += 1)
|
|
4402
|
-
n[i] = Ut(
|
|
4423
|
+
n[i] = Ft(Ut(e, r, i));
|
|
4403
4424
|
return {
|
|
4404
4425
|
c() {
|
|
4405
4426
|
for (let i = 0; i < n.length; i += 1)
|
|
4406
4427
|
n[i].c();
|
|
4407
|
-
t =
|
|
4428
|
+
t = Lr();
|
|
4408
4429
|
},
|
|
4409
4430
|
m(i, o) {
|
|
4410
4431
|
for (let s = 0; s < n.length; s += 1)
|
|
4411
4432
|
n[s] && n[s].m(i, o);
|
|
4412
|
-
|
|
4433
|
+
F(i, t, o);
|
|
4413
4434
|
},
|
|
4414
4435
|
p(i, o) {
|
|
4415
4436
|
if (o[0] & /*gameClicked, casinoGames, $_*/
|
|
@@ -4420,8 +4441,8 @@ function lo(e) {
|
|
|
4420
4441
|
);
|
|
4421
4442
|
let s;
|
|
4422
4443
|
for (s = 0; s < r.length; s += 1) {
|
|
4423
|
-
const a =
|
|
4424
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4444
|
+
const a = Ut(i, r, s);
|
|
4445
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ft(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4425
4446
|
}
|
|
4426
4447
|
for (; s < n.length; s += 1)
|
|
4427
4448
|
n[s].d(1);
|
|
@@ -4429,26 +4450,26 @@ function lo(e) {
|
|
|
4429
4450
|
}
|
|
4430
4451
|
},
|
|
4431
4452
|
d(i) {
|
|
4432
|
-
i && $(t),
|
|
4453
|
+
i && $(t), Wt(n, i);
|
|
4433
4454
|
}
|
|
4434
4455
|
};
|
|
4435
4456
|
}
|
|
4436
|
-
function
|
|
4457
|
+
function Ft(e) {
|
|
4437
4458
|
let t, r, n = (
|
|
4438
4459
|
/*$_*/
|
|
4439
4460
|
e[13]("playNow") + ""
|
|
4440
4461
|
), i, o, s, a, l, u, h, f, c;
|
|
4441
4462
|
return {
|
|
4442
4463
|
c() {
|
|
4443
|
-
t =
|
|
4464
|
+
t = B("div"), r = B("span"), i = D(n), o = j(), s = B("ui-image"), h = j(), v(r, "class", "PlayNowButton"), mt(s.src, a = /*item*/
|
|
4444
4465
|
e[32].thumbnail) || O(s, "src", a), O(s, "width", "132px"), O(s, "height", "100px"), O(s, "alt", l = /*item*/
|
|
4445
4466
|
e[32].name), O(s, "title", u = /*item*/
|
|
4446
4467
|
e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
|
|
4447
4468
|
e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
|
|
4448
4469
|
},
|
|
4449
4470
|
m(d, b) {
|
|
4450
|
-
|
|
4451
|
-
|
|
4471
|
+
F(d, t, b), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = Ve(t, "click", function() {
|
|
4472
|
+
Ae(
|
|
4452
4473
|
/*gameClicked*/
|
|
4453
4474
|
e[15](
|
|
4454
4475
|
/*item*/
|
|
@@ -4464,7 +4485,7 @@ function Ut(e) {
|
|
|
4464
4485
|
e = d, b[0] & /*$_*/
|
|
4465
4486
|
8192 && n !== (n = /*$_*/
|
|
4466
4487
|
e[13]("playNow") + "") && W(i, n), b[0] & /*casinoGames*/
|
|
4467
|
-
256 && !
|
|
4488
|
+
256 && !mt(s.src, a = /*item*/
|
|
4468
4489
|
e[32].thumbnail) && O(s, "src", a), b[0] & /*casinoGames*/
|
|
4469
4490
|
256 && l !== (l = /*item*/
|
|
4470
4491
|
e[32].name) && O(s, "alt", l), b[0] & /*casinoGames*/
|
|
@@ -4476,35 +4497,35 @@ function Ut(e) {
|
|
|
4476
4497
|
}
|
|
4477
4498
|
};
|
|
4478
4499
|
}
|
|
4479
|
-
function
|
|
4500
|
+
function fo(e) {
|
|
4480
4501
|
let t, r, n, i, o, s, a, l = (
|
|
4481
4502
|
/*$_*/
|
|
4482
4503
|
e[13]("previous") + ""
|
|
4483
4504
|
), u, h, f, c, d, b, g = (
|
|
4484
4505
|
/*$_*/
|
|
4485
4506
|
e[13]("next") + ""
|
|
4486
|
-
),
|
|
4507
|
+
), T, A, _, m, H, w, I, M, V, q;
|
|
4487
4508
|
return {
|
|
4488
4509
|
c() {
|
|
4489
|
-
t =
|
|
4510
|
+
t = B("div"), r = B("button"), n = ge("svg"), i = ge("path"), s = j(), a = B("span"), u = D(l), c = j(), d = B("button"), b = B("span"), T = D(g), A = j(), _ = ge("svg"), m = ge("path"), v(i, "fill", o = /*hasPreviousPage*/
|
|
4490
4511
|
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*/
|
|
4491
4512
|
e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
|
|
4492
|
-
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(
|
|
4493
|
-
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(
|
|
4513
|
+
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(m, "fill", H = /*hasNextPage*/
|
|
4514
|
+
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*/
|
|
4494
4515
|
e[11] ? "" : "Disabled")), d.disabled = I = /*hasNextPage*/
|
|
4495
4516
|
!e[11], v(t, "class", M = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
4496
4517
|
e[10] && !/*hasNextPage*/
|
|
4497
4518
|
e[11] ? "SinglePage" : ""));
|
|
4498
4519
|
},
|
|
4499
4520
|
m(N, L) {
|
|
4500
|
-
|
|
4501
|
-
|
|
4521
|
+
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), V || (q = [
|
|
4522
|
+
Ve(
|
|
4502
4523
|
r,
|
|
4503
4524
|
"click",
|
|
4504
4525
|
/*gotoPage*/
|
|
4505
4526
|
e[16].bind(this, -1)
|
|
4506
4527
|
),
|
|
4507
|
-
|
|
4528
|
+
Ve(
|
|
4508
4529
|
d,
|
|
4509
4530
|
"click",
|
|
4510
4531
|
/*gotoPage*/
|
|
@@ -4523,9 +4544,9 @@ function ho(e) {
|
|
|
4523
4544
|
1024 && f !== (f = /*hasPreviousPage*/
|
|
4524
4545
|
!N[10]) && (r.disabled = f), L[0] & /*$_*/
|
|
4525
4546
|
8192 && g !== (g = /*$_*/
|
|
4526
|
-
N[13]("next") + "") && W(
|
|
4527
|
-
2048 &&
|
|
4528
|
-
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(
|
|
4547
|
+
N[13]("next") + "") && W(T, g), L[0] & /*hasNextPage*/
|
|
4548
|
+
2048 && H !== (H = /*hasNextPage*/
|
|
4549
|
+
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*/
|
|
4529
4550
|
2048 && w !== (w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4530
4551
|
N[11] ? "" : "Disabled")) && v(d, "class", w), L[0] & /*hasNextPage*/
|
|
4531
4552
|
2048 && I !== (I = /*hasNextPage*/
|
|
@@ -4535,11 +4556,11 @@ function ho(e) {
|
|
|
4535
4556
|
N[11] ? "SinglePage" : "")) && v(t, "class", M);
|
|
4536
4557
|
},
|
|
4537
4558
|
d(N) {
|
|
4538
|
-
N && $(t), V = !1,
|
|
4559
|
+
N && $(t), V = !1, se(q);
|
|
4539
4560
|
}
|
|
4540
4561
|
};
|
|
4541
4562
|
}
|
|
4542
|
-
function
|
|
4563
|
+
function jt(e) {
|
|
4543
4564
|
let t, r = (
|
|
4544
4565
|
/*item*/
|
|
4545
4566
|
e[32].rule + ""
|
|
@@ -4549,10 +4570,10 @@ function Dt(e) {
|
|
|
4549
4570
|
), s;
|
|
4550
4571
|
return {
|
|
4551
4572
|
c() {
|
|
4552
|
-
t =
|
|
4573
|
+
t = B("li"), n = D(r), i = j(), s = D(o), v(t, "part", "li"), v(t, "class", "Market");
|
|
4553
4574
|
},
|
|
4554
4575
|
m(a, l) {
|
|
4555
|
-
|
|
4576
|
+
F(a, t, l), x(t, n), x(t, i), x(t, s);
|
|
4556
4577
|
},
|
|
4557
4578
|
p(a, l) {
|
|
4558
4579
|
l[0] & /*sportsRules*/
|
|
@@ -4566,37 +4587,37 @@ function Dt(e) {
|
|
|
4566
4587
|
}
|
|
4567
4588
|
};
|
|
4568
4589
|
}
|
|
4569
|
-
function
|
|
4590
|
+
function po(e) {
|
|
4570
4591
|
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4571
4592
|
/*tournamentdetails*/
|
|
4572
4593
|
e[3] && /*tournamentdetails*/
|
|
4573
4594
|
e[3].wallet?.sports && /*tournamentdetails*/
|
|
4574
|
-
e[3].wallet?.casino &&
|
|
4595
|
+
e[3].wallet?.casino && Dt(e)
|
|
4575
4596
|
);
|
|
4576
|
-
function d(
|
|
4597
|
+
function d(m, H) {
|
|
4577
4598
|
return (
|
|
4578
4599
|
/*casinoGames*/
|
|
4579
|
-
|
|
4600
|
+
m[8]?.length ? co : (
|
|
4580
4601
|
/*isLoadingGames*/
|
|
4581
|
-
|
|
4602
|
+
m[12] ? ho : (
|
|
4582
4603
|
/*noMoreGamesWhenPagination*/
|
|
4583
|
-
|
|
4604
|
+
m[9] ? lo : uo
|
|
4584
4605
|
)
|
|
4585
4606
|
)
|
|
4586
4607
|
);
|
|
4587
4608
|
}
|
|
4588
|
-
let b = d(e), g = b(e),
|
|
4589
|
-
e[14] &&
|
|
4609
|
+
let b = d(e), g = b(e), T = !/*isMobileDevice*/
|
|
4610
|
+
e[14] && fo(e), A = Se(
|
|
4590
4611
|
/*sportsRules*/
|
|
4591
4612
|
e[7]
|
|
4592
4613
|
), _ = [];
|
|
4593
|
-
for (let
|
|
4594
|
-
_[
|
|
4614
|
+
for (let m = 0; m < A.length; m += 1)
|
|
4615
|
+
_[m] = jt($t(e, A, m));
|
|
4595
4616
|
return {
|
|
4596
4617
|
c() {
|
|
4597
|
-
t =
|
|
4598
|
-
for (let
|
|
4599
|
-
_[
|
|
4618
|
+
t = B("div"), c && c.c(), r = j(), n = B("div"), i = B("div"), o = B("div"), g.c(), s = j(), T && T.c(), l = j(), u = B("div"), h = B("ul");
|
|
4619
|
+
for (let m = 0; m < _.length; m += 1)
|
|
4620
|
+
_[m].c();
|
|
4600
4621
|
v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
|
|
4601
4622
|
(e[6] != "casino" ? "hidden" : "")), v(h, "class", "SportsPage"), v(u, "class", f = "TabContent GamesContent " + /*activeTab*/
|
|
4602
4623
|
(e[6] != "sports" ? "hidden" : "")), v(n, "class", "GamesWrapper"), v(
|
|
@@ -4606,65 +4627,65 @@ function co(e) {
|
|
|
4606
4627
|
e[14] ? "MobileClass" : ""
|
|
4607
4628
|
);
|
|
4608
4629
|
},
|
|
4609
|
-
m(
|
|
4610
|
-
|
|
4630
|
+
m(m, H) {
|
|
4631
|
+
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);
|
|
4611
4632
|
for (let w = 0; w < _.length; w += 1)
|
|
4612
4633
|
_[w] && _[w].m(h, null);
|
|
4613
4634
|
e[20](t);
|
|
4614
4635
|
},
|
|
4615
|
-
p(
|
|
4636
|
+
p(m, H) {
|
|
4616
4637
|
if (/*tournamentdetails*/
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4638
|
+
m[3] && /*tournamentdetails*/
|
|
4639
|
+
m[3].wallet?.sports && /*tournamentdetails*/
|
|
4640
|
+
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*/
|
|
4641
|
+
m[14] || T.p(m, H), H[0] & /*activeTab*/
|
|
4621
4642
|
64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
|
|
4622
|
-
(
|
|
4643
|
+
(m[6] != "casino" ? "hidden" : "")) && v(i, "class", a), H[0] & /*$_, sportsRules*/
|
|
4623
4644
|
8320) {
|
|
4624
4645
|
A = Se(
|
|
4625
4646
|
/*sportsRules*/
|
|
4626
|
-
|
|
4647
|
+
m[7]
|
|
4627
4648
|
);
|
|
4628
4649
|
let w;
|
|
4629
4650
|
for (w = 0; w < A.length; w += 1) {
|
|
4630
|
-
const I =
|
|
4631
|
-
_[w] ? _[w].p(I,
|
|
4651
|
+
const I = $t(m, A, w);
|
|
4652
|
+
_[w] ? _[w].p(I, H) : (_[w] = jt(I), _[w].c(), _[w].m(h, null));
|
|
4632
4653
|
}
|
|
4633
4654
|
for (; w < _.length; w += 1)
|
|
4634
4655
|
_[w].d(1);
|
|
4635
4656
|
_.length = A.length;
|
|
4636
4657
|
}
|
|
4637
|
-
|
|
4658
|
+
H[0] & /*activeTab*/
|
|
4638
4659
|
64 && f !== (f = "TabContent GamesContent " + /*activeTab*/
|
|
4639
|
-
(
|
|
4660
|
+
(m[6] != "sports" ? "hidden" : "")) && v(u, "class", f);
|
|
4640
4661
|
},
|
|
4641
4662
|
i: G,
|
|
4642
4663
|
o: G,
|
|
4643
|
-
d(
|
|
4644
|
-
|
|
4664
|
+
d(m) {
|
|
4665
|
+
m && $(t), c && c.d(), g.d(), e[19](null), T && T.d(), Wt(_, m), e[20](null);
|
|
4645
4666
|
}
|
|
4646
4667
|
};
|
|
4647
4668
|
}
|
|
4648
|
-
let
|
|
4649
|
-
function
|
|
4669
|
+
let ut = "gameTab";
|
|
4670
|
+
function mo(e, t, r) {
|
|
4650
4671
|
let n;
|
|
4651
|
-
|
|
4652
|
-
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,
|
|
4653
|
-
|
|
4654
|
-
const
|
|
4655
|
-
fetch(a).then((
|
|
4656
|
-
Object.keys(
|
|
4657
|
-
|
|
4672
|
+
Or(e, no, (p) => r(13, n = p));
|
|
4673
|
+
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;
|
|
4674
|
+
oo({ withLocale: "en", translations: {} });
|
|
4675
|
+
const m = () => {
|
|
4676
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
|
4677
|
+
Object.keys(p).forEach((R) => {
|
|
4678
|
+
Rt(R, p[R]);
|
|
4658
4679
|
});
|
|
4659
|
-
}).catch((
|
|
4660
|
-
console.log(
|
|
4680
|
+
}).catch((p) => {
|
|
4681
|
+
console.log(p);
|
|
4661
4682
|
});
|
|
4662
4683
|
};
|
|
4663
|
-
Object.keys(
|
|
4664
|
-
|
|
4684
|
+
Object.keys(Gt).forEach((p) => {
|
|
4685
|
+
Rt(p, Gt[p]);
|
|
4665
4686
|
});
|
|
4666
|
-
const
|
|
4667
|
-
|
|
4687
|
+
const H = () => {
|
|
4688
|
+
so(l), setTimeout(
|
|
4668
4689
|
() => {
|
|
4669
4690
|
w();
|
|
4670
4691
|
},
|
|
@@ -4681,66 +4702,66 @@ function fo(e, t, r) {
|
|
|
4681
4702
|
},
|
|
4682
4703
|
window.location.href
|
|
4683
4704
|
);
|
|
4684
|
-
}, I = (
|
|
4705
|
+
}, I = (p) => {
|
|
4685
4706
|
window.postMessage(
|
|
4686
4707
|
{
|
|
4687
4708
|
type: "TournamentGameAction",
|
|
4688
|
-
gameId:
|
|
4689
|
-
name:
|
|
4690
|
-
launchUrl:
|
|
4709
|
+
gameId: p.id,
|
|
4710
|
+
name: p.name,
|
|
4711
|
+
launchUrl: p.launchUrl
|
|
4691
4712
|
},
|
|
4692
4713
|
window.location.href
|
|
4693
4714
|
);
|
|
4694
4715
|
};
|
|
4695
4716
|
let M = !1, V = !1, q = !1;
|
|
4696
|
-
const N = (
|
|
4697
|
-
!M &&
|
|
4717
|
+
const N = (p) => {
|
|
4718
|
+
!M && p === -1 || !V && p === 1 || (r(12, q = !0), r(8, f = []), window.postMessage(
|
|
4698
4719
|
{
|
|
4699
4720
|
type: "TournamentsLoadMoreGames",
|
|
4700
4721
|
id: c.id,
|
|
4701
|
-
isNext:
|
|
4722
|
+
isNext: p > 0
|
|
4702
4723
|
},
|
|
4703
4724
|
window.location.href
|
|
4704
4725
|
));
|
|
4705
4726
|
}, L = () => {
|
|
4706
|
-
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, V = c.games?.total > c.games?.items.length),
|
|
4707
|
-
const
|
|
4708
|
-
if (
|
|
4727
|
+
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, V = c.games?.total > c.games?.items.length), ft();
|
|
4728
|
+
const p = c.metadata?.sports?.rules;
|
|
4729
|
+
if (p) {
|
|
4709
4730
|
r(6, u = c.wallet.casino ? "casino" : "sports");
|
|
4710
4731
|
try {
|
|
4711
|
-
const R = JSON.parse(
|
|
4732
|
+
const R = JSON.parse(p);
|
|
4712
4733
|
r(7, h = R[l] || R["*"]);
|
|
4713
4734
|
} catch (R) {
|
|
4714
4735
|
console.error("Error parsing tournament rules", R);
|
|
4715
4736
|
}
|
|
4716
4737
|
}
|
|
4717
|
-
},
|
|
4718
|
-
if (!
|
|
4738
|
+
}, ct = (p) => {
|
|
4739
|
+
if (!p.data || !p.data.type)
|
|
4719
4740
|
return;
|
|
4720
|
-
const R =
|
|
4721
|
-
switch (
|
|
4741
|
+
const R = p.data.tid || "";
|
|
4742
|
+
switch (p.data.type) {
|
|
4722
4743
|
case "TournamentsTabSwitch":
|
|
4723
|
-
R ===
|
|
4744
|
+
R === ut && r(6, u = p.data.tab);
|
|
4724
4745
|
break;
|
|
4725
4746
|
case "TournamentsTabListenerLoaded":
|
|
4726
4747
|
w();
|
|
4727
4748
|
break;
|
|
4728
4749
|
case "TournamentsGamesUpdate":
|
|
4729
|
-
r(3, c =
|
|
4750
|
+
r(3, c = p.data.details), L();
|
|
4730
4751
|
break;
|
|
4731
4752
|
case "TournamentsLoadedMoreGames":
|
|
4732
|
-
A ?
|
|
4753
|
+
A ? p.data.games?.items.length && (r(8, f = [...f, ...p.data.games.items]), ft()) : (r(12, q = !1), r(8, f = [...p.data.games.items]), r(11, V = p.data.hasNextPage), r(10, M = p.data.hasPreviousPage), r(9, _ = !f.length));
|
|
4733
4754
|
break;
|
|
4734
4755
|
default:
|
|
4735
|
-
console.warn(`Unhandled message type: ${
|
|
4756
|
+
console.warn(`Unhandled message type: ${p.data.type}`);
|
|
4736
4757
|
break;
|
|
4737
4758
|
}
|
|
4738
4759
|
};
|
|
4739
4760
|
let Z;
|
|
4740
|
-
const
|
|
4741
|
-
Z =
|
|
4761
|
+
const Sr = (p) => {
|
|
4762
|
+
Z = p?.lastElementChild, !(!A || T || !p || !Z) && (T = new IntersectionObserver((R) => {
|
|
4742
4763
|
R.forEach((Br) => {
|
|
4743
|
-
Br.isIntersecting && (
|
|
4764
|
+
Br.isIntersecting && (T.unobserve(Z), window.postMessage(
|
|
4744
4765
|
{
|
|
4745
4766
|
type: "TournamentsLoadMoreGames",
|
|
4746
4767
|
id: c.id,
|
|
@@ -4750,39 +4771,39 @@ function fo(e, t, r) {
|
|
|
4750
4771
|
));
|
|
4751
4772
|
});
|
|
4752
4773
|
}));
|
|
4753
|
-
},
|
|
4754
|
-
!A || !Z || !
|
|
4774
|
+
}, ft = () => {
|
|
4775
|
+
!A || !Z || !T || !f.length || (T.unobserve(Z), Z = g.lastElementChild, T.observe(Z));
|
|
4755
4776
|
};
|
|
4756
|
-
|
|
4777
|
+
$r(() => A && T && T.disconnect()), Gr(() => (window.postMessage(
|
|
4757
4778
|
{
|
|
4758
4779
|
type: "TournamentsGamesListenerLoaded",
|
|
4759
|
-
gamesTabTid:
|
|
4780
|
+
gamesTabTid: ut
|
|
4760
4781
|
},
|
|
4761
4782
|
window.location.href
|
|
4762
|
-
), window.addEventListener("message",
|
|
4763
|
-
window.removeEventListener("message",
|
|
4783
|
+
), window.addEventListener("message", ct, !1), () => {
|
|
4784
|
+
window.removeEventListener("message", ct);
|
|
4764
4785
|
}));
|
|
4765
|
-
function
|
|
4766
|
-
Te[
|
|
4767
|
-
g =
|
|
4786
|
+
function Hr(p) {
|
|
4787
|
+
Te[p ? "unshift" : "push"](() => {
|
|
4788
|
+
g = p, r(5, g);
|
|
4768
4789
|
});
|
|
4769
4790
|
}
|
|
4770
|
-
function
|
|
4771
|
-
Te[
|
|
4772
|
-
b =
|
|
4791
|
+
function Pr(p) {
|
|
4792
|
+
Te[p ? "unshift" : "push"](() => {
|
|
4793
|
+
b = p, r(4, b);
|
|
4773
4794
|
});
|
|
4774
4795
|
}
|
|
4775
|
-
return e.$$set = (
|
|
4776
|
-
"clientstyling" in
|
|
4796
|
+
return e.$$set = (p) => {
|
|
4797
|
+
"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);
|
|
4777
4798
|
}, e.$$.update = () => {
|
|
4778
4799
|
e.$$.dirty[0] & /*tournamentdetails*/
|
|
4779
4800
|
8 && c && L(), e.$$.dirty[0] & /*lang*/
|
|
4780
|
-
262144 && l &&
|
|
4781
|
-
131072 && a &&
|
|
4782
|
-
17 && i && b &&
|
|
4783
|
-
18 && o && b &&
|
|
4784
|
-
20 && s && b &&
|
|
4785
|
-
32 && g &&
|
|
4801
|
+
262144 && l && H(), e.$$.dirty[0] & /*translationurl*/
|
|
4802
|
+
131072 && a && m(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4803
|
+
17 && i && b && Yr(b, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4804
|
+
18 && o && b && Kr(b, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4805
|
+
20 && s && b && en(b, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
|
|
4806
|
+
32 && g && Sr(g);
|
|
4786
4807
|
}, [
|
|
4787
4808
|
i,
|
|
4788
4809
|
o,
|
|
@@ -4803,18 +4824,18 @@ function fo(e, t, r) {
|
|
|
4803
4824
|
N,
|
|
4804
4825
|
a,
|
|
4805
4826
|
l,
|
|
4806
|
-
|
|
4807
|
-
|
|
4827
|
+
Hr,
|
|
4828
|
+
Pr
|
|
4808
4829
|
];
|
|
4809
4830
|
}
|
|
4810
|
-
class
|
|
4831
|
+
class bo extends Jr {
|
|
4811
4832
|
constructor(t) {
|
|
4812
|
-
super(),
|
|
4833
|
+
super(), Zr(
|
|
4813
4834
|
this,
|
|
4814
4835
|
t,
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4836
|
+
mo,
|
|
4837
|
+
po,
|
|
4838
|
+
Vt,
|
|
4818
4839
|
{
|
|
4819
4840
|
clientstyling: 0,
|
|
4820
4841
|
clientstylingurl: 1,
|
|
@@ -4822,7 +4843,7 @@ class mo extends Qr {
|
|
|
4822
4843
|
translationurl: 17,
|
|
4823
4844
|
lang: 18
|
|
4824
4845
|
},
|
|
4825
|
-
|
|
4846
|
+
ao,
|
|
4826
4847
|
[-1, -1]
|
|
4827
4848
|
);
|
|
4828
4849
|
}
|
|
@@ -4857,7 +4878,7 @@ class mo extends Qr {
|
|
|
4857
4878
|
this.$$set({ lang: t }), Q();
|
|
4858
4879
|
}
|
|
4859
4880
|
}
|
|
4860
|
-
|
|
4881
|
+
Qr(bo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4861
4882
|
export {
|
|
4862
|
-
|
|
4883
|
+
bo as C
|
|
4863
4884
|
};
|