@everymatrix/casino-tournaments-thumbnail-duration 1.86.1 → 1.86.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-CBIDwszT.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailDuration-3FQ0f1Uj.js → CasinoTournamentsThumbnailDuration-Cvs0L2J9.js} +479 -483
- package/components/{CasinoTournamentsThumbnailDuration-B8mUy4Xu.js → CasinoTournamentsThumbnailDuration-VS18Tk6o.js} +507 -511
- 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 +1 -1
- package/components/CasinoTournamentsThumbnailDuration-C_-DLaMa.cjs +0 -3
|
@@ -6,10 +6,10 @@ function lt(e) {
|
|
|
6
6
|
function Xe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function oe(e) {
|
|
10
10
|
e.forEach(lt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ge(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function ft(e, t) {
|
|
@@ -31,15 +31,15 @@ function Gt(e, t, r) {
|
|
|
31
31
|
e.$$.on_destroy.push(ct(t, r));
|
|
32
32
|
}
|
|
33
33
|
function jt(e) {
|
|
34
|
-
return e &&
|
|
34
|
+
return e && ge(e.destroy) ? e.destroy : I;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function N(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
38
38
|
}
|
|
39
39
|
function kt(e, t, r) {
|
|
40
40
|
const n = Vt(e);
|
|
41
41
|
if (!n.getElementById(t)) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = O("style");
|
|
43
43
|
i.id = t, i.textContent = r, Xt(n, i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@ function Vt(e) {
|
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
56
|
function Xt(e, t) {
|
|
57
|
-
return
|
|
57
|
+
return N(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
60
60
|
t
|
|
@@ -66,22 +66,22 @@ function M(e, t, r) {
|
|
|
66
66
|
function C(e) {
|
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function O(e) {
|
|
70
70
|
return document.createElement(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function F(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function te() {
|
|
76
|
+
return F(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function x(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
81
|
function zt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function j(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
@@ -97,65 +97,65 @@ function Wt(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let ne;
|
|
101
|
+
function re(e) {
|
|
102
|
+
ne = e;
|
|
103
103
|
}
|
|
104
104
|
function Zt() {
|
|
105
|
-
if (!
|
|
105
|
+
if (!ne)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return ne;
|
|
108
108
|
}
|
|
109
109
|
function Qt(e) {
|
|
110
110
|
Zt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
112
|
+
const z = [], Ne = [];
|
|
113
|
+
let W = [];
|
|
114
114
|
const We = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
-
let
|
|
115
|
+
let we = !1;
|
|
116
116
|
function qt() {
|
|
117
|
-
|
|
117
|
+
we || (we = !0, Jt.then(R));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Oe(e) {
|
|
120
|
+
W.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
122
|
+
const ve = /* @__PURE__ */ new Set();
|
|
123
|
+
let V = 0;
|
|
124
124
|
function R() {
|
|
125
|
-
if (
|
|
125
|
+
if (V !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = ne;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; V < z.length; ) {
|
|
131
|
+
const t = z[V];
|
|
132
|
+
V++, re(t), Yt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw z.length = 0, V = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
137
|
+
for (re(null), z.length = 0, V = 0; Ne.length; )
|
|
138
138
|
Ne.pop()();
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
139
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
140
|
+
const r = W[t];
|
|
141
|
+
ve.has(r) || (ve.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
143
|
+
W.length = 0;
|
|
144
|
+
} while (z.length);
|
|
145
145
|
for (; We.length; )
|
|
146
146
|
We.pop()();
|
|
147
|
-
|
|
147
|
+
we = !1, ve.clear(), re(e);
|
|
148
148
|
}
|
|
149
149
|
function Yt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), oe(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function Kt(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
159
159
|
}
|
|
160
160
|
const er = /* @__PURE__ */ new Set();
|
|
161
161
|
function tr(e, t) {
|
|
@@ -163,21 +163,21 @@ function tr(e, t) {
|
|
|
163
163
|
}
|
|
164
164
|
function rr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const s = e.$$.on_mount.map(lt).filter(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Oe(() => {
|
|
167
|
+
const s = e.$$.on_mount.map(lt).filter(ge);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Oe);
|
|
170
170
|
}
|
|
171
171
|
function nr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (Kt(r.after_update),
|
|
173
|
+
r.fragment !== null && (Kt(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
175
|
function ir(e, t) {
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
e.$$.dirty[0] === -1 && (z.push(e), qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
179
|
-
const l =
|
|
180
|
-
|
|
179
|
+
const l = ne;
|
|
180
|
+
re(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -204,7 +204,7 @@ function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
204
204
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
205
205
|
const y = d.length ? d[0] : c;
|
|
206
206
|
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), h && ir(e, f)), c;
|
|
207
|
-
}) : [], u.update(), h = !0,
|
|
207
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
209
|
const f = zt(t.target);
|
|
210
210
|
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
@@ -212,7 +212,7 @@ function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
213
|
t.intro && tr(e.$$.fragment), rr(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
re(l);
|
|
216
216
|
}
|
|
217
217
|
let mt;
|
|
218
218
|
typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
257
257
|
let s;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
s =
|
|
260
|
+
s = O("slot"), i !== "default" && x(s, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
@@ -279,7 +279,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
281
281
|
const s = this.$$g_p(i.name);
|
|
282
|
-
s in this.$$d || (this.$$d[s] =
|
|
282
|
+
s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
|
|
283
283
|
}
|
|
284
284
|
for (const i in this.$$p_d)
|
|
285
285
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -297,7 +297,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
297
297
|
this.$$r = !0;
|
|
298
298
|
for (const i in this.$$p_d)
|
|
299
299
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
300
|
-
const s =
|
|
300
|
+
const s = fe(
|
|
301
301
|
i,
|
|
302
302
|
this.$$d[i],
|
|
303
303
|
this.$$p_d,
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
319
319
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
320
320
|
// and setting attributes through setAttribute etc, this is helpful
|
|
321
321
|
attributeChangedCallback(e, t, r) {
|
|
322
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
322
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
323
323
|
}
|
|
324
324
|
disconnectedCallback() {
|
|
325
325
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
332
332
|
) || e;
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
function
|
|
335
|
+
function fe(e, t, r, n) {
|
|
336
336
|
const i = r[e]?.type;
|
|
337
337
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
338
338
|
return t;
|
|
@@ -378,7 +378,7 @@ function or(e, t, r, n, i, s) {
|
|
|
378
378
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
379
379
|
},
|
|
380
380
|
set(l) {
|
|
381
|
-
l =
|
|
381
|
+
l = fe(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), n.forEach((o) => {
|
|
@@ -418,7 +418,7 @@ class ar {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!ge(r))
|
|
422
422
|
return I;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -436,24 +436,24 @@ class ar {
|
|
|
436
436
|
}
|
|
437
437
|
const ur = "4";
|
|
438
438
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
|
|
439
|
-
const
|
|
439
|
+
const X = [];
|
|
440
440
|
function hr(e, t) {
|
|
441
441
|
return {
|
|
442
|
-
subscribe:
|
|
442
|
+
subscribe: be(e, t).subscribe
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function be(e, t = I) {
|
|
446
446
|
let r;
|
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
|
448
448
|
function i(o) {
|
|
449
449
|
if (ft(e, o) && (e = o, r)) {
|
|
450
|
-
const l = !
|
|
450
|
+
const l = !X.length;
|
|
451
451
|
for (const u of n)
|
|
452
|
-
u[1](),
|
|
452
|
+
u[1](), X.push(u, e);
|
|
453
453
|
if (l) {
|
|
454
|
-
for (let u = 0; u <
|
|
455
|
-
|
|
456
|
-
|
|
454
|
+
for (let u = 0; u < X.length; u += 2)
|
|
455
|
+
X[u][0](X[u + 1]);
|
|
456
|
+
X.length = 0;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
@@ -468,7 +468,7 @@ function Ee(e, t = I) {
|
|
|
468
468
|
}
|
|
469
469
|
return { set: i, update: s, subscribe: a };
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Y(e, t, r) {
|
|
472
472
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
473
473
|
if (!i.every(Boolean))
|
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -482,7 +482,7 @@ function K(e, t, r) {
|
|
|
482
482
|
return;
|
|
483
483
|
f();
|
|
484
484
|
const y = t(n ? u[0] : u, a, o);
|
|
485
|
-
s ? a(y) : f =
|
|
485
|
+
s ? a(y) : f = ge(y) ? y : I;
|
|
486
486
|
}, d = i.map(
|
|
487
487
|
(y, T) => ct(
|
|
488
488
|
y,
|
|
@@ -495,7 +495,7 @@ function K(e, t, r) {
|
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
return l = !0, c(), function() {
|
|
498
|
-
|
|
498
|
+
oe(d), f(), l = !1;
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
@@ -519,19 +519,19 @@ function gr(e) {
|
|
|
519
519
|
function br(e) {
|
|
520
520
|
return Array.isArray(e) ? [] : {};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
522
|
+
function ie(e, t) {
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(br(e), e, t) : e;
|
|
524
524
|
}
|
|
525
525
|
function yr(e, t, r) {
|
|
526
526
|
return e.concat(t).map(function(n) {
|
|
527
|
-
return
|
|
527
|
+
return ie(n, r);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
530
|
function Er(e, t) {
|
|
531
531
|
if (!t.customMerge)
|
|
532
|
-
return
|
|
532
|
+
return Z;
|
|
533
533
|
var r = t.customMerge(e);
|
|
534
|
-
return typeof r == "function" ? r :
|
|
534
|
+
return typeof r == "function" ? r : Z;
|
|
535
535
|
}
|
|
536
536
|
function _r(e) {
|
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -554,51 +554,65 @@ function xr(e, t) {
|
|
|
554
554
|
function vr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
556
|
return r.isMergeableObject(e) && Ze(e).forEach(function(i) {
|
|
557
|
-
n[i] =
|
|
557
|
+
n[i] = ie(e[i], r);
|
|
558
558
|
}), Ze(t).forEach(function(i) {
|
|
559
|
-
xr(e, i) || (dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] =
|
|
559
|
+
xr(e, i) || (dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
560
560
|
}), n;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || yr, r.isMergeableObject = r.isMergeableObject || fr, r.cloneUnlessOtherwiseSpecified =
|
|
562
|
+
function Z(e, t, r) {
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || yr, r.isMergeableObject = r.isMergeableObject || fr, 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) : vr(e, t, r) :
|
|
565
|
+
return s ? n ? r.arrayMerge(e, t, r) : vr(e, t, r) : ie(t, r);
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
Z.all = function(t, r) {
|
|
568
568
|
if (!Array.isArray(t))
|
|
569
569
|
throw new Error("first argument should be an array");
|
|
570
570
|
return t.reduce(function(n, i) {
|
|
571
|
-
return
|
|
571
|
+
return Z(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var Hr =
|
|
574
|
+
var Hr = Z, Tr = Hr;
|
|
575
575
|
const Br = /* @__PURE__ */ lr(Tr);
|
|
576
|
-
|
|
577
|
-
|
|
576
|
+
/*! *****************************************************************************
|
|
577
|
+
Copyright (c) Microsoft Corporation.
|
|
578
|
+
|
|
579
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
580
|
+
purpose with or without fee is hereby granted.
|
|
581
|
+
|
|
582
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
583
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
584
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
585
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
586
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
587
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
588
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
589
|
+
***************************************************************************** */
|
|
590
|
+
var Ie = function(e, t) {
|
|
591
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
578
592
|
r.__proto__ = n;
|
|
579
593
|
} || function(r, n) {
|
|
580
594
|
for (var i in n)
|
|
581
595
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
582
|
-
},
|
|
596
|
+
}, Ie(e, t);
|
|
583
597
|
};
|
|
584
|
-
function
|
|
598
|
+
function ye(e, t) {
|
|
585
599
|
if (typeof t != "function" && t !== null)
|
|
586
600
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
587
|
-
|
|
601
|
+
Ie(e, t);
|
|
588
602
|
function r() {
|
|
589
603
|
this.constructor = e;
|
|
590
604
|
}
|
|
591
605
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
592
606
|
}
|
|
593
|
-
var
|
|
594
|
-
return
|
|
607
|
+
var E = function() {
|
|
608
|
+
return E = Object.assign || function(t) {
|
|
595
609
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
596
610
|
r = arguments[n];
|
|
597
611
|
for (var s in r)
|
|
598
612
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
599
613
|
}
|
|
600
614
|
return t;
|
|
601
|
-
},
|
|
615
|
+
}, E.apply(this, arguments);
|
|
602
616
|
};
|
|
603
617
|
function Sr(e, t) {
|
|
604
618
|
var r = {};
|
|
@@ -609,14 +623,14 @@ function Sr(e, t) {
|
|
|
609
623
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
610
624
|
return r;
|
|
611
625
|
}
|
|
612
|
-
function
|
|
613
|
-
if (
|
|
626
|
+
function He(e, t, r) {
|
|
627
|
+
if (arguments.length === 2)
|
|
614
628
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
615
629
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
616
|
-
return e.concat(s ||
|
|
630
|
+
return e.concat(s || t);
|
|
617
631
|
}
|
|
618
|
-
function
|
|
619
|
-
var r = t && t.cache ? t.cache :
|
|
632
|
+
function Te(e, t) {
|
|
633
|
+
var r = t && t.cache ? t.cache : Ir, n = t && t.serializer ? t.serializer : Or, i = t && t.strategy ? t.strategy : Pr;
|
|
620
634
|
return i(e, {
|
|
621
635
|
cache: r,
|
|
622
636
|
serializer: n
|
|
@@ -625,103 +639,95 @@ function Se(e, t) {
|
|
|
625
639
|
function Ar(e) {
|
|
626
640
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
641
|
}
|
|
628
|
-
function
|
|
642
|
+
function pt(e, t, r, n) {
|
|
629
643
|
var i = Ar(n) ? n : r(n), s = t.get(i);
|
|
630
644
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
631
645
|
}
|
|
632
|
-
function
|
|
646
|
+
function gt(e, t, r) {
|
|
633
647
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
634
648
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
635
649
|
}
|
|
636
|
-
function
|
|
650
|
+
function Ge(e, t, r, n, i) {
|
|
637
651
|
return r.bind(t, e, n, i);
|
|
638
652
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ?
|
|
641
|
-
return
|
|
653
|
+
function Pr(e, t) {
|
|
654
|
+
var r = e.length === 1 ? pt : gt;
|
|
655
|
+
return Ge(e, this, r, t.cache.create(), t.serializer);
|
|
656
|
+
}
|
|
657
|
+
function Nr(e, t) {
|
|
658
|
+
return Ge(e, this, gt, t.cache.create(), t.serializer);
|
|
642
659
|
}
|
|
643
660
|
function wr(e, t) {
|
|
644
|
-
return
|
|
661
|
+
return Ge(e, this, pt, t.cache.create(), t.serializer);
|
|
645
662
|
}
|
|
646
|
-
var
|
|
663
|
+
var Or = function() {
|
|
647
664
|
return JSON.stringify(arguments);
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}()
|
|
660
|
-
), Lr = {
|
|
665
|
+
};
|
|
666
|
+
function je() {
|
|
667
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
668
|
+
}
|
|
669
|
+
je.prototype.get = function(e) {
|
|
670
|
+
return this.cache[e];
|
|
671
|
+
};
|
|
672
|
+
je.prototype.set = function(e, t) {
|
|
673
|
+
this.cache[e] = t;
|
|
674
|
+
};
|
|
675
|
+
var Ir = {
|
|
661
676
|
create: function() {
|
|
662
|
-
return new
|
|
677
|
+
return new je();
|
|
663
678
|
}
|
|
664
|
-
},
|
|
665
|
-
variadic:
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
669
|
-
r = arguments[n];
|
|
670
|
-
for (var s in r)
|
|
671
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
672
|
-
}
|
|
673
|
-
return t;
|
|
674
|
-
}, pe.apply(this, arguments);
|
|
675
|
-
};
|
|
676
|
-
var g;
|
|
679
|
+
}, Be = {
|
|
680
|
+
variadic: Nr,
|
|
681
|
+
monadic: wr
|
|
682
|
+
}, g;
|
|
677
683
|
(function(e) {
|
|
678
684
|
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";
|
|
679
685
|
})(g || (g = {}));
|
|
680
|
-
var
|
|
686
|
+
var v;
|
|
681
687
|
(function(e) {
|
|
682
688
|
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";
|
|
683
|
-
})(
|
|
684
|
-
var
|
|
689
|
+
})(v || (v = {}));
|
|
690
|
+
var Q;
|
|
685
691
|
(function(e) {
|
|
686
692
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
687
|
-
})(
|
|
693
|
+
})(Q || (Q = {}));
|
|
688
694
|
function Qe(e) {
|
|
689
|
-
return e.type ===
|
|
695
|
+
return e.type === v.literal;
|
|
690
696
|
}
|
|
691
|
-
function
|
|
692
|
-
return e.type ===
|
|
697
|
+
function Lr(e) {
|
|
698
|
+
return e.type === v.argument;
|
|
693
699
|
}
|
|
694
700
|
function bt(e) {
|
|
695
|
-
return e.type ===
|
|
701
|
+
return e.type === v.number;
|
|
696
702
|
}
|
|
697
703
|
function yt(e) {
|
|
698
|
-
return e.type ===
|
|
704
|
+
return e.type === v.date;
|
|
699
705
|
}
|
|
700
706
|
function Et(e) {
|
|
701
|
-
return e.type ===
|
|
707
|
+
return e.type === v.time;
|
|
702
708
|
}
|
|
703
709
|
function _t(e) {
|
|
704
|
-
return e.type ===
|
|
710
|
+
return e.type === v.select;
|
|
705
711
|
}
|
|
706
712
|
function xt(e) {
|
|
707
|
-
return e.type ===
|
|
713
|
+
return e.type === v.plural;
|
|
708
714
|
}
|
|
709
|
-
function
|
|
710
|
-
return e.type ===
|
|
715
|
+
function Cr(e) {
|
|
716
|
+
return e.type === v.pound;
|
|
711
717
|
}
|
|
712
718
|
function vt(e) {
|
|
713
|
-
return e.type ===
|
|
719
|
+
return e.type === v.tag;
|
|
714
720
|
}
|
|
715
721
|
function Ht(e) {
|
|
716
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
722
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
717
723
|
}
|
|
718
|
-
function
|
|
719
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
724
|
+
function Le(e) {
|
|
725
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
720
726
|
}
|
|
721
|
-
var Tt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
722
|
-
function
|
|
727
|
+
var Tt = /[ \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;
|
|
728
|
+
function $r(e) {
|
|
723
729
|
var t = {};
|
|
724
|
-
return e.replace(
|
|
730
|
+
return e.replace(Mr, function(r) {
|
|
725
731
|
var n = r.length;
|
|
726
732
|
switch (r[0]) {
|
|
727
733
|
case "G":
|
|
@@ -810,21 +816,11 @@ function Rr(e) {
|
|
|
810
816
|
return "";
|
|
811
817
|
}), t;
|
|
812
818
|
}
|
|
813
|
-
var
|
|
814
|
-
|
|
815
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
816
|
-
r = arguments[n];
|
|
817
|
-
for (var s in r)
|
|
818
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
819
|
-
}
|
|
820
|
-
return t;
|
|
821
|
-
}, v.apply(this, arguments);
|
|
822
|
-
};
|
|
823
|
-
var Dr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
824
|
-
function Ur(e) {
|
|
819
|
+
var Rr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
820
|
+
function Dr(e) {
|
|
825
821
|
if (e.length === 0)
|
|
826
822
|
throw new Error("Number skeleton cannot be empty");
|
|
827
|
-
for (var t = e.split(
|
|
823
|
+
for (var t = e.split(Rr).filter(function(c) {
|
|
828
824
|
return c.length > 0;
|
|
829
825
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
830
826
|
var s = i[n], a = s.split("/");
|
|
@@ -839,10 +835,10 @@ function Ur(e) {
|
|
|
839
835
|
}
|
|
840
836
|
return r;
|
|
841
837
|
}
|
|
842
|
-
function
|
|
838
|
+
function Ur(e) {
|
|
843
839
|
return e.replace(/^(.*?)-/, "");
|
|
844
840
|
}
|
|
845
|
-
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
841
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g, Fr = /(\*)(0+)|(#+)(0+)|(0+)/g, St = /^(0+)$/;
|
|
846
842
|
function qe(e) {
|
|
847
843
|
var t = {};
|
|
848
844
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Bt, function(r, n, i) {
|
|
@@ -889,7 +885,7 @@ function At(e) {
|
|
|
889
885
|
};
|
|
890
886
|
}
|
|
891
887
|
}
|
|
892
|
-
function
|
|
888
|
+
function Gr(e) {
|
|
893
889
|
var t;
|
|
894
890
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
895
891
|
notation: "engineering"
|
|
@@ -907,7 +903,7 @@ function Ye(e) {
|
|
|
907
903
|
var t = {}, r = At(e);
|
|
908
904
|
return r || t;
|
|
909
905
|
}
|
|
910
|
-
function
|
|
906
|
+
function jr(e) {
|
|
911
907
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
912
908
|
var i = n[r];
|
|
913
909
|
switch (i.stem) {
|
|
@@ -931,7 +927,7 @@ function kr(e) {
|
|
|
931
927
|
continue;
|
|
932
928
|
case "measure-unit":
|
|
933
929
|
case "unit":
|
|
934
|
-
t.style = "unit", t.unit =
|
|
930
|
+
t.style = "unit", t.unit = Ur(i.options[0]);
|
|
935
931
|
continue;
|
|
936
932
|
case "compact-short":
|
|
937
933
|
case "K":
|
|
@@ -942,13 +938,13 @@ function kr(e) {
|
|
|
942
938
|
t.notation = "compact", t.compactDisplay = "long";
|
|
943
939
|
continue;
|
|
944
940
|
case "scientific":
|
|
945
|
-
t =
|
|
946
|
-
return
|
|
941
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
942
|
+
return E(E({}, l), Ye(u));
|
|
947
943
|
}, {}));
|
|
948
944
|
continue;
|
|
949
945
|
case "engineering":
|
|
950
|
-
t =
|
|
951
|
-
return
|
|
946
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
947
|
+
return E(E({}, l), Ye(u));
|
|
952
948
|
}, {}));
|
|
953
949
|
continue;
|
|
954
950
|
case "notation-simple":
|
|
@@ -993,7 +989,7 @@ function kr(e) {
|
|
|
993
989
|
case "integer-width":
|
|
994
990
|
if (i.options.length > 1)
|
|
995
991
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
996
|
-
i.options[0].replace(
|
|
992
|
+
i.options[0].replace(Fr, function(l, u, h, f, c, d) {
|
|
997
993
|
if (u)
|
|
998
994
|
t.minimumIntegerDigits = h.length;
|
|
999
995
|
else {
|
|
@@ -1017,21 +1013,21 @@ function kr(e) {
|
|
|
1017
1013
|
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), "";
|
|
1018
1014
|
});
|
|
1019
1015
|
var s = i.options[0];
|
|
1020
|
-
s === "w" ? t =
|
|
1016
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), qe(s)));
|
|
1021
1017
|
continue;
|
|
1022
1018
|
}
|
|
1023
1019
|
if (Bt.test(i.stem)) {
|
|
1024
|
-
t =
|
|
1020
|
+
t = E(E({}, t), qe(i.stem));
|
|
1025
1021
|
continue;
|
|
1026
1022
|
}
|
|
1027
1023
|
var a = At(i.stem);
|
|
1028
|
-
a && (t =
|
|
1029
|
-
var o =
|
|
1030
|
-
o && (t =
|
|
1024
|
+
a && (t = E(E({}, t), a));
|
|
1025
|
+
var o = Gr(i.stem);
|
|
1026
|
+
o && (t = E(E({}, t), o));
|
|
1031
1027
|
}
|
|
1032
1028
|
return t;
|
|
1033
1029
|
}
|
|
1034
|
-
var
|
|
1030
|
+
var le = {
|
|
1035
1031
|
"001": [
|
|
1036
1032
|
"H",
|
|
1037
1033
|
"h"
|
|
@@ -2446,13 +2442,13 @@ var fe = {
|
|
|
2446
2442
|
"h"
|
|
2447
2443
|
]
|
|
2448
2444
|
};
|
|
2449
|
-
function
|
|
2445
|
+
function kr(e, t) {
|
|
2450
2446
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2451
2447
|
var i = e.charAt(n);
|
|
2452
2448
|
if (i === "j") {
|
|
2453
2449
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2454
2450
|
s++, n++;
|
|
2455
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2451
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Vr(t);
|
|
2456
2452
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2457
2453
|
r += l;
|
|
2458
2454
|
for (; a-- > 0; )
|
|
@@ -2462,7 +2458,7 @@ function Vr(e, t) {
|
|
|
2462
2458
|
}
|
|
2463
2459
|
return r;
|
|
2464
2460
|
}
|
|
2465
|
-
function
|
|
2461
|
+
function Vr(e) {
|
|
2466
2462
|
var t = e.hourCycle;
|
|
2467
2463
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2468
2464
|
e.hourCycles && // @ts-ignore
|
|
@@ -2481,23 +2477,23 @@ function Xr(e) {
|
|
|
2481
2477
|
}
|
|
2482
2478
|
var r = e.language, n;
|
|
2483
2479
|
r !== "root" && (n = e.maximize().region);
|
|
2484
|
-
var i =
|
|
2480
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2485
2481
|
return i[0];
|
|
2486
2482
|
}
|
|
2487
|
-
var
|
|
2483
|
+
var Se, Xr = new RegExp("^".concat(Tt.source, "*")), zr = new RegExp("".concat(Tt.source, "*$"));
|
|
2488
2484
|
function b(e, t) {
|
|
2489
2485
|
return { start: e, end: t };
|
|
2490
2486
|
}
|
|
2491
|
-
var
|
|
2487
|
+
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) {
|
|
2492
2488
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2493
|
-
},
|
|
2489
|
+
}, Ce = !0;
|
|
2494
2490
|
try {
|
|
2495
|
-
var
|
|
2496
|
-
|
|
2491
|
+
var tn = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2492
|
+
Ce = ((Se = tn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2497
2493
|
} catch {
|
|
2498
|
-
|
|
2494
|
+
Ce = !1;
|
|
2499
2495
|
}
|
|
2500
|
-
var Ke =
|
|
2496
|
+
var Ke = Wr ? (
|
|
2501
2497
|
// Native
|
|
2502
2498
|
function(t, r, n) {
|
|
2503
2499
|
return t.startsWith(r, n);
|
|
@@ -2507,7 +2503,7 @@ var Ke = Zr ? (
|
|
|
2507
2503
|
function(t, r, n) {
|
|
2508
2504
|
return t.slice(n, n + r.length) === r;
|
|
2509
2505
|
}
|
|
2510
|
-
),
|
|
2506
|
+
), Me = Zr ? String.fromCodePoint : (
|
|
2511
2507
|
// IE11
|
|
2512
2508
|
function() {
|
|
2513
2509
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2521,7 +2517,7 @@ var Ke = Zr ? (
|
|
|
2521
2517
|
}
|
|
2522
2518
|
), et = (
|
|
2523
2519
|
// native
|
|
2524
|
-
|
|
2520
|
+
Qr ? Object.fromEntries : (
|
|
2525
2521
|
// Ponyfill
|
|
2526
2522
|
function(t) {
|
|
2527
2523
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2531,7 +2527,7 @@ var Ke = Zr ? (
|
|
|
2531
2527
|
return r;
|
|
2532
2528
|
}
|
|
2533
2529
|
)
|
|
2534
|
-
), Pt =
|
|
2530
|
+
), Pt = Jr ? (
|
|
2535
2531
|
// Native
|
|
2536
2532
|
function(t, r) {
|
|
2537
2533
|
return t.codePointAt(r);
|
|
@@ -2545,7 +2541,7 @@ var Ke = Zr ? (
|
|
|
2545
2541
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2546
2542
|
}
|
|
2547
2543
|
}
|
|
2548
|
-
),
|
|
2544
|
+
), rn = qr ? (
|
|
2549
2545
|
// Native
|
|
2550
2546
|
function(t) {
|
|
2551
2547
|
return t.trimStart();
|
|
@@ -2553,9 +2549,9 @@ var Ke = Zr ? (
|
|
|
2553
2549
|
) : (
|
|
2554
2550
|
// Ponyfill
|
|
2555
2551
|
function(t) {
|
|
2556
|
-
return t.replace(
|
|
2552
|
+
return t.replace(Xr, "");
|
|
2557
2553
|
}
|
|
2558
|
-
),
|
|
2554
|
+
), nn = Yr ? (
|
|
2559
2555
|
// Native
|
|
2560
2556
|
function(t) {
|
|
2561
2557
|
return t.trimEnd();
|
|
@@ -2563,32 +2559,32 @@ var Ke = Zr ? (
|
|
|
2563
2559
|
) : (
|
|
2564
2560
|
// Ponyfill
|
|
2565
2561
|
function(t) {
|
|
2566
|
-
return t.replace(
|
|
2562
|
+
return t.replace(zr, "");
|
|
2567
2563
|
}
|
|
2568
2564
|
);
|
|
2569
|
-
function
|
|
2565
|
+
function Nt(e, t) {
|
|
2570
2566
|
return new RegExp(e, t);
|
|
2571
2567
|
}
|
|
2572
|
-
var
|
|
2573
|
-
if (
|
|
2574
|
-
var tt =
|
|
2575
|
-
|
|
2568
|
+
var $e;
|
|
2569
|
+
if (Ce) {
|
|
2570
|
+
var tt = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2571
|
+
$e = function(t, r) {
|
|
2576
2572
|
var n;
|
|
2577
2573
|
tt.lastIndex = r;
|
|
2578
2574
|
var i = tt.exec(t);
|
|
2579
2575
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2580
2576
|
};
|
|
2581
2577
|
} else
|
|
2582
|
-
|
|
2578
|
+
$e = function(t, r) {
|
|
2583
2579
|
for (var n = []; ; ) {
|
|
2584
2580
|
var i = Pt(t, r);
|
|
2585
|
-
if (i === void 0 || wt(i) ||
|
|
2581
|
+
if (i === void 0 || wt(i) || un(i))
|
|
2586
2582
|
break;
|
|
2587
2583
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2588
2584
|
}
|
|
2589
|
-
return
|
|
2585
|
+
return Me.apply(void 0, n);
|
|
2590
2586
|
};
|
|
2591
|
-
var
|
|
2587
|
+
var sn = (
|
|
2592
2588
|
/** @class */
|
|
2593
2589
|
function() {
|
|
2594
2590
|
function e(t, r) {
|
|
@@ -2612,14 +2608,14 @@ var on = (
|
|
|
2612
2608
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2613
2609
|
var o = this.clonePosition();
|
|
2614
2610
|
this.bump(), i.push({
|
|
2615
|
-
type:
|
|
2611
|
+
type: v.pound,
|
|
2616
2612
|
location: b(o, this.clonePosition())
|
|
2617
2613
|
});
|
|
2618
2614
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2619
2615
|
if (n)
|
|
2620
2616
|
break;
|
|
2621
2617
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2622
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2618
|
+
} else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
|
|
2623
2619
|
var a = this.parseTag(t, r);
|
|
2624
2620
|
if (a.err)
|
|
2625
2621
|
return a;
|
|
@@ -2640,7 +2636,7 @@ var on = (
|
|
|
2640
2636
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2641
2637
|
return {
|
|
2642
2638
|
val: {
|
|
2643
|
-
type:
|
|
2639
|
+
type: v.literal,
|
|
2644
2640
|
value: "<".concat(i, "/>"),
|
|
2645
2641
|
location: b(n, this.clonePosition())
|
|
2646
2642
|
},
|
|
@@ -2652,12 +2648,12 @@ var on = (
|
|
|
2652
2648
|
return s;
|
|
2653
2649
|
var a = s.val, o = this.clonePosition();
|
|
2654
2650
|
if (this.bumpIf("</")) {
|
|
2655
|
-
if (this.isEOF() || !
|
|
2651
|
+
if (this.isEOF() || !Re(this.char()))
|
|
2656
2652
|
return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
|
|
2657
2653
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2658
2654
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2659
2655
|
val: {
|
|
2660
|
-
type:
|
|
2656
|
+
type: v.tag,
|
|
2661
2657
|
value: i,
|
|
2662
2658
|
children: a,
|
|
2663
2659
|
location: b(n, this.clonePosition())
|
|
@@ -2670,7 +2666,7 @@ var on = (
|
|
|
2670
2666
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2671
2667
|
}, e.prototype.parseTagName = function() {
|
|
2672
2668
|
var t = this.offset();
|
|
2673
|
-
for (this.bump(); !this.isEOF() &&
|
|
2669
|
+
for (this.bump(); !this.isEOF() && an(this.char()); )
|
|
2674
2670
|
this.bump();
|
|
2675
2671
|
return this.message.slice(t, this.offset());
|
|
2676
2672
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2694,12 +2690,12 @@ var on = (
|
|
|
2694
2690
|
}
|
|
2695
2691
|
var l = b(n, this.clonePosition());
|
|
2696
2692
|
return {
|
|
2697
|
-
val: { type:
|
|
2693
|
+
val: { type: v.literal, value: i, location: l },
|
|
2698
2694
|
err: null
|
|
2699
2695
|
};
|
|
2700
2696
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2701
2697
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2702
|
-
!
|
|
2698
|
+
!on(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2703
2699
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2704
2700
|
if (this.isEOF() || this.char() !== 39)
|
|
2705
2701
|
return null;
|
|
@@ -2733,12 +2729,12 @@ var on = (
|
|
|
2733
2729
|
r.push(n);
|
|
2734
2730
|
this.bump();
|
|
2735
2731
|
}
|
|
2736
|
-
return
|
|
2732
|
+
return Me.apply(void 0, r);
|
|
2737
2733
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2738
2734
|
if (this.isEOF())
|
|
2739
2735
|
return null;
|
|
2740
2736
|
var n = this.char();
|
|
2741
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2737
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
|
|
2742
2738
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2743
2739
|
var n = this.clonePosition();
|
|
2744
2740
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2754,7 +2750,7 @@ var on = (
|
|
|
2754
2750
|
case 125:
|
|
2755
2751
|
return this.bump(), {
|
|
2756
2752
|
val: {
|
|
2757
|
-
type:
|
|
2753
|
+
type: v.argument,
|
|
2758
2754
|
// value does not include the opening and closing braces.
|
|
2759
2755
|
value: i,
|
|
2760
2756
|
location: b(n, this.clonePosition())
|
|
@@ -2767,7 +2763,7 @@ var on = (
|
|
|
2767
2763
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2768
2764
|
}
|
|
2769
2765
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2770
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2766
|
+
var t = this.clonePosition(), r = this.offset(), n = $e(this.message, r), i = r + n.length;
|
|
2771
2767
|
this.bumpTo(i);
|
|
2772
2768
|
var s = this.clonePosition(), a = b(t, s);
|
|
2773
2769
|
return { value: n, location: a };
|
|
@@ -2786,7 +2782,7 @@ var on = (
|
|
|
2786
2782
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2787
2783
|
if (f.err)
|
|
2788
2784
|
return f;
|
|
2789
|
-
var c =
|
|
2785
|
+
var c = nn(f.val);
|
|
2790
2786
|
if (c.length === 0)
|
|
2791
2787
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2792
2788
|
var d = b(h, this.clonePosition());
|
|
@@ -2797,24 +2793,24 @@ var on = (
|
|
|
2797
2793
|
return y;
|
|
2798
2794
|
var T = b(i, this.clonePosition());
|
|
2799
2795
|
if (u && Ke(u?.style, "::", 0)) {
|
|
2800
|
-
var A =
|
|
2796
|
+
var A = rn(u.style.slice(2));
|
|
2801
2797
|
if (o === "number") {
|
|
2802
2798
|
var f = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
2803
2799
|
return f.err ? f : {
|
|
2804
|
-
val: { type:
|
|
2800
|
+
val: { type: v.number, value: n, location: T, style: f.val },
|
|
2805
2801
|
err: null
|
|
2806
2802
|
};
|
|
2807
2803
|
} else {
|
|
2808
2804
|
if (A.length === 0)
|
|
2809
2805
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2810
2806
|
var S = A;
|
|
2811
|
-
this.locale && (S =
|
|
2807
|
+
this.locale && (S = kr(A, this.locale));
|
|
2812
2808
|
var c = {
|
|
2813
|
-
type:
|
|
2809
|
+
type: Q.dateTime,
|
|
2814
2810
|
pattern: S,
|
|
2815
2811
|
location: u.styleLocation,
|
|
2816
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2817
|
-
}, L = o === "date" ?
|
|
2812
|
+
parsedOptions: this.shouldParseSkeletons ? $r(S) : {}
|
|
2813
|
+
}, L = o === "date" ? v.date : v.time;
|
|
2818
2814
|
return {
|
|
2819
2815
|
val: { type: L, value: n, location: T, style: c },
|
|
2820
2816
|
err: null
|
|
@@ -2823,7 +2819,7 @@ var on = (
|
|
|
2823
2819
|
}
|
|
2824
2820
|
return {
|
|
2825
2821
|
val: {
|
|
2826
|
-
type: o === "number" ?
|
|
2822
|
+
type: o === "number" ? v.number : o === "date" ? v.date : v.time,
|
|
2827
2823
|
value: n,
|
|
2828
2824
|
location: T,
|
|
2829
2825
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2836,41 +2832,41 @@ var on = (
|
|
|
2836
2832
|
case "select": {
|
|
2837
2833
|
var H = this.clonePosition();
|
|
2838
2834
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2839
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2835
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, E({}, H)));
|
|
2840
2836
|
this.bumpSpace();
|
|
2841
|
-
var
|
|
2842
|
-
if (o !== "select" &&
|
|
2837
|
+
var _ = this.parseIdentifierIfPossible(), p = 0;
|
|
2838
|
+
if (o !== "select" && _.value === "offset") {
|
|
2843
2839
|
if (!this.bumpIf(":"))
|
|
2844
2840
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2845
2841
|
this.bumpSpace();
|
|
2846
2842
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2847
2843
|
if (f.err)
|
|
2848
2844
|
return f;
|
|
2849
|
-
this.bumpSpace(),
|
|
2845
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), p = f.val;
|
|
2850
2846
|
}
|
|
2851
|
-
var B = this.tryParsePluralOrSelectOptions(t, o, r,
|
|
2847
|
+
var B = this.tryParsePluralOrSelectOptions(t, o, r, _);
|
|
2852
2848
|
if (B.err)
|
|
2853
2849
|
return B;
|
|
2854
2850
|
var y = this.tryParseArgumentClose(i);
|
|
2855
2851
|
if (y.err)
|
|
2856
2852
|
return y;
|
|
2857
|
-
var
|
|
2853
|
+
var he = b(i, this.clonePosition());
|
|
2858
2854
|
return o === "select" ? {
|
|
2859
2855
|
val: {
|
|
2860
|
-
type:
|
|
2856
|
+
type: v.select,
|
|
2861
2857
|
value: n,
|
|
2862
2858
|
options: et(B.val),
|
|
2863
|
-
location:
|
|
2859
|
+
location: he
|
|
2864
2860
|
},
|
|
2865
2861
|
err: null
|
|
2866
2862
|
} : {
|
|
2867
2863
|
val: {
|
|
2868
|
-
type:
|
|
2864
|
+
type: v.plural,
|
|
2869
2865
|
value: n,
|
|
2870
2866
|
options: et(B.val),
|
|
2871
2867
|
offset: p,
|
|
2872
2868
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2873
|
-
location:
|
|
2869
|
+
location: he
|
|
2874
2870
|
},
|
|
2875
2871
|
err: null
|
|
2876
2872
|
};
|
|
@@ -2918,16 +2914,16 @@ var on = (
|
|
|
2918
2914
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2919
2915
|
var n = [];
|
|
2920
2916
|
try {
|
|
2921
|
-
n =
|
|
2917
|
+
n = Dr(t);
|
|
2922
2918
|
} catch {
|
|
2923
2919
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2924
2920
|
}
|
|
2925
2921
|
return {
|
|
2926
2922
|
val: {
|
|
2927
|
-
type:
|
|
2923
|
+
type: Q.number,
|
|
2928
2924
|
tokens: n,
|
|
2929
2925
|
location: r,
|
|
2930
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2926
|
+
parsedOptions: this.shouldParseSkeletons ? jr(n) : {}
|
|
2931
2927
|
},
|
|
2932
2928
|
err: null
|
|
2933
2929
|
};
|
|
@@ -2975,7 +2971,7 @@ var on = (
|
|
|
2975
2971
|
break;
|
|
2976
2972
|
}
|
|
2977
2973
|
var l = b(i, this.clonePosition());
|
|
2978
|
-
return s ? (a *= n,
|
|
2974
|
+
return s ? (a *= n, en(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2979
2975
|
}, e.prototype.offset = function() {
|
|
2980
2976
|
return this.position.offset;
|
|
2981
2977
|
}, e.prototype.isEOF = function() {
|
|
@@ -3041,47 +3037,47 @@ var on = (
|
|
|
3041
3037
|
}, e;
|
|
3042
3038
|
}()
|
|
3043
3039
|
);
|
|
3044
|
-
function
|
|
3040
|
+
function Re(e) {
|
|
3045
3041
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3046
3042
|
}
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3043
|
+
function on(e) {
|
|
3044
|
+
return Re(e) || e === 47;
|
|
3049
3045
|
}
|
|
3050
|
-
function
|
|
3046
|
+
function an(e) {
|
|
3051
3047
|
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;
|
|
3052
3048
|
}
|
|
3053
3049
|
function wt(e) {
|
|
3054
3050
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3055
3051
|
}
|
|
3056
|
-
function
|
|
3052
|
+
function un(e) {
|
|
3057
3053
|
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;
|
|
3058
3054
|
}
|
|
3059
|
-
function
|
|
3055
|
+
function De(e) {
|
|
3060
3056
|
e.forEach(function(t) {
|
|
3061
3057
|
if (delete t.location, _t(t) || xt(t))
|
|
3062
3058
|
for (var r in t.options)
|
|
3063
|
-
delete t.options[r].location,
|
|
3059
|
+
delete t.options[r].location, De(t.options[r].value);
|
|
3064
3060
|
else
|
|
3065
|
-
bt(t) && Ht(t.style) || (yt(t) || Et(t)) &&
|
|
3061
|
+
bt(t) && Ht(t.style) || (yt(t) || Et(t)) && Le(t.style) ? delete t.style.location : vt(t) && De(t.children);
|
|
3066
3062
|
});
|
|
3067
3063
|
}
|
|
3068
|
-
function
|
|
3069
|
-
t === void 0 && (t = {}), t =
|
|
3070
|
-
var r = new
|
|
3064
|
+
function hn(e, t) {
|
|
3065
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3066
|
+
var r = new sn(e, t).parse();
|
|
3071
3067
|
if (r.err) {
|
|
3072
3068
|
var n = SyntaxError(g[r.err.kind]);
|
|
3073
3069
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3074
3070
|
}
|
|
3075
|
-
return t?.captureLocation ||
|
|
3071
|
+
return t?.captureLocation || De(r.val), r.val;
|
|
3076
3072
|
}
|
|
3077
|
-
var
|
|
3073
|
+
var J;
|
|
3078
3074
|
(function(e) {
|
|
3079
3075
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3080
|
-
})(
|
|
3081
|
-
var
|
|
3076
|
+
})(J || (J = {}));
|
|
3077
|
+
var Ee = (
|
|
3082
3078
|
/** @class */
|
|
3083
3079
|
function(e) {
|
|
3084
|
-
|
|
3080
|
+
ye(t, e);
|
|
3085
3081
|
function t(r, n, i) {
|
|
3086
3082
|
var s = e.call(this, r) || this;
|
|
3087
3083
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3093,44 +3089,44 @@ var xe = (
|
|
|
3093
3089
|
), rt = (
|
|
3094
3090
|
/** @class */
|
|
3095
3091
|
function(e) {
|
|
3096
|
-
|
|
3092
|
+
ye(t, e);
|
|
3097
3093
|
function t(r, n, i, s) {
|
|
3098
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3094
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3099
3095
|
}
|
|
3100
3096
|
return t;
|
|
3101
|
-
}(
|
|
3102
|
-
),
|
|
3097
|
+
}(Ee)
|
|
3098
|
+
), ln = (
|
|
3103
3099
|
/** @class */
|
|
3104
3100
|
function(e) {
|
|
3105
|
-
|
|
3101
|
+
ye(t, e);
|
|
3106
3102
|
function t(r, n, i) {
|
|
3107
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3103
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3108
3104
|
}
|
|
3109
3105
|
return t;
|
|
3110
|
-
}(
|
|
3111
|
-
),
|
|
3106
|
+
}(Ee)
|
|
3107
|
+
), fn = (
|
|
3112
3108
|
/** @class */
|
|
3113
3109
|
function(e) {
|
|
3114
|
-
|
|
3110
|
+
ye(t, e);
|
|
3115
3111
|
function t(r, n) {
|
|
3116
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3112
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3117
3113
|
}
|
|
3118
3114
|
return t;
|
|
3119
|
-
}(
|
|
3115
|
+
}(Ee)
|
|
3120
3116
|
), P;
|
|
3121
3117
|
(function(e) {
|
|
3122
3118
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3123
3119
|
})(P || (P = {}));
|
|
3124
|
-
function
|
|
3120
|
+
function cn(e) {
|
|
3125
3121
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3126
3122
|
var n = t[t.length - 1];
|
|
3127
3123
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3128
3124
|
}, []);
|
|
3129
3125
|
}
|
|
3130
|
-
function
|
|
3126
|
+
function mn(e) {
|
|
3131
3127
|
return typeof e == "function";
|
|
3132
3128
|
}
|
|
3133
|
-
function
|
|
3129
|
+
function ce(e, t, r, n, i, s, a) {
|
|
3134
3130
|
if (e.length === 1 && Qe(e[0]))
|
|
3135
3131
|
return [
|
|
3136
3132
|
{
|
|
@@ -3147,7 +3143,7 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3147
3143
|
});
|
|
3148
3144
|
continue;
|
|
3149
3145
|
}
|
|
3150
|
-
if (
|
|
3146
|
+
if (Cr(h)) {
|
|
3151
3147
|
typeof s == "number" && o.push({
|
|
3152
3148
|
type: P.literal,
|
|
3153
3149
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3156,9 +3152,9 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3156
3152
|
}
|
|
3157
3153
|
var f = h.value;
|
|
3158
3154
|
if (!(i && f in i))
|
|
3159
|
-
throw new
|
|
3155
|
+
throw new fn(f, a);
|
|
3160
3156
|
var c = i[f];
|
|
3161
|
-
if (
|
|
3157
|
+
if (Lr(h)) {
|
|
3162
3158
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3163
3159
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3164
3160
|
value: c
|
|
@@ -3166,7 +3162,7 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3166
3162
|
continue;
|
|
3167
3163
|
}
|
|
3168
3164
|
if (yt(h)) {
|
|
3169
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3165
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
|
|
3170
3166
|
o.push({
|
|
3171
3167
|
type: P.literal,
|
|
3172
3168
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
@@ -3174,7 +3170,7 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3174
3170
|
continue;
|
|
3175
3171
|
}
|
|
3176
3172
|
if (Et(h)) {
|
|
3177
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3173
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3178
3174
|
o.push({
|
|
3179
3175
|
type: P.literal,
|
|
3180
3176
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
@@ -3191,9 +3187,9 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3191
3187
|
}
|
|
3192
3188
|
if (vt(h)) {
|
|
3193
3189
|
var y = h.children, T = h.value, A = i[T];
|
|
3194
|
-
if (!
|
|
3195
|
-
throw new
|
|
3196
|
-
var S =
|
|
3190
|
+
if (!mn(A))
|
|
3191
|
+
throw new ln(T, "function", a);
|
|
3192
|
+
var S = ce(y, t, r, n, i, s), L = A(S.map(function(p) {
|
|
3197
3193
|
return p.value;
|
|
3198
3194
|
}));
|
|
3199
3195
|
Array.isArray(L) || (L = [L]), o.push.apply(o, L.map(function(p) {
|
|
@@ -3207,38 +3203,38 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3207
3203
|
var H = h.options[c] || h.options.other;
|
|
3208
3204
|
if (!H)
|
|
3209
3205
|
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3210
|
-
o.push.apply(o,
|
|
3206
|
+
o.push.apply(o, ce(H.value, t, r, n, i));
|
|
3211
3207
|
continue;
|
|
3212
3208
|
}
|
|
3213
3209
|
if (xt(h)) {
|
|
3214
3210
|
var H = h.options["=".concat(c)];
|
|
3215
3211
|
if (!H) {
|
|
3216
3212
|
if (!Intl.PluralRules)
|
|
3217
|
-
throw new
|
|
3213
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3218
3214
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3219
|
-
`,
|
|
3220
|
-
var
|
|
3221
|
-
H = h.options[
|
|
3215
|
+
`, J.MISSING_INTL_API, a);
|
|
3216
|
+
var _ = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3217
|
+
H = h.options[_] || h.options.other;
|
|
3222
3218
|
}
|
|
3223
3219
|
if (!H)
|
|
3224
3220
|
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3225
|
-
o.push.apply(o,
|
|
3221
|
+
o.push.apply(o, ce(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3226
3222
|
continue;
|
|
3227
3223
|
}
|
|
3228
3224
|
}
|
|
3229
|
-
return
|
|
3225
|
+
return cn(o);
|
|
3230
3226
|
}
|
|
3231
|
-
function
|
|
3232
|
-
return t ?
|
|
3233
|
-
return r[n] =
|
|
3227
|
+
function dn(e, t) {
|
|
3228
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3229
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3234
3230
|
}, {})) : e;
|
|
3235
3231
|
}
|
|
3236
|
-
function
|
|
3232
|
+
function pn(e, t) {
|
|
3237
3233
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3238
|
-
return r[n] =
|
|
3239
|
-
},
|
|
3234
|
+
return r[n] = dn(e[n], t[n]), r;
|
|
3235
|
+
}, E({}, e)) : e;
|
|
3240
3236
|
}
|
|
3241
|
-
function
|
|
3237
|
+
function Ae(e) {
|
|
3242
3238
|
return {
|
|
3243
3239
|
create: function() {
|
|
3244
3240
|
return {
|
|
@@ -3252,39 +3248,39 @@ function Oe(e) {
|
|
|
3252
3248
|
}
|
|
3253
3249
|
};
|
|
3254
3250
|
}
|
|
3255
|
-
function
|
|
3251
|
+
function gn(e) {
|
|
3256
3252
|
return e === void 0 && (e = {
|
|
3257
3253
|
number: {},
|
|
3258
3254
|
dateTime: {},
|
|
3259
3255
|
pluralRules: {}
|
|
3260
3256
|
}), {
|
|
3261
|
-
getNumberFormat:
|
|
3257
|
+
getNumberFormat: Te(function() {
|
|
3262
3258
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3263
3259
|
r[n] = arguments[n];
|
|
3264
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3260
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3265
3261
|
}, {
|
|
3266
|
-
cache:
|
|
3267
|
-
strategy:
|
|
3262
|
+
cache: Ae(e.number),
|
|
3263
|
+
strategy: Be.variadic
|
|
3268
3264
|
}),
|
|
3269
|
-
getDateTimeFormat:
|
|
3265
|
+
getDateTimeFormat: Te(function() {
|
|
3270
3266
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3271
3267
|
r[n] = arguments[n];
|
|
3272
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3268
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3273
3269
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3270
|
+
cache: Ae(e.dateTime),
|
|
3271
|
+
strategy: Be.variadic
|
|
3276
3272
|
}),
|
|
3277
|
-
getPluralRules:
|
|
3273
|
+
getPluralRules: Te(function() {
|
|
3278
3274
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3275
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3276
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3281
3277
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3278
|
+
cache: Ae(e.pluralRules),
|
|
3279
|
+
strategy: Be.variadic
|
|
3284
3280
|
})
|
|
3285
3281
|
};
|
|
3286
3282
|
}
|
|
3287
|
-
var
|
|
3283
|
+
var bn = (
|
|
3288
3284
|
/** @class */
|
|
3289
3285
|
function() {
|
|
3290
3286
|
function e(t, r, n, i) {
|
|
@@ -3303,7 +3299,7 @@ var yn = (
|
|
|
3303
3299
|
}, []);
|
|
3304
3300
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3305
3301
|
}, this.formatToParts = function(l) {
|
|
3306
|
-
return
|
|
3302
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3307
3303
|
}, this.resolvedOptions = function() {
|
|
3308
3304
|
var l;
|
|
3309
3305
|
return {
|
|
@@ -3317,12 +3313,12 @@ var yn = (
|
|
|
3317
3313
|
var a = i || {};
|
|
3318
3314
|
a.formatters;
|
|
3319
3315
|
var o = Sr(a, ["formatters"]);
|
|
3320
|
-
this.ast = e.__parse(t,
|
|
3316
|
+
this.ast = e.__parse(t, E(E({}, o), { locale: this.resolvedLocale }));
|
|
3321
3317
|
} else
|
|
3322
3318
|
this.ast = t;
|
|
3323
3319
|
if (!Array.isArray(this.ast))
|
|
3324
3320
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3325
|
-
this.formats =
|
|
3321
|
+
this.formats = pn(e.formats, n), this.formatters = i && i.formatters || gn(this.formatterCache);
|
|
3326
3322
|
}
|
|
3327
3323
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3328
3324
|
get: function() {
|
|
@@ -3335,7 +3331,7 @@ var yn = (
|
|
|
3335
3331
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3336
3332
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3337
3333
|
}
|
|
3338
|
-
}, e.__parse =
|
|
3334
|
+
}, e.__parse = hn, e.formats = {
|
|
3339
3335
|
number: {
|
|
3340
3336
|
integer: {
|
|
3341
3337
|
maximumFractionDigits: 0
|
|
@@ -3396,7 +3392,7 @@ var yn = (
|
|
|
3396
3392
|
}, e;
|
|
3397
3393
|
}()
|
|
3398
3394
|
);
|
|
3399
|
-
function
|
|
3395
|
+
function yn(e, t) {
|
|
3400
3396
|
if (t == null)
|
|
3401
3397
|
return;
|
|
3402
3398
|
if (t in e)
|
|
@@ -3417,36 +3413,36 @@ function En(e, t) {
|
|
|
3417
3413
|
n = void 0;
|
|
3418
3414
|
return n;
|
|
3419
3415
|
}
|
|
3420
|
-
const
|
|
3416
|
+
const U = {}, En = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), Ot = (e, t) => {
|
|
3421
3417
|
if (t == null)
|
|
3422
3418
|
return;
|
|
3423
|
-
if (t in
|
|
3424
|
-
return
|
|
3425
|
-
const r =
|
|
3419
|
+
if (t in U && e in U[t])
|
|
3420
|
+
return U[t][e];
|
|
3421
|
+
const r = _e(t);
|
|
3426
3422
|
for (let n = 0; n < r.length; n++) {
|
|
3427
|
-
const i = r[n], s =
|
|
3423
|
+
const i = r[n], s = xn(i, e);
|
|
3428
3424
|
if (s)
|
|
3429
|
-
return
|
|
3425
|
+
return En(e, t, s);
|
|
3430
3426
|
}
|
|
3431
3427
|
};
|
|
3432
3428
|
let ke;
|
|
3433
|
-
const
|
|
3434
|
-
function
|
|
3429
|
+
const ae = be({});
|
|
3430
|
+
function _n(e) {
|
|
3435
3431
|
return ke[e] || null;
|
|
3436
3432
|
}
|
|
3437
3433
|
function It(e) {
|
|
3438
3434
|
return e in ke;
|
|
3439
3435
|
}
|
|
3440
|
-
function
|
|
3436
|
+
function xn(e, t) {
|
|
3441
3437
|
if (!It(e))
|
|
3442
3438
|
return null;
|
|
3443
|
-
const r =
|
|
3444
|
-
return
|
|
3439
|
+
const r = _n(e);
|
|
3440
|
+
return yn(r, t);
|
|
3445
3441
|
}
|
|
3446
|
-
function
|
|
3442
|
+
function vn(e) {
|
|
3447
3443
|
if (e == null)
|
|
3448
3444
|
return;
|
|
3449
|
-
const t =
|
|
3445
|
+
const t = _e(e);
|
|
3450
3446
|
for (let r = 0; r < t.length; r++) {
|
|
3451
3447
|
const n = t[r];
|
|
3452
3448
|
if (It(n))
|
|
@@ -3454,55 +3450,55 @@ function Hn(e) {
|
|
|
3454
3450
|
}
|
|
3455
3451
|
}
|
|
3456
3452
|
function Lt(e, ...t) {
|
|
3457
|
-
delete
|
|
3453
|
+
delete U[e], ae.update((r) => (r[e] = Br.all([r[e] || {}, ...t]), r));
|
|
3458
3454
|
}
|
|
3459
|
-
|
|
3460
|
-
[
|
|
3455
|
+
Y(
|
|
3456
|
+
[ae],
|
|
3461
3457
|
([e]) => Object.keys(e)
|
|
3462
3458
|
);
|
|
3463
|
-
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
|
|
3459
|
+
ae.subscribe((e) => ke = e);
|
|
3460
|
+
const me = {};
|
|
3461
|
+
function Hn(e, t) {
|
|
3462
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3467
3463
|
}
|
|
3468
3464
|
function Ct(e) {
|
|
3469
|
-
return
|
|
3465
|
+
return me[e];
|
|
3470
3466
|
}
|
|
3471
|
-
function
|
|
3472
|
-
return
|
|
3467
|
+
function Tn(e) {
|
|
3468
|
+
return _e(e).map((t) => {
|
|
3473
3469
|
const r = Ct(t);
|
|
3474
3470
|
return [t, r ? [...r] : []];
|
|
3475
3471
|
}).filter(([, t]) => t.length > 0);
|
|
3476
3472
|
}
|
|
3477
|
-
function
|
|
3478
|
-
return e == null ? !1 :
|
|
3473
|
+
function Ue(e) {
|
|
3474
|
+
return e == null ? !1 : _e(e).some(
|
|
3479
3475
|
(t) => {
|
|
3480
3476
|
var r;
|
|
3481
3477
|
return (r = Ct(t)) == null ? void 0 : r.size;
|
|
3482
3478
|
}
|
|
3483
3479
|
);
|
|
3484
3480
|
}
|
|
3485
|
-
function
|
|
3481
|
+
function Bn(e, t) {
|
|
3486
3482
|
return Promise.all(
|
|
3487
|
-
t.map((n) => (
|
|
3483
|
+
t.map((n) => (Hn(e, n), n().then((i) => i.default || i)))
|
|
3488
3484
|
).then((n) => Lt(e, ...n));
|
|
3489
3485
|
}
|
|
3490
|
-
const
|
|
3486
|
+
const ee = {};
|
|
3491
3487
|
function Mt(e) {
|
|
3492
|
-
if (!
|
|
3493
|
-
return e in
|
|
3494
|
-
const t =
|
|
3495
|
-
return
|
|
3488
|
+
if (!Ue(e))
|
|
3489
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
3490
|
+
const t = Tn(e);
|
|
3491
|
+
return ee[e] = Promise.all(
|
|
3496
3492
|
t.map(
|
|
3497
|
-
([r, n]) =>
|
|
3493
|
+
([r, n]) => Bn(r, n)
|
|
3498
3494
|
)
|
|
3499
3495
|
).then(() => {
|
|
3500
|
-
if (
|
|
3496
|
+
if (Ue(e))
|
|
3501
3497
|
return Mt(e);
|
|
3502
|
-
delete
|
|
3503
|
-
}),
|
|
3498
|
+
delete ee[e];
|
|
3499
|
+
}), ee[e];
|
|
3504
3500
|
}
|
|
3505
|
-
const
|
|
3501
|
+
const Sn = {
|
|
3506
3502
|
number: {
|
|
3507
3503
|
scientific: { notation: "scientific" },
|
|
3508
3504
|
engineering: { notation: "engineering" },
|
|
@@ -3531,150 +3527,150 @@ const An = {
|
|
|
3531
3527
|
timeZoneName: "short"
|
|
3532
3528
|
}
|
|
3533
3529
|
}
|
|
3534
|
-
},
|
|
3530
|
+
}, An = {
|
|
3535
3531
|
fallbackLocale: null,
|
|
3536
3532
|
loadingDelay: 200,
|
|
3537
|
-
formats:
|
|
3533
|
+
formats: Sn,
|
|
3538
3534
|
warnOnMissingMessages: !0,
|
|
3539
3535
|
handleMissingMessage: void 0,
|
|
3540
3536
|
ignoreTag: !0
|
|
3541
|
-
},
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3537
|
+
}, Pn = An;
|
|
3538
|
+
function q() {
|
|
3539
|
+
return Pn;
|
|
3544
3540
|
}
|
|
3545
|
-
const
|
|
3546
|
-
var
|
|
3541
|
+
const Pe = be(!1);
|
|
3542
|
+
var Nn = Object.defineProperty, wn = Object.defineProperties, On = Object.getOwnPropertyDescriptors, nt = Object.getOwnPropertySymbols, In = Object.prototype.hasOwnProperty, Ln = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Cn = (e, t) => {
|
|
3547
3543
|
for (var r in t || (t = {}))
|
|
3548
|
-
|
|
3544
|
+
In.call(t, r) && it(e, r, t[r]);
|
|
3549
3545
|
if (nt)
|
|
3550
3546
|
for (var r of nt(t))
|
|
3551
|
-
|
|
3547
|
+
Ln.call(t, r) && it(e, r, t[r]);
|
|
3552
3548
|
return e;
|
|
3553
|
-
},
|
|
3554
|
-
let
|
|
3555
|
-
const
|
|
3549
|
+
}, Mn = (e, t) => wn(e, On(t));
|
|
3550
|
+
let Fe;
|
|
3551
|
+
const de = be(null);
|
|
3556
3552
|
function st(e) {
|
|
3557
3553
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3558
3554
|
}
|
|
3559
|
-
function
|
|
3555
|
+
function _e(e, t = q().fallbackLocale) {
|
|
3560
3556
|
const r = st(e);
|
|
3561
3557
|
return t ? [.../* @__PURE__ */ new Set([...r, ...st(t)])] : r;
|
|
3562
3558
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3559
|
+
function k() {
|
|
3560
|
+
return Fe ?? void 0;
|
|
3565
3561
|
}
|
|
3566
|
-
|
|
3567
|
-
|
|
3562
|
+
de.subscribe((e) => {
|
|
3563
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3568
3564
|
});
|
|
3569
|
-
const
|
|
3570
|
-
if (e &&
|
|
3571
|
-
const { loadingDelay: t } =
|
|
3565
|
+
const $n = (e) => {
|
|
3566
|
+
if (e && vn(e) && Ue(e)) {
|
|
3567
|
+
const { loadingDelay: t } = q();
|
|
3572
3568
|
let r;
|
|
3573
|
-
return typeof window < "u" &&
|
|
3574
|
-
() =>
|
|
3569
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3570
|
+
() => Pe.set(!0),
|
|
3575
3571
|
t
|
|
3576
|
-
) :
|
|
3577
|
-
|
|
3572
|
+
) : Pe.set(!0), Mt(e).then(() => {
|
|
3573
|
+
de.set(e);
|
|
3578
3574
|
}).finally(() => {
|
|
3579
|
-
clearTimeout(r),
|
|
3575
|
+
clearTimeout(r), Pe.set(!1);
|
|
3580
3576
|
});
|
|
3581
3577
|
}
|
|
3582
|
-
return
|
|
3583
|
-
},
|
|
3584
|
-
set:
|
|
3585
|
-
}),
|
|
3578
|
+
return de.set(e);
|
|
3579
|
+
}, ue = Mn(Cn({}, de), {
|
|
3580
|
+
set: $n
|
|
3581
|
+
}), xe = (e) => {
|
|
3586
3582
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3587
3583
|
return (n) => {
|
|
3588
3584
|
const i = JSON.stringify(n);
|
|
3589
3585
|
return i in t ? t[i] : t[i] = e(n);
|
|
3590
3586
|
};
|
|
3591
3587
|
};
|
|
3592
|
-
var
|
|
3588
|
+
var Rn = Object.defineProperty, pe = Object.getOwnPropertySymbols, $t = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3593
3589
|
for (var r in t || (t = {}))
|
|
3594
3590
|
$t.call(t, r) && ot(e, r, t[r]);
|
|
3595
|
-
if (
|
|
3596
|
-
for (var r of
|
|
3591
|
+
if (pe)
|
|
3592
|
+
for (var r of pe(t))
|
|
3597
3593
|
Rt.call(t, r) && ot(e, r, t[r]);
|
|
3598
3594
|
return e;
|
|
3599
|
-
},
|
|
3595
|
+
}, K = (e, t) => {
|
|
3600
3596
|
var r = {};
|
|
3601
3597
|
for (var n in e)
|
|
3602
3598
|
$t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3603
|
-
if (e != null &&
|
|
3604
|
-
for (var n of
|
|
3599
|
+
if (e != null && pe)
|
|
3600
|
+
for (var n of pe(e))
|
|
3605
3601
|
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
|
3606
3602
|
return r;
|
|
3607
3603
|
};
|
|
3608
|
-
const
|
|
3609
|
-
const { formats: r } =
|
|
3604
|
+
const se = (e, t) => {
|
|
3605
|
+
const { formats: r } = q();
|
|
3610
3606
|
if (e in r && t in r[e])
|
|
3611
3607
|
return r[e][t];
|
|
3612
3608
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3613
|
-
},
|
|
3609
|
+
}, Dn = xe(
|
|
3614
3610
|
(e) => {
|
|
3615
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3611
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
3616
3612
|
if (r == null)
|
|
3617
3613
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3618
|
-
return n && (i =
|
|
3614
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3619
3615
|
}
|
|
3620
|
-
),
|
|
3616
|
+
), Un = xe(
|
|
3621
3617
|
(e) => {
|
|
3622
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3618
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
3623
3619
|
if (r == null)
|
|
3624
3620
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3625
|
-
return n ? i =
|
|
3621
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3626
3622
|
}
|
|
3627
|
-
),
|
|
3623
|
+
), Fn = xe(
|
|
3628
3624
|
(e) => {
|
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3625
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
3630
3626
|
if (r == null)
|
|
3631
3627
|
throw new Error(
|
|
3632
3628
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3633
3629
|
);
|
|
3634
|
-
return n ? i =
|
|
3630
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3635
3631
|
}
|
|
3636
|
-
),
|
|
3632
|
+
), Gn = (e = {}) => {
|
|
3637
3633
|
var t = e, {
|
|
3638
|
-
locale: r =
|
|
3639
|
-
} = t, n =
|
|
3634
|
+
locale: r = k()
|
|
3635
|
+
} = t, n = K(t, [
|
|
3640
3636
|
"locale"
|
|
3641
3637
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3638
|
+
return Dn(Ve({ locale: r }, n));
|
|
3639
|
+
}, jn = (e = {}) => {
|
|
3644
3640
|
var t = e, {
|
|
3645
|
-
locale: r =
|
|
3646
|
-
} = t, n =
|
|
3641
|
+
locale: r = k()
|
|
3642
|
+
} = t, n = K(t, [
|
|
3647
3643
|
"locale"
|
|
3648
3644
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3645
|
+
return Un(Ve({ locale: r }, n));
|
|
3646
|
+
}, kn = (e = {}) => {
|
|
3651
3647
|
var t = e, {
|
|
3652
|
-
locale: r =
|
|
3653
|
-
} = t, n =
|
|
3648
|
+
locale: r = k()
|
|
3649
|
+
} = t, n = K(t, [
|
|
3654
3650
|
"locale"
|
|
3655
3651
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3652
|
+
return Fn(Ve({ locale: r }, n));
|
|
3653
|
+
}, Vn = xe(
|
|
3658
3654
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3659
|
-
(e, t =
|
|
3660
|
-
ignoreTag:
|
|
3655
|
+
(e, t = k()) => new bn(e, t, q().formats, {
|
|
3656
|
+
ignoreTag: q().ignoreTag
|
|
3661
3657
|
})
|
|
3662
|
-
),
|
|
3658
|
+
), Xn = (e, t = {}) => {
|
|
3663
3659
|
var r, n, i, s;
|
|
3664
3660
|
let a = t;
|
|
3665
3661
|
typeof e == "object" && (a = e, e = a.id);
|
|
3666
3662
|
const {
|
|
3667
3663
|
values: o,
|
|
3668
|
-
locale: l =
|
|
3664
|
+
locale: l = k(),
|
|
3669
3665
|
default: u
|
|
3670
3666
|
} = a;
|
|
3671
3667
|
if (l == null)
|
|
3672
3668
|
throw new Error(
|
|
3673
3669
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3674
3670
|
);
|
|
3675
|
-
let h =
|
|
3671
|
+
let h = Ot(e, l);
|
|
3676
3672
|
if (!h)
|
|
3677
|
-
h = (s = (i = (n = (r =
|
|
3673
|
+
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;
|
|
3678
3674
|
else if (typeof h != "string")
|
|
3679
3675
|
return console.warn(
|
|
3680
3676
|
`[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.`
|
|
@@ -3683,7 +3679,7 @@ const oe = (e, t) => {
|
|
|
3683
3679
|
return h;
|
|
3684
3680
|
let f = h;
|
|
3685
3681
|
try {
|
|
3686
|
-
f =
|
|
3682
|
+
f = Vn(h, l).format(o);
|
|
3687
3683
|
} catch (c) {
|
|
3688
3684
|
c instanceof Error && console.warn(
|
|
3689
3685
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3691,11 +3687,11 @@ const oe = (e, t) => {
|
|
|
3691
3687
|
);
|
|
3692
3688
|
}
|
|
3693
3689
|
return f;
|
|
3694
|
-
},
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3690
|
+
}, 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()) => Ot(e, t), Jn = Y([ue, ae], () => Xn);
|
|
3691
|
+
Y([ue], () => zn);
|
|
3692
|
+
Y([ue], () => Wn);
|
|
3693
|
+
Y([ue], () => Zn);
|
|
3694
|
+
Y([ue, ae], () => Qn);
|
|
3699
3695
|
function at(e, t) {
|
|
3700
3696
|
Lt(e, t);
|
|
3701
3697
|
}
|
|
@@ -3789,13 +3785,13 @@ const ut = {
|
|
|
3789
3785
|
days: "days"
|
|
3790
3786
|
}
|
|
3791
3787
|
};
|
|
3792
|
-
function
|
|
3788
|
+
function qn(e, t) {
|
|
3793
3789
|
if (e) {
|
|
3794
3790
|
const r = document.createElement("style");
|
|
3795
3791
|
r.innerHTML = t, e.appendChild(r);
|
|
3796
3792
|
}
|
|
3797
3793
|
}
|
|
3798
|
-
function
|
|
3794
|
+
function Yn(e, t) {
|
|
3799
3795
|
if (!e || !t)
|
|
3800
3796
|
return;
|
|
3801
3797
|
const r = new URL(t);
|
|
@@ -3806,7 +3802,7 @@ function Kn(e, t) {
|
|
|
3806
3802
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3807
3803
|
});
|
|
3808
3804
|
}
|
|
3809
|
-
function
|
|
3805
|
+
function Kn(e, t, r) {
|
|
3810
3806
|
if (window.emMessageBus) {
|
|
3811
3807
|
const n = document.createElement("style");
|
|
3812
3808
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3814,7 +3810,7 @@ function ei(e, t, r) {
|
|
|
3814
3810
|
});
|
|
3815
3811
|
}
|
|
3816
3812
|
}
|
|
3817
|
-
function
|
|
3813
|
+
function ei(e) {
|
|
3818
3814
|
kt(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)}");
|
|
3819
3815
|
}
|
|
3820
3816
|
function ht(e) {
|
|
@@ -3836,9 +3832,9 @@ function ht(e) {
|
|
|
3836
3832
|
/*status*/
|
|
3837
3833
|
p[2] == "Finished" || /*status*/
|
|
3838
3834
|
p[2] == "Closing" || /*status*/
|
|
3839
|
-
p[2] == "Closed" ?
|
|
3835
|
+
p[2] == "Closed" ? ni : (
|
|
3840
3836
|
/*tournamentUntilStartDays*/
|
|
3841
|
-
p[5] > 0 ?
|
|
3837
|
+
p[5] > 0 ? ri : ti
|
|
3842
3838
|
)
|
|
3843
3839
|
);
|
|
3844
3840
|
}
|
|
@@ -3850,25 +3846,25 @@ function ht(e) {
|
|
|
3850
3846
|
p[2] == "Closing" || /*status*/
|
|
3851
3847
|
p[2] == "Closed"
|
|
3852
3848
|
)
|
|
3853
|
-
return
|
|
3849
|
+
return oi;
|
|
3854
3850
|
if (
|
|
3855
3851
|
/*tournamentUntilStartDays*/
|
|
3856
3852
|
p[5] > 0
|
|
3857
3853
|
)
|
|
3858
|
-
return
|
|
3854
|
+
return si;
|
|
3859
3855
|
if (
|
|
3860
3856
|
/*tournamentLeftDays*/
|
|
3861
3857
|
p[4] > 0
|
|
3862
3858
|
)
|
|
3863
|
-
return
|
|
3859
|
+
return ii;
|
|
3864
3860
|
}
|
|
3865
|
-
let H = L(e),
|
|
3861
|
+
let H = L(e), _ = H && H(e);
|
|
3866
3862
|
return {
|
|
3867
3863
|
c() {
|
|
3868
|
-
t =
|
|
3864
|
+
t = O("div"), r = O("div"), i = F(n), s = te(), a = O("div"), l = F(o), u = te(), h = O("div"), f = O("div"), S.c(), c = te(), _ && _.c(), x(r, "class", "StartDate"), x(r, "part", "StartDate"), x(a, "class", "EndDate"), x(a, "part", "EndDate"), x(t, "class", "TournamentDates"), x(t, "part", "TournamentDates"), x(f, "class", "ProgressBar"), x(f, "part", "ProgressBar"), x(h, "class", "ProgressBarWrapper"), x(h, "part", "ProgressBarWrapper");
|
|
3869
3865
|
},
|
|
3870
3866
|
m(p, B) {
|
|
3871
|
-
M(p, t, B),
|
|
3867
|
+
M(p, t, B), N(t, r), N(r, i), N(t, s), N(t, a), N(a, l), M(p, u, B), M(p, h, B), N(h, f), S.m(f, null), N(f, c), _ && _.m(f, null), d || (y = jt(
|
|
3872
3868
|
/*getDuration*/
|
|
3873
3869
|
e[9].call(null, h)
|
|
3874
3870
|
), d = !0);
|
|
@@ -3879,23 +3875,23 @@ function ht(e) {
|
|
|
3879
3875
|
p[10](
|
|
3880
3876
|
/*startdate*/
|
|
3881
3877
|
p[0]
|
|
3882
|
-
) + "") &&
|
|
3878
|
+
) + "") && j(i, n), B & /*enddate*/
|
|
3883
3879
|
2 && o !== (o = /*formatDate*/
|
|
3884
3880
|
p[10](
|
|
3885
3881
|
/*enddate*/
|
|
3886
3882
|
p[1]
|
|
3887
|
-
) + "") &&
|
|
3883
|
+
) + "") && j(l, o), A === (A = T(p)) && S ? S.p(p, B) : (S.d(1), S = A(p), S && (S.c(), S.m(f, c))), H === (H = L(p)) && _ ? _.p(p, B) : (_ && _.d(1), _ = H && H(p), _ && (_.c(), _.m(f, null)));
|
|
3888
3884
|
},
|
|
3889
3885
|
d(p) {
|
|
3890
|
-
p && (C(t), C(u), C(h)), S.d(),
|
|
3886
|
+
p && (C(t), C(u), C(h)), S.d(), _ && _.d(), d = !1, y();
|
|
3891
3887
|
}
|
|
3892
3888
|
};
|
|
3893
3889
|
}
|
|
3894
|
-
function
|
|
3890
|
+
function ti(e) {
|
|
3895
3891
|
let t;
|
|
3896
3892
|
return {
|
|
3897
3893
|
c() {
|
|
3898
|
-
t =
|
|
3894
|
+
t = O("div"), x(t, "class", "ProgressBarFill"), x(t, "part", "ProgressBarFill"), ze(
|
|
3899
3895
|
t,
|
|
3900
3896
|
"width",
|
|
3901
3897
|
/*getProgress*/
|
|
@@ -3919,11 +3915,11 @@ function ri(e) {
|
|
|
3919
3915
|
}
|
|
3920
3916
|
};
|
|
3921
3917
|
}
|
|
3922
|
-
function
|
|
3918
|
+
function ri(e) {
|
|
3923
3919
|
let t;
|
|
3924
3920
|
return {
|
|
3925
3921
|
c() {
|
|
3926
|
-
t =
|
|
3922
|
+
t = O("div"), x(t, "class", "ProgressBarFillStarting"), x(t, "part", "ProgressBarFillStarting");
|
|
3927
3923
|
},
|
|
3928
3924
|
m(r, n) {
|
|
3929
3925
|
M(r, t, n);
|
|
@@ -3934,11 +3930,11 @@ function ni(e) {
|
|
|
3934
3930
|
}
|
|
3935
3931
|
};
|
|
3936
3932
|
}
|
|
3937
|
-
function
|
|
3933
|
+
function ni(e) {
|
|
3938
3934
|
let t;
|
|
3939
3935
|
return {
|
|
3940
3936
|
c() {
|
|
3941
|
-
t =
|
|
3937
|
+
t = O("div"), x(t, "class", "ProgressBarFillEnd"), x(t, "part", "ProgressBarFillEnd");
|
|
3942
3938
|
},
|
|
3943
3939
|
m(r, n) {
|
|
3944
3940
|
M(r, t, n);
|
|
@@ -3949,37 +3945,37 @@ function ii(e) {
|
|
|
3949
3945
|
}
|
|
3950
3946
|
};
|
|
3951
3947
|
}
|
|
3952
|
-
function
|
|
3948
|
+
function ii(e) {
|
|
3953
3949
|
let t, r, n, i = (
|
|
3954
3950
|
/*$_*/
|
|
3955
3951
|
e[8]("left") + ""
|
|
3956
3952
|
), s;
|
|
3957
3953
|
return {
|
|
3958
3954
|
c() {
|
|
3959
|
-
t =
|
|
3955
|
+
t = O("div"), r = F(
|
|
3960
3956
|
/*showRemain*/
|
|
3961
3957
|
e[6]
|
|
3962
|
-
), n =
|
|
3958
|
+
), n = te(), s = F(i), x(t, "class", "Remaining"), x(t, "part", "Remaining");
|
|
3963
3959
|
},
|
|
3964
3960
|
m(a, o) {
|
|
3965
|
-
M(a, t, o),
|
|
3961
|
+
M(a, t, o), N(t, r), N(t, n), N(t, s);
|
|
3966
3962
|
},
|
|
3967
3963
|
p(a, o) {
|
|
3968
3964
|
o & /*showRemain*/
|
|
3969
|
-
64 &&
|
|
3965
|
+
64 && j(
|
|
3970
3966
|
r,
|
|
3971
3967
|
/*showRemain*/
|
|
3972
3968
|
a[6]
|
|
3973
3969
|
), o & /*$_*/
|
|
3974
3970
|
256 && i !== (i = /*$_*/
|
|
3975
|
-
a[8]("left") + "") &&
|
|
3971
|
+
a[8]("left") + "") && j(s, i);
|
|
3976
3972
|
},
|
|
3977
3973
|
d(a) {
|
|
3978
3974
|
a && C(t);
|
|
3979
3975
|
}
|
|
3980
3976
|
};
|
|
3981
3977
|
}
|
|
3982
|
-
function
|
|
3978
|
+
function si(e) {
|
|
3983
3979
|
let t, r = (
|
|
3984
3980
|
/*$_*/
|
|
3985
3981
|
e[8]("starting") + ""
|
|
@@ -3992,49 +3988,49 @@ function oi(e) {
|
|
|
3992
3988
|
), a;
|
|
3993
3989
|
return {
|
|
3994
3990
|
c() {
|
|
3995
|
-
t =
|
|
3991
|
+
t = O("div"), n = F(r), i = te(), a = F(s), x(t, "class", "Remaining"), x(t, "part", "Remaining");
|
|
3996
3992
|
},
|
|
3997
3993
|
m(o, l) {
|
|
3998
|
-
M(o, t, l),
|
|
3994
|
+
M(o, t, l), N(t, n), N(t, i), N(t, a);
|
|
3999
3995
|
},
|
|
4000
3996
|
p(o, l) {
|
|
4001
3997
|
l & /*$_*/
|
|
4002
3998
|
256 && r !== (r = /*$_*/
|
|
4003
|
-
o[8]("starting") + "") &&
|
|
3999
|
+
o[8]("starting") + "") && j(n, r), l & /*tournamentUntilStartDays*/
|
|
4004
4000
|
32 && s !== (s = /*getTextByDiff*/
|
|
4005
4001
|
o[11](
|
|
4006
4002
|
/*tournamentUntilStartDays*/
|
|
4007
4003
|
o[5]
|
|
4008
|
-
) + "") &&
|
|
4004
|
+
) + "") && j(a, s);
|
|
4009
4005
|
},
|
|
4010
4006
|
d(o) {
|
|
4011
4007
|
o && C(t);
|
|
4012
4008
|
}
|
|
4013
4009
|
};
|
|
4014
4010
|
}
|
|
4015
|
-
function
|
|
4011
|
+
function oi(e) {
|
|
4016
4012
|
let t, r = (
|
|
4017
4013
|
/*$_*/
|
|
4018
4014
|
e[8]("finished") + ""
|
|
4019
4015
|
), n;
|
|
4020
4016
|
return {
|
|
4021
4017
|
c() {
|
|
4022
|
-
t =
|
|
4018
|
+
t = O("div"), n = F(r), x(t, "class", "Finished"), x(t, "part", "Finished");
|
|
4023
4019
|
},
|
|
4024
4020
|
m(i, s) {
|
|
4025
|
-
M(i, t, s),
|
|
4021
|
+
M(i, t, s), N(t, n);
|
|
4026
4022
|
},
|
|
4027
4023
|
p(i, s) {
|
|
4028
4024
|
s & /*$_*/
|
|
4029
4025
|
256 && r !== (r = /*$_*/
|
|
4030
|
-
i[8]("finished") + "") &&
|
|
4026
|
+
i[8]("finished") + "") && j(n, r);
|
|
4031
4027
|
},
|
|
4032
4028
|
d(i) {
|
|
4033
4029
|
i && C(t);
|
|
4034
4030
|
}
|
|
4035
4031
|
};
|
|
4036
4032
|
}
|
|
4037
|
-
function
|
|
4033
|
+
function ai(e) {
|
|
4038
4034
|
let t, r = (
|
|
4039
4035
|
/*startdate*/
|
|
4040
4036
|
e[0] && /*enddate*/
|
|
@@ -4042,7 +4038,7 @@ function ui(e) {
|
|
|
4042
4038
|
);
|
|
4043
4039
|
return {
|
|
4044
4040
|
c() {
|
|
4045
|
-
t =
|
|
4041
|
+
t = O("div"), r && r.c(), x(t, "class", "TournamentDuration"), x(t, "part", "TournamentDuration");
|
|
4046
4042
|
},
|
|
4047
4043
|
m(n, i) {
|
|
4048
4044
|
M(n, t, i), r && r.m(t, null), e[17](t);
|
|
@@ -4059,14 +4055,14 @@ function ui(e) {
|
|
|
4059
4055
|
}
|
|
4060
4056
|
};
|
|
4061
4057
|
}
|
|
4062
|
-
function
|
|
4058
|
+
function ui(e, t, r) {
|
|
4063
4059
|
let n, i;
|
|
4064
|
-
Gt(e,
|
|
4060
|
+
Gt(e, Jn, (m) => r(8, i = m));
|
|
4065
4061
|
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, d, y = "", T = "", A = "";
|
|
4066
4062
|
const S = () => {
|
|
4067
4063
|
fetch(f).then((w) => w.json()).then((w) => {
|
|
4068
|
-
Object.keys(w).forEach((
|
|
4069
|
-
at(
|
|
4064
|
+
Object.keys(w).forEach((D) => {
|
|
4065
|
+
at(D, w[D]);
|
|
4070
4066
|
});
|
|
4071
4067
|
}).catch((w) => {
|
|
4072
4068
|
console.log(w);
|
|
@@ -4075,21 +4071,21 @@ function hi(e, t, r) {
|
|
|
4075
4071
|
Object.keys(ut).forEach((m) => {
|
|
4076
4072
|
at(m, ut[m]);
|
|
4077
4073
|
});
|
|
4078
|
-
const L = (m) => new Date(m).getTime(), H = (m, w) => (L(w) - L(m)) / (1e3 * 60),
|
|
4074
|
+
const L = (m) => new Date(m).getTime(), H = (m, w) => (L(w) - L(m)) / (1e3 * 60), _ = () => {
|
|
4079
4075
|
const m = /* @__PURE__ */ new Date();
|
|
4080
4076
|
r(4, y = H(m, a)), r(5, T = H(m, s)), r(6, A = B(y));
|
|
4081
4077
|
}, p = (m) => {
|
|
4082
4078
|
const w = { month: "long" };
|
|
4083
|
-
let
|
|
4084
|
-
return `${
|
|
4079
|
+
let D = new Date(m), G = new Intl.DateTimeFormat(l, w).format(D);
|
|
4080
|
+
return `${D.getDate()} ${G}, ${D.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${D.getUTCFullYear()}`;
|
|
4085
4081
|
}, B = (m) => {
|
|
4086
|
-
const w = (
|
|
4087
|
-
const $ = Math.floor(
|
|
4082
|
+
const w = (G, $) => G + " " + i($), D = (G) => {
|
|
4083
|
+
const $ = Math.floor(G);
|
|
4088
4084
|
return $ < 10 ? `0${$}` : `${$}`;
|
|
4089
4085
|
};
|
|
4090
4086
|
if (m < 1440) {
|
|
4091
|
-
const
|
|
4092
|
-
return [
|
|
4087
|
+
const G = m / 60, $ = m % 60, Dt = ($ - Math.floor($)) * 60;
|
|
4088
|
+
return [G, $, Dt].map((Ut) => D(Ut)).join(":");
|
|
4093
4089
|
}
|
|
4094
4090
|
return w(Math.ceil(m / (60 * 24)), "days");
|
|
4095
4091
|
};
|
|
@@ -4097,7 +4093,7 @@ function hi(e, t, r) {
|
|
|
4097
4093
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4098
4094
|
const m = setInterval(
|
|
4099
4095
|
() => {
|
|
4100
|
-
s && a &&
|
|
4096
|
+
s && a && _();
|
|
4101
4097
|
},
|
|
4102
4098
|
1e3
|
|
4103
4099
|
);
|
|
@@ -4105,7 +4101,7 @@ function hi(e, t, r) {
|
|
|
4105
4101
|
clearInterval(m);
|
|
4106
4102
|
};
|
|
4107
4103
|
});
|
|
4108
|
-
function
|
|
4104
|
+
function he(m) {
|
|
4109
4105
|
Ne[m ? "unshift" : "push"](() => {
|
|
4110
4106
|
d = m, r(3, d);
|
|
4111
4107
|
});
|
|
@@ -4120,13 +4116,13 @@ function hi(e, t, r) {
|
|
|
4120
4116
|
const m = H(s, a), w = 100 / m;
|
|
4121
4117
|
return Math.floor((m - y) * w);
|
|
4122
4118
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4123
|
-
19 && s && a &&
|
|
4124
|
-
4096 && l &&
|
|
4119
|
+
19 && s && a && _() && B(y), e.$$.dirty & /*lang*/
|
|
4120
|
+
4096 && l && _(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4125
4121
|
4112 && l && B(y), e.$$.dirty & /*translationurl*/
|
|
4126
4122
|
32768 && f && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4127
|
-
8200 && u && d &&
|
|
4128
|
-
16392 && h && d &&
|
|
4129
|
-
65544 && c && d &&
|
|
4123
|
+
8200 && u && d && qn(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4124
|
+
16392 && h && d && Yn(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4125
|
+
65544 && c && d && Kn(d, `${c}.Style`);
|
|
4130
4126
|
}, [
|
|
4131
4127
|
s,
|
|
4132
4128
|
a,
|
|
@@ -4137,7 +4133,7 @@ function hi(e, t, r) {
|
|
|
4137
4133
|
A,
|
|
4138
4134
|
n,
|
|
4139
4135
|
i,
|
|
4140
|
-
|
|
4136
|
+
_,
|
|
4141
4137
|
p,
|
|
4142
4138
|
B,
|
|
4143
4139
|
l,
|
|
@@ -4145,16 +4141,16 @@ function hi(e, t, r) {
|
|
|
4145
4141
|
h,
|
|
4146
4142
|
f,
|
|
4147
4143
|
c,
|
|
4148
|
-
|
|
4144
|
+
he
|
|
4149
4145
|
];
|
|
4150
4146
|
}
|
|
4151
|
-
class
|
|
4147
|
+
class hi extends ar {
|
|
4152
4148
|
constructor(t) {
|
|
4153
4149
|
super(), sr(
|
|
4154
4150
|
this,
|
|
4155
4151
|
t,
|
|
4156
|
-
hi,
|
|
4157
4152
|
ui,
|
|
4153
|
+
ai,
|
|
4158
4154
|
ft,
|
|
4159
4155
|
{
|
|
4160
4156
|
startdate: 0,
|
|
@@ -4166,7 +4162,7 @@ class li extends ar {
|
|
|
4166
4162
|
translationurl: 15,
|
|
4167
4163
|
mbsource: 16
|
|
4168
4164
|
},
|
|
4169
|
-
|
|
4165
|
+
ei
|
|
4170
4166
|
);
|
|
4171
4167
|
}
|
|
4172
4168
|
get startdate() {
|
|
@@ -4218,7 +4214,7 @@ class li extends ar {
|
|
|
4218
4214
|
this.$$set({ mbsource: t }), R();
|
|
4219
4215
|
}
|
|
4220
4216
|
}
|
|
4221
|
-
or(
|
|
4217
|
+
or(hi, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4222
4218
|
export {
|
|
4223
|
-
|
|
4219
|
+
hi as C
|
|
4224
4220
|
};
|