@everymatrix/casino-tournaments-thumbnail-duration 1.86.4 → 1.86.6
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-Cvs0L2J9.js → CasinoTournamentsThumbnailDuration-3FQ0f1Uj.js} +483 -479
- package/components/{CasinoTournamentsThumbnailDuration-VS18Tk6o.js → CasinoTournamentsThumbnailDuration-B8mUy4Xu.js} +511 -507
- package/components/CasinoTournamentsThumbnailDuration-C_-DLaMa.cjs +3 -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 +1 -1
- package/components/CasinoTournamentsThumbnailDuration-CBIDwszT.cjs +0 -16
|
@@ -2,15 +2,15 @@ var zt = Object.defineProperty, Wt = Object.defineProperties;
|
|
|
2
2
|
var Zt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var We = Object.getOwnPropertySymbols;
|
|
4
4
|
var Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Be = (e, t, r) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Qt.call(t, r) &&
|
|
7
|
+
Qt.call(t, r) && Be(e, r, t[r]);
|
|
8
8
|
if (We)
|
|
9
9
|
for (var r of We(t))
|
|
10
|
-
Jt.call(t, r) &&
|
|
10
|
+
Jt.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Qe = (e, t) => Wt(e, Zt(t));
|
|
13
|
-
var
|
|
13
|
+
var C = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -35,10 +35,10 @@ function gt(e) {
|
|
|
35
35
|
function qe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ue(e) {
|
|
39
39
|
e.forEach(gt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ee(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function bt(e, t) {
|
|
@@ -60,15 +60,15 @@ function Yt(e, t, r) {
|
|
|
60
60
|
e.$$.on_destroy.push(yt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function Kt(e) {
|
|
63
|
-
return e &&
|
|
63
|
+
return e && Ee(e.destroy) ? e.destroy : I;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function O(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
68
|
function er(e, t, r) {
|
|
69
69
|
const n = tr(e);
|
|
70
70
|
if (!n.getElementById(t)) {
|
|
71
|
-
const i =
|
|
71
|
+
const i = N("style");
|
|
72
72
|
i.id = t, i.textContent = r, rr(n, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -83,7 +83,7 @@ function tr(e) {
|
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
85
|
function rr(e, t) {
|
|
86
|
-
return
|
|
86
|
+
return O(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
@@ -92,25 +92,25 @@ function rr(e, t) {
|
|
|
92
92
|
function $(e, t, r) {
|
|
93
93
|
e.insertBefore(t, r || null);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function M(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function N(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function j(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function ne() {
|
|
105
|
+
return j(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function _(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
110
|
function nr(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function V(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
@@ -126,65 +126,65 @@ function ir(e) {
|
|
|
126
126
|
}
|
|
127
127
|
), t;
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let se;
|
|
130
|
+
function ie(e) {
|
|
131
|
+
se = e;
|
|
132
132
|
}
|
|
133
133
|
function sr() {
|
|
134
|
-
if (!
|
|
134
|
+
if (!se)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
136
|
+
return se;
|
|
137
137
|
}
|
|
138
138
|
function or(e) {
|
|
139
139
|
sr().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
141
|
+
const Z = [], Le = [];
|
|
142
|
+
let Q = [];
|
|
143
143
|
const Ke = [], ar = /* @__PURE__ */ Promise.resolve();
|
|
144
|
-
let
|
|
144
|
+
let Ce = !1;
|
|
145
145
|
function ur() {
|
|
146
|
-
|
|
146
|
+
Ce || (Ce = !0, ar.then(D));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function Me(e) {
|
|
149
|
+
Q.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
151
|
+
const Se = /* @__PURE__ */ new Set();
|
|
152
|
+
let z = 0;
|
|
153
153
|
function D() {
|
|
154
|
-
if (
|
|
154
|
+
if (z !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = se;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
159
|
+
for (; z < Z.length; ) {
|
|
160
|
+
const t = Z[z];
|
|
161
|
+
z++, ie(t), hr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw Z.length = 0, z = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
166
|
+
for (ie(null), Z.length = 0, z = 0; Le.length; )
|
|
167
|
+
Le.pop()();
|
|
168
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
169
|
+
const r = Q[t];
|
|
170
|
+
Se.has(r) || (Se.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
172
|
+
Q.length = 0;
|
|
173
|
+
} while (Z.length);
|
|
174
174
|
for (; Ke.length; )
|
|
175
175
|
Ke.pop()();
|
|
176
|
-
|
|
176
|
+
Ce = !1, Se.clear(), ie(e);
|
|
177
177
|
}
|
|
178
178
|
function hr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), ue(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function lr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
188
188
|
}
|
|
189
189
|
const fr = /* @__PURE__ */ new Set();
|
|
190
190
|
function cr(e, t) {
|
|
@@ -192,21 +192,21 @@ function cr(e, t) {
|
|
|
192
192
|
}
|
|
193
193
|
function mr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const s = e.$$.on_mount.map(gt).filter(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
198
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Me(() => {
|
|
196
|
+
const s = e.$$.on_mount.map(gt).filter(Ee);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Me);
|
|
199
199
|
}
|
|
200
200
|
function dr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (lr(r.after_update),
|
|
202
|
+
r.fragment !== null && (lr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
204
|
function pr(e, t) {
|
|
205
|
-
e.$$.dirty[0] === -1 && (
|
|
205
|
+
e.$$.dirty[0] === -1 && (Z.push(e), ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
207
|
function gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
208
|
-
const h =
|
|
209
|
-
|
|
208
|
+
const h = se;
|
|
209
|
+
ie(e);
|
|
210
210
|
const u = e.$$ = {
|
|
211
211
|
fragment: null,
|
|
212
212
|
ctx: [],
|
|
@@ -233,38 +233,38 @@ function gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
233
233
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
234
234
|
const y = d.length ? d[0] : c;
|
|
235
235
|
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && pr(e, f)), c;
|
|
236
|
-
}) : [], u.update(), l = !0,
|
|
236
|
+
}) : [], u.update(), l = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
238
|
const f = nr(t.target);
|
|
239
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
239
|
+
u.fragment && u.fragment.l(f), f.forEach(M);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
242
|
t.intro && cr(e.$$.fragment), mr(e, t.target, t.anchor), D();
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
ie(h);
|
|
245
245
|
}
|
|
246
246
|
let Et;
|
|
247
247
|
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
251
|
-
|
|
251
|
+
C(this, "$$ctor");
|
|
252
252
|
/** Slots */
|
|
253
|
-
|
|
253
|
+
C(this, "$$s");
|
|
254
254
|
/** The Svelte component instance */
|
|
255
|
-
|
|
255
|
+
C(this, "$$c");
|
|
256
256
|
/** Whether or not the custom element is connected */
|
|
257
|
-
|
|
257
|
+
C(this, "$$cn", !1);
|
|
258
258
|
/** Component props data */
|
|
259
|
-
|
|
259
|
+
C(this, "$$d", {});
|
|
260
260
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
261
|
-
|
|
261
|
+
C(this, "$$r", !1);
|
|
262
262
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
263
|
-
|
|
263
|
+
C(this, "$$p_d", {});
|
|
264
264
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
265
|
-
|
|
265
|
+
C(this, "$$l", {});
|
|
266
266
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
267
|
-
|
|
267
|
+
C(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
268
268
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
269
269
|
}
|
|
270
270
|
addEventListener(t, r, n) {
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
288
288
|
let o;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
o =
|
|
291
|
+
o = N("slot"), s !== "default" && _(o, "name", s);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
@@ -298,7 +298,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
298
298
|
$(u, o, l);
|
|
299
299
|
},
|
|
300
300
|
d: function(u) {
|
|
301
|
-
u &&
|
|
301
|
+
u && M(o);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
310
310
|
s in n && (r[s] = [t(s)]);
|
|
311
311
|
for (const s of this.attributes) {
|
|
312
312
|
const o = this.$$g_p(s.name);
|
|
313
|
-
o in this.$$d || (this.$$d[o] =
|
|
313
|
+
o in this.$$d || (this.$$d[o] = me(o, s.value, this.$$p_d, "toProp"));
|
|
314
314
|
}
|
|
315
315
|
for (const s in this.$$p_d)
|
|
316
316
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
327
327
|
this.$$r = !0;
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
330
|
-
const o =
|
|
330
|
+
const o = me(
|
|
331
331
|
s,
|
|
332
332
|
this.$$d[s],
|
|
333
333
|
this.$$p_d,
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
352
|
attributeChangedCallback(t, r, n) {
|
|
353
353
|
var i;
|
|
354
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
355
355
|
}
|
|
356
356
|
disconnectedCallback() {
|
|
357
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
364
364
|
) || t;
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
function
|
|
367
|
+
function me(e, t, r, n) {
|
|
368
368
|
var s;
|
|
369
369
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -412,7 +412,7 @@ function br(e, t, r, n, i, s) {
|
|
|
412
412
|
},
|
|
413
413
|
set(h) {
|
|
414
414
|
var u;
|
|
415
|
-
h =
|
|
415
|
+
h = me(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -434,7 +434,7 @@ class yr {
|
|
|
434
434
|
*
|
|
435
435
|
* @type {any}
|
|
436
436
|
*/
|
|
437
|
-
|
|
437
|
+
C(this, "$$");
|
|
438
438
|
/**
|
|
439
439
|
* ### PRIVATE API
|
|
440
440
|
*
|
|
@@ -442,7 +442,7 @@ class yr {
|
|
|
442
442
|
*
|
|
443
443
|
* @type {any}
|
|
444
444
|
*/
|
|
445
|
-
|
|
445
|
+
C(this, "$$set");
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
@@ -455,7 +455,7 @@ class yr {
|
|
|
455
455
|
* @returns {() => void}
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
458
|
+
if (!Ee(r))
|
|
459
459
|
return I;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
@@ -473,24 +473,24 @@ class yr {
|
|
|
473
473
|
}
|
|
474
474
|
const Er = "4";
|
|
475
475
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
|
|
476
|
-
const
|
|
476
|
+
const W = [];
|
|
477
477
|
function _r(e, t) {
|
|
478
478
|
return {
|
|
479
|
-
subscribe:
|
|
479
|
+
subscribe: _e(e, t).subscribe
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function _e(e, t = I) {
|
|
483
483
|
let r;
|
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
|
485
485
|
function i(a) {
|
|
486
486
|
if (bt(e, a) && (e = a, r)) {
|
|
487
|
-
const h = !
|
|
487
|
+
const h = !W.length;
|
|
488
488
|
for (const u of n)
|
|
489
|
-
u[1](),
|
|
489
|
+
u[1](), W.push(u, e);
|
|
490
490
|
if (h) {
|
|
491
|
-
for (let u = 0; u <
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
for (let u = 0; u < W.length; u += 2)
|
|
492
|
+
W[u][0](W[u + 1]);
|
|
493
|
+
W.length = 0;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -505,7 +505,7 @@ function ye(e, t = I) {
|
|
|
505
505
|
}
|
|
506
506
|
return { set: i, update: s, subscribe: o };
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function ee(e, t, r) {
|
|
509
509
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
510
510
|
if (!i.every(Boolean))
|
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -519,7 +519,7 @@ function K(e, t, r) {
|
|
|
519
519
|
return;
|
|
520
520
|
f();
|
|
521
521
|
const y = t(n ? u[0] : u, o, a);
|
|
522
|
-
s ? o(y) : f =
|
|
522
|
+
s ? o(y) : f = Ee(y) ? y : I;
|
|
523
523
|
}, d = i.map(
|
|
524
524
|
(y, T) => yt(
|
|
525
525
|
y,
|
|
@@ -532,7 +532,7 @@ function K(e, t, r) {
|
|
|
532
532
|
)
|
|
533
533
|
);
|
|
534
534
|
return h = !0, c(), function() {
|
|
535
|
-
|
|
535
|
+
ue(d), f(), h = !1;
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
}
|
|
@@ -556,27 +556,27 @@ function Ar(e) {
|
|
|
556
556
|
function Pr(e) {
|
|
557
557
|
return Array.isArray(e) ? [] : {};
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
559
|
+
function oe(e, t) {
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(Pr(e), e, t) : e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Or(e, t, r) {
|
|
563
563
|
return e.concat(t).map(function(n) {
|
|
564
|
-
return
|
|
564
|
+
return oe(n, r);
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
function wr(e, t) {
|
|
568
568
|
if (!t.customMerge)
|
|
569
|
-
return
|
|
569
|
+
return J;
|
|
570
570
|
var r = t.customMerge(e);
|
|
571
|
-
return typeof r == "function" ? r :
|
|
571
|
+
return typeof r == "function" ? r : J;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Nr(e) {
|
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
576
576
|
}) : [];
|
|
577
577
|
}
|
|
578
578
|
function et(e) {
|
|
579
|
-
return Object.keys(e).concat(
|
|
579
|
+
return Object.keys(e).concat(Nr(e));
|
|
580
580
|
}
|
|
581
581
|
function _t(e, t) {
|
|
582
582
|
try {
|
|
@@ -591,65 +591,51 @@ function Ir(e, t) {
|
|
|
591
591
|
function Lr(e, t, r) {
|
|
592
592
|
var n = {};
|
|
593
593
|
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
594
|
-
n[i] =
|
|
594
|
+
n[i] = oe(e[i], r);
|
|
595
595
|
}), et(t).forEach(function(i) {
|
|
596
|
-
Ir(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = wr(i, r)(e[i], t[i], r) : n[i] =
|
|
596
|
+
Ir(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = wr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
597
597
|
}), n;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
599
|
+
function J(e, t, r) {
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || vr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
602
|
-
return s ? n ? r.arrayMerge(e, t, r) : Lr(e, t, r) :
|
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : Lr(e, t, r) : oe(t, r);
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
J.all = function(t, r) {
|
|
605
605
|
if (!Array.isArray(t))
|
|
606
606
|
throw new Error("first argument should be an array");
|
|
607
607
|
return t.reduce(function(n, i) {
|
|
608
|
-
return
|
|
608
|
+
return J(n, i, r);
|
|
609
609
|
}, {});
|
|
610
610
|
};
|
|
611
|
-
var
|
|
612
|
-
const $r = /* @__PURE__ */ xr(
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
617
|
-
purpose with or without fee is hereby granted.
|
|
618
|
-
|
|
619
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
620
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
621
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
622
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
623
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
624
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
625
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
626
|
-
***************************************************************************** */
|
|
627
|
-
var Me = function(e, t) {
|
|
628
|
-
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
611
|
+
var Cr = J, Mr = Cr;
|
|
612
|
+
const $r = /* @__PURE__ */ xr(Mr);
|
|
613
|
+
var $e = function(e, t) {
|
|
614
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
629
615
|
r.__proto__ = n;
|
|
630
616
|
} || function(r, n) {
|
|
631
617
|
for (var i in n)
|
|
632
618
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
633
|
-
},
|
|
619
|
+
}, $e(e, t);
|
|
634
620
|
};
|
|
635
|
-
function
|
|
621
|
+
function xe(e, t) {
|
|
636
622
|
if (typeof t != "function" && t !== null)
|
|
637
623
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
638
|
-
|
|
624
|
+
$e(e, t);
|
|
639
625
|
function r() {
|
|
640
626
|
this.constructor = e;
|
|
641
627
|
}
|
|
642
628
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
643
629
|
}
|
|
644
|
-
var
|
|
645
|
-
return
|
|
630
|
+
var U = function() {
|
|
631
|
+
return U = Object.assign || function(t) {
|
|
646
632
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
647
633
|
r = arguments[n];
|
|
648
634
|
for (var s in r)
|
|
649
635
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
650
636
|
}
|
|
651
637
|
return t;
|
|
652
|
-
},
|
|
638
|
+
}, U.apply(this, arguments);
|
|
653
639
|
};
|
|
654
640
|
function Rr(e, t) {
|
|
655
641
|
var r = {};
|
|
@@ -660,14 +646,14 @@ function Rr(e, t) {
|
|
|
660
646
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
661
647
|
return r;
|
|
662
648
|
}
|
|
663
|
-
function
|
|
664
|
-
if (arguments.length === 2)
|
|
649
|
+
function Ae(e, t, r) {
|
|
650
|
+
if (r || arguments.length === 2)
|
|
665
651
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
666
652
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
667
|
-
return e.concat(s || t);
|
|
653
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
668
654
|
}
|
|
669
|
-
function
|
|
670
|
-
var r = t && t.cache ? t.cache :
|
|
655
|
+
function Pe(e, t) {
|
|
656
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : jr, i = t && t.strategy ? t.strategy : Fr;
|
|
671
657
|
return i(e, {
|
|
672
658
|
cache: r,
|
|
673
659
|
serializer: n
|
|
@@ -676,95 +662,103 @@ function Se(e, t) {
|
|
|
676
662
|
function Dr(e) {
|
|
677
663
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
678
664
|
}
|
|
679
|
-
function
|
|
665
|
+
function Ur(e, t, r, n) {
|
|
680
666
|
var i = Dr(n) ? n : r(n), s = t.get(i);
|
|
681
667
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
682
668
|
}
|
|
683
|
-
function
|
|
669
|
+
function xt(e, t, r) {
|
|
684
670
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
685
671
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
686
672
|
}
|
|
687
|
-
function
|
|
673
|
+
function vt(e, t, r, n, i) {
|
|
688
674
|
return r.bind(t, e, n, i);
|
|
689
675
|
}
|
|
690
|
-
function Ur(e, t) {
|
|
691
|
-
var r = e.length === 1 ? xt : vt;
|
|
692
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
693
|
-
}
|
|
694
676
|
function Fr(e, t) {
|
|
695
|
-
|
|
677
|
+
var r = e.length === 1 ? Ur : xt;
|
|
678
|
+
return vt(e, this, r, t.cache.create(), t.serializer);
|
|
696
679
|
}
|
|
697
680
|
function Gr(e, t) {
|
|
698
|
-
return
|
|
681
|
+
return vt(e, this, xt, t.cache.create(), t.serializer);
|
|
699
682
|
}
|
|
700
683
|
var jr = function() {
|
|
701
684
|
return JSON.stringify(arguments);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
685
|
+
}, kr = (
|
|
686
|
+
/** @class */
|
|
687
|
+
function() {
|
|
688
|
+
function e() {
|
|
689
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
690
|
+
}
|
|
691
|
+
return e.prototype.get = function(t) {
|
|
692
|
+
return this.cache[t];
|
|
693
|
+
}, e.prototype.set = function(t, r) {
|
|
694
|
+
this.cache[t] = r;
|
|
695
|
+
}, e;
|
|
696
|
+
}()
|
|
697
|
+
), Vr = {
|
|
713
698
|
create: function() {
|
|
714
|
-
return new
|
|
699
|
+
return new kr();
|
|
715
700
|
}
|
|
716
|
-
},
|
|
717
|
-
variadic:
|
|
718
|
-
|
|
719
|
-
|
|
701
|
+
}, Oe = {
|
|
702
|
+
variadic: Gr
|
|
703
|
+
}, ge = function() {
|
|
704
|
+
return ge = Object.assign || function(t) {
|
|
705
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
706
|
+
r = arguments[n];
|
|
707
|
+
for (var s in r)
|
|
708
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
709
|
+
}
|
|
710
|
+
return t;
|
|
711
|
+
}, ge.apply(this, arguments);
|
|
712
|
+
};
|
|
713
|
+
var g;
|
|
720
714
|
(function(e) {
|
|
721
715
|
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";
|
|
722
716
|
})(g || (g = {}));
|
|
723
|
-
var
|
|
717
|
+
var x;
|
|
724
718
|
(function(e) {
|
|
725
719
|
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";
|
|
726
|
-
})(
|
|
727
|
-
var
|
|
720
|
+
})(x || (x = {}));
|
|
721
|
+
var q;
|
|
728
722
|
(function(e) {
|
|
729
723
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
730
|
-
})(
|
|
724
|
+
})(q || (q = {}));
|
|
731
725
|
function tt(e) {
|
|
732
|
-
return e.type ===
|
|
726
|
+
return e.type === x.literal;
|
|
733
727
|
}
|
|
734
|
-
function
|
|
735
|
-
return e.type ===
|
|
728
|
+
function Xr(e) {
|
|
729
|
+
return e.type === x.argument;
|
|
736
730
|
}
|
|
737
731
|
function Ht(e) {
|
|
738
|
-
return e.type ===
|
|
732
|
+
return e.type === x.number;
|
|
739
733
|
}
|
|
740
734
|
function Tt(e) {
|
|
741
|
-
return e.type ===
|
|
735
|
+
return e.type === x.date;
|
|
742
736
|
}
|
|
743
737
|
function Bt(e) {
|
|
744
|
-
return e.type ===
|
|
738
|
+
return e.type === x.time;
|
|
745
739
|
}
|
|
746
740
|
function St(e) {
|
|
747
|
-
return e.type ===
|
|
741
|
+
return e.type === x.select;
|
|
748
742
|
}
|
|
749
743
|
function At(e) {
|
|
750
|
-
return e.type ===
|
|
744
|
+
return e.type === x.plural;
|
|
751
745
|
}
|
|
752
|
-
function
|
|
753
|
-
return e.type ===
|
|
746
|
+
function zr(e) {
|
|
747
|
+
return e.type === x.pound;
|
|
754
748
|
}
|
|
755
749
|
function Pt(e) {
|
|
756
|
-
return e.type ===
|
|
750
|
+
return e.type === x.tag;
|
|
757
751
|
}
|
|
758
|
-
function
|
|
759
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
752
|
+
function Ot(e) {
|
|
753
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
760
754
|
}
|
|
761
|
-
function
|
|
762
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
755
|
+
function Re(e) {
|
|
756
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
763
757
|
}
|
|
764
|
-
var wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
765
|
-
function
|
|
758
|
+
var wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
|
|
759
|
+
function Zr(e) {
|
|
766
760
|
var t = {};
|
|
767
|
-
return e.replace(
|
|
761
|
+
return e.replace(Wr, function(r) {
|
|
768
762
|
var n = r.length;
|
|
769
763
|
switch (r[0]) {
|
|
770
764
|
case "G":
|
|
@@ -853,11 +847,21 @@ function Wr(e) {
|
|
|
853
847
|
return "";
|
|
854
848
|
}), t;
|
|
855
849
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
850
|
+
var v = function() {
|
|
851
|
+
return v = Object.assign || function(t) {
|
|
852
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
853
|
+
r = arguments[n];
|
|
854
|
+
for (var s in r)
|
|
855
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
856
|
+
}
|
|
857
|
+
return t;
|
|
858
|
+
}, v.apply(this, arguments);
|
|
859
|
+
};
|
|
860
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
861
|
+
function Jr(e) {
|
|
858
862
|
if (e.length === 0)
|
|
859
863
|
throw new Error("Number skeleton cannot be empty");
|
|
860
|
-
for (var t = e.split(
|
|
864
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
861
865
|
return c.length > 0;
|
|
862
866
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
863
867
|
var s = i[n], o = s.split("/");
|
|
@@ -872,13 +876,13 @@ function Qr(e) {
|
|
|
872
876
|
}
|
|
873
877
|
return r;
|
|
874
878
|
}
|
|
875
|
-
function
|
|
879
|
+
function qr(e) {
|
|
876
880
|
return e.replace(/^(.*?)-/, "");
|
|
877
881
|
}
|
|
878
|
-
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
882
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, It = /^(0+)$/;
|
|
879
883
|
function nt(e) {
|
|
880
884
|
var t = {};
|
|
881
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
885
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
882
886
|
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)), "";
|
|
883
887
|
}), t;
|
|
884
888
|
}
|
|
@@ -922,7 +926,7 @@ function Lt(e) {
|
|
|
922
926
|
};
|
|
923
927
|
}
|
|
924
928
|
}
|
|
925
|
-
function
|
|
929
|
+
function Kr(e) {
|
|
926
930
|
var t;
|
|
927
931
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
928
932
|
notation: "engineering"
|
|
@@ -940,7 +944,7 @@ function it(e) {
|
|
|
940
944
|
var t = {}, r = Lt(e);
|
|
941
945
|
return r || t;
|
|
942
946
|
}
|
|
943
|
-
function
|
|
947
|
+
function en(e) {
|
|
944
948
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
945
949
|
var i = n[r];
|
|
946
950
|
switch (i.stem) {
|
|
@@ -964,7 +968,7 @@ function Kr(e) {
|
|
|
964
968
|
continue;
|
|
965
969
|
case "measure-unit":
|
|
966
970
|
case "unit":
|
|
967
|
-
t.style = "unit", t.unit =
|
|
971
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
968
972
|
continue;
|
|
969
973
|
case "compact-short":
|
|
970
974
|
case "K":
|
|
@@ -975,13 +979,13 @@ function Kr(e) {
|
|
|
975
979
|
t.notation = "compact", t.compactDisplay = "long";
|
|
976
980
|
continue;
|
|
977
981
|
case "scientific":
|
|
978
|
-
t =
|
|
979
|
-
return
|
|
982
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
983
|
+
return v(v({}, h), it(u));
|
|
980
984
|
}, {}));
|
|
981
985
|
continue;
|
|
982
986
|
case "engineering":
|
|
983
|
-
t =
|
|
984
|
-
return
|
|
987
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
988
|
+
return v(v({}, h), it(u));
|
|
985
989
|
}, {}));
|
|
986
990
|
continue;
|
|
987
991
|
case "notation-simple":
|
|
@@ -1026,7 +1030,7 @@ function Kr(e) {
|
|
|
1026
1030
|
case "integer-width":
|
|
1027
1031
|
if (i.options.length > 1)
|
|
1028
1032
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1029
|
-
i.options[0].replace(
|
|
1033
|
+
i.options[0].replace(Yr, function(h, u, l, f, c, d) {
|
|
1030
1034
|
if (u)
|
|
1031
1035
|
t.minimumIntegerDigits = l.length;
|
|
1032
1036
|
else {
|
|
@@ -1050,21 +1054,21 @@ function Kr(e) {
|
|
|
1050
1054
|
return l === "*" ? 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), "";
|
|
1051
1055
|
});
|
|
1052
1056
|
var s = i.options[0];
|
|
1053
|
-
s === "w" ? t =
|
|
1057
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), nt(s)));
|
|
1054
1058
|
continue;
|
|
1055
1059
|
}
|
|
1056
|
-
if (
|
|
1057
|
-
t =
|
|
1060
|
+
if (Nt.test(i.stem)) {
|
|
1061
|
+
t = v(v({}, t), nt(i.stem));
|
|
1058
1062
|
continue;
|
|
1059
1063
|
}
|
|
1060
1064
|
var o = Lt(i.stem);
|
|
1061
|
-
o && (t =
|
|
1062
|
-
var a =
|
|
1063
|
-
a && (t =
|
|
1065
|
+
o && (t = v(v({}, t), o));
|
|
1066
|
+
var a = Kr(i.stem);
|
|
1067
|
+
a && (t = v(v({}, t), a));
|
|
1064
1068
|
}
|
|
1065
1069
|
return t;
|
|
1066
1070
|
}
|
|
1067
|
-
var
|
|
1071
|
+
var ce = {
|
|
1068
1072
|
"001": [
|
|
1069
1073
|
"H",
|
|
1070
1074
|
"h"
|
|
@@ -2479,13 +2483,13 @@ var fe = {
|
|
|
2479
2483
|
"h"
|
|
2480
2484
|
]
|
|
2481
2485
|
};
|
|
2482
|
-
function
|
|
2486
|
+
function tn(e, t) {
|
|
2483
2487
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2484
2488
|
var i = e.charAt(n);
|
|
2485
2489
|
if (i === "j") {
|
|
2486
2490
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2487
2491
|
s++, n++;
|
|
2488
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2492
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = rn(t);
|
|
2489
2493
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2490
2494
|
r += h;
|
|
2491
2495
|
for (; o-- > 0; )
|
|
@@ -2495,7 +2499,7 @@ function en(e, t) {
|
|
|
2495
2499
|
}
|
|
2496
2500
|
return r;
|
|
2497
2501
|
}
|
|
2498
|
-
function
|
|
2502
|
+
function rn(e) {
|
|
2499
2503
|
var t = e.hourCycle;
|
|
2500
2504
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2501
2505
|
e.hourCycles && // @ts-ignore
|
|
@@ -2514,23 +2518,23 @@ function tn(e) {
|
|
|
2514
2518
|
}
|
|
2515
2519
|
var r = e.language, n;
|
|
2516
2520
|
r !== "root" && (n = e.maximize().region);
|
|
2517
|
-
var i =
|
|
2521
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2518
2522
|
return i[0];
|
|
2519
2523
|
}
|
|
2520
|
-
var
|
|
2524
|
+
var we, nn = new RegExp("^".concat(wt.source, "*")), sn = new RegExp("".concat(wt.source, "*$"));
|
|
2521
2525
|
function b(e, t) {
|
|
2522
2526
|
return { start: e, end: t };
|
|
2523
2527
|
}
|
|
2524
|
-
var
|
|
2528
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, un = !!Object.fromEntries, hn = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2525
2529
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2526
|
-
},
|
|
2530
|
+
}, De = !0;
|
|
2527
2531
|
try {
|
|
2528
|
-
var
|
|
2529
|
-
|
|
2532
|
+
var dn = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2533
|
+
De = ((we = dn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2530
2534
|
} catch (e) {
|
|
2531
|
-
|
|
2535
|
+
De = !1;
|
|
2532
2536
|
}
|
|
2533
|
-
var st =
|
|
2537
|
+
var st = on ? (
|
|
2534
2538
|
// Native
|
|
2535
2539
|
function(t, r, n) {
|
|
2536
2540
|
return t.startsWith(r, n);
|
|
@@ -2540,7 +2544,7 @@ var st = sn ? (
|
|
|
2540
2544
|
function(t, r, n) {
|
|
2541
2545
|
return t.slice(n, n + r.length) === r;
|
|
2542
2546
|
}
|
|
2543
|
-
),
|
|
2547
|
+
), Ue = an ? String.fromCodePoint : (
|
|
2544
2548
|
// IE11
|
|
2545
2549
|
function() {
|
|
2546
2550
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2554,7 +2558,7 @@ var st = sn ? (
|
|
|
2554
2558
|
}
|
|
2555
2559
|
), ot = (
|
|
2556
2560
|
// native
|
|
2557
|
-
|
|
2561
|
+
un ? Object.fromEntries : (
|
|
2558
2562
|
// Ponyfill
|
|
2559
2563
|
function(t) {
|
|
2560
2564
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2564,7 +2568,7 @@ var st = sn ? (
|
|
|
2564
2568
|
return r;
|
|
2565
2569
|
}
|
|
2566
2570
|
)
|
|
2567
|
-
),
|
|
2571
|
+
), Ct = hn ? (
|
|
2568
2572
|
// Native
|
|
2569
2573
|
function(t, r) {
|
|
2570
2574
|
return t.codePointAt(r);
|
|
@@ -2578,7 +2582,7 @@ var st = sn ? (
|
|
|
2578
2582
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2579
2583
|
}
|
|
2580
2584
|
}
|
|
2581
|
-
),
|
|
2585
|
+
), pn = ln ? (
|
|
2582
2586
|
// Native
|
|
2583
2587
|
function(t) {
|
|
2584
2588
|
return t.trimStart();
|
|
@@ -2586,9 +2590,9 @@ var st = sn ? (
|
|
|
2586
2590
|
) : (
|
|
2587
2591
|
// Ponyfill
|
|
2588
2592
|
function(t) {
|
|
2589
|
-
return t.replace(
|
|
2593
|
+
return t.replace(nn, "");
|
|
2590
2594
|
}
|
|
2591
|
-
),
|
|
2595
|
+
), gn = fn ? (
|
|
2592
2596
|
// Native
|
|
2593
2597
|
function(t) {
|
|
2594
2598
|
return t.trimEnd();
|
|
@@ -2596,32 +2600,32 @@ var st = sn ? (
|
|
|
2596
2600
|
) : (
|
|
2597
2601
|
// Ponyfill
|
|
2598
2602
|
function(t) {
|
|
2599
|
-
return t.replace(
|
|
2603
|
+
return t.replace(sn, "");
|
|
2600
2604
|
}
|
|
2601
2605
|
);
|
|
2602
|
-
function
|
|
2606
|
+
function Mt(e, t) {
|
|
2603
2607
|
return new RegExp(e, t);
|
|
2604
2608
|
}
|
|
2605
|
-
var
|
|
2606
|
-
if (
|
|
2607
|
-
var at =
|
|
2608
|
-
|
|
2609
|
+
var Fe;
|
|
2610
|
+
if (De) {
|
|
2611
|
+
var at = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2612
|
+
Fe = function(t, r) {
|
|
2609
2613
|
var n;
|
|
2610
2614
|
at.lastIndex = r;
|
|
2611
2615
|
var i = at.exec(t);
|
|
2612
2616
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2613
2617
|
};
|
|
2614
2618
|
} else
|
|
2615
|
-
|
|
2619
|
+
Fe = function(t, r) {
|
|
2616
2620
|
for (var n = []; ; ) {
|
|
2617
|
-
var i =
|
|
2618
|
-
if (i === void 0 || $t(i) ||
|
|
2621
|
+
var i = Ct(t, r);
|
|
2622
|
+
if (i === void 0 || $t(i) || _n(i))
|
|
2619
2623
|
break;
|
|
2620
2624
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2621
2625
|
}
|
|
2622
|
-
return
|
|
2626
|
+
return Ue.apply(void 0, n);
|
|
2623
2627
|
};
|
|
2624
|
-
var
|
|
2628
|
+
var bn = (
|
|
2625
2629
|
/** @class */
|
|
2626
2630
|
function() {
|
|
2627
2631
|
function e(t, r) {
|
|
@@ -2645,14 +2649,14 @@ var gn = (
|
|
|
2645
2649
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2646
2650
|
var a = this.clonePosition();
|
|
2647
2651
|
this.bump(), i.push({
|
|
2648
|
-
type:
|
|
2652
|
+
type: x.pound,
|
|
2649
2653
|
location: b(a, this.clonePosition())
|
|
2650
2654
|
});
|
|
2651
2655
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2652
2656
|
if (n)
|
|
2653
2657
|
break;
|
|
2654
2658
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2655
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2659
|
+
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2656
2660
|
var o = this.parseTag(t, r);
|
|
2657
2661
|
if (o.err)
|
|
2658
2662
|
return o;
|
|
@@ -2673,7 +2677,7 @@ var gn = (
|
|
|
2673
2677
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2674
2678
|
return {
|
|
2675
2679
|
val: {
|
|
2676
|
-
type:
|
|
2680
|
+
type: x.literal,
|
|
2677
2681
|
value: "<".concat(i, "/>"),
|
|
2678
2682
|
location: b(n, this.clonePosition())
|
|
2679
2683
|
},
|
|
@@ -2685,12 +2689,12 @@ var gn = (
|
|
|
2685
2689
|
return s;
|
|
2686
2690
|
var o = s.val, a = this.clonePosition();
|
|
2687
2691
|
if (this.bumpIf("</")) {
|
|
2688
|
-
if (this.isEOF() || !
|
|
2692
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
2689
2693
|
return this.error(g.INVALID_TAG, b(a, this.clonePosition()));
|
|
2690
2694
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2691
2695
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2692
2696
|
val: {
|
|
2693
|
-
type:
|
|
2697
|
+
type: x.tag,
|
|
2694
2698
|
value: i,
|
|
2695
2699
|
children: o,
|
|
2696
2700
|
location: b(n, this.clonePosition())
|
|
@@ -2703,7 +2707,7 @@ var gn = (
|
|
|
2703
2707
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2704
2708
|
}, e.prototype.parseTagName = function() {
|
|
2705
2709
|
var t = this.offset();
|
|
2706
|
-
for (this.bump(); !this.isEOF() &&
|
|
2710
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2707
2711
|
this.bump();
|
|
2708
2712
|
return this.message.slice(t, this.offset());
|
|
2709
2713
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2727,12 +2731,12 @@ var gn = (
|
|
|
2727
2731
|
}
|
|
2728
2732
|
var h = b(n, this.clonePosition());
|
|
2729
2733
|
return {
|
|
2730
|
-
val: { type:
|
|
2734
|
+
val: { type: x.literal, value: i, location: h },
|
|
2731
2735
|
err: null
|
|
2732
2736
|
};
|
|
2733
2737
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2734
2738
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2735
|
-
!
|
|
2739
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2736
2740
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2737
2741
|
if (this.isEOF() || this.char() !== 39)
|
|
2738
2742
|
return null;
|
|
@@ -2766,12 +2770,12 @@ var gn = (
|
|
|
2766
2770
|
r.push(n);
|
|
2767
2771
|
this.bump();
|
|
2768
2772
|
}
|
|
2769
|
-
return
|
|
2773
|
+
return Ue.apply(void 0, r);
|
|
2770
2774
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2771
2775
|
if (this.isEOF())
|
|
2772
2776
|
return null;
|
|
2773
2777
|
var n = this.char();
|
|
2774
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2778
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2775
2779
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2776
2780
|
var n = this.clonePosition();
|
|
2777
2781
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2787,7 +2791,7 @@ var gn = (
|
|
|
2787
2791
|
case 125:
|
|
2788
2792
|
return this.bump(), {
|
|
2789
2793
|
val: {
|
|
2790
|
-
type:
|
|
2794
|
+
type: x.argument,
|
|
2791
2795
|
// value does not include the opening and closing braces.
|
|
2792
2796
|
value: i,
|
|
2793
2797
|
location: b(n, this.clonePosition())
|
|
@@ -2800,7 +2804,7 @@ var gn = (
|
|
|
2800
2804
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2801
2805
|
}
|
|
2802
2806
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2803
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2807
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2804
2808
|
this.bumpTo(i);
|
|
2805
2809
|
var s = this.clonePosition(), o = b(t, s);
|
|
2806
2810
|
return { value: n, location: o };
|
|
@@ -2819,7 +2823,7 @@ var gn = (
|
|
|
2819
2823
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2820
2824
|
if (f.err)
|
|
2821
2825
|
return f;
|
|
2822
|
-
var c =
|
|
2826
|
+
var c = gn(f.val);
|
|
2823
2827
|
if (c.length === 0)
|
|
2824
2828
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2825
2829
|
var d = b(l, this.clonePosition());
|
|
@@ -2830,24 +2834,24 @@ var gn = (
|
|
|
2830
2834
|
return y;
|
|
2831
2835
|
var T = b(i, this.clonePosition());
|
|
2832
2836
|
if (u && st(u == null ? void 0 : u.style, "::", 0)) {
|
|
2833
|
-
var A =
|
|
2837
|
+
var A = pn(u.style.slice(2));
|
|
2834
2838
|
if (a === "number") {
|
|
2835
2839
|
var f = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
2836
2840
|
return f.err ? f : {
|
|
2837
|
-
val: { type:
|
|
2841
|
+
val: { type: x.number, value: n, location: T, style: f.val },
|
|
2838
2842
|
err: null
|
|
2839
2843
|
};
|
|
2840
2844
|
} else {
|
|
2841
2845
|
if (A.length === 0)
|
|
2842
2846
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2843
2847
|
var S = A;
|
|
2844
|
-
this.locale && (S =
|
|
2848
|
+
this.locale && (S = tn(A, this.locale));
|
|
2845
2849
|
var c = {
|
|
2846
|
-
type:
|
|
2850
|
+
type: q.dateTime,
|
|
2847
2851
|
pattern: S,
|
|
2848
2852
|
location: u.styleLocation,
|
|
2849
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2850
|
-
}, L = a === "date" ?
|
|
2853
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(S) : {}
|
|
2854
|
+
}, L = a === "date" ? x.date : x.time;
|
|
2851
2855
|
return {
|
|
2852
2856
|
val: { type: L, value: n, location: T, style: c },
|
|
2853
2857
|
err: null
|
|
@@ -2856,7 +2860,7 @@ var gn = (
|
|
|
2856
2860
|
}
|
|
2857
2861
|
return {
|
|
2858
2862
|
val: {
|
|
2859
|
-
type: a === "number" ?
|
|
2863
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2860
2864
|
value: n,
|
|
2861
2865
|
location: T,
|
|
2862
2866
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2869,41 +2873,41 @@ var gn = (
|
|
|
2869
2873
|
case "select": {
|
|
2870
2874
|
var H = this.clonePosition();
|
|
2871
2875
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2872
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2876
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, ge({}, H)));
|
|
2873
2877
|
this.bumpSpace();
|
|
2874
|
-
var
|
|
2875
|
-
if (a !== "select" &&
|
|
2878
|
+
var E = this.parseIdentifierIfPossible(), p = 0;
|
|
2879
|
+
if (a !== "select" && E.value === "offset") {
|
|
2876
2880
|
if (!this.bumpIf(":"))
|
|
2877
2881
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2878
2882
|
this.bumpSpace();
|
|
2879
2883
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2880
2884
|
if (f.err)
|
|
2881
2885
|
return f;
|
|
2882
|
-
this.bumpSpace(),
|
|
2886
|
+
this.bumpSpace(), E = this.parseIdentifierIfPossible(), p = f.val;
|
|
2883
2887
|
}
|
|
2884
|
-
var B = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
2888
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, r, E);
|
|
2885
2889
|
if (B.err)
|
|
2886
2890
|
return B;
|
|
2887
2891
|
var y = this.tryParseArgumentClose(i);
|
|
2888
2892
|
if (y.err)
|
|
2889
2893
|
return y;
|
|
2890
|
-
var
|
|
2894
|
+
var fe = b(i, this.clonePosition());
|
|
2891
2895
|
return a === "select" ? {
|
|
2892
2896
|
val: {
|
|
2893
|
-
type:
|
|
2897
|
+
type: x.select,
|
|
2894
2898
|
value: n,
|
|
2895
2899
|
options: ot(B.val),
|
|
2896
|
-
location:
|
|
2900
|
+
location: fe
|
|
2897
2901
|
},
|
|
2898
2902
|
err: null
|
|
2899
2903
|
} : {
|
|
2900
2904
|
val: {
|
|
2901
|
-
type:
|
|
2905
|
+
type: x.plural,
|
|
2902
2906
|
value: n,
|
|
2903
2907
|
options: ot(B.val),
|
|
2904
2908
|
offset: p,
|
|
2905
2909
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2906
|
-
location:
|
|
2910
|
+
location: fe
|
|
2907
2911
|
},
|
|
2908
2912
|
err: null
|
|
2909
2913
|
};
|
|
@@ -2951,16 +2955,16 @@ var gn = (
|
|
|
2951
2955
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2952
2956
|
var n = [];
|
|
2953
2957
|
try {
|
|
2954
|
-
n =
|
|
2958
|
+
n = Jr(t);
|
|
2955
2959
|
} catch (i) {
|
|
2956
2960
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2957
2961
|
}
|
|
2958
2962
|
return {
|
|
2959
2963
|
val: {
|
|
2960
|
-
type:
|
|
2964
|
+
type: q.number,
|
|
2961
2965
|
tokens: n,
|
|
2962
2966
|
location: r,
|
|
2963
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2967
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2964
2968
|
},
|
|
2965
2969
|
err: null
|
|
2966
2970
|
};
|
|
@@ -3008,7 +3012,7 @@ var gn = (
|
|
|
3008
3012
|
break;
|
|
3009
3013
|
}
|
|
3010
3014
|
var h = b(i, this.clonePosition());
|
|
3011
|
-
return s ? (o *= n,
|
|
3015
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3012
3016
|
}, e.prototype.offset = function() {
|
|
3013
3017
|
return this.position.offset;
|
|
3014
3018
|
}, e.prototype.isEOF = function() {
|
|
@@ -3023,7 +3027,7 @@ var gn = (
|
|
|
3023
3027
|
var t = this.position.offset;
|
|
3024
3028
|
if (t >= this.message.length)
|
|
3025
3029
|
throw Error("out of bound");
|
|
3026
|
-
var r =
|
|
3030
|
+
var r = Ct(this.message, t);
|
|
3027
3031
|
if (r === void 0)
|
|
3028
3032
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3029
3033
|
return r;
|
|
@@ -3074,47 +3078,47 @@ var gn = (
|
|
|
3074
3078
|
}, e;
|
|
3075
3079
|
}()
|
|
3076
3080
|
);
|
|
3077
|
-
function
|
|
3081
|
+
function Ge(e) {
|
|
3078
3082
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3079
3083
|
}
|
|
3080
|
-
function bn(e) {
|
|
3081
|
-
return Ue(e) || e === 47;
|
|
3082
|
-
}
|
|
3083
3084
|
function yn(e) {
|
|
3085
|
+
return Ge(e) || e === 47;
|
|
3086
|
+
}
|
|
3087
|
+
function En(e) {
|
|
3084
3088
|
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;
|
|
3085
3089
|
}
|
|
3086
3090
|
function $t(e) {
|
|
3087
3091
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3088
3092
|
}
|
|
3089
|
-
function
|
|
3093
|
+
function _n(e) {
|
|
3090
3094
|
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;
|
|
3091
3095
|
}
|
|
3092
|
-
function
|
|
3096
|
+
function je(e) {
|
|
3093
3097
|
e.forEach(function(t) {
|
|
3094
3098
|
if (delete t.location, St(t) || At(t))
|
|
3095
3099
|
for (var r in t.options)
|
|
3096
|
-
delete t.options[r].location,
|
|
3100
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3097
3101
|
else
|
|
3098
|
-
Ht(t) &&
|
|
3102
|
+
Ht(t) && Ot(t.style) || (Tt(t) || Bt(t)) && Re(t.style) ? delete t.style.location : Pt(t) && je(t.children);
|
|
3099
3103
|
});
|
|
3100
3104
|
}
|
|
3101
|
-
function
|
|
3102
|
-
t === void 0 && (t = {}), t =
|
|
3103
|
-
var r = new
|
|
3105
|
+
function xn(e, t) {
|
|
3106
|
+
t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3107
|
+
var r = new bn(e, t).parse();
|
|
3104
3108
|
if (r.err) {
|
|
3105
3109
|
var n = SyntaxError(g[r.err.kind]);
|
|
3106
3110
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3107
3111
|
}
|
|
3108
|
-
return t != null && t.captureLocation ||
|
|
3112
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3109
3113
|
}
|
|
3110
|
-
var
|
|
3114
|
+
var Y;
|
|
3111
3115
|
(function(e) {
|
|
3112
3116
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3113
|
-
})(
|
|
3114
|
-
var
|
|
3117
|
+
})(Y || (Y = {}));
|
|
3118
|
+
var ve = (
|
|
3115
3119
|
/** @class */
|
|
3116
3120
|
function(e) {
|
|
3117
|
-
|
|
3121
|
+
xe(t, e);
|
|
3118
3122
|
function t(r, n, i) {
|
|
3119
3123
|
var s = e.call(this, r) || this;
|
|
3120
3124
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3126,44 +3130,44 @@ var _e = (
|
|
|
3126
3130
|
), ut = (
|
|
3127
3131
|
/** @class */
|
|
3128
3132
|
function(e) {
|
|
3129
|
-
|
|
3133
|
+
xe(t, e);
|
|
3130
3134
|
function t(r, n, i, s) {
|
|
3131
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3135
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3132
3136
|
}
|
|
3133
3137
|
return t;
|
|
3134
|
-
}(
|
|
3135
|
-
),
|
|
3138
|
+
}(ve)
|
|
3139
|
+
), vn = (
|
|
3136
3140
|
/** @class */
|
|
3137
3141
|
function(e) {
|
|
3138
|
-
|
|
3142
|
+
xe(t, e);
|
|
3139
3143
|
function t(r, n, i) {
|
|
3140
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3144
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3141
3145
|
}
|
|
3142
3146
|
return t;
|
|
3143
|
-
}(
|
|
3144
|
-
),
|
|
3147
|
+
}(ve)
|
|
3148
|
+
), Hn = (
|
|
3145
3149
|
/** @class */
|
|
3146
3150
|
function(e) {
|
|
3147
|
-
|
|
3151
|
+
xe(t, e);
|
|
3148
3152
|
function t(r, n) {
|
|
3149
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3153
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3150
3154
|
}
|
|
3151
3155
|
return t;
|
|
3152
|
-
}(
|
|
3156
|
+
}(ve)
|
|
3153
3157
|
), P;
|
|
3154
3158
|
(function(e) {
|
|
3155
3159
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3156
3160
|
})(P || (P = {}));
|
|
3157
|
-
function
|
|
3161
|
+
function Tn(e) {
|
|
3158
3162
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3159
3163
|
var n = t[t.length - 1];
|
|
3160
3164
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3161
3165
|
}, []);
|
|
3162
3166
|
}
|
|
3163
|
-
function
|
|
3167
|
+
function Bn(e) {
|
|
3164
3168
|
return typeof e == "function";
|
|
3165
3169
|
}
|
|
3166
|
-
function
|
|
3170
|
+
function de(e, t, r, n, i, s, o) {
|
|
3167
3171
|
if (e.length === 1 && tt(e[0]))
|
|
3168
3172
|
return [
|
|
3169
3173
|
{
|
|
@@ -3180,7 +3184,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3180
3184
|
});
|
|
3181
3185
|
continue;
|
|
3182
3186
|
}
|
|
3183
|
-
if (
|
|
3187
|
+
if (zr(l)) {
|
|
3184
3188
|
typeof s == "number" && a.push({
|
|
3185
3189
|
type: P.literal,
|
|
3186
3190
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3189,9 +3193,9 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3189
3193
|
}
|
|
3190
3194
|
var f = l.value;
|
|
3191
3195
|
if (!(i && f in i))
|
|
3192
|
-
throw new
|
|
3196
|
+
throw new Hn(f, o);
|
|
3193
3197
|
var c = i[f];
|
|
3194
|
-
if (
|
|
3198
|
+
if (Xr(l)) {
|
|
3195
3199
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3196
3200
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3197
3201
|
value: c
|
|
@@ -3199,7 +3203,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3199
3203
|
continue;
|
|
3200
3204
|
}
|
|
3201
3205
|
if (Tt(l)) {
|
|
3202
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3206
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3203
3207
|
a.push({
|
|
3204
3208
|
type: P.literal,
|
|
3205
3209
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
@@ -3207,7 +3211,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3207
3211
|
continue;
|
|
3208
3212
|
}
|
|
3209
3213
|
if (Bt(l)) {
|
|
3210
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3214
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3211
3215
|
a.push({
|
|
3212
3216
|
type: P.literal,
|
|
3213
3217
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
@@ -3215,7 +3219,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3215
3219
|
continue;
|
|
3216
3220
|
}
|
|
3217
3221
|
if (Ht(l)) {
|
|
3218
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3222
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Ot(l.style) ? l.style.parsedOptions : void 0;
|
|
3219
3223
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3220
3224
|
type: P.literal,
|
|
3221
3225
|
value: r.getNumberFormat(t, d).format(c)
|
|
@@ -3224,9 +3228,9 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3224
3228
|
}
|
|
3225
3229
|
if (Pt(l)) {
|
|
3226
3230
|
var y = l.children, T = l.value, A = i[T];
|
|
3227
|
-
if (!
|
|
3228
|
-
throw new
|
|
3229
|
-
var S =
|
|
3231
|
+
if (!Bn(A))
|
|
3232
|
+
throw new vn(T, "function", o);
|
|
3233
|
+
var S = de(y, t, r, n, i, s), L = A(S.map(function(p) {
|
|
3230
3234
|
return p.value;
|
|
3231
3235
|
}));
|
|
3232
3236
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(p) {
|
|
@@ -3240,36 +3244,36 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3240
3244
|
var H = l.options[c] || l.options.other;
|
|
3241
3245
|
if (!H)
|
|
3242
3246
|
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3243
|
-
a.push.apply(a,
|
|
3247
|
+
a.push.apply(a, de(H.value, t, r, n, i));
|
|
3244
3248
|
continue;
|
|
3245
3249
|
}
|
|
3246
3250
|
if (At(l)) {
|
|
3247
3251
|
var H = l.options["=".concat(c)];
|
|
3248
3252
|
if (!H) {
|
|
3249
3253
|
if (!Intl.PluralRules)
|
|
3250
|
-
throw new
|
|
3254
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3251
3255
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3252
|
-
`,
|
|
3253
|
-
var
|
|
3254
|
-
H = l.options[
|
|
3256
|
+
`, Y.MISSING_INTL_API, o);
|
|
3257
|
+
var E = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3258
|
+
H = l.options[E] || l.options.other;
|
|
3255
3259
|
}
|
|
3256
3260
|
if (!H)
|
|
3257
3261
|
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3258
|
-
a.push.apply(a,
|
|
3262
|
+
a.push.apply(a, de(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3259
3263
|
continue;
|
|
3260
3264
|
}
|
|
3261
3265
|
}
|
|
3262
|
-
return
|
|
3266
|
+
return Tn(a);
|
|
3263
3267
|
}
|
|
3264
|
-
function
|
|
3265
|
-
return t ?
|
|
3266
|
-
return r[n] =
|
|
3268
|
+
function Sn(e, t) {
|
|
3269
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3270
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3267
3271
|
}, {})) : e;
|
|
3268
3272
|
}
|
|
3269
|
-
function
|
|
3273
|
+
function An(e, t) {
|
|
3270
3274
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3271
|
-
return r[n] =
|
|
3272
|
-
},
|
|
3275
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3276
|
+
}, U({}, e)) : e;
|
|
3273
3277
|
}
|
|
3274
3278
|
function Ne(e) {
|
|
3275
3279
|
return {
|
|
@@ -3285,39 +3289,39 @@ function Ne(e) {
|
|
|
3285
3289
|
}
|
|
3286
3290
|
};
|
|
3287
3291
|
}
|
|
3288
|
-
function
|
|
3292
|
+
function Pn(e) {
|
|
3289
3293
|
return e === void 0 && (e = {
|
|
3290
3294
|
number: {},
|
|
3291
3295
|
dateTime: {},
|
|
3292
3296
|
pluralRules: {}
|
|
3293
3297
|
}), {
|
|
3294
|
-
getNumberFormat:
|
|
3298
|
+
getNumberFormat: Pe(function() {
|
|
3295
3299
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3296
3300
|
r[n] = arguments[n];
|
|
3297
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3301
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3298
3302
|
}, {
|
|
3299
3303
|
cache: Ne(e.number),
|
|
3300
|
-
strategy:
|
|
3304
|
+
strategy: Oe.variadic
|
|
3301
3305
|
}),
|
|
3302
|
-
getDateTimeFormat:
|
|
3306
|
+
getDateTimeFormat: Pe(function() {
|
|
3303
3307
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3304
3308
|
r[n] = arguments[n];
|
|
3305
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3309
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3306
3310
|
}, {
|
|
3307
3311
|
cache: Ne(e.dateTime),
|
|
3308
|
-
strategy:
|
|
3312
|
+
strategy: Oe.variadic
|
|
3309
3313
|
}),
|
|
3310
|
-
getPluralRules:
|
|
3314
|
+
getPluralRules: Pe(function() {
|
|
3311
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3312
3316
|
r[n] = arguments[n];
|
|
3313
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3317
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3314
3318
|
}, {
|
|
3315
3319
|
cache: Ne(e.pluralRules),
|
|
3316
|
-
strategy:
|
|
3320
|
+
strategy: Oe.variadic
|
|
3317
3321
|
})
|
|
3318
3322
|
};
|
|
3319
3323
|
}
|
|
3320
|
-
var
|
|
3324
|
+
var On = (
|
|
3321
3325
|
/** @class */
|
|
3322
3326
|
function() {
|
|
3323
3327
|
function e(t, r, n, i) {
|
|
@@ -3336,7 +3340,7 @@ var Pn = (
|
|
|
3336
3340
|
}, []);
|
|
3337
3341
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3338
3342
|
}, this.formatToParts = function(h) {
|
|
3339
|
-
return
|
|
3343
|
+
return de(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3340
3344
|
}, this.resolvedOptions = function() {
|
|
3341
3345
|
var h;
|
|
3342
3346
|
return {
|
|
@@ -3350,12 +3354,12 @@ var Pn = (
|
|
|
3350
3354
|
var o = i || {};
|
|
3351
3355
|
o.formatters;
|
|
3352
3356
|
var a = Rr(o, ["formatters"]);
|
|
3353
|
-
this.ast = e.__parse(t,
|
|
3357
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3354
3358
|
} else
|
|
3355
3359
|
this.ast = t;
|
|
3356
3360
|
if (!Array.isArray(this.ast))
|
|
3357
3361
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3358
|
-
this.formats =
|
|
3362
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || Pn(this.formatterCache);
|
|
3359
3363
|
}
|
|
3360
3364
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3361
3365
|
get: function() {
|
|
@@ -3368,7 +3372,7 @@ var Pn = (
|
|
|
3368
3372
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3369
3373
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3370
3374
|
}
|
|
3371
|
-
}, e.__parse =
|
|
3375
|
+
}, e.__parse = xn, e.formats = {
|
|
3372
3376
|
number: {
|
|
3373
3377
|
integer: {
|
|
3374
3378
|
maximumFractionDigits: 0
|
|
@@ -3429,7 +3433,7 @@ var Pn = (
|
|
|
3429
3433
|
}, e;
|
|
3430
3434
|
}()
|
|
3431
3435
|
);
|
|
3432
|
-
function
|
|
3436
|
+
function wn(e, t) {
|
|
3433
3437
|
if (t == null)
|
|
3434
3438
|
return;
|
|
3435
3439
|
if (t in e)
|
|
@@ -3450,36 +3454,36 @@ function Nn(e, t) {
|
|
|
3450
3454
|
n = void 0;
|
|
3451
3455
|
return n;
|
|
3452
3456
|
}
|
|
3453
|
-
const
|
|
3457
|
+
const G = {}, Nn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Rt = (e, t) => {
|
|
3454
3458
|
if (t == null)
|
|
3455
3459
|
return;
|
|
3456
|
-
if (t in
|
|
3457
|
-
return
|
|
3458
|
-
const r =
|
|
3460
|
+
if (t in G && e in G[t])
|
|
3461
|
+
return G[t][e];
|
|
3462
|
+
const r = He(t);
|
|
3459
3463
|
for (let n = 0; n < r.length; n++) {
|
|
3460
|
-
const i = r[n], s =
|
|
3464
|
+
const i = r[n], s = Ln(i, e);
|
|
3461
3465
|
if (s)
|
|
3462
|
-
return
|
|
3466
|
+
return Nn(e, t, s);
|
|
3463
3467
|
}
|
|
3464
3468
|
};
|
|
3465
3469
|
let Xe;
|
|
3466
|
-
const
|
|
3467
|
-
function
|
|
3470
|
+
const he = _e({});
|
|
3471
|
+
function In(e) {
|
|
3468
3472
|
return Xe[e] || null;
|
|
3469
3473
|
}
|
|
3470
3474
|
function Dt(e) {
|
|
3471
3475
|
return e in Xe;
|
|
3472
3476
|
}
|
|
3473
|
-
function
|
|
3477
|
+
function Ln(e, t) {
|
|
3474
3478
|
if (!Dt(e))
|
|
3475
3479
|
return null;
|
|
3476
|
-
const r =
|
|
3477
|
-
return
|
|
3480
|
+
const r = In(e);
|
|
3481
|
+
return wn(r, t);
|
|
3478
3482
|
}
|
|
3479
|
-
function
|
|
3483
|
+
function Cn(e) {
|
|
3480
3484
|
if (e == null)
|
|
3481
3485
|
return;
|
|
3482
|
-
const t =
|
|
3486
|
+
const t = He(e);
|
|
3483
3487
|
for (let r = 0; r < t.length; r++) {
|
|
3484
3488
|
const n = t[r];
|
|
3485
3489
|
if (Dt(n))
|
|
@@ -3487,55 +3491,55 @@ function Ln(e) {
|
|
|
3487
3491
|
}
|
|
3488
3492
|
}
|
|
3489
3493
|
function Ut(e, ...t) {
|
|
3490
|
-
delete
|
|
3494
|
+
delete G[e], he.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
|
|
3491
3495
|
}
|
|
3492
|
-
|
|
3493
|
-
[
|
|
3496
|
+
ee(
|
|
3497
|
+
[he],
|
|
3494
3498
|
([e]) => Object.keys(e)
|
|
3495
3499
|
);
|
|
3496
|
-
|
|
3497
|
-
const
|
|
3500
|
+
he.subscribe((e) => Xe = e);
|
|
3501
|
+
const pe = {};
|
|
3498
3502
|
function Mn(e, t) {
|
|
3499
|
-
|
|
3503
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3500
3504
|
}
|
|
3501
3505
|
function Ft(e) {
|
|
3502
|
-
return
|
|
3506
|
+
return pe[e];
|
|
3503
3507
|
}
|
|
3504
|
-
function
|
|
3505
|
-
return
|
|
3508
|
+
function $n(e) {
|
|
3509
|
+
return He(e).map((t) => {
|
|
3506
3510
|
const r = Ft(t);
|
|
3507
3511
|
return [t, r ? [...r] : []];
|
|
3508
3512
|
}).filter(([, t]) => t.length > 0);
|
|
3509
3513
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return e == null ? !1 :
|
|
3514
|
+
function ke(e) {
|
|
3515
|
+
return e == null ? !1 : He(e).some(
|
|
3512
3516
|
(t) => {
|
|
3513
3517
|
var r;
|
|
3514
3518
|
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3515
3519
|
}
|
|
3516
3520
|
);
|
|
3517
3521
|
}
|
|
3518
|
-
function
|
|
3522
|
+
function Rn(e, t) {
|
|
3519
3523
|
return Promise.all(
|
|
3520
3524
|
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3521
3525
|
).then((n) => Ut(e, ...n));
|
|
3522
3526
|
}
|
|
3523
|
-
const
|
|
3527
|
+
const re = {};
|
|
3524
3528
|
function Gt(e) {
|
|
3525
|
-
if (!
|
|
3526
|
-
return e in
|
|
3527
|
-
const t =
|
|
3528
|
-
return
|
|
3529
|
+
if (!ke(e))
|
|
3530
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3531
|
+
const t = $n(e);
|
|
3532
|
+
return re[e] = Promise.all(
|
|
3529
3533
|
t.map(
|
|
3530
|
-
([r, n]) =>
|
|
3534
|
+
([r, n]) => Rn(r, n)
|
|
3531
3535
|
)
|
|
3532
3536
|
).then(() => {
|
|
3533
|
-
if (
|
|
3537
|
+
if (ke(e))
|
|
3534
3538
|
return Gt(e);
|
|
3535
|
-
delete
|
|
3536
|
-
}),
|
|
3539
|
+
delete re[e];
|
|
3540
|
+
}), re[e];
|
|
3537
3541
|
}
|
|
3538
|
-
const
|
|
3542
|
+
const Dn = {
|
|
3539
3543
|
number: {
|
|
3540
3544
|
scientific: { notation: "scientific" },
|
|
3541
3545
|
engineering: { notation: "engineering" },
|
|
@@ -3564,141 +3568,141 @@ const Rn = {
|
|
|
3564
3568
|
timeZoneName: "short"
|
|
3565
3569
|
}
|
|
3566
3570
|
}
|
|
3567
|
-
},
|
|
3571
|
+
}, Un = {
|
|
3568
3572
|
fallbackLocale: null,
|
|
3569
3573
|
loadingDelay: 200,
|
|
3570
|
-
formats:
|
|
3574
|
+
formats: Dn,
|
|
3571
3575
|
warnOnMissingMessages: !0,
|
|
3572
3576
|
handleMissingMessage: void 0,
|
|
3573
3577
|
ignoreTag: !0
|
|
3574
|
-
},
|
|
3575
|
-
function
|
|
3576
|
-
return
|
|
3578
|
+
}, Fn = Un;
|
|
3579
|
+
function K() {
|
|
3580
|
+
return Fn;
|
|
3577
3581
|
}
|
|
3578
|
-
const
|
|
3579
|
-
var
|
|
3582
|
+
const Ie = _e(!1);
|
|
3583
|
+
var Gn = Object.defineProperty, jn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
|
|
3580
3584
|
for (var r in t || (t = {}))
|
|
3581
|
-
|
|
3585
|
+
Vn.call(t, r) && lt(e, r, t[r]);
|
|
3582
3586
|
if (ht)
|
|
3583
3587
|
for (var r of ht(t))
|
|
3584
|
-
|
|
3588
|
+
Xn.call(t, r) && lt(e, r, t[r]);
|
|
3585
3589
|
return e;
|
|
3586
|
-
},
|
|
3587
|
-
let
|
|
3588
|
-
const
|
|
3590
|
+
}, Wn = (e, t) => jn(e, kn(t));
|
|
3591
|
+
let Ve;
|
|
3592
|
+
const be = _e(null);
|
|
3589
3593
|
function ft(e) {
|
|
3590
3594
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3591
3595
|
}
|
|
3592
|
-
function
|
|
3596
|
+
function He(e, t = K().fallbackLocale) {
|
|
3593
3597
|
const r = ft(e);
|
|
3594
3598
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3595
3599
|
}
|
|
3596
|
-
function
|
|
3597
|
-
return
|
|
3600
|
+
function X() {
|
|
3601
|
+
return Ve != null ? Ve : void 0;
|
|
3598
3602
|
}
|
|
3599
|
-
|
|
3600
|
-
|
|
3603
|
+
be.subscribe((e) => {
|
|
3604
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3601
3605
|
});
|
|
3602
|
-
const
|
|
3603
|
-
if (e &&
|
|
3604
|
-
const { loadingDelay: t } =
|
|
3606
|
+
const Zn = (e) => {
|
|
3607
|
+
if (e && Cn(e) && ke(e)) {
|
|
3608
|
+
const { loadingDelay: t } = K();
|
|
3605
3609
|
let r;
|
|
3606
|
-
return typeof window != "undefined" &&
|
|
3607
|
-
() =>
|
|
3610
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3611
|
+
() => Ie.set(!0),
|
|
3608
3612
|
t
|
|
3609
|
-
) :
|
|
3610
|
-
|
|
3613
|
+
) : Ie.set(!0), Gt(e).then(() => {
|
|
3614
|
+
be.set(e);
|
|
3611
3615
|
}).finally(() => {
|
|
3612
|
-
clearTimeout(r),
|
|
3616
|
+
clearTimeout(r), Ie.set(!1);
|
|
3613
3617
|
});
|
|
3614
3618
|
}
|
|
3615
|
-
return
|
|
3616
|
-
},
|
|
3617
|
-
set:
|
|
3618
|
-
}),
|
|
3619
|
+
return be.set(e);
|
|
3620
|
+
}, le = Wn(zn({}, be), {
|
|
3621
|
+
set: Zn
|
|
3622
|
+
}), Te = (e) => {
|
|
3619
3623
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3620
3624
|
return (n) => {
|
|
3621
3625
|
const i = JSON.stringify(n);
|
|
3622
3626
|
return i in t ? t[i] : t[i] = e(n);
|
|
3623
3627
|
};
|
|
3624
3628
|
};
|
|
3625
|
-
var
|
|
3629
|
+
var Qn = Object.defineProperty, ye = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3626
3630
|
for (var r in t || (t = {}))
|
|
3627
3631
|
jt.call(t, r) && ct(e, r, t[r]);
|
|
3628
|
-
if (
|
|
3629
|
-
for (var r of
|
|
3632
|
+
if (ye)
|
|
3633
|
+
for (var r of ye(t))
|
|
3630
3634
|
kt.call(t, r) && ct(e, r, t[r]);
|
|
3631
3635
|
return e;
|
|
3632
|
-
},
|
|
3636
|
+
}, te = (e, t) => {
|
|
3633
3637
|
var r = {};
|
|
3634
3638
|
for (var n in e)
|
|
3635
3639
|
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3636
|
-
if (e != null &&
|
|
3637
|
-
for (var n of
|
|
3640
|
+
if (e != null && ye)
|
|
3641
|
+
for (var n of ye(e))
|
|
3638
3642
|
t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
|
|
3639
3643
|
return r;
|
|
3640
3644
|
};
|
|
3641
|
-
const
|
|
3642
|
-
const { formats: r } =
|
|
3645
|
+
const ae = (e, t) => {
|
|
3646
|
+
const { formats: r } = K();
|
|
3643
3647
|
if (e in r && t in r[e])
|
|
3644
3648
|
return r[e][t];
|
|
3645
3649
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3646
|
-
},
|
|
3650
|
+
}, Jn = Te(
|
|
3647
3651
|
(e) => {
|
|
3648
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3652
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3649
3653
|
if (r == null)
|
|
3650
3654
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3651
|
-
return n && (i =
|
|
3655
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3652
3656
|
}
|
|
3653
|
-
),
|
|
3657
|
+
), qn = Te(
|
|
3654
3658
|
(e) => {
|
|
3655
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3659
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3656
3660
|
if (r == null)
|
|
3657
3661
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3658
|
-
return n ? i =
|
|
3662
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3659
3663
|
}
|
|
3660
|
-
),
|
|
3664
|
+
), Yn = Te(
|
|
3661
3665
|
(e) => {
|
|
3662
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3666
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3663
3667
|
if (r == null)
|
|
3664
3668
|
throw new Error(
|
|
3665
3669
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3666
3670
|
);
|
|
3667
|
-
return n ? i =
|
|
3671
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3668
3672
|
}
|
|
3669
|
-
),
|
|
3670
|
-
var t = e, {
|
|
3671
|
-
locale: r = V()
|
|
3672
|
-
} = t, n = ee(t, [
|
|
3673
|
-
"locale"
|
|
3674
|
-
]);
|
|
3675
|
-
return Qn(ze({ locale: r }, n));
|
|
3676
|
-
}, Kn = (e = {}) => {
|
|
3673
|
+
), Kn = (e = {}) => {
|
|
3677
3674
|
var t = e, {
|
|
3678
|
-
locale: r =
|
|
3679
|
-
} = t, n =
|
|
3675
|
+
locale: r = X()
|
|
3676
|
+
} = t, n = te(t, [
|
|
3680
3677
|
"locale"
|
|
3681
3678
|
]);
|
|
3682
3679
|
return Jn(ze({ locale: r }, n));
|
|
3683
3680
|
}, ei = (e = {}) => {
|
|
3684
3681
|
var t = e, {
|
|
3685
|
-
locale: r =
|
|
3686
|
-
} = t, n =
|
|
3682
|
+
locale: r = X()
|
|
3683
|
+
} = t, n = te(t, [
|
|
3687
3684
|
"locale"
|
|
3688
3685
|
]);
|
|
3689
3686
|
return qn(ze({ locale: r }, n));
|
|
3690
|
-
}, ti =
|
|
3687
|
+
}, ti = (e = {}) => {
|
|
3688
|
+
var t = e, {
|
|
3689
|
+
locale: r = X()
|
|
3690
|
+
} = t, n = te(t, [
|
|
3691
|
+
"locale"
|
|
3692
|
+
]);
|
|
3693
|
+
return Yn(ze({ locale: r }, n));
|
|
3694
|
+
}, ri = Te(
|
|
3691
3695
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3692
|
-
(e, t =
|
|
3693
|
-
ignoreTag:
|
|
3696
|
+
(e, t = X()) => new On(e, t, K().formats, {
|
|
3697
|
+
ignoreTag: K().ignoreTag
|
|
3694
3698
|
})
|
|
3695
|
-
),
|
|
3699
|
+
), ni = (e, t = {}) => {
|
|
3696
3700
|
var r, n, i, s;
|
|
3697
3701
|
let o = t;
|
|
3698
3702
|
typeof e == "object" && (o = e, e = o.id);
|
|
3699
3703
|
const {
|
|
3700
3704
|
values: a,
|
|
3701
|
-
locale: h =
|
|
3705
|
+
locale: h = X(),
|
|
3702
3706
|
default: u
|
|
3703
3707
|
} = o;
|
|
3704
3708
|
if (h == null)
|
|
@@ -3707,7 +3711,7 @@ const oe = (e, t) => {
|
|
|
3707
3711
|
);
|
|
3708
3712
|
let l = Rt(e, h);
|
|
3709
3713
|
if (!l)
|
|
3710
|
-
l = (s = (i = (n = (r =
|
|
3714
|
+
l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3711
3715
|
else if (typeof l != "string")
|
|
3712
3716
|
return console.warn(
|
|
3713
3717
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3716,7 +3720,7 @@ const oe = (e, t) => {
|
|
|
3716
3720
|
return l;
|
|
3717
3721
|
let f = l;
|
|
3718
3722
|
try {
|
|
3719
|
-
f =
|
|
3723
|
+
f = ri(l, h).format(a);
|
|
3720
3724
|
} catch (c) {
|
|
3721
3725
|
c instanceof Error && console.warn(
|
|
3722
3726
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3724,11 +3728,11 @@ const oe = (e, t) => {
|
|
|
3724
3728
|
);
|
|
3725
3729
|
}
|
|
3726
3730
|
return f;
|
|
3727
|
-
},
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3731
|
+
}, ii = (e, t) => ti(t).format(e), si = (e, t) => ei(t).format(e), oi = (e, t) => Kn(t).format(e), ai = (e, t = X()) => Rt(e, t), ui = ee([le, he], () => ni);
|
|
3732
|
+
ee([le], () => ii);
|
|
3733
|
+
ee([le], () => si);
|
|
3734
|
+
ee([le], () => oi);
|
|
3735
|
+
ee([le, he], () => ai);
|
|
3732
3736
|
function mt(e, t) {
|
|
3733
3737
|
Ut(e, t);
|
|
3734
3738
|
}
|
|
@@ -3822,13 +3826,13 @@ const dt = {
|
|
|
3822
3826
|
days: "days"
|
|
3823
3827
|
}
|
|
3824
3828
|
};
|
|
3825
|
-
function
|
|
3829
|
+
function hi(e, t) {
|
|
3826
3830
|
if (e) {
|
|
3827
3831
|
const r = document.createElement("style");
|
|
3828
3832
|
r.innerHTML = t, e.appendChild(r);
|
|
3829
3833
|
}
|
|
3830
3834
|
}
|
|
3831
|
-
function
|
|
3835
|
+
function li(e, t) {
|
|
3832
3836
|
if (!e || !t)
|
|
3833
3837
|
return;
|
|
3834
3838
|
const r = new URL(t);
|
|
@@ -3839,7 +3843,7 @@ function hi(e, t) {
|
|
|
3839
3843
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3840
3844
|
});
|
|
3841
3845
|
}
|
|
3842
|
-
function
|
|
3846
|
+
function fi(e, t, r) {
|
|
3843
3847
|
if (window.emMessageBus) {
|
|
3844
3848
|
const n = document.createElement("style");
|
|
3845
3849
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3847,7 +3851,7 @@ function li(e, t, r) {
|
|
|
3847
3851
|
});
|
|
3848
3852
|
}
|
|
3849
3853
|
}
|
|
3850
|
-
function
|
|
3854
|
+
function ci(e) {
|
|
3851
3855
|
er(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)}");
|
|
3852
3856
|
}
|
|
3853
3857
|
function pt(e) {
|
|
@@ -3869,9 +3873,9 @@ function pt(e) {
|
|
|
3869
3873
|
/*status*/
|
|
3870
3874
|
p[2] == "Finished" || /*status*/
|
|
3871
3875
|
p[2] == "Closing" || /*status*/
|
|
3872
|
-
p[2] == "Closed" ?
|
|
3876
|
+
p[2] == "Closed" ? pi : (
|
|
3873
3877
|
/*tournamentUntilStartDays*/
|
|
3874
|
-
p[5] > 0 ?
|
|
3878
|
+
p[5] > 0 ? di : mi
|
|
3875
3879
|
)
|
|
3876
3880
|
);
|
|
3877
3881
|
}
|
|
@@ -3883,25 +3887,25 @@ function pt(e) {
|
|
|
3883
3887
|
p[2] == "Closing" || /*status*/
|
|
3884
3888
|
p[2] == "Closed"
|
|
3885
3889
|
)
|
|
3886
|
-
return
|
|
3890
|
+
return yi;
|
|
3887
3891
|
if (
|
|
3888
3892
|
/*tournamentUntilStartDays*/
|
|
3889
3893
|
p[5] > 0
|
|
3890
3894
|
)
|
|
3891
|
-
return
|
|
3895
|
+
return bi;
|
|
3892
3896
|
if (
|
|
3893
3897
|
/*tournamentLeftDays*/
|
|
3894
3898
|
p[4] > 0
|
|
3895
3899
|
)
|
|
3896
|
-
return
|
|
3900
|
+
return gi;
|
|
3897
3901
|
}
|
|
3898
|
-
let H = L(e),
|
|
3902
|
+
let H = L(e), E = H && H(e);
|
|
3899
3903
|
return {
|
|
3900
3904
|
c() {
|
|
3901
|
-
t =
|
|
3905
|
+
t = N("div"), r = N("div"), i = j(n), s = ne(), o = N("div"), h = j(a), u = ne(), l = N("div"), f = N("div"), S.c(), c = ne(), E && E.c(), _(r, "class", "StartDate"), _(r, "part", "StartDate"), _(o, "class", "EndDate"), _(o, "part", "EndDate"), _(t, "class", "TournamentDates"), _(t, "part", "TournamentDates"), _(f, "class", "ProgressBar"), _(f, "part", "ProgressBar"), _(l, "class", "ProgressBarWrapper"), _(l, "part", "ProgressBarWrapper");
|
|
3902
3906
|
},
|
|
3903
3907
|
m(p, B) {
|
|
3904
|
-
$(p, t, B),
|
|
3908
|
+
$(p, t, B), O(t, r), O(r, i), O(t, s), O(t, o), O(o, h), $(p, u, B), $(p, l, B), O(l, f), S.m(f, null), O(f, c), E && E.m(f, null), d || (y = Kt(
|
|
3905
3909
|
/*getDuration*/
|
|
3906
3910
|
e[9].call(null, l)
|
|
3907
3911
|
), d = !0);
|
|
@@ -3912,23 +3916,23 @@ function pt(e) {
|
|
|
3912
3916
|
p[10](
|
|
3913
3917
|
/*startdate*/
|
|
3914
3918
|
p[0]
|
|
3915
|
-
) + "") &&
|
|
3919
|
+
) + "") && V(i, n), B & /*enddate*/
|
|
3916
3920
|
2 && a !== (a = /*formatDate*/
|
|
3917
3921
|
p[10](
|
|
3918
3922
|
/*enddate*/
|
|
3919
3923
|
p[1]
|
|
3920
|
-
) + "") &&
|
|
3924
|
+
) + "") && V(h, a), 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)) && E ? E.p(p, B) : (E && E.d(1), E = H && H(p), E && (E.c(), E.m(f, null)));
|
|
3921
3925
|
},
|
|
3922
3926
|
d(p) {
|
|
3923
|
-
p && (
|
|
3927
|
+
p && (M(t), M(u), M(l)), S.d(), E && E.d(), d = !1, y();
|
|
3924
3928
|
}
|
|
3925
3929
|
};
|
|
3926
3930
|
}
|
|
3927
|
-
function
|
|
3931
|
+
function mi(e) {
|
|
3928
3932
|
let t;
|
|
3929
3933
|
return {
|
|
3930
3934
|
c() {
|
|
3931
|
-
t =
|
|
3935
|
+
t = N("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), Ye(
|
|
3932
3936
|
t,
|
|
3933
3937
|
"width",
|
|
3934
3938
|
/*getProgress*/
|
|
@@ -3948,71 +3952,71 @@ function ci(e) {
|
|
|
3948
3952
|
);
|
|
3949
3953
|
},
|
|
3950
3954
|
d(r) {
|
|
3951
|
-
r &&
|
|
3955
|
+
r && M(t);
|
|
3952
3956
|
}
|
|
3953
3957
|
};
|
|
3954
3958
|
}
|
|
3955
|
-
function
|
|
3959
|
+
function di(e) {
|
|
3956
3960
|
let t;
|
|
3957
3961
|
return {
|
|
3958
3962
|
c() {
|
|
3959
|
-
t =
|
|
3963
|
+
t = N("div"), _(t, "class", "ProgressBarFillStarting"), _(t, "part", "ProgressBarFillStarting");
|
|
3960
3964
|
},
|
|
3961
3965
|
m(r, n) {
|
|
3962
3966
|
$(r, t, n);
|
|
3963
3967
|
},
|
|
3964
3968
|
p: I,
|
|
3965
3969
|
d(r) {
|
|
3966
|
-
r &&
|
|
3970
|
+
r && M(t);
|
|
3967
3971
|
}
|
|
3968
3972
|
};
|
|
3969
3973
|
}
|
|
3970
|
-
function
|
|
3974
|
+
function pi(e) {
|
|
3971
3975
|
let t;
|
|
3972
3976
|
return {
|
|
3973
3977
|
c() {
|
|
3974
|
-
t =
|
|
3978
|
+
t = N("div"), _(t, "class", "ProgressBarFillEnd"), _(t, "part", "ProgressBarFillEnd");
|
|
3975
3979
|
},
|
|
3976
3980
|
m(r, n) {
|
|
3977
3981
|
$(r, t, n);
|
|
3978
3982
|
},
|
|
3979
3983
|
p: I,
|
|
3980
3984
|
d(r) {
|
|
3981
|
-
r &&
|
|
3985
|
+
r && M(t);
|
|
3982
3986
|
}
|
|
3983
3987
|
};
|
|
3984
3988
|
}
|
|
3985
|
-
function
|
|
3989
|
+
function gi(e) {
|
|
3986
3990
|
let t, r, n, i = (
|
|
3987
3991
|
/*$_*/
|
|
3988
3992
|
e[8]("left") + ""
|
|
3989
3993
|
), s;
|
|
3990
3994
|
return {
|
|
3991
3995
|
c() {
|
|
3992
|
-
t =
|
|
3996
|
+
t = N("div"), r = j(
|
|
3993
3997
|
/*showRemain*/
|
|
3994
3998
|
e[6]
|
|
3995
|
-
), n =
|
|
3999
|
+
), n = ne(), s = j(i), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3996
4000
|
},
|
|
3997
4001
|
m(o, a) {
|
|
3998
|
-
$(o, t, a),
|
|
4002
|
+
$(o, t, a), O(t, r), O(t, n), O(t, s);
|
|
3999
4003
|
},
|
|
4000
4004
|
p(o, a) {
|
|
4001
4005
|
a & /*showRemain*/
|
|
4002
|
-
64 &&
|
|
4006
|
+
64 && V(
|
|
4003
4007
|
r,
|
|
4004
4008
|
/*showRemain*/
|
|
4005
4009
|
o[6]
|
|
4006
4010
|
), a & /*$_*/
|
|
4007
4011
|
256 && i !== (i = /*$_*/
|
|
4008
|
-
o[8]("left") + "") &&
|
|
4012
|
+
o[8]("left") + "") && V(s, i);
|
|
4009
4013
|
},
|
|
4010
4014
|
d(o) {
|
|
4011
|
-
o &&
|
|
4015
|
+
o && M(t);
|
|
4012
4016
|
}
|
|
4013
4017
|
};
|
|
4014
4018
|
}
|
|
4015
|
-
function
|
|
4019
|
+
function bi(e) {
|
|
4016
4020
|
let t, r = (
|
|
4017
4021
|
/*$_*/
|
|
4018
4022
|
e[8]("starting") + ""
|
|
@@ -4025,49 +4029,49 @@ function gi(e) {
|
|
|
4025
4029
|
), o;
|
|
4026
4030
|
return {
|
|
4027
4031
|
c() {
|
|
4028
|
-
t =
|
|
4032
|
+
t = N("div"), n = j(r), i = ne(), o = j(s), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
4029
4033
|
},
|
|
4030
4034
|
m(a, h) {
|
|
4031
|
-
$(a, t, h),
|
|
4035
|
+
$(a, t, h), O(t, n), O(t, i), O(t, o);
|
|
4032
4036
|
},
|
|
4033
4037
|
p(a, h) {
|
|
4034
4038
|
h & /*$_*/
|
|
4035
4039
|
256 && r !== (r = /*$_*/
|
|
4036
|
-
a[8]("starting") + "") &&
|
|
4040
|
+
a[8]("starting") + "") && V(n, r), h & /*tournamentUntilStartDays*/
|
|
4037
4041
|
32 && s !== (s = /*getTextByDiff*/
|
|
4038
4042
|
a[11](
|
|
4039
4043
|
/*tournamentUntilStartDays*/
|
|
4040
4044
|
a[5]
|
|
4041
|
-
) + "") &&
|
|
4045
|
+
) + "") && V(o, s);
|
|
4042
4046
|
},
|
|
4043
4047
|
d(a) {
|
|
4044
|
-
a &&
|
|
4048
|
+
a && M(t);
|
|
4045
4049
|
}
|
|
4046
4050
|
};
|
|
4047
4051
|
}
|
|
4048
|
-
function
|
|
4052
|
+
function yi(e) {
|
|
4049
4053
|
let t, r = (
|
|
4050
4054
|
/*$_*/
|
|
4051
4055
|
e[8]("finished") + ""
|
|
4052
4056
|
), n;
|
|
4053
4057
|
return {
|
|
4054
4058
|
c() {
|
|
4055
|
-
t =
|
|
4059
|
+
t = N("div"), n = j(r), _(t, "class", "Finished"), _(t, "part", "Finished");
|
|
4056
4060
|
},
|
|
4057
4061
|
m(i, s) {
|
|
4058
|
-
$(i, t, s),
|
|
4062
|
+
$(i, t, s), O(t, n);
|
|
4059
4063
|
},
|
|
4060
4064
|
p(i, s) {
|
|
4061
4065
|
s & /*$_*/
|
|
4062
4066
|
256 && r !== (r = /*$_*/
|
|
4063
|
-
i[8]("finished") + "") &&
|
|
4067
|
+
i[8]("finished") + "") && V(n, r);
|
|
4064
4068
|
},
|
|
4065
4069
|
d(i) {
|
|
4066
|
-
i &&
|
|
4070
|
+
i && M(t);
|
|
4067
4071
|
}
|
|
4068
4072
|
};
|
|
4069
4073
|
}
|
|
4070
|
-
function
|
|
4074
|
+
function Ei(e) {
|
|
4071
4075
|
let t, r = (
|
|
4072
4076
|
/*startdate*/
|
|
4073
4077
|
e[0] && /*enddate*/
|
|
@@ -4075,7 +4079,7 @@ function yi(e) {
|
|
|
4075
4079
|
);
|
|
4076
4080
|
return {
|
|
4077
4081
|
c() {
|
|
4078
|
-
t =
|
|
4082
|
+
t = N("div"), r && r.c(), _(t, "class", "TournamentDuration"), _(t, "part", "TournamentDuration");
|
|
4079
4083
|
},
|
|
4080
4084
|
m(n, i) {
|
|
4081
4085
|
$(n, t, i), r && r.m(t, null), e[17](t);
|
|
@@ -4088,18 +4092,18 @@ function yi(e) {
|
|
|
4088
4092
|
i: I,
|
|
4089
4093
|
o: I,
|
|
4090
4094
|
d(n) {
|
|
4091
|
-
n &&
|
|
4095
|
+
n && M(t), r && r.d(), e[17](null);
|
|
4092
4096
|
}
|
|
4093
4097
|
};
|
|
4094
4098
|
}
|
|
4095
|
-
function
|
|
4099
|
+
function _i(e, t, r) {
|
|
4096
4100
|
let n, i;
|
|
4097
|
-
Yt(e,
|
|
4101
|
+
Yt(e, ui, (m) => r(8, i = m));
|
|
4098
4102
|
let { startdate: s = "" } = t, { enddate: o = "" } = t, { status: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, d, y = "", T = "", A = "";
|
|
4099
4103
|
const S = () => {
|
|
4100
4104
|
fetch(f).then((w) => w.json()).then((w) => {
|
|
4101
|
-
Object.keys(w).forEach((
|
|
4102
|
-
mt(
|
|
4105
|
+
Object.keys(w).forEach((F) => {
|
|
4106
|
+
mt(F, w[F]);
|
|
4103
4107
|
});
|
|
4104
4108
|
}).catch((w) => {
|
|
4105
4109
|
console.log(w);
|
|
@@ -4108,21 +4112,21 @@ function Ei(e, t, r) {
|
|
|
4108
4112
|
Object.keys(dt).forEach((m) => {
|
|
4109
4113
|
mt(m, dt[m]);
|
|
4110
4114
|
});
|
|
4111
|
-
const L = (m) => new Date(m).getTime(), H = (m, w) => (L(w) - L(m)) / (1e3 * 60),
|
|
4115
|
+
const L = (m) => new Date(m).getTime(), H = (m, w) => (L(w) - L(m)) / (1e3 * 60), E = () => {
|
|
4112
4116
|
const m = /* @__PURE__ */ new Date();
|
|
4113
4117
|
r(4, y = H(m, o)), r(5, T = H(m, s)), r(6, A = B(y));
|
|
4114
4118
|
}, p = (m) => {
|
|
4115
4119
|
const w = { month: "long" };
|
|
4116
|
-
let
|
|
4117
|
-
return `${
|
|
4120
|
+
let F = new Date(m), k = new Intl.DateTimeFormat(h, w).format(F);
|
|
4121
|
+
return `${F.getDate()} ${k}, ${F.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${F.getUTCFullYear()}`;
|
|
4118
4122
|
}, B = (m) => {
|
|
4119
|
-
const w = (
|
|
4120
|
-
const R = Math.floor(
|
|
4123
|
+
const w = (k, R) => k + " " + i(R), F = (k) => {
|
|
4124
|
+
const R = Math.floor(k);
|
|
4121
4125
|
return R < 10 ? `0${R}` : `${R}`;
|
|
4122
4126
|
};
|
|
4123
4127
|
if (m < 1440) {
|
|
4124
|
-
const
|
|
4125
|
-
return [
|
|
4128
|
+
const k = m / 60, R = m % 60, Vt = (R - Math.floor(R)) * 60;
|
|
4129
|
+
return [k, R, Vt].map((Xt) => F(Xt)).join(":");
|
|
4126
4130
|
}
|
|
4127
4131
|
return w(Math.ceil(m / (60 * 24)), "days");
|
|
4128
4132
|
};
|
|
@@ -4130,7 +4134,7 @@ function Ei(e, t, r) {
|
|
|
4130
4134
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4131
4135
|
const m = setInterval(
|
|
4132
4136
|
() => {
|
|
4133
|
-
s && o &&
|
|
4137
|
+
s && o && E();
|
|
4134
4138
|
},
|
|
4135
4139
|
1e3
|
|
4136
4140
|
);
|
|
@@ -4138,8 +4142,8 @@ function Ei(e, t, r) {
|
|
|
4138
4142
|
clearInterval(m);
|
|
4139
4143
|
};
|
|
4140
4144
|
});
|
|
4141
|
-
function
|
|
4142
|
-
|
|
4145
|
+
function fe(m) {
|
|
4146
|
+
Le[m ? "unshift" : "push"](() => {
|
|
4143
4147
|
d = m, r(3, d);
|
|
4144
4148
|
});
|
|
4145
4149
|
}
|
|
@@ -4153,13 +4157,13 @@ function Ei(e, t, r) {
|
|
|
4153
4157
|
const m = H(s, o), w = 100 / m;
|
|
4154
4158
|
return Math.floor((m - y) * w);
|
|
4155
4159
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4156
|
-
19 && s && o &&
|
|
4157
|
-
4096 && h &&
|
|
4160
|
+
19 && s && o && E() && B(y), e.$$.dirty & /*lang*/
|
|
4161
|
+
4096 && h && E(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4158
4162
|
4112 && h && B(y), e.$$.dirty & /*translationurl*/
|
|
4159
4163
|
32768 && f && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4160
|
-
8200 && u && d &&
|
|
4161
|
-
16392 && l && d &&
|
|
4162
|
-
65544 && c && d &&
|
|
4164
|
+
8200 && u && d && hi(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4165
|
+
16392 && l && d && li(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4166
|
+
65544 && c && d && fi(d, `${c}.Style`);
|
|
4163
4167
|
}, [
|
|
4164
4168
|
s,
|
|
4165
4169
|
o,
|
|
@@ -4170,7 +4174,7 @@ function Ei(e, t, r) {
|
|
|
4170
4174
|
A,
|
|
4171
4175
|
n,
|
|
4172
4176
|
i,
|
|
4173
|
-
|
|
4177
|
+
E,
|
|
4174
4178
|
p,
|
|
4175
4179
|
B,
|
|
4176
4180
|
h,
|
|
@@ -4178,16 +4182,16 @@ function Ei(e, t, r) {
|
|
|
4178
4182
|
l,
|
|
4179
4183
|
f,
|
|
4180
4184
|
c,
|
|
4181
|
-
|
|
4185
|
+
fe
|
|
4182
4186
|
];
|
|
4183
4187
|
}
|
|
4184
|
-
class
|
|
4188
|
+
class xi extends yr {
|
|
4185
4189
|
constructor(t) {
|
|
4186
4190
|
super(), gr(
|
|
4187
4191
|
this,
|
|
4188
4192
|
t,
|
|
4193
|
+
_i,
|
|
4189
4194
|
Ei,
|
|
4190
|
-
yi,
|
|
4191
4195
|
bt,
|
|
4192
4196
|
{
|
|
4193
4197
|
startdate: 0,
|
|
@@ -4199,7 +4203,7 @@ class _i extends yr {
|
|
|
4199
4203
|
translationurl: 15,
|
|
4200
4204
|
mbsource: 16
|
|
4201
4205
|
},
|
|
4202
|
-
|
|
4206
|
+
ci
|
|
4203
4207
|
);
|
|
4204
4208
|
}
|
|
4205
4209
|
get startdate() {
|
|
@@ -4251,7 +4255,7 @@ class _i extends yr {
|
|
|
4251
4255
|
this.$$set({ mbsource: t }), D();
|
|
4252
4256
|
}
|
|
4253
4257
|
}
|
|
4254
|
-
br(
|
|
4258
|
+
br(xi, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4255
4259
|
export {
|
|
4256
|
-
|
|
4260
|
+
xi as default
|
|
4257
4261
|
};
|