@everymatrix/cashier-carousel 1.77.14 → 1.77.16
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/{CashierCarousel-BCvvNAok.js → CashierCarousel-6N3uNoWG.js} +817 -860
- package/components/{CashierCarousel-CVCi6ikE.js → CashierCarousel-BXAVvSsO.js} +820 -863
- package/components/CashierCarousel-CeTG0yB-.cjs +20 -0
- package/es2015/cashier-carousel.cjs +1 -1
- package/es2015/cashier-carousel.js +1 -1
- package/esnext/cashier-carousel.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-BrkCbtIS.cjs +0 -20
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function zt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function bt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ue(e) {
|
|
10
|
+
e.forEach(zt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function mt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Zt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let we;
|
|
19
|
-
function
|
|
19
|
+
function gt(e, t) {
|
|
20
20
|
return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ar(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Qt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function er(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Br(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Qt(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function T(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Mr(e, t, r) {
|
|
41
|
+
const n = Or(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = P("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Cr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Or(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,8 +54,8 @@ function $r(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Cr(e, t) {
|
|
58
|
+
return T(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
@@ -67,7 +67,7 @@ function G(e, t, r) {
|
|
|
67
67
|
function R(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function yt(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -77,23 +77,23 @@ function P(e) {
|
|
|
77
77
|
function $(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function F() {
|
|
81
81
|
return $(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Me(e, t, r, n) {
|
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function B(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ir(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function j(e, t) {
|
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
94
94
|
t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Lr(e) {
|
|
97
97
|
const t = {};
|
|
98
98
|
return e.childNodes.forEach(
|
|
99
99
|
/** @param {Element} node */
|
|
@@ -102,90 +102,90 @@ function Ur(e) {
|
|
|
102
102
|
}
|
|
103
103
|
), t;
|
|
104
104
|
}
|
|
105
|
-
let
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
let ge;
|
|
106
|
+
function be(e) {
|
|
107
|
+
ge = e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
109
|
+
function Nr() {
|
|
110
|
+
if (!ge)
|
|
111
111
|
throw new Error("Function called outside component initialization");
|
|
112
|
-
return
|
|
112
|
+
return ge;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function $r(e) {
|
|
115
|
+
Nr().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
117
|
const te = [], Ne = [];
|
|
118
118
|
let re = [];
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
|
|
119
|
+
const vt = [], Rr = /* @__PURE__ */ Promise.resolve();
|
|
120
|
+
let Ye = !1;
|
|
121
|
+
function Dr() {
|
|
122
|
+
Ye || (Ye = !0, Rr.then(N));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Je(e) {
|
|
125
125
|
re.push(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const ke = /* @__PURE__ */ new Set();
|
|
128
128
|
let K = 0;
|
|
129
129
|
function N() {
|
|
130
130
|
if (K !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = ge;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
135
|
for (; K < te.length; ) {
|
|
136
136
|
const t = te[K];
|
|
137
|
-
K++,
|
|
137
|
+
K++, be(t), Ur(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
140
|
throw te.length = 0, K = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
142
|
+
for (be(null), te.length = 0, K = 0; Ne.length; )
|
|
143
143
|
Ne.pop()();
|
|
144
144
|
for (let t = 0; t < re.length; t += 1) {
|
|
145
145
|
const r = re[t];
|
|
146
|
-
|
|
146
|
+
ke.has(r) || (ke.add(r), r());
|
|
147
147
|
}
|
|
148
148
|
re.length = 0;
|
|
149
149
|
} while (te.length);
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
for (; vt.length; )
|
|
151
|
+
vt.pop()();
|
|
152
|
+
Ye = !1, ke.clear(), be(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ur(e) {
|
|
155
155
|
if (e.fragment !== null) {
|
|
156
|
-
e.update(),
|
|
156
|
+
e.update(), ue(e.before_update);
|
|
157
157
|
const t = e.dirty;
|
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Gr(e) {
|
|
162
162
|
const t = [], r = [];
|
|
163
163
|
re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
e && e.i && (
|
|
165
|
+
const Fr = /* @__PURE__ */ new Set();
|
|
166
|
+
function jr(e, t) {
|
|
167
|
+
e && e.i && (Fr.delete(e), e.i(t));
|
|
168
168
|
}
|
|
169
169
|
function He(e) {
|
|
170
170
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function kr(e, t, r) {
|
|
173
173
|
const { fragment: n, after_update: i } = e.$$;
|
|
174
|
-
n && n.m(t, r),
|
|
175
|
-
const o = e.$$.on_mount.map(
|
|
176
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
177
|
-
}), i.forEach(
|
|
174
|
+
n && n.m(t, r), Je(() => {
|
|
175
|
+
const o = e.$$.on_mount.map(zt).filter(mt);
|
|
176
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
177
|
+
}), i.forEach(Je);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Vr(e, t) {
|
|
180
180
|
const r = e.$$;
|
|
181
|
-
r.fragment !== null && (
|
|
181
|
+
r.fragment !== null && (Gr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
e.$$.dirty[0] === -1 && (te.push(e),
|
|
183
|
+
function Xr(e, t) {
|
|
184
|
+
e.$$.dirty[0] === -1 && (te.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
const l =
|
|
188
|
-
|
|
186
|
+
function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
187
|
+
const l = ge;
|
|
188
|
+
be(e);
|
|
189
189
|
const u = e.$$ = {
|
|
190
190
|
fragment: null,
|
|
191
191
|
ctx: [],
|
|
@@ -193,7 +193,7 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
193
193
|
props: o,
|
|
194
194
|
update: D,
|
|
195
195
|
not_equal: i,
|
|
196
|
-
bound:
|
|
196
|
+
bound: bt(),
|
|
197
197
|
// lifecycle
|
|
198
198
|
on_mount: [],
|
|
199
199
|
on_destroy: [],
|
|
@@ -202,28 +202,28 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
202
202
|
after_update: [],
|
|
203
203
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
204
204
|
// everything else
|
|
205
|
-
callbacks:
|
|
205
|
+
callbacks: bt(),
|
|
206
206
|
dirty: a,
|
|
207
207
|
skip_bound: !1,
|
|
208
208
|
root: t.target || l.$$.root
|
|
209
209
|
};
|
|
210
210
|
s && s(u.root);
|
|
211
211
|
let h = !1;
|
|
212
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
212
|
+
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...b) => {
|
|
213
213
|
const y = b.length ? b[0] : c;
|
|
214
|
-
return u.ctx && i(u.ctx[
|
|
215
|
-
}) : [], u.update(), h = !0,
|
|
214
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = y) && (!u.skip_bound && u.bound[m] && u.bound[m](y), h && Xr(e, m)), c;
|
|
215
|
+
}) : [], u.update(), h = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
216
216
|
if (t.hydrate) {
|
|
217
|
-
const
|
|
218
|
-
u.fragment && u.fragment.l(
|
|
217
|
+
const m = Ir(t.target);
|
|
218
|
+
u.fragment && u.fragment.l(m), m.forEach(R);
|
|
219
219
|
} else
|
|
220
220
|
u.fragment && u.fragment.c();
|
|
221
|
-
t.intro &&
|
|
221
|
+
t.intro && jr(e.$$.fragment), kr(e, t.target, t.anchor), N();
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
be(l);
|
|
224
224
|
}
|
|
225
|
-
let
|
|
226
|
-
typeof HTMLElement == "function" && (
|
|
225
|
+
let Yt;
|
|
226
|
+
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
227
227
|
/** The Svelte component constructor */
|
|
228
228
|
$$ctor;
|
|
229
229
|
/** Slots */
|
|
@@ -265,7 +265,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
265
265
|
let o;
|
|
266
266
|
return {
|
|
267
267
|
c: function() {
|
|
268
|
-
o = P("slot"), i !== "default" &&
|
|
268
|
+
o = P("slot"), i !== "default" && B(o, "name", i);
|
|
269
269
|
},
|
|
270
270
|
/**
|
|
271
271
|
* @param {HTMLElement} target
|
|
@@ -282,12 +282,12 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
282
282
|
};
|
|
283
283
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
284
284
|
return;
|
|
285
|
-
const t = {}, r =
|
|
285
|
+
const t = {}, r = Lr(this);
|
|
286
286
|
for (const i of this.$$s)
|
|
287
287
|
i in r && (t[i] = [e(i)]);
|
|
288
288
|
for (const i of this.attributes) {
|
|
289
289
|
const o = this.$$g_p(i.name);
|
|
290
|
-
o in this.$$d || (this.$$d[o] =
|
|
290
|
+
o in this.$$d || (this.$$d[o] = Oe(o, i.value, this.$$p_d, "toProp"));
|
|
291
291
|
}
|
|
292
292
|
for (const i in this.$$p_d)
|
|
293
293
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
305
305
|
this.$$r = !0;
|
|
306
306
|
for (const i in this.$$p_d)
|
|
307
307
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
308
|
-
const o =
|
|
308
|
+
const o = Oe(
|
|
309
309
|
i,
|
|
310
310
|
this.$$d[i],
|
|
311
311
|
this.$$p_d,
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
327
327
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
328
328
|
// and setting attributes through setAttribute etc, this is helpful
|
|
329
329
|
attributeChangedCallback(e, t, r) {
|
|
330
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
330
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Oe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
331
331
|
}
|
|
332
332
|
disconnectedCallback() {
|
|
333
333
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
340
340
|
) || e;
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function Oe(e, t, r, n) {
|
|
344
344
|
const i = r[e]?.type;
|
|
345
345
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
346
346
|
return t;
|
|
@@ -369,8 +369,8 @@ function Me(e, t, r, n) {
|
|
|
369
369
|
return t;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
let s = class extends
|
|
372
|
+
function zr(e, t, r, n, i, o) {
|
|
373
|
+
let s = class extends Yt {
|
|
374
374
|
constructor() {
|
|
375
375
|
super(e, r, i), this.$$p_d = t;
|
|
376
376
|
}
|
|
@@ -386,7 +386,7 @@ function qr(e, t, r, n, i, o) {
|
|
|
386
386
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
387
387
|
},
|
|
388
388
|
set(l) {
|
|
389
|
-
l =
|
|
389
|
+
l = Oe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
}), n.forEach((a) => {
|
|
@@ -398,7 +398,7 @@ function qr(e, t, r, n, i, o) {
|
|
|
398
398
|
}), e.element = /** @type {any} */
|
|
399
399
|
s, s;
|
|
400
400
|
}
|
|
401
|
-
class
|
|
401
|
+
class Zr {
|
|
402
402
|
/**
|
|
403
403
|
* ### PRIVATE API
|
|
404
404
|
*
|
|
@@ -417,7 +417,7 @@ class Kr {
|
|
|
417
417
|
$$set = void 0;
|
|
418
418
|
/** @returns {void} */
|
|
419
419
|
$destroy() {
|
|
420
|
-
|
|
420
|
+
Vr(this, 1), this.$destroy = D;
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -426,7 +426,7 @@ class Kr {
|
|
|
426
426
|
* @returns {() => void}
|
|
427
427
|
*/
|
|
428
428
|
$on(t, r) {
|
|
429
|
-
if (!
|
|
429
|
+
if (!mt(r))
|
|
430
430
|
return D;
|
|
431
431
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
432
432
|
return n.push(r), () => {
|
|
@@ -439,22 +439,22 @@ class Kr {
|
|
|
439
439
|
* @returns {void}
|
|
440
440
|
*/
|
|
441
441
|
$set(t) {
|
|
442
|
-
this.$$set && !
|
|
442
|
+
this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
445
|
+
const Qr = "4";
|
|
446
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qr);
|
|
447
447
|
const ee = [];
|
|
448
|
-
function
|
|
448
|
+
function Yr(e, t) {
|
|
449
449
|
return {
|
|
450
|
-
subscribe:
|
|
450
|
+
subscribe: Ue(e, t).subscribe
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ue(e, t = D) {
|
|
454
454
|
let r;
|
|
455
455
|
const n = /* @__PURE__ */ new Set();
|
|
456
456
|
function i(a) {
|
|
457
|
-
if (
|
|
457
|
+
if (Zt(e, a) && (e = a, r)) {
|
|
458
458
|
const l = !ee.length;
|
|
459
459
|
for (const u of n)
|
|
460
460
|
u[1](), ee.push(u, e);
|
|
@@ -476,26 +476,26 @@ function Ge(e, t = D) {
|
|
|
476
476
|
}
|
|
477
477
|
return { set: i, update: o, subscribe: s };
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function le(e, t, r) {
|
|
480
480
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
481
481
|
if (!i.every(Boolean))
|
|
482
482
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
483
483
|
const o = t.length < 2;
|
|
484
|
-
return
|
|
484
|
+
return Yr(r, (s, a) => {
|
|
485
485
|
let l = !1;
|
|
486
486
|
const u = [];
|
|
487
|
-
let h = 0,
|
|
487
|
+
let h = 0, m = D;
|
|
488
488
|
const c = () => {
|
|
489
489
|
if (h)
|
|
490
490
|
return;
|
|
491
|
-
|
|
491
|
+
m();
|
|
492
492
|
const y = t(n ? u[0] : u, s, a);
|
|
493
|
-
o ? s(y) :
|
|
493
|
+
o ? s(y) : m = mt(y) ? y : D;
|
|
494
494
|
}, b = i.map(
|
|
495
|
-
(y, g) =>
|
|
495
|
+
(y, g) => Qt(
|
|
496
496
|
y,
|
|
497
|
-
(
|
|
498
|
-
u[g] =
|
|
497
|
+
(x) => {
|
|
498
|
+
u[g] = x, h &= ~(1 << g), l && c();
|
|
499
499
|
},
|
|
500
500
|
() => {
|
|
501
501
|
h |= 1 << g;
|
|
@@ -503,112 +503,126 @@ function ue(e, t, r) {
|
|
|
503
503
|
)
|
|
504
504
|
);
|
|
505
505
|
return l = !0, c(), function() {
|
|
506
|
-
|
|
506
|
+
ue(b), m(), l = !1;
|
|
507
507
|
};
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Jr(e) {
|
|
511
511
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
return
|
|
513
|
+
var qr = function(t) {
|
|
514
|
+
return Kr(t) && !en(t);
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function Kr(e) {
|
|
517
517
|
return !!e && typeof e == "object";
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function en(e) {
|
|
520
520
|
var t = Object.prototype.toString.call(e);
|
|
521
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
521
|
+
return t === "[object RegExp]" || t === "[object Date]" || nn(e);
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
return e.$$typeof ===
|
|
523
|
+
var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
|
|
524
|
+
function nn(e) {
|
|
525
|
+
return e.$$typeof === rn;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function on(e) {
|
|
528
528
|
return Array.isArray(e) ? [] : {};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
530
|
+
function ye(e, t) {
|
|
531
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ie(on(e), e, t) : e;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function sn(e, t, r) {
|
|
534
534
|
return e.concat(t).map(function(n) {
|
|
535
|
-
return
|
|
535
|
+
return ye(n, r);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function an(e, t) {
|
|
539
539
|
if (!t.customMerge)
|
|
540
|
-
return
|
|
540
|
+
return ie;
|
|
541
541
|
var r = t.customMerge(e);
|
|
542
|
-
return typeof r == "function" ? r :
|
|
542
|
+
return typeof r == "function" ? r : ie;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function un(e) {
|
|
545
545
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
546
546
|
return Object.propertyIsEnumerable.call(e, t);
|
|
547
547
|
}) : [];
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return Object.keys(e).concat(
|
|
549
|
+
function _t(e) {
|
|
550
|
+
return Object.keys(e).concat(un(e));
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Jt(e, t) {
|
|
553
553
|
try {
|
|
554
554
|
return t in e;
|
|
555
555
|
} catch {
|
|
556
556
|
return !1;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
559
|
+
function ln(e, t) {
|
|
560
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function hn(e, t, r) {
|
|
563
563
|
var n = {};
|
|
564
|
-
return r.isMergeableObject(e) &&
|
|
565
|
-
n[i] =
|
|
566
|
-
}),
|
|
567
|
-
|
|
564
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
565
|
+
n[i] = ye(e[i], r);
|
|
566
|
+
}), _t(t).forEach(function(i) {
|
|
567
|
+
ln(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = an(i, r)(e[i], t[i], r) : n[i] = ye(t[i], r));
|
|
568
568
|
}), n;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
570
|
+
function ie(e, t, r) {
|
|
571
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || qr, r.cloneUnlessOtherwiseSpecified = ye;
|
|
572
572
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
573
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
573
|
+
return o ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : ye(t, r);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
ie.all = function(t, r) {
|
|
576
576
|
if (!Array.isArray(t))
|
|
577
577
|
throw new Error("first argument should be an array");
|
|
578
578
|
return t.reduce(function(n, i) {
|
|
579
|
-
return
|
|
579
|
+
return ie(n, i, r);
|
|
580
580
|
}, {});
|
|
581
581
|
};
|
|
582
|
-
var
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
|
|
582
|
+
var cn = ie, fn = cn;
|
|
583
|
+
const mn = /* @__PURE__ */ Jr(fn);
|
|
584
|
+
/*! *****************************************************************************
|
|
585
|
+
Copyright (c) Microsoft Corporation.
|
|
586
|
+
|
|
587
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
588
|
+
purpose with or without fee is hereby granted.
|
|
589
|
+
|
|
590
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
591
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
592
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
593
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
594
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
595
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
596
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
597
|
+
***************************************************************************** */
|
|
598
|
+
var qe = function(e, t) {
|
|
599
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
586
600
|
r.__proto__ = n;
|
|
587
601
|
} || function(r, n) {
|
|
588
602
|
for (var i in n)
|
|
589
603
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
590
|
-
},
|
|
604
|
+
}, qe(e, t);
|
|
591
605
|
};
|
|
592
|
-
function
|
|
606
|
+
function V(e, t) {
|
|
593
607
|
if (typeof t != "function" && t !== null)
|
|
594
608
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
595
|
-
|
|
609
|
+
qe(e, t);
|
|
596
610
|
function r() {
|
|
597
611
|
this.constructor = e;
|
|
598
612
|
}
|
|
599
613
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
600
614
|
}
|
|
601
|
-
var
|
|
602
|
-
return
|
|
615
|
+
var S = function() {
|
|
616
|
+
return S = Object.assign || function(t) {
|
|
603
617
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
604
618
|
r = arguments[n];
|
|
605
619
|
for (var o in r)
|
|
606
620
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
607
621
|
}
|
|
608
622
|
return t;
|
|
609
|
-
},
|
|
623
|
+
}, S.apply(this, arguments);
|
|
610
624
|
};
|
|
611
|
-
function
|
|
625
|
+
function pn(e, t) {
|
|
612
626
|
var r = {};
|
|
613
627
|
for (var n in e)
|
|
614
628
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -617,43 +631,75 @@ function vn(e, t) {
|
|
|
617
631
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
618
632
|
return r;
|
|
619
633
|
}
|
|
620
|
-
function
|
|
634
|
+
function Ke(e) {
|
|
635
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
636
|
+
if (r)
|
|
637
|
+
return r.call(e);
|
|
638
|
+
if (e && typeof e.length == "number")
|
|
639
|
+
return {
|
|
640
|
+
next: function() {
|
|
641
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
645
|
+
}
|
|
646
|
+
function et(e, t) {
|
|
647
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
648
|
+
if (!r)
|
|
649
|
+
return e;
|
|
650
|
+
var n = r.call(e), i, o = [], s;
|
|
651
|
+
try {
|
|
652
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
653
|
+
o.push(i.value);
|
|
654
|
+
} catch (a) {
|
|
655
|
+
s = { error: a };
|
|
656
|
+
} finally {
|
|
657
|
+
try {
|
|
658
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
659
|
+
} finally {
|
|
660
|
+
if (s)
|
|
661
|
+
throw s.error;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
return o;
|
|
665
|
+
}
|
|
666
|
+
function ne(e, t, r) {
|
|
621
667
|
if (r || arguments.length === 2)
|
|
622
668
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
623
669
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
624
|
-
return e.concat(o ||
|
|
670
|
+
return e.concat(o || t);
|
|
625
671
|
}
|
|
626
|
-
function
|
|
627
|
-
var r = t && t.cache ? t.cache :
|
|
672
|
+
function Ve(e, t) {
|
|
673
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : gn;
|
|
628
674
|
return i(e, {
|
|
629
675
|
cache: r,
|
|
630
676
|
serializer: n
|
|
631
677
|
});
|
|
632
678
|
}
|
|
633
|
-
function
|
|
679
|
+
function dn(e) {
|
|
634
680
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
635
681
|
}
|
|
636
|
-
function
|
|
637
|
-
var i =
|
|
682
|
+
function bn(e, t, r, n) {
|
|
683
|
+
var i = dn(n) ? n : r(n), o = t.get(i);
|
|
638
684
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
639
685
|
}
|
|
640
|
-
function
|
|
686
|
+
function qt(e, t, r) {
|
|
641
687
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
642
688
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
643
689
|
}
|
|
644
|
-
function
|
|
690
|
+
function Kt(e, t, r, n, i) {
|
|
645
691
|
return r.bind(t, e, n, i);
|
|
646
692
|
}
|
|
647
|
-
function
|
|
648
|
-
var r = e.length === 1 ?
|
|
649
|
-
return
|
|
693
|
+
function gn(e, t) {
|
|
694
|
+
var r = e.length === 1 ? bn : qt;
|
|
695
|
+
return Kt(e, this, r, t.cache.create(), t.serializer);
|
|
650
696
|
}
|
|
651
|
-
function
|
|
652
|
-
return
|
|
697
|
+
function yn(e, t) {
|
|
698
|
+
return Kt(e, this, qt, t.cache.create(), t.serializer);
|
|
653
699
|
}
|
|
654
|
-
var
|
|
700
|
+
var vn = function() {
|
|
655
701
|
return JSON.stringify(arguments);
|
|
656
|
-
},
|
|
702
|
+
}, _n = (
|
|
657
703
|
/** @class */
|
|
658
704
|
function() {
|
|
659
705
|
function e() {
|
|
@@ -665,71 +711,61 @@ var Tn = function() {
|
|
|
665
711
|
this.cache[t] = r;
|
|
666
712
|
}, e;
|
|
667
713
|
}()
|
|
668
|
-
),
|
|
714
|
+
), xn = {
|
|
669
715
|
create: function() {
|
|
670
|
-
return new
|
|
716
|
+
return new _n();
|
|
671
717
|
}
|
|
672
|
-
},
|
|
673
|
-
variadic:
|
|
674
|
-
},
|
|
675
|
-
return $e = Object.assign || function(t) {
|
|
676
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
677
|
-
r = arguments[n];
|
|
678
|
-
for (var o in r)
|
|
679
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
680
|
-
}
|
|
681
|
-
return t;
|
|
682
|
-
}, $e.apply(this, arguments);
|
|
683
|
-
};
|
|
684
|
-
var v;
|
|
718
|
+
}, Xe = {
|
|
719
|
+
variadic: yn
|
|
720
|
+
}, v;
|
|
685
721
|
(function(e) {
|
|
686
722
|
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";
|
|
687
723
|
})(v || (v = {}));
|
|
688
|
-
var
|
|
724
|
+
var H;
|
|
689
725
|
(function(e) {
|
|
690
726
|
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";
|
|
691
|
-
})(
|
|
692
|
-
var
|
|
727
|
+
})(H || (H = {}));
|
|
728
|
+
var oe;
|
|
693
729
|
(function(e) {
|
|
694
730
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
695
|
-
})(
|
|
696
|
-
function
|
|
697
|
-
return e.type ===
|
|
731
|
+
})(oe || (oe = {}));
|
|
732
|
+
function xt(e) {
|
|
733
|
+
return e.type === H.literal;
|
|
698
734
|
}
|
|
699
|
-
function
|
|
700
|
-
return e.type ===
|
|
735
|
+
function En(e) {
|
|
736
|
+
return e.type === H.argument;
|
|
701
737
|
}
|
|
702
|
-
function
|
|
703
|
-
return e.type ===
|
|
738
|
+
function er(e) {
|
|
739
|
+
return e.type === H.number;
|
|
704
740
|
}
|
|
705
|
-
function
|
|
706
|
-
return e.type ===
|
|
741
|
+
function tr(e) {
|
|
742
|
+
return e.type === H.date;
|
|
707
743
|
}
|
|
708
|
-
function
|
|
709
|
-
return e.type ===
|
|
744
|
+
function rr(e) {
|
|
745
|
+
return e.type === H.time;
|
|
710
746
|
}
|
|
711
|
-
function
|
|
712
|
-
return e.type ===
|
|
747
|
+
function nr(e) {
|
|
748
|
+
return e.type === H.select;
|
|
713
749
|
}
|
|
714
|
-
function
|
|
715
|
-
return e.type ===
|
|
750
|
+
function ir(e) {
|
|
751
|
+
return e.type === H.plural;
|
|
716
752
|
}
|
|
717
|
-
function
|
|
718
|
-
return e.type ===
|
|
753
|
+
function Sn(e) {
|
|
754
|
+
return e.type === H.pound;
|
|
719
755
|
}
|
|
720
|
-
function
|
|
721
|
-
return e.type ===
|
|
756
|
+
function or(e) {
|
|
757
|
+
return e.type === H.tag;
|
|
722
758
|
}
|
|
723
|
-
function
|
|
724
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
759
|
+
function sr(e) {
|
|
760
|
+
return !!(e && typeof e == "object" && e.type === oe.number);
|
|
725
761
|
}
|
|
726
|
-
function
|
|
727
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
762
|
+
function tt(e) {
|
|
763
|
+
return !!(e && typeof e == "object" && e.type === oe.dateTime);
|
|
728
764
|
}
|
|
729
|
-
var
|
|
730
|
-
function
|
|
765
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
|
|
766
|
+
function wn(e) {
|
|
731
767
|
var t = {};
|
|
732
|
-
return e.replace(
|
|
768
|
+
return e.replace(Tn, function(r) {
|
|
733
769
|
var n = r.length;
|
|
734
770
|
switch (r[0]) {
|
|
735
771
|
case "G":
|
|
@@ -818,46 +854,36 @@ function Bn(e) {
|
|
|
818
854
|
return "";
|
|
819
855
|
}), t;
|
|
820
856
|
}
|
|
821
|
-
var
|
|
822
|
-
|
|
823
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
824
|
-
r = arguments[n];
|
|
825
|
-
for (var o in r)
|
|
826
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
827
|
-
}
|
|
828
|
-
return t;
|
|
829
|
-
}, H.apply(this, arguments);
|
|
830
|
-
};
|
|
831
|
-
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
832
|
-
function Cn(e) {
|
|
857
|
+
var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
858
|
+
function Pn(e) {
|
|
833
859
|
if (e.length === 0)
|
|
834
860
|
throw new Error("Number skeleton cannot be empty");
|
|
835
|
-
for (var t = e.split(
|
|
861
|
+
for (var t = e.split(Hn).filter(function(c) {
|
|
836
862
|
return c.length > 0;
|
|
837
863
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
838
864
|
var o = i[n], s = o.split("/");
|
|
839
865
|
if (s.length === 0)
|
|
840
866
|
throw new Error("Invalid number skeleton");
|
|
841
867
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
842
|
-
var
|
|
843
|
-
if (
|
|
868
|
+
var m = h[u];
|
|
869
|
+
if (m.length === 0)
|
|
844
870
|
throw new Error("Invalid number skeleton");
|
|
845
871
|
}
|
|
846
872
|
r.push({ stem: a, options: l });
|
|
847
873
|
}
|
|
848
874
|
return r;
|
|
849
875
|
}
|
|
850
|
-
function
|
|
876
|
+
function An(e) {
|
|
851
877
|
return e.replace(/^(.*?)-/, "");
|
|
852
878
|
}
|
|
853
|
-
var
|
|
854
|
-
function
|
|
879
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
|
880
|
+
function St(e) {
|
|
855
881
|
var t = {};
|
|
856
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
882
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
|
|
857
883
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
858
884
|
}), t;
|
|
859
885
|
}
|
|
860
|
-
function
|
|
886
|
+
function hr(e) {
|
|
861
887
|
switch (e) {
|
|
862
888
|
case "sign-auto":
|
|
863
889
|
return {
|
|
@@ -897,7 +923,7 @@ function dr(e) {
|
|
|
897
923
|
};
|
|
898
924
|
}
|
|
899
925
|
}
|
|
900
|
-
function
|
|
926
|
+
function Mn(e) {
|
|
901
927
|
var t;
|
|
902
928
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
903
929
|
notation: "engineering"
|
|
@@ -905,17 +931,17 @@ function Nn(e) {
|
|
|
905
931
|
notation: "scientific"
|
|
906
932
|
}, e = e.slice(1)), t) {
|
|
907
933
|
var r = e.slice(0, 2);
|
|
908
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
934
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
|
909
935
|
throw new Error("Malformed concise eng/scientific notation");
|
|
910
936
|
t.minimumIntegerDigits = e.length;
|
|
911
937
|
}
|
|
912
938
|
return t;
|
|
913
939
|
}
|
|
914
|
-
function
|
|
915
|
-
var t = {}, r =
|
|
940
|
+
function Tt(e) {
|
|
941
|
+
var t = {}, r = hr(e);
|
|
916
942
|
return r || t;
|
|
917
943
|
}
|
|
918
|
-
function
|
|
944
|
+
function On(e) {
|
|
919
945
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
920
946
|
var i = n[r];
|
|
921
947
|
switch (i.stem) {
|
|
@@ -939,7 +965,7 @@ function $n(e) {
|
|
|
939
965
|
continue;
|
|
940
966
|
case "measure-unit":
|
|
941
967
|
case "unit":
|
|
942
|
-
t.style = "unit", t.unit =
|
|
968
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
943
969
|
continue;
|
|
944
970
|
case "compact-short":
|
|
945
971
|
case "K":
|
|
@@ -950,13 +976,13 @@ function $n(e) {
|
|
|
950
976
|
t.notation = "compact", t.compactDisplay = "long";
|
|
951
977
|
continue;
|
|
952
978
|
case "scientific":
|
|
953
|
-
t =
|
|
954
|
-
return
|
|
979
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
980
|
+
return S(S({}, l), Tt(u));
|
|
955
981
|
}, {}));
|
|
956
982
|
continue;
|
|
957
983
|
case "engineering":
|
|
958
|
-
t =
|
|
959
|
-
return
|
|
984
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
985
|
+
return S(S({}, l), Tt(u));
|
|
960
986
|
}, {}));
|
|
961
987
|
continue;
|
|
962
988
|
case "notation-simple":
|
|
@@ -1001,11 +1027,11 @@ function $n(e) {
|
|
|
1001
1027
|
case "integer-width":
|
|
1002
1028
|
if (i.options.length > 1)
|
|
1003
1029
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1004
|
-
i.options[0].replace(
|
|
1030
|
+
i.options[0].replace(Bn, function(l, u, h, m, c, b) {
|
|
1005
1031
|
if (u)
|
|
1006
1032
|
t.minimumIntegerDigits = h.length;
|
|
1007
1033
|
else {
|
|
1008
|
-
if (
|
|
1034
|
+
if (m && c)
|
|
1009
1035
|
throw new Error("We currently do not support maximum integer digits");
|
|
1010
1036
|
if (b)
|
|
1011
1037
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1014,28 +1040,28 @@ function $n(e) {
|
|
|
1014
1040
|
});
|
|
1015
1041
|
continue;
|
|
1016
1042
|
}
|
|
1017
|
-
if (
|
|
1043
|
+
if (lr.test(i.stem)) {
|
|
1018
1044
|
t.minimumIntegerDigits = i.stem.length;
|
|
1019
1045
|
continue;
|
|
1020
1046
|
}
|
|
1021
|
-
if (
|
|
1047
|
+
if (Et.test(i.stem)) {
|
|
1022
1048
|
if (i.options.length > 1)
|
|
1023
1049
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1024
|
-
i.stem.replace(
|
|
1025
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1050
|
+
i.stem.replace(Et, function(l, u, h, m, c, b) {
|
|
1051
|
+
return h === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1026
1052
|
});
|
|
1027
1053
|
var o = i.options[0];
|
|
1028
|
-
o === "w" ? t =
|
|
1054
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), St(o)));
|
|
1029
1055
|
continue;
|
|
1030
1056
|
}
|
|
1031
|
-
if (
|
|
1032
|
-
t =
|
|
1057
|
+
if (ur.test(i.stem)) {
|
|
1058
|
+
t = S(S({}, t), St(i.stem));
|
|
1033
1059
|
continue;
|
|
1034
1060
|
}
|
|
1035
|
-
var s =
|
|
1036
|
-
s && (t =
|
|
1037
|
-
var a =
|
|
1038
|
-
a && (t =
|
|
1061
|
+
var s = hr(i.stem);
|
|
1062
|
+
s && (t = S(S({}, t), s));
|
|
1063
|
+
var a = Mn(i.stem);
|
|
1064
|
+
a && (t = S(S({}, t), a));
|
|
1039
1065
|
}
|
|
1040
1066
|
return t;
|
|
1041
1067
|
}
|
|
@@ -2454,13 +2480,13 @@ var Pe = {
|
|
|
2454
2480
|
"h"
|
|
2455
2481
|
]
|
|
2456
2482
|
};
|
|
2457
|
-
function
|
|
2483
|
+
function Cn(e, t) {
|
|
2458
2484
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2459
2485
|
var i = e.charAt(n);
|
|
2460
2486
|
if (i === "j") {
|
|
2461
2487
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2462
2488
|
o++, n++;
|
|
2463
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2489
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = In(t);
|
|
2464
2490
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2465
2491
|
r += l;
|
|
2466
2492
|
for (; s-- > 0; )
|
|
@@ -2470,7 +2496,7 @@ function Rn(e, t) {
|
|
|
2470
2496
|
}
|
|
2471
2497
|
return r;
|
|
2472
2498
|
}
|
|
2473
|
-
function
|
|
2499
|
+
function In(e) {
|
|
2474
2500
|
var t = e.hourCycle;
|
|
2475
2501
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2476
2502
|
e.hourCycles && // @ts-ignore
|
|
@@ -2492,20 +2518,20 @@ function Dn(e) {
|
|
|
2492
2518
|
var i = Pe[n || ""] || Pe[r || ""] || Pe["".concat(r, "-001")] || Pe["001"];
|
|
2493
2519
|
return i[0];
|
|
2494
2520
|
}
|
|
2495
|
-
var
|
|
2521
|
+
var We, Ln = new RegExp("^".concat(ar.source, "*")), Nn = new RegExp("".concat(ar.source, "*$"));
|
|
2496
2522
|
function _(e, t) {
|
|
2497
2523
|
return { start: e, end: t };
|
|
2498
2524
|
}
|
|
2499
|
-
var
|
|
2525
|
+
var $n = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, Dn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, Fn = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, kn = jn ? Number.isSafeInteger : function(e) {
|
|
2500
2526
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2501
|
-
},
|
|
2527
|
+
}, rt = !0;
|
|
2502
2528
|
try {
|
|
2503
|
-
var
|
|
2504
|
-
|
|
2529
|
+
var Vn = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2530
|
+
rt = ((We = Vn.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
|
|
2505
2531
|
} catch {
|
|
2506
|
-
|
|
2532
|
+
rt = !1;
|
|
2507
2533
|
}
|
|
2508
|
-
var
|
|
2534
|
+
var wt = $n ? (
|
|
2509
2535
|
// Native
|
|
2510
2536
|
function(t, r, n) {
|
|
2511
2537
|
return t.startsWith(r, n);
|
|
@@ -2515,7 +2541,7 @@ var Bt = Fn ? (
|
|
|
2515
2541
|
function(t, r, n) {
|
|
2516
2542
|
return t.slice(n, n + r.length) === r;
|
|
2517
2543
|
}
|
|
2518
|
-
),
|
|
2544
|
+
), nt = Rn ? String.fromCodePoint : (
|
|
2519
2545
|
// IE11
|
|
2520
2546
|
function() {
|
|
2521
2547
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2527,9 +2553,9 @@ var Bt = Fn ? (
|
|
|
2527
2553
|
}
|
|
2528
2554
|
return n;
|
|
2529
2555
|
}
|
|
2530
|
-
),
|
|
2556
|
+
), Ht = (
|
|
2531
2557
|
// native
|
|
2532
|
-
|
|
2558
|
+
Dn ? Object.fromEntries : (
|
|
2533
2559
|
// Ponyfill
|
|
2534
2560
|
function(t) {
|
|
2535
2561
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2539,7 +2565,7 @@ var Bt = Fn ? (
|
|
|
2539
2565
|
return r;
|
|
2540
2566
|
}
|
|
2541
2567
|
)
|
|
2542
|
-
),
|
|
2568
|
+
), cr = Un ? (
|
|
2543
2569
|
// Native
|
|
2544
2570
|
function(t, r) {
|
|
2545
2571
|
return t.codePointAt(r);
|
|
@@ -2553,7 +2579,7 @@ var Bt = Fn ? (
|
|
|
2553
2579
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2554
2580
|
}
|
|
2555
2581
|
}
|
|
2556
|
-
),
|
|
2582
|
+
), Xn = Gn ? (
|
|
2557
2583
|
// Native
|
|
2558
2584
|
function(t) {
|
|
2559
2585
|
return t.trimStart();
|
|
@@ -2561,9 +2587,9 @@ var Bt = Fn ? (
|
|
|
2561
2587
|
) : (
|
|
2562
2588
|
// Ponyfill
|
|
2563
2589
|
function(t) {
|
|
2564
|
-
return t.replace(
|
|
2590
|
+
return t.replace(Ln, "");
|
|
2565
2591
|
}
|
|
2566
|
-
),
|
|
2592
|
+
), Wn = Fn ? (
|
|
2567
2593
|
// Native
|
|
2568
2594
|
function(t) {
|
|
2569
2595
|
return t.trimEnd();
|
|
@@ -2571,32 +2597,32 @@ var Bt = Fn ? (
|
|
|
2571
2597
|
) : (
|
|
2572
2598
|
// Ponyfill
|
|
2573
2599
|
function(t) {
|
|
2574
|
-
return t.replace(
|
|
2600
|
+
return t.replace(Nn, "");
|
|
2575
2601
|
}
|
|
2576
2602
|
);
|
|
2577
|
-
function
|
|
2603
|
+
function fr(e, t) {
|
|
2578
2604
|
return new RegExp(e, t);
|
|
2579
2605
|
}
|
|
2580
|
-
var
|
|
2581
|
-
if (
|
|
2582
|
-
var
|
|
2583
|
-
|
|
2606
|
+
var it;
|
|
2607
|
+
if (rt) {
|
|
2608
|
+
var Pt = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2609
|
+
it = function(t, r) {
|
|
2584
2610
|
var n;
|
|
2585
|
-
|
|
2586
|
-
var i =
|
|
2611
|
+
Pt.lastIndex = r;
|
|
2612
|
+
var i = Pt.exec(t);
|
|
2587
2613
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2588
2614
|
};
|
|
2589
2615
|
} else
|
|
2590
|
-
|
|
2616
|
+
it = function(t, r) {
|
|
2591
2617
|
for (var n = []; ; ) {
|
|
2592
|
-
var i =
|
|
2593
|
-
if (i === void 0 ||
|
|
2618
|
+
var i = cr(t, r);
|
|
2619
|
+
if (i === void 0 || mr(i) || Yn(i))
|
|
2594
2620
|
break;
|
|
2595
2621
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2596
2622
|
}
|
|
2597
|
-
return
|
|
2623
|
+
return nt.apply(void 0, n);
|
|
2598
2624
|
};
|
|
2599
|
-
var
|
|
2625
|
+
var zn = (
|
|
2600
2626
|
/** @class */
|
|
2601
2627
|
function() {
|
|
2602
2628
|
function e(t, r) {
|
|
@@ -2620,14 +2646,14 @@ var qn = (
|
|
|
2620
2646
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2621
2647
|
var a = this.clonePosition();
|
|
2622
2648
|
this.bump(), i.push({
|
|
2623
|
-
type:
|
|
2649
|
+
type: H.pound,
|
|
2624
2650
|
location: _(a, this.clonePosition())
|
|
2625
2651
|
});
|
|
2626
2652
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2627
2653
|
if (n)
|
|
2628
2654
|
break;
|
|
2629
2655
|
return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2630
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2656
|
+
} else if (o === 60 && !this.ignoreTag && ot(this.peek() || 0)) {
|
|
2631
2657
|
var s = this.parseTag(t, r);
|
|
2632
2658
|
if (s.err)
|
|
2633
2659
|
return s;
|
|
@@ -2648,7 +2674,7 @@ var qn = (
|
|
|
2648
2674
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2649
2675
|
return {
|
|
2650
2676
|
val: {
|
|
2651
|
-
type:
|
|
2677
|
+
type: H.literal,
|
|
2652
2678
|
value: "<".concat(i, "/>"),
|
|
2653
2679
|
location: _(n, this.clonePosition())
|
|
2654
2680
|
},
|
|
@@ -2660,12 +2686,12 @@ var qn = (
|
|
|
2660
2686
|
return o;
|
|
2661
2687
|
var s = o.val, a = this.clonePosition();
|
|
2662
2688
|
if (this.bumpIf("</")) {
|
|
2663
|
-
if (this.isEOF() || !
|
|
2689
|
+
if (this.isEOF() || !ot(this.char()))
|
|
2664
2690
|
return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
|
|
2665
2691
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2666
2692
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2667
2693
|
val: {
|
|
2668
|
-
type:
|
|
2694
|
+
type: H.tag,
|
|
2669
2695
|
value: i,
|
|
2670
2696
|
children: s,
|
|
2671
2697
|
location: _(n, this.clonePosition())
|
|
@@ -2678,7 +2704,7 @@ var qn = (
|
|
|
2678
2704
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
2679
2705
|
}, e.prototype.parseTagName = function() {
|
|
2680
2706
|
var t = this.offset();
|
|
2681
|
-
for (this.bump(); !this.isEOF() &&
|
|
2707
|
+
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
2682
2708
|
this.bump();
|
|
2683
2709
|
return this.message.slice(t, this.offset());
|
|
2684
2710
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2702,12 +2728,12 @@ var qn = (
|
|
|
2702
2728
|
}
|
|
2703
2729
|
var l = _(n, this.clonePosition());
|
|
2704
2730
|
return {
|
|
2705
|
-
val: { type:
|
|
2731
|
+
val: { type: H.literal, value: i, location: l },
|
|
2706
2732
|
err: null
|
|
2707
2733
|
};
|
|
2708
2734
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2709
2735
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2710
|
-
!
|
|
2736
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2711
2737
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2712
2738
|
if (this.isEOF() || this.char() !== 39)
|
|
2713
2739
|
return null;
|
|
@@ -2741,12 +2767,12 @@ var qn = (
|
|
|
2741
2767
|
r.push(n);
|
|
2742
2768
|
this.bump();
|
|
2743
2769
|
}
|
|
2744
|
-
return
|
|
2770
|
+
return nt.apply(void 0, r);
|
|
2745
2771
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2746
2772
|
if (this.isEOF())
|
|
2747
2773
|
return null;
|
|
2748
2774
|
var n = this.char();
|
|
2749
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2775
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), nt(n));
|
|
2750
2776
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2751
2777
|
var n = this.clonePosition();
|
|
2752
2778
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2762,7 +2788,7 @@ var qn = (
|
|
|
2762
2788
|
case 125:
|
|
2763
2789
|
return this.bump(), {
|
|
2764
2790
|
val: {
|
|
2765
|
-
type:
|
|
2791
|
+
type: H.argument,
|
|
2766
2792
|
// value does not include the opening and closing braces.
|
|
2767
2793
|
value: i,
|
|
2768
2794
|
location: _(n, this.clonePosition())
|
|
@@ -2775,7 +2801,7 @@ var qn = (
|
|
|
2775
2801
|
return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2776
2802
|
}
|
|
2777
2803
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2778
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2804
|
+
var t = this.clonePosition(), r = this.offset(), n = it(this.message, r), i = r + n.length;
|
|
2779
2805
|
this.bumpTo(i);
|
|
2780
2806
|
var o = this.clonePosition(), s = _(t, o);
|
|
2781
2807
|
return { value: n, location: s };
|
|
@@ -2791,10 +2817,10 @@ var qn = (
|
|
|
2791
2817
|
var u = null;
|
|
2792
2818
|
if (this.bumpIf(",")) {
|
|
2793
2819
|
this.bumpSpace();
|
|
2794
|
-
var h = this.clonePosition(),
|
|
2795
|
-
if (
|
|
2796
|
-
return
|
|
2797
|
-
var c =
|
|
2820
|
+
var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2821
|
+
if (m.err)
|
|
2822
|
+
return m;
|
|
2823
|
+
var c = Wn(m.val);
|
|
2798
2824
|
if (c.length === 0)
|
|
2799
2825
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2800
2826
|
var b = _(h, this.clonePosition());
|
|
@@ -2804,34 +2830,34 @@ var qn = (
|
|
|
2804
2830
|
if (y.err)
|
|
2805
2831
|
return y;
|
|
2806
2832
|
var g = _(i, this.clonePosition());
|
|
2807
|
-
if (u &&
|
|
2808
|
-
var
|
|
2833
|
+
if (u && wt(u?.style, "::", 0)) {
|
|
2834
|
+
var x = Xn(u.style.slice(2));
|
|
2809
2835
|
if (a === "number") {
|
|
2810
|
-
var
|
|
2811
|
-
return
|
|
2812
|
-
val: { type:
|
|
2836
|
+
var m = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2837
|
+
return m.err ? m : {
|
|
2838
|
+
val: { type: H.number, value: n, location: g, style: m.val },
|
|
2813
2839
|
err: null
|
|
2814
2840
|
};
|
|
2815
2841
|
} else {
|
|
2816
|
-
if (
|
|
2842
|
+
if (x.length === 0)
|
|
2817
2843
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
|
|
2818
|
-
var A =
|
|
2819
|
-
this.locale && (A =
|
|
2844
|
+
var A = x;
|
|
2845
|
+
this.locale && (A = Cn(x, this.locale));
|
|
2820
2846
|
var c = {
|
|
2821
|
-
type:
|
|
2847
|
+
type: oe.dateTime,
|
|
2822
2848
|
pattern: A,
|
|
2823
2849
|
location: u.styleLocation,
|
|
2824
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2825
|
-
},
|
|
2850
|
+
parsedOptions: this.shouldParseSkeletons ? wn(A) : {}
|
|
2851
|
+
}, E = a === "date" ? H.date : H.time;
|
|
2826
2852
|
return {
|
|
2827
|
-
val: { type:
|
|
2853
|
+
val: { type: E, value: n, location: g, style: c },
|
|
2828
2854
|
err: null
|
|
2829
2855
|
};
|
|
2830
2856
|
}
|
|
2831
2857
|
}
|
|
2832
2858
|
return {
|
|
2833
2859
|
val: {
|
|
2834
|
-
type: a === "number" ?
|
|
2860
|
+
type: a === "number" ? H.number : a === "date" ? H.date : H.time,
|
|
2835
2861
|
value: n,
|
|
2836
2862
|
location: g,
|
|
2837
2863
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2844,38 +2870,38 @@ var qn = (
|
|
|
2844
2870
|
case "select": {
|
|
2845
2871
|
var f = this.clonePosition();
|
|
2846
2872
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2847
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f,
|
|
2873
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f, S({}, f)));
|
|
2848
2874
|
this.bumpSpace();
|
|
2849
|
-
var
|
|
2850
|
-
if (a !== "select" &&
|
|
2875
|
+
var w = this.parseIdentifierIfPossible(), d = 0;
|
|
2876
|
+
if (a !== "select" && w.value === "offset") {
|
|
2851
2877
|
if (!this.bumpIf(":"))
|
|
2852
2878
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2853
2879
|
this.bumpSpace();
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2856
|
-
return
|
|
2857
|
-
this.bumpSpace(),
|
|
2880
|
+
var m = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2881
|
+
if (m.err)
|
|
2882
|
+
return m;
|
|
2883
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), d = m.val;
|
|
2858
2884
|
}
|
|
2859
|
-
var
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2885
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
2886
|
+
if (M.err)
|
|
2887
|
+
return M;
|
|
2862
2888
|
var y = this.tryParseArgumentClose(i);
|
|
2863
2889
|
if (y.err)
|
|
2864
2890
|
return y;
|
|
2865
2891
|
var U = _(i, this.clonePosition());
|
|
2866
2892
|
return a === "select" ? {
|
|
2867
2893
|
val: {
|
|
2868
|
-
type:
|
|
2894
|
+
type: H.select,
|
|
2869
2895
|
value: n,
|
|
2870
|
-
options:
|
|
2896
|
+
options: Ht(M.val),
|
|
2871
2897
|
location: U
|
|
2872
2898
|
},
|
|
2873
2899
|
err: null
|
|
2874
2900
|
} : {
|
|
2875
2901
|
val: {
|
|
2876
|
-
type:
|
|
2902
|
+
type: H.plural,
|
|
2877
2903
|
value: n,
|
|
2878
|
-
options:
|
|
2904
|
+
options: Ht(M.val),
|
|
2879
2905
|
offset: d,
|
|
2880
2906
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2881
2907
|
location: U
|
|
@@ -2926,28 +2952,28 @@ var qn = (
|
|
|
2926
2952
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2927
2953
|
var n = [];
|
|
2928
2954
|
try {
|
|
2929
|
-
n =
|
|
2955
|
+
n = Pn(t);
|
|
2930
2956
|
} catch {
|
|
2931
2957
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
2932
2958
|
}
|
|
2933
2959
|
return {
|
|
2934
2960
|
val: {
|
|
2935
|
-
type:
|
|
2961
|
+
type: oe.number,
|
|
2936
2962
|
tokens: n,
|
|
2937
2963
|
location: r,
|
|
2938
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2964
|
+
parsedOptions: this.shouldParseSkeletons ? On(n) : {}
|
|
2939
2965
|
},
|
|
2940
2966
|
err: null
|
|
2941
2967
|
};
|
|
2942
2968
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2943
2969
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2944
2970
|
if (u.length === 0) {
|
|
2945
|
-
var
|
|
2971
|
+
var m = this.clonePosition();
|
|
2946
2972
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2947
2973
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2948
2974
|
if (c.err)
|
|
2949
2975
|
return c;
|
|
2950
|
-
h = _(
|
|
2976
|
+
h = _(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
2951
2977
|
} else
|
|
2952
2978
|
break;
|
|
2953
2979
|
}
|
|
@@ -2983,7 +3009,7 @@ var qn = (
|
|
|
2983
3009
|
break;
|
|
2984
3010
|
}
|
|
2985
3011
|
var l = _(i, this.clonePosition());
|
|
2986
|
-
return o ? (s *= n,
|
|
3012
|
+
return o ? (s *= n, kn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2987
3013
|
}, e.prototype.offset = function() {
|
|
2988
3014
|
return this.position.offset;
|
|
2989
3015
|
}, e.prototype.isEOF = function() {
|
|
@@ -2998,7 +3024,7 @@ var qn = (
|
|
|
2998
3024
|
var t = this.position.offset;
|
|
2999
3025
|
if (t >= this.message.length)
|
|
3000
3026
|
throw Error("out of bound");
|
|
3001
|
-
var r =
|
|
3027
|
+
var r = cr(this.message, t);
|
|
3002
3028
|
if (r === void 0)
|
|
3003
3029
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3004
3030
|
return r;
|
|
@@ -3017,7 +3043,7 @@ var qn = (
|
|
|
3017
3043
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3018
3044
|
}
|
|
3019
3045
|
}, e.prototype.bumpIf = function(t) {
|
|
3020
|
-
if (
|
|
3046
|
+
if (wt(this.message, t, this.offset())) {
|
|
3021
3047
|
for (var r = 0; r < t.length; r++)
|
|
3022
3048
|
this.bump();
|
|
3023
3049
|
return !0;
|
|
@@ -3039,7 +3065,7 @@ var qn = (
|
|
|
3039
3065
|
break;
|
|
3040
3066
|
}
|
|
3041
3067
|
}, e.prototype.bumpSpace = function() {
|
|
3042
|
-
for (; !this.isEOF() &&
|
|
3068
|
+
for (; !this.isEOF() && mr(this.char()); )
|
|
3043
3069
|
this.bump();
|
|
3044
3070
|
}, e.prototype.peek = function() {
|
|
3045
3071
|
if (this.isEOF())
|
|
@@ -3049,47 +3075,47 @@ var qn = (
|
|
|
3049
3075
|
}, e;
|
|
3050
3076
|
}()
|
|
3051
3077
|
);
|
|
3052
|
-
function
|
|
3078
|
+
function ot(e) {
|
|
3053
3079
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3054
3080
|
}
|
|
3055
|
-
function
|
|
3056
|
-
return
|
|
3081
|
+
function Zn(e) {
|
|
3082
|
+
return ot(e) || e === 47;
|
|
3057
3083
|
}
|
|
3058
|
-
function
|
|
3084
|
+
function Qn(e) {
|
|
3059
3085
|
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;
|
|
3060
3086
|
}
|
|
3061
|
-
function
|
|
3087
|
+
function mr(e) {
|
|
3062
3088
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3063
3089
|
}
|
|
3064
|
-
function
|
|
3090
|
+
function Yn(e) {
|
|
3065
3091
|
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;
|
|
3066
3092
|
}
|
|
3067
|
-
function
|
|
3093
|
+
function st(e) {
|
|
3068
3094
|
e.forEach(function(t) {
|
|
3069
|
-
if (delete t.location,
|
|
3095
|
+
if (delete t.location, nr(t) || ir(t))
|
|
3070
3096
|
for (var r in t.options)
|
|
3071
|
-
delete t.options[r].location,
|
|
3097
|
+
delete t.options[r].location, st(t.options[r].value);
|
|
3072
3098
|
else
|
|
3073
|
-
|
|
3099
|
+
er(t) && sr(t.style) || (tr(t) || rr(t)) && tt(t.style) ? delete t.style.location : or(t) && st(t.children);
|
|
3074
3100
|
});
|
|
3075
3101
|
}
|
|
3076
|
-
function
|
|
3077
|
-
t === void 0 && (t = {}), t =
|
|
3078
|
-
var r = new
|
|
3102
|
+
function Jn(e, t) {
|
|
3103
|
+
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3104
|
+
var r = new zn(e, t).parse();
|
|
3079
3105
|
if (r.err) {
|
|
3080
3106
|
var n = SyntaxError(v[r.err.kind]);
|
|
3081
3107
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3082
3108
|
}
|
|
3083
|
-
return t?.captureLocation ||
|
|
3109
|
+
return t?.captureLocation || st(r.val), r.val;
|
|
3084
3110
|
}
|
|
3085
|
-
var
|
|
3111
|
+
var se;
|
|
3086
3112
|
(function(e) {
|
|
3087
3113
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3088
|
-
})(
|
|
3089
|
-
var
|
|
3114
|
+
})(se || (se = {}));
|
|
3115
|
+
var Ge = (
|
|
3090
3116
|
/** @class */
|
|
3091
3117
|
function(e) {
|
|
3092
|
-
|
|
3118
|
+
V(t, e);
|
|
3093
3119
|
function t(r, n, i) {
|
|
3094
3120
|
var o = e.call(this, r) || this;
|
|
3095
3121
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3098,48 +3124,48 @@ var je = (
|
|
|
3098
3124
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3099
3125
|
}, t;
|
|
3100
3126
|
}(Error)
|
|
3101
|
-
),
|
|
3127
|
+
), At = (
|
|
3102
3128
|
/** @class */
|
|
3103
3129
|
function(e) {
|
|
3104
|
-
|
|
3130
|
+
V(t, e);
|
|
3105
3131
|
function t(r, n, i, o) {
|
|
3106
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3132
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
|
|
3107
3133
|
}
|
|
3108
3134
|
return t;
|
|
3109
|
-
}(
|
|
3110
|
-
),
|
|
3135
|
+
}(Ge)
|
|
3136
|
+
), qn = (
|
|
3111
3137
|
/** @class */
|
|
3112
3138
|
function(e) {
|
|
3113
|
-
|
|
3139
|
+
V(t, e);
|
|
3114
3140
|
function t(r, n, i) {
|
|
3115
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3141
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
|
3116
3142
|
}
|
|
3117
3143
|
return t;
|
|
3118
|
-
}(
|
|
3119
|
-
),
|
|
3144
|
+
}(Ge)
|
|
3145
|
+
), Kn = (
|
|
3120
3146
|
/** @class */
|
|
3121
3147
|
function(e) {
|
|
3122
|
-
|
|
3148
|
+
V(t, e);
|
|
3123
3149
|
function t(r, n) {
|
|
3124
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3150
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
|
3125
3151
|
}
|
|
3126
3152
|
return t;
|
|
3127
|
-
}(
|
|
3153
|
+
}(Ge)
|
|
3128
3154
|
), C;
|
|
3129
3155
|
(function(e) {
|
|
3130
3156
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3131
3157
|
})(C || (C = {}));
|
|
3132
|
-
function
|
|
3158
|
+
function ei(e) {
|
|
3133
3159
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3134
3160
|
var n = t[t.length - 1];
|
|
3135
3161
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3136
3162
|
}, []);
|
|
3137
3163
|
}
|
|
3138
|
-
function
|
|
3164
|
+
function ti(e) {
|
|
3139
3165
|
return typeof e == "function";
|
|
3140
3166
|
}
|
|
3141
3167
|
function Ce(e, t, r, n, i, o, s) {
|
|
3142
|
-
if (e.length === 1 &&
|
|
3168
|
+
if (e.length === 1 && xt(e[0]))
|
|
3143
3169
|
return [
|
|
3144
3170
|
{
|
|
3145
3171
|
type: C.literal,
|
|
@@ -3148,105 +3174,105 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3148
3174
|
];
|
|
3149
3175
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3150
3176
|
var h = u[l];
|
|
3151
|
-
if (
|
|
3177
|
+
if (xt(h)) {
|
|
3152
3178
|
a.push({
|
|
3153
3179
|
type: C.literal,
|
|
3154
3180
|
value: h.value
|
|
3155
3181
|
});
|
|
3156
3182
|
continue;
|
|
3157
3183
|
}
|
|
3158
|
-
if (
|
|
3184
|
+
if (Sn(h)) {
|
|
3159
3185
|
typeof o == "number" && a.push({
|
|
3160
3186
|
type: C.literal,
|
|
3161
3187
|
value: r.getNumberFormat(t).format(o)
|
|
3162
3188
|
});
|
|
3163
3189
|
continue;
|
|
3164
3190
|
}
|
|
3165
|
-
var
|
|
3166
|
-
if (!(i &&
|
|
3167
|
-
throw new
|
|
3168
|
-
var c = i[
|
|
3169
|
-
if (
|
|
3191
|
+
var m = h.value;
|
|
3192
|
+
if (!(i && m in i))
|
|
3193
|
+
throw new Kn(m, s);
|
|
3194
|
+
var c = i[m];
|
|
3195
|
+
if (En(h)) {
|
|
3170
3196
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3171
3197
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3172
3198
|
value: c
|
|
3173
3199
|
});
|
|
3174
3200
|
continue;
|
|
3175
3201
|
}
|
|
3176
|
-
if (
|
|
3177
|
-
var b = typeof h.style == "string" ? n.date[h.style] :
|
|
3202
|
+
if (tr(h)) {
|
|
3203
|
+
var b = typeof h.style == "string" ? n.date[h.style] : tt(h.style) ? h.style.parsedOptions : void 0;
|
|
3178
3204
|
a.push({
|
|
3179
3205
|
type: C.literal,
|
|
3180
3206
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3181
3207
|
});
|
|
3182
3208
|
continue;
|
|
3183
3209
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
var b = typeof h.style == "string" ? n.time[h.style] :
|
|
3210
|
+
if (rr(h)) {
|
|
3211
|
+
var b = typeof h.style == "string" ? n.time[h.style] : tt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3186
3212
|
a.push({
|
|
3187
3213
|
type: C.literal,
|
|
3188
3214
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3189
3215
|
});
|
|
3190
3216
|
continue;
|
|
3191
3217
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
|
3218
|
+
if (er(h)) {
|
|
3219
|
+
var b = typeof h.style == "string" ? n.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
|
|
3194
3220
|
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3195
3221
|
type: C.literal,
|
|
3196
3222
|
value: r.getNumberFormat(t, b).format(c)
|
|
3197
3223
|
});
|
|
3198
3224
|
continue;
|
|
3199
3225
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var y = h.children, g = h.value,
|
|
3202
|
-
if (!
|
|
3203
|
-
throw new
|
|
3204
|
-
var A = Ce(y, t, r, n, i, o),
|
|
3226
|
+
if (or(h)) {
|
|
3227
|
+
var y = h.children, g = h.value, x = i[g];
|
|
3228
|
+
if (!ti(x))
|
|
3229
|
+
throw new qn(g, "function", s);
|
|
3230
|
+
var A = Ce(y, t, r, n, i, o), E = x(A.map(function(d) {
|
|
3205
3231
|
return d.value;
|
|
3206
3232
|
}));
|
|
3207
|
-
Array.isArray(
|
|
3233
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(d) {
|
|
3208
3234
|
return {
|
|
3209
3235
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3210
3236
|
value: d
|
|
3211
3237
|
};
|
|
3212
3238
|
}));
|
|
3213
3239
|
}
|
|
3214
|
-
if (
|
|
3240
|
+
if (nr(h)) {
|
|
3215
3241
|
var f = h.options[c] || h.options.other;
|
|
3216
3242
|
if (!f)
|
|
3217
|
-
throw new
|
|
3243
|
+
throw new At(h.value, c, Object.keys(h.options), s);
|
|
3218
3244
|
a.push.apply(a, Ce(f.value, t, r, n, i));
|
|
3219
3245
|
continue;
|
|
3220
3246
|
}
|
|
3221
|
-
if (
|
|
3247
|
+
if (ir(h)) {
|
|
3222
3248
|
var f = h.options["=".concat(c)];
|
|
3223
3249
|
if (!f) {
|
|
3224
3250
|
if (!Intl.PluralRules)
|
|
3225
|
-
throw new
|
|
3251
|
+
throw new Ge(`Intl.PluralRules is not available in this environment.
|
|
3226
3252
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3227
|
-
`,
|
|
3228
|
-
var
|
|
3229
|
-
f = h.options[
|
|
3253
|
+
`, se.MISSING_INTL_API, s);
|
|
3254
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3255
|
+
f = h.options[w] || h.options.other;
|
|
3230
3256
|
}
|
|
3231
3257
|
if (!f)
|
|
3232
|
-
throw new
|
|
3258
|
+
throw new At(h.value, c, Object.keys(h.options), s);
|
|
3233
3259
|
a.push.apply(a, Ce(f.value, t, r, n, i, c - (h.offset || 0)));
|
|
3234
3260
|
continue;
|
|
3235
3261
|
}
|
|
3236
3262
|
}
|
|
3237
|
-
return
|
|
3263
|
+
return ei(a);
|
|
3238
3264
|
}
|
|
3239
|
-
function
|
|
3240
|
-
return t ?
|
|
3241
|
-
return r[n] =
|
|
3265
|
+
function ri(e, t) {
|
|
3266
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3267
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3242
3268
|
}, {})) : e;
|
|
3243
3269
|
}
|
|
3244
|
-
function
|
|
3270
|
+
function ni(e, t) {
|
|
3245
3271
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3246
|
-
return r[n] =
|
|
3247
|
-
},
|
|
3272
|
+
return r[n] = ri(e[n], t[n]), r;
|
|
3273
|
+
}, S({}, e)) : e;
|
|
3248
3274
|
}
|
|
3249
|
-
function
|
|
3275
|
+
function ze(e) {
|
|
3250
3276
|
return {
|
|
3251
3277
|
create: function() {
|
|
3252
3278
|
return {
|
|
@@ -3260,39 +3286,39 @@ function Ye(e) {
|
|
|
3260
3286
|
}
|
|
3261
3287
|
};
|
|
3262
3288
|
}
|
|
3263
|
-
function
|
|
3289
|
+
function ii(e) {
|
|
3264
3290
|
return e === void 0 && (e = {
|
|
3265
3291
|
number: {},
|
|
3266
3292
|
dateTime: {},
|
|
3267
3293
|
pluralRules: {}
|
|
3268
3294
|
}), {
|
|
3269
|
-
getNumberFormat:
|
|
3295
|
+
getNumberFormat: Ve(function() {
|
|
3270
3296
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3271
3297
|
r[n] = arguments[n];
|
|
3272
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ne([void 0], r, !1)))();
|
|
3273
3299
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3300
|
+
cache: ze(e.number),
|
|
3301
|
+
strategy: Xe.variadic
|
|
3276
3302
|
}),
|
|
3277
|
-
getDateTimeFormat:
|
|
3303
|
+
getDateTimeFormat: Ve(function() {
|
|
3278
3304
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3305
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ne([void 0], r, !1)))();
|
|
3281
3307
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3308
|
+
cache: ze(e.dateTime),
|
|
3309
|
+
strategy: Xe.variadic
|
|
3284
3310
|
}),
|
|
3285
|
-
getPluralRules:
|
|
3311
|
+
getPluralRules: Ve(function() {
|
|
3286
3312
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3313
|
r[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ne([void 0], r, !1)))();
|
|
3289
3315
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3316
|
+
cache: ze(e.pluralRules),
|
|
3317
|
+
strategy: Xe.variadic
|
|
3292
3318
|
})
|
|
3293
3319
|
};
|
|
3294
3320
|
}
|
|
3295
|
-
var
|
|
3321
|
+
var pr = (
|
|
3296
3322
|
/** @class */
|
|
3297
3323
|
function() {
|
|
3298
3324
|
function e(t, r, n, i) {
|
|
@@ -3306,8 +3332,8 @@ var vr = (
|
|
|
3306
3332
|
var u = o.formatToParts(l);
|
|
3307
3333
|
if (u.length === 1)
|
|
3308
3334
|
return u[0].value;
|
|
3309
|
-
var h = u.reduce(function(
|
|
3310
|
-
return !
|
|
3335
|
+
var h = u.reduce(function(m, c) {
|
|
3336
|
+
return !m.length || c.type !== C.literal || typeof m[m.length - 1] != "string" ? m.push(c.value) : m[m.length - 1] += c.value, m;
|
|
3311
3337
|
}, []);
|
|
3312
3338
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3313
3339
|
}, this.formatToParts = function(l) {
|
|
@@ -3324,13 +3350,13 @@ var vr = (
|
|
|
3324
3350
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3325
3351
|
var s = i || {};
|
|
3326
3352
|
s.formatters;
|
|
3327
|
-
var a =
|
|
3328
|
-
this.ast = e.__parse(t,
|
|
3353
|
+
var a = pn(s, ["formatters"]);
|
|
3354
|
+
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
|
3329
3355
|
} else
|
|
3330
3356
|
this.ast = t;
|
|
3331
3357
|
if (!Array.isArray(this.ast))
|
|
3332
3358
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3333
|
-
this.formats =
|
|
3359
|
+
this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
|
|
3334
3360
|
}
|
|
3335
3361
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3336
3362
|
get: function() {
|
|
@@ -3343,7 +3369,7 @@ var vr = (
|
|
|
3343
3369
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3344
3370
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3345
3371
|
}
|
|
3346
|
-
}, e.__parse =
|
|
3372
|
+
}, e.__parse = Jn, e.formats = {
|
|
3347
3373
|
number: {
|
|
3348
3374
|
integer: {
|
|
3349
3375
|
maximumFractionDigits: 0
|
|
@@ -3404,7 +3430,7 @@ var vr = (
|
|
|
3404
3430
|
}, e;
|
|
3405
3431
|
}()
|
|
3406
3432
|
);
|
|
3407
|
-
function
|
|
3433
|
+
function oi(e, t) {
|
|
3408
3434
|
if (t == null)
|
|
3409
3435
|
return;
|
|
3410
3436
|
if (t in e)
|
|
@@ -3425,101 +3451,101 @@ function hi(e, t) {
|
|
|
3425
3451
|
n = void 0;
|
|
3426
3452
|
return n;
|
|
3427
3453
|
}
|
|
3428
|
-
const X = {},
|
|
3454
|
+
const X = {}, si = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), dr = (e, t) => {
|
|
3429
3455
|
if (t == null)
|
|
3430
3456
|
return;
|
|
3431
3457
|
if (t in X && e in X[t])
|
|
3432
3458
|
return X[t][e];
|
|
3433
|
-
const r =
|
|
3459
|
+
const r = xe(t);
|
|
3434
3460
|
for (let n = 0; n < r.length; n++) {
|
|
3435
|
-
const i = r[n], o =
|
|
3461
|
+
const i = r[n], o = ui(i, e);
|
|
3436
3462
|
if (o)
|
|
3437
|
-
return
|
|
3463
|
+
return si(e, t, o);
|
|
3438
3464
|
}
|
|
3439
3465
|
};
|
|
3440
|
-
let
|
|
3441
|
-
const
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3466
|
+
let pt;
|
|
3467
|
+
const _e = Ue({});
|
|
3468
|
+
function ai(e) {
|
|
3469
|
+
return pt[e] || null;
|
|
3444
3470
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e in
|
|
3471
|
+
function br(e) {
|
|
3472
|
+
return e in pt;
|
|
3447
3473
|
}
|
|
3448
|
-
function
|
|
3449
|
-
if (!
|
|
3474
|
+
function ui(e, t) {
|
|
3475
|
+
if (!br(e))
|
|
3450
3476
|
return null;
|
|
3451
|
-
const r =
|
|
3452
|
-
return
|
|
3477
|
+
const r = ai(e);
|
|
3478
|
+
return oi(r, t);
|
|
3453
3479
|
}
|
|
3454
|
-
function
|
|
3480
|
+
function li(e) {
|
|
3455
3481
|
if (e == null)
|
|
3456
3482
|
return;
|
|
3457
|
-
const t =
|
|
3483
|
+
const t = xe(e);
|
|
3458
3484
|
for (let r = 0; r < t.length; r++) {
|
|
3459
3485
|
const n = t[r];
|
|
3460
|
-
if (
|
|
3486
|
+
if (br(n))
|
|
3461
3487
|
return n;
|
|
3462
3488
|
}
|
|
3463
3489
|
}
|
|
3464
|
-
function
|
|
3465
|
-
delete X[e],
|
|
3490
|
+
function gr(e, ...t) {
|
|
3491
|
+
delete X[e], _e.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
|
3466
3492
|
}
|
|
3467
|
-
|
|
3468
|
-
[
|
|
3493
|
+
le(
|
|
3494
|
+
[_e],
|
|
3469
3495
|
([e]) => Object.keys(e)
|
|
3470
3496
|
);
|
|
3471
|
-
|
|
3497
|
+
_e.subscribe((e) => pt = e);
|
|
3472
3498
|
const Ie = {};
|
|
3473
|
-
function
|
|
3499
|
+
function hi(e, t) {
|
|
3474
3500
|
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
3475
3501
|
}
|
|
3476
|
-
function
|
|
3502
|
+
function yr(e) {
|
|
3477
3503
|
return Ie[e];
|
|
3478
3504
|
}
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3481
|
-
const r =
|
|
3505
|
+
function ci(e) {
|
|
3506
|
+
return xe(e).map((t) => {
|
|
3507
|
+
const r = yr(t);
|
|
3482
3508
|
return [t, r ? [...r] : []];
|
|
3483
3509
|
}).filter(([, t]) => t.length > 0);
|
|
3484
3510
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e == null ? !1 :
|
|
3511
|
+
function $e(e) {
|
|
3512
|
+
return e == null ? !1 : xe(e).some(
|
|
3487
3513
|
(t) => {
|
|
3488
3514
|
var r;
|
|
3489
|
-
return (r =
|
|
3515
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
3490
3516
|
}
|
|
3491
3517
|
);
|
|
3492
3518
|
}
|
|
3493
|
-
function
|
|
3519
|
+
function fi(e, t) {
|
|
3494
3520
|
return Promise.all(
|
|
3495
|
-
t.map((n) => (
|
|
3496
|
-
).then((n) =>
|
|
3497
|
-
}
|
|
3498
|
-
const
|
|
3499
|
-
function
|
|
3500
|
-
if (
|
|
3501
|
-
return e in
|
|
3502
|
-
const t =
|
|
3503
|
-
return
|
|
3521
|
+
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
3522
|
+
).then((n) => gr(e, ...n));
|
|
3523
|
+
}
|
|
3524
|
+
const me = {};
|
|
3525
|
+
function vr(e) {
|
|
3526
|
+
if (!$e(e))
|
|
3527
|
+
return e in me ? me[e] : Promise.resolve();
|
|
3528
|
+
const t = ci(e);
|
|
3529
|
+
return me[e] = Promise.all(
|
|
3504
3530
|
t.map(
|
|
3505
|
-
([r, n]) =>
|
|
3531
|
+
([r, n]) => fi(r, n)
|
|
3506
3532
|
)
|
|
3507
3533
|
).then(() => {
|
|
3508
|
-
if (
|
|
3509
|
-
return
|
|
3510
|
-
delete
|
|
3511
|
-
}),
|
|
3534
|
+
if ($e(e))
|
|
3535
|
+
return vr(e);
|
|
3536
|
+
delete me[e];
|
|
3537
|
+
}), me[e];
|
|
3512
3538
|
}
|
|
3513
|
-
var
|
|
3539
|
+
var Bt = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, di = (e, t) => {
|
|
3514
3540
|
var r = {};
|
|
3515
3541
|
for (var n in e)
|
|
3516
|
-
|
|
3517
|
-
if (e != null &&
|
|
3518
|
-
for (var n of
|
|
3519
|
-
t.indexOf(n) < 0 &&
|
|
3542
|
+
mi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3543
|
+
if (e != null && Bt)
|
|
3544
|
+
for (var n of Bt(e))
|
|
3545
|
+
t.indexOf(n) < 0 && pi.call(e, n) && (r[n] = e[n]);
|
|
3520
3546
|
return r;
|
|
3521
3547
|
};
|
|
3522
|
-
const
|
|
3548
|
+
const bi = {
|
|
3523
3549
|
number: {
|
|
3524
3550
|
scientific: { notation: "scientific" },
|
|
3525
3551
|
engineering: { notation: "engineering" },
|
|
@@ -3549,159 +3575,159 @@ const Ei = {
|
|
|
3549
3575
|
}
|
|
3550
3576
|
}
|
|
3551
3577
|
};
|
|
3552
|
-
function
|
|
3578
|
+
function gi({ locale: e, id: t }) {
|
|
3553
3579
|
console.warn(
|
|
3554
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3580
|
+
`[svelte-i18n] The message "${t}" was not found in "${xe(
|
|
3555
3581
|
e
|
|
3556
|
-
).join('", "')}".${
|
|
3582
|
+
).join('", "')}".${$e(W()) ? `
|
|
3557
3583
|
|
|
3558
3584
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3559
3585
|
);
|
|
3560
3586
|
}
|
|
3561
|
-
const
|
|
3587
|
+
const yi = {
|
|
3562
3588
|
fallbackLocale: null,
|
|
3563
3589
|
loadingDelay: 200,
|
|
3564
|
-
formats:
|
|
3590
|
+
formats: bi,
|
|
3565
3591
|
warnOnMissingMessages: !0,
|
|
3566
3592
|
handleMissingMessage: void 0,
|
|
3567
3593
|
ignoreTag: !0
|
|
3568
|
-
}, pe =
|
|
3569
|
-
function
|
|
3594
|
+
}, pe = yi;
|
|
3595
|
+
function ae() {
|
|
3570
3596
|
return pe;
|
|
3571
3597
|
}
|
|
3572
|
-
function
|
|
3573
|
-
const t = e, { formats: r } = t, n =
|
|
3598
|
+
function vi(e) {
|
|
3599
|
+
const t = e, { formats: r } = t, n = di(t, ["formats"]);
|
|
3574
3600
|
let i = e.fallbackLocale;
|
|
3575
3601
|
if (e.initialLocale)
|
|
3576
3602
|
try {
|
|
3577
|
-
|
|
3603
|
+
pr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3578
3604
|
} catch {
|
|
3579
3605
|
console.warn(
|
|
3580
3606
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3581
3607
|
);
|
|
3582
3608
|
}
|
|
3583
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3609
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = gi : console.warn(
|
|
3584
3610
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3585
3611
|
)), Object.assign(pe, n, { initialLocale: i }), r && ("number" in r && Object.assign(pe.formats.number, r.number), "date" in r && Object.assign(pe.formats.date, r.date), "time" in r && Object.assign(pe.formats.time, r.time)), Z.set(i);
|
|
3586
3612
|
}
|
|
3587
|
-
const
|
|
3588
|
-
var
|
|
3613
|
+
const Ze = Ue(!1);
|
|
3614
|
+
var _i = Object.defineProperty, xi = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
|
3589
3615
|
for (var r in t || (t = {}))
|
|
3590
|
-
|
|
3591
|
-
if (
|
|
3592
|
-
for (var r of
|
|
3593
|
-
|
|
3616
|
+
Si.call(t, r) && Ot(e, r, t[r]);
|
|
3617
|
+
if (Mt)
|
|
3618
|
+
for (var r of Mt(t))
|
|
3619
|
+
Ti.call(t, r) && Ot(e, r, t[r]);
|
|
3594
3620
|
return e;
|
|
3595
|
-
},
|
|
3596
|
-
let
|
|
3597
|
-
const
|
|
3598
|
-
function
|
|
3621
|
+
}, Hi = (e, t) => xi(e, Ei(t));
|
|
3622
|
+
let at;
|
|
3623
|
+
const Re = Ue(null);
|
|
3624
|
+
function Ct(e) {
|
|
3599
3625
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3600
3626
|
}
|
|
3601
|
-
function
|
|
3602
|
-
const r =
|
|
3603
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3627
|
+
function xe(e, t = ae().fallbackLocale) {
|
|
3628
|
+
const r = Ct(e);
|
|
3629
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
3604
3630
|
}
|
|
3605
3631
|
function W() {
|
|
3606
|
-
return
|
|
3632
|
+
return at ?? void 0;
|
|
3607
3633
|
}
|
|
3608
|
-
|
|
3609
|
-
|
|
3634
|
+
Re.subscribe((e) => {
|
|
3635
|
+
at = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3610
3636
|
});
|
|
3611
|
-
const
|
|
3612
|
-
if (e &&
|
|
3613
|
-
const { loadingDelay: t } =
|
|
3637
|
+
const Pi = (e) => {
|
|
3638
|
+
if (e && li(e) && $e(e)) {
|
|
3639
|
+
const { loadingDelay: t } = ae();
|
|
3614
3640
|
let r;
|
|
3615
3641
|
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
3616
|
-
() =>
|
|
3642
|
+
() => Ze.set(!0),
|
|
3617
3643
|
t
|
|
3618
|
-
) :
|
|
3619
|
-
|
|
3644
|
+
) : Ze.set(!0), vr(e).then(() => {
|
|
3645
|
+
Re.set(e);
|
|
3620
3646
|
}).finally(() => {
|
|
3621
|
-
clearTimeout(r),
|
|
3647
|
+
clearTimeout(r), Ze.set(!1);
|
|
3622
3648
|
});
|
|
3623
3649
|
}
|
|
3624
|
-
return
|
|
3625
|
-
}, Z =
|
|
3626
|
-
set:
|
|
3627
|
-
}),
|
|
3650
|
+
return Re.set(e);
|
|
3651
|
+
}, Z = Hi(wi({}, Re), {
|
|
3652
|
+
set: Pi
|
|
3653
|
+
}), Fe = (e) => {
|
|
3628
3654
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3629
3655
|
return (n) => {
|
|
3630
3656
|
const i = JSON.stringify(n);
|
|
3631
3657
|
return i in t ? t[i] : t[i] = e(n);
|
|
3632
3658
|
};
|
|
3633
3659
|
};
|
|
3634
|
-
var
|
|
3660
|
+
var Ai = Object.defineProperty, De = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
|
|
3635
3661
|
for (var r in t || (t = {}))
|
|
3636
|
-
|
|
3637
|
-
if (
|
|
3638
|
-
for (var r of
|
|
3639
|
-
|
|
3662
|
+
_r.call(t, r) && It(e, r, t[r]);
|
|
3663
|
+
if (De)
|
|
3664
|
+
for (var r of De(t))
|
|
3665
|
+
xr.call(t, r) && It(e, r, t[r]);
|
|
3640
3666
|
return e;
|
|
3641
|
-
},
|
|
3667
|
+
}, he = (e, t) => {
|
|
3642
3668
|
var r = {};
|
|
3643
3669
|
for (var n in e)
|
|
3644
|
-
|
|
3645
|
-
if (e != null &&
|
|
3646
|
-
for (var n of
|
|
3647
|
-
t.indexOf(n) < 0 &&
|
|
3670
|
+
_r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3671
|
+
if (e != null && De)
|
|
3672
|
+
for (var n of De(e))
|
|
3673
|
+
t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
|
|
3648
3674
|
return r;
|
|
3649
3675
|
};
|
|
3650
|
-
const
|
|
3651
|
-
const { formats: r } =
|
|
3676
|
+
const ve = (e, t) => {
|
|
3677
|
+
const { formats: r } = ae();
|
|
3652
3678
|
if (e in r && t in r[e])
|
|
3653
3679
|
return r[e][t];
|
|
3654
3680
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3655
|
-
},
|
|
3681
|
+
}, Bi = Fe(
|
|
3656
3682
|
(e) => {
|
|
3657
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3683
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3658
3684
|
if (r == null)
|
|
3659
3685
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3660
|
-
return n && (i =
|
|
3686
|
+
return n && (i = ve("number", n)), new Intl.NumberFormat(r, i);
|
|
3661
3687
|
}
|
|
3662
|
-
),
|
|
3688
|
+
), Mi = Fe(
|
|
3663
3689
|
(e) => {
|
|
3664
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3690
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3665
3691
|
if (r == null)
|
|
3666
3692
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3667
|
-
return n ? i =
|
|
3693
|
+
return n ? i = ve("date", n) : Object.keys(i).length === 0 && (i = ve("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3668
3694
|
}
|
|
3669
|
-
),
|
|
3695
|
+
), Oi = Fe(
|
|
3670
3696
|
(e) => {
|
|
3671
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3697
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3672
3698
|
if (r == null)
|
|
3673
3699
|
throw new Error(
|
|
3674
3700
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3675
3701
|
);
|
|
3676
|
-
return n ? i =
|
|
3702
|
+
return n ? i = ve("time", n) : Object.keys(i).length === 0 && (i = ve("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3677
3703
|
}
|
|
3678
|
-
),
|
|
3704
|
+
), Ci = (e = {}) => {
|
|
3679
3705
|
var t = e, {
|
|
3680
3706
|
locale: r = W()
|
|
3681
|
-
} = t, n =
|
|
3707
|
+
} = t, n = he(t, [
|
|
3682
3708
|
"locale"
|
|
3683
3709
|
]);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3710
|
+
return Bi(dt({ locale: r }, n));
|
|
3711
|
+
}, Ii = (e = {}) => {
|
|
3686
3712
|
var t = e, {
|
|
3687
3713
|
locale: r = W()
|
|
3688
|
-
} = t, n =
|
|
3714
|
+
} = t, n = he(t, [
|
|
3689
3715
|
"locale"
|
|
3690
3716
|
]);
|
|
3691
|
-
return
|
|
3692
|
-
},
|
|
3717
|
+
return Mi(dt({ locale: r }, n));
|
|
3718
|
+
}, Li = (e = {}) => {
|
|
3693
3719
|
var t = e, {
|
|
3694
3720
|
locale: r = W()
|
|
3695
|
-
} = t, n =
|
|
3721
|
+
} = t, n = he(t, [
|
|
3696
3722
|
"locale"
|
|
3697
3723
|
]);
|
|
3698
|
-
return
|
|
3699
|
-
},
|
|
3724
|
+
return Oi(dt({ locale: r }, n));
|
|
3725
|
+
}, Ni = Fe(
|
|
3700
3726
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3701
|
-
(e, t = W()) => new
|
|
3702
|
-
ignoreTag:
|
|
3727
|
+
(e, t = W()) => new pr(e, t, ae().formats, {
|
|
3728
|
+
ignoreTag: ae().ignoreTag
|
|
3703
3729
|
})
|
|
3704
|
-
),
|
|
3730
|
+
), $i = (e, t = {}) => {
|
|
3705
3731
|
var r, n, i, o;
|
|
3706
3732
|
let s = t;
|
|
3707
3733
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3714,45 +3740,45 @@ const ye = (e, t) => {
|
|
|
3714
3740
|
throw new Error(
|
|
3715
3741
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3716
3742
|
);
|
|
3717
|
-
let h =
|
|
3743
|
+
let h = dr(e, l);
|
|
3718
3744
|
if (!h)
|
|
3719
|
-
h = (o = (i = (n = (r =
|
|
3745
|
+
h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3720
3746
|
else if (typeof h != "string")
|
|
3721
3747
|
return console.warn(
|
|
3722
3748
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3723
3749
|
), h;
|
|
3724
3750
|
if (!a)
|
|
3725
3751
|
return h;
|
|
3726
|
-
let
|
|
3752
|
+
let m = h;
|
|
3727
3753
|
try {
|
|
3728
|
-
|
|
3754
|
+
m = Ni(h, l).format(a);
|
|
3729
3755
|
} catch (c) {
|
|
3730
3756
|
c instanceof Error && console.warn(
|
|
3731
3757
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3732
3758
|
c.message
|
|
3733
3759
|
);
|
|
3734
3760
|
}
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
function
|
|
3742
|
-
|
|
3743
|
-
}
|
|
3744
|
-
function
|
|
3745
|
-
|
|
3761
|
+
return m;
|
|
3762
|
+
}, Ri = (e, t) => Li(t).format(e), Di = (e, t) => Ii(t).format(e), Ui = (e, t) => Ci(t).format(e), Gi = (e, t = W()) => dr(e, t), Fi = le([Z, _e], () => $i);
|
|
3763
|
+
le([Z], () => Ri);
|
|
3764
|
+
le([Z], () => Di);
|
|
3765
|
+
le([Z], () => Ui);
|
|
3766
|
+
le([Z, _e], () => Gi);
|
|
3767
|
+
function Lt(e, t) {
|
|
3768
|
+
gr(e, t);
|
|
3769
|
+
}
|
|
3770
|
+
function ji(e) {
|
|
3771
|
+
vi({
|
|
3746
3772
|
fallbackLocale: "en"
|
|
3747
3773
|
}), Z.set(e);
|
|
3748
3774
|
}
|
|
3749
|
-
function
|
|
3775
|
+
function ki(e, t) {
|
|
3750
3776
|
if (e) {
|
|
3751
3777
|
const r = document.createElement("style");
|
|
3752
3778
|
r.innerHTML = t, e.appendChild(r);
|
|
3753
3779
|
}
|
|
3754
3780
|
}
|
|
3755
|
-
function
|
|
3781
|
+
function Vi(e, t) {
|
|
3756
3782
|
const r = new URL(t);
|
|
3757
3783
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3758
3784
|
const i = document.createElement("style");
|
|
@@ -3761,7 +3787,7 @@ function Qi(e, t) {
|
|
|
3761
3787
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3762
3788
|
});
|
|
3763
3789
|
}
|
|
3764
|
-
function
|
|
3790
|
+
function Xi(e, t, r) {
|
|
3765
3791
|
if (window.emMessageBus) {
|
|
3766
3792
|
const n = document.createElement("style");
|
|
3767
3793
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3769,85 +3795,16 @@ function Yi(e, t, r) {
|
|
|
3769
3795
|
});
|
|
3770
3796
|
}
|
|
3771
3797
|
}
|
|
3772
|
-
|
|
3773
|
-
Copyright (c) Microsoft Corporation.
|
|
3774
|
-
|
|
3775
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3776
|
-
purpose with or without fee is hereby granted.
|
|
3777
|
-
|
|
3778
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3779
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3780
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3781
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3782
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3783
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3784
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3785
|
-
***************************************************************************** */
|
|
3786
|
-
var lt = function(e, t) {
|
|
3787
|
-
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3788
|
-
r.__proto__ = n;
|
|
3789
|
-
} || function(r, n) {
|
|
3790
|
-
for (var i in n)
|
|
3791
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3792
|
-
}, lt(e, t);
|
|
3793
|
-
};
|
|
3794
|
-
function Ee(e, t) {
|
|
3795
|
-
if (typeof t != "function" && t !== null)
|
|
3796
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3797
|
-
lt(e, t);
|
|
3798
|
-
function r() {
|
|
3799
|
-
this.constructor = e;
|
|
3800
|
-
}
|
|
3801
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3802
|
-
}
|
|
3803
|
-
function ht(e) {
|
|
3804
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
3805
|
-
if (r)
|
|
3806
|
-
return r.call(e);
|
|
3807
|
-
if (e && typeof e.length == "number")
|
|
3808
|
-
return {
|
|
3809
|
-
next: function() {
|
|
3810
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
3811
|
-
}
|
|
3812
|
-
};
|
|
3813
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3814
|
-
}
|
|
3815
|
-
function ct(e, t) {
|
|
3816
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3817
|
-
if (!r)
|
|
3818
|
-
return e;
|
|
3819
|
-
var n = r.call(e), i, o = [], s;
|
|
3820
|
-
try {
|
|
3821
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
3822
|
-
o.push(i.value);
|
|
3823
|
-
} catch (a) {
|
|
3824
|
-
s = { error: a };
|
|
3825
|
-
} finally {
|
|
3826
|
-
try {
|
|
3827
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
3828
|
-
} finally {
|
|
3829
|
-
if (s)
|
|
3830
|
-
throw s.error;
|
|
3831
|
-
}
|
|
3832
|
-
}
|
|
3833
|
-
return o;
|
|
3834
|
-
}
|
|
3835
|
-
function ft(e, t, r) {
|
|
3836
|
-
if (arguments.length === 2)
|
|
3837
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
3838
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3839
|
-
return e.concat(o || t);
|
|
3840
|
-
}
|
|
3841
|
-
function V(e) {
|
|
3798
|
+
function k(e) {
|
|
3842
3799
|
return typeof e == "function";
|
|
3843
3800
|
}
|
|
3844
|
-
function
|
|
3801
|
+
function Er(e) {
|
|
3845
3802
|
var t = function(n) {
|
|
3846
3803
|
Error.call(n), n.stack = new Error().stack;
|
|
3847
3804
|
}, r = e(t);
|
|
3848
3805
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
3849
3806
|
}
|
|
3850
|
-
var
|
|
3807
|
+
var Qe = Er(function(e) {
|
|
3851
3808
|
return function(r) {
|
|
3852
3809
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
3853
3810
|
` + r.map(function(n, i) {
|
|
@@ -3856,13 +3813,13 @@ var qe = Pr(function(e) {
|
|
|
3856
3813
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
3857
3814
|
};
|
|
3858
3815
|
});
|
|
3859
|
-
function
|
|
3816
|
+
function ut(e, t) {
|
|
3860
3817
|
if (e) {
|
|
3861
3818
|
var r = e.indexOf(t);
|
|
3862
3819
|
0 <= r && e.splice(r, 1);
|
|
3863
3820
|
}
|
|
3864
3821
|
}
|
|
3865
|
-
var
|
|
3822
|
+
var je = function() {
|
|
3866
3823
|
function e(t) {
|
|
3867
3824
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3868
3825
|
}
|
|
@@ -3874,7 +3831,7 @@ var Ve = function() {
|
|
|
3874
3831
|
if (s)
|
|
3875
3832
|
if (this._parentage = null, Array.isArray(s))
|
|
3876
3833
|
try {
|
|
3877
|
-
for (var a =
|
|
3834
|
+
for (var a = Ke(s), l = a.next(); !l.done; l = a.next()) {
|
|
3878
3835
|
var u = l.value;
|
|
3879
3836
|
u.remove(this);
|
|
3880
3837
|
}
|
|
@@ -3891,22 +3848,22 @@ var Ve = function() {
|
|
|
3891
3848
|
else
|
|
3892
3849
|
s.remove(this);
|
|
3893
3850
|
var h = this.initialTeardown;
|
|
3894
|
-
if (
|
|
3851
|
+
if (k(h))
|
|
3895
3852
|
try {
|
|
3896
3853
|
h();
|
|
3897
3854
|
} catch (g) {
|
|
3898
|
-
o = g instanceof
|
|
3855
|
+
o = g instanceof Qe ? g.errors : [g];
|
|
3899
3856
|
}
|
|
3900
|
-
var
|
|
3901
|
-
if (
|
|
3857
|
+
var m = this._finalizers;
|
|
3858
|
+
if (m) {
|
|
3902
3859
|
this._finalizers = null;
|
|
3903
3860
|
try {
|
|
3904
|
-
for (var c =
|
|
3861
|
+
for (var c = Ke(m), b = c.next(); !b.done; b = c.next()) {
|
|
3905
3862
|
var y = b.value;
|
|
3906
3863
|
try {
|
|
3907
|
-
|
|
3864
|
+
Nt(y);
|
|
3908
3865
|
} catch (g) {
|
|
3909
|
-
o = o ?? [], g instanceof
|
|
3866
|
+
o = o ?? [], g instanceof Qe ? o = ne(ne([], et(o)), et(g.errors)) : o.push(g);
|
|
3910
3867
|
}
|
|
3911
3868
|
}
|
|
3912
3869
|
} catch (g) {
|
|
@@ -3921,13 +3878,13 @@ var Ve = function() {
|
|
|
3921
3878
|
}
|
|
3922
3879
|
}
|
|
3923
3880
|
if (o)
|
|
3924
|
-
throw new
|
|
3881
|
+
throw new Qe(o);
|
|
3925
3882
|
}
|
|
3926
3883
|
}, e.prototype.add = function(t) {
|
|
3927
3884
|
var r;
|
|
3928
3885
|
if (t && t !== this)
|
|
3929
3886
|
if (this.closed)
|
|
3930
|
-
|
|
3887
|
+
Nt(t);
|
|
3931
3888
|
else {
|
|
3932
3889
|
if (t instanceof e) {
|
|
3933
3890
|
if (t.closed || t._hasParent(this))
|
|
@@ -3944,52 +3901,52 @@ var Ve = function() {
|
|
|
3944
3901
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
3945
3902
|
}, e.prototype._removeParent = function(t) {
|
|
3946
3903
|
var r = this._parentage;
|
|
3947
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
3904
|
+
r === t ? this._parentage = null : Array.isArray(r) && ut(r, t);
|
|
3948
3905
|
}, e.prototype.remove = function(t) {
|
|
3949
3906
|
var r = this._finalizers;
|
|
3950
|
-
r &&
|
|
3907
|
+
r && ut(r, t), t instanceof e && t._removeParent(this);
|
|
3951
3908
|
}, e.EMPTY = function() {
|
|
3952
3909
|
var t = new e();
|
|
3953
3910
|
return t.closed = !0, t;
|
|
3954
3911
|
}(), e;
|
|
3955
|
-
}(),
|
|
3956
|
-
function
|
|
3957
|
-
return e instanceof
|
|
3912
|
+
}(), Sr = je.EMPTY;
|
|
3913
|
+
function Tr(e) {
|
|
3914
|
+
return e instanceof je || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
3958
3915
|
}
|
|
3959
|
-
function
|
|
3960
|
-
|
|
3916
|
+
function Nt(e) {
|
|
3917
|
+
k(e) ? e() : e.unsubscribe();
|
|
3961
3918
|
}
|
|
3962
|
-
var
|
|
3919
|
+
var Wi = {
|
|
3963
3920
|
Promise: void 0
|
|
3964
|
-
},
|
|
3921
|
+
}, zi = {
|
|
3965
3922
|
setTimeout: function(e, t) {
|
|
3966
3923
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3967
3924
|
r[n - 2] = arguments[n];
|
|
3968
|
-
return setTimeout.apply(void 0,
|
|
3925
|
+
return setTimeout.apply(void 0, ne([e, t], et(r)));
|
|
3969
3926
|
},
|
|
3970
3927
|
clearTimeout: function(e) {
|
|
3971
3928
|
return clearTimeout(e);
|
|
3972
3929
|
},
|
|
3973
3930
|
delegate: void 0
|
|
3974
3931
|
};
|
|
3975
|
-
function
|
|
3976
|
-
|
|
3932
|
+
function Zi(e) {
|
|
3933
|
+
zi.setTimeout(function() {
|
|
3977
3934
|
throw e;
|
|
3978
3935
|
});
|
|
3979
3936
|
}
|
|
3980
|
-
function
|
|
3937
|
+
function $t() {
|
|
3981
3938
|
}
|
|
3982
3939
|
function Le(e) {
|
|
3983
3940
|
e();
|
|
3984
3941
|
}
|
|
3985
|
-
var
|
|
3986
|
-
|
|
3942
|
+
var wr = function(e) {
|
|
3943
|
+
V(t, e);
|
|
3987
3944
|
function t(r) {
|
|
3988
3945
|
var n = e.call(this) || this;
|
|
3989
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
3946
|
+
return n.isStopped = !1, r ? (n.destination = r, Tr(r) && r.add(n)) : n.destination = Ji, n;
|
|
3990
3947
|
}
|
|
3991
3948
|
return t.create = function(r, n, i) {
|
|
3992
|
-
return new
|
|
3949
|
+
return new lt(r, n, i);
|
|
3993
3950
|
}, t.prototype.next = function(r) {
|
|
3994
3951
|
this.isStopped || this._next(r);
|
|
3995
3952
|
}, t.prototype.error = function(r) {
|
|
@@ -4013,7 +3970,7 @@ var Br = function(e) {
|
|
|
4013
3970
|
this.unsubscribe();
|
|
4014
3971
|
}
|
|
4015
3972
|
}, t;
|
|
4016
|
-
}(
|
|
3973
|
+
}(je), Qi = function() {
|
|
4017
3974
|
function e(t) {
|
|
4018
3975
|
this.partialObserver = t;
|
|
4019
3976
|
}
|
|
@@ -4044,43 +4001,43 @@ var Br = function(e) {
|
|
|
4044
4001
|
Ae(r);
|
|
4045
4002
|
}
|
|
4046
4003
|
}, e;
|
|
4047
|
-
}(),
|
|
4048
|
-
|
|
4004
|
+
}(), lt = function(e) {
|
|
4005
|
+
V(t, e);
|
|
4049
4006
|
function t(r, n, i) {
|
|
4050
4007
|
var o = e.call(this) || this, s;
|
|
4051
|
-
return
|
|
4008
|
+
return k(r) || !r ? s = {
|
|
4052
4009
|
next: r ?? void 0,
|
|
4053
4010
|
error: n ?? void 0,
|
|
4054
4011
|
complete: i ?? void 0
|
|
4055
|
-
} : s = r, o.destination = new
|
|
4012
|
+
} : s = r, o.destination = new Qi(s), o;
|
|
4056
4013
|
}
|
|
4057
4014
|
return t;
|
|
4058
|
-
}(
|
|
4015
|
+
}(wr);
|
|
4059
4016
|
function Ae(e) {
|
|
4060
|
-
|
|
4017
|
+
Zi(e);
|
|
4061
4018
|
}
|
|
4062
|
-
function
|
|
4019
|
+
function Yi(e) {
|
|
4063
4020
|
throw e;
|
|
4064
4021
|
}
|
|
4065
|
-
var
|
|
4022
|
+
var Ji = {
|
|
4066
4023
|
closed: !0,
|
|
4067
|
-
next:
|
|
4068
|
-
error:
|
|
4069
|
-
complete:
|
|
4070
|
-
},
|
|
4024
|
+
next: $t,
|
|
4025
|
+
error: Yi,
|
|
4026
|
+
complete: $t
|
|
4027
|
+
}, qi = function() {
|
|
4071
4028
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4072
4029
|
}();
|
|
4073
|
-
function
|
|
4030
|
+
function Ki(e) {
|
|
4074
4031
|
return e;
|
|
4075
4032
|
}
|
|
4076
|
-
function
|
|
4077
|
-
return e.length === 0 ?
|
|
4033
|
+
function eo(e) {
|
|
4034
|
+
return e.length === 0 ? Ki : e.length === 1 ? e[0] : function(r) {
|
|
4078
4035
|
return e.reduce(function(n, i) {
|
|
4079
4036
|
return i(n);
|
|
4080
4037
|
}, r);
|
|
4081
4038
|
};
|
|
4082
4039
|
}
|
|
4083
|
-
var
|
|
4040
|
+
var Rt = function() {
|
|
4084
4041
|
function e(t) {
|
|
4085
4042
|
t && (this._subscribe = t);
|
|
4086
4043
|
}
|
|
@@ -4088,7 +4045,7 @@ var jt = function() {
|
|
|
4088
4045
|
var r = new e();
|
|
4089
4046
|
return r.source = this, r.operator = t, r;
|
|
4090
4047
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
4091
|
-
var i = this, o =
|
|
4048
|
+
var i = this, o = ro(t) ? t : new lt(t, r, n);
|
|
4092
4049
|
return Le(function() {
|
|
4093
4050
|
var s = i, a = s.operator, l = s.source;
|
|
4094
4051
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -4101,8 +4058,8 @@ var jt = function() {
|
|
|
4101
4058
|
}
|
|
4102
4059
|
}, e.prototype.forEach = function(t, r) {
|
|
4103
4060
|
var n = this;
|
|
4104
|
-
return r =
|
|
4105
|
-
var s = new
|
|
4061
|
+
return r = Dt(r), new r(function(i, o) {
|
|
4062
|
+
var s = new lt({
|
|
4106
4063
|
next: function(a) {
|
|
4107
4064
|
try {
|
|
4108
4065
|
t(a);
|
|
@@ -4118,15 +4075,15 @@ var jt = function() {
|
|
|
4118
4075
|
}, e.prototype._subscribe = function(t) {
|
|
4119
4076
|
var r;
|
|
4120
4077
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4121
|
-
}, e.prototype[
|
|
4078
|
+
}, e.prototype[qi] = function() {
|
|
4122
4079
|
return this;
|
|
4123
4080
|
}, e.prototype.pipe = function() {
|
|
4124
4081
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4125
4082
|
t[r] = arguments[r];
|
|
4126
|
-
return
|
|
4083
|
+
return eo(t)(this);
|
|
4127
4084
|
}, e.prototype.toPromise = function(t) {
|
|
4128
4085
|
var r = this;
|
|
4129
|
-
return t =
|
|
4086
|
+
return t = Dt(t), new t(function(n, i) {
|
|
4130
4087
|
var o;
|
|
4131
4088
|
r.subscribe(function(s) {
|
|
4132
4089
|
return o = s;
|
|
@@ -4140,32 +4097,32 @@ var jt = function() {
|
|
|
4140
4097
|
return new e(t);
|
|
4141
4098
|
}, e;
|
|
4142
4099
|
}();
|
|
4143
|
-
function
|
|
4100
|
+
function Dt(e) {
|
|
4144
4101
|
var t;
|
|
4145
|
-
return (t = e ??
|
|
4102
|
+
return (t = e ?? Wi.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4146
4103
|
}
|
|
4147
|
-
function
|
|
4148
|
-
return e &&
|
|
4104
|
+
function to(e) {
|
|
4105
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
4149
4106
|
}
|
|
4150
|
-
function
|
|
4151
|
-
return e && e instanceof
|
|
4107
|
+
function ro(e) {
|
|
4108
|
+
return e && e instanceof wr || to(e) && Tr(e);
|
|
4152
4109
|
}
|
|
4153
|
-
var
|
|
4110
|
+
var no = Er(function(e) {
|
|
4154
4111
|
return function() {
|
|
4155
4112
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4156
4113
|
};
|
|
4157
|
-
}),
|
|
4158
|
-
|
|
4114
|
+
}), Hr = function(e) {
|
|
4115
|
+
V(t, e);
|
|
4159
4116
|
function t() {
|
|
4160
4117
|
var r = e.call(this) || this;
|
|
4161
4118
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4162
4119
|
}
|
|
4163
4120
|
return t.prototype.lift = function(r) {
|
|
4164
|
-
var n = new
|
|
4121
|
+
var n = new Ut(this, this);
|
|
4165
4122
|
return n.operator = r, n;
|
|
4166
4123
|
}, t.prototype._throwIfClosed = function() {
|
|
4167
4124
|
if (this.closed)
|
|
4168
|
-
throw new
|
|
4125
|
+
throw new no();
|
|
4169
4126
|
}, t.prototype.next = function(r) {
|
|
4170
4127
|
var n = this;
|
|
4171
4128
|
Le(function() {
|
|
@@ -4173,7 +4130,7 @@ var uo = Pr(function(e) {
|
|
|
4173
4130
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4174
4131
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
4175
4132
|
try {
|
|
4176
|
-
for (var s =
|
|
4133
|
+
for (var s = Ke(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4177
4134
|
var l = a.value;
|
|
4178
4135
|
l.next(r);
|
|
4179
4136
|
}
|
|
@@ -4222,20 +4179,20 @@ var uo = Pr(function(e) {
|
|
|
4222
4179
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4223
4180
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4224
4181
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4225
|
-
return o || s ?
|
|
4226
|
-
n.currentObservers = null,
|
|
4182
|
+
return o || s ? Sr : (this.currentObservers = null, a.push(r), new je(function() {
|
|
4183
|
+
n.currentObservers = null, ut(a, r);
|
|
4227
4184
|
}));
|
|
4228
4185
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4229
4186
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
4230
4187
|
i ? r.error(o) : s && r.complete();
|
|
4231
4188
|
}, t.prototype.asObservable = function() {
|
|
4232
|
-
var r = new
|
|
4189
|
+
var r = new Rt();
|
|
4233
4190
|
return r.source = this, r;
|
|
4234
4191
|
}, t.create = function(r, n) {
|
|
4235
|
-
return new
|
|
4192
|
+
return new Ut(r, n);
|
|
4236
4193
|
}, t;
|
|
4237
|
-
}(
|
|
4238
|
-
|
|
4194
|
+
}(Rt), Ut = function(e) {
|
|
4195
|
+
V(t, e);
|
|
4239
4196
|
function t(r, n) {
|
|
4240
4197
|
var i = e.call(this) || this;
|
|
4241
4198
|
return i.destination = r, i.source = n, i;
|
|
@@ -4251,17 +4208,17 @@ var uo = Pr(function(e) {
|
|
|
4251
4208
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
4252
4209
|
}, t.prototype._subscribe = function(r) {
|
|
4253
4210
|
var n, i;
|
|
4254
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
4211
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Sr;
|
|
4255
4212
|
}, t;
|
|
4256
|
-
}(
|
|
4213
|
+
}(Hr), Pr = {
|
|
4257
4214
|
now: function() {
|
|
4258
|
-
return (
|
|
4215
|
+
return (Pr.delegate || Date).now();
|
|
4259
4216
|
},
|
|
4260
4217
|
delegate: void 0
|
|
4261
|
-
},
|
|
4262
|
-
|
|
4218
|
+
}, io = function(e) {
|
|
4219
|
+
V(t, e);
|
|
4263
4220
|
function t(r, n, i) {
|
|
4264
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
4221
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Pr);
|
|
4265
4222
|
var o = e.call(this) || this;
|
|
4266
4223
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
4267
4224
|
}
|
|
@@ -4281,25 +4238,25 @@ var uo = Pr(function(e) {
|
|
|
4281
4238
|
u && o.splice(0, u + 1);
|
|
4282
4239
|
}
|
|
4283
4240
|
}, t;
|
|
4284
|
-
}(
|
|
4285
|
-
const
|
|
4286
|
-
if (
|
|
4287
|
-
const r = new
|
|
4288
|
-
|
|
4241
|
+
}(Hr);
|
|
4242
|
+
const Gt = [], Ft = {}, oo = (e, t = 0) => {
|
|
4243
|
+
if (Gt.indexOf(e) == -1) {
|
|
4244
|
+
const r = new io(t);
|
|
4245
|
+
Ft[e] = r, Gt.push(e);
|
|
4289
4246
|
}
|
|
4290
|
-
return
|
|
4247
|
+
return Ft[e];
|
|
4291
4248
|
};
|
|
4292
|
-
let
|
|
4293
|
-
const
|
|
4294
|
-
|
|
4295
|
-
},
|
|
4296
|
-
if (!
|
|
4297
|
-
return new Intl.NumberFormat(
|
|
4298
|
-
const n = new Intl.NumberFormat(
|
|
4299
|
-
return
|
|
4249
|
+
let ht = "en-UK", ct = "true", de = 2, ft = "";
|
|
4250
|
+
const so = (e, t, r, n) => {
|
|
4251
|
+
ht = e || "en-UK", ct = t || "true", de = +n || 2, ft = r || "";
|
|
4252
|
+
}, Be = (e, t) => {
|
|
4253
|
+
if (!ft)
|
|
4254
|
+
return new Intl.NumberFormat(ht, { style: "currency", currency: t, currencyDisplay: ct === "true" ? "symbol" : "code", maximumFractionDigits: de, minimumFractionDigits: de }).format(e);
|
|
4255
|
+
const n = new Intl.NumberFormat(ht, { style: "currency", currency: t, currencyDisplay: ct === "true" ? "symbol" : "code", maximumFractionDigits: de, minimumFractionDigits: de }).formatToParts(e), i = n.find((l) => l.type === "currency"), s = n.filter((l) => l.type !== "currency").map((l) => l.value).join("");
|
|
4256
|
+
return ft === "before" ? `${i.value} ${s}` : `${s} ${i.value}`;
|
|
4300
4257
|
};
|
|
4301
|
-
window.emWidgets = { topic:
|
|
4302
|
-
const
|
|
4258
|
+
window.emWidgets = { topic: oo };
|
|
4259
|
+
const jt = {
|
|
4303
4260
|
en: {
|
|
4304
4261
|
generalMin: "Min",
|
|
4305
4262
|
generalMax: "Max",
|
|
@@ -4331,18 +4288,18 @@ const zt = {
|
|
|
4331
4288
|
generalMax: "Max"
|
|
4332
4289
|
}
|
|
4333
4290
|
};
|
|
4334
|
-
function
|
|
4335
|
-
|
|
4291
|
+
function ao(e) {
|
|
4292
|
+
Mr(e, "svelte-19lknjo", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281F));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.Carousel{display:flex;gap:10px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #F9C405);height:10px;width:10px;opacity:0.5}.VisualDotIndicator .Dot.active{opacity:1;width:30px}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #F9C405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo img{height:36px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #F9C405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
|
|
4336
4293
|
}
|
|
4337
|
-
function
|
|
4294
|
+
function kt(e, t, r) {
|
|
4338
4295
|
const n = e.slice();
|
|
4339
4296
|
return n[32] = t[r], n[34] = r, n;
|
|
4340
4297
|
}
|
|
4341
|
-
function
|
|
4298
|
+
function Vt(e, t, r) {
|
|
4342
4299
|
const n = e.slice();
|
|
4343
4300
|
return n[35] = t[r], n[34] = r, n;
|
|
4344
4301
|
}
|
|
4345
|
-
function
|
|
4302
|
+
function uo(e) {
|
|
4346
4303
|
let t, r = (
|
|
4347
4304
|
/*$_*/
|
|
4348
4305
|
e[4]("noPaymentMethods") + ""
|
|
@@ -4352,68 +4309,68 @@ function po(e) {
|
|
|
4352
4309
|
t = P("p"), n = $(r);
|
|
4353
4310
|
},
|
|
4354
4311
|
m(i, o) {
|
|
4355
|
-
G(i, t, o),
|
|
4312
|
+
G(i, t, o), T(t, n);
|
|
4356
4313
|
},
|
|
4357
4314
|
p(i, o) {
|
|
4358
4315
|
o[0] & /*$_*/
|
|
4359
4316
|
16 && r !== (r = /*$_*/
|
|
4360
|
-
i[4]("noPaymentMethods") + "") &&
|
|
4317
|
+
i[4]("noPaymentMethods") + "") && j(n, r);
|
|
4361
4318
|
},
|
|
4362
4319
|
d(i) {
|
|
4363
4320
|
i && R(t);
|
|
4364
4321
|
}
|
|
4365
4322
|
};
|
|
4366
4323
|
}
|
|
4367
|
-
function
|
|
4324
|
+
function lo(e) {
|
|
4368
4325
|
let t, r, n = (
|
|
4369
4326
|
/*$_*/
|
|
4370
4327
|
e[4]("carouselTitle") + ""
|
|
4371
4328
|
), i, o, s, a = (
|
|
4372
4329
|
/*$_*/
|
|
4373
4330
|
e[4]("carouselSubtitle") + ""
|
|
4374
|
-
), l, u, h,
|
|
4331
|
+
), l, u, h, m, c, b, y, g = He(
|
|
4375
4332
|
/*promotedPaymentMethods*/
|
|
4376
4333
|
e[2]
|
|
4377
|
-
),
|
|
4334
|
+
), x = [];
|
|
4378
4335
|
for (let f = 0; f < g.length; f += 1)
|
|
4379
|
-
|
|
4336
|
+
x[f] = Xt(Vt(e, g, f));
|
|
4380
4337
|
let A = He(Array(
|
|
4381
4338
|
/*promotedPaymentMethods*/
|
|
4382
4339
|
e[2].length
|
|
4383
|
-
)),
|
|
4340
|
+
)), E = [];
|
|
4384
4341
|
for (let f = 0; f < A.length; f += 1)
|
|
4385
|
-
|
|
4342
|
+
E[f] = Wt(kt(e, A, f));
|
|
4386
4343
|
return {
|
|
4387
4344
|
c() {
|
|
4388
|
-
t = P("div"), r = P("h4"), i = $(n), o =
|
|
4389
|
-
for (let f = 0; f < E.length; f += 1)
|
|
4390
|
-
E[f].c();
|
|
4391
|
-
p = j(), c = P("div");
|
|
4345
|
+
t = P("div"), r = P("h4"), i = $(n), o = F(), s = P("p"), l = $(a), u = F(), h = P("div");
|
|
4392
4346
|
for (let f = 0; f < x.length; f += 1)
|
|
4393
4347
|
x[f].c();
|
|
4394
|
-
|
|
4348
|
+
m = F(), c = P("div");
|
|
4349
|
+
for (let f = 0; f < E.length; f += 1)
|
|
4350
|
+
E[f].c();
|
|
4351
|
+
B(t, "class", "CarouselHeader"), B(h, "class", "Carousel"), B(c, "class", "VisualDotIndicator");
|
|
4395
4352
|
},
|
|
4396
|
-
m(f,
|
|
4397
|
-
G(f, t,
|
|
4398
|
-
for (let d = 0; d < E.length; d += 1)
|
|
4399
|
-
E[d] && E[d].m(h, null);
|
|
4400
|
-
e[19](h), G(f, p, T), G(f, c, T);
|
|
4353
|
+
m(f, w) {
|
|
4354
|
+
G(f, t, w), T(t, r), T(r, i), T(t, o), T(t, s), T(s, l), G(f, u, w), G(f, h, w);
|
|
4401
4355
|
for (let d = 0; d < x.length; d += 1)
|
|
4402
|
-
x[d] && x[d].m(
|
|
4356
|
+
x[d] && x[d].m(h, null);
|
|
4357
|
+
e[19](h), G(f, m, w), G(f, c, w);
|
|
4358
|
+
for (let d = 0; d < E.length; d += 1)
|
|
4359
|
+
E[d] && E[d].m(c, null);
|
|
4403
4360
|
b || (y = [
|
|
4404
|
-
|
|
4361
|
+
Me(
|
|
4405
4362
|
h,
|
|
4406
4363
|
"touchstart",
|
|
4407
4364
|
/*handleTouchStart*/
|
|
4408
4365
|
e[6]
|
|
4409
4366
|
),
|
|
4410
|
-
|
|
4367
|
+
Me(
|
|
4411
4368
|
h,
|
|
4412
4369
|
"touchmove",
|
|
4413
4370
|
/*handleTouchMove*/
|
|
4414
4371
|
e[7]
|
|
4415
4372
|
),
|
|
4416
|
-
|
|
4373
|
+
Me(
|
|
4417
4374
|
h,
|
|
4418
4375
|
"touchend",
|
|
4419
4376
|
/*handleTouchEnd*/
|
|
@@ -4421,12 +4378,12 @@ function mo(e) {
|
|
|
4421
4378
|
)
|
|
4422
4379
|
], b = !0);
|
|
4423
4380
|
},
|
|
4424
|
-
p(f,
|
|
4425
|
-
if (
|
|
4381
|
+
p(f, w) {
|
|
4382
|
+
if (w[0] & /*$_*/
|
|
4426
4383
|
16 && n !== (n = /*$_*/
|
|
4427
|
-
f[4]("carouselTitle") + "") &&
|
|
4384
|
+
f[4]("carouselTitle") + "") && j(i, n), w[0] & /*$_*/
|
|
4428
4385
|
16 && a !== (a = /*$_*/
|
|
4429
|
-
f[4]("carouselSubtitle") + "") &&
|
|
4386
|
+
f[4]("carouselSubtitle") + "") && j(l, a), w[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, $_*/
|
|
4430
4387
|
60) {
|
|
4431
4388
|
g = He(
|
|
4432
4389
|
/*promotedPaymentMethods*/
|
|
@@ -4434,14 +4391,14 @@ function mo(e) {
|
|
|
4434
4391
|
);
|
|
4435
4392
|
let d;
|
|
4436
4393
|
for (d = 0; d < g.length; d += 1) {
|
|
4437
|
-
const
|
|
4438
|
-
|
|
4394
|
+
const M = Vt(f, g, d);
|
|
4395
|
+
x[d] ? x[d].p(M, w) : (x[d] = Xt(M), x[d].c(), x[d].m(h, null));
|
|
4439
4396
|
}
|
|
4440
|
-
for (; d <
|
|
4441
|
-
|
|
4442
|
-
|
|
4397
|
+
for (; d < x.length; d += 1)
|
|
4398
|
+
x[d].d(1);
|
|
4399
|
+
x.length = g.length;
|
|
4443
4400
|
}
|
|
4444
|
-
if (
|
|
4401
|
+
if (w[0] & /*activeIndex, promotedPaymentMethods*/
|
|
4445
4402
|
12) {
|
|
4446
4403
|
A = He(Array(
|
|
4447
4404
|
/*promotedPaymentMethods*/
|
|
@@ -4449,45 +4406,45 @@ function mo(e) {
|
|
|
4449
4406
|
));
|
|
4450
4407
|
let d;
|
|
4451
4408
|
for (d = 0; d < A.length; d += 1) {
|
|
4452
|
-
const
|
|
4453
|
-
|
|
4409
|
+
const M = kt(f, A, d);
|
|
4410
|
+
E[d] ? E[d].p(M, w) : (E[d] = Wt(M), E[d].c(), E[d].m(c, null));
|
|
4454
4411
|
}
|
|
4455
|
-
for (; d <
|
|
4456
|
-
|
|
4457
|
-
|
|
4412
|
+
for (; d < E.length; d += 1)
|
|
4413
|
+
E[d].d(1);
|
|
4414
|
+
E.length = A.length;
|
|
4458
4415
|
}
|
|
4459
4416
|
},
|
|
4460
4417
|
d(f) {
|
|
4461
|
-
f && (R(t), R(u), R(h), R(
|
|
4418
|
+
f && (R(t), R(u), R(h), R(m), R(c)), yt(x, f), e[19](null), yt(E, f), b = !1, ue(y);
|
|
4462
4419
|
}
|
|
4463
4420
|
};
|
|
4464
4421
|
}
|
|
4465
|
-
function
|
|
4422
|
+
function Xt(e) {
|
|
4466
4423
|
let t, r, n, i, o, s, a, l, u, h = (
|
|
4467
4424
|
/*method*/
|
|
4468
4425
|
(e[35].Label || /*method*/
|
|
4469
4426
|
e[35].Name) + ""
|
|
4470
|
-
),
|
|
4427
|
+
), m, c, b, y, g = (
|
|
4471
4428
|
/*$_*/
|
|
4472
4429
|
e[4](`${/*method*/
|
|
4473
4430
|
e[35].ProcessingTime}`) + ""
|
|
4474
|
-
),
|
|
4431
|
+
), x, A, E, f, w = (
|
|
4475
4432
|
/*$_*/
|
|
4476
4433
|
e[4]("generalMin") + ""
|
|
4477
|
-
), d,
|
|
4434
|
+
), d, M, U = Be(
|
|
4478
4435
|
/*method*/
|
|
4479
4436
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4480
4437
|
/*method*/
|
|
4481
4438
|
e[35].DisplayCurrency.Name
|
|
4482
|
-
) + "", z,
|
|
4439
|
+
) + "", z, Ee, Q = (
|
|
4483
4440
|
/*$_*/
|
|
4484
4441
|
e[4]("generalMax") + ""
|
|
4485
|
-
),
|
|
4442
|
+
), ce, Se, Y = Be(
|
|
4486
4443
|
/*method*/
|
|
4487
4444
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4488
4445
|
/*method*/
|
|
4489
4446
|
e[35].DisplayCurrency.Name
|
|
4490
|
-
) + "",
|
|
4447
|
+
) + "", fe, Te, p, O, L;
|
|
4491
4448
|
function J() {
|
|
4492
4449
|
return (
|
|
4493
4450
|
/*click_handler*/
|
|
@@ -4499,57 +4456,57 @@ function Yt(e) {
|
|
|
4499
4456
|
}
|
|
4500
4457
|
return {
|
|
4501
4458
|
c() {
|
|
4502
|
-
t = P("div"), r = P("div"), n = P("img"), s =
|
|
4503
|
-
e[35].LogoUrl) ||
|
|
4504
|
-
e[35].Label),
|
|
4459
|
+
t = P("div"), r = P("div"), n = P("img"), s = F(), a = P("div"), l = P("div"), u = P("span"), m = $(h), c = F(), b = P("div"), y = P("span"), x = $(g), A = F(), E = P("div"), f = P("span"), d = $(w), M = F(), z = $(U), Ee = $(" / "), ce = $(Q), Se = F(), fe = $(Y), Te = F(), gt(n.src, i = /*method*/
|
|
4460
|
+
e[35].LogoUrl) || B(n, "src", i), B(n, "alt", o = /*method*/
|
|
4461
|
+
e[35].Label), B(r, "class", "MethodLogo"), B(l, "class", "MethodTitle"), B(b, "class", "MethodProcessingTime"), B(f, "class", "Limits"), B(E, "class", "MethodLimits"), B(a, "class", "MethodInfo"), B(t, "class", p = `CarouselCardWrapper ${/*index*/
|
|
4505
4462
|
e[34] === /*activeIndex*/
|
|
4506
4463
|
e[3] ? "active" : ""}`);
|
|
4507
4464
|
},
|
|
4508
4465
|
m(q, I) {
|
|
4509
|
-
G(q, t, I),
|
|
4466
|
+
G(q, t, I), T(t, r), T(r, n), T(t, s), T(t, a), T(a, l), T(l, u), T(u, m), T(a, c), T(a, b), T(b, y), T(y, x), T(a, A), T(a, E), T(E, f), T(f, d), T(f, M), T(f, z), T(f, Ee), T(f, ce), T(f, Se), T(f, fe), T(t, Te), O || (L = Me(t, "click", J), O = !0);
|
|
4510
4467
|
},
|
|
4511
4468
|
p(q, I) {
|
|
4512
4469
|
e = q, I[0] & /*promotedPaymentMethods*/
|
|
4513
|
-
4 && !
|
|
4514
|
-
e[35].LogoUrl) &&
|
|
4470
|
+
4 && !gt(n.src, i = /*method*/
|
|
4471
|
+
e[35].LogoUrl) && B(n, "src", i), I[0] & /*promotedPaymentMethods*/
|
|
4515
4472
|
4 && o !== (o = /*method*/
|
|
4516
|
-
e[35].Label) &&
|
|
4473
|
+
e[35].Label) && B(n, "alt", o), I[0] & /*promotedPaymentMethods*/
|
|
4517
4474
|
4 && h !== (h = /*method*/
|
|
4518
4475
|
(e[35].Label || /*method*/
|
|
4519
|
-
e[35].Name) + "") &&
|
|
4476
|
+
e[35].Name) + "") && j(m, h), I[0] & /*$_, promotedPaymentMethods*/
|
|
4520
4477
|
20 && g !== (g = /*$_*/
|
|
4521
4478
|
e[4](`${/*method*/
|
|
4522
|
-
e[35].ProcessingTime}`) + "") &&
|
|
4523
|
-
16 &&
|
|
4524
|
-
e[4]("generalMin") + "") &&
|
|
4525
|
-
4 && U !== (U =
|
|
4479
|
+
e[35].ProcessingTime}`) + "") && j(x, g), I[0] & /*$_*/
|
|
4480
|
+
16 && w !== (w = /*$_*/
|
|
4481
|
+
e[4]("generalMin") + "") && j(d, w), I[0] & /*promotedPaymentMethods*/
|
|
4482
|
+
4 && U !== (U = Be(
|
|
4526
4483
|
/*method*/
|
|
4527
4484
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4528
4485
|
/*method*/
|
|
4529
4486
|
e[35].DisplayCurrency.Name
|
|
4530
|
-
) + "") &&
|
|
4487
|
+
) + "") && j(z, U), I[0] & /*$_*/
|
|
4531
4488
|
16 && Q !== (Q = /*$_*/
|
|
4532
|
-
e[4]("generalMax") + "") &&
|
|
4533
|
-
4 && Y !== (Y =
|
|
4489
|
+
e[4]("generalMax") + "") && j(ce, Q), I[0] & /*promotedPaymentMethods*/
|
|
4490
|
+
4 && Y !== (Y = Be(
|
|
4534
4491
|
/*method*/
|
|
4535
4492
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4536
4493
|
/*method*/
|
|
4537
4494
|
e[35].DisplayCurrency.Name
|
|
4538
|
-
) + "") &&
|
|
4539
|
-
8 &&
|
|
4495
|
+
) + "") && j(fe, Y), I[0] & /*activeIndex*/
|
|
4496
|
+
8 && p !== (p = `CarouselCardWrapper ${/*index*/
|
|
4540
4497
|
e[34] === /*activeIndex*/
|
|
4541
|
-
e[3] ? "active" : ""}`) &&
|
|
4498
|
+
e[3] ? "active" : ""}`) && B(t, "class", p);
|
|
4542
4499
|
},
|
|
4543
4500
|
d(q) {
|
|
4544
|
-
q && R(t),
|
|
4501
|
+
q && R(t), O = !1, L();
|
|
4545
4502
|
}
|
|
4546
4503
|
};
|
|
4547
4504
|
}
|
|
4548
|
-
function
|
|
4505
|
+
function Wt(e) {
|
|
4549
4506
|
let t, r;
|
|
4550
4507
|
return {
|
|
4551
4508
|
c() {
|
|
4552
|
-
t = P("div"),
|
|
4509
|
+
t = P("div"), B(t, "class", r = `Dot ${/*index*/
|
|
4553
4510
|
e[34] === /*activeIndex*/
|
|
4554
4511
|
e[3] ? "active" : ""}`);
|
|
4555
4512
|
},
|
|
@@ -4560,28 +4517,28 @@ function Jt(e) {
|
|
|
4560
4517
|
i[0] & /*activeIndex*/
|
|
4561
4518
|
8 && r !== (r = `Dot ${/*index*/
|
|
4562
4519
|
n[34] === /*activeIndex*/
|
|
4563
|
-
n[3] ? "active" : ""}`) &&
|
|
4520
|
+
n[3] ? "active" : ""}`) && B(t, "class", r);
|
|
4564
4521
|
},
|
|
4565
4522
|
d(n) {
|
|
4566
4523
|
n && R(t);
|
|
4567
4524
|
}
|
|
4568
4525
|
};
|
|
4569
4526
|
}
|
|
4570
|
-
function
|
|
4527
|
+
function ho(e) {
|
|
4571
4528
|
let t, r;
|
|
4572
4529
|
function n(s, a) {
|
|
4573
4530
|
return (
|
|
4574
4531
|
/*promotedPaymentMethods*/
|
|
4575
|
-
s[2].length > 0 ?
|
|
4532
|
+
s[2].length > 0 ? lo : uo
|
|
4576
4533
|
);
|
|
4577
4534
|
}
|
|
4578
4535
|
let i = n(e), o = i(e);
|
|
4579
4536
|
return {
|
|
4580
4537
|
c() {
|
|
4581
|
-
t = P("div"), r = P("div"), o.c(),
|
|
4538
|
+
t = P("div"), r = P("div"), o.c(), B(r, "class", "CashierCarouselWarpper");
|
|
4582
4539
|
},
|
|
4583
4540
|
m(s, a) {
|
|
4584
|
-
G(s, t, a),
|
|
4541
|
+
G(s, t, a), T(t, r), o.m(r, null), e[20](t);
|
|
4585
4542
|
},
|
|
4586
4543
|
p(s, a) {
|
|
4587
4544
|
i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(r, null)));
|
|
@@ -4593,33 +4550,33 @@ function bo(e) {
|
|
|
4593
4550
|
}
|
|
4594
4551
|
};
|
|
4595
4552
|
}
|
|
4596
|
-
function
|
|
4553
|
+
function co(e, t, r) {
|
|
4597
4554
|
let n;
|
|
4598
|
-
|
|
4599
|
-
let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource:
|
|
4600
|
-
const
|
|
4601
|
-
|
|
4555
|
+
Br(e, Fi, (p) => r(4, n = p));
|
|
4556
|
+
let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: m = "" } = t, { translationurl: c = "" } = t, b, y = [], g = 0, x = !0, A = 0, E = !1, f;
|
|
4557
|
+
const w = (p) => {
|
|
4558
|
+
p.data && p.data.type === "PromotedPaymentMethods" && (r(2, y = p.data.promotedPaymentMethods), r(3, g = Math.floor(y.length / 2)));
|
|
4602
4559
|
};
|
|
4603
|
-
Object.keys(
|
|
4604
|
-
|
|
4560
|
+
Object.keys(jt).forEach((p) => {
|
|
4561
|
+
Lt(p, jt[p]);
|
|
4605
4562
|
});
|
|
4606
4563
|
const d = () => {
|
|
4607
|
-
let
|
|
4608
|
-
if (
|
|
4609
|
-
return fetch(
|
|
4610
|
-
Object.keys(
|
|
4611
|
-
|
|
4564
|
+
let p = c;
|
|
4565
|
+
if (p)
|
|
4566
|
+
return fetch(p).then((O) => O.json()).then((O) => {
|
|
4567
|
+
Object.keys(O).forEach((L) => {
|
|
4568
|
+
Lt(L, O[L]);
|
|
4612
4569
|
});
|
|
4613
|
-
}).catch((
|
|
4614
|
-
console.log(
|
|
4570
|
+
}).catch((O) => {
|
|
4571
|
+
console.log(O);
|
|
4615
4572
|
});
|
|
4616
|
-
},
|
|
4617
|
-
|
|
4618
|
-
}, U = (
|
|
4619
|
-
|
|
4573
|
+
}, M = () => {
|
|
4574
|
+
ji(i);
|
|
4575
|
+
}, U = (p) => {
|
|
4576
|
+
p.Name, window.postMessage({ type: "SelectPayMeth", details: p }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4620
4577
|
"selectPayMeth",
|
|
4621
4578
|
{
|
|
4622
|
-
detail:
|
|
4579
|
+
detail: p,
|
|
4623
4580
|
bubbles: !0,
|
|
4624
4581
|
cancelable: !0,
|
|
4625
4582
|
composed: !0
|
|
@@ -4628,46 +4585,46 @@ function go(e, t, r) {
|
|
|
4628
4585
|
}, z = () => {
|
|
4629
4586
|
let J;
|
|
4630
4587
|
return y.length % 2 === 1 ? J = Math.floor(y.length / 2) : J = y.length / 2 - 0.5, `translateX(${(J - g) * 165}px)`;
|
|
4631
|
-
},
|
|
4632
|
-
A =
|
|
4633
|
-
}, Q = (
|
|
4634
|
-
if (!
|
|
4588
|
+
}, Ee = (p) => {
|
|
4589
|
+
A = p.touches[0].clientX, E = !0, f.classList.add("dragging");
|
|
4590
|
+
}, Q = (p) => {
|
|
4591
|
+
if (!E)
|
|
4635
4592
|
return;
|
|
4636
|
-
const
|
|
4637
|
-
Math.abs(
|
|
4638
|
-
},
|
|
4639
|
-
if (!
|
|
4593
|
+
const O = p.touches[0].clientX;
|
|
4594
|
+
Math.abs(O - A) > 10 && p.preventDefault();
|
|
4595
|
+
}, ce = (p) => {
|
|
4596
|
+
if (!E)
|
|
4640
4597
|
return;
|
|
4641
|
-
|
|
4642
|
-
const
|
|
4598
|
+
E = !1, f.classList.remove("dragging");
|
|
4599
|
+
const O = p.changedTouches[0].clientX, L = A - O;
|
|
4643
4600
|
Math.abs(L) > 50 && (L > 0 && g < y.length - 1 ? r(3, g++, g) : L < 0 && g > 0 && r(3, g--, g), r(1, f.style.transform = z(), f));
|
|
4644
4601
|
}, Se = () => {
|
|
4645
|
-
|
|
4602
|
+
x && (r(1, f.style.transform = z(), f), x = !1);
|
|
4646
4603
|
};
|
|
4647
|
-
|
|
4648
|
-
window.removeEventListener("message",
|
|
4604
|
+
$r(() => (so(o, s, a, l), window.addEventListener("message", w), f && z(), () => {
|
|
4605
|
+
window.removeEventListener("message", w);
|
|
4649
4606
|
}));
|
|
4650
|
-
const Y = (
|
|
4651
|
-
function
|
|
4652
|
-
Ne[
|
|
4653
|
-
f =
|
|
4607
|
+
const Y = (p) => U(p);
|
|
4608
|
+
function fe(p) {
|
|
4609
|
+
Ne[p ? "unshift" : "push"](() => {
|
|
4610
|
+
f = p, r(1, f);
|
|
4654
4611
|
});
|
|
4655
4612
|
}
|
|
4656
|
-
function Te(
|
|
4657
|
-
Ne[
|
|
4658
|
-
b =
|
|
4613
|
+
function Te(p) {
|
|
4614
|
+
Ne[p ? "unshift" : "push"](() => {
|
|
4615
|
+
b = p, r(0, b);
|
|
4659
4616
|
});
|
|
4660
4617
|
}
|
|
4661
|
-
return e.$$set = (
|
|
4662
|
-
"lang" in
|
|
4618
|
+
return e.$$set = (p) => {
|
|
4619
|
+
"lang" in p && r(9, i = p.lang), "local" in p && r(10, o = p.local), "currencysymbol" in p && r(11, s = p.currencysymbol), "currencyposition" in p && r(12, a = p.currencyposition), "currencydecimals" in p && r(13, l = p.currencydecimals), "clientstyling" in p && r(14, u = p.clientstyling), "clientstylingurl" in p && r(15, h = p.clientstylingurl), "mbsource" in p && r(16, m = p.mbsource), "translationurl" in p && r(17, c = p.translationurl);
|
|
4663
4620
|
}, e.$$.update = () => {
|
|
4664
4621
|
e.$$.dirty[0] & /*lang*/
|
|
4665
|
-
512 && i &&
|
|
4622
|
+
512 && i && M(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
4666
4623
|
131584 && i && c && d(), e.$$.dirty[0] & /*carouselContainer*/
|
|
4667
4624
|
2 && f && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4668
|
-
16385 && u && b &&
|
|
4669
|
-
32769 && h && b &&
|
|
4670
|
-
65537 &&
|
|
4625
|
+
16385 && u && b && ki(b, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4626
|
+
32769 && h && b && Vi(b, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4627
|
+
65537 && m && b && Xi(b, `${m}.Style`);
|
|
4671
4628
|
}, [
|
|
4672
4629
|
b,
|
|
4673
4630
|
f,
|
|
@@ -4675,9 +4632,9 @@ function go(e, t, r) {
|
|
|
4675
4632
|
g,
|
|
4676
4633
|
n,
|
|
4677
4634
|
U,
|
|
4678
|
-
|
|
4635
|
+
Ee,
|
|
4679
4636
|
Q,
|
|
4680
|
-
|
|
4637
|
+
ce,
|
|
4681
4638
|
i,
|
|
4682
4639
|
o,
|
|
4683
4640
|
s,
|
|
@@ -4685,21 +4642,21 @@ function go(e, t, r) {
|
|
|
4685
4642
|
l,
|
|
4686
4643
|
u,
|
|
4687
4644
|
h,
|
|
4688
|
-
|
|
4645
|
+
m,
|
|
4689
4646
|
c,
|
|
4690
4647
|
Y,
|
|
4691
|
-
|
|
4648
|
+
fe,
|
|
4692
4649
|
Te
|
|
4693
4650
|
];
|
|
4694
4651
|
}
|
|
4695
|
-
class
|
|
4652
|
+
class fo extends Zr {
|
|
4696
4653
|
constructor(t) {
|
|
4697
|
-
super(),
|
|
4654
|
+
super(), Wr(
|
|
4698
4655
|
this,
|
|
4699
4656
|
t,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4657
|
+
co,
|
|
4658
|
+
ho,
|
|
4659
|
+
Zt,
|
|
4703
4660
|
{
|
|
4704
4661
|
lang: 9,
|
|
4705
4662
|
local: 10,
|
|
@@ -4711,7 +4668,7 @@ class yo extends Kr {
|
|
|
4711
4668
|
mbsource: 16,
|
|
4712
4669
|
translationurl: 17
|
|
4713
4670
|
},
|
|
4714
|
-
|
|
4671
|
+
ao,
|
|
4715
4672
|
[-1, -1]
|
|
4716
4673
|
);
|
|
4717
4674
|
}
|
|
@@ -4770,7 +4727,7 @@ class yo extends Kr {
|
|
|
4770
4727
|
this.$$set({ translationurl: t }), N();
|
|
4771
4728
|
}
|
|
4772
4729
|
}
|
|
4773
|
-
|
|
4730
|
+
zr(fo, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4774
4731
|
export {
|
|
4775
|
-
|
|
4732
|
+
fo as C
|
|
4776
4733
|
};
|