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