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