@obb871001/api-integration-sdk 1.0.277 → 1.0.279
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/dist/index.cjs +6 -6
- package/dist/index.js +592 -568
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,20 +37,20 @@ function Zl() {
|
|
|
37
37
|
if (xt) return Va;
|
|
38
38
|
xt = 1;
|
|
39
39
|
var e = de, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
|
-
function
|
|
40
|
+
function b(f, l, a) {
|
|
41
41
|
var i, s = {}, o = null, u = null;
|
|
42
42
|
a !== void 0 && (o = "" + a), l.key !== void 0 && (o = "" + l.key), l.ref !== void 0 && (u = l.ref);
|
|
43
43
|
for (i in l) n.call(l, i) && !g.hasOwnProperty(i) && (s[i] = l[i]);
|
|
44
44
|
if (f && f.defaultProps) for (i in l = f.defaultProps, l) s[i] === void 0 && (s[i] = l[i]);
|
|
45
45
|
return { $$typeof: r, type: f, key: o, ref: u, props: s, _owner: p.current };
|
|
46
46
|
}
|
|
47
|
-
return Va.Fragment = t, Va.jsx =
|
|
47
|
+
return Va.Fragment = t, Va.jsx = b, Va.jsxs = b, Va;
|
|
48
48
|
}
|
|
49
49
|
var Za = {};
|
|
50
50
|
var St;
|
|
51
51
|
function Jl() {
|
|
52
52
|
return St || (St = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = de, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"),
|
|
53
|
+
var e = de, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), f = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), o = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), m = Symbol.iterator, c = "@@iterator";
|
|
54
54
|
function d(k) {
|
|
55
55
|
if (k === null || typeof k != "object")
|
|
56
56
|
return null;
|
|
@@ -62,10 +62,10 @@ function Jl() {
|
|
|
62
62
|
{
|
|
63
63
|
for (var z = arguments.length, Z = new Array(z > 1 ? z - 1 : 0), q = 1; q < z; q++)
|
|
64
64
|
Z[q - 1] = arguments[q];
|
|
65
|
-
|
|
65
|
+
U("error", k, Z);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function U(k, z, Z) {
|
|
69
69
|
{
|
|
70
70
|
var q = y.ReactDebugCurrentFrame, le = q.getStackAddendum();
|
|
71
71
|
le !== "" && (z += "%s", Z = Z.concat([le]));
|
|
@@ -78,7 +78,7 @@ function Jl() {
|
|
|
78
78
|
var v = !1, T = !1, x = !1, S = !1, G = !1, O;
|
|
79
79
|
O = Symbol.for("react.module.reference");
|
|
80
80
|
function C(k) {
|
|
81
|
-
return !!(typeof k == "string" || typeof k == "function" || k === n || k === g || G || k === p || k === a || k === i || S || k === u || v || T || x || typeof k == "object" && k !== null && (k.$$typeof === o || k.$$typeof === s || k.$$typeof ===
|
|
81
|
+
return !!(typeof k == "string" || typeof k == "function" || k === n || k === g || G || k === p || k === a || k === i || S || k === u || v || T || x || typeof k == "object" && k !== null && (k.$$typeof === o || k.$$typeof === s || k.$$typeof === b || k.$$typeof === f || k.$$typeof === l || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
83
83
|
// we don't know which Flight build this will end up being used
|
|
84
84
|
// with.
|
|
@@ -120,7 +120,7 @@ function Jl() {
|
|
|
120
120
|
case f:
|
|
121
121
|
var z = k;
|
|
122
122
|
return N(z) + ".Consumer";
|
|
123
|
-
case
|
|
123
|
+
case b:
|
|
124
124
|
var Z = k;
|
|
125
125
|
return N(Z._context) + ".Provider";
|
|
126
126
|
case l:
|
|
@@ -269,14 +269,14 @@ function Jl() {
|
|
|
269
269
|
} catch (Be) {
|
|
270
270
|
if (Be && q && typeof Be.stack == "string") {
|
|
271
271
|
for (var Y = Be.stack.split(`
|
|
272
|
-
`),
|
|
273
|
-
`), be = Y.length - 1, he =
|
|
272
|
+
`), Ae = q.stack.split(`
|
|
273
|
+
`), be = Y.length - 1, he = Ae.length - 1; be >= 1 && he >= 0 && Y[be] !== Ae[he]; )
|
|
274
274
|
he--;
|
|
275
275
|
for (; be >= 1 && he >= 0; be--, he--)
|
|
276
|
-
if (Y[be] !==
|
|
276
|
+
if (Y[be] !== Ae[he]) {
|
|
277
277
|
if (be !== 1 || he !== 1)
|
|
278
278
|
do
|
|
279
|
-
if (be--, he--, he < 0 || Y[be] !==
|
|
279
|
+
if (be--, he--, he < 0 || Y[be] !== Ae[he]) {
|
|
280
280
|
var Ze = `
|
|
281
281
|
` + Y[be].replace(" at new ", " at ");
|
|
282
282
|
return k.displayName && Ze.includes("<anonymous>") && (Ze = Ze.replace("<anonymous>", k.displayName)), typeof k == "function" && ie.set(k, Ze), Ze;
|
|
@@ -343,8 +343,8 @@ function Jl() {
|
|
|
343
343
|
var Y = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof k[te] != "function") {
|
|
346
|
-
var
|
|
347
|
-
throw
|
|
346
|
+
var Ae = Error((q || "React class") + ": " + Z + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof k[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw Ae.name = "Invariant Violation", Ae;
|
|
348
348
|
}
|
|
349
349
|
Y = k[te](z, te, q, Z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
350
|
} catch (be) {
|
|
@@ -456,8 +456,8 @@ function Jl() {
|
|
|
456
456
|
};
|
|
457
457
|
function Ia(k, z, Z, q, le) {
|
|
458
458
|
{
|
|
459
|
-
var se, te = {}, Y = null,
|
|
460
|
-
Z !== void 0 && (xe(Z), Y = "" + Z), Ke(z) && (xe(z.key), Y = "" + z.key), ze(z) && (
|
|
459
|
+
var se, te = {}, Y = null, Ae = null;
|
|
460
|
+
Z !== void 0 && (xe(Z), Y = "" + Z), Ke(z) && (xe(z.key), Y = "" + z.key), ze(z) && (Ae = z.ref, Wa(z, le));
|
|
461
461
|
for (se in z)
|
|
462
462
|
_e.call(z, se) && !Je.hasOwnProperty(se) && (te[se] = z[se]);
|
|
463
463
|
if (k && k.defaultProps) {
|
|
@@ -465,11 +465,11 @@ function Jl() {
|
|
|
465
465
|
for (se in be)
|
|
466
466
|
te[se] === void 0 && (te[se] = be[se]);
|
|
467
467
|
}
|
|
468
|
-
if (Y ||
|
|
468
|
+
if (Y || Ae) {
|
|
469
469
|
var he = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
470
|
-
Y && Ea(te, he),
|
|
470
|
+
Y && Ea(te, he), Ae && Na(te, he);
|
|
471
471
|
}
|
|
472
|
-
return za(k, Y,
|
|
472
|
+
return za(k, Y, Ae, le, q, Re.current, te);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var da = y.ReactCurrentOwner, Ua = y.ReactDebugCurrentFrame;
|
|
@@ -589,8 +589,8 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
589
589
|
if (!te) {
|
|
590
590
|
var Y = "";
|
|
591
591
|
(k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (Y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
592
|
-
var
|
|
593
|
-
|
|
592
|
+
var Ae = Ga();
|
|
593
|
+
Ae ? Y += Ae : Y += La();
|
|
594
594
|
var be;
|
|
595
595
|
k === null ? be = "null" : ve(k) ? be = "array" : k !== void 0 && k.$$typeof === r ? (be = "<" + (E(k.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : be = typeof k, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, Y);
|
|
596
596
|
}
|
|
@@ -641,7 +641,7 @@ var Dt;
|
|
|
641
641
|
function Kl() {
|
|
642
642
|
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Xa.exports = Zl() : Xa.exports = Jl()), Xa.exports;
|
|
643
643
|
}
|
|
644
|
-
var
|
|
644
|
+
var we = Kl();
|
|
645
645
|
const zn = zi(null), re = () => {
|
|
646
646
|
const e = ut(zn);
|
|
647
647
|
if (!e)
|
|
@@ -662,7 +662,7 @@ const zn = zi(null), re = () => {
|
|
|
662
662
|
setAsPending: () => t(Ja.PENDING)
|
|
663
663
|
};
|
|
664
664
|
}, [r]);
|
|
665
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ we.jsx(In.Provider, { value: n, children: e });
|
|
666
666
|
}, Vn = () => {
|
|
667
667
|
const e = ut(In);
|
|
668
668
|
if (!e)
|
|
@@ -703,7 +703,7 @@ function Nt({
|
|
|
703
703
|
lng: n = "tw",
|
|
704
704
|
store: p,
|
|
705
705
|
onError: g,
|
|
706
|
-
formData:
|
|
706
|
+
formData: b = !1,
|
|
707
707
|
currency: f,
|
|
708
708
|
toasterOpen: l = !1
|
|
709
709
|
} = {}) {
|
|
@@ -711,7 +711,7 @@ function Nt({
|
|
|
711
711
|
baseURL: e,
|
|
712
712
|
timeout: t,
|
|
713
713
|
headers: {
|
|
714
|
-
"Content-Type":
|
|
714
|
+
"Content-Type": b ? "multipart/form-data" : "application/json"
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
717
|
return a.interceptors.request.use(async (i) => {
|
|
@@ -745,33 +745,33 @@ function Nt({
|
|
|
745
745
|
}
|
|
746
746
|
), a;
|
|
747
747
|
}
|
|
748
|
-
const qn = zi(null),
|
|
748
|
+
const qn = zi(null), ym = () => {
|
|
749
749
|
const e = ut(qn);
|
|
750
750
|
if (!e)
|
|
751
751
|
throw new Error(
|
|
752
752
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
753
753
|
);
|
|
754
754
|
return e;
|
|
755
|
-
},
|
|
755
|
+
}, Um = () => {
|
|
756
756
|
const e = (n, p) => !n && !p, r = (n) => n.startsWith("pc.");
|
|
757
757
|
return {
|
|
758
758
|
executeLogout: ({
|
|
759
759
|
isCallBackInvalid: n = !1,
|
|
760
760
|
hostname: p = "",
|
|
761
761
|
shouldRedirect: g,
|
|
762
|
-
onShowError:
|
|
762
|
+
onShowError: b,
|
|
763
763
|
onCleanup: f,
|
|
764
764
|
onRemoveToken: l,
|
|
765
765
|
onRedirect: a,
|
|
766
766
|
onGoogleLogout: i
|
|
767
767
|
}) => {
|
|
768
768
|
const s = r(p);
|
|
769
|
-
e(n, s) &&
|
|
769
|
+
e(n, s) && b?.(), f?.(), l?.(), g && a?.("/"), i?.();
|
|
770
770
|
},
|
|
771
771
|
shouldShowErrorNotice: e,
|
|
772
772
|
isMachineDomain: r
|
|
773
773
|
};
|
|
774
|
-
},
|
|
774
|
+
}, bm = (e) => {
|
|
775
775
|
let r = Number(e);
|
|
776
776
|
return isNaN(r) ? e : new Intl.NumberFormat("en-US", {
|
|
777
777
|
style: "decimal",
|
|
@@ -789,13 +789,13 @@ const qn = zi(null), _m = () => {
|
|
|
789
789
|
allPlatforms: p
|
|
790
790
|
}) => {
|
|
791
791
|
const g = $n(n, e);
|
|
792
|
-
return g ? r.reduce((
|
|
792
|
+
return g ? r.reduce((b, f) => {
|
|
793
793
|
const l = Qn(p, f), a = jn(p, f), i = t[g] || [], s = Yn(
|
|
794
794
|
i,
|
|
795
795
|
l,
|
|
796
796
|
a
|
|
797
797
|
);
|
|
798
|
-
return Ee(s) || (
|
|
798
|
+
return Ee(s) || (b[f] = s), b;
|
|
799
799
|
}, {}) : {};
|
|
800
800
|
}, jl = ({
|
|
801
801
|
platformName: e,
|
|
@@ -815,15 +815,15 @@ function Xl() {
|
|
|
815
815
|
(function(t, n) {
|
|
816
816
|
e.exports = n();
|
|
817
817
|
})(Yl, (function() {
|
|
818
|
-
var t = 1e3, n = 6e4, p = 36e5, g = "millisecond",
|
|
818
|
+
var t = 1e3, n = 6e4, p = 36e5, g = "millisecond", b = "second", f = "minute", l = "hour", a = "day", i = "week", s = "month", o = "quarter", u = "year", m = "date", c = "Invalid Date", d = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
|
|
819
819
|
var M = ["th", "st", "nd", "rd"], R = P % 100;
|
|
820
820
|
return "[" + P + (M[(R - 20) % 10] || M[R] || M[0]) + "]";
|
|
821
|
-
} },
|
|
821
|
+
} }, U = function(P, M, R) {
|
|
822
822
|
var B = String(P);
|
|
823
823
|
return !B || B.length >= M ? P : "" + Array(M + 1 - B.length).join(R) + P;
|
|
824
|
-
}, v = { s:
|
|
824
|
+
}, v = { s: U, z: function(P) {
|
|
825
825
|
var M = -P.utcOffset(), R = Math.abs(M), B = Math.floor(R / 60), A = R % 60;
|
|
826
|
-
return (M <= 0 ? "+" : "-") +
|
|
826
|
+
return (M <= 0 ? "+" : "-") + U(B, 2, "0") + ":" + U(A, 2, "0");
|
|
827
827
|
}, m: function P(M, R) {
|
|
828
828
|
if (M.date() < R.date()) return -P(R, M);
|
|
829
829
|
var B = 12 * (R.year() - M.year()) + (R.month() - M.month()), A = M.clone().add(B, s), H = R - A < 0, W = M.clone().add(B + (H ? -1 : 1), s);
|
|
@@ -831,7 +831,7 @@ function Xl() {
|
|
|
831
831
|
}, a: function(P) {
|
|
832
832
|
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
|
833
833
|
}, p: function(P) {
|
|
834
|
-
return { M: s, y: u, w: i, d: a, D: m, h: l, m: f, s:
|
|
834
|
+
return { M: s, y: u, w: i, d: a, D: m, h: l, m: f, s: b, ms: g, Q: o }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
|
835
835
|
}, u: function(P) {
|
|
836
836
|
return P === void 0;
|
|
837
837
|
} }, T = "en", x = {};
|
|
@@ -921,7 +921,7 @@ function Xl() {
|
|
|
921
921
|
return D($ + "Minutes", 1);
|
|
922
922
|
case f:
|
|
923
923
|
return D($ + "Seconds", 2);
|
|
924
|
-
case
|
|
924
|
+
case b:
|
|
925
925
|
return D($ + "Milliseconds", 3);
|
|
926
926
|
default:
|
|
927
927
|
return this.clone();
|
|
@@ -929,7 +929,7 @@ function Xl() {
|
|
|
929
929
|
}, M.endOf = function(R) {
|
|
930
930
|
return this.startOf(R, !1);
|
|
931
931
|
}, M.$set = function(R, B) {
|
|
932
|
-
var A, H = h.p(R), W = "set" + (this.$u ? "UTC" : ""), L = (A = {}, A[a] = W + "Date", A[m] = W + "Date", A[s] = W + "Month", A[u] = W + "FullYear", A[l] = W + "Hours", A[f] = W + "Minutes", A[
|
|
932
|
+
var A, H = h.p(R), W = "set" + (this.$u ? "UTC" : ""), L = (A = {}, A[a] = W + "Date", A[m] = W + "Date", A[s] = W + "Month", A[u] = W + "FullYear", A[l] = W + "Hours", A[f] = W + "Minutes", A[b] = W + "Seconds", A[g] = W + "Milliseconds", A)[H], D = H === a ? this.$D + (B - this.$W) : B;
|
|
933
933
|
if (H === s || H === u) {
|
|
934
934
|
var F = this.clone().set(m, 1);
|
|
935
935
|
F.$d[L](D), F.init(), this.$d = F.set(m, Math.min(this.$D, F.daysInMonth())).$d;
|
|
@@ -950,7 +950,7 @@ function Xl() {
|
|
|
950
950
|
if (W === u) return this.set(u, this.$y + R);
|
|
951
951
|
if (W === a) return L(1);
|
|
952
952
|
if (W === i) return L(7);
|
|
953
|
-
var D = (A = {}, A[f] = n, A[l] = p, A[
|
|
953
|
+
var D = (A = {}, A[f] = n, A[l] = p, A[b] = t, A)[W] || 1, F = this.$d.getTime() + R * D;
|
|
954
954
|
return h.w(F, this);
|
|
955
955
|
}, M.subtract = function(R, B) {
|
|
956
956
|
return this.add(-1 * R, B);
|
|
@@ -1048,7 +1048,7 @@ function Xl() {
|
|
|
1048
1048
|
case f:
|
|
1049
1049
|
H = w / n;
|
|
1050
1050
|
break;
|
|
1051
|
-
case
|
|
1051
|
+
case b:
|
|
1052
1052
|
H = w / t;
|
|
1053
1053
|
break;
|
|
1054
1054
|
default:
|
|
@@ -1075,7 +1075,7 @@ function Xl() {
|
|
|
1075
1075
|
return this.$d.toUTCString();
|
|
1076
1076
|
}, P;
|
|
1077
1077
|
})(), E = N.prototype;
|
|
1078
|
-
return C.prototype = E, [["$ms", g], ["$s",
|
|
1078
|
+
return C.prototype = E, [["$ms", g], ["$s", b], ["$m", f], ["$H", l], ["$W", a], ["$M", s], ["$y", u], ["$D", m]].forEach((function(P) {
|
|
1079
1079
|
E[P[1]] = function(M) {
|
|
1080
1080
|
return this.$g(M, P[0], P[1]);
|
|
1081
1081
|
};
|
|
@@ -1111,7 +1111,7 @@ function ae() {
|
|
|
1111
1111
|
g = nr;
|
|
1112
1112
|
} catch {
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1114
|
+
var b = function() {
|
|
1115
1115
|
if (g) {
|
|
1116
1116
|
if (typeof g.getRandomValues == "function")
|
|
1117
1117
|
try {
|
|
@@ -1128,9 +1128,9 @@ function ae() {
|
|
|
1128
1128
|
}, f = Object.create || /* @__PURE__ */ (function() {
|
|
1129
1129
|
function _() {
|
|
1130
1130
|
}
|
|
1131
|
-
return function(
|
|
1131
|
+
return function(U) {
|
|
1132
1132
|
var v;
|
|
1133
|
-
return _.prototype =
|
|
1133
|
+
return _.prototype = U, v = new _(), _.prototype = null, v;
|
|
1134
1134
|
};
|
|
1135
1135
|
})(), l = {}, a = l.lib = {}, i = a.Base = /* @__PURE__ */ (function() {
|
|
1136
1136
|
return {
|
|
@@ -1153,10 +1153,10 @@ function ae() {
|
|
|
1153
1153
|
* });
|
|
1154
1154
|
*/
|
|
1155
1155
|
extend: function(_) {
|
|
1156
|
-
var
|
|
1157
|
-
return _ &&
|
|
1158
|
-
|
|
1159
|
-
}),
|
|
1156
|
+
var U = f(this);
|
|
1157
|
+
return _ && U.mixIn(_), (!U.hasOwnProperty("init") || this.init === U.init) && (U.init = function() {
|
|
1158
|
+
U.$super.init.apply(this, arguments);
|
|
1159
|
+
}), U.init.prototype = U, U.$super = this, U;
|
|
1160
1160
|
},
|
|
1161
1161
|
/**
|
|
1162
1162
|
* Extends this object and runs the init method.
|
|
@@ -1200,8 +1200,8 @@ function ae() {
|
|
|
1200
1200
|
* });
|
|
1201
1201
|
*/
|
|
1202
1202
|
mixIn: function(_) {
|
|
1203
|
-
for (var
|
|
1204
|
-
_.hasOwnProperty(
|
|
1203
|
+
for (var U in _)
|
|
1204
|
+
_.hasOwnProperty(U) && (this[U] = _[U]);
|
|
1205
1205
|
_.hasOwnProperty("toString") && (this.toString = _.toString);
|
|
1206
1206
|
},
|
|
1207
1207
|
/**
|
|
@@ -1230,8 +1230,8 @@ function ae() {
|
|
|
1230
1230
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
1231
1231
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
1232
1232
|
*/
|
|
1233
|
-
init: function(_,
|
|
1234
|
-
_ = this.words = _ || [],
|
|
1233
|
+
init: function(_, U) {
|
|
1234
|
+
_ = this.words = _ || [], U != p ? this.sigBytes = U : this.sigBytes = _.length * 4;
|
|
1235
1235
|
},
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Converts this word array to a string.
|
|
@@ -1261,15 +1261,15 @@ function ae() {
|
|
|
1261
1261
|
* wordArray1.concat(wordArray2);
|
|
1262
1262
|
*/
|
|
1263
1263
|
concat: function(_) {
|
|
1264
|
-
var
|
|
1264
|
+
var U = this.words, v = _.words, T = this.sigBytes, x = _.sigBytes;
|
|
1265
1265
|
if (this.clamp(), T % 4)
|
|
1266
1266
|
for (var S = 0; S < x; S++) {
|
|
1267
1267
|
var G = v[S >>> 2] >>> 24 - S % 4 * 8 & 255;
|
|
1268
|
-
|
|
1268
|
+
U[T + S >>> 2] |= G << 24 - (T + S) % 4 * 8;
|
|
1269
1269
|
}
|
|
1270
1270
|
else
|
|
1271
1271
|
for (var O = 0; O < x; O += 4)
|
|
1272
|
-
|
|
1272
|
+
U[T + O >>> 2] = v[O >>> 2];
|
|
1273
1273
|
return this.sigBytes += x, this;
|
|
1274
1274
|
},
|
|
1275
1275
|
/**
|
|
@@ -1280,8 +1280,8 @@ function ae() {
|
|
|
1280
1280
|
* wordArray.clamp();
|
|
1281
1281
|
*/
|
|
1282
1282
|
clamp: function() {
|
|
1283
|
-
var _ = this.words,
|
|
1284
|
-
_[
|
|
1283
|
+
var _ = this.words, U = this.sigBytes;
|
|
1284
|
+
_[U >>> 2] &= 4294967295 << 32 - U % 4 * 8, _.length = n.ceil(U / 4);
|
|
1285
1285
|
},
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Creates a copy of this word array.
|
|
@@ -1310,9 +1310,9 @@ function ae() {
|
|
|
1310
1310
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
1311
1311
|
*/
|
|
1312
1312
|
random: function(_) {
|
|
1313
|
-
for (var
|
|
1314
|
-
|
|
1315
|
-
return new s.init(
|
|
1313
|
+
for (var U = [], v = 0; v < _; v += 4)
|
|
1314
|
+
U.push(b());
|
|
1315
|
+
return new s.init(U, _);
|
|
1316
1316
|
}
|
|
1317
1317
|
}), o = l.enc = {}, u = o.Hex = {
|
|
1318
1318
|
/**
|
|
@@ -1329,8 +1329,8 @@ function ae() {
|
|
|
1329
1329
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
1330
1330
|
*/
|
|
1331
1331
|
stringify: function(_) {
|
|
1332
|
-
for (var
|
|
1333
|
-
var S =
|
|
1332
|
+
for (var U = _.words, v = _.sigBytes, T = [], x = 0; x < v; x++) {
|
|
1333
|
+
var S = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
1334
1334
|
T.push((S >>> 4).toString(16)), T.push((S & 15).toString(16));
|
|
1335
1335
|
}
|
|
1336
1336
|
return T.join("");
|
|
@@ -1349,9 +1349,9 @@ function ae() {
|
|
|
1349
1349
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
1350
1350
|
*/
|
|
1351
1351
|
parse: function(_) {
|
|
1352
|
-
for (var
|
|
1352
|
+
for (var U = _.length, v = [], T = 0; T < U; T += 2)
|
|
1353
1353
|
v[T >>> 3] |= parseInt(_.substr(T, 2), 16) << 24 - T % 8 * 4;
|
|
1354
|
-
return new s.init(v,
|
|
1354
|
+
return new s.init(v, U / 2);
|
|
1355
1355
|
}
|
|
1356
1356
|
}, m = o.Latin1 = {
|
|
1357
1357
|
/**
|
|
@@ -1368,8 +1368,8 @@ function ae() {
|
|
|
1368
1368
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
1369
1369
|
*/
|
|
1370
1370
|
stringify: function(_) {
|
|
1371
|
-
for (var
|
|
1372
|
-
var S =
|
|
1371
|
+
for (var U = _.words, v = _.sigBytes, T = [], x = 0; x < v; x++) {
|
|
1372
|
+
var S = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
1373
1373
|
T.push(String.fromCharCode(S));
|
|
1374
1374
|
}
|
|
1375
1375
|
return T.join("");
|
|
@@ -1388,9 +1388,9 @@ function ae() {
|
|
|
1388
1388
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
1389
1389
|
*/
|
|
1390
1390
|
parse: function(_) {
|
|
1391
|
-
for (var
|
|
1391
|
+
for (var U = _.length, v = [], T = 0; T < U; T++)
|
|
1392
1392
|
v[T >>> 2] |= (_.charCodeAt(T) & 255) << 24 - T % 4 * 8;
|
|
1393
|
-
return new s.init(v,
|
|
1393
|
+
return new s.init(v, U);
|
|
1394
1394
|
}
|
|
1395
1395
|
}, c = o.Utf8 = {
|
|
1396
1396
|
/**
|
|
@@ -1468,15 +1468,15 @@ function ae() {
|
|
|
1468
1468
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1469
1469
|
*/
|
|
1470
1470
|
_process: function(_) {
|
|
1471
|
-
var
|
|
1471
|
+
var U, v = this._data, T = v.words, x = v.sigBytes, S = this.blockSize, G = S * 4, O = x / G;
|
|
1472
1472
|
_ ? O = n.ceil(O) : O = n.max((O | 0) - this._minBufferSize, 0);
|
|
1473
1473
|
var C = O * S, h = n.min(C * 4, x);
|
|
1474
1474
|
if (C) {
|
|
1475
1475
|
for (var N = 0; N < C; N += S)
|
|
1476
1476
|
this._doProcessBlock(T, N);
|
|
1477
|
-
|
|
1477
|
+
U = T.splice(0, C), v.sigBytes -= h;
|
|
1478
1478
|
}
|
|
1479
|
-
return new s.init(
|
|
1479
|
+
return new s.init(U, h);
|
|
1480
1480
|
},
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Creates a copy of this object.
|
|
@@ -1551,8 +1551,8 @@ function ae() {
|
|
|
1551
1551
|
*/
|
|
1552
1552
|
finalize: function(_) {
|
|
1553
1553
|
_ && this._append(_);
|
|
1554
|
-
var
|
|
1555
|
-
return
|
|
1554
|
+
var U = this._doFinalize();
|
|
1555
|
+
return U;
|
|
1556
1556
|
},
|
|
1557
1557
|
blockSize: 16,
|
|
1558
1558
|
/**
|
|
@@ -1569,8 +1569,8 @@ function ae() {
|
|
|
1569
1569
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1570
1570
|
*/
|
|
1571
1571
|
_createHelper: function(_) {
|
|
1572
|
-
return function(
|
|
1573
|
-
return new _.init(v).finalize(
|
|
1572
|
+
return function(U, v) {
|
|
1573
|
+
return new _.init(v).finalize(U);
|
|
1574
1574
|
};
|
|
1575
1575
|
},
|
|
1576
1576
|
/**
|
|
@@ -1587,8 +1587,8 @@ function ae() {
|
|
|
1587
1587
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1588
1588
|
*/
|
|
1589
1589
|
_createHmacHelper: function(_) {
|
|
1590
|
-
return function(
|
|
1591
|
-
return new y.HMAC.init(_, v).finalize(
|
|
1590
|
+
return function(U, v) {
|
|
1591
|
+
return new y.HMAC.init(_, v).finalize(U);
|
|
1592
1592
|
};
|
|
1593
1593
|
}
|
|
1594
1594
|
});
|
|
@@ -1606,8 +1606,8 @@ function Zi() {
|
|
|
1606
1606
|
e.exports = n(ae());
|
|
1607
1607
|
})(rr, function(t) {
|
|
1608
1608
|
return (function(n) {
|
|
1609
|
-
var p = t, g = p.lib,
|
|
1610
|
-
l.Word =
|
|
1609
|
+
var p = t, g = p.lib, b = g.Base, f = g.WordArray, l = p.x64 = {};
|
|
1610
|
+
l.Word = b.extend({
|
|
1611
1611
|
/**
|
|
1612
1612
|
* Initializes a newly created 64-bit word.
|
|
1613
1613
|
*
|
|
@@ -1770,7 +1770,7 @@ function Zi() {
|
|
|
1770
1770
|
// var high = (this.high + word.high + carry) | 0;
|
|
1771
1771
|
// return X64Word.create(high, low);
|
|
1772
1772
|
// }
|
|
1773
|
-
}), l.WordArray =
|
|
1773
|
+
}), l.WordArray = b.extend({
|
|
1774
1774
|
/**
|
|
1775
1775
|
* Initializes a newly created word array.
|
|
1776
1776
|
*
|
|
@@ -1820,7 +1820,7 @@ function Zi() {
|
|
|
1820
1820
|
* var clone = x64WordArray.clone();
|
|
1821
1821
|
*/
|
|
1822
1822
|
clone: function() {
|
|
1823
|
-
for (var a =
|
|
1823
|
+
for (var a = b.clone.call(this), i = a.words = this.words.slice(0), s = i.length, o = 0; o < s; o++)
|
|
1824
1824
|
i[o] = i[o].clone();
|
|
1825
1825
|
return a;
|
|
1826
1826
|
}
|
|
@@ -1837,13 +1837,13 @@ function sr() {
|
|
|
1837
1837
|
})(or, function(t) {
|
|
1838
1838
|
return (function() {
|
|
1839
1839
|
if (typeof ArrayBuffer == "function") {
|
|
1840
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
1840
|
+
var n = t, p = n.lib, g = p.WordArray, b = g.init, f = g.init = function(l) {
|
|
1841
1841
|
if (l instanceof ArrayBuffer && (l = new Uint8Array(l)), (l instanceof Int8Array || typeof Uint8ClampedArray < "u" && l instanceof Uint8ClampedArray || l instanceof Int16Array || l instanceof Uint16Array || l instanceof Int32Array || l instanceof Uint32Array || l instanceof Float32Array || l instanceof Float64Array) && (l = new Uint8Array(l.buffer, l.byteOffset, l.byteLength)), l instanceof Uint8Array) {
|
|
1842
1842
|
for (var a = l.byteLength, i = [], s = 0; s < a; s++)
|
|
1843
1843
|
i[s >>> 2] |= l[s] << 24 - s % 4 * 8;
|
|
1844
|
-
|
|
1844
|
+
b.call(this, i, a);
|
|
1845
1845
|
} else
|
|
1846
|
-
|
|
1846
|
+
b.apply(this, arguments);
|
|
1847
1847
|
};
|
|
1848
1848
|
f.prototype = g;
|
|
1849
1849
|
}
|
|
@@ -1858,8 +1858,8 @@ function ur() {
|
|
|
1858
1858
|
e.exports = n(ae());
|
|
1859
1859
|
})(mr, function(t) {
|
|
1860
1860
|
return (function() {
|
|
1861
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
1862
|
-
|
|
1861
|
+
var n = t, p = n.lib, g = p.WordArray, b = n.enc;
|
|
1862
|
+
b.Utf16 = b.Utf16BE = {
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Converts a word array to a UTF-16 BE string.
|
|
1865
1865
|
*
|
|
@@ -1898,7 +1898,7 @@ function ur() {
|
|
|
1898
1898
|
i[s >>> 1] |= l.charCodeAt(s) << 16 - s % 2 * 16;
|
|
1899
1899
|
return g.create(i, a * 2);
|
|
1900
1900
|
}
|
|
1901
|
-
},
|
|
1901
|
+
}, b.Utf16LE = {
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Converts a word array to a UTF-16 LE string.
|
|
1904
1904
|
*
|
|
@@ -1952,8 +1952,8 @@ function Sa() {
|
|
|
1952
1952
|
e.exports = n(ae());
|
|
1953
1953
|
})(pr, function(t) {
|
|
1954
1954
|
return (function() {
|
|
1955
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
1956
|
-
|
|
1955
|
+
var n = t, p = n.lib, g = p.WordArray, b = n.enc;
|
|
1956
|
+
b.Base64 = {
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Converts a word array to a Base64 string.
|
|
1959
1959
|
*
|
|
@@ -1973,10 +1973,10 @@ function Sa() {
|
|
|
1973
1973
|
for (var o = [], u = 0; u < i; u += 3)
|
|
1974
1974
|
for (var m = a[u >>> 2] >>> 24 - u % 4 * 8 & 255, c = a[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, d = a[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, y = m << 16 | c << 8 | d, _ = 0; _ < 4 && u + _ * 0.75 < i; _++)
|
|
1975
1975
|
o.push(s.charAt(y >>> 6 * (3 - _) & 63));
|
|
1976
|
-
var
|
|
1977
|
-
if (
|
|
1976
|
+
var U = s.charAt(64);
|
|
1977
|
+
if (U)
|
|
1978
1978
|
for (; o.length % 4; )
|
|
1979
|
-
o.push(
|
|
1979
|
+
o.push(U);
|
|
1980
1980
|
return o.join("");
|
|
1981
1981
|
},
|
|
1982
1982
|
/**
|
|
@@ -2027,8 +2027,8 @@ function dr() {
|
|
|
2027
2027
|
e.exports = n(ae());
|
|
2028
2028
|
})(gr, function(t) {
|
|
2029
2029
|
return (function() {
|
|
2030
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
2031
|
-
|
|
2030
|
+
var n = t, p = n.lib, g = p.WordArray, b = n.enc;
|
|
2031
|
+
b.Base64url = {
|
|
2032
2032
|
/**
|
|
2033
2033
|
* Converts a word array to a Base64url string.
|
|
2034
2034
|
*
|
|
@@ -2049,8 +2049,8 @@ function dr() {
|
|
|
2049
2049
|
var i = l.words, s = l.sigBytes, o = a ? this._safe_map : this._map;
|
|
2050
2050
|
l.clamp();
|
|
2051
2051
|
for (var u = [], m = 0; m < s; m += 3)
|
|
2052
|
-
for (var c = i[m >>> 2] >>> 24 - m % 4 * 8 & 255, d = i[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, y = i[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, _ = c << 16 | d << 8 | y,
|
|
2053
|
-
u.push(o.charAt(_ >>> 6 * (3 -
|
|
2052
|
+
for (var c = i[m >>> 2] >>> 24 - m % 4 * 8 & 255, d = i[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, y = i[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, _ = c << 16 | d << 8 | y, U = 0; U < 4 && m + U * 0.75 < s; U++)
|
|
2053
|
+
u.push(o.charAt(_ >>> 6 * (3 - U) & 63));
|
|
2054
2054
|
var v = o.charAt(64);
|
|
2055
2055
|
if (v)
|
|
2056
2056
|
for (; u.length % 4; )
|
|
@@ -2109,14 +2109,14 @@ function Da() {
|
|
|
2109
2109
|
e.exports = n(ae());
|
|
2110
2110
|
})(cr, function(t) {
|
|
2111
2111
|
return (function(n) {
|
|
2112
|
-
var p = t, g = p.lib,
|
|
2112
|
+
var p = t, g = p.lib, b = g.WordArray, f = g.Hasher, l = p.algo, a = [];
|
|
2113
2113
|
(function() {
|
|
2114
2114
|
for (var c = 0; c < 64; c++)
|
|
2115
2115
|
a[c] = n.abs(n.sin(c + 1)) * 4294967296 | 0;
|
|
2116
2116
|
})();
|
|
2117
2117
|
var i = l.MD5 = f.extend({
|
|
2118
2118
|
_doReset: function() {
|
|
2119
|
-
this._hash = new
|
|
2119
|
+
this._hash = new b.init([
|
|
2120
2120
|
1732584193,
|
|
2121
2121
|
4023233417,
|
|
2122
2122
|
2562383102,
|
|
@@ -2125,8 +2125,8 @@ function Da() {
|
|
|
2125
2125
|
},
|
|
2126
2126
|
_doProcessBlock: function(c, d) {
|
|
2127
2127
|
for (var y = 0; y < 16; y++) {
|
|
2128
|
-
var _ = d + y,
|
|
2129
|
-
c[_] = (
|
|
2128
|
+
var _ = d + y, U = c[_];
|
|
2129
|
+
c[_] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2130
2130
|
}
|
|
2131
2131
|
var v = this._hash.words, T = c[d + 0], x = c[d + 1], S = c[d + 2], G = c[d + 3], O = c[d + 4], C = c[d + 5], h = c[d + 6], N = c[d + 7], E = c[d + 8], P = c[d + 9], M = c[d + 10], R = c[d + 11], B = c[d + 12], A = c[d + 13], H = c[d + 14], W = c[d + 15], L = v[0], D = v[1], F = v[2], w = v[3];
|
|
2132
2132
|
L = s(L, D, F, w, T, 7, a[0]), w = s(w, L, D, F, x, 12, a[1]), F = s(F, w, L, D, S, 17, a[2]), D = s(D, F, w, L, G, 22, a[3]), L = s(L, D, F, w, O, 7, a[4]), w = s(w, L, D, F, C, 12, a[5]), F = s(F, w, L, D, h, 17, a[6]), D = s(D, F, w, L, N, 22, a[7]), L = s(L, D, F, w, E, 7, a[8]), w = s(w, L, D, F, P, 12, a[9]), F = s(F, w, L, D, M, 17, a[10]), D = s(D, F, w, L, R, 22, a[11]), L = s(L, D, F, w, B, 7, a[12]), w = s(w, L, D, F, A, 12, a[13]), F = s(F, w, L, D, H, 17, a[14]), D = s(D, F, w, L, W, 22, a[15]), L = o(L, D, F, w, x, 5, a[16]), w = o(w, L, D, F, h, 9, a[17]), F = o(F, w, L, D, R, 14, a[18]), D = o(D, F, w, L, T, 20, a[19]), L = o(L, D, F, w, C, 5, a[20]), w = o(w, L, D, F, M, 9, a[21]), F = o(F, w, L, D, W, 14, a[22]), D = o(D, F, w, L, O, 20, a[23]), L = o(L, D, F, w, P, 5, a[24]), w = o(w, L, D, F, H, 9, a[25]), F = o(F, w, L, D, G, 14, a[26]), D = o(D, F, w, L, E, 20, a[27]), L = o(L, D, F, w, A, 5, a[28]), w = o(w, L, D, F, S, 9, a[29]), F = o(F, w, L, D, N, 14, a[30]), D = o(D, F, w, L, B, 20, a[31]), L = u(L, D, F, w, C, 4, a[32]), w = u(w, L, D, F, E, 11, a[33]), F = u(F, w, L, D, R, 16, a[34]), D = u(D, F, w, L, H, 23, a[35]), L = u(L, D, F, w, x, 4, a[36]), w = u(w, L, D, F, O, 11, a[37]), F = u(F, w, L, D, N, 16, a[38]), D = u(D, F, w, L, M, 23, a[39]), L = u(L, D, F, w, A, 4, a[40]), w = u(w, L, D, F, T, 11, a[41]), F = u(F, w, L, D, G, 16, a[42]), D = u(D, F, w, L, h, 23, a[43]), L = u(L, D, F, w, P, 4, a[44]), w = u(w, L, D, F, B, 11, a[45]), F = u(F, w, L, D, W, 16, a[46]), D = u(D, F, w, L, S, 23, a[47]), L = m(L, D, F, w, T, 6, a[48]), w = m(w, L, D, F, N, 10, a[49]), F = m(F, w, L, D, H, 15, a[50]), D = m(D, F, w, L, C, 21, a[51]), L = m(L, D, F, w, B, 6, a[52]), w = m(w, L, D, F, G, 10, a[53]), F = m(F, w, L, D, M, 15, a[54]), D = m(D, F, w, L, x, 21, a[55]), L = m(L, D, F, w, E, 6, a[56]), w = m(w, L, D, F, W, 10, a[57]), F = m(F, w, L, D, h, 15, a[58]), D = m(D, F, w, L, A, 21, a[59]), L = m(L, D, F, w, O, 6, a[60]), w = m(w, L, D, F, R, 10, a[61]), F = m(F, w, L, D, S, 15, a[62]), D = m(D, F, w, L, P, 21, a[63]), v[0] = v[0] + L | 0, v[1] = v[1] + D | 0, v[2] = v[2] + F | 0, v[3] = v[3] + w | 0;
|
|
@@ -2134,8 +2134,8 @@ function Da() {
|
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
2135
|
var c = this._data, d = c.words, y = this._nDataBytes * 8, _ = c.sigBytes * 8;
|
|
2136
2136
|
d[_ >>> 5] |= 128 << 24 - _ % 32;
|
|
2137
|
-
var
|
|
2138
|
-
d[(_ + 64 >>> 9 << 4) + 15] = (
|
|
2137
|
+
var U = n.floor(y / 4294967296), v = y;
|
|
2138
|
+
d[(_ + 64 >>> 9 << 4) + 15] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, d[(_ + 64 >>> 9 << 4) + 14] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, c.sigBytes = (d.length + 1) * 4, this._process();
|
|
2139
2139
|
for (var T = this._hash, x = T.words, S = 0; S < 4; S++) {
|
|
2140
2140
|
var G = x[S];
|
|
2141
2141
|
x[S] = (G << 8 | G >>> 24) & 16711935 | (G << 24 | G >>> 8) & 4278255360;
|
|
@@ -2147,20 +2147,20 @@ function Da() {
|
|
|
2147
2147
|
return c._hash = this._hash.clone(), c;
|
|
2148
2148
|
}
|
|
2149
2149
|
});
|
|
2150
|
-
function s(c, d, y, _,
|
|
2151
|
-
var x = c + (d & y | ~d & _) +
|
|
2150
|
+
function s(c, d, y, _, U, v, T) {
|
|
2151
|
+
var x = c + (d & y | ~d & _) + U + T;
|
|
2152
2152
|
return (x << v | x >>> 32 - v) + d;
|
|
2153
2153
|
}
|
|
2154
|
-
function o(c, d, y, _,
|
|
2155
|
-
var x = c + (d & _ | y & ~_) +
|
|
2154
|
+
function o(c, d, y, _, U, v, T) {
|
|
2155
|
+
var x = c + (d & _ | y & ~_) + U + T;
|
|
2156
2156
|
return (x << v | x >>> 32 - v) + d;
|
|
2157
2157
|
}
|
|
2158
|
-
function u(c, d, y, _,
|
|
2159
|
-
var x = c + (d ^ y ^ _) +
|
|
2158
|
+
function u(c, d, y, _, U, v, T) {
|
|
2159
|
+
var x = c + (d ^ y ^ _) + U + T;
|
|
2160
2160
|
return (x << v | x >>> 32 - v) + d;
|
|
2161
2161
|
}
|
|
2162
|
-
function m(c, d, y, _,
|
|
2163
|
-
var x = c + (y ^ (d | ~_)) +
|
|
2162
|
+
function m(c, d, y, _, U, v, T) {
|
|
2163
|
+
var x = c + (y ^ (d | ~_)) + U + T;
|
|
2164
2164
|
return (x << v | x >>> 32 - v) + d;
|
|
2165
2165
|
}
|
|
2166
2166
|
p.MD5 = f._createHelper(i), p.HmacMD5 = f._createHmacHelper(i);
|
|
@@ -2175,7 +2175,7 @@ function Xn() {
|
|
|
2175
2175
|
e.exports = n(ae());
|
|
2176
2176
|
})(fr, function(t) {
|
|
2177
2177
|
return (function() {
|
|
2178
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
2178
|
+
var n = t, p = n.lib, g = p.WordArray, b = p.Hasher, f = n.algo, l = [], a = f.SHA1 = b.extend({
|
|
2179
2179
|
_doReset: function() {
|
|
2180
2180
|
this._hash = new g.init([
|
|
2181
2181
|
1732584193,
|
|
@@ -2190,8 +2190,8 @@ function Xn() {
|
|
|
2190
2190
|
if (_ < 16)
|
|
2191
2191
|
l[_] = i[s + _] | 0;
|
|
2192
2192
|
else {
|
|
2193
|
-
var
|
|
2194
|
-
l[_] =
|
|
2193
|
+
var U = l[_ - 3] ^ l[_ - 8] ^ l[_ - 14] ^ l[_ - 16];
|
|
2194
|
+
l[_] = U << 1 | U >>> 31;
|
|
2195
2195
|
}
|
|
2196
2196
|
var v = (u << 5 | u >>> 27) + y + l[_];
|
|
2197
2197
|
_ < 20 ? v += (m & c | ~m & d) + 1518500249 : _ < 40 ? v += (m ^ c ^ d) + 1859775393 : _ < 60 ? v += (m & c | m & d | c & d) - 1894007588 : v += (m ^ c ^ d) - 899497514, y = d, d = c, c = m << 30 | m >>> 2, m = u, u = v;
|
|
@@ -2203,11 +2203,11 @@ function Xn() {
|
|
|
2203
2203
|
return s[u >>> 5] |= 128 << 24 - u % 32, s[(u + 64 >>> 9 << 4) + 14] = Math.floor(o / 4294967296), s[(u + 64 >>> 9 << 4) + 15] = o, i.sigBytes = s.length * 4, this._process(), this._hash;
|
|
2204
2204
|
},
|
|
2205
2205
|
clone: function() {
|
|
2206
|
-
var i =
|
|
2206
|
+
var i = b.clone.call(this);
|
|
2207
2207
|
return i._hash = this._hash.clone(), i;
|
|
2208
2208
|
}
|
|
2209
2209
|
});
|
|
2210
|
-
n.SHA1 =
|
|
2210
|
+
n.SHA1 = b._createHelper(a), n.HmacSHA1 = b._createHmacHelper(a);
|
|
2211
2211
|
})(), t.SHA1;
|
|
2212
2212
|
});
|
|
2213
2213
|
})(gi)), gi.exports;
|
|
@@ -2219,11 +2219,11 @@ function gt() {
|
|
|
2219
2219
|
e.exports = n(ae());
|
|
2220
2220
|
})(_r, function(t) {
|
|
2221
2221
|
return (function(n) {
|
|
2222
|
-
var p = t, g = p.lib,
|
|
2222
|
+
var p = t, g = p.lib, b = g.WordArray, f = g.Hasher, l = p.algo, a = [], i = [];
|
|
2223
2223
|
(function() {
|
|
2224
2224
|
function u(y) {
|
|
2225
|
-
for (var _ = n.sqrt(y),
|
|
2226
|
-
if (!(y %
|
|
2225
|
+
for (var _ = n.sqrt(y), U = 2; U <= _; U++)
|
|
2226
|
+
if (!(y % U))
|
|
2227
2227
|
return !1;
|
|
2228
2228
|
return !0;
|
|
2229
2229
|
}
|
|
@@ -2235,10 +2235,10 @@ function gt() {
|
|
|
2235
2235
|
})();
|
|
2236
2236
|
var s = [], o = l.SHA256 = f.extend({
|
|
2237
2237
|
_doReset: function() {
|
|
2238
|
-
this._hash = new
|
|
2238
|
+
this._hash = new b.init(a.slice(0));
|
|
2239
2239
|
},
|
|
2240
2240
|
_doProcessBlock: function(u, m) {
|
|
2241
|
-
for (var c = this._hash.words, d = c[0], y = c[1], _ = c[2],
|
|
2241
|
+
for (var c = this._hash.words, d = c[0], y = c[1], _ = c[2], U = c[3], v = c[4], T = c[5], x = c[6], S = c[7], G = 0; G < 64; G++) {
|
|
2242
2242
|
if (G < 16)
|
|
2243
2243
|
s[G] = u[m + G] | 0;
|
|
2244
2244
|
else {
|
|
@@ -2246,9 +2246,9 @@ function gt() {
|
|
|
2246
2246
|
s[G] = C + s[G - 7] + N + s[G - 16];
|
|
2247
2247
|
}
|
|
2248
2248
|
var E = v & T ^ ~v & x, P = d & y ^ d & _ ^ y & _, M = (d << 30 | d >>> 2) ^ (d << 19 | d >>> 13) ^ (d << 10 | d >>> 22), R = (v << 26 | v >>> 6) ^ (v << 21 | v >>> 11) ^ (v << 7 | v >>> 25), B = S + R + E + i[G] + s[G], A = M + P;
|
|
2249
|
-
S = x, x = T, T = v, v =
|
|
2249
|
+
S = x, x = T, T = v, v = U + B | 0, U = _, _ = y, y = d, d = B + A | 0;
|
|
2250
2250
|
}
|
|
2251
|
-
c[0] = c[0] + d | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] +
|
|
2251
|
+
c[0] = c[0] + d | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] + U | 0, c[4] = c[4] + v | 0, c[5] = c[5] + T | 0, c[6] = c[6] + x | 0, c[7] = c[7] + S | 0;
|
|
2252
2252
|
},
|
|
2253
2253
|
_doFinalize: function() {
|
|
2254
2254
|
var u = this._data, m = u.words, c = this._nDataBytes * 8, d = u.sigBytes * 8;
|
|
@@ -2271,7 +2271,7 @@ function Ur() {
|
|
|
2271
2271
|
e.exports = n(ae(), gt());
|
|
2272
2272
|
})(yr, function(t) {
|
|
2273
2273
|
return (function() {
|
|
2274
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
2274
|
+
var n = t, p = n.lib, g = p.WordArray, b = n.algo, f = b.SHA256, l = b.SHA224 = f.extend({
|
|
2275
2275
|
_doReset: function() {
|
|
2276
2276
|
this._hash = new g.init([
|
|
2277
2277
|
3238371032,
|
|
@@ -2301,7 +2301,7 @@ function el() {
|
|
|
2301
2301
|
e.exports = n(ae(), Zi());
|
|
2302
2302
|
})(br, function(t) {
|
|
2303
2303
|
return (function() {
|
|
2304
|
-
var n = t, p = n.lib, g = p.Hasher,
|
|
2304
|
+
var n = t, p = n.lib, g = p.Hasher, b = n.x64, f = b.Word, l = b.WordArray, a = n.algo;
|
|
2305
2305
|
function i() {
|
|
2306
2306
|
return f.create.apply(f, arguments);
|
|
2307
2307
|
}
|
|
@@ -2405,7 +2405,7 @@ function el() {
|
|
|
2405
2405
|
]);
|
|
2406
2406
|
},
|
|
2407
2407
|
_doProcessBlock: function(m, c) {
|
|
2408
|
-
for (var d = this._hash.words, y = d[0], _ = d[1],
|
|
2408
|
+
for (var d = this._hash.words, y = d[0], _ = d[1], U = d[2], v = d[3], T = d[4], x = d[5], S = d[6], G = d[7], O = y.high, C = y.low, h = _.high, N = _.low, E = U.high, P = U.low, M = v.high, R = v.low, B = T.high, A = T.low, H = x.high, W = x.low, L = S.high, D = S.low, F = G.high, w = G.low, K = O, $ = C, Q = h, J = N, X = E, ie = P, Ue = M, pe = R, oe = B, fe = A, ke = H, _e = W, Xe = L, Ce = D, Ge = F, ea = w, Me = 0; Me < 80; Me++) {
|
|
2409
2409
|
var ve, Oe, aa = o[Me];
|
|
2410
2410
|
if (Me < 16)
|
|
2411
2411
|
Oe = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
|
|
@@ -2416,7 +2416,7 @@ function el() {
|
|
|
2416
2416
|
var ca = oe & ke ^ ~oe & Xe, fa = fe & _e ^ ~fe & Ce, La = K & Q ^ K & X ^ Q & X, Ga = $ & J ^ $ & ie ^ J & ie, ba = (K >>> 28 | $ << 4) ^ (K << 30 | $ >>> 2) ^ (K << 25 | $ >>> 7), Ma = ($ >>> 28 | K << 4) ^ ($ << 30 | K >>> 2) ^ ($ << 25 | K >>> 7), Ra = (oe >>> 14 | fe << 18) ^ (oe >>> 18 | fe << 14) ^ (oe << 23 | fe >>> 9), Se = (fe >>> 14 | oe << 18) ^ (fe >>> 18 | oe << 14) ^ (fe << 23 | oe >>> 9), V = s[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Ra + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + Oe + (Pe >>> 0 < ve >>> 0 ? 1 : 0), Ya = Ma + Ga, qi = ba + La + (Ya >>> 0 < Ma >>> 0 ? 1 : 0);
|
|
2417
2417
|
Ge = Xe, ea = Ce, Xe = ke, Ce = _e, ke = oe, _e = fe, fe = pe + Pe | 0, oe = Ue + na + (fe >>> 0 < pe >>> 0 ? 1 : 0) | 0, Ue = X, pe = ie, X = Q, ie = J, Q = K, J = $, $ = Pe + Ya | 0, K = na + qi + ($ >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
|
|
2418
2418
|
}
|
|
2419
|
-
C = y.low = C + $, y.high = O + K + (C >>> 0 < $ >>> 0 ? 1 : 0), N = _.low = N + J, _.high = h + Q + (N >>> 0 < J >>> 0 ? 1 : 0), P =
|
|
2419
|
+
C = y.low = C + $, y.high = O + K + (C >>> 0 < $ >>> 0 ? 1 : 0), N = _.low = N + J, _.high = h + Q + (N >>> 0 < J >>> 0 ? 1 : 0), P = U.low = P + ie, U.high = E + X + (P >>> 0 < ie >>> 0 ? 1 : 0), R = v.low = R + pe, v.high = M + Ue + (R >>> 0 < pe >>> 0 ? 1 : 0), A = T.low = A + fe, T.high = B + oe + (A >>> 0 < fe >>> 0 ? 1 : 0), W = x.low = W + _e, x.high = H + ke + (W >>> 0 < _e >>> 0 ? 1 : 0), D = S.low = D + Ce, S.high = L + Xe + (D >>> 0 < Ce >>> 0 ? 1 : 0), w = G.low = w + ea, G.high = F + Ge + (w >>> 0 < ea >>> 0 ? 1 : 0);
|
|
2420
2420
|
},
|
|
2421
2421
|
_doFinalize: function() {
|
|
2422
2422
|
var m = this._data, c = m.words, d = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
@@ -2442,9 +2442,9 @@ function vr() {
|
|
|
2442
2442
|
e.exports = n(ae(), Zi(), el());
|
|
2443
2443
|
})(Cr, function(t) {
|
|
2444
2444
|
return (function() {
|
|
2445
|
-
var n = t, p = n.x64, g = p.Word,
|
|
2445
|
+
var n = t, p = n.x64, g = p.Word, b = p.WordArray, f = n.algo, l = f.SHA512, a = f.SHA384 = l.extend({
|
|
2446
2446
|
_doReset: function() {
|
|
2447
|
-
this._hash = new
|
|
2447
|
+
this._hash = new b.init([
|
|
2448
2448
|
new g.init(3418070365, 3238371032),
|
|
2449
2449
|
new g.init(1654270250, 914150663),
|
|
2450
2450
|
new g.init(2438529370, 812702999),
|
|
@@ -2472,12 +2472,12 @@ function Tr() {
|
|
|
2472
2472
|
e.exports = n(ae(), Zi());
|
|
2473
2473
|
})(hr, function(t) {
|
|
2474
2474
|
return (function(n) {
|
|
2475
|
-
var p = t, g = p.lib,
|
|
2475
|
+
var p = t, g = p.lib, b = g.WordArray, f = g.Hasher, l = p.x64, a = l.Word, i = p.algo, s = [], o = [], u = [];
|
|
2476
2476
|
(function() {
|
|
2477
2477
|
for (var d = 1, y = 0, _ = 0; _ < 24; _++) {
|
|
2478
2478
|
s[d + 5 * y] = (_ + 1) * (_ + 2) / 2 % 64;
|
|
2479
|
-
var
|
|
2480
|
-
d =
|
|
2479
|
+
var U = y % 5, v = (2 * d + 3 * y) % 5;
|
|
2480
|
+
d = U, y = v;
|
|
2481
2481
|
}
|
|
2482
2482
|
for (var d = 0; d < 5; d++)
|
|
2483
2483
|
for (var y = 0; y < 5; y++)
|
|
@@ -2516,7 +2516,7 @@ function Tr() {
|
|
|
2516
2516
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2517
2517
|
},
|
|
2518
2518
|
_doProcessBlock: function(d, y) {
|
|
2519
|
-
for (var _ = this._state,
|
|
2519
|
+
for (var _ = this._state, U = this.blockSize / 2, v = 0; v < U; v++) {
|
|
2520
2520
|
var T = d[y + 2 * v], x = d[y + 2 * v + 1];
|
|
2521
2521
|
T = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
2522
2522
|
var S = _[v];
|
|
@@ -2556,13 +2556,13 @@ function Tr() {
|
|
|
2556
2556
|
_doFinalize: function() {
|
|
2557
2557
|
var d = this._data, y = d.words;
|
|
2558
2558
|
this._nDataBytes * 8;
|
|
2559
|
-
var _ = d.sigBytes * 8,
|
|
2560
|
-
y[_ >>> 5] |= 1 << 24 - _ % 32, y[(n.ceil((_ + 1) /
|
|
2559
|
+
var _ = d.sigBytes * 8, U = this.blockSize * 32;
|
|
2560
|
+
y[_ >>> 5] |= 1 << 24 - _ % 32, y[(n.ceil((_ + 1) / U) * U >>> 5) - 1] |= 128, d.sigBytes = y.length * 4, this._process();
|
|
2561
2561
|
for (var v = this._state, T = this.cfg.outputLength / 8, x = T / 8, S = [], G = 0; G < x; G++) {
|
|
2562
2562
|
var O = v[G], C = O.high, h = O.low;
|
|
2563
2563
|
C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, h = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360, S.push(h), S.push(C);
|
|
2564
2564
|
}
|
|
2565
|
-
return new
|
|
2565
|
+
return new b.init(S, T);
|
|
2566
2566
|
},
|
|
2567
2567
|
clone: function() {
|
|
2568
2568
|
for (var d = f.clone.call(this), y = d._state = this._state.slice(0), _ = 0; _ < 25; _++)
|
|
@@ -2582,7 +2582,7 @@ function xr() {
|
|
|
2582
2582
|
e.exports = n(ae());
|
|
2583
2583
|
})(kr, function(t) {
|
|
2584
2584
|
return (function(n) {
|
|
2585
|
-
var p = t, g = p.lib,
|
|
2585
|
+
var p = t, g = p.lib, b = g.WordArray, f = g.Hasher, l = p.algo, a = b.create([
|
|
2586
2586
|
0,
|
|
2587
2587
|
1,
|
|
2588
2588
|
2,
|
|
@@ -2663,7 +2663,7 @@ function xr() {
|
|
|
2663
2663
|
6,
|
|
2664
2664
|
15,
|
|
2665
2665
|
13
|
|
2666
|
-
]), i =
|
|
2666
|
+
]), i = b.create([
|
|
2667
2667
|
5,
|
|
2668
2668
|
14,
|
|
2669
2669
|
7,
|
|
@@ -2744,7 +2744,7 @@ function xr() {
|
|
|
2744
2744
|
3,
|
|
2745
2745
|
9,
|
|
2746
2746
|
11
|
|
2747
|
-
]), s =
|
|
2747
|
+
]), s = b.create([
|
|
2748
2748
|
11,
|
|
2749
2749
|
14,
|
|
2750
2750
|
15,
|
|
@@ -2825,7 +2825,7 @@ function xr() {
|
|
|
2825
2825
|
8,
|
|
2826
2826
|
5,
|
|
2827
2827
|
6
|
|
2828
|
-
]), o =
|
|
2828
|
+
]), o = b.create([
|
|
2829
2829
|
8,
|
|
2830
2830
|
9,
|
|
2831
2831
|
9,
|
|
@@ -2906,9 +2906,9 @@ function xr() {
|
|
|
2906
2906
|
13,
|
|
2907
2907
|
11,
|
|
2908
2908
|
11
|
|
2909
|
-
]), u =
|
|
2909
|
+
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), c = l.RIPEMD160 = f.extend({
|
|
2910
2910
|
_doReset: function() {
|
|
2911
|
-
this._hash =
|
|
2911
|
+
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2912
2912
|
},
|
|
2913
2913
|
_doProcessBlock: function(x, S) {
|
|
2914
2914
|
for (var G = 0; G < 16; G++) {
|
|
@@ -2918,7 +2918,7 @@ function xr() {
|
|
|
2918
2918
|
var h = this._hash.words, N = u.words, E = m.words, P = a.words, M = i.words, R = s.words, B = o.words, A, H, W, L, D, F, w, K, $, Q;
|
|
2919
2919
|
F = A = h[0], w = H = h[1], K = W = h[2], $ = L = h[3], Q = D = h[4];
|
|
2920
2920
|
for (var J, G = 0; G < 80; G += 1)
|
|
2921
|
-
J = A + x[S + P[G]] | 0, G < 16 ? J += d(H, W, L) + N[0] : G < 32 ? J += y(H, W, L) + N[1] : G < 48 ? J += _(H, W, L) + N[2] : G < 64 ? J +=
|
|
2921
|
+
J = A + x[S + P[G]] | 0, G < 16 ? J += d(H, W, L) + N[0] : G < 32 ? J += y(H, W, L) + N[1] : G < 48 ? J += _(H, W, L) + N[2] : G < 64 ? J += U(H, W, L) + N[3] : J += v(H, W, L) + N[4], J = J | 0, J = T(J, R[G]), J = J + D | 0, A = D, D = L, L = T(W, 10), W = H, H = J, J = F + x[S + M[G]] | 0, G < 16 ? J += v(w, K, $) + E[0] : G < 32 ? J += U(w, K, $) + E[1] : G < 48 ? J += _(w, K, $) + E[2] : G < 64 ? J += y(w, K, $) + E[3] : J += d(w, K, $) + E[4], J = J | 0, J = T(J, B[G]), J = J + Q | 0, F = Q, Q = $, $ = T(K, 10), K = w, w = J;
|
|
2922
2922
|
J = h[1] + W + $ | 0, h[1] = h[2] + L + Q | 0, h[2] = h[3] + D + F | 0, h[3] = h[4] + A + w | 0, h[4] = h[0] + H + K | 0, h[0] = J;
|
|
2923
2923
|
},
|
|
2924
2924
|
_doFinalize: function() {
|
|
@@ -2944,7 +2944,7 @@ function xr() {
|
|
|
2944
2944
|
function _(x, S, G) {
|
|
2945
2945
|
return (x | ~S) ^ G;
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2947
|
+
function U(x, S, G) {
|
|
2948
2948
|
return x & G | S & ~G;
|
|
2949
2949
|
}
|
|
2950
2950
|
function v(x, S, G) {
|
|
@@ -2965,7 +2965,7 @@ function dt() {
|
|
|
2965
2965
|
e.exports = n(ae());
|
|
2966
2966
|
})(Sr, function(t) {
|
|
2967
2967
|
(function() {
|
|
2968
|
-
var n = t, p = n.lib, g = p.Base,
|
|
2968
|
+
var n = t, p = n.lib, g = p.Base, b = n.enc, f = b.Utf8, l = n.algo;
|
|
2969
2969
|
l.HMAC = g.extend({
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Initializes a newly created HMAC.
|
|
@@ -3043,7 +3043,7 @@ function Er() {
|
|
|
3043
3043
|
e.exports = n(ae(), gt(), dt());
|
|
3044
3044
|
})(Dr, function(t) {
|
|
3045
3045
|
return (function() {
|
|
3046
|
-
var n = t, p = n.lib, g = p.Base,
|
|
3046
|
+
var n = t, p = n.lib, g = p.Base, b = p.WordArray, f = n.algo, l = f.SHA256, a = f.HMAC, i = f.PBKDF2 = g.extend({
|
|
3047
3047
|
/**
|
|
3048
3048
|
* Configuration options.
|
|
3049
3049
|
*
|
|
@@ -3083,7 +3083,7 @@ function Er() {
|
|
|
3083
3083
|
* var key = kdf.compute(password, salt);
|
|
3084
3084
|
*/
|
|
3085
3085
|
compute: function(s, o) {
|
|
3086
|
-
for (var u = this.cfg, m = a.create(u.hasher, s), c =
|
|
3086
|
+
for (var u = this.cfg, m = a.create(u.hasher, s), c = b.create(), d = b.create([1]), y = c.words, _ = d.words, U = u.keySize, v = u.iterations; y.length < U; ) {
|
|
3087
3087
|
var T = m.update(o).finalize(d);
|
|
3088
3088
|
m.reset();
|
|
3089
3089
|
for (var x = T.words, S = x.length, G = T, O = 1; O < v; O++) {
|
|
@@ -3093,7 +3093,7 @@ function Er() {
|
|
|
3093
3093
|
}
|
|
3094
3094
|
c.concat(T), _[0]++;
|
|
3095
3095
|
}
|
|
3096
|
-
return c.sigBytes =
|
|
3096
|
+
return c.sigBytes = U * 4, c;
|
|
3097
3097
|
}
|
|
3098
3098
|
});
|
|
3099
3099
|
n.PBKDF2 = function(s, o, u) {
|
|
@@ -3110,7 +3110,7 @@ function ya() {
|
|
|
3110
3110
|
e.exports = n(ae(), Xn(), dt());
|
|
3111
3111
|
})(Nr, function(t) {
|
|
3112
3112
|
return (function() {
|
|
3113
|
-
var n = t, p = n.lib, g = p.Base,
|
|
3113
|
+
var n = t, p = n.lib, g = p.Base, b = p.WordArray, f = n.algo, l = f.MD5, a = f.EvpKDF = g.extend({
|
|
3114
3114
|
/**
|
|
3115
3115
|
* Configuration options.
|
|
3116
3116
|
*
|
|
@@ -3150,9 +3150,9 @@ function ya() {
|
|
|
3150
3150
|
* var key = kdf.compute(password, salt);
|
|
3151
3151
|
*/
|
|
3152
3152
|
compute: function(i, s) {
|
|
3153
|
-
for (var o, u = this.cfg, m = u.hasher.create(), c =
|
|
3153
|
+
for (var o, u = this.cfg, m = u.hasher.create(), c = b.create(), d = c.words, y = u.keySize, _ = u.iterations; d.length < y; ) {
|
|
3154
3154
|
o && m.update(o), o = m.update(i).finalize(s), m.reset();
|
|
3155
|
-
for (var
|
|
3155
|
+
for (var U = 1; U < _; U++)
|
|
3156
3156
|
o = m.finalize(o), m.reset();
|
|
3157
3157
|
c.concat(o);
|
|
3158
3158
|
}
|
|
@@ -3173,7 +3173,7 @@ function Ne() {
|
|
|
3173
3173
|
e.exports = n(ae(), ya());
|
|
3174
3174
|
})(Lr, function(t) {
|
|
3175
3175
|
t.lib.Cipher || (function(n) {
|
|
3176
|
-
var p = t, g = p.lib,
|
|
3176
|
+
var p = t, g = p.lib, b = g.Base, f = g.WordArray, l = g.BufferedBlockAlgorithm, a = p.enc;
|
|
3177
3177
|
a.Utf8;
|
|
3178
3178
|
var i = a.Base64, s = p.algo, o = s.EvpKDF, u = g.Cipher = l.extend({
|
|
3179
3179
|
/**
|
|
@@ -3181,7 +3181,7 @@ function Ne() {
|
|
|
3181
3181
|
*
|
|
3182
3182
|
* @property {WordArray} iv The IV to use for this operation.
|
|
3183
3183
|
*/
|
|
3184
|
-
cfg:
|
|
3184
|
+
cfg: b.extend(),
|
|
3185
3185
|
/**
|
|
3186
3186
|
* Creates this cipher in encryption mode.
|
|
3187
3187
|
*
|
|
@@ -3314,7 +3314,7 @@ function Ne() {
|
|
|
3314
3314
|
},
|
|
3315
3315
|
blockSize: 1
|
|
3316
3316
|
});
|
|
3317
|
-
var m = p.mode = {}, c = g.BlockCipherMode =
|
|
3317
|
+
var m = p.mode = {}, c = g.BlockCipherMode = b.extend({
|
|
3318
3318
|
/**
|
|
3319
3319
|
* Creates this mode for encryption.
|
|
3320
3320
|
*
|
|
@@ -3459,7 +3459,7 @@ function Ne() {
|
|
|
3459
3459
|
},
|
|
3460
3460
|
blockSize: 128 / 32
|
|
3461
3461
|
});
|
|
3462
|
-
var
|
|
3462
|
+
var U = g.CipherParams = b.extend({
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Initializes a newly created cipher params object.
|
|
3465
3465
|
*
|
|
@@ -3533,15 +3533,15 @@ function Ne() {
|
|
|
3533
3533
|
*/
|
|
3534
3534
|
parse: function(C) {
|
|
3535
3535
|
var h, N = i.parse(C), E = N.words;
|
|
3536
|
-
return E[0] == 1398893684 && E[1] == 1701076831 && (h = f.create(E.slice(2, 4)), E.splice(0, 4), N.sigBytes -= 16),
|
|
3536
|
+
return E[0] == 1398893684 && E[1] == 1701076831 && (h = f.create(E.slice(2, 4)), E.splice(0, 4), N.sigBytes -= 16), U.create({ ciphertext: N, salt: h });
|
|
3537
3537
|
}
|
|
3538
|
-
}, x = g.SerializableCipher =
|
|
3538
|
+
}, x = g.SerializableCipher = b.extend({
|
|
3539
3539
|
/**
|
|
3540
3540
|
* Configuration options.
|
|
3541
3541
|
*
|
|
3542
3542
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3543
3543
|
*/
|
|
3544
|
-
cfg:
|
|
3544
|
+
cfg: b.extend({
|
|
3545
3545
|
format: T
|
|
3546
3546
|
}),
|
|
3547
3547
|
/**
|
|
@@ -3565,7 +3565,7 @@ function Ne() {
|
|
|
3565
3565
|
encrypt: function(C, h, N, E) {
|
|
3566
3566
|
E = this.cfg.extend(E);
|
|
3567
3567
|
var P = C.createEncryptor(N, E), M = P.finalize(h), R = P.cfg;
|
|
3568
|
-
return
|
|
3568
|
+
return U.create({
|
|
3569
3569
|
ciphertext: M,
|
|
3570
3570
|
key: N,
|
|
3571
3571
|
iv: R.iv,
|
|
@@ -3640,7 +3640,7 @@ function Ne() {
|
|
|
3640
3640
|
else
|
|
3641
3641
|
var M = o.create({ keySize: h + N }).compute(C, E);
|
|
3642
3642
|
var R = f.create(M.words.slice(h), N * 4);
|
|
3643
|
-
return M.sigBytes = h * 4,
|
|
3643
|
+
return M.sigBytes = h * 4, U.create({ key: M, iv: R, salt: E });
|
|
3644
3644
|
}
|
|
3645
3645
|
}, O = g.PasswordBasedCipher = x.extend({
|
|
3646
3646
|
/**
|
|
@@ -3713,21 +3713,21 @@ function Mr() {
|
|
|
3713
3713
|
return t.mode.CFB = (function() {
|
|
3714
3714
|
var n = t.lib.BlockCipherMode.extend();
|
|
3715
3715
|
n.Encryptor = n.extend({
|
|
3716
|
-
processBlock: function(g,
|
|
3716
|
+
processBlock: function(g, b) {
|
|
3717
3717
|
var f = this._cipher, l = f.blockSize;
|
|
3718
|
-
p.call(this, g,
|
|
3718
|
+
p.call(this, g, b, l, f), this._prevBlock = g.slice(b, b + l);
|
|
3719
3719
|
}
|
|
3720
3720
|
}), n.Decryptor = n.extend({
|
|
3721
|
-
processBlock: function(g,
|
|
3722
|
-
var f = this._cipher, l = f.blockSize, a = g.slice(
|
|
3723
|
-
p.call(this, g,
|
|
3721
|
+
processBlock: function(g, b) {
|
|
3722
|
+
var f = this._cipher, l = f.blockSize, a = g.slice(b, b + l);
|
|
3723
|
+
p.call(this, g, b, l, f), this._prevBlock = a;
|
|
3724
3724
|
}
|
|
3725
3725
|
});
|
|
3726
|
-
function p(g,
|
|
3726
|
+
function p(g, b, f, l) {
|
|
3727
3727
|
var a, i = this._iv;
|
|
3728
3728
|
i ? (a = i.slice(0), this._iv = void 0) : a = this._prevBlock, l.encryptBlock(a, 0);
|
|
3729
3729
|
for (var s = 0; s < f; s++)
|
|
3730
|
-
g[
|
|
3730
|
+
g[b + s] ^= a[s];
|
|
3731
3731
|
}
|
|
3732
3732
|
return n;
|
|
3733
3733
|
})(), t.mode.CFB;
|
|
@@ -3742,13 +3742,13 @@ function Pr() {
|
|
|
3742
3742
|
})(Rr, function(t) {
|
|
3743
3743
|
return t.mode.CTR = (function() {
|
|
3744
3744
|
var n = t.lib.BlockCipherMode.extend(), p = n.Encryptor = n.extend({
|
|
3745
|
-
processBlock: function(g,
|
|
3745
|
+
processBlock: function(g, b) {
|
|
3746
3746
|
var f = this._cipher, l = f.blockSize, a = this._iv, i = this._counter;
|
|
3747
3747
|
a && (i = this._counter = a.slice(0), this._iv = void 0);
|
|
3748
3748
|
var s = i.slice(0);
|
|
3749
3749
|
f.encryptBlock(s, 0), i[l - 1] = i[l - 1] + 1 | 0;
|
|
3750
3750
|
for (var o = 0; o < l; o++)
|
|
3751
|
-
g[
|
|
3751
|
+
g[b + o] ^= s[o];
|
|
3752
3752
|
}
|
|
3753
3753
|
});
|
|
3754
3754
|
return n.Decryptor = p, n;
|
|
@@ -3775,7 +3775,7 @@ function wr() {
|
|
|
3775
3775
|
function g(f) {
|
|
3776
3776
|
return (f[0] = p(f[0])) === 0 && (f[1] = p(f[1])), f;
|
|
3777
3777
|
}
|
|
3778
|
-
var
|
|
3778
|
+
var b = n.Encryptor = n.extend({
|
|
3779
3779
|
processBlock: function(f, l) {
|
|
3780
3780
|
var a = this._cipher, i = a.blockSize, s = this._iv, o = this._counter;
|
|
3781
3781
|
s && (o = this._counter = s.slice(0), this._iv = void 0), g(o);
|
|
@@ -3785,7 +3785,7 @@ function wr() {
|
|
|
3785
3785
|
f[l + m] ^= u[m];
|
|
3786
3786
|
}
|
|
3787
3787
|
});
|
|
3788
|
-
return n.Decryptor =
|
|
3788
|
+
return n.Decryptor = b, n;
|
|
3789
3789
|
})(), t.mode.CTRGladman;
|
|
3790
3790
|
});
|
|
3791
3791
|
})(xi)), xi.exports;
|
|
@@ -3798,11 +3798,11 @@ function Or() {
|
|
|
3798
3798
|
})(Ar, function(t) {
|
|
3799
3799
|
return t.mode.OFB = (function() {
|
|
3800
3800
|
var n = t.lib.BlockCipherMode.extend(), p = n.Encryptor = n.extend({
|
|
3801
|
-
processBlock: function(g,
|
|
3801
|
+
processBlock: function(g, b) {
|
|
3802
3802
|
var f = this._cipher, l = f.blockSize, a = this._iv, i = this._keystream;
|
|
3803
3803
|
a && (i = this._keystream = a.slice(0), this._iv = void 0), f.encryptBlock(i, 0);
|
|
3804
3804
|
for (var s = 0; s < l; s++)
|
|
3805
|
-
g[
|
|
3805
|
+
g[b + s] ^= i[s];
|
|
3806
3806
|
}
|
|
3807
3807
|
});
|
|
3808
3808
|
return n.Decryptor = p, n;
|
|
@@ -3839,7 +3839,7 @@ function zr() {
|
|
|
3839
3839
|
})(Wr, function(t) {
|
|
3840
3840
|
return t.pad.AnsiX923 = {
|
|
3841
3841
|
pad: function(n, p) {
|
|
3842
|
-
var g = n.sigBytes,
|
|
3842
|
+
var g = n.sigBytes, b = p * 4, f = b - g % b, l = g + f - 1;
|
|
3843
3843
|
n.clamp(), n.words[l >>> 2] |= f << 24 - l % 4 * 8, n.sigBytes += f;
|
|
3844
3844
|
},
|
|
3845
3845
|
unpad: function(n) {
|
|
@@ -3858,8 +3858,8 @@ function Vr() {
|
|
|
3858
3858
|
})(Ir, function(t) {
|
|
3859
3859
|
return t.pad.Iso10126 = {
|
|
3860
3860
|
pad: function(n, p) {
|
|
3861
|
-
var g = p * 4,
|
|
3862
|
-
n.concat(t.lib.WordArray.random(
|
|
3861
|
+
var g = p * 4, b = g - n.sigBytes % g;
|
|
3862
|
+
n.concat(t.lib.WordArray.random(b - 1)).concat(t.lib.WordArray.create([b << 24], 1));
|
|
3863
3863
|
},
|
|
3864
3864
|
unpad: function(n) {
|
|
3865
3865
|
var p = n.words[n.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3930,7 +3930,7 @@ function Yr() {
|
|
|
3930
3930
|
e.exports = n(ae(), Ne());
|
|
3931
3931
|
})(jr, function(t) {
|
|
3932
3932
|
return (function(n) {
|
|
3933
|
-
var p = t, g = p.lib,
|
|
3933
|
+
var p = t, g = p.lib, b = g.CipherParams, f = p.enc, l = f.Hex, a = p.format;
|
|
3934
3934
|
a.Hex = {
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3963,7 +3963,7 @@ function Yr() {
|
|
|
3963
3963
|
*/
|
|
3964
3964
|
parse: function(i) {
|
|
3965
3965
|
var s = l.parse(i);
|
|
3966
|
-
return
|
|
3966
|
+
return b.create({ ciphertext: s });
|
|
3967
3967
|
}
|
|
3968
3968
|
};
|
|
3969
3969
|
})(), t.format.Hex;
|
|
@@ -3977,51 +3977,51 @@ function eo() {
|
|
|
3977
3977
|
e.exports = n(ae(), Sa(), Da(), ya(), Ne());
|
|
3978
3978
|
})(Xr, function(t) {
|
|
3979
3979
|
return (function() {
|
|
3980
|
-
var n = t, p = n.lib, g = p.BlockCipher,
|
|
3980
|
+
var n = t, p = n.lib, g = p.BlockCipher, b = n.algo, f = [], l = [], a = [], i = [], s = [], o = [], u = [], m = [], c = [], d = [];
|
|
3981
3981
|
(function() {
|
|
3982
|
-
for (var
|
|
3983
|
-
v < 128 ?
|
|
3982
|
+
for (var U = [], v = 0; v < 256; v++)
|
|
3983
|
+
v < 128 ? U[v] = v << 1 : U[v] = v << 1 ^ 283;
|
|
3984
3984
|
for (var T = 0, x = 0, v = 0; v < 256; v++) {
|
|
3985
3985
|
var S = x ^ x << 1 ^ x << 2 ^ x << 3 ^ x << 4;
|
|
3986
3986
|
S = S >>> 8 ^ S & 255 ^ 99, f[T] = S, l[S] = T;
|
|
3987
|
-
var G =
|
|
3987
|
+
var G = U[T], O = U[G], C = U[O], h = U[S] * 257 ^ S * 16843008;
|
|
3988
3988
|
a[T] = h << 24 | h >>> 8, i[T] = h << 16 | h >>> 16, s[T] = h << 8 | h >>> 24, o[T] = h;
|
|
3989
3989
|
var h = C * 16843009 ^ O * 65537 ^ G * 257 ^ T * 16843008;
|
|
3990
|
-
u[S] = h << 24 | h >>> 8, m[S] = h << 16 | h >>> 16, c[S] = h << 8 | h >>> 24, d[S] = h, T ? (T = G ^
|
|
3990
|
+
u[S] = h << 24 | h >>> 8, m[S] = h << 16 | h >>> 16, c[S] = h << 8 | h >>> 24, d[S] = h, T ? (T = G ^ U[U[U[C ^ G]]], x ^= U[U[x]]) : T = x = 1;
|
|
3991
3991
|
}
|
|
3992
3992
|
})();
|
|
3993
|
-
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ =
|
|
3993
|
+
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = b.AES = g.extend({
|
|
3994
3994
|
_doReset: function() {
|
|
3995
|
-
var
|
|
3995
|
+
var U;
|
|
3996
3996
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3997
3997
|
for (var v = this._keyPriorReset = this._key, T = v.words, x = v.sigBytes / 4, S = this._nRounds = x + 6, G = (S + 1) * 4, O = this._keySchedule = [], C = 0; C < G; C++)
|
|
3998
|
-
C < x ? O[C] = T[C] : (
|
|
3998
|
+
C < x ? O[C] = T[C] : (U = O[C - 1], C % x ? x > 6 && C % x == 4 && (U = f[U >>> 24] << 24 | f[U >>> 16 & 255] << 16 | f[U >>> 8 & 255] << 8 | f[U & 255]) : (U = U << 8 | U >>> 24, U = f[U >>> 24] << 24 | f[U >>> 16 & 255] << 16 | f[U >>> 8 & 255] << 8 | f[U & 255], U ^= y[C / x | 0] << 24), O[C] = O[C - x] ^ U);
|
|
3999
3999
|
for (var h = this._invKeySchedule = [], N = 0; N < G; N++) {
|
|
4000
4000
|
var C = G - N;
|
|
4001
4001
|
if (N % 4)
|
|
4002
|
-
var
|
|
4002
|
+
var U = O[C];
|
|
4003
4003
|
else
|
|
4004
|
-
var
|
|
4005
|
-
N < 4 || C <= 4 ? h[N] =
|
|
4004
|
+
var U = O[C - 4];
|
|
4005
|
+
N < 4 || C <= 4 ? h[N] = U : h[N] = u[f[U >>> 24]] ^ m[f[U >>> 16 & 255]] ^ c[f[U >>> 8 & 255]] ^ d[f[U & 255]];
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
4008
|
},
|
|
4009
|
-
encryptBlock: function(
|
|
4010
|
-
this._doCryptBlock(
|
|
4009
|
+
encryptBlock: function(U, v) {
|
|
4010
|
+
this._doCryptBlock(U, v, this._keySchedule, a, i, s, o, f);
|
|
4011
4011
|
},
|
|
4012
|
-
decryptBlock: function(
|
|
4013
|
-
var T =
|
|
4014
|
-
|
|
4015
|
-
var T =
|
|
4016
|
-
|
|
4012
|
+
decryptBlock: function(U, v) {
|
|
4013
|
+
var T = U[v + 1];
|
|
4014
|
+
U[v + 1] = U[v + 3], U[v + 3] = T, this._doCryptBlock(U, v, this._invKeySchedule, u, m, c, d, l);
|
|
4015
|
+
var T = U[v + 1];
|
|
4016
|
+
U[v + 1] = U[v + 3], U[v + 3] = T;
|
|
4017
4017
|
},
|
|
4018
|
-
_doCryptBlock: function(
|
|
4019
|
-
for (var h = this._nRounds, N =
|
|
4018
|
+
_doCryptBlock: function(U, v, T, x, S, G, O, C) {
|
|
4019
|
+
for (var h = this._nRounds, N = U[v] ^ T[0], E = U[v + 1] ^ T[1], P = U[v + 2] ^ T[2], M = U[v + 3] ^ T[3], R = 4, B = 1; B < h; B++) {
|
|
4020
4020
|
var A = x[N >>> 24] ^ S[E >>> 16 & 255] ^ G[P >>> 8 & 255] ^ O[M & 255] ^ T[R++], H = x[E >>> 24] ^ S[P >>> 16 & 255] ^ G[M >>> 8 & 255] ^ O[N & 255] ^ T[R++], W = x[P >>> 24] ^ S[M >>> 16 & 255] ^ G[N >>> 8 & 255] ^ O[E & 255] ^ T[R++], L = x[M >>> 24] ^ S[N >>> 16 & 255] ^ G[E >>> 8 & 255] ^ O[P & 255] ^ T[R++];
|
|
4021
4021
|
N = A, E = H, P = W, M = L;
|
|
4022
4022
|
}
|
|
4023
4023
|
var A = (C[N >>> 24] << 24 | C[E >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[M & 255]) ^ T[R++], H = (C[E >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[M >>> 8 & 255] << 8 | C[N & 255]) ^ T[R++], W = (C[P >>> 24] << 24 | C[M >>> 16 & 255] << 16 | C[N >>> 8 & 255] << 8 | C[E & 255]) ^ T[R++], L = (C[M >>> 24] << 24 | C[N >>> 16 & 255] << 16 | C[E >>> 8 & 255] << 8 | C[P & 255]) ^ T[R++];
|
|
4024
|
-
|
|
4024
|
+
U[v] = A, U[v + 1] = H, U[v + 2] = W, U[v + 3] = L;
|
|
4025
4025
|
},
|
|
4026
4026
|
keySize: 256 / 32
|
|
4027
4027
|
});
|
|
@@ -4037,7 +4037,7 @@ function io() {
|
|
|
4037
4037
|
e.exports = n(ae(), Sa(), Da(), ya(), Ne());
|
|
4038
4038
|
})(ao, function(t) {
|
|
4039
4039
|
return (function() {
|
|
4040
|
-
var n = t, p = n.lib, g = p.WordArray,
|
|
4040
|
+
var n = t, p = n.lib, g = p.WordArray, b = p.BlockCipher, f = n.algo, l = [
|
|
4041
4041
|
57,
|
|
4042
4042
|
49,
|
|
4043
4043
|
41,
|
|
@@ -4681,15 +4681,15 @@ function io() {
|
|
|
4681
4681
|
8064,
|
|
4682
4682
|
504,
|
|
4683
4683
|
2147483679
|
|
4684
|
-
], u = f.DES =
|
|
4684
|
+
], u = f.DES = b.extend({
|
|
4685
4685
|
_doReset: function() {
|
|
4686
|
-
for (var y = this._key, _ = y.words,
|
|
4686
|
+
for (var y = this._key, _ = y.words, U = [], v = 0; v < 56; v++) {
|
|
4687
4687
|
var T = l[v] - 1;
|
|
4688
|
-
|
|
4688
|
+
U[v] = _[T >>> 5] >>> 31 - T % 32 & 1;
|
|
4689
4689
|
}
|
|
4690
4690
|
for (var x = this._subKeys = [], S = 0; S < 16; S++) {
|
|
4691
4691
|
for (var G = x[S] = [], O = i[S], v = 0; v < 24; v++)
|
|
4692
|
-
G[v / 6 | 0] |=
|
|
4692
|
+
G[v / 6 | 0] |= U[(a[v] - 1 + O) % 28] << 31 - v % 6, G[4 + (v / 6 | 0)] |= U[28 + (a[v + 24] - 1 + O) % 28] << 31 - v % 6;
|
|
4693
4693
|
G[0] = G[0] << 1 | G[0] >>> 31;
|
|
4694
4694
|
for (var v = 1; v < 7; v++)
|
|
4695
4695
|
G[v] = G[v] >>> (v - 1) * 4 + 3;
|
|
@@ -4704,10 +4704,10 @@ function io() {
|
|
|
4704
4704
|
decryptBlock: function(y, _) {
|
|
4705
4705
|
this._doCryptBlock(y, _, this._invSubKeys);
|
|
4706
4706
|
},
|
|
4707
|
-
_doCryptBlock: function(y, _,
|
|
4707
|
+
_doCryptBlock: function(y, _, U) {
|
|
4708
4708
|
this._lBlock = y[_], this._rBlock = y[_ + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), c.call(this, 2, 858993459), c.call(this, 8, 16711935), m.call(this, 1, 1431655765);
|
|
4709
4709
|
for (var v = 0; v < 16; v++) {
|
|
4710
|
-
for (var T =
|
|
4710
|
+
for (var T = U[v], x = this._lBlock, S = this._rBlock, G = 0, O = 0; O < 8; O++)
|
|
4711
4711
|
G |= s[O][((S ^ T[O]) & o[O]) >>> 0];
|
|
4712
4712
|
this._lBlock = S, this._rBlock = x ^ G;
|
|
4713
4713
|
}
|
|
@@ -4719,21 +4719,21 @@ function io() {
|
|
|
4719
4719
|
blockSize: 64 / 32
|
|
4720
4720
|
});
|
|
4721
4721
|
function m(y, _) {
|
|
4722
|
-
var
|
|
4723
|
-
this._rBlock ^=
|
|
4722
|
+
var U = (this._lBlock >>> y ^ this._rBlock) & _;
|
|
4723
|
+
this._rBlock ^= U, this._lBlock ^= U << y;
|
|
4724
4724
|
}
|
|
4725
4725
|
function c(y, _) {
|
|
4726
|
-
var
|
|
4727
|
-
this._lBlock ^=
|
|
4726
|
+
var U = (this._rBlock >>> y ^ this._lBlock) & _;
|
|
4727
|
+
this._lBlock ^= U, this._rBlock ^= U << y;
|
|
4728
4728
|
}
|
|
4729
|
-
n.DES =
|
|
4730
|
-
var d = f.TripleDES =
|
|
4729
|
+
n.DES = b._createHelper(u);
|
|
4730
|
+
var d = f.TripleDES = b.extend({
|
|
4731
4731
|
_doReset: function() {
|
|
4732
4732
|
var y = this._key, _ = y.words;
|
|
4733
4733
|
if (_.length !== 2 && _.length !== 4 && _.length < 6)
|
|
4734
4734
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4735
|
-
var
|
|
4736
|
-
this._des1 = u.createEncryptor(g.create(
|
|
4735
|
+
var U = _.slice(0, 2), v = _.length < 4 ? _.slice(0, 2) : _.slice(2, 4), T = _.length < 6 ? _.slice(0, 2) : _.slice(4, 6);
|
|
4736
|
+
this._des1 = u.createEncryptor(g.create(U)), this._des2 = u.createEncryptor(g.create(v)), this._des3 = u.createEncryptor(g.create(T));
|
|
4737
4737
|
},
|
|
4738
4738
|
encryptBlock: function(y, _) {
|
|
4739
4739
|
this._des1.encryptBlock(y, _), this._des2.decryptBlock(y, _), this._des3.encryptBlock(y, _);
|
|
@@ -4745,7 +4745,7 @@ function io() {
|
|
|
4745
4745
|
ivSize: 64 / 32,
|
|
4746
4746
|
blockSize: 64 / 32
|
|
4747
4747
|
});
|
|
4748
|
-
n.TripleDES =
|
|
4748
|
+
n.TripleDES = b._createHelper(d);
|
|
4749
4749
|
})(), t.TripleDES;
|
|
4750
4750
|
});
|
|
4751
4751
|
})(Fi)), Fi.exports;
|
|
@@ -4757,7 +4757,7 @@ function no() {
|
|
|
4757
4757
|
e.exports = n(ae(), Sa(), Da(), ya(), Ne());
|
|
4758
4758
|
})(to, function(t) {
|
|
4759
4759
|
return (function() {
|
|
4760
|
-
var n = t, p = n.lib, g = p.StreamCipher,
|
|
4760
|
+
var n = t, p = n.lib, g = p.StreamCipher, b = n.algo, f = b.RC4 = g.extend({
|
|
4761
4761
|
_doReset: function() {
|
|
4762
4762
|
for (var i = this._key, s = i.words, o = i.sigBytes, u = this._S = [], m = 0; m < 256; m++)
|
|
4763
4763
|
u[m] = m;
|
|
@@ -4784,7 +4784,7 @@ function no() {
|
|
|
4784
4784
|
return this._i = s, this._j = o, u;
|
|
4785
4785
|
}
|
|
4786
4786
|
n.RC4 = g._createHelper(f);
|
|
4787
|
-
var a =
|
|
4787
|
+
var a = b.RC4Drop = f.extend({
|
|
4788
4788
|
/**
|
|
4789
4789
|
* Configuration options.
|
|
4790
4790
|
*
|
|
@@ -4811,7 +4811,7 @@ function ro() {
|
|
|
4811
4811
|
e.exports = n(ae(), Sa(), Da(), ya(), Ne());
|
|
4812
4812
|
})(lo, function(t) {
|
|
4813
4813
|
return (function() {
|
|
4814
|
-
var n = t, p = n.lib, g = p.StreamCipher,
|
|
4814
|
+
var n = t, p = n.lib, g = p.StreamCipher, b = n.algo, f = [], l = [], a = [], i = b.Rabbit = g.extend({
|
|
4815
4815
|
_doReset: function() {
|
|
4816
4816
|
for (var o = this._key.words, u = this.cfg.iv, m = 0; m < 4; m++)
|
|
4817
4817
|
o[m] = (o[m] << 8 | o[m] >>> 24) & 16711935 | (o[m] << 24 | o[m] >>> 8) & 4278255360;
|
|
@@ -4840,7 +4840,7 @@ function ro() {
|
|
|
4840
4840
|
for (var m = 0; m < 8; m++)
|
|
4841
4841
|
d[m] ^= c[m + 4 & 7];
|
|
4842
4842
|
if (u) {
|
|
4843
|
-
var y = u.words, _ = y[0],
|
|
4843
|
+
var y = u.words, _ = y[0], U = y[1], v = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, T = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = v >>> 16 | T & 4294901760, S = T << 16 | v & 65535;
|
|
4844
4844
|
d[0] ^= v, d[1] ^= x, d[2] ^= T, d[3] ^= S, d[4] ^= v, d[5] ^= x, d[6] ^= T, d[7] ^= S;
|
|
4845
4845
|
for (var m = 0; m < 4; m++)
|
|
4846
4846
|
s.call(this);
|
|
@@ -4860,8 +4860,8 @@ function ro() {
|
|
|
4860
4860
|
l[m] = u[m];
|
|
4861
4861
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < l[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < l[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < l[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < l[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < l[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < l[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < l[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < l[7] >>> 0 ? 1 : 0;
|
|
4862
4862
|
for (var m = 0; m < 8; m++) {
|
|
4863
|
-
var c = o[m] + u[m], d = c & 65535, y = c >>> 16, _ = ((d * d >>> 17) + d * y >>> 15) + y * y,
|
|
4864
|
-
a[m] = _ ^
|
|
4863
|
+
var c = o[m] + u[m], d = c & 65535, y = c >>> 16, _ = ((d * d >>> 17) + d * y >>> 15) + y * y, U = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
|
|
4864
|
+
a[m] = _ ^ U;
|
|
4865
4865
|
}
|
|
4866
4866
|
o[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, o[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, o[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, o[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, o[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, o[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, o[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, o[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4867
4867
|
}
|
|
@@ -4877,7 +4877,7 @@ function so() {
|
|
|
4877
4877
|
e.exports = n(ae(), Sa(), Da(), ya(), Ne());
|
|
4878
4878
|
})(oo, function(t) {
|
|
4879
4879
|
return (function() {
|
|
4880
|
-
var n = t, p = n.lib, g = p.StreamCipher,
|
|
4880
|
+
var n = t, p = n.lib, g = p.StreamCipher, b = n.algo, f = [], l = [], a = [], i = b.RabbitLegacy = g.extend({
|
|
4881
4881
|
_doReset: function() {
|
|
4882
4882
|
var o = this._key.words, u = this.cfg.iv, m = this._X = [
|
|
4883
4883
|
o[0],
|
|
@@ -4904,7 +4904,7 @@ function so() {
|
|
|
4904
4904
|
for (var d = 0; d < 8; d++)
|
|
4905
4905
|
c[d] ^= m[d + 4 & 7];
|
|
4906
4906
|
if (u) {
|
|
4907
|
-
var y = u.words, _ = y[0],
|
|
4907
|
+
var y = u.words, _ = y[0], U = y[1], v = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, T = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = v >>> 16 | T & 4294901760, S = T << 16 | v & 65535;
|
|
4908
4908
|
c[0] ^= v, c[1] ^= x, c[2] ^= T, c[3] ^= S, c[4] ^= v, c[5] ^= x, c[6] ^= T, c[7] ^= S;
|
|
4909
4909
|
for (var d = 0; d < 4; d++)
|
|
4910
4910
|
s.call(this);
|
|
@@ -4924,8 +4924,8 @@ function so() {
|
|
|
4924
4924
|
l[m] = u[m];
|
|
4925
4925
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < l[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < l[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < l[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < l[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < l[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < l[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < l[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < l[7] >>> 0 ? 1 : 0;
|
|
4926
4926
|
for (var m = 0; m < 8; m++) {
|
|
4927
|
-
var c = o[m] + u[m], d = c & 65535, y = c >>> 16, _ = ((d * d >>> 17) + d * y >>> 15) + y * y,
|
|
4928
|
-
a[m] = _ ^
|
|
4927
|
+
var c = o[m] + u[m], d = c & 65535, y = c >>> 16, _ = ((d * d >>> 17) + d * y >>> 15) + y * y, U = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
|
|
4928
|
+
a[m] = _ ^ U;
|
|
4929
4929
|
}
|
|
4930
4930
|
o[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, o[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, o[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, o[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, o[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, o[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, o[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, o[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4931
4931
|
}
|
|
@@ -4941,7 +4941,7 @@ function uo() {
|
|
|
4941
4941
|
e.exports = n(ae(), Sa(), Da(), ya(), Ne());
|
|
4942
4942
|
})(mo, function(t) {
|
|
4943
4943
|
return (function() {
|
|
4944
|
-
var n = t, p = n.lib, g = p.BlockCipher,
|
|
4944
|
+
var n = t, p = n.lib, g = p.BlockCipher, b = n.algo;
|
|
4945
4945
|
const f = 16, l = [
|
|
4946
4946
|
608135816,
|
|
4947
4947
|
2242054355,
|
|
@@ -6000,20 +6000,20 @@ function uo() {
|
|
|
6000
6000
|
sbox: []
|
|
6001
6001
|
};
|
|
6002
6002
|
function s(d, y) {
|
|
6003
|
-
let _ = y >> 24 & 255,
|
|
6003
|
+
let _ = y >> 24 & 255, U = y >> 16 & 255, v = y >> 8 & 255, T = y & 255, x = d.sbox[0][_] + d.sbox[1][U];
|
|
6004
6004
|
return x = x ^ d.sbox[2][v], x = x + d.sbox[3][T], x;
|
|
6005
6005
|
}
|
|
6006
6006
|
function o(d, y, _) {
|
|
6007
|
-
let
|
|
6007
|
+
let U = y, v = _, T;
|
|
6008
6008
|
for (let x = 0; x < f; ++x)
|
|
6009
|
-
|
|
6010
|
-
return T =
|
|
6009
|
+
U = U ^ d.pbox[x], v = s(d, U) ^ v, T = U, U = v, v = T;
|
|
6010
|
+
return T = U, U = v, v = T, v = v ^ d.pbox[f], U = U ^ d.pbox[f + 1], { left: U, right: v };
|
|
6011
6011
|
}
|
|
6012
6012
|
function u(d, y, _) {
|
|
6013
|
-
let
|
|
6013
|
+
let U = y, v = _, T;
|
|
6014
6014
|
for (let x = f + 1; x > 1; --x)
|
|
6015
|
-
|
|
6016
|
-
return T =
|
|
6015
|
+
U = U ^ d.pbox[x], v = s(d, U) ^ v, T = U, U = v, v = T;
|
|
6016
|
+
return T = U, U = v, v = T, v = v ^ d.pbox[1], U = U ^ d.pbox[0], { left: U, right: v };
|
|
6017
6017
|
}
|
|
6018
6018
|
function m(d, y, _) {
|
|
6019
6019
|
for (let S = 0; S < 4; S++) {
|
|
@@ -6021,9 +6021,9 @@ function uo() {
|
|
|
6021
6021
|
for (let G = 0; G < 256; G++)
|
|
6022
6022
|
d.sbox[S][G] = a[S][G];
|
|
6023
6023
|
}
|
|
6024
|
-
let
|
|
6024
|
+
let U = 0;
|
|
6025
6025
|
for (let S = 0; S < f + 2; S++)
|
|
6026
|
-
d.pbox[S] = l[S] ^ y[
|
|
6026
|
+
d.pbox[S] = l[S] ^ y[U], U++, U >= _ && (U = 0);
|
|
6027
6027
|
let v = 0, T = 0, x = 0;
|
|
6028
6028
|
for (let S = 0; S < f + 2; S += 2)
|
|
6029
6029
|
x = o(d, v, T), v = x.left, T = x.right, d.pbox[S] = v, d.pbox[S + 1] = T;
|
|
@@ -6032,7 +6032,7 @@ function uo() {
|
|
|
6032
6032
|
x = o(d, v, T), v = x.left, T = x.right, d.sbox[S][G] = v, d.sbox[S][G + 1] = T;
|
|
6033
6033
|
return !0;
|
|
6034
6034
|
}
|
|
6035
|
-
var c =
|
|
6035
|
+
var c = b.Blowfish = g.extend({
|
|
6036
6036
|
_doReset: function() {
|
|
6037
6037
|
if (this._keyPriorReset !== this._key) {
|
|
6038
6038
|
var d = this._keyPriorReset = this._key, y = d.words, _ = d.sigBytes / 4;
|
|
@@ -6075,8 +6075,8 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6075
6075
|
iv: t,
|
|
6076
6076
|
mode: va.mode.CBC,
|
|
6077
6077
|
padding: va.pad.Pkcs7
|
|
6078
|
-
}), g = t.toString(va.enc.Base64),
|
|
6079
|
-
return g + ":" +
|
|
6078
|
+
}), g = t.toString(va.enc.Base64), b = va.enc.Base64.stringify(p.ciphertext);
|
|
6079
|
+
return g + ":" + b;
|
|
6080
6080
|
}, ce = () => {
|
|
6081
6081
|
const { client: e, formDataClient: r } = re(), t = I(
|
|
6082
6082
|
async (C) => {
|
|
@@ -6088,7 +6088,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6088
6088
|
return P;
|
|
6089
6089
|
},
|
|
6090
6090
|
[e]
|
|
6091
|
-
), n = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]),
|
|
6091
|
+
), n = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = I(async () => await e.get("member/getFavoriteGame"), [e]), f = I(
|
|
6092
6092
|
async (C) => {
|
|
6093
6093
|
const { account: h, password: N, trans_code: E } = C;
|
|
6094
6094
|
return await e.post("/login", {
|
|
@@ -6188,7 +6188,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6188
6188
|
});
|
|
6189
6189
|
},
|
|
6190
6190
|
[e]
|
|
6191
|
-
), _ = I(async () => await e.get("/member/checkRestrictedWagering"), [e]),
|
|
6191
|
+
), _ = I(async () => await e.get("/member/checkRestrictedWagering"), [e]), U = I(
|
|
6192
6192
|
async (C) => {
|
|
6193
6193
|
const { memId: h, point: N, currency: E, password: P } = C;
|
|
6194
6194
|
return await e.post("/pointsTransaction", {
|
|
@@ -6263,7 +6263,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6263
6263
|
machineLoginApi: t,
|
|
6264
6264
|
userInfoApi: n,
|
|
6265
6265
|
userGameListApi: p,
|
|
6266
|
-
userFavoriteGameApi:
|
|
6266
|
+
userFavoriteGameApi: b,
|
|
6267
6267
|
userCurrencyExchangeApi: g,
|
|
6268
6268
|
userLoginApi: f,
|
|
6269
6269
|
userLogoutApi: l,
|
|
@@ -6278,14 +6278,14 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6278
6278
|
userBindBankApi: v,
|
|
6279
6279
|
transferInGameApi: y,
|
|
6280
6280
|
checkUserWagerApi: _,
|
|
6281
|
-
pointTransferApi:
|
|
6281
|
+
pointTransferApi: U,
|
|
6282
6282
|
abandonPointsApi: T,
|
|
6283
6283
|
lineLoginApi: x,
|
|
6284
6284
|
lineLogin2Api: S,
|
|
6285
6285
|
getMachineLoginCodeApi: G,
|
|
6286
6286
|
memberTransferApi: O
|
|
6287
6287
|
};
|
|
6288
|
-
},
|
|
6288
|
+
}, Cm = ({ otherQueryKey: e = [], options: r = {} } = {}) => {
|
|
6289
6289
|
const { userCurrencyExchangeApi: t } = ce(), { getToken: n } = re(), { enabled: p, ...g } = r, f = !!n?.() && (p ? p.every((l) => l) : !0);
|
|
6290
6290
|
return Bn({
|
|
6291
6291
|
queries: [
|
|
@@ -6299,7 +6299,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6299
6299
|
}
|
|
6300
6300
|
]
|
|
6301
6301
|
});
|
|
6302
|
-
},
|
|
6302
|
+
}, vm = ({
|
|
6303
6303
|
refetchInterval: e = 5e4,
|
|
6304
6304
|
trigger: r = [],
|
|
6305
6305
|
enabled: t = !0
|
|
@@ -6315,7 +6315,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6315
6315
|
}
|
|
6316
6316
|
]
|
|
6317
6317
|
});
|
|
6318
|
-
},
|
|
6318
|
+
}, hm = ({ enabled: e = !0 } = {}) => {
|
|
6319
6319
|
const {
|
|
6320
6320
|
userInfoApi: r,
|
|
6321
6321
|
userFavoriteGameApi: t,
|
|
@@ -6325,28 +6325,28 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6325
6325
|
queryKey: ["getMemInfo"],
|
|
6326
6326
|
queryFn: async () => r(),
|
|
6327
6327
|
enabled: e
|
|
6328
|
-
}),
|
|
6328
|
+
}), b = ne({
|
|
6329
6329
|
queryKey: ["getFavoriteGame"],
|
|
6330
6330
|
queryFn: async () => t(),
|
|
6331
6331
|
enabled: e && g.isSuccess
|
|
6332
6332
|
}), f = ne({
|
|
6333
6333
|
queryKey: ["getUserGameList"],
|
|
6334
6334
|
queryFn: async () => n(),
|
|
6335
|
-
enabled: e && g.isSuccess &&
|
|
6335
|
+
enabled: e && g.isSuccess && b.isSuccess
|
|
6336
6336
|
}), l = ne({
|
|
6337
6337
|
queryKey: ["getUserCurrencyExchange"],
|
|
6338
6338
|
queryFn: async () => p(),
|
|
6339
|
-
enabled: e && g.isSuccess &&
|
|
6339
|
+
enabled: e && g.isSuccess && b.isSuccess && f.isSuccess
|
|
6340
6340
|
});
|
|
6341
6341
|
return [
|
|
6342
6342
|
g,
|
|
6343
|
-
|
|
6343
|
+
b,
|
|
6344
6344
|
f,
|
|
6345
6345
|
l
|
|
6346
6346
|
];
|
|
6347
6347
|
}, ct = () => {
|
|
6348
6348
|
const { client: e, lng: r } = re(), t = je(r || "tw"), n = I(
|
|
6349
|
-
async (
|
|
6349
|
+
async (b) => {
|
|
6350
6350
|
const {
|
|
6351
6351
|
gameUid: f = "",
|
|
6352
6352
|
// 遊戲唯一標識
|
|
@@ -6358,7 +6358,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6358
6358
|
// 遊戲幣別
|
|
6359
6359
|
currentCurrency: s = ""
|
|
6360
6360
|
// 目前使用的幣別
|
|
6361
|
-
} =
|
|
6361
|
+
} = b;
|
|
6362
6362
|
return await e.post("/game/go", {
|
|
6363
6363
|
gameUid: f,
|
|
6364
6364
|
gameCode: l,
|
|
@@ -6371,13 +6371,13 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6371
6371
|
},
|
|
6372
6372
|
[e, t]
|
|
6373
6373
|
), p = I(
|
|
6374
|
-
async (
|
|
6374
|
+
async (b) => {
|
|
6375
6375
|
const {
|
|
6376
6376
|
startDate: f = Fe().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6377
6377
|
endDate: l = Fe().format("YYYY-MM-DD 11:59:59"),
|
|
6378
6378
|
platform: a = "",
|
|
6379
6379
|
limit: i = 25
|
|
6380
|
-
} =
|
|
6380
|
+
} = b, { data: s } = await e.get("/report/netprofit", {
|
|
6381
6381
|
params: {
|
|
6382
6382
|
str_date: f,
|
|
6383
6383
|
end_Date: l,
|
|
@@ -6389,14 +6389,14 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6389
6389
|
},
|
|
6390
6390
|
[e]
|
|
6391
6391
|
), g = I(
|
|
6392
|
-
async (
|
|
6392
|
+
async (b) => {
|
|
6393
6393
|
const {
|
|
6394
6394
|
startDate: f = Fe().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6395
6395
|
endDate: l = Fe().format("YYYY-MM-DD 11:59:59"),
|
|
6396
6396
|
platform: a,
|
|
6397
6397
|
limit: i = 25,
|
|
6398
6398
|
page: s = 1
|
|
6399
|
-
} =
|
|
6399
|
+
} = b, { data: o } = await e.get("/report/betlog", {
|
|
6400
6400
|
params: {
|
|
6401
6401
|
str_date: f,
|
|
6402
6402
|
end_Date: l,
|
|
@@ -6415,8 +6415,8 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6415
6415
|
return ne({
|
|
6416
6416
|
queryKey: ["getBetRecord"],
|
|
6417
6417
|
queryFn: async () => await t(r),
|
|
6418
|
-
select: (n) => Wn(n).map(([g,
|
|
6419
|
-
...
|
|
6418
|
+
select: (n) => Wn(n).map(([g, b]) => ({
|
|
6419
|
+
...b,
|
|
6420
6420
|
platform: g
|
|
6421
6421
|
})),
|
|
6422
6422
|
...e
|
|
@@ -6428,7 +6428,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6428
6428
|
queryFn: async () => await t(r),
|
|
6429
6429
|
...e
|
|
6430
6430
|
});
|
|
6431
|
-
},
|
|
6431
|
+
}, Tm = ({
|
|
6432
6432
|
options: e = {
|
|
6433
6433
|
betRecord: {},
|
|
6434
6434
|
betRecordDetail: {}
|
|
@@ -6462,27 +6462,27 @@ var _o = {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
};
|
|
6464
6464
|
function nt(e, r) {
|
|
6465
|
-
function t(p, g,
|
|
6465
|
+
function t(p, g, b) {
|
|
6466
6466
|
if (!(typeof document > "u")) {
|
|
6467
|
-
|
|
6467
|
+
b = ei({}, r, b), typeof b.expires == "number" && (b.expires = new Date(Date.now() + b.expires * 864e5)), b.expires && (b.expires = b.expires.toUTCString()), p = encodeURIComponent(p).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
6468
6468
|
var f = "";
|
|
6469
|
-
for (var l in
|
|
6470
|
-
|
|
6469
|
+
for (var l in b)
|
|
6470
|
+
b[l] && (f += "; " + l, b[l] !== !0 && (f += "=" + b[l].split(";")[0]));
|
|
6471
6471
|
return document.cookie = p + "=" + e.write(g, p) + f;
|
|
6472
6472
|
}
|
|
6473
6473
|
}
|
|
6474
6474
|
function n(p) {
|
|
6475
6475
|
if (!(typeof document > "u" || arguments.length && !p)) {
|
|
6476
|
-
for (var g = document.cookie ? document.cookie.split("; ") : [],
|
|
6476
|
+
for (var g = document.cookie ? document.cookie.split("; ") : [], b = {}, f = 0; f < g.length; f++) {
|
|
6477
6477
|
var l = g[f].split("="), a = l.slice(1).join("=");
|
|
6478
6478
|
try {
|
|
6479
6479
|
var i = decodeURIComponent(l[0]);
|
|
6480
|
-
if (
|
|
6480
|
+
if (b[i] = e.read(a, i), p === i)
|
|
6481
6481
|
break;
|
|
6482
6482
|
} catch {
|
|
6483
6483
|
}
|
|
6484
6484
|
}
|
|
6485
|
-
return p ?
|
|
6485
|
+
return p ? b[p] : b;
|
|
6486
6486
|
}
|
|
6487
6487
|
}
|
|
6488
6488
|
return Object.create(
|
|
@@ -6558,7 +6558,7 @@ function _t() {
|
|
|
6558
6558
|
_n = 1, Object.defineProperty(sa, "__esModule", { value: !0 }), sa.setUpSocketIOPing = sa.appendQueryParams = sa.parseSocketIOUrl = void 0;
|
|
6559
6559
|
var e = ra(), r = function(p) {
|
|
6560
6560
|
if (p) {
|
|
6561
|
-
var g = /^https|wss/.test(p),
|
|
6561
|
+
var g = /^https|wss/.test(p), b = p.replace(/^(https?|wss?)(:\/\/)?/, ""), f = b.replace(/\/$/, ""), l = g ? "wss" : "ws";
|
|
6562
6562
|
return "".concat(l, "://").concat(f).concat(e.SOCKET_IO_PATH);
|
|
6563
6563
|
} else if (p === "") {
|
|
6564
6564
|
var g = /^https/.test(window.location.protocol), l = g ? "wss" : "ws", a = window.location.port ? ":".concat(window.location.port) : "";
|
|
@@ -6569,7 +6569,7 @@ function _t() {
|
|
|
6569
6569
|
sa.parseSocketIOUrl = r;
|
|
6570
6570
|
var t = function(p, g) {
|
|
6571
6571
|
g === void 0 && (g = {});
|
|
6572
|
-
var
|
|
6572
|
+
var b = /\?([\w]+=[\w]+)/, f = b.test(p), l = "".concat(Object.entries(g).reduce(function(a, i) {
|
|
6573
6573
|
var s = i[0], o = i[1];
|
|
6574
6574
|
return a + "".concat(s, "=").concat(o, "&");
|
|
6575
6575
|
}, "").slice(0, -1));
|
|
@@ -6578,10 +6578,10 @@ function _t() {
|
|
|
6578
6578
|
sa.appendQueryParams = t;
|
|
6579
6579
|
var n = function(p, g) {
|
|
6580
6580
|
g === void 0 && (g = e.SOCKET_IO_PING_INTERVAL);
|
|
6581
|
-
var
|
|
6581
|
+
var b = function() {
|
|
6582
6582
|
return p(e.SOCKET_IO_PING_CODE);
|
|
6583
6583
|
};
|
|
6584
|
-
return window.setInterval(
|
|
6584
|
+
return window.setInterval(b, g);
|
|
6585
6585
|
};
|
|
6586
6586
|
return sa.setUpSocketIOPing = n, sa;
|
|
6587
6587
|
}
|
|
@@ -6596,7 +6596,7 @@ function il() {
|
|
|
6596
6596
|
}).current : n.current;
|
|
6597
6597
|
}
|
|
6598
6598
|
function t(n, p, g) {
|
|
6599
|
-
var
|
|
6599
|
+
var b = g || {}, f = b.interval, l = f === void 0 ? e.DEFAULT_HEARTBEAT.interval : f, a = b.timeout, i = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, s = b.message, o = s === void 0 ? e.DEFAULT_HEARTBEAT.message : s, u = Math.max(100, l / 10), m = Date.now(), c = setInterval(function() {
|
|
6600
6600
|
var d = Date.now(), y = r(p);
|
|
6601
6601
|
if (y + i <= d)
|
|
6602
6602
|
console.warn("Heartbeat timed out, closing connection, last message received ".concat(d - y, "ms ago, last ping sent ").concat(d - m, "ms ago")), n.close();
|
|
@@ -6631,10 +6631,10 @@ function yt() {
|
|
|
6631
6631
|
r[l] = r[l] || /* @__PURE__ */ new Set(), r[l].add(a);
|
|
6632
6632
|
};
|
|
6633
6633
|
e.addSubscriber = g;
|
|
6634
|
-
var
|
|
6634
|
+
var b = function(l, a) {
|
|
6635
6635
|
r[l].delete(a);
|
|
6636
6636
|
};
|
|
6637
|
-
e.removeSubscriber =
|
|
6637
|
+
e.removeSubscriber = b;
|
|
6638
6638
|
var f = function(l) {
|
|
6639
6639
|
if (l && r.hasOwnProperty(l))
|
|
6640
6640
|
delete r[l];
|
|
@@ -6678,7 +6678,7 @@ function yo() {
|
|
|
6678
6678
|
var c;
|
|
6679
6679
|
s.current.onMessage && s.current.onMessage(m), typeof u?.current == "number" && (u.current = Date.now()), !(typeof s.current.filter == "function" && s.current.filter(m) !== !0) && (s.current.heartbeat && typeof s.current.heartbeat != "boolean" && ((c = s.current.heartbeat) === null || c === void 0 ? void 0 : c.returnMessage) === m.data || o(m));
|
|
6680
6680
|
};
|
|
6681
|
-
},
|
|
6681
|
+
}, b = function(i, s, o, u, m) {
|
|
6682
6682
|
i.onopen = function(c) {
|
|
6683
6683
|
if (s.current.onOpen && s.current.onOpen(c), u.current = 0, o(n.ReadyState.OPEN), s.current.heartbeat && i instanceof WebSocket) {
|
|
6684
6684
|
var d = typeof s.current.heartbeat == "boolean" ? void 0 : s.current.heartbeat;
|
|
@@ -6696,10 +6696,10 @@ function yo() {
|
|
|
6696
6696
|
if (s.current.onClose && s.current.onClose(d), o(n.ReadyState.CLOSED), s.current.shouldReconnect && s.current.shouldReconnect(d)) {
|
|
6697
6697
|
var _ = (y = s.current.reconnectAttempts) !== null && y !== void 0 ? y : n.DEFAULT_RECONNECT_LIMIT;
|
|
6698
6698
|
if (m.current < _) {
|
|
6699
|
-
var
|
|
6699
|
+
var U = typeof s.current.reconnectInterval == "function" ? s.current.reconnectInterval(m.current) : s.current.reconnectInterval;
|
|
6700
6700
|
c = window.setTimeout(function() {
|
|
6701
6701
|
m.current++, u();
|
|
6702
|
-
},
|
|
6702
|
+
}, U ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6703
6703
|
} else
|
|
6704
6704
|
s.current.onReconnectStop && s.current.onReconnectStop(_), console.warn("Max reconnect attempts of ".concat(_, " exceeded"));
|
|
6705
6705
|
}
|
|
@@ -6722,9 +6722,9 @@ function yo() {
|
|
|
6722
6722
|
return c && window.clearTimeout(c);
|
|
6723
6723
|
};
|
|
6724
6724
|
}, a = function(i, s, o, u, m, c, d) {
|
|
6725
|
-
var y = s.setLastMessage, _ = s.setReadyState,
|
|
6726
|
-
return o.current.fromSocketIO && (
|
|
6727
|
-
_(n.ReadyState.CLOSING), v(), T(), i.close(),
|
|
6725
|
+
var y = s.setLastMessage, _ = s.setReadyState, U, v, T;
|
|
6726
|
+
return o.current.fromSocketIO && (U = (0, r.setUpSocketIOPing)(d)), g(i, o, y, c), b(i, o, _, m, c), v = f(i, o, _, u, m), T = l(i, o, _, u, m), function() {
|
|
6727
|
+
_(n.ReadyState.CLOSING), v(), T(), i.close(), U && clearInterval(U);
|
|
6728
6728
|
};
|
|
6729
6729
|
};
|
|
6730
6730
|
return ha.attachListeners = a, ha;
|
|
@@ -6743,7 +6743,7 @@ function Uo() {
|
|
|
6743
6743
|
}, e.apply(this, arguments);
|
|
6744
6744
|
};
|
|
6745
6745
|
Object.defineProperty(Ta, "__esModule", { value: !0 }), Ta.attachSharedListeners = void 0;
|
|
6746
|
-
var r = ft(), t = ra(), n = yt(), p = _t(), g = il(),
|
|
6746
|
+
var r = ft(), t = ra(), n = yt(), p = _t(), g = il(), b = function(s, o, u) {
|
|
6747
6747
|
s.onmessage = function(m) {
|
|
6748
6748
|
(0, n.getSubscribers)(o).forEach(function(c) {
|
|
6749
6749
|
var d;
|
|
@@ -6785,7 +6785,7 @@ function Uo() {
|
|
|
6785
6785
|
};
|
|
6786
6786
|
}, i = function(s, o, u, m) {
|
|
6787
6787
|
var c;
|
|
6788
|
-
return u.current.fromSocketIO && (c = (0, p.setUpSocketIOPing)(m)),
|
|
6788
|
+
return u.current.fromSocketIO && (c = (0, p.setUpSocketIOPing)(m)), b(s, o, u.current.heartbeat), l(s, o), f(s, o, u.current.heartbeat), a(s, o), function() {
|
|
6789
6789
|
c && clearInterval(c);
|
|
6790
6790
|
};
|
|
6791
6791
|
};
|
|
@@ -6808,7 +6808,7 @@ function bo() {
|
|
|
6808
6808
|
s && s(), delete e.sharedWebSockets[f];
|
|
6809
6809
|
}
|
|
6810
6810
|
};
|
|
6811
|
-
},
|
|
6811
|
+
}, b = function(f, l, a, i, s, o, u, m, c) {
|
|
6812
6812
|
if (!r.isEventSourceSupported && i.current.eventSourceOptions)
|
|
6813
6813
|
throw r.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6814
6814
|
if (i.current.share) {
|
|
@@ -6832,7 +6832,7 @@ function bo() {
|
|
|
6832
6832
|
}, i, o.current, u, m, c);
|
|
6833
6833
|
}
|
|
6834
6834
|
};
|
|
6835
|
-
return Ka.createOrJoinSocket =
|
|
6835
|
+
return Ka.createOrJoinSocket = b, Ka;
|
|
6836
6836
|
}
|
|
6837
6837
|
var ma = {}, Tn;
|
|
6838
6838
|
function Co() {
|
|
@@ -6847,15 +6847,15 @@ function Co() {
|
|
|
6847
6847
|
function c(_) {
|
|
6848
6848
|
try {
|
|
6849
6849
|
y(s.next(_));
|
|
6850
|
-
} catch (
|
|
6851
|
-
m(
|
|
6850
|
+
} catch (U) {
|
|
6851
|
+
m(U);
|
|
6852
6852
|
}
|
|
6853
6853
|
}
|
|
6854
6854
|
function d(_) {
|
|
6855
6855
|
try {
|
|
6856
6856
|
y(s.throw(_));
|
|
6857
|
-
} catch (
|
|
6858
|
-
m(
|
|
6857
|
+
} catch (U) {
|
|
6858
|
+
m(U);
|
|
6859
6859
|
}
|
|
6860
6860
|
}
|
|
6861
6861
|
function y(_) {
|
|
@@ -6928,7 +6928,7 @@ function Co() {
|
|
|
6928
6928
|
return l.concat(u || Array.prototype.slice.call(a));
|
|
6929
6929
|
};
|
|
6930
6930
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
6931
|
-
var p = _t(), g = ra(),
|
|
6931
|
+
var p = _t(), g = ra(), b = function(l) {
|
|
6932
6932
|
return new Promise(function(a) {
|
|
6933
6933
|
return window.setTimeout(a, l);
|
|
6934
6934
|
});
|
|
@@ -6936,7 +6936,7 @@ function Co() {
|
|
|
6936
6936
|
for (var i = [], s = 2; s < arguments.length; s++)
|
|
6937
6937
|
i[s - 2] = arguments[s];
|
|
6938
6938
|
return r(void 0, n([l, a], i, !0), void 0, function(o, u, m) {
|
|
6939
|
-
var c, d, y, _,
|
|
6939
|
+
var c, d, y, _, U, v, T, x;
|
|
6940
6940
|
return m === void 0 && (m = 0), t(this, function(S) {
|
|
6941
6941
|
switch (S.label) {
|
|
6942
6942
|
case 0:
|
|
@@ -6947,7 +6947,7 @@ function Co() {
|
|
|
6947
6947
|
case 2:
|
|
6948
6948
|
return c = S.sent(), [3, 9];
|
|
6949
6949
|
case 3:
|
|
6950
|
-
return S.sent(), u.current.retryOnError ? (d = (v = u.current.reconnectAttempts) !== null && v !== void 0 ? v : g.DEFAULT_RECONNECT_LIMIT, m < d ? (y = typeof u.current.reconnectInterval == "function" ? u.current.reconnectInterval(m) : u.current.reconnectInterval, [4,
|
|
6950
|
+
return S.sent(), u.current.retryOnError ? (d = (v = u.current.reconnectAttempts) !== null && v !== void 0 ? v : g.DEFAULT_RECONNECT_LIMIT, m < d ? (y = typeof u.current.reconnectInterval == "function" ? u.current.reconnectInterval(m) : u.current.reconnectInterval, [4, b(y ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
6951
6951
|
case 4:
|
|
6952
6952
|
return S.sent(), [2, (0, e.getUrl)(o, u, m + 1)];
|
|
6953
6953
|
case 5:
|
|
@@ -6963,7 +6963,7 @@ function Co() {
|
|
|
6963
6963
|
case 10:
|
|
6964
6964
|
c = o, S.label = 11;
|
|
6965
6965
|
case 11:
|
|
6966
|
-
return _ = u.current.fromSocketIO ? (0, p.parseSocketIOUrl)(c) : c,
|
|
6966
|
+
return _ = u.current.fromSocketIO ? (0, p.parseSocketIOUrl)(c) : c, U = u.current.queryParams ? (0, p.appendQueryParams)(_, u.current.queryParams) : _, [2, U];
|
|
6967
6967
|
}
|
|
6968
6968
|
});
|
|
6969
6969
|
});
|
|
@@ -6978,12 +6978,12 @@ function vo() {
|
|
|
6978
6978
|
var r = function(t, n) {
|
|
6979
6979
|
return new Proxy(t, {
|
|
6980
6980
|
get: function(p, g) {
|
|
6981
|
-
var
|
|
6982
|
-
return g === "reconnect" ? n : typeof
|
|
6983
|
-
}) :
|
|
6981
|
+
var b = p[g];
|
|
6982
|
+
return g === "reconnect" ? n : typeof b == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
|
|
6983
|
+
}) : b;
|
|
6984
6984
|
},
|
|
6985
|
-
set: function(p, g,
|
|
6986
|
-
return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (p[g] =
|
|
6985
|
+
set: function(p, g, b) {
|
|
6986
|
+
return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (p[g] = b, !0);
|
|
6987
6987
|
}
|
|
6988
6988
|
});
|
|
6989
6989
|
};
|
|
@@ -7009,7 +7009,7 @@ function bt() {
|
|
|
7009
7009
|
});
|
|
7010
7010
|
}
|
|
7011
7011
|
return new (m || (m = Promise))(function(y, _) {
|
|
7012
|
-
function
|
|
7012
|
+
function U(x) {
|
|
7013
7013
|
try {
|
|
7014
7014
|
T(c.next(x));
|
|
7015
7015
|
} catch (S) {
|
|
@@ -7024,7 +7024,7 @@ function bt() {
|
|
|
7024
7024
|
}
|
|
7025
7025
|
}
|
|
7026
7026
|
function T(x) {
|
|
7027
|
-
x.done ? y(x.value) : d(x.value).then(
|
|
7027
|
+
x.done ? y(x.value) : d(x.value).then(U, v);
|
|
7028
7028
|
}
|
|
7029
7029
|
T((c = c.apply(o, u || [])).next());
|
|
7030
7030
|
});
|
|
@@ -7033,10 +7033,10 @@ function bt() {
|
|
|
7033
7033
|
if (y[0] & 1) throw y[1];
|
|
7034
7034
|
return y[1];
|
|
7035
7035
|
}, trys: [], ops: [] }, c, d, y, _ = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
7036
|
-
return _.next =
|
|
7036
|
+
return _.next = U(0), _.throw = U(1), _.return = U(2), typeof Symbol == "function" && (_[Symbol.iterator] = function() {
|
|
7037
7037
|
return this;
|
|
7038
7038
|
}), _;
|
|
7039
|
-
function
|
|
7039
|
+
function U(T) {
|
|
7040
7040
|
return function(x) {
|
|
7041
7041
|
return v([T, x]);
|
|
7042
7042
|
};
|
|
@@ -7091,30 +7091,30 @@ function bt() {
|
|
|
7091
7091
|
return o && o.__esModule ? o : { default: o };
|
|
7092
7092
|
};
|
|
7093
7093
|
Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.useWebSocket = void 0;
|
|
7094
|
-
var p = de, g = Il,
|
|
7095
|
-
u === void 0 && (u =
|
|
7096
|
-
var c = (0, p.useState)(null), d = c[0], y = c[1], _ = (0, p.useState)({}),
|
|
7094
|
+
var p = de, g = Il, b = ra(), f = bo(), l = Co(), a = n(vo()), i = Ut(), s = function(o, u, m) {
|
|
7095
|
+
u === void 0 && (u = b.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7096
|
+
var c = (0, p.useState)(null), d = c[0], y = c[1], _ = (0, p.useState)({}), U = _[0], v = _[1], T = (0, p.useMemo)(function() {
|
|
7097
7097
|
if (!u.disableJson && d)
|
|
7098
7098
|
try {
|
|
7099
7099
|
return JSON.parse(d.data);
|
|
7100
7100
|
} catch {
|
|
7101
|
-
return
|
|
7101
|
+
return b.UNPARSABLE_JSON_OBJECT;
|
|
7102
7102
|
}
|
|
7103
7103
|
return null;
|
|
7104
7104
|
}, [d, u.disableJson]), x = (0, p.useRef)(null), S = (0, p.useRef)(null), G = (0, p.useRef)(function() {
|
|
7105
7105
|
}), O = (0, p.useRef)(0), C = (0, p.useRef)(Date.now()), h = (0, p.useRef)([]), N = (0, p.useRef)(null), E = (0, p.useRef)(u);
|
|
7106
7106
|
E.current = u;
|
|
7107
|
-
var P = x.current &&
|
|
7107
|
+
var P = x.current && U[x.current] !== void 0 ? U[x.current] : o !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, M = u.queryParams ? JSON.stringify(u.queryParams) : null, R = (0, p.useCallback)(function(H, W) {
|
|
7108
7108
|
var L;
|
|
7109
|
-
if (W === void 0 && (W = !0),
|
|
7109
|
+
if (W === void 0 && (W = !0), b.isEventSourceSupported && S.current instanceof EventSource) {
|
|
7110
7110
|
console.warn("Unable to send a message from an eventSource");
|
|
7111
7111
|
return;
|
|
7112
7112
|
}
|
|
7113
|
-
((L = S.current) === null || L === void 0 ? void 0 : L.readyState) ===
|
|
7113
|
+
((L = S.current) === null || L === void 0 ? void 0 : L.readyState) === b.ReadyState.OPEN ? ((0, i.assertIsWebSocket)(S.current, E.current.skipAssert), S.current.send(H)) : W && h.current.push(H);
|
|
7114
7114
|
}, []), B = (0, p.useCallback)(function(H, W) {
|
|
7115
7115
|
W === void 0 && (W = !0), R(JSON.stringify(H), W);
|
|
7116
7116
|
}, [R]), A = (0, p.useCallback)(function() {
|
|
7117
|
-
return E.current.share !== !0 ||
|
|
7117
|
+
return E.current.share !== !0 || b.isEventSourceSupported && S.current instanceof EventSource ? S.current : (N.current === null && S.current && ((0, i.assertIsWebSocket)(S.current, E.current.skipAssert), N.current = (0, a.default)(S.current, G)), N.current);
|
|
7118
7118
|
}, []);
|
|
7119
7119
|
return (0, p.useEffect)(function() {
|
|
7120
7120
|
if (o !== null && m === !0) {
|
|
@@ -7128,7 +7128,7 @@ function bt() {
|
|
|
7128
7128
|
case 1:
|
|
7129
7129
|
return F.current = $.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7130
7130
|
return v(function(Q) {
|
|
7131
|
-
return e(e({}, Q), { ABORTED:
|
|
7131
|
+
return e(e({}, Q), { ABORTED: b.ReadyState.CLOSED });
|
|
7132
7132
|
});
|
|
7133
7133
|
}), [
|
|
7134
7134
|
2
|
|
@@ -7159,10 +7159,10 @@ function bt() {
|
|
|
7159
7159
|
};
|
|
7160
7160
|
} else (o === null || m === !1) && (O.current = 0, v(function(F) {
|
|
7161
7161
|
var w;
|
|
7162
|
-
return e(e({}, F), x.current && (w = {}, w[x.current] =
|
|
7162
|
+
return e(e({}, F), x.current && (w = {}, w[x.current] = b.ReadyState.CLOSED, w));
|
|
7163
7163
|
}));
|
|
7164
7164
|
}, [o, m, M, R]), (0, p.useEffect)(function() {
|
|
7165
|
-
P ===
|
|
7165
|
+
P === b.ReadyState.OPEN && h.current.splice(0).forEach(function(H) {
|
|
7166
7166
|
R(H);
|
|
7167
7167
|
});
|
|
7168
7168
|
}, [P]), {
|
|
@@ -7204,7 +7204,7 @@ function ho() {
|
|
|
7204
7204
|
type: a[0],
|
|
7205
7205
|
payload: a[1]
|
|
7206
7206
|
};
|
|
7207
|
-
},
|
|
7207
|
+
}, b = function(f, l, a) {
|
|
7208
7208
|
l === void 0 && (l = n.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
7209
7209
|
var i = (0, r.useMemo)(function() {
|
|
7210
7210
|
return e(e({}, l), { fromSocketIO: !0 });
|
|
@@ -7220,30 +7220,30 @@ function ho() {
|
|
|
7220
7220
|
getWebSocket: d
|
|
7221
7221
|
};
|
|
7222
7222
|
};
|
|
7223
|
-
return ka.useSocketIO =
|
|
7223
|
+
return ka.useSocketIO = b, ka;
|
|
7224
7224
|
}
|
|
7225
7225
|
var ua = {}, Dn;
|
|
7226
7226
|
function To() {
|
|
7227
7227
|
if (Dn) return ua;
|
|
7228
7228
|
Dn = 1;
|
|
7229
7229
|
var e = ua && ua.__assign || function() {
|
|
7230
|
-
return e = Object.assign || function(
|
|
7230
|
+
return e = Object.assign || function(b) {
|
|
7231
7231
|
for (var f, l = 1, a = arguments.length; l < a; l++) {
|
|
7232
7232
|
f = arguments[l];
|
|
7233
|
-
for (var i in f) Object.prototype.hasOwnProperty.call(f, i) && (
|
|
7233
|
+
for (var i in f) Object.prototype.hasOwnProperty.call(f, i) && (b[i] = f[i]);
|
|
7234
7234
|
}
|
|
7235
|
-
return
|
|
7235
|
+
return b;
|
|
7236
7236
|
}, e.apply(this, arguments);
|
|
7237
|
-
}, r = ua && ua.__rest || function(
|
|
7237
|
+
}, r = ua && ua.__rest || function(b, f) {
|
|
7238
7238
|
var l = {};
|
|
7239
|
-
for (var a in
|
|
7240
|
-
if (
|
|
7241
|
-
for (var i = 0, a = Object.getOwnPropertySymbols(
|
|
7242
|
-
f.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(
|
|
7239
|
+
for (var a in b) Object.prototype.hasOwnProperty.call(b, a) && f.indexOf(a) < 0 && (l[a] = b[a]);
|
|
7240
|
+
if (b != null && typeof Object.getOwnPropertySymbols == "function")
|
|
7241
|
+
for (var i = 0, a = Object.getOwnPropertySymbols(b); i < a.length; i++)
|
|
7242
|
+
f.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(b, a[i]) && (l[a[i]] = b[a[i]]);
|
|
7243
7243
|
return l;
|
|
7244
7244
|
};
|
|
7245
7245
|
Object.defineProperty(ua, "__esModule", { value: !0 }), ua.useEventSource = void 0;
|
|
7246
|
-
var t = de, n = bt(), p = ra(), g = function(
|
|
7246
|
+
var t = de, n = bt(), p = ra(), g = function(b, f, l) {
|
|
7247
7247
|
f === void 0 && (f = p.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7248
7248
|
var a = f.withCredentials, i = f.events, s = r(f, ["withCredentials", "events"]);
|
|
7249
7249
|
l === void 0 && (l = !0);
|
|
@@ -7251,11 +7251,11 @@ function To() {
|
|
|
7251
7251
|
withCredentials: a
|
|
7252
7252
|
} }), u = (0, t.useRef)(p.EMPTY_EVENT_HANDLERS);
|
|
7253
7253
|
i && (u.current = i);
|
|
7254
|
-
var m = (0, n.useWebSocket)(
|
|
7254
|
+
var m = (0, n.useWebSocket)(b, o, l), c = m.lastMessage, d = m.readyState, y = m.getWebSocket;
|
|
7255
7255
|
return (0, t.useEffect)(function() {
|
|
7256
7256
|
c?.type && Object.entries(u.current).forEach(function(_) {
|
|
7257
|
-
var
|
|
7258
|
-
|
|
7257
|
+
var U = _[0], v = _[1];
|
|
7258
|
+
U === c.type && v(c);
|
|
7259
7259
|
});
|
|
7260
7260
|
}, [c]), {
|
|
7261
7261
|
lastEvent: c,
|
|
@@ -7299,7 +7299,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7299
7299
|
isInGameBox: n = !1,
|
|
7300
7300
|
currentGamePlatform: p = ""
|
|
7301
7301
|
}) => {
|
|
7302
|
-
const { store: g, lng:
|
|
7302
|
+
const { store: g, lng: b } = re(), { isReady: f, setAsReady: l, isPending: a, setAsPending: i } = Vn(), s = je(b), { mutateAsync: o } = Oo();
|
|
7303
7303
|
return !e || !r || !t ? { handleTransferInGame: () => {
|
|
7304
7304
|
} } : { handleTransferInGame: async () => {
|
|
7305
7305
|
console.log("執行遊戲內轉帳"), n && await o({
|
|
@@ -7417,7 +7417,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7417
7417
|
retry: !1,
|
|
7418
7418
|
...e
|
|
7419
7419
|
});
|
|
7420
|
-
},
|
|
7420
|
+
}, km = ({ options: e } = {}) => {
|
|
7421
7421
|
const { currency: r } = re(), { pointTransferApi: t } = ce();
|
|
7422
7422
|
return ue({
|
|
7423
7423
|
mutationKey: ["pointTransfer"],
|
|
@@ -7427,7 +7427,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7427
7427
|
}),
|
|
7428
7428
|
...e
|
|
7429
7429
|
});
|
|
7430
|
-
},
|
|
7430
|
+
}, xm = ({ options: e } = {}) => {
|
|
7431
7431
|
const { currency: r } = re(), { checkUserWagerApi: t } = ce();
|
|
7432
7432
|
return ne({
|
|
7433
7433
|
queryKey: ["checkUserWager"],
|
|
@@ -7440,7 +7440,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7440
7440
|
},
|
|
7441
7441
|
...e
|
|
7442
7442
|
});
|
|
7443
|
-
},
|
|
7443
|
+
}, Sm = ({ options: e } = {}) => {
|
|
7444
7444
|
const r = Hn(), { abandonPointsApi: t } = ce();
|
|
7445
7445
|
return ue({
|
|
7446
7446
|
mutationKey: ["abandonPoint"],
|
|
@@ -7473,14 +7473,14 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7473
7473
|
queryFn: async () => t(r),
|
|
7474
7474
|
...e
|
|
7475
7475
|
});
|
|
7476
|
-
},
|
|
7476
|
+
}, Dm = ({ options: e } = {}) => {
|
|
7477
7477
|
const { currency: r } = re(), { memberTransferApi: t } = ce();
|
|
7478
7478
|
return ue({
|
|
7479
7479
|
mutationKey: ["memberTransfer"],
|
|
7480
7480
|
mutationFn: async (n) => t({ ...n, currency: r }),
|
|
7481
7481
|
...e
|
|
7482
7482
|
});
|
|
7483
|
-
},
|
|
7483
|
+
}, Em = ({
|
|
7484
7484
|
options: e = {
|
|
7485
7485
|
login: {},
|
|
7486
7486
|
logout: {},
|
|
@@ -7496,7 +7496,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7496
7496
|
} = {}) => {
|
|
7497
7497
|
const r = Eo({ options: e.login }), t = No({ options: e.logout }), n = Lo({ options: e.register }), p = Mo({ options: e.updateUserInfo }), g = Go({
|
|
7498
7498
|
options: e.toggleFavoriteGame
|
|
7499
|
-
}),
|
|
7499
|
+
}), b = Ro({
|
|
7500
7500
|
options: e.resetUserPassword
|
|
7501
7501
|
}), f = Po({
|
|
7502
7502
|
options: e.setUserTransactionPassword
|
|
@@ -7509,7 +7509,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7509
7509
|
register: n,
|
|
7510
7510
|
updateUserInfo: p,
|
|
7511
7511
|
toggleFavoriteGame: g,
|
|
7512
|
-
resetUserPassword:
|
|
7512
|
+
resetUserPassword: b,
|
|
7513
7513
|
setUserTransactionPassword: f,
|
|
7514
7514
|
resetUserTransactionPassword: l,
|
|
7515
7515
|
userRebate: a,
|
|
@@ -7529,7 +7529,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7529
7529
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7530
7530
|
GAME_MAINTAIN: "game_maintain",
|
|
7531
7531
|
LINE_LOGIN: "line_login"
|
|
7532
|
-
}, Wo = 3e4,
|
|
7532
|
+
}, Wo = 3e4, Nm = ({
|
|
7533
7533
|
socketUrl: e,
|
|
7534
7534
|
socketHandlers: r = {},
|
|
7535
7535
|
options: t = {},
|
|
@@ -7542,13 +7542,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7542
7542
|
},
|
|
7543
7543
|
enableNotification: g = !1
|
|
7544
7544
|
}) => {
|
|
7545
|
-
const { store:
|
|
7545
|
+
const { store: b, lng: f } = re(), l = Hn(), { isReady: a, setAsReady: i, isPending: s, setAsPending: o } = Vn(), u = je(f), m = ee(!1), c = ee(r), d = ge(n, "uid", null);
|
|
7546
7546
|
ge(n, "testFunction", 0);
|
|
7547
7547
|
const y = new URLSearchParams(window.location.search), _ = ge(
|
|
7548
7548
|
p,
|
|
7549
7549
|
"enableTransferInGaming",
|
|
7550
7550
|
!1
|
|
7551
|
-
), { mutateAsync:
|
|
7551
|
+
), { mutateAsync: U } = tl({
|
|
7552
7552
|
options: {
|
|
7553
7553
|
onSuccess: (E) => {
|
|
7554
7554
|
c.current.onLineLogin?.(E);
|
|
@@ -7561,7 +7561,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7561
7561
|
c.current.onLineLogin?.(E);
|
|
7562
7562
|
},
|
|
7563
7563
|
onError: (E, P) => {
|
|
7564
|
-
|
|
7564
|
+
U(P);
|
|
7565
7565
|
}
|
|
7566
7566
|
}
|
|
7567
7567
|
}), { handleTransferInGame: T } = Do({
|
|
@@ -7604,7 +7604,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7604
7604
|
}, [x]);
|
|
7605
7605
|
const h = I(
|
|
7606
7606
|
(E, P) => {
|
|
7607
|
-
g &&
|
|
7607
|
+
g && b.dispatch({
|
|
7608
7608
|
type: "ui/openNotificationModal",
|
|
7609
7609
|
payload: {
|
|
7610
7610
|
title: Qa[u] || "System Prompt",
|
|
@@ -7614,7 +7614,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7614
7614
|
}
|
|
7615
7615
|
});
|
|
7616
7616
|
},
|
|
7617
|
-
[g,
|
|
7617
|
+
[g, b, u]
|
|
7618
7618
|
);
|
|
7619
7619
|
me(() => {
|
|
7620
7620
|
c.current = r;
|
|
@@ -7692,7 +7692,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7692
7692
|
T();
|
|
7693
7693
|
return;
|
|
7694
7694
|
}
|
|
7695
|
-
localStorage.removeItem("transfer_in_game_request_id"), i(),
|
|
7695
|
+
localStorage.removeItem("transfer_in_game_request_id"), i(), b.dispatch({
|
|
7696
7696
|
type: "ui/openNotificationModal",
|
|
7697
7697
|
payload: {
|
|
7698
7698
|
title: Qa[u] || "System Prompt",
|
|
@@ -7734,7 +7734,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7734
7734
|
}, [
|
|
7735
7735
|
C,
|
|
7736
7736
|
d,
|
|
7737
|
-
|
|
7737
|
+
b,
|
|
7738
7738
|
l,
|
|
7739
7739
|
u,
|
|
7740
7740
|
h,
|
|
@@ -7762,8 +7762,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7762
7762
|
}, Ji = () => {
|
|
7763
7763
|
const { client: e } = re(), r = I(
|
|
7764
7764
|
async ({ paramsData: g } = {}) => {
|
|
7765
|
-
const { uid:
|
|
7766
|
-
return await e.get(`/event/list${
|
|
7765
|
+
const { uid: b } = g || {};
|
|
7766
|
+
return await e.get(`/event/list${b ? `/${b}` : ""}`);
|
|
7767
7767
|
},
|
|
7768
7768
|
[e]
|
|
7769
7769
|
), t = I(
|
|
@@ -7773,17 +7773,17 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7773
7773
|
[e]
|
|
7774
7774
|
), n = I(
|
|
7775
7775
|
async (g = {}) => {
|
|
7776
|
-
const { event_uid:
|
|
7777
|
-
return await e.get(`/event/${
|
|
7778
|
-
event_uid:
|
|
7776
|
+
const { event_uid: b } = g || {};
|
|
7777
|
+
return await e.get(`/event/${b}/memberGetEventRewards`, {
|
|
7778
|
+
event_uid: b
|
|
7779
7779
|
});
|
|
7780
7780
|
},
|
|
7781
7781
|
[e]
|
|
7782
7782
|
), p = I(
|
|
7783
7783
|
async (g = {}) => {
|
|
7784
|
-
const { currency:
|
|
7784
|
+
const { currency: b, event_uid: f } = g || {};
|
|
7785
7785
|
return await e.post("/event/checkMemberEventsStatus", {
|
|
7786
|
-
currency:
|
|
7786
|
+
currency: b,
|
|
7787
7787
|
event_uid: f
|
|
7788
7788
|
});
|
|
7789
7789
|
},
|
|
@@ -7796,7 +7796,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7796
7796
|
redeemEventRewardApi: n
|
|
7797
7797
|
};
|
|
7798
7798
|
}, zo = ({ paramsData: e, options: r } = {}) => {
|
|
7799
|
-
const { store: t, lng: n, data2URL: p } = re(), { eventListApi: g } = Ji(),
|
|
7799
|
+
const { store: t, lng: n, data2URL: p } = re(), { eventListApi: g } = Ji(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", f = je(n);
|
|
7800
7800
|
return ne({
|
|
7801
7801
|
queryKey: ["eventList", e],
|
|
7802
7802
|
queryFn: () => g({ paramsData: e }),
|
|
@@ -7805,10 +7805,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7805
7805
|
return We(a, (s) => {
|
|
7806
7806
|
const { events_attributes: o } = s, u = $e(
|
|
7807
7807
|
o,
|
|
7808
|
-
(T) => T.attribute_currency ===
|
|
7809
|
-
) || o[0], m = ge(u, "rewards", {}), c = ge(s, "carousels.[0]", {}), d = $e(c.carousels_lang, (T) => T.lang === f) || c?.carousels_lang?.[0]
|
|
7810
|
-
console.log(d);
|
|
7811
|
-
const y = {
|
|
7808
|
+
(T) => T.attribute_currency === b
|
|
7809
|
+
) || o[0], m = ge(u, "rewards", {}), c = ge(s, "carousels.[0]", {}), d = $e(c.carousels_lang, (T) => T.lang === f) || c?.carousels_lang?.[0], y = {
|
|
7812
7810
|
...c,
|
|
7813
7811
|
currentLngCarousel: {
|
|
7814
7812
|
...d,
|
|
@@ -7863,7 +7861,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7863
7861
|
//標籤群組
|
|
7864
7862
|
eventBg: Jn(),
|
|
7865
7863
|
eventIcon: Zn(s.type)
|
|
7866
|
-
},
|
|
7864
|
+
}, U = {
|
|
7867
7865
|
isActive: u.attribute_is_active === 1,
|
|
7868
7866
|
//是否啟用
|
|
7869
7867
|
currencyCode: u.attribute_currency,
|
|
@@ -7902,7 +7900,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7902
7900
|
};
|
|
7903
7901
|
return {
|
|
7904
7902
|
eventBase: _,
|
|
7905
|
-
eventAttribute:
|
|
7903
|
+
eventAttribute: U,
|
|
7906
7904
|
eventReward: v,
|
|
7907
7905
|
eventCarousel: { ...y }
|
|
7908
7906
|
};
|
|
@@ -7910,7 +7908,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7910
7908
|
},
|
|
7911
7909
|
...r
|
|
7912
7910
|
});
|
|
7913
|
-
},
|
|
7911
|
+
}, Lm = ({ options: e } = {}) => {
|
|
7914
7912
|
const { redeemEventRewardApi: r } = Ji();
|
|
7915
7913
|
return ue({
|
|
7916
7914
|
mutationKey: ["redeemEventReward"],
|
|
@@ -7932,7 +7930,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7932
7930
|
select: (n) => n.data.event_status,
|
|
7933
7931
|
...e
|
|
7934
7932
|
});
|
|
7935
|
-
},
|
|
7933
|
+
}, Gm = ({
|
|
7936
7934
|
options: e = {
|
|
7937
7935
|
eventList: {},
|
|
7938
7936
|
checkEventProgress: {},
|
|
@@ -7963,7 +7961,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7963
7961
|
commonInboxApi: n,
|
|
7964
7962
|
commonReadInboxApi: p
|
|
7965
7963
|
};
|
|
7966
|
-
},
|
|
7964
|
+
}, Mm = () => {
|
|
7967
7965
|
const { lng: e, data2URL: r } = re(), { commonCarouselApi: t } = Ki(), n = je(e);
|
|
7968
7966
|
return ne({
|
|
7969
7967
|
queryKey: ["getCarouselList"],
|
|
@@ -7971,10 +7969,10 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7971
7969
|
const p = window.carousels_list;
|
|
7972
7970
|
return p || await t();
|
|
7973
7971
|
},
|
|
7974
|
-
select: (p) => p.map((
|
|
7975
|
-
const { carousels_lang: f } =
|
|
7972
|
+
select: (p) => p.map((b) => {
|
|
7973
|
+
const { carousels_lang: f } = b, l = f?.find((a) => a.lang === n) || f[0];
|
|
7976
7974
|
return {
|
|
7977
|
-
...
|
|
7975
|
+
...b,
|
|
7978
7976
|
carouselCurrentLanguageData: l,
|
|
7979
7977
|
carouselCurrentLanguagePCImageUrl: `${r}/carousels/${l.image_pc}`,
|
|
7980
7978
|
carouselCurrentLanguageMBImageUrl: `${r}/carousels/${l.image_mobile}`,
|
|
@@ -7984,7 +7982,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7984
7982
|
};
|
|
7985
7983
|
})
|
|
7986
7984
|
});
|
|
7987
|
-
},
|
|
7985
|
+
}, Rm = () => {
|
|
7988
7986
|
const { lng: e } = re(), { commonMarqueeApi: r } = Ki(), t = je(e);
|
|
7989
7987
|
return ne({
|
|
7990
7988
|
queryKey: ["getMarqueeList"],
|
|
@@ -7994,10 +7992,10 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7994
7992
|
},
|
|
7995
7993
|
select: (n) => {
|
|
7996
7994
|
const p = la(n) ? n : n.Marquees;
|
|
7997
|
-
return We(p, (
|
|
7995
|
+
return We(p, (b) => b[t] || b["en-US"]);
|
|
7998
7996
|
}
|
|
7999
7997
|
});
|
|
8000
|
-
},
|
|
7998
|
+
}, Pm = ({ options: e } = {}) => {
|
|
8001
7999
|
const { rankingGameApi: r } = ce();
|
|
8002
8000
|
return ne({
|
|
8003
8001
|
queryKey: ["rankingGame"],
|
|
@@ -8007,7 +8005,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8007
8005
|
const { data: n } = t;
|
|
8008
8006
|
return We(n, (g) => {
|
|
8009
8007
|
const {
|
|
8010
|
-
game_uid:
|
|
8008
|
+
game_uid: b,
|
|
8011
8009
|
game_code: f,
|
|
8012
8010
|
game_name_en: l,
|
|
8013
8011
|
game_platform_uid: a,
|
|
@@ -8017,7 +8015,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8017
8015
|
profit: u
|
|
8018
8016
|
} = g;
|
|
8019
8017
|
return {
|
|
8020
|
-
gameUid:
|
|
8018
|
+
gameUid: b,
|
|
8021
8019
|
//遊戲UID
|
|
8022
8020
|
gameCode: f,
|
|
8023
8021
|
//遊戲代碼
|
|
@@ -8043,8 +8041,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8043
8041
|
return ne({
|
|
8044
8042
|
queryKey: ["inboxList"],
|
|
8045
8043
|
queryFn: async () => await r(),
|
|
8046
|
-
select: (
|
|
8047
|
-
const { data: f } =
|
|
8044
|
+
select: (b) => {
|
|
8045
|
+
const { data: f } = b;
|
|
8048
8046
|
return We(f, (a) => {
|
|
8049
8047
|
const { internal_notifications_language: i } = a;
|
|
8050
8048
|
return {
|
|
@@ -8066,7 +8064,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8066
8064
|
mutationFn: async (t) => await r(t),
|
|
8067
8065
|
...e
|
|
8068
8066
|
});
|
|
8069
|
-
},
|
|
8067
|
+
}, Fm = ({
|
|
8070
8068
|
options: e = {
|
|
8071
8069
|
inboxList: {},
|
|
8072
8070
|
readInbox: {}
|
|
@@ -8133,16 +8131,16 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8133
8131
|
value: "other",
|
|
8134
8132
|
...e.other
|
|
8135
8133
|
}
|
|
8136
|
-
],
|
|
8134
|
+
], wm = ({ options: e, formData: r } = {}) => {
|
|
8137
8135
|
const { lng: t } = re(), { newsListApi: n } = nl(), p = je(t);
|
|
8138
8136
|
return ne({
|
|
8139
8137
|
queryKey: ["newsList"],
|
|
8140
8138
|
queryFn: () => {
|
|
8141
|
-
const { uid: g, params:
|
|
8142
|
-
return n({ uid: g, params:
|
|
8139
|
+
const { uid: g, params: b } = r || {};
|
|
8140
|
+
return n({ uid: g, params: b });
|
|
8143
8141
|
},
|
|
8144
8142
|
select: (g) => {
|
|
8145
|
-
const { data:
|
|
8143
|
+
const { data: b } = g, f = b.data?.filter((a) => a.is_active === 1), l = We(f, (a) => {
|
|
8146
8144
|
const i = $e(a.news_language, {
|
|
8147
8145
|
language: p
|
|
8148
8146
|
}) || a.news_language[0];
|
|
@@ -8159,21 +8157,21 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8159
8157
|
},
|
|
8160
8158
|
...e
|
|
8161
8159
|
});
|
|
8162
|
-
},
|
|
8160
|
+
}, Am = ({ options: e, formData: r } = {}) => {
|
|
8163
8161
|
const { lng: t } = re(), { newsListApi: n } = nl(), p = je(t);
|
|
8164
8162
|
return ne({
|
|
8165
8163
|
queryKey: ["newsList"],
|
|
8166
8164
|
queryFn: () => {
|
|
8167
|
-
const { uid: g, params:
|
|
8168
|
-
return n({ uid: g, params:
|
|
8165
|
+
const { uid: g, params: b } = r || {};
|
|
8166
|
+
return n({ uid: g, params: b });
|
|
8169
8167
|
},
|
|
8170
8168
|
select: (g) => {
|
|
8171
|
-
const
|
|
8169
|
+
const b = $e(g.data.news_language, {
|
|
8172
8170
|
language: p
|
|
8173
8171
|
}) || g.data.news_language[0];
|
|
8174
8172
|
return {
|
|
8175
8173
|
...g.data,
|
|
8176
|
-
currentLngData:
|
|
8174
|
+
currentLngData: b
|
|
8177
8175
|
};
|
|
8178
8176
|
},
|
|
8179
8177
|
...e
|
|
@@ -8227,7 +8225,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8227
8225
|
});
|
|
8228
8226
|
},
|
|
8229
8227
|
[e]
|
|
8230
|
-
),
|
|
8228
|
+
), b = I(
|
|
8231
8229
|
async ({ paramsData: o } = {}) => {
|
|
8232
8230
|
const { str_date: u, end_date: m, limit: c = 25, current_page: d } = o || {}, y = Fe().format("HH:mm:ss"), _ = Fe().subtract(24, "hour").format("HH:mm:ss");
|
|
8233
8231
|
return await e.get("/report/deposit", {
|
|
@@ -8297,7 +8295,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8297
8295
|
depositApi: n,
|
|
8298
8296
|
bankDepositApi: p,
|
|
8299
8297
|
withdrawApi: g,
|
|
8300
|
-
depositTransactionApi:
|
|
8298
|
+
depositTransactionApi: b,
|
|
8301
8299
|
eventTransactionApi: f,
|
|
8302
8300
|
withdrawTransactionApi: l,
|
|
8303
8301
|
redeemCodeDepositApi: a,
|
|
@@ -8317,7 +8315,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8317
8315
|
queryKey: ["depositV2", e],
|
|
8318
8316
|
queryFn: () => t({ paramsData: e }),
|
|
8319
8317
|
select: (n) => {
|
|
8320
|
-
const { third_party: p, bank: g, vip:
|
|
8318
|
+
const { third_party: p, bank: g, vip: b } = n, f = We(p, (l) => ({
|
|
8321
8319
|
...l,
|
|
8322
8320
|
providerList: We(l.providers, (a) => ({
|
|
8323
8321
|
...a,
|
|
@@ -8330,7 +8328,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8330
8328
|
}));
|
|
8331
8329
|
return {
|
|
8332
8330
|
bank: g,
|
|
8333
|
-
vip:
|
|
8331
|
+
vip: b,
|
|
8334
8332
|
thirdParty: f
|
|
8335
8333
|
};
|
|
8336
8334
|
},
|
|
@@ -8378,38 +8376,38 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8378
8376
|
queryFn: () => t({ paramsData: e }),
|
|
8379
8377
|
...r
|
|
8380
8378
|
});
|
|
8381
|
-
},
|
|
8379
|
+
}, Om = ({ options: e } = {}) => {
|
|
8382
8380
|
const { redeemCodeDepositApi: r } = Ye();
|
|
8383
8381
|
return ue({
|
|
8384
8382
|
mutationKey: ["redeemCodeDeposit"],
|
|
8385
8383
|
mutationFn: async (t) => r(t),
|
|
8386
8384
|
...e
|
|
8387
8385
|
});
|
|
8388
|
-
},
|
|
8386
|
+
}, Bm = ({ options: e } = {}) => {
|
|
8389
8387
|
const { invoiceApi: r } = Ye();
|
|
8390
8388
|
return ue({
|
|
8391
8389
|
mutationKey: ["invoiceAction"],
|
|
8392
8390
|
mutationFn: async (t) => r(t),
|
|
8393
8391
|
...e
|
|
8394
8392
|
});
|
|
8395
|
-
},
|
|
8393
|
+
}, Hm = ({ options: e } = {}) => {
|
|
8396
8394
|
const { updateInvoiceApi: r } = Ye();
|
|
8397
8395
|
return ue({
|
|
8398
8396
|
mutationKey: ["updateInvoiceAction"],
|
|
8399
8397
|
mutationFn: async (t) => r(t),
|
|
8400
8398
|
...e
|
|
8401
8399
|
});
|
|
8402
|
-
},
|
|
8400
|
+
}, Wm = ({
|
|
8403
8401
|
depositV1: e = {},
|
|
8404
8402
|
depositV2: r = {},
|
|
8405
8403
|
depositTransaction: t = {},
|
|
8406
8404
|
depositAction: n = {},
|
|
8407
8405
|
withdrawAction: p = {},
|
|
8408
8406
|
bankDeposit: g = {},
|
|
8409
|
-
eventTransaction:
|
|
8407
|
+
eventTransaction: b = {},
|
|
8410
8408
|
withdrawTransaction: f = {}
|
|
8411
8409
|
} = {}) => {
|
|
8412
|
-
const l = qo(e), a = $o(r), i = Yo(t), s = Qo(n), o = jo(p), u = es(g), m = Xo(
|
|
8410
|
+
const l = qo(e), a = $o(r), i = Yo(t), s = Qo(n), o = jo(p), u = es(g), m = Xo(b), c = as(
|
|
8413
8411
|
f
|
|
8414
8412
|
);
|
|
8415
8413
|
return {
|
|
@@ -8427,13 +8425,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8427
8425
|
return e.forEach((t, n) => r[t] = n), r;
|
|
8428
8426
|
})($a), ns = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Gn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), rl = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (r) => r == "+" ? "-" : "_"), ol = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), sl = (e) => {
|
|
8429
8427
|
let r, t, n, p, g = "";
|
|
8430
|
-
const
|
|
8428
|
+
const b = e.length % 3;
|
|
8431
8429
|
for (let f = 0; f < e.length; ) {
|
|
8432
8430
|
if ((t = e.charCodeAt(f++)) > 255 || (n = e.charCodeAt(f++)) > 255 || (p = e.charCodeAt(f++)) > 255)
|
|
8433
8431
|
throw new TypeError("invalid character found");
|
|
8434
8432
|
r = t << 16 | n << 8 | p, g += $a[r >> 18 & 63] + $a[r >> 12 & 63] + $a[r >> 6 & 63] + $a[r & 63];
|
|
8435
8433
|
}
|
|
8436
|
-
return
|
|
8434
|
+
return b ? g.slice(0, b - 3) + "===".substring(b) : g;
|
|
8437
8435
|
}, Ct = typeof btoa == "function" ? (e) => btoa(e) : Ha ? (e) => Buffer.from(e, "binary").toString("base64") : sl, rt = Ha ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
8438
8436
|
let t = [];
|
|
8439
8437
|
for (let n = 0, p = e.length; n < p; n += 4096)
|
|
@@ -8520,16 +8518,16 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8520
8518
|
extendString: _l,
|
|
8521
8519
|
extendUint8Array: yl,
|
|
8522
8520
|
extendBuiltins: ps
|
|
8523
|
-
},
|
|
8521
|
+
}, zm = (e, r) => {
|
|
8524
8522
|
const { playGameApi: t } = ct();
|
|
8525
8523
|
return ne({
|
|
8526
8524
|
queryKey: ["playGame"],
|
|
8527
8525
|
queryFn: async () => {
|
|
8528
|
-
const { gameUid: n, gameCode: p, isMobile: g, gameCurrency:
|
|
8526
|
+
const { gameUid: n, gameCode: p, isMobile: g, gameCurrency: b, currentCurrency: f } = e || {}, l = await t({
|
|
8529
8527
|
gameUid: n,
|
|
8530
8528
|
gameCode: p,
|
|
8531
8529
|
isMobile: g,
|
|
8532
|
-
gameCurrency:
|
|
8530
|
+
gameCurrency: b,
|
|
8533
8531
|
currentCurrency: f
|
|
8534
8532
|
}), {
|
|
8535
8533
|
game_currency: a,
|
|
@@ -8575,7 +8573,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8575
8573
|
mutationFn: async () => r(),
|
|
8576
8574
|
...e
|
|
8577
8575
|
});
|
|
8578
|
-
},
|
|
8576
|
+
}, Im = ({
|
|
8579
8577
|
options: e = {
|
|
8580
8578
|
currentRebate: {},
|
|
8581
8579
|
receiveRebate: {}
|
|
@@ -8588,13 +8586,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8588
8586
|
};
|
|
8589
8587
|
}, ja = () => {
|
|
8590
8588
|
const { client: e } = re(), r = I(
|
|
8591
|
-
async ({ uid:
|
|
8589
|
+
async ({ uid: b, params: f } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
|
|
8592
8590
|
params: f
|
|
8593
8591
|
}),
|
|
8594
8592
|
[e]
|
|
8595
8593
|
), t = I(async () => await e.get("/memberRewards/member/unused"), [e]), n = I(async () => await e.get("/memberRewards/member/expired"), [e]), p = I(
|
|
8596
|
-
async (
|
|
8597
|
-
memberRewards_uid:
|
|
8594
|
+
async (b) => await e.post("/memberRewards/memberGetRewards", {
|
|
8595
|
+
memberRewards_uid: b
|
|
8598
8596
|
}),
|
|
8599
8597
|
[e]
|
|
8600
8598
|
), g = I(async () => await e.get("/memberRewards/member/history"), [e]);
|
|
@@ -8617,7 +8615,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8617
8615
|
const n = We(t.data, (p) => {
|
|
8618
8616
|
const {
|
|
8619
8617
|
wagering_restricted_amount: g,
|
|
8620
|
-
claimed_amount:
|
|
8618
|
+
claimed_amount: b
|
|
8621
8619
|
} = p, f = ge(p, "rewards", {}), {
|
|
8622
8620
|
expiration_days: l,
|
|
8623
8621
|
name: a,
|
|
@@ -8633,7 +8631,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8633
8631
|
rewardType: s,
|
|
8634
8632
|
rewardUid: o,
|
|
8635
8633
|
rewardWagering: g,
|
|
8636
|
-
rewardAmount:
|
|
8634
|
+
rewardAmount: b,
|
|
8637
8635
|
rewardBg: Jn(),
|
|
8638
8636
|
rewardIcon: Zn("win")
|
|
8639
8637
|
};
|
|
@@ -8673,7 +8671,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8673
8671
|
queryFn: r,
|
|
8674
8672
|
...e
|
|
8675
8673
|
});
|
|
8676
|
-
},
|
|
8674
|
+
}, Vm = ({
|
|
8677
8675
|
options: e = {
|
|
8678
8676
|
rewardsList: {},
|
|
8679
8677
|
redeemReward: {},
|
|
@@ -8704,7 +8702,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8704
8702
|
vipListApi: r,
|
|
8705
8703
|
vipInfoApi: t
|
|
8706
8704
|
};
|
|
8707
|
-
},
|
|
8705
|
+
}, Zm = ({ options: e } = {}) => {
|
|
8708
8706
|
const { store: r } = re(), t = r?.getState()?.isMemberInfo || r?.getState()?.member?.member || {}, { vipInfoApi: n } = bl();
|
|
8709
8707
|
return ne({
|
|
8710
8708
|
queryKey: ["vipInfo"],
|
|
@@ -8736,9 +8734,9 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8736
8734
|
vip_withdrawal_rate: i,
|
|
8737
8735
|
rebate_range: s,
|
|
8738
8736
|
vip_game_rebate: o
|
|
8739
|
-
} = f, u = $e(l, { currency_code: t }) || {}, m = $e(a, { currency_code: t }) || {}, c = i, d = We(s, (
|
|
8740
|
-
...
|
|
8741
|
-
rebateRange: JSON.parse(
|
|
8737
|
+
} = f, u = $e(l, { currency_code: t }) || {}, m = $e(a, { currency_code: t }) || {}, c = i, d = We(s, (U) => ({
|
|
8738
|
+
...U,
|
|
8739
|
+
rebateRange: JSON.parse(U.rebate_range)
|
|
8742
8740
|
})), y = ge(o, "[0]", {}), _ = {
|
|
8743
8741
|
...y,
|
|
8744
8742
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
@@ -8756,7 +8754,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8756
8754
|
},
|
|
8757
8755
|
...e
|
|
8758
8756
|
});
|
|
8759
|
-
},
|
|
8757
|
+
}, Jm = ({ options: e } = {
|
|
8760
8758
|
vipList: {}
|
|
8761
8759
|
}) => ({
|
|
8762
8760
|
vipList: Cs({ options: e.vipList })
|
|
@@ -8777,11 +8775,11 @@ var vs = Object.create, Cl = Object.defineProperty, hs = Object.getOwnPropertyDe
|
|
|
8777
8775
|
return function(m, c) {
|
|
8778
8776
|
return u.set(m, c), c;
|
|
8779
8777
|
};
|
|
8780
|
-
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER,
|
|
8778
|
+
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, f = b * 2, l = function(u, m) {
|
|
8781
8779
|
return function(c) {
|
|
8782
8780
|
var d = m.get(c), y = d === void 0 ? c.size : d < f ? d + 1 : 0;
|
|
8783
8781
|
if (!c.has(y)) return u(c, y);
|
|
8784
|
-
if (c.size <
|
|
8782
|
+
if (c.size < b) {
|
|
8785
8783
|
for (; c.has(y); ) y = Math.floor(Math.random() * f);
|
|
8786
8784
|
return u(c, y);
|
|
8787
8785
|
}
|
|
@@ -8902,8 +8900,8 @@ var Ps = class {
|
|
|
8902
8900
|
});
|
|
8903
8901
|
}, this.options.fallbackInterval), this.intervals.push(r);
|
|
8904
8902
|
let p = (g) => {
|
|
8905
|
-
let { action:
|
|
8906
|
-
|
|
8903
|
+
let { action: b } = g.data;
|
|
8904
|
+
b === 2 && this.apply().then(() => {
|
|
8907
8905
|
this.isLeader && n();
|
|
8908
8906
|
});
|
|
8909
8907
|
};
|
|
@@ -9055,13 +9053,13 @@ function it(e, r) {
|
|
|
9055
9053
|
};
|
|
9056
9054
|
}
|
|
9057
9055
|
var Te = () => Date.now(), wa = 2147483647;
|
|
9058
|
-
function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle: t = 0, element: n = ws, events: p = As, timers: g = void 0, immediateEvents:
|
|
9056
|
+
function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle: t = 0, element: n = ws, events: p = As, timers: g = void 0, immediateEvents: b = [], onPresenceChange: f = () => {
|
|
9059
9057
|
}, onPrompt: l = () => {
|
|
9060
9058
|
}, onIdle: a = () => {
|
|
9061
9059
|
}, onActive: i = () => {
|
|
9062
9060
|
}, onAction: s = () => {
|
|
9063
9061
|
}, onMessage: o = () => {
|
|
9064
|
-
}, debounce: u = 0, throttle: m = 0, eventsThrottle: c = 200, startOnMount: d = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab:
|
|
9062
|
+
}, debounce: u = 0, throttle: m = 0, eventsThrottle: c = 200, startOnMount: d = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: v = "idle-timer", syncTimers: T = 0, leaderElection: x = !1, disabled: S = !1 } = {}) {
|
|
9065
9063
|
let G = ee(Te()), O = ee(Te()), C = ee(null), h = ee(null), N = ee(0), E = ee(0), P = ee(0), M = ee(0), R = ee(!1), B = ee(!1), A = ee(!1), H = ee(!0), W = ee(!1), L = ee(null), D = ee(null), F = ee(e), w = ee(0);
|
|
9066
9064
|
me(() => {
|
|
9067
9065
|
if (r && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && r) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
@@ -9078,7 +9076,7 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9078
9076
|
me(() => {
|
|
9079
9077
|
K.current = _;
|
|
9080
9078
|
}, [_]);
|
|
9081
|
-
let $ = ee(
|
|
9079
|
+
let $ = ee(b), Q = ee(n), J = ee([...(/* @__PURE__ */ new Set([...p, ...b])).values()]), X = ee(S);
|
|
9082
9080
|
me(() => {
|
|
9083
9081
|
X.current = S, !H.current && (S ? ze() : y || Je());
|
|
9084
9082
|
}, [S]);
|
|
@@ -9111,10 +9109,10 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9111
9109
|
return u > 0 ? Os(V, u) : m > 0 ? it(V, m) : V;
|
|
9112
9110
|
}, [m, u]), Xe = ee();
|
|
9113
9111
|
me(() => {
|
|
9114
|
-
|
|
9112
|
+
U && T && (Xe.current = it(() => {
|
|
9115
9113
|
D.current.active();
|
|
9116
9114
|
}, T));
|
|
9117
|
-
}, [
|
|
9115
|
+
}, [U, T]);
|
|
9118
9116
|
let Ce = () => {
|
|
9119
9117
|
L.current !== null && (qe.clearTimeout(L.current), L.current = null);
|
|
9120
9118
|
}, Ge = (V, De = !0) => {
|
|
@@ -9148,12 +9146,12 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9148
9146
|
Oe(V);
|
|
9149
9147
|
return;
|
|
9150
9148
|
}
|
|
9151
|
-
A.current = !1, M.current = 0, P.current = 0, Ge(),
|
|
9149
|
+
A.current = !1, M.current = 0, P.current = 0, Ge(), U && T && Xe.current();
|
|
9152
9150
|
}, ia = ee(aa);
|
|
9153
9151
|
me(() => {
|
|
9154
9152
|
let V = W.current;
|
|
9155
9153
|
V && Re(), c > 0 ? ia.current = it(aa, c) : ia.current = aa, V && xe();
|
|
9156
|
-
}, [c, m, u, fe,
|
|
9154
|
+
}, [c, m, u, fe, U, T]);
|
|
9157
9155
|
let xe = () => {
|
|
9158
9156
|
pa && Q.current && (W.current || (J.current.forEach((V) => {
|
|
9159
9157
|
Q.current.addEventListener(V, ia.current, { capture: !0, passive: !0 });
|
|
@@ -9183,7 +9181,7 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9183
9181
|
pa && window.removeEventListener("beforeunload", V), D.current && D.current.close(), _e.cancel && _e.cancel(), Ce(), Re(!0);
|
|
9184
9182
|
};
|
|
9185
9183
|
}, []), me(() => {
|
|
9186
|
-
D.current && D.current.close(),
|
|
9184
|
+
D.current && D.current.close(), U ? D.current = new Fs({ channelName: v, leaderElection: x, onPrompt: () => {
|
|
9187
9185
|
ea();
|
|
9188
9186
|
}, onIdle: () => {
|
|
9189
9187
|
Me();
|
|
@@ -9192,15 +9190,15 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9192
9190
|
}, onMessage: (V) => {
|
|
9193
9191
|
ke.current(V, Se);
|
|
9194
9192
|
}, start: Je, reset: oa, activate: ga, pause: ze, resume: Ke }) : D.current = null;
|
|
9195
|
-
}, [
|
|
9193
|
+
}, [U, v, x, Ue, pe, oe, ke, Je, oa, ze, Ke]), me(() => {
|
|
9196
9194
|
H.current || (Ce(), Re(!0)), !(y || S) && (d ? Je() : xe());
|
|
9197
9195
|
}, [y, d, S, H]), me(() => {
|
|
9198
9196
|
if (!H.current) {
|
|
9199
|
-
let V = [...(/* @__PURE__ */ new Set([...p, ...
|
|
9200
|
-
if (Re(), J.current = V, Q.current = n, $.current =
|
|
9197
|
+
let V = [...(/* @__PURE__ */ new Set([...p, ...b])).values()];
|
|
9198
|
+
if (Re(), J.current = V, Q.current = n, $.current = b, y || S) return;
|
|
9201
9199
|
d ? Je() : xe();
|
|
9202
9200
|
}
|
|
9203
|
-
}, [n, JSON.stringify(p), JSON.stringify(
|
|
9201
|
+
}, [n, JSON.stringify(p), JSON.stringify(b), H, S, y, d]), me(() => {
|
|
9204
9202
|
H.current && (H.current = !1);
|
|
9205
9203
|
}, [H]);
|
|
9206
9204
|
let Se = { message: Wa, start: Je, reset: oa, activate: ga, pause: ze, resume: Ke, isIdle: Ea, isPrompted: Na, isLeader: za, isLastActiveTab: Ia, getTabId: da, getRemainingTime: Ua, getElapsedTime: Ve, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: ba, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
|
|
@@ -9220,7 +9218,7 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9220
9218
|
}
|
|
9221
9219
|
var Hs = zi(null);
|
|
9222
9220
|
Hs.Consumer;
|
|
9223
|
-
const
|
|
9221
|
+
const Km = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
9224
9222
|
onIdle: e,
|
|
9225
9223
|
onActive: r,
|
|
9226
9224
|
onAction: t,
|
|
@@ -9245,7 +9243,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9245
9243
|
default:
|
|
9246
9244
|
return "En";
|
|
9247
9245
|
}
|
|
9248
|
-
}, Fn = "game-icon-ds88",
|
|
9246
|
+
}, Fn = "game-icon-ds88", qm = ({ gameData: e = {} } = {}) => {
|
|
9249
9247
|
const { lng: r } = re(), t = Pn(r), {
|
|
9250
9248
|
gameCode: n,
|
|
9251
9249
|
// 遊戲代碼
|
|
@@ -9253,7 +9251,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9253
9251
|
// 遊戲唯一標識符
|
|
9254
9252
|
gameTypeUid: g,
|
|
9255
9253
|
// 遊戲類型唯一標識符
|
|
9256
|
-
platformUid:
|
|
9254
|
+
platformUid: b,
|
|
9257
9255
|
// 平台唯一標識符
|
|
9258
9256
|
// platform_enum: platformEnum, // 平台枚舉
|
|
9259
9257
|
currencyCode: f,
|
|
@@ -9280,7 +9278,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9280
9278
|
// 英文名稱
|
|
9281
9279
|
gameNameZh: _,
|
|
9282
9280
|
// 中文名稱
|
|
9283
|
-
gameNameVi:
|
|
9281
|
+
gameNameVi: U,
|
|
9284
9282
|
// 越南名稱
|
|
9285
9283
|
gameNameTw: v
|
|
9286
9284
|
// 繁體中文名稱
|
|
@@ -9289,7 +9287,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9289
9287
|
gameCode: n,
|
|
9290
9288
|
gameUid: p,
|
|
9291
9289
|
gameTypeUid: g,
|
|
9292
|
-
providerUid:
|
|
9290
|
+
providerUid: b,
|
|
9293
9291
|
supportCurrency: f,
|
|
9294
9292
|
enterLobbyMode: l,
|
|
9295
9293
|
gamePlatform: a,
|
|
@@ -9302,7 +9300,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9302
9300
|
userClickCount: d,
|
|
9303
9301
|
gameNameEn: y,
|
|
9304
9302
|
gameNameZh: _,
|
|
9305
|
-
gameNameVi:
|
|
9303
|
+
gameNameVi: U,
|
|
9306
9304
|
gameNameTw: v,
|
|
9307
9305
|
gameName: T,
|
|
9308
9306
|
gameImageUrl: x,
|
|
@@ -9319,7 +9317,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9319
9317
|
"HACK",
|
|
9320
9318
|
"NAGA",
|
|
9321
9319
|
"RSG"
|
|
9322
|
-
], e) && r ? `${e}_dark` : e,
|
|
9320
|
+
], e) && r ? `${e}_dark` : e, $m = ({ platformData: e, darkMode: r } = {}) => {
|
|
9323
9321
|
const {
|
|
9324
9322
|
SubPlatformEnum: t,
|
|
9325
9323
|
// 子平台枚舉
|
|
@@ -9329,7 +9327,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9329
9327
|
// 是否維護中
|
|
9330
9328
|
maintenanceStartTime: g,
|
|
9331
9329
|
// 維護開始時間
|
|
9332
|
-
maintenanceEndTime:
|
|
9330
|
+
maintenanceEndTime: b,
|
|
9333
9331
|
// 維護結束時間
|
|
9334
9332
|
platform: f,
|
|
9335
9333
|
// 平台代碼
|
|
@@ -9347,7 +9345,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9347
9345
|
platformEnum: n,
|
|
9348
9346
|
isUnderMaintenance: p,
|
|
9349
9347
|
maintenanceStartTime: g,
|
|
9350
|
-
maintenanceEndTime:
|
|
9348
|
+
maintenanceEndTime: b,
|
|
9351
9349
|
platform: f,
|
|
9352
9350
|
platformUid: l,
|
|
9353
9351
|
platformMode: a,
|
|
@@ -9366,23 +9364,23 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9366
9364
|
gameList: t = {},
|
|
9367
9365
|
allGameTypes: n = [],
|
|
9368
9366
|
allPlatforms: p = []
|
|
9369
|
-
}) => !la(e) || !la(r) ? {} : Ee(t) ? {} : e.reduce((g,
|
|
9367
|
+
}) => !la(e) || !la(r) ? {} : Ee(t) ? {} : e.reduce((g, b) => {
|
|
9370
9368
|
const f = Ql({
|
|
9371
|
-
gameTypeName:
|
|
9369
|
+
gameTypeName: b,
|
|
9372
9370
|
platforms: r,
|
|
9373
9371
|
gameList: t,
|
|
9374
9372
|
allGameTypes: n,
|
|
9375
9373
|
allPlatforms: p
|
|
9376
9374
|
});
|
|
9377
|
-
return Ee(f) || (g[
|
|
9378
|
-
}, {}),
|
|
9375
|
+
return Ee(f) || (g[b] = f), g;
|
|
9376
|
+
}, {}), Qm = ({
|
|
9379
9377
|
types: e = [],
|
|
9380
9378
|
platforms: r = [],
|
|
9381
9379
|
allGameType: t = [],
|
|
9382
9380
|
allGamePlatform: n = [],
|
|
9383
9381
|
allGameList: p = {}
|
|
9384
|
-
} = {}) => !Array.isArray(e) || !Array.isArray(r) ? {} : e.reduce((g,
|
|
9385
|
-
const f = $n(t,
|
|
9382
|
+
} = {}) => !Array.isArray(e) || !Array.isArray(r) ? {} : e.reduce((g, b) => {
|
|
9383
|
+
const f = $n(t, b);
|
|
9386
9384
|
if (!f) return g;
|
|
9387
9385
|
const l = p[f] || [], a = r.reduce((i, s) => {
|
|
9388
9386
|
const o = jl({
|
|
@@ -9392,7 +9390,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9392
9390
|
});
|
|
9393
9391
|
return Ee(o) ? i : { ...i, [s]: o };
|
|
9394
9392
|
}, {});
|
|
9395
|
-
return Ee(a) || (g[
|
|
9393
|
+
return Ee(a) || (g[b] = a), g;
|
|
9396
9394
|
}, {}), qs = (e = {}) => !Ii(e) || Ee(e) ? {} : Object.values(e).reduce((t, n) => (Object.entries(n).forEach(([p, g]) => {
|
|
9397
9395
|
t[p] ? t[p] = [...t[p], ...g] : t[p] = g;
|
|
9398
9396
|
}), t), {}), $s = (e = {}) => {
|
|
@@ -9413,7 +9411,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9413
9411
|
allGame_subtype: n = [],
|
|
9414
9412
|
allNewGameList: p = [],
|
|
9415
9413
|
allTopGameList: g = [],
|
|
9416
|
-
randomlySelectedGames:
|
|
9414
|
+
randomlySelectedGames: b = [],
|
|
9417
9415
|
userFavoriteGame: f = {},
|
|
9418
9416
|
exclusiveBrandGames: l = [],
|
|
9419
9417
|
highlightGames: a = [],
|
|
@@ -9431,7 +9429,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9431
9429
|
...G,
|
|
9432
9430
|
platformImageUrl: O
|
|
9433
9431
|
};
|
|
9434
|
-
}),
|
|
9432
|
+
}), U = Js(s, n), v = qs(y), T = $s(v), x = Wn(y).reduce(
|
|
9435
9433
|
(G, [O, C]) => {
|
|
9436
9434
|
const h = Vi(zl(C));
|
|
9437
9435
|
return G[O] = h, G;
|
|
@@ -9461,10 +9459,10 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9461
9459
|
favorite: d,
|
|
9462
9460
|
highlight: a,
|
|
9463
9461
|
exclusiveBrand: l,
|
|
9464
|
-
randomlySelected:
|
|
9462
|
+
randomlySelected: b
|
|
9465
9463
|
},
|
|
9466
9464
|
categorized: {
|
|
9467
|
-
bySubType: { ...
|
|
9465
|
+
bySubType: { ...U, MyFavorite: d },
|
|
9468
9466
|
byPlatform: v,
|
|
9469
9467
|
byPlatformAndCategory: T,
|
|
9470
9468
|
byGameTypeAndPlatform: y,
|
|
@@ -9474,7 +9472,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9474
9472
|
favorite: d
|
|
9475
9473
|
}
|
|
9476
9474
|
};
|
|
9477
|
-
},
|
|
9475
|
+
}, jm = (e = []) => !la(e) || Ee(e) ? [] : Vi(e, (r) => Ee(r.SubPlatformEnum) ? r : r.SubPlatformEnum.map((t) => ({
|
|
9478
9476
|
...r,
|
|
9479
9477
|
...t,
|
|
9480
9478
|
platform: t.SubPlatformEnum,
|
|
@@ -9500,7 +9498,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9500
9498
|
},
|
|
9501
9499
|
user: { favorite: [] }
|
|
9502
9500
|
}, Ys = ({ enabled: e = !0 } = {}) => {
|
|
9503
|
-
const { getToken: r } = re(), { userFavoriteGameApi: t, userGameListApi: n } = ce(), { data: p, isLoading: g, error:
|
|
9501
|
+
const { getToken: r } = re(), { userFavoriteGameApi: t, userGameListApi: n } = ce(), { data: p, isLoading: g, error: b, refetch: f } = ne({
|
|
9504
9502
|
queryKey: ["gamesInfo"],
|
|
9505
9503
|
queryFn: async () => {
|
|
9506
9504
|
let l = {}, a = {};
|
|
@@ -9534,7 +9532,7 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9534
9532
|
return {
|
|
9535
9533
|
gamesInfo: p || js,
|
|
9536
9534
|
isLoading: g,
|
|
9537
|
-
error:
|
|
9535
|
+
error: b,
|
|
9538
9536
|
refetch: f
|
|
9539
9537
|
};
|
|
9540
9538
|
}, Xs = (e = !1) => {
|
|
@@ -36073,16 +36071,16 @@ const Jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
36073
36071
|
t && Xs(!0);
|
|
36074
36072
|
}, [t]);
|
|
36075
36073
|
const n = Ys({ enabled: r });
|
|
36076
|
-
return /* @__PURE__ */
|
|
36074
|
+
return /* @__PURE__ */ we.jsx(qn.Provider, { value: n, children: e });
|
|
36077
36075
|
};
|
|
36078
|
-
function
|
|
36076
|
+
function Ym({
|
|
36079
36077
|
children: e,
|
|
36080
36078
|
autoFetchGamesInfo: r = !1,
|
|
36081
36079
|
useMockData: t = !1,
|
|
36082
36080
|
queryClient: n,
|
|
36083
36081
|
...p
|
|
36084
36082
|
}) {
|
|
36085
|
-
const g = Oa(() => Nt(p), [p]),
|
|
36083
|
+
const g = Oa(() => Nt(p), [p]), b = Oa(
|
|
36086
36084
|
() => Nt({ ...p, formData: !0 }),
|
|
36087
36085
|
[p]
|
|
36088
36086
|
), f = Oa(
|
|
@@ -36096,7 +36094,7 @@ function jm({
|
|
|
36096
36094
|
}),
|
|
36097
36095
|
[]
|
|
36098
36096
|
), l = n || f;
|
|
36099
|
-
return /* @__PURE__ */
|
|
36097
|
+
return /* @__PURE__ */ we.jsx(Ol, { client: l, children: /* @__PURE__ */ we.jsx(zn.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ we.jsx(ql, { children: /* @__PURE__ */ we.jsx(
|
|
36100
36098
|
em,
|
|
36101
36099
|
{
|
|
36102
36100
|
autoFetch: r,
|
|
@@ -36105,9 +36103,9 @@ function jm({
|
|
|
36105
36103
|
}
|
|
36106
36104
|
) }) }) });
|
|
36107
36105
|
}
|
|
36108
|
-
const
|
|
36106
|
+
const Xm = ({ onFunction: e = () => {
|
|
36109
36107
|
}, buttonProps: r = {} } = {}) => {
|
|
36110
|
-
const { lineConfig: t } = re(), n = ee(!1), p = ge(t, "liffId", ""), g = new URLSearchParams(window.location.search),
|
|
36108
|
+
const { lineConfig: t } = re(), n = ee(!1), p = ge(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), f = g.get("trans_code"), l = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: s, isPending: o } = tl({
|
|
36111
36109
|
options: {
|
|
36112
36110
|
onSuccess: (m) => {
|
|
36113
36111
|
e(m);
|
|
@@ -36116,14 +36114,14 @@ const Ym = ({ onFunction: e = () => {
|
|
|
36116
36114
|
}
|
|
36117
36115
|
});
|
|
36118
36116
|
me(() => {
|
|
36119
|
-
n.current ||
|
|
36117
|
+
n.current || b === "true" && l && a && (s({
|
|
36120
36118
|
trans_code: f,
|
|
36121
36119
|
line_id: l,
|
|
36122
36120
|
invite_code: i,
|
|
36123
36121
|
line_name: a
|
|
36124
36122
|
}), n.current = !0);
|
|
36125
36123
|
}, [
|
|
36126
|
-
|
|
36124
|
+
b,
|
|
36127
36125
|
f,
|
|
36128
36126
|
l,
|
|
36129
36127
|
i,
|
|
@@ -36134,7 +36132,7 @@ const Ym = ({ onFunction: e = () => {
|
|
|
36134
36132
|
const u = () => {
|
|
36135
36133
|
window.location.href = `https://liff.line.me/${p}`;
|
|
36136
36134
|
};
|
|
36137
|
-
return p ? /* @__PURE__ */
|
|
36135
|
+
return p ? /* @__PURE__ */ we.jsx(
|
|
36138
36136
|
"button",
|
|
36139
36137
|
{
|
|
36140
36138
|
className: "line-login-btn",
|
|
@@ -36225,31 +36223,31 @@ var xa;
|
|
|
36225
36223
|
throw new RangeError("Invalid value");
|
|
36226
36224
|
let m, c;
|
|
36227
36225
|
for (m = i; ; m++) {
|
|
36228
|
-
const
|
|
36229
|
-
if (v <=
|
|
36226
|
+
const U = j.getNumDataCodewords(m, a) * 8, v = b.getTotalBits(l, m);
|
|
36227
|
+
if (v <= U) {
|
|
36230
36228
|
c = v;
|
|
36231
36229
|
break;
|
|
36232
36230
|
}
|
|
36233
36231
|
if (m >= s)
|
|
36234
36232
|
throw new RangeError("Data too long");
|
|
36235
36233
|
}
|
|
36236
|
-
for (const
|
|
36237
|
-
u && c <= j.getNumDataCodewords(m,
|
|
36234
|
+
for (const U of [j.Ecc.MEDIUM, j.Ecc.QUARTILE, j.Ecc.HIGH])
|
|
36235
|
+
u && c <= j.getNumDataCodewords(m, U) * 8 && (a = U);
|
|
36238
36236
|
let d = [];
|
|
36239
|
-
for (const
|
|
36240
|
-
t(
|
|
36241
|
-
for (const v of
|
|
36237
|
+
for (const U of l) {
|
|
36238
|
+
t(U.mode.modeBits, 4, d), t(U.numChars, U.mode.numCharCountBits(m), d);
|
|
36239
|
+
for (const v of U.getData())
|
|
36242
36240
|
d.push(v);
|
|
36243
36241
|
}
|
|
36244
36242
|
p(d.length == c);
|
|
36245
36243
|
const y = j.getNumDataCodewords(m, a) * 8;
|
|
36246
36244
|
p(d.length <= y), t(0, Math.min(4, y - d.length), d), t(0, (8 - d.length % 8) % 8, d), p(d.length % 8 == 0);
|
|
36247
|
-
for (let
|
|
36248
|
-
t(
|
|
36245
|
+
for (let U = 236; d.length < y; U ^= 253)
|
|
36246
|
+
t(U, 8, d);
|
|
36249
36247
|
let _ = [];
|
|
36250
36248
|
for (; _.length * 8 < d.length; )
|
|
36251
36249
|
_.push(0);
|
|
36252
|
-
return d.forEach((
|
|
36250
|
+
return d.forEach((U, v) => _[v >>> 3] |= U << 7 - (v & 7)), new j(m, a, _, o);
|
|
36253
36251
|
}
|
|
36254
36252
|
/*-- Accessor methods --*/
|
|
36255
36253
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -36340,16 +36338,16 @@ var xa;
|
|
|
36340
36338
|
const s = j.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a], o = j.ECC_CODEWORDS_PER_BLOCK[i.ordinal][a], u = Math.floor(j.getNumRawDataModules(a) / 8), m = s - u % s, c = Math.floor(u / s);
|
|
36341
36339
|
let d = [];
|
|
36342
36340
|
const y = j.reedSolomonComputeDivisor(o);
|
|
36343
|
-
for (let
|
|
36344
|
-
let T = l.slice(v, v + c - o + (
|
|
36341
|
+
for (let U = 0, v = 0; U < s; U++) {
|
|
36342
|
+
let T = l.slice(v, v + c - o + (U < m ? 0 : 1));
|
|
36345
36343
|
v += T.length;
|
|
36346
36344
|
const x = j.reedSolomonComputeRemainder(T, y);
|
|
36347
|
-
|
|
36345
|
+
U < m && T.push(0), d.push(T.concat(x));
|
|
36348
36346
|
}
|
|
36349
36347
|
let _ = [];
|
|
36350
|
-
for (let
|
|
36348
|
+
for (let U = 0; U < d[0].length; U++)
|
|
36351
36349
|
d.forEach((v, T) => {
|
|
36352
|
-
(
|
|
36350
|
+
(U != c - o || T >= m) && _.push(v[U]);
|
|
36353
36351
|
});
|
|
36354
36352
|
return p(_.length == u), _;
|
|
36355
36353
|
}
|
|
@@ -36664,7 +36662,7 @@ var xa;
|
|
|
36664
36662
|
}
|
|
36665
36663
|
};
|
|
36666
36664
|
g.NUMERIC_REGEX = /^[0-9]*$/, g.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, g.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
36667
|
-
let
|
|
36665
|
+
let b = g;
|
|
36668
36666
|
e.QrSegment = g;
|
|
36669
36667
|
})(xa || (xa = {}));
|
|
36670
36668
|
((e) => {
|
|
@@ -36707,22 +36705,22 @@ function Ll(e, r = 0) {
|
|
|
36707
36705
|
const t = [];
|
|
36708
36706
|
return e.forEach(function(n, p) {
|
|
36709
36707
|
let g = null;
|
|
36710
|
-
n.forEach(function(
|
|
36711
|
-
if (!
|
|
36708
|
+
n.forEach(function(b, f) {
|
|
36709
|
+
if (!b && g !== null) {
|
|
36712
36710
|
t.push(
|
|
36713
36711
|
`M${g + r} ${p + r}h${f - g}v1H${g + r}z`
|
|
36714
36712
|
), g = null;
|
|
36715
36713
|
return;
|
|
36716
36714
|
}
|
|
36717
36715
|
if (f === n.length - 1) {
|
|
36718
|
-
if (!
|
|
36716
|
+
if (!b)
|
|
36719
36717
|
return;
|
|
36720
36718
|
g === null ? t.push(`M${f + r},${p + r} h1v1H${f + r}z`) : t.push(
|
|
36721
36719
|
`M${g + r},${p + r} h${f + 1 - g}v1H${g + r}z`
|
|
36722
36720
|
);
|
|
36723
36721
|
return;
|
|
36724
36722
|
}
|
|
36725
|
-
|
|
36723
|
+
b && g === null && (g = f);
|
|
36726
36724
|
});
|
|
36727
36725
|
}), t.join("");
|
|
36728
36726
|
}
|
|
@@ -36732,7 +36730,7 @@ function Gl(e, r) {
|
|
|
36732
36730
|
function rm(e, r, t, n) {
|
|
36733
36731
|
if (n == null)
|
|
36734
36732
|
return null;
|
|
36735
|
-
const p = e.length + t * 2, g = Math.floor(r * lm),
|
|
36733
|
+
const p = e.length + t * 2, g = Math.floor(r * lm), b = p / r, f = (n.width || g) * b, l = (n.height || g) * b, a = n.x == null ? e.length / 2 - f / 2 : n.x * b, i = n.y == null ? e.length / 2 - l / 2 : n.y * b, s = n.opacity == null ? 1 : n.opacity;
|
|
36736
36734
|
let o = null;
|
|
36737
36735
|
if (n.excavate) {
|
|
36738
36736
|
let m = Math.floor(a), c = Math.floor(i), d = Math.ceil(f + a - m), y = Math.ceil(l + i - c);
|
|
@@ -36751,7 +36749,7 @@ function Ml({
|
|
|
36751
36749
|
includeMargin: n,
|
|
36752
36750
|
marginSize: p,
|
|
36753
36751
|
imageSettings: g,
|
|
36754
|
-
size:
|
|
36752
|
+
size: b,
|
|
36755
36753
|
boostLevel: f
|
|
36756
36754
|
}) {
|
|
36757
36755
|
let l = de.useMemo(() => {
|
|
@@ -36769,7 +36767,7 @@ function Ml({
|
|
|
36769
36767
|
let u = l.getModules();
|
|
36770
36768
|
const m = om(n, p), c = u.length + m * 2, d = rm(
|
|
36771
36769
|
u,
|
|
36772
|
-
|
|
36770
|
+
b,
|
|
36773
36771
|
m,
|
|
36774
36772
|
g
|
|
36775
36773
|
);
|
|
@@ -36779,7 +36777,7 @@ function Ml({
|
|
|
36779
36777
|
numCells: c,
|
|
36780
36778
|
calculatedImageSettings: d
|
|
36781
36779
|
};
|
|
36782
|
-
}, [l,
|
|
36780
|
+
}, [l, b, g, n, p]);
|
|
36783
36781
|
return {
|
|
36784
36782
|
qrcode: l,
|
|
36785
36783
|
margin: i,
|
|
@@ -36800,7 +36798,7 @@ var sm = (function() {
|
|
|
36800
36798
|
const n = r, {
|
|
36801
36799
|
value: p,
|
|
36802
36800
|
size: g = kl,
|
|
36803
|
-
level:
|
|
36801
|
+
level: b = xl,
|
|
36804
36802
|
bgColor: f = Sl,
|
|
36805
36803
|
fgColor: l = Dl,
|
|
36806
36804
|
includeMargin: a = El,
|
|
@@ -36819,14 +36817,14 @@ var sm = (function() {
|
|
|
36819
36817
|
"boostLevel",
|
|
36820
36818
|
"marginSize",
|
|
36821
36819
|
"imageSettings"
|
|
36822
|
-
]), { style: d } = c, y = mt(c, ["style"]), _ = u?.src,
|
|
36820
|
+
]), { style: d } = c, y = mt(c, ["style"]), _ = u?.src, U = de.useRef(null), v = de.useRef(null), T = de.useCallback(
|
|
36823
36821
|
(P) => {
|
|
36824
|
-
|
|
36822
|
+
U.current = P, typeof t == "function" ? t(P) : t && (t.current = P);
|
|
36825
36823
|
},
|
|
36826
36824
|
[t]
|
|
36827
36825
|
), [x, S] = de.useState(!1), { margin: G, cells: O, numCells: C, calculatedImageSettings: h } = Ml({
|
|
36828
36826
|
value: p,
|
|
36829
|
-
level:
|
|
36827
|
+
level: b,
|
|
36830
36828
|
minVersion: i,
|
|
36831
36829
|
boostLevel: s,
|
|
36832
36830
|
includeMargin: a,
|
|
@@ -36835,8 +36833,8 @@ var sm = (function() {
|
|
|
36835
36833
|
size: g
|
|
36836
36834
|
});
|
|
36837
36835
|
de.useEffect(() => {
|
|
36838
|
-
if (
|
|
36839
|
-
const P =
|
|
36836
|
+
if (U.current != null) {
|
|
36837
|
+
const P = U.current, M = P.getContext("2d");
|
|
36840
36838
|
if (!M)
|
|
36841
36839
|
return;
|
|
36842
36840
|
let R = O;
|
|
@@ -36895,7 +36893,7 @@ var Rl = de.forwardRef(
|
|
|
36895
36893
|
const n = r, {
|
|
36896
36894
|
value: p,
|
|
36897
36895
|
size: g = kl,
|
|
36898
|
-
level:
|
|
36896
|
+
level: b = xl,
|
|
36899
36897
|
bgColor: f = Sl,
|
|
36900
36898
|
fgColor: l = Dl,
|
|
36901
36899
|
includeMargin: a = El,
|
|
@@ -36916,9 +36914,9 @@ var Rl = de.forwardRef(
|
|
|
36916
36914
|
"title",
|
|
36917
36915
|
"marginSize",
|
|
36918
36916
|
"imageSettings"
|
|
36919
|
-
]), { margin: d, cells: y, numCells: _, calculatedImageSettings:
|
|
36917
|
+
]), { margin: d, cells: y, numCells: _, calculatedImageSettings: U } = Ml({
|
|
36920
36918
|
value: p,
|
|
36921
|
-
level:
|
|
36919
|
+
level: b,
|
|
36922
36920
|
minVersion: i,
|
|
36923
36921
|
boostLevel: s,
|
|
36924
36922
|
includeMargin: a,
|
|
@@ -36927,20 +36925,20 @@ var Rl = de.forwardRef(
|
|
|
36927
36925
|
size: g
|
|
36928
36926
|
});
|
|
36929
36927
|
let v = y, T = null;
|
|
36930
|
-
m != null &&
|
|
36928
|
+
m != null && U != null && (U.excavation != null && (v = Gl(
|
|
36931
36929
|
y,
|
|
36932
|
-
|
|
36930
|
+
U.excavation
|
|
36933
36931
|
)), T = /* @__PURE__ */ de.createElement(
|
|
36934
36932
|
"image",
|
|
36935
36933
|
{
|
|
36936
36934
|
href: m.src,
|
|
36937
|
-
height:
|
|
36938
|
-
width:
|
|
36939
|
-
x:
|
|
36940
|
-
y:
|
|
36935
|
+
height: U.h,
|
|
36936
|
+
width: U.w,
|
|
36937
|
+
x: U.x + d,
|
|
36938
|
+
y: U.y + d,
|
|
36941
36939
|
preserveAspectRatio: "none",
|
|
36942
|
-
opacity:
|
|
36943
|
-
crossOrigin:
|
|
36940
|
+
opacity: U.opacity,
|
|
36941
|
+
crossOrigin: U.crossOrigin
|
|
36944
36942
|
}
|
|
36945
36943
|
));
|
|
36946
36944
|
const x = Ll(v, d);
|
|
@@ -36981,6 +36979,16 @@ const um = {
|
|
|
36981
36979
|
justifyContent: "center",
|
|
36982
36980
|
zIndex: 1e4,
|
|
36983
36981
|
gap: "2em"
|
|
36982
|
+
}, pm = {
|
|
36983
|
+
position: "absolute",
|
|
36984
|
+
top: "20px",
|
|
36985
|
+
right: "20px",
|
|
36986
|
+
color: "white",
|
|
36987
|
+
fontSize: "2rem",
|
|
36988
|
+
cursor: "pointer",
|
|
36989
|
+
padding: "10px",
|
|
36990
|
+
lineHeight: "1",
|
|
36991
|
+
zIndex: 10001
|
|
36984
36992
|
}, On = {
|
|
36985
36993
|
zh_TW: {
|
|
36986
36994
|
title: "請使用 LINE 掃描 QR Code 登入",
|
|
@@ -37002,72 +37010,88 @@ const um = {
|
|
|
37002
37010
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37003
37011
|
expired: "Kode QR telah kedaluwarsa"
|
|
37004
37012
|
}
|
|
37005
|
-
},
|
|
37006
|
-
const { lng:
|
|
37013
|
+
}, iu = ({ forcedShow: e = !1, isVisible: r, setIsVisible: t } = {}) => {
|
|
37014
|
+
const { lng: n, getToken: p } = re(), [g, b] = tt(300), [f, l] = tt(!1), a = ee(null), i = je(n), s = p?.(), u = new URLSearchParams(window.location.search).get("mac") || lt.get("machine_mac_address") || "", { data: m, isFetching: c } = Ho({
|
|
37007
37015
|
formData: {
|
|
37008
|
-
mac_address:
|
|
37016
|
+
mac_address: u
|
|
37009
37017
|
},
|
|
37010
37018
|
options: {
|
|
37011
|
-
enabled: !!
|
|
37019
|
+
enabled: e ? !0 : !!u && !s
|
|
37012
37020
|
}
|
|
37013
|
-
}),
|
|
37021
|
+
}), d = ge(m, "liff_url", "");
|
|
37014
37022
|
me(() => {
|
|
37015
|
-
|
|
37016
|
-
}, [
|
|
37017
|
-
|
|
37023
|
+
u && lt.set("machine_mac_address", u, { expires: 365 });
|
|
37024
|
+
}, [u]), me(() => (d && (b(300), l(!1), a.current && clearInterval(a.current), a.current = setInterval(() => {
|
|
37025
|
+
b((U) => U <= 1 ? (clearInterval(a.current), l(!0), 0) : U - 1);
|
|
37018
37026
|
}, 1e3)), () => {
|
|
37019
|
-
|
|
37020
|
-
}), [
|
|
37021
|
-
const
|
|
37022
|
-
const
|
|
37023
|
-
return `${
|
|
37027
|
+
a.current && clearInterval(a.current);
|
|
37028
|
+
}), [d]);
|
|
37029
|
+
const y = (U) => {
|
|
37030
|
+
const v = Math.floor(U / 60), T = U % 60;
|
|
37031
|
+
return `${v}:${T < 10 ? "0" : ""}${T}`;
|
|
37024
37032
|
};
|
|
37025
|
-
if (!
|
|
37026
|
-
const
|
|
37027
|
-
return /* @__PURE__ */
|
|
37028
|
-
/* @__PURE__ */
|
|
37029
|
-
/* @__PURE__ */ Ae.jsx(
|
|
37033
|
+
if (!e && (!u || s)) return null;
|
|
37034
|
+
const _ = On[i] || On.en_US;
|
|
37035
|
+
return r && /* @__PURE__ */ we.jsxs("div", { style: um, children: [
|
|
37036
|
+
/* @__PURE__ */ we.jsx(
|
|
37030
37037
|
"div",
|
|
37031
37038
|
{
|
|
37032
|
-
style:
|
|
37033
|
-
|
|
37034
|
-
|
|
37035
|
-
|
|
37036
|
-
|
|
37037
|
-
display: "flex",
|
|
37038
|
-
alignItems: "center",
|
|
37039
|
-
justifyContent: "center",
|
|
37040
|
-
boxSizing: "border-box",
|
|
37041
|
-
color: "black"
|
|
37042
|
-
},
|
|
37043
|
-
children: o ? "Loading..." : /* @__PURE__ */ Ae.jsx(Rl, { width: "100%", height: "100%", value: u })
|
|
37039
|
+
style: pm,
|
|
37040
|
+
onClick: () => t(!1),
|
|
37041
|
+
role: "button",
|
|
37042
|
+
"aria-label": "Close",
|
|
37043
|
+
children: "✕"
|
|
37044
37044
|
}
|
|
37045
37045
|
),
|
|
37046
|
-
|
|
37047
|
-
"p",
|
|
37048
|
-
|
|
37049
|
-
|
|
37050
|
-
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
|
|
37046
|
+
f ? /* @__PURE__ */ we.jsx("p", { style: { fontWeight: "bold" }, children: _.expired }) : /* @__PURE__ */ we.jsxs(we.Fragment, { children: [
|
|
37047
|
+
/* @__PURE__ */ we.jsx("p", { style: { fontWeight: "bold", fontSize: "3em" }, children: _.title }),
|
|
37048
|
+
/* @__PURE__ */ we.jsx(
|
|
37049
|
+
"div",
|
|
37050
|
+
{
|
|
37051
|
+
style: {
|
|
37052
|
+
background: "white",
|
|
37053
|
+
borderRadius: "8px",
|
|
37054
|
+
width: "20em",
|
|
37055
|
+
height: "20em",
|
|
37056
|
+
display: "flex",
|
|
37057
|
+
alignItems: "center",
|
|
37058
|
+
justifyContent: "center",
|
|
37059
|
+
boxSizing: "border-box",
|
|
37060
|
+
color: "black"
|
|
37061
|
+
},
|
|
37062
|
+
children: c ? "Loading..." : /* @__PURE__ */ we.jsx(Rl, { width: "100%", height: "100%", value: d })
|
|
37063
|
+
}
|
|
37064
|
+
),
|
|
37065
|
+
!c && /* @__PURE__ */ we.jsx(
|
|
37066
|
+
"p",
|
|
37067
|
+
{
|
|
37068
|
+
style: {
|
|
37069
|
+
marginTop: "10px",
|
|
37070
|
+
fontWeight: "bold",
|
|
37071
|
+
fontSize: "3em"
|
|
37072
|
+
},
|
|
37073
|
+
children: y(g)
|
|
37074
|
+
}
|
|
37075
|
+
)
|
|
37076
|
+
] })
|
|
37077
|
+
] });
|
|
37054
37078
|
};
|
|
37055
37079
|
export {
|
|
37056
37080
|
zn as ApiCtx,
|
|
37057
|
-
|
|
37081
|
+
Ym as ApiProvider,
|
|
37058
37082
|
qn as GamesInfoCtx,
|
|
37059
|
-
|
|
37060
|
-
|
|
37083
|
+
Xm as LineLogin,
|
|
37084
|
+
iu as LineQrCode,
|
|
37061
37085
|
Ja as STATUS_TYPES,
|
|
37062
37086
|
In as StatusContext,
|
|
37063
37087
|
ql as StatusProvider,
|
|
37064
37088
|
Ks as buildMultiTypes,
|
|
37065
|
-
|
|
37089
|
+
Qm as buildMultiTypesWithSubTypes,
|
|
37066
37090
|
jl as buildSinglePlatformWithSubTypes,
|
|
37067
37091
|
Ql as buildSingleType,
|
|
37068
37092
|
Js as categorizeGames,
|
|
37069
37093
|
je as convertLanguageCode,
|
|
37070
|
-
|
|
37094
|
+
Um as createLogoutHandler,
|
|
37071
37095
|
Vs as extractGameSubTypeNames,
|
|
37072
37096
|
Is as extractGameTypeNames,
|
|
37073
37097
|
wn as extractPlatformNames,
|
|
@@ -37077,67 +37101,67 @@ export {
|
|
|
37077
37101
|
jn as findSubPlatform,
|
|
37078
37102
|
zs as flattenAllGames,
|
|
37079
37103
|
Zs as flattenFavoriteGames,
|
|
37080
|
-
|
|
37104
|
+
bm as formatNumber,
|
|
37081
37105
|
qs as groupGamesByPlatform,
|
|
37082
37106
|
$s as groupGamesByPlatformAndSubType,
|
|
37083
37107
|
$l as groupGamesBySubType,
|
|
37084
37108
|
Ws as handleDarkImage,
|
|
37085
37109
|
Xs as initMockWindowData,
|
|
37086
37110
|
Qs as processGameInfo,
|
|
37087
|
-
|
|
37088
|
-
|
|
37111
|
+
jm as processPlatformData,
|
|
37112
|
+
Sm as useAbandonPoint,
|
|
37089
37113
|
re as useApiContext,
|
|
37090
|
-
|
|
37091
|
-
|
|
37114
|
+
Cm as useBalanceGetter,
|
|
37115
|
+
Tm as useBet,
|
|
37092
37116
|
co as useBetRecord,
|
|
37093
37117
|
fo as useBetRecordDetail,
|
|
37094
37118
|
Io as useCheckCurrentEventProgress,
|
|
37095
37119
|
Vo as useCheckEventStatus,
|
|
37096
|
-
|
|
37097
|
-
|
|
37120
|
+
xm as useCheckPlayerWager,
|
|
37121
|
+
Nm as useClientWebSocket,
|
|
37098
37122
|
ds as useCurrentRebate,
|
|
37099
37123
|
Qo as useDepositAction,
|
|
37100
37124
|
Yo as useDepositTransaction,
|
|
37101
37125
|
qo as useDepositV1,
|
|
37102
37126
|
$o as useDepositV2,
|
|
37103
|
-
|
|
37127
|
+
Gm as useEvent,
|
|
37104
37128
|
zo as useEventList,
|
|
37105
37129
|
Xo as useEventTransaction,
|
|
37106
37130
|
Us as useExpiredRewardsList,
|
|
37107
|
-
|
|
37108
|
-
|
|
37131
|
+
qm as useGameConfig,
|
|
37132
|
+
ym as useGameInfoContext,
|
|
37109
37133
|
Ys as useGamesInfo,
|
|
37110
|
-
|
|
37134
|
+
Mm as useGetCarouseList,
|
|
37111
37135
|
Ho as useGetMachineLoginCode,
|
|
37112
|
-
|
|
37113
|
-
|
|
37114
|
-
|
|
37136
|
+
Rm as useGetMarquee,
|
|
37137
|
+
vm as useGetMemberInfo,
|
|
37138
|
+
Pm as useGetRankingGame,
|
|
37115
37139
|
bs as useHistoryRewardsList,
|
|
37116
|
-
|
|
37117
|
-
|
|
37140
|
+
Km as useIdleTimeout,
|
|
37141
|
+
Fm as useInbox,
|
|
37118
37142
|
Zo as useInboxList,
|
|
37119
|
-
|
|
37120
|
-
|
|
37143
|
+
hm as useInitializeWithToken,
|
|
37144
|
+
Bm as useInvoiceAction,
|
|
37121
37145
|
tl as useLineLogin,
|
|
37122
37146
|
Bo as useLineLogin2,
|
|
37123
37147
|
Eo as useLogin,
|
|
37124
37148
|
No as useLogout,
|
|
37125
|
-
|
|
37126
|
-
|
|
37127
|
-
|
|
37128
|
-
|
|
37129
|
-
|
|
37130
|
-
|
|
37131
|
-
|
|
37149
|
+
Dm as useMemberTransfer,
|
|
37150
|
+
Am as useNewsDetail,
|
|
37151
|
+
wm as useNewsList,
|
|
37152
|
+
Wm as usePayment,
|
|
37153
|
+
$m as usePlatformConfig,
|
|
37154
|
+
zm as usePlayGame,
|
|
37155
|
+
km as usePointTransfer,
|
|
37132
37156
|
Jo as useReadInbox,
|
|
37133
|
-
|
|
37157
|
+
Im as useRebate,
|
|
37134
37158
|
cs as useReceiveRebate,
|
|
37135
|
-
|
|
37136
|
-
|
|
37159
|
+
Om as useRedeemCodeDeposit,
|
|
37160
|
+
Lm as useRedeemEventReward,
|
|
37137
37161
|
_s as useRedeemReward,
|
|
37138
37162
|
Ro as useResetUserPassword,
|
|
37139
37163
|
Fo as useResetUserTransactionPassword,
|
|
37140
|
-
|
|
37164
|
+
Vm as useRewards,
|
|
37141
37165
|
fs as useRewardsList,
|
|
37142
37166
|
Po as useSetUserTransactionPassword,
|
|
37143
37167
|
Lo as useSignUp,
|
|
@@ -37145,13 +37169,13 @@ export {
|
|
|
37145
37169
|
Go as useToggleFavoriteGame,
|
|
37146
37170
|
Oo as useTransferInGame,
|
|
37147
37171
|
ys as useUnUsedRewardsList,
|
|
37148
|
-
|
|
37172
|
+
Hm as useUpdateInvoiceAction,
|
|
37149
37173
|
Mo as useUpdateUserInfo,
|
|
37150
|
-
|
|
37174
|
+
Em as useUser,
|
|
37151
37175
|
Ao as useUserBindCard,
|
|
37152
37176
|
wo as useUserRebate,
|
|
37153
|
-
|
|
37154
|
-
|
|
37177
|
+
Jm as useVip,
|
|
37178
|
+
Zm as useVipInfo,
|
|
37155
37179
|
Cs as useVipList,
|
|
37156
37180
|
jo as useWithdrawAction,
|
|
37157
37181
|
as as useWithdrawTransaction
|