@everymatrix/player-account-balance-modal-nd 1.74.2 → 1.74.3
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-D5dg567p.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-B0LdCyHY.js → PlayerAccountBalanceModalNd-aF42S6lR.js} +1368 -1382
- package/components/{PlayerAccountBalanceModalNd-C6lbN4sl.js → PlayerAccountBalanceModalNd-lPXKhPip.js} +1441 -1455
- 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-BXdAvssr.cjs +0 -24
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ce() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Gn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ln() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ze(e) {
|
|
10
|
+
e.forEach(Gn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function rn(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function jn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function wr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function kn(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
25
|
-
return
|
|
25
|
+
return ce;
|
|
26
26
|
}
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Sr(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(kn(t, n));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function P(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
36
|
+
function Tr(e, t, n) {
|
|
37
|
+
const r = Br(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
39
|
const i = j("style");
|
|
40
|
-
i.id = t, i.textContent = n,
|
|
40
|
+
i.id = t, i.textContent = n, Ar(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Br(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,52 +50,52 @@ function Hr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Ar(e, t) {
|
|
54
|
+
return P(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function be(e, t, n) {
|
|
61
61
|
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function de(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function $n(e, t) {
|
|
67
67
|
for (let n = 0; n < e.length; n += 1)
|
|
68
68
|
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
70
|
function j(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function cn(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function xe(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function we() {
|
|
80
|
+
return xe(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Cr() {
|
|
83
|
+
return xe("");
|
|
84
84
|
}
|
|
85
85
|
function vt(e, t, n, r) {
|
|
86
86
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function M(e, t, n) {
|
|
89
89
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Hr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
94
|
function Me(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Or(e) {
|
|
99
99
|
const t = {};
|
|
100
100
|
return e.childNodes.forEach(
|
|
101
101
|
/** @param {Element} node */
|
|
@@ -108,124 +108,124 @@ let rt;
|
|
|
108
108
|
function nt(e) {
|
|
109
109
|
rt = e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Mr() {
|
|
112
112
|
if (!rt)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
114
|
return rt;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function Rr(e) {
|
|
117
|
+
Mr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
119
|
+
const Fe = [], Gt = [];
|
|
120
|
+
let Ge = [];
|
|
121
|
+
const hn = [], Lr = /* @__PURE__ */ Promise.resolve();
|
|
122
|
+
let jt = !1;
|
|
123
|
+
function Pr() {
|
|
124
|
+
jt || (jt = !0, Lr.then(Q));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
126
|
+
function kt(e) {
|
|
127
|
+
Ge.push(e);
|
|
128
128
|
}
|
|
129
129
|
const Lt = /* @__PURE__ */ new Set();
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
130
|
+
let De = 0;
|
|
131
|
+
function Q() {
|
|
132
|
+
if (De !== 0)
|
|
133
133
|
return;
|
|
134
134
|
const e = rt;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
|
-
for (;
|
|
138
|
-
const t =
|
|
139
|
-
|
|
137
|
+
for (; De < Fe.length; ) {
|
|
138
|
+
const t = Fe[De];
|
|
139
|
+
De++, nt(t), Nr(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
|
-
throw
|
|
142
|
+
throw Fe.length = 0, De = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (nt(null),
|
|
145
|
-
|
|
146
|
-
for (let t = 0; t <
|
|
147
|
-
const n =
|
|
144
|
+
for (nt(null), Fe.length = 0, De = 0; Gt.length; )
|
|
145
|
+
Gt.pop()();
|
|
146
|
+
for (let t = 0; t < Ge.length; t += 1) {
|
|
147
|
+
const n = Ge[t];
|
|
148
148
|
Lt.has(n) || (Lt.add(n), n());
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
} while (
|
|
152
|
-
for (;
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
Ge.length = 0;
|
|
151
|
+
} while (Fe.length);
|
|
152
|
+
for (; hn.length; )
|
|
153
|
+
hn.pop()();
|
|
154
|
+
jt = !1, Lt.clear(), nt(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Nr(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
|
-
e.update(),
|
|
158
|
+
e.update(), ze(e.before_update);
|
|
159
159
|
const t = e.dirty;
|
|
160
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
160
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ir(e) {
|
|
164
164
|
const t = [], n = [];
|
|
165
|
-
|
|
165
|
+
Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
e && e.i && (
|
|
167
|
+
const Dr = /* @__PURE__ */ new Set();
|
|
168
|
+
function Ur(e, t) {
|
|
169
|
+
e && e.i && (Dr.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
171
|
function _t(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Fr(e, t, n) {
|
|
175
175
|
const { fragment: r, after_update: i } = e.$$;
|
|
176
|
-
r && r.m(t, n),
|
|
177
|
-
const o = e.$$.on_mount.map(
|
|
178
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
179
|
-
}), i.forEach(
|
|
176
|
+
r && r.m(t, n), kt(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(Gn).filter(rn);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach(kt);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Gr(e, t) {
|
|
182
182
|
const n = e.$$;
|
|
183
|
-
n.fragment !== null && (
|
|
183
|
+
n.fragment !== null && (Ir(n.after_update), ze(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
e.$$.dirty[0] === -1 && (
|
|
185
|
+
function jr(e, t) {
|
|
186
|
+
e.$$.dirty[0] === -1 && (Fe.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const
|
|
188
|
+
function kr(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
189
|
+
const l = rt;
|
|
190
190
|
nt(e);
|
|
191
|
-
const
|
|
191
|
+
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
194
194
|
// state
|
|
195
195
|
props: o,
|
|
196
|
-
update:
|
|
196
|
+
update: ce,
|
|
197
197
|
not_equal: i,
|
|
198
|
-
bound:
|
|
198
|
+
bound: ln(),
|
|
199
199
|
// lifecycle
|
|
200
200
|
on_mount: [],
|
|
201
201
|
on_destroy: [],
|
|
202
202
|
on_disconnect: [],
|
|
203
203
|
before_update: [],
|
|
204
204
|
after_update: [],
|
|
205
|
-
context: new Map(t.context || (
|
|
205
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
|
-
callbacks:
|
|
207
|
+
callbacks: ln(),
|
|
208
208
|
dirty: a,
|
|
209
209
|
skip_bound: !1,
|
|
210
|
-
root: t.target ||
|
|
210
|
+
root: t.target || l.$$.root
|
|
211
211
|
};
|
|
212
|
-
s && s(
|
|
212
|
+
s && s(u.root);
|
|
213
213
|
let f = !1;
|
|
214
|
-
if (
|
|
215
|
-
const
|
|
216
|
-
return
|
|
217
|
-
})
|
|
214
|
+
if (u.ctx = n(e, t.props || {}, (b, m, ...w) => {
|
|
215
|
+
const _ = w.length ? w[0] : m;
|
|
216
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && jr(e, b)), m;
|
|
217
|
+
}), u.update(), f = !0, ze(u.before_update), u.fragment = r(u.ctx), t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const
|
|
220
|
-
|
|
219
|
+
const b = Hr(t.target);
|
|
220
|
+
u.fragment && u.fragment.l(b), b.forEach(de);
|
|
221
221
|
} else
|
|
222
|
-
|
|
223
|
-
t.intro &&
|
|
222
|
+
u.fragment && u.fragment.c();
|
|
223
|
+
t.intro && Ur(e.$$.fragment), Fr(e, t.target, t.anchor), Q();
|
|
224
224
|
}
|
|
225
|
-
nt(
|
|
225
|
+
nt(l);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Vn;
|
|
228
|
+
typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
|
|
229
229
|
/** The Svelte component constructor */
|
|
230
230
|
$$ctor;
|
|
231
231
|
/** Slots */
|
|
@@ -267,24 +267,24 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
|
|
|
267
267
|
let o;
|
|
268
268
|
return {
|
|
269
269
|
c: function() {
|
|
270
|
-
o = j("slot"), i !== "default" &&
|
|
270
|
+
o = j("slot"), i !== "default" && M(o, "name", i);
|
|
271
271
|
},
|
|
272
272
|
/**
|
|
273
273
|
* @param {HTMLElement} target
|
|
274
274
|
* @param {HTMLElement} [anchor]
|
|
275
275
|
*/
|
|
276
|
-
m: function(
|
|
277
|
-
|
|
276
|
+
m: function(l, u) {
|
|
277
|
+
be(l, o, u);
|
|
278
278
|
},
|
|
279
|
-
d: function(
|
|
280
|
-
|
|
279
|
+
d: function(l) {
|
|
280
|
+
l && de(o);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
286
286
|
return;
|
|
287
|
-
const t = {}, n =
|
|
287
|
+
const t = {}, n = Or(this);
|
|
288
288
|
for (const i of this.$$s)
|
|
289
289
|
i in n && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
@@ -371,8 +371,8 @@ function mt(e, t, n, r) {
|
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let s = class extends
|
|
374
|
+
function $r(e, t, n, r, i, o) {
|
|
375
|
+
let s = class extends Vn {
|
|
376
376
|
constructor() {
|
|
377
377
|
super(e, n, i), this.$$p_d = t;
|
|
378
378
|
}
|
|
@@ -387,8 +387,8 @@ function zr(e, t, n, r, i, o) {
|
|
|
387
387
|
get() {
|
|
388
388
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
389
389
|
},
|
|
390
|
-
set(
|
|
391
|
-
|
|
390
|
+
set(l) {
|
|
391
|
+
l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
}), r.forEach((a) => {
|
|
@@ -400,7 +400,7 @@ function zr(e, t, n, r, i, o) {
|
|
|
400
400
|
}), e.element = /** @type {any} */
|
|
401
401
|
s, s;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Vr {
|
|
404
404
|
/**
|
|
405
405
|
* ### PRIVATE API
|
|
406
406
|
*
|
|
@@ -419,7 +419,7 @@ class Wr {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
|
|
422
|
+
Gr(this, 1), this.$destroy = ce;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,8 +428,8 @@ class Wr {
|
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
430
|
$on(t, n) {
|
|
431
|
-
if (!
|
|
432
|
-
return
|
|
431
|
+
if (!rn(n))
|
|
432
|
+
return ce;
|
|
433
433
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return r.push(n), () => {
|
|
435
435
|
const i = r.indexOf(n);
|
|
@@ -441,18 +441,18 @@ class Wr {
|
|
|
441
441
|
* @returns {void}
|
|
442
442
|
*/
|
|
443
443
|
$set(t) {
|
|
444
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
449
|
-
function
|
|
447
|
+
const Xr = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
|
|
449
|
+
function zr(e, t) {
|
|
450
450
|
if (e) {
|
|
451
451
|
const n = document.createElement("style");
|
|
452
452
|
n.innerHTML = t, e.appendChild(n);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Wr(e, t) {
|
|
456
456
|
const n = new URL(t);
|
|
457
457
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
458
458
|
const i = document.createElement("style");
|
|
@@ -461,7 +461,7 @@ function Yr(e, t) {
|
|
|
461
461
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Zr(e, t, n) {
|
|
465
465
|
if (window.emMessageBus) {
|
|
466
466
|
const r = document.createElement("style");
|
|
467
467
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -469,144 +469,144 @@ function Qr(e, t, n) {
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
const
|
|
473
|
-
function
|
|
472
|
+
const Ue = [];
|
|
473
|
+
function qr(e, t) {
|
|
474
474
|
return {
|
|
475
475
|
subscribe: wt(e, t).subscribe
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function wt(e, t =
|
|
478
|
+
function wt(e, t = ce) {
|
|
479
479
|
let n;
|
|
480
480
|
const r = /* @__PURE__ */ new Set();
|
|
481
481
|
function i(a) {
|
|
482
|
-
if (
|
|
483
|
-
const
|
|
484
|
-
for (const
|
|
485
|
-
|
|
486
|
-
if (
|
|
487
|
-
for (let
|
|
488
|
-
|
|
489
|
-
|
|
482
|
+
if (jn(e, a) && (e = a, n)) {
|
|
483
|
+
const l = !Ue.length;
|
|
484
|
+
for (const u of r)
|
|
485
|
+
u[1](), Ue.push(u, e);
|
|
486
|
+
if (l) {
|
|
487
|
+
for (let u = 0; u < Ue.length; u += 2)
|
|
488
|
+
Ue[u][0](Ue[u + 1]);
|
|
489
|
+
Ue.length = 0;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
function o(a) {
|
|
494
494
|
i(a(e));
|
|
495
495
|
}
|
|
496
|
-
function s(a,
|
|
497
|
-
const
|
|
498
|
-
return r.add(
|
|
499
|
-
r.delete(
|
|
496
|
+
function s(a, l = ce) {
|
|
497
|
+
const u = [a, l];
|
|
498
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || ce), a(e), () => {
|
|
499
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
return { set: i, update: o, subscribe: s };
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function We(e, t, n) {
|
|
505
505
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
506
506
|
if (!i.every(Boolean))
|
|
507
507
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
508
508
|
const o = t.length < 2;
|
|
509
|
-
return
|
|
510
|
-
let
|
|
511
|
-
const
|
|
512
|
-
let f = 0,
|
|
513
|
-
const
|
|
509
|
+
return qr(n, (s, a) => {
|
|
510
|
+
let l = !1;
|
|
511
|
+
const u = [];
|
|
512
|
+
let f = 0, b = ce;
|
|
513
|
+
const m = () => {
|
|
514
514
|
if (f)
|
|
515
515
|
return;
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
o ? s(
|
|
519
|
-
},
|
|
520
|
-
(
|
|
521
|
-
|
|
522
|
-
(
|
|
523
|
-
|
|
516
|
+
b();
|
|
517
|
+
const _ = t(r ? u[0] : u, s, a);
|
|
518
|
+
o ? s(_) : b = rn(_) ? _ : ce;
|
|
519
|
+
}, w = i.map(
|
|
520
|
+
(_, A) => kn(
|
|
521
|
+
_,
|
|
522
|
+
(I) => {
|
|
523
|
+
u[A] = I, f &= ~(1 << A), l && m();
|
|
524
524
|
},
|
|
525
525
|
() => {
|
|
526
|
-
f |= 1 <<
|
|
526
|
+
f |= 1 << A;
|
|
527
527
|
}
|
|
528
528
|
)
|
|
529
529
|
);
|
|
530
|
-
return
|
|
531
|
-
|
|
530
|
+
return l = !0, m(), function() {
|
|
531
|
+
ze(w), b(), l = !1;
|
|
532
532
|
};
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
var
|
|
536
|
-
function
|
|
535
|
+
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
536
|
+
function Qr(e) {
|
|
537
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var Jr = function(t) {
|
|
540
|
+
return Kr(t) && !ei(t);
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Kr(e) {
|
|
543
543
|
return !!e && typeof e == "object";
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ei(e) {
|
|
546
546
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
547
|
+
return t === "[object RegExp]" || t === "[object Date]" || ri(e);
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
549
|
+
var ti = typeof Symbol == "function" && Symbol.for, ni = ti ? Symbol.for("react.element") : 60103;
|
|
550
|
+
function ri(e) {
|
|
551
|
+
return e.$$typeof === ni;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ii(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
556
|
function it(e, t) {
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ke(ii(e), e, t) : e;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function oi(e, t, n) {
|
|
560
560
|
return e.concat(t).map(function(r) {
|
|
561
561
|
return it(r, n);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function ai(e, t) {
|
|
565
565
|
if (!t.customMerge)
|
|
566
|
-
return
|
|
566
|
+
return ke;
|
|
567
567
|
var n = t.customMerge(e);
|
|
568
|
-
return typeof n == "function" ? n :
|
|
568
|
+
return typeof n == "function" ? n : ke;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function si(e) {
|
|
571
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
572
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
573
|
}) : [];
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
575
|
+
function fn(e) {
|
|
576
|
+
return Object.keys(e).concat(si(e));
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Xn(e, t) {
|
|
579
579
|
try {
|
|
580
580
|
return t in e;
|
|
581
581
|
} catch {
|
|
582
582
|
return !1;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function ui(e, t) {
|
|
586
|
+
return Xn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function li(e, t, n) {
|
|
589
589
|
var r = {};
|
|
590
|
-
return n.isMergeableObject(e) &&
|
|
590
|
+
return n.isMergeableObject(e) && fn(e).forEach(function(i) {
|
|
591
591
|
r[i] = it(e[i], n);
|
|
592
|
-
}),
|
|
593
|
-
|
|
592
|
+
}), fn(t).forEach(function(i) {
|
|
593
|
+
ui(e, i) || (Xn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ai(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
|
|
594
594
|
}), r;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
596
|
+
function ke(e, t, n) {
|
|
597
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified = it;
|
|
598
598
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
599
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
599
|
+
return o ? r ? n.arrayMerge(e, t, n) : li(e, t, n) : it(t, n);
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
ke.all = function(t, n) {
|
|
602
602
|
if (!Array.isArray(t))
|
|
603
603
|
throw new Error("first argument should be an array");
|
|
604
604
|
return t.reduce(function(r, i) {
|
|
605
|
-
return
|
|
605
|
+
return ke(r, i, n);
|
|
606
606
|
}, {});
|
|
607
607
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
608
|
+
var ci = ke, hi = ci;
|
|
609
|
+
const fi = /* @__PURE__ */ Qr(hi);
|
|
610
610
|
/*! *****************************************************************************
|
|
611
611
|
Copyright (c) Microsoft Corporation.
|
|
612
612
|
|
|
@@ -621,34 +621,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
621
621
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
622
622
|
PERFORMANCE OF THIS SOFTWARE.
|
|
623
623
|
***************************************************************************** */
|
|
624
|
-
var
|
|
625
|
-
return
|
|
624
|
+
var $t = function(e, t) {
|
|
625
|
+
return $t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
626
626
|
n.__proto__ = r;
|
|
627
627
|
} || function(n, r) {
|
|
628
628
|
for (var i in r)
|
|
629
629
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
630
|
-
},
|
|
630
|
+
}, $t(e, t);
|
|
631
631
|
};
|
|
632
|
-
function
|
|
632
|
+
function Te(e, t) {
|
|
633
633
|
if (typeof t != "function" && t !== null)
|
|
634
634
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
635
|
-
|
|
635
|
+
$t(e, t);
|
|
636
636
|
function n() {
|
|
637
637
|
this.constructor = e;
|
|
638
638
|
}
|
|
639
639
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
640
640
|
}
|
|
641
|
-
var
|
|
642
|
-
return
|
|
641
|
+
var L = function() {
|
|
642
|
+
return L = Object.assign || function(t) {
|
|
643
643
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
644
644
|
n = arguments[r];
|
|
645
645
|
for (var o in n)
|
|
646
646
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
647
647
|
}
|
|
648
648
|
return t;
|
|
649
|
-
},
|
|
649
|
+
}, L.apply(this, arguments);
|
|
650
650
|
};
|
|
651
|
-
function
|
|
651
|
+
function di(e, t) {
|
|
652
652
|
var n = {};
|
|
653
653
|
for (var r in e)
|
|
654
654
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -657,7 +657,7 @@ function bi(e, t) {
|
|
|
657
657
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
658
658
|
return n;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Vt(e) {
|
|
661
661
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
662
662
|
if (n)
|
|
663
663
|
return n.call(e);
|
|
@@ -669,7 +669,7 @@ function Xt(e) {
|
|
|
669
669
|
};
|
|
670
670
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Xt(e, t) {
|
|
673
673
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
674
674
|
if (!n)
|
|
675
675
|
return e;
|
|
@@ -689,111 +689,113 @@ function zt(e, t) {
|
|
|
689
689
|
}
|
|
690
690
|
return o;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function je(e, t, n) {
|
|
693
693
|
if (n || arguments.length === 2)
|
|
694
694
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
695
695
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
696
696
|
return e.concat(o || t);
|
|
697
697
|
}
|
|
698
698
|
function Pt(e, t) {
|
|
699
|
-
var n = t && t.cache ? t.cache :
|
|
699
|
+
var n = t && t.cache ? t.cache : _i, r = t && t.serializer ? t.serializer : yi, i = t && t.strategy ? t.strategy : mi;
|
|
700
700
|
return i(e, {
|
|
701
701
|
cache: n,
|
|
702
702
|
serializer: r
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function pi(e) {
|
|
706
706
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
var i =
|
|
708
|
+
function zn(e, t, n, r) {
|
|
709
|
+
var i = pi(r) ? r : n(r), o = t.get(i);
|
|
710
710
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function Wn(e, t, n) {
|
|
713
713
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
714
714
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function on(e, t, n, r, i) {
|
|
717
717
|
return n.bind(t, e, r, i);
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
var n = e.length === 1 ?
|
|
721
|
-
return
|
|
719
|
+
function mi(e, t) {
|
|
720
|
+
var n = e.length === 1 ? zn : Wn;
|
|
721
|
+
return on(e, this, n, t.cache.create(), t.serializer);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
return
|
|
723
|
+
function bi(e, t) {
|
|
724
|
+
return on(e, this, Wn, t.cache.create(), t.serializer);
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
return
|
|
726
|
+
function gi(e, t) {
|
|
727
|
+
return on(e, this, zn, t.cache.create(), t.serializer);
|
|
728
728
|
}
|
|
729
|
-
var
|
|
729
|
+
var yi = function() {
|
|
730
730
|
return JSON.stringify(arguments);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
731
|
+
}, vi = (
|
|
732
|
+
/** @class */
|
|
733
|
+
function() {
|
|
734
|
+
function e() {
|
|
735
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
736
|
+
}
|
|
737
|
+
return e.prototype.get = function(t) {
|
|
738
|
+
return this.cache[t];
|
|
739
|
+
}, e.prototype.set = function(t, n) {
|
|
740
|
+
this.cache[t] = n;
|
|
741
|
+
}, e;
|
|
742
|
+
}()
|
|
743
|
+
), _i = {
|
|
742
744
|
create: function() {
|
|
743
|
-
return new
|
|
745
|
+
return new vi();
|
|
744
746
|
}
|
|
745
|
-
},
|
|
746
|
-
variadic:
|
|
747
|
-
monadic:
|
|
748
|
-
},
|
|
747
|
+
}, Nt = {
|
|
748
|
+
variadic: bi,
|
|
749
|
+
monadic: gi
|
|
750
|
+
}, H;
|
|
749
751
|
(function(e) {
|
|
750
752
|
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";
|
|
751
|
-
})(
|
|
753
|
+
})(H || (H = {}));
|
|
752
754
|
var G;
|
|
753
755
|
(function(e) {
|
|
754
756
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
755
757
|
})(G || (G = {}));
|
|
756
|
-
var
|
|
758
|
+
var $e;
|
|
757
759
|
(function(e) {
|
|
758
760
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
759
|
-
})(
|
|
760
|
-
function
|
|
761
|
+
})($e || ($e = {}));
|
|
762
|
+
function dn(e) {
|
|
761
763
|
return e.type === G.literal;
|
|
762
764
|
}
|
|
763
|
-
function
|
|
765
|
+
function Ei(e) {
|
|
764
766
|
return e.type === G.argument;
|
|
765
767
|
}
|
|
766
|
-
function
|
|
768
|
+
function Zn(e) {
|
|
767
769
|
return e.type === G.number;
|
|
768
770
|
}
|
|
769
|
-
function
|
|
771
|
+
function qn(e) {
|
|
770
772
|
return e.type === G.date;
|
|
771
773
|
}
|
|
772
|
-
function
|
|
774
|
+
function Yn(e) {
|
|
773
775
|
return e.type === G.time;
|
|
774
776
|
}
|
|
775
|
-
function
|
|
777
|
+
function Qn(e) {
|
|
776
778
|
return e.type === G.select;
|
|
777
779
|
}
|
|
778
|
-
function
|
|
780
|
+
function Jn(e) {
|
|
779
781
|
return e.type === G.plural;
|
|
780
782
|
}
|
|
781
|
-
function
|
|
783
|
+
function xi(e) {
|
|
782
784
|
return e.type === G.pound;
|
|
783
785
|
}
|
|
784
|
-
function
|
|
786
|
+
function Kn(e) {
|
|
785
787
|
return e.type === G.tag;
|
|
786
788
|
}
|
|
787
|
-
function
|
|
788
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
789
|
+
function er(e) {
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
789
791
|
}
|
|
790
|
-
function
|
|
791
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
792
|
+
function zt(e) {
|
|
793
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
792
794
|
}
|
|
793
|
-
var
|
|
794
|
-
function
|
|
795
|
+
var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
|
|
796
|
+
function Si(e) {
|
|
795
797
|
var t = {};
|
|
796
|
-
return e.replace(
|
|
798
|
+
return e.replace(wi, function(n) {
|
|
797
799
|
var r = n.length;
|
|
798
800
|
switch (n[0]) {
|
|
799
801
|
case "G":
|
|
@@ -882,36 +884,36 @@ function Bi(e) {
|
|
|
882
884
|
return "";
|
|
883
885
|
}), t;
|
|
884
886
|
}
|
|
885
|
-
var
|
|
886
|
-
function
|
|
887
|
+
var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
888
|
+
function Bi(e) {
|
|
887
889
|
if (e.length === 0)
|
|
888
890
|
throw new Error("Number skeleton cannot be empty");
|
|
889
|
-
for (var t = e.split(
|
|
890
|
-
return
|
|
891
|
+
for (var t = e.split(Ti).filter(function(m) {
|
|
892
|
+
return m.length > 0;
|
|
891
893
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
892
894
|
var o = i[r], s = o.split("/");
|
|
893
895
|
if (s.length === 0)
|
|
894
896
|
throw new Error("Invalid number skeleton");
|
|
895
|
-
for (var a = s[0],
|
|
896
|
-
var
|
|
897
|
-
if (
|
|
897
|
+
for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
|
|
898
|
+
var b = f[u];
|
|
899
|
+
if (b.length === 0)
|
|
898
900
|
throw new Error("Invalid number skeleton");
|
|
899
901
|
}
|
|
900
|
-
n.push({ stem: a, options:
|
|
902
|
+
n.push({ stem: a, options: l });
|
|
901
903
|
}
|
|
902
904
|
return n;
|
|
903
905
|
}
|
|
904
|
-
function
|
|
906
|
+
function Ai(e) {
|
|
905
907
|
return e.replace(/^(.*?)-/, "");
|
|
906
908
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
909
|
+
var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Ci = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
|
910
|
+
function mn(e) {
|
|
909
911
|
var t = {};
|
|
910
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
912
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(n, r, i) {
|
|
911
913
|
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)), "";
|
|
912
914
|
}), t;
|
|
913
915
|
}
|
|
914
|
-
function
|
|
916
|
+
function ir(e) {
|
|
915
917
|
switch (e) {
|
|
916
918
|
case "sign-auto":
|
|
917
919
|
return {
|
|
@@ -951,7 +953,7 @@ function ar(e) {
|
|
|
951
953
|
};
|
|
952
954
|
}
|
|
953
955
|
}
|
|
954
|
-
function
|
|
956
|
+
function Hi(e) {
|
|
955
957
|
var t;
|
|
956
958
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
957
959
|
notation: "engineering"
|
|
@@ -959,17 +961,17 @@ function Mi(e) {
|
|
|
959
961
|
notation: "scientific"
|
|
960
962
|
}, e = e.slice(1)), t) {
|
|
961
963
|
var n = e.slice(0, 2);
|
|
962
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
964
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
|
963
965
|
throw new Error("Malformed concise eng/scientific notation");
|
|
964
966
|
t.minimumIntegerDigits = e.length;
|
|
965
967
|
}
|
|
966
968
|
return t;
|
|
967
969
|
}
|
|
968
|
-
function
|
|
969
|
-
var t = {}, n =
|
|
970
|
+
function bn(e) {
|
|
971
|
+
var t = {}, n = ir(e);
|
|
970
972
|
return n || t;
|
|
971
973
|
}
|
|
972
|
-
function
|
|
974
|
+
function Oi(e) {
|
|
973
975
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
974
976
|
var i = r[n];
|
|
975
977
|
switch (i.stem) {
|
|
@@ -993,7 +995,7 @@ function Ri(e) {
|
|
|
993
995
|
continue;
|
|
994
996
|
case "measure-unit":
|
|
995
997
|
case "unit":
|
|
996
|
-
t.style = "unit", t.unit =
|
|
998
|
+
t.style = "unit", t.unit = Ai(i.options[0]);
|
|
997
999
|
continue;
|
|
998
1000
|
case "compact-short":
|
|
999
1001
|
case "K":
|
|
@@ -1004,13 +1006,13 @@ function Ri(e) {
|
|
|
1004
1006
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1005
1007
|
continue;
|
|
1006
1008
|
case "scientific":
|
|
1007
|
-
t =
|
|
1008
|
-
return
|
|
1009
|
+
t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1010
|
+
return L(L({}, l), bn(u));
|
|
1009
1011
|
}, {}));
|
|
1010
1012
|
continue;
|
|
1011
1013
|
case "engineering":
|
|
1012
|
-
t =
|
|
1013
|
-
return
|
|
1014
|
+
t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1015
|
+
return L(L({}, l), bn(u));
|
|
1014
1016
|
}, {}));
|
|
1015
1017
|
continue;
|
|
1016
1018
|
case "notation-simple":
|
|
@@ -1055,41 +1057,41 @@ function Ri(e) {
|
|
|
1055
1057
|
case "integer-width":
|
|
1056
1058
|
if (i.options.length > 1)
|
|
1057
1059
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1058
|
-
i.options[0].replace(
|
|
1059
|
-
if (
|
|
1060
|
+
i.options[0].replace(Ci, function(l, u, f, b, m, w) {
|
|
1061
|
+
if (u)
|
|
1060
1062
|
t.minimumIntegerDigits = f.length;
|
|
1061
1063
|
else {
|
|
1062
|
-
if (
|
|
1064
|
+
if (b && m)
|
|
1063
1065
|
throw new Error("We currently do not support maximum integer digits");
|
|
1064
|
-
if (
|
|
1066
|
+
if (w)
|
|
1065
1067
|
throw new Error("We currently do not support exact integer digits");
|
|
1066
1068
|
}
|
|
1067
1069
|
return "";
|
|
1068
1070
|
});
|
|
1069
1071
|
continue;
|
|
1070
1072
|
}
|
|
1071
|
-
if (
|
|
1073
|
+
if (rr.test(i.stem)) {
|
|
1072
1074
|
t.minimumIntegerDigits = i.stem.length;
|
|
1073
1075
|
continue;
|
|
1074
1076
|
}
|
|
1075
|
-
if (
|
|
1077
|
+
if (pn.test(i.stem)) {
|
|
1076
1078
|
if (i.options.length > 1)
|
|
1077
1079
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1078
|
-
i.stem.replace(
|
|
1079
|
-
return f === "*" ? t.minimumFractionDigits =
|
|
1080
|
+
i.stem.replace(pn, function(l, u, f, b, m, w) {
|
|
1081
|
+
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && w ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + w.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1080
1082
|
});
|
|
1081
1083
|
var o = i.options[0];
|
|
1082
|
-
o === "w" ? t =
|
|
1084
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), mn(o)));
|
|
1083
1085
|
continue;
|
|
1084
1086
|
}
|
|
1085
|
-
if (
|
|
1086
|
-
t =
|
|
1087
|
+
if (nr.test(i.stem)) {
|
|
1088
|
+
t = L(L({}, t), mn(i.stem));
|
|
1087
1089
|
continue;
|
|
1088
1090
|
}
|
|
1089
|
-
var s =
|
|
1090
|
-
s && (t =
|
|
1091
|
-
var a =
|
|
1092
|
-
a && (t =
|
|
1091
|
+
var s = ir(i.stem);
|
|
1092
|
+
s && (t = L(L({}, t), s));
|
|
1093
|
+
var a = Hi(i.stem);
|
|
1094
|
+
a && (t = L(L({}, t), a));
|
|
1093
1095
|
}
|
|
1094
1096
|
return t;
|
|
1095
1097
|
}
|
|
@@ -2508,23 +2510,23 @@ var dt = {
|
|
|
2508
2510
|
"h"
|
|
2509
2511
|
]
|
|
2510
2512
|
};
|
|
2511
|
-
function
|
|
2513
|
+
function Mi(e, t) {
|
|
2512
2514
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2513
2515
|
var i = e.charAt(r);
|
|
2514
2516
|
if (i === "j") {
|
|
2515
2517
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2516
2518
|
o++, r++;
|
|
2517
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2518
|
-
for ((
|
|
2519
|
-
n +=
|
|
2519
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
|
|
2520
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2521
|
+
n += l;
|
|
2520
2522
|
for (; s-- > 0; )
|
|
2521
|
-
n =
|
|
2523
|
+
n = u + n;
|
|
2522
2524
|
} else
|
|
2523
2525
|
i === "J" ? n += "H" : n += i;
|
|
2524
2526
|
}
|
|
2525
2527
|
return n;
|
|
2526
2528
|
}
|
|
2527
|
-
function
|
|
2529
|
+
function Ri(e) {
|
|
2528
2530
|
var t = e.hourCycle;
|
|
2529
2531
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2530
2532
|
e.hourCycles && // @ts-ignore
|
|
@@ -2546,20 +2548,20 @@ function Pi(e) {
|
|
|
2546
2548
|
var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
|
|
2547
2549
|
return i[0];
|
|
2548
2550
|
}
|
|
2549
|
-
var
|
|
2550
|
-
function
|
|
2551
|
+
var It, Li = new RegExp("^".concat(tr.source, "*")), Pi = new RegExp("".concat(tr.source, "*$"));
|
|
2552
|
+
function O(e, t) {
|
|
2551
2553
|
return { start: e, end: t };
|
|
2552
2554
|
}
|
|
2553
|
-
var
|
|
2555
|
+
var Ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Di = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, ki = ji ? Number.isSafeInteger : function(e) {
|
|
2554
2556
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2555
|
-
},
|
|
2557
|
+
}, Wt = !0;
|
|
2556
2558
|
try {
|
|
2557
|
-
var
|
|
2558
|
-
|
|
2559
|
+
var $i = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2560
|
+
Wt = ((It = $i.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
|
|
2559
2561
|
} catch {
|
|
2560
|
-
|
|
2562
|
+
Wt = !1;
|
|
2561
2563
|
}
|
|
2562
|
-
var
|
|
2564
|
+
var gn = Ni ? (
|
|
2563
2565
|
// Native
|
|
2564
2566
|
function(t, n, r) {
|
|
2565
2567
|
return t.startsWith(n, r);
|
|
@@ -2569,7 +2571,7 @@ var vn = Di ? (
|
|
|
2569
2571
|
function(t, n, r) {
|
|
2570
2572
|
return t.slice(r, r + n.length) === n;
|
|
2571
2573
|
}
|
|
2572
|
-
),
|
|
2574
|
+
), Zt = Ii ? String.fromCodePoint : (
|
|
2573
2575
|
// IE11
|
|
2574
2576
|
function() {
|
|
2575
2577
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2581,9 +2583,9 @@ var vn = Di ? (
|
|
|
2581
2583
|
}
|
|
2582
2584
|
return r;
|
|
2583
2585
|
}
|
|
2584
|
-
),
|
|
2586
|
+
), yn = (
|
|
2585
2587
|
// native
|
|
2586
|
-
|
|
2588
|
+
Di ? Object.fromEntries : (
|
|
2587
2589
|
// Ponyfill
|
|
2588
2590
|
function(t) {
|
|
2589
2591
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2593,7 +2595,7 @@ var vn = Di ? (
|
|
|
2593
2595
|
return n;
|
|
2594
2596
|
}
|
|
2595
2597
|
)
|
|
2596
|
-
),
|
|
2598
|
+
), or = Ui ? (
|
|
2597
2599
|
// Native
|
|
2598
2600
|
function(t, n) {
|
|
2599
2601
|
return t.codePointAt(n);
|
|
@@ -2607,7 +2609,7 @@ var vn = Di ? (
|
|
|
2607
2609
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2608
2610
|
}
|
|
2609
2611
|
}
|
|
2610
|
-
),
|
|
2612
|
+
), Vi = Fi ? (
|
|
2611
2613
|
// Native
|
|
2612
2614
|
function(t) {
|
|
2613
2615
|
return t.trimStart();
|
|
@@ -2615,9 +2617,9 @@ var vn = Di ? (
|
|
|
2615
2617
|
) : (
|
|
2616
2618
|
// Ponyfill
|
|
2617
2619
|
function(t) {
|
|
2618
|
-
return t.replace(
|
|
2620
|
+
return t.replace(Li, "");
|
|
2619
2621
|
}
|
|
2620
|
-
),
|
|
2622
|
+
), Xi = Gi ? (
|
|
2621
2623
|
// Native
|
|
2622
2624
|
function(t) {
|
|
2623
2625
|
return t.trimEnd();
|
|
@@ -2625,32 +2627,32 @@ var vn = Di ? (
|
|
|
2625
2627
|
) : (
|
|
2626
2628
|
// Ponyfill
|
|
2627
2629
|
function(t) {
|
|
2628
|
-
return t.replace(
|
|
2630
|
+
return t.replace(Pi, "");
|
|
2629
2631
|
}
|
|
2630
2632
|
);
|
|
2631
|
-
function
|
|
2633
|
+
function ar(e, t) {
|
|
2632
2634
|
return new RegExp(e, t);
|
|
2633
2635
|
}
|
|
2634
|
-
var
|
|
2635
|
-
if (
|
|
2636
|
-
var
|
|
2637
|
-
|
|
2636
|
+
var qt;
|
|
2637
|
+
if (Wt) {
|
|
2638
|
+
var vn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2639
|
+
qt = function(t, n) {
|
|
2638
2640
|
var r;
|
|
2639
|
-
|
|
2640
|
-
var i =
|
|
2641
|
+
vn.lastIndex = n;
|
|
2642
|
+
var i = vn.exec(t);
|
|
2641
2643
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2642
2644
|
};
|
|
2643
2645
|
} else
|
|
2644
|
-
|
|
2646
|
+
qt = function(t, n) {
|
|
2645
2647
|
for (var r = []; ; ) {
|
|
2646
|
-
var i =
|
|
2647
|
-
if (i === void 0 ||
|
|
2648
|
+
var i = or(t, n);
|
|
2649
|
+
if (i === void 0 || sr(i) || qi(i))
|
|
2648
2650
|
break;
|
|
2649
2651
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2650
2652
|
}
|
|
2651
|
-
return
|
|
2653
|
+
return Zt.apply(void 0, r);
|
|
2652
2654
|
};
|
|
2653
|
-
var
|
|
2655
|
+
var zi = (
|
|
2654
2656
|
/** @class */
|
|
2655
2657
|
function() {
|
|
2656
2658
|
function e(t, n) {
|
|
@@ -2675,13 +2677,13 @@ var Zi = (
|
|
|
2675
2677
|
var a = this.clonePosition();
|
|
2676
2678
|
this.bump(), i.push({
|
|
2677
2679
|
type: G.pound,
|
|
2678
|
-
location:
|
|
2680
|
+
location: O(a, this.clonePosition())
|
|
2679
2681
|
});
|
|
2680
2682
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2681
2683
|
if (r)
|
|
2682
2684
|
break;
|
|
2683
|
-
return this.error(
|
|
2684
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2685
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2686
|
+
} else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
|
|
2685
2687
|
var s = this.parseTag(t, n);
|
|
2686
2688
|
if (s.err)
|
|
2687
2689
|
return s;
|
|
@@ -2704,7 +2706,7 @@ var Zi = (
|
|
|
2704
2706
|
val: {
|
|
2705
2707
|
type: G.literal,
|
|
2706
2708
|
value: "<".concat(i, "/>"),
|
|
2707
|
-
location:
|
|
2709
|
+
location: O(r, this.clonePosition())
|
|
2708
2710
|
},
|
|
2709
2711
|
err: null
|
|
2710
2712
|
};
|
|
@@ -2714,25 +2716,25 @@ var Zi = (
|
|
|
2714
2716
|
return o;
|
|
2715
2717
|
var s = o.val, a = this.clonePosition();
|
|
2716
2718
|
if (this.bumpIf("</")) {
|
|
2717
|
-
if (this.isEOF() || !
|
|
2718
|
-
return this.error(
|
|
2719
|
-
var
|
|
2720
|
-
return i !==
|
|
2719
|
+
if (this.isEOF() || !Yt(this.char()))
|
|
2720
|
+
return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
|
|
2721
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2722
|
+
return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2721
2723
|
val: {
|
|
2722
2724
|
type: G.tag,
|
|
2723
2725
|
value: i,
|
|
2724
2726
|
children: s,
|
|
2725
|
-
location:
|
|
2727
|
+
location: O(r, this.clonePosition())
|
|
2726
2728
|
},
|
|
2727
2729
|
err: null
|
|
2728
|
-
} : this.error(
|
|
2730
|
+
} : this.error(H.INVALID_TAG, O(a, this.clonePosition())));
|
|
2729
2731
|
} else
|
|
2730
|
-
return this.error(
|
|
2732
|
+
return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
|
|
2731
2733
|
} else
|
|
2732
|
-
return this.error(
|
|
2734
|
+
return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
|
|
2733
2735
|
}, e.prototype.parseTagName = function() {
|
|
2734
2736
|
var t = this.offset();
|
|
2735
|
-
for (this.bump(); !this.isEOF() &&
|
|
2737
|
+
for (this.bump(); !this.isEOF() && Zi(this.char()); )
|
|
2736
2738
|
this.bump();
|
|
2737
2739
|
return this.message.slice(t, this.offset());
|
|
2738
2740
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2754,14 +2756,14 @@ var Zi = (
|
|
|
2754
2756
|
}
|
|
2755
2757
|
break;
|
|
2756
2758
|
}
|
|
2757
|
-
var
|
|
2759
|
+
var l = O(r, this.clonePosition());
|
|
2758
2760
|
return {
|
|
2759
|
-
val: { type: G.literal, value: i, location:
|
|
2761
|
+
val: { type: G.literal, value: i, location: l },
|
|
2760
2762
|
err: null
|
|
2761
2763
|
};
|
|
2762
2764
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2763
2765
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2764
|
-
!
|
|
2766
|
+
!Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2765
2767
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2766
2768
|
if (this.isEOF() || this.char() !== 39)
|
|
2767
2769
|
return null;
|
|
@@ -2795,23 +2797,23 @@ var Zi = (
|
|
|
2795
2797
|
n.push(r);
|
|
2796
2798
|
this.bump();
|
|
2797
2799
|
}
|
|
2798
|
-
return
|
|
2800
|
+
return Zt.apply(void 0, n);
|
|
2799
2801
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2800
2802
|
if (this.isEOF())
|
|
2801
2803
|
return null;
|
|
2802
2804
|
var r = this.char();
|
|
2803
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2805
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
|
|
2804
2806
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2805
2807
|
var r = this.clonePosition();
|
|
2806
2808
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2807
|
-
return this.error(
|
|
2809
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2808
2810
|
if (this.char() === 125)
|
|
2809
|
-
return this.bump(), this.error(
|
|
2811
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
|
|
2810
2812
|
var i = this.parseIdentifierIfPossible().value;
|
|
2811
2813
|
if (!i)
|
|
2812
|
-
return this.error(
|
|
2814
|
+
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2813
2815
|
if (this.bumpSpace(), this.isEOF())
|
|
2814
|
-
return this.error(
|
|
2816
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2815
2817
|
switch (this.char()) {
|
|
2816
2818
|
case 125:
|
|
2817
2819
|
return this.bump(), {
|
|
@@ -2819,66 +2821,66 @@ var Zi = (
|
|
|
2819
2821
|
type: G.argument,
|
|
2820
2822
|
// value does not include the opening and closing braces.
|
|
2821
2823
|
value: i,
|
|
2822
|
-
location:
|
|
2824
|
+
location: O(r, this.clonePosition())
|
|
2823
2825
|
},
|
|
2824
2826
|
err: null
|
|
2825
2827
|
};
|
|
2826
2828
|
case 44:
|
|
2827
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2829
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2828
2830
|
default:
|
|
2829
|
-
return this.error(
|
|
2831
|
+
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2830
2832
|
}
|
|
2831
2833
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2832
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2834
|
+
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2833
2835
|
this.bumpTo(i);
|
|
2834
|
-
var o = this.clonePosition(), s =
|
|
2836
|
+
var o = this.clonePosition(), s = O(t, o);
|
|
2835
2837
|
return { value: r, location: s };
|
|
2836
2838
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2837
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
2839
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2838
2840
|
switch (a) {
|
|
2839
2841
|
case "":
|
|
2840
|
-
return this.error(
|
|
2842
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, O(s, l));
|
|
2841
2843
|
case "number":
|
|
2842
2844
|
case "date":
|
|
2843
2845
|
case "time": {
|
|
2844
2846
|
this.bumpSpace();
|
|
2845
|
-
var
|
|
2847
|
+
var u = null;
|
|
2846
2848
|
if (this.bumpIf(",")) {
|
|
2847
2849
|
this.bumpSpace();
|
|
2848
|
-
var f = this.clonePosition(),
|
|
2849
|
-
if (
|
|
2850
|
-
return
|
|
2851
|
-
var
|
|
2852
|
-
if (
|
|
2853
|
-
return this.error(
|
|
2854
|
-
var
|
|
2855
|
-
|
|
2850
|
+
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2851
|
+
if (b.err)
|
|
2852
|
+
return b;
|
|
2853
|
+
var m = Xi(b.val);
|
|
2854
|
+
if (m.length === 0)
|
|
2855
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2856
|
+
var w = O(f, this.clonePosition());
|
|
2857
|
+
u = { style: m, styleLocation: w };
|
|
2856
2858
|
}
|
|
2857
|
-
var
|
|
2858
|
-
if (
|
|
2859
|
-
return
|
|
2860
|
-
var
|
|
2861
|
-
if (
|
|
2862
|
-
var
|
|
2859
|
+
var _ = this.tryParseArgumentClose(i);
|
|
2860
|
+
if (_.err)
|
|
2861
|
+
return _;
|
|
2862
|
+
var A = O(i, this.clonePosition());
|
|
2863
|
+
if (u && gn(u?.style, "::", 0)) {
|
|
2864
|
+
var I = Vi(u.style.slice(2));
|
|
2863
2865
|
if (a === "number") {
|
|
2864
|
-
var
|
|
2865
|
-
return
|
|
2866
|
-
val: { type: G.number, value: r, location:
|
|
2866
|
+
var b = this.parseNumberSkeletonFromString(I, u.styleLocation);
|
|
2867
|
+
return b.err ? b : {
|
|
2868
|
+
val: { type: G.number, value: r, location: A, style: b.val },
|
|
2867
2869
|
err: null
|
|
2868
2870
|
};
|
|
2869
2871
|
} else {
|
|
2870
|
-
if (
|
|
2871
|
-
return this.error(
|
|
2872
|
-
var W =
|
|
2873
|
-
this.locale && (W =
|
|
2874
|
-
var
|
|
2875
|
-
type:
|
|
2872
|
+
if (I.length === 0)
|
|
2873
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
|
|
2874
|
+
var W = I;
|
|
2875
|
+
this.locale && (W = Mi(I, this.locale));
|
|
2876
|
+
var m = {
|
|
2877
|
+
type: $e.dateTime,
|
|
2876
2878
|
pattern: W,
|
|
2877
|
-
location:
|
|
2878
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2879
|
+
location: u.styleLocation,
|
|
2880
|
+
parsedOptions: this.shouldParseSkeletons ? Si(W) : {}
|
|
2879
2881
|
}, V = a === "date" ? G.date : G.time;
|
|
2880
2882
|
return {
|
|
2881
|
-
val: { type: V, value: r, location:
|
|
2883
|
+
val: { type: V, value: r, location: A, style: m },
|
|
2882
2884
|
err: null
|
|
2883
2885
|
};
|
|
2884
2886
|
}
|
|
@@ -2887,8 +2889,8 @@ var Zi = (
|
|
|
2887
2889
|
val: {
|
|
2888
2890
|
type: a === "number" ? G.number : a === "date" ? G.date : G.time,
|
|
2889
2891
|
value: r,
|
|
2890
|
-
location:
|
|
2891
|
-
style: (o =
|
|
2892
|
+
location: A,
|
|
2893
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2892
2894
|
},
|
|
2893
2895
|
err: null
|
|
2894
2896
|
};
|
|
@@ -2896,52 +2898,52 @@ var Zi = (
|
|
|
2896
2898
|
case "plural":
|
|
2897
2899
|
case "selectordinal":
|
|
2898
2900
|
case "select": {
|
|
2899
|
-
var
|
|
2901
|
+
var R = this.clonePosition();
|
|
2900
2902
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2901
|
-
return this.error(
|
|
2903
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, L({}, R)));
|
|
2902
2904
|
this.bumpSpace();
|
|
2903
|
-
var
|
|
2904
|
-
if (a !== "select" &&
|
|
2905
|
+
var D = this.parseIdentifierIfPossible(), k = 0;
|
|
2906
|
+
if (a !== "select" && D.value === "offset") {
|
|
2905
2907
|
if (!this.bumpIf(":"))
|
|
2906
|
-
return this.error(
|
|
2908
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2907
2909
|
this.bumpSpace();
|
|
2908
|
-
var
|
|
2909
|
-
if (
|
|
2910
|
-
return
|
|
2911
|
-
this.bumpSpace(),
|
|
2910
|
+
var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2911
|
+
if (b.err)
|
|
2912
|
+
return b;
|
|
2913
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
|
|
2912
2914
|
}
|
|
2913
|
-
var
|
|
2914
|
-
if (
|
|
2915
|
-
return
|
|
2916
|
-
var
|
|
2917
|
-
if (
|
|
2918
|
-
return
|
|
2919
|
-
var
|
|
2915
|
+
var oe = this.tryParsePluralOrSelectOptions(t, a, n, D);
|
|
2916
|
+
if (oe.err)
|
|
2917
|
+
return oe;
|
|
2918
|
+
var _ = this.tryParseArgumentClose(i);
|
|
2919
|
+
if (_.err)
|
|
2920
|
+
return _;
|
|
2921
|
+
var Z = O(i, this.clonePosition());
|
|
2920
2922
|
return a === "select" ? {
|
|
2921
2923
|
val: {
|
|
2922
2924
|
type: G.select,
|
|
2923
2925
|
value: r,
|
|
2924
|
-
options:
|
|
2925
|
-
location:
|
|
2926
|
+
options: yn(oe.val),
|
|
2927
|
+
location: Z
|
|
2926
2928
|
},
|
|
2927
2929
|
err: null
|
|
2928
2930
|
} : {
|
|
2929
2931
|
val: {
|
|
2930
2932
|
type: G.plural,
|
|
2931
2933
|
value: r,
|
|
2932
|
-
options:
|
|
2933
|
-
offset:
|
|
2934
|
+
options: yn(oe.val),
|
|
2935
|
+
offset: k,
|
|
2934
2936
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2935
|
-
location:
|
|
2937
|
+
location: Z
|
|
2936
2938
|
},
|
|
2937
2939
|
err: null
|
|
2938
2940
|
};
|
|
2939
2941
|
}
|
|
2940
2942
|
default:
|
|
2941
|
-
return this.error(
|
|
2943
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, O(s, l));
|
|
2942
2944
|
}
|
|
2943
2945
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2944
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2946
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2945
2947
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2946
2948
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2947
2949
|
var r = this.char();
|
|
@@ -2950,7 +2952,7 @@ var Zi = (
|
|
|
2950
2952
|
this.bump();
|
|
2951
2953
|
var i = this.clonePosition();
|
|
2952
2954
|
if (!this.bumpUntil("'"))
|
|
2953
|
-
return this.error(
|
|
2955
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
|
|
2954
2956
|
this.bump();
|
|
2955
2957
|
break;
|
|
2956
2958
|
}
|
|
@@ -2980,52 +2982,52 @@ var Zi = (
|
|
|
2980
2982
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2981
2983
|
var r = [];
|
|
2982
2984
|
try {
|
|
2983
|
-
r =
|
|
2985
|
+
r = Bi(t);
|
|
2984
2986
|
} catch {
|
|
2985
|
-
return this.error(
|
|
2987
|
+
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
2986
2988
|
}
|
|
2987
2989
|
return {
|
|
2988
2990
|
val: {
|
|
2989
|
-
type:
|
|
2991
|
+
type: $e.number,
|
|
2990
2992
|
tokens: r,
|
|
2991
2993
|
location: n,
|
|
2992
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2994
|
+
parsedOptions: this.shouldParseSkeletons ? Oi(r) : {}
|
|
2993
2995
|
},
|
|
2994
2996
|
err: null
|
|
2995
2997
|
};
|
|
2996
2998
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2997
|
-
for (var o, s = !1, a = [],
|
|
2998
|
-
if (
|
|
2999
|
-
var
|
|
2999
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
3000
|
+
if (u.length === 0) {
|
|
3001
|
+
var b = this.clonePosition();
|
|
3000
3002
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3001
|
-
var
|
|
3002
|
-
if (
|
|
3003
|
-
return
|
|
3004
|
-
f =
|
|
3003
|
+
var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3004
|
+
if (m.err)
|
|
3005
|
+
return m;
|
|
3006
|
+
f = O(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
|
|
3005
3007
|
} else
|
|
3006
3008
|
break;
|
|
3007
3009
|
}
|
|
3008
|
-
if (
|
|
3009
|
-
return this.error(n === "select" ?
|
|
3010
|
-
|
|
3011
|
-
var
|
|
3010
|
+
if (l.has(u))
|
|
3011
|
+
return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3012
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3013
|
+
var w = this.clonePosition();
|
|
3012
3014
|
if (!this.bumpIf("{"))
|
|
3013
|
-
return this.error(n === "select" ?
|
|
3014
|
-
var
|
|
3015
|
-
if (
|
|
3016
|
-
return
|
|
3017
|
-
var
|
|
3018
|
-
if (
|
|
3019
|
-
return
|
|
3015
|
+
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3016
|
+
var _ = this.parseMessage(t + 1, n, r);
|
|
3017
|
+
if (_.err)
|
|
3018
|
+
return _;
|
|
3019
|
+
var A = this.tryParseArgumentClose(w);
|
|
3020
|
+
if (A.err)
|
|
3021
|
+
return A;
|
|
3020
3022
|
a.push([
|
|
3021
|
-
|
|
3023
|
+
u,
|
|
3022
3024
|
{
|
|
3023
|
-
value:
|
|
3024
|
-
location:
|
|
3025
|
+
value: _.val,
|
|
3026
|
+
location: O(w, this.clonePosition())
|
|
3025
3027
|
}
|
|
3026
|
-
]),
|
|
3028
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
3027
3029
|
}
|
|
3028
|
-
return a.length === 0 ? this.error(n === "select" ?
|
|
3030
|
+
return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3029
3031
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3030
3032
|
var r = 1, i = this.clonePosition();
|
|
3031
3033
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3036,8 +3038,8 @@ var Zi = (
|
|
|
3036
3038
|
else
|
|
3037
3039
|
break;
|
|
3038
3040
|
}
|
|
3039
|
-
var
|
|
3040
|
-
return o ? (s *= r,
|
|
3041
|
+
var l = O(i, this.clonePosition());
|
|
3042
|
+
return o ? (s *= r, ki(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3041
3043
|
}, e.prototype.offset = function() {
|
|
3042
3044
|
return this.position.offset;
|
|
3043
3045
|
}, e.prototype.isEOF = function() {
|
|
@@ -3052,7 +3054,7 @@ var Zi = (
|
|
|
3052
3054
|
var t = this.position.offset;
|
|
3053
3055
|
if (t >= this.message.length)
|
|
3054
3056
|
throw Error("out of bound");
|
|
3055
|
-
var n =
|
|
3057
|
+
var n = or(this.message, t);
|
|
3056
3058
|
if (n === void 0)
|
|
3057
3059
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3058
3060
|
return n;
|
|
@@ -3071,7 +3073,7 @@ var Zi = (
|
|
|
3071
3073
|
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);
|
|
3072
3074
|
}
|
|
3073
3075
|
}, e.prototype.bumpIf = function(t) {
|
|
3074
|
-
if (
|
|
3076
|
+
if (gn(this.message, t, this.offset())) {
|
|
3075
3077
|
for (var n = 0; n < t.length; n++)
|
|
3076
3078
|
this.bump();
|
|
3077
3079
|
return !0;
|
|
@@ -3093,7 +3095,7 @@ var Zi = (
|
|
|
3093
3095
|
break;
|
|
3094
3096
|
}
|
|
3095
3097
|
}, e.prototype.bumpSpace = function() {
|
|
3096
|
-
for (; !this.isEOF() &&
|
|
3098
|
+
for (; !this.isEOF() && sr(this.char()); )
|
|
3097
3099
|
this.bump();
|
|
3098
3100
|
}, e.prototype.peek = function() {
|
|
3099
3101
|
if (this.isEOF())
|
|
@@ -3103,47 +3105,47 @@ var Zi = (
|
|
|
3103
3105
|
}, e;
|
|
3104
3106
|
}()
|
|
3105
3107
|
);
|
|
3106
|
-
function
|
|
3108
|
+
function Yt(e) {
|
|
3107
3109
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3108
3110
|
}
|
|
3109
|
-
function
|
|
3110
|
-
return
|
|
3111
|
+
function Wi(e) {
|
|
3112
|
+
return Yt(e) || e === 47;
|
|
3111
3113
|
}
|
|
3112
|
-
function
|
|
3114
|
+
function Zi(e) {
|
|
3113
3115
|
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;
|
|
3114
3116
|
}
|
|
3115
|
-
function
|
|
3117
|
+
function sr(e) {
|
|
3116
3118
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3117
3119
|
}
|
|
3118
|
-
function
|
|
3120
|
+
function qi(e) {
|
|
3119
3121
|
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;
|
|
3120
3122
|
}
|
|
3121
|
-
function
|
|
3123
|
+
function Qt(e) {
|
|
3122
3124
|
e.forEach(function(t) {
|
|
3123
|
-
if (delete t.location,
|
|
3125
|
+
if (delete t.location, Qn(t) || Jn(t))
|
|
3124
3126
|
for (var n in t.options)
|
|
3125
|
-
delete t.options[n].location,
|
|
3127
|
+
delete t.options[n].location, Qt(t.options[n].value);
|
|
3126
3128
|
else
|
|
3127
|
-
|
|
3129
|
+
Zn(t) && er(t.style) || (qn(t) || Yn(t)) && zt(t.style) ? delete t.style.location : Kn(t) && Qt(t.children);
|
|
3128
3130
|
});
|
|
3129
3131
|
}
|
|
3130
|
-
function
|
|
3131
|
-
t === void 0 && (t = {}), t =
|
|
3132
|
-
var n = new
|
|
3132
|
+
function Yi(e, t) {
|
|
3133
|
+
t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3134
|
+
var n = new zi(e, t).parse();
|
|
3133
3135
|
if (n.err) {
|
|
3134
|
-
var r = SyntaxError(
|
|
3136
|
+
var r = SyntaxError(H[n.err.kind]);
|
|
3135
3137
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3136
3138
|
}
|
|
3137
|
-
return t?.captureLocation ||
|
|
3139
|
+
return t?.captureLocation || Qt(n.val), n.val;
|
|
3138
3140
|
}
|
|
3139
|
-
var
|
|
3141
|
+
var Ve;
|
|
3140
3142
|
(function(e) {
|
|
3141
3143
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3142
|
-
})(
|
|
3144
|
+
})(Ve || (Ve = {}));
|
|
3143
3145
|
var St = (
|
|
3144
3146
|
/** @class */
|
|
3145
3147
|
function(e) {
|
|
3146
|
-
|
|
3148
|
+
Te(t, e);
|
|
3147
3149
|
function t(n, r, i) {
|
|
3148
3150
|
var o = e.call(this, n) || this;
|
|
3149
3151
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3152,153 +3154,153 @@ var St = (
|
|
|
3152
3154
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3153
3155
|
}, t;
|
|
3154
3156
|
}(Error)
|
|
3155
|
-
),
|
|
3157
|
+
), _n = (
|
|
3156
3158
|
/** @class */
|
|
3157
3159
|
function(e) {
|
|
3158
|
-
|
|
3160
|
+
Te(t, e);
|
|
3159
3161
|
function t(n, r, i, o) {
|
|
3160
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3162
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
|
|
3161
3163
|
}
|
|
3162
3164
|
return t;
|
|
3163
3165
|
}(St)
|
|
3164
|
-
),
|
|
3166
|
+
), Qi = (
|
|
3165
3167
|
/** @class */
|
|
3166
3168
|
function(e) {
|
|
3167
|
-
|
|
3169
|
+
Te(t, e);
|
|
3168
3170
|
function t(n, r, i) {
|
|
3169
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3171
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ve.INVALID_VALUE, i) || this;
|
|
3170
3172
|
}
|
|
3171
3173
|
return t;
|
|
3172
3174
|
}(St)
|
|
3173
|
-
),
|
|
3175
|
+
), Ji = (
|
|
3174
3176
|
/** @class */
|
|
3175
3177
|
function(e) {
|
|
3176
|
-
|
|
3178
|
+
Te(t, e);
|
|
3177
3179
|
function t(n, r) {
|
|
3178
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3180
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ve.MISSING_VALUE, r) || this;
|
|
3179
3181
|
}
|
|
3180
3182
|
return t;
|
|
3181
3183
|
}(St)
|
|
3182
|
-
),
|
|
3184
|
+
), ie;
|
|
3183
3185
|
(function(e) {
|
|
3184
3186
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3185
|
-
})(
|
|
3186
|
-
function
|
|
3187
|
+
})(ie || (ie = {}));
|
|
3188
|
+
function Ki(e) {
|
|
3187
3189
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3188
3190
|
var r = t[t.length - 1];
|
|
3189
|
-
return !r || r.type !==
|
|
3191
|
+
return !r || r.type !== ie.literal || n.type !== ie.literal ? t.push(n) : r.value += n.value, t;
|
|
3190
3192
|
}, []);
|
|
3191
3193
|
}
|
|
3192
|
-
function
|
|
3194
|
+
function eo(e) {
|
|
3193
3195
|
return typeof e == "function";
|
|
3194
3196
|
}
|
|
3195
3197
|
function bt(e, t, n, r, i, o, s) {
|
|
3196
|
-
if (e.length === 1 &&
|
|
3198
|
+
if (e.length === 1 && dn(e[0]))
|
|
3197
3199
|
return [
|
|
3198
3200
|
{
|
|
3199
|
-
type:
|
|
3201
|
+
type: ie.literal,
|
|
3200
3202
|
value: e[0].value
|
|
3201
3203
|
}
|
|
3202
3204
|
];
|
|
3203
|
-
for (var a = [],
|
|
3204
|
-
var f = l
|
|
3205
|
-
if (
|
|
3205
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3206
|
+
var f = u[l];
|
|
3207
|
+
if (dn(f)) {
|
|
3206
3208
|
a.push({
|
|
3207
|
-
type:
|
|
3209
|
+
type: ie.literal,
|
|
3208
3210
|
value: f.value
|
|
3209
3211
|
});
|
|
3210
3212
|
continue;
|
|
3211
3213
|
}
|
|
3212
|
-
if (
|
|
3214
|
+
if (xi(f)) {
|
|
3213
3215
|
typeof o == "number" && a.push({
|
|
3214
|
-
type:
|
|
3216
|
+
type: ie.literal,
|
|
3215
3217
|
value: n.getNumberFormat(t).format(o)
|
|
3216
3218
|
});
|
|
3217
3219
|
continue;
|
|
3218
3220
|
}
|
|
3219
|
-
var
|
|
3220
|
-
if (!(i &&
|
|
3221
|
-
throw new
|
|
3222
|
-
var
|
|
3223
|
-
if (
|
|
3224
|
-
(!
|
|
3225
|
-
type: typeof
|
|
3226
|
-
value:
|
|
3221
|
+
var b = f.value;
|
|
3222
|
+
if (!(i && b in i))
|
|
3223
|
+
throw new Ji(b, s);
|
|
3224
|
+
var m = i[b];
|
|
3225
|
+
if (Ei(f)) {
|
|
3226
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3227
|
+
type: typeof m == "string" ? ie.literal : ie.object,
|
|
3228
|
+
value: m
|
|
3227
3229
|
});
|
|
3228
3230
|
continue;
|
|
3229
3231
|
}
|
|
3230
|
-
if (
|
|
3231
|
-
var
|
|
3232
|
+
if (qn(f)) {
|
|
3233
|
+
var w = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
|
|
3232
3234
|
a.push({
|
|
3233
|
-
type:
|
|
3234
|
-
value: n.getDateTimeFormat(t,
|
|
3235
|
+
type: ie.literal,
|
|
3236
|
+
value: n.getDateTimeFormat(t, w).format(m)
|
|
3235
3237
|
});
|
|
3236
3238
|
continue;
|
|
3237
3239
|
}
|
|
3238
|
-
if (
|
|
3239
|
-
var
|
|
3240
|
+
if (Yn(f)) {
|
|
3241
|
+
var w = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3240
3242
|
a.push({
|
|
3241
|
-
type:
|
|
3242
|
-
value: n.getDateTimeFormat(t,
|
|
3243
|
+
type: ie.literal,
|
|
3244
|
+
value: n.getDateTimeFormat(t, w).format(m)
|
|
3243
3245
|
});
|
|
3244
3246
|
continue;
|
|
3245
3247
|
}
|
|
3246
|
-
if (
|
|
3247
|
-
var
|
|
3248
|
-
|
|
3249
|
-
type:
|
|
3250
|
-
value: n.getNumberFormat(t,
|
|
3248
|
+
if (Zn(f)) {
|
|
3249
|
+
var w = typeof f.style == "string" ? r.number[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
|
|
3250
|
+
w && w.scale && (m = m * (w.scale || 1)), a.push({
|
|
3251
|
+
type: ie.literal,
|
|
3252
|
+
value: n.getNumberFormat(t, w).format(m)
|
|
3251
3253
|
});
|
|
3252
3254
|
continue;
|
|
3253
3255
|
}
|
|
3254
|
-
if (
|
|
3255
|
-
var
|
|
3256
|
-
if (!
|
|
3257
|
-
throw new
|
|
3258
|
-
var W = bt(
|
|
3259
|
-
return
|
|
3256
|
+
if (Kn(f)) {
|
|
3257
|
+
var _ = f.children, A = f.value, I = i[A];
|
|
3258
|
+
if (!eo(I))
|
|
3259
|
+
throw new Qi(A, "function", s);
|
|
3260
|
+
var W = bt(_, t, n, r, i, o), V = I(W.map(function(k) {
|
|
3261
|
+
return k.value;
|
|
3260
3262
|
}));
|
|
3261
|
-
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(
|
|
3263
|
+
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(k) {
|
|
3262
3264
|
return {
|
|
3263
|
-
type: typeof
|
|
3264
|
-
value:
|
|
3265
|
+
type: typeof k == "string" ? ie.literal : ie.object,
|
|
3266
|
+
value: k
|
|
3265
3267
|
};
|
|
3266
3268
|
}));
|
|
3267
3269
|
}
|
|
3268
|
-
if (
|
|
3269
|
-
var
|
|
3270
|
-
if (!
|
|
3271
|
-
throw new
|
|
3272
|
-
a.push.apply(a, bt(
|
|
3270
|
+
if (Qn(f)) {
|
|
3271
|
+
var R = f.options[m] || f.options.other;
|
|
3272
|
+
if (!R)
|
|
3273
|
+
throw new _n(f.value, m, Object.keys(f.options), s);
|
|
3274
|
+
a.push.apply(a, bt(R.value, t, n, r, i));
|
|
3273
3275
|
continue;
|
|
3274
3276
|
}
|
|
3275
|
-
if (
|
|
3276
|
-
var
|
|
3277
|
-
if (!
|
|
3277
|
+
if (Jn(f)) {
|
|
3278
|
+
var R = f.options["=".concat(m)];
|
|
3279
|
+
if (!R) {
|
|
3278
3280
|
if (!Intl.PluralRules)
|
|
3279
3281
|
throw new St(`Intl.PluralRules is not available in this environment.
|
|
3280
3282
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3281
|
-
`,
|
|
3282
|
-
var
|
|
3283
|
-
|
|
3283
|
+
`, Ve.MISSING_INTL_API, s);
|
|
3284
|
+
var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
|
|
3285
|
+
R = f.options[D] || f.options.other;
|
|
3284
3286
|
}
|
|
3285
|
-
if (!
|
|
3286
|
-
throw new
|
|
3287
|
-
a.push.apply(a, bt(
|
|
3287
|
+
if (!R)
|
|
3288
|
+
throw new _n(f.value, m, Object.keys(f.options), s);
|
|
3289
|
+
a.push.apply(a, bt(R.value, t, n, r, i, m - (f.offset || 0)));
|
|
3288
3290
|
continue;
|
|
3289
3291
|
}
|
|
3290
3292
|
}
|
|
3291
|
-
return
|
|
3293
|
+
return Ki(a);
|
|
3292
3294
|
}
|
|
3293
|
-
function
|
|
3294
|
-
return t ?
|
|
3295
|
-
return n[r] =
|
|
3295
|
+
function to(e, t) {
|
|
3296
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3297
|
+
return n[r] = L(L({}, e[r]), t[r] || {}), n;
|
|
3296
3298
|
}, {})) : e;
|
|
3297
3299
|
}
|
|
3298
|
-
function
|
|
3300
|
+
function no(e, t) {
|
|
3299
3301
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3300
|
-
return n[r] =
|
|
3301
|
-
},
|
|
3302
|
+
return n[r] = to(e[r], t[r]), n;
|
|
3303
|
+
}, L({}, e)) : e;
|
|
3302
3304
|
}
|
|
3303
3305
|
function Dt(e) {
|
|
3304
3306
|
return {
|
|
@@ -3314,7 +3316,7 @@ function Dt(e) {
|
|
|
3314
3316
|
}
|
|
3315
3317
|
};
|
|
3316
3318
|
}
|
|
3317
|
-
function
|
|
3319
|
+
function ro(e) {
|
|
3318
3320
|
return e === void 0 && (e = {
|
|
3319
3321
|
number: {},
|
|
3320
3322
|
dateTime: {},
|
|
@@ -3323,30 +3325,30 @@ function oo(e) {
|
|
|
3323
3325
|
getNumberFormat: Pt(function() {
|
|
3324
3326
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3325
3327
|
n[r] = arguments[r];
|
|
3326
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3328
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], n, !1)))();
|
|
3327
3329
|
}, {
|
|
3328
3330
|
cache: Dt(e.number),
|
|
3329
|
-
strategy:
|
|
3331
|
+
strategy: Nt.variadic
|
|
3330
3332
|
}),
|
|
3331
3333
|
getDateTimeFormat: Pt(function() {
|
|
3332
3334
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3333
3335
|
n[r] = arguments[r];
|
|
3334
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3336
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], n, !1)))();
|
|
3335
3337
|
}, {
|
|
3336
3338
|
cache: Dt(e.dateTime),
|
|
3337
|
-
strategy:
|
|
3339
|
+
strategy: Nt.variadic
|
|
3338
3340
|
}),
|
|
3339
3341
|
getPluralRules: Pt(function() {
|
|
3340
3342
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3341
3343
|
n[r] = arguments[r];
|
|
3342
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3344
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], n, !1)))();
|
|
3343
3345
|
}, {
|
|
3344
3346
|
cache: Dt(e.pluralRules),
|
|
3345
|
-
strategy:
|
|
3347
|
+
strategy: Nt.variadic
|
|
3346
3348
|
})
|
|
3347
3349
|
};
|
|
3348
3350
|
}
|
|
3349
|
-
var
|
|
3351
|
+
var io = (
|
|
3350
3352
|
/** @class */
|
|
3351
3353
|
function() {
|
|
3352
3354
|
function e(t, n, r, i) {
|
|
@@ -3356,20 +3358,20 @@ var ao = (
|
|
|
3356
3358
|
number: {},
|
|
3357
3359
|
dateTime: {},
|
|
3358
3360
|
pluralRules: {}
|
|
3359
|
-
}, this.format = function(
|
|
3360
|
-
var
|
|
3361
|
-
if (
|
|
3362
|
-
return
|
|
3363
|
-
var f =
|
|
3364
|
-
return !
|
|
3361
|
+
}, this.format = function(l) {
|
|
3362
|
+
var u = o.formatToParts(l);
|
|
3363
|
+
if (u.length === 1)
|
|
3364
|
+
return u[0].value;
|
|
3365
|
+
var f = u.reduce(function(b, m) {
|
|
3366
|
+
return !b.length || m.type !== ie.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
|
|
3365
3367
|
}, []);
|
|
3366
3368
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3367
|
-
}, this.formatToParts = function(
|
|
3368
|
-
return bt(o.ast, o.locales, o.formatters, o.formats,
|
|
3369
|
+
}, this.formatToParts = function(l) {
|
|
3370
|
+
return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3369
3371
|
}, this.resolvedOptions = function() {
|
|
3370
|
-
var
|
|
3372
|
+
var l;
|
|
3371
3373
|
return {
|
|
3372
|
-
locale: ((
|
|
3374
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3373
3375
|
};
|
|
3374
3376
|
}, this.getAst = function() {
|
|
3375
3377
|
return o.ast;
|
|
@@ -3378,13 +3380,13 @@ var ao = (
|
|
|
3378
3380
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3379
3381
|
var s = i || {};
|
|
3380
3382
|
s.formatters;
|
|
3381
|
-
var a =
|
|
3382
|
-
this.ast = e.__parse(t,
|
|
3383
|
+
var a = di(s, ["formatters"]);
|
|
3384
|
+
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3383
3385
|
} else
|
|
3384
3386
|
this.ast = t;
|
|
3385
3387
|
if (!Array.isArray(this.ast))
|
|
3386
3388
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3387
|
-
this.formats =
|
|
3389
|
+
this.formats = no(e.formats, r), this.formatters = i && i.formatters || ro(this.formatterCache);
|
|
3388
3390
|
}
|
|
3389
3391
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3390
3392
|
get: function() {
|
|
@@ -3397,7 +3399,7 @@ var ao = (
|
|
|
3397
3399
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3398
3400
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3399
3401
|
}
|
|
3400
|
-
}, e.__parse =
|
|
3402
|
+
}, e.__parse = Yi, e.formats = {
|
|
3401
3403
|
number: {
|
|
3402
3404
|
integer: {
|
|
3403
3405
|
maximumFractionDigits: 0
|
|
@@ -3458,7 +3460,7 @@ var ao = (
|
|
|
3458
3460
|
}, e;
|
|
3459
3461
|
}()
|
|
3460
3462
|
);
|
|
3461
|
-
function
|
|
3463
|
+
function oo(e, t) {
|
|
3462
3464
|
if (t == null)
|
|
3463
3465
|
return;
|
|
3464
3466
|
if (t in e)
|
|
@@ -3479,92 +3481,92 @@ function so(e, t) {
|
|
|
3479
3481
|
r = void 0;
|
|
3480
3482
|
return r;
|
|
3481
3483
|
}
|
|
3482
|
-
const
|
|
3484
|
+
const Ce = {}, ao = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), ur = (e, t) => {
|
|
3483
3485
|
if (t == null)
|
|
3484
3486
|
return;
|
|
3485
|
-
if (t in
|
|
3486
|
-
return
|
|
3487
|
+
if (t in Ce && e in Ce[t])
|
|
3488
|
+
return Ce[t][e];
|
|
3487
3489
|
const n = Tt(t);
|
|
3488
3490
|
for (let r = 0; r < n.length; r++) {
|
|
3489
|
-
const i = n[r], o =
|
|
3491
|
+
const i = n[r], o = uo(i, e);
|
|
3490
3492
|
if (o)
|
|
3491
|
-
return
|
|
3493
|
+
return ao(e, t, o);
|
|
3492
3494
|
}
|
|
3493
3495
|
};
|
|
3494
|
-
let
|
|
3496
|
+
let an;
|
|
3495
3497
|
const at = wt({});
|
|
3496
|
-
function
|
|
3497
|
-
return
|
|
3498
|
+
function so(e) {
|
|
3499
|
+
return an[e] || null;
|
|
3498
3500
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return e in
|
|
3501
|
+
function lr(e) {
|
|
3502
|
+
return e in an;
|
|
3501
3503
|
}
|
|
3502
|
-
function
|
|
3503
|
-
if (!
|
|
3504
|
+
function uo(e, t) {
|
|
3505
|
+
if (!lr(e))
|
|
3504
3506
|
return null;
|
|
3505
|
-
const n =
|
|
3506
|
-
return
|
|
3507
|
+
const n = so(e);
|
|
3508
|
+
return oo(n, t);
|
|
3507
3509
|
}
|
|
3508
|
-
function
|
|
3510
|
+
function lo(e) {
|
|
3509
3511
|
if (e == null)
|
|
3510
3512
|
return;
|
|
3511
3513
|
const t = Tt(e);
|
|
3512
3514
|
for (let n = 0; n < t.length; n++) {
|
|
3513
3515
|
const r = t[n];
|
|
3514
|
-
if (
|
|
3516
|
+
if (lr(r))
|
|
3515
3517
|
return r;
|
|
3516
3518
|
}
|
|
3517
3519
|
}
|
|
3518
|
-
function
|
|
3519
|
-
delete
|
|
3520
|
+
function cr(e, ...t) {
|
|
3521
|
+
delete Ce[e], at.update((n) => (n[e] = fi.all([n[e] || {}, ...t]), n));
|
|
3520
3522
|
}
|
|
3521
|
-
|
|
3523
|
+
We(
|
|
3522
3524
|
[at],
|
|
3523
3525
|
([e]) => Object.keys(e)
|
|
3524
3526
|
);
|
|
3525
|
-
at.subscribe((e) =>
|
|
3527
|
+
at.subscribe((e) => an = e);
|
|
3526
3528
|
const gt = {};
|
|
3527
|
-
function
|
|
3529
|
+
function co(e, t) {
|
|
3528
3530
|
gt[e].delete(t), gt[e].size === 0 && delete gt[e];
|
|
3529
3531
|
}
|
|
3530
|
-
function
|
|
3532
|
+
function hr(e) {
|
|
3531
3533
|
return gt[e];
|
|
3532
3534
|
}
|
|
3533
|
-
function
|
|
3535
|
+
function ho(e) {
|
|
3534
3536
|
return Tt(e).map((t) => {
|
|
3535
|
-
const n =
|
|
3537
|
+
const n = hr(t);
|
|
3536
3538
|
return [t, n ? [...n] : []];
|
|
3537
3539
|
}).filter(([, t]) => t.length > 0);
|
|
3538
3540
|
}
|
|
3539
|
-
function
|
|
3541
|
+
function Jt(e) {
|
|
3540
3542
|
return e == null ? !1 : Tt(e).some(
|
|
3541
3543
|
(t) => {
|
|
3542
3544
|
var n;
|
|
3543
|
-
return (n =
|
|
3545
|
+
return (n = hr(t)) == null ? void 0 : n.size;
|
|
3544
3546
|
}
|
|
3545
3547
|
);
|
|
3546
3548
|
}
|
|
3547
|
-
function
|
|
3549
|
+
function fo(e, t) {
|
|
3548
3550
|
return Promise.all(
|
|
3549
|
-
t.map((r) => (
|
|
3550
|
-
).then((r) =>
|
|
3551
|
+
t.map((r) => (co(e, r), r().then((i) => i.default || i)))
|
|
3552
|
+
).then((r) => cr(e, ...r));
|
|
3551
3553
|
}
|
|
3552
3554
|
const tt = {};
|
|
3553
|
-
function
|
|
3554
|
-
if (!
|
|
3555
|
+
function fr(e) {
|
|
3556
|
+
if (!Jt(e))
|
|
3555
3557
|
return e in tt ? tt[e] : Promise.resolve();
|
|
3556
|
-
const t =
|
|
3558
|
+
const t = ho(e);
|
|
3557
3559
|
return tt[e] = Promise.all(
|
|
3558
3560
|
t.map(
|
|
3559
|
-
([n, r]) =>
|
|
3561
|
+
([n, r]) => fo(n, r)
|
|
3560
3562
|
)
|
|
3561
3563
|
).then(() => {
|
|
3562
|
-
if (
|
|
3563
|
-
return
|
|
3564
|
+
if (Jt(e))
|
|
3565
|
+
return fr(e);
|
|
3564
3566
|
delete tt[e];
|
|
3565
3567
|
}), tt[e];
|
|
3566
3568
|
}
|
|
3567
|
-
const
|
|
3569
|
+
const po = {
|
|
3568
3570
|
number: {
|
|
3569
3571
|
scientific: { notation: "scientific" },
|
|
3570
3572
|
engineering: { notation: "engineering" },
|
|
@@ -3593,57 +3595,57 @@ const bo = {
|
|
|
3593
3595
|
timeZoneName: "short"
|
|
3594
3596
|
}
|
|
3595
3597
|
}
|
|
3596
|
-
},
|
|
3598
|
+
}, mo = {
|
|
3597
3599
|
fallbackLocale: null,
|
|
3598
3600
|
loadingDelay: 200,
|
|
3599
|
-
formats:
|
|
3601
|
+
formats: po,
|
|
3600
3602
|
warnOnMissingMessages: !0,
|
|
3601
3603
|
handleMissingMessage: void 0,
|
|
3602
3604
|
ignoreTag: !0
|
|
3603
|
-
},
|
|
3604
|
-
function
|
|
3605
|
-
return
|
|
3605
|
+
}, bo = mo;
|
|
3606
|
+
function Xe() {
|
|
3607
|
+
return bo;
|
|
3606
3608
|
}
|
|
3607
3609
|
const Ut = wt(!1);
|
|
3608
|
-
var
|
|
3609
|
-
for (var n in t
|
|
3610
|
-
|
|
3611
|
-
if (
|
|
3612
|
-
for (var n of
|
|
3613
|
-
|
|
3610
|
+
var go = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Eo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xo = (e, t) => {
|
|
3611
|
+
for (var n in t)
|
|
3612
|
+
_o.call(t, n) && xn(e, n, t[n]);
|
|
3613
|
+
if (En)
|
|
3614
|
+
for (var n of En(t))
|
|
3615
|
+
Eo.call(t, n) && xn(e, n, t[n]);
|
|
3614
3616
|
return e;
|
|
3615
|
-
},
|
|
3616
|
-
let
|
|
3617
|
+
}, wo = (e, t) => yo(e, vo(t));
|
|
3618
|
+
let Kt;
|
|
3617
3619
|
const Et = wt(null);
|
|
3618
|
-
function
|
|
3620
|
+
function wn(e) {
|
|
3619
3621
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3620
3622
|
}
|
|
3621
|
-
function Tt(e, t =
|
|
3622
|
-
const n =
|
|
3623
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3623
|
+
function Tt(e, t = Xe().fallbackLocale) {
|
|
3624
|
+
const n = wn(e);
|
|
3625
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...wn(t)])] : n;
|
|
3624
3626
|
}
|
|
3625
3627
|
function Re() {
|
|
3626
|
-
return
|
|
3628
|
+
return Kt ?? void 0;
|
|
3627
3629
|
}
|
|
3628
3630
|
Et.subscribe((e) => {
|
|
3629
|
-
|
|
3631
|
+
Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3630
3632
|
});
|
|
3631
|
-
const
|
|
3632
|
-
if (e &&
|
|
3633
|
-
const { loadingDelay: t } =
|
|
3633
|
+
const So = (e) => {
|
|
3634
|
+
if (e && lo(e) && Jt(e)) {
|
|
3635
|
+
const { loadingDelay: t } = Xe();
|
|
3634
3636
|
let n;
|
|
3635
3637
|
return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
|
|
3636
3638
|
() => Ut.set(!0),
|
|
3637
3639
|
t
|
|
3638
|
-
) : Ut.set(!0),
|
|
3640
|
+
) : Ut.set(!0), fr(e).then(() => {
|
|
3639
3641
|
Et.set(e);
|
|
3640
3642
|
}).finally(() => {
|
|
3641
3643
|
clearTimeout(n), Ut.set(!1);
|
|
3642
3644
|
});
|
|
3643
3645
|
}
|
|
3644
3646
|
return Et.set(e);
|
|
3645
|
-
},
|
|
3646
|
-
set:
|
|
3647
|
+
}, Ze = wo(xo({}, Et), {
|
|
3648
|
+
set: So
|
|
3647
3649
|
}), Bt = (e) => {
|
|
3648
3650
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3649
3651
|
return (r) => {
|
|
@@ -3651,120 +3653,120 @@ const Bo = (e) => {
|
|
|
3651
3653
|
return i in t ? t[i] : t[i] = e(r);
|
|
3652
3654
|
};
|
|
3653
3655
|
};
|
|
3654
|
-
var
|
|
3656
|
+
var To = Object.defineProperty, xt = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sn = (e, t) => {
|
|
3655
3657
|
for (var n in t || (t = {}))
|
|
3656
|
-
|
|
3658
|
+
dr.call(t, n) && Sn(e, n, t[n]);
|
|
3657
3659
|
if (xt)
|
|
3658
3660
|
for (var n of xt(t))
|
|
3659
|
-
|
|
3661
|
+
pr.call(t, n) && Sn(e, n, t[n]);
|
|
3660
3662
|
return e;
|
|
3661
|
-
},
|
|
3663
|
+
}, qe = (e, t) => {
|
|
3662
3664
|
var n = {};
|
|
3663
3665
|
for (var r in e)
|
|
3664
|
-
|
|
3666
|
+
dr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3665
3667
|
if (e != null && xt)
|
|
3666
3668
|
for (var r of xt(e))
|
|
3667
|
-
t.indexOf(r) < 0 &&
|
|
3669
|
+
t.indexOf(r) < 0 && pr.call(e, r) && (n[r] = e[r]);
|
|
3668
3670
|
return n;
|
|
3669
3671
|
};
|
|
3670
3672
|
const ot = (e, t) => {
|
|
3671
|
-
const { formats: n } =
|
|
3673
|
+
const { formats: n } = Xe();
|
|
3672
3674
|
if (e in n && t in n[e])
|
|
3673
3675
|
return n[e][t];
|
|
3674
3676
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3675
|
-
},
|
|
3677
|
+
}, Bo = Bt(
|
|
3676
3678
|
(e) => {
|
|
3677
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3679
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3678
3680
|
if (n == null)
|
|
3679
3681
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3680
3682
|
return r && (i = ot("number", r)), new Intl.NumberFormat(n, i);
|
|
3681
3683
|
}
|
|
3682
|
-
),
|
|
3684
|
+
), Ao = Bt(
|
|
3683
3685
|
(e) => {
|
|
3684
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3686
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3685
3687
|
if (n == null)
|
|
3686
3688
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3687
3689
|
return r ? i = ot("date", r) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3688
3690
|
}
|
|
3689
|
-
),
|
|
3691
|
+
), Co = Bt(
|
|
3690
3692
|
(e) => {
|
|
3691
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3693
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3692
3694
|
if (n == null)
|
|
3693
3695
|
throw new Error(
|
|
3694
3696
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3695
3697
|
);
|
|
3696
3698
|
return r ? i = ot("time", r) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3697
3699
|
}
|
|
3698
|
-
),
|
|
3700
|
+
), Ho = (e = {}) => {
|
|
3699
3701
|
var t = e, {
|
|
3700
3702
|
locale: n = Re()
|
|
3701
|
-
} = t, r =
|
|
3703
|
+
} = t, r = qe(t, [
|
|
3702
3704
|
"locale"
|
|
3703
3705
|
]);
|
|
3704
|
-
return
|
|
3705
|
-
},
|
|
3706
|
+
return Bo(sn({ locale: n }, r));
|
|
3707
|
+
}, Oo = (e = {}) => {
|
|
3706
3708
|
var t = e, {
|
|
3707
3709
|
locale: n = Re()
|
|
3708
|
-
} = t, r =
|
|
3710
|
+
} = t, r = qe(t, [
|
|
3709
3711
|
"locale"
|
|
3710
3712
|
]);
|
|
3711
|
-
return
|
|
3712
|
-
},
|
|
3713
|
+
return Ao(sn({ locale: n }, r));
|
|
3714
|
+
}, Mo = (e = {}) => {
|
|
3713
3715
|
var t = e, {
|
|
3714
3716
|
locale: n = Re()
|
|
3715
|
-
} = t, r =
|
|
3717
|
+
} = t, r = qe(t, [
|
|
3716
3718
|
"locale"
|
|
3717
3719
|
]);
|
|
3718
|
-
return
|
|
3719
|
-
},
|
|
3720
|
+
return Co(sn({ locale: n }, r));
|
|
3721
|
+
}, Ro = Bt(
|
|
3720
3722
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3721
|
-
(e, t = Re()) => new
|
|
3722
|
-
ignoreTag:
|
|
3723
|
+
(e, t = Re()) => new io(e, t, Xe().formats, {
|
|
3724
|
+
ignoreTag: Xe().ignoreTag
|
|
3723
3725
|
})
|
|
3724
|
-
),
|
|
3726
|
+
), Lo = (e, t = {}) => {
|
|
3725
3727
|
var n, r, i, o;
|
|
3726
3728
|
let s = t;
|
|
3727
3729
|
typeof e == "object" && (s = e, e = s.id);
|
|
3728
3730
|
const {
|
|
3729
3731
|
values: a,
|
|
3730
|
-
locale:
|
|
3731
|
-
default:
|
|
3732
|
+
locale: l = Re(),
|
|
3733
|
+
default: u
|
|
3732
3734
|
} = s;
|
|
3733
|
-
if (
|
|
3735
|
+
if (l == null)
|
|
3734
3736
|
throw new Error(
|
|
3735
3737
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3736
3738
|
);
|
|
3737
|
-
let f =
|
|
3739
|
+
let f = ur(e, l);
|
|
3738
3740
|
if (!f)
|
|
3739
|
-
f = (o = (i = (r = (n =
|
|
3741
|
+
f = (o = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3740
3742
|
else if (typeof f != "string")
|
|
3741
3743
|
return console.warn(
|
|
3742
3744
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3743
3745
|
), f;
|
|
3744
3746
|
if (!a)
|
|
3745
3747
|
return f;
|
|
3746
|
-
let
|
|
3748
|
+
let b = f;
|
|
3747
3749
|
try {
|
|
3748
|
-
|
|
3749
|
-
} catch (
|
|
3750
|
-
|
|
3750
|
+
b = Ro(f, l).format(a);
|
|
3751
|
+
} catch (m) {
|
|
3752
|
+
m instanceof Error && console.warn(
|
|
3751
3753
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3752
|
-
|
|
3754
|
+
m.message
|
|
3753
3755
|
);
|
|
3754
3756
|
}
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
function
|
|
3762
|
-
|
|
3763
|
-
}
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3766
|
-
}
|
|
3767
|
-
const
|
|
3757
|
+
return b;
|
|
3758
|
+
}, Po = (e, t) => Mo(t).format(e), No = (e, t) => Oo(t).format(e), Io = (e, t) => Ho(t).format(e), Do = (e, t = Re()) => ur(e, t), Uo = We([Ze, at], () => Lo);
|
|
3759
|
+
We([Ze], () => Po);
|
|
3760
|
+
We([Ze], () => No);
|
|
3761
|
+
We([Ze], () => Io);
|
|
3762
|
+
We([Ze, at], () => Do);
|
|
3763
|
+
function Tn(e, t) {
|
|
3764
|
+
cr(e, t);
|
|
3765
|
+
}
|
|
3766
|
+
function Fo(e) {
|
|
3767
|
+
Ze.set(e);
|
|
3768
|
+
}
|
|
3769
|
+
const Bn = {
|
|
3768
3770
|
en: {
|
|
3769
3771
|
Title: "Your Balance",
|
|
3770
3772
|
Total: "Total Balance",
|
|
@@ -3964,7 +3966,7 @@ const Cn = {
|
|
|
3964
3966
|
Loading: "Loading ..."
|
|
3965
3967
|
}
|
|
3966
3968
|
};
|
|
3967
|
-
var
|
|
3969
|
+
var en = { exports: {} };
|
|
3968
3970
|
/** @license
|
|
3969
3971
|
* eventsource.js
|
|
3970
3972
|
* Available under MIT License (MIT)
|
|
@@ -3972,35 +3974,35 @@ var tn = { exports: {} };
|
|
|
3972
3974
|
*/
|
|
3973
3975
|
(function(e, t) {
|
|
3974
3976
|
(function(n) {
|
|
3975
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject,
|
|
3976
|
-
if (typeof window < "u" && typeof
|
|
3977
|
-
|
|
3977
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, m = n.Response, w = n.TextDecoder, _ = n.TextEncoder, A = n.AbortController;
|
|
3978
|
+
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
3979
|
+
u.readyState = "complete";
|
|
3978
3980
|
}, !1)), o == null && a != null && (o = function() {
|
|
3979
3981
|
return new a("Microsoft.XMLHTTP");
|
|
3980
3982
|
}), Object.create == null && (Object.create = function(h) {
|
|
3981
|
-
function
|
|
3983
|
+
function y() {
|
|
3982
3984
|
}
|
|
3983
|
-
return
|
|
3985
|
+
return y.prototype = h, new y();
|
|
3984
3986
|
}), Date.now || (Date.now = function() {
|
|
3985
3987
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3986
|
-
}),
|
|
3987
|
-
var
|
|
3988
|
-
|
|
3989
|
-
var
|
|
3990
|
-
return
|
|
3991
|
-
var
|
|
3992
|
-
return
|
|
3993
|
-
status:
|
|
3994
|
-
statusText:
|
|
3995
|
-
headers:
|
|
3988
|
+
}), A == null) {
|
|
3989
|
+
var I = b;
|
|
3990
|
+
b = function(h, y) {
|
|
3991
|
+
var E = y.signal;
|
|
3992
|
+
return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
|
|
3993
|
+
var c = g.body.getReader();
|
|
3994
|
+
return E._reader = c, E._aborted && E._reader.cancel(), {
|
|
3995
|
+
status: g.status,
|
|
3996
|
+
statusText: g.statusText,
|
|
3997
|
+
headers: g.headers,
|
|
3996
3998
|
body: {
|
|
3997
3999
|
getReader: function() {
|
|
3998
|
-
return
|
|
4000
|
+
return c;
|
|
3999
4001
|
}
|
|
4000
4002
|
}
|
|
4001
4003
|
};
|
|
4002
4004
|
});
|
|
4003
|
-
},
|
|
4005
|
+
}, A = function() {
|
|
4004
4006
|
this.signal = {
|
|
4005
4007
|
_reader: null,
|
|
4006
4008
|
_aborted: !1
|
|
@@ -4013,413 +4015,413 @@ var tn = { exports: {} };
|
|
|
4013
4015
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4014
4016
|
}
|
|
4015
4017
|
W.prototype.decode = function(h) {
|
|
4016
|
-
function
|
|
4017
|
-
if (
|
|
4018
|
-
return
|
|
4019
|
-
if (
|
|
4020
|
-
return
|
|
4021
|
-
if (
|
|
4022
|
-
return
|
|
4018
|
+
function y(C, S, B) {
|
|
4019
|
+
if (B === 1)
|
|
4020
|
+
return C >= 128 >> S && C << S <= 2047;
|
|
4021
|
+
if (B === 2)
|
|
4022
|
+
return C >= 2048 >> S && C << S <= 55295 || C >= 57344 >> S && C << S <= 65535;
|
|
4023
|
+
if (B === 3)
|
|
4024
|
+
return C >= 65536 >> S && C << S <= 1114111;
|
|
4023
4025
|
throw new Error();
|
|
4024
4026
|
}
|
|
4025
|
-
function
|
|
4026
|
-
if (
|
|
4027
|
-
return
|
|
4028
|
-
if (
|
|
4029
|
-
return
|
|
4030
|
-
if (
|
|
4027
|
+
function E(C, S) {
|
|
4028
|
+
if (C === 6 * 1)
|
|
4029
|
+
return S >> 6 > 15 ? 3 : S > 31 ? 2 : 1;
|
|
4030
|
+
if (C === 6 * 2)
|
|
4031
|
+
return S > 15 ? 3 : 2;
|
|
4032
|
+
if (C === 6 * 3)
|
|
4031
4033
|
return 3;
|
|
4032
4034
|
throw new Error();
|
|
4033
4035
|
}
|
|
4034
|
-
for (var
|
|
4035
|
-
var
|
|
4036
|
-
|
|
4036
|
+
for (var g = 65533, c = "", d = this.bitsNeeded, p = this.codePoint, v = 0; v < h.length; v += 1) {
|
|
4037
|
+
var T = h[v];
|
|
4038
|
+
d !== 0 && (T < 128 || T > 191 || !y(p << 6 | T & 63, d - 6, E(d, p))) && (d = 0, p = g, c += String.fromCharCode(p)), d === 0 ? (T >= 0 && T <= 127 ? (d = 0, p = T) : T >= 192 && T <= 223 ? (d = 6 * 1, p = T & 31) : T >= 224 && T <= 239 ? (d = 6 * 2, p = T & 15) : T >= 240 && T <= 247 ? (d = 6 * 3, p = T & 7) : (d = 0, p = g), d !== 0 && !y(p, d, E(d, p)) && (d = 0, p = g)) : (d -= 6, p = p << 6 | T & 63), d === 0 && (p <= 65535 ? c += String.fromCharCode(p) : (c += String.fromCharCode(55296 + (p - 65535 - 1 >> 10)), c += String.fromCharCode(56320 + (p - 65535 - 1 & 1023))));
|
|
4037
4039
|
}
|
|
4038
|
-
return this.bitsNeeded =
|
|
4040
|
+
return this.bitsNeeded = d, this.codePoint = p, c;
|
|
4039
4041
|
};
|
|
4040
4042
|
var V = function() {
|
|
4041
4043
|
try {
|
|
4042
|
-
return new
|
|
4044
|
+
return new w().decode(new _().encode("test"), { stream: !0 }) === "test";
|
|
4043
4045
|
} catch (h) {
|
|
4044
4046
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4045
4047
|
}
|
|
4046
4048
|
return !1;
|
|
4047
4049
|
};
|
|
4048
|
-
(
|
|
4049
|
-
var
|
|
4050
|
+
(w == null || _ == null || !V()) && (w = W);
|
|
4051
|
+
var R = function() {
|
|
4050
4052
|
};
|
|
4051
|
-
function
|
|
4052
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4053
|
+
function D(h) {
|
|
4054
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = R, this.onload = R, this.onerror = R, this.onreadystatechange = R, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = R;
|
|
4053
4055
|
}
|
|
4054
|
-
|
|
4056
|
+
D.prototype.open = function(h, y) {
|
|
4055
4057
|
this._abort(!0);
|
|
4056
|
-
var
|
|
4057
|
-
this._abort = function(
|
|
4058
|
-
|
|
4058
|
+
var E = this, g = this._xhr, c = 1, d = 0;
|
|
4059
|
+
this._abort = function(B) {
|
|
4060
|
+
E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, g.onload = R, g.onerror = R, g.onabort = R, g.onprogress = R, g.onreadystatechange = R, g.abort(), d !== 0 && (i(d), d = 0), B || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), c = 0;
|
|
4059
4061
|
};
|
|
4060
|
-
var
|
|
4061
|
-
if (
|
|
4062
|
-
var
|
|
4063
|
-
if ("contentType" in
|
|
4064
|
-
|
|
4062
|
+
var p = function() {
|
|
4063
|
+
if (c === 1) {
|
|
4064
|
+
var B = 0, N = "", ee = void 0;
|
|
4065
|
+
if ("contentType" in g)
|
|
4066
|
+
B = 200, N = "OK", ee = g.contentType;
|
|
4065
4067
|
else
|
|
4066
4068
|
try {
|
|
4067
|
-
|
|
4069
|
+
B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
|
|
4068
4070
|
} catch {
|
|
4069
|
-
|
|
4071
|
+
B = 0, N = "", ee = void 0;
|
|
4070
4072
|
}
|
|
4071
|
-
|
|
4073
|
+
B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = N, E._contentType = ee, E.onreadystatechange());
|
|
4072
4074
|
}
|
|
4073
|
-
},
|
|
4074
|
-
if (
|
|
4075
|
-
|
|
4076
|
-
var
|
|
4075
|
+
}, v = function() {
|
|
4076
|
+
if (p(), c === 2 || c === 3) {
|
|
4077
|
+
c = 3;
|
|
4078
|
+
var B = "";
|
|
4077
4079
|
try {
|
|
4078
|
-
|
|
4080
|
+
B = g.responseText;
|
|
4079
4081
|
} catch {
|
|
4080
4082
|
}
|
|
4081
|
-
|
|
4083
|
+
E.readyState = 3, E.responseText = B, E.onprogress();
|
|
4082
4084
|
}
|
|
4083
|
-
},
|
|
4084
|
-
if ((
|
|
4085
|
-
preventDefault:
|
|
4086
|
-
}),
|
|
4087
|
-
if (
|
|
4088
|
-
|
|
4089
|
-
else if (
|
|
4090
|
-
|
|
4091
|
-
else if (
|
|
4092
|
-
|
|
4085
|
+
}, T = function(B, N) {
|
|
4086
|
+
if ((N == null || N.preventDefault == null) && (N = {
|
|
4087
|
+
preventDefault: R
|
|
4088
|
+
}), v(), c === 1 || c === 2 || c === 3) {
|
|
4089
|
+
if (c = 4, d !== 0 && (i(d), d = 0), E.readyState = 4, B === "load")
|
|
4090
|
+
E.onload(N);
|
|
4091
|
+
else if (B === "error")
|
|
4092
|
+
E.onerror(N);
|
|
4093
|
+
else if (B === "abort")
|
|
4094
|
+
E.onabort(N);
|
|
4093
4095
|
else
|
|
4094
4096
|
throw new TypeError();
|
|
4095
|
-
|
|
4097
|
+
E.onreadystatechange();
|
|
4096
4098
|
}
|
|
4097
|
-
},
|
|
4098
|
-
|
|
4099
|
-
},
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
}, 500),
|
|
4099
|
+
}, C = function(B) {
|
|
4100
|
+
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && T(g.responseText === "" ? "error" : "load", B) : g.readyState === 3 ? "onprogress" in g || v() : g.readyState === 2 && p());
|
|
4101
|
+
}, S = function() {
|
|
4102
|
+
d = r(function() {
|
|
4103
|
+
S();
|
|
4104
|
+
}, 500), g.readyState === 3 && v();
|
|
4103
4105
|
};
|
|
4104
|
-
"onload" in
|
|
4105
|
-
|
|
4106
|
-
}), "onerror" in
|
|
4107
|
-
|
|
4108
|
-
}), "onabort" in
|
|
4109
|
-
|
|
4110
|
-
}), "onprogress" in
|
|
4111
|
-
B
|
|
4112
|
-
}), ("contentType" in
|
|
4113
|
-
|
|
4106
|
+
"onload" in g && (g.onload = function(B) {
|
|
4107
|
+
T("load", B);
|
|
4108
|
+
}), "onerror" in g && (g.onerror = function(B) {
|
|
4109
|
+
T("error", B);
|
|
4110
|
+
}), "onabort" in g && (g.onabort = function(B) {
|
|
4111
|
+
T("abort", B);
|
|
4112
|
+
}), "onprogress" in g && (g.onprogress = v), "onreadystatechange" in g && (g.onreadystatechange = function(B) {
|
|
4113
|
+
C(B);
|
|
4114
|
+
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = r(function() {
|
|
4115
|
+
S();
|
|
4114
4116
|
}, 0));
|
|
4115
|
-
},
|
|
4117
|
+
}, D.prototype.abort = function() {
|
|
4116
4118
|
this._abort(!1);
|
|
4117
|
-
},
|
|
4119
|
+
}, D.prototype.getResponseHeader = function(h) {
|
|
4118
4120
|
return this._contentType;
|
|
4119
|
-
},
|
|
4120
|
-
var
|
|
4121
|
-
"setRequestHeader" in
|
|
4122
|
-
},
|
|
4121
|
+
}, D.prototype.setRequestHeader = function(h, y) {
|
|
4122
|
+
var E = this._xhr;
|
|
4123
|
+
"setRequestHeader" in E && E.setRequestHeader(h, y);
|
|
4124
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4123
4125
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4124
|
-
},
|
|
4125
|
-
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) &&
|
|
4126
|
+
}, D.prototype.send = function() {
|
|
4127
|
+
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4126
4128
|
var h = this;
|
|
4127
4129
|
h._sendTimeout = r(function() {
|
|
4128
4130
|
h._sendTimeout = 0, h.send();
|
|
4129
4131
|
}, 4);
|
|
4130
4132
|
return;
|
|
4131
4133
|
}
|
|
4132
|
-
var
|
|
4133
|
-
"withCredentials" in
|
|
4134
|
+
var y = this._xhr;
|
|
4135
|
+
"withCredentials" in y && (y.withCredentials = this.withCredentials);
|
|
4134
4136
|
try {
|
|
4135
|
-
|
|
4136
|
-
} catch (
|
|
4137
|
-
throw
|
|
4137
|
+
y.send(void 0);
|
|
4138
|
+
} catch (E) {
|
|
4139
|
+
throw E;
|
|
4138
4140
|
}
|
|
4139
4141
|
};
|
|
4140
|
-
function
|
|
4141
|
-
return h.replace(/[A-Z]/g, function(
|
|
4142
|
-
return String.fromCharCode(
|
|
4142
|
+
function k(h) {
|
|
4143
|
+
return h.replace(/[A-Z]/g, function(y) {
|
|
4144
|
+
return String.fromCharCode(y.charCodeAt(0) + 32);
|
|
4143
4145
|
});
|
|
4144
4146
|
}
|
|
4145
|
-
function
|
|
4146
|
-
for (var
|
|
4147
|
-
`),
|
|
4148
|
-
var
|
|
4149
|
-
|
|
4147
|
+
function oe(h) {
|
|
4148
|
+
for (var y = /* @__PURE__ */ Object.create(null), E = h.split(`\r
|
|
4149
|
+
`), g = 0; g < E.length; g += 1) {
|
|
4150
|
+
var c = E[g], d = c.split(": "), p = d.shift(), v = d.join(": ");
|
|
4151
|
+
y[k(p)] = v;
|
|
4150
4152
|
}
|
|
4151
|
-
this._map =
|
|
4153
|
+
this._map = y;
|
|
4152
4154
|
}
|
|
4153
|
-
|
|
4154
|
-
return this._map[
|
|
4155
|
+
oe.prototype.get = function(h) {
|
|
4156
|
+
return this._map[k(h)];
|
|
4155
4157
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4156
|
-
function
|
|
4158
|
+
function Z() {
|
|
4157
4159
|
}
|
|
4158
|
-
|
|
4159
|
-
h.open("GET",
|
|
4160
|
-
var
|
|
4160
|
+
Z.prototype.open = function(h, y, E, g, c, d, p) {
|
|
4161
|
+
h.open("GET", c);
|
|
4162
|
+
var v = 0;
|
|
4161
4163
|
h.onprogress = function() {
|
|
4162
|
-
var
|
|
4163
|
-
|
|
4164
|
-
}, h.onerror = function(
|
|
4165
|
-
|
|
4164
|
+
var C = h.responseText, S = C.slice(v);
|
|
4165
|
+
v += S.length, E(S);
|
|
4166
|
+
}, h.onerror = function(C) {
|
|
4167
|
+
C.preventDefault(), g(new Error("NetworkError"));
|
|
4166
4168
|
}, h.onload = function() {
|
|
4167
|
-
|
|
4169
|
+
g(null);
|
|
4168
4170
|
}, h.onabort = function() {
|
|
4169
|
-
|
|
4171
|
+
g(null);
|
|
4170
4172
|
}, h.onreadystatechange = function() {
|
|
4171
4173
|
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4172
|
-
var
|
|
4173
|
-
|
|
4174
|
+
var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
|
|
4175
|
+
y(C, S, B, new oe(N));
|
|
4174
4176
|
}
|
|
4175
|
-
}, h.withCredentials =
|
|
4176
|
-
for (var
|
|
4177
|
-
Object.prototype.hasOwnProperty.call(
|
|
4177
|
+
}, h.withCredentials = d;
|
|
4178
|
+
for (var T in p)
|
|
4179
|
+
Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
|
|
4178
4180
|
return h.send(), h;
|
|
4179
4181
|
};
|
|
4180
|
-
function
|
|
4182
|
+
function $(h) {
|
|
4181
4183
|
this._headers = h;
|
|
4182
4184
|
}
|
|
4183
|
-
|
|
4185
|
+
$.prototype.get = function(h) {
|
|
4184
4186
|
return this._headers.get(h);
|
|
4185
4187
|
};
|
|
4186
|
-
function
|
|
4188
|
+
function U() {
|
|
4187
4189
|
}
|
|
4188
|
-
|
|
4189
|
-
var
|
|
4190
|
-
return
|
|
4191
|
-
headers:
|
|
4192
|
-
credentials:
|
|
4193
|
-
signal:
|
|
4190
|
+
U.prototype.open = function(h, y, E, g, c, d, p) {
|
|
4191
|
+
var v = null, T = new A(), C = T.signal, S = new w();
|
|
4192
|
+
return b(c, {
|
|
4193
|
+
headers: p,
|
|
4194
|
+
credentials: d ? "include" : "same-origin",
|
|
4195
|
+
signal: C,
|
|
4194
4196
|
cache: "no-store"
|
|
4195
|
-
}).then(function(
|
|
4196
|
-
return
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
if (
|
|
4200
|
-
|
|
4197
|
+
}).then(function(B) {
|
|
4198
|
+
return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
|
|
4199
|
+
var Ae = function() {
|
|
4200
|
+
v.read().then(function(X) {
|
|
4201
|
+
if (X.done)
|
|
4202
|
+
N(void 0);
|
|
4201
4203
|
else {
|
|
4202
|
-
var
|
|
4203
|
-
|
|
4204
|
+
var te = S.decode(X.value, { stream: !0 });
|
|
4205
|
+
E(te), Ae();
|
|
4204
4206
|
}
|
|
4205
|
-
}).catch(function(
|
|
4206
|
-
|
|
4207
|
+
}).catch(function(X) {
|
|
4208
|
+
ee(X);
|
|
4207
4209
|
});
|
|
4208
4210
|
};
|
|
4209
|
-
|
|
4211
|
+
Ae();
|
|
4210
4212
|
});
|
|
4211
|
-
}).catch(function(
|
|
4212
|
-
if (
|
|
4213
|
-
return
|
|
4214
|
-
}).then(function(
|
|
4215
|
-
|
|
4213
|
+
}).catch(function(B) {
|
|
4214
|
+
if (B.name !== "AbortError")
|
|
4215
|
+
return B;
|
|
4216
|
+
}).then(function(B) {
|
|
4217
|
+
g(B);
|
|
4216
4218
|
}), {
|
|
4217
4219
|
abort: function() {
|
|
4218
|
-
|
|
4220
|
+
v?.cancel(), T.abort();
|
|
4219
4221
|
}
|
|
4220
4222
|
};
|
|
4221
4223
|
};
|
|
4222
|
-
function
|
|
4224
|
+
function q() {
|
|
4223
4225
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4224
4226
|
}
|
|
4225
|
-
function
|
|
4227
|
+
function F(h) {
|
|
4226
4228
|
r(function() {
|
|
4227
4229
|
throw h;
|
|
4228
4230
|
}, 0);
|
|
4229
4231
|
}
|
|
4230
|
-
|
|
4232
|
+
q.prototype.dispatchEvent = function(h) {
|
|
4231
4233
|
h.target = this;
|
|
4232
|
-
var
|
|
4233
|
-
if (
|
|
4234
|
-
for (var
|
|
4235
|
-
var
|
|
4234
|
+
var y = this._listeners[h.type];
|
|
4235
|
+
if (y != null)
|
|
4236
|
+
for (var E = y.length, g = 0; g < E; g += 1) {
|
|
4237
|
+
var c = y[g];
|
|
4236
4238
|
try {
|
|
4237
|
-
typeof
|
|
4238
|
-
} catch (
|
|
4239
|
-
|
|
4239
|
+
typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
|
|
4240
|
+
} catch (d) {
|
|
4241
|
+
F(d);
|
|
4240
4242
|
}
|
|
4241
4243
|
}
|
|
4242
|
-
},
|
|
4244
|
+
}, q.prototype.addEventListener = function(h, y) {
|
|
4243
4245
|
h = String(h);
|
|
4244
|
-
var
|
|
4245
|
-
|
|
4246
|
-
for (var
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
},
|
|
4246
|
+
var E = this._listeners, g = E[h];
|
|
4247
|
+
g == null && (g = [], E[h] = g);
|
|
4248
|
+
for (var c = !1, d = 0; d < g.length; d += 1)
|
|
4249
|
+
g[d] === y && (c = !0);
|
|
4250
|
+
c || g.push(y);
|
|
4251
|
+
}, q.prototype.removeEventListener = function(h, y) {
|
|
4250
4252
|
h = String(h);
|
|
4251
|
-
var
|
|
4252
|
-
if (
|
|
4253
|
-
for (var
|
|
4254
|
-
|
|
4255
|
-
|
|
4253
|
+
var E = this._listeners, g = E[h];
|
|
4254
|
+
if (g != null) {
|
|
4255
|
+
for (var c = [], d = 0; d < g.length; d += 1)
|
|
4256
|
+
g[d] !== y && c.push(g[d]);
|
|
4257
|
+
c.length === 0 ? delete E[h] : E[h] = c;
|
|
4256
4258
|
}
|
|
4257
4259
|
};
|
|
4258
|
-
function
|
|
4260
|
+
function K(h) {
|
|
4259
4261
|
this.type = h, this.target = void 0;
|
|
4260
4262
|
}
|
|
4261
|
-
function
|
|
4262
|
-
|
|
4263
|
+
function he(h, y) {
|
|
4264
|
+
K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
|
|
4263
4265
|
}
|
|
4264
|
-
|
|
4265
|
-
function
|
|
4266
|
-
|
|
4266
|
+
he.prototype = Object.create(K.prototype);
|
|
4267
|
+
function ge(h, y) {
|
|
4268
|
+
K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
|
|
4267
4269
|
}
|
|
4268
|
-
|
|
4269
|
-
function
|
|
4270
|
-
|
|
4270
|
+
ge.prototype = Object.create(K.prototype);
|
|
4271
|
+
function x(h, y) {
|
|
4272
|
+
K.call(this, h), this.error = y.error;
|
|
4271
4273
|
}
|
|
4272
|
-
|
|
4273
|
-
var
|
|
4274
|
-
var
|
|
4275
|
-
return
|
|
4276
|
-
},
|
|
4277
|
-
return Math.min(Math.max(h,
|
|
4278
|
-
},
|
|
4274
|
+
x.prototype = Object.create(K.prototype);
|
|
4275
|
+
var ye = -1, pe = 0, le = 1, He = 2, Ye = -1, me = 0, Qe = 1, Le = 2, st = 3, Ct = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ut = 18e6, Ke = function(h, y) {
|
|
4276
|
+
var E = h == null ? y : parseInt(h, 10);
|
|
4277
|
+
return E !== E && (E = y), Pe(E);
|
|
4278
|
+
}, Pe = function(h) {
|
|
4279
|
+
return Math.min(Math.max(h, Je), ut);
|
|
4280
|
+
}, Be = function(h, y, E) {
|
|
4279
4281
|
try {
|
|
4280
|
-
typeof
|
|
4281
|
-
} catch (
|
|
4282
|
-
|
|
4282
|
+
typeof y == "function" && y.call(h, E);
|
|
4283
|
+
} catch (g) {
|
|
4284
|
+
F(g);
|
|
4283
4285
|
}
|
|
4284
4286
|
};
|
|
4285
|
-
function
|
|
4286
|
-
|
|
4287
|
+
function ae(h, y) {
|
|
4288
|
+
q.call(this), y = y || {}, 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, Ot(this, h, y);
|
|
4287
4289
|
}
|
|
4288
4290
|
function Ht() {
|
|
4289
4291
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4290
4292
|
}
|
|
4291
|
-
var
|
|
4292
|
-
function
|
|
4293
|
-
|
|
4294
|
-
var
|
|
4295
|
-
if (
|
|
4296
|
-
if (
|
|
4297
|
-
|
|
4298
|
-
var
|
|
4299
|
-
status:
|
|
4293
|
+
var lt = b != null && m != null && "body" in m.prototype;
|
|
4294
|
+
function Ot(h, y, E) {
|
|
4295
|
+
y = String(y);
|
|
4296
|
+
var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Pe(1e3), p = Ke(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, N = E.Transport, ee = lt && N == null ? void 0 : new D(N != null ? new N() : Ht()), Ae = N != null && typeof N != "string" ? new N() : ee == null ? new U() : new Z(), X = void 0, te = 0, fe = ye, Ne = "", ht = "", ve = "", ft = "", ne = me, Mt = 0, Oe = 0, Er = function(Y, z, se, ue) {
|
|
4297
|
+
if (fe === pe)
|
|
4298
|
+
if (Y === 200 && se != null && Ct.test(se)) {
|
|
4299
|
+
fe = le, C = Date.now(), T = d, h.readyState = le;
|
|
4300
|
+
var re = new ge("open", {
|
|
4301
|
+
status: Y,
|
|
4300
4302
|
statusText: z,
|
|
4301
4303
|
headers: ue
|
|
4302
4304
|
});
|
|
4303
|
-
h.dispatchEvent(
|
|
4305
|
+
h.dispatchEvent(re), Be(h, h.onopen, re);
|
|
4304
4306
|
} else {
|
|
4305
|
-
var
|
|
4306
|
-
|
|
4307
|
-
var
|
|
4308
|
-
status:
|
|
4307
|
+
var J = "";
|
|
4308
|
+
Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
|
|
4309
|
+
var re = new ge("error", {
|
|
4310
|
+
status: Y,
|
|
4309
4311
|
statusText: z,
|
|
4310
4312
|
headers: ue
|
|
4311
4313
|
});
|
|
4312
|
-
h.dispatchEvent(
|
|
4314
|
+
h.dispatchEvent(re), Be(h, h.onerror, re), console.error(J);
|
|
4313
4315
|
}
|
|
4314
|
-
},
|
|
4315
|
-
if (
|
|
4316
|
-
for (var z = -1,
|
|
4317
|
-
var ue =
|
|
4318
|
-
(ue === 10 || ue === 13) && (z =
|
|
4316
|
+
}, xr = function(Y) {
|
|
4317
|
+
if (fe === le) {
|
|
4318
|
+
for (var z = -1, se = 0; se < Y.length; se += 1) {
|
|
4319
|
+
var ue = Y.charCodeAt(se);
|
|
4320
|
+
(ue === 10 || ue === 13) && (z = se);
|
|
4319
4321
|
}
|
|
4320
|
-
var
|
|
4321
|
-
ft = (z === -1 ? ft : "") +
|
|
4322
|
-
for (var
|
|
4323
|
-
var ue =
|
|
4324
|
-
if (
|
|
4325
|
-
|
|
4326
|
-
else if (
|
|
4327
|
-
if (
|
|
4328
|
-
|
|
4329
|
-
var
|
|
4330
|
-
|
|
4331
|
-
`,
|
|
4322
|
+
var re = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
|
|
4323
|
+
ft = (z === -1 ? ft : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), S += Y.length);
|
|
4324
|
+
for (var J = 0; J < re.length; J += 1) {
|
|
4325
|
+
var ue = re.charCodeAt(J);
|
|
4326
|
+
if (ne === Ye && ue === 10)
|
|
4327
|
+
ne = me;
|
|
4328
|
+
else if (ne === Ye && (ne = me), ue === 13 || ue === 10) {
|
|
4329
|
+
if (ne !== me) {
|
|
4330
|
+
ne === Qe && (Oe = J + 1);
|
|
4331
|
+
var _e = re.slice(Mt, Oe - 1), Ee = re.slice(Oe + (Oe < J && re.charCodeAt(Oe) === 32 ? 1 : 0), J);
|
|
4332
|
+
_e === "data" ? (Ne += `
|
|
4333
|
+
`, Ne += Ee) : _e === "id" ? ht = Ee : _e === "event" ? ve = Ee : _e === "retry" ? (d = Ke(Ee, d), T = d) : _e === "heartbeatTimeout" && (p = Ke(Ee, p), te !== 0 && (i(te), te = r(function() {
|
|
4332
4334
|
et();
|
|
4333
|
-
},
|
|
4335
|
+
}, p)));
|
|
4334
4336
|
}
|
|
4335
|
-
if (
|
|
4336
|
-
if (
|
|
4337
|
-
|
|
4338
|
-
var Ie = new
|
|
4339
|
-
data:
|
|
4337
|
+
if (ne === me) {
|
|
4338
|
+
if (Ne !== "") {
|
|
4339
|
+
v = ht, ve === "" && (ve = "message");
|
|
4340
|
+
var Ie = new he(ve, {
|
|
4341
|
+
data: Ne.slice(1),
|
|
4340
4342
|
lastEventId: ht
|
|
4341
4343
|
});
|
|
4342
|
-
if (h.dispatchEvent(Ie),
|
|
4344
|
+
if (h.dispatchEvent(Ie), ve === "open" ? Be(h, h.onopen, Ie) : ve === "message" ? Be(h, h.onmessage, Ie) : ve === "error" && Be(h, h.onerror, Ie), fe === He)
|
|
4343
4345
|
return;
|
|
4344
4346
|
}
|
|
4345
|
-
|
|
4347
|
+
Ne = "", ve = "";
|
|
4346
4348
|
}
|
|
4347
|
-
|
|
4349
|
+
ne = ue === 13 ? Ye : me;
|
|
4348
4350
|
} else
|
|
4349
|
-
|
|
4351
|
+
ne === me && (Mt = J, ne = Qe), ne === Qe ? ue === 58 && (Oe = J + 1, ne = Le) : ne === Le && (ne = st);
|
|
4350
4352
|
}
|
|
4351
4353
|
}
|
|
4352
|
-
},
|
|
4353
|
-
if (
|
|
4354
|
-
|
|
4354
|
+
}, un = function(Y) {
|
|
4355
|
+
if (fe === le || fe === pe) {
|
|
4356
|
+
fe = ye, te !== 0 && (i(te), te = 0), te = r(function() {
|
|
4355
4357
|
et();
|
|
4356
|
-
},
|
|
4357
|
-
var z = new
|
|
4358
|
-
h.dispatchEvent(z),
|
|
4358
|
+
}, T), T = Pe(Math.min(d * 16, T * 2)), h.readyState = pe;
|
|
4359
|
+
var z = new x("error", { error: Y });
|
|
4360
|
+
h.dispatchEvent(z), Be(h, h.onerror, z), Y != null && console.error(Y);
|
|
4359
4361
|
}
|
|
4360
4362
|
}, Rt = function() {
|
|
4361
|
-
|
|
4363
|
+
fe = He, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = He;
|
|
4362
4364
|
}, et = function() {
|
|
4363
|
-
if (
|
|
4364
|
-
if (!
|
|
4365
|
-
|
|
4365
|
+
if (te = 0, fe !== ye) {
|
|
4366
|
+
if (!C && X != null)
|
|
4367
|
+
un(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
|
|
4366
4368
|
else {
|
|
4367
|
-
var
|
|
4368
|
-
|
|
4369
|
+
var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
|
|
4370
|
+
C = !1, te = r(function() {
|
|
4369
4371
|
et();
|
|
4370
|
-
},
|
|
4372
|
+
}, Y);
|
|
4371
4373
|
}
|
|
4372
4374
|
return;
|
|
4373
4375
|
}
|
|
4374
|
-
|
|
4376
|
+
C = !1, S = 0, te = r(function() {
|
|
4375
4377
|
et();
|
|
4376
|
-
},
|
|
4377
|
-
var z =
|
|
4378
|
-
if (
|
|
4379
|
-
var
|
|
4380
|
-
z =
|
|
4381
|
-
return Ie ===
|
|
4382
|
-
}), z += (
|
|
4378
|
+
}, p), fe = pe, Ne = "", ve = "", ht = v, ft = "", Mt = 0, Oe = 0, ne = me;
|
|
4379
|
+
var z = y;
|
|
4380
|
+
if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && v !== "") {
|
|
4381
|
+
var se = y.indexOf("?");
|
|
4382
|
+
z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
|
|
4383
|
+
return Ie === c ? "" : Ee;
|
|
4384
|
+
}), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(v);
|
|
4383
4385
|
}
|
|
4384
|
-
var ue = h.withCredentials,
|
|
4385
|
-
|
|
4386
|
-
var
|
|
4387
|
-
if (
|
|
4388
|
-
for (var
|
|
4389
|
-
Object.prototype.hasOwnProperty.call(
|
|
4386
|
+
var ue = h.withCredentials, re = {};
|
|
4387
|
+
re.Accept = "text/event-stream";
|
|
4388
|
+
var J = h.headers;
|
|
4389
|
+
if (J != null)
|
|
4390
|
+
for (var _e in J)
|
|
4391
|
+
Object.prototype.hasOwnProperty.call(J, _e) && (re[_e] = J[_e]);
|
|
4390
4392
|
try {
|
|
4391
|
-
|
|
4392
|
-
} catch (
|
|
4393
|
-
throw Rt(),
|
|
4393
|
+
X = Ae.open(ee, Er, xr, un, z, ue, re);
|
|
4394
|
+
} catch (Ee) {
|
|
4395
|
+
throw Rt(), Ee;
|
|
4394
4396
|
}
|
|
4395
4397
|
};
|
|
4396
|
-
h.url =
|
|
4398
|
+
h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Rt, et();
|
|
4397
4399
|
}
|
|
4398
|
-
|
|
4400
|
+
ae.prototype = Object.create(q.prototype), ae.prototype.CONNECTING = pe, ae.prototype.OPEN = le, ae.prototype.CLOSED = He, ae.prototype.close = function() {
|
|
4399
4401
|
this._close();
|
|
4400
|
-
},
|
|
4401
|
-
var ct =
|
|
4402
|
-
o != null && (
|
|
4402
|
+
}, ae.CONNECTING = pe, ae.OPEN = le, ae.CLOSED = He, ae.prototype.withCredentials = void 0;
|
|
4403
|
+
var ct = l;
|
|
4404
|
+
o != null && (l == null || !("withCredentials" in l.prototype)) && (ct = ae), function(h) {
|
|
4403
4405
|
{
|
|
4404
|
-
var
|
|
4405
|
-
|
|
4406
|
+
var y = h(t);
|
|
4407
|
+
y !== void 0 && (e.exports = y);
|
|
4406
4408
|
}
|
|
4407
4409
|
}(function(h) {
|
|
4408
|
-
h.EventSourcePolyfill =
|
|
4410
|
+
h.EventSourcePolyfill = ae, h.NativeEventSource = l, h.EventSource = ct;
|
|
4409
4411
|
});
|
|
4410
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4411
|
-
})(
|
|
4412
|
-
var
|
|
4413
|
-
function
|
|
4412
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Yr : globalThis);
|
|
4413
|
+
})(en, en.exports);
|
|
4414
|
+
var Go = en.exports;
|
|
4415
|
+
function Se(e) {
|
|
4414
4416
|
return typeof e == "function";
|
|
4415
4417
|
}
|
|
4416
|
-
function
|
|
4418
|
+
function mr(e) {
|
|
4417
4419
|
var t = function(r) {
|
|
4418
4420
|
Error.call(r), r.stack = new Error().stack;
|
|
4419
4421
|
}, n = e(t);
|
|
4420
4422
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
4421
4423
|
}
|
|
4422
|
-
var Ft =
|
|
4424
|
+
var Ft = mr(function(e) {
|
|
4423
4425
|
return function(n) {
|
|
4424
4426
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
4425
4427
|
` + n.map(function(r, i) {
|
|
@@ -4428,7 +4430,7 @@ var Ft = gr(function(e) {
|
|
|
4428
4430
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
4429
4431
|
};
|
|
4430
4432
|
});
|
|
4431
|
-
function
|
|
4433
|
+
function tn(e, t) {
|
|
4432
4434
|
if (e) {
|
|
4433
4435
|
var n = e.indexOf(t);
|
|
4434
4436
|
0 <= n && e.splice(n, 1);
|
|
@@ -4446,15 +4448,15 @@ var At = function() {
|
|
|
4446
4448
|
if (s)
|
|
4447
4449
|
if (this._parentage = null, Array.isArray(s))
|
|
4448
4450
|
try {
|
|
4449
|
-
for (var a =
|
|
4450
|
-
var
|
|
4451
|
-
|
|
4451
|
+
for (var a = Vt(s), l = a.next(); !l.done; l = a.next()) {
|
|
4452
|
+
var u = l.value;
|
|
4453
|
+
u.remove(this);
|
|
4452
4454
|
}
|
|
4453
|
-
} catch (
|
|
4454
|
-
t = { error:
|
|
4455
|
+
} catch (A) {
|
|
4456
|
+
t = { error: A };
|
|
4455
4457
|
} finally {
|
|
4456
4458
|
try {
|
|
4457
|
-
|
|
4459
|
+
l && !l.done && (n = a.return) && n.call(a);
|
|
4458
4460
|
} finally {
|
|
4459
4461
|
if (t)
|
|
4460
4462
|
throw t.error;
|
|
@@ -4463,29 +4465,29 @@ var At = function() {
|
|
|
4463
4465
|
else
|
|
4464
4466
|
s.remove(this);
|
|
4465
4467
|
var f = this.initialTeardown;
|
|
4466
|
-
if (
|
|
4468
|
+
if (Se(f))
|
|
4467
4469
|
try {
|
|
4468
4470
|
f();
|
|
4469
|
-
} catch (
|
|
4470
|
-
o =
|
|
4471
|
+
} catch (A) {
|
|
4472
|
+
o = A instanceof Ft ? A.errors : [A];
|
|
4471
4473
|
}
|
|
4472
|
-
var
|
|
4473
|
-
if (
|
|
4474
|
+
var b = this._finalizers;
|
|
4475
|
+
if (b) {
|
|
4474
4476
|
this._finalizers = null;
|
|
4475
4477
|
try {
|
|
4476
|
-
for (var
|
|
4477
|
-
var
|
|
4478
|
+
for (var m = Vt(b), w = m.next(); !w.done; w = m.next()) {
|
|
4479
|
+
var _ = w.value;
|
|
4478
4480
|
try {
|
|
4479
|
-
|
|
4480
|
-
} catch (
|
|
4481
|
-
o = o ?? [],
|
|
4481
|
+
An(_);
|
|
4482
|
+
} catch (A) {
|
|
4483
|
+
o = o ?? [], A instanceof Ft ? o = je(je([], Xt(o)), Xt(A.errors)) : o.push(A);
|
|
4482
4484
|
}
|
|
4483
4485
|
}
|
|
4484
|
-
} catch (
|
|
4485
|
-
r = { error:
|
|
4486
|
+
} catch (A) {
|
|
4487
|
+
r = { error: A };
|
|
4486
4488
|
} finally {
|
|
4487
4489
|
try {
|
|
4488
|
-
|
|
4490
|
+
w && !w.done && (i = m.return) && i.call(m);
|
|
4489
4491
|
} finally {
|
|
4490
4492
|
if (r)
|
|
4491
4493
|
throw r.error;
|
|
@@ -4499,7 +4501,7 @@ var At = function() {
|
|
|
4499
4501
|
var n;
|
|
4500
4502
|
if (t && t !== this)
|
|
4501
4503
|
if (this.closed)
|
|
4502
|
-
|
|
4504
|
+
An(t);
|
|
4503
4505
|
else {
|
|
4504
4506
|
if (t instanceof e) {
|
|
4505
4507
|
if (t.closed || t._hasParent(this))
|
|
@@ -4516,56 +4518,56 @@ var At = function() {
|
|
|
4516
4518
|
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
4517
4519
|
}, e.prototype._removeParent = function(t) {
|
|
4518
4520
|
var n = this._parentage;
|
|
4519
|
-
n === t ? this._parentage = null : Array.isArray(n) &&
|
|
4521
|
+
n === t ? this._parentage = null : Array.isArray(n) && tn(n, t);
|
|
4520
4522
|
}, e.prototype.remove = function(t) {
|
|
4521
4523
|
var n = this._finalizers;
|
|
4522
|
-
n &&
|
|
4524
|
+
n && tn(n, t), t instanceof e && t._removeParent(this);
|
|
4523
4525
|
}, e.EMPTY = function() {
|
|
4524
4526
|
var t = new e();
|
|
4525
4527
|
return t.closed = !0, t;
|
|
4526
4528
|
}(), e;
|
|
4527
|
-
}(),
|
|
4528
|
-
function
|
|
4529
|
-
return e instanceof At || e && "closed" in e &&
|
|
4529
|
+
}(), br = At.EMPTY;
|
|
4530
|
+
function gr(e) {
|
|
4531
|
+
return e instanceof At || e && "closed" in e && Se(e.remove) && Se(e.add) && Se(e.unsubscribe);
|
|
4530
4532
|
}
|
|
4531
|
-
function
|
|
4532
|
-
|
|
4533
|
+
function An(e) {
|
|
4534
|
+
Se(e) ? e() : e.unsubscribe();
|
|
4533
4535
|
}
|
|
4534
|
-
var
|
|
4536
|
+
var jo = {
|
|
4535
4537
|
onUnhandledError: null,
|
|
4536
4538
|
onStoppedNotification: null,
|
|
4537
4539
|
Promise: void 0,
|
|
4538
4540
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
4539
4541
|
useDeprecatedNextContext: !1
|
|
4540
|
-
},
|
|
4542
|
+
}, ko = {
|
|
4541
4543
|
setTimeout: function(e, t) {
|
|
4542
4544
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
4543
4545
|
n[r - 2] = arguments[r];
|
|
4544
|
-
return setTimeout.apply(void 0,
|
|
4546
|
+
return setTimeout.apply(void 0, je([e, t], Xt(n)));
|
|
4545
4547
|
},
|
|
4546
4548
|
clearTimeout: function(e) {
|
|
4547
4549
|
return clearTimeout(e);
|
|
4548
4550
|
},
|
|
4549
4551
|
delegate: void 0
|
|
4550
4552
|
};
|
|
4551
|
-
function
|
|
4552
|
-
|
|
4553
|
+
function $o(e) {
|
|
4554
|
+
ko.setTimeout(function() {
|
|
4553
4555
|
throw e;
|
|
4554
4556
|
});
|
|
4555
4557
|
}
|
|
4556
|
-
function
|
|
4558
|
+
function Cn() {
|
|
4557
4559
|
}
|
|
4558
4560
|
function yt(e) {
|
|
4559
4561
|
e();
|
|
4560
4562
|
}
|
|
4561
|
-
var
|
|
4562
|
-
|
|
4563
|
+
var yr = function(e) {
|
|
4564
|
+
Te(t, e);
|
|
4563
4565
|
function t(n) {
|
|
4564
4566
|
var r = e.call(this) || this;
|
|
4565
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
4567
|
+
return r.isStopped = !1, n ? (r.destination = n, gr(n) && n.add(r)) : r.destination = zo, r;
|
|
4566
4568
|
}
|
|
4567
4569
|
return t.create = function(n, r, i) {
|
|
4568
|
-
return new
|
|
4570
|
+
return new nn(n, r, i);
|
|
4569
4571
|
}, t.prototype.next = function(n) {
|
|
4570
4572
|
this.isStopped || this._next(n);
|
|
4571
4573
|
}, t.prototype.error = function(n) {
|
|
@@ -4589,11 +4591,7 @@ var Er = function(e) {
|
|
|
4589
4591
|
this.unsubscribe();
|
|
4590
4592
|
}
|
|
4591
4593
|
}, t;
|
|
4592
|
-
}(At),
|
|
4593
|
-
function Gt(e, t) {
|
|
4594
|
-
return Xo.call(e, t);
|
|
4595
|
-
}
|
|
4596
|
-
var zo = function() {
|
|
4594
|
+
}(At), Vo = function() {
|
|
4597
4595
|
function e(t) {
|
|
4598
4596
|
this.partialObserver = t;
|
|
4599
4597
|
}
|
|
@@ -4624,55 +4622,43 @@ var zo = function() {
|
|
|
4624
4622
|
pt(n);
|
|
4625
4623
|
}
|
|
4626
4624
|
}, e;
|
|
4627
|
-
}(),
|
|
4628
|
-
|
|
4625
|
+
}(), nn = function(e) {
|
|
4626
|
+
Te(t, e);
|
|
4629
4627
|
function t(n, r, i) {
|
|
4630
4628
|
var o = e.call(this) || this, s;
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
};
|
|
4637
|
-
else {
|
|
4638
|
-
var a;
|
|
4639
|
-
o && _r.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
|
|
4640
|
-
return o.unsubscribe();
|
|
4641
|
-
}, s = {
|
|
4642
|
-
next: n.next && Gt(n.next, a),
|
|
4643
|
-
error: n.error && Gt(n.error, a),
|
|
4644
|
-
complete: n.complete && Gt(n.complete, a)
|
|
4645
|
-
}) : s = n;
|
|
4646
|
-
}
|
|
4647
|
-
return o.destination = new zo(s), o;
|
|
4629
|
+
return Se(n) || !n ? s = {
|
|
4630
|
+
next: n ?? void 0,
|
|
4631
|
+
error: r ?? void 0,
|
|
4632
|
+
complete: i ?? void 0
|
|
4633
|
+
} : s = n, o.destination = new Vo(s), o;
|
|
4648
4634
|
}
|
|
4649
4635
|
return t;
|
|
4650
|
-
}(
|
|
4636
|
+
}(yr);
|
|
4651
4637
|
function pt(e) {
|
|
4652
|
-
|
|
4638
|
+
$o(e);
|
|
4653
4639
|
}
|
|
4654
|
-
function
|
|
4640
|
+
function Xo(e) {
|
|
4655
4641
|
throw e;
|
|
4656
4642
|
}
|
|
4657
|
-
var
|
|
4643
|
+
var zo = {
|
|
4658
4644
|
closed: !0,
|
|
4659
|
-
next:
|
|
4660
|
-
error:
|
|
4661
|
-
complete:
|
|
4662
|
-
},
|
|
4645
|
+
next: Cn,
|
|
4646
|
+
error: Xo,
|
|
4647
|
+
complete: Cn
|
|
4648
|
+
}, Wo = function() {
|
|
4663
4649
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4664
4650
|
}();
|
|
4665
|
-
function
|
|
4651
|
+
function Zo(e) {
|
|
4666
4652
|
return e;
|
|
4667
4653
|
}
|
|
4668
|
-
function
|
|
4669
|
-
return e.length === 0 ?
|
|
4654
|
+
function qo(e) {
|
|
4655
|
+
return e.length === 0 ? Zo : e.length === 1 ? e[0] : function(n) {
|
|
4670
4656
|
return e.reduce(function(r, i) {
|
|
4671
4657
|
return i(r);
|
|
4672
4658
|
}, n);
|
|
4673
4659
|
};
|
|
4674
4660
|
}
|
|
4675
|
-
var
|
|
4661
|
+
var Hn = function() {
|
|
4676
4662
|
function e(t) {
|
|
4677
4663
|
t && (this._subscribe = t);
|
|
4678
4664
|
}
|
|
@@ -4680,10 +4666,10 @@ var Mn = function() {
|
|
|
4680
4666
|
var n = new e();
|
|
4681
4667
|
return n.source = this, n.operator = t, n;
|
|
4682
4668
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
4683
|
-
var i = this, o =
|
|
4669
|
+
var i = this, o = Qo(t) ? t : new nn(t, n, r);
|
|
4684
4670
|
return yt(function() {
|
|
4685
|
-
var s = i, a = s.operator,
|
|
4686
|
-
o.add(a ? a.call(o,
|
|
4671
|
+
var s = i, a = s.operator, l = s.source;
|
|
4672
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
4687
4673
|
}), o;
|
|
4688
4674
|
}, e.prototype._trySubscribe = function(t) {
|
|
4689
4675
|
try {
|
|
@@ -4693,13 +4679,13 @@ var Mn = function() {
|
|
|
4693
4679
|
}
|
|
4694
4680
|
}, e.prototype.forEach = function(t, n) {
|
|
4695
4681
|
var r = this;
|
|
4696
|
-
return n =
|
|
4697
|
-
var s = new
|
|
4682
|
+
return n = On(n), new n(function(i, o) {
|
|
4683
|
+
var s = new nn({
|
|
4698
4684
|
next: function(a) {
|
|
4699
4685
|
try {
|
|
4700
4686
|
t(a);
|
|
4701
|
-
} catch (
|
|
4702
|
-
o(
|
|
4687
|
+
} catch (l) {
|
|
4688
|
+
o(l), s.unsubscribe();
|
|
4703
4689
|
}
|
|
4704
4690
|
},
|
|
4705
4691
|
error: o,
|
|
@@ -4710,15 +4696,15 @@ var Mn = function() {
|
|
|
4710
4696
|
}, e.prototype._subscribe = function(t) {
|
|
4711
4697
|
var n;
|
|
4712
4698
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
4713
|
-
}, e.prototype[
|
|
4699
|
+
}, e.prototype[Wo] = function() {
|
|
4714
4700
|
return this;
|
|
4715
4701
|
}, e.prototype.pipe = function() {
|
|
4716
4702
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
4717
4703
|
t[n] = arguments[n];
|
|
4718
|
-
return
|
|
4704
|
+
return qo(t)(this);
|
|
4719
4705
|
}, e.prototype.toPromise = function(t) {
|
|
4720
4706
|
var n = this;
|
|
4721
|
-
return t =
|
|
4707
|
+
return t = On(t), new t(function(r, i) {
|
|
4722
4708
|
var o;
|
|
4723
4709
|
n.subscribe(function(s) {
|
|
4724
4710
|
return o = s;
|
|
@@ -4732,32 +4718,32 @@ var Mn = function() {
|
|
|
4732
4718
|
return new e(t);
|
|
4733
4719
|
}, e;
|
|
4734
4720
|
}();
|
|
4735
|
-
function
|
|
4721
|
+
function On(e) {
|
|
4736
4722
|
var t;
|
|
4737
|
-
return (t = e ??
|
|
4723
|
+
return (t = e ?? jo.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4738
4724
|
}
|
|
4739
|
-
function
|
|
4740
|
-
return e &&
|
|
4725
|
+
function Yo(e) {
|
|
4726
|
+
return e && Se(e.next) && Se(e.error) && Se(e.complete);
|
|
4741
4727
|
}
|
|
4742
|
-
function
|
|
4743
|
-
return e && e instanceof
|
|
4728
|
+
function Qo(e) {
|
|
4729
|
+
return e && e instanceof yr || Yo(e) && gr(e);
|
|
4744
4730
|
}
|
|
4745
|
-
var
|
|
4731
|
+
var Jo = mr(function(e) {
|
|
4746
4732
|
return function() {
|
|
4747
4733
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4748
4734
|
};
|
|
4749
|
-
}),
|
|
4750
|
-
|
|
4735
|
+
}), vr = function(e) {
|
|
4736
|
+
Te(t, e);
|
|
4751
4737
|
function t() {
|
|
4752
4738
|
var n = e.call(this) || this;
|
|
4753
4739
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
4754
4740
|
}
|
|
4755
4741
|
return t.prototype.lift = function(n) {
|
|
4756
|
-
var r = new
|
|
4742
|
+
var r = new Mn(this, this);
|
|
4757
4743
|
return r.operator = n, r;
|
|
4758
4744
|
}, t.prototype._throwIfClosed = function() {
|
|
4759
4745
|
if (this.closed)
|
|
4760
|
-
throw new
|
|
4746
|
+
throw new Jo();
|
|
4761
4747
|
}, t.prototype.next = function(n) {
|
|
4762
4748
|
var r = this;
|
|
4763
4749
|
yt(function() {
|
|
@@ -4765,12 +4751,12 @@ var ea = gr(function(e) {
|
|
|
4765
4751
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4766
4752
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4767
4753
|
try {
|
|
4768
|
-
for (var s =
|
|
4769
|
-
var
|
|
4770
|
-
|
|
4754
|
+
for (var s = Vt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4755
|
+
var l = a.value;
|
|
4756
|
+
l.next(n);
|
|
4771
4757
|
}
|
|
4772
|
-
} catch (
|
|
4773
|
-
i = { error:
|
|
4758
|
+
} catch (u) {
|
|
4759
|
+
i = { error: u };
|
|
4774
4760
|
} finally {
|
|
4775
4761
|
try {
|
|
4776
4762
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -4814,20 +4800,20 @@ var ea = gr(function(e) {
|
|
|
4814
4800
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
4815
4801
|
}, t.prototype._innerSubscribe = function(n) {
|
|
4816
4802
|
var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4817
|
-
return o || s ?
|
|
4818
|
-
r.currentObservers = null,
|
|
4803
|
+
return o || s ? br : (this.currentObservers = null, a.push(n), new At(function() {
|
|
4804
|
+
r.currentObservers = null, tn(a, n);
|
|
4819
4805
|
}));
|
|
4820
4806
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
4821
4807
|
var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
4822
4808
|
i ? n.error(o) : s && n.complete();
|
|
4823
4809
|
}, t.prototype.asObservable = function() {
|
|
4824
|
-
var n = new
|
|
4810
|
+
var n = new Hn();
|
|
4825
4811
|
return n.source = this, n;
|
|
4826
4812
|
}, t.create = function(n, r) {
|
|
4827
|
-
return new
|
|
4813
|
+
return new Mn(n, r);
|
|
4828
4814
|
}, t;
|
|
4829
|
-
}(
|
|
4830
|
-
|
|
4815
|
+
}(Hn), Mn = function(e) {
|
|
4816
|
+
Te(t, e);
|
|
4831
4817
|
function t(n, r) {
|
|
4832
4818
|
var i = e.call(this) || this;
|
|
4833
4819
|
return i.destination = n, i.source = r, i;
|
|
@@ -4843,58 +4829,58 @@ var ea = gr(function(e) {
|
|
|
4843
4829
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
4844
4830
|
}, t.prototype._subscribe = function(n) {
|
|
4845
4831
|
var r, i;
|
|
4846
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
4832
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
|
|
4847
4833
|
}, t;
|
|
4848
|
-
}(
|
|
4834
|
+
}(vr), _r = {
|
|
4849
4835
|
now: function() {
|
|
4850
|
-
return (
|
|
4836
|
+
return (_r.delegate || Date).now();
|
|
4851
4837
|
},
|
|
4852
4838
|
delegate: void 0
|
|
4853
|
-
},
|
|
4854
|
-
|
|
4839
|
+
}, Ko = function(e) {
|
|
4840
|
+
Te(t, e);
|
|
4855
4841
|
function t(n, r, i) {
|
|
4856
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
4842
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = _r);
|
|
4857
4843
|
var o = e.call(this) || this;
|
|
4858
4844
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
4859
4845
|
}
|
|
4860
4846
|
return t.prototype.next = function(n) {
|
|
4861
|
-
var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider,
|
|
4862
|
-
i || (o.push(n), !s && o.push(a.now() +
|
|
4847
|
+
var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
|
|
4848
|
+
i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
4863
4849
|
}, t.prototype._subscribe = function(n) {
|
|
4864
4850
|
this._throwIfClosed(), this._trimBuffer();
|
|
4865
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
4866
|
-
n.next(a[
|
|
4851
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
|
|
4852
|
+
n.next(a[l]);
|
|
4867
4853
|
return this._checkFinalizedStatuses(n), r;
|
|
4868
4854
|
}, t.prototype._trimBuffer = function() {
|
|
4869
4855
|
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
4870
4856
|
if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
4871
|
-
for (var
|
|
4872
|
-
|
|
4873
|
-
|
|
4857
|
+
for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
|
|
4858
|
+
u = f;
|
|
4859
|
+
u && o.splice(0, u + 1);
|
|
4874
4860
|
}
|
|
4875
4861
|
}, t;
|
|
4876
|
-
}(
|
|
4877
|
-
const
|
|
4878
|
-
if (
|
|
4879
|
-
const n = new
|
|
4880
|
-
|
|
4862
|
+
}(vr);
|
|
4863
|
+
const Rn = [], Ln = {}, ea = (e, t = 0) => {
|
|
4864
|
+
if (Rn.indexOf(e) == -1) {
|
|
4865
|
+
const n = new Ko(t);
|
|
4866
|
+
Ln[e] = n, Rn.push(e);
|
|
4881
4867
|
}
|
|
4882
|
-
return
|
|
4868
|
+
return Ln[e];
|
|
4883
4869
|
};
|
|
4884
|
-
window.emWidgets = { topic:
|
|
4885
|
-
const
|
|
4886
|
-
function
|
|
4887
|
-
|
|
4870
|
+
window.emWidgets = { topic: ea };
|
|
4871
|
+
const ta = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4872
|
+
function na(e) {
|
|
4873
|
+
Tr(e, "svelte-lfsn3o", '*,*::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;background:transparent;border:none;font:inherit;color:inherit;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, #22B04E));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;background:transparent;border:none;font:inherit;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}');
|
|
4888
4874
|
}
|
|
4889
|
-
function
|
|
4875
|
+
function Pn(e, t, n) {
|
|
4890
4876
|
const r = e.slice();
|
|
4891
4877
|
return r[54] = t[n], r;
|
|
4892
4878
|
}
|
|
4893
|
-
function
|
|
4879
|
+
function Nn(e, t, n) {
|
|
4894
4880
|
const r = e.slice();
|
|
4895
4881
|
return r[57] = t[n], r;
|
|
4896
4882
|
}
|
|
4897
|
-
function
|
|
4883
|
+
function ra(e) {
|
|
4898
4884
|
let t, n, r = (
|
|
4899
4885
|
/*balances*/
|
|
4900
4886
|
(e[1].Total ? (
|
|
@@ -4904,53 +4890,53 @@ function oa(e) {
|
|
|
4904
4890
|
e[1].Total[0].amount
|
|
4905
4891
|
)
|
|
4906
4892
|
) : "0") + ""
|
|
4907
|
-
), i, o, s, a,
|
|
4893
|
+
), i, o, s, a, l, u, f, b, m, w, _ = (
|
|
4908
4894
|
/*showBalance*/
|
|
4909
|
-
e[4] &&
|
|
4895
|
+
e[4] && In(e)
|
|
4910
4896
|
);
|
|
4911
4897
|
return {
|
|
4912
4898
|
c() {
|
|
4913
|
-
t = j("button"), n = j("p"), i =
|
|
4914
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4899
|
+
t = j("button"), n = j("p"), i = xe(r), o = we(), s = j("span"), a = cn("svg"), l = cn("path"), f = we(), _ && _.c(), b = Cr(), M(l, "id", "arrow"), M(l, "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(l, "transform", "translate(-274.511 -441.088)"), M(l, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(s, "class", u = /*isModalDisplayed*/
|
|
4900
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4915
4901
|
},
|
|
4916
|
-
m(
|
|
4917
|
-
|
|
4902
|
+
m(A, I) {
|
|
4903
|
+
be(A, t, I), P(t, n), P(n, i), P(t, o), P(t, s), P(s, a), P(a, l), be(A, f, I), _ && _.m(A, I), be(A, b, I), m || (w = vt(
|
|
4918
4904
|
t,
|
|
4919
4905
|
"click",
|
|
4920
4906
|
/*click_handler*/
|
|
4921
4907
|
e[26]
|
|
4922
|
-
),
|
|
4908
|
+
), m = !0);
|
|
4923
4909
|
},
|
|
4924
|
-
p(
|
|
4925
|
-
|
|
4910
|
+
p(A, I) {
|
|
4911
|
+
I[0] & /*balances*/
|
|
4926
4912
|
2 && r !== (r = /*balances*/
|
|
4927
|
-
(
|
|
4913
|
+
(A[1].Total ? (
|
|
4928
4914
|
/*formatBalance*/
|
|
4929
|
-
|
|
4915
|
+
A[8](
|
|
4930
4916
|
/*balances*/
|
|
4931
|
-
|
|
4917
|
+
A[1].Total[0].amount
|
|
4932
4918
|
)
|
|
4933
|
-
) : "0") + "") && Me(i, r),
|
|
4934
|
-
8 &&
|
|
4935
|
-
|
|
4936
|
-
|
|
4919
|
+
) : "0") + "") && Me(i, r), I[0] & /*isModalDisplayed*/
|
|
4920
|
+
8 && u !== (u = /*isModalDisplayed*/
|
|
4921
|
+
A[3] ? "TriangleActive" : "TriangleInactive") && M(s, "class", u), /*showBalance*/
|
|
4922
|
+
A[4] ? _ ? _.p(A, I) : (_ = In(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
|
|
4937
4923
|
},
|
|
4938
|
-
d(
|
|
4939
|
-
|
|
4924
|
+
d(A) {
|
|
4925
|
+
A && (de(t), de(f), de(b)), _ && _.d(A), m = !1, w();
|
|
4940
4926
|
}
|
|
4941
4927
|
};
|
|
4942
4928
|
}
|
|
4943
|
-
function
|
|
4929
|
+
function ia(e) {
|
|
4944
4930
|
let t, n = (
|
|
4945
4931
|
/*$_*/
|
|
4946
4932
|
e[6]("Loading") + ""
|
|
4947
4933
|
), r;
|
|
4948
4934
|
return {
|
|
4949
4935
|
c() {
|
|
4950
|
-
t = j("p"), r =
|
|
4936
|
+
t = j("p"), r = xe(n), M(t, "class", "Loading");
|
|
4951
4937
|
},
|
|
4952
4938
|
m(i, o) {
|
|
4953
|
-
|
|
4939
|
+
be(i, t, o), P(t, r);
|
|
4954
4940
|
},
|
|
4955
4941
|
p(i, o) {
|
|
4956
4942
|
o[0] & /*$_*/
|
|
@@ -4958,39 +4944,39 @@ function aa(e) {
|
|
|
4958
4944
|
i[6]("Loading") + "") && Me(r, n);
|
|
4959
4945
|
},
|
|
4960
4946
|
d(i) {
|
|
4961
|
-
i &&
|
|
4947
|
+
i && de(t);
|
|
4962
4948
|
}
|
|
4963
4949
|
};
|
|
4964
4950
|
}
|
|
4965
|
-
function
|
|
4966
|
-
let t, n, r, i, o, s, a,
|
|
4951
|
+
function In(e) {
|
|
4952
|
+
let t, n, r, i, o, s, a, l, u = (
|
|
4967
4953
|
/*$_*/
|
|
4968
4954
|
e[6]("Title") + ""
|
|
4969
|
-
), f,
|
|
4955
|
+
), f, b, m, w, _, A, I = (
|
|
4970
4956
|
/*$_*/
|
|
4971
4957
|
e[6]("DepositButton") + ""
|
|
4972
|
-
), W, V,
|
|
4958
|
+
), W, V, R, D, k, oe, Z = _t(Object.keys(
|
|
4973
4959
|
/*balances*/
|
|
4974
4960
|
e[1]
|
|
4975
|
-
)),
|
|
4976
|
-
for (let
|
|
4977
|
-
|
|
4961
|
+
)), $ = [];
|
|
4962
|
+
for (let U = 0; U < Z.length; U += 1)
|
|
4963
|
+
$[U] = Un(Pn(e, Z, U));
|
|
4978
4964
|
return {
|
|
4979
4965
|
c() {
|
|
4980
|
-
t = j("div"), n = j("button"), i =
|
|
4981
|
-
for (let
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
(e[3] ? "Open" : "")),
|
|
4985
|
-
(e[3] ? "Open" : "")),
|
|
4986
|
-
(e[3] ? "Open" : "")),
|
|
4966
|
+
t = j("div"), n = j("button"), i = we(), o = j("div"), s = j("div"), a = j("div"), l = j("p"), f = xe(u), b = we(), m = j("div");
|
|
4967
|
+
for (let U = 0; U < $.length; U += 1)
|
|
4968
|
+
$[U].c();
|
|
4969
|
+
w = we(), _ = j("div"), A = j("button"), W = xe(I), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4970
|
+
(e[3] ? "Open" : "")), M(l, "class", "BalanceModalTitle"), M(a, "class", "BalanceModalHeader"), M(m, "class", "BalanceModalBody"), M(A, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(s, "class", V = "ModalContent " + /*isModalDisplayed*/
|
|
4971
|
+
(e[3] ? "Open" : "")), M(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
|
|
4972
|
+
(e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4987
4973
|
(e[3] ? "Open" : ""));
|
|
4988
4974
|
},
|
|
4989
|
-
m(
|
|
4990
|
-
|
|
4991
|
-
for (let
|
|
4992
|
-
F
|
|
4993
|
-
|
|
4975
|
+
m(U, q) {
|
|
4976
|
+
be(U, t, q), P(t, n), P(t, i), P(t, o), P(o, s), P(s, a), P(a, l), P(l, f), P(s, b), P(s, m);
|
|
4977
|
+
for (let F = 0; F < $.length; F += 1)
|
|
4978
|
+
$[F] && $[F].m(m, null);
|
|
4979
|
+
P(s, w), P(s, _), P(_, A), P(A, W), k || (oe = [
|
|
4994
4980
|
vt(
|
|
4995
4981
|
n,
|
|
4996
4982
|
"click",
|
|
@@ -4998,49 +4984,49 @@ function Un(e) {
|
|
|
4998
4984
|
e[27]
|
|
4999
4985
|
),
|
|
5000
4986
|
vt(
|
|
5001
|
-
|
|
4987
|
+
A,
|
|
5002
4988
|
"click",
|
|
5003
4989
|
/*click_handler_2*/
|
|
5004
4990
|
e[28]
|
|
5005
4991
|
)
|
|
5006
|
-
],
|
|
4992
|
+
], k = !0);
|
|
5007
4993
|
},
|
|
5008
|
-
p(
|
|
5009
|
-
if (
|
|
4994
|
+
p(U, q) {
|
|
4995
|
+
if (q[0] & /*isModalDisplayed*/
|
|
5010
4996
|
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5011
|
-
(
|
|
5012
|
-
64 &&
|
|
5013
|
-
|
|
4997
|
+
(U[3] ? "Open" : "")) && M(n, "class", r), q[0] & /*$_*/
|
|
4998
|
+
64 && u !== (u = /*$_*/
|
|
4999
|
+
U[6]("Title") + "") && Me(f, u), q[0] & /*balances, formatBalance, $_*/
|
|
5014
5000
|
322) {
|
|
5015
|
-
|
|
5001
|
+
Z = _t(Object.keys(
|
|
5016
5002
|
/*balances*/
|
|
5017
|
-
|
|
5003
|
+
U[1]
|
|
5018
5004
|
));
|
|
5019
|
-
let
|
|
5020
|
-
for (
|
|
5021
|
-
const
|
|
5022
|
-
F
|
|
5005
|
+
let F;
|
|
5006
|
+
for (F = 0; F < Z.length; F += 1) {
|
|
5007
|
+
const K = Pn(U, Z, F);
|
|
5008
|
+
$[F] ? $[F].p(K, q) : ($[F] = Un(K), $[F].c(), $[F].m(m, null));
|
|
5023
5009
|
}
|
|
5024
|
-
for (;
|
|
5025
|
-
F
|
|
5026
|
-
|
|
5010
|
+
for (; F < $.length; F += 1)
|
|
5011
|
+
$[F].d(1);
|
|
5012
|
+
$.length = Z.length;
|
|
5027
5013
|
}
|
|
5028
|
-
|
|
5029
|
-
64 &&
|
|
5030
|
-
|
|
5014
|
+
q[0] & /*$_*/
|
|
5015
|
+
64 && I !== (I = /*$_*/
|
|
5016
|
+
U[6]("DepositButton") + "") && Me(W, I), q[0] & /*isModalDisplayed*/
|
|
5031
5017
|
8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
|
|
5032
|
-
(
|
|
5033
|
-
8 &&
|
|
5034
|
-
(
|
|
5035
|
-
8 &&
|
|
5036
|
-
(
|
|
5018
|
+
(U[3] ? "Open" : "")) && M(s, "class", V), q[0] & /*isModalDisplayed*/
|
|
5019
|
+
8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
|
|
5020
|
+
(U[3] ? "Open" : "")) && M(o, "class", R), q[0] & /*isModalDisplayed*/
|
|
5021
|
+
8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5022
|
+
(U[3] ? "Open" : "")) && M(t, "class", D);
|
|
5037
5023
|
},
|
|
5038
|
-
d(
|
|
5039
|
-
|
|
5024
|
+
d(U) {
|
|
5025
|
+
U && de(t), $n($, U), k = !1, ze(oe);
|
|
5040
5026
|
}
|
|
5041
5027
|
};
|
|
5042
5028
|
}
|
|
5043
|
-
function
|
|
5029
|
+
function Dn(e) {
|
|
5044
5030
|
let t, n, r = (
|
|
5045
5031
|
/*$_*/
|
|
5046
5032
|
e[6](
|
|
@@ -5056,47 +5042,47 @@ function Fn(e) {
|
|
|
5056
5042
|
e[57].productType
|
|
5057
5043
|
)
|
|
5058
5044
|
) : "") + ""
|
|
5059
|
-
), a,
|
|
5045
|
+
), a, l, u, f, b = (
|
|
5060
5046
|
/*formatBalance*/
|
|
5061
5047
|
e[8](
|
|
5062
5048
|
/*b*/
|
|
5063
5049
|
e[57].amount
|
|
5064
5050
|
) + ""
|
|
5065
|
-
),
|
|
5051
|
+
), m;
|
|
5066
5052
|
return {
|
|
5067
5053
|
c() {
|
|
5068
|
-
t = j("div"), n = j("p"), i =
|
|
5054
|
+
t = j("div"), n = j("p"), i = xe(r), o = we(), a = xe(s), l = we(), u = j("p"), f = j("span"), m = xe(b), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
5069
5055
|
},
|
|
5070
|
-
m(
|
|
5071
|
-
|
|
5056
|
+
m(w, _) {
|
|
5057
|
+
be(w, t, _), P(t, n), P(n, i), P(n, o), P(n, a), P(t, l), P(t, u), P(u, f), P(f, m);
|
|
5072
5058
|
},
|
|
5073
|
-
p(
|
|
5074
|
-
|
|
5059
|
+
p(w, _) {
|
|
5060
|
+
_[0] & /*$_, balances*/
|
|
5075
5061
|
66 && r !== (r = /*$_*/
|
|
5076
|
-
|
|
5062
|
+
w[6](
|
|
5077
5063
|
/*k*/
|
|
5078
|
-
|
|
5079
|
-
) + "") && Me(i, r),
|
|
5064
|
+
w[54]
|
|
5065
|
+
) + "") && Me(i, r), _[0] & /*balances, $_*/
|
|
5080
5066
|
66 && s !== (s = /*b*/
|
|
5081
|
-
(
|
|
5067
|
+
(w[57].productType ? (
|
|
5082
5068
|
/*$_*/
|
|
5083
|
-
|
|
5069
|
+
w[6](
|
|
5084
5070
|
/*b*/
|
|
5085
|
-
|
|
5071
|
+
w[57].productType
|
|
5086
5072
|
)
|
|
5087
|
-
) : "") + "") && Me(a, s),
|
|
5088
|
-
2 &&
|
|
5089
|
-
|
|
5073
|
+
) : "") + "") && Me(a, s), _[0] & /*balances*/
|
|
5074
|
+
2 && b !== (b = /*formatBalance*/
|
|
5075
|
+
w[8](
|
|
5090
5076
|
/*b*/
|
|
5091
|
-
|
|
5092
|
-
) + "") && Me(
|
|
5077
|
+
w[57].amount
|
|
5078
|
+
) + "") && Me(m, b);
|
|
5093
5079
|
},
|
|
5094
|
-
d(
|
|
5095
|
-
|
|
5080
|
+
d(w) {
|
|
5081
|
+
w && de(t);
|
|
5096
5082
|
}
|
|
5097
5083
|
};
|
|
5098
5084
|
}
|
|
5099
|
-
function
|
|
5085
|
+
function Un(e) {
|
|
5100
5086
|
let t, n, r = _t(
|
|
5101
5087
|
/*balances*/
|
|
5102
5088
|
e[1][
|
|
@@ -5105,19 +5091,19 @@ function Gn(e) {
|
|
|
5105
5091
|
]
|
|
5106
5092
|
), i = [];
|
|
5107
5093
|
for (let o = 0; o < r.length; o += 1)
|
|
5108
|
-
i[o] =
|
|
5094
|
+
i[o] = Dn(Nn(e, r, o));
|
|
5109
5095
|
return {
|
|
5110
5096
|
c() {
|
|
5111
5097
|
t = j("div");
|
|
5112
5098
|
for (let o = 0; o < i.length; o += 1)
|
|
5113
5099
|
i[o].c();
|
|
5114
|
-
n =
|
|
5100
|
+
n = we(), M(t, "class", "BalanceModalRowBoth");
|
|
5115
5101
|
},
|
|
5116
5102
|
m(o, s) {
|
|
5117
|
-
|
|
5103
|
+
be(o, t, s);
|
|
5118
5104
|
for (let a = 0; a < i.length; a += 1)
|
|
5119
5105
|
i[a] && i[a].m(t, null);
|
|
5120
|
-
|
|
5106
|
+
P(t, n);
|
|
5121
5107
|
},
|
|
5122
5108
|
p(o, s) {
|
|
5123
5109
|
if (s[0] & /*formatBalance, balances, $_*/
|
|
@@ -5131,8 +5117,8 @@ function Gn(e) {
|
|
|
5131
5117
|
);
|
|
5132
5118
|
let a;
|
|
5133
5119
|
for (a = 0; a < r.length; a += 1) {
|
|
5134
|
-
const
|
|
5135
|
-
i[a] ? i[a].p(
|
|
5120
|
+
const l = Nn(o, r, a);
|
|
5121
|
+
i[a] ? i[a].p(l, s) : (i[a] = Dn(l), i[a].c(), i[a].m(t, n));
|
|
5136
5122
|
}
|
|
5137
5123
|
for (; a < i.length; a += 1)
|
|
5138
5124
|
i[a].d(1);
|
|
@@ -5140,73 +5126,73 @@ function Gn(e) {
|
|
|
5140
5126
|
}
|
|
5141
5127
|
},
|
|
5142
5128
|
d(o) {
|
|
5143
|
-
o &&
|
|
5129
|
+
o && de(t), $n(i, o);
|
|
5144
5130
|
}
|
|
5145
5131
|
};
|
|
5146
5132
|
}
|
|
5147
|
-
function
|
|
5133
|
+
function Fn(e) {
|
|
5148
5134
|
let t, n, r;
|
|
5149
5135
|
return {
|
|
5150
5136
|
c() {
|
|
5151
|
-
t = j("button"),
|
|
5137
|
+
t = j("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
5152
5138
|
},
|
|
5153
5139
|
m(i, o) {
|
|
5154
|
-
|
|
5140
|
+
be(i, t, o), n || (r = vt(
|
|
5155
5141
|
t,
|
|
5156
5142
|
"click",
|
|
5157
5143
|
/*click_handler_3*/
|
|
5158
5144
|
e[29]
|
|
5159
5145
|
), n = !0);
|
|
5160
5146
|
},
|
|
5161
|
-
p:
|
|
5147
|
+
p: ce,
|
|
5162
5148
|
d(i) {
|
|
5163
|
-
i &&
|
|
5149
|
+
i && de(t), n = !1, r();
|
|
5164
5150
|
}
|
|
5165
5151
|
};
|
|
5166
5152
|
}
|
|
5167
|
-
function
|
|
5153
|
+
function oa(e) {
|
|
5168
5154
|
let t, n, r, i;
|
|
5169
|
-
function o(
|
|
5155
|
+
function o(u, f) {
|
|
5170
5156
|
return (
|
|
5171
5157
|
/*isLoading*/
|
|
5172
|
-
|
|
5158
|
+
u[2] ? ia : ra
|
|
5173
5159
|
);
|
|
5174
5160
|
}
|
|
5175
|
-
let s = o(e), a = s(e),
|
|
5161
|
+
let s = o(e), a = s(e), l = (
|
|
5176
5162
|
/*showBalance*/
|
|
5177
|
-
e[4] &&
|
|
5163
|
+
e[4] && Fn(e)
|
|
5178
5164
|
);
|
|
5179
5165
|
return {
|
|
5180
5166
|
c() {
|
|
5181
|
-
t = j("div"), n = j("div"), a.c(), i =
|
|
5167
|
+
t = j("div"), n = j("div"), a.c(), i = we(), l && l.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
|
|
5182
5168
|
(e[5] ? "Mobile" : ""));
|
|
5183
5169
|
},
|
|
5184
|
-
m(
|
|
5185
|
-
|
|
5170
|
+
m(u, f) {
|
|
5171
|
+
be(u, t, f), P(t, n), a.m(n, null), P(t, i), l && l.m(t, null), e[30](t);
|
|
5186
5172
|
},
|
|
5187
|
-
p(
|
|
5188
|
-
s === (s = o(
|
|
5173
|
+
p(u, f) {
|
|
5174
|
+
s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
|
|
5189
5175
|
32 && r !== (r = "ShowBalance " + /*mobileView*/
|
|
5190
|
-
(
|
|
5191
|
-
|
|
5176
|
+
(u[5] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
|
|
5177
|
+
u[4] ? l ? l.p(u, f) : (l = Fn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
5192
5178
|
},
|
|
5193
|
-
i:
|
|
5194
|
-
o:
|
|
5195
|
-
d(
|
|
5196
|
-
|
|
5179
|
+
i: ce,
|
|
5180
|
+
o: ce,
|
|
5181
|
+
d(u) {
|
|
5182
|
+
u && de(t), a.d(), l && l.d(), e[30](null);
|
|
5197
5183
|
}
|
|
5198
5184
|
};
|
|
5199
5185
|
}
|
|
5200
|
-
function
|
|
5186
|
+
function aa(e, t, n) {
|
|
5201
5187
|
let r;
|
|
5202
|
-
|
|
5203
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource:
|
|
5204
|
-
const x = {},
|
|
5205
|
-
fetch(
|
|
5188
|
+
Sr(e, Uo, (c) => n(6, r = c));
|
|
5189
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", he = [], ge;
|
|
5190
|
+
const x = {}, ye = ["totalCashAmount", "totalRealAmount"], pe = () => {
|
|
5191
|
+
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Tn(d, c[d]))).catch((c) => console.log(c));
|
|
5206
5192
|
};
|
|
5207
|
-
Object.keys(
|
|
5208
|
-
const
|
|
5209
|
-
switch (
|
|
5193
|
+
Object.keys(Bn).forEach((c) => Tn(c, Bn[c]));
|
|
5194
|
+
const le = (c) => {
|
|
5195
|
+
switch (c) {
|
|
5210
5196
|
case "balance":
|
|
5211
5197
|
window.postMessage(
|
|
5212
5198
|
{
|
|
@@ -5214,10 +5200,10 @@ function la(e, t, n) {
|
|
|
5214
5200
|
status: "open"
|
|
5215
5201
|
},
|
|
5216
5202
|
window.location.href
|
|
5217
|
-
), n(4,
|
|
5203
|
+
), n(4, $ = !0), setTimeout(() => n(3, oe = !0), 150);
|
|
5218
5204
|
break;
|
|
5219
5205
|
case "closebalance":
|
|
5220
|
-
n(3,
|
|
5206
|
+
n(3, oe = !1), window.postMessage(
|
|
5221
5207
|
{
|
|
5222
5208
|
type: "BalanceModalStatus",
|
|
5223
5209
|
status: "close"
|
|
@@ -5225,66 +5211,66 @@ function la(e, t, n) {
|
|
|
5225
5211
|
window.location.href
|
|
5226
5212
|
), setTimeout(
|
|
5227
5213
|
() => {
|
|
5228
|
-
n(4,
|
|
5214
|
+
n(4, $ = !1);
|
|
5229
5215
|
},
|
|
5230
5216
|
150
|
|
5231
5217
|
);
|
|
5232
5218
|
break;
|
|
5233
5219
|
}
|
|
5234
|
-
},
|
|
5235
|
-
if (
|
|
5236
|
-
return
|
|
5237
|
-
const d =
|
|
5220
|
+
}, He = (c) => {
|
|
5221
|
+
if (R)
|
|
5222
|
+
return Ye(c);
|
|
5223
|
+
const d = A || a, p = {
|
|
5238
5224
|
style: "currency",
|
|
5239
|
-
currency:
|
|
5225
|
+
currency: K,
|
|
5240
5226
|
useGrouping: !0,
|
|
5241
|
-
currencyDisplay:
|
|
5227
|
+
currencyDisplay: I || "code",
|
|
5242
5228
|
maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
|
|
5243
5229
|
minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
|
|
5244
5230
|
};
|
|
5245
|
-
return new Intl.NumberFormat(d,
|
|
5246
|
-
},
|
|
5231
|
+
return new Intl.NumberFormat(d, p).format(c);
|
|
5232
|
+
}, Ye = (c) => {
|
|
5247
5233
|
const d = [];
|
|
5248
|
-
let
|
|
5249
|
-
for (const
|
|
5250
|
-
switch (
|
|
5234
|
+
let p = "";
|
|
5235
|
+
for (const v of R)
|
|
5236
|
+
switch (v) {
|
|
5251
5237
|
default:
|
|
5252
|
-
|
|
5238
|
+
p += v;
|
|
5253
5239
|
break;
|
|
5254
5240
|
case "{":
|
|
5255
|
-
|
|
5241
|
+
p && d.push(p), p = "";
|
|
5256
5242
|
break;
|
|
5257
5243
|
case "}":
|
|
5258
|
-
const [
|
|
5259
|
-
if (
|
|
5260
|
-
|
|
5261
|
-
else if (
|
|
5262
|
-
let
|
|
5263
|
-
C && (C[0] !== " " && (
|
|
5264
|
-
let [
|
|
5265
|
-
|
|
5266
|
-
for (let
|
|
5267
|
-
(
|
|
5268
|
-
|
|
5244
|
+
const [T, C] = p.split("|");
|
|
5245
|
+
if (p = "", T.toLowerCase() === "currency")
|
|
5246
|
+
p = K;
|
|
5247
|
+
else if (T.toLowerCase() === "amount") {
|
|
5248
|
+
let S = ",", B = ".", N = 2;
|
|
5249
|
+
C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
|
|
5250
|
+
let [ee, Ae] = String(Math.floor(c * 10 ** N) / 10 ** N).split(".");
|
|
5251
|
+
p += ee[0];
|
|
5252
|
+
for (let X = 1; X < ee.length; ++X)
|
|
5253
|
+
(ee.length - X) % 3 === 0 ? p += S + ee[X] : p += ee[X];
|
|
5254
|
+
Ae && (p += B + Ae);
|
|
5269
5255
|
}
|
|
5270
|
-
|
|
5256
|
+
p && d.push(p), p = "";
|
|
5271
5257
|
break;
|
|
5272
5258
|
}
|
|
5273
|
-
return d.push(
|
|
5274
|
-
},
|
|
5275
|
-
n(2,
|
|
5276
|
-
const
|
|
5259
|
+
return d.push(p), d.join("");
|
|
5260
|
+
}, me = async () => {
|
|
5261
|
+
n(2, k = !0);
|
|
5262
|
+
const c = new URL(`${s}/v1/player/${i}/account`);
|
|
5277
5263
|
try {
|
|
5278
|
-
const d = await fetch(
|
|
5264
|
+
const d = await fetch(c, {
|
|
5279
5265
|
method: "GET",
|
|
5280
5266
|
headers: { "X-SessionID": o }
|
|
5281
|
-
}),
|
|
5267
|
+
}), p = await d.json();
|
|
5282
5268
|
if (d.ok)
|
|
5283
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
5269
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: p.totalAmount[K] }], x), n(
|
|
5284
5270
|
1,
|
|
5285
5271
|
x.Real = [
|
|
5286
5272
|
{
|
|
5287
|
-
amount:
|
|
5273
|
+
amount: he.find((v) => v.displayName === "Casino")?.balanceAmount
|
|
5288
5274
|
}
|
|
5289
5275
|
],
|
|
5290
5276
|
x
|
|
@@ -5292,7 +5278,7 @@ function la(e, t, n) {
|
|
|
5292
5278
|
1,
|
|
5293
5279
|
x.Bonus = [
|
|
5294
5280
|
{
|
|
5295
|
-
amount:
|
|
5281
|
+
amount: he.find((v) => v.displayName === "UBS")?.balanceAmount
|
|
5296
5282
|
}
|
|
5297
5283
|
],
|
|
5298
5284
|
x
|
|
@@ -5302,36 +5288,36 @@ function la(e, t, n) {
|
|
|
5302
5288
|
} catch (d) {
|
|
5303
5289
|
console.log("Balance error: ", d);
|
|
5304
5290
|
} finally {
|
|
5305
|
-
n(2,
|
|
5291
|
+
n(2, k = !1);
|
|
5306
5292
|
}
|
|
5307
|
-
},
|
|
5308
|
-
n(2,
|
|
5309
|
-
const
|
|
5310
|
-
d.append("X-SessionID", o), fetch(
|
|
5311
|
-
|
|
5312
|
-
const
|
|
5313
|
-
if (
|
|
5314
|
-
|
|
5293
|
+
}, Qe = () => {
|
|
5294
|
+
n(2, k = !0);
|
|
5295
|
+
const c = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
|
|
5296
|
+
d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((v) => v.json()).then((v) => {
|
|
5297
|
+
v[_] || n(10, _ = ye[0]);
|
|
5298
|
+
const T = v.items.find((S) => S.type === "Real" && S.walletAccountType === "Ordinary");
|
|
5299
|
+
if (K = T.currency, Z = !!T.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !Z) {
|
|
5300
|
+
ge = {
|
|
5315
5301
|
lastOrdinaryAfterAmount: 0,
|
|
5316
5302
|
showCreditLineAfterAmount: !1
|
|
5317
|
-
}, n(1, x.Total[0].amount =
|
|
5318
|
-
for (const
|
|
5319
|
-
switch (
|
|
5303
|
+
}, n(1, x.Total[0].amount = v[_][K], x);
|
|
5304
|
+
for (const S of v.items)
|
|
5305
|
+
switch (S.type) {
|
|
5320
5306
|
case "Bonus":
|
|
5321
|
-
x.Bonus.length === 0 ? x.Bonus.push({ amount:
|
|
5307
|
+
x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) : n(1, x.Bonus[0].amount += S.amount, x);
|
|
5322
5308
|
break;
|
|
5323
5309
|
case "Real":
|
|
5324
|
-
if (
|
|
5310
|
+
if (S.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: S.creditLine }), _ === "totalRealAmount")
|
|
5325
5311
|
continue;
|
|
5326
|
-
x.Real.length === 0 ? x.Real.push({ amount:
|
|
5312
|
+
x.Real.length === 0 ? x.Real.push({ amount: S.amount }) : n(1, x.Real[0].amount += S.amount, x);
|
|
5327
5313
|
break;
|
|
5328
5314
|
}
|
|
5329
|
-
for (const [
|
|
5330
|
-
|
|
5331
|
-
n(2,
|
|
5315
|
+
for (const [S, B] of Object.entries(x))
|
|
5316
|
+
B.length < 1 && delete x[S];
|
|
5317
|
+
n(2, k = !1);
|
|
5332
5318
|
return;
|
|
5333
5319
|
}
|
|
5334
|
-
|
|
5320
|
+
ge = {
|
|
5335
5321
|
Casino: {
|
|
5336
5322
|
lastOrdinaryAfterAmount: 0,
|
|
5337
5323
|
showCreditLineAfterAmount: !1
|
|
@@ -5341,202 +5327,202 @@ function la(e, t, n) {
|
|
|
5341
5327
|
showCreditLineAfterAmount: !1
|
|
5342
5328
|
}
|
|
5343
5329
|
};
|
|
5344
|
-
let C =
|
|
5345
|
-
|
|
5346
|
-
for (const
|
|
5347
|
-
let
|
|
5348
|
-
switch (
|
|
5330
|
+
let C = v.items;
|
|
5331
|
+
w && w !== "All" && (C = v.items.filter((S) => S.productType === w));
|
|
5332
|
+
for (const S of C) {
|
|
5333
|
+
let B;
|
|
5334
|
+
switch (S.type) {
|
|
5349
5335
|
case "Bonus":
|
|
5350
|
-
|
|
5351
|
-
amount:
|
|
5352
|
-
productType:
|
|
5336
|
+
B = x.Bonus.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
|
|
5337
|
+
amount: S.amount,
|
|
5338
|
+
productType: S.productType
|
|
5353
5339
|
});
|
|
5354
5340
|
break;
|
|
5355
5341
|
case "Real":
|
|
5356
|
-
|
|
5357
|
-
amount:
|
|
5358
|
-
productType:
|
|
5359
|
-
}),
|
|
5360
|
-
amount:
|
|
5361
|
-
productType:
|
|
5342
|
+
S.creditLine && x.Credit.push({
|
|
5343
|
+
amount: S.creditLine,
|
|
5344
|
+
productType: S.productType
|
|
5345
|
+
}), B = x.Real.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Real[B].amount += S.amount, x) : x.Real.push({
|
|
5346
|
+
amount: S.amount,
|
|
5347
|
+
productType: S.productType
|
|
5362
5348
|
});
|
|
5363
5349
|
break;
|
|
5364
5350
|
}
|
|
5365
5351
|
}
|
|
5366
|
-
|
|
5367
|
-
for (const [
|
|
5368
|
-
|
|
5369
|
-
n(2,
|
|
5370
|
-
}).catch((
|
|
5371
|
-
throw n(2,
|
|
5352
|
+
ut();
|
|
5353
|
+
for (const [S, B] of Object.entries(x))
|
|
5354
|
+
B.length < 1 && delete x[S];
|
|
5355
|
+
n(2, k = !1);
|
|
5356
|
+
}).catch((v) => {
|
|
5357
|
+
throw n(2, k = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
|
|
5372
5358
|
});
|
|
5373
|
-
},
|
|
5374
|
-
if (
|
|
5359
|
+
}, Le = () => {
|
|
5360
|
+
if (F && F.close(), o.length < 1)
|
|
5375
5361
|
return;
|
|
5376
|
-
let
|
|
5377
|
-
switch (
|
|
5362
|
+
let c, d;
|
|
5363
|
+
switch (m) {
|
|
5378
5364
|
case "gm16":
|
|
5379
|
-
|
|
5365
|
+
c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Ke(T);
|
|
5380
5366
|
break;
|
|
5381
5367
|
case "gmcore":
|
|
5382
|
-
|
|
5368
|
+
c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ct(T);
|
|
5383
5369
|
break;
|
|
5384
5370
|
}
|
|
5385
|
-
const
|
|
5371
|
+
const p = {
|
|
5386
5372
|
accept: "text/event-stream",
|
|
5387
5373
|
"X-SessionId": o
|
|
5388
|
-
},
|
|
5389
|
-
|
|
5390
|
-
},
|
|
5374
|
+
}, v = new Go.EventSourcePolyfill(c, { headers: p });
|
|
5375
|
+
F = v, v.addEventListener("message", d);
|
|
5376
|
+
}, st = (c) => {
|
|
5391
5377
|
let d;
|
|
5392
5378
|
try {
|
|
5393
|
-
d = JSON.parse(
|
|
5394
|
-
} catch (
|
|
5395
|
-
console.log("Balance stream failed: ",
|
|
5379
|
+
d = JSON.parse(c);
|
|
5380
|
+
} catch (p) {
|
|
5381
|
+
console.log("Balance stream failed: ", p);
|
|
5396
5382
|
return;
|
|
5397
5383
|
}
|
|
5398
5384
|
return d;
|
|
5399
|
-
}, Ct = (
|
|
5400
|
-
const d =
|
|
5385
|
+
}, Ct = (c) => {
|
|
5386
|
+
const d = st(c.data);
|
|
5401
5387
|
if (!d) {
|
|
5402
|
-
|
|
5388
|
+
Le();
|
|
5403
5389
|
return;
|
|
5404
5390
|
}
|
|
5405
|
-
let
|
|
5406
|
-
const
|
|
5407
|
-
|
|
5408
|
-
...
|
|
5409
|
-
balanceAmount:
|
|
5410
|
-
}),
|
|
5411
|
-
}, Je = (
|
|
5412
|
-
let
|
|
5413
|
-
switch (
|
|
5391
|
+
let p = "0";
|
|
5392
|
+
const v = d.balanceChange;
|
|
5393
|
+
he = he.map((T) => (v && v[T.id] && (T = {
|
|
5394
|
+
...T,
|
|
5395
|
+
balanceAmount: v[T.id].afterAmount
|
|
5396
|
+
}), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), n(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(p) }], x);
|
|
5397
|
+
}, Je = (c, d, p) => {
|
|
5398
|
+
let v = null;
|
|
5399
|
+
switch (p.walletAccountType) {
|
|
5414
5400
|
case "Ordinary":
|
|
5415
|
-
(
|
|
5401
|
+
(p.afterAmount !== p.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = p.afterAmount, d.showCreditLineAfterAmount || (v = p.afterAmount));
|
|
5416
5402
|
break;
|
|
5417
5403
|
case "CreditLine":
|
|
5418
|
-
|
|
5404
|
+
p.afterAmount !== 0 ? (v = p.afterAmount, d.showCreditLineAfterAmount = !0) : (v = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
|
|
5419
5405
|
break;
|
|
5420
5406
|
default:
|
|
5421
|
-
|
|
5407
|
+
v = p.afterAmount;
|
|
5422
5408
|
}
|
|
5423
|
-
return
|
|
5424
|
-
},
|
|
5425
|
-
switch (
|
|
5409
|
+
return v === null ? c : v;
|
|
5410
|
+
}, ut = () => {
|
|
5411
|
+
switch (_) {
|
|
5426
5412
|
case "totalCashAmount":
|
|
5427
|
-
let
|
|
5428
|
-
for (const
|
|
5429
|
-
for (const
|
|
5430
|
-
|
|
5431
|
-
n(1, x.Total[0].amount =
|
|
5413
|
+
let c = 0;
|
|
5414
|
+
for (const p of ["Real", "Bonus"])
|
|
5415
|
+
for (const v of x[p])
|
|
5416
|
+
c += Math.max(v.amount, 0);
|
|
5417
|
+
n(1, x.Total[0].amount = c, x);
|
|
5432
5418
|
break;
|
|
5433
5419
|
case "totalRealAmount":
|
|
5434
|
-
if (!
|
|
5420
|
+
if (!Z)
|
|
5435
5421
|
return;
|
|
5436
5422
|
let d = 0;
|
|
5437
|
-
for (const
|
|
5438
|
-
d +=
|
|
5423
|
+
for (const p of x.Real)
|
|
5424
|
+
d += p.amount;
|
|
5439
5425
|
n(1, x.Total[0].amount = d, x);
|
|
5440
5426
|
}
|
|
5441
|
-
}, Ke = (
|
|
5442
|
-
const d =
|
|
5427
|
+
}, Ke = (c) => {
|
|
5428
|
+
const d = st(c.data);
|
|
5443
5429
|
if (!d) {
|
|
5444
|
-
|
|
5430
|
+
Le();
|
|
5445
5431
|
return;
|
|
5446
5432
|
}
|
|
5447
|
-
if (
|
|
5433
|
+
if (Be(d?.type) || d.type !== "BALANCE_UPDATE_V2")
|
|
5448
5434
|
return;
|
|
5449
|
-
const
|
|
5450
|
-
for (const [
|
|
5451
|
-
if (
|
|
5452
|
-
for (const C of x[
|
|
5453
|
-
if (!
|
|
5454
|
-
C.amount =
|
|
5435
|
+
const p = d.body.balanceChange;
|
|
5436
|
+
for (const [v, T] of Object.entries(p))
|
|
5437
|
+
if (_ === "totalRealAmount" && v === "Real" && !Z && n(1, x.Total[0].amount = Je(x.Total[0].amount, ge, T), x), !!x[v])
|
|
5438
|
+
for (const C of x[v]) {
|
|
5439
|
+
if (!Z) {
|
|
5440
|
+
C.amount = v === "Real" ? Je(C.amount, ge, T) : T.afterAmount;
|
|
5455
5441
|
continue;
|
|
5456
5442
|
}
|
|
5457
|
-
|
|
5443
|
+
T.productType === C.productType && (C.amount = v === "Real" ? Je(C.amount, ge[C.productType], T) : T.afterAmount);
|
|
5458
5444
|
}
|
|
5459
|
-
|
|
5460
|
-
},
|
|
5461
|
-
|
|
5462
|
-
},
|
|
5463
|
-
|
|
5464
|
-
},
|
|
5465
|
-
switch (
|
|
5445
|
+
ut();
|
|
5446
|
+
}, Pe = () => {
|
|
5447
|
+
le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5448
|
+
}, Be = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ae = () => {
|
|
5449
|
+
ye.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, _ = ye[0]));
|
|
5450
|
+
}, Ht = () => {
|
|
5451
|
+
switch (Fo(a), ae(), m) {
|
|
5466
5452
|
case "gmcore":
|
|
5467
|
-
|
|
5453
|
+
me();
|
|
5468
5454
|
break;
|
|
5469
5455
|
case "gm16":
|
|
5470
|
-
|
|
5456
|
+
Qe();
|
|
5471
5457
|
break;
|
|
5472
5458
|
default:
|
|
5473
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5459
|
+
throw Error(`Invalid apiversion attribute: ${m}`);
|
|
5474
5460
|
}
|
|
5475
|
-
},
|
|
5461
|
+
}, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" && F.close(), Ot = () => {
|
|
5476
5462
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5477
5463
|
};
|
|
5478
|
-
|
|
5479
|
-
window.
|
|
5464
|
+
Rr(() => (window.addEventListener("message", lt, !1), n(5, U = ta(q)), () => {
|
|
5465
|
+
window.removeEventListener("message", lt), F && F.close();
|
|
5480
5466
|
}));
|
|
5481
|
-
const
|
|
5482
|
-
function
|
|
5483
|
-
|
|
5484
|
-
|
|
5467
|
+
const ct = () => le("balance"), h = () => le("closebalance"), y = () => Pe(), E = () => le("closebalance");
|
|
5468
|
+
function g(c) {
|
|
5469
|
+
Gt[c ? "unshift" : "push"](() => {
|
|
5470
|
+
D = c, n(0, D);
|
|
5485
5471
|
});
|
|
5486
5472
|
}
|
|
5487
|
-
return e.$$set = (
|
|
5488
|
-
"userid" in
|
|
5473
|
+
return e.$$set = (c) => {
|
|
5474
|
+
"userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, s = c.endpoint), "lang" in c && n(14, a = c.lang), "mbsource" in c && n(15, l = c.mbsource), "clientstyling" in c && n(16, u = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, w = c.displaybalanceoption), "totalcalculationmode" in c && n(10, _ = c.totalcalculationmode), "currencylocale" in c && n(21, A = c.currencylocale), "currencydisplay" in c && n(22, I = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, R = c.customdisplayformat);
|
|
5489
5475
|
}, e.$$.update = () => {
|
|
5490
5476
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5491
|
-
1603584 && s && i && o && a &&
|
|
5492
|
-
538624 && s && i && o &&
|
|
5493
|
-
262144 &&
|
|
5494
|
-
2 && x.Total &&
|
|
5495
|
-
65537 &&
|
|
5496
|
-
131073 && f &&
|
|
5497
|
-
32769 &&
|
|
5477
|
+
1603584 && s && i && o && a && m && w && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5478
|
+
538624 && s && i && o && m && Le(), e.$$.dirty[0] & /*translationurl*/
|
|
5479
|
+
262144 && b && pe(), e.$$.dirty[0] & /*balances*/
|
|
5480
|
+
2 && x.Total && Ot(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5481
|
+
65537 && u && D && zr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5482
|
+
131073 && f && D && Wr(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5483
|
+
32769 && l && D && Zr(D, `${l}.Style`);
|
|
5498
5484
|
}, [
|
|
5499
|
-
U,
|
|
5500
|
-
x,
|
|
5501
|
-
Z,
|
|
5502
|
-
ee,
|
|
5503
5485
|
D,
|
|
5504
|
-
|
|
5486
|
+
x,
|
|
5487
|
+
k,
|
|
5488
|
+
oe,
|
|
5489
|
+
$,
|
|
5490
|
+
U,
|
|
5505
5491
|
r,
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5492
|
+
le,
|
|
5493
|
+
He,
|
|
5494
|
+
Pe,
|
|
5495
|
+
_,
|
|
5510
5496
|
i,
|
|
5511
5497
|
o,
|
|
5512
5498
|
s,
|
|
5513
5499
|
a,
|
|
5514
|
-
c,
|
|
5515
5500
|
l,
|
|
5501
|
+
u,
|
|
5516
5502
|
f,
|
|
5503
|
+
b,
|
|
5517
5504
|
m,
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
N,
|
|
5505
|
+
w,
|
|
5506
|
+
A,
|
|
5507
|
+
I,
|
|
5522
5508
|
W,
|
|
5523
5509
|
V,
|
|
5524
|
-
|
|
5510
|
+
R,
|
|
5511
|
+
ct,
|
|
5525
5512
|
h,
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
A
|
|
5513
|
+
y,
|
|
5514
|
+
E,
|
|
5515
|
+
g
|
|
5530
5516
|
];
|
|
5531
5517
|
}
|
|
5532
|
-
class
|
|
5518
|
+
class sa extends Vr {
|
|
5533
5519
|
constructor(t) {
|
|
5534
|
-
super(),
|
|
5520
|
+
super(), kr(
|
|
5535
5521
|
this,
|
|
5536
5522
|
t,
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5523
|
+
aa,
|
|
5524
|
+
oa,
|
|
5525
|
+
jn,
|
|
5540
5526
|
{
|
|
5541
5527
|
userid: 11,
|
|
5542
5528
|
session: 12,
|
|
@@ -5555,7 +5541,7 @@ class ua extends Wr {
|
|
|
5555
5541
|
minimumfractiondigits: 24,
|
|
5556
5542
|
customdisplayformat: 25
|
|
5557
5543
|
},
|
|
5558
|
-
|
|
5544
|
+
na,
|
|
5559
5545
|
[-1, -1]
|
|
5560
5546
|
);
|
|
5561
5547
|
}
|
|
@@ -5563,100 +5549,100 @@ class ua extends Wr {
|
|
|
5563
5549
|
return this.$$.ctx[11];
|
|
5564
5550
|
}
|
|
5565
5551
|
set userid(t) {
|
|
5566
|
-
this.$$set({ userid: t }),
|
|
5552
|
+
this.$$set({ userid: t }), Q();
|
|
5567
5553
|
}
|
|
5568
5554
|
get session() {
|
|
5569
5555
|
return this.$$.ctx[12];
|
|
5570
5556
|
}
|
|
5571
5557
|
set session(t) {
|
|
5572
|
-
this.$$set({ session: t }),
|
|
5558
|
+
this.$$set({ session: t }), Q();
|
|
5573
5559
|
}
|
|
5574
5560
|
get endpoint() {
|
|
5575
5561
|
return this.$$.ctx[13];
|
|
5576
5562
|
}
|
|
5577
5563
|
set endpoint(t) {
|
|
5578
|
-
this.$$set({ endpoint: t }),
|
|
5564
|
+
this.$$set({ endpoint: t }), Q();
|
|
5579
5565
|
}
|
|
5580
5566
|
get lang() {
|
|
5581
5567
|
return this.$$.ctx[14];
|
|
5582
5568
|
}
|
|
5583
5569
|
set lang(t) {
|
|
5584
|
-
this.$$set({ lang: t }),
|
|
5570
|
+
this.$$set({ lang: t }), Q();
|
|
5585
5571
|
}
|
|
5586
5572
|
get mbsource() {
|
|
5587
5573
|
return this.$$.ctx[15];
|
|
5588
5574
|
}
|
|
5589
5575
|
set mbsource(t) {
|
|
5590
|
-
this.$$set({ mbsource: t }),
|
|
5576
|
+
this.$$set({ mbsource: t }), Q();
|
|
5591
5577
|
}
|
|
5592
5578
|
get clientstyling() {
|
|
5593
5579
|
return this.$$.ctx[16];
|
|
5594
5580
|
}
|
|
5595
5581
|
set clientstyling(t) {
|
|
5596
|
-
this.$$set({ clientstyling: t }),
|
|
5582
|
+
this.$$set({ clientstyling: t }), Q();
|
|
5597
5583
|
}
|
|
5598
5584
|
get clientstylingurl() {
|
|
5599
5585
|
return this.$$.ctx[17];
|
|
5600
5586
|
}
|
|
5601
5587
|
set clientstylingurl(t) {
|
|
5602
|
-
this.$$set({ clientstylingurl: t }),
|
|
5588
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
5603
5589
|
}
|
|
5604
5590
|
get translationurl() {
|
|
5605
5591
|
return this.$$.ctx[18];
|
|
5606
5592
|
}
|
|
5607
5593
|
set translationurl(t) {
|
|
5608
|
-
this.$$set({ translationurl: t }),
|
|
5594
|
+
this.$$set({ translationurl: t }), Q();
|
|
5609
5595
|
}
|
|
5610
5596
|
get gmversion() {
|
|
5611
5597
|
return this.$$.ctx[19];
|
|
5612
5598
|
}
|
|
5613
5599
|
set gmversion(t) {
|
|
5614
|
-
this.$$set({ gmversion: t }),
|
|
5600
|
+
this.$$set({ gmversion: t }), Q();
|
|
5615
5601
|
}
|
|
5616
5602
|
get displaybalanceoption() {
|
|
5617
5603
|
return this.$$.ctx[20];
|
|
5618
5604
|
}
|
|
5619
5605
|
set displaybalanceoption(t) {
|
|
5620
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5606
|
+
this.$$set({ displaybalanceoption: t }), Q();
|
|
5621
5607
|
}
|
|
5622
5608
|
get totalcalculationmode() {
|
|
5623
5609
|
return this.$$.ctx[10];
|
|
5624
5610
|
}
|
|
5625
5611
|
set totalcalculationmode(t) {
|
|
5626
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5612
|
+
this.$$set({ totalcalculationmode: t }), Q();
|
|
5627
5613
|
}
|
|
5628
5614
|
get currencylocale() {
|
|
5629
5615
|
return this.$$.ctx[21];
|
|
5630
5616
|
}
|
|
5631
5617
|
set currencylocale(t) {
|
|
5632
|
-
this.$$set({ currencylocale: t }),
|
|
5618
|
+
this.$$set({ currencylocale: t }), Q();
|
|
5633
5619
|
}
|
|
5634
5620
|
get currencydisplay() {
|
|
5635
5621
|
return this.$$.ctx[22];
|
|
5636
5622
|
}
|
|
5637
5623
|
set currencydisplay(t) {
|
|
5638
|
-
this.$$set({ currencydisplay: t }),
|
|
5624
|
+
this.$$set({ currencydisplay: t }), Q();
|
|
5639
5625
|
}
|
|
5640
5626
|
get maximumfractiondigits() {
|
|
5641
5627
|
return this.$$.ctx[23];
|
|
5642
5628
|
}
|
|
5643
5629
|
set maximumfractiondigits(t) {
|
|
5644
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5630
|
+
this.$$set({ maximumfractiondigits: t }), Q();
|
|
5645
5631
|
}
|
|
5646
5632
|
get minimumfractiondigits() {
|
|
5647
5633
|
return this.$$.ctx[24];
|
|
5648
5634
|
}
|
|
5649
5635
|
set minimumfractiondigits(t) {
|
|
5650
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5636
|
+
this.$$set({ minimumfractiondigits: t }), Q();
|
|
5651
5637
|
}
|
|
5652
5638
|
get customdisplayformat() {
|
|
5653
5639
|
return this.$$.ctx[25];
|
|
5654
5640
|
}
|
|
5655
5641
|
set customdisplayformat(t) {
|
|
5656
|
-
this.$$set({ customdisplayformat: t }),
|
|
5642
|
+
this.$$set({ customdisplayformat: t }), Q();
|
|
5657
5643
|
}
|
|
5658
5644
|
}
|
|
5659
|
-
|
|
5645
|
+
$r(sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5660
5646
|
export {
|
|
5661
|
-
|
|
5647
|
+
sa as P
|
|
5662
5648
|
};
|