@obb871001/api-integration-sdk 1.0.400 → 1.0.401
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 +4 -4
- package/dist/index.js +673 -661
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import fe, { createContext as jt, useContext as _i, useState as
|
|
1
|
+
import fe, { createContext as jt, useContext as _i, useState as at, useMemo as Ha, useCallback as H, useRef as te, useEffect as pe } from "react";
|
|
2
2
|
import { useQueries as In, useQuery as Q, useQueryClient as xa, useMutation as ee, QueryClient as Wr, QueryClientProvider as zr } from "@tanstack/react-query";
|
|
3
3
|
import Ir from "axios";
|
|
4
4
|
import { get as j, isEmpty as Ge, find as We, entries as Vn, forEach as Vr, map as xe, isArray as Ye, toLower as Ni, omit as Jr, keyBy as Zr, replace as rt, includes as Kr, isObject as Yt, flatMap as Xt, values as qr, keys as Li } from "lodash";
|
|
@@ -31,33 +31,33 @@ function Qr(e) {
|
|
|
31
31
|
});
|
|
32
32
|
}), a;
|
|
33
33
|
}
|
|
34
|
-
var lt = { exports: {} },
|
|
34
|
+
var lt = { exports: {} }, qa = {};
|
|
35
35
|
var Gi;
|
|
36
36
|
function jr() {
|
|
37
|
-
if (Gi) return
|
|
37
|
+
if (Gi) return qa;
|
|
38
38
|
Gi = 1;
|
|
39
39
|
var e = fe, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, u = 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 U(d, l, t) {
|
|
41
41
|
var i, o = {}, s = null, p = null;
|
|
42
42
|
t !== void 0 && (s = "" + t), l.key !== void 0 && (s = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
43
43
|
for (i in l) r.call(l, i) && !g.hasOwnProperty(i) && (o[i] = l[i]);
|
|
44
44
|
if (d && d.defaultProps) for (i in l = d.defaultProps, l) o[i] === void 0 && (o[i] = l[i]);
|
|
45
45
|
return { $$typeof: n, type: d, key: s, ref: p, props: o, _owner: u.current };
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return qa.Fragment = a, qa.jsx = U, qa.jsxs = U, qa;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var $a = {};
|
|
50
50
|
var Mi;
|
|
51
51
|
function Yr() {
|
|
52
52
|
return Mi || (Mi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = fe, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), u = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"),
|
|
53
|
+
var e = fe, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), u = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"), U = /* @__PURE__ */ Symbol.for("react.provider"), d = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), t = /* @__PURE__ */ Symbol.for("react.suspense"), i = /* @__PURE__ */ Symbol.for("react.suspense_list"), o = /* @__PURE__ */ Symbol.for("react.memo"), s = /* @__PURE__ */ Symbol.for("react.lazy"), p = /* @__PURE__ */ Symbol.for("react.offscreen"), m = Symbol.iterator, _ = "@@iterator";
|
|
54
54
|
function c(k) {
|
|
55
55
|
if (k === null || typeof k != "object")
|
|
56
56
|
return null;
|
|
57
57
|
var I = m && k[m] || k[_];
|
|
58
58
|
return typeof I == "function" ? I : null;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
61
|
function f(k) {
|
|
62
62
|
{
|
|
63
63
|
for (var I = arguments.length, q = new Array(I > 1 ? I - 1 : 0), Y = 1; Y < I; Y++)
|
|
@@ -67,7 +67,7 @@ function Yr() {
|
|
|
67
67
|
}
|
|
68
68
|
function b(k, I, q) {
|
|
69
69
|
{
|
|
70
|
-
var Y =
|
|
70
|
+
var Y = y.ReactDebugCurrentFrame, me = Y.getStackAddendum();
|
|
71
71
|
me !== "" && (I += "%s", q = q.concat([me]));
|
|
72
72
|
var de = q.map(function(oe) {
|
|
73
73
|
return String(oe);
|
|
@@ -78,7 +78,7 @@ function Yr() {
|
|
|
78
78
|
var C = !1, v = !1, x = !1, D = !1, M = !1, A;
|
|
79
79
|
A = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
80
80
|
function T(k) {
|
|
81
|
-
return !!(typeof k == "string" || typeof k == "function" || k === r || k === g || M || k === u || k === t || k === i || D || k === p || C || v || x || typeof k == "object" && k !== null && (k.$$typeof === s || k.$$typeof === o || k.$$typeof ===
|
|
81
|
+
return !!(typeof k == "string" || typeof k == "function" || k === r || k === g || M || k === u || k === t || k === i || D || k === p || C || v || x || typeof k == "object" && k !== null && (k.$$typeof === s || k.$$typeof === o || k.$$typeof === U || k.$$typeof === d || 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 Yr() {
|
|
|
120
120
|
case d:
|
|
121
121
|
var I = k;
|
|
122
122
|
return F(I) + ".Consumer";
|
|
123
|
-
case
|
|
123
|
+
case U:
|
|
124
124
|
var q = k;
|
|
125
125
|
return F(q._context) + ".Provider";
|
|
126
126
|
case l:
|
|
@@ -201,7 +201,7 @@ function Yr() {
|
|
|
201
201
|
R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var $ =
|
|
204
|
+
var $ = y.ReactCurrentDispatcher, Z;
|
|
205
205
|
function K(k, I, q) {
|
|
206
206
|
{
|
|
207
207
|
if (Z === void 0)
|
|
@@ -327,7 +327,7 @@ function Yr() {
|
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var ue = Object.prototype.hasOwnProperty, we = {}, ce =
|
|
330
|
+
var ue = Object.prototype.hasOwnProperty, we = {}, ce = y.ReactDebugCurrentFrame;
|
|
331
331
|
function Ce(k) {
|
|
332
332
|
if (k) {
|
|
333
333
|
var I = k._owner, q = Se(k.type, k._source, I ? I.type : null);
|
|
@@ -378,7 +378,7 @@ function Yr() {
|
|
|
378
378
|
if (ta(k))
|
|
379
379
|
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(k)), ia(k);
|
|
380
380
|
}
|
|
381
|
-
var Ae =
|
|
381
|
+
var Ae = y.ReactCurrentOwner, Xe = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
@@ -400,7 +400,7 @@ function Yr() {
|
|
|
400
400
|
}
|
|
401
401
|
return k.key !== void 0;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Ja(k, I) {
|
|
404
404
|
typeof k.ref == "string" && Ae.current;
|
|
405
405
|
}
|
|
406
406
|
function Na(k, I) {
|
|
@@ -425,7 +425,7 @@ function Yr() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var
|
|
428
|
+
var Za = function(k, I, q, Y, me, de, oe) {
|
|
429
429
|
var ie = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: n,
|
|
@@ -454,10 +454,10 @@ function Yr() {
|
|
|
454
454
|
value: me
|
|
455
455
|
}), Object.freeze && (Object.freeze(ie.props), Object.freeze(ie)), ie;
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function Ka(k, I, q, Y, me) {
|
|
458
458
|
{
|
|
459
459
|
var de, oe = {}, ie = null, ze = null;
|
|
460
|
-
q !== void 0 && (De(q), ie = "" + q), ea(I) && (De(I.key), ie = "" + I.key), Ze(I) && (ze = I.ref,
|
|
460
|
+
q !== void 0 && (De(q), ie = "" + q), ea(I) && (De(I.key), ie = "" + I.key), Ze(I) && (ze = I.ref, Ja(I, me));
|
|
461
461
|
for (de in I)
|
|
462
462
|
ue.call(I, de) && !Xe.hasOwnProperty(de) && (oe[de] = I[de]);
|
|
463
463
|
if (k && k.defaultProps) {
|
|
@@ -469,10 +469,10 @@ function Yr() {
|
|
|
469
469
|
var Te = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
470
470
|
ie && Na(oe, Te), ze && La(oe, Te);
|
|
471
471
|
}
|
|
472
|
-
return
|
|
472
|
+
return Za(k, ie, ze, me, Y, Ae.current, oe);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
var da =
|
|
475
|
+
var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
|
|
476
476
|
function Qe(k) {
|
|
477
477
|
if (k) {
|
|
478
478
|
var I = k._owner, q = Se(k.type, k._source, I ? I.type : null);
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
594
594
|
var ve;
|
|
595
595
|
k === null ? ve = "null" : he(k) ? ve = "array" : k !== void 0 && k.$$typeof === n ? (ve = "<" + (P(k.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : ve = typeof k, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ve, ie);
|
|
596
596
|
}
|
|
597
|
-
var Te =
|
|
597
|
+
var Te = Ka(k, I, q, me, de);
|
|
598
598
|
if (Te == null)
|
|
599
599
|
return Te;
|
|
600
600
|
if (oe) {
|
|
@@ -634,8 +634,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
634
634
|
return Oe(k, I, q, !1);
|
|
635
635
|
}
|
|
636
636
|
var ai = nt, Or = ra;
|
|
637
|
-
|
|
638
|
-
})()),
|
|
637
|
+
$a.Fragment = r, $a.jsx = ai, $a.jsxs = Or;
|
|
638
|
+
})()), $a;
|
|
639
639
|
}
|
|
640
640
|
var Ri;
|
|
641
641
|
function Xr() {
|
|
@@ -647,19 +647,19 @@ const Jn = jt(null), se = () => {
|
|
|
647
647
|
if (!e)
|
|
648
648
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
649
649
|
return e;
|
|
650
|
-
},
|
|
650
|
+
}, Qa = {
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
653
|
}, Zn = jt(null), el = ({ children: e }) => {
|
|
654
|
-
const [n, a] =
|
|
655
|
-
const u = n ===
|
|
654
|
+
const [n, a] = at(Qa.READY), r = Ha(() => {
|
|
655
|
+
const u = n === Qa.READY, g = n === Qa.PENDING;
|
|
656
656
|
return {
|
|
657
657
|
status: n,
|
|
658
658
|
setStatus: a,
|
|
659
659
|
isReady: u,
|
|
660
660
|
isPending: g,
|
|
661
|
-
setAsReady: () => a(
|
|
662
|
-
setAsPending: () => a(
|
|
661
|
+
setAsReady: () => a(Qa.READY),
|
|
662
|
+
setAsPending: () => a(Qa.PENDING)
|
|
663
663
|
};
|
|
664
664
|
}, [n]);
|
|
665
665
|
return /* @__PURE__ */ He.jsx(Zn.Provider, { value: r, children: e });
|
|
@@ -711,7 +711,7 @@ function Pi({
|
|
|
711
711
|
lng: r = "tw",
|
|
712
712
|
store: u,
|
|
713
713
|
onError: g,
|
|
714
|
-
formData:
|
|
714
|
+
formData: U = !1,
|
|
715
715
|
currency: d,
|
|
716
716
|
toasterOpen: l = !1
|
|
717
717
|
} = {}) {
|
|
@@ -719,7 +719,7 @@ function Pi({
|
|
|
719
719
|
baseURL: e,
|
|
720
720
|
timeout: a,
|
|
721
721
|
headers: {
|
|
722
|
-
"Content-Type":
|
|
722
|
+
"Content-Type": U ? "multipart/form-data" : "application/json"
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
725
|
return t.interceptors.request.use(async (i) => {
|
|
@@ -786,14 +786,14 @@ const jn = jt(null), Lm = () => {
|
|
|
786
786
|
isCallBackInvalid: r = !1,
|
|
787
787
|
hostname: u = "",
|
|
788
788
|
shouldRedirect: g,
|
|
789
|
-
onShowError:
|
|
789
|
+
onShowError: U,
|
|
790
790
|
onCleanup: d,
|
|
791
791
|
onRemoveToken: l,
|
|
792
792
|
onRedirect: t,
|
|
793
793
|
onGoogleLogout: i
|
|
794
794
|
}) => {
|
|
795
795
|
const o = n(u);
|
|
796
|
-
e(r, o) &&
|
|
796
|
+
e(r, o) && U?.(), d?.(), l?.(), g && t?.("/"), i?.();
|
|
797
797
|
},
|
|
798
798
|
shouldShowErrorNotice: e,
|
|
799
799
|
isMachineDomain: n
|
|
@@ -816,13 +816,13 @@ const jn = jt(null), Lm = () => {
|
|
|
816
816
|
allPlatforms: u
|
|
817
817
|
}) => {
|
|
818
818
|
const g = Yn(r, e);
|
|
819
|
-
return g ? n.reduce((
|
|
819
|
+
return g ? n.reduce((U, d) => {
|
|
820
820
|
const l = Xn(u, d), t = er(u, d), i = a[g] || [], o = ar(
|
|
821
821
|
i,
|
|
822
822
|
l,
|
|
823
823
|
t
|
|
824
824
|
);
|
|
825
|
-
return Ge(o) || (
|
|
825
|
+
return Ge(o) || (U[d] = o), U;
|
|
826
826
|
}, {}) : {};
|
|
827
827
|
}, rl = ({
|
|
828
828
|
platformName: e,
|
|
@@ -842,7 +842,7 @@ function ol() {
|
|
|
842
842
|
(function(a, r) {
|
|
843
843
|
e.exports = r();
|
|
844
844
|
})(ll, (function() {
|
|
845
|
-
var a = 1e3, r = 6e4, u = 36e5, g = "millisecond",
|
|
845
|
+
var a = 1e3, r = 6e4, u = 36e5, g = "millisecond", U = "second", d = "minute", l = "hour", t = "day", i = "week", o = "month", s = "quarter", p = "year", m = "date", _ = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|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, f = { 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(w) {
|
|
846
846
|
var R = ["th", "st", "nd", "rd"], L = w % 100;
|
|
847
847
|
return "[" + w + (R[(L - 20) % 10] || R[L] || R[0]) + "]";
|
|
848
848
|
} }, b = function(w, R, L) {
|
|
@@ -858,7 +858,7 @@ function ol() {
|
|
|
858
858
|
}, a: function(w) {
|
|
859
859
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
860
860
|
}, p: function(w) {
|
|
861
|
-
return { M: o, y: p, w: i, d: t, D: m, h: l, m: d, s:
|
|
861
|
+
return { M: o, y: p, w: i, d: t, D: m, h: l, m: d, s: U, ms: g, Q: s }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
862
862
|
}, u: function(w) {
|
|
863
863
|
return w === void 0;
|
|
864
864
|
} }, v = "en", x = {};
|
|
@@ -948,7 +948,7 @@ function ol() {
|
|
|
948
948
|
return h($ + "Minutes", 1);
|
|
949
949
|
case d:
|
|
950
950
|
return h($ + "Seconds", 2);
|
|
951
|
-
case
|
|
951
|
+
case U:
|
|
952
952
|
return h($ + "Milliseconds", 3);
|
|
953
953
|
default:
|
|
954
954
|
return this.clone();
|
|
@@ -956,7 +956,7 @@ function ol() {
|
|
|
956
956
|
}, R.endOf = function(L) {
|
|
957
957
|
return this.startOf(L, !1);
|
|
958
958
|
}, R.$set = function(L, B) {
|
|
959
|
-
var O, W = S.p(L), z = "set" + (this.$u ? "UTC" : ""), G = (O = {}, O[t] = z + "Date", O[m] = z + "Date", O[o] = z + "Month", O[p] = z + "FullYear", O[l] = z + "Hours", O[d] = z + "Minutes", O[
|
|
959
|
+
var O, W = S.p(L), z = "set" + (this.$u ? "UTC" : ""), G = (O = {}, O[t] = z + "Date", O[m] = z + "Date", O[o] = z + "Month", O[p] = z + "FullYear", O[l] = z + "Hours", O[d] = z + "Minutes", O[U] = z + "Seconds", O[g] = z + "Milliseconds", O)[W], h = W === t ? this.$D + (B - this.$W) : B;
|
|
960
960
|
if (W === o || W === p) {
|
|
961
961
|
var E = this.clone().set(m, 1);
|
|
962
962
|
E.$d[G](h), E.init(), this.$d = E.set(m, Math.min(this.$D, E.daysInMonth())).$d;
|
|
@@ -977,7 +977,7 @@ function ol() {
|
|
|
977
977
|
if (z === p) return this.set(p, this.$y + L);
|
|
978
978
|
if (z === t) return G(1);
|
|
979
979
|
if (z === i) return G(7);
|
|
980
|
-
var h = (O = {}, O[d] = r, O[l] = u, O[
|
|
980
|
+
var h = (O = {}, O[d] = r, O[l] = u, O[U] = a, O)[z] || 1, E = this.$d.getTime() + L * h;
|
|
981
981
|
return S.w(E, this);
|
|
982
982
|
}, R.subtract = function(L, B) {
|
|
983
983
|
return this.add(-1 * L, B);
|
|
@@ -992,7 +992,7 @@ function ol() {
|
|
|
992
992
|
var ge = re < 12 ? "AM" : "PM";
|
|
993
993
|
return be ? ge.toLowerCase() : ge;
|
|
994
994
|
};
|
|
995
|
-
return W.replace(
|
|
995
|
+
return W.replace(y, (function(re, Ue) {
|
|
996
996
|
return Ue || (function(be) {
|
|
997
997
|
switch (be) {
|
|
998
998
|
case "YY":
|
|
@@ -1075,7 +1075,7 @@ function ol() {
|
|
|
1075
1075
|
case d:
|
|
1076
1076
|
W = N / r;
|
|
1077
1077
|
break;
|
|
1078
|
-
case
|
|
1078
|
+
case U:
|
|
1079
1079
|
W = N / a;
|
|
1080
1080
|
break;
|
|
1081
1081
|
default:
|
|
@@ -1102,7 +1102,7 @@ function ol() {
|
|
|
1102
1102
|
return this.$d.toUTCString();
|
|
1103
1103
|
}, w;
|
|
1104
1104
|
})(), P = F.prototype;
|
|
1105
|
-
return T.prototype = P, [["$ms", g], ["$s",
|
|
1105
|
+
return T.prototype = P, [["$ms", g], ["$s", U], ["$m", d], ["$H", l], ["$W", t], ["$M", o], ["$y", p], ["$D", m]].forEach((function(w) {
|
|
1106
1106
|
P[w[1]] = function(R) {
|
|
1107
1107
|
return this.$g(R, w[0], w[1]);
|
|
1108
1108
|
};
|
|
@@ -1138,7 +1138,7 @@ function le() {
|
|
|
1138
1138
|
g = gl;
|
|
1139
1139
|
} catch {
|
|
1140
1140
|
}
|
|
1141
|
-
var
|
|
1141
|
+
var U = function() {
|
|
1142
1142
|
if (g) {
|
|
1143
1143
|
if (typeof g.getRandomValues == "function")
|
|
1144
1144
|
try {
|
|
@@ -1338,7 +1338,7 @@ function le() {
|
|
|
1338
1338
|
*/
|
|
1339
1339
|
random: function(f) {
|
|
1340
1340
|
for (var b = [], C = 0; C < f; C += 4)
|
|
1341
|
-
b.push(
|
|
1341
|
+
b.push(U());
|
|
1342
1342
|
return new o.init(b, f);
|
|
1343
1343
|
}
|
|
1344
1344
|
}), s = l.enc = {}, p = s.Hex = {
|
|
@@ -1615,11 +1615,11 @@ function le() {
|
|
|
1615
1615
|
*/
|
|
1616
1616
|
_createHmacHelper: function(f) {
|
|
1617
1617
|
return function(b, C) {
|
|
1618
|
-
return new
|
|
1618
|
+
return new y.HMAC.init(f, C).finalize(b);
|
|
1619
1619
|
};
|
|
1620
1620
|
}
|
|
1621
1621
|
});
|
|
1622
|
-
var
|
|
1622
|
+
var y = l.algo = {};
|
|
1623
1623
|
return l;
|
|
1624
1624
|
})(Math);
|
|
1625
1625
|
return a;
|
|
@@ -1633,8 +1633,8 @@ function ei() {
|
|
|
1633
1633
|
e.exports = r(le());
|
|
1634
1634
|
})(cl, function(a) {
|
|
1635
1635
|
return (function(r) {
|
|
1636
|
-
var u = a, g = u.lib,
|
|
1637
|
-
l.Word =
|
|
1636
|
+
var u = a, g = u.lib, U = g.Base, d = g.WordArray, l = u.x64 = {};
|
|
1637
|
+
l.Word = U.extend({
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Initializes a newly created 64-bit word.
|
|
1640
1640
|
*
|
|
@@ -1797,7 +1797,7 @@ function ei() {
|
|
|
1797
1797
|
// var high = (this.high + word.high + carry) | 0;
|
|
1798
1798
|
// return X64Word.create(high, low);
|
|
1799
1799
|
// }
|
|
1800
|
-
}), l.WordArray =
|
|
1800
|
+
}), l.WordArray = U.extend({
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Initializes a newly created word array.
|
|
1803
1803
|
*
|
|
@@ -1847,7 +1847,7 @@ function ei() {
|
|
|
1847
1847
|
* var clone = x64WordArray.clone();
|
|
1848
1848
|
*/
|
|
1849
1849
|
clone: function() {
|
|
1850
|
-
for (var t =
|
|
1850
|
+
for (var t = U.clone.call(this), i = t.words = this.words.slice(0), o = i.length, s = 0; s < o; s++)
|
|
1851
1851
|
i[s] = i[s].clone();
|
|
1852
1852
|
return t;
|
|
1853
1853
|
}
|
|
@@ -1864,13 +1864,13 @@ function _l() {
|
|
|
1864
1864
|
})(fl, function(a) {
|
|
1865
1865
|
return (function() {
|
|
1866
1866
|
if (typeof ArrayBuffer == "function") {
|
|
1867
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
1867
|
+
var r = a, u = r.lib, g = u.WordArray, U = g.init, d = g.init = function(l) {
|
|
1868
1868
|
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) {
|
|
1869
1869
|
for (var t = l.byteLength, i = [], o = 0; o < t; o++)
|
|
1870
1870
|
i[o >>> 2] |= l[o] << 24 - o % 4 * 8;
|
|
1871
|
-
|
|
1871
|
+
U.call(this, i, t);
|
|
1872
1872
|
} else
|
|
1873
|
-
|
|
1873
|
+
U.apply(this, arguments);
|
|
1874
1874
|
};
|
|
1875
1875
|
d.prototype = g;
|
|
1876
1876
|
}
|
|
@@ -1885,8 +1885,8 @@ function Ul() {
|
|
|
1885
1885
|
e.exports = r(le());
|
|
1886
1886
|
})(yl, function(a) {
|
|
1887
1887
|
return (function() {
|
|
1888
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
1889
|
-
|
|
1888
|
+
var r = a, u = r.lib, g = u.WordArray, U = r.enc;
|
|
1889
|
+
U.Utf16 = U.Utf16BE = {
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Converts a word array to a UTF-16 BE string.
|
|
1892
1892
|
*
|
|
@@ -1925,7 +1925,7 @@ function Ul() {
|
|
|
1925
1925
|
i[o >>> 1] |= l.charCodeAt(o) << 16 - o % 2 * 16;
|
|
1926
1926
|
return g.create(i, t * 2);
|
|
1927
1927
|
}
|
|
1928
|
-
},
|
|
1928
|
+
}, U.Utf16LE = {
|
|
1929
1929
|
/**
|
|
1930
1930
|
* Converts a word array to a UTF-16 LE string.
|
|
1931
1931
|
*
|
|
@@ -1979,8 +1979,8 @@ function Sa() {
|
|
|
1979
1979
|
e.exports = r(le());
|
|
1980
1980
|
})(bl, function(a) {
|
|
1981
1981
|
return (function() {
|
|
1982
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
1983
|
-
|
|
1982
|
+
var r = a, u = r.lib, g = u.WordArray, U = r.enc;
|
|
1983
|
+
U.Base64 = {
|
|
1984
1984
|
/**
|
|
1985
1985
|
* Converts a word array to a Base64 string.
|
|
1986
1986
|
*
|
|
@@ -1998,8 +1998,8 @@ function Sa() {
|
|
|
1998
1998
|
var t = l.words, i = l.sigBytes, o = this._map;
|
|
1999
1999
|
l.clamp();
|
|
2000
2000
|
for (var s = [], p = 0; p < i; p += 3)
|
|
2001
|
-
for (var m = t[p >>> 2] >>> 24 - p % 4 * 8 & 255, _ = t[p + 1 >>> 2] >>> 24 - (p + 1) % 4 * 8 & 255, c = t[p + 2 >>> 2] >>> 24 - (p + 2) % 4 * 8 & 255,
|
|
2002
|
-
s.push(o.charAt(
|
|
2001
|
+
for (var m = t[p >>> 2] >>> 24 - p % 4 * 8 & 255, _ = t[p + 1 >>> 2] >>> 24 - (p + 1) % 4 * 8 & 255, c = t[p + 2 >>> 2] >>> 24 - (p + 2) % 4 * 8 & 255, y = m << 16 | _ << 8 | c, f = 0; f < 4 && p + f * 0.75 < i; f++)
|
|
2002
|
+
s.push(o.charAt(y >>> 6 * (3 - f) & 63));
|
|
2003
2003
|
var b = o.charAt(64);
|
|
2004
2004
|
if (b)
|
|
2005
2005
|
for (; s.length % 4; )
|
|
@@ -2054,8 +2054,8 @@ function vl() {
|
|
|
2054
2054
|
e.exports = r(le());
|
|
2055
2055
|
})(Cl, function(a) {
|
|
2056
2056
|
return (function() {
|
|
2057
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
2058
|
-
|
|
2057
|
+
var r = a, u = r.lib, g = u.WordArray, U = r.enc;
|
|
2058
|
+
U.Base64url = {
|
|
2059
2059
|
/**
|
|
2060
2060
|
* Converts a word array to a Base64url string.
|
|
2061
2061
|
*
|
|
@@ -2076,7 +2076,7 @@ function vl() {
|
|
|
2076
2076
|
var i = l.words, o = l.sigBytes, s = t ? this._safe_map : this._map;
|
|
2077
2077
|
l.clamp();
|
|
2078
2078
|
for (var p = [], m = 0; m < o; m += 3)
|
|
2079
|
-
for (var _ = i[m >>> 2] >>> 24 - m % 4 * 8 & 255, c = i[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255,
|
|
2079
|
+
for (var _ = i[m >>> 2] >>> 24 - m % 4 * 8 & 255, c = i[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, y = i[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, f = _ << 16 | c << 8 | y, b = 0; b < 4 && m + b * 0.75 < o; b++)
|
|
2080
2080
|
p.push(s.charAt(f >>> 6 * (3 - b) & 63));
|
|
2081
2081
|
var C = s.charAt(64);
|
|
2082
2082
|
if (C)
|
|
@@ -2136,14 +2136,14 @@ function Da() {
|
|
|
2136
2136
|
e.exports = r(le());
|
|
2137
2137
|
})(hl, function(a) {
|
|
2138
2138
|
return (function(r) {
|
|
2139
|
-
var u = a, g = u.lib,
|
|
2139
|
+
var u = a, g = u.lib, U = g.WordArray, d = g.Hasher, l = u.algo, t = [];
|
|
2140
2140
|
(function() {
|
|
2141
2141
|
for (var _ = 0; _ < 64; _++)
|
|
2142
2142
|
t[_] = r.abs(r.sin(_ + 1)) * 4294967296 | 0;
|
|
2143
2143
|
})();
|
|
2144
2144
|
var i = l.MD5 = d.extend({
|
|
2145
2145
|
_doReset: function() {
|
|
2146
|
-
this._hash = new
|
|
2146
|
+
this._hash = new U.init([
|
|
2147
2147
|
1732584193,
|
|
2148
2148
|
4023233417,
|
|
2149
2149
|
2562383102,
|
|
@@ -2151,17 +2151,17 @@ function Da() {
|
|
|
2151
2151
|
]);
|
|
2152
2152
|
},
|
|
2153
2153
|
_doProcessBlock: function(_, c) {
|
|
2154
|
-
for (var
|
|
2155
|
-
var f = c +
|
|
2154
|
+
for (var y = 0; y < 16; y++) {
|
|
2155
|
+
var f = c + y, b = _[f];
|
|
2156
2156
|
_[f] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
2157
2157
|
}
|
|
2158
2158
|
var C = this._hash.words, v = _[c + 0], x = _[c + 1], D = _[c + 2], M = _[c + 3], A = _[c + 4], T = _[c + 5], S = _[c + 6], F = _[c + 7], P = _[c + 8], w = _[c + 9], R = _[c + 10], L = _[c + 11], B = _[c + 12], O = _[c + 13], W = _[c + 14], z = _[c + 15], G = C[0], h = C[1], E = C[2], N = C[3];
|
|
2159
2159
|
G = o(G, h, E, N, v, 7, t[0]), N = o(N, G, h, E, x, 12, t[1]), E = o(E, N, G, h, D, 17, t[2]), h = o(h, E, N, G, M, 22, t[3]), G = o(G, h, E, N, A, 7, t[4]), N = o(N, G, h, E, T, 12, t[5]), E = o(E, N, G, h, S, 17, t[6]), h = o(h, E, N, G, F, 22, t[7]), G = o(G, h, E, N, P, 7, t[8]), N = o(N, G, h, E, w, 12, t[9]), E = o(E, N, G, h, R, 17, t[10]), h = o(h, E, N, G, L, 22, t[11]), G = o(G, h, E, N, B, 7, t[12]), N = o(N, G, h, E, O, 12, t[13]), E = o(E, N, G, h, W, 17, t[14]), h = o(h, E, N, G, z, 22, t[15]), G = s(G, h, E, N, x, 5, t[16]), N = s(N, G, h, E, S, 9, t[17]), E = s(E, N, G, h, L, 14, t[18]), h = s(h, E, N, G, v, 20, t[19]), G = s(G, h, E, N, T, 5, t[20]), N = s(N, G, h, E, R, 9, t[21]), E = s(E, N, G, h, z, 14, t[22]), h = s(h, E, N, G, A, 20, t[23]), G = s(G, h, E, N, w, 5, t[24]), N = s(N, G, h, E, W, 9, t[25]), E = s(E, N, G, h, M, 14, t[26]), h = s(h, E, N, G, P, 20, t[27]), G = s(G, h, E, N, O, 5, t[28]), N = s(N, G, h, E, D, 9, t[29]), E = s(E, N, G, h, F, 14, t[30]), h = s(h, E, N, G, B, 20, t[31]), G = p(G, h, E, N, T, 4, t[32]), N = p(N, G, h, E, P, 11, t[33]), E = p(E, N, G, h, L, 16, t[34]), h = p(h, E, N, G, W, 23, t[35]), G = p(G, h, E, N, x, 4, t[36]), N = p(N, G, h, E, A, 11, t[37]), E = p(E, N, G, h, F, 16, t[38]), h = p(h, E, N, G, R, 23, t[39]), G = p(G, h, E, N, O, 4, t[40]), N = p(N, G, h, E, v, 11, t[41]), E = p(E, N, G, h, M, 16, t[42]), h = p(h, E, N, G, S, 23, t[43]), G = p(G, h, E, N, w, 4, t[44]), N = p(N, G, h, E, B, 11, t[45]), E = p(E, N, G, h, z, 16, t[46]), h = p(h, E, N, G, D, 23, t[47]), G = m(G, h, E, N, v, 6, t[48]), N = m(N, G, h, E, F, 10, t[49]), E = m(E, N, G, h, W, 15, t[50]), h = m(h, E, N, G, T, 21, t[51]), G = m(G, h, E, N, B, 6, t[52]), N = m(N, G, h, E, M, 10, t[53]), E = m(E, N, G, h, R, 15, t[54]), h = m(h, E, N, G, x, 21, t[55]), G = m(G, h, E, N, P, 6, t[56]), N = m(N, G, h, E, z, 10, t[57]), E = m(E, N, G, h, S, 15, t[58]), h = m(h, E, N, G, O, 21, t[59]), G = m(G, h, E, N, A, 6, t[60]), N = m(N, G, h, E, L, 10, t[61]), E = m(E, N, G, h, D, 15, t[62]), h = m(h, E, N, G, w, 21, t[63]), C[0] = C[0] + G | 0, C[1] = C[1] + h | 0, C[2] = C[2] + E | 0, C[3] = C[3] + N | 0;
|
|
2160
2160
|
},
|
|
2161
2161
|
_doFinalize: function() {
|
|
2162
|
-
var _ = this._data, c = _.words,
|
|
2162
|
+
var _ = this._data, c = _.words, y = this._nDataBytes * 8, f = _.sigBytes * 8;
|
|
2163
2163
|
c[f >>> 5] |= 128 << 24 - f % 32;
|
|
2164
|
-
var b = r.floor(
|
|
2164
|
+
var b = r.floor(y / 4294967296), C = y;
|
|
2165
2165
|
c[(f + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, c[(f + 64 >>> 9 << 4) + 14] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, _.sigBytes = (c.length + 1) * 4, this._process();
|
|
2166
2166
|
for (var v = this._hash, x = v.words, D = 0; D < 4; D++) {
|
|
2167
2167
|
var M = x[D];
|
|
@@ -2174,20 +2174,20 @@ function Da() {
|
|
|
2174
2174
|
return _._hash = this._hash.clone(), _;
|
|
2175
2175
|
}
|
|
2176
2176
|
});
|
|
2177
|
-
function o(_, c,
|
|
2178
|
-
var x = _ + (c &
|
|
2177
|
+
function o(_, c, y, f, b, C, v) {
|
|
2178
|
+
var x = _ + (c & y | ~c & f) + b + v;
|
|
2179
2179
|
return (x << C | x >>> 32 - C) + c;
|
|
2180
2180
|
}
|
|
2181
|
-
function s(_, c,
|
|
2182
|
-
var x = _ + (c & f |
|
|
2181
|
+
function s(_, c, y, f, b, C, v) {
|
|
2182
|
+
var x = _ + (c & f | y & ~f) + b + v;
|
|
2183
2183
|
return (x << C | x >>> 32 - C) + c;
|
|
2184
2184
|
}
|
|
2185
|
-
function p(_, c,
|
|
2186
|
-
var x = _ + (c ^
|
|
2185
|
+
function p(_, c, y, f, b, C, v) {
|
|
2186
|
+
var x = _ + (c ^ y ^ f) + b + v;
|
|
2187
2187
|
return (x << C | x >>> 32 - C) + c;
|
|
2188
2188
|
}
|
|
2189
|
-
function m(_, c,
|
|
2190
|
-
var x = _ + (
|
|
2189
|
+
function m(_, c, y, f, b, C, v) {
|
|
2190
|
+
var x = _ + (y ^ (c | ~f)) + b + v;
|
|
2191
2191
|
return (x << C | x >>> 32 - C) + c;
|
|
2192
2192
|
}
|
|
2193
2193
|
u.MD5 = d._createHelper(i), u.HmacMD5 = d._createHmacHelper(i);
|
|
@@ -2202,7 +2202,7 @@ function tr() {
|
|
|
2202
2202
|
e.exports = r(le());
|
|
2203
2203
|
})(Tl, function(a) {
|
|
2204
2204
|
return (function() {
|
|
2205
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
2205
|
+
var r = a, u = r.lib, g = u.WordArray, U = u.Hasher, d = r.algo, l = [], t = d.SHA1 = U.extend({
|
|
2206
2206
|
_doReset: function() {
|
|
2207
2207
|
this._hash = new g.init([
|
|
2208
2208
|
1732584193,
|
|
@@ -2213,28 +2213,28 @@ function tr() {
|
|
|
2213
2213
|
]);
|
|
2214
2214
|
},
|
|
2215
2215
|
_doProcessBlock: function(i, o) {
|
|
2216
|
-
for (var s = this._hash.words, p = s[0], m = s[1], _ = s[2], c = s[3],
|
|
2216
|
+
for (var s = this._hash.words, p = s[0], m = s[1], _ = s[2], c = s[3], y = s[4], f = 0; f < 80; f++) {
|
|
2217
2217
|
if (f < 16)
|
|
2218
2218
|
l[f] = i[o + f] | 0;
|
|
2219
2219
|
else {
|
|
2220
2220
|
var b = l[f - 3] ^ l[f - 8] ^ l[f - 14] ^ l[f - 16];
|
|
2221
2221
|
l[f] = b << 1 | b >>> 31;
|
|
2222
2222
|
}
|
|
2223
|
-
var C = (p << 5 | p >>> 27) +
|
|
2224
|
-
f < 20 ? C += (m & _ | ~m & c) + 1518500249 : f < 40 ? C += (m ^ _ ^ c) + 1859775393 : f < 60 ? C += (m & _ | m & c | _ & c) - 1894007588 : C += (m ^ _ ^ c) - 899497514,
|
|
2223
|
+
var C = (p << 5 | p >>> 27) + y + l[f];
|
|
2224
|
+
f < 20 ? C += (m & _ | ~m & c) + 1518500249 : f < 40 ? C += (m ^ _ ^ c) + 1859775393 : f < 60 ? C += (m & _ | m & c | _ & c) - 1894007588 : C += (m ^ _ ^ c) - 899497514, y = c, c = _, _ = m << 30 | m >>> 2, m = p, p = C;
|
|
2225
2225
|
}
|
|
2226
|
-
s[0] = s[0] + p | 0, s[1] = s[1] + m | 0, s[2] = s[2] + _ | 0, s[3] = s[3] + c | 0, s[4] = s[4] +
|
|
2226
|
+
s[0] = s[0] + p | 0, s[1] = s[1] + m | 0, s[2] = s[2] + _ | 0, s[3] = s[3] + c | 0, s[4] = s[4] + y | 0;
|
|
2227
2227
|
},
|
|
2228
2228
|
_doFinalize: function() {
|
|
2229
2229
|
var i = this._data, o = i.words, s = this._nDataBytes * 8, p = i.sigBytes * 8;
|
|
2230
2230
|
return o[p >>> 5] |= 128 << 24 - p % 32, o[(p + 64 >>> 9 << 4) + 14] = Math.floor(s / 4294967296), o[(p + 64 >>> 9 << 4) + 15] = s, i.sigBytes = o.length * 4, this._process(), this._hash;
|
|
2231
2231
|
},
|
|
2232
2232
|
clone: function() {
|
|
2233
|
-
var i =
|
|
2233
|
+
var i = U.clone.call(this);
|
|
2234
2234
|
return i._hash = this._hash.clone(), i;
|
|
2235
2235
|
}
|
|
2236
2236
|
});
|
|
2237
|
-
r.SHA1 =
|
|
2237
|
+
r.SHA1 = U._createHelper(t), r.HmacSHA1 = U._createHmacHelper(t);
|
|
2238
2238
|
})(), a.SHA1;
|
|
2239
2239
|
});
|
|
2240
2240
|
})(vt)), vt.exports;
|
|
@@ -2246,36 +2246,36 @@ function Ui() {
|
|
|
2246
2246
|
e.exports = r(le());
|
|
2247
2247
|
})(kl, function(a) {
|
|
2248
2248
|
return (function(r) {
|
|
2249
|
-
var u = a, g = u.lib,
|
|
2249
|
+
var u = a, g = u.lib, U = g.WordArray, d = g.Hasher, l = u.algo, t = [], i = [];
|
|
2250
2250
|
(function() {
|
|
2251
|
-
function p(
|
|
2252
|
-
for (var f = r.sqrt(
|
|
2253
|
-
if (!(
|
|
2251
|
+
function p(y) {
|
|
2252
|
+
for (var f = r.sqrt(y), b = 2; b <= f; b++)
|
|
2253
|
+
if (!(y % b))
|
|
2254
2254
|
return !1;
|
|
2255
2255
|
return !0;
|
|
2256
2256
|
}
|
|
2257
|
-
function m(
|
|
2258
|
-
return (
|
|
2257
|
+
function m(y) {
|
|
2258
|
+
return (y - (y | 0)) * 4294967296 | 0;
|
|
2259
2259
|
}
|
|
2260
2260
|
for (var _ = 2, c = 0; c < 64; )
|
|
2261
2261
|
p(_) && (c < 8 && (t[c] = m(r.pow(_, 1 / 2))), i[c] = m(r.pow(_, 1 / 3)), c++), _++;
|
|
2262
2262
|
})();
|
|
2263
2263
|
var o = [], s = l.SHA256 = d.extend({
|
|
2264
2264
|
_doReset: function() {
|
|
2265
|
-
this._hash = new
|
|
2265
|
+
this._hash = new U.init(t.slice(0));
|
|
2266
2266
|
},
|
|
2267
2267
|
_doProcessBlock: function(p, m) {
|
|
2268
|
-
for (var _ = this._hash.words, c = _[0],
|
|
2268
|
+
for (var _ = this._hash.words, c = _[0], y = _[1], f = _[2], b = _[3], C = _[4], v = _[5], x = _[6], D = _[7], M = 0; M < 64; M++) {
|
|
2269
2269
|
if (M < 16)
|
|
2270
2270
|
o[M] = p[m + M] | 0;
|
|
2271
2271
|
else {
|
|
2272
2272
|
var A = o[M - 15], T = (A << 25 | A >>> 7) ^ (A << 14 | A >>> 18) ^ A >>> 3, S = o[M - 2], F = (S << 15 | S >>> 17) ^ (S << 13 | S >>> 19) ^ S >>> 10;
|
|
2273
2273
|
o[M] = T + o[M - 7] + F + o[M - 16];
|
|
2274
2274
|
}
|
|
2275
|
-
var P = C & v ^ ~C & x, w = c &
|
|
2276
|
-
D = x, x = v, v = C, C = b + B | 0, b = f, f =
|
|
2275
|
+
var P = C & v ^ ~C & x, w = c & y ^ c & f ^ y & f, R = (c << 30 | c >>> 2) ^ (c << 19 | c >>> 13) ^ (c << 10 | c >>> 22), L = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), B = D + L + P + i[M] + o[M], O = R + w;
|
|
2276
|
+
D = x, x = v, v = C, C = b + B | 0, b = f, f = y, y = c, c = B + O | 0;
|
|
2277
2277
|
}
|
|
2278
|
-
_[0] = _[0] + c | 0, _[1] = _[1] +
|
|
2278
|
+
_[0] = _[0] + c | 0, _[1] = _[1] + y | 0, _[2] = _[2] + f | 0, _[3] = _[3] + b | 0, _[4] = _[4] + C | 0, _[5] = _[5] + v | 0, _[6] = _[6] + x | 0, _[7] = _[7] + D | 0;
|
|
2279
2279
|
},
|
|
2280
2280
|
_doFinalize: function() {
|
|
2281
2281
|
var p = this._data, m = p.words, _ = this._nDataBytes * 8, c = p.sigBytes * 8;
|
|
@@ -2298,7 +2298,7 @@ function Sl() {
|
|
|
2298
2298
|
e.exports = r(le(), Ui());
|
|
2299
2299
|
})(xl, function(a) {
|
|
2300
2300
|
return (function() {
|
|
2301
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
2301
|
+
var r = a, u = r.lib, g = u.WordArray, U = r.algo, d = U.SHA256, l = U.SHA224 = d.extend({
|
|
2302
2302
|
_doReset: function() {
|
|
2303
2303
|
this._hash = new g.init([
|
|
2304
2304
|
3238371032,
|
|
@@ -2328,7 +2328,7 @@ function ir() {
|
|
|
2328
2328
|
e.exports = r(le(), ei());
|
|
2329
2329
|
})(Dl, function(a) {
|
|
2330
2330
|
return (function() {
|
|
2331
|
-
var r = a, u = r.lib, g = u.Hasher,
|
|
2331
|
+
var r = a, u = r.lib, g = u.Hasher, U = r.x64, d = U.Word, l = U.WordArray, t = r.algo;
|
|
2332
2332
|
function i() {
|
|
2333
2333
|
return d.create.apply(d, arguments);
|
|
2334
2334
|
}
|
|
@@ -2432,22 +2432,22 @@ function ir() {
|
|
|
2432
2432
|
]);
|
|
2433
2433
|
},
|
|
2434
2434
|
_doProcessBlock: function(m, _) {
|
|
2435
|
-
for (var c = this._hash.words,
|
|
2435
|
+
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], x = c[5], D = c[6], M = c[7], A = y.high, T = y.low, S = f.high, F = f.low, P = b.high, w = b.low, R = C.high, L = C.low, B = v.high, O = v.low, W = x.high, z = x.low, G = D.high, h = D.low, E = M.high, N = M.low, V = A, $ = T, Z = S, K = F, X = P, re = w, Ue = R, be = L, ge = B, _e = O, Se = W, ue = z, we = G, ce = h, Ce = E, Je = N, Fe = 0; Fe < 80; Fe++) {
|
|
2436
2436
|
var he, Ie, ta = s[Fe];
|
|
2437
2437
|
if (Fe < 16)
|
|
2438
2438
|
Ie = ta.high = m[_ + Fe * 2] | 0, he = ta.low = m[_ + Fe * 2 + 1] | 0;
|
|
2439
2439
|
else {
|
|
2440
|
-
var ia = s[Fe - 15], De = ia.high, Ae = ia.low, Xe = (De >>> 1 | Ae << 31) ^ (De >>> 8 | Ae << 24) ^ De >>> 7, oa = (Ae >>> 1 | De << 31) ^ (Ae >>> 8 | De << 24) ^ (Ae >>> 7 | De << 25), ga = s[Fe - 2], Ze = ga.high, ea = ga.low,
|
|
2441
|
-
he = oa +
|
|
2440
|
+
var ia = s[Fe - 15], De = ia.high, Ae = ia.low, Xe = (De >>> 1 | Ae << 31) ^ (De >>> 8 | Ae << 24) ^ De >>> 7, oa = (Ae >>> 1 | De << 31) ^ (Ae >>> 8 | De << 24) ^ (Ae >>> 7 | De << 25), ga = s[Fe - 2], Ze = ga.high, ea = ga.low, Ja = (Ze >>> 19 | ea << 13) ^ (Ze << 3 | ea >>> 29) ^ Ze >>> 6, Na = (ea >>> 19 | Ze << 13) ^ (ea << 3 | Ze >>> 29) ^ (ea >>> 6 | Ze << 26), La = s[Fe - 7], Za = La.high, Ka = La.low, da = s[Fe - 16], ya = da.high, Qe = da.low;
|
|
2441
|
+
he = oa + Ka, Ie = Xe + Za + (he >>> 0 < oa >>> 0 ? 1 : 0), he = he + Na, Ie = Ie + Ja + (he >>> 0 < Na >>> 0 ? 1 : 0), he = he + Qe, Ie = Ie + ya + (he >>> 0 < Qe >>> 0 ? 1 : 0), ta.high = Ie, ta.low = he;
|
|
2442
2442
|
}
|
|
2443
2443
|
var ca = ge & Se ^ ~ge & we, fa = _e & ue ^ ~_e & ce, Ga = V & Z ^ V & X ^ Z & X, Ma = $ & K ^ $ & re ^ K & re, Ua = (V >>> 28 | $ << 4) ^ (V << 30 | $ >>> 2) ^ (V << 25 | $ >>> 7), Ra = ($ >>> 28 | V << 4) ^ ($ << 30 | V >>> 2) ^ ($ << 25 | V >>> 7), Pa = (ge >>> 14 | _e << 18) ^ (ge >>> 18 | _e << 14) ^ (ge << 23 | _e >>> 9), Ee = (_e >>> 14 | ge << 18) ^ (_e >>> 18 | ge << 14) ^ (_e << 23 | ge >>> 9), J = o[Fe], Ne = J.high, na = J.low, Oe = Je + Ee, ra = Ce + Pa + (Oe >>> 0 < Je >>> 0 ? 1 : 0), Oe = Oe + fa, ra = ra + ca + (Oe >>> 0 < fa >>> 0 ? 1 : 0), Oe = Oe + na, ra = ra + Ne + (Oe >>> 0 < na >>> 0 ? 1 : 0), Oe = Oe + he, ra = ra + Ie + (Oe >>> 0 < he >>> 0 ? 1 : 0), nt = Ra + Ma, ai = Ua + Ga + (nt >>> 0 < Ra >>> 0 ? 1 : 0);
|
|
2444
2444
|
Ce = we, Je = ce, we = Se, ce = ue, Se = ge, ue = _e, _e = be + Oe | 0, ge = Ue + ra + (_e >>> 0 < be >>> 0 ? 1 : 0) | 0, Ue = X, be = re, X = Z, re = K, Z = V, K = $, $ = Oe + nt | 0, V = ra + ai + ($ >>> 0 < Oe >>> 0 ? 1 : 0) | 0;
|
|
2445
2445
|
}
|
|
2446
|
-
T =
|
|
2446
|
+
T = y.low = T + $, y.high = A + V + (T >>> 0 < $ >>> 0 ? 1 : 0), F = f.low = F + K, f.high = S + Z + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + re, b.high = P + X + (w >>> 0 < re >>> 0 ? 1 : 0), L = C.low = L + be, C.high = R + Ue + (L >>> 0 < be >>> 0 ? 1 : 0), O = v.low = O + _e, v.high = B + ge + (O >>> 0 < _e >>> 0 ? 1 : 0), z = x.low = z + ue, x.high = W + Se + (z >>> 0 < ue >>> 0 ? 1 : 0), h = D.low = h + ce, D.high = G + we + (h >>> 0 < ce >>> 0 ? 1 : 0), N = M.low = N + Je, M.high = E + Ce + (N >>> 0 < Je >>> 0 ? 1 : 0);
|
|
2447
2447
|
},
|
|
2448
2448
|
_doFinalize: function() {
|
|
2449
|
-
var m = this._data, _ = m.words, c = this._nDataBytes * 8,
|
|
2450
|
-
_[
|
|
2449
|
+
var m = this._data, _ = m.words, c = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
2450
|
+
_[y >>> 5] |= 128 << 24 - y % 32, _[(y + 128 >>> 10 << 5) + 30] = Math.floor(c / 4294967296), _[(y + 128 >>> 10 << 5) + 31] = c, m.sigBytes = _.length * 4, this._process();
|
|
2451
2451
|
var f = this._hash.toX32();
|
|
2452
2452
|
return f;
|
|
2453
2453
|
},
|
|
@@ -2469,9 +2469,9 @@ function Nl() {
|
|
|
2469
2469
|
e.exports = r(le(), ei(), ir());
|
|
2470
2470
|
})(El, function(a) {
|
|
2471
2471
|
return (function() {
|
|
2472
|
-
var r = a, u = r.x64, g = u.Word,
|
|
2472
|
+
var r = a, u = r.x64, g = u.Word, U = u.WordArray, d = r.algo, l = d.SHA512, t = d.SHA384 = l.extend({
|
|
2473
2473
|
_doReset: function() {
|
|
2474
|
-
this._hash = new
|
|
2474
|
+
this._hash = new U.init([
|
|
2475
2475
|
new g.init(3418070365, 3238371032),
|
|
2476
2476
|
new g.init(1654270250, 914150663),
|
|
2477
2477
|
new g.init(2438529370, 812702999),
|
|
@@ -2499,16 +2499,16 @@ function Gl() {
|
|
|
2499
2499
|
e.exports = r(le(), ei());
|
|
2500
2500
|
})(Ll, function(a) {
|
|
2501
2501
|
return (function(r) {
|
|
2502
|
-
var u = a, g = u.lib,
|
|
2502
|
+
var u = a, g = u.lib, U = g.WordArray, d = g.Hasher, l = u.x64, t = l.Word, i = u.algo, o = [], s = [], p = [];
|
|
2503
2503
|
(function() {
|
|
2504
|
-
for (var c = 1,
|
|
2505
|
-
o[c + 5 *
|
|
2506
|
-
var b =
|
|
2507
|
-
c = b,
|
|
2504
|
+
for (var c = 1, y = 0, f = 0; f < 24; f++) {
|
|
2505
|
+
o[c + 5 * y] = (f + 1) * (f + 2) / 2 % 64;
|
|
2506
|
+
var b = y % 5, C = (2 * c + 3 * y) % 5;
|
|
2507
|
+
c = b, y = C;
|
|
2508
2508
|
}
|
|
2509
2509
|
for (var c = 0; c < 5; c++)
|
|
2510
|
-
for (var
|
|
2511
|
-
s[c + 5 *
|
|
2510
|
+
for (var y = 0; y < 5; y++)
|
|
2511
|
+
s[c + 5 * y] = y + (2 * c + 3 * y) % 5 * 5;
|
|
2512
2512
|
for (var v = 1, x = 0; x < 24; x++) {
|
|
2513
2513
|
for (var D = 0, M = 0, A = 0; A < 7; A++) {
|
|
2514
2514
|
if (v & 1) {
|
|
@@ -2538,13 +2538,13 @@ function Gl() {
|
|
|
2538
2538
|
outputLength: 512
|
|
2539
2539
|
}),
|
|
2540
2540
|
_doReset: function() {
|
|
2541
|
-
for (var c = this._state = [],
|
|
2542
|
-
c[
|
|
2541
|
+
for (var c = this._state = [], y = 0; y < 25; y++)
|
|
2542
|
+
c[y] = new t.init();
|
|
2543
2543
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2544
2544
|
},
|
|
2545
|
-
_doProcessBlock: function(c,
|
|
2545
|
+
_doProcessBlock: function(c, y) {
|
|
2546
2546
|
for (var f = this._state, b = this.blockSize / 2, C = 0; C < b; C++) {
|
|
2547
|
-
var v = c[
|
|
2547
|
+
var v = c[y + 2 * C], x = c[y + 2 * C + 1];
|
|
2548
2548
|
v = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
2549
2549
|
var D = f[C];
|
|
2550
2550
|
D.high ^= x, D.low ^= v;
|
|
@@ -2581,19 +2581,19 @@ function Gl() {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
},
|
|
2583
2583
|
_doFinalize: function() {
|
|
2584
|
-
var c = this._data,
|
|
2584
|
+
var c = this._data, y = c.words;
|
|
2585
2585
|
this._nDataBytes * 8;
|
|
2586
2586
|
var f = c.sigBytes * 8, b = this.blockSize * 32;
|
|
2587
|
-
|
|
2587
|
+
y[f >>> 5] |= 1 << 24 - f % 32, y[(r.ceil((f + 1) / b) * b >>> 5) - 1] |= 128, c.sigBytes = y.length * 4, this._process();
|
|
2588
2588
|
for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, D = [], M = 0; M < x; M++) {
|
|
2589
2589
|
var A = C[M], T = A.high, S = A.low;
|
|
2590
2590
|
T = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, S = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, D.push(S), D.push(T);
|
|
2591
2591
|
}
|
|
2592
|
-
return new
|
|
2592
|
+
return new U.init(D, v);
|
|
2593
2593
|
},
|
|
2594
2594
|
clone: function() {
|
|
2595
|
-
for (var c = d.clone.call(this),
|
|
2596
|
-
|
|
2595
|
+
for (var c = d.clone.call(this), y = c._state = this._state.slice(0), f = 0; f < 25; f++)
|
|
2596
|
+
y[f] = y[f].clone();
|
|
2597
2597
|
return c;
|
|
2598
2598
|
}
|
|
2599
2599
|
});
|
|
@@ -2609,7 +2609,7 @@ function Rl() {
|
|
|
2609
2609
|
e.exports = r(le());
|
|
2610
2610
|
})(Ml, function(a) {
|
|
2611
2611
|
return (function(r) {
|
|
2612
|
-
var u = a, g = u.lib,
|
|
2612
|
+
var u = a, g = u.lib, U = g.WordArray, d = g.Hasher, l = u.algo, t = U.create([
|
|
2613
2613
|
0,
|
|
2614
2614
|
1,
|
|
2615
2615
|
2,
|
|
@@ -2690,7 +2690,7 @@ function Rl() {
|
|
|
2690
2690
|
6,
|
|
2691
2691
|
15,
|
|
2692
2692
|
13
|
|
2693
|
-
]), i =
|
|
2693
|
+
]), i = U.create([
|
|
2694
2694
|
5,
|
|
2695
2695
|
14,
|
|
2696
2696
|
7,
|
|
@@ -2771,7 +2771,7 @@ function Rl() {
|
|
|
2771
2771
|
3,
|
|
2772
2772
|
9,
|
|
2773
2773
|
11
|
|
2774
|
-
]), o =
|
|
2774
|
+
]), o = U.create([
|
|
2775
2775
|
11,
|
|
2776
2776
|
14,
|
|
2777
2777
|
15,
|
|
@@ -2852,7 +2852,7 @@ function Rl() {
|
|
|
2852
2852
|
8,
|
|
2853
2853
|
5,
|
|
2854
2854
|
6
|
|
2855
|
-
]), s =
|
|
2855
|
+
]), s = U.create([
|
|
2856
2856
|
8,
|
|
2857
2857
|
9,
|
|
2858
2858
|
9,
|
|
@@ -2933,9 +2933,9 @@ function Rl() {
|
|
|
2933
2933
|
13,
|
|
2934
2934
|
11,
|
|
2935
2935
|
11
|
|
2936
|
-
]), p =
|
|
2936
|
+
]), p = U.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = U.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), _ = l.RIPEMD160 = d.extend({
|
|
2937
2937
|
_doReset: function() {
|
|
2938
|
-
this._hash =
|
|
2938
|
+
this._hash = U.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2939
2939
|
},
|
|
2940
2940
|
_doProcessBlock: function(x, D) {
|
|
2941
2941
|
for (var M = 0; M < 16; M++) {
|
|
@@ -2945,7 +2945,7 @@ function Rl() {
|
|
|
2945
2945
|
var S = this._hash.words, F = p.words, P = m.words, w = t.words, R = i.words, L = o.words, B = s.words, O, W, z, G, h, E, N, V, $, Z;
|
|
2946
2946
|
E = O = S[0], N = W = S[1], V = z = S[2], $ = G = S[3], Z = h = S[4];
|
|
2947
2947
|
for (var K, M = 0; M < 80; M += 1)
|
|
2948
|
-
K = O + x[D + w[M]] | 0, M < 16 ? K += c(W, z, G) + F[0] : M < 32 ? K +=
|
|
2948
|
+
K = O + x[D + w[M]] | 0, M < 16 ? K += c(W, z, G) + F[0] : M < 32 ? K += y(W, z, G) + F[1] : M < 48 ? K += f(W, z, G) + F[2] : M < 64 ? K += b(W, z, G) + F[3] : K += C(W, z, G) + F[4], K = K | 0, K = v(K, L[M]), K = K + h | 0, O = h, h = G, G = v(z, 10), z = W, W = K, K = E + x[D + R[M]] | 0, M < 16 ? K += C(N, V, $) + P[0] : M < 32 ? K += b(N, V, $) + P[1] : M < 48 ? K += f(N, V, $) + P[2] : M < 64 ? K += y(N, V, $) + P[3] : K += c(N, V, $) + P[4], K = K | 0, K = v(K, B[M]), K = K + Z | 0, E = Z, Z = $, $ = v(V, 10), V = N, N = K;
|
|
2949
2949
|
K = S[1] + z + $ | 0, S[1] = S[2] + G + Z | 0, S[2] = S[3] + h + E | 0, S[3] = S[4] + O + N | 0, S[4] = S[0] + W + V | 0, S[0] = K;
|
|
2950
2950
|
},
|
|
2951
2951
|
_doFinalize: function() {
|
|
@@ -2965,7 +2965,7 @@ function Rl() {
|
|
|
2965
2965
|
function c(x, D, M) {
|
|
2966
2966
|
return x ^ D ^ M;
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2968
|
+
function y(x, D, M) {
|
|
2969
2969
|
return x & D | ~x & M;
|
|
2970
2970
|
}
|
|
2971
2971
|
function f(x, D, M) {
|
|
@@ -2992,7 +2992,7 @@ function bi() {
|
|
|
2992
2992
|
e.exports = r(le());
|
|
2993
2993
|
})(Pl, function(a) {
|
|
2994
2994
|
(function() {
|
|
2995
|
-
var r = a, u = r.lib, g = u.Base,
|
|
2995
|
+
var r = a, u = r.lib, g = u.Base, U = r.enc, d = U.Utf8, l = r.algo;
|
|
2996
2996
|
l.HMAC = g.extend({
|
|
2997
2997
|
/**
|
|
2998
2998
|
* Initializes a newly created HMAC.
|
|
@@ -3008,8 +3008,8 @@ function bi() {
|
|
|
3008
3008
|
t = this._hasher = new t.init(), typeof i == "string" && (i = d.parse(i));
|
|
3009
3009
|
var o = t.blockSize, s = o * 4;
|
|
3010
3010
|
i.sigBytes > s && (i = t.finalize(i)), i.clamp();
|
|
3011
|
-
for (var p = this._oKey = i.clone(), m = this._iKey = i.clone(), _ = p.words, c = m.words,
|
|
3012
|
-
_[
|
|
3011
|
+
for (var p = this._oKey = i.clone(), m = this._iKey = i.clone(), _ = p.words, c = m.words, y = 0; y < o; y++)
|
|
3012
|
+
_[y] ^= 1549556828, c[y] ^= 909522486;
|
|
3013
3013
|
p.sigBytes = m.sigBytes = s, this.reset();
|
|
3014
3014
|
},
|
|
3015
3015
|
/**
|
|
@@ -3070,7 +3070,7 @@ function Fl() {
|
|
|
3070
3070
|
e.exports = r(le(), Ui(), bi());
|
|
3071
3071
|
})(wl, function(a) {
|
|
3072
3072
|
return (function() {
|
|
3073
|
-
var r = a, u = r.lib, g = u.Base,
|
|
3073
|
+
var r = a, u = r.lib, g = u.Base, U = u.WordArray, d = r.algo, l = d.SHA256, t = d.HMAC, i = d.PBKDF2 = g.extend({
|
|
3074
3074
|
/**
|
|
3075
3075
|
* Configuration options.
|
|
3076
3076
|
*
|
|
@@ -3110,7 +3110,7 @@ function Fl() {
|
|
|
3110
3110
|
* var key = kdf.compute(password, salt);
|
|
3111
3111
|
*/
|
|
3112
3112
|
compute: function(o, s) {
|
|
3113
|
-
for (var p = this.cfg, m = t.create(p.hasher, o), _ =
|
|
3113
|
+
for (var p = this.cfg, m = t.create(p.hasher, o), _ = U.create(), c = U.create([1]), y = _.words, f = c.words, b = p.keySize, C = p.iterations; y.length < b; ) {
|
|
3114
3114
|
var v = m.update(s).finalize(c);
|
|
3115
3115
|
m.reset();
|
|
3116
3116
|
for (var x = v.words, D = x.length, M = v, A = 1; A < C; A++) {
|
|
@@ -3137,7 +3137,7 @@ function _a() {
|
|
|
3137
3137
|
e.exports = r(le(), tr(), bi());
|
|
3138
3138
|
})(Al, function(a) {
|
|
3139
3139
|
return (function() {
|
|
3140
|
-
var r = a, u = r.lib, g = u.Base,
|
|
3140
|
+
var r = a, u = r.lib, g = u.Base, U = u.WordArray, d = r.algo, l = d.MD5, t = d.EvpKDF = g.extend({
|
|
3141
3141
|
/**
|
|
3142
3142
|
* Configuration options.
|
|
3143
3143
|
*
|
|
@@ -3177,13 +3177,13 @@ function _a() {
|
|
|
3177
3177
|
* var key = kdf.compute(password, salt);
|
|
3178
3178
|
*/
|
|
3179
3179
|
compute: function(i, o) {
|
|
3180
|
-
for (var s, p = this.cfg, m = p.hasher.create(), _ =
|
|
3180
|
+
for (var s, p = this.cfg, m = p.hasher.create(), _ = U.create(), c = _.words, y = p.keySize, f = p.iterations; c.length < y; ) {
|
|
3181
3181
|
s && m.update(s), s = m.update(i).finalize(o), m.reset();
|
|
3182
3182
|
for (var b = 1; b < f; b++)
|
|
3183
3183
|
s = m.finalize(s), m.reset();
|
|
3184
3184
|
_.concat(s);
|
|
3185
3185
|
}
|
|
3186
|
-
return _.sigBytes =
|
|
3186
|
+
return _.sigBytes = y * 4, _;
|
|
3187
3187
|
}
|
|
3188
3188
|
});
|
|
3189
3189
|
r.EvpKDF = function(i, o, s) {
|
|
@@ -3200,7 +3200,7 @@ function Me() {
|
|
|
3200
3200
|
e.exports = r(le(), _a());
|
|
3201
3201
|
})(Ol, function(a) {
|
|
3202
3202
|
a.lib.Cipher || (function(r) {
|
|
3203
|
-
var u = a, g = u.lib,
|
|
3203
|
+
var u = a, g = u.lib, U = g.Base, d = g.WordArray, l = g.BufferedBlockAlgorithm, t = u.enc;
|
|
3204
3204
|
t.Utf8;
|
|
3205
3205
|
var i = t.Base64, o = u.algo, s = o.EvpKDF, p = g.Cipher = l.extend({
|
|
3206
3206
|
/**
|
|
@@ -3208,7 +3208,7 @@ function Me() {
|
|
|
3208
3208
|
*
|
|
3209
3209
|
* @property {WordArray} iv The IV to use for this operation.
|
|
3210
3210
|
*/
|
|
3211
|
-
cfg:
|
|
3211
|
+
cfg: U.extend(),
|
|
3212
3212
|
/**
|
|
3213
3213
|
* Creates this cipher in encryption mode.
|
|
3214
3214
|
*
|
|
@@ -3341,7 +3341,7 @@ function Me() {
|
|
|
3341
3341
|
},
|
|
3342
3342
|
blockSize: 1
|
|
3343
3343
|
});
|
|
3344
|
-
var m = u.mode = {}, _ = g.BlockCipherMode =
|
|
3344
|
+
var m = u.mode = {}, _ = g.BlockCipherMode = U.extend({
|
|
3345
3345
|
/**
|
|
3346
3346
|
* Creates this mode for encryption.
|
|
3347
3347
|
*
|
|
@@ -3425,7 +3425,7 @@ function Me() {
|
|
|
3425
3425
|
F[P + B] ^= R[B];
|
|
3426
3426
|
}
|
|
3427
3427
|
return T;
|
|
3428
|
-
})(),
|
|
3428
|
+
})(), y = u.pad = {}, f = y.Pkcs7 = {
|
|
3429
3429
|
/**
|
|
3430
3430
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3431
3431
|
*
|
|
@@ -3486,7 +3486,7 @@ function Me() {
|
|
|
3486
3486
|
},
|
|
3487
3487
|
blockSize: 128 / 32
|
|
3488
3488
|
});
|
|
3489
|
-
var b = g.CipherParams =
|
|
3489
|
+
var b = g.CipherParams = U.extend({
|
|
3490
3490
|
/**
|
|
3491
3491
|
* Initializes a newly created cipher params object.
|
|
3492
3492
|
*
|
|
@@ -3562,13 +3562,13 @@ function Me() {
|
|
|
3562
3562
|
var S, F = i.parse(T), P = F.words;
|
|
3563
3563
|
return P[0] == 1398893684 && P[1] == 1701076831 && (S = d.create(P.slice(2, 4)), P.splice(0, 4), F.sigBytes -= 16), b.create({ ciphertext: F, salt: S });
|
|
3564
3564
|
}
|
|
3565
|
-
}, x = g.SerializableCipher =
|
|
3565
|
+
}, x = g.SerializableCipher = U.extend({
|
|
3566
3566
|
/**
|
|
3567
3567
|
* Configuration options.
|
|
3568
3568
|
*
|
|
3569
3569
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3570
3570
|
*/
|
|
3571
|
-
cfg:
|
|
3571
|
+
cfg: U.extend({
|
|
3572
3572
|
format: v
|
|
3573
3573
|
}),
|
|
3574
3574
|
/**
|
|
@@ -3740,21 +3740,21 @@ function Hl() {
|
|
|
3740
3740
|
return a.mode.CFB = (function() {
|
|
3741
3741
|
var r = a.lib.BlockCipherMode.extend();
|
|
3742
3742
|
r.Encryptor = r.extend({
|
|
3743
|
-
processBlock: function(g,
|
|
3743
|
+
processBlock: function(g, U) {
|
|
3744
3744
|
var d = this._cipher, l = d.blockSize;
|
|
3745
|
-
u.call(this, g,
|
|
3745
|
+
u.call(this, g, U, l, d), this._prevBlock = g.slice(U, U + l);
|
|
3746
3746
|
}
|
|
3747
3747
|
}), r.Decryptor = r.extend({
|
|
3748
|
-
processBlock: function(g,
|
|
3749
|
-
var d = this._cipher, l = d.blockSize, t = g.slice(
|
|
3750
|
-
u.call(this, g,
|
|
3748
|
+
processBlock: function(g, U) {
|
|
3749
|
+
var d = this._cipher, l = d.blockSize, t = g.slice(U, U + l);
|
|
3750
|
+
u.call(this, g, U, l, d), this._prevBlock = t;
|
|
3751
3751
|
}
|
|
3752
3752
|
});
|
|
3753
|
-
function u(g,
|
|
3753
|
+
function u(g, U, d, l) {
|
|
3754
3754
|
var t, i = this._iv;
|
|
3755
3755
|
i ? (t = i.slice(0), this._iv = void 0) : t = this._prevBlock, l.encryptBlock(t, 0);
|
|
3756
3756
|
for (var o = 0; o < d; o++)
|
|
3757
|
-
g[
|
|
3757
|
+
g[U + o] ^= t[o];
|
|
3758
3758
|
}
|
|
3759
3759
|
return r;
|
|
3760
3760
|
})(), a.mode.CFB;
|
|
@@ -3769,13 +3769,13 @@ function zl() {
|
|
|
3769
3769
|
})(Wl, function(a) {
|
|
3770
3770
|
return a.mode.CTR = (function() {
|
|
3771
3771
|
var r = a.lib.BlockCipherMode.extend(), u = r.Encryptor = r.extend({
|
|
3772
|
-
processBlock: function(g,
|
|
3772
|
+
processBlock: function(g, U) {
|
|
3773
3773
|
var d = this._cipher, l = d.blockSize, t = this._iv, i = this._counter;
|
|
3774
3774
|
t && (i = this._counter = t.slice(0), this._iv = void 0);
|
|
3775
3775
|
var o = i.slice(0);
|
|
3776
3776
|
d.encryptBlock(o, 0), i[l - 1] = i[l - 1] + 1 | 0;
|
|
3777
3777
|
for (var s = 0; s < l; s++)
|
|
3778
|
-
g[
|
|
3778
|
+
g[U + s] ^= o[s];
|
|
3779
3779
|
}
|
|
3780
3780
|
});
|
|
3781
3781
|
return r.Decryptor = u, r;
|
|
@@ -3802,7 +3802,7 @@ function Vl() {
|
|
|
3802
3802
|
function g(d) {
|
|
3803
3803
|
return (d[0] = u(d[0])) === 0 && (d[1] = u(d[1])), d;
|
|
3804
3804
|
}
|
|
3805
|
-
var
|
|
3805
|
+
var U = r.Encryptor = r.extend({
|
|
3806
3806
|
processBlock: function(d, l) {
|
|
3807
3807
|
var t = this._cipher, i = t.blockSize, o = this._iv, s = this._counter;
|
|
3808
3808
|
o && (s = this._counter = o.slice(0), this._iv = void 0), g(s);
|
|
@@ -3812,7 +3812,7 @@ function Vl() {
|
|
|
3812
3812
|
d[l + m] ^= p[m];
|
|
3813
3813
|
}
|
|
3814
3814
|
});
|
|
3815
|
-
return r.Decryptor =
|
|
3815
|
+
return r.Decryptor = U, r;
|
|
3816
3816
|
})(), a.mode.CTRGladman;
|
|
3817
3817
|
});
|
|
3818
3818
|
})(Pt)), Pt.exports;
|
|
@@ -3825,11 +3825,11 @@ function Zl() {
|
|
|
3825
3825
|
})(Jl, function(a) {
|
|
3826
3826
|
return a.mode.OFB = (function() {
|
|
3827
3827
|
var r = a.lib.BlockCipherMode.extend(), u = r.Encryptor = r.extend({
|
|
3828
|
-
processBlock: function(g,
|
|
3828
|
+
processBlock: function(g, U) {
|
|
3829
3829
|
var d = this._cipher, l = d.blockSize, t = this._iv, i = this._keystream;
|
|
3830
3830
|
t && (i = this._keystream = t.slice(0), this._iv = void 0), d.encryptBlock(i, 0);
|
|
3831
3831
|
for (var o = 0; o < l; o++)
|
|
3832
|
-
g[
|
|
3832
|
+
g[U + o] ^= i[o];
|
|
3833
3833
|
}
|
|
3834
3834
|
});
|
|
3835
3835
|
return r.Decryptor = u, r;
|
|
@@ -3866,7 +3866,7 @@ function Ql() {
|
|
|
3866
3866
|
})($l, function(a) {
|
|
3867
3867
|
return a.pad.AnsiX923 = {
|
|
3868
3868
|
pad: function(r, u) {
|
|
3869
|
-
var g = r.sigBytes,
|
|
3869
|
+
var g = r.sigBytes, U = u * 4, d = U - g % U, l = g + d - 1;
|
|
3870
3870
|
r.clamp(), r.words[l >>> 2] |= d << 24 - l % 4 * 8, r.sigBytes += d;
|
|
3871
3871
|
},
|
|
3872
3872
|
unpad: function(r) {
|
|
@@ -3885,8 +3885,8 @@ function Yl() {
|
|
|
3885
3885
|
})(jl, function(a) {
|
|
3886
3886
|
return a.pad.Iso10126 = {
|
|
3887
3887
|
pad: function(r, u) {
|
|
3888
|
-
var g = u * 4,
|
|
3889
|
-
r.concat(a.lib.WordArray.random(
|
|
3888
|
+
var g = u * 4, U = g - r.sigBytes % g;
|
|
3889
|
+
r.concat(a.lib.WordArray.random(U - 1)).concat(a.lib.WordArray.create([U << 24], 1));
|
|
3890
3890
|
},
|
|
3891
3891
|
unpad: function(r) {
|
|
3892
3892
|
var u = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3957,7 +3957,7 @@ function lo() {
|
|
|
3957
3957
|
e.exports = r(le(), Me());
|
|
3958
3958
|
})(ro, function(a) {
|
|
3959
3959
|
return (function(r) {
|
|
3960
|
-
var u = a, g = u.lib,
|
|
3960
|
+
var u = a, g = u.lib, U = g.CipherParams, d = u.enc, l = d.Hex, t = u.format;
|
|
3961
3961
|
t.Hex = {
|
|
3962
3962
|
/**
|
|
3963
3963
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3990,7 +3990,7 @@ function lo() {
|
|
|
3990
3990
|
*/
|
|
3991
3991
|
parse: function(i) {
|
|
3992
3992
|
var o = l.parse(i);
|
|
3993
|
-
return
|
|
3993
|
+
return U.create({ ciphertext: o });
|
|
3994
3994
|
}
|
|
3995
3995
|
};
|
|
3996
3996
|
})(), a.format.Hex;
|
|
@@ -4004,7 +4004,7 @@ function so() {
|
|
|
4004
4004
|
e.exports = r(le(), Sa(), Da(), _a(), Me());
|
|
4005
4005
|
})(oo, function(a) {
|
|
4006
4006
|
return (function() {
|
|
4007
|
-
var r = a, u = r.lib, g = u.BlockCipher,
|
|
4007
|
+
var r = a, u = r.lib, g = u.BlockCipher, U = r.algo, d = [], l = [], t = [], i = [], o = [], s = [], p = [], m = [], _ = [], c = [];
|
|
4008
4008
|
(function() {
|
|
4009
4009
|
for (var b = [], C = 0; C < 256; C++)
|
|
4010
4010
|
C < 128 ? b[C] = C << 1 : b[C] = C << 1 ^ 283;
|
|
@@ -4017,12 +4017,12 @@ function so() {
|
|
|
4017
4017
|
p[D] = S << 24 | S >>> 8, m[D] = S << 16 | S >>> 16, _[D] = S << 8 | S >>> 24, c[D] = S, v ? (v = M ^ b[b[b[T ^ M]]], x ^= b[b[x]]) : v = x = 1;
|
|
4018
4018
|
}
|
|
4019
4019
|
})();
|
|
4020
|
-
var
|
|
4020
|
+
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], f = U.AES = g.extend({
|
|
4021
4021
|
_doReset: function() {
|
|
4022
4022
|
var b;
|
|
4023
4023
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
4024
4024
|
for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, D = this._nRounds = x + 6, M = (D + 1) * 4, A = this._keySchedule = [], T = 0; T < M; T++)
|
|
4025
|
-
T < x ? A[T] = v[T] : (b = A[T - 1], T % x ? x > 6 && T % x == 4 && (b = d[b >>> 24] << 24 | d[b >>> 16 & 255] << 16 | d[b >>> 8 & 255] << 8 | d[b & 255]) : (b = b << 8 | b >>> 24, b = d[b >>> 24] << 24 | d[b >>> 16 & 255] << 16 | d[b >>> 8 & 255] << 8 | d[b & 255], b ^=
|
|
4025
|
+
T < x ? A[T] = v[T] : (b = A[T - 1], T % x ? x > 6 && T % x == 4 && (b = d[b >>> 24] << 24 | d[b >>> 16 & 255] << 16 | d[b >>> 8 & 255] << 8 | d[b & 255]) : (b = b << 8 | b >>> 24, b = d[b >>> 24] << 24 | d[b >>> 16 & 255] << 16 | d[b >>> 8 & 255] << 8 | d[b & 255], b ^= y[T / x | 0] << 24), A[T] = A[T - x] ^ b);
|
|
4026
4026
|
for (var S = this._invKeySchedule = [], F = 0; F < M; F++) {
|
|
4027
4027
|
var T = M - F;
|
|
4028
4028
|
if (F % 4)
|
|
@@ -4064,7 +4064,7 @@ function uo() {
|
|
|
4064
4064
|
e.exports = r(le(), Sa(), Da(), _a(), Me());
|
|
4065
4065
|
})(mo, function(a) {
|
|
4066
4066
|
return (function() {
|
|
4067
|
-
var r = a, u = r.lib, g = u.WordArray,
|
|
4067
|
+
var r = a, u = r.lib, g = u.WordArray, U = u.BlockCipher, d = r.algo, l = [
|
|
4068
4068
|
57,
|
|
4069
4069
|
49,
|
|
4070
4070
|
41,
|
|
@@ -4708,9 +4708,9 @@ function uo() {
|
|
|
4708
4708
|
8064,
|
|
4709
4709
|
504,
|
|
4710
4710
|
2147483679
|
|
4711
|
-
], p = d.DES =
|
|
4711
|
+
], p = d.DES = U.extend({
|
|
4712
4712
|
_doReset: function() {
|
|
4713
|
-
for (var
|
|
4713
|
+
for (var y = this._key, f = y.words, b = [], C = 0; C < 56; C++) {
|
|
4714
4714
|
var v = l[C] - 1;
|
|
4715
4715
|
b[C] = f[v >>> 5] >>> 31 - v % 32 & 1;
|
|
4716
4716
|
}
|
|
@@ -4725,54 +4725,54 @@ function uo() {
|
|
|
4725
4725
|
for (var T = this._invSubKeys = [], C = 0; C < 16; C++)
|
|
4726
4726
|
T[C] = x[15 - C];
|
|
4727
4727
|
},
|
|
4728
|
-
encryptBlock: function(
|
|
4729
|
-
this._doCryptBlock(
|
|
4728
|
+
encryptBlock: function(y, f) {
|
|
4729
|
+
this._doCryptBlock(y, f, this._subKeys);
|
|
4730
4730
|
},
|
|
4731
|
-
decryptBlock: function(
|
|
4732
|
-
this._doCryptBlock(
|
|
4731
|
+
decryptBlock: function(y, f) {
|
|
4732
|
+
this._doCryptBlock(y, f, this._invSubKeys);
|
|
4733
4733
|
},
|
|
4734
|
-
_doCryptBlock: function(
|
|
4735
|
-
this._lBlock =
|
|
4734
|
+
_doCryptBlock: function(y, f, b) {
|
|
4735
|
+
this._lBlock = y[f], this._rBlock = y[f + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), _.call(this, 2, 858993459), _.call(this, 8, 16711935), m.call(this, 1, 1431655765);
|
|
4736
4736
|
for (var C = 0; C < 16; C++) {
|
|
4737
4737
|
for (var v = b[C], x = this._lBlock, D = this._rBlock, M = 0, A = 0; A < 8; A++)
|
|
4738
4738
|
M |= o[A][((D ^ v[A]) & s[A]) >>> 0];
|
|
4739
4739
|
this._lBlock = D, this._rBlock = x ^ M;
|
|
4740
4740
|
}
|
|
4741
4741
|
var T = this._lBlock;
|
|
4742
|
-
this._lBlock = this._rBlock, this._rBlock = T, m.call(this, 1, 1431655765), _.call(this, 8, 16711935), _.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135),
|
|
4742
|
+
this._lBlock = this._rBlock, this._rBlock = T, m.call(this, 1, 1431655765), _.call(this, 8, 16711935), _.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), y[f] = this._lBlock, y[f + 1] = this._rBlock;
|
|
4743
4743
|
},
|
|
4744
4744
|
keySize: 64 / 32,
|
|
4745
4745
|
ivSize: 64 / 32,
|
|
4746
4746
|
blockSize: 64 / 32
|
|
4747
4747
|
});
|
|
4748
|
-
function m(
|
|
4749
|
-
var b = (this._lBlock >>>
|
|
4750
|
-
this._rBlock ^= b, this._lBlock ^= b <<
|
|
4748
|
+
function m(y, f) {
|
|
4749
|
+
var b = (this._lBlock >>> y ^ this._rBlock) & f;
|
|
4750
|
+
this._rBlock ^= b, this._lBlock ^= b << y;
|
|
4751
4751
|
}
|
|
4752
|
-
function _(
|
|
4753
|
-
var b = (this._rBlock >>>
|
|
4754
|
-
this._lBlock ^= b, this._rBlock ^= b <<
|
|
4752
|
+
function _(y, f) {
|
|
4753
|
+
var b = (this._rBlock >>> y ^ this._lBlock) & f;
|
|
4754
|
+
this._lBlock ^= b, this._rBlock ^= b << y;
|
|
4755
4755
|
}
|
|
4756
|
-
r.DES =
|
|
4757
|
-
var c = d.TripleDES =
|
|
4756
|
+
r.DES = U._createHelper(p);
|
|
4757
|
+
var c = d.TripleDES = U.extend({
|
|
4758
4758
|
_doReset: function() {
|
|
4759
|
-
var
|
|
4759
|
+
var y = this._key, f = y.words;
|
|
4760
4760
|
if (f.length !== 2 && f.length !== 4 && f.length < 6)
|
|
4761
4761
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4762
4762
|
var b = f.slice(0, 2), C = f.length < 4 ? f.slice(0, 2) : f.slice(2, 4), v = f.length < 6 ? f.slice(0, 2) : f.slice(4, 6);
|
|
4763
4763
|
this._des1 = p.createEncryptor(g.create(b)), this._des2 = p.createEncryptor(g.create(C)), this._des3 = p.createEncryptor(g.create(v));
|
|
4764
4764
|
},
|
|
4765
|
-
encryptBlock: function(
|
|
4766
|
-
this._des1.encryptBlock(
|
|
4765
|
+
encryptBlock: function(y, f) {
|
|
4766
|
+
this._des1.encryptBlock(y, f), this._des2.decryptBlock(y, f), this._des3.encryptBlock(y, f);
|
|
4767
4767
|
},
|
|
4768
|
-
decryptBlock: function(
|
|
4769
|
-
this._des3.decryptBlock(
|
|
4768
|
+
decryptBlock: function(y, f) {
|
|
4769
|
+
this._des3.decryptBlock(y, f), this._des2.encryptBlock(y, f), this._des1.decryptBlock(y, f);
|
|
4770
4770
|
},
|
|
4771
4771
|
keySize: 192 / 32,
|
|
4772
4772
|
ivSize: 64 / 32,
|
|
4773
4773
|
blockSize: 64 / 32
|
|
4774
4774
|
});
|
|
4775
|
-
r.TripleDES =
|
|
4775
|
+
r.TripleDES = U._createHelper(c);
|
|
4776
4776
|
})(), a.TripleDES;
|
|
4777
4777
|
});
|
|
4778
4778
|
})(Vt)), Vt.exports;
|
|
@@ -4784,13 +4784,13 @@ function go() {
|
|
|
4784
4784
|
e.exports = r(le(), Sa(), Da(), _a(), Me());
|
|
4785
4785
|
})(po, function(a) {
|
|
4786
4786
|
return (function() {
|
|
4787
|
-
var r = a, u = r.lib, g = u.StreamCipher,
|
|
4787
|
+
var r = a, u = r.lib, g = u.StreamCipher, U = r.algo, d = U.RC4 = g.extend({
|
|
4788
4788
|
_doReset: function() {
|
|
4789
4789
|
for (var i = this._key, o = i.words, s = i.sigBytes, p = this._S = [], m = 0; m < 256; m++)
|
|
4790
4790
|
p[m] = m;
|
|
4791
4791
|
for (var m = 0, _ = 0; m < 256; m++) {
|
|
4792
|
-
var c = m % s,
|
|
4793
|
-
_ = (_ + p[m] +
|
|
4792
|
+
var c = m % s, y = o[c >>> 2] >>> 24 - c % 4 * 8 & 255;
|
|
4793
|
+
_ = (_ + p[m] + y) % 256;
|
|
4794
4794
|
var f = p[m];
|
|
4795
4795
|
p[m] = p[_], p[_] = f;
|
|
4796
4796
|
}
|
|
@@ -4811,7 +4811,7 @@ function go() {
|
|
|
4811
4811
|
return this._i = o, this._j = s, p;
|
|
4812
4812
|
}
|
|
4813
4813
|
r.RC4 = g._createHelper(d);
|
|
4814
|
-
var t =
|
|
4814
|
+
var t = U.RC4Drop = d.extend({
|
|
4815
4815
|
/**
|
|
4816
4816
|
* Configuration options.
|
|
4817
4817
|
*
|
|
@@ -4838,7 +4838,7 @@ function fo() {
|
|
|
4838
4838
|
e.exports = r(le(), Sa(), Da(), _a(), Me());
|
|
4839
4839
|
})(co, function(a) {
|
|
4840
4840
|
return (function() {
|
|
4841
|
-
var r = a, u = r.lib, g = u.StreamCipher,
|
|
4841
|
+
var r = a, u = r.lib, g = u.StreamCipher, U = r.algo, d = [], l = [], t = [], i = U.Rabbit = g.extend({
|
|
4842
4842
|
_doReset: function() {
|
|
4843
4843
|
for (var s = this._key.words, p = this.cfg.iv, m = 0; m < 4; m++)
|
|
4844
4844
|
s[m] = (s[m] << 8 | s[m] >>> 24) & 16711935 | (s[m] << 24 | s[m] >>> 8) & 4278255360;
|
|
@@ -4867,7 +4867,7 @@ function fo() {
|
|
|
4867
4867
|
for (var m = 0; m < 8; m++)
|
|
4868
4868
|
c[m] ^= _[m + 4 & 7];
|
|
4869
4869
|
if (p) {
|
|
4870
|
-
var
|
|
4870
|
+
var y = p.words, f = y[0], b = y[1], C = (f << 8 | f >>> 24) & 16711935 | (f << 24 | f >>> 8) & 4278255360, v = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, D = v << 16 | C & 65535;
|
|
4871
4871
|
c[0] ^= C, c[1] ^= x, c[2] ^= v, c[3] ^= D, c[4] ^= C, c[5] ^= x, c[6] ^= v, c[7] ^= D;
|
|
4872
4872
|
for (var m = 0; m < 4; m++)
|
|
4873
4873
|
o.call(this);
|
|
@@ -4887,7 +4887,7 @@ function fo() {
|
|
|
4887
4887
|
l[m] = p[m];
|
|
4888
4888
|
p[0] = p[0] + 1295307597 + this._b | 0, p[1] = p[1] + 3545052371 + (p[0] >>> 0 < l[0] >>> 0 ? 1 : 0) | 0, p[2] = p[2] + 886263092 + (p[1] >>> 0 < l[1] >>> 0 ? 1 : 0) | 0, p[3] = p[3] + 1295307597 + (p[2] >>> 0 < l[2] >>> 0 ? 1 : 0) | 0, p[4] = p[4] + 3545052371 + (p[3] >>> 0 < l[3] >>> 0 ? 1 : 0) | 0, p[5] = p[5] + 886263092 + (p[4] >>> 0 < l[4] >>> 0 ? 1 : 0) | 0, p[6] = p[6] + 1295307597 + (p[5] >>> 0 < l[5] >>> 0 ? 1 : 0) | 0, p[7] = p[7] + 3545052371 + (p[6] >>> 0 < l[6] >>> 0 ? 1 : 0) | 0, this._b = p[7] >>> 0 < l[7] >>> 0 ? 1 : 0;
|
|
4889
4889
|
for (var m = 0; m < 8; m++) {
|
|
4890
|
-
var _ = s[m] + p[m], c = _ & 65535,
|
|
4890
|
+
var _ = s[m] + p[m], c = _ & 65535, y = _ >>> 16, f = ((c * c >>> 17) + c * y >>> 15) + y * y, b = ((_ & 4294901760) * _ | 0) + ((_ & 65535) * _ | 0);
|
|
4891
4891
|
t[m] = f ^ b;
|
|
4892
4892
|
}
|
|
4893
4893
|
s[0] = t[0] + (t[7] << 16 | t[7] >>> 16) + (t[6] << 16 | t[6] >>> 16) | 0, s[1] = t[1] + (t[0] << 8 | t[0] >>> 24) + t[7] | 0, s[2] = t[2] + (t[1] << 16 | t[1] >>> 16) + (t[0] << 16 | t[0] >>> 16) | 0, s[3] = t[3] + (t[2] << 8 | t[2] >>> 24) + t[1] | 0, s[4] = t[4] + (t[3] << 16 | t[3] >>> 16) + (t[2] << 16 | t[2] >>> 16) | 0, s[5] = t[5] + (t[4] << 8 | t[4] >>> 24) + t[3] | 0, s[6] = t[6] + (t[5] << 16 | t[5] >>> 16) + (t[4] << 16 | t[4] >>> 16) | 0, s[7] = t[7] + (t[6] << 8 | t[6] >>> 24) + t[5] | 0;
|
|
@@ -4904,7 +4904,7 @@ function yo() {
|
|
|
4904
4904
|
e.exports = r(le(), Sa(), Da(), _a(), Me());
|
|
4905
4905
|
})(_o, function(a) {
|
|
4906
4906
|
return (function() {
|
|
4907
|
-
var r = a, u = r.lib, g = u.StreamCipher,
|
|
4907
|
+
var r = a, u = r.lib, g = u.StreamCipher, U = r.algo, d = [], l = [], t = [], i = U.RabbitLegacy = g.extend({
|
|
4908
4908
|
_doReset: function() {
|
|
4909
4909
|
var s = this._key.words, p = this.cfg.iv, m = this._X = [
|
|
4910
4910
|
s[0],
|
|
@@ -4931,7 +4931,7 @@ function yo() {
|
|
|
4931
4931
|
for (var c = 0; c < 8; c++)
|
|
4932
4932
|
_[c] ^= m[c + 4 & 7];
|
|
4933
4933
|
if (p) {
|
|
4934
|
-
var
|
|
4934
|
+
var y = p.words, f = y[0], b = y[1], C = (f << 8 | f >>> 24) & 16711935 | (f << 24 | f >>> 8) & 4278255360, v = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, D = v << 16 | C & 65535;
|
|
4935
4935
|
_[0] ^= C, _[1] ^= x, _[2] ^= v, _[3] ^= D, _[4] ^= C, _[5] ^= x, _[6] ^= v, _[7] ^= D;
|
|
4936
4936
|
for (var c = 0; c < 4; c++)
|
|
4937
4937
|
o.call(this);
|
|
@@ -4951,7 +4951,7 @@ function yo() {
|
|
|
4951
4951
|
l[m] = p[m];
|
|
4952
4952
|
p[0] = p[0] + 1295307597 + this._b | 0, p[1] = p[1] + 3545052371 + (p[0] >>> 0 < l[0] >>> 0 ? 1 : 0) | 0, p[2] = p[2] + 886263092 + (p[1] >>> 0 < l[1] >>> 0 ? 1 : 0) | 0, p[3] = p[3] + 1295307597 + (p[2] >>> 0 < l[2] >>> 0 ? 1 : 0) | 0, p[4] = p[4] + 3545052371 + (p[3] >>> 0 < l[3] >>> 0 ? 1 : 0) | 0, p[5] = p[5] + 886263092 + (p[4] >>> 0 < l[4] >>> 0 ? 1 : 0) | 0, p[6] = p[6] + 1295307597 + (p[5] >>> 0 < l[5] >>> 0 ? 1 : 0) | 0, p[7] = p[7] + 3545052371 + (p[6] >>> 0 < l[6] >>> 0 ? 1 : 0) | 0, this._b = p[7] >>> 0 < l[7] >>> 0 ? 1 : 0;
|
|
4953
4953
|
for (var m = 0; m < 8; m++) {
|
|
4954
|
-
var _ = s[m] + p[m], c = _ & 65535,
|
|
4954
|
+
var _ = s[m] + p[m], c = _ & 65535, y = _ >>> 16, f = ((c * c >>> 17) + c * y >>> 15) + y * y, b = ((_ & 4294901760) * _ | 0) + ((_ & 65535) * _ | 0);
|
|
4955
4955
|
t[m] = f ^ b;
|
|
4956
4956
|
}
|
|
4957
4957
|
s[0] = t[0] + (t[7] << 16 | t[7] >>> 16) + (t[6] << 16 | t[6] >>> 16) | 0, s[1] = t[1] + (t[0] << 8 | t[0] >>> 24) + t[7] | 0, s[2] = t[2] + (t[1] << 16 | t[1] >>> 16) + (t[0] << 16 | t[0] >>> 16) | 0, s[3] = t[3] + (t[2] << 8 | t[2] >>> 24) + t[1] | 0, s[4] = t[4] + (t[3] << 16 | t[3] >>> 16) + (t[2] << 16 | t[2] >>> 16) | 0, s[5] = t[5] + (t[4] << 8 | t[4] >>> 24) + t[3] | 0, s[6] = t[6] + (t[5] << 16 | t[5] >>> 16) + (t[4] << 16 | t[4] >>> 16) | 0, s[7] = t[7] + (t[6] << 8 | t[6] >>> 24) + t[5] | 0;
|
|
@@ -4968,7 +4968,7 @@ function bo() {
|
|
|
4968
4968
|
e.exports = r(le(), Sa(), Da(), _a(), Me());
|
|
4969
4969
|
})(Uo, function(a) {
|
|
4970
4970
|
return (function() {
|
|
4971
|
-
var r = a, u = r.lib, g = u.BlockCipher,
|
|
4971
|
+
var r = a, u = r.lib, g = u.BlockCipher, U = r.algo;
|
|
4972
4972
|
const d = 16, l = [
|
|
4973
4973
|
608135816,
|
|
4974
4974
|
2242054355,
|
|
@@ -6026,23 +6026,23 @@ function bo() {
|
|
|
6026
6026
|
pbox: [],
|
|
6027
6027
|
sbox: []
|
|
6028
6028
|
};
|
|
6029
|
-
function o(c,
|
|
6030
|
-
let f =
|
|
6029
|
+
function o(c, y) {
|
|
6030
|
+
let f = y >> 24 & 255, b = y >> 16 & 255, C = y >> 8 & 255, v = y & 255, x = c.sbox[0][f] + c.sbox[1][b];
|
|
6031
6031
|
return x = x ^ c.sbox[2][C], x = x + c.sbox[3][v], x;
|
|
6032
6032
|
}
|
|
6033
|
-
function s(c,
|
|
6034
|
-
let b =
|
|
6033
|
+
function s(c, y, f) {
|
|
6034
|
+
let b = y, C = f, v;
|
|
6035
6035
|
for (let x = 0; x < d; ++x)
|
|
6036
6036
|
b = b ^ c.pbox[x], C = o(c, b) ^ C, v = b, b = C, C = v;
|
|
6037
6037
|
return v = b, b = C, C = v, C = C ^ c.pbox[d], b = b ^ c.pbox[d + 1], { left: b, right: C };
|
|
6038
6038
|
}
|
|
6039
|
-
function p(c,
|
|
6040
|
-
let b =
|
|
6039
|
+
function p(c, y, f) {
|
|
6040
|
+
let b = y, C = f, v;
|
|
6041
6041
|
for (let x = d + 1; x > 1; --x)
|
|
6042
6042
|
b = b ^ c.pbox[x], C = o(c, b) ^ C, v = b, b = C, C = v;
|
|
6043
6043
|
return v = b, b = C, C = v, C = C ^ c.pbox[1], b = b ^ c.pbox[0], { left: b, right: C };
|
|
6044
6044
|
}
|
|
6045
|
-
function m(c,
|
|
6045
|
+
function m(c, y, f) {
|
|
6046
6046
|
for (let D = 0; D < 4; D++) {
|
|
6047
6047
|
c.sbox[D] = [];
|
|
6048
6048
|
for (let M = 0; M < 256; M++)
|
|
@@ -6050,7 +6050,7 @@ function bo() {
|
|
|
6050
6050
|
}
|
|
6051
6051
|
let b = 0;
|
|
6052
6052
|
for (let D = 0; D < d + 2; D++)
|
|
6053
|
-
c.pbox[D] = l[D] ^
|
|
6053
|
+
c.pbox[D] = l[D] ^ y[b], b++, b >= f && (b = 0);
|
|
6054
6054
|
let C = 0, v = 0, x = 0;
|
|
6055
6055
|
for (let D = 0; D < d + 2; D += 2)
|
|
6056
6056
|
x = s(c, C, v), C = x.left, v = x.right, c.pbox[D] = C, c.pbox[D + 1] = v;
|
|
@@ -6059,20 +6059,20 @@ function bo() {
|
|
|
6059
6059
|
x = s(c, C, v), C = x.left, v = x.right, c.sbox[D][M] = C, c.sbox[D][M + 1] = v;
|
|
6060
6060
|
return !0;
|
|
6061
6061
|
}
|
|
6062
|
-
var _ =
|
|
6062
|
+
var _ = U.Blowfish = g.extend({
|
|
6063
6063
|
_doReset: function() {
|
|
6064
6064
|
if (this._keyPriorReset !== this._key) {
|
|
6065
|
-
var c = this._keyPriorReset = this._key,
|
|
6066
|
-
m(i,
|
|
6065
|
+
var c = this._keyPriorReset = this._key, y = c.words, f = c.sigBytes / 4;
|
|
6066
|
+
m(i, y, f);
|
|
6067
6067
|
}
|
|
6068
6068
|
},
|
|
6069
|
-
encryptBlock: function(c,
|
|
6070
|
-
var f = s(i, c[
|
|
6071
|
-
c[
|
|
6069
|
+
encryptBlock: function(c, y) {
|
|
6070
|
+
var f = s(i, c[y], c[y + 1]);
|
|
6071
|
+
c[y] = f.left, c[y + 1] = f.right;
|
|
6072
6072
|
},
|
|
6073
|
-
decryptBlock: function(c,
|
|
6074
|
-
var f = p(i, c[
|
|
6075
|
-
c[
|
|
6073
|
+
decryptBlock: function(c, y) {
|
|
6074
|
+
var f = p(i, c[y], c[y + 1]);
|
|
6075
|
+
c[y] = f.left, c[y + 1] = f.right;
|
|
6076
6076
|
},
|
|
6077
6077
|
blockSize: 64 / 32,
|
|
6078
6078
|
keySize: 128 / 32,
|
|
@@ -6093,8 +6093,8 @@ function vo() {
|
|
|
6093
6093
|
});
|
|
6094
6094
|
})(dt)), dt.exports;
|
|
6095
6095
|
}
|
|
6096
|
-
var
|
|
6097
|
-
const Ca = /* @__PURE__ */ yi(
|
|
6096
|
+
var et = vo();
|
|
6097
|
+
const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
6098
6098
|
const n = "mySecretPassphrase", a = Ca.lib.WordArray.random(16), r = Ca.PBKDF2(n, a, {
|
|
6099
6099
|
keySize: 128 / 32,
|
|
6100
6100
|
iterations: 1e3
|
|
@@ -6102,8 +6102,8 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6102
6102
|
iv: a,
|
|
6103
6103
|
mode: Ca.mode.CBC,
|
|
6104
6104
|
padding: Ca.pad.Pkcs7
|
|
6105
|
-
}), g = a.toString(Ca.enc.Base64),
|
|
6106
|
-
return g + ":" +
|
|
6105
|
+
}), g = a.toString(Ca.enc.Base64), U = Ca.enc.Base64.stringify(u.ciphertext);
|
|
6106
|
+
return g + ":" + U;
|
|
6107
6107
|
}, ne = () => {
|
|
6108
6108
|
const { client: e, formDataClient: n } = se(), a = H(
|
|
6109
6109
|
async (h) => {
|
|
@@ -6115,7 +6115,7 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6115
6115
|
});
|
|
6116
6116
|
},
|
|
6117
6117
|
[e]
|
|
6118
|
-
), r = H(async () => e.get("/member/getMemberInfo"), [e]), u = H(async () => await e.get("/member/getGameList"), [e]), g = H(async () => await e.get("/member/getNowCurrencyExchange"), [e]),
|
|
6118
|
+
), r = H(async () => e.get("/member/getMemberInfo"), [e]), u = H(async () => await e.get("/member/getGameList"), [e]), g = H(async () => await e.get("/member/getNowCurrencyExchange"), [e]), U = H(async () => await e.get("member/getFavoriteGame"), [e]), d = H(
|
|
6119
6119
|
async (h) => {
|
|
6120
6120
|
const { account: E, password: N, trans_code: V } = h;
|
|
6121
6121
|
return await e.post("/login", {
|
|
@@ -6172,14 +6172,14 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6172
6172
|
async (h) => {
|
|
6173
6173
|
const { oldPwd: E, newPwd: N } = h;
|
|
6174
6174
|
return await e.post("/passwordReset", {
|
|
6175
|
-
old_pwd:
|
|
6176
|
-
new_pwd:
|
|
6175
|
+
old_pwd: et.MD5(E).toString(),
|
|
6176
|
+
new_pwd: et.MD5(N).toString()
|
|
6177
6177
|
});
|
|
6178
6178
|
},
|
|
6179
6179
|
[e]
|
|
6180
6180
|
), m = H(
|
|
6181
6181
|
async (h) => {
|
|
6182
|
-
const { newPwd: E } = h, N =
|
|
6182
|
+
const { newPwd: E } = h, N = et.MD5(E).toString();
|
|
6183
6183
|
return await e.post("/member/initset", {
|
|
6184
6184
|
password: N,
|
|
6185
6185
|
password_confirmation: N
|
|
@@ -6204,7 +6204,7 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6204
6204
|
});
|
|
6205
6205
|
},
|
|
6206
6206
|
[e]
|
|
6207
|
-
),
|
|
6207
|
+
), y = H(
|
|
6208
6208
|
async (h) => {
|
|
6209
6209
|
const { mobile: E, verification_code: N } = h;
|
|
6210
6210
|
return await e.post("/withdrawPasswordRenew", {
|
|
@@ -6376,7 +6376,7 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6376
6376
|
createMachineApi: G,
|
|
6377
6377
|
userInfoApi: r,
|
|
6378
6378
|
userGameListApi: u,
|
|
6379
|
-
userFavoriteGameApi:
|
|
6379
|
+
userFavoriteGameApi: U,
|
|
6380
6380
|
userCurrencyExchangeApi: g,
|
|
6381
6381
|
userLoginApi: d,
|
|
6382
6382
|
userLogoutApi: l,
|
|
@@ -6403,7 +6403,7 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6403
6403
|
mobileLoginApiV2: P,
|
|
6404
6404
|
bindAccountApi: L,
|
|
6405
6405
|
mobileRegisterApi: w,
|
|
6406
|
-
verifyResetActionApi:
|
|
6406
|
+
verifyResetActionApi: y,
|
|
6407
6407
|
getJackpotApi: B,
|
|
6408
6408
|
getBetRankingApi: O,
|
|
6409
6409
|
getUserAvatarListApi: W,
|
|
@@ -6449,28 +6449,28 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6449
6449
|
queryKey: ["getMemInfo"],
|
|
6450
6450
|
queryFn: async () => n(),
|
|
6451
6451
|
enabled: e
|
|
6452
|
-
}),
|
|
6452
|
+
}), U = Q({
|
|
6453
6453
|
queryKey: ["getFavoriteGame"],
|
|
6454
6454
|
queryFn: async () => a(),
|
|
6455
6455
|
enabled: e && g.isSuccess
|
|
6456
6456
|
}), d = Q({
|
|
6457
6457
|
queryKey: ["getUserGameList"],
|
|
6458
6458
|
queryFn: async () => r(),
|
|
6459
|
-
enabled: e && g.isSuccess &&
|
|
6459
|
+
enabled: e && g.isSuccess && U.isSuccess
|
|
6460
6460
|
}), l = Q({
|
|
6461
6461
|
queryKey: ["getUserCurrencyExchange"],
|
|
6462
6462
|
queryFn: async () => u(),
|
|
6463
|
-
enabled: e && g.isSuccess &&
|
|
6463
|
+
enabled: e && g.isSuccess && U.isSuccess && d.isSuccess
|
|
6464
6464
|
});
|
|
6465
6465
|
return [
|
|
6466
6466
|
g,
|
|
6467
|
-
|
|
6467
|
+
U,
|
|
6468
6468
|
d,
|
|
6469
6469
|
l
|
|
6470
6470
|
];
|
|
6471
6471
|
}, Ci = () => {
|
|
6472
6472
|
const { client: e, lng: n } = se(), a = $e(n || "tw"), r = H(
|
|
6473
|
-
async (
|
|
6473
|
+
async (U) => {
|
|
6474
6474
|
const {
|
|
6475
6475
|
gameUid: d = "",
|
|
6476
6476
|
// 遊戲唯一標識
|
|
@@ -6482,7 +6482,7 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6482
6482
|
// 遊戲幣別
|
|
6483
6483
|
currentCurrency: o = ""
|
|
6484
6484
|
// 目前使用的幣別
|
|
6485
|
-
} =
|
|
6485
|
+
} = U;
|
|
6486
6486
|
return await e.post("/game/go", {
|
|
6487
6487
|
gameUid: d,
|
|
6488
6488
|
gameCode: l,
|
|
@@ -6495,13 +6495,13 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6495
6495
|
},
|
|
6496
6496
|
[e, a]
|
|
6497
6497
|
), u = H(
|
|
6498
|
-
async (
|
|
6498
|
+
async (U) => {
|
|
6499
6499
|
const {
|
|
6500
6500
|
startDate: d = Le().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6501
6501
|
endDate: l = Le().format("YYYY-MM-DD 11:59:59"),
|
|
6502
6502
|
platform: t = "",
|
|
6503
6503
|
limit: i = 25
|
|
6504
|
-
} =
|
|
6504
|
+
} = U, { data: o } = await e.get("/report/netprofit", {
|
|
6505
6505
|
params: {
|
|
6506
6506
|
str_date: d,
|
|
6507
6507
|
end_date: l,
|
|
@@ -6513,14 +6513,14 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6513
6513
|
},
|
|
6514
6514
|
[e]
|
|
6515
6515
|
), g = H(
|
|
6516
|
-
async (
|
|
6516
|
+
async (U) => {
|
|
6517
6517
|
const {
|
|
6518
6518
|
startDate: d = Le().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6519
6519
|
endDate: l = Le().format("YYYY-MM-DD 11:59:59"),
|
|
6520
6520
|
platform: t,
|
|
6521
6521
|
limit: i = 25,
|
|
6522
6522
|
page: o = 1
|
|
6523
|
-
} =
|
|
6523
|
+
} = U, { data: s } = await e.get("/report/betlog", {
|
|
6524
6524
|
params: {
|
|
6525
6525
|
str_date: d,
|
|
6526
6526
|
end_date: l,
|
|
@@ -6539,8 +6539,8 @@ const Ca = /* @__PURE__ */ yi(Xa), Fa = (e) => {
|
|
|
6539
6539
|
return Q({
|
|
6540
6540
|
queryKey: ["getBetRecord"],
|
|
6541
6541
|
queryFn: async () => await a(n),
|
|
6542
|
-
select: (r) => Vn(r).map(([g,
|
|
6543
|
-
...
|
|
6542
|
+
select: (r) => Vn(r).map(([g, U]) => ({
|
|
6543
|
+
...U,
|
|
6544
6544
|
platform: g
|
|
6545
6545
|
})),
|
|
6546
6546
|
...e
|
|
@@ -6586,27 +6586,27 @@ var ko = {
|
|
|
6586
6586
|
}
|
|
6587
6587
|
};
|
|
6588
6588
|
function ui(e, n) {
|
|
6589
|
-
function a(u, g,
|
|
6589
|
+
function a(u, g, U) {
|
|
6590
6590
|
if (!(typeof document > "u")) {
|
|
6591
|
-
|
|
6591
|
+
U = st({}, n, U), typeof U.expires == "number" && (U.expires = new Date(Date.now() + U.expires * 864e5)), U.expires && (U.expires = U.expires.toUTCString()), u = encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
6592
6592
|
var d = "";
|
|
6593
|
-
for (var l in
|
|
6594
|
-
|
|
6593
|
+
for (var l in U)
|
|
6594
|
+
U[l] && (d += "; " + l, U[l] !== !0 && (d += "=" + U[l].split(";")[0]));
|
|
6595
6595
|
return document.cookie = u + "=" + e.write(g, u) + d;
|
|
6596
6596
|
}
|
|
6597
6597
|
}
|
|
6598
6598
|
function r(u) {
|
|
6599
6599
|
if (!(typeof document > "u" || arguments.length && !u)) {
|
|
6600
|
-
for (var g = document.cookie ? document.cookie.split("; ") : [],
|
|
6600
|
+
for (var g = document.cookie ? document.cookie.split("; ") : [], U = {}, d = 0; d < g.length; d++) {
|
|
6601
6601
|
var l = g[d].split("="), t = l.slice(1).join("=");
|
|
6602
6602
|
try {
|
|
6603
6603
|
var i = decodeURIComponent(l[0]);
|
|
6604
|
-
if (i in
|
|
6604
|
+
if (i in U || (U[i] = e.read(t, i)), u === i)
|
|
6605
6605
|
break;
|
|
6606
6606
|
} catch {
|
|
6607
6607
|
}
|
|
6608
6608
|
}
|
|
6609
|
-
return u ?
|
|
6609
|
+
return u ? U[u] : U;
|
|
6610
6610
|
}
|
|
6611
6611
|
}
|
|
6612
6612
|
return Object.create(
|
|
@@ -6662,7 +6662,7 @@ function la() {
|
|
|
6662
6662
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && u();
|
|
6663
6663
|
})(ri)), ri;
|
|
6664
6664
|
}
|
|
6665
|
-
var
|
|
6665
|
+
var ja = {}, li = {}, Cn;
|
|
6666
6666
|
function vi() {
|
|
6667
6667
|
return Cn || (Cn = 1, (function(e) {
|
|
6668
6668
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
@@ -6682,7 +6682,7 @@ function hi() {
|
|
|
6682
6682
|
vn = 1, Object.defineProperty(sa, "__esModule", { value: !0 }), sa.setUpSocketIOPing = sa.appendQueryParams = sa.parseSocketIOUrl = void 0;
|
|
6683
6683
|
var e = la(), n = function(u) {
|
|
6684
6684
|
if (u) {
|
|
6685
|
-
var g = /^https|wss/.test(u),
|
|
6685
|
+
var g = /^https|wss/.test(u), U = u.replace(/^(https?|wss?)(:\/\/)?/, ""), d = U.replace(/\/$/, ""), l = g ? "wss" : "ws";
|
|
6686
6686
|
return "".concat(l, "://").concat(d).concat(e.SOCKET_IO_PATH);
|
|
6687
6687
|
} else if (u === "") {
|
|
6688
6688
|
var g = /^https/.test(window.location.protocol), l = g ? "wss" : "ws", t = window.location.port ? ":".concat(window.location.port) : "";
|
|
@@ -6693,7 +6693,7 @@ function hi() {
|
|
|
6693
6693
|
sa.parseSocketIOUrl = n;
|
|
6694
6694
|
var a = function(u, g) {
|
|
6695
6695
|
g === void 0 && (g = {});
|
|
6696
|
-
var
|
|
6696
|
+
var U = /\?([\w]+=[\w]+)/, d = U.test(u), l = "".concat(Object.entries(g).reduce(function(t, i) {
|
|
6697
6697
|
var o = i[0], s = i[1];
|
|
6698
6698
|
return t + "".concat(o, "=").concat(s, "&");
|
|
6699
6699
|
}, "").slice(0, -1));
|
|
@@ -6702,10 +6702,10 @@ function hi() {
|
|
|
6702
6702
|
sa.appendQueryParams = a;
|
|
6703
6703
|
var r = function(u, g) {
|
|
6704
6704
|
g === void 0 && (g = e.SOCKET_IO_PING_INTERVAL);
|
|
6705
|
-
var
|
|
6705
|
+
var U = function() {
|
|
6706
6706
|
return u(e.SOCKET_IO_PING_CODE);
|
|
6707
6707
|
};
|
|
6708
|
-
return window.setInterval(
|
|
6708
|
+
return window.setInterval(U, g);
|
|
6709
6709
|
};
|
|
6710
6710
|
return sa.setUpSocketIOPing = r, sa;
|
|
6711
6711
|
}
|
|
@@ -6720,11 +6720,11 @@ function nr() {
|
|
|
6720
6720
|
}).current : r.current;
|
|
6721
6721
|
}
|
|
6722
6722
|
function a(r, u, g) {
|
|
6723
|
-
var
|
|
6724
|
-
var c = Date.now(),
|
|
6725
|
-
if (
|
|
6726
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(c -
|
|
6727
|
-
else if (
|
|
6723
|
+
var U = g || {}, d = U.interval, l = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, t = U.timeout, i = t === void 0 ? e.DEFAULT_HEARTBEAT.timeout : t, o = U.message, s = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, p = Math.max(100, l / 10), m = Date.now(), _ = setInterval(function() {
|
|
6724
|
+
var c = Date.now(), y = n(u);
|
|
6725
|
+
if (y + i <= c)
|
|
6726
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(c - y, "ms ago, last ping sent ").concat(c - m, "ms ago")), r.close();
|
|
6727
|
+
else if (y + l <= c && m + l <= c)
|
|
6728
6728
|
try {
|
|
6729
6729
|
typeof s == "function" ? r.send(s()) : r.send(s), m = c;
|
|
6730
6730
|
} catch (f) {
|
|
@@ -6738,7 +6738,7 @@ function nr() {
|
|
|
6738
6738
|
}
|
|
6739
6739
|
return mt;
|
|
6740
6740
|
}
|
|
6741
|
-
var
|
|
6741
|
+
var Ya = {}, oi = {}, Tn;
|
|
6742
6742
|
function Ti() {
|
|
6743
6743
|
return Tn || (Tn = 1, (function(e) {
|
|
6744
6744
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
@@ -6755,10 +6755,10 @@ function Ti() {
|
|
|
6755
6755
|
n[l] = n[l] || /* @__PURE__ */ new Set(), n[l].add(t);
|
|
6756
6756
|
};
|
|
6757
6757
|
e.addSubscriber = g;
|
|
6758
|
-
var
|
|
6758
|
+
var U = function(l, t) {
|
|
6759
6759
|
n[l].delete(t);
|
|
6760
6760
|
};
|
|
6761
|
-
e.removeSubscriber =
|
|
6761
|
+
e.removeSubscriber = U;
|
|
6762
6762
|
var d = function(l) {
|
|
6763
6763
|
if (l && n.hasOwnProperty(l))
|
|
6764
6764
|
delete n[l];
|
|
@@ -6771,8 +6771,8 @@ function Ti() {
|
|
|
6771
6771
|
}
|
|
6772
6772
|
var kn;
|
|
6773
6773
|
function ki() {
|
|
6774
|
-
if (kn) return
|
|
6775
|
-
kn = 1, Object.defineProperty(
|
|
6774
|
+
if (kn) return Ya;
|
|
6775
|
+
kn = 1, Object.defineProperty(Ya, "__esModule", { value: !0 }), Ya.assertIsWebSocket = a, Ya.resetGlobalState = r;
|
|
6776
6776
|
var e = vi(), n = Ti();
|
|
6777
6777
|
function a(u, g) {
|
|
6778
6778
|
if (!g && !(u instanceof WebSocket))
|
|
@@ -6781,7 +6781,7 @@ function ki() {
|
|
|
6781
6781
|
function r(u) {
|
|
6782
6782
|
(0, n.resetSubscribers)(u), (0, e.resetWebSockets)(u);
|
|
6783
6783
|
}
|
|
6784
|
-
return
|
|
6784
|
+
return Ya;
|
|
6785
6785
|
}
|
|
6786
6786
|
var xn;
|
|
6787
6787
|
function xo() {
|
|
@@ -6802,7 +6802,7 @@ function xo() {
|
|
|
6802
6802
|
var _;
|
|
6803
6803
|
o.current.onMessage && o.current.onMessage(m), typeof p?.current == "number" && (p.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(m) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((_ = o.current.heartbeat) === null || _ === void 0 ? void 0 : _.returnMessage) === m.data || s(m));
|
|
6804
6804
|
};
|
|
6805
|
-
},
|
|
6805
|
+
}, U = function(i, o, s, p, m) {
|
|
6806
6806
|
i.onopen = function(_) {
|
|
6807
6807
|
if (o.current.onOpen && o.current.onOpen(_), p.current = 0, s(r.ReadyState.OPEN), o.current.heartbeat && i instanceof WebSocket) {
|
|
6808
6808
|
var c = typeof o.current.heartbeat == "boolean" ? void 0 : o.current.heartbeat;
|
|
@@ -6816,9 +6816,9 @@ function xo() {
|
|
|
6816
6816
|
(0, u.assertIsWebSocket)(i, o.current.skipAssert);
|
|
6817
6817
|
var _;
|
|
6818
6818
|
return i.onclose = function(c) {
|
|
6819
|
-
var
|
|
6819
|
+
var y;
|
|
6820
6820
|
if (o.current.onClose && o.current.onClose(c), s(r.ReadyState.CLOSED), o.current.shouldReconnect && o.current.shouldReconnect(c)) {
|
|
6821
|
-
var f = (
|
|
6821
|
+
var f = (y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : r.DEFAULT_RECONNECT_LIMIT;
|
|
6822
6822
|
if (m.current < f) {
|
|
6823
6823
|
var b = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6824
6824
|
_ = window.setTimeout(function() {
|
|
@@ -6833,9 +6833,9 @@ function xo() {
|
|
|
6833
6833
|
}, l = function(i, o, s, p, m) {
|
|
6834
6834
|
var _;
|
|
6835
6835
|
return i.onerror = function(c) {
|
|
6836
|
-
var
|
|
6836
|
+
var y;
|
|
6837
6837
|
if (o.current.onError && o.current.onError(c), r.isEventSourceSupported && i instanceof EventSource && (o.current.onClose && o.current.onClose(e(e({}, c), { code: 1006, reason: "An error occurred with the EventSource: ".concat(c), wasClean: !1 })), s(r.ReadyState.CLOSED), i.close()), o.current.retryOnError)
|
|
6838
|
-
if (m.current < ((
|
|
6838
|
+
if (m.current < ((y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : r.DEFAULT_RECONNECT_LIMIT)) {
|
|
6839
6839
|
var f = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6840
6840
|
_ = window.setTimeout(function() {
|
|
6841
6841
|
m.current++, p();
|
|
@@ -6846,8 +6846,8 @@ function xo() {
|
|
|
6846
6846
|
return _ && window.clearTimeout(_);
|
|
6847
6847
|
};
|
|
6848
6848
|
}, t = function(i, o, s, p, m, _, c) {
|
|
6849
|
-
var
|
|
6850
|
-
return s.current.fromSocketIO && (b = (0, n.setUpSocketIOPing)(c)), g(i, s,
|
|
6849
|
+
var y = o.setLastMessage, f = o.setReadyState, b, C, v;
|
|
6850
|
+
return s.current.fromSocketIO && (b = (0, n.setUpSocketIOPing)(c)), g(i, s, y, _), U(i, s, f, m, _), C = d(i, s, f, p, m), v = l(i, s, f, p, m), function() {
|
|
6851
6851
|
f(r.ReadyState.CLOSING), C(), v(), i.close(), b && clearInterval(b);
|
|
6852
6852
|
};
|
|
6853
6853
|
};
|
|
@@ -6867,7 +6867,7 @@ function So() {
|
|
|
6867
6867
|
}, e.apply(this, arguments);
|
|
6868
6868
|
};
|
|
6869
6869
|
Object.defineProperty(ha, "__esModule", { value: !0 }), ha.attachSharedListeners = void 0;
|
|
6870
|
-
var n = vi(), a = la(), r = Ti(), u = hi(), g = nr(),
|
|
6870
|
+
var n = vi(), a = la(), r = Ti(), u = hi(), g = nr(), U = function(o, s, p) {
|
|
6871
6871
|
o.onmessage = function(m) {
|
|
6872
6872
|
(0, r.getSubscribers)(s).forEach(function(_) {
|
|
6873
6873
|
var c;
|
|
@@ -6892,10 +6892,10 @@ function So() {
|
|
|
6892
6892
|
if (m.optionsRef.current.shouldReconnect && m.optionsRef.current.shouldReconnect(p)) {
|
|
6893
6893
|
var c = (_ = m.optionsRef.current.reconnectAttempts) !== null && _ !== void 0 ? _ : a.DEFAULT_RECONNECT_LIMIT;
|
|
6894
6894
|
if (m.reconnectCount.current < c) {
|
|
6895
|
-
var
|
|
6895
|
+
var y = typeof m.optionsRef.current.reconnectInterval == "function" ? m.optionsRef.current.reconnectInterval(m.reconnectCount.current) : m.optionsRef.current.reconnectInterval;
|
|
6896
6896
|
setTimeout(function() {
|
|
6897
6897
|
m.reconnectCount.current++, m.reconnect.current();
|
|
6898
|
-
},
|
|
6898
|
+
}, y ?? a.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6899
6899
|
} else
|
|
6900
6900
|
m.optionsRef.current.onReconnectStop && m.optionsRef.current.onReconnectStop(m.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(c, " exceeded"));
|
|
6901
6901
|
}
|
|
@@ -6909,7 +6909,7 @@ function So() {
|
|
|
6909
6909
|
};
|
|
6910
6910
|
}, i = function(o, s, p, m) {
|
|
6911
6911
|
var _;
|
|
6912
|
-
return p.current.fromSocketIO && (_ = (0, u.setUpSocketIOPing)(m)),
|
|
6912
|
+
return p.current.fromSocketIO && (_ = (0, u.setUpSocketIOPing)(m)), U(o, s, p.current.heartbeat), l(o, s), d(o, s, p.current.heartbeat), t(o, s), function() {
|
|
6913
6913
|
_ && clearInterval(_);
|
|
6914
6914
|
};
|
|
6915
6915
|
};
|
|
@@ -6917,8 +6917,8 @@ function So() {
|
|
|
6917
6917
|
}
|
|
6918
6918
|
var Dn;
|
|
6919
6919
|
function Do() {
|
|
6920
|
-
if (Dn) return
|
|
6921
|
-
Dn = 1, Object.defineProperty(
|
|
6920
|
+
if (Dn) return ja;
|
|
6921
|
+
Dn = 1, Object.defineProperty(ja, "__esModule", { value: !0 }), ja.createOrJoinSocket = void 0;
|
|
6922
6922
|
var e = vi(), n = la(), a = xo(), r = So(), u = Ti(), g = function(d, l, t, i, o) {
|
|
6923
6923
|
return function() {
|
|
6924
6924
|
if ((0, u.removeSubscriber)(d, l), !(0, u.hasSubscribers)(d)) {
|
|
@@ -6932,13 +6932,13 @@ function Do() {
|
|
|
6932
6932
|
o && o(), delete e.sharedWebSockets[d];
|
|
6933
6933
|
}
|
|
6934
6934
|
};
|
|
6935
|
-
},
|
|
6935
|
+
}, U = function(d, l, t, i, o, s, p, m, _) {
|
|
6936
6936
|
if (!n.isEventSourceSupported && i.current.eventSourceOptions)
|
|
6937
6937
|
throw n.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6938
6938
|
if (i.current.share) {
|
|
6939
6939
|
var c = null;
|
|
6940
6940
|
e.sharedWebSockets[l] === void 0 ? (e.sharedWebSockets[l] = i.current.eventSourceOptions ? new EventSource(l, i.current.eventSourceOptions) : new WebSocket(l, i.current.protocols), d.current = e.sharedWebSockets[l], t(n.ReadyState.CONNECTING), c = (0, r.attachSharedListeners)(e.sharedWebSockets[l], l, i, _)) : (d.current = e.sharedWebSockets[l], t(e.sharedWebSockets[l].readyState));
|
|
6941
|
-
var
|
|
6941
|
+
var y = {
|
|
6942
6942
|
setLastMessage: o,
|
|
6943
6943
|
setReadyState: t,
|
|
6944
6944
|
optionsRef: i,
|
|
@@ -6946,7 +6946,7 @@ function Do() {
|
|
|
6946
6946
|
lastMessageTime: m,
|
|
6947
6947
|
reconnect: s
|
|
6948
6948
|
};
|
|
6949
|
-
return (0, u.addSubscriber)(l,
|
|
6949
|
+
return (0, u.addSubscriber)(l, y), g(l, y, i, t, c);
|
|
6950
6950
|
} else {
|
|
6951
6951
|
if (d.current = i.current.eventSourceOptions ? new EventSource(l, i.current.eventSourceOptions) : new WebSocket(l, i.current.protocols), t(n.ReadyState.CONNECTING), !d.current)
|
|
6952
6952
|
throw new Error("WebSocket failed to be created");
|
|
@@ -6956,7 +6956,7 @@ function Do() {
|
|
|
6956
6956
|
}, i, s.current, p, m, _);
|
|
6957
6957
|
}
|
|
6958
6958
|
};
|
|
6959
|
-
return
|
|
6959
|
+
return ja.createOrJoinSocket = U, ja;
|
|
6960
6960
|
}
|
|
6961
6961
|
var ma = {}, En;
|
|
6962
6962
|
function Eo() {
|
|
@@ -6970,22 +6970,22 @@ function Eo() {
|
|
|
6970
6970
|
return new (i || (i = Promise))(function(p, m) {
|
|
6971
6971
|
function _(f) {
|
|
6972
6972
|
try {
|
|
6973
|
-
|
|
6973
|
+
y(o.next(f));
|
|
6974
6974
|
} catch (b) {
|
|
6975
6975
|
m(b);
|
|
6976
6976
|
}
|
|
6977
6977
|
}
|
|
6978
6978
|
function c(f) {
|
|
6979
6979
|
try {
|
|
6980
|
-
|
|
6980
|
+
y(o.throw(f));
|
|
6981
6981
|
} catch (b) {
|
|
6982
6982
|
m(b);
|
|
6983
6983
|
}
|
|
6984
6984
|
}
|
|
6985
|
-
function
|
|
6985
|
+
function y(f) {
|
|
6986
6986
|
f.done ? p(f.value) : s(f.value).then(_, c);
|
|
6987
6987
|
}
|
|
6988
|
-
|
|
6988
|
+
y((o = o.apply(l, t || [])).next());
|
|
6989
6989
|
});
|
|
6990
6990
|
}, a = ma && ma.__generator || function(l, t) {
|
|
6991
6991
|
var i = { label: 0, sent: function() {
|
|
@@ -6995,56 +6995,56 @@ function Eo() {
|
|
|
6995
6995
|
return m.next = _(0), m.throw = _(1), m.return = _(2), typeof Symbol == "function" && (m[Symbol.iterator] = function() {
|
|
6996
6996
|
return this;
|
|
6997
6997
|
}), m;
|
|
6998
|
-
function _(
|
|
6998
|
+
function _(y) {
|
|
6999
6999
|
return function(f) {
|
|
7000
|
-
return c([
|
|
7000
|
+
return c([y, f]);
|
|
7001
7001
|
};
|
|
7002
7002
|
}
|
|
7003
|
-
function c(
|
|
7003
|
+
function c(y) {
|
|
7004
7004
|
if (o) throw new TypeError("Generator is already executing.");
|
|
7005
|
-
for (; m && (m = 0,
|
|
7006
|
-
if (o = 1, s && (p =
|
|
7007
|
-
switch (s = 0, p && (
|
|
7005
|
+
for (; m && (m = 0, y[0] && (i = 0)), i; ) try {
|
|
7006
|
+
if (o = 1, s && (p = y[0] & 2 ? s.return : y[0] ? s.throw || ((p = s.return) && p.call(s), 0) : s.next) && !(p = p.call(s, y[1])).done) return p;
|
|
7007
|
+
switch (s = 0, p && (y = [y[0] & 2, p.value]), y[0]) {
|
|
7008
7008
|
case 0:
|
|
7009
7009
|
case 1:
|
|
7010
|
-
p =
|
|
7010
|
+
p = y;
|
|
7011
7011
|
break;
|
|
7012
7012
|
case 4:
|
|
7013
|
-
return i.label++, { value:
|
|
7013
|
+
return i.label++, { value: y[1], done: !1 };
|
|
7014
7014
|
case 5:
|
|
7015
|
-
i.label++, s =
|
|
7015
|
+
i.label++, s = y[1], y = [0];
|
|
7016
7016
|
continue;
|
|
7017
7017
|
case 7:
|
|
7018
|
-
|
|
7018
|
+
y = i.ops.pop(), i.trys.pop();
|
|
7019
7019
|
continue;
|
|
7020
7020
|
default:
|
|
7021
|
-
if (p = i.trys, !(p = p.length > 0 && p[p.length - 1]) && (
|
|
7021
|
+
if (p = i.trys, !(p = p.length > 0 && p[p.length - 1]) && (y[0] === 6 || y[0] === 2)) {
|
|
7022
7022
|
i = 0;
|
|
7023
7023
|
continue;
|
|
7024
7024
|
}
|
|
7025
|
-
if (
|
|
7026
|
-
i.label =
|
|
7025
|
+
if (y[0] === 3 && (!p || y[1] > p[0] && y[1] < p[3])) {
|
|
7026
|
+
i.label = y[1];
|
|
7027
7027
|
break;
|
|
7028
7028
|
}
|
|
7029
|
-
if (
|
|
7030
|
-
i.label = p[1], p =
|
|
7029
|
+
if (y[0] === 6 && i.label < p[1]) {
|
|
7030
|
+
i.label = p[1], p = y;
|
|
7031
7031
|
break;
|
|
7032
7032
|
}
|
|
7033
7033
|
if (p && i.label < p[2]) {
|
|
7034
|
-
i.label = p[2], i.ops.push(
|
|
7034
|
+
i.label = p[2], i.ops.push(y);
|
|
7035
7035
|
break;
|
|
7036
7036
|
}
|
|
7037
7037
|
p[2] && i.ops.pop(), i.trys.pop();
|
|
7038
7038
|
continue;
|
|
7039
7039
|
}
|
|
7040
|
-
|
|
7040
|
+
y = t.call(l, i);
|
|
7041
7041
|
} catch (f) {
|
|
7042
|
-
|
|
7042
|
+
y = [6, f], s = 0;
|
|
7043
7043
|
} finally {
|
|
7044
7044
|
o = p = 0;
|
|
7045
7045
|
}
|
|
7046
|
-
if (
|
|
7047
|
-
return { value:
|
|
7046
|
+
if (y[0] & 5) throw y[1];
|
|
7047
|
+
return { value: y[0] ? y[1] : void 0, done: !0 };
|
|
7048
7048
|
}
|
|
7049
7049
|
}, r = ma && ma.__spreadArray || function(l, t, i) {
|
|
7050
7050
|
if (i || arguments.length === 2) for (var o = 0, s = t.length, p; o < s; o++)
|
|
@@ -7052,7 +7052,7 @@ function Eo() {
|
|
|
7052
7052
|
return l.concat(p || Array.prototype.slice.call(t));
|
|
7053
7053
|
};
|
|
7054
7054
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
7055
|
-
var u = hi(), g = la(),
|
|
7055
|
+
var u = hi(), g = la(), U = function(l) {
|
|
7056
7056
|
return new Promise(function(t) {
|
|
7057
7057
|
return window.setTimeout(t, l);
|
|
7058
7058
|
});
|
|
@@ -7060,7 +7060,7 @@ function Eo() {
|
|
|
7060
7060
|
for (var i = [], o = 2; o < arguments.length; o++)
|
|
7061
7061
|
i[o - 2] = arguments[o];
|
|
7062
7062
|
return n(void 0, r([l, t], i, !0), void 0, function(s, p, m) {
|
|
7063
|
-
var _, c,
|
|
7063
|
+
var _, c, y, f, b, C, v, x;
|
|
7064
7064
|
return m === void 0 && (m = 0), a(this, function(D) {
|
|
7065
7065
|
switch (D.label) {
|
|
7066
7066
|
case 0:
|
|
@@ -7071,7 +7071,7 @@ function Eo() {
|
|
|
7071
7071
|
case 2:
|
|
7072
7072
|
return _ = D.sent(), [3, 9];
|
|
7073
7073
|
case 3:
|
|
7074
|
-
return D.sent(), p.current.retryOnError ? (c = (C = p.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < c ? (
|
|
7074
|
+
return D.sent(), p.current.retryOnError ? (c = (C = p.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < c ? (y = typeof p.current.reconnectInterval == "function" ? p.current.reconnectInterval(m) : p.current.reconnectInterval, [4, U(y ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
7075
7075
|
case 4:
|
|
7076
7076
|
return D.sent(), [2, (0, e.getUrl)(s, p, m + 1)];
|
|
7077
7077
|
case 5:
|
|
@@ -7102,12 +7102,12 @@ function No() {
|
|
|
7102
7102
|
var n = function(a, r) {
|
|
7103
7103
|
return new Proxy(a, {
|
|
7104
7104
|
get: function(u, g) {
|
|
7105
|
-
var
|
|
7106
|
-
return g === "reconnect" ? r : typeof
|
|
7107
|
-
}) :
|
|
7105
|
+
var U = u[g];
|
|
7106
|
+
return g === "reconnect" ? r : typeof U == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
|
|
7107
|
+
}) : U;
|
|
7108
7108
|
},
|
|
7109
|
-
set: function(u, g,
|
|
7110
|
-
return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (u[g] =
|
|
7109
|
+
set: function(u, g, U) {
|
|
7110
|
+
return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (u[g] = U, !0);
|
|
7111
7111
|
}
|
|
7112
7112
|
});
|
|
7113
7113
|
};
|
|
@@ -7127,12 +7127,12 @@ function xi() {
|
|
|
7127
7127
|
return s;
|
|
7128
7128
|
}, e.apply(this, arguments);
|
|
7129
7129
|
}, n = Ke && Ke.__awaiter || function(s, p, m, _) {
|
|
7130
|
-
function c(
|
|
7131
|
-
return
|
|
7132
|
-
f(
|
|
7130
|
+
function c(y) {
|
|
7131
|
+
return y instanceof m ? y : new m(function(f) {
|
|
7132
|
+
f(y);
|
|
7133
7133
|
});
|
|
7134
7134
|
}
|
|
7135
|
-
return new (m || (m = Promise))(function(
|
|
7135
|
+
return new (m || (m = Promise))(function(y, f) {
|
|
7136
7136
|
function b(x) {
|
|
7137
7137
|
try {
|
|
7138
7138
|
v(_.next(x));
|
|
@@ -7148,15 +7148,15 @@ function xi() {
|
|
|
7148
7148
|
}
|
|
7149
7149
|
}
|
|
7150
7150
|
function v(x) {
|
|
7151
|
-
x.done ?
|
|
7151
|
+
x.done ? y(x.value) : c(x.value).then(b, C);
|
|
7152
7152
|
}
|
|
7153
7153
|
v((_ = _.apply(s, p || [])).next());
|
|
7154
7154
|
});
|
|
7155
7155
|
}, a = Ke && Ke.__generator || function(s, p) {
|
|
7156
7156
|
var m = { label: 0, sent: function() {
|
|
7157
|
-
if (
|
|
7158
|
-
return
|
|
7159
|
-
}, trys: [], ops: [] }, _, c,
|
|
7157
|
+
if (y[0] & 1) throw y[1];
|
|
7158
|
+
return y[1];
|
|
7159
|
+
}, trys: [], ops: [] }, _, c, y, f = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
7160
7160
|
return f.next = b(0), f.throw = b(1), f.return = b(2), typeof Symbol == "function" && (f[Symbol.iterator] = function() {
|
|
7161
7161
|
return this;
|
|
7162
7162
|
}), f;
|
|
@@ -7168,11 +7168,11 @@ function xi() {
|
|
|
7168
7168
|
function C(v) {
|
|
7169
7169
|
if (_) throw new TypeError("Generator is already executing.");
|
|
7170
7170
|
for (; f && (f = 0, v[0] && (m = 0)), m; ) try {
|
|
7171
|
-
if (_ = 1, c && (
|
|
7172
|
-
switch (c = 0,
|
|
7171
|
+
if (_ = 1, c && (y = v[0] & 2 ? c.return : v[0] ? c.throw || ((y = c.return) && y.call(c), 0) : c.next) && !(y = y.call(c, v[1])).done) return y;
|
|
7172
|
+
switch (c = 0, y && (v = [v[0] & 2, y.value]), v[0]) {
|
|
7173
7173
|
case 0:
|
|
7174
7174
|
case 1:
|
|
7175
|
-
|
|
7175
|
+
y = v;
|
|
7176
7176
|
break;
|
|
7177
7177
|
case 4:
|
|
7178
7178
|
return m.label++, { value: v[1], done: !1 };
|
|
@@ -7183,30 +7183,30 @@ function xi() {
|
|
|
7183
7183
|
v = m.ops.pop(), m.trys.pop();
|
|
7184
7184
|
continue;
|
|
7185
7185
|
default:
|
|
7186
|
-
if (
|
|
7186
|
+
if (y = m.trys, !(y = y.length > 0 && y[y.length - 1]) && (v[0] === 6 || v[0] === 2)) {
|
|
7187
7187
|
m = 0;
|
|
7188
7188
|
continue;
|
|
7189
7189
|
}
|
|
7190
|
-
if (v[0] === 3 && (!
|
|
7190
|
+
if (v[0] === 3 && (!y || v[1] > y[0] && v[1] < y[3])) {
|
|
7191
7191
|
m.label = v[1];
|
|
7192
7192
|
break;
|
|
7193
7193
|
}
|
|
7194
|
-
if (v[0] === 6 && m.label <
|
|
7195
|
-
m.label =
|
|
7194
|
+
if (v[0] === 6 && m.label < y[1]) {
|
|
7195
|
+
m.label = y[1], y = v;
|
|
7196
7196
|
break;
|
|
7197
7197
|
}
|
|
7198
|
-
if (
|
|
7199
|
-
m.label =
|
|
7198
|
+
if (y && m.label < y[2]) {
|
|
7199
|
+
m.label = y[2], m.ops.push(v);
|
|
7200
7200
|
break;
|
|
7201
7201
|
}
|
|
7202
|
-
|
|
7202
|
+
y[2] && m.ops.pop(), m.trys.pop();
|
|
7203
7203
|
continue;
|
|
7204
7204
|
}
|
|
7205
7205
|
v = p.call(s, m);
|
|
7206
7206
|
} catch (x) {
|
|
7207
7207
|
v = [6, x], c = 0;
|
|
7208
7208
|
} finally {
|
|
7209
|
-
_ =
|
|
7209
|
+
_ = y = 0;
|
|
7210
7210
|
}
|
|
7211
7211
|
if (v[0] & 5) throw v[1];
|
|
7212
7212
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
@@ -7215,30 +7215,30 @@ function xi() {
|
|
|
7215
7215
|
return s && s.__esModule ? s : { default: s };
|
|
7216
7216
|
};
|
|
7217
7217
|
Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.useWebSocket = void 0;
|
|
7218
|
-
var u = fe, g = $r,
|
|
7219
|
-
p === void 0 && (p =
|
|
7220
|
-
var _ = (0, u.useState)(null), c = _[0],
|
|
7218
|
+
var u = fe, g = $r, U = la(), d = Do(), l = Eo(), t = r(No()), i = ki(), o = function(s, p, m) {
|
|
7219
|
+
p === void 0 && (p = U.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7220
|
+
var _ = (0, u.useState)(null), c = _[0], y = _[1], f = (0, u.useState)({}), b = f[0], C = f[1], v = (0, u.useMemo)(function() {
|
|
7221
7221
|
if (!p.disableJson && c)
|
|
7222
7222
|
try {
|
|
7223
7223
|
return JSON.parse(c.data);
|
|
7224
7224
|
} catch {
|
|
7225
|
-
return
|
|
7225
|
+
return U.UNPARSABLE_JSON_OBJECT;
|
|
7226
7226
|
}
|
|
7227
7227
|
return null;
|
|
7228
7228
|
}, [c, p.disableJson]), x = (0, u.useRef)(null), D = (0, u.useRef)(null), M = (0, u.useRef)(function() {
|
|
7229
7229
|
}), A = (0, u.useRef)(0), T = (0, u.useRef)(Date.now()), S = (0, u.useRef)([]), F = (0, u.useRef)(null), P = (0, u.useRef)(p);
|
|
7230
7230
|
P.current = p;
|
|
7231
|
-
var w = x.current && b[x.current] !== void 0 ? b[x.current] : s !== null && m === !0 ?
|
|
7231
|
+
var w = x.current && b[x.current] !== void 0 ? b[x.current] : s !== null && m === !0 ? U.ReadyState.CONNECTING : U.ReadyState.UNINSTANTIATED, R = p.queryParams ? JSON.stringify(p.queryParams) : null, L = (0, u.useCallback)(function(W, z) {
|
|
7232
7232
|
var G;
|
|
7233
|
-
if (z === void 0 && (z = !0),
|
|
7233
|
+
if (z === void 0 && (z = !0), U.isEventSourceSupported && D.current instanceof EventSource) {
|
|
7234
7234
|
console.warn("Unable to send a message from an eventSource");
|
|
7235
7235
|
return;
|
|
7236
7236
|
}
|
|
7237
|
-
((G = D.current) === null || G === void 0 ? void 0 : G.readyState) ===
|
|
7237
|
+
((G = D.current) === null || G === void 0 ? void 0 : G.readyState) === U.ReadyState.OPEN ? ((0, i.assertIsWebSocket)(D.current, P.current.skipAssert), D.current.send(W)) : z && S.current.push(W);
|
|
7238
7238
|
}, []), B = (0, u.useCallback)(function(W, z) {
|
|
7239
7239
|
z === void 0 && (z = !0), L(JSON.stringify(W), z);
|
|
7240
7240
|
}, [L]), O = (0, u.useCallback)(function() {
|
|
7241
|
-
return P.current.share !== !0 ||
|
|
7241
|
+
return P.current.share !== !0 || U.isEventSourceSupported && D.current instanceof EventSource ? D.current : (F.current === null && D.current && ((0, i.assertIsWebSocket)(D.current, P.current.skipAssert), F.current = (0, t.default)(D.current, M)), F.current);
|
|
7242
7242
|
}, []);
|
|
7243
7243
|
return (0, u.useEffect)(function() {
|
|
7244
7244
|
if (s !== null && m === !0) {
|
|
@@ -7252,14 +7252,14 @@ function xi() {
|
|
|
7252
7252
|
case 1:
|
|
7253
7253
|
return E.current = $.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7254
7254
|
return C(function(Z) {
|
|
7255
|
-
return e(e({}, Z), { ABORTED:
|
|
7255
|
+
return e(e({}, Z), { ABORTED: U.ReadyState.CLOSED });
|
|
7256
7256
|
});
|
|
7257
7257
|
}), [
|
|
7258
7258
|
2
|
|
7259
7259
|
/*return*/
|
|
7260
7260
|
]) : (N = function(Z) {
|
|
7261
7261
|
z || (0, g.flushSync)(function() {
|
|
7262
|
-
return
|
|
7262
|
+
return y(Z);
|
|
7263
7263
|
});
|
|
7264
7264
|
}, V = function(Z) {
|
|
7265
7265
|
z || (0, g.flushSync)(function() {
|
|
@@ -7279,14 +7279,14 @@ function xi() {
|
|
|
7279
7279
|
return M.current = function() {
|
|
7280
7280
|
z || (F.current && (F.current = null), W?.(), h());
|
|
7281
7281
|
}, h(), function() {
|
|
7282
|
-
z = !0, G = !1, F.current && (F.current = null), W?.(),
|
|
7282
|
+
z = !0, G = !1, F.current && (F.current = null), W?.(), y(null);
|
|
7283
7283
|
};
|
|
7284
7284
|
} else (s === null || m === !1) && (A.current = 0, C(function(E) {
|
|
7285
7285
|
var N;
|
|
7286
|
-
return e(e({}, E), x.current && (N = {}, N[x.current] =
|
|
7286
|
+
return e(e({}, E), x.current && (N = {}, N[x.current] = U.ReadyState.CLOSED, N));
|
|
7287
7287
|
}));
|
|
7288
7288
|
}, [s, m, R, L]), (0, u.useEffect)(function() {
|
|
7289
|
-
w ===
|
|
7289
|
+
w === U.ReadyState.OPEN && S.current.splice(0).forEach(function(W) {
|
|
7290
7290
|
L(W);
|
|
7291
7291
|
});
|
|
7292
7292
|
}, [w]), {
|
|
@@ -7328,46 +7328,46 @@ function Lo() {
|
|
|
7328
7328
|
type: t[0],
|
|
7329
7329
|
payload: t[1]
|
|
7330
7330
|
};
|
|
7331
|
-
},
|
|
7331
|
+
}, U = function(d, l, t) {
|
|
7332
7332
|
l === void 0 && (l = r.DEFAULT_OPTIONS), t === void 0 && (t = !0);
|
|
7333
7333
|
var i = (0, n.useMemo)(function() {
|
|
7334
7334
|
return e(e({}, l), { fromSocketIO: !0 });
|
|
7335
|
-
}, []), o = (0, a.useWebSocket)(d, i, t), s = o.sendMessage, p = o.sendJsonMessage, m = o.lastMessage, _ = o.readyState, c = o.getWebSocket,
|
|
7335
|
+
}, []), o = (0, a.useWebSocket)(d, i, t), s = o.sendMessage, p = o.sendJsonMessage, m = o.lastMessage, _ = o.readyState, c = o.getWebSocket, y = (0, n.useMemo)(function() {
|
|
7336
7336
|
return g(m);
|
|
7337
7337
|
}, [m]);
|
|
7338
7338
|
return {
|
|
7339
7339
|
sendMessage: s,
|
|
7340
7340
|
sendJsonMessage: p,
|
|
7341
|
-
lastMessage:
|
|
7342
|
-
lastJsonMessage:
|
|
7341
|
+
lastMessage: y,
|
|
7342
|
+
lastJsonMessage: y,
|
|
7343
7343
|
readyState: _,
|
|
7344
7344
|
getWebSocket: c
|
|
7345
7345
|
};
|
|
7346
7346
|
};
|
|
7347
|
-
return Ta.useSocketIO =
|
|
7347
|
+
return Ta.useSocketIO = U, Ta;
|
|
7348
7348
|
}
|
|
7349
7349
|
var ua = {}, Mn;
|
|
7350
7350
|
function Go() {
|
|
7351
7351
|
if (Mn) return ua;
|
|
7352
7352
|
Mn = 1;
|
|
7353
7353
|
var e = ua && ua.__assign || function() {
|
|
7354
|
-
return e = Object.assign || function(
|
|
7354
|
+
return e = Object.assign || function(U) {
|
|
7355
7355
|
for (var d, l = 1, t = arguments.length; l < t; l++) {
|
|
7356
7356
|
d = arguments[l];
|
|
7357
|
-
for (var i in d) Object.prototype.hasOwnProperty.call(d, i) && (
|
|
7357
|
+
for (var i in d) Object.prototype.hasOwnProperty.call(d, i) && (U[i] = d[i]);
|
|
7358
7358
|
}
|
|
7359
|
-
return
|
|
7359
|
+
return U;
|
|
7360
7360
|
}, e.apply(this, arguments);
|
|
7361
|
-
}, n = ua && ua.__rest || function(
|
|
7361
|
+
}, n = ua && ua.__rest || function(U, d) {
|
|
7362
7362
|
var l = {};
|
|
7363
|
-
for (var t in
|
|
7364
|
-
if (
|
|
7365
|
-
for (var i = 0, t = Object.getOwnPropertySymbols(
|
|
7366
|
-
d.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(
|
|
7363
|
+
for (var t in U) Object.prototype.hasOwnProperty.call(U, t) && d.indexOf(t) < 0 && (l[t] = U[t]);
|
|
7364
|
+
if (U != null && typeof Object.getOwnPropertySymbols == "function")
|
|
7365
|
+
for (var i = 0, t = Object.getOwnPropertySymbols(U); i < t.length; i++)
|
|
7366
|
+
d.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(U, t[i]) && (l[t[i]] = U[t[i]]);
|
|
7367
7367
|
return l;
|
|
7368
7368
|
};
|
|
7369
7369
|
Object.defineProperty(ua, "__esModule", { value: !0 }), ua.useEventSource = void 0;
|
|
7370
|
-
var a = fe, r = xi(), u = la(), g = function(
|
|
7370
|
+
var a = fe, r = xi(), u = la(), g = function(U, d, l) {
|
|
7371
7371
|
d === void 0 && (d = u.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7372
7372
|
var t = d.withCredentials, i = d.events, o = n(d, ["withCredentials", "events"]);
|
|
7373
7373
|
l === void 0 && (l = !0);
|
|
@@ -7375,7 +7375,7 @@ function Go() {
|
|
|
7375
7375
|
withCredentials: t
|
|
7376
7376
|
} }), p = (0, a.useRef)(u.EMPTY_EVENT_HANDLERS);
|
|
7377
7377
|
i && (p.current = i);
|
|
7378
|
-
var m = (0, r.useWebSocket)(
|
|
7378
|
+
var m = (0, r.useWebSocket)(U, s, l), _ = m.lastMessage, c = m.readyState, y = m.getWebSocket;
|
|
7379
7379
|
return (0, a.useEffect)(function() {
|
|
7380
7380
|
_?.type && Object.entries(p.current).forEach(function(f) {
|
|
7381
7381
|
var b = f[0], C = f[1];
|
|
@@ -7384,7 +7384,7 @@ function Go() {
|
|
|
7384
7384
|
}, [_]), {
|
|
7385
7385
|
lastEvent: _,
|
|
7386
7386
|
readyState: c,
|
|
7387
|
-
getEventSource:
|
|
7387
|
+
getEventSource: y
|
|
7388
7388
|
};
|
|
7389
7389
|
};
|
|
7390
7390
|
return ua.useEventSource = g, ua;
|
|
@@ -7423,7 +7423,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7423
7423
|
isInGameBox: r = !1,
|
|
7424
7424
|
currentGamePlatform: u = ""
|
|
7425
7425
|
}) => {
|
|
7426
|
-
const { store: g, lng:
|
|
7426
|
+
const { store: g, lng: U } = se(), { isReady: d, setAsReady: l, isPending: t, setAsPending: i } = Kn(), o = $e(U), { mutateAsync: s } = $o();
|
|
7427
7427
|
return !e || !n || !a ? { handleTransferInGame: () => {
|
|
7428
7428
|
} } : { handleTransferInGame: async () => {
|
|
7429
7429
|
console.log("執行遊戲內轉帳"), r && await s({
|
|
@@ -7474,14 +7474,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7474
7474
|
queryKey: Si,
|
|
7475
7475
|
queryFn: n,
|
|
7476
7476
|
select: (a) => {
|
|
7477
|
-
const r = j(a, "status", null), u = j(a, "remaining_days", null), g = j(a, "activated_at", null),
|
|
7477
|
+
const r = j(a, "status", null), u = j(a, "remaining_days", null), g = j(a, "activated_at", null), U = j(a, "is_under_maintenance", 0) === 1, d = j(a, "wagering_progress", []), l = j(a, "daily", []);
|
|
7478
7478
|
return {
|
|
7479
7479
|
...a,
|
|
7480
7480
|
hasActiveCard: r !== null,
|
|
7481
7481
|
status: r,
|
|
7482
7482
|
remainingDays: u,
|
|
7483
7483
|
activatedAt: g,
|
|
7484
|
-
isUnderMaintenance:
|
|
7484
|
+
isUnderMaintenance: U,
|
|
7485
7485
|
wageringProgress: d,
|
|
7486
7486
|
daily: l
|
|
7487
7487
|
};
|
|
@@ -7523,7 +7523,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7523
7523
|
}, [e]), r = H(async () => await e.get("/marquees"), [e]), u = H(async () => await e.get("/notification"), [e]), g = H(
|
|
7524
7524
|
async (l) => await e.put(`/notification/${l}/read`),
|
|
7525
7525
|
[e]
|
|
7526
|
-
),
|
|
7526
|
+
), U = H(
|
|
7527
7527
|
async (l) => {
|
|
7528
7528
|
const { phonecode: t } = l || {};
|
|
7529
7529
|
return await e.get("/verifyPhoneBarcode", {
|
|
@@ -7549,7 +7549,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7549
7549
|
commonMarqueeApi: r,
|
|
7550
7550
|
commonInboxApi: u,
|
|
7551
7551
|
commonReadInboxApi: g,
|
|
7552
|
-
verifyPhoneBarApi:
|
|
7552
|
+
verifyPhoneBarApi: U,
|
|
7553
7553
|
verifyDonationCodeApi: d,
|
|
7554
7554
|
announcementApi: a
|
|
7555
7555
|
};
|
|
@@ -7785,8 +7785,8 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7785
7785
|
GRAND: 0,
|
|
7786
7786
|
MEGA: 0
|
|
7787
7787
|
});
|
|
7788
|
-
return n ? Vr(n, (
|
|
7789
|
-
|
|
7788
|
+
return n ? Vr(n, (U, d) => {
|
|
7789
|
+
U.amount = j(u, d, 0) + Math.floor(Math.random() * 1e3);
|
|
7790
7790
|
}) : u;
|
|
7791
7791
|
},
|
|
7792
7792
|
...e
|
|
@@ -7831,7 +7831,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7831
7831
|
} = {}) => {
|
|
7832
7832
|
const n = Oo({ options: e.login }), a = Bo({ options: e.logout }), r = Ho({ options: e.register }), u = zo({ options: e.updateUserInfo }), g = Wo({
|
|
7833
7833
|
options: e.toggleFavoriteGame
|
|
7834
|
-
}),
|
|
7834
|
+
}), U = Io({
|
|
7835
7835
|
options: e.resetUserPassword
|
|
7836
7836
|
}), d = Vo({
|
|
7837
7837
|
options: e.memberInitSet
|
|
@@ -7846,7 +7846,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7846
7846
|
register: r,
|
|
7847
7847
|
updateUserInfo: u,
|
|
7848
7848
|
toggleFavoriteGame: g,
|
|
7849
|
-
resetUserPassword:
|
|
7849
|
+
resetUserPassword: U,
|
|
7850
7850
|
memberInitSet: d,
|
|
7851
7851
|
setUserTransactionPassword: l,
|
|
7852
7852
|
resetUserTransactionPassword: t,
|
|
@@ -7895,10 +7895,10 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7895
7895
|
currentGamePlatform: ""
|
|
7896
7896
|
},
|
|
7897
7897
|
enableNotification: g = !1,
|
|
7898
|
-
disabledLineAutoRegister:
|
|
7898
|
+
disabledLineAutoRegister: U = !1,
|
|
7899
7899
|
navigate: d = null
|
|
7900
7900
|
}) => {
|
|
7901
|
-
const { store: l, lng: t } = se(), i = xa(), { isReady: o, setAsReady: s, isPending: p, setAsPending: m } = Kn(), _ = $e(t), c = te(!1),
|
|
7901
|
+
const { store: l, lng: t } = se(), i = xa(), { isReady: o, setAsReady: s, isPending: p, setAsPending: m } = Kn(), _ = $e(t), c = te(!1), y = te(n), f = j(r, "uid", null), b = j(r, "cagent_uid", null);
|
|
7902
7902
|
j(r, "testFunction", 0);
|
|
7903
7903
|
const C = new URLSearchParams(window.location.search), v = j(
|
|
7904
7904
|
u,
|
|
@@ -7907,17 +7907,17 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7907
7907
|
), { mutateAsync: x } = lr({
|
|
7908
7908
|
options: {
|
|
7909
7909
|
onSuccess: (L) => {
|
|
7910
|
-
|
|
7910
|
+
y.current.onLineLogin?.(L);
|
|
7911
7911
|
},
|
|
7912
7912
|
retry: !1
|
|
7913
7913
|
}
|
|
7914
7914
|
}), { mutateAsync: D } = Qo({
|
|
7915
7915
|
options: {
|
|
7916
7916
|
onSuccess: (L) => {
|
|
7917
|
-
|
|
7917
|
+
y.current.onLineLogin?.(L);
|
|
7918
7918
|
},
|
|
7919
7919
|
onError: (L, B) => {
|
|
7920
|
-
|
|
7920
|
+
U || x(B);
|
|
7921
7921
|
}
|
|
7922
7922
|
}
|
|
7923
7923
|
}), { handleTransferInGame: M } = wo({
|
|
@@ -7973,7 +7973,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7973
7973
|
[g, l, _]
|
|
7974
7974
|
);
|
|
7975
7975
|
pe(() => {
|
|
7976
|
-
|
|
7976
|
+
y.current = n;
|
|
7977
7977
|
}, [n]);
|
|
7978
7978
|
const R = te(null);
|
|
7979
7979
|
return pe(() => {
|
|
@@ -7991,7 +7991,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7991
7991
|
onCashRegisterLimit: E,
|
|
7992
7992
|
onLineLogin: N,
|
|
7993
7993
|
onMonthlyCardIssuePoint: V
|
|
7994
|
-
} =
|
|
7994
|
+
} = y.current, $ = j(P, "type", ""), Z = {
|
|
7995
7995
|
memberInfoUid: j(P, "member_info_uid", null),
|
|
7996
7996
|
data: j(P, "data", null),
|
|
7997
7997
|
memo: j(P, "memo", null),
|
|
@@ -8164,51 +8164,55 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8164
8164
|
readyState: F
|
|
8165
8165
|
// WebSocket 連線狀態
|
|
8166
8166
|
};
|
|
8167
|
-
},
|
|
8167
|
+
}, Ia = () => {
|
|
8168
8168
|
const { client: e } = se(), n = H(
|
|
8169
|
-
async ({ paramsData:
|
|
8170
|
-
const { uid:
|
|
8171
|
-
return await e.get(`/event/list${
|
|
8169
|
+
async ({ paramsData: d } = {}) => {
|
|
8170
|
+
const { uid: l } = d || {};
|
|
8171
|
+
return await e.get(`/event/list${l ? `/${l}` : ""}`);
|
|
8172
8172
|
},
|
|
8173
8173
|
[e]
|
|
8174
8174
|
), a = H(
|
|
8175
|
-
async (
|
|
8176
|
-
params:
|
|
8175
|
+
async (d) => await e.get("/event/checkMemeberEventsWageringRestricted", {
|
|
8176
|
+
params: d
|
|
8177
8177
|
}),
|
|
8178
8178
|
[e]
|
|
8179
8179
|
), r = H(
|
|
8180
|
-
async (
|
|
8181
|
-
const { event_uid:
|
|
8182
|
-
return await e.get(`/event/${
|
|
8183
|
-
event_uid:
|
|
8180
|
+
async (d = {}) => {
|
|
8181
|
+
const { event_uid: l } = d || {};
|
|
8182
|
+
return await e.get(`/event/${l}/memberGetEventRewards`, {
|
|
8183
|
+
event_uid: l
|
|
8184
8184
|
});
|
|
8185
8185
|
},
|
|
8186
8186
|
[e]
|
|
8187
8187
|
), u = H(
|
|
8188
|
-
async (
|
|
8189
|
-
const { currency:
|
|
8188
|
+
async (d = {}) => {
|
|
8189
|
+
const { currency: l, event_uid: t } = d || {};
|
|
8190
8190
|
return await e.post("/event/checkMemberEventsStatus", {
|
|
8191
|
-
currency:
|
|
8192
|
-
event_uid:
|
|
8191
|
+
currency: l,
|
|
8192
|
+
event_uid: t
|
|
8193
8193
|
});
|
|
8194
8194
|
},
|
|
8195
8195
|
[e]
|
|
8196
8196
|
), g = H(
|
|
8197
|
-
async (
|
|
8198
|
-
const { uid:
|
|
8199
|
-
return await e.post(`/event/memberEventSettle/${
|
|
8197
|
+
async (d = {}) => {
|
|
8198
|
+
const { uid: l } = d || {};
|
|
8199
|
+
return await e.post(`/event/memberEventSettle/${l}`);
|
|
8200
8200
|
},
|
|
8201
8201
|
[e]
|
|
8202
|
+
), U = H(
|
|
8203
|
+
async (d = {}) => await e.post("/event/memberEventSettle", d),
|
|
8204
|
+
[e]
|
|
8202
8205
|
);
|
|
8203
8206
|
return {
|
|
8204
8207
|
eventListApi: n,
|
|
8205
8208
|
checkCurrentEventProgessApi: a,
|
|
8206
8209
|
checkEventStatusApi: u,
|
|
8207
8210
|
redeemEventRewardApi: r,
|
|
8208
|
-
settleEventApi: g
|
|
8211
|
+
settleEventApi: g,
|
|
8212
|
+
memberEventSettleApi: U
|
|
8209
8213
|
};
|
|
8210
8214
|
}, as = ({ paramsData: e, options: n } = {}) => {
|
|
8211
|
-
const { store: a, lng: r, data2URL: u } = se(), { eventListApi: g } =
|
|
8215
|
+
const { store: a, lng: r, data2URL: u } = se(), { eventListApi: g } = Ia(), U = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = $e(r);
|
|
8212
8216
|
return Q({
|
|
8213
8217
|
queryKey: ["eventList", e],
|
|
8214
8218
|
queryFn: () => g({ paramsData: e }),
|
|
@@ -8218,12 +8222,12 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8218
8222
|
return xe(t, (o) => {
|
|
8219
8223
|
const { events_attributes: s } = o, p = We(
|
|
8220
8224
|
s,
|
|
8221
|
-
(v) => v.attribute_currency ===
|
|
8225
|
+
(v) => v.attribute_currency === U
|
|
8222
8226
|
) || s[0], m = j(
|
|
8223
8227
|
p,
|
|
8224
8228
|
"rewards",
|
|
8225
8229
|
{}
|
|
8226
|
-
), _ = j(o, "carousels.[0]", {}), c = We(_.carousels_lang, (v) => v.lang === d) || _?.carousels_lang?.[0],
|
|
8230
|
+
), _ = j(o, "carousels.[0]", {}), c = We(_.carousels_lang, (v) => v.lang === d) || _?.carousels_lang?.[0], y = {
|
|
8227
8231
|
..._,
|
|
8228
8232
|
currentLngCarousel: {
|
|
8229
8233
|
...c,
|
|
@@ -8335,7 +8339,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8335
8339
|
eventBase: f,
|
|
8336
8340
|
eventAttribute: b,
|
|
8337
8341
|
eventReward: C,
|
|
8338
|
-
eventCarousel: { ...
|
|
8342
|
+
eventCarousel: { ...y },
|
|
8339
8343
|
originalData: o
|
|
8340
8344
|
};
|
|
8341
8345
|
});
|
|
@@ -8346,21 +8350,21 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8346
8350
|
...n
|
|
8347
8351
|
});
|
|
8348
8352
|
}, iu = ({ options: e } = {}) => {
|
|
8349
|
-
const { redeemEventRewardApi: n } =
|
|
8353
|
+
const { redeemEventRewardApi: n } = Ia();
|
|
8350
8354
|
return ee({
|
|
8351
8355
|
mutationKey: ["redeemEventReward"],
|
|
8352
8356
|
mutationFn: async (a) => n(a),
|
|
8353
8357
|
...e
|
|
8354
8358
|
});
|
|
8355
8359
|
}, ts = ({ options: e, formData: n } = {}) => {
|
|
8356
|
-
const { checkCurrentEventProgessApi: a } =
|
|
8360
|
+
const { checkCurrentEventProgessApi: a } = Ia();
|
|
8357
8361
|
return Q({
|
|
8358
8362
|
queryKey: ["checkEventProgress"],
|
|
8359
8363
|
queryFn: async () => a(n),
|
|
8360
8364
|
...e
|
|
8361
8365
|
});
|
|
8362
8366
|
}, is = ({ options: e, formData: n } = {}) => {
|
|
8363
|
-
const { checkEventStatusApi: a } =
|
|
8367
|
+
const { checkEventStatusApi: a } = Ia();
|
|
8364
8368
|
return Q({
|
|
8365
8369
|
queryKey: ["checkEventStatus"],
|
|
8366
8370
|
queryFn: async () => a(n),
|
|
@@ -8368,13 +8372,20 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8368
8372
|
...e
|
|
8369
8373
|
});
|
|
8370
8374
|
}, nu = ({ options: e } = {}) => {
|
|
8371
|
-
const { settleEventApi: n } =
|
|
8375
|
+
const { settleEventApi: n } = Ia();
|
|
8372
8376
|
return ee({
|
|
8373
8377
|
mutationKey: ["settleEvent"],
|
|
8374
8378
|
mutationFn: async (a) => n(a),
|
|
8375
8379
|
...e
|
|
8376
8380
|
});
|
|
8377
|
-
}, ru = ({
|
|
8381
|
+
}, ru = ({ options: e } = {}) => {
|
|
8382
|
+
const { memberEventSettleApi: n } = Ia();
|
|
8383
|
+
return ee({
|
|
8384
|
+
mutationKey: ["memberEventSettle"],
|
|
8385
|
+
mutationFn: async (a) => n(a),
|
|
8386
|
+
...e
|
|
8387
|
+
});
|
|
8388
|
+
}, lu = ({
|
|
8378
8389
|
options: e = {
|
|
8379
8390
|
eventList: {},
|
|
8380
8391
|
checkEventProgress: {},
|
|
@@ -8393,28 +8404,28 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8393
8404
|
};
|
|
8394
8405
|
}, tt = () => {
|
|
8395
8406
|
const { client: e } = se(), n = H(
|
|
8396
|
-
async ({ gamePlatform:
|
|
8397
|
-
`/gameBonusRestricted${
|
|
8407
|
+
async ({ gamePlatform: U, params: d } = {}) => await e.get(
|
|
8408
|
+
`/gameBonusRestricted${U ? `/${U}` : ""}`,
|
|
8398
8409
|
{
|
|
8399
8410
|
params: d
|
|
8400
8411
|
}
|
|
8401
8412
|
),
|
|
8402
8413
|
[e]
|
|
8403
8414
|
), a = H(
|
|
8404
|
-
async ({ eventUids:
|
|
8405
|
-
uids:
|
|
8415
|
+
async ({ eventUids: U = [] } = {}) => await e.post("/gameBonusRestricted/enable", {
|
|
8416
|
+
uids: U
|
|
8406
8417
|
}),
|
|
8407
8418
|
[e]
|
|
8408
8419
|
), r = H(
|
|
8409
|
-
async ({ gamePlatform:
|
|
8410
|
-
`/gameBonusRestricted/evaluate${
|
|
8420
|
+
async ({ gamePlatform: U = "" } = {}) => await e.post(
|
|
8421
|
+
`/gameBonusRestricted/evaluate${U ? `/${U}` : ""}`
|
|
8411
8422
|
),
|
|
8412
8423
|
[e]
|
|
8413
8424
|
), u = H(
|
|
8414
|
-
async ({ groupUid:
|
|
8425
|
+
async ({ groupUid: U = "" } = {}) => await e.post(`/gameBonusRestricted/settle/${U}`),
|
|
8415
8426
|
[e]
|
|
8416
8427
|
), g = H(
|
|
8417
|
-
async ({ groupUid:
|
|
8428
|
+
async ({ groupUid: U = "" } = {}) => await e.post(`/gameBonusRestricted/abandon/${U}`),
|
|
8418
8429
|
[e]
|
|
8419
8430
|
);
|
|
8420
8431
|
return {
|
|
@@ -8424,7 +8435,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8424
8435
|
settleEventWalletApi: u,
|
|
8425
8436
|
abandonEventWalletApi: g
|
|
8426
8437
|
};
|
|
8427
|
-
},
|
|
8438
|
+
}, ou = ({ gamePlatform: e, params: n } = {}) => {
|
|
8428
8439
|
const { eventWalletListApi: a } = tt();
|
|
8429
8440
|
return Q({
|
|
8430
8441
|
queryKey: ["getEventWalletList", e, n],
|
|
@@ -8433,7 +8444,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8433
8444
|
params: n
|
|
8434
8445
|
}),
|
|
8435
8446
|
select: (r) => {
|
|
8436
|
-
const u = j(r, "data", []), g = j(r, "summary", []),
|
|
8447
|
+
const u = j(r, "data", []), g = j(r, "summary", []), U = e ? We(g, (C) => C.platform === e) : g, d = j(u, "data", []), {
|
|
8437
8448
|
current_page: l,
|
|
8438
8449
|
first_page_url: t,
|
|
8439
8450
|
from: i,
|
|
@@ -8443,12 +8454,12 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8443
8454
|
path: m,
|
|
8444
8455
|
per_page: _,
|
|
8445
8456
|
prev_page_url: c,
|
|
8446
|
-
to:
|
|
8457
|
+
to: y,
|
|
8447
8458
|
total: f
|
|
8448
8459
|
} = u;
|
|
8449
8460
|
return {
|
|
8450
8461
|
list: d,
|
|
8451
|
-
summary:
|
|
8462
|
+
summary: U,
|
|
8452
8463
|
pagination: {
|
|
8453
8464
|
current_page: l,
|
|
8454
8465
|
first_page_url: t,
|
|
@@ -8459,13 +8470,13 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8459
8470
|
path: m,
|
|
8460
8471
|
per_page: _,
|
|
8461
8472
|
prev_page_url: c,
|
|
8462
|
-
to:
|
|
8473
|
+
to: y,
|
|
8463
8474
|
total: f
|
|
8464
8475
|
}
|
|
8465
8476
|
};
|
|
8466
8477
|
}
|
|
8467
8478
|
});
|
|
8468
|
-
},
|
|
8479
|
+
}, su = () => {
|
|
8469
8480
|
const e = xa(), { enabledEventWalletApi: n } = tt();
|
|
8470
8481
|
return ee({
|
|
8471
8482
|
mutationKey: ["enabledEventWallet"],
|
|
@@ -8474,23 +8485,23 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8474
8485
|
e.invalidateQueries({ queryKey: ["evaluateEventWallet"] });
|
|
8475
8486
|
}
|
|
8476
8487
|
});
|
|
8477
|
-
},
|
|
8488
|
+
}, mu = ({ gamePlatform: e = "", options: n = {} } = {}) => {
|
|
8478
8489
|
const { evaluateEventWalletApi: a } = tt();
|
|
8479
8490
|
return Q({
|
|
8480
8491
|
queryKey: ["evaluateEventWallet", e],
|
|
8481
8492
|
queryFn: async () => await a({ gamePlatform: e }),
|
|
8482
8493
|
select: (r) => {
|
|
8483
|
-
const u = j(r, "data", []), g = j(r, "summary", []),
|
|
8494
|
+
const u = j(r, "data", []), g = j(r, "summary", []), U = e ? We(g, (l) => l.platform === e) : g;
|
|
8484
8495
|
return {
|
|
8485
8496
|
list: j(u, "data", []),
|
|
8486
8497
|
summary: {
|
|
8487
|
-
...
|
|
8498
|
+
...U
|
|
8488
8499
|
}
|
|
8489
8500
|
};
|
|
8490
8501
|
},
|
|
8491
8502
|
...n
|
|
8492
8503
|
});
|
|
8493
|
-
},
|
|
8504
|
+
}, uu = () => {
|
|
8494
8505
|
const e = xa(), { settleEventWalletApi: n } = tt();
|
|
8495
8506
|
return ee({
|
|
8496
8507
|
mutationKey: ["settleEventWallet"],
|
|
@@ -8499,7 +8510,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8499
8510
|
e.invalidateQueries({ queryKey: ["getEventWalletList"] }), e.invalidateQueries({ queryKey: ["evaluateEventWallet"] }), e.invalidateQueries({ queryKey: ["playGame"] });
|
|
8500
8511
|
}
|
|
8501
8512
|
});
|
|
8502
|
-
},
|
|
8513
|
+
}, pu = () => {
|
|
8503
8514
|
const e = xa(), { abandonEventWalletApi: n } = tt();
|
|
8504
8515
|
return ee({
|
|
8505
8516
|
mutationKey: ["abandonEventWallet"],
|
|
@@ -8508,24 +8519,24 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8508
8519
|
e.invalidateQueries({ queryKey: ["getEventWalletList"] }), e.invalidateQueries({ queryKey: ["evaluateEventWallet"] }), e.invalidateQueries({ queryKey: ["playGame"] });
|
|
8509
8520
|
}
|
|
8510
8521
|
});
|
|
8511
|
-
},
|
|
8522
|
+
}, gu = ({ options: e } = {}) => {
|
|
8512
8523
|
const { lng: n } = se(), { announcementApi: a } = Ea(), r = $e(n);
|
|
8513
8524
|
return Q({
|
|
8514
8525
|
queryKey: ["getAnnouncement"],
|
|
8515
8526
|
queryFn: async () => await a(),
|
|
8516
8527
|
select: (u) => {
|
|
8517
8528
|
const g = Ye(u) ? u : u?.data ?? [];
|
|
8518
|
-
return xe(g, (
|
|
8519
|
-
const d = We(
|
|
8529
|
+
return xe(g, (U) => {
|
|
8530
|
+
const d = We(U?.news_language, { language: r }) || We(U?.news_language, { language: "en_US" }) || U?.news_language?.[0];
|
|
8520
8531
|
return {
|
|
8521
|
-
...
|
|
8532
|
+
...U,
|
|
8522
8533
|
currentLngData: d
|
|
8523
8534
|
};
|
|
8524
8535
|
});
|
|
8525
8536
|
},
|
|
8526
8537
|
...e
|
|
8527
8538
|
});
|
|
8528
|
-
},
|
|
8539
|
+
}, du = ({ skipPreload: e = !1 } = {}) => {
|
|
8529
8540
|
const { lng: n, data2URL: a } = se(), { commonCarouselApi: r } = Ea(), u = $e(n);
|
|
8530
8541
|
return Q({
|
|
8531
8542
|
queryKey: ["getCarouselList", e],
|
|
@@ -8553,7 +8564,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8553
8564
|
};
|
|
8554
8565
|
})
|
|
8555
8566
|
});
|
|
8556
|
-
},
|
|
8567
|
+
}, cu = () => {
|
|
8557
8568
|
const { lng: e, getToken: n } = se(), a = n?.(), { commonMarqueeApi: r } = Ea(), u = $e(e);
|
|
8558
8569
|
return Q({
|
|
8559
8570
|
queryKey: ["getMarqueeList", a],
|
|
@@ -8562,14 +8573,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8562
8573
|
return g && !a ? g : await r();
|
|
8563
8574
|
},
|
|
8564
8575
|
select: (g) => {
|
|
8565
|
-
const
|
|
8576
|
+
const U = Ye(g) ? g : g.Marquees, d = Ye(g) ? g : g.MarqueesInsideGameBox, l = xe(U, (i) => i[u] || i?.en_US), t = xe(d, (i) => i[u] || i?.en_US);
|
|
8566
8577
|
return {
|
|
8567
8578
|
marquee: l,
|
|
8568
8579
|
gameMarquee: t
|
|
8569
8580
|
};
|
|
8570
8581
|
}
|
|
8571
8582
|
});
|
|
8572
|
-
},
|
|
8583
|
+
}, fu = ({ options: e } = {}) => {
|
|
8573
8584
|
const { rankingGameApi: n } = ne();
|
|
8574
8585
|
return Q({
|
|
8575
8586
|
queryKey: ["rankingGame"],
|
|
@@ -8579,7 +8590,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8579
8590
|
const { data: r } = a;
|
|
8580
8591
|
return xe(r, (g) => {
|
|
8581
8592
|
const {
|
|
8582
|
-
game_uid:
|
|
8593
|
+
game_uid: U,
|
|
8583
8594
|
game_code: d,
|
|
8584
8595
|
game_name_en: l,
|
|
8585
8596
|
game_platform_uid: t,
|
|
@@ -8589,7 +8600,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8589
8600
|
profit: p
|
|
8590
8601
|
} = g;
|
|
8591
8602
|
return {
|
|
8592
|
-
gameUid:
|
|
8603
|
+
gameUid: U,
|
|
8593
8604
|
//遊戲UID
|
|
8594
8605
|
gameCode: d,
|
|
8595
8606
|
//遊戲代碼
|
|
@@ -8627,17 +8638,17 @@ var ns = Object.create, or = Object.defineProperty, rs = Object.getOwnPropertyDe
|
|
|
8627
8638
|
return function(m, _) {
|
|
8628
8639
|
return p.set(m, _), _;
|
|
8629
8640
|
};
|
|
8630
|
-
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER,
|
|
8641
|
+
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, U = 536870912, d = U * 2, l = function(p, m) {
|
|
8631
8642
|
return function(_) {
|
|
8632
|
-
var c = m.get(_),
|
|
8633
|
-
if (!_.has(
|
|
8634
|
-
if (_.size <
|
|
8635
|
-
for (; _.has(
|
|
8636
|
-
return p(_,
|
|
8643
|
+
var c = m.get(_), y = c === void 0 ? _.size : c < d ? c + 1 : 0;
|
|
8644
|
+
if (!_.has(y)) return p(_, y);
|
|
8645
|
+
if (_.size < U) {
|
|
8646
|
+
for (; _.has(y); ) y = Math.floor(Math.random() * d);
|
|
8647
|
+
return p(_, y);
|
|
8637
8648
|
}
|
|
8638
8649
|
if (_.size > g) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
8639
|
-
for (; _.has(
|
|
8640
|
-
return p(_,
|
|
8650
|
+
for (; _.has(y); ) y = Math.floor(Math.random() * g);
|
|
8651
|
+
return p(_, y);
|
|
8641
8652
|
};
|
|
8642
8653
|
}, t = /* @__PURE__ */ new WeakMap(), i = u(t), o = l(i, t), s = r(o);
|
|
8643
8654
|
a.addUniqueNumber = s, a.generateUniqueNumber = o;
|
|
@@ -8752,8 +8763,8 @@ var ys = class {
|
|
|
8752
8763
|
});
|
|
8753
8764
|
}, this.options.fallbackInterval), this.intervals.push(n);
|
|
8754
8765
|
let u = (g) => {
|
|
8755
|
-
let { action:
|
|
8756
|
-
|
|
8766
|
+
let { action: U } = g.data;
|
|
8767
|
+
U === 2 && this.apply().then(() => {
|
|
8757
8768
|
this.isLeader && r();
|
|
8758
8769
|
});
|
|
8759
8770
|
};
|
|
@@ -8905,13 +8916,13 @@ function mi(e, n) {
|
|
|
8905
8916
|
};
|
|
8906
8917
|
}
|
|
8907
8918
|
var ke = () => Date.now(), Oa = 2147483647;
|
|
8908
|
-
function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: a = 0, element: r = bs, events: u = Cs, timers: g = void 0, immediateEvents:
|
|
8919
|
+
function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: a = 0, element: r = bs, events: u = Cs, timers: g = void 0, immediateEvents: U = [], onPresenceChange: d = () => {
|
|
8909
8920
|
}, onPrompt: l = () => {
|
|
8910
8921
|
}, onIdle: t = () => {
|
|
8911
8922
|
}, onActive: i = () => {
|
|
8912
8923
|
}, onAction: o = () => {
|
|
8913
8924
|
}, onMessage: s = () => {
|
|
8914
|
-
}, debounce: p = 0, throttle: m = 0, eventsThrottle: _ = 200, startOnMount: c = !0, startManually:
|
|
8925
|
+
}, debounce: p = 0, throttle: m = 0, eventsThrottle: _ = 200, startOnMount: c = !0, startManually: y = !1, stopOnIdle: f = !1, crossTab: b = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: D = !1 } = {}) {
|
|
8915
8926
|
let M = te(ke()), A = te(ke()), T = te(null), S = te(null), F = te(0), P = te(0), w = te(0), R = te(0), L = te(!1), B = te(!1), O = te(!1), W = te(!0), z = te(!1), G = te(null), h = te(null), E = te(e), N = te(0);
|
|
8916
8927
|
pe(() => {
|
|
8917
8928
|
if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
@@ -8920,17 +8931,17 @@ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8920
8931
|
if (a >= Oa) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Oa}.`);
|
|
8921
8932
|
if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8922
8933
|
if (a ? (E.current = e - a, N.current = a) : (E.current = e, N.current = n), !W.current) {
|
|
8923
|
-
if (
|
|
8934
|
+
if (y || D) return;
|
|
8924
8935
|
L.current && (ge.current(null, Ee), h.current && h.current.active()), Xe();
|
|
8925
8936
|
}
|
|
8926
|
-
}, [e, n, a,
|
|
8937
|
+
}, [e, n, a, y, D]);
|
|
8927
8938
|
let V = te(f);
|
|
8928
8939
|
pe(() => {
|
|
8929
8940
|
V.current = f;
|
|
8930
8941
|
}, [f]);
|
|
8931
|
-
let $ = te(
|
|
8942
|
+
let $ = te(U), Z = te(r), K = te([...(/* @__PURE__ */ new Set([...u, ...U])).values()]), X = te(D);
|
|
8932
8943
|
pe(() => {
|
|
8933
|
-
X.current = D, !W.current && (D ? Ze() :
|
|
8944
|
+
X.current = D, !W.current && (D ? Ze() : y || Xe());
|
|
8934
8945
|
}, [D]);
|
|
8935
8946
|
let re = te(d);
|
|
8936
8947
|
pe(() => {
|
|
@@ -9012,7 +9023,7 @@ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9012
9023
|
pa && Z.current && (z.current || J) && (K.current.forEach((Ne) => {
|
|
9013
9024
|
Z.current.removeEventListener(Ne, ia.current, { capture: !0 });
|
|
9014
9025
|
}), z.current = !1);
|
|
9015
|
-
}, Xe = H((J) => X.current ? !1 : (ce(), De(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.start(), Ce(), !0), [G, L, X, E, h]), oa = H((J) => X.current ? !1 : (ce(), De(), A.current = ke(), F.current += ke() - T.current, P.current += ke() - T.current, F.current = 0, L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.reset(),
|
|
9026
|
+
}, Xe = H((J) => X.current ? !1 : (ce(), De(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.start(), Ce(), !0), [G, L, X, E, h]), oa = H((J) => X.current ? !1 : (ce(), De(), A.current = ke(), F.current += ke() - T.current, P.current += ke() - T.current, F.current = 0, L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.reset(), y || Ce(), !0), [G, L, E, y, X, h]), ga = H((J) => X.current ? !1 : (ce(), De(), (L.current || B.current) && he(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, A.current = ke(), h.current && !J && h.current.activate(), Ce(), !0), [G, L, B, X, E, h]), Ze = H((J = !1) => X.current || O.current ? !1 : (R.current = ya(), O.current = !0, Ae(), ce(), h.current && !J && h.current.pause(), !0), [G, X, h]), ea = H((J = !1) => X.current || !O.current ? !1 : (O.current = !1, B.current || De(), L.current || Ce(R.current), w.current && (w.current = ke()), h.current && !J && h.current.resume(), !0), [G, E, X, R, h]), Ja = H((J, Ne) => (h.current ? (Ne && Se.current(J, Ee), h.current.message(J)) : Ne && Se.current(J, Ee), !0), [s]), Na = H(() => L.current, [L]), La = H(() => B.current, [B]), Za = H(() => h.current ? h.current.isLeader : null, [h]), Ka = H(() => h.current ? h.current.isLastActive : null, [h]), da = H(() => h.current ? h.current.token : null, [h]), ya = H(() => {
|
|
9016
9027
|
if (O.current) return R.current;
|
|
9017
9028
|
let J = R.current ? R.current : N.current + E.current, Ne = S.current ? ke() - S.current : 0, na = Math.floor(J - Ne);
|
|
9018
9029
|
return na < 0 ? 0 : Math.abs(na);
|
|
@@ -9043,17 +9054,17 @@ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9043
9054
|
Se.current(J, Ee);
|
|
9044
9055
|
}, start: Xe, reset: oa, activate: ga, pause: Ze, resume: ea }) : h.current = null;
|
|
9045
9056
|
}, [b, C, x, Ue, be, ge, Se, Xe, oa, Ze, ea]), pe(() => {
|
|
9046
|
-
W.current || (ce(), Ae(!0)), !(
|
|
9047
|
-
}, [
|
|
9057
|
+
W.current || (ce(), Ae(!0)), !(y || D) && (c ? Xe() : De());
|
|
9058
|
+
}, [y, c, D, W]), pe(() => {
|
|
9048
9059
|
if (!W.current) {
|
|
9049
|
-
let J = [...(/* @__PURE__ */ new Set([...u, ...
|
|
9050
|
-
if (Ae(), K.current = J, Z.current = r, $.current =
|
|
9060
|
+
let J = [...(/* @__PURE__ */ new Set([...u, ...U])).values()];
|
|
9061
|
+
if (Ae(), K.current = J, Z.current = r, $.current = U, y || D) return;
|
|
9051
9062
|
c ? Xe() : De();
|
|
9052
9063
|
}
|
|
9053
|
-
}, [r, JSON.stringify(u), JSON.stringify(
|
|
9064
|
+
}, [r, JSON.stringify(u), JSON.stringify(U), W, D, y, c]), pe(() => {
|
|
9054
9065
|
W.current && (W.current = !1);
|
|
9055
9066
|
}, [W]);
|
|
9056
|
-
let Ee = { message:
|
|
9067
|
+
let Ee = { message: Ja, start: Xe, reset: oa, activate: ga, pause: Ze, resume: ea, isIdle: Na, isPrompted: La, isLeader: Za, isLastActiveTab: Ka, getTabId: da, getRemainingTime: ya, getElapsedTime: Qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Ga, getIdleTime: Ma, getTotalIdleTime: Ua, getActiveTime: Ra, getTotalActiveTime: Pa, setOnPresenceChange: (J) => {
|
|
9057
9068
|
d = J, re.current = J;
|
|
9058
9069
|
}, setOnPrompt: (J) => {
|
|
9059
9070
|
l = J, Ue.current = J;
|
|
@@ -9070,7 +9081,7 @@ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9070
9081
|
}
|
|
9071
9082
|
var Ts = jt(null);
|
|
9072
9083
|
Ts.Consumer;
|
|
9073
|
-
const
|
|
9084
|
+
const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
9074
9085
|
onIdle: e,
|
|
9075
9086
|
onActive: n,
|
|
9076
9087
|
onAction: a,
|
|
@@ -9081,8 +9092,8 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9081
9092
|
return Q({
|
|
9082
9093
|
queryKey: ["inboxList"],
|
|
9083
9094
|
queryFn: async () => await n(),
|
|
9084
|
-
select: (
|
|
9085
|
-
const { data: d } =
|
|
9095
|
+
select: (U) => {
|
|
9096
|
+
const { data: d } = U;
|
|
9086
9097
|
return xe(d, (t) => {
|
|
9087
9098
|
const { internal_notifications_language: i } = t;
|
|
9088
9099
|
return {
|
|
@@ -9104,7 +9115,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9104
9115
|
mutationFn: async (a) => await n(a),
|
|
9105
9116
|
...e
|
|
9106
9117
|
});
|
|
9107
|
-
},
|
|
9118
|
+
}, yu = ({
|
|
9108
9119
|
options: e = {
|
|
9109
9120
|
inboxList: {},
|
|
9110
9121
|
readInbox: {}
|
|
@@ -9171,16 +9182,16 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9171
9182
|
value: "other",
|
|
9172
9183
|
...e.other
|
|
9173
9184
|
}
|
|
9174
|
-
],
|
|
9185
|
+
], Uu = ({ options: e, formData: n } = {}) => {
|
|
9175
9186
|
const { lng: a } = se(), { newsListApi: r } = mr(), u = $e(a);
|
|
9176
9187
|
return Q({
|
|
9177
9188
|
queryKey: ["newsList"],
|
|
9178
9189
|
queryFn: () => {
|
|
9179
|
-
const { uid: g, params:
|
|
9180
|
-
return r({ uid: g, params:
|
|
9190
|
+
const { uid: g, params: U } = n || {};
|
|
9191
|
+
return r({ uid: g, params: U });
|
|
9181
9192
|
},
|
|
9182
9193
|
select: (g) => {
|
|
9183
|
-
const { data:
|
|
9194
|
+
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l = xe(d, (t) => {
|
|
9184
9195
|
const i = We(t.news_language, {
|
|
9185
9196
|
language: u
|
|
9186
9197
|
}) || t.news_language[0];
|
|
@@ -9197,21 +9208,21 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9197
9208
|
},
|
|
9198
9209
|
...e
|
|
9199
9210
|
});
|
|
9200
|
-
},
|
|
9211
|
+
}, bu = ({ options: e, formData: n } = {}) => {
|
|
9201
9212
|
const { lng: a } = se(), { newsListApi: r } = mr(), u = $e(a);
|
|
9202
9213
|
return Q({
|
|
9203
9214
|
queryKey: ["newsList"],
|
|
9204
9215
|
queryFn: () => {
|
|
9205
|
-
const { uid: g, params:
|
|
9206
|
-
return r({ uid: g, params:
|
|
9216
|
+
const { uid: g, params: U } = n || {};
|
|
9217
|
+
return r({ uid: g, params: U });
|
|
9207
9218
|
},
|
|
9208
9219
|
select: (g) => {
|
|
9209
|
-
const
|
|
9220
|
+
const U = We(g.data.news_language, {
|
|
9210
9221
|
language: u
|
|
9211
9222
|
}) || g.data.news_language[0];
|
|
9212
9223
|
return {
|
|
9213
9224
|
...g.data,
|
|
9214
|
-
currentLngData:
|
|
9225
|
+
currentLngData: U
|
|
9215
9226
|
};
|
|
9216
9227
|
},
|
|
9217
9228
|
...e
|
|
@@ -9224,10 +9235,10 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9224
9235
|
[e]
|
|
9225
9236
|
), r = H(
|
|
9226
9237
|
async (c) => {
|
|
9227
|
-
const { deposit_amount:
|
|
9238
|
+
const { deposit_amount: y, method_id: f, currency_code: b, provider_uid: C } = c;
|
|
9228
9239
|
return await e.post("/thirdPartyPayment/deposit", {
|
|
9229
9240
|
deposit: {
|
|
9230
|
-
deposit_amount:
|
|
9241
|
+
deposit_amount: y,
|
|
9231
9242
|
method_id: f,
|
|
9232
9243
|
currency_code: b,
|
|
9233
9244
|
provider_uid: C
|
|
@@ -9237,9 +9248,9 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9237
9248
|
[e]
|
|
9238
9249
|
), u = H(
|
|
9239
9250
|
async (c) => {
|
|
9240
|
-
const { bank_uid:
|
|
9251
|
+
const { bank_uid: y, amount: f, bank_number_last5: b, postscript: C } = c;
|
|
9241
9252
|
return await e.post("/vip/deposit", {
|
|
9242
|
-
bank_uid:
|
|
9253
|
+
bank_uid: y,
|
|
9243
9254
|
amount: f,
|
|
9244
9255
|
bank_number_last5: b,
|
|
9245
9256
|
postscript: C
|
|
@@ -9249,28 +9260,28 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9249
9260
|
), g = H(
|
|
9250
9261
|
async (c) => {
|
|
9251
9262
|
const {
|
|
9252
|
-
withdrawal_amount:
|
|
9263
|
+
withdrawal_amount: y,
|
|
9253
9264
|
bank_account_number: f,
|
|
9254
9265
|
currency_code: b,
|
|
9255
9266
|
withdrawal_code: C
|
|
9256
9267
|
} = c;
|
|
9257
9268
|
return await e.post("/thirdPartyPayment/withdraw", {
|
|
9258
9269
|
withdraw: {
|
|
9259
|
-
withdrawal_amount:
|
|
9270
|
+
withdrawal_amount: y,
|
|
9260
9271
|
bank_account_number: f,
|
|
9261
9272
|
currency_code: b,
|
|
9262
|
-
withdrawal_code:
|
|
9273
|
+
withdrawal_code: et.MD5(C).toString(),
|
|
9263
9274
|
payment_type: "ThirdParty"
|
|
9264
9275
|
}
|
|
9265
9276
|
});
|
|
9266
9277
|
},
|
|
9267
9278
|
[e]
|
|
9268
|
-
),
|
|
9279
|
+
), U = H(
|
|
9269
9280
|
async ({ paramsData: c } = {}) => {
|
|
9270
|
-
const { str_date:
|
|
9281
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Le().format("HH:mm:ss"), x = Le().subtract(24, "hour").format("HH:mm:ss");
|
|
9271
9282
|
return await e.get("/report/deposit", {
|
|
9272
9283
|
params: {
|
|
9273
|
-
str_date: `${Le(
|
|
9284
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} ${v}`,
|
|
9274
9285
|
end_date: `${Le(f).format("YYYY-MM-DD")} ${x}`,
|
|
9275
9286
|
limit: b,
|
|
9276
9287
|
page: C
|
|
@@ -9280,10 +9291,10 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9280
9291
|
[e]
|
|
9281
9292
|
), d = H(
|
|
9282
9293
|
async ({ paramsData: c }) => {
|
|
9283
|
-
const { str_date:
|
|
9294
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Le().format("HH:mm:ss"), x = Le().subtract(24, "hour").format("HH:mm:ss");
|
|
9284
9295
|
return await e.get("report/eventsreward", {
|
|
9285
9296
|
params: {
|
|
9286
|
-
str_date: `${Le(
|
|
9297
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} ${v}`,
|
|
9287
9298
|
end_date: `${Le(f).format("YYYY-MM-DD")} ${x}`,
|
|
9288
9299
|
limit: b,
|
|
9289
9300
|
page: C
|
|
@@ -9293,10 +9304,10 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9293
9304
|
[e]
|
|
9294
9305
|
), l = H(
|
|
9295
9306
|
async ({ paramsData: c } = {}) => {
|
|
9296
|
-
const { str_date:
|
|
9307
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9297
9308
|
return await e.get("/report/withdraw", {
|
|
9298
9309
|
params: {
|
|
9299
|
-
str_date: `${Le(
|
|
9310
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9300
9311
|
end_date: `${Le(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9301
9312
|
limit: b,
|
|
9302
9313
|
page: C
|
|
@@ -9306,10 +9317,10 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9306
9317
|
[e]
|
|
9307
9318
|
), t = H(
|
|
9308
9319
|
async ({ paramsData: c } = {}) => {
|
|
9309
|
-
const { str_date:
|
|
9320
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9310
9321
|
return await e.get("/report/other", {
|
|
9311
9322
|
params: {
|
|
9312
|
-
str_date: `${Le(
|
|
9323
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9313
9324
|
end_date: `${Le(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9314
9325
|
limit: b,
|
|
9315
9326
|
page: C
|
|
@@ -9319,30 +9330,30 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9319
9330
|
[e]
|
|
9320
9331
|
), i = H(
|
|
9321
9332
|
async (c) => {
|
|
9322
|
-
const { redeem_code:
|
|
9323
|
-
return await e.post(`/sn/redeem/${
|
|
9333
|
+
const { redeem_code: y } = c;
|
|
9334
|
+
return await e.post(`/sn/redeem/${y}`);
|
|
9324
9335
|
},
|
|
9325
9336
|
[e]
|
|
9326
9337
|
), o = H(
|
|
9327
9338
|
async (c) => {
|
|
9328
|
-
const { type:
|
|
9339
|
+
const { type: y, code: f } = c;
|
|
9329
9340
|
return await e.post("/member/invoice", {
|
|
9330
|
-
type:
|
|
9341
|
+
type: y,
|
|
9331
9342
|
code: f
|
|
9332
9343
|
});
|
|
9333
9344
|
},
|
|
9334
9345
|
[e]
|
|
9335
9346
|
), s = H(
|
|
9336
9347
|
async (c) => {
|
|
9337
|
-
const { type:
|
|
9348
|
+
const { type: y, code: f, uid: b } = c;
|
|
9338
9349
|
return await e.put(`/member/invoice/${b}`, {
|
|
9339
|
-
type:
|
|
9350
|
+
type: y,
|
|
9340
9351
|
code: f
|
|
9341
9352
|
});
|
|
9342
9353
|
},
|
|
9343
9354
|
[e]
|
|
9344
9355
|
), p = H(
|
|
9345
|
-
async (c,
|
|
9356
|
+
async (c, y) => {
|
|
9346
9357
|
const {
|
|
9347
9358
|
str_date: f,
|
|
9348
9359
|
end_date: b,
|
|
@@ -9351,7 +9362,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9351
9362
|
wallet_log_uid: x,
|
|
9352
9363
|
transhash: D
|
|
9353
9364
|
} = c;
|
|
9354
|
-
return await e.get(`/walletlog/${
|
|
9365
|
+
return await e.get(`/walletlog/${y}`, {
|
|
9355
9366
|
params: {
|
|
9356
9367
|
s_date: f,
|
|
9357
9368
|
e_date: b,
|
|
@@ -9366,7 +9377,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9366
9377
|
), m = H(
|
|
9367
9378
|
async (c) => {
|
|
9368
9379
|
const {
|
|
9369
|
-
str_date:
|
|
9380
|
+
str_date: y,
|
|
9370
9381
|
end_date: f,
|
|
9371
9382
|
limit: b = 25,
|
|
9372
9383
|
page: C = 1,
|
|
@@ -9374,7 +9385,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9374
9385
|
} = c;
|
|
9375
9386
|
return await e.get("/treasure/drawLog", {
|
|
9376
9387
|
params: {
|
|
9377
|
-
str_date:
|
|
9388
|
+
str_date: y,
|
|
9378
9389
|
end_date: f,
|
|
9379
9390
|
limit: b,
|
|
9380
9391
|
page: C,
|
|
@@ -9386,7 +9397,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9386
9397
|
), _ = H(
|
|
9387
9398
|
async (c) => {
|
|
9388
9399
|
const {
|
|
9389
|
-
str_date:
|
|
9400
|
+
str_date: y,
|
|
9390
9401
|
end_date: f,
|
|
9391
9402
|
limit: b = 25,
|
|
9392
9403
|
page: C = 1,
|
|
@@ -9394,7 +9405,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9394
9405
|
} = c;
|
|
9395
9406
|
return await e.get("/report/cash-deposit-orders", {
|
|
9396
9407
|
params: {
|
|
9397
|
-
str_date:
|
|
9408
|
+
str_date: y,
|
|
9398
9409
|
end_date: f,
|
|
9399
9410
|
limit: b,
|
|
9400
9411
|
page: C,
|
|
@@ -9410,7 +9421,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9410
9421
|
depositApi: r,
|
|
9411
9422
|
bankDepositApi: u,
|
|
9412
9423
|
withdrawApi: g,
|
|
9413
|
-
depositTransactionApi:
|
|
9424
|
+
depositTransactionApi: U,
|
|
9414
9425
|
eventTransactionApi: d,
|
|
9415
9426
|
withdrawTransactionApi: l,
|
|
9416
9427
|
redeemCodeDepositApi: i,
|
|
@@ -9434,7 +9445,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9434
9445
|
queryKey: ["depositV2", e],
|
|
9435
9446
|
queryFn: () => a({ paramsData: e }),
|
|
9436
9447
|
select: (r) => {
|
|
9437
|
-
const { third_party: u, bank: g, vip:
|
|
9448
|
+
const { third_party: u, bank: g, vip: U } = r, d = xe(u, (l) => ({
|
|
9438
9449
|
...l,
|
|
9439
9450
|
providerList: xe(l.providers, (t) => ({
|
|
9440
9451
|
...t,
|
|
@@ -9447,7 +9458,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9447
9458
|
}));
|
|
9448
9459
|
return {
|
|
9449
9460
|
bank: g,
|
|
9450
|
-
vip:
|
|
9461
|
+
vip: U,
|
|
9451
9462
|
thirdParty: d
|
|
9452
9463
|
};
|
|
9453
9464
|
},
|
|
@@ -9495,87 +9506,87 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9495
9506
|
queryFn: () => a({ paramsData: e }),
|
|
9496
9507
|
...n
|
|
9497
9508
|
});
|
|
9498
|
-
},
|
|
9509
|
+
}, Cu = ({ options: e } = {}) => {
|
|
9499
9510
|
const { redeemCodeDepositApi: n } = Re();
|
|
9500
9511
|
return ee({
|
|
9501
9512
|
mutationKey: ["redeemCodeDeposit"],
|
|
9502
9513
|
mutationFn: async (a) => n(a),
|
|
9503
9514
|
...e
|
|
9504
9515
|
});
|
|
9505
|
-
},
|
|
9516
|
+
}, vu = ({ options: e } = {}) => {
|
|
9506
9517
|
const { invoiceApi: n } = Re();
|
|
9507
9518
|
return ee({
|
|
9508
9519
|
mutationKey: ["invoiceAction"],
|
|
9509
9520
|
mutationFn: async (a) => n(a),
|
|
9510
9521
|
...e
|
|
9511
9522
|
});
|
|
9512
|
-
},
|
|
9523
|
+
}, hu = ({ options: e } = {}) => {
|
|
9513
9524
|
const { updateInvoiceApi: n } = Re();
|
|
9514
9525
|
return ee({
|
|
9515
9526
|
mutationKey: ["updateInvoiceAction"],
|
|
9516
9527
|
mutationFn: async (a) => n(a),
|
|
9517
9528
|
...e
|
|
9518
9529
|
});
|
|
9519
|
-
},
|
|
9530
|
+
}, Tu = ({ options: e, paramsData: n } = {}) => {
|
|
9520
9531
|
const { transactionRecordApi: a } = Re();
|
|
9521
9532
|
return Q({
|
|
9522
9533
|
queryKey: ["transactionRecord", "deposit"],
|
|
9523
9534
|
queryFn: () => a(n, "deposit"),
|
|
9524
9535
|
...e
|
|
9525
9536
|
});
|
|
9526
|
-
},
|
|
9537
|
+
}, ku = ({ options: e, paramsData: n } = {}) => {
|
|
9527
9538
|
const { transactionRecordApi: a } = Re();
|
|
9528
9539
|
return Q({
|
|
9529
9540
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9530
9541
|
queryFn: () => a(n, "withdraw"),
|
|
9531
9542
|
...e
|
|
9532
9543
|
});
|
|
9533
|
-
},
|
|
9544
|
+
}, xu = ({ options: e, paramsData: n } = {}) => {
|
|
9534
9545
|
const { transactionRecordApi: a } = Re();
|
|
9535
9546
|
return Q({
|
|
9536
9547
|
queryKey: ["transactionRecord", "event"],
|
|
9537
9548
|
queryFn: () => a(n, "event"),
|
|
9538
9549
|
...e
|
|
9539
9550
|
});
|
|
9540
|
-
},
|
|
9551
|
+
}, Su = ({ options: e, paramsData: n } = {}) => {
|
|
9541
9552
|
const { transactionRecordApi: a } = Re();
|
|
9542
9553
|
return Q({
|
|
9543
9554
|
queryKey: ["transactionRecord", "rebate"],
|
|
9544
9555
|
queryFn: () => a(n, "rebate"),
|
|
9545
9556
|
...e
|
|
9546
9557
|
});
|
|
9547
|
-
},
|
|
9558
|
+
}, Du = ({ options: e, paramsData: n } = {}) => {
|
|
9548
9559
|
const { treasureRecordApi: a } = Re();
|
|
9549
9560
|
return Q({
|
|
9550
9561
|
queryKey: ["treasureRecord", n],
|
|
9551
9562
|
queryFn: () => a(n),
|
|
9552
9563
|
...e
|
|
9553
9564
|
});
|
|
9554
|
-
},
|
|
9565
|
+
}, Eu = ({ options: e, paramsData: n } = {}) => {
|
|
9555
9566
|
const { snCashRecordApi: a } = Re();
|
|
9556
9567
|
return Q({
|
|
9557
9568
|
queryKey: ["snCashRecord", n],
|
|
9558
9569
|
queryFn: () => a(n),
|
|
9559
9570
|
...e
|
|
9560
9571
|
});
|
|
9561
|
-
},
|
|
9572
|
+
}, Nu = ({ options: e, paramsData: n } = {}) => {
|
|
9562
9573
|
const { otherTransactionApi: a } = Re();
|
|
9563
9574
|
return Q({
|
|
9564
9575
|
queryKey: ["otherTransaction", n],
|
|
9565
9576
|
queryFn: () => a({ paramsData: n }),
|
|
9566
9577
|
...e
|
|
9567
9578
|
});
|
|
9568
|
-
},
|
|
9579
|
+
}, Lu = ({
|
|
9569
9580
|
depositV1: e = {},
|
|
9570
9581
|
depositV2: n = {},
|
|
9571
9582
|
depositTransaction: a = {},
|
|
9572
9583
|
depositAction: r = {},
|
|
9573
9584
|
withdrawAction: u = {},
|
|
9574
9585
|
bankDeposit: g = {},
|
|
9575
|
-
eventTransaction:
|
|
9586
|
+
eventTransaction: U = {},
|
|
9576
9587
|
withdrawTransaction: d = {}
|
|
9577
9588
|
} = {}) => {
|
|
9578
|
-
const l = Ds(e), t = Es(n), i = Gs(a), o = Ns(r), s = Ls(u), p = Rs(g), m = Ms(
|
|
9589
|
+
const l = Ds(e), t = Es(n), i = Gs(a), o = Ns(r), s = Ls(u), p = Rs(g), m = Ms(U), _ = Ps(
|
|
9579
9590
|
d
|
|
9580
9591
|
);
|
|
9581
9592
|
return {
|
|
@@ -9588,19 +9599,19 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9588
9599
|
eventTransaction: m,
|
|
9589
9600
|
withdrawTransaction: _
|
|
9590
9601
|
};
|
|
9591
|
-
}, ur = "3.8.0", ws = ur,
|
|
9602
|
+
}, ur = "3.8.0", ws = ur, Va = typeof Buffer == "function", wn = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, Fn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Fs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Xa = Array.prototype.slice.call(Fs), ut = ((e) => {
|
|
9592
9603
|
let n = {};
|
|
9593
9604
|
return e.forEach((a, r) => n[a] = r), n;
|
|
9594
|
-
})(
|
|
9605
|
+
})(Xa), As = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Pe = String.fromCharCode.bind(String), An = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), pr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), gr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), dr = (e) => {
|
|
9595
9606
|
let n, a, r, u, g = "";
|
|
9596
|
-
const
|
|
9607
|
+
const U = e.length % 3;
|
|
9597
9608
|
for (let d = 0; d < e.length; ) {
|
|
9598
9609
|
if ((a = e.charCodeAt(d++)) > 255 || (r = e.charCodeAt(d++)) > 255 || (u = e.charCodeAt(d++)) > 255)
|
|
9599
9610
|
throw new TypeError("invalid character found");
|
|
9600
|
-
n = a << 16 | r << 8 | u, g +=
|
|
9611
|
+
n = a << 16 | r << 8 | u, g += Xa[n >> 18 & 63] + Xa[n >> 12 & 63] + Xa[n >> 6 & 63] + Xa[n & 63];
|
|
9601
9612
|
}
|
|
9602
|
-
return
|
|
9603
|
-
}, Di = typeof btoa == "function" ? (e) => btoa(e) :
|
|
9613
|
+
return U ? g.slice(0, U - 3) + "===".substring(U) : g;
|
|
9614
|
+
}, Di = typeof btoa == "function" ? (e) => btoa(e) : Va ? (e) => Buffer.from(e, "binary").toString("base64") : dr, gi = Va ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
9604
9615
|
let a = [];
|
|
9605
9616
|
for (let r = 0, u = e.length; r < u; r += 4096)
|
|
9606
9617
|
a.push(Pe.apply(null, e.subarray(r, r + 4096)));
|
|
@@ -9613,7 +9624,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9613
9624
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9614
9625
|
return Pe(240 | n >>> 18 & 7) + Pe(128 | n >>> 12 & 63) + Pe(128 | n >>> 6 & 63) + Pe(128 | n & 63);
|
|
9615
9626
|
}
|
|
9616
|
-
}, Bs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (e) => e.replace(Bs, Os), On =
|
|
9627
|
+
}, Bs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (e) => e.replace(Bs, Os), On = Va ? (e) => Buffer.from(e, "utf8").toString("base64") : Fn ? (e) => gi(Fn.encode(e)) : (e) => Di(cr(e)), za = (e, n = !1) => n ? pr(On(e)) : On(e), Bn = (e) => za(e, !0), Hs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ws = (e) => {
|
|
9617
9628
|
switch (e.length) {
|
|
9618
9629
|
case 4:
|
|
9619
9630
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), a = n - 65536;
|
|
@@ -9631,7 +9642,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9631
9642
|
for (let g = 0; g < e.length; )
|
|
9632
9643
|
n = ut[e.charAt(g++)] << 18 | ut[e.charAt(g++)] << 12 | (a = ut[e.charAt(g++)]) << 6 | (r = ut[e.charAt(g++)]), a === 64 ? u.push(Pe(n >> 16 & 255)) : r === 64 ? u.push(Pe(n >> 16 & 255, n >> 8 & 255)) : u.push(Pe(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9633
9644
|
return u.join("");
|
|
9634
|
-
}, Ei = typeof atob == "function" ? (e) => atob(gr(e)) :
|
|
9645
|
+
}, Ei = typeof atob == "function" ? (e) => atob(gr(e)) : Va ? (e) => Buffer.from(e, "base64").toString("binary") : _r, yr = Va ? (e) => An(Buffer.from(e, "base64")) : (e) => An(Ei(e).split("").map((n) => n.charCodeAt(0))), Ur = (e) => yr(br(e)), zs = Va ? (e) => Buffer.from(e, "base64").toString("utf8") : wn ? (e) => wn.decode(yr(e)) : (e) => fr(Ei(e)), br = (e) => gr(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), di = (e) => zs(br(e)), Is = (e) => {
|
|
9635
9646
|
if (typeof e != "string")
|
|
9636
9647
|
return !1;
|
|
9637
9648
|
const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -9686,16 +9697,16 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9686
9697
|
extendString: vr,
|
|
9687
9698
|
extendUint8Array: hr,
|
|
9688
9699
|
extendBuiltins: Vs
|
|
9689
|
-
},
|
|
9700
|
+
}, Gu = (e, n) => {
|
|
9690
9701
|
const { playGameApi: a } = Ci();
|
|
9691
9702
|
return Q({
|
|
9692
9703
|
queryKey: ["playGame"],
|
|
9693
9704
|
queryFn: async () => {
|
|
9694
|
-
const { gameUid: r, gameCode: u, isMobile: g, gameCurrency:
|
|
9705
|
+
const { gameUid: r, gameCode: u, isMobile: g, gameCurrency: U, currentCurrency: d } = e || {}, l = await a({
|
|
9695
9706
|
gameUid: r,
|
|
9696
9707
|
gameCode: u,
|
|
9697
9708
|
isMobile: g,
|
|
9698
|
-
gameCurrency:
|
|
9709
|
+
gameCurrency: U,
|
|
9699
9710
|
currentCurrency: d
|
|
9700
9711
|
}), {
|
|
9701
9712
|
game_currency: t,
|
|
@@ -9743,7 +9754,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9743
9754
|
mutationFn: async () => n(),
|
|
9744
9755
|
...e
|
|
9745
9756
|
});
|
|
9746
|
-
},
|
|
9757
|
+
}, Mu = ({
|
|
9747
9758
|
options: e = {
|
|
9748
9759
|
currentRebate: {},
|
|
9749
9760
|
receiveRebate: {}
|
|
@@ -9756,13 +9767,13 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9756
9767
|
};
|
|
9757
9768
|
}, it = () => {
|
|
9758
9769
|
const { client: e } = se(), n = H(
|
|
9759
|
-
async ({ uid:
|
|
9770
|
+
async ({ uid: U, params: d } = {}) => await e.get(`/memberRewards${U ? `/${U}` : ""}`, {
|
|
9760
9771
|
params: d
|
|
9761
9772
|
}),
|
|
9762
9773
|
[e]
|
|
9763
9774
|
), a = H(async () => await e.get("/memberRewards/member/unused"), [e]), r = H(async () => await e.get("/memberRewards/member/expired"), [e]), u = H(
|
|
9764
|
-
async (
|
|
9765
|
-
memberRewards_uid:
|
|
9775
|
+
async (U) => await e.post("/memberRewards/memberGetRewards", {
|
|
9776
|
+
memberRewards_uid: U
|
|
9766
9777
|
}),
|
|
9767
9778
|
[e]
|
|
9768
9779
|
), g = H(async () => await e.get("/memberRewards/member/history"), [e]);
|
|
@@ -9785,7 +9796,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9785
9796
|
try {
|
|
9786
9797
|
const u = xe(j(r, "data.data", []), (g) => {
|
|
9787
9798
|
const {
|
|
9788
|
-
wagering_restricted_amount:
|
|
9799
|
+
wagering_restricted_amount: U,
|
|
9789
9800
|
claimed_amount: d
|
|
9790
9801
|
} = g, l = j(g, "rewards", {}), {
|
|
9791
9802
|
expiration_days: t,
|
|
@@ -9801,7 +9812,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9801
9812
|
rewardPosition: o,
|
|
9802
9813
|
rewardType: s,
|
|
9803
9814
|
rewardUid: p,
|
|
9804
|
-
rewardWagering:
|
|
9815
|
+
rewardWagering: U,
|
|
9805
9816
|
rewardAmount: d,
|
|
9806
9817
|
rewardBg: $n(),
|
|
9807
9818
|
rewardIcon: qn("win")
|
|
@@ -9848,7 +9859,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9848
9859
|
queryFn: n,
|
|
9849
9860
|
...e
|
|
9850
9861
|
});
|
|
9851
|
-
},
|
|
9862
|
+
}, Ru = ({
|
|
9852
9863
|
options: e = {
|
|
9853
9864
|
rewardsList: {},
|
|
9854
9865
|
redeemReward: {},
|
|
@@ -9879,7 +9890,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9879
9890
|
const {
|
|
9880
9891
|
startTime: u = "2025-12-30 00:00:00",
|
|
9881
9892
|
endTime: g = "2026-12-31 23:59:59",
|
|
9882
|
-
isActive:
|
|
9893
|
+
isActive: U = 1,
|
|
9883
9894
|
showUnavailable: d = 1,
|
|
9884
9895
|
orderBy: l = "total_prize_money",
|
|
9885
9896
|
//total_prize_money,updated_at,created_at
|
|
@@ -9889,7 +9900,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9889
9900
|
params: {
|
|
9890
9901
|
start_time: u,
|
|
9891
9902
|
end_time: g,
|
|
9892
|
-
is_active:
|
|
9903
|
+
is_active: U,
|
|
9893
9904
|
show_unavailable: d,
|
|
9894
9905
|
order_by: l,
|
|
9895
9906
|
page: t
|
|
@@ -9908,13 +9919,13 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9908
9919
|
treasureListApi: n,
|
|
9909
9920
|
redeemTreasureApi: a
|
|
9910
9921
|
};
|
|
9911
|
-
},
|
|
9922
|
+
}, Pu = ({ paramsData: e, options: n } = {}) => {
|
|
9912
9923
|
const { client: a, lng: r } = se(), u = $e(r || "tw"), { treasureListApi: g } = kr();
|
|
9913
9924
|
return Q({
|
|
9914
9925
|
queryKey: ["treasureList", e],
|
|
9915
9926
|
queryFn: () => g(e),
|
|
9916
|
-
select: (
|
|
9917
|
-
const d = j(
|
|
9927
|
+
select: (U) => {
|
|
9928
|
+
const d = j(U, "data", {}), l = {
|
|
9918
9929
|
current_page: j(d, "current_page", 1),
|
|
9919
9930
|
per_page: j(d, "per_page", 10),
|
|
9920
9931
|
total: j(d, "total", 1),
|
|
@@ -9936,7 +9947,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9936
9947
|
},
|
|
9937
9948
|
...n
|
|
9938
9949
|
});
|
|
9939
|
-
},
|
|
9950
|
+
}, wu = ({ options: e } = {}) => {
|
|
9940
9951
|
const { redeemTreasureApi: n } = kr();
|
|
9941
9952
|
return ee({
|
|
9942
9953
|
mutationKey: ["redeemTreasure"],
|
|
@@ -9949,13 +9960,13 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9949
9960
|
vipListApi: n,
|
|
9950
9961
|
vipInfoApi: a
|
|
9951
9962
|
};
|
|
9952
|
-
},
|
|
9963
|
+
}, Fu = ({ options: e } = {}) => {
|
|
9953
9964
|
const { store: n } = se(), a = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: r } = xr();
|
|
9954
9965
|
return Q({
|
|
9955
9966
|
queryKey: ["vipInfo"],
|
|
9956
9967
|
queryFn: async () => r(),
|
|
9957
9968
|
select: (u) => {
|
|
9958
|
-
const { data: g } = u,
|
|
9969
|
+
const { data: g } = u, U = j(g, "data", []), d = xe(U, (t) => ({
|
|
9959
9970
|
currentWager: t.wagering || t.value,
|
|
9960
9971
|
currentStatus: t.status,
|
|
9961
9972
|
currentOverflow: t.promotion_overflow,
|
|
@@ -9994,9 +10005,9 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9994
10005
|
} = d, p = We(l, { currency_code: a }) || {}, m = We(t, { currency_code: a }) || {}, _ = i, c = xe(o, (b) => ({
|
|
9995
10006
|
...b,
|
|
9996
10007
|
rebateRange: JSON.parse(b.rebate_range)
|
|
9997
|
-
})),
|
|
9998
|
-
...
|
|
9999
|
-
platformRebate: JSON.parse(
|
|
10008
|
+
})), y = j(s, "[0]", {}), f = {
|
|
10009
|
+
...y,
|
|
10010
|
+
platformRebate: JSON.parse(y.rebate || "{}")
|
|
10000
10011
|
};
|
|
10001
10012
|
return {
|
|
10002
10013
|
...d,
|
|
@@ -10011,29 +10022,29 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10011
10022
|
},
|
|
10012
10023
|
...e
|
|
10013
10024
|
});
|
|
10014
|
-
},
|
|
10025
|
+
}, Au = ({ options: e } = {
|
|
10015
10026
|
vipList: {}
|
|
10016
10027
|
}) => ({
|
|
10017
10028
|
vipList: Xs({ options: e.vipList })
|
|
10018
|
-
}),
|
|
10019
|
-
const [n, a] =
|
|
10029
|
+
}), Ou = ({ onMessage: e } = {}) => {
|
|
10030
|
+
const [n, a] = at(!1), [r, u] = at([]), g = te(e);
|
|
10020
10031
|
g.current = e;
|
|
10021
|
-
const
|
|
10032
|
+
const U = H((o) => {
|
|
10022
10033
|
const s = (/* @__PURE__ */ new Date()).toLocaleTimeString("zh-TW");
|
|
10023
10034
|
u((p) => [...p, { time: s, message: o }]);
|
|
10024
10035
|
}, []);
|
|
10025
10036
|
pe(() => {
|
|
10026
10037
|
if (window.chrome && window.chrome.webview) {
|
|
10027
|
-
a(!0),
|
|
10038
|
+
a(!0), U("WebView2 環境已就緒");
|
|
10028
10039
|
const o = (s) => {
|
|
10029
|
-
|
|
10040
|
+
U(`收到 C# 回覆:${s.data}`), g.current?.(s.data);
|
|
10030
10041
|
};
|
|
10031
10042
|
return window.chrome.webview.addEventListener("message", o), () => {
|
|
10032
10043
|
window.chrome.webview.removeEventListener("message", o);
|
|
10033
10044
|
};
|
|
10034
10045
|
} else
|
|
10035
|
-
a(!1),
|
|
10036
|
-
}, [
|
|
10046
|
+
a(!1), U("目前為一般瀏覽器環境,無法與 C# 通訊");
|
|
10047
|
+
}, [U]);
|
|
10037
10048
|
const d = H(
|
|
10038
10049
|
(o) => {
|
|
10039
10050
|
const s = (/* @__PURE__ */ new Date()).toLocaleTimeString("zh-TW");
|
|
@@ -10043,11 +10054,11 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10043
10054
|
timestamp: s,
|
|
10044
10055
|
source: "test_buttons"
|
|
10045
10056
|
});
|
|
10046
|
-
window.chrome.webview.postMessage(p),
|
|
10057
|
+
window.chrome.webview.postMessage(p), U(`已傳送 [${o}] 到 C#`);
|
|
10047
10058
|
} else
|
|
10048
|
-
|
|
10059
|
+
U(`模擬傳送 [${o}](非 WebView2 環境)`);
|
|
10049
10060
|
},
|
|
10050
|
-
[
|
|
10061
|
+
[U]
|
|
10051
10062
|
), l = H(() => d("home"), [d]), t = H(
|
|
10052
10063
|
() => d("clearcatch"),
|
|
10053
10064
|
[d]
|
|
@@ -10063,7 +10074,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10063
10074
|
webViewRestartMoneyMachine: i,
|
|
10064
10075
|
logs: r
|
|
10065
10076
|
};
|
|
10066
|
-
}, pt = "game-icon-ds88",
|
|
10077
|
+
}, pt = "game-icon-ds88", Bu = ({ gameData: e = {} } = {}) => {
|
|
10067
10078
|
const { lng: n } = se(), a = tl(n), {
|
|
10068
10079
|
gameCode: r,
|
|
10069
10080
|
// 遊戲代碼
|
|
@@ -10071,7 +10082,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10071
10082
|
// 遊戲唯一標識符
|
|
10072
10083
|
gameTypeUid: g,
|
|
10073
10084
|
// 遊戲類型唯一標識符
|
|
10074
|
-
platformUid:
|
|
10085
|
+
platformUid: U,
|
|
10075
10086
|
// 平台唯一標識符
|
|
10076
10087
|
// platform_enum: platformEnum, // 平台枚舉
|
|
10077
10088
|
currencyCode: d,
|
|
@@ -10093,7 +10104,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10093
10104
|
support_horizontal: _,
|
|
10094
10105
|
// 是否支援橫向
|
|
10095
10106
|
popularityRanking: c,
|
|
10096
|
-
is_invalid_bet:
|
|
10107
|
+
is_invalid_bet: y,
|
|
10097
10108
|
// 是否無效投注
|
|
10098
10109
|
haveJackpot: f,
|
|
10099
10110
|
// 是否有累積獎金
|
|
@@ -10112,7 +10123,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10112
10123
|
gameCode: r,
|
|
10113
10124
|
gameUid: u,
|
|
10114
10125
|
gameTypeUid: g,
|
|
10115
|
-
providerUid:
|
|
10126
|
+
providerUid: U,
|
|
10116
10127
|
supportCurrency: d,
|
|
10117
10128
|
enterLobbyMode: l,
|
|
10118
10129
|
gamePlatform: t,
|
|
@@ -10133,7 +10144,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10133
10144
|
fallbackGameImageUrl: S,
|
|
10134
10145
|
fallbackGameImageUrlAnimated: F,
|
|
10135
10146
|
popularityRanking: c,
|
|
10136
|
-
isInvalidBet:
|
|
10147
|
+
isInvalidBet: y,
|
|
10137
10148
|
haveJackpot: f
|
|
10138
10149
|
};
|
|
10139
10150
|
}, em = (e, n = !1) => Kr([
|
|
@@ -10147,7 +10158,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10147
10158
|
"HACK",
|
|
10148
10159
|
"NAGA",
|
|
10149
10160
|
"RSG"
|
|
10150
|
-
], e) && n ? `${e}_dark` : e,
|
|
10161
|
+
], e) && n ? `${e}_dark` : e, Hu = ({ platformData: e, darkMode: n } = {}) => {
|
|
10151
10162
|
const {
|
|
10152
10163
|
SubPlatformEnum: a,
|
|
10153
10164
|
// 子平台枚舉
|
|
@@ -10157,7 +10168,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10157
10168
|
// 是否維護中
|
|
10158
10169
|
maintenanceStartTime: g,
|
|
10159
10170
|
// 維護開始時間
|
|
10160
|
-
maintenanceEndTime:
|
|
10171
|
+
maintenanceEndTime: U,
|
|
10161
10172
|
// 維護結束時間
|
|
10162
10173
|
platform: d,
|
|
10163
10174
|
// 平台代碼
|
|
@@ -10175,7 +10186,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10175
10186
|
platformEnum: r,
|
|
10176
10187
|
isUnderMaintenance: u,
|
|
10177
10188
|
maintenanceStartTime: g,
|
|
10178
|
-
maintenanceEndTime:
|
|
10189
|
+
maintenanceEndTime: U,
|
|
10179
10190
|
platform: d,
|
|
10180
10191
|
platformUid: l,
|
|
10181
10192
|
platformMode: t,
|
|
@@ -10194,23 +10205,23 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10194
10205
|
gameList: a = {},
|
|
10195
10206
|
allGameTypes: r = [],
|
|
10196
10207
|
allPlatforms: u = []
|
|
10197
|
-
}) => !Ye(e) || !Ye(n) ? {} : Ge(a) ? {} : e.reduce((g,
|
|
10208
|
+
}) => !Ye(e) || !Ye(n) ? {} : Ge(a) ? {} : e.reduce((g, U) => {
|
|
10198
10209
|
const d = nl({
|
|
10199
|
-
gameTypeName:
|
|
10210
|
+
gameTypeName: U,
|
|
10200
10211
|
platforms: n,
|
|
10201
10212
|
gameList: a,
|
|
10202
10213
|
allGameTypes: r,
|
|
10203
10214
|
allPlatforms: u
|
|
10204
10215
|
});
|
|
10205
|
-
return Ge(d) || (g[
|
|
10206
|
-
}, {}),
|
|
10216
|
+
return Ge(d) || (g[U] = d), g;
|
|
10217
|
+
}, {}), Wu = ({
|
|
10207
10218
|
types: e = [],
|
|
10208
10219
|
platforms: n = [],
|
|
10209
10220
|
allGameType: a = [],
|
|
10210
10221
|
allGamePlatform: r = [],
|
|
10211
10222
|
allGameList: u = {}
|
|
10212
|
-
} = {}) => !Array.isArray(e) || !Array.isArray(n) ? {} : e.reduce((g,
|
|
10213
|
-
const d = Yn(a,
|
|
10223
|
+
} = {}) => !Array.isArray(e) || !Array.isArray(n) ? {} : e.reduce((g, U) => {
|
|
10224
|
+
const d = Yn(a, U);
|
|
10214
10225
|
if (!d) return g;
|
|
10215
10226
|
const l = u[d] || [], t = n.reduce((i, o) => {
|
|
10216
10227
|
const s = rl({
|
|
@@ -10220,7 +10231,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10220
10231
|
});
|
|
10221
10232
|
return Ge(s) ? i : { ...i, [o]: s };
|
|
10222
10233
|
}, {});
|
|
10223
|
-
return Ge(t) || (g[
|
|
10234
|
+
return Ge(t) || (g[U] = t), g;
|
|
10224
10235
|
}, {}), om = (e = {}) => !Yt(e) || Ge(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([u, g]) => {
|
|
10225
10236
|
a[u] ? a[u] = [...a[u], ...g] : a[u] = g;
|
|
10226
10237
|
}), a), {}), sm = (e = {}) => {
|
|
@@ -10241,13 +10252,13 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10241
10252
|
allGame_subtype: r = [],
|
|
10242
10253
|
allNewGameList: u = [],
|
|
10243
10254
|
allTopGameList: g = [],
|
|
10244
|
-
randomlySelectedGames:
|
|
10255
|
+
randomlySelectedGames: U = [],
|
|
10245
10256
|
userFavoriteGame: d = {},
|
|
10246
10257
|
exclusiveBrandGames: l = [],
|
|
10247
10258
|
highlightGames: t = [],
|
|
10248
10259
|
originPlatform: i = []
|
|
10249
10260
|
}) => {
|
|
10250
|
-
const o = am(e), s = Hn(n), p = tm(a), m = im(r), _ = Hn(i), c = nm(d),
|
|
10261
|
+
const o = am(e), s = Hn(n), p = tm(a), m = im(r), _ = Hn(i), c = nm(d), y = lm({
|
|
10251
10262
|
gameTypes: p,
|
|
10252
10263
|
platforms: s,
|
|
10253
10264
|
gameList: e,
|
|
@@ -10259,14 +10270,14 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10259
10270
|
...M,
|
|
10260
10271
|
platformImageUrl: A
|
|
10261
10272
|
};
|
|
10262
|
-
}), b = rm(o, r), C = om(
|
|
10273
|
+
}), b = rm(o, r), C = om(y), v = sm(C), x = Vn(y).reduce(
|
|
10263
10274
|
(M, [A, T]) => {
|
|
10264
10275
|
const S = Xt(qr(T));
|
|
10265
10276
|
return M[A] = S, M;
|
|
10266
10277
|
},
|
|
10267
10278
|
{}
|
|
10268
|
-
), D = Li(
|
|
10269
|
-
const T = Li(
|
|
10279
|
+
), D = Li(y).reduce((M, A) => {
|
|
10280
|
+
const T = Li(y[A]);
|
|
10270
10281
|
return M[A] = T, M;
|
|
10271
10282
|
}, {});
|
|
10272
10283
|
return {
|
|
@@ -10289,20 +10300,20 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10289
10300
|
favorite: c,
|
|
10290
10301
|
highlight: t,
|
|
10291
10302
|
exclusiveBrand: l,
|
|
10292
|
-
randomlySelected:
|
|
10303
|
+
randomlySelected: U
|
|
10293
10304
|
},
|
|
10294
10305
|
categorized: {
|
|
10295
10306
|
bySubType: { ...b, MyFavorite: c },
|
|
10296
10307
|
byPlatform: C,
|
|
10297
10308
|
byPlatformAndCategory: v,
|
|
10298
|
-
byGameTypeAndPlatform:
|
|
10309
|
+
byGameTypeAndPlatform: y,
|
|
10299
10310
|
byGameType: x
|
|
10300
10311
|
},
|
|
10301
10312
|
user: {
|
|
10302
10313
|
favorite: c
|
|
10303
10314
|
}
|
|
10304
10315
|
};
|
|
10305
|
-
},
|
|
10316
|
+
}, zu = (e = []) => !Ye(e) || Ge(e) ? [] : Xt(e, (n) => Ge(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
|
|
10306
10317
|
...n,
|
|
10307
10318
|
...a,
|
|
10308
10319
|
platform: a.SubPlatformEnum,
|
|
@@ -10328,7 +10339,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10328
10339
|
},
|
|
10329
10340
|
user: { favorite: [] }
|
|
10330
10341
|
}, pm = ({ enabled: e = !0 } = {}) => {
|
|
10331
|
-
const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } = ne(), { data: u, isLoading: g, error:
|
|
10342
|
+
const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } = ne(), { data: u, isLoading: g, error: U, refetch: d } = Q({
|
|
10332
10343
|
queryKey: ["gamesInfo"],
|
|
10333
10344
|
queryFn: async () => {
|
|
10334
10345
|
let l = {}, t = {};
|
|
@@ -10362,7 +10373,7 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10362
10373
|
return {
|
|
10363
10374
|
gamesInfo: u || um,
|
|
10364
10375
|
isLoading: g,
|
|
10365
|
-
error:
|
|
10376
|
+
error: U,
|
|
10366
10377
|
refetch: d
|
|
10367
10378
|
};
|
|
10368
10379
|
}, gm = (e = !1) => {
|
|
@@ -36903,14 +36914,14 @@ const fu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
36903
36914
|
const r = pm({ enabled: n });
|
|
36904
36915
|
return /* @__PURE__ */ He.jsx(jn.Provider, { value: r, children: e });
|
|
36905
36916
|
};
|
|
36906
|
-
function
|
|
36917
|
+
function Iu({
|
|
36907
36918
|
children: e,
|
|
36908
36919
|
autoFetchGamesInfo: n = !1,
|
|
36909
36920
|
useMockData: a = !1,
|
|
36910
36921
|
queryClient: r,
|
|
36911
36922
|
...u
|
|
36912
36923
|
}) {
|
|
36913
|
-
const g = Ha(() => Pi(u), [u]),
|
|
36924
|
+
const g = Ha(() => Pi(u), [u]), U = Ha(
|
|
36914
36925
|
() => Pi({ ...u, formData: !0 }),
|
|
36915
36926
|
[u]
|
|
36916
36927
|
), d = Ha(
|
|
@@ -36924,7 +36935,7 @@ function zu({
|
|
|
36924
36935
|
}),
|
|
36925
36936
|
[]
|
|
36926
36937
|
), l = r || d;
|
|
36927
|
-
return /* @__PURE__ */ He.jsx(zr, { client: l, children: /* @__PURE__ */ He.jsx(Jn.Provider, { value: { client: g, formDataClient:
|
|
36938
|
+
return /* @__PURE__ */ He.jsx(zr, { client: l, children: /* @__PURE__ */ He.jsx(Jn.Provider, { value: { client: g, formDataClient: U, ...u }, children: /* @__PURE__ */ He.jsx(el, { children: /* @__PURE__ */ He.jsx(
|
|
36928
36939
|
dm,
|
|
36929
36940
|
{
|
|
36930
36941
|
autoFetch: n,
|
|
@@ -36933,9 +36944,9 @@ function zu({
|
|
|
36933
36944
|
}
|
|
36934
36945
|
) }) }) });
|
|
36935
36946
|
}
|
|
36936
|
-
const
|
|
36947
|
+
const Vu = ({ onFunction: e = () => {
|
|
36937
36948
|
}, buttonProps: n = {} } = {}) => {
|
|
36938
|
-
const { lineConfig: a } = se(), r = te(!1), u = j(a, "liffId", ""), g = new URLSearchParams(window.location.search),
|
|
36949
|
+
const { lineConfig: a } = se(), r = te(!1), u = j(a, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), l = g.get("line_id"), t = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = lr({
|
|
36939
36950
|
options: {
|
|
36940
36951
|
onSuccess: (m) => {
|
|
36941
36952
|
e(m);
|
|
@@ -36944,14 +36955,14 @@ const Iu = ({ onFunction: e = () => {
|
|
|
36944
36955
|
}
|
|
36945
36956
|
});
|
|
36946
36957
|
pe(() => {
|
|
36947
|
-
r.current ||
|
|
36958
|
+
r.current || U === "true" && l && t && (o({
|
|
36948
36959
|
trans_code: d,
|
|
36949
36960
|
line_id: l,
|
|
36950
36961
|
invite_code: i,
|
|
36951
36962
|
line_name: t
|
|
36952
36963
|
}), r.current = !0);
|
|
36953
36964
|
}, [
|
|
36954
|
-
|
|
36965
|
+
U,
|
|
36955
36966
|
d,
|
|
36956
36967
|
l,
|
|
36957
36968
|
i,
|
|
@@ -37053,7 +37064,7 @@ var ka;
|
|
|
37053
37064
|
throw new RangeError("Invalid value");
|
|
37054
37065
|
let m, _;
|
|
37055
37066
|
for (m = i; ; m++) {
|
|
37056
|
-
const b = ae.getNumDataCodewords(m, t) * 8, C =
|
|
37067
|
+
const b = ae.getNumDataCodewords(m, t) * 8, C = U.getTotalBits(l, m);
|
|
37057
37068
|
if (C <= b) {
|
|
37058
37069
|
_ = C;
|
|
37059
37070
|
break;
|
|
@@ -37070,9 +37081,9 @@ var ka;
|
|
|
37070
37081
|
c.push(C);
|
|
37071
37082
|
}
|
|
37072
37083
|
u(c.length == _);
|
|
37073
|
-
const
|
|
37074
|
-
u(c.length <=
|
|
37075
|
-
for (let b = 236; c.length <
|
|
37084
|
+
const y = ae.getNumDataCodewords(m, t) * 8;
|
|
37085
|
+
u(c.length <= y), a(0, Math.min(4, y - c.length), c), a(0, (8 - c.length % 8) % 8, c), u(c.length % 8 == 0);
|
|
37086
|
+
for (let b = 236; c.length < y; b ^= 253)
|
|
37076
37087
|
a(b, 8, c);
|
|
37077
37088
|
let f = [];
|
|
37078
37089
|
for (; f.length * 8 < c.length; )
|
|
@@ -37167,11 +37178,11 @@ var ka;
|
|
|
37167
37178
|
throw new RangeError("Invalid argument");
|
|
37168
37179
|
const o = ae.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][t], s = ae.ECC_CODEWORDS_PER_BLOCK[i.ordinal][t], p = Math.floor(ae.getNumRawDataModules(t) / 8), m = o - p % o, _ = Math.floor(p / o);
|
|
37169
37180
|
let c = [];
|
|
37170
|
-
const
|
|
37181
|
+
const y = ae.reedSolomonComputeDivisor(s);
|
|
37171
37182
|
for (let b = 0, C = 0; b < o; b++) {
|
|
37172
37183
|
let v = l.slice(C, C + _ - s + (b < m ? 0 : 1));
|
|
37173
37184
|
C += v.length;
|
|
37174
|
-
const x = ae.reedSolomonComputeRemainder(v,
|
|
37185
|
+
const x = ae.reedSolomonComputeRemainder(v, y);
|
|
37175
37186
|
b < m && v.push(0), c.push(v.concat(x));
|
|
37176
37187
|
}
|
|
37177
37188
|
let f = [];
|
|
@@ -37492,7 +37503,7 @@ var ka;
|
|
|
37492
37503
|
}
|
|
37493
37504
|
};
|
|
37494
37505
|
g.NUMERIC_REGEX = /^[0-9]*$/, g.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, g.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
37495
|
-
let
|
|
37506
|
+
let U = g;
|
|
37496
37507
|
e.QrSegment = g;
|
|
37497
37508
|
})(ka || (ka = {}));
|
|
37498
37509
|
((e) => {
|
|
@@ -37535,22 +37546,22 @@ function Pr(e, n = 0) {
|
|
|
37535
37546
|
const a = [];
|
|
37536
37547
|
return e.forEach(function(r, u) {
|
|
37537
37548
|
let g = null;
|
|
37538
|
-
r.forEach(function(
|
|
37539
|
-
if (!
|
|
37549
|
+
r.forEach(function(U, d) {
|
|
37550
|
+
if (!U && g !== null) {
|
|
37540
37551
|
a.push(
|
|
37541
37552
|
`M${g + n} ${u + n}h${d - g}v1H${g + n}z`
|
|
37542
37553
|
), g = null;
|
|
37543
37554
|
return;
|
|
37544
37555
|
}
|
|
37545
37556
|
if (d === r.length - 1) {
|
|
37546
|
-
if (!
|
|
37557
|
+
if (!U)
|
|
37547
37558
|
return;
|
|
37548
37559
|
g === null ? a.push(`M${d + n},${u + n} h1v1H${d + n}z`) : a.push(
|
|
37549
37560
|
`M${g + n},${u + n} h${d + 1 - g}v1H${g + n}z`
|
|
37550
37561
|
);
|
|
37551
37562
|
return;
|
|
37552
37563
|
}
|
|
37553
|
-
|
|
37564
|
+
U && g === null && (g = d);
|
|
37554
37565
|
});
|
|
37555
37566
|
}), a.join("");
|
|
37556
37567
|
}
|
|
@@ -37560,11 +37571,11 @@ function wr(e, n) {
|
|
|
37560
37571
|
function bm(e, n, a, r) {
|
|
37561
37572
|
if (r == null)
|
|
37562
37573
|
return null;
|
|
37563
|
-
const u = e.length + a * 2, g = Math.floor(n * Um),
|
|
37574
|
+
const u = e.length + a * 2, g = Math.floor(n * Um), U = u / n, d = (r.width || g) * U, l = (r.height || g) * U, t = r.x == null ? e.length / 2 - d / 2 : r.x * U, i = r.y == null ? e.length / 2 - l / 2 : r.y * U, o = r.opacity == null ? 1 : r.opacity;
|
|
37564
37575
|
let s = null;
|
|
37565
37576
|
if (r.excavate) {
|
|
37566
|
-
let m = Math.floor(t), _ = Math.floor(i), c = Math.ceil(d + t - m),
|
|
37567
|
-
s = { x: m, y: _, w: c, h:
|
|
37577
|
+
let m = Math.floor(t), _ = Math.floor(i), c = Math.ceil(d + t - m), y = Math.ceil(l + i - _);
|
|
37578
|
+
s = { x: m, y: _, w: c, h: y };
|
|
37568
37579
|
}
|
|
37569
37580
|
const p = r.crossOrigin;
|
|
37570
37581
|
return { x: t, y: i, h: l, w: d, excavation: s, opacity: o, crossOrigin: p };
|
|
@@ -37579,7 +37590,7 @@ function Fr({
|
|
|
37579
37590
|
includeMargin: r,
|
|
37580
37591
|
marginSize: u,
|
|
37581
37592
|
imageSettings: g,
|
|
37582
|
-
size:
|
|
37593
|
+
size: U,
|
|
37583
37594
|
boostLevel: d
|
|
37584
37595
|
}) {
|
|
37585
37596
|
let l = fe.useMemo(() => {
|
|
@@ -37597,7 +37608,7 @@ function Fr({
|
|
|
37597
37608
|
let p = l.getModules();
|
|
37598
37609
|
const m = Cm(r, u), _ = p.length + m * 2, c = bm(
|
|
37599
37610
|
p,
|
|
37600
|
-
|
|
37611
|
+
U,
|
|
37601
37612
|
m,
|
|
37602
37613
|
g
|
|
37603
37614
|
);
|
|
@@ -37607,7 +37618,7 @@ function Fr({
|
|
|
37607
37618
|
numCells: _,
|
|
37608
37619
|
calculatedImageSettings: c
|
|
37609
37620
|
};
|
|
37610
|
-
}, [l,
|
|
37621
|
+
}, [l, U, g, r, u]);
|
|
37611
37622
|
return {
|
|
37612
37623
|
qrcode: l,
|
|
37613
37624
|
margin: i,
|
|
@@ -37628,7 +37639,7 @@ var vm = (function() {
|
|
|
37628
37639
|
const r = n, {
|
|
37629
37640
|
value: u,
|
|
37630
37641
|
size: g = Er,
|
|
37631
|
-
level:
|
|
37642
|
+
level: U = Nr,
|
|
37632
37643
|
bgColor: d = Lr,
|
|
37633
37644
|
fgColor: l = Gr,
|
|
37634
37645
|
includeMargin: t = Mr,
|
|
@@ -37647,14 +37658,14 @@ var vm = (function() {
|
|
|
37647
37658
|
"boostLevel",
|
|
37648
37659
|
"marginSize",
|
|
37649
37660
|
"imageSettings"
|
|
37650
|
-
]), { style: c } = _,
|
|
37661
|
+
]), { style: c } = _, y = fi(_, ["style"]), f = p?.src, b = fe.useRef(null), C = fe.useRef(null), v = fe.useCallback(
|
|
37651
37662
|
(w) => {
|
|
37652
37663
|
b.current = w, typeof a == "function" ? a(w) : a && (a.current = w);
|
|
37653
37664
|
},
|
|
37654
37665
|
[a]
|
|
37655
37666
|
), [x, D] = fe.useState(!1), { margin: M, cells: A, numCells: T, calculatedImageSettings: S } = Fr({
|
|
37656
37667
|
value: u,
|
|
37657
|
-
level:
|
|
37668
|
+
level: U,
|
|
37658
37669
|
minVersion: i,
|
|
37659
37670
|
boostLevel: o,
|
|
37660
37671
|
includeMargin: t,
|
|
@@ -37713,7 +37724,7 @@ var vm = (function() {
|
|
|
37713
37724
|
width: g,
|
|
37714
37725
|
ref: v,
|
|
37715
37726
|
role: "img"
|
|
37716
|
-
},
|
|
37727
|
+
}, y)
|
|
37717
37728
|
), P);
|
|
37718
37729
|
}
|
|
37719
37730
|
);
|
|
@@ -37723,7 +37734,7 @@ var Ar = fe.forwardRef(
|
|
|
37723
37734
|
const r = n, {
|
|
37724
37735
|
value: u,
|
|
37725
37736
|
size: g = Er,
|
|
37726
|
-
level:
|
|
37737
|
+
level: U = Nr,
|
|
37727
37738
|
bgColor: d = Lr,
|
|
37728
37739
|
fgColor: l = Gr,
|
|
37729
37740
|
includeMargin: t = Mr,
|
|
@@ -37744,9 +37755,9 @@ var Ar = fe.forwardRef(
|
|
|
37744
37755
|
"title",
|
|
37745
37756
|
"marginSize",
|
|
37746
37757
|
"imageSettings"
|
|
37747
|
-
]), { margin: c, cells:
|
|
37758
|
+
]), { margin: c, cells: y, numCells: f, calculatedImageSettings: b } = Fr({
|
|
37748
37759
|
value: u,
|
|
37749
|
-
level:
|
|
37760
|
+
level: U,
|
|
37750
37761
|
minVersion: i,
|
|
37751
37762
|
boostLevel: o,
|
|
37752
37763
|
includeMargin: t,
|
|
@@ -37754,9 +37765,9 @@ var Ar = fe.forwardRef(
|
|
|
37754
37765
|
imageSettings: m,
|
|
37755
37766
|
size: g
|
|
37756
37767
|
});
|
|
37757
|
-
let C =
|
|
37768
|
+
let C = y, v = null;
|
|
37758
37769
|
m != null && b != null && (b.excavation != null && (C = wr(
|
|
37759
|
-
|
|
37770
|
+
y,
|
|
37760
37771
|
b.excavation
|
|
37761
37772
|
)), v = /* @__PURE__ */ fe.createElement(
|
|
37762
37773
|
"image",
|
|
@@ -37840,8 +37851,8 @@ const Tm = {
|
|
|
37840
37851
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37841
37852
|
expired: "Kode QR telah kedaluwarsa"
|
|
37842
37853
|
}
|
|
37843
|
-
},
|
|
37844
|
-
const { lng: r, getToken: u, lineConfig: g } = se(), [
|
|
37854
|
+
}, Ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: a } = {}) => {
|
|
37855
|
+
const { lng: r, getToken: u, lineConfig: g } = se(), [U, d] = at(300), [l, t] = at(!1), i = te(null), o = j(g, "liffId", ""), s = $e(r), p = u?.(), _ = new URLSearchParams(window.location.search).get("mac") || pi.get("machine_mac_address") || "", { data: c, isFetching: y } = jo({
|
|
37845
37856
|
formData: {
|
|
37846
37857
|
mac_address: _
|
|
37847
37858
|
},
|
|
@@ -37889,10 +37900,10 @@ const Tm = {
|
|
|
37889
37900
|
boxSizing: "border-box",
|
|
37890
37901
|
color: "black"
|
|
37891
37902
|
},
|
|
37892
|
-
children:
|
|
37903
|
+
children: y ? "Loading..." : /* @__PURE__ */ He.jsx(Ar, { width: "100%", height: "100%", value: f })
|
|
37893
37904
|
}
|
|
37894
37905
|
),
|
|
37895
|
-
!
|
|
37906
|
+
!y && /* @__PURE__ */ He.jsx(
|
|
37896
37907
|
"p",
|
|
37897
37908
|
{
|
|
37898
37909
|
style: {
|
|
@@ -37900,12 +37911,12 @@ const Tm = {
|
|
|
37900
37911
|
fontWeight: "bold",
|
|
37901
37912
|
fontSize: "3em"
|
|
37902
37913
|
},
|
|
37903
|
-
children: b(
|
|
37914
|
+
children: b(U)
|
|
37904
37915
|
}
|
|
37905
37916
|
)
|
|
37906
37917
|
] })
|
|
37907
37918
|
] });
|
|
37908
|
-
},
|
|
37919
|
+
}, qu = () => {
|
|
37909
37920
|
const e = xa(), {
|
|
37910
37921
|
mutate: n,
|
|
37911
37922
|
isPending: a,
|
|
@@ -37920,27 +37931,27 @@ const Tm = {
|
|
|
37920
37931
|
});
|
|
37921
37932
|
}
|
|
37922
37933
|
}
|
|
37923
|
-
}),
|
|
37934
|
+
}), U = te(!1);
|
|
37924
37935
|
return pe(() => {
|
|
37925
|
-
if (
|
|
37936
|
+
if (U.current) return;
|
|
37926
37937
|
const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), t = d.get("bind_id");
|
|
37927
|
-
l && t && (
|
|
37938
|
+
l && t && (U.current = !0, l === "line" ? n({ bindType: l, bindId: t }) : console.warn(`Unsupported bind type: ${l}`));
|
|
37928
37939
|
}, [n]), null;
|
|
37929
37940
|
};
|
|
37930
37941
|
export {
|
|
37931
37942
|
Jn as ApiCtx,
|
|
37932
|
-
|
|
37933
|
-
|
|
37943
|
+
Iu as ApiProvider,
|
|
37944
|
+
qu as Bind,
|
|
37934
37945
|
jn as GamesInfoCtx,
|
|
37935
|
-
|
|
37936
|
-
|
|
37946
|
+
Vu as LineLogin,
|
|
37947
|
+
Ku as LineQrCode,
|
|
37937
37948
|
Si as MONTH_CARD_QUERY_KEY,
|
|
37938
37949
|
Be as SOCKET_TYPE,
|
|
37939
|
-
|
|
37950
|
+
Qa as STATUS_TYPES,
|
|
37940
37951
|
Zn as StatusContext,
|
|
37941
37952
|
el as StatusProvider,
|
|
37942
37953
|
lm as buildMultiTypes,
|
|
37943
|
-
|
|
37954
|
+
Wu as buildMultiTypesWithSubTypes,
|
|
37944
37955
|
rl as buildSinglePlatformWithSubTypes,
|
|
37945
37956
|
nl as buildSingleType,
|
|
37946
37957
|
rm as categorizeGames,
|
|
@@ -37963,9 +37974,9 @@ export {
|
|
|
37963
37974
|
em as handleDarkImage,
|
|
37964
37975
|
gm as initMockWindowData,
|
|
37965
37976
|
mm as processGameInfo,
|
|
37966
|
-
|
|
37977
|
+
zu as processPlatformData,
|
|
37967
37978
|
es as resolveGameMaintainDisplay,
|
|
37968
|
-
|
|
37979
|
+
pu as useAbandonEventWallet,
|
|
37969
37980
|
Hm as useAbandonPoint,
|
|
37970
37981
|
se as useApiContext,
|
|
37971
37982
|
Xm as useAvatarList,
|
|
@@ -37985,36 +37996,37 @@ export {
|
|
|
37985
37996
|
Gs as useDepositTransaction,
|
|
37986
37997
|
Ds as useDepositV1,
|
|
37987
37998
|
Es as useDepositV2,
|
|
37988
|
-
|
|
37989
|
-
|
|
37990
|
-
|
|
37991
|
-
|
|
37999
|
+
Tu as useDepositWalletLog,
|
|
38000
|
+
su as useEnabledEventWallet,
|
|
38001
|
+
mu as useEvaluateEventWallet,
|
|
38002
|
+
lu as useEvent,
|
|
37992
38003
|
as as useEventList,
|
|
37993
38004
|
Ms as useEventTransaction,
|
|
37994
|
-
|
|
38005
|
+
xu as useEventWalletLog,
|
|
37995
38006
|
js as useExpiredRewardsList,
|
|
37996
|
-
|
|
38007
|
+
Bu as useGameConfig,
|
|
37997
38008
|
Lm as useGameInfoContext,
|
|
37998
38009
|
pm as useGamesInfo,
|
|
37999
|
-
|
|
38000
|
-
|
|
38001
|
-
|
|
38010
|
+
gu as useGetAnnouncement,
|
|
38011
|
+
du as useGetCarouseList,
|
|
38012
|
+
ou as useGetEventWalletList,
|
|
38002
38013
|
jo as useGetMachineLoginCode,
|
|
38003
|
-
|
|
38014
|
+
cu as useGetMarquee,
|
|
38004
38015
|
Pm as useGetMemberInfo,
|
|
38005
|
-
|
|
38016
|
+
fu as useGetRankingGame,
|
|
38006
38017
|
Ys as useHistoryRewardsList,
|
|
38007
|
-
|
|
38008
|
-
|
|
38018
|
+
_u as useIdleTimeout,
|
|
38019
|
+
yu as useInbox,
|
|
38009
38020
|
ks as useInboxList,
|
|
38010
38021
|
wm as useInitializeWithToken,
|
|
38011
|
-
|
|
38022
|
+
vu as useInvoiceAction,
|
|
38012
38023
|
jm as useJackpotData,
|
|
38013
38024
|
lr as useLineLogin,
|
|
38014
38025
|
Qo as useLineLogin2,
|
|
38015
38026
|
Oo as useLogin,
|
|
38016
38027
|
Bo as useLogout,
|
|
38017
38028
|
Wm as useMachineLogin,
|
|
38029
|
+
ru as useMemberEventSettle,
|
|
38018
38030
|
Vo as useMemberInitSet,
|
|
38019
38031
|
zm as useMemberTransfer,
|
|
38020
38032
|
Im as useMobileLogin,
|
|
@@ -38022,39 +38034,39 @@ export {
|
|
|
38022
38034
|
Jm as useMobileRegister,
|
|
38023
38035
|
Am as useMonthCard,
|
|
38024
38036
|
Fo as useMonthCardInfo,
|
|
38025
|
-
|
|
38026
|
-
|
|
38027
|
-
|
|
38028
|
-
|
|
38029
|
-
|
|
38030
|
-
|
|
38037
|
+
bu as useNewsDetail,
|
|
38038
|
+
Uu as useNewsList,
|
|
38039
|
+
Nu as useOtherTransaction,
|
|
38040
|
+
Lu as usePayment,
|
|
38041
|
+
Hu as usePlatformConfig,
|
|
38042
|
+
Gu as usePlayGame,
|
|
38031
38043
|
Om as usePointTransfer,
|
|
38032
38044
|
xs as useReadInbox,
|
|
38033
|
-
|
|
38034
|
-
|
|
38045
|
+
Mu as useRebate,
|
|
38046
|
+
Su as useRebateWalletLog,
|
|
38035
38047
|
Ks as useReceiveRebate,
|
|
38036
|
-
|
|
38048
|
+
Cu as useRedeemCodeDeposit,
|
|
38037
38049
|
iu as useRedeemEventReward,
|
|
38038
38050
|
$s as useRedeemReward,
|
|
38039
|
-
|
|
38051
|
+
wu as useRedeemTreasure,
|
|
38040
38052
|
Io as useResetUserPassword,
|
|
38041
38053
|
Zo as useResetUserTransactionPassword,
|
|
38042
|
-
|
|
38054
|
+
Ru as useRewards,
|
|
38043
38055
|
qs as useRewardsList,
|
|
38044
38056
|
Zm as useSendMobileVerifyCode,
|
|
38045
38057
|
Jo as useSetUserTransactionPassword,
|
|
38046
38058
|
nu as useSettleEvent,
|
|
38047
|
-
|
|
38059
|
+
uu as useSettleEventWallet,
|
|
38048
38060
|
Ho as useSignUp,
|
|
38049
|
-
|
|
38061
|
+
Eu as useSnCashRecord,
|
|
38050
38062
|
Kn as useStatus,
|
|
38051
38063
|
Wo as useToggleFavoriteGame,
|
|
38052
38064
|
$o as useTransferInGame,
|
|
38053
|
-
|
|
38054
|
-
|
|
38065
|
+
Pu as useTreasureList,
|
|
38066
|
+
Du as useTreasureWalletLog,
|
|
38055
38067
|
Qs as useUnUsedRewardsList,
|
|
38056
38068
|
eu as useUpdateAvatar,
|
|
38057
|
-
|
|
38069
|
+
hu as useUpdateInvoiceAction,
|
|
38058
38070
|
zo as useUpdateUserInfo,
|
|
38059
38071
|
au as useUser,
|
|
38060
38072
|
qo as useUserBindCard,
|
|
@@ -38062,12 +38074,12 @@ export {
|
|
|
38062
38074
|
qm as useVerifyDonationCode,
|
|
38063
38075
|
Km as useVerifyPhoneBar,
|
|
38064
38076
|
Qm as useVerifyResetAction,
|
|
38065
|
-
|
|
38066
|
-
|
|
38077
|
+
Au as useVip,
|
|
38078
|
+
Fu as useVipInfo,
|
|
38067
38079
|
Xs as useVipList,
|
|
38068
|
-
|
|
38080
|
+
Ou as useWebView2,
|
|
38069
38081
|
Ls as useWithdrawAction,
|
|
38070
38082
|
Ao as useWithdrawMonthCard,
|
|
38071
38083
|
Ps as useWithdrawTransaction,
|
|
38072
|
-
|
|
38084
|
+
ku as useWithdrawWalletLog
|
|
38073
38085
|
};
|