@everymatrix/casino-tournaments-thumbnail 1.77.20 → 1.77.21
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-C8X4hSIn.js → CasinoTournamentsThumbnail-B2wJHr6v.js} +688 -682
- package/components/{CasinoTournamentsThumbnail-DMR-gqJC.js → CasinoTournamentsThumbnail-aJGV3IbX.js} +672 -666
- package/components/CasinoTournamentsThumbnail-wcaFhkN9.cjs +5 -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/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
- package/stencil/{ui-image-BBrwf8a4.cjs → ui-image-Bk8cIvcH.cjs} +1 -1
- package/stencil/{ui-image-B374V2Sk.js → ui-image-CXqPvnQ2.js} +1 -1
- package/stencil/{ui-image-CQSJVNNX.js → ui-image-DgbODkuX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoTournamentsThumbnail-rEZ5JzT4.cjs +0 -18
- package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
package/components/{CasinoTournamentsThumbnail-DMR-gqJC.js → CasinoTournamentsThumbnail-aJGV3IbX.js}
RENAMED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "../stencil/ui-skeleton-DSebcnN1.js";
|
|
2
|
-
import "../stencil/ui-image-
|
|
2
|
+
import "../stencil/ui-image-CXqPvnQ2.js";
|
|
3
3
|
function j() {
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Ot(e) {
|
|
6
6
|
return e();
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function lt() {
|
|
9
9
|
return /* @__PURE__ */ Object.create(null);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
e.forEach(
|
|
11
|
+
function re(e) {
|
|
12
|
+
e.forEach(Ot);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Se(e) {
|
|
15
15
|
return typeof e == "function";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Pt(e, t) {
|
|
18
18
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
function
|
|
22
|
-
return e === t ? !0 : (
|
|
20
|
+
let Ce;
|
|
21
|
+
function Xe(e, t) {
|
|
22
|
+
return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function ar(e) {
|
|
25
25
|
return Object.keys(e).length === 0;
|
|
26
26
|
}
|
|
27
27
|
function Mt(e, ...t) {
|
|
@@ -33,23 +33,23 @@ function Mt(e, ...t) {
|
|
|
33
33
|
const r = e.subscribe(...t);
|
|
34
34
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function or(e, t, r) {
|
|
37
37
|
e.$$.on_destroy.push(Mt(t, r));
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return e &&
|
|
39
|
+
function Te(e) {
|
|
40
|
+
return e && Se(e.destroy) ? e.destroy : j;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function v(e, t) {
|
|
43
43
|
e.appendChild(t);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const n =
|
|
45
|
+
function ur(e, t, r) {
|
|
46
|
+
const n = lr(e);
|
|
47
47
|
if (!n.getElementById(t)) {
|
|
48
48
|
const i = H("style");
|
|
49
|
-
i.id = t, i.textContent = r,
|
|
49
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function lr(e) {
|
|
53
53
|
if (!e)
|
|
54
54
|
return document;
|
|
55
55
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -59,8 +59,8 @@ function or(e) {
|
|
|
59
59
|
t
|
|
60
60
|
) : e.ownerDocument;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function hr(e, t) {
|
|
63
|
+
return v(
|
|
64
64
|
/** @type {Document} */
|
|
65
65
|
e.head || e,
|
|
66
66
|
t
|
|
@@ -69,7 +69,7 @@ function ur(e, t) {
|
|
|
69
69
|
function k(e, t, r) {
|
|
70
70
|
e.insertBefore(t, r || null);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function P(e) {
|
|
73
73
|
e.parentNode && e.parentNode.removeChild(e);
|
|
74
74
|
}
|
|
75
75
|
function H(e) {
|
|
@@ -81,27 +81,27 @@ function R(e) {
|
|
|
81
81
|
function X() {
|
|
82
82
|
return R(" ");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function cr() {
|
|
85
85
|
return R("");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Oe(e, t, r, n) {
|
|
88
88
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
89
89
|
}
|
|
90
90
|
function d(e, t, r) {
|
|
91
91
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ue(e, t, r) {
|
|
94
94
|
const n = t.toLowerCase();
|
|
95
95
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : d(e, t, r);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function fr(e) {
|
|
98
98
|
return Array.from(e.childNodes);
|
|
99
99
|
}
|
|
100
100
|
function Z(e, t) {
|
|
101
101
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
102
102
|
t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function mr(e) {
|
|
105
105
|
const t = {};
|
|
106
106
|
return e.childNodes.forEach(
|
|
107
107
|
/** @param {Element} node */
|
|
@@ -110,87 +110,87 @@ function cr(e) {
|
|
|
110
110
|
}
|
|
111
111
|
), t;
|
|
112
112
|
}
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
let ve;
|
|
114
|
+
function _e(e) {
|
|
115
|
+
ve = e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
if (!
|
|
117
|
+
function dr() {
|
|
118
|
+
if (!ve)
|
|
119
119
|
throw new Error("Function called outside component initialization");
|
|
120
|
-
return
|
|
120
|
+
return ve;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function br(e) {
|
|
123
|
+
dr().$$.on_mount.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
let
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
125
|
+
const oe = [], Ze = [];
|
|
126
|
+
let le = [];
|
|
127
|
+
const ht = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
128
|
+
let qe = !1;
|
|
129
|
+
function pr() {
|
|
130
|
+
qe || (qe = !0, gr.then(A));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function Qe(e) {
|
|
133
|
+
le.push(e);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
let
|
|
135
|
+
const Ge = /* @__PURE__ */ new Set();
|
|
136
|
+
let se = 0;
|
|
137
137
|
function A() {
|
|
138
|
-
if (
|
|
138
|
+
if (se !== 0)
|
|
139
139
|
return;
|
|
140
|
-
const e =
|
|
140
|
+
const e = ve;
|
|
141
141
|
do {
|
|
142
142
|
try {
|
|
143
|
-
for (;
|
|
144
|
-
const t =
|
|
145
|
-
|
|
143
|
+
for (; se < oe.length; ) {
|
|
144
|
+
const t = oe[se];
|
|
145
|
+
se++, _e(t), yr(t.$$);
|
|
146
146
|
}
|
|
147
147
|
} catch (t) {
|
|
148
|
-
throw
|
|
148
|
+
throw oe.length = 0, se = 0, t;
|
|
149
149
|
}
|
|
150
|
-
for (
|
|
151
|
-
|
|
152
|
-
for (let t = 0; t <
|
|
153
|
-
const r =
|
|
154
|
-
|
|
150
|
+
for (_e(null), oe.length = 0, se = 0; Ze.length; )
|
|
151
|
+
Ze.pop()();
|
|
152
|
+
for (let t = 0; t < le.length; t += 1) {
|
|
153
|
+
const r = le[t];
|
|
154
|
+
Ge.has(r) || (Ge.add(r), r());
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
} while (
|
|
158
|
-
for (;
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
le.length = 0;
|
|
157
|
+
} while (oe.length);
|
|
158
|
+
for (; ht.length; )
|
|
159
|
+
ht.pop()();
|
|
160
|
+
qe = !1, Ge.clear(), _e(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function yr(e) {
|
|
163
163
|
if (e.fragment !== null) {
|
|
164
|
-
e.update(),
|
|
164
|
+
e.update(), re(e.before_update);
|
|
165
165
|
const t = e.dirty;
|
|
166
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
166
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qe);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _r(e) {
|
|
170
170
|
const t = [], r = [];
|
|
171
|
-
|
|
171
|
+
le.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), le = t;
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
function
|
|
175
|
-
e && e.i && (
|
|
173
|
+
const vr = /* @__PURE__ */ new Set();
|
|
174
|
+
function Er(e, t) {
|
|
175
|
+
e && e.i && (vr.delete(e), e.i(t));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function xr(e, t, r) {
|
|
178
178
|
const { fragment: n, after_update: i } = e.$$;
|
|
179
|
-
n && n.m(t, r),
|
|
180
|
-
const s = e.$$.on_mount.map(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
182
|
-
}), i.forEach(
|
|
179
|
+
n && n.m(t, r), Qe(() => {
|
|
180
|
+
const s = e.$$.on_mount.map(Ot).filter(Se);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach(Qe);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Sr(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (
|
|
186
|
+
r.fragment !== null && (_r(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (
|
|
188
|
+
function Tr(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (oe.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const l =
|
|
193
|
-
|
|
191
|
+
function Ar(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
192
|
+
const l = ve;
|
|
193
|
+
_e(e);
|
|
194
194
|
const u = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
@@ -198,7 +198,7 @@ function Sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
198
198
|
props: s,
|
|
199
199
|
update: j,
|
|
200
200
|
not_equal: i,
|
|
201
|
-
bound:
|
|
201
|
+
bound: lt(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,28 +207,28 @@ function Sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
210
|
+
callbacks: lt(),
|
|
211
211
|
dirty: a,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || l.$$.root
|
|
214
214
|
};
|
|
215
215
|
o && o(u.root);
|
|
216
216
|
let h = !1;
|
|
217
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
218
|
-
const y =
|
|
219
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
220
|
-
}) : [], u.update(), h = !0,
|
|
217
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ..._) => {
|
|
218
|
+
const y = _.length ? _[0] : m;
|
|
219
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && Tr(e, c)), m;
|
|
220
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const c =
|
|
223
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
222
|
+
const c = fr(t.target);
|
|
223
|
+
u.fragment && u.fragment.l(c), c.forEach(P);
|
|
224
224
|
} else
|
|
225
225
|
u.fragment && u.fragment.c();
|
|
226
|
-
t.intro &&
|
|
226
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), A();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
_e(l);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let Lt;
|
|
231
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -280,19 +280,19 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
280
280
|
k(l, s, u);
|
|
281
281
|
},
|
|
282
282
|
d: function(l) {
|
|
283
|
-
l &&
|
|
283
|
+
l && P(s);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {}, r =
|
|
290
|
+
const t = {}, r = mr(this);
|
|
291
291
|
for (const i of this.$$s)
|
|
292
292
|
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
294
294
|
const s = this.$$g_p(i.name);
|
|
295
|
-
s in this.$$d || (this.$$d[s] =
|
|
295
|
+
s in this.$$d || (this.$$d[s] = we(s, i.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const i in this.$$p_d)
|
|
298
298
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const i in this.$$p_d)
|
|
312
312
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
-
const s =
|
|
313
|
+
const s = we(
|
|
314
314
|
i,
|
|
315
315
|
this.$$d[i],
|
|
316
316
|
this.$$p_d,
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
334
|
attributeChangedCallback(e, t, r) {
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = we(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function we(e, t, r, n) {
|
|
349
349
|
const i = r[e]?.type;
|
|
350
350
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
351
351
|
return t;
|
|
@@ -374,8 +374,8 @@ function Be(e, t, r, n) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let o = class extends
|
|
377
|
+
function Hr(e, t, r, n, i, s) {
|
|
378
|
+
let o = class extends Lt {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
@@ -391,7 +391,7 @@ function Tr(e, t, r, n, i, s) {
|
|
|
391
391
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
392
392
|
},
|
|
393
393
|
set(l) {
|
|
394
|
-
l =
|
|
394
|
+
l = we(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), n.forEach((a) => {
|
|
@@ -403,7 +403,7 @@ function Tr(e, t, r, n, i, s) {
|
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
404
|
o, o;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class Cr {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class Ar {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
Sr(this, 1), this.$destroy = j;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,7 +431,7 @@ class Ar {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, r) {
|
|
434
|
-
if (!
|
|
434
|
+
if (!Se(r))
|
|
435
435
|
return j;
|
|
436
436
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return n.push(r), () => {
|
|
@@ -444,29 +444,29 @@ class Ar {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
452
|
-
const
|
|
453
|
-
function
|
|
450
|
+
const Br = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
452
|
+
const ae = [];
|
|
453
|
+
function wr(e, t) {
|
|
454
454
|
return {
|
|
455
|
-
subscribe:
|
|
455
|
+
subscribe: Re(e, t).subscribe
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Re(e, t = j) {
|
|
459
459
|
let r;
|
|
460
460
|
const n = /* @__PURE__ */ new Set();
|
|
461
461
|
function i(a) {
|
|
462
|
-
if (
|
|
463
|
-
const l = !
|
|
462
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
463
|
+
const l = !ae.length;
|
|
464
464
|
for (const u of n)
|
|
465
|
-
u[1](),
|
|
465
|
+
u[1](), ae.push(u, e);
|
|
466
466
|
if (l) {
|
|
467
|
-
for (let u = 0; u <
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
for (let u = 0; u < ae.length; u += 2)
|
|
468
|
+
ae[u][0](ae[u + 1]);
|
|
469
|
+
ae.length = 0;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
@@ -481,12 +481,12 @@ function Pe(e, t = j) {
|
|
|
481
481
|
}
|
|
482
482
|
return { set: i, update: s, subscribe: o };
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function de(e, t, r) {
|
|
485
485
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
486
486
|
if (!i.every(Boolean))
|
|
487
487
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
488
488
|
const s = t.length < 2;
|
|
489
|
-
return
|
|
489
|
+
return wr(r, (o, a) => {
|
|
490
490
|
let l = !1;
|
|
491
491
|
const u = [];
|
|
492
492
|
let h = 0, c = j;
|
|
@@ -495,8 +495,8 @@ function me(e, t, r) {
|
|
|
495
495
|
return;
|
|
496
496
|
c();
|
|
497
497
|
const y = t(n ? u[0] : u, o, a);
|
|
498
|
-
s ? o(y) : c =
|
|
499
|
-
},
|
|
498
|
+
s ? o(y) : c = Se(y) ? y : j;
|
|
499
|
+
}, _ = i.map(
|
|
500
500
|
(y, T) => Mt(
|
|
501
501
|
y,
|
|
502
502
|
(w) => {
|
|
@@ -508,126 +508,112 @@ function me(e, t, r) {
|
|
|
508
508
|
)
|
|
509
509
|
);
|
|
510
510
|
return l = !0, m(), function() {
|
|
511
|
-
|
|
511
|
+
re(_), c(), l = !1;
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ir(e) {
|
|
516
516
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var Nr = function(t) {
|
|
519
|
+
return Or(t) && !Pr(t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function Or(e) {
|
|
522
522
|
return !!e && typeof e == "object";
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Pr(e) {
|
|
525
525
|
var t = Object.prototype.toString.call(e);
|
|
526
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
526
|
+
return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
|
|
527
527
|
}
|
|
528
|
-
var Mr = typeof Symbol == "function" && Symbol.for,
|
|
529
|
-
function
|
|
530
|
-
return e.$$typeof ===
|
|
528
|
+
var Mr = typeof Symbol == "function" && Symbol.for, Lr = Mr ? Symbol.for("react.element") : 60103;
|
|
529
|
+
function Rr(e) {
|
|
530
|
+
return e.$$typeof === Lr;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Dr(e) {
|
|
533
533
|
return Array.isArray(e) ? [] : {};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
535
|
+
function Ee(e, t) {
|
|
536
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? he(Dr(e), e, t) : e;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function kr(e, t, r) {
|
|
539
539
|
return e.concat(t).map(function(n) {
|
|
540
|
-
return
|
|
540
|
+
return Ee(n, r);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Ur(e, t) {
|
|
544
544
|
if (!t.customMerge)
|
|
545
|
-
return
|
|
545
|
+
return he;
|
|
546
546
|
var r = t.customMerge(e);
|
|
547
|
-
return typeof r == "function" ? r :
|
|
547
|
+
return typeof r == "function" ? r : he;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Fr(e) {
|
|
550
550
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
551
551
|
return Object.propertyIsEnumerable.call(e, t);
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return Object.keys(e).concat(
|
|
554
|
+
function ct(e) {
|
|
555
|
+
return Object.keys(e).concat(Fr(e));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Rt(e, t) {
|
|
558
558
|
try {
|
|
559
559
|
return t in e;
|
|
560
560
|
} catch {
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
564
|
+
function Gr(e, t) {
|
|
565
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function $r(e, t, r) {
|
|
568
568
|
var n = {};
|
|
569
|
-
return r.isMergeableObject(e) &&
|
|
570
|
-
n[i] =
|
|
571
|
-
}),
|
|
572
|
-
|
|
569
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
570
|
+
n[i] = Ee(e[i], r);
|
|
571
|
+
}), ct(t).forEach(function(i) {
|
|
572
|
+
Gr(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = Ee(t[i], r));
|
|
573
573
|
}), n;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
575
|
+
function he(e, t, r) {
|
|
576
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || Nr, r.cloneUnlessOtherwiseSpecified = Ee;
|
|
577
577
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
578
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
578
|
+
return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : Ee(t, r);
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
he.all = function(t, r) {
|
|
581
581
|
if (!Array.isArray(t))
|
|
582
582
|
throw new Error("first argument should be an array");
|
|
583
583
|
return t.reduce(function(n, i) {
|
|
584
|
-
return
|
|
584
|
+
return he(n, i, r);
|
|
585
585
|
}, {});
|
|
586
586
|
};
|
|
587
|
-
var
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
593
|
-
purpose with or without fee is hereby granted.
|
|
594
|
-
|
|
595
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
596
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
597
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
598
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
599
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
600
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
601
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
602
|
-
***************************************************************************** */
|
|
603
|
-
var qe = function(e, t) {
|
|
604
|
-
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
587
|
+
var jr = he, Vr = jr;
|
|
588
|
+
const Jr = /* @__PURE__ */ Ir(Vr);
|
|
589
|
+
var Ye = function(e, t) {
|
|
590
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
605
591
|
r.__proto__ = n;
|
|
606
592
|
} || function(r, n) {
|
|
607
593
|
for (var i in n)
|
|
608
594
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
609
|
-
},
|
|
595
|
+
}, Ye(e, t);
|
|
610
596
|
};
|
|
611
|
-
function
|
|
597
|
+
function De(e, t) {
|
|
612
598
|
if (typeof t != "function" && t !== null)
|
|
613
599
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
614
|
-
|
|
600
|
+
Ye(e, t);
|
|
615
601
|
function r() {
|
|
616
602
|
this.constructor = e;
|
|
617
603
|
}
|
|
618
604
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
619
605
|
}
|
|
620
|
-
var
|
|
621
|
-
return
|
|
606
|
+
var q = function() {
|
|
607
|
+
return q = Object.assign || function(t) {
|
|
622
608
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
623
609
|
r = arguments[n];
|
|
624
610
|
for (var s in r)
|
|
625
611
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
626
612
|
}
|
|
627
613
|
return t;
|
|
628
|
-
},
|
|
614
|
+
}, q.apply(this, arguments);
|
|
629
615
|
};
|
|
630
|
-
function
|
|
616
|
+
function zr(e, t) {
|
|
631
617
|
var r = {};
|
|
632
618
|
for (var n in e)
|
|
633
619
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -636,43 +622,43 @@ function Vr(e, t) {
|
|
|
636
622
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
637
623
|
return r;
|
|
638
624
|
}
|
|
639
|
-
function
|
|
640
|
-
if (arguments.length === 2)
|
|
625
|
+
function $e(e, t, r) {
|
|
626
|
+
if (r || arguments.length === 2)
|
|
641
627
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
642
628
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
643
|
-
return e.concat(s || t);
|
|
629
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
644
630
|
}
|
|
645
|
-
function
|
|
646
|
-
var r = t && t.cache ? t.cache :
|
|
631
|
+
function je(e, t) {
|
|
632
|
+
var r = t && t.cache ? t.cache : Kr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
|
|
647
633
|
return i(e, {
|
|
648
634
|
cache: r,
|
|
649
635
|
serializer: n
|
|
650
636
|
});
|
|
651
637
|
}
|
|
652
|
-
function
|
|
638
|
+
function Wr(e) {
|
|
653
639
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
654
640
|
}
|
|
655
|
-
function
|
|
656
|
-
var i =
|
|
641
|
+
function Xr(e, t, r, n) {
|
|
642
|
+
var i = Wr(n) ? n : r(n), s = t.get(i);
|
|
657
643
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
658
644
|
}
|
|
659
|
-
function
|
|
645
|
+
function Dt(e, t, r) {
|
|
660
646
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
661
647
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
662
648
|
}
|
|
663
|
-
function
|
|
649
|
+
function kt(e, t, r, n, i) {
|
|
664
650
|
return r.bind(t, e, n, i);
|
|
665
651
|
}
|
|
666
|
-
function
|
|
667
|
-
var r = e.length === 1 ?
|
|
668
|
-
return
|
|
652
|
+
function Zr(e, t) {
|
|
653
|
+
var r = e.length === 1 ? Xr : Dt;
|
|
654
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
669
655
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
656
|
+
function qr(e, t) {
|
|
657
|
+
return kt(e, this, Dt, t.cache.create(), t.serializer);
|
|
672
658
|
}
|
|
673
|
-
var
|
|
659
|
+
var Qr = function() {
|
|
674
660
|
return JSON.stringify(arguments);
|
|
675
|
-
},
|
|
661
|
+
}, Yr = (
|
|
676
662
|
/** @class */
|
|
677
663
|
function() {
|
|
678
664
|
function e() {
|
|
@@ -684,61 +670,71 @@ var Zr = function() {
|
|
|
684
670
|
this.cache[t] = r;
|
|
685
671
|
}, e;
|
|
686
672
|
}()
|
|
687
|
-
),
|
|
673
|
+
), Kr = {
|
|
688
674
|
create: function() {
|
|
689
|
-
return new
|
|
675
|
+
return new Yr();
|
|
690
676
|
}
|
|
691
|
-
},
|
|
692
|
-
variadic:
|
|
693
|
-
},
|
|
677
|
+
}, Ve = {
|
|
678
|
+
variadic: qr
|
|
679
|
+
}, Pe = function() {
|
|
680
|
+
return Pe = Object.assign || function(t) {
|
|
681
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
682
|
+
r = arguments[n];
|
|
683
|
+
for (var s in r)
|
|
684
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
685
|
+
}
|
|
686
|
+
return t;
|
|
687
|
+
}, Pe.apply(this, arguments);
|
|
688
|
+
};
|
|
689
|
+
var g;
|
|
694
690
|
(function(e) {
|
|
695
691
|
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";
|
|
696
692
|
})(g || (g = {}));
|
|
697
|
-
var
|
|
693
|
+
var x;
|
|
698
694
|
(function(e) {
|
|
699
695
|
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";
|
|
700
|
-
})(
|
|
701
|
-
var
|
|
696
|
+
})(x || (x = {}));
|
|
697
|
+
var ce;
|
|
702
698
|
(function(e) {
|
|
703
699
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
704
|
-
})(
|
|
705
|
-
function
|
|
706
|
-
return e.type ===
|
|
707
|
-
}
|
|
708
|
-
function Yr(e) {
|
|
709
|
-
return e.type === S.argument;
|
|
710
|
-
}
|
|
711
|
-
function Dt(e) {
|
|
712
|
-
return e.type === S.number;
|
|
700
|
+
})(ce || (ce = {}));
|
|
701
|
+
function ft(e) {
|
|
702
|
+
return e.type === x.literal;
|
|
713
703
|
}
|
|
714
|
-
function
|
|
715
|
-
return e.type ===
|
|
704
|
+
function en(e) {
|
|
705
|
+
return e.type === x.argument;
|
|
716
706
|
}
|
|
717
707
|
function Ut(e) {
|
|
718
|
-
return e.type ===
|
|
708
|
+
return e.type === x.number;
|
|
719
709
|
}
|
|
720
710
|
function Ft(e) {
|
|
721
|
-
return e.type ===
|
|
711
|
+
return e.type === x.date;
|
|
722
712
|
}
|
|
723
713
|
function Gt(e) {
|
|
724
|
-
return e.type ===
|
|
725
|
-
}
|
|
726
|
-
function Kr(e) {
|
|
727
|
-
return e.type === S.pound;
|
|
714
|
+
return e.type === x.time;
|
|
728
715
|
}
|
|
729
716
|
function $t(e) {
|
|
730
|
-
return e.type ===
|
|
717
|
+
return e.type === x.select;
|
|
731
718
|
}
|
|
732
719
|
function jt(e) {
|
|
733
|
-
return
|
|
734
|
-
}
|
|
735
|
-
function Qe(e) {
|
|
736
|
-
return !!(e && typeof e == "object" && e.type === he.dateTime);
|
|
720
|
+
return e.type === x.plural;
|
|
737
721
|
}
|
|
738
|
-
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
|
|
739
722
|
function tn(e) {
|
|
723
|
+
return e.type === x.pound;
|
|
724
|
+
}
|
|
725
|
+
function Vt(e) {
|
|
726
|
+
return e.type === x.tag;
|
|
727
|
+
}
|
|
728
|
+
function Jt(e) {
|
|
729
|
+
return !!(e && typeof e == "object" && e.type === ce.number);
|
|
730
|
+
}
|
|
731
|
+
function Ke(e) {
|
|
732
|
+
return !!(e && typeof e == "object" && e.type === ce.dateTime);
|
|
733
|
+
}
|
|
734
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, rn = /(?:[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;
|
|
735
|
+
function nn(e) {
|
|
740
736
|
var t = {};
|
|
741
|
-
return e.replace(
|
|
737
|
+
return e.replace(rn, function(r) {
|
|
742
738
|
var n = r.length;
|
|
743
739
|
switch (r[0]) {
|
|
744
740
|
case "G":
|
|
@@ -827,11 +823,21 @@ function tn(e) {
|
|
|
827
823
|
return "";
|
|
828
824
|
}), t;
|
|
829
825
|
}
|
|
830
|
-
var
|
|
831
|
-
function
|
|
826
|
+
var S = function() {
|
|
827
|
+
return S = Object.assign || function(t) {
|
|
828
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
829
|
+
r = arguments[n];
|
|
830
|
+
for (var s in r)
|
|
831
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
832
|
+
}
|
|
833
|
+
return t;
|
|
834
|
+
}, S.apply(this, arguments);
|
|
835
|
+
};
|
|
836
|
+
var sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
837
|
+
function an(e) {
|
|
832
838
|
if (e.length === 0)
|
|
833
839
|
throw new Error("Number skeleton cannot be empty");
|
|
834
|
-
for (var t = e.split(
|
|
840
|
+
for (var t = e.split(sn).filter(function(m) {
|
|
835
841
|
return m.length > 0;
|
|
836
842
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
837
843
|
var s = i[n], o = s.split("/");
|
|
@@ -846,17 +852,17 @@ function nn(e) {
|
|
|
846
852
|
}
|
|
847
853
|
return r;
|
|
848
854
|
}
|
|
849
|
-
function
|
|
855
|
+
function on(e) {
|
|
850
856
|
return e.replace(/^(.*?)-/, "");
|
|
851
857
|
}
|
|
852
|
-
var
|
|
853
|
-
function
|
|
858
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, un = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
859
|
+
function dt(e) {
|
|
854
860
|
var t = {};
|
|
855
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
861
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
856
862
|
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)), "";
|
|
857
863
|
}), t;
|
|
858
864
|
}
|
|
859
|
-
function
|
|
865
|
+
function Zt(e) {
|
|
860
866
|
switch (e) {
|
|
861
867
|
case "sign-auto":
|
|
862
868
|
return {
|
|
@@ -896,7 +902,7 @@ function Wt(e) {
|
|
|
896
902
|
};
|
|
897
903
|
}
|
|
898
904
|
}
|
|
899
|
-
function
|
|
905
|
+
function ln(e) {
|
|
900
906
|
var t;
|
|
901
907
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
902
908
|
notation: "engineering"
|
|
@@ -904,17 +910,17 @@ function on(e) {
|
|
|
904
910
|
notation: "scientific"
|
|
905
911
|
}, e = e.slice(1)), t) {
|
|
906
912
|
var r = e.slice(0, 2);
|
|
907
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
913
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
908
914
|
throw new Error("Malformed concise eng/scientific notation");
|
|
909
915
|
t.minimumIntegerDigits = e.length;
|
|
910
916
|
}
|
|
911
917
|
return t;
|
|
912
918
|
}
|
|
913
|
-
function
|
|
914
|
-
var t = {}, r =
|
|
919
|
+
function bt(e) {
|
|
920
|
+
var t = {}, r = Zt(e);
|
|
915
921
|
return r || t;
|
|
916
922
|
}
|
|
917
|
-
function
|
|
923
|
+
function hn(e) {
|
|
918
924
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
919
925
|
var i = n[r];
|
|
920
926
|
switch (i.stem) {
|
|
@@ -938,7 +944,7 @@ function un(e) {
|
|
|
938
944
|
continue;
|
|
939
945
|
case "measure-unit":
|
|
940
946
|
case "unit":
|
|
941
|
-
t.style = "unit", t.unit =
|
|
947
|
+
t.style = "unit", t.unit = on(i.options[0]);
|
|
942
948
|
continue;
|
|
943
949
|
case "compact-short":
|
|
944
950
|
case "K":
|
|
@@ -949,13 +955,13 @@ function un(e) {
|
|
|
949
955
|
t.notation = "compact", t.compactDisplay = "long";
|
|
950
956
|
continue;
|
|
951
957
|
case "scientific":
|
|
952
|
-
t =
|
|
953
|
-
return
|
|
958
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
959
|
+
return S(S({}, l), bt(u));
|
|
954
960
|
}, {}));
|
|
955
961
|
continue;
|
|
956
962
|
case "engineering":
|
|
957
|
-
t =
|
|
958
|
-
return
|
|
963
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
964
|
+
return S(S({}, l), bt(u));
|
|
959
965
|
}, {}));
|
|
960
966
|
continue;
|
|
961
967
|
case "notation-simple":
|
|
@@ -1000,45 +1006,45 @@ function un(e) {
|
|
|
1000
1006
|
case "integer-width":
|
|
1001
1007
|
if (i.options.length > 1)
|
|
1002
1008
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1003
|
-
i.options[0].replace(
|
|
1009
|
+
i.options[0].replace(un, function(l, u, h, c, m, _) {
|
|
1004
1010
|
if (u)
|
|
1005
1011
|
t.minimumIntegerDigits = h.length;
|
|
1006
1012
|
else {
|
|
1007
1013
|
if (c && m)
|
|
1008
1014
|
throw new Error("We currently do not support maximum integer digits");
|
|
1009
|
-
if (
|
|
1015
|
+
if (_)
|
|
1010
1016
|
throw new Error("We currently do not support exact integer digits");
|
|
1011
1017
|
}
|
|
1012
1018
|
return "";
|
|
1013
1019
|
});
|
|
1014
1020
|
continue;
|
|
1015
1021
|
}
|
|
1016
|
-
if (
|
|
1022
|
+
if (Xt.test(i.stem)) {
|
|
1017
1023
|
t.minimumIntegerDigits = i.stem.length;
|
|
1018
1024
|
continue;
|
|
1019
1025
|
}
|
|
1020
|
-
if (
|
|
1026
|
+
if (mt.test(i.stem)) {
|
|
1021
1027
|
if (i.options.length > 1)
|
|
1022
1028
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1023
|
-
i.stem.replace(
|
|
1024
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1029
|
+
i.stem.replace(mt, function(l, u, h, c, m, _) {
|
|
1030
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && _ ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1025
1031
|
});
|
|
1026
1032
|
var s = i.options[0];
|
|
1027
|
-
s === "w" ? t =
|
|
1033
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), dt(s)));
|
|
1028
1034
|
continue;
|
|
1029
1035
|
}
|
|
1030
|
-
if (
|
|
1031
|
-
t =
|
|
1036
|
+
if (Wt.test(i.stem)) {
|
|
1037
|
+
t = S(S({}, t), dt(i.stem));
|
|
1032
1038
|
continue;
|
|
1033
1039
|
}
|
|
1034
|
-
var o =
|
|
1035
|
-
o && (t =
|
|
1036
|
-
var a =
|
|
1037
|
-
a && (t =
|
|
1040
|
+
var o = Zt(i.stem);
|
|
1041
|
+
o && (t = S(S({}, t), o));
|
|
1042
|
+
var a = ln(i.stem);
|
|
1043
|
+
a && (t = S(S({}, t), a));
|
|
1038
1044
|
}
|
|
1039
1045
|
return t;
|
|
1040
1046
|
}
|
|
1041
|
-
var
|
|
1047
|
+
var Be = {
|
|
1042
1048
|
"001": [
|
|
1043
1049
|
"H",
|
|
1044
1050
|
"h"
|
|
@@ -2453,13 +2459,13 @@ var Ce = {
|
|
|
2453
2459
|
"h"
|
|
2454
2460
|
]
|
|
2455
2461
|
};
|
|
2456
|
-
function
|
|
2462
|
+
function cn(e, t) {
|
|
2457
2463
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2458
2464
|
var i = e.charAt(n);
|
|
2459
2465
|
if (i === "j") {
|
|
2460
2466
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2461
2467
|
s++, n++;
|
|
2462
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2468
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = fn(t);
|
|
2463
2469
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2464
2470
|
r += l;
|
|
2465
2471
|
for (; o-- > 0; )
|
|
@@ -2469,7 +2475,7 @@ function ln(e, t) {
|
|
|
2469
2475
|
}
|
|
2470
2476
|
return r;
|
|
2471
2477
|
}
|
|
2472
|
-
function
|
|
2478
|
+
function fn(e) {
|
|
2473
2479
|
var t = e.hourCycle;
|
|
2474
2480
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2475
2481
|
e.hourCycles && // @ts-ignore
|
|
@@ -2488,23 +2494,23 @@ function hn(e) {
|
|
|
2488
2494
|
}
|
|
2489
2495
|
var r = e.language, n;
|
|
2490
2496
|
r !== "root" && (n = e.maximize().region);
|
|
2491
|
-
var i =
|
|
2497
|
+
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
|
2492
2498
|
return i[0];
|
|
2493
2499
|
}
|
|
2494
|
-
var
|
|
2500
|
+
var Je, mn = new RegExp("^".concat(zt.source, "*")), dn = new RegExp("".concat(zt.source, "*$"));
|
|
2495
2501
|
function p(e, t) {
|
|
2496
2502
|
return { start: e, end: t };
|
|
2497
2503
|
}
|
|
2498
|
-
var
|
|
2504
|
+
var bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, pn = !!Object.fromEntries, yn = !!String.prototype.codePointAt, _n = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
|
|
2499
2505
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2500
|
-
},
|
|
2506
|
+
}, et = !0;
|
|
2501
2507
|
try {
|
|
2502
|
-
var
|
|
2503
|
-
|
|
2508
|
+
var Sn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2509
|
+
et = ((Je = Sn.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
2504
2510
|
} catch {
|
|
2505
|
-
|
|
2511
|
+
et = !1;
|
|
2506
2512
|
}
|
|
2507
|
-
var
|
|
2513
|
+
var gt = bn ? (
|
|
2508
2514
|
// Native
|
|
2509
2515
|
function(t, r, n) {
|
|
2510
2516
|
return t.startsWith(r, n);
|
|
@@ -2514,7 +2520,7 @@ var dt = mn ? (
|
|
|
2514
2520
|
function(t, r, n) {
|
|
2515
2521
|
return t.slice(n, n + r.length) === r;
|
|
2516
2522
|
}
|
|
2517
|
-
),
|
|
2523
|
+
), tt = gn ? String.fromCodePoint : (
|
|
2518
2524
|
// IE11
|
|
2519
2525
|
function() {
|
|
2520
2526
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2526,9 +2532,9 @@ var dt = mn ? (
|
|
|
2526
2532
|
}
|
|
2527
2533
|
return n;
|
|
2528
2534
|
}
|
|
2529
|
-
),
|
|
2535
|
+
), pt = (
|
|
2530
2536
|
// native
|
|
2531
|
-
|
|
2537
|
+
pn ? Object.fromEntries : (
|
|
2532
2538
|
// Ponyfill
|
|
2533
2539
|
function(t) {
|
|
2534
2540
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2538,7 +2544,7 @@ var dt = mn ? (
|
|
|
2538
2544
|
return r;
|
|
2539
2545
|
}
|
|
2540
2546
|
)
|
|
2541
|
-
),
|
|
2547
|
+
), qt = yn ? (
|
|
2542
2548
|
// Native
|
|
2543
2549
|
function(t, r) {
|
|
2544
2550
|
return t.codePointAt(r);
|
|
@@ -2552,7 +2558,7 @@ var dt = mn ? (
|
|
|
2552
2558
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2553
2559
|
}
|
|
2554
2560
|
}
|
|
2555
|
-
),
|
|
2561
|
+
), Tn = _n ? (
|
|
2556
2562
|
// Native
|
|
2557
2563
|
function(t) {
|
|
2558
2564
|
return t.trimStart();
|
|
@@ -2560,9 +2566,9 @@ var dt = mn ? (
|
|
|
2560
2566
|
) : (
|
|
2561
2567
|
// Ponyfill
|
|
2562
2568
|
function(t) {
|
|
2563
|
-
return t.replace(
|
|
2569
|
+
return t.replace(mn, "");
|
|
2564
2570
|
}
|
|
2565
|
-
),
|
|
2571
|
+
), An = vn ? (
|
|
2566
2572
|
// Native
|
|
2567
2573
|
function(t) {
|
|
2568
2574
|
return t.trimEnd();
|
|
@@ -2570,32 +2576,32 @@ var dt = mn ? (
|
|
|
2570
2576
|
) : (
|
|
2571
2577
|
// Ponyfill
|
|
2572
2578
|
function(t) {
|
|
2573
|
-
return t.replace(
|
|
2579
|
+
return t.replace(dn, "");
|
|
2574
2580
|
}
|
|
2575
2581
|
);
|
|
2576
|
-
function
|
|
2582
|
+
function Qt(e, t) {
|
|
2577
2583
|
return new RegExp(e, t);
|
|
2578
2584
|
}
|
|
2579
|
-
var
|
|
2580
|
-
if (
|
|
2581
|
-
var
|
|
2582
|
-
|
|
2585
|
+
var rt;
|
|
2586
|
+
if (et) {
|
|
2587
|
+
var yt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2588
|
+
rt = function(t, r) {
|
|
2583
2589
|
var n;
|
|
2584
|
-
|
|
2585
|
-
var i =
|
|
2590
|
+
yt.lastIndex = r;
|
|
2591
|
+
var i = yt.exec(t);
|
|
2586
2592
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2587
2593
|
};
|
|
2588
2594
|
} else
|
|
2589
|
-
|
|
2595
|
+
rt = function(t, r) {
|
|
2590
2596
|
for (var n = []; ; ) {
|
|
2591
|
-
var i =
|
|
2592
|
-
if (i === void 0 ||
|
|
2597
|
+
var i = qt(t, r);
|
|
2598
|
+
if (i === void 0 || Yt(i) || wn(i))
|
|
2593
2599
|
break;
|
|
2594
2600
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2595
2601
|
}
|
|
2596
|
-
return
|
|
2602
|
+
return tt.apply(void 0, n);
|
|
2597
2603
|
};
|
|
2598
|
-
var
|
|
2604
|
+
var Hn = (
|
|
2599
2605
|
/** @class */
|
|
2600
2606
|
function() {
|
|
2601
2607
|
function e(t, r) {
|
|
@@ -2619,14 +2625,14 @@ var Tn = (
|
|
|
2619
2625
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2620
2626
|
var a = this.clonePosition();
|
|
2621
2627
|
this.bump(), i.push({
|
|
2622
|
-
type:
|
|
2628
|
+
type: x.pound,
|
|
2623
2629
|
location: p(a, this.clonePosition())
|
|
2624
2630
|
});
|
|
2625
2631
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2626
2632
|
if (n)
|
|
2627
2633
|
break;
|
|
2628
2634
|
return this.error(g.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2629
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2635
|
+
} else if (s === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
|
2630
2636
|
var o = this.parseTag(t, r);
|
|
2631
2637
|
if (o.err)
|
|
2632
2638
|
return o;
|
|
@@ -2647,7 +2653,7 @@ var Tn = (
|
|
|
2647
2653
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2648
2654
|
return {
|
|
2649
2655
|
val: {
|
|
2650
|
-
type:
|
|
2656
|
+
type: x.literal,
|
|
2651
2657
|
value: "<".concat(i, "/>"),
|
|
2652
2658
|
location: p(n, this.clonePosition())
|
|
2653
2659
|
},
|
|
@@ -2659,12 +2665,12 @@ var Tn = (
|
|
|
2659
2665
|
return s;
|
|
2660
2666
|
var o = s.val, a = this.clonePosition();
|
|
2661
2667
|
if (this.bumpIf("</")) {
|
|
2662
|
-
if (this.isEOF() || !
|
|
2668
|
+
if (this.isEOF() || !nt(this.char()))
|
|
2663
2669
|
return this.error(g.INVALID_TAG, p(a, this.clonePosition()));
|
|
2664
2670
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2665
2671
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2666
2672
|
val: {
|
|
2667
|
-
type:
|
|
2673
|
+
type: x.tag,
|
|
2668
2674
|
value: i,
|
|
2669
2675
|
children: o,
|
|
2670
2676
|
location: p(n, this.clonePosition())
|
|
@@ -2677,7 +2683,7 @@ var Tn = (
|
|
|
2677
2683
|
return this.error(g.INVALID_TAG, p(n, this.clonePosition()));
|
|
2678
2684
|
}, e.prototype.parseTagName = function() {
|
|
2679
2685
|
var t = this.offset();
|
|
2680
|
-
for (this.bump(); !this.isEOF() &&
|
|
2686
|
+
for (this.bump(); !this.isEOF() && Bn(this.char()); )
|
|
2681
2687
|
this.bump();
|
|
2682
2688
|
return this.message.slice(t, this.offset());
|
|
2683
2689
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2701,12 +2707,12 @@ var Tn = (
|
|
|
2701
2707
|
}
|
|
2702
2708
|
var l = p(n, this.clonePosition());
|
|
2703
2709
|
return {
|
|
2704
|
-
val: { type:
|
|
2710
|
+
val: { type: x.literal, value: i, location: l },
|
|
2705
2711
|
err: null
|
|
2706
2712
|
};
|
|
2707
2713
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2708
2714
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2709
|
-
!
|
|
2715
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2710
2716
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2711
2717
|
if (this.isEOF() || this.char() !== 39)
|
|
2712
2718
|
return null;
|
|
@@ -2740,12 +2746,12 @@ var Tn = (
|
|
|
2740
2746
|
r.push(n);
|
|
2741
2747
|
this.bump();
|
|
2742
2748
|
}
|
|
2743
|
-
return
|
|
2749
|
+
return tt.apply(void 0, r);
|
|
2744
2750
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2745
2751
|
if (this.isEOF())
|
|
2746
2752
|
return null;
|
|
2747
2753
|
var n = this.char();
|
|
2748
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2754
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
|
|
2749
2755
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2750
2756
|
var n = this.clonePosition();
|
|
2751
2757
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2761,7 +2767,7 @@ var Tn = (
|
|
|
2761
2767
|
case 125:
|
|
2762
2768
|
return this.bump(), {
|
|
2763
2769
|
val: {
|
|
2764
|
-
type:
|
|
2770
|
+
type: x.argument,
|
|
2765
2771
|
// value does not include the opening and closing braces.
|
|
2766
2772
|
value: i,
|
|
2767
2773
|
location: p(n, this.clonePosition())
|
|
@@ -2774,7 +2780,7 @@ var Tn = (
|
|
|
2774
2780
|
return this.error(g.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2775
2781
|
}
|
|
2776
2782
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2777
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2783
|
+
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
|
2778
2784
|
this.bumpTo(i);
|
|
2779
2785
|
var s = this.clonePosition(), o = p(t, s);
|
|
2780
2786
|
return { value: n, location: o };
|
|
@@ -2793,44 +2799,44 @@ var Tn = (
|
|
|
2793
2799
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2794
2800
|
if (c.err)
|
|
2795
2801
|
return c;
|
|
2796
|
-
var m =
|
|
2802
|
+
var m = An(c.val);
|
|
2797
2803
|
if (m.length === 0)
|
|
2798
2804
|
return this.error(g.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2799
|
-
var
|
|
2800
|
-
u = { style: m, styleLocation:
|
|
2805
|
+
var _ = p(h, this.clonePosition());
|
|
2806
|
+
u = { style: m, styleLocation: _ };
|
|
2801
2807
|
}
|
|
2802
2808
|
var y = this.tryParseArgumentClose(i);
|
|
2803
2809
|
if (y.err)
|
|
2804
2810
|
return y;
|
|
2805
2811
|
var T = p(i, this.clonePosition());
|
|
2806
|
-
if (u &&
|
|
2807
|
-
var w =
|
|
2812
|
+
if (u && gt(u?.style, "::", 0)) {
|
|
2813
|
+
var w = Tn(u.style.slice(2));
|
|
2808
2814
|
if (a === "number") {
|
|
2809
2815
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
2810
2816
|
return c.err ? c : {
|
|
2811
|
-
val: { type:
|
|
2817
|
+
val: { type: x.number, value: n, location: T, style: c.val },
|
|
2812
2818
|
err: null
|
|
2813
2819
|
};
|
|
2814
2820
|
} else {
|
|
2815
2821
|
if (w.length === 0)
|
|
2816
2822
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2817
2823
|
var F = w;
|
|
2818
|
-
this.locale && (F =
|
|
2824
|
+
this.locale && (F = cn(w, this.locale));
|
|
2819
2825
|
var m = {
|
|
2820
|
-
type:
|
|
2826
|
+
type: ce.dateTime,
|
|
2821
2827
|
pattern: F,
|
|
2822
2828
|
location: u.styleLocation,
|
|
2823
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2824
|
-
},
|
|
2829
|
+
parsedOptions: this.shouldParseSkeletons ? nn(F) : {}
|
|
2830
|
+
}, M = a === "date" ? x.date : x.time;
|
|
2825
2831
|
return {
|
|
2826
|
-
val: { type:
|
|
2832
|
+
val: { type: M, value: n, location: T, style: m },
|
|
2827
2833
|
err: null
|
|
2828
2834
|
};
|
|
2829
2835
|
}
|
|
2830
2836
|
}
|
|
2831
2837
|
return {
|
|
2832
2838
|
val: {
|
|
2833
|
-
type: a === "number" ?
|
|
2839
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2834
2840
|
value: n,
|
|
2835
2841
|
location: T,
|
|
2836
2842
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2843,7 +2849,7 @@ var Tn = (
|
|
|
2843
2849
|
case "select": {
|
|
2844
2850
|
var C = this.clonePosition();
|
|
2845
2851
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2846
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(C,
|
|
2852
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(C, Pe({}, C)));
|
|
2847
2853
|
this.bumpSpace();
|
|
2848
2854
|
var U = this.parseIdentifierIfPossible(), L = 0;
|
|
2849
2855
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -2864,17 +2870,17 @@ var Tn = (
|
|
|
2864
2870
|
var V = p(i, this.clonePosition());
|
|
2865
2871
|
return a === "select" ? {
|
|
2866
2872
|
val: {
|
|
2867
|
-
type:
|
|
2873
|
+
type: x.select,
|
|
2868
2874
|
value: n,
|
|
2869
|
-
options:
|
|
2875
|
+
options: pt(I.val),
|
|
2870
2876
|
location: V
|
|
2871
2877
|
},
|
|
2872
2878
|
err: null
|
|
2873
2879
|
} : {
|
|
2874
2880
|
val: {
|
|
2875
|
-
type:
|
|
2881
|
+
type: x.plural,
|
|
2876
2882
|
value: n,
|
|
2877
|
-
options:
|
|
2883
|
+
options: pt(I.val),
|
|
2878
2884
|
offset: L,
|
|
2879
2885
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2880
2886
|
location: V
|
|
@@ -2925,16 +2931,16 @@ var Tn = (
|
|
|
2925
2931
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2926
2932
|
var n = [];
|
|
2927
2933
|
try {
|
|
2928
|
-
n =
|
|
2934
|
+
n = an(t);
|
|
2929
2935
|
} catch {
|
|
2930
2936
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2931
2937
|
}
|
|
2932
2938
|
return {
|
|
2933
2939
|
val: {
|
|
2934
|
-
type:
|
|
2940
|
+
type: ce.number,
|
|
2935
2941
|
tokens: n,
|
|
2936
2942
|
location: r,
|
|
2937
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
+
parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
|
|
2938
2944
|
},
|
|
2939
2945
|
err: null
|
|
2940
2946
|
};
|
|
@@ -2953,20 +2959,20 @@ var Tn = (
|
|
|
2953
2959
|
if (l.has(u))
|
|
2954
2960
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2955
2961
|
u === "other" && (o = !0), this.bumpSpace();
|
|
2956
|
-
var
|
|
2962
|
+
var _ = this.clonePosition();
|
|
2957
2963
|
if (!this.bumpIf("{"))
|
|
2958
2964
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
2959
2965
|
var y = this.parseMessage(t + 1, r, n);
|
|
2960
2966
|
if (y.err)
|
|
2961
2967
|
return y;
|
|
2962
|
-
var T = this.tryParseArgumentClose(
|
|
2968
|
+
var T = this.tryParseArgumentClose(_);
|
|
2963
2969
|
if (T.err)
|
|
2964
2970
|
return T;
|
|
2965
2971
|
a.push([
|
|
2966
2972
|
u,
|
|
2967
2973
|
{
|
|
2968
2974
|
value: y.val,
|
|
2969
|
-
location: p(
|
|
2975
|
+
location: p(_, this.clonePosition())
|
|
2970
2976
|
}
|
|
2971
2977
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2972
2978
|
}
|
|
@@ -2982,7 +2988,7 @@ var Tn = (
|
|
|
2982
2988
|
break;
|
|
2983
2989
|
}
|
|
2984
2990
|
var l = p(i, this.clonePosition());
|
|
2985
|
-
return s ? (o *= n,
|
|
2991
|
+
return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2986
2992
|
}, e.prototype.offset = function() {
|
|
2987
2993
|
return this.position.offset;
|
|
2988
2994
|
}, e.prototype.isEOF = function() {
|
|
@@ -2997,7 +3003,7 @@ var Tn = (
|
|
|
2997
3003
|
var t = this.position.offset;
|
|
2998
3004
|
if (t >= this.message.length)
|
|
2999
3005
|
throw Error("out of bound");
|
|
3000
|
-
var r =
|
|
3006
|
+
var r = qt(this.message, t);
|
|
3001
3007
|
if (r === void 0)
|
|
3002
3008
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3003
3009
|
return r;
|
|
@@ -3016,7 +3022,7 @@ var Tn = (
|
|
|
3016
3022
|
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);
|
|
3017
3023
|
}
|
|
3018
3024
|
}, e.prototype.bumpIf = function(t) {
|
|
3019
|
-
if (
|
|
3025
|
+
if (gt(this.message, t, this.offset())) {
|
|
3020
3026
|
for (var r = 0; r < t.length; r++)
|
|
3021
3027
|
this.bump();
|
|
3022
3028
|
return !0;
|
|
@@ -3038,7 +3044,7 @@ var Tn = (
|
|
|
3038
3044
|
break;
|
|
3039
3045
|
}
|
|
3040
3046
|
}, e.prototype.bumpSpace = function() {
|
|
3041
|
-
for (; !this.isEOF() &&
|
|
3047
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3042
3048
|
this.bump();
|
|
3043
3049
|
}, e.prototype.peek = function() {
|
|
3044
3050
|
if (this.isEOF())
|
|
@@ -3048,47 +3054,47 @@ var Tn = (
|
|
|
3048
3054
|
}, e;
|
|
3049
3055
|
}()
|
|
3050
3056
|
);
|
|
3051
|
-
function
|
|
3057
|
+
function nt(e) {
|
|
3052
3058
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3053
3059
|
}
|
|
3054
|
-
function
|
|
3055
|
-
return
|
|
3060
|
+
function Cn(e) {
|
|
3061
|
+
return nt(e) || e === 47;
|
|
3056
3062
|
}
|
|
3057
|
-
function
|
|
3063
|
+
function Bn(e) {
|
|
3058
3064
|
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;
|
|
3059
3065
|
}
|
|
3060
|
-
function
|
|
3066
|
+
function Yt(e) {
|
|
3061
3067
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3062
3068
|
}
|
|
3063
|
-
function
|
|
3069
|
+
function wn(e) {
|
|
3064
3070
|
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;
|
|
3065
3071
|
}
|
|
3066
|
-
function
|
|
3072
|
+
function it(e) {
|
|
3067
3073
|
e.forEach(function(t) {
|
|
3068
|
-
if (delete t.location,
|
|
3074
|
+
if (delete t.location, $t(t) || jt(t))
|
|
3069
3075
|
for (var r in t.options)
|
|
3070
|
-
delete t.options[r].location,
|
|
3076
|
+
delete t.options[r].location, it(t.options[r].value);
|
|
3071
3077
|
else
|
|
3072
|
-
|
|
3078
|
+
Ut(t) && Jt(t.style) || (Ft(t) || Gt(t)) && Ke(t.style) ? delete t.style.location : Vt(t) && it(t.children);
|
|
3073
3079
|
});
|
|
3074
3080
|
}
|
|
3075
|
-
function
|
|
3076
|
-
t === void 0 && (t = {}), t =
|
|
3077
|
-
var r = new
|
|
3081
|
+
function In(e, t) {
|
|
3082
|
+
t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3083
|
+
var r = new Hn(e, t).parse();
|
|
3078
3084
|
if (r.err) {
|
|
3079
3085
|
var n = SyntaxError(g[r.err.kind]);
|
|
3080
3086
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3081
3087
|
}
|
|
3082
|
-
return t?.captureLocation ||
|
|
3088
|
+
return t?.captureLocation || it(r.val), r.val;
|
|
3083
3089
|
}
|
|
3084
|
-
var
|
|
3090
|
+
var fe;
|
|
3085
3091
|
(function(e) {
|
|
3086
3092
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3087
|
-
})(
|
|
3088
|
-
var
|
|
3093
|
+
})(fe || (fe = {}));
|
|
3094
|
+
var ke = (
|
|
3089
3095
|
/** @class */
|
|
3090
3096
|
function(e) {
|
|
3091
|
-
|
|
3097
|
+
De(t, e);
|
|
3092
3098
|
function t(r, n, i) {
|
|
3093
3099
|
var s = e.call(this, r) || this;
|
|
3094
3100
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3097,38 +3103,38 @@ var Re = (
|
|
|
3097
3103
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3098
3104
|
}, t;
|
|
3099
3105
|
}(Error)
|
|
3100
|
-
),
|
|
3106
|
+
), _t = (
|
|
3101
3107
|
/** @class */
|
|
3102
3108
|
function(e) {
|
|
3103
|
-
|
|
3109
|
+
De(t, e);
|
|
3104
3110
|
function t(r, n, i, s) {
|
|
3105
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3111
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), fe.INVALID_VALUE, s) || this;
|
|
3106
3112
|
}
|
|
3107
3113
|
return t;
|
|
3108
|
-
}(
|
|
3109
|
-
),
|
|
3114
|
+
}(ke)
|
|
3115
|
+
), Nn = (
|
|
3110
3116
|
/** @class */
|
|
3111
3117
|
function(e) {
|
|
3112
|
-
|
|
3118
|
+
De(t, e);
|
|
3113
3119
|
function t(r, n, i) {
|
|
3114
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3120
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), fe.INVALID_VALUE, i) || this;
|
|
3115
3121
|
}
|
|
3116
3122
|
return t;
|
|
3117
|
-
}(
|
|
3118
|
-
),
|
|
3123
|
+
}(ke)
|
|
3124
|
+
), On = (
|
|
3119
3125
|
/** @class */
|
|
3120
3126
|
function(e) {
|
|
3121
|
-
|
|
3127
|
+
De(t, e);
|
|
3122
3128
|
function t(r, n) {
|
|
3123
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3129
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), fe.MISSING_VALUE, n) || this;
|
|
3124
3130
|
}
|
|
3125
3131
|
return t;
|
|
3126
|
-
}(
|
|
3132
|
+
}(ke)
|
|
3127
3133
|
), D;
|
|
3128
3134
|
(function(e) {
|
|
3129
3135
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3130
3136
|
})(D || (D = {}));
|
|
3131
|
-
function
|
|
3137
|
+
function Pn(e) {
|
|
3132
3138
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3133
3139
|
var n = t[t.length - 1];
|
|
3134
3140
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
@@ -3137,8 +3143,8 @@ function Nn(e) {
|
|
|
3137
3143
|
function Mn(e) {
|
|
3138
3144
|
return typeof e == "function";
|
|
3139
3145
|
}
|
|
3140
|
-
function
|
|
3141
|
-
if (e.length === 1 &&
|
|
3146
|
+
function Ie(e, t, r, n, i, s, o) {
|
|
3147
|
+
if (e.length === 1 && ft(e[0]))
|
|
3142
3148
|
return [
|
|
3143
3149
|
{
|
|
3144
3150
|
type: D.literal,
|
|
@@ -3147,14 +3153,14 @@ function we(e, t, r, n, i, s, o) {
|
|
|
3147
3153
|
];
|
|
3148
3154
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3149
3155
|
var h = u[l];
|
|
3150
|
-
if (
|
|
3156
|
+
if (ft(h)) {
|
|
3151
3157
|
a.push({
|
|
3152
3158
|
type: D.literal,
|
|
3153
3159
|
value: h.value
|
|
3154
3160
|
});
|
|
3155
3161
|
continue;
|
|
3156
3162
|
}
|
|
3157
|
-
if (
|
|
3163
|
+
if (tn(h)) {
|
|
3158
3164
|
typeof s == "number" && a.push({
|
|
3159
3165
|
type: D.literal,
|
|
3160
3166
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3163,89 +3169,89 @@ function we(e, t, r, n, i, s, o) {
|
|
|
3163
3169
|
}
|
|
3164
3170
|
var c = h.value;
|
|
3165
3171
|
if (!(i && c in i))
|
|
3166
|
-
throw new
|
|
3172
|
+
throw new On(c, o);
|
|
3167
3173
|
var m = i[c];
|
|
3168
|
-
if (
|
|
3174
|
+
if (en(h)) {
|
|
3169
3175
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3170
3176
|
type: typeof m == "string" ? D.literal : D.object,
|
|
3171
3177
|
value: m
|
|
3172
3178
|
});
|
|
3173
3179
|
continue;
|
|
3174
3180
|
}
|
|
3175
|
-
if (
|
|
3176
|
-
var
|
|
3181
|
+
if (Ft(h)) {
|
|
3182
|
+
var _ = typeof h.style == "string" ? n.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3177
3183
|
a.push({
|
|
3178
3184
|
type: D.literal,
|
|
3179
|
-
value: r.getDateTimeFormat(t,
|
|
3185
|
+
value: r.getDateTimeFormat(t, _).format(m)
|
|
3180
3186
|
});
|
|
3181
3187
|
continue;
|
|
3182
3188
|
}
|
|
3183
|
-
if (
|
|
3184
|
-
var
|
|
3189
|
+
if (Gt(h)) {
|
|
3190
|
+
var _ = typeof h.style == "string" ? n.time[h.style] : Ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3185
3191
|
a.push({
|
|
3186
3192
|
type: D.literal,
|
|
3187
|
-
value: r.getDateTimeFormat(t,
|
|
3193
|
+
value: r.getDateTimeFormat(t, _).format(m)
|
|
3188
3194
|
});
|
|
3189
3195
|
continue;
|
|
3190
3196
|
}
|
|
3191
|
-
if (
|
|
3192
|
-
var
|
|
3193
|
-
|
|
3197
|
+
if (Ut(h)) {
|
|
3198
|
+
var _ = typeof h.style == "string" ? n.number[h.style] : Jt(h.style) ? h.style.parsedOptions : void 0;
|
|
3199
|
+
_ && _.scale && (m = m * (_.scale || 1)), a.push({
|
|
3194
3200
|
type: D.literal,
|
|
3195
|
-
value: r.getNumberFormat(t,
|
|
3201
|
+
value: r.getNumberFormat(t, _).format(m)
|
|
3196
3202
|
});
|
|
3197
3203
|
continue;
|
|
3198
3204
|
}
|
|
3199
|
-
if (
|
|
3205
|
+
if (Vt(h)) {
|
|
3200
3206
|
var y = h.children, T = h.value, w = i[T];
|
|
3201
3207
|
if (!Mn(w))
|
|
3202
|
-
throw new
|
|
3203
|
-
var F =
|
|
3208
|
+
throw new Nn(T, "function", o);
|
|
3209
|
+
var F = Ie(y, t, r, n, i, s), M = w(F.map(function(L) {
|
|
3204
3210
|
return L.value;
|
|
3205
3211
|
}));
|
|
3206
|
-
Array.isArray(
|
|
3212
|
+
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(L) {
|
|
3207
3213
|
return {
|
|
3208
3214
|
type: typeof L == "string" ? D.literal : D.object,
|
|
3209
3215
|
value: L
|
|
3210
3216
|
};
|
|
3211
3217
|
}));
|
|
3212
3218
|
}
|
|
3213
|
-
if (
|
|
3219
|
+
if ($t(h)) {
|
|
3214
3220
|
var C = h.options[m] || h.options.other;
|
|
3215
3221
|
if (!C)
|
|
3216
|
-
throw new
|
|
3217
|
-
a.push.apply(a,
|
|
3222
|
+
throw new _t(h.value, m, Object.keys(h.options), o);
|
|
3223
|
+
a.push.apply(a, Ie(C.value, t, r, n, i));
|
|
3218
3224
|
continue;
|
|
3219
3225
|
}
|
|
3220
|
-
if (
|
|
3226
|
+
if (jt(h)) {
|
|
3221
3227
|
var C = h.options["=".concat(m)];
|
|
3222
3228
|
if (!C) {
|
|
3223
3229
|
if (!Intl.PluralRules)
|
|
3224
|
-
throw new
|
|
3230
|
+
throw new ke(`Intl.PluralRules is not available in this environment.
|
|
3225
3231
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3226
|
-
`,
|
|
3232
|
+
`, fe.MISSING_INTL_API, o);
|
|
3227
3233
|
var U = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3228
3234
|
C = h.options[U] || h.options.other;
|
|
3229
3235
|
}
|
|
3230
3236
|
if (!C)
|
|
3231
|
-
throw new
|
|
3232
|
-
a.push.apply(a,
|
|
3237
|
+
throw new _t(h.value, m, Object.keys(h.options), o);
|
|
3238
|
+
a.push.apply(a, Ie(C.value, t, r, n, i, m - (h.offset || 0)));
|
|
3233
3239
|
continue;
|
|
3234
3240
|
}
|
|
3235
3241
|
}
|
|
3236
|
-
return
|
|
3242
|
+
return Pn(a);
|
|
3237
3243
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return t ?
|
|
3240
|
-
return r[n] =
|
|
3244
|
+
function Ln(e, t) {
|
|
3245
|
+
return t ? q(q(q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3246
|
+
return r[n] = q(q({}, e[n]), t[n] || {}), r;
|
|
3241
3247
|
}, {})) : e;
|
|
3242
3248
|
}
|
|
3243
|
-
function
|
|
3249
|
+
function Rn(e, t) {
|
|
3244
3250
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3245
|
-
return r[n] =
|
|
3246
|
-
},
|
|
3251
|
+
return r[n] = Ln(e[n], t[n]), r;
|
|
3252
|
+
}, q({}, e)) : e;
|
|
3247
3253
|
}
|
|
3248
|
-
function
|
|
3254
|
+
function ze(e) {
|
|
3249
3255
|
return {
|
|
3250
3256
|
create: function() {
|
|
3251
3257
|
return {
|
|
@@ -3259,39 +3265,39 @@ function Ve(e) {
|
|
|
3259
3265
|
}
|
|
3260
3266
|
};
|
|
3261
3267
|
}
|
|
3262
|
-
function
|
|
3268
|
+
function Dn(e) {
|
|
3263
3269
|
return e === void 0 && (e = {
|
|
3264
3270
|
number: {},
|
|
3265
3271
|
dateTime: {},
|
|
3266
3272
|
pluralRules: {}
|
|
3267
3273
|
}), {
|
|
3268
|
-
getNumberFormat:
|
|
3274
|
+
getNumberFormat: je(function() {
|
|
3269
3275
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3270
3276
|
r[n] = arguments[n];
|
|
3271
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3277
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3272
3278
|
}, {
|
|
3273
|
-
cache:
|
|
3274
|
-
strategy:
|
|
3279
|
+
cache: ze(e.number),
|
|
3280
|
+
strategy: Ve.variadic
|
|
3275
3281
|
}),
|
|
3276
|
-
getDateTimeFormat:
|
|
3282
|
+
getDateTimeFormat: je(function() {
|
|
3277
3283
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3278
3284
|
r[n] = arguments[n];
|
|
3279
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3285
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3280
3286
|
}, {
|
|
3281
|
-
cache:
|
|
3282
|
-
strategy:
|
|
3287
|
+
cache: ze(e.dateTime),
|
|
3288
|
+
strategy: Ve.variadic
|
|
3283
3289
|
}),
|
|
3284
|
-
getPluralRules:
|
|
3290
|
+
getPluralRules: je(function() {
|
|
3285
3291
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3286
3292
|
r[n] = arguments[n];
|
|
3287
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3293
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
3288
3294
|
}, {
|
|
3289
|
-
cache:
|
|
3290
|
-
strategy:
|
|
3295
|
+
cache: ze(e.pluralRules),
|
|
3296
|
+
strategy: Ve.variadic
|
|
3291
3297
|
})
|
|
3292
3298
|
};
|
|
3293
3299
|
}
|
|
3294
|
-
var
|
|
3300
|
+
var kn = (
|
|
3295
3301
|
/** @class */
|
|
3296
3302
|
function() {
|
|
3297
3303
|
function e(t, r, n, i) {
|
|
@@ -3310,7 +3316,7 @@ var Rn = (
|
|
|
3310
3316
|
}, []);
|
|
3311
3317
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3312
3318
|
}, this.formatToParts = function(l) {
|
|
3313
|
-
return
|
|
3319
|
+
return Ie(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3314
3320
|
}, this.resolvedOptions = function() {
|
|
3315
3321
|
var l;
|
|
3316
3322
|
return {
|
|
@@ -3323,13 +3329,13 @@ var Rn = (
|
|
|
3323
3329
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3324
3330
|
var o = i || {};
|
|
3325
3331
|
o.formatters;
|
|
3326
|
-
var a =
|
|
3327
|
-
this.ast = e.__parse(t,
|
|
3332
|
+
var a = zr(o, ["formatters"]);
|
|
3333
|
+
this.ast = e.__parse(t, q(q({}, a), { locale: this.resolvedLocale }));
|
|
3328
3334
|
} else
|
|
3329
3335
|
this.ast = t;
|
|
3330
3336
|
if (!Array.isArray(this.ast))
|
|
3331
3337
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3332
|
-
this.formats =
|
|
3338
|
+
this.formats = Rn(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
|
|
3333
3339
|
}
|
|
3334
3340
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3335
3341
|
get: function() {
|
|
@@ -3342,7 +3348,7 @@ var Rn = (
|
|
|
3342
3348
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3343
3349
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3344
3350
|
}
|
|
3345
|
-
}, e.__parse =
|
|
3351
|
+
}, e.__parse = In, e.formats = {
|
|
3346
3352
|
number: {
|
|
3347
3353
|
integer: {
|
|
3348
3354
|
maximumFractionDigits: 0
|
|
@@ -3403,7 +3409,7 @@ var Rn = (
|
|
|
3403
3409
|
}, e;
|
|
3404
3410
|
}()
|
|
3405
3411
|
);
|
|
3406
|
-
function
|
|
3412
|
+
function Un(e, t) {
|
|
3407
3413
|
if (t == null)
|
|
3408
3414
|
return;
|
|
3409
3415
|
if (t in e)
|
|
@@ -3424,92 +3430,92 @@ function Dn(e, t) {
|
|
|
3424
3430
|
n = void 0;
|
|
3425
3431
|
return n;
|
|
3426
3432
|
}
|
|
3427
|
-
const
|
|
3433
|
+
const ee = {}, Fn = (e, t, r) => r && (t in ee || (ee[t] = {}), e in ee[t] || (ee[t][e] = r), r), Kt = (e, t) => {
|
|
3428
3434
|
if (t == null)
|
|
3429
3435
|
return;
|
|
3430
|
-
if (t in
|
|
3431
|
-
return
|
|
3432
|
-
const r =
|
|
3436
|
+
if (t in ee && e in ee[t])
|
|
3437
|
+
return ee[t][e];
|
|
3438
|
+
const r = Ue(t);
|
|
3433
3439
|
for (let n = 0; n < r.length; n++) {
|
|
3434
|
-
const i = r[n], s =
|
|
3440
|
+
const i = r[n], s = $n(i, e);
|
|
3435
3441
|
if (s)
|
|
3436
|
-
return
|
|
3442
|
+
return Fn(e, t, s);
|
|
3437
3443
|
}
|
|
3438
3444
|
};
|
|
3439
|
-
let
|
|
3440
|
-
const
|
|
3441
|
-
function
|
|
3442
|
-
return
|
|
3445
|
+
let ot;
|
|
3446
|
+
const be = Re({});
|
|
3447
|
+
function Gn(e) {
|
|
3448
|
+
return ot[e] || null;
|
|
3443
3449
|
}
|
|
3444
|
-
function
|
|
3445
|
-
return e in
|
|
3450
|
+
function er(e) {
|
|
3451
|
+
return e in ot;
|
|
3446
3452
|
}
|
|
3447
|
-
function
|
|
3448
|
-
if (!
|
|
3453
|
+
function $n(e, t) {
|
|
3454
|
+
if (!er(e))
|
|
3449
3455
|
return null;
|
|
3450
|
-
const r =
|
|
3451
|
-
return
|
|
3456
|
+
const r = Gn(e);
|
|
3457
|
+
return Un(r, t);
|
|
3452
3458
|
}
|
|
3453
|
-
function
|
|
3459
|
+
function jn(e) {
|
|
3454
3460
|
if (e == null)
|
|
3455
3461
|
return;
|
|
3456
|
-
const t =
|
|
3462
|
+
const t = Ue(e);
|
|
3457
3463
|
for (let r = 0; r < t.length; r++) {
|
|
3458
3464
|
const n = t[r];
|
|
3459
|
-
if (
|
|
3465
|
+
if (er(n))
|
|
3460
3466
|
return n;
|
|
3461
3467
|
}
|
|
3462
3468
|
}
|
|
3463
|
-
function
|
|
3464
|
-
delete
|
|
3469
|
+
function tr(e, ...t) {
|
|
3470
|
+
delete ee[e], be.update((r) => (r[e] = Jr.all([r[e] || {}, ...t]), r));
|
|
3465
3471
|
}
|
|
3466
|
-
|
|
3467
|
-
[
|
|
3472
|
+
de(
|
|
3473
|
+
[be],
|
|
3468
3474
|
([e]) => Object.keys(e)
|
|
3469
3475
|
);
|
|
3470
|
-
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3473
|
-
|
|
3476
|
+
be.subscribe((e) => ot = e);
|
|
3477
|
+
const Ne = {};
|
|
3478
|
+
function Vn(e, t) {
|
|
3479
|
+
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
|
3474
3480
|
}
|
|
3475
|
-
function
|
|
3476
|
-
return
|
|
3481
|
+
function rr(e) {
|
|
3482
|
+
return Ne[e];
|
|
3477
3483
|
}
|
|
3478
|
-
function
|
|
3479
|
-
return
|
|
3480
|
-
const r =
|
|
3484
|
+
function Jn(e) {
|
|
3485
|
+
return Ue(e).map((t) => {
|
|
3486
|
+
const r = rr(t);
|
|
3481
3487
|
return [t, r ? [...r] : []];
|
|
3482
3488
|
}).filter(([, t]) => t.length > 0);
|
|
3483
3489
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return e == null ? !1 :
|
|
3490
|
+
function st(e) {
|
|
3491
|
+
return e == null ? !1 : Ue(e).some(
|
|
3486
3492
|
(t) => {
|
|
3487
3493
|
var r;
|
|
3488
|
-
return (r =
|
|
3494
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3489
3495
|
}
|
|
3490
3496
|
);
|
|
3491
3497
|
}
|
|
3492
|
-
function
|
|
3498
|
+
function zn(e, t) {
|
|
3493
3499
|
return Promise.all(
|
|
3494
|
-
t.map((n) => (
|
|
3495
|
-
).then((n) =>
|
|
3496
|
-
}
|
|
3497
|
-
const
|
|
3498
|
-
function
|
|
3499
|
-
if (!
|
|
3500
|
-
return e in
|
|
3501
|
-
const t =
|
|
3502
|
-
return
|
|
3500
|
+
t.map((n) => (Vn(e, n), n().then((i) => i.default || i)))
|
|
3501
|
+
).then((n) => tr(e, ...n));
|
|
3502
|
+
}
|
|
3503
|
+
const ye = {};
|
|
3504
|
+
function nr(e) {
|
|
3505
|
+
if (!st(e))
|
|
3506
|
+
return e in ye ? ye[e] : Promise.resolve();
|
|
3507
|
+
const t = Jn(e);
|
|
3508
|
+
return ye[e] = Promise.all(
|
|
3503
3509
|
t.map(
|
|
3504
|
-
([r, n]) =>
|
|
3510
|
+
([r, n]) => zn(r, n)
|
|
3505
3511
|
)
|
|
3506
3512
|
).then(() => {
|
|
3507
|
-
if (
|
|
3508
|
-
return
|
|
3509
|
-
delete
|
|
3510
|
-
}),
|
|
3513
|
+
if (st(e))
|
|
3514
|
+
return nr(e);
|
|
3515
|
+
delete ye[e];
|
|
3516
|
+
}), ye[e];
|
|
3511
3517
|
}
|
|
3512
|
-
const
|
|
3518
|
+
const Wn = {
|
|
3513
3519
|
number: {
|
|
3514
3520
|
scientific: { notation: "scientific" },
|
|
3515
3521
|
engineering: { notation: "engineering" },
|
|
@@ -3538,150 +3544,150 @@ const Jn = {
|
|
|
3538
3544
|
timeZoneName: "short"
|
|
3539
3545
|
}
|
|
3540
3546
|
}
|
|
3541
|
-
},
|
|
3547
|
+
}, Xn = {
|
|
3542
3548
|
fallbackLocale: null,
|
|
3543
3549
|
loadingDelay: 200,
|
|
3544
|
-
formats:
|
|
3550
|
+
formats: Wn,
|
|
3545
3551
|
warnOnMissingMessages: !0,
|
|
3546
3552
|
handleMissingMessage: void 0,
|
|
3547
3553
|
ignoreTag: !0
|
|
3548
|
-
},
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3554
|
+
}, Zn = Xn;
|
|
3555
|
+
function me() {
|
|
3556
|
+
return Zn;
|
|
3551
3557
|
}
|
|
3552
|
-
const
|
|
3553
|
-
var
|
|
3558
|
+
const We = Re(!1);
|
|
3559
|
+
var qn = Object.defineProperty, Qn = Object.defineProperties, Yn = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ti = (e, t) => {
|
|
3554
3560
|
for (var r in t || (t = {}))
|
|
3555
|
-
|
|
3556
|
-
if (
|
|
3557
|
-
for (var r of
|
|
3558
|
-
|
|
3561
|
+
Kn.call(t, r) && Et(e, r, t[r]);
|
|
3562
|
+
if (vt)
|
|
3563
|
+
for (var r of vt(t))
|
|
3564
|
+
ei.call(t, r) && Et(e, r, t[r]);
|
|
3559
3565
|
return e;
|
|
3560
|
-
},
|
|
3561
|
-
let
|
|
3562
|
-
const Me =
|
|
3563
|
-
function
|
|
3566
|
+
}, ri = (e, t) => Qn(e, Yn(t));
|
|
3567
|
+
let at;
|
|
3568
|
+
const Me = Re(null);
|
|
3569
|
+
function xt(e) {
|
|
3564
3570
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3565
3571
|
}
|
|
3566
|
-
function
|
|
3567
|
-
const r =
|
|
3568
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3572
|
+
function Ue(e, t = me().fallbackLocale) {
|
|
3573
|
+
const r = xt(e);
|
|
3574
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
3569
3575
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3576
|
+
function ie() {
|
|
3577
|
+
return at ?? void 0;
|
|
3572
3578
|
}
|
|
3573
3579
|
Me.subscribe((e) => {
|
|
3574
|
-
|
|
3580
|
+
at = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3575
3581
|
});
|
|
3576
|
-
const
|
|
3577
|
-
if (e &&
|
|
3578
|
-
const { loadingDelay: t } =
|
|
3582
|
+
const ni = (e) => {
|
|
3583
|
+
if (e && jn(e) && st(e)) {
|
|
3584
|
+
const { loadingDelay: t } = me();
|
|
3579
3585
|
let r;
|
|
3580
|
-
return typeof window < "u" &&
|
|
3581
|
-
() =>
|
|
3586
|
+
return typeof window < "u" && ie() != null && t ? r = window.setTimeout(
|
|
3587
|
+
() => We.set(!0),
|
|
3582
3588
|
t
|
|
3583
|
-
) :
|
|
3589
|
+
) : We.set(!0), nr(e).then(() => {
|
|
3584
3590
|
Me.set(e);
|
|
3585
3591
|
}).finally(() => {
|
|
3586
|
-
clearTimeout(r),
|
|
3592
|
+
clearTimeout(r), We.set(!1);
|
|
3587
3593
|
});
|
|
3588
3594
|
}
|
|
3589
3595
|
return Me.set(e);
|
|
3590
|
-
},
|
|
3591
|
-
set:
|
|
3592
|
-
}),
|
|
3596
|
+
}, te = ri(ti({}, Me), {
|
|
3597
|
+
set: ni
|
|
3598
|
+
}), Fe = (e) => {
|
|
3593
3599
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3594
3600
|
return (n) => {
|
|
3595
3601
|
const i = JSON.stringify(n);
|
|
3596
3602
|
return i in t ? t[i] : t[i] = e(n);
|
|
3597
3603
|
};
|
|
3598
3604
|
};
|
|
3599
|
-
var
|
|
3605
|
+
var ii = Object.defineProperty, Le = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
|
3600
3606
|
for (var r in t || (t = {}))
|
|
3601
|
-
|
|
3602
|
-
if (
|
|
3603
|
-
for (var r of
|
|
3604
|
-
|
|
3607
|
+
ir.call(t, r) && St(e, r, t[r]);
|
|
3608
|
+
if (Le)
|
|
3609
|
+
for (var r of Le(t))
|
|
3610
|
+
sr.call(t, r) && St(e, r, t[r]);
|
|
3605
3611
|
return e;
|
|
3606
|
-
},
|
|
3612
|
+
}, ge = (e, t) => {
|
|
3607
3613
|
var r = {};
|
|
3608
3614
|
for (var n in e)
|
|
3609
|
-
|
|
3610
|
-
if (e != null &&
|
|
3611
|
-
for (var n of
|
|
3612
|
-
t.indexOf(n) < 0 &&
|
|
3615
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3616
|
+
if (e != null && Le)
|
|
3617
|
+
for (var n of Le(e))
|
|
3618
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
3613
3619
|
return r;
|
|
3614
3620
|
};
|
|
3615
3621
|
const xe = (e, t) => {
|
|
3616
|
-
const { formats: r } =
|
|
3622
|
+
const { formats: r } = me();
|
|
3617
3623
|
if (e in r && t in r[e])
|
|
3618
3624
|
return r[e][t];
|
|
3619
3625
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3620
|
-
},
|
|
3626
|
+
}, si = Fe(
|
|
3621
3627
|
(e) => {
|
|
3622
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3628
|
+
var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
|
|
3623
3629
|
if (r == null)
|
|
3624
3630
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3625
3631
|
return n && (i = xe("number", n)), new Intl.NumberFormat(r, i);
|
|
3626
3632
|
}
|
|
3627
|
-
),
|
|
3633
|
+
), ai = Fe(
|
|
3628
3634
|
(e) => {
|
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3635
|
+
var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
|
|
3630
3636
|
if (r == null)
|
|
3631
3637
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3632
3638
|
return n ? i = xe("date", n) : Object.keys(i).length === 0 && (i = xe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3633
3639
|
}
|
|
3634
|
-
),
|
|
3640
|
+
), oi = Fe(
|
|
3635
3641
|
(e) => {
|
|
3636
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3642
|
+
var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
|
|
3637
3643
|
if (r == null)
|
|
3638
3644
|
throw new Error(
|
|
3639
3645
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3640
3646
|
);
|
|
3641
3647
|
return n ? i = xe("time", n) : Object.keys(i).length === 0 && (i = xe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3648
|
}
|
|
3643
|
-
),
|
|
3649
|
+
), ui = (e = {}) => {
|
|
3644
3650
|
var t = e, {
|
|
3645
|
-
locale: r =
|
|
3646
|
-
} = t, n =
|
|
3651
|
+
locale: r = ie()
|
|
3652
|
+
} = t, n = ge(t, [
|
|
3647
3653
|
"locale"
|
|
3648
3654
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3655
|
+
return si(ut({ locale: r }, n));
|
|
3656
|
+
}, li = (e = {}) => {
|
|
3651
3657
|
var t = e, {
|
|
3652
|
-
locale: r =
|
|
3653
|
-
} = t, n =
|
|
3658
|
+
locale: r = ie()
|
|
3659
|
+
} = t, n = ge(t, [
|
|
3654
3660
|
"locale"
|
|
3655
3661
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3662
|
+
return ai(ut({ locale: r }, n));
|
|
3663
|
+
}, hi = (e = {}) => {
|
|
3658
3664
|
var t = e, {
|
|
3659
|
-
locale: r =
|
|
3660
|
-
} = t, n =
|
|
3665
|
+
locale: r = ie()
|
|
3666
|
+
} = t, n = ge(t, [
|
|
3661
3667
|
"locale"
|
|
3662
3668
|
]);
|
|
3663
|
-
return
|
|
3664
|
-
},
|
|
3669
|
+
return oi(ut({ locale: r }, n));
|
|
3670
|
+
}, ci = Fe(
|
|
3665
3671
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3666
|
-
(e, t =
|
|
3667
|
-
ignoreTag:
|
|
3672
|
+
(e, t = ie()) => new kn(e, t, me().formats, {
|
|
3673
|
+
ignoreTag: me().ignoreTag
|
|
3668
3674
|
})
|
|
3669
|
-
),
|
|
3675
|
+
), fi = (e, t = {}) => {
|
|
3670
3676
|
var r, n, i, s;
|
|
3671
3677
|
let o = t;
|
|
3672
3678
|
typeof e == "object" && (o = e, e = o.id);
|
|
3673
3679
|
const {
|
|
3674
3680
|
values: a,
|
|
3675
|
-
locale: l =
|
|
3681
|
+
locale: l = ie(),
|
|
3676
3682
|
default: u
|
|
3677
3683
|
} = o;
|
|
3678
3684
|
if (l == null)
|
|
3679
3685
|
throw new Error(
|
|
3680
3686
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3681
3687
|
);
|
|
3682
|
-
let h =
|
|
3688
|
+
let h = Kt(e, l);
|
|
3683
3689
|
if (!h)
|
|
3684
|
-
h = (s = (i = (n = (r =
|
|
3690
|
+
h = (s = (i = (n = (r = me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3685
3691
|
else if (typeof h != "string")
|
|
3686
3692
|
return console.warn(
|
|
3687
3693
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3690,7 +3696,7 @@ const xe = (e, t) => {
|
|
|
3690
3696
|
return h;
|
|
3691
3697
|
let c = h;
|
|
3692
3698
|
try {
|
|
3693
|
-
c =
|
|
3699
|
+
c = ci(h, l).format(a);
|
|
3694
3700
|
} catch (m) {
|
|
3695
3701
|
m instanceof Error && console.warn(
|
|
3696
3702
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3698,23 +3704,23 @@ const xe = (e, t) => {
|
|
|
3698
3704
|
);
|
|
3699
3705
|
}
|
|
3700
3706
|
return c;
|
|
3701
|
-
},
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
function
|
|
3707
|
-
|
|
3708
|
-
r == null && (
|
|
3707
|
+
}, mi = (e, t) => hi(t).format(e), di = (e, t) => li(t).format(e), bi = (e, t) => ui(t).format(e), gi = (e, t = ie()) => Kt(e, t), pi = de([te, be], () => fi);
|
|
3708
|
+
de([te], () => mi);
|
|
3709
|
+
de([te], () => di);
|
|
3710
|
+
de([te], () => bi);
|
|
3711
|
+
de([te, be], () => gi);
|
|
3712
|
+
function yi({ withLocale: e, translations: t }) {
|
|
3713
|
+
te.subscribe((r) => {
|
|
3714
|
+
r == null && (be.set(t), te.set(e));
|
|
3709
3715
|
});
|
|
3710
3716
|
}
|
|
3711
|
-
function
|
|
3712
|
-
|
|
3717
|
+
function Tt(e, t) {
|
|
3718
|
+
tr(e, t);
|
|
3713
3719
|
}
|
|
3714
|
-
function
|
|
3715
|
-
|
|
3720
|
+
function _i(e) {
|
|
3721
|
+
te.set(e);
|
|
3716
3722
|
}
|
|
3717
|
-
const
|
|
3723
|
+
const At = {
|
|
3718
3724
|
en: {
|
|
3719
3725
|
enrolled: "Enrolled",
|
|
3720
3726
|
scoreCriteria: "Score Criteria",
|
|
@@ -4046,13 +4052,13 @@ const St = {
|
|
|
4046
4052
|
December: "December"
|
|
4047
4053
|
}
|
|
4048
4054
|
};
|
|
4049
|
-
function
|
|
4055
|
+
function vi(e, t) {
|
|
4050
4056
|
if (e) {
|
|
4051
4057
|
const r = document.createElement("style");
|
|
4052
4058
|
r.innerHTML = t, e.appendChild(r);
|
|
4053
4059
|
}
|
|
4054
4060
|
}
|
|
4055
|
-
function
|
|
4061
|
+
function Ei(e, t) {
|
|
4056
4062
|
const r = new URL(t);
|
|
4057
4063
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4058
4064
|
const i = document.createElement("style");
|
|
@@ -4061,7 +4067,7 @@ function _i(e, t) {
|
|
|
4061
4067
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4062
4068
|
});
|
|
4063
4069
|
}
|
|
4064
|
-
function
|
|
4070
|
+
function xi(e, t, r) {
|
|
4065
4071
|
if (window.emMessageBus) {
|
|
4066
4072
|
const n = document.createElement("style");
|
|
4067
4073
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4069,10 +4075,10 @@ function vi(e, t, r) {
|
|
|
4069
4075
|
});
|
|
4070
4076
|
}
|
|
4071
4077
|
}
|
|
4072
|
-
function
|
|
4073
|
-
|
|
4078
|
+
function Si(e) {
|
|
4079
|
+
ur(e, "svelte-52u9sp", ':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"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.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{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.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}');
|
|
4074
4080
|
}
|
|
4075
|
-
function
|
|
4081
|
+
function Ht(e) {
|
|
4076
4082
|
let t, r, n;
|
|
4077
4083
|
return {
|
|
4078
4084
|
c() {
|
|
@@ -4082,91 +4088,91 @@ function Tt(e) {
|
|
|
4082
4088
|
k(i, t, s), k(i, r, s), k(i, n, s);
|
|
4083
4089
|
},
|
|
4084
4090
|
d(i) {
|
|
4085
|
-
i && (
|
|
4091
|
+
i && (P(t), P(r), P(n));
|
|
4086
4092
|
}
|
|
4087
4093
|
};
|
|
4088
4094
|
}
|
|
4089
|
-
function
|
|
4095
|
+
function Ct(e) {
|
|
4090
4096
|
let t, r, n, i, s, o, a, l, u, h, c = (
|
|
4091
4097
|
/*$_*/
|
|
4092
4098
|
e[14]("scoreCriteria") + ""
|
|
4093
|
-
), m,
|
|
4099
|
+
), m, _, y, T, w, F = (
|
|
4094
4100
|
/*$_*/
|
|
4095
4101
|
e[14]("minbet") + ""
|
|
4096
|
-
),
|
|
4102
|
+
), M, C, U, L, I, V, J, W = (
|
|
4097
4103
|
/*$_*/
|
|
4098
4104
|
e[14]("seegames") + ""
|
|
4099
|
-
),
|
|
4105
|
+
), Q, Ae, G, Y = (
|
|
4100
4106
|
/*$_*/
|
|
4101
4107
|
e[14]("here") + ""
|
|
4102
|
-
),
|
|
4108
|
+
), ne, K, pe, He, B = (
|
|
4103
4109
|
/*status*/
|
|
4104
|
-
e[0] &&
|
|
4110
|
+
e[0] && Bt(e)
|
|
4105
4111
|
), N = (
|
|
4106
4112
|
/*showenrolled*/
|
|
4107
|
-
e[6] == "true" &&
|
|
4113
|
+
e[6] == "true" && wt(e)
|
|
4108
4114
|
);
|
|
4109
4115
|
function f(b, E) {
|
|
4110
4116
|
return (
|
|
4111
4117
|
/*thumbnail*/
|
|
4112
|
-
b[3] ?
|
|
4118
|
+
b[3] ? Ai : Ti
|
|
4113
4119
|
);
|
|
4114
4120
|
}
|
|
4115
|
-
let z = f(e), $ = z(e),
|
|
4121
|
+
let z = f(e), $ = z(e), O = (
|
|
4116
4122
|
/*startdate*/
|
|
4117
|
-
e[2] &&
|
|
4123
|
+
e[2] && Nt(e)
|
|
4118
4124
|
);
|
|
4119
4125
|
return {
|
|
4120
4126
|
c() {
|
|
4121
4127
|
B && B.c(), t = X(), N && N.c(), r = X(), $.c(), n = X(), i = H("div"), s = H("div"), o = R(
|
|
4122
4128
|
/*title*/
|
|
4123
4129
|
e[1]
|
|
4124
|
-
), a = X(),
|
|
4130
|
+
), a = X(), O && O.c(), l = X(), u = H("div"), h = H("p"), m = R(c), _ = R(`:
|
|
4125
4131
|
`), y = H("span"), T = R(
|
|
4126
4132
|
/*showScoreCriteria*/
|
|
4127
4133
|
e[12]
|
|
4128
4134
|
), w = R(`
|
|
4129
|
-
(`),
|
|
4135
|
+
(`), M = R(F), C = X(), U = R(
|
|
4130
4136
|
/*minbetcount*/
|
|
4131
4137
|
e[5]
|
|
4132
|
-
), L = R(")"), I = X(), V = H("div"), J = H("p"),
|
|
4138
|
+
), L = R(")"), I = X(), V = H("div"), J = H("p"), Q = R(W), Ae = X(), G = H("a"), ne = R(Y), d(s, "class", "Title"), d(s, "part", "Title"), d(y, "part", "ScoreCriteriaSpan"), d(h, "part", "ScoreCriteriaP"), d(u, "class", "ScoreCriteria"), d(u, "part", "ScoreCriteria"), d(G, "part", "GamesAnchor"), d(
|
|
4133
4139
|
G,
|
|
4134
4140
|
"href",
|
|
4135
4141
|
/*gameurl*/
|
|
4136
4142
|
e[7]
|
|
4137
|
-
), d(G, "target",
|
|
4143
|
+
), d(G, "target", K = /*keepbrowsercontext*/
|
|
4138
4144
|
e[8] === "true" ? "_self" : "_blank"), d(J, "part", "GamesP"), d(V, "class", "Games"), d(V, "part", "Games"), d(i, "class", "Details"), d(i, "part", "Details");
|
|
4139
4145
|
},
|
|
4140
4146
|
m(b, E) {
|
|
4141
|
-
B && B.m(b, E), k(b, t, E), N && N.m(b, E), k(b, r, E), $.m(b, E), k(b, n, E), k(b, i, E),
|
|
4142
|
-
|
|
4147
|
+
B && B.m(b, E), k(b, t, E), N && N.m(b, E), k(b, r, E), $.m(b, E), k(b, n, E), k(b, i, E), v(i, s), v(s, o), v(i, a), O && O.m(i, null), v(i, l), v(i, u), v(u, h), v(h, m), v(h, _), v(h, y), v(y, T), v(h, w), v(h, M), v(h, C), v(h, U), v(h, L), v(i, I), v(i, V), v(V, J), v(J, Q), v(J, Ae), v(J, G), v(G, ne), pe || (He = [
|
|
4148
|
+
Oe(
|
|
4143
4149
|
s,
|
|
4144
4150
|
"click",
|
|
4145
4151
|
/*detailsAction*/
|
|
4146
4152
|
e[19]
|
|
4147
4153
|
),
|
|
4148
|
-
|
|
4154
|
+
Te(
|
|
4149
4155
|
/*matchScoreCriteria*/
|
|
4150
4156
|
e[17].call(null, y)
|
|
4151
4157
|
),
|
|
4152
|
-
|
|
4158
|
+
Oe(
|
|
4153
4159
|
G,
|
|
4154
4160
|
"click",
|
|
4155
4161
|
/*tournamentGamesClicked*/
|
|
4156
4162
|
e[18]
|
|
4157
4163
|
)
|
|
4158
|
-
],
|
|
4164
|
+
], pe = !0);
|
|
4159
4165
|
},
|
|
4160
4166
|
p(b, E) {
|
|
4161
4167
|
/*status*/
|
|
4162
|
-
b[0] ? B ? B.p(b, E) : (B =
|
|
4163
|
-
b[6] == "true" ? N ? N.p(b, E) : (N =
|
|
4168
|
+
b[0] ? B ? B.p(b, E) : (B = Bt(b), B.c(), B.m(t.parentNode, t)) : B && (B.d(1), B = null), /*showenrolled*/
|
|
4169
|
+
b[6] == "true" ? N ? N.p(b, E) : (N = wt(b), N.c(), N.m(r.parentNode, r)) : N && (N.d(1), N = null), z === (z = f(b)) && $ ? $.p(b, E) : ($.d(1), $ = z(b), $ && ($.c(), $.m(n.parentNode, n))), E[0] & /*title*/
|
|
4164
4170
|
2 && Z(
|
|
4165
4171
|
o,
|
|
4166
4172
|
/*title*/
|
|
4167
4173
|
b[1]
|
|
4168
4174
|
), /*startdate*/
|
|
4169
|
-
b[2] ?
|
|
4175
|
+
b[2] ? O ? O.p(b, E) : (O = Nt(b), O.c(), O.m(i, l)) : O && (O.d(1), O = null), E[0] & /*$_*/
|
|
4170
4176
|
16384 && c !== (c = /*$_*/
|
|
4171
4177
|
b[14]("scoreCriteria") + "") && Z(m, c), E[0] & /*showScoreCriteria*/
|
|
4172
4178
|
4096 && Z(
|
|
@@ -4175,31 +4181,31 @@ function At(e) {
|
|
|
4175
4181
|
b[12]
|
|
4176
4182
|
), E[0] & /*$_*/
|
|
4177
4183
|
16384 && F !== (F = /*$_*/
|
|
4178
|
-
b[14]("minbet") + "") && Z(
|
|
4184
|
+
b[14]("minbet") + "") && Z(M, F), E[0] & /*minbetcount*/
|
|
4179
4185
|
32 && Z(
|
|
4180
4186
|
U,
|
|
4181
4187
|
/*minbetcount*/
|
|
4182
4188
|
b[5]
|
|
4183
4189
|
), E[0] & /*$_*/
|
|
4184
4190
|
16384 && W !== (W = /*$_*/
|
|
4185
|
-
b[14]("seegames") + "") && Z(
|
|
4186
|
-
16384 &&
|
|
4187
|
-
b[14]("here") + "") && Z(
|
|
4191
|
+
b[14]("seegames") + "") && Z(Q, W), E[0] & /*$_*/
|
|
4192
|
+
16384 && Y !== (Y = /*$_*/
|
|
4193
|
+
b[14]("here") + "") && Z(ne, Y), E[0] & /*gameurl*/
|
|
4188
4194
|
128 && d(
|
|
4189
4195
|
G,
|
|
4190
4196
|
"href",
|
|
4191
4197
|
/*gameurl*/
|
|
4192
4198
|
b[7]
|
|
4193
4199
|
), E[0] & /*keepbrowsercontext*/
|
|
4194
|
-
256 &&
|
|
4195
|
-
b[8] === "true" ? "_self" : "_blank") && d(G, "target",
|
|
4200
|
+
256 && K !== (K = /*keepbrowsercontext*/
|
|
4201
|
+
b[8] === "true" ? "_self" : "_blank") && d(G, "target", K);
|
|
4196
4202
|
},
|
|
4197
4203
|
d(b) {
|
|
4198
|
-
b && (
|
|
4204
|
+
b && (P(t), P(r), P(n), P(i)), B && B.d(b), N && N.d(b), $.d(b), O && O.d(), pe = !1, re(He);
|
|
4199
4205
|
}
|
|
4200
4206
|
};
|
|
4201
4207
|
}
|
|
4202
|
-
function
|
|
4208
|
+
function Bt(e) {
|
|
4203
4209
|
let t, r, n, i, s, o;
|
|
4204
4210
|
return {
|
|
4205
4211
|
c() {
|
|
@@ -4211,7 +4217,7 @@ function Ht(e) {
|
|
|
4211
4217
|
e[13]);
|
|
4212
4218
|
},
|
|
4213
4219
|
m(a, l) {
|
|
4214
|
-
k(a, t, l),
|
|
4220
|
+
k(a, t, l), v(t, r), s || (o = Te(
|
|
4215
4221
|
/*matchStatus*/
|
|
4216
4222
|
e[16].call(null, t)
|
|
4217
4223
|
), s = !0);
|
|
@@ -4229,32 +4235,32 @@ function Ht(e) {
|
|
|
4229
4235
|
a[13]) && d(t, "part", i);
|
|
4230
4236
|
},
|
|
4231
4237
|
d(a) {
|
|
4232
|
-
a &&
|
|
4238
|
+
a && P(t), s = !1, o();
|
|
4233
4239
|
}
|
|
4234
4240
|
};
|
|
4235
4241
|
}
|
|
4236
|
-
function
|
|
4242
|
+
function wt(e) {
|
|
4237
4243
|
let t, r = (
|
|
4238
4244
|
/*userenrolled*/
|
|
4239
|
-
e[4] &&
|
|
4245
|
+
e[4] && It(e)
|
|
4240
4246
|
);
|
|
4241
4247
|
return {
|
|
4242
4248
|
c() {
|
|
4243
|
-
r && r.c(), t =
|
|
4249
|
+
r && r.c(), t = cr();
|
|
4244
4250
|
},
|
|
4245
4251
|
m(n, i) {
|
|
4246
4252
|
r && r.m(n, i), k(n, t, i);
|
|
4247
4253
|
},
|
|
4248
4254
|
p(n, i) {
|
|
4249
4255
|
/*userenrolled*/
|
|
4250
|
-
n[4] ? r ? r.p(n, i) : (r =
|
|
4256
|
+
n[4] ? r ? r.p(n, i) : (r = It(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4251
4257
|
},
|
|
4252
4258
|
d(n) {
|
|
4253
|
-
n &&
|
|
4259
|
+
n && P(t), r && r.d(n);
|
|
4254
4260
|
}
|
|
4255
4261
|
};
|
|
4256
4262
|
}
|
|
4257
|
-
function
|
|
4263
|
+
function It(e) {
|
|
4258
4264
|
let t, r = (
|
|
4259
4265
|
/*$_*/
|
|
4260
4266
|
e[14]("enrolled") + ""
|
|
@@ -4264,7 +4270,7 @@ function Bt(e) {
|
|
|
4264
4270
|
t = H("div"), n = R(r), d(t, "class", "Enrolled"), d(t, "part", "Enrolled");
|
|
4265
4271
|
},
|
|
4266
4272
|
m(i, s) {
|
|
4267
|
-
k(i, t, s),
|
|
4273
|
+
k(i, t, s), v(t, n);
|
|
4268
4274
|
},
|
|
4269
4275
|
p(i, s) {
|
|
4270
4276
|
s[0] & /*$_*/
|
|
@@ -4272,27 +4278,27 @@ function Bt(e) {
|
|
|
4272
4278
|
i[14]("enrolled") + "") && Z(n, r);
|
|
4273
4279
|
},
|
|
4274
4280
|
d(i) {
|
|
4275
|
-
i &&
|
|
4281
|
+
i && P(t);
|
|
4276
4282
|
}
|
|
4277
4283
|
};
|
|
4278
4284
|
}
|
|
4279
|
-
function
|
|
4285
|
+
function Ti(e) {
|
|
4280
4286
|
let t, r, n, i, s, o, a;
|
|
4281
4287
|
return {
|
|
4282
4288
|
c() {
|
|
4283
|
-
t = H("div"), r = H("ui-image"),
|
|
4289
|
+
t = H("div"), r = H("ui-image"), Xe(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || ue(r, "src", n), ue(r, "alt", "icon"), d(t, "class", i = "CardImg " + /*status*/
|
|
4284
4290
|
(e[0] == "Closing" || /*status*/
|
|
4285
4291
|
e[0] == "Closed" ? "CardImgFinished" : "")), d(t, "part", s = "CardImg " + /*status*/
|
|
4286
4292
|
(e[0] == "Closing" || /*status*/
|
|
4287
4293
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4288
4294
|
},
|
|
4289
4295
|
m(l, u) {
|
|
4290
|
-
k(l, t, u),
|
|
4291
|
-
|
|
4296
|
+
k(l, t, u), v(t, r), o || (a = [
|
|
4297
|
+
Te(
|
|
4292
4298
|
/*matchStatus*/
|
|
4293
4299
|
e[16].call(null, t)
|
|
4294
4300
|
),
|
|
4295
|
-
|
|
4301
|
+
Oe(
|
|
4296
4302
|
t,
|
|
4297
4303
|
"click",
|
|
4298
4304
|
/*detailsAction*/
|
|
@@ -4310,28 +4316,28 @@ function Ei(e) {
|
|
|
4310
4316
|
l[0] == "Closed" ? "CardImgFinished" : "")) && d(t, "part", s);
|
|
4311
4317
|
},
|
|
4312
4318
|
d(l) {
|
|
4313
|
-
l &&
|
|
4319
|
+
l && P(t), o = !1, re(a);
|
|
4314
4320
|
}
|
|
4315
4321
|
};
|
|
4316
4322
|
}
|
|
4317
|
-
function
|
|
4323
|
+
function Ai(e) {
|
|
4318
4324
|
let t, r, n, i, s, o, a;
|
|
4319
4325
|
return {
|
|
4320
4326
|
c() {
|
|
4321
|
-
t = H("div"), r = H("ui-image"),
|
|
4322
|
-
e[3]) ||
|
|
4327
|
+
t = H("div"), r = H("ui-image"), ue(r, "class", "UIImage"), Xe(r.src, n = /*thumbnail*/
|
|
4328
|
+
e[3]) || ue(r, "src", n), ue(r, "alt", "icon"), d(t, "class", i = "CardImg " + /*status*/
|
|
4323
4329
|
(e[0] == "Closing" || /*status*/
|
|
4324
4330
|
e[0] == "Closed" ? "CardImgFinished" : "")), d(t, "part", s = "CardImg " + /*status*/
|
|
4325
4331
|
(e[0] == "Closing" || /*status*/
|
|
4326
4332
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4327
4333
|
},
|
|
4328
4334
|
m(l, u) {
|
|
4329
|
-
k(l, t, u),
|
|
4330
|
-
|
|
4335
|
+
k(l, t, u), v(t, r), o || (a = [
|
|
4336
|
+
Te(
|
|
4331
4337
|
/*matchStatus*/
|
|
4332
4338
|
e[16].call(null, t)
|
|
4333
4339
|
),
|
|
4334
|
-
|
|
4340
|
+
Oe(
|
|
4335
4341
|
t,
|
|
4336
4342
|
"click",
|
|
4337
4343
|
/*detailsAction*/
|
|
@@ -4341,8 +4347,8 @@ function Si(e) {
|
|
|
4341
4347
|
},
|
|
4342
4348
|
p(l, u) {
|
|
4343
4349
|
u[0] & /*thumbnail*/
|
|
4344
|
-
8 && !
|
|
4345
|
-
l[3]) &&
|
|
4350
|
+
8 && !Xe(r.src, n = /*thumbnail*/
|
|
4351
|
+
l[3]) && ue(r, "src", n), u[0] & /*status*/
|
|
4346
4352
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4347
4353
|
(l[0] == "Closing" || /*status*/
|
|
4348
4354
|
l[0] == "Closed" ? "CardImgFinished" : "")) && d(t, "class", i), u[0] & /*status*/
|
|
@@ -4351,11 +4357,11 @@ function Si(e) {
|
|
|
4351
4357
|
l[0] == "Closed" ? "CardImgFinished" : "")) && d(t, "part", s);
|
|
4352
4358
|
},
|
|
4353
4359
|
d(l) {
|
|
4354
|
-
l &&
|
|
4360
|
+
l && P(t), o = !1, re(a);
|
|
4355
4361
|
}
|
|
4356
4362
|
};
|
|
4357
4363
|
}
|
|
4358
|
-
function
|
|
4364
|
+
function Nt(e) {
|
|
4359
4365
|
let t, r, n, i, s;
|
|
4360
4366
|
return {
|
|
4361
4367
|
c() {
|
|
@@ -4365,7 +4371,7 @@ function wt(e) {
|
|
|
4365
4371
|
), d(t, "class", "Date"), d(t, "part", "Date");
|
|
4366
4372
|
},
|
|
4367
4373
|
m(o, a) {
|
|
4368
|
-
k(o, t, a),
|
|
4374
|
+
k(o, t, a), v(t, r), i || (s = Te(n = /*formatDate*/
|
|
4369
4375
|
e[15].call(
|
|
4370
4376
|
null,
|
|
4371
4377
|
t,
|
|
@@ -4379,7 +4385,7 @@ function wt(e) {
|
|
|
4379
4385
|
r,
|
|
4380
4386
|
/*shownDate*/
|
|
4381
4387
|
o[10]
|
|
4382
|
-
), n &&
|
|
4388
|
+
), n && Se(n.update) && a[0] & /*startdate*/
|
|
4383
4389
|
4 && n.update.call(
|
|
4384
4390
|
null,
|
|
4385
4391
|
/*startdate*/
|
|
@@ -4387,17 +4393,17 @@ function wt(e) {
|
|
|
4387
4393
|
);
|
|
4388
4394
|
},
|
|
4389
4395
|
d(o) {
|
|
4390
|
-
o &&
|
|
4396
|
+
o && P(t), i = !1, s();
|
|
4391
4397
|
}
|
|
4392
4398
|
};
|
|
4393
4399
|
}
|
|
4394
|
-
function
|
|
4400
|
+
function Hi(e) {
|
|
4395
4401
|
let t, r, n, i = (
|
|
4396
4402
|
/*title*/
|
|
4397
|
-
e[1] === "undefined" &&
|
|
4403
|
+
e[1] === "undefined" && Ht()
|
|
4398
4404
|
), s = (
|
|
4399
4405
|
/*title*/
|
|
4400
|
-
e[1] !== "undefined" &&
|
|
4406
|
+
e[1] !== "undefined" && Ct(e)
|
|
4401
4407
|
);
|
|
4402
4408
|
return {
|
|
4403
4409
|
c() {
|
|
@@ -4405,57 +4411,57 @@ function Ti(e) {
|
|
|
4405
4411
|
e[1] === "undefined" ? "Loading" : ""}`), d(t, "part", "Thumbnail");
|
|
4406
4412
|
},
|
|
4407
4413
|
m(o, a) {
|
|
4408
|
-
k(o, t, a), i && i.m(t, null),
|
|
4414
|
+
k(o, t, a), i && i.m(t, null), v(t, r), s && s.m(t, null), e[29](t);
|
|
4409
4415
|
},
|
|
4410
4416
|
p(o, a) {
|
|
4411
4417
|
/*title*/
|
|
4412
|
-
o[1] === "undefined" ? i || (i =
|
|
4413
|
-
o[1] !== "undefined" ? s ? s.p(o, a) : (s =
|
|
4418
|
+
o[1] === "undefined" ? i || (i = Ht(), i.c(), i.m(t, r)) : i && (i.d(1), i = null), /*title*/
|
|
4419
|
+
o[1] !== "undefined" ? s ? s.p(o, a) : (s = Ct(o), s.c(), s.m(t, null)) : s && (s.d(1), s = null), a[0] & /*title*/
|
|
4414
4420
|
2 && n !== (n = `Thumbnail ${/*title*/
|
|
4415
4421
|
o[1] === "undefined" ? "Loading" : ""}`) && d(t, "class", n);
|
|
4416
4422
|
},
|
|
4417
4423
|
i: j,
|
|
4418
4424
|
o: j,
|
|
4419
4425
|
d(o) {
|
|
4420
|
-
o &&
|
|
4426
|
+
o && P(t), i && i.d(), s && s.d(), e[29](null);
|
|
4421
4427
|
}
|
|
4422
4428
|
};
|
|
4423
4429
|
}
|
|
4424
|
-
function
|
|
4430
|
+
function Ci(e, t, r) {
|
|
4425
4431
|
let n;
|
|
4426
|
-
|
|
4427
|
-
let { userid: i = "" } = t, { title: s = "" } = t, { startdate: o = "" } = t, { status: a = "" } = t, { tourid: l = "" } = t, { thumbnail: u = "" } = t, { userenrolled: h = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: m = "" } = t, { showenrolled:
|
|
4428
|
-
|
|
4429
|
-
const
|
|
4432
|
+
or(e, pi, (f) => r(14, n = f));
|
|
4433
|
+
let { userid: i = "" } = t, { title: s = "" } = t, { startdate: o = "" } = t, { status: a = "" } = t, { tourid: l = "" } = t, { thumbnail: u = "" } = t, { userenrolled: h = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: m = "" } = t, { showenrolled: _ = "false" } = t, { detailsevent: y = "" } = t, { gameurl: T = "" } = t, { lang: w = "en" } = t, { keepbrowsercontext: F = "false" } = t, { clientstyling: M = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: U = "" } = t, { mbsource: L } = t, I, V = "", J = "", W = "", Q = "";
|
|
4434
|
+
yi({ withLocale: "en", translations: {} });
|
|
4435
|
+
const Ae = () => {
|
|
4430
4436
|
fetch(U).then((f) => f.json()).then((f) => {
|
|
4431
4437
|
Object.keys(f).forEach((z) => {
|
|
4432
|
-
|
|
4438
|
+
Tt(z, f[z]);
|
|
4433
4439
|
}), o && B();
|
|
4434
4440
|
}).catch((f) => {
|
|
4435
4441
|
console.log(f);
|
|
4436
4442
|
});
|
|
4437
4443
|
};
|
|
4438
|
-
Object.keys(
|
|
4439
|
-
|
|
4444
|
+
Object.keys(At).forEach((f) => {
|
|
4445
|
+
Tt(f, At[f]);
|
|
4440
4446
|
});
|
|
4441
4447
|
const G = (f) => {
|
|
4442
4448
|
f.data && f.data.type == `TournamentStatus_${l}` && r(0, a = f.data.status);
|
|
4443
|
-
},
|
|
4449
|
+
}, Y = () => {
|
|
4444
4450
|
const f = { month: "long" };
|
|
4445
|
-
let z = new Date(o), $ = new Intl.DateTimeFormat("en", f).format(z),
|
|
4451
|
+
let z = new Date(o), $ = new Intl.DateTimeFormat("en", f).format(z), O = z.getDate(), b = z.toLocaleString("en-GB", {
|
|
4446
4452
|
hour: "numeric",
|
|
4447
4453
|
minute: "numeric",
|
|
4448
4454
|
hour12: !1
|
|
4449
4455
|
});
|
|
4450
4456
|
const E = () => n(a === "Running" ? "startedAt" : "startingAt");
|
|
4451
|
-
r(10, V = `${
|
|
4452
|
-
},
|
|
4453
|
-
a == "Unstarted" && (r(11, J = n("scheduled")), r(13,
|
|
4454
|
-
},
|
|
4457
|
+
r(10, V = `${O} ` + n(`${$}`) + ", " + E() + ` ${b}`);
|
|
4458
|
+
}, ne = () => {
|
|
4459
|
+
a == "Unstarted" && (r(11, J = n("scheduled")), r(13, Q = "StatusUnstarted")), a == "Running" && (r(11, J = n("ongoing")), r(13, Q = "StatusRunning")), (a == "Closed" || a == "Closing") && r(11, J = n("finished")), a == "Closed" && r(13, Q = "StatusClosed"), a == "Closing" && r(13, Q = "StatusClosing");
|
|
4460
|
+
}, K = () => {
|
|
4455
4461
|
c == "BetCount" && r(12, W = n("betCount")), c == "MaxWinStakeRatio" && r(12, W = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(12, W = n("winStakeRatio")), c == "Stake" && r(12, W = n("stake"));
|
|
4456
|
-
},
|
|
4462
|
+
}, pe = () => {
|
|
4457
4463
|
window.postMessage({ type: "tournamentGamesClicked", tourid: l }, window.location.href);
|
|
4458
|
-
},
|
|
4464
|
+
}, He = () => {
|
|
4459
4465
|
y && window.postMessage(
|
|
4460
4466
|
{
|
|
4461
4467
|
type: y,
|
|
@@ -4465,29 +4471,29 @@ function Ai(e, t, r) {
|
|
|
4465
4471
|
window.location.href
|
|
4466
4472
|
);
|
|
4467
4473
|
};
|
|
4468
|
-
|
|
4474
|
+
br(() => (setTimeout(() => B(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", G, !1), () => {
|
|
4469
4475
|
window.removeEventListener("message", G);
|
|
4470
4476
|
}));
|
|
4471
4477
|
const B = () => {
|
|
4472
|
-
|
|
4478
|
+
_i(w), K(), ne(), o && Y();
|
|
4473
4479
|
};
|
|
4474
4480
|
function N(f) {
|
|
4475
|
-
|
|
4481
|
+
Ze[f ? "unshift" : "push"](() => {
|
|
4476
4482
|
I = f, r(9, I);
|
|
4477
4483
|
});
|
|
4478
4484
|
}
|
|
4479
4485
|
return e.$$set = (f) => {
|
|
4480
|
-
"userid" in f && r(20, i = f.userid), "title" in f && r(1, s = f.title), "startdate" in f && r(2, o = f.startdate), "status" in f && r(0, a = f.status), "tourid" in f && r(21, l = f.tourid), "thumbnail" in f && r(3, u = f.thumbnail), "userenrolled" in f && r(4, h = f.userenrolled), "scorecriteria" in f && r(22, c = f.scorecriteria), "minbetcount" in f && r(5, m = f.minbetcount), "showenrolled" in f && r(6,
|
|
4486
|
+
"userid" in f && r(20, i = f.userid), "title" in f && r(1, s = f.title), "startdate" in f && r(2, o = f.startdate), "status" in f && r(0, a = f.status), "tourid" in f && r(21, l = f.tourid), "thumbnail" in f && r(3, u = f.thumbnail), "userenrolled" in f && r(4, h = f.userenrolled), "scorecriteria" in f && r(22, c = f.scorecriteria), "minbetcount" in f && r(5, m = f.minbetcount), "showenrolled" in f && r(6, _ = f.showenrolled), "detailsevent" in f && r(23, y = f.detailsevent), "gameurl" in f && r(7, T = f.gameurl), "lang" in f && r(24, w = f.lang), "keepbrowsercontext" in f && r(8, F = f.keepbrowsercontext), "clientstyling" in f && r(25, M = f.clientstyling), "clientstylingurl" in f && r(26, C = f.clientstylingurl), "translationurl" in f && r(27, U = f.translationurl), "mbsource" in f && r(28, L = f.mbsource);
|
|
4481
4487
|
}, e.$$.update = () => {
|
|
4482
4488
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4483
|
-
33554944 &&
|
|
4484
|
-
67109376 && C && I &&
|
|
4485
|
-
268435968 && L && I &&
|
|
4486
|
-
134217728 && U &&
|
|
4487
|
-
1 && a &&
|
|
4489
|
+
33554944 && M && I && vi(I, M), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4490
|
+
67109376 && C && I && Ei(I, C), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4491
|
+
268435968 && L && I && xi(I, `${L}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4492
|
+
134217728 && U && Ae(), e.$$.dirty[0] & /*status*/
|
|
4493
|
+
1 && a && ne(), e.$$.dirty[0] & /*title, lang*/
|
|
4488
4494
|
16777218 && s && w && B(), e.$$.dirty[0] & /*startdate*/
|
|
4489
|
-
4 && o &&
|
|
4490
|
-
4194304 && c &&
|
|
4495
|
+
4 && o && Y(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4496
|
+
4194304 && c && K();
|
|
4491
4497
|
}, [
|
|
4492
4498
|
a,
|
|
4493
4499
|
s,
|
|
@@ -4495,40 +4501,40 @@ function Ai(e, t, r) {
|
|
|
4495
4501
|
u,
|
|
4496
4502
|
h,
|
|
4497
4503
|
m,
|
|
4498
|
-
|
|
4504
|
+
_,
|
|
4499
4505
|
T,
|
|
4500
4506
|
F,
|
|
4501
4507
|
I,
|
|
4502
4508
|
V,
|
|
4503
4509
|
J,
|
|
4504
4510
|
W,
|
|
4505
|
-
q,
|
|
4506
|
-
n,
|
|
4507
4511
|
Q,
|
|
4508
|
-
|
|
4512
|
+
n,
|
|
4509
4513
|
Y,
|
|
4510
|
-
|
|
4511
|
-
|
|
4514
|
+
ne,
|
|
4515
|
+
K,
|
|
4516
|
+
pe,
|
|
4517
|
+
He,
|
|
4512
4518
|
i,
|
|
4513
4519
|
l,
|
|
4514
4520
|
c,
|
|
4515
4521
|
y,
|
|
4516
4522
|
w,
|
|
4517
|
-
|
|
4523
|
+
M,
|
|
4518
4524
|
C,
|
|
4519
4525
|
U,
|
|
4520
4526
|
L,
|
|
4521
4527
|
N
|
|
4522
4528
|
];
|
|
4523
4529
|
}
|
|
4524
|
-
class
|
|
4530
|
+
class Bi extends Cr {
|
|
4525
4531
|
constructor(t) {
|
|
4526
|
-
super(),
|
|
4532
|
+
super(), Ar(
|
|
4527
4533
|
this,
|
|
4528
4534
|
t,
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4535
|
+
Ci,
|
|
4536
|
+
Hi,
|
|
4537
|
+
Pt,
|
|
4532
4538
|
{
|
|
4533
4539
|
userid: 20,
|
|
4534
4540
|
title: 1,
|
|
@@ -4549,7 +4555,7 @@ class Hi extends Ar {
|
|
|
4549
4555
|
translationurl: 27,
|
|
4550
4556
|
mbsource: 28
|
|
4551
4557
|
},
|
|
4552
|
-
|
|
4558
|
+
Si,
|
|
4553
4559
|
[-1, -1]
|
|
4554
4560
|
);
|
|
4555
4561
|
}
|
|
@@ -4662,7 +4668,7 @@ class Hi extends Ar {
|
|
|
4662
4668
|
this.$$set({ mbsource: t }), A();
|
|
4663
4669
|
}
|
|
4664
4670
|
}
|
|
4665
|
-
|
|
4671
|
+
Hr(Bi, { userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, detailsevent: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4666
4672
|
export {
|
|
4667
|
-
|
|
4673
|
+
Bi as C
|
|
4668
4674
|
};
|