@obb871001/api-integration-sdk 1.0.330 → 1.0.331
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 +5 -5
- package/dist/index.js +627 -639
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38,11 +38,11 @@ function Kl() {
|
|
|
38
38
|
Ni = 1;
|
|
39
39
|
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function b(d, r, a) {
|
|
41
|
-
var i, o = {},
|
|
42
|
-
a !== void 0 && (
|
|
41
|
+
var i, o = {}, m = null, u = null;
|
|
42
|
+
a !== void 0 && (m = "" + a), r.key !== void 0 && (m = "" + r.key), r.ref !== void 0 && (u = r.ref);
|
|
43
43
|
for (i in r) l.call(r, i) && !g.hasOwnProperty(i) && (o[i] = r[i]);
|
|
44
44
|
if (d && d.defaultProps) for (i in r = d.defaultProps, r) o[i] === void 0 && (o[i] = r[i]);
|
|
45
|
-
return { $$typeof: n, type: d, key:
|
|
45
|
+
return { $$typeof: n, type: d, key: m, ref: u, props: o, _owner: p.current };
|
|
46
46
|
}
|
|
47
47
|
return Ja.Fragment = t, Ja.jsx = b, Ja.jsxs = b, Ja;
|
|
48
48
|
}
|
|
@@ -50,11 +50,11 @@ var Za = {};
|
|
|
50
50
|
var Li;
|
|
51
51
|
function ql() {
|
|
52
52
|
return Li || (Li = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"),
|
|
53
|
+
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), s = Symbol.iterator, c = "@@iterator";
|
|
54
54
|
function f(T) {
|
|
55
55
|
if (T === null || typeof T != "object")
|
|
56
56
|
return null;
|
|
57
|
-
var z =
|
|
57
|
+
var z = s && T[s] || T[c];
|
|
58
58
|
return typeof z == "function" ? z : null;
|
|
59
59
|
}
|
|
60
60
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -78,7 +78,7 @@ function ql() {
|
|
|
78
78
|
var C = !1, v = !1, D = !1, E = !1, G = !1, O;
|
|
79
79
|
O = Symbol.for("react.module.reference");
|
|
80
80
|
function k(T) {
|
|
81
|
-
return !!(typeof T == "string" || typeof T == "function" || T === l || T === g || G || T === p || T === a || T === i || E || T === u || C || v || D || typeof T == "object" && T !== null && (T.$$typeof ===
|
|
81
|
+
return !!(typeof T == "string" || typeof T == "function" || T === l || T === g || G || T === p || T === a || T === i || E || T === u || C || v || D || typeof T == "object" && T !== null && (T.$$typeof === m || T.$$typeof === o || T.$$typeof === b || T.$$typeof === d || T.$$typeof === r || // 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.
|
|
@@ -128,7 +128,7 @@ function ql() {
|
|
|
128
128
|
case o:
|
|
129
129
|
var $ = T.displayName || null;
|
|
130
130
|
return $ !== null ? $ : A(T.type) || "Memo";
|
|
131
|
-
case
|
|
131
|
+
case m: {
|
|
132
132
|
var ue = T, pe = ue._payload, ne = ue._init;
|
|
133
133
|
try {
|
|
134
134
|
return A(ne(pe));
|
|
@@ -246,29 +246,29 @@ function ql() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(ne, []);
|
|
249
|
-
} catch (
|
|
250
|
-
$ =
|
|
249
|
+
} catch (We) {
|
|
250
|
+
$ = We;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(T, [], ne);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
ne.call();
|
|
256
|
-
} catch (
|
|
257
|
-
$ =
|
|
256
|
+
} catch (We) {
|
|
257
|
+
$ = We;
|
|
258
258
|
}
|
|
259
259
|
T.call(ne.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
263
263
|
throw Error();
|
|
264
|
-
} catch (
|
|
265
|
-
$ =
|
|
264
|
+
} catch (We) {
|
|
265
|
+
$ = We;
|
|
266
266
|
}
|
|
267
267
|
T();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var X =
|
|
269
|
+
} catch (We) {
|
|
270
|
+
if (We && $ && typeof We.stack == "string") {
|
|
271
|
+
for (var X = We.stack.split(`
|
|
272
272
|
`), Oe = $.stack.split(`
|
|
273
273
|
`), be = X.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && X[be] !== Oe[he]; )
|
|
274
274
|
he--;
|
|
@@ -291,7 +291,7 @@ function ql() {
|
|
|
291
291
|
var Ra = T ? T.displayName || T.name : "", ba = Ra ? K(Ra) : "";
|
|
292
292
|
return typeof T == "function" && ie.set(T, ba), ba;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function me(T, z, J) {
|
|
295
295
|
return Ue(T, !1);
|
|
296
296
|
}
|
|
297
297
|
function ce(T) {
|
|
@@ -314,10 +314,10 @@ function ql() {
|
|
|
314
314
|
if (typeof T == "object")
|
|
315
315
|
switch (T.$$typeof) {
|
|
316
316
|
case r:
|
|
317
|
-
return
|
|
317
|
+
return me(T.render);
|
|
318
318
|
case o:
|
|
319
319
|
return ke(T.type, z, J);
|
|
320
|
-
case
|
|
320
|
+
case m: {
|
|
321
321
|
var $ = T, ue = $._payload, pe = $._init;
|
|
322
322
|
try {
|
|
323
323
|
return ke(pe(ue), z, J);
|
|
@@ -327,7 +327,7 @@ function ql() {
|
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var fe = Object.prototype.hasOwnProperty,
|
|
330
|
+
var fe = Object.prototype.hasOwnProperty, Ie = {}, Ce = y.ReactDebugCurrentFrame;
|
|
331
331
|
function Ge(T) {
|
|
332
332
|
if (T) {
|
|
333
333
|
var z = T._owner, J = ke(T.type, T._source, z ? z.type : null);
|
|
@@ -350,7 +350,7 @@ function ql() {
|
|
|
350
350
|
} catch (be) {
|
|
351
351
|
X = be;
|
|
352
352
|
}
|
|
353
|
-
X && !(X instanceof Error) && (Ge(ue), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", J, ne, typeof X), Ge(null)), X instanceof Error && !(X.message in
|
|
353
|
+
X && !(X instanceof Error) && (Ge(ue), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", J, ne, typeof X), Ge(null)), X instanceof Error && !(X.message in Ie) && (Ie[X.message] = !0, Ge(ue), _("Failed %s type: %s", J, X.message), Ge(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -358,7 +358,7 @@ function ql() {
|
|
|
358
358
|
function ve(T) {
|
|
359
359
|
return Me(T);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function He(T) {
|
|
362
362
|
{
|
|
363
363
|
var z = typeof Symbol == "function" && Symbol.toStringTag, J = z && T[Symbol.toStringTag] || T.constructor.name || "Object";
|
|
364
364
|
return J;
|
|
@@ -376,7 +376,7 @@ function ql() {
|
|
|
376
376
|
}
|
|
377
377
|
function xe(T) {
|
|
378
378
|
if (aa(T))
|
|
379
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
379
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(T)), ta(T);
|
|
380
380
|
}
|
|
381
381
|
var Re = y.ReactCurrentOwner, je = {
|
|
382
382
|
key: !0,
|
|
@@ -611,11 +611,11 @@ Check the top-level render call using <` + J + ">.");
|
|
|
611
611
|
Se(qe, T);
|
|
612
612
|
}
|
|
613
613
|
if (fe.call(z, "key")) {
|
|
614
|
-
var ba = A(T),
|
|
614
|
+
var ba = A(T), We = Object.keys(z).filter(function(Al) {
|
|
615
615
|
return Al !== "key";
|
|
616
|
-
}), Xt =
|
|
616
|
+
}), Xt = We.length > 0 ? "{key: someKey, " + We.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ia[ba + Xt]) {
|
|
618
|
-
var Fl =
|
|
618
|
+
var Fl = We.length > 0 ? "{" + We.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
_(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
@@ -642,7 +642,7 @@ function $l() {
|
|
|
642
642
|
return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports = Kl() : tt.exports = ql()), tt.exports;
|
|
643
643
|
}
|
|
644
644
|
var Fe = $l();
|
|
645
|
-
const In = qt(null),
|
|
645
|
+
const In = qt(null), se = () => {
|
|
646
646
|
const e = ci(In);
|
|
647
647
|
if (!e)
|
|
648
648
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
@@ -716,8 +716,8 @@ function Mi({
|
|
|
716
716
|
});
|
|
717
717
|
return a.interceptors.request.use(async (i) => {
|
|
718
718
|
if (i.headers = i.headers || {}, n) {
|
|
719
|
-
const
|
|
720
|
-
|
|
719
|
+
const m = await n();
|
|
720
|
+
m && (i.headers.Authorization = `Bearer ${m}`);
|
|
721
721
|
}
|
|
722
722
|
const o = p?.getState()?.isWalletCurrency || d || "TWD";
|
|
723
723
|
return i.headers.Currency = o, i.headers["currency-code"] = o, i.headers.lang = l, i;
|
|
@@ -730,11 +730,11 @@ function Mi({
|
|
|
730
730
|
"發生錯誤,請稍後再試。"
|
|
731
731
|
);
|
|
732
732
|
if (r) {
|
|
733
|
-
const
|
|
733
|
+
const m = Qe(l);
|
|
734
734
|
p?.dispatch({
|
|
735
735
|
type: "ui/showToast",
|
|
736
736
|
payload: {
|
|
737
|
-
title: ja[
|
|
737
|
+
title: ja[m] || "System Prompt",
|
|
738
738
|
description: o,
|
|
739
739
|
status: "error",
|
|
740
740
|
duration: 3e3
|
|
@@ -815,7 +815,7 @@ function ar() {
|
|
|
815
815
|
(function(t, l) {
|
|
816
816
|
e.exports = l();
|
|
817
817
|
})(er, (function() {
|
|
818
|
-
var t = 1e3, l = 6e4, p = 36e5, g = "millisecond", b = "second", d = "minute", r = "hour", a = "day", i = "week", o = "month",
|
|
818
|
+
var t = 1e3, l = 6e4, p = 36e5, g = "millisecond", b = "second", d = "minute", r = "hour", a = "day", i = "week", o = "month", m = "quarter", u = "year", s = "date", c = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
819
819
|
var R = ["th", "st", "nd", "rd"], P = w % 100;
|
|
820
820
|
return "[" + w + (R[(P - 20) % 10] || R[P] || R[0]) + "]";
|
|
821
821
|
} }, U = function(w, R, P) {
|
|
@@ -831,7 +831,7 @@ function ar() {
|
|
|
831
831
|
}, a: function(w) {
|
|
832
832
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
833
833
|
}, p: function(w) {
|
|
834
|
-
return { M: o, y: u, w: i, d: a, D:
|
|
834
|
+
return { M: o, y: u, w: i, d: a, D: s, h: r, m: d, s: b, ms: g, Q: m }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
835
835
|
}, u: function(w) {
|
|
836
836
|
return w === void 0;
|
|
837
837
|
} }, v = "en", D = {};
|
|
@@ -915,7 +915,7 @@ function ar() {
|
|
|
915
915
|
var Q = this.$locale().weekStart || 0, K = (L < Q ? L + 7 : L) - Q;
|
|
916
916
|
return S(W ? Z - K : Z + (6 - K), N);
|
|
917
917
|
case a:
|
|
918
|
-
case
|
|
918
|
+
case s:
|
|
919
919
|
return x(q + "Hours", 0);
|
|
920
920
|
case r:
|
|
921
921
|
return x(q + "Minutes", 1);
|
|
@@ -929,10 +929,10 @@ function ar() {
|
|
|
929
929
|
}, R.endOf = function(P) {
|
|
930
930
|
return this.startOf(P, !1);
|
|
931
931
|
}, R.$set = function(P, H) {
|
|
932
|
-
var B, W = h.p(P), M = "set" + (this.$u ? "UTC" : ""), S = (B = {}, B[a] = M + "Date", B[
|
|
932
|
+
var B, W = h.p(P), M = "set" + (this.$u ? "UTC" : ""), S = (B = {}, B[a] = M + "Date", B[s] = M + "Date", B[o] = M + "Month", B[u] = M + "FullYear", B[r] = M + "Hours", B[d] = M + "Minutes", B[b] = M + "Seconds", B[g] = M + "Milliseconds", B)[W], x = W === a ? this.$D + (H - this.$W) : H;
|
|
933
933
|
if (W === o || W === u) {
|
|
934
|
-
var L = this.clone().set(
|
|
935
|
-
L.$d[S](x), L.init(), this.$d = L.set(
|
|
934
|
+
var L = this.clone().set(s, 1);
|
|
935
|
+
L.$d[S](x), L.init(), this.$d = L.set(s, Math.min(this.$D, L.daysInMonth())).$d;
|
|
936
936
|
} else S && this.$d[S](x);
|
|
937
937
|
return this.init(), this;
|
|
938
938
|
}, R.set = function(P, H) {
|
|
@@ -957,13 +957,13 @@ function ar() {
|
|
|
957
957
|
}, R.format = function(P) {
|
|
958
958
|
var H = this, B = this.$locale();
|
|
959
959
|
if (!this.isValid()) return B.invalidDate || c;
|
|
960
|
-
var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), S = this.$H, x = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, Q = function(ie, ye, Ue,
|
|
961
|
-
return ie && (ie[ye] || ie(H, W)) || Ue[ye].slice(0,
|
|
960
|
+
var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), S = this.$H, x = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, Q = function(ie, ye, Ue, me) {
|
|
961
|
+
return ie && (ie[ye] || ie(H, W)) || Ue[ye].slice(0, me);
|
|
962
962
|
}, K = function(ie) {
|
|
963
963
|
return h.s(S % 12 || 12, ie, "0");
|
|
964
964
|
}, ae = q || function(ie, ye, Ue) {
|
|
965
|
-
var
|
|
966
|
-
return Ue ?
|
|
965
|
+
var me = ie < 12 ? "AM" : "PM";
|
|
966
|
+
return Ue ? me.toLowerCase() : me;
|
|
967
967
|
};
|
|
968
968
|
return W.replace(y, (function(ie, ye) {
|
|
969
969
|
return ye || (function(Ue) {
|
|
@@ -1033,7 +1033,7 @@ function ar() {
|
|
|
1033
1033
|
case o:
|
|
1034
1034
|
W = Z();
|
|
1035
1035
|
break;
|
|
1036
|
-
case
|
|
1036
|
+
case m:
|
|
1037
1037
|
W = Z() / 3;
|
|
1038
1038
|
break;
|
|
1039
1039
|
case i:
|
|
@@ -1075,7 +1075,7 @@ function ar() {
|
|
|
1075
1075
|
return this.$d.toUTCString();
|
|
1076
1076
|
}, w;
|
|
1077
1077
|
})(), A = F.prototype;
|
|
1078
|
-
return k.prototype = A, [["$ms", g], ["$s", b], ["$m", d], ["$H", r], ["$W", a], ["$M", o], ["$y", u], ["$D",
|
|
1078
|
+
return k.prototype = A, [["$ms", g], ["$s", b], ["$m", d], ["$H", r], ["$W", a], ["$M", o], ["$y", u], ["$D", s]].forEach((function(w) {
|
|
1079
1079
|
A[w[1]] = function(R) {
|
|
1080
1080
|
return this.$g(R, w[0], w[1]);
|
|
1081
1081
|
};
|
|
@@ -1314,7 +1314,7 @@ function te() {
|
|
|
1314
1314
|
U.push(b());
|
|
1315
1315
|
return new o.init(U, _);
|
|
1316
1316
|
}
|
|
1317
|
-
}),
|
|
1317
|
+
}), m = r.enc = {}, u = m.Hex = {
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Converts a word array to a hex string.
|
|
1320
1320
|
*
|
|
@@ -1353,7 +1353,7 @@ function te() {
|
|
|
1353
1353
|
C[v >>> 3] |= parseInt(_.substr(v, 2), 16) << 24 - v % 8 * 4;
|
|
1354
1354
|
return new o.init(C, U / 2);
|
|
1355
1355
|
}
|
|
1356
|
-
},
|
|
1356
|
+
}, s = m.Latin1 = {
|
|
1357
1357
|
/**
|
|
1358
1358
|
* Converts a word array to a Latin1 string.
|
|
1359
1359
|
*
|
|
@@ -1392,7 +1392,7 @@ function te() {
|
|
|
1392
1392
|
C[v >>> 2] |= (_.charCodeAt(v) & 255) << 24 - v % 4 * 8;
|
|
1393
1393
|
return new o.init(C, U);
|
|
1394
1394
|
}
|
|
1395
|
-
}, c =
|
|
1395
|
+
}, c = m.Utf8 = {
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Converts a word array to a UTF-8 string.
|
|
1398
1398
|
*
|
|
@@ -1408,7 +1408,7 @@ function te() {
|
|
|
1408
1408
|
*/
|
|
1409
1409
|
stringify: function(_) {
|
|
1410
1410
|
try {
|
|
1411
|
-
return decodeURIComponent(escape(
|
|
1411
|
+
return decodeURIComponent(escape(s.stringify(_)));
|
|
1412
1412
|
} catch {
|
|
1413
1413
|
throw new Error("Malformed UTF-8 data");
|
|
1414
1414
|
}
|
|
@@ -1427,7 +1427,7 @@ function te() {
|
|
|
1427
1427
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
1428
1428
|
*/
|
|
1429
1429
|
parse: function(_) {
|
|
1430
|
-
return
|
|
1430
|
+
return s.parse(unescape(encodeURIComponent(_)));
|
|
1431
1431
|
}
|
|
1432
1432
|
}, f = a.BufferedBlockAlgorithm = i.extend({
|
|
1433
1433
|
/**
|
|
@@ -1804,8 +1804,8 @@ function jt() {
|
|
|
1804
1804
|
* var x32WordArray = x64WordArray.toX32();
|
|
1805
1805
|
*/
|
|
1806
1806
|
toX32: function() {
|
|
1807
|
-
for (var a = this.words, i = a.length, o = [],
|
|
1808
|
-
var u = a[
|
|
1807
|
+
for (var a = this.words, i = a.length, o = [], m = 0; m < i; m++) {
|
|
1808
|
+
var u = a[m];
|
|
1809
1809
|
o.push(u.high), o.push(u.low);
|
|
1810
1810
|
}
|
|
1811
1811
|
return d.create(o, this.sigBytes);
|
|
@@ -1820,8 +1820,8 @@ function jt() {
|
|
|
1820
1820
|
* var clone = x64WordArray.clone();
|
|
1821
1821
|
*/
|
|
1822
1822
|
clone: function() {
|
|
1823
|
-
for (var a = b.clone.call(this), i = a.words = this.words.slice(0), o = i.length,
|
|
1824
|
-
i[
|
|
1823
|
+
for (var a = b.clone.call(this), i = a.words = this.words.slice(0), o = i.length, m = 0; m < o; m++)
|
|
1824
|
+
i[m] = i[m].clone();
|
|
1825
1825
|
return a;
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
@@ -1874,8 +1874,8 @@ function gr() {
|
|
|
1874
1874
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1875
1875
|
*/
|
|
1876
1876
|
stringify: function(r) {
|
|
1877
|
-
for (var a = r.words, i = r.sigBytes, o = [],
|
|
1878
|
-
var u = a[
|
|
1877
|
+
for (var a = r.words, i = r.sigBytes, o = [], m = 0; m < i; m += 2) {
|
|
1878
|
+
var u = a[m >>> 2] >>> 16 - m % 4 * 8 & 65535;
|
|
1879
1879
|
o.push(String.fromCharCode(u));
|
|
1880
1880
|
}
|
|
1881
1881
|
return o.join("");
|
|
@@ -1913,8 +1913,8 @@ function gr() {
|
|
|
1913
1913
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1914
1914
|
*/
|
|
1915
1915
|
stringify: function(r) {
|
|
1916
|
-
for (var a = r.words, i = r.sigBytes, o = [],
|
|
1917
|
-
var u = d(a[
|
|
1916
|
+
for (var a = r.words, i = r.sigBytes, o = [], m = 0; m < i; m += 2) {
|
|
1917
|
+
var u = d(a[m >>> 2] >>> 16 - m % 4 * 8 & 65535);
|
|
1918
1918
|
o.push(String.fromCharCode(u));
|
|
1919
1919
|
}
|
|
1920
1920
|
return o.join("");
|
|
@@ -1970,14 +1970,14 @@ function xa() {
|
|
|
1970
1970
|
stringify: function(r) {
|
|
1971
1971
|
var a = r.words, i = r.sigBytes, o = this._map;
|
|
1972
1972
|
r.clamp();
|
|
1973
|
-
for (var
|
|
1974
|
-
for (var
|
|
1975
|
-
|
|
1973
|
+
for (var m = [], u = 0; u < i; u += 3)
|
|
1974
|
+
for (var s = a[u >>> 2] >>> 24 - u % 4 * 8 & 255, c = a[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, f = a[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, y = s << 16 | c << 8 | f, _ = 0; _ < 4 && u + _ * 0.75 < i; _++)
|
|
1975
|
+
m.push(o.charAt(y >>> 6 * (3 - _) & 63));
|
|
1976
1976
|
var U = o.charAt(64);
|
|
1977
1977
|
if (U)
|
|
1978
|
-
for (;
|
|
1979
|
-
|
|
1980
|
-
return
|
|
1978
|
+
for (; m.length % 4; )
|
|
1979
|
+
m.push(U);
|
|
1980
|
+
return m.join("");
|
|
1981
1981
|
},
|
|
1982
1982
|
/**
|
|
1983
1983
|
* Converts a Base64 string to a word array.
|
|
@@ -1996,25 +1996,25 @@ function xa() {
|
|
|
1996
1996
|
var a = r.length, i = this._map, o = this._reverseMap;
|
|
1997
1997
|
if (!o) {
|
|
1998
1998
|
o = this._reverseMap = [];
|
|
1999
|
-
for (var
|
|
2000
|
-
o[i.charCodeAt(
|
|
1999
|
+
for (var m = 0; m < i.length; m++)
|
|
2000
|
+
o[i.charCodeAt(m)] = m;
|
|
2001
2001
|
}
|
|
2002
2002
|
var u = i.charAt(64);
|
|
2003
2003
|
if (u) {
|
|
2004
|
-
var
|
|
2005
|
-
|
|
2004
|
+
var s = r.indexOf(u);
|
|
2005
|
+
s !== -1 && (a = s);
|
|
2006
2006
|
}
|
|
2007
2007
|
return d(r, a, o);
|
|
2008
2008
|
},
|
|
2009
2009
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
2010
2010
|
};
|
|
2011
2011
|
function d(r, a, i) {
|
|
2012
|
-
for (var o = [],
|
|
2012
|
+
for (var o = [], m = 0, u = 0; u < a; u++)
|
|
2013
2013
|
if (u % 4) {
|
|
2014
|
-
var
|
|
2015
|
-
o[
|
|
2014
|
+
var s = i[r.charCodeAt(u - 1)] << u % 4 * 2, c = i[r.charCodeAt(u)] >>> 6 - u % 4 * 2, f = s | c;
|
|
2015
|
+
o[m >>> 2] |= f << 24 - m % 4 * 8, m++;
|
|
2016
2016
|
}
|
|
2017
|
-
return g.create(o,
|
|
2017
|
+
return g.create(o, m);
|
|
2018
2018
|
}
|
|
2019
2019
|
})(), t.enc.Base64;
|
|
2020
2020
|
});
|
|
@@ -2046,12 +2046,12 @@ function fr() {
|
|
|
2046
2046
|
*/
|
|
2047
2047
|
stringify: function(r, a) {
|
|
2048
2048
|
a === void 0 && (a = !0);
|
|
2049
|
-
var i = r.words, o = r.sigBytes,
|
|
2049
|
+
var i = r.words, o = r.sigBytes, m = a ? this._safe_map : this._map;
|
|
2050
2050
|
r.clamp();
|
|
2051
|
-
for (var u = [],
|
|
2052
|
-
for (var c = i[
|
|
2053
|
-
u.push(
|
|
2054
|
-
var C =
|
|
2051
|
+
for (var u = [], s = 0; s < o; s += 3)
|
|
2052
|
+
for (var c = i[s >>> 2] >>> 24 - s % 4 * 8 & 255, f = i[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, y = i[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, _ = c << 16 | f << 8 | y, U = 0; U < 4 && s + U * 0.75 < o; U++)
|
|
2053
|
+
u.push(m.charAt(_ >>> 6 * (3 - U) & 63));
|
|
2054
|
+
var C = m.charAt(64);
|
|
2055
2055
|
if (C)
|
|
2056
2056
|
for (; u.length % 4; )
|
|
2057
2057
|
u.push(C);
|
|
@@ -2074,29 +2074,29 @@ function fr() {
|
|
|
2074
2074
|
*/
|
|
2075
2075
|
parse: function(r, a) {
|
|
2076
2076
|
a === void 0 && (a = !0);
|
|
2077
|
-
var i = r.length, o = a ? this._safe_map : this._map,
|
|
2078
|
-
if (!
|
|
2079
|
-
|
|
2077
|
+
var i = r.length, o = a ? this._safe_map : this._map, m = this._reverseMap;
|
|
2078
|
+
if (!m) {
|
|
2079
|
+
m = this._reverseMap = [];
|
|
2080
2080
|
for (var u = 0; u < o.length; u++)
|
|
2081
|
-
|
|
2081
|
+
m[o.charCodeAt(u)] = u;
|
|
2082
2082
|
}
|
|
2083
|
-
var
|
|
2084
|
-
if (
|
|
2085
|
-
var c = r.indexOf(
|
|
2083
|
+
var s = o.charAt(64);
|
|
2084
|
+
if (s) {
|
|
2085
|
+
var c = r.indexOf(s);
|
|
2086
2086
|
c !== -1 && (i = c);
|
|
2087
2087
|
}
|
|
2088
|
-
return d(r, i,
|
|
2088
|
+
return d(r, i, m);
|
|
2089
2089
|
},
|
|
2090
2090
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
2091
2091
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
2092
2092
|
};
|
|
2093
2093
|
function d(r, a, i) {
|
|
2094
|
-
for (var o = [],
|
|
2094
|
+
for (var o = [], m = 0, u = 0; u < a; u++)
|
|
2095
2095
|
if (u % 4) {
|
|
2096
|
-
var
|
|
2097
|
-
o[
|
|
2096
|
+
var s = i[r.charCodeAt(u - 1)] << u % 4 * 2, c = i[r.charCodeAt(u)] >>> 6 - u % 4 * 2, f = s | c;
|
|
2097
|
+
o[m >>> 2] |= f << 24 - m % 4 * 8, m++;
|
|
2098
2098
|
}
|
|
2099
|
-
return g.create(o,
|
|
2099
|
+
return g.create(o, m);
|
|
2100
2100
|
}
|
|
2101
2101
|
})(), t.enc.Base64url;
|
|
2102
2102
|
});
|
|
@@ -2129,7 +2129,7 @@ function Sa() {
|
|
|
2129
2129
|
c[_] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2130
2130
|
}
|
|
2131
2131
|
var C = this._hash.words, v = c[f + 0], D = c[f + 1], E = c[f + 2], G = c[f + 3], O = c[f + 4], k = c[f + 5], h = c[f + 6], F = c[f + 7], A = c[f + 8], w = c[f + 9], R = c[f + 10], P = c[f + 11], H = c[f + 12], B = c[f + 13], W = c[f + 14], M = c[f + 15], S = C[0], x = C[1], L = C[2], N = C[3];
|
|
2132
|
-
S = o(S, x, L, N, v, 7, a[0]), N = o(N, S, x, L, D, 12, a[1]), L = o(L, N, S, x, E, 17, a[2]), x = o(x, L, N, S, G, 22, a[3]), S = o(S, x, L, N, O, 7, a[4]), N = o(N, S, x, L, k, 12, a[5]), L = o(L, N, S, x, h, 17, a[6]), x = o(x, L, N, S, F, 22, a[7]), S = o(S, x, L, N, A, 7, a[8]), N = o(N, S, x, L, w, 12, a[9]), L = o(L, N, S, x, R, 17, a[10]), x = o(x, L, N, S, P, 22, a[11]), S = o(S, x, L, N, H, 7, a[12]), N = o(N, S, x, L, B, 12, a[13]), L = o(L, N, S, x, W, 17, a[14]), x = o(x, L, N, S, M, 22, a[15]), S =
|
|
2132
|
+
S = o(S, x, L, N, v, 7, a[0]), N = o(N, S, x, L, D, 12, a[1]), L = o(L, N, S, x, E, 17, a[2]), x = o(x, L, N, S, G, 22, a[3]), S = o(S, x, L, N, O, 7, a[4]), N = o(N, S, x, L, k, 12, a[5]), L = o(L, N, S, x, h, 17, a[6]), x = o(x, L, N, S, F, 22, a[7]), S = o(S, x, L, N, A, 7, a[8]), N = o(N, S, x, L, w, 12, a[9]), L = o(L, N, S, x, R, 17, a[10]), x = o(x, L, N, S, P, 22, a[11]), S = o(S, x, L, N, H, 7, a[12]), N = o(N, S, x, L, B, 12, a[13]), L = o(L, N, S, x, W, 17, a[14]), x = o(x, L, N, S, M, 22, a[15]), S = m(S, x, L, N, D, 5, a[16]), N = m(N, S, x, L, h, 9, a[17]), L = m(L, N, S, x, P, 14, a[18]), x = m(x, L, N, S, v, 20, a[19]), S = m(S, x, L, N, k, 5, a[20]), N = m(N, S, x, L, R, 9, a[21]), L = m(L, N, S, x, M, 14, a[22]), x = m(x, L, N, S, O, 20, a[23]), S = m(S, x, L, N, w, 5, a[24]), N = m(N, S, x, L, W, 9, a[25]), L = m(L, N, S, x, G, 14, a[26]), x = m(x, L, N, S, A, 20, a[27]), S = m(S, x, L, N, B, 5, a[28]), N = m(N, S, x, L, E, 9, a[29]), L = m(L, N, S, x, F, 14, a[30]), x = m(x, L, N, S, H, 20, a[31]), S = u(S, x, L, N, k, 4, a[32]), N = u(N, S, x, L, A, 11, a[33]), L = u(L, N, S, x, P, 16, a[34]), x = u(x, L, N, S, W, 23, a[35]), S = u(S, x, L, N, D, 4, a[36]), N = u(N, S, x, L, O, 11, a[37]), L = u(L, N, S, x, F, 16, a[38]), x = u(x, L, N, S, R, 23, a[39]), S = u(S, x, L, N, B, 4, a[40]), N = u(N, S, x, L, v, 11, a[41]), L = u(L, N, S, x, G, 16, a[42]), x = u(x, L, N, S, h, 23, a[43]), S = u(S, x, L, N, w, 4, a[44]), N = u(N, S, x, L, H, 11, a[45]), L = u(L, N, S, x, M, 16, a[46]), x = u(x, L, N, S, E, 23, a[47]), S = s(S, x, L, N, v, 6, a[48]), N = s(N, S, x, L, F, 10, a[49]), L = s(L, N, S, x, W, 15, a[50]), x = s(x, L, N, S, k, 21, a[51]), S = s(S, x, L, N, H, 6, a[52]), N = s(N, S, x, L, G, 10, a[53]), L = s(L, N, S, x, R, 15, a[54]), x = s(x, L, N, S, D, 21, a[55]), S = s(S, x, L, N, A, 6, a[56]), N = s(N, S, x, L, M, 10, a[57]), L = s(L, N, S, x, h, 15, a[58]), x = s(x, L, N, S, B, 21, a[59]), S = s(S, x, L, N, O, 6, a[60]), N = s(N, S, x, L, P, 10, a[61]), L = s(L, N, S, x, E, 15, a[62]), x = s(x, L, N, S, w, 21, a[63]), C[0] = C[0] + S | 0, C[1] = C[1] + x | 0, C[2] = C[2] + L | 0, C[3] = C[3] + N | 0;
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
2135
|
var c = this._data, f = c.words, y = this._nDataBytes * 8, _ = c.sigBytes * 8;
|
|
@@ -2151,7 +2151,7 @@ function Sa() {
|
|
|
2151
2151
|
var D = c + (f & y | ~f & _) + U + v;
|
|
2152
2152
|
return (D << C | D >>> 32 - C) + f;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2154
|
+
function m(c, f, y, _, U, C, v) {
|
|
2155
2155
|
var D = c + (f & _ | y & ~_) + U + v;
|
|
2156
2156
|
return (D << C | D >>> 32 - C) + f;
|
|
2157
2157
|
}
|
|
@@ -2159,7 +2159,7 @@ function Sa() {
|
|
|
2159
2159
|
var D = c + (f ^ y ^ _) + U + v;
|
|
2160
2160
|
return (D << C | D >>> 32 - C) + f;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function s(c, f, y, _, U, C, v) {
|
|
2163
2163
|
var D = c + (y ^ (f | ~_)) + U + v;
|
|
2164
2164
|
return (D << C | D >>> 32 - C) + f;
|
|
2165
2165
|
}
|
|
@@ -2186,7 +2186,7 @@ function el() {
|
|
|
2186
2186
|
]);
|
|
2187
2187
|
},
|
|
2188
2188
|
_doProcessBlock: function(i, o) {
|
|
2189
|
-
for (var
|
|
2189
|
+
for (var m = this._hash.words, u = m[0], s = m[1], c = m[2], f = m[3], y = m[4], _ = 0; _ < 80; _++) {
|
|
2190
2190
|
if (_ < 16)
|
|
2191
2191
|
r[_] = i[o + _] | 0;
|
|
2192
2192
|
else {
|
|
@@ -2194,13 +2194,13 @@ function el() {
|
|
|
2194
2194
|
r[_] = U << 1 | U >>> 31;
|
|
2195
2195
|
}
|
|
2196
2196
|
var C = (u << 5 | u >>> 27) + y + r[_];
|
|
2197
|
-
_ < 20 ? C += (
|
|
2197
|
+
_ < 20 ? C += (s & c | ~s & f) + 1518500249 : _ < 40 ? C += (s ^ c ^ f) + 1859775393 : _ < 60 ? C += (s & c | s & f | c & f) - 1894007588 : C += (s ^ c ^ f) - 899497514, y = f, f = c, c = s << 30 | s >>> 2, s = u, u = C;
|
|
2198
2198
|
}
|
|
2199
|
-
|
|
2199
|
+
m[0] = m[0] + u | 0, m[1] = m[1] + s | 0, m[2] = m[2] + c | 0, m[3] = m[3] + f | 0, m[4] = m[4] + y | 0;
|
|
2200
2200
|
},
|
|
2201
2201
|
_doFinalize: function() {
|
|
2202
|
-
var i = this._data, o = i.words,
|
|
2203
|
-
return o[u >>> 5] |= 128 << 24 - u % 32, o[(u + 64 >>> 9 << 4) + 14] = Math.floor(
|
|
2202
|
+
var i = this._data, o = i.words, m = this._nDataBytes * 8, u = i.sigBytes * 8;
|
|
2203
|
+
return o[u >>> 5] |= 128 << 24 - u % 32, o[(u + 64 >>> 9 << 4) + 14] = Math.floor(m / 4294967296), o[(u + 64 >>> 9 << 4) + 15] = m, i.sigBytes = o.length * 4, this._process(), this._hash;
|
|
2204
2204
|
},
|
|
2205
2205
|
clone: function() {
|
|
2206
2206
|
var i = b.clone.call(this);
|
|
@@ -2227,20 +2227,20 @@ function yi() {
|
|
|
2227
2227
|
return !1;
|
|
2228
2228
|
return !0;
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function s(y) {
|
|
2231
2231
|
return (y - (y | 0)) * 4294967296 | 0;
|
|
2232
2232
|
}
|
|
2233
2233
|
for (var c = 2, f = 0; f < 64; )
|
|
2234
|
-
u(c) && (f < 8 && (a[f] =
|
|
2234
|
+
u(c) && (f < 8 && (a[f] = s(l.pow(c, 1 / 2))), i[f] = s(l.pow(c, 1 / 3)), f++), c++;
|
|
2235
2235
|
})();
|
|
2236
|
-
var o = [],
|
|
2236
|
+
var o = [], m = r.SHA256 = d.extend({
|
|
2237
2237
|
_doReset: function() {
|
|
2238
2238
|
this._hash = new b.init(a.slice(0));
|
|
2239
2239
|
},
|
|
2240
|
-
_doProcessBlock: function(u,
|
|
2240
|
+
_doProcessBlock: function(u, s) {
|
|
2241
2241
|
for (var c = this._hash.words, f = c[0], y = c[1], _ = c[2], U = c[3], C = c[4], v = c[5], D = c[6], E = c[7], G = 0; G < 64; G++) {
|
|
2242
2242
|
if (G < 16)
|
|
2243
|
-
o[G] = u[
|
|
2243
|
+
o[G] = u[s + G] | 0;
|
|
2244
2244
|
else {
|
|
2245
2245
|
var O = o[G - 15], k = (O << 25 | O >>> 7) ^ (O << 14 | O >>> 18) ^ O >>> 3, h = o[G - 2], F = (h << 15 | h >>> 17) ^ (h << 13 | h >>> 19) ^ h >>> 10;
|
|
2246
2246
|
o[G] = k + o[G - 7] + F + o[G - 16];
|
|
@@ -2251,15 +2251,15 @@ function yi() {
|
|
|
2251
2251
|
c[0] = c[0] + f | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] + U | 0, c[4] = c[4] + C | 0, c[5] = c[5] + v | 0, c[6] = c[6] + D | 0, c[7] = c[7] + E | 0;
|
|
2252
2252
|
},
|
|
2253
2253
|
_doFinalize: function() {
|
|
2254
|
-
var u = this._data,
|
|
2255
|
-
return
|
|
2254
|
+
var u = this._data, s = u.words, c = this._nDataBytes * 8, f = u.sigBytes * 8;
|
|
2255
|
+
return s[f >>> 5] |= 128 << 24 - f % 32, s[(f + 64 >>> 9 << 4) + 14] = l.floor(c / 4294967296), s[(f + 64 >>> 9 << 4) + 15] = c, u.sigBytes = s.length * 4, this._process(), this._hash;
|
|
2256
2256
|
},
|
|
2257
2257
|
clone: function() {
|
|
2258
2258
|
var u = d.clone.call(this);
|
|
2259
2259
|
return u._hash = this._hash.clone(), u;
|
|
2260
2260
|
}
|
|
2261
2261
|
});
|
|
2262
|
-
p.SHA256 = d._createHelper(
|
|
2262
|
+
p.SHA256 = d._createHelper(m), p.HmacSHA256 = d._createHmacHelper(m);
|
|
2263
2263
|
})(Math), t.SHA256;
|
|
2264
2264
|
});
|
|
2265
2265
|
})(Ut)), Ut.exports;
|
|
@@ -2386,10 +2386,10 @@ function al() {
|
|
|
2386
2386
|
i(1501505948, 4234509866),
|
|
2387
2387
|
i(1607167915, 987167468),
|
|
2388
2388
|
i(1816402316, 1246189591)
|
|
2389
|
-
],
|
|
2389
|
+
], m = [];
|
|
2390
2390
|
(function() {
|
|
2391
|
-
for (var
|
|
2392
|
-
s
|
|
2391
|
+
for (var s = 0; s < 80; s++)
|
|
2392
|
+
m[s] = i();
|
|
2393
2393
|
})();
|
|
2394
2394
|
var u = a.SHA512 = g.extend({
|
|
2395
2395
|
_doReset: function() {
|
|
@@ -2404,29 +2404,29 @@ function al() {
|
|
|
2404
2404
|
new d.init(1541459225, 327033209)
|
|
2405
2405
|
]);
|
|
2406
2406
|
},
|
|
2407
|
-
_doProcessBlock: function(
|
|
2408
|
-
for (var f = this._hash.words, y = f[0], _ = f[1], U = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = U.high, w = U.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ae = A, ie = w, ye = R, Ue = P,
|
|
2409
|
-
var ve,
|
|
2407
|
+
_doProcessBlock: function(s, c) {
|
|
2408
|
+
for (var f = this._hash.words, y = f[0], _ = f[1], U = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = U.high, w = U.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ae = A, ie = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ie = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
|
|
2409
|
+
var ve, He, aa = m[Me];
|
|
2410
2410
|
if (Me < 16)
|
|
2411
|
-
|
|
2411
|
+
He = aa.high = s[c + Me * 2] | 0, ve = aa.low = s[c + Me * 2 + 1] | 0;
|
|
2412
2412
|
else {
|
|
2413
|
-
var ta =
|
|
2414
|
-
ve = oa + Va,
|
|
2413
|
+
var ta = m[Me - 15], xe = ta.high, Re = ta.low, je = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = m[Me - 2], Ve = ga.high, Ye = ga.low, za = (Ve >>> 19 | Ye << 13) ^ (Ve << 3 | Ye >>> 29) ^ Ve >>> 6, Da = (Ye >>> 19 | Ve << 13) ^ (Ye << 3 | Ve >>> 29) ^ (Ye >>> 6 | Ve << 26), Ea = m[Me - 7], Ia = Ea.high, Va = Ea.low, da = m[Me - 16], ya = da.high, Ke = da.low;
|
|
2414
|
+
ve = oa + Va, He = je + Ia + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, He = He + za + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + Ke, He = He + ya + (ve >>> 0 < Ke >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
|
|
2415
2415
|
}
|
|
2416
|
-
var ca =
|
|
2417
|
-
Ge =
|
|
2416
|
+
var ca = me & ke ^ ~me & Ie, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ae ^ Q & ae, La = q & K ^ q & ie ^ K & ie, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), et = Ga + La, Yt = Ua + Na + (et >>> 0 < Ga >>> 0 ? 1 : 0);
|
|
2417
|
+
Ge = Ie, ea = Ce, Ie = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Pe | 0, me = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ae, Ue = ie, ae = Q, ie = K, Q = Z, K = q, q = Pe + et | 0, Z = na + Yt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
|
|
2418
2418
|
}
|
|
2419
|
-
k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = U.low = w + ie, U.high = A + ae + (w >>> 0 < ie >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H +
|
|
2419
|
+
k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = U.low = w + ie, U.high = A + ae + (w >>> 0 < ie >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + fe, D.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + Ie + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
|
|
2420
2420
|
},
|
|
2421
2421
|
_doFinalize: function() {
|
|
2422
|
-
var
|
|
2423
|
-
c[y >>> 5] |= 128 << 24 - y % 32, c[(y + 128 >>> 10 << 5) + 30] = Math.floor(f / 4294967296), c[(y + 128 >>> 10 << 5) + 31] = f,
|
|
2422
|
+
var s = this._data, c = s.words, f = this._nDataBytes * 8, y = s.sigBytes * 8;
|
|
2423
|
+
c[y >>> 5] |= 128 << 24 - y % 32, c[(y + 128 >>> 10 << 5) + 30] = Math.floor(f / 4294967296), c[(y + 128 >>> 10 << 5) + 31] = f, s.sigBytes = c.length * 4, this._process();
|
|
2424
2424
|
var _ = this._hash.toX32();
|
|
2425
2425
|
return _;
|
|
2426
2426
|
},
|
|
2427
2427
|
clone: function() {
|
|
2428
|
-
var
|
|
2429
|
-
return
|
|
2428
|
+
var s = g.clone.call(this);
|
|
2429
|
+
return s._hash = this._hash.clone(), s;
|
|
2430
2430
|
},
|
|
2431
2431
|
blockSize: 1024 / 32
|
|
2432
2432
|
});
|
|
@@ -2472,7 +2472,7 @@ function xr() {
|
|
|
2472
2472
|
e.exports = l(te(), jt());
|
|
2473
2473
|
})(kr, function(t) {
|
|
2474
2474
|
return (function(l) {
|
|
2475
|
-
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.x64, a = r.Word, i = p.algo, o = [],
|
|
2475
|
+
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.x64, a = r.Word, i = p.algo, o = [], m = [], u = [];
|
|
2476
2476
|
(function() {
|
|
2477
2477
|
for (var f = 1, y = 0, _ = 0; _ < 24; _++) {
|
|
2478
2478
|
o[f + 5 * y] = (_ + 1) * (_ + 2) / 2 % 64;
|
|
@@ -2481,7 +2481,7 @@ function xr() {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
for (var f = 0; f < 5; f++)
|
|
2483
2483
|
for (var y = 0; y < 5; y++)
|
|
2484
|
-
|
|
2484
|
+
m[f + 5 * y] = y + (2 * f + 3 * y) % 5 * 5;
|
|
2485
2485
|
for (var v = 1, D = 0; D < 24; D++) {
|
|
2486
2486
|
for (var E = 0, G = 0, O = 0; O < 7; O++) {
|
|
2487
2487
|
if (v & 1) {
|
|
@@ -2493,10 +2493,10 @@ function xr() {
|
|
|
2493
2493
|
u[D] = a.create(E, G);
|
|
2494
2494
|
}
|
|
2495
2495
|
})();
|
|
2496
|
-
var
|
|
2496
|
+
var s = [];
|
|
2497
2497
|
(function() {
|
|
2498
2498
|
for (var f = 0; f < 25; f++)
|
|
2499
|
-
|
|
2499
|
+
s[f] = a.create();
|
|
2500
2500
|
})();
|
|
2501
2501
|
var c = i.SHA3 = d.extend({
|
|
2502
2502
|
/**
|
|
@@ -2528,25 +2528,25 @@ function xr() {
|
|
|
2528
2528
|
var E = _[O + 5 * F];
|
|
2529
2529
|
k ^= E.high, h ^= E.low;
|
|
2530
2530
|
}
|
|
2531
|
-
var A =
|
|
2531
|
+
var A = s[O];
|
|
2532
2532
|
A.high = k, A.low = h;
|
|
2533
2533
|
}
|
|
2534
2534
|
for (var O = 0; O < 5; O++)
|
|
2535
|
-
for (var w =
|
|
2535
|
+
for (var w = s[(O + 4) % 5], R = s[(O + 1) % 5], P = R.high, H = R.low, k = w.high ^ (P << 1 | H >>> 31), h = w.low ^ (H << 1 | P >>> 31), F = 0; F < 5; F++) {
|
|
2536
2536
|
var E = _[O + 5 * F];
|
|
2537
2537
|
E.high ^= k, E.low ^= h;
|
|
2538
2538
|
}
|
|
2539
2539
|
for (var B = 1; B < 25; B++) {
|
|
2540
2540
|
var k, h, E = _[B], W = E.high, M = E.low, S = o[B];
|
|
2541
2541
|
S < 32 ? (k = W << S | M >>> 32 - S, h = M << S | W >>> 32 - S) : (k = M << S - 32 | W >>> 64 - S, h = W << S - 32 | M >>> 64 - S);
|
|
2542
|
-
var x = m[
|
|
2542
|
+
var x = s[m[B]];
|
|
2543
2543
|
x.high = k, x.low = h;
|
|
2544
2544
|
}
|
|
2545
|
-
var L =
|
|
2545
|
+
var L = s[0], N = _[0];
|
|
2546
2546
|
L.high = N.high, L.low = N.low;
|
|
2547
2547
|
for (var O = 0; O < 5; O++)
|
|
2548
2548
|
for (var F = 0; F < 5; F++) {
|
|
2549
|
-
var B = O + 5 * F, E = _[B], Z =
|
|
2549
|
+
var B = O + 5 * F, E = _[B], Z = s[B], q = s[(O + 1) % 5 + 5 * F], Q = s[(O + 2) % 5 + 5 * F];
|
|
2550
2550
|
E.high = Z.high ^ ~q.high & Q.high, E.low = Z.low ^ ~q.low & Q.low;
|
|
2551
2551
|
}
|
|
2552
2552
|
var E = _[0], K = u[G];
|
|
@@ -2825,7 +2825,7 @@ function Dr() {
|
|
|
2825
2825
|
8,
|
|
2826
2826
|
5,
|
|
2827
2827
|
6
|
|
2828
|
-
]),
|
|
2828
|
+
]), m = b.create([
|
|
2829
2829
|
8,
|
|
2830
2830
|
9,
|
|
2831
2831
|
9,
|
|
@@ -2906,7 +2906,7 @@ function Dr() {
|
|
|
2906
2906
|
13,
|
|
2907
2907
|
11,
|
|
2908
2908
|
11
|
|
2909
|
-
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
|
|
2909
|
+
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), s = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), c = r.RIPEMD160 = d.extend({
|
|
2910
2910
|
_doReset: function() {
|
|
2911
2911
|
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2912
2912
|
},
|
|
@@ -2915,7 +2915,7 @@ function Dr() {
|
|
|
2915
2915
|
var O = E + G, k = D[O];
|
|
2916
2916
|
D[O] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2917
2917
|
}
|
|
2918
|
-
var h = this._hash.words, F = u.words, A =
|
|
2918
|
+
var h = this._hash.words, F = u.words, A = s.words, w = a.words, R = i.words, P = o.words, H = m.words, B, W, M, S, x, L, N, Z, q, Q;
|
|
2919
2919
|
L = B = h[0], N = W = h[1], Z = M = h[2], q = S = h[3], Q = x = h[4];
|
|
2920
2920
|
for (var K, G = 0; G < 80; G += 1)
|
|
2921
2921
|
K = B + D[E + w[G]] | 0, G < 16 ? K += f(W, M, S) + F[0] : G < 32 ? K += y(W, M, S) + F[1] : G < 48 ? K += _(W, M, S) + F[2] : G < 64 ? K += U(W, M, S) + F[3] : K += C(W, M, S) + F[4], K = K | 0, K = v(K, P[G]), K = K + x | 0, B = x, x = S, S = v(M, 10), M = W, W = K, K = L + D[E + R[G]] | 0, G < 16 ? K += C(N, Z, q) + A[0] : G < 32 ? K += U(N, Z, q) + A[1] : G < 48 ? K += _(N, Z, q) + A[2] : G < 64 ? K += y(N, Z, q) + A[3] : K += f(N, Z, q) + A[4], K = K | 0, K = v(K, H[G]), K = K + Q | 0, L = Q, Q = q, q = v(Z, 10), Z = N, N = K;
|
|
@@ -2979,11 +2979,11 @@ function Ui() {
|
|
|
2979
2979
|
*/
|
|
2980
2980
|
init: function(a, i) {
|
|
2981
2981
|
a = this._hasher = new a.init(), typeof i == "string" && (i = d.parse(i));
|
|
2982
|
-
var o = a.blockSize,
|
|
2983
|
-
i.sigBytes >
|
|
2984
|
-
for (var u = this._oKey = i.clone(),
|
|
2982
|
+
var o = a.blockSize, m = o * 4;
|
|
2983
|
+
i.sigBytes > m && (i = a.finalize(i)), i.clamp();
|
|
2984
|
+
for (var u = this._oKey = i.clone(), s = this._iKey = i.clone(), c = u.words, f = s.words, y = 0; y < o; y++)
|
|
2985
2985
|
c[y] ^= 1549556828, f[y] ^= 909522486;
|
|
2986
|
-
u.sigBytes =
|
|
2986
|
+
u.sigBytes = s.sigBytes = m, this.reset();
|
|
2987
2987
|
},
|
|
2988
2988
|
/**
|
|
2989
2989
|
* Resets this HMAC to its initial state.
|
|
@@ -3028,8 +3028,8 @@ function Ui() {
|
|
|
3028
3028
|
finalize: function(a) {
|
|
3029
3029
|
var i = this._hasher, o = i.finalize(a);
|
|
3030
3030
|
i.reset();
|
|
3031
|
-
var
|
|
3032
|
-
return
|
|
3031
|
+
var m = i.finalize(this._oKey.clone().concat(o));
|
|
3032
|
+
return m;
|
|
3033
3033
|
}
|
|
3034
3034
|
});
|
|
3035
3035
|
})();
|
|
@@ -3082,12 +3082,12 @@ function Lr() {
|
|
|
3082
3082
|
*
|
|
3083
3083
|
* var key = kdf.compute(password, salt);
|
|
3084
3084
|
*/
|
|
3085
|
-
compute: function(o,
|
|
3086
|
-
for (var u = this.cfg,
|
|
3087
|
-
var v =
|
|
3088
|
-
|
|
3085
|
+
compute: function(o, m) {
|
|
3086
|
+
for (var u = this.cfg, s = a.create(u.hasher, o), c = b.create(), f = b.create([1]), y = c.words, _ = f.words, U = u.keySize, C = u.iterations; y.length < U; ) {
|
|
3087
|
+
var v = s.update(m).finalize(f);
|
|
3088
|
+
s.reset();
|
|
3089
3089
|
for (var D = v.words, E = D.length, G = v, O = 1; O < C; O++) {
|
|
3090
|
-
G =
|
|
3090
|
+
G = s.finalize(G), s.reset();
|
|
3091
3091
|
for (var k = G.words, h = 0; h < E; h++)
|
|
3092
3092
|
D[h] ^= k[h];
|
|
3093
3093
|
}
|
|
@@ -3096,8 +3096,8 @@ function Lr() {
|
|
|
3096
3096
|
return c.sigBytes = U * 4, c;
|
|
3097
3097
|
}
|
|
3098
3098
|
});
|
|
3099
|
-
l.PBKDF2 = function(o,
|
|
3100
|
-
return i.create(u).compute(o,
|
|
3099
|
+
l.PBKDF2 = function(o, m, u) {
|
|
3100
|
+
return i.create(u).compute(o, m);
|
|
3101
3101
|
};
|
|
3102
3102
|
})(), t.PBKDF2;
|
|
3103
3103
|
});
|
|
@@ -3150,17 +3150,17 @@ function _a() {
|
|
|
3150
3150
|
* var key = kdf.compute(password, salt);
|
|
3151
3151
|
*/
|
|
3152
3152
|
compute: function(i, o) {
|
|
3153
|
-
for (var
|
|
3154
|
-
|
|
3153
|
+
for (var m, u = this.cfg, s = u.hasher.create(), c = b.create(), f = c.words, y = u.keySize, _ = u.iterations; f.length < y; ) {
|
|
3154
|
+
m && s.update(m), m = s.update(i).finalize(o), s.reset();
|
|
3155
3155
|
for (var U = 1; U < _; U++)
|
|
3156
|
-
|
|
3157
|
-
c.concat(
|
|
3156
|
+
m = s.finalize(m), s.reset();
|
|
3157
|
+
c.concat(m);
|
|
3158
3158
|
}
|
|
3159
3159
|
return c.sigBytes = y * 4, c;
|
|
3160
3160
|
}
|
|
3161
3161
|
});
|
|
3162
|
-
l.EvpKDF = function(i, o,
|
|
3163
|
-
return a.create(
|
|
3162
|
+
l.EvpKDF = function(i, o, m) {
|
|
3163
|
+
return a.create(m).compute(i, o);
|
|
3164
3164
|
};
|
|
3165
3165
|
})(), t.EvpKDF;
|
|
3166
3166
|
});
|
|
@@ -3175,7 +3175,7 @@ function Ne() {
|
|
|
3175
3175
|
t.lib.Cipher || (function(l) {
|
|
3176
3176
|
var p = t, g = p.lib, b = g.Base, d = g.WordArray, r = g.BufferedBlockAlgorithm, a = p.enc;
|
|
3177
3177
|
a.Utf8;
|
|
3178
|
-
var i = a.Base64, o = p.algo,
|
|
3178
|
+
var i = a.Base64, o = p.algo, m = o.EvpKDF, u = g.Cipher = r.extend({
|
|
3179
3179
|
/**
|
|
3180
3180
|
* Configuration options.
|
|
3181
3181
|
*
|
|
@@ -3314,7 +3314,7 @@ function Ne() {
|
|
|
3314
3314
|
},
|
|
3315
3315
|
blockSize: 1
|
|
3316
3316
|
});
|
|
3317
|
-
var
|
|
3317
|
+
var s = p.mode = {}, c = g.BlockCipherMode = b.extend({
|
|
3318
3318
|
/**
|
|
3319
3319
|
* Creates this mode for encryption.
|
|
3320
3320
|
*
|
|
@@ -3358,7 +3358,7 @@ function Ne() {
|
|
|
3358
3358
|
init: function(k, h) {
|
|
3359
3359
|
this._cipher = k, this._iv = h;
|
|
3360
3360
|
}
|
|
3361
|
-
}), f =
|
|
3361
|
+
}), f = s.CBC = (function() {
|
|
3362
3362
|
var k = c.extend();
|
|
3363
3363
|
k.Encryptor = k.extend({
|
|
3364
3364
|
/**
|
|
@@ -3636,9 +3636,9 @@ function Ne() {
|
|
|
3636
3636
|
*/
|
|
3637
3637
|
execute: function(k, h, F, A, w) {
|
|
3638
3638
|
if (A || (A = d.random(64 / 8)), w)
|
|
3639
|
-
var R =
|
|
3639
|
+
var R = m.create({ keySize: h + F, hasher: w }).compute(k, A);
|
|
3640
3640
|
else
|
|
3641
|
-
var R =
|
|
3641
|
+
var R = m.create({ keySize: h + F }).compute(k, A);
|
|
3642
3642
|
var P = d.create(R.words.slice(h), F * 4);
|
|
3643
3643
|
return R.sigBytes = h * 4, U.create({ key: R, iv: P, salt: A });
|
|
3644
3644
|
}
|
|
@@ -3747,8 +3747,8 @@ function Fr() {
|
|
|
3747
3747
|
a && (i = this._counter = a.slice(0), this._iv = void 0);
|
|
3748
3748
|
var o = i.slice(0);
|
|
3749
3749
|
d.encryptBlock(o, 0), i[r - 1] = i[r - 1] + 1 | 0;
|
|
3750
|
-
for (var
|
|
3751
|
-
g[b +
|
|
3750
|
+
for (var m = 0; m < r; m++)
|
|
3751
|
+
g[b + m] ^= o[m];
|
|
3752
3752
|
}
|
|
3753
3753
|
});
|
|
3754
3754
|
return l.Decryptor = p, l;
|
|
@@ -3777,12 +3777,12 @@ function Or() {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
var b = l.Encryptor = l.extend({
|
|
3779
3779
|
processBlock: function(d, r) {
|
|
3780
|
-
var a = this._cipher, i = a.blockSize, o = this._iv,
|
|
3781
|
-
o && (
|
|
3782
|
-
var u =
|
|
3780
|
+
var a = this._cipher, i = a.blockSize, o = this._iv, m = this._counter;
|
|
3781
|
+
o && (m = this._counter = o.slice(0), this._iv = void 0), g(m);
|
|
3782
|
+
var u = m.slice(0);
|
|
3783
3783
|
a.encryptBlock(u, 0);
|
|
3784
|
-
for (var
|
|
3785
|
-
d[r +
|
|
3784
|
+
for (var s = 0; s < i; s++)
|
|
3785
|
+
d[r + s] ^= u[s];
|
|
3786
3786
|
}
|
|
3787
3787
|
});
|
|
3788
3788
|
return l.Decryptor = b, l;
|
|
@@ -3977,7 +3977,7 @@ function to() {
|
|
|
3977
3977
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
3978
3978
|
})(ao, function(t) {
|
|
3979
3979
|
return (function() {
|
|
3980
|
-
var l = t, p = l.lib, g = p.BlockCipher, b = l.algo, d = [], r = [], a = [], i = [], o = [],
|
|
3980
|
+
var l = t, p = l.lib, g = p.BlockCipher, b = l.algo, d = [], r = [], a = [], i = [], o = [], m = [], u = [], s = [], c = [], f = [];
|
|
3981
3981
|
(function() {
|
|
3982
3982
|
for (var U = [], C = 0; C < 256; C++)
|
|
3983
3983
|
C < 128 ? U[C] = C << 1 : U[C] = C << 1 ^ 283;
|
|
@@ -3985,9 +3985,9 @@ function to() {
|
|
|
3985
3985
|
var E = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3986
3986
|
E = E >>> 8 ^ E & 255 ^ 99, d[v] = E, r[E] = v;
|
|
3987
3987
|
var G = U[v], O = U[G], k = U[O], h = U[E] * 257 ^ E * 16843008;
|
|
3988
|
-
a[v] = h << 24 | h >>> 8, i[v] = h << 16 | h >>> 16, o[v] = h << 8 | h >>> 24,
|
|
3988
|
+
a[v] = h << 24 | h >>> 8, i[v] = h << 16 | h >>> 16, o[v] = h << 8 | h >>> 24, m[v] = h;
|
|
3989
3989
|
var h = k * 16843009 ^ O * 65537 ^ G * 257 ^ v * 16843008;
|
|
3990
|
-
u[E] = h << 24 | h >>> 8,
|
|
3990
|
+
u[E] = h << 24 | h >>> 8, s[E] = h << 16 | h >>> 16, c[E] = h << 8 | h >>> 24, f[E] = h, v ? (v = G ^ U[U[U[k ^ G]]], D ^= U[U[D]]) : v = D = 1;
|
|
3991
3991
|
}
|
|
3992
3992
|
})();
|
|
3993
3993
|
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = b.AES = g.extend({
|
|
@@ -4002,16 +4002,16 @@ function to() {
|
|
|
4002
4002
|
var U = O[k];
|
|
4003
4003
|
else
|
|
4004
4004
|
var U = O[k - 4];
|
|
4005
|
-
F < 4 || k <= 4 ? h[F] = U : h[F] = u[d[U >>> 24]] ^
|
|
4005
|
+
F < 4 || k <= 4 ? h[F] = U : h[F] = u[d[U >>> 24]] ^ s[d[U >>> 16 & 255]] ^ c[d[U >>> 8 & 255]] ^ f[d[U & 255]];
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
4008
|
},
|
|
4009
4009
|
encryptBlock: function(U, C) {
|
|
4010
|
-
this._doCryptBlock(U, C, this._keySchedule, a, i, o,
|
|
4010
|
+
this._doCryptBlock(U, C, this._keySchedule, a, i, o, m, d);
|
|
4011
4011
|
},
|
|
4012
4012
|
decryptBlock: function(U, C) {
|
|
4013
4013
|
var v = U[C + 1];
|
|
4014
|
-
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, u,
|
|
4014
|
+
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, u, s, c, f, r);
|
|
4015
4015
|
var v = U[C + 1];
|
|
4016
4016
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
4017
4017
|
},
|
|
@@ -4672,7 +4672,7 @@ function no() {
|
|
|
4672
4672
|
2147483678: 131104,
|
|
4673
4673
|
2147483679: 134350848
|
|
4674
4674
|
}
|
|
4675
|
-
],
|
|
4675
|
+
], m = [
|
|
4676
4676
|
4160749569,
|
|
4677
4677
|
528482304,
|
|
4678
4678
|
33030144,
|
|
@@ -4705,20 +4705,20 @@ function no() {
|
|
|
4705
4705
|
this._doCryptBlock(y, _, this._invSubKeys);
|
|
4706
4706
|
},
|
|
4707
4707
|
_doCryptBlock: function(y, _, U) {
|
|
4708
|
-
this._lBlock = y[_], this._rBlock = y[_ + 1],
|
|
4708
|
+
this._lBlock = y[_], this._rBlock = y[_ + 1], s.call(this, 4, 252645135), s.call(this, 16, 65535), c.call(this, 2, 858993459), c.call(this, 8, 16711935), s.call(this, 1, 1431655765);
|
|
4709
4709
|
for (var C = 0; C < 16; C++) {
|
|
4710
4710
|
for (var v = U[C], D = this._lBlock, E = this._rBlock, G = 0, O = 0; O < 8; O++)
|
|
4711
|
-
G |= o[O][((E ^ v[O]) &
|
|
4711
|
+
G |= o[O][((E ^ v[O]) & m[O]) >>> 0];
|
|
4712
4712
|
this._lBlock = E, this._rBlock = D ^ G;
|
|
4713
4713
|
}
|
|
4714
4714
|
var k = this._lBlock;
|
|
4715
|
-
this._lBlock = this._rBlock, this._rBlock = k,
|
|
4715
|
+
this._lBlock = this._rBlock, this._rBlock = k, s.call(this, 1, 1431655765), c.call(this, 8, 16711935), c.call(this, 2, 858993459), s.call(this, 16, 65535), s.call(this, 4, 252645135), y[_] = this._lBlock, y[_ + 1] = this._rBlock;
|
|
4716
4716
|
},
|
|
4717
4717
|
keySize: 64 / 32,
|
|
4718
4718
|
ivSize: 64 / 32,
|
|
4719
4719
|
blockSize: 64 / 32
|
|
4720
4720
|
});
|
|
4721
|
-
function
|
|
4721
|
+
function s(y, _) {
|
|
4722
4722
|
var U = (this._lBlock >>> y ^ this._rBlock) & _;
|
|
4723
4723
|
this._rBlock ^= U, this._lBlock ^= U << y;
|
|
4724
4724
|
}
|
|
@@ -4759,13 +4759,13 @@ function ro() {
|
|
|
4759
4759
|
return (function() {
|
|
4760
4760
|
var l = t, p = l.lib, g = p.StreamCipher, b = l.algo, d = b.RC4 = g.extend({
|
|
4761
4761
|
_doReset: function() {
|
|
4762
|
-
for (var i = this._key, o = i.words,
|
|
4763
|
-
u[
|
|
4764
|
-
for (var
|
|
4765
|
-
var f =
|
|
4766
|
-
c = (c + u[
|
|
4767
|
-
var _ = u[
|
|
4768
|
-
u[
|
|
4762
|
+
for (var i = this._key, o = i.words, m = i.sigBytes, u = this._S = [], s = 0; s < 256; s++)
|
|
4763
|
+
u[s] = s;
|
|
4764
|
+
for (var s = 0, c = 0; s < 256; s++) {
|
|
4765
|
+
var f = s % m, y = o[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4766
|
+
c = (c + u[s] + y) % 256;
|
|
4767
|
+
var _ = u[s];
|
|
4768
|
+
u[s] = u[c], u[c] = _;
|
|
4769
4769
|
}
|
|
4770
4770
|
this._i = this._j = 0;
|
|
4771
4771
|
},
|
|
@@ -4776,12 +4776,12 @@ function ro() {
|
|
|
4776
4776
|
ivSize: 0
|
|
4777
4777
|
});
|
|
4778
4778
|
function r() {
|
|
4779
|
-
for (var i = this._S, o = this._i,
|
|
4780
|
-
o = (o + 1) % 256,
|
|
4779
|
+
for (var i = this._S, o = this._i, m = this._j, u = 0, s = 0; s < 4; s++) {
|
|
4780
|
+
o = (o + 1) % 256, m = (m + i[o]) % 256;
|
|
4781
4781
|
var c = i[o];
|
|
4782
|
-
i[o] = i[
|
|
4782
|
+
i[o] = i[m], i[m] = c, u |= i[(i[o] + i[m]) % 256] << 24 - s * 8;
|
|
4783
4783
|
}
|
|
4784
|
-
return this._i = o, this._j =
|
|
4784
|
+
return this._i = o, this._j = m, u;
|
|
4785
4785
|
}
|
|
4786
4786
|
l.RC4 = g._createHelper(d);
|
|
4787
4787
|
var a = b.RC4Drop = d.extend({
|
|
@@ -4813,57 +4813,57 @@ function so() {
|
|
|
4813
4813
|
return (function() {
|
|
4814
4814
|
var l = t, p = l.lib, g = p.StreamCipher, b = l.algo, d = [], r = [], a = [], i = b.Rabbit = g.extend({
|
|
4815
4815
|
_doReset: function() {
|
|
4816
|
-
for (var
|
|
4817
|
-
s
|
|
4816
|
+
for (var m = this._key.words, u = this.cfg.iv, s = 0; s < 4; s++)
|
|
4817
|
+
m[s] = (m[s] << 8 | m[s] >>> 24) & 16711935 | (m[s] << 24 | m[s] >>> 8) & 4278255360;
|
|
4818
4818
|
var c = this._X = [
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4819
|
+
m[0],
|
|
4820
|
+
m[3] << 16 | m[2] >>> 16,
|
|
4821
|
+
m[1],
|
|
4822
|
+
m[0] << 16 | m[3] >>> 16,
|
|
4823
|
+
m[2],
|
|
4824
|
+
m[1] << 16 | m[0] >>> 16,
|
|
4825
|
+
m[3],
|
|
4826
|
+
m[2] << 16 | m[1] >>> 16
|
|
4827
4827
|
], f = this._C = [
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4828
|
+
m[2] << 16 | m[2] >>> 16,
|
|
4829
|
+
m[0] & 4294901760 | m[1] & 65535,
|
|
4830
|
+
m[3] << 16 | m[3] >>> 16,
|
|
4831
|
+
m[1] & 4294901760 | m[2] & 65535,
|
|
4832
|
+
m[0] << 16 | m[0] >>> 16,
|
|
4833
|
+
m[2] & 4294901760 | m[3] & 65535,
|
|
4834
|
+
m[1] << 16 | m[1] >>> 16,
|
|
4835
|
+
m[3] & 4294901760 | m[0] & 65535
|
|
4836
4836
|
];
|
|
4837
4837
|
this._b = 0;
|
|
4838
|
-
for (var
|
|
4838
|
+
for (var s = 0; s < 4; s++)
|
|
4839
4839
|
o.call(this);
|
|
4840
|
-
for (var
|
|
4841
|
-
f[
|
|
4840
|
+
for (var s = 0; s < 8; s++)
|
|
4841
|
+
f[s] ^= c[s + 4 & 7];
|
|
4842
4842
|
if (u) {
|
|
4843
4843
|
var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, D = C >>> 16 | v & 4294901760, E = v << 16 | C & 65535;
|
|
4844
4844
|
f[0] ^= C, f[1] ^= D, f[2] ^= v, f[3] ^= E, f[4] ^= C, f[5] ^= D, f[6] ^= v, f[7] ^= E;
|
|
4845
|
-
for (var
|
|
4845
|
+
for (var s = 0; s < 4; s++)
|
|
4846
4846
|
o.call(this);
|
|
4847
4847
|
}
|
|
4848
4848
|
},
|
|
4849
|
-
_doProcessBlock: function(
|
|
4850
|
-
var
|
|
4851
|
-
o.call(this), d[0] =
|
|
4849
|
+
_doProcessBlock: function(m, u) {
|
|
4850
|
+
var s = this._X;
|
|
4851
|
+
o.call(this), d[0] = s[0] ^ s[5] >>> 16 ^ s[3] << 16, d[1] = s[2] ^ s[7] >>> 16 ^ s[5] << 16, d[2] = s[4] ^ s[1] >>> 16 ^ s[7] << 16, d[3] = s[6] ^ s[3] >>> 16 ^ s[1] << 16;
|
|
4852
4852
|
for (var c = 0; c < 4; c++)
|
|
4853
|
-
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360,
|
|
4853
|
+
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360, m[u + c] ^= d[c];
|
|
4854
4854
|
},
|
|
4855
4855
|
blockSize: 128 / 32,
|
|
4856
4856
|
ivSize: 64 / 32
|
|
4857
4857
|
});
|
|
4858
4858
|
function o() {
|
|
4859
|
-
for (var
|
|
4860
|
-
r[
|
|
4859
|
+
for (var m = this._X, u = this._C, s = 0; s < 8; s++)
|
|
4860
|
+
r[s] = u[s];
|
|
4861
4861
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < r[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < r[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < r[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < r[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < r[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < r[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < r[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < r[7] >>> 0 ? 1 : 0;
|
|
4862
|
-
for (var
|
|
4863
|
-
var c = s
|
|
4864
|
-
a[
|
|
4862
|
+
for (var s = 0; s < 8; s++) {
|
|
4863
|
+
var c = m[s] + u[s], f = c & 65535, y = c >>> 16, _ = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
|
|
4864
|
+
a[s] = _ ^ U;
|
|
4865
4865
|
}
|
|
4866
|
-
|
|
4866
|
+
m[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, m[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, m[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, m[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, m[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, m[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, m[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, m[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4867
4867
|
}
|
|
4868
4868
|
l.Rabbit = g._createHelper(i);
|
|
4869
4869
|
})(), t.Rabbit;
|
|
@@ -4879,30 +4879,30 @@ function uo() {
|
|
|
4879
4879
|
return (function() {
|
|
4880
4880
|
var l = t, p = l.lib, g = p.StreamCipher, b = l.algo, d = [], r = [], a = [], i = b.RabbitLegacy = g.extend({
|
|
4881
4881
|
_doReset: function() {
|
|
4882
|
-
var
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4882
|
+
var m = this._key.words, u = this.cfg.iv, s = this._X = [
|
|
4883
|
+
m[0],
|
|
4884
|
+
m[3] << 16 | m[2] >>> 16,
|
|
4885
|
+
m[1],
|
|
4886
|
+
m[0] << 16 | m[3] >>> 16,
|
|
4887
|
+
m[2],
|
|
4888
|
+
m[1] << 16 | m[0] >>> 16,
|
|
4889
|
+
m[3],
|
|
4890
|
+
m[2] << 16 | m[1] >>> 16
|
|
4891
4891
|
], c = this._C = [
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4892
|
+
m[2] << 16 | m[2] >>> 16,
|
|
4893
|
+
m[0] & 4294901760 | m[1] & 65535,
|
|
4894
|
+
m[3] << 16 | m[3] >>> 16,
|
|
4895
|
+
m[1] & 4294901760 | m[2] & 65535,
|
|
4896
|
+
m[0] << 16 | m[0] >>> 16,
|
|
4897
|
+
m[2] & 4294901760 | m[3] & 65535,
|
|
4898
|
+
m[1] << 16 | m[1] >>> 16,
|
|
4899
|
+
m[3] & 4294901760 | m[0] & 65535
|
|
4900
4900
|
];
|
|
4901
4901
|
this._b = 0;
|
|
4902
4902
|
for (var f = 0; f < 4; f++)
|
|
4903
4903
|
o.call(this);
|
|
4904
4904
|
for (var f = 0; f < 8; f++)
|
|
4905
|
-
c[f] ^=
|
|
4905
|
+
c[f] ^= s[f + 4 & 7];
|
|
4906
4906
|
if (u) {
|
|
4907
4907
|
var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, D = C >>> 16 | v & 4294901760, E = v << 16 | C & 65535;
|
|
4908
4908
|
c[0] ^= C, c[1] ^= D, c[2] ^= v, c[3] ^= E, c[4] ^= C, c[5] ^= D, c[6] ^= v, c[7] ^= E;
|
|
@@ -4910,24 +4910,24 @@ function uo() {
|
|
|
4910
4910
|
o.call(this);
|
|
4911
4911
|
}
|
|
4912
4912
|
},
|
|
4913
|
-
_doProcessBlock: function(
|
|
4914
|
-
var
|
|
4915
|
-
o.call(this), d[0] =
|
|
4913
|
+
_doProcessBlock: function(m, u) {
|
|
4914
|
+
var s = this._X;
|
|
4915
|
+
o.call(this), d[0] = s[0] ^ s[5] >>> 16 ^ s[3] << 16, d[1] = s[2] ^ s[7] >>> 16 ^ s[5] << 16, d[2] = s[4] ^ s[1] >>> 16 ^ s[7] << 16, d[3] = s[6] ^ s[3] >>> 16 ^ s[1] << 16;
|
|
4916
4916
|
for (var c = 0; c < 4; c++)
|
|
4917
|
-
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360,
|
|
4917
|
+
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360, m[u + c] ^= d[c];
|
|
4918
4918
|
},
|
|
4919
4919
|
blockSize: 128 / 32,
|
|
4920
4920
|
ivSize: 64 / 32
|
|
4921
4921
|
});
|
|
4922
4922
|
function o() {
|
|
4923
|
-
for (var
|
|
4924
|
-
r[
|
|
4923
|
+
for (var m = this._X, u = this._C, s = 0; s < 8; s++)
|
|
4924
|
+
r[s] = u[s];
|
|
4925
4925
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < r[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < r[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < r[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < r[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < r[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < r[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < r[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < r[7] >>> 0 ? 1 : 0;
|
|
4926
|
-
for (var
|
|
4927
|
-
var c = s
|
|
4928
|
-
a[
|
|
4926
|
+
for (var s = 0; s < 8; s++) {
|
|
4927
|
+
var c = m[s] + u[s], f = c & 65535, y = c >>> 16, _ = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
|
|
4928
|
+
a[s] = _ ^ U;
|
|
4929
4929
|
}
|
|
4930
|
-
|
|
4930
|
+
m[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, m[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, m[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, m[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, m[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, m[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, m[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, m[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4931
4931
|
}
|
|
4932
4932
|
l.RabbitLegacy = g._createHelper(i);
|
|
4933
4933
|
})(), t.RabbitLegacy;
|
|
@@ -6003,7 +6003,7 @@ function go() {
|
|
|
6003
6003
|
let _ = y >> 24 & 255, U = y >> 16 & 255, C = y >> 8 & 255, v = y & 255, D = f.sbox[0][_] + f.sbox[1][U];
|
|
6004
6004
|
return D = D ^ f.sbox[2][C], D = D + f.sbox[3][v], D;
|
|
6005
6005
|
}
|
|
6006
|
-
function
|
|
6006
|
+
function m(f, y, _) {
|
|
6007
6007
|
let U = y, C = _, v;
|
|
6008
6008
|
for (let D = 0; D < d; ++D)
|
|
6009
6009
|
U = U ^ f.pbox[D], C = o(f, U) ^ C, v = U, U = C, C = v;
|
|
@@ -6015,7 +6015,7 @@ function go() {
|
|
|
6015
6015
|
U = U ^ f.pbox[D], C = o(f, U) ^ C, v = U, U = C, C = v;
|
|
6016
6016
|
return v = U, U = C, C = v, C = C ^ f.pbox[1], U = U ^ f.pbox[0], { left: U, right: C };
|
|
6017
6017
|
}
|
|
6018
|
-
function
|
|
6018
|
+
function s(f, y, _) {
|
|
6019
6019
|
for (let E = 0; E < 4; E++) {
|
|
6020
6020
|
f.sbox[E] = [];
|
|
6021
6021
|
for (let G = 0; G < 256; G++)
|
|
@@ -6026,21 +6026,21 @@ function go() {
|
|
|
6026
6026
|
f.pbox[E] = r[E] ^ y[U], U++, U >= _ && (U = 0);
|
|
6027
6027
|
let C = 0, v = 0, D = 0;
|
|
6028
6028
|
for (let E = 0; E < d + 2; E += 2)
|
|
6029
|
-
D =
|
|
6029
|
+
D = m(f, C, v), C = D.left, v = D.right, f.pbox[E] = C, f.pbox[E + 1] = v;
|
|
6030
6030
|
for (let E = 0; E < 4; E++)
|
|
6031
6031
|
for (let G = 0; G < 256; G += 2)
|
|
6032
|
-
D =
|
|
6032
|
+
D = m(f, C, v), C = D.left, v = D.right, f.sbox[E][G] = C, f.sbox[E][G + 1] = v;
|
|
6033
6033
|
return !0;
|
|
6034
6034
|
}
|
|
6035
6035
|
var c = b.Blowfish = g.extend({
|
|
6036
6036
|
_doReset: function() {
|
|
6037
6037
|
if (this._keyPriorReset !== this._key) {
|
|
6038
6038
|
var f = this._keyPriorReset = this._key, y = f.words, _ = f.sigBytes / 4;
|
|
6039
|
-
|
|
6039
|
+
s(i, y, _);
|
|
6040
6040
|
}
|
|
6041
6041
|
},
|
|
6042
6042
|
encryptBlock: function(f, y) {
|
|
6043
|
-
var _ =
|
|
6043
|
+
var _ = m(i, f[y], f[y + 1]);
|
|
6044
6044
|
f[y] = _.left, f[y + 1] = _.right;
|
|
6045
6045
|
},
|
|
6046
6046
|
decryptBlock: function(f, y) {
|
|
@@ -6078,7 +6078,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6078
6078
|
}), g = t.toString(Ca.enc.Base64), b = Ca.enc.Base64.stringify(p.ciphertext);
|
|
6079
6079
|
return g + ":" + b;
|
|
6080
6080
|
}, oe = () => {
|
|
6081
|
-
const { client: e, formDataClient: n } =
|
|
6081
|
+
const { client: e, formDataClient: n } = se(), t = I(
|
|
6082
6082
|
async (M) => {
|
|
6083
6083
|
const { mac_address: S = "", app_version: x = "", anydesk_id: L = "" } = M, { data: N } = await e.post("/cash-register/login", {
|
|
6084
6084
|
mac_address: S,
|
|
@@ -6126,7 +6126,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6126
6126
|
return x && (Q.unlimit_code = x), N && (Q.invite = N), e.post("/signUp", Q);
|
|
6127
6127
|
},
|
|
6128
6128
|
[e]
|
|
6129
|
-
),
|
|
6129
|
+
), m = I(
|
|
6130
6130
|
async (M) => {
|
|
6131
6131
|
const { name: S, birthday: x, email: L, mobile: N } = M;
|
|
6132
6132
|
return await e.post("/editMembetInfo", {
|
|
@@ -6150,7 +6150,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6150
6150
|
});
|
|
6151
6151
|
},
|
|
6152
6152
|
[e]
|
|
6153
|
-
),
|
|
6153
|
+
), s = I(
|
|
6154
6154
|
async (M) => {
|
|
6155
6155
|
const { newPwd: S, confirmNewPwd: x } = M;
|
|
6156
6156
|
return await e.post("/setWithdrawPassword", {
|
|
@@ -6338,9 +6338,9 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6338
6338
|
addOrRemoveFavoriteGameApi: a,
|
|
6339
6339
|
rankingGameApi: i,
|
|
6340
6340
|
userSignUpApi: o,
|
|
6341
|
-
updateUserInfoApi:
|
|
6341
|
+
updateUserInfoApi: m,
|
|
6342
6342
|
resetUserPasswordApi: u,
|
|
6343
|
-
setUserTransactionPasswordApi:
|
|
6343
|
+
setUserTransactionPasswordApi: s,
|
|
6344
6344
|
resetUserTransactionPasswordApi: c,
|
|
6345
6345
|
userRebateApi: y,
|
|
6346
6346
|
userBindBankApi: v,
|
|
@@ -6364,7 +6364,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6364
6364
|
updateUserAvatarApi: W
|
|
6365
6365
|
};
|
|
6366
6366
|
}, Tm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
6367
|
-
const { userCurrencyExchangeApi: t } = oe(), { getToken: l } =
|
|
6367
|
+
const { userCurrencyExchangeApi: t } = oe(), { getToken: l } = se(), { enabled: p, ...g } = n, d = !!l?.() && (p ? p.every((r) => r) : !0);
|
|
6368
6368
|
return Wn({
|
|
6369
6369
|
queries: [
|
|
6370
6370
|
{
|
|
@@ -6382,7 +6382,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6382
6382
|
trigger: n = [],
|
|
6383
6383
|
enabled: t = !0
|
|
6384
6384
|
} = {}) => {
|
|
6385
|
-
const { getToken: l } =
|
|
6385
|
+
const { getToken: l } = se(), p = l?.(), { userInfoApi: g } = oe();
|
|
6386
6386
|
return Wn({
|
|
6387
6387
|
queries: [
|
|
6388
6388
|
{
|
|
@@ -6423,7 +6423,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6423
6423
|
r
|
|
6424
6424
|
];
|
|
6425
6425
|
}, bi = () => {
|
|
6426
|
-
const { client: e, lng: n } =
|
|
6426
|
+
const { client: e, lng: n } = se(), t = Qe(n || "tw"), l = I(
|
|
6427
6427
|
async (b) => {
|
|
6428
6428
|
const {
|
|
6429
6429
|
gameUid: d = "",
|
|
@@ -6474,7 +6474,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6474
6474
|
platform: a,
|
|
6475
6475
|
limit: i = 25,
|
|
6476
6476
|
page: o = 1
|
|
6477
|
-
} = b, { data:
|
|
6477
|
+
} = b, { data: m } = await e.get("/report/betlog", {
|
|
6478
6478
|
params: {
|
|
6479
6479
|
str_date: d,
|
|
6480
6480
|
end_Date: r,
|
|
@@ -6483,7 +6483,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6483
6483
|
page: o
|
|
6484
6484
|
}
|
|
6485
6485
|
});
|
|
6486
|
-
return
|
|
6486
|
+
return m;
|
|
6487
6487
|
},
|
|
6488
6488
|
[e]
|
|
6489
6489
|
);
|
|
@@ -6648,8 +6648,8 @@ function vi() {
|
|
|
6648
6648
|
var t = function(p, g) {
|
|
6649
6649
|
g === void 0 && (g = {});
|
|
6650
6650
|
var b = /\?([\w]+=[\w]+)/, d = b.test(p), r = "".concat(Object.entries(g).reduce(function(a, i) {
|
|
6651
|
-
var o = i[0],
|
|
6652
|
-
return a + "".concat(o, "=").concat(
|
|
6651
|
+
var o = i[0], m = i[1];
|
|
6652
|
+
return a + "".concat(o, "=").concat(m, "&");
|
|
6653
6653
|
}, "").slice(0, -1));
|
|
6654
6654
|
return "".concat(p).concat(d ? "&" : "?").concat(r);
|
|
6655
6655
|
};
|
|
@@ -6674,13 +6674,13 @@ function tl() {
|
|
|
6674
6674
|
}).current : l.current;
|
|
6675
6675
|
}
|
|
6676
6676
|
function t(l, p, g) {
|
|
6677
|
-
var b = g || {}, d = b.interval, r = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, a = b.timeout, i = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message,
|
|
6677
|
+
var b = g || {}, d = b.interval, r = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, a = b.timeout, i = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message, m = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, u = Math.max(100, r / 10), s = Date.now(), c = setInterval(function() {
|
|
6678
6678
|
var f = Date.now(), y = n(p);
|
|
6679
6679
|
if (y + i <= f)
|
|
6680
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(f - y, "ms ago, last ping sent ").concat(f -
|
|
6681
|
-
else if (y + r <= f &&
|
|
6680
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(f - y, "ms ago, last ping sent ").concat(f - s, "ms ago")), l.close();
|
|
6681
|
+
else if (y + r <= f && s + r <= f)
|
|
6682
6682
|
try {
|
|
6683
|
-
typeof
|
|
6683
|
+
typeof m == "function" ? l.send(m()) : l.send(m), s = f;
|
|
6684
6684
|
} catch (_) {
|
|
6685
6685
|
console.error("Heartbeat failed, closing connection", _ instanceof Error ? _.message : _), l.close();
|
|
6686
6686
|
}
|
|
@@ -6743,27 +6743,27 @@ function bo() {
|
|
|
6743
6743
|
Tn = 1;
|
|
6744
6744
|
var e = va && va.__assign || function() {
|
|
6745
6745
|
return e = Object.assign || function(i) {
|
|
6746
|
-
for (var o,
|
|
6747
|
-
o = arguments[
|
|
6748
|
-
for (var
|
|
6746
|
+
for (var o, m = 1, u = arguments.length; m < u; m++) {
|
|
6747
|
+
o = arguments[m];
|
|
6748
|
+
for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
|
|
6749
6749
|
}
|
|
6750
6750
|
return i;
|
|
6751
6751
|
}, e.apply(this, arguments);
|
|
6752
6752
|
};
|
|
6753
6753
|
Object.defineProperty(va, "__esModule", { value: !0 }), va.attachListeners = void 0;
|
|
6754
|
-
var n = vi(), t = tl(), l = ra(), p = Ti(), g = function(i, o,
|
|
6755
|
-
i.onmessage = function(
|
|
6754
|
+
var n = vi(), t = tl(), l = ra(), p = Ti(), g = function(i, o, m, u) {
|
|
6755
|
+
i.onmessage = function(s) {
|
|
6756
6756
|
var c;
|
|
6757
|
-
o.current.onMessage && o.current.onMessage(
|
|
6757
|
+
o.current.onMessage && o.current.onMessage(s), typeof u?.current == "number" && (u.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(s) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((c = o.current.heartbeat) === null || c === void 0 ? void 0 : c.returnMessage) === s.data || m(s));
|
|
6758
6758
|
};
|
|
6759
|
-
}, b = function(i, o,
|
|
6759
|
+
}, b = function(i, o, m, u, s) {
|
|
6760
6760
|
i.onopen = function(c) {
|
|
6761
|
-
if (o.current.onOpen && o.current.onOpen(c), u.current = 0,
|
|
6761
|
+
if (o.current.onOpen && o.current.onOpen(c), u.current = 0, m(l.ReadyState.OPEN), o.current.heartbeat && i instanceof WebSocket) {
|
|
6762
6762
|
var f = typeof o.current.heartbeat == "boolean" ? void 0 : o.current.heartbeat;
|
|
6763
|
-
|
|
6763
|
+
s.current = Date.now(), (0, t.heartbeat)(i, s, f);
|
|
6764
6764
|
}
|
|
6765
6765
|
};
|
|
6766
|
-
}, d = function(i, o,
|
|
6766
|
+
}, d = function(i, o, m, u, s) {
|
|
6767
6767
|
if (l.isEventSourceSupported && i instanceof EventSource)
|
|
6768
6768
|
return function() {
|
|
6769
6769
|
};
|
|
@@ -6771,12 +6771,12 @@ function bo() {
|
|
|
6771
6771
|
var c;
|
|
6772
6772
|
return i.onclose = function(f) {
|
|
6773
6773
|
var y;
|
|
6774
|
-
if (o.current.onClose && o.current.onClose(f),
|
|
6774
|
+
if (o.current.onClose && o.current.onClose(f), m(l.ReadyState.CLOSED), o.current.shouldReconnect && o.current.shouldReconnect(f)) {
|
|
6775
6775
|
var _ = (y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : l.DEFAULT_RECONNECT_LIMIT;
|
|
6776
|
-
if (
|
|
6777
|
-
var U = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(
|
|
6776
|
+
if (s.current < _) {
|
|
6777
|
+
var U = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(s.current) : o.current.reconnectInterval;
|
|
6778
6778
|
c = window.setTimeout(function() {
|
|
6779
|
-
|
|
6779
|
+
s.current++, u();
|
|
6780
6780
|
}, U ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6781
6781
|
} else
|
|
6782
6782
|
o.current.onReconnectStop && o.current.onReconnectStop(_), console.warn("Max reconnect attempts of ".concat(_, " exceeded"));
|
|
@@ -6784,24 +6784,24 @@ function bo() {
|
|
|
6784
6784
|
}, function() {
|
|
6785
6785
|
return c && window.clearTimeout(c);
|
|
6786
6786
|
};
|
|
6787
|
-
}, r = function(i, o,
|
|
6787
|
+
}, r = function(i, o, m, u, s) {
|
|
6788
6788
|
var c;
|
|
6789
6789
|
return i.onerror = function(f) {
|
|
6790
6790
|
var y;
|
|
6791
|
-
if (o.current.onError && o.current.onError(f), l.isEventSourceSupported && i instanceof EventSource && (o.current.onClose && o.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })),
|
|
6792
|
-
if (
|
|
6793
|
-
var _ = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(
|
|
6791
|
+
if (o.current.onError && o.current.onError(f), l.isEventSourceSupported && i instanceof EventSource && (o.current.onClose && o.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })), m(l.ReadyState.CLOSED), i.close()), o.current.retryOnError)
|
|
6792
|
+
if (s.current < ((y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : l.DEFAULT_RECONNECT_LIMIT)) {
|
|
6793
|
+
var _ = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(s.current) : o.current.reconnectInterval;
|
|
6794
6794
|
c = window.setTimeout(function() {
|
|
6795
|
-
|
|
6795
|
+
s.current++, u();
|
|
6796
6796
|
}, _ ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6797
6797
|
} else
|
|
6798
6798
|
o.current.onReconnectStop && o.current.onReconnectStop(o.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(o.current.reconnectAttempts, " exceeded"));
|
|
6799
6799
|
}, function() {
|
|
6800
6800
|
return c && window.clearTimeout(c);
|
|
6801
6801
|
};
|
|
6802
|
-
}, a = function(i, o,
|
|
6802
|
+
}, a = function(i, o, m, u, s, c, f) {
|
|
6803
6803
|
var y = o.setLastMessage, _ = o.setReadyState, U, C, v;
|
|
6804
|
-
return
|
|
6804
|
+
return m.current.fromSocketIO && (U = (0, n.setUpSocketIOPing)(f)), g(i, m, y, c), b(i, m, _, s, c), C = d(i, m, _, u, s), v = r(i, m, _, u, s), function() {
|
|
6805
6805
|
_(l.ReadyState.CLOSING), C(), v(), i.close(), U && clearInterval(U);
|
|
6806
6806
|
};
|
|
6807
6807
|
};
|
|
@@ -6813,57 +6813,57 @@ function Co() {
|
|
|
6813
6813
|
kn = 1;
|
|
6814
6814
|
var e = ha && ha.__assign || function() {
|
|
6815
6815
|
return e = Object.assign || function(o) {
|
|
6816
|
-
for (var
|
|
6817
|
-
|
|
6818
|
-
for (var c in
|
|
6816
|
+
for (var m, u = 1, s = arguments.length; u < s; u++) {
|
|
6817
|
+
m = arguments[u];
|
|
6818
|
+
for (var c in m) Object.prototype.hasOwnProperty.call(m, c) && (o[c] = m[c]);
|
|
6819
6819
|
}
|
|
6820
6820
|
return o;
|
|
6821
6821
|
}, e.apply(this, arguments);
|
|
6822
6822
|
};
|
|
6823
6823
|
Object.defineProperty(ha, "__esModule", { value: !0 }), ha.attachSharedListeners = void 0;
|
|
6824
|
-
var n = Ci(), t = ra(), l = hi(), p = vi(), g = tl(), b = function(o,
|
|
6825
|
-
o.onmessage = function(
|
|
6826
|
-
(0, l.getSubscribers)(
|
|
6824
|
+
var n = Ci(), t = ra(), l = hi(), p = vi(), g = tl(), b = function(o, m, u) {
|
|
6825
|
+
o.onmessage = function(s) {
|
|
6826
|
+
(0, l.getSubscribers)(m).forEach(function(c) {
|
|
6827
6827
|
var f;
|
|
6828
|
-
c.optionsRef.current.onMessage && c.optionsRef.current.onMessage(
|
|
6828
|
+
c.optionsRef.current.onMessage && c.optionsRef.current.onMessage(s), typeof ((f = c?.lastMessageTime) === null || f === void 0 ? void 0 : f.current) == "number" && (c.lastMessageTime.current = Date.now()), !(typeof c.optionsRef.current.filter == "function" && c.optionsRef.current.filter(s) !== !0) && (u && typeof u != "boolean" && u?.returnMessage === s.data || c.setLastMessage(s));
|
|
6829
6829
|
});
|
|
6830
6830
|
};
|
|
6831
|
-
}, d = function(o,
|
|
6832
|
-
o.onopen = function(
|
|
6833
|
-
var c = (0, l.getSubscribers)(
|
|
6831
|
+
}, d = function(o, m, u) {
|
|
6832
|
+
o.onopen = function(s) {
|
|
6833
|
+
var c = (0, l.getSubscribers)(m);
|
|
6834
6834
|
c.forEach(function(f) {
|
|
6835
|
-
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(
|
|
6835
|
+
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(s), f.setReadyState(t.ReadyState.OPEN), u && o instanceof WebSocket && (f.lastMessageTime.current = Date.now());
|
|
6836
6836
|
}), u && o instanceof WebSocket && (0, g.heartbeat)(o, c.map(function(f) {
|
|
6837
6837
|
return f.lastMessageTime;
|
|
6838
6838
|
}), typeof u == "boolean" ? void 0 : u);
|
|
6839
6839
|
};
|
|
6840
|
-
}, r = function(o,
|
|
6840
|
+
}, r = function(o, m) {
|
|
6841
6841
|
o instanceof WebSocket && (o.onclose = function(u) {
|
|
6842
|
-
(0, l.getSubscribers)(
|
|
6843
|
-
|
|
6844
|
-
}), delete n.sharedWebSockets[
|
|
6842
|
+
(0, l.getSubscribers)(m).forEach(function(s) {
|
|
6843
|
+
s.optionsRef.current.onClose && s.optionsRef.current.onClose(u), s.setReadyState(t.ReadyState.CLOSED);
|
|
6844
|
+
}), delete n.sharedWebSockets[m], (0, l.getSubscribers)(m).forEach(function(s) {
|
|
6845
6845
|
var c;
|
|
6846
|
-
if (
|
|
6847
|
-
var f = (c =
|
|
6848
|
-
if (
|
|
6849
|
-
var y = typeof
|
|
6846
|
+
if (s.optionsRef.current.shouldReconnect && s.optionsRef.current.shouldReconnect(u)) {
|
|
6847
|
+
var f = (c = s.optionsRef.current.reconnectAttempts) !== null && c !== void 0 ? c : t.DEFAULT_RECONNECT_LIMIT;
|
|
6848
|
+
if (s.reconnectCount.current < f) {
|
|
6849
|
+
var y = typeof s.optionsRef.current.reconnectInterval == "function" ? s.optionsRef.current.reconnectInterval(s.reconnectCount.current) : s.optionsRef.current.reconnectInterval;
|
|
6850
6850
|
setTimeout(function() {
|
|
6851
|
-
|
|
6851
|
+
s.reconnectCount.current++, s.reconnect.current();
|
|
6852
6852
|
}, y ?? t.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6853
6853
|
} else
|
|
6854
|
-
|
|
6854
|
+
s.optionsRef.current.onReconnectStop && s.optionsRef.current.onReconnectStop(s.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f, " exceeded"));
|
|
6855
6855
|
}
|
|
6856
6856
|
});
|
|
6857
6857
|
});
|
|
6858
|
-
}, a = function(o,
|
|
6858
|
+
}, a = function(o, m) {
|
|
6859
6859
|
o.onerror = function(u) {
|
|
6860
|
-
(0, l.getSubscribers)(
|
|
6861
|
-
|
|
6860
|
+
(0, l.getSubscribers)(m).forEach(function(s) {
|
|
6861
|
+
s.optionsRef.current.onError && s.optionsRef.current.onError(u), t.isEventSourceSupported && o instanceof EventSource && (s.optionsRef.current.onClose && s.optionsRef.current.onClose(e(e({}, u), { code: 1006, reason: "An error occurred with the EventSource: ".concat(u), wasClean: !1 })), s.setReadyState(t.ReadyState.CLOSED));
|
|
6862
6862
|
}), t.isEventSourceSupported && o instanceof EventSource && o.close();
|
|
6863
6863
|
};
|
|
6864
|
-
}, i = function(o,
|
|
6864
|
+
}, i = function(o, m, u, s) {
|
|
6865
6865
|
var c;
|
|
6866
|
-
return u.current.fromSocketIO && (c = (0, p.setUpSocketIOPing)(
|
|
6866
|
+
return u.current.fromSocketIO && (c = (0, p.setUpSocketIOPing)(s)), b(o, m, u.current.heartbeat), r(o, m), d(o, m, u.current.heartbeat), a(o, m), function() {
|
|
6867
6867
|
c && clearInterval(c);
|
|
6868
6868
|
};
|
|
6869
6869
|
};
|
|
@@ -6877,16 +6877,16 @@ function vo() {
|
|
|
6877
6877
|
return function() {
|
|
6878
6878
|
if ((0, p.removeSubscriber)(d, r), !(0, p.hasSubscribers)(d)) {
|
|
6879
6879
|
try {
|
|
6880
|
-
var
|
|
6881
|
-
|
|
6880
|
+
var m = e.sharedWebSockets[d];
|
|
6881
|
+
m instanceof WebSocket && (m.onclose = function(u) {
|
|
6882
6882
|
a.current.onClose && a.current.onClose(u), i(n.ReadyState.CLOSED);
|
|
6883
|
-
}),
|
|
6883
|
+
}), m.close();
|
|
6884
6884
|
} catch {
|
|
6885
6885
|
}
|
|
6886
6886
|
o && o(), delete e.sharedWebSockets[d];
|
|
6887
6887
|
}
|
|
6888
6888
|
};
|
|
6889
|
-
}, b = function(d, r, a, i, o,
|
|
6889
|
+
}, b = function(d, r, a, i, o, m, u, s, c) {
|
|
6890
6890
|
if (!n.isEventSourceSupported && i.current.eventSourceOptions)
|
|
6891
6891
|
throw n.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6892
6892
|
if (i.current.share) {
|
|
@@ -6897,8 +6897,8 @@ function vo() {
|
|
|
6897
6897
|
setReadyState: a,
|
|
6898
6898
|
optionsRef: i,
|
|
6899
6899
|
reconnectCount: u,
|
|
6900
|
-
lastMessageTime:
|
|
6901
|
-
reconnect:
|
|
6900
|
+
lastMessageTime: s,
|
|
6901
|
+
reconnect: m
|
|
6902
6902
|
};
|
|
6903
6903
|
return (0, p.addSubscriber)(r, y), g(r, y, i, a, f);
|
|
6904
6904
|
} else {
|
|
@@ -6907,7 +6907,7 @@ function vo() {
|
|
|
6907
6907
|
return (0, t.attachListeners)(d.current, {
|
|
6908
6908
|
setLastMessage: o,
|
|
6909
6909
|
setReadyState: a
|
|
6910
|
-
}, i,
|
|
6910
|
+
}, i, m.current, u, s, c);
|
|
6911
6911
|
}
|
|
6912
6912
|
};
|
|
6913
6913
|
return qa.createOrJoinSocket = b, qa;
|
|
@@ -6916,28 +6916,28 @@ var ma = {}, Sn;
|
|
|
6916
6916
|
function ho() {
|
|
6917
6917
|
return Sn || (Sn = 1, (function(e) {
|
|
6918
6918
|
var n = ma && ma.__awaiter || function(r, a, i, o) {
|
|
6919
|
-
function
|
|
6920
|
-
return u instanceof i ? u : new i(function(
|
|
6921
|
-
|
|
6919
|
+
function m(u) {
|
|
6920
|
+
return u instanceof i ? u : new i(function(s) {
|
|
6921
|
+
s(u);
|
|
6922
6922
|
});
|
|
6923
6923
|
}
|
|
6924
|
-
return new (i || (i = Promise))(function(u,
|
|
6924
|
+
return new (i || (i = Promise))(function(u, s) {
|
|
6925
6925
|
function c(_) {
|
|
6926
6926
|
try {
|
|
6927
6927
|
y(o.next(_));
|
|
6928
6928
|
} catch (U) {
|
|
6929
|
-
|
|
6929
|
+
s(U);
|
|
6930
6930
|
}
|
|
6931
6931
|
}
|
|
6932
6932
|
function f(_) {
|
|
6933
6933
|
try {
|
|
6934
6934
|
y(o.throw(_));
|
|
6935
6935
|
} catch (U) {
|
|
6936
|
-
|
|
6936
|
+
s(U);
|
|
6937
6937
|
}
|
|
6938
6938
|
}
|
|
6939
6939
|
function y(_) {
|
|
6940
|
-
_.done ? u(_.value) :
|
|
6940
|
+
_.done ? u(_.value) : m(_.value).then(c, f);
|
|
6941
6941
|
}
|
|
6942
6942
|
y((o = o.apply(r, a || [])).next());
|
|
6943
6943
|
});
|
|
@@ -6945,10 +6945,10 @@ function ho() {
|
|
|
6945
6945
|
var i = { label: 0, sent: function() {
|
|
6946
6946
|
if (u[0] & 1) throw u[1];
|
|
6947
6947
|
return u[1];
|
|
6948
|
-
}, trys: [], ops: [] }, o,
|
|
6949
|
-
return
|
|
6948
|
+
}, trys: [], ops: [] }, o, m, u, s = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
6949
|
+
return s.next = c(0), s.throw = c(1), s.return = c(2), typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
6950
6950
|
return this;
|
|
6951
|
-
}),
|
|
6951
|
+
}), s;
|
|
6952
6952
|
function c(y) {
|
|
6953
6953
|
return function(_) {
|
|
6954
6954
|
return f([y, _]);
|
|
@@ -6956,9 +6956,9 @@ function ho() {
|
|
|
6956
6956
|
}
|
|
6957
6957
|
function f(y) {
|
|
6958
6958
|
if (o) throw new TypeError("Generator is already executing.");
|
|
6959
|
-
for (;
|
|
6960
|
-
if (o = 1,
|
|
6961
|
-
switch (
|
|
6959
|
+
for (; s && (s = 0, y[0] && (i = 0)), i; ) try {
|
|
6960
|
+
if (o = 1, m && (u = y[0] & 2 ? m.return : y[0] ? m.throw || ((u = m.return) && u.call(m), 0) : m.next) && !(u = u.call(m, y[1])).done) return u;
|
|
6961
|
+
switch (m = 0, u && (y = [y[0] & 2, u.value]), y[0]) {
|
|
6962
6962
|
case 0:
|
|
6963
6963
|
case 1:
|
|
6964
6964
|
u = y;
|
|
@@ -6966,7 +6966,7 @@ function ho() {
|
|
|
6966
6966
|
case 4:
|
|
6967
6967
|
return i.label++, { value: y[1], done: !1 };
|
|
6968
6968
|
case 5:
|
|
6969
|
-
i.label++,
|
|
6969
|
+
i.label++, m = y[1], y = [0];
|
|
6970
6970
|
continue;
|
|
6971
6971
|
case 7:
|
|
6972
6972
|
y = i.ops.pop(), i.trys.pop();
|
|
@@ -6993,7 +6993,7 @@ function ho() {
|
|
|
6993
6993
|
}
|
|
6994
6994
|
y = a.call(r, i);
|
|
6995
6995
|
} catch (_) {
|
|
6996
|
-
y = [6, _],
|
|
6996
|
+
y = [6, _], m = 0;
|
|
6997
6997
|
} finally {
|
|
6998
6998
|
o = u = 0;
|
|
6999
6999
|
}
|
|
@@ -7001,7 +7001,7 @@ function ho() {
|
|
|
7001
7001
|
return { value: y[0] ? y[1] : void 0, done: !0 };
|
|
7002
7002
|
}
|
|
7003
7003
|
}, l = ma && ma.__spreadArray || function(r, a, i) {
|
|
7004
|
-
if (i || arguments.length === 2) for (var o = 0,
|
|
7004
|
+
if (i || arguments.length === 2) for (var o = 0, m = a.length, u; o < m; o++)
|
|
7005
7005
|
(u || !(o in a)) && (u || (u = Array.prototype.slice.call(a, 0, o)), u[o] = a[o]);
|
|
7006
7006
|
return r.concat(u || Array.prototype.slice.call(a));
|
|
7007
7007
|
};
|
|
@@ -7013,23 +7013,23 @@ function ho() {
|
|
|
7013
7013
|
}, d = function(r, a) {
|
|
7014
7014
|
for (var i = [], o = 2; o < arguments.length; o++)
|
|
7015
7015
|
i[o - 2] = arguments[o];
|
|
7016
|
-
return n(void 0, l([r, a], i, !0), void 0, function(
|
|
7016
|
+
return n(void 0, l([r, a], i, !0), void 0, function(m, u, s) {
|
|
7017
7017
|
var c, f, y, _, U, C, v, D;
|
|
7018
|
-
return
|
|
7018
|
+
return s === void 0 && (s = 0), t(this, function(E) {
|
|
7019
7019
|
switch (E.label) {
|
|
7020
7020
|
case 0:
|
|
7021
|
-
if (typeof
|
|
7021
|
+
if (typeof m != "function") return [3, 10];
|
|
7022
7022
|
E.label = 1;
|
|
7023
7023
|
case 1:
|
|
7024
|
-
return E.trys.push([1, 3, , 9]), [4,
|
|
7024
|
+
return E.trys.push([1, 3, , 9]), [4, m()];
|
|
7025
7025
|
case 2:
|
|
7026
7026
|
return c = E.sent(), [3, 9];
|
|
7027
7027
|
case 3:
|
|
7028
|
-
return E.sent(), u.current.retryOnError ? (f = (C = u.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT,
|
|
7028
|
+
return E.sent(), u.current.retryOnError ? (f = (C = u.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, s < f ? (y = typeof u.current.reconnectInterval == "function" ? u.current.reconnectInterval(s) : u.current.reconnectInterval, [4, b(y ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
7029
7029
|
case 4:
|
|
7030
|
-
return E.sent(), [2, (0, e.getUrl)(
|
|
7030
|
+
return E.sent(), [2, (0, e.getUrl)(m, u, s + 1)];
|
|
7031
7031
|
case 5:
|
|
7032
|
-
return (D = (v = u.current).onReconnectStop) === null || D === void 0 || D.call(v,
|
|
7032
|
+
return (D = (v = u.current).onReconnectStop) === null || D === void 0 || D.call(v, s), [2, null];
|
|
7033
7033
|
case 6:
|
|
7034
7034
|
return [3, 8];
|
|
7035
7035
|
case 7:
|
|
@@ -7039,7 +7039,7 @@ function ho() {
|
|
|
7039
7039
|
case 9:
|
|
7040
7040
|
return [3, 11];
|
|
7041
7041
|
case 10:
|
|
7042
|
-
c =
|
|
7042
|
+
c = m, E.label = 11;
|
|
7043
7043
|
case 11:
|
|
7044
7044
|
return _ = u.current.fromSocketIO ? (0, p.parseSocketIOUrl)(c) : c, U = u.current.queryParams ? (0, p.appendQueryParams)(_, u.current.queryParams) : _, [2, U];
|
|
7045
7045
|
}
|
|
@@ -7073,20 +7073,20 @@ function ki() {
|
|
|
7073
7073
|
if (En) return Je;
|
|
7074
7074
|
En = 1;
|
|
7075
7075
|
var e = Je && Je.__assign || function() {
|
|
7076
|
-
return e = Object.assign || function(
|
|
7077
|
-
for (var u,
|
|
7078
|
-
u = arguments[
|
|
7079
|
-
for (var f in u) Object.prototype.hasOwnProperty.call(u, f) && (
|
|
7076
|
+
return e = Object.assign || function(m) {
|
|
7077
|
+
for (var u, s = 1, c = arguments.length; s < c; s++) {
|
|
7078
|
+
u = arguments[s];
|
|
7079
|
+
for (var f in u) Object.prototype.hasOwnProperty.call(u, f) && (m[f] = u[f]);
|
|
7080
7080
|
}
|
|
7081
|
-
return
|
|
7081
|
+
return m;
|
|
7082
7082
|
}, e.apply(this, arguments);
|
|
7083
|
-
}, n = Je && Je.__awaiter || function(
|
|
7083
|
+
}, n = Je && Je.__awaiter || function(m, u, s, c) {
|
|
7084
7084
|
function f(y) {
|
|
7085
|
-
return y instanceof
|
|
7085
|
+
return y instanceof s ? y : new s(function(_) {
|
|
7086
7086
|
_(y);
|
|
7087
7087
|
});
|
|
7088
7088
|
}
|
|
7089
|
-
return new (
|
|
7089
|
+
return new (s || (s = Promise))(function(y, _) {
|
|
7090
7090
|
function U(D) {
|
|
7091
7091
|
try {
|
|
7092
7092
|
v(c.next(D));
|
|
@@ -7104,10 +7104,10 @@ function ki() {
|
|
|
7104
7104
|
function v(D) {
|
|
7105
7105
|
D.done ? y(D.value) : f(D.value).then(U, C);
|
|
7106
7106
|
}
|
|
7107
|
-
v((c = c.apply(
|
|
7107
|
+
v((c = c.apply(m, u || [])).next());
|
|
7108
7108
|
});
|
|
7109
|
-
}, t = Je && Je.__generator || function(
|
|
7110
|
-
var
|
|
7109
|
+
}, t = Je && Je.__generator || function(m, u) {
|
|
7110
|
+
var s = { label: 0, sent: function() {
|
|
7111
7111
|
if (y[0] & 1) throw y[1];
|
|
7112
7112
|
return y[1];
|
|
7113
7113
|
}, trys: [], ops: [] }, c, f, y, _ = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
@@ -7121,7 +7121,7 @@ function ki() {
|
|
|
7121
7121
|
}
|
|
7122
7122
|
function C(v) {
|
|
7123
7123
|
if (c) throw new TypeError("Generator is already executing.");
|
|
7124
|
-
for (; _ && (_ = 0, v[0] && (
|
|
7124
|
+
for (; _ && (_ = 0, v[0] && (s = 0)), s; ) try {
|
|
7125
7125
|
if (c = 1, f && (y = v[0] & 2 ? f.return : v[0] ? f.throw || ((y = f.return) && y.call(f), 0) : f.next) && !(y = y.call(f, v[1])).done) return y;
|
|
7126
7126
|
switch (f = 0, y && (v = [v[0] & 2, y.value]), v[0]) {
|
|
7127
7127
|
case 0:
|
|
@@ -7129,34 +7129,34 @@ function ki() {
|
|
|
7129
7129
|
y = v;
|
|
7130
7130
|
break;
|
|
7131
7131
|
case 4:
|
|
7132
|
-
return
|
|
7132
|
+
return s.label++, { value: v[1], done: !1 };
|
|
7133
7133
|
case 5:
|
|
7134
|
-
|
|
7134
|
+
s.label++, f = v[1], v = [0];
|
|
7135
7135
|
continue;
|
|
7136
7136
|
case 7:
|
|
7137
|
-
v =
|
|
7137
|
+
v = s.ops.pop(), s.trys.pop();
|
|
7138
7138
|
continue;
|
|
7139
7139
|
default:
|
|
7140
|
-
if (y =
|
|
7141
|
-
|
|
7140
|
+
if (y = s.trys, !(y = y.length > 0 && y[y.length - 1]) && (v[0] === 6 || v[0] === 2)) {
|
|
7141
|
+
s = 0;
|
|
7142
7142
|
continue;
|
|
7143
7143
|
}
|
|
7144
7144
|
if (v[0] === 3 && (!y || v[1] > y[0] && v[1] < y[3])) {
|
|
7145
|
-
|
|
7145
|
+
s.label = v[1];
|
|
7146
7146
|
break;
|
|
7147
7147
|
}
|
|
7148
|
-
if (v[0] === 6 &&
|
|
7149
|
-
|
|
7148
|
+
if (v[0] === 6 && s.label < y[1]) {
|
|
7149
|
+
s.label = y[1], y = v;
|
|
7150
7150
|
break;
|
|
7151
7151
|
}
|
|
7152
|
-
if (y &&
|
|
7153
|
-
|
|
7152
|
+
if (y && s.label < y[2]) {
|
|
7153
|
+
s.label = y[2], s.ops.push(v);
|
|
7154
7154
|
break;
|
|
7155
7155
|
}
|
|
7156
|
-
y[2] &&
|
|
7156
|
+
y[2] && s.ops.pop(), s.trys.pop();
|
|
7157
7157
|
continue;
|
|
7158
7158
|
}
|
|
7159
|
-
v = u.call(
|
|
7159
|
+
v = u.call(m, s);
|
|
7160
7160
|
} catch (D) {
|
|
7161
7161
|
v = [6, D], f = 0;
|
|
7162
7162
|
} finally {
|
|
@@ -7165,12 +7165,12 @@ function ki() {
|
|
|
7165
7165
|
if (v[0] & 5) throw v[1];
|
|
7166
7166
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
7167
7167
|
}
|
|
7168
|
-
}, l = Je && Je.__importDefault || function(
|
|
7169
|
-
return
|
|
7168
|
+
}, l = Je && Je.__importDefault || function(m) {
|
|
7169
|
+
return m && m.__esModule ? m : { default: m };
|
|
7170
7170
|
};
|
|
7171
7171
|
Object.defineProperty(Je, "__esModule", { value: !0 }), Je.useWebSocket = void 0;
|
|
7172
|
-
var p = de, g = Jl, b = ra(), d = vo(), r = ho(), a = l(To()), i = Ti(), o = function(
|
|
7173
|
-
u === void 0 && (u = b.DEFAULT_OPTIONS),
|
|
7172
|
+
var p = de, g = Jl, b = ra(), d = vo(), r = ho(), a = l(To()), i = Ti(), o = function(m, u, s) {
|
|
7173
|
+
u === void 0 && (u = b.DEFAULT_OPTIONS), s === void 0 && (s = !0);
|
|
7174
7174
|
var c = (0, p.useState)(null), f = c[0], y = c[1], _ = (0, p.useState)({}), U = _[0], C = _[1], v = (0, p.useMemo)(function() {
|
|
7175
7175
|
if (!u.disableJson && f)
|
|
7176
7176
|
try {
|
|
@@ -7182,7 +7182,7 @@ function ki() {
|
|
|
7182
7182
|
}, [f, u.disableJson]), D = (0, p.useRef)(null), E = (0, p.useRef)(null), G = (0, p.useRef)(function() {
|
|
7183
7183
|
}), O = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), h = (0, p.useRef)([]), F = (0, p.useRef)(null), A = (0, p.useRef)(u);
|
|
7184
7184
|
A.current = u;
|
|
7185
|
-
var w = D.current && U[D.current] !== void 0 ? U[D.current] :
|
|
7185
|
+
var w = D.current && U[D.current] !== void 0 ? U[D.current] : m !== null && s === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, R = u.queryParams ? JSON.stringify(u.queryParams) : null, P = (0, p.useCallback)(function(W, M) {
|
|
7186
7186
|
var S;
|
|
7187
7187
|
if (M === void 0 && (M = !0), b.isEventSourceSupported && E.current instanceof EventSource) {
|
|
7188
7188
|
console.warn("Unable to send a message from an eventSource");
|
|
@@ -7195,14 +7195,14 @@ function ki() {
|
|
|
7195
7195
|
return A.current.share !== !0 || b.isEventSourceSupported && E.current instanceof EventSource ? E.current : (F.current === null && E.current && ((0, i.assertIsWebSocket)(E.current, A.current.skipAssert), F.current = (0, a.default)(E.current, G)), F.current);
|
|
7196
7196
|
}, []);
|
|
7197
7197
|
return (0, p.useEffect)(function() {
|
|
7198
|
-
if (
|
|
7198
|
+
if (m !== null && s === !0) {
|
|
7199
7199
|
var W, M = !1, S = !0, x = function() {
|
|
7200
7200
|
return n(void 0, void 0, void 0, function() {
|
|
7201
7201
|
var L, N, Z;
|
|
7202
7202
|
return t(this, function(q) {
|
|
7203
7203
|
switch (q.label) {
|
|
7204
7204
|
case 0:
|
|
7205
|
-
return L = D, [4, (0, r.getUrl)(
|
|
7205
|
+
return L = D, [4, (0, r.getUrl)(m, A)];
|
|
7206
7206
|
case 1:
|
|
7207
7207
|
return L.current = q.sent(), D.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), D.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7208
7208
|
return C(function(Q) {
|
|
@@ -7235,11 +7235,11 @@ function ki() {
|
|
|
7235
7235
|
}, x(), function() {
|
|
7236
7236
|
M = !0, S = !1, F.current && (F.current = null), W?.(), y(null);
|
|
7237
7237
|
};
|
|
7238
|
-
} else (
|
|
7238
|
+
} else (m === null || s === !1) && (O.current = 0, C(function(L) {
|
|
7239
7239
|
var N;
|
|
7240
7240
|
return e(e({}, L), D.current && (N = {}, N[D.current] = b.ReadyState.CLOSED, N));
|
|
7241
7241
|
}));
|
|
7242
|
-
}, [
|
|
7242
|
+
}, [m, s, R, P]), (0, p.useEffect)(function() {
|
|
7243
7243
|
w === b.ReadyState.OPEN && h.current.splice(0).forEach(function(W) {
|
|
7244
7244
|
P(W);
|
|
7245
7245
|
});
|
|
@@ -7286,11 +7286,11 @@ function ko() {
|
|
|
7286
7286
|
r === void 0 && (r = l.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
7287
7287
|
var i = (0, n.useMemo)(function() {
|
|
7288
7288
|
return e(e({}, r), { fromSocketIO: !0 });
|
|
7289
|
-
}, []), o = (0, t.useWebSocket)(d, i, a),
|
|
7290
|
-
return g(
|
|
7291
|
-
}, [
|
|
7289
|
+
}, []), o = (0, t.useWebSocket)(d, i, a), m = o.sendMessage, u = o.sendJsonMessage, s = o.lastMessage, c = o.readyState, f = o.getWebSocket, y = (0, n.useMemo)(function() {
|
|
7290
|
+
return g(s);
|
|
7291
|
+
}, [s]);
|
|
7292
7292
|
return {
|
|
7293
|
-
sendMessage:
|
|
7293
|
+
sendMessage: m,
|
|
7294
7294
|
sendJsonMessage: u,
|
|
7295
7295
|
lastMessage: y,
|
|
7296
7296
|
lastJsonMessage: y,
|
|
@@ -7325,11 +7325,11 @@ function xo() {
|
|
|
7325
7325
|
d === void 0 && (d = p.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7326
7326
|
var a = d.withCredentials, i = d.events, o = n(d, ["withCredentials", "events"]);
|
|
7327
7327
|
r === void 0 && (r = !0);
|
|
7328
|
-
var
|
|
7328
|
+
var m = e(e({}, o), { eventSourceOptions: {
|
|
7329
7329
|
withCredentials: a
|
|
7330
7330
|
} }), u = (0, t.useRef)(p.EMPTY_EVENT_HANDLERS);
|
|
7331
7331
|
i && (u.current = i);
|
|
7332
|
-
var
|
|
7332
|
+
var s = (0, l.useWebSocket)(b, m, r), c = s.lastMessage, f = s.readyState, y = s.getWebSocket;
|
|
7333
7333
|
return (0, t.useEffect)(function() {
|
|
7334
7334
|
c?.type && Object.entries(u.current).forEach(function(_) {
|
|
7335
7335
|
var U = _[0], C = _[1];
|
|
@@ -7377,13 +7377,13 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7377
7377
|
isInGameBox: l = !1,
|
|
7378
7378
|
currentGamePlatform: p = ""
|
|
7379
7379
|
}) => {
|
|
7380
|
-
const { store: g, lng: b } =
|
|
7380
|
+
const { store: g, lng: b } = se(), { isReady: d, setAsReady: r, isPending: a, setAsPending: i } = Jn(), o = Qe(b), { mutateAsync: m } = Ho();
|
|
7381
7381
|
return !e || !n || !t ? { handleTransferInGame: () => {
|
|
7382
7382
|
} } : { handleTransferInGame: async () => {
|
|
7383
|
-
console.log("執行遊戲內轉帳"), l && await
|
|
7383
|
+
console.log("執行遊戲內轉帳"), l && await m({
|
|
7384
7384
|
platform: p
|
|
7385
|
-
}).then((
|
|
7386
|
-
const { code: c, request_id: f } =
|
|
7385
|
+
}).then((s) => {
|
|
7386
|
+
const { code: c, request_id: f } = s;
|
|
7387
7387
|
switch (c) {
|
|
7388
7388
|
case 200:
|
|
7389
7389
|
r(), g.dispatch({
|
|
@@ -7417,7 +7417,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7417
7417
|
});
|
|
7418
7418
|
} };
|
|
7419
7419
|
}, Ha = () => {
|
|
7420
|
-
const { client: e } =
|
|
7420
|
+
const { client: e } = se(), n = I(async () => {
|
|
7421
7421
|
const { data: d } = await e.get("/carousels");
|
|
7422
7422
|
return d;
|
|
7423
7423
|
}, [e]), t = I(async () => await e.get("/marquees"), [e]), l = I(async () => await e.get("/notification"), [e]), p = I(
|
|
@@ -7509,7 +7509,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7509
7509
|
...e
|
|
7510
7510
|
});
|
|
7511
7511
|
}, Oo = ({ paramsData: e, options: n } = {}) => {
|
|
7512
|
-
const { userRebateApi: t } = oe(), { getToken: l } =
|
|
7512
|
+
const { userRebateApi: t } = oe(), { getToken: l } = se();
|
|
7513
7513
|
return l?.(), j({
|
|
7514
7514
|
queryKey: ["userRebate", e],
|
|
7515
7515
|
queryFn: async () => t({ paramsData: e }),
|
|
@@ -7532,7 +7532,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7532
7532
|
...e
|
|
7533
7533
|
});
|
|
7534
7534
|
}, Dm = ({ options: e } = {}) => {
|
|
7535
|
-
const { currency: n } =
|
|
7535
|
+
const { currency: n } = se(), { pointTransferApi: t } = oe();
|
|
7536
7536
|
return le({
|
|
7537
7537
|
mutationKey: ["pointTransfer"],
|
|
7538
7538
|
mutationFn: async (l) => t({
|
|
@@ -7542,7 +7542,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7542
7542
|
...e
|
|
7543
7543
|
});
|
|
7544
7544
|
}, Em = ({ options: e } = {}) => {
|
|
7545
|
-
const { currency: n } =
|
|
7545
|
+
const { currency: n } = se(), { checkUserWagerApi: t } = oe();
|
|
7546
7546
|
return j({
|
|
7547
7547
|
queryKey: ["checkUserWager"],
|
|
7548
7548
|
queryFn: async () => t(),
|
|
@@ -7588,7 +7588,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7588
7588
|
...e
|
|
7589
7589
|
});
|
|
7590
7590
|
}, Lm = ({ options: e } = {}) => {
|
|
7591
|
-
const { currency: n } =
|
|
7591
|
+
const { currency: n } = se(), { memberTransferApi: t } = oe();
|
|
7592
7592
|
return le({
|
|
7593
7593
|
mutationKey: ["memberTransfer"],
|
|
7594
7594
|
mutationFn: async (l) => t({ ...l, currency: n }),
|
|
@@ -7728,7 +7728,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7728
7728
|
userRebate: a,
|
|
7729
7729
|
userBindCard: i
|
|
7730
7730
|
};
|
|
7731
|
-
},
|
|
7731
|
+
}, ze = {
|
|
7732
7732
|
DEPOSIT: "deposit",
|
|
7733
7733
|
TRANS_CODE: "transCode",
|
|
7734
7734
|
ERROR: "error",
|
|
@@ -7756,7 +7756,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7756
7756
|
enableNotification: g = !1,
|
|
7757
7757
|
disabledLineAutoRegister: b = !1
|
|
7758
7758
|
}) => {
|
|
7759
|
-
const { store: d, lng: r } =
|
|
7759
|
+
const { store: d, lng: r } = se(), a = fi(), { isReady: i, setAsReady: o, isPending: m, setAsPending: u } = Jn(), s = Qe(r), c = ee(!1), f = ee(n), y = re(l, "uid", null);
|
|
7760
7760
|
re(l, "testFunction", 0);
|
|
7761
7761
|
const _ = new URLSearchParams(window.location.search), U = re(
|
|
7762
7762
|
p,
|
|
@@ -7821,14 +7821,14 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7821
7821
|
g && d.dispatch({
|
|
7822
7822
|
type: "ui/openNotificationModal",
|
|
7823
7823
|
payload: {
|
|
7824
|
-
title: ja[
|
|
7824
|
+
title: ja[s] || "System Prompt",
|
|
7825
7825
|
content: w,
|
|
7826
7826
|
type: "warning",
|
|
7827
7827
|
props: R
|
|
7828
7828
|
}
|
|
7829
7829
|
});
|
|
7830
7830
|
},
|
|
7831
|
-
[g, d,
|
|
7831
|
+
[g, d, s]
|
|
7832
7832
|
);
|
|
7833
7833
|
ge(() => {
|
|
7834
7834
|
f.current = n;
|
|
@@ -7856,67 +7856,60 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7856
7856
|
limitAmount: re(h, "limit_amount", null)
|
|
7857
7857
|
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie = re(h, "data.line_id", null), ye = re(h, "data.line_name", null), Ue = re(h, "member_info_uid", null);
|
|
7858
7858
|
switch (L) {
|
|
7859
|
-
case
|
|
7859
|
+
case ze.DEPOSIT:
|
|
7860
7860
|
Z && (D(), w?.(N));
|
|
7861
7861
|
break;
|
|
7862
|
-
case
|
|
7862
|
+
case ze.TRANS_CODE:
|
|
7863
7863
|
R?.(N);
|
|
7864
7864
|
break;
|
|
7865
|
-
case
|
|
7865
|
+
case ze.ERROR:
|
|
7866
7866
|
if (Z) {
|
|
7867
|
-
const
|
|
7867
|
+
const me = re(h, "open_game_modal", 0) === 1;
|
|
7868
7868
|
F(q, {
|
|
7869
|
-
notificationType:
|
|
7869
|
+
notificationType: me ? "gamingNotice" : void 0
|
|
7870
7870
|
}), P?.(N);
|
|
7871
7871
|
}
|
|
7872
7872
|
break;
|
|
7873
|
-
case
|
|
7873
|
+
case ze.UPDATE_MEMBER:
|
|
7874
7874
|
y && (a.invalidateQueries({
|
|
7875
7875
|
queryKey: ["getMemberInfo"]
|
|
7876
7876
|
}), H?.(N));
|
|
7877
7877
|
break;
|
|
7878
|
-
case
|
|
7878
|
+
case ze.MAINTAIN_NOTICE:
|
|
7879
7879
|
F(q, {
|
|
7880
7880
|
notificationType: "maintainNotice"
|
|
7881
7881
|
}), B?.(N);
|
|
7882
7882
|
break;
|
|
7883
|
-
case
|
|
7883
|
+
case ze.MAINTAIN_NOTICE_MEMBER:
|
|
7884
7884
|
Z && (F(q), W?.(N), setTimeout(() => {
|
|
7885
7885
|
window.location.reload();
|
|
7886
7886
|
}, 5e4));
|
|
7887
7887
|
break;
|
|
7888
|
-
case
|
|
7888
|
+
case ze.RELOAD:
|
|
7889
7889
|
window.location.reload();
|
|
7890
7890
|
break;
|
|
7891
|
-
case
|
|
7892
|
-
case
|
|
7893
|
-
if (
|
|
7894
|
-
const { request_id:
|
|
7891
|
+
case ze.TRANSFER_IN_GAME:
|
|
7892
|
+
case ze.CHECK_REQUEST:
|
|
7893
|
+
if (Z && U) {
|
|
7894
|
+
const { request_id: me, amount: ce, platform: ke, status: fe } = re(
|
|
7895
7895
|
N,
|
|
7896
7896
|
"data",
|
|
7897
7897
|
{}
|
|
7898
|
-
),
|
|
7898
|
+
), Ie = localStorage.getItem(
|
|
7899
7899
|
"transfer_in_game_request_id"
|
|
7900
7900
|
);
|
|
7901
|
-
if (
|
|
7902
|
-
|
|
7903
|
-
ce,
|
|
7904
|
-
ke,
|
|
7905
|
-
fe,
|
|
7906
|
-
"request_id",
|
|
7907
|
-
s
|
|
7908
|
-
), s) {
|
|
7909
|
-
localStorage.setItem("transfer_in_game_request_id", se);
|
|
7901
|
+
if (fe === "pending") {
|
|
7902
|
+
localStorage.setItem("transfer_in_game_request_id", me);
|
|
7910
7903
|
return;
|
|
7911
|
-
} else if (
|
|
7904
|
+
} else if (Ie && Ie === me) {
|
|
7912
7905
|
if (fe === "rollback") {
|
|
7913
|
-
|
|
7906
|
+
D();
|
|
7914
7907
|
return;
|
|
7915
7908
|
}
|
|
7916
7909
|
localStorage.removeItem("transfer_in_game_request_id"), o(), d.dispatch({
|
|
7917
7910
|
type: "ui/showToast",
|
|
7918
7911
|
payload: {
|
|
7919
|
-
title: ja[
|
|
7912
|
+
title: ja[s] || "System Prompt",
|
|
7920
7913
|
description: `您於${ke}存入的${ce}元已經處理完成了,請確認遊戲餘額`,
|
|
7921
7914
|
status: "success"
|
|
7922
7915
|
}
|
|
@@ -7925,24 +7918,24 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7925
7918
|
M?.(N);
|
|
7926
7919
|
}
|
|
7927
7920
|
break;
|
|
7928
|
-
case
|
|
7921
|
+
case ze.CASH_REGISTER_LIMIT:
|
|
7929
7922
|
F(q, {
|
|
7930
7923
|
notificationType: "cashRegisterLimit",
|
|
7931
7924
|
amount: Q,
|
|
7932
7925
|
limitAmount: K
|
|
7933
7926
|
}), S?.(N);
|
|
7934
7927
|
break;
|
|
7935
|
-
case
|
|
7928
|
+
case ze.UPDATE_ONLY_ONE_MEMBER:
|
|
7936
7929
|
Z && (a.invalidateQueries({
|
|
7937
7930
|
queryKey: ["getMemberInfo"]
|
|
7938
7931
|
}), H?.(N));
|
|
7939
7932
|
break;
|
|
7940
|
-
case
|
|
7933
|
+
case ze.GAME_MAINTAIN:
|
|
7941
7934
|
F(q, {
|
|
7942
7935
|
notificationType: "gameMaintain"
|
|
7943
7936
|
});
|
|
7944
7937
|
break;
|
|
7945
|
-
case
|
|
7938
|
+
case ze.LINE_LOGIN:
|
|
7946
7939
|
Ue === ae && C({
|
|
7947
7940
|
line_id: ie,
|
|
7948
7941
|
line_name: ye
|
|
@@ -7957,9 +7950,9 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7957
7950
|
y,
|
|
7958
7951
|
d,
|
|
7959
7952
|
a,
|
|
7960
|
-
m,
|
|
7961
|
-
F,
|
|
7962
7953
|
s,
|
|
7954
|
+
F,
|
|
7955
|
+
m,
|
|
7963
7956
|
D,
|
|
7964
7957
|
U,
|
|
7965
7958
|
o,
|
|
@@ -7970,25 +7963,20 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7970
7963
|
const w = localStorage.getItem(
|
|
7971
7964
|
"transfer_in_game_request_id"
|
|
7972
7965
|
);
|
|
7973
|
-
w && y &&
|
|
7974
|
-
|
|
7975
|
-
w,
|
|
7976
|
-
y,
|
|
7977
|
-
s
|
|
7978
|
-
), G({
|
|
7979
|
-
type: Ie.CHECK_REQUEST,
|
|
7966
|
+
w && y && m && G({
|
|
7967
|
+
type: ze.CHECK_REQUEST,
|
|
7980
7968
|
request_id: w,
|
|
7981
7969
|
member_info_uid: y
|
|
7982
|
-
})
|
|
7970
|
+
});
|
|
7983
7971
|
}
|
|
7984
|
-
}, [y,
|
|
7972
|
+
}, [y, m, G, U]), {
|
|
7985
7973
|
sendMessage: E,
|
|
7986
7974
|
sendJsonMessage: G,
|
|
7987
7975
|
readyState: k
|
|
7988
7976
|
// WebSocket 連線狀態
|
|
7989
7977
|
};
|
|
7990
7978
|
}, Ya = () => {
|
|
7991
|
-
const { client: e } =
|
|
7979
|
+
const { client: e } = se(), n = I(
|
|
7992
7980
|
async ({ paramsData: b } = {}) => {
|
|
7993
7981
|
const { uid: d } = b || {};
|
|
7994
7982
|
return await e.get(`/event/list${d ? `/${d}` : ""}`);
|
|
@@ -8031,17 +8019,17 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8031
8019
|
settleEventApi: g
|
|
8032
8020
|
};
|
|
8033
8021
|
}, Jo = ({ paramsData: e, options: n } = {}) => {
|
|
8034
|
-
const { store: t, lng: l, data2URL: p } =
|
|
8022
|
+
const { store: t, lng: l, data2URL: p } = se(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
|
|
8035
8023
|
return j({
|
|
8036
8024
|
queryKey: ["eventList", e],
|
|
8037
8025
|
queryFn: () => g({ paramsData: e }),
|
|
8038
8026
|
select: (r) => {
|
|
8039
8027
|
const { data: a } = r;
|
|
8040
8028
|
return Be(a, (o) => {
|
|
8041
|
-
const { events_attributes:
|
|
8042
|
-
|
|
8029
|
+
const { events_attributes: m } = o, u = $e(
|
|
8030
|
+
m,
|
|
8043
8031
|
(v) => v.attribute_currency === b
|
|
8044
|
-
) ||
|
|
8032
|
+
) || m[0], s = re(u, "rewards", {}), c = re(o, "carousels.[0]", {}), f = $e(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
|
|
8045
8033
|
...c,
|
|
8046
8034
|
currentLngCarousel: {
|
|
8047
8035
|
...f,
|
|
@@ -8110,31 +8098,31 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8110
8098
|
eventUid: u.event_uid
|
|
8111
8099
|
//活動UID
|
|
8112
8100
|
}, C = {
|
|
8113
|
-
baseValue:
|
|
8101
|
+
baseValue: s.base_value,
|
|
8114
8102
|
//基礎數值
|
|
8115
|
-
enableRewardsLimit:
|
|
8103
|
+
enableRewardsLimit: s.enable_rewards_limit === 1,
|
|
8116
8104
|
//是否啟用獎勵限制
|
|
8117
|
-
enableAmountLimit:
|
|
8105
|
+
enableAmountLimit: s.enable_amounts_limit === 1,
|
|
8118
8106
|
//是否啟用金額限制
|
|
8119
|
-
limitAmount:
|
|
8107
|
+
limitAmount: s.limit_amounts,
|
|
8120
8108
|
//限制金額
|
|
8121
|
-
enableTimesLimit:
|
|
8109
|
+
enableTimesLimit: s.enable_times_limit === 1,
|
|
8122
8110
|
//是否啟用次數限制
|
|
8123
|
-
limitTimes:
|
|
8111
|
+
limitTimes: s.limit_times,
|
|
8124
8112
|
//限制次數
|
|
8125
|
-
enableWageringLimit:
|
|
8113
|
+
enableWageringLimit: s.enable_wagering_limit === 1,
|
|
8126
8114
|
//是否啟用投注限制
|
|
8127
|
-
wageringLimitType:
|
|
8115
|
+
wageringLimitType: s.wagering_limit_type,
|
|
8128
8116
|
//投注限制類型
|
|
8129
|
-
wageringLimitValue:
|
|
8117
|
+
wageringLimitValue: s.wagering_limit_value,
|
|
8130
8118
|
//投注限制數值
|
|
8131
|
-
expirationDays:
|
|
8119
|
+
expirationDays: s.expiration_days,
|
|
8132
8120
|
//獎勵過期天數
|
|
8133
|
-
rewardName:
|
|
8121
|
+
rewardName: s.name,
|
|
8134
8122
|
//獎勵名稱
|
|
8135
|
-
rewardUid:
|
|
8123
|
+
rewardUid: s.uid,
|
|
8136
8124
|
//獎勵UID
|
|
8137
|
-
rewardType:
|
|
8125
|
+
rewardType: s.type
|
|
8138
8126
|
//獎勵類型
|
|
8139
8127
|
};
|
|
8140
8128
|
return {
|
|
@@ -8194,7 +8182,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8194
8182
|
checkEventStatusQuery: l
|
|
8195
8183
|
};
|
|
8196
8184
|
}, Km = ({ skipPreload: e = !1 } = {}) => {
|
|
8197
|
-
const { lng: n, data2URL: t } =
|
|
8185
|
+
const { lng: n, data2URL: t } = se(), { commonCarouselApi: l } = Ha(), p = Qe(n);
|
|
8198
8186
|
return j({
|
|
8199
8187
|
queryKey: ["getCarouselList", e],
|
|
8200
8188
|
queryFn: async () => {
|
|
@@ -8222,7 +8210,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8222
8210
|
})
|
|
8223
8211
|
});
|
|
8224
8212
|
}, qm = () => {
|
|
8225
|
-
const { lng: e } =
|
|
8213
|
+
const { lng: e } = se(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
|
|
8226
8214
|
return j({
|
|
8227
8215
|
queryKey: ["getMarqueeList"],
|
|
8228
8216
|
queryFn: async () => {
|
|
@@ -8250,7 +8238,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8250
8238
|
game_platform_uid: a,
|
|
8251
8239
|
memId: i,
|
|
8252
8240
|
platform: o,
|
|
8253
|
-
popularity_ranking:
|
|
8241
|
+
popularity_ranking: m,
|
|
8254
8242
|
profit: u
|
|
8255
8243
|
} = g;
|
|
8256
8244
|
return {
|
|
@@ -8266,7 +8254,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8266
8254
|
//會員ID
|
|
8267
8255
|
platform: o,
|
|
8268
8256
|
//平台
|
|
8269
|
-
popularityRanking:
|
|
8257
|
+
popularityRanking: m,
|
|
8270
8258
|
//人氣排名
|
|
8271
8259
|
profit: u
|
|
8272
8260
|
//winloss
|
|
@@ -8284,17 +8272,17 @@ var qo = Object.create, nl = Object.defineProperty, $o = Object.getOwnPropertyDe
|
|
|
8284
8272
|
typeof e == "object" && typeof n < "u" ? l(e) : typeof define == "function" && define.amd ? define(["exports"], l) : (t = typeof globalThis < "u" ? globalThis : t || self, l(t.fastUniqueNumbers = {}));
|
|
8285
8273
|
})(e, function(t) {
|
|
8286
8274
|
var l = function(u) {
|
|
8287
|
-
return function(
|
|
8288
|
-
var c = u(
|
|
8289
|
-
return
|
|
8275
|
+
return function(s) {
|
|
8276
|
+
var c = u(s);
|
|
8277
|
+
return s.add(c), c;
|
|
8290
8278
|
};
|
|
8291
8279
|
}, p = function(u) {
|
|
8292
|
-
return function(
|
|
8293
|
-
return u.set(
|
|
8280
|
+
return function(s, c) {
|
|
8281
|
+
return u.set(s, c), c;
|
|
8294
8282
|
};
|
|
8295
|
-
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, d = b * 2, r = function(u,
|
|
8283
|
+
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, d = b * 2, r = function(u, s) {
|
|
8296
8284
|
return function(c) {
|
|
8297
|
-
var f =
|
|
8285
|
+
var f = s.get(c), y = f === void 0 ? c.size : f < d ? f + 1 : 0;
|
|
8298
8286
|
if (!c.has(y)) return u(c, y);
|
|
8299
8287
|
if (c.size < b) {
|
|
8300
8288
|
for (; c.has(y); ) y = Math.floor(Math.random() * d);
|
|
@@ -8304,8 +8292,8 @@ var qo = Object.create, nl = Object.defineProperty, $o = Object.getOwnPropertyDe
|
|
|
8304
8292
|
for (; c.has(y); ) y = Math.floor(Math.random() * g);
|
|
8305
8293
|
return u(c, y);
|
|
8306
8294
|
};
|
|
8307
|
-
}, a = /* @__PURE__ */ new WeakMap(), i = p(a), o = r(i, a),
|
|
8308
|
-
t.addUniqueNumber =
|
|
8295
|
+
}, a = /* @__PURE__ */ new WeakMap(), i = p(a), o = r(i, a), m = l(o);
|
|
8296
|
+
t.addUniqueNumber = m, t.generateUniqueNumber = o;
|
|
8309
8297
|
});
|
|
8310
8298
|
});
|
|
8311
8299
|
as(ts());
|
|
@@ -8575,8 +8563,8 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8575
8563
|
}, onIdle: a = () => {
|
|
8576
8564
|
}, onActive: i = () => {
|
|
8577
8565
|
}, onAction: o = () => {
|
|
8578
|
-
}, onMessage:
|
|
8579
|
-
}, debounce: u = 0, throttle:
|
|
8566
|
+
}, onMessage: m = () => {
|
|
8567
|
+
}, debounce: u = 0, throttle: s = 0, eventsThrottle: c = 200, startOnMount: f = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: D = !1, disabled: E = !1 } = {}) {
|
|
8580
8568
|
let G = ee(Te()), O = ee(Te()), k = ee(null), h = ee(null), F = ee(0), A = ee(0), w = ee(0), R = ee(0), P = ee(!1), H = ee(!1), B = ee(!1), W = ee(!0), M = ee(!1), S = ee(null), x = ee(null), L = ee(e), N = ee(0);
|
|
8581
8569
|
ge(() => {
|
|
8582
8570
|
if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
@@ -8586,7 +8574,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8586
8574
|
if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8587
8575
|
if (t ? (L.current = e - t, N.current = t) : (L.current = e, N.current = n), !W.current) {
|
|
8588
8576
|
if (y || E) return;
|
|
8589
|
-
P.current && (
|
|
8577
|
+
P.current && (me.current(null, Se), x.current && x.current.active()), je();
|
|
8590
8578
|
}
|
|
8591
8579
|
}, [e, n, t, y, E]);
|
|
8592
8580
|
let Z = ee(_);
|
|
@@ -8609,38 +8597,38 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8609
8597
|
ge(() => {
|
|
8610
8598
|
Ue.current = a;
|
|
8611
8599
|
}, [a]);
|
|
8612
|
-
let
|
|
8600
|
+
let me = ee(i);
|
|
8613
8601
|
ge(() => {
|
|
8614
|
-
|
|
8602
|
+
me.current = i;
|
|
8615
8603
|
}, [i]);
|
|
8616
8604
|
let ce = ee(o);
|
|
8617
8605
|
ge(() => {
|
|
8618
8606
|
ce.current = o;
|
|
8619
8607
|
}, [o]);
|
|
8620
|
-
let ke = ee(
|
|
8608
|
+
let ke = ee(m);
|
|
8621
8609
|
ge(() => {
|
|
8622
|
-
ke.current =
|
|
8623
|
-
}, [
|
|
8610
|
+
ke.current = m;
|
|
8611
|
+
}, [m]);
|
|
8624
8612
|
let fe = Oa(() => {
|
|
8625
8613
|
let V = (De, ia) => ce.current(De, ia);
|
|
8626
|
-
return u > 0 ? ps(V, u) :
|
|
8627
|
-
}, [
|
|
8614
|
+
return u > 0 ? ps(V, u) : s > 0 ? ri(V, s) : V;
|
|
8615
|
+
}, [s, u]), Ie = ee();
|
|
8628
8616
|
ge(() => {
|
|
8629
|
-
U && v && (
|
|
8617
|
+
U && v && (Ie.current = ri(() => {
|
|
8630
8618
|
x.current.active();
|
|
8631
8619
|
}, v));
|
|
8632
8620
|
}, [U, v]);
|
|
8633
8621
|
let Ce = () => {
|
|
8634
8622
|
S.current !== null && (Xe.clearTimeout(S.current), S.current = null);
|
|
8635
8623
|
}, Ge = (V, De = !0) => {
|
|
8636
|
-
Ce(), S.current = Xe.setTimeout(
|
|
8624
|
+
Ce(), S.current = Xe.setTimeout(He, V || L.current), De && (h.current = Te());
|
|
8637
8625
|
}, ea = (V) => {
|
|
8638
8626
|
!H.current && !P.current && (ye.current(V, Se), ie.current({ type: "active", prompted: !0 }, Se)), R.current = 0, w.current = Te(), H.current = !0, Ge(N.current, !1);
|
|
8639
8627
|
}, Me = () => {
|
|
8640
8628
|
Ce(), P.current || (Ue.current(null, Se), ie.current({ type: "idle" }, Se)), P.current = !0, k.current = Te(), Z.current ? Re() : H.current && (w.current = 0, H.current = !1);
|
|
8641
8629
|
}, ve = (V) => {
|
|
8642
|
-
Ce(), (P.current || H.current) && (
|
|
8643
|
-
},
|
|
8630
|
+
Ce(), (P.current || H.current) && (me.current(V, Se), ie.current({ type: "active", prompted: !1 }, Se)), H.current = !1, w.current = 0, P.current = !1, F.current += Te() - k.current, A.current += Te() - k.current, xe(), Ge();
|
|
8631
|
+
}, He = (V) => {
|
|
8644
8632
|
if (!P.current) {
|
|
8645
8633
|
fe.cancel && fe.cancel();
|
|
8646
8634
|
let De = Te() - h.current;
|
|
@@ -8653,22 +8641,22 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8653
8641
|
}
|
|
8654
8642
|
x.current ? x.current.active() : ve(V);
|
|
8655
8643
|
}, aa = (V) => {
|
|
8656
|
-
if (!f && !h.current && (h.current = Te(),
|
|
8644
|
+
if (!f && !h.current && (h.current = Te(), me.current(null, Se)), fe(V, Se), H.current) return;
|
|
8657
8645
|
if (Ce(), !P.current && q.current.includes(V.type)) {
|
|
8658
|
-
|
|
8646
|
+
He(V);
|
|
8659
8647
|
return;
|
|
8660
8648
|
}
|
|
8661
8649
|
let De = Te() - h.current;
|
|
8662
8650
|
if (P.current && !_ || !P.current && De >= L.current) {
|
|
8663
|
-
|
|
8651
|
+
He(V);
|
|
8664
8652
|
return;
|
|
8665
8653
|
}
|
|
8666
|
-
B.current = !1, R.current = 0, w.current = 0, Ge(), U && v &&
|
|
8654
|
+
B.current = !1, R.current = 0, w.current = 0, Ge(), U && v && Ie.current();
|
|
8667
8655
|
}, ta = ee(aa);
|
|
8668
8656
|
ge(() => {
|
|
8669
8657
|
let V = M.current;
|
|
8670
8658
|
V && Re(), c > 0 ? ta.current = ri(aa, c) : ta.current = aa, V && xe();
|
|
8671
|
-
}, [c,
|
|
8659
|
+
}, [c, s, u, ce, U, v]);
|
|
8672
8660
|
let xe = () => {
|
|
8673
8661
|
pa && Q.current && (M.current || (K.current.forEach((V) => {
|
|
8674
8662
|
Q.current.addEventListener(V, ta.current, { capture: !0, passive: !0 });
|
|
@@ -8677,7 +8665,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8677
8665
|
pa && Q.current && (M.current || V) && (K.current.forEach((De) => {
|
|
8678
8666
|
Q.current.removeEventListener(De, ta.current, { capture: !0 });
|
|
8679
8667
|
}), M.current = !1);
|
|
8680
|
-
}, je = I((V) => ae.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.start(), Ge(), !0), [S, P, ae, L, x]), oa = I((V) => ae.current ? !1 : (Ce(), xe(), O.current = Te(), F.current += Te() - k.current, A.current += Te() - k.current, F.current = 0, P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.reset(), y || Ge(), !0), [S, P, L, y, ae, x]), ga = I((V) => ae.current ? !1 : (Ce(), xe(), (P.current || H.current) && ve(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, O.current = Te(), x.current && !V && x.current.activate(), Ge(), !0), [S, P, H, ae, L, x]), Ve = I((V = !1) => ae.current || B.current ? !1 : (R.current = ya(), B.current = !0, Re(), Ce(), x.current && !V && x.current.pause(), !0), [S, ae, x]), Ye = I((V = !1) => ae.current || !B.current ? !1 : (B.current = !1, H.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), x.current && !V && x.current.resume(), !0), [S, L, ae, R, x]), za = I((V, De) => (x.current ? (De && ke.current(V, Se), x.current.message(V)) : De && ke.current(V, Se), !0), [
|
|
8668
|
+
}, je = I((V) => ae.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.start(), Ge(), !0), [S, P, ae, L, x]), oa = I((V) => ae.current ? !1 : (Ce(), xe(), O.current = Te(), F.current += Te() - k.current, A.current += Te() - k.current, F.current = 0, P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.reset(), y || Ge(), !0), [S, P, L, y, ae, x]), ga = I((V) => ae.current ? !1 : (Ce(), xe(), (P.current || H.current) && ve(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, O.current = Te(), x.current && !V && x.current.activate(), Ge(), !0), [S, P, H, ae, L, x]), Ve = I((V = !1) => ae.current || B.current ? !1 : (R.current = ya(), B.current = !0, Re(), Ce(), x.current && !V && x.current.pause(), !0), [S, ae, x]), Ye = I((V = !1) => ae.current || !B.current ? !1 : (B.current = !1, H.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), x.current && !V && x.current.resume(), !0), [S, L, ae, R, x]), za = I((V, De) => (x.current ? (De && ke.current(V, Se), x.current.message(V)) : De && ke.current(V, Se), !0), [m]), Da = I(() => P.current, [P]), Ea = I(() => H.current, [H]), Ia = I(() => x.current ? x.current.isLeader : null, [x]), Va = I(() => x.current ? x.current.isLastActive : null, [x]), da = I(() => x.current ? x.current.token : null, [x]), ya = I(() => {
|
|
8681
8669
|
if (B.current) return R.current;
|
|
8682
8670
|
let V = R.current ? R.current : N.current + L.current, De = h.current ? Te() - h.current : 0, ia = Math.floor(V - De);
|
|
8683
8671
|
return ia < 0 ? 0 : Math.abs(ia);
|
|
@@ -8689,7 +8677,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8689
8677
|
return V >= 0 ? V : 0;
|
|
8690
8678
|
}, [k, F]);
|
|
8691
8679
|
ge(() => {
|
|
8692
|
-
if (u > 0 &&
|
|
8680
|
+
if (u > 0 && s > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8693
8681
|
g && is(g);
|
|
8694
8682
|
let V = () => {
|
|
8695
8683
|
x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
|
|
@@ -8707,7 +8695,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8707
8695
|
}, onMessage: (V) => {
|
|
8708
8696
|
ke.current(V, Se);
|
|
8709
8697
|
}, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye }) : x.current = null;
|
|
8710
|
-
}, [U, C, D, ye, Ue,
|
|
8698
|
+
}, [U, C, D, ye, Ue, me, ke, je, oa, Ve, Ye]), ge(() => {
|
|
8711
8699
|
W.current || (Ce(), Re(!0)), !(y || E) && (f ? je() : xe());
|
|
8712
8700
|
}, [y, f, E, W]), ge(() => {
|
|
8713
8701
|
if (!W.current) {
|
|
@@ -8725,11 +8713,11 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8725
8713
|
}, setOnIdle: (V) => {
|
|
8726
8714
|
a = V, Ue.current = V;
|
|
8727
8715
|
}, setOnActive: (V) => {
|
|
8728
|
-
i = V,
|
|
8716
|
+
i = V, me.current = V;
|
|
8729
8717
|
}, setOnAction: (V) => {
|
|
8730
8718
|
o = V, ce.current = V;
|
|
8731
8719
|
}, setOnMessage: (V) => {
|
|
8732
|
-
|
|
8720
|
+
m = V, ke.current = V;
|
|
8733
8721
|
} };
|
|
8734
8722
|
return Se;
|
|
8735
8723
|
}
|
|
@@ -8742,7 +8730,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8742
8730
|
timeout: l,
|
|
8743
8731
|
throttle: 500
|
|
8744
8732
|
}), cs = ({ options: e } = {}) => {
|
|
8745
|
-
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } =
|
|
8733
|
+
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = se(), p = t?.(), g = Qe(l);
|
|
8746
8734
|
return j({
|
|
8747
8735
|
queryKey: ["inboxList"],
|
|
8748
8736
|
queryFn: async () => await n(),
|
|
@@ -8781,7 +8769,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8781
8769
|
readInboxMutation: t
|
|
8782
8770
|
};
|
|
8783
8771
|
}, rl = () => {
|
|
8784
|
-
const { client: e } =
|
|
8772
|
+
const { client: e } = se();
|
|
8785
8773
|
return {
|
|
8786
8774
|
newsListApi: I(
|
|
8787
8775
|
async ({ uid: t, params: l } = {}) => await e.get(`/news${t ? `/${t}` : ""}`, {
|
|
@@ -8837,7 +8825,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8837
8825
|
...e.other
|
|
8838
8826
|
}
|
|
8839
8827
|
], Ym = ({ options: e, formData: n } = {}) => {
|
|
8840
|
-
const { lng: t } =
|
|
8828
|
+
const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8841
8829
|
return j({
|
|
8842
8830
|
queryKey: ["newsList"],
|
|
8843
8831
|
queryFn: () => {
|
|
@@ -8863,7 +8851,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8863
8851
|
...e
|
|
8864
8852
|
});
|
|
8865
8853
|
}, Xm = ({ options: e, formData: n } = {}) => {
|
|
8866
|
-
const { lng: t } =
|
|
8854
|
+
const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8867
8855
|
return j({
|
|
8868
8856
|
queryKey: ["newsList"],
|
|
8869
8857
|
queryFn: () => {
|
|
@@ -8882,14 +8870,14 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8882
8870
|
...e
|
|
8883
8871
|
});
|
|
8884
8872
|
}, Ae = () => {
|
|
8885
|
-
const { client: e } =
|
|
8886
|
-
async ({ paramsData:
|
|
8887
|
-
params: { ...
|
|
8873
|
+
const { client: e } = se(), n = I(async () => await e.get("/payment/list"), [e]), t = I(
|
|
8874
|
+
async ({ paramsData: s }) => await e.get("/thirdPartyPayment/list", {
|
|
8875
|
+
params: { ...s }
|
|
8888
8876
|
}),
|
|
8889
8877
|
[e]
|
|
8890
8878
|
), l = I(
|
|
8891
|
-
async (
|
|
8892
|
-
const { deposit_amount: c, method_id: f, currency_code: y, provider_uid: _ } =
|
|
8879
|
+
async (s) => {
|
|
8880
|
+
const { deposit_amount: c, method_id: f, currency_code: y, provider_uid: _ } = s;
|
|
8893
8881
|
return await e.post("/thirdPartyPayment/deposit", {
|
|
8894
8882
|
deposit: {
|
|
8895
8883
|
deposit_amount: c,
|
|
@@ -8901,8 +8889,8 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8901
8889
|
},
|
|
8902
8890
|
[e]
|
|
8903
8891
|
), p = I(
|
|
8904
|
-
async (
|
|
8905
|
-
const { bank_uid: c, amount: f, bank_number_last5: y, postscript: _ } =
|
|
8892
|
+
async (s) => {
|
|
8893
|
+
const { bank_uid: c, amount: f, bank_number_last5: y, postscript: _ } = s;
|
|
8906
8894
|
return await e.post("/vip/deposit", {
|
|
8907
8895
|
bank_uid: c,
|
|
8908
8896
|
amount: f,
|
|
@@ -8912,13 +8900,13 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8912
8900
|
},
|
|
8913
8901
|
[e]
|
|
8914
8902
|
), g = I(
|
|
8915
|
-
async (
|
|
8903
|
+
async (s) => {
|
|
8916
8904
|
const {
|
|
8917
8905
|
withdrawal_amount: c,
|
|
8918
8906
|
bank_account_number: f,
|
|
8919
8907
|
currency_code: y,
|
|
8920
8908
|
withdrawal_code: _
|
|
8921
|
-
} =
|
|
8909
|
+
} = s;
|
|
8922
8910
|
return await e.post("/thirdPartyPayment/withdraw", {
|
|
8923
8911
|
withdraw: {
|
|
8924
8912
|
withdrawal_amount: c,
|
|
@@ -8931,8 +8919,8 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8931
8919
|
},
|
|
8932
8920
|
[e]
|
|
8933
8921
|
), b = I(
|
|
8934
|
-
async ({ paramsData:
|
|
8935
|
-
const { str_date: c, end_date: f, limit: y = 25, current_page: _ } =
|
|
8922
|
+
async ({ paramsData: s } = {}) => {
|
|
8923
|
+
const { str_date: c, end_date: f, limit: y = 25, current_page: _ } = s || {}, U = we().format("HH:mm:ss"), C = we().subtract(24, "hour").format("HH:mm:ss");
|
|
8936
8924
|
return await e.get("/report/deposit", {
|
|
8937
8925
|
params: {
|
|
8938
8926
|
str_date: `${we(c).format("YYYY-MM-DD")} ${U}`,
|
|
@@ -8944,8 +8932,8 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8944
8932
|
},
|
|
8945
8933
|
[e]
|
|
8946
8934
|
), d = I(
|
|
8947
|
-
async ({ paramsData:
|
|
8948
|
-
const { str_date: c, end_date: f, limit: y = 25, current_page: _ } =
|
|
8935
|
+
async ({ paramsData: s }) => {
|
|
8936
|
+
const { str_date: c, end_date: f, limit: y = 25, current_page: _ } = s || {}, U = we().format("HH:mm:ss"), C = we().subtract(24, "hour").format("HH:mm:ss");
|
|
8949
8937
|
return await e.get("report/eventsreward", {
|
|
8950
8938
|
params: {
|
|
8951
8939
|
str_date: `${we(c).format("YYYY-MM-DD")} ${U}`,
|
|
@@ -8957,8 +8945,8 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8957
8945
|
},
|
|
8958
8946
|
[e]
|
|
8959
8947
|
), r = I(
|
|
8960
|
-
async ({ paramsData:
|
|
8961
|
-
const { str_date: c, end_date: f, limit: y = 25, current_page: _ } =
|
|
8948
|
+
async ({ paramsData: s } = {}) => {
|
|
8949
|
+
const { str_date: c, end_date: f, limit: y = 25, current_page: _ } = s || {};
|
|
8962
8950
|
return await e.get("/report/withdraw", {
|
|
8963
8951
|
params: {
|
|
8964
8952
|
str_date: `${we(c).format("YYYY-MM-DD")} 12:00:00`,
|
|
@@ -8970,14 +8958,14 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8970
8958
|
},
|
|
8971
8959
|
[e]
|
|
8972
8960
|
), a = I(
|
|
8973
|
-
async (
|
|
8974
|
-
const { redeem_code: c } =
|
|
8961
|
+
async (s) => {
|
|
8962
|
+
const { redeem_code: c } = s;
|
|
8975
8963
|
return await e.post(`/sn/redeem/${c}`);
|
|
8976
8964
|
},
|
|
8977
8965
|
[e]
|
|
8978
8966
|
), i = I(
|
|
8979
|
-
async (
|
|
8980
|
-
const { type: c, code: f } =
|
|
8967
|
+
async (s) => {
|
|
8968
|
+
const { type: c, code: f } = s;
|
|
8981
8969
|
return await e.post("/member/invoice", {
|
|
8982
8970
|
type: c,
|
|
8983
8971
|
code: f
|
|
@@ -8985,16 +8973,16 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8985
8973
|
},
|
|
8986
8974
|
[e]
|
|
8987
8975
|
), o = I(
|
|
8988
|
-
async (
|
|
8989
|
-
const { type: c, code: f, uid: y } =
|
|
8976
|
+
async (s) => {
|
|
8977
|
+
const { type: c, code: f, uid: y } = s;
|
|
8990
8978
|
return await e.put(`/member/invoice/${y}`, {
|
|
8991
8979
|
type: c,
|
|
8992
8980
|
code: f
|
|
8993
8981
|
});
|
|
8994
8982
|
},
|
|
8995
8983
|
[e]
|
|
8996
|
-
),
|
|
8997
|
-
async (
|
|
8984
|
+
), m = I(
|
|
8985
|
+
async (s, c) => {
|
|
8998
8986
|
const {
|
|
8999
8987
|
str_date: f,
|
|
9000
8988
|
end_date: y,
|
|
@@ -9002,7 +8990,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9002
8990
|
page: U = 1,
|
|
9003
8991
|
wallet_log_uid: C,
|
|
9004
8992
|
transhash: v
|
|
9005
|
-
} =
|
|
8993
|
+
} = s;
|
|
9006
8994
|
return await e.get(`/walletlog/${c}`, {
|
|
9007
8995
|
params: {
|
|
9008
8996
|
s_date: f,
|
|
@@ -9016,14 +9004,14 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9016
9004
|
},
|
|
9017
9005
|
[e]
|
|
9018
9006
|
), u = I(
|
|
9019
|
-
async (
|
|
9007
|
+
async (s) => {
|
|
9020
9008
|
const {
|
|
9021
9009
|
str_date: c,
|
|
9022
9010
|
end_date: f,
|
|
9023
9011
|
limit: y = 25,
|
|
9024
9012
|
page: _ = 1,
|
|
9025
9013
|
treasure_uid: U
|
|
9026
|
-
} =
|
|
9014
|
+
} = s;
|
|
9027
9015
|
return await e.get("/treasure/drawLog", {
|
|
9028
9016
|
params: {
|
|
9029
9017
|
str_date: c,
|
|
@@ -9048,7 +9036,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9048
9036
|
redeemCodeDepositApi: a,
|
|
9049
9037
|
invoiceApi: i,
|
|
9050
9038
|
updateInvoiceApi: o,
|
|
9051
|
-
transactionRecordApi:
|
|
9039
|
+
transactionRecordApi: m,
|
|
9052
9040
|
treasureRecordApi: u
|
|
9053
9041
|
};
|
|
9054
9042
|
}, ys = ({ options: e } = {}) => {
|
|
@@ -9191,7 +9179,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9191
9179
|
eventTransaction: b = {},
|
|
9192
9180
|
withdrawTransaction: d = {}
|
|
9193
9181
|
} = {}) => {
|
|
9194
|
-
const r = ys(e), a = Us(n), i = vs(t), o = bs(l),
|
|
9182
|
+
const r = ys(e), a = Us(n), i = vs(t), o = bs(l), m = Cs(p), u = Ts(g), s = hs(b), c = ks(
|
|
9195
9183
|
d
|
|
9196
9184
|
);
|
|
9197
9185
|
return {
|
|
@@ -9199,9 +9187,9 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9199
9187
|
depositV2: a,
|
|
9200
9188
|
depositTransaction: i,
|
|
9201
9189
|
depositAction: o,
|
|
9202
|
-
withdrawAction:
|
|
9190
|
+
withdrawAction: m,
|
|
9203
9191
|
bankDepositAction: u,
|
|
9204
|
-
eventTransaction:
|
|
9192
|
+
eventTransaction: s,
|
|
9205
9193
|
withdrawTransaction: c
|
|
9206
9194
|
};
|
|
9207
9195
|
}, ol = "3.7.8", xs = ol, Wa = typeof Buffer == "function", Mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Rn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ss = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Qa = Array.prototype.slice.call(Ss), rt = ((e) => {
|
|
@@ -9317,17 +9305,17 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9317
9305
|
game_currency: a,
|
|
9318
9306
|
lang: i,
|
|
9319
9307
|
not_support_iframe: o,
|
|
9320
|
-
portrait:
|
|
9308
|
+
portrait: m,
|
|
9321
9309
|
url: u,
|
|
9322
|
-
is_html_code:
|
|
9310
|
+
is_html_code: s,
|
|
9323
9311
|
message: c
|
|
9324
9312
|
} = r;
|
|
9325
9313
|
return {
|
|
9326
9314
|
gameCurrency: a,
|
|
9327
9315
|
lang: i,
|
|
9328
9316
|
supportIframe: !o,
|
|
9329
|
-
supportPortrait:
|
|
9330
|
-
isHtmlCode:
|
|
9317
|
+
supportPortrait: m,
|
|
9318
|
+
isHtmlCode: s,
|
|
9331
9319
|
gameUrl: u,
|
|
9332
9320
|
decodeGameUrl: ws.decode(u),
|
|
9333
9321
|
message: c
|
|
@@ -9337,7 +9325,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9337
9325
|
...n
|
|
9338
9326
|
});
|
|
9339
9327
|
}, Cl = () => {
|
|
9340
|
-
const { client: e } =
|
|
9328
|
+
const { client: e } = se(), n = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
9341
9329
|
return {
|
|
9342
9330
|
currentRebateApi: n,
|
|
9343
9331
|
receiveRebateApi: t
|
|
@@ -9369,7 +9357,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9369
9357
|
receiveRebate: t
|
|
9370
9358
|
};
|
|
9371
9359
|
}, Xa = () => {
|
|
9372
|
-
const { client: e } =
|
|
9360
|
+
const { client: e } = se(), n = I(
|
|
9373
9361
|
async ({ uid: b, params: d } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
|
|
9374
9362
|
params: d
|
|
9375
9363
|
}),
|
|
@@ -9404,7 +9392,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9404
9392
|
expiration_days: a,
|
|
9405
9393
|
name: i,
|
|
9406
9394
|
position: o,
|
|
9407
|
-
type:
|
|
9395
|
+
type: m,
|
|
9408
9396
|
uid: u
|
|
9409
9397
|
} = r;
|
|
9410
9398
|
return {
|
|
@@ -9412,7 +9400,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9412
9400
|
rewardExpirationDays: a,
|
|
9413
9401
|
rewardName: i,
|
|
9414
9402
|
rewardPosition: o,
|
|
9415
|
-
rewardType:
|
|
9403
|
+
rewardType: m,
|
|
9416
9404
|
rewardUid: u,
|
|
9417
9405
|
rewardWagering: b,
|
|
9418
9406
|
rewardAmount: d,
|
|
@@ -9481,7 +9469,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9481
9469
|
historyRewardsListQuery: g
|
|
9482
9470
|
};
|
|
9483
9471
|
}, vl = () => {
|
|
9484
|
-
const { client: e } =
|
|
9472
|
+
const { client: e } = se(), n = I(
|
|
9485
9473
|
async (l = {}) => {
|
|
9486
9474
|
const {
|
|
9487
9475
|
startTime: p = "2025-12-30 00:00:00",
|
|
@@ -9516,7 +9504,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9516
9504
|
redeemTreasureApi: t
|
|
9517
9505
|
};
|
|
9518
9506
|
}, gu = ({ paramsData: e, options: n } = {}) => {
|
|
9519
|
-
const { client: t, lng: l } =
|
|
9507
|
+
const { client: t, lng: l } = se(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
|
|
9520
9508
|
return j({
|
|
9521
9509
|
queryKey: ["treasureList", e],
|
|
9522
9510
|
queryFn: () => g(e),
|
|
@@ -9551,13 +9539,13 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9551
9539
|
...e
|
|
9552
9540
|
});
|
|
9553
9541
|
}, hl = () => {
|
|
9554
|
-
const { client: e } =
|
|
9542
|
+
const { client: e } = se(), n = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
|
|
9555
9543
|
return {
|
|
9556
9544
|
vipListApi: n,
|
|
9557
9545
|
vipInfoApi: t
|
|
9558
9546
|
};
|
|
9559
9547
|
}, cu = ({ options: e } = {}) => {
|
|
9560
|
-
const { store: n } =
|
|
9548
|
+
const { store: n } = se(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
|
|
9561
9549
|
return j({
|
|
9562
9550
|
queryKey: ["vipInfo"],
|
|
9563
9551
|
queryFn: async () => l(),
|
|
@@ -9572,7 +9560,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9572
9560
|
...e
|
|
9573
9561
|
});
|
|
9574
9562
|
}, Is = ({ options: e } = {}) => {
|
|
9575
|
-
const { store: n } =
|
|
9563
|
+
const { store: n } = se(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
|
|
9576
9564
|
return j({
|
|
9577
9565
|
queryKey: ["vipList"],
|
|
9578
9566
|
queryFn: async () => {
|
|
@@ -9587,11 +9575,11 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9587
9575
|
vip_payment_tags: a,
|
|
9588
9576
|
vip_withdrawal_rate: i,
|
|
9589
9577
|
rebate_range: o,
|
|
9590
|
-
vip_game_rebate:
|
|
9591
|
-
} = d, u = $e(r, { currency_code: t }) || {},
|
|
9578
|
+
vip_game_rebate: m
|
|
9579
|
+
} = d, u = $e(r, { currency_code: t }) || {}, s = $e(a, { currency_code: t }) || {}, c = i, f = Be(o, (U) => ({
|
|
9592
9580
|
...U,
|
|
9593
9581
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9594
|
-
})), y = re(
|
|
9582
|
+
})), y = re(m, "[0]", {}), _ = {
|
|
9595
9583
|
...y,
|
|
9596
9584
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9597
9585
|
};
|
|
@@ -9599,7 +9587,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9599
9587
|
...d,
|
|
9600
9588
|
vipImageUrl: `${Ze}/vip/vip${d.level}_l.avif`,
|
|
9601
9589
|
vipRule: u,
|
|
9602
|
-
vipWithdraw:
|
|
9590
|
+
vipWithdraw: s,
|
|
9603
9591
|
vipWithdrawFeeRate: c,
|
|
9604
9592
|
vipRebateRange: f,
|
|
9605
9593
|
processedVipGameRebate: _
|
|
@@ -9632,7 +9620,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9632
9620
|
return "En";
|
|
9633
9621
|
}
|
|
9634
9622
|
}, ot = "game-icon-ds88", _u = ({ gameData: e = {} } = {}) => {
|
|
9635
|
-
const { lng: n } =
|
|
9623
|
+
const { lng: n } = se(), t = An(n), {
|
|
9636
9624
|
gameCode: l,
|
|
9637
9625
|
// 遊戲代碼
|
|
9638
9626
|
gameUid: p,
|
|
@@ -9652,11 +9640,11 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9652
9640
|
// 遊戲子類型
|
|
9653
9641
|
game_type: o,
|
|
9654
9642
|
// 遊戲類型
|
|
9655
|
-
game_tags:
|
|
9643
|
+
game_tags: m,
|
|
9656
9644
|
// 遊戲標籤
|
|
9657
9645
|
isUnderMaintenance: u,
|
|
9658
9646
|
// 是否維護中
|
|
9659
|
-
support_vertical:
|
|
9647
|
+
support_vertical: s,
|
|
9660
9648
|
// 是否支援直向
|
|
9661
9649
|
support_horizontal: c,
|
|
9662
9650
|
// 是否支援橫向
|
|
@@ -9686,9 +9674,9 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9686
9674
|
gamePlatform: a,
|
|
9687
9675
|
gameSubType: i,
|
|
9688
9676
|
gameType: o,
|
|
9689
|
-
gameTags:
|
|
9677
|
+
gameTags: m,
|
|
9690
9678
|
isUnderMaintenance: u,
|
|
9691
|
-
supportVertical:
|
|
9679
|
+
supportVertical: s,
|
|
9692
9680
|
supportHorizontal: c,
|
|
9693
9681
|
userClickCount: U,
|
|
9694
9682
|
gameNameEn: C,
|
|
@@ -9737,7 +9725,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9737
9725
|
// 臨時維護開始時間
|
|
9738
9726
|
temp_maintenance_end_time: o
|
|
9739
9727
|
// 臨時維護結束時間
|
|
9740
|
-
} = e || {},
|
|
9728
|
+
} = e || {}, m = `${Ze}/${qn}/${Vs(l, n)}.png`;
|
|
9741
9729
|
return {
|
|
9742
9730
|
subPlatformEnum: t,
|
|
9743
9731
|
platformEnum: l,
|
|
@@ -9749,7 +9737,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9749
9737
|
platformMode: a,
|
|
9750
9738
|
tempMaintenanceStartTime: i,
|
|
9751
9739
|
tempMaintenanceEndTime: o,
|
|
9752
|
-
platformImageUrl:
|
|
9740
|
+
platformImageUrl: m
|
|
9753
9741
|
};
|
|
9754
9742
|
}, Js = (e = {}) => !$t(e) || Ee(e) ? [] : Qt(e), On = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "platform"), Zs = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "gameTypeName"), Ks = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "game_subtype"), qs = (e = {}) => !$t(e) || Ee(e) ? [] : Qt(e), $s = (e = [], n = []) => !la(e) || Ee(e) ? {} : !la(n) || Ee(n) ? {} : e.reduce((t, l) => {
|
|
9755
9743
|
const p = n.map((g) => g.game_subtype);
|
|
@@ -9781,12 +9769,12 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9781
9769
|
const d = Qn(t, b);
|
|
9782
9770
|
if (!d) return g;
|
|
9783
9771
|
const r = p[d] || [], a = n.reduce((i, o) => {
|
|
9784
|
-
const
|
|
9772
|
+
const m = Xl({
|
|
9785
9773
|
platformName: o,
|
|
9786
9774
|
gamesOfType: r,
|
|
9787
9775
|
allPlatforms: l
|
|
9788
9776
|
});
|
|
9789
|
-
return Ee(
|
|
9777
|
+
return Ee(m) ? i : { ...i, [o]: m };
|
|
9790
9778
|
}, {});
|
|
9791
9779
|
return Ee(a) || (g[b] = a), g;
|
|
9792
9780
|
}, {}), js = (e = {}) => !$t(e) || Ee(e) ? {} : Object.values(e).reduce((t, l) => (Object.entries(l).forEach(([p, g]) => {
|
|
@@ -9815,9 +9803,9 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9815
9803
|
highlightGames: a = [],
|
|
9816
9804
|
originPlatform: i = []
|
|
9817
9805
|
}) => {
|
|
9818
|
-
const o = Js(e),
|
|
9806
|
+
const o = Js(e), m = On(n), u = Zs(t), s = Ks(l), c = On(i), f = qs(d), y = Qs({
|
|
9819
9807
|
gameTypes: u,
|
|
9820
|
-
platforms:
|
|
9808
|
+
platforms: m,
|
|
9821
9809
|
gameList: e,
|
|
9822
9810
|
allGameTypes: t,
|
|
9823
9811
|
allPlatforms: n
|
|
@@ -9839,14 +9827,14 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9839
9827
|
}, {});
|
|
9840
9828
|
return {
|
|
9841
9829
|
platform: {
|
|
9842
|
-
all:
|
|
9830
|
+
all: m,
|
|
9843
9831
|
origin: c,
|
|
9844
9832
|
originPlatform: _,
|
|
9845
9833
|
byGameType: E
|
|
9846
9834
|
},
|
|
9847
9835
|
type: {
|
|
9848
9836
|
main: u,
|
|
9849
|
-
sub:
|
|
9837
|
+
sub: s,
|
|
9850
9838
|
originMain: t,
|
|
9851
9839
|
originSub: l
|
|
9852
9840
|
},
|
|
@@ -9896,7 +9884,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9896
9884
|
},
|
|
9897
9885
|
user: { favorite: [] }
|
|
9898
9886
|
}, am = ({ enabled: e = !0 } = {}) => {
|
|
9899
|
-
const { getToken: n } =
|
|
9887
|
+
const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
|
|
9900
9888
|
queryKey: ["gamesInfo"],
|
|
9901
9889
|
queryFn: async () => {
|
|
9902
9890
|
let r = {}, a = {};
|
|
@@ -36503,10 +36491,10 @@ function Cu({
|
|
|
36503
36491
|
}
|
|
36504
36492
|
const vu = ({ onFunction: e = () => {
|
|
36505
36493
|
}, buttonProps: n = {} } = {}) => {
|
|
36506
|
-
const { lineConfig: t } =
|
|
36494
|
+
const { lineConfig: t } = se(), l = ee(!1), p = re(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: m } = il({
|
|
36507
36495
|
options: {
|
|
36508
|
-
onSuccess: (
|
|
36509
|
-
e(
|
|
36496
|
+
onSuccess: (s) => {
|
|
36497
|
+
e(s);
|
|
36510
36498
|
},
|
|
36511
36499
|
retry: !1
|
|
36512
36500
|
}
|
|
@@ -36571,19 +36559,19 @@ var ka;
|
|
|
36571
36559
|
if (o < -1 || o > 7)
|
|
36572
36560
|
throw new RangeError("Mask value out of range");
|
|
36573
36561
|
this.size = r * 4 + 17;
|
|
36574
|
-
let
|
|
36575
|
-
for (let
|
|
36576
|
-
|
|
36577
|
-
for (let
|
|
36578
|
-
this.modules.push(
|
|
36562
|
+
let m = [];
|
|
36563
|
+
for (let s = 0; s < this.size; s++)
|
|
36564
|
+
m.push(!1);
|
|
36565
|
+
for (let s = 0; s < this.size; s++)
|
|
36566
|
+
this.modules.push(m.slice()), this.isFunction.push(m.slice());
|
|
36579
36567
|
this.drawFunctionPatterns();
|
|
36580
36568
|
const u = this.addEccAndInterleave(i);
|
|
36581
36569
|
if (this.drawCodewords(u), o == -1) {
|
|
36582
|
-
let
|
|
36570
|
+
let s = 1e9;
|
|
36583
36571
|
for (let c = 0; c < 8; c++) {
|
|
36584
36572
|
this.applyMask(c), this.drawFormatBits(c);
|
|
36585
36573
|
const f = this.getPenaltyScore();
|
|
36586
|
-
f <
|
|
36574
|
+
f < s && (o = c, s = f), this.applyMask(c);
|
|
36587
36575
|
}
|
|
36588
36576
|
}
|
|
36589
36577
|
p(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
|
|
@@ -36616,36 +36604,36 @@ var ka;
|
|
|
36616
36604
|
// This function allows the user to create a custom sequence of segments that switches
|
|
36617
36605
|
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
36618
36606
|
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
36619
|
-
static encodeSegments(r, a, i = 1, o = 40,
|
|
36620
|
-
if (!(Y.MIN_VERSION <= i && i <= o && o <= Y.MAX_VERSION) ||
|
|
36607
|
+
static encodeSegments(r, a, i = 1, o = 40, m = -1, u = !0) {
|
|
36608
|
+
if (!(Y.MIN_VERSION <= i && i <= o && o <= Y.MAX_VERSION) || m < -1 || m > 7)
|
|
36621
36609
|
throw new RangeError("Invalid value");
|
|
36622
|
-
let
|
|
36623
|
-
for (
|
|
36624
|
-
const U = Y.getNumDataCodewords(
|
|
36610
|
+
let s, c;
|
|
36611
|
+
for (s = i; ; s++) {
|
|
36612
|
+
const U = Y.getNumDataCodewords(s, a) * 8, C = b.getTotalBits(r, s);
|
|
36625
36613
|
if (C <= U) {
|
|
36626
36614
|
c = C;
|
|
36627
36615
|
break;
|
|
36628
36616
|
}
|
|
36629
|
-
if (
|
|
36617
|
+
if (s >= o)
|
|
36630
36618
|
throw new RangeError("Data too long");
|
|
36631
36619
|
}
|
|
36632
36620
|
for (const U of [Y.Ecc.MEDIUM, Y.Ecc.QUARTILE, Y.Ecc.HIGH])
|
|
36633
|
-
u && c <= Y.getNumDataCodewords(
|
|
36621
|
+
u && c <= Y.getNumDataCodewords(s, U) * 8 && (a = U);
|
|
36634
36622
|
let f = [];
|
|
36635
36623
|
for (const U of r) {
|
|
36636
|
-
t(U.mode.modeBits, 4, f), t(U.numChars, U.mode.numCharCountBits(
|
|
36624
|
+
t(U.mode.modeBits, 4, f), t(U.numChars, U.mode.numCharCountBits(s), f);
|
|
36637
36625
|
for (const C of U.getData())
|
|
36638
36626
|
f.push(C);
|
|
36639
36627
|
}
|
|
36640
36628
|
p(f.length == c);
|
|
36641
|
-
const y = Y.getNumDataCodewords(
|
|
36629
|
+
const y = Y.getNumDataCodewords(s, a) * 8;
|
|
36642
36630
|
p(f.length <= y), t(0, Math.min(4, y - f.length), f), t(0, (8 - f.length % 8) % 8, f), p(f.length % 8 == 0);
|
|
36643
36631
|
for (let U = 236; f.length < y; U ^= 253)
|
|
36644
36632
|
t(U, 8, f);
|
|
36645
36633
|
let _ = [];
|
|
36646
36634
|
for (; _.length * 8 < f.length; )
|
|
36647
36635
|
_.push(0);
|
|
36648
|
-
return f.forEach((U, C) => _[C >>> 3] |= U << 7 - (C & 7)), new Y(
|
|
36636
|
+
return f.forEach((U, C) => _[C >>> 3] |= U << 7 - (C & 7)), new Y(s, a, _, m);
|
|
36649
36637
|
}
|
|
36650
36638
|
/*-- Accessor methods --*/
|
|
36651
36639
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -36675,19 +36663,19 @@ var ka;
|
|
|
36675
36663
|
drawFormatBits(r) {
|
|
36676
36664
|
const a = this.errorCorrectionLevel.formatBits << 3 | r;
|
|
36677
36665
|
let i = a;
|
|
36678
|
-
for (let
|
|
36666
|
+
for (let m = 0; m < 10; m++)
|
|
36679
36667
|
i = i << 1 ^ (i >>> 9) * 1335;
|
|
36680
36668
|
const o = (a << 10 | i) ^ 21522;
|
|
36681
36669
|
p(o >>> 15 == 0);
|
|
36682
|
-
for (let
|
|
36683
|
-
this.setFunctionModule(8,
|
|
36670
|
+
for (let m = 0; m <= 5; m++)
|
|
36671
|
+
this.setFunctionModule(8, m, l(o, m));
|
|
36684
36672
|
this.setFunctionModule(8, 7, l(o, 6)), this.setFunctionModule(8, 8, l(o, 7)), this.setFunctionModule(7, 8, l(o, 8));
|
|
36685
|
-
for (let
|
|
36686
|
-
this.setFunctionModule(14 -
|
|
36687
|
-
for (let
|
|
36688
|
-
this.setFunctionModule(this.size - 1 -
|
|
36689
|
-
for (let
|
|
36690
|
-
this.setFunctionModule(8, this.size - 15 +
|
|
36673
|
+
for (let m = 9; m < 15; m++)
|
|
36674
|
+
this.setFunctionModule(14 - m, 8, l(o, m));
|
|
36675
|
+
for (let m = 0; m < 8; m++)
|
|
36676
|
+
this.setFunctionModule(this.size - 1 - m, 8, l(o, m));
|
|
36677
|
+
for (let m = 8; m < 15; m++)
|
|
36678
|
+
this.setFunctionModule(8, this.size - 15 + m, l(o, m));
|
|
36691
36679
|
this.setFunctionModule(8, this.size - 8, !0);
|
|
36692
36680
|
}
|
|
36693
36681
|
// Draws two copies of the version bits (with its own error correction code),
|
|
@@ -36701,8 +36689,8 @@ var ka;
|
|
|
36701
36689
|
const a = this.version << 12 | r;
|
|
36702
36690
|
p(a >>> 18 == 0);
|
|
36703
36691
|
for (let i = 0; i < 18; i++) {
|
|
36704
|
-
const o = l(a, i),
|
|
36705
|
-
this.setFunctionModule(
|
|
36692
|
+
const o = l(a, i), m = this.size - 11 + i % 3, u = Math.floor(i / 3);
|
|
36693
|
+
this.setFunctionModule(m, u, o), this.setFunctionModule(u, m, o);
|
|
36706
36694
|
}
|
|
36707
36695
|
}
|
|
36708
36696
|
// Draws a 9*9 finder pattern including the border separator,
|
|
@@ -36710,8 +36698,8 @@ var ka;
|
|
|
36710
36698
|
drawFinderPattern(r, a) {
|
|
36711
36699
|
for (let i = -4; i <= 4; i++)
|
|
36712
36700
|
for (let o = -4; o <= 4; o++) {
|
|
36713
|
-
const
|
|
36714
|
-
0 <= u && u < this.size && 0 <=
|
|
36701
|
+
const m = Math.max(Math.abs(o), Math.abs(i)), u = r + o, s = a + i;
|
|
36702
|
+
0 <= u && u < this.size && 0 <= s && s < this.size && this.setFunctionModule(u, s, m != 2 && m != 4);
|
|
36715
36703
|
}
|
|
36716
36704
|
}
|
|
36717
36705
|
// Draws a 5*5 alignment pattern, with the center module
|
|
@@ -36733,19 +36721,19 @@ var ka;
|
|
|
36733
36721
|
const a = this.version, i = this.errorCorrectionLevel;
|
|
36734
36722
|
if (r.length != Y.getNumDataCodewords(a, i))
|
|
36735
36723
|
throw new RangeError("Invalid argument");
|
|
36736
|
-
const o = Y.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a],
|
|
36724
|
+
const o = Y.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a], m = Y.ECC_CODEWORDS_PER_BLOCK[i.ordinal][a], u = Math.floor(Y.getNumRawDataModules(a) / 8), s = o - u % o, c = Math.floor(u / o);
|
|
36737
36725
|
let f = [];
|
|
36738
|
-
const y = Y.reedSolomonComputeDivisor(
|
|
36726
|
+
const y = Y.reedSolomonComputeDivisor(m);
|
|
36739
36727
|
for (let U = 0, C = 0; U < o; U++) {
|
|
36740
|
-
let v = r.slice(C, C + c -
|
|
36728
|
+
let v = r.slice(C, C + c - m + (U < s ? 0 : 1));
|
|
36741
36729
|
C += v.length;
|
|
36742
36730
|
const D = Y.reedSolomonComputeRemainder(v, y);
|
|
36743
|
-
U <
|
|
36731
|
+
U < s && v.push(0), f.push(v.concat(D));
|
|
36744
36732
|
}
|
|
36745
36733
|
let _ = [];
|
|
36746
36734
|
for (let U = 0; U < f[0].length; U++)
|
|
36747
36735
|
f.forEach((C, v) => {
|
|
36748
|
-
(U != c -
|
|
36736
|
+
(U != c - m || v >= s) && _.push(C[U]);
|
|
36749
36737
|
});
|
|
36750
36738
|
return p(_.length == u), _;
|
|
36751
36739
|
}
|
|
@@ -36758,8 +36746,8 @@ var ka;
|
|
|
36758
36746
|
for (let i = this.size - 1; i >= 1; i -= 2) {
|
|
36759
36747
|
i == 6 && (i = 5);
|
|
36760
36748
|
for (let o = 0; o < this.size; o++)
|
|
36761
|
-
for (let
|
|
36762
|
-
const u = i -
|
|
36749
|
+
for (let m = 0; m < 2; m++) {
|
|
36750
|
+
const u = i - m, c = (i + 1 & 2) == 0 ? this.size - 1 - o : o;
|
|
36763
36751
|
!this.isFunction[c][u] && a < r.length * 8 && (this.modules[c][u] = l(r[a >>> 3], 7 - (a & 7)), a++);
|
|
36764
36752
|
}
|
|
36765
36753
|
}
|
|
@@ -36811,26 +36799,26 @@ var ka;
|
|
|
36811
36799
|
// This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
|
|
36812
36800
|
getPenaltyScore() {
|
|
36813
36801
|
let r = 0;
|
|
36814
|
-
for (let
|
|
36815
|
-
let u = !1,
|
|
36802
|
+
for (let m = 0; m < this.size; m++) {
|
|
36803
|
+
let u = !1, s = 0, c = [0, 0, 0, 0, 0, 0, 0];
|
|
36816
36804
|
for (let f = 0; f < this.size; f++)
|
|
36817
|
-
this.modules[
|
|
36818
|
-
r += this.finderPenaltyTerminateAndCount(u,
|
|
36805
|
+
this.modules[m][f] == u ? (s++, s == 5 ? r += Y.PENALTY_N1 : s > 5 && r++) : (this.finderPenaltyAddHistory(s, c), u || (r += this.finderPenaltyCountPatterns(c) * Y.PENALTY_N3), u = this.modules[m][f], s = 1);
|
|
36806
|
+
r += this.finderPenaltyTerminateAndCount(u, s, c) * Y.PENALTY_N3;
|
|
36819
36807
|
}
|
|
36820
|
-
for (let
|
|
36821
|
-
let u = !1,
|
|
36808
|
+
for (let m = 0; m < this.size; m++) {
|
|
36809
|
+
let u = !1, s = 0, c = [0, 0, 0, 0, 0, 0, 0];
|
|
36822
36810
|
for (let f = 0; f < this.size; f++)
|
|
36823
|
-
this.modules[f][
|
|
36824
|
-
r += this.finderPenaltyTerminateAndCount(u,
|
|
36811
|
+
this.modules[f][m] == u ? (s++, s == 5 ? r += Y.PENALTY_N1 : s > 5 && r++) : (this.finderPenaltyAddHistory(s, c), u || (r += this.finderPenaltyCountPatterns(c) * Y.PENALTY_N3), u = this.modules[f][m], s = 1);
|
|
36812
|
+
r += this.finderPenaltyTerminateAndCount(u, s, c) * Y.PENALTY_N3;
|
|
36825
36813
|
}
|
|
36826
|
-
for (let
|
|
36814
|
+
for (let m = 0; m < this.size - 1; m++)
|
|
36827
36815
|
for (let u = 0; u < this.size - 1; u++) {
|
|
36828
|
-
const
|
|
36829
|
-
|
|
36816
|
+
const s = this.modules[m][u];
|
|
36817
|
+
s == this.modules[m][u + 1] && s == this.modules[m + 1][u] && s == this.modules[m + 1][u + 1] && (r += Y.PENALTY_N2);
|
|
36830
36818
|
}
|
|
36831
36819
|
let a = 0;
|
|
36832
|
-
for (const
|
|
36833
|
-
a =
|
|
36820
|
+
for (const m of this.modules)
|
|
36821
|
+
a = m.reduce((u, s) => u + (s ? 1 : 0), a);
|
|
36834
36822
|
const i = this.size * this.size, o = Math.ceil(Math.abs(a * 20 - i * 10) / i) - 1;
|
|
36835
36823
|
return p(0 <= o && o <= 9), r += o * Y.PENALTY_N4, p(0 <= r && r <= 2568888), r;
|
|
36836
36824
|
}
|
|
@@ -36879,8 +36867,8 @@ var ka;
|
|
|
36879
36867
|
a.push(1);
|
|
36880
36868
|
let i = 1;
|
|
36881
36869
|
for (let o = 0; o < r; o++) {
|
|
36882
|
-
for (let
|
|
36883
|
-
a[
|
|
36870
|
+
for (let m = 0; m < a.length; m++)
|
|
36871
|
+
a[m] = Y.reedSolomonMultiply(a[m], i), m + 1 < a.length && (a[m] ^= a[m + 1]);
|
|
36884
36872
|
i = Y.reedSolomonMultiply(i, 2);
|
|
36885
36873
|
}
|
|
36886
36874
|
return a;
|
|
@@ -36889,8 +36877,8 @@ var ka;
|
|
|
36889
36877
|
static reedSolomonComputeRemainder(r, a) {
|
|
36890
36878
|
let i = a.map((o) => 0);
|
|
36891
36879
|
for (const o of r) {
|
|
36892
|
-
const
|
|
36893
|
-
i.push(0), a.forEach((u,
|
|
36880
|
+
const m = o ^ i.shift();
|
|
36881
|
+
i.push(0), a.forEach((u, s) => i[s] ^= Y.reedSolomonMultiply(u, m));
|
|
36894
36882
|
}
|
|
36895
36883
|
return i;
|
|
36896
36884
|
}
|
|
@@ -37043,10 +37031,10 @@ var ka;
|
|
|
37043
37031
|
static getTotalBits(r, a) {
|
|
37044
37032
|
let i = 0;
|
|
37045
37033
|
for (const o of r) {
|
|
37046
|
-
const
|
|
37047
|
-
if (o.numChars >= 1 <<
|
|
37034
|
+
const m = o.mode.numCharCountBits(a);
|
|
37035
|
+
if (o.numChars >= 1 << m)
|
|
37048
37036
|
return 1 / 0;
|
|
37049
|
-
i += 4 +
|
|
37037
|
+
i += 4 + m + o.bitData.length;
|
|
37050
37038
|
}
|
|
37051
37039
|
return i;
|
|
37052
37040
|
}
|
|
@@ -37129,13 +37117,13 @@ function mm(e, n, t, l) {
|
|
|
37129
37117
|
if (l == null)
|
|
37130
37118
|
return null;
|
|
37131
37119
|
const p = e.length + t * 2, g = Math.floor(n * sm), b = p / n, d = (l.width || g) * b, r = (l.height || g) * b, a = l.x == null ? e.length / 2 - d / 2 : l.x * b, i = l.y == null ? e.length / 2 - r / 2 : l.y * b, o = l.opacity == null ? 1 : l.opacity;
|
|
37132
|
-
let
|
|
37120
|
+
let m = null;
|
|
37133
37121
|
if (l.excavate) {
|
|
37134
|
-
let
|
|
37135
|
-
|
|
37122
|
+
let s = Math.floor(a), c = Math.floor(i), f = Math.ceil(d + a - s), y = Math.ceil(r + i - c);
|
|
37123
|
+
m = { x: s, y: c, w: f, h: y };
|
|
37136
37124
|
}
|
|
37137
37125
|
const u = l.crossOrigin;
|
|
37138
|
-
return { x: a, y: i, h: r, w: d, excavation:
|
|
37126
|
+
return { x: a, y: i, h: r, w: d, excavation: m, opacity: o, crossOrigin: u };
|
|
37139
37127
|
}
|
|
37140
37128
|
function um(e, n) {
|
|
37141
37129
|
return n != null ? Math.max(Math.floor(n), 0) : e ? rm : om;
|
|
@@ -37151,9 +37139,9 @@ function Rl({
|
|
|
37151
37139
|
boostLevel: d
|
|
37152
37140
|
}) {
|
|
37153
37141
|
let r = de.useMemo(() => {
|
|
37154
|
-
const
|
|
37142
|
+
const s = (Array.isArray(e) ? e : [e]).reduce((c, f) => (c.push(...Aa.QrSegment.makeSegments(f)), c), []);
|
|
37155
37143
|
return Aa.QrCode.encodeSegments(
|
|
37156
|
-
|
|
37144
|
+
s,
|
|
37157
37145
|
lm[n],
|
|
37158
37146
|
t,
|
|
37159
37147
|
void 0,
|
|
@@ -37161,17 +37149,17 @@ function Rl({
|
|
|
37161
37149
|
d
|
|
37162
37150
|
);
|
|
37163
37151
|
}, [e, n, t, d]);
|
|
37164
|
-
const { cells: a, margin: i, numCells: o, calculatedImageSettings:
|
|
37152
|
+
const { cells: a, margin: i, numCells: o, calculatedImageSettings: m } = de.useMemo(() => {
|
|
37165
37153
|
let u = r.getModules();
|
|
37166
|
-
const
|
|
37154
|
+
const s = um(l, p), c = u.length + s * 2, f = mm(
|
|
37167
37155
|
u,
|
|
37168
37156
|
b,
|
|
37169
|
-
|
|
37157
|
+
s,
|
|
37170
37158
|
g
|
|
37171
37159
|
);
|
|
37172
37160
|
return {
|
|
37173
37161
|
cells: u,
|
|
37174
|
-
margin:
|
|
37162
|
+
margin: s,
|
|
37175
37163
|
numCells: c,
|
|
37176
37164
|
calculatedImageSettings: f
|
|
37177
37165
|
};
|
|
@@ -37181,7 +37169,7 @@ function Rl({
|
|
|
37181
37169
|
margin: i,
|
|
37182
37170
|
cells: a,
|
|
37183
37171
|
numCells: o,
|
|
37184
|
-
calculatedImageSettings:
|
|
37172
|
+
calculatedImageSettings: m
|
|
37185
37173
|
};
|
|
37186
37174
|
}
|
|
37187
37175
|
var pm = (function() {
|
|
@@ -37202,7 +37190,7 @@ var pm = (function() {
|
|
|
37202
37190
|
includeMargin: a = Nl,
|
|
37203
37191
|
minVersion: i = Ll,
|
|
37204
37192
|
boostLevel: o,
|
|
37205
|
-
marginSize:
|
|
37193
|
+
marginSize: m,
|
|
37206
37194
|
imageSettings: u
|
|
37207
37195
|
} = l, c = di(l, [
|
|
37208
37196
|
"value",
|
|
@@ -37226,7 +37214,7 @@ var pm = (function() {
|
|
|
37226
37214
|
minVersion: i,
|
|
37227
37215
|
boostLevel: o,
|
|
37228
37216
|
includeMargin: a,
|
|
37229
|
-
marginSize:
|
|
37217
|
+
marginSize: m,
|
|
37230
37218
|
imageSettings: u,
|
|
37231
37219
|
size: g
|
|
37232
37220
|
});
|
|
@@ -37297,9 +37285,9 @@ var Pl = de.forwardRef(
|
|
|
37297
37285
|
includeMargin: a = Nl,
|
|
37298
37286
|
minVersion: i = Ll,
|
|
37299
37287
|
boostLevel: o,
|
|
37300
|
-
title:
|
|
37288
|
+
title: m,
|
|
37301
37289
|
marginSize: u,
|
|
37302
|
-
imageSettings:
|
|
37290
|
+
imageSettings: s
|
|
37303
37291
|
} = l, c = di(l, [
|
|
37304
37292
|
"value",
|
|
37305
37293
|
"size",
|
|
@@ -37319,17 +37307,17 @@ var Pl = de.forwardRef(
|
|
|
37319
37307
|
boostLevel: o,
|
|
37320
37308
|
includeMargin: a,
|
|
37321
37309
|
marginSize: u,
|
|
37322
|
-
imageSettings:
|
|
37310
|
+
imageSettings: s,
|
|
37323
37311
|
size: g
|
|
37324
37312
|
});
|
|
37325
37313
|
let C = y, v = null;
|
|
37326
|
-
|
|
37314
|
+
s != null && U != null && (U.excavation != null && (C = Ml(
|
|
37327
37315
|
y,
|
|
37328
37316
|
U.excavation
|
|
37329
37317
|
)), v = /* @__PURE__ */ de.createElement(
|
|
37330
37318
|
"image",
|
|
37331
37319
|
{
|
|
37332
|
-
href:
|
|
37320
|
+
href: s.src,
|
|
37333
37321
|
height: U.h,
|
|
37334
37322
|
width: U.w,
|
|
37335
37323
|
x: U.x + f,
|
|
@@ -37349,7 +37337,7 @@ var Pl = de.forwardRef(
|
|
|
37349
37337
|
ref: t,
|
|
37350
37338
|
role: "img"
|
|
37351
37339
|
}, c),
|
|
37352
|
-
!!
|
|
37340
|
+
!!m && /* @__PURE__ */ de.createElement("title", null, m),
|
|
37353
37341
|
/* @__PURE__ */ de.createElement(
|
|
37354
37342
|
"path",
|
|
37355
37343
|
{
|
|
@@ -37409,7 +37397,7 @@ const dm = {
|
|
|
37409
37397
|
expired: "Kode QR telah kedaluwarsa"
|
|
37410
37398
|
}
|
|
37411
37399
|
}, ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
|
|
37412
|
-
const { lng: l, getToken: p, lineConfig: g } =
|
|
37400
|
+
const { lng: l, getToken: p, lineConfig: g } = se(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o = re(g, "liffId", ""), m = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || mi.get("machine_mac_address") || "", { data: f, isFetching: y } = zo({
|
|
37413
37401
|
formData: {
|
|
37414
37402
|
mac_address: c
|
|
37415
37403
|
},
|
|
@@ -37429,7 +37417,7 @@ const dm = {
|
|
|
37429
37417
|
return `${D}:${E < 10 ? "0" : ""}${E}`;
|
|
37430
37418
|
};
|
|
37431
37419
|
if (!e && (!c || u)) return null;
|
|
37432
|
-
const C = Hn[
|
|
37420
|
+
const C = Hn[m] || Hn.en_US;
|
|
37433
37421
|
return n && /* @__PURE__ */ Fe.jsxs("div", { style: dm, children: [
|
|
37434
37422
|
/* @__PURE__ */ Fe.jsx(
|
|
37435
37423
|
"div",
|
|
@@ -37538,7 +37526,7 @@ export {
|
|
|
37538
37526
|
Xs as processGameInfo,
|
|
37539
37527
|
bu as processPlatformData,
|
|
37540
37528
|
Nm as useAbandonPoint,
|
|
37541
|
-
|
|
37529
|
+
se as useApiContext,
|
|
37542
37530
|
Hm as useAvatarList,
|
|
37543
37531
|
Tm as useBalanceGetter,
|
|
37544
37532
|
Sm as useBet,
|