@everymatrix/cashier-verifications 1.87.14 → 1.87.15
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/{CashierVerifications-BRDfg3Ft.cjs → CashierVerifications-B7LjGCKN.cjs} +5 -5
- package/components/{CashierVerifications-Bi_G2t3i.js → CashierVerifications-DErjHOWF.js} +448 -429
- package/components/{CashierVerifications-DjMSPWRN.js → CashierVerifications-DXr8lRpY.js} +405 -386
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { n as ve, s as Qt, a as Vr, r as Fr, i as Gr, c as jr, S as $r, b as zr, f as ne, d as Wr, e as
|
|
1
|
+
import { n as ve, s as Qt, a as Vr, r as Fr, i as Gr, c as jr, S as $r, b as zr, f as ne, d as Wr, e as fe, t as ue, g as he, h as Z, j as D, k as _t, o as Xr, l as qr, m as Ne, p as wt, q as Yr, u as Kt, v as z, w as er, x as ke, y as xe, z as tr, A as Zr, B as Jr, C as Qr } from "./CashierModal-BiWcNuy8.js";
|
|
2
2
|
const ye = [];
|
|
3
3
|
function Kr(e, t) {
|
|
4
4
|
return {
|
|
5
|
-
subscribe:
|
|
5
|
+
subscribe: Me(e, t).subscribe
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function Me(e, t = ve) {
|
|
9
9
|
let r;
|
|
10
10
|
const i = /* @__PURE__ */ new Set();
|
|
11
11
|
function n(a) {
|
|
12
12
|
if (Qt(e, a) && (e = a, r)) {
|
|
13
13
|
const u = !ye.length;
|
|
14
|
-
for (const
|
|
15
|
-
|
|
14
|
+
for (const f of i)
|
|
15
|
+
f[1](), ye.push(f, e);
|
|
16
16
|
if (u) {
|
|
17
|
-
for (let
|
|
18
|
-
ye[
|
|
17
|
+
for (let f = 0; f < ye.length; f += 2)
|
|
18
|
+
ye[f][0](ye[f + 1]);
|
|
19
19
|
ye.length = 0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -24,9 +24,9 @@ function Be(e, t = ve) {
|
|
|
24
24
|
n(a(e));
|
|
25
25
|
}
|
|
26
26
|
function s(a, u = ve) {
|
|
27
|
-
const
|
|
28
|
-
return i.add(
|
|
29
|
-
i.delete(
|
|
27
|
+
const f = [a, u];
|
|
28
|
+
return i.add(f), i.size === 1 && (r = t(n, o) || ve), a(e), () => {
|
|
29
|
+
i.delete(f), i.size === 0 && r && (r(), r = null);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
return { set: n, update: o, subscribe: s };
|
|
@@ -38,22 +38,22 @@ function Te(e, t, r) {
|
|
|
38
38
|
const o = t.length < 2;
|
|
39
39
|
return Kr(r, (s, a) => {
|
|
40
40
|
let u = !1;
|
|
41
|
-
const
|
|
42
|
-
let
|
|
41
|
+
const f = [];
|
|
42
|
+
let h = 0, p = ve;
|
|
43
43
|
const v = () => {
|
|
44
|
-
if (
|
|
44
|
+
if (h)
|
|
45
45
|
return;
|
|
46
46
|
p();
|
|
47
|
-
const _ = t(i ?
|
|
47
|
+
const _ = t(i ? f[0] : f, s, a);
|
|
48
48
|
o ? s(_) : p = Gr(_) ? _ : ve;
|
|
49
49
|
}, y = n.map(
|
|
50
50
|
(_, c) => Vr(
|
|
51
51
|
_,
|
|
52
52
|
(L) => {
|
|
53
|
-
|
|
53
|
+
f[c] = L, h &= ~(1 << c), u && v();
|
|
54
54
|
},
|
|
55
55
|
() => {
|
|
56
|
-
|
|
56
|
+
h |= 1 << c;
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
);
|
|
@@ -112,21 +112,21 @@ function ir(e, t) {
|
|
|
112
112
|
return !1;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function fi(e, t) {
|
|
116
116
|
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function hi(e, t, r) {
|
|
119
119
|
var i = {};
|
|
120
120
|
return r.isMergeableObject(e) && St(e).forEach(function(n) {
|
|
121
121
|
i[n] = Ae(e[n], r);
|
|
122
122
|
}), St(t).forEach(function(n) {
|
|
123
|
-
|
|
123
|
+
fi(e, n) || (ir(e, n) && r.isMergeableObject(t[n]) ? i[n] = ui(n, r)(e[n], t[n], r) : i[n] = Ae(t[n], r));
|
|
124
124
|
}), i;
|
|
125
125
|
}
|
|
126
126
|
function Ee(e, t, r) {
|
|
127
127
|
r = r || {}, r.arrayMerge = r.arrayMerge || ai, r.isMergeableObject = r.isMergeableObject || ei, r.cloneUnlessOtherwiseSpecified = Ae;
|
|
128
128
|
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
129
|
-
return o ? i ? r.arrayMerge(e, t, r) :
|
|
129
|
+
return o ? i ? r.arrayMerge(e, t, r) : hi(e, t, r) : Ae(t, r);
|
|
130
130
|
}
|
|
131
131
|
Ee.all = function(t, r) {
|
|
132
132
|
if (!Array.isArray(t))
|
|
@@ -267,13 +267,13 @@ function ur(e) {
|
|
|
267
267
|
function lr(e) {
|
|
268
268
|
return e.type === U.select;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function fr(e) {
|
|
271
271
|
return e.type === U.plural;
|
|
272
272
|
}
|
|
273
273
|
function Si(e) {
|
|
274
274
|
return e.type === U.pound;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function hr(e) {
|
|
277
277
|
return e.type === U.tag;
|
|
278
278
|
}
|
|
279
279
|
function cr(e) {
|
|
@@ -283,7 +283,7 @@ function st(e) {
|
|
|
283
283
|
return !!(e && typeof e == "object" && e.type === _e.dateTime);
|
|
284
284
|
}
|
|
285
285
|
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ti = /(?:[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;
|
|
286
|
-
function
|
|
286
|
+
function Oi(e) {
|
|
287
287
|
var t = {};
|
|
288
288
|
return e.replace(Ti, function(r) {
|
|
289
289
|
var i = r.length;
|
|
@@ -384,18 +384,18 @@ var F = function() {
|
|
|
384
384
|
return t;
|
|
385
385
|
}, F.apply(this, arguments);
|
|
386
386
|
};
|
|
387
|
-
var
|
|
388
|
-
function
|
|
387
|
+
var Pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
388
|
+
function Hi(e) {
|
|
389
389
|
if (e.length === 0)
|
|
390
390
|
throw new Error("Number skeleton cannot be empty");
|
|
391
|
-
for (var t = e.split(
|
|
391
|
+
for (var t = e.split(Pi).filter(function(v) {
|
|
392
392
|
return v.length > 0;
|
|
393
393
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
394
394
|
var o = n[i], s = o.split("/");
|
|
395
395
|
if (s.length === 0)
|
|
396
396
|
throw new Error("Invalid number skeleton");
|
|
397
|
-
for (var a = s[0], u = s.slice(1),
|
|
398
|
-
var p = f
|
|
397
|
+
for (var a = s[0], u = s.slice(1), f = 0, h = u; f < h.length; f++) {
|
|
398
|
+
var p = h[f];
|
|
399
399
|
if (p.length === 0)
|
|
400
400
|
throw new Error("Invalid number skeleton");
|
|
401
401
|
}
|
|
@@ -406,8 +406,8 @@ function Pi(e) {
|
|
|
406
406
|
function Ai(e) {
|
|
407
407
|
return e.replace(/^(.*?)-/, "");
|
|
408
408
|
}
|
|
409
|
-
var
|
|
410
|
-
function
|
|
409
|
+
var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Bi = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
410
|
+
function Pt(e) {
|
|
411
411
|
var t = {};
|
|
412
412
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, i, n) {
|
|
413
413
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
@@ -453,7 +453,7 @@ function vr(e) {
|
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Mi(e) {
|
|
457
457
|
var t;
|
|
458
458
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
459
459
|
notation: "engineering"
|
|
@@ -467,7 +467,7 @@ function Bi(e) {
|
|
|
467
467
|
}
|
|
468
468
|
return t;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ht(e) {
|
|
471
471
|
var t = {}, r = vr(e);
|
|
472
472
|
return r || t;
|
|
473
473
|
}
|
|
@@ -506,13 +506,13 @@ function Ci(e) {
|
|
|
506
506
|
t.notation = "compact", t.compactDisplay = "long";
|
|
507
507
|
continue;
|
|
508
508
|
case "scientific":
|
|
509
|
-
t = F(F(F({}, t), { notation: "scientific" }), n.options.reduce(function(u,
|
|
510
|
-
return F(F({}, u),
|
|
509
|
+
t = F(F(F({}, t), { notation: "scientific" }), n.options.reduce(function(u, f) {
|
|
510
|
+
return F(F({}, u), Ht(f));
|
|
511
511
|
}, {}));
|
|
512
512
|
continue;
|
|
513
513
|
case "engineering":
|
|
514
|
-
t = F(F(F({}, t), { notation: "engineering" }), n.options.reduce(function(u,
|
|
515
|
-
return F(F({}, u),
|
|
514
|
+
t = F(F(F({}, t), { notation: "engineering" }), n.options.reduce(function(u, f) {
|
|
515
|
+
return F(F({}, u), Ht(f));
|
|
516
516
|
}, {}));
|
|
517
517
|
continue;
|
|
518
518
|
case "notation-simple":
|
|
@@ -557,9 +557,9 @@ function Ci(e) {
|
|
|
557
557
|
case "integer-width":
|
|
558
558
|
if (n.options.length > 1)
|
|
559
559
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
560
|
-
n.options[0].replace(
|
|
561
|
-
if (
|
|
562
|
-
t.minimumIntegerDigits =
|
|
560
|
+
n.options[0].replace(Bi, function(u, f, h, p, v, y) {
|
|
561
|
+
if (f)
|
|
562
|
+
t.minimumIntegerDigits = h.length;
|
|
563
563
|
else {
|
|
564
564
|
if (p && v)
|
|
565
565
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -574,23 +574,23 @@ function Ci(e) {
|
|
|
574
574
|
t.minimumIntegerDigits = n.stem.length;
|
|
575
575
|
continue;
|
|
576
576
|
}
|
|
577
|
-
if (
|
|
577
|
+
if (Ot.test(n.stem)) {
|
|
578
578
|
if (n.options.length > 1)
|
|
579
579
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
580
|
-
n.stem.replace(
|
|
581
|
-
return
|
|
580
|
+
n.stem.replace(Ot, function(u, f, h, p, v, y) {
|
|
581
|
+
return h === "*" ? t.minimumFractionDigits = f.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : v && y ? (t.minimumFractionDigits = v.length, t.maximumFractionDigits = v.length + y.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
|
|
582
582
|
});
|
|
583
583
|
var o = n.options[0];
|
|
584
|
-
o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t),
|
|
584
|
+
o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), Pt(o)));
|
|
585
585
|
continue;
|
|
586
586
|
}
|
|
587
587
|
if (pr.test(n.stem)) {
|
|
588
|
-
t = F(F({}, t),
|
|
588
|
+
t = F(F({}, t), Pt(n.stem));
|
|
589
589
|
continue;
|
|
590
590
|
}
|
|
591
591
|
var s = vr(n.stem);
|
|
592
592
|
s && (t = F(F({}, t), s));
|
|
593
|
-
var a =
|
|
593
|
+
var a = Mi(n.stem);
|
|
594
594
|
a && (t = F(F({}, t), a));
|
|
595
595
|
}
|
|
596
596
|
return t;
|
|
@@ -2016,11 +2016,11 @@ function Ii(e, t) {
|
|
|
2016
2016
|
if (n === "j") {
|
|
2017
2017
|
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2018
2018
|
o++, i++;
|
|
2019
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a",
|
|
2020
|
-
for ((
|
|
2019
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", f = Di(t);
|
|
2020
|
+
for ((f == "H" || f == "k") && (a = 0); a-- > 0; )
|
|
2021
2021
|
r += u;
|
|
2022
2022
|
for (; s-- > 0; )
|
|
2023
|
-
r =
|
|
2023
|
+
r = f + r;
|
|
2024
2024
|
} else
|
|
2025
2025
|
n === "J" ? r += "H" : r += n;
|
|
2026
2026
|
}
|
|
@@ -2049,7 +2049,7 @@ function Di(e) {
|
|
|
2049
2049
|
return n[0];
|
|
2050
2050
|
}
|
|
2051
2051
|
var tt, Li = new RegExp("^".concat(dr.source, "*")), Ni = new RegExp("".concat(dr.source, "*$"));
|
|
2052
|
-
function
|
|
2052
|
+
function M(e, t) {
|
|
2053
2053
|
return { start: e, end: t };
|
|
2054
2054
|
}
|
|
2055
2055
|
var ki = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ri = !!String.fromCodePoint, Ui = !!Object.fromEntries, Vi = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, $i = ji ? Number.isSafeInteger : function(e) {
|
|
@@ -2083,7 +2083,7 @@ var At = ki ? (
|
|
|
2083
2083
|
}
|
|
2084
2084
|
return i;
|
|
2085
2085
|
}
|
|
2086
|
-
),
|
|
2086
|
+
), Bt = (
|
|
2087
2087
|
// native
|
|
2088
2088
|
Ui ? Object.fromEntries : (
|
|
2089
2089
|
// Ponyfill
|
|
@@ -2135,11 +2135,11 @@ function br(e, t) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
var lt;
|
|
2137
2137
|
if (at) {
|
|
2138
|
-
var
|
|
2138
|
+
var Mt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2139
2139
|
lt = function(t, r) {
|
|
2140
2140
|
var i;
|
|
2141
|
-
|
|
2142
|
-
var n =
|
|
2141
|
+
Mt.lastIndex = r;
|
|
2142
|
+
var n = Mt.exec(t);
|
|
2143
2143
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2144
2144
|
};
|
|
2145
2145
|
} else
|
|
@@ -2152,7 +2152,7 @@ if (at) {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
return ut.apply(void 0, i);
|
|
2154
2154
|
};
|
|
2155
|
-
var
|
|
2155
|
+
var qi = (
|
|
2156
2156
|
/** @class */
|
|
2157
2157
|
function() {
|
|
2158
2158
|
function e(t, r) {
|
|
@@ -2177,13 +2177,13 @@ var Yi = (
|
|
|
2177
2177
|
var a = this.clonePosition();
|
|
2178
2178
|
this.bump(), n.push({
|
|
2179
2179
|
type: U.pound,
|
|
2180
|
-
location:
|
|
2180
|
+
location: M(a, this.clonePosition())
|
|
2181
2181
|
});
|
|
2182
2182
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2183
2183
|
if (i)
|
|
2184
2184
|
break;
|
|
2185
|
-
return this.error(A.UNMATCHED_CLOSING_TAG,
|
|
2186
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2185
|
+
return this.error(A.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
|
|
2186
|
+
} else if (o === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
|
|
2187
2187
|
var s = this.parseTag(t, r);
|
|
2188
2188
|
if (s.err)
|
|
2189
2189
|
return s;
|
|
@@ -2206,7 +2206,7 @@ var Yi = (
|
|
|
2206
2206
|
val: {
|
|
2207
2207
|
type: U.literal,
|
|
2208
2208
|
value: "<".concat(n, "/>"),
|
|
2209
|
-
location:
|
|
2209
|
+
location: M(i, this.clonePosition())
|
|
2210
2210
|
},
|
|
2211
2211
|
err: null
|
|
2212
2212
|
};
|
|
@@ -2216,22 +2216,22 @@ var Yi = (
|
|
|
2216
2216
|
return o;
|
|
2217
2217
|
var s = o.val, a = this.clonePosition();
|
|
2218
2218
|
if (this.bumpIf("</")) {
|
|
2219
|
-
if (this.isEOF() || !
|
|
2220
|
-
return this.error(A.INVALID_TAG,
|
|
2221
|
-
var u = this.clonePosition(),
|
|
2222
|
-
return n !==
|
|
2219
|
+
if (this.isEOF() || !ft(this.char()))
|
|
2220
|
+
return this.error(A.INVALID_TAG, M(a, this.clonePosition()));
|
|
2221
|
+
var u = this.clonePosition(), f = this.parseTagName();
|
|
2222
|
+
return n !== f ? this.error(A.UNMATCHED_CLOSING_TAG, M(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2223
2223
|
val: {
|
|
2224
2224
|
type: U.tag,
|
|
2225
2225
|
value: n,
|
|
2226
2226
|
children: s,
|
|
2227
|
-
location:
|
|
2227
|
+
location: M(i, this.clonePosition())
|
|
2228
2228
|
},
|
|
2229
2229
|
err: null
|
|
2230
|
-
} : this.error(A.INVALID_TAG,
|
|
2230
|
+
} : this.error(A.INVALID_TAG, M(a, this.clonePosition())));
|
|
2231
2231
|
} else
|
|
2232
|
-
return this.error(A.UNCLOSED_TAG,
|
|
2232
|
+
return this.error(A.UNCLOSED_TAG, M(i, this.clonePosition()));
|
|
2233
2233
|
} else
|
|
2234
|
-
return this.error(A.INVALID_TAG,
|
|
2234
|
+
return this.error(A.INVALID_TAG, M(i, this.clonePosition()));
|
|
2235
2235
|
}, e.prototype.parseTagName = function() {
|
|
2236
2236
|
var t = this.offset();
|
|
2237
2237
|
for (this.bump(); !this.isEOF() && Zi(this.char()); )
|
|
@@ -2256,14 +2256,14 @@ var Yi = (
|
|
|
2256
2256
|
}
|
|
2257
2257
|
break;
|
|
2258
2258
|
}
|
|
2259
|
-
var u =
|
|
2259
|
+
var u = M(i, this.clonePosition());
|
|
2260
2260
|
return {
|
|
2261
2261
|
val: { type: U.literal, value: n, location: u },
|
|
2262
2262
|
err: null
|
|
2263
2263
|
};
|
|
2264
2264
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2265
2265
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2266
|
-
!
|
|
2266
|
+
!Yi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2267
2267
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2268
2268
|
if (this.isEOF() || this.char() !== 39)
|
|
2269
2269
|
return null;
|
|
@@ -2306,14 +2306,14 @@ var Yi = (
|
|
|
2306
2306
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2307
2307
|
var i = this.clonePosition();
|
|
2308
2308
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2309
|
-
return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2309
|
+
return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, M(i, this.clonePosition()));
|
|
2310
2310
|
if (this.char() === 125)
|
|
2311
|
-
return this.bump(), this.error(A.EMPTY_ARGUMENT,
|
|
2311
|
+
return this.bump(), this.error(A.EMPTY_ARGUMENT, M(i, this.clonePosition()));
|
|
2312
2312
|
var n = this.parseIdentifierIfPossible().value;
|
|
2313
2313
|
if (!n)
|
|
2314
|
-
return this.error(A.MALFORMED_ARGUMENT,
|
|
2314
|
+
return this.error(A.MALFORMED_ARGUMENT, M(i, this.clonePosition()));
|
|
2315
2315
|
if (this.bumpSpace(), this.isEOF())
|
|
2316
|
-
return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2316
|
+
return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, M(i, this.clonePosition()));
|
|
2317
2317
|
switch (this.char()) {
|
|
2318
2318
|
case 125:
|
|
2319
2319
|
return this.bump(), {
|
|
@@ -2321,49 +2321,49 @@ var Yi = (
|
|
|
2321
2321
|
type: U.argument,
|
|
2322
2322
|
// value does not include the opening and closing braces.
|
|
2323
2323
|
value: n,
|
|
2324
|
-
location:
|
|
2324
|
+
location: M(i, this.clonePosition())
|
|
2325
2325
|
},
|
|
2326
2326
|
err: null
|
|
2327
2327
|
};
|
|
2328
2328
|
case 44:
|
|
2329
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2329
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, M(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2330
2330
|
default:
|
|
2331
|
-
return this.error(A.MALFORMED_ARGUMENT,
|
|
2331
|
+
return this.error(A.MALFORMED_ARGUMENT, M(i, this.clonePosition()));
|
|
2332
2332
|
}
|
|
2333
2333
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2334
2334
|
var t = this.clonePosition(), r = this.offset(), i = lt(this.message, r), n = r + i.length;
|
|
2335
2335
|
this.bumpTo(n);
|
|
2336
|
-
var o = this.clonePosition(), s =
|
|
2336
|
+
var o = this.clonePosition(), s = M(t, o);
|
|
2337
2337
|
return { value: i, location: s };
|
|
2338
2338
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2339
2339
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2340
2340
|
switch (a) {
|
|
2341
2341
|
case "":
|
|
2342
|
-
return this.error(A.EXPECT_ARGUMENT_TYPE,
|
|
2342
|
+
return this.error(A.EXPECT_ARGUMENT_TYPE, M(s, u));
|
|
2343
2343
|
case "number":
|
|
2344
2344
|
case "date":
|
|
2345
2345
|
case "time": {
|
|
2346
2346
|
this.bumpSpace();
|
|
2347
|
-
var
|
|
2347
|
+
var f = null;
|
|
2348
2348
|
if (this.bumpIf(",")) {
|
|
2349
2349
|
this.bumpSpace();
|
|
2350
|
-
var
|
|
2350
|
+
var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
2351
2351
|
if (p.err)
|
|
2352
2352
|
return p;
|
|
2353
2353
|
var v = Xi(p.val);
|
|
2354
2354
|
if (v.length === 0)
|
|
2355
|
-
return this.error(A.EXPECT_ARGUMENT_STYLE,
|
|
2356
|
-
var y =
|
|
2357
|
-
|
|
2355
|
+
return this.error(A.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2356
|
+
var y = M(h, this.clonePosition());
|
|
2357
|
+
f = { style: v, styleLocation: y };
|
|
2358
2358
|
}
|
|
2359
2359
|
var _ = this.tryParseArgumentClose(n);
|
|
2360
2360
|
if (_.err)
|
|
2361
2361
|
return _;
|
|
2362
|
-
var c =
|
|
2363
|
-
if (
|
|
2364
|
-
var L = Wi(
|
|
2362
|
+
var c = M(n, this.clonePosition());
|
|
2363
|
+
if (f && At(f?.style, "::", 0)) {
|
|
2364
|
+
var L = Wi(f.style.slice(2));
|
|
2365
2365
|
if (a === "number") {
|
|
2366
|
-
var p = this.parseNumberSkeletonFromString(L,
|
|
2366
|
+
var p = this.parseNumberSkeletonFromString(L, f.styleLocation);
|
|
2367
2367
|
return p.err ? p : {
|
|
2368
2368
|
val: { type: U.number, value: i, location: c, style: p.val },
|
|
2369
2369
|
err: null
|
|
@@ -2376,11 +2376,11 @@ var Yi = (
|
|
|
2376
2376
|
var v = {
|
|
2377
2377
|
type: _e.dateTime,
|
|
2378
2378
|
pattern: k,
|
|
2379
|
-
location:
|
|
2380
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2381
|
-
},
|
|
2379
|
+
location: f.styleLocation,
|
|
2380
|
+
parsedOptions: this.shouldParseSkeletons ? Oi(k) : {}
|
|
2381
|
+
}, H = a === "date" ? U.date : U.time;
|
|
2382
2382
|
return {
|
|
2383
|
-
val: { type:
|
|
2383
|
+
val: { type: H, value: i, location: c, style: v },
|
|
2384
2384
|
err: null
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
@@ -2390,7 +2390,7 @@ var Yi = (
|
|
|
2390
2390
|
type: a === "number" ? U.number : a === "date" ? U.date : U.time,
|
|
2391
2391
|
value: i,
|
|
2392
2392
|
location: c,
|
|
2393
|
-
style: (o =
|
|
2393
|
+
style: (o = f?.style) !== null && o !== void 0 ? o : null
|
|
2394
2394
|
},
|
|
2395
2395
|
err: null
|
|
2396
2396
|
};
|
|
@@ -2400,30 +2400,30 @@ var Yi = (
|
|
|
2400
2400
|
case "select": {
|
|
2401
2401
|
var T = this.clonePosition();
|
|
2402
2402
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2403
|
-
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2403
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, M(T, je({}, T)));
|
|
2404
2404
|
this.bumpSpace();
|
|
2405
|
-
var
|
|
2406
|
-
if (a !== "select" &&
|
|
2405
|
+
var O = this.parseIdentifierIfPossible(), I = 0;
|
|
2406
|
+
if (a !== "select" && O.value === "offset") {
|
|
2407
2407
|
if (!this.bumpIf(":"))
|
|
2408
|
-
return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2408
|
+
return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
2409
2409
|
this.bumpSpace();
|
|
2410
2410
|
var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2411
2411
|
if (p.err)
|
|
2412
2412
|
return p;
|
|
2413
|
-
this.bumpSpace(),
|
|
2413
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), I = p.val;
|
|
2414
2414
|
}
|
|
2415
|
-
var
|
|
2416
|
-
if (
|
|
2417
|
-
return
|
|
2415
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
2416
|
+
if (P.err)
|
|
2417
|
+
return P;
|
|
2418
2418
|
var _ = this.tryParseArgumentClose(n);
|
|
2419
2419
|
if (_.err)
|
|
2420
2420
|
return _;
|
|
2421
|
-
var W =
|
|
2421
|
+
var W = M(n, this.clonePosition());
|
|
2422
2422
|
return a === "select" ? {
|
|
2423
2423
|
val: {
|
|
2424
2424
|
type: U.select,
|
|
2425
2425
|
value: i,
|
|
2426
|
-
options:
|
|
2426
|
+
options: Bt(P.val),
|
|
2427
2427
|
location: W
|
|
2428
2428
|
},
|
|
2429
2429
|
err: null
|
|
@@ -2431,7 +2431,7 @@ var Yi = (
|
|
|
2431
2431
|
val: {
|
|
2432
2432
|
type: U.plural,
|
|
2433
2433
|
value: i,
|
|
2434
|
-
options:
|
|
2434
|
+
options: Bt(P.val),
|
|
2435
2435
|
offset: I,
|
|
2436
2436
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2437
2437
|
location: W
|
|
@@ -2440,10 +2440,10 @@ var Yi = (
|
|
|
2440
2440
|
};
|
|
2441
2441
|
}
|
|
2442
2442
|
default:
|
|
2443
|
-
return this.error(A.INVALID_ARGUMENT_TYPE,
|
|
2443
|
+
return this.error(A.INVALID_ARGUMENT_TYPE, M(s, u));
|
|
2444
2444
|
}
|
|
2445
2445
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2446
|
-
return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2446
|
+
return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2447
2447
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2448
2448
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2449
2449
|
var i = this.char();
|
|
@@ -2452,7 +2452,7 @@ var Yi = (
|
|
|
2452
2452
|
this.bump();
|
|
2453
2453
|
var n = this.clonePosition();
|
|
2454
2454
|
if (!this.bumpUntil("'"))
|
|
2455
|
-
return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2455
|
+
return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(n, this.clonePosition()));
|
|
2456
2456
|
this.bump();
|
|
2457
2457
|
break;
|
|
2458
2458
|
}
|
|
@@ -2482,7 +2482,7 @@ var Yi = (
|
|
|
2482
2482
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2483
2483
|
var i = [];
|
|
2484
2484
|
try {
|
|
2485
|
-
i =
|
|
2485
|
+
i = Hi(t);
|
|
2486
2486
|
} catch {
|
|
2487
2487
|
return this.error(A.INVALID_NUMBER_SKELETON, r);
|
|
2488
2488
|
}
|
|
@@ -2496,23 +2496,23 @@ var Yi = (
|
|
|
2496
2496
|
err: null
|
|
2497
2497
|
};
|
|
2498
2498
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
2499
|
-
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(),
|
|
2500
|
-
if (
|
|
2499
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), f = n.value, h = n.location; ; ) {
|
|
2500
|
+
if (f.length === 0) {
|
|
2501
2501
|
var p = this.clonePosition();
|
|
2502
2502
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2503
2503
|
var v = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2504
2504
|
if (v.err)
|
|
2505
2505
|
return v;
|
|
2506
|
-
|
|
2506
|
+
h = M(p, this.clonePosition()), f = this.message.slice(p.offset, this.offset());
|
|
2507
2507
|
} else
|
|
2508
2508
|
break;
|
|
2509
2509
|
}
|
|
2510
|
-
if (u.has(
|
|
2511
|
-
return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2512
|
-
|
|
2510
|
+
if (u.has(f))
|
|
2511
|
+
return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2512
|
+
f === "other" && (s = !0), this.bumpSpace();
|
|
2513
2513
|
var y = this.clonePosition();
|
|
2514
2514
|
if (!this.bumpIf("{"))
|
|
2515
|
-
return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2515
|
+
return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
2516
2516
|
var _ = this.parseMessage(t + 1, r, i);
|
|
2517
2517
|
if (_.err)
|
|
2518
2518
|
return _;
|
|
@@ -2520,14 +2520,14 @@ var Yi = (
|
|
|
2520
2520
|
if (c.err)
|
|
2521
2521
|
return c;
|
|
2522
2522
|
a.push([
|
|
2523
|
-
|
|
2523
|
+
f,
|
|
2524
2524
|
{
|
|
2525
2525
|
value: _.val,
|
|
2526
|
-
location:
|
|
2526
|
+
location: M(y, this.clonePosition())
|
|
2527
2527
|
}
|
|
2528
|
-
]), u.add(
|
|
2528
|
+
]), u.add(f), this.bumpSpace(), o = this.parseIdentifierIfPossible(), f = o.value, h = o.location;
|
|
2529
2529
|
}
|
|
2530
|
-
return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2530
|
+
return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(A.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2531
2531
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2532
2532
|
var i = 1, n = this.clonePosition();
|
|
2533
2533
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -2538,7 +2538,7 @@ var Yi = (
|
|
|
2538
2538
|
else
|
|
2539
2539
|
break;
|
|
2540
2540
|
}
|
|
2541
|
-
var u =
|
|
2541
|
+
var u = M(n, this.clonePosition());
|
|
2542
2542
|
return o ? (s *= i, $i(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
2543
2543
|
}, e.prototype.offset = function() {
|
|
2544
2544
|
return this.position.offset;
|
|
@@ -2605,11 +2605,11 @@ var Yi = (
|
|
|
2605
2605
|
}, e;
|
|
2606
2606
|
}()
|
|
2607
2607
|
);
|
|
2608
|
-
function
|
|
2608
|
+
function ft(e) {
|
|
2609
2609
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2612
|
-
return
|
|
2611
|
+
function Yi(e) {
|
|
2612
|
+
return ft(e) || e === 47;
|
|
2613
2613
|
}
|
|
2614
2614
|
function Zi(e) {
|
|
2615
2615
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
@@ -2620,29 +2620,29 @@ function yr(e) {
|
|
|
2620
2620
|
function Ji(e) {
|
|
2621
2621
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function ht(e) {
|
|
2624
2624
|
e.forEach(function(t) {
|
|
2625
|
-
if (delete t.location, lr(t) ||
|
|
2625
|
+
if (delete t.location, lr(t) || fr(t))
|
|
2626
2626
|
for (var r in t.options)
|
|
2627
|
-
delete t.options[r].location,
|
|
2627
|
+
delete t.options[r].location, ht(t.options[r].value);
|
|
2628
2628
|
else
|
|
2629
|
-
sr(t) && cr(t.style) || (ar(t) || ur(t)) && st(t.style) ? delete t.style.location :
|
|
2629
|
+
sr(t) && cr(t.style) || (ar(t) || ur(t)) && st(t.style) ? delete t.style.location : hr(t) && ht(t.children);
|
|
2630
2630
|
});
|
|
2631
2631
|
}
|
|
2632
2632
|
function Qi(e, t) {
|
|
2633
2633
|
t === void 0 && (t = {}), t = je({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2634
|
-
var r = new
|
|
2634
|
+
var r = new qi(e, t).parse();
|
|
2635
2635
|
if (r.err) {
|
|
2636
2636
|
var i = SyntaxError(A[r.err.kind]);
|
|
2637
2637
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
2638
2638
|
}
|
|
2639
|
-
return t?.captureLocation ||
|
|
2639
|
+
return t?.captureLocation || ht(r.val), r.val;
|
|
2640
2640
|
}
|
|
2641
2641
|
var we;
|
|
2642
2642
|
(function(e) {
|
|
2643
2643
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2644
2644
|
})(we || (we = {}));
|
|
2645
|
-
var
|
|
2645
|
+
var qe = (
|
|
2646
2646
|
/** @class */
|
|
2647
2647
|
function(e) {
|
|
2648
2648
|
Xe(t, e);
|
|
@@ -2662,7 +2662,7 @@ var Ye = (
|
|
|
2662
2662
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), we.INVALID_VALUE, o) || this;
|
|
2663
2663
|
}
|
|
2664
2664
|
return t;
|
|
2665
|
-
}(
|
|
2665
|
+
}(qe)
|
|
2666
2666
|
), Ki = (
|
|
2667
2667
|
/** @class */
|
|
2668
2668
|
function(e) {
|
|
@@ -2671,7 +2671,7 @@ var Ye = (
|
|
|
2671
2671
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), we.INVALID_VALUE, n) || this;
|
|
2672
2672
|
}
|
|
2673
2673
|
return t;
|
|
2674
|
-
}(
|
|
2674
|
+
}(qe)
|
|
2675
2675
|
), en = (
|
|
2676
2676
|
/** @class */
|
|
2677
2677
|
function(e) {
|
|
@@ -2680,15 +2680,15 @@ var Ye = (
|
|
|
2680
2680
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), we.MISSING_VALUE, i) || this;
|
|
2681
2681
|
}
|
|
2682
2682
|
return t;
|
|
2683
|
-
}(
|
|
2684
|
-
),
|
|
2683
|
+
}(qe)
|
|
2684
|
+
), q;
|
|
2685
2685
|
(function(e) {
|
|
2686
2686
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2687
|
-
})(
|
|
2687
|
+
})(q || (q = {}));
|
|
2688
2688
|
function tn(e) {
|
|
2689
2689
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2690
2690
|
var i = t[t.length - 1];
|
|
2691
|
-
return !i || i.type !==
|
|
2691
|
+
return !i || i.type !== q.literal || r.type !== q.literal ? t.push(r) : i.value += r.value, t;
|
|
2692
2692
|
}, []);
|
|
2693
2693
|
}
|
|
2694
2694
|
function rn(e) {
|
|
@@ -2698,95 +2698,95 @@ function Ve(e, t, r, i, n, o, s) {
|
|
|
2698
2698
|
if (e.length === 1 && Tt(e[0]))
|
|
2699
2699
|
return [
|
|
2700
2700
|
{
|
|
2701
|
-
type:
|
|
2701
|
+
type: q.literal,
|
|
2702
2702
|
value: e[0].value
|
|
2703
2703
|
}
|
|
2704
2704
|
];
|
|
2705
|
-
for (var a = [], u = 0,
|
|
2706
|
-
var
|
|
2707
|
-
if (Tt(
|
|
2705
|
+
for (var a = [], u = 0, f = e; u < f.length; u++) {
|
|
2706
|
+
var h = f[u];
|
|
2707
|
+
if (Tt(h)) {
|
|
2708
2708
|
a.push({
|
|
2709
|
-
type:
|
|
2710
|
-
value:
|
|
2709
|
+
type: q.literal,
|
|
2710
|
+
value: h.value
|
|
2711
2711
|
});
|
|
2712
2712
|
continue;
|
|
2713
2713
|
}
|
|
2714
|
-
if (Si(
|
|
2714
|
+
if (Si(h)) {
|
|
2715
2715
|
typeof o == "number" && a.push({
|
|
2716
|
-
type:
|
|
2716
|
+
type: q.literal,
|
|
2717
2717
|
value: r.getNumberFormat(t).format(o)
|
|
2718
2718
|
});
|
|
2719
2719
|
continue;
|
|
2720
2720
|
}
|
|
2721
|
-
var p =
|
|
2721
|
+
var p = h.value;
|
|
2722
2722
|
if (!(n && p in n))
|
|
2723
2723
|
throw new en(p, s);
|
|
2724
2724
|
var v = n[p];
|
|
2725
|
-
if (wi(
|
|
2725
|
+
if (wi(h)) {
|
|
2726
2726
|
(!v || typeof v == "string" || typeof v == "number") && (v = typeof v == "string" || typeof v == "number" ? String(v) : ""), a.push({
|
|
2727
|
-
type: typeof v == "string" ?
|
|
2727
|
+
type: typeof v == "string" ? q.literal : q.object,
|
|
2728
2728
|
value: v
|
|
2729
2729
|
});
|
|
2730
2730
|
continue;
|
|
2731
2731
|
}
|
|
2732
|
-
if (ar(
|
|
2733
|
-
var y = typeof
|
|
2732
|
+
if (ar(h)) {
|
|
2733
|
+
var y = typeof h.style == "string" ? i.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
|
|
2734
2734
|
a.push({
|
|
2735
|
-
type:
|
|
2735
|
+
type: q.literal,
|
|
2736
2736
|
value: r.getDateTimeFormat(t, y).format(v)
|
|
2737
2737
|
});
|
|
2738
2738
|
continue;
|
|
2739
2739
|
}
|
|
2740
|
-
if (ur(
|
|
2741
|
-
var y = typeof
|
|
2740
|
+
if (ur(h)) {
|
|
2741
|
+
var y = typeof h.style == "string" ? i.time[h.style] : st(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
2742
2742
|
a.push({
|
|
2743
|
-
type:
|
|
2743
|
+
type: q.literal,
|
|
2744
2744
|
value: r.getDateTimeFormat(t, y).format(v)
|
|
2745
2745
|
});
|
|
2746
2746
|
continue;
|
|
2747
2747
|
}
|
|
2748
|
-
if (sr(
|
|
2749
|
-
var y = typeof
|
|
2748
|
+
if (sr(h)) {
|
|
2749
|
+
var y = typeof h.style == "string" ? i.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
|
|
2750
2750
|
y && y.scale && (v = v * (y.scale || 1)), a.push({
|
|
2751
|
-
type:
|
|
2751
|
+
type: q.literal,
|
|
2752
2752
|
value: r.getNumberFormat(t, y).format(v)
|
|
2753
2753
|
});
|
|
2754
2754
|
continue;
|
|
2755
2755
|
}
|
|
2756
|
-
if (
|
|
2757
|
-
var _ =
|
|
2756
|
+
if (hr(h)) {
|
|
2757
|
+
var _ = h.children, c = h.value, L = n[c];
|
|
2758
2758
|
if (!rn(L))
|
|
2759
2759
|
throw new Ki(c, "function", s);
|
|
2760
|
-
var k = Ve(_, t, r, i, n, o),
|
|
2760
|
+
var k = Ve(_, t, r, i, n, o), H = L(k.map(function(I) {
|
|
2761
2761
|
return I.value;
|
|
2762
2762
|
}));
|
|
2763
|
-
Array.isArray(
|
|
2763
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(I) {
|
|
2764
2764
|
return {
|
|
2765
|
-
type: typeof I == "string" ?
|
|
2765
|
+
type: typeof I == "string" ? q.literal : q.object,
|
|
2766
2766
|
value: I
|
|
2767
2767
|
};
|
|
2768
2768
|
}));
|
|
2769
2769
|
}
|
|
2770
|
-
if (lr(
|
|
2771
|
-
var T =
|
|
2770
|
+
if (lr(h)) {
|
|
2771
|
+
var T = h.options[v] || h.options.other;
|
|
2772
2772
|
if (!T)
|
|
2773
|
-
throw new Ct(
|
|
2773
|
+
throw new Ct(h.value, v, Object.keys(h.options), s);
|
|
2774
2774
|
a.push.apply(a, Ve(T.value, t, r, i, n));
|
|
2775
2775
|
continue;
|
|
2776
2776
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
var T =
|
|
2777
|
+
if (fr(h)) {
|
|
2778
|
+
var T = h.options["=".concat(v)];
|
|
2779
2779
|
if (!T) {
|
|
2780
2780
|
if (!Intl.PluralRules)
|
|
2781
|
-
throw new
|
|
2781
|
+
throw new qe(`Intl.PluralRules is not available in this environment.
|
|
2782
2782
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2783
2783
|
`, we.MISSING_INTL_API, s);
|
|
2784
|
-
var
|
|
2785
|
-
T =
|
|
2784
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(v - (h.offset || 0));
|
|
2785
|
+
T = h.options[O] || h.options.other;
|
|
2786
2786
|
}
|
|
2787
2787
|
if (!T)
|
|
2788
|
-
throw new Ct(
|
|
2789
|
-
a.push.apply(a, Ve(T.value, t, r, i, n, v - (
|
|
2788
|
+
throw new Ct(h.value, v, Object.keys(h.options), s);
|
|
2789
|
+
a.push.apply(a, Ve(T.value, t, r, i, n, v - (h.offset || 0)));
|
|
2790
2790
|
continue;
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
@@ -2859,13 +2859,13 @@ var xr = (
|
|
|
2859
2859
|
dateTime: {},
|
|
2860
2860
|
pluralRules: {}
|
|
2861
2861
|
}, this.format = function(u) {
|
|
2862
|
-
var
|
|
2863
|
-
if (
|
|
2864
|
-
return
|
|
2865
|
-
var
|
|
2866
|
-
return !p.length || v.type !==
|
|
2862
|
+
var f = o.formatToParts(u);
|
|
2863
|
+
if (f.length === 1)
|
|
2864
|
+
return f[0].value;
|
|
2865
|
+
var h = f.reduce(function(p, v) {
|
|
2866
|
+
return !p.length || v.type !== q.literal || typeof p[p.length - 1] != "string" ? p.push(v.value) : p[p.length - 1] += v.value, p;
|
|
2867
2867
|
}, []);
|
|
2868
|
-
return
|
|
2868
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
2869
2869
|
}, this.formatToParts = function(u) {
|
|
2870
2870
|
return Ve(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
2871
2871
|
}, this.resolvedOptions = function() {
|
|
@@ -2988,26 +2988,26 @@ const le = {}, un = (e, t, r) => r && (t in le || (le[t] = {}), e in le[t] || (l
|
|
|
2988
2988
|
return le[t][e];
|
|
2989
2989
|
const r = Ie(t);
|
|
2990
2990
|
for (let i = 0; i < r.length; i++) {
|
|
2991
|
-
const n = r[i], o =
|
|
2991
|
+
const n = r[i], o = fn(n, e);
|
|
2992
2992
|
if (o)
|
|
2993
2993
|
return un(e, t, o);
|
|
2994
2994
|
}
|
|
2995
2995
|
};
|
|
2996
2996
|
let xt;
|
|
2997
|
-
const Ce =
|
|
2997
|
+
const Ce = Me({});
|
|
2998
2998
|
function ln(e) {
|
|
2999
2999
|
return xt[e] || null;
|
|
3000
3000
|
}
|
|
3001
3001
|
function _r(e) {
|
|
3002
3002
|
return e in xt;
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function fn(e, t) {
|
|
3005
3005
|
if (!_r(e))
|
|
3006
3006
|
return null;
|
|
3007
3007
|
const r = ln(e);
|
|
3008
3008
|
return an(r, t);
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function hn(e) {
|
|
3011
3011
|
if (e == null)
|
|
3012
3012
|
return;
|
|
3013
3013
|
const t = Ie(e);
|
|
@@ -3051,20 +3051,20 @@ function pn(e, t) {
|
|
|
3051
3051
|
t.map((i) => (cn(e, i), i().then((n) => n.default || n)))
|
|
3052
3052
|
).then((i) => wr(e, ...i));
|
|
3053
3053
|
}
|
|
3054
|
-
const
|
|
3054
|
+
const Pe = {};
|
|
3055
3055
|
function Tr(e) {
|
|
3056
3056
|
if (!$e(e))
|
|
3057
|
-
return e in
|
|
3057
|
+
return e in Pe ? Pe[e] : Promise.resolve();
|
|
3058
3058
|
const t = dn(e);
|
|
3059
|
-
return
|
|
3059
|
+
return Pe[e] = Promise.all(
|
|
3060
3060
|
t.map(
|
|
3061
3061
|
([r, i]) => pn(r, i)
|
|
3062
3062
|
)
|
|
3063
3063
|
).then(() => {
|
|
3064
3064
|
if ($e(e))
|
|
3065
3065
|
return Tr(e);
|
|
3066
|
-
delete
|
|
3067
|
-
}),
|
|
3066
|
+
delete Pe[e];
|
|
3067
|
+
}), Pe[e];
|
|
3068
3068
|
}
|
|
3069
3069
|
var It = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, gn = (e, t) => {
|
|
3070
3070
|
var r = {};
|
|
@@ -3121,9 +3121,9 @@ const xn = {
|
|
|
3121
3121
|
warnOnMissingMessages: !0,
|
|
3122
3122
|
handleMissingMessage: void 0,
|
|
3123
3123
|
ignoreTag: !0
|
|
3124
|
-
},
|
|
3124
|
+
}, He = xn;
|
|
3125
3125
|
function Se() {
|
|
3126
|
-
return
|
|
3126
|
+
return He;
|
|
3127
3127
|
}
|
|
3128
3128
|
function En(e) {
|
|
3129
3129
|
const t = e, { formats: r } = t, i = gn(t, ["formats"]);
|
|
@@ -3138,19 +3138,19 @@ function En(e) {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = yn : console.warn(
|
|
3140
3140
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3141
|
-
)), Object.assign(
|
|
3141
|
+
)), Object.assign(He, i, { initialLocale: n }), r && ("number" in r && Object.assign(He.formats.number, r.number), "date" in r && Object.assign(He.formats.date, r.date), "time" in r && Object.assign(He.formats.time, r.time)), ge.set(n);
|
|
3142
3142
|
}
|
|
3143
|
-
const it =
|
|
3144
|
-
var _n = Object.defineProperty, wn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty,
|
|
3143
|
+
const it = Me(!1);
|
|
3144
|
+
var _n = Object.defineProperty, wn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pn = (e, t) => {
|
|
3145
3145
|
for (var r in t || (t = {}))
|
|
3146
3146
|
Tn.call(t, r) && Lt(e, r, t[r]);
|
|
3147
3147
|
if (Dt)
|
|
3148
3148
|
for (var r of Dt(t))
|
|
3149
|
-
|
|
3149
|
+
On.call(t, r) && Lt(e, r, t[r]);
|
|
3150
3150
|
return e;
|
|
3151
|
-
},
|
|
3151
|
+
}, Hn = (e, t) => wn(e, Sn(t));
|
|
3152
3152
|
let ct;
|
|
3153
|
-
const ze =
|
|
3153
|
+
const ze = Me(null);
|
|
3154
3154
|
function Nt(e) {
|
|
3155
3155
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3156
3156
|
}
|
|
@@ -3165,7 +3165,7 @@ ze.subscribe((e) => {
|
|
|
3165
3165
|
ct = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3166
3166
|
});
|
|
3167
3167
|
const An = (e) => {
|
|
3168
|
-
if (e &&
|
|
3168
|
+
if (e && hn(e) && $e(e)) {
|
|
3169
3169
|
const { loadingDelay: t } = Se();
|
|
3170
3170
|
let r;
|
|
3171
3171
|
return typeof window < "u" && ce() != null && t ? r = window.setTimeout(
|
|
@@ -3178,81 +3178,81 @@ const An = (e) => {
|
|
|
3178
3178
|
});
|
|
3179
3179
|
}
|
|
3180
3180
|
return ze.set(e);
|
|
3181
|
-
}, ge = Pn(
|
|
3181
|
+
}, ge = Hn(Pn({}, ze), {
|
|
3182
3182
|
set: An
|
|
3183
|
-
}),
|
|
3183
|
+
}), Ye = (e) => {
|
|
3184
3184
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3185
3185
|
return (i) => {
|
|
3186
3186
|
const n = JSON.stringify(i);
|
|
3187
3187
|
return n in t ? t[n] : t[n] = e(i);
|
|
3188
3188
|
};
|
|
3189
3189
|
};
|
|
3190
|
-
var
|
|
3190
|
+
var Bn = Object.defineProperty, We = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
|
|
3191
3191
|
for (var r in t || (t = {}))
|
|
3192
|
-
|
|
3192
|
+
Or.call(t, r) && kt(e, r, t[r]);
|
|
3193
3193
|
if (We)
|
|
3194
3194
|
for (var r of We(t))
|
|
3195
|
-
|
|
3195
|
+
Pr.call(t, r) && kt(e, r, t[r]);
|
|
3196
3196
|
return e;
|
|
3197
|
-
},
|
|
3197
|
+
}, Oe = (e, t) => {
|
|
3198
3198
|
var r = {};
|
|
3199
3199
|
for (var i in e)
|
|
3200
|
-
|
|
3200
|
+
Or.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3201
3201
|
if (e != null && We)
|
|
3202
3202
|
for (var i of We(e))
|
|
3203
|
-
t.indexOf(i) < 0 &&
|
|
3203
|
+
t.indexOf(i) < 0 && Pr.call(e, i) && (r[i] = e[i]);
|
|
3204
3204
|
return r;
|
|
3205
3205
|
};
|
|
3206
|
-
const
|
|
3206
|
+
const Be = (e, t) => {
|
|
3207
3207
|
const { formats: r } = Se();
|
|
3208
3208
|
if (e in r && t in r[e])
|
|
3209
3209
|
return r[e][t];
|
|
3210
3210
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3211
|
-
},
|
|
3211
|
+
}, Mn = Ye(
|
|
3212
3212
|
(e) => {
|
|
3213
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3213
|
+
var t = e, { locale: r, format: i } = t, n = Oe(t, ["locale", "format"]);
|
|
3214
3214
|
if (r == null)
|
|
3215
3215
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3216
|
-
return i && (n =
|
|
3216
|
+
return i && (n = Be("number", i)), new Intl.NumberFormat(r, n);
|
|
3217
3217
|
}
|
|
3218
|
-
), Cn =
|
|
3218
|
+
), Cn = Ye(
|
|
3219
3219
|
(e) => {
|
|
3220
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3220
|
+
var t = e, { locale: r, format: i } = t, n = Oe(t, ["locale", "format"]);
|
|
3221
3221
|
if (r == null)
|
|
3222
3222
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3223
|
-
return i ? n =
|
|
3223
|
+
return i ? n = Be("date", i) : Object.keys(n).length === 0 && (n = Be("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3224
3224
|
}
|
|
3225
|
-
), In =
|
|
3225
|
+
), In = Ye(
|
|
3226
3226
|
(e) => {
|
|
3227
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3227
|
+
var t = e, { locale: r, format: i } = t, n = Oe(t, ["locale", "format"]);
|
|
3228
3228
|
if (r == null)
|
|
3229
3229
|
throw new Error(
|
|
3230
3230
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3231
3231
|
);
|
|
3232
|
-
return i ? n =
|
|
3232
|
+
return i ? n = Be("time", i) : Object.keys(n).length === 0 && (n = Be("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3233
3233
|
}
|
|
3234
3234
|
), Dn = (e = {}) => {
|
|
3235
3235
|
var t = e, {
|
|
3236
3236
|
locale: r = ce()
|
|
3237
|
-
} = t, i =
|
|
3237
|
+
} = t, i = Oe(t, [
|
|
3238
3238
|
"locale"
|
|
3239
3239
|
]);
|
|
3240
|
-
return
|
|
3240
|
+
return Mn(Et({ locale: r }, i));
|
|
3241
3241
|
}, Ln = (e = {}) => {
|
|
3242
3242
|
var t = e, {
|
|
3243
3243
|
locale: r = ce()
|
|
3244
|
-
} = t, i =
|
|
3244
|
+
} = t, i = Oe(t, [
|
|
3245
3245
|
"locale"
|
|
3246
3246
|
]);
|
|
3247
3247
|
return Cn(Et({ locale: r }, i));
|
|
3248
3248
|
}, Nn = (e = {}) => {
|
|
3249
3249
|
var t = e, {
|
|
3250
3250
|
locale: r = ce()
|
|
3251
|
-
} = t, i =
|
|
3251
|
+
} = t, i = Oe(t, [
|
|
3252
3252
|
"locale"
|
|
3253
3253
|
]);
|
|
3254
3254
|
return In(Et({ locale: r }, i));
|
|
3255
|
-
}, kn =
|
|
3255
|
+
}, kn = Ye(
|
|
3256
3256
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3257
3257
|
(e, t = ce()) => new xr(e, t, Se().formats, {
|
|
3258
3258
|
ignoreTag: Se().ignoreTag
|
|
@@ -3264,24 +3264,24 @@ const Me = (e, t) => {
|
|
|
3264
3264
|
const {
|
|
3265
3265
|
values: a,
|
|
3266
3266
|
locale: u = ce(),
|
|
3267
|
-
default:
|
|
3267
|
+
default: f
|
|
3268
3268
|
} = s;
|
|
3269
3269
|
if (u == null)
|
|
3270
3270
|
throw new Error(
|
|
3271
3271
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3272
3272
|
);
|
|
3273
|
-
let
|
|
3274
|
-
if (!
|
|
3275
|
-
|
|
3276
|
-
else if (typeof
|
|
3273
|
+
let h = Er(e, u);
|
|
3274
|
+
if (!h)
|
|
3275
|
+
h = (o = (n = (i = (r = Se()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: u, id: e, defaultValue: f })) != null ? n : f) != null ? o : e;
|
|
3276
|
+
else if (typeof h != "string")
|
|
3277
3277
|
return console.warn(
|
|
3278
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3279
|
-
),
|
|
3278
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3279
|
+
), h;
|
|
3280
3280
|
if (!a)
|
|
3281
|
-
return
|
|
3282
|
-
let p =
|
|
3281
|
+
return h;
|
|
3282
|
+
let p = h;
|
|
3283
3283
|
try {
|
|
3284
|
-
p = kn(
|
|
3284
|
+
p = kn(h, u).format(a);
|
|
3285
3285
|
} catch (v) {
|
|
3286
3286
|
v instanceof Error && console.warn(
|
|
3287
3287
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3340,9 +3340,28 @@ const Ut = {
|
|
|
3340
3340
|
"verification.shuftipro.link-name.Documents": "Documents",
|
|
3341
3341
|
"verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
|
|
3342
3342
|
"verification.shuftipro.validations-started": "Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"
|
|
3343
|
+
},
|
|
3344
|
+
fr: {
|
|
3345
|
+
verificationsRequired: "Vérifications requises",
|
|
3346
|
+
"verification.video.how-to": "Comment vérifier votre identité ?",
|
|
3347
|
+
"verification.idenfy.referred-awaiting": "La vérification d’identité est en cours. Nous vous informerons dès que la vérification sera terminée et que vous pourrez retirer vos fonds.",
|
|
3348
|
+
"verification.message.failed": "Nous sommes désolés, mais nous n’avons pas pu vérifier votre compte. Veuillez contacter l’équipe d’assistance.",
|
|
3349
|
+
"verification.idenfy.link-name": "lien",
|
|
3350
|
+
"verification.idenfy.in-progress": "Pour retirer des fonds vers votre compte, vous devez effectuer la vérification de l’utilisateur. Veuillez préparer votre pièce d’identité et suivre le {link} pour commencer la vérification.",
|
|
3351
|
+
"verification.shuftipro.in-progress.Biometric": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}.",
|
|
3352
|
+
"verification.shuftipro.in-progress.Biometric.Documents": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {Documents}.",
|
|
3353
|
+
"verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}, la vérification {Documents} et la vérification {ProofOfAddress}.",
|
|
3354
|
+
"verification.shuftipro.in-progress.Biometric.ProofOfAddress": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {ProofOfAddress}.",
|
|
3355
|
+
"verification.shuftipro.in-progress.Documents": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents}.",
|
|
3356
|
+
"verification.shuftipro.in-progress.Documents.ProofOfAddress": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents} et la vérification {ProofOfAddress}.",
|
|
3357
|
+
"verification.shuftipro.in-progress.ProofOfAddress": "Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {ProofOfAddress}.",
|
|
3358
|
+
"verification.shuftipro.link-name.Biometric": "Biométrique",
|
|
3359
|
+
"verification.shuftipro.link-name.Documents": "Documents",
|
|
3360
|
+
"verification.shuftipro.link-name.ProofOfAddress": "Justificatif de domicile",
|
|
3361
|
+
"verification.shuftipro.validations-started": "Après avoir terminé la vérification, veuillez procéder à la transaction."
|
|
3343
3362
|
}
|
|
3344
3363
|
};
|
|
3345
|
-
let zn =
|
|
3364
|
+
let zn = Me(null);
|
|
3346
3365
|
/*! *****************************************************************************
|
|
3347
3366
|
Copyright (c) Microsoft Corporation.
|
|
3348
3367
|
|
|
@@ -3415,13 +3434,13 @@ function vt(e, t, r) {
|
|
|
3415
3434
|
function oe(e) {
|
|
3416
3435
|
return typeof e == "function";
|
|
3417
3436
|
}
|
|
3418
|
-
function
|
|
3437
|
+
function Hr(e) {
|
|
3419
3438
|
var t = function(i) {
|
|
3420
3439
|
Error.call(i), i.stack = new Error().stack;
|
|
3421
3440
|
}, r = e(t);
|
|
3422
3441
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
3423
3442
|
}
|
|
3424
|
-
var nt =
|
|
3443
|
+
var nt = Hr(function(e) {
|
|
3425
3444
|
return function(r) {
|
|
3426
3445
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
3427
3446
|
` + r.map(function(i, n) {
|
|
@@ -3449,8 +3468,8 @@ var Ze = function() {
|
|
|
3449
3468
|
if (this._parentage = null, Array.isArray(s))
|
|
3450
3469
|
try {
|
|
3451
3470
|
for (var a = pt(s), u = a.next(); !u.done; u = a.next()) {
|
|
3452
|
-
var
|
|
3453
|
-
|
|
3471
|
+
var f = u.value;
|
|
3472
|
+
f.remove(this);
|
|
3454
3473
|
}
|
|
3455
3474
|
} catch (c) {
|
|
3456
3475
|
t = { error: c };
|
|
@@ -3464,10 +3483,10 @@ var Ze = function() {
|
|
|
3464
3483
|
}
|
|
3465
3484
|
else
|
|
3466
3485
|
s.remove(this);
|
|
3467
|
-
var
|
|
3468
|
-
if (oe(
|
|
3486
|
+
var h = this.initialTeardown;
|
|
3487
|
+
if (oe(h))
|
|
3469
3488
|
try {
|
|
3470
|
-
|
|
3489
|
+
h();
|
|
3471
3490
|
} catch (c) {
|
|
3472
3491
|
o = c instanceof nt ? c.errors : [c];
|
|
3473
3492
|
}
|
|
@@ -3527,7 +3546,7 @@ var Ze = function() {
|
|
|
3527
3546
|
return t.closed = !0, t;
|
|
3528
3547
|
}(), e;
|
|
3529
3548
|
}(), Ar = Ze.EMPTY;
|
|
3530
|
-
function
|
|
3549
|
+
function Br(e) {
|
|
3531
3550
|
return e instanceof Ze || e && "closed" in e && oe(e.remove) && oe(e.add) && oe(e.unsubscribe);
|
|
3532
3551
|
}
|
|
3533
3552
|
function Vt(e) {
|
|
@@ -3546,7 +3565,7 @@ var Wn = {
|
|
|
3546
3565
|
},
|
|
3547
3566
|
delegate: void 0
|
|
3548
3567
|
};
|
|
3549
|
-
function
|
|
3568
|
+
function qn(e) {
|
|
3550
3569
|
Xn.setTimeout(function() {
|
|
3551
3570
|
throw e;
|
|
3552
3571
|
});
|
|
@@ -3556,11 +3575,11 @@ function Ft() {
|
|
|
3556
3575
|
function Ge(e) {
|
|
3557
3576
|
e();
|
|
3558
3577
|
}
|
|
3559
|
-
var
|
|
3578
|
+
var Mr = function(e) {
|
|
3560
3579
|
De(t, e);
|
|
3561
3580
|
function t(r) {
|
|
3562
3581
|
var i = e.call(this) || this;
|
|
3563
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
3582
|
+
return i.isStopped = !1, r ? (i.destination = r, Br(r) && r.add(i)) : i.destination = Jn, i;
|
|
3564
3583
|
}
|
|
3565
3584
|
return t.create = function(r, i, n) {
|
|
3566
3585
|
return new bt(r, i, n);
|
|
@@ -3587,7 +3606,7 @@ var Br = function(e) {
|
|
|
3587
3606
|
this.unsubscribe();
|
|
3588
3607
|
}
|
|
3589
3608
|
}, t;
|
|
3590
|
-
}(Ze),
|
|
3609
|
+
}(Ze), Yn = function() {
|
|
3591
3610
|
function e(t) {
|
|
3592
3611
|
this.partialObserver = t;
|
|
3593
3612
|
}
|
|
@@ -3626,12 +3645,12 @@ var Br = function(e) {
|
|
|
3626
3645
|
next: r ?? void 0,
|
|
3627
3646
|
error: i ?? void 0,
|
|
3628
3647
|
complete: n ?? void 0
|
|
3629
|
-
} : s = r, o.destination = new
|
|
3648
|
+
} : s = r, o.destination = new Yn(s), o;
|
|
3630
3649
|
}
|
|
3631
3650
|
return t;
|
|
3632
|
-
}(
|
|
3651
|
+
}(Mr);
|
|
3633
3652
|
function Ue(e) {
|
|
3634
|
-
|
|
3653
|
+
qn(e);
|
|
3635
3654
|
}
|
|
3636
3655
|
function Zn(e) {
|
|
3637
3656
|
throw e;
|
|
@@ -3722,9 +3741,9 @@ function to(e) {
|
|
|
3722
3741
|
return e && oe(e.next) && oe(e.error) && oe(e.complete);
|
|
3723
3742
|
}
|
|
3724
3743
|
function ro(e) {
|
|
3725
|
-
return e && e instanceof
|
|
3744
|
+
return e && e instanceof Mr || to(e) && Br(e);
|
|
3726
3745
|
}
|
|
3727
|
-
var io =
|
|
3746
|
+
var io = Hr(function(e) {
|
|
3728
3747
|
return function() {
|
|
3729
3748
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
3730
3749
|
};
|
|
@@ -3751,8 +3770,8 @@ var io = Pr(function(e) {
|
|
|
3751
3770
|
var u = a.value;
|
|
3752
3771
|
u.next(r);
|
|
3753
3772
|
}
|
|
3754
|
-
} catch (
|
|
3755
|
-
n = { error:
|
|
3773
|
+
} catch (f) {
|
|
3774
|
+
n = { error: f };
|
|
3756
3775
|
} finally {
|
|
3757
3776
|
try {
|
|
3758
3777
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -3850,9 +3869,9 @@ var io = Pr(function(e) {
|
|
|
3850
3869
|
}, t.prototype._trimBuffer = function() {
|
|
3851
3870
|
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * i;
|
|
3852
3871
|
if (i < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
3853
|
-
for (var u = n.now(),
|
|
3854
|
-
|
|
3855
|
-
|
|
3872
|
+
for (var u = n.now(), f = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
3873
|
+
f = h;
|
|
3874
|
+
f && o.splice(0, f + 1);
|
|
3856
3875
|
}
|
|
3857
3876
|
}, t;
|
|
3858
3877
|
}(Cr);
|
|
@@ -3887,13 +3906,13 @@ var Dr = { exports: {} };
|
|
|
3887
3906
|
(function(r, i) {
|
|
3888
3907
|
e.exports = i();
|
|
3889
3908
|
})(rr, function() {
|
|
3890
|
-
var r = 1e3, i = 6e4, n = 36e5, o = "millisecond", s = "second", a = "minute", u = "hour",
|
|
3909
|
+
var r = 1e3, i = 6e4, n = 36e5, o = "millisecond", s = "second", a = "minute", u = "hour", f = "day", h = "week", p = "month", v = "quarter", y = "year", _ = "date", c = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
|
|
3891
3910
|
var g = ["th", "st", "nd", "rd"], d = x % 100;
|
|
3892
3911
|
return "[" + x + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3893
3912
|
} }, T = function(x, g, d) {
|
|
3894
3913
|
var b = String(x);
|
|
3895
3914
|
return !b || b.length >= g ? x : "" + Array(g + 1 - b.length).join(d) + x;
|
|
3896
|
-
},
|
|
3915
|
+
}, O = { s: T, z: function(x) {
|
|
3897
3916
|
var g = -x.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3898
3917
|
return (g <= 0 ? "+" : "-") + T(b, 2, "0") + ":" + T(m, 2, "0");
|
|
3899
3918
|
}, m: function x(g, d) {
|
|
@@ -3904,11 +3923,11 @@ var Dr = { exports: {} };
|
|
|
3904
3923
|
}, a: function(x) {
|
|
3905
3924
|
return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
|
|
3906
3925
|
}, p: function(x) {
|
|
3907
|
-
return { M: p, y, w:
|
|
3926
|
+
return { M: p, y, w: h, d: f, D: _, h: u, m: a, s, ms: o, Q: v }[x] || String(x || "").toLowerCase().replace(/s$/, "");
|
|
3908
3927
|
}, u: function(x) {
|
|
3909
3928
|
return x === void 0;
|
|
3910
|
-
} }, I = "en",
|
|
3911
|
-
|
|
3929
|
+
} }, I = "en", P = {};
|
|
3930
|
+
P[I] = H;
|
|
3912
3931
|
var W = "$isDayjsObject", te = function(x) {
|
|
3913
3932
|
return x instanceof j || !(!x || !x[W]);
|
|
3914
3933
|
}, Q = function x(g, d, b) {
|
|
@@ -3917,13 +3936,13 @@ var Dr = { exports: {} };
|
|
|
3917
3936
|
return I;
|
|
3918
3937
|
if (typeof g == "string") {
|
|
3919
3938
|
var w = g.toLowerCase();
|
|
3920
|
-
|
|
3939
|
+
P[w] && (m = w), d && (P[w] = d, m = w);
|
|
3921
3940
|
var S = g.split("-");
|
|
3922
3941
|
if (!m && S.length > 1)
|
|
3923
3942
|
return x(S[0]);
|
|
3924
3943
|
} else {
|
|
3925
3944
|
var N = g.name;
|
|
3926
|
-
|
|
3945
|
+
P[N] = g, m = N;
|
|
3927
3946
|
}
|
|
3928
3947
|
return !b && m && (I = m), m || !b && I;
|
|
3929
3948
|
}, R = function(x, g) {
|
|
@@ -3931,7 +3950,7 @@ var Dr = { exports: {} };
|
|
|
3931
3950
|
return x.clone();
|
|
3932
3951
|
var d = typeof g == "object" ? g : {};
|
|
3933
3952
|
return d.date = x, d.args = arguments, new j(d);
|
|
3934
|
-
}, C =
|
|
3953
|
+
}, C = O;
|
|
3935
3954
|
C.l = Q, C.i = te, C.w = function(x, g) {
|
|
3936
3955
|
return R(x, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3937
3956
|
};
|
|
@@ -3981,19 +4000,19 @@ var Dr = { exports: {} };
|
|
|
3981
4000
|
}, g.startOf = function(d, b) {
|
|
3982
4001
|
var m = this, w = !!C.u(b) || b, S = C.p(d), N = function(ie, X) {
|
|
3983
4002
|
var K = C.w(m.$u ? Date.UTC(m.$y, X, ie) : new Date(m.$y, X, ie), m);
|
|
3984
|
-
return w ? K : K.endOf(
|
|
4003
|
+
return w ? K : K.endOf(f);
|
|
3985
4004
|
}, V = function(ie, X) {
|
|
3986
4005
|
return C.w(m.toDate()[ie].apply(m.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), m);
|
|
3987
|
-
}, G = this.$W, $ = this.$M,
|
|
4006
|
+
}, G = this.$W, $ = this.$M, Y = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
3988
4007
|
switch (S) {
|
|
3989
4008
|
case y:
|
|
3990
4009
|
return w ? N(1, 0) : N(31, 11);
|
|
3991
4010
|
case p:
|
|
3992
4011
|
return w ? N(1, $) : N(0, $ + 1);
|
|
3993
|
-
case f:
|
|
3994
|
-
var re = this.$locale().weekStart || 0, de = (G < re ? G + 7 : G) - re;
|
|
3995
|
-
return N(w ? q - de : q + (6 - de), $);
|
|
3996
4012
|
case h:
|
|
4013
|
+
var re = this.$locale().weekStart || 0, de = (G < re ? G + 7 : G) - re;
|
|
4014
|
+
return N(w ? Y - de : Y + (6 - de), $);
|
|
4015
|
+
case f:
|
|
3997
4016
|
case _:
|
|
3998
4017
|
return V(ae + "Hours", 0);
|
|
3999
4018
|
case u:
|
|
@@ -4008,7 +4027,7 @@ var Dr = { exports: {} };
|
|
|
4008
4027
|
}, g.endOf = function(d) {
|
|
4009
4028
|
return this.startOf(d, !1);
|
|
4010
4029
|
}, g.$set = function(d, b) {
|
|
4011
|
-
var m, w = C.p(d), S = "set" + (this.$u ? "UTC" : ""), N = (m = {}, m[
|
|
4030
|
+
var m, w = C.p(d), S = "set" + (this.$u ? "UTC" : ""), N = (m = {}, m[f] = S + "Date", m[_] = S + "Date", m[p] = S + "Month", m[y] = S + "FullYear", m[u] = S + "Hours", m[a] = S + "Minutes", m[s] = S + "Seconds", m[o] = S + "Milliseconds", m)[w], V = w === f ? this.$D + (b - this.$W) : b;
|
|
4012
4031
|
if (w === p || w === y) {
|
|
4013
4032
|
var G = this.clone().set(_, 1);
|
|
4014
4033
|
G.$d[N](V), G.init(), this.$d = G.set(_, Math.min(this.$D, G.daysInMonth())).$d;
|
|
@@ -4023,16 +4042,16 @@ var Dr = { exports: {} };
|
|
|
4023
4042
|
var m, w = this;
|
|
4024
4043
|
d = Number(d);
|
|
4025
4044
|
var S = C.p(b), N = function($) {
|
|
4026
|
-
var
|
|
4027
|
-
return C.w(
|
|
4045
|
+
var Y = R(w);
|
|
4046
|
+
return C.w(Y.date(Y.date() + Math.round($ * d)), w);
|
|
4028
4047
|
};
|
|
4029
4048
|
if (S === p)
|
|
4030
4049
|
return this.set(p, this.$M + d);
|
|
4031
4050
|
if (S === y)
|
|
4032
4051
|
return this.set(y, this.$y + d);
|
|
4033
|
-
if (S === h)
|
|
4034
|
-
return N(1);
|
|
4035
4052
|
if (S === f)
|
|
4053
|
+
return N(1);
|
|
4054
|
+
if (S === h)
|
|
4036
4055
|
return N(7);
|
|
4037
4056
|
var V = (m = {}, m[a] = i, m[u] = n, m[s] = r, m)[S] || 1, G = this.$d.getTime() + d * V;
|
|
4038
4057
|
return C.w(G, this);
|
|
@@ -4042,7 +4061,7 @@ var Dr = { exports: {} };
|
|
|
4042
4061
|
var b = this, m = this.$locale();
|
|
4043
4062
|
if (!this.isValid())
|
|
4044
4063
|
return m.invalidDate || c;
|
|
4045
|
-
var w = d || "YYYY-MM-DDTHH:mm:ssZ", S = C.z(this), N = this.$H, V = this.$m, G = this.$M, $ = m.weekdays,
|
|
4064
|
+
var w = d || "YYYY-MM-DDTHH:mm:ssZ", S = C.z(this), N = this.$H, V = this.$m, G = this.$M, $ = m.weekdays, Y = m.months, ae = m.meridiem, re = function(X, K, pe, be) {
|
|
4046
4065
|
return X && (X[K] || X(b, w)) || pe[K].slice(0, be);
|
|
4047
4066
|
}, de = function(X) {
|
|
4048
4067
|
return C.s(N % 12 || 12, X, "0");
|
|
@@ -4062,9 +4081,9 @@ var Dr = { exports: {} };
|
|
|
4062
4081
|
case "MM":
|
|
4063
4082
|
return C.s(G + 1, 2, "0");
|
|
4064
4083
|
case "MMM":
|
|
4065
|
-
return re(m.monthsShort, G,
|
|
4084
|
+
return re(m.monthsShort, G, Y, 3);
|
|
4066
4085
|
case "MMMM":
|
|
4067
|
-
return re(
|
|
4086
|
+
return re(Y, G);
|
|
4068
4087
|
case "D":
|
|
4069
4088
|
return b.$D;
|
|
4070
4089
|
case "DD":
|
|
@@ -4108,23 +4127,23 @@ var Dr = { exports: {} };
|
|
|
4108
4127
|
}, g.utcOffset = function() {
|
|
4109
4128
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4110
4129
|
}, g.diff = function(d, b, m) {
|
|
4111
|
-
var w, S = this, N = C.p(b), V = R(d), G = (V.utcOffset() - this.utcOffset()) * i, $ = this - V,
|
|
4130
|
+
var w, S = this, N = C.p(b), V = R(d), G = (V.utcOffset() - this.utcOffset()) * i, $ = this - V, Y = function() {
|
|
4112
4131
|
return C.m(S, V);
|
|
4113
4132
|
};
|
|
4114
4133
|
switch (N) {
|
|
4115
4134
|
case y:
|
|
4116
|
-
w =
|
|
4135
|
+
w = Y() / 12;
|
|
4117
4136
|
break;
|
|
4118
4137
|
case p:
|
|
4119
|
-
w =
|
|
4138
|
+
w = Y();
|
|
4120
4139
|
break;
|
|
4121
4140
|
case v:
|
|
4122
|
-
w =
|
|
4141
|
+
w = Y() / 3;
|
|
4123
4142
|
break;
|
|
4124
|
-
case
|
|
4143
|
+
case h:
|
|
4125
4144
|
w = ($ - G) / 6048e5;
|
|
4126
4145
|
break;
|
|
4127
|
-
case
|
|
4146
|
+
case f:
|
|
4128
4147
|
w = ($ - G) / 864e5;
|
|
4129
4148
|
break;
|
|
4130
4149
|
case u:
|
|
@@ -4143,7 +4162,7 @@ var Dr = { exports: {} };
|
|
|
4143
4162
|
}, g.daysInMonth = function() {
|
|
4144
4163
|
return this.endOf(p).$D;
|
|
4145
4164
|
}, g.$locale = function() {
|
|
4146
|
-
return
|
|
4165
|
+
return P[this.$L];
|
|
4147
4166
|
}, g.locale = function(d, b) {
|
|
4148
4167
|
if (!d)
|
|
4149
4168
|
return this.$L;
|
|
@@ -4161,7 +4180,7 @@ var Dr = { exports: {} };
|
|
|
4161
4180
|
return this.$d.toUTCString();
|
|
4162
4181
|
}, x;
|
|
4163
4182
|
}(), se = j.prototype;
|
|
4164
|
-
return R.prototype = se, [["$ms", o], ["$s", s], ["$m", a], ["$H", u], ["$W",
|
|
4183
|
+
return R.prototype = se, [["$ms", o], ["$s", s], ["$m", a], ["$H", u], ["$W", f], ["$M", p], ["$y", y], ["$D", _]].forEach(function(x) {
|
|
4165
4184
|
se[x[1]] = function(g) {
|
|
4166
4185
|
return this.$g(g, x[0], x[1]);
|
|
4167
4186
|
};
|
|
@@ -4169,7 +4188,7 @@ var Dr = { exports: {} };
|
|
|
4169
4188
|
return x.$i || (x(g, j, R), x.$i = !0), R;
|
|
4170
4189
|
}, R.locale = Q, R.isDayjs = te, R.unix = function(x) {
|
|
4171
4190
|
return R(1e3 * x);
|
|
4172
|
-
}, R.en =
|
|
4191
|
+
}, R.en = P[I], R.Ls = P, R.p = {}, R;
|
|
4173
4192
|
});
|
|
4174
4193
|
})(Dr);
|
|
4175
4194
|
var ao = Dr.exports;
|
|
@@ -4191,17 +4210,17 @@ var Lr = { exports: {} };
|
|
|
4191
4210
|
}, u.local = function() {
|
|
4192
4211
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4193
4212
|
};
|
|
4194
|
-
var
|
|
4213
|
+
var f = u.parse;
|
|
4195
4214
|
u.parse = function(c) {
|
|
4196
|
-
c.utc && (this.$u = !0), this.$utils().u(c.$offset) || (this.$offset = c.$offset),
|
|
4215
|
+
c.utc && (this.$u = !0), this.$utils().u(c.$offset) || (this.$offset = c.$offset), f.call(this, c);
|
|
4197
4216
|
};
|
|
4198
|
-
var
|
|
4217
|
+
var h = u.init;
|
|
4199
4218
|
u.init = function() {
|
|
4200
4219
|
if (this.$u) {
|
|
4201
4220
|
var c = this.$d;
|
|
4202
4221
|
this.$y = c.getUTCFullYear(), this.$M = c.getUTCMonth(), this.$D = c.getUTCDate(), this.$W = c.getUTCDay(), this.$H = c.getUTCHours(), this.$m = c.getUTCMinutes(), this.$s = c.getUTCSeconds(), this.$ms = c.getUTCMilliseconds();
|
|
4203
4222
|
} else
|
|
4204
|
-
|
|
4223
|
+
h.call(this);
|
|
4205
4224
|
};
|
|
4206
4225
|
var p = u.utcOffset;
|
|
4207
4226
|
u.utcOffset = function(c, L) {
|
|
@@ -4210,19 +4229,19 @@ var Lr = { exports: {} };
|
|
|
4210
4229
|
return this.$u ? 0 : k(this.$offset) ? p.call(this) : this.$offset;
|
|
4211
4230
|
if (typeof c == "string" && (c = function(I) {
|
|
4212
4231
|
I === void 0 && (I = "");
|
|
4213
|
-
var
|
|
4214
|
-
if (!
|
|
4232
|
+
var P = I.match(i);
|
|
4233
|
+
if (!P)
|
|
4215
4234
|
return null;
|
|
4216
|
-
var W = ("" +
|
|
4235
|
+
var W = ("" + P[0]).match(n) || ["-", 0, 0], te = W[0], Q = 60 * +W[1] + +W[2];
|
|
4217
4236
|
return Q === 0 ? 0 : te === "+" ? Q : -Q;
|
|
4218
4237
|
}(c), c === null))
|
|
4219
4238
|
return this;
|
|
4220
|
-
var
|
|
4239
|
+
var H = Math.abs(c) <= 16 ? 60 * c : c, T = this;
|
|
4221
4240
|
if (L)
|
|
4222
|
-
return T.$offset =
|
|
4241
|
+
return T.$offset = H, T.$u = c === 0, T;
|
|
4223
4242
|
if (c !== 0) {
|
|
4224
|
-
var
|
|
4225
|
-
(T = this.local().add(
|
|
4243
|
+
var O = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4244
|
+
(T = this.local().add(H + O, r)).$offset = H, T.$x.$localOffset = O;
|
|
4226
4245
|
} else
|
|
4227
4246
|
T = this.utc();
|
|
4228
4247
|
return T;
|
|
@@ -4249,39 +4268,39 @@ var Lr = { exports: {} };
|
|
|
4249
4268
|
u.diff = function(c, L, k) {
|
|
4250
4269
|
if (c && this.$u === c.$u)
|
|
4251
4270
|
return _.call(this, c, L, k);
|
|
4252
|
-
var
|
|
4253
|
-
return _.call(
|
|
4271
|
+
var H = this.local(), T = a(c).local();
|
|
4272
|
+
return _.call(H, T, L, k);
|
|
4254
4273
|
};
|
|
4255
4274
|
};
|
|
4256
4275
|
});
|
|
4257
4276
|
})(Lr);
|
|
4258
4277
|
var uo = Lr.exports;
|
|
4259
4278
|
const lo = /* @__PURE__ */ yt(uo);
|
|
4260
|
-
function
|
|
4279
|
+
function fo(e) {
|
|
4261
4280
|
Wr(e, "svelte-etf668", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}');
|
|
4262
4281
|
}
|
|
4263
|
-
function
|
|
4282
|
+
function qt(e, t, r) {
|
|
4264
4283
|
const i = e.slice();
|
|
4265
4284
|
return i[53] = t[r], i;
|
|
4266
4285
|
}
|
|
4267
|
-
function
|
|
4286
|
+
function ho(e) {
|
|
4268
4287
|
let t, r = (
|
|
4269
4288
|
/*displayMessages*/
|
|
4270
|
-
e[3].length > 0 &&
|
|
4289
|
+
e[3].length > 0 && Yt(e)
|
|
4271
4290
|
);
|
|
4272
4291
|
return {
|
|
4273
4292
|
c() {
|
|
4274
4293
|
t = Z("div"), r && r.c(), D(t, "class", "CashierVerificationsWrapper");
|
|
4275
4294
|
},
|
|
4276
4295
|
m(i, n) {
|
|
4277
|
-
|
|
4296
|
+
he(i, t, n), r && r.m(t, null);
|
|
4278
4297
|
},
|
|
4279
4298
|
p(i, n) {
|
|
4280
4299
|
/*displayMessages*/
|
|
4281
|
-
i[3].length > 0 ? r ? r.p(i, n) : (r =
|
|
4300
|
+
i[3].length > 0 ? r ? r.p(i, n) : (r = Yt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4282
4301
|
},
|
|
4283
4302
|
d(i) {
|
|
4284
|
-
i &&
|
|
4303
|
+
i && fe(t), r && r.d();
|
|
4285
4304
|
}
|
|
4286
4305
|
};
|
|
4287
4306
|
}
|
|
@@ -4302,7 +4321,7 @@ function co(e) {
|
|
|
4302
4321
|
);
|
|
4303
4322
|
},
|
|
4304
4323
|
m(r, i) {
|
|
4305
|
-
|
|
4324
|
+
he(r, t, i);
|
|
4306
4325
|
},
|
|
4307
4326
|
p(r, i) {
|
|
4308
4327
|
i[0] & /*clientstylingurl*/
|
|
@@ -4320,29 +4339,29 @@ function co(e) {
|
|
|
4320
4339
|
);
|
|
4321
4340
|
},
|
|
4322
4341
|
d(r) {
|
|
4323
|
-
r &&
|
|
4342
|
+
r && fe(t);
|
|
4324
4343
|
}
|
|
4325
4344
|
};
|
|
4326
4345
|
}
|
|
4327
|
-
function
|
|
4346
|
+
function Yt(e) {
|
|
4328
4347
|
let t, r, i, n, o, s, a, u = (
|
|
4329
4348
|
/*$_*/
|
|
4330
4349
|
e[8]("verificationsRequired") + ""
|
|
4331
|
-
),
|
|
4350
|
+
), f, h, p, v, y, _, c, L, k = wt(
|
|
4332
4351
|
/*displayMessages*/
|
|
4333
4352
|
e[3]
|
|
4334
|
-
),
|
|
4335
|
-
for (let
|
|
4336
|
-
|
|
4353
|
+
), H = [];
|
|
4354
|
+
for (let O = 0; O < k.length; O += 1)
|
|
4355
|
+
H[O] = Zt(qt(e, k, O));
|
|
4337
4356
|
let T = (
|
|
4338
4357
|
/*videoExists*/
|
|
4339
4358
|
e[6] && Jt(e)
|
|
4340
4359
|
);
|
|
4341
4360
|
return {
|
|
4342
4361
|
c() {
|
|
4343
|
-
t = Z("div"), r = ke("svg"), i = ke("path"), n = ke("path"), o = ke("path"), s = xe(), a = Z("p"),
|
|
4344
|
-
for (let
|
|
4345
|
-
|
|
4362
|
+
t = Z("div"), r = ke("svg"), i = ke("path"), n = ke("path"), o = ke("path"), s = xe(), a = Z("p"), f = tr(u), h = xe(), p = Z("span"), p.innerHTML = '<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>', v = xe(), y = Z("div");
|
|
4363
|
+
for (let O = 0; O < H.length; O += 1)
|
|
4364
|
+
H[O].c();
|
|
4346
4365
|
_ = xe(), T && T.c(), D(i, "d", "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"), D(i, "stroke", "#6E738F"), D(i, "stroke-width", "2"), D(i, "stroke-linecap", "round"), D(i, "stroke-linejoin", "round"), D(n, "d", "M12 8V12"), D(n, "stroke", "#6E738F"), D(n, "stroke-width", "2"), D(n, "stroke-linecap", "round"), D(n, "stroke-linejoin", "round"), D(o, "d", "M12 16H12.01"), D(o, "stroke", "#6E738F"), D(o, "stroke-width", "2"), D(o, "stroke-linecap", "round"), D(o, "stroke-linejoin", "round"), D(r, "width", "24"), D(r, "height", "24"), D(r, "viewBox", "0 0 24 24"), D(r, "fill", "none"), D(r, "xmlns", "http://www.w3.org/2000/svg"), D(p, "class", "CashierVerificationChevron"), ue(
|
|
4347
4366
|
p,
|
|
4348
4367
|
"ShowVerifications",
|
|
@@ -4355,10 +4374,10 @@ function qt(e) {
|
|
|
4355
4374
|
e[4]
|
|
4356
4375
|
);
|
|
4357
4376
|
},
|
|
4358
|
-
m(
|
|
4359
|
-
|
|
4360
|
-
for (let
|
|
4361
|
-
P
|
|
4377
|
+
m(O, I) {
|
|
4378
|
+
he(O, t, I), z(t, r), z(r, i), z(r, n), z(r, o), z(t, s), z(t, a), z(a, f), z(t, h), z(t, p), he(O, v, I), he(O, y, I);
|
|
4379
|
+
for (let P = 0; P < H.length; P += 1)
|
|
4380
|
+
H[P] && H[P].m(y, null);
|
|
4362
4381
|
z(y, _), T && T.m(y, null), c || (L = er(
|
|
4363
4382
|
t,
|
|
4364
4383
|
"click",
|
|
@@ -4366,41 +4385,41 @@ function qt(e) {
|
|
|
4366
4385
|
e[9]
|
|
4367
4386
|
), c = !0);
|
|
4368
4387
|
},
|
|
4369
|
-
p(
|
|
4388
|
+
p(O, I) {
|
|
4370
4389
|
if (I[0] & /*$_*/
|
|
4371
4390
|
256 && u !== (u = /*$_*/
|
|
4372
|
-
|
|
4391
|
+
O[8]("verificationsRequired") + "") && Kt(f, u), I[0] & /*allVerificationsVisible*/
|
|
4373
4392
|
16 && ue(
|
|
4374
4393
|
p,
|
|
4375
4394
|
"ShowVerifications",
|
|
4376
4395
|
/*allVerificationsVisible*/
|
|
4377
|
-
|
|
4396
|
+
O[4]
|
|
4378
4397
|
), I[0] & /*displayMessages*/
|
|
4379
4398
|
8) {
|
|
4380
4399
|
k = wt(
|
|
4381
4400
|
/*displayMessages*/
|
|
4382
|
-
|
|
4401
|
+
O[3]
|
|
4383
4402
|
);
|
|
4384
|
-
let
|
|
4385
|
-
for (
|
|
4386
|
-
const W =
|
|
4387
|
-
P
|
|
4403
|
+
let P;
|
|
4404
|
+
for (P = 0; P < k.length; P += 1) {
|
|
4405
|
+
const W = qt(O, k, P);
|
|
4406
|
+
H[P] ? H[P].p(W, I) : (H[P] = Zt(W), H[P].c(), H[P].m(y, _));
|
|
4388
4407
|
}
|
|
4389
|
-
for (;
|
|
4390
|
-
P
|
|
4391
|
-
|
|
4408
|
+
for (; P < H.length; P += 1)
|
|
4409
|
+
H[P].d(1);
|
|
4410
|
+
H.length = k.length;
|
|
4392
4411
|
}
|
|
4393
4412
|
/*videoExists*/
|
|
4394
|
-
|
|
4413
|
+
O[6] ? T ? T.p(O, I) : (T = Jt(O), T.c(), T.m(y, null)) : T && (T.d(1), T = null), I[0] & /*allVerificationsVisible*/
|
|
4395
4414
|
16 && ue(
|
|
4396
4415
|
y,
|
|
4397
4416
|
"ShowVerifications",
|
|
4398
4417
|
/*allVerificationsVisible*/
|
|
4399
|
-
|
|
4418
|
+
O[4]
|
|
4400
4419
|
);
|
|
4401
4420
|
},
|
|
4402
|
-
d(
|
|
4403
|
-
|
|
4421
|
+
d(O) {
|
|
4422
|
+
O && (fe(t), fe(v), fe(y)), Yr(H, O), T && T.d(), c = !1, L();
|
|
4404
4423
|
}
|
|
4405
4424
|
};
|
|
4406
4425
|
}
|
|
@@ -4414,7 +4433,7 @@ function Zt(e) {
|
|
|
4414
4433
|
t = Z("div"), r = Z("div"), r.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>', i = xe(), n = Z("p"), D(r, "class", "IconVerification"), D(n, "class", "text"), D(t, "class", "CashierVerificationMessage Test");
|
|
4415
4434
|
},
|
|
4416
4435
|
m(s, a) {
|
|
4417
|
-
|
|
4436
|
+
he(s, t, a), z(t, r), z(t, i), z(t, n), n.innerHTML = o;
|
|
4418
4437
|
},
|
|
4419
4438
|
p(s, a) {
|
|
4420
4439
|
a[0] & /*displayMessages*/
|
|
@@ -4422,7 +4441,7 @@ function Zt(e) {
|
|
|
4422
4441
|
s[53] + "") && (n.innerHTML = o);
|
|
4423
4442
|
},
|
|
4424
4443
|
d(s) {
|
|
4425
|
-
s &&
|
|
4444
|
+
s && fe(t);
|
|
4426
4445
|
}
|
|
4427
4446
|
};
|
|
4428
4447
|
}
|
|
@@ -4440,27 +4459,27 @@ function Jt(e) {
|
|
|
4440
4459
|
e[5]
|
|
4441
4460
|
), D(t, "class", "CashierVerificationVideo Test");
|
|
4442
4461
|
},
|
|
4443
|
-
m(
|
|
4444
|
-
|
|
4462
|
+
m(f, h) {
|
|
4463
|
+
he(f, t, h), z(t, r), z(t, i), z(t, n), z(n, s), a || (u = er(
|
|
4445
4464
|
t,
|
|
4446
4465
|
"click",
|
|
4447
4466
|
/*showVideo*/
|
|
4448
4467
|
e[10]
|
|
4449
4468
|
), a = !0);
|
|
4450
4469
|
},
|
|
4451
|
-
p(
|
|
4452
|
-
|
|
4470
|
+
p(f, h) {
|
|
4471
|
+
h[0] & /*$_*/
|
|
4453
4472
|
256 && o !== (o = /*$_*/
|
|
4454
|
-
|
|
4473
|
+
f[8]("verification.video.how-to") + "") && Kt(s, o), h[0] & /*desktopView*/
|
|
4455
4474
|
32 && ue(
|
|
4456
4475
|
n,
|
|
4457
4476
|
"CashierVerificationVideoLinkDesktop",
|
|
4458
4477
|
/*desktopView*/
|
|
4459
|
-
|
|
4478
|
+
f[5]
|
|
4460
4479
|
);
|
|
4461
4480
|
},
|
|
4462
|
-
d(
|
|
4463
|
-
|
|
4481
|
+
d(f) {
|
|
4482
|
+
f && fe(t), a = !1, u();
|
|
4464
4483
|
}
|
|
4465
4484
|
};
|
|
4466
4485
|
}
|
|
@@ -4476,7 +4495,7 @@ function po(e) {
|
|
|
4476
4495
|
/*displayMessages*/
|
|
4477
4496
|
o[3]
|
|
4478
4497
|
)
|
|
4479
|
-
return
|
|
4498
|
+
return ho;
|
|
4480
4499
|
}
|
|
4481
4500
|
let i = r(e), n = i && i(e);
|
|
4482
4501
|
return {
|
|
@@ -4489,7 +4508,7 @@ function po(e) {
|
|
|
4489
4508
|
);
|
|
4490
4509
|
},
|
|
4491
4510
|
m(o, s) {
|
|
4492
|
-
|
|
4511
|
+
he(o, t, s), n && n.m(t, null), e[19](t);
|
|
4493
4512
|
},
|
|
4494
4513
|
p(o, s) {
|
|
4495
4514
|
i === (i = r(o)) && n ? n.p(o, s) : (n && n.d(1), n = i && i(o), n && (n.c(), n.m(t, null))), s[0] & /*desktopView*/
|
|
@@ -4503,7 +4522,7 @@ function po(e) {
|
|
|
4503
4522
|
i: ve,
|
|
4504
4523
|
o: ve,
|
|
4505
4524
|
d(o) {
|
|
4506
|
-
o &&
|
|
4525
|
+
o && fe(t), n && n.d(), e[19](null);
|
|
4507
4526
|
}
|
|
4508
4527
|
};
|
|
4509
4528
|
}
|
|
@@ -4511,7 +4530,7 @@ const mo = "verification_explanation_video_widgets.MP4";
|
|
|
4511
4530
|
function vo(e, t, r) {
|
|
4512
4531
|
let i, n;
|
|
4513
4532
|
_t(e, jn, (l) => r(8, i = l)), _t(e, zn, (l) => r(27, n = l)), Xt.extend(lo);
|
|
4514
|
-
let { endpoint: o } = t, { lang: s = "en" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl:
|
|
4533
|
+
let { endpoint: o } = t, { lang: s = "en" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { session: h = "" } = t, { customerid: p = "" } = t, { playersession: v = "" } = t, { mbsource: y = "" } = t, _, c = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set(), k, H, T, O = !1, I = !0, P = !1, W = "", te = !1, Q = window.navigator.userAgent;
|
|
4515
4534
|
var R;
|
|
4516
4535
|
(function(l) {
|
|
4517
4536
|
l.Manual = "Manual", l.ShuftiPro = "ShuftiPro";
|
|
@@ -4542,8 +4561,8 @@ function vo(e, t, r) {
|
|
|
4542
4561
|
let l = a;
|
|
4543
4562
|
if (l)
|
|
4544
4563
|
return fetch(l).then((E) => E.json()).then((E) => {
|
|
4545
|
-
Object.keys(E).forEach((
|
|
4546
|
-
Rt(
|
|
4564
|
+
Object.keys(E).forEach((B) => {
|
|
4565
|
+
Rt(B, E[B]);
|
|
4547
4566
|
});
|
|
4548
4567
|
}).catch((E) => {
|
|
4549
4568
|
console.log(E);
|
|
@@ -4555,24 +4574,24 @@ function vo(e, t, r) {
|
|
|
4555
4574
|
const b = () => {
|
|
4556
4575
|
$n(s);
|
|
4557
4576
|
}, m = () => {
|
|
4558
|
-
r(18,
|
|
4577
|
+
r(18, H = N());
|
|
4559
4578
|
const l = new URL(`${o}/v1/player/${p}/verification/GetKYCCustomerStatus?language=${s}`), E = new Headers();
|
|
4560
4579
|
E.append("accept", "application/json"), E.append("Content-Type", "application/json"), E.append("x-sessionid", `${v}`), E.append("X-Client-Request-Timestamp", Xt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4561
|
-
const
|
|
4580
|
+
const B = {
|
|
4562
4581
|
method: "POST",
|
|
4563
4582
|
headers: E,
|
|
4564
4583
|
body: JSON.stringify({})
|
|
4565
4584
|
};
|
|
4566
|
-
r(7, te = !0), fetch(l,
|
|
4585
|
+
r(7, te = !0), fetch(l, B).then((J) => J.json()).then((J) => {
|
|
4567
4586
|
const Je = w(J?.Verifications);
|
|
4568
4587
|
k = V(Je), k.VerificationStatuses.forEach((Le) => {
|
|
4569
4588
|
Le.VerificationUrlType !== "Widget" && c.add(Le.Vendor);
|
|
4570
4589
|
}), r(3, T = de());
|
|
4571
4590
|
}).finally(() => r(7, te = !1));
|
|
4572
|
-
}, w = (l) => l ? l.sort((E,
|
|
4591
|
+
}, w = (l) => l ? l.sort((E, B) => new Date(B.Created).getTime() - new Date(E.Created).getTime()) : [], S = () => {
|
|
4573
4592
|
n && m();
|
|
4574
4593
|
}, N = () => {
|
|
4575
|
-
let l = (
|
|
4594
|
+
let l = (h || n).split(".")[1];
|
|
4576
4595
|
if (l) {
|
|
4577
4596
|
let E = JSON.parse(atob(l));
|
|
4578
4597
|
return E.cdn + "/cashier/operator-assets/" + E?.mid;
|
|
@@ -4584,13 +4603,13 @@ function vo(e, t, r) {
|
|
|
4584
4603
|
VerificationSummaryStatus: j.Unverified,
|
|
4585
4604
|
VerificationStatuses: []
|
|
4586
4605
|
};
|
|
4587
|
-
const E =
|
|
4606
|
+
const E = Y(l);
|
|
4588
4607
|
if (E && E.length) {
|
|
4589
|
-
const
|
|
4608
|
+
const B = G(E);
|
|
4590
4609
|
return {
|
|
4591
|
-
VerificationSummaryStatus:
|
|
4592
|
-
VerificationUrl:
|
|
4593
|
-
VerificationStatuses: $(E,
|
|
4610
|
+
VerificationSummaryStatus: B.Status,
|
|
4611
|
+
VerificationUrl: B.Flags?.DeferredUrlKey,
|
|
4612
|
+
VerificationStatuses: $(E, B.Status)
|
|
4594
4613
|
};
|
|
4595
4614
|
} else
|
|
4596
4615
|
return {
|
|
@@ -4598,17 +4617,17 @@ function vo(e, t, r) {
|
|
|
4598
4617
|
VerificationStatuses: $(l, [j.Failed])
|
|
4599
4618
|
};
|
|
4600
4619
|
}, G = (l) => l.reduce(
|
|
4601
|
-
(E,
|
|
4620
|
+
(E, B) => E ? new Date(E) < new Date(B) ? B : E : B,
|
|
4602
4621
|
0
|
|
4603
|
-
), $ = (l, E) => l.filter((
|
|
4604
|
-
Type:
|
|
4605
|
-
Vendor:
|
|
4606
|
-
VerificationDocuments:
|
|
4607
|
-
VerificationUrlType:
|
|
4608
|
-
VerificationUrl:
|
|
4609
|
-
})),
|
|
4610
|
-
const E = l.Documents && l.VendorName === R.Manual,
|
|
4611
|
-
return E &&
|
|
4622
|
+
), $ = (l, E) => l.filter((B) => E.includes(B.Status)).map((B) => ({
|
|
4623
|
+
Type: B.Type,
|
|
4624
|
+
Vendor: B.VendorName,
|
|
4625
|
+
VerificationDocuments: B.Documents ? [...B.Documents] : [],
|
|
4626
|
+
VerificationUrlType: B.FlowInfo?.Type,
|
|
4627
|
+
VerificationUrl: B.FlowInfo?.Url
|
|
4628
|
+
})), Y = (l) => l.filter((E) => g.includes(E.Status) ? E.FlowInfo && E.FlowInfo.Url || ae(E) || re(E) : !1), ae = (l) => {
|
|
4629
|
+
const E = l.Documents && l.VendorName === R.Manual, B = l.Documents && l.Documents.some((J) => J.Status === C.Requested);
|
|
4630
|
+
return E && B;
|
|
4612
4631
|
}, re = (l) => l.VendorName === R.ShuftiPro && l.Status === j.Referred, de = () => {
|
|
4613
4632
|
switch (k.VerificationSummaryStatus) {
|
|
4614
4633
|
case j.InProgress:
|
|
@@ -4622,38 +4641,38 @@ function vo(e, t, r) {
|
|
|
4622
4641
|
return [i("verification.message.failed")];
|
|
4623
4642
|
}
|
|
4624
4643
|
}, ie = (l) => {
|
|
4625
|
-
const E = k.VerificationStatuses.filter((
|
|
4644
|
+
const E = k.VerificationStatuses.filter((B) => B.Vendor === l);
|
|
4626
4645
|
if (l === R.ShuftiPro)
|
|
4627
4646
|
return X(E);
|
|
4628
4647
|
{
|
|
4629
|
-
const
|
|
4630
|
-
link: `<a href="${E[0].VerificationUrl}" target="_blank">${
|
|
4648
|
+
const B = i("verification.idenfy.link-name"), J = {
|
|
4649
|
+
link: `<a href="${E[0].VerificationUrl}" target="_blank">${B}</a>`
|
|
4631
4650
|
};
|
|
4632
4651
|
return i("verification.idenfy.in-progress", { values: J });
|
|
4633
4652
|
}
|
|
4634
4653
|
}, X = (l) => {
|
|
4635
|
-
const E = [],
|
|
4654
|
+
const E = [], B = {}, J = [
|
|
4636
4655
|
se.Biometric,
|
|
4637
4656
|
se.Documents,
|
|
4638
4657
|
se.ProofOfAddress
|
|
4639
4658
|
];
|
|
4640
4659
|
l.forEach((me) => {
|
|
4641
|
-
J.includes(me.Type) && (E.push(me.Type),
|
|
4660
|
+
J.includes(me.Type) && (E.push(me.Type), B[me.Type] = K(me, pe(me.Type)));
|
|
4642
4661
|
});
|
|
4643
4662
|
let Je = E.every((me) => L.has(me)), Le = `verification.shuftipro.in-progress.${E.sort().join(".")}`;
|
|
4644
|
-
return Je ? i("verification.shuftipro.validations-started") : i(Le, { values:
|
|
4663
|
+
return Je ? i("verification.shuftipro.validations-started") : i(Le, { values: B });
|
|
4645
4664
|
}, K = (l, E) => `<a class="verificationLink ${l.Type}" href=" ${l.VerificationUrl} " target="_blank">${E}</a>`, pe = (l) => i(`verification.shuftipro.link-name.${l}`), be = () => {
|
|
4646
|
-
r(4,
|
|
4665
|
+
r(4, O = !O);
|
|
4647
4666
|
}, Nr = () => {
|
|
4648
4667
|
r(5, I = !so(Q));
|
|
4649
4668
|
}, kr = () => {
|
|
4650
|
-
W =
|
|
4669
|
+
W = H + "/" + s + "/" + mo;
|
|
4651
4670
|
try {
|
|
4652
4671
|
fetch(W, { method: "HEAD" }).then((l) => {
|
|
4653
|
-
r(6,
|
|
4672
|
+
r(6, P = l.ok);
|
|
4654
4673
|
});
|
|
4655
4674
|
} catch {
|
|
4656
|
-
r(6,
|
|
4675
|
+
r(6, P = !1);
|
|
4657
4676
|
}
|
|
4658
4677
|
}, Rr = () => {
|
|
4659
4678
|
window.dispatchEvent(new CustomEvent(
|
|
@@ -4664,30 +4683,30 @@ function vo(e, t, r) {
|
|
|
4664
4683
|
));
|
|
4665
4684
|
};
|
|
4666
4685
|
function Ur(l) {
|
|
4667
|
-
|
|
4686
|
+
qr[l ? "unshift" : "push"](() => {
|
|
4668
4687
|
_ = l, r(2, _);
|
|
4669
4688
|
});
|
|
4670
4689
|
}
|
|
4671
4690
|
return e.$$set = (l) => {
|
|
4672
|
-
"endpoint" in l && r(11, o = l.endpoint), "lang" in l && r(12, s = l.lang), "translationurl" in l && r(13, a = l.translationurl), "clientstyling" in l && r(0, u = l.clientstyling), "clientstylingurl" in l && r(1,
|
|
4691
|
+
"endpoint" in l && r(11, o = l.endpoint), "lang" in l && r(12, s = l.lang), "translationurl" in l && r(13, a = l.translationurl), "clientstyling" in l && r(0, u = l.clientstyling), "clientstylingurl" in l && r(1, f = l.clientstylingurl), "session" in l && r(14, h = l.session), "customerid" in l && r(15, p = l.customerid), "playersession" in l && r(16, v = l.playersession), "mbsource" in l && r(17, y = l.mbsource);
|
|
4673
4692
|
}, e.$$.update = () => {
|
|
4674
4693
|
e.$$.dirty[0] & /*lang*/
|
|
4675
4694
|
4096 && s && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4676
|
-
83968 && o &&
|
|
4677
|
-
83968 && o && !
|
|
4695
|
+
83968 && o && h && v && m(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4696
|
+
83968 && o && !h && v && S(), e.$$.dirty[0] & /*translationurl*/
|
|
4678
4697
|
8192 && a && d(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4679
4698
|
5 && u && _ && Zr(_, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4680
|
-
6 &&
|
|
4681
|
-
262144 &&
|
|
4699
|
+
6 && f && _ && Jr(_, f), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4700
|
+
262144 && H && kr(), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4682
4701
|
131076 && y && _ && Qr(_, `${y}.Style`);
|
|
4683
4702
|
}, [
|
|
4684
4703
|
u,
|
|
4685
|
-
|
|
4704
|
+
f,
|
|
4686
4705
|
_,
|
|
4687
4706
|
T,
|
|
4688
|
-
H,
|
|
4689
|
-
I,
|
|
4690
4707
|
O,
|
|
4708
|
+
I,
|
|
4709
|
+
P,
|
|
4691
4710
|
te,
|
|
4692
4711
|
i,
|
|
4693
4712
|
be,
|
|
@@ -4695,11 +4714,11 @@ function vo(e, t, r) {
|
|
|
4695
4714
|
o,
|
|
4696
4715
|
s,
|
|
4697
4716
|
a,
|
|
4698
|
-
|
|
4717
|
+
h,
|
|
4699
4718
|
p,
|
|
4700
4719
|
v,
|
|
4701
4720
|
y,
|
|
4702
|
-
|
|
4721
|
+
H,
|
|
4703
4722
|
Ur
|
|
4704
4723
|
];
|
|
4705
4724
|
}
|
|
@@ -4722,7 +4741,7 @@ class go extends $r {
|
|
|
4722
4741
|
playersession: 16,
|
|
4723
4742
|
mbsource: 17
|
|
4724
4743
|
},
|
|
4725
|
-
|
|
4744
|
+
fo,
|
|
4726
4745
|
[-1, -1]
|
|
4727
4746
|
);
|
|
4728
4747
|
}
|