@everymatrix/cashier-header 1.70.1 → 1.71.0
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-DrPNQb80.js → CashierHeader-1GxxAVE-.js} +662 -666
- package/components/CashierHeader-DhtlbV21.cjs +18 -0
- package/components/{CashierHeader-BKLN40IC.js → CashierHeader-DxWq7l1Q.js} +690 -694
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-D70465F5.cjs +0 -5
|
@@ -14,19 +14,19 @@ function yt(e) {
|
|
|
14
14
|
function Qe() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ee(e) {
|
|
18
18
|
e.forEach(yt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function je(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function xt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
function tr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Et(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
@@ -36,9 +36,9 @@ function xt(e, ...t) {
|
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
38
|
function rr(e, t, r) {
|
|
39
|
-
e.$$.on_destroy.push(
|
|
39
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ye(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
43
|
const i = vt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
@@ -47,14 +47,14 @@ function xe(e, t, r, n) {
|
|
|
47
47
|
function vt(e, t, r, n) {
|
|
48
48
|
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function xe(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
54
54
|
return i;
|
|
55
55
|
if (typeof i == "object") {
|
|
56
|
-
const s = [],
|
|
57
|
-
for (let o = 0; o <
|
|
56
|
+
const s = [], h = Math.max(t.dirty.length, i.length);
|
|
57
|
+
for (let o = 0; o < h; o += 1)
|
|
58
58
|
s[o] = t.dirty[o] | i[o];
|
|
59
59
|
return s;
|
|
60
60
|
}
|
|
@@ -62,13 +62,13 @@ function ve(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Ee(e, t, r, n, i, s) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const
|
|
68
|
-
e.p(
|
|
67
|
+
const h = vt(t, r, n, s);
|
|
68
|
+
e.p(h, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ve(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -77,7 +77,7 @@ function Be(e) {
|
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function fe(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
83
|
function nr(e, t, r) {
|
|
@@ -98,34 +98,34 @@ function ir(e) {
|
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
100
|
function sr(e, t) {
|
|
101
|
-
return
|
|
101
|
+
return fe(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function I(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function O(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
113
|
function z(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ke(e) {
|
|
117
117
|
return document.createTextNode(e);
|
|
118
118
|
}
|
|
119
119
|
function Je() {
|
|
120
|
-
return
|
|
120
|
+
return ke(" ");
|
|
121
121
|
}
|
|
122
122
|
function Ht() {
|
|
123
|
-
return
|
|
123
|
+
return ke("");
|
|
124
124
|
}
|
|
125
125
|
function Bt(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function te(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
131
|
function or(e) {
|
|
@@ -135,7 +135,7 @@ function ar(e, t) {
|
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function hr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,89 +144,89 @@ function ur(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let Ve;
|
|
148
|
+
function q(e) {
|
|
149
|
+
Ve = e;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
const qe = [],
|
|
154
|
-
let
|
|
151
|
+
const G = [], Pe = [];
|
|
152
|
+
let F = [];
|
|
153
|
+
const qe = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Le = !1;
|
|
155
155
|
function lr() {
|
|
156
|
-
|
|
156
|
+
Le || (Le = !0, ur.then(S));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function Ne(e) {
|
|
159
|
+
F.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
if (
|
|
161
|
+
const He = /* @__PURE__ */ new Set();
|
|
162
|
+
let U = 0;
|
|
163
|
+
function S() {
|
|
164
|
+
if (U !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = Ve;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
|
-
for (;
|
|
170
|
-
const t =
|
|
171
|
-
|
|
169
|
+
for (; U < G.length; ) {
|
|
170
|
+
const t = G[U];
|
|
171
|
+
U++, q(t), fr(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
|
-
throw
|
|
174
|
+
throw G.length = 0, U = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
for (let t = 0; t <
|
|
179
|
-
const r =
|
|
180
|
-
|
|
176
|
+
for (q(null), G.length = 0, U = 0; Pe.length; )
|
|
177
|
+
Pe.pop()();
|
|
178
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
179
|
+
const r = F[t];
|
|
180
|
+
He.has(r) || (He.add(r), r());
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
} while (
|
|
182
|
+
F.length = 0;
|
|
183
|
+
} while (G.length);
|
|
184
184
|
for (; qe.length; )
|
|
185
185
|
qe.pop()();
|
|
186
|
-
|
|
186
|
+
Le = !1, He.clear(), q(e);
|
|
187
187
|
}
|
|
188
188
|
function fr(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), ee(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function cr(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
|
-
|
|
197
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const oe = /* @__PURE__ */ new Set();
|
|
200
200
|
let mr;
|
|
201
|
-
function
|
|
202
|
-
e && e.i && (
|
|
201
|
+
function ae(e, t) {
|
|
202
|
+
e && e.i && (oe.delete(e), e.i(t));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Be(e, t, r, n) {
|
|
205
205
|
if (e && e.o) {
|
|
206
|
-
if (
|
|
206
|
+
if (oe.has(e))
|
|
207
207
|
return;
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
oe.add(e), mr.c.push(() => {
|
|
209
|
+
oe.delete(e);
|
|
210
210
|
}), e.o(t);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
function pr(e, t, r) {
|
|
214
214
|
const { fragment: n, after_update: i } = e.$$;
|
|
215
|
-
n && n.m(t, r),
|
|
216
|
-
const s = e.$$.on_mount.map(yt).filter(
|
|
217
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
218
|
-
}), i.forEach(
|
|
215
|
+
n && n.m(t, r), Ne(() => {
|
|
216
|
+
const s = e.$$.on_mount.map(yt).filter(je);
|
|
217
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
218
|
+
}), i.forEach(Ne);
|
|
219
219
|
}
|
|
220
220
|
function dr(e, t) {
|
|
221
221
|
const r = e.$$;
|
|
222
|
-
r.fragment !== null && (cr(r.after_update),
|
|
222
|
+
r.fragment !== null && (cr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
223
223
|
}
|
|
224
224
|
function br(e, t) {
|
|
225
|
-
e.$$.dirty[0] === -1 && (
|
|
225
|
+
e.$$.dirty[0] === -1 && (G.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
226
226
|
}
|
|
227
|
-
function gr(e, t, r, n, i, s,
|
|
228
|
-
const l =
|
|
229
|
-
|
|
227
|
+
function gr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
228
|
+
const l = Ve;
|
|
229
|
+
q(e);
|
|
230
230
|
const a = e.$$ = {
|
|
231
231
|
fragment: null,
|
|
232
232
|
ctx: [],
|
|
@@ -248,20 +248,20 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
248
248
|
skip_bound: !1,
|
|
249
249
|
root: t.target || l.$$.root
|
|
250
250
|
};
|
|
251
|
-
|
|
252
|
-
let
|
|
251
|
+
h && h(a.root);
|
|
252
|
+
let u = !1;
|
|
253
253
|
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
254
254
|
const m = p.length ? p[0] : c;
|
|
255
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m),
|
|
256
|
-
}) : [], a.update(),
|
|
255
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u && br(e, f)), c;
|
|
256
|
+
}) : [], a.update(), u = !0, ee(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
257
257
|
if (t.hydrate) {
|
|
258
258
|
const f = or(t.target);
|
|
259
|
-
a.fragment && a.fragment.l(f), f.forEach(
|
|
259
|
+
a.fragment && a.fragment.l(f), f.forEach(O);
|
|
260
260
|
} else
|
|
261
261
|
a.fragment && a.fragment.c();
|
|
262
|
-
t.intro &&
|
|
262
|
+
t.intro && ae(e.$$.fragment), pr(e, t.target, t.anchor), S();
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
q(l);
|
|
265
265
|
}
|
|
266
266
|
let Tt;
|
|
267
267
|
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
@@ -306,24 +306,24 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
306
306
|
let s;
|
|
307
307
|
return {
|
|
308
308
|
c: function() {
|
|
309
|
-
s = z("slot"), i !== "default" &&
|
|
309
|
+
s = z("slot"), i !== "default" && te(s, "name", i);
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
312
|
* @param {HTMLElement} target
|
|
313
313
|
* @param {HTMLElement} [anchor]
|
|
314
314
|
*/
|
|
315
315
|
m: function(l, a) {
|
|
316
|
-
|
|
316
|
+
I(l, s, a);
|
|
317
317
|
},
|
|
318
318
|
d: function(l) {
|
|
319
|
-
l &&
|
|
319
|
+
l && O(s);
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
324
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
325
325
|
return;
|
|
326
|
-
const t = {}, r =
|
|
326
|
+
const t = {}, r = hr(this);
|
|
327
327
|
for (const i of this.$$s)
|
|
328
328
|
i in r && (t[i] = [e(i)]);
|
|
329
329
|
for (const i of this.attributes) {
|
|
@@ -359,8 +359,8 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
359
359
|
this.$$c.$$.after_update.push(n), n();
|
|
360
360
|
for (const i in this.$$l)
|
|
361
361
|
for (const s of this.$$l[i]) {
|
|
362
|
-
const
|
|
363
|
-
this.$$l_u.set(s,
|
|
362
|
+
const h = this.$$c.$on(i, s);
|
|
363
|
+
this.$$l_u.set(s, h);
|
|
364
364
|
}
|
|
365
365
|
this.$$l = {};
|
|
366
366
|
}
|
|
@@ -411,7 +411,7 @@ function he(e, t, r, n) {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
function _r(e, t, r, n, i, s) {
|
|
414
|
-
let
|
|
414
|
+
let h = class extends Tt {
|
|
415
415
|
constructor() {
|
|
416
416
|
super(e, r, i), this.$$p_d = t;
|
|
417
417
|
}
|
|
@@ -422,7 +422,7 @@ function _r(e, t, r, n, i, s) {
|
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
return Object.keys(t).forEach((o) => {
|
|
425
|
-
Object.defineProperty(
|
|
425
|
+
Object.defineProperty(h.prototype, o, {
|
|
426
426
|
get() {
|
|
427
427
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
428
428
|
},
|
|
@@ -431,13 +431,13 @@ function _r(e, t, r, n, i, s) {
|
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
}), n.forEach((o) => {
|
|
434
|
-
Object.defineProperty(
|
|
434
|
+
Object.defineProperty(h.prototype, o, {
|
|
435
435
|
get() {
|
|
436
436
|
return this.$$c?.[o];
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}), e.element = /** @type {any} */
|
|
440
|
-
|
|
440
|
+
h, h;
|
|
441
441
|
}
|
|
442
442
|
class yr {
|
|
443
443
|
/**
|
|
@@ -467,7 +467,7 @@ class yr {
|
|
|
467
467
|
* @returns {() => void}
|
|
468
468
|
*/
|
|
469
469
|
$on(t, r) {
|
|
470
|
-
if (!
|
|
470
|
+
if (!je(r))
|
|
471
471
|
return B;
|
|
472
472
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
473
473
|
return n.push(r), () => {
|
|
@@ -483,68 +483,68 @@ class yr {
|
|
|
483
483
|
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
-
const
|
|
489
|
-
function
|
|
486
|
+
const xr = "4";
|
|
487
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
|
|
488
|
+
const D = [];
|
|
489
|
+
function Er(e, t) {
|
|
490
490
|
return {
|
|
491
|
-
subscribe:
|
|
491
|
+
subscribe: de(e, t).subscribe
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function de(e, t = B) {
|
|
495
495
|
let r;
|
|
496
496
|
const n = /* @__PURE__ */ new Set();
|
|
497
497
|
function i(o) {
|
|
498
|
-
if (
|
|
499
|
-
const l = !
|
|
498
|
+
if (xt(e, o) && (e = o, r)) {
|
|
499
|
+
const l = !D.length;
|
|
500
500
|
for (const a of n)
|
|
501
|
-
a[1](),
|
|
501
|
+
a[1](), D.push(a, e);
|
|
502
502
|
if (l) {
|
|
503
|
-
for (let a = 0; a <
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
for (let a = 0; a < D.length; a += 2)
|
|
504
|
+
D[a][0](D[a + 1]);
|
|
505
|
+
D.length = 0;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
function s(o) {
|
|
510
510
|
i(o(e));
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function h(o, l = B) {
|
|
513
513
|
const a = [o, l];
|
|
514
514
|
return n.add(a), n.size === 1 && (r = t(i, s) || B), o(e), () => {
|
|
515
515
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
return { set: i, update: s, subscribe:
|
|
518
|
+
return { set: i, update: s, subscribe: h };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function W(e, t, r) {
|
|
521
521
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
522
522
|
if (!i.every(Boolean))
|
|
523
523
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
524
524
|
const s = t.length < 2;
|
|
525
|
-
return
|
|
525
|
+
return Er(r, (h, o) => {
|
|
526
526
|
let l = !1;
|
|
527
527
|
const a = [];
|
|
528
|
-
let
|
|
528
|
+
let u = 0, f = B;
|
|
529
529
|
const c = () => {
|
|
530
|
-
if (
|
|
530
|
+
if (u)
|
|
531
531
|
return;
|
|
532
532
|
f();
|
|
533
|
-
const m = t(n ? a[0] : a,
|
|
534
|
-
s ?
|
|
533
|
+
const m = t(n ? a[0] : a, h, o);
|
|
534
|
+
s ? h(m) : f = je(m) ? m : B;
|
|
535
535
|
}, p = i.map(
|
|
536
|
-
(m, g) =>
|
|
536
|
+
(m, g) => Et(
|
|
537
537
|
m,
|
|
538
538
|
(v) => {
|
|
539
|
-
a[g] = v,
|
|
539
|
+
a[g] = v, u &= ~(1 << g), l && c();
|
|
540
540
|
},
|
|
541
541
|
() => {
|
|
542
|
-
|
|
542
|
+
u |= 1 << g;
|
|
543
543
|
}
|
|
544
544
|
)
|
|
545
545
|
);
|
|
546
546
|
return l = !0, c(), function() {
|
|
547
|
-
|
|
547
|
+
ee(p), f(), l = !1;
|
|
548
548
|
};
|
|
549
549
|
});
|
|
550
550
|
}
|
|
@@ -565,22 +565,22 @@ var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.
|
|
|
565
565
|
function Ar(e) {
|
|
566
566
|
return e.$$typeof === Sr;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Cr(e) {
|
|
569
569
|
return Array.isArray(e) ? [] : {};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
571
|
+
function Y(e, t) {
|
|
572
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Cr(e), e, t) : e;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Or(e, t, r) {
|
|
575
575
|
return e.concat(t).map(function(n) {
|
|
576
|
-
return
|
|
576
|
+
return Y(n, r);
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
function Pr(e, t) {
|
|
580
580
|
if (!t.customMerge)
|
|
581
|
-
return
|
|
581
|
+
return j;
|
|
582
582
|
var r = t.customMerge(e);
|
|
583
|
-
return typeof r == "function" ? r :
|
|
583
|
+
return typeof r == "function" ? r : j;
|
|
584
584
|
}
|
|
585
585
|
function Lr(e) {
|
|
586
586
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -603,51 +603,65 @@ function Nr(e, t) {
|
|
|
603
603
|
function Ir(e, t, r) {
|
|
604
604
|
var n = {};
|
|
605
605
|
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
606
|
-
n[i] =
|
|
606
|
+
n[i] = Y(e[i], r);
|
|
607
607
|
}), Ye(t).forEach(function(i) {
|
|
608
|
-
Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] =
|
|
608
|
+
Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
609
609
|
}), n;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
611
|
+
function j(e, t, r) {
|
|
612
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
613
613
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
614
|
-
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) :
|
|
614
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : Y(t, r);
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
j.all = function(t, r) {
|
|
617
617
|
if (!Array.isArray(t))
|
|
618
618
|
throw new Error("first argument should be an array");
|
|
619
619
|
return t.reduce(function(n, i) {
|
|
620
|
-
return
|
|
620
|
+
return j(n, i, r);
|
|
621
621
|
}, {});
|
|
622
622
|
};
|
|
623
|
-
var Mr =
|
|
623
|
+
var Mr = j, $r = Mr;
|
|
624
624
|
const Rr = /* @__PURE__ */ vr($r);
|
|
625
|
-
|
|
626
|
-
|
|
625
|
+
/*! *****************************************************************************
|
|
626
|
+
Copyright (c) Microsoft Corporation.
|
|
627
|
+
|
|
628
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
629
|
+
purpose with or without fee is hereby granted.
|
|
630
|
+
|
|
631
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
632
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
633
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
634
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
635
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
636
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
637
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
638
|
+
***************************************************************************** */
|
|
639
|
+
var Ie = function(e, t) {
|
|
640
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
627
641
|
r.__proto__ = n;
|
|
628
642
|
} || function(r, n) {
|
|
629
643
|
for (var i in n)
|
|
630
644
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
631
|
-
},
|
|
645
|
+
}, Ie(e, t);
|
|
632
646
|
};
|
|
633
|
-
function
|
|
647
|
+
function be(e, t) {
|
|
634
648
|
if (typeof t != "function" && t !== null)
|
|
635
649
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
636
|
-
|
|
650
|
+
Ie(e, t);
|
|
637
651
|
function r() {
|
|
638
652
|
this.constructor = e;
|
|
639
653
|
}
|
|
640
654
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
641
655
|
}
|
|
642
|
-
var
|
|
643
|
-
return
|
|
656
|
+
var y = function() {
|
|
657
|
+
return y = Object.assign || function(t) {
|
|
644
658
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
645
659
|
r = arguments[n];
|
|
646
660
|
for (var s in r)
|
|
647
661
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
648
662
|
}
|
|
649
663
|
return t;
|
|
650
|
-
},
|
|
664
|
+
}, y.apply(this, arguments);
|
|
651
665
|
};
|
|
652
666
|
function Ur(e, t) {
|
|
653
667
|
var r = {};
|
|
@@ -658,14 +672,14 @@ function Ur(e, t) {
|
|
|
658
672
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
659
673
|
return r;
|
|
660
674
|
}
|
|
661
|
-
function
|
|
662
|
-
if (
|
|
675
|
+
function Te(e, t, r) {
|
|
676
|
+
if (arguments.length === 2)
|
|
663
677
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
664
678
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
665
|
-
return e.concat(s ||
|
|
679
|
+
return e.concat(s || t);
|
|
666
680
|
}
|
|
667
|
-
function
|
|
668
|
-
var r = t && t.cache ? t.cache :
|
|
681
|
+
function we(e, t) {
|
|
682
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Gr;
|
|
669
683
|
return i(e, {
|
|
670
684
|
cache: r,
|
|
671
685
|
serializer: n
|
|
@@ -674,103 +688,95 @@ function Ae(e, t) {
|
|
|
674
688
|
function Dr(e) {
|
|
675
689
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
676
690
|
}
|
|
677
|
-
function
|
|
691
|
+
function St(e, t, r, n) {
|
|
678
692
|
var i = Dr(n) ? n : r(n), s = t.get(i);
|
|
679
693
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
680
694
|
}
|
|
681
|
-
function
|
|
695
|
+
function At(e, t, r) {
|
|
682
696
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
683
697
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
684
698
|
}
|
|
685
|
-
function
|
|
699
|
+
function Xe(e, t, r, n, i) {
|
|
686
700
|
return r.bind(t, e, n, i);
|
|
687
701
|
}
|
|
702
|
+
function Gr(e, t) {
|
|
703
|
+
var r = e.length === 1 ? St : At;
|
|
704
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
705
|
+
}
|
|
688
706
|
function Fr(e, t) {
|
|
689
|
-
|
|
690
|
-
return At(e, this, r, t.cache.create(), t.serializer);
|
|
707
|
+
return Xe(e, this, At, t.cache.create(), t.serializer);
|
|
691
708
|
}
|
|
692
709
|
function jr(e, t) {
|
|
693
|
-
return
|
|
710
|
+
return Xe(e, this, St, t.cache.create(), t.serializer);
|
|
694
711
|
}
|
|
695
712
|
var kr = function() {
|
|
696
713
|
return JSON.stringify(arguments);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}()
|
|
709
|
-
), Xr = {
|
|
714
|
+
};
|
|
715
|
+
function ze() {
|
|
716
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
717
|
+
}
|
|
718
|
+
ze.prototype.get = function(e) {
|
|
719
|
+
return this.cache[e];
|
|
720
|
+
};
|
|
721
|
+
ze.prototype.set = function(e, t) {
|
|
722
|
+
this.cache[e] = t;
|
|
723
|
+
};
|
|
724
|
+
var Vr = {
|
|
710
725
|
create: function() {
|
|
711
|
-
return new
|
|
726
|
+
return new ze();
|
|
712
727
|
}
|
|
713
|
-
},
|
|
714
|
-
variadic:
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
718
|
-
r = arguments[n];
|
|
719
|
-
for (var s in r)
|
|
720
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
721
|
-
}
|
|
722
|
-
return t;
|
|
723
|
-
}, me.apply(this, arguments);
|
|
724
|
-
};
|
|
725
|
-
var d;
|
|
728
|
+
}, Se = {
|
|
729
|
+
variadic: Fr,
|
|
730
|
+
monadic: jr
|
|
731
|
+
}, d;
|
|
726
732
|
(function(e) {
|
|
727
733
|
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";
|
|
728
734
|
})(d || (d = {}));
|
|
729
|
-
var
|
|
735
|
+
var x;
|
|
730
736
|
(function(e) {
|
|
731
737
|
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";
|
|
732
|
-
})(
|
|
733
|
-
var
|
|
738
|
+
})(x || (x = {}));
|
|
739
|
+
var k;
|
|
734
740
|
(function(e) {
|
|
735
741
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
736
|
-
})(
|
|
742
|
+
})(k || (k = {}));
|
|
737
743
|
function Ke(e) {
|
|
738
|
-
return e.type ===
|
|
744
|
+
return e.type === x.literal;
|
|
739
745
|
}
|
|
740
|
-
function
|
|
741
|
-
return e.type ===
|
|
742
|
-
}
|
|
743
|
-
function Ot(e) {
|
|
744
|
-
return e.type === y.number;
|
|
746
|
+
function Xr(e) {
|
|
747
|
+
return e.type === x.argument;
|
|
745
748
|
}
|
|
746
749
|
function Ct(e) {
|
|
747
|
-
return e.type ===
|
|
750
|
+
return e.type === x.number;
|
|
751
|
+
}
|
|
752
|
+
function Ot(e) {
|
|
753
|
+
return e.type === x.date;
|
|
748
754
|
}
|
|
749
755
|
function Pt(e) {
|
|
750
|
-
return e.type ===
|
|
756
|
+
return e.type === x.time;
|
|
751
757
|
}
|
|
752
758
|
function Lt(e) {
|
|
753
|
-
return e.type ===
|
|
759
|
+
return e.type === x.select;
|
|
754
760
|
}
|
|
755
761
|
function Nt(e) {
|
|
756
|
-
return e.type ===
|
|
762
|
+
return e.type === x.plural;
|
|
757
763
|
}
|
|
758
764
|
function zr(e) {
|
|
759
|
-
return e.type ===
|
|
765
|
+
return e.type === x.pound;
|
|
760
766
|
}
|
|
761
767
|
function It(e) {
|
|
762
|
-
return e.type ===
|
|
768
|
+
return e.type === x.tag;
|
|
763
769
|
}
|
|
764
770
|
function Mt(e) {
|
|
765
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
771
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
766
772
|
}
|
|
767
|
-
function
|
|
768
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
773
|
+
function Me(e) {
|
|
774
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
769
775
|
}
|
|
770
|
-
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
771
|
-
function
|
|
776
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
|
|
777
|
+
function Zr(e) {
|
|
772
778
|
var t = {};
|
|
773
|
-
return e.replace(
|
|
779
|
+
return e.replace(Wr, function(r) {
|
|
774
780
|
var n = r.length;
|
|
775
781
|
switch (r[0]) {
|
|
776
782
|
case "G":
|
|
@@ -859,28 +865,18 @@ function Qr(e) {
|
|
|
859
865
|
return "";
|
|
860
866
|
}), t;
|
|
861
867
|
}
|
|
862
|
-
var
|
|
863
|
-
|
|
864
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
865
|
-
r = arguments[n];
|
|
866
|
-
for (var s in r)
|
|
867
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
868
|
-
}
|
|
869
|
-
return t;
|
|
870
|
-
}, E.apply(this, arguments);
|
|
871
|
-
};
|
|
872
|
-
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
873
|
-
function qr(e) {
|
|
868
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
869
|
+
function Jr(e) {
|
|
874
870
|
if (e.length === 0)
|
|
875
871
|
throw new Error("Number skeleton cannot be empty");
|
|
876
|
-
for (var t = e.split(
|
|
872
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
877
873
|
return c.length > 0;
|
|
878
874
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
879
|
-
var s = i[n],
|
|
880
|
-
if (
|
|
875
|
+
var s = i[n], h = s.split("/");
|
|
876
|
+
if (h.length === 0)
|
|
881
877
|
throw new Error("Invalid number skeleton");
|
|
882
|
-
for (var o =
|
|
883
|
-
var f =
|
|
878
|
+
for (var o = h[0], l = h.slice(1), a = 0, u = l; a < u.length; a++) {
|
|
879
|
+
var f = u[a];
|
|
884
880
|
if (f.length === 0)
|
|
885
881
|
throw new Error("Invalid number skeleton");
|
|
886
882
|
}
|
|
@@ -888,10 +884,10 @@ function qr(e) {
|
|
|
888
884
|
}
|
|
889
885
|
return r;
|
|
890
886
|
}
|
|
891
|
-
function
|
|
887
|
+
function qr(e) {
|
|
892
888
|
return e.replace(/^(.*?)-/, "");
|
|
893
889
|
}
|
|
894
|
-
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
890
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
895
891
|
function tt(e) {
|
|
896
892
|
var t = {};
|
|
897
893
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -938,7 +934,7 @@ function Dt(e) {
|
|
|
938
934
|
};
|
|
939
935
|
}
|
|
940
936
|
}
|
|
941
|
-
function
|
|
937
|
+
function Kr(e) {
|
|
942
938
|
var t;
|
|
943
939
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
944
940
|
notation: "engineering"
|
|
@@ -956,7 +952,7 @@ function rt(e) {
|
|
|
956
952
|
var t = {}, r = Dt(e);
|
|
957
953
|
return r || t;
|
|
958
954
|
}
|
|
959
|
-
function
|
|
955
|
+
function en(e) {
|
|
960
956
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
961
957
|
var i = n[r];
|
|
962
958
|
switch (i.stem) {
|
|
@@ -980,7 +976,7 @@ function tn(e) {
|
|
|
980
976
|
continue;
|
|
981
977
|
case "measure-unit":
|
|
982
978
|
case "unit":
|
|
983
|
-
t.style = "unit", t.unit =
|
|
979
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
984
980
|
continue;
|
|
985
981
|
case "compact-short":
|
|
986
982
|
case "K":
|
|
@@ -991,13 +987,13 @@ function tn(e) {
|
|
|
991
987
|
t.notation = "compact", t.compactDisplay = "long";
|
|
992
988
|
continue;
|
|
993
989
|
case "scientific":
|
|
994
|
-
t =
|
|
995
|
-
return
|
|
990
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
991
|
+
return y(y({}, l), rt(a));
|
|
996
992
|
}, {}));
|
|
997
993
|
continue;
|
|
998
994
|
case "engineering":
|
|
999
|
-
t =
|
|
1000
|
-
return
|
|
995
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
996
|
+
return y(y({}, l), rt(a));
|
|
1001
997
|
}, {}));
|
|
1002
998
|
continue;
|
|
1003
999
|
case "notation-simple":
|
|
@@ -1042,9 +1038,9 @@ function tn(e) {
|
|
|
1042
1038
|
case "integer-width":
|
|
1043
1039
|
if (i.options.length > 1)
|
|
1044
1040
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1045
|
-
i.options[0].replace(
|
|
1041
|
+
i.options[0].replace(Yr, function(l, a, u, f, c, p) {
|
|
1046
1042
|
if (a)
|
|
1047
|
-
t.minimumIntegerDigits =
|
|
1043
|
+
t.minimumIntegerDigits = u.length;
|
|
1048
1044
|
else {
|
|
1049
1045
|
if (f && c)
|
|
1050
1046
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1062,25 +1058,25 @@ function tn(e) {
|
|
|
1062
1058
|
if (et.test(i.stem)) {
|
|
1063
1059
|
if (i.options.length > 1)
|
|
1064
1060
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1065
|
-
i.stem.replace(et, function(l, a,
|
|
1066
|
-
return
|
|
1061
|
+
i.stem.replace(et, function(l, a, u, f, c, p) {
|
|
1062
|
+
return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1067
1063
|
});
|
|
1068
1064
|
var s = i.options[0];
|
|
1069
|
-
s === "w" ? t =
|
|
1065
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), tt(s)));
|
|
1070
1066
|
continue;
|
|
1071
1067
|
}
|
|
1072
1068
|
if (Rt.test(i.stem)) {
|
|
1073
|
-
t =
|
|
1069
|
+
t = y(y({}, t), tt(i.stem));
|
|
1074
1070
|
continue;
|
|
1075
1071
|
}
|
|
1076
|
-
var
|
|
1077
|
-
|
|
1078
|
-
var o =
|
|
1079
|
-
o && (t =
|
|
1072
|
+
var h = Dt(i.stem);
|
|
1073
|
+
h && (t = y(y({}, t), h));
|
|
1074
|
+
var o = Kr(i.stem);
|
|
1075
|
+
o && (t = y(y({}, t), o));
|
|
1080
1076
|
}
|
|
1081
1077
|
return t;
|
|
1082
1078
|
}
|
|
1083
|
-
var
|
|
1079
|
+
var se = {
|
|
1084
1080
|
"001": [
|
|
1085
1081
|
"H",
|
|
1086
1082
|
"h"
|
|
@@ -2495,23 +2491,23 @@ var oe = {
|
|
|
2495
2491
|
"h"
|
|
2496
2492
|
]
|
|
2497
2493
|
};
|
|
2498
|
-
function
|
|
2494
|
+
function tn(e, t) {
|
|
2499
2495
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2500
2496
|
var i = e.charAt(n);
|
|
2501
2497
|
if (i === "j") {
|
|
2502
2498
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2503
2499
|
s++, n++;
|
|
2504
|
-
var
|
|
2500
|
+
var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = rn(t);
|
|
2505
2501
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2506
2502
|
r += l;
|
|
2507
|
-
for (;
|
|
2503
|
+
for (; h-- > 0; )
|
|
2508
2504
|
r = a + r;
|
|
2509
2505
|
} else
|
|
2510
2506
|
i === "J" ? r += "H" : r += i;
|
|
2511
2507
|
}
|
|
2512
2508
|
return r;
|
|
2513
2509
|
}
|
|
2514
|
-
function
|
|
2510
|
+
function rn(e) {
|
|
2515
2511
|
var t = e.hourCycle;
|
|
2516
2512
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2517
2513
|
e.hourCycles && // @ts-ignore
|
|
@@ -2530,23 +2526,23 @@ function nn(e) {
|
|
|
2530
2526
|
}
|
|
2531
2527
|
var r = e.language, n;
|
|
2532
2528
|
r !== "root" && (n = e.maximize().region);
|
|
2533
|
-
var i =
|
|
2529
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2534
2530
|
return i[0];
|
|
2535
2531
|
}
|
|
2536
|
-
var
|
|
2532
|
+
var Ae, nn = new RegExp("^".concat($t.source, "*")), sn = new RegExp("".concat($t.source, "*$"));
|
|
2537
2533
|
function b(e, t) {
|
|
2538
2534
|
return { start: e, end: t };
|
|
2539
2535
|
}
|
|
2540
|
-
var
|
|
2536
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, hn = !!Object.fromEntries, un = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2541
2537
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2542
|
-
},
|
|
2538
|
+
}, $e = !0;
|
|
2543
2539
|
try {
|
|
2544
|
-
var
|
|
2545
|
-
|
|
2540
|
+
var pn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2541
|
+
$e = ((Ae = pn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2546
2542
|
} catch {
|
|
2547
|
-
|
|
2543
|
+
$e = !1;
|
|
2548
2544
|
}
|
|
2549
|
-
var nt =
|
|
2545
|
+
var nt = on ? (
|
|
2550
2546
|
// Native
|
|
2551
2547
|
function(t, r, n) {
|
|
2552
2548
|
return t.startsWith(r, n);
|
|
@@ -2556,15 +2552,15 @@ var nt = an ? (
|
|
|
2556
2552
|
function(t, r, n) {
|
|
2557
2553
|
return t.slice(n, n + r.length) === r;
|
|
2558
2554
|
}
|
|
2559
|
-
),
|
|
2555
|
+
), Re = an ? String.fromCodePoint : (
|
|
2560
2556
|
// IE11
|
|
2561
2557
|
function() {
|
|
2562
2558
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2563
2559
|
t[r] = arguments[r];
|
|
2564
|
-
for (var n = "", i = t.length, s = 0,
|
|
2565
|
-
if (
|
|
2566
|
-
throw RangeError(
|
|
2567
|
-
n +=
|
|
2560
|
+
for (var n = "", i = t.length, s = 0, h; i > s; ) {
|
|
2561
|
+
if (h = t[s++], h > 1114111)
|
|
2562
|
+
throw RangeError(h + " is not a valid code point");
|
|
2563
|
+
n += h < 65536 ? String.fromCharCode(h) : String.fromCharCode(((h -= 65536) >> 10) + 55296, h % 1024 + 56320);
|
|
2568
2564
|
}
|
|
2569
2565
|
return n;
|
|
2570
2566
|
}
|
|
@@ -2574,13 +2570,13 @@ var nt = an ? (
|
|
|
2574
2570
|
// Ponyfill
|
|
2575
2571
|
function(t) {
|
|
2576
2572
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2577
|
-
var s = i[n],
|
|
2578
|
-
r[
|
|
2573
|
+
var s = i[n], h = s[0], o = s[1];
|
|
2574
|
+
r[h] = o;
|
|
2579
2575
|
}
|
|
2580
2576
|
return r;
|
|
2581
2577
|
}
|
|
2582
2578
|
)
|
|
2583
|
-
), Gt =
|
|
2579
|
+
), Gt = un ? (
|
|
2584
2580
|
// Native
|
|
2585
2581
|
function(t, r) {
|
|
2586
2582
|
return t.codePointAt(r);
|
|
@@ -2594,7 +2590,7 @@ var nt = an ? (
|
|
|
2594
2590
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2595
2591
|
}
|
|
2596
2592
|
}
|
|
2597
|
-
),
|
|
2593
|
+
), dn = ln ? (
|
|
2598
2594
|
// Native
|
|
2599
2595
|
function(t) {
|
|
2600
2596
|
return t.trimStart();
|
|
@@ -2602,9 +2598,9 @@ var nt = an ? (
|
|
|
2602
2598
|
) : (
|
|
2603
2599
|
// Ponyfill
|
|
2604
2600
|
function(t) {
|
|
2605
|
-
return t.replace(
|
|
2601
|
+
return t.replace(nn, "");
|
|
2606
2602
|
}
|
|
2607
|
-
),
|
|
2603
|
+
), bn = fn ? (
|
|
2608
2604
|
// Native
|
|
2609
2605
|
function(t) {
|
|
2610
2606
|
return t.trimEnd();
|
|
@@ -2612,32 +2608,32 @@ var nt = an ? (
|
|
|
2612
2608
|
) : (
|
|
2613
2609
|
// Ponyfill
|
|
2614
2610
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2611
|
+
return t.replace(sn, "");
|
|
2616
2612
|
}
|
|
2617
2613
|
);
|
|
2618
2614
|
function Ft(e, t) {
|
|
2619
2615
|
return new RegExp(e, t);
|
|
2620
2616
|
}
|
|
2621
|
-
var
|
|
2622
|
-
if (
|
|
2617
|
+
var Ue;
|
|
2618
|
+
if ($e) {
|
|
2623
2619
|
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
-
|
|
2620
|
+
Ue = function(t, r) {
|
|
2625
2621
|
var n;
|
|
2626
2622
|
st.lastIndex = r;
|
|
2627
2623
|
var i = st.exec(t);
|
|
2628
2624
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2629
2625
|
};
|
|
2630
2626
|
} else
|
|
2631
|
-
|
|
2627
|
+
Ue = function(t, r) {
|
|
2632
2628
|
for (var n = []; ; ) {
|
|
2633
2629
|
var i = Gt(t, r);
|
|
2634
2630
|
if (i === void 0 || jt(i) || xn(i))
|
|
2635
2631
|
break;
|
|
2636
2632
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2637
2633
|
}
|
|
2638
|
-
return
|
|
2634
|
+
return Re.apply(void 0, n);
|
|
2639
2635
|
};
|
|
2640
|
-
var
|
|
2636
|
+
var gn = (
|
|
2641
2637
|
/** @class */
|
|
2642
2638
|
function() {
|
|
2643
2639
|
function e(t, r) {
|
|
@@ -2651,33 +2647,33 @@ var _n = (
|
|
|
2651
2647
|
for (var i = []; !this.isEOF(); ) {
|
|
2652
2648
|
var s = this.char();
|
|
2653
2649
|
if (s === 123) {
|
|
2654
|
-
var
|
|
2655
|
-
if (
|
|
2656
|
-
return
|
|
2657
|
-
i.push(
|
|
2650
|
+
var h = this.parseArgument(t, n);
|
|
2651
|
+
if (h.err)
|
|
2652
|
+
return h;
|
|
2653
|
+
i.push(h.val);
|
|
2658
2654
|
} else {
|
|
2659
2655
|
if (s === 125 && t > 0)
|
|
2660
2656
|
break;
|
|
2661
2657
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2662
2658
|
var o = this.clonePosition();
|
|
2663
2659
|
this.bump(), i.push({
|
|
2664
|
-
type:
|
|
2660
|
+
type: x.pound,
|
|
2665
2661
|
location: b(o, this.clonePosition())
|
|
2666
2662
|
});
|
|
2667
2663
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2668
2664
|
if (n)
|
|
2669
2665
|
break;
|
|
2670
2666
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2671
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
-
return
|
|
2675
|
-
i.push(
|
|
2667
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2668
|
+
var h = this.parseTag(t, r);
|
|
2669
|
+
if (h.err)
|
|
2670
|
+
return h;
|
|
2671
|
+
i.push(h.val);
|
|
2676
2672
|
} else {
|
|
2677
|
-
var
|
|
2678
|
-
if (
|
|
2679
|
-
return
|
|
2680
|
-
i.push(
|
|
2673
|
+
var h = this.parseLiteral(t, r);
|
|
2674
|
+
if (h.err)
|
|
2675
|
+
return h;
|
|
2676
|
+
i.push(h.val);
|
|
2681
2677
|
}
|
|
2682
2678
|
}
|
|
2683
2679
|
}
|
|
@@ -2689,7 +2685,7 @@ var _n = (
|
|
|
2689
2685
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2690
2686
|
return {
|
|
2691
2687
|
val: {
|
|
2692
|
-
type:
|
|
2688
|
+
type: x.literal,
|
|
2693
2689
|
value: "<".concat(i, "/>"),
|
|
2694
2690
|
location: b(n, this.clonePosition())
|
|
2695
2691
|
},
|
|
@@ -2699,16 +2695,16 @@ var _n = (
|
|
|
2699
2695
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2700
2696
|
if (s.err)
|
|
2701
2697
|
return s;
|
|
2702
|
-
var
|
|
2698
|
+
var h = s.val, o = this.clonePosition();
|
|
2703
2699
|
if (this.bumpIf("</")) {
|
|
2704
|
-
if (this.isEOF() || !
|
|
2700
|
+
if (this.isEOF() || !De(this.char()))
|
|
2705
2701
|
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2706
2702
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2707
2703
|
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2708
2704
|
val: {
|
|
2709
|
-
type:
|
|
2705
|
+
type: x.tag,
|
|
2710
2706
|
value: i,
|
|
2711
|
-
children:
|
|
2707
|
+
children: h,
|
|
2712
2708
|
location: b(n, this.clonePosition())
|
|
2713
2709
|
},
|
|
2714
2710
|
err: null
|
|
@@ -2719,7 +2715,7 @@ var _n = (
|
|
|
2719
2715
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2720
2716
|
}, e.prototype.parseTagName = function() {
|
|
2721
2717
|
var t = this.offset();
|
|
2722
|
-
for (this.bump(); !this.isEOF() &&
|
|
2718
|
+
for (this.bump(); !this.isEOF() && yn(this.char()); )
|
|
2723
2719
|
this.bump();
|
|
2724
2720
|
return this.message.slice(t, this.offset());
|
|
2725
2721
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2729,9 +2725,9 @@ var _n = (
|
|
|
2729
2725
|
i += s;
|
|
2730
2726
|
continue;
|
|
2731
2727
|
}
|
|
2732
|
-
var
|
|
2733
|
-
if (
|
|
2734
|
-
i +=
|
|
2728
|
+
var h = this.tryParseUnquoted(t, r);
|
|
2729
|
+
if (h) {
|
|
2730
|
+
i += h;
|
|
2735
2731
|
continue;
|
|
2736
2732
|
}
|
|
2737
2733
|
var o = this.tryParseLeftAngleBracket();
|
|
@@ -2743,12 +2739,12 @@ var _n = (
|
|
|
2743
2739
|
}
|
|
2744
2740
|
var l = b(n, this.clonePosition());
|
|
2745
2741
|
return {
|
|
2746
|
-
val: { type:
|
|
2742
|
+
val: { type: x.literal, value: i, location: l },
|
|
2747
2743
|
err: null
|
|
2748
2744
|
};
|
|
2749
2745
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2750
2746
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2751
|
-
!
|
|
2747
|
+
!_n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2752
2748
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2753
2749
|
if (this.isEOF() || this.char() !== 39)
|
|
2754
2750
|
return null;
|
|
@@ -2782,12 +2778,12 @@ var _n = (
|
|
|
2782
2778
|
r.push(n);
|
|
2783
2779
|
this.bump();
|
|
2784
2780
|
}
|
|
2785
|
-
return
|
|
2781
|
+
return Re.apply(void 0, r);
|
|
2786
2782
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2787
2783
|
if (this.isEOF())
|
|
2788
2784
|
return null;
|
|
2789
2785
|
var n = this.char();
|
|
2790
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2786
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2791
2787
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2792
2788
|
var n = this.clonePosition();
|
|
2793
2789
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2803,7 +2799,7 @@ var _n = (
|
|
|
2803
2799
|
case 125:
|
|
2804
2800
|
return this.bump(), {
|
|
2805
2801
|
val: {
|
|
2806
|
-
type:
|
|
2802
|
+
type: x.argument,
|
|
2807
2803
|
// value does not include the opening and closing braces.
|
|
2808
2804
|
value: i,
|
|
2809
2805
|
location: b(n, this.clonePosition())
|
|
@@ -2816,15 +2812,15 @@ var _n = (
|
|
|
2816
2812
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2817
2813
|
}
|
|
2818
2814
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2819
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2815
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
2820
2816
|
this.bumpTo(i);
|
|
2821
|
-
var s = this.clonePosition(),
|
|
2822
|
-
return { value: n, location:
|
|
2817
|
+
var s = this.clonePosition(), h = b(t, s);
|
|
2818
|
+
return { value: n, location: h };
|
|
2823
2819
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2824
|
-
var s,
|
|
2820
|
+
var s, h = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2825
2821
|
switch (o) {
|
|
2826
2822
|
case "":
|
|
2827
|
-
return this.error(d.EXPECT_ARGUMENT_TYPE, b(
|
|
2823
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(h, l));
|
|
2828
2824
|
case "number":
|
|
2829
2825
|
case "date":
|
|
2830
2826
|
case "time": {
|
|
@@ -2832,13 +2828,13 @@ var _n = (
|
|
|
2832
2828
|
var a = null;
|
|
2833
2829
|
if (this.bumpIf(",")) {
|
|
2834
2830
|
this.bumpSpace();
|
|
2835
|
-
var
|
|
2831
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2836
2832
|
if (f.err)
|
|
2837
2833
|
return f;
|
|
2838
|
-
var c =
|
|
2834
|
+
var c = bn(f.val);
|
|
2839
2835
|
if (c.length === 0)
|
|
2840
2836
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2841
|
-
var p = b(
|
|
2837
|
+
var p = b(u, this.clonePosition());
|
|
2842
2838
|
a = { style: c, styleLocation: p };
|
|
2843
2839
|
}
|
|
2844
2840
|
var m = this.tryParseArgumentClose(i);
|
|
@@ -2846,33 +2842,33 @@ var _n = (
|
|
|
2846
2842
|
return m;
|
|
2847
2843
|
var g = b(i, this.clonePosition());
|
|
2848
2844
|
if (a && nt(a?.style, "::", 0)) {
|
|
2849
|
-
var v =
|
|
2845
|
+
var v = dn(a.style.slice(2));
|
|
2850
2846
|
if (o === "number") {
|
|
2851
2847
|
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2852
2848
|
return f.err ? f : {
|
|
2853
|
-
val: { type:
|
|
2849
|
+
val: { type: x.number, value: n, location: g, style: f.val },
|
|
2854
2850
|
err: null
|
|
2855
2851
|
};
|
|
2856
2852
|
} else {
|
|
2857
2853
|
if (v.length === 0)
|
|
2858
2854
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2859
|
-
var
|
|
2860
|
-
this.locale && (
|
|
2855
|
+
var L = v;
|
|
2856
|
+
this.locale && (L = tn(v, this.locale));
|
|
2861
2857
|
var c = {
|
|
2862
|
-
type:
|
|
2863
|
-
pattern:
|
|
2858
|
+
type: k.dateTime,
|
|
2859
|
+
pattern: L,
|
|
2864
2860
|
location: a.styleLocation,
|
|
2865
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2866
|
-
},
|
|
2861
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(L) : {}
|
|
2862
|
+
}, A = o === "date" ? x.date : x.time;
|
|
2867
2863
|
return {
|
|
2868
|
-
val: { type:
|
|
2864
|
+
val: { type: A, value: n, location: g, style: c },
|
|
2869
2865
|
err: null
|
|
2870
2866
|
};
|
|
2871
2867
|
}
|
|
2872
2868
|
}
|
|
2873
2869
|
return {
|
|
2874
2870
|
val: {
|
|
2875
|
-
type: o === "number" ?
|
|
2871
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2876
2872
|
value: n,
|
|
2877
2873
|
location: g,
|
|
2878
2874
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2885,47 +2881,47 @@ var _n = (
|
|
|
2885
2881
|
case "select": {
|
|
2886
2882
|
var H = this.clonePosition();
|
|
2887
2883
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2888
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2884
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2889
2885
|
this.bumpSpace();
|
|
2890
|
-
var
|
|
2891
|
-
if (o !== "select" &&
|
|
2886
|
+
var N = this.parseIdentifierIfPossible(), T = 0;
|
|
2887
|
+
if (o !== "select" && N.value === "offset") {
|
|
2892
2888
|
if (!this.bumpIf(":"))
|
|
2893
2889
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2894
2890
|
this.bumpSpace();
|
|
2895
2891
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2896
2892
|
if (f.err)
|
|
2897
2893
|
return f;
|
|
2898
|
-
this.bumpSpace(),
|
|
2894
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
|
|
2899
2895
|
}
|
|
2900
|
-
var
|
|
2901
|
-
if (
|
|
2902
|
-
return
|
|
2896
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2897
|
+
if ($.err)
|
|
2898
|
+
return $;
|
|
2903
2899
|
var m = this.tryParseArgumentClose(i);
|
|
2904
2900
|
if (m.err)
|
|
2905
2901
|
return m;
|
|
2906
|
-
var
|
|
2902
|
+
var ie = b(i, this.clonePosition());
|
|
2907
2903
|
return o === "select" ? {
|
|
2908
2904
|
val: {
|
|
2909
|
-
type:
|
|
2905
|
+
type: x.select,
|
|
2910
2906
|
value: n,
|
|
2911
|
-
options: it(
|
|
2912
|
-
location:
|
|
2907
|
+
options: it($.val),
|
|
2908
|
+
location: ie
|
|
2913
2909
|
},
|
|
2914
2910
|
err: null
|
|
2915
2911
|
} : {
|
|
2916
2912
|
val: {
|
|
2917
|
-
type:
|
|
2913
|
+
type: x.plural,
|
|
2918
2914
|
value: n,
|
|
2919
|
-
options: it(
|
|
2920
|
-
offset:
|
|
2915
|
+
options: it($.val),
|
|
2916
|
+
offset: T,
|
|
2921
2917
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2922
|
-
location:
|
|
2918
|
+
location: ie
|
|
2923
2919
|
},
|
|
2924
2920
|
err: null
|
|
2925
2921
|
};
|
|
2926
2922
|
}
|
|
2927
2923
|
default:
|
|
2928
|
-
return this.error(d.INVALID_ARGUMENT_TYPE, b(
|
|
2924
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(h, l));
|
|
2929
2925
|
}
|
|
2930
2926
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2931
2927
|
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2967,34 +2963,34 @@ var _n = (
|
|
|
2967
2963
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2968
2964
|
var n = [];
|
|
2969
2965
|
try {
|
|
2970
|
-
n =
|
|
2966
|
+
n = Jr(t);
|
|
2971
2967
|
} catch {
|
|
2972
2968
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2973
2969
|
}
|
|
2974
2970
|
return {
|
|
2975
2971
|
val: {
|
|
2976
|
-
type:
|
|
2972
|
+
type: k.number,
|
|
2977
2973
|
tokens: n,
|
|
2978
2974
|
location: r,
|
|
2979
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2975
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2980
2976
|
},
|
|
2981
2977
|
err: null
|
|
2982
2978
|
};
|
|
2983
2979
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2984
|
-
for (var s,
|
|
2980
|
+
for (var s, h = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, u = i.location; ; ) {
|
|
2985
2981
|
if (a.length === 0) {
|
|
2986
2982
|
var f = this.clonePosition();
|
|
2987
2983
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2988
2984
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2989
2985
|
if (c.err)
|
|
2990
2986
|
return c;
|
|
2991
|
-
|
|
2987
|
+
u = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
2992
2988
|
} else
|
|
2993
2989
|
break;
|
|
2994
2990
|
}
|
|
2995
2991
|
if (l.has(a))
|
|
2996
|
-
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2997
|
-
a === "other" && (
|
|
2992
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
2993
|
+
a === "other" && (h = !0), this.bumpSpace();
|
|
2998
2994
|
var p = this.clonePosition();
|
|
2999
2995
|
if (!this.bumpIf("{"))
|
|
3000
2996
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3010,21 +3006,21 @@ var _n = (
|
|
|
3010
3006
|
value: m.val,
|
|
3011
3007
|
location: b(p, this.clonePosition())
|
|
3012
3008
|
}
|
|
3013
|
-
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value,
|
|
3009
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, u = s.location;
|
|
3014
3010
|
}
|
|
3015
|
-
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3011
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !h ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3016
3012
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3017
3013
|
var n = 1, i = this.clonePosition();
|
|
3018
3014
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3019
|
-
for (var s = !1,
|
|
3015
|
+
for (var s = !1, h = 0; !this.isEOF(); ) {
|
|
3020
3016
|
var o = this.char();
|
|
3021
3017
|
if (o >= 48 && o <= 57)
|
|
3022
|
-
s = !0,
|
|
3018
|
+
s = !0, h = h * 10 + (o - 48), this.bump();
|
|
3023
3019
|
else
|
|
3024
3020
|
break;
|
|
3025
3021
|
}
|
|
3026
3022
|
var l = b(i, this.clonePosition());
|
|
3027
|
-
return s ? (
|
|
3023
|
+
return s ? (h *= n, mn(h) ? { val: h, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3028
3024
|
}, e.prototype.offset = function() {
|
|
3029
3025
|
return this.position.offset;
|
|
3030
3026
|
}, e.prototype.isEOF = function() {
|
|
@@ -3090,13 +3086,13 @@ var _n = (
|
|
|
3090
3086
|
}, e;
|
|
3091
3087
|
}()
|
|
3092
3088
|
);
|
|
3093
|
-
function
|
|
3089
|
+
function De(e) {
|
|
3094
3090
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3095
3091
|
}
|
|
3096
|
-
function
|
|
3097
|
-
return
|
|
3092
|
+
function _n(e) {
|
|
3093
|
+
return De(e) || e === 47;
|
|
3098
3094
|
}
|
|
3099
|
-
function
|
|
3095
|
+
function yn(e) {
|
|
3100
3096
|
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;
|
|
3101
3097
|
}
|
|
3102
3098
|
function jt(e) {
|
|
@@ -3105,32 +3101,32 @@ function jt(e) {
|
|
|
3105
3101
|
function xn(e) {
|
|
3106
3102
|
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;
|
|
3107
3103
|
}
|
|
3108
|
-
function
|
|
3104
|
+
function Ge(e) {
|
|
3109
3105
|
e.forEach(function(t) {
|
|
3110
3106
|
if (delete t.location, Lt(t) || Nt(t))
|
|
3111
3107
|
for (var r in t.options)
|
|
3112
|
-
delete t.options[r].location,
|
|
3108
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3113
3109
|
else
|
|
3114
|
-
|
|
3110
|
+
Ct(t) && Mt(t.style) || (Ot(t) || Pt(t)) && Me(t.style) ? delete t.style.location : It(t) && Ge(t.children);
|
|
3115
3111
|
});
|
|
3116
3112
|
}
|
|
3117
|
-
function
|
|
3118
|
-
t === void 0 && (t = {}), t =
|
|
3119
|
-
var r = new
|
|
3113
|
+
function En(e, t) {
|
|
3114
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3115
|
+
var r = new gn(e, t).parse();
|
|
3120
3116
|
if (r.err) {
|
|
3121
3117
|
var n = SyntaxError(d[r.err.kind]);
|
|
3122
3118
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3123
3119
|
}
|
|
3124
|
-
return t?.captureLocation ||
|
|
3120
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3125
3121
|
}
|
|
3126
|
-
var
|
|
3122
|
+
var V;
|
|
3127
3123
|
(function(e) {
|
|
3128
3124
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3129
|
-
})(
|
|
3130
|
-
var
|
|
3125
|
+
})(V || (V = {}));
|
|
3126
|
+
var ge = (
|
|
3131
3127
|
/** @class */
|
|
3132
3128
|
function(e) {
|
|
3133
|
-
|
|
3129
|
+
be(t, e);
|
|
3134
3130
|
function t(r, n, i) {
|
|
3135
3131
|
var s = e.call(this, r) || this;
|
|
3136
3132
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3142,152 +3138,152 @@ var ye = (
|
|
|
3142
3138
|
), ot = (
|
|
3143
3139
|
/** @class */
|
|
3144
3140
|
function(e) {
|
|
3145
|
-
|
|
3141
|
+
be(t, e);
|
|
3146
3142
|
function t(r, n, i, s) {
|
|
3147
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3143
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3148
3144
|
}
|
|
3149
3145
|
return t;
|
|
3150
|
-
}(
|
|
3151
|
-
),
|
|
3146
|
+
}(ge)
|
|
3147
|
+
), vn = (
|
|
3152
3148
|
/** @class */
|
|
3153
3149
|
function(e) {
|
|
3154
|
-
|
|
3150
|
+
be(t, e);
|
|
3155
3151
|
function t(r, n, i) {
|
|
3156
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3152
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3157
3153
|
}
|
|
3158
3154
|
return t;
|
|
3159
|
-
}(
|
|
3160
|
-
),
|
|
3155
|
+
}(ge)
|
|
3156
|
+
), Hn = (
|
|
3161
3157
|
/** @class */
|
|
3162
3158
|
function(e) {
|
|
3163
|
-
|
|
3159
|
+
be(t, e);
|
|
3164
3160
|
function t(r, n) {
|
|
3165
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3161
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3166
3162
|
}
|
|
3167
3163
|
return t;
|
|
3168
|
-
}(
|
|
3169
|
-
),
|
|
3164
|
+
}(ge)
|
|
3165
|
+
), E;
|
|
3170
3166
|
(function(e) {
|
|
3171
3167
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3172
|
-
})(
|
|
3173
|
-
function
|
|
3168
|
+
})(E || (E = {}));
|
|
3169
|
+
function Bn(e) {
|
|
3174
3170
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3175
3171
|
var n = t[t.length - 1];
|
|
3176
|
-
return !n || n.type !==
|
|
3172
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3177
3173
|
}, []);
|
|
3178
3174
|
}
|
|
3179
|
-
function
|
|
3175
|
+
function Tn(e) {
|
|
3180
3176
|
return typeof e == "function";
|
|
3181
3177
|
}
|
|
3182
|
-
function
|
|
3178
|
+
function ue(e, t, r, n, i, s, h) {
|
|
3183
3179
|
if (e.length === 1 && Ke(e[0]))
|
|
3184
3180
|
return [
|
|
3185
3181
|
{
|
|
3186
|
-
type:
|
|
3182
|
+
type: E.literal,
|
|
3187
3183
|
value: e[0].value
|
|
3188
3184
|
}
|
|
3189
3185
|
];
|
|
3190
3186
|
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3191
|
-
var
|
|
3192
|
-
if (Ke(
|
|
3187
|
+
var u = a[l];
|
|
3188
|
+
if (Ke(u)) {
|
|
3193
3189
|
o.push({
|
|
3194
|
-
type:
|
|
3195
|
-
value:
|
|
3190
|
+
type: E.literal,
|
|
3191
|
+
value: u.value
|
|
3196
3192
|
});
|
|
3197
3193
|
continue;
|
|
3198
3194
|
}
|
|
3199
|
-
if (zr(
|
|
3195
|
+
if (zr(u)) {
|
|
3200
3196
|
typeof s == "number" && o.push({
|
|
3201
|
-
type:
|
|
3197
|
+
type: E.literal,
|
|
3202
3198
|
value: r.getNumberFormat(t).format(s)
|
|
3203
3199
|
});
|
|
3204
3200
|
continue;
|
|
3205
3201
|
}
|
|
3206
|
-
var f =
|
|
3202
|
+
var f = u.value;
|
|
3207
3203
|
if (!(i && f in i))
|
|
3208
|
-
throw new
|
|
3204
|
+
throw new Hn(f, h);
|
|
3209
3205
|
var c = i[f];
|
|
3210
|
-
if (
|
|
3206
|
+
if (Xr(u)) {
|
|
3211
3207
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3212
|
-
type: typeof c == "string" ?
|
|
3208
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3213
3209
|
value: c
|
|
3214
3210
|
});
|
|
3215
3211
|
continue;
|
|
3216
3212
|
}
|
|
3217
|
-
if (
|
|
3218
|
-
var p = typeof
|
|
3213
|
+
if (Ot(u)) {
|
|
3214
|
+
var p = typeof u.style == "string" ? n.date[u.style] : Me(u.style) ? u.style.parsedOptions : void 0;
|
|
3219
3215
|
o.push({
|
|
3220
|
-
type:
|
|
3216
|
+
type: E.literal,
|
|
3221
3217
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3222
3218
|
});
|
|
3223
3219
|
continue;
|
|
3224
3220
|
}
|
|
3225
|
-
if (Pt(
|
|
3226
|
-
var p = typeof
|
|
3221
|
+
if (Pt(u)) {
|
|
3222
|
+
var p = typeof u.style == "string" ? n.time[u.style] : Me(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3227
3223
|
o.push({
|
|
3228
|
-
type:
|
|
3224
|
+
type: E.literal,
|
|
3229
3225
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3230
3226
|
});
|
|
3231
3227
|
continue;
|
|
3232
3228
|
}
|
|
3233
|
-
if (
|
|
3234
|
-
var p = typeof
|
|
3229
|
+
if (Ct(u)) {
|
|
3230
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Mt(u.style) ? u.style.parsedOptions : void 0;
|
|
3235
3231
|
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3236
|
-
type:
|
|
3232
|
+
type: E.literal,
|
|
3237
3233
|
value: r.getNumberFormat(t, p).format(c)
|
|
3238
3234
|
});
|
|
3239
3235
|
continue;
|
|
3240
3236
|
}
|
|
3241
|
-
if (It(
|
|
3242
|
-
var m =
|
|
3243
|
-
if (!
|
|
3244
|
-
throw new
|
|
3245
|
-
var
|
|
3246
|
-
return
|
|
3237
|
+
if (It(u)) {
|
|
3238
|
+
var m = u.children, g = u.value, v = i[g];
|
|
3239
|
+
if (!Tn(v))
|
|
3240
|
+
throw new vn(g, "function", h);
|
|
3241
|
+
var L = ue(m, t, r, n, i, s), A = v(L.map(function(T) {
|
|
3242
|
+
return T.value;
|
|
3247
3243
|
}));
|
|
3248
|
-
Array.isArray(
|
|
3244
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
|
|
3249
3245
|
return {
|
|
3250
|
-
type: typeof
|
|
3251
|
-
value:
|
|
3246
|
+
type: typeof T == "string" ? E.literal : E.object,
|
|
3247
|
+
value: T
|
|
3252
3248
|
};
|
|
3253
3249
|
}));
|
|
3254
3250
|
}
|
|
3255
|
-
if (Lt(
|
|
3256
|
-
var H =
|
|
3251
|
+
if (Lt(u)) {
|
|
3252
|
+
var H = u.options[c] || u.options.other;
|
|
3257
3253
|
if (!H)
|
|
3258
|
-
throw new ot(
|
|
3259
|
-
o.push.apply(o,
|
|
3254
|
+
throw new ot(u.value, c, Object.keys(u.options), h);
|
|
3255
|
+
o.push.apply(o, ue(H.value, t, r, n, i));
|
|
3260
3256
|
continue;
|
|
3261
3257
|
}
|
|
3262
|
-
if (Nt(
|
|
3263
|
-
var H =
|
|
3258
|
+
if (Nt(u)) {
|
|
3259
|
+
var H = u.options["=".concat(c)];
|
|
3264
3260
|
if (!H) {
|
|
3265
3261
|
if (!Intl.PluralRules)
|
|
3266
|
-
throw new
|
|
3262
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3267
3263
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3268
|
-
`,
|
|
3269
|
-
var
|
|
3270
|
-
H =
|
|
3264
|
+
`, V.MISSING_INTL_API, h);
|
|
3265
|
+
var N = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3266
|
+
H = u.options[N] || u.options.other;
|
|
3271
3267
|
}
|
|
3272
3268
|
if (!H)
|
|
3273
|
-
throw new ot(
|
|
3274
|
-
o.push.apply(o,
|
|
3269
|
+
throw new ot(u.value, c, Object.keys(u.options), h);
|
|
3270
|
+
o.push.apply(o, ue(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3275
3271
|
continue;
|
|
3276
3272
|
}
|
|
3277
3273
|
}
|
|
3278
|
-
return
|
|
3274
|
+
return Bn(o);
|
|
3279
3275
|
}
|
|
3280
|
-
function
|
|
3281
|
-
return t ?
|
|
3282
|
-
return r[n] =
|
|
3276
|
+
function wn(e, t) {
|
|
3277
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3278
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3283
3279
|
}, {})) : e;
|
|
3284
3280
|
}
|
|
3285
|
-
function
|
|
3281
|
+
function Sn(e, t) {
|
|
3286
3282
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3287
|
-
return r[n] =
|
|
3288
|
-
},
|
|
3283
|
+
return r[n] = wn(e[n], t[n]), r;
|
|
3284
|
+
}, y({}, e)) : e;
|
|
3289
3285
|
}
|
|
3290
|
-
function
|
|
3286
|
+
function Ce(e) {
|
|
3291
3287
|
return {
|
|
3292
3288
|
create: function() {
|
|
3293
3289
|
return {
|
|
@@ -3301,35 +3297,35 @@ function Pe(e) {
|
|
|
3301
3297
|
}
|
|
3302
3298
|
};
|
|
3303
3299
|
}
|
|
3304
|
-
function
|
|
3300
|
+
function An(e) {
|
|
3305
3301
|
return e === void 0 && (e = {
|
|
3306
3302
|
number: {},
|
|
3307
3303
|
dateTime: {},
|
|
3308
3304
|
pluralRules: {}
|
|
3309
3305
|
}), {
|
|
3310
|
-
getNumberFormat:
|
|
3306
|
+
getNumberFormat: we(function() {
|
|
3311
3307
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3312
3308
|
r[n] = arguments[n];
|
|
3313
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3309
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3314
3310
|
}, {
|
|
3315
|
-
cache:
|
|
3316
|
-
strategy:
|
|
3311
|
+
cache: Ce(e.number),
|
|
3312
|
+
strategy: Se.variadic
|
|
3317
3313
|
}),
|
|
3318
|
-
getDateTimeFormat:
|
|
3314
|
+
getDateTimeFormat: we(function() {
|
|
3319
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3320
3316
|
r[n] = arguments[n];
|
|
3321
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3317
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3322
3318
|
}, {
|
|
3323
|
-
cache:
|
|
3324
|
-
strategy:
|
|
3319
|
+
cache: Ce(e.dateTime),
|
|
3320
|
+
strategy: Se.variadic
|
|
3325
3321
|
}),
|
|
3326
|
-
getPluralRules:
|
|
3322
|
+
getPluralRules: we(function() {
|
|
3327
3323
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3328
3324
|
r[n] = arguments[n];
|
|
3329
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3325
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3330
3326
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3327
|
+
cache: Ce(e.pluralRules),
|
|
3328
|
+
strategy: Se.variadic
|
|
3333
3329
|
})
|
|
3334
3330
|
};
|
|
3335
3331
|
}
|
|
@@ -3347,12 +3343,12 @@ var kt = (
|
|
|
3347
3343
|
var a = s.formatToParts(l);
|
|
3348
3344
|
if (a.length === 1)
|
|
3349
3345
|
return a[0].value;
|
|
3350
|
-
var
|
|
3351
|
-
return !f.length || c.type !==
|
|
3346
|
+
var u = a.reduce(function(f, c) {
|
|
3347
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3352
3348
|
}, []);
|
|
3353
|
-
return
|
|
3349
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3354
3350
|
}, this.formatToParts = function(l) {
|
|
3355
|
-
return
|
|
3351
|
+
return ue(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3356
3352
|
}, this.resolvedOptions = function() {
|
|
3357
3353
|
var l;
|
|
3358
3354
|
return {
|
|
@@ -3363,15 +3359,15 @@ var kt = (
|
|
|
3363
3359
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3364
3360
|
if (this.message = t, !e.__parse)
|
|
3365
3361
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3366
|
-
var
|
|
3367
|
-
|
|
3368
|
-
var o = Ur(
|
|
3369
|
-
this.ast = e.__parse(t,
|
|
3362
|
+
var h = i || {};
|
|
3363
|
+
h.formatters;
|
|
3364
|
+
var o = Ur(h, ["formatters"]);
|
|
3365
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3370
3366
|
} else
|
|
3371
3367
|
this.ast = t;
|
|
3372
3368
|
if (!Array.isArray(this.ast))
|
|
3373
3369
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3374
|
-
this.formats =
|
|
3370
|
+
this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || An(this.formatterCache);
|
|
3375
3371
|
}
|
|
3376
3372
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3377
3373
|
get: function() {
|
|
@@ -3384,7 +3380,7 @@ var kt = (
|
|
|
3384
3380
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3385
3381
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3386
3382
|
}
|
|
3387
|
-
}, e.__parse =
|
|
3383
|
+
}, e.__parse = En, e.formats = {
|
|
3388
3384
|
number: {
|
|
3389
3385
|
integer: {
|
|
3390
3386
|
maximumFractionDigits: 0
|
|
@@ -3466,101 +3462,101 @@ function Cn(e, t) {
|
|
|
3466
3462
|
n = void 0;
|
|
3467
3463
|
return n;
|
|
3468
3464
|
}
|
|
3469
|
-
const C = {},
|
|
3465
|
+
const C = {}, On = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
|
|
3470
3466
|
if (t == null)
|
|
3471
3467
|
return;
|
|
3472
3468
|
if (t in C && e in C[t])
|
|
3473
3469
|
return C[t][e];
|
|
3474
|
-
const r =
|
|
3470
|
+
const r = ne(t);
|
|
3475
3471
|
for (let n = 0; n < r.length; n++) {
|
|
3476
|
-
const i = r[n], s =
|
|
3472
|
+
const i = r[n], s = Ln(i, e);
|
|
3477
3473
|
if (s)
|
|
3478
|
-
return
|
|
3474
|
+
return On(e, t, s);
|
|
3479
3475
|
}
|
|
3480
3476
|
};
|
|
3481
|
-
let
|
|
3482
|
-
const
|
|
3483
|
-
function
|
|
3484
|
-
return
|
|
3477
|
+
let We;
|
|
3478
|
+
const re = de({});
|
|
3479
|
+
function Pn(e) {
|
|
3480
|
+
return We[e] || null;
|
|
3485
3481
|
}
|
|
3486
3482
|
function Xt(e) {
|
|
3487
|
-
return e in
|
|
3483
|
+
return e in We;
|
|
3488
3484
|
}
|
|
3489
|
-
function
|
|
3485
|
+
function Ln(e, t) {
|
|
3490
3486
|
if (!Xt(e))
|
|
3491
3487
|
return null;
|
|
3492
|
-
const r =
|
|
3488
|
+
const r = Pn(e);
|
|
3493
3489
|
return Cn(r, t);
|
|
3494
3490
|
}
|
|
3495
|
-
function
|
|
3491
|
+
function Nn(e) {
|
|
3496
3492
|
if (e == null)
|
|
3497
3493
|
return;
|
|
3498
|
-
const t =
|
|
3494
|
+
const t = ne(e);
|
|
3499
3495
|
for (let r = 0; r < t.length; r++) {
|
|
3500
3496
|
const n = t[r];
|
|
3501
3497
|
if (Xt(n))
|
|
3502
3498
|
return n;
|
|
3503
3499
|
}
|
|
3504
3500
|
}
|
|
3505
|
-
function
|
|
3506
|
-
delete C[e],
|
|
3501
|
+
function zt(e, ...t) {
|
|
3502
|
+
delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3507
3503
|
}
|
|
3508
|
-
|
|
3509
|
-
[
|
|
3504
|
+
W(
|
|
3505
|
+
[re],
|
|
3510
3506
|
([e]) => Object.keys(e)
|
|
3511
3507
|
);
|
|
3512
|
-
|
|
3513
|
-
const
|
|
3514
|
-
function
|
|
3515
|
-
|
|
3508
|
+
re.subscribe((e) => We = e);
|
|
3509
|
+
const le = {};
|
|
3510
|
+
function In(e, t) {
|
|
3511
|
+
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3516
3512
|
}
|
|
3517
|
-
function
|
|
3518
|
-
return
|
|
3513
|
+
function Wt(e) {
|
|
3514
|
+
return le[e];
|
|
3519
3515
|
}
|
|
3520
|
-
function
|
|
3521
|
-
return
|
|
3522
|
-
const r =
|
|
3516
|
+
function Mn(e) {
|
|
3517
|
+
return ne(e).map((t) => {
|
|
3518
|
+
const r = Wt(t);
|
|
3523
3519
|
return [t, r ? [...r] : []];
|
|
3524
3520
|
}).filter(([, t]) => t.length > 0);
|
|
3525
3521
|
}
|
|
3526
|
-
function
|
|
3527
|
-
return e == null ? !1 :
|
|
3522
|
+
function ce(e) {
|
|
3523
|
+
return e == null ? !1 : ne(e).some(
|
|
3528
3524
|
(t) => {
|
|
3529
3525
|
var r;
|
|
3530
|
-
return (r =
|
|
3526
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3531
3527
|
}
|
|
3532
3528
|
);
|
|
3533
3529
|
}
|
|
3534
|
-
function
|
|
3530
|
+
function $n(e, t) {
|
|
3535
3531
|
return Promise.all(
|
|
3536
|
-
t.map((n) => (
|
|
3537
|
-
).then((n) =>
|
|
3532
|
+
t.map((n) => (In(e, n), n().then((i) => i.default || i)))
|
|
3533
|
+
).then((n) => zt(e, ...n));
|
|
3538
3534
|
}
|
|
3539
|
-
const
|
|
3535
|
+
const Q = {};
|
|
3540
3536
|
function Zt(e) {
|
|
3541
|
-
if (!
|
|
3542
|
-
return e in
|
|
3543
|
-
const t =
|
|
3544
|
-
return
|
|
3537
|
+
if (!ce(e))
|
|
3538
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3539
|
+
const t = Mn(e);
|
|
3540
|
+
return Q[e] = Promise.all(
|
|
3545
3541
|
t.map(
|
|
3546
|
-
([r, n]) =>
|
|
3542
|
+
([r, n]) => $n(r, n)
|
|
3547
3543
|
)
|
|
3548
3544
|
).then(() => {
|
|
3549
|
-
if (
|
|
3545
|
+
if (ce(e))
|
|
3550
3546
|
return Zt(e);
|
|
3551
|
-
delete
|
|
3552
|
-
}),
|
|
3547
|
+
delete Q[e];
|
|
3548
|
+
}), Q[e];
|
|
3553
3549
|
}
|
|
3554
|
-
var at = Object.getOwnPropertySymbols,
|
|
3550
|
+
var at = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Dn = (e, t) => {
|
|
3555
3551
|
var r = {};
|
|
3556
3552
|
for (var n in e)
|
|
3557
|
-
|
|
3553
|
+
Rn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3558
3554
|
if (e != null && at)
|
|
3559
3555
|
for (var n of at(e))
|
|
3560
|
-
t.indexOf(n) < 0 &&
|
|
3556
|
+
t.indexOf(n) < 0 && Un.call(e, n) && (r[n] = e[n]);
|
|
3561
3557
|
return r;
|
|
3562
3558
|
};
|
|
3563
|
-
const
|
|
3559
|
+
const Gn = {
|
|
3564
3560
|
number: {
|
|
3565
3561
|
scientific: { notation: "scientific" },
|
|
3566
3562
|
engineering: { notation: "engineering" },
|
|
@@ -3590,28 +3586,28 @@ const Fn = {
|
|
|
3590
3586
|
}
|
|
3591
3587
|
}
|
|
3592
3588
|
};
|
|
3593
|
-
function
|
|
3589
|
+
function Fn({ locale: e, id: t }) {
|
|
3594
3590
|
console.warn(
|
|
3595
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3591
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3596
3592
|
e
|
|
3597
|
-
).join('", "')}".${
|
|
3593
|
+
).join('", "')}".${ce(P()) ? `
|
|
3598
3594
|
|
|
3599
3595
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3600
3596
|
);
|
|
3601
3597
|
}
|
|
3602
|
-
const
|
|
3598
|
+
const jn = {
|
|
3603
3599
|
fallbackLocale: null,
|
|
3604
3600
|
loadingDelay: 200,
|
|
3605
|
-
formats:
|
|
3601
|
+
formats: Gn,
|
|
3606
3602
|
warnOnMissingMessages: !0,
|
|
3607
3603
|
handleMissingMessage: void 0,
|
|
3608
3604
|
ignoreTag: !0
|
|
3609
|
-
},
|
|
3610
|
-
function
|
|
3611
|
-
return
|
|
3605
|
+
}, J = jn;
|
|
3606
|
+
function X() {
|
|
3607
|
+
return J;
|
|
3612
3608
|
}
|
|
3613
|
-
function
|
|
3614
|
-
const t = e, { formats: r } = t, n =
|
|
3609
|
+
function kn(e) {
|
|
3610
|
+
const t = e, { formats: r } = t, n = Dn(t, ["formats"]);
|
|
3615
3611
|
let i = e.fallbackLocale;
|
|
3616
3612
|
if (e.initialLocale)
|
|
3617
3613
|
try {
|
|
@@ -3621,152 +3617,152 @@ function Vn(e) {
|
|
|
3621
3617
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3622
3618
|
);
|
|
3623
3619
|
}
|
|
3624
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3620
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Fn : console.warn(
|
|
3625
3621
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3626
|
-
)), Object.assign(
|
|
3622
|
+
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
|
|
3627
3623
|
}
|
|
3628
|
-
const
|
|
3629
|
-
var
|
|
3624
|
+
const Oe = de(!1);
|
|
3625
|
+
var Vn = Object.defineProperty, Xn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
|
|
3630
3626
|
for (var r in t || (t = {}))
|
|
3631
|
-
|
|
3632
|
-
if (
|
|
3633
|
-
for (var r of
|
|
3634
|
-
|
|
3627
|
+
Wn.call(t, r) && ut(e, r, t[r]);
|
|
3628
|
+
if (ht)
|
|
3629
|
+
for (var r of ht(t))
|
|
3630
|
+
Zn.call(t, r) && ut(e, r, t[r]);
|
|
3635
3631
|
return e;
|
|
3636
|
-
},
|
|
3637
|
-
let
|
|
3638
|
-
const
|
|
3632
|
+
}, Jn = (e, t) => Xn(e, zn(t));
|
|
3633
|
+
let Fe;
|
|
3634
|
+
const me = de(null);
|
|
3639
3635
|
function lt(e) {
|
|
3640
3636
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3641
3637
|
}
|
|
3642
|
-
function
|
|
3638
|
+
function ne(e, t = X().fallbackLocale) {
|
|
3643
3639
|
const r = lt(e);
|
|
3644
3640
|
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3645
3641
|
}
|
|
3646
|
-
function
|
|
3647
|
-
return
|
|
3642
|
+
function P() {
|
|
3643
|
+
return Fe ?? void 0;
|
|
3648
3644
|
}
|
|
3649
|
-
|
|
3650
|
-
|
|
3645
|
+
me.subscribe((e) => {
|
|
3646
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3651
3647
|
});
|
|
3652
|
-
const
|
|
3653
|
-
if (e &&
|
|
3654
|
-
const { loadingDelay: t } =
|
|
3648
|
+
const qn = (e) => {
|
|
3649
|
+
if (e && Nn(e) && ce(e)) {
|
|
3650
|
+
const { loadingDelay: t } = X();
|
|
3655
3651
|
let r;
|
|
3656
|
-
return typeof window < "u" &&
|
|
3657
|
-
() =>
|
|
3652
|
+
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3653
|
+
() => Oe.set(!0),
|
|
3658
3654
|
t
|
|
3659
|
-
) :
|
|
3660
|
-
|
|
3655
|
+
) : Oe.set(!0), Zt(e).then(() => {
|
|
3656
|
+
me.set(e);
|
|
3661
3657
|
}).finally(() => {
|
|
3662
|
-
clearTimeout(r),
|
|
3658
|
+
clearTimeout(r), Oe.set(!1);
|
|
3663
3659
|
});
|
|
3664
3660
|
}
|
|
3665
|
-
return
|
|
3666
|
-
},
|
|
3667
|
-
set:
|
|
3668
|
-
}),
|
|
3661
|
+
return me.set(e);
|
|
3662
|
+
}, M = Jn(Qn({}, me), {
|
|
3663
|
+
set: qn
|
|
3664
|
+
}), _e = (e) => {
|
|
3669
3665
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3670
3666
|
return (n) => {
|
|
3671
3667
|
const i = JSON.stringify(n);
|
|
3672
3668
|
return i in t ? t[i] : t[i] = e(n);
|
|
3673
3669
|
};
|
|
3674
3670
|
};
|
|
3675
|
-
var
|
|
3671
|
+
var Yn = Object.defineProperty, pe = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3676
3672
|
for (var r in t || (t = {}))
|
|
3677
3673
|
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3678
|
-
if (
|
|
3679
|
-
for (var r of
|
|
3674
|
+
if (pe)
|
|
3675
|
+
for (var r of pe(t))
|
|
3680
3676
|
Jt.call(t, r) && ft(e, r, t[r]);
|
|
3681
3677
|
return e;
|
|
3682
|
-
},
|
|
3678
|
+
}, Z = (e, t) => {
|
|
3683
3679
|
var r = {};
|
|
3684
3680
|
for (var n in e)
|
|
3685
3681
|
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3686
|
-
if (e != null &&
|
|
3687
|
-
for (var n of
|
|
3682
|
+
if (e != null && pe)
|
|
3683
|
+
for (var n of pe(e))
|
|
3688
3684
|
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3689
3685
|
return r;
|
|
3690
3686
|
};
|
|
3691
|
-
const
|
|
3692
|
-
const { formats: r } =
|
|
3687
|
+
const K = (e, t) => {
|
|
3688
|
+
const { formats: r } = X();
|
|
3693
3689
|
if (e in r && t in r[e])
|
|
3694
3690
|
return r[e][t];
|
|
3695
3691
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3696
|
-
},
|
|
3692
|
+
}, Kn = _e(
|
|
3697
3693
|
(e) => {
|
|
3698
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3694
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3699
3695
|
if (r == null)
|
|
3700
3696
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3701
|
-
return n && (i =
|
|
3697
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3702
3698
|
}
|
|
3703
|
-
),
|
|
3699
|
+
), ei = _e(
|
|
3704
3700
|
(e) => {
|
|
3705
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3701
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3706
3702
|
if (r == null)
|
|
3707
3703
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3708
|
-
return n ? i =
|
|
3704
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3709
3705
|
}
|
|
3710
|
-
),
|
|
3706
|
+
), ti = _e(
|
|
3711
3707
|
(e) => {
|
|
3712
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3708
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3713
3709
|
if (r == null)
|
|
3714
3710
|
throw new Error(
|
|
3715
3711
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3716
3712
|
);
|
|
3717
|
-
return n ? i =
|
|
3713
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3718
3714
|
}
|
|
3719
|
-
),
|
|
3715
|
+
), ri = (e = {}) => {
|
|
3720
3716
|
var t = e, {
|
|
3721
|
-
locale: r =
|
|
3722
|
-
} = t, n =
|
|
3717
|
+
locale: r = P()
|
|
3718
|
+
} = t, n = Z(t, [
|
|
3723
3719
|
"locale"
|
|
3724
3720
|
]);
|
|
3725
|
-
return
|
|
3726
|
-
},
|
|
3721
|
+
return Kn(Ze({ locale: r }, n));
|
|
3722
|
+
}, ni = (e = {}) => {
|
|
3727
3723
|
var t = e, {
|
|
3728
|
-
locale: r =
|
|
3729
|
-
} = t, n =
|
|
3724
|
+
locale: r = P()
|
|
3725
|
+
} = t, n = Z(t, [
|
|
3730
3726
|
"locale"
|
|
3731
3727
|
]);
|
|
3732
|
-
return
|
|
3733
|
-
},
|
|
3728
|
+
return ei(Ze({ locale: r }, n));
|
|
3729
|
+
}, ii = (e = {}) => {
|
|
3734
3730
|
var t = e, {
|
|
3735
|
-
locale: r =
|
|
3736
|
-
} = t, n =
|
|
3731
|
+
locale: r = P()
|
|
3732
|
+
} = t, n = Z(t, [
|
|
3737
3733
|
"locale"
|
|
3738
3734
|
]);
|
|
3739
|
-
return
|
|
3740
|
-
},
|
|
3735
|
+
return ti(Ze({ locale: r }, n));
|
|
3736
|
+
}, si = _e(
|
|
3741
3737
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3742
|
-
(e, t =
|
|
3743
|
-
ignoreTag:
|
|
3738
|
+
(e, t = P()) => new kt(e, t, X().formats, {
|
|
3739
|
+
ignoreTag: X().ignoreTag
|
|
3744
3740
|
})
|
|
3745
|
-
),
|
|
3741
|
+
), oi = (e, t = {}) => {
|
|
3746
3742
|
var r, n, i, s;
|
|
3747
|
-
let
|
|
3748
|
-
typeof e == "object" && (
|
|
3743
|
+
let h = t;
|
|
3744
|
+
typeof e == "object" && (h = e, e = h.id);
|
|
3749
3745
|
const {
|
|
3750
3746
|
values: o,
|
|
3751
|
-
locale: l =
|
|
3747
|
+
locale: l = P(),
|
|
3752
3748
|
default: a
|
|
3753
|
-
} =
|
|
3749
|
+
} = h;
|
|
3754
3750
|
if (l == null)
|
|
3755
3751
|
throw new Error(
|
|
3756
3752
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3757
3753
|
);
|
|
3758
|
-
let
|
|
3759
|
-
if (!
|
|
3760
|
-
|
|
3761
|
-
else if (typeof
|
|
3754
|
+
let u = Vt(e, l);
|
|
3755
|
+
if (!u)
|
|
3756
|
+
u = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3757
|
+
else if (typeof u != "string")
|
|
3762
3758
|
return console.warn(
|
|
3763
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3764
|
-
),
|
|
3759
|
+
`[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.`
|
|
3760
|
+
), u;
|
|
3765
3761
|
if (!o)
|
|
3766
|
-
return
|
|
3767
|
-
let f =
|
|
3762
|
+
return u;
|
|
3763
|
+
let f = u;
|
|
3768
3764
|
try {
|
|
3769
|
-
f =
|
|
3765
|
+
f = si(u, l).format(o);
|
|
3770
3766
|
} catch (c) {
|
|
3771
3767
|
c instanceof Error && console.warn(
|
|
3772
3768
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3774,18 +3770,18 @@ const ee = (e, t) => {
|
|
|
3774
3770
|
);
|
|
3775
3771
|
}
|
|
3776
3772
|
return f;
|
|
3777
|
-
},
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3773
|
+
}, ai = (e, t) => ii(t).format(e), hi = (e, t) => ni(t).format(e), ui = (e, t) => ri(t).format(e), li = (e, t = P()) => Vt(e, t), fi = W([M, re], () => oi);
|
|
3774
|
+
W([M], () => ai);
|
|
3775
|
+
W([M], () => hi);
|
|
3776
|
+
W([M], () => ui);
|
|
3777
|
+
W([M, re], () => li);
|
|
3782
3778
|
function ct(e, t) {
|
|
3783
|
-
|
|
3779
|
+
zt(e, t);
|
|
3784
3780
|
}
|
|
3785
|
-
function
|
|
3786
|
-
|
|
3781
|
+
function ci(e) {
|
|
3782
|
+
kn({
|
|
3787
3783
|
fallbackLocale: "en"
|
|
3788
|
-
}),
|
|
3784
|
+
}), M.set(e);
|
|
3789
3785
|
}
|
|
3790
3786
|
const mt = {
|
|
3791
3787
|
en: {
|
|
@@ -3810,18 +3806,18 @@ const mt = {
|
|
|
3810
3806
|
}
|
|
3811
3807
|
}
|
|
3812
3808
|
};
|
|
3813
|
-
function
|
|
3809
|
+
function mi(e) {
|
|
3814
3810
|
nr(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}");
|
|
3815
3811
|
}
|
|
3816
|
-
const
|
|
3812
|
+
const pi = (e) => ({}), pt = (e) => ({}), di = (e) => ({}), dt = (e) => ({}), bi = (e) => ({}), bt = (e) => ({});
|
|
3817
3813
|
function gt(e) {
|
|
3818
3814
|
let t, r, n;
|
|
3819
3815
|
return {
|
|
3820
3816
|
c() {
|
|
3821
|
-
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',
|
|
3817
|
+
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
|
|
3822
3818
|
},
|
|
3823
3819
|
m(i, s) {
|
|
3824
|
-
|
|
3820
|
+
I(i, t, s), r || (n = Bt(
|
|
3825
3821
|
t,
|
|
3826
3822
|
"click",
|
|
3827
3823
|
/*back*/
|
|
@@ -3830,11 +3826,11 @@ function gt(e) {
|
|
|
3830
3826
|
},
|
|
3831
3827
|
p: B,
|
|
3832
3828
|
d(i) {
|
|
3833
|
-
i &&
|
|
3829
|
+
i && O(t), r = !1, n();
|
|
3834
3830
|
}
|
|
3835
3831
|
};
|
|
3836
3832
|
}
|
|
3837
|
-
function
|
|
3833
|
+
function gi(e) {
|
|
3838
3834
|
let t, r = (
|
|
3839
3835
|
/*backButton*/
|
|
3840
3836
|
e[1] && gt(e)
|
|
@@ -3844,18 +3840,18 @@ function _i(e) {
|
|
|
3844
3840
|
r && r.c(), t = Ht();
|
|
3845
3841
|
},
|
|
3846
3842
|
m(n, i) {
|
|
3847
|
-
r && r.m(n, i),
|
|
3843
|
+
r && r.m(n, i), I(n, t, i);
|
|
3848
3844
|
},
|
|
3849
3845
|
p(n, i) {
|
|
3850
3846
|
/*backButton*/
|
|
3851
3847
|
n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3852
3848
|
},
|
|
3853
3849
|
d(n) {
|
|
3854
|
-
n &&
|
|
3850
|
+
n && O(t), r && r.d(n);
|
|
3855
3851
|
}
|
|
3856
3852
|
};
|
|
3857
3853
|
}
|
|
3858
|
-
function
|
|
3854
|
+
function _i(e) {
|
|
3859
3855
|
let t, r = (
|
|
3860
3856
|
/*$_*/
|
|
3861
3857
|
e[4](
|
|
@@ -3865,10 +3861,10 @@ function yi(e) {
|
|
|
3865
3861
|
), n;
|
|
3866
3862
|
return {
|
|
3867
3863
|
c() {
|
|
3868
|
-
t = z("span"), n =
|
|
3864
|
+
t = z("span"), n = ke(r), te(t, "class", "CashierHeaderTitle");
|
|
3869
3865
|
},
|
|
3870
3866
|
m(i, s) {
|
|
3871
|
-
|
|
3867
|
+
I(i, t, s), fe(t, n);
|
|
3872
3868
|
},
|
|
3873
3869
|
p(i, s) {
|
|
3874
3870
|
s & /*$_, titleText*/
|
|
@@ -3879,7 +3875,7 @@ function yi(e) {
|
|
|
3879
3875
|
) + "") && ar(n, r);
|
|
3880
3876
|
},
|
|
3881
3877
|
d(i) {
|
|
3882
|
-
i &&
|
|
3878
|
+
i && O(t);
|
|
3883
3879
|
}
|
|
3884
3880
|
};
|
|
3885
3881
|
}
|
|
@@ -3887,10 +3883,10 @@ function _t(e) {
|
|
|
3887
3883
|
let t, r, n;
|
|
3888
3884
|
return {
|
|
3889
3885
|
c() {
|
|
3890
|
-
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',
|
|
3886
|
+
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderRightButton");
|
|
3891
3887
|
},
|
|
3892
3888
|
m(i, s) {
|
|
3893
|
-
|
|
3889
|
+
I(i, t, s), r || (n = Bt(
|
|
3894
3890
|
t,
|
|
3895
3891
|
"click",
|
|
3896
3892
|
/*close*/
|
|
@@ -3899,11 +3895,11 @@ function _t(e) {
|
|
|
3899
3895
|
},
|
|
3900
3896
|
p: B,
|
|
3901
3897
|
d(i) {
|
|
3902
|
-
i &&
|
|
3898
|
+
i && O(t), r = !1, n();
|
|
3903
3899
|
}
|
|
3904
3900
|
};
|
|
3905
3901
|
}
|
|
3906
|
-
function
|
|
3902
|
+
function yi(e) {
|
|
3907
3903
|
let t, r = (
|
|
3908
3904
|
/*closeButton*/
|
|
3909
3905
|
e[3] && _t(e)
|
|
@@ -3913,14 +3909,14 @@ function Ei(e) {
|
|
|
3913
3909
|
r && r.c(), t = Ht();
|
|
3914
3910
|
},
|
|
3915
3911
|
m(n, i) {
|
|
3916
|
-
r && r.m(n, i),
|
|
3912
|
+
r && r.m(n, i), I(n, t, i);
|
|
3917
3913
|
},
|
|
3918
3914
|
p(n, i) {
|
|
3919
3915
|
/*closeButton*/
|
|
3920
3916
|
n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3921
3917
|
},
|
|
3922
3918
|
d(n) {
|
|
3923
|
-
n &&
|
|
3919
|
+
n && O(t), r && r.d(n);
|
|
3924
3920
|
}
|
|
3925
3921
|
};
|
|
3926
3922
|
}
|
|
@@ -3929,91 +3925,91 @@ function xi(e) {
|
|
|
3929
3925
|
const s = (
|
|
3930
3926
|
/*#slots*/
|
|
3931
3927
|
e[15].leftButton
|
|
3932
|
-
),
|
|
3928
|
+
), h = ye(
|
|
3933
3929
|
s,
|
|
3934
3930
|
e,
|
|
3935
3931
|
/*$$scope*/
|
|
3936
3932
|
e[14],
|
|
3937
3933
|
bt
|
|
3938
|
-
), o =
|
|
3934
|
+
), o = h || gi(e), l = (
|
|
3939
3935
|
/*#slots*/
|
|
3940
3936
|
e[15].title
|
|
3941
|
-
), a =
|
|
3937
|
+
), a = ye(
|
|
3942
3938
|
l,
|
|
3943
3939
|
e,
|
|
3944
3940
|
/*$$scope*/
|
|
3945
3941
|
e[14],
|
|
3946
3942
|
dt
|
|
3947
|
-
),
|
|
3943
|
+
), u = a || _i(e), f = (
|
|
3948
3944
|
/*#slots*/
|
|
3949
3945
|
e[15].rightButton
|
|
3950
|
-
), c =
|
|
3946
|
+
), c = ye(
|
|
3951
3947
|
f,
|
|
3952
3948
|
e,
|
|
3953
3949
|
/*$$scope*/
|
|
3954
3950
|
e[14],
|
|
3955
3951
|
pt
|
|
3956
|
-
), p = c ||
|
|
3952
|
+
), p = c || yi(e);
|
|
3957
3953
|
return {
|
|
3958
3954
|
c() {
|
|
3959
|
-
t = z("div"), o && o.c(), r = Je(),
|
|
3955
|
+
t = z("div"), o && o.c(), r = Je(), u && u.c(), n = Je(), p && p.c(), te(t, "class", "CashierHeader");
|
|
3960
3956
|
},
|
|
3961
3957
|
m(m, g) {
|
|
3962
|
-
|
|
3958
|
+
I(m, t, g), o && o.m(t, null), fe(t, r), u && u.m(t, null), fe(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3963
3959
|
},
|
|
3964
3960
|
p(m, [g]) {
|
|
3965
|
-
|
|
3966
|
-
16384) &&
|
|
3967
|
-
|
|
3961
|
+
h ? h.p && (!i || g & /*$$scope*/
|
|
3962
|
+
16384) && Ee(
|
|
3963
|
+
h,
|
|
3968
3964
|
s,
|
|
3969
3965
|
m,
|
|
3970
3966
|
/*$$scope*/
|
|
3971
3967
|
m[14],
|
|
3972
|
-
i ?
|
|
3968
|
+
i ? xe(
|
|
3973
3969
|
s,
|
|
3974
3970
|
/*$$scope*/
|
|
3975
3971
|
m[14],
|
|
3976
3972
|
g,
|
|
3977
|
-
|
|
3978
|
-
) :
|
|
3973
|
+
bi
|
|
3974
|
+
) : ve(
|
|
3979
3975
|
/*$$scope*/
|
|
3980
3976
|
m[14]
|
|
3981
3977
|
),
|
|
3982
3978
|
bt
|
|
3983
3979
|
) : o && o.p && (!i || g & /*backButton*/
|
|
3984
3980
|
2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
|
|
3985
|
-
16384) &&
|
|
3981
|
+
16384) && Ee(
|
|
3986
3982
|
a,
|
|
3987
3983
|
l,
|
|
3988
3984
|
m,
|
|
3989
3985
|
/*$$scope*/
|
|
3990
3986
|
m[14],
|
|
3991
|
-
i ?
|
|
3987
|
+
i ? xe(
|
|
3992
3988
|
l,
|
|
3993
3989
|
/*$$scope*/
|
|
3994
3990
|
m[14],
|
|
3995
3991
|
g,
|
|
3996
|
-
|
|
3997
|
-
) :
|
|
3992
|
+
di
|
|
3993
|
+
) : ve(
|
|
3998
3994
|
/*$$scope*/
|
|
3999
3995
|
m[14]
|
|
4000
3996
|
),
|
|
4001
3997
|
dt
|
|
4002
|
-
) :
|
|
4003
|
-
20) &&
|
|
4004
|
-
16384) &&
|
|
3998
|
+
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
3999
|
+
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4000
|
+
16384) && Ee(
|
|
4005
4001
|
c,
|
|
4006
4002
|
f,
|
|
4007
4003
|
m,
|
|
4008
4004
|
/*$$scope*/
|
|
4009
4005
|
m[14],
|
|
4010
|
-
i ?
|
|
4006
|
+
i ? xe(
|
|
4011
4007
|
f,
|
|
4012
4008
|
/*$$scope*/
|
|
4013
4009
|
m[14],
|
|
4014
4010
|
g,
|
|
4015
|
-
|
|
4016
|
-
) :
|
|
4011
|
+
pi
|
|
4012
|
+
) : ve(
|
|
4017
4013
|
/*$$scope*/
|
|
4018
4014
|
m[14]
|
|
4019
4015
|
),
|
|
@@ -4022,74 +4018,74 @@ function xi(e) {
|
|
|
4022
4018
|
8) && p.p(m, i ? g : -1);
|
|
4023
4019
|
},
|
|
4024
4020
|
i(m) {
|
|
4025
|
-
i || (
|
|
4021
|
+
i || (ae(o, m), ae(u, m), ae(p, m), i = !0);
|
|
4026
4022
|
},
|
|
4027
4023
|
o(m) {
|
|
4028
|
-
|
|
4024
|
+
Be(o, m), Be(u, m), Be(p, m), i = !1;
|
|
4029
4025
|
},
|
|
4030
4026
|
d(m) {
|
|
4031
|
-
m &&
|
|
4027
|
+
m && O(t), o && o.d(m), u && u.d(m), p && p.d(m), e[16](null);
|
|
4032
4028
|
}
|
|
4033
4029
|
};
|
|
4034
4030
|
}
|
|
4035
|
-
function
|
|
4031
|
+
function Ei(e, t, r) {
|
|
4036
4032
|
let n;
|
|
4037
|
-
rr(e,
|
|
4038
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4039
|
-
const
|
|
4033
|
+
rr(e, fi, (_) => r(4, n = _));
|
|
4034
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
|
|
4035
|
+
const L = () => {
|
|
4040
4036
|
let _ = l;
|
|
4041
|
-
_ && fetch(_).then((
|
|
4042
|
-
Object.keys(
|
|
4043
|
-
ct(
|
|
4037
|
+
_ && fetch(_).then((w) => w.json()).then((w) => {
|
|
4038
|
+
Object.keys(w).forEach((R) => {
|
|
4039
|
+
ct(R, w[R]);
|
|
4044
4040
|
});
|
|
4045
|
-
}).catch((
|
|
4046
|
-
console.log(
|
|
4041
|
+
}).catch((w) => {
|
|
4042
|
+
console.log(w);
|
|
4047
4043
|
});
|
|
4048
4044
|
};
|
|
4049
4045
|
Object.keys(mt).forEach((_) => {
|
|
4050
4046
|
ct(_, mt[_]);
|
|
4051
4047
|
});
|
|
4052
|
-
const
|
|
4048
|
+
const A = () => {
|
|
4053
4049
|
let _ = document.createElement("style");
|
|
4054
|
-
_.innerHTML =
|
|
4050
|
+
_.innerHTML = h, p.appendChild(_);
|
|
4055
4051
|
}, H = () => {
|
|
4056
|
-
let _ = new URL(o),
|
|
4057
|
-
fetch(_.href).then((
|
|
4058
|
-
|
|
4052
|
+
let _ = new URL(o), w = document.createElement("style");
|
|
4053
|
+
fetch(_.href).then((R) => R.text()).then((R) => {
|
|
4054
|
+
w.innerHTML = R, setTimeout(
|
|
4059
4055
|
() => {
|
|
4060
|
-
p.appendChild(
|
|
4056
|
+
p.appendChild(w);
|
|
4061
4057
|
},
|
|
4062
4058
|
1
|
|
4063
4059
|
);
|
|
4064
4060
|
});
|
|
4065
|
-
},
|
|
4066
|
-
|
|
4067
|
-
},
|
|
4061
|
+
}, N = () => {
|
|
4062
|
+
ci(f);
|
|
4063
|
+
}, T = () => {
|
|
4068
4064
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4069
|
-
},
|
|
4065
|
+
}, $ = () => {
|
|
4070
4066
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4071
|
-
},
|
|
4067
|
+
}, ie = () => {
|
|
4072
4068
|
r(1, m = !!a && a !== "false");
|
|
4073
4069
|
}, qt = () => {
|
|
4074
4070
|
r(3, v = !!c && c !== "false");
|
|
4075
4071
|
}, Yt = () => {
|
|
4076
|
-
r(2, g =
|
|
4072
|
+
r(2, g = u || "header.general");
|
|
4077
4073
|
};
|
|
4078
4074
|
function Kt(_) {
|
|
4079
|
-
|
|
4075
|
+
Pe[_ ? "unshift" : "push"](() => {
|
|
4080
4076
|
p = _, r(0, p);
|
|
4081
4077
|
});
|
|
4082
4078
|
}
|
|
4083
4079
|
return e.$$set = (_) => {
|
|
4084
|
-
"clientstyling" in _ && r(7,
|
|
4080
|
+
"clientstyling" in _ && r(7, h = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.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);
|
|
4085
4081
|
}, e.$$.update = () => {
|
|
4086
4082
|
e.$$.dirty & /*lang*/
|
|
4087
|
-
4096 && f &&
|
|
4088
|
-
6144 && f &&
|
|
4089
|
-
129 &&
|
|
4083
|
+
4096 && f && N(), e.$$.dirty & /*lang, title*/
|
|
4084
|
+
6144 && f && u && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4085
|
+
129 && h && p && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4090
4086
|
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4091
|
-
4608 && f && l &&
|
|
4092
|
-
1024 && a &&
|
|
4087
|
+
4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
|
|
4088
|
+
1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
|
|
4093
4089
|
8192 && c && qt();
|
|
4094
4090
|
}, [
|
|
4095
4091
|
p,
|
|
@@ -4097,13 +4093,13 @@ function vi(e, t, r) {
|
|
|
4097
4093
|
g,
|
|
4098
4094
|
v,
|
|
4099
4095
|
n,
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4096
|
+
T,
|
|
4097
|
+
$,
|
|
4098
|
+
h,
|
|
4103
4099
|
o,
|
|
4104
4100
|
l,
|
|
4105
4101
|
a,
|
|
4106
|
-
|
|
4102
|
+
u,
|
|
4107
4103
|
f,
|
|
4108
4104
|
c,
|
|
4109
4105
|
s,
|
|
@@ -4111,14 +4107,14 @@ function vi(e, t, r) {
|
|
|
4111
4107
|
Kt
|
|
4112
4108
|
];
|
|
4113
4109
|
}
|
|
4114
|
-
class
|
|
4110
|
+
class vi extends yr {
|
|
4115
4111
|
constructor(t) {
|
|
4116
4112
|
super(), gr(
|
|
4117
4113
|
this,
|
|
4118
4114
|
t,
|
|
4119
|
-
|
|
4115
|
+
Ei,
|
|
4120
4116
|
xi,
|
|
4121
|
-
|
|
4117
|
+
xt,
|
|
4122
4118
|
{
|
|
4123
4119
|
clientstyling: 7,
|
|
4124
4120
|
clientstylingurl: 8,
|
|
@@ -4128,53 +4124,53 @@ class Hi extends yr {
|
|
|
4128
4124
|
lang: 12,
|
|
4129
4125
|
showclosebutton: 13
|
|
4130
4126
|
},
|
|
4131
|
-
|
|
4127
|
+
mi
|
|
4132
4128
|
);
|
|
4133
4129
|
}
|
|
4134
4130
|
get clientstyling() {
|
|
4135
4131
|
return this.$$.ctx[7];
|
|
4136
4132
|
}
|
|
4137
4133
|
set clientstyling(t) {
|
|
4138
|
-
this.$$set({ clientstyling: t }),
|
|
4134
|
+
this.$$set({ clientstyling: t }), S();
|
|
4139
4135
|
}
|
|
4140
4136
|
get clientstylingurl() {
|
|
4141
4137
|
return this.$$.ctx[8];
|
|
4142
4138
|
}
|
|
4143
4139
|
set clientstylingurl(t) {
|
|
4144
|
-
this.$$set({ clientstylingurl: t }),
|
|
4140
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4145
4141
|
}
|
|
4146
4142
|
get translationurl() {
|
|
4147
4143
|
return this.$$.ctx[9];
|
|
4148
4144
|
}
|
|
4149
4145
|
set translationurl(t) {
|
|
4150
|
-
this.$$set({ translationurl: t }),
|
|
4146
|
+
this.$$set({ translationurl: t }), S();
|
|
4151
4147
|
}
|
|
4152
4148
|
get showbackbutton() {
|
|
4153
4149
|
return this.$$.ctx[10];
|
|
4154
4150
|
}
|
|
4155
4151
|
set showbackbutton(t) {
|
|
4156
|
-
this.$$set({ showbackbutton: t }),
|
|
4152
|
+
this.$$set({ showbackbutton: t }), S();
|
|
4157
4153
|
}
|
|
4158
4154
|
get title() {
|
|
4159
4155
|
return this.$$.ctx[11];
|
|
4160
4156
|
}
|
|
4161
4157
|
set title(t) {
|
|
4162
|
-
this.$$set({ title: t }),
|
|
4158
|
+
this.$$set({ title: t }), S();
|
|
4163
4159
|
}
|
|
4164
4160
|
get lang() {
|
|
4165
4161
|
return this.$$.ctx[12];
|
|
4166
4162
|
}
|
|
4167
4163
|
set lang(t) {
|
|
4168
|
-
this.$$set({ lang: t }),
|
|
4164
|
+
this.$$set({ lang: t }), S();
|
|
4169
4165
|
}
|
|
4170
4166
|
get showclosebutton() {
|
|
4171
4167
|
return this.$$.ctx[13];
|
|
4172
4168
|
}
|
|
4173
4169
|
set showclosebutton(t) {
|
|
4174
|
-
this.$$set({ showclosebutton: t }),
|
|
4170
|
+
this.$$set({ showclosebutton: t }), S();
|
|
4175
4171
|
}
|
|
4176
4172
|
}
|
|
4177
|
-
_r(
|
|
4173
|
+
_r(vi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4178
4174
|
export {
|
|
4179
|
-
|
|
4175
|
+
vi as C
|
|
4180
4176
|
};
|