@everymatrix/cashier-error 1.94.65 → 1.94.67
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-Cl-Z77eA.js → CashierError-Bmp02hIK.js} +1038 -995
- package/components/{CashierError-BV7Ktd8d.js → CashierError-C4SN3tkt.js} +1062 -1019
- package/components/CashierError-DBMQNq6p.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-CxIH_nOM.cjs +0 -5
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var fr = Object.defineProperty, mr = Object.defineProperties;
|
|
2
|
+
var gr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var it = Object.getOwnPropertySymbols;
|
|
4
|
+
var pr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Oe = (e, t, r) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
pr.call(t, r) && Oe(e, r, t[r]);
|
|
8
|
+
if (it)
|
|
9
|
+
for (var r of it(t))
|
|
10
|
+
br.call(t, r) && Oe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var I = (e, t, r) => (
|
|
14
|
-
var
|
|
15
|
-
var a = (
|
|
12
|
+
}, st = (e, t) => mr(e, gr(t));
|
|
13
|
+
var I = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ot = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var a = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
o(r.next(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
o(r.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, s = (
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
o(r.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
o(r.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, o = (
|
|
27
|
+
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(a, s);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
31
|
function O() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function vr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -38,29 +38,29 @@ function mr(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Mt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function lt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
e.forEach(
|
|
47
|
+
function ne(e) {
|
|
48
|
+
e.forEach(Mt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Qe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Dt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
-
return e === t ? !0 : (
|
|
56
|
+
let ge;
|
|
57
|
+
function ut(e, t) {
|
|
58
|
+
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function yr(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Nt(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
@@ -69,19 +69,19 @@ function Lt(e, ...t) {
|
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
e.$$.on_destroy.push(
|
|
72
|
+
function Er(e, t, r) {
|
|
73
|
+
e.$$.on_destroy.push(Nt(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function pe(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
|
-
const i =
|
|
77
|
+
const i = Rt(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return e[1] && n ?
|
|
81
|
+
function Rt(e, t, r, n) {
|
|
82
|
+
return e[1] && n ? vr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function be(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
86
86
|
const i = e[2](n(r));
|
|
87
87
|
if (t.dirty === void 0)
|
|
@@ -96,13 +96,13 @@ function fe(e, t, r, n) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function ve(e, t, r, n, i, a) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const s =
|
|
101
|
+
const s = Rt(t, r, n, a);
|
|
102
102
|
e.p(s, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function ye(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
107
|
const t = [], r = e.ctx.length / 32;
|
|
108
108
|
for (let n = 0; n < r; 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 _r(e, t, r) {
|
|
118
|
+
const n = xr(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, Tr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function xr(e) {
|
|
125
125
|
if (!e)
|
|
126
126
|
return document;
|
|
127
127
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -131,7 +131,7 @@ function vr(e) {
|
|
|
131
131
|
t
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Tr(e, t) {
|
|
135
135
|
return B(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
@@ -141,39 +141,39 @@ function yr(e, t) {
|
|
|
141
141
|
function A(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function k(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
147
|
function H(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function R(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function K() {
|
|
154
|
+
return R(" ");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
156
|
+
function et() {
|
|
157
|
+
return R("");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function kr(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) {
|
|
163
163
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ee(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 wr(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Y(e, t) {
|
|
173
173
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
174
|
t);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Sr(e) {
|
|
177
177
|
const t = {};
|
|
178
178
|
return e.childNodes.forEach(
|
|
179
179
|
/** @param {Element} node */
|
|
@@ -182,135 +182,147 @@ function xr(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
let ce;
|
|
186
|
+
function ue(e) {
|
|
187
|
+
ce = e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (!
|
|
189
|
+
function Ar() {
|
|
190
|
+
if (!ce)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return ce;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
194
|
+
function Ir(e) {
|
|
195
|
+
Ar().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
|
|
197
|
+
const X = [], $e = [];
|
|
198
|
+
let Z = [];
|
|
199
|
+
const ct = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
200
|
+
let Ge = !1;
|
|
201
|
+
function Hr() {
|
|
202
|
+
Ge || (Ge = !0, Br.then(C));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function je(e) {
|
|
205
|
+
Z.push(e);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
207
|
+
const Me = /* @__PURE__ */ new Set();
|
|
208
|
+
let V = 0;
|
|
209
|
+
function C() {
|
|
210
|
+
if (V !== 0)
|
|
211
211
|
return;
|
|
212
|
-
const e =
|
|
212
|
+
const e = ce;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
215
|
+
for (; V < X.length; ) {
|
|
216
|
+
const t = X[V];
|
|
217
|
+
V++, ue(t), Cr(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw X.length = 0, V = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (
|
|
223
|
-
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
226
|
-
|
|
222
|
+
for (ue(null), X.length = 0, V = 0; $e.length; )
|
|
223
|
+
$e.pop()();
|
|
224
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
225
|
+
const r = Z[t];
|
|
226
|
+
Me.has(r) || (Me.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
} while (
|
|
230
|
-
for (;
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
Z.length = 0;
|
|
229
|
+
} while (X.length);
|
|
230
|
+
for (; ct.length; )
|
|
231
|
+
ct.pop()();
|
|
232
|
+
Ge = !1, Me.clear(), ue(e);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Cr(e) {
|
|
235
235
|
if (e.fragment !== null) {
|
|
236
|
-
e.update(),
|
|
236
|
+
e.update(), ne(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(je);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Lr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
244
|
+
}
|
|
245
|
+
const xe = /* @__PURE__ */ new Set();
|
|
246
|
+
let z;
|
|
247
|
+
function Pr() {
|
|
248
|
+
z = {
|
|
249
|
+
r: 0,
|
|
250
|
+
c: [],
|
|
251
|
+
p: z
|
|
252
|
+
// parent group
|
|
253
|
+
};
|
|
244
254
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
function re(e, t) {
|
|
248
|
-
e && e.i && (ye.delete(e), e.i(t));
|
|
255
|
+
function Or() {
|
|
256
|
+
z.r || ne(z.c), z = z.p;
|
|
249
257
|
}
|
|
250
|
-
function
|
|
258
|
+
function D(e, t) {
|
|
259
|
+
e && e.i && (xe.delete(e), e.i(t));
|
|
260
|
+
}
|
|
261
|
+
function J(e, t, r, n) {
|
|
251
262
|
if (e && e.o) {
|
|
252
|
-
if (
|
|
263
|
+
if (xe.has(e))
|
|
253
264
|
return;
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
xe.add(e), z.c.push(() => {
|
|
266
|
+
xe.delete(e), n && (r && e.d(1), n());
|
|
256
267
|
}), e.o(t);
|
|
257
|
-
}
|
|
268
|
+
} else
|
|
269
|
+
n && n();
|
|
258
270
|
}
|
|
259
|
-
function
|
|
271
|
+
function Mr(e, t, r) {
|
|
260
272
|
const { fragment: n, after_update: i } = e.$$;
|
|
261
|
-
n && n.m(t, r),
|
|
262
|
-
const a = e.$$.on_mount.map(
|
|
263
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
264
|
-
}), i.forEach(
|
|
273
|
+
n && n.m(t, r), je(() => {
|
|
274
|
+
const a = e.$$.on_mount.map(Mt).filter(Qe);
|
|
275
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ne(a), e.$$.on_mount = [];
|
|
276
|
+
}), i.forEach(je);
|
|
265
277
|
}
|
|
266
|
-
function
|
|
278
|
+
function Dr(e, t) {
|
|
267
279
|
const r = e.$$;
|
|
268
|
-
r.fragment !== null && (
|
|
280
|
+
r.fragment !== null && (Lr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
269
281
|
}
|
|
270
|
-
function
|
|
271
|
-
e.$$.dirty[0] === -1 && (
|
|
282
|
+
function Nr(e, t) {
|
|
283
|
+
e.$$.dirty[0] === -1 && (X.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
284
|
}
|
|
273
|
-
function
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
const
|
|
285
|
+
function Rr(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
286
|
+
const l = ce;
|
|
287
|
+
ue(e);
|
|
288
|
+
const u = e.$$ = {
|
|
277
289
|
fragment: null,
|
|
278
290
|
ctx: [],
|
|
279
291
|
// state
|
|
280
292
|
props: a,
|
|
281
293
|
update: O,
|
|
282
294
|
not_equal: i,
|
|
283
|
-
bound:
|
|
295
|
+
bound: lt(),
|
|
284
296
|
// lifecycle
|
|
285
297
|
on_mount: [],
|
|
286
298
|
on_destroy: [],
|
|
287
299
|
on_disconnect: [],
|
|
288
300
|
before_update: [],
|
|
289
301
|
after_update: [],
|
|
290
|
-
context: new Map(t.context || (
|
|
302
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
291
303
|
// everything else
|
|
292
|
-
callbacks:
|
|
304
|
+
callbacks: lt(),
|
|
293
305
|
dirty: o,
|
|
294
306
|
skip_bound: !1,
|
|
295
|
-
root: t.target ||
|
|
307
|
+
root: t.target || l.$$.root
|
|
296
308
|
};
|
|
297
|
-
s && s(
|
|
309
|
+
s && s(u.root);
|
|
298
310
|
let c = !1;
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
return
|
|
302
|
-
}) : [],
|
|
311
|
+
if (u.ctx = r ? r(e, t.props || {}, (h, d, ...m) => {
|
|
312
|
+
const g = m.length ? m[0] : d;
|
|
313
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = g) && (!u.skip_bound && u.bound[h] && u.bound[h](g), c && Nr(e, h)), d;
|
|
314
|
+
}) : [], u.update(), c = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
303
315
|
if (t.hydrate) {
|
|
304
|
-
const h =
|
|
305
|
-
|
|
316
|
+
const h = wr(t.target);
|
|
317
|
+
u.fragment && u.fragment.l(h), h.forEach(k);
|
|
306
318
|
} else
|
|
307
|
-
|
|
308
|
-
t.intro &&
|
|
319
|
+
u.fragment && u.fragment.c();
|
|
320
|
+
t.intro && D(e.$$.fragment), Mr(e, t.target, t.anchor), C();
|
|
309
321
|
}
|
|
310
|
-
|
|
322
|
+
ue(l);
|
|
311
323
|
}
|
|
312
|
-
let
|
|
313
|
-
typeof HTMLElement == "function" && (
|
|
324
|
+
let Ut;
|
|
325
|
+
typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
314
326
|
constructor(t, r, n) {
|
|
315
327
|
super();
|
|
316
328
|
/** The Svelte component constructor */
|
|
@@ -347,7 +359,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
347
359
|
}
|
|
348
360
|
}
|
|
349
361
|
connectedCallback() {
|
|
350
|
-
return
|
|
362
|
+
return ot(this, null, function* () {
|
|
351
363
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
364
|
let t = function(a) {
|
|
353
365
|
return () => {
|
|
@@ -360,29 +372,29 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
360
372
|
* @param {HTMLElement} target
|
|
361
373
|
* @param {HTMLElement} [anchor]
|
|
362
374
|
*/
|
|
363
|
-
m: function(
|
|
364
|
-
A(
|
|
375
|
+
m: function(u, c) {
|
|
376
|
+
A(u, s, c);
|
|
365
377
|
},
|
|
366
|
-
d: function(
|
|
367
|
-
|
|
378
|
+
d: function(u) {
|
|
379
|
+
u && k(s);
|
|
368
380
|
}
|
|
369
381
|
};
|
|
370
382
|
};
|
|
371
383
|
};
|
|
372
384
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
373
385
|
return;
|
|
374
|
-
const r = {}, n =
|
|
386
|
+
const r = {}, n = Sr(this);
|
|
375
387
|
for (const a of this.$$s)
|
|
376
388
|
a in n && (r[a] = [t(a)]);
|
|
377
389
|
for (const a of this.attributes) {
|
|
378
390
|
const s = this.$$g_p(a.name);
|
|
379
|
-
s in this.$$d || (this.$$d[s] =
|
|
391
|
+
s in this.$$d || (this.$$d[s] = Te(s, a.value, this.$$p_d, "toProp"));
|
|
380
392
|
}
|
|
381
393
|
for (const a in this.$$p_d)
|
|
382
394
|
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
383
395
|
this.$$c = new this.$$ctor({
|
|
384
396
|
target: this.shadowRoot || this,
|
|
385
|
-
props:
|
|
397
|
+
props: st(at({}, this.$$d), {
|
|
386
398
|
$$slots: r,
|
|
387
399
|
$$scope: {
|
|
388
400
|
ctx: []
|
|
@@ -393,7 +405,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
393
405
|
this.$$r = !0;
|
|
394
406
|
for (const a in this.$$p_d)
|
|
395
407
|
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
396
|
-
const s =
|
|
408
|
+
const s = Te(
|
|
397
409
|
a,
|
|
398
410
|
this.$$d[a],
|
|
399
411
|
this.$$p_d,
|
|
@@ -417,7 +429,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
417
429
|
// and setting attributes through setAttribute etc, this is helpful
|
|
418
430
|
attributeChangedCallback(t, r, n) {
|
|
419
431
|
var i;
|
|
420
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
432
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Te(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
421
433
|
}
|
|
422
434
|
disconnectedCallback() {
|
|
423
435
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -430,7 +442,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
430
442
|
) || t;
|
|
431
443
|
}
|
|
432
444
|
});
|
|
433
|
-
function
|
|
445
|
+
function Te(e, t, r, n) {
|
|
434
446
|
var a;
|
|
435
447
|
const i = (a = r[e]) == null ? void 0 : a.type;
|
|
436
448
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -460,8 +472,8 @@ function Ee(e, t, r, n) {
|
|
|
460
472
|
return t;
|
|
461
473
|
}
|
|
462
474
|
}
|
|
463
|
-
function
|
|
464
|
-
let s = class extends
|
|
475
|
+
function Ur(e, t, r, n, i, a) {
|
|
476
|
+
let s = class extends Ut {
|
|
465
477
|
constructor() {
|
|
466
478
|
super(e, r, i), this.$$p_d = t;
|
|
467
479
|
}
|
|
@@ -476,22 +488,22 @@ function Or(e, t, r, n, i, a) {
|
|
|
476
488
|
get() {
|
|
477
489
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
478
490
|
},
|
|
479
|
-
set(
|
|
480
|
-
var
|
|
481
|
-
|
|
491
|
+
set(l) {
|
|
492
|
+
var u;
|
|
493
|
+
l = Te(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
482
494
|
}
|
|
483
495
|
});
|
|
484
496
|
}), n.forEach((o) => {
|
|
485
497
|
Object.defineProperty(s.prototype, o, {
|
|
486
498
|
get() {
|
|
487
|
-
var
|
|
488
|
-
return (
|
|
499
|
+
var l;
|
|
500
|
+
return (l = this.$$c) == null ? void 0 : l[o];
|
|
489
501
|
}
|
|
490
502
|
});
|
|
491
503
|
}), e.element = /** @type {any} */
|
|
492
504
|
s, s;
|
|
493
505
|
}
|
|
494
|
-
class
|
|
506
|
+
class Fr {
|
|
495
507
|
constructor() {
|
|
496
508
|
/**
|
|
497
509
|
* ### PRIVATE API
|
|
@@ -512,7 +524,7 @@ class Mr {
|
|
|
512
524
|
}
|
|
513
525
|
/** @returns {void} */
|
|
514
526
|
$destroy() {
|
|
515
|
-
|
|
527
|
+
Dr(this, 1), this.$destroy = O;
|
|
516
528
|
}
|
|
517
529
|
/**
|
|
518
530
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -521,7 +533,7 @@ class Mr {
|
|
|
521
533
|
* @returns {() => void}
|
|
522
534
|
*/
|
|
523
535
|
$on(t, r) {
|
|
524
|
-
if (!
|
|
536
|
+
if (!Qe(r))
|
|
525
537
|
return O;
|
|
526
538
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
527
539
|
return n.push(r), () => {
|
|
@@ -534,19 +546,19 @@ class Mr {
|
|
|
534
546
|
* @returns {void}
|
|
535
547
|
*/
|
|
536
548
|
$set(t) {
|
|
537
|
-
this.$$set && !
|
|
549
|
+
this.$$set && !yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
538
550
|
}
|
|
539
551
|
}
|
|
540
|
-
const
|
|
541
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
542
|
-
const
|
|
543
|
-
function
|
|
552
|
+
const zr = "4";
|
|
553
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zr);
|
|
554
|
+
const q = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
555
|
+
function $r(e, t) {
|
|
544
556
|
if (e) {
|
|
545
557
|
const r = document.createElement("style");
|
|
546
558
|
r.innerHTML = t, e.appendChild(r);
|
|
547
559
|
}
|
|
548
560
|
}
|
|
549
|
-
function
|
|
561
|
+
function Gr(e, t) {
|
|
550
562
|
if (!e || !t)
|
|
551
563
|
return;
|
|
552
564
|
const r = new URL(t);
|
|
@@ -557,32 +569,32 @@ function Rr(e, t) {
|
|
|
557
569
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
558
570
|
});
|
|
559
571
|
}
|
|
560
|
-
function
|
|
572
|
+
function jr(e, t, r, n = !1) {
|
|
561
573
|
if (!window.emMessageBus)
|
|
562
574
|
return;
|
|
563
575
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
564
|
-
return r =
|
|
565
|
-
window[
|
|
576
|
+
return r = Vr(e, t), r;
|
|
577
|
+
window[q] || (window[q] = {}), r = Wr(e, t);
|
|
566
578
|
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[
|
|
579
|
+
if (window[q][t]) {
|
|
580
|
+
const o = window[q][t];
|
|
581
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[q][t];
|
|
570
582
|
}
|
|
571
583
|
a();
|
|
572
584
|
};
|
|
573
585
|
return r.unsubscribe = s, r;
|
|
574
586
|
}
|
|
575
|
-
function
|
|
587
|
+
function Vr(e, t) {
|
|
576
588
|
const r = document.createElement("style");
|
|
577
589
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
578
590
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
579
591
|
});
|
|
580
592
|
}
|
|
581
|
-
function
|
|
593
|
+
function Wr(e, t) {
|
|
582
594
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
583
595
|
if (!e)
|
|
584
596
|
return;
|
|
585
|
-
const n = e.getRootNode(), i = window[
|
|
597
|
+
const n = e.getRootNode(), i = window[q];
|
|
586
598
|
let a = i[t] && i[t].sheet;
|
|
587
599
|
a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
|
|
588
600
|
sheet: a,
|
|
@@ -592,171 +604,171 @@ function zr(e, t) {
|
|
|
592
604
|
s.includes(a) || (n.adoptedStyleSheets = [...s, a]);
|
|
593
605
|
});
|
|
594
606
|
}
|
|
595
|
-
const
|
|
596
|
-
function
|
|
607
|
+
const W = [];
|
|
608
|
+
function Xr(e, t) {
|
|
597
609
|
return {
|
|
598
|
-
subscribe:
|
|
610
|
+
subscribe: He(e, t).subscribe
|
|
599
611
|
};
|
|
600
612
|
}
|
|
601
|
-
function
|
|
613
|
+
function He(e, t = O) {
|
|
602
614
|
let r;
|
|
603
615
|
const n = /* @__PURE__ */ new Set();
|
|
604
616
|
function i(o) {
|
|
605
|
-
if (
|
|
606
|
-
const
|
|
607
|
-
for (const
|
|
608
|
-
|
|
609
|
-
if (
|
|
610
|
-
for (let
|
|
611
|
-
|
|
612
|
-
|
|
617
|
+
if (Dt(e, o) && (e = o, r)) {
|
|
618
|
+
const l = !W.length;
|
|
619
|
+
for (const u of n)
|
|
620
|
+
u[1](), W.push(u, e);
|
|
621
|
+
if (l) {
|
|
622
|
+
for (let u = 0; u < W.length; u += 2)
|
|
623
|
+
W[u][0](W[u + 1]);
|
|
624
|
+
W.length = 0;
|
|
613
625
|
}
|
|
614
626
|
}
|
|
615
627
|
}
|
|
616
628
|
function a(o) {
|
|
617
629
|
i(o(e));
|
|
618
630
|
}
|
|
619
|
-
function s(o,
|
|
620
|
-
const
|
|
621
|
-
return n.add(
|
|
622
|
-
n.delete(
|
|
631
|
+
function s(o, l = O) {
|
|
632
|
+
const u = [o, l];
|
|
633
|
+
return n.add(u), n.size === 1 && (r = t(i, a) || O), o(e), () => {
|
|
634
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
623
635
|
};
|
|
624
636
|
}
|
|
625
637
|
return { set: i, update: a, subscribe: s };
|
|
626
638
|
}
|
|
627
|
-
function
|
|
639
|
+
function ie(e, t, r) {
|
|
628
640
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
629
641
|
if (!i.every(Boolean))
|
|
630
642
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
631
643
|
const a = t.length < 2;
|
|
632
|
-
return
|
|
633
|
-
let
|
|
634
|
-
const
|
|
644
|
+
return Xr(r, (s, o) => {
|
|
645
|
+
let l = !1;
|
|
646
|
+
const u = [];
|
|
635
647
|
let c = 0, h = O;
|
|
636
648
|
const d = () => {
|
|
637
649
|
if (c)
|
|
638
650
|
return;
|
|
639
651
|
h();
|
|
640
|
-
const
|
|
641
|
-
a ? s(
|
|
642
|
-
},
|
|
643
|
-
(
|
|
644
|
-
|
|
645
|
-
(
|
|
646
|
-
|
|
652
|
+
const g = t(n ? u[0] : u, s, o);
|
|
653
|
+
a ? s(g) : h = Qe(g) ? g : O;
|
|
654
|
+
}, m = i.map(
|
|
655
|
+
(g, T) => Nt(
|
|
656
|
+
g,
|
|
657
|
+
(E) => {
|
|
658
|
+
u[T] = E, c &= ~(1 << T), l && d();
|
|
647
659
|
},
|
|
648
660
|
() => {
|
|
649
|
-
c |= 1 <<
|
|
661
|
+
c |= 1 << T;
|
|
650
662
|
}
|
|
651
663
|
)
|
|
652
664
|
);
|
|
653
|
-
return
|
|
654
|
-
|
|
665
|
+
return l = !0, d(), function() {
|
|
666
|
+
ne(m), h(), l = !1;
|
|
655
667
|
};
|
|
656
668
|
});
|
|
657
669
|
}
|
|
658
|
-
function
|
|
670
|
+
function qr(e) {
|
|
659
671
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
660
672
|
}
|
|
661
|
-
var
|
|
662
|
-
return
|
|
673
|
+
var Jr = function(t) {
|
|
674
|
+
return Kr(t) && !Zr(t);
|
|
663
675
|
};
|
|
664
|
-
function
|
|
676
|
+
function Kr(e) {
|
|
665
677
|
return !!e && typeof e == "object";
|
|
666
678
|
}
|
|
667
|
-
function
|
|
679
|
+
function Zr(e) {
|
|
668
680
|
var t = Object.prototype.toString.call(e);
|
|
669
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
681
|
+
return t === "[object RegExp]" || t === "[object Date]" || en(e);
|
|
670
682
|
}
|
|
671
|
-
var
|
|
672
|
-
function
|
|
673
|
-
return e.$$typeof ===
|
|
683
|
+
var Yr = typeof Symbol == "function" && Symbol.for, Qr = Yr ? Symbol.for("react.element") : 60103;
|
|
684
|
+
function en(e) {
|
|
685
|
+
return e.$$typeof === Qr;
|
|
674
686
|
}
|
|
675
|
-
function
|
|
687
|
+
function tn(e) {
|
|
676
688
|
return Array.isArray(e) ? [] : {};
|
|
677
689
|
}
|
|
678
|
-
function
|
|
679
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
690
|
+
function he(e, t) {
|
|
691
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(tn(e), e, t) : e;
|
|
680
692
|
}
|
|
681
|
-
function
|
|
693
|
+
function rn(e, t, r) {
|
|
682
694
|
return e.concat(t).map(function(n) {
|
|
683
|
-
return
|
|
695
|
+
return he(n, r);
|
|
684
696
|
});
|
|
685
697
|
}
|
|
686
|
-
function
|
|
698
|
+
function nn(e, t) {
|
|
687
699
|
if (!t.customMerge)
|
|
688
|
-
return
|
|
700
|
+
return Q;
|
|
689
701
|
var r = t.customMerge(e);
|
|
690
|
-
return typeof r == "function" ? r :
|
|
702
|
+
return typeof r == "function" ? r : Q;
|
|
691
703
|
}
|
|
692
|
-
function
|
|
704
|
+
function an(e) {
|
|
693
705
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
694
706
|
return Object.propertyIsEnumerable.call(e, t);
|
|
695
707
|
}) : [];
|
|
696
708
|
}
|
|
697
|
-
function
|
|
698
|
-
return Object.keys(e).concat(
|
|
709
|
+
function ht(e) {
|
|
710
|
+
return Object.keys(e).concat(an(e));
|
|
699
711
|
}
|
|
700
|
-
function
|
|
712
|
+
function Ft(e, t) {
|
|
701
713
|
try {
|
|
702
714
|
return t in e;
|
|
703
715
|
} catch (r) {
|
|
704
716
|
return !1;
|
|
705
717
|
}
|
|
706
718
|
}
|
|
707
|
-
function
|
|
708
|
-
return
|
|
719
|
+
function sn(e, t) {
|
|
720
|
+
return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
709
721
|
}
|
|
710
|
-
function
|
|
722
|
+
function on(e, t, r) {
|
|
711
723
|
var n = {};
|
|
712
|
-
return r.isMergeableObject(e) &&
|
|
713
|
-
n[i] =
|
|
714
|
-
}),
|
|
715
|
-
|
|
724
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
725
|
+
n[i] = he(e[i], r);
|
|
726
|
+
}), ht(t).forEach(function(i) {
|
|
727
|
+
sn(e, i) || (Ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = nn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
|
716
728
|
}), n;
|
|
717
729
|
}
|
|
718
|
-
function
|
|
719
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
730
|
+
function Q(e, t, r) {
|
|
731
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = he;
|
|
720
732
|
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
721
|
-
return a ? n ? r.arrayMerge(e, t, r) :
|
|
733
|
+
return a ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : he(t, r);
|
|
722
734
|
}
|
|
723
|
-
|
|
735
|
+
Q.all = function(t, r) {
|
|
724
736
|
if (!Array.isArray(t))
|
|
725
737
|
throw new Error("first argument should be an array");
|
|
726
738
|
return t.reduce(function(n, i) {
|
|
727
|
-
return
|
|
739
|
+
return Q(n, i, r);
|
|
728
740
|
}, {});
|
|
729
741
|
};
|
|
730
|
-
var
|
|
731
|
-
const
|
|
732
|
-
var
|
|
733
|
-
return
|
|
742
|
+
var ln = Q, un = ln;
|
|
743
|
+
const cn = /* @__PURE__ */ qr(un);
|
|
744
|
+
var Ve = function(e, t) {
|
|
745
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
734
746
|
r.__proto__ = n;
|
|
735
747
|
} || function(r, n) {
|
|
736
748
|
for (var i in n)
|
|
737
749
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
738
|
-
},
|
|
750
|
+
}, Ve(e, t);
|
|
739
751
|
};
|
|
740
|
-
function
|
|
752
|
+
function Ce(e, t) {
|
|
741
753
|
if (typeof t != "function" && t !== null)
|
|
742
754
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
743
|
-
|
|
755
|
+
Ve(e, t);
|
|
744
756
|
function r() {
|
|
745
757
|
this.constructor = e;
|
|
746
758
|
}
|
|
747
759
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
748
760
|
}
|
|
749
|
-
var
|
|
750
|
-
return
|
|
761
|
+
var L = function() {
|
|
762
|
+
return L = Object.assign || function(t) {
|
|
751
763
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
752
764
|
r = arguments[n];
|
|
753
765
|
for (var a in r)
|
|
754
766
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
755
767
|
}
|
|
756
768
|
return t;
|
|
757
|
-
},
|
|
769
|
+
}, L.apply(this, arguments);
|
|
758
770
|
};
|
|
759
|
-
function
|
|
771
|
+
function hn(e, t) {
|
|
760
772
|
var r = {};
|
|
761
773
|
for (var n in e)
|
|
762
774
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -765,43 +777,43 @@ function sn(e, t) {
|
|
|
765
777
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
766
778
|
return r;
|
|
767
779
|
}
|
|
768
|
-
function
|
|
780
|
+
function De(e, t, r) {
|
|
769
781
|
if (r || arguments.length === 2)
|
|
770
782
|
for (var n = 0, i = t.length, a; n < i; n++)
|
|
771
783
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
772
784
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
773
785
|
}
|
|
774
|
-
function
|
|
775
|
-
var r = t && t.cache ? t.cache :
|
|
786
|
+
function Ne(e, t) {
|
|
787
|
+
var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : mn;
|
|
776
788
|
return i(e, {
|
|
777
789
|
cache: r,
|
|
778
790
|
serializer: n
|
|
779
791
|
});
|
|
780
792
|
}
|
|
781
|
-
function
|
|
793
|
+
function dn(e) {
|
|
782
794
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
783
795
|
}
|
|
784
|
-
function
|
|
785
|
-
var i =
|
|
796
|
+
function fn(e, t, r, n) {
|
|
797
|
+
var i = dn(n) ? n : r(n), a = t.get(i);
|
|
786
798
|
return typeof a == "undefined" && (a = e.call(this, n), t.set(i, a)), a;
|
|
787
799
|
}
|
|
788
|
-
function
|
|
800
|
+
function zt(e, t, r) {
|
|
789
801
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
790
802
|
return typeof a == "undefined" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
791
803
|
}
|
|
792
|
-
function
|
|
804
|
+
function $t(e, t, r, n, i) {
|
|
793
805
|
return r.bind(t, e, n, i);
|
|
794
806
|
}
|
|
795
|
-
function
|
|
796
|
-
var r = e.length === 1 ?
|
|
797
|
-
return
|
|
807
|
+
function mn(e, t) {
|
|
808
|
+
var r = e.length === 1 ? fn : zt;
|
|
809
|
+
return $t(e, this, r, t.cache.create(), t.serializer);
|
|
798
810
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
811
|
+
function gn(e, t) {
|
|
812
|
+
return $t(e, this, zt, t.cache.create(), t.serializer);
|
|
801
813
|
}
|
|
802
|
-
var
|
|
814
|
+
var pn = function() {
|
|
803
815
|
return JSON.stringify(arguments);
|
|
804
|
-
},
|
|
816
|
+
}, bn = (
|
|
805
817
|
/** @class */
|
|
806
818
|
function() {
|
|
807
819
|
function e() {
|
|
@@ -813,71 +825,71 @@ var hn = function() {
|
|
|
813
825
|
this.cache[t] = r;
|
|
814
826
|
}, e;
|
|
815
827
|
}()
|
|
816
|
-
),
|
|
828
|
+
), vn = {
|
|
817
829
|
create: function() {
|
|
818
|
-
return new
|
|
830
|
+
return new bn();
|
|
819
831
|
}
|
|
820
|
-
},
|
|
821
|
-
variadic:
|
|
822
|
-
},
|
|
823
|
-
return
|
|
832
|
+
}, Re = {
|
|
833
|
+
variadic: gn
|
|
834
|
+
}, Se = function() {
|
|
835
|
+
return Se = Object.assign || function(t) {
|
|
824
836
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
825
837
|
r = arguments[n];
|
|
826
838
|
for (var a in r)
|
|
827
839
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
828
840
|
}
|
|
829
841
|
return t;
|
|
830
|
-
},
|
|
842
|
+
}, Se.apply(this, arguments);
|
|
831
843
|
};
|
|
832
844
|
var p;
|
|
833
845
|
(function(e) {
|
|
834
846
|
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
847
|
})(p || (p = {}));
|
|
836
|
-
var
|
|
848
|
+
var _;
|
|
837
849
|
(function(e) {
|
|
838
850
|
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
|
-
})(
|
|
840
|
-
var
|
|
851
|
+
})(_ || (_ = {}));
|
|
852
|
+
var ee;
|
|
841
853
|
(function(e) {
|
|
842
854
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
843
|
-
})(
|
|
844
|
-
function
|
|
845
|
-
return e.type ===
|
|
855
|
+
})(ee || (ee = {}));
|
|
856
|
+
function dt(e) {
|
|
857
|
+
return e.type === _.literal;
|
|
846
858
|
}
|
|
847
|
-
function
|
|
848
|
-
return e.type ===
|
|
859
|
+
function yn(e) {
|
|
860
|
+
return e.type === _.argument;
|
|
849
861
|
}
|
|
850
|
-
function
|
|
851
|
-
return e.type ===
|
|
862
|
+
function Gt(e) {
|
|
863
|
+
return e.type === _.number;
|
|
852
864
|
}
|
|
853
|
-
function
|
|
854
|
-
return e.type ===
|
|
865
|
+
function jt(e) {
|
|
866
|
+
return e.type === _.date;
|
|
855
867
|
}
|
|
856
|
-
function
|
|
857
|
-
return e.type ===
|
|
868
|
+
function Vt(e) {
|
|
869
|
+
return e.type === _.time;
|
|
858
870
|
}
|
|
859
|
-
function
|
|
860
|
-
return e.type ===
|
|
871
|
+
function Wt(e) {
|
|
872
|
+
return e.type === _.select;
|
|
861
873
|
}
|
|
862
|
-
function
|
|
863
|
-
return e.type ===
|
|
874
|
+
function Xt(e) {
|
|
875
|
+
return e.type === _.plural;
|
|
864
876
|
}
|
|
865
|
-
function
|
|
866
|
-
return e.type ===
|
|
877
|
+
function En(e) {
|
|
878
|
+
return e.type === _.pound;
|
|
867
879
|
}
|
|
868
|
-
function
|
|
869
|
-
return e.type ===
|
|
880
|
+
function qt(e) {
|
|
881
|
+
return e.type === _.tag;
|
|
870
882
|
}
|
|
871
|
-
function
|
|
872
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
883
|
+
function Jt(e) {
|
|
884
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
873
885
|
}
|
|
874
|
-
function
|
|
875
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
886
|
+
function We(e) {
|
|
887
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
876
888
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
889
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
890
|
+
function xn(e) {
|
|
879
891
|
var t = {};
|
|
880
|
-
return e.replace(
|
|
892
|
+
return e.replace(_n, function(r) {
|
|
881
893
|
var n = r.length;
|
|
882
894
|
switch (r[0]) {
|
|
883
895
|
case "G":
|
|
@@ -966,46 +978,46 @@ function bn(e) {
|
|
|
966
978
|
return "";
|
|
967
979
|
}), t;
|
|
968
980
|
}
|
|
969
|
-
var
|
|
970
|
-
return
|
|
981
|
+
var x = function() {
|
|
982
|
+
return x = Object.assign || function(t) {
|
|
971
983
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
972
984
|
r = arguments[n];
|
|
973
985
|
for (var a in r)
|
|
974
986
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
975
987
|
}
|
|
976
988
|
return t;
|
|
977
|
-
},
|
|
989
|
+
}, x.apply(this, arguments);
|
|
978
990
|
};
|
|
979
|
-
var
|
|
980
|
-
function
|
|
991
|
+
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
992
|
+
function kn(e) {
|
|
981
993
|
if (e.length === 0)
|
|
982
994
|
throw new Error("Number skeleton cannot be empty");
|
|
983
|
-
for (var t = e.split(
|
|
995
|
+
for (var t = e.split(Tn).filter(function(d) {
|
|
984
996
|
return d.length > 0;
|
|
985
997
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
986
998
|
var a = i[n], s = a.split("/");
|
|
987
999
|
if (s.length === 0)
|
|
988
1000
|
throw new Error("Invalid number skeleton");
|
|
989
|
-
for (var o = s[0],
|
|
990
|
-
var h = c[
|
|
1001
|
+
for (var o = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
|
|
1002
|
+
var h = c[u];
|
|
991
1003
|
if (h.length === 0)
|
|
992
1004
|
throw new Error("Invalid number skeleton");
|
|
993
1005
|
}
|
|
994
|
-
r.push({ stem: o, options:
|
|
1006
|
+
r.push({ stem: o, options: l });
|
|
995
1007
|
}
|
|
996
1008
|
return r;
|
|
997
1009
|
}
|
|
998
|
-
function
|
|
1010
|
+
function wn(e) {
|
|
999
1011
|
return e.replace(/^(.*?)-/, "");
|
|
1000
1012
|
}
|
|
1001
|
-
var
|
|
1002
|
-
function
|
|
1013
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1014
|
+
function mt(e) {
|
|
1003
1015
|
var t = {};
|
|
1004
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1016
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1005
1017
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1006
1018
|
}), t;
|
|
1007
1019
|
}
|
|
1008
|
-
function
|
|
1020
|
+
function Qt(e) {
|
|
1009
1021
|
switch (e) {
|
|
1010
1022
|
case "sign-auto":
|
|
1011
1023
|
return {
|
|
@@ -1045,7 +1057,7 @@ function qt(e) {
|
|
|
1045
1057
|
};
|
|
1046
1058
|
}
|
|
1047
1059
|
}
|
|
1048
|
-
function
|
|
1060
|
+
function An(e) {
|
|
1049
1061
|
var t;
|
|
1050
1062
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1051
1063
|
notation: "engineering"
|
|
@@ -1053,17 +1065,17 @@ function xn(e) {
|
|
|
1053
1065
|
notation: "scientific"
|
|
1054
1066
|
}, e = e.slice(1)), t) {
|
|
1055
1067
|
var r = e.slice(0, 2);
|
|
1056
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1068
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1057
1069
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1058
1070
|
t.minimumIntegerDigits = e.length;
|
|
1059
1071
|
}
|
|
1060
1072
|
return t;
|
|
1061
1073
|
}
|
|
1062
|
-
function
|
|
1063
|
-
var t = {}, r =
|
|
1074
|
+
function gt(e) {
|
|
1075
|
+
var t = {}, r = Qt(e);
|
|
1064
1076
|
return r || t;
|
|
1065
1077
|
}
|
|
1066
|
-
function
|
|
1078
|
+
function In(e) {
|
|
1067
1079
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1068
1080
|
var i = n[r];
|
|
1069
1081
|
switch (i.stem) {
|
|
@@ -1087,7 +1099,7 @@ function Tn(e) {
|
|
|
1087
1099
|
continue;
|
|
1088
1100
|
case "measure-unit":
|
|
1089
1101
|
case "unit":
|
|
1090
|
-
t.style = "unit", t.unit =
|
|
1102
|
+
t.style = "unit", t.unit = wn(i.options[0]);
|
|
1091
1103
|
continue;
|
|
1092
1104
|
case "compact-short":
|
|
1093
1105
|
case "K":
|
|
@@ -1098,13 +1110,13 @@ function Tn(e) {
|
|
|
1098
1110
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1099
1111
|
continue;
|
|
1100
1112
|
case "scientific":
|
|
1101
|
-
t =
|
|
1102
|
-
return
|
|
1113
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1114
|
+
return x(x({}, l), gt(u));
|
|
1103
1115
|
}, {}));
|
|
1104
1116
|
continue;
|
|
1105
1117
|
case "engineering":
|
|
1106
|
-
t =
|
|
1107
|
-
return
|
|
1118
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1119
|
+
return x(x({}, l), gt(u));
|
|
1108
1120
|
}, {}));
|
|
1109
1121
|
continue;
|
|
1110
1122
|
case "notation-simple":
|
|
@@ -1149,45 +1161,45 @@ function Tn(e) {
|
|
|
1149
1161
|
case "integer-width":
|
|
1150
1162
|
if (i.options.length > 1)
|
|
1151
1163
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1152
|
-
i.options[0].replace(
|
|
1153
|
-
if (
|
|
1164
|
+
i.options[0].replace(Sn, function(l, u, c, h, d, m) {
|
|
1165
|
+
if (u)
|
|
1154
1166
|
t.minimumIntegerDigits = c.length;
|
|
1155
1167
|
else {
|
|
1156
1168
|
if (h && d)
|
|
1157
1169
|
throw new Error("We currently do not support maximum integer digits");
|
|
1158
|
-
if (
|
|
1170
|
+
if (m)
|
|
1159
1171
|
throw new Error("We currently do not support exact integer digits");
|
|
1160
1172
|
}
|
|
1161
1173
|
return "";
|
|
1162
1174
|
});
|
|
1163
1175
|
continue;
|
|
1164
1176
|
}
|
|
1165
|
-
if (
|
|
1177
|
+
if (Yt.test(i.stem)) {
|
|
1166
1178
|
t.minimumIntegerDigits = i.stem.length;
|
|
1167
1179
|
continue;
|
|
1168
1180
|
}
|
|
1169
|
-
if (
|
|
1181
|
+
if (ft.test(i.stem)) {
|
|
1170
1182
|
if (i.options.length > 1)
|
|
1171
1183
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1172
|
-
i.stem.replace(
|
|
1173
|
-
return c === "*" ? t.minimumFractionDigits =
|
|
1184
|
+
i.stem.replace(ft, function(l, u, c, h, d, m) {
|
|
1185
|
+
return c === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && m ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1174
1186
|
});
|
|
1175
1187
|
var a = i.options[0];
|
|
1176
|
-
a === "w" ? t =
|
|
1188
|
+
a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), mt(a)));
|
|
1177
1189
|
continue;
|
|
1178
1190
|
}
|
|
1179
|
-
if (
|
|
1180
|
-
t =
|
|
1191
|
+
if (Zt.test(i.stem)) {
|
|
1192
|
+
t = x(x({}, t), mt(i.stem));
|
|
1181
1193
|
continue;
|
|
1182
1194
|
}
|
|
1183
|
-
var s =
|
|
1184
|
-
s && (t =
|
|
1185
|
-
var o =
|
|
1186
|
-
o && (t =
|
|
1195
|
+
var s = Qt(i.stem);
|
|
1196
|
+
s && (t = x(x({}, t), s));
|
|
1197
|
+
var o = An(i.stem);
|
|
1198
|
+
o && (t = x(x({}, t), o));
|
|
1187
1199
|
}
|
|
1188
1200
|
return t;
|
|
1189
1201
|
}
|
|
1190
|
-
var
|
|
1202
|
+
var _e = {
|
|
1191
1203
|
"001": [
|
|
1192
1204
|
"H",
|
|
1193
1205
|
"h"
|
|
@@ -2602,23 +2614,23 @@ var ve = {
|
|
|
2602
2614
|
"h"
|
|
2603
2615
|
]
|
|
2604
2616
|
};
|
|
2605
|
-
function
|
|
2617
|
+
function Bn(e, t) {
|
|
2606
2618
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2607
2619
|
var i = e.charAt(n);
|
|
2608
2620
|
if (i === "j") {
|
|
2609
2621
|
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2610
2622
|
a++, n++;
|
|
2611
|
-
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1),
|
|
2612
|
-
for ((
|
|
2613
|
-
r +=
|
|
2623
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = Hn(t);
|
|
2624
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2625
|
+
r += l;
|
|
2614
2626
|
for (; s-- > 0; )
|
|
2615
|
-
r =
|
|
2627
|
+
r = u + r;
|
|
2616
2628
|
} else
|
|
2617
2629
|
i === "J" ? r += "H" : r += i;
|
|
2618
2630
|
}
|
|
2619
2631
|
return r;
|
|
2620
2632
|
}
|
|
2621
|
-
function
|
|
2633
|
+
function Hn(e) {
|
|
2622
2634
|
var t = e.hourCycle;
|
|
2623
2635
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2624
2636
|
e.hourCycles && // @ts-ignore
|
|
@@ -2637,23 +2649,23 @@ function wn(e) {
|
|
|
2637
2649
|
}
|
|
2638
2650
|
var r = e.language, n;
|
|
2639
2651
|
r !== "root" && (n = e.maximize().region);
|
|
2640
|
-
var i =
|
|
2652
|
+
var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
|
|
2641
2653
|
return i[0];
|
|
2642
2654
|
}
|
|
2643
|
-
var
|
|
2644
|
-
function
|
|
2655
|
+
var Ue, Cn = new RegExp("^".concat(Kt.source, "*")), Ln = new RegExp("".concat(Kt.source, "*$"));
|
|
2656
|
+
function v(e, t) {
|
|
2645
2657
|
return { start: e, end: t };
|
|
2646
2658
|
}
|
|
2647
|
-
var
|
|
2659
|
+
var Pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, Mn = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Fn = Un ? Number.isSafeInteger : function(e) {
|
|
2648
2660
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2649
|
-
},
|
|
2661
|
+
}, Xe = !0;
|
|
2650
2662
|
try {
|
|
2651
|
-
var
|
|
2652
|
-
|
|
2663
|
+
var zn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2664
|
+
Xe = ((Ue = zn.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2653
2665
|
} catch (e) {
|
|
2654
|
-
|
|
2666
|
+
Xe = !1;
|
|
2655
2667
|
}
|
|
2656
|
-
var
|
|
2668
|
+
var pt = Pn ? (
|
|
2657
2669
|
// Native
|
|
2658
2670
|
function(t, r, n) {
|
|
2659
2671
|
return t.startsWith(r, n);
|
|
@@ -2663,7 +2675,7 @@ var dt = In ? (
|
|
|
2663
2675
|
function(t, r, n) {
|
|
2664
2676
|
return t.slice(n, n + r.length) === r;
|
|
2665
2677
|
}
|
|
2666
|
-
),
|
|
2678
|
+
), qe = On ? String.fromCodePoint : (
|
|
2667
2679
|
// IE11
|
|
2668
2680
|
function() {
|
|
2669
2681
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2675,9 +2687,9 @@ var dt = In ? (
|
|
|
2675
2687
|
}
|
|
2676
2688
|
return n;
|
|
2677
2689
|
}
|
|
2678
|
-
),
|
|
2690
|
+
), bt = (
|
|
2679
2691
|
// native
|
|
2680
|
-
|
|
2692
|
+
Mn ? Object.fromEntries : (
|
|
2681
2693
|
// Ponyfill
|
|
2682
2694
|
function(t) {
|
|
2683
2695
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2687,7 +2699,7 @@ var dt = In ? (
|
|
|
2687
2699
|
return r;
|
|
2688
2700
|
}
|
|
2689
2701
|
)
|
|
2690
|
-
),
|
|
2702
|
+
), er = Dn ? (
|
|
2691
2703
|
// Native
|
|
2692
2704
|
function(t, r) {
|
|
2693
2705
|
return t.codePointAt(r);
|
|
@@ -2701,7 +2713,7 @@ var dt = In ? (
|
|
|
2701
2713
|
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2702
2714
|
}
|
|
2703
2715
|
}
|
|
2704
|
-
),
|
|
2716
|
+
), $n = Nn ? (
|
|
2705
2717
|
// Native
|
|
2706
2718
|
function(t) {
|
|
2707
2719
|
return t.trimStart();
|
|
@@ -2709,9 +2721,9 @@ var dt = In ? (
|
|
|
2709
2721
|
) : (
|
|
2710
2722
|
// Ponyfill
|
|
2711
2723
|
function(t) {
|
|
2712
|
-
return t.replace(
|
|
2724
|
+
return t.replace(Cn, "");
|
|
2713
2725
|
}
|
|
2714
|
-
),
|
|
2726
|
+
), Gn = Rn ? (
|
|
2715
2727
|
// Native
|
|
2716
2728
|
function(t) {
|
|
2717
2729
|
return t.trimEnd();
|
|
@@ -2719,32 +2731,32 @@ var dt = In ? (
|
|
|
2719
2731
|
) : (
|
|
2720
2732
|
// Ponyfill
|
|
2721
2733
|
function(t) {
|
|
2722
|
-
return t.replace(
|
|
2734
|
+
return t.replace(Ln, "");
|
|
2723
2735
|
}
|
|
2724
2736
|
);
|
|
2725
|
-
function
|
|
2737
|
+
function tr(e, t) {
|
|
2726
2738
|
return new RegExp(e, t);
|
|
2727
2739
|
}
|
|
2728
|
-
var
|
|
2729
|
-
if (
|
|
2730
|
-
var
|
|
2731
|
-
|
|
2740
|
+
var Je;
|
|
2741
|
+
if (Xe) {
|
|
2742
|
+
var vt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2743
|
+
Je = function(t, r) {
|
|
2732
2744
|
var n;
|
|
2733
|
-
|
|
2734
|
-
var i =
|
|
2745
|
+
vt.lastIndex = r;
|
|
2746
|
+
var i = vt.exec(t);
|
|
2735
2747
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2736
2748
|
};
|
|
2737
2749
|
} else
|
|
2738
|
-
|
|
2750
|
+
Je = function(t, r) {
|
|
2739
2751
|
for (var n = []; ; ) {
|
|
2740
|
-
var i =
|
|
2741
|
-
if (i === void 0 ||
|
|
2752
|
+
var i = er(t, r);
|
|
2753
|
+
if (i === void 0 || rr(i) || Xn(i))
|
|
2742
2754
|
break;
|
|
2743
2755
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2744
2756
|
}
|
|
2745
|
-
return
|
|
2757
|
+
return qe.apply(void 0, n);
|
|
2746
2758
|
};
|
|
2747
|
-
var
|
|
2759
|
+
var jn = (
|
|
2748
2760
|
/** @class */
|
|
2749
2761
|
function() {
|
|
2750
2762
|
function e(t, r) {
|
|
@@ -2768,14 +2780,14 @@ var Un = (
|
|
|
2768
2780
|
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2769
2781
|
var o = this.clonePosition();
|
|
2770
2782
|
this.bump(), i.push({
|
|
2771
|
-
type:
|
|
2772
|
-
location:
|
|
2783
|
+
type: _.pound,
|
|
2784
|
+
location: v(o, this.clonePosition())
|
|
2773
2785
|
});
|
|
2774
2786
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2775
2787
|
if (n)
|
|
2776
2788
|
break;
|
|
2777
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
2778
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2789
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2790
|
+
} else if (a === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
2779
2791
|
var s = this.parseTag(t, r);
|
|
2780
2792
|
if (s.err)
|
|
2781
2793
|
return s;
|
|
@@ -2796,9 +2808,9 @@ var Un = (
|
|
|
2796
2808
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2797
2809
|
return {
|
|
2798
2810
|
val: {
|
|
2799
|
-
type:
|
|
2811
|
+
type: _.literal,
|
|
2800
2812
|
value: "<".concat(i, "/>"),
|
|
2801
|
-
location:
|
|
2813
|
+
location: v(n, this.clonePosition())
|
|
2802
2814
|
},
|
|
2803
2815
|
err: null
|
|
2804
2816
|
};
|
|
@@ -2808,25 +2820,25 @@ var Un = (
|
|
|
2808
2820
|
return a;
|
|
2809
2821
|
var s = a.val, o = this.clonePosition();
|
|
2810
2822
|
if (this.bumpIf("</")) {
|
|
2811
|
-
if (this.isEOF() || !
|
|
2812
|
-
return this.error(p.INVALID_TAG,
|
|
2813
|
-
var
|
|
2814
|
-
return i !==
|
|
2823
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
2824
|
+
return this.error(p.INVALID_TAG, v(o, this.clonePosition()));
|
|
2825
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2826
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2815
2827
|
val: {
|
|
2816
|
-
type:
|
|
2828
|
+
type: _.tag,
|
|
2817
2829
|
value: i,
|
|
2818
2830
|
children: s,
|
|
2819
|
-
location:
|
|
2831
|
+
location: v(n, this.clonePosition())
|
|
2820
2832
|
},
|
|
2821
2833
|
err: null
|
|
2822
|
-
} : this.error(p.INVALID_TAG,
|
|
2834
|
+
} : this.error(p.INVALID_TAG, v(o, this.clonePosition())));
|
|
2823
2835
|
} else
|
|
2824
|
-
return this.error(p.UNCLOSED_TAG,
|
|
2836
|
+
return this.error(p.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
2825
2837
|
} else
|
|
2826
|
-
return this.error(p.INVALID_TAG,
|
|
2838
|
+
return this.error(p.INVALID_TAG, v(n, this.clonePosition()));
|
|
2827
2839
|
}, e.prototype.parseTagName = function() {
|
|
2828
2840
|
var t = this.offset();
|
|
2829
|
-
for (this.bump(); !this.isEOF() &&
|
|
2841
|
+
for (this.bump(); !this.isEOF() && Wn(this.char()); )
|
|
2830
2842
|
this.bump();
|
|
2831
2843
|
return this.message.slice(t, this.offset());
|
|
2832
2844
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2848,14 +2860,14 @@ var Un = (
|
|
|
2848
2860
|
}
|
|
2849
2861
|
break;
|
|
2850
2862
|
}
|
|
2851
|
-
var
|
|
2863
|
+
var l = v(n, this.clonePosition());
|
|
2852
2864
|
return {
|
|
2853
|
-
val: { type:
|
|
2865
|
+
val: { type: _.literal, value: i, location: l },
|
|
2854
2866
|
err: null
|
|
2855
2867
|
};
|
|
2856
2868
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2857
2869
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2858
|
-
!
|
|
2870
|
+
!Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2859
2871
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2860
2872
|
if (this.isEOF() || this.char() !== 39)
|
|
2861
2873
|
return null;
|
|
@@ -2889,100 +2901,100 @@ var Un = (
|
|
|
2889
2901
|
r.push(n);
|
|
2890
2902
|
this.bump();
|
|
2891
2903
|
}
|
|
2892
|
-
return
|
|
2904
|
+
return qe.apply(void 0, r);
|
|
2893
2905
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2894
2906
|
if (this.isEOF())
|
|
2895
2907
|
return null;
|
|
2896
2908
|
var n = this.char();
|
|
2897
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2909
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
2898
2910
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2899
2911
|
var n = this.clonePosition();
|
|
2900
2912
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2901
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2913
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2902
2914
|
if (this.char() === 125)
|
|
2903
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
2915
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
2904
2916
|
var i = this.parseIdentifierIfPossible().value;
|
|
2905
2917
|
if (!i)
|
|
2906
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2918
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2907
2919
|
if (this.bumpSpace(), this.isEOF())
|
|
2908
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2920
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2909
2921
|
switch (this.char()) {
|
|
2910
2922
|
case 125:
|
|
2911
2923
|
return this.bump(), {
|
|
2912
2924
|
val: {
|
|
2913
|
-
type:
|
|
2925
|
+
type: _.argument,
|
|
2914
2926
|
// value does not include the opening and closing braces.
|
|
2915
2927
|
value: i,
|
|
2916
|
-
location:
|
|
2928
|
+
location: v(n, this.clonePosition())
|
|
2917
2929
|
},
|
|
2918
2930
|
err: null
|
|
2919
2931
|
};
|
|
2920
2932
|
case 44:
|
|
2921
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2933
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2922
2934
|
default:
|
|
2923
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2935
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2924
2936
|
}
|
|
2925
2937
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2926
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2938
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
2927
2939
|
this.bumpTo(i);
|
|
2928
|
-
var a = this.clonePosition(), s =
|
|
2940
|
+
var a = this.clonePosition(), s = v(t, a);
|
|
2929
2941
|
return { value: n, location: s };
|
|
2930
2942
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2931
|
-
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value,
|
|
2943
|
+
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2932
2944
|
switch (o) {
|
|
2933
2945
|
case "":
|
|
2934
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
2946
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
2935
2947
|
case "number":
|
|
2936
2948
|
case "date":
|
|
2937
2949
|
case "time": {
|
|
2938
2950
|
this.bumpSpace();
|
|
2939
|
-
var
|
|
2951
|
+
var u = null;
|
|
2940
2952
|
if (this.bumpIf(",")) {
|
|
2941
2953
|
this.bumpSpace();
|
|
2942
2954
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2943
2955
|
if (h.err)
|
|
2944
2956
|
return h;
|
|
2945
|
-
var d =
|
|
2957
|
+
var d = Gn(h.val);
|
|
2946
2958
|
if (d.length === 0)
|
|
2947
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
2948
|
-
var
|
|
2949
|
-
|
|
2959
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2960
|
+
var m = v(c, this.clonePosition());
|
|
2961
|
+
u = { style: d, styleLocation: m };
|
|
2950
2962
|
}
|
|
2951
|
-
var
|
|
2952
|
-
if (
|
|
2953
|
-
return
|
|
2954
|
-
var
|
|
2955
|
-
if (
|
|
2956
|
-
var
|
|
2963
|
+
var g = this.tryParseArgumentClose(i);
|
|
2964
|
+
if (g.err)
|
|
2965
|
+
return g;
|
|
2966
|
+
var T = v(i, this.clonePosition());
|
|
2967
|
+
if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2968
|
+
var E = $n(u.style.slice(2));
|
|
2957
2969
|
if (o === "number") {
|
|
2958
|
-
var h = this.parseNumberSkeletonFromString(
|
|
2970
|
+
var h = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2959
2971
|
return h.err ? h : {
|
|
2960
|
-
val: { type:
|
|
2972
|
+
val: { type: _.number, value: n, location: T, style: h.val },
|
|
2961
2973
|
err: null
|
|
2962
2974
|
};
|
|
2963
2975
|
} else {
|
|
2964
|
-
if (
|
|
2965
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
2966
|
-
var
|
|
2967
|
-
this.locale && (
|
|
2976
|
+
if (E.length === 0)
|
|
2977
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, T);
|
|
2978
|
+
var f = E;
|
|
2979
|
+
this.locale && (f = Bn(E, this.locale));
|
|
2968
2980
|
var d = {
|
|
2969
|
-
type:
|
|
2970
|
-
pattern:
|
|
2971
|
-
location:
|
|
2972
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2973
|
-
},
|
|
2981
|
+
type: ee.dateTime,
|
|
2982
|
+
pattern: f,
|
|
2983
|
+
location: u.styleLocation,
|
|
2984
|
+
parsedOptions: this.shouldParseSkeletons ? xn(f) : {}
|
|
2985
|
+
}, y = o === "date" ? _.date : _.time;
|
|
2974
2986
|
return {
|
|
2975
|
-
val: { type:
|
|
2987
|
+
val: { type: y, value: n, location: T, style: d },
|
|
2976
2988
|
err: null
|
|
2977
2989
|
};
|
|
2978
2990
|
}
|
|
2979
2991
|
}
|
|
2980
2992
|
return {
|
|
2981
2993
|
val: {
|
|
2982
|
-
type: o === "number" ?
|
|
2994
|
+
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
2983
2995
|
value: n,
|
|
2984
|
-
location:
|
|
2985
|
-
style: (a =
|
|
2996
|
+
location: T,
|
|
2997
|
+
style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
|
|
2986
2998
|
},
|
|
2987
2999
|
err: null
|
|
2988
3000
|
};
|
|
@@ -2990,52 +3002,52 @@ var Un = (
|
|
|
2990
3002
|
case "plural":
|
|
2991
3003
|
case "selectordinal":
|
|
2992
3004
|
case "select": {
|
|
2993
|
-
var
|
|
3005
|
+
var w = this.clonePosition();
|
|
2994
3006
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2995
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3007
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, Se({}, w)));
|
|
2996
3008
|
this.bumpSpace();
|
|
2997
|
-
var
|
|
2998
|
-
if (o !== "select" &&
|
|
3009
|
+
var F = this.parseIdentifierIfPossible(), P = 0;
|
|
3010
|
+
if (o !== "select" && F.value === "offset") {
|
|
2999
3011
|
if (!this.bumpIf(":"))
|
|
3000
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3012
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3001
3013
|
this.bumpSpace();
|
|
3002
3014
|
var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3003
3015
|
if (h.err)
|
|
3004
3016
|
return h;
|
|
3005
|
-
this.bumpSpace(),
|
|
3017
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), P = h.val;
|
|
3006
3018
|
}
|
|
3007
|
-
var
|
|
3008
|
-
if (
|
|
3009
|
-
return
|
|
3010
|
-
var
|
|
3011
|
-
if (
|
|
3012
|
-
return
|
|
3013
|
-
var
|
|
3019
|
+
var G = this.tryParsePluralOrSelectOptions(t, o, r, F);
|
|
3020
|
+
if (G.err)
|
|
3021
|
+
return G;
|
|
3022
|
+
var g = this.tryParseArgumentClose(i);
|
|
3023
|
+
if (g.err)
|
|
3024
|
+
return g;
|
|
3025
|
+
var se = v(i, this.clonePosition());
|
|
3014
3026
|
return o === "select" ? {
|
|
3015
3027
|
val: {
|
|
3016
|
-
type:
|
|
3028
|
+
type: _.select,
|
|
3017
3029
|
value: n,
|
|
3018
|
-
options:
|
|
3019
|
-
location:
|
|
3030
|
+
options: bt(G.val),
|
|
3031
|
+
location: se
|
|
3020
3032
|
},
|
|
3021
3033
|
err: null
|
|
3022
3034
|
} : {
|
|
3023
3035
|
val: {
|
|
3024
|
-
type:
|
|
3036
|
+
type: _.plural,
|
|
3025
3037
|
value: n,
|
|
3026
|
-
options:
|
|
3027
|
-
offset:
|
|
3038
|
+
options: bt(G.val),
|
|
3039
|
+
offset: P,
|
|
3028
3040
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3029
|
-
location:
|
|
3041
|
+
location: se
|
|
3030
3042
|
},
|
|
3031
3043
|
err: null
|
|
3032
3044
|
};
|
|
3033
3045
|
}
|
|
3034
3046
|
default:
|
|
3035
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
3047
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3036
3048
|
}
|
|
3037
3049
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3038
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3050
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3039
3051
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3040
3052
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3041
3053
|
var n = this.char();
|
|
@@ -3044,7 +3056,7 @@ var Un = (
|
|
|
3044
3056
|
this.bump();
|
|
3045
3057
|
var i = this.clonePosition();
|
|
3046
3058
|
if (!this.bumpUntil("'"))
|
|
3047
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3059
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3048
3060
|
this.bump();
|
|
3049
3061
|
break;
|
|
3050
3062
|
}
|
|
@@ -3074,52 +3086,52 @@ var Un = (
|
|
|
3074
3086
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3075
3087
|
var n = [];
|
|
3076
3088
|
try {
|
|
3077
|
-
n =
|
|
3089
|
+
n = kn(t);
|
|
3078
3090
|
} catch (i) {
|
|
3079
3091
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3080
3092
|
}
|
|
3081
3093
|
return {
|
|
3082
3094
|
val: {
|
|
3083
|
-
type:
|
|
3095
|
+
type: ee.number,
|
|
3084
3096
|
tokens: n,
|
|
3085
3097
|
location: r,
|
|
3086
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3098
|
+
parsedOptions: this.shouldParseSkeletons ? In(n) : {}
|
|
3087
3099
|
},
|
|
3088
3100
|
err: null
|
|
3089
3101
|
};
|
|
3090
3102
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3091
|
-
for (var a, s = !1, o = [],
|
|
3092
|
-
if (
|
|
3103
|
+
for (var a, s = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
3104
|
+
if (u.length === 0) {
|
|
3093
3105
|
var h = this.clonePosition();
|
|
3094
3106
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3095
3107
|
var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3096
3108
|
if (d.err)
|
|
3097
3109
|
return d;
|
|
3098
|
-
c =
|
|
3110
|
+
c = v(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
|
|
3099
3111
|
} else
|
|
3100
3112
|
break;
|
|
3101
3113
|
}
|
|
3102
|
-
if (
|
|
3114
|
+
if (l.has(u))
|
|
3103
3115
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3104
|
-
|
|
3105
|
-
var
|
|
3116
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3117
|
+
var m = this.clonePosition();
|
|
3106
3118
|
if (!this.bumpIf("{"))
|
|
3107
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3108
|
-
var
|
|
3109
|
-
if (
|
|
3110
|
-
return
|
|
3111
|
-
var
|
|
3112
|
-
if (
|
|
3113
|
-
return
|
|
3119
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3120
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3121
|
+
if (g.err)
|
|
3122
|
+
return g;
|
|
3123
|
+
var T = this.tryParseArgumentClose(m);
|
|
3124
|
+
if (T.err)
|
|
3125
|
+
return T;
|
|
3114
3126
|
o.push([
|
|
3115
|
-
|
|
3127
|
+
u,
|
|
3116
3128
|
{
|
|
3117
|
-
value:
|
|
3118
|
-
location:
|
|
3129
|
+
value: g.val,
|
|
3130
|
+
location: v(m, this.clonePosition())
|
|
3119
3131
|
}
|
|
3120
|
-
]),
|
|
3132
|
+
]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, c = a.location;
|
|
3121
3133
|
}
|
|
3122
|
-
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3134
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3123
3135
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3124
3136
|
var n = 1, i = this.clonePosition();
|
|
3125
3137
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3130,8 +3142,8 @@ var Un = (
|
|
|
3130
3142
|
else
|
|
3131
3143
|
break;
|
|
3132
3144
|
}
|
|
3133
|
-
var
|
|
3134
|
-
return a ? (s *= n,
|
|
3145
|
+
var l = v(i, this.clonePosition());
|
|
3146
|
+
return a ? (s *= n, Fn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3135
3147
|
}, e.prototype.offset = function() {
|
|
3136
3148
|
return this.position.offset;
|
|
3137
3149
|
}, e.prototype.isEOF = function() {
|
|
@@ -3146,7 +3158,7 @@ var Un = (
|
|
|
3146
3158
|
var t = this.position.offset;
|
|
3147
3159
|
if (t >= this.message.length)
|
|
3148
3160
|
throw Error("out of bound");
|
|
3149
|
-
var r =
|
|
3161
|
+
var r = er(this.message, t);
|
|
3150
3162
|
if (r === void 0)
|
|
3151
3163
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3152
3164
|
return r;
|
|
@@ -3165,7 +3177,7 @@ var Un = (
|
|
|
3165
3177
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3166
3178
|
}
|
|
3167
3179
|
}, e.prototype.bumpIf = function(t) {
|
|
3168
|
-
if (
|
|
3180
|
+
if (pt(this.message, t, this.offset())) {
|
|
3169
3181
|
for (var r = 0; r < t.length; r++)
|
|
3170
3182
|
this.bump();
|
|
3171
3183
|
return !0;
|
|
@@ -3187,7 +3199,7 @@ var Un = (
|
|
|
3187
3199
|
break;
|
|
3188
3200
|
}
|
|
3189
3201
|
}, e.prototype.bumpSpace = function() {
|
|
3190
|
-
for (; !this.isEOF() &&
|
|
3202
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3191
3203
|
this.bump();
|
|
3192
3204
|
}, e.prototype.peek = function() {
|
|
3193
3205
|
if (this.isEOF())
|
|
@@ -3197,47 +3209,47 @@ var Un = (
|
|
|
3197
3209
|
}, e;
|
|
3198
3210
|
}()
|
|
3199
3211
|
);
|
|
3200
|
-
function
|
|
3212
|
+
function Ke(e) {
|
|
3201
3213
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3202
3214
|
}
|
|
3203
|
-
function
|
|
3204
|
-
return
|
|
3215
|
+
function Vn(e) {
|
|
3216
|
+
return Ke(e) || e === 47;
|
|
3205
3217
|
}
|
|
3206
|
-
function
|
|
3218
|
+
function Wn(e) {
|
|
3207
3219
|
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
3220
|
}
|
|
3209
|
-
function
|
|
3221
|
+
function rr(e) {
|
|
3210
3222
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3211
3223
|
}
|
|
3212
|
-
function
|
|
3224
|
+
function Xn(e) {
|
|
3213
3225
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3214
3226
|
}
|
|
3215
|
-
function
|
|
3227
|
+
function Ze(e) {
|
|
3216
3228
|
e.forEach(function(t) {
|
|
3217
|
-
if (delete t.location,
|
|
3229
|
+
if (delete t.location, Wt(t) || Xt(t))
|
|
3218
3230
|
for (var r in t.options)
|
|
3219
|
-
delete t.options[r].location,
|
|
3231
|
+
delete t.options[r].location, Ze(t.options[r].value);
|
|
3220
3232
|
else
|
|
3221
|
-
|
|
3233
|
+
Gt(t) && Jt(t.style) || (jt(t) || Vt(t)) && We(t.style) ? delete t.style.location : qt(t) && Ze(t.children);
|
|
3222
3234
|
});
|
|
3223
3235
|
}
|
|
3224
|
-
function
|
|
3225
|
-
t === void 0 && (t = {}), t =
|
|
3226
|
-
var r = new
|
|
3236
|
+
function qn(e, t) {
|
|
3237
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3238
|
+
var r = new jn(e, t).parse();
|
|
3227
3239
|
if (r.err) {
|
|
3228
3240
|
var n = SyntaxError(p[r.err.kind]);
|
|
3229
3241
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3230
3242
|
}
|
|
3231
|
-
return t != null && t.captureLocation ||
|
|
3243
|
+
return t != null && t.captureLocation || Ze(r.val), r.val;
|
|
3232
3244
|
}
|
|
3233
|
-
var
|
|
3245
|
+
var te;
|
|
3234
3246
|
(function(e) {
|
|
3235
3247
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3236
|
-
})(
|
|
3237
|
-
var
|
|
3248
|
+
})(te || (te = {}));
|
|
3249
|
+
var Le = (
|
|
3238
3250
|
/** @class */
|
|
3239
3251
|
function(e) {
|
|
3240
|
-
|
|
3252
|
+
Ce(t, e);
|
|
3241
3253
|
function t(r, n, i) {
|
|
3242
3254
|
var a = e.call(this, r) || this;
|
|
3243
3255
|
return a.code = n, a.originalMessage = i, a;
|
|
@@ -3246,155 +3258,155 @@ var Be = (
|
|
|
3246
3258
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3247
3259
|
}, t;
|
|
3248
3260
|
}(Error)
|
|
3249
|
-
),
|
|
3261
|
+
), yt = (
|
|
3250
3262
|
/** @class */
|
|
3251
3263
|
function(e) {
|
|
3252
|
-
|
|
3264
|
+
Ce(t, e);
|
|
3253
3265
|
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('", "'), '"'),
|
|
3266
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, a) || this;
|
|
3255
3267
|
}
|
|
3256
3268
|
return t;
|
|
3257
|
-
}(
|
|
3258
|
-
),
|
|
3269
|
+
}(Le)
|
|
3270
|
+
), Jn = (
|
|
3259
3271
|
/** @class */
|
|
3260
3272
|
function(e) {
|
|
3261
|
-
|
|
3273
|
+
Ce(t, e);
|
|
3262
3274
|
function t(r, n, i) {
|
|
3263
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3275
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3264
3276
|
}
|
|
3265
3277
|
return t;
|
|
3266
|
-
}(
|
|
3267
|
-
),
|
|
3278
|
+
}(Le)
|
|
3279
|
+
), Kn = (
|
|
3268
3280
|
/** @class */
|
|
3269
3281
|
function(e) {
|
|
3270
|
-
|
|
3282
|
+
Ce(t, e);
|
|
3271
3283
|
function t(r, n) {
|
|
3272
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3284
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3273
3285
|
}
|
|
3274
3286
|
return t;
|
|
3275
|
-
}(
|
|
3276
|
-
),
|
|
3287
|
+
}(Le)
|
|
3288
|
+
), S;
|
|
3277
3289
|
(function(e) {
|
|
3278
3290
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3279
|
-
})(
|
|
3280
|
-
function
|
|
3291
|
+
})(S || (S = {}));
|
|
3292
|
+
function Zn(e) {
|
|
3281
3293
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3282
3294
|
var n = t[t.length - 1];
|
|
3283
|
-
return !n || n.type !==
|
|
3295
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3284
3296
|
}, []);
|
|
3285
3297
|
}
|
|
3286
|
-
function
|
|
3298
|
+
function Yn(e) {
|
|
3287
3299
|
return typeof e == "function";
|
|
3288
3300
|
}
|
|
3289
|
-
function
|
|
3290
|
-
if (e.length === 1 &&
|
|
3301
|
+
function ke(e, t, r, n, i, a, s) {
|
|
3302
|
+
if (e.length === 1 && dt(e[0]))
|
|
3291
3303
|
return [
|
|
3292
3304
|
{
|
|
3293
|
-
type:
|
|
3305
|
+
type: S.literal,
|
|
3294
3306
|
value: e[0].value
|
|
3295
3307
|
}
|
|
3296
3308
|
];
|
|
3297
|
-
for (var o = [],
|
|
3298
|
-
var c = l
|
|
3299
|
-
if (
|
|
3309
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3310
|
+
var c = u[l];
|
|
3311
|
+
if (dt(c)) {
|
|
3300
3312
|
o.push({
|
|
3301
|
-
type:
|
|
3313
|
+
type: S.literal,
|
|
3302
3314
|
value: c.value
|
|
3303
3315
|
});
|
|
3304
3316
|
continue;
|
|
3305
3317
|
}
|
|
3306
|
-
if (
|
|
3318
|
+
if (En(c)) {
|
|
3307
3319
|
typeof a == "number" && o.push({
|
|
3308
|
-
type:
|
|
3320
|
+
type: S.literal,
|
|
3309
3321
|
value: r.getNumberFormat(t).format(a)
|
|
3310
3322
|
});
|
|
3311
3323
|
continue;
|
|
3312
3324
|
}
|
|
3313
3325
|
var h = c.value;
|
|
3314
3326
|
if (!(i && h in i))
|
|
3315
|
-
throw new
|
|
3327
|
+
throw new Kn(h, s);
|
|
3316
3328
|
var d = i[h];
|
|
3317
|
-
if (
|
|
3329
|
+
if (yn(c)) {
|
|
3318
3330
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
|
|
3319
|
-
type: typeof d == "string" ?
|
|
3331
|
+
type: typeof d == "string" ? S.literal : S.object,
|
|
3320
3332
|
value: d
|
|
3321
3333
|
});
|
|
3322
3334
|
continue;
|
|
3323
3335
|
}
|
|
3324
|
-
if (
|
|
3325
|
-
var
|
|
3336
|
+
if (jt(c)) {
|
|
3337
|
+
var m = typeof c.style == "string" ? n.date[c.style] : We(c.style) ? c.style.parsedOptions : void 0;
|
|
3326
3338
|
o.push({
|
|
3327
|
-
type:
|
|
3328
|
-
value: r.getDateTimeFormat(t,
|
|
3339
|
+
type: S.literal,
|
|
3340
|
+
value: r.getDateTimeFormat(t, m).format(d)
|
|
3329
3341
|
});
|
|
3330
3342
|
continue;
|
|
3331
3343
|
}
|
|
3332
|
-
if (
|
|
3333
|
-
var
|
|
3344
|
+
if (Vt(c)) {
|
|
3345
|
+
var m = typeof c.style == "string" ? n.time[c.style] : We(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3334
3346
|
o.push({
|
|
3335
|
-
type:
|
|
3336
|
-
value: r.getDateTimeFormat(t,
|
|
3347
|
+
type: S.literal,
|
|
3348
|
+
value: r.getDateTimeFormat(t, m).format(d)
|
|
3337
3349
|
});
|
|
3338
3350
|
continue;
|
|
3339
3351
|
}
|
|
3340
|
-
if (
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
type:
|
|
3344
|
-
value: r.getNumberFormat(t,
|
|
3352
|
+
if (Gt(c)) {
|
|
3353
|
+
var m = typeof c.style == "string" ? n.number[c.style] : Jt(c.style) ? c.style.parsedOptions : void 0;
|
|
3354
|
+
m && m.scale && (d = d * (m.scale || 1)), o.push({
|
|
3355
|
+
type: S.literal,
|
|
3356
|
+
value: r.getNumberFormat(t, m).format(d)
|
|
3345
3357
|
});
|
|
3346
3358
|
continue;
|
|
3347
3359
|
}
|
|
3348
|
-
if (
|
|
3349
|
-
var
|
|
3350
|
-
if (!
|
|
3351
|
-
throw new
|
|
3352
|
-
var
|
|
3353
|
-
return
|
|
3360
|
+
if (qt(c)) {
|
|
3361
|
+
var g = c.children, T = c.value, E = i[T];
|
|
3362
|
+
if (!Yn(E))
|
|
3363
|
+
throw new Jn(T, "function", s);
|
|
3364
|
+
var f = ke(g, t, r, n, i, a), y = E(f.map(function(P) {
|
|
3365
|
+
return P.value;
|
|
3354
3366
|
}));
|
|
3355
|
-
Array.isArray(
|
|
3367
|
+
Array.isArray(y) || (y = [y]), o.push.apply(o, y.map(function(P) {
|
|
3356
3368
|
return {
|
|
3357
|
-
type: typeof
|
|
3358
|
-
value:
|
|
3369
|
+
type: typeof P == "string" ? S.literal : S.object,
|
|
3370
|
+
value: P
|
|
3359
3371
|
};
|
|
3360
3372
|
}));
|
|
3361
3373
|
}
|
|
3362
|
-
if (
|
|
3363
|
-
var
|
|
3364
|
-
if (!
|
|
3365
|
-
throw new
|
|
3366
|
-
o.push.apply(o,
|
|
3374
|
+
if (Wt(c)) {
|
|
3375
|
+
var w = c.options[d] || c.options.other;
|
|
3376
|
+
if (!w)
|
|
3377
|
+
throw new yt(c.value, d, Object.keys(c.options), s);
|
|
3378
|
+
o.push.apply(o, ke(w.value, t, r, n, i));
|
|
3367
3379
|
continue;
|
|
3368
3380
|
}
|
|
3369
|
-
if (
|
|
3370
|
-
var
|
|
3371
|
-
if (!
|
|
3381
|
+
if (Xt(c)) {
|
|
3382
|
+
var w = c.options["=".concat(d)];
|
|
3383
|
+
if (!w) {
|
|
3372
3384
|
if (!Intl.PluralRules)
|
|
3373
|
-
throw new
|
|
3385
|
+
throw new Le(`Intl.PluralRules is not available in this environment.
|
|
3374
3386
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3375
|
-
`,
|
|
3376
|
-
var
|
|
3377
|
-
|
|
3387
|
+
`, te.MISSING_INTL_API, s);
|
|
3388
|
+
var F = r.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
|
|
3389
|
+
w = c.options[F] || c.options.other;
|
|
3378
3390
|
}
|
|
3379
|
-
if (!
|
|
3380
|
-
throw new
|
|
3381
|
-
o.push.apply(o,
|
|
3391
|
+
if (!w)
|
|
3392
|
+
throw new yt(c.value, d, Object.keys(c.options), s);
|
|
3393
|
+
o.push.apply(o, ke(w.value, t, r, n, i, d - (c.offset || 0)));
|
|
3382
3394
|
continue;
|
|
3383
3395
|
}
|
|
3384
3396
|
}
|
|
3385
|
-
return
|
|
3397
|
+
return Zn(o);
|
|
3386
3398
|
}
|
|
3387
|
-
function
|
|
3388
|
-
return t ?
|
|
3389
|
-
return r[n] =
|
|
3399
|
+
function Qn(e, t) {
|
|
3400
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3401
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3390
3402
|
}, {})) : e;
|
|
3391
3403
|
}
|
|
3392
|
-
function
|
|
3404
|
+
function ei(e, t) {
|
|
3393
3405
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3394
|
-
return r[n] =
|
|
3395
|
-
},
|
|
3406
|
+
return r[n] = Qn(e[n], t[n]), r;
|
|
3407
|
+
}, L({}, e)) : e;
|
|
3396
3408
|
}
|
|
3397
|
-
function
|
|
3409
|
+
function Fe(e) {
|
|
3398
3410
|
return {
|
|
3399
3411
|
create: function() {
|
|
3400
3412
|
return {
|
|
@@ -3408,39 +3420,39 @@ function Re(e) {
|
|
|
3408
3420
|
}
|
|
3409
3421
|
};
|
|
3410
3422
|
}
|
|
3411
|
-
function
|
|
3423
|
+
function ti(e) {
|
|
3412
3424
|
return e === void 0 && (e = {
|
|
3413
3425
|
number: {},
|
|
3414
3426
|
dateTime: {},
|
|
3415
3427
|
pluralRules: {}
|
|
3416
3428
|
}), {
|
|
3417
|
-
getNumberFormat:
|
|
3429
|
+
getNumberFormat: Ne(function() {
|
|
3418
3430
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3419
3431
|
r[n] = arguments[n];
|
|
3420
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3432
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3421
3433
|
}, {
|
|
3422
|
-
cache:
|
|
3423
|
-
strategy:
|
|
3434
|
+
cache: Fe(e.number),
|
|
3435
|
+
strategy: Re.variadic
|
|
3424
3436
|
}),
|
|
3425
|
-
getDateTimeFormat:
|
|
3437
|
+
getDateTimeFormat: Ne(function() {
|
|
3426
3438
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3427
3439
|
r[n] = arguments[n];
|
|
3428
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3440
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3429
3441
|
}, {
|
|
3430
|
-
cache:
|
|
3431
|
-
strategy:
|
|
3442
|
+
cache: Fe(e.dateTime),
|
|
3443
|
+
strategy: Re.variadic
|
|
3432
3444
|
}),
|
|
3433
|
-
getPluralRules:
|
|
3445
|
+
getPluralRules: Ne(function() {
|
|
3434
3446
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3435
3447
|
r[n] = arguments[n];
|
|
3436
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3448
|
+
return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
|
|
3437
3449
|
}, {
|
|
3438
|
-
cache:
|
|
3439
|
-
strategy:
|
|
3450
|
+
cache: Fe(e.pluralRules),
|
|
3451
|
+
strategy: Re.variadic
|
|
3440
3452
|
})
|
|
3441
3453
|
};
|
|
3442
3454
|
}
|
|
3443
|
-
var
|
|
3455
|
+
var nr = (
|
|
3444
3456
|
/** @class */
|
|
3445
3457
|
function() {
|
|
3446
3458
|
function e(t, r, n, i) {
|
|
@@ -3450,20 +3462,20 @@ var Yt = (
|
|
|
3450
3462
|
number: {},
|
|
3451
3463
|
dateTime: {},
|
|
3452
3464
|
pluralRules: {}
|
|
3453
|
-
}, this.format = function(
|
|
3454
|
-
var
|
|
3455
|
-
if (
|
|
3456
|
-
return
|
|
3457
|
-
var c =
|
|
3458
|
-
return !h.length || d.type !==
|
|
3465
|
+
}, this.format = function(l) {
|
|
3466
|
+
var u = a.formatToParts(l);
|
|
3467
|
+
if (u.length === 1)
|
|
3468
|
+
return u[0].value;
|
|
3469
|
+
var c = u.reduce(function(h, d) {
|
|
3470
|
+
return !h.length || d.type !== S.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
|
|
3459
3471
|
}, []);
|
|
3460
3472
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3461
|
-
}, this.formatToParts = function(
|
|
3462
|
-
return
|
|
3473
|
+
}, this.formatToParts = function(l) {
|
|
3474
|
+
return ke(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
|
|
3463
3475
|
}, this.resolvedOptions = function() {
|
|
3464
|
-
var
|
|
3476
|
+
var l;
|
|
3465
3477
|
return {
|
|
3466
|
-
locale: ((
|
|
3478
|
+
locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3467
3479
|
};
|
|
3468
3480
|
}, this.getAst = function() {
|
|
3469
3481
|
return a.ast;
|
|
@@ -3472,13 +3484,13 @@ var Yt = (
|
|
|
3472
3484
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3473
3485
|
var s = i || {};
|
|
3474
3486
|
s.formatters;
|
|
3475
|
-
var o =
|
|
3476
|
-
this.ast = e.__parse(t,
|
|
3487
|
+
var o = hn(s, ["formatters"]);
|
|
3488
|
+
this.ast = e.__parse(t, L(L({}, o), { locale: this.resolvedLocale }));
|
|
3477
3489
|
} else
|
|
3478
3490
|
this.ast = t;
|
|
3479
3491
|
if (!Array.isArray(this.ast))
|
|
3480
3492
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3481
|
-
this.formats =
|
|
3493
|
+
this.formats = ei(e.formats, n), this.formatters = i && i.formatters || ti(this.formatterCache);
|
|
3482
3494
|
}
|
|
3483
3495
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3484
3496
|
get: function() {
|
|
@@ -3491,7 +3503,7 @@ var Yt = (
|
|
|
3491
3503
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3492
3504
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3493
3505
|
}
|
|
3494
|
-
}, e.__parse =
|
|
3506
|
+
}, e.__parse = qn, e.formats = {
|
|
3495
3507
|
number: {
|
|
3496
3508
|
integer: {
|
|
3497
3509
|
maximumFractionDigits: 0
|
|
@@ -3552,7 +3564,7 @@ var Yt = (
|
|
|
3552
3564
|
}, e;
|
|
3553
3565
|
}()
|
|
3554
3566
|
);
|
|
3555
|
-
function
|
|
3567
|
+
function ri(e, t) {
|
|
3556
3568
|
if (t == null)
|
|
3557
3569
|
return;
|
|
3558
3570
|
if (t in e)
|
|
@@ -3573,101 +3585,101 @@ function Zn(e, t) {
|
|
|
3573
3585
|
n = void 0;
|
|
3574
3586
|
return n;
|
|
3575
3587
|
}
|
|
3576
|
-
const
|
|
3588
|
+
const N = {}, ni = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), ir = (e, t) => {
|
|
3577
3589
|
if (t == null)
|
|
3578
3590
|
return;
|
|
3579
|
-
if (t in
|
|
3580
|
-
return
|
|
3581
|
-
const r =
|
|
3591
|
+
if (t in N && e in N[t])
|
|
3592
|
+
return N[t][e];
|
|
3593
|
+
const r = me(t);
|
|
3582
3594
|
for (let n = 0; n < r.length; n++) {
|
|
3583
|
-
const i = r[n], a =
|
|
3595
|
+
const i = r[n], a = ai(i, e);
|
|
3584
3596
|
if (a)
|
|
3585
|
-
return
|
|
3597
|
+
return ni(e, t, a);
|
|
3586
3598
|
}
|
|
3587
3599
|
};
|
|
3588
|
-
let
|
|
3589
|
-
const
|
|
3590
|
-
function
|
|
3591
|
-
return
|
|
3600
|
+
let tt;
|
|
3601
|
+
const fe = He({});
|
|
3602
|
+
function ii(e) {
|
|
3603
|
+
return tt[e] || null;
|
|
3592
3604
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return e in
|
|
3605
|
+
function ar(e) {
|
|
3606
|
+
return e in tt;
|
|
3595
3607
|
}
|
|
3596
|
-
function
|
|
3597
|
-
if (!
|
|
3608
|
+
function ai(e, t) {
|
|
3609
|
+
if (!ar(e))
|
|
3598
3610
|
return null;
|
|
3599
|
-
const r =
|
|
3600
|
-
return
|
|
3611
|
+
const r = ii(e);
|
|
3612
|
+
return ri(r, t);
|
|
3601
3613
|
}
|
|
3602
|
-
function
|
|
3614
|
+
function si(e) {
|
|
3603
3615
|
if (e == null)
|
|
3604
3616
|
return;
|
|
3605
|
-
const t =
|
|
3617
|
+
const t = me(e);
|
|
3606
3618
|
for (let r = 0; r < t.length; r++) {
|
|
3607
3619
|
const n = t[r];
|
|
3608
|
-
if (
|
|
3620
|
+
if (ar(n))
|
|
3609
3621
|
return n;
|
|
3610
3622
|
}
|
|
3611
3623
|
}
|
|
3612
|
-
function
|
|
3613
|
-
delete
|
|
3624
|
+
function sr(e, ...t) {
|
|
3625
|
+
delete N[e], fe.update((r) => (r[e] = cn.all([r[e] || {}, ...t]), r));
|
|
3614
3626
|
}
|
|
3615
|
-
|
|
3616
|
-
[
|
|
3627
|
+
ie(
|
|
3628
|
+
[fe],
|
|
3617
3629
|
([e]) => Object.keys(e)
|
|
3618
3630
|
);
|
|
3619
|
-
|
|
3620
|
-
const
|
|
3621
|
-
function
|
|
3622
|
-
|
|
3631
|
+
fe.subscribe((e) => tt = e);
|
|
3632
|
+
const we = {};
|
|
3633
|
+
function oi(e, t) {
|
|
3634
|
+
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
3623
3635
|
}
|
|
3624
|
-
function
|
|
3625
|
-
return
|
|
3636
|
+
function or(e) {
|
|
3637
|
+
return we[e];
|
|
3626
3638
|
}
|
|
3627
|
-
function
|
|
3628
|
-
return
|
|
3629
|
-
const r =
|
|
3639
|
+
function li(e) {
|
|
3640
|
+
return me(e).map((t) => {
|
|
3641
|
+
const r = or(t);
|
|
3630
3642
|
return [t, r ? [...r] : []];
|
|
3631
3643
|
}).filter(([, t]) => t.length > 0);
|
|
3632
3644
|
}
|
|
3633
|
-
function
|
|
3634
|
-
return e == null ? !1 :
|
|
3645
|
+
function Ae(e) {
|
|
3646
|
+
return e == null ? !1 : me(e).some(
|
|
3635
3647
|
(t) => {
|
|
3636
3648
|
var r;
|
|
3637
|
-
return (r =
|
|
3649
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
3638
3650
|
}
|
|
3639
3651
|
);
|
|
3640
3652
|
}
|
|
3641
|
-
function
|
|
3653
|
+
function ui(e, t) {
|
|
3642
3654
|
return Promise.all(
|
|
3643
|
-
t.map((n) => (
|
|
3644
|
-
).then((n) =>
|
|
3645
|
-
}
|
|
3646
|
-
const
|
|
3647
|
-
function
|
|
3648
|
-
if (!
|
|
3649
|
-
return e in
|
|
3650
|
-
const t =
|
|
3651
|
-
return
|
|
3655
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
3656
|
+
).then((n) => sr(e, ...n));
|
|
3657
|
+
}
|
|
3658
|
+
const oe = {};
|
|
3659
|
+
function lr(e) {
|
|
3660
|
+
if (!Ae(e))
|
|
3661
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
3662
|
+
const t = li(e);
|
|
3663
|
+
return oe[e] = Promise.all(
|
|
3652
3664
|
t.map(
|
|
3653
|
-
([r, n]) =>
|
|
3665
|
+
([r, n]) => ui(r, n)
|
|
3654
3666
|
)
|
|
3655
3667
|
).then(() => {
|
|
3656
|
-
if (
|
|
3657
|
-
return
|
|
3658
|
-
delete
|
|
3659
|
-
}),
|
|
3668
|
+
if (Ae(e))
|
|
3669
|
+
return lr(e);
|
|
3670
|
+
delete oe[e];
|
|
3671
|
+
}), oe[e];
|
|
3660
3672
|
}
|
|
3661
|
-
var
|
|
3673
|
+
var Et = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, di = (e, t) => {
|
|
3662
3674
|
var r = {};
|
|
3663
3675
|
for (var n in e)
|
|
3664
|
-
|
|
3665
|
-
if (e != null &&
|
|
3666
|
-
for (var n of
|
|
3667
|
-
t.indexOf(n) < 0 &&
|
|
3676
|
+
ci.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3677
|
+
if (e != null && Et)
|
|
3678
|
+
for (var n of Et(e))
|
|
3679
|
+
t.indexOf(n) < 0 && hi.call(e, n) && (r[n] = e[n]);
|
|
3668
3680
|
return r;
|
|
3669
3681
|
};
|
|
3670
|
-
const
|
|
3682
|
+
const fi = {
|
|
3671
3683
|
number: {
|
|
3672
3684
|
scientific: { notation: "scientific" },
|
|
3673
3685
|
engineering: { notation: "engineering" },
|
|
@@ -3697,174 +3709,174 @@ const li = {
|
|
|
3697
3709
|
}
|
|
3698
3710
|
}
|
|
3699
3711
|
};
|
|
3700
|
-
function
|
|
3712
|
+
function mi({ locale: e, id: t }) {
|
|
3701
3713
|
console.warn(
|
|
3702
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3714
|
+
`[svelte-i18n] The message "${t}" was not found in "${me(
|
|
3703
3715
|
e
|
|
3704
|
-
).join('", "')}".${
|
|
3716
|
+
).join('", "')}".${Ae(U()) ? `
|
|
3705
3717
|
|
|
3706
3718
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3707
3719
|
);
|
|
3708
3720
|
}
|
|
3709
|
-
const
|
|
3721
|
+
const gi = {
|
|
3710
3722
|
fallbackLocale: null,
|
|
3711
3723
|
loadingDelay: 200,
|
|
3712
|
-
formats:
|
|
3724
|
+
formats: fi,
|
|
3713
3725
|
warnOnMissingMessages: !0,
|
|
3714
3726
|
handleMissingMessage: void 0,
|
|
3715
3727
|
ignoreTag: !0
|
|
3716
|
-
},
|
|
3717
|
-
function
|
|
3718
|
-
return
|
|
3728
|
+
}, le = gi;
|
|
3729
|
+
function re() {
|
|
3730
|
+
return le;
|
|
3719
3731
|
}
|
|
3720
|
-
function
|
|
3721
|
-
const t = e, { formats: r } = t, n =
|
|
3732
|
+
function pi(e) {
|
|
3733
|
+
const t = e, { formats: r } = t, n = di(t, ["formats"]);
|
|
3722
3734
|
let i = e.fallbackLocale;
|
|
3723
3735
|
if (e.initialLocale)
|
|
3724
3736
|
try {
|
|
3725
|
-
|
|
3737
|
+
nr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3726
3738
|
} catch (a) {
|
|
3727
3739
|
console.warn(
|
|
3728
3740
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3729
3741
|
);
|
|
3730
3742
|
}
|
|
3731
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3743
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = mi : console.warn(
|
|
3732
3744
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3733
|
-
)), Object.assign(
|
|
3745
|
+
)), Object.assign(le, n, { initialLocale: i }), r && ("number" in r && Object.assign(le.formats.number, r.number), "date" in r && Object.assign(le.formats.date, r.date), "time" in r && Object.assign(le.formats.time, r.time)), $.set(i);
|
|
3734
3746
|
}
|
|
3735
|
-
const
|
|
3736
|
-
var
|
|
3747
|
+
const ze = He(!1);
|
|
3748
|
+
var bi = Object.defineProperty, vi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xi = (e, t) => {
|
|
3737
3749
|
for (var r in t || (t = {}))
|
|
3738
|
-
|
|
3739
|
-
if (
|
|
3740
|
-
for (var r of
|
|
3741
|
-
|
|
3750
|
+
Ei.call(t, r) && xt(e, r, t[r]);
|
|
3751
|
+
if (_t)
|
|
3752
|
+
for (var r of _t(t))
|
|
3753
|
+
_i.call(t, r) && xt(e, r, t[r]);
|
|
3742
3754
|
return e;
|
|
3743
|
-
},
|
|
3744
|
-
let
|
|
3745
|
-
const
|
|
3746
|
-
function
|
|
3755
|
+
}, Ti = (e, t) => vi(e, yi(t));
|
|
3756
|
+
let Ye;
|
|
3757
|
+
const Ie = He(null);
|
|
3758
|
+
function Tt(e) {
|
|
3747
3759
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3748
3760
|
}
|
|
3749
|
-
function
|
|
3750
|
-
const r =
|
|
3751
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3761
|
+
function me(e, t = re().fallbackLocale) {
|
|
3762
|
+
const r = Tt(e);
|
|
3763
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
3752
3764
|
}
|
|
3753
|
-
function
|
|
3754
|
-
return
|
|
3765
|
+
function U() {
|
|
3766
|
+
return Ye != null ? Ye : void 0;
|
|
3755
3767
|
}
|
|
3756
|
-
|
|
3757
|
-
|
|
3768
|
+
Ie.subscribe((e) => {
|
|
3769
|
+
Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3758
3770
|
});
|
|
3759
|
-
const
|
|
3760
|
-
if (e &&
|
|
3761
|
-
const { loadingDelay: t } =
|
|
3771
|
+
const ki = (e) => {
|
|
3772
|
+
if (e && si(e) && Ae(e)) {
|
|
3773
|
+
const { loadingDelay: t } = re();
|
|
3762
3774
|
let r;
|
|
3763
|
-
return typeof window != "undefined" &&
|
|
3764
|
-
() =>
|
|
3775
|
+
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
3776
|
+
() => ze.set(!0),
|
|
3765
3777
|
t
|
|
3766
|
-
) :
|
|
3767
|
-
|
|
3778
|
+
) : ze.set(!0), lr(e).then(() => {
|
|
3779
|
+
Ie.set(e);
|
|
3768
3780
|
}).finally(() => {
|
|
3769
|
-
clearTimeout(r),
|
|
3781
|
+
clearTimeout(r), ze.set(!1);
|
|
3770
3782
|
});
|
|
3771
3783
|
}
|
|
3772
|
-
return
|
|
3773
|
-
},
|
|
3774
|
-
set:
|
|
3775
|
-
}),
|
|
3784
|
+
return Ie.set(e);
|
|
3785
|
+
}, $ = Ti(xi({}, Ie), {
|
|
3786
|
+
set: ki
|
|
3787
|
+
}), Pe = (e) => {
|
|
3776
3788
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3777
3789
|
return (n) => {
|
|
3778
3790
|
const i = JSON.stringify(n);
|
|
3779
3791
|
return i in t ? t[i] : t[i] = e(n);
|
|
3780
3792
|
};
|
|
3781
3793
|
};
|
|
3782
|
-
var
|
|
3794
|
+
var wi = Object.defineProperty, Be = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
3783
3795
|
for (var r in t || (t = {}))
|
|
3784
|
-
|
|
3785
|
-
if (
|
|
3786
|
-
for (var r of
|
|
3787
|
-
|
|
3796
|
+
ur.call(t, r) && kt(e, r, t[r]);
|
|
3797
|
+
if (Be)
|
|
3798
|
+
for (var r of Be(t))
|
|
3799
|
+
cr.call(t, r) && kt(e, r, t[r]);
|
|
3788
3800
|
return e;
|
|
3789
|
-
},
|
|
3801
|
+
}, ae = (e, t) => {
|
|
3790
3802
|
var r = {};
|
|
3791
3803
|
for (var n in e)
|
|
3792
|
-
|
|
3793
|
-
if (e != null &&
|
|
3794
|
-
for (var n of
|
|
3795
|
-
t.indexOf(n) < 0 &&
|
|
3804
|
+
ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3805
|
+
if (e != null && Be)
|
|
3806
|
+
for (var n of Be(e))
|
|
3807
|
+
t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
|
|
3796
3808
|
return r;
|
|
3797
3809
|
};
|
|
3798
|
-
const
|
|
3799
|
-
const { formats: r } =
|
|
3810
|
+
const de = (e, t) => {
|
|
3811
|
+
const { formats: r } = re();
|
|
3800
3812
|
if (e in r && t in r[e])
|
|
3801
3813
|
return r[e][t];
|
|
3802
3814
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3803
|
-
},
|
|
3815
|
+
}, Si = Pe(
|
|
3804
3816
|
(e) => {
|
|
3805
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3817
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3806
3818
|
if (r == null)
|
|
3807
3819
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3808
|
-
return n && (i =
|
|
3820
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
3809
3821
|
}
|
|
3810
|
-
),
|
|
3822
|
+
), Ai = Pe(
|
|
3811
3823
|
(e) => {
|
|
3812
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3824
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3813
3825
|
if (r == null)
|
|
3814
3826
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3815
|
-
return n ? i =
|
|
3827
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3816
3828
|
}
|
|
3817
|
-
),
|
|
3829
|
+
), Ii = Pe(
|
|
3818
3830
|
(e) => {
|
|
3819
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3831
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3820
3832
|
if (r == null)
|
|
3821
3833
|
throw new Error(
|
|
3822
3834
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3823
3835
|
);
|
|
3824
|
-
return n ? i =
|
|
3836
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3825
3837
|
}
|
|
3826
|
-
),
|
|
3838
|
+
), Bi = (e = {}) => {
|
|
3827
3839
|
var t = e, {
|
|
3828
|
-
locale: r =
|
|
3829
|
-
} = t, n =
|
|
3840
|
+
locale: r = U()
|
|
3841
|
+
} = t, n = ae(t, [
|
|
3830
3842
|
"locale"
|
|
3831
3843
|
]);
|
|
3832
|
-
return
|
|
3833
|
-
},
|
|
3844
|
+
return Si(rt({ locale: r }, n));
|
|
3845
|
+
}, Hi = (e = {}) => {
|
|
3834
3846
|
var t = e, {
|
|
3835
|
-
locale: r =
|
|
3836
|
-
} = t, n =
|
|
3847
|
+
locale: r = U()
|
|
3848
|
+
} = t, n = ae(t, [
|
|
3837
3849
|
"locale"
|
|
3838
3850
|
]);
|
|
3839
|
-
return
|
|
3840
|
-
},
|
|
3851
|
+
return Ai(rt({ locale: r }, n));
|
|
3852
|
+
}, Ci = (e = {}) => {
|
|
3841
3853
|
var t = e, {
|
|
3842
|
-
locale: r =
|
|
3843
|
-
} = t, n =
|
|
3854
|
+
locale: r = U()
|
|
3855
|
+
} = t, n = ae(t, [
|
|
3844
3856
|
"locale"
|
|
3845
3857
|
]);
|
|
3846
|
-
return
|
|
3847
|
-
},
|
|
3858
|
+
return Ii(rt({ locale: r }, n));
|
|
3859
|
+
}, Li = Pe(
|
|
3848
3860
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3849
|
-
(e, t =
|
|
3850
|
-
ignoreTag:
|
|
3861
|
+
(e, t = U()) => new nr(e, t, re().formats, {
|
|
3862
|
+
ignoreTag: re().ignoreTag
|
|
3851
3863
|
})
|
|
3852
|
-
),
|
|
3864
|
+
), Pi = (e, t = {}) => {
|
|
3853
3865
|
var r, n, i, a;
|
|
3854
3866
|
let s = t;
|
|
3855
3867
|
typeof e == "object" && (s = e, e = s.id);
|
|
3856
3868
|
const {
|
|
3857
3869
|
values: o,
|
|
3858
|
-
locale:
|
|
3859
|
-
default:
|
|
3870
|
+
locale: l = U(),
|
|
3871
|
+
default: u
|
|
3860
3872
|
} = s;
|
|
3861
|
-
if (
|
|
3873
|
+
if (l == null)
|
|
3862
3874
|
throw new Error(
|
|
3863
3875
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3864
3876
|
);
|
|
3865
|
-
let c =
|
|
3877
|
+
let c = ir(e, l);
|
|
3866
3878
|
if (!c)
|
|
3867
|
-
c = (a = (i = (n = (r =
|
|
3879
|
+
c = (a = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3868
3880
|
else if (typeof c != "string")
|
|
3869
3881
|
return console.warn(
|
|
3870
3882
|
`[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 +3885,7 @@ const oe = (e, t) => {
|
|
|
3873
3885
|
return c;
|
|
3874
3886
|
let h = c;
|
|
3875
3887
|
try {
|
|
3876
|
-
h =
|
|
3888
|
+
h = Li(c, l).format(o);
|
|
3877
3889
|
} catch (d) {
|
|
3878
3890
|
d instanceof Error && console.warn(
|
|
3879
3891
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3881,20 +3893,20 @@ const oe = (e, t) => {
|
|
|
3881
3893
|
);
|
|
3882
3894
|
}
|
|
3883
3895
|
return h;
|
|
3884
|
-
},
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
function
|
|
3890
|
-
|
|
3891
|
-
}
|
|
3892
|
-
function
|
|
3893
|
-
|
|
3896
|
+
}, Oi = (e, t) => Ci(t).format(e), Mi = (e, t) => Hi(t).format(e), Di = (e, t) => Bi(t).format(e), Ni = (e, t = U()) => ir(e, t), Ri = ie([$, fe], () => Pi);
|
|
3897
|
+
ie([$], () => Oi);
|
|
3898
|
+
ie([$], () => Mi);
|
|
3899
|
+
ie([$], () => Di);
|
|
3900
|
+
ie([$, fe], () => Ni);
|
|
3901
|
+
function wt(e, t) {
|
|
3902
|
+
sr(e, t);
|
|
3903
|
+
}
|
|
3904
|
+
function Ui(e) {
|
|
3905
|
+
pi({
|
|
3894
3906
|
fallbackLocale: "en"
|
|
3895
|
-
}),
|
|
3907
|
+
}), $.set(e);
|
|
3896
3908
|
}
|
|
3897
|
-
const
|
|
3909
|
+
const St = {
|
|
3898
3910
|
en: {
|
|
3899
3911
|
VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
|
|
3900
3912
|
CustomerDocumentIdMissing: "The document ID is missing",
|
|
@@ -4206,63 +4218,198 @@ const xt = {
|
|
|
4206
4218
|
CardTokenIsBlocked: "Kaarttoken is geblokkeerd"
|
|
4207
4219
|
}
|
|
4208
4220
|
};
|
|
4209
|
-
function
|
|
4210
|
-
|
|
4221
|
+
function Fi(e) {
|
|
4222
|
+
_r(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}');
|
|
4223
|
+
}
|
|
4224
|
+
const zi = (e) => ({}), At = (e) => ({}), $i = (e) => ({}), It = (e) => ({}), Gi = (e) => ({}), Bt = (e) => ({}), ji = (e) => ({}), Ht = (e) => ({ class: "CashierErrorIcon" });
|
|
4225
|
+
function Ct(e) {
|
|
4226
|
+
let t, r, n, i, a;
|
|
4227
|
+
const s = (
|
|
4228
|
+
/*#slots*/
|
|
4229
|
+
e[16].icon
|
|
4230
|
+
), o = pe(
|
|
4231
|
+
s,
|
|
4232
|
+
e,
|
|
4233
|
+
/*$$scope*/
|
|
4234
|
+
e[15],
|
|
4235
|
+
Ht
|
|
4236
|
+
), l = o || Vi(e), u = (
|
|
4237
|
+
/*#slots*/
|
|
4238
|
+
e[16].title
|
|
4239
|
+
), c = pe(
|
|
4240
|
+
u,
|
|
4241
|
+
e,
|
|
4242
|
+
/*$$scope*/
|
|
4243
|
+
e[15],
|
|
4244
|
+
Bt
|
|
4245
|
+
), h = (
|
|
4246
|
+
/*#slots*/
|
|
4247
|
+
e[16].text
|
|
4248
|
+
), d = pe(
|
|
4249
|
+
h,
|
|
4250
|
+
e,
|
|
4251
|
+
/*$$scope*/
|
|
4252
|
+
e[15],
|
|
4253
|
+
It
|
|
4254
|
+
), m = d || qi(e), g = (
|
|
4255
|
+
/*#slots*/
|
|
4256
|
+
e[16].button
|
|
4257
|
+
), T = pe(
|
|
4258
|
+
g,
|
|
4259
|
+
e,
|
|
4260
|
+
/*$$scope*/
|
|
4261
|
+
e[15],
|
|
4262
|
+
At
|
|
4263
|
+
), E = T || Ji(e);
|
|
4264
|
+
return {
|
|
4265
|
+
c() {
|
|
4266
|
+
t = H("div"), l && l.c(), r = K(), c && c.c(), n = K(), m && m.c(), i = K(), E && E.c(), M(t, "class", "CashierErrorContent");
|
|
4267
|
+
},
|
|
4268
|
+
m(f, y) {
|
|
4269
|
+
A(f, t, y), l && l.m(t, null), B(t, r), c && c.m(t, null), B(t, n), m && m.m(t, null), B(t, i), E && E.m(t, null), a = !0;
|
|
4270
|
+
},
|
|
4271
|
+
p(f, y) {
|
|
4272
|
+
o ? o.p && (!a || y & /*$$scope*/
|
|
4273
|
+
32768) && ve(
|
|
4274
|
+
o,
|
|
4275
|
+
s,
|
|
4276
|
+
f,
|
|
4277
|
+
/*$$scope*/
|
|
4278
|
+
f[15],
|
|
4279
|
+
a ? be(
|
|
4280
|
+
s,
|
|
4281
|
+
/*$$scope*/
|
|
4282
|
+
f[15],
|
|
4283
|
+
y,
|
|
4284
|
+
ji
|
|
4285
|
+
) : ye(
|
|
4286
|
+
/*$$scope*/
|
|
4287
|
+
f[15]
|
|
4288
|
+
),
|
|
4289
|
+
Ht
|
|
4290
|
+
) : l && l.p && (!a || y & /*assetsurl*/
|
|
4291
|
+
1) && l.p(f, a ? y : -1), c && c.p && (!a || y & /*$$scope*/
|
|
4292
|
+
32768) && ve(
|
|
4293
|
+
c,
|
|
4294
|
+
u,
|
|
4295
|
+
f,
|
|
4296
|
+
/*$$scope*/
|
|
4297
|
+
f[15],
|
|
4298
|
+
a ? be(
|
|
4299
|
+
u,
|
|
4300
|
+
/*$$scope*/
|
|
4301
|
+
f[15],
|
|
4302
|
+
y,
|
|
4303
|
+
Gi
|
|
4304
|
+
) : ye(
|
|
4305
|
+
/*$$scope*/
|
|
4306
|
+
f[15]
|
|
4307
|
+
),
|
|
4308
|
+
Bt
|
|
4309
|
+
), d ? d.p && (!a || y & /*$$scope*/
|
|
4310
|
+
32768) && ve(
|
|
4311
|
+
d,
|
|
4312
|
+
h,
|
|
4313
|
+
f,
|
|
4314
|
+
/*$$scope*/
|
|
4315
|
+
f[15],
|
|
4316
|
+
a ? be(
|
|
4317
|
+
h,
|
|
4318
|
+
/*$$scope*/
|
|
4319
|
+
f[15],
|
|
4320
|
+
y,
|
|
4321
|
+
$i
|
|
4322
|
+
) : ye(
|
|
4323
|
+
/*$$scope*/
|
|
4324
|
+
f[15]
|
|
4325
|
+
),
|
|
4326
|
+
It
|
|
4327
|
+
) : m && m.p && (!a || y & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, errormessage, shownError*/
|
|
4328
|
+
486) && m.p(f, a ? y : -1), T ? T.p && (!a || y & /*$$scope*/
|
|
4329
|
+
32768) && ve(
|
|
4330
|
+
T,
|
|
4331
|
+
g,
|
|
4332
|
+
f,
|
|
4333
|
+
/*$$scope*/
|
|
4334
|
+
f[15],
|
|
4335
|
+
a ? be(
|
|
4336
|
+
g,
|
|
4337
|
+
/*$$scope*/
|
|
4338
|
+
f[15],
|
|
4339
|
+
y,
|
|
4340
|
+
zi
|
|
4341
|
+
) : ye(
|
|
4342
|
+
/*$$scope*/
|
|
4343
|
+
f[15]
|
|
4344
|
+
),
|
|
4345
|
+
At
|
|
4346
|
+
) : E && E.p && (!a || y & /*$_*/
|
|
4347
|
+
256) && E.p(f, a ? y : -1);
|
|
4348
|
+
},
|
|
4349
|
+
i(f) {
|
|
4350
|
+
a || (D(l, f), D(c, f), D(m, f), D(E, f), a = !0);
|
|
4351
|
+
},
|
|
4352
|
+
o(f) {
|
|
4353
|
+
J(l, f), J(c, f), J(m, f), J(E, f), a = !1;
|
|
4354
|
+
},
|
|
4355
|
+
d(f) {
|
|
4356
|
+
f && k(t), l && l.d(f), c && c.d(f), m && m.d(f), E && E.d(f);
|
|
4357
|
+
}
|
|
4358
|
+
};
|
|
4211
4359
|
}
|
|
4212
|
-
|
|
4213
|
-
function At(e) {
|
|
4360
|
+
function Lt(e) {
|
|
4214
4361
|
let t, r;
|
|
4215
4362
|
return {
|
|
4216
4363
|
c() {
|
|
4217
|
-
t = H("ui-image"),
|
|
4218
|
-
e[0]}/error-general-icon.png`) ||
|
|
4364
|
+
t = H("ui-image"), ut(t.src, r = `${/*assetsurl*/
|
|
4365
|
+
e[0]}/error-general-icon.png`) || Ee(t, "src", r), Ee(t, "width", "300px"), Ee(t, "alt", "error");
|
|
4219
4366
|
},
|
|
4220
4367
|
m(n, i) {
|
|
4221
4368
|
A(n, t, i);
|
|
4222
4369
|
},
|
|
4223
4370
|
p(n, i) {
|
|
4224
4371
|
i & /*assetsurl*/
|
|
4225
|
-
1 && !
|
|
4226
|
-
n[0]}/error-general-icon.png`) &&
|
|
4372
|
+
1 && !ut(t.src, r = `${/*assetsurl*/
|
|
4373
|
+
n[0]}/error-general-icon.png`) && Ee(t, "src", r);
|
|
4227
4374
|
},
|
|
4228
4375
|
d(n) {
|
|
4229
|
-
n &&
|
|
4376
|
+
n && k(t);
|
|
4230
4377
|
}
|
|
4231
4378
|
};
|
|
4232
4379
|
}
|
|
4233
|
-
function
|
|
4380
|
+
function Vi(e) {
|
|
4234
4381
|
let t, r = (
|
|
4235
4382
|
/*assetsurl*/
|
|
4236
|
-
e[0] &&
|
|
4383
|
+
e[0] && Lt(e)
|
|
4237
4384
|
);
|
|
4238
4385
|
return {
|
|
4239
4386
|
c() {
|
|
4240
|
-
r && r.c(), t =
|
|
4387
|
+
r && r.c(), t = et();
|
|
4241
4388
|
},
|
|
4242
4389
|
m(n, i) {
|
|
4243
4390
|
r && r.m(n, i), A(n, t, i);
|
|
4244
4391
|
},
|
|
4245
4392
|
p(n, i) {
|
|
4246
4393
|
/*assetsurl*/
|
|
4247
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
4394
|
+
n[0] ? r ? r.p(n, i) : (r = Lt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4248
4395
|
},
|
|
4249
4396
|
d(n) {
|
|
4250
|
-
n &&
|
|
4397
|
+
n && k(t), r && r.d(n);
|
|
4251
4398
|
}
|
|
4252
4399
|
};
|
|
4253
4400
|
}
|
|
4254
|
-
function
|
|
4401
|
+
function Pt(e) {
|
|
4255
4402
|
let t;
|
|
4256
4403
|
function r(a, s) {
|
|
4257
4404
|
return (
|
|
4258
4405
|
/*depositWageringAmount*/
|
|
4259
|
-
a[
|
|
4406
|
+
a[5] < 0 ? Xi : Wi
|
|
4260
4407
|
);
|
|
4261
4408
|
}
|
|
4262
4409
|
let n = r(e), i = n(e);
|
|
4263
4410
|
return {
|
|
4264
4411
|
c() {
|
|
4265
|
-
i.c(), t =
|
|
4412
|
+
i.c(), t = et();
|
|
4266
4413
|
},
|
|
4267
4414
|
m(a, s) {
|
|
4268
4415
|
i.m(a, s), A(a, t, s);
|
|
@@ -4271,68 +4418,68 @@ function It(e) {
|
|
|
4271
4418
|
n === (n = r(a)) && i ? i.p(a, s) : (i.d(1), i = n(a), i && (i.c(), i.m(t.parentNode, t)));
|
|
4272
4419
|
},
|
|
4273
4420
|
d(a) {
|
|
4274
|
-
a &&
|
|
4421
|
+
a && k(t), i.d(a);
|
|
4275
4422
|
}
|
|
4276
4423
|
};
|
|
4277
4424
|
}
|
|
4278
|
-
function
|
|
4425
|
+
function Wi(e) {
|
|
4279
4426
|
let t, r = (
|
|
4280
4427
|
/*$_*/
|
|
4281
|
-
e[
|
|
4428
|
+
e[8]("DepositWageringLimitText") + ""
|
|
4282
4429
|
), n, i, a = (
|
|
4283
4430
|
/*depositWageringAmount*/
|
|
4284
|
-
e[
|
|
4431
|
+
e[5] > 0 && Ot(e)
|
|
4285
4432
|
);
|
|
4286
4433
|
return {
|
|
4287
4434
|
c() {
|
|
4288
|
-
t = H("span"), n =
|
|
4435
|
+
t = H("span"), n = R(r), i = K(), a && a.c(), M(t, "class", "CashierErrorText");
|
|
4289
4436
|
},
|
|
4290
4437
|
m(s, o) {
|
|
4291
4438
|
A(s, t, o), B(t, n), B(t, i), a && a.m(t, null);
|
|
4292
4439
|
},
|
|
4293
4440
|
p(s, o) {
|
|
4294
4441
|
o & /*$_*/
|
|
4295
|
-
|
|
4296
|
-
s[
|
|
4297
|
-
s[
|
|
4442
|
+
256 && r !== (r = /*$_*/
|
|
4443
|
+
s[8]("DepositWageringLimitText") + "") && Y(n, r), /*depositWageringAmount*/
|
|
4444
|
+
s[5] > 0 ? a ? a.p(s, o) : (a = Ot(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4298
4445
|
},
|
|
4299
4446
|
d(s) {
|
|
4300
|
-
s &&
|
|
4447
|
+
s && k(t), a && a.d();
|
|
4301
4448
|
}
|
|
4302
4449
|
};
|
|
4303
4450
|
}
|
|
4304
|
-
function
|
|
4451
|
+
function Xi(e) {
|
|
4305
4452
|
let t, r, n = (
|
|
4306
4453
|
/*$_*/
|
|
4307
|
-
e[
|
|
4454
|
+
e[8]("DepositWageringFetching") + ""
|
|
4308
4455
|
), i;
|
|
4309
4456
|
return {
|
|
4310
4457
|
c() {
|
|
4311
|
-
t = H("div"), r = H("span"), i =
|
|
4458
|
+
t = H("div"), r = H("span"), i = R(n), M(r, "class", "CashierErrorText LoadingText"), M(t, "class", "WageringFetch");
|
|
4312
4459
|
},
|
|
4313
4460
|
m(a, s) {
|
|
4314
4461
|
A(a, t, s), B(t, r), B(r, i);
|
|
4315
4462
|
},
|
|
4316
4463
|
p(a, s) {
|
|
4317
4464
|
s & /*$_*/
|
|
4318
|
-
|
|
4319
|
-
a[
|
|
4465
|
+
256 && n !== (n = /*$_*/
|
|
4466
|
+
a[8]("DepositWageringFetching") + "") && Y(i, n);
|
|
4320
4467
|
},
|
|
4321
4468
|
d(a) {
|
|
4322
|
-
a &&
|
|
4469
|
+
a && k(t);
|
|
4323
4470
|
}
|
|
4324
4471
|
};
|
|
4325
4472
|
}
|
|
4326
|
-
function
|
|
4473
|
+
function Ot(e) {
|
|
4327
4474
|
let t, r, n;
|
|
4328
4475
|
return {
|
|
4329
4476
|
c() {
|
|
4330
|
-
t =
|
|
4477
|
+
t = R(
|
|
4331
4478
|
/*depositWageringAmount*/
|
|
4332
|
-
e[4]
|
|
4333
|
-
), r = W(), n = N(
|
|
4334
|
-
/*depositWageringCurrency*/
|
|
4335
4479
|
e[5]
|
|
4480
|
+
), r = K(), n = R(
|
|
4481
|
+
/*depositWageringCurrency*/
|
|
4482
|
+
e[6]
|
|
4336
4483
|
);
|
|
4337
4484
|
},
|
|
4338
4485
|
m(i, a) {
|
|
@@ -4340,364 +4487,260 @@ function Bt(e) {
|
|
|
4340
4487
|
},
|
|
4341
4488
|
p(i, a) {
|
|
4342
4489
|
a & /*depositWageringAmount*/
|
|
4343
|
-
|
|
4490
|
+
32 && Y(
|
|
4344
4491
|
t,
|
|
4345
4492
|
/*depositWageringAmount*/
|
|
4346
|
-
i[
|
|
4493
|
+
i[5]
|
|
4347
4494
|
), a & /*depositWageringCurrency*/
|
|
4348
|
-
|
|
4495
|
+
64 && Y(
|
|
4349
4496
|
n,
|
|
4350
4497
|
/*depositWageringCurrency*/
|
|
4351
|
-
i[
|
|
4498
|
+
i[6]
|
|
4352
4499
|
);
|
|
4353
4500
|
},
|
|
4354
4501
|
d(i) {
|
|
4355
|
-
i && (
|
|
4502
|
+
i && (k(t), k(r), k(n));
|
|
4356
4503
|
}
|
|
4357
4504
|
};
|
|
4358
4505
|
}
|
|
4359
|
-
function
|
|
4506
|
+
function qi(e) {
|
|
4360
4507
|
let t, r = (
|
|
4361
4508
|
/*errormessage*/
|
|
4362
4509
|
(e[2].length > 0 ? (
|
|
4363
4510
|
/*errormessage*/
|
|
4364
4511
|
e[2]
|
|
4365
4512
|
) : (
|
|
4366
|
-
|
|
4367
|
-
e[
|
|
4368
|
-
e[1] || "errorGeneralText"}`)
|
|
4513
|
+
/*shownError*/
|
|
4514
|
+
e[7]
|
|
4369
4515
|
)) + ""
|
|
4370
4516
|
), n, i, a, s = (
|
|
4371
4517
|
/*errorcode*/
|
|
4372
|
-
e[1] == "DepositWageringLimit" &&
|
|
4518
|
+
e[1] == "DepositWageringLimit" && Pt(e)
|
|
4373
4519
|
);
|
|
4374
4520
|
return {
|
|
4375
4521
|
c() {
|
|
4376
|
-
t = H("span"), n =
|
|
4522
|
+
t = H("span"), n = R(r), i = K(), s && s.c(), a = et(), M(t, "class", "CashierErrorText");
|
|
4377
4523
|
},
|
|
4378
|
-
m(o,
|
|
4379
|
-
A(o, t,
|
|
4524
|
+
m(o, l) {
|
|
4525
|
+
A(o, t, l), B(t, n), A(o, i, l), s && s.m(o, l), A(o, a, l);
|
|
4380
4526
|
},
|
|
4381
|
-
p(o,
|
|
4382
|
-
|
|
4383
|
-
|
|
4527
|
+
p(o, l) {
|
|
4528
|
+
l & /*errormessage, shownError*/
|
|
4529
|
+
132 && r !== (r = /*errormessage*/
|
|
4384
4530
|
(o[2].length > 0 ? (
|
|
4385
4531
|
/*errormessage*/
|
|
4386
4532
|
o[2]
|
|
4387
4533
|
) : (
|
|
4388
|
-
|
|
4389
|
-
o[
|
|
4390
|
-
|
|
4391
|
-
|
|
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);
|
|
4534
|
+
/*shownError*/
|
|
4535
|
+
o[7]
|
|
4536
|
+
)) + "") && Y(n, r), /*errorcode*/
|
|
4537
|
+
o[1] == "DepositWageringLimit" ? s ? s.p(o, l) : (s = Pt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
|
|
4393
4538
|
},
|
|
4394
4539
|
d(o) {
|
|
4395
|
-
o && (
|
|
4540
|
+
o && (k(t), k(i), k(a)), s && s.d(o);
|
|
4396
4541
|
}
|
|
4397
4542
|
};
|
|
4398
4543
|
}
|
|
4399
|
-
function
|
|
4544
|
+
function Ji(e) {
|
|
4400
4545
|
let t, r, n = (
|
|
4401
4546
|
/*$_*/
|
|
4402
|
-
e[
|
|
4547
|
+
e[8]("errorGeneralButton") + ""
|
|
4403
4548
|
), i, a, s;
|
|
4404
4549
|
return {
|
|
4405
4550
|
c() {
|
|
4406
|
-
t = H("button"), r = H("span"), i =
|
|
4551
|
+
t = H("button"), r = H("span"), i = R(n), M(t, "class", "CashierErrorButton");
|
|
4407
4552
|
},
|
|
4408
|
-
m(o,
|
|
4409
|
-
A(o, t,
|
|
4553
|
+
m(o, l) {
|
|
4554
|
+
A(o, t, l), B(t, r), B(r, i), a || (s = kr(
|
|
4410
4555
|
t,
|
|
4411
4556
|
"click",
|
|
4412
4557
|
/*close*/
|
|
4413
|
-
e[
|
|
4558
|
+
e[9]
|
|
4414
4559
|
), a = !0);
|
|
4415
4560
|
},
|
|
4416
|
-
p(o,
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
o[
|
|
4561
|
+
p(o, l) {
|
|
4562
|
+
l & /*$_*/
|
|
4563
|
+
256 && n !== (n = /*$_*/
|
|
4564
|
+
o[8]("errorGeneralButton") + "") && Y(i, n);
|
|
4420
4565
|
},
|
|
4421
4566
|
d(o) {
|
|
4422
|
-
o &&
|
|
4567
|
+
o && k(t), a = !1, s();
|
|
4423
4568
|
}
|
|
4424
4569
|
};
|
|
4425
4570
|
}
|
|
4426
|
-
function
|
|
4427
|
-
let t, r, n
|
|
4428
|
-
|
|
4429
|
-
/*#slots*/
|
|
4430
|
-
e[14].icon
|
|
4431
|
-
), u = de(
|
|
4432
|
-
o,
|
|
4433
|
-
e,
|
|
4434
|
-
/*$$scope*/
|
|
4435
|
-
e[13],
|
|
4436
|
-
St
|
|
4437
|
-
), l = u || Fi(e), c = (
|
|
4438
|
-
/*#slots*/
|
|
4439
|
-
e[14].title
|
|
4440
|
-
), h = de(
|
|
4441
|
-
c,
|
|
4442
|
-
e,
|
|
4443
|
-
/*$$scope*/
|
|
4444
|
-
e[13],
|
|
4445
|
-
wt
|
|
4446
|
-
), d = (
|
|
4447
|
-
/*#slots*/
|
|
4448
|
-
e[14].text
|
|
4449
|
-
), v = de(
|
|
4450
|
-
d,
|
|
4451
|
-
e,
|
|
4452
|
-
/*$$scope*/
|
|
4453
|
-
e[13],
|
|
4454
|
-
kt
|
|
4455
|
-
), m = v || Gi(e), x = (
|
|
4456
|
-
/*#slots*/
|
|
4457
|
-
e[14].button
|
|
4458
|
-
), k = de(
|
|
4459
|
-
x,
|
|
4460
|
-
e,
|
|
4461
|
-
/*$$scope*/
|
|
4462
|
-
e[13],
|
|
4463
|
-
Tt
|
|
4464
|
-
), T = k || ji(e);
|
|
4571
|
+
function Ki(e) {
|
|
4572
|
+
let t, r, n = !/*isLoading*/
|
|
4573
|
+
e[4] && Ct(e);
|
|
4465
4574
|
return {
|
|
4466
4575
|
c() {
|
|
4467
|
-
t = H("div"),
|
|
4576
|
+
t = H("div"), n && n.c(), M(t, "class", "CashierError");
|
|
4468
4577
|
},
|
|
4469
|
-
m(
|
|
4470
|
-
A(
|
|
4578
|
+
m(i, a) {
|
|
4579
|
+
A(i, t, a), n && n.m(t, null), e[17](t), r = !0;
|
|
4471
4580
|
},
|
|
4472
|
-
p(
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
/*$$scope*/
|
|
4479
|
-
f[13],
|
|
4480
|
-
s ? fe(
|
|
4481
|
-
o,
|
|
4482
|
-
/*$$scope*/
|
|
4483
|
-
f[13],
|
|
4484
|
-
y,
|
|
4485
|
-
Ui
|
|
4486
|
-
) : ge(
|
|
4487
|
-
/*$$scope*/
|
|
4488
|
-
f[13]
|
|
4489
|
-
),
|
|
4490
|
-
St
|
|
4491
|
-
) : l && l.p && (!s || y & /*assetsurl*/
|
|
4492
|
-
1) && l.p(f, s ? y : -1), h && h.p && (!s || y & /*$$scope*/
|
|
4493
|
-
8192) && me(
|
|
4494
|
-
h,
|
|
4495
|
-
c,
|
|
4496
|
-
f,
|
|
4497
|
-
/*$$scope*/
|
|
4498
|
-
f[13],
|
|
4499
|
-
s ? fe(
|
|
4500
|
-
c,
|
|
4501
|
-
/*$$scope*/
|
|
4502
|
-
f[13],
|
|
4503
|
-
y,
|
|
4504
|
-
Ri
|
|
4505
|
-
) : ge(
|
|
4506
|
-
/*$$scope*/
|
|
4507
|
-
f[13]
|
|
4508
|
-
),
|
|
4509
|
-
wt
|
|
4510
|
-
), v ? v.p && (!s || y & /*$$scope*/
|
|
4511
|
-
8192) && me(
|
|
4512
|
-
v,
|
|
4513
|
-
d,
|
|
4514
|
-
f,
|
|
4515
|
-
/*$$scope*/
|
|
4516
|
-
f[13],
|
|
4517
|
-
s ? fe(
|
|
4518
|
-
d,
|
|
4519
|
-
/*$$scope*/
|
|
4520
|
-
f[13],
|
|
4521
|
-
y,
|
|
4522
|
-
Ni
|
|
4523
|
-
) : ge(
|
|
4524
|
-
/*$$scope*/
|
|
4525
|
-
f[13]
|
|
4526
|
-
),
|
|
4527
|
-
kt
|
|
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(
|
|
4531
|
-
k,
|
|
4532
|
-
x,
|
|
4533
|
-
f,
|
|
4534
|
-
/*$$scope*/
|
|
4535
|
-
f[13],
|
|
4536
|
-
s ? fe(
|
|
4537
|
-
x,
|
|
4538
|
-
/*$$scope*/
|
|
4539
|
-
f[13],
|
|
4540
|
-
y,
|
|
4541
|
-
Di
|
|
4542
|
-
) : ge(
|
|
4543
|
-
/*$$scope*/
|
|
4544
|
-
f[13]
|
|
4545
|
-
),
|
|
4546
|
-
Tt
|
|
4547
|
-
) : T && T.p && (!s || y & /*$_*/
|
|
4548
|
-
64) && T.p(f, s ? y : -1);
|
|
4581
|
+
p(i, [a]) {
|
|
4582
|
+
/*isLoading*/
|
|
4583
|
+
i[4] ? n && (Pr(), J(n, 1, 1, () => {
|
|
4584
|
+
n = null;
|
|
4585
|
+
}), Or()) : n ? (n.p(i, a), a & /*isLoading*/
|
|
4586
|
+
16 && D(n, 1)) : (n = Ct(i), n.c(), D(n, 1), n.m(t, null));
|
|
4549
4587
|
},
|
|
4550
|
-
i(
|
|
4551
|
-
|
|
4588
|
+
i(i) {
|
|
4589
|
+
r || (D(n), r = !0);
|
|
4552
4590
|
},
|
|
4553
|
-
o(
|
|
4554
|
-
|
|
4591
|
+
o(i) {
|
|
4592
|
+
J(n), r = !1;
|
|
4555
4593
|
},
|
|
4556
|
-
d(
|
|
4557
|
-
|
|
4594
|
+
d(i) {
|
|
4595
|
+
i && k(t), n && n.d(), e[17](null);
|
|
4558
4596
|
}
|
|
4559
4597
|
};
|
|
4560
4598
|
}
|
|
4561
|
-
function
|
|
4599
|
+
function Zi(e, t, r) {
|
|
4562
4600
|
let n;
|
|
4563
|
-
|
|
4564
|
-
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode:
|
|
4565
|
-
const
|
|
4566
|
-
|
|
4567
|
-
},
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
Object.entries(sr).forEach(([or, lr]) => {
|
|
4575
|
-
_t(or, lr);
|
|
4601
|
+
Er(e, Ri, (b) => r(8, n = b));
|
|
4602
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: l = "" } = t, { errormessage: u = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: m = "" } = t, g, T, E = -1, f, y, w = !1;
|
|
4603
|
+
const F = () => {
|
|
4604
|
+
Ui(o);
|
|
4605
|
+
}, P = () => {
|
|
4606
|
+
r(4, w = !0);
|
|
4607
|
+
let b = d;
|
|
4608
|
+
if (b)
|
|
4609
|
+
return fetch(b).then((j) => j.json()).then((j) => {
|
|
4610
|
+
Object.keys(j).forEach((nt) => {
|
|
4611
|
+
wt(nt, j[nt]);
|
|
4576
4612
|
});
|
|
4577
|
-
}
|
|
4578
|
-
console.
|
|
4579
|
-
}
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4613
|
+
}).catch((j) => {
|
|
4614
|
+
console.log(j);
|
|
4615
|
+
}).finally(() => {
|
|
4616
|
+
r(4, w = !1);
|
|
4617
|
+
});
|
|
4618
|
+
};
|
|
4619
|
+
Object.keys(St).forEach((b) => {
|
|
4620
|
+
wt(b, St[b]);
|
|
4583
4621
|
});
|
|
4584
|
-
const
|
|
4622
|
+
const G = () => {
|
|
4585
4623
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4586
|
-
},
|
|
4587
|
-
if (
|
|
4588
|
-
switch (
|
|
4624
|
+
}, se = (b) => {
|
|
4625
|
+
if (b.data)
|
|
4626
|
+
switch (b.data.type) {
|
|
4589
4627
|
case "DepositWageringAmount":
|
|
4590
|
-
r(
|
|
4628
|
+
r(5, E = b.data.amount), r(6, f = b.data.currency);
|
|
4591
4629
|
break;
|
|
4592
4630
|
}
|
|
4631
|
+
}, hr = () => {
|
|
4632
|
+
r(7, y = n(`${l || "errorGeneralText"}`));
|
|
4593
4633
|
};
|
|
4594
|
-
|
|
4595
|
-
window.removeEventListener("message",
|
|
4634
|
+
Ir(() => (window.addEventListener("message", se, !1), () => {
|
|
4635
|
+
window.removeEventListener("message", se);
|
|
4596
4636
|
}));
|
|
4597
|
-
function
|
|
4598
|
-
|
|
4599
|
-
|
|
4637
|
+
function dr(b) {
|
|
4638
|
+
$e[b ? "unshift" : "push"](() => {
|
|
4639
|
+
g = b, r(3, g);
|
|
4600
4640
|
});
|
|
4601
4641
|
}
|
|
4602
|
-
return e.$$set = (
|
|
4603
|
-
"assetsurl" in
|
|
4642
|
+
return e.$$set = (b) => {
|
|
4643
|
+
"assetsurl" in b && r(0, s = b.assetsurl), "lang" in b && r(10, o = b.lang), "errorcode" in b && r(1, l = b.errorcode), "errormessage" in b && r(2, u = b.errormessage), "clientstyling" in b && r(11, c = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, d = b.translationurl), "mbsource" in b && r(14, m = b.mbsource), "$$scope" in b && r(15, a = b.$$scope);
|
|
4604
4644
|
}, e.$$.update = () => {
|
|
4605
4645
|
e.$$.dirty & /*lang*/
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4646
|
+
1024 && o && F(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4647
|
+
2056 && c && g && $r(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4648
|
+
4104 && h && g && Gr(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4649
|
+
16392 && m && g && jr(g, `${m}.Style`, T), e.$$.dirty & /*translationurl*/
|
|
4650
|
+
8192 && d && P(), e.$$.dirty & /*isLoading*/
|
|
4651
|
+
16 && !w && hr();
|
|
4611
4652
|
}, [
|
|
4612
4653
|
s,
|
|
4613
|
-
u,
|
|
4614
4654
|
l,
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4655
|
+
u,
|
|
4656
|
+
g,
|
|
4657
|
+
w,
|
|
4658
|
+
E,
|
|
4659
|
+
f,
|
|
4660
|
+
y,
|
|
4618
4661
|
n,
|
|
4619
|
-
|
|
4662
|
+
G,
|
|
4620
4663
|
o,
|
|
4621
4664
|
c,
|
|
4622
4665
|
h,
|
|
4623
4666
|
d,
|
|
4624
|
-
|
|
4667
|
+
m,
|
|
4625
4668
|
a,
|
|
4626
4669
|
i,
|
|
4627
|
-
|
|
4670
|
+
dr
|
|
4628
4671
|
];
|
|
4629
4672
|
}
|
|
4630
|
-
class
|
|
4673
|
+
class Yi extends Fr {
|
|
4631
4674
|
constructor(t) {
|
|
4632
|
-
super(),
|
|
4675
|
+
super(), Rr(
|
|
4633
4676
|
this,
|
|
4634
4677
|
t,
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4678
|
+
Zi,
|
|
4679
|
+
Ki,
|
|
4680
|
+
Dt,
|
|
4638
4681
|
{
|
|
4639
4682
|
assetsurl: 0,
|
|
4640
|
-
lang:
|
|
4683
|
+
lang: 10,
|
|
4641
4684
|
errorcode: 1,
|
|
4642
4685
|
errormessage: 2,
|
|
4643
|
-
clientstyling:
|
|
4644
|
-
clientstylingurl:
|
|
4645
|
-
translationurl:
|
|
4646
|
-
mbsource:
|
|
4686
|
+
clientstyling: 11,
|
|
4687
|
+
clientstylingurl: 12,
|
|
4688
|
+
translationurl: 13,
|
|
4689
|
+
mbsource: 14
|
|
4647
4690
|
},
|
|
4648
|
-
|
|
4691
|
+
Fi
|
|
4649
4692
|
);
|
|
4650
4693
|
}
|
|
4651
4694
|
get assetsurl() {
|
|
4652
4695
|
return this.$$.ctx[0];
|
|
4653
4696
|
}
|
|
4654
4697
|
set assetsurl(t) {
|
|
4655
|
-
this.$$set({ assetsurl: t }),
|
|
4698
|
+
this.$$set({ assetsurl: t }), C();
|
|
4656
4699
|
}
|
|
4657
4700
|
get lang() {
|
|
4658
|
-
return this.$$.ctx[
|
|
4701
|
+
return this.$$.ctx[10];
|
|
4659
4702
|
}
|
|
4660
4703
|
set lang(t) {
|
|
4661
|
-
this.$$set({ lang: t }),
|
|
4704
|
+
this.$$set({ lang: t }), C();
|
|
4662
4705
|
}
|
|
4663
4706
|
get errorcode() {
|
|
4664
4707
|
return this.$$.ctx[1];
|
|
4665
4708
|
}
|
|
4666
4709
|
set errorcode(t) {
|
|
4667
|
-
this.$$set({ errorcode: t }),
|
|
4710
|
+
this.$$set({ errorcode: t }), C();
|
|
4668
4711
|
}
|
|
4669
4712
|
get errormessage() {
|
|
4670
4713
|
return this.$$.ctx[2];
|
|
4671
4714
|
}
|
|
4672
4715
|
set errormessage(t) {
|
|
4673
|
-
this.$$set({ errormessage: t }),
|
|
4716
|
+
this.$$set({ errormessage: t }), C();
|
|
4674
4717
|
}
|
|
4675
4718
|
get clientstyling() {
|
|
4676
|
-
return this.$$.ctx[
|
|
4719
|
+
return this.$$.ctx[11];
|
|
4677
4720
|
}
|
|
4678
4721
|
set clientstyling(t) {
|
|
4679
|
-
this.$$set({ clientstyling: t }),
|
|
4722
|
+
this.$$set({ clientstyling: t }), C();
|
|
4680
4723
|
}
|
|
4681
4724
|
get clientstylingurl() {
|
|
4682
|
-
return this.$$.ctx[
|
|
4725
|
+
return this.$$.ctx[12];
|
|
4683
4726
|
}
|
|
4684
4727
|
set clientstylingurl(t) {
|
|
4685
|
-
this.$$set({ clientstylingurl: t }),
|
|
4728
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
4686
4729
|
}
|
|
4687
4730
|
get translationurl() {
|
|
4688
|
-
return this.$$.ctx[
|
|
4731
|
+
return this.$$.ctx[13];
|
|
4689
4732
|
}
|
|
4690
4733
|
set translationurl(t) {
|
|
4691
|
-
this.$$set({ translationurl: t }),
|
|
4734
|
+
this.$$set({ translationurl: t }), C();
|
|
4692
4735
|
}
|
|
4693
4736
|
get mbsource() {
|
|
4694
|
-
return this.$$.ctx[
|
|
4737
|
+
return this.$$.ctx[14];
|
|
4695
4738
|
}
|
|
4696
4739
|
set mbsource(t) {
|
|
4697
|
-
this.$$set({ mbsource: t }),
|
|
4740
|
+
this.$$set({ mbsource: t }), C();
|
|
4698
4741
|
}
|
|
4699
4742
|
}
|
|
4700
|
-
|
|
4743
|
+
Ur(Yi, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4701
4744
|
export {
|
|
4702
|
-
|
|
4745
|
+
Yi as default
|
|
4703
4746
|
};
|