@everymatrix/general-icon-progress-bar 1.56.0 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralIconProgressBar-RIcTdYqm.js → GeneralIconProgressBar-DSaIA0Oc.js} +490 -466
- package/components/GeneralIconProgressBar-DvairRCn.cjs +16 -0
- package/components/{GeneralIconProgressBar-YqbhMYw-.js → GeneralIconProgressBar-DvfGRc7A.js} +384 -360
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralIconProgressBar-Dbtf2ZPD.cjs +0 -3
package/components/{GeneralIconProgressBar-YqbhMYw-.js → GeneralIconProgressBar-DvfGRc7A.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function rt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function Ge() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function K(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(rt);
|
11
11
|
}
|
12
12
|
function Ie(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function nt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Mt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function it(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,21 +27,22 @@ function rt(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function Rt(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(it(t, r));
|
32
32
|
}
|
33
33
|
function re(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function $t(e, t, r) {
|
37
|
+
const n = Ut(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
39
|
const i = Z("style");
|
40
|
-
i.id = t, i.textContent = r,
|
40
|
+
i.id = t, i.textContent = r, Gt(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
44
|
-
if (!e)
|
43
|
+
function Ut(e) {
|
44
|
+
if (!e)
|
45
|
+
return document;
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
46
47
|
return t && /** @type {ShadowRoot} */
|
47
48
|
t.host ? (
|
@@ -49,14 +50,14 @@ function Rt(e) {
|
|
49
50
|
t
|
50
51
|
) : e.ownerDocument;
|
51
52
|
}
|
52
|
-
function
|
53
|
+
function Gt(e, t) {
|
53
54
|
return re(
|
54
55
|
/** @type {Document} */
|
55
56
|
e.head || e,
|
56
57
|
t
|
57
58
|
), t.sheet;
|
58
59
|
}
|
59
|
-
function
|
60
|
+
function st(e, t, r) {
|
60
61
|
e.insertBefore(t, r || null);
|
61
62
|
}
|
62
63
|
function we(e) {
|
@@ -65,20 +66,20 @@ function we(e) {
|
|
65
66
|
function Z(e) {
|
66
67
|
return document.createElement(e);
|
67
68
|
}
|
68
|
-
function
|
69
|
+
function Dt(e) {
|
69
70
|
return document.createTextNode(e);
|
70
71
|
}
|
71
72
|
function L(e, t, r) {
|
72
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
73
74
|
}
|
74
|
-
function
|
75
|
+
function Ft(e) {
|
75
76
|
return Array.from(e.childNodes);
|
76
77
|
}
|
77
|
-
function
|
78
|
+
function jt(e, t) {
|
78
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
79
80
|
t);
|
80
81
|
}
|
81
|
-
function
|
82
|
+
function Vt(e) {
|
82
83
|
const t = {};
|
83
84
|
return e.childNodes.forEach(
|
84
85
|
/** @param {Element} node */
|
@@ -93,17 +94,17 @@ function Q(e) {
|
|
93
94
|
}
|
94
95
|
const U = [], J = [];
|
95
96
|
let G = [];
|
96
|
-
const
|
97
|
+
const De = [], kt = /* @__PURE__ */ Promise.resolve();
|
97
98
|
let ye = !1;
|
98
|
-
function
|
99
|
-
ye || (ye = !0,
|
99
|
+
function Xt() {
|
100
|
+
ye || (ye = !0, kt.then(S));
|
100
101
|
}
|
101
102
|
function _e(e) {
|
102
103
|
G.push(e);
|
103
104
|
}
|
104
105
|
const pe = /* @__PURE__ */ new Set();
|
105
106
|
let R = 0;
|
106
|
-
function
|
107
|
+
function S() {
|
107
108
|
if (R !== 0)
|
108
109
|
return;
|
109
110
|
const e = Le;
|
@@ -111,52 +112,53 @@ function A() {
|
|
111
112
|
try {
|
112
113
|
for (; R < U.length; ) {
|
113
114
|
const t = U[R];
|
114
|
-
R++, Q(t),
|
115
|
+
R++, Q(t), zt(t.$$);
|
115
116
|
}
|
116
117
|
} catch (t) {
|
117
118
|
throw U.length = 0, R = 0, t;
|
118
119
|
}
|
119
|
-
for (Q(null), U.length = 0, R = 0; J.length; )
|
120
|
+
for (Q(null), U.length = 0, R = 0; J.length; )
|
121
|
+
J.pop()();
|
120
122
|
for (let t = 0; t < G.length; t += 1) {
|
121
123
|
const r = G[t];
|
122
124
|
pe.has(r) || (pe.add(r), r());
|
123
125
|
}
|
124
126
|
G.length = 0;
|
125
127
|
} while (U.length);
|
126
|
-
for (;
|
127
|
-
|
128
|
+
for (; De.length; )
|
129
|
+
De.pop()();
|
128
130
|
ye = !1, pe.clear(), Q(e);
|
129
131
|
}
|
130
|
-
function
|
132
|
+
function zt(e) {
|
131
133
|
if (e.fragment !== null) {
|
132
134
|
e.update(), K(e.before_update);
|
133
135
|
const t = e.dirty;
|
134
136
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
135
137
|
}
|
136
138
|
}
|
137
|
-
function
|
139
|
+
function Wt(e) {
|
138
140
|
const t = [], r = [];
|
139
141
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
140
142
|
}
|
141
|
-
const
|
142
|
-
function
|
143
|
-
e && e.i && (
|
143
|
+
const Zt = /* @__PURE__ */ new Set();
|
144
|
+
function Qt(e, t) {
|
145
|
+
e && e.i && (Zt.delete(e), e.i(t));
|
144
146
|
}
|
145
|
-
function
|
147
|
+
function Jt(e, t, r) {
|
146
148
|
const { fragment: n, after_update: i } = e.$$;
|
147
149
|
n && n.m(t, r), _e(() => {
|
148
|
-
const s = e.$$.on_mount.map(
|
150
|
+
const s = e.$$.on_mount.map(rt).filter(Ie);
|
149
151
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
150
152
|
}), i.forEach(_e);
|
151
153
|
}
|
152
|
-
function
|
154
|
+
function qt(e, t) {
|
153
155
|
const r = e.$$;
|
154
|
-
r.fragment !== null && (
|
156
|
+
r.fragment !== null && (Wt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
155
157
|
}
|
156
|
-
function
|
157
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
158
|
+
function Yt(e, t) {
|
159
|
+
e.$$.dirty[0] === -1 && (U.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
158
160
|
}
|
159
|
-
function
|
161
|
+
function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
160
162
|
const l = Le;
|
161
163
|
Q(e);
|
162
164
|
const h = e.$$ = {
|
@@ -166,7 +168,7 @@ function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
166
168
|
props: s,
|
167
169
|
update: T,
|
168
170
|
not_equal: i,
|
169
|
-
bound:
|
171
|
+
bound: Ge(),
|
170
172
|
// lifecycle
|
171
173
|
on_mount: [],
|
172
174
|
on_destroy: [],
|
@@ -175,7 +177,7 @@ function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
175
177
|
after_update: [],
|
176
178
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
177
179
|
// everything else
|
178
|
-
callbacks:
|
180
|
+
callbacks: Ge(),
|
179
181
|
dirty: o,
|
180
182
|
skip_bound: !1,
|
181
183
|
root: t.target || l.$$.root
|
@@ -184,19 +186,19 @@ function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
184
186
|
let u = !1;
|
185
187
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
186
188
|
const g = x.length ? x[0] : f;
|
187
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u &&
|
189
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u && Yt(e, c)), f;
|
188
190
|
}) : [], h.update(), u = !0, K(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
189
191
|
if (t.hydrate) {
|
190
|
-
const c =
|
192
|
+
const c = Ft(t.target);
|
191
193
|
h.fragment && h.fragment.l(c), c.forEach(we);
|
192
194
|
} else
|
193
195
|
h.fragment && h.fragment.c();
|
194
|
-
t.intro &&
|
196
|
+
t.intro && Qt(e.$$.fragment), Jt(e, t.target, t.anchor), S();
|
195
197
|
}
|
196
198
|
Q(l);
|
197
199
|
}
|
198
|
-
let
|
199
|
-
typeof HTMLElement == "function" && (
|
200
|
+
let ot;
|
201
|
+
typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
200
202
|
/** The Svelte component constructor */
|
201
203
|
$$ctor;
|
202
204
|
/** Slots */
|
@@ -245,7 +247,7 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
245
247
|
* @param {HTMLElement} [anchor]
|
246
248
|
*/
|
247
249
|
m: function(l, h) {
|
248
|
-
|
250
|
+
st(l, s, h);
|
249
251
|
},
|
250
252
|
d: function(l) {
|
251
253
|
l && we(s);
|
@@ -255,7 +257,7 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
255
257
|
};
|
256
258
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
257
259
|
return;
|
258
|
-
const t = {}, r =
|
260
|
+
const t = {}, r = Vt(this);
|
259
261
|
for (const i of this.$$s)
|
260
262
|
i in r && (t[i] = [e(i)]);
|
261
263
|
for (const i of this.attributes) {
|
@@ -342,8 +344,8 @@ function ne(e, t, r, n) {
|
|
342
344
|
return t;
|
343
345
|
}
|
344
346
|
}
|
345
|
-
function
|
346
|
-
let a = class extends
|
347
|
+
function er(e, t, r, n, i, s) {
|
348
|
+
let a = class extends ot {
|
347
349
|
constructor() {
|
348
350
|
super(e, r, i), this.$$p_d = t;
|
349
351
|
}
|
@@ -371,7 +373,7 @@ function Yt(e, t, r, n, i, s) {
|
|
371
373
|
}), e.element = /** @type {any} */
|
372
374
|
a, a;
|
373
375
|
}
|
374
|
-
class
|
376
|
+
class tr {
|
375
377
|
/**
|
376
378
|
* ### PRIVATE API
|
377
379
|
*
|
@@ -390,7 +392,7 @@ class Kt {
|
|
390
392
|
$$set = void 0;
|
391
393
|
/** @returns {void} */
|
392
394
|
$destroy() {
|
393
|
-
|
395
|
+
qt(this, 1), this.$destroy = T;
|
394
396
|
}
|
395
397
|
/**
|
396
398
|
* @template {Extract<keyof Events, string>} K
|
@@ -412,13 +414,13 @@ class Kt {
|
|
412
414
|
* @returns {void}
|
413
415
|
*/
|
414
416
|
$set(t) {
|
415
|
-
this.$$set && !
|
417
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
416
418
|
}
|
417
419
|
}
|
418
|
-
const
|
419
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
420
|
+
const rr = "4";
|
421
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rr);
|
420
422
|
const $ = [];
|
421
|
-
function
|
423
|
+
function nr(e, t) {
|
422
424
|
return {
|
423
425
|
subscribe: he(e, t).subscribe
|
424
426
|
};
|
@@ -427,7 +429,7 @@ function he(e, t = T) {
|
|
427
429
|
let r;
|
428
430
|
const n = /* @__PURE__ */ new Set();
|
429
431
|
function i(o) {
|
430
|
-
if (
|
432
|
+
if (nt(e, o) && (e = o, r)) {
|
431
433
|
const l = !$.length;
|
432
434
|
for (const h of n)
|
433
435
|
h[1](), $.push(h, e);
|
@@ -454,7 +456,7 @@ function k(e, t, r) {
|
|
454
456
|
if (!i.every(Boolean))
|
455
457
|
throw new Error("derived() expects stores as input, got a falsy value");
|
456
458
|
const s = t.length < 2;
|
457
|
-
return
|
459
|
+
return nr(r, (a, o) => {
|
458
460
|
let l = !1;
|
459
461
|
const h = [];
|
460
462
|
let u = 0, c = T;
|
@@ -465,7 +467,7 @@ function k(e, t, r) {
|
|
465
467
|
const g = t(n ? h[0] : h, a, o);
|
466
468
|
s ? a(g) : c = Ie(g) ? g : T;
|
467
469
|
}, x = i.map(
|
468
|
-
(g, y) =>
|
470
|
+
(g, y) => it(
|
469
471
|
g,
|
470
472
|
(H) => {
|
471
473
|
h[y] = H, u &= ~(1 << y), l && f();
|
@@ -480,70 +482,70 @@ function k(e, t, r) {
|
|
480
482
|
};
|
481
483
|
});
|
482
484
|
}
|
483
|
-
function
|
485
|
+
function ir(e) {
|
484
486
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
485
487
|
}
|
486
|
-
var
|
487
|
-
return
|
488
|
+
var sr = function(t) {
|
489
|
+
return or(t) && !ar(t);
|
488
490
|
};
|
489
|
-
function
|
491
|
+
function or(e) {
|
490
492
|
return !!e && typeof e == "object";
|
491
493
|
}
|
492
|
-
function
|
494
|
+
function ar(e) {
|
493
495
|
var t = Object.prototype.toString.call(e);
|
494
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
496
|
+
return t === "[object RegExp]" || t === "[object Date]" || lr(e);
|
495
497
|
}
|
496
|
-
var
|
497
|
-
function
|
498
|
-
return e.$$typeof ===
|
498
|
+
var hr = typeof Symbol == "function" && Symbol.for, ur = hr ? Symbol.for("react.element") : 60103;
|
499
|
+
function lr(e) {
|
500
|
+
return e.$$typeof === ur;
|
499
501
|
}
|
500
|
-
function
|
502
|
+
function fr(e) {
|
501
503
|
return Array.isArray(e) ? [] : {};
|
502
504
|
}
|
503
505
|
function q(e, t) {
|
504
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
506
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(fr(e), e, t) : e;
|
505
507
|
}
|
506
|
-
function
|
508
|
+
function cr(e, t, r) {
|
507
509
|
return e.concat(t).map(function(n) {
|
508
510
|
return q(n, r);
|
509
511
|
});
|
510
512
|
}
|
511
|
-
function
|
513
|
+
function pr(e, t) {
|
512
514
|
if (!t.customMerge)
|
513
515
|
return D;
|
514
516
|
var r = t.customMerge(e);
|
515
517
|
return typeof r == "function" ? r : D;
|
516
518
|
}
|
517
|
-
function
|
519
|
+
function mr(e) {
|
518
520
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
519
521
|
return Object.propertyIsEnumerable.call(e, t);
|
520
522
|
}) : [];
|
521
523
|
}
|
522
|
-
function
|
523
|
-
return Object.keys(e).concat(
|
524
|
+
function Fe(e) {
|
525
|
+
return Object.keys(e).concat(mr(e));
|
524
526
|
}
|
525
|
-
function
|
527
|
+
function at(e, t) {
|
526
528
|
try {
|
527
529
|
return t in e;
|
528
530
|
} catch {
|
529
531
|
return !1;
|
530
532
|
}
|
531
533
|
}
|
532
|
-
function
|
533
|
-
return
|
534
|
+
function br(e, t) {
|
535
|
+
return at(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
534
536
|
}
|
535
|
-
function
|
537
|
+
function dr(e, t, r) {
|
536
538
|
var n = {};
|
537
|
-
return r.isMergeableObject(e) &&
|
539
|
+
return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
|
538
540
|
n[i] = q(e[i], r);
|
539
|
-
}),
|
540
|
-
|
541
|
+
}), Fe(t).forEach(function(i) {
|
542
|
+
br(e, i) || (at(e, i) && r.isMergeableObject(t[i]) ? n[i] = pr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
541
543
|
}), n;
|
542
544
|
}
|
543
545
|
function D(e, t, r) {
|
544
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
546
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = q;
|
545
547
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
546
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
548
|
+
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : q(t, r);
|
547
549
|
}
|
548
550
|
D.all = function(t, r) {
|
549
551
|
if (!Array.isArray(t))
|
@@ -552,13 +554,28 @@ D.all = function(t, r) {
|
|
552
554
|
return D(n, i, r);
|
553
555
|
}, {});
|
554
556
|
};
|
555
|
-
var
|
556
|
-
const
|
557
|
+
var gr = D, xr = gr;
|
558
|
+
const Er = /* @__PURE__ */ ir(xr);
|
559
|
+
/*! *****************************************************************************
|
560
|
+
Copyright (c) Microsoft Corporation.
|
561
|
+
|
562
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
563
|
+
purpose with or without fee is hereby granted.
|
564
|
+
|
565
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
566
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
567
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
568
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
569
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
570
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
571
|
+
PERFORMANCE OF THIS SOFTWARE.
|
572
|
+
***************************************************************************** */
|
557
573
|
var ve = function(e, t) {
|
558
574
|
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
559
575
|
r.__proto__ = n;
|
560
576
|
} || function(r, n) {
|
561
|
-
for (var i in n)
|
577
|
+
for (var i in n)
|
578
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
562
579
|
}, ve(e, t);
|
563
580
|
};
|
564
581
|
function ue(e, t) {
|
@@ -574,72 +591,77 @@ var d = function() {
|
|
574
591
|
return d = Object.assign || function(t) {
|
575
592
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
576
593
|
r = arguments[n];
|
577
|
-
for (var s in r)
|
594
|
+
for (var s in r)
|
595
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
578
596
|
}
|
579
597
|
return t;
|
580
598
|
}, d.apply(this, arguments);
|
581
599
|
};
|
582
|
-
function
|
600
|
+
function yr(e, t) {
|
583
601
|
var r = {};
|
584
|
-
for (var n in e)
|
602
|
+
for (var n in e)
|
603
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
585
604
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
586
605
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
587
606
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
588
607
|
return r;
|
589
608
|
}
|
590
609
|
function me(e, t, r) {
|
591
|
-
if (
|
592
|
-
(
|
593
|
-
|
610
|
+
if (arguments.length === 2)
|
611
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
612
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
613
|
+
return e.concat(s || t);
|
594
614
|
}
|
595
615
|
function be(e, t) {
|
596
|
-
var r = t && t.cache ? t.cache :
|
616
|
+
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : vr;
|
597
617
|
return i(e, {
|
598
618
|
cache: r,
|
599
619
|
serializer: n
|
600
620
|
});
|
601
621
|
}
|
602
|
-
function
|
622
|
+
function _r(e) {
|
603
623
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
604
624
|
}
|
605
|
-
function
|
606
|
-
var i =
|
625
|
+
function ht(e, t, r, n) {
|
626
|
+
var i = _r(n) ? n : r(n), s = t.get(i);
|
607
627
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
608
628
|
}
|
609
|
-
function
|
629
|
+
function ut(e, t, r) {
|
610
630
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
611
631
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
612
632
|
}
|
613
|
-
function
|
633
|
+
function Ce(e, t, r, n, i) {
|
614
634
|
return r.bind(t, e, n, i);
|
615
635
|
}
|
616
|
-
function _r(e, t) {
|
617
|
-
var r = e.length === 1 ? yr : ot;
|
618
|
-
return at(e, this, r, t.cache.create(), t.serializer);
|
619
|
-
}
|
620
636
|
function vr(e, t) {
|
621
|
-
|
637
|
+
var r = e.length === 1 ? ht : ut;
|
638
|
+
return Ce(e, this, r, t.cache.create(), t.serializer);
|
639
|
+
}
|
640
|
+
function Hr(e, t) {
|
641
|
+
return Ce(e, this, ut, t.cache.create(), t.serializer);
|
622
642
|
}
|
623
|
-
|
643
|
+
function Tr(e, t) {
|
644
|
+
return Ce(e, this, ht, t.cache.create(), t.serializer);
|
645
|
+
}
|
646
|
+
var Br = function() {
|
624
647
|
return JSON.stringify(arguments);
|
625
|
-
}
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
}()
|
637
|
-
), Br = {
|
648
|
+
};
|
649
|
+
function Me() {
|
650
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
651
|
+
}
|
652
|
+
Me.prototype.get = function(e) {
|
653
|
+
return this.cache[e];
|
654
|
+
};
|
655
|
+
Me.prototype.set = function(e, t) {
|
656
|
+
this.cache[e] = t;
|
657
|
+
};
|
658
|
+
var Ar = {
|
638
659
|
create: function() {
|
639
|
-
return new
|
660
|
+
return new Me();
|
640
661
|
}
|
641
662
|
}, de = {
|
642
|
-
variadic:
|
663
|
+
variadic: Hr,
|
664
|
+
monadic: Tr
|
643
665
|
}, m;
|
644
666
|
(function(e) {
|
645
667
|
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";
|
@@ -652,43 +674,43 @@ var F;
|
|
652
674
|
(function(e) {
|
653
675
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
654
676
|
})(F || (F = {}));
|
655
|
-
function
|
677
|
+
function je(e) {
|
656
678
|
return e.type === E.literal;
|
657
679
|
}
|
658
680
|
function Sr(e) {
|
659
681
|
return e.type === E.argument;
|
660
682
|
}
|
661
|
-
function
|
683
|
+
function lt(e) {
|
662
684
|
return e.type === E.number;
|
663
685
|
}
|
664
|
-
function
|
686
|
+
function ft(e) {
|
665
687
|
return e.type === E.date;
|
666
688
|
}
|
667
|
-
function
|
689
|
+
function ct(e) {
|
668
690
|
return e.type === E.time;
|
669
691
|
}
|
670
|
-
function
|
692
|
+
function pt(e) {
|
671
693
|
return e.type === E.select;
|
672
694
|
}
|
673
|
-
function
|
695
|
+
function mt(e) {
|
674
696
|
return e.type === E.plural;
|
675
697
|
}
|
676
|
-
function
|
698
|
+
function Pr(e) {
|
677
699
|
return e.type === E.pound;
|
678
700
|
}
|
679
|
-
function
|
701
|
+
function bt(e) {
|
680
702
|
return e.type === E.tag;
|
681
703
|
}
|
682
|
-
function
|
704
|
+
function dt(e) {
|
683
705
|
return !!(e && typeof e == "object" && e.type === F.number);
|
684
706
|
}
|
685
707
|
function He(e) {
|
686
708
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
687
709
|
}
|
688
|
-
var
|
689
|
-
function
|
710
|
+
var gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
|
711
|
+
function Nr(e) {
|
690
712
|
var t = {};
|
691
|
-
return e.replace(
|
713
|
+
return e.replace(Or, function(r) {
|
692
714
|
var n = r.length;
|
693
715
|
switch (r[0]) {
|
694
716
|
case "G":
|
@@ -777,11 +799,11 @@ function Or(e) {
|
|
777
799
|
return "";
|
778
800
|
}), t;
|
779
801
|
}
|
780
|
-
var
|
781
|
-
function
|
802
|
+
var Ir = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
803
|
+
function wr(e) {
|
782
804
|
if (e.length === 0)
|
783
805
|
throw new Error("Number skeleton cannot be empty");
|
784
|
-
for (var t = e.split(
|
806
|
+
for (var t = e.split(Ir).filter(function(f) {
|
785
807
|
return f.length > 0;
|
786
808
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
787
809
|
var s = i[n], a = s.split("/");
|
@@ -796,17 +818,17 @@ function Ir(e) {
|
|
796
818
|
}
|
797
819
|
return r;
|
798
820
|
}
|
799
|
-
function
|
821
|
+
function Lr(e) {
|
800
822
|
return e.replace(/^(.*?)-/, "");
|
801
823
|
}
|
802
|
-
var
|
803
|
-
function
|
824
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, Et = /^(0+)$/;
|
825
|
+
function ke(e) {
|
804
826
|
var t = {};
|
805
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
827
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xt, function(r, n, i) {
|
806
828
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
807
829
|
}), t;
|
808
830
|
}
|
809
|
-
function
|
831
|
+
function yt(e) {
|
810
832
|
switch (e) {
|
811
833
|
case "sign-auto":
|
812
834
|
return {
|
@@ -846,7 +868,7 @@ function xt(e) {
|
|
846
868
|
};
|
847
869
|
}
|
848
870
|
}
|
849
|
-
function
|
871
|
+
function Mr(e) {
|
850
872
|
var t;
|
851
873
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
852
874
|
notation: "engineering"
|
@@ -854,17 +876,17 @@ function Cr(e) {
|
|
854
876
|
notation: "scientific"
|
855
877
|
}, e = e.slice(1)), t) {
|
856
878
|
var r = e.slice(0, 2);
|
857
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
879
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Et.test(e))
|
858
880
|
throw new Error("Malformed concise eng/scientific notation");
|
859
881
|
t.minimumIntegerDigits = e.length;
|
860
882
|
}
|
861
883
|
return t;
|
862
884
|
}
|
863
|
-
function
|
864
|
-
var t = {}, r =
|
885
|
+
function Xe(e) {
|
886
|
+
var t = {}, r = yt(e);
|
865
887
|
return r || t;
|
866
888
|
}
|
867
|
-
function
|
889
|
+
function Rr(e) {
|
868
890
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
869
891
|
var i = n[r];
|
870
892
|
switch (i.stem) {
|
@@ -888,7 +910,7 @@ function Mr(e) {
|
|
888
910
|
continue;
|
889
911
|
case "measure-unit":
|
890
912
|
case "unit":
|
891
|
-
t.style = "unit", t.unit =
|
913
|
+
t.style = "unit", t.unit = Lr(i.options[0]);
|
892
914
|
continue;
|
893
915
|
case "compact-short":
|
894
916
|
case "K":
|
@@ -900,12 +922,12 @@ function Mr(e) {
|
|
900
922
|
continue;
|
901
923
|
case "scientific":
|
902
924
|
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
903
|
-
return d(d({}, l),
|
925
|
+
return d(d({}, l), Xe(h));
|
904
926
|
}, {}));
|
905
927
|
continue;
|
906
928
|
case "engineering":
|
907
929
|
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
908
|
-
return d(d({}, l),
|
930
|
+
return d(d({}, l), Xe(h));
|
909
931
|
}, {}));
|
910
932
|
continue;
|
911
933
|
case "notation-simple":
|
@@ -950,7 +972,7 @@ function Mr(e) {
|
|
950
972
|
case "integer-width":
|
951
973
|
if (i.options.length > 1)
|
952
974
|
throw new RangeError("integer-width stems only accept a single optional option");
|
953
|
-
i.options[0].replace(
|
975
|
+
i.options[0].replace(Cr, function(l, h, u, c, f, x) {
|
954
976
|
if (h)
|
955
977
|
t.minimumIntegerDigits = u.length;
|
956
978
|
else {
|
@@ -963,27 +985,27 @@ function Mr(e) {
|
|
963
985
|
});
|
964
986
|
continue;
|
965
987
|
}
|
966
|
-
if (
|
988
|
+
if (Et.test(i.stem)) {
|
967
989
|
t.minimumIntegerDigits = i.stem.length;
|
968
990
|
continue;
|
969
991
|
}
|
970
|
-
if (
|
992
|
+
if (Ve.test(i.stem)) {
|
971
993
|
if (i.options.length > 1)
|
972
994
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
973
|
-
i.stem.replace(
|
995
|
+
i.stem.replace(Ve, function(l, h, u, c, f, x) {
|
974
996
|
return u === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
975
997
|
});
|
976
998
|
var s = i.options[0];
|
977
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
999
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), ke(s)));
|
978
1000
|
continue;
|
979
1001
|
}
|
980
|
-
if (
|
981
|
-
t = d(d({}, t),
|
1002
|
+
if (xt.test(i.stem)) {
|
1003
|
+
t = d(d({}, t), ke(i.stem));
|
982
1004
|
continue;
|
983
1005
|
}
|
984
|
-
var a =
|
1006
|
+
var a = yt(i.stem);
|
985
1007
|
a && (t = d(d({}, t), a));
|
986
|
-
var o =
|
1008
|
+
var o = Mr(i.stem);
|
987
1009
|
o && (t = d(d({}, t), o));
|
988
1010
|
}
|
989
1011
|
return t;
|
@@ -2403,22 +2425,23 @@ var te = {
|
|
2403
2425
|
"h"
|
2404
2426
|
]
|
2405
2427
|
};
|
2406
|
-
function
|
2428
|
+
function $r(e, t) {
|
2407
2429
|
for (var r = "", n = 0; n < e.length; n++) {
|
2408
2430
|
var i = e.charAt(n);
|
2409
2431
|
if (i === "j") {
|
2410
2432
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2411
2433
|
s++, n++;
|
2412
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h =
|
2434
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = Ur(t);
|
2413
2435
|
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
2414
2436
|
r += l;
|
2415
2437
|
for (; a-- > 0; )
|
2416
2438
|
r = h + r;
|
2417
|
-
} else
|
2439
|
+
} else
|
2440
|
+
i === "J" ? r += "H" : r += i;
|
2418
2441
|
}
|
2419
2442
|
return r;
|
2420
2443
|
}
|
2421
|
-
function
|
2444
|
+
function Ur(e) {
|
2422
2445
|
var t = e.hourCycle;
|
2423
2446
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2424
2447
|
e.hourCycles && // @ts-ignore
|
@@ -2440,20 +2463,20 @@ function $r(e) {
|
|
2440
2463
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2441
2464
|
return i[0];
|
2442
2465
|
}
|
2443
|
-
var ge,
|
2466
|
+
var ge, Gr = new RegExp("^".concat(gt.source, "*")), Dr = new RegExp("".concat(gt.source, "*$"));
|
2444
2467
|
function b(e, t) {
|
2445
2468
|
return { start: e, end: t };
|
2446
2469
|
}
|
2447
|
-
var
|
2470
|
+
var Fr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, Vr = !!Object.fromEntries, kr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, Zr = Wr ? Number.isSafeInteger : function(e) {
|
2448
2471
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2449
2472
|
}, Te = !0;
|
2450
2473
|
try {
|
2451
|
-
var
|
2452
|
-
Te = ((ge =
|
2474
|
+
var Qr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2475
|
+
Te = ((ge = Qr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2453
2476
|
} catch {
|
2454
2477
|
Te = !1;
|
2455
2478
|
}
|
2456
|
-
var
|
2479
|
+
var ze = Fr ? (
|
2457
2480
|
// Native
|
2458
2481
|
function(t, r, n) {
|
2459
2482
|
return t.startsWith(r, n);
|
@@ -2463,7 +2486,7 @@ var ke = Dr ? (
|
|
2463
2486
|
function(t, r, n) {
|
2464
2487
|
return t.slice(n, n + r.length) === r;
|
2465
2488
|
}
|
2466
|
-
), Be =
|
2489
|
+
), Be = jr ? String.fromCodePoint : (
|
2467
2490
|
// IE11
|
2468
2491
|
function() {
|
2469
2492
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2475,9 +2498,9 @@ var ke = Dr ? (
|
|
2475
2498
|
}
|
2476
2499
|
return n;
|
2477
2500
|
}
|
2478
|
-
),
|
2501
|
+
), We = (
|
2479
2502
|
// native
|
2480
|
-
|
2503
|
+
Vr ? Object.fromEntries : (
|
2481
2504
|
// Ponyfill
|
2482
2505
|
function(t) {
|
2483
2506
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2487,7 +2510,7 @@ var ke = Dr ? (
|
|
2487
2510
|
return r;
|
2488
2511
|
}
|
2489
2512
|
)
|
2490
|
-
),
|
2513
|
+
), _t = kr ? (
|
2491
2514
|
// Native
|
2492
2515
|
function(t, r) {
|
2493
2516
|
return t.codePointAt(r);
|
@@ -2501,7 +2524,7 @@ var ke = Dr ? (
|
|
2501
2524
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2502
2525
|
}
|
2503
2526
|
}
|
2504
|
-
),
|
2527
|
+
), Jr = Xr ? (
|
2505
2528
|
// Native
|
2506
2529
|
function(t) {
|
2507
2530
|
return t.trimStart();
|
@@ -2509,9 +2532,9 @@ var ke = Dr ? (
|
|
2509
2532
|
) : (
|
2510
2533
|
// Ponyfill
|
2511
2534
|
function(t) {
|
2512
|
-
return t.replace(
|
2535
|
+
return t.replace(Gr, "");
|
2513
2536
|
}
|
2514
|
-
),
|
2537
|
+
), qr = zr ? (
|
2515
2538
|
// Native
|
2516
2539
|
function(t) {
|
2517
2540
|
return t.trimEnd();
|
@@ -2519,32 +2542,32 @@ var ke = Dr ? (
|
|
2519
2542
|
) : (
|
2520
2543
|
// Ponyfill
|
2521
2544
|
function(t) {
|
2522
|
-
return t.replace(
|
2545
|
+
return t.replace(Dr, "");
|
2523
2546
|
}
|
2524
2547
|
);
|
2525
|
-
function
|
2548
|
+
function vt(e, t) {
|
2526
2549
|
return new RegExp(e, t);
|
2527
2550
|
}
|
2528
|
-
var
|
2551
|
+
var Ae;
|
2529
2552
|
if (Te) {
|
2530
|
-
var
|
2531
|
-
|
2553
|
+
var Ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2554
|
+
Ae = function(t, r) {
|
2532
2555
|
var n;
|
2533
|
-
|
2534
|
-
var i =
|
2556
|
+
Ze.lastIndex = r;
|
2557
|
+
var i = Ze.exec(t);
|
2535
2558
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2536
2559
|
};
|
2537
2560
|
} else
|
2538
|
-
|
2561
|
+
Ae = function(t, r) {
|
2539
2562
|
for (var n = []; ; ) {
|
2540
|
-
var i =
|
2541
|
-
if (i === void 0 ||
|
2563
|
+
var i = _t(t, r);
|
2564
|
+
if (i === void 0 || Ht(i) || tn(i))
|
2542
2565
|
break;
|
2543
2566
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2544
2567
|
}
|
2545
2568
|
return Be.apply(void 0, n);
|
2546
2569
|
};
|
2547
|
-
var
|
2570
|
+
var Yr = (
|
2548
2571
|
/** @class */
|
2549
2572
|
function() {
|
2550
2573
|
function e(t, r) {
|
@@ -2575,7 +2598,7 @@ var qr = (
|
|
2575
2598
|
if (n)
|
2576
2599
|
break;
|
2577
2600
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2578
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2601
|
+
} else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
|
2579
2602
|
var a = this.parseTag(t, r);
|
2580
2603
|
if (a.err)
|
2581
2604
|
return a;
|
@@ -2608,7 +2631,7 @@ var qr = (
|
|
2608
2631
|
return s;
|
2609
2632
|
var a = s.val, o = this.clonePosition();
|
2610
2633
|
if (this.bumpIf("</")) {
|
2611
|
-
if (this.isEOF() || !
|
2634
|
+
if (this.isEOF() || !Se(this.char()))
|
2612
2635
|
return this.error(m.INVALID_TAG, b(o, this.clonePosition()));
|
2613
2636
|
var l = this.clonePosition(), h = this.parseTagName();
|
2614
2637
|
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -2626,7 +2649,7 @@ var qr = (
|
|
2626
2649
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2627
2650
|
}, e.prototype.parseTagName = function() {
|
2628
2651
|
var t = this.offset();
|
2629
|
-
for (this.bump(); !this.isEOF() &&
|
2652
|
+
for (this.bump(); !this.isEOF() && en(this.char()); )
|
2630
2653
|
this.bump();
|
2631
2654
|
return this.message.slice(t, this.offset());
|
2632
2655
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2655,7 +2678,7 @@ var qr = (
|
|
2655
2678
|
};
|
2656
2679
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2657
2680
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2658
|
-
!
|
2681
|
+
!Kr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2659
2682
|
}, e.prototype.tryParseQuote = function(t) {
|
2660
2683
|
if (this.isEOF() || this.char() !== 39)
|
2661
2684
|
return null;
|
@@ -2723,7 +2746,7 @@ var qr = (
|
|
2723
2746
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2724
2747
|
}
|
2725
2748
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2726
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2749
|
+
var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
|
2727
2750
|
this.bumpTo(i);
|
2728
2751
|
var s = this.clonePosition(), a = b(t, s);
|
2729
2752
|
return { value: n, location: a };
|
@@ -2742,7 +2765,7 @@ var qr = (
|
|
2742
2765
|
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2743
2766
|
if (c.err)
|
2744
2767
|
return c;
|
2745
|
-
var f =
|
2768
|
+
var f = qr(c.val);
|
2746
2769
|
if (f.length === 0)
|
2747
2770
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2748
2771
|
var x = b(u, this.clonePosition());
|
@@ -2752,8 +2775,8 @@ var qr = (
|
|
2752
2775
|
if (g.err)
|
2753
2776
|
return g;
|
2754
2777
|
var y = b(i, this.clonePosition());
|
2755
|
-
if (h &&
|
2756
|
-
var H =
|
2778
|
+
if (h && ze(h?.style, "::", 0)) {
|
2779
|
+
var H = Jr(h.style.slice(2));
|
2757
2780
|
if (o === "number") {
|
2758
2781
|
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2759
2782
|
return c.err ? c : {
|
@@ -2764,15 +2787,15 @@ var qr = (
|
|
2764
2787
|
if (H.length === 0)
|
2765
2788
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2766
2789
|
var B = H;
|
2767
|
-
this.locale && (B =
|
2790
|
+
this.locale && (B = $r(H, this.locale));
|
2768
2791
|
var f = {
|
2769
2792
|
type: F.dateTime,
|
2770
2793
|
pattern: B,
|
2771
2794
|
location: h.styleLocation,
|
2772
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2773
|
-
},
|
2795
|
+
parsedOptions: this.shouldParseSkeletons ? Nr(B) : {}
|
2796
|
+
}, A = o === "date" ? E.date : E.time;
|
2774
2797
|
return {
|
2775
|
-
val: { type:
|
2798
|
+
val: { type: A, value: n, location: y, style: f },
|
2776
2799
|
err: null
|
2777
2800
|
};
|
2778
2801
|
}
|
@@ -2815,7 +2838,7 @@ var qr = (
|
|
2815
2838
|
val: {
|
2816
2839
|
type: E.select,
|
2817
2840
|
value: n,
|
2818
|
-
options:
|
2841
|
+
options: We(M.val),
|
2819
2842
|
location: ee
|
2820
2843
|
},
|
2821
2844
|
err: null
|
@@ -2823,7 +2846,7 @@ var qr = (
|
|
2823
2846
|
val: {
|
2824
2847
|
type: E.plural,
|
2825
2848
|
value: n,
|
2826
|
-
options:
|
2849
|
+
options: We(M.val),
|
2827
2850
|
offset: P,
|
2828
2851
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2829
2852
|
location: ee
|
@@ -2874,7 +2897,7 @@ var qr = (
|
|
2874
2897
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2875
2898
|
var n = [];
|
2876
2899
|
try {
|
2877
|
-
n =
|
2900
|
+
n = wr(t);
|
2878
2901
|
} catch {
|
2879
2902
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2880
2903
|
}
|
@@ -2883,7 +2906,7 @@ var qr = (
|
|
2883
2906
|
type: F.number,
|
2884
2907
|
tokens: n,
|
2885
2908
|
location: r,
|
2886
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2909
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
|
2887
2910
|
},
|
2888
2911
|
err: null
|
2889
2912
|
};
|
@@ -2931,7 +2954,7 @@ var qr = (
|
|
2931
2954
|
break;
|
2932
2955
|
}
|
2933
2956
|
var l = b(i, this.clonePosition());
|
2934
|
-
return s ? (a *= n,
|
2957
|
+
return s ? (a *= n, Zr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2935
2958
|
}, e.prototype.offset = function() {
|
2936
2959
|
return this.position.offset;
|
2937
2960
|
}, e.prototype.isEOF = function() {
|
@@ -2946,7 +2969,7 @@ var qr = (
|
|
2946
2969
|
var t = this.position.offset;
|
2947
2970
|
if (t >= this.message.length)
|
2948
2971
|
throw Error("out of bound");
|
2949
|
-
var r =
|
2972
|
+
var r = _t(this.message, t);
|
2950
2973
|
if (r === void 0)
|
2951
2974
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2952
2975
|
return r;
|
@@ -2965,7 +2988,7 @@ var qr = (
|
|
2965
2988
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
2966
2989
|
}
|
2967
2990
|
}, e.prototype.bumpIf = function(t) {
|
2968
|
-
if (
|
2991
|
+
if (ze(this.message, t, this.offset())) {
|
2969
2992
|
for (var r = 0; r < t.length; r++)
|
2970
2993
|
this.bump();
|
2971
2994
|
return !0;
|
@@ -2987,7 +3010,7 @@ var qr = (
|
|
2987
3010
|
break;
|
2988
3011
|
}
|
2989
3012
|
}, e.prototype.bumpSpace = function() {
|
2990
|
-
for (; !this.isEOF() &&
|
3013
|
+
for (; !this.isEOF() && Ht(this.char()); )
|
2991
3014
|
this.bump();
|
2992
3015
|
}, e.prototype.peek = function() {
|
2993
3016
|
if (this.isEOF())
|
@@ -2997,32 +3020,33 @@ var qr = (
|
|
2997
3020
|
}, e;
|
2998
3021
|
}()
|
2999
3022
|
);
|
3000
|
-
function
|
3023
|
+
function Se(e) {
|
3001
3024
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3002
3025
|
}
|
3003
|
-
function Yr(e) {
|
3004
|
-
return Ae(e) || e === 47;
|
3005
|
-
}
|
3006
3026
|
function Kr(e) {
|
3027
|
+
return Se(e) || e === 47;
|
3028
|
+
}
|
3029
|
+
function en(e) {
|
3007
3030
|
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;
|
3008
3031
|
}
|
3009
|
-
function
|
3032
|
+
function Ht(e) {
|
3010
3033
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3011
3034
|
}
|
3012
|
-
function
|
3035
|
+
function tn(e) {
|
3013
3036
|
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;
|
3014
3037
|
}
|
3015
3038
|
function Pe(e) {
|
3016
3039
|
e.forEach(function(t) {
|
3017
|
-
if (delete t.location,
|
3040
|
+
if (delete t.location, pt(t) || mt(t))
|
3018
3041
|
for (var r in t.options)
|
3019
3042
|
delete t.options[r].location, Pe(t.options[r].value);
|
3020
|
-
else
|
3043
|
+
else
|
3044
|
+
lt(t) && dt(t.style) || (ft(t) || ct(t)) && He(t.style) ? delete t.style.location : bt(t) && Pe(t.children);
|
3021
3045
|
});
|
3022
3046
|
}
|
3023
|
-
function
|
3047
|
+
function rn(e, t) {
|
3024
3048
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3025
|
-
var r = new
|
3049
|
+
var r = new Yr(e, t).parse();
|
3026
3050
|
if (r.err) {
|
3027
3051
|
var n = SyntaxError(m[r.err.kind]);
|
3028
3052
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3045,7 +3069,7 @@ var le = (
|
|
3045
3069
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3046
3070
|
}, t;
|
3047
3071
|
}(Error)
|
3048
|
-
),
|
3072
|
+
), Qe = (
|
3049
3073
|
/** @class */
|
3050
3074
|
function(e) {
|
3051
3075
|
ue(t, e);
|
@@ -3054,7 +3078,7 @@ var le = (
|
|
3054
3078
|
}
|
3055
3079
|
return t;
|
3056
3080
|
}(le)
|
3057
|
-
),
|
3081
|
+
), nn = (
|
3058
3082
|
/** @class */
|
3059
3083
|
function(e) {
|
3060
3084
|
ue(t, e);
|
@@ -3063,7 +3087,7 @@ var le = (
|
|
3063
3087
|
}
|
3064
3088
|
return t;
|
3065
3089
|
}(le)
|
3066
|
-
),
|
3090
|
+
), sn = (
|
3067
3091
|
/** @class */
|
3068
3092
|
function(e) {
|
3069
3093
|
ue(t, e);
|
@@ -3076,17 +3100,17 @@ var le = (
|
|
3076
3100
|
(function(e) {
|
3077
3101
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3078
3102
|
})(_ || (_ = {}));
|
3079
|
-
function
|
3103
|
+
function on(e) {
|
3080
3104
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3081
3105
|
var n = t[t.length - 1];
|
3082
3106
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3083
3107
|
}, []);
|
3084
3108
|
}
|
3085
|
-
function
|
3109
|
+
function an(e) {
|
3086
3110
|
return typeof e == "function";
|
3087
3111
|
}
|
3088
3112
|
function ie(e, t, r, n, i, s, a) {
|
3089
|
-
if (e.length === 1 &&
|
3113
|
+
if (e.length === 1 && je(e[0]))
|
3090
3114
|
return [
|
3091
3115
|
{
|
3092
3116
|
type: _.literal,
|
@@ -3095,14 +3119,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3095
3119
|
];
|
3096
3120
|
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
3097
3121
|
var u = h[l];
|
3098
|
-
if (
|
3122
|
+
if (je(u)) {
|
3099
3123
|
o.push({
|
3100
3124
|
type: _.literal,
|
3101
3125
|
value: u.value
|
3102
3126
|
});
|
3103
3127
|
continue;
|
3104
3128
|
}
|
3105
|
-
if (
|
3129
|
+
if (Pr(u)) {
|
3106
3130
|
typeof s == "number" && o.push({
|
3107
3131
|
type: _.literal,
|
3108
3132
|
value: r.getNumberFormat(t).format(s)
|
@@ -3111,7 +3135,7 @@ function ie(e, t, r, n, i, s, a) {
|
|
3111
3135
|
}
|
3112
3136
|
var c = u.value;
|
3113
3137
|
if (!(i && c in i))
|
3114
|
-
throw new
|
3138
|
+
throw new sn(c, a);
|
3115
3139
|
var f = i[c];
|
3116
3140
|
if (Sr(u)) {
|
3117
3141
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
@@ -3120,7 +3144,7 @@ function ie(e, t, r, n, i, s, a) {
|
|
3120
3144
|
});
|
3121
3145
|
continue;
|
3122
3146
|
}
|
3123
|
-
if (
|
3147
|
+
if (ft(u)) {
|
3124
3148
|
var x = typeof u.style == "string" ? n.date[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
|
3125
3149
|
o.push({
|
3126
3150
|
type: _.literal,
|
@@ -3128,7 +3152,7 @@ function ie(e, t, r, n, i, s, a) {
|
|
3128
3152
|
});
|
3129
3153
|
continue;
|
3130
3154
|
}
|
3131
|
-
if (
|
3155
|
+
if (ct(u)) {
|
3132
3156
|
var x = typeof u.style == "string" ? n.time[u.style] : He(u.style) ? u.style.parsedOptions : n.time.medium;
|
3133
3157
|
o.push({
|
3134
3158
|
type: _.literal,
|
@@ -3136,36 +3160,36 @@ function ie(e, t, r, n, i, s, a) {
|
|
3136
3160
|
});
|
3137
3161
|
continue;
|
3138
3162
|
}
|
3139
|
-
if (
|
3140
|
-
var x = typeof u.style == "string" ? n.number[u.style] :
|
3163
|
+
if (lt(u)) {
|
3164
|
+
var x = typeof u.style == "string" ? n.number[u.style] : dt(u.style) ? u.style.parsedOptions : void 0;
|
3141
3165
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3142
3166
|
type: _.literal,
|
3143
3167
|
value: r.getNumberFormat(t, x).format(f)
|
3144
3168
|
});
|
3145
3169
|
continue;
|
3146
3170
|
}
|
3147
|
-
if (
|
3171
|
+
if (bt(u)) {
|
3148
3172
|
var g = u.children, y = u.value, H = i[y];
|
3149
|
-
if (!
|
3150
|
-
throw new
|
3151
|
-
var B = ie(g, t, r, n, i, s),
|
3173
|
+
if (!an(H))
|
3174
|
+
throw new nn(y, "function", a);
|
3175
|
+
var B = ie(g, t, r, n, i, s), A = H(B.map(function(P) {
|
3152
3176
|
return P.value;
|
3153
3177
|
}));
|
3154
|
-
Array.isArray(
|
3178
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(P) {
|
3155
3179
|
return {
|
3156
3180
|
type: typeof P == "string" ? _.literal : _.object,
|
3157
3181
|
value: P
|
3158
3182
|
};
|
3159
3183
|
}));
|
3160
3184
|
}
|
3161
|
-
if (
|
3185
|
+
if (pt(u)) {
|
3162
3186
|
var v = u.options[f] || u.options.other;
|
3163
3187
|
if (!v)
|
3164
|
-
throw new
|
3188
|
+
throw new Qe(u.value, f, Object.keys(u.options), a);
|
3165
3189
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3166
3190
|
continue;
|
3167
3191
|
}
|
3168
|
-
if (
|
3192
|
+
if (mt(u)) {
|
3169
3193
|
var v = u.options["=".concat(f)];
|
3170
3194
|
if (!v) {
|
3171
3195
|
if (!Intl.PluralRules)
|
@@ -3176,21 +3200,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3176
3200
|
v = u.options[O] || u.options.other;
|
3177
3201
|
}
|
3178
3202
|
if (!v)
|
3179
|
-
throw new
|
3203
|
+
throw new Qe(u.value, f, Object.keys(u.options), a);
|
3180
3204
|
o.push.apply(o, ie(v.value, t, r, n, i, f - (u.offset || 0)));
|
3181
3205
|
continue;
|
3182
3206
|
}
|
3183
3207
|
}
|
3184
|
-
return
|
3208
|
+
return on(o);
|
3185
3209
|
}
|
3186
|
-
function
|
3210
|
+
function hn(e, t) {
|
3187
3211
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3188
3212
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3189
3213
|
}, {})) : e;
|
3190
3214
|
}
|
3191
|
-
function
|
3215
|
+
function un(e, t) {
|
3192
3216
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3193
|
-
return r[n] =
|
3217
|
+
return r[n] = hn(e[n], t[n]), r;
|
3194
3218
|
}, d({}, e)) : e;
|
3195
3219
|
}
|
3196
3220
|
function xe(e) {
|
@@ -3207,7 +3231,7 @@ function xe(e) {
|
|
3207
3231
|
}
|
3208
3232
|
};
|
3209
3233
|
}
|
3210
|
-
function
|
3234
|
+
function ln(e) {
|
3211
3235
|
return e === void 0 && (e = {
|
3212
3236
|
number: {},
|
3213
3237
|
dateTime: {},
|
@@ -3239,7 +3263,7 @@ function un(e) {
|
|
3239
3263
|
})
|
3240
3264
|
};
|
3241
3265
|
}
|
3242
|
-
var
|
3266
|
+
var fn = (
|
3243
3267
|
/** @class */
|
3244
3268
|
function() {
|
3245
3269
|
function e(t, r, n, i) {
|
@@ -3271,13 +3295,13 @@ var ln = (
|
|
3271
3295
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3272
3296
|
var a = i || {};
|
3273
3297
|
a.formatters;
|
3274
|
-
var o =
|
3298
|
+
var o = yr(a, ["formatters"]);
|
3275
3299
|
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
3276
3300
|
} else
|
3277
3301
|
this.ast = t;
|
3278
3302
|
if (!Array.isArray(this.ast))
|
3279
3303
|
throw new TypeError("A message must be provided as a String or AST.");
|
3280
|
-
this.formats =
|
3304
|
+
this.formats = un(e.formats, n), this.formatters = i && i.formatters || ln(this.formatterCache);
|
3281
3305
|
}
|
3282
3306
|
return Object.defineProperty(e, "defaultLocale", {
|
3283
3307
|
get: function() {
|
@@ -3290,7 +3314,7 @@ var ln = (
|
|
3290
3314
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3291
3315
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3292
3316
|
}
|
3293
|
-
}, e.__parse =
|
3317
|
+
}, e.__parse = rn, e.formats = {
|
3294
3318
|
number: {
|
3295
3319
|
integer: {
|
3296
3320
|
maximumFractionDigits: 0
|
@@ -3351,7 +3375,7 @@ var ln = (
|
|
3351
3375
|
}, e;
|
3352
3376
|
}()
|
3353
3377
|
);
|
3354
|
-
function
|
3378
|
+
function cn(e, t) {
|
3355
3379
|
if (t == null)
|
3356
3380
|
return;
|
3357
3381
|
if (t in e)
|
@@ -3372,60 +3396,60 @@ function fn(e, t) {
|
|
3372
3396
|
n = void 0;
|
3373
3397
|
return n;
|
3374
3398
|
}
|
3375
|
-
const N = {},
|
3399
|
+
const N = {}, pn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Tt = (e, t) => {
|
3376
3400
|
if (t == null)
|
3377
3401
|
return;
|
3378
3402
|
if (t in N && e in N[t])
|
3379
3403
|
return N[t][e];
|
3380
3404
|
const r = fe(t);
|
3381
3405
|
for (let n = 0; n < r.length; n++) {
|
3382
|
-
const i = r[n], s =
|
3406
|
+
const i = r[n], s = bn(i, e);
|
3383
3407
|
if (s)
|
3384
|
-
return
|
3408
|
+
return pn(e, t, s);
|
3385
3409
|
}
|
3386
3410
|
};
|
3387
|
-
let
|
3411
|
+
let Re;
|
3388
3412
|
const X = he({});
|
3389
|
-
function
|
3390
|
-
return
|
3413
|
+
function mn(e) {
|
3414
|
+
return Re[e] || null;
|
3391
3415
|
}
|
3392
|
-
function
|
3393
|
-
return e in
|
3416
|
+
function Bt(e) {
|
3417
|
+
return e in Re;
|
3394
3418
|
}
|
3395
|
-
function
|
3396
|
-
if (!
|
3419
|
+
function bn(e, t) {
|
3420
|
+
if (!Bt(e))
|
3397
3421
|
return null;
|
3398
|
-
const r =
|
3399
|
-
return
|
3422
|
+
const r = mn(e);
|
3423
|
+
return cn(r, t);
|
3400
3424
|
}
|
3401
|
-
function
|
3425
|
+
function dn(e) {
|
3402
3426
|
if (e == null)
|
3403
3427
|
return;
|
3404
3428
|
const t = fe(e);
|
3405
3429
|
for (let r = 0; r < t.length; r++) {
|
3406
3430
|
const n = t[r];
|
3407
|
-
if (
|
3431
|
+
if (Bt(n))
|
3408
3432
|
return n;
|
3409
3433
|
}
|
3410
3434
|
}
|
3411
|
-
function
|
3412
|
-
delete N[e], X.update((r) => (r[e] =
|
3435
|
+
function At(e, ...t) {
|
3436
|
+
delete N[e], X.update((r) => (r[e] = Er.all([r[e] || {}, ...t]), r));
|
3413
3437
|
}
|
3414
3438
|
k(
|
3415
3439
|
[X],
|
3416
3440
|
([e]) => Object.keys(e)
|
3417
3441
|
);
|
3418
|
-
X.subscribe((e) =>
|
3442
|
+
X.subscribe((e) => Re = e);
|
3419
3443
|
const se = {};
|
3420
|
-
function
|
3444
|
+
function gn(e, t) {
|
3421
3445
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3422
3446
|
}
|
3423
|
-
function
|
3447
|
+
function St(e) {
|
3424
3448
|
return se[e];
|
3425
3449
|
}
|
3426
|
-
function
|
3450
|
+
function xn(e) {
|
3427
3451
|
return fe(e).map((t) => {
|
3428
|
-
const r =
|
3452
|
+
const r = St(t);
|
3429
3453
|
return [t, r ? [...r] : []];
|
3430
3454
|
}).filter(([, t]) => t.length > 0);
|
3431
3455
|
}
|
@@ -3433,31 +3457,31 @@ function Oe(e) {
|
|
3433
3457
|
return e == null ? !1 : fe(e).some(
|
3434
3458
|
(t) => {
|
3435
3459
|
var r;
|
3436
|
-
return (r =
|
3460
|
+
return (r = St(t)) == null ? void 0 : r.size;
|
3437
3461
|
}
|
3438
3462
|
);
|
3439
3463
|
}
|
3440
|
-
function
|
3464
|
+
function En(e, t) {
|
3441
3465
|
return Promise.all(
|
3442
|
-
t.map((n) => (
|
3443
|
-
).then((n) =>
|
3466
|
+
t.map((n) => (gn(e, n), n().then((i) => i.default || i)))
|
3467
|
+
).then((n) => At(e, ...n));
|
3444
3468
|
}
|
3445
3469
|
const W = {};
|
3446
|
-
function
|
3470
|
+
function Pt(e) {
|
3447
3471
|
if (!Oe(e))
|
3448
3472
|
return e in W ? W[e] : Promise.resolve();
|
3449
|
-
const t =
|
3473
|
+
const t = xn(e);
|
3450
3474
|
return W[e] = Promise.all(
|
3451
3475
|
t.map(
|
3452
|
-
([r, n]) =>
|
3476
|
+
([r, n]) => En(r, n)
|
3453
3477
|
)
|
3454
3478
|
).then(() => {
|
3455
3479
|
if (Oe(e))
|
3456
|
-
return
|
3480
|
+
return Pt(e);
|
3457
3481
|
delete W[e];
|
3458
3482
|
}), W[e];
|
3459
3483
|
}
|
3460
|
-
const
|
3484
|
+
const yn = {
|
3461
3485
|
number: {
|
3462
3486
|
scientific: { notation: "scientific" },
|
3463
3487
|
engineering: { notation: "engineering" },
|
@@ -3486,34 +3510,34 @@ const En = {
|
|
3486
3510
|
timeZoneName: "short"
|
3487
3511
|
}
|
3488
3512
|
}
|
3489
|
-
},
|
3513
|
+
}, _n = {
|
3490
3514
|
fallbackLocale: null,
|
3491
3515
|
loadingDelay: 200,
|
3492
|
-
formats:
|
3516
|
+
formats: yn,
|
3493
3517
|
warnOnMissingMessages: !0,
|
3494
3518
|
handleMissingMessage: void 0,
|
3495
3519
|
ignoreTag: !0
|
3496
|
-
},
|
3520
|
+
}, vn = _n;
|
3497
3521
|
function V() {
|
3498
|
-
return
|
3522
|
+
return vn;
|
3499
3523
|
}
|
3500
3524
|
const Ee = he(!1);
|
3501
|
-
var
|
3525
|
+
var Hn = Object.defineProperty, Tn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pn = (e, t) => {
|
3502
3526
|
for (var r in t || (t = {}))
|
3503
|
-
|
3504
|
-
if (
|
3505
|
-
for (var r of
|
3506
|
-
Sn.call(t, r) &&
|
3527
|
+
An.call(t, r) && qe(e, r, t[r]);
|
3528
|
+
if (Je)
|
3529
|
+
for (var r of Je(t))
|
3530
|
+
Sn.call(t, r) && qe(e, r, t[r]);
|
3507
3531
|
return e;
|
3508
|
-
},
|
3532
|
+
}, On = (e, t) => Tn(e, Bn(t));
|
3509
3533
|
let Ne;
|
3510
3534
|
const oe = he(null);
|
3511
|
-
function
|
3535
|
+
function Ye(e) {
|
3512
3536
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3513
3537
|
}
|
3514
3538
|
function fe(e, t = V().fallbackLocale) {
|
3515
|
-
const r =
|
3516
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3539
|
+
const r = Ye(e);
|
3540
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
|
3517
3541
|
}
|
3518
3542
|
function C() {
|
3519
3543
|
return Ne ?? void 0;
|
@@ -3521,22 +3545,22 @@ function C() {
|
|
3521
3545
|
oe.subscribe((e) => {
|
3522
3546
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3523
3547
|
});
|
3524
|
-
const
|
3525
|
-
if (e &&
|
3548
|
+
const Nn = (e) => {
|
3549
|
+
if (e && dn(e) && Oe(e)) {
|
3526
3550
|
const { loadingDelay: t } = V();
|
3527
3551
|
let r;
|
3528
3552
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3529
3553
|
() => Ee.set(!0),
|
3530
3554
|
t
|
3531
|
-
) : Ee.set(!0),
|
3555
|
+
) : Ee.set(!0), Pt(e).then(() => {
|
3532
3556
|
oe.set(e);
|
3533
3557
|
}).finally(() => {
|
3534
3558
|
clearTimeout(r), Ee.set(!1);
|
3535
3559
|
});
|
3536
3560
|
}
|
3537
3561
|
return oe.set(e);
|
3538
|
-
}, I = Pn(
|
3539
|
-
set:
|
3562
|
+
}, I = On(Pn({}, oe), {
|
3563
|
+
set: Nn
|
3540
3564
|
}), ce = (e) => {
|
3541
3565
|
const t = /* @__PURE__ */ Object.create(null);
|
3542
3566
|
return (n) => {
|
@@ -3544,20 +3568,20 @@ const On = (e) => {
|
|
3544
3568
|
return i in t ? t[i] : t[i] = e(n);
|
3545
3569
|
};
|
3546
3570
|
};
|
3547
|
-
var
|
3571
|
+
var In = Object.defineProperty, ae = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
|
3548
3572
|
for (var r in t || (t = {}))
|
3549
|
-
|
3573
|
+
Ot.call(t, r) && Ke(e, r, t[r]);
|
3550
3574
|
if (ae)
|
3551
3575
|
for (var r of ae(t))
|
3552
|
-
|
3576
|
+
Nt.call(t, r) && Ke(e, r, t[r]);
|
3553
3577
|
return e;
|
3554
3578
|
}, z = (e, t) => {
|
3555
3579
|
var r = {};
|
3556
3580
|
for (var n in e)
|
3557
|
-
|
3581
|
+
Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3558
3582
|
if (e != null && ae)
|
3559
3583
|
for (var n of ae(e))
|
3560
|
-
t.indexOf(n) < 0 &&
|
3584
|
+
t.indexOf(n) < 0 && Nt.call(e, n) && (r[n] = e[n]);
|
3561
3585
|
return r;
|
3562
3586
|
};
|
3563
3587
|
const Y = (e, t) => {
|
@@ -3565,21 +3589,21 @@ const Y = (e, t) => {
|
|
3565
3589
|
if (e in r && t in r[e])
|
3566
3590
|
return r[e][t];
|
3567
3591
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3568
|
-
},
|
3592
|
+
}, wn = ce(
|
3569
3593
|
(e) => {
|
3570
3594
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3571
3595
|
if (r == null)
|
3572
3596
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3573
3597
|
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
3574
3598
|
}
|
3575
|
-
),
|
3599
|
+
), Ln = ce(
|
3576
3600
|
(e) => {
|
3577
3601
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3578
3602
|
if (r == null)
|
3579
3603
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3580
3604
|
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
3581
3605
|
}
|
3582
|
-
),
|
3606
|
+
), Cn = ce(
|
3583
3607
|
(e) => {
|
3584
3608
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3585
3609
|
if (r == null)
|
@@ -3588,33 +3612,33 @@ const Y = (e, t) => {
|
|
3588
3612
|
);
|
3589
3613
|
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
3590
3614
|
}
|
3591
|
-
),
|
3615
|
+
), Mn = (e = {}) => {
|
3592
3616
|
var t = e, {
|
3593
3617
|
locale: r = C()
|
3594
3618
|
} = t, n = z(t, [
|
3595
3619
|
"locale"
|
3596
3620
|
]);
|
3597
|
-
return
|
3598
|
-
},
|
3621
|
+
return wn($e({ locale: r }, n));
|
3622
|
+
}, Rn = (e = {}) => {
|
3599
3623
|
var t = e, {
|
3600
3624
|
locale: r = C()
|
3601
3625
|
} = t, n = z(t, [
|
3602
3626
|
"locale"
|
3603
3627
|
]);
|
3604
|
-
return
|
3605
|
-
},
|
3628
|
+
return Ln($e({ locale: r }, n));
|
3629
|
+
}, $n = (e = {}) => {
|
3606
3630
|
var t = e, {
|
3607
3631
|
locale: r = C()
|
3608
3632
|
} = t, n = z(t, [
|
3609
3633
|
"locale"
|
3610
3634
|
]);
|
3611
|
-
return
|
3612
|
-
},
|
3635
|
+
return Cn($e({ locale: r }, n));
|
3636
|
+
}, Un = ce(
|
3613
3637
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3614
|
-
(e, t = C()) => new
|
3638
|
+
(e, t = C()) => new fn(e, t, V().formats, {
|
3615
3639
|
ignoreTag: V().ignoreTag
|
3616
3640
|
})
|
3617
|
-
),
|
3641
|
+
), Gn = (e, t = {}) => {
|
3618
3642
|
var r, n, i, s;
|
3619
3643
|
let a = t;
|
3620
3644
|
typeof e == "object" && (a = e, e = a.id);
|
@@ -3627,7 +3651,7 @@ const Y = (e, t) => {
|
|
3627
3651
|
throw new Error(
|
3628
3652
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3629
3653
|
);
|
3630
|
-
let u =
|
3654
|
+
let u = Tt(e, l);
|
3631
3655
|
if (!u)
|
3632
3656
|
u = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
3633
3657
|
else if (typeof u != "string")
|
@@ -3638,7 +3662,7 @@ const Y = (e, t) => {
|
|
3638
3662
|
return u;
|
3639
3663
|
let c = u;
|
3640
3664
|
try {
|
3641
|
-
c =
|
3665
|
+
c = Un(u, l).format(o);
|
3642
3666
|
} catch (f) {
|
3643
3667
|
f instanceof Error && console.warn(
|
3644
3668
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3646,23 +3670,23 @@ const Y = (e, t) => {
|
|
3646
3670
|
);
|
3647
3671
|
}
|
3648
3672
|
return c;
|
3649
|
-
},
|
3650
|
-
k([I], () => Gn);
|
3673
|
+
}, Dn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), Vn = (e, t = C()) => Tt(e, t), kn = k([I, X], () => Gn);
|
3651
3674
|
k([I], () => Dn);
|
3652
3675
|
k([I], () => Fn);
|
3653
|
-
k([I
|
3654
|
-
|
3676
|
+
k([I], () => jn);
|
3677
|
+
k([I, X], () => Vn);
|
3678
|
+
function Xn({ withLocale: e, translations: t }) {
|
3655
3679
|
I.subscribe((r) => {
|
3656
3680
|
r == null && (X.set(t), I.set(e));
|
3657
3681
|
});
|
3658
3682
|
}
|
3659
|
-
function
|
3660
|
-
|
3683
|
+
function et(e, t) {
|
3684
|
+
At(e, t);
|
3661
3685
|
}
|
3662
|
-
function
|
3686
|
+
function zn(e) {
|
3663
3687
|
I.set(e);
|
3664
3688
|
}
|
3665
|
-
const
|
3689
|
+
const tt = {
|
3666
3690
|
en: {
|
3667
3691
|
bets: "bets"
|
3668
3692
|
},
|
@@ -3688,25 +3712,25 @@ const Ke = {
|
|
3688
3712
|
bets: "bets"
|
3689
3713
|
}
|
3690
3714
|
};
|
3691
|
-
function zn(e) {
|
3692
|
-
Mt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3693
|
-
}
|
3694
3715
|
function Wn(e) {
|
3716
|
+
$t(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3717
|
+
}
|
3718
|
+
function Zn(e) {
|
3695
3719
|
let t, r, n, i, s;
|
3696
3720
|
return {
|
3697
3721
|
c() {
|
3698
|
-
t = Z("div"), r = Z("div"), n = Z("span"), i =
|
3722
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Dt(
|
3699
3723
|
/*progressText*/
|
3700
3724
|
e[3]
|
3701
3725
|
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3702
3726
|
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3703
3727
|
},
|
3704
3728
|
m(a, o) {
|
3705
|
-
|
3729
|
+
st(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3706
3730
|
},
|
3707
3731
|
p(a, [o]) {
|
3708
3732
|
o & /*progressText*/
|
3709
|
-
8 &&
|
3733
|
+
8 && jt(
|
3710
3734
|
i,
|
3711
3735
|
/*progressText*/
|
3712
3736
|
a[3]
|
@@ -3721,25 +3745,25 @@ function Wn(e) {
|
|
3721
3745
|
}
|
3722
3746
|
};
|
3723
3747
|
}
|
3724
|
-
function
|
3748
|
+
function Qn(e, t, r) {
|
3725
3749
|
let n;
|
3726
|
-
|
3727
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: h = "" } = t, { progressfractiondigit: u = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B,
|
3728
|
-
|
3750
|
+
Rt(e, kn, (p) => r(20, n = p));
|
3751
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: h = "" } = t, { progressfractiondigit: u = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B, A, v = "0px", O = "active";
|
3752
|
+
Xn({ withLocale: "en", translations: {} });
|
3729
3753
|
const P = () => {
|
3730
3754
|
fetch(h).then((w) => w.json()).then((w) => {
|
3731
|
-
Object.keys(w).forEach((
|
3732
|
-
|
3755
|
+
Object.keys(w).forEach((Ue) => {
|
3756
|
+
et(Ue, w[Ue]);
|
3733
3757
|
});
|
3734
3758
|
}).catch((w) => {
|
3735
3759
|
console.log(w);
|
3736
3760
|
});
|
3737
3761
|
};
|
3738
|
-
Object.keys(
|
3739
|
-
|
3762
|
+
Object.keys(tt).forEach((p) => {
|
3763
|
+
et(p, tt[p]);
|
3740
3764
|
});
|
3741
3765
|
const M = () => {
|
3742
|
-
|
3766
|
+
zn(o);
|
3743
3767
|
}, ee = () => {
|
3744
3768
|
let p = (i / s * 100).toFixed(u);
|
3745
3769
|
setTimeout(
|
@@ -3747,21 +3771,21 @@ function Zn(e, t, r) {
|
|
3747
3771
|
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3748
3772
|
},
|
3749
3773
|
y ? 573 : 0
|
3750
|
-
), p == 0 || p == 100 ? (B = "0px",
|
3751
|
-
},
|
3774
|
+
), p == 0 || p == 100 ? (B = "0px", A = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, A = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", B), g.style.setProperty("--halfOfTriangleHeight", A), g.style.setProperty("--stepBarBorderRadius", v);
|
3775
|
+
}, It = () => {
|
3752
3776
|
r(4, O = l == "active" ? "" : "inactive");
|
3753
3777
|
};
|
3754
|
-
function
|
3778
|
+
function wt(p) {
|
3755
3779
|
J[p ? "unshift" : "push"](() => {
|
3756
3780
|
x = p, r(1, x);
|
3757
3781
|
});
|
3758
3782
|
}
|
3759
|
-
function
|
3783
|
+
function Lt(p) {
|
3760
3784
|
J[p ? "unshift" : "push"](() => {
|
3761
3785
|
g = p, r(2, g);
|
3762
3786
|
});
|
3763
3787
|
}
|
3764
|
-
function
|
3788
|
+
function Ct(p) {
|
3765
3789
|
J[p ? "unshift" : "push"](() => {
|
3766
3790
|
f = p, r(0, f);
|
3767
3791
|
});
|
@@ -3774,7 +3798,7 @@ function Zn(e, t, r) {
|
|
3774
3798
|
ee();
|
3775
3799
|
}), e.$$.dirty & /*lang*/
|
3776
3800
|
256 && o && M(), e.$$.dirty & /*status*/
|
3777
|
-
512 && l &&
|
3801
|
+
512 && l && It(), e.$$.dirty & /*translationurl*/
|
3778
3802
|
1024 && h && P();
|
3779
3803
|
}, [
|
3780
3804
|
f,
|
@@ -3790,19 +3814,19 @@ function Zn(e, t, r) {
|
|
3790
3814
|
h,
|
3791
3815
|
u,
|
3792
3816
|
c,
|
3793
|
-
|
3794
|
-
|
3795
|
-
|
3817
|
+
wt,
|
3818
|
+
Lt,
|
3819
|
+
Ct
|
3796
3820
|
];
|
3797
3821
|
}
|
3798
|
-
class
|
3822
|
+
class Jn extends tr {
|
3799
3823
|
constructor(t) {
|
3800
|
-
super(),
|
3824
|
+
super(), Kt(
|
3801
3825
|
this,
|
3802
3826
|
t,
|
3827
|
+
Qn,
|
3803
3828
|
Zn,
|
3804
|
-
|
3805
|
-
tt,
|
3829
|
+
nt,
|
3806
3830
|
{
|
3807
3831
|
currentstep: 5,
|
3808
3832
|
total: 6,
|
@@ -3813,59 +3837,59 @@ class Qn extends Kt {
|
|
3813
3837
|
progressfractiondigit: 11,
|
3814
3838
|
triggerreset: 12
|
3815
3839
|
},
|
3816
|
-
|
3840
|
+
Wn
|
3817
3841
|
);
|
3818
3842
|
}
|
3819
3843
|
get currentstep() {
|
3820
3844
|
return this.$$.ctx[5];
|
3821
3845
|
}
|
3822
3846
|
set currentstep(t) {
|
3823
|
-
this.$$set({ currentstep: t }),
|
3847
|
+
this.$$set({ currentstep: t }), S();
|
3824
3848
|
}
|
3825
3849
|
get total() {
|
3826
3850
|
return this.$$.ctx[6];
|
3827
3851
|
}
|
3828
3852
|
set total(t) {
|
3829
|
-
this.$$set({ total: t }),
|
3853
|
+
this.$$set({ total: t }), S();
|
3830
3854
|
}
|
3831
3855
|
get showaspercent() {
|
3832
3856
|
return this.$$.ctx[7];
|
3833
3857
|
}
|
3834
3858
|
set showaspercent(t) {
|
3835
|
-
this.$$set({ showaspercent: t }),
|
3859
|
+
this.$$set({ showaspercent: t }), S();
|
3836
3860
|
}
|
3837
3861
|
get lang() {
|
3838
3862
|
return this.$$.ctx[8];
|
3839
3863
|
}
|
3840
3864
|
set lang(t) {
|
3841
|
-
this.$$set({ lang: t }),
|
3865
|
+
this.$$set({ lang: t }), S();
|
3842
3866
|
}
|
3843
3867
|
get status() {
|
3844
3868
|
return this.$$.ctx[9];
|
3845
3869
|
}
|
3846
3870
|
set status(t) {
|
3847
|
-
this.$$set({ status: t }),
|
3871
|
+
this.$$set({ status: t }), S();
|
3848
3872
|
}
|
3849
3873
|
get translationurl() {
|
3850
3874
|
return this.$$.ctx[10];
|
3851
3875
|
}
|
3852
3876
|
set translationurl(t) {
|
3853
|
-
this.$$set({ translationurl: t }),
|
3877
|
+
this.$$set({ translationurl: t }), S();
|
3854
3878
|
}
|
3855
3879
|
get progressfractiondigit() {
|
3856
3880
|
return this.$$.ctx[11];
|
3857
3881
|
}
|
3858
3882
|
set progressfractiondigit(t) {
|
3859
|
-
this.$$set({ progressfractiondigit: t }),
|
3883
|
+
this.$$set({ progressfractiondigit: t }), S();
|
3860
3884
|
}
|
3861
3885
|
get triggerreset() {
|
3862
3886
|
return this.$$.ctx[12];
|
3863
3887
|
}
|
3864
3888
|
set triggerreset(t) {
|
3865
|
-
this.$$set({ triggerreset: t }),
|
3889
|
+
this.$$set({ triggerreset: t }), S();
|
3866
3890
|
}
|
3867
3891
|
}
|
3868
|
-
|
3892
|
+
er(Jn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3869
3893
|
export {
|
3870
|
-
|
3894
|
+
Jn as G
|
3871
3895
|
};
|