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