@obb871001/api-integration-sdk 1.0.326 → 1.0.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.js +652 -648
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import de, { createContext as qt, useContext as ci, useState as oi, useMemo as Oa, useCallback as I, useRef as ee, useEffect as ge } from "react";
|
|
2
|
-
import { useQueries as Wn, useQuery as j, useQueryClient as fi, useMutation as
|
|
2
|
+
import { useQueries as Wn, useQuery as j, useQueryClient as fi, useMutation as le, QueryClient as Ol, QueryClientProvider as Bl } from "@tanstack/react-query";
|
|
3
3
|
import Hl from "axios";
|
|
4
|
-
import { get as
|
|
5
|
-
import
|
|
4
|
+
import { get as re, find as $e, isEmpty as Ee, entries as zn, forEach as Wl, map as Be, isArray as la, toLower as Di, omit as zl, replace as at, includes as Il, isObject as $t, flatMap as Qt, values as Vl, keys as Ei } from "lodash";
|
|
5
|
+
import Jl from "react-dom";
|
|
6
6
|
var ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function _i(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Zl(e) {
|
|
11
11
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
12
12
|
var n = e.default;
|
|
13
13
|
if (typeof n == "function") {
|
|
@@ -33,7 +33,7 @@ function Kl(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var tt = { exports: {} }, Ja = {};
|
|
35
35
|
var Ni;
|
|
36
|
-
function
|
|
36
|
+
function Kl() {
|
|
37
37
|
if (Ni) return Ja;
|
|
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 };
|
|
@@ -48,7 +48,7 @@ function ql() {
|
|
|
48
48
|
}
|
|
49
49
|
var Za = {};
|
|
50
50
|
var Li;
|
|
51
|
-
function
|
|
51
|
+
function ql() {
|
|
52
52
|
return Li || (Li = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
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"), s = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), m = Symbol.iterator, c = "@@iterator";
|
|
54
54
|
function f(T) {
|
|
@@ -217,10 +217,10 @@ function $l() {
|
|
|
217
217
|
}
|
|
218
218
|
var ae = !1, ie;
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
ie = new
|
|
220
|
+
var ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
|
+
ie = new ye();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ue(T, z) {
|
|
224
224
|
if (!T || ae)
|
|
225
225
|
return "";
|
|
226
226
|
{
|
|
@@ -246,29 +246,29 @@ function $l() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(ne, []);
|
|
249
|
-
} catch (
|
|
250
|
-
$ =
|
|
249
|
+
} catch (ze) {
|
|
250
|
+
$ = ze;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(T, [], ne);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
ne.call();
|
|
256
|
-
} catch (
|
|
257
|
-
$ =
|
|
256
|
+
} catch (ze) {
|
|
257
|
+
$ = ze;
|
|
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 (ze) {
|
|
265
|
+
$ = ze;
|
|
266
266
|
}
|
|
267
267
|
T();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var X =
|
|
269
|
+
} catch (ze) {
|
|
270
|
+
if (ze && $ && typeof ze.stack == "string") {
|
|
271
|
+
for (var X = ze.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,8 +291,8 @@ function $l() {
|
|
|
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
|
|
295
|
-
return
|
|
294
|
+
function se(T, z, J) {
|
|
295
|
+
return Ue(T, !1);
|
|
296
296
|
}
|
|
297
297
|
function ce(T) {
|
|
298
298
|
var z = T.prototype;
|
|
@@ -302,7 +302,7 @@ function $l() {
|
|
|
302
302
|
if (T == null)
|
|
303
303
|
return "";
|
|
304
304
|
if (typeof T == "function")
|
|
305
|
-
return
|
|
305
|
+
return Ue(T, ce(T));
|
|
306
306
|
if (typeof T == "string")
|
|
307
307
|
return K(T);
|
|
308
308
|
switch (T) {
|
|
@@ -314,7 +314,7 @@ function $l() {
|
|
|
314
314
|
if (typeof T == "object")
|
|
315
315
|
switch (T.$$typeof) {
|
|
316
316
|
case r:
|
|
317
|
-
return
|
|
317
|
+
return se(T.render);
|
|
318
318
|
case o:
|
|
319
319
|
return ke(T.type, z, J);
|
|
320
320
|
case s: {
|
|
@@ -327,7 +327,7 @@ function $l() {
|
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var
|
|
330
|
+
var fe = Object.prototype.hasOwnProperty, He = {}, 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);
|
|
@@ -337,7 +337,7 @@ function $l() {
|
|
|
337
337
|
}
|
|
338
338
|
function ea(T, z, J, $, ue) {
|
|
339
339
|
{
|
|
340
|
-
var pe = Function.call.bind(
|
|
340
|
+
var pe = Function.call.bind(fe);
|
|
341
341
|
for (var ne in T)
|
|
342
342
|
if (pe(T, ne)) {
|
|
343
343
|
var X = void 0;
|
|
@@ -350,7 +350,7 @@ function $l() {
|
|
|
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 He) && (He[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 $l() {
|
|
|
358
358
|
function ve(T) {
|
|
359
359
|
return Me(T);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function We(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 $l() {
|
|
|
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.", We(T)), ta(T);
|
|
380
380
|
}
|
|
381
381
|
var Re = y.ReactCurrentOwner, je = {
|
|
382
382
|
key: !0,
|
|
@@ -385,7 +385,7 @@ function $l() {
|
|
|
385
385
|
__source: !0
|
|
386
386
|
}, oa, ga;
|
|
387
387
|
function Ve(T) {
|
|
388
|
-
if (
|
|
388
|
+
if (fe.call(T, "ref")) {
|
|
389
389
|
var z = Object.getOwnPropertyDescriptor(T, "ref").get;
|
|
390
390
|
if (z && z.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -393,7 +393,7 @@ function $l() {
|
|
|
393
393
|
return T.ref !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function Ye(T) {
|
|
396
|
-
if (
|
|
396
|
+
if (fe.call(T, "key")) {
|
|
397
397
|
var z = Object.getOwnPropertyDescriptor(T, "key").get;
|
|
398
398
|
if (z && z.isReactWarning)
|
|
399
399
|
return !1;
|
|
@@ -459,7 +459,7 @@ function $l() {
|
|
|
459
459
|
var pe, ne = {}, X = null, Oe = null;
|
|
460
460
|
J !== void 0 && (xe(J), X = "" + J), Ye(z) && (xe(z.key), X = "" + z.key), Ve(z) && (Oe = z.ref, za(z, ue));
|
|
461
461
|
for (pe in z)
|
|
462
|
-
|
|
462
|
+
fe.call(z, pe) && !je.hasOwnProperty(pe) && (ne[pe] = z[pe]);
|
|
463
463
|
if (T && T.defaultProps) {
|
|
464
464
|
var be = T.defaultProps;
|
|
465
465
|
for (pe in be)
|
|
@@ -610,12 +610,12 @@ Check the top-level render call using <` + J + ">.");
|
|
|
610
610
|
else
|
|
611
611
|
Se(qe, T);
|
|
612
612
|
}
|
|
613
|
-
if (
|
|
614
|
-
var ba = A(T),
|
|
613
|
+
if (fe.call(z, "key")) {
|
|
614
|
+
var ba = A(T), ze = Object.keys(z).filter(function(Al) {
|
|
615
615
|
return Al !== "key";
|
|
616
|
-
}), Xt =
|
|
616
|
+
}), Xt = ze.length > 0 ? "{key: someKey, " + ze.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ia[ba + Xt]) {
|
|
618
|
-
var Fl =
|
|
618
|
+
var Fl = ze.length > 0 ? "{" + ze.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
_(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
@@ -638,11 +638,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
638
638
|
})()), Za;
|
|
639
639
|
}
|
|
640
640
|
var Gi;
|
|
641
|
-
function
|
|
642
|
-
return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports =
|
|
641
|
+
function $l() {
|
|
642
|
+
return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports = Kl() : tt.exports = ql()), tt.exports;
|
|
643
643
|
}
|
|
644
|
-
var Fe =
|
|
645
|
-
const In = qt(null),
|
|
644
|
+
var Fe = $l();
|
|
645
|
+
const In = qt(null), me = () => {
|
|
646
646
|
const e = ci(In);
|
|
647
647
|
if (!e)
|
|
648
648
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
@@ -650,7 +650,7 @@ const In = qt(null), se = () => {
|
|
|
650
650
|
}, Ka = {
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
|
-
}, Vn = qt(null),
|
|
653
|
+
}, Vn = qt(null), Ql = ({ children: e }) => {
|
|
654
654
|
const [n, t] = oi(Ka.PENDING), l = Oa(() => {
|
|
655
655
|
const p = n === Ka.READY, g = n === Ka.PENDING;
|
|
656
656
|
return {
|
|
@@ -724,7 +724,7 @@ function Mi({
|
|
|
724
724
|
}), a.interceptors.response.use(
|
|
725
725
|
(i) => i.data,
|
|
726
726
|
(i) => {
|
|
727
|
-
const o =
|
|
727
|
+
const o = re(
|
|
728
728
|
i,
|
|
729
729
|
"response.data.message",
|
|
730
730
|
"發生錯誤,請稍後再試。"
|
|
@@ -745,14 +745,14 @@ function Mi({
|
|
|
745
745
|
}
|
|
746
746
|
), a;
|
|
747
747
|
}
|
|
748
|
-
const $n = qt(null),
|
|
748
|
+
const $n = qt(null), Cm = () => {
|
|
749
749
|
const e = ci($n);
|
|
750
750
|
if (!e)
|
|
751
751
|
throw new Error(
|
|
752
752
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
753
753
|
);
|
|
754
754
|
return e;
|
|
755
|
-
},
|
|
755
|
+
}, vm = () => {
|
|
756
756
|
const e = (l, p) => !l && !p, n = (l) => l.startsWith("pc.");
|
|
757
757
|
return {
|
|
758
758
|
executeLogout: ({
|
|
@@ -771,17 +771,17 @@ const $n = qt(null), vm = () => {
|
|
|
771
771
|
shouldShowErrorNotice: e,
|
|
772
772
|
isMachineDomain: n
|
|
773
773
|
};
|
|
774
|
-
},
|
|
774
|
+
}, hm = (e) => {
|
|
775
775
|
let n = Number(e);
|
|
776
776
|
return isNaN(n) ? e : new Intl.NumberFormat("en-US", {
|
|
777
777
|
style: "decimal",
|
|
778
778
|
minimumFractionDigits: 2,
|
|
779
779
|
maximumFractionDigits: 2
|
|
780
780
|
}).format(n);
|
|
781
|
-
}, Qn = (e = [], n) => $e(e, { gameTypeName: n })?.gameTypeUid, jn = (e = [], n) => $e(e, { platform: n })?.platformUid, Yn = (e = [], n) => $e(e, { SubPlatformEnum: n }), Xn = (e = [], n, t) => Ee(e) ? [] : e.filter((l) => t ? String(l?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(l.platformUid) === String(n)),
|
|
781
|
+
}, Qn = (e = [], n) => $e(e, { gameTypeName: n })?.gameTypeUid, jn = (e = [], n) => $e(e, { platform: n })?.platformUid, Yn = (e = [], n) => $e(e, { SubPlatformEnum: n }), Xn = (e = [], n, t) => Ee(e) ? [] : e.filter((l) => t ? String(l?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(l.platformUid) === String(n)), jl = (e = []) => Ee(e) ? {} : e.reduce((n, t) => {
|
|
782
782
|
const l = t?.game_subtype || "UNKNOWN";
|
|
783
783
|
return n[l] || (n[l] = []), n[l].push(t), n;
|
|
784
|
-
}, {}),
|
|
784
|
+
}, {}), Yl = ({
|
|
785
785
|
gameTypeName: e,
|
|
786
786
|
platforms: n,
|
|
787
787
|
gameList: t,
|
|
@@ -797,7 +797,7 @@ const $n = qt(null), vm = () => {
|
|
|
797
797
|
);
|
|
798
798
|
return Ee(o) || (b[d] = o), b;
|
|
799
799
|
}, {}) : {};
|
|
800
|
-
},
|
|
800
|
+
}, Xl = ({
|
|
801
801
|
platformName: e,
|
|
802
802
|
gamesOfType: n = [],
|
|
803
803
|
allPlatforms: t = []
|
|
@@ -807,14 +807,14 @@ const $n = qt(null), vm = () => {
|
|
|
807
807
|
l,
|
|
808
808
|
p
|
|
809
809
|
);
|
|
810
|
-
return
|
|
810
|
+
return jl(g);
|
|
811
811
|
};
|
|
812
|
-
var st = { exports: {} },
|
|
813
|
-
function
|
|
812
|
+
var st = { exports: {} }, er = st.exports, Ri;
|
|
813
|
+
function ar() {
|
|
814
814
|
return Ri || (Ri = 1, (function(e, n) {
|
|
815
815
|
(function(t, l) {
|
|
816
816
|
e.exports = l();
|
|
817
|
-
})(
|
|
817
|
+
})(er, (function() {
|
|
818
818
|
var t = 1e3, l = 6e4, p = 36e5, g = "millisecond", b = "second", d = "minute", r = "hour", a = "day", i = "week", o = "month", s = "quarter", u = "year", m = "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]) + "]";
|
|
@@ -901,8 +901,8 @@ function tr() {
|
|
|
901
901
|
return this.$d.getTime();
|
|
902
902
|
}, R.startOf = function(P, H) {
|
|
903
903
|
var B = this, W = !!h.u(H) || H, M = h.p(P), S = function(ae, ie) {
|
|
904
|
-
var
|
|
905
|
-
return W ?
|
|
904
|
+
var ye = h.w(B.$u ? Date.UTC(B.$y, ie, ae) : new Date(B.$y, ie, ae), B);
|
|
905
|
+
return W ? ye : ye.endOf(a);
|
|
906
906
|
}, x = function(ae, ie) {
|
|
907
907
|
return h.w(B.toDate()[ae].apply(B.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), B);
|
|
908
908
|
}, L = this.$W, N = this.$M, Z = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
@@ -957,17 +957,17 @@ function tr() {
|
|
|
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,
|
|
961
|
-
return ie && (ie[
|
|
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, se) {
|
|
961
|
+
return ie && (ie[ye] || ie(H, W)) || Ue[ye].slice(0, se);
|
|
962
962
|
}, K = function(ie) {
|
|
963
963
|
return h.s(S % 12 || 12, ie, "0");
|
|
964
|
-
}, ae = q || function(ie,
|
|
965
|
-
var
|
|
966
|
-
return
|
|
964
|
+
}, ae = q || function(ie, ye, Ue) {
|
|
965
|
+
var se = ie < 12 ? "AM" : "PM";
|
|
966
|
+
return Ue ? se.toLowerCase() : se;
|
|
967
967
|
};
|
|
968
|
-
return W.replace(y, (function(ie,
|
|
969
|
-
return
|
|
970
|
-
switch (
|
|
968
|
+
return W.replace(y, (function(ie, ye) {
|
|
969
|
+
return ye || (function(Ue) {
|
|
970
|
+
switch (Ue) {
|
|
971
971
|
case "YY":
|
|
972
972
|
return String(H.$y).slice(-2);
|
|
973
973
|
case "YYYY":
|
|
@@ -1087,28 +1087,28 @@ function tr() {
|
|
|
1087
1087
|
}));
|
|
1088
1088
|
})(st)), st.exports;
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
const we = /* @__PURE__ */ _i(
|
|
1090
|
+
var tr = ar();
|
|
1091
|
+
const we = /* @__PURE__ */ _i(tr);
|
|
1092
1092
|
var mt = { exports: {} };
|
|
1093
|
-
function
|
|
1093
|
+
function ir(e) {
|
|
1094
1094
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1095
1095
|
}
|
|
1096
1096
|
var ut = { exports: {} };
|
|
1097
|
-
const
|
|
1097
|
+
const nr = {}, lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1098
1098
|
__proto__: null,
|
|
1099
|
-
default:
|
|
1100
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1101
|
-
var
|
|
1099
|
+
default: nr
|
|
1100
|
+
}, Symbol.toStringTag, { value: "Module" })), rr = /* @__PURE__ */ Zl(lr);
|
|
1101
|
+
var or = ut.exports, Pi;
|
|
1102
1102
|
function te() {
|
|
1103
1103
|
return Pi || (Pi = 1, (function(e, n) {
|
|
1104
1104
|
(function(t, l) {
|
|
1105
1105
|
e.exports = l();
|
|
1106
|
-
})(
|
|
1106
|
+
})(or, function() {
|
|
1107
1107
|
var t = t || (function(l, p) {
|
|
1108
1108
|
var g;
|
|
1109
|
-
if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof ei < "u" && ei.crypto && (g = ei.crypto), !g && typeof
|
|
1109
|
+
if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof ei < "u" && ei.crypto && (g = ei.crypto), !g && typeof ir == "function")
|
|
1110
1110
|
try {
|
|
1111
|
-
g =
|
|
1111
|
+
g = rr;
|
|
1112
1112
|
} catch {
|
|
1113
1113
|
}
|
|
1114
1114
|
var b = function() {
|
|
@@ -1599,12 +1599,12 @@ function te() {
|
|
|
1599
1599
|
});
|
|
1600
1600
|
})(ut)), ut.exports;
|
|
1601
1601
|
}
|
|
1602
|
-
var pt = { exports: {} },
|
|
1602
|
+
var pt = { exports: {} }, sr = pt.exports, wi;
|
|
1603
1603
|
function jt() {
|
|
1604
1604
|
return wi || (wi = 1, (function(e, n) {
|
|
1605
1605
|
(function(t, l) {
|
|
1606
1606
|
e.exports = l(te());
|
|
1607
|
-
})(
|
|
1607
|
+
})(sr, function(t) {
|
|
1608
1608
|
return (function(l) {
|
|
1609
1609
|
var p = t, g = p.lib, b = g.Base, d = g.WordArray, r = p.x64 = {};
|
|
1610
1610
|
r.Word = b.extend({
|
|
@@ -1829,12 +1829,12 @@ function jt() {
|
|
|
1829
1829
|
});
|
|
1830
1830
|
})(pt)), pt.exports;
|
|
1831
1831
|
}
|
|
1832
|
-
var gt = { exports: {} },
|
|
1833
|
-
function
|
|
1832
|
+
var gt = { exports: {} }, mr = gt.exports, Fi;
|
|
1833
|
+
function ur() {
|
|
1834
1834
|
return Fi || (Fi = 1, (function(e, n) {
|
|
1835
1835
|
(function(t, l) {
|
|
1836
1836
|
e.exports = l(te());
|
|
1837
|
-
})(
|
|
1837
|
+
})(mr, function(t) {
|
|
1838
1838
|
return (function() {
|
|
1839
1839
|
if (typeof ArrayBuffer == "function") {
|
|
1840
1840
|
var l = t, p = l.lib, g = p.WordArray, b = g.init, d = g.init = function(r) {
|
|
@@ -1851,12 +1851,12 @@ function pr() {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
})(gt)), gt.exports;
|
|
1853
1853
|
}
|
|
1854
|
-
var dt = { exports: {} },
|
|
1855
|
-
function
|
|
1854
|
+
var dt = { exports: {} }, pr = dt.exports, Ai;
|
|
1855
|
+
function gr() {
|
|
1856
1856
|
return Ai || (Ai = 1, (function(e, n) {
|
|
1857
1857
|
(function(t, l) {
|
|
1858
1858
|
e.exports = l(te());
|
|
1859
|
-
})(
|
|
1859
|
+
})(pr, function(t) {
|
|
1860
1860
|
return (function() {
|
|
1861
1861
|
var l = t, p = l.lib, g = p.WordArray, b = l.enc;
|
|
1862
1862
|
b.Utf16 = b.Utf16BE = {
|
|
@@ -1945,12 +1945,12 @@ function dr() {
|
|
|
1945
1945
|
});
|
|
1946
1946
|
})(dt)), dt.exports;
|
|
1947
1947
|
}
|
|
1948
|
-
var ct = { exports: {} },
|
|
1948
|
+
var ct = { exports: {} }, dr = ct.exports, Oi;
|
|
1949
1949
|
function xa() {
|
|
1950
1950
|
return Oi || (Oi = 1, (function(e, n) {
|
|
1951
1951
|
(function(t, l) {
|
|
1952
1952
|
e.exports = l(te());
|
|
1953
|
-
})(
|
|
1953
|
+
})(dr, function(t) {
|
|
1954
1954
|
return (function() {
|
|
1955
1955
|
var l = t, p = l.lib, g = p.WordArray, b = l.enc;
|
|
1956
1956
|
b.Base64 = {
|
|
@@ -2020,12 +2020,12 @@ function xa() {
|
|
|
2020
2020
|
});
|
|
2021
2021
|
})(ct)), ct.exports;
|
|
2022
2022
|
}
|
|
2023
|
-
var ft = { exports: {} },
|
|
2024
|
-
function
|
|
2023
|
+
var ft = { exports: {} }, cr = ft.exports, Bi;
|
|
2024
|
+
function fr() {
|
|
2025
2025
|
return Bi || (Bi = 1, (function(e, n) {
|
|
2026
2026
|
(function(t, l) {
|
|
2027
2027
|
e.exports = l(te());
|
|
2028
|
-
})(
|
|
2028
|
+
})(cr, function(t) {
|
|
2029
2029
|
return (function() {
|
|
2030
2030
|
var l = t, p = l.lib, g = p.WordArray, b = l.enc;
|
|
2031
2031
|
b.Base64url = {
|
|
@@ -2102,12 +2102,12 @@ function _r() {
|
|
|
2102
2102
|
});
|
|
2103
2103
|
})(ft)), ft.exports;
|
|
2104
2104
|
}
|
|
2105
|
-
var _t = { exports: {} },
|
|
2105
|
+
var _t = { exports: {} }, _r = _t.exports, Hi;
|
|
2106
2106
|
function Sa() {
|
|
2107
2107
|
return Hi || (Hi = 1, (function(e, n) {
|
|
2108
2108
|
(function(t, l) {
|
|
2109
2109
|
e.exports = l(te());
|
|
2110
|
-
})(
|
|
2110
|
+
})(_r, function(t) {
|
|
2111
2111
|
return (function(l) {
|
|
2112
2112
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.algo, a = [];
|
|
2113
2113
|
(function() {
|
|
@@ -2168,12 +2168,12 @@ function Sa() {
|
|
|
2168
2168
|
});
|
|
2169
2169
|
})(_t)), _t.exports;
|
|
2170
2170
|
}
|
|
2171
|
-
var yt = { exports: {} },
|
|
2171
|
+
var yt = { exports: {} }, yr = yt.exports, Wi;
|
|
2172
2172
|
function el() {
|
|
2173
2173
|
return Wi || (Wi = 1, (function(e, n) {
|
|
2174
2174
|
(function(t, l) {
|
|
2175
2175
|
e.exports = l(te());
|
|
2176
|
-
})(
|
|
2176
|
+
})(yr, function(t) {
|
|
2177
2177
|
return (function() {
|
|
2178
2178
|
var l = t, p = l.lib, g = p.WordArray, b = p.Hasher, d = l.algo, r = [], a = d.SHA1 = b.extend({
|
|
2179
2179
|
_doReset: function() {
|
|
@@ -2212,12 +2212,12 @@ function el() {
|
|
|
2212
2212
|
});
|
|
2213
2213
|
})(yt)), yt.exports;
|
|
2214
2214
|
}
|
|
2215
|
-
var Ut = { exports: {} },
|
|
2215
|
+
var Ut = { exports: {} }, Ur = Ut.exports, zi;
|
|
2216
2216
|
function yi() {
|
|
2217
2217
|
return zi || (zi = 1, (function(e, n) {
|
|
2218
2218
|
(function(t, l) {
|
|
2219
2219
|
e.exports = l(te());
|
|
2220
|
-
})(
|
|
2220
|
+
})(Ur, function(t) {
|
|
2221
2221
|
return (function(l) {
|
|
2222
2222
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.algo, a = [], i = [];
|
|
2223
2223
|
(function() {
|
|
@@ -2264,12 +2264,12 @@ function yi() {
|
|
|
2264
2264
|
});
|
|
2265
2265
|
})(Ut)), Ut.exports;
|
|
2266
2266
|
}
|
|
2267
|
-
var bt = { exports: {} },
|
|
2268
|
-
function
|
|
2267
|
+
var bt = { exports: {} }, br = bt.exports, Ii;
|
|
2268
|
+
function Cr() {
|
|
2269
2269
|
return Ii || (Ii = 1, (function(e, n) {
|
|
2270
2270
|
(function(t, l, p) {
|
|
2271
2271
|
e.exports = l(te(), yi());
|
|
2272
|
-
})(
|
|
2272
|
+
})(br, function(t) {
|
|
2273
2273
|
return (function() {
|
|
2274
2274
|
var l = t, p = l.lib, g = p.WordArray, b = l.algo, d = b.SHA256, r = b.SHA224 = d.extend({
|
|
2275
2275
|
_doReset: function() {
|
|
@@ -2294,12 +2294,12 @@ function vr() {
|
|
|
2294
2294
|
});
|
|
2295
2295
|
})(bt)), bt.exports;
|
|
2296
2296
|
}
|
|
2297
|
-
var Ct = { exports: {} },
|
|
2297
|
+
var Ct = { exports: {} }, vr = Ct.exports, Vi;
|
|
2298
2298
|
function al() {
|
|
2299
2299
|
return Vi || (Vi = 1, (function(e, n) {
|
|
2300
2300
|
(function(t, l, p) {
|
|
2301
2301
|
e.exports = l(te(), jt());
|
|
2302
|
-
})(
|
|
2302
|
+
})(vr, function(t) {
|
|
2303
2303
|
return (function() {
|
|
2304
2304
|
var l = t, p = l.lib, g = p.Hasher, b = l.x64, d = b.Word, r = b.WordArray, a = l.algo;
|
|
2305
2305
|
function i() {
|
|
@@ -2405,18 +2405,18 @@ function al() {
|
|
|
2405
2405
|
]);
|
|
2406
2406
|
},
|
|
2407
2407
|
_doProcessBlock: function(m, 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,
|
|
2409
|
-
var ve,
|
|
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, se = H, ce = B, ke = W, fe = M, He = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
|
|
2409
|
+
var ve, We, aa = s[Me];
|
|
2410
2410
|
if (Me < 16)
|
|
2411
|
-
|
|
2411
|
+
We = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
|
|
2412
2412
|
else {
|
|
2413
2413
|
var ta = s[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 = s[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 = s[Me - 7], Ia = Ea.high, Va = Ea.low, da = s[Me - 16], ya = da.high, Ke = da.low;
|
|
2414
|
-
ve = oa + Va,
|
|
2414
|
+
ve = oa + Va, We = je + Ia + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, We = We + za + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + Ke, We = We + ya + (ve >>> 0 < Ke >>> 0 ? 1 : 0), aa.high = We, aa.low = ve;
|
|
2415
2415
|
}
|
|
2416
|
-
var ca =
|
|
2417
|
-
Ge =
|
|
2416
|
+
var ca = se & ke ^ ~se & He, 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 = (se >>> 14 | ce << 18) ^ (se >>> 18 | ce << 14) ^ (se << 23 | ce >>> 9), Se = (ce >>> 14 | se << 18) ^ (ce >>> 18 | se << 14) ^ (ce << 23 | se >>> 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 + We + (Pe >>> 0 < ve >>> 0 ? 1 : 0), et = Ga + La, Yt = Ua + Na + (et >>> 0 < Ga >>> 0 ? 1 : 0);
|
|
2417
|
+
Ge = He, ea = Ce, He = ke, Ce = fe, ke = se, fe = ce, ce = Ue + Pe | 0, se = 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 +
|
|
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 + se + (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 + He + (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
2422
|
var m = this._data, c = m.words, f = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
@@ -2435,12 +2435,12 @@ function al() {
|
|
|
2435
2435
|
});
|
|
2436
2436
|
})(Ct)), Ct.exports;
|
|
2437
2437
|
}
|
|
2438
|
-
var vt = { exports: {} },
|
|
2439
|
-
function
|
|
2438
|
+
var vt = { exports: {} }, hr = vt.exports, Ji;
|
|
2439
|
+
function Tr() {
|
|
2440
2440
|
return Ji || (Ji = 1, (function(e, n) {
|
|
2441
2441
|
(function(t, l, p) {
|
|
2442
2442
|
e.exports = l(te(), jt(), al());
|
|
2443
|
-
})(
|
|
2443
|
+
})(hr, function(t) {
|
|
2444
2444
|
return (function() {
|
|
2445
2445
|
var l = t, p = l.x64, g = p.Word, b = p.WordArray, d = l.algo, r = d.SHA512, a = d.SHA384 = r.extend({
|
|
2446
2446
|
_doReset: function() {
|
|
@@ -2465,12 +2465,12 @@ function kr() {
|
|
|
2465
2465
|
});
|
|
2466
2466
|
})(vt)), vt.exports;
|
|
2467
2467
|
}
|
|
2468
|
-
var ht = { exports: {} },
|
|
2469
|
-
function
|
|
2468
|
+
var ht = { exports: {} }, kr = ht.exports, Zi;
|
|
2469
|
+
function xr() {
|
|
2470
2470
|
return Zi || (Zi = 1, (function(e, n) {
|
|
2471
2471
|
(function(t, l, p) {
|
|
2472
2472
|
e.exports = l(te(), jt());
|
|
2473
|
-
})(
|
|
2473
|
+
})(kr, function(t) {
|
|
2474
2474
|
return (function(l) {
|
|
2475
2475
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.x64, a = r.Word, i = p.algo, o = [], s = [], u = [];
|
|
2476
2476
|
(function() {
|
|
@@ -2575,12 +2575,12 @@ function Sr() {
|
|
|
2575
2575
|
});
|
|
2576
2576
|
})(ht)), ht.exports;
|
|
2577
2577
|
}
|
|
2578
|
-
var Tt = { exports: {} },
|
|
2579
|
-
function
|
|
2578
|
+
var Tt = { exports: {} }, Sr = Tt.exports, Ki;
|
|
2579
|
+
function Dr() {
|
|
2580
2580
|
return Ki || (Ki = 1, (function(e, n) {
|
|
2581
2581
|
(function(t, l) {
|
|
2582
2582
|
e.exports = l(te());
|
|
2583
|
-
})(
|
|
2583
|
+
})(Sr, function(t) {
|
|
2584
2584
|
return (function(l) {
|
|
2585
2585
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.algo, a = b.create([
|
|
2586
2586
|
0,
|
|
@@ -2958,12 +2958,12 @@ function Er() {
|
|
|
2958
2958
|
});
|
|
2959
2959
|
})(Tt)), Tt.exports;
|
|
2960
2960
|
}
|
|
2961
|
-
var kt = { exports: {} },
|
|
2961
|
+
var kt = { exports: {} }, Er = kt.exports, qi;
|
|
2962
2962
|
function Ui() {
|
|
2963
2963
|
return qi || (qi = 1, (function(e, n) {
|
|
2964
2964
|
(function(t, l) {
|
|
2965
2965
|
e.exports = l(te());
|
|
2966
|
-
})(
|
|
2966
|
+
})(Er, function(t) {
|
|
2967
2967
|
(function() {
|
|
2968
2968
|
var l = t, p = l.lib, g = p.Base, b = l.enc, d = b.Utf8, r = l.algo;
|
|
2969
2969
|
r.HMAC = g.extend({
|
|
@@ -3036,12 +3036,12 @@ function Ui() {
|
|
|
3036
3036
|
});
|
|
3037
3037
|
})(kt)), kt.exports;
|
|
3038
3038
|
}
|
|
3039
|
-
var xt = { exports: {} },
|
|
3040
|
-
function
|
|
3039
|
+
var xt = { exports: {} }, Nr = xt.exports, $i;
|
|
3040
|
+
function Lr() {
|
|
3041
3041
|
return $i || ($i = 1, (function(e, n) {
|
|
3042
3042
|
(function(t, l, p) {
|
|
3043
3043
|
e.exports = l(te(), yi(), Ui());
|
|
3044
|
-
})(
|
|
3044
|
+
})(Nr, function(t) {
|
|
3045
3045
|
return (function() {
|
|
3046
3046
|
var l = t, p = l.lib, g = p.Base, b = p.WordArray, d = l.algo, r = d.SHA256, a = d.HMAC, i = d.PBKDF2 = g.extend({
|
|
3047
3047
|
/**
|
|
@@ -3103,12 +3103,12 @@ function Gr() {
|
|
|
3103
3103
|
});
|
|
3104
3104
|
})(xt)), xt.exports;
|
|
3105
3105
|
}
|
|
3106
|
-
var St = { exports: {} },
|
|
3106
|
+
var St = { exports: {} }, Gr = St.exports, Qi;
|
|
3107
3107
|
function _a() {
|
|
3108
3108
|
return Qi || (Qi = 1, (function(e, n) {
|
|
3109
3109
|
(function(t, l, p) {
|
|
3110
3110
|
e.exports = l(te(), el(), Ui());
|
|
3111
|
-
})(
|
|
3111
|
+
})(Gr, function(t) {
|
|
3112
3112
|
return (function() {
|
|
3113
3113
|
var l = t, p = l.lib, g = p.Base, b = p.WordArray, d = l.algo, r = d.MD5, a = d.EvpKDF = g.extend({
|
|
3114
3114
|
/**
|
|
@@ -3166,12 +3166,12 @@ function _a() {
|
|
|
3166
3166
|
});
|
|
3167
3167
|
})(St)), St.exports;
|
|
3168
3168
|
}
|
|
3169
|
-
var Dt = { exports: {} },
|
|
3169
|
+
var Dt = { exports: {} }, Mr = Dt.exports, ji;
|
|
3170
3170
|
function Ne() {
|
|
3171
3171
|
return ji || (ji = 1, (function(e, n) {
|
|
3172
3172
|
(function(t, l, p) {
|
|
3173
3173
|
e.exports = l(te(), _a());
|
|
3174
|
-
})(
|
|
3174
|
+
})(Mr, function(t) {
|
|
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;
|
|
@@ -3704,12 +3704,12 @@ function Ne() {
|
|
|
3704
3704
|
});
|
|
3705
3705
|
})(Dt)), Dt.exports;
|
|
3706
3706
|
}
|
|
3707
|
-
var Et = { exports: {} },
|
|
3708
|
-
function
|
|
3707
|
+
var Et = { exports: {} }, Rr = Et.exports, Yi;
|
|
3708
|
+
function Pr() {
|
|
3709
3709
|
return Yi || (Yi = 1, (function(e, n) {
|
|
3710
3710
|
(function(t, l, p) {
|
|
3711
3711
|
e.exports = l(te(), Ne());
|
|
3712
|
-
})(
|
|
3712
|
+
})(Rr, function(t) {
|
|
3713
3713
|
return t.mode.CFB = (function() {
|
|
3714
3714
|
var l = t.lib.BlockCipherMode.extend();
|
|
3715
3715
|
l.Encryptor = l.extend({
|
|
@@ -3734,12 +3734,12 @@ function wr() {
|
|
|
3734
3734
|
});
|
|
3735
3735
|
})(Et)), Et.exports;
|
|
3736
3736
|
}
|
|
3737
|
-
var Nt = { exports: {} },
|
|
3738
|
-
function
|
|
3737
|
+
var Nt = { exports: {} }, wr = Nt.exports, Xi;
|
|
3738
|
+
function Fr() {
|
|
3739
3739
|
return Xi || (Xi = 1, (function(e, n) {
|
|
3740
3740
|
(function(t, l, p) {
|
|
3741
3741
|
e.exports = l(te(), Ne());
|
|
3742
|
-
})(
|
|
3742
|
+
})(wr, function(t) {
|
|
3743
3743
|
return t.mode.CTR = (function() {
|
|
3744
3744
|
var l = t.lib.BlockCipherMode.extend(), p = l.Encryptor = l.extend({
|
|
3745
3745
|
processBlock: function(g, b) {
|
|
@@ -3756,12 +3756,12 @@ function Ar() {
|
|
|
3756
3756
|
});
|
|
3757
3757
|
})(Nt)), Nt.exports;
|
|
3758
3758
|
}
|
|
3759
|
-
var Lt = { exports: {} },
|
|
3760
|
-
function
|
|
3759
|
+
var Lt = { exports: {} }, Ar = Lt.exports, en;
|
|
3760
|
+
function Or() {
|
|
3761
3761
|
return en || (en = 1, (function(e, n) {
|
|
3762
3762
|
(function(t, l, p) {
|
|
3763
3763
|
e.exports = l(te(), Ne());
|
|
3764
|
-
})(
|
|
3764
|
+
})(Ar, function(t) {
|
|
3765
3765
|
return t.mode.CTRGladman = (function() {
|
|
3766
3766
|
var l = t.lib.BlockCipherMode.extend();
|
|
3767
3767
|
function p(d) {
|
|
@@ -3790,12 +3790,12 @@ function Br() {
|
|
|
3790
3790
|
});
|
|
3791
3791
|
})(Lt)), Lt.exports;
|
|
3792
3792
|
}
|
|
3793
|
-
var Gt = { exports: {} },
|
|
3794
|
-
function
|
|
3793
|
+
var Gt = { exports: {} }, Br = Gt.exports, an;
|
|
3794
|
+
function Hr() {
|
|
3795
3795
|
return an || (an = 1, (function(e, n) {
|
|
3796
3796
|
(function(t, l, p) {
|
|
3797
3797
|
e.exports = l(te(), Ne());
|
|
3798
|
-
})(
|
|
3798
|
+
})(Br, function(t) {
|
|
3799
3799
|
return t.mode.OFB = (function() {
|
|
3800
3800
|
var l = t.lib.BlockCipherMode.extend(), p = l.Encryptor = l.extend({
|
|
3801
3801
|
processBlock: function(g, b) {
|
|
@@ -3810,12 +3810,12 @@ function Wr() {
|
|
|
3810
3810
|
});
|
|
3811
3811
|
})(Gt)), Gt.exports;
|
|
3812
3812
|
}
|
|
3813
|
-
var Mt = { exports: {} },
|
|
3814
|
-
function
|
|
3813
|
+
var Mt = { exports: {} }, Wr = Mt.exports, tn;
|
|
3814
|
+
function zr() {
|
|
3815
3815
|
return tn || (tn = 1, (function(e, n) {
|
|
3816
3816
|
(function(t, l, p) {
|
|
3817
3817
|
e.exports = l(te(), Ne());
|
|
3818
|
-
})(
|
|
3818
|
+
})(Wr, function(t) {
|
|
3819
3819
|
return t.mode.ECB = (function() {
|
|
3820
3820
|
var l = t.lib.BlockCipherMode.extend();
|
|
3821
3821
|
return l.Encryptor = l.extend({
|
|
@@ -3831,12 +3831,12 @@ function Ir() {
|
|
|
3831
3831
|
});
|
|
3832
3832
|
})(Mt)), Mt.exports;
|
|
3833
3833
|
}
|
|
3834
|
-
var Rt = { exports: {} },
|
|
3835
|
-
function
|
|
3834
|
+
var Rt = { exports: {} }, Ir = Rt.exports, nn;
|
|
3835
|
+
function Vr() {
|
|
3836
3836
|
return nn || (nn = 1, (function(e, n) {
|
|
3837
3837
|
(function(t, l, p) {
|
|
3838
3838
|
e.exports = l(te(), Ne());
|
|
3839
|
-
})(
|
|
3839
|
+
})(Ir, function(t) {
|
|
3840
3840
|
return t.pad.AnsiX923 = {
|
|
3841
3841
|
pad: function(l, p) {
|
|
3842
3842
|
var g = l.sigBytes, b = p * 4, d = b - g % b, r = g + d - 1;
|
|
@@ -3850,12 +3850,12 @@ function Jr() {
|
|
|
3850
3850
|
});
|
|
3851
3851
|
})(Rt)), Rt.exports;
|
|
3852
3852
|
}
|
|
3853
|
-
var Pt = { exports: {} },
|
|
3854
|
-
function
|
|
3853
|
+
var Pt = { exports: {} }, Jr = Pt.exports, ln;
|
|
3854
|
+
function Zr() {
|
|
3855
3855
|
return ln || (ln = 1, (function(e, n) {
|
|
3856
3856
|
(function(t, l, p) {
|
|
3857
3857
|
e.exports = l(te(), Ne());
|
|
3858
|
-
})(
|
|
3858
|
+
})(Jr, function(t) {
|
|
3859
3859
|
return t.pad.Iso10126 = {
|
|
3860
3860
|
pad: function(l, p) {
|
|
3861
3861
|
var g = p * 4, b = g - l.sigBytes % g;
|
|
@@ -3869,12 +3869,12 @@ function Kr() {
|
|
|
3869
3869
|
});
|
|
3870
3870
|
})(Pt)), Pt.exports;
|
|
3871
3871
|
}
|
|
3872
|
-
var wt = { exports: {} },
|
|
3873
|
-
function
|
|
3872
|
+
var wt = { exports: {} }, Kr = wt.exports, rn;
|
|
3873
|
+
function qr() {
|
|
3874
3874
|
return rn || (rn = 1, (function(e, n) {
|
|
3875
3875
|
(function(t, l, p) {
|
|
3876
3876
|
e.exports = l(te(), Ne());
|
|
3877
|
-
})(
|
|
3877
|
+
})(Kr, function(t) {
|
|
3878
3878
|
return t.pad.Iso97971 = {
|
|
3879
3879
|
pad: function(l, p) {
|
|
3880
3880
|
l.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(l, p);
|
|
@@ -3886,12 +3886,12 @@ function $r() {
|
|
|
3886
3886
|
});
|
|
3887
3887
|
})(wt)), wt.exports;
|
|
3888
3888
|
}
|
|
3889
|
-
var Ft = { exports: {} },
|
|
3890
|
-
function
|
|
3889
|
+
var Ft = { exports: {} }, $r = Ft.exports, on;
|
|
3890
|
+
function Qr() {
|
|
3891
3891
|
return on || (on = 1, (function(e, n) {
|
|
3892
3892
|
(function(t, l, p) {
|
|
3893
3893
|
e.exports = l(te(), Ne());
|
|
3894
|
-
})(
|
|
3894
|
+
})($r, function(t) {
|
|
3895
3895
|
return t.pad.ZeroPadding = {
|
|
3896
3896
|
pad: function(l, p) {
|
|
3897
3897
|
var g = p * 4;
|
|
@@ -3908,12 +3908,12 @@ function jr() {
|
|
|
3908
3908
|
});
|
|
3909
3909
|
})(Ft)), Ft.exports;
|
|
3910
3910
|
}
|
|
3911
|
-
var At = { exports: {} },
|
|
3912
|
-
function
|
|
3911
|
+
var At = { exports: {} }, jr = At.exports, sn;
|
|
3912
|
+
function Yr() {
|
|
3913
3913
|
return sn || (sn = 1, (function(e, n) {
|
|
3914
3914
|
(function(t, l, p) {
|
|
3915
3915
|
e.exports = l(te(), Ne());
|
|
3916
|
-
})(
|
|
3916
|
+
})(jr, function(t) {
|
|
3917
3917
|
return t.pad.NoPadding = {
|
|
3918
3918
|
pad: function() {
|
|
3919
3919
|
},
|
|
@@ -3923,12 +3923,12 @@ function Xr() {
|
|
|
3923
3923
|
});
|
|
3924
3924
|
})(At)), At.exports;
|
|
3925
3925
|
}
|
|
3926
|
-
var Ot = { exports: {} },
|
|
3927
|
-
function
|
|
3926
|
+
var Ot = { exports: {} }, Xr = Ot.exports, mn;
|
|
3927
|
+
function eo() {
|
|
3928
3928
|
return mn || (mn = 1, (function(e, n) {
|
|
3929
3929
|
(function(t, l, p) {
|
|
3930
3930
|
e.exports = l(te(), Ne());
|
|
3931
|
-
})(
|
|
3931
|
+
})(Xr, function(t) {
|
|
3932
3932
|
return (function(l) {
|
|
3933
3933
|
var p = t, g = p.lib, b = g.CipherParams, d = p.enc, r = d.Hex, a = p.format;
|
|
3934
3934
|
a.Hex = {
|
|
@@ -3970,12 +3970,12 @@ function ao() {
|
|
|
3970
3970
|
});
|
|
3971
3971
|
})(Ot)), Ot.exports;
|
|
3972
3972
|
}
|
|
3973
|
-
var Bt = { exports: {} },
|
|
3974
|
-
function
|
|
3973
|
+
var Bt = { exports: {} }, ao = Bt.exports, un;
|
|
3974
|
+
function to() {
|
|
3975
3975
|
return un || (un = 1, (function(e, n) {
|
|
3976
3976
|
(function(t, l, p) {
|
|
3977
3977
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
3978
|
-
})(
|
|
3978
|
+
})(ao, function(t) {
|
|
3979
3979
|
return (function() {
|
|
3980
3980
|
var l = t, p = l.lib, g = p.BlockCipher, b = l.algo, d = [], r = [], a = [], i = [], o = [], s = [], u = [], m = [], c = [], f = [];
|
|
3981
3981
|
(function() {
|
|
@@ -4030,12 +4030,12 @@ function io() {
|
|
|
4030
4030
|
});
|
|
4031
4031
|
})(Bt)), Bt.exports;
|
|
4032
4032
|
}
|
|
4033
|
-
var Ht = { exports: {} },
|
|
4034
|
-
function
|
|
4033
|
+
var Ht = { exports: {} }, io = Ht.exports, pn;
|
|
4034
|
+
function no() {
|
|
4035
4035
|
return pn || (pn = 1, (function(e, n) {
|
|
4036
4036
|
(function(t, l, p) {
|
|
4037
4037
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4038
|
-
})(
|
|
4038
|
+
})(io, function(t) {
|
|
4039
4039
|
return (function() {
|
|
4040
4040
|
var l = t, p = l.lib, g = p.WordArray, b = p.BlockCipher, d = l.algo, r = [
|
|
4041
4041
|
57,
|
|
@@ -4750,12 +4750,12 @@ function lo() {
|
|
|
4750
4750
|
});
|
|
4751
4751
|
})(Ht)), Ht.exports;
|
|
4752
4752
|
}
|
|
4753
|
-
var Wt = { exports: {} },
|
|
4754
|
-
function
|
|
4753
|
+
var Wt = { exports: {} }, lo = Wt.exports, gn;
|
|
4754
|
+
function ro() {
|
|
4755
4755
|
return gn || (gn = 1, (function(e, n) {
|
|
4756
4756
|
(function(t, l, p) {
|
|
4757
4757
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4758
|
-
})(
|
|
4758
|
+
})(lo, function(t) {
|
|
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() {
|
|
@@ -4804,12 +4804,12 @@ function oo() {
|
|
|
4804
4804
|
});
|
|
4805
4805
|
})(Wt)), Wt.exports;
|
|
4806
4806
|
}
|
|
4807
|
-
var zt = { exports: {} },
|
|
4808
|
-
function
|
|
4807
|
+
var zt = { exports: {} }, oo = zt.exports, dn;
|
|
4808
|
+
function so() {
|
|
4809
4809
|
return dn || (dn = 1, (function(e, n) {
|
|
4810
4810
|
(function(t, l, p) {
|
|
4811
4811
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4812
|
-
})(
|
|
4812
|
+
})(oo, function(t) {
|
|
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() {
|
|
@@ -4870,12 +4870,12 @@ function mo() {
|
|
|
4870
4870
|
});
|
|
4871
4871
|
})(zt)), zt.exports;
|
|
4872
4872
|
}
|
|
4873
|
-
var It = { exports: {} },
|
|
4874
|
-
function
|
|
4873
|
+
var It = { exports: {} }, mo = It.exports, cn;
|
|
4874
|
+
function uo() {
|
|
4875
4875
|
return cn || (cn = 1, (function(e, n) {
|
|
4876
4876
|
(function(t, l, p) {
|
|
4877
4877
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4878
|
-
})(
|
|
4878
|
+
})(mo, function(t) {
|
|
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() {
|
|
@@ -4934,12 +4934,12 @@ function po() {
|
|
|
4934
4934
|
});
|
|
4935
4935
|
})(It)), It.exports;
|
|
4936
4936
|
}
|
|
4937
|
-
var Vt = { exports: {} },
|
|
4938
|
-
function
|
|
4937
|
+
var Vt = { exports: {} }, po = Vt.exports, fn;
|
|
4938
|
+
function go() {
|
|
4939
4939
|
return fn || (fn = 1, (function(e, n) {
|
|
4940
4940
|
(function(t, l, p) {
|
|
4941
4941
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4942
|
-
})(
|
|
4942
|
+
})(po, function(t) {
|
|
4943
4943
|
return (function() {
|
|
4944
4944
|
var l = t, p = l.lib, g = p.BlockCipher, b = l.algo;
|
|
4945
4945
|
const d = 16, r = [
|
|
@@ -6056,17 +6056,17 @@ function co() {
|
|
|
6056
6056
|
});
|
|
6057
6057
|
})(Vt)), Vt.exports;
|
|
6058
6058
|
}
|
|
6059
|
-
var
|
|
6060
|
-
function
|
|
6059
|
+
var co = mt.exports, _n;
|
|
6060
|
+
function fo() {
|
|
6061
6061
|
return _n || (_n = 1, (function(e, n) {
|
|
6062
6062
|
(function(t, l, p) {
|
|
6063
|
-
e.exports = l(te(), jt(),
|
|
6064
|
-
})(
|
|
6063
|
+
e.exports = l(te(), jt(), ur(), gr(), xa(), fr(), Sa(), el(), yi(), Cr(), al(), Tr(), xr(), Dr(), Ui(), Lr(), _a(), Ne(), Pr(), Fr(), Or(), Hr(), zr(), Vr(), Zr(), qr(), Qr(), Yr(), eo(), to(), no(), ro(), so(), uo(), go());
|
|
6064
|
+
})(co, function(t) {
|
|
6065
6065
|
return t;
|
|
6066
6066
|
});
|
|
6067
6067
|
})(mt)), mt.exports;
|
|
6068
6068
|
}
|
|
6069
|
-
var Zt =
|
|
6069
|
+
var Zt = fo();
|
|
6070
6070
|
const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
6071
6071
|
const n = "mySecretPassphrase", t = Ca.lib.WordArray.random(16), l = Ca.PBKDF2(n, t, {
|
|
6072
6072
|
keySize: 128 / 32,
|
|
@@ -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 } = me(), 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,
|
|
@@ -6363,8 +6363,8 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6363
6363
|
getUserAvatarListApi: B,
|
|
6364
6364
|
updateUserAvatarApi: W
|
|
6365
6365
|
};
|
|
6366
|
-
},
|
|
6367
|
-
const { userCurrencyExchangeApi: t } = oe(), { getToken: l } =
|
|
6366
|
+
}, Tm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
6367
|
+
const { userCurrencyExchangeApi: t } = oe(), { getToken: l } = me(), { enabled: p, ...g } = n, d = !!l?.() && (p ? p.every((r) => r) : !0);
|
|
6368
6368
|
return Wn({
|
|
6369
6369
|
queries: [
|
|
6370
6370
|
{
|
|
@@ -6377,12 +6377,12 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
]
|
|
6379
6379
|
});
|
|
6380
|
-
},
|
|
6380
|
+
}, km = ({
|
|
6381
6381
|
refetchInterval: e = 5e4,
|
|
6382
6382
|
trigger: n = [],
|
|
6383
6383
|
enabled: t = !0
|
|
6384
6384
|
} = {}) => {
|
|
6385
|
-
const { getToken: l } =
|
|
6385
|
+
const { getToken: l } = me(), p = l?.(), { userInfoApi: g } = oe();
|
|
6386
6386
|
return Wn({
|
|
6387
6387
|
queries: [
|
|
6388
6388
|
{
|
|
@@ -6393,7 +6393,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6393
6393
|
}
|
|
6394
6394
|
]
|
|
6395
6395
|
});
|
|
6396
|
-
},
|
|
6396
|
+
}, xm = ({ enabled: e = !0 } = {}) => {
|
|
6397
6397
|
const {
|
|
6398
6398
|
userInfoApi: n,
|
|
6399
6399
|
userFavoriteGameApi: t,
|
|
@@ -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 } = me(), t = Qe(n || "tw"), l = I(
|
|
6427
6427
|
async (b) => {
|
|
6428
6428
|
const {
|
|
6429
6429
|
gameUid: d = "",
|
|
@@ -6488,7 +6488,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6488
6488
|
[e]
|
|
6489
6489
|
);
|
|
6490
6490
|
return { playGameApi: l, betRecordApi: p, betRecordDetailApi: g };
|
|
6491
|
-
},
|
|
6491
|
+
}, _o = ({ options: e, formData: n } = {}) => {
|
|
6492
6492
|
const { betRecordApi: t } = bi();
|
|
6493
6493
|
return j({
|
|
6494
6494
|
queryKey: ["getBetRecord"],
|
|
@@ -6499,20 +6499,20 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6499
6499
|
})),
|
|
6500
6500
|
...e
|
|
6501
6501
|
});
|
|
6502
|
-
},
|
|
6502
|
+
}, yo = ({ options: e, formData: n } = {}) => {
|
|
6503
6503
|
const { betRecordDetailApi: t } = bi();
|
|
6504
6504
|
return j({
|
|
6505
6505
|
queryKey: ["getBetRecordDetail"],
|
|
6506
6506
|
queryFn: async () => await t(n),
|
|
6507
6507
|
...e
|
|
6508
6508
|
});
|
|
6509
|
-
},
|
|
6509
|
+
}, Sm = ({
|
|
6510
6510
|
options: e = {
|
|
6511
6511
|
betRecord: {},
|
|
6512
6512
|
betRecordDetail: {}
|
|
6513
6513
|
}
|
|
6514
6514
|
}) => {
|
|
6515
|
-
const n =
|
|
6515
|
+
const n = _o({ options: e.betRecord }), t = yo({
|
|
6516
6516
|
options: e.betRecordDetail
|
|
6517
6517
|
});
|
|
6518
6518
|
return {
|
|
@@ -6528,7 +6528,7 @@ function nt(e) {
|
|
|
6528
6528
|
}
|
|
6529
6529
|
return e;
|
|
6530
6530
|
}
|
|
6531
|
-
var
|
|
6531
|
+
var Uo = {
|
|
6532
6532
|
read: function(e) {
|
|
6533
6533
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
6534
6534
|
},
|
|
@@ -6589,7 +6589,7 @@ function si(e, n) {
|
|
|
6589
6589
|
}
|
|
6590
6590
|
);
|
|
6591
6591
|
}
|
|
6592
|
-
var mi = si(
|
|
6592
|
+
var mi = si(Uo, { path: "/" }), ai = {}, Je = {}, ti = {}, yn;
|
|
6593
6593
|
function ra() {
|
|
6594
6594
|
return yn || (yn = 1, (function(e) {
|
|
6595
6595
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
|
@@ -6738,7 +6738,7 @@ function Ti() {
|
|
|
6738
6738
|
return $a;
|
|
6739
6739
|
}
|
|
6740
6740
|
var Tn;
|
|
6741
|
-
function
|
|
6741
|
+
function bo() {
|
|
6742
6742
|
if (Tn) return va;
|
|
6743
6743
|
Tn = 1;
|
|
6744
6744
|
var e = va && va.__assign || function() {
|
|
@@ -6808,7 +6808,7 @@ function Co() {
|
|
|
6808
6808
|
return va.attachListeners = a, va;
|
|
6809
6809
|
}
|
|
6810
6810
|
var ha = {}, kn;
|
|
6811
|
-
function
|
|
6811
|
+
function Co() {
|
|
6812
6812
|
if (kn) return ha;
|
|
6813
6813
|
kn = 1;
|
|
6814
6814
|
var e = ha && ha.__assign || function() {
|
|
@@ -6870,10 +6870,10 @@ function vo() {
|
|
|
6870
6870
|
return ha.attachSharedListeners = i, ha;
|
|
6871
6871
|
}
|
|
6872
6872
|
var xn;
|
|
6873
|
-
function
|
|
6873
|
+
function vo() {
|
|
6874
6874
|
if (xn) return qa;
|
|
6875
6875
|
xn = 1, Object.defineProperty(qa, "__esModule", { value: !0 }), qa.createOrJoinSocket = void 0;
|
|
6876
|
-
var e = Ci(), n = ra(), t =
|
|
6876
|
+
var e = Ci(), n = ra(), t = bo(), l = Co(), p = hi(), g = function(d, r, a, i, o) {
|
|
6877
6877
|
return function() {
|
|
6878
6878
|
if ((0, p.removeSubscriber)(d, r), !(0, p.hasSubscribers)(d)) {
|
|
6879
6879
|
try {
|
|
@@ -6913,7 +6913,7 @@ function ho() {
|
|
|
6913
6913
|
return qa.createOrJoinSocket = b, qa;
|
|
6914
6914
|
}
|
|
6915
6915
|
var ma = {}, Sn;
|
|
6916
|
-
function
|
|
6916
|
+
function ho() {
|
|
6917
6917
|
return Sn || (Sn = 1, (function(e) {
|
|
6918
6918
|
var n = ma && ma.__awaiter || function(r, a, i, o) {
|
|
6919
6919
|
function s(u) {
|
|
@@ -7050,7 +7050,7 @@ function To() {
|
|
|
7050
7050
|
})(ma)), ma;
|
|
7051
7051
|
}
|
|
7052
7052
|
var li = {}, Dn;
|
|
7053
|
-
function
|
|
7053
|
+
function To() {
|
|
7054
7054
|
return Dn || (Dn = 1, (function(e) {
|
|
7055
7055
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
7056
7056
|
var n = function(t, l) {
|
|
@@ -7169,7 +7169,7 @@ function ki() {
|
|
|
7169
7169
|
return s && s.__esModule ? s : { default: s };
|
|
7170
7170
|
};
|
|
7171
7171
|
Object.defineProperty(Je, "__esModule", { value: !0 }), Je.useWebSocket = void 0;
|
|
7172
|
-
var p = de, g =
|
|
7172
|
+
var p = de, g = Jl, b = ra(), d = vo(), r = ho(), a = l(To()), i = Ti(), o = function(s, u, m) {
|
|
7173
7173
|
u === void 0 && (u = b.DEFAULT_OPTIONS), m === void 0 && (m = !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)
|
|
@@ -7255,7 +7255,7 @@ function ki() {
|
|
|
7255
7255
|
return Je.useWebSocket = o, Je;
|
|
7256
7256
|
}
|
|
7257
7257
|
var Ta = {}, Nn;
|
|
7258
|
-
function
|
|
7258
|
+
function ko() {
|
|
7259
7259
|
if (Nn) return Ta;
|
|
7260
7260
|
Nn = 1;
|
|
7261
7261
|
var e = Ta && Ta.__assign || function() {
|
|
@@ -7301,7 +7301,7 @@ function xo() {
|
|
|
7301
7301
|
return Ta.useSocketIO = b, Ta;
|
|
7302
7302
|
}
|
|
7303
7303
|
var ua = {}, Ln;
|
|
7304
|
-
function
|
|
7304
|
+
function xo() {
|
|
7305
7305
|
if (Ln) return ua;
|
|
7306
7306
|
Ln = 1;
|
|
7307
7307
|
var e = ua && ua.__assign || function() {
|
|
@@ -7344,14 +7344,14 @@ function So() {
|
|
|
7344
7344
|
return ua.useEventSource = g, ua;
|
|
7345
7345
|
}
|
|
7346
7346
|
var Gn;
|
|
7347
|
-
function
|
|
7347
|
+
function So() {
|
|
7348
7348
|
return Gn || (Gn = 1, (function(e) {
|
|
7349
7349
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
7350
7350
|
var n = ki();
|
|
7351
7351
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
7352
7352
|
return n.useWebSocket;
|
|
7353
7353
|
} });
|
|
7354
|
-
var t =
|
|
7354
|
+
var t = ko();
|
|
7355
7355
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
7356
7356
|
return t.useSocketIO;
|
|
7357
7357
|
} });
|
|
@@ -7359,7 +7359,7 @@ function Do() {
|
|
|
7359
7359
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
7360
7360
|
return l.ReadyState;
|
|
7361
7361
|
} });
|
|
7362
|
-
var p =
|
|
7362
|
+
var p = xo();
|
|
7363
7363
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
7364
7364
|
return p.useEventSource;
|
|
7365
7365
|
} });
|
|
@@ -7369,15 +7369,15 @@ function Do() {
|
|
|
7369
7369
|
} });
|
|
7370
7370
|
})(ai)), ai;
|
|
7371
7371
|
}
|
|
7372
|
-
var
|
|
7373
|
-
const
|
|
7372
|
+
var Do = So();
|
|
7373
|
+
const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
7374
7374
|
enable: e = !1,
|
|
7375
7375
|
isTestFunction: n = !1,
|
|
7376
7376
|
isTransferMode: t = !1,
|
|
7377
7377
|
isInGameBox: l = !1,
|
|
7378
7378
|
currentGamePlatform: p = ""
|
|
7379
7379
|
}) => {
|
|
7380
|
-
const { store: g, lng: b } =
|
|
7380
|
+
const { store: g, lng: b } = me(), { isReady: d, setAsReady: r, isPending: a, setAsPending: i } = Jn(), o = Qe(b), { mutateAsync: s } = Ho();
|
|
7381
7381
|
return !e || !n || !t ? { handleTransferInGame: () => {
|
|
7382
7382
|
} } : { handleTransferInGame: async () => {
|
|
7383
7383
|
console.log("執行遊戲內轉帳"), l && await s({
|
|
@@ -7417,7 +7417,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7417
7417
|
});
|
|
7418
7418
|
} };
|
|
7419
7419
|
}, Ha = () => {
|
|
7420
|
-
const { client: e } =
|
|
7420
|
+
const { client: e } = me(), 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(
|
|
@@ -7452,88 +7452,88 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7452
7452
|
verifyPhoneBarApi: g,
|
|
7453
7453
|
verifyDonationCodeApi: b
|
|
7454
7454
|
};
|
|
7455
|
-
},
|
|
7455
|
+
}, Lo = ({ options: e } = {}) => {
|
|
7456
7456
|
const { userLoginApi: n } = oe();
|
|
7457
|
-
return
|
|
7457
|
+
return le({
|
|
7458
7458
|
mutationKey: ["userLogin"],
|
|
7459
7459
|
mutationFn: async (t) => n(t),
|
|
7460
7460
|
...e
|
|
7461
7461
|
});
|
|
7462
|
-
},
|
|
7462
|
+
}, Go = ({ options: e } = {}) => {
|
|
7463
7463
|
const { userLogoutApi: n } = oe();
|
|
7464
|
-
return
|
|
7464
|
+
return le({
|
|
7465
7465
|
mutationKey: ["userLogout"],
|
|
7466
7466
|
mutationFn: async () => n(),
|
|
7467
7467
|
...e
|
|
7468
7468
|
});
|
|
7469
|
-
},
|
|
7469
|
+
}, Mo = ({ options: e } = {}) => {
|
|
7470
7470
|
const { userSignUpApi: n } = oe();
|
|
7471
|
-
return
|
|
7471
|
+
return le({
|
|
7472
7472
|
mutationKey: ["userSignUp"],
|
|
7473
7473
|
mutationFn: async (t) => n(t),
|
|
7474
7474
|
...e
|
|
7475
7475
|
});
|
|
7476
|
-
},
|
|
7476
|
+
}, Ro = ({ options: e } = {}) => {
|
|
7477
7477
|
const { addOrRemoveFavoriteGameApi: n } = oe();
|
|
7478
|
-
return
|
|
7478
|
+
return le({
|
|
7479
7479
|
mutationKey: ["toggleFavoriteGame"],
|
|
7480
7480
|
mutationFn: async (t) => n(t),
|
|
7481
7481
|
...e
|
|
7482
7482
|
});
|
|
7483
|
-
},
|
|
7483
|
+
}, Po = ({ options: e } = {}) => {
|
|
7484
7484
|
const { updateUserInfoApi: n } = oe();
|
|
7485
|
-
return
|
|
7485
|
+
return le({
|
|
7486
7486
|
mutationKey: ["updateUserInfo"],
|
|
7487
7487
|
mutationFn: async (t) => n(t),
|
|
7488
7488
|
...e
|
|
7489
7489
|
});
|
|
7490
|
-
},
|
|
7490
|
+
}, wo = ({ options: e } = {}) => {
|
|
7491
7491
|
const { resetUserPasswordApi: n } = oe();
|
|
7492
|
-
return
|
|
7492
|
+
return le({
|
|
7493
7493
|
mutationKey: ["resetUserPassword"],
|
|
7494
7494
|
mutationFn: async (t) => n(t),
|
|
7495
7495
|
...e
|
|
7496
7496
|
});
|
|
7497
|
-
},
|
|
7497
|
+
}, Fo = ({ options: e } = {}) => {
|
|
7498
7498
|
const { setUserTransactionPasswordApi: n } = oe();
|
|
7499
|
-
return
|
|
7499
|
+
return le({
|
|
7500
7500
|
mutationKey: ["setUserTransactionPassword"],
|
|
7501
7501
|
mutationFn: async (t) => n(t),
|
|
7502
7502
|
...e
|
|
7503
7503
|
});
|
|
7504
|
-
},
|
|
7504
|
+
}, Ao = ({ options: e } = {}) => {
|
|
7505
7505
|
const { resetUserTransactionPasswordApi: n } = oe();
|
|
7506
|
-
return
|
|
7506
|
+
return le({
|
|
7507
7507
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7508
7508
|
mutationFn: async (t) => n(t),
|
|
7509
7509
|
...e
|
|
7510
7510
|
});
|
|
7511
|
-
},
|
|
7512
|
-
const { userRebateApi: t } = oe(), { getToken: l } =
|
|
7511
|
+
}, Oo = ({ paramsData: e, options: n } = {}) => {
|
|
7512
|
+
const { userRebateApi: t } = oe(), { getToken: l } = me();
|
|
7513
7513
|
return l?.(), j({
|
|
7514
7514
|
queryKey: ["userRebate", e],
|
|
7515
7515
|
queryFn: async () => t({ paramsData: e }),
|
|
7516
7516
|
enabled: !1,
|
|
7517
7517
|
...n
|
|
7518
7518
|
});
|
|
7519
|
-
},
|
|
7519
|
+
}, Bo = ({ options: e } = {}) => {
|
|
7520
7520
|
const { userBindBankApi: n } = oe();
|
|
7521
|
-
return
|
|
7521
|
+
return le({
|
|
7522
7522
|
mutationKey: ["userBindBank"],
|
|
7523
7523
|
mutationFn: async (t) => n({ formData: t }),
|
|
7524
7524
|
...e
|
|
7525
7525
|
});
|
|
7526
|
-
},
|
|
7526
|
+
}, Ho = ({ options: e } = {}) => {
|
|
7527
7527
|
const { transferInGameApi: n } = oe();
|
|
7528
|
-
return
|
|
7528
|
+
return le({
|
|
7529
7529
|
mutationKey: ["transferInGame"],
|
|
7530
7530
|
mutationFn: async (t) => n(t),
|
|
7531
7531
|
retry: !1,
|
|
7532
7532
|
...e
|
|
7533
7533
|
});
|
|
7534
|
-
},
|
|
7535
|
-
const { currency: n } =
|
|
7536
|
-
return
|
|
7534
|
+
}, Dm = ({ options: e } = {}) => {
|
|
7535
|
+
const { currency: n } = me(), { pointTransferApi: t } = oe();
|
|
7536
|
+
return le({
|
|
7537
7537
|
mutationKey: ["pointTransfer"],
|
|
7538
7538
|
mutationFn: async (l) => t({
|
|
7539
7539
|
...l,
|
|
@@ -7541,8 +7541,8 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7541
7541
|
}),
|
|
7542
7542
|
...e
|
|
7543
7543
|
});
|
|
7544
|
-
},
|
|
7545
|
-
const { currency: n } =
|
|
7544
|
+
}, Em = ({ options: e } = {}) => {
|
|
7545
|
+
const { currency: n } = me(), { checkUserWagerApi: t } = oe();
|
|
7546
7546
|
return j({
|
|
7547
7547
|
queryKey: ["checkUserWager"],
|
|
7548
7548
|
queryFn: async () => t(),
|
|
@@ -7554,9 +7554,9 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7554
7554
|
},
|
|
7555
7555
|
...e
|
|
7556
7556
|
});
|
|
7557
|
-
},
|
|
7557
|
+
}, Nm = ({ options: e } = {}) => {
|
|
7558
7558
|
const n = fi(), { abandonPointsApi: t } = oe();
|
|
7559
|
-
return
|
|
7559
|
+
return le({
|
|
7560
7560
|
mutationKey: ["abandonPoint"],
|
|
7561
7561
|
mutationFn: async (l) => t({
|
|
7562
7562
|
...l
|
|
@@ -7568,130 +7568,132 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7568
7568
|
});
|
|
7569
7569
|
}, il = ({ options: e } = {}) => {
|
|
7570
7570
|
const { lineLoginApi: n } = oe();
|
|
7571
|
-
return
|
|
7571
|
+
return le({
|
|
7572
7572
|
mutationKey: ["lineLogin"],
|
|
7573
7573
|
mutationFn: async (t) => n(t),
|
|
7574
7574
|
...e
|
|
7575
7575
|
});
|
|
7576
|
-
},
|
|
7576
|
+
}, Wo = ({ options: e } = {}) => {
|
|
7577
7577
|
const { lineLogin2Api: n } = oe();
|
|
7578
|
-
return
|
|
7578
|
+
return le({
|
|
7579
7579
|
mutationKey: ["lineLogin"],
|
|
7580
7580
|
mutationFn: async (t) => n(t),
|
|
7581
7581
|
...e
|
|
7582
7582
|
});
|
|
7583
|
-
},
|
|
7583
|
+
}, zo = ({ options: e, formData: n } = {}) => {
|
|
7584
7584
|
const { getMachineLoginCodeApi: t } = oe();
|
|
7585
7585
|
return j({
|
|
7586
7586
|
queryKey: ["getMachineLoginCode"],
|
|
7587
7587
|
queryFn: async () => t(n),
|
|
7588
7588
|
...e
|
|
7589
7589
|
});
|
|
7590
|
-
},
|
|
7591
|
-
const { currency: n } =
|
|
7592
|
-
return
|
|
7590
|
+
}, Lm = ({ options: e } = {}) => {
|
|
7591
|
+
const { currency: n } = me(), { memberTransferApi: t } = oe();
|
|
7592
|
+
return le({
|
|
7593
7593
|
mutationKey: ["memberTransfer"],
|
|
7594
7594
|
mutationFn: async (l) => t({ ...l, currency: n }),
|
|
7595
7595
|
...e
|
|
7596
7596
|
});
|
|
7597
|
-
},
|
|
7597
|
+
}, Gm = ({ options: e } = {}) => {
|
|
7598
7598
|
const { mobileLoginApi: n } = oe();
|
|
7599
|
-
return
|
|
7599
|
+
return le({
|
|
7600
7600
|
mutationKey: ["mobileLogin"],
|
|
7601
7601
|
mutationFn: async (t) => n(t),
|
|
7602
7602
|
...e
|
|
7603
7603
|
});
|
|
7604
|
-
},
|
|
7604
|
+
}, Mm = ({ options: e } = {}) => {
|
|
7605
7605
|
const { mobileLoginApiV2: n } = oe();
|
|
7606
|
-
return
|
|
7606
|
+
return le({
|
|
7607
7607
|
mutationKey: ["mobileLoginV2"],
|
|
7608
7608
|
mutationFn: async (t) => n(t),
|
|
7609
7609
|
...e
|
|
7610
7610
|
});
|
|
7611
|
-
},
|
|
7611
|
+
}, Rm = ({ options: e } = {}) => {
|
|
7612
7612
|
const { mobileRegisterApi: n } = oe();
|
|
7613
|
-
return
|
|
7613
|
+
return le({
|
|
7614
7614
|
mutationKey: ["mobileRegister"],
|
|
7615
7615
|
mutationFn: async (t) => n(t),
|
|
7616
7616
|
...e
|
|
7617
7617
|
});
|
|
7618
|
-
},
|
|
7618
|
+
}, Io = ({ options: e } = {}) => {
|
|
7619
7619
|
const { bindAccountApi: n } = oe();
|
|
7620
|
-
return
|
|
7620
|
+
return le({
|
|
7621
7621
|
mutationKey: ["bindAccount"],
|
|
7622
7622
|
mutationFn: async (t) => n(t),
|
|
7623
7623
|
...e
|
|
7624
7624
|
});
|
|
7625
|
-
},
|
|
7625
|
+
}, Pm = ({ options: e } = {}) => {
|
|
7626
7626
|
const { sendMobileVerifyCodeApi: n } = oe();
|
|
7627
|
-
return
|
|
7627
|
+
return le({
|
|
7628
7628
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7629
7629
|
mutationFn: async (t) => n(t),
|
|
7630
7630
|
...e
|
|
7631
7631
|
});
|
|
7632
|
-
},
|
|
7632
|
+
}, wm = ({ options: e, paramsData: n } = {}) => {
|
|
7633
7633
|
const { verifyPhoneBarApi: t } = Ha();
|
|
7634
7634
|
return j({
|
|
7635
7635
|
queryKey: ["verifyPhoneBar", n],
|
|
7636
7636
|
queryFn: async () => t(n),
|
|
7637
7637
|
...e
|
|
7638
7638
|
});
|
|
7639
|
-
},
|
|
7639
|
+
}, Fm = ({ options: e, paramsData: n } = {}) => {
|
|
7640
7640
|
const { verifyDonationCodeApi: t } = Ha();
|
|
7641
7641
|
return j({
|
|
7642
7642
|
queryKey: ["verifyDonationCode", n],
|
|
7643
7643
|
queryFn: async () => t(n),
|
|
7644
7644
|
...e
|
|
7645
7645
|
});
|
|
7646
|
-
},
|
|
7646
|
+
}, Am = ({ options: e } = {}) => {
|
|
7647
7647
|
const { verifyResetActionApi: n } = oe();
|
|
7648
|
-
return
|
|
7648
|
+
return le({
|
|
7649
7649
|
mutationKey: ["verifyResetAction"],
|
|
7650
7650
|
mutationFn: async (t) => n(t),
|
|
7651
7651
|
...e
|
|
7652
7652
|
});
|
|
7653
|
-
},
|
|
7653
|
+
}, Om = ({ options: e, bonusData: n } = {}) => {
|
|
7654
7654
|
const { getJackpotApi: t } = oe();
|
|
7655
7655
|
return j({
|
|
7656
7656
|
queryKey: ["getJackpotData"],
|
|
7657
7657
|
queryFn: async () => t(),
|
|
7658
7658
|
select: (l) => {
|
|
7659
|
-
const p =
|
|
7659
|
+
const p = re(l, "data", {
|
|
7660
7660
|
MAJOR: 0,
|
|
7661
7661
|
MINOR: 0,
|
|
7662
7662
|
MINI: 0,
|
|
7663
7663
|
GRAND: 0,
|
|
7664
7664
|
MEGA: 0
|
|
7665
7665
|
});
|
|
7666
|
-
return n ?
|
|
7667
|
-
b.amount =
|
|
7666
|
+
return n ? Wl(n, (b, d) => {
|
|
7667
|
+
b.amount = re(p, d, 0) + Math.floor(Math.random() * 1e3);
|
|
7668
7668
|
}) : p;
|
|
7669
7669
|
},
|
|
7670
7670
|
...e
|
|
7671
7671
|
});
|
|
7672
|
-
},
|
|
7672
|
+
}, Bm = ({ options: e } = {}) => {
|
|
7673
7673
|
const { getBetRankingApi: n } = oe();
|
|
7674
7674
|
return j({
|
|
7675
7675
|
queryKey: ["getBetRankingData"],
|
|
7676
7676
|
queryFn: async () => n(),
|
|
7677
7677
|
...e
|
|
7678
7678
|
});
|
|
7679
|
-
},
|
|
7679
|
+
}, Hm = ({ options: e } = {}) => {
|
|
7680
7680
|
const { getUserAvatarListApi: n } = oe();
|
|
7681
7681
|
return j({
|
|
7682
7682
|
queryKey: ["getAvatarList"],
|
|
7683
7683
|
queryFn: async () => n(),
|
|
7684
|
-
select: (
|
|
7684
|
+
// select: (data) => {
|
|
7685
|
+
// return filter(get(data, 'data', []), (item) => item.unlock);
|
|
7686
|
+
// },
|
|
7685
7687
|
...e
|
|
7686
7688
|
});
|
|
7687
|
-
},
|
|
7689
|
+
}, Wm = ({ options: e } = {}) => {
|
|
7688
7690
|
const { updateUserAvatarApi: n } = oe();
|
|
7689
|
-
return
|
|
7691
|
+
return le({
|
|
7690
7692
|
mutationKey: ["updateAvatar"],
|
|
7691
7693
|
mutationFn: async (t) => n(t),
|
|
7692
7694
|
...e
|
|
7693
7695
|
});
|
|
7694
|
-
},
|
|
7696
|
+
}, zm = ({
|
|
7695
7697
|
options: e = {
|
|
7696
7698
|
login: {},
|
|
7697
7699
|
logout: {},
|
|
@@ -7705,15 +7707,15 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7705
7707
|
userBindCard: {}
|
|
7706
7708
|
}
|
|
7707
7709
|
} = {}) => {
|
|
7708
|
-
const n =
|
|
7710
|
+
const n = Lo({ options: e.login }), t = Go({ options: e.logout }), l = Mo({ options: e.register }), p = Po({ options: e.updateUserInfo }), g = Ro({
|
|
7709
7711
|
options: e.toggleFavoriteGame
|
|
7710
|
-
}), b =
|
|
7712
|
+
}), b = wo({
|
|
7711
7713
|
options: e.resetUserPassword
|
|
7712
|
-
}), d =
|
|
7714
|
+
}), d = Fo({
|
|
7713
7715
|
options: e.setUserTransactionPassword
|
|
7714
|
-
}), r =
|
|
7716
|
+
}), r = Ao({
|
|
7715
7717
|
options: e.resetUserTransactionPassword
|
|
7716
|
-
}), a =
|
|
7718
|
+
}), a = Oo({ options: e.userRebate }), i = Bo({ options: e.userBindCard });
|
|
7717
7719
|
return {
|
|
7718
7720
|
login: n,
|
|
7719
7721
|
logout: t,
|
|
@@ -7726,7 +7728,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7726
7728
|
userRebate: a,
|
|
7727
7729
|
userBindCard: i
|
|
7728
7730
|
};
|
|
7729
|
-
},
|
|
7731
|
+
}, Ie = {
|
|
7730
7732
|
DEPOSIT: "deposit",
|
|
7731
7733
|
TRANS_CODE: "transCode",
|
|
7732
7734
|
ERROR: "error",
|
|
@@ -7740,7 +7742,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7740
7742
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7741
7743
|
GAME_MAINTAIN: "game_maintain",
|
|
7742
7744
|
LINE_LOGIN: "line_login"
|
|
7743
|
-
},
|
|
7745
|
+
}, Vo = 3e4, Im = ({
|
|
7744
7746
|
socketUrl: e,
|
|
7745
7747
|
socketHandlers: n = {},
|
|
7746
7748
|
options: t = {},
|
|
@@ -7754,9 +7756,9 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7754
7756
|
enableNotification: g = !1,
|
|
7755
7757
|
disabledLineAutoRegister: b = !1
|
|
7756
7758
|
}) => {
|
|
7757
|
-
const { store: d, lng: r } =
|
|
7758
|
-
|
|
7759
|
-
const _ = new URLSearchParams(window.location.search), U =
|
|
7759
|
+
const { store: d, lng: r } = me(), a = fi(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Jn(), m = Qe(r), c = ee(!1), f = ee(n), y = re(l, "uid", null);
|
|
7760
|
+
re(l, "testFunction", 0);
|
|
7761
|
+
const _ = new URLSearchParams(window.location.search), U = re(
|
|
7760
7762
|
p,
|
|
7761
7763
|
"enableTransferInGaming",
|
|
7762
7764
|
!1
|
|
@@ -7767,7 +7769,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7767
7769
|
},
|
|
7768
7770
|
retry: !1
|
|
7769
7771
|
}
|
|
7770
|
-
}), { mutateAsync: v } =
|
|
7772
|
+
}), { mutateAsync: v } = Wo({
|
|
7771
7773
|
options: {
|
|
7772
7774
|
onSuccess: (w) => {
|
|
7773
7775
|
f.current.onLineLogin?.(w);
|
|
@@ -7776,12 +7778,12 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7776
7778
|
b || C(R);
|
|
7777
7779
|
}
|
|
7778
7780
|
}
|
|
7779
|
-
}), { handleTransferInGame: D } =
|
|
7781
|
+
}), { handleTransferInGame: D } = No({
|
|
7780
7782
|
enable: U,
|
|
7781
7783
|
isTestFunction: !0,
|
|
7782
|
-
isTransferMode:
|
|
7783
|
-
isInGameBox:
|
|
7784
|
-
currentGamePlatform:
|
|
7784
|
+
isTransferMode: re(p, "isTransferMode", !1),
|
|
7785
|
+
isInGameBox: re(p, "isInGameBox", !1),
|
|
7786
|
+
currentGamePlatform: re(p, "currentGamePlatform", "")
|
|
7785
7787
|
}), {
|
|
7786
7788
|
sendMessage: E,
|
|
7787
7789
|
// 發送普通訊息
|
|
@@ -7793,7 +7795,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7793
7795
|
readyState: k
|
|
7794
7796
|
// WebSocket 連線狀態
|
|
7795
7797
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
7796
|
-
} =
|
|
7798
|
+
} = Eo(e, {
|
|
7797
7799
|
queryParams: { key: "wsky" },
|
|
7798
7800
|
onOpen: () => console.log("連線成功"),
|
|
7799
7801
|
shouldReconnect: () => c.current === !1,
|
|
@@ -7810,7 +7812,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7810
7812
|
ge(() => {
|
|
7811
7813
|
const w = setInterval(
|
|
7812
7814
|
() => E("ping"),
|
|
7813
|
-
|
|
7815
|
+
Vo
|
|
7814
7816
|
);
|
|
7815
7817
|
return () => clearInterval(w);
|
|
7816
7818
|
}, [E]);
|
|
@@ -7846,62 +7848,62 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7846
7848
|
onTransferInGame: M,
|
|
7847
7849
|
onCashRegisterLimit: S,
|
|
7848
7850
|
onLineLogin: x
|
|
7849
|
-
} = f.current, L =
|
|
7850
|
-
memberInfoUid:
|
|
7851
|
-
data:
|
|
7852
|
-
memo:
|
|
7853
|
-
amount:
|
|
7854
|
-
limitAmount:
|
|
7855
|
-
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie =
|
|
7851
|
+
} = f.current, L = re(h, "type", ""), N = {
|
|
7852
|
+
memberInfoUid: re(h, "member_info_uid", null),
|
|
7853
|
+
data: re(h, "data", null),
|
|
7854
|
+
memo: re(h, "memo", null),
|
|
7855
|
+
amount: re(h, "amount", null),
|
|
7856
|
+
limitAmount: re(h, "limit_amount", null)
|
|
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);
|
|
7856
7858
|
switch (L) {
|
|
7857
|
-
case
|
|
7859
|
+
case Ie.DEPOSIT:
|
|
7858
7860
|
Z && (D(), w?.(N));
|
|
7859
7861
|
break;
|
|
7860
|
-
case
|
|
7862
|
+
case Ie.TRANS_CODE:
|
|
7861
7863
|
R?.(N);
|
|
7862
7864
|
break;
|
|
7863
|
-
case
|
|
7865
|
+
case Ie.ERROR:
|
|
7864
7866
|
if (Z) {
|
|
7865
|
-
const
|
|
7867
|
+
const se = re(h, "open_game_modal", 0) === 1;
|
|
7866
7868
|
F(q, {
|
|
7867
|
-
notificationType:
|
|
7869
|
+
notificationType: se ? "gamingNotice" : void 0
|
|
7868
7870
|
}), P?.(N);
|
|
7869
7871
|
}
|
|
7870
7872
|
break;
|
|
7871
|
-
case
|
|
7873
|
+
case Ie.UPDATE_MEMBER:
|
|
7872
7874
|
y && (a.invalidateQueries({
|
|
7873
7875
|
queryKey: ["getMemberInfo"]
|
|
7874
7876
|
}), H?.(N));
|
|
7875
7877
|
break;
|
|
7876
|
-
case
|
|
7878
|
+
case Ie.MAINTAIN_NOTICE:
|
|
7877
7879
|
F(q, {
|
|
7878
7880
|
notificationType: "maintainNotice"
|
|
7879
7881
|
}), B?.(N);
|
|
7880
7882
|
break;
|
|
7881
|
-
case
|
|
7883
|
+
case Ie.MAINTAIN_NOTICE_MEMBER:
|
|
7882
7884
|
Z && (F(q), W?.(N), setTimeout(() => {
|
|
7883
7885
|
window.location.reload();
|
|
7884
7886
|
}, 5e4));
|
|
7885
7887
|
break;
|
|
7886
|
-
case
|
|
7888
|
+
case Ie.RELOAD:
|
|
7887
7889
|
window.location.reload();
|
|
7888
7890
|
break;
|
|
7889
|
-
case
|
|
7890
|
-
case
|
|
7891
|
-
if (Z && U) {
|
|
7892
|
-
const { request_id:
|
|
7891
|
+
case Ie.TRANSFER_IN_GAME:
|
|
7892
|
+
case Ie.CHECK_REQUEST:
|
|
7893
|
+
if (console.log(Z, U, "isForMember之前"), Z && U) {
|
|
7894
|
+
const { request_id: se, amount: ce, platform: ke, status: fe } = re(
|
|
7893
7895
|
N,
|
|
7894
7896
|
"data",
|
|
7895
7897
|
{}
|
|
7896
|
-
),
|
|
7898
|
+
), He = localStorage.getItem(
|
|
7897
7899
|
"transfer_in_game_request_id"
|
|
7898
7900
|
);
|
|
7899
|
-
if (s) {
|
|
7900
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7901
|
+
if (console.log(se, ce, ke, fe, "request_id"), s) {
|
|
7902
|
+
localStorage.setItem("transfer_in_game_request_id", se);
|
|
7901
7903
|
return;
|
|
7902
|
-
} else if (
|
|
7903
|
-
if (
|
|
7904
|
-
D();
|
|
7904
|
+
} else if (console.log(He, se, "currentRequestId"), He && He === se) {
|
|
7905
|
+
if (fe === "rollback") {
|
|
7906
|
+
console.log("rollback"), D();
|
|
7905
7907
|
return;
|
|
7906
7908
|
}
|
|
7907
7909
|
localStorage.removeItem("transfer_in_game_request_id"), o(), d.dispatch({
|
|
@@ -7916,27 +7918,27 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7916
7918
|
M?.(N);
|
|
7917
7919
|
}
|
|
7918
7920
|
break;
|
|
7919
|
-
case
|
|
7921
|
+
case Ie.CASH_REGISTER_LIMIT:
|
|
7920
7922
|
F(q, {
|
|
7921
7923
|
notificationType: "cashRegisterLimit",
|
|
7922
7924
|
amount: Q,
|
|
7923
7925
|
limitAmount: K
|
|
7924
7926
|
}), S?.(N);
|
|
7925
7927
|
break;
|
|
7926
|
-
case
|
|
7928
|
+
case Ie.UPDATE_ONLY_ONE_MEMBER:
|
|
7927
7929
|
Z && (a.invalidateQueries({
|
|
7928
7930
|
queryKey: ["getMemberInfo"]
|
|
7929
7931
|
}), H?.(N));
|
|
7930
7932
|
break;
|
|
7931
|
-
case
|
|
7933
|
+
case Ie.GAME_MAINTAIN:
|
|
7932
7934
|
F(q, {
|
|
7933
7935
|
notificationType: "gameMaintain"
|
|
7934
7936
|
});
|
|
7935
7937
|
break;
|
|
7936
|
-
case
|
|
7937
|
-
|
|
7938
|
+
case Ie.LINE_LOGIN:
|
|
7939
|
+
Ue === ae && C({
|
|
7938
7940
|
line_id: ie,
|
|
7939
|
-
line_name:
|
|
7941
|
+
line_name: ye
|
|
7940
7942
|
});
|
|
7941
7943
|
break;
|
|
7942
7944
|
default:
|
|
@@ -7953,14 +7955,16 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7953
7955
|
s,
|
|
7954
7956
|
D,
|
|
7955
7957
|
U,
|
|
7956
|
-
o
|
|
7958
|
+
o,
|
|
7959
|
+
_,
|
|
7960
|
+
C
|
|
7957
7961
|
]), ge(() => () => c.current = !0, []), ge(() => {
|
|
7958
7962
|
if (U) {
|
|
7959
7963
|
const w = localStorage.getItem(
|
|
7960
7964
|
"transfer_in_game_request_id"
|
|
7961
7965
|
);
|
|
7962
7966
|
w && y && s && G({
|
|
7963
|
-
type:
|
|
7967
|
+
type: Ie.CHECK_REQUEST,
|
|
7964
7968
|
request_id: w,
|
|
7965
7969
|
member_info_uid: y
|
|
7966
7970
|
});
|
|
@@ -7972,7 +7976,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7972
7976
|
// WebSocket 連線狀態
|
|
7973
7977
|
};
|
|
7974
7978
|
}, Ya = () => {
|
|
7975
|
-
const { client: e } =
|
|
7979
|
+
const { client: e } = me(), n = I(
|
|
7976
7980
|
async ({ paramsData: b } = {}) => {
|
|
7977
7981
|
const { uid: d } = b || {};
|
|
7978
7982
|
return await e.get(`/event/list${d ? `/${d}` : ""}`);
|
|
@@ -8014,8 +8018,8 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8014
8018
|
redeemEventRewardApi: l,
|
|
8015
8019
|
settleEventApi: g
|
|
8016
8020
|
};
|
|
8017
|
-
},
|
|
8018
|
-
const { store: t, lng: l, data2URL: p } =
|
|
8021
|
+
}, Jo = ({ paramsData: e, options: n } = {}) => {
|
|
8022
|
+
const { store: t, lng: l, data2URL: p } = me(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
|
|
8019
8023
|
return j({
|
|
8020
8024
|
queryKey: ["eventList", e],
|
|
8021
8025
|
queryFn: () => g({ paramsData: e }),
|
|
@@ -8025,7 +8029,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8025
8029
|
const { events_attributes: s } = o, u = $e(
|
|
8026
8030
|
s,
|
|
8027
8031
|
(v) => v.attribute_currency === b
|
|
8028
|
-
) || s[0], m =
|
|
8032
|
+
) || s[0], m = re(u, "rewards", {}), c = re(o, "carousels.[0]", {}), f = $e(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
|
|
8029
8033
|
...c,
|
|
8030
8034
|
currentLngCarousel: {
|
|
8031
8035
|
...f,
|
|
@@ -8131,21 +8135,21 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8131
8135
|
},
|
|
8132
8136
|
...n
|
|
8133
8137
|
});
|
|
8134
|
-
},
|
|
8138
|
+
}, Vm = ({ options: e } = {}) => {
|
|
8135
8139
|
const { redeemEventRewardApi: n } = Ya();
|
|
8136
|
-
return
|
|
8140
|
+
return le({
|
|
8137
8141
|
mutationKey: ["redeemEventReward"],
|
|
8138
8142
|
mutationFn: async (t) => n(t),
|
|
8139
8143
|
...e
|
|
8140
8144
|
});
|
|
8141
|
-
},
|
|
8145
|
+
}, Zo = ({ options: e, formData: n } = {}) => {
|
|
8142
8146
|
const { checkCurrentEventProgessApi: t } = Ya();
|
|
8143
8147
|
return j({
|
|
8144
8148
|
queryKey: ["checkEventProgress"],
|
|
8145
8149
|
queryFn: async () => t(n),
|
|
8146
8150
|
...e
|
|
8147
8151
|
});
|
|
8148
|
-
},
|
|
8152
|
+
}, Ko = ({ options: e, formData: n } = {}) => {
|
|
8149
8153
|
const { checkEventStatusApi: t } = Ya();
|
|
8150
8154
|
return j({
|
|
8151
8155
|
queryKey: ["checkEventStatus"],
|
|
@@ -8153,23 +8157,23 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8153
8157
|
select: (l) => l.data.event_status,
|
|
8154
8158
|
...e
|
|
8155
8159
|
});
|
|
8156
|
-
},
|
|
8160
|
+
}, Jm = ({ options: e } = {}) => {
|
|
8157
8161
|
const { settleEventApi: n } = Ya();
|
|
8158
|
-
return
|
|
8162
|
+
return le({
|
|
8159
8163
|
mutationKey: ["settleEvent"],
|
|
8160
8164
|
mutationFn: async (t) => n(t),
|
|
8161
8165
|
...e
|
|
8162
8166
|
});
|
|
8163
|
-
},
|
|
8167
|
+
}, Zm = ({
|
|
8164
8168
|
options: e = {
|
|
8165
8169
|
eventList: {},
|
|
8166
8170
|
checkEventProgress: {},
|
|
8167
8171
|
checkEventStatus: {}
|
|
8168
8172
|
}
|
|
8169
8173
|
} = {}) => {
|
|
8170
|
-
const n =
|
|
8174
|
+
const n = Jo({ options: e.eventList }), t = Zo({
|
|
8171
8175
|
options: e.checkEventProgress
|
|
8172
|
-
}), l =
|
|
8176
|
+
}), l = Ko({
|
|
8173
8177
|
options: e.checkEventStatus
|
|
8174
8178
|
});
|
|
8175
8179
|
return {
|
|
@@ -8177,8 +8181,8 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8177
8181
|
checkEventProgressQuery: t,
|
|
8178
8182
|
checkEventStatusQuery: l
|
|
8179
8183
|
};
|
|
8180
|
-
},
|
|
8181
|
-
const { lng: n, data2URL: t } =
|
|
8184
|
+
}, Km = ({ skipPreload: e = !1 } = {}) => {
|
|
8185
|
+
const { lng: n, data2URL: t } = me(), { commonCarouselApi: l } = Ha(), p = Qe(n);
|
|
8182
8186
|
return j({
|
|
8183
8187
|
queryKey: ["getCarouselList", e],
|
|
8184
8188
|
queryFn: async () => {
|
|
@@ -8205,8 +8209,8 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8205
8209
|
};
|
|
8206
8210
|
})
|
|
8207
8211
|
});
|
|
8208
|
-
},
|
|
8209
|
-
const { lng: e } =
|
|
8212
|
+
}, qm = () => {
|
|
8213
|
+
const { lng: e } = me(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
|
|
8210
8214
|
return j({
|
|
8211
8215
|
queryKey: ["getMarqueeList"],
|
|
8212
8216
|
queryFn: async () => {
|
|
@@ -8218,7 +8222,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8218
8222
|
return Be(p, (b) => b[t] || b?.en_US);
|
|
8219
8223
|
}
|
|
8220
8224
|
});
|
|
8221
|
-
},
|
|
8225
|
+
}, $m = ({ options: e } = {}) => {
|
|
8222
8226
|
const { rankingGameApi: n } = oe();
|
|
8223
8227
|
return j({
|
|
8224
8228
|
queryKey: ["rankingGame"],
|
|
@@ -8260,10 +8264,10 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8260
8264
|
...e
|
|
8261
8265
|
});
|
|
8262
8266
|
};
|
|
8263
|
-
var
|
|
8264
|
-
if (n && typeof n == "object" || typeof n == "function") for (let p of
|
|
8267
|
+
var qo = Object.create, nl = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, Qo = Object.getOwnPropertyNames, jo = Object.getPrototypeOf, Yo = Object.prototype.hasOwnProperty, Xo = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), es = (e, n, t, l) => {
|
|
8268
|
+
if (n && typeof n == "object" || typeof n == "function") for (let p of Qo(n)) !Yo.call(e, p) && p !== t && nl(e, p, { get: () => n[p], enumerable: !(l = $o(n, p)) || l.enumerable });
|
|
8265
8269
|
return e;
|
|
8266
|
-
},
|
|
8270
|
+
}, as = (e, n, t) => (t = e != null ? qo(jo(e)) : {}, es(!e || !e.__esModule ? nl(t, "default", { value: e, enumerable: !0 }) : t, e)), ts = Xo((e, n) => {
|
|
8267
8271
|
(function(t, l) {
|
|
8268
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 = {}));
|
|
8269
8273
|
})(e, function(t) {
|
|
@@ -8292,12 +8296,12 @@ var $o = Object.create, nl = Object.defineProperty, Qo = Object.getOwnPropertyDe
|
|
|
8292
8296
|
t.addUniqueNumber = s, t.generateUniqueNumber = o;
|
|
8293
8297
|
});
|
|
8294
8298
|
});
|
|
8295
|
-
ts(
|
|
8299
|
+
as(ts());
|
|
8296
8300
|
var pa = (typeof window > "u" ? "undefined" : typeof window) == "object", Xe = { setTimeout: pa ? setTimeout.bind(window) : setTimeout, clearTimeout: pa ? clearTimeout.bind(window) : clearTimeout, setInterval: pa ? setInterval.bind(window) : setInterval, clearInterval: pa ? clearInterval.bind(window) : clearInterval };
|
|
8297
|
-
function
|
|
8301
|
+
function is(e) {
|
|
8298
8302
|
Xe.setTimeout = e.setTimeout, Xe.clearTimeout = e.clearTimeout, Xe.setInterval = e.setInterval, Xe.clearInterval = e.clearInterval;
|
|
8299
8303
|
}
|
|
8300
|
-
var wa = {},
|
|
8304
|
+
var wa = {}, ns = class {
|
|
8301
8305
|
name;
|
|
8302
8306
|
closed = !1;
|
|
8303
8307
|
mc = new MessageChannel();
|
|
@@ -8345,14 +8349,14 @@ var wa = {}, ls = class {
|
|
|
8345
8349
|
dispatchEvent(e) {
|
|
8346
8350
|
return this.mc.port1.dispatchEvent(e);
|
|
8347
8351
|
}
|
|
8348
|
-
},
|
|
8349
|
-
function
|
|
8352
|
+
}, ls = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : ns;
|
|
8353
|
+
function rs(e = 0) {
|
|
8350
8354
|
return new Promise((n) => Xe.setTimeout(n, e));
|
|
8351
8355
|
}
|
|
8352
8356
|
function ll() {
|
|
8353
8357
|
return Math.random().toString(36).substring(2);
|
|
8354
8358
|
}
|
|
8355
|
-
var
|
|
8359
|
+
var os = class {
|
|
8356
8360
|
options;
|
|
8357
8361
|
channel;
|
|
8358
8362
|
token = ll();
|
|
@@ -8376,7 +8380,7 @@ var ss = class {
|
|
|
8376
8380
|
};
|
|
8377
8381
|
this.channel.addEventListener("message", n);
|
|
8378
8382
|
try {
|
|
8379
|
-
return this.sendAction(0), await
|
|
8383
|
+
return this.sendAction(0), await rs(this.options.responseTime), this.channel.removeEventListener("message", n), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
|
|
8380
8384
|
} catch {
|
|
8381
8385
|
return !1;
|
|
8382
8386
|
}
|
|
@@ -8432,7 +8436,7 @@ var ss = class {
|
|
|
8432
8436
|
}
|
|
8433
8437
|
}
|
|
8434
8438
|
}
|
|
8435
|
-
},
|
|
8439
|
+
}, ss = class {
|
|
8436
8440
|
channel;
|
|
8437
8441
|
options;
|
|
8438
8442
|
elector;
|
|
@@ -8442,9 +8446,9 @@ var ss = class {
|
|
|
8442
8446
|
isLastActive = !1;
|
|
8443
8447
|
constructor(e) {
|
|
8444
8448
|
let { channelName: n } = e;
|
|
8445
|
-
if (this.options = e, this.channel = new
|
|
8449
|
+
if (this.options = e, this.channel = new ls(n), this.registry.set(this.token, 1), e.leaderElection) {
|
|
8446
8450
|
let t = { fallbackInterval: 2e3, responseTime: 100 };
|
|
8447
|
-
this.elector = new
|
|
8451
|
+
this.elector = new os(this.channel, t), this.elector.waitForLeadership();
|
|
8448
8452
|
}
|
|
8449
8453
|
this.channel.addEventListener("message", (t) => {
|
|
8450
8454
|
let { action: l, token: p, data: g } = t.data;
|
|
@@ -8534,8 +8538,8 @@ var ss = class {
|
|
|
8534
8538
|
close() {
|
|
8535
8539
|
this.options.leaderElection && this.elector.close(), this.send(4), this.channel.close();
|
|
8536
8540
|
}
|
|
8537
|
-
},
|
|
8538
|
-
function
|
|
8541
|
+
}, ms = pa ? document : null, us = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
8542
|
+
function ps(e, n) {
|
|
8539
8543
|
let t;
|
|
8540
8544
|
function l(...p) {
|
|
8541
8545
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -8554,7 +8558,7 @@ function ri(e, n) {
|
|
|
8554
8558
|
};
|
|
8555
8559
|
}
|
|
8556
8560
|
var Te = () => Date.now(), Fa = 2147483647;
|
|
8557
|
-
function
|
|
8561
|
+
function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: t = 0, element: l = ms, events: p = us, timers: g = void 0, immediateEvents: b = [], onPresenceChange: d = () => {
|
|
8558
8562
|
}, onPrompt: r = () => {
|
|
8559
8563
|
}, onIdle: a = () => {
|
|
8560
8564
|
}, onActive: i = () => {
|
|
@@ -8570,7 +8574,7 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8570
8574
|
if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8571
8575
|
if (t ? (L.current = e - t, N.current = t) : (L.current = e, N.current = n), !W.current) {
|
|
8572
8576
|
if (y || E) return;
|
|
8573
|
-
P.current && (
|
|
8577
|
+
P.current && (se.current(null, Se), x.current && x.current.active()), je();
|
|
8574
8578
|
}
|
|
8575
8579
|
}, [e, n, t, y, E]);
|
|
8576
8580
|
let Z = ee(_);
|
|
@@ -8585,17 +8589,17 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8585
8589
|
ge(() => {
|
|
8586
8590
|
ie.current = d;
|
|
8587
8591
|
}, [d]);
|
|
8588
|
-
let
|
|
8592
|
+
let ye = ee(r);
|
|
8589
8593
|
ge(() => {
|
|
8590
|
-
|
|
8594
|
+
ye.current = r;
|
|
8591
8595
|
}, [r]);
|
|
8592
|
-
let
|
|
8596
|
+
let Ue = ee(a);
|
|
8593
8597
|
ge(() => {
|
|
8594
|
-
|
|
8598
|
+
Ue.current = a;
|
|
8595
8599
|
}, [a]);
|
|
8596
|
-
let
|
|
8600
|
+
let se = ee(i);
|
|
8597
8601
|
ge(() => {
|
|
8598
|
-
|
|
8602
|
+
se.current = i;
|
|
8599
8603
|
}, [i]);
|
|
8600
8604
|
let ce = ee(o);
|
|
8601
8605
|
ge(() => {
|
|
@@ -8605,28 +8609,28 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8605
8609
|
ge(() => {
|
|
8606
8610
|
ke.current = s;
|
|
8607
8611
|
}, [s]);
|
|
8608
|
-
let
|
|
8612
|
+
let fe = Oa(() => {
|
|
8609
8613
|
let V = (De, ia) => ce.current(De, ia);
|
|
8610
|
-
return u > 0 ?
|
|
8611
|
-
}, [m, u]),
|
|
8614
|
+
return u > 0 ? ps(V, u) : m > 0 ? ri(V, m) : V;
|
|
8615
|
+
}, [m, u]), He = ee();
|
|
8612
8616
|
ge(() => {
|
|
8613
|
-
U && v && (
|
|
8617
|
+
U && v && (He.current = ri(() => {
|
|
8614
8618
|
x.current.active();
|
|
8615
8619
|
}, v));
|
|
8616
8620
|
}, [U, v]);
|
|
8617
8621
|
let Ce = () => {
|
|
8618
8622
|
S.current !== null && (Xe.clearTimeout(S.current), S.current = null);
|
|
8619
8623
|
}, Ge = (V, De = !0) => {
|
|
8620
|
-
Ce(), S.current = Xe.setTimeout(
|
|
8624
|
+
Ce(), S.current = Xe.setTimeout(We, V || L.current), De && (h.current = Te());
|
|
8621
8625
|
}, ea = (V) => {
|
|
8622
|
-
!H.current && !P.current && (
|
|
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);
|
|
8623
8627
|
}, Me = () => {
|
|
8624
|
-
Ce(), P.current || (
|
|
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);
|
|
8625
8629
|
}, ve = (V) => {
|
|
8626
|
-
Ce(), (P.current || H.current) && (
|
|
8627
|
-
},
|
|
8630
|
+
Ce(), (P.current || H.current) && (se.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
|
+
}, We = (V) => {
|
|
8628
8632
|
if (!P.current) {
|
|
8629
|
-
|
|
8633
|
+
fe.cancel && fe.cancel();
|
|
8630
8634
|
let De = Te() - h.current;
|
|
8631
8635
|
if (!(L.current + N.current < De) && N.current > 0 && !H.current) {
|
|
8632
8636
|
x.current ? x.current.prompt() : ea(V);
|
|
@@ -8637,17 +8641,17 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8637
8641
|
}
|
|
8638
8642
|
x.current ? x.current.active() : ve(V);
|
|
8639
8643
|
}, aa = (V) => {
|
|
8640
|
-
if (!f && !h.current && (h.current = Te(),
|
|
8644
|
+
if (!f && !h.current && (h.current = Te(), se.current(null, Se)), fe(V, Se), H.current) return;
|
|
8641
8645
|
if (Ce(), !P.current && q.current.includes(V.type)) {
|
|
8642
|
-
|
|
8646
|
+
We(V);
|
|
8643
8647
|
return;
|
|
8644
8648
|
}
|
|
8645
8649
|
let De = Te() - h.current;
|
|
8646
8650
|
if (P.current && !_ || !P.current && De >= L.current) {
|
|
8647
|
-
|
|
8651
|
+
We(V);
|
|
8648
8652
|
return;
|
|
8649
8653
|
}
|
|
8650
|
-
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 && He.current();
|
|
8651
8655
|
}, ta = ee(aa);
|
|
8652
8656
|
ge(() => {
|
|
8653
8657
|
let V = M.current;
|
|
@@ -8674,15 +8678,15 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8674
8678
|
}, [k, F]);
|
|
8675
8679
|
ge(() => {
|
|
8676
8680
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8677
|
-
g &&
|
|
8681
|
+
g && is(g);
|
|
8678
8682
|
let V = () => {
|
|
8679
|
-
x.current && x.current.close(),
|
|
8683
|
+
x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
|
|
8680
8684
|
};
|
|
8681
8685
|
return pa && window.addEventListener("beforeunload", V), () => {
|
|
8682
|
-
pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(),
|
|
8686
|
+
pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
|
|
8683
8687
|
};
|
|
8684
8688
|
}, []), ge(() => {
|
|
8685
|
-
x.current && x.current.close(), U ? x.current = new
|
|
8689
|
+
x.current && x.current.close(), U ? x.current = new ss({ channelName: C, leaderElection: D, onPrompt: () => {
|
|
8686
8690
|
ea();
|
|
8687
8691
|
}, onIdle: () => {
|
|
8688
8692
|
Me();
|
|
@@ -8691,7 +8695,7 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8691
8695
|
}, onMessage: (V) => {
|
|
8692
8696
|
ke.current(V, Se);
|
|
8693
8697
|
}, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye }) : x.current = null;
|
|
8694
|
-
}, [U, C, D,
|
|
8698
|
+
}, [U, C, D, ye, Ue, se, ke, je, oa, Ve, Ye]), ge(() => {
|
|
8695
8699
|
W.current || (Ce(), Re(!0)), !(y || E) && (f ? je() : xe());
|
|
8696
8700
|
}, [y, f, E, W]), ge(() => {
|
|
8697
8701
|
if (!W.current) {
|
|
@@ -8705,11 +8709,11 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8705
8709
|
let Se = { message: za, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye, isIdle: Da, isPrompted: Ea, isLeader: Ia, isLastActiveTab: Va, getTabId: da, getRemainingTime: ya, getElapsedTime: Ke, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Na, getIdleTime: La, getTotalIdleTime: Ua, getActiveTime: Ga, getTotalActiveTime: Ma, setOnPresenceChange: (V) => {
|
|
8706
8710
|
d = V, ie.current = V;
|
|
8707
8711
|
}, setOnPrompt: (V) => {
|
|
8708
|
-
r = V,
|
|
8712
|
+
r = V, ye.current = V;
|
|
8709
8713
|
}, setOnIdle: (V) => {
|
|
8710
|
-
a = V,
|
|
8714
|
+
a = V, Ue.current = V;
|
|
8711
8715
|
}, setOnActive: (V) => {
|
|
8712
|
-
i = V,
|
|
8716
|
+
i = V, se.current = V;
|
|
8713
8717
|
}, setOnAction: (V) => {
|
|
8714
8718
|
o = V, ce.current = V;
|
|
8715
8719
|
}, setOnMessage: (V) => {
|
|
@@ -8717,16 +8721,16 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8717
8721
|
} };
|
|
8718
8722
|
return Se;
|
|
8719
8723
|
}
|
|
8720
|
-
var
|
|
8721
|
-
|
|
8722
|
-
const
|
|
8724
|
+
var ds = qt(null);
|
|
8725
|
+
ds.Consumer;
|
|
8726
|
+
const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
8723
8727
|
onIdle: e,
|
|
8724
8728
|
onActive: n,
|
|
8725
8729
|
onAction: t,
|
|
8726
8730
|
timeout: l,
|
|
8727
8731
|
throttle: 500
|
|
8728
|
-
}),
|
|
8729
|
-
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } =
|
|
8732
|
+
}), cs = ({ options: e } = {}) => {
|
|
8733
|
+
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = me(), p = t?.(), g = Qe(l);
|
|
8730
8734
|
return j({
|
|
8731
8735
|
queryKey: ["inboxList"],
|
|
8732
8736
|
queryFn: async () => await n(),
|
|
@@ -8746,26 +8750,26 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8746
8750
|
enabled: !!p,
|
|
8747
8751
|
...e
|
|
8748
8752
|
});
|
|
8749
|
-
},
|
|
8753
|
+
}, fs = ({ options: e } = {}) => {
|
|
8750
8754
|
const { commonReadInboxApi: n } = Ha();
|
|
8751
|
-
return
|
|
8755
|
+
return le({
|
|
8752
8756
|
mutationKey: ["readInbox"],
|
|
8753
8757
|
mutationFn: async (t) => await n(t),
|
|
8754
8758
|
...e
|
|
8755
8759
|
});
|
|
8756
|
-
},
|
|
8760
|
+
}, jm = ({
|
|
8757
8761
|
options: e = {
|
|
8758
8762
|
inboxList: {},
|
|
8759
8763
|
readInbox: {}
|
|
8760
8764
|
}
|
|
8761
8765
|
} = {}) => {
|
|
8762
|
-
const n =
|
|
8766
|
+
const n = cs({ options: e.inboxList }), t = fs({ options: e.readInbox });
|
|
8763
8767
|
return {
|
|
8764
8768
|
inboxListQuery: n,
|
|
8765
8769
|
readInboxMutation: t
|
|
8766
8770
|
};
|
|
8767
8771
|
}, rl = () => {
|
|
8768
|
-
const { client: e } =
|
|
8772
|
+
const { client: e } = me();
|
|
8769
8773
|
return {
|
|
8770
8774
|
newsListApi: I(
|
|
8771
8775
|
async ({ uid: t, params: l } = {}) => await e.get(`/news${t ? `/${t}` : ""}`, {
|
|
@@ -8774,7 +8778,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8774
8778
|
[e]
|
|
8775
8779
|
)
|
|
8776
8780
|
};
|
|
8777
|
-
},
|
|
8781
|
+
}, _s = ({
|
|
8778
8782
|
typeConfig: e = {
|
|
8779
8783
|
all: {},
|
|
8780
8784
|
crypto: {},
|
|
@@ -8820,8 +8824,8 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8820
8824
|
value: "other",
|
|
8821
8825
|
...e.other
|
|
8822
8826
|
}
|
|
8823
|
-
],
|
|
8824
|
-
const { lng: t } =
|
|
8827
|
+
], Ym = ({ options: e, formData: n } = {}) => {
|
|
8828
|
+
const { lng: t } = me(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8825
8829
|
return j({
|
|
8826
8830
|
queryKey: ["newsList"],
|
|
8827
8831
|
queryFn: () => {
|
|
@@ -8841,13 +8845,13 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8841
8845
|
return {
|
|
8842
8846
|
...g.data,
|
|
8843
8847
|
data: r,
|
|
8844
|
-
blogType:
|
|
8848
|
+
blogType: _s({ typeConfig: e?.typeConfig })
|
|
8845
8849
|
};
|
|
8846
8850
|
},
|
|
8847
8851
|
...e
|
|
8848
8852
|
});
|
|
8849
|
-
},
|
|
8850
|
-
const { lng: t } =
|
|
8853
|
+
}, Xm = ({ options: e, formData: n } = {}) => {
|
|
8854
|
+
const { lng: t } = me(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8851
8855
|
return j({
|
|
8852
8856
|
queryKey: ["newsList"],
|
|
8853
8857
|
queryFn: () => {
|
|
@@ -8866,7 +8870,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8866
8870
|
...e
|
|
8867
8871
|
});
|
|
8868
8872
|
}, Ae = () => {
|
|
8869
|
-
const { client: e } =
|
|
8873
|
+
const { client: e } = me(), n = I(async () => await e.get("/payment/list"), [e]), t = I(
|
|
8870
8874
|
async ({ paramsData: m }) => await e.get("/thirdPartyPayment/list", {
|
|
8871
8875
|
params: { ...m }
|
|
8872
8876
|
}),
|
|
@@ -9035,14 +9039,14 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9035
9039
|
transactionRecordApi: s,
|
|
9036
9040
|
treasureRecordApi: u
|
|
9037
9041
|
};
|
|
9038
|
-
},
|
|
9042
|
+
}, ys = ({ options: e } = {}) => {
|
|
9039
9043
|
const { depositApiV1: n } = Ae();
|
|
9040
9044
|
return j({
|
|
9041
9045
|
queryKey: ["depositV1"],
|
|
9042
9046
|
queryFn: n,
|
|
9043
9047
|
...e
|
|
9044
9048
|
});
|
|
9045
|
-
},
|
|
9049
|
+
}, Us = ({ paramsData: e, options: n } = {}) => {
|
|
9046
9050
|
const { depositApiV2: t } = Ae();
|
|
9047
9051
|
return j({
|
|
9048
9052
|
queryKey: ["depositV2", e],
|
|
@@ -9067,105 +9071,105 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9067
9071
|
},
|
|
9068
9072
|
...n
|
|
9069
9073
|
});
|
|
9070
|
-
},
|
|
9074
|
+
}, bs = ({ options: e } = {}) => {
|
|
9071
9075
|
const { depositApi: n } = Ae();
|
|
9072
|
-
return
|
|
9076
|
+
return le({
|
|
9073
9077
|
mutationKey: ["depositAction"],
|
|
9074
9078
|
mutationFn: async (t) => n(t),
|
|
9075
9079
|
...e
|
|
9076
9080
|
});
|
|
9077
|
-
},
|
|
9081
|
+
}, Cs = ({ options: e } = {}) => {
|
|
9078
9082
|
const { withdrawApi: n } = Ae();
|
|
9079
|
-
return
|
|
9083
|
+
return le({
|
|
9080
9084
|
mutationKey: ["withdrawAction"],
|
|
9081
9085
|
mutationFn: async (t) => n(t),
|
|
9082
9086
|
...e
|
|
9083
9087
|
});
|
|
9084
|
-
},
|
|
9088
|
+
}, vs = ({ paramsData: e, options: n } = {}) => {
|
|
9085
9089
|
const { depositTransactionApi: t } = Ae();
|
|
9086
9090
|
return j({
|
|
9087
9091
|
queryKey: ["depositTransaction", e],
|
|
9088
9092
|
queryFn: () => t({ paramsData: e }),
|
|
9089
9093
|
...n
|
|
9090
9094
|
});
|
|
9091
|
-
},
|
|
9095
|
+
}, hs = ({ paramsData: e, options: n } = {}) => {
|
|
9092
9096
|
const { eventTransactionApi: t } = Ae();
|
|
9093
9097
|
return j({
|
|
9094
9098
|
queryKey: ["eventTransaction", e],
|
|
9095
9099
|
queryFn: () => t({ paramsData: e }),
|
|
9096
9100
|
...n
|
|
9097
9101
|
});
|
|
9098
|
-
},
|
|
9102
|
+
}, Ts = ({ options: e } = {}) => {
|
|
9099
9103
|
const { bankDepositApi: n } = Ae();
|
|
9100
|
-
return
|
|
9104
|
+
return le({
|
|
9101
9105
|
mutationKey: ["bankDeposit"],
|
|
9102
9106
|
mutationFn: async (t) => n(t),
|
|
9103
9107
|
...e
|
|
9104
9108
|
});
|
|
9105
|
-
},
|
|
9109
|
+
}, ks = ({ paramsData: e, options: n } = {}) => {
|
|
9106
9110
|
const { withdrawTransactionApi: t } = Ae();
|
|
9107
9111
|
return j({
|
|
9108
9112
|
queryKey: ["withdrawTransaction", e],
|
|
9109
9113
|
queryFn: () => t({ paramsData: e }),
|
|
9110
9114
|
...n
|
|
9111
9115
|
});
|
|
9112
|
-
},
|
|
9116
|
+
}, eu = ({ options: e } = {}) => {
|
|
9113
9117
|
const { redeemCodeDepositApi: n } = Ae();
|
|
9114
|
-
return
|
|
9118
|
+
return le({
|
|
9115
9119
|
mutationKey: ["redeemCodeDeposit"],
|
|
9116
9120
|
mutationFn: async (t) => n(t),
|
|
9117
9121
|
...e
|
|
9118
9122
|
});
|
|
9119
|
-
},
|
|
9123
|
+
}, au = ({ options: e } = {}) => {
|
|
9120
9124
|
const { invoiceApi: n } = Ae();
|
|
9121
|
-
return
|
|
9125
|
+
return le({
|
|
9122
9126
|
mutationKey: ["invoiceAction"],
|
|
9123
9127
|
mutationFn: async (t) => n(t),
|
|
9124
9128
|
...e
|
|
9125
9129
|
});
|
|
9126
|
-
},
|
|
9130
|
+
}, tu = ({ options: e } = {}) => {
|
|
9127
9131
|
const { updateInvoiceApi: n } = Ae();
|
|
9128
|
-
return
|
|
9132
|
+
return le({
|
|
9129
9133
|
mutationKey: ["updateInvoiceAction"],
|
|
9130
9134
|
mutationFn: async (t) => n(t),
|
|
9131
9135
|
...e
|
|
9132
9136
|
});
|
|
9133
|
-
},
|
|
9137
|
+
}, iu = ({ options: e, paramsData: n } = {}) => {
|
|
9134
9138
|
const { transactionRecordApi: t } = Ae();
|
|
9135
9139
|
return j({
|
|
9136
9140
|
queryKey: ["transactionRecord", "deposit"],
|
|
9137
9141
|
queryFn: () => t(n, "deposit"),
|
|
9138
9142
|
...e
|
|
9139
9143
|
});
|
|
9140
|
-
},
|
|
9144
|
+
}, nu = ({ options: e, paramsData: n } = {}) => {
|
|
9141
9145
|
const { transactionRecordApi: t } = Ae();
|
|
9142
9146
|
return j({
|
|
9143
9147
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9144
9148
|
queryFn: () => t(n, "withdraw"),
|
|
9145
9149
|
...e
|
|
9146
9150
|
});
|
|
9147
|
-
},
|
|
9151
|
+
}, lu = ({ options: e, paramsData: n } = {}) => {
|
|
9148
9152
|
const { transactionRecordApi: t } = Ae();
|
|
9149
9153
|
return j({
|
|
9150
9154
|
queryKey: ["transactionRecord", "event"],
|
|
9151
9155
|
queryFn: () => t(n, "event"),
|
|
9152
9156
|
...e
|
|
9153
9157
|
});
|
|
9154
|
-
},
|
|
9158
|
+
}, ru = ({ options: e, paramsData: n } = {}) => {
|
|
9155
9159
|
const { transactionRecordApi: t } = Ae();
|
|
9156
9160
|
return j({
|
|
9157
9161
|
queryKey: ["transactionRecord", "rebate"],
|
|
9158
9162
|
queryFn: () => t(n, "rebate"),
|
|
9159
9163
|
...e
|
|
9160
9164
|
});
|
|
9161
|
-
},
|
|
9165
|
+
}, ou = ({ options: e, paramsData: n } = {}) => {
|
|
9162
9166
|
const { treasureRecordApi: t } = Ae();
|
|
9163
9167
|
return j({
|
|
9164
9168
|
queryKey: ["treasureRecord", n],
|
|
9165
9169
|
queryFn: () => t(n),
|
|
9166
9170
|
...e
|
|
9167
9171
|
});
|
|
9168
|
-
},
|
|
9172
|
+
}, su = ({
|
|
9169
9173
|
depositV1: e = {},
|
|
9170
9174
|
depositV2: n = {},
|
|
9171
9175
|
depositTransaction: t = {},
|
|
@@ -9175,7 +9179,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9175
9179
|
eventTransaction: b = {},
|
|
9176
9180
|
withdrawTransaction: d = {}
|
|
9177
9181
|
} = {}) => {
|
|
9178
|
-
const r =
|
|
9182
|
+
const r = ys(e), a = Us(n), i = vs(t), o = bs(l), s = Cs(p), u = Ts(g), m = hs(b), c = ks(
|
|
9179
9183
|
d
|
|
9180
9184
|
);
|
|
9181
9185
|
return {
|
|
@@ -9188,10 +9192,10 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9188
9192
|
eventTransaction: m,
|
|
9189
9193
|
withdrawTransaction: c
|
|
9190
9194
|
};
|
|
9191
|
-
}, ol = "3.7.8",
|
|
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) => {
|
|
9192
9196
|
let n = {};
|
|
9193
9197
|
return e.forEach((t, l) => n[t] = l), n;
|
|
9194
|
-
})(Qa),
|
|
9198
|
+
})(Qa), Ds = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Pn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), sl = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), ml = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), ul = (e) => {
|
|
9195
9199
|
let n, t, l, p, g = "";
|
|
9196
9200
|
const b = e.length % 3;
|
|
9197
9201
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9205,7 +9209,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9205
9209
|
for (let l = 0, p = e.length; l < p; l += 4096)
|
|
9206
9210
|
t.push(Le.apply(null, e.subarray(l, l + 4096)));
|
|
9207
9211
|
return xi(t.join(""));
|
|
9208
|
-
}, Jt = (e, n = !1) => n ? sl(ui(e)) : ui(e),
|
|
9212
|
+
}, Jt = (e, n = !1) => n ? sl(ui(e)) : ui(e), Es = (e) => {
|
|
9209
9213
|
if (e.length < 2) {
|
|
9210
9214
|
var n = e.charCodeAt(0);
|
|
9211
9215
|
return n < 128 ? e : n < 2048 ? Le(192 | n >>> 6) + Le(128 | n & 63) : Le(224 | n >>> 12 & 15) + Le(128 | n >>> 6 & 63) + Le(128 | n & 63);
|
|
@@ -9213,7 +9217,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9213
9217
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9214
9218
|
return Le(240 | n >>> 18 & 7) + Le(128 | n >>> 12 & 63) + Le(128 | n >>> 6 & 63) + Le(128 | n & 63);
|
|
9215
9219
|
}
|
|
9216
|
-
},
|
|
9220
|
+
}, Ns = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, pl = (e) => e.replace(Ns, Es), wn = Wa ? (e) => Buffer.from(e, "utf8").toString("base64") : Rn ? (e) => ui(Rn.encode(e)) : (e) => xi(pl(e)), Ba = (e, n = !1) => n ? sl(wn(e)) : wn(e), Fn = (e) => Ba(e, !0), Ls = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Gs = (e) => {
|
|
9217
9221
|
switch (e.length) {
|
|
9218
9222
|
case 4:
|
|
9219
9223
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), t = n - 65536;
|
|
@@ -9223,15 +9227,15 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9223
9227
|
default:
|
|
9224
9228
|
return Le((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9225
9229
|
}
|
|
9226
|
-
}, gl = (e) => e.replace(
|
|
9227
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
9230
|
+
}, gl = (e) => e.replace(Ls, Gs), dl = (e) => {
|
|
9231
|
+
if (e = e.replace(/\s+/g, ""), !Ds.test(e))
|
|
9228
9232
|
throw new TypeError("malformed base64.");
|
|
9229
9233
|
e += "==".slice(2 - (e.length & 3));
|
|
9230
9234
|
let n, t, l, p = [];
|
|
9231
9235
|
for (let g = 0; g < e.length; )
|
|
9232
9236
|
n = rt[e.charAt(g++)] << 18 | rt[e.charAt(g++)] << 12 | (t = rt[e.charAt(g++)]) << 6 | (l = rt[e.charAt(g++)]), t === 64 ? p.push(Le(n >> 16 & 255)) : l === 64 ? p.push(Le(n >> 16 & 255, n >> 8 & 255)) : p.push(Le(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9233
9237
|
return p.join("");
|
|
9234
|
-
}, Si = typeof atob == "function" ? (e) => atob(ml(e)) : Wa ? (e) => Buffer.from(e, "base64").toString("binary") : dl, cl = Wa ? (e) => Pn(Buffer.from(e, "base64")) : (e) => Pn(Si(e).split("").map((n) => n.charCodeAt(0))), fl = (e) => cl(_l(e)),
|
|
9238
|
+
}, Si = typeof atob == "function" ? (e) => atob(ml(e)) : Wa ? (e) => Buffer.from(e, "base64").toString("binary") : dl, cl = Wa ? (e) => Pn(Buffer.from(e, "base64")) : (e) => Pn(Si(e).split("").map((n) => n.charCodeAt(0))), fl = (e) => cl(_l(e)), Ms = Wa ? (e) => Buffer.from(e, "base64").toString("utf8") : Mn ? (e) => Mn.decode(cl(e)) : (e) => gl(Si(e)), _l = (e) => ml(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), pi = (e) => Ms(_l(e)), Rs = (e) => {
|
|
9235
9239
|
if (typeof e != "string")
|
|
9236
9240
|
return !1;
|
|
9237
9241
|
const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -9263,11 +9267,11 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9263
9267
|
}), e("toBase64URL", function() {
|
|
9264
9268
|
return Jt(this, !0);
|
|
9265
9269
|
});
|
|
9266
|
-
},
|
|
9270
|
+
}, Ps = () => {
|
|
9267
9271
|
Ul(), bl();
|
|
9268
|
-
},
|
|
9272
|
+
}, ws = {
|
|
9269
9273
|
version: ol,
|
|
9270
|
-
VERSION:
|
|
9274
|
+
VERSION: xs,
|
|
9271
9275
|
atob: Si,
|
|
9272
9276
|
atobPolyfill: dl,
|
|
9273
9277
|
btoa: xi,
|
|
@@ -9280,13 +9284,13 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9280
9284
|
utob: pl,
|
|
9281
9285
|
btou: gl,
|
|
9282
9286
|
decode: pi,
|
|
9283
|
-
isValid:
|
|
9287
|
+
isValid: Rs,
|
|
9284
9288
|
fromUint8Array: Jt,
|
|
9285
9289
|
toUint8Array: fl,
|
|
9286
9290
|
extendString: Ul,
|
|
9287
9291
|
extendUint8Array: bl,
|
|
9288
|
-
extendBuiltins:
|
|
9289
|
-
},
|
|
9292
|
+
extendBuiltins: Ps
|
|
9293
|
+
}, mu = (e, n) => {
|
|
9290
9294
|
const { playGameApi: t } = bi();
|
|
9291
9295
|
return j({
|
|
9292
9296
|
queryKey: ["playGame"],
|
|
@@ -9313,7 +9317,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9313
9317
|
supportPortrait: s,
|
|
9314
9318
|
isHtmlCode: m,
|
|
9315
9319
|
gameUrl: u,
|
|
9316
|
-
decodeGameUrl:
|
|
9320
|
+
decodeGameUrl: ws.decode(u),
|
|
9317
9321
|
message: c
|
|
9318
9322
|
};
|
|
9319
9323
|
},
|
|
@@ -9321,39 +9325,39 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9321
9325
|
...n
|
|
9322
9326
|
});
|
|
9323
9327
|
}, Cl = () => {
|
|
9324
|
-
const { client: e } =
|
|
9328
|
+
const { client: e } = me(), n = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
9325
9329
|
return {
|
|
9326
9330
|
currentRebateApi: n,
|
|
9327
9331
|
receiveRebateApi: t
|
|
9328
9332
|
};
|
|
9329
|
-
},
|
|
9333
|
+
}, Fs = ({ options: e } = {}) => {
|
|
9330
9334
|
const { currentRebateApi: n } = Cl();
|
|
9331
9335
|
return j({
|
|
9332
9336
|
queryKey: ["currentRebate"],
|
|
9333
9337
|
queryFn: () => n(),
|
|
9334
|
-
select: (t) =>
|
|
9338
|
+
select: (t) => zl(t, ["code", "status"]),
|
|
9335
9339
|
...e
|
|
9336
9340
|
});
|
|
9337
|
-
},
|
|
9341
|
+
}, As = ({ options: e } = {}) => {
|
|
9338
9342
|
const { receiveRebateApi: n } = Cl();
|
|
9339
|
-
return
|
|
9343
|
+
return le({
|
|
9340
9344
|
mutationKey: ["receiveRebate"],
|
|
9341
9345
|
mutationFn: async () => n(),
|
|
9342
9346
|
...e
|
|
9343
9347
|
});
|
|
9344
|
-
},
|
|
9348
|
+
}, uu = ({
|
|
9345
9349
|
options: e = {
|
|
9346
9350
|
currentRebate: {},
|
|
9347
9351
|
receiveRebate: {}
|
|
9348
9352
|
}
|
|
9349
9353
|
} = {}) => {
|
|
9350
|
-
const n =
|
|
9354
|
+
const n = Fs({ options: e.currentRebate }), t = As({ options: e.receiveRebate });
|
|
9351
9355
|
return {
|
|
9352
9356
|
currentRebate: n,
|
|
9353
9357
|
receiveRebate: t
|
|
9354
9358
|
};
|
|
9355
9359
|
}, Xa = () => {
|
|
9356
|
-
const { client: e } =
|
|
9360
|
+
const { client: e } = me(), n = I(
|
|
9357
9361
|
async ({ uid: b, params: d } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
|
|
9358
9362
|
params: d
|
|
9359
9363
|
}),
|
|
@@ -9371,7 +9375,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9371
9375
|
redeemRewardApi: p,
|
|
9372
9376
|
historyRewardApi: g
|
|
9373
9377
|
};
|
|
9374
|
-
},
|
|
9378
|
+
}, Os = ({ options: e, formData: n } = {}) => {
|
|
9375
9379
|
const { rewardListApi: t } = Xa();
|
|
9376
9380
|
return j({
|
|
9377
9381
|
queryKey: ["rewardsList"],
|
|
@@ -9384,7 +9388,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9384
9388
|
const {
|
|
9385
9389
|
wagering_restricted_amount: b,
|
|
9386
9390
|
claimed_amount: d
|
|
9387
|
-
} = g, r =
|
|
9391
|
+
} = g, r = re(g, "rewards", {}), {
|
|
9388
9392
|
expiration_days: a,
|
|
9389
9393
|
name: i,
|
|
9390
9394
|
position: o,
|
|
@@ -9411,35 +9415,35 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9411
9415
|
},
|
|
9412
9416
|
...e
|
|
9413
9417
|
});
|
|
9414
|
-
},
|
|
9418
|
+
}, Bs = ({ options: e } = {}) => {
|
|
9415
9419
|
const { redeemRewardApi: n } = Xa();
|
|
9416
|
-
return
|
|
9420
|
+
return le({
|
|
9417
9421
|
mutationKey: ["redeemReward"],
|
|
9418
9422
|
mutationFn: async (t) => await n(t),
|
|
9419
9423
|
...e
|
|
9420
9424
|
});
|
|
9421
|
-
},
|
|
9425
|
+
}, Hs = ({ options: e } = {}) => {
|
|
9422
9426
|
const { unUsedRewardListApi: n } = Xa();
|
|
9423
9427
|
return j({
|
|
9424
9428
|
queryKey: ["unUsedRewardsList"],
|
|
9425
9429
|
queryFn: n,
|
|
9426
9430
|
...e
|
|
9427
9431
|
});
|
|
9428
|
-
},
|
|
9432
|
+
}, Ws = ({ options: e } = {}) => {
|
|
9429
9433
|
const { expiredRewardListApi: n } = Xa();
|
|
9430
9434
|
return j({
|
|
9431
9435
|
queryKey: ["expiredRewardsList"],
|
|
9432
9436
|
queryFn: n,
|
|
9433
9437
|
...e
|
|
9434
9438
|
});
|
|
9435
|
-
},
|
|
9439
|
+
}, zs = ({ options: e } = {}) => {
|
|
9436
9440
|
const { historyRewardApi: n } = Xa();
|
|
9437
9441
|
return j({
|
|
9438
9442
|
queryKey: ["historyRewardsList"],
|
|
9439
9443
|
queryFn: n,
|
|
9440
9444
|
...e
|
|
9441
9445
|
});
|
|
9442
|
-
},
|
|
9446
|
+
}, pu = ({
|
|
9443
9447
|
options: e = {
|
|
9444
9448
|
rewardsList: {},
|
|
9445
9449
|
redeemReward: {},
|
|
@@ -9448,13 +9452,13 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9448
9452
|
historyRewardsList: {}
|
|
9449
9453
|
}
|
|
9450
9454
|
} = {}) => {
|
|
9451
|
-
const n =
|
|
9455
|
+
const n = Os({ options: e.rewardsList }), t = Bs({
|
|
9452
9456
|
options: e.redeemReward
|
|
9453
|
-
}), l =
|
|
9457
|
+
}), l = Hs({
|
|
9454
9458
|
options: e.unUsedRewardsList
|
|
9455
|
-
}), p =
|
|
9459
|
+
}), p = Ws({
|
|
9456
9460
|
options: e.expiredRewardsList
|
|
9457
|
-
}), g =
|
|
9461
|
+
}), g = zs({
|
|
9458
9462
|
options: e.historyRewardsList
|
|
9459
9463
|
});
|
|
9460
9464
|
return {
|
|
@@ -9465,7 +9469,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9465
9469
|
historyRewardsListQuery: g
|
|
9466
9470
|
};
|
|
9467
9471
|
}, vl = () => {
|
|
9468
|
-
const { client: e } =
|
|
9472
|
+
const { client: e } = me(), n = I(
|
|
9469
9473
|
async (l = {}) => {
|
|
9470
9474
|
const {
|
|
9471
9475
|
startTime: p = "2025-12-30 00:00:00",
|
|
@@ -9499,20 +9503,20 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9499
9503
|
treasureListApi: n,
|
|
9500
9504
|
redeemTreasureApi: t
|
|
9501
9505
|
};
|
|
9502
|
-
},
|
|
9503
|
-
const { client: t, lng: l } =
|
|
9506
|
+
}, gu = ({ paramsData: e, options: n } = {}) => {
|
|
9507
|
+
const { client: t, lng: l } = me(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
|
|
9504
9508
|
return j({
|
|
9505
9509
|
queryKey: ["treasureList", e],
|
|
9506
9510
|
queryFn: () => g(e),
|
|
9507
9511
|
select: (b) => {
|
|
9508
|
-
const d =
|
|
9509
|
-
current_page:
|
|
9510
|
-
per_page:
|
|
9511
|
-
total:
|
|
9512
|
-
last_page:
|
|
9512
|
+
const d = re(b, "data", {}), r = {
|
|
9513
|
+
current_page: re(d, "current_page", 1),
|
|
9514
|
+
per_page: re(d, "per_page", 10),
|
|
9515
|
+
total: re(d, "total", 1),
|
|
9516
|
+
last_page: re(d, "last_page", 1)
|
|
9513
9517
|
};
|
|
9514
9518
|
return {
|
|
9515
|
-
list: Be(
|
|
9519
|
+
list: Be(re(d, "data", []), (i) => {
|
|
9516
9520
|
const o = $e(i.treasure_copywriting, {
|
|
9517
9521
|
language: p
|
|
9518
9522
|
});
|
|
@@ -9527,21 +9531,21 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9527
9531
|
},
|
|
9528
9532
|
...n
|
|
9529
9533
|
});
|
|
9530
|
-
},
|
|
9534
|
+
}, du = ({ options: e } = {}) => {
|
|
9531
9535
|
const { redeemTreasureApi: n } = vl();
|
|
9532
|
-
return
|
|
9536
|
+
return le({
|
|
9533
9537
|
mutationKey: ["redeemTreasure"],
|
|
9534
9538
|
mutationFn: async (t) => n(t),
|
|
9535
9539
|
...e
|
|
9536
9540
|
});
|
|
9537
9541
|
}, hl = () => {
|
|
9538
|
-
const { client: e } =
|
|
9542
|
+
const { client: e } = me(), n = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
|
|
9539
9543
|
return {
|
|
9540
9544
|
vipListApi: n,
|
|
9541
9545
|
vipInfoApi: t
|
|
9542
9546
|
};
|
|
9543
|
-
},
|
|
9544
|
-
const { store: n } =
|
|
9547
|
+
}, cu = ({ options: e } = {}) => {
|
|
9548
|
+
const { store: n } = me(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
|
|
9545
9549
|
return j({
|
|
9546
9550
|
queryKey: ["vipInfo"],
|
|
9547
9551
|
queryFn: async () => l(),
|
|
@@ -9555,8 +9559,8 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9555
9559
|
},
|
|
9556
9560
|
...e
|
|
9557
9561
|
});
|
|
9558
|
-
},
|
|
9559
|
-
const { store: n } =
|
|
9562
|
+
}, Is = ({ options: e } = {}) => {
|
|
9563
|
+
const { store: n } = me(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
|
|
9560
9564
|
return j({
|
|
9561
9565
|
queryKey: ["vipList"],
|
|
9562
9566
|
queryFn: async () => {
|
|
@@ -9575,7 +9579,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9575
9579
|
} = d, u = $e(r, { currency_code: t }) || {}, m = $e(a, { currency_code: t }) || {}, c = i, f = Be(o, (U) => ({
|
|
9576
9580
|
...U,
|
|
9577
9581
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9578
|
-
})), y =
|
|
9582
|
+
})), y = re(s, "[0]", {}), _ = {
|
|
9579
9583
|
...y,
|
|
9580
9584
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9581
9585
|
};
|
|
@@ -9592,10 +9596,10 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9592
9596
|
},
|
|
9593
9597
|
...e
|
|
9594
9598
|
});
|
|
9595
|
-
},
|
|
9599
|
+
}, fu = ({ options: e } = {
|
|
9596
9600
|
vipList: {}
|
|
9597
9601
|
}) => ({
|
|
9598
|
-
vipList:
|
|
9602
|
+
vipList: Is({ options: e.vipList })
|
|
9599
9603
|
}), An = (e) => {
|
|
9600
9604
|
switch (e) {
|
|
9601
9605
|
case "tw":
|
|
@@ -9615,8 +9619,8 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9615
9619
|
default:
|
|
9616
9620
|
return "En";
|
|
9617
9621
|
}
|
|
9618
|
-
}, ot = "game-icon-ds88",
|
|
9619
|
-
const { lng: n } =
|
|
9622
|
+
}, ot = "game-icon-ds88", _u = ({ gameData: e = {} } = {}) => {
|
|
9623
|
+
const { lng: n } = me(), t = An(n), {
|
|
9620
9624
|
gameCode: l,
|
|
9621
9625
|
// 遊戲代碼
|
|
9622
9626
|
gameUid: p,
|
|
@@ -9688,7 +9692,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9688
9692
|
isInvalidBet: y,
|
|
9689
9693
|
haveJackpot: _
|
|
9690
9694
|
};
|
|
9691
|
-
},
|
|
9695
|
+
}, Vs = (e, n = !1) => Il([
|
|
9692
9696
|
"EVO",
|
|
9693
9697
|
"IMSPRIBE",
|
|
9694
9698
|
"SABA",
|
|
@@ -9699,7 +9703,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9699
9703
|
"HACK",
|
|
9700
9704
|
"NAGA",
|
|
9701
9705
|
"RSG"
|
|
9702
|
-
], e) && n ? `${e}_dark` : e,
|
|
9706
|
+
], e) && n ? `${e}_dark` : e, yu = ({ platformData: e, darkMode: n } = {}) => {
|
|
9703
9707
|
const {
|
|
9704
9708
|
SubPlatformEnum: t,
|
|
9705
9709
|
// 子平台枚舉
|
|
@@ -9721,7 +9725,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9721
9725
|
// 臨時維護開始時間
|
|
9722
9726
|
temp_maintenance_end_time: o
|
|
9723
9727
|
// 臨時維護結束時間
|
|
9724
|
-
} = e || {}, s = `${Ze}/${qn}/${
|
|
9728
|
+
} = e || {}, s = `${Ze}/${qn}/${Vs(l, n)}.png`;
|
|
9725
9729
|
return {
|
|
9726
9730
|
subPlatformEnum: t,
|
|
9727
9731
|
platformEnum: l,
|
|
@@ -9735,19 +9739,19 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9735
9739
|
tempMaintenanceEndTime: o,
|
|
9736
9740
|
platformImageUrl: s
|
|
9737
9741
|
};
|
|
9738
|
-
},
|
|
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) => {
|
|
9739
9743
|
const p = n.map((g) => g.game_subtype);
|
|
9740
9744
|
return p.forEach((g) => {
|
|
9741
9745
|
t[g] = t[g] || [];
|
|
9742
9746
|
}), p.includes(l.game_subtype) && t[l.game_subtype].push(l), t;
|
|
9743
|
-
}, {}),
|
|
9747
|
+
}, {}), Qs = ({
|
|
9744
9748
|
gameTypes: e = [],
|
|
9745
9749
|
platforms: n = [],
|
|
9746
9750
|
gameList: t = {},
|
|
9747
9751
|
allGameTypes: l = [],
|
|
9748
9752
|
allPlatforms: p = []
|
|
9749
9753
|
}) => !la(e) || !la(n) ? {} : Ee(t) ? {} : e.reduce((g, b) => {
|
|
9750
|
-
const d =
|
|
9754
|
+
const d = Yl({
|
|
9751
9755
|
gameTypeName: b,
|
|
9752
9756
|
platforms: n,
|
|
9753
9757
|
gameList: t,
|
|
@@ -9755,7 +9759,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9755
9759
|
allPlatforms: p
|
|
9756
9760
|
});
|
|
9757
9761
|
return Ee(d) || (g[b] = d), g;
|
|
9758
|
-
}, {}),
|
|
9762
|
+
}, {}), Uu = ({
|
|
9759
9763
|
types: e = [],
|
|
9760
9764
|
platforms: n = [],
|
|
9761
9765
|
allGameType: t = [],
|
|
@@ -9765,7 +9769,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9765
9769
|
const d = Qn(t, b);
|
|
9766
9770
|
if (!d) return g;
|
|
9767
9771
|
const r = p[d] || [], a = n.reduce((i, o) => {
|
|
9768
|
-
const s =
|
|
9772
|
+
const s = Xl({
|
|
9769
9773
|
platformName: o,
|
|
9770
9774
|
gamesOfType: r,
|
|
9771
9775
|
allPlatforms: l
|
|
@@ -9773,9 +9777,9 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9773
9777
|
return Ee(s) ? i : { ...i, [o]: s };
|
|
9774
9778
|
}, {});
|
|
9775
9779
|
return Ee(a) || (g[b] = a), g;
|
|
9776
|
-
}, {}),
|
|
9780
|
+
}, {}), js = (e = {}) => !$t(e) || Ee(e) ? {} : Object.values(e).reduce((t, l) => (Object.entries(l).forEach(([p, g]) => {
|
|
9777
9781
|
t[p] ? t[p] = [...t[p], ...g] : t[p] = g;
|
|
9778
|
-
}), t), {}),
|
|
9782
|
+
}), t), {}), Ys = (e = {}) => {
|
|
9779
9783
|
if (!$t(e) || Ee(e)) return {};
|
|
9780
9784
|
const n = {};
|
|
9781
9785
|
for (const [t, l] of Object.entries(e)) {
|
|
@@ -9786,7 +9790,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9786
9790
|
}
|
|
9787
9791
|
}
|
|
9788
9792
|
return n;
|
|
9789
|
-
},
|
|
9793
|
+
}, Xs = ({
|
|
9790
9794
|
allGameList: e = {},
|
|
9791
9795
|
allGamePlatform: n = [],
|
|
9792
9796
|
allGameType: t = [],
|
|
@@ -9799,7 +9803,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9799
9803
|
highlightGames: a = [],
|
|
9800
9804
|
originPlatform: i = []
|
|
9801
9805
|
}) => {
|
|
9802
|
-
const o =
|
|
9806
|
+
const o = Js(e), s = On(n), u = Zs(t), m = Ks(l), c = On(i), f = qs(d), y = Qs({
|
|
9803
9807
|
gameTypes: u,
|
|
9804
9808
|
platforms: s,
|
|
9805
9809
|
gameList: e,
|
|
@@ -9811,9 +9815,9 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9811
9815
|
...G,
|
|
9812
9816
|
platformImageUrl: O
|
|
9813
9817
|
};
|
|
9814
|
-
}), U =
|
|
9818
|
+
}), U = $s(o, l), C = js(y), v = Ys(C), D = zn(y).reduce(
|
|
9815
9819
|
(G, [O, k]) => {
|
|
9816
|
-
const h = Qt(
|
|
9820
|
+
const h = Qt(Vl(k));
|
|
9817
9821
|
return G[O] = h, G;
|
|
9818
9822
|
},
|
|
9819
9823
|
{}
|
|
@@ -9854,12 +9858,12 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9854
9858
|
favorite: f
|
|
9855
9859
|
}
|
|
9856
9860
|
};
|
|
9857
|
-
},
|
|
9861
|
+
}, bu = (e = []) => !la(e) || Ee(e) ? [] : Qt(e, (n) => Ee(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((t) => ({
|
|
9858
9862
|
...n,
|
|
9859
9863
|
...t,
|
|
9860
9864
|
platform: t.SubPlatformEnum,
|
|
9861
9865
|
platformEnum: t.SubPlatformEnum
|
|
9862
|
-
}))),
|
|
9866
|
+
}))), em = {
|
|
9863
9867
|
platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
|
|
9864
9868
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
9865
9869
|
gameList: {
|
|
@@ -9879,8 +9883,8 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9879
9883
|
byGameType: {}
|
|
9880
9884
|
},
|
|
9881
9885
|
user: { favorite: [] }
|
|
9882
|
-
},
|
|
9883
|
-
const { getToken: n } =
|
|
9886
|
+
}, am = ({ enabled: e = !0 } = {}) => {
|
|
9887
|
+
const { getToken: n } = me(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
|
|
9884
9888
|
queryKey: ["gamesInfo"],
|
|
9885
9889
|
queryFn: async () => {
|
|
9886
9890
|
let r = {}, a = {};
|
|
@@ -9889,7 +9893,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9889
9893
|
} catch (i) {
|
|
9890
9894
|
console.warn("Failed to fetch favorite games:", i);
|
|
9891
9895
|
}
|
|
9892
|
-
return
|
|
9896
|
+
return Xs({
|
|
9893
9897
|
allGameList: a.gameTypeGroup || window.gameTypeGroup || {},
|
|
9894
9898
|
allGamePlatform: a.platforms || window.platforms || [],
|
|
9895
9899
|
allGameType: a.gameType || window.gameType || [],
|
|
@@ -9912,12 +9916,12 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9912
9916
|
refetchOnWindowFocus: !1
|
|
9913
9917
|
});
|
|
9914
9918
|
return {
|
|
9915
|
-
gamesInfo: p ||
|
|
9919
|
+
gamesInfo: p || em,
|
|
9916
9920
|
isLoading: g,
|
|
9917
9921
|
error: b,
|
|
9918
9922
|
refetch: d
|
|
9919
9923
|
};
|
|
9920
|
-
},
|
|
9924
|
+
}, tm = (e = !1) => {
|
|
9921
9925
|
if (!e && window.gameTypeGroup) {
|
|
9922
9926
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
9923
9927
|
return;
|
|
@@ -36444,18 +36448,18 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
36444
36448
|
is_invalid_bet: 0
|
|
36445
36449
|
}
|
|
36446
36450
|
});
|
|
36447
|
-
},
|
|
36451
|
+
}, im = ({
|
|
36448
36452
|
children: e,
|
|
36449
36453
|
autoFetch: n = !1,
|
|
36450
36454
|
mockData: t = !1
|
|
36451
36455
|
}) => {
|
|
36452
36456
|
ge(() => {
|
|
36453
|
-
t &&
|
|
36457
|
+
t && tm(!0);
|
|
36454
36458
|
}, [t]);
|
|
36455
|
-
const l =
|
|
36459
|
+
const l = am({ enabled: n });
|
|
36456
36460
|
return /* @__PURE__ */ Fe.jsx($n.Provider, { value: l, children: e });
|
|
36457
36461
|
};
|
|
36458
|
-
function
|
|
36462
|
+
function Cu({
|
|
36459
36463
|
children: e,
|
|
36460
36464
|
autoFetchGamesInfo: n = !1,
|
|
36461
36465
|
useMockData: t = !1,
|
|
@@ -36476,8 +36480,8 @@ function vu({
|
|
|
36476
36480
|
}),
|
|
36477
36481
|
[]
|
|
36478
36482
|
), r = l || d;
|
|
36479
|
-
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(In.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx(
|
|
36480
|
-
|
|
36483
|
+
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(In.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx(Ql, { children: /* @__PURE__ */ Fe.jsx(
|
|
36484
|
+
im,
|
|
36481
36485
|
{
|
|
36482
36486
|
autoFetch: n,
|
|
36483
36487
|
mockData: t,
|
|
@@ -36485,9 +36489,9 @@ function vu({
|
|
|
36485
36489
|
}
|
|
36486
36490
|
) }) }) });
|
|
36487
36491
|
}
|
|
36488
|
-
const
|
|
36492
|
+
const vu = ({ onFunction: e = () => {
|
|
36489
36493
|
}, buttonProps: n = {} } = {}) => {
|
|
36490
|
-
const { lineConfig: t } =
|
|
36494
|
+
const { lineConfig: t } = me(), 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: s } = il({
|
|
36491
36495
|
options: {
|
|
36492
36496
|
onSuccess: (m) => {
|
|
36493
36497
|
e(m);
|
|
@@ -36525,7 +36529,7 @@ const hu = ({ onFunction: e = () => {
|
|
|
36525
36529
|
}
|
|
36526
36530
|
) : null;
|
|
36527
36531
|
};
|
|
36528
|
-
var
|
|
36532
|
+
var nm = Object.defineProperty, Kt = Object.getOwnPropertySymbols, Tl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable, Bn = (e, n, t) => n in e ? nm(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, gi = (e, n) => {
|
|
36529
36533
|
for (var t in n || (n = {}))
|
|
36530
36534
|
Tl.call(n, t) && Bn(e, t, n[t]);
|
|
36531
36535
|
if (Kt)
|
|
@@ -36941,7 +36945,7 @@ var ka;
|
|
|
36941
36945
|
if (!d)
|
|
36942
36946
|
throw new Error("Assertion error");
|
|
36943
36947
|
}
|
|
36944
|
-
const g = class
|
|
36948
|
+
const g = class _e {
|
|
36945
36949
|
/*-- Constructor (low level) and fields --*/
|
|
36946
36950
|
// Creates a new QR Code segment with the given attributes and data.
|
|
36947
36951
|
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
@@ -36959,36 +36963,36 @@ var ka;
|
|
|
36959
36963
|
let a = [];
|
|
36960
36964
|
for (const i of r)
|
|
36961
36965
|
t(i, 8, a);
|
|
36962
|
-
return new
|
|
36966
|
+
return new _e(_e.Mode.BYTE, r.length, a);
|
|
36963
36967
|
}
|
|
36964
36968
|
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
36965
36969
|
static makeNumeric(r) {
|
|
36966
|
-
if (!
|
|
36970
|
+
if (!_e.isNumeric(r))
|
|
36967
36971
|
throw new RangeError("String contains non-numeric characters");
|
|
36968
36972
|
let a = [];
|
|
36969
36973
|
for (let i = 0; i < r.length; ) {
|
|
36970
36974
|
const o = Math.min(r.length - i, 3);
|
|
36971
36975
|
t(parseInt(r.substring(i, i + o), 10), o * 3 + 1, a), i += o;
|
|
36972
36976
|
}
|
|
36973
|
-
return new
|
|
36977
|
+
return new _e(_e.Mode.NUMERIC, r.length, a);
|
|
36974
36978
|
}
|
|
36975
36979
|
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
36976
36980
|
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
36977
36981
|
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
36978
36982
|
static makeAlphanumeric(r) {
|
|
36979
|
-
if (!
|
|
36983
|
+
if (!_e.isAlphanumeric(r))
|
|
36980
36984
|
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
36981
36985
|
let a = [], i;
|
|
36982
36986
|
for (i = 0; i + 2 <= r.length; i += 2) {
|
|
36983
|
-
let o =
|
|
36984
|
-
o +=
|
|
36987
|
+
let o = _e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)) * 45;
|
|
36988
|
+
o += _e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i + 1)), t(o, 11, a);
|
|
36985
36989
|
}
|
|
36986
|
-
return i < r.length && t(
|
|
36990
|
+
return i < r.length && t(_e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)), 6, a), new _e(_e.Mode.ALPHANUMERIC, r.length, a);
|
|
36987
36991
|
}
|
|
36988
36992
|
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
36989
36993
|
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
36990
36994
|
static makeSegments(r) {
|
|
36991
|
-
return r == "" ? [] :
|
|
36995
|
+
return r == "" ? [] : _e.isNumeric(r) ? [_e.makeNumeric(r)] : _e.isAlphanumeric(r) ? [_e.makeAlphanumeric(r)] : [_e.makeBytes(_e.toUtf8ByteArray(r))];
|
|
36992
36996
|
}
|
|
36993
36997
|
// Returns a segment representing an Extended Channel Interpretation
|
|
36994
36998
|
// (ECI) designator with the given assignment value.
|
|
@@ -37004,18 +37008,18 @@ var ka;
|
|
|
37004
37008
|
t(6, 3, a), t(r, 21, a);
|
|
37005
37009
|
else
|
|
37006
37010
|
throw new RangeError("ECI assignment value out of range");
|
|
37007
|
-
return new
|
|
37011
|
+
return new _e(_e.Mode.ECI, 0, a);
|
|
37008
37012
|
}
|
|
37009
37013
|
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
37010
37014
|
// A string is encodable iff each character is in the range 0 to 9.
|
|
37011
37015
|
static isNumeric(r) {
|
|
37012
|
-
return
|
|
37016
|
+
return _e.NUMERIC_REGEX.test(r);
|
|
37013
37017
|
}
|
|
37014
37018
|
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
37015
37019
|
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
37016
37020
|
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
37017
37021
|
static isAlphanumeric(r) {
|
|
37018
|
-
return
|
|
37022
|
+
return _e.ALPHANUMERIC_REGEX.test(r);
|
|
37019
37023
|
}
|
|
37020
37024
|
/*-- Methods --*/
|
|
37021
37025
|
// Returns a new copy of the data bits of this segment.
|
|
@@ -37077,12 +37081,12 @@ var ka;
|
|
|
37077
37081
|
})(e.QrSegment || (e.QrSegment = {}));
|
|
37078
37082
|
})(ka || (ka = {}));
|
|
37079
37083
|
var Aa = ka;
|
|
37080
|
-
var
|
|
37084
|
+
var lm = {
|
|
37081
37085
|
L: Aa.QrCode.Ecc.LOW,
|
|
37082
37086
|
M: Aa.QrCode.Ecc.MEDIUM,
|
|
37083
37087
|
Q: Aa.QrCode.Ecc.QUARTILE,
|
|
37084
37088
|
H: Aa.QrCode.Ecc.HIGH
|
|
37085
|
-
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1,
|
|
37089
|
+
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1, rm = 4, om = 0, sm = 0.1;
|
|
37086
37090
|
function Gl(e, n = 0) {
|
|
37087
37091
|
const t = [];
|
|
37088
37092
|
return e.forEach(function(l, p) {
|
|
@@ -37109,10 +37113,10 @@ function Gl(e, n = 0) {
|
|
|
37109
37113
|
function Ml(e, n) {
|
|
37110
37114
|
return e.slice().map((t, l) => l < n.y || l >= n.y + n.h ? t : t.map((p, g) => g < n.x || g >= n.x + n.w ? p : !1));
|
|
37111
37115
|
}
|
|
37112
|
-
function
|
|
37116
|
+
function mm(e, n, t, l) {
|
|
37113
37117
|
if (l == null)
|
|
37114
37118
|
return null;
|
|
37115
|
-
const p = e.length + t * 2, g = Math.floor(n *
|
|
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;
|
|
37116
37120
|
let s = null;
|
|
37117
37121
|
if (l.excavate) {
|
|
37118
37122
|
let m = Math.floor(a), c = Math.floor(i), f = Math.ceil(d + a - m), y = Math.ceil(r + i - c);
|
|
@@ -37121,8 +37125,8 @@ function um(e, n, t, l) {
|
|
|
37121
37125
|
const u = l.crossOrigin;
|
|
37122
37126
|
return { x: a, y: i, h: r, w: d, excavation: s, opacity: o, crossOrigin: u };
|
|
37123
37127
|
}
|
|
37124
|
-
function
|
|
37125
|
-
return n != null ? Math.max(Math.floor(n), 0) : e ?
|
|
37128
|
+
function um(e, n) {
|
|
37129
|
+
return n != null ? Math.max(Math.floor(n), 0) : e ? rm : om;
|
|
37126
37130
|
}
|
|
37127
37131
|
function Rl({
|
|
37128
37132
|
value: e,
|
|
@@ -37138,7 +37142,7 @@ function Rl({
|
|
|
37138
37142
|
const m = (Array.isArray(e) ? e : [e]).reduce((c, f) => (c.push(...Aa.QrSegment.makeSegments(f)), c), []);
|
|
37139
37143
|
return Aa.QrCode.encodeSegments(
|
|
37140
37144
|
m,
|
|
37141
|
-
|
|
37145
|
+
lm[n],
|
|
37142
37146
|
t,
|
|
37143
37147
|
void 0,
|
|
37144
37148
|
void 0,
|
|
@@ -37147,7 +37151,7 @@ function Rl({
|
|
|
37147
37151
|
}, [e, n, t, d]);
|
|
37148
37152
|
const { cells: a, margin: i, numCells: o, calculatedImageSettings: s } = de.useMemo(() => {
|
|
37149
37153
|
let u = r.getModules();
|
|
37150
|
-
const m =
|
|
37154
|
+
const m = um(l, p), c = u.length + m * 2, f = mm(
|
|
37151
37155
|
u,
|
|
37152
37156
|
b,
|
|
37153
37157
|
m,
|
|
@@ -37168,14 +37172,14 @@ function Rl({
|
|
|
37168
37172
|
calculatedImageSettings: s
|
|
37169
37173
|
};
|
|
37170
37174
|
}
|
|
37171
|
-
var
|
|
37175
|
+
var pm = (function() {
|
|
37172
37176
|
try {
|
|
37173
37177
|
new Path2D().addPath(new Path2D());
|
|
37174
37178
|
} catch {
|
|
37175
37179
|
return !1;
|
|
37176
37180
|
}
|
|
37177
37181
|
return !0;
|
|
37178
|
-
})(),
|
|
37182
|
+
})(), gm = de.forwardRef(
|
|
37179
37183
|
function(n, t) {
|
|
37180
37184
|
const l = n, {
|
|
37181
37185
|
value: p,
|
|
@@ -37228,7 +37232,7 @@ var gm = (function() {
|
|
|
37228
37232
|
const W = window.devicePixelRatio || 1;
|
|
37229
37233
|
w.height = w.width = g * W;
|
|
37230
37234
|
const M = g / k * W;
|
|
37231
|
-
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = r,
|
|
37235
|
+
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = r, pm ? R.fill(new Path2D(Gl(P, G))) : O.forEach(function(S, x) {
|
|
37232
37236
|
S.forEach(function(L, N) {
|
|
37233
37237
|
L && R.fillRect(N + G, x + G, 1, 1);
|
|
37234
37238
|
});
|
|
@@ -37269,7 +37273,7 @@ var gm = (function() {
|
|
|
37269
37273
|
), A);
|
|
37270
37274
|
}
|
|
37271
37275
|
);
|
|
37272
|
-
|
|
37276
|
+
gm.displayName = "QRCodeCanvas";
|
|
37273
37277
|
var Pl = de.forwardRef(
|
|
37274
37278
|
function(n, t) {
|
|
37275
37279
|
const l = n, {
|
|
@@ -37348,7 +37352,7 @@ var Pl = de.forwardRef(
|
|
|
37348
37352
|
}
|
|
37349
37353
|
);
|
|
37350
37354
|
Pl.displayName = "QRCodeSVG";
|
|
37351
|
-
const
|
|
37355
|
+
const dm = {
|
|
37352
37356
|
position: "fixed",
|
|
37353
37357
|
top: 0,
|
|
37354
37358
|
left: 0,
|
|
@@ -37361,7 +37365,7 @@ const cm = {
|
|
|
37361
37365
|
justifyContent: "center",
|
|
37362
37366
|
zIndex: 1e4,
|
|
37363
37367
|
gap: "2em"
|
|
37364
|
-
},
|
|
37368
|
+
}, cm = {
|
|
37365
37369
|
position: "absolute",
|
|
37366
37370
|
top: "20px",
|
|
37367
37371
|
right: "20px",
|
|
@@ -37392,15 +37396,15 @@ const cm = {
|
|
|
37392
37396
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37393
37397
|
expired: "Kode QR telah kedaluwarsa"
|
|
37394
37398
|
}
|
|
37395
|
-
},
|
|
37396
|
-
const { lng: l, getToken: p, lineConfig: g } =
|
|
37399
|
+
}, ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
|
|
37400
|
+
const { lng: l, getToken: p, lineConfig: g } = me(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o = re(g, "liffId", ""), s = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || mi.get("machine_mac_address") || "", { data: f, isFetching: y } = zo({
|
|
37397
37401
|
formData: {
|
|
37398
37402
|
mac_address: c
|
|
37399
37403
|
},
|
|
37400
37404
|
options: {
|
|
37401
37405
|
enabled: e ? !0 : !!c && !u
|
|
37402
37406
|
}
|
|
37403
|
-
}), _ =
|
|
37407
|
+
}), _ = re(f, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37404
37408
|
ge(() => {
|
|
37405
37409
|
c && mi.set("machine_mac_address", c, { expires: 365 });
|
|
37406
37410
|
}, [c]), ge(() => (_ && (d(300), a(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
|
|
@@ -37414,11 +37418,11 @@ const cm = {
|
|
|
37414
37418
|
};
|
|
37415
37419
|
if (!e && (!c || u)) return null;
|
|
37416
37420
|
const C = Hn[s] || Hn.en_US;
|
|
37417
|
-
return n && /* @__PURE__ */ Fe.jsxs("div", { style:
|
|
37421
|
+
return n && /* @__PURE__ */ Fe.jsxs("div", { style: dm, children: [
|
|
37418
37422
|
/* @__PURE__ */ Fe.jsx(
|
|
37419
37423
|
"div",
|
|
37420
37424
|
{
|
|
37421
|
-
style:
|
|
37425
|
+
style: cm,
|
|
37422
37426
|
onClick: () => t(!1),
|
|
37423
37427
|
role: "button",
|
|
37424
37428
|
"aria-label": "Close",
|
|
@@ -37457,14 +37461,14 @@ const cm = {
|
|
|
37457
37461
|
)
|
|
37458
37462
|
] })
|
|
37459
37463
|
] });
|
|
37460
|
-
},
|
|
37464
|
+
}, xu = () => {
|
|
37461
37465
|
const e = fi(), {
|
|
37462
37466
|
mutate: n,
|
|
37463
37467
|
isPending: t,
|
|
37464
37468
|
isSuccess: l,
|
|
37465
37469
|
isError: p,
|
|
37466
37470
|
error: g
|
|
37467
|
-
} =
|
|
37471
|
+
} = Io({
|
|
37468
37472
|
options: {
|
|
37469
37473
|
onSuccess: () => {
|
|
37470
37474
|
e.invalidateQueries({
|
|
@@ -37489,126 +37493,126 @@ const cm = {
|
|
|
37489
37493
|
};
|
|
37490
37494
|
export {
|
|
37491
37495
|
In as ApiCtx,
|
|
37492
|
-
|
|
37493
|
-
|
|
37496
|
+
Cu as ApiProvider,
|
|
37497
|
+
xu as Bind,
|
|
37494
37498
|
$n as GamesInfoCtx,
|
|
37495
|
-
|
|
37496
|
-
|
|
37499
|
+
vu as LineLogin,
|
|
37500
|
+
ku as LineQrCode,
|
|
37497
37501
|
Ka as STATUS_TYPES,
|
|
37498
37502
|
Vn as StatusContext,
|
|
37499
|
-
|
|
37500
|
-
|
|
37501
|
-
|
|
37502
|
-
|
|
37503
|
-
|
|
37504
|
-
|
|
37503
|
+
Ql as StatusProvider,
|
|
37504
|
+
Qs as buildMultiTypes,
|
|
37505
|
+
Uu as buildMultiTypesWithSubTypes,
|
|
37506
|
+
Xl as buildSinglePlatformWithSubTypes,
|
|
37507
|
+
Yl as buildSingleType,
|
|
37508
|
+
$s as categorizeGames,
|
|
37505
37509
|
Qe as convertLanguageCode,
|
|
37506
|
-
|
|
37507
|
-
|
|
37508
|
-
|
|
37510
|
+
vm as createLogoutHandler,
|
|
37511
|
+
Ks as extractGameSubTypeNames,
|
|
37512
|
+
Zs as extractGameTypeNames,
|
|
37509
37513
|
On as extractPlatformNames,
|
|
37510
37514
|
Xn as filterGamesByPlatform,
|
|
37511
37515
|
Qn as findGameTypeUid,
|
|
37512
37516
|
jn as findPlatformUid,
|
|
37513
37517
|
Yn as findSubPlatform,
|
|
37514
|
-
|
|
37515
|
-
|
|
37516
|
-
|
|
37517
|
-
|
|
37518
|
-
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37524
|
-
|
|
37525
|
-
|
|
37526
|
-
|
|
37527
|
-
|
|
37528
|
-
|
|
37529
|
-
|
|
37530
|
-
|
|
37531
|
-
|
|
37532
|
-
|
|
37533
|
-
|
|
37534
|
-
|
|
37535
|
-
|
|
37536
|
-
|
|
37537
|
-
|
|
37538
|
-
|
|
37539
|
-
|
|
37540
|
-
|
|
37541
|
-
|
|
37542
|
-
|
|
37543
|
-
|
|
37544
|
-
|
|
37545
|
-
|
|
37546
|
-
|
|
37547
|
-
|
|
37548
|
-
|
|
37549
|
-
|
|
37550
|
-
|
|
37551
|
-
|
|
37552
|
-
|
|
37553
|
-
|
|
37554
|
-
|
|
37555
|
-
|
|
37556
|
-
|
|
37557
|
-
|
|
37558
|
-
|
|
37559
|
-
|
|
37560
|
-
|
|
37561
|
-
|
|
37562
|
-
|
|
37518
|
+
Js as flattenAllGames,
|
|
37519
|
+
qs as flattenFavoriteGames,
|
|
37520
|
+
hm as formatNumber,
|
|
37521
|
+
js as groupGamesByPlatform,
|
|
37522
|
+
Ys as groupGamesByPlatformAndSubType,
|
|
37523
|
+
jl as groupGamesBySubType,
|
|
37524
|
+
Vs as handleDarkImage,
|
|
37525
|
+
tm as initMockWindowData,
|
|
37526
|
+
Xs as processGameInfo,
|
|
37527
|
+
bu as processPlatformData,
|
|
37528
|
+
Nm as useAbandonPoint,
|
|
37529
|
+
me as useApiContext,
|
|
37530
|
+
Hm as useAvatarList,
|
|
37531
|
+
Tm as useBalanceGetter,
|
|
37532
|
+
Sm as useBet,
|
|
37533
|
+
Bm as useBetRankingData,
|
|
37534
|
+
_o as useBetRecord,
|
|
37535
|
+
yo as useBetRecordDetail,
|
|
37536
|
+
Io as useBindAccount,
|
|
37537
|
+
Zo as useCheckCurrentEventProgress,
|
|
37538
|
+
Ko as useCheckEventStatus,
|
|
37539
|
+
Em as useCheckPlayerWager,
|
|
37540
|
+
Im as useClientWebSocket,
|
|
37541
|
+
Fs as useCurrentRebate,
|
|
37542
|
+
bs as useDepositAction,
|
|
37543
|
+
vs as useDepositTransaction,
|
|
37544
|
+
ys as useDepositV1,
|
|
37545
|
+
Us as useDepositV2,
|
|
37546
|
+
iu as useDepositWalletLog,
|
|
37547
|
+
Zm as useEvent,
|
|
37548
|
+
Jo as useEventList,
|
|
37549
|
+
hs as useEventTransaction,
|
|
37550
|
+
lu as useEventWalletLog,
|
|
37551
|
+
Ws as useExpiredRewardsList,
|
|
37552
|
+
_u as useGameConfig,
|
|
37553
|
+
Cm as useGameInfoContext,
|
|
37554
|
+
am as useGamesInfo,
|
|
37555
|
+
Km as useGetCarouseList,
|
|
37556
|
+
zo as useGetMachineLoginCode,
|
|
37557
|
+
qm as useGetMarquee,
|
|
37558
|
+
km as useGetMemberInfo,
|
|
37559
|
+
$m as useGetRankingGame,
|
|
37560
|
+
zs as useHistoryRewardsList,
|
|
37561
|
+
Qm as useIdleTimeout,
|
|
37562
|
+
jm as useInbox,
|
|
37563
|
+
cs as useInboxList,
|
|
37564
|
+
xm as useInitializeWithToken,
|
|
37565
|
+
au as useInvoiceAction,
|
|
37566
|
+
Om as useJackpotData,
|
|
37563
37567
|
il as useLineLogin,
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
|
-
|
|
37570
|
-
|
|
37571
|
-
|
|
37572
|
-
|
|
37573
|
-
|
|
37574
|
-
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37578
|
-
|
|
37579
|
-
|
|
37580
|
-
|
|
37581
|
-
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37585
|
-
|
|
37586
|
-
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37568
|
+
Wo as useLineLogin2,
|
|
37569
|
+
Lo as useLogin,
|
|
37570
|
+
Go as useLogout,
|
|
37571
|
+
Lm as useMemberTransfer,
|
|
37572
|
+
Gm as useMobileLogin,
|
|
37573
|
+
Mm as useMobileLoginV2,
|
|
37574
|
+
Rm as useMobileRegister,
|
|
37575
|
+
Xm as useNewsDetail,
|
|
37576
|
+
Ym as useNewsList,
|
|
37577
|
+
su as usePayment,
|
|
37578
|
+
yu as usePlatformConfig,
|
|
37579
|
+
mu as usePlayGame,
|
|
37580
|
+
Dm as usePointTransfer,
|
|
37581
|
+
fs as useReadInbox,
|
|
37582
|
+
uu as useRebate,
|
|
37583
|
+
ru as useRebateWalletLog,
|
|
37584
|
+
As as useReceiveRebate,
|
|
37585
|
+
eu as useRedeemCodeDeposit,
|
|
37586
|
+
Vm as useRedeemEventReward,
|
|
37587
|
+
Bs as useRedeemReward,
|
|
37588
|
+
du as useRedeemTreasure,
|
|
37589
|
+
wo as useResetUserPassword,
|
|
37590
|
+
Ao as useResetUserTransactionPassword,
|
|
37591
|
+
pu as useRewards,
|
|
37592
|
+
Os as useRewardsList,
|
|
37593
|
+
Pm as useSendMobileVerifyCode,
|
|
37594
|
+
Fo as useSetUserTransactionPassword,
|
|
37595
|
+
Jm as useSettleEvent,
|
|
37596
|
+
Mo as useSignUp,
|
|
37593
37597
|
Jn as useStatus,
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
|
|
37597
|
-
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
|
|
37606
|
-
|
|
37607
|
-
|
|
37608
|
-
|
|
37609
|
-
|
|
37610
|
-
|
|
37611
|
-
|
|
37612
|
-
|
|
37613
|
-
|
|
37598
|
+
Ro as useToggleFavoriteGame,
|
|
37599
|
+
Ho as useTransferInGame,
|
|
37600
|
+
gu as useTreasureList,
|
|
37601
|
+
ou as useTreasureWalletLog,
|
|
37602
|
+
Hs as useUnUsedRewardsList,
|
|
37603
|
+
Wm as useUpdateAvatar,
|
|
37604
|
+
tu as useUpdateInvoiceAction,
|
|
37605
|
+
Po as useUpdateUserInfo,
|
|
37606
|
+
zm as useUser,
|
|
37607
|
+
Bo as useUserBindCard,
|
|
37608
|
+
Oo as useUserRebate,
|
|
37609
|
+
Fm as useVerifyDonationCode,
|
|
37610
|
+
wm as useVerifyPhoneBar,
|
|
37611
|
+
Am as useVerifyResetAction,
|
|
37612
|
+
fu as useVip,
|
|
37613
|
+
cu as useVipInfo,
|
|
37614
|
+
Is as useVipList,
|
|
37615
|
+
Cs as useWithdrawAction,
|
|
37616
|
+
ks as useWithdrawTransaction,
|
|
37617
|
+
nu as useWithdrawWalletLog
|
|
37614
37618
|
};
|