@everymatrix/player-account-balance-modal-nd 1.54.11 → 1.55.0
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/PlayerAccountBalanceModalNd-BZ43yp7H.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BAeICRDi.js → PlayerAccountBalanceModalNd-C2GEz49a.js} +365 -363
- package/components/{PlayerAccountBalanceModalNd-BHCiKY4G.js → PlayerAccountBalanceModalNd-EF5v83ww.js} +606 -604
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-DpL_C3Ey.cjs +0 -15
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Rt = (e, t, n) => t in e ?
|
|
1
|
+
var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var un = Object.getOwnPropertySymbols;
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Rt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
mr.call(t, n) && Rt(e, n, t[n]);
|
|
8
|
+
if (un)
|
|
9
|
+
for (var n of un(t))
|
|
10
|
+
gr.call(t, n) && Rt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Mt = (e, t) =>
|
|
12
|
+
}, Mt = (e, t) => dr(e, pr(t));
|
|
13
13
|
var se = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var Nt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var
|
|
15
|
+
var a = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, l);
|
|
28
|
+
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function le() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Nn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function cn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function je(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Nn);
|
|
40
40
|
}
|
|
41
41
|
function tn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function In(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function br(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
@@ -56,20 +56,20 @@ function Nn(e, ...t) {
|
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function yr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Pn(t, n));
|
|
61
61
|
}
|
|
62
62
|
function C(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function vr(e, t, n) {
|
|
66
|
+
const r = Er(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
68
|
const i = $("style");
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
69
|
+
i.id = t, i.textContent = n, xr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Er(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,7 +78,7 @@ function yr(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function xr(e, t) {
|
|
82
82
|
return C(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
@@ -91,14 +91,14 @@ function ge(e, t, n) {
|
|
|
91
91
|
function fe(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Dn(e, t) {
|
|
95
95
|
for (let n = 0; n < e.length; n += 1)
|
|
96
96
|
e[n] && e[n].d(t);
|
|
97
97
|
}
|
|
98
98
|
function $(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function hn(e) {
|
|
102
102
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
103
|
}
|
|
104
104
|
function he(e) {
|
|
@@ -107,7 +107,7 @@ function he(e) {
|
|
|
107
107
|
function de() {
|
|
108
108
|
return he(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function _r() {
|
|
111
111
|
return he("");
|
|
112
112
|
}
|
|
113
113
|
function pt(e, t, n, r) {
|
|
@@ -116,14 +116,14 @@ function pt(e, t, n, r) {
|
|
|
116
116
|
function M(e, t, n) {
|
|
117
117
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Br(e) {
|
|
120
120
|
return Array.from(e.childNodes);
|
|
121
121
|
}
|
|
122
122
|
function Be(e, t) {
|
|
123
123
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
124
124
|
t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Tr(e) {
|
|
127
127
|
const t = {};
|
|
128
128
|
return e.childNodes.forEach(
|
|
129
129
|
/** @param {Element} node */
|
|
@@ -136,19 +136,19 @@ let et;
|
|
|
136
136
|
function Ke(e) {
|
|
137
137
|
et = e;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function wr() {
|
|
140
140
|
if (!et) throw new Error("Function called outside component initialization");
|
|
141
141
|
return et;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function Sr(e) {
|
|
144
|
+
wr().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
146
|
const Pe = [], jt = [];
|
|
147
147
|
let De = [];
|
|
148
|
-
const
|
|
148
|
+
const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
149
149
|
let kt = !1;
|
|
150
|
-
function
|
|
151
|
-
kt || (kt = !0,
|
|
150
|
+
function Cr() {
|
|
151
|
+
kt || (kt = !0, Ar.then(Q));
|
|
152
152
|
}
|
|
153
153
|
function Vt(e) {
|
|
154
154
|
De.push(e);
|
|
@@ -163,7 +163,7 @@ function Q() {
|
|
|
163
163
|
try {
|
|
164
164
|
for (; Ne < Pe.length; ) {
|
|
165
165
|
const t = Pe[Ne];
|
|
166
|
-
Ne++, Ke(t),
|
|
166
|
+
Ne++, Ke(t), Hr(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
169
|
throw Pe.length = 0, Ne = 0, t;
|
|
@@ -175,53 +175,53 @@ function Q() {
|
|
|
175
175
|
}
|
|
176
176
|
De.length = 0;
|
|
177
177
|
} while (Pe.length);
|
|
178
|
-
for (;
|
|
179
|
-
|
|
178
|
+
for (; fn.length; )
|
|
179
|
+
fn.pop()();
|
|
180
180
|
kt = !1, It.clear(), Ke(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Hr(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
184
|
e.update(), je(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
186
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Or(e) {
|
|
190
190
|
const t = [], n = [];
|
|
191
191
|
De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
193
|
+
const Rr = /* @__PURE__ */ new Set();
|
|
194
|
+
function Lr(e, t) {
|
|
195
|
+
e && e.i && (Rr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
197
|
function mt(e) {
|
|
198
198
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Mr(e, t, n) {
|
|
201
201
|
const { fragment: r, after_update: i } = e.$$;
|
|
202
202
|
r && r.m(t, n), Vt(() => {
|
|
203
|
-
const
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
203
|
+
const a = e.$$.on_mount.map(Nn).filter(tn);
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : je(a), e.$$.on_mount = [];
|
|
205
205
|
}), i.forEach(Vt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Nr(e, t) {
|
|
208
208
|
const n = e.$$;
|
|
209
|
-
n.fragment !== null && (
|
|
209
|
+
n.fragment !== null && (Or(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
e.$$.dirty[0] === -1 && (Pe.push(e),
|
|
211
|
+
function Ir(e, t) {
|
|
212
|
+
e.$$.dirty[0] === -1 && (Pe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Pr(e, t, n, r, i, a, l = null, o = [-1]) {
|
|
215
215
|
const c = et;
|
|
216
216
|
Ke(e);
|
|
217
217
|
const u = e.$$ = {
|
|
218
218
|
fragment: null,
|
|
219
219
|
ctx: [],
|
|
220
220
|
// state
|
|
221
|
-
props:
|
|
221
|
+
props: a,
|
|
222
222
|
update: le,
|
|
223
223
|
not_equal: i,
|
|
224
|
-
bound:
|
|
224
|
+
bound: cn(),
|
|
225
225
|
// lifecycle
|
|
226
226
|
on_mount: [],
|
|
227
227
|
on_destroy: [],
|
|
@@ -230,8 +230,8 @@ function Nr(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
230
230
|
after_update: [],
|
|
231
231
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
232
232
|
// everything else
|
|
233
|
-
callbacks:
|
|
234
|
-
dirty:
|
|
233
|
+
callbacks: cn(),
|
|
234
|
+
dirty: o,
|
|
235
235
|
skip_bound: !1,
|
|
236
236
|
root: t.target || c.$$.root
|
|
237
237
|
};
|
|
@@ -239,19 +239,19 @@ function Nr(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
239
239
|
let d = !1;
|
|
240
240
|
if (u.ctx = n ? n(e, t.props || {}, (b, y, ...T) => {
|
|
241
241
|
const _ = T.length ? T[0] : y;
|
|
242
|
-
return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), d &&
|
|
242
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), d && Ir(e, b)), y;
|
|
243
243
|
}) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
244
244
|
if (t.hydrate) {
|
|
245
|
-
const b =
|
|
245
|
+
const b = Br(t.target);
|
|
246
246
|
u.fragment && u.fragment.l(b), b.forEach(fe);
|
|
247
247
|
} else
|
|
248
248
|
u.fragment && u.fragment.c();
|
|
249
|
-
t.intro &&
|
|
249
|
+
t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), Q();
|
|
250
250
|
}
|
|
251
251
|
Ke(c);
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
typeof HTMLElement == "function" && (
|
|
253
|
+
let Un;
|
|
254
|
+
typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
255
255
|
constructor(t, n, r) {
|
|
256
256
|
super();
|
|
257
257
|
/** The Svelte component constructor */
|
|
@@ -290,12 +290,12 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
290
290
|
connectedCallback() {
|
|
291
291
|
return Nt(this, null, function* () {
|
|
292
292
|
if (this.$$cn = !0, !this.$$c) {
|
|
293
|
-
let t = function(
|
|
293
|
+
let t = function(a) {
|
|
294
294
|
return () => {
|
|
295
295
|
let l;
|
|
296
296
|
return {
|
|
297
297
|
c: function() {
|
|
298
|
-
l = $("slot"),
|
|
298
|
+
l = $("slot"), a !== "default" && M(l, "name", a);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* @param {HTMLElement} target
|
|
@@ -312,15 +312,15 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
312
312
|
};
|
|
313
313
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
314
314
|
return;
|
|
315
|
-
const n = {}, r =
|
|
316
|
-
for (const
|
|
317
|
-
|
|
318
|
-
for (const
|
|
319
|
-
const l = this.$$g_p(
|
|
320
|
-
l in this.$$d || (this.$$d[l] = ct(l,
|
|
315
|
+
const n = {}, r = Tr(this);
|
|
316
|
+
for (const a of this.$$s)
|
|
317
|
+
a in r && (n[a] = [t(a)]);
|
|
318
|
+
for (const a of this.attributes) {
|
|
319
|
+
const l = this.$$g_p(a.name);
|
|
320
|
+
l in this.$$d || (this.$$d[l] = ct(l, a.value, this.$$p_d, "toProp"));
|
|
321
321
|
}
|
|
322
|
-
for (const
|
|
323
|
-
!(
|
|
322
|
+
for (const a in this.$$p_d)
|
|
323
|
+
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
324
324
|
this.$$c = new this.$$ctor({
|
|
325
325
|
target: this.shadowRoot || this,
|
|
326
326
|
props: Mt(Lt({}, this.$$d), {
|
|
@@ -332,23 +332,23 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
332
332
|
});
|
|
333
333
|
const i = () => {
|
|
334
334
|
this.$$r = !0;
|
|
335
|
-
for (const
|
|
336
|
-
if (this.$$d[
|
|
335
|
+
for (const a in this.$$p_d)
|
|
336
|
+
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
337
337
|
const l = ct(
|
|
338
|
-
|
|
339
|
-
this.$$d[
|
|
338
|
+
a,
|
|
339
|
+
this.$$d[a],
|
|
340
340
|
this.$$p_d,
|
|
341
341
|
"toAttribute"
|
|
342
342
|
);
|
|
343
|
-
l == null ? this.removeAttribute(this.$$p_d[
|
|
343
|
+
l == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, l);
|
|
344
344
|
}
|
|
345
345
|
this.$$r = !1;
|
|
346
346
|
};
|
|
347
347
|
this.$$c.$$.after_update.push(i), i();
|
|
348
|
-
for (const
|
|
349
|
-
for (const l of this.$$l[
|
|
350
|
-
const
|
|
351
|
-
this.$$l_u.set(l,
|
|
348
|
+
for (const a in this.$$l)
|
|
349
|
+
for (const l of this.$$l[a]) {
|
|
350
|
+
const o = this.$$c.$on(a, l);
|
|
351
|
+
this.$$l_u.set(l, o);
|
|
352
352
|
}
|
|
353
353
|
this.$$l = {};
|
|
354
354
|
}
|
|
@@ -372,8 +372,8 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
function ct(e, t, n, r) {
|
|
375
|
-
var
|
|
376
|
-
const i = (
|
|
375
|
+
var a;
|
|
376
|
+
const i = (a = n[e]) == null ? void 0 : a.type;
|
|
377
377
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
378
378
|
return t;
|
|
379
379
|
if (r === "toAttribute")
|
|
@@ -401,38 +401,38 @@ function ct(e, t, n, r) {
|
|
|
401
401
|
return t;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
let l = class extends
|
|
404
|
+
function Dr(e, t, n, r, i, a) {
|
|
405
|
+
let l = class extends Un {
|
|
406
406
|
constructor() {
|
|
407
407
|
super(e, n, i), this.$$p_d = t;
|
|
408
408
|
}
|
|
409
409
|
static get observedAttributes() {
|
|
410
410
|
return Object.keys(t).map(
|
|
411
|
-
(
|
|
411
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
return Object.keys(t).forEach((
|
|
416
|
-
Object.defineProperty(l.prototype,
|
|
415
|
+
return Object.keys(t).forEach((o) => {
|
|
416
|
+
Object.defineProperty(l.prototype, o, {
|
|
417
417
|
get() {
|
|
418
|
-
return this.$$c &&
|
|
418
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
419
419
|
},
|
|
420
420
|
set(c) {
|
|
421
421
|
var u;
|
|
422
|
-
c = ct(
|
|
422
|
+
c = ct(o, c, t), this.$$d[o] = c, (u = this.$$c) == null || u.$set({ [o]: c });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
|
-
}), r.forEach((
|
|
426
|
-
Object.defineProperty(l.prototype,
|
|
425
|
+
}), r.forEach((o) => {
|
|
426
|
+
Object.defineProperty(l.prototype, o, {
|
|
427
427
|
get() {
|
|
428
428
|
var c;
|
|
429
|
-
return (c = this.$$c) == null ? void 0 : c[
|
|
429
|
+
return (c = this.$$c) == null ? void 0 : c[o];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), e.element = /** @type {any} */
|
|
433
433
|
l, l;
|
|
434
434
|
}
|
|
435
|
-
class
|
|
435
|
+
class Ur {
|
|
436
436
|
constructor() {
|
|
437
437
|
/**
|
|
438
438
|
* ### PRIVATE API
|
|
@@ -453,7 +453,7 @@ class Pr {
|
|
|
453
453
|
}
|
|
454
454
|
/** @returns {void} */
|
|
455
455
|
$destroy() {
|
|
456
|
-
|
|
456
|
+
Nr(this, 1), this.$destroy = le;
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,13 +475,13 @@ class Pr {
|
|
|
475
475
|
* @returns {void}
|
|
476
476
|
*/
|
|
477
477
|
$set(t) {
|
|
478
|
-
this.$$set && !
|
|
478
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
482
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
481
|
+
const Fr = "4";
|
|
482
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
483
483
|
const Ie = [];
|
|
484
|
-
function
|
|
484
|
+
function Gr(e, t) {
|
|
485
485
|
return {
|
|
486
486
|
subscribe: yt(e, t).subscribe
|
|
487
487
|
};
|
|
@@ -489,8 +489,8 @@ function Ur(e, t) {
|
|
|
489
489
|
function yt(e, t = le) {
|
|
490
490
|
let n;
|
|
491
491
|
const r = /* @__PURE__ */ new Set();
|
|
492
|
-
function i(
|
|
493
|
-
if (
|
|
492
|
+
function i(o) {
|
|
493
|
+
if (In(e, o) && (e = o, n)) {
|
|
494
494
|
const c = !Ie.length;
|
|
495
495
|
for (const u of r)
|
|
496
496
|
u[1](), Ie.push(u, e);
|
|
@@ -501,23 +501,23 @@ function yt(e, t = le) {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function o
|
|
505
|
-
i(
|
|
504
|
+
function a(o) {
|
|
505
|
+
i(o(e));
|
|
506
506
|
}
|
|
507
|
-
function l(
|
|
508
|
-
const u = [
|
|
509
|
-
return r.add(u), r.size === 1 && (n = t(i,
|
|
507
|
+
function l(o, c = le) {
|
|
508
|
+
const u = [o, c];
|
|
509
|
+
return r.add(u), r.size === 1 && (n = t(i, a) || le), o(e), () => {
|
|
510
510
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
return { set: i, update:
|
|
513
|
+
return { set: i, update: a, subscribe: l };
|
|
514
514
|
}
|
|
515
515
|
function ke(e, t, n) {
|
|
516
516
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
517
517
|
if (!i.every(Boolean))
|
|
518
518
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
519
|
-
const
|
|
520
|
-
return
|
|
519
|
+
const a = t.length < 2;
|
|
520
|
+
return Gr(n, (l, o) => {
|
|
521
521
|
let c = !1;
|
|
522
522
|
const u = [];
|
|
523
523
|
let d = 0, b = le;
|
|
@@ -525,10 +525,10 @@ function ke(e, t, n) {
|
|
|
525
525
|
if (d)
|
|
526
526
|
return;
|
|
527
527
|
b();
|
|
528
|
-
const _ = t(r ? u[0] : u, l,
|
|
529
|
-
|
|
528
|
+
const _ = t(r ? u[0] : u, l, o);
|
|
529
|
+
a ? l(_) : b = tn(_) ? _ : le;
|
|
530
530
|
}, T = i.map(
|
|
531
|
-
(_, H) =>
|
|
531
|
+
(_, H) => Pn(
|
|
532
532
|
_,
|
|
533
533
|
(B) => {
|
|
534
534
|
u[H] = B, d &= ~(1 << H), c && y();
|
|
@@ -543,71 +543,71 @@ function ke(e, t, n) {
|
|
|
543
543
|
};
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
-
var
|
|
547
|
-
function
|
|
546
|
+
var $r = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
547
|
+
function jr(e) {
|
|
548
548
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
549
549
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
550
|
+
var kr = function(t) {
|
|
551
|
+
return Vr(t) && !Xr(t);
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function Vr(e) {
|
|
554
554
|
return !!e && typeof e == "object";
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Xr(e) {
|
|
557
557
|
var t = Object.prototype.toString.call(e);
|
|
558
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
558
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
return e.$$typeof ===
|
|
560
|
+
var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
|
|
561
|
+
function Zr(e) {
|
|
562
|
+
return e.$$typeof === Wr;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function qr(e) {
|
|
565
565
|
return Array.isArray(e) ? [] : {};
|
|
566
566
|
}
|
|
567
567
|
function tt(e, t) {
|
|
568
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(
|
|
568
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(qr(e), e, t) : e;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Qr(e, t, n) {
|
|
571
571
|
return e.concat(t).map(function(r) {
|
|
572
572
|
return tt(r, n);
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Jr(e, t) {
|
|
576
576
|
if (!t.customMerge)
|
|
577
577
|
return Ue;
|
|
578
578
|
var n = t.customMerge(e);
|
|
579
579
|
return typeof n == "function" ? n : Ue;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Yr(e) {
|
|
582
582
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
583
583
|
return Object.propertyIsEnumerable.call(e, t);
|
|
584
584
|
}) : [];
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
return Object.keys(e).concat(
|
|
586
|
+
function dn(e) {
|
|
587
|
+
return Object.keys(e).concat(Yr(e));
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Fn(e, t) {
|
|
590
590
|
try {
|
|
591
591
|
return t in e;
|
|
592
592
|
} catch (n) {
|
|
593
593
|
return !1;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function Kr(e, t) {
|
|
597
|
+
return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function ei(e, t, n) {
|
|
600
600
|
var r = {};
|
|
601
|
-
return n.isMergeableObject(e) &&
|
|
601
|
+
return n.isMergeableObject(e) && dn(e).forEach(function(i) {
|
|
602
602
|
r[i] = tt(e[i], n);
|
|
603
|
-
}),
|
|
604
|
-
|
|
603
|
+
}), dn(t).forEach(function(i) {
|
|
604
|
+
Kr(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Jr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
|
|
605
605
|
}), r;
|
|
606
606
|
}
|
|
607
607
|
function Ue(e, t, n) {
|
|
608
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
609
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
610
|
-
return
|
|
608
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Qr, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = tt;
|
|
609
|
+
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
610
|
+
return a ? r ? n.arrayMerge(e, t, n) : ei(e, t, n) : tt(t, n);
|
|
611
611
|
}
|
|
612
612
|
Ue.all = function(t, n) {
|
|
613
613
|
if (!Array.isArray(t))
|
|
@@ -616,8 +616,8 @@ Ue.all = function(t, n) {
|
|
|
616
616
|
return Ue(r, i, n);
|
|
617
617
|
}, {});
|
|
618
618
|
};
|
|
619
|
-
var
|
|
620
|
-
const
|
|
619
|
+
var ti = Ue, ni = ti;
|
|
620
|
+
const ri = /* @__PURE__ */ jr(ni);
|
|
621
621
|
var Xt = function(e, t) {
|
|
622
622
|
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
623
623
|
n.__proto__ = r;
|
|
@@ -638,12 +638,12 @@ var I = function() {
|
|
|
638
638
|
return I = Object.assign || function(t) {
|
|
639
639
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
640
640
|
n = arguments[r];
|
|
641
|
-
for (var
|
|
641
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
642
642
|
}
|
|
643
643
|
return t;
|
|
644
644
|
}, I.apply(this, arguments);
|
|
645
645
|
};
|
|
646
|
-
function
|
|
646
|
+
function ii(e, t) {
|
|
647
647
|
var n = {};
|
|
648
648
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
649
649
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -652,58 +652,60 @@ function ni(e, t) {
|
|
|
652
652
|
return n;
|
|
653
653
|
}
|
|
654
654
|
function Pt(e, t, n) {
|
|
655
|
-
if (n || arguments.length === 2) for (var r = 0, i = t.length,
|
|
656
|
-
(
|
|
657
|
-
return e.concat(
|
|
655
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
|
|
656
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
657
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
658
658
|
}
|
|
659
659
|
function Dt(e, t) {
|
|
660
|
-
var n = t && t.cache ? t.cache :
|
|
660
|
+
var n = t && t.cache ? t.cache : ci, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : oi;
|
|
661
661
|
return i(e, {
|
|
662
662
|
cache: n,
|
|
663
663
|
serializer: r
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function ai(e) {
|
|
667
667
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
var i =
|
|
671
|
-
return typeof
|
|
669
|
+
function Gn(e, t, n, r) {
|
|
670
|
+
var i = ai(r) ? r : n(r), a = t.get(i);
|
|
671
|
+
return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
675
|
-
return typeof
|
|
673
|
+
function $n(e, t, n) {
|
|
674
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
675
|
+
return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function nn(e, t, n, r, i) {
|
|
678
678
|
return n.bind(t, e, r, i);
|
|
679
679
|
}
|
|
680
680
|
function oi(e, t) {
|
|
681
|
-
var n = e.length === 1 ?
|
|
682
|
-
return
|
|
681
|
+
var n = e.length === 1 ? Gn : $n;
|
|
682
|
+
return nn(e, this, n, t.cache.create(), t.serializer);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
684
|
+
function si(e, t) {
|
|
685
|
+
return nn(e, this, $n, t.cache.create(), t.serializer);
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
function li(e, t) {
|
|
688
|
+
return nn(e, this, Gn, t.cache.create(), t.serializer);
|
|
689
|
+
}
|
|
690
|
+
var ui = function() {
|
|
688
691
|
return JSON.stringify(arguments);
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}()
|
|
701
|
-
), ui = {
|
|
692
|
+
};
|
|
693
|
+
function rn() {
|
|
694
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
695
|
+
}
|
|
696
|
+
rn.prototype.get = function(e) {
|
|
697
|
+
return this.cache[e];
|
|
698
|
+
};
|
|
699
|
+
rn.prototype.set = function(e, t) {
|
|
700
|
+
this.cache[e] = t;
|
|
701
|
+
};
|
|
702
|
+
var ci = {
|
|
702
703
|
create: function() {
|
|
703
|
-
return new
|
|
704
|
+
return new rn();
|
|
704
705
|
}
|
|
705
706
|
}, Ut = {
|
|
706
|
-
variadic:
|
|
707
|
+
variadic: si,
|
|
708
|
+
monadic: li
|
|
707
709
|
}, R;
|
|
708
710
|
(function(e) {
|
|
709
711
|
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";
|
|
@@ -716,43 +718,43 @@ var Fe;
|
|
|
716
718
|
(function(e) {
|
|
717
719
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
718
720
|
})(Fe || (Fe = {}));
|
|
719
|
-
function
|
|
721
|
+
function pn(e) {
|
|
720
722
|
return e.type === G.literal;
|
|
721
723
|
}
|
|
722
|
-
function
|
|
724
|
+
function hi(e) {
|
|
723
725
|
return e.type === G.argument;
|
|
724
726
|
}
|
|
725
|
-
function
|
|
727
|
+
function jn(e) {
|
|
726
728
|
return e.type === G.number;
|
|
727
729
|
}
|
|
728
|
-
function
|
|
730
|
+
function kn(e) {
|
|
729
731
|
return e.type === G.date;
|
|
730
732
|
}
|
|
731
|
-
function
|
|
733
|
+
function Vn(e) {
|
|
732
734
|
return e.type === G.time;
|
|
733
735
|
}
|
|
734
|
-
function
|
|
736
|
+
function Xn(e) {
|
|
735
737
|
return e.type === G.select;
|
|
736
738
|
}
|
|
737
|
-
function
|
|
739
|
+
function zn(e) {
|
|
738
740
|
return e.type === G.plural;
|
|
739
741
|
}
|
|
740
|
-
function
|
|
742
|
+
function fi(e) {
|
|
741
743
|
return e.type === G.pound;
|
|
742
744
|
}
|
|
743
|
-
function
|
|
745
|
+
function Wn(e) {
|
|
744
746
|
return e.type === G.tag;
|
|
745
747
|
}
|
|
746
|
-
function
|
|
748
|
+
function Zn(e) {
|
|
747
749
|
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
748
750
|
}
|
|
749
751
|
function zt(e) {
|
|
750
752
|
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
751
753
|
}
|
|
752
|
-
var
|
|
753
|
-
function
|
|
754
|
+
var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
|
|
755
|
+
function pi(e) {
|
|
754
756
|
var t = {};
|
|
755
|
-
return e.replace(
|
|
757
|
+
return e.replace(di, function(n) {
|
|
756
758
|
var r = n.length;
|
|
757
759
|
switch (n[0]) {
|
|
758
760
|
case "G":
|
|
@@ -841,36 +843,36 @@ function di(e) {
|
|
|
841
843
|
return "";
|
|
842
844
|
}), t;
|
|
843
845
|
}
|
|
844
|
-
var
|
|
845
|
-
function
|
|
846
|
+
var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
847
|
+
function gi(e) {
|
|
846
848
|
if (e.length === 0)
|
|
847
849
|
throw new Error("Number skeleton cannot be empty");
|
|
848
|
-
for (var t = e.split(
|
|
850
|
+
for (var t = e.split(mi).filter(function(y) {
|
|
849
851
|
return y.length > 0;
|
|
850
852
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
851
|
-
var
|
|
853
|
+
var a = i[r], l = a.split("/");
|
|
852
854
|
if (l.length === 0)
|
|
853
855
|
throw new Error("Invalid number skeleton");
|
|
854
|
-
for (var
|
|
856
|
+
for (var o = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
|
|
855
857
|
var b = d[u];
|
|
856
858
|
if (b.length === 0)
|
|
857
859
|
throw new Error("Invalid number skeleton");
|
|
858
860
|
}
|
|
859
|
-
n.push({ stem:
|
|
861
|
+
n.push({ stem: o, options: c });
|
|
860
862
|
}
|
|
861
863
|
return n;
|
|
862
864
|
}
|
|
863
|
-
function
|
|
865
|
+
function bi(e) {
|
|
864
866
|
return e.replace(/^(.*?)-/, "");
|
|
865
867
|
}
|
|
866
|
-
var
|
|
867
|
-
function
|
|
868
|
+
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
|
|
869
|
+
function gn(e) {
|
|
868
870
|
var t = {};
|
|
869
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
871
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
|
|
870
872
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
871
873
|
}), t;
|
|
872
874
|
}
|
|
873
|
-
function
|
|
875
|
+
function Yn(e) {
|
|
874
876
|
switch (e) {
|
|
875
877
|
case "sign-auto":
|
|
876
878
|
return {
|
|
@@ -910,7 +912,7 @@ function Qn(e) {
|
|
|
910
912
|
};
|
|
911
913
|
}
|
|
912
914
|
}
|
|
913
|
-
function
|
|
915
|
+
function vi(e) {
|
|
914
916
|
var t;
|
|
915
917
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
916
918
|
notation: "engineering"
|
|
@@ -918,17 +920,17 @@ function yi(e) {
|
|
|
918
920
|
notation: "scientific"
|
|
919
921
|
}, e = e.slice(1)), t) {
|
|
920
922
|
var n = e.slice(0, 2);
|
|
921
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
923
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
|
|
922
924
|
throw new Error("Malformed concise eng/scientific notation");
|
|
923
925
|
t.minimumIntegerDigits = e.length;
|
|
924
926
|
}
|
|
925
927
|
return t;
|
|
926
928
|
}
|
|
927
|
-
function
|
|
928
|
-
var t = {}, n =
|
|
929
|
+
function bn(e) {
|
|
930
|
+
var t = {}, n = Yn(e);
|
|
929
931
|
return n || t;
|
|
930
932
|
}
|
|
931
|
-
function
|
|
933
|
+
function Ei(e) {
|
|
932
934
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
933
935
|
var i = r[n];
|
|
934
936
|
switch (i.stem) {
|
|
@@ -952,7 +954,7 @@ function vi(e) {
|
|
|
952
954
|
continue;
|
|
953
955
|
case "measure-unit":
|
|
954
956
|
case "unit":
|
|
955
|
-
t.style = "unit", t.unit =
|
|
957
|
+
t.style = "unit", t.unit = bi(i.options[0]);
|
|
956
958
|
continue;
|
|
957
959
|
case "compact-short":
|
|
958
960
|
case "K":
|
|
@@ -964,12 +966,12 @@ function vi(e) {
|
|
|
964
966
|
continue;
|
|
965
967
|
case "scientific":
|
|
966
968
|
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
967
|
-
return I(I({}, c),
|
|
969
|
+
return I(I({}, c), bn(u));
|
|
968
970
|
}, {}));
|
|
969
971
|
continue;
|
|
970
972
|
case "engineering":
|
|
971
973
|
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
972
|
-
return I(I({}, c),
|
|
974
|
+
return I(I({}, c), bn(u));
|
|
973
975
|
}, {}));
|
|
974
976
|
continue;
|
|
975
977
|
case "notation-simple":
|
|
@@ -1014,7 +1016,7 @@ function vi(e) {
|
|
|
1014
1016
|
case "integer-width":
|
|
1015
1017
|
if (i.options.length > 1)
|
|
1016
1018
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1017
|
-
i.options[0].replace(
|
|
1019
|
+
i.options[0].replace(yi, function(c, u, d, b, y, T) {
|
|
1018
1020
|
if (u)
|
|
1019
1021
|
t.minimumIntegerDigits = d.length;
|
|
1020
1022
|
else {
|
|
@@ -1027,28 +1029,28 @@ function vi(e) {
|
|
|
1027
1029
|
});
|
|
1028
1030
|
continue;
|
|
1029
1031
|
}
|
|
1030
|
-
if (
|
|
1032
|
+
if (Jn.test(i.stem)) {
|
|
1031
1033
|
t.minimumIntegerDigits = i.stem.length;
|
|
1032
1034
|
continue;
|
|
1033
1035
|
}
|
|
1034
|
-
if (
|
|
1036
|
+
if (mn.test(i.stem)) {
|
|
1035
1037
|
if (i.options.length > 1)
|
|
1036
1038
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1037
|
-
i.stem.replace(
|
|
1039
|
+
i.stem.replace(mn, function(c, u, d, b, y, T) {
|
|
1038
1040
|
return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && T ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + T.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1039
1041
|
});
|
|
1040
|
-
var
|
|
1041
|
-
|
|
1042
|
+
var a = i.options[0];
|
|
1043
|
+
a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), gn(a)));
|
|
1042
1044
|
continue;
|
|
1043
1045
|
}
|
|
1044
|
-
if (
|
|
1045
|
-
t = I(I({}, t),
|
|
1046
|
+
if (Qn.test(i.stem)) {
|
|
1047
|
+
t = I(I({}, t), gn(i.stem));
|
|
1046
1048
|
continue;
|
|
1047
1049
|
}
|
|
1048
|
-
var l =
|
|
1050
|
+
var l = Yn(i.stem);
|
|
1049
1051
|
l && (t = I(I({}, t), l));
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1052
|
+
var o = vi(i.stem);
|
|
1053
|
+
o && (t = I(I({}, t), o));
|
|
1052
1054
|
}
|
|
1053
1055
|
return t;
|
|
1054
1056
|
}
|
|
@@ -2467,14 +2469,14 @@ var ut = {
|
|
|
2467
2469
|
"h"
|
|
2468
2470
|
]
|
|
2469
2471
|
};
|
|
2470
|
-
function
|
|
2472
|
+
function xi(e, t) {
|
|
2471
2473
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2472
2474
|
var i = e.charAt(r);
|
|
2473
2475
|
if (i === "j") {
|
|
2474
|
-
for (var
|
|
2475
|
-
|
|
2476
|
-
var l = 1 + (
|
|
2477
|
-
for ((u == "H" || u == "k") && (
|
|
2476
|
+
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2477
|
+
a++, r++;
|
|
2478
|
+
var l = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = _i(t);
|
|
2479
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2478
2480
|
n += c;
|
|
2479
2481
|
for (; l-- > 0; )
|
|
2480
2482
|
n = u + n;
|
|
@@ -2482,7 +2484,7 @@ function Ei(e, t) {
|
|
|
2482
2484
|
}
|
|
2483
2485
|
return n;
|
|
2484
2486
|
}
|
|
2485
|
-
function
|
|
2487
|
+
function _i(e) {
|
|
2486
2488
|
var t = e.hourCycle;
|
|
2487
2489
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2488
2490
|
e.hourCycles && // @ts-ignore
|
|
@@ -2504,20 +2506,20 @@ function xi(e) {
|
|
|
2504
2506
|
var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
|
|
2505
2507
|
return i[0];
|
|
2506
2508
|
}
|
|
2507
|
-
var Ft,
|
|
2509
|
+
var Ft, Bi = new RegExp("^".concat(qn.source, "*")), Ti = new RegExp("".concat(qn.source, "*$"));
|
|
2508
2510
|
function L(e, t) {
|
|
2509
2511
|
return { start: e, end: t };
|
|
2510
2512
|
}
|
|
2511
|
-
var
|
|
2513
|
+
var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Ri = !!Number.isSafeInteger, Li = Ri ? Number.isSafeInteger : function(e) {
|
|
2512
2514
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2513
2515
|
}, Wt = !0;
|
|
2514
2516
|
try {
|
|
2515
|
-
var
|
|
2516
|
-
Wt = ((Ft =
|
|
2517
|
+
var Mi = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2518
|
+
Wt = ((Ft = Mi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
|
|
2517
2519
|
} catch (e) {
|
|
2518
2520
|
Wt = !1;
|
|
2519
2521
|
}
|
|
2520
|
-
var
|
|
2522
|
+
var yn = wi ? (
|
|
2521
2523
|
// Native
|
|
2522
2524
|
function(t, n, r) {
|
|
2523
2525
|
return t.startsWith(n, r);
|
|
@@ -2527,31 +2529,31 @@ var gn = Ti ? (
|
|
|
2527
2529
|
function(t, n, r) {
|
|
2528
2530
|
return t.slice(r, r + n.length) === n;
|
|
2529
2531
|
}
|
|
2530
|
-
), Zt =
|
|
2532
|
+
), Zt = Si ? String.fromCodePoint : (
|
|
2531
2533
|
// IE11
|
|
2532
2534
|
function() {
|
|
2533
2535
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2534
2536
|
t[n] = arguments[n];
|
|
2535
|
-
for (var r = "", i = t.length,
|
|
2536
|
-
if (l = t[
|
|
2537
|
+
for (var r = "", i = t.length, a = 0, l; i > a; ) {
|
|
2538
|
+
if (l = t[a++], l > 1114111)
|
|
2537
2539
|
throw RangeError(l + " is not a valid code point");
|
|
2538
2540
|
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2539
2541
|
}
|
|
2540
2542
|
return r;
|
|
2541
2543
|
}
|
|
2542
|
-
),
|
|
2544
|
+
), vn = (
|
|
2543
2545
|
// native
|
|
2544
|
-
|
|
2546
|
+
Ai ? Object.fromEntries : (
|
|
2545
2547
|
// Ponyfill
|
|
2546
2548
|
function(t) {
|
|
2547
2549
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2548
|
-
var
|
|
2549
|
-
n[l] =
|
|
2550
|
+
var a = i[r], l = a[0], o = a[1];
|
|
2551
|
+
n[l] = o;
|
|
2550
2552
|
}
|
|
2551
2553
|
return n;
|
|
2552
2554
|
}
|
|
2553
2555
|
)
|
|
2554
|
-
),
|
|
2556
|
+
), Kn = Ci ? (
|
|
2555
2557
|
// Native
|
|
2556
2558
|
function(t, n) {
|
|
2557
2559
|
return t.codePointAt(n);
|
|
@@ -2561,11 +2563,11 @@ var gn = Ti ? (
|
|
|
2561
2563
|
function(t, n) {
|
|
2562
2564
|
var r = t.length;
|
|
2563
2565
|
if (!(n < 0 || n >= r)) {
|
|
2564
|
-
var i = t.charCodeAt(n),
|
|
2565
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2566
|
+
var i = t.charCodeAt(n), a;
|
|
2567
|
+
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2566
2568
|
}
|
|
2567
2569
|
}
|
|
2568
|
-
),
|
|
2570
|
+
), Ni = Hi ? (
|
|
2569
2571
|
// Native
|
|
2570
2572
|
function(t) {
|
|
2571
2573
|
return t.trimStart();
|
|
@@ -2573,9 +2575,9 @@ var gn = Ti ? (
|
|
|
2573
2575
|
) : (
|
|
2574
2576
|
// Ponyfill
|
|
2575
2577
|
function(t) {
|
|
2576
|
-
return t.replace(
|
|
2578
|
+
return t.replace(Bi, "");
|
|
2577
2579
|
}
|
|
2578
|
-
),
|
|
2580
|
+
), Ii = Oi ? (
|
|
2579
2581
|
// Native
|
|
2580
2582
|
function(t) {
|
|
2581
2583
|
return t.trimEnd();
|
|
@@ -2583,32 +2585,32 @@ var gn = Ti ? (
|
|
|
2583
2585
|
) : (
|
|
2584
2586
|
// Ponyfill
|
|
2585
2587
|
function(t) {
|
|
2586
|
-
return t.replace(
|
|
2588
|
+
return t.replace(Ti, "");
|
|
2587
2589
|
}
|
|
2588
2590
|
);
|
|
2589
|
-
function
|
|
2591
|
+
function er(e, t) {
|
|
2590
2592
|
return new RegExp(e, t);
|
|
2591
2593
|
}
|
|
2592
2594
|
var qt;
|
|
2593
2595
|
if (Wt) {
|
|
2594
|
-
var
|
|
2596
|
+
var En = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2595
2597
|
qt = function(t, n) {
|
|
2596
2598
|
var r;
|
|
2597
|
-
|
|
2598
|
-
var i =
|
|
2599
|
+
En.lastIndex = n;
|
|
2600
|
+
var i = En.exec(t);
|
|
2599
2601
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2600
2602
|
};
|
|
2601
2603
|
} else
|
|
2602
2604
|
qt = function(t, n) {
|
|
2603
2605
|
for (var r = []; ; ) {
|
|
2604
|
-
var i =
|
|
2605
|
-
if (i === void 0 ||
|
|
2606
|
+
var i = Kn(t, n);
|
|
2607
|
+
if (i === void 0 || tr(i) || Fi(i))
|
|
2606
2608
|
break;
|
|
2607
2609
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2608
2610
|
}
|
|
2609
2611
|
return Zt.apply(void 0, r);
|
|
2610
2612
|
};
|
|
2611
|
-
var
|
|
2613
|
+
var Pi = (
|
|
2612
2614
|
/** @class */
|
|
2613
2615
|
function() {
|
|
2614
2616
|
function e(t, n) {
|
|
@@ -2620,26 +2622,26 @@ var Ii = (
|
|
|
2620
2622
|
return this.parseMessage(0, "", !1);
|
|
2621
2623
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2622
2624
|
for (var i = []; !this.isEOF(); ) {
|
|
2623
|
-
var
|
|
2624
|
-
if (
|
|
2625
|
+
var a = this.char();
|
|
2626
|
+
if (a === 123) {
|
|
2625
2627
|
var l = this.parseArgument(t, r);
|
|
2626
2628
|
if (l.err)
|
|
2627
2629
|
return l;
|
|
2628
2630
|
i.push(l.val);
|
|
2629
2631
|
} else {
|
|
2630
|
-
if (
|
|
2632
|
+
if (a === 125 && t > 0)
|
|
2631
2633
|
break;
|
|
2632
|
-
if (
|
|
2633
|
-
var
|
|
2634
|
+
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2635
|
+
var o = this.clonePosition();
|
|
2634
2636
|
this.bump(), i.push({
|
|
2635
2637
|
type: G.pound,
|
|
2636
|
-
location: L(
|
|
2638
|
+
location: L(o, this.clonePosition())
|
|
2637
2639
|
});
|
|
2638
|
-
} else if (
|
|
2640
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2639
2641
|
if (r)
|
|
2640
2642
|
break;
|
|
2641
2643
|
return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2642
|
-
} else if (
|
|
2644
|
+
} else if (a === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
|
|
2643
2645
|
var l = this.parseTag(t, n);
|
|
2644
2646
|
if (l.err)
|
|
2645
2647
|
return l;
|
|
@@ -2667,13 +2669,13 @@ var Ii = (
|
|
|
2667
2669
|
err: null
|
|
2668
2670
|
};
|
|
2669
2671
|
if (this.bumpIf(">")) {
|
|
2670
|
-
var
|
|
2671
|
-
if (
|
|
2672
|
-
return
|
|
2673
|
-
var l =
|
|
2672
|
+
var a = this.parseMessage(t + 1, n, !0);
|
|
2673
|
+
if (a.err)
|
|
2674
|
+
return a;
|
|
2675
|
+
var l = a.val, o = this.clonePosition();
|
|
2674
2676
|
if (this.bumpIf("</")) {
|
|
2675
2677
|
if (this.isEOF() || !Qt(this.char()))
|
|
2676
|
-
return this.error(R.INVALID_TAG, L(
|
|
2678
|
+
return this.error(R.INVALID_TAG, L(o, this.clonePosition()));
|
|
2677
2679
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2678
2680
|
return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2679
2681
|
val: {
|
|
@@ -2683,21 +2685,21 @@ var Ii = (
|
|
|
2683
2685
|
location: L(r, this.clonePosition())
|
|
2684
2686
|
},
|
|
2685
2687
|
err: null
|
|
2686
|
-
} : this.error(R.INVALID_TAG, L(
|
|
2688
|
+
} : this.error(R.INVALID_TAG, L(o, this.clonePosition())));
|
|
2687
2689
|
} else
|
|
2688
2690
|
return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2689
2691
|
} else
|
|
2690
2692
|
return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
|
|
2691
2693
|
}, e.prototype.parseTagName = function() {
|
|
2692
2694
|
var t = this.offset();
|
|
2693
|
-
for (this.bump(); !this.isEOF() &&
|
|
2695
|
+
for (this.bump(); !this.isEOF() && Ui(this.char()); )
|
|
2694
2696
|
this.bump();
|
|
2695
2697
|
return this.message.slice(t, this.offset());
|
|
2696
2698
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2697
2699
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2698
|
-
var
|
|
2699
|
-
if (
|
|
2700
|
-
i +=
|
|
2700
|
+
var a = this.tryParseQuote(n);
|
|
2701
|
+
if (a) {
|
|
2702
|
+
i += a;
|
|
2701
2703
|
continue;
|
|
2702
2704
|
}
|
|
2703
2705
|
var l = this.tryParseUnquoted(t, n);
|
|
@@ -2705,9 +2707,9 @@ var Ii = (
|
|
|
2705
2707
|
i += l;
|
|
2706
2708
|
continue;
|
|
2707
2709
|
}
|
|
2708
|
-
var
|
|
2709
|
-
if (
|
|
2710
|
-
i +=
|
|
2710
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2711
|
+
if (o) {
|
|
2712
|
+
i += o;
|
|
2711
2713
|
continue;
|
|
2712
2714
|
}
|
|
2713
2715
|
break;
|
|
@@ -2719,7 +2721,7 @@ var Ii = (
|
|
|
2719
2721
|
};
|
|
2720
2722
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2721
2723
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2722
|
-
!
|
|
2724
|
+
!Di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2723
2725
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2724
2726
|
if (this.isEOF() || this.char() !== 39)
|
|
2725
2727
|
return null;
|
|
@@ -2789,11 +2791,11 @@ var Ii = (
|
|
|
2789
2791
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2790
2792
|
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2791
2793
|
this.bumpTo(i);
|
|
2792
|
-
var
|
|
2794
|
+
var a = this.clonePosition(), l = L(t, a);
|
|
2793
2795
|
return { value: r, location: l };
|
|
2794
2796
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2795
|
-
var
|
|
2796
|
-
switch (
|
|
2797
|
+
var a, l = this.clonePosition(), o = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2798
|
+
switch (o) {
|
|
2797
2799
|
case "":
|
|
2798
2800
|
return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, c));
|
|
2799
2801
|
case "number":
|
|
@@ -2806,7 +2808,7 @@ var Ii = (
|
|
|
2806
2808
|
var d = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2807
2809
|
if (b.err)
|
|
2808
2810
|
return b;
|
|
2809
|
-
var y =
|
|
2811
|
+
var y = Ii(b.val);
|
|
2810
2812
|
if (y.length === 0)
|
|
2811
2813
|
return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2812
2814
|
var T = L(d, this.clonePosition());
|
|
@@ -2816,9 +2818,9 @@ var Ii = (
|
|
|
2816
2818
|
if (_.err)
|
|
2817
2819
|
return _;
|
|
2818
2820
|
var H = L(i, this.clonePosition());
|
|
2819
|
-
if (u &&
|
|
2820
|
-
var B =
|
|
2821
|
-
if (
|
|
2821
|
+
if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2822
|
+
var B = Ni(u.style.slice(2));
|
|
2823
|
+
if (o === "number") {
|
|
2822
2824
|
var b = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
2823
2825
|
return b.err ? b : {
|
|
2824
2826
|
val: { type: G.number, value: r, location: H, style: b.val },
|
|
@@ -2828,13 +2830,13 @@ var Ii = (
|
|
|
2828
2830
|
if (B.length === 0)
|
|
2829
2831
|
return this.error(R.EXPECT_DATE_TIME_SKELETON, H);
|
|
2830
2832
|
var A = B;
|
|
2831
|
-
this.locale && (A =
|
|
2833
|
+
this.locale && (A = xi(B, this.locale));
|
|
2832
2834
|
var y = {
|
|
2833
2835
|
type: Fe.dateTime,
|
|
2834
2836
|
pattern: A,
|
|
2835
2837
|
location: u.styleLocation,
|
|
2836
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2837
|
-
}, P =
|
|
2838
|
+
parsedOptions: this.shouldParseSkeletons ? pi(A) : {}
|
|
2839
|
+
}, P = o === "date" ? G.date : G.time;
|
|
2838
2840
|
return {
|
|
2839
2841
|
val: { type: P, value: r, location: H, style: y },
|
|
2840
2842
|
err: null
|
|
@@ -2843,10 +2845,10 @@ var Ii = (
|
|
|
2843
2845
|
}
|
|
2844
2846
|
return {
|
|
2845
2847
|
val: {
|
|
2846
|
-
type:
|
|
2848
|
+
type: o === "number" ? G.number : o === "date" ? G.date : G.time,
|
|
2847
2849
|
value: r,
|
|
2848
2850
|
location: H,
|
|
2849
|
-
style: (
|
|
2851
|
+
style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
|
|
2850
2852
|
},
|
|
2851
2853
|
err: null
|
|
2852
2854
|
};
|
|
@@ -2859,7 +2861,7 @@ var Ii = (
|
|
|
2859
2861
|
return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
|
|
2860
2862
|
this.bumpSpace();
|
|
2861
2863
|
var k = this.parseIdentifierIfPossible(), X = 0;
|
|
2862
|
-
if (
|
|
2864
|
+
if (o !== "select" && k.value === "offset") {
|
|
2863
2865
|
if (!this.bumpIf(":"))
|
|
2864
2866
|
return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2865
2867
|
this.bumpSpace();
|
|
@@ -2868,18 +2870,18 @@ var Ii = (
|
|
|
2868
2870
|
return b;
|
|
2869
2871
|
this.bumpSpace(), k = this.parseIdentifierIfPossible(), X = b.val;
|
|
2870
2872
|
}
|
|
2871
|
-
var ne = this.tryParsePluralOrSelectOptions(t,
|
|
2873
|
+
var ne = this.tryParsePluralOrSelectOptions(t, o, n, k);
|
|
2872
2874
|
if (ne.err)
|
|
2873
2875
|
return ne;
|
|
2874
2876
|
var _ = this.tryParseArgumentClose(i);
|
|
2875
2877
|
if (_.err)
|
|
2876
2878
|
return _;
|
|
2877
2879
|
var W = L(i, this.clonePosition());
|
|
2878
|
-
return
|
|
2880
|
+
return o === "select" ? {
|
|
2879
2881
|
val: {
|
|
2880
2882
|
type: G.select,
|
|
2881
2883
|
value: r,
|
|
2882
|
-
options:
|
|
2884
|
+
options: vn(ne.val),
|
|
2883
2885
|
location: W
|
|
2884
2886
|
},
|
|
2885
2887
|
err: null
|
|
@@ -2887,9 +2889,9 @@ var Ii = (
|
|
|
2887
2889
|
val: {
|
|
2888
2890
|
type: G.plural,
|
|
2889
2891
|
value: r,
|
|
2890
|
-
options:
|
|
2892
|
+
options: vn(ne.val),
|
|
2891
2893
|
offset: X,
|
|
2892
|
-
pluralType:
|
|
2894
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2893
2895
|
location: W
|
|
2894
2896
|
},
|
|
2895
2897
|
err: null
|
|
@@ -2938,7 +2940,7 @@ var Ii = (
|
|
|
2938
2940
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2939
2941
|
var r = [];
|
|
2940
2942
|
try {
|
|
2941
|
-
r =
|
|
2943
|
+
r = gi(t);
|
|
2942
2944
|
} catch (i) {
|
|
2943
2945
|
return this.error(R.INVALID_NUMBER_SKELETON, n);
|
|
2944
2946
|
}
|
|
@@ -2947,12 +2949,12 @@ var Ii = (
|
|
|
2947
2949
|
type: Fe.number,
|
|
2948
2950
|
tokens: r,
|
|
2949
2951
|
location: n,
|
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2952
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
|
|
2951
2953
|
},
|
|
2952
2954
|
err: null
|
|
2953
2955
|
};
|
|
2954
2956
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2955
|
-
for (var
|
|
2957
|
+
for (var a, l = !1, o = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
2956
2958
|
if (u.length === 0) {
|
|
2957
2959
|
var b = this.clonePosition();
|
|
2958
2960
|
if (n !== "select" && this.bumpIf("=")) {
|
|
@@ -2975,27 +2977,27 @@ var Ii = (
|
|
|
2975
2977
|
var H = this.tryParseArgumentClose(T);
|
|
2976
2978
|
if (H.err)
|
|
2977
2979
|
return H;
|
|
2978
|
-
|
|
2980
|
+
o.push([
|
|
2979
2981
|
u,
|
|
2980
2982
|
{
|
|
2981
2983
|
value: _.val,
|
|
2982
2984
|
location: L(T, this.clonePosition())
|
|
2983
2985
|
}
|
|
2984
|
-
]), c.add(u), this.bumpSpace(),
|
|
2986
|
+
]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
|
|
2985
2987
|
}
|
|
2986
|
-
return
|
|
2988
|
+
return o.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2987
2989
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2988
2990
|
var r = 1, i = this.clonePosition();
|
|
2989
2991
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
2990
|
-
for (var
|
|
2991
|
-
var
|
|
2992
|
-
if (
|
|
2993
|
-
|
|
2992
|
+
for (var a = !1, l = 0; !this.isEOF(); ) {
|
|
2993
|
+
var o = this.char();
|
|
2994
|
+
if (o >= 48 && o <= 57)
|
|
2995
|
+
a = !0, l = l * 10 + (o - 48), this.bump();
|
|
2994
2996
|
else
|
|
2995
2997
|
break;
|
|
2996
2998
|
}
|
|
2997
2999
|
var c = L(i, this.clonePosition());
|
|
2998
|
-
return
|
|
3000
|
+
return a ? (l *= r, Li(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
2999
3001
|
}, e.prototype.offset = function() {
|
|
3000
3002
|
return this.position.offset;
|
|
3001
3003
|
}, e.prototype.isEOF = function() {
|
|
@@ -3010,7 +3012,7 @@ var Ii = (
|
|
|
3010
3012
|
var t = this.position.offset;
|
|
3011
3013
|
if (t >= this.message.length)
|
|
3012
3014
|
throw Error("out of bound");
|
|
3013
|
-
var n =
|
|
3015
|
+
var n = Kn(this.message, t);
|
|
3014
3016
|
if (n === void 0)
|
|
3015
3017
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3016
3018
|
return n;
|
|
@@ -3029,7 +3031,7 @@ var Ii = (
|
|
|
3029
3031
|
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);
|
|
3030
3032
|
}
|
|
3031
3033
|
}, e.prototype.bumpIf = function(t) {
|
|
3032
|
-
if (
|
|
3034
|
+
if (yn(this.message, t, this.offset())) {
|
|
3033
3035
|
for (var n = 0; n < t.length; n++)
|
|
3034
3036
|
this.bump();
|
|
3035
3037
|
return !0;
|
|
@@ -3051,7 +3053,7 @@ var Ii = (
|
|
|
3051
3053
|
break;
|
|
3052
3054
|
}
|
|
3053
3055
|
}, e.prototype.bumpSpace = function() {
|
|
3054
|
-
for (; !this.isEOF() &&
|
|
3056
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3055
3057
|
this.bump();
|
|
3056
3058
|
}, e.prototype.peek = function() {
|
|
3057
3059
|
if (this.isEOF())
|
|
@@ -3064,29 +3066,29 @@ var Ii = (
|
|
|
3064
3066
|
function Qt(e) {
|
|
3065
3067
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3066
3068
|
}
|
|
3067
|
-
function
|
|
3069
|
+
function Di(e) {
|
|
3068
3070
|
return Qt(e) || e === 47;
|
|
3069
3071
|
}
|
|
3070
|
-
function
|
|
3072
|
+
function Ui(e) {
|
|
3071
3073
|
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;
|
|
3072
3074
|
}
|
|
3073
|
-
function
|
|
3075
|
+
function tr(e) {
|
|
3074
3076
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3075
3077
|
}
|
|
3076
|
-
function
|
|
3078
|
+
function Fi(e) {
|
|
3077
3079
|
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;
|
|
3078
3080
|
}
|
|
3079
3081
|
function Jt(e) {
|
|
3080
3082
|
e.forEach(function(t) {
|
|
3081
|
-
if (delete t.location,
|
|
3083
|
+
if (delete t.location, Xn(t) || zn(t))
|
|
3082
3084
|
for (var n in t.options)
|
|
3083
3085
|
delete t.options[n].location, Jt(t.options[n].value);
|
|
3084
|
-
else
|
|
3086
|
+
else jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && zt(t.style) ? delete t.style.location : Wn(t) && Jt(t.children);
|
|
3085
3087
|
});
|
|
3086
3088
|
}
|
|
3087
|
-
function
|
|
3089
|
+
function Gi(e, t) {
|
|
3088
3090
|
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3089
|
-
var n = new
|
|
3091
|
+
var n = new Pi(e, t).parse();
|
|
3090
3092
|
if (n.err) {
|
|
3091
3093
|
var r = SyntaxError(R[n.err.kind]);
|
|
3092
3094
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
@@ -3102,23 +3104,23 @@ var Et = (
|
|
|
3102
3104
|
function(e) {
|
|
3103
3105
|
vt(t, e);
|
|
3104
3106
|
function t(n, r, i) {
|
|
3105
|
-
var
|
|
3106
|
-
return
|
|
3107
|
+
var a = e.call(this, n) || this;
|
|
3108
|
+
return a.code = r, a.originalMessage = i, a;
|
|
3107
3109
|
}
|
|
3108
3110
|
return t.prototype.toString = function() {
|
|
3109
3111
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3110
3112
|
}, t;
|
|
3111
3113
|
}(Error)
|
|
3112
|
-
),
|
|
3114
|
+
), xn = (
|
|
3113
3115
|
/** @class */
|
|
3114
3116
|
function(e) {
|
|
3115
3117
|
vt(t, e);
|
|
3116
|
-
function t(n, r, i,
|
|
3117
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE,
|
|
3118
|
+
function t(n, r, i, a) {
|
|
3119
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, a) || this;
|
|
3118
3120
|
}
|
|
3119
3121
|
return t;
|
|
3120
3122
|
}(Et)
|
|
3121
|
-
),
|
|
3123
|
+
), $i = (
|
|
3122
3124
|
/** @class */
|
|
3123
3125
|
function(e) {
|
|
3124
3126
|
vt(t, e);
|
|
@@ -3127,7 +3129,7 @@ var Et = (
|
|
|
3127
3129
|
}
|
|
3128
3130
|
return t;
|
|
3129
3131
|
}(Et)
|
|
3130
|
-
),
|
|
3132
|
+
), ji = (
|
|
3131
3133
|
/** @class */
|
|
3132
3134
|
function(e) {
|
|
3133
3135
|
vt(t, e);
|
|
@@ -3140,96 +3142,96 @@ var Et = (
|
|
|
3140
3142
|
(function(e) {
|
|
3141
3143
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3142
3144
|
})(te || (te = {}));
|
|
3143
|
-
function
|
|
3145
|
+
function ki(e) {
|
|
3144
3146
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3145
3147
|
var r = t[t.length - 1];
|
|
3146
3148
|
return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
|
|
3147
3149
|
}, []);
|
|
3148
3150
|
}
|
|
3149
|
-
function
|
|
3151
|
+
function Vi(e) {
|
|
3150
3152
|
return typeof e == "function";
|
|
3151
3153
|
}
|
|
3152
|
-
function ht(e, t, n, r, i,
|
|
3153
|
-
if (e.length === 1 &&
|
|
3154
|
+
function ht(e, t, n, r, i, a, l) {
|
|
3155
|
+
if (e.length === 1 && pn(e[0]))
|
|
3154
3156
|
return [
|
|
3155
3157
|
{
|
|
3156
3158
|
type: te.literal,
|
|
3157
3159
|
value: e[0].value
|
|
3158
3160
|
}
|
|
3159
3161
|
];
|
|
3160
|
-
for (var
|
|
3162
|
+
for (var o = [], c = 0, u = e; c < u.length; c++) {
|
|
3161
3163
|
var d = u[c];
|
|
3162
|
-
if (
|
|
3163
|
-
|
|
3164
|
+
if (pn(d)) {
|
|
3165
|
+
o.push({
|
|
3164
3166
|
type: te.literal,
|
|
3165
3167
|
value: d.value
|
|
3166
3168
|
});
|
|
3167
3169
|
continue;
|
|
3168
3170
|
}
|
|
3169
|
-
if (
|
|
3170
|
-
typeof
|
|
3171
|
+
if (fi(d)) {
|
|
3172
|
+
typeof a == "number" && o.push({
|
|
3171
3173
|
type: te.literal,
|
|
3172
|
-
value: n.getNumberFormat(t).format(
|
|
3174
|
+
value: n.getNumberFormat(t).format(a)
|
|
3173
3175
|
});
|
|
3174
3176
|
continue;
|
|
3175
3177
|
}
|
|
3176
3178
|
var b = d.value;
|
|
3177
3179
|
if (!(i && b in i))
|
|
3178
|
-
throw new
|
|
3180
|
+
throw new ji(b, l);
|
|
3179
3181
|
var y = i[b];
|
|
3180
|
-
if (
|
|
3181
|
-
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""),
|
|
3182
|
+
if (hi(d)) {
|
|
3183
|
+
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), o.push({
|
|
3182
3184
|
type: typeof y == "string" ? te.literal : te.object,
|
|
3183
3185
|
value: y
|
|
3184
3186
|
});
|
|
3185
3187
|
continue;
|
|
3186
3188
|
}
|
|
3187
|
-
if (
|
|
3189
|
+
if (kn(d)) {
|
|
3188
3190
|
var T = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
|
|
3189
|
-
|
|
3191
|
+
o.push({
|
|
3190
3192
|
type: te.literal,
|
|
3191
3193
|
value: n.getDateTimeFormat(t, T).format(y)
|
|
3192
3194
|
});
|
|
3193
3195
|
continue;
|
|
3194
3196
|
}
|
|
3195
|
-
if (
|
|
3197
|
+
if (Vn(d)) {
|
|
3196
3198
|
var T = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3197
|
-
|
|
3199
|
+
o.push({
|
|
3198
3200
|
type: te.literal,
|
|
3199
3201
|
value: n.getDateTimeFormat(t, T).format(y)
|
|
3200
3202
|
});
|
|
3201
3203
|
continue;
|
|
3202
3204
|
}
|
|
3203
|
-
if (
|
|
3204
|
-
var T = typeof d.style == "string" ? r.number[d.style] :
|
|
3205
|
-
T && T.scale && (y = y * (T.scale || 1)),
|
|
3205
|
+
if (jn(d)) {
|
|
3206
|
+
var T = typeof d.style == "string" ? r.number[d.style] : Zn(d.style) ? d.style.parsedOptions : void 0;
|
|
3207
|
+
T && T.scale && (y = y * (T.scale || 1)), o.push({
|
|
3206
3208
|
type: te.literal,
|
|
3207
3209
|
value: n.getNumberFormat(t, T).format(y)
|
|
3208
3210
|
});
|
|
3209
3211
|
continue;
|
|
3210
3212
|
}
|
|
3211
|
-
if (
|
|
3213
|
+
if (Wn(d)) {
|
|
3212
3214
|
var _ = d.children, H = d.value, B = i[H];
|
|
3213
|
-
if (!
|
|
3214
|
-
throw new
|
|
3215
|
-
var A = ht(_, t, n, r, i,
|
|
3215
|
+
if (!Vi(B))
|
|
3216
|
+
throw new $i(H, "function", l);
|
|
3217
|
+
var A = ht(_, t, n, r, i, a), P = B(A.map(function(X) {
|
|
3216
3218
|
return X.value;
|
|
3217
3219
|
}));
|
|
3218
|
-
Array.isArray(P) || (P = [P]),
|
|
3220
|
+
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(X) {
|
|
3219
3221
|
return {
|
|
3220
3222
|
type: typeof X == "string" ? te.literal : te.object,
|
|
3221
3223
|
value: X
|
|
3222
3224
|
};
|
|
3223
3225
|
}));
|
|
3224
3226
|
}
|
|
3225
|
-
if (
|
|
3227
|
+
if (Xn(d)) {
|
|
3226
3228
|
var O = d.options[y] || d.options.other;
|
|
3227
3229
|
if (!O)
|
|
3228
|
-
throw new
|
|
3229
|
-
|
|
3230
|
+
throw new xn(d.value, y, Object.keys(d.options), l);
|
|
3231
|
+
o.push.apply(o, ht(O.value, t, n, r, i));
|
|
3230
3232
|
continue;
|
|
3231
3233
|
}
|
|
3232
|
-
if (
|
|
3234
|
+
if (zn(d)) {
|
|
3233
3235
|
var O = d.options["=".concat(y)];
|
|
3234
3236
|
if (!O) {
|
|
3235
3237
|
if (!Intl.PluralRules)
|
|
@@ -3240,21 +3242,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3240
3242
|
O = d.options[k] || d.options.other;
|
|
3241
3243
|
}
|
|
3242
3244
|
if (!O)
|
|
3243
|
-
throw new
|
|
3244
|
-
|
|
3245
|
+
throw new xn(d.value, y, Object.keys(d.options), l);
|
|
3246
|
+
o.push.apply(o, ht(O.value, t, n, r, i, y - (d.offset || 0)));
|
|
3245
3247
|
continue;
|
|
3246
3248
|
}
|
|
3247
3249
|
}
|
|
3248
|
-
return
|
|
3250
|
+
return ki(o);
|
|
3249
3251
|
}
|
|
3250
|
-
function
|
|
3252
|
+
function Xi(e, t) {
|
|
3251
3253
|
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3252
3254
|
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3253
3255
|
}, {})) : e;
|
|
3254
3256
|
}
|
|
3255
|
-
function
|
|
3257
|
+
function zi(e, t) {
|
|
3256
3258
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3257
|
-
return n[r] =
|
|
3259
|
+
return n[r] = Xi(e[r], t[r]), n;
|
|
3258
3260
|
}, I({}, e)) : e;
|
|
3259
3261
|
}
|
|
3260
3262
|
function Gt(e) {
|
|
@@ -3271,7 +3273,7 @@ function Gt(e) {
|
|
|
3271
3273
|
}
|
|
3272
3274
|
};
|
|
3273
3275
|
}
|
|
3274
|
-
function
|
|
3276
|
+
function Wi(e) {
|
|
3275
3277
|
return e === void 0 && (e = {
|
|
3276
3278
|
number: {},
|
|
3277
3279
|
dateTime: {},
|
|
@@ -3303,18 +3305,18 @@ function zi(e) {
|
|
|
3303
3305
|
})
|
|
3304
3306
|
};
|
|
3305
3307
|
}
|
|
3306
|
-
var
|
|
3308
|
+
var Zi = (
|
|
3307
3309
|
/** @class */
|
|
3308
3310
|
function() {
|
|
3309
3311
|
function e(t, n, r, i) {
|
|
3310
3312
|
n === void 0 && (n = e.defaultLocale);
|
|
3311
|
-
var
|
|
3313
|
+
var a = this;
|
|
3312
3314
|
if (this.formatterCache = {
|
|
3313
3315
|
number: {},
|
|
3314
3316
|
dateTime: {},
|
|
3315
3317
|
pluralRules: {}
|
|
3316
3318
|
}, this.format = function(c) {
|
|
3317
|
-
var u =
|
|
3319
|
+
var u = a.formatToParts(c);
|
|
3318
3320
|
if (u.length === 1)
|
|
3319
3321
|
return u[0].value;
|
|
3320
3322
|
var d = u.reduce(function(b, y) {
|
|
@@ -3322,26 +3324,26 @@ var Wi = (
|
|
|
3322
3324
|
}, []);
|
|
3323
3325
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3324
3326
|
}, this.formatToParts = function(c) {
|
|
3325
|
-
return ht(
|
|
3327
|
+
return ht(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
|
|
3326
3328
|
}, this.resolvedOptions = function() {
|
|
3327
3329
|
var c;
|
|
3328
3330
|
return {
|
|
3329
|
-
locale: ((c =
|
|
3331
|
+
locale: ((c = a.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3330
3332
|
};
|
|
3331
3333
|
}, this.getAst = function() {
|
|
3332
|
-
return
|
|
3334
|
+
return a.ast;
|
|
3333
3335
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3334
3336
|
if (this.message = t, !e.__parse)
|
|
3335
3337
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3336
3338
|
var l = i || {};
|
|
3337
3339
|
l.formatters;
|
|
3338
|
-
var
|
|
3339
|
-
this.ast = e.__parse(t, I(I({},
|
|
3340
|
+
var o = ii(l, ["formatters"]);
|
|
3341
|
+
this.ast = e.__parse(t, I(I({}, o), { locale: this.resolvedLocale }));
|
|
3340
3342
|
} else
|
|
3341
3343
|
this.ast = t;
|
|
3342
3344
|
if (!Array.isArray(this.ast))
|
|
3343
3345
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3344
|
-
this.formats =
|
|
3346
|
+
this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
|
|
3345
3347
|
}
|
|
3346
3348
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3347
3349
|
get: function() {
|
|
@@ -3354,7 +3356,7 @@ var Wi = (
|
|
|
3354
3356
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3355
3357
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3356
3358
|
}
|
|
3357
|
-
}, e.__parse =
|
|
3359
|
+
}, e.__parse = Gi, e.formats = {
|
|
3358
3360
|
number: {
|
|
3359
3361
|
integer: {
|
|
3360
3362
|
maximumFractionDigits: 0
|
|
@@ -3415,7 +3417,7 @@ var Wi = (
|
|
|
3415
3417
|
}, e;
|
|
3416
3418
|
}()
|
|
3417
3419
|
);
|
|
3418
|
-
function
|
|
3420
|
+
function qi(e, t) {
|
|
3419
3421
|
if (t == null)
|
|
3420
3422
|
return;
|
|
3421
3423
|
if (t in e)
|
|
@@ -3425,9 +3427,9 @@ function Zi(e, t) {
|
|
|
3425
3427
|
for (let i = 0; i < n.length; i++)
|
|
3426
3428
|
if (typeof r == "object") {
|
|
3427
3429
|
if (i > 0) {
|
|
3428
|
-
const
|
|
3429
|
-
if (
|
|
3430
|
-
r = r[
|
|
3430
|
+
const a = n.slice(i, n.length).join(".");
|
|
3431
|
+
if (a in r) {
|
|
3432
|
+
r = r[a];
|
|
3431
3433
|
break;
|
|
3432
3434
|
}
|
|
3433
3435
|
}
|
|
@@ -3436,60 +3438,60 @@ function Zi(e, t) {
|
|
|
3436
3438
|
r = void 0;
|
|
3437
3439
|
return r;
|
|
3438
3440
|
}
|
|
3439
|
-
const Se = {},
|
|
3441
|
+
const Se = {}, Qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), nr = (e, t) => {
|
|
3440
3442
|
if (t == null)
|
|
3441
3443
|
return;
|
|
3442
3444
|
if (t in Se && e in Se[t])
|
|
3443
3445
|
return Se[t][e];
|
|
3444
3446
|
const n = xt(t);
|
|
3445
3447
|
for (let r = 0; r < n.length; r++) {
|
|
3446
|
-
const i = n[r],
|
|
3447
|
-
if (
|
|
3448
|
-
return
|
|
3448
|
+
const i = n[r], a = Yi(i, e);
|
|
3449
|
+
if (a)
|
|
3450
|
+
return Qi(e, t, a);
|
|
3449
3451
|
}
|
|
3450
3452
|
};
|
|
3451
|
-
let
|
|
3453
|
+
let an;
|
|
3452
3454
|
const rt = yt({});
|
|
3453
|
-
function
|
|
3454
|
-
return
|
|
3455
|
+
function Ji(e) {
|
|
3456
|
+
return an[e] || null;
|
|
3455
3457
|
}
|
|
3456
|
-
function
|
|
3457
|
-
return e in
|
|
3458
|
+
function rr(e) {
|
|
3459
|
+
return e in an;
|
|
3458
3460
|
}
|
|
3459
|
-
function
|
|
3460
|
-
if (!
|
|
3461
|
+
function Yi(e, t) {
|
|
3462
|
+
if (!rr(e))
|
|
3461
3463
|
return null;
|
|
3462
|
-
const n =
|
|
3463
|
-
return
|
|
3464
|
+
const n = Ji(e);
|
|
3465
|
+
return qi(n, t);
|
|
3464
3466
|
}
|
|
3465
|
-
function
|
|
3467
|
+
function Ki(e) {
|
|
3466
3468
|
if (e == null)
|
|
3467
3469
|
return;
|
|
3468
3470
|
const t = xt(e);
|
|
3469
3471
|
for (let n = 0; n < t.length; n++) {
|
|
3470
3472
|
const r = t[n];
|
|
3471
|
-
if (
|
|
3473
|
+
if (rr(r))
|
|
3472
3474
|
return r;
|
|
3473
3475
|
}
|
|
3474
3476
|
}
|
|
3475
|
-
function
|
|
3476
|
-
delete Se[e], rt.update((n) => (n[e] =
|
|
3477
|
+
function ir(e, ...t) {
|
|
3478
|
+
delete Se[e], rt.update((n) => (n[e] = ri.all([n[e] || {}, ...t]), n));
|
|
3477
3479
|
}
|
|
3478
3480
|
ke(
|
|
3479
3481
|
[rt],
|
|
3480
3482
|
([e]) => Object.keys(e)
|
|
3481
3483
|
);
|
|
3482
|
-
rt.subscribe((e) =>
|
|
3484
|
+
rt.subscribe((e) => an = e);
|
|
3483
3485
|
const ft = {};
|
|
3484
|
-
function
|
|
3486
|
+
function ea(e, t) {
|
|
3485
3487
|
ft[e].delete(t), ft[e].size === 0 && delete ft[e];
|
|
3486
3488
|
}
|
|
3487
|
-
function
|
|
3489
|
+
function ar(e) {
|
|
3488
3490
|
return ft[e];
|
|
3489
3491
|
}
|
|
3490
|
-
function
|
|
3492
|
+
function ta(e) {
|
|
3491
3493
|
return xt(e).map((t) => {
|
|
3492
|
-
const n =
|
|
3494
|
+
const n = ar(t);
|
|
3493
3495
|
return [t, n ? [...n] : []];
|
|
3494
3496
|
}).filter(([, t]) => t.length > 0);
|
|
3495
3497
|
}
|
|
@@ -3497,31 +3499,31 @@ function Yt(e) {
|
|
|
3497
3499
|
return e == null ? !1 : xt(e).some(
|
|
3498
3500
|
(t) => {
|
|
3499
3501
|
var n;
|
|
3500
|
-
return (n =
|
|
3502
|
+
return (n = ar(t)) == null ? void 0 : n.size;
|
|
3501
3503
|
}
|
|
3502
3504
|
);
|
|
3503
3505
|
}
|
|
3504
|
-
function
|
|
3506
|
+
function na(e, t) {
|
|
3505
3507
|
return Promise.all(
|
|
3506
|
-
t.map((r) => (
|
|
3507
|
-
).then((r) =>
|
|
3508
|
+
t.map((r) => (ea(e, r), r().then((i) => i.default || i)))
|
|
3509
|
+
).then((r) => ir(e, ...r));
|
|
3508
3510
|
}
|
|
3509
3511
|
const Ye = {};
|
|
3510
|
-
function
|
|
3512
|
+
function or(e) {
|
|
3511
3513
|
if (!Yt(e))
|
|
3512
3514
|
return e in Ye ? Ye[e] : Promise.resolve();
|
|
3513
|
-
const t =
|
|
3515
|
+
const t = ta(e);
|
|
3514
3516
|
return Ye[e] = Promise.all(
|
|
3515
3517
|
t.map(
|
|
3516
|
-
([n, r]) =>
|
|
3518
|
+
([n, r]) => na(n, r)
|
|
3517
3519
|
)
|
|
3518
3520
|
).then(() => {
|
|
3519
3521
|
if (Yt(e))
|
|
3520
|
-
return
|
|
3522
|
+
return or(e);
|
|
3521
3523
|
delete Ye[e];
|
|
3522
3524
|
}), Ye[e];
|
|
3523
3525
|
}
|
|
3524
|
-
const
|
|
3526
|
+
const ra = {
|
|
3525
3527
|
number: {
|
|
3526
3528
|
scientific: { notation: "scientific" },
|
|
3527
3529
|
engineering: { notation: "engineering" },
|
|
@@ -3550,34 +3552,34 @@ const no = {
|
|
|
3550
3552
|
timeZoneName: "short"
|
|
3551
3553
|
}
|
|
3552
3554
|
}
|
|
3553
|
-
},
|
|
3555
|
+
}, ia = {
|
|
3554
3556
|
fallbackLocale: null,
|
|
3555
3557
|
loadingDelay: 200,
|
|
3556
|
-
formats:
|
|
3558
|
+
formats: ra,
|
|
3557
3559
|
warnOnMissingMessages: !0,
|
|
3558
3560
|
handleMissingMessage: void 0,
|
|
3559
3561
|
ignoreTag: !0
|
|
3560
|
-
},
|
|
3562
|
+
}, aa = ia;
|
|
3561
3563
|
function $e() {
|
|
3562
|
-
return
|
|
3564
|
+
return aa;
|
|
3563
3565
|
}
|
|
3564
3566
|
const $t = yt(!1);
|
|
3565
|
-
var
|
|
3567
|
+
var oa = Object.defineProperty, sa = Object.defineProperties, la = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, ua = Object.prototype.hasOwnProperty, ca = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ha = (e, t) => {
|
|
3566
3568
|
for (var n in t || (t = {}))
|
|
3567
|
-
|
|
3568
|
-
if (
|
|
3569
|
-
for (var n of
|
|
3570
|
-
|
|
3569
|
+
ua.call(t, n) && Bn(e, n, t[n]);
|
|
3570
|
+
if (_n)
|
|
3571
|
+
for (var n of _n(t))
|
|
3572
|
+
ca.call(t, n) && Bn(e, n, t[n]);
|
|
3571
3573
|
return e;
|
|
3572
|
-
},
|
|
3574
|
+
}, fa = (e, t) => sa(e, la(t));
|
|
3573
3575
|
let Kt;
|
|
3574
3576
|
const gt = yt(null);
|
|
3575
|
-
function
|
|
3577
|
+
function Tn(e) {
|
|
3576
3578
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3577
3579
|
}
|
|
3578
3580
|
function xt(e, t = $e().fallbackLocale) {
|
|
3579
|
-
const n =
|
|
3580
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3581
|
+
const n = Tn(e);
|
|
3582
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
|
|
3581
3583
|
}
|
|
3582
3584
|
function He() {
|
|
3583
3585
|
return Kt != null ? Kt : void 0;
|
|
@@ -3585,22 +3587,22 @@ function He() {
|
|
|
3585
3587
|
gt.subscribe((e) => {
|
|
3586
3588
|
Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3587
3589
|
});
|
|
3588
|
-
const
|
|
3589
|
-
if (e &&
|
|
3590
|
+
const da = (e) => {
|
|
3591
|
+
if (e && Ki(e) && Yt(e)) {
|
|
3590
3592
|
const { loadingDelay: t } = $e();
|
|
3591
3593
|
let n;
|
|
3592
3594
|
return typeof window != "undefined" && He() != null && t ? n = window.setTimeout(
|
|
3593
3595
|
() => $t.set(!0),
|
|
3594
3596
|
t
|
|
3595
|
-
) : $t.set(!0),
|
|
3597
|
+
) : $t.set(!0), or(e).then(() => {
|
|
3596
3598
|
gt.set(e);
|
|
3597
3599
|
}).finally(() => {
|
|
3598
3600
|
clearTimeout(n), $t.set(!1);
|
|
3599
3601
|
});
|
|
3600
3602
|
}
|
|
3601
3603
|
return gt.set(e);
|
|
3602
|
-
}, Ve =
|
|
3603
|
-
set:
|
|
3604
|
+
}, Ve = fa(ha({}, gt), {
|
|
3605
|
+
set: da
|
|
3604
3606
|
}), _t = (e) => {
|
|
3605
3607
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3606
3608
|
return (r) => {
|
|
@@ -3608,20 +3610,20 @@ const fo = (e) => {
|
|
|
3608
3610
|
return i in t ? t[i] : t[i] = e(r);
|
|
3609
3611
|
};
|
|
3610
3612
|
};
|
|
3611
|
-
var
|
|
3613
|
+
var pa = Object.defineProperty, bt = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
|
|
3612
3614
|
for (var n in t || (t = {}))
|
|
3613
|
-
|
|
3615
|
+
sr.call(t, n) && wn(e, n, t[n]);
|
|
3614
3616
|
if (bt)
|
|
3615
3617
|
for (var n of bt(t))
|
|
3616
|
-
|
|
3618
|
+
lr.call(t, n) && wn(e, n, t[n]);
|
|
3617
3619
|
return e;
|
|
3618
3620
|
}, Xe = (e, t) => {
|
|
3619
3621
|
var n = {};
|
|
3620
3622
|
for (var r in e)
|
|
3621
|
-
|
|
3623
|
+
sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3622
3624
|
if (e != null && bt)
|
|
3623
3625
|
for (var r of bt(e))
|
|
3624
|
-
t.indexOf(r) < 0 &&
|
|
3626
|
+
t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
|
|
3625
3627
|
return n;
|
|
3626
3628
|
};
|
|
3627
3629
|
const nt = (e, t) => {
|
|
@@ -3629,21 +3631,21 @@ const nt = (e, t) => {
|
|
|
3629
3631
|
if (e in n && t in n[e])
|
|
3630
3632
|
return n[e][t];
|
|
3631
3633
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3632
|
-
},
|
|
3634
|
+
}, ma = _t(
|
|
3633
3635
|
(e) => {
|
|
3634
3636
|
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3635
3637
|
if (n == null)
|
|
3636
3638
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3637
3639
|
return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
|
|
3638
3640
|
}
|
|
3639
|
-
),
|
|
3641
|
+
), ga = _t(
|
|
3640
3642
|
(e) => {
|
|
3641
3643
|
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3642
3644
|
if (n == null)
|
|
3643
3645
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3644
3646
|
return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3645
3647
|
}
|
|
3646
|
-
),
|
|
3648
|
+
), ba = _t(
|
|
3647
3649
|
(e) => {
|
|
3648
3650
|
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3649
3651
|
if (n == null)
|
|
@@ -3652,38 +3654,38 @@ const nt = (e, t) => {
|
|
|
3652
3654
|
);
|
|
3653
3655
|
return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3654
3656
|
}
|
|
3655
|
-
),
|
|
3657
|
+
), ya = (e = {}) => {
|
|
3656
3658
|
var t = e, {
|
|
3657
3659
|
locale: n = He()
|
|
3658
3660
|
} = t, r = Xe(t, [
|
|
3659
3661
|
"locale"
|
|
3660
3662
|
]);
|
|
3661
|
-
return
|
|
3662
|
-
},
|
|
3663
|
+
return ma(on({ locale: n }, r));
|
|
3664
|
+
}, va = (e = {}) => {
|
|
3663
3665
|
var t = e, {
|
|
3664
3666
|
locale: n = He()
|
|
3665
3667
|
} = t, r = Xe(t, [
|
|
3666
3668
|
"locale"
|
|
3667
3669
|
]);
|
|
3668
|
-
return
|
|
3669
|
-
},
|
|
3670
|
+
return ga(on({ locale: n }, r));
|
|
3671
|
+
}, Ea = (e = {}) => {
|
|
3670
3672
|
var t = e, {
|
|
3671
3673
|
locale: n = He()
|
|
3672
3674
|
} = t, r = Xe(t, [
|
|
3673
3675
|
"locale"
|
|
3674
3676
|
]);
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3677
|
+
return ba(on({ locale: n }, r));
|
|
3678
|
+
}, xa = _t(
|
|
3677
3679
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3678
|
-
(e, t = He()) => new
|
|
3680
|
+
(e, t = He()) => new Zi(e, t, $e().formats, {
|
|
3679
3681
|
ignoreTag: $e().ignoreTag
|
|
3680
3682
|
})
|
|
3681
|
-
),
|
|
3682
|
-
var n, r, i,
|
|
3683
|
+
), _a = (e, t = {}) => {
|
|
3684
|
+
var n, r, i, a;
|
|
3683
3685
|
let l = t;
|
|
3684
3686
|
typeof e == "object" && (l = e, e = l.id);
|
|
3685
3687
|
const {
|
|
3686
|
-
values:
|
|
3688
|
+
values: o,
|
|
3687
3689
|
locale: c = He(),
|
|
3688
3690
|
default: u
|
|
3689
3691
|
} = l;
|
|
@@ -3691,18 +3693,18 @@ const nt = (e, t) => {
|
|
|
3691
3693
|
throw new Error(
|
|
3692
3694
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3693
3695
|
);
|
|
3694
|
-
let d =
|
|
3696
|
+
let d = nr(e, c);
|
|
3695
3697
|
if (!d)
|
|
3696
|
-
d = (
|
|
3698
|
+
d = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3697
3699
|
else if (typeof d != "string")
|
|
3698
3700
|
return console.warn(
|
|
3699
3701
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3700
3702
|
), d;
|
|
3701
|
-
if (!
|
|
3703
|
+
if (!o)
|
|
3702
3704
|
return d;
|
|
3703
3705
|
let b = d;
|
|
3704
3706
|
try {
|
|
3705
|
-
b =
|
|
3707
|
+
b = xa(d, c).format(o);
|
|
3706
3708
|
} catch (y) {
|
|
3707
3709
|
y instanceof Error && console.warn(
|
|
3708
3710
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3710,18 +3712,18 @@ const nt = (e, t) => {
|
|
|
3710
3712
|
);
|
|
3711
3713
|
}
|
|
3712
3714
|
return b;
|
|
3713
|
-
},
|
|
3714
|
-
ke([Ve], () =>
|
|
3715
|
-
ke([Ve], () =>
|
|
3716
|
-
ke([Ve], () =>
|
|
3717
|
-
ke([Ve, rt], () =>
|
|
3718
|
-
function
|
|
3719
|
-
|
|
3720
|
-
}
|
|
3721
|
-
function
|
|
3715
|
+
}, Ba = (e, t) => Ea(t).format(e), Ta = (e, t) => va(t).format(e), wa = (e, t) => ya(t).format(e), Sa = (e, t = He()) => nr(e, t), Aa = ke([Ve, rt], () => _a);
|
|
3716
|
+
ke([Ve], () => Ba);
|
|
3717
|
+
ke([Ve], () => Ta);
|
|
3718
|
+
ke([Ve], () => wa);
|
|
3719
|
+
ke([Ve, rt], () => Sa);
|
|
3720
|
+
function Sn(e, t) {
|
|
3721
|
+
ir(e, t);
|
|
3722
|
+
}
|
|
3723
|
+
function Ca(e) {
|
|
3722
3724
|
Ve.set(e);
|
|
3723
3725
|
}
|
|
3724
|
-
const
|
|
3726
|
+
const An = {
|
|
3725
3727
|
en: {
|
|
3726
3728
|
Title: "Your Balance",
|
|
3727
3729
|
Total: "Total Balance",
|
|
@@ -3929,11 +3931,11 @@ var en = { exports: {} };
|
|
|
3929
3931
|
*/
|
|
3930
3932
|
(function(e, t) {
|
|
3931
3933
|
(function(n) {
|
|
3932
|
-
var r = n.setTimeout, i = n.clearTimeout,
|
|
3934
|
+
var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, o = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, b = n.fetch, y = n.Response, T = n.TextDecoder, _ = n.TextEncoder, H = n.AbortController;
|
|
3933
3935
|
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
3934
3936
|
u.readyState = "complete";
|
|
3935
|
-
}, !1)),
|
|
3936
|
-
return new
|
|
3937
|
+
}, !1)), a == null && o != null && (a = function() {
|
|
3938
|
+
return new o("Microsoft.XMLHTTP");
|
|
3937
3939
|
}), Object.create == null && (Object.create = function(h) {
|
|
3938
3940
|
function s() {
|
|
3939
3941
|
}
|
|
@@ -4066,7 +4068,7 @@ var en = { exports: {} };
|
|
|
4066
4068
|
w("abort", S);
|
|
4067
4069
|
}), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(S) {
|
|
4068
4070
|
N(S);
|
|
4069
|
-
}), ("contentType" in f || !("ontimeout" in
|
|
4071
|
+
}), ("contentType" in f || !("ontimeout" in a.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(h, s, !0), "readyState" in f && (v = r(function() {
|
|
4070
4072
|
F();
|
|
4071
4073
|
}, 0));
|
|
4072
4074
|
}, k.prototype.abort = function() {
|
|
@@ -4079,7 +4081,7 @@ var en = { exports: {} };
|
|
|
4079
4081
|
}, k.prototype.getAllResponseHeaders = function() {
|
|
4080
4082
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4081
4083
|
}, k.prototype.send = function() {
|
|
4082
|
-
if ((!("ontimeout" in
|
|
4084
|
+
if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4083
4085
|
var h = this;
|
|
4084
4086
|
h._sendTimeout = r(function() {
|
|
4085
4087
|
h._sendTimeout = 0, h.send();
|
|
@@ -4109,7 +4111,7 @@ var en = { exports: {} };
|
|
|
4109
4111
|
}
|
|
4110
4112
|
ne.prototype.get = function(h) {
|
|
4111
4113
|
return this._map[X(h)];
|
|
4112
|
-
},
|
|
4114
|
+
}, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
|
|
4113
4115
|
function W() {
|
|
4114
4116
|
}
|
|
4115
4117
|
W.prototype.open = function(h, s, p, f, g, v, x) {
|
|
@@ -4125,7 +4127,7 @@ var en = { exports: {} };
|
|
|
4125
4127
|
}, h.onabort = function() {
|
|
4126
4128
|
f(null);
|
|
4127
4129
|
}, h.onreadystatechange = function() {
|
|
4128
|
-
if (h.readyState ===
|
|
4130
|
+
if (h.readyState === a.HEADERS_RECEIVED) {
|
|
4129
4131
|
var N = h.status, F = h.statusText, S = h.getResponseHeader("Content-Type"), j = h.getAllResponseHeaders();
|
|
4130
4132
|
s(N, F, S, new ne(j));
|
|
4131
4133
|
}
|
|
@@ -4227,7 +4229,7 @@ var en = { exports: {} };
|
|
|
4227
4229
|
J.call(this, h), this.error = s.error;
|
|
4228
4230
|
}
|
|
4229
4231
|
ze.prototype = Object.create(J.prototype);
|
|
4230
|
-
var We = -1, pe = 0, Te = 1, ye = 2, Oe = -1, me = 0, Ae = 1, Ze = 2, Bt = 3,
|
|
4232
|
+
var We = -1, pe = 0, Te = 1, ye = 2, Oe = -1, me = 0, Ae = 1, Ze = 2, Bt = 3, at = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, wt = 18e6, Re = function(h, s) {
|
|
4231
4233
|
var p = h == null ? s : parseInt(h, 10);
|
|
4232
4234
|
return p !== p && (p = s), qe(p);
|
|
4233
4235
|
}, qe = function(h) {
|
|
@@ -4243,44 +4245,44 @@ var en = { exports: {} };
|
|
|
4243
4245
|
V.call(this), s = s || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ct(this, h, s);
|
|
4244
4246
|
}
|
|
4245
4247
|
function St() {
|
|
4246
|
-
return
|
|
4248
|
+
return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
|
|
4247
4249
|
}
|
|
4248
4250
|
var At = b != null && y != null && "body" in y.prototype;
|
|
4249
4251
|
function Ct(h, s, p) {
|
|
4250
4252
|
s = String(s);
|
|
4251
|
-
var f = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", v = qe(1e3), x = Re(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, j = p.Transport, ve = At && j == null ? void 0 : new k(j != null ? new j() : St()), Qe = j != null && typeof j != "string" ? new j() : ve == null ? new D() : new W(), ie = void 0, Y = 0, ue = We, Le = "", st = "", Ee = "", lt = "", K = me, Ht = 0, Ce = 0,
|
|
4253
|
+
var f = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", v = qe(1e3), x = Re(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, j = p.Transport, ve = At && j == null ? void 0 : new k(j != null ? new j() : St()), Qe = j != null && typeof j != "string" ? new j() : ve == null ? new D() : new W(), ie = void 0, Y = 0, ue = We, Le = "", st = "", Ee = "", lt = "", K = me, Ht = 0, Ce = 0, cr = function(Z, z, ae, oe) {
|
|
4252
4254
|
if (ue === pe)
|
|
4253
|
-
if (Z === 200 &&
|
|
4255
|
+
if (Z === 200 && ae != null && at.test(ae)) {
|
|
4254
4256
|
ue = Te, N = Date.now(), w = v, h.readyState = Te;
|
|
4255
4257
|
var ee = new be("open", {
|
|
4256
4258
|
status: Z,
|
|
4257
4259
|
statusText: z,
|
|
4258
|
-
headers:
|
|
4260
|
+
headers: oe
|
|
4259
4261
|
});
|
|
4260
4262
|
h.dispatchEvent(ee), we(h, h.onopen, ee);
|
|
4261
4263
|
} else {
|
|
4262
4264
|
var q = "";
|
|
4263
|
-
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (
|
|
4265
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4264
4266
|
var ee = new be("error", {
|
|
4265
4267
|
status: Z,
|
|
4266
4268
|
statusText: z,
|
|
4267
|
-
headers:
|
|
4269
|
+
headers: oe
|
|
4268
4270
|
});
|
|
4269
4271
|
h.dispatchEvent(ee), we(h, h.onerror, ee), console.error(q);
|
|
4270
4272
|
}
|
|
4271
|
-
},
|
|
4273
|
+
}, hr = function(Z) {
|
|
4272
4274
|
if (ue === Te) {
|
|
4273
|
-
for (var z = -1,
|
|
4274
|
-
var
|
|
4275
|
-
(
|
|
4275
|
+
for (var z = -1, ae = 0; ae < Z.length; ae += 1) {
|
|
4276
|
+
var oe = Z.charCodeAt(ae);
|
|
4277
|
+
(oe === 10 || oe === 13) && (z = ae);
|
|
4276
4278
|
}
|
|
4277
4279
|
var ee = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
|
|
4278
4280
|
lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (N = Date.now(), F += Z.length);
|
|
4279
4281
|
for (var q = 0; q < ee.length; q += 1) {
|
|
4280
|
-
var
|
|
4281
|
-
if (K === Oe &&
|
|
4282
|
+
var oe = ee.charCodeAt(q);
|
|
4283
|
+
if (K === Oe && oe === 10)
|
|
4282
4284
|
K = me;
|
|
4283
|
-
else if (K === Oe && (K = me),
|
|
4285
|
+
else if (K === Oe && (K = me), oe === 13 || oe === 10) {
|
|
4284
4286
|
if (K !== me) {
|
|
4285
4287
|
K === Ae && (Ce = q + 1);
|
|
4286
4288
|
var xe = ee.slice(Ht, Ce - 1), _e = ee.slice(Ce + (Ce < q && ee.charCodeAt(Ce) === 32 ? 1 : 0), q);
|
|
@@ -4301,12 +4303,12 @@ var en = { exports: {} };
|
|
|
4301
4303
|
}
|
|
4302
4304
|
Le = "", Ee = "";
|
|
4303
4305
|
}
|
|
4304
|
-
K =
|
|
4306
|
+
K = oe === 13 ? Oe : me;
|
|
4305
4307
|
} else
|
|
4306
|
-
K === me && (Ht = q, K = Ae), K === Ae ?
|
|
4308
|
+
K === me && (Ht = q, K = Ae), K === Ae ? oe === 58 && (Ce = q + 1, K = Ze) : K === Ze && (K = Bt);
|
|
4307
4309
|
}
|
|
4308
4310
|
}
|
|
4309
|
-
},
|
|
4311
|
+
}, ln = function(Z) {
|
|
4310
4312
|
if (ue === Te || ue === pe) {
|
|
4311
4313
|
ue = We, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
|
|
4312
4314
|
Je();
|
|
@@ -4319,7 +4321,7 @@ var en = { exports: {} };
|
|
|
4319
4321
|
}, Je = function() {
|
|
4320
4322
|
if (Y = 0, ue !== We) {
|
|
4321
4323
|
if (!N && ie != null)
|
|
4322
|
-
|
|
4324
|
+
ln(new Error("No activity within " + x + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4323
4325
|
else {
|
|
4324
4326
|
var Z = Math.max((N || Date.now()) + x - Date.now(), 1);
|
|
4325
4327
|
N = !1, Y = r(function() {
|
|
@@ -4333,19 +4335,19 @@ var en = { exports: {} };
|
|
|
4333
4335
|
}, x), ue = pe, Le = "", Ee = "", st = E, lt = "", Ht = 0, Ce = 0, K = me;
|
|
4334
4336
|
var z = s;
|
|
4335
4337
|
if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && E !== "") {
|
|
4336
|
-
var
|
|
4337
|
-
z =
|
|
4338
|
+
var ae = s.indexOf("?");
|
|
4339
|
+
z = ae === -1 ? s : s.slice(0, ae + 1) + s.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Me) {
|
|
4338
4340
|
return Me === g ? "" : _e;
|
|
4339
4341
|
}), z += (s.indexOf("?") === -1 ? "?" : "&") + g + "=" + encodeURIComponent(E);
|
|
4340
4342
|
}
|
|
4341
|
-
var
|
|
4343
|
+
var oe = h.withCredentials, ee = {};
|
|
4342
4344
|
ee.Accept = "text/event-stream";
|
|
4343
4345
|
var q = h.headers;
|
|
4344
4346
|
if (q != null)
|
|
4345
4347
|
for (var xe in q)
|
|
4346
4348
|
Object.prototype.hasOwnProperty.call(q, xe) && (ee[xe] = q[xe]);
|
|
4347
4349
|
try {
|
|
4348
|
-
ie = Qe.open(ve,
|
|
4350
|
+
ie = Qe.open(ve, cr, hr, ln, z, oe, ee);
|
|
4349
4351
|
} catch (_e) {
|
|
4350
4352
|
throw Ot(), _e;
|
|
4351
4353
|
}
|
|
@@ -4355,18 +4357,18 @@ var en = { exports: {} };
|
|
|
4355
4357
|
re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = ye, re.prototype.close = function() {
|
|
4356
4358
|
this._close();
|
|
4357
4359
|
}, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = ye, re.prototype.withCredentials = void 0;
|
|
4358
|
-
var
|
|
4359
|
-
|
|
4360
|
+
var ot = c;
|
|
4361
|
+
a != null && (c == null || !("withCredentials" in c.prototype)) && (ot = re), function(h) {
|
|
4360
4362
|
{
|
|
4361
4363
|
var s = h(t);
|
|
4362
4364
|
s !== void 0 && (e.exports = s);
|
|
4363
4365
|
}
|
|
4364
4366
|
}(function(h) {
|
|
4365
|
-
h.EventSourcePolyfill = re, h.NativeEventSource = c, h.EventSource =
|
|
4367
|
+
h.EventSourcePolyfill = re, h.NativeEventSource = c, h.EventSource = ot;
|
|
4366
4368
|
});
|
|
4367
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4369
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : $r : globalThis);
|
|
4368
4370
|
})(en, en.exports);
|
|
4369
|
-
var
|
|
4371
|
+
var Ha = en.exports;
|
|
4370
4372
|
/*!
|
|
4371
4373
|
* currency.js - v2.0.4
|
|
4372
4374
|
* http://scurker.github.io/currency.js
|
|
@@ -4374,7 +4376,7 @@ var Ho = en.exports;
|
|
|
4374
4376
|
* Copyright (c) 2021 Jason Wilson
|
|
4375
4377
|
* Released under MIT license
|
|
4376
4378
|
*/
|
|
4377
|
-
var
|
|
4379
|
+
var Oa = {
|
|
4378
4380
|
symbol: "$",
|
|
4379
4381
|
separator: ",",
|
|
4380
4382
|
decimal: ".",
|
|
@@ -4382,25 +4384,25 @@ var Oo = {
|
|
|
4382
4384
|
precision: 2,
|
|
4383
4385
|
pattern: "!#",
|
|
4384
4386
|
negativePattern: "-!#",
|
|
4385
|
-
format:
|
|
4387
|
+
format: Na,
|
|
4386
4388
|
fromCents: !1
|
|
4387
|
-
},
|
|
4389
|
+
}, ur = function(t) {
|
|
4388
4390
|
return Math.round(t);
|
|
4389
|
-
},
|
|
4391
|
+
}, sn = function(t) {
|
|
4390
4392
|
return Math.pow(10, t);
|
|
4391
|
-
},
|
|
4392
|
-
return
|
|
4393
|
-
},
|
|
4393
|
+
}, Ra = function(t, n) {
|
|
4394
|
+
return ur(t / n) * n;
|
|
4395
|
+
}, La = /(\d)(?=(\d{3})+\b)/g, Ma = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4394
4396
|
function ce(e, t) {
|
|
4395
4397
|
var n = this;
|
|
4396
4398
|
if (!(n instanceof ce))
|
|
4397
4399
|
return new ce(e, t);
|
|
4398
|
-
var r = Object.assign({},
|
|
4399
|
-
n.intValue =
|
|
4400
|
+
var r = Object.assign({}, Oa, t), i = sn(r.precision), a = dt(e, r);
|
|
4401
|
+
n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ma : r.groups = La, this.s = r, this.p = i;
|
|
4400
4402
|
}
|
|
4401
4403
|
function dt(e, t) {
|
|
4402
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal,
|
|
4403
|
-
if (d &&
|
|
4404
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, o = t.fromCents, c = sn(l), u = typeof e == "number", d = e instanceof ce;
|
|
4405
|
+
if (d && o)
|
|
4404
4406
|
return e.intValue;
|
|
4405
4407
|
if (u || d)
|
|
4406
4408
|
r = d ? e.value : e;
|
|
@@ -4408,15 +4410,15 @@ function dt(e, t) {
|
|
|
4408
4410
|
var b = new RegExp("[^-\\d" + i + "]", "g"), y = new RegExp("\\" + i, "g");
|
|
4409
4411
|
r = e.replace(/\((.*)\)/, "-$1").replace(b, "").replace(y, "."), r = r || 0;
|
|
4410
4412
|
} else {
|
|
4411
|
-
if (
|
|
4413
|
+
if (a)
|
|
4412
4414
|
throw Error("Invalid Input");
|
|
4413
4415
|
r = 0;
|
|
4414
4416
|
}
|
|
4415
|
-
return
|
|
4417
|
+
return o || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
|
|
4416
4418
|
}
|
|
4417
|
-
function
|
|
4418
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol,
|
|
4419
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(
|
|
4419
|
+
function Na(e, t) {
|
|
4420
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, o = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
|
|
4421
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(o, "$1" + a) + (d ? l + d : ""));
|
|
4420
4422
|
}
|
|
4421
4423
|
ce.prototype = {
|
|
4422
4424
|
/**
|
|
@@ -4444,7 +4446,7 @@ ce.prototype = {
|
|
|
4444
4446
|
*/
|
|
4445
4447
|
multiply: function(t) {
|
|
4446
4448
|
var n = this.intValue, r = this.s;
|
|
4447
|
-
return ce((n *= t) / (r.fromCents ? 1 :
|
|
4449
|
+
return ce((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
|
|
4448
4450
|
},
|
|
4449
4451
|
/**
|
|
4450
4452
|
* Divides value.
|
|
@@ -4462,11 +4464,11 @@ ce.prototype = {
|
|
|
4462
4464
|
* @returns {array}
|
|
4463
4465
|
*/
|
|
4464
4466
|
distribute: function(t) {
|
|
4465
|
-
for (var n = this.intValue, r = this.p, i = this.s,
|
|
4467
|
+
for (var n = this.intValue, r = this.p, i = this.s, a = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), o = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4466
4468
|
var u = ce(l / c, i);
|
|
4467
|
-
|
|
4469
|
+
o-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), a.push(u);
|
|
4468
4470
|
}
|
|
4469
|
-
return
|
|
4471
|
+
return a;
|
|
4470
4472
|
},
|
|
4471
4473
|
/**
|
|
4472
4474
|
* Returns the dollar value.
|
|
@@ -4498,7 +4500,7 @@ ce.prototype = {
|
|
|
4498
4500
|
*/
|
|
4499
4501
|
toString: function() {
|
|
4500
4502
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4501
|
-
return
|
|
4503
|
+
return Ra(t / n, r.increment).toFixed(r.precision);
|
|
4502
4504
|
},
|
|
4503
4505
|
/**
|
|
4504
4506
|
* Value for JSON serialization.
|
|
@@ -4508,18 +4510,18 @@ ce.prototype = {
|
|
|
4508
4510
|
return this.value;
|
|
4509
4511
|
}
|
|
4510
4512
|
};
|
|
4511
|
-
function
|
|
4512
|
-
|
|
4513
|
+
function Ia(e) {
|
|
4514
|
+
vr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4513
4515
|
}
|
|
4514
|
-
function
|
|
4516
|
+
function Cn(e, t, n) {
|
|
4515
4517
|
const r = e.slice();
|
|
4516
4518
|
return r[50] = t[n], r;
|
|
4517
4519
|
}
|
|
4518
|
-
function
|
|
4520
|
+
function Hn(e, t, n) {
|
|
4519
4521
|
const r = e.slice();
|
|
4520
4522
|
return r[53] = t[n], r;
|
|
4521
4523
|
}
|
|
4522
|
-
function
|
|
4524
|
+
function Pa(e) {
|
|
4523
4525
|
let t, n, r = (
|
|
4524
4526
|
/*balances*/
|
|
4525
4527
|
(e[1].Total ? (
|
|
@@ -4529,20 +4531,20 @@ function Po(e) {
|
|
|
4529
4531
|
e[1].Total[0].amount
|
|
4530
4532
|
)
|
|
4531
4533
|
) : "0") + ""
|
|
4532
|
-
), i,
|
|
4534
|
+
), i, a, l, o, c, u, d, b, y, T, _, H, B = (
|
|
4533
4535
|
/*showBalance*/
|
|
4534
|
-
e[4] &&
|
|
4536
|
+
e[4] && On(e)
|
|
4535
4537
|
);
|
|
4536
4538
|
return {
|
|
4537
4539
|
c() {
|
|
4538
|
-
t = $("div"), n = $("p"), i = he(r),
|
|
4540
|
+
t = $("div"), n = $("p"), i = he(r), a = de(), l = he(
|
|
4539
4541
|
/*currency*/
|
|
4540
4542
|
e[5]
|
|
4541
|
-
),
|
|
4543
|
+
), o = de(), c = $("span"), u = hn("svg"), d = hn("path"), y = de(), B && B.c(), T = _r(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", b = /*modalOpened*/
|
|
4542
4544
|
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4543
4545
|
},
|
|
4544
4546
|
m(A, P) {
|
|
4545
|
-
ge(A, t, P), C(t, n), C(n, i), C(n,
|
|
4547
|
+
ge(A, t, P), C(t, n), C(n, i), C(n, a), C(n, l), C(t, o), C(t, c), C(c, u), C(u, d), ge(A, y, P), B && B.m(A, P), ge(A, T, P), _ || (H = pt(
|
|
4546
4548
|
t,
|
|
4547
4549
|
"click",
|
|
4548
4550
|
/*click_handler*/
|
|
@@ -4566,14 +4568,14 @@ function Po(e) {
|
|
|
4566
4568
|
), P[0] & /*modalOpened*/
|
|
4567
4569
|
8 && b !== (b = /*modalOpened*/
|
|
4568
4570
|
A[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", b), /*showBalance*/
|
|
4569
|
-
A[4] ? B ? B.p(A, P) : (B =
|
|
4571
|
+
A[4] ? B ? B.p(A, P) : (B = On(A), B.c(), B.m(T.parentNode, T)) : B && (B.d(1), B = null);
|
|
4570
4572
|
},
|
|
4571
4573
|
d(A) {
|
|
4572
4574
|
A && (fe(t), fe(y), fe(T)), B && B.d(A), _ = !1, H();
|
|
4573
4575
|
}
|
|
4574
4576
|
};
|
|
4575
4577
|
}
|
|
4576
|
-
function
|
|
4578
|
+
function Da(e) {
|
|
4577
4579
|
let t, n = (
|
|
4578
4580
|
/*$_*/
|
|
4579
4581
|
e[6]("Loading") + ""
|
|
@@ -4582,11 +4584,11 @@ function Do(e) {
|
|
|
4582
4584
|
c() {
|
|
4583
4585
|
t = $("p"), r = he(n), M(t, "class", "Loading");
|
|
4584
4586
|
},
|
|
4585
|
-
m(i,
|
|
4586
|
-
ge(i, t,
|
|
4587
|
+
m(i, a) {
|
|
4588
|
+
ge(i, t, a), C(t, r);
|
|
4587
4589
|
},
|
|
4588
|
-
p(i,
|
|
4589
|
-
|
|
4590
|
+
p(i, a) {
|
|
4591
|
+
a[0] & /*$_*/
|
|
4590
4592
|
64 && n !== (n = /*$_*/
|
|
4591
4593
|
i[6]("Loading") + "") && Be(r, n);
|
|
4592
4594
|
},
|
|
@@ -4595,8 +4597,8 @@ function Do(e) {
|
|
|
4595
4597
|
}
|
|
4596
4598
|
};
|
|
4597
4599
|
}
|
|
4598
|
-
function
|
|
4599
|
-
let t, n, r, i,
|
|
4600
|
+
function On(e) {
|
|
4601
|
+
let t, n, r, i, a, l, o, c, u = (
|
|
4600
4602
|
/*$_*/
|
|
4601
4603
|
e[6]("Title") + ""
|
|
4602
4604
|
), d, b, y, T, _, H, B = (
|
|
@@ -4607,20 +4609,20 @@ function Cn(e) {
|
|
|
4607
4609
|
e[1]
|
|
4608
4610
|
)), U = [];
|
|
4609
4611
|
for (let D = 0; D < W.length; D += 1)
|
|
4610
|
-
U[D] =
|
|
4612
|
+
U[D] = Ln(Cn(e, W, D));
|
|
4611
4613
|
return {
|
|
4612
4614
|
c() {
|
|
4613
|
-
t = $("div"), n = $("div"), i = de(),
|
|
4615
|
+
t = $("div"), n = $("div"), i = de(), a = $("div"), l = $("div"), o = $("div"), c = $("p"), d = he(u), b = de(), y = $("div");
|
|
4614
4616
|
for (let D = 0; D < U.length; D += 1)
|
|
4615
4617
|
U[D].c();
|
|
4616
4618
|
T = de(), _ = $("div"), H = $("button"), A = he(B), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4617
|
-
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(
|
|
4618
|
-
(e[3] ? "Open" : "")), M(
|
|
4619
|
+
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(o, "class", "BalanceModalHeader"), M(y, "class", "BalanceModalBody"), M(H, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*modalOpened*/
|
|
4620
|
+
(e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
|
|
4619
4621
|
(e[3] ? "Open" : "")), M(t, "class", k = "BalanceModalWrapper " + /*modalOpened*/
|
|
4620
4622
|
(e[3] ? "Open" : ""));
|
|
4621
4623
|
},
|
|
4622
4624
|
m(D, V) {
|
|
4623
|
-
ge(D, t, V), C(t, n), C(t, i), C(t,
|
|
4625
|
+
ge(D, t, V), C(t, n), C(t, i), C(t, a), C(a, l), C(l, o), C(o, c), C(c, d), C(l, b), C(l, y);
|
|
4624
4626
|
for (let m = 0; m < U.length; m += 1)
|
|
4625
4627
|
U[m] && U[m].m(y, null);
|
|
4626
4628
|
C(l, T), C(l, _), C(_, H), C(H, A), X || (ne = [
|
|
@@ -4651,8 +4653,8 @@ function Cn(e) {
|
|
|
4651
4653
|
));
|
|
4652
4654
|
let m;
|
|
4653
4655
|
for (m = 0; m < W.length; m += 1) {
|
|
4654
|
-
const J =
|
|
4655
|
-
U[m] ? U[m].p(J, V) : (U[m] =
|
|
4656
|
+
const J = Cn(D, W, m);
|
|
4657
|
+
U[m] ? U[m].p(J, V) : (U[m] = Ln(J), U[m].c(), U[m].m(y, null));
|
|
4656
4658
|
}
|
|
4657
4659
|
for (; m < U.length; m += 1)
|
|
4658
4660
|
U[m].d(1);
|
|
@@ -4664,23 +4666,23 @@ function Cn(e) {
|
|
|
4664
4666
|
8 && P !== (P = "ModalContent " + /*modalOpened*/
|
|
4665
4667
|
(D[3] ? "Open" : "")) && M(l, "class", P), V[0] & /*modalOpened*/
|
|
4666
4668
|
8 && O !== (O = "BalanceModal " + /*modalOpened*/
|
|
4667
|
-
(D[3] ? "Open" : "")) && M(
|
|
4669
|
+
(D[3] ? "Open" : "")) && M(a, "class", O), V[0] & /*modalOpened*/
|
|
4668
4670
|
8 && k !== (k = "BalanceModalWrapper " + /*modalOpened*/
|
|
4669
4671
|
(D[3] ? "Open" : "")) && M(t, "class", k);
|
|
4670
4672
|
},
|
|
4671
4673
|
d(D) {
|
|
4672
|
-
D && fe(t),
|
|
4674
|
+
D && fe(t), Dn(U, D), X = !1, je(ne);
|
|
4673
4675
|
}
|
|
4674
4676
|
};
|
|
4675
4677
|
}
|
|
4676
|
-
function
|
|
4678
|
+
function Rn(e) {
|
|
4677
4679
|
let t, n, r = (
|
|
4678
4680
|
/*$_*/
|
|
4679
4681
|
e[6](
|
|
4680
4682
|
/*k*/
|
|
4681
4683
|
e[50]
|
|
4682
4684
|
) + ""
|
|
4683
|
-
), i,
|
|
4685
|
+
), i, a, l = (
|
|
4684
4686
|
/*b*/
|
|
4685
4687
|
(e[53].productType ? (
|
|
4686
4688
|
/*$_*/
|
|
@@ -4689,7 +4691,7 @@ function Hn(e) {
|
|
|
4689
4691
|
e[53].productType
|
|
4690
4692
|
)
|
|
4691
4693
|
) : "") + ""
|
|
4692
|
-
),
|
|
4694
|
+
), o, c, u, d, b = (
|
|
4693
4695
|
/*b*/
|
|
4694
4696
|
(e[53].amount ? (
|
|
4695
4697
|
/*formatBalance*/
|
|
@@ -4701,13 +4703,13 @@ function Hn(e) {
|
|
|
4701
4703
|
), y, T, _, H;
|
|
4702
4704
|
return {
|
|
4703
4705
|
c() {
|
|
4704
|
-
t = $("div"), n = $("p"), i = he(r),
|
|
4706
|
+
t = $("div"), n = $("p"), i = he(r), a = de(), o = he(l), c = de(), u = $("p"), d = $("span"), y = he(b), T = de(), _ = $("span"), H = he(
|
|
4705
4707
|
/*currency*/
|
|
4706
4708
|
e[5]
|
|
4707
4709
|
), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(_, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
4708
4710
|
},
|
|
4709
4711
|
m(B, A) {
|
|
4710
|
-
ge(B, t, A), C(t, n), C(n, i), C(n,
|
|
4712
|
+
ge(B, t, A), C(t, n), C(n, i), C(n, a), C(n, o), C(t, c), C(t, u), C(u, d), C(d, y), C(u, T), C(u, _), C(_, H);
|
|
4711
4713
|
},
|
|
4712
4714
|
p(B, A) {
|
|
4713
4715
|
A[0] & /*$_, balances*/
|
|
@@ -4723,7 +4725,7 @@ function Hn(e) {
|
|
|
4723
4725
|
/*b*/
|
|
4724
4726
|
B[53].productType
|
|
4725
4727
|
)
|
|
4726
|
-
) : "") + "") && Be(
|
|
4728
|
+
) : "") + "") && Be(o, l), A[0] & /*balances*/
|
|
4727
4729
|
2 && b !== (b = /*b*/
|
|
4728
4730
|
(B[53].amount ? (
|
|
4729
4731
|
/*formatBalance*/
|
|
@@ -4743,7 +4745,7 @@ function Hn(e) {
|
|
|
4743
4745
|
}
|
|
4744
4746
|
};
|
|
4745
4747
|
}
|
|
4746
|
-
function
|
|
4748
|
+
function Ln(e) {
|
|
4747
4749
|
let t, n, r = mt(
|
|
4748
4750
|
/*balances*/
|
|
4749
4751
|
e[1][
|
|
@@ -4751,54 +4753,54 @@ function On(e) {
|
|
|
4751
4753
|
e[50]
|
|
4752
4754
|
]
|
|
4753
4755
|
), i = [];
|
|
4754
|
-
for (let
|
|
4755
|
-
i[
|
|
4756
|
+
for (let a = 0; a < r.length; a += 1)
|
|
4757
|
+
i[a] = Rn(Hn(e, r, a));
|
|
4756
4758
|
return {
|
|
4757
4759
|
c() {
|
|
4758
4760
|
t = $("div");
|
|
4759
|
-
for (let
|
|
4760
|
-
i[
|
|
4761
|
+
for (let a = 0; a < i.length; a += 1)
|
|
4762
|
+
i[a].c();
|
|
4761
4763
|
n = de(), M(t, "class", "BalanceModalRowBoth");
|
|
4762
4764
|
},
|
|
4763
|
-
m(
|
|
4764
|
-
ge(
|
|
4765
|
-
for (let
|
|
4766
|
-
i[
|
|
4765
|
+
m(a, l) {
|
|
4766
|
+
ge(a, t, l);
|
|
4767
|
+
for (let o = 0; o < i.length; o += 1)
|
|
4768
|
+
i[o] && i[o].m(t, null);
|
|
4767
4769
|
C(t, n);
|
|
4768
4770
|
},
|
|
4769
|
-
p(
|
|
4771
|
+
p(a, l) {
|
|
4770
4772
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4771
4773
|
354) {
|
|
4772
4774
|
r = mt(
|
|
4773
4775
|
/*balances*/
|
|
4774
|
-
|
|
4776
|
+
a[1][
|
|
4775
4777
|
/*k*/
|
|
4776
|
-
|
|
4778
|
+
a[50]
|
|
4777
4779
|
]
|
|
4778
4780
|
);
|
|
4779
|
-
let
|
|
4780
|
-
for (
|
|
4781
|
-
const c =
|
|
4782
|
-
i[
|
|
4781
|
+
let o;
|
|
4782
|
+
for (o = 0; o < r.length; o += 1) {
|
|
4783
|
+
const c = Hn(a, r, o);
|
|
4784
|
+
i[o] ? i[o].p(c, l) : (i[o] = Rn(c), i[o].c(), i[o].m(t, n));
|
|
4783
4785
|
}
|
|
4784
|
-
for (;
|
|
4785
|
-
i[
|
|
4786
|
+
for (; o < i.length; o += 1)
|
|
4787
|
+
i[o].d(1);
|
|
4786
4788
|
i.length = r.length;
|
|
4787
4789
|
}
|
|
4788
4790
|
},
|
|
4789
|
-
d(
|
|
4790
|
-
|
|
4791
|
+
d(a) {
|
|
4792
|
+
a && fe(t), Dn(i, a);
|
|
4791
4793
|
}
|
|
4792
4794
|
};
|
|
4793
4795
|
}
|
|
4794
|
-
function
|
|
4796
|
+
function Mn(e) {
|
|
4795
4797
|
let t, n, r;
|
|
4796
4798
|
return {
|
|
4797
4799
|
c() {
|
|
4798
4800
|
t = $("div"), M(t, "class", "ShowBalanceModalOverlay");
|
|
4799
4801
|
},
|
|
4800
|
-
m(i,
|
|
4801
|
-
ge(i, t,
|
|
4802
|
+
m(i, a) {
|
|
4803
|
+
ge(i, t, a), n || (r = pt(
|
|
4802
4804
|
t,
|
|
4803
4805
|
"click",
|
|
4804
4806
|
/*click_handler_3*/
|
|
@@ -4811,44 +4813,44 @@ function Rn(e) {
|
|
|
4811
4813
|
}
|
|
4812
4814
|
};
|
|
4813
4815
|
}
|
|
4814
|
-
function
|
|
4816
|
+
function Ua(e) {
|
|
4815
4817
|
let t, n, r;
|
|
4816
4818
|
function i(c, u) {
|
|
4817
4819
|
return (
|
|
4818
4820
|
/*isLoading*/
|
|
4819
|
-
c[2] ?
|
|
4821
|
+
c[2] ? Da : Pa
|
|
4820
4822
|
);
|
|
4821
4823
|
}
|
|
4822
|
-
let
|
|
4824
|
+
let a = i(e), l = a(e), o = (
|
|
4823
4825
|
/*showBalance*/
|
|
4824
|
-
e[4] &&
|
|
4826
|
+
e[4] && Mn(e)
|
|
4825
4827
|
);
|
|
4826
4828
|
return {
|
|
4827
4829
|
c() {
|
|
4828
|
-
t = $("div"), n = $("div"), l.c(), r = de(),
|
|
4830
|
+
t = $("div"), n = $("div"), l.c(), r = de(), o && o.c(), M(n, "class", "ShowBalance");
|
|
4829
4831
|
},
|
|
4830
4832
|
m(c, u) {
|
|
4831
|
-
ge(c, t, u), C(t, n), l.m(n, null), C(t, r),
|
|
4833
|
+
ge(c, t, u), C(t, n), l.m(n, null), C(t, r), o && o.m(t, null), e[28](t);
|
|
4832
4834
|
},
|
|
4833
4835
|
p(c, u) {
|
|
4834
|
-
|
|
4835
|
-
c[4] ?
|
|
4836
|
+
a === (a = i(c)) && l ? l.p(c, u) : (l.d(1), l = a(c), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4837
|
+
c[4] ? o ? o.p(c, u) : (o = Mn(c), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4836
4838
|
},
|
|
4837
4839
|
i: le,
|
|
4838
4840
|
o: le,
|
|
4839
4841
|
d(c) {
|
|
4840
|
-
c && fe(t), l.d(),
|
|
4842
|
+
c && fe(t), l.d(), o && o.d(), e[28](null);
|
|
4841
4843
|
}
|
|
4842
4844
|
};
|
|
4843
4845
|
}
|
|
4844
|
-
function
|
|
4846
|
+
function Fa(e, t, n) {
|
|
4845
4847
|
let r;
|
|
4846
|
-
|
|
4847
|
-
let { userid: i = "" } = t, { session:
|
|
4848
|
+
yr(e, Aa, (s) => n(6, r = s));
|
|
4849
|
+
let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: o = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: B = "" } = t, { currencyprecision: A = "" } = t, P, O, k, X, ne = !1, W = "", U = [], D, V = !1;
|
|
4848
4850
|
const m = {}, J = ["totalCashAmount", "totalRealAmount"], it = () => {
|
|
4849
|
-
fetch(d).then((s) => s.json()).then((s) => Object.keys(s).forEach((p) =>
|
|
4851
|
+
fetch(d).then((s) => s.json()).then((s) => Object.keys(s).forEach((p) => Sn(p, s[p]))).catch((s) => console.log(s));
|
|
4850
4852
|
};
|
|
4851
|
-
Object.keys(
|
|
4853
|
+
Object.keys(An).forEach((s) => Sn(s, An[s]));
|
|
4852
4854
|
const be = (s) => {
|
|
4853
4855
|
switch (s) {
|
|
4854
4856
|
case "balance":
|
|
@@ -4876,7 +4878,7 @@ function Fo(e, t, n) {
|
|
|
4876
4878
|
break;
|
|
4877
4879
|
}
|
|
4878
4880
|
}, ze = () => {
|
|
4879
|
-
if (b.includes(
|
|
4881
|
+
if (b.includes(o))
|
|
4880
4882
|
return b;
|
|
4881
4883
|
}, We = (s) => b ? new Intl.NumberFormat(ze(), { useGrouping: !0 }).format(s) : H && B ? ce(s, {
|
|
4882
4884
|
separator: H,
|
|
@@ -4895,7 +4897,7 @@ function Fo(e, t, n) {
|
|
|
4895
4897
|
try {
|
|
4896
4898
|
const v = yield fetch(s, {
|
|
4897
4899
|
method: "GET",
|
|
4898
|
-
headers: { "X-SessionID":
|
|
4900
|
+
headers: { "X-SessionID": a }
|
|
4899
4901
|
}), x = yield v.json();
|
|
4900
4902
|
if (v.ok)
|
|
4901
4903
|
window.postMessage({ type: "BalancedFetched" }, window.location.href), U = x.items, n(5, W = (p = U.find((E) => E.displayName === "Casino")) == null ? void 0 : p.currency), n(1, m.Total = [{ amount: x.totalAmount[W] }], m), n(
|
|
@@ -4925,7 +4927,7 @@ function Fo(e, t, n) {
|
|
|
4925
4927
|
}), Te = () => {
|
|
4926
4928
|
n(2, P = !0);
|
|
4927
4929
|
const s = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
|
|
4928
|
-
p.append("X-SessionID",
|
|
4930
|
+
p.append("X-SessionID", a), fetch(s, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
|
|
4929
4931
|
g[_] || n(10, _ = J[0]);
|
|
4930
4932
|
const v = g.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
|
|
4931
4933
|
if (n(5, W = v.currency), V = !!v.productType, n(1, m.Total = [{ amount: 0 }], m), n(1, m.Real = [], m), n(1, m.Bonus = [], m), n(1, m.Credit = [], m), !V) {
|
|
@@ -4988,7 +4990,7 @@ function Fo(e, t, n) {
|
|
|
4988
4990
|
throw n(2, P = !1), new Error("Failed to fetch balance data !");
|
|
4989
4991
|
});
|
|
4990
4992
|
}, ye = () => {
|
|
4991
|
-
if (X && X.close(),
|
|
4993
|
+
if (X && X.close(), a.length < 1) return;
|
|
4992
4994
|
let s, p;
|
|
4993
4995
|
switch (y) {
|
|
4994
4996
|
case "gm16":
|
|
@@ -5000,8 +5002,8 @@ function Fo(e, t, n) {
|
|
|
5000
5002
|
}
|
|
5001
5003
|
const f = {
|
|
5002
5004
|
accept: "text/event-stream",
|
|
5003
|
-
"X-SessionId":
|
|
5004
|
-
}, g = new
|
|
5005
|
+
"X-SessionId": a
|
|
5006
|
+
}, g = new Ha.EventSourcePolyfill(s, { headers: f });
|
|
5005
5007
|
X = g, g.addEventListener("message", p);
|
|
5006
5008
|
}, Oe = (s) => {
|
|
5007
5009
|
let p;
|
|
@@ -5072,12 +5074,12 @@ function Fo(e, t, n) {
|
|
|
5072
5074
|
v.productType === x.productType && (x.amount = g === "Real" ? Ae(x.amount, D[x.productType], v) : v.afterAmount);
|
|
5073
5075
|
}
|
|
5074
5076
|
Ze();
|
|
5075
|
-
},
|
|
5077
|
+
}, at = () => {
|
|
5076
5078
|
be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5077
5079
|
}, Tt = () => {
|
|
5078
5080
|
J.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, _ = J[0]));
|
|
5079
5081
|
}, wt = () => {
|
|
5080
|
-
switch (
|
|
5082
|
+
switch (Ca(o), Tt(), y) {
|
|
5081
5083
|
case "gmcore":
|
|
5082
5084
|
pe();
|
|
5083
5085
|
break;
|
|
@@ -5103,22 +5105,22 @@ function Fo(e, t, n) {
|
|
|
5103
5105
|
}, re = () => {
|
|
5104
5106
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5105
5107
|
};
|
|
5106
|
-
|
|
5108
|
+
Sr(() => (window.addEventListener("message", Re, !1), () => {
|
|
5107
5109
|
window.removeEventListener("message", Re), X && X.close();
|
|
5108
5110
|
}));
|
|
5109
|
-
const St = () => be("balance"), At = () => be("closebalance"), Ct = () =>
|
|
5111
|
+
const St = () => be("balance"), At = () => be("closebalance"), Ct = () => at(), ot = () => be("closeBalance");
|
|
5110
5112
|
function h(s) {
|
|
5111
5113
|
jt[s ? "unshift" : "push"](() => {
|
|
5112
5114
|
O = s, n(0, O);
|
|
5113
5115
|
});
|
|
5114
5116
|
}
|
|
5115
5117
|
return e.$$set = (s) => {
|
|
5116
|
-
"userid" in s && n(11, i = s.userid), "session" in s && n(12,
|
|
5118
|
+
"userid" in s && n(11, i = s.userid), "session" in s && n(12, a = s.session), "endpoint" in s && n(13, l = s.endpoint), "lang" in s && n(14, o = s.lang), "clientstyling" in s && n(15, c = s.clientstyling), "clientstylingurl" in s && n(16, u = s.clientstylingurl), "translationurl" in s && n(17, d = s.translationurl), "customlocaleidentifier" in s && n(18, b = s.customlocaleidentifier), "gmversion" in s && n(19, y = s.gmversion), "displaybalanceoption" in s && n(20, T = s.displaybalanceoption), "totalcalculationmode" in s && n(10, _ = s.totalcalculationmode), "currencyseparator" in s && n(21, H = s.currencyseparator), "currencydecimal" in s && n(22, B = s.currencydecimal), "currencyprecision" in s && n(23, A = s.currencyprecision);
|
|
5117
5119
|
}, e.$$.update = () => {
|
|
5118
5120
|
e.$$.dirty[0] & /*lang*/
|
|
5119
|
-
16384 &&
|
|
5120
|
-
1603584 && l && i &&
|
|
5121
|
-
538624 && l && i &&
|
|
5121
|
+
16384 && o && ze(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5122
|
+
1603584 && l && i && a && o && y && T && wt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5123
|
+
538624 && l && i && a && y && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5122
5124
|
32769 && c && O && qe(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5123
5125
|
65537 && u && O && we(), e.$$.dirty[0] & /*translationurl*/
|
|
5124
5126
|
131072 && d && it(), e.$$.dirty[0] & /*balances*/
|
|
@@ -5133,12 +5135,12 @@ function Fo(e, t, n) {
|
|
|
5133
5135
|
r,
|
|
5134
5136
|
be,
|
|
5135
5137
|
We,
|
|
5136
|
-
|
|
5138
|
+
at,
|
|
5137
5139
|
_,
|
|
5138
5140
|
i,
|
|
5139
|
-
o,
|
|
5140
|
-
l,
|
|
5141
5141
|
a,
|
|
5142
|
+
l,
|
|
5143
|
+
o,
|
|
5142
5144
|
c,
|
|
5143
5145
|
u,
|
|
5144
5146
|
d,
|
|
@@ -5151,18 +5153,18 @@ function Fo(e, t, n) {
|
|
|
5151
5153
|
St,
|
|
5152
5154
|
At,
|
|
5153
5155
|
Ct,
|
|
5154
|
-
|
|
5156
|
+
ot,
|
|
5155
5157
|
h
|
|
5156
5158
|
];
|
|
5157
5159
|
}
|
|
5158
|
-
class
|
|
5160
|
+
class Ga extends Ur {
|
|
5159
5161
|
constructor(t) {
|
|
5160
|
-
super(),
|
|
5162
|
+
super(), Pr(
|
|
5161
5163
|
this,
|
|
5162
5164
|
t,
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5165
|
+
Fa,
|
|
5166
|
+
Ua,
|
|
5167
|
+
In,
|
|
5166
5168
|
{
|
|
5167
5169
|
userid: 11,
|
|
5168
5170
|
session: 12,
|
|
@@ -5179,7 +5181,7 @@ class Go extends Pr {
|
|
|
5179
5181
|
currencydecimal: 22,
|
|
5180
5182
|
currencyprecision: 23
|
|
5181
5183
|
},
|
|
5182
|
-
|
|
5184
|
+
Ia,
|
|
5183
5185
|
[-1, -1]
|
|
5184
5186
|
);
|
|
5185
5187
|
}
|
|
@@ -5268,7 +5270,7 @@ class Go extends Pr {
|
|
|
5268
5270
|
this.$$set({ currencyprecision: t }), Q();
|
|
5269
5271
|
}
|
|
5270
5272
|
}
|
|
5271
|
-
|
|
5273
|
+
Dr(Ga, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5272
5274
|
export {
|
|
5273
|
-
|
|
5275
|
+
Ga as default
|
|
5274
5276
|
};
|