@everymatrix/casino-tournaments-thumbnail-prizes 1.86.2 → 1.86.4
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/CasinoTournamentsThumbnailPrizes-2IuSQazp.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailPrizes-KWys1PqP.js → CasinoTournamentsThumbnailPrizes-CjlXRt65.js} +555 -559
- package/components/{CasinoTournamentsThumbnailPrizes-mHmzY5O2.js → CasinoTournamentsThumbnailPrizes-CzzsMaWv.js} +539 -543
- package/es2015/casino-tournaments-thumbnail-prizes.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-prizes.js +1 -1
- package/esnext/casino-tournaments-thumbnail-prizes.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailPrizes-Cub338de.cjs +0 -3
|
@@ -2,15 +2,15 @@ var zt = Object.defineProperty, jt = Object.defineProperties;
|
|
|
2
2
|
var kt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ze = Object.getOwnPropertySymbols;
|
|
4
4
|
var Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var be = (e, t, r) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Vt.call(t, r) &&
|
|
7
|
+
Vt.call(t, r) && be(e, r, t[r]);
|
|
8
8
|
if (ze)
|
|
9
9
|
for (var r of ze(t))
|
|
10
|
-
Xt.call(t, r) &&
|
|
10
|
+
Xt.call(t, r) && be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, ke = (e, t) => jt(e, kt(t));
|
|
13
|
-
var T = (e, t, r) => (
|
|
13
|
+
var T = (e, t, r) => (be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Ve = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,36 +27,36 @@ var Ve = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, u);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function pt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Xe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function K(e) {
|
|
39
|
+
e.forEach(pt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ce(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function dt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Zt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function bt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return B;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Wt(e, t, r) {
|
|
60
60
|
e.$$.on_destroy.push(bt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function v(e, t) {
|
|
@@ -86,10 +86,10 @@ function qt(e, t) {
|
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ee(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function z(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function Yt(e, t) {
|
|
@@ -99,19 +99,19 @@ function Yt(e, t) {
|
|
|
99
99
|
function P(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function O(e) {
|
|
103
103
|
return document.createTextNode(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function ue() {
|
|
106
|
+
return O(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function y(e, t, r) {
|
|
109
109
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
110
110
|
}
|
|
111
111
|
function Kt(e) {
|
|
112
112
|
return Array.from(e.childNodes);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function W(e, t) {
|
|
115
115
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
116
116
|
t);
|
|
117
117
|
}
|
|
@@ -124,96 +124,96 @@ function er(e) {
|
|
|
124
124
|
}
|
|
125
125
|
), t;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
128
|
-
function
|
|
129
|
-
|
|
127
|
+
let J;
|
|
128
|
+
function Q(e) {
|
|
129
|
+
J = e;
|
|
130
130
|
}
|
|
131
131
|
function tr() {
|
|
132
|
-
if (!
|
|
132
|
+
if (!J)
|
|
133
133
|
throw new Error("Function called outside component initialization");
|
|
134
|
-
return
|
|
134
|
+
return J;
|
|
135
135
|
}
|
|
136
136
|
function rr(e) {
|
|
137
137
|
tr().$$.on_mount.push(e);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
const
|
|
142
|
-
let
|
|
139
|
+
const C = [], Te = [];
|
|
140
|
+
let R = [];
|
|
141
|
+
const Ze = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
142
|
+
let Pe = !1;
|
|
143
143
|
function ir() {
|
|
144
|
-
|
|
144
|
+
Pe || (Pe = !0, nr.then(w));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
146
|
+
function Be(e) {
|
|
147
|
+
R.push(e);
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
let
|
|
151
|
-
function
|
|
152
|
-
if (
|
|
149
|
+
const ge = /* @__PURE__ */ new Set();
|
|
150
|
+
let $ = 0;
|
|
151
|
+
function w() {
|
|
152
|
+
if ($ !== 0)
|
|
153
153
|
return;
|
|
154
|
-
const e =
|
|
154
|
+
const e = J;
|
|
155
155
|
do {
|
|
156
156
|
try {
|
|
157
|
-
for (;
|
|
158
|
-
const t =
|
|
159
|
-
|
|
157
|
+
for (; $ < C.length; ) {
|
|
158
|
+
const t = C[$];
|
|
159
|
+
$++, Q(t), sr(t.$$);
|
|
160
160
|
}
|
|
161
161
|
} catch (t) {
|
|
162
|
-
throw
|
|
162
|
+
throw C.length = 0, $ = 0, t;
|
|
163
163
|
}
|
|
164
|
-
for (
|
|
165
|
-
|
|
166
|
-
for (let t = 0; t <
|
|
167
|
-
const r =
|
|
168
|
-
|
|
164
|
+
for (Q(null), C.length = 0, $ = 0; Te.length; )
|
|
165
|
+
Te.pop()();
|
|
166
|
+
for (let t = 0; t < R.length; t += 1) {
|
|
167
|
+
const r = R[t];
|
|
168
|
+
ge.has(r) || (ge.add(r), r());
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
} while (
|
|
172
|
-
for (;
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
R.length = 0;
|
|
171
|
+
} while (C.length);
|
|
172
|
+
for (; Ze.length; )
|
|
173
|
+
Ze.pop()();
|
|
174
|
+
Pe = !1, ge.clear(), Q(e);
|
|
175
175
|
}
|
|
176
176
|
function sr(e) {
|
|
177
177
|
if (e.fragment !== null) {
|
|
178
|
-
e.update(),
|
|
178
|
+
e.update(), K(e.before_update);
|
|
179
179
|
const t = e.dirty;
|
|
180
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
180
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Be);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
function or(e) {
|
|
184
184
|
const t = [], r = [];
|
|
185
|
-
|
|
185
|
+
R.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), R = t;
|
|
186
186
|
}
|
|
187
187
|
const ar = /* @__PURE__ */ new Set();
|
|
188
188
|
function ur(e, t) {
|
|
189
189
|
e && e.i && (ar.delete(e), e.i(t));
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function We(e) {
|
|
192
192
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
193
193
|
}
|
|
194
194
|
function hr(e, t, r) {
|
|
195
195
|
const { fragment: n, after_update: i } = e.$$;
|
|
196
|
-
n && n.m(t, r),
|
|
197
|
-
const s = e.$$.on_mount.map(
|
|
198
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
199
|
-
}), i.forEach(
|
|
196
|
+
n && n.m(t, r), Be(() => {
|
|
197
|
+
const s = e.$$.on_mount.map(pt).filter(Ce);
|
|
198
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
|
199
|
+
}), i.forEach(Be);
|
|
200
200
|
}
|
|
201
201
|
function lr(e, t) {
|
|
202
202
|
const r = e.$$;
|
|
203
|
-
r.fragment !== null && (or(r.after_update),
|
|
203
|
+
r.fragment !== null && (or(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
204
204
|
}
|
|
205
205
|
function fr(e, t) {
|
|
206
|
-
e.$$.dirty[0] === -1 && (
|
|
206
|
+
e.$$.dirty[0] === -1 && (C.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
207
207
|
}
|
|
208
208
|
function cr(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
209
|
-
const l =
|
|
210
|
-
|
|
209
|
+
const l = J;
|
|
210
|
+
Q(e);
|
|
211
211
|
const o = e.$$ = {
|
|
212
212
|
fragment: null,
|
|
213
213
|
ctx: [],
|
|
214
214
|
// state
|
|
215
215
|
props: s,
|
|
216
|
-
update:
|
|
216
|
+
update: B,
|
|
217
217
|
not_equal: i,
|
|
218
218
|
bound: Xe(),
|
|
219
219
|
// lifecycle
|
|
@@ -231,18 +231,18 @@ function cr(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
|
231
231
|
};
|
|
232
232
|
u && u(o.root);
|
|
233
233
|
let h = !1;
|
|
234
|
-
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
235
|
-
const
|
|
236
|
-
return o.ctx && i(o.ctx[f], o.ctx[f] =
|
|
237
|
-
}) : [], o.update(), h = !0,
|
|
234
|
+
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
235
|
+
const m = p.length ? p[0] : c;
|
|
236
|
+
return o.ctx && i(o.ctx[f], o.ctx[f] = m) && (!o.skip_bound && o.bound[f] && o.bound[f](m), h && fr(e, f)), c;
|
|
237
|
+
}) : [], o.update(), h = !0, K(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
238
238
|
if (t.hydrate) {
|
|
239
239
|
const f = Kt(t.target);
|
|
240
|
-
o.fragment && o.fragment.l(f), f.forEach(
|
|
240
|
+
o.fragment && o.fragment.l(f), f.forEach(z);
|
|
241
241
|
} else
|
|
242
242
|
o.fragment && o.fragment.c();
|
|
243
|
-
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor),
|
|
243
|
+
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), w();
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
Q(l);
|
|
246
246
|
}
|
|
247
247
|
let gt;
|
|
248
248
|
typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
@@ -289,17 +289,17 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
289
289
|
let u;
|
|
290
290
|
return {
|
|
291
291
|
c: function() {
|
|
292
|
-
u = P("slot"), s !== "default" &&
|
|
292
|
+
u = P("slot"), s !== "default" && y(u, "name", s);
|
|
293
293
|
},
|
|
294
294
|
/**
|
|
295
295
|
* @param {HTMLElement} target
|
|
296
296
|
* @param {HTMLElement} [anchor]
|
|
297
297
|
*/
|
|
298
298
|
m: function(o, h) {
|
|
299
|
-
|
|
299
|
+
ee(o, u, h);
|
|
300
300
|
},
|
|
301
301
|
d: function(o) {
|
|
302
|
-
o &&
|
|
302
|
+
o && z(u);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
};
|
|
@@ -311,7 +311,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
311
311
|
s in n && (r[s] = [t(s)]);
|
|
312
312
|
for (const s of this.attributes) {
|
|
313
313
|
const u = this.$$g_p(s.name);
|
|
314
|
-
u in this.$$d || (this.$$d[u] =
|
|
314
|
+
u in this.$$d || (this.$$d[u] = se(u, s.value, this.$$p_d, "toProp"));
|
|
315
315
|
}
|
|
316
316
|
for (const s in this.$$p_d)
|
|
317
317
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -328,7 +328,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
328
328
|
this.$$r = !0;
|
|
329
329
|
for (const s in this.$$p_d)
|
|
330
330
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
331
|
-
const u =
|
|
331
|
+
const u = se(
|
|
332
332
|
s,
|
|
333
333
|
this.$$d[s],
|
|
334
334
|
this.$$p_d,
|
|
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
352
352
|
// and setting attributes through setAttribute etc, this is helpful
|
|
353
353
|
attributeChangedCallback(t, r, n) {
|
|
354
354
|
var i;
|
|
355
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
355
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = se(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
356
356
|
}
|
|
357
357
|
disconnectedCallback() {
|
|
358
358
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
365
365
|
) || t;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
function
|
|
368
|
+
function se(e, t, r, n) {
|
|
369
369
|
var s;
|
|
370
370
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
371
371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -395,7 +395,7 @@ function oe(e, t, r, n) {
|
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function mr(e, t, r, n, i, s) {
|
|
399
399
|
let u = class extends gt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -413,7 +413,7 @@ function pr(e, t, r, n, i, s) {
|
|
|
413
413
|
},
|
|
414
414
|
set(l) {
|
|
415
415
|
var o;
|
|
416
|
-
l =
|
|
416
|
+
l = se(a, l, t), this.$$d[a] = l, (o = this.$$c) == null || o.$set({ [a]: l });
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}), n.forEach((a) => {
|
|
@@ -426,7 +426,7 @@ function pr(e, t, r, n, i, s) {
|
|
|
426
426
|
}), e.element = /** @type {any} */
|
|
427
427
|
u, u;
|
|
428
428
|
}
|
|
429
|
-
class
|
|
429
|
+
class pr {
|
|
430
430
|
constructor() {
|
|
431
431
|
/**
|
|
432
432
|
* ### PRIVATE API
|
|
@@ -447,7 +447,7 @@ class mr {
|
|
|
447
447
|
}
|
|
448
448
|
/** @returns {void} */
|
|
449
449
|
$destroy() {
|
|
450
|
-
lr(this, 1), this.$destroy =
|
|
450
|
+
lr(this, 1), this.$destroy = B;
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
453
453
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -456,8 +456,8 @@ class mr {
|
|
|
456
456
|
* @returns {() => void}
|
|
457
457
|
*/
|
|
458
458
|
$on(t, r) {
|
|
459
|
-
if (!
|
|
460
|
-
return
|
|
459
|
+
if (!Ce(r))
|
|
460
|
+
return B;
|
|
461
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
462
462
|
return n.push(r), () => {
|
|
463
463
|
const i = n.indexOf(r);
|
|
@@ -469,44 +469,44 @@ class mr {
|
|
|
469
469
|
* @returns {void}
|
|
470
470
|
*/
|
|
471
471
|
$set(t) {
|
|
472
|
-
this.$$set && !
|
|
472
|
+
this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
const dr = "4";
|
|
476
476
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
477
|
-
const
|
|
477
|
+
const M = [];
|
|
478
478
|
function br(e, t) {
|
|
479
479
|
return {
|
|
480
|
-
subscribe:
|
|
480
|
+
subscribe: fe(e, t).subscribe
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function fe(e, t = B) {
|
|
484
484
|
let r;
|
|
485
485
|
const n = /* @__PURE__ */ new Set();
|
|
486
486
|
function i(a) {
|
|
487
487
|
if (dt(e, a) && (e = a, r)) {
|
|
488
|
-
const l = !
|
|
488
|
+
const l = !M.length;
|
|
489
489
|
for (const o of n)
|
|
490
|
-
o[1](),
|
|
490
|
+
o[1](), M.push(o, e);
|
|
491
491
|
if (l) {
|
|
492
|
-
for (let o = 0; o <
|
|
493
|
-
|
|
494
|
-
|
|
492
|
+
for (let o = 0; o < M.length; o += 2)
|
|
493
|
+
M[o][0](M[o + 1]);
|
|
494
|
+
M.length = 0;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function s(a) {
|
|
499
499
|
i(a(e));
|
|
500
500
|
}
|
|
501
|
-
function u(a, l =
|
|
501
|
+
function u(a, l = B) {
|
|
502
502
|
const o = [a, l];
|
|
503
|
-
return n.add(o), n.size === 1 && (r = t(i, s) ||
|
|
503
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
|
504
504
|
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
return { set: i, update: s, subscribe: u };
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function j(e, t, r) {
|
|
510
510
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
511
511
|
if (!i.every(Boolean))
|
|
512
512
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -514,26 +514,26 @@ function k(e, t, r) {
|
|
|
514
514
|
return br(r, (u, a) => {
|
|
515
515
|
let l = !1;
|
|
516
516
|
const o = [];
|
|
517
|
-
let h = 0, f =
|
|
517
|
+
let h = 0, f = B;
|
|
518
518
|
const c = () => {
|
|
519
519
|
if (h)
|
|
520
520
|
return;
|
|
521
521
|
f();
|
|
522
|
-
const
|
|
523
|
-
s ? u(
|
|
524
|
-
},
|
|
525
|
-
(
|
|
526
|
-
|
|
522
|
+
const m = t(n ? o[0] : o, u, a);
|
|
523
|
+
s ? u(m) : f = Ce(m) ? m : B;
|
|
524
|
+
}, p = i.map(
|
|
525
|
+
(m, x) => bt(
|
|
526
|
+
m,
|
|
527
527
|
(H) => {
|
|
528
|
-
o[
|
|
528
|
+
o[x] = H, h &= ~(1 << x), l && c();
|
|
529
529
|
},
|
|
530
530
|
() => {
|
|
531
|
-
h |= 1 <<
|
|
531
|
+
h |= 1 << x;
|
|
532
532
|
}
|
|
533
533
|
)
|
|
534
534
|
);
|
|
535
535
|
return l = !0, c(), function() {
|
|
536
|
-
|
|
536
|
+
K(p), f(), l = !1;
|
|
537
537
|
};
|
|
538
538
|
});
|
|
539
539
|
}
|
|
@@ -541,12 +541,12 @@ function gr(e) {
|
|
|
541
541
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
542
542
|
}
|
|
543
543
|
var Er = function(t) {
|
|
544
|
-
return
|
|
544
|
+
return xr(t) && !yr(t);
|
|
545
545
|
};
|
|
546
|
-
function
|
|
546
|
+
function xr(e) {
|
|
547
547
|
return !!e && typeof e == "object";
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function yr(e) {
|
|
550
550
|
var t = Object.prototype.toString.call(e);
|
|
551
551
|
return t === "[object RegExp]" || t === "[object Date]" || Hr(e);
|
|
552
552
|
}
|
|
@@ -557,27 +557,27 @@ function Hr(e) {
|
|
|
557
557
|
function Tr(e) {
|
|
558
558
|
return Array.isArray(e) ? [] : {};
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
560
|
+
function q(e, t) {
|
|
561
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? U(Tr(e), e, t) : e;
|
|
562
562
|
}
|
|
563
563
|
function Pr(e, t, r) {
|
|
564
564
|
return e.concat(t).map(function(n) {
|
|
565
|
-
return
|
|
565
|
+
return q(n, r);
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Br(e, t) {
|
|
569
569
|
if (!t.customMerge)
|
|
570
|
-
return
|
|
570
|
+
return U;
|
|
571
571
|
var r = t.customMerge(e);
|
|
572
|
-
return typeof r == "function" ? r :
|
|
572
|
+
return typeof r == "function" ? r : U;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Sr(e) {
|
|
575
575
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
576
576
|
return Object.propertyIsEnumerable.call(e, t);
|
|
577
577
|
}) : [];
|
|
578
578
|
}
|
|
579
579
|
function Qe(e) {
|
|
580
|
-
return Object.keys(e).concat(
|
|
580
|
+
return Object.keys(e).concat(Sr(e));
|
|
581
581
|
}
|
|
582
582
|
function Et(e, t) {
|
|
583
583
|
try {
|
|
@@ -592,51 +592,65 @@ function Ar(e, t) {
|
|
|
592
592
|
function Nr(e, t, r) {
|
|
593
593
|
var n = {};
|
|
594
594
|
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
595
|
-
n[i] =
|
|
595
|
+
n[i] = q(e[i], r);
|
|
596
596
|
}), Qe(t).forEach(function(i) {
|
|
597
|
-
Ar(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] =
|
|
597
|
+
Ar(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Br(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
598
598
|
}), n;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified =
|
|
600
|
+
function U(e, t, r) {
|
|
601
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified = q;
|
|
602
602
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
603
|
-
return s ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) :
|
|
603
|
+
return s ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) : q(t, r);
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
U.all = function(t, r) {
|
|
606
606
|
if (!Array.isArray(t))
|
|
607
607
|
throw new Error("first argument should be an array");
|
|
608
608
|
return t.reduce(function(n, i) {
|
|
609
|
-
return
|
|
609
|
+
return U(n, i, r);
|
|
610
610
|
}, {});
|
|
611
611
|
};
|
|
612
|
-
var wr =
|
|
612
|
+
var wr = U, Or = wr;
|
|
613
613
|
const Ir = /* @__PURE__ */ gr(Or);
|
|
614
|
-
|
|
615
|
-
|
|
614
|
+
/*! *****************************************************************************
|
|
615
|
+
Copyright (c) Microsoft Corporation.
|
|
616
|
+
|
|
617
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
618
|
+
purpose with or without fee is hereby granted.
|
|
619
|
+
|
|
620
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
621
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
622
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
623
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
624
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
625
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
626
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
627
|
+
***************************************************************************** */
|
|
628
|
+
var Se = function(e, t) {
|
|
629
|
+
return Se = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
616
630
|
r.__proto__ = n;
|
|
617
631
|
} || function(r, n) {
|
|
618
632
|
for (var i in n)
|
|
619
633
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
620
|
-
},
|
|
634
|
+
}, Se(e, t);
|
|
621
635
|
};
|
|
622
|
-
function
|
|
636
|
+
function ce(e, t) {
|
|
623
637
|
if (typeof t != "function" && t !== null)
|
|
624
638
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
625
|
-
|
|
639
|
+
Se(e, t);
|
|
626
640
|
function r() {
|
|
627
641
|
this.constructor = e;
|
|
628
642
|
}
|
|
629
643
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
630
644
|
}
|
|
631
|
-
var
|
|
632
|
-
return
|
|
645
|
+
var g = function() {
|
|
646
|
+
return g = Object.assign || function(t) {
|
|
633
647
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
634
648
|
r = arguments[n];
|
|
635
649
|
for (var s in r)
|
|
636
650
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
637
651
|
}
|
|
638
652
|
return t;
|
|
639
|
-
},
|
|
653
|
+
}, g.apply(this, arguments);
|
|
640
654
|
};
|
|
641
655
|
function Lr(e, t) {
|
|
642
656
|
var r = {};
|
|
@@ -647,14 +661,14 @@ function Lr(e, t) {
|
|
|
647
661
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
648
662
|
return r;
|
|
649
663
|
}
|
|
650
|
-
function
|
|
651
|
-
if (
|
|
664
|
+
function Ee(e, t, r) {
|
|
665
|
+
if (arguments.length === 2)
|
|
652
666
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
653
667
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
654
|
-
return e.concat(s ||
|
|
668
|
+
return e.concat(s || t);
|
|
655
669
|
}
|
|
656
|
-
function
|
|
657
|
-
var r = t && t.cache ? t.cache :
|
|
670
|
+
function xe(e, t) {
|
|
671
|
+
var r = t && t.cache ? t.cache : Dr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Mr;
|
|
658
672
|
return i(e, {
|
|
659
673
|
cache: r,
|
|
660
674
|
serializer: n
|
|
@@ -663,7 +677,7 @@ function ve(e, t) {
|
|
|
663
677
|
function $r(e) {
|
|
664
678
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
679
|
}
|
|
666
|
-
function
|
|
680
|
+
function xt(e, t, r, n) {
|
|
667
681
|
var i = $r(n) ? n : r(n), s = t.get(i);
|
|
668
682
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
669
683
|
}
|
|
@@ -671,95 +685,87 @@ function yt(e, t, r) {
|
|
|
671
685
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
672
686
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
673
687
|
}
|
|
674
|
-
function
|
|
688
|
+
function Re(e, t, r, n, i) {
|
|
675
689
|
return r.bind(t, e, n, i);
|
|
676
690
|
}
|
|
691
|
+
function Mr(e, t) {
|
|
692
|
+
var r = e.length === 1 ? xt : yt;
|
|
693
|
+
return Re(e, this, r, t.cache.create(), t.serializer);
|
|
694
|
+
}
|
|
677
695
|
function Cr(e, t) {
|
|
678
|
-
|
|
679
|
-
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
696
|
+
return Re(e, this, yt, t.cache.create(), t.serializer);
|
|
680
697
|
}
|
|
681
698
|
function Rr(e, t) {
|
|
682
|
-
return
|
|
699
|
+
return Re(e, this, xt, t.cache.create(), t.serializer);
|
|
683
700
|
}
|
|
684
701
|
var Ur = function() {
|
|
685
702
|
return JSON.stringify(arguments);
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}()
|
|
698
|
-
), Gr = {
|
|
703
|
+
};
|
|
704
|
+
function Ue() {
|
|
705
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
706
|
+
}
|
|
707
|
+
Ue.prototype.get = function(e) {
|
|
708
|
+
return this.cache[e];
|
|
709
|
+
};
|
|
710
|
+
Ue.prototype.set = function(e, t) {
|
|
711
|
+
this.cache[e] = t;
|
|
712
|
+
};
|
|
713
|
+
var Dr = {
|
|
699
714
|
create: function() {
|
|
700
|
-
return new
|
|
715
|
+
return new Ue();
|
|
701
716
|
}
|
|
702
|
-
},
|
|
703
|
-
variadic:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
707
|
-
r = arguments[n];
|
|
708
|
-
for (var s in r)
|
|
709
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
710
|
-
}
|
|
711
|
-
return t;
|
|
712
|
-
}, le.apply(this, arguments);
|
|
713
|
-
};
|
|
714
|
-
var d;
|
|
717
|
+
}, ye = {
|
|
718
|
+
variadic: Cr,
|
|
719
|
+
monadic: Rr
|
|
720
|
+
}, d;
|
|
715
721
|
(function(e) {
|
|
716
722
|
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";
|
|
717
723
|
})(d || (d = {}));
|
|
718
|
-
var
|
|
724
|
+
var E;
|
|
719
725
|
(function(e) {
|
|
720
726
|
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";
|
|
721
|
-
})(
|
|
722
|
-
var
|
|
727
|
+
})(E || (E = {}));
|
|
728
|
+
var D;
|
|
723
729
|
(function(e) {
|
|
724
730
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
725
|
-
})(
|
|
731
|
+
})(D || (D = {}));
|
|
726
732
|
function Je(e) {
|
|
727
|
-
return e.type ===
|
|
733
|
+
return e.type === E.literal;
|
|
728
734
|
}
|
|
729
|
-
function
|
|
730
|
-
return e.type ===
|
|
735
|
+
function Gr(e) {
|
|
736
|
+
return e.type === E.argument;
|
|
731
737
|
}
|
|
732
738
|
function vt(e) {
|
|
733
|
-
return e.type ===
|
|
739
|
+
return e.type === E.number;
|
|
734
740
|
}
|
|
735
741
|
function _t(e) {
|
|
736
|
-
return e.type ===
|
|
742
|
+
return e.type === E.date;
|
|
737
743
|
}
|
|
738
744
|
function Ht(e) {
|
|
739
|
-
return e.type ===
|
|
745
|
+
return e.type === E.time;
|
|
740
746
|
}
|
|
741
747
|
function Tt(e) {
|
|
742
|
-
return e.type ===
|
|
748
|
+
return e.type === E.select;
|
|
743
749
|
}
|
|
744
750
|
function Pt(e) {
|
|
745
|
-
return e.type ===
|
|
751
|
+
return e.type === E.plural;
|
|
746
752
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.type ===
|
|
749
|
-
}
|
|
750
|
-
function St(e) {
|
|
751
|
-
return e.type === g.tag;
|
|
753
|
+
function Fr(e) {
|
|
754
|
+
return e.type === E.pound;
|
|
752
755
|
}
|
|
753
756
|
function Bt(e) {
|
|
754
|
-
return
|
|
757
|
+
return e.type === E.tag;
|
|
755
758
|
}
|
|
756
|
-
function
|
|
757
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
759
|
+
function St(e) {
|
|
760
|
+
return !!(e && typeof e == "object" && e.type === D.number);
|
|
758
761
|
}
|
|
759
|
-
|
|
760
|
-
|
|
762
|
+
function Ae(e) {
|
|
763
|
+
return !!(e && typeof e == "object" && e.type === D.dateTime);
|
|
764
|
+
}
|
|
765
|
+
var At = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[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;
|
|
766
|
+
function jr(e) {
|
|
761
767
|
var t = {};
|
|
762
|
-
return e.replace(
|
|
768
|
+
return e.replace(zr, function(r) {
|
|
763
769
|
var n = r.length;
|
|
764
770
|
switch (r[0]) {
|
|
765
771
|
case "G":
|
|
@@ -848,21 +854,11 @@ function kr(e) {
|
|
|
848
854
|
return "";
|
|
849
855
|
}), t;
|
|
850
856
|
}
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
854
|
-
r = arguments[n];
|
|
855
|
-
for (var s in r)
|
|
856
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
857
|
-
}
|
|
858
|
-
return t;
|
|
859
|
-
}, E.apply(this, arguments);
|
|
860
|
-
};
|
|
861
|
-
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
862
|
-
function Xr(e) {
|
|
857
|
+
var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
858
|
+
function Vr(e) {
|
|
863
859
|
if (e.length === 0)
|
|
864
860
|
throw new Error("Number skeleton cannot be empty");
|
|
865
|
-
for (var t = e.split(
|
|
861
|
+
for (var t = e.split(kr).filter(function(c) {
|
|
866
862
|
return c.length > 0;
|
|
867
863
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
868
864
|
var s = i[n], u = s.split("/");
|
|
@@ -877,7 +873,7 @@ function Xr(e) {
|
|
|
877
873
|
}
|
|
878
874
|
return r;
|
|
879
875
|
}
|
|
880
|
-
function
|
|
876
|
+
function Xr(e) {
|
|
881
877
|
return e.replace(/^(.*?)-/, "");
|
|
882
878
|
}
|
|
883
879
|
var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
@@ -927,7 +923,7 @@ function Ot(e) {
|
|
|
927
923
|
};
|
|
928
924
|
}
|
|
929
925
|
}
|
|
930
|
-
function
|
|
926
|
+
function Wr(e) {
|
|
931
927
|
var t;
|
|
932
928
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
933
929
|
notation: "engineering"
|
|
@@ -945,7 +941,7 @@ function Ke(e) {
|
|
|
945
941
|
var t = {}, r = Ot(e);
|
|
946
942
|
return r || t;
|
|
947
943
|
}
|
|
948
|
-
function
|
|
944
|
+
function Qr(e) {
|
|
949
945
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
950
946
|
var i = n[r];
|
|
951
947
|
switch (i.stem) {
|
|
@@ -969,7 +965,7 @@ function Jr(e) {
|
|
|
969
965
|
continue;
|
|
970
966
|
case "measure-unit":
|
|
971
967
|
case "unit":
|
|
972
|
-
t.style = "unit", t.unit =
|
|
968
|
+
t.style = "unit", t.unit = Xr(i.options[0]);
|
|
973
969
|
continue;
|
|
974
970
|
case "compact-short":
|
|
975
971
|
case "K":
|
|
@@ -980,13 +976,13 @@ function Jr(e) {
|
|
|
980
976
|
t.notation = "compact", t.compactDisplay = "long";
|
|
981
977
|
continue;
|
|
982
978
|
case "scientific":
|
|
983
|
-
t =
|
|
984
|
-
return
|
|
979
|
+
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
980
|
+
return g(g({}, l), Ke(o));
|
|
985
981
|
}, {}));
|
|
986
982
|
continue;
|
|
987
983
|
case "engineering":
|
|
988
|
-
t =
|
|
989
|
-
return
|
|
984
|
+
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
985
|
+
return g(g({}, l), Ke(o));
|
|
990
986
|
}, {}));
|
|
991
987
|
continue;
|
|
992
988
|
case "notation-simple":
|
|
@@ -1031,13 +1027,13 @@ function Jr(e) {
|
|
|
1031
1027
|
case "integer-width":
|
|
1032
1028
|
if (i.options.length > 1)
|
|
1033
1029
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1034
|
-
i.options[0].replace(Zr, function(l, o, h, f, c,
|
|
1030
|
+
i.options[0].replace(Zr, function(l, o, h, f, c, p) {
|
|
1035
1031
|
if (o)
|
|
1036
1032
|
t.minimumIntegerDigits = h.length;
|
|
1037
1033
|
else {
|
|
1038
1034
|
if (f && c)
|
|
1039
1035
|
throw new Error("We currently do not support maximum integer digits");
|
|
1040
|
-
if (
|
|
1036
|
+
if (p)
|
|
1041
1037
|
throw new Error("We currently do not support exact integer digits");
|
|
1042
1038
|
}
|
|
1043
1039
|
return "";
|
|
@@ -1051,25 +1047,25 @@ function Jr(e) {
|
|
|
1051
1047
|
if (qe.test(i.stem)) {
|
|
1052
1048
|
if (i.options.length > 1)
|
|
1053
1049
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1054
|
-
i.stem.replace(qe, function(l, o, h, f, c,
|
|
1055
|
-
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1050
|
+
i.stem.replace(qe, function(l, o, h, f, c, p) {
|
|
1051
|
+
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1056
1052
|
});
|
|
1057
1053
|
var s = i.options[0];
|
|
1058
|
-
s === "w" ? t =
|
|
1054
|
+
s === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = g(g({}, t), Ye(s)));
|
|
1059
1055
|
continue;
|
|
1060
1056
|
}
|
|
1061
1057
|
if (Nt.test(i.stem)) {
|
|
1062
|
-
t =
|
|
1058
|
+
t = g(g({}, t), Ye(i.stem));
|
|
1063
1059
|
continue;
|
|
1064
1060
|
}
|
|
1065
1061
|
var u = Ot(i.stem);
|
|
1066
|
-
u && (t =
|
|
1067
|
-
var a =
|
|
1068
|
-
a && (t =
|
|
1062
|
+
u && (t = g(g({}, t), u));
|
|
1063
|
+
var a = Wr(i.stem);
|
|
1064
|
+
a && (t = g(g({}, t), a));
|
|
1069
1065
|
}
|
|
1070
1066
|
return t;
|
|
1071
1067
|
}
|
|
1072
|
-
var
|
|
1068
|
+
var ie = {
|
|
1073
1069
|
"001": [
|
|
1074
1070
|
"H",
|
|
1075
1071
|
"h"
|
|
@@ -2484,13 +2480,13 @@ var se = {
|
|
|
2484
2480
|
"h"
|
|
2485
2481
|
]
|
|
2486
2482
|
};
|
|
2487
|
-
function
|
|
2483
|
+
function Jr(e, t) {
|
|
2488
2484
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2489
2485
|
var i = e.charAt(n);
|
|
2490
2486
|
if (i === "j") {
|
|
2491
2487
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2492
2488
|
s++, n++;
|
|
2493
|
-
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2489
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = qr(t);
|
|
2494
2490
|
for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
|
|
2495
2491
|
r += l;
|
|
2496
2492
|
for (; u-- > 0; )
|
|
@@ -2500,7 +2496,7 @@ function qr(e, t) {
|
|
|
2500
2496
|
}
|
|
2501
2497
|
return r;
|
|
2502
2498
|
}
|
|
2503
|
-
function
|
|
2499
|
+
function qr(e) {
|
|
2504
2500
|
var t = e.hourCycle;
|
|
2505
2501
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2506
2502
|
e.hourCycles && // @ts-ignore
|
|
@@ -2519,23 +2515,23 @@ function Yr(e) {
|
|
|
2519
2515
|
}
|
|
2520
2516
|
var r = e.language, n;
|
|
2521
2517
|
r !== "root" && (n = e.maximize().region);
|
|
2522
|
-
var i =
|
|
2518
|
+
var i = ie[n || ""] || ie[r || ""] || ie["".concat(r, "-001")] || ie["001"];
|
|
2523
2519
|
return i[0];
|
|
2524
2520
|
}
|
|
2525
|
-
var
|
|
2521
|
+
var ve, Yr = new RegExp("^".concat(At.source, "*")), Kr = new RegExp("".concat(At.source, "*$"));
|
|
2526
2522
|
function b(e, t) {
|
|
2527
2523
|
return { start: e, end: t };
|
|
2528
2524
|
}
|
|
2529
|
-
var
|
|
2525
|
+
var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, un = an ? Number.isSafeInteger : function(e) {
|
|
2530
2526
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2531
|
-
},
|
|
2527
|
+
}, Ne = !0;
|
|
2532
2528
|
try {
|
|
2533
|
-
var
|
|
2534
|
-
|
|
2529
|
+
var hn = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2530
|
+
Ne = ((ve = hn.exec("a")) === null || ve === void 0 ? void 0 : ve[0]) === "a";
|
|
2535
2531
|
} catch (e) {
|
|
2536
|
-
|
|
2532
|
+
Ne = !1;
|
|
2537
2533
|
}
|
|
2538
|
-
var et =
|
|
2534
|
+
var et = en ? (
|
|
2539
2535
|
// Native
|
|
2540
2536
|
function(t, r, n) {
|
|
2541
2537
|
return t.startsWith(r, n);
|
|
@@ -2545,7 +2541,7 @@ var et = tn ? (
|
|
|
2545
2541
|
function(t, r, n) {
|
|
2546
2542
|
return t.slice(n, n + r.length) === r;
|
|
2547
2543
|
}
|
|
2548
|
-
),
|
|
2544
|
+
), we = tn ? String.fromCodePoint : (
|
|
2549
2545
|
// IE11
|
|
2550
2546
|
function() {
|
|
2551
2547
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2559,7 +2555,7 @@ var et = tn ? (
|
|
|
2559
2555
|
}
|
|
2560
2556
|
), tt = (
|
|
2561
2557
|
// native
|
|
2562
|
-
|
|
2558
|
+
rn ? Object.fromEntries : (
|
|
2563
2559
|
// Ponyfill
|
|
2564
2560
|
function(t) {
|
|
2565
2561
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2569,7 +2565,7 @@ var et = tn ? (
|
|
|
2569
2565
|
return r;
|
|
2570
2566
|
}
|
|
2571
2567
|
)
|
|
2572
|
-
), It =
|
|
2568
|
+
), It = nn ? (
|
|
2573
2569
|
// Native
|
|
2574
2570
|
function(t, r) {
|
|
2575
2571
|
return t.codePointAt(r);
|
|
@@ -2583,7 +2579,7 @@ var et = tn ? (
|
|
|
2583
2579
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2584
2580
|
}
|
|
2585
2581
|
}
|
|
2586
|
-
),
|
|
2582
|
+
), ln = sn ? (
|
|
2587
2583
|
// Native
|
|
2588
2584
|
function(t) {
|
|
2589
2585
|
return t.trimStart();
|
|
@@ -2591,9 +2587,9 @@ var et = tn ? (
|
|
|
2591
2587
|
) : (
|
|
2592
2588
|
// Ponyfill
|
|
2593
2589
|
function(t) {
|
|
2594
|
-
return t.replace(
|
|
2590
|
+
return t.replace(Yr, "");
|
|
2595
2591
|
}
|
|
2596
|
-
),
|
|
2592
|
+
), fn = on ? (
|
|
2597
2593
|
// Native
|
|
2598
2594
|
function(t) {
|
|
2599
2595
|
return t.trimEnd();
|
|
@@ -2601,32 +2597,32 @@ var et = tn ? (
|
|
|
2601
2597
|
) : (
|
|
2602
2598
|
// Ponyfill
|
|
2603
2599
|
function(t) {
|
|
2604
|
-
return t.replace(
|
|
2600
|
+
return t.replace(Kr, "");
|
|
2605
2601
|
}
|
|
2606
2602
|
);
|
|
2607
2603
|
function Lt(e, t) {
|
|
2608
2604
|
return new RegExp(e, t);
|
|
2609
2605
|
}
|
|
2610
|
-
var
|
|
2611
|
-
if (
|
|
2606
|
+
var Oe;
|
|
2607
|
+
if (Ne) {
|
|
2612
2608
|
var rt = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2613
|
-
|
|
2609
|
+
Oe = function(t, r) {
|
|
2614
2610
|
var n;
|
|
2615
2611
|
rt.lastIndex = r;
|
|
2616
2612
|
var i = rt.exec(t);
|
|
2617
2613
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2618
2614
|
};
|
|
2619
2615
|
} else
|
|
2620
|
-
|
|
2616
|
+
Oe = function(t, r) {
|
|
2621
2617
|
for (var n = []; ; ) {
|
|
2622
2618
|
var i = It(t, r);
|
|
2623
|
-
if (i === void 0 || $t(i) ||
|
|
2619
|
+
if (i === void 0 || $t(i) || dn(i))
|
|
2624
2620
|
break;
|
|
2625
2621
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2626
2622
|
}
|
|
2627
|
-
return
|
|
2623
|
+
return we.apply(void 0, n);
|
|
2628
2624
|
};
|
|
2629
|
-
var
|
|
2625
|
+
var cn = (
|
|
2630
2626
|
/** @class */
|
|
2631
2627
|
function() {
|
|
2632
2628
|
function e(t, r) {
|
|
@@ -2650,14 +2646,14 @@ var pn = (
|
|
|
2650
2646
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2651
2647
|
var a = this.clonePosition();
|
|
2652
2648
|
this.bump(), i.push({
|
|
2653
|
-
type:
|
|
2649
|
+
type: E.pound,
|
|
2654
2650
|
location: b(a, this.clonePosition())
|
|
2655
2651
|
});
|
|
2656
2652
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2657
2653
|
if (n)
|
|
2658
2654
|
break;
|
|
2659
2655
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2660
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2656
|
+
} else if (s === 60 && !this.ignoreTag && Ie(this.peek() || 0)) {
|
|
2661
2657
|
var u = this.parseTag(t, r);
|
|
2662
2658
|
if (u.err)
|
|
2663
2659
|
return u;
|
|
@@ -2678,7 +2674,7 @@ var pn = (
|
|
|
2678
2674
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2679
2675
|
return {
|
|
2680
2676
|
val: {
|
|
2681
|
-
type:
|
|
2677
|
+
type: E.literal,
|
|
2682
2678
|
value: "<".concat(i, "/>"),
|
|
2683
2679
|
location: b(n, this.clonePosition())
|
|
2684
2680
|
},
|
|
@@ -2690,12 +2686,12 @@ var pn = (
|
|
|
2690
2686
|
return s;
|
|
2691
2687
|
var u = s.val, a = this.clonePosition();
|
|
2692
2688
|
if (this.bumpIf("</")) {
|
|
2693
|
-
if (this.isEOF() ||
|
|
2689
|
+
if (this.isEOF() || !Ie(this.char()))
|
|
2694
2690
|
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
2695
2691
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2696
2692
|
return i !== o ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2697
2693
|
val: {
|
|
2698
|
-
type:
|
|
2694
|
+
type: E.tag,
|
|
2699
2695
|
value: i,
|
|
2700
2696
|
children: u,
|
|
2701
2697
|
location: b(n, this.clonePosition())
|
|
@@ -2708,7 +2704,7 @@ var pn = (
|
|
|
2708
2704
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2709
2705
|
}, e.prototype.parseTagName = function() {
|
|
2710
2706
|
var t = this.offset();
|
|
2711
|
-
for (this.bump(); !this.isEOF() &&
|
|
2707
|
+
for (this.bump(); !this.isEOF() && pn(this.char()); )
|
|
2712
2708
|
this.bump();
|
|
2713
2709
|
return this.message.slice(t, this.offset());
|
|
2714
2710
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2732,7 +2728,7 @@ var pn = (
|
|
|
2732
2728
|
}
|
|
2733
2729
|
var l = b(n, this.clonePosition());
|
|
2734
2730
|
return {
|
|
2735
|
-
val: { type:
|
|
2731
|
+
val: { type: E.literal, value: i, location: l },
|
|
2736
2732
|
err: null
|
|
2737
2733
|
};
|
|
2738
2734
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2771,12 +2767,12 @@ var pn = (
|
|
|
2771
2767
|
r.push(n);
|
|
2772
2768
|
this.bump();
|
|
2773
2769
|
}
|
|
2774
|
-
return
|
|
2770
|
+
return we.apply(void 0, r);
|
|
2775
2771
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2776
2772
|
if (this.isEOF())
|
|
2777
2773
|
return null;
|
|
2778
2774
|
var n = this.char();
|
|
2779
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2775
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), we(n));
|
|
2780
2776
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2781
2777
|
var n = this.clonePosition();
|
|
2782
2778
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2792,7 +2788,7 @@ var pn = (
|
|
|
2792
2788
|
case 125:
|
|
2793
2789
|
return this.bump(), {
|
|
2794
2790
|
val: {
|
|
2795
|
-
type:
|
|
2791
|
+
type: E.argument,
|
|
2796
2792
|
// value does not include the opening and closing braces.
|
|
2797
2793
|
value: i,
|
|
2798
2794
|
location: b(n, this.clonePosition())
|
|
@@ -2805,7 +2801,7 @@ var pn = (
|
|
|
2805
2801
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2806
2802
|
}
|
|
2807
2803
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2808
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2804
|
+
var t = this.clonePosition(), r = this.offset(), n = Oe(this.message, r), i = r + n.length;
|
|
2809
2805
|
this.bumpTo(i);
|
|
2810
2806
|
var s = this.clonePosition(), u = b(t, s);
|
|
2811
2807
|
return { value: n, location: u };
|
|
@@ -2824,46 +2820,46 @@ var pn = (
|
|
|
2824
2820
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2825
2821
|
if (f.err)
|
|
2826
2822
|
return f;
|
|
2827
|
-
var c =
|
|
2823
|
+
var c = fn(f.val);
|
|
2828
2824
|
if (c.length === 0)
|
|
2829
2825
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2830
|
-
var
|
|
2831
|
-
o = { style: c, styleLocation:
|
|
2826
|
+
var p = b(h, this.clonePosition());
|
|
2827
|
+
o = { style: c, styleLocation: p };
|
|
2832
2828
|
}
|
|
2833
|
-
var
|
|
2834
|
-
if (
|
|
2835
|
-
return
|
|
2836
|
-
var
|
|
2829
|
+
var m = this.tryParseArgumentClose(i);
|
|
2830
|
+
if (m.err)
|
|
2831
|
+
return m;
|
|
2832
|
+
var x = b(i, this.clonePosition());
|
|
2837
2833
|
if (o && et(o == null ? void 0 : o.style, "::", 0)) {
|
|
2838
|
-
var H =
|
|
2834
|
+
var H = ln(o.style.slice(2));
|
|
2839
2835
|
if (a === "number") {
|
|
2840
2836
|
var f = this.parseNumberSkeletonFromString(H, o.styleLocation);
|
|
2841
2837
|
return f.err ? f : {
|
|
2842
|
-
val: { type:
|
|
2838
|
+
val: { type: E.number, value: n, location: x, style: f.val },
|
|
2843
2839
|
err: null
|
|
2844
2840
|
};
|
|
2845
2841
|
} else {
|
|
2846
2842
|
if (H.length === 0)
|
|
2847
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
2848
|
-
var
|
|
2849
|
-
this.locale && (
|
|
2843
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, x);
|
|
2844
|
+
var V = H;
|
|
2845
|
+
this.locale && (V = Jr(H, this.locale));
|
|
2850
2846
|
var c = {
|
|
2851
|
-
type:
|
|
2852
|
-
pattern:
|
|
2847
|
+
type: D.dateTime,
|
|
2848
|
+
pattern: V,
|
|
2853
2849
|
location: o.styleLocation,
|
|
2854
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2855
|
-
},
|
|
2850
|
+
parsedOptions: this.shouldParseSkeletons ? jr(V) : {}
|
|
2851
|
+
}, L = a === "date" ? E.date : E.time;
|
|
2856
2852
|
return {
|
|
2857
|
-
val: { type:
|
|
2853
|
+
val: { type: L, value: n, location: x, style: c },
|
|
2858
2854
|
err: null
|
|
2859
2855
|
};
|
|
2860
2856
|
}
|
|
2861
2857
|
}
|
|
2862
2858
|
return {
|
|
2863
2859
|
val: {
|
|
2864
|
-
type: a === "number" ?
|
|
2860
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
2865
2861
|
value: n,
|
|
2866
|
-
location:
|
|
2862
|
+
location: x,
|
|
2867
2863
|
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
2868
2864
|
},
|
|
2869
2865
|
err: null
|
|
@@ -2872,41 +2868,41 @@ var pn = (
|
|
|
2872
2868
|
case "plural":
|
|
2873
2869
|
case "selectordinal":
|
|
2874
2870
|
case "select": {
|
|
2875
|
-
var
|
|
2871
|
+
var S = this.clonePosition();
|
|
2876
2872
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2877
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2873
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, g({}, S)));
|
|
2878
2874
|
this.bumpSpace();
|
|
2879
|
-
var
|
|
2880
|
-
if (a !== "select" &&
|
|
2875
|
+
var X = this.parseIdentifierIfPossible(), N = 0;
|
|
2876
|
+
if (a !== "select" && X.value === "offset") {
|
|
2881
2877
|
if (!this.bumpIf(":"))
|
|
2882
2878
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2883
2879
|
this.bumpSpace();
|
|
2884
2880
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2885
2881
|
if (f.err)
|
|
2886
2882
|
return f;
|
|
2887
|
-
this.bumpSpace(),
|
|
2883
|
+
this.bumpSpace(), X = this.parseIdentifierIfPossible(), N = f.val;
|
|
2888
2884
|
}
|
|
2889
|
-
var
|
|
2890
|
-
if (
|
|
2891
|
-
return
|
|
2892
|
-
var
|
|
2893
|
-
if (
|
|
2894
|
-
return
|
|
2885
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, X);
|
|
2886
|
+
if (ne.err)
|
|
2887
|
+
return ne;
|
|
2888
|
+
var m = this.tryParseArgumentClose(i);
|
|
2889
|
+
if (m.err)
|
|
2890
|
+
return m;
|
|
2895
2891
|
var Fe = b(i, this.clonePosition());
|
|
2896
2892
|
return a === "select" ? {
|
|
2897
2893
|
val: {
|
|
2898
|
-
type:
|
|
2894
|
+
type: E.select,
|
|
2899
2895
|
value: n,
|
|
2900
|
-
options: tt(
|
|
2896
|
+
options: tt(ne.val),
|
|
2901
2897
|
location: Fe
|
|
2902
2898
|
},
|
|
2903
2899
|
err: null
|
|
2904
2900
|
} : {
|
|
2905
2901
|
val: {
|
|
2906
|
-
type:
|
|
2902
|
+
type: E.plural,
|
|
2907
2903
|
value: n,
|
|
2908
|
-
options: tt(
|
|
2909
|
-
offset:
|
|
2904
|
+
options: tt(ne.val),
|
|
2905
|
+
offset: N,
|
|
2910
2906
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2911
2907
|
location: Fe
|
|
2912
2908
|
},
|
|
@@ -2956,16 +2952,16 @@ var pn = (
|
|
|
2956
2952
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2957
2953
|
var n = [];
|
|
2958
2954
|
try {
|
|
2959
|
-
n =
|
|
2955
|
+
n = Vr(t);
|
|
2960
2956
|
} catch (i) {
|
|
2961
2957
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2962
2958
|
}
|
|
2963
2959
|
return {
|
|
2964
2960
|
val: {
|
|
2965
|
-
type:
|
|
2961
|
+
type: D.number,
|
|
2966
2962
|
tokens: n,
|
|
2967
2963
|
location: r,
|
|
2968
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2964
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
|
|
2969
2965
|
},
|
|
2970
2966
|
err: null
|
|
2971
2967
|
};
|
|
@@ -2984,20 +2980,20 @@ var pn = (
|
|
|
2984
2980
|
if (l.has(o))
|
|
2985
2981
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2986
2982
|
o === "other" && (u = !0), this.bumpSpace();
|
|
2987
|
-
var
|
|
2983
|
+
var p = this.clonePosition();
|
|
2988
2984
|
if (!this.bumpIf("{"))
|
|
2989
2985
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2990
|
-
var
|
|
2991
|
-
if (
|
|
2992
|
-
return
|
|
2993
|
-
var
|
|
2994
|
-
if (
|
|
2995
|
-
return
|
|
2986
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
2987
|
+
if (m.err)
|
|
2988
|
+
return m;
|
|
2989
|
+
var x = this.tryParseArgumentClose(p);
|
|
2990
|
+
if (x.err)
|
|
2991
|
+
return x;
|
|
2996
2992
|
a.push([
|
|
2997
2993
|
o,
|
|
2998
2994
|
{
|
|
2999
|
-
value:
|
|
3000
|
-
location: b(
|
|
2995
|
+
value: m.val,
|
|
2996
|
+
location: b(p, this.clonePosition())
|
|
3001
2997
|
}
|
|
3002
2998
|
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
3003
2999
|
}
|
|
@@ -3013,7 +3009,7 @@ var pn = (
|
|
|
3013
3009
|
break;
|
|
3014
3010
|
}
|
|
3015
3011
|
var l = b(i, this.clonePosition());
|
|
3016
|
-
return s ? (u *= n,
|
|
3012
|
+
return s ? (u *= n, un(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3017
3013
|
}, e.prototype.offset = function() {
|
|
3018
3014
|
return this.position.offset;
|
|
3019
3015
|
}, e.prototype.isEOF = function() {
|
|
@@ -3079,47 +3075,47 @@ var pn = (
|
|
|
3079
3075
|
}, e;
|
|
3080
3076
|
}()
|
|
3081
3077
|
);
|
|
3082
|
-
function
|
|
3078
|
+
function Ie(e) {
|
|
3083
3079
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3084
3080
|
}
|
|
3085
3081
|
function mn(e) {
|
|
3086
|
-
return
|
|
3082
|
+
return Ie(e) || e === 47;
|
|
3087
3083
|
}
|
|
3088
|
-
function
|
|
3084
|
+
function pn(e) {
|
|
3089
3085
|
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;
|
|
3090
3086
|
}
|
|
3091
3087
|
function $t(e) {
|
|
3092
3088
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3093
3089
|
}
|
|
3094
|
-
function
|
|
3090
|
+
function dn(e) {
|
|
3095
3091
|
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;
|
|
3096
3092
|
}
|
|
3097
|
-
function
|
|
3093
|
+
function Le(e) {
|
|
3098
3094
|
e.forEach(function(t) {
|
|
3099
3095
|
if (delete t.location, Tt(t) || Pt(t))
|
|
3100
3096
|
for (var r in t.options)
|
|
3101
|
-
delete t.options[r].location,
|
|
3097
|
+
delete t.options[r].location, Le(t.options[r].value);
|
|
3102
3098
|
else
|
|
3103
|
-
vt(t) &&
|
|
3099
|
+
vt(t) && St(t.style) || (_t(t) || Ht(t)) && Ae(t.style) ? delete t.style.location : Bt(t) && Le(t.children);
|
|
3104
3100
|
});
|
|
3105
3101
|
}
|
|
3106
|
-
function
|
|
3107
|
-
t === void 0 && (t = {}), t =
|
|
3108
|
-
var r = new
|
|
3102
|
+
function bn(e, t) {
|
|
3103
|
+
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3104
|
+
var r = new cn(e, t).parse();
|
|
3109
3105
|
if (r.err) {
|
|
3110
3106
|
var n = SyntaxError(d[r.err.kind]);
|
|
3111
3107
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3112
3108
|
}
|
|
3113
|
-
return t != null && t.captureLocation ||
|
|
3109
|
+
return t != null && t.captureLocation || Le(r.val), r.val;
|
|
3114
3110
|
}
|
|
3115
|
-
var
|
|
3111
|
+
var G;
|
|
3116
3112
|
(function(e) {
|
|
3117
3113
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3118
|
-
})(
|
|
3119
|
-
var
|
|
3114
|
+
})(G || (G = {}));
|
|
3115
|
+
var me = (
|
|
3120
3116
|
/** @class */
|
|
3121
3117
|
function(e) {
|
|
3122
|
-
|
|
3118
|
+
ce(t, e);
|
|
3123
3119
|
function t(r, n, i) {
|
|
3124
3120
|
var s = e.call(this, r) || this;
|
|
3125
3121
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3131,30 +3127,30 @@ var de = (
|
|
|
3131
3127
|
), nt = (
|
|
3132
3128
|
/** @class */
|
|
3133
3129
|
function(e) {
|
|
3134
|
-
|
|
3130
|
+
ce(t, e);
|
|
3135
3131
|
function t(r, n, i, s) {
|
|
3136
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3132
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), G.INVALID_VALUE, s) || this;
|
|
3137
3133
|
}
|
|
3138
3134
|
return t;
|
|
3139
|
-
}(
|
|
3140
|
-
),
|
|
3135
|
+
}(me)
|
|
3136
|
+
), gn = (
|
|
3141
3137
|
/** @class */
|
|
3142
3138
|
function(e) {
|
|
3143
|
-
|
|
3139
|
+
ce(t, e);
|
|
3144
3140
|
function t(r, n, i) {
|
|
3145
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3141
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), G.INVALID_VALUE, i) || this;
|
|
3146
3142
|
}
|
|
3147
3143
|
return t;
|
|
3148
|
-
}(
|
|
3149
|
-
),
|
|
3144
|
+
}(me)
|
|
3145
|
+
), En = (
|
|
3150
3146
|
/** @class */
|
|
3151
3147
|
function(e) {
|
|
3152
|
-
|
|
3148
|
+
ce(t, e);
|
|
3153
3149
|
function t(r, n) {
|
|
3154
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3150
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), G.MISSING_VALUE, n) || this;
|
|
3155
3151
|
}
|
|
3156
3152
|
return t;
|
|
3157
|
-
}(
|
|
3153
|
+
}(me)
|
|
3158
3154
|
), _;
|
|
3159
3155
|
(function(e) {
|
|
3160
3156
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3165,10 +3161,10 @@ function xn(e) {
|
|
|
3165
3161
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3166
3162
|
}, []);
|
|
3167
3163
|
}
|
|
3168
|
-
function
|
|
3164
|
+
function yn(e) {
|
|
3169
3165
|
return typeof e == "function";
|
|
3170
3166
|
}
|
|
3171
|
-
function
|
|
3167
|
+
function oe(e, t, r, n, i, s, u) {
|
|
3172
3168
|
if (e.length === 1 && Je(e[0]))
|
|
3173
3169
|
return [
|
|
3174
3170
|
{
|
|
@@ -3185,7 +3181,7 @@ function ae(e, t, r, n, i, s, u) {
|
|
|
3185
3181
|
});
|
|
3186
3182
|
continue;
|
|
3187
3183
|
}
|
|
3188
|
-
if (
|
|
3184
|
+
if (Fr(h)) {
|
|
3189
3185
|
typeof s == "number" && a.push({
|
|
3190
3186
|
type: _.literal,
|
|
3191
3187
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3194,9 +3190,9 @@ function ae(e, t, r, n, i, s, u) {
|
|
|
3194
3190
|
}
|
|
3195
3191
|
var f = h.value;
|
|
3196
3192
|
if (!(i && f in i))
|
|
3197
|
-
throw new
|
|
3193
|
+
throw new En(f, u);
|
|
3198
3194
|
var c = i[f];
|
|
3199
|
-
if (
|
|
3195
|
+
if (Gr(h)) {
|
|
3200
3196
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3201
3197
|
type: typeof c == "string" ? _.literal : _.object,
|
|
3202
3198
|
value: c
|
|
@@ -3204,79 +3200,79 @@ function ae(e, t, r, n, i, s, u) {
|
|
|
3204
3200
|
continue;
|
|
3205
3201
|
}
|
|
3206
3202
|
if (_t(h)) {
|
|
3207
|
-
var
|
|
3203
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ae(h.style) ? h.style.parsedOptions : void 0;
|
|
3208
3204
|
a.push({
|
|
3209
3205
|
type: _.literal,
|
|
3210
|
-
value: r.getDateTimeFormat(t,
|
|
3206
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3211
3207
|
});
|
|
3212
3208
|
continue;
|
|
3213
3209
|
}
|
|
3214
3210
|
if (Ht(h)) {
|
|
3215
|
-
var
|
|
3211
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ae(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3216
3212
|
a.push({
|
|
3217
3213
|
type: _.literal,
|
|
3218
|
-
value: r.getDateTimeFormat(t,
|
|
3214
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3219
3215
|
});
|
|
3220
3216
|
continue;
|
|
3221
3217
|
}
|
|
3222
3218
|
if (vt(h)) {
|
|
3223
|
-
var
|
|
3224
|
-
|
|
3219
|
+
var p = typeof h.style == "string" ? n.number[h.style] : St(h.style) ? h.style.parsedOptions : void 0;
|
|
3220
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3225
3221
|
type: _.literal,
|
|
3226
|
-
value: r.getNumberFormat(t,
|
|
3222
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3227
3223
|
});
|
|
3228
3224
|
continue;
|
|
3229
3225
|
}
|
|
3230
|
-
if (
|
|
3231
|
-
var
|
|
3232
|
-
if (!
|
|
3233
|
-
throw new
|
|
3234
|
-
var
|
|
3235
|
-
return
|
|
3226
|
+
if (Bt(h)) {
|
|
3227
|
+
var m = h.children, x = h.value, H = i[x];
|
|
3228
|
+
if (!yn(H))
|
|
3229
|
+
throw new gn(x, "function", u);
|
|
3230
|
+
var V = oe(m, t, r, n, i, s), L = H(V.map(function(N) {
|
|
3231
|
+
return N.value;
|
|
3236
3232
|
}));
|
|
3237
|
-
Array.isArray(
|
|
3233
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(N) {
|
|
3238
3234
|
return {
|
|
3239
|
-
type: typeof
|
|
3240
|
-
value:
|
|
3235
|
+
type: typeof N == "string" ? _.literal : _.object,
|
|
3236
|
+
value: N
|
|
3241
3237
|
};
|
|
3242
3238
|
}));
|
|
3243
3239
|
}
|
|
3244
3240
|
if (Tt(h)) {
|
|
3245
|
-
var
|
|
3246
|
-
if (!
|
|
3241
|
+
var S = h.options[c] || h.options.other;
|
|
3242
|
+
if (!S)
|
|
3247
3243
|
throw new nt(h.value, c, Object.keys(h.options), u);
|
|
3248
|
-
a.push.apply(a,
|
|
3244
|
+
a.push.apply(a, oe(S.value, t, r, n, i));
|
|
3249
3245
|
continue;
|
|
3250
3246
|
}
|
|
3251
3247
|
if (Pt(h)) {
|
|
3252
|
-
var
|
|
3253
|
-
if (!
|
|
3248
|
+
var S = h.options["=".concat(c)];
|
|
3249
|
+
if (!S) {
|
|
3254
3250
|
if (!Intl.PluralRules)
|
|
3255
|
-
throw new
|
|
3251
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
|
3256
3252
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3257
|
-
`,
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3253
|
+
`, G.MISSING_INTL_API, u);
|
|
3254
|
+
var X = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3255
|
+
S = h.options[X] || h.options.other;
|
|
3260
3256
|
}
|
|
3261
|
-
if (!
|
|
3257
|
+
if (!S)
|
|
3262
3258
|
throw new nt(h.value, c, Object.keys(h.options), u);
|
|
3263
|
-
a.push.apply(a,
|
|
3259
|
+
a.push.apply(a, oe(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3264
3260
|
continue;
|
|
3265
3261
|
}
|
|
3266
3262
|
}
|
|
3267
3263
|
return xn(a);
|
|
3268
3264
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return t ?
|
|
3271
|
-
return r[n] =
|
|
3265
|
+
function vn(e, t) {
|
|
3266
|
+
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3267
|
+
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3272
3268
|
}, {})) : e;
|
|
3273
3269
|
}
|
|
3274
|
-
function
|
|
3270
|
+
function _n(e, t) {
|
|
3275
3271
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3276
|
-
return r[n] =
|
|
3277
|
-
},
|
|
3272
|
+
return r[n] = vn(e[n], t[n]), r;
|
|
3273
|
+
}, g({}, e)) : e;
|
|
3278
3274
|
}
|
|
3279
|
-
function
|
|
3275
|
+
function _e(e) {
|
|
3280
3276
|
return {
|
|
3281
3277
|
create: function() {
|
|
3282
3278
|
return {
|
|
@@ -3290,39 +3286,39 @@ function Te(e) {
|
|
|
3290
3286
|
}
|
|
3291
3287
|
};
|
|
3292
3288
|
}
|
|
3293
|
-
function
|
|
3289
|
+
function Hn(e) {
|
|
3294
3290
|
return e === void 0 && (e = {
|
|
3295
3291
|
number: {},
|
|
3296
3292
|
dateTime: {},
|
|
3297
3293
|
pluralRules: {}
|
|
3298
3294
|
}), {
|
|
3299
|
-
getNumberFormat:
|
|
3295
|
+
getNumberFormat: xe(function() {
|
|
3300
3296
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3301
3297
|
r[n] = arguments[n];
|
|
3302
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3303
3299
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3300
|
+
cache: _e(e.number),
|
|
3301
|
+
strategy: ye.variadic
|
|
3306
3302
|
}),
|
|
3307
|
-
getDateTimeFormat:
|
|
3303
|
+
getDateTimeFormat: xe(function() {
|
|
3308
3304
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3309
3305
|
r[n] = arguments[n];
|
|
3310
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3311
3307
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3308
|
+
cache: _e(e.dateTime),
|
|
3309
|
+
strategy: ye.variadic
|
|
3314
3310
|
}),
|
|
3315
|
-
getPluralRules:
|
|
3311
|
+
getPluralRules: xe(function() {
|
|
3316
3312
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3317
3313
|
r[n] = arguments[n];
|
|
3318
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3319
3315
|
}, {
|
|
3320
|
-
cache:
|
|
3321
|
-
strategy:
|
|
3316
|
+
cache: _e(e.pluralRules),
|
|
3317
|
+
strategy: ye.variadic
|
|
3322
3318
|
})
|
|
3323
3319
|
};
|
|
3324
3320
|
}
|
|
3325
|
-
var
|
|
3321
|
+
var Tn = (
|
|
3326
3322
|
/** @class */
|
|
3327
3323
|
function() {
|
|
3328
3324
|
function e(t, r, n, i) {
|
|
@@ -3341,7 +3337,7 @@ var Pn = (
|
|
|
3341
3337
|
}, []);
|
|
3342
3338
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3343
3339
|
}, this.formatToParts = function(l) {
|
|
3344
|
-
return
|
|
3340
|
+
return oe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3345
3341
|
}, this.resolvedOptions = function() {
|
|
3346
3342
|
var l;
|
|
3347
3343
|
return {
|
|
@@ -3355,12 +3351,12 @@ var Pn = (
|
|
|
3355
3351
|
var u = i || {};
|
|
3356
3352
|
u.formatters;
|
|
3357
3353
|
var a = Lr(u, ["formatters"]);
|
|
3358
|
-
this.ast = e.__parse(t,
|
|
3354
|
+
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3359
3355
|
} else
|
|
3360
3356
|
this.ast = t;
|
|
3361
3357
|
if (!Array.isArray(this.ast))
|
|
3362
3358
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3363
|
-
this.formats =
|
|
3359
|
+
this.formats = _n(e.formats, n), this.formatters = i && i.formatters || Hn(this.formatterCache);
|
|
3364
3360
|
}
|
|
3365
3361
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3366
3362
|
get: function() {
|
|
@@ -3373,7 +3369,7 @@ var Pn = (
|
|
|
3373
3369
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3374
3370
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3375
3371
|
}
|
|
3376
|
-
}, e.__parse =
|
|
3372
|
+
}, e.__parse = bn, e.formats = {
|
|
3377
3373
|
number: {
|
|
3378
3374
|
integer: {
|
|
3379
3375
|
maximumFractionDigits: 0
|
|
@@ -3434,7 +3430,7 @@ var Pn = (
|
|
|
3434
3430
|
}, e;
|
|
3435
3431
|
}()
|
|
3436
3432
|
);
|
|
3437
|
-
function
|
|
3433
|
+
function Pn(e, t) {
|
|
3438
3434
|
if (t == null)
|
|
3439
3435
|
return;
|
|
3440
3436
|
if (t in e)
|
|
@@ -3455,36 +3451,36 @@ function Sn(e, t) {
|
|
|
3455
3451
|
n = void 0;
|
|
3456
3452
|
return n;
|
|
3457
3453
|
}
|
|
3458
|
-
const
|
|
3454
|
+
const A = {}, Bn = (e, t, r) => r && (t in A || (A[t] = {}), e in A[t] || (A[t][e] = r), r), Mt = (e, t) => {
|
|
3459
3455
|
if (t == null)
|
|
3460
3456
|
return;
|
|
3461
|
-
if (t in
|
|
3462
|
-
return
|
|
3463
|
-
const r =
|
|
3457
|
+
if (t in A && e in A[t])
|
|
3458
|
+
return A[t][e];
|
|
3459
|
+
const r = pe(t);
|
|
3464
3460
|
for (let n = 0; n < r.length; n++) {
|
|
3465
|
-
const i = r[n], s =
|
|
3461
|
+
const i = r[n], s = An(i, e);
|
|
3466
3462
|
if (s)
|
|
3467
3463
|
return Bn(e, t, s);
|
|
3468
3464
|
}
|
|
3469
3465
|
};
|
|
3470
3466
|
let De;
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3467
|
+
const te = fe({});
|
|
3468
|
+
function Sn(e) {
|
|
3473
3469
|
return De[e] || null;
|
|
3474
3470
|
}
|
|
3475
3471
|
function Ct(e) {
|
|
3476
3472
|
return e in De;
|
|
3477
3473
|
}
|
|
3478
|
-
function
|
|
3474
|
+
function An(e, t) {
|
|
3479
3475
|
if (!Ct(e))
|
|
3480
3476
|
return null;
|
|
3481
|
-
const r =
|
|
3482
|
-
return
|
|
3477
|
+
const r = Sn(e);
|
|
3478
|
+
return Pn(r, t);
|
|
3483
3479
|
}
|
|
3484
|
-
function
|
|
3480
|
+
function Nn(e) {
|
|
3485
3481
|
if (e == null)
|
|
3486
3482
|
return;
|
|
3487
|
-
const t =
|
|
3483
|
+
const t = pe(e);
|
|
3488
3484
|
for (let r = 0; r < t.length; r++) {
|
|
3489
3485
|
const n = t[r];
|
|
3490
3486
|
if (Ct(n))
|
|
@@ -3492,55 +3488,55 @@ function wn(e) {
|
|
|
3492
3488
|
}
|
|
3493
3489
|
}
|
|
3494
3490
|
function Rt(e, ...t) {
|
|
3495
|
-
delete
|
|
3491
|
+
delete A[e], te.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
|
|
3496
3492
|
}
|
|
3497
|
-
|
|
3498
|
-
[
|
|
3493
|
+
j(
|
|
3494
|
+
[te],
|
|
3499
3495
|
([e]) => Object.keys(e)
|
|
3500
3496
|
);
|
|
3501
|
-
|
|
3502
|
-
const
|
|
3503
|
-
function
|
|
3504
|
-
|
|
3497
|
+
te.subscribe((e) => De = e);
|
|
3498
|
+
const ae = {};
|
|
3499
|
+
function wn(e, t) {
|
|
3500
|
+
ae[e].delete(t), ae[e].size === 0 && delete ae[e];
|
|
3505
3501
|
}
|
|
3506
3502
|
function Ut(e) {
|
|
3507
|
-
return
|
|
3503
|
+
return ae[e];
|
|
3508
3504
|
}
|
|
3509
|
-
function
|
|
3510
|
-
return
|
|
3505
|
+
function On(e) {
|
|
3506
|
+
return pe(e).map((t) => {
|
|
3511
3507
|
const r = Ut(t);
|
|
3512
3508
|
return [t, r ? [...r] : []];
|
|
3513
3509
|
}).filter(([, t]) => t.length > 0);
|
|
3514
3510
|
}
|
|
3515
|
-
function
|
|
3516
|
-
return e == null ? !1 :
|
|
3511
|
+
function $e(e) {
|
|
3512
|
+
return e == null ? !1 : pe(e).some(
|
|
3517
3513
|
(t) => {
|
|
3518
3514
|
var r;
|
|
3519
3515
|
return (r = Ut(t)) == null ? void 0 : r.size;
|
|
3520
3516
|
}
|
|
3521
3517
|
);
|
|
3522
3518
|
}
|
|
3523
|
-
function
|
|
3519
|
+
function In(e, t) {
|
|
3524
3520
|
return Promise.all(
|
|
3525
|
-
t.map((n) => (
|
|
3521
|
+
t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
|
|
3526
3522
|
).then((n) => Rt(e, ...n));
|
|
3527
3523
|
}
|
|
3528
3524
|
const Z = {};
|
|
3529
3525
|
function Dt(e) {
|
|
3530
|
-
if (
|
|
3526
|
+
if (!$e(e))
|
|
3531
3527
|
return e in Z ? Z[e] : Promise.resolve();
|
|
3532
|
-
const t =
|
|
3528
|
+
const t = On(e);
|
|
3533
3529
|
return Z[e] = Promise.all(
|
|
3534
3530
|
t.map(
|
|
3535
|
-
([r, n]) =>
|
|
3531
|
+
([r, n]) => In(r, n)
|
|
3536
3532
|
)
|
|
3537
3533
|
).then(() => {
|
|
3538
|
-
if (
|
|
3534
|
+
if ($e(e))
|
|
3539
3535
|
return Dt(e);
|
|
3540
3536
|
delete Z[e];
|
|
3541
3537
|
}), Z[e];
|
|
3542
3538
|
}
|
|
3543
|
-
const
|
|
3539
|
+
const Ln = {
|
|
3544
3540
|
number: {
|
|
3545
3541
|
scientific: { notation: "scientific" },
|
|
3546
3542
|
engineering: { notation: "engineering" },
|
|
@@ -3569,141 +3565,141 @@ const $n = {
|
|
|
3569
3565
|
timeZoneName: "short"
|
|
3570
3566
|
}
|
|
3571
3567
|
}
|
|
3572
|
-
},
|
|
3568
|
+
}, $n = {
|
|
3573
3569
|
fallbackLocale: null,
|
|
3574
3570
|
loadingDelay: 200,
|
|
3575
|
-
formats:
|
|
3571
|
+
formats: Ln,
|
|
3576
3572
|
warnOnMissingMessages: !0,
|
|
3577
3573
|
handleMissingMessage: void 0,
|
|
3578
3574
|
ignoreTag: !0
|
|
3579
|
-
},
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3575
|
+
}, Mn = $n;
|
|
3576
|
+
function F() {
|
|
3577
|
+
return Mn;
|
|
3582
3578
|
}
|
|
3583
|
-
const
|
|
3584
|
-
var
|
|
3579
|
+
const He = fe(!1);
|
|
3580
|
+
var Cn = Object.defineProperty, Rn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3585
3581
|
for (var r in t || (t = {}))
|
|
3586
|
-
|
|
3582
|
+
Dn.call(t, r) && st(e, r, t[r]);
|
|
3587
3583
|
if (it)
|
|
3588
3584
|
for (var r of it(t))
|
|
3589
|
-
|
|
3585
|
+
Gn.call(t, r) && st(e, r, t[r]);
|
|
3590
3586
|
return e;
|
|
3591
|
-
},
|
|
3592
|
-
let
|
|
3593
|
-
const
|
|
3587
|
+
}, zn = (e, t) => Rn(e, Un(t));
|
|
3588
|
+
let Me;
|
|
3589
|
+
const he = fe(null);
|
|
3594
3590
|
function ot(e) {
|
|
3595
3591
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3596
3592
|
}
|
|
3597
|
-
function
|
|
3593
|
+
function pe(e, t = F().fallbackLocale) {
|
|
3598
3594
|
const r = ot(e);
|
|
3599
3595
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
|
3600
3596
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3597
|
+
function I() {
|
|
3598
|
+
return Me != null ? Me : void 0;
|
|
3603
3599
|
}
|
|
3604
|
-
|
|
3605
|
-
|
|
3600
|
+
he.subscribe((e) => {
|
|
3601
|
+
Me = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3606
3602
|
});
|
|
3607
|
-
const
|
|
3608
|
-
if (e &&
|
|
3609
|
-
const { loadingDelay: t } =
|
|
3603
|
+
const jn = (e) => {
|
|
3604
|
+
if (e && Nn(e) && $e(e)) {
|
|
3605
|
+
const { loadingDelay: t } = F();
|
|
3610
3606
|
let r;
|
|
3611
|
-
return typeof window != "undefined" &&
|
|
3612
|
-
() =>
|
|
3607
|
+
return typeof window != "undefined" && I() != null && t ? r = window.setTimeout(
|
|
3608
|
+
() => He.set(!0),
|
|
3613
3609
|
t
|
|
3614
|
-
) :
|
|
3615
|
-
|
|
3610
|
+
) : He.set(!0), Dt(e).then(() => {
|
|
3611
|
+
he.set(e);
|
|
3616
3612
|
}).finally(() => {
|
|
3617
|
-
clearTimeout(r),
|
|
3613
|
+
clearTimeout(r), He.set(!1);
|
|
3618
3614
|
});
|
|
3619
3615
|
}
|
|
3620
|
-
return
|
|
3621
|
-
},
|
|
3622
|
-
set:
|
|
3623
|
-
}),
|
|
3616
|
+
return he.set(e);
|
|
3617
|
+
}, re = zn(Fn({}, he), {
|
|
3618
|
+
set: jn
|
|
3619
|
+
}), de = (e) => {
|
|
3624
3620
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3625
3621
|
return (n) => {
|
|
3626
3622
|
const i = JSON.stringify(n);
|
|
3627
3623
|
return i in t ? t[i] : t[i] = e(n);
|
|
3628
3624
|
};
|
|
3629
3625
|
};
|
|
3630
|
-
var
|
|
3626
|
+
var kn = Object.defineProperty, le = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
|
3631
3627
|
for (var r in t || (t = {}))
|
|
3632
3628
|
Gt.call(t, r) && at(e, r, t[r]);
|
|
3633
|
-
if (
|
|
3634
|
-
for (var r of
|
|
3629
|
+
if (le)
|
|
3630
|
+
for (var r of le(t))
|
|
3635
3631
|
Ft.call(t, r) && at(e, r, t[r]);
|
|
3636
3632
|
return e;
|
|
3637
|
-
},
|
|
3633
|
+
}, k = (e, t) => {
|
|
3638
3634
|
var r = {};
|
|
3639
3635
|
for (var n in e)
|
|
3640
3636
|
Gt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3641
|
-
if (e != null &&
|
|
3642
|
-
for (var n of
|
|
3637
|
+
if (e != null && le)
|
|
3638
|
+
for (var n of le(e))
|
|
3643
3639
|
t.indexOf(n) < 0 && Ft.call(e, n) && (r[n] = e[n]);
|
|
3644
3640
|
return r;
|
|
3645
3641
|
};
|
|
3646
|
-
const
|
|
3647
|
-
const { formats: r } =
|
|
3642
|
+
const Y = (e, t) => {
|
|
3643
|
+
const { formats: r } = F();
|
|
3648
3644
|
if (e in r && t in r[e])
|
|
3649
3645
|
return r[e][t];
|
|
3650
3646
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3651
|
-
},
|
|
3647
|
+
}, Vn = de(
|
|
3652
3648
|
(e) => {
|
|
3653
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3649
|
+
var t = e, { locale: r, format: n } = t, i = k(t, ["locale", "format"]);
|
|
3654
3650
|
if (r == null)
|
|
3655
3651
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3656
|
-
return n && (i =
|
|
3652
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
3657
3653
|
}
|
|
3658
|
-
),
|
|
3654
|
+
), Xn = de(
|
|
3659
3655
|
(e) => {
|
|
3660
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3656
|
+
var t = e, { locale: r, format: n } = t, i = k(t, ["locale", "format"]);
|
|
3661
3657
|
if (r == null)
|
|
3662
3658
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3663
|
-
return n ? i =
|
|
3659
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3664
3660
|
}
|
|
3665
|
-
), Zn =
|
|
3661
|
+
), Zn = de(
|
|
3666
3662
|
(e) => {
|
|
3667
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3663
|
+
var t = e, { locale: r, format: n } = t, i = k(t, ["locale", "format"]);
|
|
3668
3664
|
if (r == null)
|
|
3669
3665
|
throw new Error(
|
|
3670
3666
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3671
3667
|
);
|
|
3672
|
-
return n ? i =
|
|
3668
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3673
3669
|
}
|
|
3674
|
-
),
|
|
3670
|
+
), Wn = (e = {}) => {
|
|
3675
3671
|
var t = e, {
|
|
3676
|
-
locale: r =
|
|
3677
|
-
} = t, n =
|
|
3672
|
+
locale: r = I()
|
|
3673
|
+
} = t, n = k(t, [
|
|
3678
3674
|
"locale"
|
|
3679
3675
|
]);
|
|
3680
|
-
return
|
|
3681
|
-
},
|
|
3676
|
+
return Vn(Ge({ locale: r }, n));
|
|
3677
|
+
}, Qn = (e = {}) => {
|
|
3682
3678
|
var t = e, {
|
|
3683
|
-
locale: r =
|
|
3684
|
-
} = t, n =
|
|
3679
|
+
locale: r = I()
|
|
3680
|
+
} = t, n = k(t, [
|
|
3685
3681
|
"locale"
|
|
3686
3682
|
]);
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3683
|
+
return Xn(Ge({ locale: r }, n));
|
|
3684
|
+
}, Jn = (e = {}) => {
|
|
3689
3685
|
var t = e, {
|
|
3690
|
-
locale: r =
|
|
3691
|
-
} = t, n =
|
|
3686
|
+
locale: r = I()
|
|
3687
|
+
} = t, n = k(t, [
|
|
3692
3688
|
"locale"
|
|
3693
3689
|
]);
|
|
3694
3690
|
return Zn(Ge({ locale: r }, n));
|
|
3695
|
-
},
|
|
3691
|
+
}, qn = de(
|
|
3696
3692
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3697
|
-
(e, t =
|
|
3698
|
-
ignoreTag:
|
|
3693
|
+
(e, t = I()) => new Tn(e, t, F().formats, {
|
|
3694
|
+
ignoreTag: F().ignoreTag
|
|
3699
3695
|
})
|
|
3700
|
-
),
|
|
3696
|
+
), Yn = (e, t = {}) => {
|
|
3701
3697
|
var r, n, i, s;
|
|
3702
3698
|
let u = t;
|
|
3703
3699
|
typeof e == "object" && (u = e, e = u.id);
|
|
3704
3700
|
const {
|
|
3705
3701
|
values: a,
|
|
3706
|
-
locale: l =
|
|
3702
|
+
locale: l = I(),
|
|
3707
3703
|
default: o
|
|
3708
3704
|
} = u;
|
|
3709
3705
|
if (l == null)
|
|
@@ -3712,7 +3708,7 @@ const K = (e, t) => {
|
|
|
3712
3708
|
);
|
|
3713
3709
|
let h = Mt(e, l);
|
|
3714
3710
|
if (!h)
|
|
3715
|
-
h = (s = (i = (n = (r =
|
|
3711
|
+
h = (s = (i = (n = (r = F()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3716
3712
|
else if (typeof h != "string")
|
|
3717
3713
|
return console.warn(
|
|
3718
3714
|
`[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.`
|
|
@@ -3721,7 +3717,7 @@ const K = (e, t) => {
|
|
|
3721
3717
|
return h;
|
|
3722
3718
|
let f = h;
|
|
3723
3719
|
try {
|
|
3724
|
-
f =
|
|
3720
|
+
f = qn(h, l).format(a);
|
|
3725
3721
|
} catch (c) {
|
|
3726
3722
|
c instanceof Error && console.warn(
|
|
3727
3723
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3729,11 +3725,11 @@ const K = (e, t) => {
|
|
|
3729
3725
|
);
|
|
3730
3726
|
}
|
|
3731
3727
|
return f;
|
|
3732
|
-
},
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3728
|
+
}, Kn = (e, t) => Jn(t).format(e), ei = (e, t) => Qn(t).format(e), ti = (e, t) => Wn(t).format(e), ri = (e, t = I()) => Mt(e, t), ni = j([re, te], () => Yn);
|
|
3729
|
+
j([re], () => Kn);
|
|
3730
|
+
j([re], () => ei);
|
|
3731
|
+
j([re], () => ti);
|
|
3732
|
+
j([re, te], () => ri);
|
|
3737
3733
|
function ut(e, t) {
|
|
3738
3734
|
Rt(e, t);
|
|
3739
3735
|
}
|
|
@@ -3794,13 +3790,13 @@ const ht = {
|
|
|
3794
3790
|
place: "place"
|
|
3795
3791
|
}
|
|
3796
3792
|
};
|
|
3797
|
-
function
|
|
3793
|
+
function ii(e, t) {
|
|
3798
3794
|
if (e) {
|
|
3799
3795
|
const r = document.createElement("style");
|
|
3800
3796
|
r.innerHTML = t, e.appendChild(r);
|
|
3801
3797
|
}
|
|
3802
3798
|
}
|
|
3803
|
-
function
|
|
3799
|
+
function si(e, t) {
|
|
3804
3800
|
if (!e || !t)
|
|
3805
3801
|
return;
|
|
3806
3802
|
const r = new URL(t);
|
|
@@ -3811,7 +3807,7 @@ function oi(e, t) {
|
|
|
3811
3807
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3812
3808
|
});
|
|
3813
3809
|
}
|
|
3814
|
-
function
|
|
3810
|
+
function oi(e, t, r) {
|
|
3815
3811
|
if (window.emMessageBus) {
|
|
3816
3812
|
const n = document.createElement("style");
|
|
3817
3813
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3819,7 +3815,7 @@ function ai(e, t, r) {
|
|
|
3819
3815
|
});
|
|
3820
3816
|
}
|
|
3821
3817
|
}
|
|
3822
|
-
function
|
|
3818
|
+
function ai(e) {
|
|
3823
3819
|
Qt(e, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
3824
3820
|
}
|
|
3825
3821
|
function lt(e, t, r) {
|
|
@@ -3827,22 +3823,22 @@ function lt(e, t, r) {
|
|
|
3827
3823
|
return n[12] = t[r], n[14] = r, n;
|
|
3828
3824
|
}
|
|
3829
3825
|
function ft(e) {
|
|
3830
|
-
let t, r =
|
|
3826
|
+
let t, r = We(
|
|
3831
3827
|
/*prizes*/
|
|
3832
3828
|
e[1]
|
|
3833
3829
|
), n = [];
|
|
3834
3830
|
for (let s = 0; s < r.length; s += 1)
|
|
3835
|
-
n[s] =
|
|
3831
|
+
n[s] = mt(lt(e, r, s));
|
|
3836
3832
|
let i = null;
|
|
3837
3833
|
return r.length || (i = ct(e)), {
|
|
3838
3834
|
c() {
|
|
3839
3835
|
t = P("div");
|
|
3840
3836
|
for (let s = 0; s < n.length; s += 1)
|
|
3841
3837
|
n[s].c();
|
|
3842
|
-
i && i.c(),
|
|
3838
|
+
i && i.c(), y(t, "class", "Prizes"), y(t, "part", "Prizes");
|
|
3843
3839
|
},
|
|
3844
3840
|
m(s, u) {
|
|
3845
|
-
|
|
3841
|
+
ee(s, t, u);
|
|
3846
3842
|
for (let a = 0; a < n.length; a += 1)
|
|
3847
3843
|
n[a] && n[a].m(t, null);
|
|
3848
3844
|
i && i.m(t, null);
|
|
@@ -3850,14 +3846,14 @@ function ft(e) {
|
|
|
3850
3846
|
p(s, u) {
|
|
3851
3847
|
if (u & /*prizes, $_*/
|
|
3852
3848
|
6) {
|
|
3853
|
-
r =
|
|
3849
|
+
r = We(
|
|
3854
3850
|
/*prizes*/
|
|
3855
3851
|
s[1]
|
|
3856
3852
|
);
|
|
3857
3853
|
let a;
|
|
3858
3854
|
for (a = 0; a < r.length; a += 1) {
|
|
3859
3855
|
const l = lt(s, r, a);
|
|
3860
|
-
n[a] ? n[a].p(l, u) : (n[a] =
|
|
3856
|
+
n[a] ? n[a].p(l, u) : (n[a] = mt(l), n[a].c(), n[a].m(t, null));
|
|
3861
3857
|
}
|
|
3862
3858
|
for (; a < n.length; a += 1)
|
|
3863
3859
|
n[a].d(1);
|
|
@@ -3865,7 +3861,7 @@ function ft(e) {
|
|
|
3865
3861
|
}
|
|
3866
3862
|
},
|
|
3867
3863
|
d(s) {
|
|
3868
|
-
s &&
|
|
3864
|
+
s && z(t), Yt(n, s), i && i.d();
|
|
3869
3865
|
}
|
|
3870
3866
|
};
|
|
3871
3867
|
}
|
|
@@ -3876,22 +3872,22 @@ function ct(e) {
|
|
|
3876
3872
|
), n;
|
|
3877
3873
|
return {
|
|
3878
3874
|
c() {
|
|
3879
|
-
t = P("p"), n =
|
|
3875
|
+
t = P("p"), n = O(r);
|
|
3880
3876
|
},
|
|
3881
3877
|
m(i, s) {
|
|
3882
|
-
|
|
3878
|
+
ee(i, t, s), v(t, n);
|
|
3883
3879
|
},
|
|
3884
3880
|
p(i, s) {
|
|
3885
3881
|
s & /*$_*/
|
|
3886
3882
|
4 && r !== (r = /*$_*/
|
|
3887
|
-
i[2]("noprizes") + "") &&
|
|
3883
|
+
i[2]("noprizes") + "") && W(n, r);
|
|
3888
3884
|
},
|
|
3889
3885
|
d(i) {
|
|
3890
|
-
i &&
|
|
3886
|
+
i && z(t);
|
|
3891
3887
|
}
|
|
3892
3888
|
};
|
|
3893
3889
|
}
|
|
3894
|
-
function
|
|
3890
|
+
function mt(e) {
|
|
3895
3891
|
let t, r, n, i = (
|
|
3896
3892
|
/*prize*/
|
|
3897
3893
|
(e[12].count > 1 ? `${/*prize*/
|
|
@@ -3910,34 +3906,34 @@ function pt(e) {
|
|
|
3910
3906
|
), f, c;
|
|
3911
3907
|
return {
|
|
3912
3908
|
c() {
|
|
3913
|
-
t = P("div"), r = P("p"), n = P("span"), s =
|
|
3914
|
-
e[14]),
|
|
3909
|
+
t = P("div"), r = P("p"), n = P("span"), s = O(i), u = ue(), l = O(a), o = O(": "), f = O(h), c = ue(), y(n, "class", "PrizeRank"), y(n, "part", "PrizeRank"), y(r, "class", "PrizeText"), y(r, "part", "PrizeText"), y(t, "class", "Prize Prize" + /*index*/
|
|
3910
|
+
e[14]), y(t, "part", "Prize Prize" + /*index*/
|
|
3915
3911
|
e[14]);
|
|
3916
3912
|
},
|
|
3917
|
-
m(
|
|
3918
|
-
|
|
3913
|
+
m(p, m) {
|
|
3914
|
+
ee(p, t, m), v(t, r), v(r, n), v(n, s), v(r, u), v(r, l), v(r, o), v(r, f), v(t, c);
|
|
3919
3915
|
},
|
|
3920
|
-
p(
|
|
3921
|
-
|
|
3916
|
+
p(p, m) {
|
|
3917
|
+
m & /*prizes*/
|
|
3922
3918
|
2 && i !== (i = /*prize*/
|
|
3923
|
-
(
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3919
|
+
(p[12].count > 1 ? `${/*prize*/
|
|
3920
|
+
p[12].rank}~${/*prize*/
|
|
3921
|
+
p[12].rank + /*prize*/
|
|
3922
|
+
p[12].count - 1}` : (
|
|
3927
3923
|
/*prize*/
|
|
3928
|
-
|
|
3929
|
-
)) + "") &&
|
|
3924
|
+
p[12].rank
|
|
3925
|
+
)) + "") && W(s, i), m & /*$_*/
|
|
3930
3926
|
4 && a !== (a = /*$_*/
|
|
3931
|
-
|
|
3927
|
+
p[2]("place") + "") && W(l, a), m & /*prizes*/
|
|
3932
3928
|
2 && h !== (h = /*prize*/
|
|
3933
|
-
|
|
3929
|
+
p[12].name + "") && W(f, h);
|
|
3934
3930
|
},
|
|
3935
|
-
d(
|
|
3936
|
-
|
|
3931
|
+
d(p) {
|
|
3932
|
+
p && z(t);
|
|
3937
3933
|
}
|
|
3938
3934
|
};
|
|
3939
3935
|
}
|
|
3940
|
-
function
|
|
3936
|
+
function ui(e) {
|
|
3941
3937
|
let t, r, n, i, s, u = (
|
|
3942
3938
|
/*$_*/
|
|
3943
3939
|
e[2]("prizes") + ""
|
|
@@ -3947,58 +3943,58 @@ function hi(e) {
|
|
|
3947
3943
|
);
|
|
3948
3944
|
return {
|
|
3949
3945
|
c() {
|
|
3950
|
-
t = P("div"), r = P("div"), n = P("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i =
|
|
3946
|
+
t = P("div"), r = P("div"), n = P("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i = ue(), s = P("p"), a = O(u), l = ue(), o && o.c(), y(n, "class", "TournamentPrizesIconWrapper"), y(n, "part", "TournamentPrizesIconWrapper"), y(s, "class", "PrizesTitle"), y(s, "part", "PrizesTitle"), y(r, "class", "TournamentPrizesIconSection"), y(r, "part", "TournamentPrizesIconSection"), y(t, "class", "TournamentPrizes"), y(t, "part", "TournamentPrizes");
|
|
3951
3947
|
},
|
|
3952
3948
|
m(h, f) {
|
|
3953
|
-
|
|
3949
|
+
ee(h, t, f), v(t, r), v(r, n), v(r, i), v(r, s), v(s, a), v(t, l), o && o.m(t, null), e[8](t);
|
|
3954
3950
|
},
|
|
3955
3951
|
p(h, [f]) {
|
|
3956
3952
|
f & /*$_*/
|
|
3957
3953
|
4 && u !== (u = /*$_*/
|
|
3958
|
-
h[2]("prizes") + "") &&
|
|
3954
|
+
h[2]("prizes") + "") && W(a, u), /*prizes*/
|
|
3959
3955
|
h[1] ? o ? o.p(h, f) : (o = ft(h), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
3960
3956
|
},
|
|
3961
|
-
i:
|
|
3962
|
-
o:
|
|
3957
|
+
i: B,
|
|
3958
|
+
o: B,
|
|
3963
3959
|
d(h) {
|
|
3964
|
-
h &&
|
|
3960
|
+
h && z(t), o && o.d(), e[8](null);
|
|
3965
3961
|
}
|
|
3966
3962
|
};
|
|
3967
3963
|
}
|
|
3968
|
-
function
|
|
3964
|
+
function hi(e, t, r) {
|
|
3969
3965
|
let n;
|
|
3970
|
-
|
|
3966
|
+
Wt(e, ni, (m) => r(2, n = m));
|
|
3971
3967
|
let { tourid: i = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, o, h;
|
|
3972
3968
|
const f = () => {
|
|
3973
|
-
fetch(a).then((
|
|
3974
|
-
Object.keys(
|
|
3975
|
-
ut(H,
|
|
3969
|
+
fetch(a).then((x) => x.json()).then((x) => {
|
|
3970
|
+
Object.keys(x).forEach((H) => {
|
|
3971
|
+
ut(H, x[H]);
|
|
3976
3972
|
});
|
|
3977
|
-
}).catch((
|
|
3978
|
-
console.log(
|
|
3973
|
+
}).catch((x) => {
|
|
3974
|
+
console.log(x);
|
|
3979
3975
|
});
|
|
3980
3976
|
};
|
|
3981
|
-
Object.keys(ht).forEach((
|
|
3982
|
-
ut(
|
|
3977
|
+
Object.keys(ht).forEach((m) => {
|
|
3978
|
+
ut(m, ht[m]);
|
|
3983
3979
|
});
|
|
3984
|
-
const c = (
|
|
3985
|
-
|
|
3980
|
+
const c = (m) => {
|
|
3981
|
+
m.data && m.data.type == `TournamentPrizes_${i}` && r(1, h = m.data.prizes);
|
|
3986
3982
|
};
|
|
3987
3983
|
rr(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", c, !1), () => {
|
|
3988
3984
|
window.removeEventListener("message", c);
|
|
3989
3985
|
}));
|
|
3990
|
-
function m
|
|
3991
|
-
|
|
3992
|
-
o =
|
|
3986
|
+
function p(m) {
|
|
3987
|
+
Te[m ? "unshift" : "push"](() => {
|
|
3988
|
+
o = m, r(0, o);
|
|
3993
3989
|
});
|
|
3994
3990
|
}
|
|
3995
|
-
return e.$$set = (
|
|
3996
|
-
"tourid" in
|
|
3991
|
+
return e.$$set = (m) => {
|
|
3992
|
+
"tourid" in m && r(3, i = m.tourid), "clientstyling" in m && r(4, s = m.clientstyling), "clientstylingurl" in m && r(5, u = m.clientstylingurl), "translationurl" in m && r(6, a = m.translationurl), "mbsource" in m && r(7, l = m.mbsource);
|
|
3997
3993
|
}, e.$$.update = () => {
|
|
3998
3994
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
3999
|
-
17 && s && o &&
|
|
4000
|
-
33 && u && o &&
|
|
4001
|
-
129 && l && o &&
|
|
3995
|
+
17 && s && o && ii(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
3996
|
+
33 && u && o && si(o, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
3997
|
+
129 && l && o && oi(o, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4002
3998
|
64 && a && f();
|
|
4003
3999
|
}, [
|
|
4004
4000
|
o,
|
|
@@ -4009,16 +4005,16 @@ function li(e, t, r) {
|
|
|
4009
4005
|
u,
|
|
4010
4006
|
a,
|
|
4011
4007
|
l,
|
|
4012
|
-
|
|
4008
|
+
p
|
|
4013
4009
|
];
|
|
4014
4010
|
}
|
|
4015
|
-
class
|
|
4011
|
+
class li extends pr {
|
|
4016
4012
|
constructor(t) {
|
|
4017
4013
|
super(), cr(
|
|
4018
4014
|
this,
|
|
4019
4015
|
t,
|
|
4020
|
-
li,
|
|
4021
4016
|
hi,
|
|
4017
|
+
ui,
|
|
4022
4018
|
dt,
|
|
4023
4019
|
{
|
|
4024
4020
|
tourid: 3,
|
|
@@ -4027,41 +4023,41 @@ class fi extends mr {
|
|
|
4027
4023
|
translationurl: 6,
|
|
4028
4024
|
mbsource: 7
|
|
4029
4025
|
},
|
|
4030
|
-
|
|
4026
|
+
ai
|
|
4031
4027
|
);
|
|
4032
4028
|
}
|
|
4033
4029
|
get tourid() {
|
|
4034
4030
|
return this.$$.ctx[3];
|
|
4035
4031
|
}
|
|
4036
4032
|
set tourid(t) {
|
|
4037
|
-
this.$$set({ tourid: t }),
|
|
4033
|
+
this.$$set({ tourid: t }), w();
|
|
4038
4034
|
}
|
|
4039
4035
|
get clientstyling() {
|
|
4040
4036
|
return this.$$.ctx[4];
|
|
4041
4037
|
}
|
|
4042
4038
|
set clientstyling(t) {
|
|
4043
|
-
this.$$set({ clientstyling: t }),
|
|
4039
|
+
this.$$set({ clientstyling: t }), w();
|
|
4044
4040
|
}
|
|
4045
4041
|
get clientstylingurl() {
|
|
4046
4042
|
return this.$$.ctx[5];
|
|
4047
4043
|
}
|
|
4048
4044
|
set clientstylingurl(t) {
|
|
4049
|
-
this.$$set({ clientstylingurl: t }),
|
|
4045
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
4050
4046
|
}
|
|
4051
4047
|
get translationurl() {
|
|
4052
4048
|
return this.$$.ctx[6];
|
|
4053
4049
|
}
|
|
4054
4050
|
set translationurl(t) {
|
|
4055
|
-
this.$$set({ translationurl: t }),
|
|
4051
|
+
this.$$set({ translationurl: t }), w();
|
|
4056
4052
|
}
|
|
4057
4053
|
get mbsource() {
|
|
4058
4054
|
return this.$$.ctx[7];
|
|
4059
4055
|
}
|
|
4060
4056
|
set mbsource(t) {
|
|
4061
|
-
this.$$set({ mbsource: t }),
|
|
4057
|
+
this.$$set({ mbsource: t }), w();
|
|
4062
4058
|
}
|
|
4063
4059
|
}
|
|
4064
|
-
|
|
4060
|
+
mr(li, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4065
4061
|
export {
|
|
4066
|
-
|
|
4062
|
+
li as default
|
|
4067
4063
|
};
|