@everymatrix/player-account-balance-modal-nd 1.65.0 → 1.65.1
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-CDqK15WY.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BizZ7AxS.js → PlayerAccountBalanceModalNd-XeaAOJqn.js} +1291 -1287
- package/components/{PlayerAccountBalanceModalNd-DWWtFXww.js → PlayerAccountBalanceModalNd-ccNoIRG0.js} +1142 -1138
- 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-DrDQhoHO.cjs +0 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function se() {
|
|
2
2
|
}
|
|
3
3
|
function Cn(e) {
|
|
4
4
|
return e();
|
|
@@ -6,10 +6,10 @@ function Cn(e) {
|
|
|
6
6
|
function rn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ve(e) {
|
|
10
10
|
e.forEach(Cn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Yt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Hn(e, t) {
|
|
@@ -22,7 +22,7 @@ function On(e, ...t) {
|
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
25
|
-
return
|
|
25
|
+
return se;
|
|
26
26
|
}
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -30,13 +30,13 @@ function On(e, ...t) {
|
|
|
30
30
|
function sr(e, t, n) {
|
|
31
31
|
e.$$.on_destroy.push(On(t, n));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function H(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
36
|
function lr(e, t, n) {
|
|
37
37
|
const r = ur(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
|
-
const i =
|
|
39
|
+
const i = k("style");
|
|
40
40
|
i.id = t, i.textContent = n, cr(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -51,7 +51,7 @@ function ur(e) {
|
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
53
|
function cr(e, t) {
|
|
54
|
-
return
|
|
54
|
+
return H(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
@@ -60,27 +60,27 @@ function cr(e, t) {
|
|
|
60
60
|
function ge(e, t, n) {
|
|
61
61
|
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function fe(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function Rn(e, t) {
|
|
67
67
|
for (let n = 0; n < e.length; n += 1)
|
|
68
68
|
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function k(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function on(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function he(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function de() {
|
|
80
|
+
return he(" ");
|
|
81
81
|
}
|
|
82
82
|
function hr() {
|
|
83
|
-
return
|
|
83
|
+
return he("");
|
|
84
84
|
}
|
|
85
85
|
function mt(e, t, n, r) {
|
|
86
86
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
@@ -91,7 +91,7 @@ function M(e, t, n) {
|
|
|
91
91
|
function fr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function _e(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
@@ -104,96 +104,96 @@ function dr(e) {
|
|
|
104
104
|
}
|
|
105
105
|
), t;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let tt;
|
|
108
|
+
function et(e) {
|
|
109
|
+
tt = e;
|
|
110
110
|
}
|
|
111
111
|
function pr() {
|
|
112
|
-
if (!
|
|
112
|
+
if (!tt)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
|
-
return
|
|
114
|
+
return tt;
|
|
115
115
|
}
|
|
116
116
|
function mr(e) {
|
|
117
117
|
pr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
let
|
|
119
|
+
const Ue = [], Ft = [];
|
|
120
|
+
let Fe = [];
|
|
121
121
|
const an = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
122
|
-
let
|
|
122
|
+
let Gt = !1;
|
|
123
123
|
function br() {
|
|
124
|
-
|
|
124
|
+
Gt || (Gt = !0, gr.then(Q));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
126
|
+
function $t(e) {
|
|
127
|
+
Fe.push(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
129
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
130
|
+
let Pe = 0;
|
|
131
|
+
function Q() {
|
|
132
|
+
if (Pe !== 0)
|
|
133
133
|
return;
|
|
134
|
-
const e =
|
|
134
|
+
const e = tt;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
|
-
for (;
|
|
138
|
-
const t =
|
|
139
|
-
|
|
137
|
+
for (; Pe < Ue.length; ) {
|
|
138
|
+
const t = Ue[Pe];
|
|
139
|
+
Pe++, et(t), yr(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
|
-
throw
|
|
142
|
+
throw Ue.length = 0, Pe = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (
|
|
145
|
-
|
|
146
|
-
for (let t = 0; t <
|
|
147
|
-
const n =
|
|
148
|
-
|
|
144
|
+
for (et(null), Ue.length = 0, Pe = 0; Ft.length; )
|
|
145
|
+
Ft.pop()();
|
|
146
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
147
|
+
const n = Fe[t];
|
|
148
|
+
Lt.has(n) || (Lt.add(n), n());
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
} while (
|
|
150
|
+
Fe.length = 0;
|
|
151
|
+
} while (Ue.length);
|
|
152
152
|
for (; an.length; )
|
|
153
153
|
an.pop()();
|
|
154
|
-
|
|
154
|
+
Gt = !1, Lt.clear(), et(e);
|
|
155
155
|
}
|
|
156
156
|
function yr(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
|
-
e.update(),
|
|
158
|
+
e.update(), Ve(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
163
|
function vr(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
167
|
const Er = /* @__PURE__ */ new Set();
|
|
168
|
-
function
|
|
168
|
+
function _r(e, t) {
|
|
169
169
|
e && e.i && (Er.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
171
|
function gt(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function xr(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(Cn).filter(
|
|
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(Cn).filter(Yt);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach($t);
|
|
180
180
|
}
|
|
181
181
|
function Br(e, t) {
|
|
182
182
|
const n = e.$$;
|
|
183
|
-
n.fragment !== null && (vr(n.after_update),
|
|
183
|
+
n.fragment !== null && (vr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
184
184
|
}
|
|
185
185
|
function Tr(e, t) {
|
|
186
|
-
e.$$.dirty[0] === -1 && (
|
|
186
|
+
e.$$.dirty[0] === -1 && (Ue.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
188
|
function wr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
189
|
-
const h =
|
|
190
|
-
|
|
189
|
+
const h = tt;
|
|
190
|
+
et(e);
|
|
191
191
|
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
194
194
|
// state
|
|
195
195
|
props: o,
|
|
196
|
-
update:
|
|
196
|
+
update: se,
|
|
197
197
|
not_equal: i,
|
|
198
198
|
bound: rn(),
|
|
199
199
|
// lifecycle
|
|
@@ -211,18 +211,18 @@ function wr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
|
211
211
|
};
|
|
212
212
|
l && l(u.root);
|
|
213
213
|
let d = !1;
|
|
214
|
-
if (u.ctx = n ? n(e, t.props || {}, (
|
|
215
|
-
const
|
|
216
|
-
return u.ctx && i(u.ctx[
|
|
217
|
-
}) : [], u.update(), d = !0,
|
|
214
|
+
if (u.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
|
|
215
|
+
const B = x.length ? x[0] : g;
|
|
216
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && Tr(e, m)), g;
|
|
217
|
+
}) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const
|
|
220
|
-
u.fragment && u.fragment.l(
|
|
219
|
+
const m = fr(t.target);
|
|
220
|
+
u.fragment && u.fragment.l(m), m.forEach(fe);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro &&
|
|
223
|
+
t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), Q();
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
et(h);
|
|
226
226
|
}
|
|
227
227
|
let Ln;
|
|
228
228
|
typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
@@ -267,7 +267,7 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
|
267
267
|
let o;
|
|
268
268
|
return {
|
|
269
269
|
c: function() {
|
|
270
|
-
o =
|
|
270
|
+
o = k("slot"), i !== "default" && M(o, "name", i);
|
|
271
271
|
},
|
|
272
272
|
/**
|
|
273
273
|
* @param {HTMLElement} target
|
|
@@ -277,7 +277,7 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
|
277
277
|
ge(h, o, u);
|
|
278
278
|
},
|
|
279
279
|
d: function(h) {
|
|
280
|
-
h &&
|
|
280
|
+
h && fe(o);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
};
|
|
@@ -419,7 +419,7 @@ class Ar {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
Br(this, 1), this.$destroy =
|
|
422
|
+
Br(this, 1), this.$destroy = se;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,8 +428,8 @@ class Ar {
|
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
430
|
$on(t, n) {
|
|
431
|
-
if (!
|
|
432
|
-
return
|
|
431
|
+
if (!Yt(n))
|
|
432
|
+
return se;
|
|
433
433
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return r.push(n), () => {
|
|
435
435
|
const i = r.indexOf(n);
|
|
@@ -469,39 +469,39 @@ function Rr(e, t, n) {
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
const
|
|
472
|
+
const De = [];
|
|
473
473
|
function Lr(e, t) {
|
|
474
474
|
return {
|
|
475
|
-
subscribe:
|
|
475
|
+
subscribe: Et(e, t).subscribe
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Et(e, t = se) {
|
|
479
479
|
let n;
|
|
480
480
|
const r = /* @__PURE__ */ new Set();
|
|
481
481
|
function i(s) {
|
|
482
482
|
if (Hn(e, s) && (e = s, n)) {
|
|
483
|
-
const h = !
|
|
483
|
+
const h = !De.length;
|
|
484
484
|
for (const u of r)
|
|
485
|
-
u[1](),
|
|
485
|
+
u[1](), De.push(u, e);
|
|
486
486
|
if (h) {
|
|
487
|
-
for (let u = 0; u <
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
for (let u = 0; u < De.length; u += 2)
|
|
488
|
+
De[u][0](De[u + 1]);
|
|
489
|
+
De.length = 0;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
function o(s) {
|
|
494
494
|
i(s(e));
|
|
495
495
|
}
|
|
496
|
-
function l(s, h =
|
|
496
|
+
function l(s, h = se) {
|
|
497
497
|
const u = [s, h];
|
|
498
|
-
return r.add(u), r.size === 1 && (n = t(i, o) ||
|
|
498
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || se), s(e), () => {
|
|
499
499
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
return { set: i, update: o, subscribe: l };
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Xe(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");
|
|
@@ -509,26 +509,26 @@ function ke(e, t, n) {
|
|
|
509
509
|
return Lr(n, (l, s) => {
|
|
510
510
|
let h = !1;
|
|
511
511
|
const u = [];
|
|
512
|
-
let d = 0,
|
|
513
|
-
const
|
|
512
|
+
let d = 0, m = se;
|
|
513
|
+
const g = () => {
|
|
514
514
|
if (d)
|
|
515
515
|
return;
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
o ? l(
|
|
519
|
-
},
|
|
520
|
-
(
|
|
521
|
-
|
|
522
|
-
(
|
|
523
|
-
u[
|
|
516
|
+
m();
|
|
517
|
+
const B = t(r ? u[0] : u, l, s);
|
|
518
|
+
o ? l(B) : m = Yt(B) ? B : se;
|
|
519
|
+
}, x = i.map(
|
|
520
|
+
(B, T) => On(
|
|
521
|
+
B,
|
|
522
|
+
(_) => {
|
|
523
|
+
u[T] = _, d &= ~(1 << T), h && g();
|
|
524
524
|
},
|
|
525
525
|
() => {
|
|
526
|
-
d |= 1 <<
|
|
526
|
+
d |= 1 << T;
|
|
527
527
|
}
|
|
528
528
|
)
|
|
529
529
|
);
|
|
530
|
-
return h = !0,
|
|
531
|
-
|
|
530
|
+
return h = !0, g(), function() {
|
|
531
|
+
Ve(x), m(), h = !1;
|
|
532
532
|
};
|
|
533
533
|
});
|
|
534
534
|
}
|
|
@@ -553,19 +553,19 @@ function Gr(e) {
|
|
|
553
553
|
function $r(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
556
|
+
function nt(e, t) {
|
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ge($r(e), e, t) : e;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function jr(e, t, n) {
|
|
560
560
|
return e.concat(t).map(function(r) {
|
|
561
|
-
return
|
|
561
|
+
return nt(r, n);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function kr(e, t) {
|
|
565
565
|
if (!t.customMerge)
|
|
566
|
-
return
|
|
566
|
+
return Ge;
|
|
567
567
|
var n = t.customMerge(e);
|
|
568
|
-
return typeof n == "function" ? n :
|
|
568
|
+
return typeof n == "function" ? n : Ge;
|
|
569
569
|
}
|
|
570
570
|
function Vr(e) {
|
|
571
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -588,65 +588,51 @@ function Xr(e, t) {
|
|
|
588
588
|
function zr(e, t, n) {
|
|
589
589
|
var r = {};
|
|
590
590
|
return n.isMergeableObject(e) && sn(e).forEach(function(i) {
|
|
591
|
-
r[i] =
|
|
591
|
+
r[i] = nt(e[i], n);
|
|
592
592
|
}), sn(t).forEach(function(i) {
|
|
593
|
-
Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] =
|
|
593
|
+
Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = kr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
|
|
594
594
|
}), r;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
596
|
+
function Ge(e, t, n) {
|
|
597
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || jr, n.isMergeableObject = n.isMergeableObject || Ir, n.cloneUnlessOtherwiseSpecified = nt;
|
|
598
598
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
599
|
-
return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) :
|
|
599
|
+
return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : nt(t, n);
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
Ge.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 Ge(r, i, n);
|
|
606
606
|
}, {});
|
|
607
607
|
};
|
|
608
|
-
var Wr =
|
|
608
|
+
var Wr = Ge, Zr = Wr;
|
|
609
609
|
const qr = /* @__PURE__ */ Nr(Zr);
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
614
|
-
purpose with or without fee is hereby granted.
|
|
615
|
-
|
|
616
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
617
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
618
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
619
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
620
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
621
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
622
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
623
|
-
***************************************************************************** */
|
|
624
|
-
var Gt = function(e, t) {
|
|
625
|
-
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
610
|
+
var jt = function(e, t) {
|
|
611
|
+
return jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
626
612
|
n.__proto__ = r;
|
|
627
613
|
} || function(n, r) {
|
|
628
614
|
for (var i in r)
|
|
629
615
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
630
|
-
},
|
|
616
|
+
}, jt(e, t);
|
|
631
617
|
};
|
|
632
|
-
function
|
|
618
|
+
function _t(e, t) {
|
|
633
619
|
if (typeof t != "function" && t !== null)
|
|
634
620
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
635
|
-
|
|
621
|
+
jt(e, t);
|
|
636
622
|
function n() {
|
|
637
623
|
this.constructor = e;
|
|
638
624
|
}
|
|
639
625
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
640
626
|
}
|
|
641
|
-
var
|
|
642
|
-
return
|
|
627
|
+
var me = function() {
|
|
628
|
+
return me = Object.assign || function(t) {
|
|
643
629
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
644
630
|
n = arguments[r];
|
|
645
631
|
for (var o in n)
|
|
646
632
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
647
633
|
}
|
|
648
634
|
return t;
|
|
649
|
-
},
|
|
635
|
+
}, me.apply(this, arguments);
|
|
650
636
|
};
|
|
651
637
|
function Qr(e, t) {
|
|
652
638
|
var n = {};
|
|
@@ -657,14 +643,14 @@ function Qr(e, t) {
|
|
|
657
643
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
658
644
|
return n;
|
|
659
645
|
}
|
|
660
|
-
function
|
|
661
|
-
if (arguments.length === 2)
|
|
646
|
+
function Mt(e, t, n) {
|
|
647
|
+
if (n || arguments.length === 2)
|
|
662
648
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
663
649
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
664
|
-
return e.concat(o || t);
|
|
650
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
665
651
|
}
|
|
666
|
-
function
|
|
667
|
-
var n = t && t.cache ? t.cache :
|
|
652
|
+
function Nt(e, t) {
|
|
653
|
+
var n = t && t.cache ? t.cache : ri, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Kr;
|
|
668
654
|
return i(e, {
|
|
669
655
|
cache: n,
|
|
670
656
|
serializer: r
|
|
@@ -673,95 +659,103 @@ function Lt(e, t) {
|
|
|
673
659
|
function Jr(e) {
|
|
674
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
675
661
|
}
|
|
676
|
-
function
|
|
662
|
+
function Yr(e, t, n, r) {
|
|
677
663
|
var i = Jr(r) ? r : n(r), o = t.get(i);
|
|
678
664
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
679
665
|
}
|
|
680
|
-
function
|
|
666
|
+
function Nn(e, t, n) {
|
|
681
667
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
682
668
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
683
669
|
}
|
|
684
|
-
function
|
|
670
|
+
function In(e, t, n, r, i) {
|
|
685
671
|
return n.bind(t, e, r, i);
|
|
686
672
|
}
|
|
687
|
-
function Yr(e, t) {
|
|
688
|
-
var n = e.length === 1 ? Nn : In;
|
|
689
|
-
return Jt(e, this, n, t.cache.create(), t.serializer);
|
|
690
|
-
}
|
|
691
673
|
function Kr(e, t) {
|
|
692
|
-
|
|
674
|
+
var n = e.length === 1 ? Yr : Nn;
|
|
675
|
+
return In(e, this, n, t.cache.create(), t.serializer);
|
|
693
676
|
}
|
|
694
677
|
function ei(e, t) {
|
|
695
|
-
return
|
|
678
|
+
return In(e, this, Nn, t.cache.create(), t.serializer);
|
|
696
679
|
}
|
|
697
680
|
var ti = function() {
|
|
698
681
|
return JSON.stringify(arguments);
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
682
|
+
}, ni = (
|
|
683
|
+
/** @class */
|
|
684
|
+
function() {
|
|
685
|
+
function e() {
|
|
686
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
687
|
+
}
|
|
688
|
+
return e.prototype.get = function(t) {
|
|
689
|
+
return this.cache[t];
|
|
690
|
+
}, e.prototype.set = function(t, n) {
|
|
691
|
+
this.cache[t] = n;
|
|
692
|
+
}, e;
|
|
693
|
+
}()
|
|
694
|
+
), ri = {
|
|
710
695
|
create: function() {
|
|
711
|
-
return new
|
|
696
|
+
return new ni();
|
|
712
697
|
}
|
|
713
|
-
},
|
|
714
|
-
variadic:
|
|
715
|
-
|
|
716
|
-
|
|
698
|
+
}, It = {
|
|
699
|
+
variadic: ei
|
|
700
|
+
}, bt = function() {
|
|
701
|
+
return bt = Object.assign || function(t) {
|
|
702
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
703
|
+
n = arguments[r];
|
|
704
|
+
for (var o in n)
|
|
705
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
706
|
+
}
|
|
707
|
+
return t;
|
|
708
|
+
}, bt.apply(this, arguments);
|
|
709
|
+
};
|
|
710
|
+
var O;
|
|
717
711
|
(function(e) {
|
|
718
712
|
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";
|
|
719
|
-
})(
|
|
720
|
-
var
|
|
713
|
+
})(O || (O = {}));
|
|
714
|
+
var j;
|
|
721
715
|
(function(e) {
|
|
722
716
|
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";
|
|
723
|
-
})(
|
|
724
|
-
var
|
|
717
|
+
})(j || (j = {}));
|
|
718
|
+
var $e;
|
|
725
719
|
(function(e) {
|
|
726
720
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
727
|
-
})(
|
|
721
|
+
})($e || ($e = {}));
|
|
728
722
|
function ln(e) {
|
|
729
|
-
return e.type ===
|
|
723
|
+
return e.type === j.literal;
|
|
730
724
|
}
|
|
731
|
-
function
|
|
732
|
-
return e.type ===
|
|
725
|
+
function ii(e) {
|
|
726
|
+
return e.type === j.argument;
|
|
733
727
|
}
|
|
734
728
|
function Pn(e) {
|
|
735
|
-
return e.type ===
|
|
729
|
+
return e.type === j.number;
|
|
736
730
|
}
|
|
737
731
|
function Dn(e) {
|
|
738
|
-
return e.type ===
|
|
732
|
+
return e.type === j.date;
|
|
739
733
|
}
|
|
740
734
|
function Un(e) {
|
|
741
|
-
return e.type ===
|
|
735
|
+
return e.type === j.time;
|
|
742
736
|
}
|
|
743
737
|
function Fn(e) {
|
|
744
|
-
return e.type ===
|
|
738
|
+
return e.type === j.select;
|
|
745
739
|
}
|
|
746
740
|
function Gn(e) {
|
|
747
|
-
return e.type ===
|
|
741
|
+
return e.type === j.plural;
|
|
748
742
|
}
|
|
749
|
-
function
|
|
750
|
-
return e.type ===
|
|
743
|
+
function oi(e) {
|
|
744
|
+
return e.type === j.pound;
|
|
751
745
|
}
|
|
752
746
|
function $n(e) {
|
|
753
|
-
return e.type ===
|
|
747
|
+
return e.type === j.tag;
|
|
754
748
|
}
|
|
755
|
-
function
|
|
756
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
749
|
+
function jn(e) {
|
|
750
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
757
751
|
}
|
|
758
|
-
function
|
|
759
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
752
|
+
function kt(e) {
|
|
753
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
760
754
|
}
|
|
761
|
-
var
|
|
762
|
-
function
|
|
755
|
+
var kn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[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;
|
|
756
|
+
function si(e) {
|
|
763
757
|
var t = {};
|
|
764
|
-
return e.replace(
|
|
758
|
+
return e.replace(ai, function(n) {
|
|
765
759
|
var r = n.length;
|
|
766
760
|
switch (n[0]) {
|
|
767
761
|
case "G":
|
|
@@ -850,29 +844,39 @@ function ai(e) {
|
|
|
850
844
|
return "";
|
|
851
845
|
}), t;
|
|
852
846
|
}
|
|
853
|
-
var
|
|
854
|
-
function
|
|
847
|
+
var X = function() {
|
|
848
|
+
return X = Object.assign || function(t) {
|
|
849
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
850
|
+
n = arguments[r];
|
|
851
|
+
for (var o in n)
|
|
852
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
853
|
+
}
|
|
854
|
+
return t;
|
|
855
|
+
}, X.apply(this, arguments);
|
|
856
|
+
};
|
|
857
|
+
var li = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
858
|
+
function ui(e) {
|
|
855
859
|
if (e.length === 0)
|
|
856
860
|
throw new Error("Number skeleton cannot be empty");
|
|
857
|
-
for (var t = e.split(
|
|
858
|
-
return
|
|
861
|
+
for (var t = e.split(li).filter(function(g) {
|
|
862
|
+
return g.length > 0;
|
|
859
863
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
860
864
|
var o = i[r], l = o.split("/");
|
|
861
865
|
if (l.length === 0)
|
|
862
866
|
throw new Error("Invalid number skeleton");
|
|
863
867
|
for (var s = l[0], h = l.slice(1), u = 0, d = h; u < d.length; u++) {
|
|
864
|
-
var
|
|
865
|
-
if (
|
|
868
|
+
var m = d[u];
|
|
869
|
+
if (m.length === 0)
|
|
866
870
|
throw new Error("Invalid number skeleton");
|
|
867
871
|
}
|
|
868
872
|
n.push({ stem: s, options: h });
|
|
869
873
|
}
|
|
870
874
|
return n;
|
|
871
875
|
}
|
|
872
|
-
function
|
|
876
|
+
function ci(e) {
|
|
873
877
|
return e.replace(/^(.*?)-/, "");
|
|
874
878
|
}
|
|
875
|
-
var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
879
|
+
var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
|
|
876
880
|
function cn(e) {
|
|
877
881
|
var t = {};
|
|
878
882
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(n, r, i) {
|
|
@@ -919,7 +923,7 @@ function zn(e) {
|
|
|
919
923
|
};
|
|
920
924
|
}
|
|
921
925
|
}
|
|
922
|
-
function
|
|
926
|
+
function fi(e) {
|
|
923
927
|
var t;
|
|
924
928
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
925
929
|
notation: "engineering"
|
|
@@ -937,7 +941,7 @@ function hn(e) {
|
|
|
937
941
|
var t = {}, n = zn(e);
|
|
938
942
|
return n || t;
|
|
939
943
|
}
|
|
940
|
-
function
|
|
944
|
+
function di(e) {
|
|
941
945
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
942
946
|
var i = r[n];
|
|
943
947
|
switch (i.stem) {
|
|
@@ -961,7 +965,7 @@ function fi(e) {
|
|
|
961
965
|
continue;
|
|
962
966
|
case "measure-unit":
|
|
963
967
|
case "unit":
|
|
964
|
-
t.style = "unit", t.unit =
|
|
968
|
+
t.style = "unit", t.unit = ci(i.options[0]);
|
|
965
969
|
continue;
|
|
966
970
|
case "compact-short":
|
|
967
971
|
case "K":
|
|
@@ -972,13 +976,13 @@ function fi(e) {
|
|
|
972
976
|
t.notation = "compact", t.compactDisplay = "long";
|
|
973
977
|
continue;
|
|
974
978
|
case "scientific":
|
|
975
|
-
t =
|
|
976
|
-
return
|
|
979
|
+
t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
980
|
+
return X(X({}, h), hn(u));
|
|
977
981
|
}, {}));
|
|
978
982
|
continue;
|
|
979
983
|
case "engineering":
|
|
980
|
-
t =
|
|
981
|
-
return
|
|
984
|
+
t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
985
|
+
return X(X({}, h), hn(u));
|
|
982
986
|
}, {}));
|
|
983
987
|
continue;
|
|
984
988
|
case "notation-simple":
|
|
@@ -1023,13 +1027,13 @@ function fi(e) {
|
|
|
1023
1027
|
case "integer-width":
|
|
1024
1028
|
if (i.options.length > 1)
|
|
1025
1029
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1026
|
-
i.options[0].replace(
|
|
1030
|
+
i.options[0].replace(hi, function(h, u, d, m, g, x) {
|
|
1027
1031
|
if (u)
|
|
1028
1032
|
t.minimumIntegerDigits = d.length;
|
|
1029
1033
|
else {
|
|
1030
|
-
if (
|
|
1034
|
+
if (m && g)
|
|
1031
1035
|
throw new Error("We currently do not support maximum integer digits");
|
|
1032
|
-
if (
|
|
1036
|
+
if (x)
|
|
1033
1037
|
throw new Error("We currently do not support exact integer digits");
|
|
1034
1038
|
}
|
|
1035
1039
|
return "";
|
|
@@ -1043,21 +1047,21 @@ function fi(e) {
|
|
|
1043
1047
|
if (un.test(i.stem)) {
|
|
1044
1048
|
if (i.options.length > 1)
|
|
1045
1049
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1046
|
-
i.stem.replace(un, function(h, u, d,
|
|
1047
|
-
return d === "*" ? t.minimumFractionDigits = u.length :
|
|
1050
|
+
i.stem.replace(un, function(h, u, d, m, g, x) {
|
|
1051
|
+
return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1048
1052
|
});
|
|
1049
1053
|
var o = i.options[0];
|
|
1050
|
-
o === "w" ? t =
|
|
1054
|
+
o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), cn(o)));
|
|
1051
1055
|
continue;
|
|
1052
1056
|
}
|
|
1053
1057
|
if (Vn.test(i.stem)) {
|
|
1054
|
-
t =
|
|
1058
|
+
t = X(X({}, t), cn(i.stem));
|
|
1055
1059
|
continue;
|
|
1056
1060
|
}
|
|
1057
1061
|
var l = zn(i.stem);
|
|
1058
|
-
l && (t =
|
|
1059
|
-
var s =
|
|
1060
|
-
s && (t =
|
|
1062
|
+
l && (t = X(X({}, t), l));
|
|
1063
|
+
var s = fi(i.stem);
|
|
1064
|
+
s && (t = X(X({}, t), s));
|
|
1061
1065
|
}
|
|
1062
1066
|
return t;
|
|
1063
1067
|
}
|
|
@@ -2476,13 +2480,13 @@ var ct = {
|
|
|
2476
2480
|
"h"
|
|
2477
2481
|
]
|
|
2478
2482
|
};
|
|
2479
|
-
function
|
|
2483
|
+
function pi(e, t) {
|
|
2480
2484
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2481
2485
|
var i = e.charAt(r);
|
|
2482
2486
|
if (i === "j") {
|
|
2483
2487
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2484
2488
|
o++, r++;
|
|
2485
|
-
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2489
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = mi(t);
|
|
2486
2490
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2487
2491
|
n += h;
|
|
2488
2492
|
for (; l-- > 0; )
|
|
@@ -2492,7 +2496,7 @@ function di(e, t) {
|
|
|
2492
2496
|
}
|
|
2493
2497
|
return n;
|
|
2494
2498
|
}
|
|
2495
|
-
function
|
|
2499
|
+
function mi(e) {
|
|
2496
2500
|
var t = e.hourCycle;
|
|
2497
2501
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2498
2502
|
e.hourCycles && // @ts-ignore
|
|
@@ -2514,20 +2518,20 @@ function pi(e) {
|
|
|
2514
2518
|
var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
|
|
2515
2519
|
return i[0];
|
|
2516
2520
|
}
|
|
2517
|
-
var
|
|
2521
|
+
var Pt, gi = new RegExp("^".concat(kn.source, "*")), bi = new RegExp("".concat(kn.source, "*$"));
|
|
2518
2522
|
function L(e, t) {
|
|
2519
2523
|
return { start: e, end: t };
|
|
2520
2524
|
}
|
|
2521
|
-
var
|
|
2525
|
+
var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, Ei = !!Object.fromEntries, _i = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ti = !!Number.isSafeInteger, wi = Ti ? Number.isSafeInteger : function(e) {
|
|
2522
2526
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2523
|
-
},
|
|
2527
|
+
}, Vt = !0;
|
|
2524
2528
|
try {
|
|
2525
|
-
var
|
|
2526
|
-
|
|
2529
|
+
var Si = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2530
|
+
Vt = ((Pt = Si.exec("a")) === null || Pt === void 0 ? void 0 : Pt[0]) === "a";
|
|
2527
2531
|
} catch {
|
|
2528
|
-
|
|
2532
|
+
Vt = !1;
|
|
2529
2533
|
}
|
|
2530
|
-
var fn =
|
|
2534
|
+
var fn = yi ? (
|
|
2531
2535
|
// Native
|
|
2532
2536
|
function(t, n, r) {
|
|
2533
2537
|
return t.startsWith(n, r);
|
|
@@ -2537,7 +2541,7 @@ var fn = bi ? (
|
|
|
2537
2541
|
function(t, n, r) {
|
|
2538
2542
|
return t.slice(r, r + n.length) === n;
|
|
2539
2543
|
}
|
|
2540
|
-
),
|
|
2544
|
+
), Xt = vi ? String.fromCodePoint : (
|
|
2541
2545
|
// IE11
|
|
2542
2546
|
function() {
|
|
2543
2547
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2551,7 +2555,7 @@ var fn = bi ? (
|
|
|
2551
2555
|
}
|
|
2552
2556
|
), dn = (
|
|
2553
2557
|
// native
|
|
2554
|
-
|
|
2558
|
+
Ei ? Object.fromEntries : (
|
|
2555
2559
|
// Ponyfill
|
|
2556
2560
|
function(t) {
|
|
2557
2561
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2561,7 +2565,7 @@ var fn = bi ? (
|
|
|
2561
2565
|
return n;
|
|
2562
2566
|
}
|
|
2563
2567
|
)
|
|
2564
|
-
), Wn =
|
|
2568
|
+
), Wn = _i ? (
|
|
2565
2569
|
// Native
|
|
2566
2570
|
function(t, n) {
|
|
2567
2571
|
return t.codePointAt(n);
|
|
@@ -2575,7 +2579,7 @@ var fn = bi ? (
|
|
|
2575
2579
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2576
2580
|
}
|
|
2577
2581
|
}
|
|
2578
|
-
),
|
|
2582
|
+
), Ai = xi ? (
|
|
2579
2583
|
// Native
|
|
2580
2584
|
function(t) {
|
|
2581
2585
|
return t.trimStart();
|
|
@@ -2583,9 +2587,9 @@ var fn = bi ? (
|
|
|
2583
2587
|
) : (
|
|
2584
2588
|
// Ponyfill
|
|
2585
2589
|
function(t) {
|
|
2586
|
-
return t.replace(
|
|
2590
|
+
return t.replace(gi, "");
|
|
2587
2591
|
}
|
|
2588
|
-
),
|
|
2592
|
+
), Ci = Bi ? (
|
|
2589
2593
|
// Native
|
|
2590
2594
|
function(t) {
|
|
2591
2595
|
return t.trimEnd();
|
|
@@ -2593,32 +2597,32 @@ var fn = bi ? (
|
|
|
2593
2597
|
) : (
|
|
2594
2598
|
// Ponyfill
|
|
2595
2599
|
function(t) {
|
|
2596
|
-
return t.replace(
|
|
2600
|
+
return t.replace(bi, "");
|
|
2597
2601
|
}
|
|
2598
2602
|
);
|
|
2599
2603
|
function Zn(e, t) {
|
|
2600
2604
|
return new RegExp(e, t);
|
|
2601
2605
|
}
|
|
2602
|
-
var
|
|
2603
|
-
if (
|
|
2606
|
+
var zt;
|
|
2607
|
+
if (Vt) {
|
|
2604
2608
|
var pn = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2605
|
-
|
|
2609
|
+
zt = function(t, n) {
|
|
2606
2610
|
var r;
|
|
2607
2611
|
pn.lastIndex = n;
|
|
2608
2612
|
var i = pn.exec(t);
|
|
2609
2613
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2610
2614
|
};
|
|
2611
2615
|
} else
|
|
2612
|
-
|
|
2616
|
+
zt = function(t, n) {
|
|
2613
2617
|
for (var r = []; ; ) {
|
|
2614
2618
|
var i = Wn(t, n);
|
|
2615
|
-
if (i === void 0 || qn(i) ||
|
|
2619
|
+
if (i === void 0 || qn(i) || Li(i))
|
|
2616
2620
|
break;
|
|
2617
2621
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2618
2622
|
}
|
|
2619
|
-
return
|
|
2623
|
+
return Xt.apply(void 0, r);
|
|
2620
2624
|
};
|
|
2621
|
-
var
|
|
2625
|
+
var Hi = (
|
|
2622
2626
|
/** @class */
|
|
2623
2627
|
function() {
|
|
2624
2628
|
function e(t, n) {
|
|
@@ -2642,14 +2646,14 @@ var Ci = (
|
|
|
2642
2646
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2643
2647
|
var s = this.clonePosition();
|
|
2644
2648
|
this.bump(), i.push({
|
|
2645
|
-
type:
|
|
2649
|
+
type: j.pound,
|
|
2646
2650
|
location: L(s, this.clonePosition())
|
|
2647
2651
|
});
|
|
2648
2652
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2649
2653
|
if (r)
|
|
2650
2654
|
break;
|
|
2651
|
-
return this.error(
|
|
2652
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2655
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2656
|
+
} else if (o === 60 && !this.ignoreTag && Wt(this.peek() || 0)) {
|
|
2653
2657
|
var l = this.parseTag(t, n);
|
|
2654
2658
|
if (l.err)
|
|
2655
2659
|
return l;
|
|
@@ -2670,7 +2674,7 @@ var Ci = (
|
|
|
2670
2674
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2671
2675
|
return {
|
|
2672
2676
|
val: {
|
|
2673
|
-
type:
|
|
2677
|
+
type: j.literal,
|
|
2674
2678
|
value: "<".concat(i, "/>"),
|
|
2675
2679
|
location: L(r, this.clonePosition())
|
|
2676
2680
|
},
|
|
@@ -2682,25 +2686,25 @@ var Ci = (
|
|
|
2682
2686
|
return o;
|
|
2683
2687
|
var l = o.val, s = this.clonePosition();
|
|
2684
2688
|
if (this.bumpIf("</")) {
|
|
2685
|
-
if (this.isEOF() || !
|
|
2686
|
-
return this.error(
|
|
2689
|
+
if (this.isEOF() || !Wt(this.char()))
|
|
2690
|
+
return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
|
|
2687
2691
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2688
|
-
return i !== u ? this.error(
|
|
2692
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, L(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2689
2693
|
val: {
|
|
2690
|
-
type:
|
|
2694
|
+
type: j.tag,
|
|
2691
2695
|
value: i,
|
|
2692
2696
|
children: l,
|
|
2693
2697
|
location: L(r, this.clonePosition())
|
|
2694
2698
|
},
|
|
2695
2699
|
err: null
|
|
2696
|
-
} : this.error(
|
|
2700
|
+
} : this.error(O.INVALID_TAG, L(s, this.clonePosition())));
|
|
2697
2701
|
} else
|
|
2698
|
-
return this.error(
|
|
2702
|
+
return this.error(O.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2699
2703
|
} else
|
|
2700
|
-
return this.error(
|
|
2704
|
+
return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
|
|
2701
2705
|
}, e.prototype.parseTagName = function() {
|
|
2702
2706
|
var t = this.offset();
|
|
2703
|
-
for (this.bump(); !this.isEOF() &&
|
|
2707
|
+
for (this.bump(); !this.isEOF() && Ri(this.char()); )
|
|
2704
2708
|
this.bump();
|
|
2705
2709
|
return this.message.slice(t, this.offset());
|
|
2706
2710
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2724,12 +2728,12 @@ var Ci = (
|
|
|
2724
2728
|
}
|
|
2725
2729
|
var h = L(r, this.clonePosition());
|
|
2726
2730
|
return {
|
|
2727
|
-
val: { type:
|
|
2731
|
+
val: { type: j.literal, value: i, location: h },
|
|
2728
2732
|
err: null
|
|
2729
2733
|
};
|
|
2730
2734
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2731
2735
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2732
|
-
!
|
|
2736
|
+
!Oi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2733
2737
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2734
2738
|
if (this.isEOF() || this.char() !== 39)
|
|
2735
2739
|
return null;
|
|
@@ -2763,28 +2767,28 @@ var Ci = (
|
|
|
2763
2767
|
n.push(r);
|
|
2764
2768
|
this.bump();
|
|
2765
2769
|
}
|
|
2766
|
-
return
|
|
2770
|
+
return Xt.apply(void 0, n);
|
|
2767
2771
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2768
2772
|
if (this.isEOF())
|
|
2769
2773
|
return null;
|
|
2770
2774
|
var r = this.char();
|
|
2771
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2775
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Xt(r));
|
|
2772
2776
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2773
2777
|
var r = this.clonePosition();
|
|
2774
2778
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2775
|
-
return this.error(
|
|
2779
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2776
2780
|
if (this.char() === 125)
|
|
2777
|
-
return this.bump(), this.error(
|
|
2781
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2778
2782
|
var i = this.parseIdentifierIfPossible().value;
|
|
2779
2783
|
if (!i)
|
|
2780
|
-
return this.error(
|
|
2784
|
+
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2781
2785
|
if (this.bumpSpace(), this.isEOF())
|
|
2782
|
-
return this.error(
|
|
2786
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2783
2787
|
switch (this.char()) {
|
|
2784
2788
|
case 125:
|
|
2785
2789
|
return this.bump(), {
|
|
2786
2790
|
val: {
|
|
2787
|
-
type:
|
|
2791
|
+
type: j.argument,
|
|
2788
2792
|
// value does not include the opening and closing braces.
|
|
2789
2793
|
value: i,
|
|
2790
2794
|
location: L(r, this.clonePosition())
|
|
@@ -2792,12 +2796,12 @@ var Ci = (
|
|
|
2792
2796
|
err: null
|
|
2793
2797
|
};
|
|
2794
2798
|
case 44:
|
|
2795
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2799
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2796
2800
|
default:
|
|
2797
|
-
return this.error(
|
|
2801
|
+
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2798
2802
|
}
|
|
2799
2803
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2800
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2804
|
+
var t = this.clonePosition(), n = this.offset(), r = zt(this.message, n), i = n + r.length;
|
|
2801
2805
|
this.bumpTo(i);
|
|
2802
2806
|
var o = this.clonePosition(), l = L(t, o);
|
|
2803
2807
|
return { value: r, location: l };
|
|
@@ -2805,7 +2809,7 @@ var Ci = (
|
|
|
2805
2809
|
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2806
2810
|
switch (s) {
|
|
2807
2811
|
case "":
|
|
2808
|
-
return this.error(
|
|
2812
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, L(l, h));
|
|
2809
2813
|
case "number":
|
|
2810
2814
|
case "date":
|
|
2811
2815
|
case "time": {
|
|
@@ -2813,49 +2817,49 @@ var Ci = (
|
|
|
2813
2817
|
var u = null;
|
|
2814
2818
|
if (this.bumpIf(",")) {
|
|
2815
2819
|
this.bumpSpace();
|
|
2816
|
-
var d = this.clonePosition(),
|
|
2817
|
-
if (
|
|
2818
|
-
return
|
|
2819
|
-
var
|
|
2820
|
-
if (
|
|
2821
|
-
return this.error(
|
|
2822
|
-
var
|
|
2823
|
-
u = { style:
|
|
2820
|
+
var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2821
|
+
if (m.err)
|
|
2822
|
+
return m;
|
|
2823
|
+
var g = Ci(m.val);
|
|
2824
|
+
if (g.length === 0)
|
|
2825
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2826
|
+
var x = L(d, this.clonePosition());
|
|
2827
|
+
u = { style: g, styleLocation: x };
|
|
2824
2828
|
}
|
|
2825
|
-
var
|
|
2826
|
-
if (
|
|
2827
|
-
return
|
|
2828
|
-
var
|
|
2829
|
+
var B = this.tryParseArgumentClose(i);
|
|
2830
|
+
if (B.err)
|
|
2831
|
+
return B;
|
|
2832
|
+
var T = L(i, this.clonePosition());
|
|
2829
2833
|
if (u && fn(u?.style, "::", 0)) {
|
|
2830
|
-
var
|
|
2834
|
+
var _ = Ai(u.style.slice(2));
|
|
2831
2835
|
if (s === "number") {
|
|
2832
|
-
var
|
|
2833
|
-
return
|
|
2834
|
-
val: { type:
|
|
2836
|
+
var m = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
2837
|
+
return m.err ? m : {
|
|
2838
|
+
val: { type: j.number, value: r, location: T, style: m.val },
|
|
2835
2839
|
err: null
|
|
2836
2840
|
};
|
|
2837
2841
|
} else {
|
|
2838
|
-
if (
|
|
2839
|
-
return this.error(
|
|
2840
|
-
var
|
|
2841
|
-
this.locale && (
|
|
2842
|
-
var
|
|
2843
|
-
type:
|
|
2844
|
-
pattern:
|
|
2842
|
+
if (_.length === 0)
|
|
2843
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2844
|
+
var S = _;
|
|
2845
|
+
this.locale && (S = pi(_, this.locale));
|
|
2846
|
+
var g = {
|
|
2847
|
+
type: $e.dateTime,
|
|
2848
|
+
pattern: S,
|
|
2845
2849
|
location: u.styleLocation,
|
|
2846
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2847
|
-
},
|
|
2850
|
+
parsedOptions: this.shouldParseSkeletons ? si(S) : {}
|
|
2851
|
+
}, P = s === "date" ? j.date : j.time;
|
|
2848
2852
|
return {
|
|
2849
|
-
val: { type:
|
|
2853
|
+
val: { type: P, value: r, location: T, style: g },
|
|
2850
2854
|
err: null
|
|
2851
2855
|
};
|
|
2852
2856
|
}
|
|
2853
2857
|
}
|
|
2854
2858
|
return {
|
|
2855
2859
|
val: {
|
|
2856
|
-
type: s === "number" ?
|
|
2860
|
+
type: s === "number" ? j.number : s === "date" ? j.date : j.time,
|
|
2857
2861
|
value: r,
|
|
2858
|
-
location:
|
|
2862
|
+
location: T,
|
|
2859
2863
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2860
2864
|
},
|
|
2861
2865
|
err: null
|
|
@@ -2864,52 +2868,52 @@ var Ci = (
|
|
|
2864
2868
|
case "plural":
|
|
2865
2869
|
case "selectordinal":
|
|
2866
2870
|
case "select": {
|
|
2867
|
-
var
|
|
2871
|
+
var C = this.clonePosition();
|
|
2868
2872
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2869
|
-
return this.error(
|
|
2873
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C, bt({}, C)));
|
|
2870
2874
|
this.bumpSpace();
|
|
2871
|
-
var
|
|
2872
|
-
if (s !== "select" &&
|
|
2875
|
+
var D = this.parseIdentifierIfPossible(), W = 0;
|
|
2876
|
+
if (s !== "select" && D.value === "offset") {
|
|
2873
2877
|
if (!this.bumpIf(":"))
|
|
2874
|
-
return this.error(
|
|
2878
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2875
2879
|
this.bumpSpace();
|
|
2876
|
-
var
|
|
2877
|
-
if (
|
|
2878
|
-
return
|
|
2879
|
-
this.bumpSpace(),
|
|
2880
|
+
var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2881
|
+
if (m.err)
|
|
2882
|
+
return m;
|
|
2883
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = m.val;
|
|
2880
2884
|
}
|
|
2881
|
-
var
|
|
2882
|
-
if (
|
|
2883
|
-
return
|
|
2884
|
-
var
|
|
2885
|
-
if (
|
|
2886
|
-
return
|
|
2887
|
-
var
|
|
2885
|
+
var J = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2886
|
+
if (J.err)
|
|
2887
|
+
return J;
|
|
2888
|
+
var B = this.tryParseArgumentClose(i);
|
|
2889
|
+
if (B.err)
|
|
2890
|
+
return B;
|
|
2891
|
+
var Y = L(i, this.clonePosition());
|
|
2888
2892
|
return s === "select" ? {
|
|
2889
2893
|
val: {
|
|
2890
|
-
type:
|
|
2894
|
+
type: j.select,
|
|
2891
2895
|
value: r,
|
|
2892
|
-
options: dn(
|
|
2893
|
-
location:
|
|
2896
|
+
options: dn(J.val),
|
|
2897
|
+
location: Y
|
|
2894
2898
|
},
|
|
2895
2899
|
err: null
|
|
2896
2900
|
} : {
|
|
2897
2901
|
val: {
|
|
2898
|
-
type:
|
|
2902
|
+
type: j.plural,
|
|
2899
2903
|
value: r,
|
|
2900
|
-
options: dn(
|
|
2901
|
-
offset:
|
|
2904
|
+
options: dn(J.val),
|
|
2905
|
+
offset: W,
|
|
2902
2906
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2903
|
-
location:
|
|
2907
|
+
location: Y
|
|
2904
2908
|
},
|
|
2905
2909
|
err: null
|
|
2906
2910
|
};
|
|
2907
2911
|
}
|
|
2908
2912
|
default:
|
|
2909
|
-
return this.error(
|
|
2913
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, L(l, h));
|
|
2910
2914
|
}
|
|
2911
2915
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2912
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2916
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2913
2917
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2914
2918
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2915
2919
|
var r = this.char();
|
|
@@ -2918,7 +2922,7 @@ var Ci = (
|
|
|
2918
2922
|
this.bump();
|
|
2919
2923
|
var i = this.clonePosition();
|
|
2920
2924
|
if (!this.bumpUntil("'"))
|
|
2921
|
-
return this.error(
|
|
2925
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2922
2926
|
this.bump();
|
|
2923
2927
|
break;
|
|
2924
2928
|
}
|
|
@@ -2948,52 +2952,52 @@ var Ci = (
|
|
|
2948
2952
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2949
2953
|
var r = [];
|
|
2950
2954
|
try {
|
|
2951
|
-
r =
|
|
2955
|
+
r = ui(t);
|
|
2952
2956
|
} catch {
|
|
2953
|
-
return this.error(
|
|
2957
|
+
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2954
2958
|
}
|
|
2955
2959
|
return {
|
|
2956
2960
|
val: {
|
|
2957
|
-
type:
|
|
2961
|
+
type: $e.number,
|
|
2958
2962
|
tokens: r,
|
|
2959
2963
|
location: n,
|
|
2960
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2964
|
+
parsedOptions: this.shouldParseSkeletons ? di(r) : {}
|
|
2961
2965
|
},
|
|
2962
2966
|
err: null
|
|
2963
2967
|
};
|
|
2964
2968
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2965
2969
|
for (var o, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
2966
2970
|
if (u.length === 0) {
|
|
2967
|
-
var
|
|
2971
|
+
var m = this.clonePosition();
|
|
2968
2972
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2969
|
-
var
|
|
2970
|
-
if (
|
|
2971
|
-
return
|
|
2972
|
-
d = L(
|
|
2973
|
+
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2974
|
+
if (g.err)
|
|
2975
|
+
return g;
|
|
2976
|
+
d = L(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
2973
2977
|
} else
|
|
2974
2978
|
break;
|
|
2975
2979
|
}
|
|
2976
2980
|
if (h.has(u))
|
|
2977
|
-
return this.error(n === "select" ?
|
|
2981
|
+
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2978
2982
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2979
|
-
var
|
|
2983
|
+
var x = this.clonePosition();
|
|
2980
2984
|
if (!this.bumpIf("{"))
|
|
2981
|
-
return this.error(n === "select" ?
|
|
2982
|
-
var
|
|
2985
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
2986
|
+
var B = this.parseMessage(t + 1, n, r);
|
|
2987
|
+
if (B.err)
|
|
2988
|
+
return B;
|
|
2989
|
+
var T = this.tryParseArgumentClose(x);
|
|
2983
2990
|
if (T.err)
|
|
2984
2991
|
return T;
|
|
2985
|
-
var S = this.tryParseArgumentClose(_);
|
|
2986
|
-
if (S.err)
|
|
2987
|
-
return S;
|
|
2988
2992
|
s.push([
|
|
2989
2993
|
u,
|
|
2990
2994
|
{
|
|
2991
|
-
value:
|
|
2992
|
-
location: L(
|
|
2995
|
+
value: B.val,
|
|
2996
|
+
location: L(x, this.clonePosition())
|
|
2993
2997
|
}
|
|
2994
2998
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
2995
2999
|
}
|
|
2996
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
3000
|
+
return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2997
3001
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2998
3002
|
var r = 1, i = this.clonePosition();
|
|
2999
3003
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3005,7 +3009,7 @@ var Ci = (
|
|
|
3005
3009
|
break;
|
|
3006
3010
|
}
|
|
3007
3011
|
var h = L(i, this.clonePosition());
|
|
3008
|
-
return o ? (l *= r,
|
|
3012
|
+
return o ? (l *= r, wi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
|
|
3009
3013
|
}, e.prototype.offset = function() {
|
|
3010
3014
|
return this.position.offset;
|
|
3011
3015
|
}, e.prototype.isEOF = function() {
|
|
@@ -3071,47 +3075,47 @@ var Ci = (
|
|
|
3071
3075
|
}, e;
|
|
3072
3076
|
}()
|
|
3073
3077
|
);
|
|
3074
|
-
function
|
|
3078
|
+
function Wt(e) {
|
|
3075
3079
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3076
3080
|
}
|
|
3077
|
-
function Hi(e) {
|
|
3078
|
-
return Xt(e) || e === 47;
|
|
3079
|
-
}
|
|
3080
3081
|
function Oi(e) {
|
|
3082
|
+
return Wt(e) || e === 47;
|
|
3083
|
+
}
|
|
3084
|
+
function Ri(e) {
|
|
3081
3085
|
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;
|
|
3082
3086
|
}
|
|
3083
3087
|
function qn(e) {
|
|
3084
3088
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3085
3089
|
}
|
|
3086
|
-
function
|
|
3090
|
+
function Li(e) {
|
|
3087
3091
|
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;
|
|
3088
3092
|
}
|
|
3089
|
-
function
|
|
3093
|
+
function Zt(e) {
|
|
3090
3094
|
e.forEach(function(t) {
|
|
3091
3095
|
if (delete t.location, Fn(t) || Gn(t))
|
|
3092
3096
|
for (var n in t.options)
|
|
3093
|
-
delete t.options[n].location,
|
|
3097
|
+
delete t.options[n].location, Zt(t.options[n].value);
|
|
3094
3098
|
else
|
|
3095
|
-
Pn(t) &&
|
|
3099
|
+
Pn(t) && jn(t.style) || (Dn(t) || Un(t)) && kt(t.style) ? delete t.style.location : $n(t) && Zt(t.children);
|
|
3096
3100
|
});
|
|
3097
3101
|
}
|
|
3098
|
-
function
|
|
3099
|
-
t === void 0 && (t = {}), t =
|
|
3100
|
-
var n = new
|
|
3102
|
+
function Mi(e, t) {
|
|
3103
|
+
t === void 0 && (t = {}), t = bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3104
|
+
var n = new Hi(e, t).parse();
|
|
3101
3105
|
if (n.err) {
|
|
3102
|
-
var r = SyntaxError(
|
|
3106
|
+
var r = SyntaxError(O[n.err.kind]);
|
|
3103
3107
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3104
3108
|
}
|
|
3105
|
-
return t?.captureLocation ||
|
|
3109
|
+
return t?.captureLocation || Zt(n.val), n.val;
|
|
3106
3110
|
}
|
|
3107
|
-
var
|
|
3111
|
+
var je;
|
|
3108
3112
|
(function(e) {
|
|
3109
3113
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3110
|
-
})(
|
|
3114
|
+
})(je || (je = {}));
|
|
3111
3115
|
var xt = (
|
|
3112
3116
|
/** @class */
|
|
3113
3117
|
function(e) {
|
|
3114
|
-
|
|
3118
|
+
_t(t, e);
|
|
3115
3119
|
function t(n, r, i) {
|
|
3116
3120
|
var o = e.call(this, n) || this;
|
|
3117
3121
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3123,27 +3127,27 @@ var xt = (
|
|
|
3123
3127
|
), mn = (
|
|
3124
3128
|
/** @class */
|
|
3125
3129
|
function(e) {
|
|
3126
|
-
|
|
3130
|
+
_t(t, e);
|
|
3127
3131
|
function t(n, r, i, o) {
|
|
3128
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3132
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
|
|
3129
3133
|
}
|
|
3130
3134
|
return t;
|
|
3131
3135
|
}(xt)
|
|
3132
|
-
),
|
|
3136
|
+
), Ni = (
|
|
3133
3137
|
/** @class */
|
|
3134
3138
|
function(e) {
|
|
3135
|
-
|
|
3139
|
+
_t(t, e);
|
|
3136
3140
|
function t(n, r, i) {
|
|
3137
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3141
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
|
|
3138
3142
|
}
|
|
3139
3143
|
return t;
|
|
3140
3144
|
}(xt)
|
|
3141
|
-
),
|
|
3145
|
+
), Ii = (
|
|
3142
3146
|
/** @class */
|
|
3143
3147
|
function(e) {
|
|
3144
|
-
|
|
3148
|
+
_t(t, e);
|
|
3145
3149
|
function t(n, r) {
|
|
3146
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3150
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
|
|
3147
3151
|
}
|
|
3148
3152
|
return t;
|
|
3149
3153
|
}(xt)
|
|
@@ -3151,13 +3155,13 @@ var xt = (
|
|
|
3151
3155
|
(function(e) {
|
|
3152
3156
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3153
3157
|
})(ne || (ne = {}));
|
|
3154
|
-
function
|
|
3158
|
+
function Pi(e) {
|
|
3155
3159
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3156
3160
|
var r = t[t.length - 1];
|
|
3157
3161
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3158
3162
|
}, []);
|
|
3159
3163
|
}
|
|
3160
|
-
function
|
|
3164
|
+
function Di(e) {
|
|
3161
3165
|
return typeof e == "function";
|
|
3162
3166
|
}
|
|
3163
3167
|
function ft(e, t, n, r, i, o, l) {
|
|
@@ -3177,98 +3181,98 @@ function ft(e, t, n, r, i, o, l) {
|
|
|
3177
3181
|
});
|
|
3178
3182
|
continue;
|
|
3179
3183
|
}
|
|
3180
|
-
if (
|
|
3184
|
+
if (oi(d)) {
|
|
3181
3185
|
typeof o == "number" && s.push({
|
|
3182
3186
|
type: ne.literal,
|
|
3183
3187
|
value: n.getNumberFormat(t).format(o)
|
|
3184
3188
|
});
|
|
3185
3189
|
continue;
|
|
3186
3190
|
}
|
|
3187
|
-
var
|
|
3188
|
-
if (!(i &&
|
|
3189
|
-
throw new
|
|
3190
|
-
var
|
|
3191
|
-
if (
|
|
3192
|
-
(!
|
|
3193
|
-
type: typeof
|
|
3194
|
-
value:
|
|
3191
|
+
var m = d.value;
|
|
3192
|
+
if (!(i && m in i))
|
|
3193
|
+
throw new Ii(m, l);
|
|
3194
|
+
var g = i[m];
|
|
3195
|
+
if (ii(d)) {
|
|
3196
|
+
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
|
|
3197
|
+
type: typeof g == "string" ? ne.literal : ne.object,
|
|
3198
|
+
value: g
|
|
3195
3199
|
});
|
|
3196
3200
|
continue;
|
|
3197
3201
|
}
|
|
3198
3202
|
if (Dn(d)) {
|
|
3199
|
-
var
|
|
3203
|
+
var x = typeof d.style == "string" ? r.date[d.style] : kt(d.style) ? d.style.parsedOptions : void 0;
|
|
3200
3204
|
s.push({
|
|
3201
3205
|
type: ne.literal,
|
|
3202
|
-
value: n.getDateTimeFormat(t,
|
|
3206
|
+
value: n.getDateTimeFormat(t, x).format(g)
|
|
3203
3207
|
});
|
|
3204
3208
|
continue;
|
|
3205
3209
|
}
|
|
3206
3210
|
if (Un(d)) {
|
|
3207
|
-
var
|
|
3211
|
+
var x = typeof d.style == "string" ? r.time[d.style] : kt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3208
3212
|
s.push({
|
|
3209
3213
|
type: ne.literal,
|
|
3210
|
-
value: n.getDateTimeFormat(t,
|
|
3214
|
+
value: n.getDateTimeFormat(t, x).format(g)
|
|
3211
3215
|
});
|
|
3212
3216
|
continue;
|
|
3213
3217
|
}
|
|
3214
3218
|
if (Pn(d)) {
|
|
3215
|
-
var
|
|
3216
|
-
|
|
3219
|
+
var x = typeof d.style == "string" ? r.number[d.style] : jn(d.style) ? d.style.parsedOptions : void 0;
|
|
3220
|
+
x && x.scale && (g = g * (x.scale || 1)), s.push({
|
|
3217
3221
|
type: ne.literal,
|
|
3218
|
-
value: n.getNumberFormat(t,
|
|
3222
|
+
value: n.getNumberFormat(t, x).format(g)
|
|
3219
3223
|
});
|
|
3220
3224
|
continue;
|
|
3221
3225
|
}
|
|
3222
3226
|
if ($n(d)) {
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3225
|
-
throw new
|
|
3226
|
-
var
|
|
3227
|
-
return
|
|
3227
|
+
var B = d.children, T = d.value, _ = i[T];
|
|
3228
|
+
if (!Di(_))
|
|
3229
|
+
throw new Ni(T, "function", l);
|
|
3230
|
+
var S = ft(B, t, n, r, i, o), P = _(S.map(function(W) {
|
|
3231
|
+
return W.value;
|
|
3228
3232
|
}));
|
|
3229
|
-
Array.isArray(
|
|
3233
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(W) {
|
|
3230
3234
|
return {
|
|
3231
|
-
type: typeof
|
|
3232
|
-
value:
|
|
3235
|
+
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3236
|
+
value: W
|
|
3233
3237
|
};
|
|
3234
3238
|
}));
|
|
3235
3239
|
}
|
|
3236
3240
|
if (Fn(d)) {
|
|
3237
|
-
var
|
|
3238
|
-
if (!
|
|
3239
|
-
throw new mn(d.value,
|
|
3240
|
-
s.push.apply(s, ft(
|
|
3241
|
+
var C = d.options[g] || d.options.other;
|
|
3242
|
+
if (!C)
|
|
3243
|
+
throw new mn(d.value, g, Object.keys(d.options), l);
|
|
3244
|
+
s.push.apply(s, ft(C.value, t, n, r, i));
|
|
3241
3245
|
continue;
|
|
3242
3246
|
}
|
|
3243
3247
|
if (Gn(d)) {
|
|
3244
|
-
var
|
|
3245
|
-
if (!
|
|
3248
|
+
var C = d.options["=".concat(g)];
|
|
3249
|
+
if (!C) {
|
|
3246
3250
|
if (!Intl.PluralRules)
|
|
3247
3251
|
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3248
3252
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3249
|
-
`,
|
|
3250
|
-
var
|
|
3251
|
-
|
|
3253
|
+
`, je.MISSING_INTL_API, l);
|
|
3254
|
+
var D = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
|
|
3255
|
+
C = d.options[D] || d.options.other;
|
|
3252
3256
|
}
|
|
3253
|
-
if (!
|
|
3254
|
-
throw new mn(d.value,
|
|
3255
|
-
s.push.apply(s, ft(
|
|
3257
|
+
if (!C)
|
|
3258
|
+
throw new mn(d.value, g, Object.keys(d.options), l);
|
|
3259
|
+
s.push.apply(s, ft(C.value, t, n, r, i, g - (d.offset || 0)));
|
|
3256
3260
|
continue;
|
|
3257
3261
|
}
|
|
3258
3262
|
}
|
|
3259
|
-
return
|
|
3263
|
+
return Pi(s);
|
|
3260
3264
|
}
|
|
3261
|
-
function
|
|
3262
|
-
return t ?
|
|
3263
|
-
return n[r] =
|
|
3265
|
+
function Ui(e, t) {
|
|
3266
|
+
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3267
|
+
return n[r] = me(me({}, e[r]), t[r] || {}), n;
|
|
3264
3268
|
}, {})) : e;
|
|
3265
3269
|
}
|
|
3266
|
-
function
|
|
3270
|
+
function Fi(e, t) {
|
|
3267
3271
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3268
|
-
return n[r] =
|
|
3269
|
-
},
|
|
3272
|
+
return n[r] = Ui(e[r], t[r]), n;
|
|
3273
|
+
}, me({}, e)) : e;
|
|
3270
3274
|
}
|
|
3271
|
-
function
|
|
3275
|
+
function Dt(e) {
|
|
3272
3276
|
return {
|
|
3273
3277
|
create: function() {
|
|
3274
3278
|
return {
|
|
@@ -3282,39 +3286,39 @@ function It(e) {
|
|
|
3282
3286
|
}
|
|
3283
3287
|
};
|
|
3284
3288
|
}
|
|
3285
|
-
function
|
|
3289
|
+
function Gi(e) {
|
|
3286
3290
|
return e === void 0 && (e = {
|
|
3287
3291
|
number: {},
|
|
3288
3292
|
dateTime: {},
|
|
3289
3293
|
pluralRules: {}
|
|
3290
3294
|
}), {
|
|
3291
|
-
getNumberFormat:
|
|
3295
|
+
getNumberFormat: Nt(function() {
|
|
3292
3296
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3293
3297
|
n[r] = arguments[r];
|
|
3294
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3295
3299
|
}, {
|
|
3296
|
-
cache:
|
|
3297
|
-
strategy:
|
|
3300
|
+
cache: Dt(e.number),
|
|
3301
|
+
strategy: It.variadic
|
|
3298
3302
|
}),
|
|
3299
|
-
getDateTimeFormat:
|
|
3303
|
+
getDateTimeFormat: Nt(function() {
|
|
3300
3304
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3301
3305
|
n[r] = arguments[r];
|
|
3302
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3303
3307
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3308
|
+
cache: Dt(e.dateTime),
|
|
3309
|
+
strategy: It.variadic
|
|
3306
3310
|
}),
|
|
3307
|
-
getPluralRules:
|
|
3311
|
+
getPluralRules: Nt(function() {
|
|
3308
3312
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3309
3313
|
n[r] = arguments[r];
|
|
3310
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3311
3315
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3316
|
+
cache: Dt(e.pluralRules),
|
|
3317
|
+
strategy: It.variadic
|
|
3314
3318
|
})
|
|
3315
3319
|
};
|
|
3316
3320
|
}
|
|
3317
|
-
var
|
|
3321
|
+
var $i = (
|
|
3318
3322
|
/** @class */
|
|
3319
3323
|
function() {
|
|
3320
3324
|
function e(t, n, r, i) {
|
|
@@ -3328,8 +3332,8 @@ var Gi = (
|
|
|
3328
3332
|
var u = o.formatToParts(h);
|
|
3329
3333
|
if (u.length === 1)
|
|
3330
3334
|
return u[0].value;
|
|
3331
|
-
var d = u.reduce(function(
|
|
3332
|
-
return !
|
|
3335
|
+
var d = u.reduce(function(m, g) {
|
|
3336
|
+
return !m.length || g.type !== ne.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
|
|
3333
3337
|
}, []);
|
|
3334
3338
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3335
3339
|
}, this.formatToParts = function(h) {
|
|
@@ -3347,12 +3351,12 @@ var Gi = (
|
|
|
3347
3351
|
var l = i || {};
|
|
3348
3352
|
l.formatters;
|
|
3349
3353
|
var s = Qr(l, ["formatters"]);
|
|
3350
|
-
this.ast = e.__parse(t,
|
|
3354
|
+
this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
|
|
3351
3355
|
} else
|
|
3352
3356
|
this.ast = t;
|
|
3353
3357
|
if (!Array.isArray(this.ast))
|
|
3354
3358
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3355
|
-
this.formats =
|
|
3359
|
+
this.formats = Fi(e.formats, r), this.formatters = i && i.formatters || Gi(this.formatterCache);
|
|
3356
3360
|
}
|
|
3357
3361
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3358
3362
|
get: function() {
|
|
@@ -3365,7 +3369,7 @@ var Gi = (
|
|
|
3365
3369
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3366
3370
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3367
3371
|
}
|
|
3368
|
-
}, e.__parse =
|
|
3372
|
+
}, e.__parse = Mi, e.formats = {
|
|
3369
3373
|
number: {
|
|
3370
3374
|
integer: {
|
|
3371
3375
|
maximumFractionDigits: 0
|
|
@@ -3426,7 +3430,7 @@ var Gi = (
|
|
|
3426
3430
|
}, e;
|
|
3427
3431
|
}()
|
|
3428
3432
|
);
|
|
3429
|
-
function
|
|
3433
|
+
function ji(e, t) {
|
|
3430
3434
|
if (t == null)
|
|
3431
3435
|
return;
|
|
3432
3436
|
if (t in e)
|
|
@@ -3452,31 +3456,31 @@ const Se = {}, ki = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (S
|
|
|
3452
3456
|
return;
|
|
3453
3457
|
if (t in Se && e in Se[t])
|
|
3454
3458
|
return Se[t][e];
|
|
3455
|
-
const n =
|
|
3459
|
+
const n = Bt(t);
|
|
3456
3460
|
for (let r = 0; r < n.length; r++) {
|
|
3457
|
-
const i = n[r], o =
|
|
3461
|
+
const i = n[r], o = Xi(i, e);
|
|
3458
3462
|
if (o)
|
|
3459
3463
|
return ki(e, t, o);
|
|
3460
3464
|
}
|
|
3461
3465
|
};
|
|
3462
3466
|
let Kt;
|
|
3463
|
-
const
|
|
3464
|
-
function
|
|
3467
|
+
const it = Et({});
|
|
3468
|
+
function Vi(e) {
|
|
3465
3469
|
return Kt[e] || null;
|
|
3466
3470
|
}
|
|
3467
3471
|
function Jn(e) {
|
|
3468
3472
|
return e in Kt;
|
|
3469
3473
|
}
|
|
3470
|
-
function
|
|
3474
|
+
function Xi(e, t) {
|
|
3471
3475
|
if (!Jn(e))
|
|
3472
3476
|
return null;
|
|
3473
|
-
const n =
|
|
3474
|
-
return
|
|
3477
|
+
const n = Vi(e);
|
|
3478
|
+
return ji(n, t);
|
|
3475
3479
|
}
|
|
3476
|
-
function
|
|
3480
|
+
function zi(e) {
|
|
3477
3481
|
if (e == null)
|
|
3478
3482
|
return;
|
|
3479
|
-
const t =
|
|
3483
|
+
const t = Bt(e);
|
|
3480
3484
|
for (let n = 0; n < t.length; n++) {
|
|
3481
3485
|
const r = t[n];
|
|
3482
3486
|
if (Jn(r))
|
|
@@ -3484,55 +3488,55 @@ function Xi(e) {
|
|
|
3484
3488
|
}
|
|
3485
3489
|
}
|
|
3486
3490
|
function Yn(e, ...t) {
|
|
3487
|
-
delete Se[e],
|
|
3491
|
+
delete Se[e], it.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
|
|
3488
3492
|
}
|
|
3489
|
-
|
|
3490
|
-
[
|
|
3493
|
+
Xe(
|
|
3494
|
+
[it],
|
|
3491
3495
|
([e]) => Object.keys(e)
|
|
3492
3496
|
);
|
|
3493
|
-
|
|
3497
|
+
it.subscribe((e) => Kt = e);
|
|
3494
3498
|
const dt = {};
|
|
3495
|
-
function
|
|
3499
|
+
function Wi(e, t) {
|
|
3496
3500
|
dt[e].delete(t), dt[e].size === 0 && delete dt[e];
|
|
3497
3501
|
}
|
|
3498
3502
|
function Kn(e) {
|
|
3499
3503
|
return dt[e];
|
|
3500
3504
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3505
|
+
function Zi(e) {
|
|
3506
|
+
return Bt(e).map((t) => {
|
|
3503
3507
|
const n = Kn(t);
|
|
3504
3508
|
return [t, n ? [...n] : []];
|
|
3505
3509
|
}).filter(([, t]) => t.length > 0);
|
|
3506
3510
|
}
|
|
3507
|
-
function
|
|
3508
|
-
return e == null ? !1 :
|
|
3511
|
+
function qt(e) {
|
|
3512
|
+
return e == null ? !1 : Bt(e).some(
|
|
3509
3513
|
(t) => {
|
|
3510
3514
|
var n;
|
|
3511
3515
|
return (n = Kn(t)) == null ? void 0 : n.size;
|
|
3512
3516
|
}
|
|
3513
3517
|
);
|
|
3514
3518
|
}
|
|
3515
|
-
function
|
|
3519
|
+
function qi(e, t) {
|
|
3516
3520
|
return Promise.all(
|
|
3517
|
-
t.map((r) => (
|
|
3521
|
+
t.map((r) => (Wi(e, r), r().then((i) => i.default || i)))
|
|
3518
3522
|
).then((r) => Yn(e, ...r));
|
|
3519
3523
|
}
|
|
3520
|
-
const
|
|
3524
|
+
const Ke = {};
|
|
3521
3525
|
function er(e) {
|
|
3522
|
-
if (!
|
|
3523
|
-
return e in
|
|
3524
|
-
const t =
|
|
3525
|
-
return
|
|
3526
|
+
if (!qt(e))
|
|
3527
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
3528
|
+
const t = Zi(e);
|
|
3529
|
+
return Ke[e] = Promise.all(
|
|
3526
3530
|
t.map(
|
|
3527
|
-
([n, r]) =>
|
|
3531
|
+
([n, r]) => qi(n, r)
|
|
3528
3532
|
)
|
|
3529
3533
|
).then(() => {
|
|
3530
|
-
if (
|
|
3534
|
+
if (qt(e))
|
|
3531
3535
|
return er(e);
|
|
3532
|
-
delete
|
|
3533
|
-
}),
|
|
3536
|
+
delete Ke[e];
|
|
3537
|
+
}), Ke[e];
|
|
3534
3538
|
}
|
|
3535
|
-
const
|
|
3539
|
+
const Qi = {
|
|
3536
3540
|
number: {
|
|
3537
3541
|
scientific: { notation: "scientific" },
|
|
3538
3542
|
engineering: { notation: "engineering" },
|
|
@@ -3561,141 +3565,141 @@ const qi = {
|
|
|
3561
3565
|
timeZoneName: "short"
|
|
3562
3566
|
}
|
|
3563
3567
|
}
|
|
3564
|
-
},
|
|
3568
|
+
}, Ji = {
|
|
3565
3569
|
fallbackLocale: null,
|
|
3566
3570
|
loadingDelay: 200,
|
|
3567
|
-
formats:
|
|
3571
|
+
formats: Qi,
|
|
3568
3572
|
warnOnMissingMessages: !0,
|
|
3569
3573
|
handleMissingMessage: void 0,
|
|
3570
3574
|
ignoreTag: !0
|
|
3571
|
-
},
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3575
|
+
}, Yi = Ji;
|
|
3576
|
+
function ke() {
|
|
3577
|
+
return Yi;
|
|
3574
3578
|
}
|
|
3575
|
-
const
|
|
3576
|
-
var
|
|
3579
|
+
const Ut = Et(!1);
|
|
3580
|
+
var Ki = Object.defineProperty, eo = Object.defineProperties, to = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, io = (e, t) => {
|
|
3577
3581
|
for (var n in t || (t = {}))
|
|
3578
|
-
|
|
3582
|
+
no.call(t, n) && bn(e, n, t[n]);
|
|
3579
3583
|
if (gn)
|
|
3580
3584
|
for (var n of gn(t))
|
|
3581
|
-
|
|
3585
|
+
ro.call(t, n) && bn(e, n, t[n]);
|
|
3582
3586
|
return e;
|
|
3583
|
-
},
|
|
3584
|
-
let
|
|
3585
|
-
const
|
|
3587
|
+
}, oo = (e, t) => eo(e, to(t));
|
|
3588
|
+
let Qt;
|
|
3589
|
+
const yt = Et(null);
|
|
3586
3590
|
function yn(e) {
|
|
3587
3591
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3588
3592
|
}
|
|
3589
|
-
function
|
|
3593
|
+
function Bt(e, t = ke().fallbackLocale) {
|
|
3590
3594
|
const n = yn(e);
|
|
3591
3595
|
return t ? [.../* @__PURE__ */ new Set([...n, ...yn(t)])] : n;
|
|
3592
3596
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return
|
|
3597
|
+
function Oe() {
|
|
3598
|
+
return Qt ?? void 0;
|
|
3595
3599
|
}
|
|
3596
|
-
|
|
3597
|
-
|
|
3600
|
+
yt.subscribe((e) => {
|
|
3601
|
+
Qt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3598
3602
|
});
|
|
3599
|
-
const
|
|
3600
|
-
if (e &&
|
|
3601
|
-
const { loadingDelay: t } =
|
|
3603
|
+
const ao = (e) => {
|
|
3604
|
+
if (e && zi(e) && qt(e)) {
|
|
3605
|
+
const { loadingDelay: t } = ke();
|
|
3602
3606
|
let n;
|
|
3603
|
-
return typeof window < "u" &&
|
|
3604
|
-
() =>
|
|
3607
|
+
return typeof window < "u" && Oe() != null && t ? n = window.setTimeout(
|
|
3608
|
+
() => Ut.set(!0),
|
|
3605
3609
|
t
|
|
3606
|
-
) :
|
|
3607
|
-
|
|
3610
|
+
) : Ut.set(!0), er(e).then(() => {
|
|
3611
|
+
yt.set(e);
|
|
3608
3612
|
}).finally(() => {
|
|
3609
|
-
clearTimeout(n),
|
|
3613
|
+
clearTimeout(n), Ut.set(!1);
|
|
3610
3614
|
});
|
|
3611
3615
|
}
|
|
3612
|
-
return
|
|
3613
|
-
},
|
|
3614
|
-
set:
|
|
3615
|
-
}),
|
|
3616
|
+
return yt.set(e);
|
|
3617
|
+
}, ze = oo(io({}, yt), {
|
|
3618
|
+
set: ao
|
|
3619
|
+
}), Tt = (e) => {
|
|
3616
3620
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3617
3621
|
return (r) => {
|
|
3618
3622
|
const i = JSON.stringify(r);
|
|
3619
3623
|
return i in t ? t[i] : t[i] = e(r);
|
|
3620
3624
|
};
|
|
3621
3625
|
};
|
|
3622
|
-
var
|
|
3626
|
+
var so = Object.defineProperty, vt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
|
|
3623
3627
|
for (var n in t || (t = {}))
|
|
3624
3628
|
tr.call(t, n) && vn(e, n, t[n]);
|
|
3625
|
-
if (
|
|
3626
|
-
for (var n of
|
|
3629
|
+
if (vt)
|
|
3630
|
+
for (var n of vt(t))
|
|
3627
3631
|
nr.call(t, n) && vn(e, n, t[n]);
|
|
3628
3632
|
return e;
|
|
3629
|
-
},
|
|
3633
|
+
}, We = (e, t) => {
|
|
3630
3634
|
var n = {};
|
|
3631
3635
|
for (var r in e)
|
|
3632
3636
|
tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3633
|
-
if (e != null &&
|
|
3634
|
-
for (var r of
|
|
3637
|
+
if (e != null && vt)
|
|
3638
|
+
for (var r of vt(e))
|
|
3635
3639
|
t.indexOf(r) < 0 && nr.call(e, r) && (n[r] = e[r]);
|
|
3636
3640
|
return n;
|
|
3637
3641
|
};
|
|
3638
|
-
const
|
|
3639
|
-
const { formats: n } =
|
|
3642
|
+
const rt = (e, t) => {
|
|
3643
|
+
const { formats: n } = ke();
|
|
3640
3644
|
if (e in n && t in n[e])
|
|
3641
3645
|
return n[e][t];
|
|
3642
3646
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3643
|
-
},
|
|
3647
|
+
}, lo = Tt(
|
|
3644
3648
|
(e) => {
|
|
3645
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3649
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3646
3650
|
if (n == null)
|
|
3647
3651
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3648
|
-
return r && (i =
|
|
3652
|
+
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3649
3653
|
}
|
|
3650
|
-
),
|
|
3654
|
+
), uo = Tt(
|
|
3651
3655
|
(e) => {
|
|
3652
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3656
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3653
3657
|
if (n == null)
|
|
3654
3658
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3655
|
-
return r ? i =
|
|
3659
|
+
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3656
3660
|
}
|
|
3657
|
-
),
|
|
3661
|
+
), co = Tt(
|
|
3658
3662
|
(e) => {
|
|
3659
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3663
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3660
3664
|
if (n == null)
|
|
3661
3665
|
throw new Error(
|
|
3662
3666
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3663
3667
|
);
|
|
3664
|
-
return r ? i =
|
|
3668
|
+
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3665
3669
|
}
|
|
3666
|
-
),
|
|
3667
|
-
var t = e, {
|
|
3668
|
-
locale: n = He()
|
|
3669
|
-
} = t, r = Ve(t, [
|
|
3670
|
-
"locale"
|
|
3671
|
-
]);
|
|
3672
|
-
return so(en({ locale: n }, r));
|
|
3673
|
-
}, ho = (e = {}) => {
|
|
3670
|
+
), ho = (e = {}) => {
|
|
3674
3671
|
var t = e, {
|
|
3675
|
-
locale: n =
|
|
3676
|
-
} = t, r =
|
|
3672
|
+
locale: n = Oe()
|
|
3673
|
+
} = t, r = We(t, [
|
|
3677
3674
|
"locale"
|
|
3678
3675
|
]);
|
|
3679
3676
|
return lo(en({ locale: n }, r));
|
|
3680
3677
|
}, fo = (e = {}) => {
|
|
3681
3678
|
var t = e, {
|
|
3682
|
-
locale: n =
|
|
3683
|
-
} = t, r =
|
|
3679
|
+
locale: n = Oe()
|
|
3680
|
+
} = t, r = We(t, [
|
|
3684
3681
|
"locale"
|
|
3685
3682
|
]);
|
|
3686
3683
|
return uo(en({ locale: n }, r));
|
|
3687
|
-
}, po =
|
|
3684
|
+
}, po = (e = {}) => {
|
|
3685
|
+
var t = e, {
|
|
3686
|
+
locale: n = Oe()
|
|
3687
|
+
} = t, r = We(t, [
|
|
3688
|
+
"locale"
|
|
3689
|
+
]);
|
|
3690
|
+
return co(en({ locale: n }, r));
|
|
3691
|
+
}, mo = Tt(
|
|
3688
3692
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3689
|
-
(e, t =
|
|
3690
|
-
ignoreTag:
|
|
3693
|
+
(e, t = Oe()) => new $i(e, t, ke().formats, {
|
|
3694
|
+
ignoreTag: ke().ignoreTag
|
|
3691
3695
|
})
|
|
3692
|
-
),
|
|
3696
|
+
), go = (e, t = {}) => {
|
|
3693
3697
|
var n, r, i, o;
|
|
3694
3698
|
let l = t;
|
|
3695
3699
|
typeof e == "object" && (l = e, e = l.id);
|
|
3696
3700
|
const {
|
|
3697
3701
|
values: s,
|
|
3698
|
-
locale: h =
|
|
3702
|
+
locale: h = Oe(),
|
|
3699
3703
|
default: u
|
|
3700
3704
|
} = l;
|
|
3701
3705
|
if (h == null)
|
|
@@ -3704,35 +3708,35 @@ const tt = (e, t) => {
|
|
|
3704
3708
|
);
|
|
3705
3709
|
let d = Qn(e, h);
|
|
3706
3710
|
if (!d)
|
|
3707
|
-
d = (o = (i = (r = (n =
|
|
3711
|
+
d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3708
3712
|
else if (typeof d != "string")
|
|
3709
3713
|
return console.warn(
|
|
3710
3714
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3711
3715
|
), d;
|
|
3712
3716
|
if (!s)
|
|
3713
3717
|
return d;
|
|
3714
|
-
let
|
|
3718
|
+
let m = d;
|
|
3715
3719
|
try {
|
|
3716
|
-
|
|
3717
|
-
} catch (
|
|
3718
|
-
|
|
3720
|
+
m = mo(d, h).format(s);
|
|
3721
|
+
} catch (g) {
|
|
3722
|
+
g instanceof Error && console.warn(
|
|
3719
3723
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3720
|
-
|
|
3724
|
+
g.message
|
|
3721
3725
|
);
|
|
3722
3726
|
}
|
|
3723
|
-
return
|
|
3724
|
-
},
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3727
|
+
return m;
|
|
3728
|
+
}, bo = (e, t) => po(t).format(e), yo = (e, t) => fo(t).format(e), vo = (e, t) => ho(t).format(e), Eo = (e, t = Oe()) => Qn(e, t), _o = Xe([ze, it], () => go);
|
|
3729
|
+
Xe([ze], () => bo);
|
|
3730
|
+
Xe([ze], () => yo);
|
|
3731
|
+
Xe([ze], () => vo);
|
|
3732
|
+
Xe([ze, it], () => Eo);
|
|
3729
3733
|
function En(e, t) {
|
|
3730
3734
|
Yn(e, t);
|
|
3731
3735
|
}
|
|
3732
3736
|
function xo(e) {
|
|
3733
|
-
|
|
3737
|
+
ze.set(e);
|
|
3734
3738
|
}
|
|
3735
|
-
const
|
|
3739
|
+
const _n = {
|
|
3736
3740
|
en: {
|
|
3737
3741
|
Title: "Your Balance",
|
|
3738
3742
|
Total: "Total Balance",
|
|
@@ -3932,7 +3936,7 @@ const xn = {
|
|
|
3932
3936
|
Loading: "Loading ..."
|
|
3933
3937
|
}
|
|
3934
3938
|
};
|
|
3935
|
-
var
|
|
3939
|
+
var Jt = { exports: {} };
|
|
3936
3940
|
/** @license
|
|
3937
3941
|
* eventsource.js
|
|
3938
3942
|
* Available under MIT License (MIT)
|
|
@@ -3940,35 +3944,35 @@ var qt = { exports: {} };
|
|
|
3940
3944
|
*/
|
|
3941
3945
|
(function(e, t) {
|
|
3942
3946
|
(function(n) {
|
|
3943
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise,
|
|
3944
|
-
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3947
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3948
|
+
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3945
3949
|
u.readyState = "complete";
|
|
3946
3950
|
}, !1)), o == null && s != null && (o = function() {
|
|
3947
3951
|
return new s("Microsoft.XMLHTTP");
|
|
3948
|
-
}), Object.create == null && (Object.create = function(
|
|
3949
|
-
function
|
|
3952
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3953
|
+
function f() {
|
|
3950
3954
|
}
|
|
3951
|
-
return
|
|
3955
|
+
return f.prototype = a, new f();
|
|
3952
3956
|
}), Date.now || (Date.now = function() {
|
|
3953
3957
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3954
|
-
}),
|
|
3955
|
-
var
|
|
3956
|
-
|
|
3957
|
-
var p =
|
|
3958
|
-
return
|
|
3959
|
-
var
|
|
3960
|
-
return p._reader =
|
|
3961
|
-
status:
|
|
3962
|
-
statusText:
|
|
3963
|
-
headers:
|
|
3958
|
+
}), T == null) {
|
|
3959
|
+
var _ = m;
|
|
3960
|
+
m = function(a, f) {
|
|
3961
|
+
var p = f.signal;
|
|
3962
|
+
return _(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
|
|
3963
|
+
var v = c.body.getReader();
|
|
3964
|
+
return p._reader = v, p._aborted && p._reader.cancel(), {
|
|
3965
|
+
status: c.status,
|
|
3966
|
+
statusText: c.statusText,
|
|
3967
|
+
headers: c.headers,
|
|
3964
3968
|
body: {
|
|
3965
3969
|
getReader: function() {
|
|
3966
|
-
return
|
|
3970
|
+
return v;
|
|
3967
3971
|
}
|
|
3968
3972
|
}
|
|
3969
3973
|
};
|
|
3970
3974
|
});
|
|
3971
|
-
},
|
|
3975
|
+
}, T = function() {
|
|
3972
3976
|
this.signal = {
|
|
3973
3977
|
_reader: null,
|
|
3974
3978
|
_aborted: !1
|
|
@@ -3977,407 +3981,407 @@ var qt = { exports: {} };
|
|
|
3977
3981
|
};
|
|
3978
3982
|
};
|
|
3979
3983
|
}
|
|
3980
|
-
function
|
|
3984
|
+
function S() {
|
|
3981
3985
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3982
3986
|
}
|
|
3983
|
-
|
|
3984
|
-
function
|
|
3985
|
-
if (
|
|
3986
|
-
return
|
|
3987
|
-
if (
|
|
3988
|
-
return
|
|
3989
|
-
if (
|
|
3990
|
-
return
|
|
3987
|
+
S.prototype.decode = function(a) {
|
|
3988
|
+
function f(I, F, w) {
|
|
3989
|
+
if (w === 1)
|
|
3990
|
+
return I >= 128 >> F && I << F <= 2047;
|
|
3991
|
+
if (w === 2)
|
|
3992
|
+
return I >= 2048 >> F && I << F <= 55295 || I >= 57344 >> F && I << F <= 65535;
|
|
3993
|
+
if (w === 3)
|
|
3994
|
+
return I >= 65536 >> F && I << F <= 1114111;
|
|
3991
3995
|
throw new Error();
|
|
3992
3996
|
}
|
|
3993
|
-
function p(
|
|
3994
|
-
if (
|
|
3997
|
+
function p(I, F) {
|
|
3998
|
+
if (I === 6 * 1)
|
|
3995
3999
|
return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
|
|
3996
|
-
if (
|
|
4000
|
+
if (I === 6 * 2)
|
|
3997
4001
|
return F > 15 ? 3 : 2;
|
|
3998
|
-
if (
|
|
4002
|
+
if (I === 6 * 3)
|
|
3999
4003
|
return 3;
|
|
4000
4004
|
throw new Error();
|
|
4001
4005
|
}
|
|
4002
|
-
for (var
|
|
4003
|
-
var
|
|
4004
|
-
|
|
4006
|
+
for (var c = 65533, v = "", E = this.bitsNeeded, y = this.codePoint, R = 0; R < a.length; R += 1) {
|
|
4007
|
+
var A = a[R];
|
|
4008
|
+
E !== 0 && (A < 128 || A > 191 || !f(y << 6 | A & 63, E - 6, p(E, y))) && (E = 0, y = c, v += String.fromCharCode(y)), E === 0 ? (A >= 0 && A <= 127 ? (E = 0, y = A) : A >= 192 && A <= 223 ? (E = 6 * 1, y = A & 31) : A >= 224 && A <= 239 ? (E = 6 * 2, y = A & 15) : A >= 240 && A <= 247 ? (E = 6 * 3, y = A & 7) : (E = 0, y = c), E !== 0 && !f(y, E, p(E, y)) && (E = 0, y = c)) : (E -= 6, y = y << 6 | A & 63), E === 0 && (y <= 65535 ? v += String.fromCharCode(y) : (v += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
|
|
4005
4009
|
}
|
|
4006
|
-
return this.bitsNeeded =
|
|
4010
|
+
return this.bitsNeeded = E, this.codePoint = y, v;
|
|
4007
4011
|
};
|
|
4008
|
-
var
|
|
4012
|
+
var P = function() {
|
|
4009
4013
|
try {
|
|
4010
|
-
return new
|
|
4011
|
-
} catch (
|
|
4012
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4014
|
+
return new x().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4015
|
+
} catch (a) {
|
|
4016
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4013
4017
|
}
|
|
4014
4018
|
return !1;
|
|
4015
4019
|
};
|
|
4016
|
-
(
|
|
4017
|
-
var
|
|
4020
|
+
(x == null || B == null || !P()) && (x = S);
|
|
4021
|
+
var C = function() {
|
|
4018
4022
|
};
|
|
4019
|
-
function
|
|
4020
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4023
|
+
function D(a) {
|
|
4024
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = C, this.onload = C, this.onerror = C, this.onreadystatechange = C, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = C;
|
|
4021
4025
|
}
|
|
4022
|
-
|
|
4026
|
+
D.prototype.open = function(a, f) {
|
|
4023
4027
|
this._abort(!0);
|
|
4024
|
-
var p = this,
|
|
4025
|
-
this._abort = function(
|
|
4026
|
-
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (
|
|
4028
|
+
var p = this, c = this._xhr, v = 1, E = 0;
|
|
4029
|
+
this._abort = function(w) {
|
|
4030
|
+
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = C, c.onerror = C, c.onabort = C, c.onprogress = C, c.onreadystatechange = C, c.abort(), E !== 0 && (i(E), E = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), v = 0;
|
|
4027
4031
|
};
|
|
4028
|
-
var
|
|
4029
|
-
if (
|
|
4030
|
-
var
|
|
4031
|
-
if ("contentType" in
|
|
4032
|
-
|
|
4032
|
+
var y = function() {
|
|
4033
|
+
if (v === 1) {
|
|
4034
|
+
var w = 0, V = "", be = void 0;
|
|
4035
|
+
if ("contentType" in c)
|
|
4036
|
+
w = 200, V = "OK", be = c.contentType;
|
|
4033
4037
|
else
|
|
4034
4038
|
try {
|
|
4035
|
-
|
|
4039
|
+
w = c.status, V = c.statusText, be = c.getResponseHeader("Content-Type");
|
|
4036
4040
|
} catch {
|
|
4037
|
-
|
|
4041
|
+
w = 0, V = "", be = void 0;
|
|
4038
4042
|
}
|
|
4039
|
-
|
|
4043
|
+
w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = be, p.onreadystatechange());
|
|
4040
4044
|
}
|
|
4041
|
-
},
|
|
4042
|
-
if (
|
|
4043
|
-
|
|
4044
|
-
var
|
|
4045
|
+
}, R = function() {
|
|
4046
|
+
if (y(), v === 2 || v === 3) {
|
|
4047
|
+
v = 3;
|
|
4048
|
+
var w = "";
|
|
4045
4049
|
try {
|
|
4046
|
-
|
|
4050
|
+
w = c.responseText;
|
|
4047
4051
|
} catch {
|
|
4048
4052
|
}
|
|
4049
|
-
p.readyState = 3, p.responseText =
|
|
4053
|
+
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4050
4054
|
}
|
|
4051
|
-
},
|
|
4052
|
-
if ((
|
|
4053
|
-
preventDefault:
|
|
4054
|
-
}),
|
|
4055
|
-
if (
|
|
4056
|
-
p.onload(
|
|
4057
|
-
else if (
|
|
4058
|
-
p.onerror(
|
|
4059
|
-
else if (
|
|
4060
|
-
p.onabort(
|
|
4055
|
+
}, A = function(w, V) {
|
|
4056
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
4057
|
+
preventDefault: C
|
|
4058
|
+
}), R(), v === 1 || v === 2 || v === 3) {
|
|
4059
|
+
if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
|
|
4060
|
+
p.onload(V);
|
|
4061
|
+
else if (w === "error")
|
|
4062
|
+
p.onerror(V);
|
|
4063
|
+
else if (w === "abort")
|
|
4064
|
+
p.onabort(V);
|
|
4061
4065
|
else
|
|
4062
4066
|
throw new TypeError();
|
|
4063
4067
|
p.onreadystatechange();
|
|
4064
4068
|
}
|
|
4065
|
-
},
|
|
4066
|
-
|
|
4069
|
+
}, I = function(w) {
|
|
4070
|
+
c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && A(c.responseText === "" ? "error" : "load", w) : c.readyState === 3 ? "onprogress" in c || R() : c.readyState === 2 && y());
|
|
4067
4071
|
}, F = function() {
|
|
4068
|
-
|
|
4072
|
+
E = r(function() {
|
|
4069
4073
|
F();
|
|
4070
|
-
}, 500),
|
|
4074
|
+
}, 500), c.readyState === 3 && R();
|
|
4071
4075
|
};
|
|
4072
|
-
"onload" in
|
|
4073
|
-
|
|
4074
|
-
}), "onerror" in
|
|
4075
|
-
|
|
4076
|
-
}), "onabort" in
|
|
4077
|
-
|
|
4078
|
-
}), "onprogress" in
|
|
4079
|
-
|
|
4080
|
-
}), ("contentType" in
|
|
4076
|
+
"onload" in c && (c.onload = function(w) {
|
|
4077
|
+
A("load", w);
|
|
4078
|
+
}), "onerror" in c && (c.onerror = function(w) {
|
|
4079
|
+
A("error", w);
|
|
4080
|
+
}), "onabort" in c && (c.onabort = function(w) {
|
|
4081
|
+
A("abort", w);
|
|
4082
|
+
}), "onprogress" in c && (c.onprogress = R), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
|
|
4083
|
+
I(w);
|
|
4084
|
+
}), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
|
|
4081
4085
|
F();
|
|
4082
4086
|
}, 0));
|
|
4083
|
-
},
|
|
4087
|
+
}, D.prototype.abort = function() {
|
|
4084
4088
|
this._abort(!1);
|
|
4085
|
-
},
|
|
4089
|
+
}, D.prototype.getResponseHeader = function(a) {
|
|
4086
4090
|
return this._contentType;
|
|
4087
|
-
},
|
|
4091
|
+
}, D.prototype.setRequestHeader = function(a, f) {
|
|
4088
4092
|
var p = this._xhr;
|
|
4089
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4090
|
-
},
|
|
4093
|
+
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4094
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4091
4095
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4092
|
-
},
|
|
4096
|
+
}, D.prototype.send = function() {
|
|
4093
4097
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4094
|
-
var
|
|
4095
|
-
|
|
4096
|
-
|
|
4098
|
+
var a = this;
|
|
4099
|
+
a._sendTimeout = r(function() {
|
|
4100
|
+
a._sendTimeout = 0, a.send();
|
|
4097
4101
|
}, 4);
|
|
4098
4102
|
return;
|
|
4099
4103
|
}
|
|
4100
|
-
var
|
|
4101
|
-
"withCredentials" in
|
|
4104
|
+
var f = this._xhr;
|
|
4105
|
+
"withCredentials" in f && (f.withCredentials = this.withCredentials);
|
|
4102
4106
|
try {
|
|
4103
|
-
|
|
4107
|
+
f.send(void 0);
|
|
4104
4108
|
} catch (p) {
|
|
4105
4109
|
throw p;
|
|
4106
4110
|
}
|
|
4107
4111
|
};
|
|
4108
|
-
function
|
|
4109
|
-
return
|
|
4110
|
-
return String.fromCharCode(
|
|
4112
|
+
function W(a) {
|
|
4113
|
+
return a.replace(/[A-Z]/g, function(f) {
|
|
4114
|
+
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4111
4115
|
});
|
|
4112
4116
|
}
|
|
4113
|
-
function
|
|
4114
|
-
for (var
|
|
4115
|
-
`),
|
|
4116
|
-
var
|
|
4117
|
-
|
|
4117
|
+
function J(a) {
|
|
4118
|
+
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4119
|
+
`), c = 0; c < p.length; c += 1) {
|
|
4120
|
+
var v = p[c], E = v.split(": "), y = E.shift(), R = E.join(": ");
|
|
4121
|
+
f[W(y)] = R;
|
|
4118
4122
|
}
|
|
4119
|
-
this._map =
|
|
4123
|
+
this._map = f;
|
|
4120
4124
|
}
|
|
4121
|
-
|
|
4122
|
-
return this._map[
|
|
4125
|
+
J.prototype.get = function(a) {
|
|
4126
|
+
return this._map[W(a)];
|
|
4123
4127
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4124
|
-
function
|
|
4128
|
+
function Y() {
|
|
4125
4129
|
}
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
var
|
|
4129
|
-
|
|
4130
|
-
var
|
|
4131
|
-
|
|
4132
|
-
},
|
|
4133
|
-
|
|
4134
|
-
},
|
|
4135
|
-
|
|
4136
|
-
},
|
|
4137
|
-
|
|
4138
|
-
},
|
|
4139
|
-
if (
|
|
4140
|
-
var
|
|
4141
|
-
|
|
4130
|
+
Y.prototype.open = function(a, f, p, c, v, E, y) {
|
|
4131
|
+
a.open("GET", v);
|
|
4132
|
+
var R = 0;
|
|
4133
|
+
a.onprogress = function() {
|
|
4134
|
+
var I = a.responseText, F = I.slice(R);
|
|
4135
|
+
R += F.length, p(F);
|
|
4136
|
+
}, a.onerror = function(I) {
|
|
4137
|
+
I.preventDefault(), c(new Error("NetworkError"));
|
|
4138
|
+
}, a.onload = function() {
|
|
4139
|
+
c(null);
|
|
4140
|
+
}, a.onabort = function() {
|
|
4141
|
+
c(null);
|
|
4142
|
+
}, a.onreadystatechange = function() {
|
|
4143
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4144
|
+
var I = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4145
|
+
f(I, F, w, new J(V));
|
|
4142
4146
|
}
|
|
4143
|
-
},
|
|
4144
|
-
for (var
|
|
4145
|
-
Object.prototype.hasOwnProperty.call(
|
|
4146
|
-
return
|
|
4147
|
+
}, a.withCredentials = E;
|
|
4148
|
+
for (var A in y)
|
|
4149
|
+
Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
|
|
4150
|
+
return a.send(), a;
|
|
4147
4151
|
};
|
|
4148
|
-
function
|
|
4149
|
-
this._headers =
|
|
4152
|
+
function G(a) {
|
|
4153
|
+
this._headers = a;
|
|
4150
4154
|
}
|
|
4151
|
-
|
|
4152
|
-
return this._headers.get(
|
|
4155
|
+
G.prototype.get = function(a) {
|
|
4156
|
+
return this._headers.get(a);
|
|
4153
4157
|
};
|
|
4154
|
-
function
|
|
4158
|
+
function N() {
|
|
4155
4159
|
}
|
|
4156
|
-
|
|
4157
|
-
var
|
|
4158
|
-
return
|
|
4159
|
-
headers:
|
|
4160
|
-
credentials:
|
|
4161
|
-
signal:
|
|
4160
|
+
N.prototype.open = function(a, f, p, c, v, E, y) {
|
|
4161
|
+
var R = null, A = new T(), I = A.signal, F = new x();
|
|
4162
|
+
return m(v, {
|
|
4163
|
+
headers: y,
|
|
4164
|
+
credentials: E ? "include" : "same-origin",
|
|
4165
|
+
signal: I,
|
|
4162
4166
|
cache: "no-store"
|
|
4163
|
-
}).then(function(
|
|
4164
|
-
return
|
|
4165
|
-
var
|
|
4166
|
-
|
|
4167
|
-
if (
|
|
4168
|
-
|
|
4167
|
+
}).then(function(w) {
|
|
4168
|
+
return R = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(V, be) {
|
|
4169
|
+
var Je = function() {
|
|
4170
|
+
R.read().then(function(ie) {
|
|
4171
|
+
if (ie.done)
|
|
4172
|
+
V(void 0);
|
|
4169
4173
|
else {
|
|
4170
|
-
var K = F.decode(
|
|
4171
|
-
p(K),
|
|
4174
|
+
var K = F.decode(ie.value, { stream: !0 });
|
|
4175
|
+
p(K), Je();
|
|
4172
4176
|
}
|
|
4173
|
-
}).catch(function(
|
|
4174
|
-
|
|
4177
|
+
}).catch(function(ie) {
|
|
4178
|
+
be(ie);
|
|
4175
4179
|
});
|
|
4176
4180
|
};
|
|
4177
|
-
|
|
4181
|
+
Je();
|
|
4178
4182
|
});
|
|
4179
|
-
}).catch(function(
|
|
4180
|
-
if (
|
|
4181
|
-
return
|
|
4182
|
-
}).then(function(
|
|
4183
|
-
|
|
4183
|
+
}).catch(function(w) {
|
|
4184
|
+
if (w.name !== "AbortError")
|
|
4185
|
+
return w;
|
|
4186
|
+
}).then(function(w) {
|
|
4187
|
+
c(w);
|
|
4184
4188
|
}), {
|
|
4185
4189
|
abort: function() {
|
|
4186
|
-
|
|
4190
|
+
R?.cancel(), A.abort();
|
|
4187
4191
|
}
|
|
4188
4192
|
};
|
|
4189
4193
|
};
|
|
4190
|
-
function
|
|
4194
|
+
function $() {
|
|
4191
4195
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4192
4196
|
}
|
|
4193
|
-
function
|
|
4197
|
+
function U(a) {
|
|
4194
4198
|
r(function() {
|
|
4195
|
-
throw
|
|
4199
|
+
throw a;
|
|
4196
4200
|
}, 0);
|
|
4197
4201
|
}
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
var
|
|
4201
|
-
if (
|
|
4202
|
-
for (var p =
|
|
4203
|
-
var
|
|
4202
|
+
$.prototype.dispatchEvent = function(a) {
|
|
4203
|
+
a.target = this;
|
|
4204
|
+
var f = this._listeners[a.type];
|
|
4205
|
+
if (f != null)
|
|
4206
|
+
for (var p = f.length, c = 0; c < p; c += 1) {
|
|
4207
|
+
var v = f[c];
|
|
4204
4208
|
try {
|
|
4205
|
-
typeof
|
|
4206
|
-
} catch (
|
|
4207
|
-
|
|
4209
|
+
typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
|
|
4210
|
+
} catch (E) {
|
|
4211
|
+
U(E);
|
|
4208
4212
|
}
|
|
4209
4213
|
}
|
|
4210
|
-
},
|
|
4211
|
-
|
|
4212
|
-
var p = this._listeners,
|
|
4213
|
-
|
|
4214
|
-
for (var
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
},
|
|
4218
|
-
|
|
4219
|
-
var p = this._listeners,
|
|
4220
|
-
if (
|
|
4221
|
-
for (var
|
|
4222
|
-
|
|
4223
|
-
|
|
4214
|
+
}, $.prototype.addEventListener = function(a, f) {
|
|
4215
|
+
a = String(a);
|
|
4216
|
+
var p = this._listeners, c = p[a];
|
|
4217
|
+
c == null && (c = [], p[a] = c);
|
|
4218
|
+
for (var v = !1, E = 0; E < c.length; E += 1)
|
|
4219
|
+
c[E] === f && (v = !0);
|
|
4220
|
+
v || c.push(f);
|
|
4221
|
+
}, $.prototype.removeEventListener = function(a, f) {
|
|
4222
|
+
a = String(a);
|
|
4223
|
+
var p = this._listeners, c = p[a];
|
|
4224
|
+
if (c != null) {
|
|
4225
|
+
for (var v = [], E = 0; E < c.length; E += 1)
|
|
4226
|
+
c[E] !== f && v.push(c[E]);
|
|
4227
|
+
v.length === 0 ? delete p[a] : p[a] = v;
|
|
4224
4228
|
}
|
|
4225
4229
|
};
|
|
4226
|
-
function
|
|
4227
|
-
this.type =
|
|
4230
|
+
function b(a) {
|
|
4231
|
+
this.type = a, this.target = void 0;
|
|
4228
4232
|
}
|
|
4229
|
-
function
|
|
4230
|
-
|
|
4233
|
+
function xe(a, f) {
|
|
4234
|
+
b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4231
4235
|
}
|
|
4232
|
-
|
|
4233
|
-
function
|
|
4234
|
-
|
|
4236
|
+
xe.prototype = Object.create(b.prototype);
|
|
4237
|
+
function Ze(a, f) {
|
|
4238
|
+
b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4235
4239
|
}
|
|
4236
|
-
|
|
4237
|
-
function
|
|
4238
|
-
|
|
4240
|
+
Ze.prototype = Object.create(b.prototype);
|
|
4241
|
+
function Be(a, f) {
|
|
4242
|
+
b.call(this, a), this.error = f.error;
|
|
4239
4243
|
}
|
|
4240
|
-
|
|
4241
|
-
var
|
|
4242
|
-
var p =
|
|
4243
|
-
return p !== p && (p =
|
|
4244
|
-
},
|
|
4245
|
-
return Math.min(Math.max(
|
|
4246
|
-
},
|
|
4244
|
+
Be.prototype = Object.create(b.prototype);
|
|
4245
|
+
var Re = -1, pe = 0, Te = 1, Ae = 2, Ce = -1, le = 0, qe = 1, Le = 2, ot = 3, wt = /^text\/event\-stream(;.*)?$/i, at = 1e3, St = 18e6, Qe = function(a, f) {
|
|
4246
|
+
var p = a == null ? f : parseInt(a, 10);
|
|
4247
|
+
return p !== p && (p = f), Me(p);
|
|
4248
|
+
}, Me = function(a) {
|
|
4249
|
+
return Math.min(Math.max(a, at), St);
|
|
4250
|
+
}, we = function(a, f, p) {
|
|
4247
4251
|
try {
|
|
4248
|
-
typeof
|
|
4249
|
-
} catch (
|
|
4250
|
-
|
|
4252
|
+
typeof f == "function" && f.call(a, p);
|
|
4253
|
+
} catch (c) {
|
|
4254
|
+
U(c);
|
|
4251
4255
|
}
|
|
4252
4256
|
};
|
|
4253
|
-
function
|
|
4254
|
-
|
|
4257
|
+
function re(a, f) {
|
|
4258
|
+
$.call(this), f = f || {}, 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, Ht(this, a, f);
|
|
4255
4259
|
}
|
|
4256
|
-
function
|
|
4260
|
+
function At() {
|
|
4257
4261
|
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4258
4262
|
}
|
|
4259
|
-
var
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4262
|
-
var
|
|
4263
|
-
if (
|
|
4264
|
-
if (
|
|
4265
|
-
|
|
4266
|
-
var te = new
|
|
4267
|
-
status:
|
|
4268
|
-
statusText:
|
|
4269
|
-
headers:
|
|
4263
|
+
var Ct = m != null && g != null && "body" in g.prototype;
|
|
4264
|
+
function Ht(a, f, p) {
|
|
4265
|
+
f = String(f);
|
|
4266
|
+
var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Me(1e3), y = Qe(p.heartbeatTimeout, 45e3), R = "", A = E, I = !1, F = 0, w = p.headers || {}, V = p.Transport, be = Ct && V == null ? void 0 : new D(V != null ? new V() : At()), Je = V != null && typeof V != "string" ? new V() : be == null ? new N() : new Y(), ie = void 0, K = 0, ue = Re, Ne = "", lt = "", ye = "", ut = "", ee = le, Ot = 0, He = 0, ir = function(Z, z, oe, ae) {
|
|
4267
|
+
if (ue === pe)
|
|
4268
|
+
if (Z === 200 && oe != null && wt.test(oe)) {
|
|
4269
|
+
ue = Te, I = Date.now(), A = E, a.readyState = Te;
|
|
4270
|
+
var te = new Ze("open", {
|
|
4271
|
+
status: Z,
|
|
4272
|
+
statusText: z,
|
|
4273
|
+
headers: ae
|
|
4270
4274
|
});
|
|
4271
|
-
|
|
4275
|
+
a.dispatchEvent(te), we(a, a.onopen, te);
|
|
4272
4276
|
} else {
|
|
4273
|
-
var
|
|
4274
|
-
|
|
4275
|
-
var te = new
|
|
4276
|
-
status:
|
|
4277
|
-
statusText:
|
|
4278
|
-
headers:
|
|
4277
|
+
var q = "";
|
|
4278
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
|
|
4279
|
+
var te = new Ze("error", {
|
|
4280
|
+
status: Z,
|
|
4281
|
+
statusText: z,
|
|
4282
|
+
headers: ae
|
|
4279
4283
|
});
|
|
4280
|
-
|
|
4284
|
+
a.dispatchEvent(te), we(a, a.onerror, te), console.error(q);
|
|
4281
4285
|
}
|
|
4282
|
-
}, or = function(
|
|
4283
|
-
if (
|
|
4284
|
-
for (var
|
|
4285
|
-
var
|
|
4286
|
-
(
|
|
4286
|
+
}, or = function(Z) {
|
|
4287
|
+
if (ue === Te) {
|
|
4288
|
+
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4289
|
+
var ae = Z.charCodeAt(oe);
|
|
4290
|
+
(ae === 10 || ae === 13) && (z = oe);
|
|
4287
4291
|
}
|
|
4288
|
-
var te = (
|
|
4289
|
-
ut = (
|
|
4290
|
-
for (var
|
|
4291
|
-
var
|
|
4292
|
-
if (ee ===
|
|
4292
|
+
var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
|
|
4293
|
+
ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (I = Date.now(), F += Z.length);
|
|
4294
|
+
for (var q = 0; q < te.length; q += 1) {
|
|
4295
|
+
var ae = te.charCodeAt(q);
|
|
4296
|
+
if (ee === Ce && ae === 10)
|
|
4293
4297
|
ee = le;
|
|
4294
|
-
else if (ee ===
|
|
4298
|
+
else if (ee === Ce && (ee = le), ae === 13 || ae === 10) {
|
|
4295
4299
|
if (ee !== le) {
|
|
4296
|
-
ee ===
|
|
4297
|
-
var
|
|
4298
|
-
|
|
4299
|
-
`,
|
|
4300
|
-
|
|
4301
|
-
},
|
|
4300
|
+
ee === qe && (He = q + 1);
|
|
4301
|
+
var ve = te.slice(Ot, He - 1), Ee = te.slice(He + (He < q && te.charCodeAt(He) === 32 ? 1 : 0), q);
|
|
4302
|
+
ve === "data" ? (Ne += `
|
|
4303
|
+
`, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (E = Qe(Ee, E), A = E) : ve === "heartbeatTimeout" && (y = Qe(Ee, y), K !== 0 && (i(K), K = r(function() {
|
|
4304
|
+
Ye();
|
|
4305
|
+
}, y)));
|
|
4302
4306
|
}
|
|
4303
4307
|
if (ee === le) {
|
|
4304
|
-
if (
|
|
4305
|
-
|
|
4306
|
-
var
|
|
4307
|
-
data:
|
|
4308
|
+
if (Ne !== "") {
|
|
4309
|
+
R = lt, ye === "" && (ye = "message");
|
|
4310
|
+
var Ie = new xe(ye, {
|
|
4311
|
+
data: Ne.slice(1),
|
|
4308
4312
|
lastEventId: lt
|
|
4309
4313
|
});
|
|
4310
|
-
if (
|
|
4314
|
+
if (a.dispatchEvent(Ie), ye === "open" ? we(a, a.onopen, Ie) : ye === "message" ? we(a, a.onmessage, Ie) : ye === "error" && we(a, a.onerror, Ie), ue === Ae)
|
|
4311
4315
|
return;
|
|
4312
4316
|
}
|
|
4313
|
-
|
|
4317
|
+
Ne = "", ye = "";
|
|
4314
4318
|
}
|
|
4315
|
-
ee =
|
|
4319
|
+
ee = ae === 13 ? Ce : le;
|
|
4316
4320
|
} else
|
|
4317
|
-
ee === le && (
|
|
4321
|
+
ee === le && (Ot = q, ee = qe), ee === qe ? ae === 58 && (He = q + 1, ee = Le) : ee === Le && (ee = ot);
|
|
4318
4322
|
}
|
|
4319
4323
|
}
|
|
4320
|
-
}, nn = function(
|
|
4321
|
-
if (
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
},
|
|
4325
|
-
var
|
|
4326
|
-
|
|
4324
|
+
}, nn = function(Z) {
|
|
4325
|
+
if (ue === Te || ue === pe) {
|
|
4326
|
+
ue = Re, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4327
|
+
Ye();
|
|
4328
|
+
}, A), A = Me(Math.min(E * 16, A * 2)), a.readyState = pe;
|
|
4329
|
+
var z = new Be("error", { error: Z });
|
|
4330
|
+
a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
|
|
4327
4331
|
}
|
|
4328
|
-
},
|
|
4329
|
-
|
|
4330
|
-
},
|
|
4331
|
-
if (K = 0,
|
|
4332
|
-
if (!
|
|
4333
|
-
nn(new Error("No activity within " +
|
|
4332
|
+
}, Rt = function() {
|
|
4333
|
+
ue = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
|
|
4334
|
+
}, Ye = function() {
|
|
4335
|
+
if (K = 0, ue !== Re) {
|
|
4336
|
+
if (!I && ie != null)
|
|
4337
|
+
nn(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4334
4338
|
else {
|
|
4335
|
-
var
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
},
|
|
4339
|
+
var Z = Math.max((I || Date.now()) + y - Date.now(), 1);
|
|
4340
|
+
I = !1, K = r(function() {
|
|
4341
|
+
Ye();
|
|
4342
|
+
}, Z);
|
|
4339
4343
|
}
|
|
4340
4344
|
return;
|
|
4341
4345
|
}
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
},
|
|
4345
|
-
var
|
|
4346
|
-
if (
|
|
4347
|
-
var
|
|
4348
|
-
|
|
4349
|
-
return
|
|
4350
|
-
}),
|
|
4346
|
+
I = !1, F = 0, K = r(function() {
|
|
4347
|
+
Ye();
|
|
4348
|
+
}, y), ue = pe, Ne = "", ye = "", lt = R, ut = "", Ot = 0, He = 0, ee = le;
|
|
4349
|
+
var z = f;
|
|
4350
|
+
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && R !== "") {
|
|
4351
|
+
var oe = f.indexOf("?");
|
|
4352
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
|
|
4353
|
+
return Ie === v ? "" : Ee;
|
|
4354
|
+
}), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(R);
|
|
4351
4355
|
}
|
|
4352
|
-
var
|
|
4356
|
+
var ae = a.withCredentials, te = {};
|
|
4353
4357
|
te.Accept = "text/event-stream";
|
|
4354
|
-
var
|
|
4355
|
-
if (
|
|
4356
|
-
for (var
|
|
4357
|
-
Object.prototype.hasOwnProperty.call(
|
|
4358
|
+
var q = a.headers;
|
|
4359
|
+
if (q != null)
|
|
4360
|
+
for (var ve in q)
|
|
4361
|
+
Object.prototype.hasOwnProperty.call(q, ve) && (te[ve] = q[ve]);
|
|
4358
4362
|
try {
|
|
4359
|
-
|
|
4360
|
-
} catch (
|
|
4361
|
-
throw
|
|
4363
|
+
ie = Je.open(be, ir, or, nn, z, ae, te);
|
|
4364
|
+
} catch (Ee) {
|
|
4365
|
+
throw Rt(), Ee;
|
|
4362
4366
|
}
|
|
4363
4367
|
};
|
|
4364
|
-
|
|
4368
|
+
a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Rt, Ye();
|
|
4365
4369
|
}
|
|
4366
|
-
|
|
4370
|
+
re.prototype = Object.create($.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
|
|
4367
4371
|
this._close();
|
|
4368
|
-
},
|
|
4372
|
+
}, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
|
|
4369
4373
|
var st = h;
|
|
4370
|
-
o != null && (h == null || !("withCredentials" in h.prototype)) && (st =
|
|
4374
|
+
o != null && (h == null || !("withCredentials" in h.prototype)) && (st = re), function(a) {
|
|
4371
4375
|
{
|
|
4372
|
-
var
|
|
4373
|
-
|
|
4376
|
+
var f = a(t);
|
|
4377
|
+
f !== void 0 && (e.exports = f);
|
|
4374
4378
|
}
|
|
4375
|
-
}(function(
|
|
4376
|
-
|
|
4379
|
+
}(function(a) {
|
|
4380
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = st;
|
|
4377
4381
|
});
|
|
4378
4382
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Mr : globalThis);
|
|
4379
|
-
})(
|
|
4380
|
-
var
|
|
4383
|
+
})(Jt, Jt.exports);
|
|
4384
|
+
var Bo = Jt.exports;
|
|
4381
4385
|
/*!
|
|
4382
4386
|
* currency.js - v2.0.4
|
|
4383
4387
|
* http://scurker.github.io/currency.js
|
|
@@ -4385,7 +4389,7 @@ var _o = qt.exports;
|
|
|
4385
4389
|
* Copyright (c) 2021 Jason Wilson
|
|
4386
4390
|
* Released under MIT license
|
|
4387
4391
|
*/
|
|
4388
|
-
var
|
|
4392
|
+
var To = {
|
|
4389
4393
|
symbol: "$",
|
|
4390
4394
|
separator: ",",
|
|
4391
4395
|
decimal: ".",
|
|
@@ -4393,31 +4397,31 @@ var Bo = {
|
|
|
4393
4397
|
precision: 2,
|
|
4394
4398
|
pattern: "!#",
|
|
4395
4399
|
negativePattern: "-!#",
|
|
4396
|
-
format:
|
|
4400
|
+
format: Co,
|
|
4397
4401
|
fromCents: !1
|
|
4398
4402
|
}, rr = function(t) {
|
|
4399
4403
|
return Math.round(t);
|
|
4400
4404
|
}, tn = function(t) {
|
|
4401
4405
|
return Math.pow(10, t);
|
|
4402
|
-
},
|
|
4406
|
+
}, wo = function(t, n) {
|
|
4403
4407
|
return rr(t / n) * n;
|
|
4404
|
-
},
|
|
4405
|
-
function
|
|
4408
|
+
}, So = /(\d)(?=(\d{3})+\b)/g, Ao = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4409
|
+
function ce(e, t) {
|
|
4406
4410
|
var n = this;
|
|
4407
|
-
if (!(n instanceof
|
|
4408
|
-
return new
|
|
4409
|
-
var r = Object.assign({},
|
|
4410
|
-
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups =
|
|
4411
|
+
if (!(n instanceof ce))
|
|
4412
|
+
return new ce(e, t);
|
|
4413
|
+
var r = Object.assign({}, To, t), i = tn(r.precision), o = pt(e, r);
|
|
4414
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ao : r.groups = So, this.s = r, this.p = i;
|
|
4411
4415
|
}
|
|
4412
4416
|
function pt(e, t) {
|
|
4413
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = tn(l), u = typeof e == "number", d = e instanceof
|
|
4417
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = tn(l), u = typeof e == "number", d = e instanceof ce;
|
|
4414
4418
|
if (d && s)
|
|
4415
4419
|
return e.intValue;
|
|
4416
4420
|
if (u || d)
|
|
4417
4421
|
r = d ? e.value : e;
|
|
4418
4422
|
else if (typeof e == "string") {
|
|
4419
|
-
var
|
|
4420
|
-
r = e.replace(/\((.*)\)/, "-$1").replace(
|
|
4423
|
+
var m = new RegExp("[^-\\d" + i + "]", "g"), g = new RegExp("\\" + i, "g");
|
|
4424
|
+
r = e.replace(/\((.*)\)/, "-$1").replace(m, "").replace(g, "."), r = r || 0;
|
|
4421
4425
|
} else {
|
|
4422
4426
|
if (o)
|
|
4423
4427
|
throw Error("Invalid Input");
|
|
@@ -4425,11 +4429,11 @@ function pt(e, t) {
|
|
|
4425
4429
|
}
|
|
4426
4430
|
return s || (r *= h, r = r.toFixed(4)), n ? rr(r) : r;
|
|
4427
4431
|
}
|
|
4428
|
-
function
|
|
4432
|
+
function Co(e, t) {
|
|
4429
4433
|
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
|
|
4430
4434
|
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4431
4435
|
}
|
|
4432
|
-
|
|
4436
|
+
ce.prototype = {
|
|
4433
4437
|
/**
|
|
4434
4438
|
* Adds values together.
|
|
4435
4439
|
* @param {number} number
|
|
@@ -4437,7 +4441,7 @@ fe.prototype = {
|
|
|
4437
4441
|
*/
|
|
4438
4442
|
add: function(t) {
|
|
4439
4443
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4440
|
-
return
|
|
4444
|
+
return ce((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4441
4445
|
},
|
|
4442
4446
|
/**
|
|
4443
4447
|
* Subtracts value.
|
|
@@ -4446,7 +4450,7 @@ fe.prototype = {
|
|
|
4446
4450
|
*/
|
|
4447
4451
|
subtract: function(t) {
|
|
4448
4452
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4449
|
-
return
|
|
4453
|
+
return ce((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4450
4454
|
},
|
|
4451
4455
|
/**
|
|
4452
4456
|
* Multiplies values.
|
|
@@ -4455,7 +4459,7 @@ fe.prototype = {
|
|
|
4455
4459
|
*/
|
|
4456
4460
|
multiply: function(t) {
|
|
4457
4461
|
var n = this.intValue, r = this.s;
|
|
4458
|
-
return
|
|
4462
|
+
return ce((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
|
|
4459
4463
|
},
|
|
4460
4464
|
/**
|
|
4461
4465
|
* Divides value.
|
|
@@ -4464,7 +4468,7 @@ fe.prototype = {
|
|
|
4464
4468
|
*/
|
|
4465
4469
|
divide: function(t) {
|
|
4466
4470
|
var n = this.intValue, r = this.s;
|
|
4467
|
-
return
|
|
4471
|
+
return ce(n /= pt(t, r, !1), r);
|
|
4468
4472
|
},
|
|
4469
4473
|
/**
|
|
4470
4474
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4474,7 +4478,7 @@ fe.prototype = {
|
|
|
4474
4478
|
*/
|
|
4475
4479
|
distribute: function(t) {
|
|
4476
4480
|
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4477
|
-
var u =
|
|
4481
|
+
var u = ce(l / h, i);
|
|
4478
4482
|
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), o.push(u);
|
|
4479
4483
|
}
|
|
4480
4484
|
return o;
|
|
@@ -4509,7 +4513,7 @@ fe.prototype = {
|
|
|
4509
4513
|
*/
|
|
4510
4514
|
toString: function() {
|
|
4511
4515
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4512
|
-
return
|
|
4516
|
+
return wo(t / n, r.increment).toFixed(r.precision);
|
|
4513
4517
|
},
|
|
4514
4518
|
/**
|
|
4515
4519
|
* Value for JSON serialization.
|
|
@@ -4519,10 +4523,10 @@ fe.prototype = {
|
|
|
4519
4523
|
return this.value;
|
|
4520
4524
|
}
|
|
4521
4525
|
};
|
|
4522
|
-
function
|
|
4526
|
+
function Ho(e) {
|
|
4523
4527
|
lr(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}');
|
|
4524
4528
|
}
|
|
4525
|
-
function
|
|
4529
|
+
function xn(e, t, n) {
|
|
4526
4530
|
const r = e.slice();
|
|
4527
4531
|
return r[50] = t[n], r;
|
|
4528
4532
|
}
|
|
@@ -4530,7 +4534,7 @@ function Bn(e, t, n) {
|
|
|
4530
4534
|
const r = e.slice();
|
|
4531
4535
|
return r[53] = t[n], r;
|
|
4532
4536
|
}
|
|
4533
|
-
function
|
|
4537
|
+
function Oo(e) {
|
|
4534
4538
|
let t, n, r = (
|
|
4535
4539
|
/*balances*/
|
|
4536
4540
|
(e[1].Total ? (
|
|
@@ -4540,69 +4544,69 @@ function Ho(e) {
|
|
|
4540
4544
|
e[1].Total[0].amount
|
|
4541
4545
|
)
|
|
4542
4546
|
) : "0") + ""
|
|
4543
|
-
), i, o, l, s, h, u, d, g,
|
|
4547
|
+
), i, o, l, s, h, u, d, m, g, x, B, T, _ = (
|
|
4544
4548
|
/*showBalance*/
|
|
4545
4549
|
e[4] && Tn(e)
|
|
4546
4550
|
);
|
|
4547
4551
|
return {
|
|
4548
4552
|
c() {
|
|
4549
|
-
t =
|
|
4553
|
+
t = k("button"), n = k("p"), i = he(r), o = de(), l = he(
|
|
4550
4554
|
/*currency*/
|
|
4551
4555
|
e[5]
|
|
4552
|
-
), s =
|
|
4556
|
+
), s = de(), h = k("span"), u = on("svg"), d = on("path"), g = de(), _ && _.c(), x = hr(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(h, "class", m = /*isModalDisplayed*/
|
|
4553
4557
|
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4554
4558
|
},
|
|
4555
|
-
m(
|
|
4556
|
-
ge(
|
|
4559
|
+
m(S, P) {
|
|
4560
|
+
ge(S, t, P), H(t, n), H(n, i), H(n, o), H(n, l), H(t, s), H(t, h), H(h, u), H(u, d), ge(S, g, P), _ && _.m(S, P), ge(S, x, P), B || (T = mt(
|
|
4557
4561
|
t,
|
|
4558
4562
|
"click",
|
|
4559
4563
|
/*click_handler*/
|
|
4560
4564
|
e[25]
|
|
4561
|
-
),
|
|
4565
|
+
), B = !0);
|
|
4562
4566
|
},
|
|
4563
|
-
p(
|
|
4564
|
-
|
|
4567
|
+
p(S, P) {
|
|
4568
|
+
P[0] & /*balances*/
|
|
4565
4569
|
2 && r !== (r = /*balances*/
|
|
4566
|
-
(
|
|
4570
|
+
(S[1].Total ? (
|
|
4567
4571
|
/*formatBalance*/
|
|
4568
|
-
|
|
4572
|
+
S[8](
|
|
4569
4573
|
/*balances*/
|
|
4570
|
-
|
|
4574
|
+
S[1].Total[0].amount
|
|
4571
4575
|
)
|
|
4572
|
-
) : "0") + "") &&
|
|
4573
|
-
32 &&
|
|
4576
|
+
) : "0") + "") && _e(i, r), P[0] & /*currency*/
|
|
4577
|
+
32 && _e(
|
|
4574
4578
|
l,
|
|
4575
4579
|
/*currency*/
|
|
4576
|
-
|
|
4577
|
-
),
|
|
4578
|
-
8 &&
|
|
4579
|
-
|
|
4580
|
-
|
|
4580
|
+
S[5]
|
|
4581
|
+
), P[0] & /*isModalDisplayed*/
|
|
4582
|
+
8 && m !== (m = /*isModalDisplayed*/
|
|
4583
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && M(h, "class", m), /*showBalance*/
|
|
4584
|
+
S[4] ? _ ? _.p(S, P) : (_ = Tn(S), _.c(), _.m(x.parentNode, x)) : _ && (_.d(1), _ = null);
|
|
4581
4585
|
},
|
|
4582
|
-
d(
|
|
4583
|
-
|
|
4586
|
+
d(S) {
|
|
4587
|
+
S && (fe(t), fe(g), fe(x)), _ && _.d(S), B = !1, T();
|
|
4584
4588
|
}
|
|
4585
4589
|
};
|
|
4586
4590
|
}
|
|
4587
|
-
function
|
|
4591
|
+
function Ro(e) {
|
|
4588
4592
|
let t, n = (
|
|
4589
4593
|
/*$_*/
|
|
4590
4594
|
e[6]("Loading") + ""
|
|
4591
4595
|
), r;
|
|
4592
4596
|
return {
|
|
4593
4597
|
c() {
|
|
4594
|
-
t =
|
|
4598
|
+
t = k("p"), r = he(n), M(t, "class", "Loading");
|
|
4595
4599
|
},
|
|
4596
4600
|
m(i, o) {
|
|
4597
|
-
ge(i, t, o),
|
|
4601
|
+
ge(i, t, o), H(t, r);
|
|
4598
4602
|
},
|
|
4599
4603
|
p(i, o) {
|
|
4600
4604
|
o[0] & /*$_*/
|
|
4601
4605
|
64 && n !== (n = /*$_*/
|
|
4602
|
-
i[6]("Loading") + "") &&
|
|
4606
|
+
i[6]("Loading") + "") && _e(r, n);
|
|
4603
4607
|
},
|
|
4604
4608
|
d(i) {
|
|
4605
|
-
i &&
|
|
4609
|
+
i && fe(t);
|
|
4606
4610
|
}
|
|
4607
4611
|
};
|
|
4608
4612
|
}
|
|
@@ -4610,31 +4614,31 @@ function Tn(e) {
|
|
|
4610
4614
|
let t, n, r, i, o, l, s, h, u = (
|
|
4611
4615
|
/*$_*/
|
|
4612
4616
|
e[6]("Title") + ""
|
|
4613
|
-
), d, g,
|
|
4617
|
+
), d, m, g, x, B, T, _ = (
|
|
4614
4618
|
/*$_*/
|
|
4615
4619
|
e[6]("DepositButton") + ""
|
|
4616
|
-
),
|
|
4620
|
+
), S, P, C, D, W, J, Y = gt(Object.keys(
|
|
4617
4621
|
/*balances*/
|
|
4618
4622
|
e[1]
|
|
4619
|
-
)),
|
|
4620
|
-
for (let
|
|
4621
|
-
|
|
4623
|
+
)), G = [];
|
|
4624
|
+
for (let N = 0; N < Y.length; N += 1)
|
|
4625
|
+
G[N] = Sn(xn(e, Y, N));
|
|
4622
4626
|
return {
|
|
4623
4627
|
c() {
|
|
4624
|
-
t =
|
|
4625
|
-
for (let
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
(e[3] ? "Open" : "")), M(h, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(
|
|
4629
|
-
(e[3] ? "Open" : "")), M(o, "class",
|
|
4630
|
-
(e[3] ? "Open" : "")), M(t, "class",
|
|
4628
|
+
t = k("div"), n = k("button"), i = de(), o = k("div"), l = k("div"), s = k("div"), h = k("p"), d = he(u), m = de(), g = k("div");
|
|
4629
|
+
for (let N = 0; N < G.length; N += 1)
|
|
4630
|
+
G[N].c();
|
|
4631
|
+
x = de(), B = k("div"), T = k("button"), S = he(_), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4632
|
+
(e[3] ? "Open" : "")), M(h, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(g, "class", "BalanceModalBody"), M(T, "class", "BalanceModalAction"), M(B, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*isModalDisplayed*/
|
|
4633
|
+
(e[3] ? "Open" : "")), M(o, "class", C = "BalanceModal " + /*isModalDisplayed*/
|
|
4634
|
+
(e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4631
4635
|
(e[3] ? "Open" : ""));
|
|
4632
4636
|
},
|
|
4633
|
-
m(
|
|
4634
|
-
ge(
|
|
4635
|
-
for (let
|
|
4636
|
-
|
|
4637
|
-
|
|
4637
|
+
m(N, $) {
|
|
4638
|
+
ge(N, t, $), H(t, n), H(t, i), H(t, o), H(o, l), H(l, s), H(s, h), H(h, d), H(l, m), H(l, g);
|
|
4639
|
+
for (let U = 0; U < G.length; U += 1)
|
|
4640
|
+
G[U] && G[U].m(g, null);
|
|
4641
|
+
H(l, x), H(l, B), H(B, T), H(T, S), W || (J = [
|
|
4638
4642
|
mt(
|
|
4639
4643
|
n,
|
|
4640
4644
|
"click",
|
|
@@ -4642,45 +4646,45 @@ function Tn(e) {
|
|
|
4642
4646
|
e[26]
|
|
4643
4647
|
),
|
|
4644
4648
|
mt(
|
|
4645
|
-
|
|
4649
|
+
T,
|
|
4646
4650
|
"click",
|
|
4647
4651
|
/*click_handler_2*/
|
|
4648
4652
|
e[27]
|
|
4649
4653
|
)
|
|
4650
|
-
],
|
|
4654
|
+
], W = !0);
|
|
4651
4655
|
},
|
|
4652
|
-
p(
|
|
4653
|
-
if (
|
|
4656
|
+
p(N, $) {
|
|
4657
|
+
if ($[0] & /*isModalDisplayed*/
|
|
4654
4658
|
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4655
|
-
(
|
|
4659
|
+
(N[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
|
|
4656
4660
|
64 && u !== (u = /*$_*/
|
|
4657
|
-
|
|
4661
|
+
N[6]("Title") + "") && _e(d, u), $[0] & /*balances, currency, formatBalance, $_*/
|
|
4658
4662
|
354) {
|
|
4659
|
-
|
|
4663
|
+
Y = gt(Object.keys(
|
|
4660
4664
|
/*balances*/
|
|
4661
|
-
|
|
4665
|
+
N[1]
|
|
4662
4666
|
));
|
|
4663
|
-
let
|
|
4664
|
-
for (
|
|
4665
|
-
const
|
|
4666
|
-
|
|
4667
|
+
let U;
|
|
4668
|
+
for (U = 0; U < Y.length; U += 1) {
|
|
4669
|
+
const b = xn(N, Y, U);
|
|
4670
|
+
G[U] ? G[U].p(b, $) : (G[U] = Sn(b), G[U].c(), G[U].m(g, null));
|
|
4667
4671
|
}
|
|
4668
|
-
for (;
|
|
4669
|
-
|
|
4670
|
-
|
|
4672
|
+
for (; U < G.length; U += 1)
|
|
4673
|
+
G[U].d(1);
|
|
4674
|
+
G.length = Y.length;
|
|
4671
4675
|
}
|
|
4672
|
-
|
|
4673
|
-
64 &&
|
|
4674
|
-
|
|
4675
|
-
8 &&
|
|
4676
|
-
(
|
|
4677
|
-
8 &&
|
|
4678
|
-
(
|
|
4679
|
-
8 &&
|
|
4680
|
-
(
|
|
4676
|
+
$[0] & /*$_*/
|
|
4677
|
+
64 && _ !== (_ = /*$_*/
|
|
4678
|
+
N[6]("DepositButton") + "") && _e(S, _), $[0] & /*isModalDisplayed*/
|
|
4679
|
+
8 && P !== (P = "ModalContent " + /*isModalDisplayed*/
|
|
4680
|
+
(N[3] ? "Open" : "")) && M(l, "class", P), $[0] & /*isModalDisplayed*/
|
|
4681
|
+
8 && C !== (C = "BalanceModal " + /*isModalDisplayed*/
|
|
4682
|
+
(N[3] ? "Open" : "")) && M(o, "class", C), $[0] & /*isModalDisplayed*/
|
|
4683
|
+
8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4684
|
+
(N[3] ? "Open" : "")) && M(t, "class", D);
|
|
4681
4685
|
},
|
|
4682
|
-
d(
|
|
4683
|
-
|
|
4686
|
+
d(N) {
|
|
4687
|
+
N && fe(t), Rn(G, N), W = !1, Ve(J);
|
|
4684
4688
|
}
|
|
4685
4689
|
};
|
|
4686
4690
|
}
|
|
@@ -4700,7 +4704,7 @@ function wn(e) {
|
|
|
4700
4704
|
e[53].productType
|
|
4701
4705
|
)
|
|
4702
4706
|
) : "") + ""
|
|
4703
|
-
), s, h, u, d,
|
|
4707
|
+
), s, h, u, d, m = (
|
|
4704
4708
|
/*b*/
|
|
4705
4709
|
(e[53].amount ? (
|
|
4706
4710
|
/*formatBalance*/
|
|
@@ -4709,48 +4713,48 @@ function wn(e) {
|
|
|
4709
4713
|
e[53].amount
|
|
4710
4714
|
)
|
|
4711
4715
|
) : "0") + ""
|
|
4712
|
-
),
|
|
4716
|
+
), g, x, B, T;
|
|
4713
4717
|
return {
|
|
4714
4718
|
c() {
|
|
4715
|
-
t =
|
|
4719
|
+
t = k("div"), n = k("p"), i = he(r), o = de(), s = he(l), h = de(), u = k("p"), d = k("span"), g = he(m), x = de(), B = k("span"), T = he(
|
|
4716
4720
|
/*currency*/
|
|
4717
4721
|
e[5]
|
|
4718
|
-
), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(
|
|
4722
|
+
), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(B, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
4719
4723
|
},
|
|
4720
|
-
m(
|
|
4721
|
-
ge(
|
|
4724
|
+
m(_, S) {
|
|
4725
|
+
ge(_, t, S), H(t, n), H(n, i), H(n, o), H(n, s), H(t, h), H(t, u), H(u, d), H(d, g), H(u, x), H(u, B), H(B, T);
|
|
4722
4726
|
},
|
|
4723
|
-
p(
|
|
4724
|
-
|
|
4727
|
+
p(_, S) {
|
|
4728
|
+
S[0] & /*$_, balances*/
|
|
4725
4729
|
66 && r !== (r = /*$_*/
|
|
4726
|
-
|
|
4730
|
+
_[6](
|
|
4727
4731
|
/*k*/
|
|
4728
|
-
|
|
4729
|
-
) + "") &&
|
|
4732
|
+
_[50]
|
|
4733
|
+
) + "") && _e(i, r), S[0] & /*balances, $_*/
|
|
4730
4734
|
66 && l !== (l = /*b*/
|
|
4731
|
-
(
|
|
4735
|
+
(_[53].productType ? (
|
|
4732
4736
|
/*$_*/
|
|
4733
|
-
|
|
4737
|
+
_[6](
|
|
4734
4738
|
/*b*/
|
|
4735
|
-
|
|
4739
|
+
_[53].productType
|
|
4736
4740
|
)
|
|
4737
|
-
) : "") + "") &&
|
|
4738
|
-
2 &&
|
|
4739
|
-
(
|
|
4741
|
+
) : "") + "") && _e(s, l), S[0] & /*balances*/
|
|
4742
|
+
2 && m !== (m = /*b*/
|
|
4743
|
+
(_[53].amount ? (
|
|
4740
4744
|
/*formatBalance*/
|
|
4741
|
-
|
|
4745
|
+
_[8](
|
|
4742
4746
|
/*b*/
|
|
4743
|
-
|
|
4747
|
+
_[53].amount
|
|
4744
4748
|
)
|
|
4745
|
-
) : "0") + "") &&
|
|
4746
|
-
32 &&
|
|
4747
|
-
|
|
4749
|
+
) : "0") + "") && _e(g, m), S[0] & /*currency*/
|
|
4750
|
+
32 && _e(
|
|
4751
|
+
T,
|
|
4748
4752
|
/*currency*/
|
|
4749
|
-
|
|
4753
|
+
_[5]
|
|
4750
4754
|
);
|
|
4751
4755
|
},
|
|
4752
|
-
d(
|
|
4753
|
-
|
|
4756
|
+
d(_) {
|
|
4757
|
+
_ && fe(t);
|
|
4754
4758
|
}
|
|
4755
4759
|
};
|
|
4756
4760
|
}
|
|
@@ -4766,16 +4770,16 @@ function Sn(e) {
|
|
|
4766
4770
|
i[o] = wn(Bn(e, r, o));
|
|
4767
4771
|
return {
|
|
4768
4772
|
c() {
|
|
4769
|
-
t =
|
|
4773
|
+
t = k("div");
|
|
4770
4774
|
for (let o = 0; o < i.length; o += 1)
|
|
4771
4775
|
i[o].c();
|
|
4772
|
-
n =
|
|
4776
|
+
n = de(), M(t, "class", "BalanceModalRowBoth");
|
|
4773
4777
|
},
|
|
4774
4778
|
m(o, l) {
|
|
4775
4779
|
ge(o, t, l);
|
|
4776
4780
|
for (let s = 0; s < i.length; s += 1)
|
|
4777
4781
|
i[s] && i[s].m(t, null);
|
|
4778
|
-
|
|
4782
|
+
H(t, n);
|
|
4779
4783
|
},
|
|
4780
4784
|
p(o, l) {
|
|
4781
4785
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
@@ -4798,7 +4802,7 @@ function Sn(e) {
|
|
|
4798
4802
|
}
|
|
4799
4803
|
},
|
|
4800
4804
|
d(o) {
|
|
4801
|
-
o &&
|
|
4805
|
+
o && fe(t), Rn(i, o);
|
|
4802
4806
|
}
|
|
4803
4807
|
};
|
|
4804
4808
|
}
|
|
@@ -4806,7 +4810,7 @@ function An(e) {
|
|
|
4806
4810
|
let t, n, r;
|
|
4807
4811
|
return {
|
|
4808
4812
|
c() {
|
|
4809
|
-
t =
|
|
4813
|
+
t = k("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
4810
4814
|
},
|
|
4811
4815
|
m(i, o) {
|
|
4812
4816
|
ge(i, t, o), n || (r = mt(
|
|
@@ -4816,18 +4820,18 @@ function An(e) {
|
|
|
4816
4820
|
e[28]
|
|
4817
4821
|
), n = !0);
|
|
4818
4822
|
},
|
|
4819
|
-
p:
|
|
4823
|
+
p: se,
|
|
4820
4824
|
d(i) {
|
|
4821
|
-
i &&
|
|
4825
|
+
i && fe(t), n = !1, r();
|
|
4822
4826
|
}
|
|
4823
4827
|
};
|
|
4824
4828
|
}
|
|
4825
|
-
function
|
|
4829
|
+
function Lo(e) {
|
|
4826
4830
|
let t, n, r;
|
|
4827
4831
|
function i(h, u) {
|
|
4828
4832
|
return (
|
|
4829
4833
|
/*isLoading*/
|
|
4830
|
-
h[2] ?
|
|
4834
|
+
h[2] ? Ro : Oo
|
|
4831
4835
|
);
|
|
4832
4836
|
}
|
|
4833
4837
|
let o = i(e), l = o(e), s = (
|
|
@@ -4836,31 +4840,31 @@ function Ro(e) {
|
|
|
4836
4840
|
);
|
|
4837
4841
|
return {
|
|
4838
4842
|
c() {
|
|
4839
|
-
t =
|
|
4843
|
+
t = k("div"), n = k("div"), l.c(), r = de(), s && s.c(), M(n, "class", "ShowBalance");
|
|
4840
4844
|
},
|
|
4841
4845
|
m(h, u) {
|
|
4842
|
-
ge(h, t, u),
|
|
4846
|
+
ge(h, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
|
|
4843
4847
|
},
|
|
4844
4848
|
p(h, u) {
|
|
4845
4849
|
o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4846
4850
|
h[4] ? s ? s.p(h, u) : (s = An(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4847
4851
|
},
|
|
4848
|
-
i:
|
|
4849
|
-
o:
|
|
4852
|
+
i: se,
|
|
4853
|
+
o: se,
|
|
4850
4854
|
d(h) {
|
|
4851
|
-
h &&
|
|
4855
|
+
h && fe(t), l.d(), s && s.d(), e[29](null);
|
|
4852
4856
|
}
|
|
4853
4857
|
};
|
|
4854
4858
|
}
|
|
4855
|
-
function
|
|
4859
|
+
function Mo(e, t, n) {
|
|
4856
4860
|
let r;
|
|
4857
|
-
sr(e,
|
|
4858
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl:
|
|
4859
|
-
const
|
|
4860
|
-
fetch(
|
|
4861
|
+
sr(e, _o, (a) => n(6, r = a));
|
|
4862
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: x = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: _ = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: P = "" } = t, C, D = !0, W = !1, J = !1, Y = !1, G, N = "", $ = [], U;
|
|
4863
|
+
const b = {}, xe = ["totalCashAmount", "totalRealAmount"], Ze = () => {
|
|
4864
|
+
fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => En(f, a[f]))).catch((a) => console.log(a));
|
|
4861
4865
|
};
|
|
4862
|
-
Object.keys(
|
|
4863
|
-
const
|
|
4866
|
+
Object.keys(_n).forEach((a) => En(a, _n[a]));
|
|
4867
|
+
const Be = (a) => {
|
|
4864
4868
|
switch (a) {
|
|
4865
4869
|
case "balance":
|
|
4866
4870
|
window.postMessage(
|
|
@@ -4869,10 +4873,10 @@ function Lo(e, t, n) {
|
|
|
4869
4873
|
status: "open"
|
|
4870
4874
|
},
|
|
4871
4875
|
window.location.href
|
|
4872
|
-
), n(4,
|
|
4876
|
+
), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
|
|
4873
4877
|
break;
|
|
4874
4878
|
case "closebalance":
|
|
4875
|
-
n(3,
|
|
4879
|
+
n(3, W = !1), window.postMessage(
|
|
4876
4880
|
{
|
|
4877
4881
|
type: "BalanceModalStatus",
|
|
4878
4882
|
status: "close"
|
|
@@ -4880,86 +4884,86 @@ function Lo(e, t, n) {
|
|
|
4880
4884
|
window.location.href
|
|
4881
4885
|
), setTimeout(
|
|
4882
4886
|
() => {
|
|
4883
|
-
n(4,
|
|
4887
|
+
n(4, Y = !1);
|
|
4884
4888
|
},
|
|
4885
4889
|
150
|
|
4886
4890
|
);
|
|
4887
4891
|
break;
|
|
4888
4892
|
}
|
|
4889
|
-
},
|
|
4890
|
-
if (
|
|
4891
|
-
return
|
|
4892
|
-
},
|
|
4893
|
-
separator:
|
|
4894
|
-
decimal:
|
|
4893
|
+
}, Re = () => {
|
|
4894
|
+
if (g.includes(s))
|
|
4895
|
+
return g;
|
|
4896
|
+
}, pe = (a) => g ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : _ && S ? ce(a, {
|
|
4897
|
+
separator: _,
|
|
4898
|
+
decimal: S,
|
|
4895
4899
|
symbol: "",
|
|
4896
|
-
precision: parseInt(
|
|
4897
|
-
}).format() :
|
|
4900
|
+
precision: parseInt(P || "2", 10)
|
|
4901
|
+
}).format() : ce(a, {
|
|
4898
4902
|
separator: ".",
|
|
4899
4903
|
decimal: ",",
|
|
4900
4904
|
symbol: "",
|
|
4901
|
-
precision: parseInt(
|
|
4902
|
-
}).format(),
|
|
4903
|
-
n(2,
|
|
4905
|
+
precision: parseInt(P || "2", 10)
|
|
4906
|
+
}).format(), Te = async () => {
|
|
4907
|
+
n(2, D = !0);
|
|
4904
4908
|
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4905
4909
|
try {
|
|
4906
|
-
const
|
|
4910
|
+
const f = await fetch(a, {
|
|
4907
4911
|
method: "GET",
|
|
4908
4912
|
headers: { "X-SessionID": o }
|
|
4909
|
-
}),
|
|
4910
|
-
if (
|
|
4911
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4913
|
+
}), p = await f.json();
|
|
4914
|
+
if (f.ok)
|
|
4915
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = p.items, n(5, N = $.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[N] }], b), n(
|
|
4912
4916
|
1,
|
|
4913
|
-
|
|
4917
|
+
b.Real = [
|
|
4914
4918
|
{
|
|
4915
|
-
amount:
|
|
4919
|
+
amount: $.find((c) => c.displayName === "Casino")?.balanceAmount
|
|
4916
4920
|
}
|
|
4917
4921
|
],
|
|
4918
|
-
|
|
4922
|
+
b
|
|
4919
4923
|
), n(
|
|
4920
4924
|
1,
|
|
4921
|
-
|
|
4925
|
+
b.Bonus = [
|
|
4922
4926
|
{
|
|
4923
|
-
amount:
|
|
4927
|
+
amount: $.find((c) => c.displayName === "UBS")?.balanceAmount
|
|
4924
4928
|
}
|
|
4925
4929
|
],
|
|
4926
|
-
|
|
4930
|
+
b
|
|
4927
4931
|
);
|
|
4928
4932
|
else
|
|
4929
4933
|
throw new Error("Failed to fetch balance data !");
|
|
4930
|
-
} catch (
|
|
4931
|
-
console.log("Balance error: ",
|
|
4934
|
+
} catch (f) {
|
|
4935
|
+
console.log("Balance error: ", f);
|
|
4932
4936
|
} finally {
|
|
4933
|
-
n(2,
|
|
4937
|
+
n(2, D = !1);
|
|
4934
4938
|
}
|
|
4935
|
-
},
|
|
4936
|
-
n(2,
|
|
4937
|
-
const a = new URL(`${l}/v2/player/${i}/balance`),
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
const
|
|
4941
|
-
if (n(5,
|
|
4942
|
-
|
|
4939
|
+
}, Ae = () => {
|
|
4940
|
+
n(2, D = !0);
|
|
4941
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4942
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
|
|
4943
|
+
c[T] || n(10, T = xe[0]);
|
|
4944
|
+
const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
|
|
4945
|
+
if (n(5, N = v.currency), J = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !J) {
|
|
4946
|
+
U = {
|
|
4943
4947
|
lastOrdinaryAfterAmount: 0,
|
|
4944
4948
|
showCreditLineAfterAmount: !1
|
|
4945
|
-
}, n(1,
|
|
4946
|
-
for (const
|
|
4947
|
-
switch (
|
|
4949
|
+
}, n(1, b.Total[0].amount = c[T][N], b);
|
|
4950
|
+
for (const y of c.items)
|
|
4951
|
+
switch (y.type) {
|
|
4948
4952
|
case "Bonus":
|
|
4949
|
-
|
|
4953
|
+
b.Bonus.length === 0 ? b.Bonus.push({ amount: y.amount }) : n(1, b.Bonus[0].amount += y.amount, b);
|
|
4950
4954
|
break;
|
|
4951
4955
|
case "Real":
|
|
4952
|
-
if (
|
|
4956
|
+
if (y.creditLine && b.Credit.length === 0 && b.Credit.push({ amount: y.creditLine }), T === "totalRealAmount")
|
|
4953
4957
|
continue;
|
|
4954
|
-
|
|
4958
|
+
b.Real.length === 0 ? b.Real.push({ amount: y.amount }) : n(1, b.Real[0].amount += y.amount, b);
|
|
4955
4959
|
break;
|
|
4956
4960
|
}
|
|
4957
|
-
for (const [
|
|
4958
|
-
|
|
4959
|
-
n(2,
|
|
4961
|
+
for (const [y, R] of Object.entries(b))
|
|
4962
|
+
R.length < 1 && delete b[y];
|
|
4963
|
+
n(2, D = !1);
|
|
4960
4964
|
return;
|
|
4961
4965
|
}
|
|
4962
|
-
|
|
4966
|
+
U = {
|
|
4963
4967
|
Casino: {
|
|
4964
4968
|
lastOrdinaryAfterAmount: 0,
|
|
4965
4969
|
showCreditLineAfterAmount: !1
|
|
@@ -4969,173 +4973,173 @@ function Lo(e, t, n) {
|
|
|
4969
4973
|
showCreditLineAfterAmount: !1
|
|
4970
4974
|
}
|
|
4971
4975
|
};
|
|
4972
|
-
let
|
|
4973
|
-
|
|
4974
|
-
for (const
|
|
4975
|
-
let
|
|
4976
|
-
switch (
|
|
4976
|
+
let E = c.items;
|
|
4977
|
+
B && B !== "All" && (E = c.items.filter((y) => y.productType === B));
|
|
4978
|
+
for (const y of E) {
|
|
4979
|
+
let R;
|
|
4980
|
+
switch (y.type) {
|
|
4977
4981
|
case "Bonus":
|
|
4978
|
-
|
|
4979
|
-
amount:
|
|
4980
|
-
productType:
|
|
4982
|
+
R = b.Bonus.findIndex((A) => A.productType === y.productType), R > 0 ? n(1, b.Bonus[R].amount += y.amount, b) : b.Bonus.push({
|
|
4983
|
+
amount: y.amount,
|
|
4984
|
+
productType: y.productType
|
|
4981
4985
|
});
|
|
4982
4986
|
break;
|
|
4983
4987
|
case "Real":
|
|
4984
|
-
|
|
4985
|
-
amount:
|
|
4986
|
-
productType:
|
|
4987
|
-
}),
|
|
4988
|
-
amount:
|
|
4989
|
-
productType:
|
|
4988
|
+
y.creditLine && b.Credit.push({
|
|
4989
|
+
amount: y.creditLine,
|
|
4990
|
+
productType: y.productType
|
|
4991
|
+
}), R = b.Real.findIndex((A) => A.productType === y.productType), R > 0 ? n(1, b.Real[R].amount += y.amount, b) : b.Real.push({
|
|
4992
|
+
amount: y.amount,
|
|
4993
|
+
productType: y.productType
|
|
4990
4994
|
});
|
|
4991
4995
|
break;
|
|
4992
4996
|
}
|
|
4993
4997
|
}
|
|
4994
4998
|
ot();
|
|
4995
|
-
for (const [
|
|
4996
|
-
|
|
4997
|
-
n(2,
|
|
4998
|
-
}).catch((
|
|
4999
|
-
throw n(2,
|
|
4999
|
+
for (const [y, R] of Object.entries(b))
|
|
5000
|
+
R.length < 1 && delete b[y];
|
|
5001
|
+
n(2, D = !1);
|
|
5002
|
+
}).catch((c) => {
|
|
5003
|
+
throw n(2, D = !1), console.log("Balance fetch error", c), new Error("Failed to fetch balance data!");
|
|
5000
5004
|
});
|
|
5001
|
-
},
|
|
5002
|
-
if (
|
|
5005
|
+
}, Ce = () => {
|
|
5006
|
+
if (G && G.close(), o.length < 1)
|
|
5003
5007
|
return;
|
|
5004
|
-
let a,
|
|
5005
|
-
switch (
|
|
5008
|
+
let a, f;
|
|
5009
|
+
switch (x) {
|
|
5006
5010
|
case "gm16":
|
|
5007
|
-
a = new URL(`${l}/v2/player/${i}/information/updates`),
|
|
5011
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => wt(v);
|
|
5008
5012
|
break;
|
|
5009
5013
|
case "gmcore":
|
|
5010
|
-
a = new URL(`${l}/v1/player/${i}/balance/updates`),
|
|
5014
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => qe(v);
|
|
5011
5015
|
break;
|
|
5012
5016
|
}
|
|
5013
|
-
const
|
|
5017
|
+
const p = {
|
|
5014
5018
|
accept: "text/event-stream",
|
|
5015
5019
|
"X-SessionId": o
|
|
5016
|
-
},
|
|
5017
|
-
|
|
5018
|
-
},
|
|
5019
|
-
let
|
|
5020
|
+
}, c = new Bo.EventSourcePolyfill(a, { headers: p });
|
|
5021
|
+
G = c, c.addEventListener("message", f);
|
|
5022
|
+
}, le = (a) => {
|
|
5023
|
+
let f;
|
|
5020
5024
|
try {
|
|
5021
|
-
|
|
5022
|
-
} catch (
|
|
5023
|
-
console.log("Balance stream failed: ",
|
|
5025
|
+
f = JSON.parse(a);
|
|
5026
|
+
} catch (p) {
|
|
5027
|
+
console.log("Balance stream failed: ", p);
|
|
5024
5028
|
return;
|
|
5025
5029
|
}
|
|
5026
|
-
return
|
|
5027
|
-
},
|
|
5028
|
-
const
|
|
5029
|
-
if (!
|
|
5030
|
-
|
|
5030
|
+
return f;
|
|
5031
|
+
}, qe = (a) => {
|
|
5032
|
+
const f = le(a.data);
|
|
5033
|
+
if (!f) {
|
|
5034
|
+
Ce();
|
|
5031
5035
|
return;
|
|
5032
5036
|
}
|
|
5033
|
-
let
|
|
5034
|
-
const
|
|
5035
|
-
|
|
5036
|
-
...
|
|
5037
|
-
balanceAmount:
|
|
5038
|
-
}),
|
|
5039
|
-
},
|
|
5040
|
-
let
|
|
5041
|
-
switch (
|
|
5037
|
+
let p = "0";
|
|
5038
|
+
const c = f.balanceChange;
|
|
5039
|
+
$ = $.map((v) => (c && c[v.id] && (v = {
|
|
5040
|
+
...v,
|
|
5041
|
+
balanceAmount: c[v.id].afterAmount
|
|
5042
|
+
}), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount: $[0]?.balanceAmount }], b), n(1, b.Bonus = [{ amount: $[1]?.balanceAmount }], b), n(1, b.Total = [{ amount: Number(p) }], b);
|
|
5043
|
+
}, Le = (a, f, p) => {
|
|
5044
|
+
let c = null;
|
|
5045
|
+
switch (p.walletAccountType) {
|
|
5042
5046
|
case "Ordinary":
|
|
5043
|
-
(
|
|
5047
|
+
(p.afterAmount !== p.affectedAmount || f.lastOrdinaryAfterAmount === 0) && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
|
|
5044
5048
|
break;
|
|
5045
5049
|
case "CreditLine":
|
|
5046
|
-
|
|
5050
|
+
p.afterAmount !== 0 ? (c = p.afterAmount, f.showCreditLineAfterAmount = !0) : (c = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
5047
5051
|
break;
|
|
5048
5052
|
default:
|
|
5049
|
-
|
|
5053
|
+
c = p.afterAmount;
|
|
5050
5054
|
}
|
|
5051
|
-
return
|
|
5055
|
+
return c === null ? a : c;
|
|
5052
5056
|
}, ot = () => {
|
|
5053
|
-
switch (
|
|
5057
|
+
switch (T) {
|
|
5054
5058
|
case "totalCashAmount":
|
|
5055
5059
|
let a = 0;
|
|
5056
|
-
for (const
|
|
5057
|
-
for (const
|
|
5058
|
-
a += Math.max(
|
|
5059
|
-
n(1,
|
|
5060
|
+
for (const p of ["Real", "Bonus"])
|
|
5061
|
+
for (const c of b[p])
|
|
5062
|
+
a += Math.max(c.amount, 0);
|
|
5063
|
+
n(1, b.Total[0].amount = a, b);
|
|
5060
5064
|
break;
|
|
5061
5065
|
case "totalRealAmount":
|
|
5062
|
-
if (!
|
|
5066
|
+
if (!J)
|
|
5063
5067
|
return;
|
|
5064
|
-
let
|
|
5065
|
-
for (const
|
|
5066
|
-
|
|
5067
|
-
n(1,
|
|
5068
|
+
let f = 0;
|
|
5069
|
+
for (const p of b.Real)
|
|
5070
|
+
f += p.amount;
|
|
5071
|
+
n(1, b.Total[0].amount = f, b);
|
|
5068
5072
|
}
|
|
5069
|
-
},
|
|
5070
|
-
const
|
|
5071
|
-
if (!
|
|
5072
|
-
|
|
5073
|
+
}, wt = (a) => {
|
|
5074
|
+
const f = le(a.data);
|
|
5075
|
+
if (!f) {
|
|
5076
|
+
Ce();
|
|
5073
5077
|
return;
|
|
5074
5078
|
}
|
|
5075
|
-
if (
|
|
5079
|
+
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5076
5080
|
return;
|
|
5077
|
-
const
|
|
5078
|
-
for (const [
|
|
5079
|
-
if (
|
|
5080
|
-
for (const
|
|
5081
|
-
if (!
|
|
5082
|
-
|
|
5081
|
+
const p = f.body.balanceChange;
|
|
5082
|
+
for (const [c, v] of Object.entries(p))
|
|
5083
|
+
if (T === "totalRealAmount" && c === "Real" && !J && n(1, b.Total[0].amount = Le(b.Total[0].amount, U, v), b), !!b[c])
|
|
5084
|
+
for (const E of b[c]) {
|
|
5085
|
+
if (!J) {
|
|
5086
|
+
E.amount = c === "Real" ? Le(E.amount, U, v) : v.afterAmount;
|
|
5083
5087
|
continue;
|
|
5084
5088
|
}
|
|
5085
|
-
|
|
5089
|
+
v.productType === E.productType && (E.amount = c === "Real" ? Le(E.amount, U[E.productType], v) : v.afterAmount);
|
|
5086
5090
|
}
|
|
5087
5091
|
ot();
|
|
5088
5092
|
}, at = () => {
|
|
5089
|
-
|
|
5090
|
-
},
|
|
5091
|
-
|
|
5092
|
-
},
|
|
5093
|
-
switch (xo(s),
|
|
5093
|
+
Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5094
|
+
}, St = () => {
|
|
5095
|
+
xe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${xe}. Using default value ('${xe[0]}').`), n(10, T = xe[0]));
|
|
5096
|
+
}, Qe = () => {
|
|
5097
|
+
switch (xo(s), St(), x) {
|
|
5094
5098
|
case "gmcore":
|
|
5095
|
-
|
|
5099
|
+
Te();
|
|
5096
5100
|
break;
|
|
5097
5101
|
case "gm16":
|
|
5098
|
-
|
|
5102
|
+
Ae();
|
|
5099
5103
|
break;
|
|
5100
5104
|
default:
|
|
5101
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5105
|
+
throw Error(`Invalid apiversion attribute: ${x}`);
|
|
5102
5106
|
}
|
|
5103
|
-
},
|
|
5107
|
+
}, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && G.close(), we = () => {
|
|
5104
5108
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5105
5109
|
};
|
|
5106
|
-
mr(() => (window.addEventListener("message",
|
|
5107
|
-
window.
|
|
5110
|
+
mr(() => (window.addEventListener("message", Me, !1), () => {
|
|
5111
|
+
window.removeEventListener("message", Me), G && G.close();
|
|
5108
5112
|
}));
|
|
5109
|
-
const
|
|
5110
|
-
function
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
+
const re = () => Be("balance"), At = () => Be("closebalance"), Ct = () => at(), Ht = () => Be("closeBalance");
|
|
5114
|
+
function st(a) {
|
|
5115
|
+
Ft[a ? "unshift" : "push"](() => {
|
|
5116
|
+
C = a, n(0, C);
|
|
5113
5117
|
});
|
|
5114
5118
|
}
|
|
5115
5119
|
return e.$$set = (a) => {
|
|
5116
|
-
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18,
|
|
5120
|
+
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, x = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, _ = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, P = a.currencyprecision);
|
|
5117
5121
|
}, e.$$.update = () => {
|
|
5118
5122
|
e.$$.dirty[0] & /*lang*/
|
|
5119
|
-
16384 && s &&
|
|
5120
|
-
3176448 && l && i && o && s &&
|
|
5121
|
-
1062912 && l && i && o &&
|
|
5122
|
-
262144 &&
|
|
5123
|
-
2 &&
|
|
5124
|
-
65537 && u &&
|
|
5125
|
-
131073 && d &&
|
|
5126
|
-
32769 && h &&
|
|
5123
|
+
16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5124
|
+
3176448 && l && i && o && s && x && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5125
|
+
1062912 && l && i && o && x && Ce(), e.$$.dirty[0] & /*translationurl*/
|
|
5126
|
+
262144 && m && Ze(), e.$$.dirty[0] & /*balances*/
|
|
5127
|
+
2 && b.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5128
|
+
65537 && u && C && Hr(C, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5129
|
+
131073 && d && C && Or(C, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5130
|
+
32769 && h && C && Rr(C, `${h}.Style`);
|
|
5127
5131
|
}, [
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5132
|
+
C,
|
|
5133
|
+
b,
|
|
5134
|
+
D,
|
|
5135
|
+
W,
|
|
5136
|
+
Y,
|
|
5137
|
+
N,
|
|
5134
5138
|
r,
|
|
5135
|
-
|
|
5136
|
-
|
|
5139
|
+
Be,
|
|
5140
|
+
pe,
|
|
5137
5141
|
at,
|
|
5138
|
-
|
|
5142
|
+
T,
|
|
5139
5143
|
i,
|
|
5140
5144
|
o,
|
|
5141
5145
|
l,
|
|
@@ -5143,27 +5147,27 @@ function Lo(e, t, n) {
|
|
|
5143
5147
|
h,
|
|
5144
5148
|
u,
|
|
5145
5149
|
d,
|
|
5150
|
+
m,
|
|
5146
5151
|
g,
|
|
5147
|
-
b,
|
|
5148
|
-
_,
|
|
5149
|
-
T,
|
|
5150
5152
|
x,
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5153
|
+
B,
|
|
5154
|
+
_,
|
|
5155
|
+
S,
|
|
5156
|
+
P,
|
|
5157
|
+
re,
|
|
5155
5158
|
At,
|
|
5156
|
-
|
|
5157
|
-
|
|
5159
|
+
Ct,
|
|
5160
|
+
Ht,
|
|
5161
|
+
st
|
|
5158
5162
|
];
|
|
5159
5163
|
}
|
|
5160
|
-
class
|
|
5164
|
+
class No extends Ar {
|
|
5161
5165
|
constructor(t) {
|
|
5162
5166
|
super(), wr(
|
|
5163
5167
|
this,
|
|
5164
5168
|
t,
|
|
5169
|
+
Mo,
|
|
5165
5170
|
Lo,
|
|
5166
|
-
Ro,
|
|
5167
5171
|
Hn,
|
|
5168
5172
|
{
|
|
5169
5173
|
userid: 11,
|
|
@@ -5182,7 +5186,7 @@ class Mo extends Ar {
|
|
|
5182
5186
|
currencydecimal: 23,
|
|
5183
5187
|
currencyprecision: 24
|
|
5184
5188
|
},
|
|
5185
|
-
|
|
5189
|
+
Ho,
|
|
5186
5190
|
[-1, -1]
|
|
5187
5191
|
);
|
|
5188
5192
|
}
|
|
@@ -5190,94 +5194,94 @@ class Mo extends Ar {
|
|
|
5190
5194
|
return this.$$.ctx[11];
|
|
5191
5195
|
}
|
|
5192
5196
|
set userid(t) {
|
|
5193
|
-
this.$$set({ userid: t }),
|
|
5197
|
+
this.$$set({ userid: t }), Q();
|
|
5194
5198
|
}
|
|
5195
5199
|
get session() {
|
|
5196
5200
|
return this.$$.ctx[12];
|
|
5197
5201
|
}
|
|
5198
5202
|
set session(t) {
|
|
5199
|
-
this.$$set({ session: t }),
|
|
5203
|
+
this.$$set({ session: t }), Q();
|
|
5200
5204
|
}
|
|
5201
5205
|
get endpoint() {
|
|
5202
5206
|
return this.$$.ctx[13];
|
|
5203
5207
|
}
|
|
5204
5208
|
set endpoint(t) {
|
|
5205
|
-
this.$$set({ endpoint: t }),
|
|
5209
|
+
this.$$set({ endpoint: t }), Q();
|
|
5206
5210
|
}
|
|
5207
5211
|
get lang() {
|
|
5208
5212
|
return this.$$.ctx[14];
|
|
5209
5213
|
}
|
|
5210
5214
|
set lang(t) {
|
|
5211
|
-
this.$$set({ lang: t }),
|
|
5215
|
+
this.$$set({ lang: t }), Q();
|
|
5212
5216
|
}
|
|
5213
5217
|
get mbsource() {
|
|
5214
5218
|
return this.$$.ctx[15];
|
|
5215
5219
|
}
|
|
5216
5220
|
set mbsource(t) {
|
|
5217
|
-
this.$$set({ mbsource: t }),
|
|
5221
|
+
this.$$set({ mbsource: t }), Q();
|
|
5218
5222
|
}
|
|
5219
5223
|
get clientstyling() {
|
|
5220
5224
|
return this.$$.ctx[16];
|
|
5221
5225
|
}
|
|
5222
5226
|
set clientstyling(t) {
|
|
5223
|
-
this.$$set({ clientstyling: t }),
|
|
5227
|
+
this.$$set({ clientstyling: t }), Q();
|
|
5224
5228
|
}
|
|
5225
5229
|
get clientstylingurl() {
|
|
5226
5230
|
return this.$$.ctx[17];
|
|
5227
5231
|
}
|
|
5228
5232
|
set clientstylingurl(t) {
|
|
5229
|
-
this.$$set({ clientstylingurl: t }),
|
|
5233
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
5230
5234
|
}
|
|
5231
5235
|
get translationurl() {
|
|
5232
5236
|
return this.$$.ctx[18];
|
|
5233
5237
|
}
|
|
5234
5238
|
set translationurl(t) {
|
|
5235
|
-
this.$$set({ translationurl: t }),
|
|
5239
|
+
this.$$set({ translationurl: t }), Q();
|
|
5236
5240
|
}
|
|
5237
5241
|
get customlocaleidentifier() {
|
|
5238
5242
|
return this.$$.ctx[19];
|
|
5239
5243
|
}
|
|
5240
5244
|
set customlocaleidentifier(t) {
|
|
5241
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5245
|
+
this.$$set({ customlocaleidentifier: t }), Q();
|
|
5242
5246
|
}
|
|
5243
5247
|
get gmversion() {
|
|
5244
5248
|
return this.$$.ctx[20];
|
|
5245
5249
|
}
|
|
5246
5250
|
set gmversion(t) {
|
|
5247
|
-
this.$$set({ gmversion: t }),
|
|
5251
|
+
this.$$set({ gmversion: t }), Q();
|
|
5248
5252
|
}
|
|
5249
5253
|
get displaybalanceoption() {
|
|
5250
5254
|
return this.$$.ctx[21];
|
|
5251
5255
|
}
|
|
5252
5256
|
set displaybalanceoption(t) {
|
|
5253
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5257
|
+
this.$$set({ displaybalanceoption: t }), Q();
|
|
5254
5258
|
}
|
|
5255
5259
|
get totalcalculationmode() {
|
|
5256
5260
|
return this.$$.ctx[10];
|
|
5257
5261
|
}
|
|
5258
5262
|
set totalcalculationmode(t) {
|
|
5259
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5263
|
+
this.$$set({ totalcalculationmode: t }), Q();
|
|
5260
5264
|
}
|
|
5261
5265
|
get currencyseparator() {
|
|
5262
5266
|
return this.$$.ctx[22];
|
|
5263
5267
|
}
|
|
5264
5268
|
set currencyseparator(t) {
|
|
5265
|
-
this.$$set({ currencyseparator: t }),
|
|
5269
|
+
this.$$set({ currencyseparator: t }), Q();
|
|
5266
5270
|
}
|
|
5267
5271
|
get currencydecimal() {
|
|
5268
5272
|
return this.$$.ctx[23];
|
|
5269
5273
|
}
|
|
5270
5274
|
set currencydecimal(t) {
|
|
5271
|
-
this.$$set({ currencydecimal: t }),
|
|
5275
|
+
this.$$set({ currencydecimal: t }), Q();
|
|
5272
5276
|
}
|
|
5273
5277
|
get currencyprecision() {
|
|
5274
5278
|
return this.$$.ctx[24];
|
|
5275
5279
|
}
|
|
5276
5280
|
set currencyprecision(t) {
|
|
5277
|
-
this.$$set({ currencyprecision: t }),
|
|
5281
|
+
this.$$set({ currencyprecision: t }), Q();
|
|
5278
5282
|
}
|
|
5279
5283
|
}
|
|
5280
|
-
Sr(
|
|
5284
|
+
Sr(No, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5281
5285
|
export {
|
|
5282
|
-
|
|
5286
|
+
No as P
|
|
5283
5287
|
};
|