@everymatrix/cashier-verifications 1.59.1 → 1.59.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierVerifications-AxDwGdNn.cjs +18 -0
- package/components/{CashierVerifications-DcHITjNc.js → CashierVerifications-BKJcRDli.js} +435 -433
- package/components/{CashierVerifications-qLWQWM7j.js → CashierVerifications-BsMilNHs.js} +401 -399
- package/components/{CashierVideoModal-C5K2k6vl.js → CashierVideoModal-B-CXY0VP.js} +15 -15
- package/components/{CashierVideoModal-BLxbNiAO.cjs → CashierVideoModal-Z7NZ68GI.cjs} +1 -1
- package/components/{CashierVideoModal-DgW9dQjO.js → CashierVideoModal-ijUUQb6t.js} +19 -19
- 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
- package/components/CashierVerifications-byA5bB6e.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function Q() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Yt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function St() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function Ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Yt);
|
|
11
11
|
}
|
|
12
12
|
function gt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Zt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ke;
|
|
19
|
-
function
|
|
19
|
+
function Kn(e, t) {
|
|
20
20
|
return e === t ? !0 : (ke || (ke = document.createElement("a")), ke.href = t, e === ke.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Pr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Jt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const i of t)
|
|
28
28
|
i(void 0);
|
|
@@ -31,20 +31,20 @@ function Yt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function $r(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Jt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function re(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const i =
|
|
40
|
+
function Br(e, t, r) {
|
|
41
|
+
const i = Mr(e);
|
|
42
42
|
if (!i.getElementById(t)) {
|
|
43
43
|
const n = Z("style");
|
|
44
|
-
n.id = t, n.textContent = r,
|
|
44
|
+
n.id = t, n.textContent = r, Cr(i, n);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Mr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function $r(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Cr(e, t) {
|
|
58
58
|
return re(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,14 +67,14 @@ function ae(e, t, r) {
|
|
|
67
67
|
function ie(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Dr(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function Z(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function es(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function vt(e) {
|
|
@@ -83,7 +83,7 @@ function vt(e) {
|
|
|
83
83
|
function xe() {
|
|
84
84
|
return vt(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ts() {
|
|
87
87
|
return vt("");
|
|
88
88
|
}
|
|
89
89
|
function bt(e, t, r, i) {
|
|
@@ -96,17 +96,17 @@ function le(e, t, r) {
|
|
|
96
96
|
const i = t.toLowerCase();
|
|
97
97
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : K(e, t, r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ir(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Lr(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
106
|
function Ee(e, t, r) {
|
|
107
107
|
e.classList.toggle(t, !!r);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Nr(e) {
|
|
110
110
|
const t = {};
|
|
111
111
|
return e.childNodes.forEach(
|
|
112
112
|
/** @param {Element} node */
|
|
@@ -119,20 +119,20 @@ let Me;
|
|
|
119
119
|
function Be(e) {
|
|
120
120
|
Me = e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Rr() {
|
|
123
123
|
if (!Me)
|
|
124
124
|
throw new Error("Function called outside component initialization");
|
|
125
125
|
return Me;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function rs(e) {
|
|
128
|
+
Rr().$$.on_mount.push(e);
|
|
129
129
|
}
|
|
130
130
|
const ye = [], st = [];
|
|
131
131
|
let _e = [];
|
|
132
|
-
const
|
|
132
|
+
const Tt = [], kr = /* @__PURE__ */ Promise.resolve();
|
|
133
133
|
let ot = !1;
|
|
134
|
-
function
|
|
135
|
-
ot || (ot = !0,
|
|
134
|
+
function Ur() {
|
|
135
|
+
ot || (ot = !0, kr.then(te));
|
|
136
136
|
}
|
|
137
137
|
function at(e) {
|
|
138
138
|
_e.push(e);
|
|
@@ -147,7 +147,7 @@ function te() {
|
|
|
147
147
|
try {
|
|
148
148
|
for (; ve < ye.length; ) {
|
|
149
149
|
const t = ye[ve];
|
|
150
|
-
ve++, Be(t),
|
|
150
|
+
ve++, Be(t), Fr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
153
|
throw ye.length = 0, ve = 0, t;
|
|
@@ -160,43 +160,43 @@ function te() {
|
|
|
160
160
|
}
|
|
161
161
|
_e.length = 0;
|
|
162
162
|
} while (ye.length);
|
|
163
|
-
for (;
|
|
164
|
-
|
|
163
|
+
for (; Tt.length; )
|
|
164
|
+
Tt.pop()();
|
|
165
165
|
ot = !1, Qe.clear(), Be(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Fr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
169
|
e.update(), Ie(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
171
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Vr(e) {
|
|
175
175
|
const t = [], r = [];
|
|
176
176
|
_e.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), _e = t;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
e && e.i && (
|
|
178
|
+
const Gr = /* @__PURE__ */ new Set();
|
|
179
|
+
function jr(e, t) {
|
|
180
|
+
e && e.i && (Gr.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Ht(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function zr(e, t, r) {
|
|
186
186
|
const { fragment: i, after_update: n } = e.$$;
|
|
187
187
|
i && i.m(t, r), at(() => {
|
|
188
|
-
const s = e.$$.on_mount.map(
|
|
188
|
+
const s = e.$$.on_mount.map(Yt).filter(gt);
|
|
189
189
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ie(s), e.$$.on_mount = [];
|
|
190
190
|
}), n.forEach(at);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Xr(e, t) {
|
|
193
193
|
const r = e.$$;
|
|
194
|
-
r.fragment !== null && (
|
|
194
|
+
r.fragment !== null && (Vr(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
e.$$.dirty[0] === -1 && (ye.push(e),
|
|
196
|
+
function Wr(e, t) {
|
|
197
|
+
e.$$.dirty[0] === -1 && (ye.push(e), Ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
200
200
|
const o = Me;
|
|
201
201
|
Be(e);
|
|
202
202
|
const u = e.$$ = {
|
|
@@ -206,7 +206,7 @@ function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
206
206
|
props: s,
|
|
207
207
|
update: Q,
|
|
208
208
|
not_equal: n,
|
|
209
|
-
bound:
|
|
209
|
+
bound: St(),
|
|
210
210
|
// lifecycle
|
|
211
211
|
on_mount: [],
|
|
212
212
|
on_destroy: [],
|
|
@@ -215,7 +215,7 @@ function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
215
215
|
after_update: [],
|
|
216
216
|
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
217
217
|
// everything else
|
|
218
|
-
callbacks:
|
|
218
|
+
callbacks: St(),
|
|
219
219
|
dirty: a,
|
|
220
220
|
skip_bound: !1,
|
|
221
221
|
root: t.target || o.$$.root
|
|
@@ -224,19 +224,19 @@ function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
224
224
|
let h = !1;
|
|
225
225
|
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...E) => {
|
|
226
226
|
const H = E.length ? E[0] : m;
|
|
227
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h &&
|
|
227
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h && Wr(e, c)), m;
|
|
228
228
|
}) : [], u.update(), h = !0, Ie(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
229
229
|
if (t.hydrate) {
|
|
230
|
-
const c =
|
|
230
|
+
const c = Ir(t.target);
|
|
231
231
|
u.fragment && u.fragment.l(c), c.forEach(ie);
|
|
232
232
|
} else
|
|
233
233
|
u.fragment && u.fragment.c();
|
|
234
|
-
t.intro &&
|
|
234
|
+
t.intro && jr(e.$$.fragment), zr(e, t.target, t.anchor), te();
|
|
235
235
|
}
|
|
236
236
|
Be(o);
|
|
237
237
|
}
|
|
238
|
-
let
|
|
239
|
-
typeof HTMLElement == "function" && (
|
|
238
|
+
let Qt;
|
|
239
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
240
240
|
/** The Svelte component constructor */
|
|
241
241
|
$$ctor;
|
|
242
242
|
/** Slots */
|
|
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
295
295
|
};
|
|
296
296
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
297
297
|
return;
|
|
298
|
-
const t = {}, r =
|
|
298
|
+
const t = {}, r = Nr(this);
|
|
299
299
|
for (const n of this.$$s)
|
|
300
300
|
n in r && (t[n] = [e(n)]);
|
|
301
301
|
for (const n of this.attributes) {
|
|
@@ -382,8 +382,8 @@ function Fe(e, t, r, i) {
|
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
let l = class extends
|
|
385
|
+
function Yr(e, t, r, i, n, s) {
|
|
386
|
+
let l = class extends Qt {
|
|
387
387
|
constructor() {
|
|
388
388
|
super(e, r, n), this.$$p_d = t;
|
|
389
389
|
}
|
|
@@ -411,7 +411,7 @@ function Wr(e, t, r, i, n, s) {
|
|
|
411
411
|
}), e.element = /** @type {any} */
|
|
412
412
|
l, l;
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class Zr {
|
|
415
415
|
/**
|
|
416
416
|
* ### PRIVATE API
|
|
417
417
|
*
|
|
@@ -430,7 +430,7 @@ class qr {
|
|
|
430
430
|
$$set = void 0;
|
|
431
431
|
/** @returns {void} */
|
|
432
432
|
$destroy() {
|
|
433
|
-
|
|
433
|
+
Xr(this, 1), this.$destroy = Q;
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -452,13 +452,13 @@ class qr {
|
|
|
452
452
|
* @returns {void}
|
|
453
453
|
*/
|
|
454
454
|
$set(t) {
|
|
455
|
-
this.$$set && !
|
|
455
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
const
|
|
459
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
458
|
+
const Jr = "4";
|
|
459
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
460
460
|
const be = [];
|
|
461
|
-
function
|
|
461
|
+
function Qr(e, t) {
|
|
462
462
|
return {
|
|
463
463
|
subscribe: We(e, t).subscribe
|
|
464
464
|
};
|
|
@@ -467,7 +467,7 @@ function We(e, t = Q) {
|
|
|
467
467
|
let r;
|
|
468
468
|
const i = /* @__PURE__ */ new Set();
|
|
469
469
|
function n(a) {
|
|
470
|
-
if (
|
|
470
|
+
if (Zt(e, a) && (e = a, r)) {
|
|
471
471
|
const o = !be.length;
|
|
472
472
|
for (const u of i)
|
|
473
473
|
u[1](), be.push(u, e);
|
|
@@ -494,7 +494,7 @@ function Oe(e, t, r) {
|
|
|
494
494
|
if (!n.every(Boolean))
|
|
495
495
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
496
496
|
const s = t.length < 2;
|
|
497
|
-
return
|
|
497
|
+
return Qr(r, (l, a) => {
|
|
498
498
|
let o = !1;
|
|
499
499
|
const u = [];
|
|
500
500
|
let h = 0, c = Q;
|
|
@@ -505,7 +505,7 @@ function Oe(e, t, r) {
|
|
|
505
505
|
const H = t(i ? u[0] : u, l, a);
|
|
506
506
|
s ? l(H) : c = gt(H) ? H : Q;
|
|
507
507
|
}, E = n.map(
|
|
508
|
-
(H, v) =>
|
|
508
|
+
(H, v) => Jt(
|
|
509
509
|
H,
|
|
510
510
|
($) => {
|
|
511
511
|
u[v] = $, h &= ~(1 << v), o && m();
|
|
@@ -520,71 +520,71 @@ function Oe(e, t, r) {
|
|
|
520
520
|
};
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
524
524
|
function yt(e) {
|
|
525
525
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
526
526
|
}
|
|
527
|
-
var
|
|
528
|
-
return
|
|
527
|
+
var Kr = function(t) {
|
|
528
|
+
return ei(t) && !ti(t);
|
|
529
529
|
};
|
|
530
|
-
function
|
|
530
|
+
function ei(e) {
|
|
531
531
|
return !!e && typeof e == "object";
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ti(e) {
|
|
534
534
|
var t = Object.prototype.toString.call(e);
|
|
535
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
535
|
+
return t === "[object RegExp]" || t === "[object Date]" || ni(e);
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
539
|
-
return e.$$typeof ===
|
|
537
|
+
var ri = typeof Symbol == "function" && Symbol.for, ii = ri ? Symbol.for("react.element") : 60103;
|
|
538
|
+
function ni(e) {
|
|
539
|
+
return e.$$typeof === ii;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function si(e) {
|
|
542
542
|
return Array.isArray(e) ? [] : {};
|
|
543
543
|
}
|
|
544
544
|
function Ce(e, t) {
|
|
545
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? we(
|
|
545
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(si(e), e, t) : e;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function oi(e, t, r) {
|
|
548
548
|
return e.concat(t).map(function(i) {
|
|
549
549
|
return Ce(i, r);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function ai(e, t) {
|
|
553
553
|
if (!t.customMerge)
|
|
554
554
|
return we;
|
|
555
555
|
var r = t.customMerge(e);
|
|
556
556
|
return typeof r == "function" ? r : we;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function ui(e) {
|
|
559
559
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
560
560
|
return Object.propertyIsEnumerable.call(e, t);
|
|
561
561
|
}) : [];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return Object.keys(e).concat(
|
|
563
|
+
function Ot(e) {
|
|
564
|
+
return Object.keys(e).concat(ui(e));
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function er(e, t) {
|
|
567
567
|
try {
|
|
568
568
|
return t in e;
|
|
569
569
|
} catch {
|
|
570
570
|
return !1;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
return
|
|
573
|
+
function li(e, t) {
|
|
574
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function hi(e, t, r) {
|
|
577
577
|
var i = {};
|
|
578
|
-
return r.isMergeableObject(e) &&
|
|
578
|
+
return r.isMergeableObject(e) && Ot(e).forEach(function(n) {
|
|
579
579
|
i[n] = Ce(e[n], r);
|
|
580
|
-
}),
|
|
581
|
-
|
|
580
|
+
}), Ot(t).forEach(function(n) {
|
|
581
|
+
li(e, n) || (er(e, n) && r.isMergeableObject(t[n]) ? i[n] = ai(n, r)(e[n], t[n], r) : i[n] = Ce(t[n], r));
|
|
582
582
|
}), i;
|
|
583
583
|
}
|
|
584
584
|
function we(e, t, r) {
|
|
585
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
585
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || oi, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = Ce;
|
|
586
586
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
587
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
587
|
+
return s ? i ? r.arrayMerge(e, t, r) : hi(e, t, r) : Ce(t, r);
|
|
588
588
|
}
|
|
589
589
|
we.all = function(t, r) {
|
|
590
590
|
if (!Array.isArray(t))
|
|
@@ -593,8 +593,8 @@ we.all = function(t, r) {
|
|
|
593
593
|
return we(i, n, r);
|
|
594
594
|
}, {});
|
|
595
595
|
};
|
|
596
|
-
var
|
|
597
|
-
const
|
|
596
|
+
var fi = we, ci = fi;
|
|
597
|
+
const di = /* @__PURE__ */ yt(ci);
|
|
598
598
|
/*! *****************************************************************************
|
|
599
599
|
Copyright (c) Microsoft Corporation.
|
|
600
600
|
|
|
@@ -626,17 +626,17 @@ function qe(e, t) {
|
|
|
626
626
|
}
|
|
627
627
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
628
628
|
}
|
|
629
|
-
var
|
|
630
|
-
return
|
|
629
|
+
var A = function() {
|
|
630
|
+
return A = Object.assign || function(t) {
|
|
631
631
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
632
632
|
r = arguments[i];
|
|
633
633
|
for (var s in r)
|
|
634
634
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
635
635
|
}
|
|
636
636
|
return t;
|
|
637
|
-
},
|
|
637
|
+
}, A.apply(this, arguments);
|
|
638
638
|
};
|
|
639
|
-
function
|
|
639
|
+
function mi(e, t) {
|
|
640
640
|
var r = {};
|
|
641
641
|
for (var i in e)
|
|
642
642
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -652,53 +652,55 @@ function Ke(e, t, r) {
|
|
|
652
652
|
return e.concat(s || t);
|
|
653
653
|
}
|
|
654
654
|
function et(e, t) {
|
|
655
|
-
var r = t && t.cache ? t.cache :
|
|
655
|
+
var r = t && t.cache ? t.cache : xi, i = t && t.serializer ? t.serializer : yi, n = t && t.strategy ? t.strategy : gi;
|
|
656
656
|
return n(e, {
|
|
657
657
|
cache: r,
|
|
658
658
|
serializer: i
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function pi(e) {
|
|
662
662
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
var n =
|
|
664
|
+
function tr(e, t, r, i) {
|
|
665
|
+
var n = pi(i) ? i : r(i), s = t.get(n);
|
|
666
666
|
return typeof s > "u" && (s = e.call(this, i), t.set(n, s)), s;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function rr(e, t, r) {
|
|
669
669
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
670
670
|
return typeof s > "u" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function xt(e, t, r, i, n) {
|
|
673
673
|
return r.bind(t, e, i, n);
|
|
674
674
|
}
|
|
675
|
-
function pi(e, t) {
|
|
676
|
-
var r = e.length === 1 ? mi : Kt;
|
|
677
|
-
return er(e, this, r, t.cache.create(), t.serializer);
|
|
678
|
-
}
|
|
679
675
|
function gi(e, t) {
|
|
680
|
-
|
|
676
|
+
var r = e.length === 1 ? tr : rr;
|
|
677
|
+
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
678
|
+
}
|
|
679
|
+
function vi(e, t) {
|
|
680
|
+
return xt(e, this, rr, t.cache.create(), t.serializer);
|
|
681
681
|
}
|
|
682
|
-
|
|
682
|
+
function bi(e, t) {
|
|
683
|
+
return xt(e, this, tr, t.cache.create(), t.serializer);
|
|
684
|
+
}
|
|
685
|
+
var yi = function() {
|
|
683
686
|
return JSON.stringify(arguments);
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}()
|
|
696
|
-
), yi = {
|
|
687
|
+
};
|
|
688
|
+
function _t() {
|
|
689
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
690
|
+
}
|
|
691
|
+
_t.prototype.get = function(e) {
|
|
692
|
+
return this.cache[e];
|
|
693
|
+
};
|
|
694
|
+
_t.prototype.set = function(e, t) {
|
|
695
|
+
this.cache[e] = t;
|
|
696
|
+
};
|
|
697
|
+
var xi = {
|
|
697
698
|
create: function() {
|
|
698
|
-
return new
|
|
699
|
+
return new _t();
|
|
699
700
|
}
|
|
700
701
|
}, tt = {
|
|
701
|
-
variadic:
|
|
702
|
+
variadic: vi,
|
|
703
|
+
monadic: bi
|
|
702
704
|
}, T;
|
|
703
705
|
(function(e) {
|
|
704
706
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -711,43 +713,43 @@ var Se;
|
|
|
711
713
|
(function(e) {
|
|
712
714
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
713
715
|
})(Se || (Se = {}));
|
|
714
|
-
function
|
|
716
|
+
function At(e) {
|
|
715
717
|
return e.type === C.literal;
|
|
716
718
|
}
|
|
717
|
-
function
|
|
719
|
+
function _i(e) {
|
|
718
720
|
return e.type === C.argument;
|
|
719
721
|
}
|
|
720
|
-
function
|
|
722
|
+
function ir(e) {
|
|
721
723
|
return e.type === C.number;
|
|
722
724
|
}
|
|
723
|
-
function
|
|
725
|
+
function nr(e) {
|
|
724
726
|
return e.type === C.date;
|
|
725
727
|
}
|
|
726
|
-
function
|
|
728
|
+
function sr(e) {
|
|
727
729
|
return e.type === C.time;
|
|
728
730
|
}
|
|
729
|
-
function
|
|
731
|
+
function or(e) {
|
|
730
732
|
return e.type === C.select;
|
|
731
733
|
}
|
|
732
|
-
function
|
|
734
|
+
function ar(e) {
|
|
733
735
|
return e.type === C.plural;
|
|
734
736
|
}
|
|
735
|
-
function
|
|
737
|
+
function Ei(e) {
|
|
736
738
|
return e.type === C.pound;
|
|
737
739
|
}
|
|
738
|
-
function
|
|
740
|
+
function ur(e) {
|
|
739
741
|
return e.type === C.tag;
|
|
740
742
|
}
|
|
741
|
-
function
|
|
743
|
+
function lr(e) {
|
|
742
744
|
return !!(e && typeof e == "object" && e.type === Se.number);
|
|
743
745
|
}
|
|
744
746
|
function lt(e) {
|
|
745
747
|
return !!(e && typeof e == "object" && e.type === Se.dateTime);
|
|
746
748
|
}
|
|
747
|
-
var
|
|
748
|
-
function
|
|
749
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
|
|
750
|
+
function Si(e) {
|
|
749
751
|
var t = {};
|
|
750
|
-
return e.replace(
|
|
752
|
+
return e.replace(wi, function(r) {
|
|
751
753
|
var i = r.length;
|
|
752
754
|
switch (r[0]) {
|
|
753
755
|
case "G":
|
|
@@ -836,11 +838,11 @@ function wi(e) {
|
|
|
836
838
|
return "";
|
|
837
839
|
}), t;
|
|
838
840
|
}
|
|
839
|
-
var
|
|
840
|
-
function
|
|
841
|
+
var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
842
|
+
function Hi(e) {
|
|
841
843
|
if (e.length === 0)
|
|
842
844
|
throw new Error("Number skeleton cannot be empty");
|
|
843
|
-
for (var t = e.split(
|
|
845
|
+
for (var t = e.split(Ti).filter(function(m) {
|
|
844
846
|
return m.length > 0;
|
|
845
847
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
846
848
|
var s = n[i], l = s.split("/");
|
|
@@ -855,17 +857,17 @@ function Ti(e) {
|
|
|
855
857
|
}
|
|
856
858
|
return r;
|
|
857
859
|
}
|
|
858
|
-
function
|
|
860
|
+
function Oi(e) {
|
|
859
861
|
return e.replace(/^(.*?)-/, "");
|
|
860
862
|
}
|
|
861
|
-
var
|
|
862
|
-
function
|
|
863
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Ai = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
864
|
+
function $t(e) {
|
|
863
865
|
var t = {};
|
|
864
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
866
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, i, n) {
|
|
865
867
|
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)), "";
|
|
866
868
|
}), t;
|
|
867
869
|
}
|
|
868
|
-
function
|
|
870
|
+
function dr(e) {
|
|
869
871
|
switch (e) {
|
|
870
872
|
case "sign-auto":
|
|
871
873
|
return {
|
|
@@ -913,17 +915,17 @@ function Pi(e) {
|
|
|
913
915
|
notation: "scientific"
|
|
914
916
|
}, e = e.slice(1)), t) {
|
|
915
917
|
var r = e.slice(0, 2);
|
|
916
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
918
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
|
|
917
919
|
throw new Error("Malformed concise eng/scientific notation");
|
|
918
920
|
t.minimumIntegerDigits = e.length;
|
|
919
921
|
}
|
|
920
922
|
return t;
|
|
921
923
|
}
|
|
922
|
-
function
|
|
923
|
-
var t = {}, r =
|
|
924
|
+
function Bt(e) {
|
|
925
|
+
var t = {}, r = dr(e);
|
|
924
926
|
return r || t;
|
|
925
927
|
}
|
|
926
|
-
function
|
|
928
|
+
function $i(e) {
|
|
927
929
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
928
930
|
var n = i[r];
|
|
929
931
|
switch (n.stem) {
|
|
@@ -947,7 +949,7 @@ function Ai(e) {
|
|
|
947
949
|
continue;
|
|
948
950
|
case "measure-unit":
|
|
949
951
|
case "unit":
|
|
950
|
-
t.style = "unit", t.unit =
|
|
952
|
+
t.style = "unit", t.unit = Oi(n.options[0]);
|
|
951
953
|
continue;
|
|
952
954
|
case "compact-short":
|
|
953
955
|
case "K":
|
|
@@ -958,13 +960,13 @@ function Ai(e) {
|
|
|
958
960
|
t.notation = "compact", t.compactDisplay = "long";
|
|
959
961
|
continue;
|
|
960
962
|
case "scientific":
|
|
961
|
-
t =
|
|
962
|
-
return
|
|
963
|
+
t = A(A(A({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
964
|
+
return A(A({}, o), Bt(u));
|
|
963
965
|
}, {}));
|
|
964
966
|
continue;
|
|
965
967
|
case "engineering":
|
|
966
|
-
t =
|
|
967
|
-
return
|
|
968
|
+
t = A(A(A({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
969
|
+
return A(A({}, o), Bt(u));
|
|
968
970
|
}, {}));
|
|
969
971
|
continue;
|
|
970
972
|
case "notation-simple":
|
|
@@ -1009,7 +1011,7 @@ function Ai(e) {
|
|
|
1009
1011
|
case "integer-width":
|
|
1010
1012
|
if (n.options.length > 1)
|
|
1011
1013
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1012
|
-
n.options[0].replace(
|
|
1014
|
+
n.options[0].replace(Ai, function(o, u, h, c, m, E) {
|
|
1013
1015
|
if (u)
|
|
1014
1016
|
t.minimumIntegerDigits = h.length;
|
|
1015
1017
|
else {
|
|
@@ -1022,28 +1024,28 @@ function Ai(e) {
|
|
|
1022
1024
|
});
|
|
1023
1025
|
continue;
|
|
1024
1026
|
}
|
|
1025
|
-
if (
|
|
1027
|
+
if (cr.test(n.stem)) {
|
|
1026
1028
|
t.minimumIntegerDigits = n.stem.length;
|
|
1027
1029
|
continue;
|
|
1028
1030
|
}
|
|
1029
|
-
if (
|
|
1031
|
+
if (Pt.test(n.stem)) {
|
|
1030
1032
|
if (n.options.length > 1)
|
|
1031
1033
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1032
|
-
n.stem.replace(
|
|
1034
|
+
n.stem.replace(Pt, function(o, u, h, c, m, E) {
|
|
1033
1035
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && E ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1034
1036
|
});
|
|
1035
1037
|
var s = n.options[0];
|
|
1036
|
-
s === "w" ? t =
|
|
1038
|
+
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), $t(s)));
|
|
1037
1039
|
continue;
|
|
1038
1040
|
}
|
|
1039
|
-
if (
|
|
1040
|
-
t =
|
|
1041
|
+
if (fr.test(n.stem)) {
|
|
1042
|
+
t = A(A({}, t), $t(n.stem));
|
|
1041
1043
|
continue;
|
|
1042
1044
|
}
|
|
1043
|
-
var l =
|
|
1044
|
-
l && (t =
|
|
1045
|
+
var l = dr(n.stem);
|
|
1046
|
+
l && (t = A(A({}, t), l));
|
|
1045
1047
|
var a = Pi(n.stem);
|
|
1046
|
-
a && (t =
|
|
1048
|
+
a && (t = A(A({}, t), a));
|
|
1047
1049
|
}
|
|
1048
1050
|
return t;
|
|
1049
1051
|
}
|
|
@@ -2462,13 +2464,13 @@ var Ue = {
|
|
|
2462
2464
|
"h"
|
|
2463
2465
|
]
|
|
2464
2466
|
};
|
|
2465
|
-
function
|
|
2467
|
+
function Bi(e, t) {
|
|
2466
2468
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2467
2469
|
var n = e.charAt(i);
|
|
2468
2470
|
if (n === "j") {
|
|
2469
2471
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2470
2472
|
s++, i++;
|
|
2471
|
-
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), o = "a", u =
|
|
2473
|
+
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), o = "a", u = Mi(t);
|
|
2472
2474
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2473
2475
|
r += o;
|
|
2474
2476
|
for (; l-- > 0; )
|
|
@@ -2478,7 +2480,7 @@ function $i(e, t) {
|
|
|
2478
2480
|
}
|
|
2479
2481
|
return r;
|
|
2480
2482
|
}
|
|
2481
|
-
function
|
|
2483
|
+
function Mi(e) {
|
|
2482
2484
|
var t = e.hourCycle;
|
|
2483
2485
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2484
2486
|
e.hourCycles && // @ts-ignore
|
|
@@ -2500,20 +2502,20 @@ function Bi(e) {
|
|
|
2500
2502
|
var n = Ue[i || ""] || Ue[r || ""] || Ue["".concat(r, "-001")] || Ue["001"];
|
|
2501
2503
|
return n[0];
|
|
2502
2504
|
}
|
|
2503
|
-
var rt,
|
|
2505
|
+
var rt, Ci = new RegExp("^".concat(hr.source, "*")), Di = new RegExp("".concat(hr.source, "*$"));
|
|
2504
2506
|
function O(e, t) {
|
|
2505
2507
|
return { start: e, end: t };
|
|
2506
2508
|
}
|
|
2507
|
-
var
|
|
2509
|
+
var Ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), Li = !!String.fromCodePoint, Ni = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, ki = !!String.prototype.trimStart, Ui = !!String.prototype.trimEnd, Fi = !!Number.isSafeInteger, Vi = Fi ? Number.isSafeInteger : function(e) {
|
|
2508
2510
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2509
2511
|
}, ht = !0;
|
|
2510
2512
|
try {
|
|
2511
|
-
var
|
|
2512
|
-
ht = ((rt =
|
|
2513
|
+
var Gi = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2514
|
+
ht = ((rt = Gi.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2513
2515
|
} catch {
|
|
2514
2516
|
ht = !1;
|
|
2515
2517
|
}
|
|
2516
|
-
var
|
|
2518
|
+
var Mt = Ii ? (
|
|
2517
2519
|
// Native
|
|
2518
2520
|
function(t, r, i) {
|
|
2519
2521
|
return t.startsWith(r, i);
|
|
@@ -2523,7 +2525,7 @@ var $t = Di ? (
|
|
|
2523
2525
|
function(t, r, i) {
|
|
2524
2526
|
return t.slice(i, i + r.length) === r;
|
|
2525
2527
|
}
|
|
2526
|
-
), ft =
|
|
2528
|
+
), ft = Li ? String.fromCodePoint : (
|
|
2527
2529
|
// IE11
|
|
2528
2530
|
function() {
|
|
2529
2531
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2535,9 +2537,9 @@ var $t = Di ? (
|
|
|
2535
2537
|
}
|
|
2536
2538
|
return i;
|
|
2537
2539
|
}
|
|
2538
|
-
),
|
|
2540
|
+
), Ct = (
|
|
2539
2541
|
// native
|
|
2540
|
-
|
|
2542
|
+
Ni ? Object.fromEntries : (
|
|
2541
2543
|
// Ponyfill
|
|
2542
2544
|
function(t) {
|
|
2543
2545
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2547,7 +2549,7 @@ var $t = Di ? (
|
|
|
2547
2549
|
return r;
|
|
2548
2550
|
}
|
|
2549
2551
|
)
|
|
2550
|
-
),
|
|
2552
|
+
), mr = Ri ? (
|
|
2551
2553
|
// Native
|
|
2552
2554
|
function(t, r) {
|
|
2553
2555
|
return t.codePointAt(r);
|
|
@@ -2561,7 +2563,7 @@ var $t = Di ? (
|
|
|
2561
2563
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2562
2564
|
}
|
|
2563
2565
|
}
|
|
2564
|
-
),
|
|
2566
|
+
), ji = ki ? (
|
|
2565
2567
|
// Native
|
|
2566
2568
|
function(t) {
|
|
2567
2569
|
return t.trimStart();
|
|
@@ -2569,9 +2571,9 @@ var $t = Di ? (
|
|
|
2569
2571
|
) : (
|
|
2570
2572
|
// Ponyfill
|
|
2571
2573
|
function(t) {
|
|
2572
|
-
return t.replace(
|
|
2574
|
+
return t.replace(Ci, "");
|
|
2573
2575
|
}
|
|
2574
|
-
),
|
|
2576
|
+
), zi = Ui ? (
|
|
2575
2577
|
// Native
|
|
2576
2578
|
function(t) {
|
|
2577
2579
|
return t.trimEnd();
|
|
@@ -2579,32 +2581,32 @@ var $t = Di ? (
|
|
|
2579
2581
|
) : (
|
|
2580
2582
|
// Ponyfill
|
|
2581
2583
|
function(t) {
|
|
2582
|
-
return t.replace(
|
|
2584
|
+
return t.replace(Di, "");
|
|
2583
2585
|
}
|
|
2584
2586
|
);
|
|
2585
|
-
function
|
|
2587
|
+
function pr(e, t) {
|
|
2586
2588
|
return new RegExp(e, t);
|
|
2587
2589
|
}
|
|
2588
2590
|
var ct;
|
|
2589
2591
|
if (ht) {
|
|
2590
|
-
var
|
|
2592
|
+
var Dt = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2591
2593
|
ct = function(t, r) {
|
|
2592
2594
|
var i;
|
|
2593
|
-
|
|
2594
|
-
var n =
|
|
2595
|
+
Dt.lastIndex = r;
|
|
2596
|
+
var n = Dt.exec(t);
|
|
2595
2597
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2596
2598
|
};
|
|
2597
2599
|
} else
|
|
2598
2600
|
ct = function(t, r) {
|
|
2599
2601
|
for (var i = []; ; ) {
|
|
2600
|
-
var n =
|
|
2601
|
-
if (n === void 0 ||
|
|
2602
|
+
var n = mr(t, r);
|
|
2603
|
+
if (n === void 0 || gr(n) || Yi(n))
|
|
2602
2604
|
break;
|
|
2603
2605
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2604
2606
|
}
|
|
2605
2607
|
return ft.apply(void 0, i);
|
|
2606
2608
|
};
|
|
2607
|
-
var
|
|
2609
|
+
var Xi = (
|
|
2608
2610
|
/** @class */
|
|
2609
2611
|
function() {
|
|
2610
2612
|
function e(t, r) {
|
|
@@ -2686,7 +2688,7 @@ var zi = (
|
|
|
2686
2688
|
return this.error(T.INVALID_TAG, O(i, this.clonePosition()));
|
|
2687
2689
|
}, e.prototype.parseTagName = function() {
|
|
2688
2690
|
var t = this.offset();
|
|
2689
|
-
for (this.bump(); !this.isEOF() &&
|
|
2691
|
+
for (this.bump(); !this.isEOF() && qi(this.char()); )
|
|
2690
2692
|
this.bump();
|
|
2691
2693
|
return this.message.slice(t, this.offset());
|
|
2692
2694
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2715,7 +2717,7 @@ var zi = (
|
|
|
2715
2717
|
};
|
|
2716
2718
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2717
2719
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2718
|
-
!
|
|
2720
|
+
!Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2719
2721
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2720
2722
|
if (this.isEOF() || this.char() !== 39)
|
|
2721
2723
|
return null;
|
|
@@ -2802,7 +2804,7 @@ var zi = (
|
|
|
2802
2804
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2803
2805
|
if (c.err)
|
|
2804
2806
|
return c;
|
|
2805
|
-
var m =
|
|
2807
|
+
var m = zi(c.val);
|
|
2806
2808
|
if (m.length === 0)
|
|
2807
2809
|
return this.error(T.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2808
2810
|
var E = O(h, this.clonePosition());
|
|
@@ -2812,8 +2814,8 @@ var zi = (
|
|
|
2812
2814
|
if (H.err)
|
|
2813
2815
|
return H;
|
|
2814
2816
|
var v = O(n, this.clonePosition());
|
|
2815
|
-
if (u &&
|
|
2816
|
-
var $ =
|
|
2817
|
+
if (u && Mt(u?.style, "::", 0)) {
|
|
2818
|
+
var $ = ji(u.style.slice(2));
|
|
2817
2819
|
if (a === "number") {
|
|
2818
2820
|
var c = this.parseNumberSkeletonFromString($, u.styleLocation);
|
|
2819
2821
|
return c.err ? c : {
|
|
@@ -2824,12 +2826,12 @@ var zi = (
|
|
|
2824
2826
|
if ($.length === 0)
|
|
2825
2827
|
return this.error(T.EXPECT_DATE_TIME_SKELETON, v);
|
|
2826
2828
|
var V = $;
|
|
2827
|
-
this.locale && (V =
|
|
2829
|
+
this.locale && (V = Bi($, this.locale));
|
|
2828
2830
|
var m = {
|
|
2829
2831
|
type: Se.dateTime,
|
|
2830
2832
|
pattern: V,
|
|
2831
2833
|
location: u.styleLocation,
|
|
2832
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2834
|
+
parsedOptions: this.shouldParseSkeletons ? Si(V) : {}
|
|
2833
2835
|
}, U = a === "date" ? C.date : C.time;
|
|
2834
2836
|
return {
|
|
2835
2837
|
val: { type: U, value: i, location: v, style: m },
|
|
@@ -2852,7 +2854,7 @@ var zi = (
|
|
|
2852
2854
|
case "select": {
|
|
2853
2855
|
var B = this.clonePosition();
|
|
2854
2856
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2855
|
-
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(B,
|
|
2857
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(B, A({}, B)));
|
|
2856
2858
|
this.bumpSpace();
|
|
2857
2859
|
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
2858
2860
|
if (a !== "select" && z.value === "offset") {
|
|
@@ -2875,7 +2877,7 @@ var zi = (
|
|
|
2875
2877
|
val: {
|
|
2876
2878
|
type: C.select,
|
|
2877
2879
|
value: i,
|
|
2878
|
-
options:
|
|
2880
|
+
options: Ct(L.val),
|
|
2879
2881
|
location: q
|
|
2880
2882
|
},
|
|
2881
2883
|
err: null
|
|
@@ -2883,7 +2885,7 @@ var zi = (
|
|
|
2883
2885
|
val: {
|
|
2884
2886
|
type: C.plural,
|
|
2885
2887
|
value: i,
|
|
2886
|
-
options:
|
|
2888
|
+
options: Ct(L.val),
|
|
2887
2889
|
offset: I,
|
|
2888
2890
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2889
2891
|
location: q
|
|
@@ -2934,7 +2936,7 @@ var zi = (
|
|
|
2934
2936
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2935
2937
|
var i = [];
|
|
2936
2938
|
try {
|
|
2937
|
-
i =
|
|
2939
|
+
i = Hi(t);
|
|
2938
2940
|
} catch {
|
|
2939
2941
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2940
2942
|
}
|
|
@@ -2943,7 +2945,7 @@ var zi = (
|
|
|
2943
2945
|
type: Se.number,
|
|
2944
2946
|
tokens: i,
|
|
2945
2947
|
location: r,
|
|
2946
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2948
|
+
parsedOptions: this.shouldParseSkeletons ? $i(i) : {}
|
|
2947
2949
|
},
|
|
2948
2950
|
err: null
|
|
2949
2951
|
};
|
|
@@ -2991,7 +2993,7 @@ var zi = (
|
|
|
2991
2993
|
break;
|
|
2992
2994
|
}
|
|
2993
2995
|
var o = O(n, this.clonePosition());
|
|
2994
|
-
return s ? (l *= i,
|
|
2996
|
+
return s ? (l *= i, Vi(l) ? { val: l, err: null } : this.error(r, o)) : this.error(t, o);
|
|
2995
2997
|
}, e.prototype.offset = function() {
|
|
2996
2998
|
return this.position.offset;
|
|
2997
2999
|
}, e.prototype.isEOF = function() {
|
|
@@ -3006,7 +3008,7 @@ var zi = (
|
|
|
3006
3008
|
var t = this.position.offset;
|
|
3007
3009
|
if (t >= this.message.length)
|
|
3008
3010
|
throw Error("out of bound");
|
|
3009
|
-
var r =
|
|
3011
|
+
var r = mr(this.message, t);
|
|
3010
3012
|
if (r === void 0)
|
|
3011
3013
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3012
3014
|
return r;
|
|
@@ -3025,7 +3027,7 @@ var zi = (
|
|
|
3025
3027
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3026
3028
|
}
|
|
3027
3029
|
}, e.prototype.bumpIf = function(t) {
|
|
3028
|
-
if (
|
|
3030
|
+
if (Mt(this.message, t, this.offset())) {
|
|
3029
3031
|
for (var r = 0; r < t.length; r++)
|
|
3030
3032
|
this.bump();
|
|
3031
3033
|
return !0;
|
|
@@ -3047,7 +3049,7 @@ var zi = (
|
|
|
3047
3049
|
break;
|
|
3048
3050
|
}
|
|
3049
3051
|
}, e.prototype.bumpSpace = function() {
|
|
3050
|
-
for (; !this.isEOF() &&
|
|
3052
|
+
for (; !this.isEOF() && gr(this.char()); )
|
|
3051
3053
|
this.bump();
|
|
3052
3054
|
}, e.prototype.peek = function() {
|
|
3053
3055
|
if (this.isEOF())
|
|
@@ -3060,30 +3062,30 @@ var zi = (
|
|
|
3060
3062
|
function dt(e) {
|
|
3061
3063
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3062
3064
|
}
|
|
3063
|
-
function
|
|
3065
|
+
function Wi(e) {
|
|
3064
3066
|
return dt(e) || e === 47;
|
|
3065
3067
|
}
|
|
3066
|
-
function
|
|
3068
|
+
function qi(e) {
|
|
3067
3069
|
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;
|
|
3068
3070
|
}
|
|
3069
|
-
function
|
|
3071
|
+
function gr(e) {
|
|
3070
3072
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3071
3073
|
}
|
|
3072
|
-
function
|
|
3074
|
+
function Yi(e) {
|
|
3073
3075
|
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;
|
|
3074
3076
|
}
|
|
3075
3077
|
function mt(e) {
|
|
3076
3078
|
e.forEach(function(t) {
|
|
3077
|
-
if (delete t.location,
|
|
3079
|
+
if (delete t.location, or(t) || ar(t))
|
|
3078
3080
|
for (var r in t.options)
|
|
3079
3081
|
delete t.options[r].location, mt(t.options[r].value);
|
|
3080
3082
|
else
|
|
3081
|
-
|
|
3083
|
+
ir(t) && lr(t.style) || (nr(t) || sr(t)) && lt(t.style) ? delete t.style.location : ur(t) && mt(t.children);
|
|
3082
3084
|
});
|
|
3083
3085
|
}
|
|
3084
|
-
function
|
|
3085
|
-
t === void 0 && (t = {}), t =
|
|
3086
|
-
var r = new
|
|
3086
|
+
function Zi(e, t) {
|
|
3087
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3088
|
+
var r = new Xi(e, t).parse();
|
|
3087
3089
|
if (r.err) {
|
|
3088
3090
|
var i = SyntaxError(T[r.err.kind]);
|
|
3089
3091
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
@@ -3106,7 +3108,7 @@ var Ye = (
|
|
|
3106
3108
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3107
3109
|
}, t;
|
|
3108
3110
|
}(Error)
|
|
3109
|
-
),
|
|
3111
|
+
), It = (
|
|
3110
3112
|
/** @class */
|
|
3111
3113
|
function(e) {
|
|
3112
3114
|
qe(t, e);
|
|
@@ -3115,7 +3117,7 @@ var Ye = (
|
|
|
3115
3117
|
}
|
|
3116
3118
|
return t;
|
|
3117
3119
|
}(Ye)
|
|
3118
|
-
),
|
|
3120
|
+
), Ji = (
|
|
3119
3121
|
/** @class */
|
|
3120
3122
|
function(e) {
|
|
3121
3123
|
qe(t, e);
|
|
@@ -3124,7 +3126,7 @@ var Ye = (
|
|
|
3124
3126
|
}
|
|
3125
3127
|
return t;
|
|
3126
3128
|
}(Ye)
|
|
3127
|
-
),
|
|
3129
|
+
), Qi = (
|
|
3128
3130
|
/** @class */
|
|
3129
3131
|
function(e) {
|
|
3130
3132
|
qe(t, e);
|
|
@@ -3137,17 +3139,17 @@ var Ye = (
|
|
|
3137
3139
|
(function(e) {
|
|
3138
3140
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3139
3141
|
})(j || (j = {}));
|
|
3140
|
-
function
|
|
3142
|
+
function Ki(e) {
|
|
3141
3143
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3142
3144
|
var i = t[t.length - 1];
|
|
3143
3145
|
return !i || i.type !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3144
3146
|
}, []);
|
|
3145
3147
|
}
|
|
3146
|
-
function
|
|
3148
|
+
function en(e) {
|
|
3147
3149
|
return typeof e == "function";
|
|
3148
3150
|
}
|
|
3149
3151
|
function Ve(e, t, r, i, n, s, l) {
|
|
3150
|
-
if (e.length === 1 &&
|
|
3152
|
+
if (e.length === 1 && At(e[0]))
|
|
3151
3153
|
return [
|
|
3152
3154
|
{
|
|
3153
3155
|
type: j.literal,
|
|
@@ -3156,14 +3158,14 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3156
3158
|
];
|
|
3157
3159
|
for (var a = [], o = 0, u = e; o < u.length; o++) {
|
|
3158
3160
|
var h = u[o];
|
|
3159
|
-
if (
|
|
3161
|
+
if (At(h)) {
|
|
3160
3162
|
a.push({
|
|
3161
3163
|
type: j.literal,
|
|
3162
3164
|
value: h.value
|
|
3163
3165
|
});
|
|
3164
3166
|
continue;
|
|
3165
3167
|
}
|
|
3166
|
-
if (
|
|
3168
|
+
if (Ei(h)) {
|
|
3167
3169
|
typeof s == "number" && a.push({
|
|
3168
3170
|
type: j.literal,
|
|
3169
3171
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3172,16 +3174,16 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3172
3174
|
}
|
|
3173
3175
|
var c = h.value;
|
|
3174
3176
|
if (!(n && c in n))
|
|
3175
|
-
throw new
|
|
3177
|
+
throw new Qi(c, l);
|
|
3176
3178
|
var m = n[c];
|
|
3177
|
-
if (
|
|
3179
|
+
if (_i(h)) {
|
|
3178
3180
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3179
3181
|
type: typeof m == "string" ? j.literal : j.object,
|
|
3180
3182
|
value: m
|
|
3181
3183
|
});
|
|
3182
3184
|
continue;
|
|
3183
3185
|
}
|
|
3184
|
-
if (
|
|
3186
|
+
if (nr(h)) {
|
|
3185
3187
|
var E = typeof h.style == "string" ? i.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3186
3188
|
a.push({
|
|
3187
3189
|
type: j.literal,
|
|
@@ -3189,7 +3191,7 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3189
3191
|
});
|
|
3190
3192
|
continue;
|
|
3191
3193
|
}
|
|
3192
|
-
if (
|
|
3194
|
+
if (sr(h)) {
|
|
3193
3195
|
var E = typeof h.style == "string" ? i.time[h.style] : lt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3194
3196
|
a.push({
|
|
3195
3197
|
type: j.literal,
|
|
@@ -3197,18 +3199,18 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3197
3199
|
});
|
|
3198
3200
|
continue;
|
|
3199
3201
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var E = typeof h.style == "string" ? i.number[h.style] :
|
|
3202
|
+
if (ir(h)) {
|
|
3203
|
+
var E = typeof h.style == "string" ? i.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3202
3204
|
E && E.scale && (m = m * (E.scale || 1)), a.push({
|
|
3203
3205
|
type: j.literal,
|
|
3204
3206
|
value: r.getNumberFormat(t, E).format(m)
|
|
3205
3207
|
});
|
|
3206
3208
|
continue;
|
|
3207
3209
|
}
|
|
3208
|
-
if (
|
|
3210
|
+
if (ur(h)) {
|
|
3209
3211
|
var H = h.children, v = h.value, $ = n[v];
|
|
3210
|
-
if (!
|
|
3211
|
-
throw new
|
|
3212
|
+
if (!en($))
|
|
3213
|
+
throw new Ji(v, "function", l);
|
|
3212
3214
|
var V = Ve(H, t, r, i, n, s), U = $(V.map(function(I) {
|
|
3213
3215
|
return I.value;
|
|
3214
3216
|
}));
|
|
@@ -3219,14 +3221,14 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3219
3221
|
};
|
|
3220
3222
|
}));
|
|
3221
3223
|
}
|
|
3222
|
-
if (
|
|
3224
|
+
if (or(h)) {
|
|
3223
3225
|
var B = h.options[m] || h.options.other;
|
|
3224
3226
|
if (!B)
|
|
3225
|
-
throw new
|
|
3227
|
+
throw new It(h.value, m, Object.keys(h.options), l);
|
|
3226
3228
|
a.push.apply(a, Ve(B.value, t, r, i, n));
|
|
3227
3229
|
continue;
|
|
3228
3230
|
}
|
|
3229
|
-
if (
|
|
3231
|
+
if (ar(h)) {
|
|
3230
3232
|
var B = h.options["=".concat(m)];
|
|
3231
3233
|
if (!B) {
|
|
3232
3234
|
if (!Intl.PluralRules)
|
|
@@ -3237,22 +3239,22 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3237
3239
|
B = h.options[z] || h.options.other;
|
|
3238
3240
|
}
|
|
3239
3241
|
if (!B)
|
|
3240
|
-
throw new
|
|
3242
|
+
throw new It(h.value, m, Object.keys(h.options), l);
|
|
3241
3243
|
a.push.apply(a, Ve(B.value, t, r, i, n, m - (h.offset || 0)));
|
|
3242
3244
|
continue;
|
|
3243
3245
|
}
|
|
3244
3246
|
}
|
|
3245
|
-
return
|
|
3247
|
+
return Ki(a);
|
|
3246
3248
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return t ?
|
|
3249
|
-
return r[i] =
|
|
3249
|
+
function tn(e, t) {
|
|
3250
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3251
|
+
return r[i] = A(A({}, e[i]), t[i] || {}), r;
|
|
3250
3252
|
}, {})) : e;
|
|
3251
3253
|
}
|
|
3252
|
-
function
|
|
3254
|
+
function rn(e, t) {
|
|
3253
3255
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3254
|
-
return r[i] =
|
|
3255
|
-
},
|
|
3256
|
+
return r[i] = tn(e[i], t[i]), r;
|
|
3257
|
+
}, A({}, e)) : e;
|
|
3256
3258
|
}
|
|
3257
3259
|
function it(e) {
|
|
3258
3260
|
return {
|
|
@@ -3268,7 +3270,7 @@ function it(e) {
|
|
|
3268
3270
|
}
|
|
3269
3271
|
};
|
|
3270
3272
|
}
|
|
3271
|
-
function
|
|
3273
|
+
function nn(e) {
|
|
3272
3274
|
return e === void 0 && (e = {
|
|
3273
3275
|
number: {},
|
|
3274
3276
|
dateTime: {},
|
|
@@ -3300,7 +3302,7 @@ function rn(e) {
|
|
|
3300
3302
|
})
|
|
3301
3303
|
};
|
|
3302
3304
|
}
|
|
3303
|
-
var
|
|
3305
|
+
var vr = (
|
|
3304
3306
|
/** @class */
|
|
3305
3307
|
function() {
|
|
3306
3308
|
function e(t, r, i, n) {
|
|
@@ -3332,13 +3334,13 @@ var pr = (
|
|
|
3332
3334
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3333
3335
|
var l = n || {};
|
|
3334
3336
|
l.formatters;
|
|
3335
|
-
var a =
|
|
3336
|
-
this.ast = e.__parse(t,
|
|
3337
|
+
var a = mi(l, ["formatters"]);
|
|
3338
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3337
3339
|
} else
|
|
3338
3340
|
this.ast = t;
|
|
3339
3341
|
if (!Array.isArray(this.ast))
|
|
3340
3342
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3341
|
-
this.formats =
|
|
3343
|
+
this.formats = rn(e.formats, i), this.formatters = n && n.formatters || nn(this.formatterCache);
|
|
3342
3344
|
}
|
|
3343
3345
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3344
3346
|
get: function() {
|
|
@@ -3351,7 +3353,7 @@ var pr = (
|
|
|
3351
3353
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3352
3354
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3353
3355
|
}
|
|
3354
|
-
}, e.__parse =
|
|
3356
|
+
}, e.__parse = Zi, e.formats = {
|
|
3355
3357
|
number: {
|
|
3356
3358
|
integer: {
|
|
3357
3359
|
maximumFractionDigits: 0
|
|
@@ -3412,7 +3414,7 @@ var pr = (
|
|
|
3412
3414
|
}, e;
|
|
3413
3415
|
}()
|
|
3414
3416
|
);
|
|
3415
|
-
function
|
|
3417
|
+
function sn(e, t) {
|
|
3416
3418
|
if (t == null)
|
|
3417
3419
|
return;
|
|
3418
3420
|
if (t in e)
|
|
@@ -3433,60 +3435,60 @@ function nn(e, t) {
|
|
|
3433
3435
|
i = void 0;
|
|
3434
3436
|
return i;
|
|
3435
3437
|
}
|
|
3436
|
-
const he = {},
|
|
3438
|
+
const he = {}, on = (e, t, r) => r && (t in he || (he[t] = {}), e in he[t] || (he[t][e] = r), r), br = (e, t) => {
|
|
3437
3439
|
if (t == null)
|
|
3438
3440
|
return;
|
|
3439
3441
|
if (t in he && e in he[t])
|
|
3440
3442
|
return he[t][e];
|
|
3441
3443
|
const r = Ne(t);
|
|
3442
3444
|
for (let i = 0; i < r.length; i++) {
|
|
3443
|
-
const n = r[i], s =
|
|
3445
|
+
const n = r[i], s = un(n, e);
|
|
3444
3446
|
if (s)
|
|
3445
|
-
return
|
|
3447
|
+
return on(e, t, s);
|
|
3446
3448
|
}
|
|
3447
3449
|
};
|
|
3448
|
-
let
|
|
3450
|
+
let Et;
|
|
3449
3451
|
const Le = We({});
|
|
3450
|
-
function
|
|
3451
|
-
return
|
|
3452
|
+
function an(e) {
|
|
3453
|
+
return Et[e] || null;
|
|
3452
3454
|
}
|
|
3453
|
-
function
|
|
3454
|
-
return e in
|
|
3455
|
+
function yr(e) {
|
|
3456
|
+
return e in Et;
|
|
3455
3457
|
}
|
|
3456
|
-
function
|
|
3457
|
-
if (!
|
|
3458
|
+
function un(e, t) {
|
|
3459
|
+
if (!yr(e))
|
|
3458
3460
|
return null;
|
|
3459
|
-
const r =
|
|
3460
|
-
return
|
|
3461
|
+
const r = an(e);
|
|
3462
|
+
return sn(r, t);
|
|
3461
3463
|
}
|
|
3462
|
-
function
|
|
3464
|
+
function ln(e) {
|
|
3463
3465
|
if (e == null)
|
|
3464
3466
|
return;
|
|
3465
3467
|
const t = Ne(e);
|
|
3466
3468
|
for (let r = 0; r < t.length; r++) {
|
|
3467
3469
|
const i = t[r];
|
|
3468
|
-
if (
|
|
3470
|
+
if (yr(i))
|
|
3469
3471
|
return i;
|
|
3470
3472
|
}
|
|
3471
3473
|
}
|
|
3472
|
-
function
|
|
3473
|
-
delete he[e], Le.update((r) => (r[e] =
|
|
3474
|
+
function xr(e, ...t) {
|
|
3475
|
+
delete he[e], Le.update((r) => (r[e] = di.all([r[e] || {}, ...t]), r));
|
|
3474
3476
|
}
|
|
3475
3477
|
Oe(
|
|
3476
3478
|
[Le],
|
|
3477
3479
|
([e]) => Object.keys(e)
|
|
3478
3480
|
);
|
|
3479
|
-
Le.subscribe((e) =>
|
|
3481
|
+
Le.subscribe((e) => Et = e);
|
|
3480
3482
|
const Ge = {};
|
|
3481
|
-
function
|
|
3483
|
+
function hn(e, t) {
|
|
3482
3484
|
Ge[e].delete(t), Ge[e].size === 0 && delete Ge[e];
|
|
3483
3485
|
}
|
|
3484
|
-
function
|
|
3486
|
+
function _r(e) {
|
|
3485
3487
|
return Ge[e];
|
|
3486
3488
|
}
|
|
3487
|
-
function
|
|
3489
|
+
function fn(e) {
|
|
3488
3490
|
return Ne(e).map((t) => {
|
|
3489
|
-
const r =
|
|
3491
|
+
const r = _r(t);
|
|
3490
3492
|
return [t, r ? [...r] : []];
|
|
3491
3493
|
}).filter(([, t]) => t.length > 0);
|
|
3492
3494
|
}
|
|
@@ -3494,40 +3496,40 @@ function je(e) {
|
|
|
3494
3496
|
return e == null ? !1 : Ne(e).some(
|
|
3495
3497
|
(t) => {
|
|
3496
3498
|
var r;
|
|
3497
|
-
return (r =
|
|
3499
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
3498
3500
|
}
|
|
3499
3501
|
);
|
|
3500
3502
|
}
|
|
3501
|
-
function
|
|
3503
|
+
function cn(e, t) {
|
|
3502
3504
|
return Promise.all(
|
|
3503
|
-
t.map((i) => (
|
|
3504
|
-
).then((i) =>
|
|
3505
|
+
t.map((i) => (hn(e, i), i().then((n) => n.default || n)))
|
|
3506
|
+
).then((i) => xr(e, ...i));
|
|
3505
3507
|
}
|
|
3506
|
-
const
|
|
3507
|
-
function
|
|
3508
|
+
const Pe = {};
|
|
3509
|
+
function Er(e) {
|
|
3508
3510
|
if (!je(e))
|
|
3509
|
-
return e in
|
|
3510
|
-
const t =
|
|
3511
|
-
return
|
|
3511
|
+
return e in Pe ? Pe[e] : Promise.resolve();
|
|
3512
|
+
const t = fn(e);
|
|
3513
|
+
return Pe[e] = Promise.all(
|
|
3512
3514
|
t.map(
|
|
3513
|
-
([r, i]) =>
|
|
3515
|
+
([r, i]) => cn(r, i)
|
|
3514
3516
|
)
|
|
3515
3517
|
).then(() => {
|
|
3516
3518
|
if (je(e))
|
|
3517
|
-
return
|
|
3518
|
-
delete
|
|
3519
|
-
}),
|
|
3519
|
+
return Er(e);
|
|
3520
|
+
delete Pe[e];
|
|
3521
|
+
}), Pe[e];
|
|
3520
3522
|
}
|
|
3521
|
-
var
|
|
3523
|
+
var Lt = Object.getOwnPropertySymbols, dn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable, pn = (e, t) => {
|
|
3522
3524
|
var r = {};
|
|
3523
3525
|
for (var i in e)
|
|
3524
|
-
|
|
3525
|
-
if (e != null &&
|
|
3526
|
-
for (var i of
|
|
3527
|
-
t.indexOf(i) < 0 &&
|
|
3526
|
+
dn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3527
|
+
if (e != null && Lt)
|
|
3528
|
+
for (var i of Lt(e))
|
|
3529
|
+
t.indexOf(i) < 0 && mn.call(e, i) && (r[i] = e[i]);
|
|
3528
3530
|
return r;
|
|
3529
3531
|
};
|
|
3530
|
-
const
|
|
3532
|
+
const gn = {
|
|
3531
3533
|
number: {
|
|
3532
3534
|
scientific: { notation: "scientific" },
|
|
3533
3535
|
engineering: { notation: "engineering" },
|
|
@@ -3557,7 +3559,7 @@ const pn = {
|
|
|
3557
3559
|
}
|
|
3558
3560
|
}
|
|
3559
3561
|
};
|
|
3560
|
-
function
|
|
3562
|
+
function vn({ locale: e, id: t }) {
|
|
3561
3563
|
console.warn(
|
|
3562
3564
|
`[svelte-i18n] The message "${t}" was not found in "${Ne(
|
|
3563
3565
|
e
|
|
@@ -3566,49 +3568,49 @@ function gn({ locale: e, id: t }) {
|
|
|
3566
3568
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3567
3569
|
);
|
|
3568
3570
|
}
|
|
3569
|
-
const
|
|
3571
|
+
const bn = {
|
|
3570
3572
|
fallbackLocale: null,
|
|
3571
3573
|
loadingDelay: 200,
|
|
3572
|
-
formats:
|
|
3574
|
+
formats: gn,
|
|
3573
3575
|
warnOnMissingMessages: !0,
|
|
3574
3576
|
handleMissingMessage: void 0,
|
|
3575
3577
|
ignoreTag: !0
|
|
3576
|
-
}, $e =
|
|
3578
|
+
}, $e = bn;
|
|
3577
3579
|
function He() {
|
|
3578
3580
|
return $e;
|
|
3579
3581
|
}
|
|
3580
|
-
function
|
|
3581
|
-
const t = e, { formats: r } = t, i =
|
|
3582
|
+
function yn(e) {
|
|
3583
|
+
const t = e, { formats: r } = t, i = pn(t, ["formats"]);
|
|
3582
3584
|
let n = e.fallbackLocale;
|
|
3583
3585
|
if (e.initialLocale)
|
|
3584
3586
|
try {
|
|
3585
|
-
|
|
3587
|
+
vr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3586
3588
|
} catch {
|
|
3587
3589
|
console.warn(
|
|
3588
3590
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3589
3591
|
);
|
|
3590
3592
|
}
|
|
3591
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3593
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = vn : console.warn(
|
|
3592
3594
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3593
3595
|
)), Object.assign($e, i, { initialLocale: n }), r && ("number" in r && Object.assign($e.formats.number, r.number), "date" in r && Object.assign($e.formats.date, r.date), "time" in r && Object.assign($e.formats.time, r.time)), de.set(n);
|
|
3594
3596
|
}
|
|
3595
3597
|
const nt = We(!1);
|
|
3596
|
-
var
|
|
3598
|
+
var xn = Object.defineProperty, _n = Object.defineProperties, En = Object.getOwnPropertyDescriptors, Nt = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tn = (e, t) => {
|
|
3597
3599
|
for (var r in t || (t = {}))
|
|
3598
|
-
|
|
3599
|
-
if (
|
|
3600
|
-
for (var r of
|
|
3601
|
-
|
|
3600
|
+
wn.call(t, r) && Rt(e, r, t[r]);
|
|
3601
|
+
if (Nt)
|
|
3602
|
+
for (var r of Nt(t))
|
|
3603
|
+
Sn.call(t, r) && Rt(e, r, t[r]);
|
|
3602
3604
|
return e;
|
|
3603
|
-
},
|
|
3605
|
+
}, Hn = (e, t) => _n(e, En(t));
|
|
3604
3606
|
let pt;
|
|
3605
3607
|
const ze = We(null);
|
|
3606
|
-
function
|
|
3608
|
+
function kt(e) {
|
|
3607
3609
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3608
3610
|
}
|
|
3609
3611
|
function Ne(e, t = He().fallbackLocale) {
|
|
3610
|
-
const r =
|
|
3611
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3612
|
+
const r = kt(e);
|
|
3613
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
|
|
3612
3614
|
}
|
|
3613
3615
|
function fe() {
|
|
3614
3616
|
return pt ?? void 0;
|
|
@@ -3616,22 +3618,22 @@ function fe() {
|
|
|
3616
3618
|
ze.subscribe((e) => {
|
|
3617
3619
|
pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3618
3620
|
});
|
|
3619
|
-
const
|
|
3620
|
-
if (e &&
|
|
3621
|
+
const On = (e) => {
|
|
3622
|
+
if (e && ln(e) && je(e)) {
|
|
3621
3623
|
const { loadingDelay: t } = He();
|
|
3622
3624
|
let r;
|
|
3623
3625
|
return typeof window < "u" && fe() != null && t ? r = window.setTimeout(
|
|
3624
3626
|
() => nt.set(!0),
|
|
3625
3627
|
t
|
|
3626
|
-
) : nt.set(!0),
|
|
3628
|
+
) : nt.set(!0), Er(e).then(() => {
|
|
3627
3629
|
ze.set(e);
|
|
3628
3630
|
}).finally(() => {
|
|
3629
3631
|
clearTimeout(r), nt.set(!1);
|
|
3630
3632
|
});
|
|
3631
3633
|
}
|
|
3632
3634
|
return ze.set(e);
|
|
3633
|
-
}, de = Tn(
|
|
3634
|
-
set:
|
|
3635
|
+
}, de = Hn(Tn({}, ze), {
|
|
3636
|
+
set: On
|
|
3635
3637
|
}), Ze = (e) => {
|
|
3636
3638
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3637
3639
|
return (i) => {
|
|
@@ -3639,20 +3641,20 @@ const Hn = (e) => {
|
|
|
3639
3641
|
return n in t ? t[n] : t[n] = e(i);
|
|
3640
3642
|
};
|
|
3641
3643
|
};
|
|
3642
|
-
var
|
|
3644
|
+
var An = Object.defineProperty, Xe = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
|
3643
3645
|
for (var r in t || (t = {}))
|
|
3644
|
-
|
|
3646
|
+
wr.call(t, r) && Ut(e, r, t[r]);
|
|
3645
3647
|
if (Xe)
|
|
3646
3648
|
for (var r of Xe(t))
|
|
3647
|
-
|
|
3649
|
+
Sr.call(t, r) && Ut(e, r, t[r]);
|
|
3648
3650
|
return e;
|
|
3649
|
-
},
|
|
3651
|
+
}, Ae = (e, t) => {
|
|
3650
3652
|
var r = {};
|
|
3651
3653
|
for (var i in e)
|
|
3652
|
-
|
|
3654
|
+
wr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3653
3655
|
if (e != null && Xe)
|
|
3654
3656
|
for (var i of Xe(e))
|
|
3655
|
-
t.indexOf(i) < 0 &&
|
|
3657
|
+
t.indexOf(i) < 0 && Sr.call(e, i) && (r[i] = e[i]);
|
|
3656
3658
|
return r;
|
|
3657
3659
|
};
|
|
3658
3660
|
const De = (e, t) => {
|
|
@@ -3662,54 +3664,54 @@ const De = (e, t) => {
|
|
|
3662
3664
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3663
3665
|
}, Pn = Ze(
|
|
3664
3666
|
(e) => {
|
|
3665
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3667
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3666
3668
|
if (r == null)
|
|
3667
3669
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3668
3670
|
return i && (n = De("number", i)), new Intl.NumberFormat(r, n);
|
|
3669
3671
|
}
|
|
3670
|
-
),
|
|
3672
|
+
), $n = Ze(
|
|
3671
3673
|
(e) => {
|
|
3672
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3674
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3673
3675
|
if (r == null)
|
|
3674
3676
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3675
3677
|
return i ? n = De("date", i) : Object.keys(n).length === 0 && (n = De("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3676
3678
|
}
|
|
3677
|
-
),
|
|
3679
|
+
), Bn = Ze(
|
|
3678
3680
|
(e) => {
|
|
3679
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3681
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3680
3682
|
if (r == null)
|
|
3681
3683
|
throw new Error(
|
|
3682
3684
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3683
3685
|
);
|
|
3684
3686
|
return i ? n = De("time", i) : Object.keys(n).length === 0 && (n = De("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3685
3687
|
}
|
|
3686
|
-
),
|
|
3688
|
+
), Mn = (e = {}) => {
|
|
3687
3689
|
var t = e, {
|
|
3688
3690
|
locale: r = fe()
|
|
3689
|
-
} = t, i =
|
|
3691
|
+
} = t, i = Ae(t, [
|
|
3690
3692
|
"locale"
|
|
3691
3693
|
]);
|
|
3692
|
-
return Pn(
|
|
3693
|
-
},
|
|
3694
|
+
return Pn(wt({ locale: r }, i));
|
|
3695
|
+
}, Cn = (e = {}) => {
|
|
3694
3696
|
var t = e, {
|
|
3695
3697
|
locale: r = fe()
|
|
3696
|
-
} = t, i =
|
|
3698
|
+
} = t, i = Ae(t, [
|
|
3697
3699
|
"locale"
|
|
3698
3700
|
]);
|
|
3699
|
-
return
|
|
3700
|
-
},
|
|
3701
|
+
return $n(wt({ locale: r }, i));
|
|
3702
|
+
}, Dn = (e = {}) => {
|
|
3701
3703
|
var t = e, {
|
|
3702
3704
|
locale: r = fe()
|
|
3703
|
-
} = t, i =
|
|
3705
|
+
} = t, i = Ae(t, [
|
|
3704
3706
|
"locale"
|
|
3705
3707
|
]);
|
|
3706
|
-
return
|
|
3707
|
-
},
|
|
3708
|
+
return Bn(wt({ locale: r }, i));
|
|
3709
|
+
}, In = Ze(
|
|
3708
3710
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3709
|
-
(e, t = fe()) => new
|
|
3711
|
+
(e, t = fe()) => new vr(e, t, He().formats, {
|
|
3710
3712
|
ignoreTag: He().ignoreTag
|
|
3711
3713
|
})
|
|
3712
|
-
),
|
|
3714
|
+
), Ln = (e, t = {}) => {
|
|
3713
3715
|
var r, i, n, s;
|
|
3714
3716
|
let l = t;
|
|
3715
3717
|
typeof e == "object" && (l = e, e = l.id);
|
|
@@ -3722,7 +3724,7 @@ const De = (e, t) => {
|
|
|
3722
3724
|
throw new Error(
|
|
3723
3725
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3724
3726
|
);
|
|
3725
|
-
let h =
|
|
3727
|
+
let h = br(e, o);
|
|
3726
3728
|
if (!h)
|
|
3727
3729
|
h = (s = (n = (i = (r = He()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3728
3730
|
else if (typeof h != "string")
|
|
@@ -3733,7 +3735,7 @@ const De = (e, t) => {
|
|
|
3733
3735
|
return h;
|
|
3734
3736
|
let c = h;
|
|
3735
3737
|
try {
|
|
3736
|
-
c =
|
|
3738
|
+
c = In(h, o).format(a);
|
|
3737
3739
|
} catch (m) {
|
|
3738
3740
|
m instanceof Error && console.warn(
|
|
3739
3741
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3741,20 +3743,20 @@ const De = (e, t) => {
|
|
|
3741
3743
|
);
|
|
3742
3744
|
}
|
|
3743
3745
|
return c;
|
|
3744
|
-
},
|
|
3745
|
-
Oe([de], () => Ln);
|
|
3746
|
+
}, Nn = (e, t) => Dn(t).format(e), Rn = (e, t) => Cn(t).format(e), kn = (e, t) => Mn(t).format(e), Un = (e, t = fe()) => br(e, t), Fn = Oe([de, Le], () => Ln);
|
|
3746
3747
|
Oe([de], () => Nn);
|
|
3747
3748
|
Oe([de], () => Rn);
|
|
3748
|
-
Oe([de
|
|
3749
|
-
|
|
3750
|
-
|
|
3749
|
+
Oe([de], () => kn);
|
|
3750
|
+
Oe([de, Le], () => Un);
|
|
3751
|
+
function Ft(e, t) {
|
|
3752
|
+
xr(e, t);
|
|
3751
3753
|
}
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3754
|
+
function Vn(e) {
|
|
3755
|
+
yn({
|
|
3754
3756
|
fallbackLocale: "en"
|
|
3755
3757
|
}), de.set(e);
|
|
3756
3758
|
}
|
|
3757
|
-
const
|
|
3759
|
+
const Vt = {
|
|
3758
3760
|
en: {
|
|
3759
3761
|
"verification.video.how-to": "How to verify yourself",
|
|
3760
3762
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -3822,15 +3824,15 @@ if (typeof window < "u") {
|
|
|
3822
3824
|
}
|
|
3823
3825
|
};
|
|
3824
3826
|
};
|
|
3825
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3827
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-ijUUQb6t.js").then(({ default: t }) => {
|
|
3826
3828
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3827
3829
|
});
|
|
3828
3830
|
}
|
|
3829
|
-
var
|
|
3831
|
+
var Tr = { exports: {} };
|
|
3830
3832
|
(function(e, t) {
|
|
3831
3833
|
(function(r, i) {
|
|
3832
3834
|
e.exports = i();
|
|
3833
|
-
})(
|
|
3835
|
+
})(Kt, function() {
|
|
3834
3836
|
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", l = "second", a = "minute", o = "hour", u = "day", h = "week", c = "month", m = "quarter", E = "year", H = "date", v = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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, U = { 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) {
|
|
3835
3837
|
var g = ["th", "st", "nd", "rd"], d = x % 100;
|
|
3836
3838
|
return "[" + x + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
@@ -3875,8 +3877,8 @@ var wr = { exports: {} };
|
|
|
3875
3877
|
return x.clone();
|
|
3876
3878
|
var d = typeof g == "object" ? g : {};
|
|
3877
3879
|
return d.date = x, d.args = arguments, new me(d);
|
|
3878
|
-
},
|
|
3879
|
-
|
|
3880
|
+
}, P = z;
|
|
3881
|
+
P.l = X, P.i = R, P.w = function(x, g) {
|
|
3880
3882
|
return k(x, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3881
3883
|
};
|
|
3882
3884
|
var me = function() {
|
|
@@ -3889,7 +3891,7 @@ var wr = { exports: {} };
|
|
|
3889
3891
|
var p = b.date, _ = b.utc;
|
|
3890
3892
|
if (p === null)
|
|
3891
3893
|
return /* @__PURE__ */ new Date(NaN);
|
|
3892
|
-
if (
|
|
3894
|
+
if (P.u(p))
|
|
3893
3895
|
return /* @__PURE__ */ new Date();
|
|
3894
3896
|
if (p instanceof Date)
|
|
3895
3897
|
return new Date(p);
|
|
@@ -3906,7 +3908,7 @@ var wr = { exports: {} };
|
|
|
3906
3908
|
var d = this.$d;
|
|
3907
3909
|
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3908
3910
|
}, g.$utils = function() {
|
|
3909
|
-
return
|
|
3911
|
+
return P;
|
|
3910
3912
|
}, g.isValid = function() {
|
|
3911
3913
|
return this.$d.toString() !== v;
|
|
3912
3914
|
}, g.isSame = function(d, b) {
|
|
@@ -3917,17 +3919,17 @@ var wr = { exports: {} };
|
|
|
3917
3919
|
}, g.isBefore = function(d, b) {
|
|
3918
3920
|
return this.endOf(b) < k(d);
|
|
3919
3921
|
}, g.$g = function(d, b, p) {
|
|
3920
|
-
return
|
|
3922
|
+
return P.u(d) ? this[b] : this.set(p, d);
|
|
3921
3923
|
}, g.unix = function() {
|
|
3922
3924
|
return Math.floor(this.valueOf() / 1e3);
|
|
3923
3925
|
}, g.valueOf = function() {
|
|
3924
3926
|
return this.$d.getTime();
|
|
3925
3927
|
}, g.startOf = function(d, b) {
|
|
3926
|
-
var p = this, _ = !!
|
|
3927
|
-
var J =
|
|
3928
|
+
var p = this, _ = !!P.u(b) || b, w = P.p(d), M = function(oe, G) {
|
|
3929
|
+
var J = P.w(p.$u ? Date.UTC(p.$y, G, oe) : new Date(p.$y, G, oe), p);
|
|
3928
3930
|
return _ ? J : J.endOf(u);
|
|
3929
3931
|
}, D = function(oe, G) {
|
|
3930
|
-
return
|
|
3932
|
+
return P.w(p.toDate()[oe].apply(p.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), p);
|
|
3931
3933
|
}, N = this.$W, F = this.$M, W = this.$D, ue = "set" + (this.$u ? "UTC" : "");
|
|
3932
3934
|
switch (w) {
|
|
3933
3935
|
case E:
|
|
@@ -3952,7 +3954,7 @@ var wr = { exports: {} };
|
|
|
3952
3954
|
}, g.endOf = function(d) {
|
|
3953
3955
|
return this.startOf(d, !1);
|
|
3954
3956
|
}, g.$set = function(d, b) {
|
|
3955
|
-
var p, _ =
|
|
3957
|
+
var p, _ = P.p(d), w = "set" + (this.$u ? "UTC" : ""), M = (p = {}, p[u] = w + "Date", p[H] = w + "Date", p[c] = w + "Month", p[E] = w + "FullYear", p[o] = w + "Hours", p[a] = w + "Minutes", p[l] = w + "Seconds", p[s] = w + "Milliseconds", p)[_], D = _ === u ? this.$D + (b - this.$W) : b;
|
|
3956
3958
|
if (_ === c || _ === E) {
|
|
3957
3959
|
var N = this.clone().set(H, 1);
|
|
3958
3960
|
N.$d[M](D), N.init(), this.$d = N.set(H, Math.min(this.$D, N.daysInMonth())).$d;
|
|
@@ -3962,13 +3964,13 @@ var wr = { exports: {} };
|
|
|
3962
3964
|
}, g.set = function(d, b) {
|
|
3963
3965
|
return this.clone().$set(d, b);
|
|
3964
3966
|
}, g.get = function(d) {
|
|
3965
|
-
return this[
|
|
3967
|
+
return this[P.p(d)]();
|
|
3966
3968
|
}, g.add = function(d, b) {
|
|
3967
3969
|
var p, _ = this;
|
|
3968
3970
|
d = Number(d);
|
|
3969
|
-
var w =
|
|
3971
|
+
var w = P.p(b), M = function(F) {
|
|
3970
3972
|
var W = k(_);
|
|
3971
|
-
return
|
|
3973
|
+
return P.w(W.date(W.date() + Math.round(F * d)), _);
|
|
3972
3974
|
};
|
|
3973
3975
|
if (w === c)
|
|
3974
3976
|
return this.set(c, this.$M + d);
|
|
@@ -3979,17 +3981,17 @@ var wr = { exports: {} };
|
|
|
3979
3981
|
if (w === h)
|
|
3980
3982
|
return M(7);
|
|
3981
3983
|
var D = (p = {}, p[a] = i, p[o] = n, p[l] = r, p)[w] || 1, N = this.$d.getTime() + d * D;
|
|
3982
|
-
return
|
|
3984
|
+
return P.w(N, this);
|
|
3983
3985
|
}, g.subtract = function(d, b) {
|
|
3984
3986
|
return this.add(-1 * d, b);
|
|
3985
3987
|
}, g.format = function(d) {
|
|
3986
3988
|
var b = this, p = this.$locale();
|
|
3987
3989
|
if (!this.isValid())
|
|
3988
3990
|
return p.invalidDate || v;
|
|
3989
|
-
var _ = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
3991
|
+
var _ = d || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), M = this.$H, D = this.$m, N = this.$M, F = p.weekdays, W = p.months, ue = p.meridiem, ne = function(G, J, ce, pe) {
|
|
3990
3992
|
return G && (G[J] || G(b, _)) || ce[J].slice(0, pe);
|
|
3991
3993
|
}, se = function(G) {
|
|
3992
|
-
return
|
|
3994
|
+
return P.s(M % 12 || 12, G, "0");
|
|
3993
3995
|
}, oe = ue || function(G, J, ce) {
|
|
3994
3996
|
var pe = G < 12 ? "AM" : "PM";
|
|
3995
3997
|
return ce ? pe.toLowerCase() : pe;
|
|
@@ -4000,11 +4002,11 @@ var wr = { exports: {} };
|
|
|
4000
4002
|
case "YY":
|
|
4001
4003
|
return String(b.$y).slice(-2);
|
|
4002
4004
|
case "YYYY":
|
|
4003
|
-
return
|
|
4005
|
+
return P.s(b.$y, 4, "0");
|
|
4004
4006
|
case "M":
|
|
4005
4007
|
return N + 1;
|
|
4006
4008
|
case "MM":
|
|
4007
|
-
return
|
|
4009
|
+
return P.s(N + 1, 2, "0");
|
|
4008
4010
|
case "MMM":
|
|
4009
4011
|
return ne(p.monthsShort, N, W, 3);
|
|
4010
4012
|
case "MMMM":
|
|
@@ -4012,7 +4014,7 @@ var wr = { exports: {} };
|
|
|
4012
4014
|
case "D":
|
|
4013
4015
|
return b.$D;
|
|
4014
4016
|
case "DD":
|
|
4015
|
-
return
|
|
4017
|
+
return P.s(b.$D, 2, "0");
|
|
4016
4018
|
case "d":
|
|
4017
4019
|
return String(b.$W);
|
|
4018
4020
|
case "dd":
|
|
@@ -4024,7 +4026,7 @@ var wr = { exports: {} };
|
|
|
4024
4026
|
case "H":
|
|
4025
4027
|
return String(M);
|
|
4026
4028
|
case "HH":
|
|
4027
|
-
return
|
|
4029
|
+
return P.s(M, 2, "0");
|
|
4028
4030
|
case "h":
|
|
4029
4031
|
return se(1);
|
|
4030
4032
|
case "hh":
|
|
@@ -4036,13 +4038,13 @@ var wr = { exports: {} };
|
|
|
4036
4038
|
case "m":
|
|
4037
4039
|
return String(D);
|
|
4038
4040
|
case "mm":
|
|
4039
|
-
return
|
|
4041
|
+
return P.s(D, 2, "0");
|
|
4040
4042
|
case "s":
|
|
4041
4043
|
return String(b.$s);
|
|
4042
4044
|
case "ss":
|
|
4043
|
-
return
|
|
4045
|
+
return P.s(b.$s, 2, "0");
|
|
4044
4046
|
case "SSS":
|
|
4045
|
-
return
|
|
4047
|
+
return P.s(b.$ms, 3, "0");
|
|
4046
4048
|
case "Z":
|
|
4047
4049
|
return w;
|
|
4048
4050
|
}
|
|
@@ -4052,8 +4054,8 @@ var wr = { exports: {} };
|
|
|
4052
4054
|
}, g.utcOffset = function() {
|
|
4053
4055
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4054
4056
|
}, g.diff = function(d, b, p) {
|
|
4055
|
-
var _, w = this, M =
|
|
4056
|
-
return
|
|
4057
|
+
var _, w = this, M = P.p(b), D = k(d), N = (D.utcOffset() - this.utcOffset()) * i, F = this - D, W = function() {
|
|
4058
|
+
return P.m(w, D);
|
|
4057
4059
|
};
|
|
4058
4060
|
switch (M) {
|
|
4059
4061
|
case E:
|
|
@@ -4083,7 +4085,7 @@ var wr = { exports: {} };
|
|
|
4083
4085
|
default:
|
|
4084
4086
|
_ = F;
|
|
4085
4087
|
}
|
|
4086
|
-
return p ? _ :
|
|
4088
|
+
return p ? _ : P.a(_);
|
|
4087
4089
|
}, g.daysInMonth = function() {
|
|
4088
4090
|
return this.endOf(c).$D;
|
|
4089
4091
|
}, g.$locale = function() {
|
|
@@ -4094,7 +4096,7 @@ var wr = { exports: {} };
|
|
|
4094
4096
|
var p = this.clone(), _ = X(d, b, !0);
|
|
4095
4097
|
return _ && (p.$L = _), p;
|
|
4096
4098
|
}, g.clone = function() {
|
|
4097
|
-
return
|
|
4099
|
+
return P.w(this.$d, this);
|
|
4098
4100
|
}, g.toDate = function() {
|
|
4099
4101
|
return new Date(this.valueOf());
|
|
4100
4102
|
}, g.toJSON = function() {
|
|
@@ -4115,14 +4117,14 @@ var wr = { exports: {} };
|
|
|
4115
4117
|
return k(1e3 * x);
|
|
4116
4118
|
}, k.en = L[I], k.Ls = L, k.p = {}, k;
|
|
4117
4119
|
});
|
|
4118
|
-
})(
|
|
4119
|
-
var
|
|
4120
|
-
const
|
|
4121
|
-
var
|
|
4120
|
+
})(Tr);
|
|
4121
|
+
var Gn = Tr.exports;
|
|
4122
|
+
const Gt = /* @__PURE__ */ yt(Gn);
|
|
4123
|
+
var Hr = { exports: {} };
|
|
4122
4124
|
(function(e, t) {
|
|
4123
4125
|
(function(r, i) {
|
|
4124
4126
|
e.exports = i();
|
|
4125
|
-
})(
|
|
4127
|
+
})(Kt, function() {
|
|
4126
4128
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4127
4129
|
return function(s, l, a) {
|
|
4128
4130
|
var o = l.prototype;
|
|
@@ -4198,26 +4200,26 @@ var Sr = { exports: {} };
|
|
|
4198
4200
|
};
|
|
4199
4201
|
};
|
|
4200
4202
|
});
|
|
4201
|
-
})(
|
|
4202
|
-
var
|
|
4203
|
-
const
|
|
4204
|
-
function
|
|
4205
|
-
|
|
4203
|
+
})(Hr);
|
|
4204
|
+
var jn = Hr.exports;
|
|
4205
|
+
const zn = /* @__PURE__ */ yt(jn);
|
|
4206
|
+
function Xn(e) {
|
|
4207
|
+
Br(e, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);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}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);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:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4206
4208
|
}
|
|
4207
|
-
function
|
|
4209
|
+
function jt(e, t, r) {
|
|
4208
4210
|
const i = e.slice();
|
|
4209
4211
|
return i[49] = t[r], i[51] = r, i;
|
|
4210
4212
|
}
|
|
4211
|
-
function
|
|
4212
|
-
let t, r, i, n, s =
|
|
4213
|
+
function zt(e) {
|
|
4214
|
+
let t, r, i, n, s = Ht(
|
|
4213
4215
|
/*displayMessages*/
|
|
4214
4216
|
e[4]
|
|
4215
4217
|
), l = [];
|
|
4216
4218
|
for (let o = 0; o < s.length; o += 1)
|
|
4217
|
-
l[o] =
|
|
4219
|
+
l[o] = Wt(jt(e, s, o));
|
|
4218
4220
|
let a = (
|
|
4219
4221
|
/*videoExists*/
|
|
4220
|
-
e[7] &&
|
|
4222
|
+
e[7] && qt(e)
|
|
4221
4223
|
);
|
|
4222
4224
|
return {
|
|
4223
4225
|
c() {
|
|
@@ -4255,21 +4257,21 @@ function Gt(e) {
|
|
|
4255
4257
|
p(o, u) {
|
|
4256
4258
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4257
4259
|
1072) {
|
|
4258
|
-
s =
|
|
4260
|
+
s = Ht(
|
|
4259
4261
|
/*displayMessages*/
|
|
4260
4262
|
o[4]
|
|
4261
4263
|
);
|
|
4262
4264
|
let h;
|
|
4263
4265
|
for (h = 0; h < s.length; h += 1) {
|
|
4264
|
-
const c =
|
|
4265
|
-
l[h] ? l[h].p(c, u) : (l[h] =
|
|
4266
|
+
const c = jt(o, s, h);
|
|
4267
|
+
l[h] ? l[h].p(c, u) : (l[h] = Wt(c), l[h].c(), l[h].m(t, null));
|
|
4266
4268
|
}
|
|
4267
4269
|
for (; h < l.length; h += 1)
|
|
4268
4270
|
l[h].d(1);
|
|
4269
4271
|
l.length = s.length;
|
|
4270
4272
|
}
|
|
4271
4273
|
/*videoExists*/
|
|
4272
|
-
o[7] ? a ? a.p(o, u) : (a =
|
|
4274
|
+
o[7] ? a ? a.p(o, u) : (a = qt(o), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null), u[0] & /*clientstylingurl*/
|
|
4273
4275
|
2 && le(
|
|
4274
4276
|
n,
|
|
4275
4277
|
"clientstylingurl",
|
|
@@ -4296,11 +4298,11 @@ function Gt(e) {
|
|
|
4296
4298
|
);
|
|
4297
4299
|
},
|
|
4298
4300
|
d(o) {
|
|
4299
|
-
o && (ie(t), ie(r), ie(i), ie(n)),
|
|
4301
|
+
o && (ie(t), ie(r), ie(i), ie(n)), Dr(l, o), a && a.d(o);
|
|
4300
4302
|
}
|
|
4301
4303
|
};
|
|
4302
4304
|
}
|
|
4303
|
-
function
|
|
4305
|
+
function Xt(e) {
|
|
4304
4306
|
let t, r, i;
|
|
4305
4307
|
function n(...s) {
|
|
4306
4308
|
return (
|
|
@@ -4327,14 +4329,14 @@ function jt(e) {
|
|
|
4327
4329
|
}
|
|
4328
4330
|
};
|
|
4329
4331
|
}
|
|
4330
|
-
function
|
|
4332
|
+
function Wt(e) {
|
|
4331
4333
|
let t, r, i, n, s = (
|
|
4332
4334
|
/*message*/
|
|
4333
4335
|
e[49] + ""
|
|
4334
4336
|
), l, a, o, u, h = (
|
|
4335
4337
|
/*displayMessages*/
|
|
4336
4338
|
e[4].length > 1 && /*index*/
|
|
4337
|
-
e[51] === 0 &&
|
|
4339
|
+
e[51] === 0 && Xt(e)
|
|
4338
4340
|
);
|
|
4339
4341
|
function c(...m) {
|
|
4340
4342
|
return (
|
|
@@ -4363,7 +4365,7 @@ function zt(e) {
|
|
|
4363
4365
|
16 && s !== (s = /*message*/
|
|
4364
4366
|
e[49] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4365
4367
|
e[4].length > 1 && /*index*/
|
|
4366
|
-
e[51] === 0 ? h ? h.p(e, E) : (h =
|
|
4368
|
+
e[51] === 0 ? h ? h.p(e, E) : (h = Xt(e), h.c(), h.m(t, a)) : h && (h.d(1), h = null), E[0] & /*allVerificationsVisible*/
|
|
4367
4369
|
32 && Ee(
|
|
4368
4370
|
t,
|
|
4369
4371
|
"ShowAll",
|
|
@@ -4376,7 +4378,7 @@ function zt(e) {
|
|
|
4376
4378
|
}
|
|
4377
4379
|
};
|
|
4378
4380
|
}
|
|
4379
|
-
function
|
|
4381
|
+
function qt(e) {
|
|
4380
4382
|
let t, r, i, n, s = (
|
|
4381
4383
|
/*$_*/
|
|
4382
4384
|
e[9]("verification.video.how-to") + ""
|
|
@@ -4401,7 +4403,7 @@ function Xt(e) {
|
|
|
4401
4403
|
p(u, h) {
|
|
4402
4404
|
h[0] & /*$_*/
|
|
4403
4405
|
512 && s !== (s = /*$_*/
|
|
4404
|
-
u[9]("verification.video.how-to") + "") &&
|
|
4406
|
+
u[9]("verification.video.how-to") + "") && Lr(l, s), h[0] & /*desktopView*/
|
|
4405
4407
|
64 && Ee(
|
|
4406
4408
|
n,
|
|
4407
4409
|
"CashierVerificationVideoLinkDesktop",
|
|
@@ -4414,10 +4416,10 @@ function Xt(e) {
|
|
|
4414
4416
|
}
|
|
4415
4417
|
};
|
|
4416
4418
|
}
|
|
4417
|
-
function
|
|
4419
|
+
function Wn(e) {
|
|
4418
4420
|
let t, r = (
|
|
4419
4421
|
/*displayMessages*/
|
|
4420
|
-
e[4] &&
|
|
4422
|
+
e[4] && zt(e)
|
|
4421
4423
|
);
|
|
4422
4424
|
return {
|
|
4423
4425
|
c() {
|
|
@@ -4433,7 +4435,7 @@ function Xn(e) {
|
|
|
4433
4435
|
},
|
|
4434
4436
|
p(i, n) {
|
|
4435
4437
|
/*displayMessages*/
|
|
4436
|
-
i[4] ? r ? r.p(i, n) : (r =
|
|
4438
|
+
i[4] ? r ? r.p(i, n) : (r = zt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4437
4439
|
64 && Ee(
|
|
4438
4440
|
t,
|
|
4439
4441
|
"CashierVerificationsDesktop",
|
|
@@ -4448,10 +4450,10 @@ function Xn(e) {
|
|
|
4448
4450
|
}
|
|
4449
4451
|
};
|
|
4450
4452
|
}
|
|
4451
|
-
const
|
|
4452
|
-
function
|
|
4453
|
+
const qn = "verification_explanation_video_widgets.MP4", Yn = "700px", Zn = "500px";
|
|
4454
|
+
function Jn(e, t, r) {
|
|
4453
4455
|
let i;
|
|
4454
|
-
|
|
4456
|
+
$r(e, Fn, (f) => r(9, i = f)), Gt.extend(zn);
|
|
4455
4457
|
let { endpoint: n } = t, { lang: s = "en" } = t, { translationurl: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { session: u = "" } = t, { customerid: h = "" } = t, { ismobileview: c = "" } = t, m, E = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), v, $, V, U = !0, B = !0, z = !1, I = "";
|
|
4456
4458
|
var L;
|
|
4457
4459
|
(function(f) {
|
|
@@ -4473,22 +4475,22 @@ function Zn(e, t, r) {
|
|
|
4473
4475
|
R.InProgress,
|
|
4474
4476
|
R.Referred,
|
|
4475
4477
|
R.AwaitingForResponse
|
|
4476
|
-
],
|
|
4478
|
+
], P = () => {
|
|
4477
4479
|
let f = l;
|
|
4478
4480
|
if (f)
|
|
4479
4481
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4480
4482
|
Object.keys(y).forEach((S) => {
|
|
4481
|
-
|
|
4483
|
+
Ft(S, y[S]);
|
|
4482
4484
|
});
|
|
4483
4485
|
}).catch((y) => {
|
|
4484
4486
|
console.log(y);
|
|
4485
4487
|
});
|
|
4486
4488
|
};
|
|
4487
|
-
Object.keys(
|
|
4488
|
-
|
|
4489
|
+
Object.keys(Vt).forEach((f) => {
|
|
4490
|
+
Ft(f, Vt[f]);
|
|
4489
4491
|
});
|
|
4490
4492
|
const me = () => {
|
|
4491
|
-
|
|
4493
|
+
Vn(s);
|
|
4492
4494
|
}, Re = () => {
|
|
4493
4495
|
let f = document.createElement("style");
|
|
4494
4496
|
f.innerHTML = a, m.appendChild(f);
|
|
@@ -4507,7 +4509,7 @@ function Zn(e, t, r) {
|
|
|
4507
4509
|
if (!f)
|
|
4508
4510
|
return;
|
|
4509
4511
|
const S = new URL(`${n}/v1/player/verification/GetKYCStatus`), Y = new Headers();
|
|
4510
|
-
Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp",
|
|
4512
|
+
Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp", Gt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4511
4513
|
const Je = {
|
|
4512
4514
|
method: "POST",
|
|
4513
4515
|
headers: Y,
|
|
@@ -4609,7 +4611,7 @@ function Zn(e, t, r) {
|
|
|
4609
4611
|
}, oe = () => {
|
|
4610
4612
|
r(6, B = c === "false");
|
|
4611
4613
|
}, G = () => {
|
|
4612
|
-
r(8, I = $ + "/" + s + "/" +
|
|
4614
|
+
r(8, I = $ + "/" + s + "/" + qn);
|
|
4613
4615
|
try {
|
|
4614
4616
|
fetch(I, { method: "HEAD" }).then((f) => {
|
|
4615
4617
|
r(7, z = f.ok);
|
|
@@ -4621,12 +4623,12 @@ function Zn(e, t, r) {
|
|
|
4621
4623
|
window.postMessage(
|
|
4622
4624
|
{
|
|
4623
4625
|
type: "ShowCashierVideoModal",
|
|
4624
|
-
details: B ?
|
|
4626
|
+
details: B ? Yn : Zn
|
|
4625
4627
|
},
|
|
4626
4628
|
window.location.href
|
|
4627
4629
|
);
|
|
4628
|
-
}, ce = (f, y) => se(y, f), pe = (f, y) => se(y, f),
|
|
4629
|
-
function
|
|
4630
|
+
}, ce = (f, y) => se(y, f), pe = (f, y) => se(y, f), Or = () => J();
|
|
4631
|
+
function Ar(f) {
|
|
4630
4632
|
st[f ? "unshift" : "push"](() => {
|
|
4631
4633
|
m = f, r(3, m);
|
|
4632
4634
|
});
|
|
@@ -4637,7 +4639,7 @@ function Zn(e, t, r) {
|
|
|
4637
4639
|
e.$$.dirty[0] & /*lang*/
|
|
4638
4640
|
8192 && s && me(), e.$$.dirty[0] & /*endpoint, session*/
|
|
4639
4641
|
36864 && n && u && g(), e.$$.dirty[0] & /*translationurl*/
|
|
4640
|
-
16384 && l &&
|
|
4642
|
+
16384 && l && P(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4641
4643
|
9 && a && m && Re(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4642
4644
|
10 && o && m && x(), e.$$.dirty[0] & /*ismobileview*/
|
|
4643
4645
|
4 && c && oe(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
@@ -4663,18 +4665,18 @@ function Zn(e, t, r) {
|
|
|
4663
4665
|
$,
|
|
4664
4666
|
ce,
|
|
4665
4667
|
pe,
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
+
Or,
|
|
4669
|
+
Ar
|
|
4668
4670
|
];
|
|
4669
4671
|
}
|
|
4670
|
-
class
|
|
4672
|
+
class Qn extends Zr {
|
|
4671
4673
|
constructor(t) {
|
|
4672
|
-
super(),
|
|
4674
|
+
super(), qr(
|
|
4673
4675
|
this,
|
|
4674
4676
|
t,
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4677
|
+
Jn,
|
|
4678
|
+
Wn,
|
|
4679
|
+
Zt,
|
|
4678
4680
|
{
|
|
4679
4681
|
endpoint: 12,
|
|
4680
4682
|
lang: 13,
|
|
@@ -4685,7 +4687,7 @@ class Jn extends qr {
|
|
|
4685
4687
|
customerid: 16,
|
|
4686
4688
|
ismobileview: 2
|
|
4687
4689
|
},
|
|
4688
|
-
|
|
4690
|
+
Xn,
|
|
4689
4691
|
[-1, -1]
|
|
4690
4692
|
);
|
|
4691
4693
|
}
|
|
@@ -4738,27 +4740,27 @@ class Jn extends qr {
|
|
|
4738
4740
|
this.$$set({ ismobileview: t }), te();
|
|
4739
4741
|
}
|
|
4740
4742
|
}
|
|
4741
|
-
|
|
4743
|
+
Yr(Qn, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
4742
4744
|
export {
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4745
|
+
Qn as C,
|
|
4746
|
+
Zr as S,
|
|
4747
|
+
Br as a,
|
|
4746
4748
|
ae as b,
|
|
4747
|
-
|
|
4749
|
+
Yr as c,
|
|
4748
4750
|
ie as d,
|
|
4749
|
-
|
|
4751
|
+
ts as e,
|
|
4750
4752
|
te as f,
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4753
|
+
Z as g,
|
|
4754
|
+
xe as h,
|
|
4755
|
+
qr as i,
|
|
4756
|
+
Kn as j,
|
|
4757
|
+
K as k,
|
|
4758
|
+
re as l,
|
|
4759
|
+
es as m,
|
|
4758
4760
|
Q as n,
|
|
4759
|
-
|
|
4761
|
+
rs as o,
|
|
4760
4762
|
bt as p,
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
+
st as q,
|
|
4764
|
+
Zt as s,
|
|
4763
4765
|
Ee as t
|
|
4764
4766
|
};
|