@everymatrix/player-account-balance-modal-nd 1.64.0 → 1.64.2
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-CZuCnHrU.cjs → PlayerAccountBalanceModalNd-CDqK15WY.cjs} +6 -6
- package/components/{PlayerAccountBalanceModalNd-LMPBx15Q.js → PlayerAccountBalanceModalNd-XeaAOJqn.js} +244 -244
- package/components/{PlayerAccountBalanceModalNd-99HrUZhN.js → PlayerAccountBalanceModalNd-ccNoIRG0.js} +307 -307
- 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
|
@@ -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
|
|
@@ -67,7 +67,7 @@ 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) {
|
|
@@ -85,7 +85,7 @@ function hr() {
|
|
|
85
85
|
function mt(e, t, n, r) {
|
|
86
86
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function M(e, t, n) {
|
|
89
89
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
90
90
|
}
|
|
91
91
|
function fr(e) {
|
|
@@ -121,27 +121,27 @@ let Fe = [];
|
|
|
121
121
|
const an = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
122
122
|
let Gt = !1;
|
|
123
123
|
function br() {
|
|
124
|
-
Gt || (Gt = !0, gr.then(
|
|
124
|
+
Gt || (Gt = !0, gr.then(Q));
|
|
125
125
|
}
|
|
126
126
|
function $t(e) {
|
|
127
127
|
Fe.push(e);
|
|
128
128
|
}
|
|
129
129
|
const Lt = /* @__PURE__ */ new Set();
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
130
|
+
let Pe = 0;
|
|
131
|
+
function Q() {
|
|
132
|
+
if (Pe !== 0)
|
|
133
133
|
return;
|
|
134
134
|
const e = tt;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
|
-
for (;
|
|
138
|
-
const t = Ue[
|
|
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 Ue.length = 0,
|
|
142
|
+
throw Ue.length = 0, Pe = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (et(null), Ue.length = 0,
|
|
144
|
+
for (et(null), Ue.length = 0, Pe = 0; Ft.length; )
|
|
145
145
|
Ft.pop()();
|
|
146
146
|
for (let t = 0; t < Fe.length; t += 1) {
|
|
147
147
|
const n = Fe[t];
|
|
@@ -220,7 +220,7 @@ function wr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
|
220
220
|
u.fragment && u.fragment.l(m), m.forEach(fe);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor),
|
|
223
|
+
t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), Q();
|
|
224
224
|
}
|
|
225
225
|
et(h);
|
|
226
226
|
}
|
|
@@ -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
|
|
@@ -536,10 +536,10 @@ var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
536
536
|
function Nr(e) {
|
|
537
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var Ir = function(t) {
|
|
540
|
+
return Pr(t) && !Dr(t);
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Pr(e) {
|
|
543
543
|
return !!e && typeof e == "object";
|
|
544
544
|
}
|
|
545
545
|
function Dr(e) {
|
|
@@ -594,7 +594,7 @@ function zr(e, t, n) {
|
|
|
594
594
|
}), r;
|
|
595
595
|
}
|
|
596
596
|
function Ge(e, t, n) {
|
|
597
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || jr, n.isMergeableObject = n.isMergeableObject ||
|
|
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
599
|
return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : nt(t, n);
|
|
600
600
|
}
|
|
@@ -667,15 +667,15 @@ function Nn(e, t, n) {
|
|
|
667
667
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
668
668
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function In(e, t, n, r, i) {
|
|
671
671
|
return n.bind(t, e, r, i);
|
|
672
672
|
}
|
|
673
673
|
function Kr(e, t) {
|
|
674
674
|
var n = e.length === 1 ? Yr : Nn;
|
|
675
|
-
return
|
|
675
|
+
return In(e, this, n, t.cache.create(), t.serializer);
|
|
676
676
|
}
|
|
677
677
|
function ei(e, t) {
|
|
678
|
-
return
|
|
678
|
+
return In(e, this, Nn, t.cache.create(), t.serializer);
|
|
679
679
|
}
|
|
680
680
|
var ti = function() {
|
|
681
681
|
return JSON.stringify(arguments);
|
|
@@ -695,7 +695,7 @@ var ti = function() {
|
|
|
695
695
|
create: function() {
|
|
696
696
|
return new ni();
|
|
697
697
|
}
|
|
698
|
-
},
|
|
698
|
+
}, It = {
|
|
699
699
|
variadic: ei
|
|
700
700
|
}, bt = function() {
|
|
701
701
|
return bt = Object.assign || function(t) {
|
|
@@ -711,40 +711,40 @@ var O;
|
|
|
711
711
|
(function(e) {
|
|
712
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";
|
|
713
713
|
})(O || (O = {}));
|
|
714
|
-
var
|
|
714
|
+
var j;
|
|
715
715
|
(function(e) {
|
|
716
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";
|
|
717
|
-
})(
|
|
717
|
+
})(j || (j = {}));
|
|
718
718
|
var $e;
|
|
719
719
|
(function(e) {
|
|
720
720
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
721
721
|
})($e || ($e = {}));
|
|
722
722
|
function ln(e) {
|
|
723
|
-
return e.type ===
|
|
723
|
+
return e.type === j.literal;
|
|
724
724
|
}
|
|
725
725
|
function ii(e) {
|
|
726
|
-
return e.type ===
|
|
726
|
+
return e.type === j.argument;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
728
|
+
function Pn(e) {
|
|
729
|
+
return e.type === j.number;
|
|
730
730
|
}
|
|
731
731
|
function Dn(e) {
|
|
732
|
-
return e.type ===
|
|
732
|
+
return e.type === j.date;
|
|
733
733
|
}
|
|
734
734
|
function Un(e) {
|
|
735
|
-
return e.type ===
|
|
735
|
+
return e.type === j.time;
|
|
736
736
|
}
|
|
737
737
|
function Fn(e) {
|
|
738
|
-
return e.type ===
|
|
738
|
+
return e.type === j.select;
|
|
739
739
|
}
|
|
740
740
|
function Gn(e) {
|
|
741
|
-
return e.type ===
|
|
741
|
+
return e.type === j.plural;
|
|
742
742
|
}
|
|
743
743
|
function oi(e) {
|
|
744
|
-
return e.type ===
|
|
744
|
+
return e.type === j.pound;
|
|
745
745
|
}
|
|
746
746
|
function $n(e) {
|
|
747
|
-
return e.type ===
|
|
747
|
+
return e.type === j.tag;
|
|
748
748
|
}
|
|
749
749
|
function jn(e) {
|
|
750
750
|
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
@@ -2518,8 +2518,8 @@ function mi(e) {
|
|
|
2518
2518
|
var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
|
|
2519
2519
|
return i[0];
|
|
2520
2520
|
}
|
|
2521
|
-
var
|
|
2522
|
-
function
|
|
2521
|
+
var Pt, gi = new RegExp("^".concat(kn.source, "*")), bi = new RegExp("".concat(kn.source, "*$"));
|
|
2522
|
+
function L(e, t) {
|
|
2523
2523
|
return { start: e, end: t };
|
|
2524
2524
|
}
|
|
2525
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) {
|
|
@@ -2527,7 +2527,7 @@ var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String
|
|
|
2527
2527
|
}, Vt = !0;
|
|
2528
2528
|
try {
|
|
2529
2529
|
var Si = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2530
|
-
Vt = ((
|
|
2530
|
+
Vt = ((Pt = Si.exec("a")) === null || Pt === void 0 ? void 0 : Pt[0]) === "a";
|
|
2531
2531
|
} catch {
|
|
2532
2532
|
Vt = !1;
|
|
2533
2533
|
}
|
|
@@ -2646,13 +2646,13 @@ var Hi = (
|
|
|
2646
2646
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2647
2647
|
var s = this.clonePosition();
|
|
2648
2648
|
this.bump(), i.push({
|
|
2649
|
-
type:
|
|
2650
|
-
location:
|
|
2649
|
+
type: j.pound,
|
|
2650
|
+
location: L(s, this.clonePosition())
|
|
2651
2651
|
});
|
|
2652
2652
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2653
2653
|
if (r)
|
|
2654
2654
|
break;
|
|
2655
|
-
return this.error(O.UNMATCHED_CLOSING_TAG,
|
|
2655
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2656
2656
|
} else if (o === 60 && !this.ignoreTag && Wt(this.peek() || 0)) {
|
|
2657
2657
|
var l = this.parseTag(t, n);
|
|
2658
2658
|
if (l.err)
|
|
@@ -2674,9 +2674,9 @@ var Hi = (
|
|
|
2674
2674
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2675
2675
|
return {
|
|
2676
2676
|
val: {
|
|
2677
|
-
type:
|
|
2677
|
+
type: j.literal,
|
|
2678
2678
|
value: "<".concat(i, "/>"),
|
|
2679
|
-
location:
|
|
2679
|
+
location: L(r, this.clonePosition())
|
|
2680
2680
|
},
|
|
2681
2681
|
err: null
|
|
2682
2682
|
};
|
|
@@ -2687,21 +2687,21 @@ var Hi = (
|
|
|
2687
2687
|
var l = o.val, s = this.clonePosition();
|
|
2688
2688
|
if (this.bumpIf("</")) {
|
|
2689
2689
|
if (this.isEOF() || !Wt(this.char()))
|
|
2690
|
-
return this.error(O.INVALID_TAG,
|
|
2690
|
+
return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
|
|
2691
2691
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2692
|
-
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG,
|
|
2692
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, L(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2693
2693
|
val: {
|
|
2694
|
-
type:
|
|
2694
|
+
type: j.tag,
|
|
2695
2695
|
value: i,
|
|
2696
2696
|
children: l,
|
|
2697
|
-
location:
|
|
2697
|
+
location: L(r, this.clonePosition())
|
|
2698
2698
|
},
|
|
2699
2699
|
err: null
|
|
2700
|
-
} : this.error(O.INVALID_TAG,
|
|
2700
|
+
} : this.error(O.INVALID_TAG, L(s, this.clonePosition())));
|
|
2701
2701
|
} else
|
|
2702
|
-
return this.error(O.UNCLOSED_TAG,
|
|
2702
|
+
return this.error(O.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2703
2703
|
} else
|
|
2704
|
-
return this.error(O.INVALID_TAG,
|
|
2704
|
+
return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
|
|
2705
2705
|
}, e.prototype.parseTagName = function() {
|
|
2706
2706
|
var t = this.offset();
|
|
2707
2707
|
for (this.bump(); !this.isEOF() && Ri(this.char()); )
|
|
@@ -2726,9 +2726,9 @@ var Hi = (
|
|
|
2726
2726
|
}
|
|
2727
2727
|
break;
|
|
2728
2728
|
}
|
|
2729
|
-
var h =
|
|
2729
|
+
var h = L(r, this.clonePosition());
|
|
2730
2730
|
return {
|
|
2731
|
-
val: { type:
|
|
2731
|
+
val: { type: j.literal, value: i, location: h },
|
|
2732
2732
|
err: null
|
|
2733
2733
|
};
|
|
2734
2734
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2776,40 +2776,40 @@ var Hi = (
|
|
|
2776
2776
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2777
2777
|
var r = this.clonePosition();
|
|
2778
2778
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2779
|
-
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2779
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2780
2780
|
if (this.char() === 125)
|
|
2781
|
-
return this.bump(), this.error(O.EMPTY_ARGUMENT,
|
|
2781
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2782
2782
|
var i = this.parseIdentifierIfPossible().value;
|
|
2783
2783
|
if (!i)
|
|
2784
|
-
return this.error(O.MALFORMED_ARGUMENT,
|
|
2784
|
+
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2785
2785
|
if (this.bumpSpace(), this.isEOF())
|
|
2786
|
-
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2786
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2787
2787
|
switch (this.char()) {
|
|
2788
2788
|
case 125:
|
|
2789
2789
|
return this.bump(), {
|
|
2790
2790
|
val: {
|
|
2791
|
-
type:
|
|
2791
|
+
type: j.argument,
|
|
2792
2792
|
// value does not include the opening and closing braces.
|
|
2793
2793
|
value: i,
|
|
2794
|
-
location:
|
|
2794
|
+
location: L(r, this.clonePosition())
|
|
2795
2795
|
},
|
|
2796
2796
|
err: null
|
|
2797
2797
|
};
|
|
2798
2798
|
case 44:
|
|
2799
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
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);
|
|
2800
2800
|
default:
|
|
2801
|
-
return this.error(O.MALFORMED_ARGUMENT,
|
|
2801
|
+
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2802
2802
|
}
|
|
2803
2803
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2804
2804
|
var t = this.clonePosition(), n = this.offset(), r = zt(this.message, n), i = n + r.length;
|
|
2805
2805
|
this.bumpTo(i);
|
|
2806
|
-
var o = this.clonePosition(), l =
|
|
2806
|
+
var o = this.clonePosition(), l = L(t, o);
|
|
2807
2807
|
return { value: r, location: l };
|
|
2808
2808
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2809
2809
|
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2810
2810
|
switch (s) {
|
|
2811
2811
|
case "":
|
|
2812
|
-
return this.error(O.EXPECT_ARGUMENT_TYPE,
|
|
2812
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, L(l, h));
|
|
2813
2813
|
case "number":
|
|
2814
2814
|
case "date":
|
|
2815
2815
|
case "time": {
|
|
@@ -2822,20 +2822,20 @@ var Hi = (
|
|
|
2822
2822
|
return m;
|
|
2823
2823
|
var g = Ci(m.val);
|
|
2824
2824
|
if (g.length === 0)
|
|
2825
|
-
return this.error(O.EXPECT_ARGUMENT_STYLE,
|
|
2826
|
-
var x =
|
|
2825
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2826
|
+
var x = L(d, this.clonePosition());
|
|
2827
2827
|
u = { style: g, styleLocation: x };
|
|
2828
2828
|
}
|
|
2829
2829
|
var B = this.tryParseArgumentClose(i);
|
|
2830
2830
|
if (B.err)
|
|
2831
2831
|
return B;
|
|
2832
|
-
var T =
|
|
2832
|
+
var T = L(i, this.clonePosition());
|
|
2833
2833
|
if (u && fn(u?.style, "::", 0)) {
|
|
2834
2834
|
var _ = Ai(u.style.slice(2));
|
|
2835
2835
|
if (s === "number") {
|
|
2836
2836
|
var m = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
2837
2837
|
return m.err ? m : {
|
|
2838
|
-
val: { type:
|
|
2838
|
+
val: { type: j.number, value: r, location: T, style: m.val },
|
|
2839
2839
|
err: null
|
|
2840
2840
|
};
|
|
2841
2841
|
} else {
|
|
@@ -2848,16 +2848,16 @@ var Hi = (
|
|
|
2848
2848
|
pattern: S,
|
|
2849
2849
|
location: u.styleLocation,
|
|
2850
2850
|
parsedOptions: this.shouldParseSkeletons ? si(S) : {}
|
|
2851
|
-
},
|
|
2851
|
+
}, P = s === "date" ? j.date : j.time;
|
|
2852
2852
|
return {
|
|
2853
|
-
val: { type:
|
|
2853
|
+
val: { type: P, value: r, location: T, style: g },
|
|
2854
2854
|
err: null
|
|
2855
2855
|
};
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
2858
|
return {
|
|
2859
2859
|
val: {
|
|
2860
|
-
type: s === "number" ?
|
|
2860
|
+
type: s === "number" ? j.number : s === "date" ? j.date : j.time,
|
|
2861
2861
|
value: r,
|
|
2862
2862
|
location: T,
|
|
2863
2863
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2868,40 +2868,40 @@ var Hi = (
|
|
|
2868
2868
|
case "plural":
|
|
2869
2869
|
case "selectordinal":
|
|
2870
2870
|
case "select": {
|
|
2871
|
-
var
|
|
2871
|
+
var C = this.clonePosition();
|
|
2872
2872
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2873
|
-
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2873
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C, bt({}, C)));
|
|
2874
2874
|
this.bumpSpace();
|
|
2875
2875
|
var D = this.parseIdentifierIfPossible(), W = 0;
|
|
2876
2876
|
if (s !== "select" && D.value === "offset") {
|
|
2877
2877
|
if (!this.bumpIf(":"))
|
|
2878
|
-
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2878
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2879
2879
|
this.bumpSpace();
|
|
2880
2880
|
var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2881
2881
|
if (m.err)
|
|
2882
2882
|
return m;
|
|
2883
2883
|
this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = m.val;
|
|
2884
2884
|
}
|
|
2885
|
-
var
|
|
2886
|
-
if (
|
|
2887
|
-
return
|
|
2885
|
+
var J = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2886
|
+
if (J.err)
|
|
2887
|
+
return J;
|
|
2888
2888
|
var B = this.tryParseArgumentClose(i);
|
|
2889
2889
|
if (B.err)
|
|
2890
2890
|
return B;
|
|
2891
|
-
var Y =
|
|
2891
|
+
var Y = L(i, this.clonePosition());
|
|
2892
2892
|
return s === "select" ? {
|
|
2893
2893
|
val: {
|
|
2894
|
-
type:
|
|
2894
|
+
type: j.select,
|
|
2895
2895
|
value: r,
|
|
2896
|
-
options: dn(
|
|
2896
|
+
options: dn(J.val),
|
|
2897
2897
|
location: Y
|
|
2898
2898
|
},
|
|
2899
2899
|
err: null
|
|
2900
2900
|
} : {
|
|
2901
2901
|
val: {
|
|
2902
|
-
type:
|
|
2902
|
+
type: j.plural,
|
|
2903
2903
|
value: r,
|
|
2904
|
-
options: dn(
|
|
2904
|
+
options: dn(J.val),
|
|
2905
2905
|
offset: W,
|
|
2906
2906
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2907
2907
|
location: Y
|
|
@@ -2910,10 +2910,10 @@ var Hi = (
|
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
2912
|
default:
|
|
2913
|
-
return this.error(O.INVALID_ARGUMENT_TYPE,
|
|
2913
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, L(l, h));
|
|
2914
2914
|
}
|
|
2915
2915
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2916
|
-
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2916
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2917
2917
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2918
2918
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2919
2919
|
var r = this.char();
|
|
@@ -2922,7 +2922,7 @@ var Hi = (
|
|
|
2922
2922
|
this.bump();
|
|
2923
2923
|
var i = this.clonePosition();
|
|
2924
2924
|
if (!this.bumpUntil("'"))
|
|
2925
|
-
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2925
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2926
2926
|
this.bump();
|
|
2927
2927
|
break;
|
|
2928
2928
|
}
|
|
@@ -2973,7 +2973,7 @@ var Hi = (
|
|
|
2973
2973
|
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2974
2974
|
if (g.err)
|
|
2975
2975
|
return g;
|
|
2976
|
-
d =
|
|
2976
|
+
d = L(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
2977
2977
|
} else
|
|
2978
2978
|
break;
|
|
2979
2979
|
}
|
|
@@ -2982,7 +2982,7 @@ var Hi = (
|
|
|
2982
2982
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2983
2983
|
var x = this.clonePosition();
|
|
2984
2984
|
if (!this.bumpIf("{"))
|
|
2985
|
-
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2985
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
2986
2986
|
var B = this.parseMessage(t + 1, n, r);
|
|
2987
2987
|
if (B.err)
|
|
2988
2988
|
return B;
|
|
@@ -2993,11 +2993,11 @@ var Hi = (
|
|
|
2993
2993
|
u,
|
|
2994
2994
|
{
|
|
2995
2995
|
value: B.val,
|
|
2996
|
-
location:
|
|
2996
|
+
location: L(x, this.clonePosition())
|
|
2997
2997
|
}
|
|
2998
2998
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
2999
2999
|
}
|
|
3000
|
-
return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
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 };
|
|
3001
3001
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3002
3002
|
var r = 1, i = this.clonePosition();
|
|
3003
3003
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3008,7 +3008,7 @@ var Hi = (
|
|
|
3008
3008
|
else
|
|
3009
3009
|
break;
|
|
3010
3010
|
}
|
|
3011
|
-
var h =
|
|
3011
|
+
var h = L(i, this.clonePosition());
|
|
3012
3012
|
return o ? (l *= r, wi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
|
|
3013
3013
|
}, e.prototype.offset = function() {
|
|
3014
3014
|
return this.position.offset;
|
|
@@ -3096,7 +3096,7 @@ function Zt(e) {
|
|
|
3096
3096
|
for (var n in t.options)
|
|
3097
3097
|
delete t.options[n].location, Zt(t.options[n].value);
|
|
3098
3098
|
else
|
|
3099
|
-
|
|
3099
|
+
Pn(t) && jn(t.style) || (Dn(t) || Un(t)) && kt(t.style) ? delete t.style.location : $n(t) && Zt(t.children);
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
3102
|
function Mi(e, t) {
|
|
@@ -3142,7 +3142,7 @@ var xt = (
|
|
|
3142
3142
|
}
|
|
3143
3143
|
return t;
|
|
3144
3144
|
}(xt)
|
|
3145
|
-
),
|
|
3145
|
+
), Ii = (
|
|
3146
3146
|
/** @class */
|
|
3147
3147
|
function(e) {
|
|
3148
3148
|
_t(t, e);
|
|
@@ -3155,7 +3155,7 @@ var xt = (
|
|
|
3155
3155
|
(function(e) {
|
|
3156
3156
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3157
3157
|
})(ne || (ne = {}));
|
|
3158
|
-
function
|
|
3158
|
+
function Pi(e) {
|
|
3159
3159
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3160
3160
|
var r = t[t.length - 1];
|
|
3161
3161
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
@@ -3190,7 +3190,7 @@ function ft(e, t, n, r, i, o, l) {
|
|
|
3190
3190
|
}
|
|
3191
3191
|
var m = d.value;
|
|
3192
3192
|
if (!(i && m in i))
|
|
3193
|
-
throw new
|
|
3193
|
+
throw new Ii(m, l);
|
|
3194
3194
|
var g = i[m];
|
|
3195
3195
|
if (ii(d)) {
|
|
3196
3196
|
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
|
|
@@ -3215,7 +3215,7 @@ function ft(e, t, n, r, i, o, l) {
|
|
|
3215
3215
|
});
|
|
3216
3216
|
continue;
|
|
3217
3217
|
}
|
|
3218
|
-
if (
|
|
3218
|
+
if (Pn(d)) {
|
|
3219
3219
|
var x = typeof d.style == "string" ? r.number[d.style] : jn(d.style) ? d.style.parsedOptions : void 0;
|
|
3220
3220
|
x && x.scale && (g = g * (x.scale || 1)), s.push({
|
|
3221
3221
|
type: ne.literal,
|
|
@@ -3227,10 +3227,10 @@ function ft(e, t, n, r, i, o, l) {
|
|
|
3227
3227
|
var B = d.children, T = d.value, _ = i[T];
|
|
3228
3228
|
if (!Di(_))
|
|
3229
3229
|
throw new Ni(T, "function", l);
|
|
3230
|
-
var S = ft(B, t, n, r, i, o),
|
|
3230
|
+
var S = ft(B, t, n, r, i, o), P = _(S.map(function(W) {
|
|
3231
3231
|
return W.value;
|
|
3232
3232
|
}));
|
|
3233
|
-
Array.isArray(
|
|
3233
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(W) {
|
|
3234
3234
|
return {
|
|
3235
3235
|
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3236
3236
|
value: W
|
|
@@ -3238,29 +3238,29 @@ function ft(e, t, n, r, i, o, l) {
|
|
|
3238
3238
|
}));
|
|
3239
3239
|
}
|
|
3240
3240
|
if (Fn(d)) {
|
|
3241
|
-
var
|
|
3242
|
-
if (!
|
|
3241
|
+
var C = d.options[g] || d.options.other;
|
|
3242
|
+
if (!C)
|
|
3243
3243
|
throw new mn(d.value, g, Object.keys(d.options), l);
|
|
3244
|
-
s.push.apply(s, ft(
|
|
3244
|
+
s.push.apply(s, ft(C.value, t, n, r, i));
|
|
3245
3245
|
continue;
|
|
3246
3246
|
}
|
|
3247
3247
|
if (Gn(d)) {
|
|
3248
|
-
var
|
|
3249
|
-
if (!
|
|
3248
|
+
var C = d.options["=".concat(g)];
|
|
3249
|
+
if (!C) {
|
|
3250
3250
|
if (!Intl.PluralRules)
|
|
3251
3251
|
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3252
3252
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3253
3253
|
`, je.MISSING_INTL_API, l);
|
|
3254
3254
|
var D = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
|
|
3255
|
-
|
|
3255
|
+
C = d.options[D] || d.options.other;
|
|
3256
3256
|
}
|
|
3257
|
-
if (!
|
|
3257
|
+
if (!C)
|
|
3258
3258
|
throw new mn(d.value, g, Object.keys(d.options), l);
|
|
3259
|
-
s.push.apply(s, ft(
|
|
3259
|
+
s.push.apply(s, ft(C.value, t, n, r, i, g - (d.offset || 0)));
|
|
3260
3260
|
continue;
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
|
-
return
|
|
3263
|
+
return Pi(s);
|
|
3264
3264
|
}
|
|
3265
3265
|
function Ui(e, t) {
|
|
3266
3266
|
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
@@ -3298,7 +3298,7 @@ function Gi(e) {
|
|
|
3298
3298
|
return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3299
3299
|
}, {
|
|
3300
3300
|
cache: Dt(e.number),
|
|
3301
|
-
strategy:
|
|
3301
|
+
strategy: It.variadic
|
|
3302
3302
|
}),
|
|
3303
3303
|
getDateTimeFormat: Nt(function() {
|
|
3304
3304
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
@@ -3306,7 +3306,7 @@ function Gi(e) {
|
|
|
3306
3306
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3307
3307
|
}, {
|
|
3308
3308
|
cache: Dt(e.dateTime),
|
|
3309
|
-
strategy:
|
|
3309
|
+
strategy: It.variadic
|
|
3310
3310
|
}),
|
|
3311
3311
|
getPluralRules: Nt(function() {
|
|
3312
3312
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
@@ -3314,7 +3314,7 @@ function Gi(e) {
|
|
|
3314
3314
|
return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3315
3315
|
}, {
|
|
3316
3316
|
cache: Dt(e.pluralRules),
|
|
3317
|
-
strategy:
|
|
3317
|
+
strategy: It.variadic
|
|
3318
3318
|
})
|
|
3319
3319
|
};
|
|
3320
3320
|
}
|
|
@@ -3985,31 +3985,31 @@ var Jt = { exports: {} };
|
|
|
3985
3985
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3986
3986
|
}
|
|
3987
3987
|
S.prototype.decode = function(a) {
|
|
3988
|
-
function f(
|
|
3988
|
+
function f(I, F, w) {
|
|
3989
3989
|
if (w === 1)
|
|
3990
|
-
return
|
|
3990
|
+
return I >= 128 >> F && I << F <= 2047;
|
|
3991
3991
|
if (w === 2)
|
|
3992
|
-
return
|
|
3992
|
+
return I >= 2048 >> F && I << F <= 55295 || I >= 57344 >> F && I << F <= 65535;
|
|
3993
3993
|
if (w === 3)
|
|
3994
|
-
return
|
|
3994
|
+
return I >= 65536 >> F && I << F <= 1114111;
|
|
3995
3995
|
throw new Error();
|
|
3996
3996
|
}
|
|
3997
|
-
function p(
|
|
3998
|
-
if (
|
|
3997
|
+
function p(I, F) {
|
|
3998
|
+
if (I === 6 * 1)
|
|
3999
3999
|
return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
|
|
4000
|
-
if (
|
|
4000
|
+
if (I === 6 * 2)
|
|
4001
4001
|
return F > 15 ? 3 : 2;
|
|
4002
|
-
if (
|
|
4002
|
+
if (I === 6 * 3)
|
|
4003
4003
|
return 3;
|
|
4004
4004
|
throw new Error();
|
|
4005
4005
|
}
|
|
4006
|
-
for (var c = 65533, v = "", E = this.bitsNeeded, y = this.codePoint,
|
|
4007
|
-
var A = a[
|
|
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
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))));
|
|
4009
4009
|
}
|
|
4010
4010
|
return this.bitsNeeded = E, this.codePoint = y, v;
|
|
4011
4011
|
};
|
|
4012
|
-
var
|
|
4012
|
+
var P = function() {
|
|
4013
4013
|
try {
|
|
4014
4014
|
return new x().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4015
4015
|
} catch (a) {
|
|
@@ -4017,32 +4017,32 @@ var Jt = { exports: {} };
|
|
|
4017
4017
|
}
|
|
4018
4018
|
return !1;
|
|
4019
4019
|
};
|
|
4020
|
-
(x == null || B == null || !
|
|
4021
|
-
var
|
|
4020
|
+
(x == null || B == null || !P()) && (x = S);
|
|
4021
|
+
var C = function() {
|
|
4022
4022
|
};
|
|
4023
4023
|
function D(a) {
|
|
4024
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
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;
|
|
4025
4025
|
}
|
|
4026
4026
|
D.prototype.open = function(a, f) {
|
|
4027
4027
|
this._abort(!0);
|
|
4028
4028
|
var p = this, c = this._xhr, v = 1, E = 0;
|
|
4029
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 =
|
|
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;
|
|
4031
4031
|
};
|
|
4032
4032
|
var y = function() {
|
|
4033
4033
|
if (v === 1) {
|
|
4034
|
-
var w = 0,
|
|
4034
|
+
var w = 0, V = "", be = void 0;
|
|
4035
4035
|
if ("contentType" in c)
|
|
4036
|
-
w = 200,
|
|
4036
|
+
w = 200, V = "OK", be = c.contentType;
|
|
4037
4037
|
else
|
|
4038
4038
|
try {
|
|
4039
|
-
w = c.status,
|
|
4039
|
+
w = c.status, V = c.statusText, be = c.getResponseHeader("Content-Type");
|
|
4040
4040
|
} catch {
|
|
4041
|
-
w = 0,
|
|
4041
|
+
w = 0, V = "", be = void 0;
|
|
4042
4042
|
}
|
|
4043
|
-
w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText =
|
|
4043
|
+
w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = be, p.onreadystatechange());
|
|
4044
4044
|
}
|
|
4045
|
-
},
|
|
4045
|
+
}, R = function() {
|
|
4046
4046
|
if (y(), v === 2 || v === 3) {
|
|
4047
4047
|
v = 3;
|
|
4048
4048
|
var w = "";
|
|
@@ -4052,26 +4052,26 @@ var Jt = { exports: {} };
|
|
|
4052
4052
|
}
|
|
4053
4053
|
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4054
4054
|
}
|
|
4055
|
-
}, A = function(w,
|
|
4056
|
-
if ((
|
|
4057
|
-
preventDefault:
|
|
4058
|
-
}),
|
|
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
4059
|
if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
|
|
4060
|
-
p.onload(
|
|
4060
|
+
p.onload(V);
|
|
4061
4061
|
else if (w === "error")
|
|
4062
|
-
p.onerror(
|
|
4062
|
+
p.onerror(V);
|
|
4063
4063
|
else if (w === "abort")
|
|
4064
|
-
p.onabort(
|
|
4064
|
+
p.onabort(V);
|
|
4065
4065
|
else
|
|
4066
4066
|
throw new TypeError();
|
|
4067
4067
|
p.onreadystatechange();
|
|
4068
4068
|
}
|
|
4069
|
-
},
|
|
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 ||
|
|
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());
|
|
4071
4071
|
}, F = function() {
|
|
4072
4072
|
E = r(function() {
|
|
4073
4073
|
F();
|
|
4074
|
-
}, 500), c.readyState === 3 &&
|
|
4074
|
+
}, 500), c.readyState === 3 && R();
|
|
4075
4075
|
};
|
|
4076
4076
|
"onload" in c && (c.onload = function(w) {
|
|
4077
4077
|
A("load", w);
|
|
@@ -4079,8 +4079,8 @@ var Jt = { exports: {} };
|
|
|
4079
4079
|
A("error", w);
|
|
4080
4080
|
}), "onabort" in c && (c.onabort = function(w) {
|
|
4081
4081
|
A("abort", w);
|
|
4082
|
-
}), "onprogress" in c && (c.onprogress =
|
|
4083
|
-
|
|
4082
|
+
}), "onprogress" in c && (c.onprogress = R), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
|
|
4083
|
+
I(w);
|
|
4084
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() {
|
|
4085
4085
|
F();
|
|
4086
4086
|
}, 0));
|
|
@@ -4114,35 +4114,35 @@ var Jt = { exports: {} };
|
|
|
4114
4114
|
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4115
4115
|
});
|
|
4116
4116
|
}
|
|
4117
|
-
function
|
|
4117
|
+
function J(a) {
|
|
4118
4118
|
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4119
4119
|
`), c = 0; c < p.length; c += 1) {
|
|
4120
|
-
var v = p[c], E = v.split(": "), y = E.shift(),
|
|
4121
|
-
f[W(y)] =
|
|
4120
|
+
var v = p[c], E = v.split(": "), y = E.shift(), R = E.join(": ");
|
|
4121
|
+
f[W(y)] = R;
|
|
4122
4122
|
}
|
|
4123
4123
|
this._map = f;
|
|
4124
4124
|
}
|
|
4125
|
-
|
|
4125
|
+
J.prototype.get = function(a) {
|
|
4126
4126
|
return this._map[W(a)];
|
|
4127
4127
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4128
4128
|
function Y() {
|
|
4129
4129
|
}
|
|
4130
4130
|
Y.prototype.open = function(a, f, p, c, v, E, y) {
|
|
4131
4131
|
a.open("GET", v);
|
|
4132
|
-
var
|
|
4132
|
+
var R = 0;
|
|
4133
4133
|
a.onprogress = function() {
|
|
4134
|
-
var
|
|
4135
|
-
|
|
4136
|
-
}, a.onerror = function(
|
|
4137
|
-
|
|
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
4138
|
}, a.onload = function() {
|
|
4139
4139
|
c(null);
|
|
4140
4140
|
}, a.onabort = function() {
|
|
4141
4141
|
c(null);
|
|
4142
4142
|
}, a.onreadystatechange = function() {
|
|
4143
4143
|
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4144
|
-
var
|
|
4145
|
-
f(
|
|
4144
|
+
var I = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4145
|
+
f(I, F, w, new J(V));
|
|
4146
4146
|
}
|
|
4147
4147
|
}, a.withCredentials = E;
|
|
4148
4148
|
for (var A in y)
|
|
@@ -4155,21 +4155,21 @@ var Jt = { exports: {} };
|
|
|
4155
4155
|
G.prototype.get = function(a) {
|
|
4156
4156
|
return this._headers.get(a);
|
|
4157
4157
|
};
|
|
4158
|
-
function
|
|
4158
|
+
function N() {
|
|
4159
4159
|
}
|
|
4160
|
-
|
|
4161
|
-
var
|
|
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
4162
|
return m(v, {
|
|
4163
4163
|
headers: y,
|
|
4164
4164
|
credentials: E ? "include" : "same-origin",
|
|
4165
|
-
signal:
|
|
4165
|
+
signal: I,
|
|
4166
4166
|
cache: "no-store"
|
|
4167
4167
|
}).then(function(w) {
|
|
4168
|
-
return
|
|
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
4169
|
var Je = function() {
|
|
4170
|
-
|
|
4170
|
+
R.read().then(function(ie) {
|
|
4171
4171
|
if (ie.done)
|
|
4172
|
-
|
|
4172
|
+
V(void 0);
|
|
4173
4173
|
else {
|
|
4174
4174
|
var K = F.decode(ie.value, { stream: !0 });
|
|
4175
4175
|
p(K), Je();
|
|
@@ -4187,11 +4187,11 @@ var Jt = { exports: {} };
|
|
|
4187
4187
|
c(w);
|
|
4188
4188
|
}), {
|
|
4189
4189
|
abort: function() {
|
|
4190
|
-
|
|
4190
|
+
R?.cancel(), A.abort();
|
|
4191
4191
|
}
|
|
4192
4192
|
};
|
|
4193
4193
|
};
|
|
4194
|
-
function
|
|
4194
|
+
function $() {
|
|
4195
4195
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4196
4196
|
}
|
|
4197
4197
|
function U(a) {
|
|
@@ -4199,7 +4199,7 @@ var Jt = { exports: {} };
|
|
|
4199
4199
|
throw a;
|
|
4200
4200
|
}, 0);
|
|
4201
4201
|
}
|
|
4202
|
-
|
|
4202
|
+
$.prototype.dispatchEvent = function(a) {
|
|
4203
4203
|
a.target = this;
|
|
4204
4204
|
var f = this._listeners[a.type];
|
|
4205
4205
|
if (f != null)
|
|
@@ -4211,14 +4211,14 @@ var Jt = { exports: {} };
|
|
|
4211
4211
|
U(E);
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
},
|
|
4214
|
+
}, $.prototype.addEventListener = function(a, f) {
|
|
4215
4215
|
a = String(a);
|
|
4216
4216
|
var p = this._listeners, c = p[a];
|
|
4217
4217
|
c == null && (c = [], p[a] = c);
|
|
4218
4218
|
for (var v = !1, E = 0; E < c.length; E += 1)
|
|
4219
4219
|
c[E] === f && (v = !0);
|
|
4220
4220
|
v || c.push(f);
|
|
4221
|
-
},
|
|
4221
|
+
}, $.prototype.removeEventListener = function(a, f) {
|
|
4222
4222
|
a = String(a);
|
|
4223
4223
|
var p = this._listeners, c = p[a];
|
|
4224
4224
|
if (c != null) {
|
|
@@ -4255,7 +4255,7 @@ var Jt = { exports: {} };
|
|
|
4255
4255
|
}
|
|
4256
4256
|
};
|
|
4257
4257
|
function re(a, f) {
|
|
4258
|
-
|
|
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);
|
|
4259
4259
|
}
|
|
4260
4260
|
function At() {
|
|
4261
4261
|
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
@@ -4263,10 +4263,10 @@ var Jt = { exports: {} };
|
|
|
4263
4263
|
var Ct = m != null && g != null && "body" in g.prototype;
|
|
4264
4264
|
function Ht(a, f, p) {
|
|
4265
4265
|
f = String(f);
|
|
4266
|
-
var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Me(1e3), y = Qe(p.heartbeatTimeout, 45e3),
|
|
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
4267
|
if (ue === pe)
|
|
4268
4268
|
if (Z === 200 && oe != null && wt.test(oe)) {
|
|
4269
|
-
ue = Te,
|
|
4269
|
+
ue = Te, I = Date.now(), A = E, a.readyState = Te;
|
|
4270
4270
|
var te = new Ze("open", {
|
|
4271
4271
|
status: Z,
|
|
4272
4272
|
statusText: z,
|
|
@@ -4274,14 +4274,14 @@ var Jt = { exports: {} };
|
|
|
4274
4274
|
});
|
|
4275
4275
|
a.dispatchEvent(te), we(a, a.onopen, te);
|
|
4276
4276
|
} else {
|
|
4277
|
-
var
|
|
4278
|
-
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")),
|
|
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
4279
|
var te = new Ze("error", {
|
|
4280
4280
|
status: Z,
|
|
4281
4281
|
statusText: z,
|
|
4282
4282
|
headers: ae
|
|
4283
4283
|
});
|
|
4284
|
-
a.dispatchEvent(te), we(a, a.onerror, te), console.error(
|
|
4284
|
+
a.dispatchEvent(te), we(a, a.onerror, te), console.error(q);
|
|
4285
4285
|
}
|
|
4286
4286
|
}, or = function(Z) {
|
|
4287
4287
|
if (ue === Te) {
|
|
@@ -4290,15 +4290,15 @@ var Jt = { exports: {} };
|
|
|
4290
4290
|
(ae === 10 || ae === 13) && (z = oe);
|
|
4291
4291
|
}
|
|
4292
4292
|
var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
|
|
4293
|
-
ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (
|
|
4294
|
-
for (var
|
|
4295
|
-
var ae = te.charCodeAt(
|
|
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
4296
|
if (ee === Ce && ae === 10)
|
|
4297
4297
|
ee = le;
|
|
4298
4298
|
else if (ee === Ce && (ee = le), ae === 13 || ae === 10) {
|
|
4299
4299
|
if (ee !== le) {
|
|
4300
|
-
ee === qe && (He =
|
|
4301
|
-
var ve = te.slice(Ot, He - 1), Ee = te.slice(He + (He <
|
|
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
4302
|
ve === "data" ? (Ne += `
|
|
4303
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
4304
|
Ye();
|
|
@@ -4306,19 +4306,19 @@ var Jt = { exports: {} };
|
|
|
4306
4306
|
}
|
|
4307
4307
|
if (ee === le) {
|
|
4308
4308
|
if (Ne !== "") {
|
|
4309
|
-
|
|
4310
|
-
var
|
|
4309
|
+
R = lt, ye === "" && (ye = "message");
|
|
4310
|
+
var Ie = new xe(ye, {
|
|
4311
4311
|
data: Ne.slice(1),
|
|
4312
4312
|
lastEventId: lt
|
|
4313
4313
|
});
|
|
4314
|
-
if (a.dispatchEvent(
|
|
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)
|
|
4315
4315
|
return;
|
|
4316
4316
|
}
|
|
4317
4317
|
Ne = "", ye = "";
|
|
4318
4318
|
}
|
|
4319
4319
|
ee = ae === 13 ? Ce : le;
|
|
4320
4320
|
} else
|
|
4321
|
-
ee === le && (Ot =
|
|
4321
|
+
ee === le && (Ot = q, ee = qe), ee === qe ? ae === 58 && (He = q + 1, ee = Le) : ee === Le && (ee = ot);
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
4324
4324
|
}, nn = function(Z) {
|
|
@@ -4333,32 +4333,32 @@ var Jt = { exports: {} };
|
|
|
4333
4333
|
ue = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
|
|
4334
4334
|
}, Ye = function() {
|
|
4335
4335
|
if (K = 0, ue !== Re) {
|
|
4336
|
-
if (!
|
|
4336
|
+
if (!I && ie != null)
|
|
4337
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);
|
|
4338
4338
|
else {
|
|
4339
|
-
var Z = Math.max((
|
|
4340
|
-
|
|
4339
|
+
var Z = Math.max((I || Date.now()) + y - Date.now(), 1);
|
|
4340
|
+
I = !1, K = r(function() {
|
|
4341
4341
|
Ye();
|
|
4342
4342
|
}, Z);
|
|
4343
4343
|
}
|
|
4344
4344
|
return;
|
|
4345
4345
|
}
|
|
4346
|
-
|
|
4346
|
+
I = !1, F = 0, K = r(function() {
|
|
4347
4347
|
Ye();
|
|
4348
|
-
}, y), ue = pe, Ne = "", ye = "", lt =
|
|
4348
|
+
}, y), ue = pe, Ne = "", ye = "", lt = R, ut = "", Ot = 0, He = 0, ee = le;
|
|
4349
4349
|
var z = f;
|
|
4350
|
-
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" &&
|
|
4350
|
+
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && R !== "") {
|
|
4351
4351
|
var oe = f.indexOf("?");
|
|
4352
|
-
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee,
|
|
4353
|
-
return
|
|
4354
|
-
}), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(
|
|
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);
|
|
4355
4355
|
}
|
|
4356
4356
|
var ae = a.withCredentials, te = {};
|
|
4357
4357
|
te.Accept = "text/event-stream";
|
|
4358
|
-
var
|
|
4359
|
-
if (
|
|
4360
|
-
for (var ve in
|
|
4361
|
-
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]);
|
|
4362
4362
|
try {
|
|
4363
4363
|
ie = Je.open(be, ir, or, nn, z, ae, te);
|
|
4364
4364
|
} catch (Ee) {
|
|
@@ -4367,7 +4367,7 @@ var Jt = { exports: {} };
|
|
|
4367
4367
|
};
|
|
4368
4368
|
a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Rt, Ye();
|
|
4369
4369
|
}
|
|
4370
|
-
re.prototype = Object.create(
|
|
4370
|
+
re.prototype = Object.create($.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
|
|
4371
4371
|
this._close();
|
|
4372
4372
|
}, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
|
|
4373
4373
|
var st = h;
|
|
@@ -4524,7 +4524,7 @@ ce.prototype = {
|
|
|
4524
4524
|
}
|
|
4525
4525
|
};
|
|
4526
4526
|
function Ho(e) {
|
|
4527
|
-
lr(e, "svelte-
|
|
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}');
|
|
4528
4528
|
}
|
|
4529
4529
|
function xn(e, t, n) {
|
|
4530
4530
|
const r = e.slice();
|
|
@@ -4550,22 +4550,22 @@ function Oo(e) {
|
|
|
4550
4550
|
);
|
|
4551
4551
|
return {
|
|
4552
4552
|
c() {
|
|
4553
|
-
t =
|
|
4553
|
+
t = k("button"), n = k("p"), i = he(r), o = de(), l = he(
|
|
4554
4554
|
/*currency*/
|
|
4555
4555
|
e[5]
|
|
4556
|
-
), s = de(), h =
|
|
4557
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
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*/
|
|
4557
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4558
4558
|
},
|
|
4559
|
-
m(S,
|
|
4560
|
-
ge(S, t,
|
|
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(
|
|
4561
4561
|
t,
|
|
4562
4562
|
"click",
|
|
4563
4563
|
/*click_handler*/
|
|
4564
4564
|
e[25]
|
|
4565
4565
|
), B = !0);
|
|
4566
4566
|
},
|
|
4567
|
-
p(S,
|
|
4568
|
-
|
|
4567
|
+
p(S, P) {
|
|
4568
|
+
P[0] & /*balances*/
|
|
4569
4569
|
2 && r !== (r = /*balances*/
|
|
4570
4570
|
(S[1].Total ? (
|
|
4571
4571
|
/*formatBalance*/
|
|
@@ -4573,15 +4573,15 @@ function Oo(e) {
|
|
|
4573
4573
|
/*balances*/
|
|
4574
4574
|
S[1].Total[0].amount
|
|
4575
4575
|
)
|
|
4576
|
-
) : "0") + "") && _e(i, r),
|
|
4576
|
+
) : "0") + "") && _e(i, r), P[0] & /*currency*/
|
|
4577
4577
|
32 && _e(
|
|
4578
4578
|
l,
|
|
4579
4579
|
/*currency*/
|
|
4580
4580
|
S[5]
|
|
4581
|
-
),
|
|
4582
|
-
8 && m !== (m = /*
|
|
4583
|
-
S[3] ? "TriangleActive" : "TriangleInactive") &&
|
|
4584
|
-
S[4] ? _ ? _.p(S,
|
|
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);
|
|
4585
4585
|
},
|
|
4586
4586
|
d(S) {
|
|
4587
4587
|
S && (fe(t), fe(g), fe(x)), _ && _.d(S), B = !1, T();
|
|
@@ -4595,10 +4595,10 @@ function Ro(e) {
|
|
|
4595
4595
|
), r;
|
|
4596
4596
|
return {
|
|
4597
4597
|
c() {
|
|
4598
|
-
t =
|
|
4598
|
+
t = k("p"), r = he(n), M(t, "class", "Loading");
|
|
4599
4599
|
},
|
|
4600
4600
|
m(i, o) {
|
|
4601
|
-
ge(i, t, o),
|
|
4601
|
+
ge(i, t, o), H(t, r);
|
|
4602
4602
|
},
|
|
4603
4603
|
p(i, o) {
|
|
4604
4604
|
o[0] & /*$_*/
|
|
@@ -4617,28 +4617,28 @@ function Tn(e) {
|
|
|
4617
4617
|
), d, m, g, x, B, T, _ = (
|
|
4618
4618
|
/*$_*/
|
|
4619
4619
|
e[6]("DepositButton") + ""
|
|
4620
|
-
), S,
|
|
4620
|
+
), S, P, C, D, W, J, Y = gt(Object.keys(
|
|
4621
4621
|
/*balances*/
|
|
4622
4622
|
e[1]
|
|
4623
4623
|
)), G = [];
|
|
4624
|
-
for (let
|
|
4625
|
-
G[
|
|
4624
|
+
for (let N = 0; N < Y.length; N += 1)
|
|
4625
|
+
G[N] = Sn(xn(e, Y, N));
|
|
4626
4626
|
return {
|
|
4627
4627
|
c() {
|
|
4628
|
-
t =
|
|
4629
|
-
for (let
|
|
4630
|
-
G[
|
|
4631
|
-
x = de(), B =
|
|
4632
|
-
(e[3] ? "Open" : "")),
|
|
4633
|
-
(e[3] ? "Open" : "")),
|
|
4634
|
-
(e[3] ? "Open" : "")),
|
|
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*/
|
|
4635
4635
|
(e[3] ? "Open" : ""));
|
|
4636
4636
|
},
|
|
4637
|
-
m(
|
|
4638
|
-
ge(
|
|
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
4639
|
for (let U = 0; U < G.length; U += 1)
|
|
4640
4640
|
G[U] && G[U].m(g, null);
|
|
4641
|
-
|
|
4641
|
+
H(l, x), H(l, B), H(B, T), H(T, S), W || (J = [
|
|
4642
4642
|
mt(
|
|
4643
4643
|
n,
|
|
4644
4644
|
"click",
|
|
@@ -4653,38 +4653,38 @@ function Tn(e) {
|
|
|
4653
4653
|
)
|
|
4654
4654
|
], W = !0);
|
|
4655
4655
|
},
|
|
4656
|
-
p(
|
|
4657
|
-
if (
|
|
4658
|
-
8 && r !== (r = "BalanceModalClose " + /*
|
|
4659
|
-
(
|
|
4656
|
+
p(N, $) {
|
|
4657
|
+
if ($[0] & /*isModalDisplayed*/
|
|
4658
|
+
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4659
|
+
(N[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
|
|
4660
4660
|
64 && u !== (u = /*$_*/
|
|
4661
|
-
|
|
4661
|
+
N[6]("Title") + "") && _e(d, u), $[0] & /*balances, currency, formatBalance, $_*/
|
|
4662
4662
|
354) {
|
|
4663
4663
|
Y = gt(Object.keys(
|
|
4664
4664
|
/*balances*/
|
|
4665
|
-
|
|
4665
|
+
N[1]
|
|
4666
4666
|
));
|
|
4667
4667
|
let U;
|
|
4668
4668
|
for (U = 0; U < Y.length; U += 1) {
|
|
4669
|
-
const b = xn(
|
|
4670
|
-
G[U] ? G[U].p(b,
|
|
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));
|
|
4671
4671
|
}
|
|
4672
4672
|
for (; U < G.length; U += 1)
|
|
4673
4673
|
G[U].d(1);
|
|
4674
4674
|
G.length = Y.length;
|
|
4675
4675
|
}
|
|
4676
|
-
|
|
4676
|
+
$[0] & /*$_*/
|
|
4677
4677
|
64 && _ !== (_ = /*$_*/
|
|
4678
|
-
|
|
4679
|
-
8 &&
|
|
4680
|
-
(
|
|
4681
|
-
8 &&
|
|
4682
|
-
(
|
|
4683
|
-
8 && D !== (D = "BalanceModalWrapper " + /*
|
|
4684
|
-
(
|
|
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);
|
|
4685
4685
|
},
|
|
4686
|
-
d(
|
|
4687
|
-
|
|
4686
|
+
d(N) {
|
|
4687
|
+
N && fe(t), Rn(G, N), W = !1, Ve(J);
|
|
4688
4688
|
}
|
|
4689
4689
|
};
|
|
4690
4690
|
}
|
|
@@ -4716,13 +4716,13 @@ function wn(e) {
|
|
|
4716
4716
|
), g, x, B, T;
|
|
4717
4717
|
return {
|
|
4718
4718
|
c() {
|
|
4719
|
-
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(
|
|
4720
4720
|
/*currency*/
|
|
4721
4721
|
e[5]
|
|
4722
|
-
),
|
|
4722
|
+
), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(B, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
4723
4723
|
},
|
|
4724
4724
|
m(_, S) {
|
|
4725
|
-
ge(_, t, 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);
|
|
4726
4726
|
},
|
|
4727
4727
|
p(_, S) {
|
|
4728
4728
|
S[0] & /*$_, balances*/
|
|
@@ -4770,16 +4770,16 @@ function Sn(e) {
|
|
|
4770
4770
|
i[o] = wn(Bn(e, r, o));
|
|
4771
4771
|
return {
|
|
4772
4772
|
c() {
|
|
4773
|
-
t =
|
|
4773
|
+
t = k("div");
|
|
4774
4774
|
for (let o = 0; o < i.length; o += 1)
|
|
4775
4775
|
i[o].c();
|
|
4776
|
-
n = de(),
|
|
4776
|
+
n = de(), M(t, "class", "BalanceModalRowBoth");
|
|
4777
4777
|
},
|
|
4778
4778
|
m(o, l) {
|
|
4779
4779
|
ge(o, t, l);
|
|
4780
4780
|
for (let s = 0; s < i.length; s += 1)
|
|
4781
4781
|
i[s] && i[s].m(t, null);
|
|
4782
|
-
|
|
4782
|
+
H(t, n);
|
|
4783
4783
|
},
|
|
4784
4784
|
p(o, l) {
|
|
4785
4785
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
@@ -4810,7 +4810,7 @@ function An(e) {
|
|
|
4810
4810
|
let t, n, r;
|
|
4811
4811
|
return {
|
|
4812
4812
|
c() {
|
|
4813
|
-
t =
|
|
4813
|
+
t = k("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
4814
4814
|
},
|
|
4815
4815
|
m(i, o) {
|
|
4816
4816
|
ge(i, t, o), n || (r = mt(
|
|
@@ -4840,10 +4840,10 @@ function Lo(e) {
|
|
|
4840
4840
|
);
|
|
4841
4841
|
return {
|
|
4842
4842
|
c() {
|
|
4843
|
-
t =
|
|
4843
|
+
t = k("div"), n = k("div"), l.c(), r = de(), s && s.c(), M(n, "class", "ShowBalance");
|
|
4844
4844
|
},
|
|
4845
4845
|
m(h, u) {
|
|
4846
|
-
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);
|
|
4847
4847
|
},
|
|
4848
4848
|
p(h, u) {
|
|
4849
4849
|
o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
@@ -4859,7 +4859,7 @@ function Lo(e) {
|
|
|
4859
4859
|
function Mo(e, t, n) {
|
|
4860
4860
|
let r;
|
|
4861
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:
|
|
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
4863
|
const b = {}, xe = ["totalCashAmount", "totalRealAmount"], Ze = () => {
|
|
4864
4864
|
fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => En(f, a[f]))).catch((a) => console.log(a));
|
|
4865
4865
|
};
|
|
@@ -4897,14 +4897,14 @@ function Mo(e, t, n) {
|
|
|
4897
4897
|
separator: _,
|
|
4898
4898
|
decimal: S,
|
|
4899
4899
|
symbol: "",
|
|
4900
|
-
precision: parseInt(
|
|
4900
|
+
precision: parseInt(P || "2", 10)
|
|
4901
4901
|
}).format() : ce(a, {
|
|
4902
4902
|
separator: ".",
|
|
4903
4903
|
decimal: ",",
|
|
4904
4904
|
symbol: "",
|
|
4905
|
-
precision: parseInt(
|
|
4905
|
+
precision: parseInt(P || "2", 10)
|
|
4906
4906
|
}).format(), Te = async () => {
|
|
4907
|
-
n(2,
|
|
4907
|
+
n(2, D = !0);
|
|
4908
4908
|
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4909
4909
|
try {
|
|
4910
4910
|
const f = await fetch(a, {
|
|
@@ -4912,11 +4912,11 @@ function Mo(e, t, n) {
|
|
|
4912
4912
|
headers: { "X-SessionID": o }
|
|
4913
4913
|
}), p = await f.json();
|
|
4914
4914
|
if (f.ok)
|
|
4915
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
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(
|
|
4916
4916
|
1,
|
|
4917
4917
|
b.Real = [
|
|
4918
4918
|
{
|
|
4919
|
-
amount:
|
|
4919
|
+
amount: $.find((c) => c.displayName === "Casino")?.balanceAmount
|
|
4920
4920
|
}
|
|
4921
4921
|
],
|
|
4922
4922
|
b
|
|
@@ -4924,7 +4924,7 @@ function Mo(e, t, n) {
|
|
|
4924
4924
|
1,
|
|
4925
4925
|
b.Bonus = [
|
|
4926
4926
|
{
|
|
4927
|
-
amount:
|
|
4927
|
+
amount: $.find((c) => c.displayName === "UBS")?.balanceAmount
|
|
4928
4928
|
}
|
|
4929
4929
|
],
|
|
4930
4930
|
b
|
|
@@ -4934,19 +4934,19 @@ function Mo(e, t, n) {
|
|
|
4934
4934
|
} catch (f) {
|
|
4935
4935
|
console.log("Balance error: ", f);
|
|
4936
4936
|
} finally {
|
|
4937
|
-
n(2,
|
|
4937
|
+
n(2, D = !1);
|
|
4938
4938
|
}
|
|
4939
4939
|
}, Ae = () => {
|
|
4940
|
-
n(2,
|
|
4940
|
+
n(2, D = !0);
|
|
4941
4941
|
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4942
4942
|
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
|
|
4943
4943
|
c[T] || n(10, T = xe[0]);
|
|
4944
4944
|
const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
|
|
4945
|
-
if (n(5,
|
|
4946
|
-
|
|
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 = {
|
|
4947
4947
|
lastOrdinaryAfterAmount: 0,
|
|
4948
4948
|
showCreditLineAfterAmount: !1
|
|
4949
|
-
}, n(1, b.Total[0].amount = c[T][
|
|
4949
|
+
}, n(1, b.Total[0].amount = c[T][N], b);
|
|
4950
4950
|
for (const y of c.items)
|
|
4951
4951
|
switch (y.type) {
|
|
4952
4952
|
case "Bonus":
|
|
@@ -4958,12 +4958,12 @@ function Mo(e, t, n) {
|
|
|
4958
4958
|
b.Real.length === 0 ? b.Real.push({ amount: y.amount }) : n(1, b.Real[0].amount += y.amount, b);
|
|
4959
4959
|
break;
|
|
4960
4960
|
}
|
|
4961
|
-
for (const [y,
|
|
4962
|
-
|
|
4963
|
-
n(2,
|
|
4961
|
+
for (const [y, R] of Object.entries(b))
|
|
4962
|
+
R.length < 1 && delete b[y];
|
|
4963
|
+
n(2, D = !1);
|
|
4964
4964
|
return;
|
|
4965
4965
|
}
|
|
4966
|
-
|
|
4966
|
+
U = {
|
|
4967
4967
|
Casino: {
|
|
4968
4968
|
lastOrdinaryAfterAmount: 0,
|
|
4969
4969
|
showCreditLineAfterAmount: !1
|
|
@@ -4976,10 +4976,10 @@ function Mo(e, t, n) {
|
|
|
4976
4976
|
let E = c.items;
|
|
4977
4977
|
B && B !== "All" && (E = c.items.filter((y) => y.productType === B));
|
|
4978
4978
|
for (const y of E) {
|
|
4979
|
-
let
|
|
4979
|
+
let R;
|
|
4980
4980
|
switch (y.type) {
|
|
4981
4981
|
case "Bonus":
|
|
4982
|
-
|
|
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
4983
|
amount: y.amount,
|
|
4984
4984
|
productType: y.productType
|
|
4985
4985
|
});
|
|
@@ -4988,7 +4988,7 @@ function Mo(e, t, n) {
|
|
|
4988
4988
|
y.creditLine && b.Credit.push({
|
|
4989
4989
|
amount: y.creditLine,
|
|
4990
4990
|
productType: y.productType
|
|
4991
|
-
}),
|
|
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
4992
|
amount: y.amount,
|
|
4993
4993
|
productType: y.productType
|
|
4994
4994
|
});
|
|
@@ -4996,14 +4996,14 @@ function Mo(e, t, n) {
|
|
|
4996
4996
|
}
|
|
4997
4997
|
}
|
|
4998
4998
|
ot();
|
|
4999
|
-
for (const [y,
|
|
5000
|
-
|
|
5001
|
-
n(2,
|
|
4999
|
+
for (const [y, R] of Object.entries(b))
|
|
5000
|
+
R.length < 1 && delete b[y];
|
|
5001
|
+
n(2, D = !1);
|
|
5002
5002
|
}).catch((c) => {
|
|
5003
|
-
throw n(2,
|
|
5003
|
+
throw n(2, D = !1), console.log("Balance fetch error", c), new Error("Failed to fetch balance data!");
|
|
5004
5004
|
});
|
|
5005
5005
|
}, Ce = () => {
|
|
5006
|
-
if (
|
|
5006
|
+
if (G && G.close(), o.length < 1)
|
|
5007
5007
|
return;
|
|
5008
5008
|
let a, f;
|
|
5009
5009
|
switch (x) {
|
|
@@ -5018,7 +5018,7 @@ function Mo(e, t, n) {
|
|
|
5018
5018
|
accept: "text/event-stream",
|
|
5019
5019
|
"X-SessionId": o
|
|
5020
5020
|
}, c = new Bo.EventSourcePolyfill(a, { headers: p });
|
|
5021
|
-
|
|
5021
|
+
G = c, c.addEventListener("message", f);
|
|
5022
5022
|
}, le = (a) => {
|
|
5023
5023
|
let f;
|
|
5024
5024
|
try {
|
|
@@ -5036,15 +5036,15 @@ function Mo(e, t, n) {
|
|
|
5036
5036
|
}
|
|
5037
5037
|
let p = "0";
|
|
5038
5038
|
const c = f.balanceChange;
|
|
5039
|
-
|
|
5039
|
+
$ = $.map((v) => (c && c[v.id] && (v = {
|
|
5040
5040
|
...v,
|
|
5041
5041
|
balanceAmount: c[v.id].afterAmount
|
|
5042
|
-
}), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount:
|
|
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
5043
|
}, Le = (a, f, p) => {
|
|
5044
5044
|
let c = null;
|
|
5045
5045
|
switch (p.walletAccountType) {
|
|
5046
5046
|
case "Ordinary":
|
|
5047
|
-
p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
|
|
5047
|
+
(p.afterAmount !== p.affectedAmount || f.lastOrdinaryAfterAmount === 0) && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
|
|
5048
5048
|
break;
|
|
5049
5049
|
case "CreditLine":
|
|
5050
5050
|
p.afterAmount !== 0 ? (c = p.afterAmount, f.showCreditLineAfterAmount = !0) : (c = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
@@ -5063,7 +5063,7 @@ function Mo(e, t, n) {
|
|
|
5063
5063
|
n(1, b.Total[0].amount = a, b);
|
|
5064
5064
|
break;
|
|
5065
5065
|
case "totalRealAmount":
|
|
5066
|
-
if (!
|
|
5066
|
+
if (!J)
|
|
5067
5067
|
return;
|
|
5068
5068
|
let f = 0;
|
|
5069
5069
|
for (const p of b.Real)
|
|
@@ -5080,13 +5080,13 @@ function Mo(e, t, n) {
|
|
|
5080
5080
|
return;
|
|
5081
5081
|
const p = f.body.balanceChange;
|
|
5082
5082
|
for (const [c, v] of Object.entries(p))
|
|
5083
|
-
if (T === "totalRealAmount" && c === "Real" && !
|
|
5083
|
+
if (T === "totalRealAmount" && c === "Real" && !J && n(1, b.Total[0].amount = Le(b.Total[0].amount, U, v), b), !!b[c])
|
|
5084
5084
|
for (const E of b[c]) {
|
|
5085
|
-
if (!
|
|
5086
|
-
E.amount = c === "Real" ? Le(E.amount,
|
|
5085
|
+
if (!J) {
|
|
5086
|
+
E.amount = c === "Real" ? Le(E.amount, U, v) : v.afterAmount;
|
|
5087
5087
|
continue;
|
|
5088
5088
|
}
|
|
5089
|
-
v.productType === E.productType && (E.amount = c === "Real" ? Le(E.amount,
|
|
5089
|
+
v.productType === E.productType && (E.amount = c === "Real" ? Le(E.amount, U[E.productType], v) : v.afterAmount);
|
|
5090
5090
|
}
|
|
5091
5091
|
ot();
|
|
5092
5092
|
}, at = () => {
|
|
@@ -5104,20 +5104,20 @@ function Mo(e, t, n) {
|
|
|
5104
5104
|
default:
|
|
5105
5105
|
throw Error(`Invalid apiversion attribute: ${x}`);
|
|
5106
5106
|
}
|
|
5107
|
-
}, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" &&
|
|
5107
|
+
}, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && G.close(), we = () => {
|
|
5108
5108
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5109
5109
|
};
|
|
5110
5110
|
mr(() => (window.addEventListener("message", Me, !1), () => {
|
|
5111
|
-
window.removeEventListener("message", Me),
|
|
5111
|
+
window.removeEventListener("message", Me), G && G.close();
|
|
5112
5112
|
}));
|
|
5113
5113
|
const re = () => Be("balance"), At = () => Be("closebalance"), Ct = () => at(), Ht = () => Be("closeBalance");
|
|
5114
5114
|
function st(a) {
|
|
5115
5115
|
Ft[a ? "unshift" : "push"](() => {
|
|
5116
|
-
|
|
5116
|
+
C = a, n(0, C);
|
|
5117
5117
|
});
|
|
5118
5118
|
}
|
|
5119
5119
|
return e.$$set = (a) => {
|
|
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,
|
|
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);
|
|
5121
5121
|
}, e.$$.update = () => {
|
|
5122
5122
|
e.$$.dirty[0] & /*lang*/
|
|
5123
5123
|
16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
@@ -5125,16 +5125,16 @@ function Mo(e, t, n) {
|
|
|
5125
5125
|
1062912 && l && i && o && x && Ce(), e.$$.dirty[0] & /*translationurl*/
|
|
5126
5126
|
262144 && m && Ze(), e.$$.dirty[0] & /*balances*/
|
|
5127
5127
|
2 && b.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5128
|
-
65537 && u &&
|
|
5129
|
-
131073 && d &&
|
|
5130
|
-
32769 && h &&
|
|
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`);
|
|
5131
5131
|
}, [
|
|
5132
|
-
|
|
5132
|
+
C,
|
|
5133
5133
|
b,
|
|
5134
|
-
|
|
5134
|
+
D,
|
|
5135
5135
|
W,
|
|
5136
5136
|
Y,
|
|
5137
|
-
|
|
5137
|
+
N,
|
|
5138
5138
|
r,
|
|
5139
5139
|
Be,
|
|
5140
5140
|
pe,
|
|
@@ -5153,7 +5153,7 @@ function Mo(e, t, n) {
|
|
|
5153
5153
|
B,
|
|
5154
5154
|
_,
|
|
5155
5155
|
S,
|
|
5156
|
-
|
|
5156
|
+
P,
|
|
5157
5157
|
re,
|
|
5158
5158
|
At,
|
|
5159
5159
|
Ct,
|
|
@@ -5194,91 +5194,91 @@ class No extends Ar {
|
|
|
5194
5194
|
return this.$$.ctx[11];
|
|
5195
5195
|
}
|
|
5196
5196
|
set userid(t) {
|
|
5197
|
-
this.$$set({ userid: t }),
|
|
5197
|
+
this.$$set({ userid: t }), Q();
|
|
5198
5198
|
}
|
|
5199
5199
|
get session() {
|
|
5200
5200
|
return this.$$.ctx[12];
|
|
5201
5201
|
}
|
|
5202
5202
|
set session(t) {
|
|
5203
|
-
this.$$set({ session: t }),
|
|
5203
|
+
this.$$set({ session: t }), Q();
|
|
5204
5204
|
}
|
|
5205
5205
|
get endpoint() {
|
|
5206
5206
|
return this.$$.ctx[13];
|
|
5207
5207
|
}
|
|
5208
5208
|
set endpoint(t) {
|
|
5209
|
-
this.$$set({ endpoint: t }),
|
|
5209
|
+
this.$$set({ endpoint: t }), Q();
|
|
5210
5210
|
}
|
|
5211
5211
|
get lang() {
|
|
5212
5212
|
return this.$$.ctx[14];
|
|
5213
5213
|
}
|
|
5214
5214
|
set lang(t) {
|
|
5215
|
-
this.$$set({ lang: t }),
|
|
5215
|
+
this.$$set({ lang: t }), Q();
|
|
5216
5216
|
}
|
|
5217
5217
|
get mbsource() {
|
|
5218
5218
|
return this.$$.ctx[15];
|
|
5219
5219
|
}
|
|
5220
5220
|
set mbsource(t) {
|
|
5221
|
-
this.$$set({ mbsource: t }),
|
|
5221
|
+
this.$$set({ mbsource: t }), Q();
|
|
5222
5222
|
}
|
|
5223
5223
|
get clientstyling() {
|
|
5224
5224
|
return this.$$.ctx[16];
|
|
5225
5225
|
}
|
|
5226
5226
|
set clientstyling(t) {
|
|
5227
|
-
this.$$set({ clientstyling: t }),
|
|
5227
|
+
this.$$set({ clientstyling: t }), Q();
|
|
5228
5228
|
}
|
|
5229
5229
|
get clientstylingurl() {
|
|
5230
5230
|
return this.$$.ctx[17];
|
|
5231
5231
|
}
|
|
5232
5232
|
set clientstylingurl(t) {
|
|
5233
|
-
this.$$set({ clientstylingurl: t }),
|
|
5233
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
5234
5234
|
}
|
|
5235
5235
|
get translationurl() {
|
|
5236
5236
|
return this.$$.ctx[18];
|
|
5237
5237
|
}
|
|
5238
5238
|
set translationurl(t) {
|
|
5239
|
-
this.$$set({ translationurl: t }),
|
|
5239
|
+
this.$$set({ translationurl: t }), Q();
|
|
5240
5240
|
}
|
|
5241
5241
|
get customlocaleidentifier() {
|
|
5242
5242
|
return this.$$.ctx[19];
|
|
5243
5243
|
}
|
|
5244
5244
|
set customlocaleidentifier(t) {
|
|
5245
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5245
|
+
this.$$set({ customlocaleidentifier: t }), Q();
|
|
5246
5246
|
}
|
|
5247
5247
|
get gmversion() {
|
|
5248
5248
|
return this.$$.ctx[20];
|
|
5249
5249
|
}
|
|
5250
5250
|
set gmversion(t) {
|
|
5251
|
-
this.$$set({ gmversion: t }),
|
|
5251
|
+
this.$$set({ gmversion: t }), Q();
|
|
5252
5252
|
}
|
|
5253
5253
|
get displaybalanceoption() {
|
|
5254
5254
|
return this.$$.ctx[21];
|
|
5255
5255
|
}
|
|
5256
5256
|
set displaybalanceoption(t) {
|
|
5257
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5257
|
+
this.$$set({ displaybalanceoption: t }), Q();
|
|
5258
5258
|
}
|
|
5259
5259
|
get totalcalculationmode() {
|
|
5260
5260
|
return this.$$.ctx[10];
|
|
5261
5261
|
}
|
|
5262
5262
|
set totalcalculationmode(t) {
|
|
5263
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5263
|
+
this.$$set({ totalcalculationmode: t }), Q();
|
|
5264
5264
|
}
|
|
5265
5265
|
get currencyseparator() {
|
|
5266
5266
|
return this.$$.ctx[22];
|
|
5267
5267
|
}
|
|
5268
5268
|
set currencyseparator(t) {
|
|
5269
|
-
this.$$set({ currencyseparator: t }),
|
|
5269
|
+
this.$$set({ currencyseparator: t }), Q();
|
|
5270
5270
|
}
|
|
5271
5271
|
get currencydecimal() {
|
|
5272
5272
|
return this.$$.ctx[23];
|
|
5273
5273
|
}
|
|
5274
5274
|
set currencydecimal(t) {
|
|
5275
|
-
this.$$set({ currencydecimal: t }),
|
|
5275
|
+
this.$$set({ currencydecimal: t }), Q();
|
|
5276
5276
|
}
|
|
5277
5277
|
get currencyprecision() {
|
|
5278
5278
|
return this.$$.ctx[24];
|
|
5279
5279
|
}
|
|
5280
5280
|
set currencyprecision(t) {
|
|
5281
|
-
this.$$set({ currencyprecision: t }),
|
|
5281
|
+
this.$$set({ currencyprecision: t }), Q();
|
|
5282
5282
|
}
|
|
5283
5283
|
}
|
|
5284
5284
|
Sr(No, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|