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