@everymatrix/general-logout 1.54.8 → 1.54.10
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/{GeneralLogout-B1IrAlCT.js → GeneralLogout-DEjIkV1X.js} +100 -100
- package/components/{GeneralLogout-DwG5Og50.js → GeneralLogout-DUbY195l.js} +170 -170
- package/components/{GeneralLogout-CiXZU4jU.cjs → GeneralLogout-dsqHnt6i.cjs} +3 -3
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var hr = Object.defineProperty, lr = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Se = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
fr.call(t, r) && Se(e, r, t[r]);
|
|
8
8
|
if (Ye)
|
|
9
9
|
for (var r of Ye(t))
|
|
10
|
-
|
|
10
|
+
pr.call(t, r) && Se(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Ke = (e, t) => lr(e,
|
|
12
|
+
}, Ke = (e, t) => lr(e, cr(t));
|
|
13
13
|
var T = (e, t, r) => Se(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
@@ -44,7 +44,7 @@ function ze(e) {
|
|
|
44
44
|
function Bt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function At(e, ...t) {
|
|
@@ -223,13 +223,13 @@ function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
223
223
|
};
|
|
224
224
|
s && s(u.root);
|
|
225
225
|
let l = !1;
|
|
226
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
227
|
-
const y =
|
|
228
|
-
return u.ctx && i(u.ctx[
|
|
226
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
227
|
+
const y = p.length ? p[0] : c;
|
|
228
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && Ir(e, f)), c;
|
|
229
229
|
}) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
230
230
|
if (t.hydrate) {
|
|
231
|
-
const
|
|
232
|
-
u.fragment && u.fragment.l(
|
|
231
|
+
const f = xr(t.target);
|
|
232
|
+
u.fragment && u.fragment.l(f), f.forEach(J);
|
|
233
233
|
} else
|
|
234
234
|
u.fragment && u.fragment.c();
|
|
235
235
|
t.intro && wr(e.$$.fragment), Pr(e, t.target, t.anchor), I();
|
|
@@ -303,7 +303,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
303
303
|
o in n && (r[o] = [t(o)]);
|
|
304
304
|
for (const o of this.attributes) {
|
|
305
305
|
const s = this.$$g_p(o.name);
|
|
306
|
-
s in this.$$d || (this.$$d[s] =
|
|
306
|
+
s in this.$$d || (this.$$d[s] = ce(s, o.value, this.$$p_d, "toProp"));
|
|
307
307
|
}
|
|
308
308
|
for (const o in this.$$p_d)
|
|
309
309
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
320
320
|
this.$$r = !0;
|
|
321
321
|
for (const o in this.$$p_d)
|
|
322
322
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
323
|
-
const s =
|
|
323
|
+
const s = ce(
|
|
324
324
|
o,
|
|
325
325
|
this.$$d[o],
|
|
326
326
|
this.$$p_d,
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
344
344
|
// and setting attributes through setAttribute etc, this is helpful
|
|
345
345
|
attributeChangedCallback(t, r, n) {
|
|
346
346
|
var i;
|
|
347
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
347
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
348
348
|
}
|
|
349
349
|
disconnectedCallback() {
|
|
350
350
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -357,7 +357,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
357
357
|
) || t;
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
|
-
function
|
|
360
|
+
function ce(e, t, r, n) {
|
|
361
361
|
var o;
|
|
362
362
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
363
363
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -405,7 +405,7 @@ function Nr(e, t, r, n, i, o) {
|
|
|
405
405
|
},
|
|
406
406
|
set(h) {
|
|
407
407
|
var u;
|
|
408
|
-
h =
|
|
408
|
+
h = ce(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}), n.forEach((a) => {
|
|
@@ -461,7 +461,7 @@ class Mr {
|
|
|
461
461
|
* @returns {void}
|
|
462
462
|
*/
|
|
463
463
|
$set(t) {
|
|
464
|
-
this.$$set && !
|
|
464
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
const Cr = "4";
|
|
@@ -589,12 +589,12 @@ var ye = function() {
|
|
|
589
589
|
} catch (v) {
|
|
590
590
|
o = v instanceof He ? v.errors : [v];
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
592
|
+
var f = this._finalizers;
|
|
593
|
+
if (f) {
|
|
594
594
|
this._finalizers = null;
|
|
595
595
|
try {
|
|
596
|
-
for (var
|
|
597
|
-
var y =
|
|
596
|
+
for (var c = Ce(f), p = c.next(); !p.done; p = c.next()) {
|
|
597
|
+
var y = p.value;
|
|
598
598
|
try {
|
|
599
599
|
nt(y);
|
|
600
600
|
} catch (v) {
|
|
@@ -605,7 +605,7 @@ var ye = function() {
|
|
|
605
605
|
n = { error: v };
|
|
606
606
|
} finally {
|
|
607
607
|
try {
|
|
608
|
-
|
|
608
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
609
609
|
} finally {
|
|
610
610
|
if (n) throw n.error;
|
|
611
611
|
}
|
|
@@ -670,7 +670,7 @@ function Gr(e) {
|
|
|
670
670
|
}
|
|
671
671
|
function it() {
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function fe(e) {
|
|
674
674
|
e();
|
|
675
675
|
}
|
|
676
676
|
var Mt = function(e) {
|
|
@@ -780,7 +780,7 @@ var ot = function() {
|
|
|
780
780
|
return r.source = this, r.operator = t, r;
|
|
781
781
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
782
782
|
var i = this, o = zr(t) ? t : new Ue(t, r, n);
|
|
783
|
-
return
|
|
783
|
+
return fe(function() {
|
|
784
784
|
var s = i, a = s.operator, h = s.source;
|
|
785
785
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
786
786
|
}), o;
|
|
@@ -859,7 +859,7 @@ var Zr = It(function(e) {
|
|
|
859
859
|
throw new Zr();
|
|
860
860
|
}, t.prototype.next = function(r) {
|
|
861
861
|
var n = this;
|
|
862
|
-
|
|
862
|
+
fe(function() {
|
|
863
863
|
var i, o;
|
|
864
864
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
865
865
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
@@ -881,7 +881,7 @@ var Zr = It(function(e) {
|
|
|
881
881
|
});
|
|
882
882
|
}, t.prototype.error = function(r) {
|
|
883
883
|
var n = this;
|
|
884
|
-
|
|
884
|
+
fe(function() {
|
|
885
885
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
886
886
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
887
887
|
for (var i = n.observers; i.length; )
|
|
@@ -890,7 +890,7 @@ var Zr = It(function(e) {
|
|
|
890
890
|
});
|
|
891
891
|
}, t.prototype.complete = function() {
|
|
892
892
|
var r = this;
|
|
893
|
-
|
|
893
|
+
fe(function() {
|
|
894
894
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
895
895
|
r.isStopped = !0;
|
|
896
896
|
for (var n = r.observers; n.length; )
|
|
@@ -1018,26 +1018,26 @@ function Y(e, t, r) {
|
|
|
1018
1018
|
return Yr(r, (s, a) => {
|
|
1019
1019
|
let h = !1;
|
|
1020
1020
|
const u = [];
|
|
1021
|
-
let l = 0,
|
|
1022
|
-
const
|
|
1021
|
+
let l = 0, f = w;
|
|
1022
|
+
const c = () => {
|
|
1023
1023
|
if (l)
|
|
1024
1024
|
return;
|
|
1025
|
-
|
|
1025
|
+
f();
|
|
1026
1026
|
const y = t(n ? u[0] : u, s, a);
|
|
1027
|
-
o ? s(y) :
|
|
1028
|
-
},
|
|
1027
|
+
o ? s(y) : f = ze(y) ? y : w;
|
|
1028
|
+
}, p = i.map(
|
|
1029
1029
|
(y, v) => At(
|
|
1030
1030
|
y,
|
|
1031
1031
|
(B) => {
|
|
1032
|
-
u[v] = B, l &= ~(1 << v), h &&
|
|
1032
|
+
u[v] = B, l &= ~(1 << v), h && c();
|
|
1033
1033
|
},
|
|
1034
1034
|
() => {
|
|
1035
1035
|
l |= 1 << v;
|
|
1036
1036
|
}
|
|
1037
1037
|
)
|
|
1038
1038
|
);
|
|
1039
|
-
return h = !0,
|
|
1040
|
-
oe(
|
|
1039
|
+
return h = !0, c(), function() {
|
|
1040
|
+
oe(p), f(), h = !1;
|
|
1041
1041
|
};
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
@@ -1093,7 +1093,7 @@ function Rt(e, t) {
|
|
|
1093
1093
|
function ln(e, t) {
|
|
1094
1094
|
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function cn(e, t, r) {
|
|
1097
1097
|
var n = {};
|
|
1098
1098
|
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1099
1099
|
n[i] = ne(e[i], r);
|
|
@@ -1104,7 +1104,7 @@ function fn(e, t, r) {
|
|
|
1104
1104
|
function W(e, t, r) {
|
|
1105
1105
|
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1106
1106
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1107
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1107
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ne(t, r);
|
|
1108
1108
|
}
|
|
1109
1109
|
W.all = function(t, r) {
|
|
1110
1110
|
if (!Array.isArray(t))
|
|
@@ -1113,8 +1113,8 @@ W.all = function(t, r) {
|
|
|
1113
1113
|
return W(n, i, r);
|
|
1114
1114
|
}, {});
|
|
1115
1115
|
};
|
|
1116
|
-
var
|
|
1117
|
-
const
|
|
1116
|
+
var fn = W, pn = fn;
|
|
1117
|
+
const dn = /* @__PURE__ */ qr(pn);
|
|
1118
1118
|
function Be(e, t) {
|
|
1119
1119
|
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : gn;
|
|
1120
1120
|
return i(e, {
|
|
@@ -1163,10 +1163,10 @@ var vn = function() {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
}, Ae = {
|
|
1165
1165
|
variadic: yn
|
|
1166
|
-
},
|
|
1166
|
+
}, d;
|
|
1167
1167
|
(function(e) {
|
|
1168
1168
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1169
|
-
})(
|
|
1169
|
+
})(d || (d = {}));
|
|
1170
1170
|
var x;
|
|
1171
1171
|
(function(e) {
|
|
1172
1172
|
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";
|
|
@@ -1175,7 +1175,7 @@ var z;
|
|
|
1175
1175
|
(function(e) {
|
|
1176
1176
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1177
1177
|
})(z || (z = {}));
|
|
1178
|
-
function
|
|
1178
|
+
function ct(e) {
|
|
1179
1179
|
return e.type === x.literal;
|
|
1180
1180
|
}
|
|
1181
1181
|
function En(e) {
|
|
@@ -1304,15 +1304,15 @@ var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
1304
1304
|
function An(e) {
|
|
1305
1305
|
if (e.length === 0)
|
|
1306
1306
|
throw new Error("Number skeleton cannot be empty");
|
|
1307
|
-
for (var t = e.split(Bn).filter(function(
|
|
1308
|
-
return
|
|
1307
|
+
for (var t = e.split(Bn).filter(function(c) {
|
|
1308
|
+
return c.length > 0;
|
|
1309
1309
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1310
1310
|
var o = i[n], s = o.split("/");
|
|
1311
1311
|
if (s.length === 0)
|
|
1312
1312
|
throw new Error("Invalid number skeleton");
|
|
1313
1313
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1314
|
-
var
|
|
1315
|
-
if (
|
|
1314
|
+
var f = l[u];
|
|
1315
|
+
if (f.length === 0)
|
|
1316
1316
|
throw new Error("Invalid number skeleton");
|
|
1317
1317
|
}
|
|
1318
1318
|
r.push({ stem: a, options: h });
|
|
@@ -1322,8 +1322,8 @@ function An(e) {
|
|
|
1322
1322
|
function wn(e) {
|
|
1323
1323
|
return e.replace(/^(.*?)-/, "");
|
|
1324
1324
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1325
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Pn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1326
|
+
function pt(e) {
|
|
1327
1327
|
var t = {};
|
|
1328
1328
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1329
1329
|
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)), "";
|
|
@@ -1383,7 +1383,7 @@ function On(e) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
return t;
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function dt(e) {
|
|
1387
1387
|
var t = {}, r = Jt(e);
|
|
1388
1388
|
return r || t;
|
|
1389
1389
|
}
|
|
@@ -1423,12 +1423,12 @@ function In(e) {
|
|
|
1423
1423
|
continue;
|
|
1424
1424
|
case "scientific":
|
|
1425
1425
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1426
|
-
return g(g({}, h),
|
|
1426
|
+
return g(g({}, h), dt(u));
|
|
1427
1427
|
}, {}));
|
|
1428
1428
|
continue;
|
|
1429
1429
|
case "engineering":
|
|
1430
1430
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1431
|
-
return g(g({}, h),
|
|
1431
|
+
return g(g({}, h), dt(u));
|
|
1432
1432
|
}, {}));
|
|
1433
1433
|
continue;
|
|
1434
1434
|
case "notation-simple":
|
|
@@ -1473,13 +1473,13 @@ function In(e) {
|
|
|
1473
1473
|
case "integer-width":
|
|
1474
1474
|
if (i.options.length > 1)
|
|
1475
1475
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1476
|
-
i.options[0].replace(Pn, function(h, u, l,
|
|
1476
|
+
i.options[0].replace(Pn, function(h, u, l, f, c, p) {
|
|
1477
1477
|
if (u)
|
|
1478
1478
|
t.minimumIntegerDigits = l.length;
|
|
1479
1479
|
else {
|
|
1480
|
-
if (
|
|
1480
|
+
if (f && c)
|
|
1481
1481
|
throw new Error("We currently do not support maximum integer digits");
|
|
1482
|
-
if (
|
|
1482
|
+
if (p)
|
|
1483
1483
|
throw new Error("We currently do not support exact integer digits");
|
|
1484
1484
|
}
|
|
1485
1485
|
return "";
|
|
@@ -1490,18 +1490,18 @@ function In(e) {
|
|
|
1490
1490
|
t.minimumIntegerDigits = i.stem.length;
|
|
1491
1491
|
continue;
|
|
1492
1492
|
}
|
|
1493
|
-
if (
|
|
1493
|
+
if (ft.test(i.stem)) {
|
|
1494
1494
|
if (i.options.length > 1)
|
|
1495
1495
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1496
|
-
i.stem.replace(
|
|
1497
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1496
|
+
i.stem.replace(ft, function(h, u, l, f, c, p) {
|
|
1497
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1498
1498
|
});
|
|
1499
1499
|
var o = i.options[0];
|
|
1500
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1500
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), pt(o)));
|
|
1501
1501
|
continue;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (Zt.test(i.stem)) {
|
|
1504
|
-
t = g(g({}, t),
|
|
1504
|
+
t = g(g({}, t), pt(i.stem));
|
|
1505
1505
|
continue;
|
|
1506
1506
|
}
|
|
1507
1507
|
var s = Jt(i.stem);
|
|
@@ -3097,7 +3097,7 @@ var zn = (
|
|
|
3097
3097
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3098
3098
|
if (n)
|
|
3099
3099
|
break;
|
|
3100
|
-
return this.error(
|
|
3100
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3101
3101
|
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3102
3102
|
var s = this.parseTag(t, r);
|
|
3103
3103
|
if (s.err)
|
|
@@ -3132,9 +3132,9 @@ var zn = (
|
|
|
3132
3132
|
var s = o.val, a = this.clonePosition();
|
|
3133
3133
|
if (this.bumpIf("</")) {
|
|
3134
3134
|
if (this.isEOF() || !ke(this.char()))
|
|
3135
|
-
return this.error(
|
|
3135
|
+
return this.error(d.INVALID_TAG, m(a, this.clonePosition()));
|
|
3136
3136
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3137
|
-
return i !== u ? this.error(
|
|
3137
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3138
3138
|
val: {
|
|
3139
3139
|
type: x.tag,
|
|
3140
3140
|
value: i,
|
|
@@ -3142,11 +3142,11 @@ var zn = (
|
|
|
3142
3142
|
location: m(n, this.clonePosition())
|
|
3143
3143
|
},
|
|
3144
3144
|
err: null
|
|
3145
|
-
} : this.error(
|
|
3145
|
+
} : this.error(d.INVALID_TAG, m(a, this.clonePosition())));
|
|
3146
3146
|
} else
|
|
3147
|
-
return this.error(
|
|
3147
|
+
return this.error(d.UNCLOSED_TAG, m(n, this.clonePosition()));
|
|
3148
3148
|
} else
|
|
3149
|
-
return this.error(
|
|
3149
|
+
return this.error(d.INVALID_TAG, m(n, this.clonePosition()));
|
|
3150
3150
|
}, e.prototype.parseTagName = function() {
|
|
3151
3151
|
var t = this.offset();
|
|
3152
3152
|
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
@@ -3221,14 +3221,14 @@ var zn = (
|
|
|
3221
3221
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3222
3222
|
var n = this.clonePosition();
|
|
3223
3223
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3224
|
-
return this.error(
|
|
3224
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
|
|
3225
3225
|
if (this.char() === 125)
|
|
3226
|
-
return this.bump(), this.error(
|
|
3226
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, m(n, this.clonePosition()));
|
|
3227
3227
|
var i = this.parseIdentifierIfPossible().value;
|
|
3228
3228
|
if (!i)
|
|
3229
|
-
return this.error(
|
|
3229
|
+
return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3230
3230
|
if (this.bumpSpace(), this.isEOF())
|
|
3231
|
-
return this.error(
|
|
3231
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
|
|
3232
3232
|
switch (this.char()) {
|
|
3233
3233
|
case 125:
|
|
3234
3234
|
return this.bump(), {
|
|
@@ -3241,9 +3241,9 @@ var zn = (
|
|
|
3241
3241
|
err: null
|
|
3242
3242
|
};
|
|
3243
3243
|
case 44:
|
|
3244
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3244
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3245
3245
|
default:
|
|
3246
|
-
return this.error(
|
|
3246
|
+
return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3247
3247
|
}
|
|
3248
3248
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3249
3249
|
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
@@ -3254,7 +3254,7 @@ var zn = (
|
|
|
3254
3254
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3255
3255
|
switch (a) {
|
|
3256
3256
|
case "":
|
|
3257
|
-
return this.error(
|
|
3257
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, m(s, h));
|
|
3258
3258
|
case "number":
|
|
3259
3259
|
case "date":
|
|
3260
3260
|
case "time": {
|
|
@@ -3262,14 +3262,14 @@ var zn = (
|
|
|
3262
3262
|
var u = null;
|
|
3263
3263
|
if (this.bumpIf(",")) {
|
|
3264
3264
|
this.bumpSpace();
|
|
3265
|
-
var l = this.clonePosition(),
|
|
3266
|
-
if (
|
|
3267
|
-
return
|
|
3268
|
-
var
|
|
3269
|
-
if (
|
|
3270
|
-
return this.error(
|
|
3271
|
-
var
|
|
3272
|
-
u = { style:
|
|
3265
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3266
|
+
if (f.err)
|
|
3267
|
+
return f;
|
|
3268
|
+
var c = Wn(f.val);
|
|
3269
|
+
if (c.length === 0)
|
|
3270
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3271
|
+
var p = m(l, this.clonePosition());
|
|
3272
|
+
u = { style: c, styleLocation: p };
|
|
3273
3273
|
}
|
|
3274
3274
|
var y = this.tryParseArgumentClose(i);
|
|
3275
3275
|
if (y.err)
|
|
@@ -3278,24 +3278,24 @@ var zn = (
|
|
|
3278
3278
|
if (u && mt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3279
3279
|
var B = Xn(u.style.slice(2));
|
|
3280
3280
|
if (a === "number") {
|
|
3281
|
-
var
|
|
3282
|
-
return
|
|
3283
|
-
val: { type: x.number, value: n, location: v, style:
|
|
3281
|
+
var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3282
|
+
return f.err ? f : {
|
|
3283
|
+
val: { type: x.number, value: n, location: v, style: f.val },
|
|
3284
3284
|
err: null
|
|
3285
3285
|
};
|
|
3286
3286
|
} else {
|
|
3287
3287
|
if (B.length === 0)
|
|
3288
|
-
return this.error(
|
|
3288
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, v);
|
|
3289
3289
|
var $ = B;
|
|
3290
3290
|
this.locale && ($ = Ln(B, this.locale));
|
|
3291
|
-
var
|
|
3291
|
+
var c = {
|
|
3292
3292
|
type: z.dateTime,
|
|
3293
3293
|
pattern: $,
|
|
3294
3294
|
location: u.styleLocation,
|
|
3295
3295
|
parsedOptions: this.shouldParseSkeletons ? Hn($) : {}
|
|
3296
3296
|
}, P = a === "date" ? x.date : x.time;
|
|
3297
3297
|
return {
|
|
3298
|
-
val: { type: P, value: n, location: v, style:
|
|
3298
|
+
val: { type: P, value: n, location: v, style: c },
|
|
3299
3299
|
err: null
|
|
3300
3300
|
};
|
|
3301
3301
|
}
|
|
@@ -3315,17 +3315,17 @@ var zn = (
|
|
|
3315
3315
|
case "select": {
|
|
3316
3316
|
var S = this.clonePosition();
|
|
3317
3317
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3318
|
-
return this.error(
|
|
3318
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(S, g({}, S)));
|
|
3319
3319
|
this.bumpSpace();
|
|
3320
3320
|
var R = this.parseIdentifierIfPossible(), O = 0;
|
|
3321
3321
|
if (a !== "select" && R.value === "offset") {
|
|
3322
3322
|
if (!this.bumpIf(":"))
|
|
3323
|
-
return this.error(
|
|
3323
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3324
3324
|
this.bumpSpace();
|
|
3325
|
-
var
|
|
3326
|
-
if (
|
|
3327
|
-
return
|
|
3328
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O =
|
|
3325
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3326
|
+
if (f.err)
|
|
3327
|
+
return f;
|
|
3328
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = f.val;
|
|
3329
3329
|
}
|
|
3330
3330
|
var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3331
3331
|
if (D.err)
|
|
@@ -3355,10 +3355,10 @@ var zn = (
|
|
|
3355
3355
|
};
|
|
3356
3356
|
}
|
|
3357
3357
|
default:
|
|
3358
|
-
return this.error(
|
|
3358
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, m(s, h));
|
|
3359
3359
|
}
|
|
3360
3360
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3361
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3361
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3362
3362
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3363
3363
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3364
3364
|
var n = this.char();
|
|
@@ -3367,7 +3367,7 @@ var zn = (
|
|
|
3367
3367
|
this.bump();
|
|
3368
3368
|
var i = this.clonePosition();
|
|
3369
3369
|
if (!this.bumpUntil("'"))
|
|
3370
|
-
return this.error(
|
|
3370
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, m(i, this.clonePosition()));
|
|
3371
3371
|
this.bump();
|
|
3372
3372
|
break;
|
|
3373
3373
|
}
|
|
@@ -3399,7 +3399,7 @@ var zn = (
|
|
|
3399
3399
|
try {
|
|
3400
3400
|
n = An(t);
|
|
3401
3401
|
} catch (i) {
|
|
3402
|
-
return this.error(
|
|
3402
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3403
3403
|
}
|
|
3404
3404
|
return {
|
|
3405
3405
|
val: {
|
|
@@ -3413,36 +3413,36 @@ var zn = (
|
|
|
3413
3413
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3414
3414
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3415
3415
|
if (u.length === 0) {
|
|
3416
|
-
var
|
|
3416
|
+
var f = this.clonePosition();
|
|
3417
3417
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3418
|
-
var
|
|
3419
|
-
if (
|
|
3420
|
-
return
|
|
3421
|
-
l = m(
|
|
3418
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3419
|
+
if (c.err)
|
|
3420
|
+
return c;
|
|
3421
|
+
l = m(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3422
3422
|
} else
|
|
3423
3423
|
break;
|
|
3424
3424
|
}
|
|
3425
3425
|
if (h.has(u))
|
|
3426
|
-
return this.error(r === "select" ?
|
|
3426
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3427
3427
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3428
|
-
var
|
|
3428
|
+
var p = this.clonePosition();
|
|
3429
3429
|
if (!this.bumpIf("{"))
|
|
3430
|
-
return this.error(r === "select" ?
|
|
3430
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3431
3431
|
var y = this.parseMessage(t + 1, r, n);
|
|
3432
3432
|
if (y.err)
|
|
3433
3433
|
return y;
|
|
3434
|
-
var v = this.tryParseArgumentClose(
|
|
3434
|
+
var v = this.tryParseArgumentClose(p);
|
|
3435
3435
|
if (v.err)
|
|
3436
3436
|
return v;
|
|
3437
3437
|
a.push([
|
|
3438
3438
|
u,
|
|
3439
3439
|
{
|
|
3440
3440
|
value: y.val,
|
|
3441
|
-
location: m(
|
|
3441
|
+
location: m(p, this.clonePosition())
|
|
3442
3442
|
}
|
|
3443
3443
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3444
3444
|
}
|
|
3445
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3445
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, m(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, m(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3446
3446
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3447
3447
|
var n = 1, i = this.clonePosition();
|
|
3448
3448
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3547,7 +3547,7 @@ function Yn(e, t) {
|
|
|
3547
3547
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3548
3548
|
var r = new zn(e, t).parse();
|
|
3549
3549
|
if (r.err) {
|
|
3550
|
-
var n = SyntaxError(
|
|
3550
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3551
3551
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3552
3552
|
}
|
|
3553
3553
|
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
@@ -3608,8 +3608,8 @@ function ei(e) {
|
|
|
3608
3608
|
function ti(e) {
|
|
3609
3609
|
return typeof e == "function";
|
|
3610
3610
|
}
|
|
3611
|
-
function
|
|
3612
|
-
if (e.length === 1 &&
|
|
3611
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3612
|
+
if (e.length === 1 && ct(e[0]))
|
|
3613
3613
|
return [
|
|
3614
3614
|
{
|
|
3615
3615
|
type: _.literal,
|
|
@@ -3618,7 +3618,7 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3618
3618
|
];
|
|
3619
3619
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3620
3620
|
var l = u[h];
|
|
3621
|
-
if (
|
|
3621
|
+
if (ct(l)) {
|
|
3622
3622
|
a.push({
|
|
3623
3623
|
type: _.literal,
|
|
3624
3624
|
value: l.value
|
|
@@ -3632,38 +3632,38 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3632
3632
|
});
|
|
3633
3633
|
continue;
|
|
3634
3634
|
}
|
|
3635
|
-
var
|
|
3636
|
-
if (!(i &&
|
|
3637
|
-
throw new Kn(
|
|
3638
|
-
var
|
|
3635
|
+
var f = l.value;
|
|
3636
|
+
if (!(i && f in i))
|
|
3637
|
+
throw new Kn(f, s);
|
|
3638
|
+
var c = i[f];
|
|
3639
3639
|
if (En(l)) {
|
|
3640
|
-
(!
|
|
3641
|
-
type: typeof
|
|
3642
|
-
value:
|
|
3640
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3641
|
+
type: typeof c == "string" ? _.literal : _.object,
|
|
3642
|
+
value: c
|
|
3643
3643
|
});
|
|
3644
3644
|
continue;
|
|
3645
3645
|
}
|
|
3646
3646
|
if (Ft(l)) {
|
|
3647
|
-
var
|
|
3647
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3648
3648
|
a.push({
|
|
3649
3649
|
type: _.literal,
|
|
3650
|
-
value: r.getDateTimeFormat(t,
|
|
3650
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3651
3651
|
});
|
|
3652
3652
|
continue;
|
|
3653
3653
|
}
|
|
3654
3654
|
if (jt(l)) {
|
|
3655
|
-
var
|
|
3655
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3656
3656
|
a.push({
|
|
3657
3657
|
type: _.literal,
|
|
3658
|
-
value: r.getDateTimeFormat(t,
|
|
3658
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3659
3659
|
});
|
|
3660
3660
|
continue;
|
|
3661
3661
|
}
|
|
3662
3662
|
if (Dt(l)) {
|
|
3663
|
-
var
|
|
3664
|
-
|
|
3663
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3664
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3665
3665
|
type: _.literal,
|
|
3666
|
-
value: r.getNumberFormat(t,
|
|
3666
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3667
3667
|
});
|
|
3668
3668
|
continue;
|
|
3669
3669
|
}
|
|
@@ -3671,7 +3671,7 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3671
3671
|
var y = l.children, v = l.value, B = i[v];
|
|
3672
3672
|
if (!ti(B))
|
|
3673
3673
|
throw new qn(v, "function", s);
|
|
3674
|
-
var $ =
|
|
3674
|
+
var $ = pe(y, t, r, n, i, o), P = B($.map(function(O) {
|
|
3675
3675
|
return O.value;
|
|
3676
3676
|
}));
|
|
3677
3677
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
|
|
@@ -3682,25 +3682,25 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3682
3682
|
}));
|
|
3683
3683
|
}
|
|
3684
3684
|
if (kt(l)) {
|
|
3685
|
-
var S = l.options[
|
|
3685
|
+
var S = l.options[c] || l.options.other;
|
|
3686
3686
|
if (!S)
|
|
3687
|
-
throw new yt(l.value,
|
|
3688
|
-
a.push.apply(a,
|
|
3687
|
+
throw new yt(l.value, c, Object.keys(l.options), s);
|
|
3688
|
+
a.push.apply(a, pe(S.value, t, r, n, i));
|
|
3689
3689
|
continue;
|
|
3690
3690
|
}
|
|
3691
3691
|
if (Vt(l)) {
|
|
3692
|
-
var S = l.options["=".concat(
|
|
3692
|
+
var S = l.options["=".concat(c)];
|
|
3693
3693
|
if (!S) {
|
|
3694
3694
|
if (!Intl.PluralRules)
|
|
3695
3695
|
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3696
3696
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3697
3697
|
`, Z.MISSING_INTL_API, s);
|
|
3698
|
-
var R = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3698
|
+
var R = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3699
3699
|
S = l.options[R] || l.options.other;
|
|
3700
3700
|
}
|
|
3701
3701
|
if (!S)
|
|
3702
|
-
throw new yt(l.value,
|
|
3703
|
-
a.push.apply(a,
|
|
3702
|
+
throw new yt(l.value, c, Object.keys(l.options), s);
|
|
3703
|
+
a.push.apply(a, pe(S.value, t, r, n, i, c - (l.offset || 0)));
|
|
3704
3704
|
continue;
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
@@ -3776,12 +3776,12 @@ var oi = (
|
|
|
3776
3776
|
var u = o.formatToParts(h);
|
|
3777
3777
|
if (u.length === 1)
|
|
3778
3778
|
return u[0].value;
|
|
3779
|
-
var l = u.reduce(function(
|
|
3780
|
-
return !
|
|
3779
|
+
var l = u.reduce(function(f, c) {
|
|
3780
|
+
return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3781
3781
|
}, []);
|
|
3782
3782
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3783
3783
|
}, this.formatToParts = function(h) {
|
|
3784
|
-
return
|
|
3784
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3785
3785
|
}, this.resolvedOptions = function() {
|
|
3786
3786
|
var h;
|
|
3787
3787
|
return {
|
|
@@ -3932,21 +3932,21 @@ function li(e) {
|
|
|
3932
3932
|
}
|
|
3933
3933
|
}
|
|
3934
3934
|
function rr(e, ...t) {
|
|
3935
|
-
delete C[e], ae.update((r) => (r[e] =
|
|
3935
|
+
delete C[e], ae.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
|
|
3936
3936
|
}
|
|
3937
3937
|
Y(
|
|
3938
3938
|
[ae],
|
|
3939
3939
|
([e]) => Object.keys(e)
|
|
3940
3940
|
);
|
|
3941
3941
|
ae.subscribe((e) => Qe = e);
|
|
3942
|
-
const
|
|
3943
|
-
function
|
|
3944
|
-
|
|
3942
|
+
const de = {};
|
|
3943
|
+
function ci(e, t) {
|
|
3944
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3945
3945
|
}
|
|
3946
3946
|
function nr(e) {
|
|
3947
|
-
return
|
|
3947
|
+
return de[e];
|
|
3948
3948
|
}
|
|
3949
|
-
function
|
|
3949
|
+
function fi(e) {
|
|
3950
3950
|
return _e(e).map((t) => {
|
|
3951
3951
|
const r = nr(t);
|
|
3952
3952
|
return [t, r ? [...r] : []];
|
|
@@ -3960,19 +3960,19 @@ function Xe(e) {
|
|
|
3960
3960
|
}
|
|
3961
3961
|
);
|
|
3962
3962
|
}
|
|
3963
|
-
function
|
|
3963
|
+
function pi(e, t) {
|
|
3964
3964
|
return Promise.all(
|
|
3965
|
-
t.map((n) => (
|
|
3965
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
3966
3966
|
).then((n) => rr(e, ...n));
|
|
3967
3967
|
}
|
|
3968
3968
|
const te = {};
|
|
3969
3969
|
function ir(e) {
|
|
3970
3970
|
if (!Xe(e))
|
|
3971
3971
|
return e in te ? te[e] : Promise.resolve();
|
|
3972
|
-
const t =
|
|
3972
|
+
const t = fi(e);
|
|
3973
3973
|
return te[e] = Promise.all(
|
|
3974
3974
|
t.map(
|
|
3975
|
-
([r, n]) =>
|
|
3975
|
+
([r, n]) => pi(r, n)
|
|
3976
3976
|
)
|
|
3977
3977
|
).then(() => {
|
|
3978
3978
|
if (Xe(e))
|
|
@@ -3980,7 +3980,7 @@ function ir(e) {
|
|
|
3980
3980
|
delete te[e];
|
|
3981
3981
|
}), te[e];
|
|
3982
3982
|
}
|
|
3983
|
-
const
|
|
3983
|
+
const di = {
|
|
3984
3984
|
number: {
|
|
3985
3985
|
scientific: { notation: "scientific" },
|
|
3986
3986
|
engineering: { notation: "engineering" },
|
|
@@ -4012,7 +4012,7 @@ const pi = {
|
|
|
4012
4012
|
}, mi = {
|
|
4013
4013
|
fallbackLocale: null,
|
|
4014
4014
|
loadingDelay: 200,
|
|
4015
|
-
formats:
|
|
4015
|
+
formats: di,
|
|
4016
4016
|
warnOnMissingMessages: !0,
|
|
4017
4017
|
handleMissingMessage: void 0,
|
|
4018
4018
|
ignoreTag: !0
|
|
@@ -4159,16 +4159,16 @@ const ie = (e, t) => {
|
|
|
4159
4159
|
), l;
|
|
4160
4160
|
if (!a)
|
|
4161
4161
|
return l;
|
|
4162
|
-
let
|
|
4162
|
+
let f = l;
|
|
4163
4163
|
try {
|
|
4164
|
-
|
|
4165
|
-
} catch (
|
|
4166
|
-
|
|
4164
|
+
f = Li(l, h).format(a);
|
|
4165
|
+
} catch (c) {
|
|
4166
|
+
c instanceof Error && console.warn(
|
|
4167
4167
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4168
|
-
|
|
4168
|
+
c.message
|
|
4169
4169
|
);
|
|
4170
4170
|
}
|
|
4171
|
-
return
|
|
4171
|
+
return f;
|
|
4172
4172
|
}, Mi = (e, t) => Ii(t).format(e), Ci = (e, t) => Oi(t).format(e), $i = (e, t) => Pi(t).format(e), Ri = (e, t = G()) => er(e, t), Ui = Y([q, ae], () => Ni);
|
|
4173
4173
|
Y([q], () => Mi);
|
|
4174
4174
|
Y([q], () => Ci);
|
|
@@ -4248,11 +4248,11 @@ function ji(e) {
|
|
|
4248
4248
|
};
|
|
4249
4249
|
}
|
|
4250
4250
|
function ki(e) {
|
|
4251
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4251
|
+
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4252
4252
|
e[3] && Vi(e);
|
|
4253
4253
|
return {
|
|
4254
4254
|
c() {
|
|
4255
|
-
t = L("p"), r = L("span"), n = ee("svg"), i = ee("defs"), o = ee("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = ee("path"), h = ee("path"), u = vr(),
|
|
4255
|
+
t = L("p"), r = L("span"), n = ee("svg"), i = ee("defs"), o = ee("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = ee("path"), h = ee("path"), u = vr(), c && c.c(), H(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), H(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), H(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), H(n, "data-name", "Layer 1"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "viewBox", "0 0 150 150"), _r(r, "width", /*isMobile*/
|
|
4256
4256
|
e[3] ? (
|
|
4257
4257
|
/*mediaQuery*/
|
|
4258
4258
|
e[4].matches ? "50px" : "24px"
|
|
@@ -4261,20 +4261,20 @@ function ki(e) {
|
|
|
4261
4261
|
(e[4].matches && /*isMobile*/
|
|
4262
4262
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4263
4263
|
},
|
|
4264
|
-
m(
|
|
4265
|
-
se(
|
|
4264
|
+
m(p, y) {
|
|
4265
|
+
se(p, t, y), E(t, r), E(r, n), E(n, i), E(i, o), E(o, s), E(n, a), E(n, h), E(t, u), c && c.m(t, null), l || (f = wt(
|
|
4266
4266
|
t,
|
|
4267
4267
|
"click",
|
|
4268
4268
|
/*click_handler*/
|
|
4269
4269
|
e[12]
|
|
4270
4270
|
), l = !0);
|
|
4271
4271
|
},
|
|
4272
|
-
p(
|
|
4272
|
+
p(p, y) {
|
|
4273
4273
|
/*isMobile*/
|
|
4274
|
-
|
|
4274
|
+
p[3] || c.p(p, y);
|
|
4275
4275
|
},
|
|
4276
|
-
d(
|
|
4277
|
-
|
|
4276
|
+
d(p) {
|
|
4277
|
+
p && J(t), c && c.d(), l = !1, f();
|
|
4278
4278
|
}
|
|
4279
4279
|
};
|
|
4280
4280
|
}
|
|
@@ -4329,7 +4329,7 @@ function Xi(e) {
|
|
|
4329
4329
|
function Wi(e, t, r) {
|
|
4330
4330
|
let n;
|
|
4331
4331
|
mr(e, Ui, (b) => r(2, n = b));
|
|
4332
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t,
|
|
4332
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, f = "", c = !1, p, y = window.navigator.userAgent, v = Gi(y) !== "PC";
|
|
4333
4333
|
const B = window.matchMedia("(min-width: 768px)"), $ = () => {
|
|
4334
4334
|
fetch(l).then((A) => A.json()).then((A) => {
|
|
4335
4335
|
Object.keys(A).forEach((U) => {
|
|
@@ -4349,17 +4349,17 @@ function Wi(e, t, r) {
|
|
|
4349
4349
|
fetch(`${i}/v1/player/session/player`, A).then((U) => {
|
|
4350
4350
|
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4351
4351
|
});
|
|
4352
|
-
}, S = () => (i || (
|
|
4352
|
+
}, S = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", c = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", c = !0, console.error(f)), c), R = () => {
|
|
4353
4353
|
Di(a);
|
|
4354
4354
|
}, O = () => {
|
|
4355
4355
|
let b = document.createElement("style");
|
|
4356
|
-
b.innerHTML = h,
|
|
4356
|
+
b.innerHTML = h, p.appendChild(b);
|
|
4357
4357
|
}, D = () => {
|
|
4358
4358
|
let b = new URL(u), A = document.createElement("style");
|
|
4359
4359
|
fetch(b.href).then((U) => U.text()).then((U) => {
|
|
4360
4360
|
A.innerHTML = U, setTimeout(
|
|
4361
4361
|
() => {
|
|
4362
|
-
|
|
4362
|
+
p.appendChild(A);
|
|
4363
4363
|
},
|
|
4364
4364
|
1
|
|
4365
4365
|
), setTimeout(
|
|
@@ -4371,7 +4371,7 @@ function Wi(e, t, r) {
|
|
|
4371
4371
|
}, ue = () => P(), ar = () => P();
|
|
4372
4372
|
function ur(b) {
|
|
4373
4373
|
Ie[b ? "unshift" : "push"](() => {
|
|
4374
|
-
|
|
4374
|
+
p = b, r(1, p);
|
|
4375
4375
|
});
|
|
4376
4376
|
}
|
|
4377
4377
|
return e.$$set = (b) => {
|
|
@@ -4380,12 +4380,12 @@ function Wi(e, t, r) {
|
|
|
4380
4380
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4381
4381
|
193 && i && o && s && S(), e.$$.dirty & /*lang*/
|
|
4382
4382
|
256 && a && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4383
|
-
514 && h &&
|
|
4384
|
-
1026 && u &&
|
|
4383
|
+
514 && h && p && O(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4384
|
+
1026 && u && p && D(), e.$$.dirty & /*translationurl*/
|
|
4385
4385
|
2048 && l && $();
|
|
4386
4386
|
}, [
|
|
4387
4387
|
s,
|
|
4388
|
-
|
|
4388
|
+
p,
|
|
4389
4389
|
n,
|
|
4390
4390
|
v,
|
|
4391
4391
|
B,
|