@obb871001/api-integration-sdk 1.0.282 → 1.0.284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.js +695 -676
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import de, { createContext as zi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as ee, useEffect as
|
|
2
|
-
import { useQueries as Bn, useQuery as ne, useQueryClient as Hn, useMutation as
|
|
1
|
+
import de, { createContext as zi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as ee, useEffect as pe } from "react";
|
|
2
|
+
import { useQueries as Bn, useQuery as ne, useQueryClient as Hn, useMutation as se, QueryClient as Al, QueryClientProvider as Ol } from "@tanstack/react-query";
|
|
3
3
|
import Bl from "axios";
|
|
4
4
|
import { get as ge, find as Qe, isEmpty as Ee, entries as Wn, map as We, isArray as la, toLower as ht, omit as Hl, replace as Tt, includes as Wl, isObject as Ii, flatMap as Vi, values as zl, keys as kt } from "lodash";
|
|
5
5
|
import Il from "react-dom";
|
|
@@ -69,16 +69,16 @@ function Jl() {
|
|
|
69
69
|
{
|
|
70
70
|
var $ = y.ReactDebugCurrentFrame, re = $.getStackAddendum();
|
|
71
71
|
re !== "" && (z += "%s", Z = Z.concat([re]));
|
|
72
|
-
var
|
|
72
|
+
var me = Z.map(function(te) {
|
|
73
73
|
return String(te);
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
me.unshift("Warning: " + z), Function.prototype.apply.call(console[h], console, me);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var C = !1, v = !1, x = !1, S = !1,
|
|
78
|
+
var C = !1, v = !1, x = !1, S = !1, R = !1, B;
|
|
79
79
|
B = Symbol.for("react.module.reference");
|
|
80
80
|
function k(h) {
|
|
81
|
-
return !!(typeof h == "string" || typeof h == "function" || h === n || h === g ||
|
|
81
|
+
return !!(typeof h == "string" || typeof h == "function" || h === n || h === g || R || h === p || h === a || h === i || S || h === u || C || v || x || typeof h == "object" && h !== null && (h.$$typeof === o || h.$$typeof === s || h.$$typeof === b || h.$$typeof === f || h.$$typeof === l || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
83
83
|
// we don't know which Flight build this will end up being used
|
|
84
84
|
// with.
|
|
@@ -91,10 +91,10 @@ function Jl() {
|
|
|
91
91
|
var re = z.displayName || z.name || "";
|
|
92
92
|
return re !== "" ? Z + "(" + re + ")" : Z;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function F(h) {
|
|
95
95
|
return h.displayName || "Context";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function N(h) {
|
|
98
98
|
if (h == null)
|
|
99
99
|
return null;
|
|
100
100
|
if (typeof h.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
|
|
@@ -119,19 +119,19 @@ function Jl() {
|
|
|
119
119
|
switch (h.$$typeof) {
|
|
120
120
|
case f:
|
|
121
121
|
var z = h;
|
|
122
|
-
return
|
|
122
|
+
return F(z) + ".Consumer";
|
|
123
123
|
case b:
|
|
124
124
|
var Z = h;
|
|
125
|
-
return
|
|
125
|
+
return F(Z._context) + ".Provider";
|
|
126
126
|
case l:
|
|
127
127
|
return T(h, h.render, "ForwardRef");
|
|
128
128
|
case s:
|
|
129
129
|
var $ = h.displayName || null;
|
|
130
|
-
return $ !== null ? $ :
|
|
130
|
+
return $ !== null ? $ : N(h.type) || "Memo";
|
|
131
131
|
case o: {
|
|
132
|
-
var re = h,
|
|
132
|
+
var re = h, me = re._payload, te = re._init;
|
|
133
133
|
try {
|
|
134
|
-
return
|
|
134
|
+
return N(te(me));
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -139,14 +139,14 @@ function Jl() {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var E = Object.assign,
|
|
142
|
+
var E = Object.assign, D = 0, L, A, O, H, W, M, G;
|
|
143
143
|
function w() {
|
|
144
144
|
}
|
|
145
145
|
w.__reactDisabledLog = !0;
|
|
146
|
-
function
|
|
146
|
+
function P() {
|
|
147
147
|
{
|
|
148
|
-
if (
|
|
149
|
-
|
|
148
|
+
if (D === 0) {
|
|
149
|
+
L = console.log, A = console.info, O = console.warn, H = console.error, W = console.group, M = console.groupCollapsed, G = console.groupEnd;
|
|
150
150
|
var h = {
|
|
151
151
|
configurable: !0,
|
|
152
152
|
enumerable: !0,
|
|
@@ -163,12 +163,12 @@ function Jl() {
|
|
|
163
163
|
groupEnd: h
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
D++;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
function K() {
|
|
170
170
|
{
|
|
171
|
-
if (
|
|
171
|
+
if (D--, D === 0) {
|
|
172
172
|
var h = {
|
|
173
173
|
configurable: !0,
|
|
174
174
|
enumerable: !0,
|
|
@@ -176,13 +176,13 @@ function Jl() {
|
|
|
176
176
|
};
|
|
177
177
|
Object.defineProperties(console, {
|
|
178
178
|
log: E({}, h, {
|
|
179
|
-
value:
|
|
179
|
+
value: L
|
|
180
180
|
}),
|
|
181
181
|
info: E({}, h, {
|
|
182
|
-
value:
|
|
182
|
+
value: A
|
|
183
183
|
}),
|
|
184
184
|
warn: E({}, h, {
|
|
185
|
-
value:
|
|
185
|
+
value: O
|
|
186
186
|
}),
|
|
187
187
|
error: E({}, h, {
|
|
188
188
|
value: H
|
|
@@ -191,14 +191,14 @@ function Jl() {
|
|
|
191
191
|
value: W
|
|
192
192
|
}),
|
|
193
193
|
groupCollapsed: E({}, h, {
|
|
194
|
-
value:
|
|
194
|
+
value: M
|
|
195
195
|
}),
|
|
196
196
|
groupEnd: E({}, h, {
|
|
197
197
|
value: G
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
D < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
var q = y.ReactCurrentDispatcher, Q;
|
|
@@ -232,8 +232,8 @@ function Jl() {
|
|
|
232
232
|
X = !0;
|
|
233
233
|
var re = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var me;
|
|
236
|
+
me = q.current, q.current = null, P();
|
|
237
237
|
try {
|
|
238
238
|
if (z) {
|
|
239
239
|
var te = function() {
|
|
@@ -286,7 +286,7 @@ function Jl() {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
X = !1, q.current =
|
|
289
|
+
X = !1, q.current = me, K(), Error.prepareStackTrace = re;
|
|
290
290
|
}
|
|
291
291
|
var Pa = h ? h.displayName || h.name : "", Ca = Pa ? J(Pa) : "";
|
|
292
292
|
return typeof h == "function" && ie.set(h, Ca), Ca;
|
|
@@ -318,9 +318,9 @@ function Jl() {
|
|
|
318
318
|
case s:
|
|
319
319
|
return ke(h.type, z, Z);
|
|
320
320
|
case o: {
|
|
321
|
-
var $ = h, re = $._payload,
|
|
321
|
+
var $ = h, re = $._payload, me = $._init;
|
|
322
322
|
try {
|
|
323
|
-
return ke(
|
|
323
|
+
return ke(me(re), z, Z);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -337,9 +337,9 @@ function Jl() {
|
|
|
337
337
|
}
|
|
338
338
|
function ea(h, z, Z, $, re) {
|
|
339
339
|
{
|
|
340
|
-
var
|
|
340
|
+
var me = Function.call.bind(Ue);
|
|
341
341
|
for (var te in h)
|
|
342
|
-
if (
|
|
342
|
+
if (me(h, te)) {
|
|
343
343
|
var Y = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof h[te] != "function") {
|
|
@@ -425,7 +425,7 @@ function Jl() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var za = function(h, z, Z, $, re,
|
|
428
|
+
var za = function(h, z, Z, $, re, me, te) {
|
|
429
429
|
var Y = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: r,
|
|
@@ -435,7 +435,7 @@ function Jl() {
|
|
|
435
435
|
ref: Z,
|
|
436
436
|
props: te,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
|
-
_owner:
|
|
438
|
+
_owner: me
|
|
439
439
|
};
|
|
440
440
|
return Y._store = {}, Object.defineProperty(Y._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
@@ -456,14 +456,14 @@ function Jl() {
|
|
|
456
456
|
};
|
|
457
457
|
function Ia(h, z, Z, $, re) {
|
|
458
458
|
{
|
|
459
|
-
var
|
|
459
|
+
var me, te = {}, Y = null, Ae = null;
|
|
460
460
|
Z !== void 0 && (xe(Z), Y = "" + Z), qe(z) && (xe(z.key), Y = "" + z.key), Ie(z) && (Ae = z.ref, Wa(z, re));
|
|
461
|
-
for (
|
|
462
|
-
Ue.call(z,
|
|
461
|
+
for (me in z)
|
|
462
|
+
Ue.call(z, me) && !Ke.hasOwnProperty(me) && (te[me] = z[me]);
|
|
463
463
|
if (h && h.defaultProps) {
|
|
464
464
|
var be = h.defaultProps;
|
|
465
|
-
for (
|
|
466
|
-
te[
|
|
465
|
+
for (me in be)
|
|
466
|
+
te[me] === void 0 && (te[me] = be[me]);
|
|
467
467
|
}
|
|
468
468
|
if (Y || Ae) {
|
|
469
469
|
var he = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
@@ -488,7 +488,7 @@ function Jl() {
|
|
|
488
488
|
function La() {
|
|
489
489
|
{
|
|
490
490
|
if (da.current) {
|
|
491
|
-
var h =
|
|
491
|
+
var h = N(da.current.type);
|
|
492
492
|
if (h)
|
|
493
493
|
return `
|
|
494
494
|
|
|
@@ -523,7 +523,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
523
523
|
return;
|
|
524
524
|
ba[Z] = !0;
|
|
525
525
|
var $ = "";
|
|
526
|
-
h && h._owner && h._owner !== da.current && ($ = " It was passed a child from " +
|
|
526
|
+
h && h._owner && h._owner !== da.current && ($ = " It was passed a child from " + N(h._owner.type) + "."), Ze(h), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, $), Ze(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function Se(h, z) {
|
|
@@ -540,7 +540,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
540
540
|
else if (h) {
|
|
541
541
|
var re = d(h);
|
|
542
542
|
if (typeof re == "function" && re !== h.entries)
|
|
543
|
-
for (var
|
|
543
|
+
for (var me = re.call(h), te; !(te = me.next()).done; )
|
|
544
544
|
fa(te.value) && Ra(te.value, z);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
@@ -560,11 +560,11 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
562
|
if (Z) {
|
|
563
|
-
var $ =
|
|
563
|
+
var $ = N(z);
|
|
564
564
|
ea(Z, h.props, "prop", $, h);
|
|
565
565
|
} else if (z.PropTypes !== void 0 && !ca) {
|
|
566
566
|
ca = !0;
|
|
567
|
-
var re =
|
|
567
|
+
var re = N(z);
|
|
568
568
|
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", re || "Unknown");
|
|
569
569
|
}
|
|
570
570
|
typeof z.getDefaultProps == "function" && !z.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var ta = {};
|
|
586
|
-
function Pe(h, z, Z, $, re,
|
|
586
|
+
function Pe(h, z, Z, $, re, me) {
|
|
587
587
|
{
|
|
588
588
|
var te = k(h);
|
|
589
589
|
if (!te) {
|
|
@@ -592,9 +592,9 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
592
592
|
var Ae = Ga();
|
|
593
593
|
Ae ? Y += Ae : Y += La();
|
|
594
594
|
var be;
|
|
595
|
-
h === null ? be = "null" : ve(h) ? be = "array" : h !== void 0 && h.$$typeof === r ? (be = "<" + (
|
|
595
|
+
h === null ? be = "null" : ve(h) ? be = "array" : h !== void 0 && h.$$typeof === r ? (be = "<" + (N(h.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : be = typeof h, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, Y);
|
|
596
596
|
}
|
|
597
|
-
var he = Ia(h, z, Z, re,
|
|
597
|
+
var he = Ia(h, z, Z, re, me);
|
|
598
598
|
if (he == null)
|
|
599
599
|
return he;
|
|
600
600
|
if (te) {
|
|
@@ -611,7 +611,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
611
611
|
Se(Je, h);
|
|
612
612
|
}
|
|
613
613
|
if (Ue.call(z, "key")) {
|
|
614
|
-
var Ca =
|
|
614
|
+
var Ca = N(h), Be = Object.keys(z).filter(function(wl) {
|
|
615
615
|
return wl !== "key";
|
|
616
616
|
}), $i = Be.length > 0 ? "{key: someKey, " + Be.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ta[Ca + $i]) {
|
|
@@ -816,18 +816,18 @@ function Xl() {
|
|
|
816
816
|
e.exports = n();
|
|
817
817
|
})(Yl, (function() {
|
|
818
818
|
var t = 1e3, n = 6e4, p = 36e5, g = "millisecond", b = "second", f = "minute", l = "hour", a = "day", i = "week", s = "month", o = "quarter", u = "year", m = "date", c = "Invalid Date", d = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) {
|
|
819
|
-
var
|
|
820
|
-
return "[" + E + (
|
|
821
|
-
} }, U = function(E,
|
|
822
|
-
var
|
|
823
|
-
return !
|
|
819
|
+
var D = ["th", "st", "nd", "rd"], L = E % 100;
|
|
820
|
+
return "[" + E + (D[(L - 20) % 10] || D[L] || D[0]) + "]";
|
|
821
|
+
} }, U = function(E, D, L) {
|
|
822
|
+
var A = String(E);
|
|
823
|
+
return !A || A.length >= D ? E : "" + Array(D + 1 - A.length).join(L) + E;
|
|
824
824
|
}, C = { s: U, z: function(E) {
|
|
825
|
-
var
|
|
826
|
-
return (
|
|
827
|
-
}, m: function E(
|
|
828
|
-
if (
|
|
829
|
-
var
|
|
830
|
-
return +(-(
|
|
825
|
+
var D = -E.utcOffset(), L = Math.abs(D), A = Math.floor(L / 60), O = L % 60;
|
|
826
|
+
return (D <= 0 ? "+" : "-") + U(A, 2, "0") + ":" + U(O, 2, "0");
|
|
827
|
+
}, m: function E(D, L) {
|
|
828
|
+
if (D.date() < L.date()) return -E(L, D);
|
|
829
|
+
var A = 12 * (L.year() - D.year()) + (L.month() - D.month()), O = D.clone().add(A, s), H = L - O < 0, W = D.clone().add(A + (H ? -1 : 1), s);
|
|
830
|
+
return +(-(A + (L - O) / (H ? O - W : W - O)) || 0);
|
|
831
831
|
}, a: function(E) {
|
|
832
832
|
return E < 0 ? Math.ceil(E) || 0 : Math.floor(E);
|
|
833
833
|
}, p: function(E) {
|
|
@@ -836,84 +836,84 @@ function Xl() {
|
|
|
836
836
|
return E === void 0;
|
|
837
837
|
} }, v = "en", x = {};
|
|
838
838
|
x[v] = _;
|
|
839
|
-
var S = "$isDayjsObject",
|
|
840
|
-
return E instanceof
|
|
841
|
-
}, B = function E(
|
|
842
|
-
var
|
|
843
|
-
if (!
|
|
844
|
-
if (typeof
|
|
845
|
-
var H =
|
|
846
|
-
x[H] && (
|
|
847
|
-
var W =
|
|
848
|
-
if (!
|
|
839
|
+
var S = "$isDayjsObject", R = function(E) {
|
|
840
|
+
return E instanceof F || !(!E || !E[S]);
|
|
841
|
+
}, B = function E(D, L, A) {
|
|
842
|
+
var O;
|
|
843
|
+
if (!D) return v;
|
|
844
|
+
if (typeof D == "string") {
|
|
845
|
+
var H = D.toLowerCase();
|
|
846
|
+
x[H] && (O = H), L && (x[H] = L, O = H);
|
|
847
|
+
var W = D.split("-");
|
|
848
|
+
if (!O && W.length > 1) return E(W[0]);
|
|
849
849
|
} else {
|
|
850
|
-
var
|
|
851
|
-
x[
|
|
850
|
+
var M = D.name;
|
|
851
|
+
x[M] = D, O = M;
|
|
852
852
|
}
|
|
853
|
-
return !
|
|
854
|
-
}, k = function(E,
|
|
855
|
-
if (
|
|
856
|
-
var
|
|
857
|
-
return
|
|
853
|
+
return !A && O && (v = O), O || !A && v;
|
|
854
|
+
}, k = function(E, D) {
|
|
855
|
+
if (R(E)) return E.clone();
|
|
856
|
+
var L = typeof D == "object" ? D : {};
|
|
857
|
+
return L.date = E, L.args = arguments, new F(L);
|
|
858
858
|
}, T = C;
|
|
859
|
-
T.l = B, T.i =
|
|
860
|
-
return k(E, { locale:
|
|
859
|
+
T.l = B, T.i = R, T.w = function(E, D) {
|
|
860
|
+
return k(E, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
861
861
|
};
|
|
862
|
-
var
|
|
863
|
-
function E(
|
|
864
|
-
this.$L = B(
|
|
862
|
+
var F = (function() {
|
|
863
|
+
function E(L) {
|
|
864
|
+
this.$L = B(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[S] = !0;
|
|
865
865
|
}
|
|
866
|
-
var
|
|
867
|
-
return
|
|
868
|
-
this.$d = (function(
|
|
869
|
-
var
|
|
870
|
-
if (
|
|
871
|
-
if (T.u(
|
|
872
|
-
if (
|
|
873
|
-
if (typeof
|
|
874
|
-
var W =
|
|
866
|
+
var D = E.prototype;
|
|
867
|
+
return D.parse = function(L) {
|
|
868
|
+
this.$d = (function(A) {
|
|
869
|
+
var O = A.date, H = A.utc;
|
|
870
|
+
if (O === null) return /* @__PURE__ */ new Date(NaN);
|
|
871
|
+
if (T.u(O)) return /* @__PURE__ */ new Date();
|
|
872
|
+
if (O instanceof Date) return new Date(O);
|
|
873
|
+
if (typeof O == "string" && !/Z$/i.test(O)) {
|
|
874
|
+
var W = O.match(d);
|
|
875
875
|
if (W) {
|
|
876
|
-
var
|
|
877
|
-
return H ? new Date(Date.UTC(W[1],
|
|
876
|
+
var M = W[2] - 1 || 0, G = (W[7] || "0").substring(0, 3);
|
|
877
|
+
return H ? new Date(Date.UTC(W[1], M, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, G)) : new Date(W[1], M, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, G);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
return new Date(
|
|
881
|
-
})(
|
|
882
|
-
},
|
|
883
|
-
var
|
|
884
|
-
this.$y =
|
|
885
|
-
},
|
|
880
|
+
return new Date(O);
|
|
881
|
+
})(L), this.init();
|
|
882
|
+
}, D.init = function() {
|
|
883
|
+
var L = this.$d;
|
|
884
|
+
this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds();
|
|
885
|
+
}, D.$utils = function() {
|
|
886
886
|
return T;
|
|
887
|
-
},
|
|
887
|
+
}, D.isValid = function() {
|
|
888
888
|
return this.$d.toString() !== c;
|
|
889
|
-
},
|
|
890
|
-
var
|
|
891
|
-
return this.startOf(
|
|
892
|
-
},
|
|
893
|
-
return k(
|
|
894
|
-
},
|
|
895
|
-
return this.endOf(
|
|
896
|
-
},
|
|
897
|
-
return T.u(
|
|
898
|
-
},
|
|
889
|
+
}, D.isSame = function(L, A) {
|
|
890
|
+
var O = k(L);
|
|
891
|
+
return this.startOf(A) <= O && O <= this.endOf(A);
|
|
892
|
+
}, D.isAfter = function(L, A) {
|
|
893
|
+
return k(L) < this.startOf(A);
|
|
894
|
+
}, D.isBefore = function(L, A) {
|
|
895
|
+
return this.endOf(A) < k(L);
|
|
896
|
+
}, D.$g = function(L, A, O) {
|
|
897
|
+
return T.u(L) ? this[A] : this.set(O, L);
|
|
898
|
+
}, D.unix = function() {
|
|
899
899
|
return Math.floor(this.valueOf() / 1e3);
|
|
900
|
-
},
|
|
900
|
+
}, D.valueOf = function() {
|
|
901
901
|
return this.$d.getTime();
|
|
902
|
-
},
|
|
903
|
-
var
|
|
904
|
-
var _e = T.w(
|
|
902
|
+
}, D.startOf = function(L, A) {
|
|
903
|
+
var O = this, H = !!T.u(A) || A, W = T.p(L), M = function(X, ie) {
|
|
904
|
+
var _e = T.w(O.$u ? Date.UTC(O.$y, ie, X) : new Date(O.$y, ie, X), O);
|
|
905
905
|
return H ? _e : _e.endOf(a);
|
|
906
906
|
}, G = function(X, ie) {
|
|
907
|
-
return T.w(
|
|
908
|
-
}, w = this.$W,
|
|
907
|
+
return T.w(O.toDate()[X].apply(O.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), O);
|
|
908
|
+
}, w = this.$W, P = this.$M, K = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
909
909
|
switch (W) {
|
|
910
910
|
case u:
|
|
911
|
-
return H ?
|
|
911
|
+
return H ? M(1, 0) : M(31, 11);
|
|
912
912
|
case s:
|
|
913
|
-
return H ?
|
|
913
|
+
return H ? M(1, P) : M(0, P + 1);
|
|
914
914
|
case i:
|
|
915
915
|
var Q = this.$locale().weekStart || 0, J = (w < Q ? w + 7 : w) - Q;
|
|
916
|
-
return
|
|
916
|
+
return M(H ? K - J : K + (6 - J), P);
|
|
917
917
|
case a:
|
|
918
918
|
case m:
|
|
919
919
|
return G(q + "Hours", 0);
|
|
@@ -926,41 +926,41 @@ function Xl() {
|
|
|
926
926
|
default:
|
|
927
927
|
return this.clone();
|
|
928
928
|
}
|
|
929
|
-
},
|
|
930
|
-
return this.startOf(
|
|
931
|
-
},
|
|
932
|
-
var
|
|
929
|
+
}, D.endOf = function(L) {
|
|
930
|
+
return this.startOf(L, !1);
|
|
931
|
+
}, D.$set = function(L, A) {
|
|
932
|
+
var O, H = T.p(L), W = "set" + (this.$u ? "UTC" : ""), M = (O = {}, O[a] = W + "Date", O[m] = W + "Date", O[s] = W + "Month", O[u] = W + "FullYear", O[l] = W + "Hours", O[f] = W + "Minutes", O[b] = W + "Seconds", O[g] = W + "Milliseconds", O)[H], G = H === a ? this.$D + (A - this.$W) : A;
|
|
933
933
|
if (H === s || H === u) {
|
|
934
934
|
var w = this.clone().set(m, 1);
|
|
935
|
-
w.$d[
|
|
936
|
-
} else
|
|
935
|
+
w.$d[M](G), w.init(), this.$d = w.set(m, Math.min(this.$D, w.daysInMonth())).$d;
|
|
936
|
+
} else M && this.$d[M](G);
|
|
937
937
|
return this.init(), this;
|
|
938
|
-
},
|
|
939
|
-
return this.clone().$set(
|
|
940
|
-
},
|
|
941
|
-
return this[T.p(
|
|
942
|
-
},
|
|
943
|
-
var
|
|
944
|
-
|
|
945
|
-
var W = T.p(
|
|
938
|
+
}, D.set = function(L, A) {
|
|
939
|
+
return this.clone().$set(L, A);
|
|
940
|
+
}, D.get = function(L) {
|
|
941
|
+
return this[T.p(L)]();
|
|
942
|
+
}, D.add = function(L, A) {
|
|
943
|
+
var O, H = this;
|
|
944
|
+
L = Number(L);
|
|
945
|
+
var W = T.p(A), M = function(P) {
|
|
946
946
|
var K = k(H);
|
|
947
|
-
return T.w(K.date(K.date() + Math.round(
|
|
947
|
+
return T.w(K.date(K.date() + Math.round(P * L)), H);
|
|
948
948
|
};
|
|
949
|
-
if (W === s) return this.set(s, this.$M +
|
|
950
|
-
if (W === u) return this.set(u, this.$y +
|
|
951
|
-
if (W === a) return
|
|
952
|
-
if (W === i) return
|
|
953
|
-
var G = (
|
|
949
|
+
if (W === s) return this.set(s, this.$M + L);
|
|
950
|
+
if (W === u) return this.set(u, this.$y + L);
|
|
951
|
+
if (W === a) return M(1);
|
|
952
|
+
if (W === i) return M(7);
|
|
953
|
+
var G = (O = {}, O[f] = n, O[l] = p, O[b] = t, O)[W] || 1, w = this.$d.getTime() + L * G;
|
|
954
954
|
return T.w(w, this);
|
|
955
|
-
},
|
|
956
|
-
return this.add(-1 *
|
|
957
|
-
},
|
|
958
|
-
var
|
|
959
|
-
if (!this.isValid()) return
|
|
960
|
-
var H =
|
|
961
|
-
return ie && (ie[_e] || ie(
|
|
955
|
+
}, D.subtract = function(L, A) {
|
|
956
|
+
return this.add(-1 * L, A);
|
|
957
|
+
}, D.format = function(L) {
|
|
958
|
+
var A = this, O = this.$locale();
|
|
959
|
+
if (!this.isValid()) return O.invalidDate || c;
|
|
960
|
+
var H = L || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), M = this.$H, G = this.$m, w = this.$M, P = O.weekdays, K = O.months, q = O.meridiem, Q = function(ie, _e, ye, le) {
|
|
961
|
+
return ie && (ie[_e] || ie(A, H)) || ye[_e].slice(0, le);
|
|
962
962
|
}, J = function(ie) {
|
|
963
|
-
return T.s(
|
|
963
|
+
return T.s(M % 12 || 12, ie, "0");
|
|
964
964
|
}, X = q || function(ie, _e, ye) {
|
|
965
965
|
var le = ie < 12 ? "AM" : "PM";
|
|
966
966
|
return ye ? le.toLowerCase() : le;
|
|
@@ -969,64 +969,64 @@ function Xl() {
|
|
|
969
969
|
return _e || (function(ye) {
|
|
970
970
|
switch (ye) {
|
|
971
971
|
case "YY":
|
|
972
|
-
return String(
|
|
972
|
+
return String(A.$y).slice(-2);
|
|
973
973
|
case "YYYY":
|
|
974
|
-
return T.s(
|
|
974
|
+
return T.s(A.$y, 4, "0");
|
|
975
975
|
case "M":
|
|
976
976
|
return w + 1;
|
|
977
977
|
case "MM":
|
|
978
978
|
return T.s(w + 1, 2, "0");
|
|
979
979
|
case "MMM":
|
|
980
|
-
return Q(
|
|
980
|
+
return Q(O.monthsShort, w, K, 3);
|
|
981
981
|
case "MMMM":
|
|
982
982
|
return Q(K, w);
|
|
983
983
|
case "D":
|
|
984
|
-
return
|
|
984
|
+
return A.$D;
|
|
985
985
|
case "DD":
|
|
986
|
-
return T.s(
|
|
986
|
+
return T.s(A.$D, 2, "0");
|
|
987
987
|
case "d":
|
|
988
|
-
return String(
|
|
988
|
+
return String(A.$W);
|
|
989
989
|
case "dd":
|
|
990
|
-
return Q(
|
|
990
|
+
return Q(O.weekdaysMin, A.$W, P, 2);
|
|
991
991
|
case "ddd":
|
|
992
|
-
return Q(
|
|
992
|
+
return Q(O.weekdaysShort, A.$W, P, 3);
|
|
993
993
|
case "dddd":
|
|
994
|
-
return
|
|
994
|
+
return P[A.$W];
|
|
995
995
|
case "H":
|
|
996
|
-
return String(
|
|
996
|
+
return String(M);
|
|
997
997
|
case "HH":
|
|
998
|
-
return T.s(
|
|
998
|
+
return T.s(M, 2, "0");
|
|
999
999
|
case "h":
|
|
1000
1000
|
return J(1);
|
|
1001
1001
|
case "hh":
|
|
1002
1002
|
return J(2);
|
|
1003
1003
|
case "a":
|
|
1004
|
-
return X(
|
|
1004
|
+
return X(M, G, !0);
|
|
1005
1005
|
case "A":
|
|
1006
|
-
return X(
|
|
1006
|
+
return X(M, G, !1);
|
|
1007
1007
|
case "m":
|
|
1008
1008
|
return String(G);
|
|
1009
1009
|
case "mm":
|
|
1010
1010
|
return T.s(G, 2, "0");
|
|
1011
1011
|
case "s":
|
|
1012
|
-
return String(
|
|
1012
|
+
return String(A.$s);
|
|
1013
1013
|
case "ss":
|
|
1014
|
-
return T.s(
|
|
1014
|
+
return T.s(A.$s, 2, "0");
|
|
1015
1015
|
case "SSS":
|
|
1016
|
-
return T.s(
|
|
1016
|
+
return T.s(A.$ms, 3, "0");
|
|
1017
1017
|
case "Z":
|
|
1018
1018
|
return W;
|
|
1019
1019
|
}
|
|
1020
1020
|
return null;
|
|
1021
1021
|
})(ie) || W.replace(":", "");
|
|
1022
1022
|
}));
|
|
1023
|
-
},
|
|
1023
|
+
}, D.utcOffset = function() {
|
|
1024
1024
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1025
|
-
},
|
|
1026
|
-
var H, W = this,
|
|
1025
|
+
}, D.diff = function(L, A, O) {
|
|
1026
|
+
var H, W = this, M = T.p(A), G = k(L), w = (G.utcOffset() - this.utcOffset()) * n, P = this - G, K = function() {
|
|
1027
1027
|
return T.m(W, G);
|
|
1028
1028
|
};
|
|
1029
|
-
switch (
|
|
1029
|
+
switch (M) {
|
|
1030
1030
|
case u:
|
|
1031
1031
|
H = K() / 12;
|
|
1032
1032
|
break;
|
|
@@ -1037,51 +1037,51 @@ function Xl() {
|
|
|
1037
1037
|
H = K() / 3;
|
|
1038
1038
|
break;
|
|
1039
1039
|
case i:
|
|
1040
|
-
H = (
|
|
1040
|
+
H = (P - w) / 6048e5;
|
|
1041
1041
|
break;
|
|
1042
1042
|
case a:
|
|
1043
|
-
H = (
|
|
1043
|
+
H = (P - w) / 864e5;
|
|
1044
1044
|
break;
|
|
1045
1045
|
case l:
|
|
1046
|
-
H =
|
|
1046
|
+
H = P / p;
|
|
1047
1047
|
break;
|
|
1048
1048
|
case f:
|
|
1049
|
-
H =
|
|
1049
|
+
H = P / n;
|
|
1050
1050
|
break;
|
|
1051
1051
|
case b:
|
|
1052
|
-
H =
|
|
1052
|
+
H = P / t;
|
|
1053
1053
|
break;
|
|
1054
1054
|
default:
|
|
1055
|
-
H =
|
|
1055
|
+
H = P;
|
|
1056
1056
|
}
|
|
1057
|
-
return
|
|
1058
|
-
},
|
|
1057
|
+
return O ? H : T.a(H);
|
|
1058
|
+
}, D.daysInMonth = function() {
|
|
1059
1059
|
return this.endOf(s).$D;
|
|
1060
|
-
},
|
|
1060
|
+
}, D.$locale = function() {
|
|
1061
1061
|
return x[this.$L];
|
|
1062
|
-
},
|
|
1063
|
-
if (!
|
|
1064
|
-
var
|
|
1065
|
-
return H && (
|
|
1066
|
-
},
|
|
1062
|
+
}, D.locale = function(L, A) {
|
|
1063
|
+
if (!L) return this.$L;
|
|
1064
|
+
var O = this.clone(), H = B(L, A, !0);
|
|
1065
|
+
return H && (O.$L = H), O;
|
|
1066
|
+
}, D.clone = function() {
|
|
1067
1067
|
return T.w(this.$d, this);
|
|
1068
|
-
},
|
|
1068
|
+
}, D.toDate = function() {
|
|
1069
1069
|
return new Date(this.valueOf());
|
|
1070
|
-
},
|
|
1070
|
+
}, D.toJSON = function() {
|
|
1071
1071
|
return this.isValid() ? this.toISOString() : null;
|
|
1072
|
-
},
|
|
1072
|
+
}, D.toISOString = function() {
|
|
1073
1073
|
return this.$d.toISOString();
|
|
1074
|
-
},
|
|
1074
|
+
}, D.toString = function() {
|
|
1075
1075
|
return this.$d.toUTCString();
|
|
1076
1076
|
}, E;
|
|
1077
|
-
})(),
|
|
1078
|
-
return k.prototype =
|
|
1079
|
-
|
|
1080
|
-
return this.$g(
|
|
1077
|
+
})(), N = F.prototype;
|
|
1078
|
+
return k.prototype = N, [["$ms", g], ["$s", b], ["$m", f], ["$H", l], ["$W", a], ["$M", s], ["$y", u], ["$D", m]].forEach((function(E) {
|
|
1079
|
+
N[E[1]] = function(D) {
|
|
1080
|
+
return this.$g(D, E[0], E[1]);
|
|
1081
1081
|
};
|
|
1082
|
-
})), k.extend = function(E,
|
|
1083
|
-
return E.$i || (E(
|
|
1084
|
-
}, k.locale = B, k.isDayjs =
|
|
1082
|
+
})), k.extend = function(E, D) {
|
|
1083
|
+
return E.$i || (E(D, F, k), E.$i = !0), k;
|
|
1084
|
+
}, k.locale = B, k.isDayjs = R, k.unix = function(E) {
|
|
1085
1085
|
return k(1e3 * E);
|
|
1086
1086
|
}, k.en = x[v], k.Ls = x, k.p = {}, k;
|
|
1087
1087
|
}));
|
|
@@ -1264,8 +1264,8 @@ function ae() {
|
|
|
1264
1264
|
var U = this.words, C = _.words, v = this.sigBytes, x = _.sigBytes;
|
|
1265
1265
|
if (this.clamp(), v % 4)
|
|
1266
1266
|
for (var S = 0; S < x; S++) {
|
|
1267
|
-
var
|
|
1268
|
-
U[v + S >>> 2] |=
|
|
1267
|
+
var R = C[S >>> 2] >>> 24 - S % 4 * 8 & 255;
|
|
1268
|
+
U[v + S >>> 2] |= R << 24 - (v + S) % 4 * 8;
|
|
1269
1269
|
}
|
|
1270
1270
|
else
|
|
1271
1271
|
for (var B = 0; B < x; B += 4)
|
|
@@ -1468,12 +1468,12 @@ function ae() {
|
|
|
1468
1468
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1469
1469
|
*/
|
|
1470
1470
|
_process: function(_) {
|
|
1471
|
-
var U, C = this._data, v = C.words, x = C.sigBytes, S = this.blockSize,
|
|
1471
|
+
var U, C = this._data, v = C.words, x = C.sigBytes, S = this.blockSize, R = S * 4, B = x / R;
|
|
1472
1472
|
_ ? B = n.ceil(B) : B = n.max((B | 0) - this._minBufferSize, 0);
|
|
1473
1473
|
var k = B * S, T = n.min(k * 4, x);
|
|
1474
1474
|
if (k) {
|
|
1475
|
-
for (var
|
|
1476
|
-
this._doProcessBlock(v,
|
|
1475
|
+
for (var F = 0; F < k; F += S)
|
|
1476
|
+
this._doProcessBlock(v, F);
|
|
1477
1477
|
U = v.splice(0, k), C.sigBytes -= T;
|
|
1478
1478
|
}
|
|
1479
1479
|
return new s.init(U, T);
|
|
@@ -2128,8 +2128,8 @@ function Da() {
|
|
|
2128
2128
|
var _ = d + y, U = c[_];
|
|
2129
2129
|
c[_] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2130
2130
|
}
|
|
2131
|
-
var C = this._hash.words, v = c[d + 0], x = c[d + 1], S = c[d + 2],
|
|
2132
|
-
|
|
2131
|
+
var C = this._hash.words, v = c[d + 0], x = c[d + 1], S = c[d + 2], R = c[d + 3], B = c[d + 4], k = c[d + 5], T = c[d + 6], F = c[d + 7], N = c[d + 8], E = c[d + 9], D = c[d + 10], L = c[d + 11], A = c[d + 12], O = c[d + 13], H = c[d + 14], W = c[d + 15], M = C[0], G = C[1], w = C[2], P = C[3];
|
|
2132
|
+
M = s(M, G, w, P, v, 7, a[0]), P = s(P, M, G, w, x, 12, a[1]), w = s(w, P, M, G, S, 17, a[2]), G = s(G, w, P, M, R, 22, a[3]), M = s(M, G, w, P, B, 7, a[4]), P = s(P, M, G, w, k, 12, a[5]), w = s(w, P, M, G, T, 17, a[6]), G = s(G, w, P, M, F, 22, a[7]), M = s(M, G, w, P, N, 7, a[8]), P = s(P, M, G, w, E, 12, a[9]), w = s(w, P, M, G, D, 17, a[10]), G = s(G, w, P, M, L, 22, a[11]), M = s(M, G, w, P, A, 7, a[12]), P = s(P, M, G, w, O, 12, a[13]), w = s(w, P, M, G, H, 17, a[14]), G = s(G, w, P, M, W, 22, a[15]), M = o(M, G, w, P, x, 5, a[16]), P = o(P, M, G, w, T, 9, a[17]), w = o(w, P, M, G, L, 14, a[18]), G = o(G, w, P, M, v, 20, a[19]), M = o(M, G, w, P, k, 5, a[20]), P = o(P, M, G, w, D, 9, a[21]), w = o(w, P, M, G, W, 14, a[22]), G = o(G, w, P, M, B, 20, a[23]), M = o(M, G, w, P, E, 5, a[24]), P = o(P, M, G, w, H, 9, a[25]), w = o(w, P, M, G, R, 14, a[26]), G = o(G, w, P, M, N, 20, a[27]), M = o(M, G, w, P, O, 5, a[28]), P = o(P, M, G, w, S, 9, a[29]), w = o(w, P, M, G, F, 14, a[30]), G = o(G, w, P, M, A, 20, a[31]), M = u(M, G, w, P, k, 4, a[32]), P = u(P, M, G, w, N, 11, a[33]), w = u(w, P, M, G, L, 16, a[34]), G = u(G, w, P, M, H, 23, a[35]), M = u(M, G, w, P, x, 4, a[36]), P = u(P, M, G, w, B, 11, a[37]), w = u(w, P, M, G, F, 16, a[38]), G = u(G, w, P, M, D, 23, a[39]), M = u(M, G, w, P, O, 4, a[40]), P = u(P, M, G, w, v, 11, a[41]), w = u(w, P, M, G, R, 16, a[42]), G = u(G, w, P, M, T, 23, a[43]), M = u(M, G, w, P, E, 4, a[44]), P = u(P, M, G, w, A, 11, a[45]), w = u(w, P, M, G, W, 16, a[46]), G = u(G, w, P, M, S, 23, a[47]), M = m(M, G, w, P, v, 6, a[48]), P = m(P, M, G, w, F, 10, a[49]), w = m(w, P, M, G, H, 15, a[50]), G = m(G, w, P, M, k, 21, a[51]), M = m(M, G, w, P, A, 6, a[52]), P = m(P, M, G, w, R, 10, a[53]), w = m(w, P, M, G, D, 15, a[54]), G = m(G, w, P, M, x, 21, a[55]), M = m(M, G, w, P, N, 6, a[56]), P = m(P, M, G, w, W, 10, a[57]), w = m(w, P, M, G, T, 15, a[58]), G = m(G, w, P, M, O, 21, a[59]), M = m(M, G, w, P, B, 6, a[60]), P = m(P, M, G, w, L, 10, a[61]), w = m(w, P, M, G, S, 15, a[62]), G = m(G, w, P, M, E, 21, a[63]), C[0] = C[0] + M | 0, C[1] = C[1] + G | 0, C[2] = C[2] + w | 0, C[3] = C[3] + P | 0;
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
2135
|
var c = this._data, d = c.words, y = this._nDataBytes * 8, _ = c.sigBytes * 8;
|
|
@@ -2137,8 +2137,8 @@ function Da() {
|
|
|
2137
2137
|
var U = n.floor(y / 4294967296), C = y;
|
|
2138
2138
|
d[(_ + 64 >>> 9 << 4) + 15] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, d[(_ + 64 >>> 9 << 4) + 14] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, c.sigBytes = (d.length + 1) * 4, this._process();
|
|
2139
2139
|
for (var v = this._hash, x = v.words, S = 0; S < 4; S++) {
|
|
2140
|
-
var
|
|
2141
|
-
x[S] = (
|
|
2140
|
+
var R = x[S];
|
|
2141
|
+
x[S] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
|
|
2142
2142
|
}
|
|
2143
2143
|
return v;
|
|
2144
2144
|
},
|
|
@@ -2238,15 +2238,15 @@ function gt() {
|
|
|
2238
2238
|
this._hash = new b.init(a.slice(0));
|
|
2239
2239
|
},
|
|
2240
2240
|
_doProcessBlock: function(u, m) {
|
|
2241
|
-
for (var c = this._hash.words, d = c[0], y = c[1], _ = c[2], U = c[3], C = c[4], v = c[5], x = c[6], S = c[7],
|
|
2242
|
-
if (
|
|
2243
|
-
s[
|
|
2241
|
+
for (var c = this._hash.words, d = c[0], y = c[1], _ = c[2], U = c[3], C = c[4], v = c[5], x = c[6], S = c[7], R = 0; R < 64; R++) {
|
|
2242
|
+
if (R < 16)
|
|
2243
|
+
s[R] = u[m + R] | 0;
|
|
2244
2244
|
else {
|
|
2245
|
-
var B = s[
|
|
2246
|
-
s[
|
|
2245
|
+
var B = s[R - 15], k = (B << 25 | B >>> 7) ^ (B << 14 | B >>> 18) ^ B >>> 3, T = s[R - 2], F = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
|
|
2246
|
+
s[R] = k + s[R - 7] + F + s[R - 16];
|
|
2247
2247
|
}
|
|
2248
|
-
var
|
|
2249
|
-
S = x, x = v, v = C, C = U +
|
|
2248
|
+
var N = C & v ^ ~C & x, E = d & y ^ d & _ ^ y & _, D = (d << 30 | d >>> 2) ^ (d << 19 | d >>> 13) ^ (d << 10 | d >>> 22), L = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), A = S + L + N + i[R] + s[R], O = D + E;
|
|
2249
|
+
S = x, x = v, v = C, C = U + A | 0, U = _, _ = y, y = d, d = A + O | 0;
|
|
2250
2250
|
}
|
|
2251
2251
|
c[0] = c[0] + d | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] + U | 0, c[4] = c[4] + C | 0, c[5] = c[5] + v | 0, c[6] = c[6] + x | 0, c[7] = c[7] + S | 0;
|
|
2252
2252
|
},
|
|
@@ -2405,7 +2405,7 @@ function el() {
|
|
|
2405
2405
|
]);
|
|
2406
2406
|
},
|
|
2407
2407
|
_doProcessBlock: function(m, c) {
|
|
2408
|
-
for (var d = this._hash.words, y = d[0], _ = d[1], U = d[2], C = d[3], v = d[4], x = d[5], S = d[6],
|
|
2408
|
+
for (var d = this._hash.words, y = d[0], _ = d[1], U = d[2], C = d[3], v = d[4], x = d[5], S = d[6], R = d[7], B = y.high, k = y.low, T = _.high, F = _.low, N = U.high, E = U.low, D = C.high, L = C.low, A = v.high, O = v.low, H = x.high, W = x.low, M = S.high, G = S.low, w = R.high, P = R.low, K = B, q = k, Q = T, J = F, X = N, ie = E, _e = D, ye = L, le = A, ce = O, ke = H, Ue = W, ze = M, Ce = G, Ge = w, ea = P, Me = 0; Me < 80; Me++) {
|
|
2409
2409
|
var ve, Oe, aa = o[Me];
|
|
2410
2410
|
if (Me < 16)
|
|
2411
2411
|
Oe = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
|
|
@@ -2416,7 +2416,7 @@ function el() {
|
|
|
2416
2416
|
var ca = le & ke ^ ~le & ze, fa = ce & Ue ^ ~ce & Ce, La = K & Q ^ K & X ^ Q & X, Ga = q & J ^ q & ie ^ J & ie, ba = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ma = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Ra = (le >>> 14 | ce << 18) ^ (le >>> 18 | ce << 14) ^ (le << 23 | ce >>> 9), Se = (ce >>> 14 | le << 18) ^ (ce >>> 18 | le << 14) ^ (ce << 23 | le >>> 9), V = s[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Ra + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + Oe + (Pe >>> 0 < ve >>> 0 ? 1 : 0), Ya = Ma + Ga, qi = ba + La + (Ya >>> 0 < Ma >>> 0 ? 1 : 0);
|
|
2417
2417
|
Ge = ze, ea = Ce, ze = ke, Ce = Ue, ke = le, Ue = ce, ce = ye + Pe | 0, le = _e + na + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, _e = X, ye = ie, X = Q, ie = J, Q = K, J = q, q = Pe + Ya | 0, K = na + qi + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
|
|
2418
2418
|
}
|
|
2419
|
-
k = y.low = k + q, y.high = B + K + (k >>> 0 < q >>> 0 ? 1 : 0),
|
|
2419
|
+
k = y.low = k + q, y.high = B + K + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + J, _.high = T + Q + (F >>> 0 < J >>> 0 ? 1 : 0), E = U.low = E + ie, U.high = N + X + (E >>> 0 < ie >>> 0 ? 1 : 0), L = C.low = L + ye, C.high = D + _e + (L >>> 0 < ye >>> 0 ? 1 : 0), O = v.low = O + ce, v.high = A + le + (O >>> 0 < ce >>> 0 ? 1 : 0), W = x.low = W + Ue, x.high = H + ke + (W >>> 0 < Ue >>> 0 ? 1 : 0), G = S.low = G + Ce, S.high = M + ze + (G >>> 0 < Ce >>> 0 ? 1 : 0), P = R.low = P + ea, R.high = w + Ge + (P >>> 0 < ea >>> 0 ? 1 : 0);
|
|
2420
2420
|
},
|
|
2421
2421
|
_doFinalize: function() {
|
|
2422
2422
|
var m = this._data, c = m.words, d = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
@@ -2483,14 +2483,14 @@ function Tr() {
|
|
|
2483
2483
|
for (var y = 0; y < 5; y++)
|
|
2484
2484
|
o[d + 5 * y] = y + (2 * d + 3 * y) % 5 * 5;
|
|
2485
2485
|
for (var v = 1, x = 0; x < 24; x++) {
|
|
2486
|
-
for (var S = 0,
|
|
2486
|
+
for (var S = 0, R = 0, B = 0; B < 7; B++) {
|
|
2487
2487
|
if (v & 1) {
|
|
2488
2488
|
var k = (1 << B) - 1;
|
|
2489
|
-
k < 32 ?
|
|
2489
|
+
k < 32 ? R ^= 1 << k : S ^= 1 << k - 32;
|
|
2490
2490
|
}
|
|
2491
2491
|
v & 128 ? v = v << 1 ^ 113 : v <<= 1;
|
|
2492
2492
|
}
|
|
2493
|
-
u[x] = a.create(S,
|
|
2493
|
+
u[x] = a.create(S, R);
|
|
2494
2494
|
}
|
|
2495
2495
|
})();
|
|
2496
2496
|
var m = [];
|
|
@@ -2522,34 +2522,34 @@ function Tr() {
|
|
|
2522
2522
|
var S = _[C];
|
|
2523
2523
|
S.high ^= x, S.low ^= v;
|
|
2524
2524
|
}
|
|
2525
|
-
for (var
|
|
2525
|
+
for (var R = 0; R < 24; R++) {
|
|
2526
2526
|
for (var B = 0; B < 5; B++) {
|
|
2527
|
-
for (var k = 0, T = 0,
|
|
2528
|
-
var S = _[B + 5 *
|
|
2527
|
+
for (var k = 0, T = 0, F = 0; F < 5; F++) {
|
|
2528
|
+
var S = _[B + 5 * F];
|
|
2529
2529
|
k ^= S.high, T ^= S.low;
|
|
2530
2530
|
}
|
|
2531
|
-
var
|
|
2532
|
-
|
|
2531
|
+
var N = m[B];
|
|
2532
|
+
N.high = k, N.low = T;
|
|
2533
2533
|
}
|
|
2534
2534
|
for (var B = 0; B < 5; B++)
|
|
2535
|
-
for (var E = m[(B + 4) % 5],
|
|
2536
|
-
var S = _[B + 5 *
|
|
2535
|
+
for (var E = m[(B + 4) % 5], D = m[(B + 1) % 5], L = D.high, A = D.low, k = E.high ^ (L << 1 | A >>> 31), T = E.low ^ (A << 1 | L >>> 31), F = 0; F < 5; F++) {
|
|
2536
|
+
var S = _[B + 5 * F];
|
|
2537
2537
|
S.high ^= k, S.low ^= T;
|
|
2538
2538
|
}
|
|
2539
|
-
for (var
|
|
2540
|
-
var k, T, S = _[
|
|
2541
|
-
|
|
2542
|
-
var G = m[o[
|
|
2539
|
+
for (var O = 1; O < 25; O++) {
|
|
2540
|
+
var k, T, S = _[O], H = S.high, W = S.low, M = s[O];
|
|
2541
|
+
M < 32 ? (k = H << M | W >>> 32 - M, T = W << M | H >>> 32 - M) : (k = W << M - 32 | H >>> 64 - M, T = H << M - 32 | W >>> 64 - M);
|
|
2542
|
+
var G = m[o[O]];
|
|
2543
2543
|
G.high = k, G.low = T;
|
|
2544
2544
|
}
|
|
2545
|
-
var w = m[0],
|
|
2546
|
-
w.high =
|
|
2545
|
+
var w = m[0], P = _[0];
|
|
2546
|
+
w.high = P.high, w.low = P.low;
|
|
2547
2547
|
for (var B = 0; B < 5; B++)
|
|
2548
|
-
for (var
|
|
2549
|
-
var
|
|
2548
|
+
for (var F = 0; F < 5; F++) {
|
|
2549
|
+
var O = B + 5 * F, S = _[O], K = m[O], q = m[(B + 1) % 5 + 5 * F], Q = m[(B + 2) % 5 + 5 * F];
|
|
2550
2550
|
S.high = K.high ^ ~q.high & Q.high, S.low = K.low ^ ~q.low & Q.low;
|
|
2551
2551
|
}
|
|
2552
|
-
var S = _[0], J = u[
|
|
2552
|
+
var S = _[0], J = u[R];
|
|
2553
2553
|
S.high ^= J.high, S.low ^= J.low;
|
|
2554
2554
|
}
|
|
2555
2555
|
},
|
|
@@ -2558,8 +2558,8 @@ function Tr() {
|
|
|
2558
2558
|
this._nDataBytes * 8;
|
|
2559
2559
|
var _ = d.sigBytes * 8, U = this.blockSize * 32;
|
|
2560
2560
|
y[_ >>> 5] |= 1 << 24 - _ % 32, y[(n.ceil((_ + 1) / U) * U >>> 5) - 1] |= 128, d.sigBytes = y.length * 4, this._process();
|
|
2561
|
-
for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, S = [],
|
|
2562
|
-
var B = C[
|
|
2561
|
+
for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, S = [], R = 0; R < x; R++) {
|
|
2562
|
+
var B = C[R], k = B.high, T = B.low;
|
|
2563
2563
|
k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, T = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, S.push(T), S.push(k);
|
|
2564
2564
|
}
|
|
2565
2565
|
return new b.init(S, v);
|
|
@@ -2911,22 +2911,22 @@ function xr() {
|
|
|
2911
2911
|
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2912
2912
|
},
|
|
2913
2913
|
_doProcessBlock: function(x, S) {
|
|
2914
|
-
for (var
|
|
2915
|
-
var B = S +
|
|
2914
|
+
for (var R = 0; R < 16; R++) {
|
|
2915
|
+
var B = S + R, k = x[B];
|
|
2916
2916
|
x[B] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2917
2917
|
}
|
|
2918
|
-
var T = this._hash.words,
|
|
2919
|
-
w =
|
|
2920
|
-
for (var J,
|
|
2921
|
-
J =
|
|
2922
|
-
J = T[1] + W + q | 0, T[1] = T[2] +
|
|
2918
|
+
var T = this._hash.words, F = u.words, N = m.words, E = a.words, D = i.words, L = s.words, A = o.words, O, H, W, M, G, w, P, K, q, Q;
|
|
2919
|
+
w = O = T[0], P = H = T[1], K = W = T[2], q = M = T[3], Q = G = T[4];
|
|
2920
|
+
for (var J, R = 0; R < 80; R += 1)
|
|
2921
|
+
J = O + x[S + E[R]] | 0, R < 16 ? J += d(H, W, M) + F[0] : R < 32 ? J += y(H, W, M) + F[1] : R < 48 ? J += _(H, W, M) + F[2] : R < 64 ? J += U(H, W, M) + F[3] : J += C(H, W, M) + F[4], J = J | 0, J = v(J, L[R]), J = J + G | 0, O = G, G = M, M = v(W, 10), W = H, H = J, J = w + x[S + D[R]] | 0, R < 16 ? J += C(P, K, q) + N[0] : R < 32 ? J += U(P, K, q) + N[1] : R < 48 ? J += _(P, K, q) + N[2] : R < 64 ? J += y(P, K, q) + N[3] : J += d(P, K, q) + N[4], J = J | 0, J = v(J, A[R]), J = J + Q | 0, w = Q, Q = q, q = v(K, 10), K = P, P = J;
|
|
2922
|
+
J = T[1] + W + q | 0, T[1] = T[2] + M + Q | 0, T[2] = T[3] + G + w | 0, T[3] = T[4] + O + P | 0, T[4] = T[0] + H + K | 0, T[0] = J;
|
|
2923
2923
|
},
|
|
2924
2924
|
_doFinalize: function() {
|
|
2925
|
-
var x = this._data, S = x.words,
|
|
2926
|
-
S[B >>> 5] |= 128 << 24 - B % 32, S[(B + 64 >>> 9 << 4) + 14] = (
|
|
2927
|
-
for (var k = this._hash, T = k.words,
|
|
2928
|
-
var
|
|
2929
|
-
T[
|
|
2925
|
+
var x = this._data, S = x.words, R = this._nDataBytes * 8, B = x.sigBytes * 8;
|
|
2926
|
+
S[B >>> 5] |= 128 << 24 - B % 32, S[(B + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, x.sigBytes = (S.length + 1) * 4, this._process();
|
|
2927
|
+
for (var k = this._hash, T = k.words, F = 0; F < 5; F++) {
|
|
2928
|
+
var N = T[F];
|
|
2929
|
+
T[F] = (N << 8 | N >>> 24) & 16711935 | (N << 24 | N >>> 8) & 4278255360;
|
|
2930
2930
|
}
|
|
2931
2931
|
return k;
|
|
2932
2932
|
},
|
|
@@ -2935,20 +2935,20 @@ function xr() {
|
|
|
2935
2935
|
return x._hash = this._hash.clone(), x;
|
|
2936
2936
|
}
|
|
2937
2937
|
});
|
|
2938
|
-
function d(x, S,
|
|
2939
|
-
return x ^ S ^
|
|
2938
|
+
function d(x, S, R) {
|
|
2939
|
+
return x ^ S ^ R;
|
|
2940
2940
|
}
|
|
2941
|
-
function y(x, S,
|
|
2942
|
-
return x & S | ~x &
|
|
2941
|
+
function y(x, S, R) {
|
|
2942
|
+
return x & S | ~x & R;
|
|
2943
2943
|
}
|
|
2944
|
-
function _(x, S,
|
|
2945
|
-
return (x | ~S) ^
|
|
2944
|
+
function _(x, S, R) {
|
|
2945
|
+
return (x | ~S) ^ R;
|
|
2946
2946
|
}
|
|
2947
|
-
function U(x, S,
|
|
2948
|
-
return x &
|
|
2947
|
+
function U(x, S, R) {
|
|
2948
|
+
return x & R | S & ~R;
|
|
2949
2949
|
}
|
|
2950
|
-
function C(x, S,
|
|
2951
|
-
return x ^ (S | ~
|
|
2950
|
+
function C(x, S, R) {
|
|
2951
|
+
return x ^ (S | ~R);
|
|
2952
2952
|
}
|
|
2953
2953
|
function v(x, S) {
|
|
2954
2954
|
return x << S | x >>> 32 - S;
|
|
@@ -3086,9 +3086,9 @@ function Er() {
|
|
|
3086
3086
|
for (var u = this.cfg, m = a.create(u.hasher, s), c = b.create(), d = b.create([1]), y = c.words, _ = d.words, U = u.keySize, C = u.iterations; y.length < U; ) {
|
|
3087
3087
|
var v = m.update(o).finalize(d);
|
|
3088
3088
|
m.reset();
|
|
3089
|
-
for (var x = v.words, S = x.length,
|
|
3090
|
-
|
|
3091
|
-
for (var k =
|
|
3089
|
+
for (var x = v.words, S = x.length, R = v, B = 1; B < C; B++) {
|
|
3090
|
+
R = m.finalize(R), m.reset();
|
|
3091
|
+
for (var k = R.words, T = 0; T < S; T++)
|
|
3092
3092
|
x[T] ^= k[T];
|
|
3093
3093
|
}
|
|
3094
3094
|
c.concat(v), _[0]++;
|
|
@@ -3227,8 +3227,8 @@ function Ne() {
|
|
|
3227
3227
|
*
|
|
3228
3228
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
3229
3229
|
*/
|
|
3230
|
-
init: function(k, T,
|
|
3231
|
-
this.cfg = this.cfg.extend(
|
|
3230
|
+
init: function(k, T, F) {
|
|
3231
|
+
this.cfg = this.cfg.extend(F), this._xformMode = k, this._key = T, this.reset();
|
|
3232
3232
|
},
|
|
3233
3233
|
/**
|
|
3234
3234
|
* Resets this cipher to its initial state.
|
|
@@ -3297,11 +3297,11 @@ function Ne() {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
return function(T) {
|
|
3299
3299
|
return {
|
|
3300
|
-
encrypt: function(
|
|
3301
|
-
return k(
|
|
3300
|
+
encrypt: function(F, N, E) {
|
|
3301
|
+
return k(N).encrypt(T, F, N, E);
|
|
3302
3302
|
},
|
|
3303
|
-
decrypt: function(
|
|
3304
|
-
return k(
|
|
3303
|
+
decrypt: function(F, N, E) {
|
|
3304
|
+
return k(N).decrypt(T, F, N, E);
|
|
3305
3305
|
}
|
|
3306
3306
|
};
|
|
3307
3307
|
};
|
|
@@ -3371,9 +3371,9 @@ function Ne() {
|
|
|
3371
3371
|
*
|
|
3372
3372
|
* mode.processBlock(data.words, offset);
|
|
3373
3373
|
*/
|
|
3374
|
-
processBlock: function(
|
|
3375
|
-
var E = this._cipher,
|
|
3376
|
-
T.call(this,
|
|
3374
|
+
processBlock: function(F, N) {
|
|
3375
|
+
var E = this._cipher, D = E.blockSize;
|
|
3376
|
+
T.call(this, F, N, D), E.encryptBlock(F, N), this._prevBlock = F.slice(N, N + D);
|
|
3377
3377
|
}
|
|
3378
3378
|
}), k.Decryptor = k.extend({
|
|
3379
3379
|
/**
|
|
@@ -3386,16 +3386,16 @@ function Ne() {
|
|
|
3386
3386
|
*
|
|
3387
3387
|
* mode.processBlock(data.words, offset);
|
|
3388
3388
|
*/
|
|
3389
|
-
processBlock: function(
|
|
3390
|
-
var E = this._cipher,
|
|
3391
|
-
E.decryptBlock(
|
|
3389
|
+
processBlock: function(F, N) {
|
|
3390
|
+
var E = this._cipher, D = E.blockSize, L = F.slice(N, N + D);
|
|
3391
|
+
E.decryptBlock(F, N), T.call(this, F, N, D), this._prevBlock = L;
|
|
3392
3392
|
}
|
|
3393
3393
|
});
|
|
3394
|
-
function T(
|
|
3395
|
-
var
|
|
3396
|
-
|
|
3397
|
-
for (var
|
|
3398
|
-
|
|
3394
|
+
function T(F, N, E) {
|
|
3395
|
+
var D, L = this._iv;
|
|
3396
|
+
L ? (D = L, this._iv = n) : D = this._prevBlock;
|
|
3397
|
+
for (var A = 0; A < E; A++)
|
|
3398
|
+
F[N + A] ^= D[A];
|
|
3399
3399
|
}
|
|
3400
3400
|
return k;
|
|
3401
3401
|
})(), y = p.pad = {}, _ = y.Pkcs7 = {
|
|
@@ -3412,10 +3412,10 @@ function Ne() {
|
|
|
3412
3412
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3413
3413
|
*/
|
|
3414
3414
|
pad: function(k, T) {
|
|
3415
|
-
for (var
|
|
3416
|
-
|
|
3417
|
-
var
|
|
3418
|
-
k.concat(
|
|
3415
|
+
for (var F = T * 4, N = F - k.sigBytes % F, E = N << 24 | N << 16 | N << 8 | N, D = [], L = 0; L < N; L += 4)
|
|
3416
|
+
D.push(E);
|
|
3417
|
+
var A = f.create(D, N);
|
|
3418
|
+
k.concat(A);
|
|
3419
3419
|
},
|
|
3420
3420
|
/**
|
|
3421
3421
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -3447,8 +3447,8 @@ function Ne() {
|
|
|
3447
3447
|
reset: function() {
|
|
3448
3448
|
var k;
|
|
3449
3449
|
u.reset.call(this);
|
|
3450
|
-
var T = this.cfg,
|
|
3451
|
-
this._xformMode == this._ENC_XFORM_MODE ? k =
|
|
3450
|
+
var T = this.cfg, F = T.iv, N = T.mode;
|
|
3451
|
+
this._xformMode == this._ENC_XFORM_MODE ? k = N.createEncryptor : (k = N.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, F && F.words) : (this._mode = k.call(N, this, F && F.words), this._mode.__creator = k);
|
|
3452
3452
|
},
|
|
3453
3453
|
_doProcessBlock: function(k, T) {
|
|
3454
3454
|
this._mode.processBlock(k, T);
|
|
@@ -3515,8 +3515,8 @@ function Ne() {
|
|
|
3515
3515
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3516
3516
|
*/
|
|
3517
3517
|
stringify: function(k) {
|
|
3518
|
-
var T,
|
|
3519
|
-
return
|
|
3518
|
+
var T, F = k.ciphertext, N = k.salt;
|
|
3519
|
+
return N ? T = f.create([1398893684, 1701076831]).concat(N).concat(F) : T = F, T.toString(i);
|
|
3520
3520
|
},
|
|
3521
3521
|
/**
|
|
3522
3522
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3532,8 +3532,8 @@ function Ne() {
|
|
|
3532
3532
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3533
3533
|
*/
|
|
3534
3534
|
parse: function(k) {
|
|
3535
|
-
var T,
|
|
3536
|
-
return
|
|
3535
|
+
var T, F = i.parse(k), N = F.words;
|
|
3536
|
+
return N[0] == 1398893684 && N[1] == 1701076831 && (T = f.create(N.slice(2, 4)), N.splice(0, 4), F.sigBytes -= 16), U.create({ ciphertext: F, salt: T });
|
|
3537
3537
|
}
|
|
3538
3538
|
}, x = g.SerializableCipher = b.extend({
|
|
3539
3539
|
/**
|
|
@@ -3562,18 +3562,18 @@ function Ne() {
|
|
|
3562
3562
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3563
3563
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3564
3564
|
*/
|
|
3565
|
-
encrypt: function(k, T,
|
|
3566
|
-
|
|
3567
|
-
var E = k.createEncryptor(
|
|
3565
|
+
encrypt: function(k, T, F, N) {
|
|
3566
|
+
N = this.cfg.extend(N);
|
|
3567
|
+
var E = k.createEncryptor(F, N), D = E.finalize(T), L = E.cfg;
|
|
3568
3568
|
return U.create({
|
|
3569
|
-
ciphertext:
|
|
3570
|
-
key:
|
|
3571
|
-
iv:
|
|
3569
|
+
ciphertext: D,
|
|
3570
|
+
key: F,
|
|
3571
|
+
iv: L.iv,
|
|
3572
3572
|
algorithm: k,
|
|
3573
|
-
mode:
|
|
3574
|
-
padding:
|
|
3573
|
+
mode: L.mode,
|
|
3574
|
+
padding: L.padding,
|
|
3575
3575
|
blockSize: k.blockSize,
|
|
3576
|
-
formatter:
|
|
3576
|
+
formatter: N.format
|
|
3577
3577
|
});
|
|
3578
3578
|
},
|
|
3579
3579
|
/**
|
|
@@ -3593,9 +3593,9 @@ function Ne() {
|
|
|
3593
3593
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3594
3594
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3595
3595
|
*/
|
|
3596
|
-
decrypt: function(k, T,
|
|
3597
|
-
|
|
3598
|
-
var E = k.createDecryptor(
|
|
3596
|
+
decrypt: function(k, T, F, N) {
|
|
3597
|
+
N = this.cfg.extend(N), T = this._parse(T, N.format);
|
|
3598
|
+
var E = k.createDecryptor(F, N).finalize(T.ciphertext);
|
|
3599
3599
|
return E;
|
|
3600
3600
|
},
|
|
3601
3601
|
/**
|
|
@@ -3616,7 +3616,7 @@ function Ne() {
|
|
|
3616
3616
|
_parse: function(k, T) {
|
|
3617
3617
|
return typeof k == "string" ? T.parse(k, this) : k;
|
|
3618
3618
|
}
|
|
3619
|
-
}), S = p.kdf = {},
|
|
3619
|
+
}), S = p.kdf = {}, R = S.OpenSSL = {
|
|
3620
3620
|
/**
|
|
3621
3621
|
* Derives a key and IV from a password.
|
|
3622
3622
|
*
|
|
@@ -3634,13 +3634,13 @@ function Ne() {
|
|
|
3634
3634
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3635
3635
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3636
3636
|
*/
|
|
3637
|
-
execute: function(k, T,
|
|
3638
|
-
if (
|
|
3639
|
-
var
|
|
3637
|
+
execute: function(k, T, F, N, E) {
|
|
3638
|
+
if (N || (N = f.random(64 / 8)), E)
|
|
3639
|
+
var D = o.create({ keySize: T + F, hasher: E }).compute(k, N);
|
|
3640
3640
|
else
|
|
3641
|
-
var
|
|
3642
|
-
var
|
|
3643
|
-
return
|
|
3641
|
+
var D = o.create({ keySize: T + F }).compute(k, N);
|
|
3642
|
+
var L = f.create(D.words.slice(T), F * 4);
|
|
3643
|
+
return D.sigBytes = T * 4, U.create({ key: D, iv: L, salt: N });
|
|
3644
3644
|
}
|
|
3645
3645
|
}, B = g.PasswordBasedCipher = x.extend({
|
|
3646
3646
|
/**
|
|
@@ -3649,7 +3649,7 @@ function Ne() {
|
|
|
3649
3649
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3650
3650
|
*/
|
|
3651
3651
|
cfg: x.cfg.extend({
|
|
3652
|
-
kdf:
|
|
3652
|
+
kdf: R
|
|
3653
3653
|
}),
|
|
3654
3654
|
/**
|
|
3655
3655
|
* Encrypts a message using a password.
|
|
@@ -3668,12 +3668,12 @@ function Ne() {
|
|
|
3668
3668
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3669
3669
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3670
3670
|
*/
|
|
3671
|
-
encrypt: function(k, T,
|
|
3672
|
-
|
|
3673
|
-
var E =
|
|
3674
|
-
|
|
3675
|
-
var
|
|
3676
|
-
return
|
|
3671
|
+
encrypt: function(k, T, F, N) {
|
|
3672
|
+
N = this.cfg.extend(N);
|
|
3673
|
+
var E = N.kdf.execute(F, k.keySize, k.ivSize, N.salt, N.hasher);
|
|
3674
|
+
N.iv = E.iv;
|
|
3675
|
+
var D = x.encrypt.call(this, k, T, E.key, N);
|
|
3676
|
+
return D.mixIn(E), D;
|
|
3677
3677
|
},
|
|
3678
3678
|
/**
|
|
3679
3679
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3692,12 +3692,12 @@ function Ne() {
|
|
|
3692
3692
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3693
3693
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3694
3694
|
*/
|
|
3695
|
-
decrypt: function(k, T,
|
|
3696
|
-
|
|
3697
|
-
var E =
|
|
3698
|
-
|
|
3699
|
-
var
|
|
3700
|
-
return
|
|
3695
|
+
decrypt: function(k, T, F, N) {
|
|
3696
|
+
N = this.cfg.extend(N), T = this._parse(T, N.format);
|
|
3697
|
+
var E = N.kdf.execute(F, k.keySize, k.ivSize, T.salt, N.hasher);
|
|
3698
|
+
N.iv = E.iv;
|
|
3699
|
+
var D = x.decrypt.call(this, k, T, E.key, N);
|
|
3700
|
+
return D;
|
|
3701
3701
|
}
|
|
3702
3702
|
});
|
|
3703
3703
|
})();
|
|
@@ -3984,25 +3984,25 @@ function eo() {
|
|
|
3984
3984
|
for (var v = 0, x = 0, C = 0; C < 256; C++) {
|
|
3985
3985
|
var S = x ^ x << 1 ^ x << 2 ^ x << 3 ^ x << 4;
|
|
3986
3986
|
S = S >>> 8 ^ S & 255 ^ 99, f[v] = S, l[S] = v;
|
|
3987
|
-
var
|
|
3987
|
+
var R = U[v], B = U[R], k = U[B], T = U[S] * 257 ^ S * 16843008;
|
|
3988
3988
|
a[v] = T << 24 | T >>> 8, i[v] = T << 16 | T >>> 16, s[v] = T << 8 | T >>> 24, o[v] = T;
|
|
3989
|
-
var T = k * 16843009 ^ B * 65537 ^
|
|
3990
|
-
u[S] = T << 24 | T >>> 8, m[S] = T << 16 | T >>> 16, c[S] = T << 8 | T >>> 24, d[S] = T, v ? (v =
|
|
3989
|
+
var T = k * 16843009 ^ B * 65537 ^ R * 257 ^ v * 16843008;
|
|
3990
|
+
u[S] = T << 24 | T >>> 8, m[S] = T << 16 | T >>> 16, c[S] = T << 8 | T >>> 24, d[S] = T, v ? (v = R ^ U[U[U[k ^ R]]], x ^= U[U[x]]) : v = x = 1;
|
|
3991
3991
|
}
|
|
3992
3992
|
})();
|
|
3993
3993
|
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = b.AES = g.extend({
|
|
3994
3994
|
_doReset: function() {
|
|
3995
3995
|
var U;
|
|
3996
3996
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3997
|
-
for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, S = this._nRounds = x + 6,
|
|
3997
|
+
for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, S = this._nRounds = x + 6, R = (S + 1) * 4, B = this._keySchedule = [], k = 0; k < R; k++)
|
|
3998
3998
|
k < x ? B[k] = v[k] : (U = B[k - 1], k % x ? x > 6 && k % x == 4 && (U = f[U >>> 24] << 24 | f[U >>> 16 & 255] << 16 | f[U >>> 8 & 255] << 8 | f[U & 255]) : (U = U << 8 | U >>> 24, U = f[U >>> 24] << 24 | f[U >>> 16 & 255] << 16 | f[U >>> 8 & 255] << 8 | f[U & 255], U ^= y[k / x | 0] << 24), B[k] = B[k - x] ^ U);
|
|
3999
|
-
for (var T = this._invKeySchedule = [],
|
|
4000
|
-
var k =
|
|
4001
|
-
if (
|
|
3999
|
+
for (var T = this._invKeySchedule = [], F = 0; F < R; F++) {
|
|
4000
|
+
var k = R - F;
|
|
4001
|
+
if (F % 4)
|
|
4002
4002
|
var U = B[k];
|
|
4003
4003
|
else
|
|
4004
4004
|
var U = B[k - 4];
|
|
4005
|
-
|
|
4005
|
+
F < 4 || k <= 4 ? T[F] = U : T[F] = u[f[U >>> 24]] ^ m[f[U >>> 16 & 255]] ^ c[f[U >>> 8 & 255]] ^ d[f[U & 255]];
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
4008
|
},
|
|
@@ -4015,13 +4015,13 @@ function eo() {
|
|
|
4015
4015
|
var v = U[C + 1];
|
|
4016
4016
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
4017
4017
|
},
|
|
4018
|
-
_doCryptBlock: function(U, C, v, x, S,
|
|
4019
|
-
for (var T = this._nRounds,
|
|
4020
|
-
var
|
|
4021
|
-
|
|
4018
|
+
_doCryptBlock: function(U, C, v, x, S, R, B, k) {
|
|
4019
|
+
for (var T = this._nRounds, F = U[C] ^ v[0], N = U[C + 1] ^ v[1], E = U[C + 2] ^ v[2], D = U[C + 3] ^ v[3], L = 4, A = 1; A < T; A++) {
|
|
4020
|
+
var O = x[F >>> 24] ^ S[N >>> 16 & 255] ^ R[E >>> 8 & 255] ^ B[D & 255] ^ v[L++], H = x[N >>> 24] ^ S[E >>> 16 & 255] ^ R[D >>> 8 & 255] ^ B[F & 255] ^ v[L++], W = x[E >>> 24] ^ S[D >>> 16 & 255] ^ R[F >>> 8 & 255] ^ B[N & 255] ^ v[L++], M = x[D >>> 24] ^ S[F >>> 16 & 255] ^ R[N >>> 8 & 255] ^ B[E & 255] ^ v[L++];
|
|
4021
|
+
F = O, N = H, E = W, D = M;
|
|
4022
4022
|
}
|
|
4023
|
-
var
|
|
4024
|
-
U[C] =
|
|
4023
|
+
var O = (k[F >>> 24] << 24 | k[N >>> 16 & 255] << 16 | k[E >>> 8 & 255] << 8 | k[D & 255]) ^ v[L++], H = (k[N >>> 24] << 24 | k[E >>> 16 & 255] << 16 | k[D >>> 8 & 255] << 8 | k[F & 255]) ^ v[L++], W = (k[E >>> 24] << 24 | k[D >>> 16 & 255] << 16 | k[F >>> 8 & 255] << 8 | k[N & 255]) ^ v[L++], M = (k[D >>> 24] << 24 | k[F >>> 16 & 255] << 16 | k[N >>> 8 & 255] << 8 | k[E & 255]) ^ v[L++];
|
|
4024
|
+
U[C] = O, U[C + 1] = H, U[C + 2] = W, U[C + 3] = M;
|
|
4025
4025
|
},
|
|
4026
4026
|
keySize: 256 / 32
|
|
4027
4027
|
});
|
|
@@ -4688,12 +4688,12 @@ function io() {
|
|
|
4688
4688
|
U[C] = _[v >>> 5] >>> 31 - v % 32 & 1;
|
|
4689
4689
|
}
|
|
4690
4690
|
for (var x = this._subKeys = [], S = 0; S < 16; S++) {
|
|
4691
|
-
for (var
|
|
4692
|
-
|
|
4693
|
-
|
|
4691
|
+
for (var R = x[S] = [], B = i[S], C = 0; C < 24; C++)
|
|
4692
|
+
R[C / 6 | 0] |= U[(a[C] - 1 + B) % 28] << 31 - C % 6, R[4 + (C / 6 | 0)] |= U[28 + (a[C + 24] - 1 + B) % 28] << 31 - C % 6;
|
|
4693
|
+
R[0] = R[0] << 1 | R[0] >>> 31;
|
|
4694
4694
|
for (var C = 1; C < 7; C++)
|
|
4695
|
-
|
|
4696
|
-
|
|
4695
|
+
R[C] = R[C] >>> (C - 1) * 4 + 3;
|
|
4696
|
+
R[7] = R[7] << 5 | R[7] >>> 27;
|
|
4697
4697
|
}
|
|
4698
4698
|
for (var k = this._invSubKeys = [], C = 0; C < 16; C++)
|
|
4699
4699
|
k[C] = x[15 - C];
|
|
@@ -4707,9 +4707,9 @@ function io() {
|
|
|
4707
4707
|
_doCryptBlock: function(y, _, U) {
|
|
4708
4708
|
this._lBlock = y[_], this._rBlock = y[_ + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), c.call(this, 2, 858993459), c.call(this, 8, 16711935), m.call(this, 1, 1431655765);
|
|
4709
4709
|
for (var C = 0; C < 16; C++) {
|
|
4710
|
-
for (var v = U[C], x = this._lBlock, S = this._rBlock,
|
|
4711
|
-
|
|
4712
|
-
this._lBlock = S, this._rBlock = x ^
|
|
4710
|
+
for (var v = U[C], x = this._lBlock, S = this._rBlock, R = 0, B = 0; B < 8; B++)
|
|
4711
|
+
R |= s[B][((S ^ v[B]) & o[B]) >>> 0];
|
|
4712
|
+
this._lBlock = S, this._rBlock = x ^ R;
|
|
4713
4713
|
}
|
|
4714
4714
|
var k = this._lBlock;
|
|
4715
4715
|
this._lBlock = this._rBlock, this._rBlock = k, m.call(this, 1, 1431655765), c.call(this, 8, 16711935), c.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), y[_] = this._lBlock, y[_ + 1] = this._rBlock;
|
|
@@ -6018,8 +6018,8 @@ function uo() {
|
|
|
6018
6018
|
function m(d, y, _) {
|
|
6019
6019
|
for (let S = 0; S < 4; S++) {
|
|
6020
6020
|
d.sbox[S] = [];
|
|
6021
|
-
for (let
|
|
6022
|
-
d.sbox[S][
|
|
6021
|
+
for (let R = 0; R < 256; R++)
|
|
6022
|
+
d.sbox[S][R] = a[S][R];
|
|
6023
6023
|
}
|
|
6024
6024
|
let U = 0;
|
|
6025
6025
|
for (let S = 0; S < f + 2; S++)
|
|
@@ -6028,8 +6028,8 @@ function uo() {
|
|
|
6028
6028
|
for (let S = 0; S < f + 2; S += 2)
|
|
6029
6029
|
x = o(d, C, v), C = x.left, v = x.right, d.pbox[S] = C, d.pbox[S + 1] = v;
|
|
6030
6030
|
for (let S = 0; S < 4; S++)
|
|
6031
|
-
for (let
|
|
6032
|
-
x = o(d, C, v), C = x.left, v = x.right, d.sbox[S][
|
|
6031
|
+
for (let R = 0; R < 256; R += 2)
|
|
6032
|
+
x = o(d, C, v), C = x.left, v = x.right, d.sbox[S][R] = C, d.sbox[S][R + 1] = v;
|
|
6033
6033
|
return !0;
|
|
6034
6034
|
}
|
|
6035
6035
|
var c = b.Blowfish = g.extend({
|
|
@@ -6077,202 +6077,212 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6077
6077
|
padding: va.pad.Pkcs7
|
|
6078
6078
|
}), g = t.toString(va.enc.Base64), b = va.enc.Base64.stringify(p.ciphertext);
|
|
6079
6079
|
return g + ":" + b;
|
|
6080
|
-
},
|
|
6080
|
+
}, ue = () => {
|
|
6081
6081
|
const { client: e, formDataClient: r } = oe(), t = I(
|
|
6082
|
-
async (
|
|
6083
|
-
const { mac_address:
|
|
6084
|
-
mac_address:
|
|
6085
|
-
app_version:
|
|
6086
|
-
anydesk_id:
|
|
6082
|
+
async (N) => {
|
|
6083
|
+
const { mac_address: E = "", app_version: D = "", anydesk_id: L = "" } = N, { data: A } = await e.post("/cash-register/login", {
|
|
6084
|
+
mac_address: E,
|
|
6085
|
+
app_version: D,
|
|
6086
|
+
anydesk_id: L
|
|
6087
6087
|
});
|
|
6088
|
-
return
|
|
6088
|
+
return A;
|
|
6089
6089
|
},
|
|
6090
6090
|
[e]
|
|
6091
6091
|
), n = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = I(async () => await e.get("member/getFavoriteGame"), [e]), f = I(
|
|
6092
|
-
async (
|
|
6093
|
-
const { account:
|
|
6092
|
+
async (N) => {
|
|
6093
|
+
const { account: E, password: D, trans_code: L } = N;
|
|
6094
6094
|
return await e.post("/login", {
|
|
6095
|
-
memId:
|
|
6096
|
-
passwd:
|
|
6097
|
-
trans_code:
|
|
6095
|
+
memId: E,
|
|
6096
|
+
passwd: D,
|
|
6097
|
+
trans_code: L
|
|
6098
6098
|
});
|
|
6099
6099
|
},
|
|
6100
6100
|
[e]
|
|
6101
6101
|
), l = I(async () => await e.post("/logout"), [e]), a = I(
|
|
6102
|
-
async (
|
|
6103
|
-
const { gameUid:
|
|
6104
|
-
return await e.put(`/member/toggleFavoriteGame/${
|
|
6105
|
-
status:
|
|
6102
|
+
async (N) => {
|
|
6103
|
+
const { gameUid: E = "", status: D = 0 } = N;
|
|
6104
|
+
return await e.put(`/member/toggleFavoriteGame/${E}`, {
|
|
6105
|
+
status: D
|
|
6106
6106
|
});
|
|
6107
6107
|
},
|
|
6108
6108
|
[e]
|
|
6109
6109
|
), i = I(async () => await e.get("/profit/ranking"), [e]), s = I(
|
|
6110
6110
|
async ({
|
|
6111
|
-
memberId:
|
|
6112
|
-
password:
|
|
6113
|
-
unlimitCode:
|
|
6114
|
-
email:
|
|
6115
|
-
inviteCode:
|
|
6111
|
+
memberId: N,
|
|
6112
|
+
password: E,
|
|
6113
|
+
unlimitCode: D,
|
|
6114
|
+
email: L,
|
|
6115
|
+
inviteCode: A,
|
|
6116
6116
|
currencyCode: O,
|
|
6117
|
-
validCode:
|
|
6117
|
+
validCode: H
|
|
6118
6118
|
}) => {
|
|
6119
|
-
const
|
|
6120
|
-
memId:
|
|
6121
|
-
passwd: _a(
|
|
6122
|
-
email:
|
|
6119
|
+
const W = {
|
|
6120
|
+
memId: N,
|
|
6121
|
+
passwd: _a(E),
|
|
6122
|
+
email: L,
|
|
6123
6123
|
currency_code: O,
|
|
6124
|
-
code:
|
|
6124
|
+
code: H
|
|
6125
6125
|
};
|
|
6126
|
-
return
|
|
6126
|
+
return D && (W.unlimit_code = D), A && (W.invite = A), e.post("/signUp", W);
|
|
6127
6127
|
},
|
|
6128
6128
|
[e]
|
|
6129
6129
|
), o = I(
|
|
6130
|
-
async (
|
|
6131
|
-
const { name:
|
|
6130
|
+
async (N) => {
|
|
6131
|
+
const { name: E, birthday: D, email: L, mobile: A } = N;
|
|
6132
6132
|
return await e.post("/editMembetInfo", {
|
|
6133
|
-
name:
|
|
6133
|
+
name: E,
|
|
6134
6134
|
// 暱稱
|
|
6135
|
-
birthday:
|
|
6135
|
+
birthday: D,
|
|
6136
6136
|
// 生日 (格式:YYYY-MM-DD)
|
|
6137
|
-
email:
|
|
6137
|
+
email: L,
|
|
6138
6138
|
// 電子郵件
|
|
6139
|
-
mobile:
|
|
6139
|
+
mobile: A
|
|
6140
6140
|
// 手機號碼
|
|
6141
6141
|
});
|
|
6142
6142
|
},
|
|
6143
6143
|
[e]
|
|
6144
6144
|
), u = I(
|
|
6145
|
-
async (
|
|
6146
|
-
const { oldPwd:
|
|
6145
|
+
async (N) => {
|
|
6146
|
+
const { oldPwd: E, newPwd: D } = N;
|
|
6147
6147
|
return await e.post("/passwordReset", {
|
|
6148
|
-
old_pwd: _a(
|
|
6149
|
-
new_pwd: _a(
|
|
6148
|
+
old_pwd: _a(E),
|
|
6149
|
+
new_pwd: _a(D)
|
|
6150
6150
|
});
|
|
6151
6151
|
},
|
|
6152
6152
|
[e]
|
|
6153
6153
|
), m = I(
|
|
6154
|
-
async (
|
|
6155
|
-
const { newPwd:
|
|
6154
|
+
async (N) => {
|
|
6155
|
+
const { newPwd: E, confirmNewPwd: D } = N;
|
|
6156
6156
|
return await e.post("/setWithdrawPassword", {
|
|
6157
|
-
newPassword: _a(
|
|
6158
|
-
confirmPassword: _a(
|
|
6157
|
+
newPassword: _a(E),
|
|
6158
|
+
confirmPassword: _a(D)
|
|
6159
6159
|
});
|
|
6160
6160
|
},
|
|
6161
6161
|
[e]
|
|
6162
6162
|
), c = I(
|
|
6163
|
-
async (
|
|
6164
|
-
const { oldPwd:
|
|
6163
|
+
async (N) => {
|
|
6164
|
+
const { oldPwd: E, newPwd: D } = N;
|
|
6165
6165
|
return await e.post("/withdrawPasswordReset", {
|
|
6166
|
-
old_pwd: _a(
|
|
6167
|
-
new_pwd: _a(
|
|
6166
|
+
old_pwd: _a(E),
|
|
6167
|
+
new_pwd: _a(D)
|
|
6168
6168
|
});
|
|
6169
6169
|
},
|
|
6170
6170
|
[e]
|
|
6171
6171
|
), d = I(
|
|
6172
|
-
async ({ paramsData:
|
|
6173
|
-
const { start_time:
|
|
6172
|
+
async ({ paramsData: N }) => {
|
|
6173
|
+
const { start_time: E, end_time: D, limit: L = 25 } = N || {};
|
|
6174
6174
|
return await e.get("/report/totalprofit", {
|
|
6175
6175
|
params: {
|
|
6176
|
-
start_time: `${Fe(
|
|
6177
|
-
end_time: `${Fe(
|
|
6178
|
-
limit:
|
|
6176
|
+
start_time: `${Fe(E).format("YYYY-MM-DD")} 12:00:00`,
|
|
6177
|
+
end_time: `${Fe(D).format("YYYY-MM-DD")} 11:59:59`,
|
|
6178
|
+
limit: L
|
|
6179
6179
|
}
|
|
6180
6180
|
});
|
|
6181
6181
|
},
|
|
6182
6182
|
[e]
|
|
6183
6183
|
), y = I(
|
|
6184
|
-
async (
|
|
6185
|
-
const { platform:
|
|
6184
|
+
async (N) => {
|
|
6185
|
+
const { platform: E } = N;
|
|
6186
6186
|
return await e.post("/member/all-in-la", {
|
|
6187
|
-
platform:
|
|
6187
|
+
platform: E
|
|
6188
6188
|
});
|
|
6189
6189
|
},
|
|
6190
6190
|
[e]
|
|
6191
6191
|
), _ = I(async () => await e.get("/member/checkRestrictedWagering"), [e]), U = I(
|
|
6192
|
-
async (
|
|
6193
|
-
const { memId:
|
|
6192
|
+
async (N) => {
|
|
6193
|
+
const { memId: E, point: D, currency: L, password: A } = N;
|
|
6194
6194
|
return await e.post("/pointsTransaction", {
|
|
6195
|
-
to_memId:
|
|
6196
|
-
point:
|
|
6197
|
-
currency:
|
|
6198
|
-
password: _a(
|
|
6195
|
+
to_memId: E,
|
|
6196
|
+
point: D,
|
|
6197
|
+
currency: L,
|
|
6198
|
+
password: _a(A)
|
|
6199
6199
|
});
|
|
6200
6200
|
},
|
|
6201
6201
|
[e]
|
|
6202
6202
|
), C = I(
|
|
6203
|
-
async ({ formData:
|
|
6203
|
+
async ({ formData: N }) => {
|
|
6204
6204
|
const {
|
|
6205
|
-
bank_name:
|
|
6206
|
-
bank_account_name:
|
|
6207
|
-
bank_branch_name:
|
|
6208
|
-
bank_account:
|
|
6205
|
+
bank_name: E,
|
|
6206
|
+
bank_account_name: D,
|
|
6207
|
+
bank_branch_name: L,
|
|
6208
|
+
bank_account: A,
|
|
6209
6209
|
bank_card_number: O,
|
|
6210
|
-
id_card:
|
|
6211
|
-
id_pic:
|
|
6212
|
-
} =
|
|
6213
|
-
return await r.post("/bindBankAccount",
|
|
6210
|
+
id_card: H,
|
|
6211
|
+
id_pic: W
|
|
6212
|
+
} = N;
|
|
6213
|
+
return await r.post("/bindBankAccount", N);
|
|
6214
6214
|
},
|
|
6215
6215
|
[r]
|
|
6216
6216
|
), v = I(
|
|
6217
|
-
async (
|
|
6218
|
-
const { point_transfer:
|
|
6217
|
+
async (N) => {
|
|
6218
|
+
const { point_transfer: E } = N;
|
|
6219
6219
|
return await e.post("/cash-register/clear", {
|
|
6220
|
-
point_transfer:
|
|
6220
|
+
point_transfer: E
|
|
6221
6221
|
});
|
|
6222
6222
|
},
|
|
6223
6223
|
[e]
|
|
6224
6224
|
), x = I(
|
|
6225
|
-
async (
|
|
6226
|
-
const { trans_code:
|
|
6225
|
+
async (N) => {
|
|
6226
|
+
const { trans_code: E, line_id: D, invite: L, line_name: A } = N;
|
|
6227
6227
|
return await e.post("/goLine", {
|
|
6228
|
-
trans_code:
|
|
6229
|
-
line_id:
|
|
6230
|
-
invite:
|
|
6231
|
-
line_name:
|
|
6228
|
+
trans_code: E,
|
|
6229
|
+
line_id: D,
|
|
6230
|
+
invite: L,
|
|
6231
|
+
line_name: A
|
|
6232
6232
|
});
|
|
6233
6233
|
},
|
|
6234
6234
|
[e]
|
|
6235
6235
|
), S = I(
|
|
6236
|
-
async (
|
|
6237
|
-
const { trans_code:
|
|
6236
|
+
async (N) => {
|
|
6237
|
+
const { trans_code: E, line_id: D, line_name: L } = N;
|
|
6238
6238
|
return await e.post("/login/line", {
|
|
6239
|
-
trans_code:
|
|
6240
|
-
line_id:
|
|
6241
|
-
line_name:
|
|
6239
|
+
trans_code: E,
|
|
6240
|
+
line_id: D,
|
|
6241
|
+
line_name: L
|
|
6242
6242
|
});
|
|
6243
6243
|
},
|
|
6244
6244
|
[e]
|
|
6245
|
-
),
|
|
6246
|
-
async (
|
|
6247
|
-
const { mac_address:
|
|
6248
|
-
return await e.get(`/machine-login-code/${
|
|
6245
|
+
), R = I(
|
|
6246
|
+
async (N) => {
|
|
6247
|
+
const { mac_address: E } = N;
|
|
6248
|
+
return await e.get(`/machine-login-code/${E}`);
|
|
6249
6249
|
},
|
|
6250
6250
|
[e]
|
|
6251
6251
|
), B = I(
|
|
6252
|
-
async (
|
|
6253
|
-
const { member_info_uid:
|
|
6254
|
-
return await e.post(`/member/transfer/${
|
|
6255
|
-
point:
|
|
6256
|
-
currency:
|
|
6257
|
-
withdraw_password:
|
|
6252
|
+
async (N) => {
|
|
6253
|
+
const { member_info_uid: E, point: D, currency: L, withdraw_password: A } = N;
|
|
6254
|
+
return await e.post(`/member/transfer/${E}`, {
|
|
6255
|
+
point: D,
|
|
6256
|
+
currency: L,
|
|
6257
|
+
withdraw_password: A
|
|
6258
6258
|
});
|
|
6259
6259
|
},
|
|
6260
6260
|
[e]
|
|
6261
6261
|
), k = I(
|
|
6262
|
-
async (
|
|
6263
|
-
const { mobile:
|
|
6262
|
+
async (N) => {
|
|
6263
|
+
const { mobile: E, verifyCode: D } = N;
|
|
6264
6264
|
return await e.post("/sms/verifyValidationCode", {
|
|
6265
|
-
mobile:
|
|
6266
|
-
inputCode:
|
|
6265
|
+
mobile: E,
|
|
6266
|
+
inputCode: D
|
|
6267
6267
|
});
|
|
6268
6268
|
},
|
|
6269
6269
|
[e]
|
|
6270
6270
|
), T = I(
|
|
6271
|
-
async (
|
|
6272
|
-
const { mobile: L } =
|
|
6271
|
+
async (N) => {
|
|
6272
|
+
const { mobile: E, verifyCode: D, snCode: L } = N;
|
|
6273
|
+
return await e.post("/goMobile", {
|
|
6274
|
+
mobile: E,
|
|
6275
|
+
verification_code: D,
|
|
6276
|
+
sn_code: L
|
|
6277
|
+
});
|
|
6278
|
+
},
|
|
6279
|
+
[e]
|
|
6280
|
+
), F = I(
|
|
6281
|
+
async (N) => {
|
|
6282
|
+
const { mobile: E } = N;
|
|
6273
6283
|
return await e.get("/sms/getValidCode", {
|
|
6274
6284
|
params: {
|
|
6275
|
-
mobile:
|
|
6285
|
+
mobile: E
|
|
6276
6286
|
}
|
|
6277
6287
|
});
|
|
6278
6288
|
},
|
|
@@ -6301,13 +6311,14 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6301
6311
|
abandonPointsApi: v,
|
|
6302
6312
|
lineLoginApi: x,
|
|
6303
6313
|
lineLogin2Api: S,
|
|
6304
|
-
getMachineLoginCodeApi:
|
|
6314
|
+
getMachineLoginCodeApi: R,
|
|
6305
6315
|
memberTransferApi: B,
|
|
6306
6316
|
mobileLoginApi: k,
|
|
6307
|
-
sendMobileVerifyCodeApi:
|
|
6317
|
+
sendMobileVerifyCodeApi: F,
|
|
6318
|
+
mobileLoginApiV2: T
|
|
6308
6319
|
};
|
|
6309
6320
|
}, Cm = ({ otherQueryKey: e = [], options: r = {} } = {}) => {
|
|
6310
|
-
const { userCurrencyExchangeApi: t } =
|
|
6321
|
+
const { userCurrencyExchangeApi: t } = ue(), { getToken: n } = oe(), { enabled: p, ...g } = r, f = !!n?.() && (p ? p.every((l) => l) : !0);
|
|
6311
6322
|
return Bn({
|
|
6312
6323
|
queries: [
|
|
6313
6324
|
{
|
|
@@ -6325,7 +6336,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6325
6336
|
trigger: r = [],
|
|
6326
6337
|
enabled: t = !0
|
|
6327
6338
|
} = {}) => {
|
|
6328
|
-
const { getToken: n } = oe(), p = n?.(), { userInfoApi: g } =
|
|
6339
|
+
const { getToken: n } = oe(), p = n?.(), { userInfoApi: g } = ue();
|
|
6329
6340
|
return Bn({
|
|
6330
6341
|
queries: [
|
|
6331
6342
|
{
|
|
@@ -6342,7 +6353,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
|
|
|
6342
6353
|
userFavoriteGameApi: t,
|
|
6343
6354
|
userGameListApi: n,
|
|
6344
6355
|
userCurrencyExchangeApi: p
|
|
6345
|
-
} =
|
|
6356
|
+
} = ue(), g = ne({
|
|
6346
6357
|
queryKey: ["getMemInfo"],
|
|
6347
6358
|
queryFn: async () => r(),
|
|
6348
6359
|
enabled: e
|
|
@@ -7122,30 +7133,30 @@ function bt() {
|
|
|
7122
7133
|
return b.UNPARSABLE_JSON_OBJECT;
|
|
7123
7134
|
}
|
|
7124
7135
|
return null;
|
|
7125
|
-
}, [d, u.disableJson]), x = (0, p.useRef)(null), S = (0, p.useRef)(null),
|
|
7126
|
-
}), B = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), T = (0, p.useRef)([]),
|
|
7127
|
-
|
|
7128
|
-
var E = x.current && U[x.current] !== void 0 ? U[x.current] : o !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED,
|
|
7129
|
-
var
|
|
7136
|
+
}, [d, u.disableJson]), x = (0, p.useRef)(null), S = (0, p.useRef)(null), R = (0, p.useRef)(function() {
|
|
7137
|
+
}), B = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), T = (0, p.useRef)([]), F = (0, p.useRef)(null), N = (0, p.useRef)(u);
|
|
7138
|
+
N.current = u;
|
|
7139
|
+
var E = x.current && U[x.current] !== void 0 ? U[x.current] : o !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, D = u.queryParams ? JSON.stringify(u.queryParams) : null, L = (0, p.useCallback)(function(H, W) {
|
|
7140
|
+
var M;
|
|
7130
7141
|
if (W === void 0 && (W = !0), b.isEventSourceSupported && S.current instanceof EventSource) {
|
|
7131
7142
|
console.warn("Unable to send a message from an eventSource");
|
|
7132
7143
|
return;
|
|
7133
7144
|
}
|
|
7134
|
-
((
|
|
7135
|
-
}, []),
|
|
7136
|
-
W === void 0 && (W = !0),
|
|
7137
|
-
}, [
|
|
7138
|
-
return
|
|
7145
|
+
((M = S.current) === null || M === void 0 ? void 0 : M.readyState) === b.ReadyState.OPEN ? ((0, i.assertIsWebSocket)(S.current, N.current.skipAssert), S.current.send(H)) : W && T.current.push(H);
|
|
7146
|
+
}, []), A = (0, p.useCallback)(function(H, W) {
|
|
7147
|
+
W === void 0 && (W = !0), L(JSON.stringify(H), W);
|
|
7148
|
+
}, [L]), O = (0, p.useCallback)(function() {
|
|
7149
|
+
return N.current.share !== !0 || b.isEventSourceSupported && S.current instanceof EventSource ? S.current : (F.current === null && S.current && ((0, i.assertIsWebSocket)(S.current, N.current.skipAssert), F.current = (0, a.default)(S.current, R)), F.current);
|
|
7139
7150
|
}, []);
|
|
7140
7151
|
return (0, p.useEffect)(function() {
|
|
7141
7152
|
if (o !== null && m === !0) {
|
|
7142
|
-
var H, W = !1,
|
|
7153
|
+
var H, W = !1, M = !0, G = function() {
|
|
7143
7154
|
return r(void 0, void 0, void 0, function() {
|
|
7144
|
-
var w,
|
|
7155
|
+
var w, P, K;
|
|
7145
7156
|
return t(this, function(q) {
|
|
7146
7157
|
switch (q.label) {
|
|
7147
7158
|
case 0:
|
|
7148
|
-
return w = x, [4, (0, l.getUrl)(o,
|
|
7159
|
+
return w = x, [4, (0, l.getUrl)(o, N)];
|
|
7149
7160
|
case 1:
|
|
7150
7161
|
return w.current = q.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7151
7162
|
return C(function(Q) {
|
|
@@ -7154,7 +7165,7 @@ function bt() {
|
|
|
7154
7165
|
}), [
|
|
7155
7166
|
2
|
|
7156
7167
|
/*return*/
|
|
7157
|
-
]) : (
|
|
7168
|
+
]) : (P = function(Q) {
|
|
7158
7169
|
W || (0, g.flushSync)(function() {
|
|
7159
7170
|
return y(Q);
|
|
7160
7171
|
});
|
|
@@ -7165,7 +7176,7 @@ function bt() {
|
|
|
7165
7176
|
return e(e({}, J), x.current && (X = {}, X[x.current] = Q, X));
|
|
7166
7177
|
});
|
|
7167
7178
|
});
|
|
7168
|
-
},
|
|
7179
|
+
}, M && (H = (0, f.createOrJoinSocket)(S, x.current, K, N, P, R, B, k, L)), [
|
|
7169
7180
|
2
|
|
7170
7181
|
/*return*/
|
|
7171
7182
|
]);
|
|
@@ -7173,26 +7184,26 @@ function bt() {
|
|
|
7173
7184
|
});
|
|
7174
7185
|
});
|
|
7175
7186
|
};
|
|
7176
|
-
return
|
|
7177
|
-
W || (
|
|
7187
|
+
return R.current = function() {
|
|
7188
|
+
W || (F.current && (F.current = null), H?.(), G());
|
|
7178
7189
|
}, G(), function() {
|
|
7179
|
-
W = !0,
|
|
7190
|
+
W = !0, M = !1, F.current && (F.current = null), H?.(), y(null);
|
|
7180
7191
|
};
|
|
7181
7192
|
} else (o === null || m === !1) && (B.current = 0, C(function(w) {
|
|
7182
|
-
var
|
|
7183
|
-
return e(e({}, w), x.current && (
|
|
7193
|
+
var P;
|
|
7194
|
+
return e(e({}, w), x.current && (P = {}, P[x.current] = b.ReadyState.CLOSED, P));
|
|
7184
7195
|
}));
|
|
7185
|
-
}, [o, m,
|
|
7196
|
+
}, [o, m, D, L]), (0, p.useEffect)(function() {
|
|
7186
7197
|
E === b.ReadyState.OPEN && T.current.splice(0).forEach(function(H) {
|
|
7187
|
-
|
|
7198
|
+
L(H);
|
|
7188
7199
|
});
|
|
7189
7200
|
}, [E]), {
|
|
7190
|
-
sendMessage:
|
|
7191
|
-
sendJsonMessage:
|
|
7201
|
+
sendMessage: L,
|
|
7202
|
+
sendJsonMessage: A,
|
|
7192
7203
|
lastMessage: d,
|
|
7193
7204
|
lastJsonMessage: v,
|
|
7194
7205
|
readyState: E,
|
|
7195
|
-
getWebSocket:
|
|
7206
|
+
getWebSocket: O
|
|
7196
7207
|
};
|
|
7197
7208
|
};
|
|
7198
7209
|
return Ve.useWebSocket = s, Ve;
|
|
@@ -7360,63 +7371,63 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7360
7371
|
});
|
|
7361
7372
|
} };
|
|
7362
7373
|
}, Eo = ({ options: e } = {}) => {
|
|
7363
|
-
const { userLoginApi: r } =
|
|
7364
|
-
return
|
|
7374
|
+
const { userLoginApi: r } = ue();
|
|
7375
|
+
return se({
|
|
7365
7376
|
mutationKey: ["userLogin"],
|
|
7366
7377
|
mutationFn: async (t) => r(t),
|
|
7367
7378
|
...e
|
|
7368
7379
|
});
|
|
7369
7380
|
}, No = ({ options: e } = {}) => {
|
|
7370
|
-
const { userLogoutApi: r } =
|
|
7371
|
-
return
|
|
7381
|
+
const { userLogoutApi: r } = ue();
|
|
7382
|
+
return se({
|
|
7372
7383
|
mutationKey: ["userLogout"],
|
|
7373
7384
|
mutationFn: async () => r(),
|
|
7374
7385
|
...e
|
|
7375
7386
|
});
|
|
7376
7387
|
}, Lo = ({ options: e } = {}) => {
|
|
7377
|
-
const { userSignUpApi: r } =
|
|
7378
|
-
return
|
|
7388
|
+
const { userSignUpApi: r } = ue();
|
|
7389
|
+
return se({
|
|
7379
7390
|
mutationKey: ["userSignUp"],
|
|
7380
7391
|
mutationFn: async (t) => r(t),
|
|
7381
7392
|
...e
|
|
7382
7393
|
});
|
|
7383
7394
|
}, Go = ({ options: e } = {}) => {
|
|
7384
|
-
const { addOrRemoveFavoriteGameApi: r } =
|
|
7385
|
-
return
|
|
7395
|
+
const { addOrRemoveFavoriteGameApi: r } = ue();
|
|
7396
|
+
return se({
|
|
7386
7397
|
mutationKey: ["toggleFavoriteGame"],
|
|
7387
7398
|
mutationFn: async (t) => r(t),
|
|
7388
7399
|
...e
|
|
7389
7400
|
});
|
|
7390
7401
|
}, Mo = ({ options: e } = {}) => {
|
|
7391
|
-
const { updateUserInfoApi: r } =
|
|
7392
|
-
return
|
|
7402
|
+
const { updateUserInfoApi: r } = ue();
|
|
7403
|
+
return se({
|
|
7393
7404
|
mutationKey: ["updateUserInfo"],
|
|
7394
7405
|
mutationFn: async (t) => r(t),
|
|
7395
7406
|
...e
|
|
7396
7407
|
});
|
|
7397
7408
|
}, Ro = ({ options: e } = {}) => {
|
|
7398
|
-
const { resetUserPasswordApi: r } =
|
|
7399
|
-
return
|
|
7409
|
+
const { resetUserPasswordApi: r } = ue();
|
|
7410
|
+
return se({
|
|
7400
7411
|
mutationKey: ["resetUserPassword"],
|
|
7401
7412
|
mutationFn: async (t) => r(t),
|
|
7402
7413
|
...e
|
|
7403
7414
|
});
|
|
7404
7415
|
}, Po = ({ options: e } = {}) => {
|
|
7405
|
-
const { setUserTransactionPasswordApi: r } =
|
|
7406
|
-
return
|
|
7416
|
+
const { setUserTransactionPasswordApi: r } = ue();
|
|
7417
|
+
return se({
|
|
7407
7418
|
mutationKey: ["setUserTransactionPassword"],
|
|
7408
7419
|
mutationFn: async (t) => r(t),
|
|
7409
7420
|
...e
|
|
7410
7421
|
});
|
|
7411
7422
|
}, Fo = ({ options: e } = {}) => {
|
|
7412
|
-
const { resetUserTransactionPasswordApi: r } =
|
|
7413
|
-
return
|
|
7423
|
+
const { resetUserTransactionPasswordApi: r } = ue();
|
|
7424
|
+
return se({
|
|
7414
7425
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7415
7426
|
mutationFn: async (t) => r(t),
|
|
7416
7427
|
...e
|
|
7417
7428
|
});
|
|
7418
7429
|
}, wo = ({ paramsData: e, options: r } = {}) => {
|
|
7419
|
-
const { userRebateApi: t } =
|
|
7430
|
+
const { userRebateApi: t } = ue(), { getToken: n } = oe();
|
|
7420
7431
|
return n?.(), ne({
|
|
7421
7432
|
queryKey: ["userRebate", e],
|
|
7422
7433
|
queryFn: async () => t({ paramsData: e }),
|
|
@@ -7424,23 +7435,23 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7424
7435
|
...r
|
|
7425
7436
|
});
|
|
7426
7437
|
}, Ao = ({ options: e } = {}) => {
|
|
7427
|
-
const { userBindBankApi: r } =
|
|
7428
|
-
return
|
|
7438
|
+
const { userBindBankApi: r } = ue();
|
|
7439
|
+
return se({
|
|
7429
7440
|
mutationKey: ["userBindBank"],
|
|
7430
7441
|
mutationFn: async (t) => r({ formData: t }),
|
|
7431
7442
|
...e
|
|
7432
7443
|
});
|
|
7433
7444
|
}, Oo = ({ options: e } = {}) => {
|
|
7434
|
-
const { transferInGameApi: r } =
|
|
7435
|
-
return
|
|
7445
|
+
const { transferInGameApi: r } = ue();
|
|
7446
|
+
return se({
|
|
7436
7447
|
mutationKey: ["transferInGame"],
|
|
7437
7448
|
mutationFn: async (t) => r(t),
|
|
7438
7449
|
retry: !1,
|
|
7439
7450
|
...e
|
|
7440
7451
|
});
|
|
7441
7452
|
}, km = ({ options: e } = {}) => {
|
|
7442
|
-
const { currency: r } = oe(), { pointTransferApi: t } =
|
|
7443
|
-
return
|
|
7453
|
+
const { currency: r } = oe(), { pointTransferApi: t } = ue();
|
|
7454
|
+
return se({
|
|
7444
7455
|
mutationKey: ["pointTransfer"],
|
|
7445
7456
|
mutationFn: async (n) => t({
|
|
7446
7457
|
...n,
|
|
@@ -7449,7 +7460,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7449
7460
|
...e
|
|
7450
7461
|
});
|
|
7451
7462
|
}, xm = ({ options: e } = {}) => {
|
|
7452
|
-
const { currency: r } = oe(), { checkUserWagerApi: t } =
|
|
7463
|
+
const { currency: r } = oe(), { checkUserWagerApi: t } = ue();
|
|
7453
7464
|
return ne({
|
|
7454
7465
|
queryKey: ["checkUserWager"],
|
|
7455
7466
|
queryFn: async () => t(),
|
|
@@ -7462,8 +7473,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7462
7473
|
...e
|
|
7463
7474
|
});
|
|
7464
7475
|
}, Sm = ({ options: e } = {}) => {
|
|
7465
|
-
const r = Hn(), { abandonPointsApi: t } =
|
|
7466
|
-
return
|
|
7476
|
+
const r = Hn(), { abandonPointsApi: t } = ue();
|
|
7477
|
+
return se({
|
|
7467
7478
|
mutationKey: ["abandonPoint"],
|
|
7468
7479
|
mutationFn: async (n) => t({
|
|
7469
7480
|
...n
|
|
@@ -7474,48 +7485,55 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7474
7485
|
...e
|
|
7475
7486
|
});
|
|
7476
7487
|
}, tl = ({ options: e } = {}) => {
|
|
7477
|
-
const { lineLoginApi: r } =
|
|
7478
|
-
return
|
|
7488
|
+
const { lineLoginApi: r } = ue();
|
|
7489
|
+
return se({
|
|
7479
7490
|
mutationKey: ["lineLogin"],
|
|
7480
7491
|
mutationFn: async (t) => r(t),
|
|
7481
7492
|
...e
|
|
7482
7493
|
});
|
|
7483
7494
|
}, Bo = ({ options: e } = {}) => {
|
|
7484
|
-
const { lineLogin2Api: r } =
|
|
7485
|
-
return
|
|
7495
|
+
const { lineLogin2Api: r } = ue();
|
|
7496
|
+
return se({
|
|
7486
7497
|
mutationKey: ["lineLogin"],
|
|
7487
7498
|
mutationFn: async (t) => r(t),
|
|
7488
7499
|
...e
|
|
7489
7500
|
});
|
|
7490
7501
|
}, Ho = ({ options: e, formData: r } = {}) => {
|
|
7491
|
-
const { getMachineLoginCodeApi: t } =
|
|
7502
|
+
const { getMachineLoginCodeApi: t } = ue();
|
|
7492
7503
|
return ne({
|
|
7493
7504
|
queryKey: ["getMachineLoginCode"],
|
|
7494
7505
|
queryFn: async () => t(r),
|
|
7495
7506
|
...e
|
|
7496
7507
|
});
|
|
7497
7508
|
}, Dm = ({ options: e } = {}) => {
|
|
7498
|
-
const { currency: r } = oe(), { memberTransferApi: t } =
|
|
7499
|
-
return
|
|
7509
|
+
const { currency: r } = oe(), { memberTransferApi: t } = ue();
|
|
7510
|
+
return se({
|
|
7500
7511
|
mutationKey: ["memberTransfer"],
|
|
7501
7512
|
mutationFn: async (n) => t({ ...n, currency: r }),
|
|
7502
7513
|
...e
|
|
7503
7514
|
});
|
|
7504
7515
|
}, Em = ({ options: e } = {}) => {
|
|
7505
|
-
const { mobileLoginApi: r } =
|
|
7506
|
-
return
|
|
7516
|
+
const { mobileLoginApi: r } = ue();
|
|
7517
|
+
return se({
|
|
7507
7518
|
mutationKey: ["mobileLogin"],
|
|
7508
7519
|
mutationFn: async (t) => r(t),
|
|
7509
7520
|
...e
|
|
7510
7521
|
});
|
|
7511
7522
|
}, Nm = ({ options: e } = {}) => {
|
|
7512
|
-
const {
|
|
7513
|
-
return
|
|
7523
|
+
const { mobileLoginApiV2: r } = ue();
|
|
7524
|
+
return se({
|
|
7525
|
+
mutationKey: ["mobileLoginV2"],
|
|
7526
|
+
mutationFn: async (t) => r(t),
|
|
7527
|
+
...e
|
|
7528
|
+
});
|
|
7529
|
+
}, Lm = ({ options: e } = {}) => {
|
|
7530
|
+
const { sendMobileVerifyCodeApi: r } = ue();
|
|
7531
|
+
return se({
|
|
7514
7532
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7515
7533
|
mutationFn: async (t) => r(t),
|
|
7516
7534
|
...e
|
|
7517
7535
|
});
|
|
7518
|
-
},
|
|
7536
|
+
}, Gm = ({
|
|
7519
7537
|
options: e = {
|
|
7520
7538
|
login: {},
|
|
7521
7539
|
logout: {},
|
|
@@ -7564,7 +7582,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7564
7582
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7565
7583
|
GAME_MAINTAIN: "game_maintain",
|
|
7566
7584
|
LINE_LOGIN: "line_login"
|
|
7567
|
-
}, Wo = 3e4,
|
|
7585
|
+
}, Wo = 3e4, Mm = ({
|
|
7568
7586
|
socketUrl: e,
|
|
7569
7587
|
socketHandlers: r = {},
|
|
7570
7588
|
options: t = {},
|
|
@@ -7596,8 +7614,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7596
7614
|
onSuccess: (E) => {
|
|
7597
7615
|
d.current.onLineLogin?.(E);
|
|
7598
7616
|
},
|
|
7599
|
-
onError: (E,
|
|
7600
|
-
b || C(
|
|
7617
|
+
onError: (E, D) => {
|
|
7618
|
+
b || C(D);
|
|
7601
7619
|
}
|
|
7602
7620
|
}
|
|
7603
7621
|
}), { handleTransferInGame: x } = Do({
|
|
@@ -7609,7 +7627,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7609
7627
|
}), {
|
|
7610
7628
|
sendMessage: S,
|
|
7611
7629
|
// 發送普通訊息
|
|
7612
|
-
sendJsonMessage:
|
|
7630
|
+
sendJsonMessage: R,
|
|
7613
7631
|
// 發送 JSON 訊息
|
|
7614
7632
|
lastMessage: B,
|
|
7615
7633
|
// 最後接收到的訊息
|
|
@@ -7631,79 +7649,79 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7631
7649
|
return null;
|
|
7632
7650
|
}
|
|
7633
7651
|
}, [B]);
|
|
7634
|
-
|
|
7652
|
+
pe(() => {
|
|
7635
7653
|
const E = setInterval(
|
|
7636
7654
|
() => S("ping"),
|
|
7637
7655
|
Wo
|
|
7638
7656
|
);
|
|
7639
7657
|
return () => clearInterval(E);
|
|
7640
7658
|
}, [S]);
|
|
7641
|
-
const
|
|
7642
|
-
(E,
|
|
7659
|
+
const F = I(
|
|
7660
|
+
(E, D) => {
|
|
7643
7661
|
g && f.dispatch({
|
|
7644
7662
|
type: "ui/openNotificationModal",
|
|
7645
7663
|
payload: {
|
|
7646
7664
|
title: Qa[m] || "System Prompt",
|
|
7647
7665
|
content: E,
|
|
7648
7666
|
type: "warning",
|
|
7649
|
-
props:
|
|
7667
|
+
props: D
|
|
7650
7668
|
}
|
|
7651
7669
|
});
|
|
7652
7670
|
},
|
|
7653
7671
|
[g, f, m]
|
|
7654
7672
|
);
|
|
7655
|
-
|
|
7673
|
+
pe(() => {
|
|
7656
7674
|
d.current = r;
|
|
7657
7675
|
}, [r]);
|
|
7658
|
-
const
|
|
7659
|
-
return
|
|
7660
|
-
if (!T ||
|
|
7676
|
+
const N = ee(null);
|
|
7677
|
+
return pe(() => {
|
|
7678
|
+
if (!T || N.current === T)
|
|
7661
7679
|
return;
|
|
7662
|
-
|
|
7680
|
+
N.current = T;
|
|
7663
7681
|
const {
|
|
7664
7682
|
onDeposit: E,
|
|
7665
|
-
onTransCode:
|
|
7666
|
-
onError:
|
|
7667
|
-
onUpdateMember:
|
|
7668
|
-
onMaintainNotice:
|
|
7683
|
+
onTransCode: D,
|
|
7684
|
+
onError: L,
|
|
7685
|
+
onUpdateMember: A,
|
|
7686
|
+
onMaintainNotice: O,
|
|
7669
7687
|
onMaintainNoticeMember: H,
|
|
7670
7688
|
onTransferInGame: W,
|
|
7671
|
-
onCashRegisterLimit:
|
|
7689
|
+
onCashRegisterLimit: M,
|
|
7672
7690
|
onLineLogin: G
|
|
7673
|
-
} = d.current, w = ge(T, "type", ""),
|
|
7691
|
+
} = d.current, w = ge(T, "type", ""), P = {
|
|
7674
7692
|
memberInfoUid: ge(T, "member_info_uid", null),
|
|
7675
7693
|
data: ge(T, "data", null),
|
|
7676
7694
|
memo: ge(T, "memo", null),
|
|
7677
7695
|
amount: ge(T, "amount", null),
|
|
7678
7696
|
limitAmount: ge(T, "limit_amount", null)
|
|
7679
|
-
}, K = Number(
|
|
7697
|
+
}, K = Number(P.memberInfoUid) === y, q = P.data, Q = P.amount, J = P.limitAmount, X = _.get("mac") || lt.get("machine_mac_address") || "", ie = ge(T, "data.line_id", null), _e = ge(T, "data.line_name", null), ye = ge(T, "member_info_uid", null);
|
|
7680
7698
|
switch (w) {
|
|
7681
7699
|
case He.DEPOSIT:
|
|
7682
|
-
K && (x(), E?.(
|
|
7700
|
+
K && (x(), E?.(P));
|
|
7683
7701
|
break;
|
|
7684
7702
|
case He.TRANS_CODE:
|
|
7685
|
-
|
|
7703
|
+
D?.(P);
|
|
7686
7704
|
break;
|
|
7687
7705
|
case He.ERROR:
|
|
7688
7706
|
if (K) {
|
|
7689
7707
|
const le = ge(T, "open_game_modal", 0) === 1;
|
|
7690
|
-
|
|
7708
|
+
F(q, {
|
|
7691
7709
|
notificationType: le ? "gamingNotice" : void 0
|
|
7692
|
-
}),
|
|
7710
|
+
}), L?.(P);
|
|
7693
7711
|
}
|
|
7694
7712
|
break;
|
|
7695
7713
|
case He.UPDATE_MEMBER:
|
|
7696
7714
|
y && (a.invalidateQueries({
|
|
7697
7715
|
queryKey: ["getMemberInfo"]
|
|
7698
|
-
}),
|
|
7716
|
+
}), A?.(P));
|
|
7699
7717
|
break;
|
|
7700
7718
|
case He.MAINTAIN_NOTICE:
|
|
7701
|
-
|
|
7719
|
+
F(q, {
|
|
7702
7720
|
notificationType: "maintainNotice"
|
|
7703
|
-
}),
|
|
7721
|
+
}), O?.(P);
|
|
7704
7722
|
break;
|
|
7705
7723
|
case He.MAINTAIN_NOTICE_MEMBER:
|
|
7706
|
-
K && (
|
|
7724
|
+
K && (F(q), H?.(P), setTimeout(() => {
|
|
7707
7725
|
window.location.reload();
|
|
7708
7726
|
}, 5e4));
|
|
7709
7727
|
break;
|
|
@@ -7714,7 +7732,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7714
7732
|
case He.CHECK_REQUEST:
|
|
7715
7733
|
if (K && U) {
|
|
7716
7734
|
const { request_id: le, amount: ce, platform: ke, status: Ue } = ge(
|
|
7717
|
-
|
|
7735
|
+
P,
|
|
7718
7736
|
"data",
|
|
7719
7737
|
{}
|
|
7720
7738
|
), ze = localStorage.getItem(
|
|
@@ -7737,23 +7755,23 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7737
7755
|
}
|
|
7738
7756
|
});
|
|
7739
7757
|
}
|
|
7740
|
-
W?.(
|
|
7758
|
+
W?.(P);
|
|
7741
7759
|
}
|
|
7742
7760
|
break;
|
|
7743
7761
|
case He.CASH_REGISTER_LIMIT:
|
|
7744
|
-
|
|
7762
|
+
F(q, {
|
|
7745
7763
|
notificationType: "cashRegisterLimit",
|
|
7746
7764
|
amount: Q,
|
|
7747
7765
|
limitAmount: J
|
|
7748
|
-
}),
|
|
7766
|
+
}), M?.(P);
|
|
7749
7767
|
break;
|
|
7750
7768
|
case He.UPDATE_ONLY_ONE_MEMBER:
|
|
7751
7769
|
K && (a.invalidateQueries({
|
|
7752
7770
|
queryKey: ["getMemberInfo"]
|
|
7753
|
-
}),
|
|
7771
|
+
}), A?.(P));
|
|
7754
7772
|
break;
|
|
7755
7773
|
case He.GAME_MAINTAIN:
|
|
7756
|
-
|
|
7774
|
+
F(q, {
|
|
7757
7775
|
notificationType: "gameMaintain"
|
|
7758
7776
|
});
|
|
7759
7777
|
break;
|
|
@@ -7773,25 +7791,25 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7773
7791
|
f,
|
|
7774
7792
|
a,
|
|
7775
7793
|
m,
|
|
7776
|
-
|
|
7794
|
+
F,
|
|
7777
7795
|
o,
|
|
7778
7796
|
x,
|
|
7779
7797
|
U,
|
|
7780
7798
|
s
|
|
7781
|
-
]),
|
|
7799
|
+
]), pe(() => () => c.current = !0, []), pe(() => {
|
|
7782
7800
|
if (U) {
|
|
7783
7801
|
const E = localStorage.getItem(
|
|
7784
7802
|
"transfer_in_game_request_id"
|
|
7785
7803
|
);
|
|
7786
|
-
E && y && o &&
|
|
7804
|
+
E && y && o && R({
|
|
7787
7805
|
type: He.CHECK_REQUEST,
|
|
7788
7806
|
request_id: E,
|
|
7789
7807
|
member_info_uid: y
|
|
7790
7808
|
});
|
|
7791
7809
|
}
|
|
7792
|
-
}, [y, o,
|
|
7810
|
+
}, [y, o, R, U]), {
|
|
7793
7811
|
sendMessage: S,
|
|
7794
|
-
sendJsonMessage:
|
|
7812
|
+
sendJsonMessage: R,
|
|
7795
7813
|
readyState: k
|
|
7796
7814
|
// WebSocket 連線狀態
|
|
7797
7815
|
};
|
|
@@ -7944,9 +7962,9 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7944
7962
|
},
|
|
7945
7963
|
...r
|
|
7946
7964
|
});
|
|
7947
|
-
},
|
|
7965
|
+
}, Rm = ({ options: e } = {}) => {
|
|
7948
7966
|
const { redeemEventRewardApi: r } = Ji();
|
|
7949
|
-
return
|
|
7967
|
+
return se({
|
|
7950
7968
|
mutationKey: ["redeemEventReward"],
|
|
7951
7969
|
mutationFn: async (t) => r(t),
|
|
7952
7970
|
...e
|
|
@@ -7966,7 +7984,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7966
7984
|
select: (n) => n.data.event_status,
|
|
7967
7985
|
...e
|
|
7968
7986
|
});
|
|
7969
|
-
},
|
|
7987
|
+
}, Pm = ({
|
|
7970
7988
|
options: e = {
|
|
7971
7989
|
eventList: {},
|
|
7972
7990
|
checkEventProgress: {},
|
|
@@ -7997,7 +8015,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
7997
8015
|
commonInboxApi: n,
|
|
7998
8016
|
commonReadInboxApi: p
|
|
7999
8017
|
};
|
|
8000
|
-
},
|
|
8018
|
+
}, Fm = () => {
|
|
8001
8019
|
const { lng: e, data2URL: r } = oe(), { commonCarouselApi: t } = Ki(), n = Ye(e);
|
|
8002
8020
|
return ne({
|
|
8003
8021
|
queryKey: ["getCarouselList"],
|
|
@@ -8018,7 +8036,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8018
8036
|
};
|
|
8019
8037
|
})
|
|
8020
8038
|
});
|
|
8021
|
-
},
|
|
8039
|
+
}, wm = () => {
|
|
8022
8040
|
const { lng: e } = oe(), { commonMarqueeApi: r } = Ki(), t = Ye(e);
|
|
8023
8041
|
return ne({
|
|
8024
8042
|
queryKey: ["getMarqueeList"],
|
|
@@ -8031,8 +8049,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8031
8049
|
return We(p, (b) => b[t] || b["en-US"]);
|
|
8032
8050
|
}
|
|
8033
8051
|
});
|
|
8034
|
-
},
|
|
8035
|
-
const { rankingGameApi: r } =
|
|
8052
|
+
}, Am = ({ options: e } = {}) => {
|
|
8053
|
+
const { rankingGameApi: r } = ue();
|
|
8036
8054
|
return ne({
|
|
8037
8055
|
queryKey: ["rankingGame"],
|
|
8038
8056
|
queryFn: async () => r(),
|
|
@@ -8095,12 +8113,12 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8095
8113
|
});
|
|
8096
8114
|
}, Jo = ({ options: e } = {}) => {
|
|
8097
8115
|
const { commonReadInboxApi: r } = Ki();
|
|
8098
|
-
return
|
|
8116
|
+
return se({
|
|
8099
8117
|
mutationKey: ["readInbox"],
|
|
8100
8118
|
mutationFn: async (t) => await r(t),
|
|
8101
8119
|
...e
|
|
8102
8120
|
});
|
|
8103
|
-
},
|
|
8121
|
+
}, Om = ({
|
|
8104
8122
|
options: e = {
|
|
8105
8123
|
inboxList: {},
|
|
8106
8124
|
readInbox: {}
|
|
@@ -8167,7 +8185,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8167
8185
|
value: "other",
|
|
8168
8186
|
...e.other
|
|
8169
8187
|
}
|
|
8170
|
-
],
|
|
8188
|
+
], Bm = ({ options: e, formData: r } = {}) => {
|
|
8171
8189
|
const { lng: t } = oe(), { newsListApi: n } = nl(), p = Ye(t);
|
|
8172
8190
|
return ne({
|
|
8173
8191
|
queryKey: ["newsList"],
|
|
@@ -8193,7 +8211,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8193
8211
|
},
|
|
8194
8212
|
...e
|
|
8195
8213
|
});
|
|
8196
|
-
},
|
|
8214
|
+
}, Hm = ({ options: e, formData: r } = {}) => {
|
|
8197
8215
|
const { lng: t } = oe(), { newsListApi: n } = nl(), p = Ye(t);
|
|
8198
8216
|
return ne({
|
|
8199
8217
|
queryKey: ["newsList"],
|
|
@@ -8372,14 +8390,14 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8372
8390
|
});
|
|
8373
8391
|
}, Qo = ({ options: e } = {}) => {
|
|
8374
8392
|
const { depositApi: r } = Xe();
|
|
8375
|
-
return
|
|
8393
|
+
return se({
|
|
8376
8394
|
mutationKey: ["depositAction"],
|
|
8377
8395
|
mutationFn: async (t) => r(t),
|
|
8378
8396
|
...e
|
|
8379
8397
|
});
|
|
8380
8398
|
}, jo = ({ options: e } = {}) => {
|
|
8381
8399
|
const { withdrawApi: r } = Xe();
|
|
8382
|
-
return
|
|
8400
|
+
return se({
|
|
8383
8401
|
mutationKey: ["withdrawAction"],
|
|
8384
8402
|
mutationFn: async (t) => r(t),
|
|
8385
8403
|
...e
|
|
@@ -8400,7 +8418,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8400
8418
|
});
|
|
8401
8419
|
}, es = ({ options: e } = {}) => {
|
|
8402
8420
|
const { bankDepositApi: r } = Xe();
|
|
8403
|
-
return
|
|
8421
|
+
return se({
|
|
8404
8422
|
mutationKey: ["bankDeposit"],
|
|
8405
8423
|
mutationFn: async (t) => r(t),
|
|
8406
8424
|
...e
|
|
@@ -8412,28 +8430,28 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8412
8430
|
queryFn: () => t({ paramsData: e }),
|
|
8413
8431
|
...r
|
|
8414
8432
|
});
|
|
8415
|
-
},
|
|
8433
|
+
}, Wm = ({ options: e } = {}) => {
|
|
8416
8434
|
const { redeemCodeDepositApi: r } = Xe();
|
|
8417
|
-
return
|
|
8435
|
+
return se({
|
|
8418
8436
|
mutationKey: ["redeemCodeDeposit"],
|
|
8419
8437
|
mutationFn: async (t) => r(t),
|
|
8420
8438
|
...e
|
|
8421
8439
|
});
|
|
8422
|
-
},
|
|
8440
|
+
}, zm = ({ options: e } = {}) => {
|
|
8423
8441
|
const { invoiceApi: r } = Xe();
|
|
8424
|
-
return
|
|
8442
|
+
return se({
|
|
8425
8443
|
mutationKey: ["invoiceAction"],
|
|
8426
8444
|
mutationFn: async (t) => r(t),
|
|
8427
8445
|
...e
|
|
8428
8446
|
});
|
|
8429
|
-
},
|
|
8447
|
+
}, Im = ({ options: e } = {}) => {
|
|
8430
8448
|
const { updateInvoiceApi: r } = Xe();
|
|
8431
|
-
return
|
|
8449
|
+
return se({
|
|
8432
8450
|
mutationKey: ["updateInvoiceAction"],
|
|
8433
8451
|
mutationFn: async (t) => r(t),
|
|
8434
8452
|
...e
|
|
8435
8453
|
});
|
|
8436
|
-
},
|
|
8454
|
+
}, Vm = ({
|
|
8437
8455
|
depositV1: e = {},
|
|
8438
8456
|
depositV2: r = {},
|
|
8439
8457
|
depositTransaction: t = {},
|
|
@@ -8554,7 +8572,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8554
8572
|
extendString: _l,
|
|
8555
8573
|
extendUint8Array: yl,
|
|
8556
8574
|
extendBuiltins: ps
|
|
8557
|
-
},
|
|
8575
|
+
}, Zm = (e, r) => {
|
|
8558
8576
|
const { playGameApi: t } = ct();
|
|
8559
8577
|
return ne({
|
|
8560
8578
|
queryKey: ["playGame"],
|
|
@@ -8604,12 +8622,12 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8604
8622
|
});
|
|
8605
8623
|
}, cs = ({ options: e } = {}) => {
|
|
8606
8624
|
const { receiveRebateApi: r } = Ul();
|
|
8607
|
-
return
|
|
8625
|
+
return se({
|
|
8608
8626
|
mutationKey: ["receiveRebate"],
|
|
8609
8627
|
mutationFn: async () => r(),
|
|
8610
8628
|
...e
|
|
8611
8629
|
});
|
|
8612
|
-
},
|
|
8630
|
+
}, Jm = ({
|
|
8613
8631
|
options: e = {
|
|
8614
8632
|
currentRebate: {},
|
|
8615
8633
|
receiveRebate: {}
|
|
@@ -8681,7 +8699,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8681
8699
|
});
|
|
8682
8700
|
}, _s = ({ options: e } = {}) => {
|
|
8683
8701
|
const { redeemRewardApi: r } = ja();
|
|
8684
|
-
return
|
|
8702
|
+
return se({
|
|
8685
8703
|
mutationKey: ["redeemReward"],
|
|
8686
8704
|
mutationFn: async (t) => await r(t),
|
|
8687
8705
|
...e
|
|
@@ -8707,7 +8725,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8707
8725
|
queryFn: r,
|
|
8708
8726
|
...e
|
|
8709
8727
|
});
|
|
8710
|
-
},
|
|
8728
|
+
}, Km = ({
|
|
8711
8729
|
options: e = {
|
|
8712
8730
|
rewardsList: {},
|
|
8713
8731
|
redeemReward: {},
|
|
@@ -8738,7 +8756,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8738
8756
|
vipListApi: r,
|
|
8739
8757
|
vipInfoApi: t
|
|
8740
8758
|
};
|
|
8741
|
-
},
|
|
8759
|
+
}, qm = ({ options: e } = {}) => {
|
|
8742
8760
|
const { store: r } = oe(), t = r?.getState()?.isMemberInfo || r?.getState()?.member?.member || {}, { vipInfoApi: n } = bl();
|
|
8743
8761
|
return ne({
|
|
8744
8762
|
queryKey: ["vipInfo"],
|
|
@@ -8790,7 +8808,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
|
|
|
8790
8808
|
},
|
|
8791
8809
|
...e
|
|
8792
8810
|
});
|
|
8793
|
-
},
|
|
8811
|
+
}, $m = ({ options: e } = {
|
|
8794
8812
|
vipList: {}
|
|
8795
8813
|
}) => ({
|
|
8796
8814
|
vipList: Cs({ options: e.vipList })
|
|
@@ -9096,74 +9114,74 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9096
9114
|
}, onAction: s = () => {
|
|
9097
9115
|
}, onMessage: o = () => {
|
|
9098
9116
|
}, debounce: u = 0, throttle: m = 0, eventsThrottle: c = 200, startOnMount: d = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: S = !1 } = {}) {
|
|
9099
|
-
let
|
|
9100
|
-
|
|
9117
|
+
let R = ee(Te()), B = ee(Te()), k = ee(null), T = ee(null), F = ee(0), N = ee(0), E = ee(0), D = ee(0), L = ee(!1), A = ee(!1), O = ee(!1), H = ee(!0), W = ee(!1), M = ee(null), G = ee(null), w = ee(e), P = ee(0);
|
|
9118
|
+
pe(() => {
|
|
9101
9119
|
if (r && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && r) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
9102
9120
|
if (e >= wa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${wa}.`);
|
|
9103
9121
|
if (r >= wa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${wa}.`);
|
|
9104
9122
|
if (t >= wa) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${wa}.`);
|
|
9105
9123
|
if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
9106
|
-
if (t ? (w.current = e - t,
|
|
9124
|
+
if (t ? (w.current = e - t, P.current = t) : (w.current = e, P.current = r), !H.current) {
|
|
9107
9125
|
if (y || S) return;
|
|
9108
|
-
|
|
9126
|
+
L.current && (le.current(null, Se), G.current && G.current.active()), Ke();
|
|
9109
9127
|
}
|
|
9110
9128
|
}, [e, r, t, y, S]);
|
|
9111
9129
|
let K = ee(_);
|
|
9112
|
-
|
|
9130
|
+
pe(() => {
|
|
9113
9131
|
K.current = _;
|
|
9114
9132
|
}, [_]);
|
|
9115
9133
|
let q = ee(b), Q = ee(n), J = ee([...(/* @__PURE__ */ new Set([...p, ...b])).values()]), X = ee(S);
|
|
9116
|
-
|
|
9134
|
+
pe(() => {
|
|
9117
9135
|
X.current = S, !H.current && (S ? Ie() : y || Ke());
|
|
9118
9136
|
}, [S]);
|
|
9119
9137
|
let ie = ee(f);
|
|
9120
|
-
|
|
9138
|
+
pe(() => {
|
|
9121
9139
|
ie.current = f;
|
|
9122
9140
|
}, [f]);
|
|
9123
9141
|
let _e = ee(l);
|
|
9124
|
-
|
|
9142
|
+
pe(() => {
|
|
9125
9143
|
_e.current = l;
|
|
9126
9144
|
}, [l]);
|
|
9127
9145
|
let ye = ee(a);
|
|
9128
|
-
|
|
9146
|
+
pe(() => {
|
|
9129
9147
|
ye.current = a;
|
|
9130
9148
|
}, [a]);
|
|
9131
9149
|
let le = ee(i);
|
|
9132
|
-
|
|
9150
|
+
pe(() => {
|
|
9133
9151
|
le.current = i;
|
|
9134
9152
|
}, [i]);
|
|
9135
9153
|
let ce = ee(s);
|
|
9136
|
-
|
|
9154
|
+
pe(() => {
|
|
9137
9155
|
ce.current = s;
|
|
9138
9156
|
}, [s]);
|
|
9139
9157
|
let ke = ee(o);
|
|
9140
|
-
|
|
9158
|
+
pe(() => {
|
|
9141
9159
|
ke.current = o;
|
|
9142
9160
|
}, [o]);
|
|
9143
9161
|
let Ue = Oa(() => {
|
|
9144
9162
|
let V = (De, ta) => ce.current(De, ta);
|
|
9145
9163
|
return u > 0 ? Os(V, u) : m > 0 ? it(V, m) : V;
|
|
9146
9164
|
}, [m, u]), ze = ee();
|
|
9147
|
-
|
|
9165
|
+
pe(() => {
|
|
9148
9166
|
U && v && (ze.current = it(() => {
|
|
9149
9167
|
G.current.active();
|
|
9150
9168
|
}, v));
|
|
9151
9169
|
}, [U, v]);
|
|
9152
9170
|
let Ce = () => {
|
|
9153
|
-
|
|
9171
|
+
M.current !== null && ($e.clearTimeout(M.current), M.current = null);
|
|
9154
9172
|
}, Ge = (V, De = !0) => {
|
|
9155
|
-
Ce(),
|
|
9173
|
+
Ce(), M.current = $e.setTimeout(Oe, V || w.current), De && (T.current = Te());
|
|
9156
9174
|
}, ea = (V) => {
|
|
9157
|
-
!
|
|
9175
|
+
!A.current && !L.current && (_e.current(V, Se), ie.current({ type: "active", prompted: !0 }, Se)), D.current = 0, E.current = Te(), A.current = !0, Ge(P.current, !1);
|
|
9158
9176
|
}, Me = () => {
|
|
9159
|
-
Ce(),
|
|
9177
|
+
Ce(), L.current || (ye.current(null, Se), ie.current({ type: "idle" }, Se)), L.current = !0, k.current = Te(), K.current ? Re() : A.current && (E.current = 0, A.current = !1);
|
|
9160
9178
|
}, ve = (V) => {
|
|
9161
|
-
Ce(), (
|
|
9179
|
+
Ce(), (L.current || A.current) && (le.current(V, Se), ie.current({ type: "active", prompted: !1 }, Se)), A.current = !1, E.current = 0, L.current = !1, F.current += Te() - k.current, N.current += Te() - k.current, xe(), Ge();
|
|
9162
9180
|
}, Oe = (V) => {
|
|
9163
|
-
if (!
|
|
9181
|
+
if (!L.current) {
|
|
9164
9182
|
Ue.cancel && Ue.cancel();
|
|
9165
9183
|
let De = Te() - T.current;
|
|
9166
|
-
if (!(w.current +
|
|
9184
|
+
if (!(w.current + P.current < De) && P.current > 0 && !A.current) {
|
|
9167
9185
|
G.current ? G.current.prompt() : ea(V);
|
|
9168
9186
|
return;
|
|
9169
9187
|
}
|
|
@@ -9172,19 +9190,19 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9172
9190
|
}
|
|
9173
9191
|
G.current ? G.current.active() : ve(V);
|
|
9174
9192
|
}, aa = (V) => {
|
|
9175
|
-
if (!d && !T.current && (T.current = Te(), le.current(null, Se)), Ue(V, Se),
|
|
9176
|
-
if (Ce(), !
|
|
9193
|
+
if (!d && !T.current && (T.current = Te(), le.current(null, Se)), Ue(V, Se), A.current) return;
|
|
9194
|
+
if (Ce(), !L.current && q.current.includes(V.type)) {
|
|
9177
9195
|
Oe(V);
|
|
9178
9196
|
return;
|
|
9179
9197
|
}
|
|
9180
9198
|
let De = Te() - T.current;
|
|
9181
|
-
if (
|
|
9199
|
+
if (L.current && !_ || !L.current && De >= w.current) {
|
|
9182
9200
|
Oe(V);
|
|
9183
9201
|
return;
|
|
9184
9202
|
}
|
|
9185
|
-
|
|
9203
|
+
O.current = !1, D.current = 0, E.current = 0, Ge(), U && v && ze.current();
|
|
9186
9204
|
}, ia = ee(aa);
|
|
9187
|
-
|
|
9205
|
+
pe(() => {
|
|
9188
9206
|
let V = W.current;
|
|
9189
9207
|
V && Re(), c > 0 ? ia.current = it(aa, c) : ia.current = aa, V && xe();
|
|
9190
9208
|
}, [c, m, u, ce, U, v]);
|
|
@@ -9196,18 +9214,18 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9196
9214
|
pa && Q.current && (W.current || V) && (J.current.forEach((De) => {
|
|
9197
9215
|
Q.current.removeEventListener(De, ia.current, { capture: !0 });
|
|
9198
9216
|
}), W.current = !1);
|
|
9199
|
-
}, Ke = I((V) => X.current ? !1 : (Ce(), xe(),
|
|
9200
|
-
if (
|
|
9201
|
-
let V =
|
|
9217
|
+
}, Ke = I((V) => X.current ? !1 : (Ce(), xe(), L.current = !1, A.current = !1, O.current = !1, D.current = 0, E.current = 0, G.current && !V && G.current.start(), Ge(), !0), [M, L, X, w, G]), oa = I((V) => X.current ? !1 : (Ce(), xe(), B.current = Te(), F.current += Te() - k.current, N.current += Te() - k.current, F.current = 0, L.current = !1, A.current = !1, O.current = !1, D.current = 0, E.current = 0, G.current && !V && G.current.reset(), y || Ge(), !0), [M, L, w, y, X, G]), ga = I((V) => X.current ? !1 : (Ce(), xe(), (L.current || A.current) && ve(), L.current = !1, A.current = !1, O.current = !1, D.current = 0, E.current = 0, B.current = Te(), G.current && !V && G.current.activate(), Ge(), !0), [M, L, A, X, w, G]), Ie = I((V = !1) => X.current || O.current ? !1 : (D.current = Ua(), O.current = !0, Re(), Ce(), G.current && !V && G.current.pause(), !0), [M, X, G]), qe = I((V = !1) => X.current || !O.current ? !1 : (O.current = !1, A.current || xe(), L.current || Ge(D.current), E.current && (E.current = Te()), G.current && !V && G.current.resume(), !0), [M, w, X, D, G]), Wa = I((V, De) => (G.current ? (De && ke.current(V, Se), G.current.message(V)) : De && ke.current(V, Se), !0), [o]), Ea = I(() => L.current, [L]), Na = I(() => A.current, [A]), za = I(() => G.current ? G.current.isLeader : null, [G]), Ia = I(() => G.current ? G.current.isLastActive : null, [G]), da = I(() => G.current ? G.current.token : null, [G]), Ua = I(() => {
|
|
9218
|
+
if (O.current) return D.current;
|
|
9219
|
+
let V = D.current ? D.current : P.current + w.current, De = T.current ? Te() - T.current : 0, ta = Math.floor(V - De);
|
|
9202
9220
|
return ta < 0 ? 0 : Math.abs(ta);
|
|
9203
|
-
}, [w,
|
|
9221
|
+
}, [w, P, A, D, T]), Ze = I(() => Math.round(Te() - B.current), [B]), ca = I(() => Math.round(Te() - R.current), [R]), fa = I(() => k.current ? new Date(k.current) : null, [k]), La = I(() => T.current ? new Date(T.current) : null, [T]), Ga = I(() => L.current ? Math.round(Te() - k.current + F.current) : Math.round(F.current), [k, F]), ba = I(() => L.current ? Math.round(Te() - k.current + N.current) : Math.round(N.current), [k, N]), Ma = I(() => {
|
|
9204
9222
|
let V = Math.round(Ze() - Ga());
|
|
9205
9223
|
return V >= 0 ? V : 0;
|
|
9206
|
-
}, [k,
|
|
9224
|
+
}, [k, F]), Ra = I(() => {
|
|
9207
9225
|
let V = Math.round(ca() - ba());
|
|
9208
9226
|
return V >= 0 ? V : 0;
|
|
9209
|
-
}, [k,
|
|
9210
|
-
|
|
9227
|
+
}, [k, F]);
|
|
9228
|
+
pe(() => {
|
|
9211
9229
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
9212
9230
|
g && Ls(g);
|
|
9213
9231
|
let V = () => {
|
|
@@ -9216,7 +9234,7 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9216
9234
|
return pa && window.addEventListener("beforeunload", V), () => {
|
|
9217
9235
|
pa && window.removeEventListener("beforeunload", V), G.current && G.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
9218
9236
|
};
|
|
9219
|
-
}, []),
|
|
9237
|
+
}, []), pe(() => {
|
|
9220
9238
|
G.current && G.current.close(), U ? G.current = new Fs({ channelName: C, leaderElection: x, onPrompt: () => {
|
|
9221
9239
|
ea();
|
|
9222
9240
|
}, onIdle: () => {
|
|
@@ -9226,15 +9244,15 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9226
9244
|
}, onMessage: (V) => {
|
|
9227
9245
|
ke.current(V, Se);
|
|
9228
9246
|
}, start: Ke, reset: oa, activate: ga, pause: Ie, resume: qe }) : G.current = null;
|
|
9229
|
-
}, [U, C, x, _e, ye, le, ke, Ke, oa, Ie, qe]),
|
|
9247
|
+
}, [U, C, x, _e, ye, le, ke, Ke, oa, Ie, qe]), pe(() => {
|
|
9230
9248
|
H.current || (Ce(), Re(!0)), !(y || S) && (d ? Ke() : xe());
|
|
9231
|
-
}, [y, d, S, H]),
|
|
9249
|
+
}, [y, d, S, H]), pe(() => {
|
|
9232
9250
|
if (!H.current) {
|
|
9233
9251
|
let V = [...(/* @__PURE__ */ new Set([...p, ...b])).values()];
|
|
9234
9252
|
if (Re(), J.current = V, Q.current = n, q.current = b, y || S) return;
|
|
9235
9253
|
d ? Ke() : xe();
|
|
9236
9254
|
}
|
|
9237
|
-
}, [n, JSON.stringify(p), JSON.stringify(b), H, S, y, d]),
|
|
9255
|
+
}, [n, JSON.stringify(p), JSON.stringify(b), H, S, y, d]), pe(() => {
|
|
9238
9256
|
H.current && (H.current = !1);
|
|
9239
9257
|
}, [H]);
|
|
9240
9258
|
let Se = { message: Wa, start: Ke, reset: oa, activate: ga, pause: Ie, resume: qe, isIdle: Ea, isPrompted: Na, isLeader: za, isLastActiveTab: Ia, getTabId: da, getRemainingTime: Ua, getElapsedTime: Ze, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: ba, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
|
|
@@ -9254,7 +9272,7 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
|
|
|
9254
9272
|
}
|
|
9255
9273
|
var Hs = zi(null);
|
|
9256
9274
|
Hs.Consumer;
|
|
9257
|
-
const
|
|
9275
|
+
const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
9258
9276
|
onIdle: e,
|
|
9259
9277
|
onActive: r,
|
|
9260
9278
|
onAction: t,
|
|
@@ -9279,7 +9297,7 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9279
9297
|
default:
|
|
9280
9298
|
return "En";
|
|
9281
9299
|
}
|
|
9282
|
-
}, Fn = "game-icon-ds88",
|
|
9300
|
+
}, Fn = "game-icon-ds88", jm = ({ gameData: e = {} } = {}) => {
|
|
9283
9301
|
const { lng: r } = oe(), t = Pn(r), {
|
|
9284
9302
|
gameCode: n,
|
|
9285
9303
|
// 遊戲代碼
|
|
@@ -9353,7 +9371,7 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9353
9371
|
"HACK",
|
|
9354
9372
|
"NAGA",
|
|
9355
9373
|
"RSG"
|
|
9356
|
-
], e) && r ? `${e}_dark` : e,
|
|
9374
|
+
], e) && r ? `${e}_dark` : e, Ym = ({ platformData: e, darkMode: r } = {}) => {
|
|
9357
9375
|
const {
|
|
9358
9376
|
SubPlatformEnum: t,
|
|
9359
9377
|
// 子平台枚舉
|
|
@@ -9409,7 +9427,7 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9409
9427
|
allPlatforms: p
|
|
9410
9428
|
});
|
|
9411
9429
|
return Ee(f) || (g[b] = f), g;
|
|
9412
|
-
}, {}),
|
|
9430
|
+
}, {}), Xm = ({
|
|
9413
9431
|
types: e = [],
|
|
9414
9432
|
platforms: r = [],
|
|
9415
9433
|
allGameType: t = [],
|
|
@@ -9459,21 +9477,21 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9459
9477
|
gameList: e,
|
|
9460
9478
|
allGameTypes: t,
|
|
9461
9479
|
allPlatforms: r
|
|
9462
|
-
}), _ = We(r, (
|
|
9463
|
-
const B = `${je}/${Kn}/${
|
|
9480
|
+
}), _ = We(r, (R) => {
|
|
9481
|
+
const B = `${je}/${Kn}/${R.platformEnum}.png`;
|
|
9464
9482
|
return {
|
|
9465
|
-
...
|
|
9483
|
+
...R,
|
|
9466
9484
|
platformImageUrl: B
|
|
9467
9485
|
};
|
|
9468
9486
|
}), U = Js(s, n), C = qs(y), v = $s(C), x = Wn(y).reduce(
|
|
9469
|
-
(
|
|
9487
|
+
(R, [B, k]) => {
|
|
9470
9488
|
const T = Vi(zl(k));
|
|
9471
|
-
return
|
|
9489
|
+
return R[B] = T, R;
|
|
9472
9490
|
},
|
|
9473
9491
|
{}
|
|
9474
|
-
), S = kt(y).reduce((
|
|
9492
|
+
), S = kt(y).reduce((R, B) => {
|
|
9475
9493
|
const k = kt(y[B]);
|
|
9476
|
-
return
|
|
9494
|
+
return R[B] = k, R;
|
|
9477
9495
|
}, {});
|
|
9478
9496
|
return {
|
|
9479
9497
|
platform: {
|
|
@@ -9508,7 +9526,7 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9508
9526
|
favorite: d
|
|
9509
9527
|
}
|
|
9510
9528
|
};
|
|
9511
|
-
},
|
|
9529
|
+
}, eu = (e = []) => !la(e) || Ee(e) ? [] : Vi(e, (r) => Ee(r.SubPlatformEnum) ? r : r.SubPlatformEnum.map((t) => ({
|
|
9512
9530
|
...r,
|
|
9513
9531
|
...t,
|
|
9514
9532
|
platform: t.SubPlatformEnum,
|
|
@@ -9534,7 +9552,7 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
9534
9552
|
},
|
|
9535
9553
|
user: { favorite: [] }
|
|
9536
9554
|
}, Ys = ({ enabled: e = !0 } = {}) => {
|
|
9537
|
-
const { getToken: r } = oe(), { userFavoriteGameApi: t, userGameListApi: n } =
|
|
9555
|
+
const { getToken: r } = oe(), { userFavoriteGameApi: t, userGameListApi: n } = ue(), { data: p, isLoading: g, error: b, refetch: f } = ne({
|
|
9538
9556
|
queryKey: ["gamesInfo"],
|
|
9539
9557
|
queryFn: async () => {
|
|
9540
9558
|
let l = {}, a = {};
|
|
@@ -36103,13 +36121,13 @@ const $m = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
|
|
|
36103
36121
|
autoFetch: r = !1,
|
|
36104
36122
|
mockData: t = !1
|
|
36105
36123
|
}) => {
|
|
36106
|
-
|
|
36124
|
+
pe(() => {
|
|
36107
36125
|
t && Xs(!0);
|
|
36108
36126
|
}, [t]);
|
|
36109
36127
|
const n = Ys({ enabled: r });
|
|
36110
36128
|
return /* @__PURE__ */ we.jsx(qn.Provider, { value: n, children: e });
|
|
36111
36129
|
};
|
|
36112
|
-
function
|
|
36130
|
+
function au({
|
|
36113
36131
|
children: e,
|
|
36114
36132
|
autoFetchGamesInfo: r = !1,
|
|
36115
36133
|
useMockData: t = !1,
|
|
@@ -36139,7 +36157,7 @@ function eu({
|
|
|
36139
36157
|
}
|
|
36140
36158
|
) }) }) });
|
|
36141
36159
|
}
|
|
36142
|
-
const
|
|
36160
|
+
const iu = ({ onFunction: e = () => {
|
|
36143
36161
|
}, buttonProps: r = {} } = {}) => {
|
|
36144
36162
|
const { lineConfig: t } = oe(), n = ee(!1), p = ge(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), f = g.get("trans_code"), l = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: s, isPending: o } = tl({
|
|
36145
36163
|
options: {
|
|
@@ -36149,7 +36167,7 @@ const au = ({ onFunction: e = () => {
|
|
|
36149
36167
|
retry: !1
|
|
36150
36168
|
}
|
|
36151
36169
|
});
|
|
36152
|
-
|
|
36170
|
+
pe(() => {
|
|
36153
36171
|
n.current || b === "true" && l && a && (s({
|
|
36154
36172
|
trans_code: f,
|
|
36155
36173
|
line_id: l,
|
|
@@ -36858,7 +36876,7 @@ var sm = (function() {
|
|
|
36858
36876
|
U.current = E, typeof t == "function" ? t(E) : t && (t.current = E);
|
|
36859
36877
|
},
|
|
36860
36878
|
[t]
|
|
36861
|
-
), [x, S] = de.useState(!1), { margin:
|
|
36879
|
+
), [x, S] = de.useState(!1), { margin: R, cells: B, numCells: k, calculatedImageSettings: T } = Ml({
|
|
36862
36880
|
value: p,
|
|
36863
36881
|
level: b,
|
|
36864
36882
|
minVersion: i,
|
|
@@ -36870,26 +36888,26 @@ var sm = (function() {
|
|
|
36870
36888
|
});
|
|
36871
36889
|
de.useEffect(() => {
|
|
36872
36890
|
if (U.current != null) {
|
|
36873
|
-
const E = U.current,
|
|
36874
|
-
if (!
|
|
36891
|
+
const E = U.current, D = E.getContext("2d");
|
|
36892
|
+
if (!D)
|
|
36875
36893
|
return;
|
|
36876
|
-
let
|
|
36877
|
-
const
|
|
36878
|
-
|
|
36894
|
+
let L = B;
|
|
36895
|
+
const A = C.current, O = T != null && A !== null && A.complete && A.naturalHeight !== 0 && A.naturalWidth !== 0;
|
|
36896
|
+
O && T.excavation != null && (L = Gl(
|
|
36879
36897
|
B,
|
|
36880
36898
|
T.excavation
|
|
36881
36899
|
));
|
|
36882
36900
|
const H = window.devicePixelRatio || 1;
|
|
36883
36901
|
E.height = E.width = g * H;
|
|
36884
36902
|
const W = g / k * H;
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
w &&
|
|
36903
|
+
D.scale(W, W), D.fillStyle = f, D.fillRect(0, 0, k, k), D.fillStyle = l, sm ? D.fill(new Path2D(Ll(L, R))) : B.forEach(function(M, G) {
|
|
36904
|
+
M.forEach(function(w, P) {
|
|
36905
|
+
w && D.fillRect(P + R, G + R, 1, 1);
|
|
36888
36906
|
});
|
|
36889
|
-
}), T && (
|
|
36890
|
-
|
|
36891
|
-
T.x +
|
|
36892
|
-
T.y +
|
|
36907
|
+
}), T && (D.globalAlpha = T.opacity), O && D.drawImage(
|
|
36908
|
+
A,
|
|
36909
|
+
T.x + R,
|
|
36910
|
+
T.y + R,
|
|
36893
36911
|
T.w,
|
|
36894
36912
|
T.h
|
|
36895
36913
|
);
|
|
@@ -36897,9 +36915,9 @@ var sm = (function() {
|
|
|
36897
36915
|
}), de.useEffect(() => {
|
|
36898
36916
|
S(!1);
|
|
36899
36917
|
}, [_]);
|
|
36900
|
-
const
|
|
36901
|
-
let
|
|
36902
|
-
return _ != null && (
|
|
36918
|
+
const F = st({ height: g, width: g }, d);
|
|
36919
|
+
let N = null;
|
|
36920
|
+
return _ != null && (N = /* @__PURE__ */ de.createElement(
|
|
36903
36921
|
"img",
|
|
36904
36922
|
{
|
|
36905
36923
|
src: _,
|
|
@@ -36914,13 +36932,13 @@ var sm = (function() {
|
|
|
36914
36932
|
)), /* @__PURE__ */ de.createElement(de.Fragment, null, /* @__PURE__ */ de.createElement(
|
|
36915
36933
|
"canvas",
|
|
36916
36934
|
st({
|
|
36917
|
-
style:
|
|
36935
|
+
style: F,
|
|
36918
36936
|
height: g,
|
|
36919
36937
|
width: g,
|
|
36920
36938
|
ref: v,
|
|
36921
36939
|
role: "img"
|
|
36922
36940
|
}, y)
|
|
36923
|
-
),
|
|
36941
|
+
), N);
|
|
36924
36942
|
}
|
|
36925
36943
|
);
|
|
36926
36944
|
mm.displayName = "QRCodeCanvas";
|
|
@@ -37046,7 +37064,7 @@ const um = {
|
|
|
37046
37064
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37047
37065
|
expired: "Kode QR telah kedaluwarsa"
|
|
37048
37066
|
}
|
|
37049
|
-
},
|
|
37067
|
+
}, lu = ({ forcedShow: e = !1, isVisible: r, setIsVisible: t } = {}) => {
|
|
37050
37068
|
const { lng: n, getToken: p } = oe(), [g, b] = tt(300), [f, l] = tt(!1), a = ee(null), i = Ye(n), s = p?.(), u = new URLSearchParams(window.location.search).get("mac") || lt.get("machine_mac_address") || "", { data: m, isFetching: c } = Ho({
|
|
37051
37069
|
formData: {
|
|
37052
37070
|
mac_address: u
|
|
@@ -37055,9 +37073,9 @@ const um = {
|
|
|
37055
37073
|
enabled: e ? !0 : !!u && !s
|
|
37056
37074
|
}
|
|
37057
37075
|
}), d = ge(m, "liff_url", "");
|
|
37058
|
-
|
|
37076
|
+
pe(() => {
|
|
37059
37077
|
u && lt.set("machine_mac_address", u, { expires: 365 });
|
|
37060
|
-
}, [u]),
|
|
37078
|
+
}, [u]), pe(() => (d && (b(300), l(!1), a.current && clearInterval(a.current), a.current = setInterval(() => {
|
|
37061
37079
|
b((U) => U <= 1 ? (clearInterval(a.current), l(!0), 0) : U - 1);
|
|
37062
37080
|
}, 1e3)), () => {
|
|
37063
37081
|
a.current && clearInterval(a.current);
|
|
@@ -37114,15 +37132,15 @@ const um = {
|
|
|
37114
37132
|
};
|
|
37115
37133
|
export {
|
|
37116
37134
|
zn as ApiCtx,
|
|
37117
|
-
|
|
37135
|
+
au as ApiProvider,
|
|
37118
37136
|
qn as GamesInfoCtx,
|
|
37119
|
-
|
|
37120
|
-
|
|
37137
|
+
iu as LineLogin,
|
|
37138
|
+
lu as LineQrCode,
|
|
37121
37139
|
Ja as STATUS_TYPES,
|
|
37122
37140
|
In as StatusContext,
|
|
37123
37141
|
ql as StatusProvider,
|
|
37124
37142
|
Ks as buildMultiTypes,
|
|
37125
|
-
|
|
37143
|
+
Xm as buildMultiTypesWithSubTypes,
|
|
37126
37144
|
jl as buildSinglePlatformWithSubTypes,
|
|
37127
37145
|
Ql as buildSingleType,
|
|
37128
37146
|
Js as categorizeGames,
|
|
@@ -37144,7 +37162,7 @@ export {
|
|
|
37144
37162
|
Ws as handleDarkImage,
|
|
37145
37163
|
Xs as initMockWindowData,
|
|
37146
37164
|
Qs as processGameInfo,
|
|
37147
|
-
|
|
37165
|
+
eu as processPlatformData,
|
|
37148
37166
|
Sm as useAbandonPoint,
|
|
37149
37167
|
oe as useApiContext,
|
|
37150
37168
|
Cm as useBalanceGetter,
|
|
@@ -37154,66 +37172,67 @@ export {
|
|
|
37154
37172
|
Io as useCheckCurrentEventProgress,
|
|
37155
37173
|
Vo as useCheckEventStatus,
|
|
37156
37174
|
xm as useCheckPlayerWager,
|
|
37157
|
-
|
|
37175
|
+
Mm as useClientWebSocket,
|
|
37158
37176
|
ds as useCurrentRebate,
|
|
37159
37177
|
Qo as useDepositAction,
|
|
37160
37178
|
Yo as useDepositTransaction,
|
|
37161
37179
|
qo as useDepositV1,
|
|
37162
37180
|
$o as useDepositV2,
|
|
37163
|
-
|
|
37181
|
+
Pm as useEvent,
|
|
37164
37182
|
zo as useEventList,
|
|
37165
37183
|
Xo as useEventTransaction,
|
|
37166
37184
|
Us as useExpiredRewardsList,
|
|
37167
|
-
|
|
37185
|
+
jm as useGameConfig,
|
|
37168
37186
|
ym as useGameInfoContext,
|
|
37169
37187
|
Ys as useGamesInfo,
|
|
37170
|
-
|
|
37188
|
+
Fm as useGetCarouseList,
|
|
37171
37189
|
Ho as useGetMachineLoginCode,
|
|
37172
|
-
|
|
37190
|
+
wm as useGetMarquee,
|
|
37173
37191
|
vm as useGetMemberInfo,
|
|
37174
|
-
|
|
37192
|
+
Am as useGetRankingGame,
|
|
37175
37193
|
bs as useHistoryRewardsList,
|
|
37176
|
-
|
|
37177
|
-
|
|
37194
|
+
Qm as useIdleTimeout,
|
|
37195
|
+
Om as useInbox,
|
|
37178
37196
|
Zo as useInboxList,
|
|
37179
37197
|
hm as useInitializeWithToken,
|
|
37180
|
-
|
|
37198
|
+
zm as useInvoiceAction,
|
|
37181
37199
|
tl as useLineLogin,
|
|
37182
37200
|
Bo as useLineLogin2,
|
|
37183
37201
|
Eo as useLogin,
|
|
37184
37202
|
No as useLogout,
|
|
37185
37203
|
Dm as useMemberTransfer,
|
|
37186
37204
|
Em as useMobileLogin,
|
|
37187
|
-
|
|
37188
|
-
|
|
37189
|
-
|
|
37190
|
-
|
|
37191
|
-
|
|
37205
|
+
Nm as useMobileLoginV2,
|
|
37206
|
+
Hm as useNewsDetail,
|
|
37207
|
+
Bm as useNewsList,
|
|
37208
|
+
Vm as usePayment,
|
|
37209
|
+
Ym as usePlatformConfig,
|
|
37210
|
+
Zm as usePlayGame,
|
|
37192
37211
|
km as usePointTransfer,
|
|
37193
37212
|
Jo as useReadInbox,
|
|
37194
|
-
|
|
37213
|
+
Jm as useRebate,
|
|
37195
37214
|
cs as useReceiveRebate,
|
|
37196
|
-
|
|
37197
|
-
|
|
37215
|
+
Wm as useRedeemCodeDeposit,
|
|
37216
|
+
Rm as useRedeemEventReward,
|
|
37198
37217
|
_s as useRedeemReward,
|
|
37199
37218
|
Ro as useResetUserPassword,
|
|
37200
37219
|
Fo as useResetUserTransactionPassword,
|
|
37201
|
-
|
|
37220
|
+
Km as useRewards,
|
|
37202
37221
|
fs as useRewardsList,
|
|
37203
|
-
|
|
37222
|
+
Lm as useSendMobileVerifyCode,
|
|
37204
37223
|
Po as useSetUserTransactionPassword,
|
|
37205
37224
|
Lo as useSignUp,
|
|
37206
37225
|
Vn as useStatus,
|
|
37207
37226
|
Go as useToggleFavoriteGame,
|
|
37208
37227
|
Oo as useTransferInGame,
|
|
37209
37228
|
ys as useUnUsedRewardsList,
|
|
37210
|
-
|
|
37229
|
+
Im as useUpdateInvoiceAction,
|
|
37211
37230
|
Mo as useUpdateUserInfo,
|
|
37212
|
-
|
|
37231
|
+
Gm as useUser,
|
|
37213
37232
|
Ao as useUserBindCard,
|
|
37214
37233
|
wo as useUserRebate,
|
|
37215
|
-
|
|
37216
|
-
|
|
37234
|
+
$m as useVip,
|
|
37235
|
+
qm as useVipInfo,
|
|
37217
37236
|
Cs as useVipList,
|
|
37218
37237
|
jo as useWithdrawAction,
|
|
37219
37238
|
as as useWithdrawTransaction
|