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