@everymatrix/cashier-error 1.94.66 → 1.94.68
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,7 +1,7 @@
|
|
|
1
1
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
2
|
function P() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function or(e, t) {
|
|
5
5
|
for (const r in t)
|
|
6
6
|
e[r] = t[r];
|
|
7
7
|
return (
|
|
@@ -9,29 +9,29 @@ function nr(e, t) {
|
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Bt(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function rt() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
e.forEach(
|
|
18
|
+
function re(e) {
|
|
19
|
+
e.forEach(Bt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ze(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Ht(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let me;
|
|
28
|
+
function nt(e, t) {
|
|
29
|
+
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function lr(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ct(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
@@ -40,19 +40,19 @@ function St(e, ...t) {
|
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function ur(e, t, r) {
|
|
44
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ge(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Lt(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] && n ?
|
|
52
|
+
function Lt(e, t, r, n) {
|
|
53
|
+
return e[1] && n ? or(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function pe(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
57
57
|
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
@@ -67,13 +67,13 @@ function de(e, t, r, n) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function be(e, t, r, n, i, a) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const s =
|
|
72
|
+
const s = Lt(t, r, n, a);
|
|
73
73
|
e.p(s, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ve(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -85,14 +85,14 @@ function me(e) {
|
|
|
85
85
|
function I(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
88
|
+
function cr(e, t, r) {
|
|
89
|
+
const n = hr(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
91
|
const i = B("style");
|
|
92
|
-
i.id = t, i.textContent = r,
|
|
92
|
+
i.id = t, i.textContent = r, dr(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function hr(e) {
|
|
96
96
|
if (!e)
|
|
97
97
|
return document;
|
|
98
98
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -102,7 +102,7 @@ function or(e) {
|
|
|
102
102
|
t
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function dr(e, t) {
|
|
106
106
|
return I(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
@@ -112,39 +112,39 @@ function lr(e, t) {
|
|
|
112
112
|
function A(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function k(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
118
|
function B(e) {
|
|
119
119
|
return document.createElement(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function N(e) {
|
|
122
122
|
return document.createTextNode(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function J() {
|
|
125
|
+
return N(" ");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function Ye() {
|
|
128
|
+
return N("");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function fr(e, t, r, n) {
|
|
131
131
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
132
132
|
}
|
|
133
133
|
function O(e, t, r) {
|
|
134
134
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ye(e, t, r) {
|
|
137
137
|
const n = t.toLowerCase();
|
|
138
138
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : O(e, t, r);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function mr(e) {
|
|
141
141
|
return Array.from(e.childNodes);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Z(e, t) {
|
|
144
144
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
145
145
|
t);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function gr(e) {
|
|
148
148
|
const t = {};
|
|
149
149
|
return e.childNodes.forEach(
|
|
150
150
|
/** @param {Element} node */
|
|
@@ -153,135 +153,147 @@ function hr(e) {
|
|
|
153
153
|
}
|
|
154
154
|
), t;
|
|
155
155
|
}
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
|
|
156
|
+
let ue;
|
|
157
|
+
function le(e) {
|
|
158
|
+
ue = e;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
if (!
|
|
160
|
+
function pr() {
|
|
161
|
+
if (!ue)
|
|
162
162
|
throw new Error("Function called outside component initialization");
|
|
163
|
-
return
|
|
163
|
+
return ue;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
const
|
|
171
|
-
let
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
function
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
165
|
+
function br(e) {
|
|
166
|
+
pr().$$.on_mount.push(e);
|
|
167
|
+
}
|
|
168
|
+
const W = [], Fe = [];
|
|
169
|
+
let K = [];
|
|
170
|
+
const it = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
171
|
+
let ze = !1;
|
|
172
|
+
function yr() {
|
|
173
|
+
ze || (ze = !0, vr.then(H));
|
|
174
|
+
}
|
|
175
|
+
function $e(e) {
|
|
176
|
+
K.push(e);
|
|
177
|
+
}
|
|
178
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
179
|
+
let j = 0;
|
|
180
|
+
function H() {
|
|
181
|
+
if (j !== 0)
|
|
182
182
|
return;
|
|
183
|
-
const e =
|
|
183
|
+
const e = ue;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
|
-
for (;
|
|
187
|
-
const t =
|
|
188
|
-
|
|
186
|
+
for (; j < W.length; ) {
|
|
187
|
+
const t = W[j];
|
|
188
|
+
j++, le(t), Er(t.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (t) {
|
|
191
|
-
throw
|
|
191
|
+
throw W.length = 0, j = 0, t;
|
|
192
192
|
}
|
|
193
|
-
for (
|
|
194
|
-
|
|
195
|
-
for (let t = 0; t <
|
|
196
|
-
const r =
|
|
197
|
-
|
|
193
|
+
for (le(null), W.length = 0, j = 0; Fe.length; )
|
|
194
|
+
Fe.pop()();
|
|
195
|
+
for (let t = 0; t < K.length; t += 1) {
|
|
196
|
+
const r = K[t];
|
|
197
|
+
Pe.has(r) || (Pe.add(r), r());
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
} while (
|
|
201
|
-
for (;
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
K.length = 0;
|
|
200
|
+
} while (W.length);
|
|
201
|
+
for (; it.length; )
|
|
202
|
+
it.pop()();
|
|
203
|
+
ze = !1, Pe.clear(), le(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Er(e) {
|
|
206
206
|
if (e.fragment !== null) {
|
|
207
|
-
e.update(),
|
|
207
|
+
e.update(), re(e.before_update);
|
|
208
208
|
const t = e.dirty;
|
|
209
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
209
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function _r(e) {
|
|
213
213
|
const t = [], r = [];
|
|
214
|
-
|
|
214
|
+
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
215
|
+
}
|
|
216
|
+
const _e = /* @__PURE__ */ new Set();
|
|
217
|
+
let F;
|
|
218
|
+
function xr() {
|
|
219
|
+
F = {
|
|
220
|
+
r: 0,
|
|
221
|
+
c: [],
|
|
222
|
+
p: F
|
|
223
|
+
// parent group
|
|
224
|
+
};
|
|
215
225
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
function te(e, t) {
|
|
219
|
-
e && e.i && (ve.delete(e), e.i(t));
|
|
226
|
+
function Tr() {
|
|
227
|
+
F.r || re(F.c), F = F.p;
|
|
220
228
|
}
|
|
221
|
-
function
|
|
229
|
+
function M(e, t) {
|
|
230
|
+
e && e.i && (_e.delete(e), e.i(t));
|
|
231
|
+
}
|
|
232
|
+
function q(e, t, r, n) {
|
|
222
233
|
if (e && e.o) {
|
|
223
|
-
if (
|
|
234
|
+
if (_e.has(e))
|
|
224
235
|
return;
|
|
225
|
-
|
|
226
|
-
|
|
236
|
+
_e.add(e), F.c.push(() => {
|
|
237
|
+
_e.delete(e), n && (r && e.d(1), n());
|
|
227
238
|
}), e.o(t);
|
|
228
|
-
}
|
|
239
|
+
} else
|
|
240
|
+
n && n();
|
|
229
241
|
}
|
|
230
|
-
function
|
|
242
|
+
function kr(e, t, r) {
|
|
231
243
|
const { fragment: n, after_update: i } = e.$$;
|
|
232
|
-
n && n.m(t, r),
|
|
233
|
-
const a = e.$$.on_mount.map(
|
|
234
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
235
|
-
}), i.forEach(
|
|
244
|
+
n && n.m(t, r), $e(() => {
|
|
245
|
+
const a = e.$$.on_mount.map(Bt).filter(Ze);
|
|
246
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : re(a), e.$$.on_mount = [];
|
|
247
|
+
}), i.forEach($e);
|
|
236
248
|
}
|
|
237
|
-
function
|
|
249
|
+
function wr(e, t) {
|
|
238
250
|
const r = e.$$;
|
|
239
|
-
r.fragment !== null && (
|
|
251
|
+
r.fragment !== null && (_r(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
240
252
|
}
|
|
241
|
-
function
|
|
242
|
-
e.$$.dirty[0] === -1 && (
|
|
253
|
+
function Sr(e, t) {
|
|
254
|
+
e.$$.dirty[0] === -1 && (W.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
243
255
|
}
|
|
244
|
-
function
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
const
|
|
256
|
+
function Ar(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
257
|
+
const l = ue;
|
|
258
|
+
le(e);
|
|
259
|
+
const u = e.$$ = {
|
|
248
260
|
fragment: null,
|
|
249
261
|
ctx: [],
|
|
250
262
|
// state
|
|
251
263
|
props: a,
|
|
252
264
|
update: P,
|
|
253
265
|
not_equal: i,
|
|
254
|
-
bound:
|
|
266
|
+
bound: rt(),
|
|
255
267
|
// lifecycle
|
|
256
268
|
on_mount: [],
|
|
257
269
|
on_destroy: [],
|
|
258
270
|
on_disconnect: [],
|
|
259
271
|
before_update: [],
|
|
260
272
|
after_update: [],
|
|
261
|
-
context: new Map(t.context || (
|
|
273
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
262
274
|
// everything else
|
|
263
|
-
callbacks:
|
|
275
|
+
callbacks: rt(),
|
|
264
276
|
dirty: o,
|
|
265
277
|
skip_bound: !1,
|
|
266
|
-
root: t.target ||
|
|
278
|
+
root: t.target || l.$$.root
|
|
267
279
|
};
|
|
268
|
-
s && s(
|
|
280
|
+
s && s(u.root);
|
|
269
281
|
let c = !1;
|
|
270
|
-
if (
|
|
271
|
-
const
|
|
272
|
-
return
|
|
273
|
-
}) : [],
|
|
282
|
+
if (u.ctx = r ? r(e, t.props || {}, (h, d, ...m) => {
|
|
283
|
+
const g = m.length ? m[0] : d;
|
|
284
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = g) && (!u.skip_bound && u.bound[h] && u.bound[h](g), c && Sr(e, h)), d;
|
|
285
|
+
}) : [], u.update(), c = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
274
286
|
if (t.hydrate) {
|
|
275
|
-
const h =
|
|
276
|
-
|
|
287
|
+
const h = mr(t.target);
|
|
288
|
+
u.fragment && u.fragment.l(h), h.forEach(k);
|
|
277
289
|
} else
|
|
278
|
-
|
|
279
|
-
t.intro &&
|
|
290
|
+
u.fragment && u.fragment.c();
|
|
291
|
+
t.intro && M(e.$$.fragment), kr(e, t.target, t.anchor), H();
|
|
280
292
|
}
|
|
281
|
-
|
|
293
|
+
le(l);
|
|
282
294
|
}
|
|
283
|
-
let
|
|
284
|
-
typeof HTMLElement == "function" && (
|
|
295
|
+
let Pt;
|
|
296
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
285
297
|
/** The Svelte component constructor */
|
|
286
298
|
$$ctor;
|
|
287
299
|
/** Slots */
|
|
@@ -329,23 +341,23 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
329
341
|
* @param {HTMLElement} target
|
|
330
342
|
* @param {HTMLElement} [anchor]
|
|
331
343
|
*/
|
|
332
|
-
m: function(
|
|
333
|
-
A(
|
|
344
|
+
m: function(l, u) {
|
|
345
|
+
A(l, a, u);
|
|
334
346
|
},
|
|
335
|
-
d: function(
|
|
336
|
-
|
|
347
|
+
d: function(l) {
|
|
348
|
+
l && k(a);
|
|
337
349
|
}
|
|
338
350
|
};
|
|
339
351
|
};
|
|
340
352
|
};
|
|
341
353
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
342
354
|
return;
|
|
343
|
-
const t = {}, r =
|
|
355
|
+
const t = {}, r = gr(this);
|
|
344
356
|
for (const i of this.$$s)
|
|
345
357
|
i in r && (t[i] = [e(i)]);
|
|
346
358
|
for (const i of this.attributes) {
|
|
347
359
|
const a = this.$$g_p(i.name);
|
|
348
|
-
a in this.$$d || (this.$$d[a] =
|
|
360
|
+
a in this.$$d || (this.$$d[a] = xe(a, i.value, this.$$p_d, "toProp"));
|
|
349
361
|
}
|
|
350
362
|
for (const i in this.$$p_d)
|
|
351
363
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -363,7 +375,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
363
375
|
this.$$r = !0;
|
|
364
376
|
for (const i in this.$$p_d)
|
|
365
377
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
366
|
-
const a =
|
|
378
|
+
const a = xe(
|
|
367
379
|
i,
|
|
368
380
|
this.$$d[i],
|
|
369
381
|
this.$$p_d,
|
|
@@ -385,7 +397,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
385
397
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
386
398
|
// and setting attributes through setAttribute etc, this is helpful
|
|
387
399
|
attributeChangedCallback(e, t, r) {
|
|
388
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
400
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = xe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
389
401
|
}
|
|
390
402
|
disconnectedCallback() {
|
|
391
403
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -398,7 +410,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
398
410
|
) || e;
|
|
399
411
|
}
|
|
400
412
|
});
|
|
401
|
-
function
|
|
413
|
+
function xe(e, t, r, n) {
|
|
402
414
|
const i = r[e]?.type;
|
|
403
415
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
404
416
|
return t;
|
|
@@ -427,8 +439,8 @@ function ye(e, t, r, n) {
|
|
|
427
439
|
return t;
|
|
428
440
|
}
|
|
429
441
|
}
|
|
430
|
-
function
|
|
431
|
-
let s = class extends
|
|
442
|
+
function Ir(e, t, r, n, i, a) {
|
|
443
|
+
let s = class extends Pt {
|
|
432
444
|
constructor() {
|
|
433
445
|
super(e, r, i), this.$$p_d = t;
|
|
434
446
|
}
|
|
@@ -443,8 +455,8 @@ function Tr(e, t, r, n, i, a) {
|
|
|
443
455
|
get() {
|
|
444
456
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
445
457
|
},
|
|
446
|
-
set(
|
|
447
|
-
|
|
458
|
+
set(l) {
|
|
459
|
+
l = xe(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
448
460
|
}
|
|
449
461
|
});
|
|
450
462
|
}), n.forEach((o) => {
|
|
@@ -456,7 +468,7 @@ function Tr(e, t, r, n, i, a) {
|
|
|
456
468
|
}), e.element = /** @type {any} */
|
|
457
469
|
s, s;
|
|
458
470
|
}
|
|
459
|
-
class
|
|
471
|
+
class Br {
|
|
460
472
|
/**
|
|
461
473
|
* ### PRIVATE API
|
|
462
474
|
*
|
|
@@ -475,7 +487,7 @@ class kr {
|
|
|
475
487
|
$$set = void 0;
|
|
476
488
|
/** @returns {void} */
|
|
477
489
|
$destroy() {
|
|
478
|
-
|
|
490
|
+
wr(this, 1), this.$destroy = P;
|
|
479
491
|
}
|
|
480
492
|
/**
|
|
481
493
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -484,7 +496,7 @@ class kr {
|
|
|
484
496
|
* @returns {() => void}
|
|
485
497
|
*/
|
|
486
498
|
$on(t, r) {
|
|
487
|
-
if (!
|
|
499
|
+
if (!Ze(r))
|
|
488
500
|
return P;
|
|
489
501
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
490
502
|
return n.push(r), () => {
|
|
@@ -497,19 +509,19 @@ class kr {
|
|
|
497
509
|
* @returns {void}
|
|
498
510
|
*/
|
|
499
511
|
$set(t) {
|
|
500
|
-
this.$$set && !
|
|
512
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
501
513
|
}
|
|
502
514
|
}
|
|
503
|
-
const
|
|
504
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
505
|
-
const
|
|
506
|
-
function
|
|
515
|
+
const Hr = "4";
|
|
516
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
517
|
+
const X = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
518
|
+
function Cr(e, t) {
|
|
507
519
|
if (e) {
|
|
508
520
|
const r = document.createElement("style");
|
|
509
521
|
r.innerHTML = t, e.appendChild(r);
|
|
510
522
|
}
|
|
511
523
|
}
|
|
512
|
-
function
|
|
524
|
+
function Lr(e, t) {
|
|
513
525
|
if (!e || !t)
|
|
514
526
|
return;
|
|
515
527
|
const r = new URL(t);
|
|
@@ -520,32 +532,32 @@ function Ar(e, t) {
|
|
|
520
532
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
521
533
|
});
|
|
522
534
|
}
|
|
523
|
-
function
|
|
535
|
+
function Pr(e, t, r, n = !1) {
|
|
524
536
|
if (!window.emMessageBus)
|
|
525
537
|
return;
|
|
526
538
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
527
|
-
return r =
|
|
528
|
-
window[
|
|
539
|
+
return r = Or(e, t), r;
|
|
540
|
+
window[X] || (window[X] = {}), r = Mr(e, t);
|
|
529
541
|
const a = r.unsubscribe.bind(r), s = () => {
|
|
530
|
-
if (window[
|
|
531
|
-
const o = window[
|
|
532
|
-
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[
|
|
542
|
+
if (window[X][t]) {
|
|
543
|
+
const o = window[X][t];
|
|
544
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[X][t];
|
|
533
545
|
}
|
|
534
546
|
a();
|
|
535
547
|
};
|
|
536
548
|
return r.unsubscribe = s, r;
|
|
537
549
|
}
|
|
538
|
-
function
|
|
550
|
+
function Or(e, t) {
|
|
539
551
|
const r = document.createElement("style");
|
|
540
552
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
541
553
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
542
554
|
});
|
|
543
555
|
}
|
|
544
|
-
function
|
|
556
|
+
function Mr(e, t) {
|
|
545
557
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
546
558
|
if (!e)
|
|
547
559
|
return;
|
|
548
|
-
const n = e.getRootNode(), i = window[
|
|
560
|
+
const n = e.getRootNode(), i = window[X];
|
|
549
561
|
let a = i[t] && i[t].sheet;
|
|
550
562
|
a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
|
|
551
563
|
sheet: a,
|
|
@@ -555,171 +567,171 @@ function Hr(e, t) {
|
|
|
555
567
|
s.includes(a) || (n.adoptedStyleSheets = [...s, a]);
|
|
556
568
|
});
|
|
557
569
|
}
|
|
558
|
-
const
|
|
559
|
-
function
|
|
570
|
+
const V = [];
|
|
571
|
+
function Dr(e, t) {
|
|
560
572
|
return {
|
|
561
|
-
subscribe:
|
|
573
|
+
subscribe: Be(e, t).subscribe
|
|
562
574
|
};
|
|
563
575
|
}
|
|
564
|
-
function
|
|
576
|
+
function Be(e, t = P) {
|
|
565
577
|
let r;
|
|
566
578
|
const n = /* @__PURE__ */ new Set();
|
|
567
579
|
function i(o) {
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
for (const
|
|
571
|
-
|
|
572
|
-
if (
|
|
573
|
-
for (let
|
|
574
|
-
|
|
575
|
-
|
|
580
|
+
if (Ht(e, o) && (e = o, r)) {
|
|
581
|
+
const l = !V.length;
|
|
582
|
+
for (const u of n)
|
|
583
|
+
u[1](), V.push(u, e);
|
|
584
|
+
if (l) {
|
|
585
|
+
for (let u = 0; u < V.length; u += 2)
|
|
586
|
+
V[u][0](V[u + 1]);
|
|
587
|
+
V.length = 0;
|
|
576
588
|
}
|
|
577
589
|
}
|
|
578
590
|
}
|
|
579
591
|
function a(o) {
|
|
580
592
|
i(o(e));
|
|
581
593
|
}
|
|
582
|
-
function s(o,
|
|
583
|
-
const
|
|
584
|
-
return n.add(
|
|
585
|
-
n.delete(
|
|
594
|
+
function s(o, l = P) {
|
|
595
|
+
const u = [o, l];
|
|
596
|
+
return n.add(u), n.size === 1 && (r = t(i, a) || P), o(e), () => {
|
|
597
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
586
598
|
};
|
|
587
599
|
}
|
|
588
600
|
return { set: i, update: a, subscribe: s };
|
|
589
601
|
}
|
|
590
|
-
function
|
|
602
|
+
function ne(e, t, r) {
|
|
591
603
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
592
604
|
if (!i.every(Boolean))
|
|
593
605
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
594
606
|
const a = t.length < 2;
|
|
595
|
-
return
|
|
596
|
-
let
|
|
597
|
-
const
|
|
607
|
+
return Dr(r, (s, o) => {
|
|
608
|
+
let l = !1;
|
|
609
|
+
const u = [];
|
|
598
610
|
let c = 0, h = P;
|
|
599
611
|
const d = () => {
|
|
600
612
|
if (c)
|
|
601
613
|
return;
|
|
602
614
|
h();
|
|
603
|
-
const
|
|
604
|
-
a ? s(
|
|
605
|
-
},
|
|
606
|
-
(
|
|
607
|
-
|
|
608
|
-
(
|
|
609
|
-
|
|
615
|
+
const g = t(n ? u[0] : u, s, o);
|
|
616
|
+
a ? s(g) : h = Ze(g) ? g : P;
|
|
617
|
+
}, m = i.map(
|
|
618
|
+
(g, T) => Ct(
|
|
619
|
+
g,
|
|
620
|
+
(E) => {
|
|
621
|
+
u[T] = E, c &= ~(1 << T), l && d();
|
|
610
622
|
},
|
|
611
623
|
() => {
|
|
612
|
-
c |= 1 <<
|
|
624
|
+
c |= 1 << T;
|
|
613
625
|
}
|
|
614
626
|
)
|
|
615
627
|
);
|
|
616
|
-
return
|
|
617
|
-
|
|
628
|
+
return l = !0, d(), function() {
|
|
629
|
+
re(m), h(), l = !1;
|
|
618
630
|
};
|
|
619
631
|
});
|
|
620
632
|
}
|
|
621
|
-
function
|
|
633
|
+
function Nr(e) {
|
|
622
634
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
623
635
|
}
|
|
624
|
-
var
|
|
625
|
-
return
|
|
636
|
+
var Rr = function(t) {
|
|
637
|
+
return Ur(t) && !Fr(t);
|
|
626
638
|
};
|
|
627
|
-
function
|
|
639
|
+
function Ur(e) {
|
|
628
640
|
return !!e && typeof e == "object";
|
|
629
641
|
}
|
|
630
|
-
function
|
|
642
|
+
function Fr(e) {
|
|
631
643
|
var t = Object.prototype.toString.call(e);
|
|
632
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
644
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
|
|
633
645
|
}
|
|
634
|
-
var
|
|
635
|
-
function
|
|
636
|
-
return e.$$typeof ===
|
|
646
|
+
var zr = typeof Symbol == "function" && Symbol.for, $r = zr ? Symbol.for("react.element") : 60103;
|
|
647
|
+
function Gr(e) {
|
|
648
|
+
return e.$$typeof === $r;
|
|
637
649
|
}
|
|
638
|
-
function
|
|
650
|
+
function jr(e) {
|
|
639
651
|
return Array.isArray(e) ? [] : {};
|
|
640
652
|
}
|
|
641
|
-
function
|
|
642
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
653
|
+
function ce(e, t) {
|
|
654
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(jr(e), e, t) : e;
|
|
643
655
|
}
|
|
644
|
-
function
|
|
656
|
+
function Vr(e, t, r) {
|
|
645
657
|
return e.concat(t).map(function(n) {
|
|
646
|
-
return
|
|
658
|
+
return ce(n, r);
|
|
647
659
|
});
|
|
648
660
|
}
|
|
649
|
-
function
|
|
661
|
+
function Wr(e, t) {
|
|
650
662
|
if (!t.customMerge)
|
|
651
|
-
return
|
|
663
|
+
return Y;
|
|
652
664
|
var r = t.customMerge(e);
|
|
653
|
-
return typeof r == "function" ? r :
|
|
665
|
+
return typeof r == "function" ? r : Y;
|
|
654
666
|
}
|
|
655
|
-
function
|
|
667
|
+
function Xr(e) {
|
|
656
668
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
657
669
|
return Object.propertyIsEnumerable.call(e, t);
|
|
658
670
|
}) : [];
|
|
659
671
|
}
|
|
660
|
-
function
|
|
661
|
-
return Object.keys(e).concat(
|
|
672
|
+
function at(e) {
|
|
673
|
+
return Object.keys(e).concat(Xr(e));
|
|
662
674
|
}
|
|
663
|
-
function
|
|
675
|
+
function Ot(e, t) {
|
|
664
676
|
try {
|
|
665
677
|
return t in e;
|
|
666
678
|
} catch {
|
|
667
679
|
return !1;
|
|
668
680
|
}
|
|
669
681
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
682
|
+
function qr(e, t) {
|
|
683
|
+
return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
672
684
|
}
|
|
673
|
-
function
|
|
685
|
+
function Jr(e, t, r) {
|
|
674
686
|
var n = {};
|
|
675
|
-
return r.isMergeableObject(e) &&
|
|
676
|
-
n[i] =
|
|
677
|
-
}),
|
|
678
|
-
|
|
687
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
688
|
+
n[i] = ce(e[i], r);
|
|
689
|
+
}), at(t).forEach(function(i) {
|
|
690
|
+
qr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Wr(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
679
691
|
}), n;
|
|
680
692
|
}
|
|
681
|
-
function
|
|
682
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
693
|
+
function Y(e, t, r) {
|
|
694
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Vr, r.isMergeableObject = r.isMergeableObject || Rr, r.cloneUnlessOtherwiseSpecified = ce;
|
|
683
695
|
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
684
|
-
return a ? n ? r.arrayMerge(e, t, r) :
|
|
696
|
+
return a ? n ? r.arrayMerge(e, t, r) : Jr(e, t, r) : ce(t, r);
|
|
685
697
|
}
|
|
686
|
-
|
|
698
|
+
Y.all = function(t, r) {
|
|
687
699
|
if (!Array.isArray(t))
|
|
688
700
|
throw new Error("first argument should be an array");
|
|
689
701
|
return t.reduce(function(n, i) {
|
|
690
|
-
return
|
|
702
|
+
return Y(n, i, r);
|
|
691
703
|
}, {});
|
|
692
704
|
};
|
|
693
|
-
var
|
|
694
|
-
const
|
|
695
|
-
var
|
|
696
|
-
return
|
|
705
|
+
var Kr = Y, Zr = Kr;
|
|
706
|
+
const Yr = /* @__PURE__ */ Nr(Zr);
|
|
707
|
+
var Ge = function(e, t) {
|
|
708
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
697
709
|
r.__proto__ = n;
|
|
698
710
|
} || function(r, n) {
|
|
699
711
|
for (var i in n)
|
|
700
712
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
701
|
-
},
|
|
713
|
+
}, Ge(e, t);
|
|
702
714
|
};
|
|
703
|
-
function
|
|
715
|
+
function He(e, t) {
|
|
704
716
|
if (typeof t != "function" && t !== null)
|
|
705
717
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
706
|
-
|
|
718
|
+
Ge(e, t);
|
|
707
719
|
function r() {
|
|
708
720
|
this.constructor = e;
|
|
709
721
|
}
|
|
710
722
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
711
723
|
}
|
|
712
|
-
var
|
|
713
|
-
return
|
|
724
|
+
var C = function() {
|
|
725
|
+
return C = Object.assign || function(t) {
|
|
714
726
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
715
727
|
r = arguments[n];
|
|
716
728
|
for (var a in r)
|
|
717
729
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
718
730
|
}
|
|
719
731
|
return t;
|
|
720
|
-
},
|
|
732
|
+
}, C.apply(this, arguments);
|
|
721
733
|
};
|
|
722
|
-
function
|
|
734
|
+
function Qr(e, t) {
|
|
723
735
|
var r = {};
|
|
724
736
|
for (var n in e)
|
|
725
737
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -728,43 +740,43 @@ function qr(e, t) {
|
|
|
728
740
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
729
741
|
return r;
|
|
730
742
|
}
|
|
731
|
-
function
|
|
743
|
+
function Oe(e, t, r) {
|
|
732
744
|
if (r || arguments.length === 2)
|
|
733
745
|
for (var n = 0, i = t.length, a; n < i; n++)
|
|
734
746
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
735
747
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
736
748
|
}
|
|
737
|
-
function
|
|
738
|
-
var r = t && t.cache ? t.cache :
|
|
749
|
+
function Me(e, t) {
|
|
750
|
+
var r = t && t.cache ? t.cache : on, n = t && t.serializer ? t.serializer : an, i = t && t.strategy ? t.strategy : rn;
|
|
739
751
|
return i(e, {
|
|
740
752
|
cache: r,
|
|
741
753
|
serializer: n
|
|
742
754
|
});
|
|
743
755
|
}
|
|
744
|
-
function
|
|
756
|
+
function en(e) {
|
|
745
757
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
746
758
|
}
|
|
747
|
-
function
|
|
748
|
-
var i =
|
|
759
|
+
function tn(e, t, r, n) {
|
|
760
|
+
var i = en(n) ? n : r(n), a = t.get(i);
|
|
749
761
|
return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
|
|
750
762
|
}
|
|
751
|
-
function
|
|
763
|
+
function Mt(e, t, r) {
|
|
752
764
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
753
765
|
return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
754
766
|
}
|
|
755
|
-
function
|
|
767
|
+
function Dt(e, t, r, n, i) {
|
|
756
768
|
return r.bind(t, e, n, i);
|
|
757
769
|
}
|
|
758
|
-
function
|
|
759
|
-
var r = e.length === 1 ?
|
|
760
|
-
return
|
|
770
|
+
function rn(e, t) {
|
|
771
|
+
var r = e.length === 1 ? tn : Mt;
|
|
772
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
761
773
|
}
|
|
762
|
-
function
|
|
763
|
-
return
|
|
774
|
+
function nn(e, t) {
|
|
775
|
+
return Dt(e, this, Mt, t.cache.create(), t.serializer);
|
|
764
776
|
}
|
|
765
|
-
var
|
|
777
|
+
var an = function() {
|
|
766
778
|
return JSON.stringify(arguments);
|
|
767
|
-
},
|
|
779
|
+
}, sn = (
|
|
768
780
|
/** @class */
|
|
769
781
|
function() {
|
|
770
782
|
function e() {
|
|
@@ -776,71 +788,71 @@ var Qr = function() {
|
|
|
776
788
|
this.cache[t] = r;
|
|
777
789
|
}, e;
|
|
778
790
|
}()
|
|
779
|
-
),
|
|
791
|
+
), on = {
|
|
780
792
|
create: function() {
|
|
781
|
-
return new
|
|
793
|
+
return new sn();
|
|
782
794
|
}
|
|
783
|
-
},
|
|
784
|
-
variadic:
|
|
785
|
-
},
|
|
786
|
-
return
|
|
795
|
+
}, De = {
|
|
796
|
+
variadic: nn
|
|
797
|
+
}, we = function() {
|
|
798
|
+
return we = Object.assign || function(t) {
|
|
787
799
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
788
800
|
r = arguments[n];
|
|
789
801
|
for (var a in r)
|
|
790
802
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
791
803
|
}
|
|
792
804
|
return t;
|
|
793
|
-
},
|
|
805
|
+
}, we.apply(this, arguments);
|
|
794
806
|
};
|
|
795
807
|
var p;
|
|
796
808
|
(function(e) {
|
|
797
809
|
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";
|
|
798
810
|
})(p || (p = {}));
|
|
799
|
-
var
|
|
811
|
+
var _;
|
|
800
812
|
(function(e) {
|
|
801
813
|
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";
|
|
802
|
-
})(
|
|
803
|
-
var
|
|
814
|
+
})(_ || (_ = {}));
|
|
815
|
+
var Q;
|
|
804
816
|
(function(e) {
|
|
805
817
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
806
|
-
})(
|
|
807
|
-
function
|
|
808
|
-
return e.type ===
|
|
818
|
+
})(Q || (Q = {}));
|
|
819
|
+
function st(e) {
|
|
820
|
+
return e.type === _.literal;
|
|
809
821
|
}
|
|
810
|
-
function
|
|
811
|
-
return e.type ===
|
|
822
|
+
function ln(e) {
|
|
823
|
+
return e.type === _.argument;
|
|
812
824
|
}
|
|
813
|
-
function
|
|
814
|
-
return e.type ===
|
|
825
|
+
function Nt(e) {
|
|
826
|
+
return e.type === _.number;
|
|
815
827
|
}
|
|
816
|
-
function
|
|
817
|
-
return e.type ===
|
|
828
|
+
function Rt(e) {
|
|
829
|
+
return e.type === _.date;
|
|
818
830
|
}
|
|
819
|
-
function
|
|
820
|
-
return e.type ===
|
|
831
|
+
function Ut(e) {
|
|
832
|
+
return e.type === _.time;
|
|
821
833
|
}
|
|
822
|
-
function
|
|
823
|
-
return e.type ===
|
|
834
|
+
function Ft(e) {
|
|
835
|
+
return e.type === _.select;
|
|
824
836
|
}
|
|
825
|
-
function
|
|
826
|
-
return e.type ===
|
|
837
|
+
function zt(e) {
|
|
838
|
+
return e.type === _.plural;
|
|
827
839
|
}
|
|
828
|
-
function
|
|
829
|
-
return e.type ===
|
|
840
|
+
function un(e) {
|
|
841
|
+
return e.type === _.pound;
|
|
830
842
|
}
|
|
831
|
-
function
|
|
832
|
-
return e.type ===
|
|
843
|
+
function $t(e) {
|
|
844
|
+
return e.type === _.tag;
|
|
833
845
|
}
|
|
834
|
-
function
|
|
835
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
846
|
+
function Gt(e) {
|
|
847
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
836
848
|
}
|
|
837
|
-
function
|
|
838
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
849
|
+
function je(e) {
|
|
850
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
839
851
|
}
|
|
840
|
-
var
|
|
841
|
-
function
|
|
852
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cn = /(?:[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;
|
|
853
|
+
function hn(e) {
|
|
842
854
|
var t = {};
|
|
843
|
-
return e.replace(
|
|
855
|
+
return e.replace(cn, function(r) {
|
|
844
856
|
var n = r.length;
|
|
845
857
|
switch (r[0]) {
|
|
846
858
|
case "G":
|
|
@@ -929,46 +941,46 @@ function sn(e) {
|
|
|
929
941
|
return "";
|
|
930
942
|
}), t;
|
|
931
943
|
}
|
|
932
|
-
var
|
|
933
|
-
return
|
|
944
|
+
var x = function() {
|
|
945
|
+
return x = Object.assign || function(t) {
|
|
934
946
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
935
947
|
r = arguments[n];
|
|
936
948
|
for (var a in r)
|
|
937
949
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
938
950
|
}
|
|
939
951
|
return t;
|
|
940
|
-
},
|
|
952
|
+
}, x.apply(this, arguments);
|
|
941
953
|
};
|
|
942
|
-
var
|
|
943
|
-
function
|
|
954
|
+
var dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
955
|
+
function fn(e) {
|
|
944
956
|
if (e.length === 0)
|
|
945
957
|
throw new Error("Number skeleton cannot be empty");
|
|
946
|
-
for (var t = e.split(
|
|
958
|
+
for (var t = e.split(dn).filter(function(d) {
|
|
947
959
|
return d.length > 0;
|
|
948
960
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
949
961
|
var a = i[n], s = a.split("/");
|
|
950
962
|
if (s.length === 0)
|
|
951
963
|
throw new Error("Invalid number skeleton");
|
|
952
|
-
for (var o = s[0],
|
|
953
|
-
var h = c[
|
|
964
|
+
for (var o = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
|
|
965
|
+
var h = c[u];
|
|
954
966
|
if (h.length === 0)
|
|
955
967
|
throw new Error("Invalid number skeleton");
|
|
956
968
|
}
|
|
957
|
-
r.push({ stem: o, options:
|
|
969
|
+
r.push({ stem: o, options: l });
|
|
958
970
|
}
|
|
959
971
|
return r;
|
|
960
972
|
}
|
|
961
|
-
function
|
|
973
|
+
function mn(e) {
|
|
962
974
|
return e.replace(/^(.*?)-/, "");
|
|
963
975
|
}
|
|
964
|
-
var
|
|
965
|
-
function
|
|
976
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, gn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
977
|
+
function lt(e) {
|
|
966
978
|
var t = {};
|
|
967
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
979
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
968
980
|
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)), "";
|
|
969
981
|
}), t;
|
|
970
982
|
}
|
|
971
|
-
function
|
|
983
|
+
function Xt(e) {
|
|
972
984
|
switch (e) {
|
|
973
985
|
case "sign-auto":
|
|
974
986
|
return {
|
|
@@ -1008,7 +1020,7 @@ function $t(e) {
|
|
|
1008
1020
|
};
|
|
1009
1021
|
}
|
|
1010
1022
|
}
|
|
1011
|
-
function
|
|
1023
|
+
function pn(e) {
|
|
1012
1024
|
var t;
|
|
1013
1025
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1014
1026
|
notation: "engineering"
|
|
@@ -1016,17 +1028,17 @@ function hn(e) {
|
|
|
1016
1028
|
notation: "scientific"
|
|
1017
1029
|
}, e = e.slice(1)), t) {
|
|
1018
1030
|
var r = e.slice(0, 2);
|
|
1019
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1031
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1020
1032
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1021
1033
|
t.minimumIntegerDigits = e.length;
|
|
1022
1034
|
}
|
|
1023
1035
|
return t;
|
|
1024
1036
|
}
|
|
1025
|
-
function
|
|
1026
|
-
var t = {}, r =
|
|
1037
|
+
function ut(e) {
|
|
1038
|
+
var t = {}, r = Xt(e);
|
|
1027
1039
|
return r || t;
|
|
1028
1040
|
}
|
|
1029
|
-
function
|
|
1041
|
+
function bn(e) {
|
|
1030
1042
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1031
1043
|
var i = n[r];
|
|
1032
1044
|
switch (i.stem) {
|
|
@@ -1050,7 +1062,7 @@ function dn(e) {
|
|
|
1050
1062
|
continue;
|
|
1051
1063
|
case "measure-unit":
|
|
1052
1064
|
case "unit":
|
|
1053
|
-
t.style = "unit", t.unit =
|
|
1065
|
+
t.style = "unit", t.unit = mn(i.options[0]);
|
|
1054
1066
|
continue;
|
|
1055
1067
|
case "compact-short":
|
|
1056
1068
|
case "K":
|
|
@@ -1061,13 +1073,13 @@ function dn(e) {
|
|
|
1061
1073
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1062
1074
|
continue;
|
|
1063
1075
|
case "scientific":
|
|
1064
|
-
t =
|
|
1065
|
-
return
|
|
1076
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1077
|
+
return x(x({}, l), ut(u));
|
|
1066
1078
|
}, {}));
|
|
1067
1079
|
continue;
|
|
1068
1080
|
case "engineering":
|
|
1069
|
-
t =
|
|
1070
|
-
return
|
|
1081
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1082
|
+
return x(x({}, l), ut(u));
|
|
1071
1083
|
}, {}));
|
|
1072
1084
|
continue;
|
|
1073
1085
|
case "notation-simple":
|
|
@@ -1112,45 +1124,45 @@ function dn(e) {
|
|
|
1112
1124
|
case "integer-width":
|
|
1113
1125
|
if (i.options.length > 1)
|
|
1114
1126
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1115
|
-
i.options[0].replace(
|
|
1116
|
-
if (
|
|
1127
|
+
i.options[0].replace(gn, function(l, u, c, h, d, m) {
|
|
1128
|
+
if (u)
|
|
1117
1129
|
t.minimumIntegerDigits = c.length;
|
|
1118
1130
|
else {
|
|
1119
1131
|
if (h && d)
|
|
1120
1132
|
throw new Error("We currently do not support maximum integer digits");
|
|
1121
|
-
if (
|
|
1133
|
+
if (m)
|
|
1122
1134
|
throw new Error("We currently do not support exact integer digits");
|
|
1123
1135
|
}
|
|
1124
1136
|
return "";
|
|
1125
1137
|
});
|
|
1126
1138
|
continue;
|
|
1127
1139
|
}
|
|
1128
|
-
if (
|
|
1140
|
+
if (Wt.test(i.stem)) {
|
|
1129
1141
|
t.minimumIntegerDigits = i.stem.length;
|
|
1130
1142
|
continue;
|
|
1131
1143
|
}
|
|
1132
|
-
if (
|
|
1144
|
+
if (ot.test(i.stem)) {
|
|
1133
1145
|
if (i.options.length > 1)
|
|
1134
1146
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1135
|
-
i.stem.replace(
|
|
1136
|
-
return c === "*" ? t.minimumFractionDigits =
|
|
1147
|
+
i.stem.replace(ot, function(l, u, c, h, d, m) {
|
|
1148
|
+
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), "";
|
|
1137
1149
|
});
|
|
1138
1150
|
var a = i.options[0];
|
|
1139
|
-
a === "w" ? t =
|
|
1151
|
+
a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), lt(a)));
|
|
1140
1152
|
continue;
|
|
1141
1153
|
}
|
|
1142
|
-
if (
|
|
1143
|
-
t =
|
|
1154
|
+
if (Vt.test(i.stem)) {
|
|
1155
|
+
t = x(x({}, t), lt(i.stem));
|
|
1144
1156
|
continue;
|
|
1145
1157
|
}
|
|
1146
|
-
var s =
|
|
1147
|
-
s && (t =
|
|
1148
|
-
var o =
|
|
1149
|
-
o && (t =
|
|
1158
|
+
var s = Xt(i.stem);
|
|
1159
|
+
s && (t = x(x({}, t), s));
|
|
1160
|
+
var o = pn(i.stem);
|
|
1161
|
+
o && (t = x(x({}, t), o));
|
|
1150
1162
|
}
|
|
1151
1163
|
return t;
|
|
1152
1164
|
}
|
|
1153
|
-
var
|
|
1165
|
+
var Ee = {
|
|
1154
1166
|
"001": [
|
|
1155
1167
|
"H",
|
|
1156
1168
|
"h"
|
|
@@ -2565,23 +2577,23 @@ var be = {
|
|
|
2565
2577
|
"h"
|
|
2566
2578
|
]
|
|
2567
2579
|
};
|
|
2568
|
-
function
|
|
2580
|
+
function vn(e, t) {
|
|
2569
2581
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2570
2582
|
var i = e.charAt(n);
|
|
2571
2583
|
if (i === "j") {
|
|
2572
2584
|
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2573
2585
|
a++, n++;
|
|
2574
|
-
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1),
|
|
2575
|
-
for ((
|
|
2576
|
-
r +=
|
|
2586
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = yn(t);
|
|
2587
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2588
|
+
r += l;
|
|
2577
2589
|
for (; s-- > 0; )
|
|
2578
|
-
r =
|
|
2590
|
+
r = u + r;
|
|
2579
2591
|
} else
|
|
2580
2592
|
i === "J" ? r += "H" : r += i;
|
|
2581
2593
|
}
|
|
2582
2594
|
return r;
|
|
2583
2595
|
}
|
|
2584
|
-
function
|
|
2596
|
+
function yn(e) {
|
|
2585
2597
|
var t = e.hourCycle;
|
|
2586
2598
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2587
2599
|
e.hourCycles && // @ts-ignore
|
|
@@ -2600,23 +2612,23 @@ function mn(e) {
|
|
|
2600
2612
|
}
|
|
2601
2613
|
var r = e.language, n;
|
|
2602
2614
|
r !== "root" && (n = e.maximize().region);
|
|
2603
|
-
var i =
|
|
2615
|
+
var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
2604
2616
|
return i[0];
|
|
2605
2617
|
}
|
|
2606
|
-
var
|
|
2607
|
-
function
|
|
2618
|
+
var Ne, En = new RegExp("^".concat(jt.source, "*")), _n = new RegExp("".concat(jt.source, "*$"));
|
|
2619
|
+
function v(e, t) {
|
|
2608
2620
|
return { start: e, end: t };
|
|
2609
2621
|
}
|
|
2610
|
-
var
|
|
2622
|
+
var xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, kn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, Sn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, Bn = In ? Number.isSafeInteger : function(e) {
|
|
2611
2623
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2612
|
-
},
|
|
2624
|
+
}, Ve = !0;
|
|
2613
2625
|
try {
|
|
2614
|
-
var
|
|
2615
|
-
|
|
2626
|
+
var Hn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2627
|
+
Ve = ((Ne = Hn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2616
2628
|
} catch {
|
|
2617
|
-
|
|
2629
|
+
Ve = !1;
|
|
2618
2630
|
}
|
|
2619
|
-
var
|
|
2631
|
+
var ct = xn ? (
|
|
2620
2632
|
// Native
|
|
2621
2633
|
function(t, r, n) {
|
|
2622
2634
|
return t.startsWith(r, n);
|
|
@@ -2626,7 +2638,7 @@ var st = bn ? (
|
|
|
2626
2638
|
function(t, r, n) {
|
|
2627
2639
|
return t.slice(n, n + r.length) === r;
|
|
2628
2640
|
}
|
|
2629
|
-
),
|
|
2641
|
+
), We = Tn ? String.fromCodePoint : (
|
|
2630
2642
|
// IE11
|
|
2631
2643
|
function() {
|
|
2632
2644
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2638,9 +2650,9 @@ var st = bn ? (
|
|
|
2638
2650
|
}
|
|
2639
2651
|
return n;
|
|
2640
2652
|
}
|
|
2641
|
-
),
|
|
2653
|
+
), ht = (
|
|
2642
2654
|
// native
|
|
2643
|
-
|
|
2655
|
+
kn ? Object.fromEntries : (
|
|
2644
2656
|
// Ponyfill
|
|
2645
2657
|
function(t) {
|
|
2646
2658
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2650,7 +2662,7 @@ var st = bn ? (
|
|
|
2650
2662
|
return r;
|
|
2651
2663
|
}
|
|
2652
2664
|
)
|
|
2653
|
-
),
|
|
2665
|
+
), qt = wn ? (
|
|
2654
2666
|
// Native
|
|
2655
2667
|
function(t, r) {
|
|
2656
2668
|
return t.codePointAt(r);
|
|
@@ -2664,7 +2676,7 @@ var st = bn ? (
|
|
|
2664
2676
|
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2665
2677
|
}
|
|
2666
2678
|
}
|
|
2667
|
-
),
|
|
2679
|
+
), Cn = Sn ? (
|
|
2668
2680
|
// Native
|
|
2669
2681
|
function(t) {
|
|
2670
2682
|
return t.trimStart();
|
|
@@ -2672,9 +2684,9 @@ var st = bn ? (
|
|
|
2672
2684
|
) : (
|
|
2673
2685
|
// Ponyfill
|
|
2674
2686
|
function(t) {
|
|
2675
|
-
return t.replace(
|
|
2687
|
+
return t.replace(En, "");
|
|
2676
2688
|
}
|
|
2677
|
-
),
|
|
2689
|
+
), Ln = An ? (
|
|
2678
2690
|
// Native
|
|
2679
2691
|
function(t) {
|
|
2680
2692
|
return t.trimEnd();
|
|
@@ -2682,32 +2694,32 @@ var st = bn ? (
|
|
|
2682
2694
|
) : (
|
|
2683
2695
|
// Ponyfill
|
|
2684
2696
|
function(t) {
|
|
2685
|
-
return t.replace(
|
|
2697
|
+
return t.replace(_n, "");
|
|
2686
2698
|
}
|
|
2687
2699
|
);
|
|
2688
|
-
function
|
|
2700
|
+
function Jt(e, t) {
|
|
2689
2701
|
return new RegExp(e, t);
|
|
2690
2702
|
}
|
|
2691
|
-
var
|
|
2692
|
-
if (
|
|
2693
|
-
var
|
|
2694
|
-
|
|
2703
|
+
var Xe;
|
|
2704
|
+
if (Ve) {
|
|
2705
|
+
var dt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2706
|
+
Xe = function(t, r) {
|
|
2695
2707
|
var n;
|
|
2696
|
-
|
|
2697
|
-
var i =
|
|
2708
|
+
dt.lastIndex = r;
|
|
2709
|
+
var i = dt.exec(t);
|
|
2698
2710
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2699
2711
|
};
|
|
2700
2712
|
} else
|
|
2701
|
-
|
|
2713
|
+
Xe = function(t, r) {
|
|
2702
2714
|
for (var n = []; ; ) {
|
|
2703
|
-
var i =
|
|
2704
|
-
if (i === void 0 ||
|
|
2715
|
+
var i = qt(t, r);
|
|
2716
|
+
if (i === void 0 || Kt(i) || Dn(i))
|
|
2705
2717
|
break;
|
|
2706
2718
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2707
2719
|
}
|
|
2708
|
-
return
|
|
2720
|
+
return We.apply(void 0, n);
|
|
2709
2721
|
};
|
|
2710
|
-
var
|
|
2722
|
+
var Pn = (
|
|
2711
2723
|
/** @class */
|
|
2712
2724
|
function() {
|
|
2713
2725
|
function e(t, r) {
|
|
@@ -2731,14 +2743,14 @@ var In = (
|
|
|
2731
2743
|
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2732
2744
|
var o = this.clonePosition();
|
|
2733
2745
|
this.bump(), i.push({
|
|
2734
|
-
type:
|
|
2735
|
-
location:
|
|
2746
|
+
type: _.pound,
|
|
2747
|
+
location: v(o, this.clonePosition())
|
|
2736
2748
|
});
|
|
2737
2749
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2738
2750
|
if (n)
|
|
2739
2751
|
break;
|
|
2740
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
2741
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2752
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2753
|
+
} else if (a === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
2742
2754
|
var s = this.parseTag(t, r);
|
|
2743
2755
|
if (s.err)
|
|
2744
2756
|
return s;
|
|
@@ -2759,9 +2771,9 @@ var In = (
|
|
|
2759
2771
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2760
2772
|
return {
|
|
2761
2773
|
val: {
|
|
2762
|
-
type:
|
|
2774
|
+
type: _.literal,
|
|
2763
2775
|
value: "<".concat(i, "/>"),
|
|
2764
|
-
location:
|
|
2776
|
+
location: v(n, this.clonePosition())
|
|
2765
2777
|
},
|
|
2766
2778
|
err: null
|
|
2767
2779
|
};
|
|
@@ -2771,25 +2783,25 @@ var In = (
|
|
|
2771
2783
|
return a;
|
|
2772
2784
|
var s = a.val, o = this.clonePosition();
|
|
2773
2785
|
if (this.bumpIf("</")) {
|
|
2774
|
-
if (this.isEOF() || !
|
|
2775
|
-
return this.error(p.INVALID_TAG,
|
|
2776
|
-
var
|
|
2777
|
-
return i !==
|
|
2786
|
+
if (this.isEOF() || !qe(this.char()))
|
|
2787
|
+
return this.error(p.INVALID_TAG, v(o, this.clonePosition()));
|
|
2788
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2789
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2778
2790
|
val: {
|
|
2779
|
-
type:
|
|
2791
|
+
type: _.tag,
|
|
2780
2792
|
value: i,
|
|
2781
2793
|
children: s,
|
|
2782
|
-
location:
|
|
2794
|
+
location: v(n, this.clonePosition())
|
|
2783
2795
|
},
|
|
2784
2796
|
err: null
|
|
2785
|
-
} : this.error(p.INVALID_TAG,
|
|
2797
|
+
} : this.error(p.INVALID_TAG, v(o, this.clonePosition())));
|
|
2786
2798
|
} else
|
|
2787
|
-
return this.error(p.UNCLOSED_TAG,
|
|
2799
|
+
return this.error(p.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
2788
2800
|
} else
|
|
2789
|
-
return this.error(p.INVALID_TAG,
|
|
2801
|
+
return this.error(p.INVALID_TAG, v(n, this.clonePosition()));
|
|
2790
2802
|
}, e.prototype.parseTagName = function() {
|
|
2791
2803
|
var t = this.offset();
|
|
2792
|
-
for (this.bump(); !this.isEOF() &&
|
|
2804
|
+
for (this.bump(); !this.isEOF() && Mn(this.char()); )
|
|
2793
2805
|
this.bump();
|
|
2794
2806
|
return this.message.slice(t, this.offset());
|
|
2795
2807
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2811,14 +2823,14 @@ var In = (
|
|
|
2811
2823
|
}
|
|
2812
2824
|
break;
|
|
2813
2825
|
}
|
|
2814
|
-
var
|
|
2826
|
+
var l = v(n, this.clonePosition());
|
|
2815
2827
|
return {
|
|
2816
|
-
val: { type:
|
|
2828
|
+
val: { type: _.literal, value: i, location: l },
|
|
2817
2829
|
err: null
|
|
2818
2830
|
};
|
|
2819
2831
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2820
2832
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2821
|
-
!
|
|
2833
|
+
!On(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2822
2834
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2823
2835
|
if (this.isEOF() || this.char() !== 39)
|
|
2824
2836
|
return null;
|
|
@@ -2852,100 +2864,100 @@ var In = (
|
|
|
2852
2864
|
r.push(n);
|
|
2853
2865
|
this.bump();
|
|
2854
2866
|
}
|
|
2855
|
-
return
|
|
2867
|
+
return We.apply(void 0, r);
|
|
2856
2868
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2857
2869
|
if (this.isEOF())
|
|
2858
2870
|
return null;
|
|
2859
2871
|
var n = this.char();
|
|
2860
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2872
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
2861
2873
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2862
2874
|
var n = this.clonePosition();
|
|
2863
2875
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2864
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2876
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2865
2877
|
if (this.char() === 125)
|
|
2866
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
2878
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
2867
2879
|
var i = this.parseIdentifierIfPossible().value;
|
|
2868
2880
|
if (!i)
|
|
2869
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2881
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2870
2882
|
if (this.bumpSpace(), this.isEOF())
|
|
2871
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2883
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2872
2884
|
switch (this.char()) {
|
|
2873
2885
|
case 125:
|
|
2874
2886
|
return this.bump(), {
|
|
2875
2887
|
val: {
|
|
2876
|
-
type:
|
|
2888
|
+
type: _.argument,
|
|
2877
2889
|
// value does not include the opening and closing braces.
|
|
2878
2890
|
value: i,
|
|
2879
|
-
location:
|
|
2891
|
+
location: v(n, this.clonePosition())
|
|
2880
2892
|
},
|
|
2881
2893
|
err: null
|
|
2882
2894
|
};
|
|
2883
2895
|
case 44:
|
|
2884
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2896
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2885
2897
|
default:
|
|
2886
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2898
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2887
2899
|
}
|
|
2888
2900
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2889
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2901
|
+
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
2890
2902
|
this.bumpTo(i);
|
|
2891
|
-
var a = this.clonePosition(), s =
|
|
2903
|
+
var a = this.clonePosition(), s = v(t, a);
|
|
2892
2904
|
return { value: n, location: s };
|
|
2893
2905
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2894
|
-
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value,
|
|
2906
|
+
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2895
2907
|
switch (o) {
|
|
2896
2908
|
case "":
|
|
2897
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
2909
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
2898
2910
|
case "number":
|
|
2899
2911
|
case "date":
|
|
2900
2912
|
case "time": {
|
|
2901
2913
|
this.bumpSpace();
|
|
2902
|
-
var
|
|
2914
|
+
var u = null;
|
|
2903
2915
|
if (this.bumpIf(",")) {
|
|
2904
2916
|
this.bumpSpace();
|
|
2905
2917
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2906
2918
|
if (h.err)
|
|
2907
2919
|
return h;
|
|
2908
|
-
var d =
|
|
2920
|
+
var d = Ln(h.val);
|
|
2909
2921
|
if (d.length === 0)
|
|
2910
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
2911
|
-
var
|
|
2912
|
-
|
|
2922
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2923
|
+
var m = v(c, this.clonePosition());
|
|
2924
|
+
u = { style: d, styleLocation: m };
|
|
2913
2925
|
}
|
|
2914
|
-
var
|
|
2915
|
-
if (
|
|
2916
|
-
return
|
|
2917
|
-
var
|
|
2918
|
-
if (
|
|
2919
|
-
var
|
|
2926
|
+
var g = this.tryParseArgumentClose(i);
|
|
2927
|
+
if (g.err)
|
|
2928
|
+
return g;
|
|
2929
|
+
var T = v(i, this.clonePosition());
|
|
2930
|
+
if (u && ct(u?.style, "::", 0)) {
|
|
2931
|
+
var E = Cn(u.style.slice(2));
|
|
2920
2932
|
if (o === "number") {
|
|
2921
|
-
var h = this.parseNumberSkeletonFromString(
|
|
2933
|
+
var h = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2922
2934
|
return h.err ? h : {
|
|
2923
|
-
val: { type:
|
|
2935
|
+
val: { type: _.number, value: n, location: T, style: h.val },
|
|
2924
2936
|
err: null
|
|
2925
2937
|
};
|
|
2926
2938
|
} else {
|
|
2927
|
-
if (
|
|
2928
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
2929
|
-
var
|
|
2930
|
-
this.locale && (
|
|
2939
|
+
if (E.length === 0)
|
|
2940
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, T);
|
|
2941
|
+
var f = E;
|
|
2942
|
+
this.locale && (f = vn(E, this.locale));
|
|
2931
2943
|
var d = {
|
|
2932
|
-
type:
|
|
2933
|
-
pattern:
|
|
2934
|
-
location:
|
|
2935
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2936
|
-
},
|
|
2944
|
+
type: Q.dateTime,
|
|
2945
|
+
pattern: f,
|
|
2946
|
+
location: u.styleLocation,
|
|
2947
|
+
parsedOptions: this.shouldParseSkeletons ? hn(f) : {}
|
|
2948
|
+
}, y = o === "date" ? _.date : _.time;
|
|
2937
2949
|
return {
|
|
2938
|
-
val: { type:
|
|
2950
|
+
val: { type: y, value: n, location: T, style: d },
|
|
2939
2951
|
err: null
|
|
2940
2952
|
};
|
|
2941
2953
|
}
|
|
2942
2954
|
}
|
|
2943
2955
|
return {
|
|
2944
2956
|
val: {
|
|
2945
|
-
type: o === "number" ?
|
|
2957
|
+
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
2946
2958
|
value: n,
|
|
2947
|
-
location:
|
|
2948
|
-
style: (a =
|
|
2959
|
+
location: T,
|
|
2960
|
+
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
2949
2961
|
},
|
|
2950
2962
|
err: null
|
|
2951
2963
|
};
|
|
@@ -2953,52 +2965,52 @@ var In = (
|
|
|
2953
2965
|
case "plural":
|
|
2954
2966
|
case "selectordinal":
|
|
2955
2967
|
case "select": {
|
|
2956
|
-
var
|
|
2968
|
+
var w = this.clonePosition();
|
|
2957
2969
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2958
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2970
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, we({}, w)));
|
|
2959
2971
|
this.bumpSpace();
|
|
2960
|
-
var
|
|
2961
|
-
if (o !== "select" &&
|
|
2972
|
+
var U = this.parseIdentifierIfPossible(), L = 0;
|
|
2973
|
+
if (o !== "select" && U.value === "offset") {
|
|
2962
2974
|
if (!this.bumpIf(":"))
|
|
2963
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2975
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
2964
2976
|
this.bumpSpace();
|
|
2965
2977
|
var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2966
2978
|
if (h.err)
|
|
2967
2979
|
return h;
|
|
2968
|
-
this.bumpSpace(),
|
|
2980
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), L = h.val;
|
|
2969
2981
|
}
|
|
2970
|
-
var
|
|
2971
|
-
if (
|
|
2972
|
-
return
|
|
2973
|
-
var
|
|
2974
|
-
if (
|
|
2975
|
-
return
|
|
2976
|
-
var
|
|
2982
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, U);
|
|
2983
|
+
if ($.err)
|
|
2984
|
+
return $;
|
|
2985
|
+
var g = this.tryParseArgumentClose(i);
|
|
2986
|
+
if (g.err)
|
|
2987
|
+
return g;
|
|
2988
|
+
var ae = v(i, this.clonePosition());
|
|
2977
2989
|
return o === "select" ? {
|
|
2978
2990
|
val: {
|
|
2979
|
-
type:
|
|
2991
|
+
type: _.select,
|
|
2980
2992
|
value: n,
|
|
2981
|
-
options:
|
|
2982
|
-
location:
|
|
2993
|
+
options: ht($.val),
|
|
2994
|
+
location: ae
|
|
2983
2995
|
},
|
|
2984
2996
|
err: null
|
|
2985
2997
|
} : {
|
|
2986
2998
|
val: {
|
|
2987
|
-
type:
|
|
2999
|
+
type: _.plural,
|
|
2988
3000
|
value: n,
|
|
2989
|
-
options:
|
|
2990
|
-
offset:
|
|
3001
|
+
options: ht($.val),
|
|
3002
|
+
offset: L,
|
|
2991
3003
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2992
|
-
location:
|
|
3004
|
+
location: ae
|
|
2993
3005
|
},
|
|
2994
3006
|
err: null
|
|
2995
3007
|
};
|
|
2996
3008
|
}
|
|
2997
3009
|
default:
|
|
2998
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
3010
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
2999
3011
|
}
|
|
3000
3012
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3001
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3013
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3002
3014
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3003
3015
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3004
3016
|
var n = this.char();
|
|
@@ -3007,7 +3019,7 @@ var In = (
|
|
|
3007
3019
|
this.bump();
|
|
3008
3020
|
var i = this.clonePosition();
|
|
3009
3021
|
if (!this.bumpUntil("'"))
|
|
3010
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3022
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3011
3023
|
this.bump();
|
|
3012
3024
|
break;
|
|
3013
3025
|
}
|
|
@@ -3037,52 +3049,52 @@ var In = (
|
|
|
3037
3049
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3038
3050
|
var n = [];
|
|
3039
3051
|
try {
|
|
3040
|
-
n =
|
|
3052
|
+
n = fn(t);
|
|
3041
3053
|
} catch {
|
|
3042
3054
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3043
3055
|
}
|
|
3044
3056
|
return {
|
|
3045
3057
|
val: {
|
|
3046
|
-
type:
|
|
3058
|
+
type: Q.number,
|
|
3047
3059
|
tokens: n,
|
|
3048
3060
|
location: r,
|
|
3049
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3061
|
+
parsedOptions: this.shouldParseSkeletons ? bn(n) : {}
|
|
3050
3062
|
},
|
|
3051
3063
|
err: null
|
|
3052
3064
|
};
|
|
3053
3065
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3054
|
-
for (var a, s = !1, o = [],
|
|
3055
|
-
if (
|
|
3066
|
+
for (var a, s = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
3067
|
+
if (u.length === 0) {
|
|
3056
3068
|
var h = this.clonePosition();
|
|
3057
3069
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3058
3070
|
var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3059
3071
|
if (d.err)
|
|
3060
3072
|
return d;
|
|
3061
|
-
c =
|
|
3073
|
+
c = v(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
|
|
3062
3074
|
} else
|
|
3063
3075
|
break;
|
|
3064
3076
|
}
|
|
3065
|
-
if (
|
|
3077
|
+
if (l.has(u))
|
|
3066
3078
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3067
|
-
|
|
3068
|
-
var
|
|
3079
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3080
|
+
var m = this.clonePosition();
|
|
3069
3081
|
if (!this.bumpIf("{"))
|
|
3070
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3071
|
-
var
|
|
3072
|
-
if (
|
|
3073
|
-
return
|
|
3074
|
-
var
|
|
3075
|
-
if (
|
|
3076
|
-
return
|
|
3082
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3083
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3084
|
+
if (g.err)
|
|
3085
|
+
return g;
|
|
3086
|
+
var T = this.tryParseArgumentClose(m);
|
|
3087
|
+
if (T.err)
|
|
3088
|
+
return T;
|
|
3077
3089
|
o.push([
|
|
3078
|
-
|
|
3090
|
+
u,
|
|
3079
3091
|
{
|
|
3080
|
-
value:
|
|
3081
|
-
location:
|
|
3092
|
+
value: g.val,
|
|
3093
|
+
location: v(m, this.clonePosition())
|
|
3082
3094
|
}
|
|
3083
|
-
]),
|
|
3095
|
+
]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, c = a.location;
|
|
3084
3096
|
}
|
|
3085
|
-
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3097
|
+
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 };
|
|
3086
3098
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3087
3099
|
var n = 1, i = this.clonePosition();
|
|
3088
3100
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3093,8 +3105,8 @@ var In = (
|
|
|
3093
3105
|
else
|
|
3094
3106
|
break;
|
|
3095
3107
|
}
|
|
3096
|
-
var
|
|
3097
|
-
return a ? (s *= n,
|
|
3108
|
+
var l = v(i, this.clonePosition());
|
|
3109
|
+
return a ? (s *= n, Bn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3098
3110
|
}, e.prototype.offset = function() {
|
|
3099
3111
|
return this.position.offset;
|
|
3100
3112
|
}, e.prototype.isEOF = function() {
|
|
@@ -3109,7 +3121,7 @@ var In = (
|
|
|
3109
3121
|
var t = this.position.offset;
|
|
3110
3122
|
if (t >= this.message.length)
|
|
3111
3123
|
throw Error("out of bound");
|
|
3112
|
-
var r =
|
|
3124
|
+
var r = qt(this.message, t);
|
|
3113
3125
|
if (r === void 0)
|
|
3114
3126
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3115
3127
|
return r;
|
|
@@ -3128,7 +3140,7 @@ var In = (
|
|
|
3128
3140
|
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);
|
|
3129
3141
|
}
|
|
3130
3142
|
}, e.prototype.bumpIf = function(t) {
|
|
3131
|
-
if (
|
|
3143
|
+
if (ct(this.message, t, this.offset())) {
|
|
3132
3144
|
for (var r = 0; r < t.length; r++)
|
|
3133
3145
|
this.bump();
|
|
3134
3146
|
return !0;
|
|
@@ -3150,7 +3162,7 @@ var In = (
|
|
|
3150
3162
|
break;
|
|
3151
3163
|
}
|
|
3152
3164
|
}, e.prototype.bumpSpace = function() {
|
|
3153
|
-
for (; !this.isEOF() &&
|
|
3165
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3154
3166
|
this.bump();
|
|
3155
3167
|
}, e.prototype.peek = function() {
|
|
3156
3168
|
if (this.isEOF())
|
|
@@ -3160,47 +3172,47 @@ var In = (
|
|
|
3160
3172
|
}, e;
|
|
3161
3173
|
}()
|
|
3162
3174
|
);
|
|
3163
|
-
function
|
|
3175
|
+
function qe(e) {
|
|
3164
3176
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3165
3177
|
}
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3178
|
+
function On(e) {
|
|
3179
|
+
return qe(e) || e === 47;
|
|
3168
3180
|
}
|
|
3169
|
-
function
|
|
3181
|
+
function Mn(e) {
|
|
3170
3182
|
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;
|
|
3171
3183
|
}
|
|
3172
|
-
function
|
|
3184
|
+
function Kt(e) {
|
|
3173
3185
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3174
3186
|
}
|
|
3175
|
-
function
|
|
3187
|
+
function Dn(e) {
|
|
3176
3188
|
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;
|
|
3177
3189
|
}
|
|
3178
|
-
function
|
|
3190
|
+
function Je(e) {
|
|
3179
3191
|
e.forEach(function(t) {
|
|
3180
|
-
if (delete t.location,
|
|
3192
|
+
if (delete t.location, Ft(t) || zt(t))
|
|
3181
3193
|
for (var r in t.options)
|
|
3182
|
-
delete t.options[r].location,
|
|
3194
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3183
3195
|
else
|
|
3184
|
-
|
|
3196
|
+
Nt(t) && Gt(t.style) || (Rt(t) || Ut(t)) && je(t.style) ? delete t.style.location : $t(t) && Je(t.children);
|
|
3185
3197
|
});
|
|
3186
3198
|
}
|
|
3187
|
-
function
|
|
3188
|
-
t === void 0 && (t = {}), t =
|
|
3189
|
-
var r = new
|
|
3199
|
+
function Nn(e, t) {
|
|
3200
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3201
|
+
var r = new Pn(e, t).parse();
|
|
3190
3202
|
if (r.err) {
|
|
3191
3203
|
var n = SyntaxError(p[r.err.kind]);
|
|
3192
3204
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3193
3205
|
}
|
|
3194
|
-
return t?.captureLocation ||
|
|
3206
|
+
return t?.captureLocation || Je(r.val), r.val;
|
|
3195
3207
|
}
|
|
3196
|
-
var
|
|
3208
|
+
var ee;
|
|
3197
3209
|
(function(e) {
|
|
3198
3210
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3199
|
-
})(
|
|
3200
|
-
var
|
|
3211
|
+
})(ee || (ee = {}));
|
|
3212
|
+
var Ce = (
|
|
3201
3213
|
/** @class */
|
|
3202
3214
|
function(e) {
|
|
3203
|
-
|
|
3215
|
+
He(t, e);
|
|
3204
3216
|
function t(r, n, i) {
|
|
3205
3217
|
var a = e.call(this, r) || this;
|
|
3206
3218
|
return a.code = n, a.originalMessage = i, a;
|
|
@@ -3209,155 +3221,155 @@ var Ie = (
|
|
|
3209
3221
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3210
3222
|
}, t;
|
|
3211
3223
|
}(Error)
|
|
3212
|
-
),
|
|
3224
|
+
), ft = (
|
|
3213
3225
|
/** @class */
|
|
3214
3226
|
function(e) {
|
|
3215
|
-
|
|
3227
|
+
He(t, e);
|
|
3216
3228
|
function t(r, n, i, a) {
|
|
3217
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3229
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, a) || this;
|
|
3218
3230
|
}
|
|
3219
3231
|
return t;
|
|
3220
|
-
}(
|
|
3221
|
-
),
|
|
3232
|
+
}(Ce)
|
|
3233
|
+
), Rn = (
|
|
3222
3234
|
/** @class */
|
|
3223
3235
|
function(e) {
|
|
3224
|
-
|
|
3236
|
+
He(t, e);
|
|
3225
3237
|
function t(r, n, i) {
|
|
3226
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3238
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3227
3239
|
}
|
|
3228
3240
|
return t;
|
|
3229
|
-
}(
|
|
3230
|
-
),
|
|
3241
|
+
}(Ce)
|
|
3242
|
+
), Un = (
|
|
3231
3243
|
/** @class */
|
|
3232
3244
|
function(e) {
|
|
3233
|
-
|
|
3245
|
+
He(t, e);
|
|
3234
3246
|
function t(r, n) {
|
|
3235
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3247
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3236
3248
|
}
|
|
3237
3249
|
return t;
|
|
3238
|
-
}(
|
|
3239
|
-
),
|
|
3250
|
+
}(Ce)
|
|
3251
|
+
), S;
|
|
3240
3252
|
(function(e) {
|
|
3241
3253
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3242
|
-
})(
|
|
3243
|
-
function
|
|
3254
|
+
})(S || (S = {}));
|
|
3255
|
+
function Fn(e) {
|
|
3244
3256
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3245
3257
|
var n = t[t.length - 1];
|
|
3246
|
-
return !n || n.type !==
|
|
3258
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3247
3259
|
}, []);
|
|
3248
3260
|
}
|
|
3249
|
-
function
|
|
3261
|
+
function zn(e) {
|
|
3250
3262
|
return typeof e == "function";
|
|
3251
3263
|
}
|
|
3252
|
-
function
|
|
3253
|
-
if (e.length === 1 &&
|
|
3264
|
+
function Te(e, t, r, n, i, a, s) {
|
|
3265
|
+
if (e.length === 1 && st(e[0]))
|
|
3254
3266
|
return [
|
|
3255
3267
|
{
|
|
3256
|
-
type:
|
|
3268
|
+
type: S.literal,
|
|
3257
3269
|
value: e[0].value
|
|
3258
3270
|
}
|
|
3259
3271
|
];
|
|
3260
|
-
for (var o = [],
|
|
3261
|
-
var c = l
|
|
3262
|
-
if (
|
|
3272
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3273
|
+
var c = u[l];
|
|
3274
|
+
if (st(c)) {
|
|
3263
3275
|
o.push({
|
|
3264
|
-
type:
|
|
3276
|
+
type: S.literal,
|
|
3265
3277
|
value: c.value
|
|
3266
3278
|
});
|
|
3267
3279
|
continue;
|
|
3268
3280
|
}
|
|
3269
|
-
if (
|
|
3281
|
+
if (un(c)) {
|
|
3270
3282
|
typeof a == "number" && o.push({
|
|
3271
|
-
type:
|
|
3283
|
+
type: S.literal,
|
|
3272
3284
|
value: r.getNumberFormat(t).format(a)
|
|
3273
3285
|
});
|
|
3274
3286
|
continue;
|
|
3275
3287
|
}
|
|
3276
3288
|
var h = c.value;
|
|
3277
3289
|
if (!(i && h in i))
|
|
3278
|
-
throw new
|
|
3290
|
+
throw new Un(h, s);
|
|
3279
3291
|
var d = i[h];
|
|
3280
|
-
if (
|
|
3292
|
+
if (ln(c)) {
|
|
3281
3293
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
|
|
3282
|
-
type: typeof d == "string" ?
|
|
3294
|
+
type: typeof d == "string" ? S.literal : S.object,
|
|
3283
3295
|
value: d
|
|
3284
3296
|
});
|
|
3285
3297
|
continue;
|
|
3286
3298
|
}
|
|
3287
|
-
if (
|
|
3288
|
-
var
|
|
3299
|
+
if (Rt(c)) {
|
|
3300
|
+
var m = typeof c.style == "string" ? n.date[c.style] : je(c.style) ? c.style.parsedOptions : void 0;
|
|
3289
3301
|
o.push({
|
|
3290
|
-
type:
|
|
3291
|
-
value: r.getDateTimeFormat(t,
|
|
3302
|
+
type: S.literal,
|
|
3303
|
+
value: r.getDateTimeFormat(t, m).format(d)
|
|
3292
3304
|
});
|
|
3293
3305
|
continue;
|
|
3294
3306
|
}
|
|
3295
|
-
if (
|
|
3296
|
-
var
|
|
3307
|
+
if (Ut(c)) {
|
|
3308
|
+
var m = typeof c.style == "string" ? n.time[c.style] : je(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3297
3309
|
o.push({
|
|
3298
|
-
type:
|
|
3299
|
-
value: r.getDateTimeFormat(t,
|
|
3310
|
+
type: S.literal,
|
|
3311
|
+
value: r.getDateTimeFormat(t, m).format(d)
|
|
3300
3312
|
});
|
|
3301
3313
|
continue;
|
|
3302
3314
|
}
|
|
3303
|
-
if (
|
|
3304
|
-
var
|
|
3305
|
-
|
|
3306
|
-
type:
|
|
3307
|
-
value: r.getNumberFormat(t,
|
|
3315
|
+
if (Nt(c)) {
|
|
3316
|
+
var m = typeof c.style == "string" ? n.number[c.style] : Gt(c.style) ? c.style.parsedOptions : void 0;
|
|
3317
|
+
m && m.scale && (d = d * (m.scale || 1)), o.push({
|
|
3318
|
+
type: S.literal,
|
|
3319
|
+
value: r.getNumberFormat(t, m).format(d)
|
|
3308
3320
|
});
|
|
3309
3321
|
continue;
|
|
3310
3322
|
}
|
|
3311
|
-
if (
|
|
3312
|
-
var
|
|
3313
|
-
if (!
|
|
3314
|
-
throw new
|
|
3315
|
-
var
|
|
3316
|
-
return
|
|
3323
|
+
if ($t(c)) {
|
|
3324
|
+
var g = c.children, T = c.value, E = i[T];
|
|
3325
|
+
if (!zn(E))
|
|
3326
|
+
throw new Rn(T, "function", s);
|
|
3327
|
+
var f = Te(g, t, r, n, i, a), y = E(f.map(function(L) {
|
|
3328
|
+
return L.value;
|
|
3317
3329
|
}));
|
|
3318
|
-
Array.isArray(
|
|
3330
|
+
Array.isArray(y) || (y = [y]), o.push.apply(o, y.map(function(L) {
|
|
3319
3331
|
return {
|
|
3320
|
-
type: typeof
|
|
3321
|
-
value:
|
|
3332
|
+
type: typeof L == "string" ? S.literal : S.object,
|
|
3333
|
+
value: L
|
|
3322
3334
|
};
|
|
3323
3335
|
}));
|
|
3324
3336
|
}
|
|
3325
|
-
if (
|
|
3326
|
-
var
|
|
3327
|
-
if (!
|
|
3328
|
-
throw new
|
|
3329
|
-
o.push.apply(o,
|
|
3337
|
+
if (Ft(c)) {
|
|
3338
|
+
var w = c.options[d] || c.options.other;
|
|
3339
|
+
if (!w)
|
|
3340
|
+
throw new ft(c.value, d, Object.keys(c.options), s);
|
|
3341
|
+
o.push.apply(o, Te(w.value, t, r, n, i));
|
|
3330
3342
|
continue;
|
|
3331
3343
|
}
|
|
3332
|
-
if (
|
|
3333
|
-
var
|
|
3334
|
-
if (!
|
|
3344
|
+
if (zt(c)) {
|
|
3345
|
+
var w = c.options["=".concat(d)];
|
|
3346
|
+
if (!w) {
|
|
3335
3347
|
if (!Intl.PluralRules)
|
|
3336
|
-
throw new
|
|
3348
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3337
3349
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3338
|
-
`,
|
|
3339
|
-
var
|
|
3340
|
-
|
|
3350
|
+
`, ee.MISSING_INTL_API, s);
|
|
3351
|
+
var U = r.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
|
|
3352
|
+
w = c.options[U] || c.options.other;
|
|
3341
3353
|
}
|
|
3342
|
-
if (!
|
|
3343
|
-
throw new
|
|
3344
|
-
o.push.apply(o,
|
|
3354
|
+
if (!w)
|
|
3355
|
+
throw new ft(c.value, d, Object.keys(c.options), s);
|
|
3356
|
+
o.push.apply(o, Te(w.value, t, r, n, i, d - (c.offset || 0)));
|
|
3345
3357
|
continue;
|
|
3346
3358
|
}
|
|
3347
3359
|
}
|
|
3348
|
-
return
|
|
3360
|
+
return Fn(o);
|
|
3349
3361
|
}
|
|
3350
|
-
function
|
|
3351
|
-
return t ?
|
|
3352
|
-
return r[n] =
|
|
3362
|
+
function $n(e, t) {
|
|
3363
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3364
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3353
3365
|
}, {})) : e;
|
|
3354
3366
|
}
|
|
3355
|
-
function
|
|
3367
|
+
function Gn(e, t) {
|
|
3356
3368
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3357
|
-
return r[n] =
|
|
3358
|
-
},
|
|
3369
|
+
return r[n] = $n(e[n], t[n]), r;
|
|
3370
|
+
}, C({}, e)) : e;
|
|
3359
3371
|
}
|
|
3360
|
-
function
|
|
3372
|
+
function Re(e) {
|
|
3361
3373
|
return {
|
|
3362
3374
|
create: function() {
|
|
3363
3375
|
return {
|
|
@@ -3371,39 +3383,39 @@ function Me(e) {
|
|
|
3371
3383
|
}
|
|
3372
3384
|
};
|
|
3373
3385
|
}
|
|
3374
|
-
function
|
|
3386
|
+
function jn(e) {
|
|
3375
3387
|
return e === void 0 && (e = {
|
|
3376
3388
|
number: {},
|
|
3377
3389
|
dateTime: {},
|
|
3378
3390
|
pluralRules: {}
|
|
3379
3391
|
}), {
|
|
3380
|
-
getNumberFormat:
|
|
3392
|
+
getNumberFormat: Me(function() {
|
|
3381
3393
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3382
3394
|
r[n] = arguments[n];
|
|
3383
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3395
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3384
3396
|
}, {
|
|
3385
|
-
cache:
|
|
3386
|
-
strategy:
|
|
3397
|
+
cache: Re(e.number),
|
|
3398
|
+
strategy: De.variadic
|
|
3387
3399
|
}),
|
|
3388
|
-
getDateTimeFormat:
|
|
3400
|
+
getDateTimeFormat: Me(function() {
|
|
3389
3401
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3390
3402
|
r[n] = arguments[n];
|
|
3391
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3403
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3392
3404
|
}, {
|
|
3393
|
-
cache:
|
|
3394
|
-
strategy:
|
|
3405
|
+
cache: Re(e.dateTime),
|
|
3406
|
+
strategy: De.variadic
|
|
3395
3407
|
}),
|
|
3396
|
-
getPluralRules:
|
|
3408
|
+
getPluralRules: Me(function() {
|
|
3397
3409
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3398
3410
|
r[n] = arguments[n];
|
|
3399
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3411
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3400
3412
|
}, {
|
|
3401
|
-
cache:
|
|
3402
|
-
strategy:
|
|
3413
|
+
cache: Re(e.pluralRules),
|
|
3414
|
+
strategy: De.variadic
|
|
3403
3415
|
})
|
|
3404
3416
|
};
|
|
3405
3417
|
}
|
|
3406
|
-
var
|
|
3418
|
+
var Zt = (
|
|
3407
3419
|
/** @class */
|
|
3408
3420
|
function() {
|
|
3409
3421
|
function e(t, r, n, i) {
|
|
@@ -3413,20 +3425,20 @@ var Wt = (
|
|
|
3413
3425
|
number: {},
|
|
3414
3426
|
dateTime: {},
|
|
3415
3427
|
pluralRules: {}
|
|
3416
|
-
}, this.format = function(
|
|
3417
|
-
var
|
|
3418
|
-
if (
|
|
3419
|
-
return
|
|
3420
|
-
var c =
|
|
3421
|
-
return !h.length || d.type !==
|
|
3428
|
+
}, this.format = function(l) {
|
|
3429
|
+
var u = a.formatToParts(l);
|
|
3430
|
+
if (u.length === 1)
|
|
3431
|
+
return u[0].value;
|
|
3432
|
+
var c = u.reduce(function(h, d) {
|
|
3433
|
+
return !h.length || d.type !== S.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
|
|
3422
3434
|
}, []);
|
|
3423
3435
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3424
|
-
}, this.formatToParts = function(
|
|
3425
|
-
return
|
|
3436
|
+
}, this.formatToParts = function(l) {
|
|
3437
|
+
return Te(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
|
|
3426
3438
|
}, this.resolvedOptions = function() {
|
|
3427
|
-
var
|
|
3439
|
+
var l;
|
|
3428
3440
|
return {
|
|
3429
|
-
locale: ((
|
|
3441
|
+
locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3430
3442
|
};
|
|
3431
3443
|
}, this.getAst = function() {
|
|
3432
3444
|
return a.ast;
|
|
@@ -3435,13 +3447,13 @@ var Wt = (
|
|
|
3435
3447
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3436
3448
|
var s = i || {};
|
|
3437
3449
|
s.formatters;
|
|
3438
|
-
var o =
|
|
3439
|
-
this.ast = e.__parse(t,
|
|
3450
|
+
var o = Qr(s, ["formatters"]);
|
|
3451
|
+
this.ast = e.__parse(t, C(C({}, o), { locale: this.resolvedLocale }));
|
|
3440
3452
|
} else
|
|
3441
3453
|
this.ast = t;
|
|
3442
3454
|
if (!Array.isArray(this.ast))
|
|
3443
3455
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3444
|
-
this.formats =
|
|
3456
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || jn(this.formatterCache);
|
|
3445
3457
|
}
|
|
3446
3458
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3447
3459
|
get: function() {
|
|
@@ -3454,7 +3466,7 @@ var Wt = (
|
|
|
3454
3466
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3455
3467
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3456
3468
|
}
|
|
3457
|
-
}, e.__parse =
|
|
3469
|
+
}, e.__parse = Nn, e.formats = {
|
|
3458
3470
|
number: {
|
|
3459
3471
|
integer: {
|
|
3460
3472
|
maximumFractionDigits: 0
|
|
@@ -3515,7 +3527,7 @@ var Wt = (
|
|
|
3515
3527
|
}, e;
|
|
3516
3528
|
}()
|
|
3517
3529
|
);
|
|
3518
|
-
function
|
|
3530
|
+
function Vn(e, t) {
|
|
3519
3531
|
if (t == null)
|
|
3520
3532
|
return;
|
|
3521
3533
|
if (t in e)
|
|
@@ -3536,101 +3548,101 @@ function Fn(e, t) {
|
|
|
3536
3548
|
n = void 0;
|
|
3537
3549
|
return n;
|
|
3538
3550
|
}
|
|
3539
|
-
const
|
|
3551
|
+
const D = {}, Wn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Yt = (e, t) => {
|
|
3540
3552
|
if (t == null)
|
|
3541
3553
|
return;
|
|
3542
|
-
if (t in
|
|
3543
|
-
return
|
|
3544
|
-
const r =
|
|
3554
|
+
if (t in D && e in D[t])
|
|
3555
|
+
return D[t][e];
|
|
3556
|
+
const r = fe(t);
|
|
3545
3557
|
for (let n = 0; n < r.length; n++) {
|
|
3546
|
-
const i = r[n], a =
|
|
3558
|
+
const i = r[n], a = qn(i, e);
|
|
3547
3559
|
if (a)
|
|
3548
|
-
return
|
|
3560
|
+
return Wn(e, t, a);
|
|
3549
3561
|
}
|
|
3550
3562
|
};
|
|
3551
|
-
let
|
|
3552
|
-
const
|
|
3553
|
-
function
|
|
3554
|
-
return
|
|
3563
|
+
let Qe;
|
|
3564
|
+
const de = Be({});
|
|
3565
|
+
function Xn(e) {
|
|
3566
|
+
return Qe[e] || null;
|
|
3555
3567
|
}
|
|
3556
|
-
function
|
|
3557
|
-
return e in
|
|
3568
|
+
function Qt(e) {
|
|
3569
|
+
return e in Qe;
|
|
3558
3570
|
}
|
|
3559
|
-
function
|
|
3560
|
-
if (!
|
|
3571
|
+
function qn(e, t) {
|
|
3572
|
+
if (!Qt(e))
|
|
3561
3573
|
return null;
|
|
3562
|
-
const r =
|
|
3563
|
-
return
|
|
3574
|
+
const r = Xn(e);
|
|
3575
|
+
return Vn(r, t);
|
|
3564
3576
|
}
|
|
3565
|
-
function
|
|
3577
|
+
function Jn(e) {
|
|
3566
3578
|
if (e == null)
|
|
3567
3579
|
return;
|
|
3568
|
-
const t =
|
|
3580
|
+
const t = fe(e);
|
|
3569
3581
|
for (let r = 0; r < t.length; r++) {
|
|
3570
3582
|
const n = t[r];
|
|
3571
|
-
if (
|
|
3583
|
+
if (Qt(n))
|
|
3572
3584
|
return n;
|
|
3573
3585
|
}
|
|
3574
3586
|
}
|
|
3575
|
-
function
|
|
3576
|
-
delete
|
|
3587
|
+
function er(e, ...t) {
|
|
3588
|
+
delete D[e], de.update((r) => (r[e] = Yr.all([r[e] || {}, ...t]), r));
|
|
3577
3589
|
}
|
|
3578
|
-
|
|
3579
|
-
[
|
|
3590
|
+
ne(
|
|
3591
|
+
[de],
|
|
3580
3592
|
([e]) => Object.keys(e)
|
|
3581
3593
|
);
|
|
3582
|
-
|
|
3583
|
-
const
|
|
3584
|
-
function
|
|
3585
|
-
|
|
3594
|
+
de.subscribe((e) => Qe = e);
|
|
3595
|
+
const ke = {};
|
|
3596
|
+
function Kn(e, t) {
|
|
3597
|
+
ke[e].delete(t), ke[e].size === 0 && delete ke[e];
|
|
3586
3598
|
}
|
|
3587
|
-
function
|
|
3588
|
-
return
|
|
3599
|
+
function tr(e) {
|
|
3600
|
+
return ke[e];
|
|
3589
3601
|
}
|
|
3590
|
-
function
|
|
3591
|
-
return
|
|
3592
|
-
const r =
|
|
3602
|
+
function Zn(e) {
|
|
3603
|
+
return fe(e).map((t) => {
|
|
3604
|
+
const r = tr(t);
|
|
3593
3605
|
return [t, r ? [...r] : []];
|
|
3594
3606
|
}).filter(([, t]) => t.length > 0);
|
|
3595
3607
|
}
|
|
3596
|
-
function
|
|
3597
|
-
return e == null ? !1 :
|
|
3608
|
+
function Se(e) {
|
|
3609
|
+
return e == null ? !1 : fe(e).some(
|
|
3598
3610
|
(t) => {
|
|
3599
3611
|
var r;
|
|
3600
|
-
return (r =
|
|
3612
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
3601
3613
|
}
|
|
3602
3614
|
);
|
|
3603
3615
|
}
|
|
3604
|
-
function
|
|
3616
|
+
function Yn(e, t) {
|
|
3605
3617
|
return Promise.all(
|
|
3606
|
-
t.map((n) => (
|
|
3607
|
-
).then((n) =>
|
|
3608
|
-
}
|
|
3609
|
-
const
|
|
3610
|
-
function
|
|
3611
|
-
if (!
|
|
3612
|
-
return e in
|
|
3613
|
-
const t =
|
|
3614
|
-
return
|
|
3618
|
+
t.map((n) => (Kn(e, n), n().then((i) => i.default || i)))
|
|
3619
|
+
).then((n) => er(e, ...n));
|
|
3620
|
+
}
|
|
3621
|
+
const se = {};
|
|
3622
|
+
function rr(e) {
|
|
3623
|
+
if (!Se(e))
|
|
3624
|
+
return e in se ? se[e] : Promise.resolve();
|
|
3625
|
+
const t = Zn(e);
|
|
3626
|
+
return se[e] = Promise.all(
|
|
3615
3627
|
t.map(
|
|
3616
|
-
([r, n]) =>
|
|
3628
|
+
([r, n]) => Yn(r, n)
|
|
3617
3629
|
)
|
|
3618
3630
|
).then(() => {
|
|
3619
|
-
if (
|
|
3620
|
-
return
|
|
3621
|
-
delete
|
|
3622
|
-
}),
|
|
3631
|
+
if (Se(e))
|
|
3632
|
+
return rr(e);
|
|
3633
|
+
delete se[e];
|
|
3634
|
+
}), se[e];
|
|
3623
3635
|
}
|
|
3624
|
-
var
|
|
3636
|
+
var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ti = (e, t) => {
|
|
3625
3637
|
var r = {};
|
|
3626
3638
|
for (var n in e)
|
|
3627
|
-
|
|
3628
|
-
if (e != null &&
|
|
3629
|
-
for (var n of
|
|
3630
|
-
t.indexOf(n) < 0 &&
|
|
3639
|
+
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3640
|
+
if (e != null && mt)
|
|
3641
|
+
for (var n of mt(e))
|
|
3642
|
+
t.indexOf(n) < 0 && ei.call(e, n) && (r[n] = e[n]);
|
|
3631
3643
|
return r;
|
|
3632
3644
|
};
|
|
3633
|
-
const
|
|
3645
|
+
const ri = {
|
|
3634
3646
|
number: {
|
|
3635
3647
|
scientific: { notation: "scientific" },
|
|
3636
3648
|
engineering: { notation: "engineering" },
|
|
@@ -3660,174 +3672,174 @@ const Zn = {
|
|
|
3660
3672
|
}
|
|
3661
3673
|
}
|
|
3662
3674
|
};
|
|
3663
|
-
function
|
|
3675
|
+
function ni({ locale: e, id: t }) {
|
|
3664
3676
|
console.warn(
|
|
3665
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3677
|
+
`[svelte-i18n] The message "${t}" was not found in "${fe(
|
|
3666
3678
|
e
|
|
3667
|
-
).join('", "')}".${
|
|
3679
|
+
).join('", "')}".${Se(R()) ? `
|
|
3668
3680
|
|
|
3669
3681
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3670
3682
|
);
|
|
3671
3683
|
}
|
|
3672
|
-
const
|
|
3684
|
+
const ii = {
|
|
3673
3685
|
fallbackLocale: null,
|
|
3674
3686
|
loadingDelay: 200,
|
|
3675
|
-
formats:
|
|
3687
|
+
formats: ri,
|
|
3676
3688
|
warnOnMissingMessages: !0,
|
|
3677
3689
|
handleMissingMessage: void 0,
|
|
3678
3690
|
ignoreTag: !0
|
|
3679
|
-
},
|
|
3680
|
-
function
|
|
3681
|
-
return
|
|
3691
|
+
}, oe = ii;
|
|
3692
|
+
function te() {
|
|
3693
|
+
return oe;
|
|
3682
3694
|
}
|
|
3683
|
-
function
|
|
3684
|
-
const t = e, { formats: r } = t, n =
|
|
3695
|
+
function ai(e) {
|
|
3696
|
+
const t = e, { formats: r } = t, n = ti(t, ["formats"]);
|
|
3685
3697
|
let i = e.fallbackLocale;
|
|
3686
3698
|
if (e.initialLocale)
|
|
3687
3699
|
try {
|
|
3688
|
-
|
|
3700
|
+
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3689
3701
|
} catch {
|
|
3690
3702
|
console.warn(
|
|
3691
3703
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3692
3704
|
);
|
|
3693
3705
|
}
|
|
3694
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3706
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ni : console.warn(
|
|
3695
3707
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3696
|
-
)), Object.assign(
|
|
3708
|
+
)), Object.assign(oe, n, { initialLocale: i }), r && ("number" in r && Object.assign(oe.formats.number, r.number), "date" in r && Object.assign(oe.formats.date, r.date), "time" in r && Object.assign(oe.formats.time, r.time)), z.set(i);
|
|
3697
3709
|
}
|
|
3698
|
-
const
|
|
3699
|
-
var
|
|
3710
|
+
const Ue = Be(!1);
|
|
3711
|
+
var si = Object.defineProperty, oi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3700
3712
|
for (var r in t || (t = {}))
|
|
3701
|
-
|
|
3702
|
-
if (
|
|
3703
|
-
for (var r of
|
|
3704
|
-
|
|
3713
|
+
ui.call(t, r) && pt(e, r, t[r]);
|
|
3714
|
+
if (gt)
|
|
3715
|
+
for (var r of gt(t))
|
|
3716
|
+
ci.call(t, r) && pt(e, r, t[r]);
|
|
3705
3717
|
return e;
|
|
3706
|
-
},
|
|
3707
|
-
let
|
|
3708
|
-
const
|
|
3709
|
-
function
|
|
3718
|
+
}, di = (e, t) => oi(e, li(t));
|
|
3719
|
+
let Ke;
|
|
3720
|
+
const Ae = Be(null);
|
|
3721
|
+
function bt(e) {
|
|
3710
3722
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3711
3723
|
}
|
|
3712
|
-
function
|
|
3713
|
-
const r =
|
|
3714
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3724
|
+
function fe(e, t = te().fallbackLocale) {
|
|
3725
|
+
const r = bt(e);
|
|
3726
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3715
3727
|
}
|
|
3716
|
-
function
|
|
3717
|
-
return
|
|
3728
|
+
function R() {
|
|
3729
|
+
return Ke ?? void 0;
|
|
3718
3730
|
}
|
|
3719
|
-
|
|
3720
|
-
|
|
3731
|
+
Ae.subscribe((e) => {
|
|
3732
|
+
Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3721
3733
|
});
|
|
3722
|
-
const
|
|
3723
|
-
if (e &&
|
|
3724
|
-
const { loadingDelay: t } =
|
|
3734
|
+
const fi = (e) => {
|
|
3735
|
+
if (e && Jn(e) && Se(e)) {
|
|
3736
|
+
const { loadingDelay: t } = te();
|
|
3725
3737
|
let r;
|
|
3726
|
-
return typeof window < "u" &&
|
|
3727
|
-
() =>
|
|
3738
|
+
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
3739
|
+
() => Ue.set(!0),
|
|
3728
3740
|
t
|
|
3729
|
-
) :
|
|
3730
|
-
|
|
3741
|
+
) : Ue.set(!0), rr(e).then(() => {
|
|
3742
|
+
Ae.set(e);
|
|
3731
3743
|
}).finally(() => {
|
|
3732
|
-
clearTimeout(r),
|
|
3744
|
+
clearTimeout(r), Ue.set(!1);
|
|
3733
3745
|
});
|
|
3734
3746
|
}
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3737
|
-
set:
|
|
3738
|
-
}),
|
|
3747
|
+
return Ae.set(e);
|
|
3748
|
+
}, z = di(hi({}, Ae), {
|
|
3749
|
+
set: fi
|
|
3750
|
+
}), Le = (e) => {
|
|
3739
3751
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3740
3752
|
return (n) => {
|
|
3741
3753
|
const i = JSON.stringify(n);
|
|
3742
3754
|
return i in t ? t[i] : t[i] = e(n);
|
|
3743
3755
|
};
|
|
3744
3756
|
};
|
|
3745
|
-
var
|
|
3757
|
+
var mi = Object.defineProperty, Ie = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
3746
3758
|
for (var r in t || (t = {}))
|
|
3747
|
-
|
|
3748
|
-
if (
|
|
3749
|
-
for (var r of
|
|
3750
|
-
|
|
3759
|
+
nr.call(t, r) && vt(e, r, t[r]);
|
|
3760
|
+
if (Ie)
|
|
3761
|
+
for (var r of Ie(t))
|
|
3762
|
+
ir.call(t, r) && vt(e, r, t[r]);
|
|
3751
3763
|
return e;
|
|
3752
|
-
},
|
|
3764
|
+
}, ie = (e, t) => {
|
|
3753
3765
|
var r = {};
|
|
3754
3766
|
for (var n in e)
|
|
3755
|
-
|
|
3756
|
-
if (e != null &&
|
|
3757
|
-
for (var n of
|
|
3758
|
-
t.indexOf(n) < 0 &&
|
|
3767
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3768
|
+
if (e != null && Ie)
|
|
3769
|
+
for (var n of Ie(e))
|
|
3770
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
3759
3771
|
return r;
|
|
3760
3772
|
};
|
|
3761
|
-
const
|
|
3762
|
-
const { formats: r } =
|
|
3773
|
+
const he = (e, t) => {
|
|
3774
|
+
const { formats: r } = te();
|
|
3763
3775
|
if (e in r && t in r[e])
|
|
3764
3776
|
return r[e][t];
|
|
3765
3777
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3766
|
-
},
|
|
3778
|
+
}, gi = Le(
|
|
3767
3779
|
(e) => {
|
|
3768
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3780
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3769
3781
|
if (r == null)
|
|
3770
3782
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3771
|
-
return n && (i =
|
|
3783
|
+
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
|
3772
3784
|
}
|
|
3773
|
-
),
|
|
3785
|
+
), pi = Le(
|
|
3774
3786
|
(e) => {
|
|
3775
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3787
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3776
3788
|
if (r == null)
|
|
3777
3789
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3778
|
-
return n ? i =
|
|
3790
|
+
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3779
3791
|
}
|
|
3780
|
-
),
|
|
3792
|
+
), bi = Le(
|
|
3781
3793
|
(e) => {
|
|
3782
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3794
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3783
3795
|
if (r == null)
|
|
3784
3796
|
throw new Error(
|
|
3785
3797
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3786
3798
|
);
|
|
3787
|
-
return n ? i =
|
|
3799
|
+
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3788
3800
|
}
|
|
3789
|
-
),
|
|
3801
|
+
), vi = (e = {}) => {
|
|
3790
3802
|
var t = e, {
|
|
3791
|
-
locale: r =
|
|
3792
|
-
} = t, n =
|
|
3803
|
+
locale: r = R()
|
|
3804
|
+
} = t, n = ie(t, [
|
|
3793
3805
|
"locale"
|
|
3794
3806
|
]);
|
|
3795
|
-
return
|
|
3796
|
-
},
|
|
3807
|
+
return gi(et({ locale: r }, n));
|
|
3808
|
+
}, yi = (e = {}) => {
|
|
3797
3809
|
var t = e, {
|
|
3798
|
-
locale: r =
|
|
3799
|
-
} = t, n =
|
|
3810
|
+
locale: r = R()
|
|
3811
|
+
} = t, n = ie(t, [
|
|
3800
3812
|
"locale"
|
|
3801
3813
|
]);
|
|
3802
|
-
return
|
|
3803
|
-
},
|
|
3814
|
+
return pi(et({ locale: r }, n));
|
|
3815
|
+
}, Ei = (e = {}) => {
|
|
3804
3816
|
var t = e, {
|
|
3805
|
-
locale: r =
|
|
3806
|
-
} = t, n =
|
|
3817
|
+
locale: r = R()
|
|
3818
|
+
} = t, n = ie(t, [
|
|
3807
3819
|
"locale"
|
|
3808
3820
|
]);
|
|
3809
|
-
return
|
|
3810
|
-
},
|
|
3821
|
+
return bi(et({ locale: r }, n));
|
|
3822
|
+
}, _i = Le(
|
|
3811
3823
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3812
|
-
(e, t =
|
|
3813
|
-
ignoreTag:
|
|
3824
|
+
(e, t = R()) => new Zt(e, t, te().formats, {
|
|
3825
|
+
ignoreTag: te().ignoreTag
|
|
3814
3826
|
})
|
|
3815
|
-
),
|
|
3827
|
+
), xi = (e, t = {}) => {
|
|
3816
3828
|
var r, n, i, a;
|
|
3817
3829
|
let s = t;
|
|
3818
3830
|
typeof e == "object" && (s = e, e = s.id);
|
|
3819
3831
|
const {
|
|
3820
3832
|
values: o,
|
|
3821
|
-
locale:
|
|
3822
|
-
default:
|
|
3833
|
+
locale: l = R(),
|
|
3834
|
+
default: u
|
|
3823
3835
|
} = s;
|
|
3824
|
-
if (
|
|
3836
|
+
if (l == null)
|
|
3825
3837
|
throw new Error(
|
|
3826
3838
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3827
3839
|
);
|
|
3828
|
-
let c =
|
|
3840
|
+
let c = Yt(e, l);
|
|
3829
3841
|
if (!c)
|
|
3830
|
-
c = (a = (i = (n = (r =
|
|
3842
|
+
c = (a = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3831
3843
|
else if (typeof c != "string")
|
|
3832
3844
|
return console.warn(
|
|
3833
3845
|
`[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.`
|
|
@@ -3836,7 +3848,7 @@ const se = (e, t) => {
|
|
|
3836
3848
|
return c;
|
|
3837
3849
|
let h = c;
|
|
3838
3850
|
try {
|
|
3839
|
-
h =
|
|
3851
|
+
h = _i(c, l).format(o);
|
|
3840
3852
|
} catch (d) {
|
|
3841
3853
|
d instanceof Error && console.warn(
|
|
3842
3854
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3844,20 +3856,20 @@ const se = (e, t) => {
|
|
|
3844
3856
|
);
|
|
3845
3857
|
}
|
|
3846
3858
|
return h;
|
|
3847
|
-
},
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3854
|
-
}
|
|
3855
|
-
function
|
|
3856
|
-
|
|
3859
|
+
}, Ti = (e, t) => Ei(t).format(e), ki = (e, t) => yi(t).format(e), wi = (e, t) => vi(t).format(e), Si = (e, t = R()) => Yt(e, t), Ai = ne([z, de], () => xi);
|
|
3860
|
+
ne([z], () => Ti);
|
|
3861
|
+
ne([z], () => ki);
|
|
3862
|
+
ne([z], () => wi);
|
|
3863
|
+
ne([z, de], () => Si);
|
|
3864
|
+
function yt(e, t) {
|
|
3865
|
+
er(e, t);
|
|
3866
|
+
}
|
|
3867
|
+
function Ii(e) {
|
|
3868
|
+
ai({
|
|
3857
3869
|
fallbackLocale: "en"
|
|
3858
|
-
}),
|
|
3870
|
+
}), z.set(e);
|
|
3859
3871
|
}
|
|
3860
|
-
const
|
|
3872
|
+
const Et = {
|
|
3861
3873
|
en: {
|
|
3862
3874
|
VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
|
|
3863
3875
|
CustomerDocumentIdMissing: "The document ID is missing",
|
|
@@ -4169,63 +4181,198 @@ const pt = {
|
|
|
4169
4181
|
CardTokenIsBlocked: "Kaarttoken is geblokkeerd"
|
|
4170
4182
|
}
|
|
4171
4183
|
};
|
|
4172
|
-
function
|
|
4173
|
-
|
|
4184
|
+
function Bi(e) {
|
|
4185
|
+
cr(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}');
|
|
4174
4186
|
}
|
|
4175
|
-
const
|
|
4176
|
-
function
|
|
4187
|
+
const Hi = (e) => ({}), _t = (e) => ({}), Ci = (e) => ({}), xt = (e) => ({}), Li = (e) => ({}), Tt = (e) => ({}), Pi = (e) => ({}), kt = (e) => ({ class: "CashierErrorIcon" });
|
|
4188
|
+
function wt(e) {
|
|
4189
|
+
let t, r, n, i, a;
|
|
4190
|
+
const s = (
|
|
4191
|
+
/*#slots*/
|
|
4192
|
+
e[16].icon
|
|
4193
|
+
), o = ge(
|
|
4194
|
+
s,
|
|
4195
|
+
e,
|
|
4196
|
+
/*$$scope*/
|
|
4197
|
+
e[15],
|
|
4198
|
+
kt
|
|
4199
|
+
), l = o || Oi(e), u = (
|
|
4200
|
+
/*#slots*/
|
|
4201
|
+
e[16].title
|
|
4202
|
+
), c = ge(
|
|
4203
|
+
u,
|
|
4204
|
+
e,
|
|
4205
|
+
/*$$scope*/
|
|
4206
|
+
e[15],
|
|
4207
|
+
Tt
|
|
4208
|
+
), h = (
|
|
4209
|
+
/*#slots*/
|
|
4210
|
+
e[16].text
|
|
4211
|
+
), d = ge(
|
|
4212
|
+
h,
|
|
4213
|
+
e,
|
|
4214
|
+
/*$$scope*/
|
|
4215
|
+
e[15],
|
|
4216
|
+
xt
|
|
4217
|
+
), m = d || Ni(e), g = (
|
|
4218
|
+
/*#slots*/
|
|
4219
|
+
e[16].button
|
|
4220
|
+
), T = ge(
|
|
4221
|
+
g,
|
|
4222
|
+
e,
|
|
4223
|
+
/*$$scope*/
|
|
4224
|
+
e[15],
|
|
4225
|
+
_t
|
|
4226
|
+
), E = T || Ri(e);
|
|
4227
|
+
return {
|
|
4228
|
+
c() {
|
|
4229
|
+
t = B("div"), l && l.c(), r = J(), c && c.c(), n = J(), m && m.c(), i = J(), E && E.c(), O(t, "class", "CashierErrorContent");
|
|
4230
|
+
},
|
|
4231
|
+
m(f, y) {
|
|
4232
|
+
A(f, t, y), l && l.m(t, null), I(t, r), c && c.m(t, null), I(t, n), m && m.m(t, null), I(t, i), E && E.m(t, null), a = !0;
|
|
4233
|
+
},
|
|
4234
|
+
p(f, y) {
|
|
4235
|
+
o ? o.p && (!a || y & /*$$scope*/
|
|
4236
|
+
32768) && be(
|
|
4237
|
+
o,
|
|
4238
|
+
s,
|
|
4239
|
+
f,
|
|
4240
|
+
/*$$scope*/
|
|
4241
|
+
f[15],
|
|
4242
|
+
a ? pe(
|
|
4243
|
+
s,
|
|
4244
|
+
/*$$scope*/
|
|
4245
|
+
f[15],
|
|
4246
|
+
y,
|
|
4247
|
+
Pi
|
|
4248
|
+
) : ve(
|
|
4249
|
+
/*$$scope*/
|
|
4250
|
+
f[15]
|
|
4251
|
+
),
|
|
4252
|
+
kt
|
|
4253
|
+
) : l && l.p && (!a || y & /*assetsurl*/
|
|
4254
|
+
1) && l.p(f, a ? y : -1), c && c.p && (!a || y & /*$$scope*/
|
|
4255
|
+
32768) && be(
|
|
4256
|
+
c,
|
|
4257
|
+
u,
|
|
4258
|
+
f,
|
|
4259
|
+
/*$$scope*/
|
|
4260
|
+
f[15],
|
|
4261
|
+
a ? pe(
|
|
4262
|
+
u,
|
|
4263
|
+
/*$$scope*/
|
|
4264
|
+
f[15],
|
|
4265
|
+
y,
|
|
4266
|
+
Li
|
|
4267
|
+
) : ve(
|
|
4268
|
+
/*$$scope*/
|
|
4269
|
+
f[15]
|
|
4270
|
+
),
|
|
4271
|
+
Tt
|
|
4272
|
+
), d ? d.p && (!a || y & /*$$scope*/
|
|
4273
|
+
32768) && be(
|
|
4274
|
+
d,
|
|
4275
|
+
h,
|
|
4276
|
+
f,
|
|
4277
|
+
/*$$scope*/
|
|
4278
|
+
f[15],
|
|
4279
|
+
a ? pe(
|
|
4280
|
+
h,
|
|
4281
|
+
/*$$scope*/
|
|
4282
|
+
f[15],
|
|
4283
|
+
y,
|
|
4284
|
+
Ci
|
|
4285
|
+
) : ve(
|
|
4286
|
+
/*$$scope*/
|
|
4287
|
+
f[15]
|
|
4288
|
+
),
|
|
4289
|
+
xt
|
|
4290
|
+
) : m && m.p && (!a || y & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, errormessage, shownError*/
|
|
4291
|
+
486) && m.p(f, a ? y : -1), T ? T.p && (!a || y & /*$$scope*/
|
|
4292
|
+
32768) && be(
|
|
4293
|
+
T,
|
|
4294
|
+
g,
|
|
4295
|
+
f,
|
|
4296
|
+
/*$$scope*/
|
|
4297
|
+
f[15],
|
|
4298
|
+
a ? pe(
|
|
4299
|
+
g,
|
|
4300
|
+
/*$$scope*/
|
|
4301
|
+
f[15],
|
|
4302
|
+
y,
|
|
4303
|
+
Hi
|
|
4304
|
+
) : ve(
|
|
4305
|
+
/*$$scope*/
|
|
4306
|
+
f[15]
|
|
4307
|
+
),
|
|
4308
|
+
_t
|
|
4309
|
+
) : E && E.p && (!a || y & /*$_*/
|
|
4310
|
+
256) && E.p(f, a ? y : -1);
|
|
4311
|
+
},
|
|
4312
|
+
i(f) {
|
|
4313
|
+
a || (M(l, f), M(c, f), M(m, f), M(E, f), a = !0);
|
|
4314
|
+
},
|
|
4315
|
+
o(f) {
|
|
4316
|
+
q(l, f), q(c, f), q(m, f), q(E, f), a = !1;
|
|
4317
|
+
},
|
|
4318
|
+
d(f) {
|
|
4319
|
+
f && k(t), l && l.d(f), c && c.d(f), m && m.d(f), E && E.d(f);
|
|
4320
|
+
}
|
|
4321
|
+
};
|
|
4322
|
+
}
|
|
4323
|
+
function St(e) {
|
|
4177
4324
|
let t, r;
|
|
4178
4325
|
return {
|
|
4179
4326
|
c() {
|
|
4180
|
-
t = B("ui-image"),
|
|
4181
|
-
e[0]}/error-general-icon.png`) ||
|
|
4327
|
+
t = B("ui-image"), nt(t.src, r = `${/*assetsurl*/
|
|
4328
|
+
e[0]}/error-general-icon.png`) || ye(t, "src", r), ye(t, "width", "300px"), ye(t, "alt", "error");
|
|
4182
4329
|
},
|
|
4183
4330
|
m(n, i) {
|
|
4184
4331
|
A(n, t, i);
|
|
4185
4332
|
},
|
|
4186
4333
|
p(n, i) {
|
|
4187
4334
|
i & /*assetsurl*/
|
|
4188
|
-
1 && !
|
|
4189
|
-
n[0]}/error-general-icon.png`) &&
|
|
4335
|
+
1 && !nt(t.src, r = `${/*assetsurl*/
|
|
4336
|
+
n[0]}/error-general-icon.png`) && ye(t, "src", r);
|
|
4190
4337
|
},
|
|
4191
4338
|
d(n) {
|
|
4192
|
-
n &&
|
|
4339
|
+
n && k(t);
|
|
4193
4340
|
}
|
|
4194
4341
|
};
|
|
4195
4342
|
}
|
|
4196
|
-
function
|
|
4343
|
+
function Oi(e) {
|
|
4197
4344
|
let t, r = (
|
|
4198
4345
|
/*assetsurl*/
|
|
4199
|
-
e[0] &&
|
|
4346
|
+
e[0] && St(e)
|
|
4200
4347
|
);
|
|
4201
4348
|
return {
|
|
4202
4349
|
c() {
|
|
4203
|
-
r && r.c(), t =
|
|
4350
|
+
r && r.c(), t = Ye();
|
|
4204
4351
|
},
|
|
4205
4352
|
m(n, i) {
|
|
4206
4353
|
r && r.m(n, i), A(n, t, i);
|
|
4207
4354
|
},
|
|
4208
4355
|
p(n, i) {
|
|
4209
4356
|
/*assetsurl*/
|
|
4210
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
4357
|
+
n[0] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4211
4358
|
},
|
|
4212
4359
|
d(n) {
|
|
4213
|
-
n &&
|
|
4360
|
+
n && k(t), r && r.d(n);
|
|
4214
4361
|
}
|
|
4215
4362
|
};
|
|
4216
4363
|
}
|
|
4217
|
-
function
|
|
4364
|
+
function At(e) {
|
|
4218
4365
|
let t;
|
|
4219
4366
|
function r(a, s) {
|
|
4220
4367
|
return (
|
|
4221
4368
|
/*depositWageringAmount*/
|
|
4222
|
-
a[
|
|
4369
|
+
a[5] < 0 ? Di : Mi
|
|
4223
4370
|
);
|
|
4224
4371
|
}
|
|
4225
4372
|
let n = r(e), i = n(e);
|
|
4226
4373
|
return {
|
|
4227
4374
|
c() {
|
|
4228
|
-
i.c(), t =
|
|
4375
|
+
i.c(), t = Ye();
|
|
4229
4376
|
},
|
|
4230
4377
|
m(a, s) {
|
|
4231
4378
|
i.m(a, s), A(a, t, s);
|
|
@@ -4234,68 +4381,68 @@ function xt(e) {
|
|
|
4234
4381
|
n === (n = r(a)) && i ? i.p(a, s) : (i.d(1), i = n(a), i && (i.c(), i.m(t.parentNode, t)));
|
|
4235
4382
|
},
|
|
4236
4383
|
d(a) {
|
|
4237
|
-
a &&
|
|
4384
|
+
a && k(t), i.d(a);
|
|
4238
4385
|
}
|
|
4239
4386
|
};
|
|
4240
4387
|
}
|
|
4241
|
-
function
|
|
4388
|
+
function Mi(e) {
|
|
4242
4389
|
let t, r = (
|
|
4243
4390
|
/*$_*/
|
|
4244
|
-
e[
|
|
4391
|
+
e[8]("DepositWageringLimitText") + ""
|
|
4245
4392
|
), n, i, a = (
|
|
4246
4393
|
/*depositWageringAmount*/
|
|
4247
|
-
e[
|
|
4394
|
+
e[5] > 0 && It(e)
|
|
4248
4395
|
);
|
|
4249
4396
|
return {
|
|
4250
4397
|
c() {
|
|
4251
|
-
t = B("span"), n =
|
|
4398
|
+
t = B("span"), n = N(r), i = J(), a && a.c(), O(t, "class", "CashierErrorText");
|
|
4252
4399
|
},
|
|
4253
4400
|
m(s, o) {
|
|
4254
4401
|
A(s, t, o), I(t, n), I(t, i), a && a.m(t, null);
|
|
4255
4402
|
},
|
|
4256
4403
|
p(s, o) {
|
|
4257
4404
|
o & /*$_*/
|
|
4258
|
-
|
|
4259
|
-
s[
|
|
4260
|
-
s[
|
|
4405
|
+
256 && r !== (r = /*$_*/
|
|
4406
|
+
s[8]("DepositWageringLimitText") + "") && Z(n, r), /*depositWageringAmount*/
|
|
4407
|
+
s[5] > 0 ? a ? a.p(s, o) : (a = It(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4261
4408
|
},
|
|
4262
4409
|
d(s) {
|
|
4263
|
-
s &&
|
|
4410
|
+
s && k(t), a && a.d();
|
|
4264
4411
|
}
|
|
4265
4412
|
};
|
|
4266
4413
|
}
|
|
4267
|
-
function
|
|
4414
|
+
function Di(e) {
|
|
4268
4415
|
let t, r, n = (
|
|
4269
4416
|
/*$_*/
|
|
4270
|
-
e[
|
|
4417
|
+
e[8]("DepositWageringFetching") + ""
|
|
4271
4418
|
), i;
|
|
4272
4419
|
return {
|
|
4273
4420
|
c() {
|
|
4274
|
-
t = B("div"), r = B("span"), i =
|
|
4421
|
+
t = B("div"), r = B("span"), i = N(n), O(r, "class", "CashierErrorText LoadingText"), O(t, "class", "WageringFetch");
|
|
4275
4422
|
},
|
|
4276
4423
|
m(a, s) {
|
|
4277
4424
|
A(a, t, s), I(t, r), I(r, i);
|
|
4278
4425
|
},
|
|
4279
4426
|
p(a, s) {
|
|
4280
4427
|
s & /*$_*/
|
|
4281
|
-
|
|
4282
|
-
a[
|
|
4428
|
+
256 && n !== (n = /*$_*/
|
|
4429
|
+
a[8]("DepositWageringFetching") + "") && Z(i, n);
|
|
4283
4430
|
},
|
|
4284
4431
|
d(a) {
|
|
4285
|
-
a &&
|
|
4432
|
+
a && k(t);
|
|
4286
4433
|
}
|
|
4287
4434
|
};
|
|
4288
4435
|
}
|
|
4289
|
-
function
|
|
4436
|
+
function It(e) {
|
|
4290
4437
|
let t, r, n;
|
|
4291
4438
|
return {
|
|
4292
4439
|
c() {
|
|
4293
|
-
t =
|
|
4440
|
+
t = N(
|
|
4294
4441
|
/*depositWageringAmount*/
|
|
4295
|
-
e[4]
|
|
4296
|
-
), r = V(), n = D(
|
|
4297
|
-
/*depositWageringCurrency*/
|
|
4298
4442
|
e[5]
|
|
4443
|
+
), r = J(), n = N(
|
|
4444
|
+
/*depositWageringCurrency*/
|
|
4445
|
+
e[6]
|
|
4299
4446
|
);
|
|
4300
4447
|
},
|
|
4301
4448
|
m(i, a) {
|
|
@@ -4303,364 +4450,260 @@ function Tt(e) {
|
|
|
4303
4450
|
},
|
|
4304
4451
|
p(i, a) {
|
|
4305
4452
|
a & /*depositWageringAmount*/
|
|
4306
|
-
|
|
4453
|
+
32 && Z(
|
|
4307
4454
|
t,
|
|
4308
4455
|
/*depositWageringAmount*/
|
|
4309
|
-
i[
|
|
4456
|
+
i[5]
|
|
4310
4457
|
), a & /*depositWageringCurrency*/
|
|
4311
|
-
|
|
4458
|
+
64 && Z(
|
|
4312
4459
|
n,
|
|
4313
4460
|
/*depositWageringCurrency*/
|
|
4314
|
-
i[
|
|
4461
|
+
i[6]
|
|
4315
4462
|
);
|
|
4316
4463
|
},
|
|
4317
4464
|
d(i) {
|
|
4318
|
-
i && (
|
|
4465
|
+
i && (k(t), k(r), k(n));
|
|
4319
4466
|
}
|
|
4320
4467
|
};
|
|
4321
4468
|
}
|
|
4322
|
-
function
|
|
4469
|
+
function Ni(e) {
|
|
4323
4470
|
let t, r = (
|
|
4324
4471
|
/*errormessage*/
|
|
4325
4472
|
(e[2].length > 0 ? (
|
|
4326
4473
|
/*errormessage*/
|
|
4327
4474
|
e[2]
|
|
4328
4475
|
) : (
|
|
4329
|
-
|
|
4330
|
-
e[
|
|
4331
|
-
e[1] || "errorGeneralText"}`)
|
|
4476
|
+
/*shownError*/
|
|
4477
|
+
e[7]
|
|
4332
4478
|
)) + ""
|
|
4333
4479
|
), n, i, a, s = (
|
|
4334
4480
|
/*errorcode*/
|
|
4335
|
-
e[1] == "DepositWageringLimit" &&
|
|
4481
|
+
e[1] == "DepositWageringLimit" && At(e)
|
|
4336
4482
|
);
|
|
4337
4483
|
return {
|
|
4338
4484
|
c() {
|
|
4339
|
-
t = B("span"), n =
|
|
4485
|
+
t = B("span"), n = N(r), i = J(), s && s.c(), a = Ye(), O(t, "class", "CashierErrorText");
|
|
4340
4486
|
},
|
|
4341
|
-
m(o,
|
|
4342
|
-
A(o, t,
|
|
4487
|
+
m(o, l) {
|
|
4488
|
+
A(o, t, l), I(t, n), A(o, i, l), s && s.m(o, l), A(o, a, l);
|
|
4343
4489
|
},
|
|
4344
|
-
p(o,
|
|
4345
|
-
|
|
4346
|
-
|
|
4490
|
+
p(o, l) {
|
|
4491
|
+
l & /*errormessage, shownError*/
|
|
4492
|
+
132 && r !== (r = /*errormessage*/
|
|
4347
4493
|
(o[2].length > 0 ? (
|
|
4348
4494
|
/*errormessage*/
|
|
4349
4495
|
o[2]
|
|
4350
4496
|
) : (
|
|
4351
|
-
|
|
4352
|
-
o[
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
o[1] == "DepositWageringLimit" ? s ? s.p(o, u) : (s = xt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
|
|
4497
|
+
/*shownError*/
|
|
4498
|
+
o[7]
|
|
4499
|
+
)) + "") && Z(n, r), /*errorcode*/
|
|
4500
|
+
o[1] == "DepositWageringLimit" ? s ? s.p(o, l) : (s = At(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
|
|
4356
4501
|
},
|
|
4357
4502
|
d(o) {
|
|
4358
|
-
o && (
|
|
4503
|
+
o && (k(t), k(i), k(a)), s && s.d(o);
|
|
4359
4504
|
}
|
|
4360
4505
|
};
|
|
4361
4506
|
}
|
|
4362
|
-
function
|
|
4507
|
+
function Ri(e) {
|
|
4363
4508
|
let t, r, n = (
|
|
4364
4509
|
/*$_*/
|
|
4365
|
-
e[
|
|
4510
|
+
e[8]("errorGeneralButton") + ""
|
|
4366
4511
|
), i, a, s;
|
|
4367
4512
|
return {
|
|
4368
4513
|
c() {
|
|
4369
|
-
t = B("button"), r = B("span"), i =
|
|
4514
|
+
t = B("button"), r = B("span"), i = N(n), O(t, "class", "CashierErrorButton");
|
|
4370
4515
|
},
|
|
4371
|
-
m(o,
|
|
4372
|
-
A(o, t,
|
|
4516
|
+
m(o, l) {
|
|
4517
|
+
A(o, t, l), I(t, r), I(r, i), a || (s = fr(
|
|
4373
4518
|
t,
|
|
4374
4519
|
"click",
|
|
4375
4520
|
/*close*/
|
|
4376
|
-
e[
|
|
4521
|
+
e[9]
|
|
4377
4522
|
), a = !0);
|
|
4378
4523
|
},
|
|
4379
|
-
p(o,
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
o[
|
|
4524
|
+
p(o, l) {
|
|
4525
|
+
l & /*$_*/
|
|
4526
|
+
256 && n !== (n = /*$_*/
|
|
4527
|
+
o[8]("errorGeneralButton") + "") && Z(i, n);
|
|
4383
4528
|
},
|
|
4384
4529
|
d(o) {
|
|
4385
|
-
o &&
|
|
4530
|
+
o && k(t), a = !1, s();
|
|
4386
4531
|
}
|
|
4387
4532
|
};
|
|
4388
4533
|
}
|
|
4389
|
-
function
|
|
4390
|
-
let t, r, n
|
|
4391
|
-
|
|
4392
|
-
/*#slots*/
|
|
4393
|
-
e[14].icon
|
|
4394
|
-
), u = he(
|
|
4395
|
-
o,
|
|
4396
|
-
e,
|
|
4397
|
-
/*$$scope*/
|
|
4398
|
-
e[13],
|
|
4399
|
-
Et
|
|
4400
|
-
), l = u || Bi(e), c = (
|
|
4401
|
-
/*#slots*/
|
|
4402
|
-
e[14].title
|
|
4403
|
-
), h = he(
|
|
4404
|
-
c,
|
|
4405
|
-
e,
|
|
4406
|
-
/*$$scope*/
|
|
4407
|
-
e[13],
|
|
4408
|
-
yt
|
|
4409
|
-
), d = (
|
|
4410
|
-
/*#slots*/
|
|
4411
|
-
e[14].text
|
|
4412
|
-
), v = he(
|
|
4413
|
-
d,
|
|
4414
|
-
e,
|
|
4415
|
-
/*$$scope*/
|
|
4416
|
-
e[13],
|
|
4417
|
-
vt
|
|
4418
|
-
), m = v || Li(e), x = (
|
|
4419
|
-
/*#slots*/
|
|
4420
|
-
e[14].button
|
|
4421
|
-
), k = he(
|
|
4422
|
-
x,
|
|
4423
|
-
e,
|
|
4424
|
-
/*$$scope*/
|
|
4425
|
-
e[13],
|
|
4426
|
-
bt
|
|
4427
|
-
), T = k || Pi(e);
|
|
4534
|
+
function Ui(e) {
|
|
4535
|
+
let t, r, n = !/*isLoading*/
|
|
4536
|
+
e[4] && wt(e);
|
|
4428
4537
|
return {
|
|
4429
4538
|
c() {
|
|
4430
|
-
t = B("div"),
|
|
4539
|
+
t = B("div"), n && n.c(), O(t, "class", "CashierError");
|
|
4431
4540
|
},
|
|
4432
|
-
m(
|
|
4433
|
-
A(
|
|
4541
|
+
m(i, a) {
|
|
4542
|
+
A(i, t, a), n && n.m(t, null), e[17](t), r = !0;
|
|
4434
4543
|
},
|
|
4435
|
-
p(
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
/*$$scope*/
|
|
4442
|
-
f[13],
|
|
4443
|
-
s ? de(
|
|
4444
|
-
o,
|
|
4445
|
-
/*$$scope*/
|
|
4446
|
-
f[13],
|
|
4447
|
-
y,
|
|
4448
|
-
Ii
|
|
4449
|
-
) : me(
|
|
4450
|
-
/*$$scope*/
|
|
4451
|
-
f[13]
|
|
4452
|
-
),
|
|
4453
|
-
Et
|
|
4454
|
-
) : l && l.p && (!s || y & /*assetsurl*/
|
|
4455
|
-
1) && l.p(f, s ? y : -1), h && h.p && (!s || y & /*$$scope*/
|
|
4456
|
-
8192) && fe(
|
|
4457
|
-
h,
|
|
4458
|
-
c,
|
|
4459
|
-
f,
|
|
4460
|
-
/*$$scope*/
|
|
4461
|
-
f[13],
|
|
4462
|
-
s ? de(
|
|
4463
|
-
c,
|
|
4464
|
-
/*$$scope*/
|
|
4465
|
-
f[13],
|
|
4466
|
-
y,
|
|
4467
|
-
Ai
|
|
4468
|
-
) : me(
|
|
4469
|
-
/*$$scope*/
|
|
4470
|
-
f[13]
|
|
4471
|
-
),
|
|
4472
|
-
yt
|
|
4473
|
-
), v ? v.p && (!s || y & /*$$scope*/
|
|
4474
|
-
8192) && fe(
|
|
4475
|
-
v,
|
|
4476
|
-
d,
|
|
4477
|
-
f,
|
|
4478
|
-
/*$$scope*/
|
|
4479
|
-
f[13],
|
|
4480
|
-
s ? de(
|
|
4481
|
-
d,
|
|
4482
|
-
/*$$scope*/
|
|
4483
|
-
f[13],
|
|
4484
|
-
y,
|
|
4485
|
-
Si
|
|
4486
|
-
) : me(
|
|
4487
|
-
/*$$scope*/
|
|
4488
|
-
f[13]
|
|
4489
|
-
),
|
|
4490
|
-
vt
|
|
4491
|
-
) : m && m.p && (!s || y & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, errormessage*/
|
|
4492
|
-
118) && m.p(f, s ? y : -1), k ? k.p && (!s || y & /*$$scope*/
|
|
4493
|
-
8192) && fe(
|
|
4494
|
-
k,
|
|
4495
|
-
x,
|
|
4496
|
-
f,
|
|
4497
|
-
/*$$scope*/
|
|
4498
|
-
f[13],
|
|
4499
|
-
s ? de(
|
|
4500
|
-
x,
|
|
4501
|
-
/*$$scope*/
|
|
4502
|
-
f[13],
|
|
4503
|
-
y,
|
|
4504
|
-
wi
|
|
4505
|
-
) : me(
|
|
4506
|
-
/*$$scope*/
|
|
4507
|
-
f[13]
|
|
4508
|
-
),
|
|
4509
|
-
bt
|
|
4510
|
-
) : T && T.p && (!s || y & /*$_*/
|
|
4511
|
-
64) && T.p(f, s ? y : -1);
|
|
4544
|
+
p(i, [a]) {
|
|
4545
|
+
/*isLoading*/
|
|
4546
|
+
i[4] ? n && (xr(), q(n, 1, 1, () => {
|
|
4547
|
+
n = null;
|
|
4548
|
+
}), Tr()) : n ? (n.p(i, a), a & /*isLoading*/
|
|
4549
|
+
16 && M(n, 1)) : (n = wt(i), n.c(), M(n, 1), n.m(t, null));
|
|
4512
4550
|
},
|
|
4513
|
-
i(
|
|
4514
|
-
|
|
4551
|
+
i(i) {
|
|
4552
|
+
r || (M(n), r = !0);
|
|
4515
4553
|
},
|
|
4516
|
-
o(
|
|
4517
|
-
|
|
4554
|
+
o(i) {
|
|
4555
|
+
q(n), r = !1;
|
|
4518
4556
|
},
|
|
4519
|
-
d(
|
|
4520
|
-
|
|
4557
|
+
d(i) {
|
|
4558
|
+
i && k(t), n && n.d(), e[17](null);
|
|
4521
4559
|
}
|
|
4522
4560
|
};
|
|
4523
4561
|
}
|
|
4524
|
-
function
|
|
4562
|
+
function Fi(e, t, r) {
|
|
4525
4563
|
let n;
|
|
4526
|
-
|
|
4527
|
-
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode:
|
|
4528
|
-
const
|
|
4529
|
-
|
|
4530
|
-
},
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
Object.entries(er).forEach(([tr, rr]) => {
|
|
4538
|
-
gt(tr, rr);
|
|
4564
|
+
ur(e, Ai, (b) => r(8, n = b));
|
|
4565
|
+
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;
|
|
4566
|
+
const U = () => {
|
|
4567
|
+
Ii(o);
|
|
4568
|
+
}, L = () => {
|
|
4569
|
+
r(4, w = !0);
|
|
4570
|
+
let b = d;
|
|
4571
|
+
if (b)
|
|
4572
|
+
return fetch(b).then((G) => G.json()).then((G) => {
|
|
4573
|
+
Object.keys(G).forEach((tt) => {
|
|
4574
|
+
yt(tt, G[tt]);
|
|
4539
4575
|
});
|
|
4540
|
-
}
|
|
4541
|
-
console.
|
|
4542
|
-
}
|
|
4576
|
+
}).catch((G) => {
|
|
4577
|
+
console.log(G);
|
|
4578
|
+
}).finally(() => {
|
|
4579
|
+
r(4, w = !1);
|
|
4580
|
+
});
|
|
4543
4581
|
};
|
|
4544
|
-
Object.keys(
|
|
4545
|
-
|
|
4582
|
+
Object.keys(Et).forEach((b) => {
|
|
4583
|
+
yt(b, Et[b]);
|
|
4546
4584
|
});
|
|
4547
|
-
const
|
|
4585
|
+
const $ = () => {
|
|
4548
4586
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4549
|
-
},
|
|
4550
|
-
if (
|
|
4551
|
-
switch (
|
|
4587
|
+
}, ae = (b) => {
|
|
4588
|
+
if (b.data)
|
|
4589
|
+
switch (b.data.type) {
|
|
4552
4590
|
case "DepositWageringAmount":
|
|
4553
|
-
r(
|
|
4591
|
+
r(5, E = b.data.amount), r(6, f = b.data.currency);
|
|
4554
4592
|
break;
|
|
4555
4593
|
}
|
|
4594
|
+
}, ar = () => {
|
|
4595
|
+
r(7, y = n(`${l || "errorGeneralText"}`));
|
|
4556
4596
|
};
|
|
4557
|
-
|
|
4558
|
-
window.removeEventListener("message",
|
|
4597
|
+
br(() => (window.addEventListener("message", ae, !1), () => {
|
|
4598
|
+
window.removeEventListener("message", ae);
|
|
4559
4599
|
}));
|
|
4560
|
-
function
|
|
4561
|
-
|
|
4562
|
-
|
|
4600
|
+
function sr(b) {
|
|
4601
|
+
Fe[b ? "unshift" : "push"](() => {
|
|
4602
|
+
g = b, r(3, g);
|
|
4563
4603
|
});
|
|
4564
4604
|
}
|
|
4565
|
-
return e.$$set = (
|
|
4566
|
-
"assetsurl" in
|
|
4605
|
+
return e.$$set = (b) => {
|
|
4606
|
+
"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);
|
|
4567
4607
|
}, e.$$.update = () => {
|
|
4568
4608
|
e.$$.dirty & /*lang*/
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4609
|
+
1024 && o && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4610
|
+
2056 && c && g && Cr(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4611
|
+
4104 && h && g && Lr(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4612
|
+
16392 && m && g && Pr(g, `${m}.Style`, T), e.$$.dirty & /*translationurl*/
|
|
4613
|
+
8192 && d && L(), e.$$.dirty & /*isLoading*/
|
|
4614
|
+
16 && !w && ar();
|
|
4574
4615
|
}, [
|
|
4575
4616
|
s,
|
|
4576
|
-
u,
|
|
4577
4617
|
l,
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4618
|
+
u,
|
|
4619
|
+
g,
|
|
4620
|
+
w,
|
|
4621
|
+
E,
|
|
4622
|
+
f,
|
|
4623
|
+
y,
|
|
4581
4624
|
n,
|
|
4582
|
-
|
|
4625
|
+
$,
|
|
4583
4626
|
o,
|
|
4584
4627
|
c,
|
|
4585
4628
|
h,
|
|
4586
4629
|
d,
|
|
4587
|
-
|
|
4630
|
+
m,
|
|
4588
4631
|
a,
|
|
4589
4632
|
i,
|
|
4590
|
-
|
|
4633
|
+
sr
|
|
4591
4634
|
];
|
|
4592
4635
|
}
|
|
4593
|
-
class
|
|
4636
|
+
class zi extends Br {
|
|
4594
4637
|
constructor(t) {
|
|
4595
|
-
super(),
|
|
4638
|
+
super(), Ar(
|
|
4596
4639
|
this,
|
|
4597
4640
|
t,
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4641
|
+
Fi,
|
|
4642
|
+
Ui,
|
|
4643
|
+
Ht,
|
|
4601
4644
|
{
|
|
4602
4645
|
assetsurl: 0,
|
|
4603
|
-
lang:
|
|
4646
|
+
lang: 10,
|
|
4604
4647
|
errorcode: 1,
|
|
4605
4648
|
errormessage: 2,
|
|
4606
|
-
clientstyling:
|
|
4607
|
-
clientstylingurl:
|
|
4608
|
-
translationurl:
|
|
4609
|
-
mbsource:
|
|
4649
|
+
clientstyling: 11,
|
|
4650
|
+
clientstylingurl: 12,
|
|
4651
|
+
translationurl: 13,
|
|
4652
|
+
mbsource: 14
|
|
4610
4653
|
},
|
|
4611
|
-
|
|
4654
|
+
Bi
|
|
4612
4655
|
);
|
|
4613
4656
|
}
|
|
4614
4657
|
get assetsurl() {
|
|
4615
4658
|
return this.$$.ctx[0];
|
|
4616
4659
|
}
|
|
4617
4660
|
set assetsurl(t) {
|
|
4618
|
-
this.$$set({ assetsurl: t }),
|
|
4661
|
+
this.$$set({ assetsurl: t }), H();
|
|
4619
4662
|
}
|
|
4620
4663
|
get lang() {
|
|
4621
|
-
return this.$$.ctx[
|
|
4664
|
+
return this.$$.ctx[10];
|
|
4622
4665
|
}
|
|
4623
4666
|
set lang(t) {
|
|
4624
|
-
this.$$set({ lang: t }),
|
|
4667
|
+
this.$$set({ lang: t }), H();
|
|
4625
4668
|
}
|
|
4626
4669
|
get errorcode() {
|
|
4627
4670
|
return this.$$.ctx[1];
|
|
4628
4671
|
}
|
|
4629
4672
|
set errorcode(t) {
|
|
4630
|
-
this.$$set({ errorcode: t }),
|
|
4673
|
+
this.$$set({ errorcode: t }), H();
|
|
4631
4674
|
}
|
|
4632
4675
|
get errormessage() {
|
|
4633
4676
|
return this.$$.ctx[2];
|
|
4634
4677
|
}
|
|
4635
4678
|
set errormessage(t) {
|
|
4636
|
-
this.$$set({ errormessage: t }),
|
|
4679
|
+
this.$$set({ errormessage: t }), H();
|
|
4637
4680
|
}
|
|
4638
4681
|
get clientstyling() {
|
|
4639
|
-
return this.$$.ctx[
|
|
4682
|
+
return this.$$.ctx[11];
|
|
4640
4683
|
}
|
|
4641
4684
|
set clientstyling(t) {
|
|
4642
|
-
this.$$set({ clientstyling: t }),
|
|
4685
|
+
this.$$set({ clientstyling: t }), H();
|
|
4643
4686
|
}
|
|
4644
4687
|
get clientstylingurl() {
|
|
4645
|
-
return this.$$.ctx[
|
|
4688
|
+
return this.$$.ctx[12];
|
|
4646
4689
|
}
|
|
4647
4690
|
set clientstylingurl(t) {
|
|
4648
|
-
this.$$set({ clientstylingurl: t }),
|
|
4691
|
+
this.$$set({ clientstylingurl: t }), H();
|
|
4649
4692
|
}
|
|
4650
4693
|
get translationurl() {
|
|
4651
|
-
return this.$$.ctx[
|
|
4694
|
+
return this.$$.ctx[13];
|
|
4652
4695
|
}
|
|
4653
4696
|
set translationurl(t) {
|
|
4654
|
-
this.$$set({ translationurl: t }),
|
|
4697
|
+
this.$$set({ translationurl: t }), H();
|
|
4655
4698
|
}
|
|
4656
4699
|
get mbsource() {
|
|
4657
|
-
return this.$$.ctx[
|
|
4700
|
+
return this.$$.ctx[14];
|
|
4658
4701
|
}
|
|
4659
4702
|
set mbsource(t) {
|
|
4660
|
-
this.$$set({ mbsource: t }),
|
|
4703
|
+
this.$$set({ mbsource: t }), H();
|
|
4661
4704
|
}
|
|
4662
4705
|
}
|
|
4663
|
-
|
|
4706
|
+
Ir(zi, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4664
4707
|
export {
|
|
4665
|
-
|
|
4708
|
+
zi as C
|
|
4666
4709
|
};
|