@everymatrix/general-icon-progress-bar 1.54.8 → 1.54.9
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-mIv2HEbp.cjs → GeneralIconProgressBar-Dbtf2ZPD.cjs} +2 -2
- package/components/{GeneralIconProgressBar-CZWl7bCY.js → GeneralIconProgressBar-RIcTdYqm.js} +69 -69
- package/components/{GeneralIconProgressBar-DHNv9GhN.js → GeneralIconProgressBar-YqbhMYw-.js} +183 -183
- 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-DHNv9GhN.js → GeneralIconProgressBar-YqbhMYw-.js}
RENAMED
@@ -159,7 +159,7 @@ function Jt(e, t) {
|
|
159
159
|
function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
160
160
|
const l = Le;
|
161
161
|
Q(e);
|
162
|
-
const
|
162
|
+
const h = e.$$ = {
|
163
163
|
fragment: null,
|
164
164
|
ctx: [],
|
165
165
|
// state
|
@@ -180,17 +180,17 @@ function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
180
180
|
skip_bound: !1,
|
181
181
|
root: t.target || l.$$.root
|
182
182
|
};
|
183
|
-
a && a(
|
184
|
-
let
|
185
|
-
if (
|
183
|
+
a && a(h.root);
|
184
|
+
let u = !1;
|
185
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
186
186
|
const g = x.length ? x[0] : f;
|
187
|
-
return
|
188
|
-
}) : [],
|
187
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u && Jt(e, c)), f;
|
188
|
+
}) : [], h.update(), u = !0, K(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
189
189
|
if (t.hydrate) {
|
190
190
|
const c = Gt(t.target);
|
191
|
-
|
191
|
+
h.fragment && h.fragment.l(c), c.forEach(we);
|
192
192
|
} else
|
193
|
-
|
193
|
+
h.fragment && h.fragment.c();
|
194
194
|
t.intro && Wt(e.$$.fragment), Zt(e, t.target, t.anchor), A();
|
195
195
|
}
|
196
196
|
Q(l);
|
@@ -244,8 +244,8 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
244
244
|
* @param {HTMLElement} target
|
245
245
|
* @param {HTMLElement} [anchor]
|
246
246
|
*/
|
247
|
-
m: function(l,
|
248
|
-
nt(l, s,
|
247
|
+
m: function(l, h) {
|
248
|
+
nt(l, s, h);
|
249
249
|
},
|
250
250
|
d: function(l) {
|
251
251
|
l && we(s);
|
@@ -420,20 +420,20 @@ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__
|
|
420
420
|
const $ = [];
|
421
421
|
function tr(e, t) {
|
422
422
|
return {
|
423
|
-
subscribe:
|
423
|
+
subscribe: he(e, t).subscribe
|
424
424
|
};
|
425
425
|
}
|
426
|
-
function
|
426
|
+
function he(e, t = T) {
|
427
427
|
let r;
|
428
428
|
const n = /* @__PURE__ */ new Set();
|
429
429
|
function i(o) {
|
430
430
|
if (tt(e, o) && (e = o, r)) {
|
431
431
|
const l = !$.length;
|
432
|
-
for (const
|
433
|
-
|
432
|
+
for (const h of n)
|
433
|
+
h[1](), $.push(h, e);
|
434
434
|
if (l) {
|
435
|
-
for (let
|
436
|
-
$[
|
435
|
+
for (let h = 0; h < $.length; h += 2)
|
436
|
+
$[h][0]($[h + 1]);
|
437
437
|
$.length = 0;
|
438
438
|
}
|
439
439
|
}
|
@@ -442,9 +442,9 @@ function ue(e, t = T) {
|
|
442
442
|
i(o(e));
|
443
443
|
}
|
444
444
|
function a(o, l = T) {
|
445
|
-
const
|
446
|
-
return n.add(
|
447
|
-
n.delete(
|
445
|
+
const h = [o, l];
|
446
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
447
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
448
448
|
};
|
449
449
|
}
|
450
450
|
return { set: i, update: s, subscribe: a };
|
@@ -456,22 +456,22 @@ function k(e, t, r) {
|
|
456
456
|
const s = t.length < 2;
|
457
457
|
return tr(r, (a, o) => {
|
458
458
|
let l = !1;
|
459
|
-
const
|
460
|
-
let
|
459
|
+
const h = [];
|
460
|
+
let u = 0, c = T;
|
461
461
|
const f = () => {
|
462
|
-
if (
|
462
|
+
if (u)
|
463
463
|
return;
|
464
464
|
c();
|
465
|
-
const g = t(n ?
|
465
|
+
const g = t(n ? h[0] : h, a, o);
|
466
466
|
s ? a(g) : c = Ie(g) ? g : T;
|
467
467
|
}, x = i.map(
|
468
468
|
(g, y) => rt(
|
469
469
|
g,
|
470
470
|
(H) => {
|
471
|
-
|
471
|
+
h[y] = H, u &= ~(1 << y), l && f();
|
472
472
|
},
|
473
473
|
() => {
|
474
|
-
|
474
|
+
u |= 1 << y;
|
475
475
|
}
|
476
476
|
)
|
477
477
|
);
|
@@ -491,17 +491,17 @@ function ir(e) {
|
|
491
491
|
}
|
492
492
|
function sr(e) {
|
493
493
|
var t = Object.prototype.toString.call(e);
|
494
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
494
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
495
495
|
}
|
496
496
|
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
497
|
-
function
|
497
|
+
function hr(e) {
|
498
498
|
return e.$$typeof === ar;
|
499
499
|
}
|
500
|
-
function
|
500
|
+
function ur(e) {
|
501
501
|
return Array.isArray(e) ? [] : {};
|
502
502
|
}
|
503
503
|
function q(e, t) {
|
504
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
504
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(ur(e), e, t) : e;
|
505
505
|
}
|
506
506
|
function lr(e, t, r) {
|
507
507
|
return e.concat(t).map(function(n) {
|
@@ -552,8 +552,8 @@ D.all = function(t, r) {
|
|
552
552
|
return D(n, i, r);
|
553
553
|
}, {});
|
554
554
|
};
|
555
|
-
var
|
556
|
-
const gr = /* @__PURE__ */ rr(
|
555
|
+
var br = D, dr = br;
|
556
|
+
const gr = /* @__PURE__ */ rr(dr);
|
557
557
|
var ve = function(e, t) {
|
558
558
|
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
559
559
|
r.__proto__ = n;
|
@@ -561,7 +561,7 @@ var ve = function(e, t) {
|
|
561
561
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
562
562
|
}, ve(e, t);
|
563
563
|
};
|
564
|
-
function
|
564
|
+
function ue(e, t) {
|
565
565
|
if (typeof t != "function" && t !== null)
|
566
566
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
567
567
|
ve(e, t);
|
@@ -570,14 +570,14 @@ function he(e, t) {
|
|
570
570
|
}
|
571
571
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
572
572
|
}
|
573
|
-
var
|
574
|
-
return
|
573
|
+
var d = function() {
|
574
|
+
return d = Object.assign || function(t) {
|
575
575
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
576
576
|
r = arguments[n];
|
577
577
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
578
578
|
}
|
579
579
|
return t;
|
580
|
-
},
|
580
|
+
}, d.apply(this, arguments);
|
581
581
|
};
|
582
582
|
function xr(e, t) {
|
583
583
|
var r = {};
|
@@ -592,7 +592,7 @@ function me(e, t, r) {
|
|
592
592
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
593
593
|
return e.concat(s || Array.prototype.slice.call(t));
|
594
594
|
}
|
595
|
-
function
|
595
|
+
function be(e, t) {
|
596
596
|
var r = t && t.cache ? t.cache : Br, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
597
597
|
return i(e, {
|
598
598
|
cache: r,
|
@@ -638,7 +638,7 @@ var Hr = function() {
|
|
638
638
|
create: function() {
|
639
639
|
return new Tr();
|
640
640
|
}
|
641
|
-
},
|
641
|
+
}, de = {
|
642
642
|
variadic: vr
|
643
643
|
}, m;
|
644
644
|
(function(e) {
|
@@ -658,10 +658,10 @@ function De(e) {
|
|
658
658
|
function Sr(e) {
|
659
659
|
return e.type === E.argument;
|
660
660
|
}
|
661
|
-
function
|
661
|
+
function ht(e) {
|
662
662
|
return e.type === E.number;
|
663
663
|
}
|
664
|
-
function
|
664
|
+
function ut(e) {
|
665
665
|
return e.type === E.date;
|
666
666
|
}
|
667
667
|
function lt(e) {
|
@@ -685,7 +685,7 @@ function mt(e) {
|
|
685
685
|
function He(e) {
|
686
686
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
687
687
|
}
|
688
|
-
var
|
688
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
|
689
689
|
function Or(e) {
|
690
690
|
var t = {};
|
691
691
|
return e.replace(Pr, function(r) {
|
@@ -787,8 +787,8 @@ function Ir(e) {
|
|
787
787
|
var s = i[n], a = s.split("/");
|
788
788
|
if (a.length === 0)
|
789
789
|
throw new Error("Invalid number skeleton");
|
790
|
-
for (var o = a[0], l = a.slice(1),
|
791
|
-
var c = h
|
790
|
+
for (var o = a[0], l = a.slice(1), h = 0, u = l; h < u.length; h++) {
|
791
|
+
var c = u[h];
|
792
792
|
if (c.length === 0)
|
793
793
|
throw new Error("Invalid number skeleton");
|
794
794
|
}
|
@@ -799,10 +799,10 @@ function Ir(e) {
|
|
799
799
|
function wr(e) {
|
800
800
|
return e.replace(/^(.*?)-/, "");
|
801
801
|
}
|
802
|
-
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
802
|
+
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, gt = /^(0+)$/;
|
803
803
|
function je(e) {
|
804
804
|
var t = {};
|
805
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
805
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dt, function(r, n, i) {
|
806
806
|
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
807
|
}), t;
|
808
808
|
}
|
@@ -899,13 +899,13 @@ function Mr(e) {
|
|
899
899
|
t.notation = "compact", t.compactDisplay = "long";
|
900
900
|
continue;
|
901
901
|
case "scientific":
|
902
|
-
t =
|
903
|
-
return
|
902
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
903
|
+
return d(d({}, l), Ve(h));
|
904
904
|
}, {}));
|
905
905
|
continue;
|
906
906
|
case "engineering":
|
907
|
-
t =
|
908
|
-
return
|
907
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
908
|
+
return d(d({}, l), Ve(h));
|
909
909
|
}, {}));
|
910
910
|
continue;
|
911
911
|
case "notation-simple":
|
@@ -950,9 +950,9 @@ function Mr(e) {
|
|
950
950
|
case "integer-width":
|
951
951
|
if (i.options.length > 1)
|
952
952
|
throw new RangeError("integer-width stems only accept a single optional option");
|
953
|
-
i.options[0].replace(Lr, function(l,
|
954
|
-
if (
|
955
|
-
t.minimumIntegerDigits =
|
953
|
+
i.options[0].replace(Lr, function(l, h, u, c, f, x) {
|
954
|
+
if (h)
|
955
|
+
t.minimumIntegerDigits = u.length;
|
956
956
|
else {
|
957
957
|
if (c && f)
|
958
958
|
throw new Error("We currently do not support maximum integer digits");
|
@@ -970,21 +970,21 @@ function Mr(e) {
|
|
970
970
|
if (Fe.test(i.stem)) {
|
971
971
|
if (i.options.length > 1)
|
972
972
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
973
|
-
i.stem.replace(Fe, function(l,
|
974
|
-
return
|
973
|
+
i.stem.replace(Fe, function(l, h, u, c, f, x) {
|
974
|
+
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
975
|
});
|
976
976
|
var s = i.options[0];
|
977
|
-
s === "w" ? t =
|
977
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), je(s)));
|
978
978
|
continue;
|
979
979
|
}
|
980
|
-
if (
|
981
|
-
t =
|
980
|
+
if (dt.test(i.stem)) {
|
981
|
+
t = d(d({}, t), je(i.stem));
|
982
982
|
continue;
|
983
983
|
}
|
984
984
|
var a = xt(i.stem);
|
985
|
-
a && (t =
|
985
|
+
a && (t = d(d({}, t), a));
|
986
986
|
var o = Cr(i.stem);
|
987
|
-
o && (t =
|
987
|
+
o && (t = d(d({}, t), o));
|
988
988
|
}
|
989
989
|
return t;
|
990
990
|
}
|
@@ -2409,11 +2409,11 @@ function Rr(e, t) {
|
|
2409
2409
|
if (i === "j") {
|
2410
2410
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2411
2411
|
s++, n++;
|
2412
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
2413
|
-
for ((
|
2412
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = $r(t);
|
2413
|
+
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
2414
2414
|
r += l;
|
2415
2415
|
for (; a-- > 0; )
|
2416
|
-
r =
|
2416
|
+
r = h + r;
|
2417
2417
|
} else i === "J" ? r += "H" : r += i;
|
2418
2418
|
}
|
2419
2419
|
return r;
|
@@ -2440,8 +2440,8 @@ function $r(e) {
|
|
2440
2440
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2441
2441
|
return i[0];
|
2442
2442
|
}
|
2443
|
-
var ge, Ur = new RegExp("^".concat(
|
2444
|
-
function
|
2443
|
+
var ge, Ur = new RegExp("^".concat(bt.source, "*")), Gr = new RegExp("".concat(bt.source, "*$"));
|
2444
|
+
function b(e, t) {
|
2445
2445
|
return { start: e, end: t };
|
2446
2446
|
}
|
2447
2447
|
var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, jr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Wr = zr ? Number.isSafeInteger : function(e) {
|
@@ -2569,12 +2569,12 @@ var qr = (
|
|
2569
2569
|
var o = this.clonePosition();
|
2570
2570
|
this.bump(), i.push({
|
2571
2571
|
type: E.pound,
|
2572
|
-
location:
|
2572
|
+
location: b(o, this.clonePosition())
|
2573
2573
|
});
|
2574
2574
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2575
2575
|
if (n)
|
2576
2576
|
break;
|
2577
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2577
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2578
2578
|
} else if (s === 60 && !this.ignoreTag && Ae(this.peek() || 0)) {
|
2579
2579
|
var a = this.parseTag(t, r);
|
2580
2580
|
if (a.err)
|
@@ -2598,7 +2598,7 @@ var qr = (
|
|
2598
2598
|
val: {
|
2599
2599
|
type: E.literal,
|
2600
2600
|
value: "<".concat(i, "/>"),
|
2601
|
-
location:
|
2601
|
+
location: b(n, this.clonePosition())
|
2602
2602
|
},
|
2603
2603
|
err: null
|
2604
2604
|
};
|
@@ -2609,21 +2609,21 @@ var qr = (
|
|
2609
2609
|
var a = s.val, o = this.clonePosition();
|
2610
2610
|
if (this.bumpIf("</")) {
|
2611
2611
|
if (this.isEOF() || !Ae(this.char()))
|
2612
|
-
return this.error(m.INVALID_TAG,
|
2613
|
-
var l = this.clonePosition(),
|
2614
|
-
return i !==
|
2612
|
+
return this.error(m.INVALID_TAG, b(o, this.clonePosition()));
|
2613
|
+
var l = this.clonePosition(), h = this.parseTagName();
|
2614
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2615
2615
|
val: {
|
2616
2616
|
type: E.tag,
|
2617
2617
|
value: i,
|
2618
2618
|
children: a,
|
2619
|
-
location:
|
2619
|
+
location: b(n, this.clonePosition())
|
2620
2620
|
},
|
2621
2621
|
err: null
|
2622
|
-
} : this.error(m.INVALID_TAG,
|
2622
|
+
} : this.error(m.INVALID_TAG, b(o, this.clonePosition())));
|
2623
2623
|
} else
|
2624
|
-
return this.error(m.UNCLOSED_TAG,
|
2624
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
2625
2625
|
} else
|
2626
|
-
return this.error(m.INVALID_TAG,
|
2626
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2627
2627
|
}, e.prototype.parseTagName = function() {
|
2628
2628
|
var t = this.offset();
|
2629
2629
|
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
@@ -2648,7 +2648,7 @@ var qr = (
|
|
2648
2648
|
}
|
2649
2649
|
break;
|
2650
2650
|
}
|
2651
|
-
var l =
|
2651
|
+
var l = b(n, this.clonePosition());
|
2652
2652
|
return {
|
2653
2653
|
val: { type: E.literal, value: i, location: l },
|
2654
2654
|
err: null
|
@@ -2698,14 +2698,14 @@ var qr = (
|
|
2698
2698
|
}, e.prototype.parseArgument = function(t, r) {
|
2699
2699
|
var n = this.clonePosition();
|
2700
2700
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2701
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2701
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2702
2702
|
if (this.char() === 125)
|
2703
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2703
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
2704
2704
|
var i = this.parseIdentifierIfPossible().value;
|
2705
2705
|
if (!i)
|
2706
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2706
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2707
2707
|
if (this.bumpSpace(), this.isEOF())
|
2708
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2708
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2709
2709
|
switch (this.char()) {
|
2710
2710
|
case 125:
|
2711
2711
|
return this.bump(), {
|
@@ -2713,49 +2713,49 @@ var qr = (
|
|
2713
2713
|
type: E.argument,
|
2714
2714
|
// value does not include the opening and closing braces.
|
2715
2715
|
value: i,
|
2716
|
-
location:
|
2716
|
+
location: b(n, this.clonePosition())
|
2717
2717
|
},
|
2718
2718
|
err: null
|
2719
2719
|
};
|
2720
2720
|
case 44:
|
2721
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2721
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2722
2722
|
default:
|
2723
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2723
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2724
2724
|
}
|
2725
2725
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2726
2726
|
var t = this.clonePosition(), r = this.offset(), n = Se(this.message, r), i = r + n.length;
|
2727
2727
|
this.bumpTo(i);
|
2728
|
-
var s = this.clonePosition(), a =
|
2728
|
+
var s = this.clonePosition(), a = b(t, s);
|
2729
2729
|
return { value: n, location: a };
|
2730
2730
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2731
2731
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
2732
2732
|
switch (o) {
|
2733
2733
|
case "":
|
2734
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2734
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
|
2735
2735
|
case "number":
|
2736
2736
|
case "date":
|
2737
2737
|
case "time": {
|
2738
2738
|
this.bumpSpace();
|
2739
|
-
var
|
2739
|
+
var h = null;
|
2740
2740
|
if (this.bumpIf(",")) {
|
2741
2741
|
this.bumpSpace();
|
2742
|
-
var
|
2742
|
+
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2743
2743
|
if (c.err)
|
2744
2744
|
return c;
|
2745
2745
|
var f = Jr(c.val);
|
2746
2746
|
if (f.length === 0)
|
2747
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2748
|
-
var x =
|
2749
|
-
|
2747
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2748
|
+
var x = b(u, this.clonePosition());
|
2749
|
+
h = { style: f, styleLocation: x };
|
2750
2750
|
}
|
2751
2751
|
var g = this.tryParseArgumentClose(i);
|
2752
2752
|
if (g.err)
|
2753
2753
|
return g;
|
2754
|
-
var y =
|
2755
|
-
if (
|
2756
|
-
var H = Qr(
|
2754
|
+
var y = b(i, this.clonePosition());
|
2755
|
+
if (h && ke(h?.style, "::", 0)) {
|
2756
|
+
var H = Qr(h.style.slice(2));
|
2757
2757
|
if (o === "number") {
|
2758
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2758
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2759
2759
|
return c.err ? c : {
|
2760
2760
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2761
2761
|
err: null
|
@@ -2768,7 +2768,7 @@ var qr = (
|
|
2768
2768
|
var f = {
|
2769
2769
|
type: F.dateTime,
|
2770
2770
|
pattern: B,
|
2771
|
-
location:
|
2771
|
+
location: h.styleLocation,
|
2772
2772
|
parsedOptions: this.shouldParseSkeletons ? Or(B) : {}
|
2773
2773
|
}, S = o === "date" ? E.date : E.time;
|
2774
2774
|
return {
|
@@ -2782,7 +2782,7 @@ var qr = (
|
|
2782
2782
|
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
2783
2783
|
value: n,
|
2784
2784
|
location: y,
|
2785
|
-
style: (s =
|
2785
|
+
style: (s = h?.style) !== null && s !== void 0 ? s : null
|
2786
2786
|
},
|
2787
2787
|
err: null
|
2788
2788
|
};
|
@@ -2792,12 +2792,12 @@ var qr = (
|
|
2792
2792
|
case "select": {
|
2793
2793
|
var v = this.clonePosition();
|
2794
2794
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2795
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2795
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2796
2796
|
this.bumpSpace();
|
2797
2797
|
var O = this.parseIdentifierIfPossible(), P = 0;
|
2798
2798
|
if (o !== "select" && O.value === "offset") {
|
2799
2799
|
if (!this.bumpIf(":"))
|
2800
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2800
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2801
2801
|
this.bumpSpace();
|
2802
2802
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2803
2803
|
if (c.err)
|
@@ -2810,7 +2810,7 @@ var qr = (
|
|
2810
2810
|
var g = this.tryParseArgumentClose(i);
|
2811
2811
|
if (g.err)
|
2812
2812
|
return g;
|
2813
|
-
var ee =
|
2813
|
+
var ee = b(i, this.clonePosition());
|
2814
2814
|
return o === "select" ? {
|
2815
2815
|
val: {
|
2816
2816
|
type: E.select,
|
@@ -2832,10 +2832,10 @@ var qr = (
|
|
2832
2832
|
};
|
2833
2833
|
}
|
2834
2834
|
default:
|
2835
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2835
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(a, l));
|
2836
2836
|
}
|
2837
2837
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2838
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2838
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2839
2839
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2840
2840
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2841
2841
|
var n = this.char();
|
@@ -2844,7 +2844,7 @@ var qr = (
|
|
2844
2844
|
this.bump();
|
2845
2845
|
var i = this.clonePosition();
|
2846
2846
|
if (!this.bumpUntil("'"))
|
2847
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2847
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
2848
2848
|
this.bump();
|
2849
2849
|
break;
|
2850
2850
|
}
|
@@ -2888,23 +2888,23 @@ var qr = (
|
|
2888
2888
|
err: null
|
2889
2889
|
};
|
2890
2890
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2891
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
2892
|
-
if (
|
2891
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
|
2892
|
+
if (h.length === 0) {
|
2893
2893
|
var c = this.clonePosition();
|
2894
2894
|
if (r !== "select" && this.bumpIf("=")) {
|
2895
2895
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2896
2896
|
if (f.err)
|
2897
2897
|
return f;
|
2898
|
-
|
2898
|
+
u = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2899
2899
|
} else
|
2900
2900
|
break;
|
2901
2901
|
}
|
2902
|
-
if (l.has(
|
2903
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
2904
|
-
|
2902
|
+
if (l.has(h))
|
2903
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
2904
|
+
h === "other" && (a = !0), this.bumpSpace();
|
2905
2905
|
var x = this.clonePosition();
|
2906
2906
|
if (!this.bumpIf("{"))
|
2907
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2907
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2908
2908
|
var g = this.parseMessage(t + 1, r, n);
|
2909
2909
|
if (g.err)
|
2910
2910
|
return g;
|
@@ -2912,14 +2912,14 @@ var qr = (
|
|
2912
2912
|
if (y.err)
|
2913
2913
|
return y;
|
2914
2914
|
o.push([
|
2915
|
-
|
2915
|
+
h,
|
2916
2916
|
{
|
2917
2917
|
value: g.val,
|
2918
|
-
location:
|
2918
|
+
location: b(x, this.clonePosition())
|
2919
2919
|
}
|
2920
|
-
]), l.add(
|
2920
|
+
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
2921
2921
|
}
|
2922
|
-
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
2922
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
2923
2923
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2924
2924
|
var n = 1, i = this.clonePosition();
|
2925
2925
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2930,7 +2930,7 @@ var qr = (
|
|
2930
2930
|
else
|
2931
2931
|
break;
|
2932
2932
|
}
|
2933
|
-
var l =
|
2933
|
+
var l = b(i, this.clonePosition());
|
2934
2934
|
return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2935
2935
|
}, e.prototype.offset = function() {
|
2936
2936
|
return this.position.offset;
|
@@ -3017,11 +3017,11 @@ function Pe(e) {
|
|
3017
3017
|
if (delete t.location, ft(t) || ct(t))
|
3018
3018
|
for (var r in t.options)
|
3019
3019
|
delete t.options[r].location, Pe(t.options[r].value);
|
3020
|
-
else
|
3020
|
+
else ht(t) && mt(t.style) || (ut(t) || lt(t)) && He(t.style) ? delete t.style.location : pt(t) && Pe(t.children);
|
3021
3021
|
});
|
3022
3022
|
}
|
3023
3023
|
function tn(e, t) {
|
3024
|
-
t === void 0 && (t = {}), t =
|
3024
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3025
3025
|
var r = new qr(e, t).parse();
|
3026
3026
|
if (r.err) {
|
3027
3027
|
var n = SyntaxError(m[r.err.kind]);
|
@@ -3036,7 +3036,7 @@ var j;
|
|
3036
3036
|
var le = (
|
3037
3037
|
/** @class */
|
3038
3038
|
function(e) {
|
3039
|
-
|
3039
|
+
ue(t, e);
|
3040
3040
|
function t(r, n, i) {
|
3041
3041
|
var s = e.call(this, r) || this;
|
3042
3042
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3048,7 +3048,7 @@ var le = (
|
|
3048
3048
|
), We = (
|
3049
3049
|
/** @class */
|
3050
3050
|
function(e) {
|
3051
|
-
|
3051
|
+
ue(t, e);
|
3052
3052
|
function t(r, n, i, s) {
|
3053
3053
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
3054
3054
|
}
|
@@ -3057,7 +3057,7 @@ var le = (
|
|
3057
3057
|
), rn = (
|
3058
3058
|
/** @class */
|
3059
3059
|
function(e) {
|
3060
|
-
|
3060
|
+
ue(t, e);
|
3061
3061
|
function t(r, n, i) {
|
3062
3062
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
3063
3063
|
}
|
@@ -3066,7 +3066,7 @@ var le = (
|
|
3066
3066
|
), nn = (
|
3067
3067
|
/** @class */
|
3068
3068
|
function(e) {
|
3069
|
-
|
3069
|
+
ue(t, e);
|
3070
3070
|
function t(r, n) {
|
3071
3071
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
3072
3072
|
}
|
@@ -3093,59 +3093,59 @@ function ie(e, t, r, n, i, s, a) {
|
|
3093
3093
|
value: e[0].value
|
3094
3094
|
}
|
3095
3095
|
];
|
3096
|
-
for (var o = [], l = 0,
|
3097
|
-
var
|
3098
|
-
if (De(
|
3096
|
+
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
3097
|
+
var u = h[l];
|
3098
|
+
if (De(u)) {
|
3099
3099
|
o.push({
|
3100
3100
|
type: _.literal,
|
3101
|
-
value:
|
3101
|
+
value: u.value
|
3102
3102
|
});
|
3103
3103
|
continue;
|
3104
3104
|
}
|
3105
|
-
if (Ar(
|
3105
|
+
if (Ar(u)) {
|
3106
3106
|
typeof s == "number" && o.push({
|
3107
3107
|
type: _.literal,
|
3108
3108
|
value: r.getNumberFormat(t).format(s)
|
3109
3109
|
});
|
3110
3110
|
continue;
|
3111
3111
|
}
|
3112
|
-
var c =
|
3112
|
+
var c = u.value;
|
3113
3113
|
if (!(i && c in i))
|
3114
3114
|
throw new nn(c, a);
|
3115
3115
|
var f = i[c];
|
3116
|
-
if (Sr(
|
3116
|
+
if (Sr(u)) {
|
3117
3117
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3118
3118
|
type: typeof f == "string" ? _.literal : _.object,
|
3119
3119
|
value: f
|
3120
3120
|
});
|
3121
3121
|
continue;
|
3122
3122
|
}
|
3123
|
-
if (
|
3124
|
-
var x = typeof
|
3123
|
+
if (ut(u)) {
|
3124
|
+
var x = typeof u.style == "string" ? n.date[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
|
3125
3125
|
o.push({
|
3126
3126
|
type: _.literal,
|
3127
3127
|
value: r.getDateTimeFormat(t, x).format(f)
|
3128
3128
|
});
|
3129
3129
|
continue;
|
3130
3130
|
}
|
3131
|
-
if (lt(
|
3132
|
-
var x = typeof
|
3131
|
+
if (lt(u)) {
|
3132
|
+
var x = typeof u.style == "string" ? n.time[u.style] : He(u.style) ? u.style.parsedOptions : n.time.medium;
|
3133
3133
|
o.push({
|
3134
3134
|
type: _.literal,
|
3135
3135
|
value: r.getDateTimeFormat(t, x).format(f)
|
3136
3136
|
});
|
3137
3137
|
continue;
|
3138
3138
|
}
|
3139
|
-
if (
|
3140
|
-
var x = typeof
|
3139
|
+
if (ht(u)) {
|
3140
|
+
var x = typeof u.style == "string" ? n.number[u.style] : mt(u.style) ? u.style.parsedOptions : void 0;
|
3141
3141
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3142
3142
|
type: _.literal,
|
3143
3143
|
value: r.getNumberFormat(t, x).format(f)
|
3144
3144
|
});
|
3145
3145
|
continue;
|
3146
3146
|
}
|
3147
|
-
if (pt(
|
3148
|
-
var g =
|
3147
|
+
if (pt(u)) {
|
3148
|
+
var g = u.children, y = u.value, H = i[y];
|
3149
3149
|
if (!on(H))
|
3150
3150
|
throw new rn(y, "function", a);
|
3151
3151
|
var B = ie(g, t, r, n, i, s), S = H(B.map(function(P) {
|
@@ -3158,40 +3158,40 @@ function ie(e, t, r, n, i, s, a) {
|
|
3158
3158
|
};
|
3159
3159
|
}));
|
3160
3160
|
}
|
3161
|
-
if (ft(
|
3162
|
-
var v =
|
3161
|
+
if (ft(u)) {
|
3162
|
+
var v = u.options[f] || u.options.other;
|
3163
3163
|
if (!v)
|
3164
|
-
throw new We(
|
3164
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3165
3165
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3166
3166
|
continue;
|
3167
3167
|
}
|
3168
|
-
if (ct(
|
3169
|
-
var v =
|
3168
|
+
if (ct(u)) {
|
3169
|
+
var v = u.options["=".concat(f)];
|
3170
3170
|
if (!v) {
|
3171
3171
|
if (!Intl.PluralRules)
|
3172
3172
|
throw new le(`Intl.PluralRules is not available in this environment.
|
3173
3173
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3174
3174
|
`, j.MISSING_INTL_API, a);
|
3175
|
-
var O = r.getPluralRules(t, { type:
|
3176
|
-
v =
|
3175
|
+
var O = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3176
|
+
v = u.options[O] || u.options.other;
|
3177
3177
|
}
|
3178
3178
|
if (!v)
|
3179
|
-
throw new We(
|
3180
|
-
o.push.apply(o, ie(v.value, t, r, n, i, f - (
|
3179
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3180
|
+
o.push.apply(o, ie(v.value, t, r, n, i, f - (u.offset || 0)));
|
3181
3181
|
continue;
|
3182
3182
|
}
|
3183
3183
|
}
|
3184
3184
|
return sn(o);
|
3185
3185
|
}
|
3186
3186
|
function an(e, t) {
|
3187
|
-
return t ?
|
3188
|
-
return r[n] =
|
3187
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3188
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3189
3189
|
}, {})) : e;
|
3190
3190
|
}
|
3191
|
-
function
|
3191
|
+
function hn(e, t) {
|
3192
3192
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3193
3193
|
return r[n] = an(e[n], t[n]), r;
|
3194
|
-
},
|
3194
|
+
}, d({}, e)) : e;
|
3195
3195
|
}
|
3196
3196
|
function xe(e) {
|
3197
3197
|
return {
|
@@ -3207,35 +3207,35 @@ function xe(e) {
|
|
3207
3207
|
}
|
3208
3208
|
};
|
3209
3209
|
}
|
3210
|
-
function
|
3210
|
+
function un(e) {
|
3211
3211
|
return e === void 0 && (e = {
|
3212
3212
|
number: {},
|
3213
3213
|
dateTime: {},
|
3214
3214
|
pluralRules: {}
|
3215
3215
|
}), {
|
3216
|
-
getNumberFormat:
|
3216
|
+
getNumberFormat: be(function() {
|
3217
3217
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3218
3218
|
r[n] = arguments[n];
|
3219
3219
|
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
3220
3220
|
}, {
|
3221
3221
|
cache: xe(e.number),
|
3222
|
-
strategy:
|
3222
|
+
strategy: de.variadic
|
3223
3223
|
}),
|
3224
|
-
getDateTimeFormat:
|
3224
|
+
getDateTimeFormat: be(function() {
|
3225
3225
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3226
3226
|
r[n] = arguments[n];
|
3227
3227
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
3228
3228
|
}, {
|
3229
3229
|
cache: xe(e.dateTime),
|
3230
|
-
strategy:
|
3230
|
+
strategy: de.variadic
|
3231
3231
|
}),
|
3232
|
-
getPluralRules:
|
3232
|
+
getPluralRules: be(function() {
|
3233
3233
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3234
3234
|
r[n] = arguments[n];
|
3235
3235
|
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
3236
3236
|
}, {
|
3237
3237
|
cache: xe(e.pluralRules),
|
3238
|
-
strategy:
|
3238
|
+
strategy: de.variadic
|
3239
3239
|
})
|
3240
3240
|
};
|
3241
3241
|
}
|
@@ -3250,13 +3250,13 @@ var ln = (
|
|
3250
3250
|
dateTime: {},
|
3251
3251
|
pluralRules: {}
|
3252
3252
|
}, this.format = function(l) {
|
3253
|
-
var
|
3254
|
-
if (
|
3255
|
-
return
|
3256
|
-
var
|
3253
|
+
var h = s.formatToParts(l);
|
3254
|
+
if (h.length === 1)
|
3255
|
+
return h[0].value;
|
3256
|
+
var u = h.reduce(function(c, f) {
|
3257
3257
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3258
3258
|
}, []);
|
3259
|
-
return
|
3259
|
+
return u.length <= 1 ? u[0] || "" : u;
|
3260
3260
|
}, this.formatToParts = function(l) {
|
3261
3261
|
return ie(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
3262
3262
|
}, this.resolvedOptions = function() {
|
@@ -3272,12 +3272,12 @@ var ln = (
|
|
3272
3272
|
var a = i || {};
|
3273
3273
|
a.formatters;
|
3274
3274
|
var o = xr(a, ["formatters"]);
|
3275
|
-
this.ast = e.__parse(t,
|
3275
|
+
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
3276
3276
|
} else
|
3277
3277
|
this.ast = t;
|
3278
3278
|
if (!Array.isArray(this.ast))
|
3279
3279
|
throw new TypeError("A message must be provided as a String or AST.");
|
3280
|
-
this.formats =
|
3280
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
3281
3281
|
}
|
3282
3282
|
return Object.defineProperty(e, "defaultLocale", {
|
3283
3283
|
get: function() {
|
@@ -3385,7 +3385,7 @@ const N = {}, cn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][
|
|
3385
3385
|
}
|
3386
3386
|
};
|
3387
3387
|
let Ce;
|
3388
|
-
const X =
|
3388
|
+
const X = he({});
|
3389
3389
|
function pn(e) {
|
3390
3390
|
return Ce[e] || null;
|
3391
3391
|
}
|
@@ -3398,7 +3398,7 @@ function mn(e, t) {
|
|
3398
3398
|
const r = pn(e);
|
3399
3399
|
return fn(r, t);
|
3400
3400
|
}
|
3401
|
-
function
|
3401
|
+
function bn(e) {
|
3402
3402
|
if (e == null)
|
3403
3403
|
return;
|
3404
3404
|
const t = fe(e);
|
@@ -3417,7 +3417,7 @@ k(
|
|
3417
3417
|
);
|
3418
3418
|
X.subscribe((e) => Ce = e);
|
3419
3419
|
const se = {};
|
3420
|
-
function
|
3420
|
+
function dn(e, t) {
|
3421
3421
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3422
3422
|
}
|
3423
3423
|
function Bt(e) {
|
@@ -3439,7 +3439,7 @@ function Oe(e) {
|
|
3439
3439
|
}
|
3440
3440
|
function xn(e, t) {
|
3441
3441
|
return Promise.all(
|
3442
|
-
t.map((n) => (
|
3442
|
+
t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
|
3443
3443
|
).then((n) => Tt(e, ...n));
|
3444
3444
|
}
|
3445
3445
|
const W = {};
|
@@ -3497,7 +3497,7 @@ const En = {
|
|
3497
3497
|
function V() {
|
3498
3498
|
return _n;
|
3499
3499
|
}
|
3500
|
-
const Ee =
|
3500
|
+
const Ee = he(!1);
|
3501
3501
|
var vn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
|
3502
3502
|
for (var r in t || (t = {}))
|
3503
3503
|
Bn.call(t, r) && Qe(e, r, t[r]);
|
@@ -3507,7 +3507,7 @@ var vn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwn
|
|
3507
3507
|
return e;
|
3508
3508
|
}, Pn = (e, t) => Hn(e, Tn(t));
|
3509
3509
|
let Ne;
|
3510
|
-
const oe =
|
3510
|
+
const oe = he(null);
|
3511
3511
|
function Je(e) {
|
3512
3512
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3513
3513
|
}
|
@@ -3522,7 +3522,7 @@ oe.subscribe((e) => {
|
|
3522
3522
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3523
3523
|
});
|
3524
3524
|
const On = (e) => {
|
3525
|
-
if (e &&
|
3525
|
+
if (e && bn(e) && Oe(e)) {
|
3526
3526
|
const { loadingDelay: t } = V();
|
3527
3527
|
let r;
|
3528
3528
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
@@ -3621,24 +3621,24 @@ const Y = (e, t) => {
|
|
3621
3621
|
const {
|
3622
3622
|
values: o,
|
3623
3623
|
locale: l = C(),
|
3624
|
-
default:
|
3624
|
+
default: h
|
3625
3625
|
} = a;
|
3626
3626
|
if (l == null)
|
3627
3627
|
throw new Error(
|
3628
3628
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3629
3629
|
);
|
3630
|
-
let
|
3631
|
-
if (!
|
3632
|
-
|
3633
|
-
else if (typeof
|
3630
|
+
let u = vt(e, l);
|
3631
|
+
if (!u)
|
3632
|
+
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
|
+
else if (typeof u != "string")
|
3634
3634
|
return console.warn(
|
3635
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3636
|
-
),
|
3635
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3636
|
+
), u;
|
3637
3637
|
if (!o)
|
3638
|
-
return
|
3639
|
-
let c =
|
3638
|
+
return u;
|
3639
|
+
let c = u;
|
3640
3640
|
try {
|
3641
|
-
c = $n(
|
3641
|
+
c = $n(u, l).format(o);
|
3642
3642
|
} catch (f) {
|
3643
3643
|
f instanceof Error && console.warn(
|
3644
3644
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3724,10 +3724,10 @@ function Wn(e) {
|
|
3724
3724
|
function Zn(e, t, r) {
|
3725
3725
|
let n;
|
3726
3726
|
Ct(e, Vn, (p) => r(20, n = p));
|
3727
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl:
|
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, S, v = "0px", O = "active";
|
3728
3728
|
kn({ withLocale: "en", translations: {} });
|
3729
3729
|
const P = () => {
|
3730
|
-
fetch(
|
3730
|
+
fetch(h).then((w) => w.json()).then((w) => {
|
3731
3731
|
Object.keys(w).forEach((Re) => {
|
3732
3732
|
Ye(Re, w[Re]);
|
3733
3733
|
});
|
@@ -3741,7 +3741,7 @@ function Zn(e, t, r) {
|
|
3741
3741
|
const M = () => {
|
3742
3742
|
Xn(o);
|
3743
3743
|
}, ee = () => {
|
3744
|
-
let p = (i / s * 100).toFixed(
|
3744
|
+
let p = (i / s * 100).toFixed(u);
|
3745
3745
|
setTimeout(
|
3746
3746
|
() => {
|
3747
3747
|
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
@@ -3767,7 +3767,7 @@ function Zn(e, t, r) {
|
|
3767
3767
|
});
|
3768
3768
|
}
|
3769
3769
|
return e.$$set = (p) => {
|
3770
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10,
|
3770
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10, h = p.translationurl), "progressfractiondigit" in p && r(11, u = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3771
3771
|
}, e.$$.update = () => {
|
3772
3772
|
e.$$.dirty & /*triggerreset, total*/
|
3773
3773
|
4160 && c && s && setTimeout(() => {
|
@@ -3775,7 +3775,7 @@ function Zn(e, t, r) {
|
|
3775
3775
|
}), e.$$.dirty & /*lang*/
|
3776
3776
|
256 && o && M(), e.$$.dirty & /*status*/
|
3777
3777
|
512 && l && Ot(), e.$$.dirty & /*translationurl*/
|
3778
|
-
1024 &&
|
3778
|
+
1024 && h && P();
|
3779
3779
|
}, [
|
3780
3780
|
f,
|
3781
3781
|
x,
|
@@ -3787,8 +3787,8 @@ function Zn(e, t, r) {
|
|
3787
3787
|
a,
|
3788
3788
|
o,
|
3789
3789
|
l,
|
3790
|
-
u,
|
3791
3790
|
h,
|
3791
|
+
u,
|
3792
3792
|
c,
|
3793
3793
|
Nt,
|
3794
3794
|
It,
|