@everymatrix/cashier-error 1.94.41 → 1.94.42
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/{CashierError-C3Z7n-hx.js → CashierError-BV7Ktd8d.js} +584 -564
- package/components/{CashierError-B6xZMaYy.js → CashierError-Cl-Z77eA.js} +574 -554
- package/components/CashierError-CxIH_nOM.cjs +5 -0
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-BRRP4Gfd.cjs +0 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ur = Object.defineProperty, cr = Object.defineProperties;
|
|
2
|
+
var hr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var tt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var Ce = (e, t, r) => t in e ?
|
|
4
|
+
var dr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, r) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
dr.call(t, r) && Ce(e, r, t[r]);
|
|
8
8
|
if (tt)
|
|
9
9
|
for (var r of tt(t))
|
|
10
|
-
|
|
10
|
+
fr.call(t, r) && Ce(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, nt = (e, t) =>
|
|
12
|
+
}, nt = (e, t) => cr(e, hr(t));
|
|
13
13
|
var I = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Le = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var a = (u) => {
|
|
@@ -30,7 +30,7 @@ var Le = (e, t, r) => new Promise((n, i) => {
|
|
|
30
30
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
31
|
function O() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function mr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -44,7 +44,7 @@ function Ht(e) {
|
|
|
44
44
|
function it() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function le(e) {
|
|
48
48
|
e.forEach(Ht);
|
|
49
49
|
}
|
|
50
50
|
function Ze(e) {
|
|
@@ -57,7 +57,7 @@ let he;
|
|
|
57
57
|
function at(e, t) {
|
|
58
58
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function gr(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
63
|
function Lt(e, ...t) {
|
|
@@ -69,7 +69,7 @@ function Lt(e, ...t) {
|
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function pr(e, t, r) {
|
|
73
73
|
e.$$.on_destroy.push(Lt(t, r));
|
|
74
74
|
}
|
|
75
75
|
function de(e, t, r, n) {
|
|
@@ -79,7 +79,7 @@ function de(e, t, r, n) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function Pt(e, t, r, n) {
|
|
82
|
-
return e[1] && n ?
|
|
82
|
+
return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
84
|
function fe(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
@@ -114,14 +114,14 @@ function ge(e) {
|
|
|
114
114
|
function B(e, t) {
|
|
115
115
|
e.appendChild(t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
const n =
|
|
117
|
+
function br(e, t, r) {
|
|
118
|
+
const n = vr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
120
|
const i = H("style");
|
|
121
|
-
i.id = t, i.textContent = r,
|
|
121
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function vr(e) {
|
|
125
125
|
if (!e)
|
|
126
126
|
return document;
|
|
127
127
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -131,7 +131,7 @@ function br(e) {
|
|
|
131
131
|
t
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function yr(e, t) {
|
|
135
135
|
return B(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
@@ -147,16 +147,16 @@ function S(e) {
|
|
|
147
147
|
function H(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function N(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function W() {
|
|
154
|
+
return N(" ");
|
|
155
155
|
}
|
|
156
156
|
function Ye() {
|
|
157
|
-
return
|
|
157
|
+
return N("");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Er(e, t, r, n) {
|
|
160
160
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
161
161
|
}
|
|
162
162
|
function M(e, t, r) {
|
|
@@ -166,14 +166,14 @@ function pe(e, t, r) {
|
|
|
166
166
|
const n = t.toLowerCase();
|
|
167
167
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : M(e, t, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _r(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function q(e, t) {
|
|
173
173
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
174
|
t);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function xr(e) {
|
|
177
177
|
const t = {};
|
|
178
178
|
return e.childNodes.forEach(
|
|
179
179
|
/** @param {Element} node */
|
|
@@ -182,97 +182,97 @@ function _r(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
let ae;
|
|
186
|
+
function ie(e) {
|
|
187
|
+
ae = e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (!
|
|
189
|
+
function Tr() {
|
|
190
|
+
if (!ae)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return ae;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
194
|
+
function kr(e) {
|
|
195
|
+
Tr().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const st = [],
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
|
|
197
|
+
const j = [], Fe = [];
|
|
198
|
+
let X = [];
|
|
199
|
+
const st = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
200
|
+
let ze = !1;
|
|
201
|
+
function Sr() {
|
|
202
|
+
ze || (ze = !0, wr.then(L));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function $e(e) {
|
|
205
|
+
X.push(e);
|
|
206
206
|
}
|
|
207
207
|
const Pe = /* @__PURE__ */ new Set();
|
|
208
208
|
let $ = 0;
|
|
209
|
-
function
|
|
209
|
+
function L() {
|
|
210
210
|
if ($ !== 0)
|
|
211
211
|
return;
|
|
212
|
-
const e =
|
|
212
|
+
const e = ae;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (; $ <
|
|
216
|
-
const t =
|
|
217
|
-
$++,
|
|
215
|
+
for (; $ < j.length; ) {
|
|
216
|
+
const t = j[$];
|
|
217
|
+
$++, ie(t), Ar(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw j.length = 0, $ = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (
|
|
222
|
+
for (ie(null), j.length = 0, $ = 0; Fe.length; )
|
|
223
223
|
Fe.pop()();
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
224
|
+
for (let t = 0; t < X.length; t += 1) {
|
|
225
|
+
const r = X[t];
|
|
226
226
|
Pe.has(r) || (Pe.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
} while (
|
|
228
|
+
X.length = 0;
|
|
229
|
+
} while (j.length);
|
|
230
230
|
for (; st.length; )
|
|
231
231
|
st.pop()();
|
|
232
|
-
|
|
232
|
+
ze = !1, Pe.clear(), ie(e);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ar(e) {
|
|
235
235
|
if (e.fragment !== null) {
|
|
236
|
-
e.update(),
|
|
236
|
+
e.update(), le(e.before_update);
|
|
237
237
|
const t = e.dirty;
|
|
238
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
238
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Ir(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
244
244
|
}
|
|
245
245
|
const ye = /* @__PURE__ */ new Set();
|
|
246
|
-
let
|
|
247
|
-
function
|
|
246
|
+
let Br;
|
|
247
|
+
function re(e, t) {
|
|
248
248
|
e && e.i && (ye.delete(e), e.i(t));
|
|
249
249
|
}
|
|
250
250
|
function be(e, t, r, n) {
|
|
251
251
|
if (e && e.o) {
|
|
252
252
|
if (ye.has(e))
|
|
253
253
|
return;
|
|
254
|
-
ye.add(e),
|
|
254
|
+
ye.add(e), Br.c.push(() => {
|
|
255
255
|
ye.delete(e);
|
|
256
256
|
}), e.o(t);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Hr(e, t, r) {
|
|
260
260
|
const { fragment: n, after_update: i } = e.$$;
|
|
261
|
-
n && n.m(t, r),
|
|
261
|
+
n && n.m(t, r), $e(() => {
|
|
262
262
|
const a = e.$$.on_mount.map(Ht).filter(Ze);
|
|
263
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
264
|
-
}), i.forEach(
|
|
263
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : le(a), e.$$.on_mount = [];
|
|
264
|
+
}), i.forEach($e);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Cr(e, t) {
|
|
267
267
|
const r = e.$$;
|
|
268
|
-
r.fragment !== null && (
|
|
268
|
+
r.fragment !== null && (Ir(r.after_update), le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
e.$$.dirty[0] === -1 && (
|
|
270
|
+
function Lr(e, t) {
|
|
271
|
+
e.$$.dirty[0] === -1 && (j.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const u =
|
|
275
|
-
|
|
273
|
+
function Pr(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
274
|
+
const u = ae;
|
|
275
|
+
ie(e);
|
|
276
276
|
const l = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
@@ -296,18 +296,18 @@ function Lr(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
|
296
296
|
};
|
|
297
297
|
s && s(l.root);
|
|
298
298
|
let c = !1;
|
|
299
|
-
if (l.ctx = r ? r(e, t.props || {}, (h, d, ...
|
|
300
|
-
const
|
|
301
|
-
return l.ctx && i(l.ctx[h], l.ctx[h] =
|
|
302
|
-
}) : [], l.update(), c = !0,
|
|
299
|
+
if (l.ctx = r ? r(e, t.props || {}, (h, d, ...v) => {
|
|
300
|
+
const m = v.length ? v[0] : d;
|
|
301
|
+
return l.ctx && i(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c && Lr(e, h)), d;
|
|
302
|
+
}) : [], l.update(), c = !0, le(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
303
303
|
if (t.hydrate) {
|
|
304
|
-
const h =
|
|
304
|
+
const h = _r(t.target);
|
|
305
305
|
l.fragment && l.fragment.l(h), h.forEach(S);
|
|
306
306
|
} else
|
|
307
307
|
l.fragment && l.fragment.c();
|
|
308
|
-
t.intro &&
|
|
308
|
+
t.intro && re(e.$$.fragment), Hr(e, t.target, t.anchor), L();
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
ie(u);
|
|
311
311
|
}
|
|
312
312
|
let Ot;
|
|
313
313
|
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
371
371
|
};
|
|
372
372
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
373
373
|
return;
|
|
374
|
-
const r = {}, n =
|
|
374
|
+
const r = {}, n = xr(this);
|
|
375
375
|
for (const a of this.$$s)
|
|
376
376
|
a in n && (r[a] = [t(a)]);
|
|
377
377
|
for (const a of this.attributes) {
|
|
@@ -460,7 +460,7 @@ function Ee(e, t, r, n) {
|
|
|
460
460
|
return t;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Or(e, t, r, n, i, a) {
|
|
464
464
|
let s = class extends Ot {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -491,7 +491,7 @@ function Pr(e, t, r, n, i, a) {
|
|
|
491
491
|
}), e.element = /** @type {any} */
|
|
492
492
|
s, s;
|
|
493
493
|
}
|
|
494
|
-
class
|
|
494
|
+
class Mr {
|
|
495
495
|
constructor() {
|
|
496
496
|
/**
|
|
497
497
|
* ### PRIVATE API
|
|
@@ -512,7 +512,7 @@ class Or {
|
|
|
512
512
|
}
|
|
513
513
|
/** @returns {void} */
|
|
514
514
|
$destroy() {
|
|
515
|
-
|
|
515
|
+
Cr(this, 1), this.$destroy = O;
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
518
518
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -534,19 +534,19 @@ class Or {
|
|
|
534
534
|
* @returns {void}
|
|
535
535
|
*/
|
|
536
536
|
$set(t) {
|
|
537
|
-
this.$$set && !
|
|
537
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
const
|
|
541
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
542
|
-
const
|
|
543
|
-
function
|
|
540
|
+
const Dr = "4";
|
|
541
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
542
|
+
const V = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
543
|
+
function Nr(e, t) {
|
|
544
544
|
if (e) {
|
|
545
545
|
const r = document.createElement("style");
|
|
546
546
|
r.innerHTML = t, e.appendChild(r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Rr(e, t) {
|
|
550
550
|
if (!e || !t)
|
|
551
551
|
return;
|
|
552
552
|
const r = new URL(t);
|
|
@@ -557,32 +557,32 @@ function Nr(e, t) {
|
|
|
557
557
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Ur(e, t, r, n = !1) {
|
|
561
561
|
if (!window.emMessageBus)
|
|
562
562
|
return;
|
|
563
563
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
564
|
-
return r =
|
|
565
|
-
window[
|
|
564
|
+
return r = Fr(e, t), r;
|
|
565
|
+
window[V] || (window[V] = {}), r = zr(e, t);
|
|
566
566
|
const a = r.unsubscribe.bind(r), s = () => {
|
|
567
|
-
if (window[
|
|
568
|
-
const o = window[
|
|
569
|
-
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[
|
|
567
|
+
if (window[V][t]) {
|
|
568
|
+
const o = window[V][t];
|
|
569
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[V][t];
|
|
570
570
|
}
|
|
571
571
|
a();
|
|
572
572
|
};
|
|
573
573
|
return r.unsubscribe = s, r;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Fr(e, t) {
|
|
576
576
|
const r = document.createElement("style");
|
|
577
577
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
578
578
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function zr(e, t) {
|
|
582
582
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
583
583
|
if (!e)
|
|
584
584
|
return;
|
|
585
|
-
const n = e.getRootNode(), i = window[
|
|
585
|
+
const n = e.getRootNode(), i = window[V];
|
|
586
586
|
let a = i[t] && i[t].sheet;
|
|
587
587
|
a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
|
|
588
588
|
sheet: a,
|
|
@@ -592,7 +592,7 @@ function Fr(e, t) {
|
|
|
592
592
|
s.includes(a) || (n.adoptedStyleSheets = [...s, a]);
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
const
|
|
595
|
+
const G = [];
|
|
596
596
|
function $r(e, t) {
|
|
597
597
|
return {
|
|
598
598
|
subscribe: Ae(e, t).subscribe
|
|
@@ -603,13 +603,13 @@ function Ae(e, t = O) {
|
|
|
603
603
|
const n = /* @__PURE__ */ new Set();
|
|
604
604
|
function i(o) {
|
|
605
605
|
if (Ct(e, o) && (e = o, r)) {
|
|
606
|
-
const u = !
|
|
606
|
+
const u = !G.length;
|
|
607
607
|
for (const l of n)
|
|
608
|
-
l[1](),
|
|
608
|
+
l[1](), G.push(l, e);
|
|
609
609
|
if (u) {
|
|
610
|
-
for (let l = 0; l <
|
|
611
|
-
|
|
612
|
-
|
|
610
|
+
for (let l = 0; l < G.length; l += 2)
|
|
611
|
+
G[l][0](G[l + 1]);
|
|
612
|
+
G.length = 0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
}
|
|
@@ -624,7 +624,7 @@ function Ae(e, t = O) {
|
|
|
624
624
|
}
|
|
625
625
|
return { set: i, update: a, subscribe: s };
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Q(e, t, r) {
|
|
628
628
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
629
629
|
if (!i.every(Boolean))
|
|
630
630
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -637,11 +637,11 @@ function Y(e, t, r) {
|
|
|
637
637
|
if (c)
|
|
638
638
|
return;
|
|
639
639
|
h();
|
|
640
|
-
const
|
|
641
|
-
a ? s(
|
|
642
|
-
},
|
|
643
|
-
(
|
|
644
|
-
|
|
640
|
+
const m = t(n ? l[0] : l, s, o);
|
|
641
|
+
a ? s(m) : h = Ze(m) ? m : O;
|
|
642
|
+
}, v = i.map(
|
|
643
|
+
(m, x) => Lt(
|
|
644
|
+
m,
|
|
645
645
|
(k) => {
|
|
646
646
|
l[x] = k, c &= ~(1 << x), u && d();
|
|
647
647
|
},
|
|
@@ -651,51 +651,51 @@ function Y(e, t, r) {
|
|
|
651
651
|
)
|
|
652
652
|
);
|
|
653
653
|
return u = !0, d(), function() {
|
|
654
|
-
|
|
654
|
+
le(v), h(), u = !1;
|
|
655
655
|
};
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Gr(e) {
|
|
659
659
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
return
|
|
661
|
+
var jr = function(t) {
|
|
662
|
+
return Vr(t) && !Wr(t);
|
|
663
663
|
};
|
|
664
|
-
function
|
|
664
|
+
function Vr(e) {
|
|
665
665
|
return !!e && typeof e == "object";
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Wr(e) {
|
|
668
668
|
var t = Object.prototype.toString.call(e);
|
|
669
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
670
|
-
}
|
|
671
|
-
var Wr = typeof Symbol == "function" && Symbol.for, Xr = Wr ? Symbol.for("react.element") : 60103;
|
|
672
|
-
function qr(e) {
|
|
673
|
-
return e.$$typeof === Xr;
|
|
669
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
674
670
|
}
|
|
671
|
+
var Xr = typeof Symbol == "function" && Symbol.for, qr = Xr ? Symbol.for("react.element") : 60103;
|
|
675
672
|
function Jr(e) {
|
|
673
|
+
return e.$$typeof === qr;
|
|
674
|
+
}
|
|
675
|
+
function Kr(e) {
|
|
676
676
|
return Array.isArray(e) ? [] : {};
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
678
|
+
function se(e, t) {
|
|
679
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(Kr(e), e, t) : e;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Zr(e, t, r) {
|
|
682
682
|
return e.concat(t).map(function(n) {
|
|
683
|
-
return
|
|
683
|
+
return se(n, r);
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function Yr(e, t) {
|
|
687
687
|
if (!t.customMerge)
|
|
688
|
-
return
|
|
688
|
+
return J;
|
|
689
689
|
var r = t.customMerge(e);
|
|
690
|
-
return typeof r == "function" ? r :
|
|
690
|
+
return typeof r == "function" ? r : J;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Qr(e) {
|
|
693
693
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
694
694
|
return Object.propertyIsEnumerable.call(e, t);
|
|
695
695
|
}) : [];
|
|
696
696
|
}
|
|
697
697
|
function ot(e) {
|
|
698
|
-
return Object.keys(e).concat(
|
|
698
|
+
return Object.keys(e).concat(Qr(e));
|
|
699
699
|
}
|
|
700
700
|
function Mt(e, t) {
|
|
701
701
|
try {
|
|
@@ -704,31 +704,31 @@ function Mt(e, t) {
|
|
|
704
704
|
return !1;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function en(e, t) {
|
|
708
708
|
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function tn(e, t, r) {
|
|
711
711
|
var n = {};
|
|
712
712
|
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
713
|
-
n[i] =
|
|
713
|
+
n[i] = se(e[i], r);
|
|
714
714
|
}), ot(t).forEach(function(i) {
|
|
715
|
-
|
|
715
|
+
en(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
716
716
|
}), n;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
718
|
+
function J(e, t, r) {
|
|
719
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Zr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = se;
|
|
720
720
|
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
721
|
-
return a ? n ? r.arrayMerge(e, t, r) :
|
|
721
|
+
return a ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : se(t, r);
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
J.all = function(t, r) {
|
|
724
724
|
if (!Array.isArray(t))
|
|
725
725
|
throw new Error("first argument should be an array");
|
|
726
726
|
return t.reduce(function(n, i) {
|
|
727
|
-
return
|
|
727
|
+
return J(n, i, r);
|
|
728
728
|
}, {});
|
|
729
729
|
};
|
|
730
|
-
var
|
|
731
|
-
const
|
|
730
|
+
var rn = J, nn = rn;
|
|
731
|
+
const an = /* @__PURE__ */ Gr(nn);
|
|
732
732
|
var Ge = function(e, t) {
|
|
733
733
|
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
734
734
|
r.__proto__ = n;
|
|
@@ -746,17 +746,17 @@ function Ie(e, t) {
|
|
|
746
746
|
}
|
|
747
747
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
748
748
|
}
|
|
749
|
-
var
|
|
750
|
-
return
|
|
749
|
+
var P = function() {
|
|
750
|
+
return P = Object.assign || function(t) {
|
|
751
751
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
752
752
|
r = arguments[n];
|
|
753
753
|
for (var a in r)
|
|
754
754
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
755
755
|
}
|
|
756
756
|
return t;
|
|
757
|
-
},
|
|
757
|
+
}, P.apply(this, arguments);
|
|
758
758
|
};
|
|
759
|
-
function
|
|
759
|
+
function sn(e, t) {
|
|
760
760
|
var r = {};
|
|
761
761
|
for (var n in e)
|
|
762
762
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -772,17 +772,17 @@ function Oe(e, t, r) {
|
|
|
772
772
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
773
773
|
}
|
|
774
774
|
function Me(e, t) {
|
|
775
|
-
var r = t && t.cache ? t.cache :
|
|
775
|
+
var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : hn, i = t && t.strategy ? t.strategy : un;
|
|
776
776
|
return i(e, {
|
|
777
777
|
cache: r,
|
|
778
778
|
serializer: n
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function on(e) {
|
|
782
782
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
var i =
|
|
784
|
+
function ln(e, t, r, n) {
|
|
785
|
+
var i = on(n) ? n : r(n), a = t.get(i);
|
|
786
786
|
return typeof a == "undefined" && (a = e.call(this, n), t.set(i, a)), a;
|
|
787
787
|
}
|
|
788
788
|
function Dt(e, t, r) {
|
|
@@ -792,16 +792,16 @@ function Dt(e, t, r) {
|
|
|
792
792
|
function Nt(e, t, r, n, i) {
|
|
793
793
|
return r.bind(t, e, n, i);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
var r = e.length === 1 ?
|
|
795
|
+
function un(e, t) {
|
|
796
|
+
var r = e.length === 1 ? ln : Dt;
|
|
797
797
|
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function cn(e, t) {
|
|
800
800
|
return Nt(e, this, Dt, t.cache.create(), t.serializer);
|
|
801
801
|
}
|
|
802
|
-
var
|
|
802
|
+
var hn = function() {
|
|
803
803
|
return JSON.stringify(arguments);
|
|
804
|
-
},
|
|
804
|
+
}, dn = (
|
|
805
805
|
/** @class */
|
|
806
806
|
function() {
|
|
807
807
|
function e() {
|
|
@@ -813,12 +813,12 @@ var cn = function() {
|
|
|
813
813
|
this.cache[t] = r;
|
|
814
814
|
}, e;
|
|
815
815
|
}()
|
|
816
|
-
),
|
|
816
|
+
), fn = {
|
|
817
817
|
create: function() {
|
|
818
|
-
return new
|
|
818
|
+
return new dn();
|
|
819
819
|
}
|
|
820
820
|
}, De = {
|
|
821
|
-
variadic:
|
|
821
|
+
variadic: cn
|
|
822
822
|
}, Te = function() {
|
|
823
823
|
return Te = Object.assign || function(t) {
|
|
824
824
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -829,22 +829,22 @@ var cn = function() {
|
|
|
829
829
|
return t;
|
|
830
830
|
}, Te.apply(this, arguments);
|
|
831
831
|
};
|
|
832
|
-
var
|
|
832
|
+
var p;
|
|
833
833
|
(function(e) {
|
|
834
834
|
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";
|
|
835
|
-
})(
|
|
835
|
+
})(p || (p = {}));
|
|
836
836
|
var E;
|
|
837
837
|
(function(e) {
|
|
838
838
|
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";
|
|
839
839
|
})(E || (E = {}));
|
|
840
|
-
var
|
|
840
|
+
var K;
|
|
841
841
|
(function(e) {
|
|
842
842
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
843
|
-
})(
|
|
843
|
+
})(K || (K = {}));
|
|
844
844
|
function lt(e) {
|
|
845
845
|
return e.type === E.literal;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function mn(e) {
|
|
848
848
|
return e.type === E.argument;
|
|
849
849
|
}
|
|
850
850
|
function Rt(e) {
|
|
@@ -856,28 +856,28 @@ function Ut(e) {
|
|
|
856
856
|
function Ft(e) {
|
|
857
857
|
return e.type === E.time;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function zt(e) {
|
|
860
860
|
return e.type === E.select;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function $t(e) {
|
|
863
863
|
return e.type === E.plural;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function gn(e) {
|
|
866
866
|
return e.type === E.pound;
|
|
867
867
|
}
|
|
868
868
|
function Gt(e) {
|
|
869
869
|
return e.type === E.tag;
|
|
870
870
|
}
|
|
871
871
|
function jt(e) {
|
|
872
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
872
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
873
873
|
}
|
|
874
874
|
function je(e) {
|
|
875
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
875
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
876
876
|
}
|
|
877
|
-
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
878
|
-
function
|
|
877
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
|
|
878
|
+
function bn(e) {
|
|
879
879
|
var t = {};
|
|
880
|
-
return e.replace(
|
|
880
|
+
return e.replace(pn, function(r) {
|
|
881
881
|
var n = r.length;
|
|
882
882
|
switch (r[0]) {
|
|
883
883
|
case "G":
|
|
@@ -976,11 +976,11 @@ var _ = function() {
|
|
|
976
976
|
return t;
|
|
977
977
|
}, _.apply(this, arguments);
|
|
978
978
|
};
|
|
979
|
-
var
|
|
980
|
-
function
|
|
979
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
980
|
+
function yn(e) {
|
|
981
981
|
if (e.length === 0)
|
|
982
982
|
throw new Error("Number skeleton cannot be empty");
|
|
983
|
-
for (var t = e.split(
|
|
983
|
+
for (var t = e.split(vn).filter(function(d) {
|
|
984
984
|
return d.length > 0;
|
|
985
985
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
986
986
|
var a = i[n], s = a.split("/");
|
|
@@ -995,10 +995,10 @@ function vn(e) {
|
|
|
995
995
|
}
|
|
996
996
|
return r;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function En(e) {
|
|
999
999
|
return e.replace(/^(.*?)-/, "");
|
|
1000
1000
|
}
|
|
1001
|
-
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1001
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
1002
1002
|
function ct(e) {
|
|
1003
1003
|
var t = {};
|
|
1004
1004
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
@@ -1045,7 +1045,7 @@ function qt(e) {
|
|
|
1045
1045
|
};
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function xn(e) {
|
|
1049
1049
|
var t;
|
|
1050
1050
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1051
1051
|
notation: "engineering"
|
|
@@ -1063,7 +1063,7 @@ function ht(e) {
|
|
|
1063
1063
|
var t = {}, r = qt(e);
|
|
1064
1064
|
return r || t;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Tn(e) {
|
|
1067
1067
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1068
1068
|
var i = n[r];
|
|
1069
1069
|
switch (i.stem) {
|
|
@@ -1087,7 +1087,7 @@ function xn(e) {
|
|
|
1087
1087
|
continue;
|
|
1088
1088
|
case "measure-unit":
|
|
1089
1089
|
case "unit":
|
|
1090
|
-
t.style = "unit", t.unit =
|
|
1090
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1091
1091
|
continue;
|
|
1092
1092
|
case "compact-short":
|
|
1093
1093
|
case "K":
|
|
@@ -1149,13 +1149,13 @@ function xn(e) {
|
|
|
1149
1149
|
case "integer-width":
|
|
1150
1150
|
if (i.options.length > 1)
|
|
1151
1151
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1152
|
-
i.options[0].replace(
|
|
1152
|
+
i.options[0].replace(_n, function(u, l, c, h, d, v) {
|
|
1153
1153
|
if (l)
|
|
1154
1154
|
t.minimumIntegerDigits = c.length;
|
|
1155
1155
|
else {
|
|
1156
1156
|
if (h && d)
|
|
1157
1157
|
throw new Error("We currently do not support maximum integer digits");
|
|
1158
|
-
if (
|
|
1158
|
+
if (v)
|
|
1159
1159
|
throw new Error("We currently do not support exact integer digits");
|
|
1160
1160
|
}
|
|
1161
1161
|
return "";
|
|
@@ -1169,8 +1169,8 @@ function xn(e) {
|
|
|
1169
1169
|
if (ut.test(i.stem)) {
|
|
1170
1170
|
if (i.options.length > 1)
|
|
1171
1171
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1172
|
-
i.stem.replace(ut, function(u, l, c, h, d,
|
|
1173
|
-
return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d &&
|
|
1172
|
+
i.stem.replace(ut, function(u, l, c, h, d, v) {
|
|
1173
|
+
return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && v ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + v.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1174
1174
|
});
|
|
1175
1175
|
var a = i.options[0];
|
|
1176
1176
|
a === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = _(_({}, t), ct(a)));
|
|
@@ -1182,7 +1182,7 @@ function xn(e) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
var s = qt(i.stem);
|
|
1184
1184
|
s && (t = _(_({}, t), s));
|
|
1185
|
-
var o =
|
|
1185
|
+
var o = xn(i.stem);
|
|
1186
1186
|
o && (t = _(_({}, t), o));
|
|
1187
1187
|
}
|
|
1188
1188
|
return t;
|
|
@@ -2602,13 +2602,13 @@ var ve = {
|
|
|
2602
2602
|
"h"
|
|
2603
2603
|
]
|
|
2604
2604
|
};
|
|
2605
|
-
function
|
|
2605
|
+
function kn(e, t) {
|
|
2606
2606
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2607
2607
|
var i = e.charAt(n);
|
|
2608
2608
|
if (i === "j") {
|
|
2609
2609
|
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2610
2610
|
a++, n++;
|
|
2611
|
-
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), u = "a", l =
|
|
2611
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), u = "a", l = wn(t);
|
|
2612
2612
|
for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
|
|
2613
2613
|
r += u;
|
|
2614
2614
|
for (; s-- > 0; )
|
|
@@ -2618,7 +2618,7 @@ function Tn(e, t) {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
return r;
|
|
2620
2620
|
}
|
|
2621
|
-
function
|
|
2621
|
+
function wn(e) {
|
|
2622
2622
|
var t = e.hourCycle;
|
|
2623
2623
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2624
2624
|
e.hourCycles && // @ts-ignore
|
|
@@ -2640,20 +2640,20 @@ function kn(e) {
|
|
|
2640
2640
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2641
2641
|
return i[0];
|
|
2642
2642
|
}
|
|
2643
|
-
var Ne,
|
|
2644
|
-
function
|
|
2643
|
+
var Ne, Sn = new RegExp("^".concat(Vt.source, "*")), An = new RegExp("".concat(Vt.source, "*$"));
|
|
2644
|
+
function b(e, t) {
|
|
2645
2645
|
return { start: e, end: t };
|
|
2646
2646
|
}
|
|
2647
|
-
var
|
|
2647
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bn = !!String.fromCodePoint, Hn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, Mn = On ? Number.isSafeInteger : function(e) {
|
|
2648
2648
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2649
2649
|
}, Ve = !0;
|
|
2650
2650
|
try {
|
|
2651
|
-
var
|
|
2652
|
-
Ve = ((Ne =
|
|
2651
|
+
var Dn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2652
|
+
Ve = ((Ne = Dn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2653
2653
|
} catch (e) {
|
|
2654
2654
|
Ve = !1;
|
|
2655
2655
|
}
|
|
2656
|
-
var dt =
|
|
2656
|
+
var dt = In ? (
|
|
2657
2657
|
// Native
|
|
2658
2658
|
function(t, r, n) {
|
|
2659
2659
|
return t.startsWith(r, n);
|
|
@@ -2663,7 +2663,7 @@ var dt = An ? (
|
|
|
2663
2663
|
function(t, r, n) {
|
|
2664
2664
|
return t.slice(n, n + r.length) === r;
|
|
2665
2665
|
}
|
|
2666
|
-
), We =
|
|
2666
|
+
), We = Bn ? String.fromCodePoint : (
|
|
2667
2667
|
// IE11
|
|
2668
2668
|
function() {
|
|
2669
2669
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2677,7 +2677,7 @@ var dt = An ? (
|
|
|
2677
2677
|
}
|
|
2678
2678
|
), ft = (
|
|
2679
2679
|
// native
|
|
2680
|
-
|
|
2680
|
+
Hn ? Object.fromEntries : (
|
|
2681
2681
|
// Ponyfill
|
|
2682
2682
|
function(t) {
|
|
2683
2683
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2687,7 +2687,7 @@ var dt = An ? (
|
|
|
2687
2687
|
return r;
|
|
2688
2688
|
}
|
|
2689
2689
|
)
|
|
2690
|
-
), Jt =
|
|
2690
|
+
), Jt = Cn ? (
|
|
2691
2691
|
// Native
|
|
2692
2692
|
function(t, r) {
|
|
2693
2693
|
return t.codePointAt(r);
|
|
@@ -2701,7 +2701,7 @@ var dt = An ? (
|
|
|
2701
2701
|
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
|
-
),
|
|
2704
|
+
), Nn = Ln ? (
|
|
2705
2705
|
// Native
|
|
2706
2706
|
function(t) {
|
|
2707
2707
|
return t.trimStart();
|
|
@@ -2709,9 +2709,9 @@ var dt = An ? (
|
|
|
2709
2709
|
) : (
|
|
2710
2710
|
// Ponyfill
|
|
2711
2711
|
function(t) {
|
|
2712
|
-
return t.replace(
|
|
2712
|
+
return t.replace(Sn, "");
|
|
2713
2713
|
}
|
|
2714
|
-
),
|
|
2714
|
+
), Rn = Pn ? (
|
|
2715
2715
|
// Native
|
|
2716
2716
|
function(t) {
|
|
2717
2717
|
return t.trimEnd();
|
|
@@ -2719,7 +2719,7 @@ var dt = An ? (
|
|
|
2719
2719
|
) : (
|
|
2720
2720
|
// Ponyfill
|
|
2721
2721
|
function(t) {
|
|
2722
|
-
return t.replace(
|
|
2722
|
+
return t.replace(An, "");
|
|
2723
2723
|
}
|
|
2724
2724
|
);
|
|
2725
2725
|
function Kt(e, t) {
|
|
@@ -2744,7 +2744,7 @@ if (Ve) {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
return We.apply(void 0, n);
|
|
2746
2746
|
};
|
|
2747
|
-
var
|
|
2747
|
+
var Un = (
|
|
2748
2748
|
/** @class */
|
|
2749
2749
|
function() {
|
|
2750
2750
|
function e(t, r) {
|
|
@@ -2769,12 +2769,12 @@ var Rn = (
|
|
|
2769
2769
|
var o = this.clonePosition();
|
|
2770
2770
|
this.bump(), i.push({
|
|
2771
2771
|
type: E.pound,
|
|
2772
|
-
location:
|
|
2772
|
+
location: b(o, this.clonePosition())
|
|
2773
2773
|
});
|
|
2774
2774
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2775
2775
|
if (n)
|
|
2776
2776
|
break;
|
|
2777
|
-
return this.error(
|
|
2777
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2778
2778
|
} else if (a === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
2779
2779
|
var s = this.parseTag(t, r);
|
|
2780
2780
|
if (s.err)
|
|
@@ -2798,7 +2798,7 @@ var Rn = (
|
|
|
2798
2798
|
val: {
|
|
2799
2799
|
type: E.literal,
|
|
2800
2800
|
value: "<".concat(i, "/>"),
|
|
2801
|
-
location:
|
|
2801
|
+
location: b(n, this.clonePosition())
|
|
2802
2802
|
},
|
|
2803
2803
|
err: null
|
|
2804
2804
|
};
|
|
@@ -2809,24 +2809,24 @@ var Rn = (
|
|
|
2809
2809
|
var s = a.val, o = this.clonePosition();
|
|
2810
2810
|
if (this.bumpIf("</")) {
|
|
2811
2811
|
if (this.isEOF() || !qe(this.char()))
|
|
2812
|
-
return this.error(
|
|
2812
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2813
2813
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2814
|
-
return i !== l ? this.error(
|
|
2814
|
+
return i !== l ? this.error(p.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2815
2815
|
val: {
|
|
2816
2816
|
type: E.tag,
|
|
2817
2817
|
value: i,
|
|
2818
2818
|
children: s,
|
|
2819
|
-
location:
|
|
2819
|
+
location: b(n, this.clonePosition())
|
|
2820
2820
|
},
|
|
2821
2821
|
err: null
|
|
2822
|
-
} : this.error(
|
|
2822
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2823
2823
|
} else
|
|
2824
|
-
return this.error(
|
|
2824
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2825
2825
|
} else
|
|
2826
|
-
return this.error(
|
|
2826
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2827
2827
|
}, e.prototype.parseTagName = function() {
|
|
2828
2828
|
var t = this.offset();
|
|
2829
|
-
for (this.bump(); !this.isEOF() &&
|
|
2829
|
+
for (this.bump(); !this.isEOF() && zn(this.char()); )
|
|
2830
2830
|
this.bump();
|
|
2831
2831
|
return this.message.slice(t, this.offset());
|
|
2832
2832
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2848,14 +2848,14 @@ var Rn = (
|
|
|
2848
2848
|
}
|
|
2849
2849
|
break;
|
|
2850
2850
|
}
|
|
2851
|
-
var u =
|
|
2851
|
+
var u = b(n, this.clonePosition());
|
|
2852
2852
|
return {
|
|
2853
2853
|
val: { type: E.literal, value: i, location: u },
|
|
2854
2854
|
err: null
|
|
2855
2855
|
};
|
|
2856
2856
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2857
2857
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2858
|
-
!
|
|
2858
|
+
!Fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2859
2859
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2860
2860
|
if (this.isEOF() || this.char() !== 39)
|
|
2861
2861
|
return null;
|
|
@@ -2898,14 +2898,14 @@ var Rn = (
|
|
|
2898
2898
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2899
2899
|
var n = this.clonePosition();
|
|
2900
2900
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2901
|
-
return this.error(
|
|
2901
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2902
2902
|
if (this.char() === 125)
|
|
2903
|
-
return this.bump(), this.error(
|
|
2903
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2904
2904
|
var i = this.parseIdentifierIfPossible().value;
|
|
2905
2905
|
if (!i)
|
|
2906
|
-
return this.error(
|
|
2906
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2907
2907
|
if (this.bumpSpace(), this.isEOF())
|
|
2908
|
-
return this.error(
|
|
2908
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2909
2909
|
switch (this.char()) {
|
|
2910
2910
|
case 125:
|
|
2911
2911
|
return this.bump(), {
|
|
@@ -2913,25 +2913,25 @@ var Rn = (
|
|
|
2913
2913
|
type: E.argument,
|
|
2914
2914
|
// value does not include the opening and closing braces.
|
|
2915
2915
|
value: i,
|
|
2916
|
-
location:
|
|
2916
|
+
location: b(n, this.clonePosition())
|
|
2917
2917
|
},
|
|
2918
2918
|
err: null
|
|
2919
2919
|
};
|
|
2920
2920
|
case 44:
|
|
2921
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2921
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2922
2922
|
default:
|
|
2923
|
-
return this.error(
|
|
2923
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2924
2924
|
}
|
|
2925
2925
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2926
2926
|
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
2927
2927
|
this.bumpTo(i);
|
|
2928
|
-
var a = this.clonePosition(), s =
|
|
2928
|
+
var a = this.clonePosition(), s = b(t, a);
|
|
2929
2929
|
return { value: n, location: s };
|
|
2930
2930
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2931
2931
|
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2932
2932
|
switch (o) {
|
|
2933
2933
|
case "":
|
|
2934
|
-
return this.error(
|
|
2934
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(s, u));
|
|
2935
2935
|
case "number":
|
|
2936
2936
|
case "date":
|
|
2937
2937
|
case "time": {
|
|
@@ -2942,18 +2942,18 @@ var Rn = (
|
|
|
2942
2942
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2943
2943
|
if (h.err)
|
|
2944
2944
|
return h;
|
|
2945
|
-
var d =
|
|
2945
|
+
var d = Rn(h.val);
|
|
2946
2946
|
if (d.length === 0)
|
|
2947
|
-
return this.error(
|
|
2948
|
-
var
|
|
2949
|
-
l = { style: d, styleLocation:
|
|
2947
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2948
|
+
var v = b(c, this.clonePosition());
|
|
2949
|
+
l = { style: d, styleLocation: v };
|
|
2950
2950
|
}
|
|
2951
|
-
var
|
|
2952
|
-
if (
|
|
2953
|
-
return
|
|
2954
|
-
var x =
|
|
2951
|
+
var m = this.tryParseArgumentClose(i);
|
|
2952
|
+
if (m.err)
|
|
2953
|
+
return m;
|
|
2954
|
+
var x = b(i, this.clonePosition());
|
|
2955
2955
|
if (l && dt(l == null ? void 0 : l.style, "::", 0)) {
|
|
2956
|
-
var k =
|
|
2956
|
+
var k = Nn(l.style.slice(2));
|
|
2957
2957
|
if (o === "number") {
|
|
2958
2958
|
var h = this.parseNumberSkeletonFromString(k, l.styleLocation);
|
|
2959
2959
|
return h.err ? h : {
|
|
@@ -2962,14 +2962,14 @@ var Rn = (
|
|
|
2962
2962
|
};
|
|
2963
2963
|
} else {
|
|
2964
2964
|
if (k.length === 0)
|
|
2965
|
-
return this.error(
|
|
2965
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, x);
|
|
2966
2966
|
var T = k;
|
|
2967
|
-
this.locale && (T =
|
|
2967
|
+
this.locale && (T = kn(k, this.locale));
|
|
2968
2968
|
var d = {
|
|
2969
|
-
type:
|
|
2969
|
+
type: K.dateTime,
|
|
2970
2970
|
pattern: T,
|
|
2971
2971
|
location: l.styleLocation,
|
|
2972
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2972
|
+
parsedOptions: this.shouldParseSkeletons ? bn(T) : {}
|
|
2973
2973
|
}, f = o === "date" ? E.date : E.time;
|
|
2974
2974
|
return {
|
|
2975
2975
|
val: { type: f, value: n, location: x, style: d },
|
|
@@ -2992,50 +2992,50 @@ var Rn = (
|
|
|
2992
2992
|
case "select": {
|
|
2993
2993
|
var y = this.clonePosition();
|
|
2994
2994
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2995
|
-
return this.error(
|
|
2995
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(y, Te({}, y)));
|
|
2996
2996
|
this.bumpSpace();
|
|
2997
|
-
var
|
|
2998
|
-
if (o !== "select" &&
|
|
2997
|
+
var U = this.parseIdentifierIfPossible(), C = 0;
|
|
2998
|
+
if (o !== "select" && U.value === "offset") {
|
|
2999
2999
|
if (!this.bumpIf(":"))
|
|
3000
|
-
return this.error(
|
|
3000
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3001
3001
|
this.bumpSpace();
|
|
3002
|
-
var h = this.tryParseDecimalInteger(
|
|
3002
|
+
var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3003
3003
|
if (h.err)
|
|
3004
3004
|
return h;
|
|
3005
|
-
this.bumpSpace(),
|
|
3005
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), C = h.val;
|
|
3006
3006
|
}
|
|
3007
|
-
var
|
|
3007
|
+
var z = this.tryParsePluralOrSelectOptions(t, o, r, U);
|
|
3008
|
+
if (z.err)
|
|
3009
|
+
return z;
|
|
3010
|
+
var m = this.tryParseArgumentClose(i);
|
|
3008
3011
|
if (m.err)
|
|
3009
3012
|
return m;
|
|
3010
|
-
var
|
|
3011
|
-
if (p.err)
|
|
3012
|
-
return p;
|
|
3013
|
-
var ce = v(i, this.clonePosition());
|
|
3013
|
+
var g = b(i, this.clonePosition());
|
|
3014
3014
|
return o === "select" ? {
|
|
3015
3015
|
val: {
|
|
3016
3016
|
type: E.select,
|
|
3017
3017
|
value: n,
|
|
3018
|
-
options: ft(
|
|
3019
|
-
location:
|
|
3018
|
+
options: ft(z.val),
|
|
3019
|
+
location: g
|
|
3020
3020
|
},
|
|
3021
3021
|
err: null
|
|
3022
3022
|
} : {
|
|
3023
3023
|
val: {
|
|
3024
3024
|
type: E.plural,
|
|
3025
3025
|
value: n,
|
|
3026
|
-
options: ft(
|
|
3027
|
-
offset:
|
|
3026
|
+
options: ft(z.val),
|
|
3027
|
+
offset: C,
|
|
3028
3028
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3029
|
-
location:
|
|
3029
|
+
location: g
|
|
3030
3030
|
},
|
|
3031
3031
|
err: null
|
|
3032
3032
|
};
|
|
3033
3033
|
}
|
|
3034
3034
|
default:
|
|
3035
|
-
return this.error(
|
|
3035
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(s, u));
|
|
3036
3036
|
}
|
|
3037
3037
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3038
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3038
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3039
3039
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3040
3040
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3041
3041
|
var n = this.char();
|
|
@@ -3044,7 +3044,7 @@ var Rn = (
|
|
|
3044
3044
|
this.bump();
|
|
3045
3045
|
var i = this.clonePosition();
|
|
3046
3046
|
if (!this.bumpUntil("'"))
|
|
3047
|
-
return this.error(
|
|
3047
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3048
3048
|
this.bump();
|
|
3049
3049
|
break;
|
|
3050
3050
|
}
|
|
@@ -3074,16 +3074,16 @@ var Rn = (
|
|
|
3074
3074
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3075
3075
|
var n = [];
|
|
3076
3076
|
try {
|
|
3077
|
-
n =
|
|
3077
|
+
n = yn(t);
|
|
3078
3078
|
} catch (i) {
|
|
3079
|
-
return this.error(
|
|
3079
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3080
3080
|
}
|
|
3081
3081
|
return {
|
|
3082
3082
|
val: {
|
|
3083
|
-
type:
|
|
3083
|
+
type: K.number,
|
|
3084
3084
|
tokens: n,
|
|
3085
3085
|
location: r,
|
|
3086
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3086
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3087
3087
|
},
|
|
3088
3088
|
err: null
|
|
3089
3089
|
};
|
|
@@ -3092,34 +3092,34 @@ var Rn = (
|
|
|
3092
3092
|
if (l.length === 0) {
|
|
3093
3093
|
var h = this.clonePosition();
|
|
3094
3094
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3095
|
-
var d = this.tryParseDecimalInteger(
|
|
3095
|
+
var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3096
3096
|
if (d.err)
|
|
3097
3097
|
return d;
|
|
3098
|
-
c =
|
|
3098
|
+
c = b(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
3099
3099
|
} else
|
|
3100
3100
|
break;
|
|
3101
3101
|
}
|
|
3102
3102
|
if (u.has(l))
|
|
3103
|
-
return this.error(r === "select" ?
|
|
3103
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3104
3104
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3105
|
-
var
|
|
3105
|
+
var v = this.clonePosition();
|
|
3106
3106
|
if (!this.bumpIf("{"))
|
|
3107
|
-
return this.error(r === "select" ?
|
|
3108
|
-
var
|
|
3109
|
-
if (
|
|
3110
|
-
return
|
|
3111
|
-
var x = this.tryParseArgumentClose(
|
|
3107
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3108
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3109
|
+
if (m.err)
|
|
3110
|
+
return m;
|
|
3111
|
+
var x = this.tryParseArgumentClose(v);
|
|
3112
3112
|
if (x.err)
|
|
3113
3113
|
return x;
|
|
3114
3114
|
o.push([
|
|
3115
3115
|
l,
|
|
3116
3116
|
{
|
|
3117
|
-
value:
|
|
3118
|
-
location: v
|
|
3117
|
+
value: m.val,
|
|
3118
|
+
location: b(v, this.clonePosition())
|
|
3119
3119
|
}
|
|
3120
3120
|
]), u.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
|
|
3121
3121
|
}
|
|
3122
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3122
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3123
3123
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3124
3124
|
var n = 1, i = this.clonePosition();
|
|
3125
3125
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3130,8 +3130,8 @@ var Rn = (
|
|
|
3130
3130
|
else
|
|
3131
3131
|
break;
|
|
3132
3132
|
}
|
|
3133
|
-
var u =
|
|
3134
|
-
return a ? (s *= n,
|
|
3133
|
+
var u = b(i, this.clonePosition());
|
|
3134
|
+
return a ? (s *= n, Mn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3135
3135
|
}, e.prototype.offset = function() {
|
|
3136
3136
|
return this.position.offset;
|
|
3137
3137
|
}, e.prototype.isEOF = function() {
|
|
@@ -3200,10 +3200,10 @@ var Rn = (
|
|
|
3200
3200
|
function qe(e) {
|
|
3201
3201
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function Fn(e) {
|
|
3204
3204
|
return qe(e) || e === 47;
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function zn(e) {
|
|
3207
3207
|
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;
|
|
3208
3208
|
}
|
|
3209
3209
|
function Zt(e) {
|
|
@@ -3214,26 +3214,26 @@ function $n(e) {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
function Je(e) {
|
|
3216
3216
|
e.forEach(function(t) {
|
|
3217
|
-
if (delete t.location,
|
|
3217
|
+
if (delete t.location, zt(t) || $t(t))
|
|
3218
3218
|
for (var r in t.options)
|
|
3219
3219
|
delete t.options[r].location, Je(t.options[r].value);
|
|
3220
3220
|
else
|
|
3221
3221
|
Rt(t) && jt(t.style) || (Ut(t) || Ft(t)) && je(t.style) ? delete t.style.location : Gt(t) && Je(t.children);
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3224
|
+
function Gn(e, t) {
|
|
3225
3225
|
t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3226
|
-
var r = new
|
|
3226
|
+
var r = new Un(e, t).parse();
|
|
3227
3227
|
if (r.err) {
|
|
3228
|
-
var n = SyntaxError(
|
|
3228
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3229
3229
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3230
3230
|
}
|
|
3231
3231
|
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3232
3232
|
}
|
|
3233
|
-
var
|
|
3233
|
+
var Z;
|
|
3234
3234
|
(function(e) {
|
|
3235
3235
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3236
|
-
})(
|
|
3236
|
+
})(Z || (Z = {}));
|
|
3237
3237
|
var Be = (
|
|
3238
3238
|
/** @class */
|
|
3239
3239
|
function(e) {
|
|
@@ -3251,25 +3251,25 @@ var Be = (
|
|
|
3251
3251
|
function(e) {
|
|
3252
3252
|
Ie(t, e);
|
|
3253
3253
|
function t(r, n, i, a) {
|
|
3254
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3254
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, a) || this;
|
|
3255
3255
|
}
|
|
3256
3256
|
return t;
|
|
3257
3257
|
}(Be)
|
|
3258
|
-
),
|
|
3258
|
+
), jn = (
|
|
3259
3259
|
/** @class */
|
|
3260
3260
|
function(e) {
|
|
3261
3261
|
Ie(t, e);
|
|
3262
3262
|
function t(r, n, i) {
|
|
3263
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3263
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3264
3264
|
}
|
|
3265
3265
|
return t;
|
|
3266
3266
|
}(Be)
|
|
3267
|
-
),
|
|
3267
|
+
), Vn = (
|
|
3268
3268
|
/** @class */
|
|
3269
3269
|
function(e) {
|
|
3270
3270
|
Ie(t, e);
|
|
3271
3271
|
function t(r, n) {
|
|
3272
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3272
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3273
3273
|
}
|
|
3274
3274
|
return t;
|
|
3275
3275
|
}(Be)
|
|
@@ -3277,13 +3277,13 @@ var Be = (
|
|
|
3277
3277
|
(function(e) {
|
|
3278
3278
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3279
3279
|
})(w || (w = {}));
|
|
3280
|
-
function
|
|
3280
|
+
function Wn(e) {
|
|
3281
3281
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3282
3282
|
var n = t[t.length - 1];
|
|
3283
3283
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3284
3284
|
}, []);
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function Xn(e) {
|
|
3287
3287
|
return typeof e == "function";
|
|
3288
3288
|
}
|
|
3289
3289
|
function _e(e, t, r, n, i, a, s) {
|
|
@@ -3303,7 +3303,7 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3303
3303
|
});
|
|
3304
3304
|
continue;
|
|
3305
3305
|
}
|
|
3306
|
-
if (
|
|
3306
|
+
if (gn(c)) {
|
|
3307
3307
|
typeof a == "number" && o.push({
|
|
3308
3308
|
type: w.literal,
|
|
3309
3309
|
value: r.getNumberFormat(t).format(a)
|
|
@@ -3312,9 +3312,9 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3312
3312
|
}
|
|
3313
3313
|
var h = c.value;
|
|
3314
3314
|
if (!(i && h in i))
|
|
3315
|
-
throw new
|
|
3315
|
+
throw new Vn(h, s);
|
|
3316
3316
|
var d = i[h];
|
|
3317
|
-
if (
|
|
3317
|
+
if (mn(c)) {
|
|
3318
3318
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
|
|
3319
3319
|
type: typeof d == "string" ? w.literal : w.object,
|
|
3320
3320
|
value: d
|
|
@@ -3322,59 +3322,59 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3322
3322
|
continue;
|
|
3323
3323
|
}
|
|
3324
3324
|
if (Ut(c)) {
|
|
3325
|
-
var
|
|
3325
|
+
var v = typeof c.style == "string" ? n.date[c.style] : je(c.style) ? c.style.parsedOptions : void 0;
|
|
3326
3326
|
o.push({
|
|
3327
3327
|
type: w.literal,
|
|
3328
|
-
value: r.getDateTimeFormat(t,
|
|
3328
|
+
value: r.getDateTimeFormat(t, v).format(d)
|
|
3329
3329
|
});
|
|
3330
3330
|
continue;
|
|
3331
3331
|
}
|
|
3332
3332
|
if (Ft(c)) {
|
|
3333
|
-
var
|
|
3333
|
+
var v = typeof c.style == "string" ? n.time[c.style] : je(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3334
3334
|
o.push({
|
|
3335
3335
|
type: w.literal,
|
|
3336
|
-
value: r.getDateTimeFormat(t,
|
|
3336
|
+
value: r.getDateTimeFormat(t, v).format(d)
|
|
3337
3337
|
});
|
|
3338
3338
|
continue;
|
|
3339
3339
|
}
|
|
3340
3340
|
if (Rt(c)) {
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3341
|
+
var v = typeof c.style == "string" ? n.number[c.style] : jt(c.style) ? c.style.parsedOptions : void 0;
|
|
3342
|
+
v && v.scale && (d = d * (v.scale || 1)), o.push({
|
|
3343
3343
|
type: w.literal,
|
|
3344
|
-
value: r.getNumberFormat(t,
|
|
3344
|
+
value: r.getNumberFormat(t, v).format(d)
|
|
3345
3345
|
});
|
|
3346
3346
|
continue;
|
|
3347
3347
|
}
|
|
3348
3348
|
if (Gt(c)) {
|
|
3349
|
-
var
|
|
3350
|
-
if (!
|
|
3351
|
-
throw new
|
|
3352
|
-
var T = _e(
|
|
3353
|
-
return
|
|
3349
|
+
var m = c.children, x = c.value, k = i[x];
|
|
3350
|
+
if (!Xn(k))
|
|
3351
|
+
throw new jn(x, "function", s);
|
|
3352
|
+
var T = _e(m, t, r, n, i, a), f = k(T.map(function(C) {
|
|
3353
|
+
return C.value;
|
|
3354
3354
|
}));
|
|
3355
|
-
Array.isArray(f) || (f = [f]), o.push.apply(o, f.map(function(
|
|
3355
|
+
Array.isArray(f) || (f = [f]), o.push.apply(o, f.map(function(C) {
|
|
3356
3356
|
return {
|
|
3357
|
-
type: typeof
|
|
3358
|
-
value:
|
|
3357
|
+
type: typeof C == "string" ? w.literal : w.object,
|
|
3358
|
+
value: C
|
|
3359
3359
|
};
|
|
3360
3360
|
}));
|
|
3361
3361
|
}
|
|
3362
|
-
if (
|
|
3362
|
+
if (zt(c)) {
|
|
3363
3363
|
var y = c.options[d] || c.options.other;
|
|
3364
3364
|
if (!y)
|
|
3365
3365
|
throw new gt(c.value, d, Object.keys(c.options), s);
|
|
3366
3366
|
o.push.apply(o, _e(y.value, t, r, n, i));
|
|
3367
3367
|
continue;
|
|
3368
3368
|
}
|
|
3369
|
-
if (
|
|
3369
|
+
if ($t(c)) {
|
|
3370
3370
|
var y = c.options["=".concat(d)];
|
|
3371
3371
|
if (!y) {
|
|
3372
3372
|
if (!Intl.PluralRules)
|
|
3373
3373
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3374
3374
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3375
|
-
`,
|
|
3376
|
-
var
|
|
3377
|
-
y = c.options[
|
|
3375
|
+
`, Z.MISSING_INTL_API, s);
|
|
3376
|
+
var U = r.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
|
|
3377
|
+
y = c.options[U] || c.options.other;
|
|
3378
3378
|
}
|
|
3379
3379
|
if (!y)
|
|
3380
3380
|
throw new gt(c.value, d, Object.keys(c.options), s);
|
|
@@ -3382,17 +3382,17 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3382
3382
|
continue;
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
|
-
return
|
|
3385
|
+
return Wn(o);
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3388
|
-
return t ?
|
|
3389
|
-
return r[n] =
|
|
3387
|
+
function qn(e, t) {
|
|
3388
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3389
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3390
3390
|
}, {})) : e;
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function Jn(e, t) {
|
|
3393
3393
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3394
|
-
return r[n] =
|
|
3395
|
-
},
|
|
3394
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3395
|
+
}, P({}, e)) : e;
|
|
3396
3396
|
}
|
|
3397
3397
|
function Re(e) {
|
|
3398
3398
|
return {
|
|
@@ -3408,7 +3408,7 @@ function Re(e) {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
};
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Kn(e) {
|
|
3412
3412
|
return e === void 0 && (e = {
|
|
3413
3413
|
number: {},
|
|
3414
3414
|
dateTime: {},
|
|
@@ -3472,13 +3472,13 @@ var Yt = (
|
|
|
3472
3472
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3473
3473
|
var s = i || {};
|
|
3474
3474
|
s.formatters;
|
|
3475
|
-
var o =
|
|
3476
|
-
this.ast = e.__parse(t,
|
|
3475
|
+
var o = sn(s, ["formatters"]);
|
|
3476
|
+
this.ast = e.__parse(t, P(P({}, o), { locale: this.resolvedLocale }));
|
|
3477
3477
|
} else
|
|
3478
3478
|
this.ast = t;
|
|
3479
3479
|
if (!Array.isArray(this.ast))
|
|
3480
3480
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3481
|
-
this.formats =
|
|
3481
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
|
|
3482
3482
|
}
|
|
3483
3483
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3484
3484
|
get: function() {
|
|
@@ -3491,7 +3491,7 @@ var Yt = (
|
|
|
3491
3491
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3492
3492
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3493
3493
|
}
|
|
3494
|
-
}, e.__parse =
|
|
3494
|
+
}, e.__parse = Gn, e.formats = {
|
|
3495
3495
|
number: {
|
|
3496
3496
|
integer: {
|
|
3497
3497
|
maximumFractionDigits: 0
|
|
@@ -3552,7 +3552,7 @@ var Yt = (
|
|
|
3552
3552
|
}, e;
|
|
3553
3553
|
}()
|
|
3554
3554
|
);
|
|
3555
|
-
function
|
|
3555
|
+
function Zn(e, t) {
|
|
3556
3556
|
if (t == null)
|
|
3557
3557
|
return;
|
|
3558
3558
|
if (t in e)
|
|
@@ -3573,36 +3573,36 @@ function Kn(e, t) {
|
|
|
3573
3573
|
n = void 0;
|
|
3574
3574
|
return n;
|
|
3575
3575
|
}
|
|
3576
|
-
const
|
|
3576
|
+
const D = {}, Yn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Qt = (e, t) => {
|
|
3577
3577
|
if (t == null)
|
|
3578
3578
|
return;
|
|
3579
|
-
if (t in
|
|
3580
|
-
return
|
|
3581
|
-
const r =
|
|
3579
|
+
if (t in D && e in D[t])
|
|
3580
|
+
return D[t][e];
|
|
3581
|
+
const r = ce(t);
|
|
3582
3582
|
for (let n = 0; n < r.length; n++) {
|
|
3583
|
-
const i = r[n], a =
|
|
3583
|
+
const i = r[n], a = ei(i, e);
|
|
3584
3584
|
if (a)
|
|
3585
|
-
return
|
|
3585
|
+
return Yn(e, t, a);
|
|
3586
3586
|
}
|
|
3587
3587
|
};
|
|
3588
3588
|
let Qe;
|
|
3589
|
-
const
|
|
3590
|
-
function
|
|
3589
|
+
const ue = Ae({});
|
|
3590
|
+
function Qn(e) {
|
|
3591
3591
|
return Qe[e] || null;
|
|
3592
3592
|
}
|
|
3593
3593
|
function er(e) {
|
|
3594
3594
|
return e in Qe;
|
|
3595
3595
|
}
|
|
3596
|
-
function
|
|
3596
|
+
function ei(e, t) {
|
|
3597
3597
|
if (!er(e))
|
|
3598
3598
|
return null;
|
|
3599
|
-
const r =
|
|
3600
|
-
return
|
|
3599
|
+
const r = Qn(e);
|
|
3600
|
+
return Zn(r, t);
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function ti(e) {
|
|
3603
3603
|
if (e == null)
|
|
3604
3604
|
return;
|
|
3605
|
-
const t =
|
|
3605
|
+
const t = ce(e);
|
|
3606
3606
|
for (let r = 0; r < t.length; r++) {
|
|
3607
3607
|
const n = t[r];
|
|
3608
3608
|
if (er(n))
|
|
@@ -3610,64 +3610,64 @@ function ei(e) {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
function tr(e, ...t) {
|
|
3613
|
-
delete
|
|
3613
|
+
delete D[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3614
3614
|
}
|
|
3615
|
-
|
|
3616
|
-
[
|
|
3615
|
+
Q(
|
|
3616
|
+
[ue],
|
|
3617
3617
|
([e]) => Object.keys(e)
|
|
3618
3618
|
);
|
|
3619
|
-
|
|
3619
|
+
ue.subscribe((e) => Qe = e);
|
|
3620
3620
|
const xe = {};
|
|
3621
|
-
function
|
|
3621
|
+
function ri(e, t) {
|
|
3622
3622
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3623
3623
|
}
|
|
3624
3624
|
function rr(e) {
|
|
3625
3625
|
return xe[e];
|
|
3626
3626
|
}
|
|
3627
|
-
function
|
|
3628
|
-
return
|
|
3627
|
+
function ni(e) {
|
|
3628
|
+
return ce(e).map((t) => {
|
|
3629
3629
|
const r = rr(t);
|
|
3630
3630
|
return [t, r ? [...r] : []];
|
|
3631
3631
|
}).filter(([, t]) => t.length > 0);
|
|
3632
3632
|
}
|
|
3633
3633
|
function ke(e) {
|
|
3634
|
-
return e == null ? !1 :
|
|
3634
|
+
return e == null ? !1 : ce(e).some(
|
|
3635
3635
|
(t) => {
|
|
3636
3636
|
var r;
|
|
3637
3637
|
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3638
3638
|
}
|
|
3639
3639
|
);
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3641
|
+
function ii(e, t) {
|
|
3642
3642
|
return Promise.all(
|
|
3643
|
-
t.map((n) => (
|
|
3643
|
+
t.map((n) => (ri(e, n), n().then((i) => i.default || i)))
|
|
3644
3644
|
).then((n) => tr(e, ...n));
|
|
3645
3645
|
}
|
|
3646
|
-
const
|
|
3646
|
+
const te = {};
|
|
3647
3647
|
function nr(e) {
|
|
3648
3648
|
if (!ke(e))
|
|
3649
|
-
return e in
|
|
3650
|
-
const t =
|
|
3651
|
-
return
|
|
3649
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3650
|
+
const t = ni(e);
|
|
3651
|
+
return te[e] = Promise.all(
|
|
3652
3652
|
t.map(
|
|
3653
|
-
([r, n]) =>
|
|
3653
|
+
([r, n]) => ii(r, n)
|
|
3654
3654
|
)
|
|
3655
3655
|
).then(() => {
|
|
3656
3656
|
if (ke(e))
|
|
3657
3657
|
return nr(e);
|
|
3658
|
-
delete
|
|
3659
|
-
}),
|
|
3658
|
+
delete te[e];
|
|
3659
|
+
}), te[e];
|
|
3660
3660
|
}
|
|
3661
|
-
var pt = Object.getOwnPropertySymbols,
|
|
3661
|
+
var pt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, oi = (e, t) => {
|
|
3662
3662
|
var r = {};
|
|
3663
3663
|
for (var n in e)
|
|
3664
|
-
|
|
3664
|
+
ai.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3665
3665
|
if (e != null && pt)
|
|
3666
3666
|
for (var n of pt(e))
|
|
3667
|
-
t.indexOf(n) < 0 &&
|
|
3667
|
+
t.indexOf(n) < 0 && si.call(e, n) && (r[n] = e[n]);
|
|
3668
3668
|
return r;
|
|
3669
3669
|
};
|
|
3670
|
-
const
|
|
3670
|
+
const li = {
|
|
3671
3671
|
number: {
|
|
3672
3672
|
scientific: { notation: "scientific" },
|
|
3673
3673
|
engineering: { notation: "engineering" },
|
|
@@ -3697,28 +3697,28 @@ const oi = {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
3699
|
};
|
|
3700
|
-
function
|
|
3700
|
+
function ui({ locale: e, id: t }) {
|
|
3701
3701
|
console.warn(
|
|
3702
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3702
|
+
`[svelte-i18n] The message "${t}" was not found in "${ce(
|
|
3703
3703
|
e
|
|
3704
|
-
).join('", "')}".${ke(
|
|
3704
|
+
).join('", "')}".${ke(R()) ? `
|
|
3705
3705
|
|
|
3706
3706
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3707
3707
|
);
|
|
3708
3708
|
}
|
|
3709
|
-
const
|
|
3709
|
+
const ci = {
|
|
3710
3710
|
fallbackLocale: null,
|
|
3711
3711
|
loadingDelay: 200,
|
|
3712
|
-
formats:
|
|
3712
|
+
formats: li,
|
|
3713
3713
|
warnOnMissingMessages: !0,
|
|
3714
3714
|
handleMissingMessage: void 0,
|
|
3715
3715
|
ignoreTag: !0
|
|
3716
|
-
},
|
|
3717
|
-
function
|
|
3718
|
-
return
|
|
3716
|
+
}, ne = ci;
|
|
3717
|
+
function Y() {
|
|
3718
|
+
return ne;
|
|
3719
3719
|
}
|
|
3720
|
-
function
|
|
3721
|
-
const t = e, { formats: r } = t, n =
|
|
3720
|
+
function hi(e) {
|
|
3721
|
+
const t = e, { formats: r } = t, n = oi(t, ["formats"]);
|
|
3722
3722
|
let i = e.fallbackLocale;
|
|
3723
3723
|
if (e.initialLocale)
|
|
3724
3724
|
try {
|
|
@@ -3728,39 +3728,39 @@ function ci(e) {
|
|
|
3728
3728
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3729
3729
|
);
|
|
3730
3730
|
}
|
|
3731
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3731
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ui : console.warn(
|
|
3732
3732
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3733
|
-
)), Object.assign(
|
|
3733
|
+
)), Object.assign(ne, n, { initialLocale: i }), r && ("number" in r && Object.assign(ne.formats.number, r.number), "date" in r && Object.assign(ne.formats.date, r.date), "time" in r && Object.assign(ne.formats.time, r.time)), F.set(i);
|
|
3734
3734
|
}
|
|
3735
3735
|
const Ue = Ae(!1);
|
|
3736
|
-
var
|
|
3736
|
+
var di = Object.defineProperty, fi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
|
|
3737
3737
|
for (var r in t || (t = {}))
|
|
3738
|
-
|
|
3738
|
+
gi.call(t, r) && vt(e, r, t[r]);
|
|
3739
3739
|
if (bt)
|
|
3740
3740
|
for (var r of bt(t))
|
|
3741
|
-
|
|
3741
|
+
pi.call(t, r) && vt(e, r, t[r]);
|
|
3742
3742
|
return e;
|
|
3743
|
-
},
|
|
3743
|
+
}, vi = (e, t) => fi(e, mi(t));
|
|
3744
3744
|
let Ke;
|
|
3745
3745
|
const we = Ae(null);
|
|
3746
3746
|
function yt(e) {
|
|
3747
3747
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3748
3748
|
}
|
|
3749
|
-
function
|
|
3749
|
+
function ce(e, t = Y().fallbackLocale) {
|
|
3750
3750
|
const r = yt(e);
|
|
3751
3751
|
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function R() {
|
|
3754
3754
|
return Ke != null ? Ke : void 0;
|
|
3755
3755
|
}
|
|
3756
3756
|
we.subscribe((e) => {
|
|
3757
3757
|
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3758
3758
|
});
|
|
3759
|
-
const
|
|
3760
|
-
if (e &&
|
|
3761
|
-
const { loadingDelay: t } =
|
|
3759
|
+
const yi = (e) => {
|
|
3760
|
+
if (e && ti(e) && ke(e)) {
|
|
3761
|
+
const { loadingDelay: t } = Y();
|
|
3762
3762
|
let r;
|
|
3763
|
-
return typeof window != "undefined" &&
|
|
3763
|
+
return typeof window != "undefined" && R() != null && t ? r = window.setTimeout(
|
|
3764
3764
|
() => Ue.set(!0),
|
|
3765
3765
|
t
|
|
3766
3766
|
) : Ue.set(!0), nr(e).then(() => {
|
|
@@ -3770,8 +3770,8 @@ const vi = (e) => {
|
|
|
3770
3770
|
});
|
|
3771
3771
|
}
|
|
3772
3772
|
return we.set(e);
|
|
3773
|
-
}, F = bi(
|
|
3774
|
-
set:
|
|
3773
|
+
}, F = vi(bi({}, we), {
|
|
3774
|
+
set: yi
|
|
3775
3775
|
}), He = (e) => {
|
|
3776
3776
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3777
3777
|
return (n) => {
|
|
@@ -3779,14 +3779,14 @@ const vi = (e) => {
|
|
|
3779
3779
|
return i in t ? t[i] : t[i] = e(n);
|
|
3780
3780
|
};
|
|
3781
3781
|
};
|
|
3782
|
-
var
|
|
3782
|
+
var Ei = Object.defineProperty, Se = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
3783
3783
|
for (var r in t || (t = {}))
|
|
3784
3784
|
ir.call(t, r) && Et(e, r, t[r]);
|
|
3785
3785
|
if (Se)
|
|
3786
3786
|
for (var r of Se(t))
|
|
3787
3787
|
ar.call(t, r) && Et(e, r, t[r]);
|
|
3788
3788
|
return e;
|
|
3789
|
-
},
|
|
3789
|
+
}, ee = (e, t) => {
|
|
3790
3790
|
var r = {};
|
|
3791
3791
|
for (var n in e)
|
|
3792
3792
|
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3795,67 +3795,67 @@ var yi = Object.defineProperty, Se = Object.getOwnPropertySymbols, ir = Object.p
|
|
|
3795
3795
|
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3796
3796
|
return r;
|
|
3797
3797
|
};
|
|
3798
|
-
const
|
|
3799
|
-
const { formats: r } =
|
|
3798
|
+
const oe = (e, t) => {
|
|
3799
|
+
const { formats: r } = Y();
|
|
3800
3800
|
if (e in r && t in r[e])
|
|
3801
3801
|
return r[e][t];
|
|
3802
3802
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3803
|
-
},
|
|
3803
|
+
}, _i = He(
|
|
3804
3804
|
(e) => {
|
|
3805
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3805
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3806
3806
|
if (r == null)
|
|
3807
3807
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3808
|
-
return n && (i =
|
|
3808
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3809
3809
|
}
|
|
3810
|
-
),
|
|
3810
|
+
), xi = He(
|
|
3811
3811
|
(e) => {
|
|
3812
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3812
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3813
3813
|
if (r == null)
|
|
3814
3814
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3815
|
-
return n ? i =
|
|
3815
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3816
3816
|
}
|
|
3817
|
-
),
|
|
3817
|
+
), Ti = He(
|
|
3818
3818
|
(e) => {
|
|
3819
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3819
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3820
3820
|
if (r == null)
|
|
3821
3821
|
throw new Error(
|
|
3822
3822
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3823
3823
|
);
|
|
3824
|
-
return n ? i =
|
|
3824
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3825
3825
|
}
|
|
3826
|
-
),
|
|
3827
|
-
var t = e, {
|
|
3828
|
-
locale: r = U()
|
|
3829
|
-
} = t, n = Q(t, [
|
|
3830
|
-
"locale"
|
|
3831
|
-
]);
|
|
3832
|
-
return Ei(et({ locale: r }, n));
|
|
3833
|
-
}, ki = (e = {}) => {
|
|
3826
|
+
), ki = (e = {}) => {
|
|
3834
3827
|
var t = e, {
|
|
3835
|
-
locale: r =
|
|
3836
|
-
} = t, n =
|
|
3828
|
+
locale: r = R()
|
|
3829
|
+
} = t, n = ee(t, [
|
|
3837
3830
|
"locale"
|
|
3838
3831
|
]);
|
|
3839
3832
|
return _i(et({ locale: r }, n));
|
|
3840
3833
|
}, wi = (e = {}) => {
|
|
3841
3834
|
var t = e, {
|
|
3842
|
-
locale: r =
|
|
3843
|
-
} = t, n =
|
|
3835
|
+
locale: r = R()
|
|
3836
|
+
} = t, n = ee(t, [
|
|
3844
3837
|
"locale"
|
|
3845
3838
|
]);
|
|
3846
3839
|
return xi(et({ locale: r }, n));
|
|
3847
|
-
}, Si =
|
|
3840
|
+
}, Si = (e = {}) => {
|
|
3841
|
+
var t = e, {
|
|
3842
|
+
locale: r = R()
|
|
3843
|
+
} = t, n = ee(t, [
|
|
3844
|
+
"locale"
|
|
3845
|
+
]);
|
|
3846
|
+
return Ti(et({ locale: r }, n));
|
|
3847
|
+
}, Ai = He(
|
|
3848
3848
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3849
|
-
(e, t =
|
|
3850
|
-
ignoreTag:
|
|
3849
|
+
(e, t = R()) => new Yt(e, t, Y().formats, {
|
|
3850
|
+
ignoreTag: Y().ignoreTag
|
|
3851
3851
|
})
|
|
3852
|
-
),
|
|
3852
|
+
), Ii = (e, t = {}) => {
|
|
3853
3853
|
var r, n, i, a;
|
|
3854
3854
|
let s = t;
|
|
3855
3855
|
typeof e == "object" && (s = e, e = s.id);
|
|
3856
3856
|
const {
|
|
3857
3857
|
values: o,
|
|
3858
|
-
locale: u =
|
|
3858
|
+
locale: u = R(),
|
|
3859
3859
|
default: l
|
|
3860
3860
|
} = s;
|
|
3861
3861
|
if (u == null)
|
|
@@ -3864,7 +3864,7 @@ const se = (e, t) => {
|
|
|
3864
3864
|
);
|
|
3865
3865
|
let c = Qt(e, u);
|
|
3866
3866
|
if (!c)
|
|
3867
|
-
c = (a = (i = (n = (r =
|
|
3867
|
+
c = (a = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3868
3868
|
else if (typeof c != "string")
|
|
3869
3869
|
return console.warn(
|
|
3870
3870
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3873,7 +3873,7 @@ const se = (e, t) => {
|
|
|
3873
3873
|
return c;
|
|
3874
3874
|
let h = c;
|
|
3875
3875
|
try {
|
|
3876
|
-
h =
|
|
3876
|
+
h = Ai(c, u).format(o);
|
|
3877
3877
|
} catch (d) {
|
|
3878
3878
|
d instanceof Error && console.warn(
|
|
3879
3879
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3881,16 +3881,16 @@ const se = (e, t) => {
|
|
|
3881
3881
|
);
|
|
3882
3882
|
}
|
|
3883
3883
|
return h;
|
|
3884
|
-
},
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3884
|
+
}, Bi = (e, t) => Si(t).format(e), Hi = (e, t) => wi(t).format(e), Ci = (e, t) => ki(t).format(e), Li = (e, t = R()) => Qt(e, t), Pi = Q([F, ue], () => Ii);
|
|
3885
|
+
Q([F], () => Bi);
|
|
3886
|
+
Q([F], () => Hi);
|
|
3887
|
+
Q([F], () => Ci);
|
|
3888
|
+
Q([F, ue], () => Li);
|
|
3889
3889
|
function _t(e, t) {
|
|
3890
3890
|
tr(e, t);
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3893
|
-
|
|
3892
|
+
function Oi(e) {
|
|
3893
|
+
hi({
|
|
3894
3894
|
fallbackLocale: "en"
|
|
3895
3895
|
}), F.set(e);
|
|
3896
3896
|
}
|
|
@@ -4206,10 +4206,10 @@ const xt = {
|
|
|
4206
4206
|
CardTokenIsBlocked: "Kaarttoken is geblokkeerd"
|
|
4207
4207
|
}
|
|
4208
4208
|
};
|
|
4209
|
-
function
|
|
4210
|
-
|
|
4209
|
+
function Mi(e) {
|
|
4210
|
+
br(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}');
|
|
4211
4211
|
}
|
|
4212
|
-
const
|
|
4212
|
+
const Di = (e) => ({}), Tt = (e) => ({}), Ni = (e) => ({}), kt = (e) => ({}), Ri = (e) => ({}), wt = (e) => ({}), Ui = (e) => ({}), St = (e) => ({ class: "CashierErrorIcon" });
|
|
4213
4213
|
function At(e) {
|
|
4214
4214
|
let t, r;
|
|
4215
4215
|
return {
|
|
@@ -4230,7 +4230,7 @@ function At(e) {
|
|
|
4230
4230
|
}
|
|
4231
4231
|
};
|
|
4232
4232
|
}
|
|
4233
|
-
function
|
|
4233
|
+
function Fi(e) {
|
|
4234
4234
|
let t, r = (
|
|
4235
4235
|
/*assetsurl*/
|
|
4236
4236
|
e[0] && At(e)
|
|
@@ -4256,7 +4256,7 @@ function It(e) {
|
|
|
4256
4256
|
function r(a, s) {
|
|
4257
4257
|
return (
|
|
4258
4258
|
/*depositWageringAmount*/
|
|
4259
|
-
a[
|
|
4259
|
+
a[4] < 0 ? $i : zi
|
|
4260
4260
|
);
|
|
4261
4261
|
}
|
|
4262
4262
|
let n = r(e), i = n(e);
|
|
@@ -4275,26 +4275,26 @@ function It(e) {
|
|
|
4275
4275
|
}
|
|
4276
4276
|
};
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function zi(e) {
|
|
4279
4279
|
let t, r = (
|
|
4280
4280
|
/*$_*/
|
|
4281
|
-
e[
|
|
4281
|
+
e[6]("DepositWageringLimitText") + ""
|
|
4282
4282
|
), n, i, a = (
|
|
4283
4283
|
/*depositWageringAmount*/
|
|
4284
|
-
e[
|
|
4284
|
+
e[4] > 0 && Bt(e)
|
|
4285
4285
|
);
|
|
4286
4286
|
return {
|
|
4287
4287
|
c() {
|
|
4288
|
-
t = H("span"), n =
|
|
4288
|
+
t = H("span"), n = N(r), i = W(), a && a.c(), M(t, "class", "CashierErrorText");
|
|
4289
4289
|
},
|
|
4290
4290
|
m(s, o) {
|
|
4291
4291
|
A(s, t, o), B(t, n), B(t, i), a && a.m(t, null);
|
|
4292
4292
|
},
|
|
4293
4293
|
p(s, o) {
|
|
4294
4294
|
o & /*$_*/
|
|
4295
|
-
|
|
4296
|
-
s[
|
|
4297
|
-
s[
|
|
4295
|
+
64 && r !== (r = /*$_*/
|
|
4296
|
+
s[6]("DepositWageringLimitText") + "") && q(n, r), /*depositWageringAmount*/
|
|
4297
|
+
s[4] > 0 ? a ? a.p(s, o) : (a = Bt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4298
4298
|
},
|
|
4299
4299
|
d(s) {
|
|
4300
4300
|
s && S(t), a && a.d();
|
|
@@ -4304,19 +4304,19 @@ function Fi(e) {
|
|
|
4304
4304
|
function $i(e) {
|
|
4305
4305
|
let t, r, n = (
|
|
4306
4306
|
/*$_*/
|
|
4307
|
-
e[
|
|
4307
|
+
e[6]("DepositWageringFetching") + ""
|
|
4308
4308
|
), i;
|
|
4309
4309
|
return {
|
|
4310
4310
|
c() {
|
|
4311
|
-
t = H("div"), r = H("span"), i =
|
|
4311
|
+
t = H("div"), r = H("span"), i = N(n), M(r, "class", "CashierErrorText LoadingText"), M(t, "class", "WageringFetch");
|
|
4312
4312
|
},
|
|
4313
4313
|
m(a, s) {
|
|
4314
4314
|
A(a, t, s), B(t, r), B(r, i);
|
|
4315
4315
|
},
|
|
4316
4316
|
p(a, s) {
|
|
4317
4317
|
s & /*$_*/
|
|
4318
|
-
|
|
4319
|
-
a[
|
|
4318
|
+
64 && n !== (n = /*$_*/
|
|
4319
|
+
a[6]("DepositWageringFetching") + "") && q(i, n);
|
|
4320
4320
|
},
|
|
4321
4321
|
d(a) {
|
|
4322
4322
|
a && S(t);
|
|
@@ -4327,12 +4327,12 @@ function Bt(e) {
|
|
|
4327
4327
|
let t, r, n;
|
|
4328
4328
|
return {
|
|
4329
4329
|
c() {
|
|
4330
|
-
t =
|
|
4330
|
+
t = N(
|
|
4331
4331
|
/*depositWageringAmount*/
|
|
4332
|
-
e[3]
|
|
4333
|
-
), r = V(), n = R(
|
|
4334
|
-
/*depositWageringCurrency*/
|
|
4335
4332
|
e[4]
|
|
4333
|
+
), r = W(), n = N(
|
|
4334
|
+
/*depositWageringCurrency*/
|
|
4335
|
+
e[5]
|
|
4336
4336
|
);
|
|
4337
4337
|
},
|
|
4338
4338
|
m(i, a) {
|
|
@@ -4340,15 +4340,15 @@ function Bt(e) {
|
|
|
4340
4340
|
},
|
|
4341
4341
|
p(i, a) {
|
|
4342
4342
|
a & /*depositWageringAmount*/
|
|
4343
|
-
|
|
4343
|
+
16 && q(
|
|
4344
4344
|
t,
|
|
4345
4345
|
/*depositWageringAmount*/
|
|
4346
|
-
i[
|
|
4346
|
+
i[4]
|
|
4347
4347
|
), a & /*depositWageringCurrency*/
|
|
4348
|
-
|
|
4348
|
+
32 && q(
|
|
4349
4349
|
n,
|
|
4350
4350
|
/*depositWageringCurrency*/
|
|
4351
|
-
i[
|
|
4351
|
+
i[5]
|
|
4352
4352
|
);
|
|
4353
4353
|
},
|
|
4354
4354
|
d(i) {
|
|
@@ -4356,27 +4356,39 @@ function Bt(e) {
|
|
|
4356
4356
|
}
|
|
4357
4357
|
};
|
|
4358
4358
|
}
|
|
4359
|
-
function
|
|
4359
|
+
function Gi(e) {
|
|
4360
4360
|
let t, r = (
|
|
4361
|
-
|
|
4362
|
-
e[
|
|
4363
|
-
|
|
4361
|
+
/*errormessage*/
|
|
4362
|
+
(e[2].length > 0 ? (
|
|
4363
|
+
/*errormessage*/
|
|
4364
|
+
e[2]
|
|
4365
|
+
) : (
|
|
4366
|
+
/*$_*/
|
|
4367
|
+
e[6](`${/*errorcode*/
|
|
4368
|
+
e[1] || "errorGeneralText"}`)
|
|
4369
|
+
)) + ""
|
|
4364
4370
|
), n, i, a, s = (
|
|
4365
4371
|
/*errorcode*/
|
|
4366
4372
|
e[1] == "DepositWageringLimit" && It(e)
|
|
4367
4373
|
);
|
|
4368
4374
|
return {
|
|
4369
4375
|
c() {
|
|
4370
|
-
t = H("span"), n =
|
|
4376
|
+
t = H("span"), n = N(r), i = W(), s && s.c(), a = Ye(), M(t, "class", "CashierErrorText");
|
|
4371
4377
|
},
|
|
4372
4378
|
m(o, u) {
|
|
4373
4379
|
A(o, t, u), B(t, n), A(o, i, u), s && s.m(o, u), A(o, a, u);
|
|
4374
4380
|
},
|
|
4375
4381
|
p(o, u) {
|
|
4376
|
-
u &
|
|
4377
|
-
|
|
4378
|
-
o[
|
|
4379
|
-
|
|
4382
|
+
u & /*errormessage, $_, errorcode*/
|
|
4383
|
+
70 && r !== (r = /*errormessage*/
|
|
4384
|
+
(o[2].length > 0 ? (
|
|
4385
|
+
/*errormessage*/
|
|
4386
|
+
o[2]
|
|
4387
|
+
) : (
|
|
4388
|
+
/*$_*/
|
|
4389
|
+
o[6](`${/*errorcode*/
|
|
4390
|
+
o[1] || "errorGeneralText"}`)
|
|
4391
|
+
)) + "") && q(n, r), /*errorcode*/
|
|
4380
4392
|
o[1] == "DepositWageringLimit" ? s ? s.p(o, u) : (s = It(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
|
|
4381
4393
|
},
|
|
4382
4394
|
d(o) {
|
|
@@ -4384,300 +4396,308 @@ function zi(e) {
|
|
|
4384
4396
|
}
|
|
4385
4397
|
};
|
|
4386
4398
|
}
|
|
4387
|
-
function
|
|
4399
|
+
function ji(e) {
|
|
4388
4400
|
let t, r, n = (
|
|
4389
4401
|
/*$_*/
|
|
4390
|
-
e[
|
|
4402
|
+
e[6]("errorGeneralButton") + ""
|
|
4391
4403
|
), i, a, s;
|
|
4392
4404
|
return {
|
|
4393
4405
|
c() {
|
|
4394
|
-
t = H("button"), r = H("span"), i =
|
|
4406
|
+
t = H("button"), r = H("span"), i = N(n), M(t, "class", "CashierErrorButton");
|
|
4395
4407
|
},
|
|
4396
4408
|
m(o, u) {
|
|
4397
|
-
A(o, t, u), B(t, r), B(r, i), a || (s =
|
|
4409
|
+
A(o, t, u), B(t, r), B(r, i), a || (s = Er(
|
|
4398
4410
|
t,
|
|
4399
4411
|
"click",
|
|
4400
4412
|
/*close*/
|
|
4401
|
-
e[
|
|
4413
|
+
e[7]
|
|
4402
4414
|
), a = !0);
|
|
4403
4415
|
},
|
|
4404
4416
|
p(o, u) {
|
|
4405
4417
|
u & /*$_*/
|
|
4406
|
-
|
|
4407
|
-
o[
|
|
4418
|
+
64 && n !== (n = /*$_*/
|
|
4419
|
+
o[6]("errorGeneralButton") + "") && q(i, n);
|
|
4408
4420
|
},
|
|
4409
4421
|
d(o) {
|
|
4410
4422
|
o && S(t), a = !1, s();
|
|
4411
4423
|
}
|
|
4412
4424
|
};
|
|
4413
4425
|
}
|
|
4414
|
-
function
|
|
4426
|
+
function Vi(e) {
|
|
4415
4427
|
let t, r, n, i, a, s;
|
|
4416
4428
|
const o = (
|
|
4417
4429
|
/*#slots*/
|
|
4418
|
-
e[
|
|
4430
|
+
e[14].icon
|
|
4419
4431
|
), u = de(
|
|
4420
4432
|
o,
|
|
4421
4433
|
e,
|
|
4422
4434
|
/*$$scope*/
|
|
4423
|
-
e[
|
|
4435
|
+
e[13],
|
|
4424
4436
|
St
|
|
4425
|
-
), l = u ||
|
|
4437
|
+
), l = u || Fi(e), c = (
|
|
4426
4438
|
/*#slots*/
|
|
4427
|
-
e[
|
|
4439
|
+
e[14].title
|
|
4428
4440
|
), h = de(
|
|
4429
4441
|
c,
|
|
4430
4442
|
e,
|
|
4431
4443
|
/*$$scope*/
|
|
4432
|
-
e[
|
|
4444
|
+
e[13],
|
|
4433
4445
|
wt
|
|
4434
4446
|
), d = (
|
|
4435
4447
|
/*#slots*/
|
|
4436
|
-
e[
|
|
4437
|
-
),
|
|
4448
|
+
e[14].text
|
|
4449
|
+
), v = de(
|
|
4438
4450
|
d,
|
|
4439
4451
|
e,
|
|
4440
4452
|
/*$$scope*/
|
|
4441
|
-
e[
|
|
4453
|
+
e[13],
|
|
4442
4454
|
kt
|
|
4443
|
-
),
|
|
4455
|
+
), m = v || Gi(e), x = (
|
|
4444
4456
|
/*#slots*/
|
|
4445
|
-
e[
|
|
4457
|
+
e[14].button
|
|
4446
4458
|
), k = de(
|
|
4447
4459
|
x,
|
|
4448
4460
|
e,
|
|
4449
4461
|
/*$$scope*/
|
|
4450
|
-
e[
|
|
4462
|
+
e[13],
|
|
4451
4463
|
Tt
|
|
4452
|
-
), T = k ||
|
|
4464
|
+
), T = k || ji(e);
|
|
4453
4465
|
return {
|
|
4454
4466
|
c() {
|
|
4455
|
-
t = H("div"), r = H("div"), l && l.c(), n =
|
|
4467
|
+
t = H("div"), r = H("div"), l && l.c(), n = W(), h && h.c(), i = W(), m && m.c(), a = W(), T && T.c(), M(r, "class", "CashierErrorContent"), M(t, "class", "CashierError");
|
|
4456
4468
|
},
|
|
4457
4469
|
m(f, y) {
|
|
4458
|
-
A(f, t, y), B(t, r), l && l.m(r, null), B(r, n), h && h.m(r, null), B(r, i),
|
|
4470
|
+
A(f, t, y), B(t, r), l && l.m(r, null), B(r, n), h && h.m(r, null), B(r, i), m && m.m(r, null), B(r, a), T && T.m(r, null), e[15](t), s = !0;
|
|
4459
4471
|
},
|
|
4460
4472
|
p(f, [y]) {
|
|
4461
4473
|
u ? u.p && (!s || y & /*$$scope*/
|
|
4462
|
-
|
|
4474
|
+
8192) && me(
|
|
4463
4475
|
u,
|
|
4464
4476
|
o,
|
|
4465
4477
|
f,
|
|
4466
4478
|
/*$$scope*/
|
|
4467
|
-
f[
|
|
4479
|
+
f[13],
|
|
4468
4480
|
s ? fe(
|
|
4469
4481
|
o,
|
|
4470
4482
|
/*$$scope*/
|
|
4471
|
-
f[
|
|
4483
|
+
f[13],
|
|
4472
4484
|
y,
|
|
4473
|
-
|
|
4485
|
+
Ui
|
|
4474
4486
|
) : ge(
|
|
4475
4487
|
/*$$scope*/
|
|
4476
|
-
f[
|
|
4488
|
+
f[13]
|
|
4477
4489
|
),
|
|
4478
4490
|
St
|
|
4479
4491
|
) : l && l.p && (!s || y & /*assetsurl*/
|
|
4480
4492
|
1) && l.p(f, s ? y : -1), h && h.p && (!s || y & /*$$scope*/
|
|
4481
|
-
|
|
4493
|
+
8192) && me(
|
|
4482
4494
|
h,
|
|
4483
4495
|
c,
|
|
4484
4496
|
f,
|
|
4485
4497
|
/*$$scope*/
|
|
4486
|
-
f[
|
|
4498
|
+
f[13],
|
|
4487
4499
|
s ? fe(
|
|
4488
4500
|
c,
|
|
4489
4501
|
/*$$scope*/
|
|
4490
|
-
f[
|
|
4502
|
+
f[13],
|
|
4491
4503
|
y,
|
|
4492
|
-
|
|
4504
|
+
Ri
|
|
4493
4505
|
) : ge(
|
|
4494
4506
|
/*$$scope*/
|
|
4495
|
-
f[
|
|
4507
|
+
f[13]
|
|
4496
4508
|
),
|
|
4497
4509
|
wt
|
|
4498
|
-
),
|
|
4499
|
-
|
|
4500
|
-
|
|
4510
|
+
), v ? v.p && (!s || y & /*$$scope*/
|
|
4511
|
+
8192) && me(
|
|
4512
|
+
v,
|
|
4501
4513
|
d,
|
|
4502
4514
|
f,
|
|
4503
4515
|
/*$$scope*/
|
|
4504
|
-
f[
|
|
4516
|
+
f[13],
|
|
4505
4517
|
s ? fe(
|
|
4506
4518
|
d,
|
|
4507
4519
|
/*$$scope*/
|
|
4508
|
-
f[
|
|
4520
|
+
f[13],
|
|
4509
4521
|
y,
|
|
4510
|
-
|
|
4522
|
+
Ni
|
|
4511
4523
|
) : ge(
|
|
4512
4524
|
/*$$scope*/
|
|
4513
|
-
f[
|
|
4525
|
+
f[13]
|
|
4514
4526
|
),
|
|
4515
4527
|
kt
|
|
4516
|
-
) :
|
|
4517
|
-
|
|
4518
|
-
|
|
4528
|
+
) : m && m.p && (!s || y & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, errormessage*/
|
|
4529
|
+
118) && m.p(f, s ? y : -1), k ? k.p && (!s || y & /*$$scope*/
|
|
4530
|
+
8192) && me(
|
|
4519
4531
|
k,
|
|
4520
4532
|
x,
|
|
4521
4533
|
f,
|
|
4522
4534
|
/*$$scope*/
|
|
4523
|
-
f[
|
|
4535
|
+
f[13],
|
|
4524
4536
|
s ? fe(
|
|
4525
4537
|
x,
|
|
4526
4538
|
/*$$scope*/
|
|
4527
|
-
f[
|
|
4539
|
+
f[13],
|
|
4528
4540
|
y,
|
|
4529
|
-
|
|
4541
|
+
Di
|
|
4530
4542
|
) : ge(
|
|
4531
4543
|
/*$$scope*/
|
|
4532
|
-
f[
|
|
4544
|
+
f[13]
|
|
4533
4545
|
),
|
|
4534
4546
|
Tt
|
|
4535
4547
|
) : T && T.p && (!s || y & /*$_*/
|
|
4536
|
-
|
|
4548
|
+
64) && T.p(f, s ? y : -1);
|
|
4537
4549
|
},
|
|
4538
4550
|
i(f) {
|
|
4539
|
-
s || (
|
|
4551
|
+
s || (re(l, f), re(h, f), re(m, f), re(T, f), s = !0);
|
|
4540
4552
|
},
|
|
4541
4553
|
o(f) {
|
|
4542
|
-
be(l, f), be(h, f), be(
|
|
4554
|
+
be(l, f), be(h, f), be(m, f), be(T, f), s = !1;
|
|
4543
4555
|
},
|
|
4544
4556
|
d(f) {
|
|
4545
|
-
f && S(t), l && l.d(f), h && h.d(f),
|
|
4557
|
+
f && S(t), l && l.d(f), h && h.d(f), m && m.d(f), T && T.d(f), e[15](null);
|
|
4546
4558
|
}
|
|
4547
4559
|
};
|
|
4548
4560
|
}
|
|
4549
|
-
function
|
|
4561
|
+
function Wi(e, t, r) {
|
|
4550
4562
|
let n;
|
|
4551
|
-
|
|
4552
|
-
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: u = "" } = t, {
|
|
4553
|
-
const
|
|
4554
|
-
|
|
4555
|
-
},
|
|
4556
|
-
if (
|
|
4563
|
+
pr(e, Pi, (g) => r(6, n = g));
|
|
4564
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: u = "" } = t, { errormessage: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: v = "" } = t, m, x, k = -1, T;
|
|
4565
|
+
const f = () => {
|
|
4566
|
+
Oi(o);
|
|
4567
|
+
}, y = () => Le(this, null, function* () {
|
|
4568
|
+
if (d)
|
|
4557
4569
|
try {
|
|
4558
|
-
const
|
|
4559
|
-
if (!
|
|
4560
|
-
throw new Error(`HTTP error! status: ${
|
|
4561
|
-
const
|
|
4562
|
-
Object.entries(
|
|
4563
|
-
_t(
|
|
4570
|
+
const g = yield fetch(d);
|
|
4571
|
+
if (!g.ok)
|
|
4572
|
+
throw new Error(`HTTP error! status: ${g.status}`);
|
|
4573
|
+
const sr = yield g.json();
|
|
4574
|
+
Object.entries(sr).forEach(([or, lr]) => {
|
|
4575
|
+
_t(or, lr);
|
|
4564
4576
|
});
|
|
4565
|
-
} catch (
|
|
4566
|
-
console.error(
|
|
4577
|
+
} catch (g) {
|
|
4578
|
+
console.error(g);
|
|
4567
4579
|
}
|
|
4568
4580
|
});
|
|
4569
|
-
Object.keys(xt).forEach((
|
|
4570
|
-
_t(
|
|
4581
|
+
Object.keys(xt).forEach((g) => {
|
|
4582
|
+
_t(g, xt[g]);
|
|
4571
4583
|
});
|
|
4572
|
-
const
|
|
4584
|
+
const U = () => {
|
|
4573
4585
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4574
|
-
},
|
|
4575
|
-
if (
|
|
4576
|
-
switch (
|
|
4586
|
+
}, C = (g) => {
|
|
4587
|
+
if (g.data)
|
|
4588
|
+
switch (g.data.type) {
|
|
4577
4589
|
case "DepositWageringAmount":
|
|
4578
|
-
r(
|
|
4590
|
+
r(4, k = g.data.amount), r(5, T = g.data.currency);
|
|
4579
4591
|
break;
|
|
4580
4592
|
}
|
|
4581
4593
|
};
|
|
4582
|
-
|
|
4583
|
-
window.removeEventListener("message",
|
|
4594
|
+
kr(() => (window.addEventListener("message", C, !1), () => {
|
|
4595
|
+
window.removeEventListener("message", C);
|
|
4584
4596
|
}));
|
|
4585
|
-
function
|
|
4586
|
-
Fe[
|
|
4587
|
-
|
|
4597
|
+
function z(g) {
|
|
4598
|
+
Fe[g ? "unshift" : "push"](() => {
|
|
4599
|
+
m = g, r(3, m);
|
|
4588
4600
|
});
|
|
4589
4601
|
}
|
|
4590
|
-
return e.$$set = (
|
|
4591
|
-
"assetsurl" in
|
|
4602
|
+
return e.$$set = (g) => {
|
|
4603
|
+
"assetsurl" in g && r(0, s = g.assetsurl), "lang" in g && r(8, o = g.lang), "errorcode" in g && r(1, u = g.errorcode), "errormessage" in g && r(2, l = g.errormessage), "clientstyling" in g && r(9, c = g.clientstyling), "clientstylingurl" in g && r(10, h = g.clientstylingurl), "translationurl" in g && r(11, d = g.translationurl), "mbsource" in g && r(12, v = g.mbsource), "$$scope" in g && r(13, a = g.$$scope);
|
|
4592
4604
|
}, e.$$.update = () => {
|
|
4593
4605
|
e.$$.dirty & /*lang*/
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4606
|
+
256 && o && f(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4607
|
+
520 && c && m && Nr(m, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4608
|
+
1032 && h && m && Rr(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4609
|
+
4104 && v && m && Ur(m, `${v}.Style`, x), e.$$.dirty & /*translationurl*/
|
|
4610
|
+
2048 && d && y();
|
|
4599
4611
|
}, [
|
|
4600
4612
|
s,
|
|
4601
4613
|
u,
|
|
4602
|
-
|
|
4603
|
-
|
|
4614
|
+
l,
|
|
4615
|
+
m,
|
|
4604
4616
|
k,
|
|
4617
|
+
T,
|
|
4605
4618
|
n,
|
|
4606
|
-
|
|
4619
|
+
U,
|
|
4607
4620
|
o,
|
|
4608
|
-
l,
|
|
4609
4621
|
c,
|
|
4610
4622
|
h,
|
|
4611
4623
|
d,
|
|
4624
|
+
v,
|
|
4612
4625
|
a,
|
|
4613
4626
|
i,
|
|
4614
|
-
|
|
4627
|
+
z
|
|
4615
4628
|
];
|
|
4616
4629
|
}
|
|
4617
|
-
class
|
|
4630
|
+
class Xi extends Mr {
|
|
4618
4631
|
constructor(t) {
|
|
4619
|
-
super(),
|
|
4632
|
+
super(), Pr(
|
|
4620
4633
|
this,
|
|
4621
4634
|
t,
|
|
4635
|
+
Wi,
|
|
4622
4636
|
Vi,
|
|
4623
|
-
ji,
|
|
4624
4637
|
Ct,
|
|
4625
4638
|
{
|
|
4626
4639
|
assetsurl: 0,
|
|
4627
|
-
lang:
|
|
4640
|
+
lang: 8,
|
|
4628
4641
|
errorcode: 1,
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4642
|
+
errormessage: 2,
|
|
4643
|
+
clientstyling: 9,
|
|
4644
|
+
clientstylingurl: 10,
|
|
4645
|
+
translationurl: 11,
|
|
4646
|
+
mbsource: 12
|
|
4633
4647
|
},
|
|
4634
|
-
|
|
4648
|
+
Mi
|
|
4635
4649
|
);
|
|
4636
4650
|
}
|
|
4637
4651
|
get assetsurl() {
|
|
4638
4652
|
return this.$$.ctx[0];
|
|
4639
4653
|
}
|
|
4640
4654
|
set assetsurl(t) {
|
|
4641
|
-
this.$$set({ assetsurl: t }),
|
|
4655
|
+
this.$$set({ assetsurl: t }), L();
|
|
4642
4656
|
}
|
|
4643
4657
|
get lang() {
|
|
4644
|
-
return this.$$.ctx[
|
|
4658
|
+
return this.$$.ctx[8];
|
|
4645
4659
|
}
|
|
4646
4660
|
set lang(t) {
|
|
4647
|
-
this.$$set({ lang: t }),
|
|
4661
|
+
this.$$set({ lang: t }), L();
|
|
4648
4662
|
}
|
|
4649
4663
|
get errorcode() {
|
|
4650
4664
|
return this.$$.ctx[1];
|
|
4651
4665
|
}
|
|
4652
4666
|
set errorcode(t) {
|
|
4653
|
-
this.$$set({ errorcode: t }),
|
|
4667
|
+
this.$$set({ errorcode: t }), L();
|
|
4668
|
+
}
|
|
4669
|
+
get errormessage() {
|
|
4670
|
+
return this.$$.ctx[2];
|
|
4671
|
+
}
|
|
4672
|
+
set errormessage(t) {
|
|
4673
|
+
this.$$set({ errormessage: t }), L();
|
|
4654
4674
|
}
|
|
4655
4675
|
get clientstyling() {
|
|
4656
|
-
return this.$$.ctx[
|
|
4676
|
+
return this.$$.ctx[9];
|
|
4657
4677
|
}
|
|
4658
4678
|
set clientstyling(t) {
|
|
4659
|
-
this.$$set({ clientstyling: t }),
|
|
4679
|
+
this.$$set({ clientstyling: t }), L();
|
|
4660
4680
|
}
|
|
4661
4681
|
get clientstylingurl() {
|
|
4662
|
-
return this.$$.ctx[
|
|
4682
|
+
return this.$$.ctx[10];
|
|
4663
4683
|
}
|
|
4664
4684
|
set clientstylingurl(t) {
|
|
4665
|
-
this.$$set({ clientstylingurl: t }),
|
|
4685
|
+
this.$$set({ clientstylingurl: t }), L();
|
|
4666
4686
|
}
|
|
4667
4687
|
get translationurl() {
|
|
4668
|
-
return this.$$.ctx[
|
|
4688
|
+
return this.$$.ctx[11];
|
|
4669
4689
|
}
|
|
4670
4690
|
set translationurl(t) {
|
|
4671
|
-
this.$$set({ translationurl: t }),
|
|
4691
|
+
this.$$set({ translationurl: t }), L();
|
|
4672
4692
|
}
|
|
4673
4693
|
get mbsource() {
|
|
4674
|
-
return this.$$.ctx[
|
|
4694
|
+
return this.$$.ctx[12];
|
|
4675
4695
|
}
|
|
4676
4696
|
set mbsource(t) {
|
|
4677
|
-
this.$$set({ mbsource: t }),
|
|
4697
|
+
this.$$set({ mbsource: t }), L();
|
|
4678
4698
|
}
|
|
4679
4699
|
}
|
|
4680
|
-
|
|
4700
|
+
Or(Xi, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4681
4701
|
export {
|
|
4682
|
-
|
|
4702
|
+
Xi as default
|
|
4683
4703
|
};
|