@everymatrix/casino-tournaments-thumbnail 1.55.0 → 1.56.0
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/{CasinoTournamentsThumbnail-DW8wqw2C.js → CasinoTournamentsThumbnail-CaPHlyuV.js} +370 -372
- package/components/{CasinoTournamentsThumbnail-Bh2ICnOi.js → CasinoTournamentsThumbnail-DKRfjStI.js} +357 -359
- package/components/CasinoTournamentsThumbnail-DugaTzer.cjs +6 -0
- package/es2015/casino-tournaments-thumbnail.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail.js +1 -1
- package/esnext/casino-tournaments-thumbnail.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-ByE_cSNI.cjs +0 -6
package/components/{CasinoTournamentsThumbnail-DW8wqw2C.js → CasinoTournamentsThumbnail-CaPHlyuV.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ne = (e, t, r) => t in e ?
|
|
1
|
+
var lr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var tt = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ne = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fr.call(t, r) && Ne(e, r, t[r]);
|
|
8
|
+
if (tt)
|
|
9
|
+
for (var r of tt(t))
|
|
10
|
+
mr.call(t, r) && Ne(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, nt = (e, t) => hr(e, cr(t));
|
|
13
13
|
var D = (e, t, r) => Ne(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var
|
|
14
|
+
var it = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
@@ -29,25 +29,25 @@ var at = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function k() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ct(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function st() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ne(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Ct);
|
|
40
40
|
}
|
|
41
41
|
function fe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Bt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,8 +56,8 @@ function It(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function br(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Nt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function me(e) {
|
|
63
63
|
return e && fe(e.destroy) ? e.destroy : k;
|
|
@@ -65,14 +65,14 @@ function me(e) {
|
|
|
65
65
|
function S(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const n =
|
|
68
|
+
function gr(e, t, r) {
|
|
69
|
+
const n = pr(e);
|
|
70
70
|
if (!n.getElementById(t)) {
|
|
71
71
|
const i = I("style");
|
|
72
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function pr(e) {
|
|
76
76
|
if (!e) return document;
|
|
77
77
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
78
78
|
return t && /** @type {ShadowRoot} */
|
|
@@ -81,7 +81,7 @@ function _r(e) {
|
|
|
81
81
|
t
|
|
82
82
|
) : e.ownerDocument;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function yr(e, t) {
|
|
85
85
|
return S(
|
|
86
86
|
/** @type {Document} */
|
|
87
87
|
e.head || e,
|
|
@@ -103,16 +103,16 @@ function M(e) {
|
|
|
103
103
|
function z() {
|
|
104
104
|
return M(" ");
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function _r() {
|
|
107
107
|
return M("");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Er(e, t, r, n) {
|
|
110
110
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
111
111
|
}
|
|
112
112
|
function _(e, t, r) {
|
|
113
113
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function vr(e) {
|
|
116
116
|
return Array.from(e.childNodes);
|
|
117
117
|
}
|
|
118
118
|
function $(e, t) {
|
|
@@ -122,7 +122,7 @@ function $(e, t) {
|
|
|
122
122
|
function De(e, t, r, n) {
|
|
123
123
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function xr(e) {
|
|
126
126
|
const t = {};
|
|
127
127
|
return e.childNodes.forEach(
|
|
128
128
|
/** @param {Element} node */
|
|
@@ -135,19 +135,19 @@ let le;
|
|
|
135
135
|
function ue(e) {
|
|
136
136
|
le = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Sr() {
|
|
139
139
|
if (!le) throw new Error("Function called outside component initialization");
|
|
140
140
|
return le;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Tr(e) {
|
|
143
|
+
Sr().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
145
|
const q = [], ke = [];
|
|
146
146
|
let Y = [];
|
|
147
|
-
const
|
|
147
|
+
const at = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
148
148
|
let Ue = !1;
|
|
149
|
-
function
|
|
150
|
-
Ue || (Ue = !0,
|
|
149
|
+
function Hr() {
|
|
150
|
+
Ue || (Ue = !0, Ar.then(N));
|
|
151
151
|
}
|
|
152
152
|
function Fe(e) {
|
|
153
153
|
Y.push(e);
|
|
@@ -162,7 +162,7 @@ function N() {
|
|
|
162
162
|
try {
|
|
163
163
|
for (; Z < q.length; ) {
|
|
164
164
|
const t = q[Z];
|
|
165
|
-
Z++, ue(t),
|
|
165
|
+
Z++, ue(t), Cr(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
168
|
throw q.length = 0, Z = 0, t;
|
|
@@ -174,40 +174,40 @@ function N() {
|
|
|
174
174
|
}
|
|
175
175
|
Y.length = 0;
|
|
176
176
|
} while (q.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
177
|
+
for (; at.length; )
|
|
178
|
+
at.pop()();
|
|
179
179
|
Ue = !1, Pe.clear(), ue(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Cr(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
183
|
e.update(), ne(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
185
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Br(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
193
|
+
function Pr(e, t) {
|
|
194
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ir(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
198
|
n && n.m(t, r), Fe(() => {
|
|
199
|
-
const s = e.$$.on_mount.map(
|
|
199
|
+
const s = e.$$.on_mount.map(Ct).filter(fe);
|
|
200
200
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ne(s), e.$$.on_mount = [];
|
|
201
201
|
}), i.forEach(Fe);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Or(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Br(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
207
|
+
function wr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (q.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Mr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
211
211
|
const l = le;
|
|
212
212
|
ue(e);
|
|
213
213
|
const u = e.$$ = {
|
|
@@ -217,7 +217,7 @@ function Lr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
217
217
|
props: s,
|
|
218
218
|
update: k,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: st(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,7 +226,7 @@ function Lr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: st(),
|
|
230
230
|
dirty: o,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || l.$$.root
|
|
@@ -235,19 +235,19 @@ function Lr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
235
235
|
let h = !1;
|
|
236
236
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...E) => {
|
|
237
237
|
const d = E.length ? E[0] : f;
|
|
238
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h &&
|
|
238
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && wr(e, c)), f;
|
|
239
239
|
}) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const c =
|
|
241
|
+
const c = vr(t.target);
|
|
242
242
|
u.fragment && u.fragment.l(c), c.forEach(U);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Pr(e.$$.fragment), Ir(e, t.target, t.anchor), N();
|
|
246
246
|
}
|
|
247
247
|
ue(l);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Pt;
|
|
250
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return it(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(s) {
|
|
290
290
|
return () => {
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = xr(this);
|
|
312
312
|
for (const s of this.$$s)
|
|
313
313
|
s in n && (r[s] = [t(s)]);
|
|
314
314
|
for (const s of this.attributes) {
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
319
319
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: nt(rt({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -397,8 +397,8 @@ function ge(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let a = class extends
|
|
400
|
+
function Rr(e, t, r, n, i, s) {
|
|
401
|
+
let a = class extends Pt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -428,7 +428,7 @@ function Dr(e, t, r, n, i, s) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
a, a;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Lr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class kr {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Or(this, 1), this.$destroy = k;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -471,13 +471,13 @@ class kr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
+
const Dr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
479
479
|
const Q = [];
|
|
480
|
-
function
|
|
480
|
+
function kr(e, t) {
|
|
481
481
|
return {
|
|
482
482
|
subscribe: ve(e, t).subscribe
|
|
483
483
|
};
|
|
@@ -486,7 +486,7 @@ function ve(e, t = k) {
|
|
|
486
486
|
let r;
|
|
487
487
|
const n = /* @__PURE__ */ new Set();
|
|
488
488
|
function i(o) {
|
|
489
|
-
if (
|
|
489
|
+
if (Bt(e, o) && (e = o, r)) {
|
|
490
490
|
const l = !Q.length;
|
|
491
491
|
for (const u of n)
|
|
492
492
|
u[1](), Q.push(u, e);
|
|
@@ -513,7 +513,7 @@ function ie(e, t, r) {
|
|
|
513
513
|
if (!i.every(Boolean))
|
|
514
514
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
515
515
|
const s = t.length < 2;
|
|
516
|
-
return
|
|
516
|
+
return kr(r, (a, o) => {
|
|
517
517
|
let l = !1;
|
|
518
518
|
const u = [];
|
|
519
519
|
let h = 0, c = k;
|
|
@@ -524,7 +524,7 @@ function ie(e, t, r) {
|
|
|
524
524
|
const d = t(n ? u[0] : u, a, o);
|
|
525
525
|
s ? a(d) : c = fe(d) ? d : k;
|
|
526
526
|
}, E = i.map(
|
|
527
|
-
(d, b) =>
|
|
527
|
+
(d, b) => Nt(
|
|
528
528
|
d,
|
|
529
529
|
(g) => {
|
|
530
530
|
u[b] = g, h &= ~(1 << b), l && f();
|
|
@@ -539,70 +539,70 @@ function ie(e, t, r) {
|
|
|
539
539
|
};
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ur(e) {
|
|
543
543
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
544
544
|
}
|
|
545
|
-
var
|
|
546
|
-
return
|
|
545
|
+
var Fr = function(t) {
|
|
546
|
+
return Gr(t) && !$r(t);
|
|
547
547
|
};
|
|
548
|
-
function
|
|
548
|
+
function Gr(e) {
|
|
549
549
|
return !!e && typeof e == "object";
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function $r(e) {
|
|
552
552
|
var t = Object.prototype.toString.call(e);
|
|
553
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
553
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
function
|
|
557
|
-
return e.$$typeof ===
|
|
555
|
+
var jr = typeof Symbol == "function" && Symbol.for, Vr = jr ? Symbol.for("react.element") : 60103;
|
|
556
|
+
function Jr(e) {
|
|
557
|
+
return e.$$typeof === Vr;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function zr(e) {
|
|
560
560
|
return Array.isArray(e) ? [] : {};
|
|
561
561
|
}
|
|
562
562
|
function he(e, t) {
|
|
563
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? K(
|
|
563
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(zr(e), e, t) : e;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Wr(e, t, r) {
|
|
566
566
|
return e.concat(t).map(function(n) {
|
|
567
567
|
return he(n, r);
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Xr(e, t) {
|
|
571
571
|
if (!t.customMerge)
|
|
572
572
|
return K;
|
|
573
573
|
var r = t.customMerge(e);
|
|
574
574
|
return typeof r == "function" ? r : K;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Zr(e) {
|
|
577
577
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
578
578
|
return Object.propertyIsEnumerable.call(e, t);
|
|
579
579
|
}) : [];
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return Object.keys(e).concat(
|
|
581
|
+
function ot(e) {
|
|
582
|
+
return Object.keys(e).concat(Zr(e));
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function It(e, t) {
|
|
585
585
|
try {
|
|
586
586
|
return t in e;
|
|
587
587
|
} catch (r) {
|
|
588
588
|
return !1;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return
|
|
591
|
+
function Qr(e, t) {
|
|
592
|
+
return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function qr(e, t, r) {
|
|
595
595
|
var n = {};
|
|
596
|
-
return r.isMergeableObject(e) &&
|
|
596
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
597
597
|
n[i] = he(e[i], r);
|
|
598
|
-
}),
|
|
599
|
-
|
|
598
|
+
}), ot(t).forEach(function(i) {
|
|
599
|
+
Qr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = Xr(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
|
600
600
|
}), n;
|
|
601
601
|
}
|
|
602
602
|
function K(e, t, r) {
|
|
603
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
603
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Wr, r.isMergeableObject = r.isMergeableObject || Fr, r.cloneUnlessOtherwiseSpecified = he;
|
|
604
604
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
605
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
605
|
+
return s ? n ? r.arrayMerge(e, t, r) : qr(e, t, r) : he(t, r);
|
|
606
606
|
}
|
|
607
607
|
K.all = function(t, r) {
|
|
608
608
|
if (!Array.isArray(t))
|
|
@@ -611,8 +611,8 @@ K.all = function(t, r) {
|
|
|
611
611
|
return K(n, i, r);
|
|
612
612
|
}, {});
|
|
613
613
|
};
|
|
614
|
-
var
|
|
615
|
-
const
|
|
614
|
+
var Yr = K, Kr = Yr;
|
|
615
|
+
const en = /* @__PURE__ */ Ur(Kr);
|
|
616
616
|
var Ge = function(e, t) {
|
|
617
617
|
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
618
618
|
r.__proto__ = n;
|
|
@@ -638,7 +638,7 @@ var x = function() {
|
|
|
638
638
|
return t;
|
|
639
639
|
}, x.apply(this, arguments);
|
|
640
640
|
};
|
|
641
|
-
function
|
|
641
|
+
function tn(e, t) {
|
|
642
642
|
var r = {};
|
|
643
643
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
644
644
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -652,55 +652,53 @@ function Ie(e, t, r) {
|
|
|
652
652
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
653
653
|
}
|
|
654
654
|
function Oe(e, t) {
|
|
655
|
-
var r = t && t.cache ? t.cache :
|
|
655
|
+
var r = t && t.cache ? t.cache : ln, n = t && t.serializer ? t.serializer : on, i = t && t.strategy ? t.strategy : sn;
|
|
656
656
|
return i(e, {
|
|
657
657
|
cache: r,
|
|
658
658
|
serializer: n
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function rn(e) {
|
|
662
662
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
var i =
|
|
664
|
+
function nn(e, t, r, n) {
|
|
665
|
+
var i = rn(n) ? n : r(n), s = t.get(i);
|
|
666
666
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Ot(e, t, r) {
|
|
669
669
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
670
670
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function wt(e, t, r, n, i) {
|
|
673
673
|
return r.bind(t, e, n, i);
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
var r = e.length === 1 ?
|
|
677
|
-
return
|
|
678
|
-
}
|
|
679
|
-
function on(e, t) {
|
|
680
|
-
return Qe(e, this, Rt, t.cache.create(), t.serializer);
|
|
675
|
+
function sn(e, t) {
|
|
676
|
+
var r = e.length === 1 ? nn : Ot;
|
|
677
|
+
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
681
678
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
679
|
+
function an(e, t) {
|
|
680
|
+
return wt(e, this, Ot, t.cache.create(), t.serializer);
|
|
684
681
|
}
|
|
685
|
-
var
|
|
682
|
+
var on = function() {
|
|
686
683
|
return JSON.stringify(arguments);
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
684
|
+
}, un = (
|
|
685
|
+
/** @class */
|
|
686
|
+
function() {
|
|
687
|
+
function e() {
|
|
688
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
689
|
+
}
|
|
690
|
+
return e.prototype.get = function(t) {
|
|
691
|
+
return this.cache[t];
|
|
692
|
+
}, e.prototype.set = function(t, r) {
|
|
693
|
+
this.cache[t] = r;
|
|
694
|
+
}, e;
|
|
695
|
+
}()
|
|
696
|
+
), ln = {
|
|
698
697
|
create: function() {
|
|
699
|
-
return new
|
|
698
|
+
return new un();
|
|
700
699
|
}
|
|
701
700
|
}, we = {
|
|
702
|
-
variadic:
|
|
703
|
-
monadic: un
|
|
701
|
+
variadic: an
|
|
704
702
|
}, y;
|
|
705
703
|
(function(e) {
|
|
706
704
|
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";
|
|
@@ -713,43 +711,43 @@ var ee;
|
|
|
713
711
|
(function(e) {
|
|
714
712
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
715
713
|
})(ee || (ee = {}));
|
|
716
|
-
function
|
|
714
|
+
function ut(e) {
|
|
717
715
|
return e.type === A.literal;
|
|
718
716
|
}
|
|
719
|
-
function
|
|
717
|
+
function hn(e) {
|
|
720
718
|
return e.type === A.argument;
|
|
721
719
|
}
|
|
722
|
-
function
|
|
720
|
+
function Mt(e) {
|
|
723
721
|
return e.type === A.number;
|
|
724
722
|
}
|
|
725
|
-
function
|
|
723
|
+
function Rt(e) {
|
|
726
724
|
return e.type === A.date;
|
|
727
725
|
}
|
|
728
|
-
function
|
|
726
|
+
function Lt(e) {
|
|
729
727
|
return e.type === A.time;
|
|
730
728
|
}
|
|
731
|
-
function
|
|
729
|
+
function Dt(e) {
|
|
732
730
|
return e.type === A.select;
|
|
733
731
|
}
|
|
734
|
-
function
|
|
732
|
+
function kt(e) {
|
|
735
733
|
return e.type === A.plural;
|
|
736
734
|
}
|
|
737
|
-
function
|
|
735
|
+
function cn(e) {
|
|
738
736
|
return e.type === A.pound;
|
|
739
737
|
}
|
|
740
|
-
function
|
|
738
|
+
function Ut(e) {
|
|
741
739
|
return e.type === A.tag;
|
|
742
740
|
}
|
|
743
|
-
function
|
|
741
|
+
function Ft(e) {
|
|
744
742
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
745
743
|
}
|
|
746
744
|
function $e(e) {
|
|
747
745
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
748
746
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
747
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fn = /(?:[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;
|
|
748
|
+
function mn(e) {
|
|
751
749
|
var t = {};
|
|
752
|
-
return e.replace(
|
|
750
|
+
return e.replace(fn, function(r) {
|
|
753
751
|
var n = r.length;
|
|
754
752
|
switch (r[0]) {
|
|
755
753
|
case "G":
|
|
@@ -838,11 +836,11 @@ function dn(e) {
|
|
|
838
836
|
return "";
|
|
839
837
|
}), t;
|
|
840
838
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
839
|
+
var dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
840
|
+
function bn(e) {
|
|
843
841
|
if (e.length === 0)
|
|
844
842
|
throw new Error("Number skeleton cannot be empty");
|
|
845
|
-
for (var t = e.split(
|
|
843
|
+
for (var t = e.split(dn).filter(function(f) {
|
|
846
844
|
return f.length > 0;
|
|
847
845
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
848
846
|
var s = i[n], a = s.split("/");
|
|
@@ -857,17 +855,17 @@ function gn(e) {
|
|
|
857
855
|
}
|
|
858
856
|
return r;
|
|
859
857
|
}
|
|
860
|
-
function
|
|
858
|
+
function gn(e) {
|
|
861
859
|
return e.replace(/^(.*?)-/, "");
|
|
862
860
|
}
|
|
863
|
-
var
|
|
864
|
-
function
|
|
861
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, pn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
862
|
+
function ht(e) {
|
|
865
863
|
var t = {};
|
|
866
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
864
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
867
865
|
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)), "";
|
|
868
866
|
}), t;
|
|
869
867
|
}
|
|
870
|
-
function
|
|
868
|
+
function Vt(e) {
|
|
871
869
|
switch (e) {
|
|
872
870
|
case "sign-auto":
|
|
873
871
|
return {
|
|
@@ -907,7 +905,7 @@ function zt(e) {
|
|
|
907
905
|
};
|
|
908
906
|
}
|
|
909
907
|
}
|
|
910
|
-
function
|
|
908
|
+
function yn(e) {
|
|
911
909
|
var t;
|
|
912
910
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
913
911
|
notation: "engineering"
|
|
@@ -915,17 +913,17 @@ function _n(e) {
|
|
|
915
913
|
notation: "scientific"
|
|
916
914
|
}, e = e.slice(1)), t) {
|
|
917
915
|
var r = e.slice(0, 2);
|
|
918
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
916
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
|
|
919
917
|
throw new Error("Malformed concise eng/scientific notation");
|
|
920
918
|
t.minimumIntegerDigits = e.length;
|
|
921
919
|
}
|
|
922
920
|
return t;
|
|
923
921
|
}
|
|
924
|
-
function
|
|
925
|
-
var t = {}, r =
|
|
922
|
+
function ct(e) {
|
|
923
|
+
var t = {}, r = Vt(e);
|
|
926
924
|
return r || t;
|
|
927
925
|
}
|
|
928
|
-
function
|
|
926
|
+
function _n(e) {
|
|
929
927
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
930
928
|
var i = n[r];
|
|
931
929
|
switch (i.stem) {
|
|
@@ -949,7 +947,7 @@ function En(e) {
|
|
|
949
947
|
continue;
|
|
950
948
|
case "measure-unit":
|
|
951
949
|
case "unit":
|
|
952
|
-
t.style = "unit", t.unit =
|
|
950
|
+
t.style = "unit", t.unit = gn(i.options[0]);
|
|
953
951
|
continue;
|
|
954
952
|
case "compact-short":
|
|
955
953
|
case "K":
|
|
@@ -961,12 +959,12 @@ function En(e) {
|
|
|
961
959
|
continue;
|
|
962
960
|
case "scientific":
|
|
963
961
|
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
964
|
-
return x(x({}, l),
|
|
962
|
+
return x(x({}, l), ct(u));
|
|
965
963
|
}, {}));
|
|
966
964
|
continue;
|
|
967
965
|
case "engineering":
|
|
968
966
|
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
969
|
-
return x(x({}, l),
|
|
967
|
+
return x(x({}, l), ct(u));
|
|
970
968
|
}, {}));
|
|
971
969
|
continue;
|
|
972
970
|
case "notation-simple":
|
|
@@ -1011,7 +1009,7 @@ function En(e) {
|
|
|
1011
1009
|
case "integer-width":
|
|
1012
1010
|
if (i.options.length > 1)
|
|
1013
1011
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1014
|
-
i.options[0].replace(
|
|
1012
|
+
i.options[0].replace(pn, function(l, u, h, c, f, E) {
|
|
1015
1013
|
if (u)
|
|
1016
1014
|
t.minimumIntegerDigits = h.length;
|
|
1017
1015
|
else {
|
|
@@ -1024,27 +1022,27 @@ function En(e) {
|
|
|
1024
1022
|
});
|
|
1025
1023
|
continue;
|
|
1026
1024
|
}
|
|
1027
|
-
if (
|
|
1025
|
+
if (jt.test(i.stem)) {
|
|
1028
1026
|
t.minimumIntegerDigits = i.stem.length;
|
|
1029
1027
|
continue;
|
|
1030
1028
|
}
|
|
1031
|
-
if (
|
|
1029
|
+
if (lt.test(i.stem)) {
|
|
1032
1030
|
if (i.options.length > 1)
|
|
1033
1031
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1034
|
-
i.stem.replace(
|
|
1032
|
+
i.stem.replace(lt, function(l, u, h, c, f, E) {
|
|
1035
1033
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && E ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1036
1034
|
});
|
|
1037
1035
|
var s = i.options[0];
|
|
1038
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1036
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ht(s)));
|
|
1039
1037
|
continue;
|
|
1040
1038
|
}
|
|
1041
|
-
if (
|
|
1042
|
-
t = x(x({}, t),
|
|
1039
|
+
if ($t.test(i.stem)) {
|
|
1040
|
+
t = x(x({}, t), ht(i.stem));
|
|
1043
1041
|
continue;
|
|
1044
1042
|
}
|
|
1045
|
-
var a =
|
|
1043
|
+
var a = Vt(i.stem);
|
|
1046
1044
|
a && (t = x(x({}, t), a));
|
|
1047
|
-
var o =
|
|
1045
|
+
var o = yn(i.stem);
|
|
1048
1046
|
o && (t = x(x({}, t), o));
|
|
1049
1047
|
}
|
|
1050
1048
|
return t;
|
|
@@ -2464,13 +2462,13 @@ var be = {
|
|
|
2464
2462
|
"h"
|
|
2465
2463
|
]
|
|
2466
2464
|
};
|
|
2467
|
-
function
|
|
2465
|
+
function En(e, t) {
|
|
2468
2466
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2469
2467
|
var i = e.charAt(n);
|
|
2470
2468
|
if (i === "j") {
|
|
2471
2469
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2472
2470
|
s++, n++;
|
|
2473
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2471
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = vn(t);
|
|
2474
2472
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2475
2473
|
r += l;
|
|
2476
2474
|
for (; a-- > 0; )
|
|
@@ -2479,7 +2477,7 @@ function vn(e, t) {
|
|
|
2479
2477
|
}
|
|
2480
2478
|
return r;
|
|
2481
2479
|
}
|
|
2482
|
-
function
|
|
2480
|
+
function vn(e) {
|
|
2483
2481
|
var t = e.hourCycle;
|
|
2484
2482
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2485
2483
|
e.hourCycles && // @ts-ignore
|
|
@@ -2501,20 +2499,20 @@ function xn(e) {
|
|
|
2501
2499
|
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
2502
2500
|
return i[0];
|
|
2503
2501
|
}
|
|
2504
|
-
var Me,
|
|
2502
|
+
var Me, xn = new RegExp("^".concat(Gt.source, "*")), Sn = new RegExp("".concat(Gt.source, "*$"));
|
|
2505
2503
|
function v(e, t) {
|
|
2506
2504
|
return { start: e, end: t };
|
|
2507
2505
|
}
|
|
2508
|
-
var
|
|
2506
|
+
var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Hn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, In = Pn ? Number.isSafeInteger : function(e) {
|
|
2509
2507
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2510
2508
|
}, je = !0;
|
|
2511
2509
|
try {
|
|
2512
|
-
var
|
|
2513
|
-
je = ((Me =
|
|
2510
|
+
var On = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2511
|
+
je = ((Me = On.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2514
2512
|
} catch (e) {
|
|
2515
2513
|
je = !1;
|
|
2516
2514
|
}
|
|
2517
|
-
var
|
|
2515
|
+
var ft = Tn ? (
|
|
2518
2516
|
// Native
|
|
2519
2517
|
function(t, r, n) {
|
|
2520
2518
|
return t.startsWith(r, n);
|
|
@@ -2524,7 +2522,7 @@ var dt = An ? (
|
|
|
2524
2522
|
function(t, r, n) {
|
|
2525
2523
|
return t.slice(n, n + r.length) === r;
|
|
2526
2524
|
}
|
|
2527
|
-
), Ve =
|
|
2525
|
+
), Ve = An ? String.fromCodePoint : (
|
|
2528
2526
|
// IE11
|
|
2529
2527
|
function() {
|
|
2530
2528
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2536,9 +2534,9 @@ var dt = An ? (
|
|
|
2536
2534
|
}
|
|
2537
2535
|
return n;
|
|
2538
2536
|
}
|
|
2539
|
-
),
|
|
2537
|
+
), mt = (
|
|
2540
2538
|
// native
|
|
2541
|
-
|
|
2539
|
+
Hn ? Object.fromEntries : (
|
|
2542
2540
|
// Ponyfill
|
|
2543
2541
|
function(t) {
|
|
2544
2542
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2548,7 +2546,7 @@ var dt = An ? (
|
|
|
2548
2546
|
return r;
|
|
2549
2547
|
}
|
|
2550
2548
|
)
|
|
2551
|
-
),
|
|
2549
|
+
), Jt = Cn ? (
|
|
2552
2550
|
// Native
|
|
2553
2551
|
function(t, r) {
|
|
2554
2552
|
return t.codePointAt(r);
|
|
@@ -2562,7 +2560,7 @@ var dt = An ? (
|
|
|
2562
2560
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2563
2561
|
}
|
|
2564
2562
|
}
|
|
2565
|
-
),
|
|
2563
|
+
), wn = Bn ? (
|
|
2566
2564
|
// Native
|
|
2567
2565
|
function(t) {
|
|
2568
2566
|
return t.trimStart();
|
|
@@ -2570,9 +2568,9 @@ var dt = An ? (
|
|
|
2570
2568
|
) : (
|
|
2571
2569
|
// Ponyfill
|
|
2572
2570
|
function(t) {
|
|
2573
|
-
return t.replace(
|
|
2571
|
+
return t.replace(xn, "");
|
|
2574
2572
|
}
|
|
2575
|
-
),
|
|
2573
|
+
), Mn = Nn ? (
|
|
2576
2574
|
// Native
|
|
2577
2575
|
function(t) {
|
|
2578
2576
|
return t.trimEnd();
|
|
@@ -2580,32 +2578,32 @@ var dt = An ? (
|
|
|
2580
2578
|
) : (
|
|
2581
2579
|
// Ponyfill
|
|
2582
2580
|
function(t) {
|
|
2583
|
-
return t.replace(
|
|
2581
|
+
return t.replace(Sn, "");
|
|
2584
2582
|
}
|
|
2585
2583
|
);
|
|
2586
|
-
function
|
|
2584
|
+
function zt(e, t) {
|
|
2587
2585
|
return new RegExp(e, t);
|
|
2588
2586
|
}
|
|
2589
2587
|
var Je;
|
|
2590
2588
|
if (je) {
|
|
2591
|
-
var
|
|
2589
|
+
var dt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2592
2590
|
Je = function(t, r) {
|
|
2593
2591
|
var n;
|
|
2594
|
-
|
|
2595
|
-
var i =
|
|
2592
|
+
dt.lastIndex = r;
|
|
2593
|
+
var i = dt.exec(t);
|
|
2596
2594
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2597
2595
|
};
|
|
2598
2596
|
} else
|
|
2599
2597
|
Je = function(t, r) {
|
|
2600
2598
|
for (var n = []; ; ) {
|
|
2601
|
-
var i =
|
|
2602
|
-
if (i === void 0 ||
|
|
2599
|
+
var i = Jt(t, r);
|
|
2600
|
+
if (i === void 0 || Wt(i) || kn(i))
|
|
2603
2601
|
break;
|
|
2604
2602
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2605
2603
|
}
|
|
2606
2604
|
return Ve.apply(void 0, n);
|
|
2607
2605
|
};
|
|
2608
|
-
var
|
|
2606
|
+
var Rn = (
|
|
2609
2607
|
/** @class */
|
|
2610
2608
|
function() {
|
|
2611
2609
|
function e(t, r) {
|
|
@@ -2687,7 +2685,7 @@ var Ln = (
|
|
|
2687
2685
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
2688
2686
|
}, e.prototype.parseTagName = function() {
|
|
2689
2687
|
var t = this.offset();
|
|
2690
|
-
for (this.bump(); !this.isEOF() &&
|
|
2688
|
+
for (this.bump(); !this.isEOF() && Dn(this.char()); )
|
|
2691
2689
|
this.bump();
|
|
2692
2690
|
return this.message.slice(t, this.offset());
|
|
2693
2691
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2716,7 +2714,7 @@ var Ln = (
|
|
|
2716
2714
|
};
|
|
2717
2715
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2718
2716
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2719
|
-
!
|
|
2717
|
+
!Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2720
2718
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2721
2719
|
if (this.isEOF() || this.char() !== 39)
|
|
2722
2720
|
return null;
|
|
@@ -2803,7 +2801,7 @@ var Ln = (
|
|
|
2803
2801
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2804
2802
|
if (c.err)
|
|
2805
2803
|
return c;
|
|
2806
|
-
var f =
|
|
2804
|
+
var f = Mn(c.val);
|
|
2807
2805
|
if (f.length === 0)
|
|
2808
2806
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2809
2807
|
var E = v(h, this.clonePosition());
|
|
@@ -2813,8 +2811,8 @@ var Ln = (
|
|
|
2813
2811
|
if (d.err)
|
|
2814
2812
|
return d;
|
|
2815
2813
|
var b = v(i, this.clonePosition());
|
|
2816
|
-
if (u &&
|
|
2817
|
-
var g =
|
|
2814
|
+
if (u && ft(u == null ? void 0 : u.style, "::", 0)) {
|
|
2815
|
+
var g = wn(u.style.slice(2));
|
|
2818
2816
|
if (o === "number") {
|
|
2819
2817
|
var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
2820
2818
|
return c.err ? c : {
|
|
@@ -2825,12 +2823,12 @@ var Ln = (
|
|
|
2825
2823
|
if (g.length === 0)
|
|
2826
2824
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
2827
2825
|
var p = g;
|
|
2828
|
-
this.locale && (p =
|
|
2826
|
+
this.locale && (p = En(g, this.locale));
|
|
2829
2827
|
var f = {
|
|
2830
2828
|
type: ee.dateTime,
|
|
2831
2829
|
pattern: p,
|
|
2832
2830
|
location: u.styleLocation,
|
|
2833
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2831
|
+
parsedOptions: this.shouldParseSkeletons ? mn(p) : {}
|
|
2834
2832
|
}, T = o === "date" ? A.date : A.time;
|
|
2835
2833
|
return {
|
|
2836
2834
|
val: { type: T, value: n, location: b, style: f },
|
|
@@ -2876,7 +2874,7 @@ var Ln = (
|
|
|
2876
2874
|
val: {
|
|
2877
2875
|
type: A.select,
|
|
2878
2876
|
value: n,
|
|
2879
|
-
options:
|
|
2877
|
+
options: mt(F.val),
|
|
2880
2878
|
location: L
|
|
2881
2879
|
},
|
|
2882
2880
|
err: null
|
|
@@ -2884,7 +2882,7 @@ var Ln = (
|
|
|
2884
2882
|
val: {
|
|
2885
2883
|
type: A.plural,
|
|
2886
2884
|
value: n,
|
|
2887
|
-
options:
|
|
2885
|
+
options: mt(F.val),
|
|
2888
2886
|
offset: C,
|
|
2889
2887
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2890
2888
|
location: L
|
|
@@ -2935,7 +2933,7 @@ var Ln = (
|
|
|
2935
2933
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2936
2934
|
var n = [];
|
|
2937
2935
|
try {
|
|
2938
|
-
n =
|
|
2936
|
+
n = bn(t);
|
|
2939
2937
|
} catch (i) {
|
|
2940
2938
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2941
2939
|
}
|
|
@@ -2944,7 +2942,7 @@ var Ln = (
|
|
|
2944
2942
|
type: ee.number,
|
|
2945
2943
|
tokens: n,
|
|
2946
2944
|
location: r,
|
|
2947
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2945
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
2948
2946
|
},
|
|
2949
2947
|
err: null
|
|
2950
2948
|
};
|
|
@@ -2992,7 +2990,7 @@ var Ln = (
|
|
|
2992
2990
|
break;
|
|
2993
2991
|
}
|
|
2994
2992
|
var l = v(i, this.clonePosition());
|
|
2995
|
-
return s ? (a *= n,
|
|
2993
|
+
return s ? (a *= n, In(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2996
2994
|
}, e.prototype.offset = function() {
|
|
2997
2995
|
return this.position.offset;
|
|
2998
2996
|
}, e.prototype.isEOF = function() {
|
|
@@ -3007,7 +3005,7 @@ var Ln = (
|
|
|
3007
3005
|
var t = this.position.offset;
|
|
3008
3006
|
if (t >= this.message.length)
|
|
3009
3007
|
throw Error("out of bound");
|
|
3010
|
-
var r =
|
|
3008
|
+
var r = Jt(this.message, t);
|
|
3011
3009
|
if (r === void 0)
|
|
3012
3010
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3013
3011
|
return r;
|
|
@@ -3026,7 +3024,7 @@ var Ln = (
|
|
|
3026
3024
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3027
3025
|
}
|
|
3028
3026
|
}, e.prototype.bumpIf = function(t) {
|
|
3029
|
-
if (
|
|
3027
|
+
if (ft(this.message, t, this.offset())) {
|
|
3030
3028
|
for (var r = 0; r < t.length; r++)
|
|
3031
3029
|
this.bump();
|
|
3032
3030
|
return !0;
|
|
@@ -3048,7 +3046,7 @@ var Ln = (
|
|
|
3048
3046
|
break;
|
|
3049
3047
|
}
|
|
3050
3048
|
}, e.prototype.bumpSpace = function() {
|
|
3051
|
-
for (; !this.isEOF() &&
|
|
3049
|
+
for (; !this.isEOF() && Wt(this.char()); )
|
|
3052
3050
|
this.bump();
|
|
3053
3051
|
}, e.prototype.peek = function() {
|
|
3054
3052
|
if (this.isEOF())
|
|
@@ -3061,29 +3059,29 @@ var Ln = (
|
|
|
3061
3059
|
function ze(e) {
|
|
3062
3060
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3063
3061
|
}
|
|
3064
|
-
function
|
|
3062
|
+
function Ln(e) {
|
|
3065
3063
|
return ze(e) || e === 47;
|
|
3066
3064
|
}
|
|
3067
|
-
function
|
|
3065
|
+
function Dn(e) {
|
|
3068
3066
|
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;
|
|
3069
3067
|
}
|
|
3070
|
-
function
|
|
3068
|
+
function Wt(e) {
|
|
3071
3069
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3072
3070
|
}
|
|
3073
|
-
function
|
|
3071
|
+
function kn(e) {
|
|
3074
3072
|
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;
|
|
3075
3073
|
}
|
|
3076
3074
|
function We(e) {
|
|
3077
3075
|
e.forEach(function(t) {
|
|
3078
|
-
if (delete t.location,
|
|
3076
|
+
if (delete t.location, Dt(t) || kt(t))
|
|
3079
3077
|
for (var r in t.options)
|
|
3080
3078
|
delete t.options[r].location, We(t.options[r].value);
|
|
3081
|
-
else
|
|
3079
|
+
else Mt(t) && Ft(t.style) || (Rt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : Ut(t) && We(t.children);
|
|
3082
3080
|
});
|
|
3083
3081
|
}
|
|
3084
|
-
function
|
|
3082
|
+
function Un(e, t) {
|
|
3085
3083
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3086
|
-
var r = new
|
|
3084
|
+
var r = new Rn(e, t).parse();
|
|
3087
3085
|
if (r.err) {
|
|
3088
3086
|
var n = SyntaxError(y[r.err.kind]);
|
|
3089
3087
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3106,7 +3104,7 @@ var Se = (
|
|
|
3106
3104
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3107
3105
|
}, t;
|
|
3108
3106
|
}(Error)
|
|
3109
|
-
),
|
|
3107
|
+
), bt = (
|
|
3110
3108
|
/** @class */
|
|
3111
3109
|
function(e) {
|
|
3112
3110
|
xe(t, e);
|
|
@@ -3115,7 +3113,7 @@ var Se = (
|
|
|
3115
3113
|
}
|
|
3116
3114
|
return t;
|
|
3117
3115
|
}(Se)
|
|
3118
|
-
),
|
|
3116
|
+
), Fn = (
|
|
3119
3117
|
/** @class */
|
|
3120
3118
|
function(e) {
|
|
3121
3119
|
xe(t, e);
|
|
@@ -3124,7 +3122,7 @@ var Se = (
|
|
|
3124
3122
|
}
|
|
3125
3123
|
return t;
|
|
3126
3124
|
}(Se)
|
|
3127
|
-
),
|
|
3125
|
+
), Gn = (
|
|
3128
3126
|
/** @class */
|
|
3129
3127
|
function(e) {
|
|
3130
3128
|
xe(t, e);
|
|
@@ -3137,17 +3135,17 @@ var Se = (
|
|
|
3137
3135
|
(function(e) {
|
|
3138
3136
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3139
3137
|
})(w || (w = {}));
|
|
3140
|
-
function
|
|
3138
|
+
function $n(e) {
|
|
3141
3139
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3142
3140
|
var n = t[t.length - 1];
|
|
3143
3141
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3144
3142
|
}, []);
|
|
3145
3143
|
}
|
|
3146
|
-
function
|
|
3144
|
+
function jn(e) {
|
|
3147
3145
|
return typeof e == "function";
|
|
3148
3146
|
}
|
|
3149
3147
|
function pe(e, t, r, n, i, s, a) {
|
|
3150
|
-
if (e.length === 1 &&
|
|
3148
|
+
if (e.length === 1 && ut(e[0]))
|
|
3151
3149
|
return [
|
|
3152
3150
|
{
|
|
3153
3151
|
type: w.literal,
|
|
@@ -3156,14 +3154,14 @@ function pe(e, t, r, n, i, s, a) {
|
|
|
3156
3154
|
];
|
|
3157
3155
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3158
3156
|
var h = u[l];
|
|
3159
|
-
if (
|
|
3157
|
+
if (ut(h)) {
|
|
3160
3158
|
o.push({
|
|
3161
3159
|
type: w.literal,
|
|
3162
3160
|
value: h.value
|
|
3163
3161
|
});
|
|
3164
3162
|
continue;
|
|
3165
3163
|
}
|
|
3166
|
-
if (
|
|
3164
|
+
if (cn(h)) {
|
|
3167
3165
|
typeof s == "number" && o.push({
|
|
3168
3166
|
type: w.literal,
|
|
3169
3167
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3172,16 +3170,16 @@ function pe(e, t, r, n, i, s, a) {
|
|
|
3172
3170
|
}
|
|
3173
3171
|
var c = h.value;
|
|
3174
3172
|
if (!(i && c in i))
|
|
3175
|
-
throw new
|
|
3173
|
+
throw new Gn(c, a);
|
|
3176
3174
|
var f = i[c];
|
|
3177
|
-
if (
|
|
3175
|
+
if (hn(h)) {
|
|
3178
3176
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3179
3177
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3180
3178
|
value: f
|
|
3181
3179
|
});
|
|
3182
3180
|
continue;
|
|
3183
3181
|
}
|
|
3184
|
-
if (
|
|
3182
|
+
if (Rt(h)) {
|
|
3185
3183
|
var E = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3186
3184
|
o.push({
|
|
3187
3185
|
type: w.literal,
|
|
@@ -3189,7 +3187,7 @@ function pe(e, t, r, n, i, s, a) {
|
|
|
3189
3187
|
});
|
|
3190
3188
|
continue;
|
|
3191
3189
|
}
|
|
3192
|
-
if (
|
|
3190
|
+
if (Lt(h)) {
|
|
3193
3191
|
var E = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3194
3192
|
o.push({
|
|
3195
3193
|
type: w.literal,
|
|
@@ -3197,18 +3195,18 @@ function pe(e, t, r, n, i, s, a) {
|
|
|
3197
3195
|
});
|
|
3198
3196
|
continue;
|
|
3199
3197
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var E = typeof h.style == "string" ? n.number[h.style] :
|
|
3198
|
+
if (Mt(h)) {
|
|
3199
|
+
var E = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3202
3200
|
E && E.scale && (f = f * (E.scale || 1)), o.push({
|
|
3203
3201
|
type: w.literal,
|
|
3204
3202
|
value: r.getNumberFormat(t, E).format(f)
|
|
3205
3203
|
});
|
|
3206
3204
|
continue;
|
|
3207
3205
|
}
|
|
3208
|
-
if (
|
|
3206
|
+
if (Ut(h)) {
|
|
3209
3207
|
var d = h.children, b = h.value, g = i[b];
|
|
3210
|
-
if (!
|
|
3211
|
-
throw new
|
|
3208
|
+
if (!jn(g))
|
|
3209
|
+
throw new Fn(b, "function", a);
|
|
3212
3210
|
var p = pe(d, t, r, n, i, s), T = g(p.map(function(C) {
|
|
3213
3211
|
return C.value;
|
|
3214
3212
|
}));
|
|
@@ -3219,14 +3217,14 @@ function pe(e, t, r, n, i, s, a) {
|
|
|
3219
3217
|
};
|
|
3220
3218
|
}));
|
|
3221
3219
|
}
|
|
3222
|
-
if (
|
|
3220
|
+
if (Dt(h)) {
|
|
3223
3221
|
var P = h.options[f] || h.options.other;
|
|
3224
3222
|
if (!P)
|
|
3225
|
-
throw new
|
|
3223
|
+
throw new bt(h.value, f, Object.keys(h.options), a);
|
|
3226
3224
|
o.push.apply(o, pe(P.value, t, r, n, i));
|
|
3227
3225
|
continue;
|
|
3228
3226
|
}
|
|
3229
|
-
if (
|
|
3227
|
+
if (kt(h)) {
|
|
3230
3228
|
var P = h.options["=".concat(f)];
|
|
3231
3229
|
if (!P) {
|
|
3232
3230
|
if (!Intl.PluralRules)
|
|
@@ -3237,21 +3235,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3237
3235
|
P = h.options[H] || h.options.other;
|
|
3238
3236
|
}
|
|
3239
3237
|
if (!P)
|
|
3240
|
-
throw new
|
|
3238
|
+
throw new bt(h.value, f, Object.keys(h.options), a);
|
|
3241
3239
|
o.push.apply(o, pe(P.value, t, r, n, i, f - (h.offset || 0)));
|
|
3242
3240
|
continue;
|
|
3243
3241
|
}
|
|
3244
3242
|
}
|
|
3245
|
-
return
|
|
3243
|
+
return $n(o);
|
|
3246
3244
|
}
|
|
3247
|
-
function
|
|
3245
|
+
function Vn(e, t) {
|
|
3248
3246
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3249
3247
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3250
3248
|
}, {})) : e;
|
|
3251
3249
|
}
|
|
3252
|
-
function
|
|
3250
|
+
function Jn(e, t) {
|
|
3253
3251
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3254
|
-
return r[n] =
|
|
3252
|
+
return r[n] = Vn(e[n], t[n]), r;
|
|
3255
3253
|
}, x({}, e)) : e;
|
|
3256
3254
|
}
|
|
3257
3255
|
function Re(e) {
|
|
@@ -3268,7 +3266,7 @@ function Re(e) {
|
|
|
3268
3266
|
}
|
|
3269
3267
|
};
|
|
3270
3268
|
}
|
|
3271
|
-
function
|
|
3269
|
+
function zn(e) {
|
|
3272
3270
|
return e === void 0 && (e = {
|
|
3273
3271
|
number: {},
|
|
3274
3272
|
dateTime: {},
|
|
@@ -3300,7 +3298,7 @@ function Wn(e) {
|
|
|
3300
3298
|
})
|
|
3301
3299
|
};
|
|
3302
3300
|
}
|
|
3303
|
-
var
|
|
3301
|
+
var Wn = (
|
|
3304
3302
|
/** @class */
|
|
3305
3303
|
function() {
|
|
3306
3304
|
function e(t, r, n, i) {
|
|
@@ -3332,13 +3330,13 @@ var Xn = (
|
|
|
3332
3330
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3333
3331
|
var a = i || {};
|
|
3334
3332
|
a.formatters;
|
|
3335
|
-
var o =
|
|
3333
|
+
var o = tn(a, ["formatters"]);
|
|
3336
3334
|
this.ast = e.__parse(t, x(x({}, o), { locale: this.resolvedLocale }));
|
|
3337
3335
|
} else
|
|
3338
3336
|
this.ast = t;
|
|
3339
3337
|
if (!Array.isArray(this.ast))
|
|
3340
3338
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3341
|
-
this.formats =
|
|
3339
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || zn(this.formatterCache);
|
|
3342
3340
|
}
|
|
3343
3341
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3344
3342
|
get: function() {
|
|
@@ -3351,7 +3349,7 @@ var Xn = (
|
|
|
3351
3349
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3352
3350
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3353
3351
|
}
|
|
3354
|
-
}, e.__parse =
|
|
3352
|
+
}, e.__parse = Un, e.formats = {
|
|
3355
3353
|
number: {
|
|
3356
3354
|
integer: {
|
|
3357
3355
|
maximumFractionDigits: 0
|
|
@@ -3412,7 +3410,7 @@ var Xn = (
|
|
|
3412
3410
|
}, e;
|
|
3413
3411
|
}()
|
|
3414
3412
|
);
|
|
3415
|
-
function
|
|
3413
|
+
function Xn(e, t) {
|
|
3416
3414
|
if (t == null)
|
|
3417
3415
|
return;
|
|
3418
3416
|
if (t in e)
|
|
@@ -3433,60 +3431,60 @@ function Zn(e, t) {
|
|
|
3433
3431
|
n = void 0;
|
|
3434
3432
|
return n;
|
|
3435
3433
|
}
|
|
3436
|
-
const W = {},
|
|
3434
|
+
const W = {}, Zn = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), Xt = (e, t) => {
|
|
3437
3435
|
if (t == null)
|
|
3438
3436
|
return;
|
|
3439
3437
|
if (t in W && e in W[t])
|
|
3440
3438
|
return W[t][e];
|
|
3441
3439
|
const r = Te(t);
|
|
3442
3440
|
for (let n = 0; n < r.length; n++) {
|
|
3443
|
-
const i = r[n], s =
|
|
3441
|
+
const i = r[n], s = qn(i, e);
|
|
3444
3442
|
if (s)
|
|
3445
|
-
return
|
|
3443
|
+
return Zn(e, t, s);
|
|
3446
3444
|
}
|
|
3447
3445
|
};
|
|
3448
|
-
let
|
|
3446
|
+
let Qe;
|
|
3449
3447
|
const de = ve({});
|
|
3450
|
-
function
|
|
3451
|
-
return
|
|
3448
|
+
function Qn(e) {
|
|
3449
|
+
return Qe[e] || null;
|
|
3452
3450
|
}
|
|
3453
|
-
function
|
|
3454
|
-
return e in
|
|
3451
|
+
function Zt(e) {
|
|
3452
|
+
return e in Qe;
|
|
3455
3453
|
}
|
|
3456
|
-
function
|
|
3457
|
-
if (!
|
|
3454
|
+
function qn(e, t) {
|
|
3455
|
+
if (!Zt(e))
|
|
3458
3456
|
return null;
|
|
3459
|
-
const r =
|
|
3460
|
-
return
|
|
3457
|
+
const r = Qn(e);
|
|
3458
|
+
return Xn(r, t);
|
|
3461
3459
|
}
|
|
3462
|
-
function
|
|
3460
|
+
function Yn(e) {
|
|
3463
3461
|
if (e == null)
|
|
3464
3462
|
return;
|
|
3465
3463
|
const t = Te(e);
|
|
3466
3464
|
for (let r = 0; r < t.length; r++) {
|
|
3467
3465
|
const n = t[r];
|
|
3468
|
-
if (
|
|
3466
|
+
if (Zt(n))
|
|
3469
3467
|
return n;
|
|
3470
3468
|
}
|
|
3471
3469
|
}
|
|
3472
|
-
function
|
|
3473
|
-
delete W[e], de.update((r) => (r[e] =
|
|
3470
|
+
function Qt(e, ...t) {
|
|
3471
|
+
delete W[e], de.update((r) => (r[e] = en.all([r[e] || {}, ...t]), r));
|
|
3474
3472
|
}
|
|
3475
3473
|
ie(
|
|
3476
3474
|
[de],
|
|
3477
3475
|
([e]) => Object.keys(e)
|
|
3478
3476
|
);
|
|
3479
|
-
de.subscribe((e) =>
|
|
3477
|
+
de.subscribe((e) => Qe = e);
|
|
3480
3478
|
const ye = {};
|
|
3481
|
-
function
|
|
3479
|
+
function Kn(e, t) {
|
|
3482
3480
|
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3483
3481
|
}
|
|
3484
|
-
function
|
|
3482
|
+
function qt(e) {
|
|
3485
3483
|
return ye[e];
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3485
|
+
function ei(e) {
|
|
3488
3486
|
return Te(e).map((t) => {
|
|
3489
|
-
const r =
|
|
3487
|
+
const r = qt(t);
|
|
3490
3488
|
return [t, r ? [...r] : []];
|
|
3491
3489
|
}).filter(([, t]) => t.length > 0);
|
|
3492
3490
|
}
|
|
@@ -3494,31 +3492,31 @@ function Xe(e) {
|
|
|
3494
3492
|
return e == null ? !1 : Te(e).some(
|
|
3495
3493
|
(t) => {
|
|
3496
3494
|
var r;
|
|
3497
|
-
return (r =
|
|
3495
|
+
return (r = qt(t)) == null ? void 0 : r.size;
|
|
3498
3496
|
}
|
|
3499
3497
|
);
|
|
3500
3498
|
}
|
|
3501
|
-
function
|
|
3499
|
+
function ti(e, t) {
|
|
3502
3500
|
return Promise.all(
|
|
3503
|
-
t.map((n) => (
|
|
3504
|
-
).then((n) =>
|
|
3501
|
+
t.map((n) => (Kn(e, n), n().then((i) => i.default || i)))
|
|
3502
|
+
).then((n) => Qt(e, ...n));
|
|
3505
3503
|
}
|
|
3506
3504
|
const oe = {};
|
|
3507
|
-
function
|
|
3505
|
+
function Yt(e) {
|
|
3508
3506
|
if (!Xe(e))
|
|
3509
3507
|
return e in oe ? oe[e] : Promise.resolve();
|
|
3510
|
-
const t =
|
|
3508
|
+
const t = ei(e);
|
|
3511
3509
|
return oe[e] = Promise.all(
|
|
3512
3510
|
t.map(
|
|
3513
|
-
([r, n]) =>
|
|
3511
|
+
([r, n]) => ti(r, n)
|
|
3514
3512
|
)
|
|
3515
3513
|
).then(() => {
|
|
3516
3514
|
if (Xe(e))
|
|
3517
|
-
return
|
|
3515
|
+
return Yt(e);
|
|
3518
3516
|
delete oe[e];
|
|
3519
3517
|
}), oe[e];
|
|
3520
3518
|
}
|
|
3521
|
-
const
|
|
3519
|
+
const ri = {
|
|
3522
3520
|
number: {
|
|
3523
3521
|
scientific: { notation: "scientific" },
|
|
3524
3522
|
engineering: { notation: "engineering" },
|
|
@@ -3547,34 +3545,34 @@ const ni = {
|
|
|
3547
3545
|
timeZoneName: "short"
|
|
3548
3546
|
}
|
|
3549
3547
|
}
|
|
3550
|
-
},
|
|
3548
|
+
}, ni = {
|
|
3551
3549
|
fallbackLocale: null,
|
|
3552
3550
|
loadingDelay: 200,
|
|
3553
|
-
formats:
|
|
3551
|
+
formats: ri,
|
|
3554
3552
|
warnOnMissingMessages: !0,
|
|
3555
3553
|
handleMissingMessage: void 0,
|
|
3556
3554
|
ignoreTag: !0
|
|
3557
|
-
},
|
|
3555
|
+
}, ii = ni;
|
|
3558
3556
|
function re() {
|
|
3559
|
-
return
|
|
3557
|
+
return ii;
|
|
3560
3558
|
}
|
|
3561
3559
|
const Le = ve(!1);
|
|
3562
|
-
var
|
|
3560
|
+
var si = Object.defineProperty, ai = Object.defineProperties, oi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3563
3561
|
for (var r in t || (t = {}))
|
|
3564
|
-
|
|
3565
|
-
if (
|
|
3566
|
-
for (var r of
|
|
3567
|
-
|
|
3562
|
+
ui.call(t, r) && pt(e, r, t[r]);
|
|
3563
|
+
if (gt)
|
|
3564
|
+
for (var r of gt(t))
|
|
3565
|
+
li.call(t, r) && pt(e, r, t[r]);
|
|
3568
3566
|
return e;
|
|
3569
|
-
},
|
|
3567
|
+
}, ci = (e, t) => ai(e, oi(t));
|
|
3570
3568
|
let Ze;
|
|
3571
3569
|
const _e = ve(null);
|
|
3572
|
-
function
|
|
3570
|
+
function yt(e) {
|
|
3573
3571
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3574
3572
|
}
|
|
3575
3573
|
function Te(e, t = re().fallbackLocale) {
|
|
3576
|
-
const r =
|
|
3577
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3574
|
+
const r = yt(e);
|
|
3575
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
3578
3576
|
}
|
|
3579
3577
|
function X() {
|
|
3580
3578
|
return Ze != null ? Ze : void 0;
|
|
@@ -3582,22 +3580,22 @@ function X() {
|
|
|
3582
3580
|
_e.subscribe((e) => {
|
|
3583
3581
|
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3584
3582
|
});
|
|
3585
|
-
const
|
|
3586
|
-
if (e &&
|
|
3583
|
+
const fi = (e) => {
|
|
3584
|
+
if (e && Yn(e) && Xe(e)) {
|
|
3587
3585
|
const { loadingDelay: t } = re();
|
|
3588
3586
|
let r;
|
|
3589
3587
|
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3590
3588
|
() => Le.set(!0),
|
|
3591
3589
|
t
|
|
3592
|
-
) : Le.set(!0),
|
|
3590
|
+
) : Le.set(!0), Yt(e).then(() => {
|
|
3593
3591
|
_e.set(e);
|
|
3594
3592
|
}).finally(() => {
|
|
3595
3593
|
clearTimeout(r), Le.set(!1);
|
|
3596
3594
|
});
|
|
3597
3595
|
}
|
|
3598
3596
|
return _e.set(e);
|
|
3599
|
-
}, se =
|
|
3600
|
-
set:
|
|
3597
|
+
}, se = ci(hi({}, _e), {
|
|
3598
|
+
set: fi
|
|
3601
3599
|
}), Ae = (e) => {
|
|
3602
3600
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3603
3601
|
return (n) => {
|
|
@@ -3605,20 +3603,20 @@ const mi = (e) => {
|
|
|
3605
3603
|
return i in t ? t[i] : t[i] = e(n);
|
|
3606
3604
|
};
|
|
3607
3605
|
};
|
|
3608
|
-
var
|
|
3606
|
+
var mi = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
3609
3607
|
for (var r in t || (t = {}))
|
|
3610
|
-
|
|
3608
|
+
Kt.call(t, r) && _t(e, r, t[r]);
|
|
3611
3609
|
if (Ee)
|
|
3612
3610
|
for (var r of Ee(t))
|
|
3613
|
-
|
|
3611
|
+
er.call(t, r) && _t(e, r, t[r]);
|
|
3614
3612
|
return e;
|
|
3615
3613
|
}, ae = (e, t) => {
|
|
3616
3614
|
var r = {};
|
|
3617
3615
|
for (var n in e)
|
|
3618
|
-
|
|
3616
|
+
Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3619
3617
|
if (e != null && Ee)
|
|
3620
3618
|
for (var n of Ee(e))
|
|
3621
|
-
t.indexOf(n) < 0 &&
|
|
3619
|
+
t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
|
|
3622
3620
|
return r;
|
|
3623
3621
|
};
|
|
3624
3622
|
const ce = (e, t) => {
|
|
@@ -3626,21 +3624,21 @@ const ce = (e, t) => {
|
|
|
3626
3624
|
if (e in r && t in r[e])
|
|
3627
3625
|
return r[e][t];
|
|
3628
3626
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3629
|
-
},
|
|
3627
|
+
}, di = Ae(
|
|
3630
3628
|
(e) => {
|
|
3631
3629
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3632
3630
|
if (r == null)
|
|
3633
3631
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3634
3632
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
3635
3633
|
}
|
|
3636
|
-
),
|
|
3634
|
+
), bi = Ae(
|
|
3637
3635
|
(e) => {
|
|
3638
3636
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3639
3637
|
if (r == null)
|
|
3640
3638
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3641
3639
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3640
|
}
|
|
3643
|
-
),
|
|
3641
|
+
), gi = Ae(
|
|
3644
3642
|
(e) => {
|
|
3645
3643
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3646
3644
|
if (r == null)
|
|
@@ -3649,33 +3647,33 @@ const ce = (e, t) => {
|
|
|
3649
3647
|
);
|
|
3650
3648
|
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3651
3649
|
}
|
|
3652
|
-
),
|
|
3650
|
+
), pi = (e = {}) => {
|
|
3653
3651
|
var t = e, {
|
|
3654
3652
|
locale: r = X()
|
|
3655
3653
|
} = t, n = ae(t, [
|
|
3656
3654
|
"locale"
|
|
3657
3655
|
]);
|
|
3658
|
-
return
|
|
3659
|
-
},
|
|
3656
|
+
return di(qe({ locale: r }, n));
|
|
3657
|
+
}, yi = (e = {}) => {
|
|
3660
3658
|
var t = e, {
|
|
3661
3659
|
locale: r = X()
|
|
3662
3660
|
} = t, n = ae(t, [
|
|
3663
3661
|
"locale"
|
|
3664
3662
|
]);
|
|
3665
|
-
return
|
|
3666
|
-
},
|
|
3663
|
+
return bi(qe({ locale: r }, n));
|
|
3664
|
+
}, _i = (e = {}) => {
|
|
3667
3665
|
var t = e, {
|
|
3668
3666
|
locale: r = X()
|
|
3669
3667
|
} = t, n = ae(t, [
|
|
3670
3668
|
"locale"
|
|
3671
3669
|
]);
|
|
3672
|
-
return
|
|
3673
|
-
},
|
|
3670
|
+
return gi(qe({ locale: r }, n));
|
|
3671
|
+
}, Ei = Ae(
|
|
3674
3672
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3675
|
-
(e, t = X()) => new
|
|
3673
|
+
(e, t = X()) => new Wn(e, t, re().formats, {
|
|
3676
3674
|
ignoreTag: re().ignoreTag
|
|
3677
3675
|
})
|
|
3678
|
-
),
|
|
3676
|
+
), vi = (e, t = {}) => {
|
|
3679
3677
|
var r, n, i, s;
|
|
3680
3678
|
let a = t;
|
|
3681
3679
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3688,7 +3686,7 @@ const ce = (e, t) => {
|
|
|
3688
3686
|
throw new Error(
|
|
3689
3687
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3690
3688
|
);
|
|
3691
|
-
let h =
|
|
3689
|
+
let h = Xt(e, l);
|
|
3692
3690
|
if (!h)
|
|
3693
3691
|
h = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3694
3692
|
else if (typeof h != "string")
|
|
@@ -3699,7 +3697,7 @@ const ce = (e, t) => {
|
|
|
3699
3697
|
return h;
|
|
3700
3698
|
let c = h;
|
|
3701
3699
|
try {
|
|
3702
|
-
c =
|
|
3700
|
+
c = Ei(h, l).format(o);
|
|
3703
3701
|
} catch (f) {
|
|
3704
3702
|
f instanceof Error && console.warn(
|
|
3705
3703
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3707,18 +3705,18 @@ const ce = (e, t) => {
|
|
|
3707
3705
|
);
|
|
3708
3706
|
}
|
|
3709
3707
|
return c;
|
|
3710
|
-
},
|
|
3708
|
+
}, xi = (e, t) => _i(t).format(e), Si = (e, t) => yi(t).format(e), Ti = (e, t) => pi(t).format(e), Ai = (e, t = X()) => Xt(e, t), Hi = ie([se, de], () => vi);
|
|
3709
|
+
ie([se], () => xi);
|
|
3711
3710
|
ie([se], () => Si);
|
|
3712
3711
|
ie([se], () => Ti);
|
|
3713
|
-
ie([se], () => Ai);
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
Yt(e, t);
|
|
3712
|
+
ie([se, de], () => Ai);
|
|
3713
|
+
function Et(e, t) {
|
|
3714
|
+
Qt(e, t);
|
|
3717
3715
|
}
|
|
3718
|
-
function
|
|
3716
|
+
function Ci(e) {
|
|
3719
3717
|
se.set(e);
|
|
3720
3718
|
}
|
|
3721
|
-
const
|
|
3719
|
+
const vt = {
|
|
3722
3720
|
en: {
|
|
3723
3721
|
enrolled: "Enrolled",
|
|
3724
3722
|
scoreCriteria: "Score Criteria",
|
|
@@ -4050,10 +4048,10 @@ const St = {
|
|
|
4050
4048
|
December: "December"
|
|
4051
4049
|
}
|
|
4052
4050
|
};
|
|
4053
|
-
function
|
|
4054
|
-
|
|
4051
|
+
function Bi(e) {
|
|
4052
|
+
gr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
4055
4053
|
}
|
|
4056
|
-
function
|
|
4054
|
+
function xt(e) {
|
|
4057
4055
|
let t, r, n, i, s, a;
|
|
4058
4056
|
return {
|
|
4059
4057
|
c() {
|
|
@@ -4087,28 +4085,28 @@ function Tt(e) {
|
|
|
4087
4085
|
}
|
|
4088
4086
|
};
|
|
4089
4087
|
}
|
|
4090
|
-
function
|
|
4088
|
+
function St(e) {
|
|
4091
4089
|
let t, r = (
|
|
4092
4090
|
/*userenrolled*/
|
|
4093
|
-
e[5] &&
|
|
4091
|
+
e[5] && Tt(e)
|
|
4094
4092
|
);
|
|
4095
4093
|
return {
|
|
4096
4094
|
c() {
|
|
4097
|
-
r && r.c(), t =
|
|
4095
|
+
r && r.c(), t = _r();
|
|
4098
4096
|
},
|
|
4099
4097
|
m(n, i) {
|
|
4100
4098
|
r && r.m(n, i), G(n, t, i);
|
|
4101
4099
|
},
|
|
4102
4100
|
p(n, i) {
|
|
4103
4101
|
/*userenrolled*/
|
|
4104
|
-
n[5] ? r ? r.p(n, i) : (r =
|
|
4102
|
+
n[5] ? r ? r.p(n, i) : (r = Tt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4105
4103
|
},
|
|
4106
4104
|
d(n) {
|
|
4107
4105
|
n && U(t), r && r.d(n);
|
|
4108
4106
|
}
|
|
4109
4107
|
};
|
|
4110
4108
|
}
|
|
4111
|
-
function
|
|
4109
|
+
function Tt(e) {
|
|
4112
4110
|
let t, r = (
|
|
4113
4111
|
/*$_*/
|
|
4114
4112
|
e[16]("enrolled") + ""
|
|
@@ -4130,7 +4128,7 @@ function Ht(e) {
|
|
|
4130
4128
|
}
|
|
4131
4129
|
};
|
|
4132
4130
|
}
|
|
4133
|
-
function
|
|
4131
|
+
function Ni(e) {
|
|
4134
4132
|
let t, r, n, i, s;
|
|
4135
4133
|
return {
|
|
4136
4134
|
c() {
|
|
@@ -4160,7 +4158,7 @@ function Pi(e) {
|
|
|
4160
4158
|
}
|
|
4161
4159
|
};
|
|
4162
4160
|
}
|
|
4163
|
-
function
|
|
4161
|
+
function Pi(e) {
|
|
4164
4162
|
let t, r, n, i, s;
|
|
4165
4163
|
return {
|
|
4166
4164
|
c() {
|
|
@@ -4193,7 +4191,7 @@ function Ii(e) {
|
|
|
4193
4191
|
}
|
|
4194
4192
|
};
|
|
4195
4193
|
}
|
|
4196
|
-
function
|
|
4194
|
+
function At(e) {
|
|
4197
4195
|
let t, r, n, i, s;
|
|
4198
4196
|
return {
|
|
4199
4197
|
c() {
|
|
@@ -4229,7 +4227,7 @@ function Ct(e) {
|
|
|
4229
4227
|
}
|
|
4230
4228
|
};
|
|
4231
4229
|
}
|
|
4232
|
-
function
|
|
4230
|
+
function Ht(e) {
|
|
4233
4231
|
let t, r, n = (
|
|
4234
4232
|
/*$_*/
|
|
4235
4233
|
e[16]("scoreCriteria") + ""
|
|
@@ -4268,7 +4266,7 @@ function Bt(e) {
|
|
|
4268
4266
|
/*matchScoreCriteria*/
|
|
4269
4267
|
e[19].call(null, a)
|
|
4270
4268
|
),
|
|
4271
|
-
|
|
4269
|
+
Er(
|
|
4272
4270
|
H,
|
|
4273
4271
|
"click",
|
|
4274
4272
|
/*click_handler*/
|
|
@@ -4310,26 +4308,26 @@ function Bt(e) {
|
|
|
4310
4308
|
}
|
|
4311
4309
|
};
|
|
4312
4310
|
}
|
|
4313
|
-
function
|
|
4311
|
+
function Ii(e) {
|
|
4314
4312
|
let t, r, n, i, s, a, o, l, u, h = (
|
|
4315
4313
|
/*status*/
|
|
4316
|
-
e[0] &&
|
|
4314
|
+
e[0] && xt(e)
|
|
4317
4315
|
), c = (
|
|
4318
4316
|
/*showenrolled*/
|
|
4319
|
-
e[7] == "true" &&
|
|
4317
|
+
e[7] == "true" && St(e)
|
|
4320
4318
|
);
|
|
4321
4319
|
function f(p, T) {
|
|
4322
4320
|
return (
|
|
4323
4321
|
/*thumbnail*/
|
|
4324
|
-
p[4] ?
|
|
4322
|
+
p[4] ? Pi : Ni
|
|
4325
4323
|
);
|
|
4326
4324
|
}
|
|
4327
4325
|
let E = f(e), d = E(e), b = (
|
|
4328
4326
|
/*startdate*/
|
|
4329
|
-
e[2] &&
|
|
4327
|
+
e[2] && At(e)
|
|
4330
4328
|
), g = (
|
|
4331
4329
|
/*isLoggedIn*/
|
|
4332
|
-
e[12] &&
|
|
4330
|
+
e[12] && Ht(e)
|
|
4333
4331
|
);
|
|
4334
4332
|
return {
|
|
4335
4333
|
c() {
|
|
@@ -4343,15 +4341,15 @@ function Oi(e) {
|
|
|
4343
4341
|
},
|
|
4344
4342
|
p(p, T) {
|
|
4345
4343
|
/*status*/
|
|
4346
|
-
p[0] ? h ? h.p(p, T) : (h =
|
|
4347
|
-
p[7] == "true" ? c ? c.p(p, T) : (c =
|
|
4344
|
+
p[0] ? h ? h.p(p, T) : (h = xt(p), h.c(), h.m(t, r)) : h && (h.d(1), h = null), /*showenrolled*/
|
|
4345
|
+
p[7] == "true" ? c ? c.p(p, T) : (c = St(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), E === (E = f(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
|
|
4348
4346
|
2 && $(
|
|
4349
4347
|
o,
|
|
4350
4348
|
/*title*/
|
|
4351
4349
|
p[1]
|
|
4352
4350
|
), /*startdate*/
|
|
4353
|
-
p[2] ? b ? b.p(p, T) : (b =
|
|
4354
|
-
p[12] ? g ? g.p(p, T) : (g =
|
|
4351
|
+
p[2] ? b ? b.p(p, T) : (b = At(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
|
|
4352
|
+
p[12] ? g ? g.p(p, T) : (g = Ht(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
|
|
4355
4353
|
},
|
|
4356
4354
|
i: k,
|
|
4357
4355
|
o: k,
|
|
@@ -4360,45 +4358,45 @@ function Oi(e) {
|
|
|
4360
4358
|
}
|
|
4361
4359
|
};
|
|
4362
4360
|
}
|
|
4363
|
-
function
|
|
4361
|
+
function Oi(e, t, r) {
|
|
4364
4362
|
let n;
|
|
4365
|
-
|
|
4363
|
+
br(e, Hi, (m) => r(16, n = m));
|
|
4366
4364
|
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: c = "" } = t, { scorecriteria: f = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: P = "" } = t, { translationurl: H = "" } = t, C, F = "", L = !1, j = "", V = "", B = "";
|
|
4367
4365
|
const R = () => {
|
|
4368
4366
|
fetch(H).then((O) => O.json()).then((O) => {
|
|
4369
4367
|
Object.keys(O).forEach((J) => {
|
|
4370
|
-
|
|
4368
|
+
Et(J, O[J]);
|
|
4371
4369
|
});
|
|
4372
4370
|
}).catch((O) => {
|
|
4373
4371
|
console.log(O);
|
|
4374
4372
|
});
|
|
4375
4373
|
};
|
|
4376
|
-
Object.keys(
|
|
4377
|
-
|
|
4374
|
+
Object.keys(vt).forEach((m) => {
|
|
4375
|
+
Et(m, vt[m]);
|
|
4378
4376
|
});
|
|
4379
|
-
const
|
|
4377
|
+
const Ye = (m) => {
|
|
4380
4378
|
m.data && (m.data && m.data.type == "SessionID" && r(12, L = !0), m.data.type == `TournamentStatus_${u}` && r(0, l = m.data.status));
|
|
4381
4379
|
}, He = () => {
|
|
4382
4380
|
const m = { month: "long" };
|
|
4383
|
-
let O = new Date(o), J = new Intl.DateTimeFormat("en", m).format(O),
|
|
4381
|
+
let O = new Date(o), J = new Intl.DateTimeFormat("en", m).format(O), ar = O.getDate(), or = O.toLocaleString("en-GB", {
|
|
4384
4382
|
hour: "numeric",
|
|
4385
4383
|
minute: "numeric",
|
|
4386
4384
|
hour12: !1
|
|
4387
4385
|
});
|
|
4388
|
-
const
|
|
4389
|
-
r(11, F = `${
|
|
4386
|
+
const ur = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4387
|
+
r(11, F = `${ar} ` + n(`${J}`) + ", " + ur() + ` ${or}`);
|
|
4390
4388
|
}, Ce = () => {
|
|
4391
4389
|
l == "Unstarted" && (r(13, j = n("scheduled")), r(15, B = "StatusUnstarted")), l == "Running" && (r(13, j = n("ongoing")), r(15, B = "StatusRunning")), (l == "Closed" || l == "Closing") && r(13, j = n("finished")), l == "Closed" && r(15, B = "StatusClosed"), l == "Closing" && r(15, B = "StatusClosing");
|
|
4392
4390
|
}, Be = () => {
|
|
4393
4391
|
f == "BetCount" && r(14, V = n("betCount")), f == "MaxWinStakeRatio" && r(14, V = n("maxWinStakeRatio")), f == "WinStakeRatio" && r(14, V = n("winStakeRatio")), f == "Stake" && r(14, V = n("stake"));
|
|
4394
|
-
},
|
|
4392
|
+
}, Ke = (m, O) => {
|
|
4395
4393
|
window.postMessage({ type: "tournamentGamesClicked", tourId: O }, window.location.href);
|
|
4396
|
-
},
|
|
4394
|
+
}, tr = () => {
|
|
4397
4395
|
i.length > 0 && i != "false" ? r(12, L = !0) : r(12, L = !1);
|
|
4398
|
-
},
|
|
4396
|
+
}, rr = () => {
|
|
4399
4397
|
let m = document.createElement("style");
|
|
4400
4398
|
m.innerHTML = T, C.appendChild(m);
|
|
4401
|
-
},
|
|
4399
|
+
}, nr = () => {
|
|
4402
4400
|
let m = new URL(P), O = document.createElement("style");
|
|
4403
4401
|
fetch(m.href).then((J) => J.text()).then((J) => {
|
|
4404
4402
|
O.innerHTML = J, setTimeout(
|
|
@@ -4413,13 +4411,13 @@ function wi(e, t, r) {
|
|
|
4413
4411
|
);
|
|
4414
4412
|
});
|
|
4415
4413
|
};
|
|
4416
|
-
|
|
4417
|
-
window.removeEventListener("message",
|
|
4414
|
+
Tr(() => (setTimeout(() => et(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", Ye, !1), () => {
|
|
4415
|
+
window.removeEventListener("message", Ye);
|
|
4418
4416
|
}));
|
|
4419
|
-
const
|
|
4420
|
-
|
|
4421
|
-
},
|
|
4422
|
-
function
|
|
4417
|
+
const et = () => {
|
|
4418
|
+
Ci(g), Be(), Ce(), o && He();
|
|
4419
|
+
}, ir = () => Ke();
|
|
4420
|
+
function sr(m) {
|
|
4423
4421
|
ke[m ? "unshift" : "push"](() => {
|
|
4424
4422
|
C = m, r(10, C);
|
|
4425
4423
|
});
|
|
@@ -4428,12 +4426,12 @@ function wi(e, t, r) {
|
|
|
4428
4426
|
"session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, h = m.thumbnail), "userenrolled" in m && r(5, c = m.userenrolled), "scorecriteria" in m && r(23, f = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, P = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
|
|
4429
4427
|
}, e.$$.update = () => {
|
|
4430
4428
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
4431
|
-
33555456 && C && T &&
|
|
4432
|
-
67109888 && C && P &&
|
|
4429
|
+
33555456 && C && T && rr(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
4430
|
+
67109888 && C && P && nr(), e.$$.dirty[0] & /*translationurl*/
|
|
4433
4431
|
134217728 && H && R(), e.$$.dirty[0] & /*session*/
|
|
4434
|
-
2097152 && i &&
|
|
4432
|
+
2097152 && i && tr(), e.$$.dirty[0] & /*status*/
|
|
4435
4433
|
1 && l && Ce(), e.$$.dirty[0] & /*title, lang*/
|
|
4436
|
-
16777218 && a && g &&
|
|
4434
|
+
16777218 && a && g && et(), e.$$.dirty[0] & /*startdate*/
|
|
4437
4435
|
4 && o && He(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4438
4436
|
8388608 && f && Be();
|
|
4439
4437
|
}, [
|
|
@@ -4457,7 +4455,7 @@ function wi(e, t, r) {
|
|
|
4457
4455
|
He,
|
|
4458
4456
|
Ce,
|
|
4459
4457
|
Be,
|
|
4460
|
-
|
|
4458
|
+
Ke,
|
|
4461
4459
|
i,
|
|
4462
4460
|
s,
|
|
4463
4461
|
f,
|
|
@@ -4465,18 +4463,18 @@ function wi(e, t, r) {
|
|
|
4465
4463
|
T,
|
|
4466
4464
|
P,
|
|
4467
4465
|
H,
|
|
4468
|
-
|
|
4469
|
-
|
|
4466
|
+
ir,
|
|
4467
|
+
sr
|
|
4470
4468
|
];
|
|
4471
4469
|
}
|
|
4472
|
-
class
|
|
4470
|
+
class wi extends Lr {
|
|
4473
4471
|
constructor(t) {
|
|
4474
|
-
super(),
|
|
4472
|
+
super(), Mr(
|
|
4475
4473
|
this,
|
|
4476
4474
|
t,
|
|
4477
|
-
wi,
|
|
4478
4475
|
Oi,
|
|
4479
|
-
|
|
4476
|
+
Ii,
|
|
4477
|
+
Bt,
|
|
4480
4478
|
{
|
|
4481
4479
|
session: 21,
|
|
4482
4480
|
userid: 22,
|
|
@@ -4496,7 +4494,7 @@ class Mi extends kr {
|
|
|
4496
4494
|
clientstylingurl: 26,
|
|
4497
4495
|
translationurl: 27
|
|
4498
4496
|
},
|
|
4499
|
-
|
|
4497
|
+
Bi,
|
|
4500
4498
|
[-1, -1]
|
|
4501
4499
|
);
|
|
4502
4500
|
}
|
|
@@ -4603,7 +4601,7 @@ class Mi extends kr {
|
|
|
4603
4601
|
this.$$set({ translationurl: t }), N();
|
|
4604
4602
|
}
|
|
4605
4603
|
}
|
|
4606
|
-
|
|
4604
|
+
Rr(wi, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4607
4605
|
export {
|
|
4608
|
-
|
|
4606
|
+
wi as default
|
|
4609
4607
|
};
|