@everymatrix/cashier-verifications 1.70.1 → 1.71.1
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-8V6Jd8GB.cjs +18 -0
- package/components/{CashierVerifications-Cpezty7b.js → CashierVerifications-D2VbhsZy.js} +717 -721
- package/components/{CashierVerifications-5TlkZOu9.js → CashierVerifications-DkIAH7xq.js} +659 -663
- package/components/{CashierVideoModal-CfvC_JtE.js → CashierVideoModal-BdiwRhUs.js} +15 -15
- package/components/{CashierVideoModal-W0bdqR6Y.js → CashierVideoModal-C-Ev6exS.js} +19 -19
- package/components/{CashierVideoModal-DKese1BS.cjs → CashierVideoModal-C64Lk299.cjs} +1 -1
- 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-B8lYKrBg.cjs +0 -5
|
@@ -6,18 +6,18 @@ function Jt(e) {
|
|
|
6
6
|
function Tt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function De(e) {
|
|
10
10
|
e.forEach(Jt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function gt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Qt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let Ue;
|
|
19
|
+
function rs(e, t) {
|
|
20
|
+
return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
|
|
21
21
|
}
|
|
22
22
|
function Dr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
@@ -61,10 +61,10 @@ function Nr(e, t) {
|
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function oe(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ie(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
70
|
function Rr(e, t) {
|
|
@@ -74,25 +74,25 @@ function Rr(e, t) {
|
|
|
74
74
|
function q(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function is(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function vt(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function ye() {
|
|
84
|
+
return vt(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function ns() {
|
|
87
|
+
return vt("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function bt(e, t, r, i) {
|
|
90
90
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
91
91
|
}
|
|
92
92
|
function K(e, t, r) {
|
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function ue(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
|
}
|
|
@@ -103,7 +103,7 @@ function Ur(e, t) {
|
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function _e(e, t, r) {
|
|
107
107
|
e.classList.toggle(t, !!r);
|
|
108
108
|
}
|
|
109
109
|
function Fr(e) {
|
|
@@ -115,60 +115,60 @@ function Fr(e) {
|
|
|
115
115
|
}
|
|
116
116
|
), t;
|
|
117
117
|
}
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
let Be;
|
|
119
|
+
function $e(e) {
|
|
120
|
+
Be = e;
|
|
121
121
|
}
|
|
122
122
|
function Vr() {
|
|
123
|
-
if (!
|
|
123
|
+
if (!Be)
|
|
124
124
|
throw new Error("Function called outside component initialization");
|
|
125
|
-
return
|
|
125
|
+
return Be;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ss(e) {
|
|
128
128
|
Vr().$$.on_mount.push(e);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
130
|
+
const be = [], st = [];
|
|
131
131
|
let xe = [];
|
|
132
|
-
const
|
|
133
|
-
let
|
|
132
|
+
const Pt = [], Gr = /* @__PURE__ */ Promise.resolve();
|
|
133
|
+
let ot = !1;
|
|
134
134
|
function jr() {
|
|
135
|
-
|
|
135
|
+
ot || (ot = !0, Gr.then(J));
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function at(e) {
|
|
138
138
|
xe.push(e);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
141
|
-
let
|
|
140
|
+
const Qe = /* @__PURE__ */ new Set();
|
|
141
|
+
let ge = 0;
|
|
142
142
|
function J() {
|
|
143
|
-
if (
|
|
143
|
+
if (ge !== 0)
|
|
144
144
|
return;
|
|
145
|
-
const e =
|
|
145
|
+
const e = Be;
|
|
146
146
|
do {
|
|
147
147
|
try {
|
|
148
|
-
for (;
|
|
149
|
-
const t =
|
|
150
|
-
|
|
148
|
+
for (; ge < be.length; ) {
|
|
149
|
+
const t = be[ge];
|
|
150
|
+
ge++, $e(t), zr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
|
-
throw
|
|
153
|
+
throw be.length = 0, ge = 0, t;
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
156
|
-
|
|
155
|
+
for ($e(null), be.length = 0, ge = 0; st.length; )
|
|
156
|
+
st.pop()();
|
|
157
157
|
for (let t = 0; t < xe.length; t += 1) {
|
|
158
158
|
const r = xe[t];
|
|
159
|
-
|
|
159
|
+
Qe.has(r) || (Qe.add(r), r());
|
|
160
160
|
}
|
|
161
161
|
xe.length = 0;
|
|
162
|
-
} while (
|
|
163
|
-
for (;
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
} while (be.length);
|
|
163
|
+
for (; Pt.length; )
|
|
164
|
+
Pt.pop()();
|
|
165
|
+
ot = !1, Qe.clear(), $e(e);
|
|
166
166
|
}
|
|
167
167
|
function zr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
|
-
e.update(),
|
|
169
|
+
e.update(), De(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
function Xr(e) {
|
|
@@ -179,26 +179,26 @@ const Wr = /* @__PURE__ */ new Set();
|
|
|
179
179
|
function qr(e, t) {
|
|
180
180
|
e && e.i && (Wr.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function At(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
185
|
function Yr(e, t, r) {
|
|
186
186
|
const { fragment: i, after_update: n } = e.$$;
|
|
187
|
-
i && i.m(t, r),
|
|
188
|
-
const s = e.$$.on_mount.map(Jt).filter(
|
|
189
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
190
|
-
}), n.forEach(
|
|
187
|
+
i && i.m(t, r), at(() => {
|
|
188
|
+
const s = e.$$.on_mount.map(Jt).filter(gt);
|
|
189
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : De(s), e.$$.on_mount = [];
|
|
190
|
+
}), n.forEach(at);
|
|
191
191
|
}
|
|
192
192
|
function Zr(e, t) {
|
|
193
193
|
const r = e.$$;
|
|
194
|
-
r.fragment !== null && (Xr(r.after_update),
|
|
194
|
+
r.fragment !== null && (Xr(r.after_update), De(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
195
195
|
}
|
|
196
196
|
function Jr(e, t) {
|
|
197
|
-
e.$$.dirty[0] === -1 && (
|
|
197
|
+
e.$$.dirty[0] === -1 && (be.push(e), jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
198
198
|
}
|
|
199
199
|
function Qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
200
|
-
const o =
|
|
201
|
-
|
|
200
|
+
const o = Be;
|
|
201
|
+
$e(e);
|
|
202
202
|
const u = e.$$ = {
|
|
203
203
|
fragment: null,
|
|
204
204
|
ctx: [],
|
|
@@ -222,18 +222,18 @@ function Qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
222
222
|
};
|
|
223
223
|
l && l(u.root);
|
|
224
224
|
let h = !1;
|
|
225
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...
|
|
226
|
-
const T =
|
|
225
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...x) => {
|
|
226
|
+
const T = x.length ? x[0] : p;
|
|
227
227
|
return u.ctx && n(u.ctx[c], u.ctx[c] = T) && (!u.skip_bound && u.bound[c] && u.bound[c](T), h && Jr(e, c)), p;
|
|
228
|
-
}) : [], u.update(), h = !0,
|
|
228
|
+
}) : [], u.update(), h = !0, De(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
229
229
|
if (t.hydrate) {
|
|
230
230
|
const c = kr(t.target);
|
|
231
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
231
|
+
u.fragment && u.fragment.l(c), c.forEach(ie);
|
|
232
232
|
} else
|
|
233
233
|
u.fragment && u.fragment.c();
|
|
234
234
|
t.intro && qr(e.$$.fragment), Yr(e, t.target, t.anchor), J();
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
$e(o);
|
|
237
237
|
}
|
|
238
238
|
let er;
|
|
239
239
|
typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
@@ -285,10 +285,10 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
285
285
|
* @param {HTMLElement} [anchor]
|
|
286
286
|
*/
|
|
287
287
|
m: function(o, u) {
|
|
288
|
-
|
|
288
|
+
oe(o, s, u);
|
|
289
289
|
},
|
|
290
290
|
d: function(o) {
|
|
291
|
-
o &&
|
|
291
|
+
o && ie(s);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
};
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
300
300
|
n in r && (t[n] = [e(n)]);
|
|
301
301
|
for (const n of this.attributes) {
|
|
302
302
|
const s = this.$$g_p(n.name);
|
|
303
|
-
s in this.$$d || (this.$$d[s] =
|
|
303
|
+
s in this.$$d || (this.$$d[s] = Ve(s, n.value, this.$$p_d, "toProp"));
|
|
304
304
|
}
|
|
305
305
|
for (const n in this.$$p_d)
|
|
306
306
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
@@ -318,7 +318,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
318
318
|
this.$$r = !0;
|
|
319
319
|
for (const n in this.$$p_d)
|
|
320
320
|
if (this.$$d[n] = this.$$c.$$.ctx[this.$$c.$$.props[n]], this.$$p_d[n].reflect) {
|
|
321
|
-
const s =
|
|
321
|
+
const s = Ve(
|
|
322
322
|
n,
|
|
323
323
|
this.$$d[n],
|
|
324
324
|
this.$$p_d,
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
340
340
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
341
341
|
// and setting attributes through setAttribute etc, this is helpful
|
|
342
342
|
attributeChangedCallback(e, t, r) {
|
|
343
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
343
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
344
344
|
}
|
|
345
345
|
disconnectedCallback() {
|
|
346
346
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -353,7 +353,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
353
353
|
) || e;
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
function
|
|
356
|
+
function Ve(e, t, r, i) {
|
|
357
357
|
const n = r[e]?.type;
|
|
358
358
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
359
359
|
return t;
|
|
@@ -399,7 +399,7 @@ function Kr(e, t, r, i, n, s) {
|
|
|
399
399
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
400
400
|
},
|
|
401
401
|
set(o) {
|
|
402
|
-
o =
|
|
402
|
+
o = Ve(a, o, t), this.$$d[a] = o, this.$$c?.$set({ [a]: o });
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
}), i.forEach((a) => {
|
|
@@ -439,7 +439,7 @@ class ei {
|
|
|
439
439
|
* @returns {() => void}
|
|
440
440
|
*/
|
|
441
441
|
$on(t, r) {
|
|
442
|
-
if (!
|
|
442
|
+
if (!gt(r))
|
|
443
443
|
return Q;
|
|
444
444
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
445
445
|
return i.push(r), () => {
|
|
@@ -457,24 +457,24 @@ class ei {
|
|
|
457
457
|
}
|
|
458
458
|
const ti = "4";
|
|
459
459
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ti);
|
|
460
|
-
const
|
|
460
|
+
const ve = [];
|
|
461
461
|
function ri(e, t) {
|
|
462
462
|
return {
|
|
463
|
-
subscribe:
|
|
463
|
+
subscribe: Le(e, t).subscribe
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Le(e, t = Q) {
|
|
467
467
|
let r;
|
|
468
468
|
const i = /* @__PURE__ */ new Set();
|
|
469
469
|
function n(a) {
|
|
470
470
|
if (Qt(e, a) && (e = a, r)) {
|
|
471
|
-
const o = !
|
|
471
|
+
const o = !ve.length;
|
|
472
472
|
for (const u of i)
|
|
473
|
-
u[1](),
|
|
473
|
+
u[1](), ve.push(u, e);
|
|
474
474
|
if (o) {
|
|
475
|
-
for (let u = 0; u <
|
|
476
|
-
|
|
477
|
-
|
|
475
|
+
for (let u = 0; u < ve.length; u += 2)
|
|
476
|
+
ve[u][0](ve[u + 1]);
|
|
477
|
+
ve.length = 0;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
}
|
|
@@ -489,7 +489,7 @@ function Ie(e, t = Q) {
|
|
|
489
489
|
}
|
|
490
490
|
return { set: n, update: s, subscribe: l };
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function He(e, t, r) {
|
|
493
493
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
494
494
|
if (!n.every(Boolean))
|
|
495
495
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -503,12 +503,12 @@ function Oe(e, t, r) {
|
|
|
503
503
|
return;
|
|
504
504
|
c();
|
|
505
505
|
const T = t(i ? u[0] : u, l, a);
|
|
506
|
-
s ? l(T) : c =
|
|
507
|
-
},
|
|
506
|
+
s ? l(T) : c = gt(T) ? T : Q;
|
|
507
|
+
}, x = n.map(
|
|
508
508
|
(T, v) => Kt(
|
|
509
509
|
T,
|
|
510
|
-
(
|
|
511
|
-
u[v] =
|
|
510
|
+
(C) => {
|
|
511
|
+
u[v] = C, h &= ~(1 << v), o && p();
|
|
512
512
|
},
|
|
513
513
|
() => {
|
|
514
514
|
h |= 1 << v;
|
|
@@ -516,12 +516,12 @@ function Oe(e, t, r) {
|
|
|
516
516
|
)
|
|
517
517
|
);
|
|
518
518
|
return o = !0, p(), function() {
|
|
519
|
-
|
|
519
|
+
De(x), c(), o = !1;
|
|
520
520
|
};
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
var tr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
524
|
-
function
|
|
524
|
+
function yt(e) {
|
|
525
525
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
526
526
|
}
|
|
527
527
|
var ii = function(t) {
|
|
@@ -541,26 +541,26 @@ function ui(e) {
|
|
|
541
541
|
function li(e) {
|
|
542
542
|
return Array.isArray(e) ? [] : {};
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
544
|
+
function Me(e, t) {
|
|
545
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ee(li(e), e, t) : e;
|
|
546
546
|
}
|
|
547
547
|
function hi(e, t, r) {
|
|
548
548
|
return e.concat(t).map(function(i) {
|
|
549
|
-
return
|
|
549
|
+
return Me(i, r);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
function fi(e, t) {
|
|
553
553
|
if (!t.customMerge)
|
|
554
|
-
return
|
|
554
|
+
return Ee;
|
|
555
555
|
var r = t.customMerge(e);
|
|
556
|
-
return typeof r == "function" ? r :
|
|
556
|
+
return typeof r == "function" ? r : Ee;
|
|
557
557
|
}
|
|
558
558
|
function ci(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
|
|
563
|
+
function Ot(e) {
|
|
564
564
|
return Object.keys(e).concat(ci(e));
|
|
565
565
|
}
|
|
566
566
|
function rr(e, t) {
|
|
@@ -575,52 +575,66 @@ function di(e, t) {
|
|
|
575
575
|
}
|
|
576
576
|
function mi(e, t, r) {
|
|
577
577
|
var i = {};
|
|
578
|
-
return r.isMergeableObject(e) &&
|
|
579
|
-
i[n] =
|
|
580
|
-
}),
|
|
581
|
-
di(e, n) || (rr(e, n) && r.isMergeableObject(t[n]) ? i[n] = fi(n, r)(e[n], t[n], r) : i[n] =
|
|
578
|
+
return r.isMergeableObject(e) && Ot(e).forEach(function(n) {
|
|
579
|
+
i[n] = Me(e[n], r);
|
|
580
|
+
}), Ot(t).forEach(function(n) {
|
|
581
|
+
di(e, n) || (rr(e, n) && r.isMergeableObject(t[n]) ? i[n] = fi(n, r)(e[n], t[n], r) : i[n] = Me(t[n], r));
|
|
582
582
|
}), i;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || hi, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified =
|
|
584
|
+
function Ee(e, t, r) {
|
|
585
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hi, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified = Me;
|
|
586
586
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
587
|
-
return s ? i ? r.arrayMerge(e, t, r) : mi(e, t, r) :
|
|
587
|
+
return s ? i ? r.arrayMerge(e, t, r) : mi(e, t, r) : Me(t, r);
|
|
588
588
|
}
|
|
589
|
-
|
|
589
|
+
Ee.all = function(t, r) {
|
|
590
590
|
if (!Array.isArray(t))
|
|
591
591
|
throw new Error("first argument should be an array");
|
|
592
592
|
return t.reduce(function(i, n) {
|
|
593
|
-
return
|
|
593
|
+
return Ee(i, n, r);
|
|
594
594
|
}, {});
|
|
595
595
|
};
|
|
596
|
-
var pi =
|
|
597
|
-
const vi = /* @__PURE__ */
|
|
598
|
-
|
|
599
|
-
|
|
596
|
+
var pi = Ee, gi = pi;
|
|
597
|
+
const vi = /* @__PURE__ */ yt(gi);
|
|
598
|
+
/*! *****************************************************************************
|
|
599
|
+
Copyright (c) Microsoft Corporation.
|
|
600
|
+
|
|
601
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
602
|
+
purpose with or without fee is hereby granted.
|
|
603
|
+
|
|
604
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
605
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
606
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
607
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
608
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
609
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
610
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
611
|
+
***************************************************************************** */
|
|
612
|
+
var ut = function(e, t) {
|
|
613
|
+
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
600
614
|
r.__proto__ = i;
|
|
601
615
|
} || function(r, i) {
|
|
602
616
|
for (var n in i)
|
|
603
617
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
604
|
-
},
|
|
618
|
+
}, ut(e, t);
|
|
605
619
|
};
|
|
606
|
-
function
|
|
620
|
+
function qe(e, t) {
|
|
607
621
|
if (typeof t != "function" && t !== null)
|
|
608
622
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
609
|
-
|
|
623
|
+
ut(e, t);
|
|
610
624
|
function r() {
|
|
611
625
|
this.constructor = e;
|
|
612
626
|
}
|
|
613
627
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
614
628
|
}
|
|
615
|
-
var
|
|
616
|
-
return
|
|
629
|
+
var $ = function() {
|
|
630
|
+
return $ = Object.assign || function(t) {
|
|
617
631
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
618
632
|
r = arguments[i];
|
|
619
633
|
for (var s in r)
|
|
620
634
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
621
635
|
}
|
|
622
636
|
return t;
|
|
623
|
-
},
|
|
637
|
+
}, $.apply(this, arguments);
|
|
624
638
|
};
|
|
625
639
|
function bi(e, t) {
|
|
626
640
|
var r = {};
|
|
@@ -631,14 +645,14 @@ function bi(e, t) {
|
|
|
631
645
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
632
646
|
return r;
|
|
633
647
|
}
|
|
634
|
-
function
|
|
635
|
-
if (
|
|
648
|
+
function Ke(e, t, r) {
|
|
649
|
+
if (arguments.length === 2)
|
|
636
650
|
for (var i = 0, n = t.length, s; i < n; i++)
|
|
637
651
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
638
|
-
return e.concat(s ||
|
|
652
|
+
return e.concat(s || t);
|
|
639
653
|
}
|
|
640
|
-
function
|
|
641
|
-
var r = t && t.cache ? t.cache :
|
|
654
|
+
function et(e, t) {
|
|
655
|
+
var r = t && t.cache ? t.cache : Si, i = t && t.serializer ? t.serializer : wi, n = t && t.strategy ? t.strategy : xi;
|
|
642
656
|
return n(e, {
|
|
643
657
|
cache: r,
|
|
644
658
|
serializer: i
|
|
@@ -647,98 +661,90 @@ function rt(e, t) {
|
|
|
647
661
|
function yi(e) {
|
|
648
662
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
649
663
|
}
|
|
650
|
-
function
|
|
664
|
+
function ir(e, t, r, i) {
|
|
651
665
|
var n = yi(i) ? i : r(i), s = t.get(n);
|
|
652
666
|
return typeof s > "u" && (s = e.call(this, i), t.set(n, s)), s;
|
|
653
667
|
}
|
|
654
|
-
function
|
|
668
|
+
function nr(e, t, r) {
|
|
655
669
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
656
670
|
return typeof s > "u" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
657
671
|
}
|
|
658
|
-
function
|
|
672
|
+
function xt(e, t, r, i, n) {
|
|
659
673
|
return r.bind(t, e, i, n);
|
|
660
674
|
}
|
|
661
675
|
function xi(e, t) {
|
|
662
|
-
var r = e.length === 1 ?
|
|
663
|
-
return
|
|
676
|
+
var r = e.length === 1 ? ir : nr;
|
|
677
|
+
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
678
|
+
}
|
|
679
|
+
function _i(e, t) {
|
|
680
|
+
return xt(e, this, nr, t.cache.create(), t.serializer);
|
|
664
681
|
}
|
|
665
682
|
function Ei(e, t) {
|
|
666
|
-
return
|
|
683
|
+
return xt(e, this, ir, t.cache.create(), t.serializer);
|
|
667
684
|
}
|
|
668
685
|
var wi = function() {
|
|
669
686
|
return JSON.stringify(arguments);
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}()
|
|
682
|
-
), Ti = {
|
|
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 Si = {
|
|
683
698
|
create: function() {
|
|
684
|
-
return new
|
|
699
|
+
return new _t();
|
|
685
700
|
}
|
|
686
|
-
},
|
|
687
|
-
variadic:
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
691
|
-
r = arguments[i];
|
|
692
|
-
for (var s in r)
|
|
693
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
694
|
-
}
|
|
695
|
-
return t;
|
|
696
|
-
}, Xe.apply(this, arguments);
|
|
697
|
-
};
|
|
698
|
-
var H;
|
|
701
|
+
}, tt = {
|
|
702
|
+
variadic: _i,
|
|
703
|
+
monadic: Ei
|
|
704
|
+
}, H;
|
|
699
705
|
(function(e) {
|
|
700
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";
|
|
701
707
|
})(H || (H = {}));
|
|
702
|
-
var
|
|
708
|
+
var D;
|
|
703
709
|
(function(e) {
|
|
704
710
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
705
|
-
})(
|
|
706
|
-
var
|
|
711
|
+
})(D || (D = {}));
|
|
712
|
+
var we;
|
|
707
713
|
(function(e) {
|
|
708
714
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
709
|
-
})(
|
|
715
|
+
})(we || (we = {}));
|
|
710
716
|
function $t(e) {
|
|
711
|
-
return e.type ===
|
|
717
|
+
return e.type === D.literal;
|
|
712
718
|
}
|
|
713
|
-
function
|
|
714
|
-
return e.type ===
|
|
719
|
+
function Ti(e) {
|
|
720
|
+
return e.type === D.argument;
|
|
715
721
|
}
|
|
716
722
|
function sr(e) {
|
|
717
|
-
return e.type ===
|
|
723
|
+
return e.type === D.number;
|
|
718
724
|
}
|
|
719
725
|
function or(e) {
|
|
720
|
-
return e.type ===
|
|
726
|
+
return e.type === D.date;
|
|
721
727
|
}
|
|
722
728
|
function ar(e) {
|
|
723
|
-
return e.type ===
|
|
729
|
+
return e.type === D.time;
|
|
724
730
|
}
|
|
725
731
|
function ur(e) {
|
|
726
|
-
return e.type ===
|
|
732
|
+
return e.type === D.select;
|
|
727
733
|
}
|
|
728
734
|
function lr(e) {
|
|
729
|
-
return e.type ===
|
|
735
|
+
return e.type === D.plural;
|
|
730
736
|
}
|
|
731
|
-
function
|
|
732
|
-
return e.type ===
|
|
737
|
+
function Hi(e) {
|
|
738
|
+
return e.type === D.pound;
|
|
733
739
|
}
|
|
734
740
|
function hr(e) {
|
|
735
|
-
return e.type ===
|
|
741
|
+
return e.type === D.tag;
|
|
736
742
|
}
|
|
737
743
|
function fr(e) {
|
|
738
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
744
|
+
return !!(e && typeof e == "object" && e.type === we.number);
|
|
739
745
|
}
|
|
740
|
-
function
|
|
741
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
746
|
+
function lt(e) {
|
|
747
|
+
return !!(e && typeof e == "object" && e.type === we.dateTime);
|
|
742
748
|
}
|
|
743
749
|
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pi = /(?:[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;
|
|
744
750
|
function Ai(e) {
|
|
@@ -832,21 +838,11 @@ function Ai(e) {
|
|
|
832
838
|
return "";
|
|
833
839
|
}), t;
|
|
834
840
|
}
|
|
835
|
-
var
|
|
836
|
-
|
|
837
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
838
|
-
r = arguments[i];
|
|
839
|
-
for (var s in r)
|
|
840
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
841
|
-
}
|
|
842
|
-
return t;
|
|
843
|
-
}, L.apply(this, arguments);
|
|
844
|
-
};
|
|
845
|
-
var $i = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
846
|
-
function Bi(e) {
|
|
841
|
+
var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
842
|
+
function $i(e) {
|
|
847
843
|
if (e.length === 0)
|
|
848
844
|
throw new Error("Number skeleton cannot be empty");
|
|
849
|
-
for (var t = e.split(
|
|
845
|
+
for (var t = e.split(Oi).filter(function(p) {
|
|
850
846
|
return p.length > 0;
|
|
851
847
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
852
848
|
var s = n[i], l = s.split("/");
|
|
@@ -861,10 +857,10 @@ function Bi(e) {
|
|
|
861
857
|
}
|
|
862
858
|
return r;
|
|
863
859
|
}
|
|
864
|
-
function
|
|
860
|
+
function Bi(e) {
|
|
865
861
|
return e.replace(/^(.*?)-/, "");
|
|
866
862
|
}
|
|
867
|
-
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
863
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, Mi = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
868
864
|
function Mt(e) {
|
|
869
865
|
var t = {};
|
|
870
866
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, i, n) {
|
|
@@ -911,7 +907,7 @@ function pr(e) {
|
|
|
911
907
|
};
|
|
912
908
|
}
|
|
913
909
|
}
|
|
914
|
-
function
|
|
910
|
+
function Ci(e) {
|
|
915
911
|
var t;
|
|
916
912
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
917
913
|
notation: "engineering"
|
|
@@ -929,7 +925,7 @@ function Ct(e) {
|
|
|
929
925
|
var t = {}, r = pr(e);
|
|
930
926
|
return r || t;
|
|
931
927
|
}
|
|
932
|
-
function
|
|
928
|
+
function Di(e) {
|
|
933
929
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
934
930
|
var n = i[r];
|
|
935
931
|
switch (n.stem) {
|
|
@@ -953,7 +949,7 @@ function Li(e) {
|
|
|
953
949
|
continue;
|
|
954
950
|
case "measure-unit":
|
|
955
951
|
case "unit":
|
|
956
|
-
t.style = "unit", t.unit =
|
|
952
|
+
t.style = "unit", t.unit = Bi(n.options[0]);
|
|
957
953
|
continue;
|
|
958
954
|
case "compact-short":
|
|
959
955
|
case "K":
|
|
@@ -964,13 +960,13 @@ function Li(e) {
|
|
|
964
960
|
t.notation = "compact", t.compactDisplay = "long";
|
|
965
961
|
continue;
|
|
966
962
|
case "scientific":
|
|
967
|
-
t =
|
|
968
|
-
return
|
|
963
|
+
t = $($($({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
964
|
+
return $($({}, o), Ct(u));
|
|
969
965
|
}, {}));
|
|
970
966
|
continue;
|
|
971
967
|
case "engineering":
|
|
972
|
-
t =
|
|
973
|
-
return
|
|
968
|
+
t = $($($({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
969
|
+
return $($({}, o), Ct(u));
|
|
974
970
|
}, {}));
|
|
975
971
|
continue;
|
|
976
972
|
case "notation-simple":
|
|
@@ -1015,13 +1011,13 @@ function Li(e) {
|
|
|
1015
1011
|
case "integer-width":
|
|
1016
1012
|
if (n.options.length > 1)
|
|
1017
1013
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1018
|
-
n.options[0].replace(
|
|
1014
|
+
n.options[0].replace(Mi, function(o, u, h, c, p, x) {
|
|
1019
1015
|
if (u)
|
|
1020
1016
|
t.minimumIntegerDigits = h.length;
|
|
1021
1017
|
else {
|
|
1022
1018
|
if (c && p)
|
|
1023
1019
|
throw new Error("We currently do not support maximum integer digits");
|
|
1024
|
-
if (
|
|
1020
|
+
if (x)
|
|
1025
1021
|
throw new Error("We currently do not support exact integer digits");
|
|
1026
1022
|
}
|
|
1027
1023
|
return "";
|
|
@@ -1035,25 +1031,25 @@ function Li(e) {
|
|
|
1035
1031
|
if (Bt.test(n.stem)) {
|
|
1036
1032
|
if (n.options.length > 1)
|
|
1037
1033
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1038
|
-
n.stem.replace(Bt, function(o, u, h, c, p,
|
|
1039
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p &&
|
|
1034
|
+
n.stem.replace(Bt, function(o, u, h, c, p, x) {
|
|
1035
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1040
1036
|
});
|
|
1041
1037
|
var s = n.options[0];
|
|
1042
|
-
s === "w" ? t =
|
|
1038
|
+
s === "w" ? t = $($({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = $($({}, t), Mt(s)));
|
|
1043
1039
|
continue;
|
|
1044
1040
|
}
|
|
1045
1041
|
if (dr.test(n.stem)) {
|
|
1046
|
-
t =
|
|
1042
|
+
t = $($({}, t), Mt(n.stem));
|
|
1047
1043
|
continue;
|
|
1048
1044
|
}
|
|
1049
1045
|
var l = pr(n.stem);
|
|
1050
|
-
l && (t =
|
|
1051
|
-
var a =
|
|
1052
|
-
a && (t =
|
|
1046
|
+
l && (t = $($({}, t), l));
|
|
1047
|
+
var a = Ci(n.stem);
|
|
1048
|
+
a && (t = $($({}, t), a));
|
|
1053
1049
|
}
|
|
1054
1050
|
return t;
|
|
1055
1051
|
}
|
|
1056
|
-
var
|
|
1052
|
+
var Fe = {
|
|
1057
1053
|
"001": [
|
|
1058
1054
|
"H",
|
|
1059
1055
|
"h"
|
|
@@ -2468,13 +2464,13 @@ var Ve = {
|
|
|
2468
2464
|
"h"
|
|
2469
2465
|
]
|
|
2470
2466
|
};
|
|
2471
|
-
function
|
|
2467
|
+
function Li(e, t) {
|
|
2472
2468
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2473
2469
|
var n = e.charAt(i);
|
|
2474
2470
|
if (n === "j") {
|
|
2475
2471
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2476
2472
|
s++, i++;
|
|
2477
|
-
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 = Ii(t);
|
|
2478
2474
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2479
2475
|
r += o;
|
|
2480
2476
|
for (; l-- > 0; )
|
|
@@ -2484,7 +2480,7 @@ function Ii(e, t) {
|
|
|
2484
2480
|
}
|
|
2485
2481
|
return r;
|
|
2486
2482
|
}
|
|
2487
|
-
function
|
|
2483
|
+
function Ii(e) {
|
|
2488
2484
|
var t = e.hourCycle;
|
|
2489
2485
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2490
2486
|
e.hourCycles && // @ts-ignore
|
|
@@ -2503,23 +2499,23 @@ function Ni(e) {
|
|
|
2503
2499
|
}
|
|
2504
2500
|
var r = e.language, i;
|
|
2505
2501
|
r !== "root" && (i = e.maximize().region);
|
|
2506
|
-
var n =
|
|
2502
|
+
var n = Fe[i || ""] || Fe[r || ""] || Fe["".concat(r, "-001")] || Fe["001"];
|
|
2507
2503
|
return n[0];
|
|
2508
2504
|
}
|
|
2509
|
-
var
|
|
2510
|
-
function
|
|
2505
|
+
var rt, Ni = new RegExp("^".concat(cr.source, "*")), Ri = new RegExp("".concat(cr.source, "*$"));
|
|
2506
|
+
function A(e, t) {
|
|
2511
2507
|
return { start: e, end: t };
|
|
2512
2508
|
}
|
|
2513
|
-
var
|
|
2509
|
+
var ki = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String.fromCodePoint, Fi = !!Object.fromEntries, Vi = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, ji = !!String.prototype.trimEnd, zi = !!Number.isSafeInteger, Xi = zi ? Number.isSafeInteger : function(e) {
|
|
2514
2510
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2515
|
-
},
|
|
2511
|
+
}, ht = !0;
|
|
2516
2512
|
try {
|
|
2517
|
-
var
|
|
2518
|
-
|
|
2513
|
+
var Wi = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2514
|
+
ht = ((rt = Wi.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2519
2515
|
} catch {
|
|
2520
|
-
|
|
2516
|
+
ht = !1;
|
|
2521
2517
|
}
|
|
2522
|
-
var Dt =
|
|
2518
|
+
var Dt = ki ? (
|
|
2523
2519
|
// Native
|
|
2524
2520
|
function(t, r, i) {
|
|
2525
2521
|
return t.startsWith(r, i);
|
|
@@ -2529,7 +2525,7 @@ var Dt = Ui ? (
|
|
|
2529
2525
|
function(t, r, i) {
|
|
2530
2526
|
return t.slice(i, i + r.length) === r;
|
|
2531
2527
|
}
|
|
2532
|
-
),
|
|
2528
|
+
), ft = Ui ? String.fromCodePoint : (
|
|
2533
2529
|
// IE11
|
|
2534
2530
|
function() {
|
|
2535
2531
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2543,7 +2539,7 @@ var Dt = Ui ? (
|
|
|
2543
2539
|
}
|
|
2544
2540
|
), Lt = (
|
|
2545
2541
|
// native
|
|
2546
|
-
|
|
2542
|
+
Fi ? Object.fromEntries : (
|
|
2547
2543
|
// Ponyfill
|
|
2548
2544
|
function(t) {
|
|
2549
2545
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2553,7 +2549,7 @@ var Dt = Ui ? (
|
|
|
2553
2549
|
return r;
|
|
2554
2550
|
}
|
|
2555
2551
|
)
|
|
2556
|
-
), gr =
|
|
2552
|
+
), gr = Vi ? (
|
|
2557
2553
|
// Native
|
|
2558
2554
|
function(t, r) {
|
|
2559
2555
|
return t.codePointAt(r);
|
|
@@ -2567,7 +2563,7 @@ var Dt = Ui ? (
|
|
|
2567
2563
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2568
2564
|
}
|
|
2569
2565
|
}
|
|
2570
|
-
),
|
|
2566
|
+
), qi = Gi ? (
|
|
2571
2567
|
// Native
|
|
2572
2568
|
function(t) {
|
|
2573
2569
|
return t.trimStart();
|
|
@@ -2575,9 +2571,9 @@ var Dt = Ui ? (
|
|
|
2575
2571
|
) : (
|
|
2576
2572
|
// Ponyfill
|
|
2577
2573
|
function(t) {
|
|
2578
|
-
return t.replace(
|
|
2574
|
+
return t.replace(Ni, "");
|
|
2579
2575
|
}
|
|
2580
|
-
),
|
|
2576
|
+
), Yi = ji ? (
|
|
2581
2577
|
// Native
|
|
2582
2578
|
function(t) {
|
|
2583
2579
|
return t.trimEnd();
|
|
@@ -2585,32 +2581,32 @@ var Dt = Ui ? (
|
|
|
2585
2581
|
) : (
|
|
2586
2582
|
// Ponyfill
|
|
2587
2583
|
function(t) {
|
|
2588
|
-
return t.replace(
|
|
2584
|
+
return t.replace(Ri, "");
|
|
2589
2585
|
}
|
|
2590
2586
|
);
|
|
2591
2587
|
function vr(e, t) {
|
|
2592
2588
|
return new RegExp(e, t);
|
|
2593
2589
|
}
|
|
2594
|
-
var
|
|
2595
|
-
if (
|
|
2590
|
+
var ct;
|
|
2591
|
+
if (ht) {
|
|
2596
2592
|
var It = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2597
|
-
|
|
2593
|
+
ct = function(t, r) {
|
|
2598
2594
|
var i;
|
|
2599
2595
|
It.lastIndex = r;
|
|
2600
2596
|
var n = It.exec(t);
|
|
2601
2597
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2602
2598
|
};
|
|
2603
2599
|
} else
|
|
2604
|
-
|
|
2600
|
+
ct = function(t, r) {
|
|
2605
2601
|
for (var i = []; ; ) {
|
|
2606
2602
|
var n = gr(t, r);
|
|
2607
|
-
if (n === void 0 || br(n) ||
|
|
2603
|
+
if (n === void 0 || br(n) || Ki(n))
|
|
2608
2604
|
break;
|
|
2609
2605
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2610
2606
|
}
|
|
2611
|
-
return
|
|
2607
|
+
return ft.apply(void 0, i);
|
|
2612
2608
|
};
|
|
2613
|
-
var
|
|
2609
|
+
var Zi = (
|
|
2614
2610
|
/** @class */
|
|
2615
2611
|
function() {
|
|
2616
2612
|
function e(t, r) {
|
|
@@ -2634,14 +2630,14 @@ var Ji = (
|
|
|
2634
2630
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2635
2631
|
var a = this.clonePosition();
|
|
2636
2632
|
this.bump(), n.push({
|
|
2637
|
-
type:
|
|
2638
|
-
location:
|
|
2633
|
+
type: D.pound,
|
|
2634
|
+
location: A(a, this.clonePosition())
|
|
2639
2635
|
});
|
|
2640
2636
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2641
2637
|
if (i)
|
|
2642
2638
|
break;
|
|
2643
|
-
return this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2644
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2639
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
2640
|
+
} else if (s === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
2645
2641
|
var l = this.parseTag(t, r);
|
|
2646
2642
|
if (l.err)
|
|
2647
2643
|
return l;
|
|
@@ -2662,9 +2658,9 @@ var Ji = (
|
|
|
2662
2658
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2663
2659
|
return {
|
|
2664
2660
|
val: {
|
|
2665
|
-
type:
|
|
2661
|
+
type: D.literal,
|
|
2666
2662
|
value: "<".concat(n, "/>"),
|
|
2667
|
-
location:
|
|
2663
|
+
location: A(i, this.clonePosition())
|
|
2668
2664
|
},
|
|
2669
2665
|
err: null
|
|
2670
2666
|
};
|
|
@@ -2674,25 +2670,25 @@ var Ji = (
|
|
|
2674
2670
|
return s;
|
|
2675
2671
|
var l = s.val, a = this.clonePosition();
|
|
2676
2672
|
if (this.bumpIf("</")) {
|
|
2677
|
-
if (this.isEOF() || !
|
|
2678
|
-
return this.error(H.INVALID_TAG,
|
|
2673
|
+
if (this.isEOF() || !dt(this.char()))
|
|
2674
|
+
return this.error(H.INVALID_TAG, A(a, this.clonePosition()));
|
|
2679
2675
|
var o = this.clonePosition(), u = this.parseTagName();
|
|
2680
|
-
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2676
|
+
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG, A(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2681
2677
|
val: {
|
|
2682
|
-
type:
|
|
2678
|
+
type: D.tag,
|
|
2683
2679
|
value: n,
|
|
2684
2680
|
children: l,
|
|
2685
|
-
location:
|
|
2681
|
+
location: A(i, this.clonePosition())
|
|
2686
2682
|
},
|
|
2687
2683
|
err: null
|
|
2688
|
-
} : this.error(H.INVALID_TAG,
|
|
2684
|
+
} : this.error(H.INVALID_TAG, A(a, this.clonePosition())));
|
|
2689
2685
|
} else
|
|
2690
|
-
return this.error(H.UNCLOSED_TAG,
|
|
2686
|
+
return this.error(H.UNCLOSED_TAG, A(i, this.clonePosition()));
|
|
2691
2687
|
} else
|
|
2692
|
-
return this.error(H.INVALID_TAG,
|
|
2688
|
+
return this.error(H.INVALID_TAG, A(i, this.clonePosition()));
|
|
2693
2689
|
}, e.prototype.parseTagName = function() {
|
|
2694
2690
|
var t = this.offset();
|
|
2695
|
-
for (this.bump(); !this.isEOF() &&
|
|
2691
|
+
for (this.bump(); !this.isEOF() && Qi(this.char()); )
|
|
2696
2692
|
this.bump();
|
|
2697
2693
|
return this.message.slice(t, this.offset());
|
|
2698
2694
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2714,14 +2710,14 @@ var Ji = (
|
|
|
2714
2710
|
}
|
|
2715
2711
|
break;
|
|
2716
2712
|
}
|
|
2717
|
-
var o =
|
|
2713
|
+
var o = A(i, this.clonePosition());
|
|
2718
2714
|
return {
|
|
2719
|
-
val: { type:
|
|
2715
|
+
val: { type: D.literal, value: n, location: o },
|
|
2720
2716
|
err: null
|
|
2721
2717
|
};
|
|
2722
2718
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2723
2719
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2724
|
-
!
|
|
2720
|
+
!Ji(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2725
2721
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2726
2722
|
if (this.isEOF() || this.char() !== 39)
|
|
2727
2723
|
return null;
|
|
@@ -2755,49 +2751,49 @@ var Ji = (
|
|
|
2755
2751
|
r.push(i);
|
|
2756
2752
|
this.bump();
|
|
2757
2753
|
}
|
|
2758
|
-
return
|
|
2754
|
+
return ft.apply(void 0, r);
|
|
2759
2755
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2760
2756
|
if (this.isEOF())
|
|
2761
2757
|
return null;
|
|
2762
2758
|
var i = this.char();
|
|
2763
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2759
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), ft(i));
|
|
2764
2760
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2765
2761
|
var i = this.clonePosition();
|
|
2766
2762
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2767
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2763
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, A(i, this.clonePosition()));
|
|
2768
2764
|
if (this.char() === 125)
|
|
2769
|
-
return this.bump(), this.error(H.EMPTY_ARGUMENT,
|
|
2765
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, A(i, this.clonePosition()));
|
|
2770
2766
|
var n = this.parseIdentifierIfPossible().value;
|
|
2771
2767
|
if (!n)
|
|
2772
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2768
|
+
return this.error(H.MALFORMED_ARGUMENT, A(i, this.clonePosition()));
|
|
2773
2769
|
if (this.bumpSpace(), this.isEOF())
|
|
2774
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2770
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, A(i, this.clonePosition()));
|
|
2775
2771
|
switch (this.char()) {
|
|
2776
2772
|
case 125:
|
|
2777
2773
|
return this.bump(), {
|
|
2778
2774
|
val: {
|
|
2779
|
-
type:
|
|
2775
|
+
type: D.argument,
|
|
2780
2776
|
// value does not include the opening and closing braces.
|
|
2781
2777
|
value: n,
|
|
2782
|
-
location:
|
|
2778
|
+
location: A(i, this.clonePosition())
|
|
2783
2779
|
},
|
|
2784
2780
|
err: null
|
|
2785
2781
|
};
|
|
2786
2782
|
case 44:
|
|
2787
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2783
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, A(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2788
2784
|
default:
|
|
2789
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2785
|
+
return this.error(H.MALFORMED_ARGUMENT, A(i, this.clonePosition()));
|
|
2790
2786
|
}
|
|
2791
2787
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2792
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2788
|
+
var t = this.clonePosition(), r = this.offset(), i = ct(this.message, r), n = r + i.length;
|
|
2793
2789
|
this.bumpTo(n);
|
|
2794
|
-
var s = this.clonePosition(), l =
|
|
2790
|
+
var s = this.clonePosition(), l = A(t, s);
|
|
2795
2791
|
return { value: i, location: l };
|
|
2796
2792
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2797
2793
|
var s, l = this.clonePosition(), a = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2798
2794
|
switch (a) {
|
|
2799
2795
|
case "":
|
|
2800
|
-
return this.error(H.EXPECT_ARGUMENT_TYPE,
|
|
2796
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, A(l, o));
|
|
2801
2797
|
case "number":
|
|
2802
2798
|
case "date":
|
|
2803
2799
|
case "time": {
|
|
@@ -2808,35 +2804,35 @@ var Ji = (
|
|
|
2808
2804
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2809
2805
|
if (c.err)
|
|
2810
2806
|
return c;
|
|
2811
|
-
var p =
|
|
2807
|
+
var p = Yi(c.val);
|
|
2812
2808
|
if (p.length === 0)
|
|
2813
|
-
return this.error(H.EXPECT_ARGUMENT_STYLE,
|
|
2814
|
-
var
|
|
2815
|
-
u = { style: p, styleLocation:
|
|
2809
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
2810
|
+
var x = A(h, this.clonePosition());
|
|
2811
|
+
u = { style: p, styleLocation: x };
|
|
2816
2812
|
}
|
|
2817
2813
|
var T = this.tryParseArgumentClose(n);
|
|
2818
2814
|
if (T.err)
|
|
2819
2815
|
return T;
|
|
2820
|
-
var v =
|
|
2816
|
+
var v = A(n, this.clonePosition());
|
|
2821
2817
|
if (u && Dt(u?.style, "::", 0)) {
|
|
2822
|
-
var
|
|
2818
|
+
var C = qi(u.style.slice(2));
|
|
2823
2819
|
if (a === "number") {
|
|
2824
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2820
|
+
var c = this.parseNumberSkeletonFromString(C, u.styleLocation);
|
|
2825
2821
|
return c.err ? c : {
|
|
2826
|
-
val: { type:
|
|
2822
|
+
val: { type: D.number, value: i, location: v, style: c.val },
|
|
2827
2823
|
err: null
|
|
2828
2824
|
};
|
|
2829
2825
|
} else {
|
|
2830
|
-
if (
|
|
2826
|
+
if (C.length === 0)
|
|
2831
2827
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, v);
|
|
2832
|
-
var U =
|
|
2833
|
-
this.locale && (U =
|
|
2828
|
+
var U = C;
|
|
2829
|
+
this.locale && (U = Li(C, this.locale));
|
|
2834
2830
|
var p = {
|
|
2835
|
-
type:
|
|
2831
|
+
type: we.dateTime,
|
|
2836
2832
|
pattern: U,
|
|
2837
2833
|
location: u.styleLocation,
|
|
2838
2834
|
parsedOptions: this.shouldParseSkeletons ? Ai(U) : {}
|
|
2839
|
-
}, R = a === "date" ?
|
|
2835
|
+
}, R = a === "date" ? D.date : D.time;
|
|
2840
2836
|
return {
|
|
2841
2837
|
val: { type: R, value: i, location: v, style: p },
|
|
2842
2838
|
err: null
|
|
@@ -2845,7 +2841,7 @@ var Ji = (
|
|
|
2845
2841
|
}
|
|
2846
2842
|
return {
|
|
2847
2843
|
val: {
|
|
2848
|
-
type: a === "number" ?
|
|
2844
|
+
type: a === "number" ? D.number : a === "date" ? D.date : D.time,
|
|
2849
2845
|
value: i,
|
|
2850
2846
|
location: v,
|
|
2851
2847
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2856,14 +2852,14 @@ var Ji = (
|
|
|
2856
2852
|
case "plural":
|
|
2857
2853
|
case "selectordinal":
|
|
2858
2854
|
case "select": {
|
|
2859
|
-
var
|
|
2855
|
+
var B = this.clonePosition();
|
|
2860
2856
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2861
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2857
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, A(B, $({}, B)));
|
|
2862
2858
|
this.bumpSpace();
|
|
2863
2859
|
var j = this.parseIdentifierIfPossible(), N = 0;
|
|
2864
2860
|
if (a !== "select" && j.value === "offset") {
|
|
2865
2861
|
if (!this.bumpIf(":"))
|
|
2866
|
-
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2862
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
2867
2863
|
this.bumpSpace();
|
|
2868
2864
|
var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2869
2865
|
if (c.err)
|
|
@@ -2876,10 +2872,10 @@ var Ji = (
|
|
|
2876
2872
|
var T = this.tryParseArgumentClose(n);
|
|
2877
2873
|
if (T.err)
|
|
2878
2874
|
return T;
|
|
2879
|
-
var X =
|
|
2875
|
+
var X = A(n, this.clonePosition());
|
|
2880
2876
|
return a === "select" ? {
|
|
2881
2877
|
val: {
|
|
2882
|
-
type:
|
|
2878
|
+
type: D.select,
|
|
2883
2879
|
value: i,
|
|
2884
2880
|
options: Lt(k.val),
|
|
2885
2881
|
location: X
|
|
@@ -2887,7 +2883,7 @@ var Ji = (
|
|
|
2887
2883
|
err: null
|
|
2888
2884
|
} : {
|
|
2889
2885
|
val: {
|
|
2890
|
-
type:
|
|
2886
|
+
type: D.plural,
|
|
2891
2887
|
value: i,
|
|
2892
2888
|
options: Lt(k.val),
|
|
2893
2889
|
offset: N,
|
|
@@ -2898,10 +2894,10 @@ var Ji = (
|
|
|
2898
2894
|
};
|
|
2899
2895
|
}
|
|
2900
2896
|
default:
|
|
2901
|
-
return this.error(H.INVALID_ARGUMENT_TYPE,
|
|
2897
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, A(l, o));
|
|
2902
2898
|
}
|
|
2903
2899
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2904
|
-
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2900
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2905
2901
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2906
2902
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2907
2903
|
var i = this.char();
|
|
@@ -2910,7 +2906,7 @@ var Ji = (
|
|
|
2910
2906
|
this.bump();
|
|
2911
2907
|
var n = this.clonePosition();
|
|
2912
2908
|
if (!this.bumpUntil("'"))
|
|
2913
|
-
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2909
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(n, this.clonePosition()));
|
|
2914
2910
|
this.bump();
|
|
2915
2911
|
break;
|
|
2916
2912
|
}
|
|
@@ -2940,16 +2936,16 @@ var Ji = (
|
|
|
2940
2936
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2941
2937
|
var i = [];
|
|
2942
2938
|
try {
|
|
2943
|
-
i =
|
|
2939
|
+
i = $i(t);
|
|
2944
2940
|
} catch {
|
|
2945
2941
|
return this.error(H.INVALID_NUMBER_SKELETON, r);
|
|
2946
2942
|
}
|
|
2947
2943
|
return {
|
|
2948
2944
|
val: {
|
|
2949
|
-
type:
|
|
2945
|
+
type: we.number,
|
|
2950
2946
|
tokens: i,
|
|
2951
2947
|
location: r,
|
|
2952
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2948
|
+
parsedOptions: this.shouldParseSkeletons ? Di(i) : {}
|
|
2953
2949
|
},
|
|
2954
2950
|
err: null
|
|
2955
2951
|
};
|
|
@@ -2961,31 +2957,31 @@ var Ji = (
|
|
|
2961
2957
|
var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2962
2958
|
if (p.err)
|
|
2963
2959
|
return p;
|
|
2964
|
-
h =
|
|
2960
|
+
h = A(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2965
2961
|
} else
|
|
2966
2962
|
break;
|
|
2967
2963
|
}
|
|
2968
2964
|
if (o.has(u))
|
|
2969
2965
|
return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2970
2966
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2971
|
-
var
|
|
2967
|
+
var x = this.clonePosition();
|
|
2972
2968
|
if (!this.bumpIf("{"))
|
|
2973
|
-
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2969
|
+
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
2974
2970
|
var T = this.parseMessage(t + 1, r, i);
|
|
2975
2971
|
if (T.err)
|
|
2976
2972
|
return T;
|
|
2977
|
-
var v = this.tryParseArgumentClose(
|
|
2973
|
+
var v = this.tryParseArgumentClose(x);
|
|
2978
2974
|
if (v.err)
|
|
2979
2975
|
return v;
|
|
2980
2976
|
a.push([
|
|
2981
2977
|
u,
|
|
2982
2978
|
{
|
|
2983
2979
|
value: T.val,
|
|
2984
|
-
location:
|
|
2980
|
+
location: A(x, this.clonePosition())
|
|
2985
2981
|
}
|
|
2986
2982
|
]), o.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2987
2983
|
}
|
|
2988
|
-
return a.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2984
|
+
return a.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(H.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2989
2985
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2990
2986
|
var i = 1, n = this.clonePosition();
|
|
2991
2987
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -2996,8 +2992,8 @@ var Ji = (
|
|
|
2996
2992
|
else
|
|
2997
2993
|
break;
|
|
2998
2994
|
}
|
|
2999
|
-
var o =
|
|
3000
|
-
return s ? (l *= i,
|
|
2995
|
+
var o = A(n, this.clonePosition());
|
|
2996
|
+
return s ? (l *= i, Xi(l) ? { val: l, err: null } : this.error(r, o)) : this.error(t, o);
|
|
3001
2997
|
}, e.prototype.offset = function() {
|
|
3002
2998
|
return this.position.offset;
|
|
3003
2999
|
}, e.prototype.isEOF = function() {
|
|
@@ -3063,47 +3059,47 @@ var Ji = (
|
|
|
3063
3059
|
}, e;
|
|
3064
3060
|
}()
|
|
3065
3061
|
);
|
|
3066
|
-
function
|
|
3062
|
+
function dt(e) {
|
|
3067
3063
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3068
3064
|
}
|
|
3069
|
-
function
|
|
3070
|
-
return
|
|
3065
|
+
function Ji(e) {
|
|
3066
|
+
return dt(e) || e === 47;
|
|
3071
3067
|
}
|
|
3072
|
-
function
|
|
3068
|
+
function Qi(e) {
|
|
3073
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;
|
|
3074
3070
|
}
|
|
3075
3071
|
function br(e) {
|
|
3076
3072
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3077
3073
|
}
|
|
3078
|
-
function
|
|
3074
|
+
function Ki(e) {
|
|
3079
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;
|
|
3080
3076
|
}
|
|
3081
|
-
function
|
|
3077
|
+
function mt(e) {
|
|
3082
3078
|
e.forEach(function(t) {
|
|
3083
3079
|
if (delete t.location, ur(t) || lr(t))
|
|
3084
3080
|
for (var r in t.options)
|
|
3085
|
-
delete t.options[r].location,
|
|
3081
|
+
delete t.options[r].location, mt(t.options[r].value);
|
|
3086
3082
|
else
|
|
3087
|
-
sr(t) && fr(t.style) || (or(t) || ar(t)) &&
|
|
3083
|
+
sr(t) && fr(t.style) || (or(t) || ar(t)) && lt(t.style) ? delete t.style.location : hr(t) && mt(t.children);
|
|
3088
3084
|
});
|
|
3089
3085
|
}
|
|
3090
|
-
function
|
|
3091
|
-
t === void 0 && (t = {}), t =
|
|
3092
|
-
var r = new
|
|
3086
|
+
function en(e, t) {
|
|
3087
|
+
t === void 0 && (t = {}), t = $({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3088
|
+
var r = new Zi(e, t).parse();
|
|
3093
3089
|
if (r.err) {
|
|
3094
3090
|
var i = SyntaxError(H[r.err.kind]);
|
|
3095
3091
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3096
3092
|
}
|
|
3097
|
-
return t?.captureLocation ||
|
|
3093
|
+
return t?.captureLocation || mt(r.val), r.val;
|
|
3098
3094
|
}
|
|
3099
|
-
var
|
|
3095
|
+
var Se;
|
|
3100
3096
|
(function(e) {
|
|
3101
3097
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3102
|
-
})(
|
|
3103
|
-
var
|
|
3098
|
+
})(Se || (Se = {}));
|
|
3099
|
+
var Ye = (
|
|
3104
3100
|
/** @class */
|
|
3105
3101
|
function(e) {
|
|
3106
|
-
|
|
3102
|
+
qe(t, e);
|
|
3107
3103
|
function t(r, i, n) {
|
|
3108
3104
|
var s = e.call(this, r) || this;
|
|
3109
3105
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3115,44 +3111,44 @@ var Je = (
|
|
|
3115
3111
|
), Nt = (
|
|
3116
3112
|
/** @class */
|
|
3117
3113
|
function(e) {
|
|
3118
|
-
|
|
3114
|
+
qe(t, e);
|
|
3119
3115
|
function t(r, i, n, s) {
|
|
3120
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3116
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Se.INVALID_VALUE, s) || this;
|
|
3121
3117
|
}
|
|
3122
3118
|
return t;
|
|
3123
|
-
}(
|
|
3124
|
-
),
|
|
3119
|
+
}(Ye)
|
|
3120
|
+
), tn = (
|
|
3125
3121
|
/** @class */
|
|
3126
3122
|
function(e) {
|
|
3127
|
-
|
|
3123
|
+
qe(t, e);
|
|
3128
3124
|
function t(r, i, n) {
|
|
3129
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3125
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Se.INVALID_VALUE, n) || this;
|
|
3130
3126
|
}
|
|
3131
3127
|
return t;
|
|
3132
|
-
}(
|
|
3133
|
-
),
|
|
3128
|
+
}(Ye)
|
|
3129
|
+
), rn = (
|
|
3134
3130
|
/** @class */
|
|
3135
3131
|
function(e) {
|
|
3136
|
-
|
|
3132
|
+
qe(t, e);
|
|
3137
3133
|
function t(r, i) {
|
|
3138
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3134
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Se.MISSING_VALUE, i) || this;
|
|
3139
3135
|
}
|
|
3140
3136
|
return t;
|
|
3141
|
-
}(
|
|
3137
|
+
}(Ye)
|
|
3142
3138
|
), G;
|
|
3143
3139
|
(function(e) {
|
|
3144
3140
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3145
3141
|
})(G || (G = {}));
|
|
3146
|
-
function
|
|
3142
|
+
function nn(e) {
|
|
3147
3143
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3148
3144
|
var i = t[t.length - 1];
|
|
3149
3145
|
return !i || i.type !== G.literal || r.type !== G.literal ? t.push(r) : i.value += r.value, t;
|
|
3150
3146
|
}, []);
|
|
3151
3147
|
}
|
|
3152
|
-
function
|
|
3148
|
+
function sn(e) {
|
|
3153
3149
|
return typeof e == "function";
|
|
3154
3150
|
}
|
|
3155
|
-
function
|
|
3151
|
+
function Ge(e, t, r, i, n, s, l) {
|
|
3156
3152
|
if (e.length === 1 && $t(e[0]))
|
|
3157
3153
|
return [
|
|
3158
3154
|
{
|
|
@@ -3169,7 +3165,7 @@ function je(e, t, r, i, n, s, l) {
|
|
|
3169
3165
|
});
|
|
3170
3166
|
continue;
|
|
3171
3167
|
}
|
|
3172
|
-
if (
|
|
3168
|
+
if (Hi(h)) {
|
|
3173
3169
|
typeof s == "number" && a.push({
|
|
3174
3170
|
type: G.literal,
|
|
3175
3171
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3178,9 +3174,9 @@ function je(e, t, r, i, n, s, l) {
|
|
|
3178
3174
|
}
|
|
3179
3175
|
var c = h.value;
|
|
3180
3176
|
if (!(n && c in n))
|
|
3181
|
-
throw new
|
|
3177
|
+
throw new rn(c, l);
|
|
3182
3178
|
var p = n[c];
|
|
3183
|
-
if (
|
|
3179
|
+
if (Ti(h)) {
|
|
3184
3180
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3185
3181
|
type: typeof p == "string" ? G.literal : G.object,
|
|
3186
3182
|
value: p
|
|
@@ -3188,34 +3184,34 @@ function je(e, t, r, i, n, s, l) {
|
|
|
3188
3184
|
continue;
|
|
3189
3185
|
}
|
|
3190
3186
|
if (or(h)) {
|
|
3191
|
-
var
|
|
3187
|
+
var x = typeof h.style == "string" ? i.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3192
3188
|
a.push({
|
|
3193
3189
|
type: G.literal,
|
|
3194
|
-
value: r.getDateTimeFormat(t,
|
|
3190
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3195
3191
|
});
|
|
3196
3192
|
continue;
|
|
3197
3193
|
}
|
|
3198
3194
|
if (ar(h)) {
|
|
3199
|
-
var
|
|
3195
|
+
var x = typeof h.style == "string" ? i.time[h.style] : lt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3200
3196
|
a.push({
|
|
3201
3197
|
type: G.literal,
|
|
3202
|
-
value: r.getDateTimeFormat(t,
|
|
3198
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3203
3199
|
});
|
|
3204
3200
|
continue;
|
|
3205
3201
|
}
|
|
3206
3202
|
if (sr(h)) {
|
|
3207
|
-
var
|
|
3208
|
-
|
|
3203
|
+
var x = typeof h.style == "string" ? i.number[h.style] : fr(h.style) ? h.style.parsedOptions : void 0;
|
|
3204
|
+
x && x.scale && (p = p * (x.scale || 1)), a.push({
|
|
3209
3205
|
type: G.literal,
|
|
3210
|
-
value: r.getNumberFormat(t,
|
|
3206
|
+
value: r.getNumberFormat(t, x).format(p)
|
|
3211
3207
|
});
|
|
3212
3208
|
continue;
|
|
3213
3209
|
}
|
|
3214
3210
|
if (hr(h)) {
|
|
3215
|
-
var T = h.children, v = h.value,
|
|
3216
|
-
if (!
|
|
3217
|
-
throw new
|
|
3218
|
-
var U =
|
|
3211
|
+
var T = h.children, v = h.value, C = n[v];
|
|
3212
|
+
if (!sn(C))
|
|
3213
|
+
throw new tn(v, "function", l);
|
|
3214
|
+
var U = Ge(T, t, r, i, n, s), R = C(U.map(function(N) {
|
|
3219
3215
|
return N.value;
|
|
3220
3216
|
}));
|
|
3221
3217
|
Array.isArray(R) || (R = [R]), a.push.apply(a, R.map(function(N) {
|
|
@@ -3226,41 +3222,41 @@ function je(e, t, r, i, n, s, l) {
|
|
|
3226
3222
|
}));
|
|
3227
3223
|
}
|
|
3228
3224
|
if (ur(h)) {
|
|
3229
|
-
var
|
|
3230
|
-
if (
|
|
3225
|
+
var B = h.options[p] || h.options.other;
|
|
3226
|
+
if (!B)
|
|
3231
3227
|
throw new Nt(h.value, p, Object.keys(h.options), l);
|
|
3232
|
-
a.push.apply(a,
|
|
3228
|
+
a.push.apply(a, Ge(B.value, t, r, i, n));
|
|
3233
3229
|
continue;
|
|
3234
3230
|
}
|
|
3235
3231
|
if (lr(h)) {
|
|
3236
|
-
var
|
|
3237
|
-
if (
|
|
3232
|
+
var B = h.options["=".concat(p)];
|
|
3233
|
+
if (!B) {
|
|
3238
3234
|
if (!Intl.PluralRules)
|
|
3239
|
-
throw new
|
|
3235
|
+
throw new Ye(`Intl.PluralRules is not available in this environment.
|
|
3240
3236
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3241
|
-
`,
|
|
3237
|
+
`, Se.MISSING_INTL_API, l);
|
|
3242
3238
|
var j = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3243
|
-
|
|
3239
|
+
B = h.options[j] || h.options.other;
|
|
3244
3240
|
}
|
|
3245
|
-
if (
|
|
3241
|
+
if (!B)
|
|
3246
3242
|
throw new Nt(h.value, p, Object.keys(h.options), l);
|
|
3247
|
-
a.push.apply(a,
|
|
3243
|
+
a.push.apply(a, Ge(B.value, t, r, i, n, p - (h.offset || 0)));
|
|
3248
3244
|
continue;
|
|
3249
3245
|
}
|
|
3250
3246
|
}
|
|
3251
|
-
return
|
|
3247
|
+
return nn(a);
|
|
3252
3248
|
}
|
|
3253
|
-
function
|
|
3254
|
-
return t ?
|
|
3255
|
-
return r[i] =
|
|
3249
|
+
function on(e, t) {
|
|
3250
|
+
return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3251
|
+
return r[i] = $($({}, e[i]), t[i] || {}), r;
|
|
3256
3252
|
}, {})) : e;
|
|
3257
3253
|
}
|
|
3258
|
-
function
|
|
3254
|
+
function an(e, t) {
|
|
3259
3255
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3260
|
-
return r[i] =
|
|
3261
|
-
},
|
|
3256
|
+
return r[i] = on(e[i], t[i]), r;
|
|
3257
|
+
}, $({}, e)) : e;
|
|
3262
3258
|
}
|
|
3263
|
-
function
|
|
3259
|
+
function it(e) {
|
|
3264
3260
|
return {
|
|
3265
3261
|
create: function() {
|
|
3266
3262
|
return {
|
|
@@ -3274,35 +3270,35 @@ function st(e) {
|
|
|
3274
3270
|
}
|
|
3275
3271
|
};
|
|
3276
3272
|
}
|
|
3277
|
-
function
|
|
3273
|
+
function un(e) {
|
|
3278
3274
|
return e === void 0 && (e = {
|
|
3279
3275
|
number: {},
|
|
3280
3276
|
dateTime: {},
|
|
3281
3277
|
pluralRules: {}
|
|
3282
3278
|
}), {
|
|
3283
|
-
getNumberFormat:
|
|
3279
|
+
getNumberFormat: et(function() {
|
|
3284
3280
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3285
3281
|
r[i] = arguments[i];
|
|
3286
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3282
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ke([void 0], r, !1)))();
|
|
3287
3283
|
}, {
|
|
3288
|
-
cache:
|
|
3289
|
-
strategy:
|
|
3284
|
+
cache: it(e.number),
|
|
3285
|
+
strategy: tt.variadic
|
|
3290
3286
|
}),
|
|
3291
|
-
getDateTimeFormat:
|
|
3287
|
+
getDateTimeFormat: et(function() {
|
|
3292
3288
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3293
3289
|
r[i] = arguments[i];
|
|
3294
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3290
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ke([void 0], r, !1)))();
|
|
3295
3291
|
}, {
|
|
3296
|
-
cache:
|
|
3297
|
-
strategy:
|
|
3292
|
+
cache: it(e.dateTime),
|
|
3293
|
+
strategy: tt.variadic
|
|
3298
3294
|
}),
|
|
3299
|
-
getPluralRules:
|
|
3295
|
+
getPluralRules: et(function() {
|
|
3300
3296
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3301
3297
|
r[i] = arguments[i];
|
|
3302
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ke([void 0], r, !1)))();
|
|
3303
3299
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3300
|
+
cache: it(e.pluralRules),
|
|
3301
|
+
strategy: tt.variadic
|
|
3306
3302
|
})
|
|
3307
3303
|
};
|
|
3308
3304
|
}
|
|
@@ -3325,7 +3321,7 @@ var yr = (
|
|
|
3325
3321
|
}, []);
|
|
3326
3322
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3327
3323
|
}, this.formatToParts = function(o) {
|
|
3328
|
-
return
|
|
3324
|
+
return Ge(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
|
|
3329
3325
|
}, this.resolvedOptions = function() {
|
|
3330
3326
|
var o;
|
|
3331
3327
|
return {
|
|
@@ -3339,12 +3335,12 @@ var yr = (
|
|
|
3339
3335
|
var l = n || {};
|
|
3340
3336
|
l.formatters;
|
|
3341
3337
|
var a = bi(l, ["formatters"]);
|
|
3342
|
-
this.ast = e.__parse(t,
|
|
3338
|
+
this.ast = e.__parse(t, $($({}, a), { locale: this.resolvedLocale }));
|
|
3343
3339
|
} else
|
|
3344
3340
|
this.ast = t;
|
|
3345
3341
|
if (!Array.isArray(this.ast))
|
|
3346
3342
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3347
|
-
this.formats =
|
|
3343
|
+
this.formats = an(e.formats, i), this.formatters = n && n.formatters || un(this.formatterCache);
|
|
3348
3344
|
}
|
|
3349
3345
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3350
3346
|
get: function() {
|
|
@@ -3357,7 +3353,7 @@ var yr = (
|
|
|
3357
3353
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3358
3354
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3359
3355
|
}
|
|
3360
|
-
}, e.__parse =
|
|
3356
|
+
}, e.__parse = en, e.formats = {
|
|
3361
3357
|
number: {
|
|
3362
3358
|
integer: {
|
|
3363
3359
|
maximumFractionDigits: 0
|
|
@@ -3418,7 +3414,7 @@ var yr = (
|
|
|
3418
3414
|
}, e;
|
|
3419
3415
|
}()
|
|
3420
3416
|
);
|
|
3421
|
-
function
|
|
3417
|
+
function ln(e, t) {
|
|
3422
3418
|
if (t == null)
|
|
3423
3419
|
return;
|
|
3424
3420
|
if (t in e)
|
|
@@ -3439,98 +3435,98 @@ function hn(e, t) {
|
|
|
3439
3435
|
i = void 0;
|
|
3440
3436
|
return i;
|
|
3441
3437
|
}
|
|
3442
|
-
const
|
|
3438
|
+
const le = {}, hn = (e, t, r) => r && (t in le || (le[t] = {}), e in le[t] || (le[t][e] = r), r), xr = (e, t) => {
|
|
3443
3439
|
if (t == null)
|
|
3444
3440
|
return;
|
|
3445
|
-
if (t in
|
|
3446
|
-
return
|
|
3447
|
-
const r =
|
|
3441
|
+
if (t in le && e in le[t])
|
|
3442
|
+
return le[t][e];
|
|
3443
|
+
const r = Ne(t);
|
|
3448
3444
|
for (let i = 0; i < r.length; i++) {
|
|
3449
|
-
const n = r[i], s =
|
|
3445
|
+
const n = r[i], s = cn(n, e);
|
|
3450
3446
|
if (s)
|
|
3451
|
-
return
|
|
3447
|
+
return hn(e, t, s);
|
|
3452
3448
|
}
|
|
3453
3449
|
};
|
|
3454
3450
|
let Et;
|
|
3455
|
-
const
|
|
3456
|
-
function
|
|
3451
|
+
const Ie = Le({});
|
|
3452
|
+
function fn(e) {
|
|
3457
3453
|
return Et[e] || null;
|
|
3458
3454
|
}
|
|
3459
|
-
function
|
|
3455
|
+
function _r(e) {
|
|
3460
3456
|
return e in Et;
|
|
3461
3457
|
}
|
|
3462
|
-
function
|
|
3463
|
-
if (!
|
|
3458
|
+
function cn(e, t) {
|
|
3459
|
+
if (!_r(e))
|
|
3464
3460
|
return null;
|
|
3465
|
-
const r =
|
|
3466
|
-
return
|
|
3461
|
+
const r = fn(e);
|
|
3462
|
+
return ln(r, t);
|
|
3467
3463
|
}
|
|
3468
|
-
function
|
|
3464
|
+
function dn(e) {
|
|
3469
3465
|
if (e == null)
|
|
3470
3466
|
return;
|
|
3471
|
-
const t =
|
|
3467
|
+
const t = Ne(e);
|
|
3472
3468
|
for (let r = 0; r < t.length; r++) {
|
|
3473
3469
|
const i = t[r];
|
|
3474
|
-
if (
|
|
3470
|
+
if (_r(i))
|
|
3475
3471
|
return i;
|
|
3476
3472
|
}
|
|
3477
3473
|
}
|
|
3478
3474
|
function Er(e, ...t) {
|
|
3479
|
-
delete
|
|
3475
|
+
delete le[e], Ie.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
|
|
3480
3476
|
}
|
|
3481
|
-
|
|
3482
|
-
[
|
|
3477
|
+
He(
|
|
3478
|
+
[Ie],
|
|
3483
3479
|
([e]) => Object.keys(e)
|
|
3484
3480
|
);
|
|
3485
|
-
|
|
3486
|
-
const
|
|
3487
|
-
function
|
|
3488
|
-
|
|
3481
|
+
Ie.subscribe((e) => Et = e);
|
|
3482
|
+
const je = {};
|
|
3483
|
+
function mn(e, t) {
|
|
3484
|
+
je[e].delete(t), je[e].size === 0 && delete je[e];
|
|
3489
3485
|
}
|
|
3490
3486
|
function wr(e) {
|
|
3491
|
-
return
|
|
3487
|
+
return je[e];
|
|
3492
3488
|
}
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3489
|
+
function pn(e) {
|
|
3490
|
+
return Ne(e).map((t) => {
|
|
3495
3491
|
const r = wr(t);
|
|
3496
3492
|
return [t, r ? [...r] : []];
|
|
3497
3493
|
}).filter(([, t]) => t.length > 0);
|
|
3498
3494
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return e == null ? !1 :
|
|
3495
|
+
function ze(e) {
|
|
3496
|
+
return e == null ? !1 : Ne(e).some(
|
|
3501
3497
|
(t) => {
|
|
3502
3498
|
var r;
|
|
3503
3499
|
return (r = wr(t)) == null ? void 0 : r.size;
|
|
3504
3500
|
}
|
|
3505
3501
|
);
|
|
3506
3502
|
}
|
|
3507
|
-
function
|
|
3503
|
+
function gn(e, t) {
|
|
3508
3504
|
return Promise.all(
|
|
3509
|
-
t.map((i) => (
|
|
3505
|
+
t.map((i) => (mn(e, i), i().then((n) => n.default || n)))
|
|
3510
3506
|
).then((i) => Er(e, ...i));
|
|
3511
3507
|
}
|
|
3512
3508
|
const Ae = {};
|
|
3513
3509
|
function Sr(e) {
|
|
3514
|
-
if (!
|
|
3510
|
+
if (!ze(e))
|
|
3515
3511
|
return e in Ae ? Ae[e] : Promise.resolve();
|
|
3516
|
-
const t =
|
|
3512
|
+
const t = pn(e);
|
|
3517
3513
|
return Ae[e] = Promise.all(
|
|
3518
3514
|
t.map(
|
|
3519
|
-
([r, i]) =>
|
|
3515
|
+
([r, i]) => gn(r, i)
|
|
3520
3516
|
)
|
|
3521
3517
|
).then(() => {
|
|
3522
|
-
if (
|
|
3518
|
+
if (ze(e))
|
|
3523
3519
|
return Sr(e);
|
|
3524
3520
|
delete Ae[e];
|
|
3525
3521
|
}), Ae[e];
|
|
3526
3522
|
}
|
|
3527
|
-
var Rt = Object.getOwnPropertySymbols,
|
|
3523
|
+
var Rt = Object.getOwnPropertySymbols, vn = Object.prototype.hasOwnProperty, bn = Object.prototype.propertyIsEnumerable, yn = (e, t) => {
|
|
3528
3524
|
var r = {};
|
|
3529
3525
|
for (var i in e)
|
|
3530
|
-
|
|
3526
|
+
vn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3531
3527
|
if (e != null && Rt)
|
|
3532
3528
|
for (var i of Rt(e))
|
|
3533
|
-
t.indexOf(i) < 0 &&
|
|
3529
|
+
t.indexOf(i) < 0 && bn.call(e, i) && (r[i] = e[i]);
|
|
3534
3530
|
return r;
|
|
3535
3531
|
};
|
|
3536
3532
|
const xn = {
|
|
@@ -3563,28 +3559,28 @@ const xn = {
|
|
|
3563
3559
|
}
|
|
3564
3560
|
}
|
|
3565
3561
|
};
|
|
3566
|
-
function
|
|
3562
|
+
function _n({ locale: e, id: t }) {
|
|
3567
3563
|
console.warn(
|
|
3568
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3564
|
+
`[svelte-i18n] The message "${t}" was not found in "${Ne(
|
|
3569
3565
|
e
|
|
3570
|
-
).join('", "')}".${
|
|
3566
|
+
).join('", "')}".${ze(he()) ? `
|
|
3571
3567
|
|
|
3572
3568
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3573
3569
|
);
|
|
3574
3570
|
}
|
|
3575
|
-
const
|
|
3571
|
+
const En = {
|
|
3576
3572
|
fallbackLocale: null,
|
|
3577
3573
|
loadingDelay: 200,
|
|
3578
3574
|
formats: xn,
|
|
3579
3575
|
warnOnMissingMessages: !0,
|
|
3580
3576
|
handleMissingMessage: void 0,
|
|
3581
3577
|
ignoreTag: !0
|
|
3582
|
-
},
|
|
3583
|
-
function
|
|
3584
|
-
return
|
|
3578
|
+
}, Oe = En;
|
|
3579
|
+
function Te() {
|
|
3580
|
+
return Oe;
|
|
3585
3581
|
}
|
|
3586
|
-
function
|
|
3587
|
-
const t = e, { formats: r } = t, i =
|
|
3582
|
+
function wn(e) {
|
|
3583
|
+
const t = e, { formats: r } = t, i = yn(t, ["formats"]);
|
|
3588
3584
|
let n = e.fallbackLocale;
|
|
3589
3585
|
if (e.initialLocale)
|
|
3590
3586
|
try {
|
|
@@ -3594,143 +3590,143 @@ function Sn(e) {
|
|
|
3594
3590
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3595
3591
|
);
|
|
3596
3592
|
}
|
|
3597
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3593
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = _n : console.warn(
|
|
3598
3594
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3599
|
-
)), Object.assign(
|
|
3595
|
+
)), Object.assign(Oe, i, { initialLocale: n }), r && ("number" in r && Object.assign(Oe.formats.number, r.number), "date" in r && Object.assign(Oe.formats.date, r.date), "time" in r && Object.assign(Oe.formats.time, r.time)), de.set(n);
|
|
3600
3596
|
}
|
|
3601
|
-
const
|
|
3602
|
-
var
|
|
3597
|
+
const nt = Le(!1);
|
|
3598
|
+
var Sn = Object.defineProperty, Tn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, Pn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, On = (e, t) => {
|
|
3603
3599
|
for (var r in t || (t = {}))
|
|
3604
3600
|
Pn.call(t, r) && Ut(e, r, t[r]);
|
|
3605
3601
|
if (kt)
|
|
3606
3602
|
for (var r of kt(t))
|
|
3607
3603
|
An.call(t, r) && Ut(e, r, t[r]);
|
|
3608
3604
|
return e;
|
|
3609
|
-
},
|
|
3610
|
-
let
|
|
3611
|
-
const
|
|
3605
|
+
}, $n = (e, t) => Tn(e, Hn(t));
|
|
3606
|
+
let pt;
|
|
3607
|
+
const Xe = Le(null);
|
|
3612
3608
|
function Ft(e) {
|
|
3613
3609
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3614
3610
|
}
|
|
3615
|
-
function
|
|
3611
|
+
function Ne(e, t = Te().fallbackLocale) {
|
|
3616
3612
|
const r = Ft(e);
|
|
3617
3613
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
|
|
3618
3614
|
}
|
|
3619
|
-
function
|
|
3620
|
-
return
|
|
3615
|
+
function he() {
|
|
3616
|
+
return pt ?? void 0;
|
|
3621
3617
|
}
|
|
3622
|
-
|
|
3623
|
-
|
|
3618
|
+
Xe.subscribe((e) => {
|
|
3619
|
+
pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3624
3620
|
});
|
|
3625
|
-
const
|
|
3626
|
-
if (e &&
|
|
3627
|
-
const { loadingDelay: t } =
|
|
3621
|
+
const Bn = (e) => {
|
|
3622
|
+
if (e && dn(e) && ze(e)) {
|
|
3623
|
+
const { loadingDelay: t } = Te();
|
|
3628
3624
|
let r;
|
|
3629
|
-
return typeof window < "u" &&
|
|
3630
|
-
() =>
|
|
3625
|
+
return typeof window < "u" && he() != null && t ? r = window.setTimeout(
|
|
3626
|
+
() => nt.set(!0),
|
|
3631
3627
|
t
|
|
3632
|
-
) :
|
|
3633
|
-
|
|
3628
|
+
) : nt.set(!0), Sr(e).then(() => {
|
|
3629
|
+
Xe.set(e);
|
|
3634
3630
|
}).finally(() => {
|
|
3635
|
-
clearTimeout(r),
|
|
3631
|
+
clearTimeout(r), nt.set(!1);
|
|
3636
3632
|
});
|
|
3637
3633
|
}
|
|
3638
|
-
return
|
|
3639
|
-
},
|
|
3640
|
-
set:
|
|
3641
|
-
}),
|
|
3634
|
+
return Xe.set(e);
|
|
3635
|
+
}, de = $n(On({}, Xe), {
|
|
3636
|
+
set: Bn
|
|
3637
|
+
}), Ze = (e) => {
|
|
3642
3638
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3643
3639
|
return (i) => {
|
|
3644
3640
|
const n = JSON.stringify(i);
|
|
3645
3641
|
return n in t ? t[n] : t[n] = e(i);
|
|
3646
3642
|
};
|
|
3647
3643
|
};
|
|
3648
|
-
var
|
|
3644
|
+
var Mn = Object.defineProperty, We = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
|
3649
3645
|
for (var r in t || (t = {}))
|
|
3650
3646
|
Tr.call(t, r) && Vt(e, r, t[r]);
|
|
3651
|
-
if (
|
|
3652
|
-
for (var r of
|
|
3647
|
+
if (We)
|
|
3648
|
+
for (var r of We(t))
|
|
3653
3649
|
Hr.call(t, r) && Vt(e, r, t[r]);
|
|
3654
3650
|
return e;
|
|
3655
3651
|
}, Pe = (e, t) => {
|
|
3656
3652
|
var r = {};
|
|
3657
3653
|
for (var i in e)
|
|
3658
3654
|
Tr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3659
|
-
if (e != null &&
|
|
3660
|
-
for (var i of
|
|
3655
|
+
if (e != null && We)
|
|
3656
|
+
for (var i of We(e))
|
|
3661
3657
|
t.indexOf(i) < 0 && Hr.call(e, i) && (r[i] = e[i]);
|
|
3662
3658
|
return r;
|
|
3663
3659
|
};
|
|
3664
|
-
const
|
|
3665
|
-
const { formats: r } =
|
|
3660
|
+
const Ce = (e, t) => {
|
|
3661
|
+
const { formats: r } = Te();
|
|
3666
3662
|
if (e in r && t in r[e])
|
|
3667
3663
|
return r[e][t];
|
|
3668
3664
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3669
|
-
},
|
|
3665
|
+
}, Cn = Ze(
|
|
3670
3666
|
(e) => {
|
|
3671
3667
|
var t = e, { locale: r, format: i } = t, n = Pe(t, ["locale", "format"]);
|
|
3672
3668
|
if (r == null)
|
|
3673
3669
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3674
|
-
return i && (n =
|
|
3670
|
+
return i && (n = Ce("number", i)), new Intl.NumberFormat(r, n);
|
|
3675
3671
|
}
|
|
3676
|
-
),
|
|
3672
|
+
), Dn = Ze(
|
|
3677
3673
|
(e) => {
|
|
3678
3674
|
var t = e, { locale: r, format: i } = t, n = Pe(t, ["locale", "format"]);
|
|
3679
3675
|
if (r == null)
|
|
3680
3676
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3681
|
-
return i ? n =
|
|
3677
|
+
return i ? n = Ce("date", i) : Object.keys(n).length === 0 && (n = Ce("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3682
3678
|
}
|
|
3683
|
-
),
|
|
3679
|
+
), Ln = Ze(
|
|
3684
3680
|
(e) => {
|
|
3685
3681
|
var t = e, { locale: r, format: i } = t, n = Pe(t, ["locale", "format"]);
|
|
3686
3682
|
if (r == null)
|
|
3687
3683
|
throw new Error(
|
|
3688
3684
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3689
3685
|
);
|
|
3690
|
-
return i ? n =
|
|
3686
|
+
return i ? n = Ce("time", i) : Object.keys(n).length === 0 && (n = Ce("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3691
3687
|
}
|
|
3692
|
-
),
|
|
3688
|
+
), In = (e = {}) => {
|
|
3693
3689
|
var t = e, {
|
|
3694
|
-
locale: r =
|
|
3690
|
+
locale: r = he()
|
|
3695
3691
|
} = t, i = Pe(t, [
|
|
3696
3692
|
"locale"
|
|
3697
3693
|
]);
|
|
3698
|
-
return
|
|
3699
|
-
},
|
|
3694
|
+
return Cn(wt({ locale: r }, i));
|
|
3695
|
+
}, Nn = (e = {}) => {
|
|
3700
3696
|
var t = e, {
|
|
3701
|
-
locale: r =
|
|
3697
|
+
locale: r = he()
|
|
3702
3698
|
} = t, i = Pe(t, [
|
|
3703
3699
|
"locale"
|
|
3704
3700
|
]);
|
|
3705
|
-
return
|
|
3706
|
-
},
|
|
3701
|
+
return Dn(wt({ locale: r }, i));
|
|
3702
|
+
}, Rn = (e = {}) => {
|
|
3707
3703
|
var t = e, {
|
|
3708
|
-
locale: r =
|
|
3704
|
+
locale: r = he()
|
|
3709
3705
|
} = t, i = Pe(t, [
|
|
3710
3706
|
"locale"
|
|
3711
3707
|
]);
|
|
3712
|
-
return
|
|
3713
|
-
},
|
|
3708
|
+
return Ln(wt({ locale: r }, i));
|
|
3709
|
+
}, kn = Ze(
|
|
3714
3710
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3715
|
-
(e, t =
|
|
3716
|
-
ignoreTag:
|
|
3711
|
+
(e, t = he()) => new yr(e, t, Te().formats, {
|
|
3712
|
+
ignoreTag: Te().ignoreTag
|
|
3717
3713
|
})
|
|
3718
|
-
),
|
|
3714
|
+
), Un = (e, t = {}) => {
|
|
3719
3715
|
var r, i, n, s;
|
|
3720
3716
|
let l = t;
|
|
3721
3717
|
typeof e == "object" && (l = e, e = l.id);
|
|
3722
3718
|
const {
|
|
3723
3719
|
values: a,
|
|
3724
|
-
locale: o =
|
|
3720
|
+
locale: o = he(),
|
|
3725
3721
|
default: u
|
|
3726
3722
|
} = l;
|
|
3727
3723
|
if (o == null)
|
|
3728
3724
|
throw new Error(
|
|
3729
3725
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3730
3726
|
);
|
|
3731
|
-
let h =
|
|
3727
|
+
let h = xr(e, o);
|
|
3732
3728
|
if (!h)
|
|
3733
|
-
h = (s = (n = (i = (r =
|
|
3729
|
+
h = (s = (n = (i = (r = Te()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3734
3730
|
else if (typeof h != "string")
|
|
3735
3731
|
return console.warn(
|
|
3736
3732
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3739,7 +3735,7 @@ const De = (e, t) => {
|
|
|
3739
3735
|
return h;
|
|
3740
3736
|
let c = h;
|
|
3741
3737
|
try {
|
|
3742
|
-
c =
|
|
3738
|
+
c = kn(h, o).format(a);
|
|
3743
3739
|
} catch (p) {
|
|
3744
3740
|
p instanceof Error && console.warn(
|
|
3745
3741
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3747,18 +3743,18 @@ const De = (e, t) => {
|
|
|
3747
3743
|
);
|
|
3748
3744
|
}
|
|
3749
3745
|
return c;
|
|
3750
|
-
},
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3746
|
+
}, Fn = (e, t) => Rn(t).format(e), Vn = (e, t) => Nn(t).format(e), Gn = (e, t) => In(t).format(e), jn = (e, t = he()) => xr(e, t), zn = He([de, Ie], () => Un);
|
|
3747
|
+
He([de], () => Fn);
|
|
3748
|
+
He([de], () => Vn);
|
|
3749
|
+
He([de], () => Gn);
|
|
3750
|
+
He([de, Ie], () => jn);
|
|
3755
3751
|
function Gt(e, t) {
|
|
3756
3752
|
Er(e, t);
|
|
3757
3753
|
}
|
|
3758
|
-
function
|
|
3759
|
-
|
|
3754
|
+
function Xn(e) {
|
|
3755
|
+
wn({
|
|
3760
3756
|
fallbackLocale: "en"
|
|
3761
|
-
}),
|
|
3757
|
+
}), de.set(e);
|
|
3762
3758
|
}
|
|
3763
3759
|
const jt = {
|
|
3764
3760
|
en: {
|
|
@@ -3828,41 +3824,41 @@ if (typeof window < "u") {
|
|
|
3828
3824
|
}
|
|
3829
3825
|
};
|
|
3830
3826
|
};
|
|
3831
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3827
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-BdiwRhUs.js").then(({ default: t }) => {
|
|
3832
3828
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3833
3829
|
});
|
|
3834
3830
|
}
|
|
3835
|
-
let
|
|
3836
|
-
var
|
|
3831
|
+
let Wn = Le(null);
|
|
3832
|
+
var Pr = { exports: {} };
|
|
3837
3833
|
(function(e, t) {
|
|
3838
3834
|
(function(r, i) {
|
|
3839
3835
|
e.exports = i();
|
|
3840
3836
|
})(tr, function() {
|
|
3841
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", l = "second", a = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter",
|
|
3842
|
-
var g = ["th", "st", "nd", "rd"], d =
|
|
3843
|
-
return "[" +
|
|
3844
|
-
} },
|
|
3845
|
-
var b = String(
|
|
3846
|
-
return !b || b.length >= g ?
|
|
3847
|
-
}, j = { s:
|
|
3848
|
-
var g = -
|
|
3849
|
-
return (g <= 0 ? "+" : "-") +
|
|
3850
|
-
}, m: function
|
|
3837
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", l = "second", a = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", T = "date", v = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|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, R = { 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(_) {
|
|
3838
|
+
var g = ["th", "st", "nd", "rd"], d = _ % 100;
|
|
3839
|
+
return "[" + _ + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3840
|
+
} }, B = function(_, g, d) {
|
|
3841
|
+
var b = String(_);
|
|
3842
|
+
return !b || b.length >= g ? _ : "" + Array(g + 1 - b.length).join(d) + _;
|
|
3843
|
+
}, j = { s: B, z: function(_) {
|
|
3844
|
+
var g = -_.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3845
|
+
return (g <= 0 ? "+" : "-") + B(b, 2, "0") + ":" + B(m, 2, "0");
|
|
3846
|
+
}, m: function _(g, d) {
|
|
3851
3847
|
if (g.date() < d.date())
|
|
3852
|
-
return -
|
|
3848
|
+
return -_(d, g);
|
|
3853
3849
|
var b = 12 * (d.year() - g.year()) + (d.month() - g.month()), m = g.clone().add(b, c), E = d - m < 0, w = g.clone().add(b + (E ? -1 : 1), c);
|
|
3854
3850
|
return +(-(b + (d - m) / (E ? m - w : w - m)) || 0);
|
|
3855
|
-
}, a: function(
|
|
3856
|
-
return
|
|
3857
|
-
}, p: function(
|
|
3858
|
-
return { M: c, y:
|
|
3859
|
-
}, u: function(
|
|
3860
|
-
return
|
|
3851
|
+
}, a: function(_) {
|
|
3852
|
+
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
3853
|
+
}, p: function(_) {
|
|
3854
|
+
return { M: c, y: x, w: h, d: u, D: T, h: o, m: a, s: l, ms: s, Q: p }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
3855
|
+
}, u: function(_) {
|
|
3856
|
+
return _ === void 0;
|
|
3861
3857
|
} }, N = "en", k = {};
|
|
3862
3858
|
k[N] = R;
|
|
3863
|
-
var X = "$isDayjsObject", Y = function(
|
|
3864
|
-
return
|
|
3865
|
-
}, W = function
|
|
3859
|
+
var X = "$isDayjsObject", Y = function(_) {
|
|
3860
|
+
return _ instanceof me || !(!_ || !_[X]);
|
|
3861
|
+
}, W = function _(g, d, b) {
|
|
3866
3862
|
var m;
|
|
3867
3863
|
if (!g)
|
|
3868
3864
|
return N;
|
|
@@ -3871,40 +3867,40 @@ var Or = { exports: {} };
|
|
|
3871
3867
|
k[E] && (m = E), d && (k[E] = d, m = E);
|
|
3872
3868
|
var w = g.split("-");
|
|
3873
3869
|
if (!m && w.length > 1)
|
|
3874
|
-
return
|
|
3870
|
+
return _(w[0]);
|
|
3875
3871
|
} else {
|
|
3876
|
-
var
|
|
3877
|
-
k[
|
|
3872
|
+
var M = g.name;
|
|
3873
|
+
k[M] = g, m = M;
|
|
3878
3874
|
}
|
|
3879
3875
|
return !b && m && (N = m), m || !b && N;
|
|
3880
|
-
},
|
|
3881
|
-
if (Y(
|
|
3882
|
-
return
|
|
3876
|
+
}, O = function(_, g) {
|
|
3877
|
+
if (Y(_))
|
|
3878
|
+
return _.clone();
|
|
3883
3879
|
var d = typeof g == "object" ? g : {};
|
|
3884
|
-
return d.date =
|
|
3885
|
-
},
|
|
3886
|
-
|
|
3887
|
-
return
|
|
3880
|
+
return d.date = _, d.args = arguments, new me(d);
|
|
3881
|
+
}, P = j;
|
|
3882
|
+
P.l = W, P.i = Y, P.w = function(_, g) {
|
|
3883
|
+
return O(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3888
3884
|
};
|
|
3889
|
-
var
|
|
3890
|
-
function
|
|
3885
|
+
var me = function() {
|
|
3886
|
+
function _(d) {
|
|
3891
3887
|
this.$L = W(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[X] = !0;
|
|
3892
3888
|
}
|
|
3893
|
-
var g =
|
|
3889
|
+
var g = _.prototype;
|
|
3894
3890
|
return g.parse = function(d) {
|
|
3895
3891
|
this.$d = function(b) {
|
|
3896
3892
|
var m = b.date, E = b.utc;
|
|
3897
3893
|
if (m === null)
|
|
3898
3894
|
return /* @__PURE__ */ new Date(NaN);
|
|
3899
|
-
if (
|
|
3895
|
+
if (P.u(m))
|
|
3900
3896
|
return /* @__PURE__ */ new Date();
|
|
3901
3897
|
if (m instanceof Date)
|
|
3902
3898
|
return new Date(m);
|
|
3903
3899
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3904
|
-
var w = m.match(
|
|
3900
|
+
var w = m.match(C);
|
|
3905
3901
|
if (w) {
|
|
3906
|
-
var
|
|
3907
|
-
return E ? new Date(Date.UTC(w[1],
|
|
3902
|
+
var M = w[2] - 1 || 0, L = (w[7] || "0").substring(0, 3);
|
|
3903
|
+
return E ? new Date(Date.UTC(w[1], M, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L)) : new Date(w[1], M, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L);
|
|
3908
3904
|
}
|
|
3909
3905
|
}
|
|
3910
3906
|
return new Date(m);
|
|
@@ -3913,105 +3909,105 @@ var Or = { exports: {} };
|
|
|
3913
3909
|
var d = this.$d;
|
|
3914
3910
|
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();
|
|
3915
3911
|
}, g.$utils = function() {
|
|
3916
|
-
return
|
|
3912
|
+
return P;
|
|
3917
3913
|
}, g.isValid = function() {
|
|
3918
3914
|
return this.$d.toString() !== v;
|
|
3919
3915
|
}, g.isSame = function(d, b) {
|
|
3920
|
-
var m =
|
|
3916
|
+
var m = O(d);
|
|
3921
3917
|
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3922
3918
|
}, g.isAfter = function(d, b) {
|
|
3923
|
-
return
|
|
3919
|
+
return O(d) < this.startOf(b);
|
|
3924
3920
|
}, g.isBefore = function(d, b) {
|
|
3925
|
-
return this.endOf(b) <
|
|
3921
|
+
return this.endOf(b) < O(d);
|
|
3926
3922
|
}, g.$g = function(d, b, m) {
|
|
3927
|
-
return
|
|
3923
|
+
return P.u(d) ? this[b] : this.set(m, d);
|
|
3928
3924
|
}, g.unix = function() {
|
|
3929
3925
|
return Math.floor(this.valueOf() / 1e3);
|
|
3930
3926
|
}, g.valueOf = function() {
|
|
3931
3927
|
return this.$d.getTime();
|
|
3932
3928
|
}, g.startOf = function(d, b) {
|
|
3933
|
-
var m = this, E = !!
|
|
3934
|
-
var te =
|
|
3929
|
+
var m = this, E = !!P.u(b) || b, w = P.p(d), M = function(ne, V) {
|
|
3930
|
+
var te = P.w(m.$u ? Date.UTC(m.$y, V, ne) : new Date(m.$y, V, ne), m);
|
|
3935
3931
|
return E ? te : te.endOf(u);
|
|
3936
|
-
},
|
|
3937
|
-
return
|
|
3938
|
-
}, I = this.$W, F = this.$M, z = this.$D,
|
|
3932
|
+
}, L = function(ne, V) {
|
|
3933
|
+
return P.w(m.toDate()[ne].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), m);
|
|
3934
|
+
}, I = this.$W, F = this.$M, z = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
3939
3935
|
switch (w) {
|
|
3940
|
-
case
|
|
3941
|
-
return E ?
|
|
3936
|
+
case x:
|
|
3937
|
+
return E ? M(1, 0) : M(31, 11);
|
|
3942
3938
|
case c:
|
|
3943
|
-
return E ?
|
|
3939
|
+
return E ? M(1, F) : M(0, F + 1);
|
|
3944
3940
|
case h:
|
|
3945
|
-
var ee = this.$locale().weekStart || 0,
|
|
3946
|
-
return
|
|
3941
|
+
var ee = this.$locale().weekStart || 0, fe = (I < ee ? I + 7 : I) - ee;
|
|
3942
|
+
return M(E ? z - fe : z + (6 - fe), F);
|
|
3947
3943
|
case u:
|
|
3948
3944
|
case T:
|
|
3949
|
-
return
|
|
3945
|
+
return L(ae + "Hours", 0);
|
|
3950
3946
|
case o:
|
|
3951
|
-
return
|
|
3947
|
+
return L(ae + "Minutes", 1);
|
|
3952
3948
|
case a:
|
|
3953
|
-
return
|
|
3949
|
+
return L(ae + "Seconds", 2);
|
|
3954
3950
|
case l:
|
|
3955
|
-
return
|
|
3951
|
+
return L(ae + "Milliseconds", 3);
|
|
3956
3952
|
default:
|
|
3957
3953
|
return this.clone();
|
|
3958
3954
|
}
|
|
3959
3955
|
}, g.endOf = function(d) {
|
|
3960
3956
|
return this.startOf(d, !1);
|
|
3961
3957
|
}, g.$set = function(d, b) {
|
|
3962
|
-
var m, E =
|
|
3963
|
-
if (E === c || E ===
|
|
3958
|
+
var m, E = P.p(d), w = "set" + (this.$u ? "UTC" : ""), M = (m = {}, m[u] = w + "Date", m[T] = w + "Date", m[c] = w + "Month", m[x] = w + "FullYear", m[o] = w + "Hours", m[a] = w + "Minutes", m[l] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], L = E === u ? this.$D + (b - this.$W) : b;
|
|
3959
|
+
if (E === c || E === x) {
|
|
3964
3960
|
var I = this.clone().set(T, 1);
|
|
3965
|
-
I.$d[
|
|
3961
|
+
I.$d[M](L), I.init(), this.$d = I.set(T, Math.min(this.$D, I.daysInMonth())).$d;
|
|
3966
3962
|
} else
|
|
3967
|
-
|
|
3963
|
+
M && this.$d[M](L);
|
|
3968
3964
|
return this.init(), this;
|
|
3969
3965
|
}, g.set = function(d, b) {
|
|
3970
3966
|
return this.clone().$set(d, b);
|
|
3971
3967
|
}, g.get = function(d) {
|
|
3972
|
-
return this[
|
|
3968
|
+
return this[P.p(d)]();
|
|
3973
3969
|
}, g.add = function(d, b) {
|
|
3974
3970
|
var m, E = this;
|
|
3975
3971
|
d = Number(d);
|
|
3976
|
-
var w =
|
|
3977
|
-
var z =
|
|
3978
|
-
return
|
|
3972
|
+
var w = P.p(b), M = function(F) {
|
|
3973
|
+
var z = O(E);
|
|
3974
|
+
return P.w(z.date(z.date() + Math.round(F * d)), E);
|
|
3979
3975
|
};
|
|
3980
3976
|
if (w === c)
|
|
3981
3977
|
return this.set(c, this.$M + d);
|
|
3982
|
-
if (w ===
|
|
3983
|
-
return this.set(
|
|
3978
|
+
if (w === x)
|
|
3979
|
+
return this.set(x, this.$y + d);
|
|
3984
3980
|
if (w === u)
|
|
3985
|
-
return
|
|
3981
|
+
return M(1);
|
|
3986
3982
|
if (w === h)
|
|
3987
|
-
return
|
|
3988
|
-
var
|
|
3989
|
-
return
|
|
3983
|
+
return M(7);
|
|
3984
|
+
var L = (m = {}, m[a] = i, m[o] = n, m[l] = r, m)[w] || 1, I = this.$d.getTime() + d * L;
|
|
3985
|
+
return P.w(I, this);
|
|
3990
3986
|
}, g.subtract = function(d, b) {
|
|
3991
3987
|
return this.add(-1 * d, b);
|
|
3992
3988
|
}, g.format = function(d) {
|
|
3993
3989
|
var b = this, m = this.$locale();
|
|
3994
3990
|
if (!this.isValid())
|
|
3995
3991
|
return m.invalidDate || v;
|
|
3996
|
-
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
3997
|
-
return V && (V[te] || V(b, E)) ||
|
|
3998
|
-
},
|
|
3999
|
-
return
|
|
4000
|
-
},
|
|
4001
|
-
var
|
|
4002
|
-
return
|
|
3992
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), M = this.$H, L = this.$m, I = this.$M, F = m.weekdays, z = m.months, ae = m.meridiem, ee = function(V, te, se, pe) {
|
|
3993
|
+
return V && (V[te] || V(b, E)) || se[te].slice(0, pe);
|
|
3994
|
+
}, fe = function(V) {
|
|
3995
|
+
return P.s(M % 12 || 12, V, "0");
|
|
3996
|
+
}, ne = ae || function(V, te, se) {
|
|
3997
|
+
var pe = V < 12 ? "AM" : "PM";
|
|
3998
|
+
return se ? pe.toLowerCase() : pe;
|
|
4003
3999
|
};
|
|
4004
4000
|
return E.replace(U, function(V, te) {
|
|
4005
|
-
return te || function(
|
|
4006
|
-
switch (
|
|
4001
|
+
return te || function(se) {
|
|
4002
|
+
switch (se) {
|
|
4007
4003
|
case "YY":
|
|
4008
4004
|
return String(b.$y).slice(-2);
|
|
4009
4005
|
case "YYYY":
|
|
4010
|
-
return
|
|
4006
|
+
return P.s(b.$y, 4, "0");
|
|
4011
4007
|
case "M":
|
|
4012
4008
|
return I + 1;
|
|
4013
4009
|
case "MM":
|
|
4014
|
-
return
|
|
4010
|
+
return P.s(I + 1, 2, "0");
|
|
4015
4011
|
case "MMM":
|
|
4016
4012
|
return ee(m.monthsShort, I, z, 3);
|
|
4017
4013
|
case "MMMM":
|
|
@@ -4019,7 +4015,7 @@ var Or = { exports: {} };
|
|
|
4019
4015
|
case "D":
|
|
4020
4016
|
return b.$D;
|
|
4021
4017
|
case "DD":
|
|
4022
|
-
return
|
|
4018
|
+
return P.s(b.$D, 2, "0");
|
|
4023
4019
|
case "d":
|
|
4024
4020
|
return String(b.$W);
|
|
4025
4021
|
case "dd":
|
|
@@ -4029,27 +4025,27 @@ var Or = { exports: {} };
|
|
|
4029
4025
|
case "dddd":
|
|
4030
4026
|
return F[b.$W];
|
|
4031
4027
|
case "H":
|
|
4032
|
-
return String(
|
|
4028
|
+
return String(M);
|
|
4033
4029
|
case "HH":
|
|
4034
|
-
return
|
|
4030
|
+
return P.s(M, 2, "0");
|
|
4035
4031
|
case "h":
|
|
4036
|
-
return
|
|
4032
|
+
return fe(1);
|
|
4037
4033
|
case "hh":
|
|
4038
|
-
return
|
|
4034
|
+
return fe(2);
|
|
4039
4035
|
case "a":
|
|
4040
|
-
return
|
|
4036
|
+
return ne(M, L, !0);
|
|
4041
4037
|
case "A":
|
|
4042
|
-
return
|
|
4038
|
+
return ne(M, L, !1);
|
|
4043
4039
|
case "m":
|
|
4044
|
-
return String(
|
|
4040
|
+
return String(L);
|
|
4045
4041
|
case "mm":
|
|
4046
|
-
return
|
|
4042
|
+
return P.s(L, 2, "0");
|
|
4047
4043
|
case "s":
|
|
4048
4044
|
return String(b.$s);
|
|
4049
4045
|
case "ss":
|
|
4050
|
-
return
|
|
4046
|
+
return P.s(b.$s, 2, "0");
|
|
4051
4047
|
case "SSS":
|
|
4052
|
-
return
|
|
4048
|
+
return P.s(b.$ms, 3, "0");
|
|
4053
4049
|
case "Z":
|
|
4054
4050
|
return w;
|
|
4055
4051
|
}
|
|
@@ -4059,11 +4055,11 @@ var Or = { exports: {} };
|
|
|
4059
4055
|
}, g.utcOffset = function() {
|
|
4060
4056
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4061
4057
|
}, g.diff = function(d, b, m) {
|
|
4062
|
-
var E, w = this,
|
|
4063
|
-
return
|
|
4058
|
+
var E, w = this, M = P.p(b), L = O(d), I = (L.utcOffset() - this.utcOffset()) * i, F = this - L, z = function() {
|
|
4059
|
+
return P.m(w, L);
|
|
4064
4060
|
};
|
|
4065
|
-
switch (
|
|
4066
|
-
case
|
|
4061
|
+
switch (M) {
|
|
4062
|
+
case x:
|
|
4067
4063
|
E = z() / 12;
|
|
4068
4064
|
break;
|
|
4069
4065
|
case c:
|
|
@@ -4090,7 +4086,7 @@ var Or = { exports: {} };
|
|
|
4090
4086
|
default:
|
|
4091
4087
|
E = F;
|
|
4092
4088
|
}
|
|
4093
|
-
return m ? E :
|
|
4089
|
+
return m ? E : P.a(E);
|
|
4094
4090
|
}, g.daysInMonth = function() {
|
|
4095
4091
|
return this.endOf(c).$D;
|
|
4096
4092
|
}, g.$locale = function() {
|
|
@@ -4101,7 +4097,7 @@ var Or = { exports: {} };
|
|
|
4101
4097
|
var m = this.clone(), E = W(d, b, !0);
|
|
4102
4098
|
return E && (m.$L = E), m;
|
|
4103
4099
|
}, g.clone = function() {
|
|
4104
|
-
return
|
|
4100
|
+
return P.w(this.$d, this);
|
|
4105
4101
|
}, g.toDate = function() {
|
|
4106
4102
|
return new Date(this.valueOf());
|
|
4107
4103
|
}, g.toJSON = function() {
|
|
@@ -4110,22 +4106,22 @@ var Or = { exports: {} };
|
|
|
4110
4106
|
return this.$d.toISOString();
|
|
4111
4107
|
}, g.toString = function() {
|
|
4112
4108
|
return this.$d.toUTCString();
|
|
4113
|
-
},
|
|
4114
|
-
}(),
|
|
4115
|
-
return
|
|
4116
|
-
|
|
4117
|
-
return this.$g(g,
|
|
4109
|
+
}, _;
|
|
4110
|
+
}(), Re = me.prototype;
|
|
4111
|
+
return O.prototype = Re, [["$ms", s], ["$s", l], ["$m", a], ["$H", o], ["$W", u], ["$M", c], ["$y", x], ["$D", T]].forEach(function(_) {
|
|
4112
|
+
Re[_[1]] = function(g) {
|
|
4113
|
+
return this.$g(g, _[0], _[1]);
|
|
4118
4114
|
};
|
|
4119
|
-
}),
|
|
4120
|
-
return
|
|
4121
|
-
},
|
|
4122
|
-
return
|
|
4123
|
-
},
|
|
4115
|
+
}), O.extend = function(_, g) {
|
|
4116
|
+
return _.$i || (_(g, me, O), _.$i = !0), O;
|
|
4117
|
+
}, O.locale = W, O.isDayjs = Y, O.unix = function(_) {
|
|
4118
|
+
return O(1e3 * _);
|
|
4119
|
+
}, O.en = k[N], O.Ls = k, O.p = {}, O;
|
|
4124
4120
|
});
|
|
4125
|
-
})(
|
|
4126
|
-
var
|
|
4127
|
-
const zt = /* @__PURE__ */
|
|
4128
|
-
var
|
|
4121
|
+
})(Pr);
|
|
4122
|
+
var qn = Pr.exports;
|
|
4123
|
+
const zt = /* @__PURE__ */ yt(qn);
|
|
4124
|
+
var Ar = { exports: {} };
|
|
4129
4125
|
(function(e, t) {
|
|
4130
4126
|
(function(r, i) {
|
|
4131
4127
|
e.exports = i();
|
|
@@ -4134,11 +4130,11 @@ var Pr = { exports: {} };
|
|
|
4134
4130
|
return function(s, l, a) {
|
|
4135
4131
|
var o = l.prototype;
|
|
4136
4132
|
a.utc = function(v) {
|
|
4137
|
-
var
|
|
4138
|
-
return new l(
|
|
4133
|
+
var C = { date: v, utc: !0, args: arguments };
|
|
4134
|
+
return new l(C);
|
|
4139
4135
|
}, o.utc = function(v) {
|
|
4140
|
-
var
|
|
4141
|
-
return v ?
|
|
4136
|
+
var C = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4137
|
+
return v ? C.add(this.utcOffset(), r) : C;
|
|
4142
4138
|
}, o.local = function() {
|
|
4143
4139
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4144
4140
|
};
|
|
@@ -4155,7 +4151,7 @@ var Pr = { exports: {} };
|
|
|
4155
4151
|
h.call(this);
|
|
4156
4152
|
};
|
|
4157
4153
|
var c = o.utcOffset;
|
|
4158
|
-
o.utcOffset = function(v,
|
|
4154
|
+
o.utcOffset = function(v, C) {
|
|
4159
4155
|
var U = this.$utils().u;
|
|
4160
4156
|
if (U(v))
|
|
4161
4157
|
return this.$u ? 0 : U(this.$offset) ? c.call(this) : this.$offset;
|
|
@@ -4168,20 +4164,20 @@ var Pr = { exports: {} };
|
|
|
4168
4164
|
return W === 0 ? 0 : Y === "+" ? W : -W;
|
|
4169
4165
|
}(v), v === null))
|
|
4170
4166
|
return this;
|
|
4171
|
-
var R = Math.abs(v) <= 16 ? 60 * v : v,
|
|
4172
|
-
if (
|
|
4173
|
-
return
|
|
4167
|
+
var R = Math.abs(v) <= 16 ? 60 * v : v, B = this;
|
|
4168
|
+
if (C)
|
|
4169
|
+
return B.$offset = R, B.$u = v === 0, B;
|
|
4174
4170
|
if (v !== 0) {
|
|
4175
4171
|
var j = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4176
|
-
(
|
|
4172
|
+
(B = this.local().add(R + j, r)).$offset = R, B.$x.$localOffset = j;
|
|
4177
4173
|
} else
|
|
4178
|
-
|
|
4179
|
-
return
|
|
4174
|
+
B = this.utc();
|
|
4175
|
+
return B;
|
|
4180
4176
|
};
|
|
4181
4177
|
var p = o.format;
|
|
4182
4178
|
o.format = function(v) {
|
|
4183
|
-
var
|
|
4184
|
-
return p.call(this,
|
|
4179
|
+
var C = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4180
|
+
return p.call(this, C);
|
|
4185
4181
|
}, o.valueOf = function() {
|
|
4186
4182
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4187
4183
|
return this.$d.valueOf() - 6e4 * v;
|
|
@@ -4192,23 +4188,23 @@ var Pr = { exports: {} };
|
|
|
4192
4188
|
}, o.toString = function() {
|
|
4193
4189
|
return this.toDate().toUTCString();
|
|
4194
4190
|
};
|
|
4195
|
-
var
|
|
4191
|
+
var x = o.toDate;
|
|
4196
4192
|
o.toDate = function(v) {
|
|
4197
|
-
return v === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4193
|
+
return v === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4198
4194
|
};
|
|
4199
4195
|
var T = o.diff;
|
|
4200
|
-
o.diff = function(v,
|
|
4196
|
+
o.diff = function(v, C, U) {
|
|
4201
4197
|
if (v && this.$u === v.$u)
|
|
4202
|
-
return T.call(this, v,
|
|
4203
|
-
var R = this.local(),
|
|
4204
|
-
return T.call(R,
|
|
4198
|
+
return T.call(this, v, C, U);
|
|
4199
|
+
var R = this.local(), B = a(v).local();
|
|
4200
|
+
return T.call(R, B, C, U);
|
|
4205
4201
|
};
|
|
4206
4202
|
};
|
|
4207
4203
|
});
|
|
4208
|
-
})(
|
|
4209
|
-
var
|
|
4210
|
-
const
|
|
4211
|
-
function
|
|
4204
|
+
})(Ar);
|
|
4205
|
+
var Yn = Ar.exports;
|
|
4206
|
+
const Zn = /* @__PURE__ */ yt(Yn);
|
|
4207
|
+
function Jn(e) {
|
|
4212
4208
|
Lr(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)}");
|
|
4213
4209
|
}
|
|
4214
4210
|
function Xt(e, t, r) {
|
|
@@ -4216,7 +4212,7 @@ function Xt(e, t, r) {
|
|
|
4216
4212
|
return i[53] = t[r], i[55] = r, i;
|
|
4217
4213
|
}
|
|
4218
4214
|
function Wt(e) {
|
|
4219
|
-
let t, r, i, n, s =
|
|
4215
|
+
let t, r, i, n, s = At(
|
|
4220
4216
|
/*displayMessages*/
|
|
4221
4217
|
e[4]
|
|
4222
4218
|
), l = [];
|
|
@@ -4231,22 +4227,22 @@ function Wt(e) {
|
|
|
4231
4227
|
t = q("div");
|
|
4232
4228
|
for (let o = 0; o < l.length; o += 1)
|
|
4233
4229
|
l[o].c();
|
|
4234
|
-
r =
|
|
4230
|
+
r = ye(), a && a.c(), i = ye(), n = q("cashier-video-modal"), K(t, "class", "CashierVerificationsWrapper"), ue(
|
|
4235
4231
|
n,
|
|
4236
4232
|
"clientstylingurl",
|
|
4237
4233
|
/*clientstylingurl*/
|
|
4238
4234
|
e[1]
|
|
4239
|
-
),
|
|
4235
|
+
), ue(
|
|
4240
4236
|
n,
|
|
4241
4237
|
"clientstyling",
|
|
4242
4238
|
/*clientstyling*/
|
|
4243
4239
|
e[0]
|
|
4244
|
-
),
|
|
4240
|
+
), ue(
|
|
4245
4241
|
n,
|
|
4246
4242
|
"ismobileview",
|
|
4247
4243
|
/*ismobileview*/
|
|
4248
4244
|
e[2]
|
|
4249
|
-
),
|
|
4245
|
+
), ue(
|
|
4250
4246
|
n,
|
|
4251
4247
|
"videosrc",
|
|
4252
4248
|
/*videoSrc*/
|
|
@@ -4254,15 +4250,15 @@ function Wt(e) {
|
|
|
4254
4250
|
);
|
|
4255
4251
|
},
|
|
4256
4252
|
m(o, u) {
|
|
4257
|
-
|
|
4253
|
+
oe(o, t, u);
|
|
4258
4254
|
for (let h = 0; h < l.length; h += 1)
|
|
4259
4255
|
l[h] && l[h].m(t, null);
|
|
4260
|
-
|
|
4256
|
+
oe(o, r, u), a && a.m(o, u), oe(o, i, u), oe(o, n, u);
|
|
4261
4257
|
},
|
|
4262
4258
|
p(o, u) {
|
|
4263
4259
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4264
4260
|
1072) {
|
|
4265
|
-
s =
|
|
4261
|
+
s = At(
|
|
4266
4262
|
/*displayMessages*/
|
|
4267
4263
|
o[4]
|
|
4268
4264
|
);
|
|
@@ -4277,25 +4273,25 @@ function Wt(e) {
|
|
|
4277
4273
|
}
|
|
4278
4274
|
/*videoExists*/
|
|
4279
4275
|
o[7] ? a ? a.p(o, u) : (a = Zt(o), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null), u[0] & /*clientstylingurl*/
|
|
4280
|
-
2 &&
|
|
4276
|
+
2 && ue(
|
|
4281
4277
|
n,
|
|
4282
4278
|
"clientstylingurl",
|
|
4283
4279
|
/*clientstylingurl*/
|
|
4284
4280
|
o[1]
|
|
4285
4281
|
), u[0] & /*clientstyling*/
|
|
4286
|
-
1 &&
|
|
4282
|
+
1 && ue(
|
|
4287
4283
|
n,
|
|
4288
4284
|
"clientstyling",
|
|
4289
4285
|
/*clientstyling*/
|
|
4290
4286
|
o[0]
|
|
4291
4287
|
), u[0] & /*ismobileview*/
|
|
4292
|
-
4 &&
|
|
4288
|
+
4 && ue(
|
|
4293
4289
|
n,
|
|
4294
4290
|
"ismobileview",
|
|
4295
4291
|
/*ismobileview*/
|
|
4296
4292
|
o[2]
|
|
4297
4293
|
), u[0] & /*videoSrc*/
|
|
4298
|
-
256 &&
|
|
4294
|
+
256 && ue(
|
|
4299
4295
|
n,
|
|
4300
4296
|
"videosrc",
|
|
4301
4297
|
/*videoSrc*/
|
|
@@ -4303,7 +4299,7 @@ function Wt(e) {
|
|
|
4303
4299
|
);
|
|
4304
4300
|
},
|
|
4305
4301
|
d(o) {
|
|
4306
|
-
o && (
|
|
4302
|
+
o && (ie(t), ie(r), ie(i), ie(n)), Rr(l, o), a && a.d(o);
|
|
4307
4303
|
}
|
|
4308
4304
|
};
|
|
4309
4305
|
}
|
|
@@ -4324,13 +4320,13 @@ function qt(e) {
|
|
|
4324
4320
|
t = q("span"), t.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', K(t, "class", "CashierVerificationChevron");
|
|
4325
4321
|
},
|
|
4326
4322
|
m(s, l) {
|
|
4327
|
-
|
|
4323
|
+
oe(s, t, l), r || (i = bt(t, "click", n), r = !0);
|
|
4328
4324
|
},
|
|
4329
4325
|
p(s, l) {
|
|
4330
4326
|
e = s;
|
|
4331
4327
|
},
|
|
4332
4328
|
d(s) {
|
|
4333
|
-
s &&
|
|
4329
|
+
s && ie(t), r = !1, i();
|
|
4334
4330
|
}
|
|
4335
4331
|
};
|
|
4336
4332
|
}
|
|
@@ -4355,23 +4351,23 @@ function Yt(e) {
|
|
|
4355
4351
|
}
|
|
4356
4352
|
return {
|
|
4357
4353
|
c() {
|
|
4358
|
-
t = q("div"), r = q("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i =
|
|
4354
|
+
t = q("div"), r = q("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = ye(), n = q("p"), l = ye(), h && h.c(), a = ye(), K(r, "class", "IconVerification"), K(n, "class", "text"), K(t, "class", "CashierVerificationMessage"), _e(
|
|
4359
4355
|
t,
|
|
4360
4356
|
"ShowAll",
|
|
4361
4357
|
/*allVerificationsVisible*/
|
|
4362
4358
|
e[5]
|
|
4363
4359
|
);
|
|
4364
4360
|
},
|
|
4365
|
-
m(p,
|
|
4366
|
-
|
|
4361
|
+
m(p, x) {
|
|
4362
|
+
oe(p, t, x), re(t, r), re(t, i), re(t, n), n.innerHTML = s, re(t, l), h && h.m(t, null), re(t, a), o || (u = bt(t, "click", c), o = !0);
|
|
4367
4363
|
},
|
|
4368
|
-
p(p,
|
|
4369
|
-
e = p,
|
|
4364
|
+
p(p, x) {
|
|
4365
|
+
e = p, x[0] & /*displayMessages*/
|
|
4370
4366
|
16 && s !== (s = /*message*/
|
|
4371
4367
|
e[53] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4372
4368
|
e[4].length > 1 && /*index*/
|
|
4373
|
-
e[55] === 0 ? h ? h.p(e,
|
|
4374
|
-
32 &&
|
|
4369
|
+
e[55] === 0 ? h ? h.p(e, x) : (h = qt(e), h.c(), h.m(t, a)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4370
|
+
32 && _e(
|
|
4375
4371
|
t,
|
|
4376
4372
|
"ShowAll",
|
|
4377
4373
|
/*allVerificationsVisible*/
|
|
@@ -4379,7 +4375,7 @@ function Yt(e) {
|
|
|
4379
4375
|
);
|
|
4380
4376
|
},
|
|
4381
4377
|
d(p) {
|
|
4382
|
-
p &&
|
|
4378
|
+
p && ie(t), h && h.d(), o = !1, u();
|
|
4383
4379
|
}
|
|
4384
4380
|
};
|
|
4385
4381
|
}
|
|
@@ -4390,7 +4386,7 @@ function Zt(e) {
|
|
|
4390
4386
|
), l, a, o;
|
|
4391
4387
|
return {
|
|
4392
4388
|
c() {
|
|
4393
|
-
t = q("div"), r = q("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i =
|
|
4389
|
+
t = q("div"), r = q("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = ye(), n = q("div"), l = vt(s), K(r, "class", "IconVideo"), K(n, "class", "CashierVerificationVideoLink"), _e(
|
|
4394
4390
|
n,
|
|
4395
4391
|
"CashierVerificationVideoLinkDesktop",
|
|
4396
4392
|
/*desktopView*/
|
|
@@ -4398,7 +4394,7 @@ function Zt(e) {
|
|
|
4398
4394
|
), K(t, "class", "CashierVerificationVideo");
|
|
4399
4395
|
},
|
|
4400
4396
|
m(u, h) {
|
|
4401
|
-
|
|
4397
|
+
oe(u, t, h), re(t, r), re(t, i), re(t, n), re(n, l), a || (o = bt(
|
|
4402
4398
|
n,
|
|
4403
4399
|
"click",
|
|
4404
4400
|
/*click_handler_2*/
|
|
@@ -4409,7 +4405,7 @@ function Zt(e) {
|
|
|
4409
4405
|
h[0] & /*$_*/
|
|
4410
4406
|
512 && s !== (s = /*$_*/
|
|
4411
4407
|
u[9]("verification.video.how-to") + "") && Ur(l, s), h[0] & /*desktopView*/
|
|
4412
|
-
64 &&
|
|
4408
|
+
64 && _e(
|
|
4413
4409
|
n,
|
|
4414
4410
|
"CashierVerificationVideoLinkDesktop",
|
|
4415
4411
|
/*desktopView*/
|
|
@@ -4417,18 +4413,18 @@ function Zt(e) {
|
|
|
4417
4413
|
);
|
|
4418
4414
|
},
|
|
4419
4415
|
d(u) {
|
|
4420
|
-
u &&
|
|
4416
|
+
u && ie(t), a = !1, o();
|
|
4421
4417
|
}
|
|
4422
4418
|
};
|
|
4423
4419
|
}
|
|
4424
|
-
function
|
|
4420
|
+
function Qn(e) {
|
|
4425
4421
|
let t, r = (
|
|
4426
4422
|
/*displayMessages*/
|
|
4427
4423
|
e[4] && Wt(e)
|
|
4428
4424
|
);
|
|
4429
4425
|
return {
|
|
4430
4426
|
c() {
|
|
4431
|
-
t = q("div"), r && r.c(), K(t, "class", "CashierVerifications"),
|
|
4427
|
+
t = q("div"), r && r.c(), K(t, "class", "CashierVerifications"), _e(
|
|
4432
4428
|
t,
|
|
4433
4429
|
"CashierVerificationsDesktop",
|
|
4434
4430
|
/*desktopView*/
|
|
@@ -4436,12 +4432,12 @@ function Kn(e) {
|
|
|
4436
4432
|
);
|
|
4437
4433
|
},
|
|
4438
4434
|
m(i, n) {
|
|
4439
|
-
|
|
4435
|
+
oe(i, t, n), r && r.m(t, null), e[22](t);
|
|
4440
4436
|
},
|
|
4441
4437
|
p(i, n) {
|
|
4442
4438
|
/*displayMessages*/
|
|
4443
4439
|
i[4] ? r ? r.p(i, n) : (r = Wt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4444
|
-
64 &&
|
|
4440
|
+
64 && _e(
|
|
4445
4441
|
t,
|
|
4446
4442
|
"CashierVerificationsDesktop",
|
|
4447
4443
|
/*desktopView*/
|
|
@@ -4451,15 +4447,15 @@ function Kn(e) {
|
|
|
4451
4447
|
i: Q,
|
|
4452
4448
|
o: Q,
|
|
4453
4449
|
d(i) {
|
|
4454
|
-
i &&
|
|
4450
|
+
i && ie(t), r && r.d(), e[22](null);
|
|
4455
4451
|
}
|
|
4456
4452
|
};
|
|
4457
4453
|
}
|
|
4458
|
-
const
|
|
4459
|
-
function
|
|
4454
|
+
const Kn = "verification_explanation_video_widgets.MP4";
|
|
4455
|
+
function es(e, t, r) {
|
|
4460
4456
|
let i, n;
|
|
4461
|
-
Ht(e,
|
|
4462
|
-
let { endpoint: s } = t, { lang: l = "en" } = t, { translationurl: a = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession:
|
|
4457
|
+
Ht(e, zn, (f) => r(9, i = f)), Ht(e, Wn, (f) => r(28, n = f)), zt.extend(Zn);
|
|
4458
|
+
let { endpoint: s } = t, { lang: l = "en" } = t, { translationurl: a = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, T, v = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set(), U, R, B, j = !0, N = !0, k = !1, X = "";
|
|
4463
4459
|
var Y;
|
|
4464
4460
|
(function(f) {
|
|
4465
4461
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
@@ -4468,19 +4464,19 @@ function ts(e, t, r) {
|
|
|
4468
4464
|
(function(f) {
|
|
4469
4465
|
f.Requested = "Requested";
|
|
4470
4466
|
})(W || (W = {}));
|
|
4471
|
-
var
|
|
4467
|
+
var O;
|
|
4472
4468
|
(function(f) {
|
|
4473
4469
|
f.Unknown = "Unknown", f.Unverified = "Unverified", f.InProgress = "InProgress", f.Failed = "Failed", f.Verified = "Verified", f.Referred = "Referred", f.True = "True", f.False = "False", f.AwaitingForResponse = "AwaitingForResponse";
|
|
4474
|
-
})(
|
|
4475
|
-
var
|
|
4470
|
+
})(O || (O = {}));
|
|
4471
|
+
var P;
|
|
4476
4472
|
(function(f) {
|
|
4477
4473
|
f.Unknown = "Unknown", f.Documents = "Documents", f.Age = "Age", f.Pep = "Pep", f.Sanction = "Sanction", f.Aml = "Aml", f.ProofOfAddress = "ProofOfAddress", f.SourceOfWealth = "SourceOfWealth", f.SocialMedia = "SocialMedia", f.Biometric = "Biometric";
|
|
4478
|
-
})(
|
|
4479
|
-
const
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
],
|
|
4474
|
+
})(P || (P = {}));
|
|
4475
|
+
const me = [
|
|
4476
|
+
O.InProgress,
|
|
4477
|
+
O.Referred,
|
|
4478
|
+
O.AwaitingForResponse
|
|
4479
|
+
], Re = () => {
|
|
4484
4480
|
let f = a;
|
|
4485
4481
|
if (f)
|
|
4486
4482
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
@@ -4494,8 +4490,8 @@ function ts(e, t, r) {
|
|
|
4494
4490
|
Object.keys(jt).forEach((f) => {
|
|
4495
4491
|
Gt(f, jt[f]);
|
|
4496
4492
|
});
|
|
4497
|
-
const
|
|
4498
|
-
|
|
4493
|
+
const _ = () => {
|
|
4494
|
+
Xn(l);
|
|
4499
4495
|
}, g = () => {
|
|
4500
4496
|
let f = document.createElement("style");
|
|
4501
4497
|
f.innerHTML = o, T.appendChild(f);
|
|
@@ -4512,17 +4508,17 @@ function ts(e, t, r) {
|
|
|
4512
4508
|
}, b = () => {
|
|
4513
4509
|
r(18, R = w());
|
|
4514
4510
|
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${l}`), y = new Headers();
|
|
4515
|
-
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${
|
|
4511
|
+
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${x}`), y.append("X-Client-Request-Timestamp", zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4516
4512
|
const S = {
|
|
4517
4513
|
method: "POST",
|
|
4518
4514
|
headers: y,
|
|
4519
4515
|
body: JSON.stringify({})
|
|
4520
4516
|
};
|
|
4521
4517
|
fetch(f, S).then((Z) => Z.json()).then((Z) => {
|
|
4522
|
-
const
|
|
4523
|
-
U =
|
|
4524
|
-
|
|
4525
|
-
}), r(4,
|
|
4518
|
+
const Je = m(Z?.Verifications);
|
|
4519
|
+
U = M(Je), U.VerificationStatuses.forEach((ke) => {
|
|
4520
|
+
ke.VerificationUrlType !== "Widget" && v.add(ke.Vendor);
|
|
4521
|
+
}), r(4, B = ee());
|
|
4526
4522
|
});
|
|
4527
4523
|
}, m = (f) => f ? f.sort((y, S) => new Date(S.Created).getTime() - new Date(y.Created).getTime()) : [], E = () => {
|
|
4528
4524
|
n && b();
|
|
@@ -4533,15 +4529,15 @@ function ts(e, t, r) {
|
|
|
4533
4529
|
return y.cdn + "/cashier/operator-assets/" + y?.mid;
|
|
4534
4530
|
}
|
|
4535
4531
|
return "";
|
|
4536
|
-
},
|
|
4532
|
+
}, M = (f) => {
|
|
4537
4533
|
if (!f || !f.length)
|
|
4538
4534
|
return {
|
|
4539
|
-
VerificationSummaryStatus:
|
|
4535
|
+
VerificationSummaryStatus: O.Unverified,
|
|
4540
4536
|
VerificationStatuses: []
|
|
4541
4537
|
};
|
|
4542
4538
|
const y = F(f);
|
|
4543
4539
|
if (y && y.length) {
|
|
4544
|
-
const S =
|
|
4540
|
+
const S = L(y);
|
|
4545
4541
|
return {
|
|
4546
4542
|
VerificationSummaryStatus: S.Status,
|
|
4547
4543
|
VerificationUrl: S.Flags?.DeferredUrlKey,
|
|
@@ -4549,10 +4545,10 @@ function ts(e, t, r) {
|
|
|
4549
4545
|
};
|
|
4550
4546
|
} else
|
|
4551
4547
|
return {
|
|
4552
|
-
VerificationSummaryStatus: f.some((Z) => Z.Status ===
|
|
4553
|
-
VerificationStatuses: I(f, [
|
|
4548
|
+
VerificationSummaryStatus: f.some((Z) => Z.Status === O.Failed) ? O.Failed : O.Verified,
|
|
4549
|
+
VerificationStatuses: I(f, [O.Failed])
|
|
4554
4550
|
};
|
|
4555
|
-
},
|
|
4551
|
+
}, L = (f) => f.reduce(
|
|
4556
4552
|
(y, S) => y ? new Date(y) < new Date(S) ? S : y : S,
|
|
4557
4553
|
0
|
|
4558
4554
|
), I = (f, y) => f.filter((S) => y.includes(S.Status)).map((S) => ({
|
|
@@ -4561,55 +4557,55 @@ function ts(e, t, r) {
|
|
|
4561
4557
|
VerificationDocuments: S.Documents ? [...S.Documents] : [],
|
|
4562
4558
|
VerificationUrlType: S.FlowInfo?.Type,
|
|
4563
4559
|
VerificationUrl: S.FlowInfo?.Url
|
|
4564
|
-
})), F = (f) => f.filter((y) =>
|
|
4560
|
+
})), F = (f) => f.filter((y) => me.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || z(y) || ae(y) : !1), z = (f) => {
|
|
4565
4561
|
const y = f.Documents && f.VendorName === Y.Manual, S = f.Documents && f.Documents.some((Z) => Z.Status === W.Requested);
|
|
4566
4562
|
return y && S;
|
|
4567
|
-
},
|
|
4563
|
+
}, ae = (f) => f.VendorName === Y.ShuftiPro && f.Status === O.Referred, ee = () => {
|
|
4568
4564
|
switch (U.VerificationSummaryStatus) {
|
|
4569
|
-
case
|
|
4565
|
+
case O.InProgress:
|
|
4570
4566
|
const f = [];
|
|
4571
4567
|
return v.forEach((y) => {
|
|
4572
|
-
f.push(
|
|
4568
|
+
f.push(fe(y));
|
|
4573
4569
|
}), f;
|
|
4574
|
-
case
|
|
4570
|
+
case O.Referred:
|
|
4575
4571
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4576
|
-
case
|
|
4572
|
+
case O.Failed:
|
|
4577
4573
|
return [i("verification.message.failed")];
|
|
4578
4574
|
}
|
|
4579
|
-
},
|
|
4575
|
+
}, fe = (f) => {
|
|
4580
4576
|
const y = U.VerificationStatuses.filter((S) => S.Vendor === f);
|
|
4581
4577
|
if (f === Y.ShuftiPro)
|
|
4582
|
-
return
|
|
4578
|
+
return ne(y);
|
|
4583
4579
|
{
|
|
4584
4580
|
const S = i("verification.idenfy.link-name"), Z = {
|
|
4585
4581
|
link: `<a href="${y[0].VerificationUrl}" target="_blank">${S}</a>`
|
|
4586
4582
|
};
|
|
4587
4583
|
return i("verification.idenfy.in-progress", { values: Z });
|
|
4588
4584
|
}
|
|
4589
|
-
},
|
|
4585
|
+
}, ne = (f) => {
|
|
4590
4586
|
const y = [], S = {}, Z = [
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4587
|
+
P.Biometric,
|
|
4588
|
+
P.Documents,
|
|
4589
|
+
P.ProofOfAddress
|
|
4594
4590
|
];
|
|
4595
|
-
f.forEach((
|
|
4596
|
-
Z.includes(
|
|
4591
|
+
f.forEach((ce) => {
|
|
4592
|
+
Z.includes(ce.Type) && (y.push(ce.Type), S[ce.Type] = V(ce, te(ce.Type)));
|
|
4597
4593
|
});
|
|
4598
|
-
let
|
|
4599
|
-
return
|
|
4600
|
-
}, V = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, te = (f) => i(`verification.shuftipro.link-name.${f}`),
|
|
4594
|
+
let Je = y.every((ce) => C.has(ce)), ke = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4595
|
+
return Je ? i("verification.shuftipro.validations-started") : i(ke, { values: S });
|
|
4596
|
+
}, V = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, te = (f) => i(`verification.shuftipro.link-name.${f}`), se = (f, y) => {
|
|
4601
4597
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4602
4598
|
if (f.target.closest(".verificationLink")) {
|
|
4603
4599
|
const S = f.target.className.split(" ")[1];
|
|
4604
|
-
|
|
4600
|
+
C.add(S), r(4, B = ee());
|
|
4605
4601
|
}
|
|
4606
4602
|
return;
|
|
4607
4603
|
}
|
|
4608
4604
|
y === 0 && r(5, j = !j);
|
|
4609
|
-
},
|
|
4605
|
+
}, pe = () => {
|
|
4610
4606
|
r(6, N = p === "false");
|
|
4611
|
-
},
|
|
4612
|
-
r(8, X = R + "/" + l + "/" +
|
|
4607
|
+
}, Or = () => {
|
|
4608
|
+
r(8, X = R + "/" + l + "/" + Kn);
|
|
4613
4609
|
try {
|
|
4614
4610
|
fetch(X, { method: "HEAD" }).then((f) => {
|
|
4615
4611
|
r(7, k = f.ok);
|
|
@@ -4619,43 +4615,43 @@ function ts(e, t, r) {
|
|
|
4619
4615
|
}
|
|
4620
4616
|
}, St = () => {
|
|
4621
4617
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4622
|
-
}, $r = (f, y) =>
|
|
4618
|
+
}, $r = (f, y) => se(y, f), Br = (f, y) => se(y, f), Mr = () => St();
|
|
4623
4619
|
function Cr(f) {
|
|
4624
|
-
|
|
4620
|
+
st[f ? "unshift" : "push"](() => {
|
|
4625
4621
|
T = f, r(3, T);
|
|
4626
4622
|
});
|
|
4627
4623
|
}
|
|
4628
4624
|
return e.$$set = (f) => {
|
|
4629
|
-
"endpoint" in f && r(12, s = f.endpoint), "lang" in f && r(13, l = f.lang), "translationurl" in f && r(14, a = f.translationurl), "clientstyling" in f && r(0, o = f.clientstyling), "clientstylingurl" in f && r(1, u = f.clientstylingurl), "session" in f && r(15, h = f.session), "customerid" in f && r(16, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview), "playersession" in f && r(17,
|
|
4625
|
+
"endpoint" in f && r(12, s = f.endpoint), "lang" in f && r(13, l = f.lang), "translationurl" in f && r(14, a = f.translationurl), "clientstyling" in f && r(0, o = f.clientstyling), "clientstylingurl" in f && r(1, u = f.clientstylingurl), "session" in f && r(15, h = f.session), "customerid" in f && r(16, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview), "playersession" in f && r(17, x = f.playersession);
|
|
4630
4626
|
}, e.$$.update = () => {
|
|
4631
4627
|
e.$$.dirty[0] & /*lang*/
|
|
4632
|
-
8192 && l &&
|
|
4633
|
-
167936 && s && h &&
|
|
4634
|
-
167936 && s && !h &&
|
|
4635
|
-
16384 && a &&
|
|
4628
|
+
8192 && l && _(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4629
|
+
167936 && s && h && x && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4630
|
+
167936 && s && !h && x && E(), e.$$.dirty[0] & /*translationurl*/
|
|
4631
|
+
16384 && a && Re(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4636
4632
|
9 && o && T && g(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4637
4633
|
10 && u && T && d(), e.$$.dirty[0] & /*ismobileview*/
|
|
4638
|
-
4 && p &&
|
|
4639
|
-
262144 && R &&
|
|
4634
|
+
4 && p && pe(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4635
|
+
262144 && R && Or();
|
|
4640
4636
|
}, [
|
|
4641
4637
|
o,
|
|
4642
4638
|
u,
|
|
4643
4639
|
p,
|
|
4644
4640
|
T,
|
|
4645
|
-
|
|
4641
|
+
B,
|
|
4646
4642
|
j,
|
|
4647
4643
|
N,
|
|
4648
4644
|
k,
|
|
4649
4645
|
X,
|
|
4650
4646
|
i,
|
|
4651
|
-
|
|
4647
|
+
se,
|
|
4652
4648
|
St,
|
|
4653
4649
|
s,
|
|
4654
4650
|
l,
|
|
4655
4651
|
a,
|
|
4656
4652
|
h,
|
|
4657
4653
|
c,
|
|
4658
|
-
|
|
4654
|
+
x,
|
|
4659
4655
|
R,
|
|
4660
4656
|
$r,
|
|
4661
4657
|
Br,
|
|
@@ -4663,13 +4659,13 @@ function ts(e, t, r) {
|
|
|
4663
4659
|
Cr
|
|
4664
4660
|
];
|
|
4665
4661
|
}
|
|
4666
|
-
class
|
|
4662
|
+
class ts extends ei {
|
|
4667
4663
|
constructor(t) {
|
|
4668
4664
|
super(), Qr(
|
|
4669
4665
|
this,
|
|
4670
4666
|
t,
|
|
4671
|
-
|
|
4672
|
-
|
|
4667
|
+
es,
|
|
4668
|
+
Qn,
|
|
4673
4669
|
Qt,
|
|
4674
4670
|
{
|
|
4675
4671
|
endpoint: 12,
|
|
@@ -4682,7 +4678,7 @@ class rs extends ei {
|
|
|
4682
4678
|
ismobileview: 2,
|
|
4683
4679
|
playersession: 17
|
|
4684
4680
|
},
|
|
4685
|
-
|
|
4681
|
+
Jn,
|
|
4686
4682
|
[-1, -1]
|
|
4687
4683
|
);
|
|
4688
4684
|
}
|
|
@@ -4741,27 +4737,27 @@ class rs extends ei {
|
|
|
4741
4737
|
this.$$set({ playersession: t }), J();
|
|
4742
4738
|
}
|
|
4743
4739
|
}
|
|
4744
|
-
Kr(
|
|
4740
|
+
Kr(ts, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
4745
4741
|
export {
|
|
4746
|
-
|
|
4742
|
+
ts as C,
|
|
4747
4743
|
ei as S,
|
|
4748
4744
|
Lr as a,
|
|
4749
|
-
|
|
4745
|
+
oe as b,
|
|
4750
4746
|
Kr as c,
|
|
4751
|
-
|
|
4752
|
-
|
|
4747
|
+
ie as d,
|
|
4748
|
+
ns as e,
|
|
4753
4749
|
J as f,
|
|
4754
|
-
|
|
4755
|
-
|
|
4750
|
+
q as g,
|
|
4751
|
+
ye as h,
|
|
4756
4752
|
Qr as i,
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4753
|
+
rs as j,
|
|
4754
|
+
K as k,
|
|
4755
|
+
re as l,
|
|
4756
|
+
is as m,
|
|
4761
4757
|
Q as n,
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4758
|
+
ss as o,
|
|
4759
|
+
bt as p,
|
|
4760
|
+
st as q,
|
|
4765
4761
|
Qt as s,
|
|
4766
|
-
|
|
4762
|
+
_e as t
|
|
4767
4763
|
};
|