@everymatrix/cashier-iframe-redirect 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-BZURwYKd.js → CashierHeader-BuDZZ8rP.js} +326 -302
- package/components/CashierHeader-C142j1-7.cjs +18 -0
- package/components/{CashierHeader-RyraoJNg.js → CashierHeader-EK8KBBon.js} +304 -280
- package/components/{CashierIframeRedirect-BtyZmb6E.js → CashierIframeRedirect-Ardd2Dpu.js} +3 -3
- package/components/{CashierIframeRedirect-Bzjt6ENJ.js → CashierIframeRedirect-BmHmV7tA.js} +3 -3
- package/components/{CashierIframeRedirect-BUt_5BGj.cjs → CashierIframeRedirect-Bwp81Q_x.cjs} +1 -1
- package/components/{CashierSpinner-Bvvd1goD.js → CashierSpinner-Bd0C8ypP.js} +1 -1
- package/components/{CashierSpinner-ChMYs5W7.js → CashierSpinner-CWdntBnB.js} +1 -1
- package/components/{CashierSpinner-C6VaFIVf.cjs → CashierSpinner-fcS8Yneb.cjs} +1 -1
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-BgQNXnnQ.cjs +0 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
1
|
+
var hr = Object.defineProperty, ur = Object.defineProperties;
|
|
2
2
|
var lr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ye = Object.getOwnPropertySymbols;
|
|
4
4
|
var fr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ee = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
fr.call(t, r) &&
|
|
7
|
+
fr.call(t, r) && Ee(e, r, t[r]);
|
|
8
8
|
if (Ye)
|
|
9
9
|
for (var r of Ye(t))
|
|
10
|
-
cr.call(t, r) &&
|
|
10
|
+
cr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, et = (e, t) =>
|
|
13
|
-
var B = (e, t, r) =>
|
|
12
|
+
}, et = (e, t) => ur(e, lr(t));
|
|
13
|
+
var B = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (h) {
|
|
19
|
+
i(h);
|
|
20
20
|
}
|
|
21
21
|
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
o(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (h) {
|
|
25
|
+
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
@@ -30,7 +30,8 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
32
|
function mr(e, t) {
|
|
33
|
-
for (const r in t)
|
|
33
|
+
for (const r in t)
|
|
34
|
+
e[r] = t[r];
|
|
34
35
|
return (
|
|
35
36
|
/** @type {T & S} */
|
|
36
37
|
e
|
|
@@ -55,7 +56,7 @@ let oe;
|
|
|
55
56
|
function $i(e, t) {
|
|
56
57
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function dr(e) {
|
|
59
60
|
return Object.keys(e).length === 0;
|
|
60
61
|
}
|
|
61
62
|
function At(e, ...t) {
|
|
@@ -67,7 +68,7 @@ function At(e, ...t) {
|
|
|
67
68
|
const r = e.subscribe(...t);
|
|
68
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function pr(e, t, r) {
|
|
71
72
|
e.$$.on_destroy.push(At(t, r));
|
|
72
73
|
}
|
|
73
74
|
function ve(e, t, r, n) {
|
|
@@ -120,7 +121,8 @@ function br(e, t, r) {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
function gr(e) {
|
|
123
|
-
if (!e)
|
|
124
|
+
if (!e)
|
|
125
|
+
return document;
|
|
124
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
125
127
|
return t && /** @type {ShadowRoot} */
|
|
126
128
|
t.host ? (
|
|
@@ -166,11 +168,11 @@ function Ri(e, t, r) {
|
|
|
166
168
|
function yr(e) {
|
|
167
169
|
return Array.from(e.childNodes);
|
|
168
170
|
}
|
|
169
|
-
function
|
|
171
|
+
function xr(e, t) {
|
|
170
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
171
173
|
t);
|
|
172
174
|
}
|
|
173
|
-
function
|
|
175
|
+
function Er(e) {
|
|
174
176
|
const t = {};
|
|
175
177
|
return e.childNodes.forEach(
|
|
176
178
|
/** @param {Element} node */
|
|
@@ -208,7 +210,8 @@ function A() {
|
|
|
208
210
|
} catch (t) {
|
|
209
211
|
throw F.length = 0, D = 0, t;
|
|
210
212
|
}
|
|
211
|
-
for (K(null), F.length = 0, D = 0; Ie.length; )
|
|
213
|
+
for (K(null), F.length = 0, D = 0; Ie.length; )
|
|
214
|
+
Ie.pop()();
|
|
212
215
|
for (let t = 0; t < j.length; t += 1) {
|
|
213
216
|
const r = j[t];
|
|
214
217
|
we.has(r) || (we.add(r), r());
|
|
@@ -230,16 +233,17 @@ function Tr(e) {
|
|
|
230
233
|
const t = [], r = [];
|
|
231
234
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
232
235
|
}
|
|
233
|
-
const
|
|
236
|
+
const he = /* @__PURE__ */ new Set();
|
|
234
237
|
let wr;
|
|
235
|
-
function
|
|
236
|
-
e && e.i && (
|
|
238
|
+
function ue(e, t) {
|
|
239
|
+
e && e.i && (he.delete(e), e.i(t));
|
|
237
240
|
}
|
|
238
241
|
function Se(e, t, r, n) {
|
|
239
242
|
if (e && e.o) {
|
|
240
|
-
if (
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
if (he.has(e))
|
|
244
|
+
return;
|
|
245
|
+
he.add(e), wr.c.push(() => {
|
|
246
|
+
he.delete(e);
|
|
243
247
|
}), e.o(t);
|
|
244
248
|
}
|
|
245
249
|
}
|
|
@@ -260,7 +264,7 @@ function Cr(e, t) {
|
|
|
260
264
|
function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
261
265
|
const l = We;
|
|
262
266
|
K(e);
|
|
263
|
-
const
|
|
267
|
+
const h = e.$$ = {
|
|
264
268
|
fragment: null,
|
|
265
269
|
ctx: [],
|
|
266
270
|
// state
|
|
@@ -281,18 +285,18 @@ function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
281
285
|
skip_bound: !1,
|
|
282
286
|
root: t.target || l.$$.root
|
|
283
287
|
};
|
|
284
|
-
a && a(
|
|
285
|
-
let
|
|
286
|
-
if (
|
|
287
|
-
const m =
|
|
288
|
-
return
|
|
289
|
-
}) : [],
|
|
288
|
+
a && a(h.root);
|
|
289
|
+
let u = !1;
|
|
290
|
+
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
291
|
+
const m = d.length ? d[0] : c;
|
|
292
|
+
return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u && Cr(e, f)), c;
|
|
293
|
+
}) : [], h.update(), u = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
290
294
|
if (t.hydrate) {
|
|
291
295
|
const f = yr(t.target);
|
|
292
|
-
|
|
296
|
+
h.fragment && h.fragment.l(f), f.forEach(P);
|
|
293
297
|
} else
|
|
294
|
-
|
|
295
|
-
t.intro &&
|
|
298
|
+
h.fragment && h.fragment.c();
|
|
299
|
+
t.intro && ue(e.$$.fragment), Sr(e, t.target, t.anchor), A();
|
|
296
300
|
}
|
|
297
301
|
K(l);
|
|
298
302
|
}
|
|
@@ -347,18 +351,18 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
347
351
|
* @param {HTMLElement} target
|
|
348
352
|
* @param {HTMLElement} [anchor]
|
|
349
353
|
*/
|
|
350
|
-
m: function(
|
|
351
|
-
M(
|
|
354
|
+
m: function(h, u) {
|
|
355
|
+
M(h, a, u);
|
|
352
356
|
},
|
|
353
|
-
d: function(
|
|
354
|
-
|
|
357
|
+
d: function(h) {
|
|
358
|
+
h && P(a);
|
|
355
359
|
}
|
|
356
360
|
};
|
|
357
361
|
};
|
|
358
362
|
};
|
|
359
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
360
364
|
return;
|
|
361
|
-
const r = {}, n =
|
|
365
|
+
const r = {}, n = Er(this);
|
|
362
366
|
for (const s of this.$$s)
|
|
363
367
|
s in n && (r[s] = [t(s)]);
|
|
364
368
|
for (const s of this.attributes) {
|
|
@@ -464,8 +468,8 @@ function Pr(e, t, r, n, i, s) {
|
|
|
464
468
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
465
469
|
},
|
|
466
470
|
set(l) {
|
|
467
|
-
var
|
|
468
|
-
l = le(o, l, t), this.$$d[o] = l, (
|
|
471
|
+
var h;
|
|
472
|
+
l = le(o, l, t), this.$$d[o] = l, (h = this.$$c) == null || h.$set({ [o]: l });
|
|
469
473
|
}
|
|
470
474
|
});
|
|
471
475
|
}), n.forEach((o) => {
|
|
@@ -521,7 +525,7 @@ class Lr {
|
|
|
521
525
|
* @returns {void}
|
|
522
526
|
*/
|
|
523
527
|
$set(t) {
|
|
524
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
525
529
|
}
|
|
526
530
|
}
|
|
527
531
|
const Nr = "4";
|
|
@@ -538,11 +542,11 @@ function ge(e, t = T) {
|
|
|
538
542
|
function i(o) {
|
|
539
543
|
if (St(e, o) && (e = o, r)) {
|
|
540
544
|
const l = !G.length;
|
|
541
|
-
for (const
|
|
542
|
-
|
|
545
|
+
for (const h of n)
|
|
546
|
+
h[1](), G.push(h, e);
|
|
543
547
|
if (l) {
|
|
544
|
-
for (let
|
|
545
|
-
G[
|
|
548
|
+
for (let h = 0; h < G.length; h += 2)
|
|
549
|
+
G[h][0](G[h + 1]);
|
|
546
550
|
G.length = 0;
|
|
547
551
|
}
|
|
548
552
|
}
|
|
@@ -551,9 +555,9 @@ function ge(e, t = T) {
|
|
|
551
555
|
i(o(e));
|
|
552
556
|
}
|
|
553
557
|
function a(o, l = T) {
|
|
554
|
-
const
|
|
555
|
-
return n.add(
|
|
556
|
-
n.delete(
|
|
558
|
+
const h = [o, l];
|
|
559
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
560
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
557
561
|
};
|
|
558
562
|
}
|
|
559
563
|
return { set: i, update: s, subscribe: a };
|
|
@@ -565,27 +569,27 @@ function Q(e, t, r) {
|
|
|
565
569
|
const s = t.length < 2;
|
|
566
570
|
return Ir(r, (a, o) => {
|
|
567
571
|
let l = !1;
|
|
568
|
-
const
|
|
569
|
-
let
|
|
572
|
+
const h = [];
|
|
573
|
+
let u = 0, f = T;
|
|
570
574
|
const c = () => {
|
|
571
|
-
if (
|
|
575
|
+
if (u)
|
|
572
576
|
return;
|
|
573
577
|
f();
|
|
574
|
-
const m = t(n ?
|
|
578
|
+
const m = t(n ? h[0] : h, a, o);
|
|
575
579
|
s ? a(m) : f = Xe(m) ? m : T;
|
|
576
|
-
},
|
|
580
|
+
}, d = i.map(
|
|
577
581
|
(m, g) => At(
|
|
578
582
|
m,
|
|
579
583
|
(v) => {
|
|
580
|
-
|
|
584
|
+
h[g] = v, u &= ~(1 << g), l && c();
|
|
581
585
|
},
|
|
582
586
|
() => {
|
|
583
|
-
|
|
587
|
+
u |= 1 << g;
|
|
584
588
|
}
|
|
585
589
|
)
|
|
586
590
|
);
|
|
587
591
|
return l = !0, c(), function() {
|
|
588
|
-
re(
|
|
592
|
+
re(d), f(), l = !1;
|
|
589
593
|
};
|
|
590
594
|
});
|
|
591
595
|
}
|
|
@@ -663,11 +667,26 @@ k.all = function(t, r) {
|
|
|
663
667
|
};
|
|
664
668
|
var Zr = k, Qr = Zr;
|
|
665
669
|
const qr = /* @__PURE__ */ Mr(Qr);
|
|
670
|
+
/*! *****************************************************************************
|
|
671
|
+
Copyright (c) Microsoft Corporation.
|
|
672
|
+
|
|
673
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
674
|
+
purpose with or without fee is hereby granted.
|
|
675
|
+
|
|
676
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
677
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
678
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
679
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
680
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
681
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
682
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
683
|
+
***************************************************************************** */
|
|
666
684
|
var Re = function(e, t) {
|
|
667
685
|
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
668
686
|
r.__proto__ = n;
|
|
669
687
|
} || function(r, n) {
|
|
670
|
-
for (var i in n)
|
|
688
|
+
for (var i in n)
|
|
689
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
671
690
|
}, Re(e, t);
|
|
672
691
|
};
|
|
673
692
|
function _e(e, t) {
|
|
@@ -683,23 +702,26 @@ var y = function() {
|
|
|
683
702
|
return y = Object.assign || function(t) {
|
|
684
703
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
685
704
|
r = arguments[n];
|
|
686
|
-
for (var s in r)
|
|
705
|
+
for (var s in r)
|
|
706
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
687
707
|
}
|
|
688
708
|
return t;
|
|
689
709
|
}, y.apply(this, arguments);
|
|
690
710
|
};
|
|
691
711
|
function Jr(e, t) {
|
|
692
712
|
var r = {};
|
|
693
|
-
for (var n in e)
|
|
713
|
+
for (var n in e)
|
|
714
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
694
715
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
695
716
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
696
717
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
697
718
|
return r;
|
|
698
719
|
}
|
|
699
720
|
function Ae(e, t, r) {
|
|
700
|
-
if (
|
|
701
|
-
(
|
|
702
|
-
|
|
721
|
+
if (arguments.length === 2)
|
|
722
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
723
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
724
|
+
return e.concat(s || t);
|
|
703
725
|
}
|
|
704
726
|
function Ce(e, t) {
|
|
705
727
|
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : Kr;
|
|
@@ -751,44 +773,44 @@ var nn = {
|
|
|
751
773
|
}, Oe = {
|
|
752
774
|
variadic: en,
|
|
753
775
|
monadic: tn
|
|
754
|
-
},
|
|
776
|
+
}, p;
|
|
755
777
|
(function(e) {
|
|
756
778
|
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";
|
|
757
|
-
})(
|
|
758
|
-
var
|
|
779
|
+
})(p || (p = {}));
|
|
780
|
+
var x;
|
|
759
781
|
(function(e) {
|
|
760
782
|
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";
|
|
761
|
-
})(
|
|
783
|
+
})(x || (x = {}));
|
|
762
784
|
var V;
|
|
763
785
|
(function(e) {
|
|
764
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
765
787
|
})(V || (V = {}));
|
|
766
788
|
function ot(e) {
|
|
767
|
-
return e.type ===
|
|
789
|
+
return e.type === x.literal;
|
|
768
790
|
}
|
|
769
791
|
function sn(e) {
|
|
770
|
-
return e.type ===
|
|
792
|
+
return e.type === x.argument;
|
|
771
793
|
}
|
|
772
794
|
function $t(e) {
|
|
773
|
-
return e.type ===
|
|
795
|
+
return e.type === x.number;
|
|
774
796
|
}
|
|
775
797
|
function Rt(e) {
|
|
776
|
-
return e.type ===
|
|
798
|
+
return e.type === x.date;
|
|
777
799
|
}
|
|
778
800
|
function Ut(e) {
|
|
779
|
-
return e.type ===
|
|
801
|
+
return e.type === x.time;
|
|
780
802
|
}
|
|
781
803
|
function Dt(e) {
|
|
782
|
-
return e.type ===
|
|
804
|
+
return e.type === x.select;
|
|
783
805
|
}
|
|
784
806
|
function Gt(e) {
|
|
785
|
-
return e.type ===
|
|
807
|
+
return e.type === x.plural;
|
|
786
808
|
}
|
|
787
809
|
function on(e) {
|
|
788
|
-
return e.type ===
|
|
810
|
+
return e.type === x.pound;
|
|
789
811
|
}
|
|
790
812
|
function Ft(e) {
|
|
791
|
-
return e.type ===
|
|
813
|
+
return e.type === x.tag;
|
|
792
814
|
}
|
|
793
815
|
function jt(e) {
|
|
794
816
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
@@ -797,7 +819,7 @@ function Ue(e) {
|
|
|
797
819
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
798
820
|
}
|
|
799
821
|
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
|
|
800
|
-
function
|
|
822
|
+
function hn(e) {
|
|
801
823
|
var t = {};
|
|
802
824
|
return e.replace(an, function(r) {
|
|
803
825
|
var n = r.length;
|
|
@@ -888,18 +910,18 @@ function un(e) {
|
|
|
888
910
|
return "";
|
|
889
911
|
}), t;
|
|
890
912
|
}
|
|
891
|
-
var
|
|
913
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
892
914
|
function ln(e) {
|
|
893
915
|
if (e.length === 0)
|
|
894
916
|
throw new Error("Number skeleton cannot be empty");
|
|
895
|
-
for (var t = e.split(
|
|
917
|
+
for (var t = e.split(un).filter(function(c) {
|
|
896
918
|
return c.length > 0;
|
|
897
919
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
898
920
|
var s = i[n], a = s.split("/");
|
|
899
921
|
if (a.length === 0)
|
|
900
922
|
throw new Error("Invalid number skeleton");
|
|
901
|
-
for (var o = a[0], l = a.slice(1),
|
|
902
|
-
var f = h
|
|
923
|
+
for (var o = a[0], l = a.slice(1), h = 0, u = l; h < u.length; h++) {
|
|
924
|
+
var f = u[h];
|
|
903
925
|
if (f.length === 0)
|
|
904
926
|
throw new Error("Invalid number skeleton");
|
|
905
927
|
}
|
|
@@ -911,7 +933,7 @@ function fn(e) {
|
|
|
911
933
|
return e.replace(/^(.*?)-/, "");
|
|
912
934
|
}
|
|
913
935
|
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
914
|
-
function
|
|
936
|
+
function ht(e) {
|
|
915
937
|
var t = {};
|
|
916
938
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
917
939
|
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)), "";
|
|
@@ -971,11 +993,11 @@ function mn(e) {
|
|
|
971
993
|
}
|
|
972
994
|
return t;
|
|
973
995
|
}
|
|
974
|
-
function
|
|
996
|
+
function ut(e) {
|
|
975
997
|
var t = {}, r = zt(e);
|
|
976
998
|
return r || t;
|
|
977
999
|
}
|
|
978
|
-
function
|
|
1000
|
+
function dn(e) {
|
|
979
1001
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
980
1002
|
var i = n[r];
|
|
981
1003
|
switch (i.stem) {
|
|
@@ -1010,13 +1032,13 @@ function pn(e) {
|
|
|
1010
1032
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1011
1033
|
continue;
|
|
1012
1034
|
case "scientific":
|
|
1013
|
-
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1014
|
-
return y(y({}, l),
|
|
1035
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
|
1036
|
+
return y(y({}, l), ut(h));
|
|
1015
1037
|
}, {}));
|
|
1016
1038
|
continue;
|
|
1017
1039
|
case "engineering":
|
|
1018
|
-
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1019
|
-
return y(y({}, l),
|
|
1040
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
|
1041
|
+
return y(y({}, l), ut(h));
|
|
1020
1042
|
}, {}));
|
|
1021
1043
|
continue;
|
|
1022
1044
|
case "notation-simple":
|
|
@@ -1061,13 +1083,13 @@ function pn(e) {
|
|
|
1061
1083
|
case "integer-width":
|
|
1062
1084
|
if (i.options.length > 1)
|
|
1063
1085
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1064
|
-
i.options[0].replace(cn, function(l,
|
|
1065
|
-
if (
|
|
1066
|
-
t.minimumIntegerDigits =
|
|
1086
|
+
i.options[0].replace(cn, function(l, h, u, f, c, d) {
|
|
1087
|
+
if (h)
|
|
1088
|
+
t.minimumIntegerDigits = u.length;
|
|
1067
1089
|
else {
|
|
1068
1090
|
if (f && c)
|
|
1069
1091
|
throw new Error("We currently do not support maximum integer digits");
|
|
1070
|
-
if (
|
|
1092
|
+
if (d)
|
|
1071
1093
|
throw new Error("We currently do not support exact integer digits");
|
|
1072
1094
|
}
|
|
1073
1095
|
return "";
|
|
@@ -1081,15 +1103,15 @@ function pn(e) {
|
|
|
1081
1103
|
if (at.test(i.stem)) {
|
|
1082
1104
|
if (i.options.length > 1)
|
|
1083
1105
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1084
|
-
i.stem.replace(at, function(l,
|
|
1085
|
-
return
|
|
1106
|
+
i.stem.replace(at, function(l, h, u, f, c, d) {
|
|
1107
|
+
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1086
1108
|
});
|
|
1087
1109
|
var s = i.options[0];
|
|
1088
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1110
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ht(s)));
|
|
1089
1111
|
continue;
|
|
1090
1112
|
}
|
|
1091
1113
|
if (Vt.test(i.stem)) {
|
|
1092
|
-
t = y(y({}, t),
|
|
1114
|
+
t = y(y({}, t), ht(i.stem));
|
|
1093
1115
|
continue;
|
|
1094
1116
|
}
|
|
1095
1117
|
var a = zt(i.stem);
|
|
@@ -2514,18 +2536,19 @@ var ae = {
|
|
|
2514
2536
|
"h"
|
|
2515
2537
|
]
|
|
2516
2538
|
};
|
|
2517
|
-
function
|
|
2539
|
+
function pn(e, t) {
|
|
2518
2540
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2519
2541
|
var i = e.charAt(n);
|
|
2520
2542
|
if (i === "j") {
|
|
2521
2543
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2522
2544
|
s++, n++;
|
|
2523
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
|
2524
|
-
for ((
|
|
2545
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = bn(t);
|
|
2546
|
+
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
|
2525
2547
|
r += l;
|
|
2526
2548
|
for (; a-- > 0; )
|
|
2527
|
-
r =
|
|
2528
|
-
} else
|
|
2549
|
+
r = h + r;
|
|
2550
|
+
} else
|
|
2551
|
+
i === "J" ? r += "H" : r += i;
|
|
2529
2552
|
}
|
|
2530
2553
|
return r;
|
|
2531
2554
|
}
|
|
@@ -2555,7 +2578,7 @@ var Pe, gn = new RegExp("^".concat(kt.source, "*")), _n = new RegExp("".concat(k
|
|
|
2555
2578
|
function b(e, t) {
|
|
2556
2579
|
return { start: e, end: t };
|
|
2557
2580
|
}
|
|
2558
|
-
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1),
|
|
2581
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, En = !!Object.fromEntries, vn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, wn = Tn ? Number.isSafeInteger : function(e) {
|
|
2559
2582
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2560
2583
|
}, De = !0;
|
|
2561
2584
|
try {
|
|
@@ -2574,7 +2597,7 @@ var lt = yn ? (
|
|
|
2574
2597
|
function(t, r, n) {
|
|
2575
2598
|
return t.slice(n, n + r.length) === r;
|
|
2576
2599
|
}
|
|
2577
|
-
), Ge =
|
|
2600
|
+
), Ge = xn ? String.fromCodePoint : (
|
|
2578
2601
|
// IE11
|
|
2579
2602
|
function() {
|
|
2580
2603
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2588,7 +2611,7 @@ var lt = yn ? (
|
|
|
2588
2611
|
}
|
|
2589
2612
|
), ft = (
|
|
2590
2613
|
// native
|
|
2591
|
-
|
|
2614
|
+
En ? Object.fromEntries : (
|
|
2592
2615
|
// Ponyfill
|
|
2593
2616
|
function(t) {
|
|
2594
2617
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2679,13 +2702,13 @@ var On = (
|
|
|
2679
2702
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2680
2703
|
var o = this.clonePosition();
|
|
2681
2704
|
this.bump(), i.push({
|
|
2682
|
-
type:
|
|
2705
|
+
type: x.pound,
|
|
2683
2706
|
location: b(o, this.clonePosition())
|
|
2684
2707
|
});
|
|
2685
2708
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2686
2709
|
if (n)
|
|
2687
2710
|
break;
|
|
2688
|
-
return this.error(
|
|
2711
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2689
2712
|
} else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2690
2713
|
var a = this.parseTag(t, r);
|
|
2691
2714
|
if (a.err)
|
|
@@ -2707,7 +2730,7 @@ var On = (
|
|
|
2707
2730
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2708
2731
|
return {
|
|
2709
2732
|
val: {
|
|
2710
|
-
type:
|
|
2733
|
+
type: x.literal,
|
|
2711
2734
|
value: "<".concat(i, "/>"),
|
|
2712
2735
|
location: b(n, this.clonePosition())
|
|
2713
2736
|
},
|
|
@@ -2720,21 +2743,21 @@ var On = (
|
|
|
2720
2743
|
var a = s.val, o = this.clonePosition();
|
|
2721
2744
|
if (this.bumpIf("</")) {
|
|
2722
2745
|
if (this.isEOF() || !je(this.char()))
|
|
2723
|
-
return this.error(
|
|
2724
|
-
var l = this.clonePosition(),
|
|
2725
|
-
return i !==
|
|
2746
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2747
|
+
var l = this.clonePosition(), h = this.parseTagName();
|
|
2748
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2726
2749
|
val: {
|
|
2727
|
-
type:
|
|
2750
|
+
type: x.tag,
|
|
2728
2751
|
value: i,
|
|
2729
2752
|
children: a,
|
|
2730
2753
|
location: b(n, this.clonePosition())
|
|
2731
2754
|
},
|
|
2732
2755
|
err: null
|
|
2733
|
-
} : this.error(
|
|
2756
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2734
2757
|
} else
|
|
2735
|
-
return this.error(
|
|
2758
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2736
2759
|
} else
|
|
2737
|
-
return this.error(
|
|
2760
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2738
2761
|
}, e.prototype.parseTagName = function() {
|
|
2739
2762
|
var t = this.offset();
|
|
2740
2763
|
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
@@ -2761,7 +2784,7 @@ var On = (
|
|
|
2761
2784
|
}
|
|
2762
2785
|
var l = b(n, this.clonePosition());
|
|
2763
2786
|
return {
|
|
2764
|
-
val: { type:
|
|
2787
|
+
val: { type: x.literal, value: i, location: l },
|
|
2765
2788
|
err: null
|
|
2766
2789
|
};
|
|
2767
2790
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2809,19 +2832,19 @@ var On = (
|
|
|
2809
2832
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2810
2833
|
var n = this.clonePosition();
|
|
2811
2834
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2812
|
-
return this.error(
|
|
2835
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2813
2836
|
if (this.char() === 125)
|
|
2814
|
-
return this.bump(), this.error(
|
|
2837
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2815
2838
|
var i = this.parseIdentifierIfPossible().value;
|
|
2816
2839
|
if (!i)
|
|
2817
|
-
return this.error(
|
|
2840
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2818
2841
|
if (this.bumpSpace(), this.isEOF())
|
|
2819
|
-
return this.error(
|
|
2842
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2820
2843
|
switch (this.char()) {
|
|
2821
2844
|
case 125:
|
|
2822
2845
|
return this.bump(), {
|
|
2823
2846
|
val: {
|
|
2824
|
-
type:
|
|
2847
|
+
type: x.argument,
|
|
2825
2848
|
// value does not include the opening and closing braces.
|
|
2826
2849
|
value: i,
|
|
2827
2850
|
location: b(n, this.clonePosition())
|
|
@@ -2829,9 +2852,9 @@ var On = (
|
|
|
2829
2852
|
err: null
|
|
2830
2853
|
};
|
|
2831
2854
|
case 44:
|
|
2832
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2855
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2833
2856
|
default:
|
|
2834
|
-
return this.error(
|
|
2857
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2835
2858
|
}
|
|
2836
2859
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2837
2860
|
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
@@ -2842,46 +2865,46 @@ var On = (
|
|
|
2842
2865
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2843
2866
|
switch (o) {
|
|
2844
2867
|
case "":
|
|
2845
|
-
return this.error(
|
|
2868
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2846
2869
|
case "number":
|
|
2847
2870
|
case "date":
|
|
2848
2871
|
case "time": {
|
|
2849
2872
|
this.bumpSpace();
|
|
2850
|
-
var
|
|
2873
|
+
var h = null;
|
|
2851
2874
|
if (this.bumpIf(",")) {
|
|
2852
2875
|
this.bumpSpace();
|
|
2853
|
-
var
|
|
2876
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2854
2877
|
if (f.err)
|
|
2855
2878
|
return f;
|
|
2856
2879
|
var c = Cn(f.val);
|
|
2857
2880
|
if (c.length === 0)
|
|
2858
|
-
return this.error(
|
|
2859
|
-
var
|
|
2860
|
-
|
|
2881
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2882
|
+
var d = b(u, this.clonePosition());
|
|
2883
|
+
h = { style: c, styleLocation: d };
|
|
2861
2884
|
}
|
|
2862
2885
|
var m = this.tryParseArgumentClose(i);
|
|
2863
2886
|
if (m.err)
|
|
2864
2887
|
return m;
|
|
2865
2888
|
var g = b(i, this.clonePosition());
|
|
2866
|
-
if (
|
|
2867
|
-
var v = An(
|
|
2889
|
+
if (h && lt(h == null ? void 0 : h.style, "::", 0)) {
|
|
2890
|
+
var v = An(h.style.slice(2));
|
|
2868
2891
|
if (o === "number") {
|
|
2869
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2892
|
+
var f = this.parseNumberSkeletonFromString(v, h.styleLocation);
|
|
2870
2893
|
return f.err ? f : {
|
|
2871
|
-
val: { type:
|
|
2894
|
+
val: { type: x.number, value: n, location: g, style: f.val },
|
|
2872
2895
|
err: null
|
|
2873
2896
|
};
|
|
2874
2897
|
} else {
|
|
2875
2898
|
if (v.length === 0)
|
|
2876
|
-
return this.error(
|
|
2899
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2877
2900
|
var N = v;
|
|
2878
|
-
this.locale && (N =
|
|
2901
|
+
this.locale && (N = pn(v, this.locale));
|
|
2879
2902
|
var c = {
|
|
2880
2903
|
type: V.dateTime,
|
|
2881
2904
|
pattern: N,
|
|
2882
|
-
location:
|
|
2883
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2884
|
-
}, C = o === "date" ?
|
|
2905
|
+
location: h.styleLocation,
|
|
2906
|
+
parsedOptions: this.shouldParseSkeletons ? hn(N) : {}
|
|
2907
|
+
}, C = o === "date" ? x.date : x.time;
|
|
2885
2908
|
return {
|
|
2886
2909
|
val: { type: C, value: n, location: g, style: c },
|
|
2887
2910
|
err: null
|
|
@@ -2890,10 +2913,10 @@ var On = (
|
|
|
2890
2913
|
}
|
|
2891
2914
|
return {
|
|
2892
2915
|
val: {
|
|
2893
|
-
type: o === "number" ?
|
|
2916
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2894
2917
|
value: n,
|
|
2895
2918
|
location: g,
|
|
2896
|
-
style: (s =
|
|
2919
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
|
2897
2920
|
},
|
|
2898
2921
|
err: null
|
|
2899
2922
|
};
|
|
@@ -2903,14 +2926,14 @@ var On = (
|
|
|
2903
2926
|
case "select": {
|
|
2904
2927
|
var H = this.clonePosition();
|
|
2905
2928
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2906
|
-
return this.error(
|
|
2929
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2907
2930
|
this.bumpSpace();
|
|
2908
2931
|
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2909
2932
|
if (o !== "select" && I.value === "offset") {
|
|
2910
2933
|
if (!this.bumpIf(":"))
|
|
2911
|
-
return this.error(
|
|
2934
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2912
2935
|
this.bumpSpace();
|
|
2913
|
-
var f = this.tryParseDecimalInteger(
|
|
2936
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2914
2937
|
if (f.err)
|
|
2915
2938
|
return f;
|
|
2916
2939
|
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
|
|
@@ -2924,7 +2947,7 @@ var On = (
|
|
|
2924
2947
|
var se = b(i, this.clonePosition());
|
|
2925
2948
|
return o === "select" ? {
|
|
2926
2949
|
val: {
|
|
2927
|
-
type:
|
|
2950
|
+
type: x.select,
|
|
2928
2951
|
value: n,
|
|
2929
2952
|
options: ft(R.val),
|
|
2930
2953
|
location: se
|
|
@@ -2932,7 +2955,7 @@ var On = (
|
|
|
2932
2955
|
err: null
|
|
2933
2956
|
} : {
|
|
2934
2957
|
val: {
|
|
2935
|
-
type:
|
|
2958
|
+
type: x.plural,
|
|
2936
2959
|
value: n,
|
|
2937
2960
|
options: ft(R.val),
|
|
2938
2961
|
offset: w,
|
|
@@ -2943,10 +2966,10 @@ var On = (
|
|
|
2943
2966
|
};
|
|
2944
2967
|
}
|
|
2945
2968
|
default:
|
|
2946
|
-
return this.error(
|
|
2969
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2947
2970
|
}
|
|
2948
2971
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2949
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2972
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2950
2973
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2951
2974
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2952
2975
|
var n = this.char();
|
|
@@ -2955,7 +2978,7 @@ var On = (
|
|
|
2955
2978
|
this.bump();
|
|
2956
2979
|
var i = this.clonePosition();
|
|
2957
2980
|
if (!this.bumpUntil("'"))
|
|
2958
|
-
return this.error(
|
|
2981
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2959
2982
|
this.bump();
|
|
2960
2983
|
break;
|
|
2961
2984
|
}
|
|
@@ -2987,50 +3010,50 @@ var On = (
|
|
|
2987
3010
|
try {
|
|
2988
3011
|
n = ln(t);
|
|
2989
3012
|
} catch (i) {
|
|
2990
|
-
return this.error(
|
|
3013
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2991
3014
|
}
|
|
2992
3015
|
return {
|
|
2993
3016
|
val: {
|
|
2994
3017
|
type: V.number,
|
|
2995
3018
|
tokens: n,
|
|
2996
3019
|
location: r,
|
|
2997
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3020
|
+
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
2998
3021
|
},
|
|
2999
3022
|
err: null
|
|
3000
3023
|
};
|
|
3001
3024
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3002
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
|
3003
|
-
if (
|
|
3025
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
|
|
3026
|
+
if (h.length === 0) {
|
|
3004
3027
|
var f = this.clonePosition();
|
|
3005
3028
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3006
|
-
var c = this.tryParseDecimalInteger(
|
|
3029
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3007
3030
|
if (c.err)
|
|
3008
3031
|
return c;
|
|
3009
|
-
|
|
3032
|
+
u = b(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
|
|
3010
3033
|
} else
|
|
3011
3034
|
break;
|
|
3012
3035
|
}
|
|
3013
|
-
if (l.has(
|
|
3014
|
-
return this.error(r === "select" ?
|
|
3015
|
-
|
|
3016
|
-
var
|
|
3036
|
+
if (l.has(h))
|
|
3037
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3038
|
+
h === "other" && (a = !0), this.bumpSpace();
|
|
3039
|
+
var d = this.clonePosition();
|
|
3017
3040
|
if (!this.bumpIf("{"))
|
|
3018
|
-
return this.error(r === "select" ?
|
|
3041
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3019
3042
|
var m = this.parseMessage(t + 1, r, n);
|
|
3020
3043
|
if (m.err)
|
|
3021
3044
|
return m;
|
|
3022
|
-
var g = this.tryParseArgumentClose(
|
|
3045
|
+
var g = this.tryParseArgumentClose(d);
|
|
3023
3046
|
if (g.err)
|
|
3024
3047
|
return g;
|
|
3025
3048
|
o.push([
|
|
3026
|
-
|
|
3049
|
+
h,
|
|
3027
3050
|
{
|
|
3028
3051
|
value: m.val,
|
|
3029
|
-
location: b(
|
|
3052
|
+
location: b(d, this.clonePosition())
|
|
3030
3053
|
}
|
|
3031
|
-
]), l.add(
|
|
3054
|
+
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
|
3032
3055
|
}
|
|
3033
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3056
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3034
3057
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3035
3058
|
var n = 1, i = this.clonePosition();
|
|
3036
3059
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3128,14 +3151,15 @@ function ke(e) {
|
|
|
3128
3151
|
if (delete t.location, Dt(t) || Gt(t))
|
|
3129
3152
|
for (var r in t.options)
|
|
3130
3153
|
delete t.options[r].location, ke(t.options[r].value);
|
|
3131
|
-
else
|
|
3154
|
+
else
|
|
3155
|
+
$t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Ue(t.style) ? delete t.style.location : Ft(t) && ke(t.children);
|
|
3132
3156
|
});
|
|
3133
3157
|
}
|
|
3134
3158
|
function In(e, t) {
|
|
3135
3159
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3136
3160
|
var r = new On(e, t).parse();
|
|
3137
3161
|
if (r.err) {
|
|
3138
|
-
var n = SyntaxError(
|
|
3162
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3139
3163
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3140
3164
|
}
|
|
3141
3165
|
return t != null && t.captureLocation || ke(r.val), r.val;
|
|
@@ -3183,14 +3207,14 @@ var ye = (
|
|
|
3183
3207
|
}
|
|
3184
3208
|
return t;
|
|
3185
3209
|
}(ye)
|
|
3186
|
-
),
|
|
3210
|
+
), E;
|
|
3187
3211
|
(function(e) {
|
|
3188
3212
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3189
|
-
})(
|
|
3213
|
+
})(E || (E = {}));
|
|
3190
3214
|
function Rn(e) {
|
|
3191
3215
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3192
3216
|
var n = t[t.length - 1];
|
|
3193
|
-
return !n || n.type !==
|
|
3217
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3194
3218
|
}, []);
|
|
3195
3219
|
}
|
|
3196
3220
|
function Un(e) {
|
|
@@ -3200,63 +3224,63 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3200
3224
|
if (e.length === 1 && ot(e[0]))
|
|
3201
3225
|
return [
|
|
3202
3226
|
{
|
|
3203
|
-
type:
|
|
3227
|
+
type: E.literal,
|
|
3204
3228
|
value: e[0].value
|
|
3205
3229
|
}
|
|
3206
3230
|
];
|
|
3207
|
-
for (var o = [], l = 0,
|
|
3208
|
-
var
|
|
3209
|
-
if (ot(
|
|
3231
|
+
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
|
3232
|
+
var u = h[l];
|
|
3233
|
+
if (ot(u)) {
|
|
3210
3234
|
o.push({
|
|
3211
|
-
type:
|
|
3212
|
-
value:
|
|
3235
|
+
type: E.literal,
|
|
3236
|
+
value: u.value
|
|
3213
3237
|
});
|
|
3214
3238
|
continue;
|
|
3215
3239
|
}
|
|
3216
|
-
if (on(
|
|
3240
|
+
if (on(u)) {
|
|
3217
3241
|
typeof s == "number" && o.push({
|
|
3218
|
-
type:
|
|
3242
|
+
type: E.literal,
|
|
3219
3243
|
value: r.getNumberFormat(t).format(s)
|
|
3220
3244
|
});
|
|
3221
3245
|
continue;
|
|
3222
3246
|
}
|
|
3223
|
-
var f =
|
|
3247
|
+
var f = u.value;
|
|
3224
3248
|
if (!(i && f in i))
|
|
3225
3249
|
throw new $n(f, a);
|
|
3226
3250
|
var c = i[f];
|
|
3227
|
-
if (sn(
|
|
3251
|
+
if (sn(u)) {
|
|
3228
3252
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3229
|
-
type: typeof c == "string" ?
|
|
3253
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3230
3254
|
value: c
|
|
3231
3255
|
});
|
|
3232
3256
|
continue;
|
|
3233
3257
|
}
|
|
3234
|
-
if (Rt(
|
|
3235
|
-
var
|
|
3258
|
+
if (Rt(u)) {
|
|
3259
|
+
var d = typeof u.style == "string" ? n.date[u.style] : Ue(u.style) ? u.style.parsedOptions : void 0;
|
|
3236
3260
|
o.push({
|
|
3237
|
-
type:
|
|
3238
|
-
value: r.getDateTimeFormat(t,
|
|
3261
|
+
type: E.literal,
|
|
3262
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3239
3263
|
});
|
|
3240
3264
|
continue;
|
|
3241
3265
|
}
|
|
3242
|
-
if (Ut(
|
|
3243
|
-
var
|
|
3266
|
+
if (Ut(u)) {
|
|
3267
|
+
var d = typeof u.style == "string" ? n.time[u.style] : Ue(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3244
3268
|
o.push({
|
|
3245
|
-
type:
|
|
3246
|
-
value: r.getDateTimeFormat(t,
|
|
3269
|
+
type: E.literal,
|
|
3270
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3247
3271
|
});
|
|
3248
3272
|
continue;
|
|
3249
3273
|
}
|
|
3250
|
-
if ($t(
|
|
3251
|
-
var
|
|
3252
|
-
|
|
3253
|
-
type:
|
|
3254
|
-
value: r.getNumberFormat(t,
|
|
3274
|
+
if ($t(u)) {
|
|
3275
|
+
var d = typeof u.style == "string" ? n.number[u.style] : jt(u.style) ? u.style.parsedOptions : void 0;
|
|
3276
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3277
|
+
type: E.literal,
|
|
3278
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3255
3279
|
});
|
|
3256
3280
|
continue;
|
|
3257
3281
|
}
|
|
3258
|
-
if (Ft(
|
|
3259
|
-
var m =
|
|
3282
|
+
if (Ft(u)) {
|
|
3283
|
+
var m = u.children, g = u.value, v = i[g];
|
|
3260
3284
|
if (!Un(v))
|
|
3261
3285
|
throw new Mn(g, "function", a);
|
|
3262
3286
|
var N = fe(m, t, r, n, i, s), C = v(N.map(function(w) {
|
|
@@ -3264,31 +3288,31 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3264
3288
|
}));
|
|
3265
3289
|
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(w) {
|
|
3266
3290
|
return {
|
|
3267
|
-
type: typeof w == "string" ?
|
|
3291
|
+
type: typeof w == "string" ? E.literal : E.object,
|
|
3268
3292
|
value: w
|
|
3269
3293
|
};
|
|
3270
3294
|
}));
|
|
3271
3295
|
}
|
|
3272
|
-
if (Dt(
|
|
3273
|
-
var H =
|
|
3296
|
+
if (Dt(u)) {
|
|
3297
|
+
var H = u.options[c] || u.options.other;
|
|
3274
3298
|
if (!H)
|
|
3275
|
-
throw new mt(
|
|
3299
|
+
throw new mt(u.value, c, Object.keys(u.options), a);
|
|
3276
3300
|
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3277
3301
|
continue;
|
|
3278
3302
|
}
|
|
3279
|
-
if (Gt(
|
|
3280
|
-
var H =
|
|
3303
|
+
if (Gt(u)) {
|
|
3304
|
+
var H = u.options["=".concat(c)];
|
|
3281
3305
|
if (!H) {
|
|
3282
3306
|
if (!Intl.PluralRules)
|
|
3283
3307
|
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3284
3308
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3285
3309
|
`, X.MISSING_INTL_API, a);
|
|
3286
|
-
var I = r.getPluralRules(t, { type:
|
|
3287
|
-
H =
|
|
3310
|
+
var I = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3311
|
+
H = u.options[I] || u.options.other;
|
|
3288
3312
|
}
|
|
3289
3313
|
if (!H)
|
|
3290
|
-
throw new mt(
|
|
3291
|
-
o.push.apply(o, fe(H.value, t, r, n, i, c - (
|
|
3314
|
+
throw new mt(u.value, c, Object.keys(u.options), a);
|
|
3315
|
+
o.push.apply(o, fe(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3292
3316
|
continue;
|
|
3293
3317
|
}
|
|
3294
3318
|
}
|
|
@@ -3361,13 +3385,13 @@ var qt = (
|
|
|
3361
3385
|
dateTime: {},
|
|
3362
3386
|
pluralRules: {}
|
|
3363
3387
|
}, this.format = function(l) {
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3367
|
-
var
|
|
3368
|
-
return !f.length || c.type !==
|
|
3388
|
+
var h = s.formatToParts(l);
|
|
3389
|
+
if (h.length === 1)
|
|
3390
|
+
return h[0].value;
|
|
3391
|
+
var u = h.reduce(function(f, c) {
|
|
3392
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3369
3393
|
}, []);
|
|
3370
|
-
return
|
|
3394
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3371
3395
|
}, this.formatToParts = function(l) {
|
|
3372
3396
|
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3373
3397
|
}, this.resolvedOptions = function() {
|
|
@@ -3540,7 +3564,7 @@ function Zn(e) {
|
|
|
3540
3564
|
return [t, r ? [...r] : []];
|
|
3541
3565
|
}).filter(([, t]) => t.length > 0);
|
|
3542
3566
|
}
|
|
3543
|
-
function
|
|
3567
|
+
function de(e) {
|
|
3544
3568
|
return e == null ? !1 : ie(e).some(
|
|
3545
3569
|
(t) => {
|
|
3546
3570
|
var r;
|
|
@@ -3555,7 +3579,7 @@ function Qn(e, t) {
|
|
|
3555
3579
|
}
|
|
3556
3580
|
const J = {};
|
|
3557
3581
|
function tr(e) {
|
|
3558
|
-
if (!
|
|
3582
|
+
if (!de(e))
|
|
3559
3583
|
return e in J ? J[e] : Promise.resolve();
|
|
3560
3584
|
const t = Zn(e);
|
|
3561
3585
|
return J[e] = Promise.all(
|
|
@@ -3563,17 +3587,17 @@ function tr(e) {
|
|
|
3563
3587
|
([r, n]) => Qn(r, n)
|
|
3564
3588
|
)
|
|
3565
3589
|
).then(() => {
|
|
3566
|
-
if (
|
|
3590
|
+
if (de(e))
|
|
3567
3591
|
return tr(e);
|
|
3568
3592
|
delete J[e];
|
|
3569
3593
|
}), J[e];
|
|
3570
3594
|
}
|
|
3571
|
-
var
|
|
3595
|
+
var dt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3572
3596
|
var r = {};
|
|
3573
3597
|
for (var n in e)
|
|
3574
3598
|
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3575
|
-
if (e != null &&
|
|
3576
|
-
for (var n of
|
|
3599
|
+
if (e != null && dt)
|
|
3600
|
+
for (var n of dt(e))
|
|
3577
3601
|
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3578
3602
|
return r;
|
|
3579
3603
|
};
|
|
@@ -3611,7 +3635,7 @@ function ei({ locale: e, id: t }) {
|
|
|
3611
3635
|
console.warn(
|
|
3612
3636
|
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3613
3637
|
e
|
|
3614
|
-
).join('", "')}".${
|
|
3638
|
+
).join('", "')}".${de(L()) ? `
|
|
3615
3639
|
|
|
3616
3640
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3617
3641
|
);
|
|
@@ -3643,16 +3667,16 @@ function ri(e) {
|
|
|
3643
3667
|
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), $.set(i);
|
|
3644
3668
|
}
|
|
3645
3669
|
const Ne = ge(!1);
|
|
3646
|
-
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors,
|
|
3670
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3647
3671
|
for (var r in t || (t = {}))
|
|
3648
3672
|
oi.call(t, r) && bt(e, r, t[r]);
|
|
3649
|
-
if (
|
|
3650
|
-
for (var r of
|
|
3673
|
+
if (pt)
|
|
3674
|
+
for (var r of pt(t))
|
|
3651
3675
|
ai.call(t, r) && bt(e, r, t[r]);
|
|
3652
3676
|
return e;
|
|
3653
|
-
},
|
|
3677
|
+
}, ui = (e, t) => ii(e, si(t));
|
|
3654
3678
|
let Ve;
|
|
3655
|
-
const
|
|
3679
|
+
const pe = ge(null);
|
|
3656
3680
|
function gt(e) {
|
|
3657
3681
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3658
3682
|
}
|
|
@@ -3663,26 +3687,26 @@ function ie(e, t = z().fallbackLocale) {
|
|
|
3663
3687
|
function L() {
|
|
3664
3688
|
return Ve != null ? Ve : void 0;
|
|
3665
3689
|
}
|
|
3666
|
-
|
|
3690
|
+
pe.subscribe((e) => {
|
|
3667
3691
|
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3668
3692
|
});
|
|
3669
3693
|
const li = (e) => {
|
|
3670
|
-
if (e && zn(e) &&
|
|
3694
|
+
if (e && zn(e) && de(e)) {
|
|
3671
3695
|
const { loadingDelay: t } = z();
|
|
3672
3696
|
let r;
|
|
3673
3697
|
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3674
3698
|
() => Ne.set(!0),
|
|
3675
3699
|
t
|
|
3676
3700
|
) : Ne.set(!0), tr(e).then(() => {
|
|
3677
|
-
|
|
3701
|
+
pe.set(e);
|
|
3678
3702
|
}).finally(() => {
|
|
3679
3703
|
clearTimeout(r), Ne.set(!1);
|
|
3680
3704
|
});
|
|
3681
3705
|
}
|
|
3682
|
-
return
|
|
3683
|
-
}, $ = hi(
|
|
3706
|
+
return pe.set(e);
|
|
3707
|
+
}, $ = ui(hi({}, pe), {
|
|
3684
3708
|
set: li
|
|
3685
|
-
}),
|
|
3709
|
+
}), xe = (e) => {
|
|
3686
3710
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3687
3711
|
return (n) => {
|
|
3688
3712
|
const i = JSON.stringify(n);
|
|
@@ -3710,21 +3734,21 @@ const te = (e, t) => {
|
|
|
3710
3734
|
if (e in r && t in r[e])
|
|
3711
3735
|
return r[e][t];
|
|
3712
3736
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3713
|
-
}, ci =
|
|
3737
|
+
}, ci = xe(
|
|
3714
3738
|
(e) => {
|
|
3715
3739
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3716
3740
|
if (r == null)
|
|
3717
3741
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3718
3742
|
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3719
3743
|
}
|
|
3720
|
-
), mi =
|
|
3744
|
+
), mi = xe(
|
|
3721
3745
|
(e) => {
|
|
3722
3746
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3723
3747
|
if (r == null)
|
|
3724
3748
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3725
3749
|
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3726
3750
|
}
|
|
3727
|
-
),
|
|
3751
|
+
), di = xe(
|
|
3728
3752
|
(e) => {
|
|
3729
3753
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3730
3754
|
if (r == null)
|
|
@@ -3733,7 +3757,7 @@ const te = (e, t) => {
|
|
|
3733
3757
|
);
|
|
3734
3758
|
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3735
3759
|
}
|
|
3736
|
-
),
|
|
3760
|
+
), pi = (e = {}) => {
|
|
3737
3761
|
var t = e, {
|
|
3738
3762
|
locale: r = L()
|
|
3739
3763
|
} = t, n = q(t, [
|
|
@@ -3753,8 +3777,8 @@ const te = (e, t) => {
|
|
|
3753
3777
|
} = t, n = q(t, [
|
|
3754
3778
|
"locale"
|
|
3755
3779
|
]);
|
|
3756
|
-
return
|
|
3757
|
-
}, _i =
|
|
3780
|
+
return di(Je({ locale: r }, n));
|
|
3781
|
+
}, _i = xe(
|
|
3758
3782
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3759
3783
|
(e, t = L()) => new qt(e, t, z().formats, {
|
|
3760
3784
|
ignoreTag: z().ignoreTag
|
|
@@ -3766,24 +3790,24 @@ const te = (e, t) => {
|
|
|
3766
3790
|
const {
|
|
3767
3791
|
values: o,
|
|
3768
3792
|
locale: l = L(),
|
|
3769
|
-
default:
|
|
3793
|
+
default: h
|
|
3770
3794
|
} = a;
|
|
3771
3795
|
if (l == null)
|
|
3772
3796
|
throw new Error(
|
|
3773
3797
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3774
3798
|
);
|
|
3775
|
-
let
|
|
3776
|
-
if (!
|
|
3777
|
-
|
|
3778
|
-
else if (typeof
|
|
3799
|
+
let u = Jt(e, l);
|
|
3800
|
+
if (!u)
|
|
3801
|
+
u = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
|
3802
|
+
else if (typeof u != "string")
|
|
3779
3803
|
return console.warn(
|
|
3780
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3781
|
-
),
|
|
3804
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3805
|
+
), u;
|
|
3782
3806
|
if (!o)
|
|
3783
|
-
return
|
|
3784
|
-
let f =
|
|
3807
|
+
return u;
|
|
3808
|
+
let f = u;
|
|
3785
3809
|
try {
|
|
3786
|
-
f = _i(
|
|
3810
|
+
f = _i(u, l).format(o);
|
|
3787
3811
|
} catch (c) {
|
|
3788
3812
|
c instanceof Error && console.warn(
|
|
3789
3813
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3791,9 +3815,9 @@ const te = (e, t) => {
|
|
|
3791
3815
|
);
|
|
3792
3816
|
}
|
|
3793
3817
|
return f;
|
|
3794
|
-
},
|
|
3795
|
-
Q([$], () => Ei);
|
|
3818
|
+
}, xi = (e, t) => gi(t).format(e), Ei = (e, t) => bi(t).format(e), vi = (e, t) => pi(t).format(e), Hi = (e, t = L()) => Jt(e, t), Bi = Q([$, ne], () => yi);
|
|
3796
3819
|
Q([$], () => xi);
|
|
3820
|
+
Q([$], () => Ei);
|
|
3797
3821
|
Q([$], () => vi);
|
|
3798
3822
|
Q([$, ne], () => Hi);
|
|
3799
3823
|
function yt(e, t) {
|
|
@@ -3804,7 +3828,7 @@ function Ti(e) {
|
|
|
3804
3828
|
fallbackLocale: "en"
|
|
3805
3829
|
}), $.set(e);
|
|
3806
3830
|
}
|
|
3807
|
-
const
|
|
3831
|
+
const xt = {
|
|
3808
3832
|
en: {
|
|
3809
3833
|
header: {
|
|
3810
3834
|
general: "Cashier",
|
|
@@ -3830,7 +3854,7 @@ const Et = {
|
|
|
3830
3854
|
function wi(e) {
|
|
3831
3855
|
br(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
3832
3856
|
}
|
|
3833
|
-
const Si = (e) => ({}),
|
|
3857
|
+
const Si = (e) => ({}), Et = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({}), Ci = (e) => ({}), Ht = (e) => ({});
|
|
3834
3858
|
function Bt(e) {
|
|
3835
3859
|
let t, r, n;
|
|
3836
3860
|
return {
|
|
@@ -3893,7 +3917,7 @@ function Pi(e) {
|
|
|
3893
3917
|
i[4](
|
|
3894
3918
|
/*titleText*/
|
|
3895
3919
|
i[2]
|
|
3896
|
-
) + "") &&
|
|
3920
|
+
) + "") && xr(n, r);
|
|
3897
3921
|
},
|
|
3898
3922
|
d(i) {
|
|
3899
3923
|
i && P(t);
|
|
@@ -3955,13 +3979,13 @@ function Ni(e) {
|
|
|
3955
3979
|
), o = a || Oi(e), l = (
|
|
3956
3980
|
/*#slots*/
|
|
3957
3981
|
e[15].title
|
|
3958
|
-
),
|
|
3982
|
+
), h = ve(
|
|
3959
3983
|
l,
|
|
3960
3984
|
e,
|
|
3961
3985
|
/*$$scope*/
|
|
3962
3986
|
e[14],
|
|
3963
3987
|
vt
|
|
3964
|
-
),
|
|
3988
|
+
), u = h || Pi(e), f = (
|
|
3965
3989
|
/*#slots*/
|
|
3966
3990
|
e[15].rightButton
|
|
3967
3991
|
), c = ve(
|
|
@@ -3969,14 +3993,14 @@ function Ni(e) {
|
|
|
3969
3993
|
e,
|
|
3970
3994
|
/*$$scope*/
|
|
3971
3995
|
e[14],
|
|
3972
|
-
|
|
3973
|
-
),
|
|
3996
|
+
Et
|
|
3997
|
+
), d = c || Li(e);
|
|
3974
3998
|
return {
|
|
3975
3999
|
c() {
|
|
3976
|
-
t = W("div"), o && o.c(), r = nt(),
|
|
4000
|
+
t = W("div"), o && o.c(), r = nt(), u && u.c(), n = nt(), d && d.c(), Z(t, "class", "CashierHeader");
|
|
3977
4001
|
},
|
|
3978
4002
|
m(m, g) {
|
|
3979
|
-
M(m, t, g), o && o.m(t, null), me(t, r),
|
|
4003
|
+
M(m, t, g), o && o.m(t, null), me(t, r), u && u.m(t, null), me(t, n), d && d.m(t, null), e[16](t), i = !0;
|
|
3980
4004
|
},
|
|
3981
4005
|
p(m, [g]) {
|
|
3982
4006
|
a ? a.p && (!i || g & /*$$scope*/
|
|
@@ -3998,9 +4022,9 @@ function Ni(e) {
|
|
|
3998
4022
|
),
|
|
3999
4023
|
Ht
|
|
4000
4024
|
) : o && o.p && (!i || g & /*backButton*/
|
|
4001
|
-
2) && o.p(m, i ? g : -1),
|
|
4025
|
+
2) && o.p(m, i ? g : -1), h ? h.p && (!i || g & /*$$scope*/
|
|
4002
4026
|
16384) && Be(
|
|
4003
|
-
|
|
4027
|
+
h,
|
|
4004
4028
|
l,
|
|
4005
4029
|
m,
|
|
4006
4030
|
/*$$scope*/
|
|
@@ -4016,8 +4040,8 @@ function Ni(e) {
|
|
|
4016
4040
|
m[14]
|
|
4017
4041
|
),
|
|
4018
4042
|
vt
|
|
4019
|
-
) :
|
|
4020
|
-
20) &&
|
|
4043
|
+
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
4044
|
+
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4021
4045
|
16384) && Be(
|
|
4022
4046
|
c,
|
|
4023
4047
|
f,
|
|
@@ -4034,25 +4058,25 @@ function Ni(e) {
|
|
|
4034
4058
|
/*$$scope*/
|
|
4035
4059
|
m[14]
|
|
4036
4060
|
),
|
|
4037
|
-
|
|
4038
|
-
) :
|
|
4039
|
-
8) &&
|
|
4061
|
+
Et
|
|
4062
|
+
) : d && d.p && (!i || g & /*closeButton*/
|
|
4063
|
+
8) && d.p(m, i ? g : -1);
|
|
4040
4064
|
},
|
|
4041
4065
|
i(m) {
|
|
4042
|
-
i || (
|
|
4066
|
+
i || (ue(o, m), ue(u, m), ue(d, m), i = !0);
|
|
4043
4067
|
},
|
|
4044
4068
|
o(m) {
|
|
4045
|
-
Se(o, m), Se(
|
|
4069
|
+
Se(o, m), Se(u, m), Se(d, m), i = !1;
|
|
4046
4070
|
},
|
|
4047
4071
|
d(m) {
|
|
4048
|
-
m && P(t), o && o.d(m),
|
|
4072
|
+
m && P(t), o && o.d(m), u && u.d(m), d && d.d(m), e[16](null);
|
|
4049
4073
|
}
|
|
4050
4074
|
};
|
|
4051
4075
|
}
|
|
4052
4076
|
function Ii(e, t, r) {
|
|
4053
4077
|
let n;
|
|
4054
|
-
|
|
4055
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton:
|
|
4078
|
+
pr(e, Bi, (_) => r(4, n = _));
|
|
4079
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: h = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
|
|
4056
4080
|
const N = () => {
|
|
4057
4081
|
let _ = l;
|
|
4058
4082
|
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
@@ -4063,18 +4087,18 @@ function Ii(e, t, r) {
|
|
|
4063
4087
|
console.log(S);
|
|
4064
4088
|
});
|
|
4065
4089
|
};
|
|
4066
|
-
Object.keys(
|
|
4067
|
-
yt(_,
|
|
4090
|
+
Object.keys(xt).forEach((_) => {
|
|
4091
|
+
yt(_, xt[_]);
|
|
4068
4092
|
});
|
|
4069
4093
|
const C = () => {
|
|
4070
4094
|
let _ = document.createElement("style");
|
|
4071
|
-
_.innerHTML = a,
|
|
4095
|
+
_.innerHTML = a, d.appendChild(_);
|
|
4072
4096
|
}, H = () => {
|
|
4073
4097
|
let _ = new URL(o), S = document.createElement("style");
|
|
4074
4098
|
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4075
4099
|
S.innerHTML = U, setTimeout(
|
|
4076
4100
|
() => {
|
|
4077
|
-
|
|
4101
|
+
d.appendChild(S);
|
|
4078
4102
|
},
|
|
4079
4103
|
1
|
|
4080
4104
|
);
|
|
@@ -4086,30 +4110,30 @@ function Ii(e, t, r) {
|
|
|
4086
4110
|
}, R = () => {
|
|
4087
4111
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4088
4112
|
}, se = () => {
|
|
4089
|
-
r(1, m = !!
|
|
4113
|
+
r(1, m = !!h && h !== "false");
|
|
4090
4114
|
}, sr = () => {
|
|
4091
4115
|
r(3, v = !!c && c !== "false");
|
|
4092
4116
|
}, or = () => {
|
|
4093
|
-
r(2, g =
|
|
4117
|
+
r(2, g = u || "header.general");
|
|
4094
4118
|
};
|
|
4095
4119
|
function ar(_) {
|
|
4096
4120
|
Ie[_ ? "unshift" : "push"](() => {
|
|
4097
|
-
|
|
4121
|
+
d = _, r(0, d);
|
|
4098
4122
|
});
|
|
4099
4123
|
}
|
|
4100
4124
|
return e.$$set = (_) => {
|
|
4101
|
-
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10,
|
|
4125
|
+
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, h = _.showbackbutton), "title" in _ && r(11, u = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4102
4126
|
}, e.$$.update = () => {
|
|
4103
4127
|
e.$$.dirty & /*lang*/
|
|
4104
4128
|
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4105
|
-
6144 && f &&
|
|
4106
|
-
129 && a &&
|
|
4107
|
-
257 && o &&
|
|
4129
|
+
6144 && f && u && or(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4130
|
+
129 && a && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4131
|
+
257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4108
4132
|
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4109
|
-
1024 &&
|
|
4133
|
+
1024 && h && se(), e.$$.dirty & /*showclosebutton*/
|
|
4110
4134
|
8192 && c && sr();
|
|
4111
4135
|
}, [
|
|
4112
|
-
|
|
4136
|
+
d,
|
|
4113
4137
|
m,
|
|
4114
4138
|
g,
|
|
4115
4139
|
v,
|
|
@@ -4119,8 +4143,8 @@ function Ii(e, t, r) {
|
|
|
4119
4143
|
a,
|
|
4120
4144
|
o,
|
|
4121
4145
|
l,
|
|
4122
|
-
u,
|
|
4123
4146
|
h,
|
|
4147
|
+
u,
|
|
4124
4148
|
f,
|
|
4125
4149
|
c,
|
|
4126
4150
|
s,
|