@everymatrix/cashier-error 1.86.20 → 1.86.22
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/{CashierError-DGO7RbEg.js → CashierError-9i_njvWZ.js} +258 -256
- package/components/{CashierError-l26mpTff.cjs → CashierError-CjUqk0KH.cjs} +3 -3
- package/components/{CashierError-Bupr3kgq.js → CashierError-DLf2pjbY.js} +244 -242
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
2
|
var ir = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var or = Object.prototype.hasOwnProperty,
|
|
4
|
+
var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Be = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
or.call(t, r) && Be(e, r, t[r]);
|
|
8
8
|
if (Qe)
|
|
9
9
|
for (var r of Qe(t))
|
|
10
|
-
|
|
10
|
+
ar.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ke = (e, t) => nr(e, ir(t));
|
|
13
13
|
var w = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
@@ -15,22 +15,22 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(l));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (s) {
|
|
19
|
+
i(s);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (s) {
|
|
25
|
+
i(s);
|
|
26
26
|
}
|
|
27
|
-
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o,
|
|
27
|
+
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
31
|
function A() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function sr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -53,9 +53,9 @@ function We(e) {
|
|
|
53
53
|
function St(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let ae;
|
|
57
57
|
function rt(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
59
59
|
}
|
|
60
60
|
function ur(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -72,14 +72,14 @@ function Bt(e, ...t) {
|
|
|
72
72
|
function lr(e, t, r) {
|
|
73
73
|
e.$$.on_destroy.push(Bt(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function se(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = At(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function At(e, t, r, n) {
|
|
82
|
-
return e[1] && n ?
|
|
82
|
+
return e[1] && n ? sr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
84
|
function ue(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
@@ -87,8 +87,8 @@ function ue(e, t, r, n) {
|
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
90
|
-
const o = [],
|
|
91
|
-
for (let u = 0; u <
|
|
90
|
+
const o = [], a = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let u = 0; u < a; u += 1)
|
|
92
92
|
o[u] = t.dirty[u] | i[u];
|
|
93
93
|
return o;
|
|
94
94
|
}
|
|
@@ -98,8 +98,8 @@ function ue(e, t, r, n) {
|
|
|
98
98
|
}
|
|
99
99
|
function le(e, t, r, n, i, o) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const
|
|
102
|
-
e.p(
|
|
101
|
+
const a = At(t, r, n, o);
|
|
102
|
+
e.p(a, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function he(e) {
|
|
@@ -159,12 +159,12 @@ function mr() {
|
|
|
159
159
|
function dr(e, t, r, n) {
|
|
160
160
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function G(e, t, r) {
|
|
163
163
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
164
164
|
}
|
|
165
165
|
function ce(e, t, r) {
|
|
166
166
|
const n = t.toLowerCase();
|
|
167
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
167
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
|
|
168
168
|
}
|
|
169
169
|
function pr(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
@@ -195,14 +195,14 @@ function yr(e) {
|
|
|
195
195
|
gr().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
197
|
const U = [], $e = [];
|
|
198
|
-
let
|
|
198
|
+
let k = [];
|
|
199
199
|
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
200
200
|
let Re = !1;
|
|
201
201
|
function Er() {
|
|
202
202
|
Re || (Re = !0, _r.then(B));
|
|
203
203
|
}
|
|
204
204
|
function De(e) {
|
|
205
|
-
|
|
205
|
+
k.push(e);
|
|
206
206
|
}
|
|
207
207
|
const Pe = /* @__PURE__ */ new Set();
|
|
208
208
|
let R = 0;
|
|
@@ -221,11 +221,11 @@ function B() {
|
|
|
221
221
|
}
|
|
222
222
|
for (Y(null), U.length = 0, R = 0; $e.length; )
|
|
223
223
|
$e.pop()();
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
224
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
225
|
+
const r = k[t];
|
|
226
226
|
Pe.has(r) || (Pe.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
k.length = 0;
|
|
229
229
|
} while (U.length);
|
|
230
230
|
for (; nt.length; )
|
|
231
231
|
nt.pop()();
|
|
@@ -240,7 +240,7 @@ function vr(e) {
|
|
|
240
240
|
}
|
|
241
241
|
function xr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
244
244
|
}
|
|
245
245
|
const de = /* @__PURE__ */ new Set();
|
|
246
246
|
let Tr;
|
|
@@ -270,10 +270,10 @@ function wr(e, t) {
|
|
|
270
270
|
function Sr(e, t) {
|
|
271
271
|
e.$$.dirty[0] === -1 && (U.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
|
-
function Br(e, t, r, n, i, o,
|
|
273
|
+
function Br(e, t, r, n, i, o, a = null, u = [-1]) {
|
|
274
274
|
const l = K;
|
|
275
275
|
Y(e);
|
|
276
|
-
const
|
|
276
|
+
const s = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
279
279
|
// state
|
|
@@ -294,17 +294,17 @@ function Br(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
294
294
|
skip_bound: !1,
|
|
295
295
|
root: t.target || l.$$.root
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
a && a(s.root);
|
|
298
298
|
let h = !1;
|
|
299
|
-
if (
|
|
299
|
+
if (s.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
|
|
300
300
|
const p = d.length ? d[0] : m;
|
|
301
|
-
return
|
|
302
|
-
}) : [],
|
|
301
|
+
return s.ctx && i(s.ctx[f], s.ctx[f] = p) && (!s.skip_bound && s.bound[f] && s.bound[f](p), h && Sr(e, f)), m;
|
|
302
|
+
}) : [], s.update(), h = !0, re(s.before_update), s.fragment = n ? n(s.ctx) : !1, t.target) {
|
|
303
303
|
if (t.hydrate) {
|
|
304
304
|
const f = pr(t.target);
|
|
305
|
-
|
|
305
|
+
s.fragment && s.fragment.l(f), f.forEach(M);
|
|
306
306
|
} else
|
|
307
|
-
|
|
307
|
+
s.fragment && s.fragment.c();
|
|
308
308
|
t.intro && q(e.$$.fragment), Hr(e, t.target, t.anchor), B();
|
|
309
309
|
}
|
|
310
310
|
Y(l);
|
|
@@ -351,20 +351,20 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
351
351
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
352
|
let t = function(o) {
|
|
353
353
|
return () => {
|
|
354
|
-
let
|
|
354
|
+
let a;
|
|
355
355
|
return {
|
|
356
356
|
c: function() {
|
|
357
|
-
|
|
357
|
+
a = C("slot"), o !== "default" && G(a, "name", o);
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
* @param {HTMLElement} target
|
|
361
361
|
* @param {HTMLElement} [anchor]
|
|
362
362
|
*/
|
|
363
|
-
m: function(
|
|
364
|
-
X(
|
|
363
|
+
m: function(s, h) {
|
|
364
|
+
X(s, a, h);
|
|
365
365
|
},
|
|
366
|
-
d: function(
|
|
367
|
-
|
|
366
|
+
d: function(s) {
|
|
367
|
+
s && M(a);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
};
|
|
@@ -375,8 +375,8 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
375
375
|
for (const o of this.$$s)
|
|
376
376
|
o in n && (r[o] = [t(o)]);
|
|
377
377
|
for (const o of this.attributes) {
|
|
378
|
-
const
|
|
379
|
-
|
|
378
|
+
const a = this.$$g_p(o.name);
|
|
379
|
+
a in this.$$d || (this.$$d[a] = pe(a, o.value, this.$$p_d, "toProp"));
|
|
380
380
|
}
|
|
381
381
|
for (const o in this.$$p_d)
|
|
382
382
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -393,21 +393,21 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
393
393
|
this.$$r = !0;
|
|
394
394
|
for (const o in this.$$p_d)
|
|
395
395
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
396
|
-
const
|
|
396
|
+
const a = pe(
|
|
397
397
|
o,
|
|
398
398
|
this.$$d[o],
|
|
399
399
|
this.$$p_d,
|
|
400
400
|
"toAttribute"
|
|
401
401
|
);
|
|
402
|
-
|
|
402
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
403
403
|
}
|
|
404
404
|
this.$$r = !1;
|
|
405
405
|
};
|
|
406
406
|
this.$$c.$$.after_update.push(i), i();
|
|
407
407
|
for (const o in this.$$l)
|
|
408
|
-
for (const
|
|
409
|
-
const u = this.$$c.$on(o,
|
|
410
|
-
this.$$l_u.set(
|
|
408
|
+
for (const a of this.$$l[o]) {
|
|
409
|
+
const u = this.$$c.$on(o, a);
|
|
410
|
+
this.$$l_u.set(a, u);
|
|
411
411
|
}
|
|
412
412
|
this.$$l = {};
|
|
413
413
|
}
|
|
@@ -461,7 +461,7 @@ function pe(e, t, r, n) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ar(e, t, r, n, i, o) {
|
|
464
|
-
let
|
|
464
|
+
let a = class extends Ot {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(e, r, i), this.$$p_d = t;
|
|
467
467
|
}
|
|
@@ -472,24 +472,24 @@ function Ar(e, t, r, n, i, o) {
|
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
474
|
return Object.keys(t).forEach((u) => {
|
|
475
|
-
Object.defineProperty(
|
|
475
|
+
Object.defineProperty(a.prototype, u, {
|
|
476
476
|
get() {
|
|
477
477
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
478
478
|
},
|
|
479
479
|
set(l) {
|
|
480
|
-
var
|
|
481
|
-
l = pe(u, l, t), this.$$d[u] = l, (
|
|
480
|
+
var s;
|
|
481
|
+
l = pe(u, l, t), this.$$d[u] = l, (s = this.$$c) == null || s.$set({ [u]: l });
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}), n.forEach((u) => {
|
|
485
|
-
Object.defineProperty(
|
|
485
|
+
Object.defineProperty(a.prototype, u, {
|
|
486
486
|
get() {
|
|
487
487
|
var l;
|
|
488
488
|
return (l = this.$$c) == null ? void 0 : l[u];
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}), e.element = /** @type {any} */
|
|
492
|
-
|
|
492
|
+
a, a;
|
|
493
493
|
}
|
|
494
494
|
class Pr {
|
|
495
495
|
constructor() {
|
|
@@ -556,7 +556,7 @@ function Cr(e, t) {
|
|
|
556
556
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Lr(e, t, r) {
|
|
560
560
|
if (window.emMessageBus) {
|
|
561
561
|
const n = document.createElement("style");
|
|
562
562
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -565,7 +565,7 @@ function Nr(e, t, r) {
|
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
const D = [];
|
|
568
|
-
function
|
|
568
|
+
function Nr(e, t) {
|
|
569
569
|
return {
|
|
570
570
|
subscribe: Te(e, t).subscribe
|
|
571
571
|
};
|
|
@@ -576,11 +576,11 @@ function Te(e, t = A) {
|
|
|
576
576
|
function i(u) {
|
|
577
577
|
if (St(e, u) && (e = u, r)) {
|
|
578
578
|
const l = !D.length;
|
|
579
|
-
for (const
|
|
580
|
-
|
|
579
|
+
for (const s of n)
|
|
580
|
+
s[1](), D.push(s, e);
|
|
581
581
|
if (l) {
|
|
582
|
-
for (let
|
|
583
|
-
D[
|
|
582
|
+
for (let s = 0; s < D.length; s += 2)
|
|
583
|
+
D[s][0](D[s + 1]);
|
|
584
584
|
D.length = 0;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
@@ -588,34 +588,34 @@ function Te(e, t = A) {
|
|
|
588
588
|
function o(u) {
|
|
589
589
|
i(u(e));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
593
|
-
return n.add(
|
|
594
|
-
n.delete(
|
|
591
|
+
function a(u, l = A) {
|
|
592
|
+
const s = [u, l];
|
|
593
|
+
return n.add(s), n.size === 1 && (r = t(i, o) || A), u(e), () => {
|
|
594
|
+
n.delete(s), n.size === 0 && r && (r(), r = null);
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
return { set: i, update: o, subscribe:
|
|
597
|
+
return { set: i, update: o, subscribe: a };
|
|
598
598
|
}
|
|
599
599
|
function W(e, t, r) {
|
|
600
600
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
601
601
|
if (!i.every(Boolean))
|
|
602
602
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
603
603
|
const o = t.length < 2;
|
|
604
|
-
return
|
|
604
|
+
return Nr(r, (a, u) => {
|
|
605
605
|
let l = !1;
|
|
606
|
-
const
|
|
606
|
+
const s = [];
|
|
607
607
|
let h = 0, f = A;
|
|
608
608
|
const m = () => {
|
|
609
609
|
if (h)
|
|
610
610
|
return;
|
|
611
611
|
f();
|
|
612
|
-
const p = t(n ?
|
|
613
|
-
o ?
|
|
612
|
+
const p = t(n ? s[0] : s, a, u);
|
|
613
|
+
o ? a(p) : f = We(p) ? p : A;
|
|
614
614
|
}, d = i.map(
|
|
615
615
|
(p, v) => Bt(
|
|
616
616
|
p,
|
|
617
617
|
(T) => {
|
|
618
|
-
|
|
618
|
+
s[v] = T, h &= ~(1 << v), l && m();
|
|
619
619
|
},
|
|
620
620
|
() => {
|
|
621
621
|
h |= 1 << v;
|
|
@@ -638,11 +638,11 @@ function Rr(e) {
|
|
|
638
638
|
}
|
|
639
639
|
function Dr(e) {
|
|
640
640
|
var t = Object.prototype.toString.call(e);
|
|
641
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
641
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
|
|
642
642
|
}
|
|
643
|
-
var Ur = typeof Symbol == "function" && Symbol.for,
|
|
644
|
-
function
|
|
645
|
-
return e.$$typeof ===
|
|
643
|
+
var Ur = typeof Symbol == "function" && Symbol.for, kr = Ur ? Symbol.for("react.element") : 60103;
|
|
644
|
+
function Gr(e) {
|
|
645
|
+
return e.$$typeof === kr;
|
|
646
646
|
}
|
|
647
647
|
function Fr(e) {
|
|
648
648
|
return Array.isArray(e) ? [] : {};
|
|
@@ -761,15 +761,15 @@ function Ct(e, t, r) {
|
|
|
761
761
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
762
762
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Lt(e, t, r, n, i) {
|
|
765
765
|
return r.bind(t, e, n, i);
|
|
766
766
|
}
|
|
767
767
|
function en(e, t) {
|
|
768
768
|
var r = e.length === 1 ? Kr : Ct;
|
|
769
|
-
return
|
|
769
|
+
return Lt(e, this, r, t.cache.create(), t.serializer);
|
|
770
770
|
}
|
|
771
771
|
function tn(e, t) {
|
|
772
|
-
return
|
|
772
|
+
return Lt(e, this, Ct, t.cache.create(), t.serializer);
|
|
773
773
|
}
|
|
774
774
|
var rn = function() {
|
|
775
775
|
return JSON.stringify(arguments);
|
|
@@ -816,10 +816,10 @@ var j;
|
|
|
816
816
|
function ot(e) {
|
|
817
817
|
return e.type === _.literal;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function an(e) {
|
|
820
820
|
return e.type === _.argument;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Nt(e) {
|
|
823
823
|
return e.type === _.number;
|
|
824
824
|
}
|
|
825
825
|
function Mt(e) {
|
|
@@ -834,19 +834,19 @@ function Rt(e) {
|
|
|
834
834
|
function Dt(e) {
|
|
835
835
|
return e.type === _.plural;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function sn(e) {
|
|
838
838
|
return e.type === _.pound;
|
|
839
839
|
}
|
|
840
840
|
function Ut(e) {
|
|
841
841
|
return e.type === _.tag;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function kt(e) {
|
|
844
844
|
return !!(e && typeof e == "object" && e.type === j.number);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function ke(e) {
|
|
847
847
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
848
848
|
}
|
|
849
|
-
var
|
|
849
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, un = /(?:[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;
|
|
850
850
|
function ln(e) {
|
|
851
851
|
var t = {};
|
|
852
852
|
return e.replace(un, function(r) {
|
|
@@ -955,11 +955,11 @@ function cn(e) {
|
|
|
955
955
|
for (var t = e.split(hn).filter(function(m) {
|
|
956
956
|
return m.length > 0;
|
|
957
957
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
958
|
-
var o = i[n],
|
|
959
|
-
if (
|
|
958
|
+
var o = i[n], a = o.split("/");
|
|
959
|
+
if (a.length === 0)
|
|
960
960
|
throw new Error("Invalid number skeleton");
|
|
961
|
-
for (var u =
|
|
962
|
-
var f = h[
|
|
961
|
+
for (var u = a[0], l = a.slice(1), s = 0, h = l; s < h.length; s++) {
|
|
962
|
+
var f = h[s];
|
|
963
963
|
if (f.length === 0)
|
|
964
964
|
throw new Error("Invalid number skeleton");
|
|
965
965
|
}
|
|
@@ -970,8 +970,8 @@ function cn(e) {
|
|
|
970
970
|
function fn(e) {
|
|
971
971
|
return e.replace(/^(.*?)-/, "");
|
|
972
972
|
}
|
|
973
|
-
var
|
|
974
|
-
function
|
|
973
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
974
|
+
function st(e) {
|
|
975
975
|
var t = {};
|
|
976
976
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
977
977
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
@@ -1070,13 +1070,13 @@ function pn(e) {
|
|
|
1070
1070
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1071
1071
|
continue;
|
|
1072
1072
|
case "scientific":
|
|
1073
|
-
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1074
|
-
return E(E({}, l), ut(
|
|
1073
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, s) {
|
|
1074
|
+
return E(E({}, l), ut(s));
|
|
1075
1075
|
}, {}));
|
|
1076
1076
|
continue;
|
|
1077
1077
|
case "engineering":
|
|
1078
|
-
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1079
|
-
return E(E({}, l), ut(
|
|
1078
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, s) {
|
|
1079
|
+
return E(E({}, l), ut(s));
|
|
1080
1080
|
}, {}));
|
|
1081
1081
|
continue;
|
|
1082
1082
|
case "notation-simple":
|
|
@@ -1121,8 +1121,8 @@ function pn(e) {
|
|
|
1121
1121
|
case "integer-width":
|
|
1122
1122
|
if (i.options.length > 1)
|
|
1123
1123
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1124
|
-
i.options[0].replace(mn, function(l,
|
|
1125
|
-
if (
|
|
1124
|
+
i.options[0].replace(mn, function(l, s, h, f, m, d) {
|
|
1125
|
+
if (s)
|
|
1126
1126
|
t.minimumIntegerDigits = h.length;
|
|
1127
1127
|
else {
|
|
1128
1128
|
if (f && m)
|
|
@@ -1138,22 +1138,22 @@ function pn(e) {
|
|
|
1138
1138
|
t.minimumIntegerDigits = i.stem.length;
|
|
1139
1139
|
continue;
|
|
1140
1140
|
}
|
|
1141
|
-
if (
|
|
1141
|
+
if (at.test(i.stem)) {
|
|
1142
1142
|
if (i.options.length > 1)
|
|
1143
1143
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1144
|
-
i.stem.replace(
|
|
1145
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1144
|
+
i.stem.replace(at, function(l, s, h, f, m, d) {
|
|
1145
|
+
return h === "*" ? t.minimumFractionDigits = s.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = s.length, t.maximumFractionDigits = s.length), "";
|
|
1146
1146
|
});
|
|
1147
1147
|
var o = i.options[0];
|
|
1148
|
-
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t),
|
|
1148
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), st(o)));
|
|
1149
1149
|
continue;
|
|
1150
1150
|
}
|
|
1151
1151
|
if (Ft.test(i.stem)) {
|
|
1152
|
-
t = E(E({}, t),
|
|
1152
|
+
t = E(E({}, t), st(i.stem));
|
|
1153
1153
|
continue;
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1155
|
+
var a = zt(i.stem);
|
|
1156
|
+
a && (t = E(E({}, t), a));
|
|
1157
1157
|
var u = dn(i.stem);
|
|
1158
1158
|
u && (t = E(E({}, t), u));
|
|
1159
1159
|
}
|
|
@@ -2580,11 +2580,11 @@ function bn(e, t) {
|
|
|
2580
2580
|
if (i === "j") {
|
|
2581
2581
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2582
2582
|
o++, n++;
|
|
2583
|
-
var
|
|
2584
|
-
for ((
|
|
2583
|
+
var a = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", s = gn(t);
|
|
2584
|
+
for ((s == "H" || s == "k") && (u = 0); u-- > 0; )
|
|
2585
2585
|
r += l;
|
|
2586
|
-
for (;
|
|
2587
|
-
r =
|
|
2586
|
+
for (; a-- > 0; )
|
|
2587
|
+
r = s + r;
|
|
2588
2588
|
} else
|
|
2589
2589
|
i === "J" ? r += "H" : r += i;
|
|
2590
2590
|
}
|
|
@@ -2612,18 +2612,18 @@ function gn(e) {
|
|
|
2612
2612
|
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2613
2613
|
return i[0];
|
|
2614
2614
|
}
|
|
2615
|
-
var
|
|
2615
|
+
var Le, yn = new RegExp("^".concat(Gt.source, "*")), _n = new RegExp("".concat(Gt.source, "*$"));
|
|
2616
2616
|
function y(e, t) {
|
|
2617
2617
|
return { start: e, end: t };
|
|
2618
2618
|
}
|
|
2619
2619
|
var En = !!String.prototype.startsWith && "_a".startsWith("a", 1), vn = !!String.fromCodePoint, xn = !!Object.fromEntries, Tn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, Bn = Sn ? Number.isSafeInteger : function(e) {
|
|
2620
2620
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2621
|
-
},
|
|
2621
|
+
}, Ge = !0;
|
|
2622
2622
|
try {
|
|
2623
2623
|
var An = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
-
|
|
2624
|
+
Ge = ((Le = An.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2625
2625
|
} catch (e) {
|
|
2626
|
-
|
|
2626
|
+
Ge = !1;
|
|
2627
2627
|
}
|
|
2628
2628
|
var lt = En ? (
|
|
2629
2629
|
// Native
|
|
@@ -2640,10 +2640,10 @@ var lt = En ? (
|
|
|
2640
2640
|
function() {
|
|
2641
2641
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2642
2642
|
t[r] = arguments[r];
|
|
2643
|
-
for (var n = "", i = t.length, o = 0,
|
|
2644
|
-
if (
|
|
2645
|
-
throw RangeError(
|
|
2646
|
-
n +=
|
|
2643
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2644
|
+
if (a = t[o++], a > 1114111)
|
|
2645
|
+
throw RangeError(a + " is not a valid code point");
|
|
2646
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2647
2647
|
}
|
|
2648
2648
|
return n;
|
|
2649
2649
|
}
|
|
@@ -2653,8 +2653,8 @@ var lt = En ? (
|
|
|
2653
2653
|
// Ponyfill
|
|
2654
2654
|
function(t) {
|
|
2655
2655
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2656
|
-
var o = i[n],
|
|
2657
|
-
r[
|
|
2656
|
+
var o = i[n], a = o[0], u = o[1];
|
|
2657
|
+
r[a] = u;
|
|
2658
2658
|
}
|
|
2659
2659
|
return r;
|
|
2660
2660
|
}
|
|
@@ -2698,7 +2698,7 @@ function Xt(e, t) {
|
|
|
2698
2698
|
return new RegExp(e, t);
|
|
2699
2699
|
}
|
|
2700
2700
|
var je;
|
|
2701
|
-
if (
|
|
2701
|
+
if (Ge) {
|
|
2702
2702
|
var ct = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2703
2703
|
je = function(t, r) {
|
|
2704
2704
|
var n;
|
|
@@ -2710,7 +2710,7 @@ if (ke) {
|
|
|
2710
2710
|
je = function(t, r) {
|
|
2711
2711
|
for (var n = []; ; ) {
|
|
2712
2712
|
var i = Vt(t, r);
|
|
2713
|
-
if (i === void 0 || Wt(i) ||
|
|
2713
|
+
if (i === void 0 || Wt(i) || Nn(i))
|
|
2714
2714
|
break;
|
|
2715
2715
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2716
2716
|
}
|
|
@@ -2730,10 +2730,10 @@ var In = (
|
|
|
2730
2730
|
for (var i = []; !this.isEOF(); ) {
|
|
2731
2731
|
var o = this.char();
|
|
2732
2732
|
if (o === 123) {
|
|
2733
|
-
var
|
|
2734
|
-
if (
|
|
2735
|
-
return
|
|
2736
|
-
i.push(
|
|
2733
|
+
var a = this.parseArgument(t, n);
|
|
2734
|
+
if (a.err)
|
|
2735
|
+
return a;
|
|
2736
|
+
i.push(a.val);
|
|
2737
2737
|
} else {
|
|
2738
2738
|
if (o === 125 && t > 0)
|
|
2739
2739
|
break;
|
|
@@ -2748,15 +2748,15 @@ var In = (
|
|
|
2748
2748
|
break;
|
|
2749
2749
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2750
2750
|
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
2751
|
-
var
|
|
2752
|
-
if (
|
|
2753
|
-
return
|
|
2754
|
-
i.push(
|
|
2751
|
+
var a = this.parseTag(t, r);
|
|
2752
|
+
if (a.err)
|
|
2753
|
+
return a;
|
|
2754
|
+
i.push(a.val);
|
|
2755
2755
|
} else {
|
|
2756
|
-
var
|
|
2757
|
-
if (
|
|
2758
|
-
return
|
|
2759
|
-
i.push(
|
|
2756
|
+
var a = this.parseLiteral(t, r);
|
|
2757
|
+
if (a.err)
|
|
2758
|
+
return a;
|
|
2759
|
+
i.push(a.val);
|
|
2760
2760
|
}
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
@@ -2778,16 +2778,16 @@ var In = (
|
|
|
2778
2778
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2779
2779
|
if (o.err)
|
|
2780
2780
|
return o;
|
|
2781
|
-
var
|
|
2781
|
+
var a = o.val, u = this.clonePosition();
|
|
2782
2782
|
if (this.bumpIf("</")) {
|
|
2783
2783
|
if (this.isEOF() || !ze(this.char()))
|
|
2784
2784
|
return this.error(b.INVALID_TAG, y(u, this.clonePosition()));
|
|
2785
|
-
var l = this.clonePosition(),
|
|
2786
|
-
return i !==
|
|
2785
|
+
var l = this.clonePosition(), s = this.parseTagName();
|
|
2786
|
+
return i !== s ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2787
2787
|
val: {
|
|
2788
2788
|
type: _.tag,
|
|
2789
2789
|
value: i,
|
|
2790
|
-
children:
|
|
2790
|
+
children: a,
|
|
2791
2791
|
location: y(n, this.clonePosition())
|
|
2792
2792
|
},
|
|
2793
2793
|
err: null
|
|
@@ -2798,7 +2798,7 @@ var In = (
|
|
|
2798
2798
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2799
2799
|
}, e.prototype.parseTagName = function() {
|
|
2800
2800
|
var t = this.offset();
|
|
2801
|
-
for (this.bump(); !this.isEOF() &&
|
|
2801
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2802
2802
|
this.bump();
|
|
2803
2803
|
return this.message.slice(t, this.offset());
|
|
2804
2804
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2808,9 +2808,9 @@ var In = (
|
|
|
2808
2808
|
i += o;
|
|
2809
2809
|
continue;
|
|
2810
2810
|
}
|
|
2811
|
-
var
|
|
2812
|
-
if (
|
|
2813
|
-
i +=
|
|
2811
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2812
|
+
if (a) {
|
|
2813
|
+
i += a;
|
|
2814
2814
|
continue;
|
|
2815
2815
|
}
|
|
2816
2816
|
var u = this.tryParseLeftAngleBracket();
|
|
@@ -2897,18 +2897,18 @@ var In = (
|
|
|
2897
2897
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2898
2898
|
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2899
2899
|
this.bumpTo(i);
|
|
2900
|
-
var o = this.clonePosition(),
|
|
2901
|
-
return { value: n, location:
|
|
2900
|
+
var o = this.clonePosition(), a = y(t, o);
|
|
2901
|
+
return { value: n, location: a };
|
|
2902
2902
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2903
|
-
var o,
|
|
2903
|
+
var o, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2904
2904
|
switch (u) {
|
|
2905
2905
|
case "":
|
|
2906
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, y(
|
|
2906
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
|
|
2907
2907
|
case "number":
|
|
2908
2908
|
case "date":
|
|
2909
2909
|
case "time": {
|
|
2910
2910
|
this.bumpSpace();
|
|
2911
|
-
var
|
|
2911
|
+
var s = null;
|
|
2912
2912
|
if (this.bumpIf(",")) {
|
|
2913
2913
|
this.bumpSpace();
|
|
2914
2914
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
@@ -2918,16 +2918,16 @@ var In = (
|
|
|
2918
2918
|
if (m.length === 0)
|
|
2919
2919
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2920
2920
|
var d = y(h, this.clonePosition());
|
|
2921
|
-
|
|
2921
|
+
s = { style: m, styleLocation: d };
|
|
2922
2922
|
}
|
|
2923
2923
|
var p = this.tryParseArgumentClose(i);
|
|
2924
2924
|
if (p.err)
|
|
2925
2925
|
return p;
|
|
2926
2926
|
var v = y(i, this.clonePosition());
|
|
2927
|
-
if (
|
|
2928
|
-
var T = Pn(
|
|
2927
|
+
if (s && lt(s == null ? void 0 : s.style, "::", 0)) {
|
|
2928
|
+
var T = Pn(s.style.slice(2));
|
|
2929
2929
|
if (u === "number") {
|
|
2930
|
-
var f = this.parseNumberSkeletonFromString(T,
|
|
2930
|
+
var f = this.parseNumberSkeletonFromString(T, s.styleLocation);
|
|
2931
2931
|
return f.err ? f : {
|
|
2932
2932
|
val: { type: _.number, value: n, location: v, style: f.val },
|
|
2933
2933
|
err: null
|
|
@@ -2940,7 +2940,7 @@ var In = (
|
|
|
2940
2940
|
var m = {
|
|
2941
2941
|
type: j.dateTime,
|
|
2942
2942
|
pattern: x,
|
|
2943
|
-
location:
|
|
2943
|
+
location: s.styleLocation,
|
|
2944
2944
|
parsedOptions: this.shouldParseSkeletons ? ln(x) : {}
|
|
2945
2945
|
}, c = u === "date" ? _.date : _.time;
|
|
2946
2946
|
return {
|
|
@@ -2954,7 +2954,7 @@ var In = (
|
|
|
2954
2954
|
type: u === "number" ? _.number : u === "date" ? _.date : _.time,
|
|
2955
2955
|
value: n,
|
|
2956
2956
|
location: v,
|
|
2957
|
-
style: (o =
|
|
2957
|
+
style: (o = s == null ? void 0 : s.style) !== null && o !== void 0 ? o : null
|
|
2958
2958
|
},
|
|
2959
2959
|
err: null
|
|
2960
2960
|
};
|
|
@@ -2966,7 +2966,7 @@ var In = (
|
|
|
2966
2966
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2967
2967
|
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ye({}, g)));
|
|
2968
2968
|
this.bumpSpace();
|
|
2969
|
-
var P = this.parseIdentifierIfPossible(),
|
|
2969
|
+
var P = this.parseIdentifierIfPossible(), N = 0;
|
|
2970
2970
|
if (u !== "select" && P.value === "offset") {
|
|
2971
2971
|
if (!this.bumpIf(":"))
|
|
2972
2972
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -2974,7 +2974,7 @@ var In = (
|
|
|
2974
2974
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2975
2975
|
if (f.err)
|
|
2976
2976
|
return f;
|
|
2977
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(),
|
|
2977
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), N = f.val;
|
|
2978
2978
|
}
|
|
2979
2979
|
var oe = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2980
2980
|
if (oe.err)
|
|
@@ -2996,7 +2996,7 @@ var In = (
|
|
|
2996
2996
|
type: _.plural,
|
|
2997
2997
|
value: n,
|
|
2998
2998
|
options: ht(oe.val),
|
|
2999
|
-
offset:
|
|
2999
|
+
offset: N,
|
|
3000
3000
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3001
3001
|
location: qe
|
|
3002
3002
|
},
|
|
@@ -3004,7 +3004,7 @@ var In = (
|
|
|
3004
3004
|
};
|
|
3005
3005
|
}
|
|
3006
3006
|
default:
|
|
3007
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, y(
|
|
3007
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
|
|
3008
3008
|
}
|
|
3009
3009
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3010
3010
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3060,20 +3060,20 @@ var In = (
|
|
|
3060
3060
|
err: null
|
|
3061
3061
|
};
|
|
3062
3062
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3063
|
-
for (var o,
|
|
3064
|
-
if (
|
|
3063
|
+
for (var o, a = !1, u = [], l = /* @__PURE__ */ new Set(), s = i.value, h = i.location; ; ) {
|
|
3064
|
+
if (s.length === 0) {
|
|
3065
3065
|
var f = this.clonePosition();
|
|
3066
3066
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3067
3067
|
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3068
3068
|
if (m.err)
|
|
3069
3069
|
return m;
|
|
3070
|
-
h = y(f, this.clonePosition()),
|
|
3070
|
+
h = y(f, this.clonePosition()), s = this.message.slice(f.offset, this.offset());
|
|
3071
3071
|
} else
|
|
3072
3072
|
break;
|
|
3073
3073
|
}
|
|
3074
|
-
if (l.has(
|
|
3074
|
+
if (l.has(s))
|
|
3075
3075
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3076
|
-
|
|
3076
|
+
s === "other" && (a = !0), this.bumpSpace();
|
|
3077
3077
|
var d = this.clonePosition();
|
|
3078
3078
|
if (!this.bumpIf("{"))
|
|
3079
3079
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3084,26 +3084,26 @@ var In = (
|
|
|
3084
3084
|
if (v.err)
|
|
3085
3085
|
return v;
|
|
3086
3086
|
u.push([
|
|
3087
|
-
|
|
3087
|
+
s,
|
|
3088
3088
|
{
|
|
3089
3089
|
value: p.val,
|
|
3090
3090
|
location: y(d, this.clonePosition())
|
|
3091
3091
|
}
|
|
3092
|
-
]), l.add(
|
|
3092
|
+
]), l.add(s), this.bumpSpace(), o = this.parseIdentifierIfPossible(), s = o.value, h = o.location;
|
|
3093
3093
|
}
|
|
3094
|
-
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3094
|
+
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3095
3095
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3096
3096
|
var n = 1, i = this.clonePosition();
|
|
3097
3097
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3098
|
-
for (var o = !1,
|
|
3098
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3099
3099
|
var u = this.char();
|
|
3100
3100
|
if (u >= 48 && u <= 57)
|
|
3101
|
-
o = !0,
|
|
3101
|
+
o = !0, a = a * 10 + (u - 48), this.bump();
|
|
3102
3102
|
else
|
|
3103
3103
|
break;
|
|
3104
3104
|
}
|
|
3105
3105
|
var l = y(i, this.clonePosition());
|
|
3106
|
-
return o ? (
|
|
3106
|
+
return o ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3107
3107
|
}, e.prototype.offset = function() {
|
|
3108
3108
|
return this.position.offset;
|
|
3109
3109
|
}, e.prototype.isEOF = function() {
|
|
@@ -3175,13 +3175,13 @@ function ze(e) {
|
|
|
3175
3175
|
function Cn(e) {
|
|
3176
3176
|
return ze(e) || e === 47;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Ln(e) {
|
|
3179
3179
|
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;
|
|
3180
3180
|
}
|
|
3181
3181
|
function Wt(e) {
|
|
3182
3182
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3183
3183
|
}
|
|
3184
|
-
function
|
|
3184
|
+
function Nn(e) {
|
|
3185
3185
|
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;
|
|
3186
3186
|
}
|
|
3187
3187
|
function Ve(e) {
|
|
@@ -3190,7 +3190,7 @@ function Ve(e) {
|
|
|
3190
3190
|
for (var r in t.options)
|
|
3191
3191
|
delete t.options[r].location, Ve(t.options[r].value);
|
|
3192
3192
|
else
|
|
3193
|
-
|
|
3193
|
+
Nt(t) && kt(t.style) || (Mt(t) || $t(t)) && ke(t.style) ? delete t.style.location : Ut(t) && Ve(t.children);
|
|
3194
3194
|
});
|
|
3195
3195
|
}
|
|
3196
3196
|
function Mn(e, t) {
|
|
@@ -3258,7 +3258,7 @@ function Dn(e) {
|
|
|
3258
3258
|
function Un(e) {
|
|
3259
3259
|
return typeof e == "function";
|
|
3260
3260
|
}
|
|
3261
|
-
function be(e, t, r, n, i, o,
|
|
3261
|
+
function be(e, t, r, n, i, o, a) {
|
|
3262
3262
|
if (e.length === 1 && ot(e[0]))
|
|
3263
3263
|
return [
|
|
3264
3264
|
{
|
|
@@ -3266,8 +3266,8 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3266
3266
|
value: e[0].value
|
|
3267
3267
|
}
|
|
3268
3268
|
];
|
|
3269
|
-
for (var u = [], l = 0,
|
|
3270
|
-
var h =
|
|
3269
|
+
for (var u = [], l = 0, s = e; l < s.length; l++) {
|
|
3270
|
+
var h = s[l];
|
|
3271
3271
|
if (ot(h)) {
|
|
3272
3272
|
u.push({
|
|
3273
3273
|
type: H.literal,
|
|
@@ -3275,7 +3275,7 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3275
3275
|
});
|
|
3276
3276
|
continue;
|
|
3277
3277
|
}
|
|
3278
|
-
if (
|
|
3278
|
+
if (sn(h)) {
|
|
3279
3279
|
typeof o == "number" && u.push({
|
|
3280
3280
|
type: H.literal,
|
|
3281
3281
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3284,9 +3284,9 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
var f = h.value;
|
|
3286
3286
|
if (!(i && f in i))
|
|
3287
|
-
throw new Rn(f,
|
|
3287
|
+
throw new Rn(f, a);
|
|
3288
3288
|
var m = i[f];
|
|
3289
|
-
if (
|
|
3289
|
+
if (an(h)) {
|
|
3290
3290
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), u.push({
|
|
3291
3291
|
type: typeof m == "string" ? H.literal : H.object,
|
|
3292
3292
|
value: m
|
|
@@ -3294,7 +3294,7 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3294
3294
|
continue;
|
|
3295
3295
|
}
|
|
3296
3296
|
if (Mt(h)) {
|
|
3297
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3297
|
+
var d = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3298
3298
|
u.push({
|
|
3299
3299
|
type: H.literal,
|
|
3300
3300
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
@@ -3302,15 +3302,15 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3302
3302
|
continue;
|
|
3303
3303
|
}
|
|
3304
3304
|
if ($t(h)) {
|
|
3305
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3305
|
+
var d = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3306
3306
|
u.push({
|
|
3307
3307
|
type: H.literal,
|
|
3308
3308
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
3309
3309
|
});
|
|
3310
3310
|
continue;
|
|
3311
3311
|
}
|
|
3312
|
-
if (
|
|
3313
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3312
|
+
if (Nt(h)) {
|
|
3313
|
+
var d = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3314
3314
|
d && d.scale && (m = m * (d.scale || 1)), u.push({
|
|
3315
3315
|
type: H.literal,
|
|
3316
3316
|
value: r.getNumberFormat(t, d).format(m)
|
|
@@ -3320,21 +3320,21 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3320
3320
|
if (Ut(h)) {
|
|
3321
3321
|
var p = h.children, v = h.value, T = i[v];
|
|
3322
3322
|
if (!Un(T))
|
|
3323
|
-
throw new $n(v, "function",
|
|
3324
|
-
var x = be(p, t, r, n, i, o), c = T(x.map(function(
|
|
3325
|
-
return
|
|
3323
|
+
throw new $n(v, "function", a);
|
|
3324
|
+
var x = be(p, t, r, n, i, o), c = T(x.map(function(N) {
|
|
3325
|
+
return N.value;
|
|
3326
3326
|
}));
|
|
3327
|
-
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(
|
|
3327
|
+
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(N) {
|
|
3328
3328
|
return {
|
|
3329
|
-
type: typeof
|
|
3330
|
-
value:
|
|
3329
|
+
type: typeof N == "string" ? H.literal : H.object,
|
|
3330
|
+
value: N
|
|
3331
3331
|
};
|
|
3332
3332
|
}));
|
|
3333
3333
|
}
|
|
3334
3334
|
if (Rt(h)) {
|
|
3335
3335
|
var g = h.options[m] || h.options.other;
|
|
3336
3336
|
if (!g)
|
|
3337
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3337
|
+
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3338
3338
|
u.push.apply(u, be(g.value, t, r, n, i));
|
|
3339
3339
|
continue;
|
|
3340
3340
|
}
|
|
@@ -3344,29 +3344,29 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3344
3344
|
if (!Intl.PluralRules)
|
|
3345
3345
|
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3346
3346
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3347
|
-
`, z.MISSING_INTL_API,
|
|
3347
|
+
`, z.MISSING_INTL_API, a);
|
|
3348
3348
|
var P = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3349
3349
|
g = h.options[P] || h.options.other;
|
|
3350
3350
|
}
|
|
3351
3351
|
if (!g)
|
|
3352
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3352
|
+
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3353
3353
|
u.push.apply(u, be(g.value, t, r, n, i, m - (h.offset || 0)));
|
|
3354
3354
|
continue;
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
3357
|
return Dn(u);
|
|
3358
3358
|
}
|
|
3359
|
-
function
|
|
3359
|
+
function kn(e, t) {
|
|
3360
3360
|
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3361
3361
|
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3362
3362
|
}, {})) : e;
|
|
3363
3363
|
}
|
|
3364
|
-
function
|
|
3364
|
+
function Gn(e, t) {
|
|
3365
3365
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3366
|
-
return r[n] =
|
|
3366
|
+
return r[n] = kn(e[n], t[n]), r;
|
|
3367
3367
|
}, S({}, e)) : e;
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function Ne(e) {
|
|
3370
3370
|
return {
|
|
3371
3371
|
create: function() {
|
|
3372
3372
|
return {
|
|
@@ -3391,7 +3391,7 @@ function Fn(e) {
|
|
|
3391
3391
|
r[n] = arguments[n];
|
|
3392
3392
|
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3393
3393
|
}, {
|
|
3394
|
-
cache:
|
|
3394
|
+
cache: Ne(e.number),
|
|
3395
3395
|
strategy: Ce.variadic
|
|
3396
3396
|
}),
|
|
3397
3397
|
getDateTimeFormat: Ie(function() {
|
|
@@ -3399,7 +3399,7 @@ function Fn(e) {
|
|
|
3399
3399
|
r[n] = arguments[n];
|
|
3400
3400
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3401
3401
|
}, {
|
|
3402
|
-
cache:
|
|
3402
|
+
cache: Ne(e.dateTime),
|
|
3403
3403
|
strategy: Ce.variadic
|
|
3404
3404
|
}),
|
|
3405
3405
|
getPluralRules: Ie(function() {
|
|
@@ -3407,7 +3407,7 @@ function Fn(e) {
|
|
|
3407
3407
|
r[n] = arguments[n];
|
|
3408
3408
|
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3409
3409
|
}, {
|
|
3410
|
-
cache:
|
|
3410
|
+
cache: Ne(e.pluralRules),
|
|
3411
3411
|
strategy: Ce.variadic
|
|
3412
3412
|
})
|
|
3413
3413
|
};
|
|
@@ -3423,10 +3423,10 @@ var Zt = (
|
|
|
3423
3423
|
dateTime: {},
|
|
3424
3424
|
pluralRules: {}
|
|
3425
3425
|
}, this.format = function(l) {
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3429
|
-
var h =
|
|
3426
|
+
var s = o.formatToParts(l);
|
|
3427
|
+
if (s.length === 1)
|
|
3428
|
+
return s[0].value;
|
|
3429
|
+
var h = s.reduce(function(f, m) {
|
|
3430
3430
|
return !f.length || m.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
|
|
3431
3431
|
}, []);
|
|
3432
3432
|
return h.length <= 1 ? h[0] || "" : h;
|
|
@@ -3442,15 +3442,15 @@ var Zt = (
|
|
|
3442
3442
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3443
3443
|
if (this.message = t, !e.__parse)
|
|
3444
3444
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3445
|
-
var
|
|
3446
|
-
|
|
3447
|
-
var u = Qr(
|
|
3445
|
+
var a = i || {};
|
|
3446
|
+
a.formatters;
|
|
3447
|
+
var u = Qr(a, ["formatters"]);
|
|
3448
3448
|
this.ast = e.__parse(t, S(S({}, u), { locale: this.resolvedLocale }));
|
|
3449
3449
|
} else
|
|
3450
3450
|
this.ast = t;
|
|
3451
3451
|
if (!Array.isArray(this.ast))
|
|
3452
3452
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3453
|
-
this.formats =
|
|
3453
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3454
3454
|
}
|
|
3455
3455
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3456
3456
|
get: function() {
|
|
@@ -3673,7 +3673,7 @@ function ti({ locale: e, id: t }) {
|
|
|
3673
3673
|
console.warn(
|
|
3674
3674
|
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3675
3675
|
e
|
|
3676
|
-
).join('", "')}".${_e(
|
|
3676
|
+
).join('", "')}".${_e(L()) ? `
|
|
3677
3677
|
|
|
3678
3678
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3679
3679
|
);
|
|
@@ -3705,14 +3705,14 @@ function ni(e) {
|
|
|
3705
3705
|
)), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), $.set(i);
|
|
3706
3706
|
}
|
|
3707
3707
|
const Me = Te(!1);
|
|
3708
|
-
var ii = Object.defineProperty, oi = Object.defineProperties,
|
|
3708
|
+
var ii = Object.defineProperty, oi = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, li = (e, t) => {
|
|
3709
3709
|
for (var r in t || (t = {}))
|
|
3710
|
-
|
|
3710
|
+
si.call(t, r) && pt(e, r, t[r]);
|
|
3711
3711
|
if (dt)
|
|
3712
3712
|
for (var r of dt(t))
|
|
3713
3713
|
ui.call(t, r) && pt(e, r, t[r]);
|
|
3714
3714
|
return e;
|
|
3715
|
-
}, hi = (e, t) => oi(e,
|
|
3715
|
+
}, hi = (e, t) => oi(e, ai(t));
|
|
3716
3716
|
let Xe;
|
|
3717
3717
|
const Ee = Te(null);
|
|
3718
3718
|
function bt(e) {
|
|
@@ -3722,7 +3722,7 @@ function ie(e, t = V().fallbackLocale) {
|
|
|
3722
3722
|
const r = bt(e);
|
|
3723
3723
|
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3724
3724
|
}
|
|
3725
|
-
function
|
|
3725
|
+
function L() {
|
|
3726
3726
|
return Xe != null ? Xe : void 0;
|
|
3727
3727
|
}
|
|
3728
3728
|
Ee.subscribe((e) => {
|
|
@@ -3732,7 +3732,7 @@ const ci = (e) => {
|
|
|
3732
3732
|
if (e && Wn(e) && _e(e)) {
|
|
3733
3733
|
const { loadingDelay: t } = V();
|
|
3734
3734
|
let r;
|
|
3735
|
-
return typeof window != "undefined" &&
|
|
3735
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3736
3736
|
() => Me.set(!0),
|
|
3737
3737
|
t
|
|
3738
3738
|
) : Me.set(!0), Kt(e).then(() => {
|
|
@@ -3797,46 +3797,46 @@ const te = (e, t) => {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
), bi = (e = {}) => {
|
|
3799
3799
|
var t = e, {
|
|
3800
|
-
locale: r =
|
|
3800
|
+
locale: r = L()
|
|
3801
3801
|
} = t, n = Z(t, [
|
|
3802
3802
|
"locale"
|
|
3803
3803
|
]);
|
|
3804
3804
|
return mi(Je({ locale: r }, n));
|
|
3805
3805
|
}, gi = (e = {}) => {
|
|
3806
3806
|
var t = e, {
|
|
3807
|
-
locale: r =
|
|
3807
|
+
locale: r = L()
|
|
3808
3808
|
} = t, n = Z(t, [
|
|
3809
3809
|
"locale"
|
|
3810
3810
|
]);
|
|
3811
3811
|
return di(Je({ locale: r }, n));
|
|
3812
3812
|
}, yi = (e = {}) => {
|
|
3813
3813
|
var t = e, {
|
|
3814
|
-
locale: r =
|
|
3814
|
+
locale: r = L()
|
|
3815
3815
|
} = t, n = Z(t, [
|
|
3816
3816
|
"locale"
|
|
3817
3817
|
]);
|
|
3818
3818
|
return pi(Je({ locale: r }, n));
|
|
3819
3819
|
}, _i = Se(
|
|
3820
3820
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3821
|
-
(e, t =
|
|
3821
|
+
(e, t = L()) => new Zt(e, t, V().formats, {
|
|
3822
3822
|
ignoreTag: V().ignoreTag
|
|
3823
3823
|
})
|
|
3824
3824
|
), Ei = (e, t = {}) => {
|
|
3825
3825
|
var r, n, i, o;
|
|
3826
|
-
let
|
|
3827
|
-
typeof e == "object" && (
|
|
3826
|
+
let a = t;
|
|
3827
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3828
3828
|
const {
|
|
3829
3829
|
values: u,
|
|
3830
|
-
locale: l =
|
|
3831
|
-
default:
|
|
3832
|
-
} =
|
|
3830
|
+
locale: l = L(),
|
|
3831
|
+
default: s
|
|
3832
|
+
} = a;
|
|
3833
3833
|
if (l == null)
|
|
3834
3834
|
throw new Error(
|
|
3835
3835
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3836
3836
|
);
|
|
3837
3837
|
let h = Jt(e, l);
|
|
3838
3838
|
if (!h)
|
|
3839
|
-
h = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue:
|
|
3839
|
+
h = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: s })) != null ? i : s) != null ? o : e;
|
|
3840
3840
|
else if (typeof h != "string")
|
|
3841
3841
|
return console.warn(
|
|
3842
3842
|
`[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.`
|
|
@@ -3853,7 +3853,7 @@ const te = (e, t) => {
|
|
|
3853
3853
|
);
|
|
3854
3854
|
}
|
|
3855
3855
|
return f;
|
|
3856
|
-
}, vi = (e, t) => yi(t).format(e), xi = (e, t) => gi(t).format(e), Ti = (e, t) => bi(t).format(e), Hi = (e, t =
|
|
3856
|
+
}, vi = (e, t) => yi(t).format(e), xi = (e, t) => gi(t).format(e), Ti = (e, t) => bi(t).format(e), Hi = (e, t = L()) => Jt(e, t), wi = W([$, ne], () => Ei);
|
|
3857
3857
|
W([$], () => vi);
|
|
3858
3858
|
W([$], () => xi);
|
|
3859
3859
|
W([$], () => Ti);
|
|
@@ -3891,7 +3891,8 @@ const _t = {
|
|
|
3891
3891
|
TransactionCodeIsInvalid: "Transaction code is invalid",
|
|
3892
3892
|
InvalidSession: "Your session has expired. Please try again",
|
|
3893
3893
|
TwoFactorAuthRequired: "Two-factor authentication is required",
|
|
3894
|
-
DeclinedByMerchant: "We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance."
|
|
3894
|
+
DeclinedByMerchant: "We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance.",
|
|
3895
|
+
FraudSuspectedError: "We apologise, but we are unable to process your transaction at this time, please try later or contact Customer Support for further assistance. Error Code 22020"
|
|
3895
3896
|
},
|
|
3896
3897
|
tr: {
|
|
3897
3898
|
errorGeneralTitle: "Hata oluştu",
|
|
@@ -3917,7 +3918,8 @@ const _t = {
|
|
|
3917
3918
|
TransactionCodeIsInvalid: "Transaction code is invalid",
|
|
3918
3919
|
InvalidSession: "Beklenmedik bir hata oluştu, lütfen tekrar deneyin.",
|
|
3919
3920
|
TwoFactorAuthRequired: "İki faktörlü kimlik doğrulama gereklidi",
|
|
3920
|
-
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
|
|
3921
|
+
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin.",
|
|
3922
|
+
FraudSuspectedError: "Üzgünüz, ancak işleminizi şu anda gerçekleştiremiyoruz. Lütfen daha sonra tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 22020."
|
|
3921
3923
|
}
|
|
3922
3924
|
};
|
|
3923
3925
|
function Bi(e) {
|
|
@@ -3965,7 +3967,7 @@ function Ci(e) {
|
|
|
3965
3967
|
}
|
|
3966
3968
|
};
|
|
3967
3969
|
}
|
|
3968
|
-
function
|
|
3970
|
+
function Li(e) {
|
|
3969
3971
|
let t, r = (
|
|
3970
3972
|
/*$_*/
|
|
3971
3973
|
e[3](`${/*errorcode*/
|
|
@@ -3973,7 +3975,7 @@ function Ni(e) {
|
|
|
3973
3975
|
), n;
|
|
3974
3976
|
return {
|
|
3975
3977
|
c() {
|
|
3976
|
-
t = C("span"), n = xe(r),
|
|
3978
|
+
t = C("span"), n = xe(r), G(t, "class", "CashierErrorText");
|
|
3977
3979
|
},
|
|
3978
3980
|
m(i, o) {
|
|
3979
3981
|
X(i, t, o), O(t, n);
|
|
@@ -3989,17 +3991,17 @@ function Ni(e) {
|
|
|
3989
3991
|
}
|
|
3990
3992
|
};
|
|
3991
3993
|
}
|
|
3992
|
-
function
|
|
3994
|
+
function Ni(e) {
|
|
3993
3995
|
let t, r, n = (
|
|
3994
3996
|
/*$_*/
|
|
3995
3997
|
e[3]("errorGeneralButton") + ""
|
|
3996
|
-
), i, o,
|
|
3998
|
+
), i, o, a;
|
|
3997
3999
|
return {
|
|
3998
4000
|
c() {
|
|
3999
|
-
t = C("button"), r = C("span"), i = xe(n),
|
|
4001
|
+
t = C("button"), r = C("span"), i = xe(n), G(t, "class", "CashierErrorButton");
|
|
4000
4002
|
},
|
|
4001
4003
|
m(u, l) {
|
|
4002
|
-
X(u, t, l), O(t, r), O(r, i), o || (
|
|
4004
|
+
X(u, t, l), O(t, r), O(r, i), o || (a = dr(
|
|
4003
4005
|
t,
|
|
4004
4006
|
"click",
|
|
4005
4007
|
/*close*/
|
|
@@ -4012,25 +4014,25 @@ function Li(e) {
|
|
|
4012
4014
|
u[3]("errorGeneralButton") + "") && Pt(i, n);
|
|
4013
4015
|
},
|
|
4014
4016
|
d(u) {
|
|
4015
|
-
u && M(t), o = !1,
|
|
4017
|
+
u && M(t), o = !1, a();
|
|
4016
4018
|
}
|
|
4017
4019
|
};
|
|
4018
4020
|
}
|
|
4019
4021
|
function Mi(e) {
|
|
4020
|
-
let t, r, n, i, o,
|
|
4022
|
+
let t, r, n, i, o, a;
|
|
4021
4023
|
const u = (
|
|
4022
4024
|
/*#slots*/
|
|
4023
4025
|
e[11].icon
|
|
4024
|
-
), l =
|
|
4026
|
+
), l = se(
|
|
4025
4027
|
u,
|
|
4026
4028
|
e,
|
|
4027
4029
|
/*$$scope*/
|
|
4028
4030
|
e[10],
|
|
4029
4031
|
Tt
|
|
4030
|
-
),
|
|
4032
|
+
), s = l || Ci(e), h = (
|
|
4031
4033
|
/*#slots*/
|
|
4032
4034
|
e[11].title
|
|
4033
|
-
), f =
|
|
4035
|
+
), f = se(
|
|
4034
4036
|
h,
|
|
4035
4037
|
e,
|
|
4036
4038
|
/*$$scope*/
|
|
@@ -4039,38 +4041,38 @@ function Mi(e) {
|
|
|
4039
4041
|
), m = (
|
|
4040
4042
|
/*#slots*/
|
|
4041
4043
|
e[11].text
|
|
4042
|
-
), d =
|
|
4044
|
+
), d = se(
|
|
4043
4045
|
m,
|
|
4044
4046
|
e,
|
|
4045
4047
|
/*$$scope*/
|
|
4046
4048
|
e[10],
|
|
4047
4049
|
vt
|
|
4048
|
-
), p = d ||
|
|
4050
|
+
), p = d || Li(e), v = (
|
|
4049
4051
|
/*#slots*/
|
|
4050
4052
|
e[11].button
|
|
4051
|
-
), T =
|
|
4053
|
+
), T = se(
|
|
4052
4054
|
v,
|
|
4053
4055
|
e,
|
|
4054
4056
|
/*$$scope*/
|
|
4055
4057
|
e[10],
|
|
4056
4058
|
Et
|
|
4057
|
-
), x = T ||
|
|
4059
|
+
), x = T || Ni(e);
|
|
4058
4060
|
return {
|
|
4059
4061
|
c() {
|
|
4060
|
-
t = C("div"), r = C("div"),
|
|
4062
|
+
t = C("div"), r = C("div"), s && s.c(), n = Ae(), f && f.c(), i = Ae(), p && p.c(), o = Ae(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
|
|
4061
4063
|
},
|
|
4062
4064
|
m(c, g) {
|
|
4063
|
-
X(c, t, g), O(t, r),
|
|
4065
|
+
X(c, t, g), O(t, r), s && s.m(r, null), O(r, n), f && f.m(r, null), O(r, i), p && p.m(r, null), O(r, o), x && x.m(r, null), e[12](t), a = !0;
|
|
4064
4066
|
},
|
|
4065
4067
|
p(c, [g]) {
|
|
4066
|
-
l ? l.p && (!
|
|
4068
|
+
l ? l.p && (!a || g & /*$$scope*/
|
|
4067
4069
|
1024) && le(
|
|
4068
4070
|
l,
|
|
4069
4071
|
u,
|
|
4070
4072
|
c,
|
|
4071
4073
|
/*$$scope*/
|
|
4072
4074
|
c[10],
|
|
4073
|
-
|
|
4075
|
+
a ? ue(
|
|
4074
4076
|
u,
|
|
4075
4077
|
/*$$scope*/
|
|
4076
4078
|
c[10],
|
|
@@ -4081,15 +4083,15 @@ function Mi(e) {
|
|
|
4081
4083
|
c[10]
|
|
4082
4084
|
),
|
|
4083
4085
|
Tt
|
|
4084
|
-
) :
|
|
4085
|
-
1) &&
|
|
4086
|
+
) : s && s.p && (!a || g & /*assetsurl*/
|
|
4087
|
+
1) && s.p(c, a ? g : -1), f && f.p && (!a || g & /*$$scope*/
|
|
4086
4088
|
1024) && le(
|
|
4087
4089
|
f,
|
|
4088
4090
|
h,
|
|
4089
4091
|
c,
|
|
4090
4092
|
/*$$scope*/
|
|
4091
4093
|
c[10],
|
|
4092
|
-
|
|
4094
|
+
a ? ue(
|
|
4093
4095
|
h,
|
|
4094
4096
|
/*$$scope*/
|
|
4095
4097
|
c[10],
|
|
@@ -4100,14 +4102,14 @@ function Mi(e) {
|
|
|
4100
4102
|
c[10]
|
|
4101
4103
|
),
|
|
4102
4104
|
xt
|
|
4103
|
-
), d ? d.p && (!
|
|
4105
|
+
), d ? d.p && (!a || g & /*$$scope*/
|
|
4104
4106
|
1024) && le(
|
|
4105
4107
|
d,
|
|
4106
4108
|
m,
|
|
4107
4109
|
c,
|
|
4108
4110
|
/*$$scope*/
|
|
4109
4111
|
c[10],
|
|
4110
|
-
|
|
4112
|
+
a ? ue(
|
|
4111
4113
|
m,
|
|
4112
4114
|
/*$$scope*/
|
|
4113
4115
|
c[10],
|
|
@@ -4118,15 +4120,15 @@ function Mi(e) {
|
|
|
4118
4120
|
c[10]
|
|
4119
4121
|
),
|
|
4120
4122
|
vt
|
|
4121
|
-
) : p && p.p && (!
|
|
4122
|
-
10) && p.p(c,
|
|
4123
|
+
) : p && p.p && (!a || g & /*$_, errorcode*/
|
|
4124
|
+
10) && p.p(c, a ? g : -1), T ? T.p && (!a || g & /*$$scope*/
|
|
4123
4125
|
1024) && le(
|
|
4124
4126
|
T,
|
|
4125
4127
|
v,
|
|
4126
4128
|
c,
|
|
4127
4129
|
/*$$scope*/
|
|
4128
4130
|
c[10],
|
|
4129
|
-
|
|
4131
|
+
a ? ue(
|
|
4130
4132
|
v,
|
|
4131
4133
|
/*$$scope*/
|
|
4132
4134
|
c[10],
|
|
@@ -4137,24 +4139,24 @@ function Mi(e) {
|
|
|
4137
4139
|
c[10]
|
|
4138
4140
|
),
|
|
4139
4141
|
Et
|
|
4140
|
-
) : x && x.p && (!
|
|
4141
|
-
8) && x.p(c,
|
|
4142
|
+
) : x && x.p && (!a || g & /*$_*/
|
|
4143
|
+
8) && x.p(c, a ? g : -1);
|
|
4142
4144
|
},
|
|
4143
4145
|
i(c) {
|
|
4144
|
-
|
|
4146
|
+
a || (q(s, c), q(f, c), q(p, c), q(x, c), a = !0);
|
|
4145
4147
|
},
|
|
4146
4148
|
o(c) {
|
|
4147
|
-
fe(
|
|
4149
|
+
fe(s, c), fe(f, c), fe(p, c), fe(x, c), a = !1;
|
|
4148
4150
|
},
|
|
4149
4151
|
d(c) {
|
|
4150
|
-
c && M(t),
|
|
4152
|
+
c && M(t), s && s.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
|
|
4151
4153
|
}
|
|
4152
4154
|
};
|
|
4153
4155
|
}
|
|
4154
4156
|
function $i(e, t, r) {
|
|
4155
4157
|
let n;
|
|
4156
4158
|
lr(e, wi, (c) => r(3, n = c));
|
|
4157
|
-
let { $$slots: i = {}, $$scope: o } = t, { assetsurl:
|
|
4159
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: a = "" } = t, { lang: u = "en" } = t, { errorcode: l = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
|
|
4158
4160
|
const p = () => {
|
|
4159
4161
|
Si(u);
|
|
4160
4162
|
}, v = () => {
|
|
@@ -4180,22 +4182,22 @@ function $i(e, t, r) {
|
|
|
4180
4182
|
});
|
|
4181
4183
|
}
|
|
4182
4184
|
return e.$$set = (c) => {
|
|
4183
|
-
"assetsurl" in c && r(0,
|
|
4185
|
+
"assetsurl" in c && r(0, a = c.assetsurl), "lang" in c && r(5, u = c.lang), "errorcode" in c && r(1, l = c.errorcode), "clientstyling" in c && r(6, s = c.clientstyling), "clientstylingurl" in c && r(7, h = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, o = c.$$scope);
|
|
4184
4186
|
}, e.$$.update = () => {
|
|
4185
4187
|
e.$$.dirty & /*lang*/
|
|
4186
4188
|
32 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4187
|
-
68 &&
|
|
4189
|
+
68 && s && d && Ir(d, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4188
4190
|
132 && h && d && Cr(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4189
|
-
516 && m && d &&
|
|
4191
|
+
516 && m && d && Lr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4190
4192
|
256 && f && v();
|
|
4191
4193
|
}, [
|
|
4192
|
-
|
|
4194
|
+
a,
|
|
4193
4195
|
l,
|
|
4194
4196
|
d,
|
|
4195
4197
|
n,
|
|
4196
4198
|
T,
|
|
4197
4199
|
u,
|
|
4198
|
-
|
|
4200
|
+
s,
|
|
4199
4201
|
h,
|
|
4200
4202
|
f,
|
|
4201
4203
|
m,
|