@everymatrix/general-icon-progress-bar 1.45.0 → 1.45.2
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-C75VTGUs.js → GeneralIconProgressBar-BaUCGOLP.js} +254 -254
- package/components/{GeneralIconProgressBar-DF6n6iF5.cjs → GeneralIconProgressBar-DRgZIAdX.cjs} +2 -2
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/package.json +2 -2
package/components/{GeneralIconProgressBar-C75VTGUs.js → GeneralIconProgressBar-BaUCGOLP.js}
RENAMED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
var Ft = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var Ft = Object.defineProperty, jt = Object.defineProperties;
|
|
2
|
+
var Vt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Fe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var me = (e, t, r) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
4
|
+
var kt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var me = (e, t, r) => t in e ? Ft(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
|
-
|
|
7
|
+
kt.call(t, r) && me(e, r, t[r]);
|
|
8
8
|
if (Fe)
|
|
9
9
|
for (var r of Fe(t))
|
|
10
10
|
Xt.call(t, r) && me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Ve = (e, t) => jt(e, Vt(t));
|
|
13
13
|
var T = (e, t, r) => me(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var
|
|
15
|
-
var s = (
|
|
14
|
+
var ke = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
a(r.next(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
a(r.next(h));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
a(r.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
a(r.throw(h));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
27
|
+
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ut(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Xe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ee(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(ut);
|
|
40
40
|
}
|
|
41
41
|
function Le(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ht(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
function zt(e) {
|
|
@@ -97,7 +97,7 @@ function Q(e) {
|
|
|
97
97
|
function qt(e) {
|
|
98
98
|
return document.createTextNode(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function C(e, t, r) {
|
|
101
101
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
102
102
|
}
|
|
103
103
|
function Yt(e) {
|
|
@@ -123,9 +123,9 @@ function J(e) {
|
|
|
123
123
|
const G = [], q = [];
|
|
124
124
|
let D = [];
|
|
125
125
|
const ze = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
126
|
-
let
|
|
126
|
+
let ve = !1;
|
|
127
127
|
function rr() {
|
|
128
|
-
|
|
128
|
+
ve || (ve = !0, tr.then(P));
|
|
129
129
|
}
|
|
130
130
|
function He(e) {
|
|
131
131
|
D.push(e);
|
|
@@ -154,7 +154,7 @@ function P() {
|
|
|
154
154
|
} while (G.length);
|
|
155
155
|
for (; ze.length; )
|
|
156
156
|
ze.pop()();
|
|
157
|
-
|
|
157
|
+
ve = !1, be.clear(), J(e);
|
|
158
158
|
}
|
|
159
159
|
function nr(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
@@ -174,21 +174,21 @@ function or(e, t) {
|
|
|
174
174
|
function ar(e, t, r) {
|
|
175
175
|
const { fragment: n, after_update: i } = e.$$;
|
|
176
176
|
n && n.m(t, r), He(() => {
|
|
177
|
-
const s = e.$$.on_mount.map(
|
|
177
|
+
const s = e.$$.on_mount.map(ut).filter(Le);
|
|
178
178
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
179
179
|
}), i.forEach(He);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function ur(e, t) {
|
|
182
182
|
const r = e.$$;
|
|
183
183
|
r.fragment !== null && (ir(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function hr(e, t) {
|
|
186
186
|
e.$$.dirty[0] === -1 && (G.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
188
|
function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
189
|
-
const
|
|
189
|
+
const h = Me;
|
|
190
190
|
J(e);
|
|
191
|
-
const
|
|
191
|
+
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
194
194
|
// state
|
|
@@ -202,27 +202,27 @@ function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
202
202
|
on_disconnect: [],
|
|
203
203
|
before_update: [],
|
|
204
204
|
after_update: [],
|
|
205
|
-
context: new Map(t.context || (
|
|
205
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
207
|
callbacks: Xe(),
|
|
208
208
|
dirty: a,
|
|
209
209
|
skip_bound: !1,
|
|
210
|
-
root: t.target ||
|
|
210
|
+
root: t.target || h.$$.root
|
|
211
211
|
};
|
|
212
|
-
o && o(
|
|
212
|
+
o && o(u.root);
|
|
213
213
|
let l = !1;
|
|
214
|
-
if (
|
|
214
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
|
215
215
|
const g = x.length ? x[0] : f;
|
|
216
|
-
return
|
|
217
|
-
}) : [],
|
|
216
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && hr(e, c)), f;
|
|
217
|
+
}) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
219
|
const c = Yt(t.target);
|
|
220
|
-
|
|
220
|
+
u.fragment && u.fragment.l(c), c.forEach(Ce);
|
|
221
221
|
} else
|
|
222
|
-
|
|
222
|
+
u.fragment && u.fragment.c();
|
|
223
223
|
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), P();
|
|
224
224
|
}
|
|
225
|
-
J(
|
|
225
|
+
J(h);
|
|
226
226
|
}
|
|
227
227
|
let ct;
|
|
228
228
|
typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
@@ -262,24 +262,24 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
connectedCallback() {
|
|
265
|
-
return
|
|
265
|
+
return ke(this, null, function* () {
|
|
266
266
|
if (this.$$cn = !0, !this.$$c) {
|
|
267
267
|
let t = function(s) {
|
|
268
268
|
return () => {
|
|
269
269
|
let o;
|
|
270
270
|
return {
|
|
271
271
|
c: function() {
|
|
272
|
-
o = Q("slot"), s !== "default" &&
|
|
272
|
+
o = Q("slot"), s !== "default" && C(o, "name", s);
|
|
273
273
|
},
|
|
274
274
|
/**
|
|
275
275
|
* @param {HTMLElement} target
|
|
276
276
|
* @param {HTMLElement} [anchor]
|
|
277
277
|
*/
|
|
278
|
-
m: function(
|
|
279
|
-
ft(
|
|
278
|
+
m: function(u, l) {
|
|
279
|
+
ft(u, o, l);
|
|
280
280
|
},
|
|
281
|
-
d: function(
|
|
282
|
-
|
|
281
|
+
d: function(u) {
|
|
282
|
+
u && Ce(o);
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
};
|
|
@@ -297,7 +297,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
297
297
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
298
298
|
this.$$c = new this.$$ctor({
|
|
299
299
|
target: this.shadowRoot || this,
|
|
300
|
-
props: je(
|
|
300
|
+
props: Ve(je({}, this.$$d), {
|
|
301
301
|
$$slots: r,
|
|
302
302
|
$$scope: {
|
|
303
303
|
ctx: []
|
|
@@ -391,16 +391,16 @@ function fr(e, t, r, n, i, s) {
|
|
|
391
391
|
get() {
|
|
392
392
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
393
393
|
},
|
|
394
|
-
set(
|
|
395
|
-
var
|
|
396
|
-
|
|
394
|
+
set(h) {
|
|
395
|
+
var u;
|
|
396
|
+
h = ie(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
}), n.forEach((a) => {
|
|
400
400
|
Object.defineProperty(o.prototype, a, {
|
|
401
401
|
get() {
|
|
402
|
-
var
|
|
403
|
-
return (
|
|
402
|
+
var h;
|
|
403
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
}), e.element = /** @type {any} */
|
|
@@ -427,7 +427,7 @@ class cr {
|
|
|
427
427
|
}
|
|
428
428
|
/** @returns {void} */
|
|
429
429
|
$destroy() {
|
|
430
|
-
|
|
430
|
+
ur(this, 1), this.$destroy = B;
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -457,20 +457,20 @@ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @
|
|
|
457
457
|
const U = [];
|
|
458
458
|
function mr(e, t) {
|
|
459
459
|
return {
|
|
460
|
-
subscribe:
|
|
460
|
+
subscribe: he(e, t).subscribe
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function he(e, t = B) {
|
|
464
464
|
let r;
|
|
465
465
|
const n = /* @__PURE__ */ new Set();
|
|
466
466
|
function i(a) {
|
|
467
|
-
if (
|
|
468
|
-
const
|
|
469
|
-
for (const
|
|
470
|
-
|
|
471
|
-
if (
|
|
472
|
-
for (let
|
|
473
|
-
U[
|
|
467
|
+
if (ht(e, a) && (e = a, r)) {
|
|
468
|
+
const h = !U.length;
|
|
469
|
+
for (const u of n)
|
|
470
|
+
u[1](), U.push(u, e);
|
|
471
|
+
if (h) {
|
|
472
|
+
for (let u = 0; u < U.length; u += 2)
|
|
473
|
+
U[u][0](U[u + 1]);
|
|
474
474
|
U.length = 0;
|
|
475
475
|
}
|
|
476
476
|
}
|
|
@@ -478,10 +478,10 @@ function ue(e, t = B) {
|
|
|
478
478
|
function s(a) {
|
|
479
479
|
i(a(e));
|
|
480
480
|
}
|
|
481
|
-
function o(a,
|
|
482
|
-
const
|
|
483
|
-
return n.add(
|
|
484
|
-
n.delete(
|
|
481
|
+
function o(a, h = B) {
|
|
482
|
+
const u = [a, h];
|
|
483
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
|
484
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
return { set: i, update: s, subscribe: o };
|
|
@@ -492,28 +492,28 @@ function X(e, t, r) {
|
|
|
492
492
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
493
493
|
const s = t.length < 2;
|
|
494
494
|
return mr(r, (o, a) => {
|
|
495
|
-
let
|
|
496
|
-
const
|
|
495
|
+
let h = !1;
|
|
496
|
+
const u = [];
|
|
497
497
|
let l = 0, c = B;
|
|
498
498
|
const f = () => {
|
|
499
499
|
if (l)
|
|
500
500
|
return;
|
|
501
501
|
c();
|
|
502
|
-
const g = t(n ?
|
|
502
|
+
const g = t(n ? u[0] : u, o, a);
|
|
503
503
|
s ? o(g) : c = Le(g) ? g : B;
|
|
504
504
|
}, x = i.map(
|
|
505
|
-
(g,
|
|
505
|
+
(g, y) => lt(
|
|
506
506
|
g,
|
|
507
507
|
(H) => {
|
|
508
|
-
|
|
508
|
+
u[y] = H, l &= ~(1 << y), h && f();
|
|
509
509
|
},
|
|
510
510
|
() => {
|
|
511
|
-
l |= 1 <<
|
|
511
|
+
l |= 1 << y;
|
|
512
512
|
}
|
|
513
513
|
)
|
|
514
514
|
);
|
|
515
|
-
return
|
|
516
|
-
ee(x), c(),
|
|
515
|
+
return h = !0, f(), function() {
|
|
516
|
+
ee(x), c(), h = !1;
|
|
517
517
|
};
|
|
518
518
|
});
|
|
519
519
|
}
|
|
@@ -528,17 +528,17 @@ function gr(e) {
|
|
|
528
528
|
}
|
|
529
529
|
function xr(e) {
|
|
530
530
|
var t = Object.prototype.toString.call(e);
|
|
531
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
532
|
-
}
|
|
533
|
-
var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
|
|
534
|
-
function yr(e) {
|
|
535
|
-
return e.$$typeof === vr;
|
|
531
|
+
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
|
536
532
|
}
|
|
533
|
+
var Er = typeof Symbol == "function" && Symbol.for, yr = Er ? Symbol.for("react.element") : 60103;
|
|
537
534
|
function _r(e) {
|
|
535
|
+
return e.$$typeof === yr;
|
|
536
|
+
}
|
|
537
|
+
function vr(e) {
|
|
538
538
|
return Array.isArray(e) ? [] : {};
|
|
539
539
|
}
|
|
540
540
|
function Y(e, t) {
|
|
541
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
|
541
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(vr(e), e, t) : e;
|
|
542
542
|
}
|
|
543
543
|
function Hr(e, t, r) {
|
|
544
544
|
return e.concat(t).map(function(n) {
|
|
@@ -637,10 +637,10 @@ var E;
|
|
|
637
637
|
(function(e) {
|
|
638
638
|
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";
|
|
639
639
|
})(E || (E = {}));
|
|
640
|
-
var
|
|
640
|
+
var j;
|
|
641
641
|
(function(e) {
|
|
642
642
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
643
|
-
})(
|
|
643
|
+
})(j || (j = {}));
|
|
644
644
|
function Ze(e) {
|
|
645
645
|
return e.type === E.literal;
|
|
646
646
|
}
|
|
@@ -668,13 +668,13 @@ function Lr(e) {
|
|
|
668
668
|
function Et(e) {
|
|
669
669
|
return e.type === E.tag;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
671
|
+
function yt(e) {
|
|
672
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
673
673
|
}
|
|
674
674
|
function Be(e) {
|
|
675
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
675
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
676
676
|
}
|
|
677
|
-
var
|
|
677
|
+
var _t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cr = /(?:[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;
|
|
678
678
|
function Mr(e) {
|
|
679
679
|
var t = {};
|
|
680
680
|
return e.replace(Cr, function(r) {
|
|
@@ -776,22 +776,22 @@ function $r(e) {
|
|
|
776
776
|
var s = i[n], o = s.split("/");
|
|
777
777
|
if (o.length === 0)
|
|
778
778
|
throw new Error("Invalid number skeleton");
|
|
779
|
-
for (var a = o[0],
|
|
780
|
-
var c = l[
|
|
779
|
+
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
780
|
+
var c = l[u];
|
|
781
781
|
if (c.length === 0)
|
|
782
782
|
throw new Error("Invalid number skeleton");
|
|
783
783
|
}
|
|
784
|
-
r.push({ stem: a, options:
|
|
784
|
+
r.push({ stem: a, options: h });
|
|
785
785
|
}
|
|
786
786
|
return r;
|
|
787
787
|
}
|
|
788
788
|
function Ur(e) {
|
|
789
789
|
return e.replace(/^(.*?)-/, "");
|
|
790
790
|
}
|
|
791
|
-
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
791
|
+
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vt = /^(@+)?(\+|#+)?[rs]?$/g, Gr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ht = /^(0+)$/;
|
|
792
792
|
function Je(e) {
|
|
793
793
|
var t = {};
|
|
794
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
794
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vt, function(r, n, i) {
|
|
795
795
|
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)), "";
|
|
796
796
|
}), t;
|
|
797
797
|
}
|
|
@@ -888,13 +888,13 @@ function Fr(e) {
|
|
|
888
888
|
t.notation = "compact", t.compactDisplay = "long";
|
|
889
889
|
continue;
|
|
890
890
|
case "scientific":
|
|
891
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
892
|
-
return d(d({},
|
|
891
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
892
|
+
return d(d({}, h), qe(u));
|
|
893
893
|
}, {}));
|
|
894
894
|
continue;
|
|
895
895
|
case "engineering":
|
|
896
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
897
|
-
return d(d({},
|
|
896
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
897
|
+
return d(d({}, h), qe(u));
|
|
898
898
|
}, {}));
|
|
899
899
|
continue;
|
|
900
900
|
case "notation-simple":
|
|
@@ -939,8 +939,8 @@ function Fr(e) {
|
|
|
939
939
|
case "integer-width":
|
|
940
940
|
if (i.options.length > 1)
|
|
941
941
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
942
|
-
i.options[0].replace(Gr, function(
|
|
943
|
-
if (
|
|
942
|
+
i.options[0].replace(Gr, function(h, u, l, c, f, x) {
|
|
943
|
+
if (u)
|
|
944
944
|
t.minimumIntegerDigits = l.length;
|
|
945
945
|
else {
|
|
946
946
|
if (c && f)
|
|
@@ -959,14 +959,14 @@ function Fr(e) {
|
|
|
959
959
|
if (Qe.test(i.stem)) {
|
|
960
960
|
if (i.options.length > 1)
|
|
961
961
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
962
|
-
i.stem.replace(Qe, function(
|
|
963
|
-
return l === "*" ? t.minimumFractionDigits =
|
|
962
|
+
i.stem.replace(Qe, function(h, u, l, c, f, x) {
|
|
963
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
964
964
|
});
|
|
965
965
|
var s = i.options[0];
|
|
966
966
|
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Je(s)));
|
|
967
967
|
continue;
|
|
968
968
|
}
|
|
969
|
-
if (
|
|
969
|
+
if (vt.test(i.stem)) {
|
|
970
970
|
t = d(d({}, t), Je(i.stem));
|
|
971
971
|
continue;
|
|
972
972
|
}
|
|
@@ -2386,22 +2386,22 @@ var re = {
|
|
|
2386
2386
|
"h"
|
|
2387
2387
|
]
|
|
2388
2388
|
};
|
|
2389
|
-
function
|
|
2389
|
+
function jr(e, t) {
|
|
2390
2390
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2391
2391
|
var i = e.charAt(n);
|
|
2392
2392
|
if (i === "j") {
|
|
2393
2393
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2394
2394
|
s++, n++;
|
|
2395
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
|
2396
|
-
for ((
|
|
2397
|
-
r +=
|
|
2395
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Vr(t);
|
|
2396
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2397
|
+
r += h;
|
|
2398
2398
|
for (; o-- > 0; )
|
|
2399
|
-
r =
|
|
2399
|
+
r = u + r;
|
|
2400
2400
|
} else i === "J" ? r += "H" : r += i;
|
|
2401
2401
|
}
|
|
2402
2402
|
return r;
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function Vr(e) {
|
|
2405
2405
|
var t = e.hourCycle;
|
|
2406
2406
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2407
2407
|
e.hourCycles && // @ts-ignore
|
|
@@ -2423,7 +2423,7 @@ function jr(e) {
|
|
|
2423
2423
|
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
|
2424
2424
|
return i[0];
|
|
2425
2425
|
}
|
|
2426
|
-
var ge,
|
|
2426
|
+
var ge, kr = new RegExp("^".concat(_t.source, "*")), Xr = new RegExp("".concat(_t.source, "*$"));
|
|
2427
2427
|
function b(e, t) {
|
|
2428
2428
|
return { start: e, end: t };
|
|
2429
2429
|
}
|
|
@@ -2492,7 +2492,7 @@ var Ye = zr ? (
|
|
|
2492
2492
|
) : (
|
|
2493
2493
|
// Ponyfill
|
|
2494
2494
|
function(t) {
|
|
2495
|
-
return t.replace(
|
|
2495
|
+
return t.replace(kr, "");
|
|
2496
2496
|
}
|
|
2497
2497
|
), rn = qr ? (
|
|
2498
2498
|
// Native
|
|
@@ -2593,8 +2593,8 @@ var nn = (
|
|
|
2593
2593
|
if (this.bumpIf("</")) {
|
|
2594
2594
|
if (this.isEOF() || !Oe(this.char()))
|
|
2595
2595
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
2596
|
-
var
|
|
2597
|
-
return i !==
|
|
2596
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
2597
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2598
2598
|
val: {
|
|
2599
2599
|
type: E.tag,
|
|
2600
2600
|
value: i,
|
|
@@ -2631,9 +2631,9 @@ var nn = (
|
|
|
2631
2631
|
}
|
|
2632
2632
|
break;
|
|
2633
2633
|
}
|
|
2634
|
-
var
|
|
2634
|
+
var h = b(n, this.clonePosition());
|
|
2635
2635
|
return {
|
|
2636
|
-
val: { type: E.literal, value: i, location:
|
|
2636
|
+
val: { type: E.literal, value: i, location: h },
|
|
2637
2637
|
err: null
|
|
2638
2638
|
};
|
|
2639
2639
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2711,15 +2711,15 @@ var nn = (
|
|
|
2711
2711
|
var s = this.clonePosition(), o = b(t, s);
|
|
2712
2712
|
return { value: n, location: o };
|
|
2713
2713
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2714
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
2714
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2715
2715
|
switch (a) {
|
|
2716
2716
|
case "":
|
|
2717
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o,
|
|
2717
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, h));
|
|
2718
2718
|
case "number":
|
|
2719
2719
|
case "date":
|
|
2720
2720
|
case "time": {
|
|
2721
2721
|
this.bumpSpace();
|
|
2722
|
-
var
|
|
2722
|
+
var u = null;
|
|
2723
2723
|
if (this.bumpIf(",")) {
|
|
2724
2724
|
this.bumpSpace();
|
|
2725
2725
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
@@ -2729,33 +2729,33 @@ var nn = (
|
|
|
2729
2729
|
if (f.length === 0)
|
|
2730
2730
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2731
2731
|
var x = b(l, this.clonePosition());
|
|
2732
|
-
|
|
2732
|
+
u = { style: f, styleLocation: x };
|
|
2733
2733
|
}
|
|
2734
2734
|
var g = this.tryParseArgumentClose(i);
|
|
2735
2735
|
if (g.err)
|
|
2736
2736
|
return g;
|
|
2737
|
-
var
|
|
2738
|
-
if (
|
|
2739
|
-
var H = tn(
|
|
2737
|
+
var y = b(i, this.clonePosition());
|
|
2738
|
+
if (u && Ye(u == null ? void 0 : u.style, "::", 0)) {
|
|
2739
|
+
var H = tn(u.style.slice(2));
|
|
2740
2740
|
if (a === "number") {
|
|
2741
|
-
var c = this.parseNumberSkeletonFromString(H,
|
|
2741
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
2742
2742
|
return c.err ? c : {
|
|
2743
|
-
val: { type: E.number, value: n, location:
|
|
2743
|
+
val: { type: E.number, value: n, location: y, style: c.val },
|
|
2744
2744
|
err: null
|
|
2745
2745
|
};
|
|
2746
2746
|
} else {
|
|
2747
2747
|
if (H.length === 0)
|
|
2748
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
2748
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
2749
2749
|
var S = H;
|
|
2750
|
-
this.locale && (S =
|
|
2750
|
+
this.locale && (S = jr(H, this.locale));
|
|
2751
2751
|
var f = {
|
|
2752
|
-
type:
|
|
2752
|
+
type: j.dateTime,
|
|
2753
2753
|
pattern: S,
|
|
2754
|
-
location:
|
|
2754
|
+
location: u.styleLocation,
|
|
2755
2755
|
parsedOptions: this.shouldParseSkeletons ? Mr(S) : {}
|
|
2756
2756
|
}, A = a === "date" ? E.date : E.time;
|
|
2757
2757
|
return {
|
|
2758
|
-
val: { type: A, value: n, location:
|
|
2758
|
+
val: { type: A, value: n, location: y, style: f },
|
|
2759
2759
|
err: null
|
|
2760
2760
|
};
|
|
2761
2761
|
}
|
|
@@ -2764,8 +2764,8 @@ var nn = (
|
|
|
2764
2764
|
val: {
|
|
2765
2765
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
2766
2766
|
value: n,
|
|
2767
|
-
location:
|
|
2768
|
-
style: (s =
|
|
2767
|
+
location: y,
|
|
2768
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2769
2769
|
},
|
|
2770
2770
|
err: null
|
|
2771
2771
|
};
|
|
@@ -2773,9 +2773,9 @@ var nn = (
|
|
|
2773
2773
|
case "plural":
|
|
2774
2774
|
case "selectordinal":
|
|
2775
2775
|
case "select": {
|
|
2776
|
-
var
|
|
2776
|
+
var v = this.clonePosition();
|
|
2777
2777
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2778
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2778
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
|
2779
2779
|
this.bumpSpace();
|
|
2780
2780
|
var N = this.parseIdentifierIfPossible(), O = 0;
|
|
2781
2781
|
if (a !== "select" && N.value === "offset") {
|
|
@@ -2815,7 +2815,7 @@ var nn = (
|
|
|
2815
2815
|
};
|
|
2816
2816
|
}
|
|
2817
2817
|
default:
|
|
2818
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, b(o,
|
|
2818
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, h));
|
|
2819
2819
|
}
|
|
2820
2820
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2821
2821
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2863,7 +2863,7 @@ var nn = (
|
|
|
2863
2863
|
}
|
|
2864
2864
|
return {
|
|
2865
2865
|
val: {
|
|
2866
|
-
type:
|
|
2866
|
+
type: j.number,
|
|
2867
2867
|
tokens: n,
|
|
2868
2868
|
location: r,
|
|
2869
2869
|
parsedOptions: this.shouldParseSkeletons ? Fr(n) : {}
|
|
@@ -2871,36 +2871,36 @@ var nn = (
|
|
|
2871
2871
|
err: null
|
|
2872
2872
|
};
|
|
2873
2873
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2874
|
-
for (var s, o = !1, a = [],
|
|
2875
|
-
if (
|
|
2874
|
+
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2875
|
+
if (u.length === 0) {
|
|
2876
2876
|
var c = this.clonePosition();
|
|
2877
2877
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2878
2878
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2879
2879
|
if (f.err)
|
|
2880
2880
|
return f;
|
|
2881
|
-
l = b(c, this.clonePosition()),
|
|
2881
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2882
2882
|
} else
|
|
2883
2883
|
break;
|
|
2884
2884
|
}
|
|
2885
|
-
if (
|
|
2885
|
+
if (h.has(u))
|
|
2886
2886
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2887
|
-
|
|
2887
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
2888
2888
|
var x = this.clonePosition();
|
|
2889
2889
|
if (!this.bumpIf("{"))
|
|
2890
2890
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2891
2891
|
var g = this.parseMessage(t + 1, r, n);
|
|
2892
2892
|
if (g.err)
|
|
2893
2893
|
return g;
|
|
2894
|
-
var
|
|
2895
|
-
if (
|
|
2896
|
-
return
|
|
2894
|
+
var y = this.tryParseArgumentClose(x);
|
|
2895
|
+
if (y.err)
|
|
2896
|
+
return y;
|
|
2897
2897
|
a.push([
|
|
2898
|
-
|
|
2898
|
+
u,
|
|
2899
2899
|
{
|
|
2900
2900
|
value: g.val,
|
|
2901
2901
|
location: b(x, this.clonePosition())
|
|
2902
2902
|
}
|
|
2903
|
-
]),
|
|
2903
|
+
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
2904
2904
|
}
|
|
2905
2905
|
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2906
2906
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -2913,8 +2913,8 @@ var nn = (
|
|
|
2913
2913
|
else
|
|
2914
2914
|
break;
|
|
2915
2915
|
}
|
|
2916
|
-
var
|
|
2917
|
-
return s ? (o *= n, Kr(o) ? { val: o, err: null } : this.error(r,
|
|
2916
|
+
var h = b(i, this.clonePosition());
|
|
2917
|
+
return s ? (o *= n, Kr(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2918
2918
|
}, e.prototype.offset = function() {
|
|
2919
2919
|
return this.position.offset;
|
|
2920
2920
|
}, e.prototype.isEOF = function() {
|
|
@@ -3000,10 +3000,10 @@ function Ne(e) {
|
|
|
3000
3000
|
if (delete t.location, gt(t) || xt(t))
|
|
3001
3001
|
for (var r in t.options)
|
|
3002
3002
|
delete t.options[r].location, Ne(t.options[r].value);
|
|
3003
|
-
else mt(t) &&
|
|
3003
|
+
else mt(t) && yt(t.style) || (bt(t) || dt(t)) && Be(t.style) ? delete t.style.location : Et(t) && Ne(t.children);
|
|
3004
3004
|
});
|
|
3005
3005
|
}
|
|
3006
|
-
function
|
|
3006
|
+
function un(e, t) {
|
|
3007
3007
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3008
3008
|
var r = new nn(e, t).parse();
|
|
3009
3009
|
if (r.err) {
|
|
@@ -3019,11 +3019,11 @@ function xe(e, t) {
|
|
|
3019
3019
|
serializer: n
|
|
3020
3020
|
});
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3022
|
+
function hn(e) {
|
|
3023
3023
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3024
3024
|
}
|
|
3025
3025
|
function Pt(e, t, r, n) {
|
|
3026
|
-
var i =
|
|
3026
|
+
var i = hn(n) ? n : r(n), s = t.get(i);
|
|
3027
3027
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
3028
3028
|
}
|
|
3029
3029
|
function Ot(e, t, r) {
|
|
@@ -3062,10 +3062,10 @@ var mn = {
|
|
|
3062
3062
|
}, Ee = {
|
|
3063
3063
|
variadic: fn,
|
|
3064
3064
|
monadic: cn
|
|
3065
|
-
},
|
|
3065
|
+
}, V;
|
|
3066
3066
|
(function(e) {
|
|
3067
3067
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3068
|
-
})(
|
|
3068
|
+
})(V || (V = {}));
|
|
3069
3069
|
var fe = (
|
|
3070
3070
|
/** @class */
|
|
3071
3071
|
function(e) {
|
|
@@ -3083,7 +3083,7 @@ var fe = (
|
|
|
3083
3083
|
function(e) {
|
|
3084
3084
|
le(t, e);
|
|
3085
3085
|
function t(r, n, i, s) {
|
|
3086
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3086
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3087
3087
|
}
|
|
3088
3088
|
return t;
|
|
3089
3089
|
}(fe)
|
|
@@ -3092,7 +3092,7 @@ var fe = (
|
|
|
3092
3092
|
function(e) {
|
|
3093
3093
|
le(t, e);
|
|
3094
3094
|
function t(r, n, i) {
|
|
3095
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3095
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3096
3096
|
}
|
|
3097
3097
|
return t;
|
|
3098
3098
|
}(fe)
|
|
@@ -3101,18 +3101,18 @@ var fe = (
|
|
|
3101
3101
|
function(e) {
|
|
3102
3102
|
le(t, e);
|
|
3103
3103
|
function t(r, n) {
|
|
3104
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3104
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3105
3105
|
}
|
|
3106
3106
|
return t;
|
|
3107
3107
|
}(fe)
|
|
3108
|
-
),
|
|
3108
|
+
), _;
|
|
3109
3109
|
(function(e) {
|
|
3110
3110
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3111
|
-
})(
|
|
3111
|
+
})(_ || (_ = {}));
|
|
3112
3112
|
function gn(e) {
|
|
3113
3113
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3114
3114
|
var n = t[t.length - 1];
|
|
3115
|
-
return !n || n.type !==
|
|
3115
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3116
3116
|
}, []);
|
|
3117
3117
|
}
|
|
3118
3118
|
function xn(e) {
|
|
@@ -3122,22 +3122,22 @@ function se(e, t, r, n, i, s, o) {
|
|
|
3122
3122
|
if (e.length === 1 && Ze(e[0]))
|
|
3123
3123
|
return [
|
|
3124
3124
|
{
|
|
3125
|
-
type:
|
|
3125
|
+
type: _.literal,
|
|
3126
3126
|
value: e[0].value
|
|
3127
3127
|
}
|
|
3128
3128
|
];
|
|
3129
|
-
for (var a = [],
|
|
3130
|
-
var l = h
|
|
3129
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3130
|
+
var l = u[h];
|
|
3131
3131
|
if (Ze(l)) {
|
|
3132
3132
|
a.push({
|
|
3133
|
-
type:
|
|
3133
|
+
type: _.literal,
|
|
3134
3134
|
value: l.value
|
|
3135
3135
|
});
|
|
3136
3136
|
continue;
|
|
3137
3137
|
}
|
|
3138
3138
|
if (Lr(l)) {
|
|
3139
3139
|
typeof s == "number" && a.push({
|
|
3140
|
-
type:
|
|
3140
|
+
type: _.literal,
|
|
3141
3141
|
value: r.getNumberFormat(t).format(s)
|
|
3142
3142
|
});
|
|
3143
3143
|
continue;
|
|
@@ -3148,7 +3148,7 @@ function se(e, t, r, n, i, s, o) {
|
|
|
3148
3148
|
var f = i[c];
|
|
3149
3149
|
if (wr(l)) {
|
|
3150
3150
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3151
|
-
type: typeof f == "string" ?
|
|
3151
|
+
type: typeof f == "string" ? _.literal : _.object,
|
|
3152
3152
|
value: f
|
|
3153
3153
|
});
|
|
3154
3154
|
continue;
|
|
@@ -3156,7 +3156,7 @@ function se(e, t, r, n, i, s, o) {
|
|
|
3156
3156
|
if (bt(l)) {
|
|
3157
3157
|
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
|
3158
3158
|
a.push({
|
|
3159
|
-
type:
|
|
3159
|
+
type: _.literal,
|
|
3160
3160
|
value: r.getDateTimeFormat(t, x).format(f)
|
|
3161
3161
|
});
|
|
3162
3162
|
continue;
|
|
@@ -3164,53 +3164,53 @@ function se(e, t, r, n, i, s, o) {
|
|
|
3164
3164
|
if (dt(l)) {
|
|
3165
3165
|
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3166
3166
|
a.push({
|
|
3167
|
-
type:
|
|
3167
|
+
type: _.literal,
|
|
3168
3168
|
value: r.getDateTimeFormat(t, x).format(f)
|
|
3169
3169
|
});
|
|
3170
3170
|
continue;
|
|
3171
3171
|
}
|
|
3172
3172
|
if (mt(l)) {
|
|
3173
|
-
var x = typeof l.style == "string" ? n.number[l.style] :
|
|
3173
|
+
var x = typeof l.style == "string" ? n.number[l.style] : yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3174
3174
|
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
|
3175
|
-
type:
|
|
3175
|
+
type: _.literal,
|
|
3176
3176
|
value: r.getNumberFormat(t, x).format(f)
|
|
3177
3177
|
});
|
|
3178
3178
|
continue;
|
|
3179
3179
|
}
|
|
3180
3180
|
if (Et(l)) {
|
|
3181
|
-
var g = l.children,
|
|
3181
|
+
var g = l.children, y = l.value, H = i[y];
|
|
3182
3182
|
if (!xn(H))
|
|
3183
|
-
throw new bn(
|
|
3183
|
+
throw new bn(y, "function", o);
|
|
3184
3184
|
var S = se(g, t, r, n, i, s), A = H(S.map(function(O) {
|
|
3185
3185
|
return O.value;
|
|
3186
3186
|
}));
|
|
3187
3187
|
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(O) {
|
|
3188
3188
|
return {
|
|
3189
|
-
type: typeof O == "string" ?
|
|
3189
|
+
type: typeof O == "string" ? _.literal : _.object,
|
|
3190
3190
|
value: O
|
|
3191
3191
|
};
|
|
3192
3192
|
}));
|
|
3193
3193
|
}
|
|
3194
3194
|
if (gt(l)) {
|
|
3195
|
-
var
|
|
3196
|
-
if (!
|
|
3195
|
+
var v = l.options[f] || l.options.other;
|
|
3196
|
+
if (!v)
|
|
3197
3197
|
throw new tt(l.value, f, Object.keys(l.options), o);
|
|
3198
|
-
a.push.apply(a, se(
|
|
3198
|
+
a.push.apply(a, se(v.value, t, r, n, i));
|
|
3199
3199
|
continue;
|
|
3200
3200
|
}
|
|
3201
3201
|
if (xt(l)) {
|
|
3202
|
-
var
|
|
3203
|
-
if (!
|
|
3202
|
+
var v = l.options["=".concat(f)];
|
|
3203
|
+
if (!v) {
|
|
3204
3204
|
if (!Intl.PluralRules)
|
|
3205
3205
|
throw new fe(`Intl.PluralRules is not available in this environment.
|
|
3206
3206
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3207
|
-
`,
|
|
3207
|
+
`, V.MISSING_INTL_API, o);
|
|
3208
3208
|
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3209
|
-
|
|
3209
|
+
v = l.options[N] || l.options.other;
|
|
3210
3210
|
}
|
|
3211
|
-
if (!
|
|
3211
|
+
if (!v)
|
|
3212
3212
|
throw new tt(l.value, f, Object.keys(l.options), o);
|
|
3213
|
-
a.push.apply(a, se(
|
|
3213
|
+
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
|
3214
3214
|
continue;
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
@@ -3221,12 +3221,12 @@ function En(e, t) {
|
|
|
3221
3221
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3222
3222
|
}, {})) : e;
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3224
|
+
function yn(e, t) {
|
|
3225
3225
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3226
3226
|
return r[n] = En(e[n], t[n]), r;
|
|
3227
3227
|
}, d({}, e)) : e;
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function ye(e) {
|
|
3230
3230
|
return {
|
|
3231
3231
|
create: function() {
|
|
3232
3232
|
return {
|
|
@@ -3240,7 +3240,7 @@ function ve(e) {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
};
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function _n(e) {
|
|
3244
3244
|
return e === void 0 && (e = {
|
|
3245
3245
|
number: {},
|
|
3246
3246
|
dateTime: {},
|
|
@@ -3251,7 +3251,7 @@ function yn(e) {
|
|
|
3251
3251
|
r[n] = arguments[n];
|
|
3252
3252
|
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
|
3253
3253
|
}, {
|
|
3254
|
-
cache:
|
|
3254
|
+
cache: ye(e.number),
|
|
3255
3255
|
strategy: Ee.variadic
|
|
3256
3256
|
}),
|
|
3257
3257
|
getDateTimeFormat: xe(function() {
|
|
@@ -3259,7 +3259,7 @@ function yn(e) {
|
|
|
3259
3259
|
r[n] = arguments[n];
|
|
3260
3260
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
|
3261
3261
|
}, {
|
|
3262
|
-
cache:
|
|
3262
|
+
cache: ye(e.dateTime),
|
|
3263
3263
|
strategy: Ee.variadic
|
|
3264
3264
|
}),
|
|
3265
3265
|
getPluralRules: xe(function() {
|
|
@@ -3267,12 +3267,12 @@ function yn(e) {
|
|
|
3267
3267
|
r[n] = arguments[n];
|
|
3268
3268
|
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
|
3269
3269
|
}, {
|
|
3270
|
-
cache:
|
|
3270
|
+
cache: ye(e.pluralRules),
|
|
3271
3271
|
strategy: Ee.variadic
|
|
3272
3272
|
})
|
|
3273
3273
|
};
|
|
3274
3274
|
}
|
|
3275
|
-
var
|
|
3275
|
+
var vn = (
|
|
3276
3276
|
/** @class */
|
|
3277
3277
|
function() {
|
|
3278
3278
|
function e(t, r, n, i) {
|
|
@@ -3281,20 +3281,20 @@ var _n = (
|
|
|
3281
3281
|
number: {},
|
|
3282
3282
|
dateTime: {},
|
|
3283
3283
|
pluralRules: {}
|
|
3284
|
-
}, this.format = function(
|
|
3285
|
-
var
|
|
3286
|
-
if (
|
|
3287
|
-
return
|
|
3288
|
-
var l =
|
|
3289
|
-
return !c.length || f.type !==
|
|
3284
|
+
}, this.format = function(h) {
|
|
3285
|
+
var u = s.formatToParts(h);
|
|
3286
|
+
if (u.length === 1)
|
|
3287
|
+
return u[0].value;
|
|
3288
|
+
var l = u.reduce(function(c, f) {
|
|
3289
|
+
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3290
3290
|
}, []);
|
|
3291
3291
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3292
|
-
}, this.formatToParts = function(
|
|
3293
|
-
return se(s.ast, s.locales, s.formatters, s.formats,
|
|
3292
|
+
}, this.formatToParts = function(h) {
|
|
3293
|
+
return se(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3294
3294
|
}, this.resolvedOptions = function() {
|
|
3295
|
-
var
|
|
3295
|
+
var h;
|
|
3296
3296
|
return {
|
|
3297
|
-
locale: ((
|
|
3297
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3298
3298
|
};
|
|
3299
3299
|
}, this.getAst = function() {
|
|
3300
3300
|
return s.ast;
|
|
@@ -3309,7 +3309,7 @@ var _n = (
|
|
|
3309
3309
|
this.ast = t;
|
|
3310
3310
|
if (!Array.isArray(this.ast))
|
|
3311
3311
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3312
|
-
this.formats =
|
|
3312
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
|
3313
3313
|
}
|
|
3314
3314
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3315
3315
|
get: function() {
|
|
@@ -3322,7 +3322,7 @@ var _n = (
|
|
|
3322
3322
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3323
3323
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3324
3324
|
}
|
|
3325
|
-
}, e.__parse =
|
|
3325
|
+
}, e.__parse = un, e.formats = {
|
|
3326
3326
|
number: {
|
|
3327
3327
|
integer: {
|
|
3328
3328
|
maximumFractionDigits: 0
|
|
@@ -3404,11 +3404,11 @@ function Hn(e, t) {
|
|
|
3404
3404
|
n = void 0;
|
|
3405
3405
|
return n;
|
|
3406
3406
|
}
|
|
3407
|
-
const
|
|
3407
|
+
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Nt = (e, t) => {
|
|
3408
3408
|
if (t == null)
|
|
3409
3409
|
return;
|
|
3410
|
-
if (t in
|
|
3411
|
-
return
|
|
3410
|
+
if (t in I && e in I[t])
|
|
3411
|
+
return I[t][e];
|
|
3412
3412
|
const r = ce(t);
|
|
3413
3413
|
for (let n = 0; n < r.length; n++) {
|
|
3414
3414
|
const i = r[n], s = Sn(i, e);
|
|
@@ -3417,7 +3417,7 @@ const w = {}, Tn = (e, t, r) => r && (t in w || (w[t] = {}), e in w[t] || (w[t][
|
|
|
3417
3417
|
}
|
|
3418
3418
|
};
|
|
3419
3419
|
let Ue;
|
|
3420
|
-
const z =
|
|
3420
|
+
const z = he({});
|
|
3421
3421
|
function Bn(e) {
|
|
3422
3422
|
return Ue[e] || null;
|
|
3423
3423
|
}
|
|
@@ -3441,7 +3441,7 @@ function An(e) {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
function wt(e, ...t) {
|
|
3444
|
-
delete
|
|
3444
|
+
delete I[e], z.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
|
3445
3445
|
}
|
|
3446
3446
|
X(
|
|
3447
3447
|
[z],
|
|
@@ -3526,10 +3526,10 @@ const In = {
|
|
|
3526
3526
|
handleMissingMessage: void 0,
|
|
3527
3527
|
ignoreTag: !0
|
|
3528
3528
|
}, Ln = wn;
|
|
3529
|
-
function
|
|
3529
|
+
function k() {
|
|
3530
3530
|
return Ln;
|
|
3531
3531
|
}
|
|
3532
|
-
const
|
|
3532
|
+
const _e = he(!1);
|
|
3533
3533
|
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
|
3534
3534
|
for (var r in t || (t = {}))
|
|
3535
3535
|
$n.call(t, r) && nt(e, r, t[r]);
|
|
@@ -3539,11 +3539,11 @@ var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwn
|
|
|
3539
3539
|
return e;
|
|
3540
3540
|
}, Dn = (e, t) => Mn(e, Rn(t));
|
|
3541
3541
|
let we;
|
|
3542
|
-
const ae =
|
|
3542
|
+
const ae = he(null);
|
|
3543
3543
|
function it(e) {
|
|
3544
3544
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3545
3545
|
}
|
|
3546
|
-
function ce(e, t =
|
|
3546
|
+
function ce(e, t = k().fallbackLocale) {
|
|
3547
3547
|
const r = it(e);
|
|
3548
3548
|
return t ? [.../* @__PURE__ */ new Set([...r, ...it(t)])] : r;
|
|
3549
3549
|
}
|
|
@@ -3555,19 +3555,19 @@ ae.subscribe((e) => {
|
|
|
3555
3555
|
});
|
|
3556
3556
|
const Fn = (e) => {
|
|
3557
3557
|
if (e && An(e) && Ie(e)) {
|
|
3558
|
-
const { loadingDelay: t } =
|
|
3558
|
+
const { loadingDelay: t } = k();
|
|
3559
3559
|
let r;
|
|
3560
3560
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
3561
|
-
() =>
|
|
3561
|
+
() => _e.set(!0),
|
|
3562
3562
|
t
|
|
3563
|
-
) :
|
|
3563
|
+
) : _e.set(!0), Ct(e).then(() => {
|
|
3564
3564
|
ae.set(e);
|
|
3565
3565
|
}).finally(() => {
|
|
3566
|
-
clearTimeout(r),
|
|
3566
|
+
clearTimeout(r), _e.set(!1);
|
|
3567
3567
|
});
|
|
3568
3568
|
}
|
|
3569
3569
|
return ae.set(e);
|
|
3570
|
-
},
|
|
3570
|
+
}, w = Dn(Gn({}, ae), {
|
|
3571
3571
|
set: Fn
|
|
3572
3572
|
}), pe = (e) => {
|
|
3573
3573
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3576,35 +3576,35 @@ const Fn = (e) => {
|
|
|
3576
3576
|
return i in t ? t[i] : t[i] = e(n);
|
|
3577
3577
|
};
|
|
3578
3578
|
};
|
|
3579
|
-
var
|
|
3579
|
+
var jn = Object.defineProperty, ue = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
|
3580
3580
|
for (var r in t || (t = {}))
|
|
3581
3581
|
Mt.call(t, r) && st(e, r, t[r]);
|
|
3582
|
-
if (
|
|
3583
|
-
for (var r of
|
|
3582
|
+
if (ue)
|
|
3583
|
+
for (var r of ue(t))
|
|
3584
3584
|
Rt.call(t, r) && st(e, r, t[r]);
|
|
3585
3585
|
return e;
|
|
3586
3586
|
}, W = (e, t) => {
|
|
3587
3587
|
var r = {};
|
|
3588
3588
|
for (var n in e)
|
|
3589
3589
|
Mt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3590
|
-
if (e != null &&
|
|
3591
|
-
for (var n of
|
|
3590
|
+
if (e != null && ue)
|
|
3591
|
+
for (var n of ue(e))
|
|
3592
3592
|
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
|
3593
3593
|
return r;
|
|
3594
3594
|
};
|
|
3595
3595
|
const K = (e, t) => {
|
|
3596
|
-
const { formats: r } =
|
|
3596
|
+
const { formats: r } = k();
|
|
3597
3597
|
if (e in r && t in r[e])
|
|
3598
3598
|
return r[e][t];
|
|
3599
3599
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3600
|
-
},
|
|
3600
|
+
}, Vn = pe(
|
|
3601
3601
|
(e) => {
|
|
3602
3602
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3603
3603
|
if (r == null)
|
|
3604
3604
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3605
3605
|
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3606
3606
|
}
|
|
3607
|
-
),
|
|
3607
|
+
), kn = pe(
|
|
3608
3608
|
(e) => {
|
|
3609
3609
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3610
3610
|
if (r == null)
|
|
@@ -3626,14 +3626,14 @@ const K = (e, t) => {
|
|
|
3626
3626
|
} = t, n = W(t, [
|
|
3627
3627
|
"locale"
|
|
3628
3628
|
]);
|
|
3629
|
-
return
|
|
3629
|
+
return Vn(Ge({ locale: r }, n));
|
|
3630
3630
|
}, Wn = (e = {}) => {
|
|
3631
3631
|
var t = e, {
|
|
3632
3632
|
locale: r = M()
|
|
3633
3633
|
} = t, n = W(t, [
|
|
3634
3634
|
"locale"
|
|
3635
3635
|
]);
|
|
3636
|
-
return
|
|
3636
|
+
return kn(Ge({ locale: r }, n));
|
|
3637
3637
|
}, Zn = (e = {}) => {
|
|
3638
3638
|
var t = e, {
|
|
3639
3639
|
locale: r = M()
|
|
@@ -3643,8 +3643,8 @@ const K = (e, t) => {
|
|
|
3643
3643
|
return Xn(Ge({ locale: r }, n));
|
|
3644
3644
|
}, Qn = pe(
|
|
3645
3645
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3646
|
-
(e, t = M()) => new
|
|
3647
|
-
ignoreTag:
|
|
3646
|
+
(e, t = M()) => new vn(e, t, k().formats, {
|
|
3647
|
+
ignoreTag: k().ignoreTag
|
|
3648
3648
|
})
|
|
3649
3649
|
), Jn = (e, t = {}) => {
|
|
3650
3650
|
var r, n, i, s;
|
|
@@ -3652,16 +3652,16 @@ const K = (e, t) => {
|
|
|
3652
3652
|
typeof e == "object" && (o = e, e = o.id);
|
|
3653
3653
|
const {
|
|
3654
3654
|
values: a,
|
|
3655
|
-
locale:
|
|
3656
|
-
default:
|
|
3655
|
+
locale: h = M(),
|
|
3656
|
+
default: u
|
|
3657
3657
|
} = o;
|
|
3658
|
-
if (
|
|
3658
|
+
if (h == null)
|
|
3659
3659
|
throw new Error(
|
|
3660
3660
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3661
3661
|
);
|
|
3662
|
-
let l = Nt(e,
|
|
3662
|
+
let l = Nt(e, h);
|
|
3663
3663
|
if (!l)
|
|
3664
|
-
l = (s = (i = (n = (r =
|
|
3664
|
+
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3665
3665
|
else if (typeof l != "string")
|
|
3666
3666
|
return console.warn(
|
|
3667
3667
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3670,7 +3670,7 @@ const K = (e, t) => {
|
|
|
3670
3670
|
return l;
|
|
3671
3671
|
let c = l;
|
|
3672
3672
|
try {
|
|
3673
|
-
c = Qn(l,
|
|
3673
|
+
c = Qn(l, h).format(a);
|
|
3674
3674
|
} catch (f) {
|
|
3675
3675
|
f instanceof Error && console.warn(
|
|
3676
3676
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3678,21 +3678,21 @@ const K = (e, t) => {
|
|
|
3678
3678
|
);
|
|
3679
3679
|
}
|
|
3680
3680
|
return c;
|
|
3681
|
-
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = M()) => Nt(e, t), ti = X([
|
|
3682
|
-
X([
|
|
3683
|
-
X([
|
|
3684
|
-
X([
|
|
3685
|
-
X([
|
|
3681
|
+
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = M()) => Nt(e, t), ti = X([w, z], () => Jn);
|
|
3682
|
+
X([w], () => qn);
|
|
3683
|
+
X([w], () => Yn);
|
|
3684
|
+
X([w], () => Kn);
|
|
3685
|
+
X([w, z], () => ei);
|
|
3686
3686
|
function ri({ withLocale: e, translations: t }) {
|
|
3687
|
-
|
|
3688
|
-
r == null && (z.set(t),
|
|
3687
|
+
w.subscribe((r) => {
|
|
3688
|
+
r == null && (z.set(t), w.set(e));
|
|
3689
3689
|
});
|
|
3690
3690
|
}
|
|
3691
3691
|
function ot(e, t) {
|
|
3692
3692
|
wt(e, t);
|
|
3693
3693
|
}
|
|
3694
3694
|
function ni(e) {
|
|
3695
|
-
|
|
3695
|
+
w.set(e);
|
|
3696
3696
|
}
|
|
3697
3697
|
const at = {
|
|
3698
3698
|
en: {
|
|
@@ -3718,7 +3718,7 @@ const at = {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
};
|
|
3720
3720
|
function ii(e) {
|
|
3721
|
-
Zt(e, "svelte-
|
|
3721
|
+
Zt(e, "svelte-eck5kp", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-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}');
|
|
3722
3722
|
}
|
|
3723
3723
|
function si(e) {
|
|
3724
3724
|
let t, r, n, i, s;
|
|
@@ -3727,8 +3727,8 @@ function si(e) {
|
|
|
3727
3727
|
t = Q("div"), r = Q("div"), n = Q("span"), i = qt(
|
|
3728
3728
|
/*progressText*/
|
|
3729
3729
|
e[3]
|
|
3730
|
-
),
|
|
3731
|
-
e[4]
|
|
3730
|
+
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
|
3731
|
+
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
|
3732
3732
|
},
|
|
3733
3733
|
m(o, a) {
|
|
3734
3734
|
ft(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
|
@@ -3741,7 +3741,7 @@ function si(e) {
|
|
|
3741
3741
|
o[3]
|
|
3742
3742
|
), a & /*curTatus*/
|
|
3743
3743
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
|
3744
|
-
o[4]
|
|
3744
|
+
o[4]) && C(r, "class", s);
|
|
3745
3745
|
},
|
|
3746
3746
|
i: B,
|
|
3747
3747
|
o: B,
|
|
@@ -3753,15 +3753,15 @@ function si(e) {
|
|
|
3753
3753
|
function oi(e, t, r) {
|
|
3754
3754
|
let n;
|
|
3755
3755
|
Wt(e, ti, (p) => r(20, n = p));
|
|
3756
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status:
|
|
3756
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: h } = t, { translationurl: u = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, S, A, v = "0px", N = "active";
|
|
3757
3757
|
ri({ withLocale: "en", translations: {} });
|
|
3758
3758
|
const O = () => {
|
|
3759
|
-
fetch(
|
|
3760
|
-
Object.keys(
|
|
3761
|
-
ot(De,
|
|
3759
|
+
fetch(u).then((L) => L.json()).then((L) => {
|
|
3760
|
+
Object.keys(L).forEach((De) => {
|
|
3761
|
+
ot(De, L[De]);
|
|
3762
3762
|
});
|
|
3763
|
-
}).catch((
|
|
3764
|
-
console.log(
|
|
3763
|
+
}).catch((L) => {
|
|
3764
|
+
console.log(L);
|
|
3765
3765
|
});
|
|
3766
3766
|
};
|
|
3767
3767
|
Object.keys(at).forEach((p) => {
|
|
@@ -3773,12 +3773,12 @@ function oi(e, t, r) {
|
|
|
3773
3773
|
let p = (i / s * 100).toFixed(l);
|
|
3774
3774
|
setTimeout(
|
|
3775
3775
|
() => {
|
|
3776
|
-
o || o === "true" ? r(3,
|
|
3776
|
+
o || o === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
|
3777
3777
|
},
|
|
3778
|
-
|
|
3779
|
-
), p == 0 || p == 100 ? (S = "0px", A = "0px",
|
|
3778
|
+
y ? 573 : 0
|
|
3779
|
+
), p == 0 || p == 100 ? (S = "0px", A = "0px", v = p == 100 ? "3px" : "0px") : (S = `${f.offsetHeight}px`, H = S, A = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", S), g.style.setProperty("--halfOfTriangleHeight", A), g.style.setProperty("--stepBarBorderRadius", v);
|
|
3780
3780
|
}, $t = () => {
|
|
3781
|
-
r(4, N =
|
|
3781
|
+
r(4, N = h == "active" ? "" : "inactive");
|
|
3782
3782
|
};
|
|
3783
3783
|
function Ut(p) {
|
|
3784
3784
|
q[p ? "unshift" : "push"](() => {
|
|
@@ -3796,27 +3796,27 @@ function oi(e, t, r) {
|
|
|
3796
3796
|
});
|
|
3797
3797
|
}
|
|
3798
3798
|
return e.$$set = (p) => {
|
|
3799
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9,
|
|
3799
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9, h = p.status), "translationurl" in p && r(10, u = p.translationurl), "progressfractiondigit" in p && r(11, l = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
|
3800
3800
|
}, e.$$.update = () => {
|
|
3801
3801
|
e.$$.dirty & /*triggerreset, total*/
|
|
3802
3802
|
4160 && c && s && setTimeout(() => {
|
|
3803
3803
|
te();
|
|
3804
3804
|
}), e.$$.dirty & /*lang*/
|
|
3805
3805
|
256 && a && R(), e.$$.dirty & /*status*/
|
|
3806
|
-
512 &&
|
|
3807
|
-
1024 &&
|
|
3806
|
+
512 && h && $t(), e.$$.dirty & /*translationurl*/
|
|
3807
|
+
1024 && u && O();
|
|
3808
3808
|
}, [
|
|
3809
3809
|
f,
|
|
3810
3810
|
x,
|
|
3811
3811
|
g,
|
|
3812
|
-
|
|
3812
|
+
y,
|
|
3813
3813
|
N,
|
|
3814
3814
|
i,
|
|
3815
3815
|
s,
|
|
3816
3816
|
o,
|
|
3817
3817
|
a,
|
|
3818
|
-
u,
|
|
3819
3818
|
h,
|
|
3819
|
+
u,
|
|
3820
3820
|
l,
|
|
3821
3821
|
c,
|
|
3822
3822
|
Ut,
|
|
@@ -3831,7 +3831,7 @@ class ai extends cr {
|
|
|
3831
3831
|
t,
|
|
3832
3832
|
oi,
|
|
3833
3833
|
si,
|
|
3834
|
-
|
|
3834
|
+
ht,
|
|
3835
3835
|
{
|
|
3836
3836
|
currentstep: 5,
|
|
3837
3837
|
total: 6,
|