@everymatrix/casino-tournaments-thumbnail-duration 1.59.2 → 1.59.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnailDuration-DICQG_Cu.js → CasinoTournamentsThumbnailDuration-CE5GZMOW.js} +357 -359
- package/components/{CasinoTournamentsThumbnailDuration-6l1nej4L.js → CasinoTournamentsThumbnailDuration-CnKHSJWn.js} +350 -352
- package/components/CasinoTournamentsThumbnailDuration-DrWLrEK1.cjs +16 -0
- package/es2015/casino-tournaments-thumbnail-duration.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-duration.js +1 -1
- package/esnext/casino-tournaments-thumbnail-duration.js +1 -1
- package/package.json +2 -2
- package/components/CasinoTournamentsThumbnailDuration-D0HB4CR5.cjs +0 -16
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function ut(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ke() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function oe(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(ut);
|
|
11
11
|
}
|
|
12
12
|
function ge(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ht(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ut(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function lt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,23 +27,23 @@ function ct(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Ft(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(lt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Gt(e) {
|
|
34
34
|
return e && ge(e.destroy) ? e.destroy : w;
|
|
35
35
|
}
|
|
36
36
|
function O(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const n =
|
|
39
|
+
function jt(e, t, r) {
|
|
40
|
+
const n = kt(e);
|
|
41
41
|
if (!n.getElementById(t)) {
|
|
42
42
|
const i = I("style");
|
|
43
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
i.id = t, i.textContent = r, Vt(n, i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function kt(e) {
|
|
47
47
|
if (!e)
|
|
48
48
|
return document;
|
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -53,7 +53,7 @@ function Xt(e) {
|
|
|
53
53
|
t
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Vt(e, t) {
|
|
57
57
|
return O(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
@@ -78,17 +78,17 @@ function te() {
|
|
|
78
78
|
function _(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Xt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
84
|
function j(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ve(e, t, r, n) {
|
|
89
89
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function zt(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -101,20 +101,20 @@ let ne;
|
|
|
101
101
|
function re(e) {
|
|
102
102
|
ne = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Wt() {
|
|
105
105
|
if (!ne)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
107
|
return ne;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function Zt(e) {
|
|
110
|
+
Wt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
112
|
const z = [], Ne = [];
|
|
113
113
|
let W = [];
|
|
114
|
-
const
|
|
114
|
+
const Xe = [], Qt = /* @__PURE__ */ Promise.resolve();
|
|
115
115
|
let Oe = !1;
|
|
116
|
-
function
|
|
117
|
-
Oe || (Oe = !0,
|
|
116
|
+
function Jt() {
|
|
117
|
+
Oe || (Oe = !0, Qt.then(D));
|
|
118
118
|
}
|
|
119
119
|
function Ie(e) {
|
|
120
120
|
W.push(e);
|
|
@@ -129,7 +129,7 @@ function D() {
|
|
|
129
129
|
try {
|
|
130
130
|
for (; V < z.length; ) {
|
|
131
131
|
const t = z[V];
|
|
132
|
-
V++, re(t),
|
|
132
|
+
V++, re(t), qt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw z.length = 0, V = 0, t;
|
|
@@ -142,40 +142,40 @@ function D() {
|
|
|
142
142
|
}
|
|
143
143
|
W.length = 0;
|
|
144
144
|
} while (z.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
145
|
+
for (; Xe.length; )
|
|
146
|
+
Xe.pop()();
|
|
147
147
|
Oe = !1, ve.clear(), re(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function qt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
151
|
e.update(), oe(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
153
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Yt(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const Kt = /* @__PURE__ */ new Set();
|
|
161
|
+
function er(e, t) {
|
|
162
|
+
e && e.i && (Kt.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function tr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
166
|
n && n.m(t, r), Ie(() => {
|
|
167
|
-
const s = e.$$.on_mount.map(
|
|
167
|
+
const s = e.$$.on_mount.map(ut).filter(ge);
|
|
168
168
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
169
169
|
}), i.forEach(Ie);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function rr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (Yt(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (z.push(e),
|
|
175
|
+
function nr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (z.push(e), Jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ir(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
179
179
|
const l = ne;
|
|
180
180
|
re(e);
|
|
181
181
|
const u = e.$$ = {
|
|
@@ -185,7 +185,7 @@ function or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
185
185
|
props: s,
|
|
186
186
|
update: w,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: ke(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,7 +194,7 @@ function or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: ke(),
|
|
198
198
|
dirty: o,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || l.$$.root
|
|
@@ -203,19 +203,19 @@ function or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
203
203
|
let h = !1;
|
|
204
204
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
205
205
|
const E = p.length ? p[0] : c;
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), h &&
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), h && nr(e, f)), c;
|
|
207
207
|
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
209
|
+
const f = Xt(t.target);
|
|
210
210
|
u.fragment && u.fragment.l(f), f.forEach(M);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && er(e.$$.fragment), tr(e, t.target, t.anchor), D();
|
|
214
214
|
}
|
|
215
215
|
re(l);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let ft;
|
|
218
|
+
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -274,7 +274,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = zt(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,8 +361,8 @@ function fe(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let a = class extends
|
|
364
|
+
function sr(e, t, r, n, i, s) {
|
|
365
|
+
let a = class extends ft {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -390,7 +390,7 @@ function ar(e, t, r, n, i, s) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
a, a;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class or {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class ur {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
rr(this, 1), this.$destroy = w;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,13 +431,13 @@ class ur {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !Ut(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const ar = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ar);
|
|
439
439
|
const X = [];
|
|
440
|
-
function
|
|
440
|
+
function ur(e, t) {
|
|
441
441
|
return {
|
|
442
442
|
subscribe: be(e, t).subscribe
|
|
443
443
|
};
|
|
@@ -446,7 +446,7 @@ function be(e, t = w) {
|
|
|
446
446
|
let r;
|
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
|
448
448
|
function i(o) {
|
|
449
|
-
if (
|
|
449
|
+
if (ht(e, o) && (e = o, r)) {
|
|
450
450
|
const l = !X.length;
|
|
451
451
|
for (const u of n)
|
|
452
452
|
u[1](), X.push(u, e);
|
|
@@ -473,7 +473,7 @@ function Y(e, t, r) {
|
|
|
473
473
|
if (!i.every(Boolean))
|
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
475
475
|
const s = t.length < 2;
|
|
476
|
-
return
|
|
476
|
+
return ur(r, (a, o) => {
|
|
477
477
|
let l = !1;
|
|
478
478
|
const u = [];
|
|
479
479
|
let h = 0, f = w;
|
|
@@ -484,7 +484,7 @@ function Y(e, t, r) {
|
|
|
484
484
|
const E = t(n ? u[0] : u, a, o);
|
|
485
485
|
s ? a(E) : f = ge(E) ? E : w;
|
|
486
486
|
}, p = i.map(
|
|
487
|
-
(E, T) =>
|
|
487
|
+
(E, T) => lt(
|
|
488
488
|
E,
|
|
489
489
|
(P) => {
|
|
490
490
|
u[T] = P, h &= ~(1 << T), l && c();
|
|
@@ -499,70 +499,70 @@ function Y(e, t, r) {
|
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function hr(e) {
|
|
503
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
return
|
|
505
|
+
var lr = function(t) {
|
|
506
|
+
return fr(t) && !cr(t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function fr(e) {
|
|
509
509
|
return !!e && typeof e == "object";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function cr(e) {
|
|
512
512
|
var t = Object.prototype.toString.call(e);
|
|
513
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || pr(e);
|
|
514
514
|
}
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
return e.$$typeof ===
|
|
515
|
+
var mr = typeof Symbol == "function" && Symbol.for, dr = mr ? Symbol.for("react.element") : 60103;
|
|
516
|
+
function pr(e) {
|
|
517
|
+
return e.$$typeof === dr;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function gr(e) {
|
|
520
520
|
return Array.isArray(e) ? [] : {};
|
|
521
521
|
}
|
|
522
522
|
function ie(e, t) {
|
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Z(
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(gr(e), e, t) : e;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function br(e, t, r) {
|
|
526
526
|
return e.concat(t).map(function(n) {
|
|
527
527
|
return ie(n, r);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function yr(e, t) {
|
|
531
531
|
if (!t.customMerge)
|
|
532
532
|
return Z;
|
|
533
533
|
var r = t.customMerge(e);
|
|
534
534
|
return typeof r == "function" ? r : Z;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Er(e) {
|
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
538
538
|
return Object.propertyIsEnumerable.call(e, t);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
return Object.keys(e).concat(
|
|
541
|
+
function ze(e) {
|
|
542
|
+
return Object.keys(e).concat(Er(e));
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function ct(e, t) {
|
|
545
545
|
try {
|
|
546
546
|
return t in e;
|
|
547
547
|
} catch {
|
|
548
548
|
return !1;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
551
|
+
function _r(e, t) {
|
|
552
|
+
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function xr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
|
-
return r.isMergeableObject(e) &&
|
|
556
|
+
return r.isMergeableObject(e) && ze(e).forEach(function(i) {
|
|
557
557
|
n[i] = ie(e[i], r);
|
|
558
|
-
}),
|
|
559
|
-
|
|
558
|
+
}), ze(t).forEach(function(i) {
|
|
559
|
+
_r(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = yr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
560
560
|
}), n;
|
|
561
561
|
}
|
|
562
562
|
function Z(e, t, r) {
|
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || br, r.isMergeableObject = r.isMergeableObject || lr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
564
564
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
565
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
565
|
+
return s ? n ? r.arrayMerge(e, t, r) : xr(e, t, r) : ie(t, r);
|
|
566
566
|
}
|
|
567
567
|
Z.all = function(t, r) {
|
|
568
568
|
if (!Array.isArray(t))
|
|
@@ -571,8 +571,8 @@ Z.all = function(t, r) {
|
|
|
571
571
|
return Z(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var
|
|
575
|
-
const
|
|
574
|
+
var vr = Z, Hr = vr;
|
|
575
|
+
const Tr = /* @__PURE__ */ hr(Hr);
|
|
576
576
|
/*! *****************************************************************************
|
|
577
577
|
Copyright (c) Microsoft Corporation.
|
|
578
578
|
|
|
@@ -614,7 +614,7 @@ var y = function() {
|
|
|
614
614
|
return t;
|
|
615
615
|
}, y.apply(this, arguments);
|
|
616
616
|
};
|
|
617
|
-
function
|
|
617
|
+
function Br(e, t) {
|
|
618
618
|
var r = {};
|
|
619
619
|
for (var n in e)
|
|
620
620
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -630,55 +630,53 @@ function He(e, t, r) {
|
|
|
630
630
|
return e.concat(s || t);
|
|
631
631
|
}
|
|
632
632
|
function Te(e, t) {
|
|
633
|
-
var r = t && t.cache ? t.cache :
|
|
633
|
+
var r = t && t.cache ? t.cache : wr, n = t && t.serializer ? t.serializer : Or, i = t && t.strategy ? t.strategy : Pr;
|
|
634
634
|
return i(e, {
|
|
635
635
|
cache: r,
|
|
636
636
|
serializer: n
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Sr(e) {
|
|
640
640
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
var i =
|
|
642
|
+
function Ar(e, t, r, n) {
|
|
643
|
+
var i = Sr(n) ? n : r(n), s = t.get(i);
|
|
644
644
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function mt(e, t, r) {
|
|
647
647
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
648
648
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function dt(e, t, r, n, i) {
|
|
651
651
|
return r.bind(t, e, n, i);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
var r = e.length === 1 ?
|
|
655
|
-
return
|
|
656
|
-
}
|
|
657
|
-
function Or(e, t) {
|
|
658
|
-
return Ge(e, this, gt, t.cache.create(), t.serializer);
|
|
653
|
+
function Pr(e, t) {
|
|
654
|
+
var r = e.length === 1 ? Ar : mt;
|
|
655
|
+
return dt(e, this, r, t.cache.create(), t.serializer);
|
|
659
656
|
}
|
|
660
|
-
function
|
|
661
|
-
return
|
|
657
|
+
function Nr(e, t) {
|
|
658
|
+
return dt(e, this, mt, t.cache.create(), t.serializer);
|
|
662
659
|
}
|
|
663
|
-
var
|
|
660
|
+
var Or = function() {
|
|
664
661
|
return JSON.stringify(arguments);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
662
|
+
}, Ir = (
|
|
663
|
+
/** @class */
|
|
664
|
+
function() {
|
|
665
|
+
function e() {
|
|
666
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
667
|
+
}
|
|
668
|
+
return e.prototype.get = function(t) {
|
|
669
|
+
return this.cache[t];
|
|
670
|
+
}, e.prototype.set = function(t, r) {
|
|
671
|
+
this.cache[t] = r;
|
|
672
|
+
}, e;
|
|
673
|
+
}()
|
|
674
|
+
), wr = {
|
|
676
675
|
create: function() {
|
|
677
|
-
return new
|
|
676
|
+
return new Ir();
|
|
678
677
|
}
|
|
679
678
|
}, Be = {
|
|
680
|
-
variadic:
|
|
681
|
-
monadic: Ir
|
|
679
|
+
variadic: Nr
|
|
682
680
|
}, g;
|
|
683
681
|
(function(e) {
|
|
684
682
|
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";
|
|
@@ -691,43 +689,43 @@ var Q;
|
|
|
691
689
|
(function(e) {
|
|
692
690
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
693
691
|
})(Q || (Q = {}));
|
|
694
|
-
function
|
|
692
|
+
function We(e) {
|
|
695
693
|
return e.type === x.literal;
|
|
696
694
|
}
|
|
697
695
|
function Cr(e) {
|
|
698
696
|
return e.type === x.argument;
|
|
699
697
|
}
|
|
700
|
-
function
|
|
698
|
+
function pt(e) {
|
|
701
699
|
return e.type === x.number;
|
|
702
700
|
}
|
|
703
|
-
function
|
|
701
|
+
function gt(e) {
|
|
704
702
|
return e.type === x.date;
|
|
705
703
|
}
|
|
706
|
-
function
|
|
704
|
+
function bt(e) {
|
|
707
705
|
return e.type === x.time;
|
|
708
706
|
}
|
|
709
|
-
function
|
|
707
|
+
function yt(e) {
|
|
710
708
|
return e.type === x.select;
|
|
711
709
|
}
|
|
712
|
-
function
|
|
710
|
+
function Et(e) {
|
|
713
711
|
return e.type === x.plural;
|
|
714
712
|
}
|
|
715
|
-
function
|
|
713
|
+
function Lr(e) {
|
|
716
714
|
return e.type === x.pound;
|
|
717
715
|
}
|
|
718
|
-
function
|
|
716
|
+
function _t(e) {
|
|
719
717
|
return e.type === x.tag;
|
|
720
718
|
}
|
|
721
|
-
function
|
|
719
|
+
function xt(e) {
|
|
722
720
|
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
723
721
|
}
|
|
724
|
-
function
|
|
722
|
+
function Ce(e) {
|
|
725
723
|
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
726
724
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
725
|
+
var vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mr = /(?:[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;
|
|
726
|
+
function $r(e) {
|
|
729
727
|
var t = {};
|
|
730
|
-
return e.replace(
|
|
728
|
+
return e.replace(Mr, function(r) {
|
|
731
729
|
var n = r.length;
|
|
732
730
|
switch (r[0]) {
|
|
733
731
|
case "G":
|
|
@@ -816,11 +814,11 @@ function Rr(e) {
|
|
|
816
814
|
return "";
|
|
817
815
|
}), t;
|
|
818
816
|
}
|
|
819
|
-
var
|
|
820
|
-
function
|
|
817
|
+
var Rr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
818
|
+
function Dr(e) {
|
|
821
819
|
if (e.length === 0)
|
|
822
820
|
throw new Error("Number skeleton cannot be empty");
|
|
823
|
-
for (var t = e.split(
|
|
821
|
+
for (var t = e.split(Rr).filter(function(c) {
|
|
824
822
|
return c.length > 0;
|
|
825
823
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
826
824
|
var s = i[n], a = s.split("/");
|
|
@@ -835,17 +833,17 @@ function Ur(e) {
|
|
|
835
833
|
}
|
|
836
834
|
return r;
|
|
837
835
|
}
|
|
838
|
-
function
|
|
836
|
+
function Ur(e) {
|
|
839
837
|
return e.replace(/^(.*?)-/, "");
|
|
840
838
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
839
|
+
var Ze = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Fr = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
|
840
|
+
function Qe(e) {
|
|
843
841
|
var t = {};
|
|
844
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
842
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
|
845
843
|
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)), "";
|
|
846
844
|
}), t;
|
|
847
845
|
}
|
|
848
|
-
function
|
|
846
|
+
function Bt(e) {
|
|
849
847
|
switch (e) {
|
|
850
848
|
case "sign-auto":
|
|
851
849
|
return {
|
|
@@ -885,7 +883,7 @@ function At(e) {
|
|
|
885
883
|
};
|
|
886
884
|
}
|
|
887
885
|
}
|
|
888
|
-
function
|
|
886
|
+
function Gr(e) {
|
|
889
887
|
var t;
|
|
890
888
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
891
889
|
notation: "engineering"
|
|
@@ -893,17 +891,17 @@ function jr(e) {
|
|
|
893
891
|
notation: "scientific"
|
|
894
892
|
}, e = e.slice(1)), t) {
|
|
895
893
|
var r = e.slice(0, 2);
|
|
896
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
894
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
|
897
895
|
throw new Error("Malformed concise eng/scientific notation");
|
|
898
896
|
t.minimumIntegerDigits = e.length;
|
|
899
897
|
}
|
|
900
898
|
return t;
|
|
901
899
|
}
|
|
902
|
-
function
|
|
903
|
-
var t = {}, r =
|
|
900
|
+
function Je(e) {
|
|
901
|
+
var t = {}, r = Bt(e);
|
|
904
902
|
return r || t;
|
|
905
903
|
}
|
|
906
|
-
function
|
|
904
|
+
function jr(e) {
|
|
907
905
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
908
906
|
var i = n[r];
|
|
909
907
|
switch (i.stem) {
|
|
@@ -927,7 +925,7 @@ function kr(e) {
|
|
|
927
925
|
continue;
|
|
928
926
|
case "measure-unit":
|
|
929
927
|
case "unit":
|
|
930
|
-
t.style = "unit", t.unit =
|
|
928
|
+
t.style = "unit", t.unit = Ur(i.options[0]);
|
|
931
929
|
continue;
|
|
932
930
|
case "compact-short":
|
|
933
931
|
case "K":
|
|
@@ -939,12 +937,12 @@ function kr(e) {
|
|
|
939
937
|
continue;
|
|
940
938
|
case "scientific":
|
|
941
939
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
942
|
-
return y(y({}, l),
|
|
940
|
+
return y(y({}, l), Je(u));
|
|
943
941
|
}, {}));
|
|
944
942
|
continue;
|
|
945
943
|
case "engineering":
|
|
946
944
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
947
|
-
return y(y({}, l),
|
|
945
|
+
return y(y({}, l), Je(u));
|
|
948
946
|
}, {}));
|
|
949
947
|
continue;
|
|
950
948
|
case "notation-simple":
|
|
@@ -989,7 +987,7 @@ function kr(e) {
|
|
|
989
987
|
case "integer-width":
|
|
990
988
|
if (i.options.length > 1)
|
|
991
989
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
992
|
-
i.options[0].replace(
|
|
990
|
+
i.options[0].replace(Fr, function(l, u, h, f, c, p) {
|
|
993
991
|
if (u)
|
|
994
992
|
t.minimumIntegerDigits = h.length;
|
|
995
993
|
else {
|
|
@@ -1002,27 +1000,27 @@ function kr(e) {
|
|
|
1002
1000
|
});
|
|
1003
1001
|
continue;
|
|
1004
1002
|
}
|
|
1005
|
-
if (
|
|
1003
|
+
if (Tt.test(i.stem)) {
|
|
1006
1004
|
t.minimumIntegerDigits = i.stem.length;
|
|
1007
1005
|
continue;
|
|
1008
1006
|
}
|
|
1009
|
-
if (
|
|
1007
|
+
if (Ze.test(i.stem)) {
|
|
1010
1008
|
if (i.options.length > 1)
|
|
1011
1009
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1012
|
-
i.stem.replace(
|
|
1010
|
+
i.stem.replace(Ze, function(l, u, h, f, c, p) {
|
|
1013
1011
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1014
1012
|
});
|
|
1015
1013
|
var s = i.options[0];
|
|
1016
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1014
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), Qe(s)));
|
|
1017
1015
|
continue;
|
|
1018
1016
|
}
|
|
1019
|
-
if (
|
|
1020
|
-
t = y(y({}, t),
|
|
1017
|
+
if (Ht.test(i.stem)) {
|
|
1018
|
+
t = y(y({}, t), Qe(i.stem));
|
|
1021
1019
|
continue;
|
|
1022
1020
|
}
|
|
1023
|
-
var a =
|
|
1021
|
+
var a = Bt(i.stem);
|
|
1024
1022
|
a && (t = y(y({}, t), a));
|
|
1025
|
-
var o =
|
|
1023
|
+
var o = Gr(i.stem);
|
|
1026
1024
|
o && (t = y(y({}, t), o));
|
|
1027
1025
|
}
|
|
1028
1026
|
return t;
|
|
@@ -2442,13 +2440,13 @@ var le = {
|
|
|
2442
2440
|
"h"
|
|
2443
2441
|
]
|
|
2444
2442
|
};
|
|
2445
|
-
function
|
|
2443
|
+
function kr(e, t) {
|
|
2446
2444
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2447
2445
|
var i = e.charAt(n);
|
|
2448
2446
|
if (i === "j") {
|
|
2449
2447
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2450
2448
|
s++, n++;
|
|
2451
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2449
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Vr(t);
|
|
2452
2450
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2453
2451
|
r += l;
|
|
2454
2452
|
for (; a-- > 0; )
|
|
@@ -2458,7 +2456,7 @@ function Vr(e, t) {
|
|
|
2458
2456
|
}
|
|
2459
2457
|
return r;
|
|
2460
2458
|
}
|
|
2461
|
-
function
|
|
2459
|
+
function Vr(e) {
|
|
2462
2460
|
var t = e.hourCycle;
|
|
2463
2461
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2464
2462
|
e.hourCycles && // @ts-ignore
|
|
@@ -2480,20 +2478,20 @@ function Xr(e) {
|
|
|
2480
2478
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2481
2479
|
return i[0];
|
|
2482
2480
|
}
|
|
2483
|
-
var Se,
|
|
2481
|
+
var Se, Xr = new RegExp("^".concat(vt.source, "*")), zr = new RegExp("".concat(vt.source, "*$"));
|
|
2484
2482
|
function b(e, t) {
|
|
2485
2483
|
return { start: e, end: t };
|
|
2486
2484
|
}
|
|
2487
|
-
var
|
|
2485
|
+
var Wr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zr = !!String.fromCodePoint, Qr = !!Object.fromEntries, Jr = !!String.prototype.codePointAt, qr = !!String.prototype.trimStart, Yr = !!String.prototype.trimEnd, Kr = !!Number.isSafeInteger, en = Kr ? Number.isSafeInteger : function(e) {
|
|
2488
2486
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2489
|
-
},
|
|
2487
|
+
}, Le = !0;
|
|
2490
2488
|
try {
|
|
2491
|
-
var
|
|
2492
|
-
|
|
2489
|
+
var tn = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2490
|
+
Le = ((Se = tn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2493
2491
|
} catch {
|
|
2494
|
-
|
|
2492
|
+
Le = !1;
|
|
2495
2493
|
}
|
|
2496
|
-
var
|
|
2494
|
+
var qe = Wr ? (
|
|
2497
2495
|
// Native
|
|
2498
2496
|
function(t, r, n) {
|
|
2499
2497
|
return t.startsWith(r, n);
|
|
@@ -2503,7 +2501,7 @@ var Ke = Zr ? (
|
|
|
2503
2501
|
function(t, r, n) {
|
|
2504
2502
|
return t.slice(n, n + r.length) === r;
|
|
2505
2503
|
}
|
|
2506
|
-
), Me =
|
|
2504
|
+
), Me = Zr ? String.fromCodePoint : (
|
|
2507
2505
|
// IE11
|
|
2508
2506
|
function() {
|
|
2509
2507
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2515,9 +2513,9 @@ var Ke = Zr ? (
|
|
|
2515
2513
|
}
|
|
2516
2514
|
return n;
|
|
2517
2515
|
}
|
|
2518
|
-
),
|
|
2516
|
+
), Ye = (
|
|
2519
2517
|
// native
|
|
2520
|
-
|
|
2518
|
+
Qr ? Object.fromEntries : (
|
|
2521
2519
|
// Ponyfill
|
|
2522
2520
|
function(t) {
|
|
2523
2521
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2527,7 +2525,7 @@ var Ke = Zr ? (
|
|
|
2527
2525
|
return r;
|
|
2528
2526
|
}
|
|
2529
2527
|
)
|
|
2530
|
-
),
|
|
2528
|
+
), St = Jr ? (
|
|
2531
2529
|
// Native
|
|
2532
2530
|
function(t, r) {
|
|
2533
2531
|
return t.codePointAt(r);
|
|
@@ -2541,7 +2539,7 @@ var Ke = Zr ? (
|
|
|
2541
2539
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2542
2540
|
}
|
|
2543
2541
|
}
|
|
2544
|
-
),
|
|
2542
|
+
), rn = qr ? (
|
|
2545
2543
|
// Native
|
|
2546
2544
|
function(t) {
|
|
2547
2545
|
return t.trimStart();
|
|
@@ -2549,9 +2547,9 @@ var Ke = Zr ? (
|
|
|
2549
2547
|
) : (
|
|
2550
2548
|
// Ponyfill
|
|
2551
2549
|
function(t) {
|
|
2552
|
-
return t.replace(
|
|
2550
|
+
return t.replace(Xr, "");
|
|
2553
2551
|
}
|
|
2554
|
-
),
|
|
2552
|
+
), nn = Yr ? (
|
|
2555
2553
|
// Native
|
|
2556
2554
|
function(t) {
|
|
2557
2555
|
return t.trimEnd();
|
|
@@ -2559,32 +2557,32 @@ var Ke = Zr ? (
|
|
|
2559
2557
|
) : (
|
|
2560
2558
|
// Ponyfill
|
|
2561
2559
|
function(t) {
|
|
2562
|
-
return t.replace(
|
|
2560
|
+
return t.replace(zr, "");
|
|
2563
2561
|
}
|
|
2564
2562
|
);
|
|
2565
|
-
function
|
|
2563
|
+
function At(e, t) {
|
|
2566
2564
|
return new RegExp(e, t);
|
|
2567
2565
|
}
|
|
2568
2566
|
var $e;
|
|
2569
|
-
if (
|
|
2570
|
-
var
|
|
2567
|
+
if (Le) {
|
|
2568
|
+
var Ke = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2571
2569
|
$e = function(t, r) {
|
|
2572
2570
|
var n;
|
|
2573
|
-
|
|
2574
|
-
var i =
|
|
2571
|
+
Ke.lastIndex = r;
|
|
2572
|
+
var i = Ke.exec(t);
|
|
2575
2573
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2576
2574
|
};
|
|
2577
2575
|
} else
|
|
2578
2576
|
$e = function(t, r) {
|
|
2579
2577
|
for (var n = []; ; ) {
|
|
2580
|
-
var i =
|
|
2581
|
-
if (i === void 0 ||
|
|
2578
|
+
var i = St(t, r);
|
|
2579
|
+
if (i === void 0 || Pt(i) || un(i))
|
|
2582
2580
|
break;
|
|
2583
2581
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2584
2582
|
}
|
|
2585
2583
|
return Me.apply(void 0, n);
|
|
2586
2584
|
};
|
|
2587
|
-
var
|
|
2585
|
+
var sn = (
|
|
2588
2586
|
/** @class */
|
|
2589
2587
|
function() {
|
|
2590
2588
|
function e(t, r) {
|
|
@@ -2666,7 +2664,7 @@ var on = (
|
|
|
2666
2664
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2667
2665
|
}, e.prototype.parseTagName = function() {
|
|
2668
2666
|
var t = this.offset();
|
|
2669
|
-
for (this.bump(); !this.isEOF() &&
|
|
2667
|
+
for (this.bump(); !this.isEOF() && an(this.char()); )
|
|
2670
2668
|
this.bump();
|
|
2671
2669
|
return this.message.slice(t, this.offset());
|
|
2672
2670
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2695,7 +2693,7 @@ var on = (
|
|
|
2695
2693
|
};
|
|
2696
2694
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2697
2695
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2698
|
-
!
|
|
2696
|
+
!on(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2699
2697
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2700
2698
|
if (this.isEOF() || this.char() !== 39)
|
|
2701
2699
|
return null;
|
|
@@ -2782,7 +2780,7 @@ var on = (
|
|
|
2782
2780
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2783
2781
|
if (f.err)
|
|
2784
2782
|
return f;
|
|
2785
|
-
var c =
|
|
2783
|
+
var c = nn(f.val);
|
|
2786
2784
|
if (c.length === 0)
|
|
2787
2785
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2788
2786
|
var p = b(h, this.clonePosition());
|
|
@@ -2792,8 +2790,8 @@ var on = (
|
|
|
2792
2790
|
if (E.err)
|
|
2793
2791
|
return E;
|
|
2794
2792
|
var T = b(i, this.clonePosition());
|
|
2795
|
-
if (u &&
|
|
2796
|
-
var P =
|
|
2793
|
+
if (u && qe(u?.style, "::", 0)) {
|
|
2794
|
+
var P = rn(u.style.slice(2));
|
|
2797
2795
|
if (o === "number") {
|
|
2798
2796
|
var f = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
2799
2797
|
return f.err ? f : {
|
|
@@ -2804,15 +2802,15 @@ var on = (
|
|
|
2804
2802
|
if (P.length === 0)
|
|
2805
2803
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2806
2804
|
var B = P;
|
|
2807
|
-
this.locale && (B =
|
|
2805
|
+
this.locale && (B = kr(P, this.locale));
|
|
2808
2806
|
var c = {
|
|
2809
2807
|
type: Q.dateTime,
|
|
2810
2808
|
pattern: B,
|
|
2811
2809
|
location: u.styleLocation,
|
|
2812
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2813
|
-
},
|
|
2810
|
+
parsedOptions: this.shouldParseSkeletons ? $r(B) : {}
|
|
2811
|
+
}, C = o === "date" ? x.date : x.time;
|
|
2814
2812
|
return {
|
|
2815
|
-
val: { type:
|
|
2813
|
+
val: { type: C, value: n, location: T, style: c },
|
|
2816
2814
|
err: null
|
|
2817
2815
|
};
|
|
2818
2816
|
}
|
|
@@ -2855,7 +2853,7 @@ var on = (
|
|
|
2855
2853
|
val: {
|
|
2856
2854
|
type: x.select,
|
|
2857
2855
|
value: n,
|
|
2858
|
-
options:
|
|
2856
|
+
options: Ye(S.val),
|
|
2859
2857
|
location: he
|
|
2860
2858
|
},
|
|
2861
2859
|
err: null
|
|
@@ -2863,7 +2861,7 @@ var on = (
|
|
|
2863
2861
|
val: {
|
|
2864
2862
|
type: x.plural,
|
|
2865
2863
|
value: n,
|
|
2866
|
-
options:
|
|
2864
|
+
options: Ye(S.val),
|
|
2867
2865
|
offset: d,
|
|
2868
2866
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2869
2867
|
location: he
|
|
@@ -2914,7 +2912,7 @@ var on = (
|
|
|
2914
2912
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2915
2913
|
var n = [];
|
|
2916
2914
|
try {
|
|
2917
|
-
n =
|
|
2915
|
+
n = Dr(t);
|
|
2918
2916
|
} catch {
|
|
2919
2917
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2920
2918
|
}
|
|
@@ -2923,7 +2921,7 @@ var on = (
|
|
|
2923
2921
|
type: Q.number,
|
|
2924
2922
|
tokens: n,
|
|
2925
2923
|
location: r,
|
|
2926
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2924
|
+
parsedOptions: this.shouldParseSkeletons ? jr(n) : {}
|
|
2927
2925
|
},
|
|
2928
2926
|
err: null
|
|
2929
2927
|
};
|
|
@@ -2971,7 +2969,7 @@ var on = (
|
|
|
2971
2969
|
break;
|
|
2972
2970
|
}
|
|
2973
2971
|
var l = b(i, this.clonePosition());
|
|
2974
|
-
return s ? (a *= n,
|
|
2972
|
+
return s ? (a *= n, en(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2975
2973
|
}, e.prototype.offset = function() {
|
|
2976
2974
|
return this.position.offset;
|
|
2977
2975
|
}, e.prototype.isEOF = function() {
|
|
@@ -2986,7 +2984,7 @@ var on = (
|
|
|
2986
2984
|
var t = this.position.offset;
|
|
2987
2985
|
if (t >= this.message.length)
|
|
2988
2986
|
throw Error("out of bound");
|
|
2989
|
-
var r =
|
|
2987
|
+
var r = St(this.message, t);
|
|
2990
2988
|
if (r === void 0)
|
|
2991
2989
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2992
2990
|
return r;
|
|
@@ -3005,7 +3003,7 @@ var on = (
|
|
|
3005
3003
|
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);
|
|
3006
3004
|
}
|
|
3007
3005
|
}, e.prototype.bumpIf = function(t) {
|
|
3008
|
-
if (
|
|
3006
|
+
if (qe(this.message, t, this.offset())) {
|
|
3009
3007
|
for (var r = 0; r < t.length; r++)
|
|
3010
3008
|
this.bump();
|
|
3011
3009
|
return !0;
|
|
@@ -3027,7 +3025,7 @@ var on = (
|
|
|
3027
3025
|
break;
|
|
3028
3026
|
}
|
|
3029
3027
|
}, e.prototype.bumpSpace = function() {
|
|
3030
|
-
for (; !this.isEOF() &&
|
|
3028
|
+
for (; !this.isEOF() && Pt(this.char()); )
|
|
3031
3029
|
this.bump();
|
|
3032
3030
|
}, e.prototype.peek = function() {
|
|
3033
3031
|
if (this.isEOF())
|
|
@@ -3040,30 +3038,30 @@ var on = (
|
|
|
3040
3038
|
function Re(e) {
|
|
3041
3039
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3042
3040
|
}
|
|
3043
|
-
function
|
|
3041
|
+
function on(e) {
|
|
3044
3042
|
return Re(e) || e === 47;
|
|
3045
3043
|
}
|
|
3046
|
-
function
|
|
3044
|
+
function an(e) {
|
|
3047
3045
|
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;
|
|
3048
3046
|
}
|
|
3049
|
-
function
|
|
3047
|
+
function Pt(e) {
|
|
3050
3048
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3051
3049
|
}
|
|
3052
|
-
function
|
|
3050
|
+
function un(e) {
|
|
3053
3051
|
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;
|
|
3054
3052
|
}
|
|
3055
3053
|
function De(e) {
|
|
3056
3054
|
e.forEach(function(t) {
|
|
3057
|
-
if (delete t.location,
|
|
3055
|
+
if (delete t.location, yt(t) || Et(t))
|
|
3058
3056
|
for (var r in t.options)
|
|
3059
3057
|
delete t.options[r].location, De(t.options[r].value);
|
|
3060
3058
|
else
|
|
3061
|
-
|
|
3059
|
+
pt(t) && xt(t.style) || (gt(t) || bt(t)) && Ce(t.style) ? delete t.style.location : _t(t) && De(t.children);
|
|
3062
3060
|
});
|
|
3063
3061
|
}
|
|
3064
|
-
function
|
|
3062
|
+
function hn(e, t) {
|
|
3065
3063
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3066
|
-
var r = new
|
|
3064
|
+
var r = new sn(e, t).parse();
|
|
3067
3065
|
if (r.err) {
|
|
3068
3066
|
var n = SyntaxError(g[r.err.kind]);
|
|
3069
3067
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3086,7 +3084,7 @@ var Ee = (
|
|
|
3086
3084
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3087
3085
|
}, t;
|
|
3088
3086
|
}(Error)
|
|
3089
|
-
),
|
|
3087
|
+
), et = (
|
|
3090
3088
|
/** @class */
|
|
3091
3089
|
function(e) {
|
|
3092
3090
|
ye(t, e);
|
|
@@ -3095,7 +3093,7 @@ var Ee = (
|
|
|
3095
3093
|
}
|
|
3096
3094
|
return t;
|
|
3097
3095
|
}(Ee)
|
|
3098
|
-
),
|
|
3096
|
+
), ln = (
|
|
3099
3097
|
/** @class */
|
|
3100
3098
|
function(e) {
|
|
3101
3099
|
ye(t, e);
|
|
@@ -3104,7 +3102,7 @@ var Ee = (
|
|
|
3104
3102
|
}
|
|
3105
3103
|
return t;
|
|
3106
3104
|
}(Ee)
|
|
3107
|
-
),
|
|
3105
|
+
), fn = (
|
|
3108
3106
|
/** @class */
|
|
3109
3107
|
function(e) {
|
|
3110
3108
|
ye(t, e);
|
|
@@ -3117,17 +3115,17 @@ var Ee = (
|
|
|
3117
3115
|
(function(e) {
|
|
3118
3116
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3119
3117
|
})(N || (N = {}));
|
|
3120
|
-
function
|
|
3118
|
+
function cn(e) {
|
|
3121
3119
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3122
3120
|
var n = t[t.length - 1];
|
|
3123
3121
|
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
|
3124
3122
|
}, []);
|
|
3125
3123
|
}
|
|
3126
|
-
function
|
|
3124
|
+
function mn(e) {
|
|
3127
3125
|
return typeof e == "function";
|
|
3128
3126
|
}
|
|
3129
3127
|
function ce(e, t, r, n, i, s, a) {
|
|
3130
|
-
if (e.length === 1 &&
|
|
3128
|
+
if (e.length === 1 && We(e[0]))
|
|
3131
3129
|
return [
|
|
3132
3130
|
{
|
|
3133
3131
|
type: N.literal,
|
|
@@ -3136,14 +3134,14 @@ function ce(e, t, r, n, i, s, a) {
|
|
|
3136
3134
|
];
|
|
3137
3135
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3138
3136
|
var h = u[l];
|
|
3139
|
-
if (
|
|
3137
|
+
if (We(h)) {
|
|
3140
3138
|
o.push({
|
|
3141
3139
|
type: N.literal,
|
|
3142
3140
|
value: h.value
|
|
3143
3141
|
});
|
|
3144
3142
|
continue;
|
|
3145
3143
|
}
|
|
3146
|
-
if (
|
|
3144
|
+
if (Lr(h)) {
|
|
3147
3145
|
typeof s == "number" && o.push({
|
|
3148
3146
|
type: N.literal,
|
|
3149
3147
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3152,7 +3150,7 @@ function ce(e, t, r, n, i, s, a) {
|
|
|
3152
3150
|
}
|
|
3153
3151
|
var f = h.value;
|
|
3154
3152
|
if (!(i && f in i))
|
|
3155
|
-
throw new
|
|
3153
|
+
throw new fn(f, a);
|
|
3156
3154
|
var c = i[f];
|
|
3157
3155
|
if (Cr(h)) {
|
|
3158
3156
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
@@ -3161,52 +3159,52 @@ function ce(e, t, r, n, i, s, a) {
|
|
|
3161
3159
|
});
|
|
3162
3160
|
continue;
|
|
3163
3161
|
}
|
|
3164
|
-
if (
|
|
3165
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3162
|
+
if (gt(h)) {
|
|
3163
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ce(h.style) ? h.style.parsedOptions : void 0;
|
|
3166
3164
|
o.push({
|
|
3167
3165
|
type: N.literal,
|
|
3168
3166
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3169
3167
|
});
|
|
3170
3168
|
continue;
|
|
3171
3169
|
}
|
|
3172
|
-
if (
|
|
3173
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3170
|
+
if (bt(h)) {
|
|
3171
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ce(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3174
3172
|
o.push({
|
|
3175
3173
|
type: N.literal,
|
|
3176
3174
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3177
3175
|
});
|
|
3178
3176
|
continue;
|
|
3179
3177
|
}
|
|
3180
|
-
if (
|
|
3181
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3178
|
+
if (pt(h)) {
|
|
3179
|
+
var p = typeof h.style == "string" ? n.number[h.style] : xt(h.style) ? h.style.parsedOptions : void 0;
|
|
3182
3180
|
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3183
3181
|
type: N.literal,
|
|
3184
3182
|
value: r.getNumberFormat(t, p).format(c)
|
|
3185
3183
|
});
|
|
3186
3184
|
continue;
|
|
3187
3185
|
}
|
|
3188
|
-
if (
|
|
3186
|
+
if (_t(h)) {
|
|
3189
3187
|
var E = h.children, T = h.value, P = i[T];
|
|
3190
|
-
if (!
|
|
3191
|
-
throw new
|
|
3192
|
-
var B = ce(E, t, r, n, i, s),
|
|
3188
|
+
if (!mn(P))
|
|
3189
|
+
throw new ln(T, "function", a);
|
|
3190
|
+
var B = ce(E, t, r, n, i, s), C = P(B.map(function(d) {
|
|
3193
3191
|
return d.value;
|
|
3194
3192
|
}));
|
|
3195
|
-
Array.isArray(
|
|
3193
|
+
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(d) {
|
|
3196
3194
|
return {
|
|
3197
3195
|
type: typeof d == "string" ? N.literal : N.object,
|
|
3198
3196
|
value: d
|
|
3199
3197
|
};
|
|
3200
3198
|
}));
|
|
3201
3199
|
}
|
|
3202
|
-
if (
|
|
3200
|
+
if (yt(h)) {
|
|
3203
3201
|
var v = h.options[c] || h.options.other;
|
|
3204
3202
|
if (!v)
|
|
3205
|
-
throw new
|
|
3203
|
+
throw new et(h.value, c, Object.keys(h.options), a);
|
|
3206
3204
|
o.push.apply(o, ce(v.value, t, r, n, i));
|
|
3207
3205
|
continue;
|
|
3208
3206
|
}
|
|
3209
|
-
if (
|
|
3207
|
+
if (Et(h)) {
|
|
3210
3208
|
var v = h.options["=".concat(c)];
|
|
3211
3209
|
if (!v) {
|
|
3212
3210
|
if (!Intl.PluralRules)
|
|
@@ -3217,21 +3215,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3217
3215
|
v = h.options[H] || h.options.other;
|
|
3218
3216
|
}
|
|
3219
3217
|
if (!v)
|
|
3220
|
-
throw new
|
|
3218
|
+
throw new et(h.value, c, Object.keys(h.options), a);
|
|
3221
3219
|
o.push.apply(o, ce(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3222
3220
|
continue;
|
|
3223
3221
|
}
|
|
3224
3222
|
}
|
|
3225
|
-
return
|
|
3223
|
+
return cn(o);
|
|
3226
3224
|
}
|
|
3227
|
-
function
|
|
3225
|
+
function dn(e, t) {
|
|
3228
3226
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3229
3227
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3230
3228
|
}, {})) : e;
|
|
3231
3229
|
}
|
|
3232
|
-
function
|
|
3230
|
+
function pn(e, t) {
|
|
3233
3231
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3234
|
-
return r[n] =
|
|
3232
|
+
return r[n] = dn(e[n], t[n]), r;
|
|
3235
3233
|
}, y({}, e)) : e;
|
|
3236
3234
|
}
|
|
3237
3235
|
function Ae(e) {
|
|
@@ -3248,7 +3246,7 @@ function Ae(e) {
|
|
|
3248
3246
|
}
|
|
3249
3247
|
};
|
|
3250
3248
|
}
|
|
3251
|
-
function
|
|
3249
|
+
function gn(e) {
|
|
3252
3250
|
return e === void 0 && (e = {
|
|
3253
3251
|
number: {},
|
|
3254
3252
|
dateTime: {},
|
|
@@ -3280,7 +3278,7 @@ function bn(e) {
|
|
|
3280
3278
|
})
|
|
3281
3279
|
};
|
|
3282
3280
|
}
|
|
3283
|
-
var
|
|
3281
|
+
var bn = (
|
|
3284
3282
|
/** @class */
|
|
3285
3283
|
function() {
|
|
3286
3284
|
function e(t, r, n, i) {
|
|
@@ -3312,13 +3310,13 @@ var yn = (
|
|
|
3312
3310
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3313
3311
|
var a = i || {};
|
|
3314
3312
|
a.formatters;
|
|
3315
|
-
var o =
|
|
3313
|
+
var o = Br(a, ["formatters"]);
|
|
3316
3314
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3317
3315
|
} else
|
|
3318
3316
|
this.ast = t;
|
|
3319
3317
|
if (!Array.isArray(this.ast))
|
|
3320
3318
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3321
|
-
this.formats =
|
|
3319
|
+
this.formats = pn(e.formats, n), this.formatters = i && i.formatters || gn(this.formatterCache);
|
|
3322
3320
|
}
|
|
3323
3321
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3324
3322
|
get: function() {
|
|
@@ -3331,7 +3329,7 @@ var yn = (
|
|
|
3331
3329
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3332
3330
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3333
3331
|
}
|
|
3334
|
-
}, e.__parse =
|
|
3332
|
+
}, e.__parse = hn, e.formats = {
|
|
3335
3333
|
number: {
|
|
3336
3334
|
integer: {
|
|
3337
3335
|
maximumFractionDigits: 0
|
|
@@ -3392,7 +3390,7 @@ var yn = (
|
|
|
3392
3390
|
}, e;
|
|
3393
3391
|
}()
|
|
3394
3392
|
);
|
|
3395
|
-
function
|
|
3393
|
+
function yn(e, t) {
|
|
3396
3394
|
if (t == null)
|
|
3397
3395
|
return;
|
|
3398
3396
|
if (t in e)
|
|
@@ -3413,60 +3411,60 @@ function En(e, t) {
|
|
|
3413
3411
|
n = void 0;
|
|
3414
3412
|
return n;
|
|
3415
3413
|
}
|
|
3416
|
-
const U = {},
|
|
3414
|
+
const U = {}, En = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), Nt = (e, t) => {
|
|
3417
3415
|
if (t == null)
|
|
3418
3416
|
return;
|
|
3419
3417
|
if (t in U && e in U[t])
|
|
3420
3418
|
return U[t][e];
|
|
3421
3419
|
const r = _e(t);
|
|
3422
3420
|
for (let n = 0; n < r.length; n++) {
|
|
3423
|
-
const i = r[n], s =
|
|
3421
|
+
const i = r[n], s = xn(i, e);
|
|
3424
3422
|
if (s)
|
|
3425
|
-
return
|
|
3423
|
+
return En(e, t, s);
|
|
3426
3424
|
}
|
|
3427
3425
|
};
|
|
3428
|
-
let
|
|
3426
|
+
let Ge;
|
|
3429
3427
|
const ae = be({});
|
|
3430
|
-
function
|
|
3431
|
-
return
|
|
3428
|
+
function _n(e) {
|
|
3429
|
+
return Ge[e] || null;
|
|
3432
3430
|
}
|
|
3433
|
-
function
|
|
3434
|
-
return e in
|
|
3431
|
+
function Ot(e) {
|
|
3432
|
+
return e in Ge;
|
|
3435
3433
|
}
|
|
3436
|
-
function
|
|
3437
|
-
if (!
|
|
3434
|
+
function xn(e, t) {
|
|
3435
|
+
if (!Ot(e))
|
|
3438
3436
|
return null;
|
|
3439
|
-
const r =
|
|
3440
|
-
return
|
|
3437
|
+
const r = _n(e);
|
|
3438
|
+
return yn(r, t);
|
|
3441
3439
|
}
|
|
3442
|
-
function
|
|
3440
|
+
function vn(e) {
|
|
3443
3441
|
if (e == null)
|
|
3444
3442
|
return;
|
|
3445
3443
|
const t = _e(e);
|
|
3446
3444
|
for (let r = 0; r < t.length; r++) {
|
|
3447
3445
|
const n = t[r];
|
|
3448
|
-
if (
|
|
3446
|
+
if (Ot(n))
|
|
3449
3447
|
return n;
|
|
3450
3448
|
}
|
|
3451
3449
|
}
|
|
3452
|
-
function
|
|
3453
|
-
delete U[e], ae.update((r) => (r[e] =
|
|
3450
|
+
function It(e, ...t) {
|
|
3451
|
+
delete U[e], ae.update((r) => (r[e] = Tr.all([r[e] || {}, ...t]), r));
|
|
3454
3452
|
}
|
|
3455
3453
|
Y(
|
|
3456
3454
|
[ae],
|
|
3457
3455
|
([e]) => Object.keys(e)
|
|
3458
3456
|
);
|
|
3459
|
-
ae.subscribe((e) =>
|
|
3457
|
+
ae.subscribe((e) => Ge = e);
|
|
3460
3458
|
const me = {};
|
|
3461
|
-
function
|
|
3459
|
+
function Hn(e, t) {
|
|
3462
3460
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3463
3461
|
}
|
|
3464
|
-
function
|
|
3462
|
+
function wt(e) {
|
|
3465
3463
|
return me[e];
|
|
3466
3464
|
}
|
|
3467
|
-
function
|
|
3465
|
+
function Tn(e) {
|
|
3468
3466
|
return _e(e).map((t) => {
|
|
3469
|
-
const r =
|
|
3467
|
+
const r = wt(t);
|
|
3470
3468
|
return [t, r ? [...r] : []];
|
|
3471
3469
|
}).filter(([, t]) => t.length > 0);
|
|
3472
3470
|
}
|
|
@@ -3474,31 +3472,31 @@ function Ue(e) {
|
|
|
3474
3472
|
return e == null ? !1 : _e(e).some(
|
|
3475
3473
|
(t) => {
|
|
3476
3474
|
var r;
|
|
3477
|
-
return (r =
|
|
3475
|
+
return (r = wt(t)) == null ? void 0 : r.size;
|
|
3478
3476
|
}
|
|
3479
3477
|
);
|
|
3480
3478
|
}
|
|
3481
|
-
function
|
|
3479
|
+
function Bn(e, t) {
|
|
3482
3480
|
return Promise.all(
|
|
3483
|
-
t.map((n) => (
|
|
3484
|
-
).then((n) =>
|
|
3481
|
+
t.map((n) => (Hn(e, n), n().then((i) => i.default || i)))
|
|
3482
|
+
).then((n) => It(e, ...n));
|
|
3485
3483
|
}
|
|
3486
3484
|
const ee = {};
|
|
3487
|
-
function
|
|
3485
|
+
function Ct(e) {
|
|
3488
3486
|
if (!Ue(e))
|
|
3489
3487
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3490
|
-
const t =
|
|
3488
|
+
const t = Tn(e);
|
|
3491
3489
|
return ee[e] = Promise.all(
|
|
3492
3490
|
t.map(
|
|
3493
|
-
([r, n]) =>
|
|
3491
|
+
([r, n]) => Bn(r, n)
|
|
3494
3492
|
)
|
|
3495
3493
|
).then(() => {
|
|
3496
3494
|
if (Ue(e))
|
|
3497
|
-
return
|
|
3495
|
+
return Ct(e);
|
|
3498
3496
|
delete ee[e];
|
|
3499
3497
|
}), ee[e];
|
|
3500
3498
|
}
|
|
3501
|
-
const
|
|
3499
|
+
const Sn = {
|
|
3502
3500
|
number: {
|
|
3503
3501
|
scientific: { notation: "scientific" },
|
|
3504
3502
|
engineering: { notation: "engineering" },
|
|
@@ -3527,34 +3525,34 @@ const An = {
|
|
|
3527
3525
|
timeZoneName: "short"
|
|
3528
3526
|
}
|
|
3529
3527
|
}
|
|
3530
|
-
},
|
|
3528
|
+
}, An = {
|
|
3531
3529
|
fallbackLocale: null,
|
|
3532
3530
|
loadingDelay: 200,
|
|
3533
|
-
formats:
|
|
3531
|
+
formats: Sn,
|
|
3534
3532
|
warnOnMissingMessages: !0,
|
|
3535
3533
|
handleMissingMessage: void 0,
|
|
3536
3534
|
ignoreTag: !0
|
|
3537
|
-
},
|
|
3535
|
+
}, Pn = An;
|
|
3538
3536
|
function q() {
|
|
3539
|
-
return
|
|
3537
|
+
return Pn;
|
|
3540
3538
|
}
|
|
3541
3539
|
const Pe = be(!1);
|
|
3542
|
-
var
|
|
3540
|
+
var Nn = Object.defineProperty, On = Object.defineProperties, In = Object.getOwnPropertyDescriptors, tt = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, rt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ln = (e, t) => {
|
|
3543
3541
|
for (var r in t || (t = {}))
|
|
3544
|
-
|
|
3545
|
-
if (
|
|
3546
|
-
for (var r of
|
|
3547
|
-
Cn.call(t, r) &&
|
|
3542
|
+
wn.call(t, r) && rt(e, r, t[r]);
|
|
3543
|
+
if (tt)
|
|
3544
|
+
for (var r of tt(t))
|
|
3545
|
+
Cn.call(t, r) && rt(e, r, t[r]);
|
|
3548
3546
|
return e;
|
|
3549
|
-
},
|
|
3547
|
+
}, Mn = (e, t) => On(e, In(t));
|
|
3550
3548
|
let Fe;
|
|
3551
3549
|
const de = be(null);
|
|
3552
|
-
function
|
|
3550
|
+
function nt(e) {
|
|
3553
3551
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3554
3552
|
}
|
|
3555
3553
|
function _e(e, t = q().fallbackLocale) {
|
|
3556
|
-
const r =
|
|
3557
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3554
|
+
const r = nt(e);
|
|
3555
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...nt(t)])] : r;
|
|
3558
3556
|
}
|
|
3559
3557
|
function k() {
|
|
3560
3558
|
return Fe ?? void 0;
|
|
@@ -3562,22 +3560,22 @@ function k() {
|
|
|
3562
3560
|
de.subscribe((e) => {
|
|
3563
3561
|
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3564
3562
|
});
|
|
3565
|
-
const
|
|
3566
|
-
if (e &&
|
|
3563
|
+
const $n = (e) => {
|
|
3564
|
+
if (e && vn(e) && Ue(e)) {
|
|
3567
3565
|
const { loadingDelay: t } = q();
|
|
3568
3566
|
let r;
|
|
3569
3567
|
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3570
3568
|
() => Pe.set(!0),
|
|
3571
3569
|
t
|
|
3572
|
-
) : Pe.set(!0),
|
|
3570
|
+
) : Pe.set(!0), Ct(e).then(() => {
|
|
3573
3571
|
de.set(e);
|
|
3574
3572
|
}).finally(() => {
|
|
3575
3573
|
clearTimeout(r), Pe.set(!1);
|
|
3576
3574
|
});
|
|
3577
3575
|
}
|
|
3578
3576
|
return de.set(e);
|
|
3579
|
-
}, ue =
|
|
3580
|
-
set:
|
|
3577
|
+
}, ue = Mn(Ln({}, de), {
|
|
3578
|
+
set: $n
|
|
3581
3579
|
}), xe = (e) => {
|
|
3582
3580
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3583
3581
|
return (n) => {
|
|
@@ -3585,20 +3583,20 @@ const Rn = (e) => {
|
|
|
3585
3583
|
return i in t ? t[i] : t[i] = e(n);
|
|
3586
3584
|
};
|
|
3587
3585
|
};
|
|
3588
|
-
var
|
|
3586
|
+
var Rn = Object.defineProperty, pe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
|
3589
3587
|
for (var r in t || (t = {}))
|
|
3590
|
-
|
|
3588
|
+
Lt.call(t, r) && it(e, r, t[r]);
|
|
3591
3589
|
if (pe)
|
|
3592
3590
|
for (var r of pe(t))
|
|
3593
|
-
|
|
3591
|
+
Mt.call(t, r) && it(e, r, t[r]);
|
|
3594
3592
|
return e;
|
|
3595
3593
|
}, K = (e, t) => {
|
|
3596
3594
|
var r = {};
|
|
3597
3595
|
for (var n in e)
|
|
3598
|
-
|
|
3596
|
+
Lt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3599
3597
|
if (e != null && pe)
|
|
3600
3598
|
for (var n of pe(e))
|
|
3601
|
-
t.indexOf(n) < 0 &&
|
|
3599
|
+
t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
|
|
3602
3600
|
return r;
|
|
3603
3601
|
};
|
|
3604
3602
|
const se = (e, t) => {
|
|
@@ -3606,21 +3604,21 @@ const se = (e, t) => {
|
|
|
3606
3604
|
if (e in r && t in r[e])
|
|
3607
3605
|
return r[e][t];
|
|
3608
3606
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3609
|
-
},
|
|
3607
|
+
}, Dn = xe(
|
|
3610
3608
|
(e) => {
|
|
3611
3609
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
3612
3610
|
if (r == null)
|
|
3613
3611
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3614
3612
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3615
3613
|
}
|
|
3616
|
-
),
|
|
3614
|
+
), Un = xe(
|
|
3617
3615
|
(e) => {
|
|
3618
3616
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
3619
3617
|
if (r == null)
|
|
3620
3618
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3621
3619
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3622
3620
|
}
|
|
3623
|
-
),
|
|
3621
|
+
), Fn = xe(
|
|
3624
3622
|
(e) => {
|
|
3625
3623
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
3626
3624
|
if (r == null)
|
|
@@ -3629,33 +3627,33 @@ const se = (e, t) => {
|
|
|
3629
3627
|
);
|
|
3630
3628
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3631
3629
|
}
|
|
3632
|
-
),
|
|
3630
|
+
), Gn = (e = {}) => {
|
|
3633
3631
|
var t = e, {
|
|
3634
3632
|
locale: r = k()
|
|
3635
3633
|
} = t, n = K(t, [
|
|
3636
3634
|
"locale"
|
|
3637
3635
|
]);
|
|
3638
|
-
return
|
|
3639
|
-
},
|
|
3636
|
+
return Dn(je({ locale: r }, n));
|
|
3637
|
+
}, jn = (e = {}) => {
|
|
3640
3638
|
var t = e, {
|
|
3641
3639
|
locale: r = k()
|
|
3642
3640
|
} = t, n = K(t, [
|
|
3643
3641
|
"locale"
|
|
3644
3642
|
]);
|
|
3645
|
-
return
|
|
3646
|
-
},
|
|
3643
|
+
return Un(je({ locale: r }, n));
|
|
3644
|
+
}, kn = (e = {}) => {
|
|
3647
3645
|
var t = e, {
|
|
3648
3646
|
locale: r = k()
|
|
3649
3647
|
} = t, n = K(t, [
|
|
3650
3648
|
"locale"
|
|
3651
3649
|
]);
|
|
3652
|
-
return
|
|
3653
|
-
},
|
|
3650
|
+
return Fn(je({ locale: r }, n));
|
|
3651
|
+
}, Vn = xe(
|
|
3654
3652
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3655
|
-
(e, t = k()) => new
|
|
3653
|
+
(e, t = k()) => new bn(e, t, q().formats, {
|
|
3656
3654
|
ignoreTag: q().ignoreTag
|
|
3657
3655
|
})
|
|
3658
|
-
),
|
|
3656
|
+
), Xn = (e, t = {}) => {
|
|
3659
3657
|
var r, n, i, s;
|
|
3660
3658
|
let a = t;
|
|
3661
3659
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3668,7 +3666,7 @@ const se = (e, t) => {
|
|
|
3668
3666
|
throw new Error(
|
|
3669
3667
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3670
3668
|
);
|
|
3671
|
-
let h =
|
|
3669
|
+
let h = Nt(e, l);
|
|
3672
3670
|
if (!h)
|
|
3673
3671
|
h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3674
3672
|
else if (typeof h != "string")
|
|
@@ -3679,7 +3677,7 @@ const se = (e, t) => {
|
|
|
3679
3677
|
return h;
|
|
3680
3678
|
let f = h;
|
|
3681
3679
|
try {
|
|
3682
|
-
f =
|
|
3680
|
+
f = Vn(h, l).format(o);
|
|
3683
3681
|
} catch (c) {
|
|
3684
3682
|
c instanceof Error && console.warn(
|
|
3685
3683
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3687,15 +3685,15 @@ const se = (e, t) => {
|
|
|
3687
3685
|
);
|
|
3688
3686
|
}
|
|
3689
3687
|
return f;
|
|
3690
|
-
},
|
|
3688
|
+
}, zn = (e, t) => kn(t).format(e), Wn = (e, t) => jn(t).format(e), Zn = (e, t) => Gn(t).format(e), Qn = (e, t = k()) => Nt(e, t), Jn = Y([ue, ae], () => Xn);
|
|
3689
|
+
Y([ue], () => zn);
|
|
3691
3690
|
Y([ue], () => Wn);
|
|
3692
3691
|
Y([ue], () => Zn);
|
|
3693
|
-
Y([ue], () => Qn);
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
Lt(e, t);
|
|
3692
|
+
Y([ue, ae], () => Qn);
|
|
3693
|
+
function st(e, t) {
|
|
3694
|
+
It(e, t);
|
|
3697
3695
|
}
|
|
3698
|
-
const
|
|
3696
|
+
const ot = {
|
|
3699
3697
|
en: {
|
|
3700
3698
|
finished: "Finished",
|
|
3701
3699
|
starting: "Starting in ",
|
|
@@ -3785,10 +3783,10 @@ const ut = {
|
|
|
3785
3783
|
days: "days"
|
|
3786
3784
|
}
|
|
3787
3785
|
};
|
|
3788
|
-
function
|
|
3789
|
-
|
|
3786
|
+
function qn(e) {
|
|
3787
|
+
jt(e, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
3790
3788
|
}
|
|
3791
|
-
function
|
|
3789
|
+
function at(e) {
|
|
3792
3790
|
let t, r, n = (
|
|
3793
3791
|
/*formatDate*/
|
|
3794
3792
|
e[10](
|
|
@@ -3807,39 +3805,39 @@ function ht(e) {
|
|
|
3807
3805
|
/*status*/
|
|
3808
3806
|
d[2] == "Finished" || /*status*/
|
|
3809
3807
|
d[2] == "Closing" || /*status*/
|
|
3810
|
-
d[2] == "Closed" ?
|
|
3808
|
+
d[2] == "Closed" ? ei : (
|
|
3811
3809
|
/*tournamentUntilStartDays*/
|
|
3812
|
-
d[5] > 0 ?
|
|
3810
|
+
d[5] > 0 ? Kn : Yn
|
|
3813
3811
|
)
|
|
3814
3812
|
);
|
|
3815
3813
|
}
|
|
3816
3814
|
let P = T(e), B = P(e);
|
|
3817
|
-
function
|
|
3815
|
+
function C(d, S) {
|
|
3818
3816
|
if (
|
|
3819
3817
|
/*status*/
|
|
3820
3818
|
d[2] == "Finished" || /*status*/
|
|
3821
3819
|
d[2] == "Closing" || /*status*/
|
|
3822
3820
|
d[2] == "Closed"
|
|
3823
3821
|
)
|
|
3824
|
-
return
|
|
3822
|
+
return ni;
|
|
3825
3823
|
if (
|
|
3826
3824
|
/*tournamentUntilStartDays*/
|
|
3827
3825
|
d[5] > 0
|
|
3828
3826
|
)
|
|
3829
|
-
return
|
|
3827
|
+
return ri;
|
|
3830
3828
|
if (
|
|
3831
3829
|
/*tournamentLeftDays*/
|
|
3832
3830
|
d[4] > 0
|
|
3833
3831
|
)
|
|
3834
|
-
return
|
|
3832
|
+
return ti;
|
|
3835
3833
|
}
|
|
3836
|
-
let v =
|
|
3834
|
+
let v = C(e), H = v && v(e);
|
|
3837
3835
|
return {
|
|
3838
3836
|
c() {
|
|
3839
3837
|
t = I("div"), r = I("div"), i = F(n), s = te(), a = I("div"), l = F(o), u = te(), h = I("div"), f = I("div"), B.c(), c = te(), H && H.c(), _(r, "class", "StartDate"), _(r, "part", "StartDate"), _(a, "class", "EndDate"), _(a, "part", "EndDate"), _(t, "class", "TournamentDates"), _(t, "part", "TournamentDates"), _(f, "class", "ProgressBar"), _(f, "part", "ProgressBar"), _(h, "class", "ProgressBarWrapper"), _(h, "part", "ProgressBarWrapper");
|
|
3840
3838
|
},
|
|
3841
3839
|
m(d, S) {
|
|
3842
|
-
$(d, t, S), O(t, r), O(r, i), O(t, s), O(t, a), O(a, l), $(d, u, S), $(d, h, S), O(h, f), B.m(f, null), O(f, c), H && H.m(f, null), p || (E =
|
|
3840
|
+
$(d, t, S), O(t, r), O(r, i), O(t, s), O(t, a), O(a, l), $(d, u, S), $(d, h, S), O(h, f), B.m(f, null), O(f, c), H && H.m(f, null), p || (E = Gt(
|
|
3843
3841
|
/*getDuration*/
|
|
3844
3842
|
e[9].call(null, h)
|
|
3845
3843
|
), p = !0);
|
|
@@ -3855,18 +3853,18 @@ function ht(e) {
|
|
|
3855
3853
|
d[10](
|
|
3856
3854
|
/*enddate*/
|
|
3857
3855
|
d[1]
|
|
3858
|
-
) + "") && j(l, o), P === (P = T(d)) && B ? B.p(d, S) : (B.d(1), B = P(d), B && (B.c(), B.m(f, c))), v === (v =
|
|
3856
|
+
) + "") && j(l, o), P === (P = T(d)) && B ? B.p(d, S) : (B.d(1), B = P(d), B && (B.c(), B.m(f, c))), v === (v = C(d)) && H ? H.p(d, S) : (H && H.d(1), H = v && v(d), H && (H.c(), H.m(f, null)));
|
|
3859
3857
|
},
|
|
3860
3858
|
d(d) {
|
|
3861
3859
|
d && (M(t), M(u), M(h)), B.d(), H && H.d(), p = !1, E();
|
|
3862
3860
|
}
|
|
3863
3861
|
};
|
|
3864
3862
|
}
|
|
3865
|
-
function
|
|
3863
|
+
function Yn(e) {
|
|
3866
3864
|
let t;
|
|
3867
3865
|
return {
|
|
3868
3866
|
c() {
|
|
3869
|
-
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"),
|
|
3867
|
+
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), Ve(
|
|
3870
3868
|
t,
|
|
3871
3869
|
"width",
|
|
3872
3870
|
/*getProgress*/
|
|
@@ -3878,7 +3876,7 @@ function Kn(e) {
|
|
|
3878
3876
|
},
|
|
3879
3877
|
p(r, n) {
|
|
3880
3878
|
n & /*getProgress*/
|
|
3881
|
-
128 &&
|
|
3879
|
+
128 && Ve(
|
|
3882
3880
|
t,
|
|
3883
3881
|
"width",
|
|
3884
3882
|
/*getProgress*/
|
|
@@ -3890,7 +3888,7 @@ function Kn(e) {
|
|
|
3890
3888
|
}
|
|
3891
3889
|
};
|
|
3892
3890
|
}
|
|
3893
|
-
function
|
|
3891
|
+
function Kn(e) {
|
|
3894
3892
|
let t;
|
|
3895
3893
|
return {
|
|
3896
3894
|
c() {
|
|
@@ -3905,7 +3903,7 @@ function ei(e) {
|
|
|
3905
3903
|
}
|
|
3906
3904
|
};
|
|
3907
3905
|
}
|
|
3908
|
-
function
|
|
3906
|
+
function ei(e) {
|
|
3909
3907
|
let t;
|
|
3910
3908
|
return {
|
|
3911
3909
|
c() {
|
|
@@ -3920,7 +3918,7 @@ function ti(e) {
|
|
|
3920
3918
|
}
|
|
3921
3919
|
};
|
|
3922
3920
|
}
|
|
3923
|
-
function
|
|
3921
|
+
function ti(e) {
|
|
3924
3922
|
let t, r, n, i = (
|
|
3925
3923
|
/*$_*/
|
|
3926
3924
|
e[8]("left") + ""
|
|
@@ -3950,7 +3948,7 @@ function ri(e) {
|
|
|
3950
3948
|
}
|
|
3951
3949
|
};
|
|
3952
3950
|
}
|
|
3953
|
-
function
|
|
3951
|
+
function ri(e) {
|
|
3954
3952
|
let t, r = (
|
|
3955
3953
|
/*$_*/
|
|
3956
3954
|
e[8]("starting") + ""
|
|
@@ -3983,7 +3981,7 @@ function ni(e) {
|
|
|
3983
3981
|
}
|
|
3984
3982
|
};
|
|
3985
3983
|
}
|
|
3986
|
-
function
|
|
3984
|
+
function ni(e) {
|
|
3987
3985
|
let t, r = (
|
|
3988
3986
|
/*$_*/
|
|
3989
3987
|
e[8]("finished") + ""
|
|
@@ -4005,11 +4003,11 @@ function ii(e) {
|
|
|
4005
4003
|
}
|
|
4006
4004
|
};
|
|
4007
4005
|
}
|
|
4008
|
-
function
|
|
4006
|
+
function ii(e) {
|
|
4009
4007
|
let t, r = (
|
|
4010
4008
|
/*startdate*/
|
|
4011
4009
|
e[0] && /*enddate*/
|
|
4012
|
-
e[1] &&
|
|
4010
|
+
e[1] && at(e)
|
|
4013
4011
|
);
|
|
4014
4012
|
return {
|
|
4015
4013
|
c() {
|
|
@@ -4021,7 +4019,7 @@ function si(e) {
|
|
|
4021
4019
|
p(n, [i]) {
|
|
4022
4020
|
/*startdate*/
|
|
4023
4021
|
n[0] && /*enddate*/
|
|
4024
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
4022
|
+
n[1] ? r ? r.p(n, i) : (r = at(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4025
4023
|
},
|
|
4026
4024
|
i: w,
|
|
4027
4025
|
o: w,
|
|
@@ -4030,37 +4028,37 @@ function si(e) {
|
|
|
4030
4028
|
}
|
|
4031
4029
|
};
|
|
4032
4030
|
}
|
|
4033
|
-
function
|
|
4031
|
+
function si(e, t, r) {
|
|
4034
4032
|
let n, i;
|
|
4035
|
-
|
|
4033
|
+
Ft(e, Jn, (m) => r(8, i = m));
|
|
4036
4034
|
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c, p = "", E = "", T = "";
|
|
4037
4035
|
const P = () => {
|
|
4038
4036
|
fetch(f).then((A) => A.json()).then((A) => {
|
|
4039
|
-
Object.keys(A).forEach((
|
|
4040
|
-
|
|
4037
|
+
Object.keys(A).forEach((L) => {
|
|
4038
|
+
st(L, A[L]);
|
|
4041
4039
|
});
|
|
4042
4040
|
}).catch((A) => {
|
|
4043
4041
|
console.log(A);
|
|
4044
4042
|
});
|
|
4045
4043
|
};
|
|
4046
|
-
Object.keys(
|
|
4047
|
-
|
|
4044
|
+
Object.keys(ot).forEach((m) => {
|
|
4045
|
+
st(m, ot[m]);
|
|
4048
4046
|
});
|
|
4049
|
-
const B = (m) => new Date(m).getTime(),
|
|
4047
|
+
const B = (m) => new Date(m).getTime(), C = (m, A) => (B(A) - B(m)) / (1e3 * 60), v = () => {
|
|
4050
4048
|
const m = /* @__PURE__ */ new Date();
|
|
4051
|
-
r(4, p =
|
|
4049
|
+
r(4, p = C(m, a)), r(5, E = C(m, s)), r(6, T = d(p));
|
|
4052
4050
|
}, H = (m) => {
|
|
4053
4051
|
const A = { month: "long" };
|
|
4054
|
-
let
|
|
4055
|
-
return `${
|
|
4052
|
+
let L = new Date(m), G = new Intl.DateTimeFormat(l, A).format(L);
|
|
4053
|
+
return `${L.getDate()} ${G}, ${L.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${L.getUTCFullYear()}`;
|
|
4056
4054
|
}, d = (m) => {
|
|
4057
|
-
const A = (G, R) => G + " " + i(R),
|
|
4055
|
+
const A = (G, R) => G + " " + i(R), L = (G) => {
|
|
4058
4056
|
const R = Math.floor(G);
|
|
4059
4057
|
return R < 10 ? `0${R}` : `${R}`;
|
|
4060
4058
|
};
|
|
4061
4059
|
if (m < 1440) {
|
|
4062
|
-
const G = m / 60, R = m % 60,
|
|
4063
|
-
return [G, R,
|
|
4060
|
+
const G = m / 60, R = m % 60, Rt = (R - Math.floor(R)) * 60;
|
|
4061
|
+
return [G, R, Rt].map((Dt) => L(Dt)).join(":");
|
|
4064
4062
|
}
|
|
4065
4063
|
return A(Math.ceil(m / (60 * 24)), "days");
|
|
4066
4064
|
}, S = () => {
|
|
@@ -4068,8 +4066,8 @@ function oi(e, t, r) {
|
|
|
4068
4066
|
m.innerHTML = u, c.appendChild(m);
|
|
4069
4067
|
}, he = () => {
|
|
4070
4068
|
let m = new URL(h), A = document.createElement("style");
|
|
4071
|
-
fetch(m.href).then((
|
|
4072
|
-
A.innerHTML =
|
|
4069
|
+
fetch(m.href).then((L) => L.text()).then((L) => {
|
|
4070
|
+
A.innerHTML = L, setTimeout(
|
|
4073
4071
|
() => {
|
|
4074
4072
|
c.appendChild(A);
|
|
4075
4073
|
},
|
|
@@ -4081,7 +4079,7 @@ function oi(e, t, r) {
|
|
|
4081
4079
|
);
|
|
4082
4080
|
});
|
|
4083
4081
|
};
|
|
4084
|
-
|
|
4082
|
+
Zt(() => {
|
|
4085
4083
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4086
4084
|
const m = setInterval(
|
|
4087
4085
|
() => {
|
|
@@ -4091,7 +4089,7 @@ function oi(e, t, r) {
|
|
|
4091
4089
|
);
|
|
4092
4090
|
return () => clearInterval(m);
|
|
4093
4091
|
});
|
|
4094
|
-
function
|
|
4092
|
+
function $t(m) {
|
|
4095
4093
|
Ne[m ? "unshift" : "push"](() => {
|
|
4096
4094
|
c = m, r(3, c);
|
|
4097
4095
|
});
|
|
@@ -4103,7 +4101,7 @@ function oi(e, t, r) {
|
|
|
4103
4101
|
19 && r(7, n = () => {
|
|
4104
4102
|
if (p <= 0)
|
|
4105
4103
|
return 100;
|
|
4106
|
-
const m =
|
|
4104
|
+
const m = C(s, a), A = 100 / m;
|
|
4107
4105
|
return Math.floor((m - p) * A);
|
|
4108
4106
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4109
4107
|
19 && s && a && v() && d(p), e.$$.dirty & /*lang*/
|
|
@@ -4129,17 +4127,17 @@ function oi(e, t, r) {
|
|
|
4129
4127
|
u,
|
|
4130
4128
|
h,
|
|
4131
4129
|
f,
|
|
4132
|
-
|
|
4130
|
+
$t
|
|
4133
4131
|
];
|
|
4134
4132
|
}
|
|
4135
|
-
class
|
|
4133
|
+
class oi extends or {
|
|
4136
4134
|
constructor(t) {
|
|
4137
|
-
super(),
|
|
4135
|
+
super(), ir(
|
|
4138
4136
|
this,
|
|
4139
4137
|
t,
|
|
4140
|
-
oi,
|
|
4141
4138
|
si,
|
|
4142
|
-
|
|
4139
|
+
ii,
|
|
4140
|
+
ht,
|
|
4143
4141
|
{
|
|
4144
4142
|
startdate: 0,
|
|
4145
4143
|
enddate: 1,
|
|
@@ -4149,7 +4147,7 @@ class ai extends ur {
|
|
|
4149
4147
|
clientstylingurl: 14,
|
|
4150
4148
|
translationurl: 15
|
|
4151
4149
|
},
|
|
4152
|
-
|
|
4150
|
+
qn
|
|
4153
4151
|
);
|
|
4154
4152
|
}
|
|
4155
4153
|
get startdate() {
|
|
@@ -4195,7 +4193,7 @@ class ai extends ur {
|
|
|
4195
4193
|
this.$$set({ translationurl: t }), D();
|
|
4196
4194
|
}
|
|
4197
4195
|
}
|
|
4198
|
-
|
|
4196
|
+
sr(oi, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4199
4197
|
export {
|
|
4200
|
-
|
|
4198
|
+
oi as C
|
|
4201
4199
|
};
|