@obb871001/api-integration-sdk 1.0.438 → 1.0.439
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 +8 -8
- package/dist/index.js +973 -971
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ve, { createContext as ni, useContext as Ei, useState as
|
|
2
|
-
import { useQueries as sr, useQuery as Y, useQueryClient as ya, useMutation as
|
|
1
|
+
import ve, { createContext as ni, useContext as Ei, useState as je, useMemo as ka, useCallback as M, useRef as se, useEffect as fe } from "react";
|
|
2
|
+
import { useQueries as sr, useQuery as Y, useQueryClient as ya, useMutation as ee, useInfiniteQuery as sl, QueryClient as ml, QueryClientProvider as ul } from "@tanstack/react-query";
|
|
3
3
|
import pl from "axios";
|
|
4
|
-
import { get as j, replace as ot, isEmpty as Fe, find as Be, entries as mr, forEach as gl, omit as ur, map as
|
|
4
|
+
import { get as j, replace as ot, isEmpty as Fe, find as Be, entries as mr, forEach as gl, omit as ur, map as Ee, isArray as ta, toLower as Ii, keyBy as dl, includes as cl, isObject as ri, flatMap as li, values as fl, keys as zi } from "lodash";
|
|
5
5
|
import _l from "react-dom";
|
|
6
6
|
var ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function Di(e) {
|
|
@@ -54,25 +54,25 @@ function Ul() {
|
|
|
54
54
|
function y(x) {
|
|
55
55
|
if (x === null || typeof x != "object")
|
|
56
56
|
return null;
|
|
57
|
-
var
|
|
58
|
-
return typeof
|
|
57
|
+
var V = p && x[p] || x[f];
|
|
58
|
+
return typeof V == "function" ? V : null;
|
|
59
59
|
}
|
|
60
60
|
var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
61
|
function c(x) {
|
|
62
62
|
{
|
|
63
|
-
for (var
|
|
63
|
+
for (var V = arguments.length, $ = new Array(V > 1 ? V - 1 : 0), ne = 1; ne < V; ne++)
|
|
64
64
|
$[ne - 1] = arguments[ne];
|
|
65
65
|
U("error", x, $);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function U(x,
|
|
68
|
+
function U(x, V, $) {
|
|
69
69
|
{
|
|
70
70
|
var ne = _.ReactDebugCurrentFrame, _e = ne.getStackAddendum();
|
|
71
|
-
_e !== "" && (
|
|
72
|
-
var
|
|
73
|
-
return String(
|
|
71
|
+
_e !== "" && (V += "%s", $ = $.concat([_e]));
|
|
72
|
+
var Ue = $.map(function(ce) {
|
|
73
|
+
return String(ce);
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
Ue.unshift("Warning: " + V), Function.prototype.apply.call(console[x], console, Ue);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
var C = !1, v = !1, T = !1, h = !1, D = !1, H;
|
|
@@ -84,17 +84,17 @@ function Ul() {
|
|
|
84
84
|
// with.
|
|
85
85
|
x.$$typeof === H || x.getModuleId !== void 0));
|
|
86
86
|
}
|
|
87
|
-
function S(x,
|
|
87
|
+
function S(x, V, $) {
|
|
88
88
|
var ne = x.displayName;
|
|
89
89
|
if (ne)
|
|
90
90
|
return ne;
|
|
91
|
-
var _e =
|
|
91
|
+
var _e = V.displayName || V.name || "";
|
|
92
92
|
return _e !== "" ? $ + "(" + _e + ")" : $;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function F(x) {
|
|
95
95
|
return x.displayName || "Context";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function A(x) {
|
|
98
98
|
if (x == null)
|
|
99
99
|
return null;
|
|
100
100
|
if (typeof x.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof x == "function")
|
|
@@ -118,20 +118,20 @@ function Ul() {
|
|
|
118
118
|
if (typeof x == "object")
|
|
119
119
|
switch (x.$$typeof) {
|
|
120
120
|
case d:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var V = x;
|
|
122
|
+
return F(V) + ".Consumer";
|
|
123
123
|
case b:
|
|
124
124
|
var $ = x;
|
|
125
|
-
return
|
|
125
|
+
return F($._context) + ".Provider";
|
|
126
126
|
case l:
|
|
127
127
|
return S(x, x.render, "ForwardRef");
|
|
128
128
|
case o:
|
|
129
129
|
var ne = x.displayName || null;
|
|
130
|
-
return ne !== null ? ne :
|
|
130
|
+
return ne !== null ? ne : A(x.type) || "Memo";
|
|
131
131
|
case m: {
|
|
132
|
-
var _e = x,
|
|
132
|
+
var _e = x, Ue = _e._payload, ce = _e._init;
|
|
133
133
|
try {
|
|
134
|
-
return
|
|
134
|
+
return A(ce(Ue));
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -139,18 +139,18 @@ function Ul() {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var R = Object.assign, L = 0, G, I, W,
|
|
143
|
-
function F() {
|
|
144
|
-
}
|
|
145
|
-
F.__reactDisabledLog = !0;
|
|
142
|
+
var R = Object.assign, L = 0, G, I, W, z, B, N, E;
|
|
146
143
|
function w() {
|
|
144
|
+
}
|
|
145
|
+
w.__reactDisabledLog = !0;
|
|
146
|
+
function P() {
|
|
147
147
|
{
|
|
148
148
|
if (L === 0) {
|
|
149
|
-
G = console.log, I = console.info, W = console.warn,
|
|
149
|
+
G = console.log, I = console.info, W = console.warn, z = console.error, B = console.group, N = console.groupCollapsed, E = console.groupEnd;
|
|
150
150
|
var x = {
|
|
151
151
|
configurable: !0,
|
|
152
152
|
enumerable: !0,
|
|
153
|
-
value:
|
|
153
|
+
value: w,
|
|
154
154
|
writable: !0
|
|
155
155
|
};
|
|
156
156
|
Object.defineProperties(console, {
|
|
@@ -166,7 +166,7 @@ function Ul() {
|
|
|
166
166
|
L++;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function ae() {
|
|
170
170
|
{
|
|
171
171
|
if (L--, L === 0) {
|
|
172
172
|
var x = {
|
|
@@ -185,10 +185,10 @@ function Ul() {
|
|
|
185
185
|
value: W
|
|
186
186
|
}),
|
|
187
187
|
error: R({}, x, {
|
|
188
|
-
value:
|
|
188
|
+
value: z
|
|
189
189
|
}),
|
|
190
190
|
group: R({}, x, {
|
|
191
|
-
value:
|
|
191
|
+
value: B
|
|
192
192
|
}),
|
|
193
193
|
groupCollapsed: R({}, x, {
|
|
194
194
|
value: N
|
|
@@ -201,8 +201,8 @@ function Ul() {
|
|
|
201
201
|
L < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
204
|
+
var te = _.ReactCurrentDispatcher, le;
|
|
205
|
+
function O(x, V, $) {
|
|
206
206
|
{
|
|
207
207
|
if (le === void 0)
|
|
208
208
|
try {
|
|
@@ -215,13 +215,13 @@ function Ul() {
|
|
|
215
215
|
` + le + x;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var J = !1, Z;
|
|
219
219
|
{
|
|
220
220
|
var Q = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
221
|
Z = new Q();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
if (!x ||
|
|
223
|
+
function X(x, V) {
|
|
224
|
+
if (!x || J)
|
|
225
225
|
return "";
|
|
226
226
|
{
|
|
227
227
|
var $ = Z.get(x);
|
|
@@ -229,34 +229,34 @@ function Ul() {
|
|
|
229
229
|
return $;
|
|
230
230
|
}
|
|
231
231
|
var ne;
|
|
232
|
-
|
|
232
|
+
J = !0;
|
|
233
233
|
var _e = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var Ue;
|
|
236
|
+
Ue = te.current, te.current = null, P();
|
|
237
237
|
try {
|
|
238
|
-
if (
|
|
239
|
-
var
|
|
238
|
+
if (V) {
|
|
239
|
+
var ce = function() {
|
|
240
240
|
throw Error();
|
|
241
241
|
};
|
|
242
|
-
if (Object.defineProperty(
|
|
242
|
+
if (Object.defineProperty(ce.prototype, "props", {
|
|
243
243
|
set: function() {
|
|
244
244
|
throw Error();
|
|
245
245
|
}
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
|
-
Reflect.construct(
|
|
248
|
+
Reflect.construct(ce, []);
|
|
249
249
|
} catch (Ze) {
|
|
250
250
|
ne = Ze;
|
|
251
251
|
}
|
|
252
|
-
Reflect.construct(x, [],
|
|
252
|
+
Reflect.construct(x, [], ce);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
|
-
|
|
255
|
+
ce.call();
|
|
256
256
|
} catch (Ze) {
|
|
257
257
|
ne = Ze;
|
|
258
258
|
}
|
|
259
|
-
x.call(
|
|
259
|
+
x.call(ce.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
@@ -268,145 +268,145 @@ function Ul() {
|
|
|
268
268
|
}
|
|
269
269
|
} catch (Ze) {
|
|
270
270
|
if (Ze && ne && typeof Ze.stack == "string") {
|
|
271
|
-
for (var
|
|
272
|
-
`),
|
|
273
|
-
`),
|
|
271
|
+
for (var pe = Ze.stack.split(`
|
|
272
|
+
`), Ve = ne.stack.split(`
|
|
273
|
+
`), Se = pe.length - 1, De = Ve.length - 1; Se >= 1 && De >= 0 && pe[Se] !== Ve[De]; )
|
|
274
274
|
De--;
|
|
275
|
-
for (;
|
|
276
|
-
if (
|
|
277
|
-
if (
|
|
275
|
+
for (; Se >= 1 && De >= 0; Se--, De--)
|
|
276
|
+
if (pe[Se] !== Ve[De]) {
|
|
277
|
+
if (Se !== 1 || De !== 1)
|
|
278
278
|
do
|
|
279
|
-
if (
|
|
279
|
+
if (Se--, De--, De < 0 || pe[Se] !== Ve[De]) {
|
|
280
280
|
var aa = `
|
|
281
|
-
` +
|
|
281
|
+
` + pe[Se].replace(" at new ", " at ");
|
|
282
282
|
return x.displayName && aa.includes("<anonymous>") && (aa = aa.replace("<anonymous>", x.displayName)), typeof x == "function" && Z.set(x, aa), aa;
|
|
283
283
|
}
|
|
284
|
-
while (
|
|
284
|
+
while (Se >= 1 && De >= 0);
|
|
285
285
|
break;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
|
|
289
|
+
J = !1, te.current = Ue, ae(), Error.prepareStackTrace = _e;
|
|
290
290
|
}
|
|
291
|
-
var Ia = x ? x.displayName || x.name : "", Da = Ia ?
|
|
291
|
+
var Ia = x ? x.displayName || x.name : "", Da = Ia ? O(Ia) : "";
|
|
292
292
|
return typeof x == "function" && Z.set(x, Da), Da;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
294
|
+
function q(x, V, $) {
|
|
295
|
+
return X(x, !1);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
var
|
|
299
|
-
return !!(
|
|
297
|
+
function ue(x) {
|
|
298
|
+
var V = x.prototype;
|
|
299
|
+
return !!(V && V.isReactComponent);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Ce(x, V, $) {
|
|
302
302
|
if (x == null)
|
|
303
303
|
return "";
|
|
304
304
|
if (typeof x == "function")
|
|
305
|
-
return
|
|
305
|
+
return X(x, ue(x));
|
|
306
306
|
if (typeof x == "string")
|
|
307
|
-
return
|
|
307
|
+
return O(x);
|
|
308
308
|
switch (x) {
|
|
309
309
|
case i:
|
|
310
|
-
return
|
|
310
|
+
return O("Suspense");
|
|
311
311
|
case r:
|
|
312
|
-
return
|
|
312
|
+
return O("SuspenseList");
|
|
313
313
|
}
|
|
314
314
|
if (typeof x == "object")
|
|
315
315
|
switch (x.$$typeof) {
|
|
316
316
|
case l:
|
|
317
|
-
return
|
|
317
|
+
return q(x.render);
|
|
318
318
|
case o:
|
|
319
|
-
return
|
|
319
|
+
return Ce(x.type, V, $);
|
|
320
320
|
case m: {
|
|
321
|
-
var ne = x, _e = ne._payload,
|
|
321
|
+
var ne = x, _e = ne._payload, Ue = ne._init;
|
|
322
322
|
try {
|
|
323
|
-
return
|
|
323
|
+
return Ce(Ue(_e), V, $);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var be = Object.prototype.hasOwnProperty,
|
|
330
|
+
var be = Object.prototype.hasOwnProperty, Ye = {}, he = _.ReactDebugCurrentFrame;
|
|
331
331
|
function Ge(x) {
|
|
332
332
|
if (x) {
|
|
333
|
-
var
|
|
334
|
-
|
|
333
|
+
var V = x._owner, $ = Ce(x.type, x._source, V ? V.type : null);
|
|
334
|
+
he.setExtraStackFrame($);
|
|
335
335
|
} else
|
|
336
|
-
|
|
336
|
+
he.setExtraStackFrame(null);
|
|
337
337
|
}
|
|
338
|
-
function Xe(x,
|
|
338
|
+
function Xe(x, V, $, ne, _e) {
|
|
339
339
|
{
|
|
340
|
-
var
|
|
341
|
-
for (var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
340
|
+
var Ue = Function.call.bind(be);
|
|
341
|
+
for (var ce in x)
|
|
342
|
+
if (Ue(x, ce)) {
|
|
343
|
+
var pe = void 0;
|
|
344
344
|
try {
|
|
345
|
-
if (typeof x[
|
|
346
|
-
var
|
|
347
|
-
throw
|
|
345
|
+
if (typeof x[ce] != "function") {
|
|
346
|
+
var Ve = Error((ne || "React class") + ": " + $ + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw Ve.name = "Invariant Violation", Ve;
|
|
348
348
|
}
|
|
349
|
-
|
|
350
|
-
} catch (
|
|
351
|
-
|
|
349
|
+
pe = x[ce](V, ce, ne, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
|
+
} catch (Se) {
|
|
351
|
+
pe = Se;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
pe && !(pe instanceof Error) && (Ge(_e), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", $, ce, typeof pe), Ge(null)), pe instanceof Error && !(pe.message in Ye) && (Ye[pe.message] = !0, Ge(_e), c("Failed %s type: %s", $, pe.message), Ge(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
var
|
|
358
|
-
function
|
|
359
|
-
return
|
|
357
|
+
var Me = Array.isArray;
|
|
358
|
+
function de(x) {
|
|
359
|
+
return Me(x);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function ke(x) {
|
|
362
362
|
{
|
|
363
|
-
var
|
|
363
|
+
var V = typeof Symbol == "function" && Symbol.toStringTag, $ = V && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
364
364
|
return $;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function He(x) {
|
|
368
368
|
try {
|
|
369
|
-
return
|
|
369
|
+
return ze(x), !1;
|
|
370
370
|
} catch {
|
|
371
371
|
return !0;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function ze(x) {
|
|
375
375
|
return "" + x;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
379
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
377
|
+
function xe(x) {
|
|
378
|
+
if (He(x))
|
|
379
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ke(x)), ze(x);
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var We = _.ReactCurrentOwner, ia = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
385
385
|
__source: !0
|
|
386
386
|
}, ua, ba;
|
|
387
|
-
function
|
|
387
|
+
function Ke(x) {
|
|
388
388
|
if (be.call(x, "ref")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var V = Object.getOwnPropertyDescriptor(x, "ref").get;
|
|
390
|
+
if (V && V.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return x.ref !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function na(x) {
|
|
396
396
|
if (be.call(x, "key")) {
|
|
397
|
-
var
|
|
398
|
-
if (
|
|
397
|
+
var V = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
398
|
+
if (V && V.isReactWarning)
|
|
399
399
|
return !1;
|
|
400
400
|
}
|
|
401
401
|
return x.key !== void 0;
|
|
402
402
|
}
|
|
403
|
-
function Ya(x,
|
|
404
|
-
typeof x.ref == "string" &&
|
|
403
|
+
function Ya(x, V) {
|
|
404
|
+
typeof x.ref == "string" && We.current;
|
|
405
405
|
}
|
|
406
|
-
function Fa(x,
|
|
406
|
+
function Fa(x, V) {
|
|
407
407
|
{
|
|
408
408
|
var $ = function() {
|
|
409
|
-
ua || (ua = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
409
|
+
ua || (ua = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
|
|
410
410
|
};
|
|
411
411
|
$.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
412
412
|
get: $,
|
|
@@ -414,10 +414,10 @@ function Ul() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function Aa(x,
|
|
417
|
+
function Aa(x, V) {
|
|
418
418
|
{
|
|
419
419
|
var $ = function() {
|
|
420
|
-
ba || (ba = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
420
|
+
ba || (ba = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
|
|
421
421
|
};
|
|
422
422
|
$.isReactWarning = !0, Object.defineProperty(x, "ref", {
|
|
423
423
|
get: $,
|
|
@@ -425,57 +425,57 @@ function Ul() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Xa = function(x,
|
|
429
|
-
var
|
|
428
|
+
var Xa = function(x, V, $, ne, _e, Ue, ce) {
|
|
429
|
+
var pe = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: t,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: x,
|
|
434
|
-
key:
|
|
434
|
+
key: V,
|
|
435
435
|
ref: $,
|
|
436
|
-
props:
|
|
436
|
+
props: ce,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
|
-
_owner:
|
|
438
|
+
_owner: Ue
|
|
439
439
|
};
|
|
440
|
-
return
|
|
440
|
+
return pe._store = {}, Object.defineProperty(pe._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !0,
|
|
444
444
|
value: !1
|
|
445
|
-
}), Object.defineProperty(
|
|
445
|
+
}), Object.defineProperty(pe, "_self", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
449
|
value: ne
|
|
450
|
-
}), Object.defineProperty(
|
|
450
|
+
}), Object.defineProperty(pe, "_source", {
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
453
453
|
writable: !1,
|
|
454
454
|
value: _e
|
|
455
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
}), Object.freeze && (Object.freeze(pe.props), Object.freeze(pe)), pe;
|
|
456
456
|
};
|
|
457
|
-
function et(x,
|
|
457
|
+
function et(x, V, $, ne, _e) {
|
|
458
458
|
{
|
|
459
|
-
var
|
|
460
|
-
$ !== void 0 && (
|
|
461
|
-
for (
|
|
462
|
-
be.call(
|
|
459
|
+
var Ue, ce = {}, pe = null, Ve = null;
|
|
460
|
+
$ !== void 0 && (xe($), pe = "" + $), na(V) && (xe(V.key), pe = "" + V.key), Ke(V) && (Ve = V.ref, Ya(V, _e));
|
|
461
|
+
for (Ue in V)
|
|
462
|
+
be.call(V, Ue) && !ia.hasOwnProperty(Ue) && (ce[Ue] = V[Ue]);
|
|
463
463
|
if (x && x.defaultProps) {
|
|
464
|
-
var
|
|
465
|
-
for (
|
|
466
|
-
|
|
464
|
+
var Se = x.defaultProps;
|
|
465
|
+
for (Ue in Se)
|
|
466
|
+
ce[Ue] === void 0 && (ce[Ue] = Se[Ue]);
|
|
467
467
|
}
|
|
468
|
-
if (
|
|
468
|
+
if (pe || Ve) {
|
|
469
469
|
var De = typeof x == "function" ? x.displayName || x.name || "Unknown" : x;
|
|
470
|
-
|
|
470
|
+
pe && Fa(ce, De), Ve && Aa(ce, De);
|
|
471
471
|
}
|
|
472
|
-
return Xa(x,
|
|
472
|
+
return Xa(x, pe, Ve, _e, ne, We.current, ce);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var Ua = _.ReactCurrentOwner, Sa = _.ReactDebugCurrentFrame;
|
|
476
476
|
function ea(x) {
|
|
477
477
|
if (x) {
|
|
478
|
-
var
|
|
478
|
+
var V = x._owner, $ = Ce(x.type, x._source, V ? V.type : null);
|
|
479
479
|
Sa.setExtraStackFrame($);
|
|
480
480
|
} else
|
|
481
481
|
Sa.setExtraStackFrame(null);
|
|
@@ -488,7 +488,7 @@ function Ul() {
|
|
|
488
488
|
function Oa() {
|
|
489
489
|
{
|
|
490
490
|
if (Ua.current) {
|
|
491
|
-
var x =
|
|
491
|
+
var x = A(Ua.current.type);
|
|
492
492
|
if (x)
|
|
493
493
|
return `
|
|
494
494
|
|
|
@@ -503,77 +503,77 @@ Check the render method of \`` + x + "`.";
|
|
|
503
503
|
var Ea = {};
|
|
504
504
|
function Ha(x) {
|
|
505
505
|
{
|
|
506
|
-
var
|
|
507
|
-
if (!
|
|
506
|
+
var V = Oa();
|
|
507
|
+
if (!V) {
|
|
508
508
|
var $ = typeof x == "string" ? x : x.displayName || x.name;
|
|
509
|
-
$ && (
|
|
509
|
+
$ && (V = `
|
|
510
510
|
|
|
511
511
|
Check the top-level render call using <` + $ + ">.");
|
|
512
512
|
}
|
|
513
|
-
return
|
|
513
|
+
return V;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function Wa(x,
|
|
516
|
+
function Wa(x, V) {
|
|
517
517
|
{
|
|
518
518
|
if (!x._store || x._store.validated || x.key != null)
|
|
519
519
|
return;
|
|
520
520
|
x._store.validated = !0;
|
|
521
|
-
var $ = Ha(
|
|
521
|
+
var $ = Ha(V);
|
|
522
522
|
if (Ea[$])
|
|
523
523
|
return;
|
|
524
524
|
Ea[$] = !0;
|
|
525
525
|
var ne = "";
|
|
526
|
-
x && x._owner && x._owner !== Ua.current && (ne = " It was passed a child from " +
|
|
526
|
+
x && x._owner && x._owner !== Ua.current && (ne = " It was passed a child from " + A(x._owner.type) + "."), ea(x), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, ne), ea(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function Re(x,
|
|
529
|
+
function Re(x, V) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof x != "object")
|
|
532
532
|
return;
|
|
533
|
-
if (
|
|
533
|
+
if (de(x))
|
|
534
534
|
for (var $ = 0; $ < x.length; $++) {
|
|
535
535
|
var ne = x[$];
|
|
536
|
-
va(ne) && Wa(ne,
|
|
536
|
+
va(ne) && Wa(ne, V);
|
|
537
537
|
}
|
|
538
538
|
else if (va(x))
|
|
539
539
|
x._store && (x._store.validated = !0);
|
|
540
540
|
else if (x) {
|
|
541
541
|
var _e = y(x);
|
|
542
542
|
if (typeof _e == "function" && _e !== x.entries)
|
|
543
|
-
for (var
|
|
544
|
-
va(
|
|
543
|
+
for (var Ue = _e.call(x), ce; !(ce = Ue.next()).done; )
|
|
544
|
+
va(ce.value) && Wa(ce.value, V);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function K(x) {
|
|
549
549
|
{
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
550
|
+
var V = x.type;
|
|
551
|
+
if (V == null || typeof V == "string")
|
|
552
552
|
return;
|
|
553
553
|
var $;
|
|
554
|
-
if (typeof
|
|
555
|
-
$ =
|
|
556
|
-
else if (typeof
|
|
554
|
+
if (typeof V == "function")
|
|
555
|
+
$ = V.propTypes;
|
|
556
|
+
else if (typeof V == "object" && (V.$$typeof === l || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
|
-
|
|
559
|
-
$ =
|
|
558
|
+
V.$$typeof === o))
|
|
559
|
+
$ = V.propTypes;
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
562
|
if ($) {
|
|
563
|
-
var ne =
|
|
563
|
+
var ne = A(V);
|
|
564
564
|
Xe($, x.props, "prop", ne, x);
|
|
565
|
-
} else if (
|
|
565
|
+
} else if (V.PropTypes !== void 0 && !Ca) {
|
|
566
566
|
Ca = !0;
|
|
567
|
-
var _e =
|
|
567
|
+
var _e = A(V);
|
|
568
568
|
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _e || "Unknown");
|
|
569
569
|
}
|
|
570
|
-
typeof
|
|
570
|
+
typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function Pe(x) {
|
|
574
574
|
{
|
|
575
|
-
for (var
|
|
576
|
-
var ne =
|
|
575
|
+
for (var V = Object.keys(x.props), $ = 0; $ < V.length; $++) {
|
|
576
|
+
var ne = V[$];
|
|
577
577
|
if (ne !== "children" && ne !== "key") {
|
|
578
578
|
ea(x), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), ea(null);
|
|
579
579
|
break;
|
|
@@ -583,25 +583,25 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var la = {};
|
|
586
|
-
function
|
|
587
|
-
{
|
|
588
|
-
var
|
|
589
|
-
if (!
|
|
590
|
-
var
|
|
591
|
-
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (
|
|
592
|
-
var
|
|
593
|
-
|
|
594
|
-
var
|
|
595
|
-
x === null ?
|
|
586
|
+
function Ie(x, V, $, ne, _e, Ue) {
|
|
587
|
+
{
|
|
588
|
+
var ce = k(x);
|
|
589
|
+
if (!ce) {
|
|
590
|
+
var pe = "";
|
|
591
|
+
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (pe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
592
|
+
var Ve = Ba();
|
|
593
|
+
Ve ? pe += Ve : pe += Oa();
|
|
594
|
+
var Se;
|
|
595
|
+
x === null ? Se = "null" : de(x) ? Se = "array" : x !== void 0 && x.$$typeof === t ? (Se = "<" + (A(x.type) || "Unknown") + " />", pe = " Did you accidentally export a JSX literal instead of a component?") : Se = typeof x, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Se, pe);
|
|
596
596
|
}
|
|
597
|
-
var De = et(x,
|
|
597
|
+
var De = et(x, V, $, _e, Ue);
|
|
598
598
|
if (De == null)
|
|
599
599
|
return De;
|
|
600
|
-
if (
|
|
601
|
-
var aa =
|
|
600
|
+
if (ce) {
|
|
601
|
+
var aa = V.children;
|
|
602
602
|
if (aa !== void 0)
|
|
603
603
|
if (ne)
|
|
604
|
-
if (
|
|
604
|
+
if (de(aa)) {
|
|
605
605
|
for (var Ia = 0; Ia < aa.length; Ia++)
|
|
606
606
|
Re(aa[Ia], x);
|
|
607
607
|
Object.freeze && Object.freeze(aa);
|
|
@@ -610,8 +610,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
610
610
|
else
|
|
611
611
|
Re(aa, x);
|
|
612
612
|
}
|
|
613
|
-
if (be.call(
|
|
614
|
-
var Da =
|
|
613
|
+
if (be.call(V, "key")) {
|
|
614
|
+
var Da = A(x), Ze = Object.keys(V).filter(function(ol) {
|
|
615
615
|
return ol !== "key";
|
|
616
616
|
}), mi = Ze.length > 0 ? "{key: someKey, " + Ze.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!la[Da + mi]) {
|
|
@@ -624,14 +624,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
624
624
|
<%s key={someKey} {...props} />`, mi, Da, ll, Da), la[Da + mi] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
return x === n ? Pe(De) :
|
|
627
|
+
return x === n ? Pe(De) : K(De), De;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function oa(x,
|
|
631
|
-
return
|
|
630
|
+
function oa(x, V, $) {
|
|
631
|
+
return Ie(x, V, $, !0);
|
|
632
632
|
}
|
|
633
|
-
function dt(x,
|
|
634
|
-
return
|
|
633
|
+
function dt(x, V, $) {
|
|
634
|
+
return Ie(x, V, $, !1);
|
|
635
635
|
}
|
|
636
636
|
var si = dt, rl = oa;
|
|
637
637
|
tt.Fragment = n, tt.jsx = si, tt.jsxs = rl;
|
|
@@ -641,7 +641,7 @@ var Zi;
|
|
|
641
641
|
function Cl() {
|
|
642
642
|
return Zi || (Zi = 1, process.env.NODE_ENV === "production" ? ct.exports = bl() : ct.exports = Ul()), ct.exports;
|
|
643
643
|
}
|
|
644
|
-
var
|
|
644
|
+
var ie = Cl();
|
|
645
645
|
const pr = ni(null), re = () => {
|
|
646
646
|
const e = Ei(pr);
|
|
647
647
|
if (!e)
|
|
@@ -651,7 +651,7 @@ const pr = ni(null), re = () => {
|
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
653
|
}, gr = ni(null), vl = ({ children: e }) => {
|
|
654
|
-
const [t, a] =
|
|
654
|
+
const [t, a] = je(it.READY), n = ka(() => {
|
|
655
655
|
const s = t === it.READY, u = t === it.PENDING;
|
|
656
656
|
return {
|
|
657
657
|
status: t,
|
|
@@ -662,13 +662,13 @@ const pr = ni(null), re = () => {
|
|
|
662
662
|
setAsPending: () => a(it.PENDING)
|
|
663
663
|
};
|
|
664
664
|
}, [t]);
|
|
665
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ ie.jsx(gr.Provider, { value: n, children: e });
|
|
666
666
|
}, dr = () => {
|
|
667
667
|
const e = Ei(gr);
|
|
668
668
|
if (!e)
|
|
669
669
|
throw new Error("useStatus must be used within a StatusProvider");
|
|
670
670
|
return e;
|
|
671
|
-
},
|
|
671
|
+
}, Je = (e) => {
|
|
672
672
|
switch (e) {
|
|
673
673
|
case "tw":
|
|
674
674
|
return "zh_TW";
|
|
@@ -687,7 +687,7 @@ const pr = ni(null), re = () => {
|
|
|
687
687
|
default:
|
|
688
688
|
return e;
|
|
689
689
|
}
|
|
690
|
-
},
|
|
690
|
+
}, Qe = "https://d1h3qe8voog6w4.cloudfront.net", st = "https://d3jx2uvukujuvn.cloudfront.net", cr = (e) => `${Qe}/reward_icon/${e}.avif`, fr = () => `${Qe}/reward_icon/background_deposit.avif`, _r = "ds88platformIcon", Ka = {
|
|
691
691
|
zh_TW: "系統提示",
|
|
692
692
|
zh_CN: "系统提示",
|
|
693
693
|
en_US: "System Prompt",
|
|
@@ -738,7 +738,7 @@ function Ki({
|
|
|
738
738
|
"發生錯誤,請稍後再試。"
|
|
739
739
|
);
|
|
740
740
|
if (l) {
|
|
741
|
-
const m =
|
|
741
|
+
const m = Je(n);
|
|
742
742
|
s?.dispatch({
|
|
743
743
|
type: "ui/showToast",
|
|
744
744
|
payload: {
|
|
@@ -900,7 +900,7 @@ const Pl = {}, wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
900
900
|
default: Pl
|
|
901
901
|
}, Symbol.toStringTag, { value: "Module" })), Fl = /* @__PURE__ */ yl(wl);
|
|
902
902
|
var Al = Ct.exports, qi;
|
|
903
|
-
function
|
|
903
|
+
function ge() {
|
|
904
904
|
return qi || (qi = 1, (function(e, t) {
|
|
905
905
|
(function(a, n) {
|
|
906
906
|
e.exports = n();
|
|
@@ -1273,8 +1273,8 @@ function pe() {
|
|
|
1273
1273
|
c ? H = n.ceil(H) : H = n.max((H | 0) - this._minBufferSize, 0);
|
|
1274
1274
|
var k = H * h, S = n.min(k * 4, T);
|
|
1275
1275
|
if (k) {
|
|
1276
|
-
for (var
|
|
1277
|
-
this._doProcessBlock(v,
|
|
1276
|
+
for (var F = 0; F < k; F += h)
|
|
1277
|
+
this._doProcessBlock(v, F);
|
|
1278
1278
|
U = v.splice(0, k), C.sigBytes -= S;
|
|
1279
1279
|
}
|
|
1280
1280
|
return new o.init(U, S);
|
|
@@ -1404,7 +1404,7 @@ var vt = { exports: {} }, Ol = vt.exports, $i;
|
|
|
1404
1404
|
function oi() {
|
|
1405
1405
|
return $i || ($i = 1, (function(e, t) {
|
|
1406
1406
|
(function(a, n) {
|
|
1407
|
-
e.exports = n(
|
|
1407
|
+
e.exports = n(ge());
|
|
1408
1408
|
})(Ol, function(a) {
|
|
1409
1409
|
return (function(n) {
|
|
1410
1410
|
var s = a, u = s.lib, b = u.Base, d = u.WordArray, l = s.x64 = {};
|
|
@@ -1634,7 +1634,7 @@ var ht = { exports: {} }, Bl = ht.exports, ji;
|
|
|
1634
1634
|
function Hl() {
|
|
1635
1635
|
return ji || (ji = 1, (function(e, t) {
|
|
1636
1636
|
(function(a, n) {
|
|
1637
|
-
e.exports = n(
|
|
1637
|
+
e.exports = n(ge());
|
|
1638
1638
|
})(Bl, function(a) {
|
|
1639
1639
|
return (function() {
|
|
1640
1640
|
if (typeof ArrayBuffer == "function") {
|
|
@@ -1656,7 +1656,7 @@ var Tt = { exports: {} }, Wl = Tt.exports, Qi;
|
|
|
1656
1656
|
function Il() {
|
|
1657
1657
|
return Qi || (Qi = 1, (function(e, t) {
|
|
1658
1658
|
(function(a, n) {
|
|
1659
|
-
e.exports = n(
|
|
1659
|
+
e.exports = n(ge());
|
|
1660
1660
|
})(Wl, function(a) {
|
|
1661
1661
|
return (function() {
|
|
1662
1662
|
var n = a, s = n.lib, u = s.WordArray, b = n.enc;
|
|
@@ -1750,7 +1750,7 @@ var kt = { exports: {} }, zl = kt.exports, Yi;
|
|
|
1750
1750
|
function Ra() {
|
|
1751
1751
|
return Yi || (Yi = 1, (function(e, t) {
|
|
1752
1752
|
(function(a, n) {
|
|
1753
|
-
e.exports = n(
|
|
1753
|
+
e.exports = n(ge());
|
|
1754
1754
|
})(zl, function(a) {
|
|
1755
1755
|
return (function() {
|
|
1756
1756
|
var n = a, s = n.lib, u = s.WordArray, b = n.enc;
|
|
@@ -1825,7 +1825,7 @@ var xt = { exports: {} }, Vl = xt.exports, Xi;
|
|
|
1825
1825
|
function Jl() {
|
|
1826
1826
|
return Xi || (Xi = 1, (function(e, t) {
|
|
1827
1827
|
(function(a, n) {
|
|
1828
|
-
e.exports = n(
|
|
1828
|
+
e.exports = n(ge());
|
|
1829
1829
|
})(Vl, function(a) {
|
|
1830
1830
|
return (function() {
|
|
1831
1831
|
var n = a, s = n.lib, u = s.WordArray, b = n.enc;
|
|
@@ -1907,7 +1907,7 @@ var St = { exports: {} }, Zl = St.exports, en;
|
|
|
1907
1907
|
function Pa() {
|
|
1908
1908
|
return en || (en = 1, (function(e, t) {
|
|
1909
1909
|
(function(a, n) {
|
|
1910
|
-
e.exports = n(
|
|
1910
|
+
e.exports = n(ge());
|
|
1911
1911
|
})(Zl, function(a) {
|
|
1912
1912
|
return (function(n) {
|
|
1913
1913
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.algo, i = [];
|
|
@@ -1929,8 +1929,8 @@ function Pa() {
|
|
|
1929
1929
|
var c = y + _, U = f[c];
|
|
1930
1930
|
f[c] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
1931
1931
|
}
|
|
1932
|
-
var C = this._hash.words, v = f[y + 0], T = f[y + 1], h = f[y + 2], D = f[y + 3], H = f[y + 4], k = f[y + 5], S = f[y + 6],
|
|
1933
|
-
N = o(N, E,
|
|
1932
|
+
var C = this._hash.words, v = f[y + 0], T = f[y + 1], h = f[y + 2], D = f[y + 3], H = f[y + 4], k = f[y + 5], S = f[y + 6], F = f[y + 7], A = f[y + 8], R = f[y + 9], L = f[y + 10], G = f[y + 11], I = f[y + 12], W = f[y + 13], z = f[y + 14], B = f[y + 15], N = C[0], E = C[1], w = C[2], P = C[3];
|
|
1933
|
+
N = o(N, E, w, P, v, 7, i[0]), P = o(P, N, E, w, T, 12, i[1]), w = o(w, P, N, E, h, 17, i[2]), E = o(E, w, P, N, D, 22, i[3]), N = o(N, E, w, P, H, 7, i[4]), P = o(P, N, E, w, k, 12, i[5]), w = o(w, P, N, E, S, 17, i[6]), E = o(E, w, P, N, F, 22, i[7]), N = o(N, E, w, P, A, 7, i[8]), P = o(P, N, E, w, R, 12, i[9]), w = o(w, P, N, E, L, 17, i[10]), E = o(E, w, P, N, G, 22, i[11]), N = o(N, E, w, P, I, 7, i[12]), P = o(P, N, E, w, W, 12, i[13]), w = o(w, P, N, E, z, 17, i[14]), E = o(E, w, P, N, B, 22, i[15]), N = m(N, E, w, P, T, 5, i[16]), P = m(P, N, E, w, S, 9, i[17]), w = m(w, P, N, E, G, 14, i[18]), E = m(E, w, P, N, v, 20, i[19]), N = m(N, E, w, P, k, 5, i[20]), P = m(P, N, E, w, L, 9, i[21]), w = m(w, P, N, E, B, 14, i[22]), E = m(E, w, P, N, H, 20, i[23]), N = m(N, E, w, P, R, 5, i[24]), P = m(P, N, E, w, z, 9, i[25]), w = m(w, P, N, E, D, 14, i[26]), E = m(E, w, P, N, A, 20, i[27]), N = m(N, E, w, P, W, 5, i[28]), P = m(P, N, E, w, h, 9, i[29]), w = m(w, P, N, E, F, 14, i[30]), E = m(E, w, P, N, I, 20, i[31]), N = g(N, E, w, P, k, 4, i[32]), P = g(P, N, E, w, A, 11, i[33]), w = g(w, P, N, E, G, 16, i[34]), E = g(E, w, P, N, z, 23, i[35]), N = g(N, E, w, P, T, 4, i[36]), P = g(P, N, E, w, H, 11, i[37]), w = g(w, P, N, E, F, 16, i[38]), E = g(E, w, P, N, L, 23, i[39]), N = g(N, E, w, P, W, 4, i[40]), P = g(P, N, E, w, v, 11, i[41]), w = g(w, P, N, E, D, 16, i[42]), E = g(E, w, P, N, S, 23, i[43]), N = g(N, E, w, P, R, 4, i[44]), P = g(P, N, E, w, I, 11, i[45]), w = g(w, P, N, E, B, 16, i[46]), E = g(E, w, P, N, h, 23, i[47]), N = p(N, E, w, P, v, 6, i[48]), P = p(P, N, E, w, F, 10, i[49]), w = p(w, P, N, E, z, 15, i[50]), E = p(E, w, P, N, k, 21, i[51]), N = p(N, E, w, P, I, 6, i[52]), P = p(P, N, E, w, D, 10, i[53]), w = p(w, P, N, E, L, 15, i[54]), E = p(E, w, P, N, T, 21, i[55]), N = p(N, E, w, P, A, 6, i[56]), P = p(P, N, E, w, B, 10, i[57]), w = p(w, P, N, E, S, 15, i[58]), E = p(E, w, P, N, W, 21, i[59]), N = p(N, E, w, P, H, 6, i[60]), P = p(P, N, E, w, G, 10, i[61]), w = p(w, P, N, E, h, 15, i[62]), E = p(E, w, P, N, R, 21, i[63]), C[0] = C[0] + N | 0, C[1] = C[1] + E | 0, C[2] = C[2] + w | 0, C[3] = C[3] + P | 0;
|
|
1934
1934
|
},
|
|
1935
1935
|
_doFinalize: function() {
|
|
1936
1936
|
var f = this._data, y = f.words, _ = this._nDataBytes * 8, c = f.sigBytes * 8;
|
|
@@ -1973,7 +1973,7 @@ var Et = { exports: {} }, Kl = Et.exports, an;
|
|
|
1973
1973
|
function hr() {
|
|
1974
1974
|
return an || (an = 1, (function(e, t) {
|
|
1975
1975
|
(function(a, n) {
|
|
1976
|
-
e.exports = n(
|
|
1976
|
+
e.exports = n(ge());
|
|
1977
1977
|
})(Kl, function(a) {
|
|
1978
1978
|
return (function() {
|
|
1979
1979
|
var n = a, s = n.lib, u = s.WordArray, b = s.Hasher, d = n.algo, l = [], i = d.SHA1 = b.extend({
|
|
@@ -2017,7 +2017,7 @@ var Dt = { exports: {} }, ql = Dt.exports, tn;
|
|
|
2017
2017
|
function Ni() {
|
|
2018
2018
|
return tn || (tn = 1, (function(e, t) {
|
|
2019
2019
|
(function(a, n) {
|
|
2020
|
-
e.exports = n(
|
|
2020
|
+
e.exports = n(ge());
|
|
2021
2021
|
})(ql, function(a) {
|
|
2022
2022
|
return (function(n) {
|
|
2023
2023
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.algo, i = [], r = [];
|
|
@@ -2043,10 +2043,10 @@ function Ni() {
|
|
|
2043
2043
|
if (D < 16)
|
|
2044
2044
|
o[D] = g[p + D] | 0;
|
|
2045
2045
|
else {
|
|
2046
|
-
var H = o[D - 15], k = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, S = o[D - 2],
|
|
2047
|
-
o[D] = k + o[D - 7] +
|
|
2046
|
+
var H = o[D - 15], k = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, S = o[D - 2], F = (S << 15 | S >>> 17) ^ (S << 13 | S >>> 19) ^ S >>> 10;
|
|
2047
|
+
o[D] = k + o[D - 7] + F + o[D - 16];
|
|
2048
2048
|
}
|
|
2049
|
-
var
|
|
2049
|
+
var A = C & v ^ ~C & T, R = y & _ ^ y & c ^ _ & c, L = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), G = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), I = h + G + A + r[D] + o[D], W = L + R;
|
|
2050
2050
|
h = T, T = v, v = C, C = U + I | 0, U = c, c = _, _ = y, y = I + W | 0;
|
|
2051
2051
|
}
|
|
2052
2052
|
f[0] = f[0] + y | 0, f[1] = f[1] + _ | 0, f[2] = f[2] + c | 0, f[3] = f[3] + U | 0, f[4] = f[4] + C | 0, f[5] = f[5] + v | 0, f[6] = f[6] + T | 0, f[7] = f[7] + h | 0;
|
|
@@ -2069,7 +2069,7 @@ var Nt = { exports: {} }, $l = Nt.exports, nn;
|
|
|
2069
2069
|
function jl() {
|
|
2070
2070
|
return nn || (nn = 1, (function(e, t) {
|
|
2071
2071
|
(function(a, n, s) {
|
|
2072
|
-
e.exports = n(
|
|
2072
|
+
e.exports = n(ge(), Ni());
|
|
2073
2073
|
})($l, function(a) {
|
|
2074
2074
|
return (function() {
|
|
2075
2075
|
var n = a, s = n.lib, u = s.WordArray, b = n.algo, d = b.SHA256, l = b.SHA224 = d.extend({
|
|
@@ -2099,7 +2099,7 @@ var Lt = { exports: {} }, Ql = Lt.exports, rn;
|
|
|
2099
2099
|
function Tr() {
|
|
2100
2100
|
return rn || (rn = 1, (function(e, t) {
|
|
2101
2101
|
(function(a, n, s) {
|
|
2102
|
-
e.exports = n(
|
|
2102
|
+
e.exports = n(ge(), oi());
|
|
2103
2103
|
})(Ql, function(a) {
|
|
2104
2104
|
return (function() {
|
|
2105
2105
|
var n = a, s = n.lib, u = s.Hasher, b = n.x64, d = b.Word, l = b.WordArray, i = n.algo;
|
|
@@ -2206,18 +2206,18 @@ function Tr() {
|
|
|
2206
2206
|
]);
|
|
2207
2207
|
},
|
|
2208
2208
|
_doProcessBlock: function(p, f) {
|
|
2209
|
-
for (var y = this._hash.words, _ = y[0], c = y[1], U = y[2], C = y[3], v = y[4], T = y[5], h = y[6], D = y[7], H = _.high, k = _.low, S = c.high,
|
|
2210
|
-
var
|
|
2211
|
-
if (
|
|
2212
|
-
|
|
2209
|
+
for (var y = this._hash.words, _ = y[0], c = y[1], U = y[2], C = y[3], v = y[4], T = y[5], h = y[6], D = y[7], H = _.high, k = _.low, S = c.high, F = c.low, A = U.high, R = U.low, L = C.high, G = C.low, I = v.high, W = v.low, z = T.high, B = T.low, N = h.high, E = h.low, w = D.high, P = D.low, ae = H, te = k, le = S, O = F, J = A, Z = R, Q = L, X = G, q = I, ue = W, Ce = z, be = B, Ye = N, he = E, Ge = w, Xe = P, Me = 0; Me < 80; Me++) {
|
|
2210
|
+
var de, ke, He = m[Me];
|
|
2211
|
+
if (Me < 16)
|
|
2212
|
+
ke = He.high = p[f + Me * 2] | 0, de = He.low = p[f + Me * 2 + 1] | 0;
|
|
2213
2213
|
else {
|
|
2214
|
-
var
|
|
2215
|
-
|
|
2214
|
+
var ze = m[Me - 15], xe = ze.high, We = ze.low, ia = (xe >>> 1 | We << 31) ^ (xe >>> 8 | We << 24) ^ xe >>> 7, ua = (We >>> 1 | xe << 31) ^ (We >>> 8 | xe << 24) ^ (We >>> 7 | xe << 25), ba = m[Me - 2], Ke = ba.high, na = ba.low, Ya = (Ke >>> 19 | na << 13) ^ (Ke << 3 | na >>> 29) ^ Ke >>> 6, Fa = (na >>> 19 | Ke << 13) ^ (na << 3 | Ke >>> 29) ^ (na >>> 6 | Ke << 26), Aa = m[Me - 7], Xa = Aa.high, et = Aa.low, Ua = m[Me - 16], Sa = Ua.high, ea = Ua.low;
|
|
2215
|
+
de = ua + et, ke = ia + Xa + (de >>> 0 < ua >>> 0 ? 1 : 0), de = de + Fa, ke = ke + Ya + (de >>> 0 < Fa >>> 0 ? 1 : 0), de = de + ea, ke = ke + Sa + (de >>> 0 < ea >>> 0 ? 1 : 0), He.high = ke, He.low = de;
|
|
2216
2216
|
}
|
|
2217
|
-
var Ca =
|
|
2218
|
-
Ge =
|
|
2217
|
+
var Ca = q & Ce ^ ~q & Ye, va = ue & be ^ ~ue & he, Oa = ae & le ^ ae & J ^ le & J, Ba = te & O ^ te & Z ^ O & Z, Ea = (ae >>> 28 | te << 4) ^ (ae << 30 | te >>> 2) ^ (ae << 25 | te >>> 7), Ha = (te >>> 28 | ae << 4) ^ (te << 30 | ae >>> 2) ^ (te << 25 | ae >>> 7), Wa = (q >>> 14 | ue << 18) ^ (q >>> 18 | ue << 14) ^ (q << 23 | ue >>> 9), Re = (ue >>> 14 | q << 18) ^ (ue >>> 18 | q << 14) ^ (ue << 23 | q >>> 9), K = o[Me], Pe = K.high, la = K.low, Ie = Xe + Re, oa = Ge + Wa + (Ie >>> 0 < Xe >>> 0 ? 1 : 0), Ie = Ie + va, oa = oa + Ca + (Ie >>> 0 < va >>> 0 ? 1 : 0), Ie = Ie + la, oa = oa + Pe + (Ie >>> 0 < la >>> 0 ? 1 : 0), Ie = Ie + de, oa = oa + ke + (Ie >>> 0 < de >>> 0 ? 1 : 0), dt = Ha + Ba, si = Ea + Oa + (dt >>> 0 < Ha >>> 0 ? 1 : 0);
|
|
2218
|
+
Ge = Ye, Xe = he, Ye = Ce, he = be, Ce = q, be = ue, ue = X + Ie | 0, q = Q + oa + (ue >>> 0 < X >>> 0 ? 1 : 0) | 0, Q = J, X = Z, J = le, Z = O, le = ae, O = te, te = Ie + dt | 0, ae = oa + si + (te >>> 0 < Ie >>> 0 ? 1 : 0) | 0;
|
|
2219
2219
|
}
|
|
2220
|
-
k = _.low = k +
|
|
2220
|
+
k = _.low = k + te, _.high = H + ae + (k >>> 0 < te >>> 0 ? 1 : 0), F = c.low = F + O, c.high = S + le + (F >>> 0 < O >>> 0 ? 1 : 0), R = U.low = R + Z, U.high = A + J + (R >>> 0 < Z >>> 0 ? 1 : 0), G = C.low = G + X, C.high = L + Q + (G >>> 0 < X >>> 0 ? 1 : 0), W = v.low = W + ue, v.high = I + q + (W >>> 0 < ue >>> 0 ? 1 : 0), B = T.low = B + be, T.high = z + Ce + (B >>> 0 < be >>> 0 ? 1 : 0), E = h.low = E + he, h.high = N + Ye + (E >>> 0 < he >>> 0 ? 1 : 0), P = D.low = P + Xe, D.high = w + Ge + (P >>> 0 < Xe >>> 0 ? 1 : 0);
|
|
2221
2221
|
},
|
|
2222
2222
|
_doFinalize: function() {
|
|
2223
2223
|
var p = this._data, f = p.words, y = this._nDataBytes * 8, _ = p.sigBytes * 8;
|
|
@@ -2240,7 +2240,7 @@ var Gt = { exports: {} }, Yl = Gt.exports, ln;
|
|
|
2240
2240
|
function Xl() {
|
|
2241
2241
|
return ln || (ln = 1, (function(e, t) {
|
|
2242
2242
|
(function(a, n, s) {
|
|
2243
|
-
e.exports = n(
|
|
2243
|
+
e.exports = n(ge(), oi(), Tr());
|
|
2244
2244
|
})(Yl, function(a) {
|
|
2245
2245
|
return (function() {
|
|
2246
2246
|
var n = a, s = n.x64, u = s.Word, b = s.WordArray, d = n.algo, l = d.SHA512, i = d.SHA384 = l.extend({
|
|
@@ -2270,7 +2270,7 @@ var Mt = { exports: {} }, eo = Mt.exports, on;
|
|
|
2270
2270
|
function ao() {
|
|
2271
2271
|
return on || (on = 1, (function(e, t) {
|
|
2272
2272
|
(function(a, n, s) {
|
|
2273
|
-
e.exports = n(
|
|
2273
|
+
e.exports = n(ge(), oi());
|
|
2274
2274
|
})(eo, function(a) {
|
|
2275
2275
|
return (function(n) {
|
|
2276
2276
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.x64, i = l.Word, r = s.algo, o = [], m = [], g = [];
|
|
@@ -2325,33 +2325,33 @@ function ao() {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
for (var D = 0; D < 24; D++) {
|
|
2327
2327
|
for (var H = 0; H < 5; H++) {
|
|
2328
|
-
for (var k = 0, S = 0,
|
|
2329
|
-
var h = c[H + 5 *
|
|
2328
|
+
for (var k = 0, S = 0, F = 0; F < 5; F++) {
|
|
2329
|
+
var h = c[H + 5 * F];
|
|
2330
2330
|
k ^= h.high, S ^= h.low;
|
|
2331
2331
|
}
|
|
2332
|
-
var
|
|
2333
|
-
|
|
2332
|
+
var A = p[H];
|
|
2333
|
+
A.high = k, A.low = S;
|
|
2334
2334
|
}
|
|
2335
2335
|
for (var H = 0; H < 5; H++)
|
|
2336
|
-
for (var R = p[(H + 4) % 5], L = p[(H + 1) % 5], G = L.high, I = L.low, k = R.high ^ (G << 1 | I >>> 31), S = R.low ^ (I << 1 | G >>> 31),
|
|
2337
|
-
var h = c[H + 5 *
|
|
2336
|
+
for (var R = p[(H + 4) % 5], L = p[(H + 1) % 5], G = L.high, I = L.low, k = R.high ^ (G << 1 | I >>> 31), S = R.low ^ (I << 1 | G >>> 31), F = 0; F < 5; F++) {
|
|
2337
|
+
var h = c[H + 5 * F];
|
|
2338
2338
|
h.high ^= k, h.low ^= S;
|
|
2339
2339
|
}
|
|
2340
2340
|
for (var W = 1; W < 25; W++) {
|
|
2341
|
-
var k, S, h = c[W],
|
|
2342
|
-
N < 32 ? (k =
|
|
2341
|
+
var k, S, h = c[W], z = h.high, B = h.low, N = o[W];
|
|
2342
|
+
N < 32 ? (k = z << N | B >>> 32 - N, S = B << N | z >>> 32 - N) : (k = B << N - 32 | z >>> 64 - N, S = z << N - 32 | B >>> 64 - N);
|
|
2343
2343
|
var E = p[m[W]];
|
|
2344
2344
|
E.high = k, E.low = S;
|
|
2345
2345
|
}
|
|
2346
|
-
var
|
|
2347
|
-
|
|
2346
|
+
var w = p[0], P = c[0];
|
|
2347
|
+
w.high = P.high, w.low = P.low;
|
|
2348
2348
|
for (var H = 0; H < 5; H++)
|
|
2349
|
-
for (var
|
|
2350
|
-
var W = H + 5 *
|
|
2351
|
-
h.high =
|
|
2349
|
+
for (var F = 0; F < 5; F++) {
|
|
2350
|
+
var W = H + 5 * F, h = c[W], ae = p[W], te = p[(H + 1) % 5 + 5 * F], le = p[(H + 2) % 5 + 5 * F];
|
|
2351
|
+
h.high = ae.high ^ ~te.high & le.high, h.low = ae.low ^ ~te.low & le.low;
|
|
2352
2352
|
}
|
|
2353
|
-
var h = c[0],
|
|
2354
|
-
h.high ^=
|
|
2353
|
+
var h = c[0], O = g[D];
|
|
2354
|
+
h.high ^= O.high, h.low ^= O.low;
|
|
2355
2355
|
}
|
|
2356
2356
|
},
|
|
2357
2357
|
_doFinalize: function() {
|
|
@@ -2380,7 +2380,7 @@ var Rt = { exports: {} }, to = Rt.exports, sn;
|
|
|
2380
2380
|
function io() {
|
|
2381
2381
|
return sn || (sn = 1, (function(e, t) {
|
|
2382
2382
|
(function(a, n) {
|
|
2383
|
-
e.exports = n(
|
|
2383
|
+
e.exports = n(ge());
|
|
2384
2384
|
})(to, function(a) {
|
|
2385
2385
|
return (function(n) {
|
|
2386
2386
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.algo, i = b.create([
|
|
@@ -2716,18 +2716,18 @@ function io() {
|
|
|
2716
2716
|
var H = h + D, k = T[H];
|
|
2717
2717
|
T[H] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2718
2718
|
}
|
|
2719
|
-
var S = this._hash.words,
|
|
2720
|
-
|
|
2721
|
-
for (var
|
|
2722
|
-
|
|
2723
|
-
|
|
2719
|
+
var S = this._hash.words, F = g.words, A = p.words, R = i.words, L = r.words, G = o.words, I = m.words, W, z, B, N, E, w, P, ae, te, le;
|
|
2720
|
+
w = W = S[0], P = z = S[1], ae = B = S[2], te = N = S[3], le = E = S[4];
|
|
2721
|
+
for (var O, D = 0; D < 80; D += 1)
|
|
2722
|
+
O = W + T[h + R[D]] | 0, D < 16 ? O += y(z, B, N) + F[0] : D < 32 ? O += _(z, B, N) + F[1] : D < 48 ? O += c(z, B, N) + F[2] : D < 64 ? O += U(z, B, N) + F[3] : O += C(z, B, N) + F[4], O = O | 0, O = v(O, G[D]), O = O + E | 0, W = E, E = N, N = v(B, 10), B = z, z = O, O = w + T[h + L[D]] | 0, D < 16 ? O += C(P, ae, te) + A[0] : D < 32 ? O += U(P, ae, te) + A[1] : D < 48 ? O += c(P, ae, te) + A[2] : D < 64 ? O += _(P, ae, te) + A[3] : O += y(P, ae, te) + A[4], O = O | 0, O = v(O, I[D]), O = O + le | 0, w = le, le = te, te = v(ae, 10), ae = P, P = O;
|
|
2723
|
+
O = S[1] + B + te | 0, S[1] = S[2] + N + le | 0, S[2] = S[3] + E + w | 0, S[3] = S[4] + W + P | 0, S[4] = S[0] + z + ae | 0, S[0] = O;
|
|
2724
2724
|
},
|
|
2725
2725
|
_doFinalize: function() {
|
|
2726
2726
|
var T = this._data, h = T.words, D = this._nDataBytes * 8, H = T.sigBytes * 8;
|
|
2727
2727
|
h[H >>> 5] |= 128 << 24 - H % 32, h[(H + 64 >>> 9 << 4) + 14] = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360, T.sigBytes = (h.length + 1) * 4, this._process();
|
|
2728
|
-
for (var k = this._hash, S = k.words,
|
|
2729
|
-
var
|
|
2730
|
-
S[
|
|
2728
|
+
for (var k = this._hash, S = k.words, F = 0; F < 5; F++) {
|
|
2729
|
+
var A = S[F];
|
|
2730
|
+
S[F] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
|
|
2731
2731
|
}
|
|
2732
2732
|
return k;
|
|
2733
2733
|
},
|
|
@@ -2763,7 +2763,7 @@ var Pt = { exports: {} }, no = Pt.exports, mn;
|
|
|
2763
2763
|
function Li() {
|
|
2764
2764
|
return mn || (mn = 1, (function(e, t) {
|
|
2765
2765
|
(function(a, n) {
|
|
2766
|
-
e.exports = n(
|
|
2766
|
+
e.exports = n(ge());
|
|
2767
2767
|
})(no, function(a) {
|
|
2768
2768
|
(function() {
|
|
2769
2769
|
var n = a, s = n.lib, u = s.Base, b = n.enc, d = b.Utf8, l = n.algo;
|
|
@@ -2841,7 +2841,7 @@ var wt = { exports: {} }, ro = wt.exports, un;
|
|
|
2841
2841
|
function lo() {
|
|
2842
2842
|
return un || (un = 1, (function(e, t) {
|
|
2843
2843
|
(function(a, n, s) {
|
|
2844
|
-
e.exports = n(
|
|
2844
|
+
e.exports = n(ge(), Ni(), Li());
|
|
2845
2845
|
})(ro, function(a) {
|
|
2846
2846
|
return (function() {
|
|
2847
2847
|
var n = a, s = n.lib, u = s.Base, b = s.WordArray, d = n.algo, l = d.SHA256, i = d.HMAC, r = d.PBKDF2 = u.extend({
|
|
@@ -2908,7 +2908,7 @@ var Ft = { exports: {} }, oo = Ft.exports, pn;
|
|
|
2908
2908
|
function xa() {
|
|
2909
2909
|
return pn || (pn = 1, (function(e, t) {
|
|
2910
2910
|
(function(a, n, s) {
|
|
2911
|
-
e.exports = n(
|
|
2911
|
+
e.exports = n(ge(), hr(), Li());
|
|
2912
2912
|
})(oo, function(a) {
|
|
2913
2913
|
return (function() {
|
|
2914
2914
|
var n = a, s = n.lib, u = s.Base, b = s.WordArray, d = n.algo, l = d.MD5, i = d.EvpKDF = u.extend({
|
|
@@ -2971,7 +2971,7 @@ var At = { exports: {} }, so = At.exports, gn;
|
|
|
2971
2971
|
function Ae() {
|
|
2972
2972
|
return gn || (gn = 1, (function(e, t) {
|
|
2973
2973
|
(function(a, n, s) {
|
|
2974
|
-
e.exports = n(
|
|
2974
|
+
e.exports = n(ge(), xa());
|
|
2975
2975
|
})(so, function(a) {
|
|
2976
2976
|
a.lib.Cipher || (function(n) {
|
|
2977
2977
|
var s = a, u = s.lib, b = u.Base, d = u.WordArray, l = u.BufferedBlockAlgorithm, i = s.enc;
|
|
@@ -3028,8 +3028,8 @@ function Ae() {
|
|
|
3028
3028
|
*
|
|
3029
3029
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
3030
3030
|
*/
|
|
3031
|
-
init: function(k, S,
|
|
3032
|
-
this.cfg = this.cfg.extend(
|
|
3031
|
+
init: function(k, S, F) {
|
|
3032
|
+
this.cfg = this.cfg.extend(F), this._xformMode = k, this._key = S, this.reset();
|
|
3033
3033
|
},
|
|
3034
3034
|
/**
|
|
3035
3035
|
* Resets this cipher to its initial state.
|
|
@@ -3098,11 +3098,11 @@ function Ae() {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
return function(S) {
|
|
3100
3100
|
return {
|
|
3101
|
-
encrypt: function(
|
|
3102
|
-
return k(
|
|
3101
|
+
encrypt: function(F, A, R) {
|
|
3102
|
+
return k(A).encrypt(S, F, A, R);
|
|
3103
3103
|
},
|
|
3104
|
-
decrypt: function(
|
|
3105
|
-
return k(
|
|
3104
|
+
decrypt: function(F, A, R) {
|
|
3105
|
+
return k(A).decrypt(S, F, A, R);
|
|
3106
3106
|
}
|
|
3107
3107
|
};
|
|
3108
3108
|
};
|
|
@@ -3172,9 +3172,9 @@ function Ae() {
|
|
|
3172
3172
|
*
|
|
3173
3173
|
* mode.processBlock(data.words, offset);
|
|
3174
3174
|
*/
|
|
3175
|
-
processBlock: function(
|
|
3175
|
+
processBlock: function(F, A) {
|
|
3176
3176
|
var R = this._cipher, L = R.blockSize;
|
|
3177
|
-
S.call(this,
|
|
3177
|
+
S.call(this, F, A, L), R.encryptBlock(F, A), this._prevBlock = F.slice(A, A + L);
|
|
3178
3178
|
}
|
|
3179
3179
|
}), k.Decryptor = k.extend({
|
|
3180
3180
|
/**
|
|
@@ -3187,16 +3187,16 @@ function Ae() {
|
|
|
3187
3187
|
*
|
|
3188
3188
|
* mode.processBlock(data.words, offset);
|
|
3189
3189
|
*/
|
|
3190
|
-
processBlock: function(
|
|
3191
|
-
var R = this._cipher, L = R.blockSize, G =
|
|
3192
|
-
R.decryptBlock(
|
|
3190
|
+
processBlock: function(F, A) {
|
|
3191
|
+
var R = this._cipher, L = R.blockSize, G = F.slice(A, A + L);
|
|
3192
|
+
R.decryptBlock(F, A), S.call(this, F, A, L), this._prevBlock = G;
|
|
3193
3193
|
}
|
|
3194
3194
|
});
|
|
3195
|
-
function S(
|
|
3195
|
+
function S(F, A, R) {
|
|
3196
3196
|
var L, G = this._iv;
|
|
3197
3197
|
G ? (L = G, this._iv = n) : L = this._prevBlock;
|
|
3198
3198
|
for (var I = 0; I < R; I++)
|
|
3199
|
-
A
|
|
3199
|
+
F[A + I] ^= L[I];
|
|
3200
3200
|
}
|
|
3201
3201
|
return k;
|
|
3202
3202
|
})(), _ = s.pad = {}, c = _.Pkcs7 = {
|
|
@@ -3213,9 +3213,9 @@ function Ae() {
|
|
|
3213
3213
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3214
3214
|
*/
|
|
3215
3215
|
pad: function(k, S) {
|
|
3216
|
-
for (var
|
|
3216
|
+
for (var F = S * 4, A = F - k.sigBytes % F, R = A << 24 | A << 16 | A << 8 | A, L = [], G = 0; G < A; G += 4)
|
|
3217
3217
|
L.push(R);
|
|
3218
|
-
var I = d.create(L,
|
|
3218
|
+
var I = d.create(L, A);
|
|
3219
3219
|
k.concat(I);
|
|
3220
3220
|
},
|
|
3221
3221
|
/**
|
|
@@ -3248,8 +3248,8 @@ function Ae() {
|
|
|
3248
3248
|
reset: function() {
|
|
3249
3249
|
var k;
|
|
3250
3250
|
g.reset.call(this);
|
|
3251
|
-
var S = this.cfg,
|
|
3252
|
-
this._xformMode == this._ENC_XFORM_MODE ? k =
|
|
3251
|
+
var S = this.cfg, F = S.iv, A = S.mode;
|
|
3252
|
+
this._xformMode == this._ENC_XFORM_MODE ? k = A.createEncryptor : (k = A.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, F && F.words) : (this._mode = k.call(A, this, F && F.words), this._mode.__creator = k);
|
|
3253
3253
|
},
|
|
3254
3254
|
_doProcessBlock: function(k, S) {
|
|
3255
3255
|
this._mode.processBlock(k, S);
|
|
@@ -3316,8 +3316,8 @@ function Ae() {
|
|
|
3316
3316
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3317
3317
|
*/
|
|
3318
3318
|
stringify: function(k) {
|
|
3319
|
-
var S,
|
|
3320
|
-
return
|
|
3319
|
+
var S, F = k.ciphertext, A = k.salt;
|
|
3320
|
+
return A ? S = d.create([1398893684, 1701076831]).concat(A).concat(F) : S = F, S.toString(r);
|
|
3321
3321
|
},
|
|
3322
3322
|
/**
|
|
3323
3323
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3333,8 +3333,8 @@ function Ae() {
|
|
|
3333
3333
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3334
3334
|
*/
|
|
3335
3335
|
parse: function(k) {
|
|
3336
|
-
var S,
|
|
3337
|
-
return
|
|
3336
|
+
var S, F = r.parse(k), A = F.words;
|
|
3337
|
+
return A[0] == 1398893684 && A[1] == 1701076831 && (S = d.create(A.slice(2, 4)), A.splice(0, 4), F.sigBytes -= 16), U.create({ ciphertext: F, salt: S });
|
|
3338
3338
|
}
|
|
3339
3339
|
}, T = u.SerializableCipher = b.extend({
|
|
3340
3340
|
/**
|
|
@@ -3363,18 +3363,18 @@ function Ae() {
|
|
|
3363
3363
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3364
3364
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3365
3365
|
*/
|
|
3366
|
-
encrypt: function(k, S,
|
|
3367
|
-
|
|
3368
|
-
var R = k.createEncryptor(
|
|
3366
|
+
encrypt: function(k, S, F, A) {
|
|
3367
|
+
A = this.cfg.extend(A);
|
|
3368
|
+
var R = k.createEncryptor(F, A), L = R.finalize(S), G = R.cfg;
|
|
3369
3369
|
return U.create({
|
|
3370
3370
|
ciphertext: L,
|
|
3371
|
-
key:
|
|
3371
|
+
key: F,
|
|
3372
3372
|
iv: G.iv,
|
|
3373
3373
|
algorithm: k,
|
|
3374
3374
|
mode: G.mode,
|
|
3375
3375
|
padding: G.padding,
|
|
3376
3376
|
blockSize: k.blockSize,
|
|
3377
|
-
formatter:
|
|
3377
|
+
formatter: A.format
|
|
3378
3378
|
});
|
|
3379
3379
|
},
|
|
3380
3380
|
/**
|
|
@@ -3394,9 +3394,9 @@ function Ae() {
|
|
|
3394
3394
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3395
3395
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3396
3396
|
*/
|
|
3397
|
-
decrypt: function(k, S,
|
|
3398
|
-
|
|
3399
|
-
var R = k.createDecryptor(
|
|
3397
|
+
decrypt: function(k, S, F, A) {
|
|
3398
|
+
A = this.cfg.extend(A), S = this._parse(S, A.format);
|
|
3399
|
+
var R = k.createDecryptor(F, A).finalize(S.ciphertext);
|
|
3400
3400
|
return R;
|
|
3401
3401
|
},
|
|
3402
3402
|
/**
|
|
@@ -3435,13 +3435,13 @@ function Ae() {
|
|
|
3435
3435
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3436
3436
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3437
3437
|
*/
|
|
3438
|
-
execute: function(k, S,
|
|
3439
|
-
if (
|
|
3440
|
-
var L = m.create({ keySize: S +
|
|
3438
|
+
execute: function(k, S, F, A, R) {
|
|
3439
|
+
if (A || (A = d.random(64 / 8)), R)
|
|
3440
|
+
var L = m.create({ keySize: S + F, hasher: R }).compute(k, A);
|
|
3441
3441
|
else
|
|
3442
|
-
var L = m.create({ keySize: S +
|
|
3443
|
-
var G = d.create(L.words.slice(S),
|
|
3444
|
-
return L.sigBytes = S * 4, U.create({ key: L, iv: G, salt:
|
|
3442
|
+
var L = m.create({ keySize: S + F }).compute(k, A);
|
|
3443
|
+
var G = d.create(L.words.slice(S), F * 4);
|
|
3444
|
+
return L.sigBytes = S * 4, U.create({ key: L, iv: G, salt: A });
|
|
3445
3445
|
}
|
|
3446
3446
|
}, H = u.PasswordBasedCipher = T.extend({
|
|
3447
3447
|
/**
|
|
@@ -3469,11 +3469,11 @@ function Ae() {
|
|
|
3469
3469
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3470
3470
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3471
3471
|
*/
|
|
3472
|
-
encrypt: function(k, S,
|
|
3473
|
-
|
|
3474
|
-
var R =
|
|
3475
|
-
|
|
3476
|
-
var L = T.encrypt.call(this, k, S, R.key,
|
|
3472
|
+
encrypt: function(k, S, F, A) {
|
|
3473
|
+
A = this.cfg.extend(A);
|
|
3474
|
+
var R = A.kdf.execute(F, k.keySize, k.ivSize, A.salt, A.hasher);
|
|
3475
|
+
A.iv = R.iv;
|
|
3476
|
+
var L = T.encrypt.call(this, k, S, R.key, A);
|
|
3477
3477
|
return L.mixIn(R), L;
|
|
3478
3478
|
},
|
|
3479
3479
|
/**
|
|
@@ -3493,11 +3493,11 @@ function Ae() {
|
|
|
3493
3493
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3494
3494
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3495
3495
|
*/
|
|
3496
|
-
decrypt: function(k, S,
|
|
3497
|
-
|
|
3498
|
-
var R =
|
|
3499
|
-
|
|
3500
|
-
var L = T.decrypt.call(this, k, S, R.key,
|
|
3496
|
+
decrypt: function(k, S, F, A) {
|
|
3497
|
+
A = this.cfg.extend(A), S = this._parse(S, A.format);
|
|
3498
|
+
var R = A.kdf.execute(F, k.keySize, k.ivSize, S.salt, A.hasher);
|
|
3499
|
+
A.iv = R.iv;
|
|
3500
|
+
var L = T.decrypt.call(this, k, S, R.key, A);
|
|
3501
3501
|
return L;
|
|
3502
3502
|
}
|
|
3503
3503
|
});
|
|
@@ -3509,7 +3509,7 @@ var Ot = { exports: {} }, mo = Ot.exports, dn;
|
|
|
3509
3509
|
function uo() {
|
|
3510
3510
|
return dn || (dn = 1, (function(e, t) {
|
|
3511
3511
|
(function(a, n, s) {
|
|
3512
|
-
e.exports = n(
|
|
3512
|
+
e.exports = n(ge(), Ae());
|
|
3513
3513
|
})(mo, function(a) {
|
|
3514
3514
|
return a.mode.CFB = (function() {
|
|
3515
3515
|
var n = a.lib.BlockCipherMode.extend();
|
|
@@ -3539,7 +3539,7 @@ var Bt = { exports: {} }, po = Bt.exports, cn;
|
|
|
3539
3539
|
function go() {
|
|
3540
3540
|
return cn || (cn = 1, (function(e, t) {
|
|
3541
3541
|
(function(a, n, s) {
|
|
3542
|
-
e.exports = n(
|
|
3542
|
+
e.exports = n(ge(), Ae());
|
|
3543
3543
|
})(po, function(a) {
|
|
3544
3544
|
return a.mode.CTR = (function() {
|
|
3545
3545
|
var n = a.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
|
|
@@ -3561,7 +3561,7 @@ var Ht = { exports: {} }, co = Ht.exports, fn;
|
|
|
3561
3561
|
function fo() {
|
|
3562
3562
|
return fn || (fn = 1, (function(e, t) {
|
|
3563
3563
|
(function(a, n, s) {
|
|
3564
|
-
e.exports = n(
|
|
3564
|
+
e.exports = n(ge(), Ae());
|
|
3565
3565
|
})(co, function(a) {
|
|
3566
3566
|
return a.mode.CTRGladman = (function() {
|
|
3567
3567
|
var n = a.lib.BlockCipherMode.extend();
|
|
@@ -3595,7 +3595,7 @@ var Wt = { exports: {} }, _o = Wt.exports, _n;
|
|
|
3595
3595
|
function yo() {
|
|
3596
3596
|
return _n || (_n = 1, (function(e, t) {
|
|
3597
3597
|
(function(a, n, s) {
|
|
3598
|
-
e.exports = n(
|
|
3598
|
+
e.exports = n(ge(), Ae());
|
|
3599
3599
|
})(_o, function(a) {
|
|
3600
3600
|
return a.mode.OFB = (function() {
|
|
3601
3601
|
var n = a.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
|
|
@@ -3615,7 +3615,7 @@ var It = { exports: {} }, bo = It.exports, yn;
|
|
|
3615
3615
|
function Uo() {
|
|
3616
3616
|
return yn || (yn = 1, (function(e, t) {
|
|
3617
3617
|
(function(a, n, s) {
|
|
3618
|
-
e.exports = n(
|
|
3618
|
+
e.exports = n(ge(), Ae());
|
|
3619
3619
|
})(bo, function(a) {
|
|
3620
3620
|
return a.mode.ECB = (function() {
|
|
3621
3621
|
var n = a.lib.BlockCipherMode.extend();
|
|
@@ -3636,7 +3636,7 @@ var zt = { exports: {} }, Co = zt.exports, bn;
|
|
|
3636
3636
|
function vo() {
|
|
3637
3637
|
return bn || (bn = 1, (function(e, t) {
|
|
3638
3638
|
(function(a, n, s) {
|
|
3639
|
-
e.exports = n(
|
|
3639
|
+
e.exports = n(ge(), Ae());
|
|
3640
3640
|
})(Co, function(a) {
|
|
3641
3641
|
return a.pad.AnsiX923 = {
|
|
3642
3642
|
pad: function(n, s) {
|
|
@@ -3655,7 +3655,7 @@ var Vt = { exports: {} }, ho = Vt.exports, Un;
|
|
|
3655
3655
|
function To() {
|
|
3656
3656
|
return Un || (Un = 1, (function(e, t) {
|
|
3657
3657
|
(function(a, n, s) {
|
|
3658
|
-
e.exports = n(
|
|
3658
|
+
e.exports = n(ge(), Ae());
|
|
3659
3659
|
})(ho, function(a) {
|
|
3660
3660
|
return a.pad.Iso10126 = {
|
|
3661
3661
|
pad: function(n, s) {
|
|
@@ -3674,7 +3674,7 @@ var Jt = { exports: {} }, ko = Jt.exports, Cn;
|
|
|
3674
3674
|
function xo() {
|
|
3675
3675
|
return Cn || (Cn = 1, (function(e, t) {
|
|
3676
3676
|
(function(a, n, s) {
|
|
3677
|
-
e.exports = n(
|
|
3677
|
+
e.exports = n(ge(), Ae());
|
|
3678
3678
|
})(ko, function(a) {
|
|
3679
3679
|
return a.pad.Iso97971 = {
|
|
3680
3680
|
pad: function(n, s) {
|
|
@@ -3691,7 +3691,7 @@ var Zt = { exports: {} }, So = Zt.exports, vn;
|
|
|
3691
3691
|
function Eo() {
|
|
3692
3692
|
return vn || (vn = 1, (function(e, t) {
|
|
3693
3693
|
(function(a, n, s) {
|
|
3694
|
-
e.exports = n(
|
|
3694
|
+
e.exports = n(ge(), Ae());
|
|
3695
3695
|
})(So, function(a) {
|
|
3696
3696
|
return a.pad.ZeroPadding = {
|
|
3697
3697
|
pad: function(n, s) {
|
|
@@ -3713,7 +3713,7 @@ var Kt = { exports: {} }, Do = Kt.exports, hn;
|
|
|
3713
3713
|
function No() {
|
|
3714
3714
|
return hn || (hn = 1, (function(e, t) {
|
|
3715
3715
|
(function(a, n, s) {
|
|
3716
|
-
e.exports = n(
|
|
3716
|
+
e.exports = n(ge(), Ae());
|
|
3717
3717
|
})(Do, function(a) {
|
|
3718
3718
|
return a.pad.NoPadding = {
|
|
3719
3719
|
pad: function() {
|
|
@@ -3728,7 +3728,7 @@ var qt = { exports: {} }, Lo = qt.exports, Tn;
|
|
|
3728
3728
|
function Go() {
|
|
3729
3729
|
return Tn || (Tn = 1, (function(e, t) {
|
|
3730
3730
|
(function(a, n, s) {
|
|
3731
|
-
e.exports = n(
|
|
3731
|
+
e.exports = n(ge(), Ae());
|
|
3732
3732
|
})(Lo, function(a) {
|
|
3733
3733
|
return (function(n) {
|
|
3734
3734
|
var s = a, u = s.lib, b = u.CipherParams, d = s.enc, l = d.Hex, i = s.format;
|
|
@@ -3775,7 +3775,7 @@ var $t = { exports: {} }, Mo = $t.exports, kn;
|
|
|
3775
3775
|
function Ro() {
|
|
3776
3776
|
return kn || (kn = 1, (function(e, t) {
|
|
3777
3777
|
(function(a, n, s) {
|
|
3778
|
-
e.exports = n(
|
|
3778
|
+
e.exports = n(ge(), Ra(), Pa(), xa(), Ae());
|
|
3779
3779
|
})(Mo, function(a) {
|
|
3780
3780
|
return (function() {
|
|
3781
3781
|
var n = a, s = n.lib, u = s.BlockCipher, b = n.algo, d = [], l = [], i = [], r = [], o = [], m = [], g = [], p = [], f = [], y = [];
|
|
@@ -3797,13 +3797,13 @@ function Ro() {
|
|
|
3797
3797
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3798
3798
|
for (var C = this._keyPriorReset = this._key, v = C.words, T = C.sigBytes / 4, h = this._nRounds = T + 6, D = (h + 1) * 4, H = this._keySchedule = [], k = 0; k < D; k++)
|
|
3799
3799
|
k < T ? H[k] = v[k] : (U = H[k - 1], k % T ? T > 6 && k % T == 4 && (U = d[U >>> 24] << 24 | d[U >>> 16 & 255] << 16 | d[U >>> 8 & 255] << 8 | d[U & 255]) : (U = U << 8 | U >>> 24, U = d[U >>> 24] << 24 | d[U >>> 16 & 255] << 16 | d[U >>> 8 & 255] << 8 | d[U & 255], U ^= _[k / T | 0] << 24), H[k] = H[k - T] ^ U);
|
|
3800
|
-
for (var S = this._invKeySchedule = [],
|
|
3801
|
-
var k = D -
|
|
3802
|
-
if (
|
|
3800
|
+
for (var S = this._invKeySchedule = [], F = 0; F < D; F++) {
|
|
3801
|
+
var k = D - F;
|
|
3802
|
+
if (F % 4)
|
|
3803
3803
|
var U = H[k];
|
|
3804
3804
|
else
|
|
3805
3805
|
var U = H[k - 4];
|
|
3806
|
-
|
|
3806
|
+
F < 4 || k <= 4 ? S[F] = U : S[F] = g[d[U >>> 24]] ^ p[d[U >>> 16 & 255]] ^ f[d[U >>> 8 & 255]] ^ y[d[U & 255]];
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
3809
|
},
|
|
@@ -3817,12 +3817,12 @@ function Ro() {
|
|
|
3817
3817
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
3818
3818
|
},
|
|
3819
3819
|
_doCryptBlock: function(U, C, v, T, h, D, H, k) {
|
|
3820
|
-
for (var S = this._nRounds,
|
|
3821
|
-
var W = T[
|
|
3822
|
-
|
|
3820
|
+
for (var S = this._nRounds, F = U[C] ^ v[0], A = U[C + 1] ^ v[1], R = U[C + 2] ^ v[2], L = U[C + 3] ^ v[3], G = 4, I = 1; I < S; I++) {
|
|
3821
|
+
var W = T[F >>> 24] ^ h[A >>> 16 & 255] ^ D[R >>> 8 & 255] ^ H[L & 255] ^ v[G++], z = T[A >>> 24] ^ h[R >>> 16 & 255] ^ D[L >>> 8 & 255] ^ H[F & 255] ^ v[G++], B = T[R >>> 24] ^ h[L >>> 16 & 255] ^ D[F >>> 8 & 255] ^ H[A & 255] ^ v[G++], N = T[L >>> 24] ^ h[F >>> 16 & 255] ^ D[A >>> 8 & 255] ^ H[R & 255] ^ v[G++];
|
|
3822
|
+
F = W, A = z, R = B, L = N;
|
|
3823
3823
|
}
|
|
3824
|
-
var W = (k[
|
|
3825
|
-
U[C] = W, U[C + 1] =
|
|
3824
|
+
var W = (k[F >>> 24] << 24 | k[A >>> 16 & 255] << 16 | k[R >>> 8 & 255] << 8 | k[L & 255]) ^ v[G++], z = (k[A >>> 24] << 24 | k[R >>> 16 & 255] << 16 | k[L >>> 8 & 255] << 8 | k[F & 255]) ^ v[G++], B = (k[R >>> 24] << 24 | k[L >>> 16 & 255] << 16 | k[F >>> 8 & 255] << 8 | k[A & 255]) ^ v[G++], N = (k[L >>> 24] << 24 | k[F >>> 16 & 255] << 16 | k[A >>> 8 & 255] << 8 | k[R & 255]) ^ v[G++];
|
|
3825
|
+
U[C] = W, U[C + 1] = z, U[C + 2] = B, U[C + 3] = N;
|
|
3826
3826
|
},
|
|
3827
3827
|
keySize: 256 / 32
|
|
3828
3828
|
});
|
|
@@ -3835,7 +3835,7 @@ var jt = { exports: {} }, Po = jt.exports, xn;
|
|
|
3835
3835
|
function wo() {
|
|
3836
3836
|
return xn || (xn = 1, (function(e, t) {
|
|
3837
3837
|
(function(a, n, s) {
|
|
3838
|
-
e.exports = n(
|
|
3838
|
+
e.exports = n(ge(), Ra(), Pa(), xa(), Ae());
|
|
3839
3839
|
})(Po, function(a) {
|
|
3840
3840
|
return (function() {
|
|
3841
3841
|
var n = a, s = n.lib, u = s.WordArray, b = s.BlockCipher, d = n.algo, l = [
|
|
@@ -4555,7 +4555,7 @@ var Qt = { exports: {} }, Fo = Qt.exports, Sn;
|
|
|
4555
4555
|
function Ao() {
|
|
4556
4556
|
return Sn || (Sn = 1, (function(e, t) {
|
|
4557
4557
|
(function(a, n, s) {
|
|
4558
|
-
e.exports = n(
|
|
4558
|
+
e.exports = n(ge(), Ra(), Pa(), xa(), Ae());
|
|
4559
4559
|
})(Fo, function(a) {
|
|
4560
4560
|
return (function() {
|
|
4561
4561
|
var n = a, s = n.lib, u = s.StreamCipher, b = n.algo, d = b.RC4 = u.extend({
|
|
@@ -4609,7 +4609,7 @@ var Yt = { exports: {} }, Oo = Yt.exports, En;
|
|
|
4609
4609
|
function Bo() {
|
|
4610
4610
|
return En || (En = 1, (function(e, t) {
|
|
4611
4611
|
(function(a, n, s) {
|
|
4612
|
-
e.exports = n(
|
|
4612
|
+
e.exports = n(ge(), Ra(), Pa(), xa(), Ae());
|
|
4613
4613
|
})(Oo, function(a) {
|
|
4614
4614
|
return (function() {
|
|
4615
4615
|
var n = a, s = n.lib, u = s.StreamCipher, b = n.algo, d = [], l = [], i = [], r = b.Rabbit = u.extend({
|
|
@@ -4675,7 +4675,7 @@ var Xt = { exports: {} }, Ho = Xt.exports, Dn;
|
|
|
4675
4675
|
function Wo() {
|
|
4676
4676
|
return Dn || (Dn = 1, (function(e, t) {
|
|
4677
4677
|
(function(a, n, s) {
|
|
4678
|
-
e.exports = n(
|
|
4678
|
+
e.exports = n(ge(), Ra(), Pa(), xa(), Ae());
|
|
4679
4679
|
})(Ho, function(a) {
|
|
4680
4680
|
return (function() {
|
|
4681
4681
|
var n = a, s = n.lib, u = s.StreamCipher, b = n.algo, d = [], l = [], i = [], r = b.RabbitLegacy = u.extend({
|
|
@@ -4739,7 +4739,7 @@ var ei = { exports: {} }, Io = ei.exports, Nn;
|
|
|
4739
4739
|
function zo() {
|
|
4740
4740
|
return Nn || (Nn = 1, (function(e, t) {
|
|
4741
4741
|
(function(a, n, s) {
|
|
4742
|
-
e.exports = n(
|
|
4742
|
+
e.exports = n(ge(), Ra(), Pa(), xa(), Ae());
|
|
4743
4743
|
})(Io, function(a) {
|
|
4744
4744
|
return (function() {
|
|
4745
4745
|
var n = a, s = n.lib, u = s.BlockCipher, b = n.algo;
|
|
@@ -5861,7 +5861,7 @@ var Vo = Ut.exports, Ln;
|
|
|
5861
5861
|
function Jo() {
|
|
5862
5862
|
return Ln || (Ln = 1, (function(e, t) {
|
|
5863
5863
|
(function(a, n, s) {
|
|
5864
|
-
e.exports = n(
|
|
5864
|
+
e.exports = n(ge(), oi(), Hl(), Il(), Ra(), Jl(), Pa(), hr(), Ni(), jl(), Tr(), Xl(), ao(), io(), Li(), lo(), xa(), Ae(), uo(), go(), fo(), yo(), Uo(), vo(), To(), xo(), Eo(), No(), Go(), Ro(), wo(), Ao(), Bo(), Wo(), zo());
|
|
5865
5865
|
})(Vo, function(a) {
|
|
5866
5866
|
return a;
|
|
5867
5867
|
});
|
|
@@ -5886,8 +5886,8 @@ function Ko() {
|
|
|
5886
5886
|
return (L <= 0 ? "+" : "-") + U(I, 2, "0") + ":" + U(W, 2, "0");
|
|
5887
5887
|
}, m: function R(L, G) {
|
|
5888
5888
|
if (L.date() < G.date()) return -R(G, L);
|
|
5889
|
-
var I = 12 * (G.year() - L.year()) + (G.month() - L.month()), W = L.clone().add(I, o),
|
|
5890
|
-
return +(-(I + (G - W) / (
|
|
5889
|
+
var I = 12 * (G.year() - L.year()) + (G.month() - L.month()), W = L.clone().add(I, o), z = G - W < 0, B = L.clone().add(I + (z ? -1 : 1), o);
|
|
5890
|
+
return +(-(I + (G - W) / (z ? W - B : B - W)) || 0);
|
|
5891
5891
|
}, a: function(R) {
|
|
5892
5892
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
5893
5893
|
}, p: function(R) {
|
|
@@ -5897,15 +5897,15 @@ function Ko() {
|
|
|
5897
5897
|
} }, v = "en", T = {};
|
|
5898
5898
|
T[v] = c;
|
|
5899
5899
|
var h = "$isDayjsObject", D = function(R) {
|
|
5900
|
-
return R instanceof
|
|
5900
|
+
return R instanceof F || !(!R || !R[h]);
|
|
5901
5901
|
}, H = function R(L, G, I) {
|
|
5902
5902
|
var W;
|
|
5903
5903
|
if (!L) return v;
|
|
5904
5904
|
if (typeof L == "string") {
|
|
5905
|
-
var
|
|
5906
|
-
T[
|
|
5907
|
-
var
|
|
5908
|
-
if (!W &&
|
|
5905
|
+
var z = L.toLowerCase();
|
|
5906
|
+
T[z] && (W = z), G && (T[z] = G, W = z);
|
|
5907
|
+
var B = L.split("-");
|
|
5908
|
+
if (!W && B.length > 1) return R(B[0]);
|
|
5909
5909
|
} else {
|
|
5910
5910
|
var N = L.name;
|
|
5911
5911
|
T[N] = L, W = N;
|
|
@@ -5914,27 +5914,27 @@ function Ko() {
|
|
|
5914
5914
|
}, k = function(R, L) {
|
|
5915
5915
|
if (D(R)) return R.clone();
|
|
5916
5916
|
var G = typeof L == "object" ? L : {};
|
|
5917
|
-
return G.date = R, G.args = arguments, new
|
|
5917
|
+
return G.date = R, G.args = arguments, new F(G);
|
|
5918
5918
|
}, S = C;
|
|
5919
5919
|
S.l = H, S.i = D, S.w = function(R, L) {
|
|
5920
5920
|
return k(R, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
|
|
5921
5921
|
};
|
|
5922
|
-
var
|
|
5922
|
+
var F = (function() {
|
|
5923
5923
|
function R(G) {
|
|
5924
5924
|
this.$L = H(G.locale, null, !0), this.parse(G), this.$x = this.$x || G.x || {}, this[h] = !0;
|
|
5925
5925
|
}
|
|
5926
5926
|
var L = R.prototype;
|
|
5927
5927
|
return L.parse = function(G) {
|
|
5928
5928
|
this.$d = (function(I) {
|
|
5929
|
-
var W = I.date,
|
|
5929
|
+
var W = I.date, z = I.utc;
|
|
5930
5930
|
if (W === null) return /* @__PURE__ */ new Date(NaN);
|
|
5931
5931
|
if (S.u(W)) return /* @__PURE__ */ new Date();
|
|
5932
5932
|
if (W instanceof Date) return new Date(W);
|
|
5933
5933
|
if (typeof W == "string" && !/Z$/i.test(W)) {
|
|
5934
|
-
var
|
|
5935
|
-
if (
|
|
5936
|
-
var N =
|
|
5937
|
-
return
|
|
5934
|
+
var B = W.match(y);
|
|
5935
|
+
if (B) {
|
|
5936
|
+
var N = B[2] - 1 || 0, E = (B[7] || "0").substring(0, 3);
|
|
5937
|
+
return z ? new Date(Date.UTC(B[1], N, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, E)) : new Date(B[1], N, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, E);
|
|
5938
5938
|
}
|
|
5939
5939
|
}
|
|
5940
5940
|
return new Date(W);
|
|
@@ -5960,39 +5960,39 @@ function Ko() {
|
|
|
5960
5960
|
}, L.valueOf = function() {
|
|
5961
5961
|
return this.$d.getTime();
|
|
5962
5962
|
}, L.startOf = function(G, I) {
|
|
5963
|
-
var W = this,
|
|
5964
|
-
var Q = S.w(W.$u ? Date.UTC(W.$y, Z,
|
|
5965
|
-
return
|
|
5966
|
-
}, E = function(
|
|
5967
|
-
return S.w(W.toDate()[
|
|
5968
|
-
},
|
|
5969
|
-
switch (
|
|
5963
|
+
var W = this, z = !!S.u(I) || I, B = S.p(G), N = function(J, Z) {
|
|
5964
|
+
var Q = S.w(W.$u ? Date.UTC(W.$y, Z, J) : new Date(W.$y, Z, J), W);
|
|
5965
|
+
return z ? Q : Q.endOf(i);
|
|
5966
|
+
}, E = function(J, Z) {
|
|
5967
|
+
return S.w(W.toDate()[J].apply(W.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), W);
|
|
5968
|
+
}, w = this.$W, P = this.$M, ae = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
|
5969
|
+
switch (B) {
|
|
5970
5970
|
case g:
|
|
5971
|
-
return
|
|
5971
|
+
return z ? N(1, 0) : N(31, 11);
|
|
5972
5972
|
case o:
|
|
5973
|
-
return
|
|
5973
|
+
return z ? N(1, P) : N(0, P + 1);
|
|
5974
5974
|
case r:
|
|
5975
|
-
var le = this.$locale().weekStart || 0,
|
|
5976
|
-
return N(
|
|
5975
|
+
var le = this.$locale().weekStart || 0, O = (w < le ? w + 7 : w) - le;
|
|
5976
|
+
return N(z ? ae - O : ae + (6 - O), P);
|
|
5977
5977
|
case i:
|
|
5978
5978
|
case p:
|
|
5979
|
-
return E(
|
|
5979
|
+
return E(te + "Hours", 0);
|
|
5980
5980
|
case l:
|
|
5981
|
-
return E(
|
|
5981
|
+
return E(te + "Minutes", 1);
|
|
5982
5982
|
case d:
|
|
5983
|
-
return E(
|
|
5983
|
+
return E(te + "Seconds", 2);
|
|
5984
5984
|
case b:
|
|
5985
|
-
return E(
|
|
5985
|
+
return E(te + "Milliseconds", 3);
|
|
5986
5986
|
default:
|
|
5987
5987
|
return this.clone();
|
|
5988
5988
|
}
|
|
5989
5989
|
}, L.endOf = function(G) {
|
|
5990
5990
|
return this.startOf(G, !1);
|
|
5991
5991
|
}, L.$set = function(G, I) {
|
|
5992
|
-
var W,
|
|
5993
|
-
if (
|
|
5994
|
-
var
|
|
5995
|
-
|
|
5992
|
+
var W, z = S.p(G), B = "set" + (this.$u ? "UTC" : ""), N = (W = {}, W[i] = B + "Date", W[p] = B + "Date", W[o] = B + "Month", W[g] = B + "FullYear", W[l] = B + "Hours", W[d] = B + "Minutes", W[b] = B + "Seconds", W[u] = B + "Milliseconds", W)[z], E = z === i ? this.$D + (I - this.$W) : I;
|
|
5993
|
+
if (z === o || z === g) {
|
|
5994
|
+
var w = this.clone().set(p, 1);
|
|
5995
|
+
w.$d[N](E), w.init(), this.$d = w.set(p, Math.min(this.$D, w.daysInMonth())).$d;
|
|
5996
5996
|
} else N && this.$d[N](E);
|
|
5997
5997
|
return this.init(), this;
|
|
5998
5998
|
}, L.set = function(G, I) {
|
|
@@ -6000,46 +6000,46 @@ function Ko() {
|
|
|
6000
6000
|
}, L.get = function(G) {
|
|
6001
6001
|
return this[S.p(G)]();
|
|
6002
6002
|
}, L.add = function(G, I) {
|
|
6003
|
-
var W,
|
|
6003
|
+
var W, z = this;
|
|
6004
6004
|
G = Number(G);
|
|
6005
|
-
var
|
|
6006
|
-
var
|
|
6007
|
-
return S.w(
|
|
6005
|
+
var B = S.p(I), N = function(P) {
|
|
6006
|
+
var ae = k(z);
|
|
6007
|
+
return S.w(ae.date(ae.date() + Math.round(P * G)), z);
|
|
6008
6008
|
};
|
|
6009
|
-
if (
|
|
6010
|
-
if (
|
|
6011
|
-
if (
|
|
6012
|
-
if (
|
|
6013
|
-
var E = (W = {}, W[d] = n, W[l] = s, W[b] = a, W)[
|
|
6014
|
-
return S.w(
|
|
6009
|
+
if (B === o) return this.set(o, this.$M + G);
|
|
6010
|
+
if (B === g) return this.set(g, this.$y + G);
|
|
6011
|
+
if (B === i) return N(1);
|
|
6012
|
+
if (B === r) return N(7);
|
|
6013
|
+
var E = (W = {}, W[d] = n, W[l] = s, W[b] = a, W)[B] || 1, w = this.$d.getTime() + G * E;
|
|
6014
|
+
return S.w(w, this);
|
|
6015
6015
|
}, L.subtract = function(G, I) {
|
|
6016
6016
|
return this.add(-1 * G, I);
|
|
6017
6017
|
}, L.format = function(G) {
|
|
6018
6018
|
var I = this, W = this.$locale();
|
|
6019
6019
|
if (!this.isValid()) return W.invalidDate || f;
|
|
6020
|
-
var
|
|
6021
|
-
return Z && (Z[Q] || Z(I,
|
|
6022
|
-
},
|
|
6020
|
+
var z = G || "YYYY-MM-DDTHH:mm:ssZ", B = S.z(this), N = this.$H, E = this.$m, w = this.$M, P = W.weekdays, ae = W.months, te = W.meridiem, le = function(Z, Q, X, q) {
|
|
6021
|
+
return Z && (Z[Q] || Z(I, z)) || X[Q].slice(0, q);
|
|
6022
|
+
}, O = function(Z) {
|
|
6023
6023
|
return S.s(N % 12 || 12, Z, "0");
|
|
6024
|
-
},
|
|
6025
|
-
var
|
|
6026
|
-
return
|
|
6024
|
+
}, J = te || function(Z, Q, X) {
|
|
6025
|
+
var q = Z < 12 ? "AM" : "PM";
|
|
6026
|
+
return X ? q.toLowerCase() : q;
|
|
6027
6027
|
};
|
|
6028
|
-
return
|
|
6029
|
-
return Q || (function(
|
|
6030
|
-
switch (
|
|
6028
|
+
return z.replace(_, (function(Z, Q) {
|
|
6029
|
+
return Q || (function(X) {
|
|
6030
|
+
switch (X) {
|
|
6031
6031
|
case "YY":
|
|
6032
6032
|
return String(I.$y).slice(-2);
|
|
6033
6033
|
case "YYYY":
|
|
6034
6034
|
return S.s(I.$y, 4, "0");
|
|
6035
6035
|
case "M":
|
|
6036
|
-
return
|
|
6036
|
+
return w + 1;
|
|
6037
6037
|
case "MM":
|
|
6038
|
-
return S.s(
|
|
6038
|
+
return S.s(w + 1, 2, "0");
|
|
6039
6039
|
case "MMM":
|
|
6040
|
-
return le(W.monthsShort,
|
|
6040
|
+
return le(W.monthsShort, w, ae, 3);
|
|
6041
6041
|
case "MMMM":
|
|
6042
|
-
return le(
|
|
6042
|
+
return le(ae, w);
|
|
6043
6043
|
case "D":
|
|
6044
6044
|
return I.$D;
|
|
6045
6045
|
case "DD":
|
|
@@ -6047,23 +6047,23 @@ function Ko() {
|
|
|
6047
6047
|
case "d":
|
|
6048
6048
|
return String(I.$W);
|
|
6049
6049
|
case "dd":
|
|
6050
|
-
return le(W.weekdaysMin, I.$W,
|
|
6050
|
+
return le(W.weekdaysMin, I.$W, P, 2);
|
|
6051
6051
|
case "ddd":
|
|
6052
|
-
return le(W.weekdaysShort, I.$W,
|
|
6052
|
+
return le(W.weekdaysShort, I.$W, P, 3);
|
|
6053
6053
|
case "dddd":
|
|
6054
|
-
return
|
|
6054
|
+
return P[I.$W];
|
|
6055
6055
|
case "H":
|
|
6056
6056
|
return String(N);
|
|
6057
6057
|
case "HH":
|
|
6058
6058
|
return S.s(N, 2, "0");
|
|
6059
6059
|
case "h":
|
|
6060
|
-
return
|
|
6060
|
+
return O(1);
|
|
6061
6061
|
case "hh":
|
|
6062
|
-
return
|
|
6062
|
+
return O(2);
|
|
6063
6063
|
case "a":
|
|
6064
|
-
return
|
|
6064
|
+
return J(N, E, !0);
|
|
6065
6065
|
case "A":
|
|
6066
|
-
return
|
|
6066
|
+
return J(N, E, !1);
|
|
6067
6067
|
case "m":
|
|
6068
6068
|
return String(E);
|
|
6069
6069
|
case "mm":
|
|
@@ -6075,54 +6075,54 @@ function Ko() {
|
|
|
6075
6075
|
case "SSS":
|
|
6076
6076
|
return S.s(I.$ms, 3, "0");
|
|
6077
6077
|
case "Z":
|
|
6078
|
-
return
|
|
6078
|
+
return B;
|
|
6079
6079
|
}
|
|
6080
6080
|
return null;
|
|
6081
|
-
})(Z) ||
|
|
6081
|
+
})(Z) || B.replace(":", "");
|
|
6082
6082
|
}));
|
|
6083
6083
|
}, L.utcOffset = function() {
|
|
6084
6084
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6085
6085
|
}, L.diff = function(G, I, W) {
|
|
6086
|
-
var
|
|
6087
|
-
return S.m(
|
|
6086
|
+
var z, B = this, N = S.p(I), E = k(G), w = (E.utcOffset() - this.utcOffset()) * n, P = this - E, ae = function() {
|
|
6087
|
+
return S.m(B, E);
|
|
6088
6088
|
};
|
|
6089
6089
|
switch (N) {
|
|
6090
6090
|
case g:
|
|
6091
|
-
|
|
6091
|
+
z = ae() / 12;
|
|
6092
6092
|
break;
|
|
6093
6093
|
case o:
|
|
6094
|
-
|
|
6094
|
+
z = ae();
|
|
6095
6095
|
break;
|
|
6096
6096
|
case m:
|
|
6097
|
-
|
|
6097
|
+
z = ae() / 3;
|
|
6098
6098
|
break;
|
|
6099
6099
|
case r:
|
|
6100
|
-
|
|
6100
|
+
z = (P - w) / 6048e5;
|
|
6101
6101
|
break;
|
|
6102
6102
|
case i:
|
|
6103
|
-
|
|
6103
|
+
z = (P - w) / 864e5;
|
|
6104
6104
|
break;
|
|
6105
6105
|
case l:
|
|
6106
|
-
|
|
6106
|
+
z = P / s;
|
|
6107
6107
|
break;
|
|
6108
6108
|
case d:
|
|
6109
|
-
|
|
6109
|
+
z = P / n;
|
|
6110
6110
|
break;
|
|
6111
6111
|
case b:
|
|
6112
|
-
|
|
6112
|
+
z = P / a;
|
|
6113
6113
|
break;
|
|
6114
6114
|
default:
|
|
6115
|
-
|
|
6115
|
+
z = P;
|
|
6116
6116
|
}
|
|
6117
|
-
return W ?
|
|
6117
|
+
return W ? z : S.a(z);
|
|
6118
6118
|
}, L.daysInMonth = function() {
|
|
6119
6119
|
return this.endOf(o).$D;
|
|
6120
6120
|
}, L.$locale = function() {
|
|
6121
6121
|
return T[this.$L];
|
|
6122
6122
|
}, L.locale = function(G, I) {
|
|
6123
6123
|
if (!G) return this.$L;
|
|
6124
|
-
var W = this.clone(),
|
|
6125
|
-
return
|
|
6124
|
+
var W = this.clone(), z = H(G, I, !0);
|
|
6125
|
+
return z && (W.$L = z), W;
|
|
6126
6126
|
}, L.clone = function() {
|
|
6127
6127
|
return S.w(this.$d, this);
|
|
6128
6128
|
}, L.toDate = function() {
|
|
@@ -6134,13 +6134,13 @@ function Ko() {
|
|
|
6134
6134
|
}, L.toString = function() {
|
|
6135
6135
|
return this.$d.toUTCString();
|
|
6136
6136
|
}, R;
|
|
6137
|
-
})(),
|
|
6138
|
-
return k.prototype =
|
|
6139
|
-
|
|
6137
|
+
})(), A = F.prototype;
|
|
6138
|
+
return k.prototype = A, [["$ms", u], ["$s", b], ["$m", d], ["$H", l], ["$W", i], ["$M", o], ["$y", g], ["$D", p]].forEach((function(R) {
|
|
6139
|
+
A[R[1]] = function(L) {
|
|
6140
6140
|
return this.$g(L, R[0], R[1]);
|
|
6141
6141
|
};
|
|
6142
6142
|
})), k.extend = function(R, L) {
|
|
6143
|
-
return R.$i || (R(L,
|
|
6143
|
+
return R.$i || (R(L, F, k), R.$i = !0), k;
|
|
6144
6144
|
}, k.locale = H, k.isDayjs = D, k.unix = function(R) {
|
|
6145
6145
|
return k(1e3 * R);
|
|
6146
6146
|
}, k.en = T[v], k.Ls = T, k.p = {}, k;
|
|
@@ -6169,98 +6169,98 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6169
6169
|
*/
|
|
6170
6170
|
resetPasswordEncrypt: a
|
|
6171
6171
|
} = re(), n = M(
|
|
6172
|
-
async (
|
|
6173
|
-
const { mac_address:
|
|
6172
|
+
async (O) => {
|
|
6173
|
+
const { mac_address: J = "", app_version: Z = "", anydesk_id: Q = "" } = O;
|
|
6174
6174
|
return await e.post("/cash-register/login", {
|
|
6175
|
-
mac_address:
|
|
6175
|
+
mac_address: J,
|
|
6176
6176
|
app_version: Z,
|
|
6177
6177
|
anydesk_id: Q
|
|
6178
6178
|
});
|
|
6179
6179
|
},
|
|
6180
6180
|
[e]
|
|
6181
6181
|
), s = M(async () => e.get("/member/getMemberInfo"), [e]), u = M(async () => await e.get("/member/getGameList"), [e]), b = M(async () => await e.get("/member/getNowCurrencyExchange"), [e]), d = M(async () => await e.get("member/getFavoriteGame"), [e]), l = M(
|
|
6182
|
-
async (
|
|
6183
|
-
const { account:
|
|
6182
|
+
async (O) => {
|
|
6183
|
+
const { account: J, password: Z, trans_code: Q, two_fa_value: X } = O;
|
|
6184
6184
|
return await e.post("/login", {
|
|
6185
|
-
memId:
|
|
6185
|
+
memId: J,
|
|
6186
6186
|
passwd: Z,
|
|
6187
6187
|
trans_code: Q,
|
|
6188
|
-
two_fa_value:
|
|
6188
|
+
two_fa_value: X
|
|
6189
6189
|
});
|
|
6190
6190
|
},
|
|
6191
6191
|
[e]
|
|
6192
6192
|
), i = M(async () => await e.post("/logout"), [e]), r = M(
|
|
6193
|
-
async (
|
|
6194
|
-
const { gameUid:
|
|
6195
|
-
return await e.put(`/member/toggleFavoriteGame/${
|
|
6193
|
+
async (O) => {
|
|
6194
|
+
const { gameUid: J = "", status: Z = 0 } = O;
|
|
6195
|
+
return await e.put(`/member/toggleFavoriteGame/${J}`, {
|
|
6196
6196
|
status: Z
|
|
6197
6197
|
});
|
|
6198
6198
|
},
|
|
6199
6199
|
[e]
|
|
6200
6200
|
), o = M(async () => await e.get("/profit/ranking"), [e]), m = M(
|
|
6201
6201
|
async ({
|
|
6202
|
-
memberId:
|
|
6203
|
-
password:
|
|
6202
|
+
memberId: O,
|
|
6203
|
+
password: J,
|
|
6204
6204
|
unlimitCode: Z,
|
|
6205
6205
|
email: Q,
|
|
6206
|
-
inviteCode:
|
|
6207
|
-
currencyCode:
|
|
6208
|
-
validCode:
|
|
6209
|
-
nickName:
|
|
6206
|
+
inviteCode: X,
|
|
6207
|
+
currencyCode: q,
|
|
6208
|
+
validCode: ue,
|
|
6209
|
+
nickName: Ce
|
|
6210
6210
|
}) => {
|
|
6211
6211
|
const be = {
|
|
6212
|
-
memId:
|
|
6213
|
-
passwd: Ta.MD5(
|
|
6212
|
+
memId: O,
|
|
6213
|
+
passwd: Ta.MD5(J).toString(),
|
|
6214
6214
|
email: Q,
|
|
6215
|
-
currency_code:
|
|
6216
|
-
code:
|
|
6217
|
-
nick_name:
|
|
6215
|
+
currency_code: q,
|
|
6216
|
+
code: ue,
|
|
6217
|
+
nick_name: Ce
|
|
6218
6218
|
};
|
|
6219
|
-
return Q && (be.email = Q), Z && (be.unlimit_code = Z),
|
|
6219
|
+
return Q && (be.email = Q), Z && (be.unlimit_code = Z), X && (be.invite = X), e.post("/siginUp", be);
|
|
6220
6220
|
},
|
|
6221
6221
|
[e]
|
|
6222
6222
|
), g = M(
|
|
6223
|
-
async (
|
|
6224
|
-
const { name:
|
|
6223
|
+
async (O) => {
|
|
6224
|
+
const { name: J, birthday: Z, email: Q, mobile: X } = O;
|
|
6225
6225
|
return await e.post("/editMembetInfo", {
|
|
6226
|
-
name:
|
|
6226
|
+
name: J,
|
|
6227
6227
|
// 暱稱
|
|
6228
6228
|
birthday: Z,
|
|
6229
6229
|
// 生日 (格式:YYYY-MM-DD)
|
|
6230
6230
|
email: Q,
|
|
6231
6231
|
// 電子郵件
|
|
6232
|
-
mobile:
|
|
6232
|
+
mobile: X
|
|
6233
6233
|
// 手機號碼
|
|
6234
6234
|
});
|
|
6235
6235
|
},
|
|
6236
6236
|
[e]
|
|
6237
6237
|
), p = M(
|
|
6238
|
-
async (
|
|
6239
|
-
const { name:
|
|
6238
|
+
async (O) => {
|
|
6239
|
+
const { name: J, birthday: Z, email: Q, mobile: X } = O;
|
|
6240
6240
|
return await e.post("/editMemberInfo", {
|
|
6241
|
-
name:
|
|
6241
|
+
name: J,
|
|
6242
6242
|
// 暱稱
|
|
6243
6243
|
birthday: Z,
|
|
6244
6244
|
// 生日 (格式:YYYY-MM-DD)
|
|
6245
6245
|
email: Q,
|
|
6246
6246
|
// 電子郵件
|
|
6247
|
-
mobile:
|
|
6247
|
+
mobile: X
|
|
6248
6248
|
// 手機號碼
|
|
6249
6249
|
});
|
|
6250
6250
|
},
|
|
6251
6251
|
[e]
|
|
6252
6252
|
), f = M(
|
|
6253
|
-
async (
|
|
6254
|
-
const { oldPwd:
|
|
6253
|
+
async (O) => {
|
|
6254
|
+
const { oldPwd: J, newPwd: Z, encrypt: Q } = O, X = $o(Q || a || "md5");
|
|
6255
6255
|
return await e.post("/passwordReset", {
|
|
6256
|
-
old_pwd:
|
|
6257
|
-
new_pwd:
|
|
6256
|
+
old_pwd: X(J),
|
|
6257
|
+
new_pwd: X(Z)
|
|
6258
6258
|
});
|
|
6259
6259
|
},
|
|
6260
6260
|
[e, a]
|
|
6261
6261
|
), y = M(
|
|
6262
|
-
async (
|
|
6263
|
-
const { newPwd:
|
|
6262
|
+
async (O) => {
|
|
6263
|
+
const { newPwd: J } = O, Z = Ta.MD5(J).toString();
|
|
6264
6264
|
return await e.post("/member/initset", {
|
|
6265
6265
|
password: Z,
|
|
6266
6266
|
password_confirmation: Z
|
|
@@ -6268,38 +6268,38 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6268
6268
|
},
|
|
6269
6269
|
[e]
|
|
6270
6270
|
), _ = M(
|
|
6271
|
-
async (
|
|
6272
|
-
const { newPwd:
|
|
6271
|
+
async (O) => {
|
|
6272
|
+
const { newPwd: J, confirmNewPwd: Z } = O;
|
|
6273
6273
|
return await e.post("/setWithdrawPassword", {
|
|
6274
|
-
newPassword: Ja(
|
|
6274
|
+
newPassword: Ja(J),
|
|
6275
6275
|
confirmPassword: Ja(Z)
|
|
6276
6276
|
});
|
|
6277
6277
|
},
|
|
6278
6278
|
[e]
|
|
6279
6279
|
), c = M(
|
|
6280
|
-
async (
|
|
6281
|
-
const { oldPwd:
|
|
6280
|
+
async (O) => {
|
|
6281
|
+
const { oldPwd: J, newPwd: Z } = O;
|
|
6282
6282
|
return await e.post("/withdrawPasswordReset", {
|
|
6283
|
-
old_pwd: Ja(
|
|
6283
|
+
old_pwd: Ja(J),
|
|
6284
6284
|
new_pwd: Ja(Z)
|
|
6285
6285
|
});
|
|
6286
6286
|
},
|
|
6287
6287
|
[e]
|
|
6288
6288
|
), U = M(
|
|
6289
|
-
async (
|
|
6290
|
-
const { mobile:
|
|
6289
|
+
async (O) => {
|
|
6290
|
+
const { mobile: J, verification_code: Z } = O;
|
|
6291
6291
|
return await e.post("/withdrawPasswordRenew", {
|
|
6292
|
-
mobile:
|
|
6292
|
+
mobile: J,
|
|
6293
6293
|
verification_code: Z
|
|
6294
6294
|
});
|
|
6295
6295
|
},
|
|
6296
6296
|
[e]
|
|
6297
6297
|
), C = M(
|
|
6298
|
-
async ({ paramsData:
|
|
6299
|
-
const { start_time:
|
|
6298
|
+
async ({ paramsData: O }) => {
|
|
6299
|
+
const { start_time: J, end_time: Z, limit: Q = 25 } = O || {};
|
|
6300
6300
|
return await e.get("/report/totalprofit", {
|
|
6301
6301
|
params: {
|
|
6302
|
-
str_date: `${we(
|
|
6302
|
+
str_date: `${we(J).format("YYYY-MM-DD")} 12:00:00`,
|
|
6303
6303
|
end_date: `${we(Z).format("YYYY-MM-DD")} 11:59:59`,
|
|
6304
6304
|
limit: Q
|
|
6305
6305
|
}
|
|
@@ -6307,187 +6307,187 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6307
6307
|
},
|
|
6308
6308
|
[e]
|
|
6309
6309
|
), v = M(
|
|
6310
|
-
async (
|
|
6311
|
-
const { platform:
|
|
6310
|
+
async (O) => {
|
|
6311
|
+
const { platform: J } = O;
|
|
6312
6312
|
return await e.post("/member/all-in-la", {
|
|
6313
|
-
platform:
|
|
6313
|
+
platform: J
|
|
6314
6314
|
});
|
|
6315
6315
|
},
|
|
6316
6316
|
[e]
|
|
6317
6317
|
), T = M(async () => await e.get("/member/checkRestrictedWagering"), [e]), h = M(
|
|
6318
|
-
async (
|
|
6319
|
-
const { memId:
|
|
6318
|
+
async (O) => {
|
|
6319
|
+
const { memId: J, point: Z, currency: Q, password: X } = O;
|
|
6320
6320
|
return await e.post("/pointsTransaction", {
|
|
6321
|
-
to_memId:
|
|
6321
|
+
to_memId: J,
|
|
6322
6322
|
point: Z,
|
|
6323
6323
|
currency: Q,
|
|
6324
|
-
password: Ja(
|
|
6324
|
+
password: Ja(X)
|
|
6325
6325
|
});
|
|
6326
6326
|
},
|
|
6327
6327
|
[e]
|
|
6328
6328
|
), D = M(
|
|
6329
|
-
async ({ formData:
|
|
6329
|
+
async ({ formData: O }) => {
|
|
6330
6330
|
const {
|
|
6331
|
-
bank_name:
|
|
6331
|
+
bank_name: J,
|
|
6332
6332
|
bank_account_name: Z,
|
|
6333
6333
|
bank_branch_name: Q,
|
|
6334
|
-
bank_account:
|
|
6335
|
-
bank_card_number:
|
|
6336
|
-
id_card:
|
|
6337
|
-
id_pic:
|
|
6338
|
-
} =
|
|
6339
|
-
return await t.post("/bindBankAccount",
|
|
6334
|
+
bank_account: X,
|
|
6335
|
+
bank_card_number: q,
|
|
6336
|
+
id_card: ue,
|
|
6337
|
+
id_pic: Ce
|
|
6338
|
+
} = O;
|
|
6339
|
+
return await t.post("/bindBankAccount", O);
|
|
6340
6340
|
},
|
|
6341
6341
|
[t]
|
|
6342
6342
|
), H = M(
|
|
6343
|
-
async (
|
|
6344
|
-
const { point_transfer:
|
|
6343
|
+
async (O) => {
|
|
6344
|
+
const { point_transfer: J } = O;
|
|
6345
6345
|
return await e.post("/cash-register/clear", {
|
|
6346
|
-
point_transfer:
|
|
6346
|
+
point_transfer: J
|
|
6347
6347
|
});
|
|
6348
6348
|
},
|
|
6349
6349
|
[e]
|
|
6350
6350
|
), k = M(
|
|
6351
|
-
async (
|
|
6352
|
-
const { trans_code:
|
|
6351
|
+
async (O) => {
|
|
6352
|
+
const { trans_code: J, line_id: Z, invite: Q, line_name: X } = O;
|
|
6353
6353
|
return await e.post("/goLine", {
|
|
6354
|
-
trans_code:
|
|
6354
|
+
trans_code: J,
|
|
6355
6355
|
line_id: Z,
|
|
6356
6356
|
invite: Q,
|
|
6357
|
-
line_name:
|
|
6357
|
+
line_name: X
|
|
6358
6358
|
});
|
|
6359
6359
|
},
|
|
6360
6360
|
[e]
|
|
6361
6361
|
), S = M(
|
|
6362
|
-
async (
|
|
6363
|
-
const { trans_code:
|
|
6362
|
+
async (O) => {
|
|
6363
|
+
const { trans_code: J, line_id: Z, line_name: Q } = O;
|
|
6364
6364
|
return await e.post("/login/line", {
|
|
6365
|
-
trans_code:
|
|
6365
|
+
trans_code: J,
|
|
6366
6366
|
line_id: Z,
|
|
6367
6367
|
line_name: Q
|
|
6368
6368
|
});
|
|
6369
6369
|
},
|
|
6370
6370
|
[e]
|
|
6371
|
-
),
|
|
6372
|
-
async (
|
|
6373
|
-
const { mac_address:
|
|
6374
|
-
return await e.get(`/machine-login-code/${
|
|
6371
|
+
), F = M(
|
|
6372
|
+
async (O) => {
|
|
6373
|
+
const { mac_address: J } = O;
|
|
6374
|
+
return await e.get(`/machine-login-code/${J}`);
|
|
6375
6375
|
},
|
|
6376
6376
|
[e]
|
|
6377
|
-
),
|
|
6378
|
-
async (
|
|
6379
|
-
const { member_info_uid:
|
|
6380
|
-
return await e.post(`/member/transfer/${
|
|
6377
|
+
), A = M(
|
|
6378
|
+
async (O) => {
|
|
6379
|
+
const { member_info_uid: J, point: Z, currency: Q, withdraw_password: X } = O;
|
|
6380
|
+
return await e.post(`/member/transfer/${J}`, {
|
|
6381
6381
|
point: Z,
|
|
6382
6382
|
currency: Q,
|
|
6383
|
-
withdraw_password:
|
|
6383
|
+
withdraw_password: X
|
|
6384
6384
|
});
|
|
6385
6385
|
},
|
|
6386
6386
|
[e]
|
|
6387
6387
|
), R = M(
|
|
6388
|
-
async (
|
|
6389
|
-
const { member_info_uid:
|
|
6390
|
-
return await e.get(`/member/transfer/${
|
|
6388
|
+
async (O) => {
|
|
6389
|
+
const { member_info_uid: J, point: Z, currency: Q, withdraw_password: X } = O;
|
|
6390
|
+
return await e.get(`/member/transfer/${J}`, {
|
|
6391
6391
|
params: {
|
|
6392
6392
|
point: Z,
|
|
6393
6393
|
currency: Q,
|
|
6394
|
-
withdraw_password:
|
|
6394
|
+
withdraw_password: X
|
|
6395
6395
|
}
|
|
6396
6396
|
});
|
|
6397
6397
|
},
|
|
6398
6398
|
[e]
|
|
6399
6399
|
), L = M(
|
|
6400
|
-
async (
|
|
6401
|
-
const { mobile:
|
|
6400
|
+
async (O) => {
|
|
6401
|
+
const { mobile: J, verifyCode: Z } = O;
|
|
6402
6402
|
return await e.post("/sms/verifyValidationCode", {
|
|
6403
|
-
mobile:
|
|
6403
|
+
mobile: J,
|
|
6404
6404
|
inputCode: Z
|
|
6405
6405
|
});
|
|
6406
6406
|
},
|
|
6407
6407
|
[e]
|
|
6408
6408
|
), G = M(
|
|
6409
|
-
async (
|
|
6410
|
-
const { mobile:
|
|
6409
|
+
async (O) => {
|
|
6410
|
+
const { mobile: J, verifyCode: Z, snCode: Q, invoiceType: X, invoiceCode: q } = O;
|
|
6411
6411
|
return await e.post("/goMobile", {
|
|
6412
|
-
mobile:
|
|
6412
|
+
mobile: J,
|
|
6413
6413
|
verification_code: Z,
|
|
6414
6414
|
sn_code: Q,
|
|
6415
|
-
invoice_type:
|
|
6416
|
-
invoice_code:
|
|
6415
|
+
invoice_type: X,
|
|
6416
|
+
invoice_code: q
|
|
6417
6417
|
});
|
|
6418
6418
|
},
|
|
6419
6419
|
[e]
|
|
6420
6420
|
), I = M(
|
|
6421
|
-
async (
|
|
6422
|
-
const { mobile:
|
|
6421
|
+
async (O) => {
|
|
6422
|
+
const { mobile: J, password: Z, verifyCode: Q, invite: X, invoiceType: q, invoiceCode: ue } = O;
|
|
6423
6423
|
return await e.post("/goMobileByInvite", {
|
|
6424
|
-
mobile:
|
|
6424
|
+
mobile: J,
|
|
6425
6425
|
passwd: Ta.MD5(Z).toString(),
|
|
6426
6426
|
verification_code: Q,
|
|
6427
|
-
invite:
|
|
6428
|
-
invoice_type:
|
|
6429
|
-
invoice_code:
|
|
6427
|
+
invite: X,
|
|
6428
|
+
invoice_type: q,
|
|
6429
|
+
invoice_code: ue
|
|
6430
6430
|
});
|
|
6431
6431
|
},
|
|
6432
6432
|
[e]
|
|
6433
6433
|
), W = M(
|
|
6434
|
-
async (
|
|
6435
|
-
const { mobile:
|
|
6434
|
+
async (O) => {
|
|
6435
|
+
const { mobile: J, verifyCode: Z, password: Q } = O;
|
|
6436
6436
|
return await e.post("/forgot-password", {
|
|
6437
|
-
mobile:
|
|
6437
|
+
mobile: J,
|
|
6438
6438
|
verification_code: Z,
|
|
6439
6439
|
passwd: Ta.MD5(Q).toString()
|
|
6440
6440
|
});
|
|
6441
6441
|
},
|
|
6442
6442
|
[e]
|
|
6443
|
-
),
|
|
6444
|
-
async (
|
|
6445
|
-
const { mobile:
|
|
6443
|
+
), z = M(
|
|
6444
|
+
async (O) => {
|
|
6445
|
+
const { mobile: J, password: Z, invite: Q, invoiceType: X, invoiceCode: q } = O;
|
|
6446
6446
|
return await e.post("/goMobileByPassword", {
|
|
6447
|
-
mobile:
|
|
6447
|
+
mobile: J,
|
|
6448
6448
|
password: Ta.MD5(Z).toString(),
|
|
6449
6449
|
invite: Q,
|
|
6450
|
-
invoice_type:
|
|
6451
|
-
invoice_code:
|
|
6450
|
+
invoice_type: X,
|
|
6451
|
+
invoice_code: q
|
|
6452
6452
|
});
|
|
6453
6453
|
},
|
|
6454
6454
|
[e]
|
|
6455
|
-
),
|
|
6456
|
-
async (
|
|
6455
|
+
), B = M(
|
|
6456
|
+
async (O) => await e.get(`/checkMobile/${O}`),
|
|
6457
6457
|
[e]
|
|
6458
6458
|
), N = M(
|
|
6459
|
-
async (
|
|
6460
|
-
const { mobile:
|
|
6459
|
+
async (O) => {
|
|
6460
|
+
const { mobile: J, invite: Z } = O;
|
|
6461
6461
|
return await e.get("/sms/getValidCode", {
|
|
6462
6462
|
params: {
|
|
6463
|
-
mobile:
|
|
6463
|
+
mobile: J,
|
|
6464
6464
|
invite: Z
|
|
6465
6465
|
}
|
|
6466
6466
|
});
|
|
6467
6467
|
},
|
|
6468
6468
|
[e]
|
|
6469
6469
|
), E = M(
|
|
6470
|
-
async (
|
|
6471
|
-
const { bindType:
|
|
6470
|
+
async (O) => {
|
|
6471
|
+
const { bindType: J, bindId: Z } = O;
|
|
6472
6472
|
return await e.post("/member/bindThirdPartyAccount", {
|
|
6473
|
-
bind_type:
|
|
6473
|
+
bind_type: J,
|
|
6474
6474
|
bind_id: Z
|
|
6475
6475
|
});
|
|
6476
6476
|
},
|
|
6477
6477
|
[e]
|
|
6478
|
-
),
|
|
6479
|
-
async (
|
|
6478
|
+
), w = M(async () => await e.get("/jackpot", {}), [e]), P = M(
|
|
6479
|
+
async (O) => await e.get("/total-bet-ranking"),
|
|
6480
6480
|
[e]
|
|
6481
|
-
),
|
|
6482
|
-
async (
|
|
6483
|
-
const { avatarId:
|
|
6481
|
+
), ae = M(async () => await e.get("/member/avatar/list"), [e]), te = M(
|
|
6482
|
+
async (O) => {
|
|
6483
|
+
const { avatarId: J } = O;
|
|
6484
6484
|
return await e.post("/member/avatar/change", {
|
|
6485
|
-
avatar_file_name:
|
|
6485
|
+
avatar_file_name: J
|
|
6486
6486
|
});
|
|
6487
6487
|
},
|
|
6488
6488
|
[e]
|
|
6489
6489
|
), le = M(
|
|
6490
|
-
async ({ formData:
|
|
6490
|
+
async ({ formData: O }) => await e.post("/cash-register/createMachine", O),
|
|
6491
6491
|
[e]
|
|
6492
6492
|
);
|
|
6493
6493
|
return {
|
|
@@ -6517,8 +6517,8 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6517
6517
|
abandonPointsApi: H,
|
|
6518
6518
|
lineLoginApi: k,
|
|
6519
6519
|
lineLogin2Api: S,
|
|
6520
|
-
getMachineLoginCodeApi:
|
|
6521
|
-
memberTransferApi:
|
|
6520
|
+
getMachineLoginCodeApi: F,
|
|
6521
|
+
memberTransferApi: A,
|
|
6522
6522
|
checkMemberTransferApi: R,
|
|
6523
6523
|
mobileLoginApi: L,
|
|
6524
6524
|
sendMobileVerifyCodeApi: N,
|
|
@@ -6526,13 +6526,13 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6526
6526
|
bindAccountApi: E,
|
|
6527
6527
|
mobileRegisterApi: I,
|
|
6528
6528
|
forgotPasswordApi: W,
|
|
6529
|
-
mobilePasswordApi:
|
|
6530
|
-
checkMobileApi:
|
|
6529
|
+
mobilePasswordApi: z,
|
|
6530
|
+
checkMobileApi: B,
|
|
6531
6531
|
verifyResetActionApi: U,
|
|
6532
|
-
getJackpotApi:
|
|
6533
|
-
getBetRankingApi:
|
|
6534
|
-
getUserAvatarListApi:
|
|
6535
|
-
updateUserAvatarApi:
|
|
6532
|
+
getJackpotApi: w,
|
|
6533
|
+
getBetRankingApi: P,
|
|
6534
|
+
getUserAvatarListApi: ae,
|
|
6535
|
+
updateUserAvatarApi: te
|
|
6536
6536
|
};
|
|
6537
6537
|
}, Tu = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
6538
6538
|
const { userCurrencyExchangeApi: a } = oe(), { getToken: n } = re(), { enabled: s, ...u } = t, d = !!n?.() && (s ? s.every((l) => l) : !0);
|
|
@@ -6594,7 +6594,7 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6594
6594
|
l
|
|
6595
6595
|
];
|
|
6596
6596
|
}, Gi = () => {
|
|
6597
|
-
const { client: e, lng: t } = re(), a =
|
|
6597
|
+
const { client: e, lng: t } = re(), a = Je(t || "tw"), n = M(
|
|
6598
6598
|
async (b) => {
|
|
6599
6599
|
const {
|
|
6600
6600
|
gameUid: d = "",
|
|
@@ -6760,7 +6760,7 @@ function Ui(e, t) {
|
|
|
6760
6760
|
}
|
|
6761
6761
|
);
|
|
6762
6762
|
}
|
|
6763
|
-
var Ci = Ui(Yo, { path: "/" }), gi = {},
|
|
6763
|
+
var Ci = Ui(Yo, { path: "/" }), gi = {}, qe = {}, di = {}, Mn;
|
|
6764
6764
|
function sa() {
|
|
6765
6765
|
return Mn || (Mn = 1, (function(e) {
|
|
6766
6766
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
|
@@ -7241,9 +7241,9 @@ function is() {
|
|
|
7241
7241
|
}
|
|
7242
7242
|
var zn;
|
|
7243
7243
|
function Fi() {
|
|
7244
|
-
if (zn) return
|
|
7244
|
+
if (zn) return qe;
|
|
7245
7245
|
zn = 1;
|
|
7246
|
-
var e =
|
|
7246
|
+
var e = qe && qe.__assign || function() {
|
|
7247
7247
|
return e = Object.assign || function(m) {
|
|
7248
7248
|
for (var g, p = 1, f = arguments.length; p < f; p++) {
|
|
7249
7249
|
g = arguments[p];
|
|
@@ -7251,7 +7251,7 @@ function Fi() {
|
|
|
7251
7251
|
}
|
|
7252
7252
|
return m;
|
|
7253
7253
|
}, e.apply(this, arguments);
|
|
7254
|
-
}, t =
|
|
7254
|
+
}, t = qe && qe.__awaiter || function(m, g, p, f) {
|
|
7255
7255
|
function y(_) {
|
|
7256
7256
|
return _ instanceof p ? _ : new p(function(c) {
|
|
7257
7257
|
c(_);
|
|
@@ -7277,7 +7277,7 @@ function Fi() {
|
|
|
7277
7277
|
}
|
|
7278
7278
|
v((f = f.apply(m, g || [])).next());
|
|
7279
7279
|
});
|
|
7280
|
-
}, a =
|
|
7280
|
+
}, a = qe && qe.__generator || function(m, g) {
|
|
7281
7281
|
var p = { label: 0, sent: function() {
|
|
7282
7282
|
if (_[0] & 1) throw _[1];
|
|
7283
7283
|
return _[1];
|
|
@@ -7336,10 +7336,10 @@ function Fi() {
|
|
|
7336
7336
|
if (v[0] & 5) throw v[1];
|
|
7337
7337
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
7338
7338
|
}
|
|
7339
|
-
}, n =
|
|
7339
|
+
}, n = qe && qe.__importDefault || function(m) {
|
|
7340
7340
|
return m && m.__esModule ? m : { default: m };
|
|
7341
7341
|
};
|
|
7342
|
-
Object.defineProperty(
|
|
7342
|
+
Object.defineProperty(qe, "__esModule", { value: !0 }), qe.useWebSocket = void 0;
|
|
7343
7343
|
var s = ve, u = _l, b = sa(), d = as(), l = ts(), i = n(is()), r = wi(), o = function(m, g, p) {
|
|
7344
7344
|
g === void 0 && (g = b.DEFAULT_OPTIONS), p === void 0 && (p = !0);
|
|
7345
7345
|
var f = (0, s.useState)(null), y = f[0], _ = f[1], c = (0, s.useState)({}), U = c[0], C = c[1], v = (0, s.useMemo)(function() {
|
|
@@ -7351,49 +7351,49 @@ function Fi() {
|
|
|
7351
7351
|
}
|
|
7352
7352
|
return null;
|
|
7353
7353
|
}, [y, g.disableJson]), T = (0, s.useRef)(null), h = (0, s.useRef)(null), D = (0, s.useRef)(function() {
|
|
7354
|
-
}), H = (0, s.useRef)(0), k = (0, s.useRef)(Date.now()), S = (0, s.useRef)([]),
|
|
7355
|
-
|
|
7356
|
-
var R = T.current && U[T.current] !== void 0 ? U[T.current] : m !== null && p === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, L = g.queryParams ? JSON.stringify(g.queryParams) : null, G = (0, s.useCallback)(function(
|
|
7354
|
+
}), H = (0, s.useRef)(0), k = (0, s.useRef)(Date.now()), S = (0, s.useRef)([]), F = (0, s.useRef)(null), A = (0, s.useRef)(g);
|
|
7355
|
+
A.current = g;
|
|
7356
|
+
var R = T.current && U[T.current] !== void 0 ? U[T.current] : m !== null && p === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, L = g.queryParams ? JSON.stringify(g.queryParams) : null, G = (0, s.useCallback)(function(z, B) {
|
|
7357
7357
|
var N;
|
|
7358
|
-
if (
|
|
7358
|
+
if (B === void 0 && (B = !0), b.isEventSourceSupported && h.current instanceof EventSource) {
|
|
7359
7359
|
console.warn("Unable to send a message from an eventSource");
|
|
7360
7360
|
return;
|
|
7361
7361
|
}
|
|
7362
|
-
((N = h.current) === null || N === void 0 ? void 0 : N.readyState) === b.ReadyState.OPEN ? ((0, r.assertIsWebSocket)(h.current,
|
|
7363
|
-
}, []), I = (0, s.useCallback)(function(
|
|
7364
|
-
|
|
7362
|
+
((N = h.current) === null || N === void 0 ? void 0 : N.readyState) === b.ReadyState.OPEN ? ((0, r.assertIsWebSocket)(h.current, A.current.skipAssert), h.current.send(z)) : B && S.current.push(z);
|
|
7363
|
+
}, []), I = (0, s.useCallback)(function(z, B) {
|
|
7364
|
+
B === void 0 && (B = !0), G(JSON.stringify(z), B);
|
|
7365
7365
|
}, [G]), W = (0, s.useCallback)(function() {
|
|
7366
|
-
return
|
|
7366
|
+
return A.current.share !== !0 || b.isEventSourceSupported && h.current instanceof EventSource ? h.current : (F.current === null && h.current && ((0, r.assertIsWebSocket)(h.current, A.current.skipAssert), F.current = (0, i.default)(h.current, D)), F.current);
|
|
7367
7367
|
}, []);
|
|
7368
7368
|
return (0, s.useEffect)(function() {
|
|
7369
7369
|
if (m !== null && p === !0) {
|
|
7370
|
-
var
|
|
7370
|
+
var z, B = !1, N = !0, E = function() {
|
|
7371
7371
|
return t(void 0, void 0, void 0, function() {
|
|
7372
|
-
var
|
|
7373
|
-
return a(this, function(
|
|
7374
|
-
switch (
|
|
7372
|
+
var w, P, ae;
|
|
7373
|
+
return a(this, function(te) {
|
|
7374
|
+
switch (te.label) {
|
|
7375
7375
|
case 0:
|
|
7376
|
-
return
|
|
7376
|
+
return w = T, [4, (0, l.getUrl)(m, A)];
|
|
7377
7377
|
case 1:
|
|
7378
|
-
return
|
|
7378
|
+
return w.current = te.sent(), T.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), T.current = "ABORTED", (0, u.flushSync)(function() {
|
|
7379
7379
|
return C(function(le) {
|
|
7380
7380
|
return e(e({}, le), { ABORTED: b.ReadyState.CLOSED });
|
|
7381
7381
|
});
|
|
7382
7382
|
}), [
|
|
7383
7383
|
2
|
|
7384
7384
|
/*return*/
|
|
7385
|
-
]) : (
|
|
7386
|
-
|
|
7385
|
+
]) : (P = function(le) {
|
|
7386
|
+
B || (0, u.flushSync)(function() {
|
|
7387
7387
|
return _(le);
|
|
7388
7388
|
});
|
|
7389
|
-
},
|
|
7390
|
-
|
|
7391
|
-
return C(function(
|
|
7392
|
-
var
|
|
7393
|
-
return e(e({},
|
|
7389
|
+
}, ae = function(le) {
|
|
7390
|
+
B || (0, u.flushSync)(function() {
|
|
7391
|
+
return C(function(O) {
|
|
7392
|
+
var J;
|
|
7393
|
+
return e(e({}, O), T.current && (J = {}, J[T.current] = le, J));
|
|
7394
7394
|
});
|
|
7395
7395
|
});
|
|
7396
|
-
}, N && (
|
|
7396
|
+
}, N && (z = (0, d.createOrJoinSocket)(h, T.current, ae, A, P, D, H, k, G)), [
|
|
7397
7397
|
2
|
|
7398
7398
|
/*return*/
|
|
7399
7399
|
]);
|
|
@@ -7402,17 +7402,17 @@ function Fi() {
|
|
|
7402
7402
|
});
|
|
7403
7403
|
};
|
|
7404
7404
|
return D.current = function() {
|
|
7405
|
-
|
|
7405
|
+
B || (F.current && (F.current = null), z?.(), E());
|
|
7406
7406
|
}, E(), function() {
|
|
7407
|
-
|
|
7407
|
+
B = !0, N = !1, F.current && (F.current = null), z?.(), _(null);
|
|
7408
7408
|
};
|
|
7409
|
-
} else (m === null || p === !1) && (H.current = 0, C(function(
|
|
7410
|
-
var
|
|
7411
|
-
return e(e({},
|
|
7409
|
+
} else (m === null || p === !1) && (H.current = 0, C(function(w) {
|
|
7410
|
+
var P;
|
|
7411
|
+
return e(e({}, w), T.current && (P = {}, P[T.current] = b.ReadyState.CLOSED, P));
|
|
7412
7412
|
}));
|
|
7413
7413
|
}, [m, p, L, G]), (0, s.useEffect)(function() {
|
|
7414
|
-
R === b.ReadyState.OPEN && S.current.splice(0).forEach(function(
|
|
7415
|
-
G(
|
|
7414
|
+
R === b.ReadyState.OPEN && S.current.splice(0).forEach(function(z) {
|
|
7415
|
+
G(z);
|
|
7416
7416
|
});
|
|
7417
7417
|
}, [R]), {
|
|
7418
7418
|
sendMessage: G,
|
|
@@ -7423,7 +7423,7 @@ function Fi() {
|
|
|
7423
7423
|
getWebSocket: W
|
|
7424
7424
|
};
|
|
7425
7425
|
};
|
|
7426
|
-
return
|
|
7426
|
+
return qe.useWebSocket = o, qe;
|
|
7427
7427
|
}
|
|
7428
7428
|
var Ga = {}, Vn;
|
|
7429
7429
|
function ns() {
|
|
@@ -7548,7 +7548,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7548
7548
|
isInGameBox: n = !1,
|
|
7549
7549
|
currentGamePlatform: s = ""
|
|
7550
7550
|
}) => {
|
|
7551
|
-
const { store: u, lng: b } = re(), { isReady: d, setAsReady: l, isPending: i, setAsPending: r } = dr(), o =
|
|
7551
|
+
const { store: u, lng: b } = re(), { isReady: d, setAsReady: l, isPending: i, setAsPending: r } = dr(), o = Je(b), { mutateAsync: m } = xs();
|
|
7552
7552
|
return !e || !t || !a ? { handleTransferInGame: () => {
|
|
7553
7553
|
} } : { handleTransferInGame: async () => {
|
|
7554
7554
|
n && await m({
|
|
@@ -7617,7 +7617,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7617
7617
|
});
|
|
7618
7618
|
}, gs = ({ options: e } = {}) => {
|
|
7619
7619
|
const { withdrawMonthCardApi: t } = xr(), a = ya();
|
|
7620
|
-
return
|
|
7620
|
+
return ee({
|
|
7621
7621
|
mutationKey: ["withdrawMonthCard"],
|
|
7622
7622
|
mutationFn: t,
|
|
7623
7623
|
onSuccess: (n, s, u) => {
|
|
@@ -7682,70 +7682,70 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7682
7682
|
};
|
|
7683
7683
|
}, ds = ({ options: e } = {}) => {
|
|
7684
7684
|
const { userLoginApi: t } = oe();
|
|
7685
|
-
return
|
|
7685
|
+
return ee({
|
|
7686
7686
|
mutationKey: ["userLogin"],
|
|
7687
7687
|
mutationFn: async (a) => t(a),
|
|
7688
7688
|
...e
|
|
7689
7689
|
});
|
|
7690
7690
|
}, cs = ({ options: e } = {}) => {
|
|
7691
7691
|
const { userLogoutApi: t } = oe();
|
|
7692
|
-
return
|
|
7692
|
+
return ee({
|
|
7693
7693
|
mutationKey: ["userLogout"],
|
|
7694
7694
|
mutationFn: async () => t(),
|
|
7695
7695
|
...e
|
|
7696
7696
|
});
|
|
7697
7697
|
}, fs = ({ options: e } = {}) => {
|
|
7698
7698
|
const { userSignUpApi: t } = oe();
|
|
7699
|
-
return
|
|
7699
|
+
return ee({
|
|
7700
7700
|
mutationKey: ["userSignUp"],
|
|
7701
7701
|
mutationFn: async (a) => t(a),
|
|
7702
7702
|
...e
|
|
7703
7703
|
});
|
|
7704
7704
|
}, _s = ({ options: e } = {}) => {
|
|
7705
7705
|
const { addOrRemoveFavoriteGameApi: t } = oe();
|
|
7706
|
-
return
|
|
7706
|
+
return ee({
|
|
7707
7707
|
mutationKey: ["toggleFavoriteGame"],
|
|
7708
7708
|
mutationFn: async (a) => t(a),
|
|
7709
7709
|
...e
|
|
7710
7710
|
});
|
|
7711
7711
|
}, ys = ({ options: e } = {}) => {
|
|
7712
7712
|
const { updateUserInfoApi: t } = oe();
|
|
7713
|
-
return
|
|
7713
|
+
return ee({
|
|
7714
7714
|
mutationKey: ["updateUserInfo"],
|
|
7715
7715
|
mutationFn: async (a) => t(a),
|
|
7716
7716
|
...e
|
|
7717
7717
|
});
|
|
7718
7718
|
}, bs = ({ options: e } = {}) => {
|
|
7719
7719
|
const { updateMemberInfoApi: t } = oe();
|
|
7720
|
-
return
|
|
7720
|
+
return ee({
|
|
7721
7721
|
mutationKey: ["updateMemberInfo"],
|
|
7722
7722
|
mutationFn: async (a) => t(a),
|
|
7723
7723
|
...e
|
|
7724
7724
|
});
|
|
7725
7725
|
}, Us = ({ options: e } = {}) => {
|
|
7726
7726
|
const { resetUserPasswordApi: t } = oe();
|
|
7727
|
-
return
|
|
7727
|
+
return ee({
|
|
7728
7728
|
mutationKey: ["resetUserPassword"],
|
|
7729
7729
|
mutationFn: async (a) => t(a),
|
|
7730
7730
|
...e
|
|
7731
7731
|
});
|
|
7732
7732
|
}, Cs = ({ options: e } = {}) => {
|
|
7733
7733
|
const { memberInitSetApi: t } = oe();
|
|
7734
|
-
return
|
|
7734
|
+
return ee({
|
|
7735
7735
|
mutationKey: ["memberInitSet"],
|
|
7736
7736
|
mutationFn: async (a) => t(a),
|
|
7737
7737
|
...e
|
|
7738
7738
|
});
|
|
7739
7739
|
}, vs = ({ options: e } = {}) => {
|
|
7740
7740
|
const { setUserTransactionPasswordApi: t } = oe();
|
|
7741
|
-
return
|
|
7741
|
+
return ee({
|
|
7742
7742
|
mutationKey: ["setUserTransactionPassword"],
|
|
7743
7743
|
mutationFn: async (a) => t(a),
|
|
7744
7744
|
...e
|
|
7745
7745
|
});
|
|
7746
7746
|
}, hs = ({ options: e } = {}) => {
|
|
7747
7747
|
const { resetUserTransactionPasswordApi: t } = oe();
|
|
7748
|
-
return
|
|
7748
|
+
return ee({
|
|
7749
7749
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7750
7750
|
mutationFn: async (a) => t(a),
|
|
7751
7751
|
...e
|
|
@@ -7760,14 +7760,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7760
7760
|
});
|
|
7761
7761
|
}, ks = ({ options: e } = {}) => {
|
|
7762
7762
|
const { userBindBankApi: t } = oe();
|
|
7763
|
-
return
|
|
7763
|
+
return ee({
|
|
7764
7764
|
mutationKey: ["userBindBank"],
|
|
7765
7765
|
mutationFn: async (a) => t({ formData: a }),
|
|
7766
7766
|
...e
|
|
7767
7767
|
});
|
|
7768
7768
|
}, xs = ({ options: e } = {}) => {
|
|
7769
7769
|
const { transferInGameApi: t } = oe();
|
|
7770
|
-
return
|
|
7770
|
+
return ee({
|
|
7771
7771
|
mutationKey: ["transferInGame"],
|
|
7772
7772
|
mutationFn: async (a) => t(a),
|
|
7773
7773
|
retry: !1,
|
|
@@ -7775,7 +7775,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7775
7775
|
});
|
|
7776
7776
|
}, Du = ({ options: e } = {}) => {
|
|
7777
7777
|
const { currency: t } = re(), { pointTransferApi: a } = oe();
|
|
7778
|
-
return
|
|
7778
|
+
return ee({
|
|
7779
7779
|
mutationKey: ["pointTransfer"],
|
|
7780
7780
|
mutationFn: async (n) => a({
|
|
7781
7781
|
...n,
|
|
@@ -7798,7 +7798,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7798
7798
|
});
|
|
7799
7799
|
}, Lu = ({ options: e } = {}) => {
|
|
7800
7800
|
const t = ya(), { abandonPointsApi: a } = oe();
|
|
7801
|
-
return
|
|
7801
|
+
return ee({
|
|
7802
7802
|
mutationKey: ["abandonPoint"],
|
|
7803
7803
|
mutationFn: async (n) => a({
|
|
7804
7804
|
...n
|
|
@@ -7810,21 +7810,21 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7810
7810
|
});
|
|
7811
7811
|
}, Sr = ({ options: e } = {}) => {
|
|
7812
7812
|
const { lineLoginApi: t } = oe();
|
|
7813
|
-
return
|
|
7813
|
+
return ee({
|
|
7814
7814
|
mutationKey: ["lineLogin"],
|
|
7815
7815
|
mutationFn: async (a) => t(a),
|
|
7816
7816
|
...e
|
|
7817
7817
|
});
|
|
7818
7818
|
}, Ss = ({ options: e } = {}) => {
|
|
7819
7819
|
const { lineLogin2Api: t } = oe();
|
|
7820
|
-
return
|
|
7820
|
+
return ee({
|
|
7821
7821
|
mutationKey: ["lineLogin"],
|
|
7822
7822
|
mutationFn: async (a) => t(a),
|
|
7823
7823
|
...e
|
|
7824
7824
|
});
|
|
7825
7825
|
}, Gu = ({ options: e } = {}) => {
|
|
7826
7826
|
const { machineLoginApi: t } = oe();
|
|
7827
|
-
return
|
|
7827
|
+
return ee({
|
|
7828
7828
|
mutationKey: ["machineLogin"],
|
|
7829
7829
|
mutationFn: async (a) => t(a),
|
|
7830
7830
|
...e
|
|
@@ -7838,70 +7838,70 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7838
7838
|
});
|
|
7839
7839
|
}, Mu = ({ options: e } = {}) => {
|
|
7840
7840
|
const { currency: t } = re(), { memberTransferApi: a } = oe();
|
|
7841
|
-
return
|
|
7841
|
+
return ee({
|
|
7842
7842
|
mutationKey: ["memberTransfer"],
|
|
7843
7843
|
mutationFn: async (n) => a({ ...n, currency: t }),
|
|
7844
7844
|
...e
|
|
7845
7845
|
});
|
|
7846
7846
|
}, Ru = ({ options: e } = {}) => {
|
|
7847
7847
|
const { currency: t } = re(), { checkMemberTransferApi: a } = oe();
|
|
7848
|
-
return
|
|
7848
|
+
return ee({
|
|
7849
7849
|
mutationKey: ["checkMemberTransfer"],
|
|
7850
7850
|
mutationFn: async (n) => a({ ...n, currency: t }),
|
|
7851
7851
|
...e
|
|
7852
7852
|
});
|
|
7853
7853
|
}, Pu = ({ options: e } = {}) => {
|
|
7854
7854
|
const { mobileLoginApi: t } = oe();
|
|
7855
|
-
return
|
|
7855
|
+
return ee({
|
|
7856
7856
|
mutationKey: ["mobileLogin"],
|
|
7857
7857
|
mutationFn: async (a) => t(a),
|
|
7858
7858
|
...e
|
|
7859
7859
|
});
|
|
7860
7860
|
}, wu = ({ options: e } = {}) => {
|
|
7861
7861
|
const { mobileLoginApiV2: t } = oe();
|
|
7862
|
-
return
|
|
7862
|
+
return ee({
|
|
7863
7863
|
mutationKey: ["mobileLoginV2"],
|
|
7864
7864
|
mutationFn: async (a) => t(a),
|
|
7865
7865
|
...e
|
|
7866
7866
|
});
|
|
7867
7867
|
}, Fu = ({ options: e } = {}) => {
|
|
7868
7868
|
const { mobileRegisterApi: t } = oe();
|
|
7869
|
-
return
|
|
7869
|
+
return ee({
|
|
7870
7870
|
mutationKey: ["mobileRegister"],
|
|
7871
7871
|
mutationFn: async (a) => t(a),
|
|
7872
7872
|
...e
|
|
7873
7873
|
});
|
|
7874
7874
|
}, Au = ({ options: e } = {}) => {
|
|
7875
7875
|
const { mobilePasswordApi: t } = oe();
|
|
7876
|
-
return
|
|
7876
|
+
return ee({
|
|
7877
7877
|
mutationKey: ["mobileByPassword"],
|
|
7878
7878
|
mutationFn: async (a) => t(a),
|
|
7879
7879
|
...e
|
|
7880
7880
|
});
|
|
7881
7881
|
}, Ou = ({ options: e } = {}) => {
|
|
7882
7882
|
const { forgotPasswordApi: t } = oe();
|
|
7883
|
-
return
|
|
7883
|
+
return ee({
|
|
7884
7884
|
mutationKey: ["forgotPassword"],
|
|
7885
7885
|
mutationFn: async (a) => t(a),
|
|
7886
7886
|
...e
|
|
7887
7887
|
});
|
|
7888
7888
|
}, Bu = ({ options: e } = {}) => {
|
|
7889
7889
|
const { checkMobileApi: t } = oe();
|
|
7890
|
-
return
|
|
7890
|
+
return ee({
|
|
7891
7891
|
mutationKey: ["checkMobile"],
|
|
7892
7892
|
mutationFn: async (a) => t(a),
|
|
7893
7893
|
...e
|
|
7894
7894
|
});
|
|
7895
7895
|
}, Ds = ({ options: e } = {}) => {
|
|
7896
7896
|
const { bindAccountApi: t } = oe();
|
|
7897
|
-
return
|
|
7897
|
+
return ee({
|
|
7898
7898
|
mutationKey: ["bindAccount"],
|
|
7899
7899
|
mutationFn: async (a) => t(a),
|
|
7900
7900
|
...e
|
|
7901
7901
|
});
|
|
7902
7902
|
}, Hu = ({ options: e } = {}) => {
|
|
7903
7903
|
const { sendMobileVerifyCodeApi: t } = oe();
|
|
7904
|
-
return
|
|
7904
|
+
return ee({
|
|
7905
7905
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7906
7906
|
mutationFn: async (a) => t(a),
|
|
7907
7907
|
...e
|
|
@@ -7922,14 +7922,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7922
7922
|
});
|
|
7923
7923
|
}, zu = ({ options: e } = {}) => {
|
|
7924
7924
|
const { createMachineApi: t } = oe();
|
|
7925
|
-
return
|
|
7925
|
+
return ee({
|
|
7926
7926
|
mutationKey: ["createMachine"],
|
|
7927
7927
|
mutationFn: async (a) => t({ formData: a }),
|
|
7928
7928
|
...e
|
|
7929
7929
|
});
|
|
7930
7930
|
}, Vu = ({ options: e } = {}) => {
|
|
7931
7931
|
const { verifyResetActionApi: t } = oe();
|
|
7932
|
-
return
|
|
7932
|
+
return ee({
|
|
7933
7933
|
mutationKey: ["verifyResetAction"],
|
|
7934
7934
|
mutationFn: async (a) => t(a),
|
|
7935
7935
|
...e
|
|
@@ -7972,7 +7972,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7972
7972
|
});
|
|
7973
7973
|
}, qu = ({ options: e } = {}) => {
|
|
7974
7974
|
const { updateUserAvatarApi: t } = oe();
|
|
7975
|
-
return
|
|
7975
|
+
return ee({
|
|
7976
7976
|
mutationKey: ["updateAvatar"],
|
|
7977
7977
|
mutationFn: async (a) => t(a),
|
|
7978
7978
|
...e
|
|
@@ -8041,7 +8041,9 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8041
8041
|
REMOTE_ON: "remote_on"
|
|
8042
8042
|
}, qn = (e) => {
|
|
8043
8043
|
typeof window < "u" && window.chrome?.webview && window.chrome.webview.postMessage(JSON.stringify({ action: e }));
|
|
8044
|
-
}, $n = (e, t) => Array.isArray(e) &&
|
|
8044
|
+
}, $n = (e, t) => Array.isArray(e) && t != null && String(t) !== "" && e.some(
|
|
8045
|
+
(a) => String(a).toLowerCase() === String(t).toLowerCase()
|
|
8046
|
+
), Ns = 3e4, Ls = ({
|
|
8045
8047
|
maintainList: e,
|
|
8046
8048
|
isInGameBox: t,
|
|
8047
8049
|
currentGamePlatform: a
|
|
@@ -8070,40 +8072,40 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8070
8072
|
disabledLineAutoRegister: b = !1,
|
|
8071
8073
|
navigate: d = null
|
|
8072
8074
|
}) => {
|
|
8073
|
-
const { store: l, lng: i } = re(), r = ya(), { isReady: o, setAsReady: m, isPending: g, setAsPending: p } = dr(), f =
|
|
8075
|
+
const { store: l, lng: i } = re(), r = ya(), { isReady: o, setAsReady: m, isPending: g, setAsPending: p } = dr(), f = Je(i), y = se(!1), _ = se(t), c = j(n, "uid", null), U = j(n, "cagent_uid", null);
|
|
8074
8076
|
j(n, "testFunction", 0);
|
|
8075
|
-
const C = new URLSearchParams(window.location.search),
|
|
8077
|
+
const C = j(n, "machine_number", null), v = new URLSearchParams(window.location.search), T = j(
|
|
8076
8078
|
s,
|
|
8077
8079
|
"enableTransferInGaming",
|
|
8078
8080
|
!1
|
|
8079
|
-
), { mutateAsync:
|
|
8081
|
+
), { mutateAsync: h } = Sr({
|
|
8080
8082
|
options: {
|
|
8081
|
-
onSuccess: (
|
|
8082
|
-
_.current.onLineLogin?.(
|
|
8083
|
+
onSuccess: (B) => {
|
|
8084
|
+
_.current.onLineLogin?.(B);
|
|
8083
8085
|
},
|
|
8084
8086
|
retry: !1
|
|
8085
8087
|
}
|
|
8086
|
-
}), { mutateAsync:
|
|
8088
|
+
}), { mutateAsync: D } = Ss({
|
|
8087
8089
|
options: {
|
|
8088
|
-
onSuccess: (
|
|
8089
|
-
_.current.onLineLogin?.(
|
|
8090
|
+
onSuccess: (B) => {
|
|
8091
|
+
_.current.onLineLogin?.(B);
|
|
8090
8092
|
},
|
|
8091
|
-
onError: (
|
|
8092
|
-
b ||
|
|
8093
|
+
onError: (B, N) => {
|
|
8094
|
+
b || h(N);
|
|
8093
8095
|
}
|
|
8094
8096
|
}
|
|
8095
|
-
}), { handleTransferInGame:
|
|
8096
|
-
enable:
|
|
8097
|
+
}), { handleTransferInGame: H } = ms({
|
|
8098
|
+
enable: T,
|
|
8097
8099
|
isTestFunction: !0,
|
|
8098
8100
|
isTransferMode: j(s, "isTransferMode", !1),
|
|
8099
8101
|
isInGameBox: j(s, "isInGameBox", !1),
|
|
8100
8102
|
currentGamePlatform: j(s, "currentGamePlatform", "")
|
|
8101
8103
|
}), {
|
|
8102
|
-
sendMessage:
|
|
8104
|
+
sendMessage: k,
|
|
8103
8105
|
// 發送普通訊息
|
|
8104
|
-
sendJsonMessage:
|
|
8106
|
+
sendJsonMessage: S,
|
|
8105
8107
|
// 發送 JSON 訊息
|
|
8106
|
-
lastMessage:
|
|
8108
|
+
lastMessage: F,
|
|
8107
8109
|
// 最後接收到的訊息
|
|
8108
8110
|
// lastJsonMessage, // 最後接收到的 JSON 訊息
|
|
8109
8111
|
readyState: A
|
|
@@ -8115,98 +8117,98 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8115
8117
|
reconnectAttempts: 9999,
|
|
8116
8118
|
reconnectInterval: 1e3,
|
|
8117
8119
|
...a
|
|
8118
|
-
}),
|
|
8120
|
+
}), R = ka(() => {
|
|
8119
8121
|
try {
|
|
8120
|
-
return JSON.parse(
|
|
8122
|
+
return JSON.parse(F?.data);
|
|
8121
8123
|
} catch {
|
|
8122
8124
|
return null;
|
|
8123
8125
|
}
|
|
8124
|
-
}, [
|
|
8125
|
-
|
|
8126
|
-
const
|
|
8127
|
-
() =>
|
|
8126
|
+
}, [F]);
|
|
8127
|
+
fe(() => {
|
|
8128
|
+
const B = setInterval(
|
|
8129
|
+
() => k("ping"),
|
|
8128
8130
|
Ns
|
|
8129
8131
|
);
|
|
8130
|
-
return () => clearInterval(
|
|
8131
|
-
}, [
|
|
8132
|
-
const
|
|
8133
|
-
(
|
|
8132
|
+
return () => clearInterval(B);
|
|
8133
|
+
}, [k]);
|
|
8134
|
+
const L = M(
|
|
8135
|
+
(B, N) => {
|
|
8134
8136
|
u && l.dispatch({
|
|
8135
8137
|
type: "ui/openNotificationModal",
|
|
8136
8138
|
payload: {
|
|
8137
8139
|
title: Ka[f] || "System Prompt",
|
|
8138
|
-
content:
|
|
8140
|
+
content: B,
|
|
8139
8141
|
type: "warning",
|
|
8140
|
-
props:
|
|
8142
|
+
props: N
|
|
8141
8143
|
}
|
|
8142
8144
|
});
|
|
8143
8145
|
},
|
|
8144
8146
|
[u, l, f]
|
|
8145
8147
|
);
|
|
8146
|
-
|
|
8148
|
+
fe(() => {
|
|
8147
8149
|
_.current = t;
|
|
8148
8150
|
}, [t]);
|
|
8149
|
-
const
|
|
8151
|
+
const G = se(null), I = (B) => {
|
|
8150
8152
|
const {
|
|
8151
|
-
onDeposit:
|
|
8152
|
-
onTransCode:
|
|
8153
|
-
onError:
|
|
8154
|
-
onUpdateMember:
|
|
8155
|
-
onMaintainNotice:
|
|
8156
|
-
onMaintainNoticeMember:
|
|
8157
|
-
onTransferInGame:
|
|
8158
|
-
onCashRegisterLimit:
|
|
8159
|
-
onLineLogin:
|
|
8160
|
-
onMonthlyCardIssuePoint:
|
|
8161
|
-
onEventClaimable:
|
|
8162
|
-
} = _.current,
|
|
8163
|
-
memberInfoUid: j(
|
|
8164
|
-
data: j(
|
|
8165
|
-
memo: j(
|
|
8166
|
-
amount: j(
|
|
8167
|
-
limitAmount: j(
|
|
8168
|
-
},
|
|
8169
|
-
switch (
|
|
8153
|
+
onDeposit: N,
|
|
8154
|
+
onTransCode: E,
|
|
8155
|
+
onError: w,
|
|
8156
|
+
onUpdateMember: P,
|
|
8157
|
+
onMaintainNotice: ae,
|
|
8158
|
+
onMaintainNoticeMember: te,
|
|
8159
|
+
onTransferInGame: le,
|
|
8160
|
+
onCashRegisterLimit: O,
|
|
8161
|
+
onLineLogin: J,
|
|
8162
|
+
onMonthlyCardIssuePoint: Z,
|
|
8163
|
+
onEventClaimable: Q
|
|
8164
|
+
} = _.current, X = j(B, "type", ""), q = {
|
|
8165
|
+
memberInfoUid: j(B, "member_info_uid", null),
|
|
8166
|
+
data: j(B, "data", null),
|
|
8167
|
+
memo: j(B, "memo", null),
|
|
8168
|
+
amount: j(B, "amount", null),
|
|
8169
|
+
limitAmount: j(B, "limit_amount", null)
|
|
8170
|
+
}, ue = Number(q.memberInfoUid) === c, Ce = q.data, be = q.amount, Ye = q.limitAmount, he = v.get("mac") || Ci.get("machine_mac_address") || "", Ge = j(B, "data.line_id", null), Xe = j(B, "data.line_name", null), Me = j(B, "member_info_uid", null);
|
|
8171
|
+
switch (X) {
|
|
8170
8172
|
case ye.DEPOSIT:
|
|
8171
|
-
|
|
8173
|
+
ue && (H(), N?.(q));
|
|
8172
8174
|
break;
|
|
8173
8175
|
case ye.TRANS_CODE:
|
|
8174
|
-
|
|
8176
|
+
E?.(q);
|
|
8175
8177
|
break;
|
|
8176
8178
|
case ye.ERROR:
|
|
8177
|
-
if (
|
|
8178
|
-
const
|
|
8179
|
-
|
|
8180
|
-
notificationType:
|
|
8181
|
-
}),
|
|
8179
|
+
if (ue) {
|
|
8180
|
+
const de = j(B, "open_game_modal", 0) === 1;
|
|
8181
|
+
L(Ce, {
|
|
8182
|
+
notificationType: de ? "gamingNotice" : void 0
|
|
8183
|
+
}), w?.(q);
|
|
8182
8184
|
}
|
|
8183
8185
|
break;
|
|
8184
8186
|
case ye.UPDATE_MEMBER:
|
|
8185
8187
|
c && (r.invalidateQueries({
|
|
8186
8188
|
queryKey: ["getMemberInfo"]
|
|
8187
|
-
}),
|
|
8189
|
+
}), P?.(q));
|
|
8188
8190
|
break;
|
|
8189
8191
|
case ye.MAINTAIN_NOTICE:
|
|
8190
|
-
|
|
8192
|
+
L(Ce, {
|
|
8191
8193
|
notificationType: "maintainNotice"
|
|
8192
|
-
}),
|
|
8194
|
+
}), ae?.(q);
|
|
8193
8195
|
break;
|
|
8194
8196
|
case ye.MAINTAIN_NOTICE_MEMBER: {
|
|
8195
|
-
const
|
|
8196
|
-
if (
|
|
8197
|
-
String(U) === String(
|
|
8197
|
+
const de = q.data?.cagent_uid ?? null;
|
|
8198
|
+
if (de != null) {
|
|
8199
|
+
String(U) === String(de) && (L(q.data?.msg, { rawMessage: !0 }), te?.(q), setTimeout(() => {
|
|
8198
8200
|
d?.("/");
|
|
8199
8201
|
}, 5e3));
|
|
8200
8202
|
return;
|
|
8201
|
-
} else if (
|
|
8202
|
-
const
|
|
8203
|
-
if (
|
|
8204
|
-
Array.isArray(
|
|
8203
|
+
} else if (ue) {
|
|
8204
|
+
const ke = l.getState()?.game?.currentGameData?.gameUid ?? null, He = q.data?.game_id;
|
|
8205
|
+
if (He != null) {
|
|
8206
|
+
Array.isArray(He) && He.some((ze) => String(ze) === String(ke)) && (L(q.data?.msg, { rawMessage: !0 }), te?.(q), setTimeout(() => {
|
|
8205
8207
|
d?.("/");
|
|
8206
8208
|
}, 5e3));
|
|
8207
8209
|
return;
|
|
8208
8210
|
}
|
|
8209
|
-
|
|
8211
|
+
L(Ce), te?.(q), setTimeout(() => {
|
|
8210
8212
|
window.location.reload();
|
|
8211
8213
|
}, 5e4);
|
|
8212
8214
|
}
|
|
@@ -8217,66 +8219,66 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8217
8219
|
break;
|
|
8218
8220
|
case ye.TRANSFER_IN_GAME:
|
|
8219
8221
|
case ye.CHECK_REQUEST:
|
|
8220
|
-
if (
|
|
8221
|
-
const { request_id:
|
|
8222
|
+
if (ue && T) {
|
|
8223
|
+
const { request_id: de, amount: ke, platform: He, status: ze } = j(q, "data", {}) || {}, xe = localStorage.getItem(
|
|
8222
8224
|
"transfer_in_game_request_id"
|
|
8223
8225
|
);
|
|
8224
|
-
if (
|
|
8225
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
8226
|
+
if (ze === "pending") {
|
|
8227
|
+
localStorage.setItem("transfer_in_game_request_id", de);
|
|
8226
8228
|
return;
|
|
8227
|
-
} else if (
|
|
8228
|
-
if (
|
|
8229
|
-
|
|
8229
|
+
} else if (xe && xe === de) {
|
|
8230
|
+
if (ze === "rollback") {
|
|
8231
|
+
H();
|
|
8230
8232
|
return;
|
|
8231
8233
|
}
|
|
8232
8234
|
localStorage.removeItem("transfer_in_game_request_id"), l.dispatch({
|
|
8233
8235
|
type: "ui/showToast",
|
|
8234
8236
|
payload: {
|
|
8235
8237
|
title: Ka[f] || "System Prompt",
|
|
8236
|
-
description: `您於${
|
|
8238
|
+
description: `您於${He}存入的${ke}元已經處理完成了,請確認遊戲餘額`,
|
|
8237
8239
|
status: "success"
|
|
8238
8240
|
}
|
|
8239
8241
|
}), m();
|
|
8240
8242
|
}
|
|
8241
|
-
|
|
8243
|
+
le?.(q);
|
|
8242
8244
|
}
|
|
8243
8245
|
break;
|
|
8244
8246
|
case ye.CASH_REGISTER_LIMIT:
|
|
8245
|
-
|
|
8247
|
+
L(Ce, {
|
|
8246
8248
|
notificationType: "cashRegisterLimit",
|
|
8247
|
-
amount:
|
|
8248
|
-
limitAmount:
|
|
8249
|
-
}),
|
|
8249
|
+
amount: be,
|
|
8250
|
+
limitAmount: Ye
|
|
8251
|
+
}), O?.(q);
|
|
8250
8252
|
break;
|
|
8251
8253
|
case ye.UPDATE_ONLY_ONE_MEMBER:
|
|
8252
|
-
|
|
8254
|
+
ue && (r.invalidateQueries({
|
|
8253
8255
|
queryKey: ["getMemberInfo"]
|
|
8254
|
-
}),
|
|
8256
|
+
}), P?.(q));
|
|
8255
8257
|
break;
|
|
8256
8258
|
case ye.GAME_MAINTAIN: {
|
|
8257
|
-
const
|
|
8258
|
-
maintainList:
|
|
8259
|
+
const de = q.data, { show: ke } = Ls({
|
|
8260
|
+
maintainList: de,
|
|
8259
8261
|
// 直接用當前路由判斷是否在 gamebox(不依賴 transferInGamingConfig,
|
|
8260
8262
|
// 因為不是每隻遊戲都會帶入該設定)
|
|
8261
8263
|
isInGameBox: window.location.pathname.includes("gamebox"),
|
|
8262
8264
|
currentGamePlatform: l.getState()?.game?.currentGameData?.gamePlatform ?? null
|
|
8263
8265
|
});
|
|
8264
|
-
|
|
8266
|
+
ke && L(Ce, {
|
|
8265
8267
|
notificationType: "gameMaintain"
|
|
8266
8268
|
});
|
|
8267
8269
|
break;
|
|
8268
8270
|
}
|
|
8269
8271
|
case ye.LINE_LOGIN:
|
|
8270
|
-
|
|
8271
|
-
line_id:
|
|
8272
|
-
line_name:
|
|
8272
|
+
Me === he && h({
|
|
8273
|
+
line_id: Ge,
|
|
8274
|
+
line_name: Xe
|
|
8273
8275
|
});
|
|
8274
8276
|
break;
|
|
8275
8277
|
case ye.UPDATE_EVENT_WALLET:
|
|
8276
|
-
|
|
8278
|
+
ue && (r.invalidateQueries({ queryKey: ["getEventWalletList"] }), r.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
|
|
8277
8279
|
return;
|
|
8278
8280
|
case ye.MONTHLY_CARD_ISSUE_POINT:
|
|
8279
|
-
|
|
8281
|
+
ue && (r.invalidateQueries({ queryKey: Ai }), Z?.(q));
|
|
8280
8282
|
return;
|
|
8281
8283
|
/**
|
|
8282
8284
|
* event_claimable:活動可領取推播
|
|
@@ -8286,50 +8288,50 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8286
8288
|
* 註:與其他 event/member 推播一致,僅對「當前會員」生效(isForMember)。
|
|
8287
8289
|
*/
|
|
8288
8290
|
case ye.EVENT_CLAIMABLE:
|
|
8289
|
-
if (
|
|
8291
|
+
if (ue) {
|
|
8290
8292
|
r.invalidateQueries({ queryKey: ["checkEventStatus"] });
|
|
8291
|
-
const
|
|
8292
|
-
(Array.isArray(
|
|
8293
|
+
const de = q.data?.event_uid;
|
|
8294
|
+
(Array.isArray(de) ? de.length > 0 : de != null) && Q?.(q);
|
|
8293
8295
|
}
|
|
8294
8296
|
return;
|
|
8295
8297
|
/**
|
|
8296
8298
|
* remote_off:遠端關鎖。
|
|
8297
|
-
* 訊息格式:{ type:'remote_off', member_info_uid:["
|
|
8298
|
-
* 本機
|
|
8299
|
+
* 訊息格式:{ type:'remote_off', member_info_uid:["機台編號",...], data:null }
|
|
8300
|
+
* 本機 machine_number 在名單內 → 通知外殼 closethismic(打開黑屏)。
|
|
8299
8301
|
*/
|
|
8300
8302
|
case ye.REMOTE_OFF:
|
|
8301
|
-
$n(
|
|
8303
|
+
$n(q.memberInfoUid, C) && qn("closethismic");
|
|
8302
8304
|
return;
|
|
8303
8305
|
/**
|
|
8304
8306
|
* remote_on:遠端解鎖。
|
|
8305
|
-
* 本機
|
|
8307
|
+
* 本機 machine_number 在名單內 → 通知外殼 openthismic(關閉黑屏)。
|
|
8306
8308
|
*/
|
|
8307
8309
|
case ye.REMOTE_ON:
|
|
8308
|
-
$n(
|
|
8310
|
+
$n(q.memberInfoUid, C) && qn("openthismic");
|
|
8309
8311
|
return;
|
|
8310
8312
|
default:
|
|
8311
|
-
console.warn("Unknown socket type:",
|
|
8313
|
+
console.warn("Unknown socket type:", X);
|
|
8312
8314
|
break;
|
|
8313
8315
|
}
|
|
8314
8316
|
};
|
|
8315
|
-
|
|
8316
|
-
!
|
|
8317
|
-
}, [
|
|
8317
|
+
fe(() => {
|
|
8318
|
+
!R || G.current === R || (G.current = R, I(R));
|
|
8319
|
+
}, [R]), fe(() => () => y.current = !0, []), fe(() => {
|
|
8318
8320
|
localStorage.getItem(
|
|
8319
8321
|
"transfer_in_game_request_id"
|
|
8320
8322
|
) && p();
|
|
8321
|
-
}, [p]),
|
|
8322
|
-
if (
|
|
8323
|
-
const
|
|
8323
|
+
}, [p]), fe(() => {
|
|
8324
|
+
if (T) {
|
|
8325
|
+
const B = localStorage.getItem(
|
|
8324
8326
|
"transfer_in_game_request_id"
|
|
8325
8327
|
);
|
|
8326
|
-
|
|
8328
|
+
B && c && g && S({
|
|
8327
8329
|
type: ye.CHECK_REQUEST,
|
|
8328
|
-
request_id:
|
|
8330
|
+
request_id: B,
|
|
8329
8331
|
member_info_uid: c
|
|
8330
8332
|
});
|
|
8331
8333
|
}
|
|
8332
|
-
}, [c, g,
|
|
8334
|
+
}, [c, g, S, T]), fe(() => {
|
|
8333
8335
|
g ? l.dispatch({
|
|
8334
8336
|
type: "ui/showToast",
|
|
8335
8337
|
payload: {
|
|
@@ -8346,17 +8348,17 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8346
8348
|
}
|
|
8347
8349
|
});
|
|
8348
8350
|
}, [g, o, l, f]);
|
|
8349
|
-
const
|
|
8350
|
-
|
|
8351
|
-
const
|
|
8352
|
-
|
|
8351
|
+
const W = se(null);
|
|
8352
|
+
W.current = I;
|
|
8353
|
+
const z = M((B) => {
|
|
8354
|
+
W.current?.(B);
|
|
8353
8355
|
}, []);
|
|
8354
8356
|
return {
|
|
8355
|
-
sendMessage:
|
|
8356
|
-
sendJsonMessage:
|
|
8357
|
+
sendMessage: k,
|
|
8358
|
+
sendJsonMessage: S,
|
|
8357
8359
|
readyState: A,
|
|
8358
8360
|
// WebSocket 連線狀態
|
|
8359
|
-
simulateSocketMessage:
|
|
8361
|
+
simulateSocketMessage: z
|
|
8360
8362
|
// 測試用:模擬收到某型別的 WS 訊息
|
|
8361
8363
|
};
|
|
8362
8364
|
}, Gs = () => {
|
|
@@ -8441,14 +8443,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8441
8443
|
memberEventSettleApi: b
|
|
8442
8444
|
};
|
|
8443
8445
|
}, Rs = ({ paramsData: e, options: t } = {}) => {
|
|
8444
|
-
const { store: a, lng: n, data2URL: s } = re(), { eventListApi: u } = $a(), b = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d =
|
|
8446
|
+
const { store: a, lng: n, data2URL: s } = re(), { eventListApi: u } = $a(), b = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = Je(n);
|
|
8445
8447
|
return Y({
|
|
8446
8448
|
queryKey: ["eventList", e],
|
|
8447
8449
|
queryFn: () => u({ paramsData: e }),
|
|
8448
8450
|
select: (l) => {
|
|
8449
8451
|
try {
|
|
8450
8452
|
const { data: i } = l;
|
|
8451
|
-
return
|
|
8453
|
+
return Ee(i, (o) => {
|
|
8452
8454
|
const { events_attributes: m } = o, g = Be(
|
|
8453
8455
|
m,
|
|
8454
8456
|
(v) => v.attribute_currency === b
|
|
@@ -8462,8 +8464,8 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8462
8464
|
...y,
|
|
8463
8465
|
carouselCurrentLanguagePCImageUrl: `${s}/carousels/${y?.image_pc}`,
|
|
8464
8466
|
carouselCurrentLanguageMBImageUrl: `${s}/carousels/${y?.image_mobile}`,
|
|
8465
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8466
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8467
|
+
carouselCurrentLanguageS3PCImageUrl: `${Qe}/carousels/${y?.image_pc}`,
|
|
8468
|
+
carouselCurrentLanguageS3MBImageUrl: `${Qe}/carousels/${y?.image_mobile}`
|
|
8467
8469
|
}
|
|
8468
8470
|
}, c = {
|
|
8469
8471
|
eventUid: o.uid,
|
|
@@ -8527,7 +8529,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8527
8529
|
rewardType: g?.reward_type,
|
|
8528
8530
|
//獎勵類型
|
|
8529
8531
|
rewardDetail: g?.rewards || {},
|
|
8530
|
-
originEventAttribute:
|
|
8532
|
+
originEventAttribute: Ee(m, (v) => ({
|
|
8531
8533
|
isActive: v.attribute_is_active === 1,
|
|
8532
8534
|
currencyCode: v.attribute_currency,
|
|
8533
8535
|
value: v.attribute_value,
|
|
@@ -8580,7 +8582,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8580
8582
|
});
|
|
8581
8583
|
}, Yu = ({ options: e } = {}) => {
|
|
8582
8584
|
const { redeemEventRewardApi: t } = $a();
|
|
8583
|
-
return
|
|
8585
|
+
return ee({
|
|
8584
8586
|
mutationKey: ["redeemEventReward"],
|
|
8585
8587
|
mutationFn: async (a) => t(a),
|
|
8586
8588
|
...e
|
|
@@ -8602,14 +8604,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8602
8604
|
});
|
|
8603
8605
|
}, Xu = ({ options: e } = {}) => {
|
|
8604
8606
|
const { settleEventApi: t } = $a();
|
|
8605
|
-
return
|
|
8607
|
+
return ee({
|
|
8606
8608
|
mutationKey: ["settleEvent"],
|
|
8607
8609
|
mutationFn: async (a) => t(a),
|
|
8608
8610
|
...e
|
|
8609
8611
|
});
|
|
8610
8612
|
}, e0 = ({ options: e } = {}) => {
|
|
8611
8613
|
const { memberEventSettleApi: t } = $a();
|
|
8612
|
-
return
|
|
8614
|
+
return ee({
|
|
8613
8615
|
mutationKey: ["memberEventSettle"],
|
|
8614
8616
|
mutationFn: async (a) => t(a),
|
|
8615
8617
|
...e
|
|
@@ -8707,7 +8709,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8707
8709
|
});
|
|
8708
8710
|
}, i0 = () => {
|
|
8709
8711
|
const e = ya(), { enabledEventWalletApi: t } = pt();
|
|
8710
|
-
return
|
|
8712
|
+
return ee({
|
|
8711
8713
|
mutationKey: ["enabledEventWallet"],
|
|
8712
8714
|
mutationFn: async ({ eventUids: a }) => await t({ eventUids: a }),
|
|
8713
8715
|
onSuccess: () => {
|
|
@@ -8732,7 +8734,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8732
8734
|
});
|
|
8733
8735
|
}, r0 = () => {
|
|
8734
8736
|
const e = ya(), { settleEventWalletApi: t } = pt();
|
|
8735
|
-
return
|
|
8737
|
+
return ee({
|
|
8736
8738
|
mutationKey: ["settleEventWallet"],
|
|
8737
8739
|
mutationFn: async ({ groupUid: a }) => await t({ groupUid: a }),
|
|
8738
8740
|
onSuccess: () => {
|
|
@@ -8741,7 +8743,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8741
8743
|
});
|
|
8742
8744
|
}, l0 = () => {
|
|
8743
8745
|
const e = ya(), { abandonEventWalletApi: t } = pt();
|
|
8744
|
-
return
|
|
8746
|
+
return ee({
|
|
8745
8747
|
mutationKey: ["abandonEventWallet"],
|
|
8746
8748
|
mutationFn: async ({ groupUid: a }) => await t({ groupUid: a }),
|
|
8747
8749
|
onSuccess: () => {
|
|
@@ -8749,13 +8751,13 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8749
8751
|
}
|
|
8750
8752
|
});
|
|
8751
8753
|
}, o0 = ({ options: e } = {}) => {
|
|
8752
|
-
const { lng: t } = re(), { announcementApi: a } = wa(), n =
|
|
8754
|
+
const { lng: t } = re(), { announcementApi: a } = wa(), n = Je(t);
|
|
8753
8755
|
return Y({
|
|
8754
8756
|
queryKey: ["getAnnouncement"],
|
|
8755
8757
|
queryFn: async () => await a(),
|
|
8756
8758
|
select: (s) => {
|
|
8757
8759
|
const u = ta(s) ? s : s?.data ?? [];
|
|
8758
|
-
return
|
|
8760
|
+
return Ee(u, (b) => {
|
|
8759
8761
|
const d = Be(b?.news_language, { language: n }) || Be(b?.news_language, { language: "en_US" }) || b?.news_language?.[0];
|
|
8760
8762
|
return {
|
|
8761
8763
|
...b,
|
|
@@ -8766,7 +8768,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8766
8768
|
...e
|
|
8767
8769
|
});
|
|
8768
8770
|
}, s0 = ({ skipPreload: e = !1 } = {}) => {
|
|
8769
|
-
const { lng: t, data2URL: a } = re(), { commonCarouselApi: n } = wa(), s =
|
|
8771
|
+
const { lng: t, data2URL: a } = re(), { commonCarouselApi: n } = wa(), s = Je(t);
|
|
8770
8772
|
return Y({
|
|
8771
8773
|
queryKey: ["getCarouselList", e],
|
|
8772
8774
|
queryFn: async () => {
|
|
@@ -8780,21 +8782,21 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8780
8782
|
carouselCurrentLanguageData: i,
|
|
8781
8783
|
carouselCurrentLanguagePCImageUrl: `${a}/carousels/${i?.image_pc}`,
|
|
8782
8784
|
carouselCurrentLanguageMBImageUrl: `${a}/carousels/${i?.image_mobile}`,
|
|
8783
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8784
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8785
|
+
carouselCurrentLanguageS3PCImageUrl: `${Qe}/carousels/${i?.image_pc}`,
|
|
8786
|
+
carouselCurrentLanguageS3MBImageUrl: `${Qe}/carousels/${i?.image_mobile}`,
|
|
8785
8787
|
carouselCurrentLanguageLink: i?.url_link,
|
|
8786
8788
|
currentLngCarousel: {
|
|
8787
8789
|
...i,
|
|
8788
8790
|
carouselCurrentLanguagePCImageUrl: `${a}/carousels/${i?.image_pc}`,
|
|
8789
8791
|
carouselCurrentLanguageMBImageUrl: `${a}/carousels/${i?.image_mobile}`,
|
|
8790
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8791
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8792
|
+
carouselCurrentLanguageS3PCImageUrl: `${Qe}/carousels/${i?.image_pc}`,
|
|
8793
|
+
carouselCurrentLanguageS3MBImageUrl: `${Qe}/carousels/${i?.image_mobile}`
|
|
8792
8794
|
}
|
|
8793
8795
|
};
|
|
8794
8796
|
})
|
|
8795
8797
|
});
|
|
8796
8798
|
}, m0 = () => {
|
|
8797
|
-
const { lng: e, getToken: t } = re(), a = t?.(), { commonMarqueeApi: n } = wa(), s =
|
|
8799
|
+
const { lng: e, getToken: t } = re(), a = t?.(), { commonMarqueeApi: n } = wa(), s = Je(e);
|
|
8798
8800
|
return Y({
|
|
8799
8801
|
queryKey: ["getMarqueeList", a],
|
|
8800
8802
|
queryFn: async () => {
|
|
@@ -8802,7 +8804,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8802
8804
|
return u && !a ? u : await n();
|
|
8803
8805
|
},
|
|
8804
8806
|
select: (u) => {
|
|
8805
|
-
const b = ta(u) ? u : u.Marquees, d = ta(u) ? u : u.MarqueesInsideGameBox, l =
|
|
8807
|
+
const b = ta(u) ? u : u.Marquees, d = ta(u) ? u : u.MarqueesInsideGameBox, l = Ee(b, (r) => r[s] || r?.en_US), i = Ee(d, (r) => r[s] || r?.en_US);
|
|
8806
8808
|
return {
|
|
8807
8809
|
marquee: l,
|
|
8808
8810
|
gameMarquee: i
|
|
@@ -8817,7 +8819,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8817
8819
|
enabled: window.profit_ranking_status === 1,
|
|
8818
8820
|
select: (a) => {
|
|
8819
8821
|
const { data: n } = a;
|
|
8820
|
-
return
|
|
8822
|
+
return Ee(n, (u) => {
|
|
8821
8823
|
const {
|
|
8822
8824
|
game_uid: b,
|
|
8823
8825
|
game_code: d,
|
|
@@ -9152,159 +9154,159 @@ function em({ timeout: e = 1e3 * 60 * 20, promptTimeout: t = 0, promptBeforeIdle
|
|
|
9152
9154
|
}, onAction: o = () => {
|
|
9153
9155
|
}, onMessage: m = () => {
|
|
9154
9156
|
}, debounce: g = 0, throttle: p = 0, eventsThrottle: f = 200, startOnMount: y = !0, startManually: _ = !1, stopOnIdle: c = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: T = !1, disabled: h = !1 } = {}) {
|
|
9155
|
-
let D = se(Ne()), H = se(Ne()), k = se(null), S = se(null),
|
|
9156
|
-
|
|
9157
|
+
let D = se(Ne()), H = se(Ne()), k = se(null), S = se(null), F = se(0), A = se(0), R = se(0), L = se(0), G = se(!1), I = se(!1), W = se(!1), z = se(!0), B = se(!1), N = se(null), E = se(null), w = se(e), P = se(0);
|
|
9158
|
+
fe(() => {
|
|
9157
9159
|
if (t && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && t) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
9158
9160
|
if (e >= Va) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Va}.`);
|
|
9159
9161
|
if (t >= Va) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Va}.`);
|
|
9160
9162
|
if (a >= Va) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Va}.`);
|
|
9161
9163
|
if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
9162
|
-
if (a ? (
|
|
9164
|
+
if (a ? (w.current = e - a, P.current = a) : (w.current = e, P.current = t), !z.current) {
|
|
9163
9165
|
if (_ || h) return;
|
|
9164
|
-
G.current && (
|
|
9166
|
+
G.current && (q.current(null, Re), E.current && E.current.active()), ia();
|
|
9165
9167
|
}
|
|
9166
9168
|
}, [e, t, a, _, h]);
|
|
9167
|
-
let
|
|
9168
|
-
|
|
9169
|
-
|
|
9169
|
+
let ae = se(c);
|
|
9170
|
+
fe(() => {
|
|
9171
|
+
ae.current = c;
|
|
9170
9172
|
}, [c]);
|
|
9171
|
-
let
|
|
9172
|
-
|
|
9173
|
-
|
|
9173
|
+
let te = se(b), le = se(n), O = se([...(/* @__PURE__ */ new Set([...s, ...b])).values()]), J = se(h);
|
|
9174
|
+
fe(() => {
|
|
9175
|
+
J.current = h, !z.current && (h ? Ke() : _ || ia());
|
|
9174
9176
|
}, [h]);
|
|
9175
9177
|
let Z = se(d);
|
|
9176
|
-
|
|
9178
|
+
fe(() => {
|
|
9177
9179
|
Z.current = d;
|
|
9178
9180
|
}, [d]);
|
|
9179
9181
|
let Q = se(l);
|
|
9180
|
-
|
|
9182
|
+
fe(() => {
|
|
9181
9183
|
Q.current = l;
|
|
9182
9184
|
}, [l]);
|
|
9183
|
-
let
|
|
9184
|
-
|
|
9185
|
-
|
|
9185
|
+
let X = se(i);
|
|
9186
|
+
fe(() => {
|
|
9187
|
+
X.current = i;
|
|
9186
9188
|
}, [i]);
|
|
9187
|
-
let
|
|
9188
|
-
|
|
9189
|
-
|
|
9189
|
+
let q = se(r);
|
|
9190
|
+
fe(() => {
|
|
9191
|
+
q.current = r;
|
|
9190
9192
|
}, [r]);
|
|
9191
|
-
let
|
|
9192
|
-
|
|
9193
|
-
|
|
9193
|
+
let ue = se(o);
|
|
9194
|
+
fe(() => {
|
|
9195
|
+
ue.current = o;
|
|
9194
9196
|
}, [o]);
|
|
9195
|
-
let
|
|
9196
|
-
|
|
9197
|
-
|
|
9197
|
+
let Ce = se(m);
|
|
9198
|
+
fe(() => {
|
|
9199
|
+
Ce.current = m;
|
|
9198
9200
|
}, [m]);
|
|
9199
9201
|
let be = ka(() => {
|
|
9200
|
-
let
|
|
9201
|
-
return g > 0 ? Xs(
|
|
9202
|
-
}, [p, g]),
|
|
9203
|
-
|
|
9204
|
-
U && v && (
|
|
9202
|
+
let K = (Pe, la) => ue.current(Pe, la);
|
|
9203
|
+
return g > 0 ? Xs(K, g) : p > 0 ? yi(K, p) : K;
|
|
9204
|
+
}, [p, g]), Ye = se();
|
|
9205
|
+
fe(() => {
|
|
9206
|
+
U && v && (Ye.current = yi(() => {
|
|
9205
9207
|
E.current.active();
|
|
9206
9208
|
}, v));
|
|
9207
9209
|
}, [U, v]);
|
|
9208
|
-
let
|
|
9210
|
+
let he = () => {
|
|
9209
9211
|
N.current !== null && (ra.clearTimeout(N.current), N.current = null);
|
|
9210
|
-
}, Ge = (
|
|
9211
|
-
|
|
9212
|
-
}, Xe = (
|
|
9213
|
-
!I.current && !G.current && (Q.current(
|
|
9214
|
-
},
|
|
9215
|
-
|
|
9216
|
-
},
|
|
9217
|
-
|
|
9218
|
-
},
|
|
9212
|
+
}, Ge = (K, Pe = !0) => {
|
|
9213
|
+
he(), N.current = ra.setTimeout(ke, K || w.current), Pe && (S.current = Ne());
|
|
9214
|
+
}, Xe = (K) => {
|
|
9215
|
+
!I.current && !G.current && (Q.current(K, Re), Z.current({ type: "active", prompted: !0 }, Re)), L.current = 0, R.current = Ne(), I.current = !0, Ge(P.current, !1);
|
|
9216
|
+
}, Me = () => {
|
|
9217
|
+
he(), G.current || (X.current(null, Re), Z.current({ type: "idle" }, Re)), G.current = !0, k.current = Ne(), ae.current ? We() : I.current && (R.current = 0, I.current = !1);
|
|
9218
|
+
}, de = (K) => {
|
|
9219
|
+
he(), (G.current || I.current) && (q.current(K, Re), Z.current({ type: "active", prompted: !1 }, Re)), I.current = !1, R.current = 0, G.current = !1, F.current += Ne() - k.current, A.current += Ne() - k.current, xe(), Ge();
|
|
9220
|
+
}, ke = (K) => {
|
|
9219
9221
|
if (!G.current) {
|
|
9220
9222
|
be.cancel && be.cancel();
|
|
9221
9223
|
let Pe = Ne() - S.current;
|
|
9222
|
-
if (!(
|
|
9223
|
-
E.current ? E.current.prompt() : Xe(
|
|
9224
|
+
if (!(w.current + P.current < Pe) && P.current > 0 && !I.current) {
|
|
9225
|
+
E.current ? E.current.prompt() : Xe(K);
|
|
9224
9226
|
return;
|
|
9225
9227
|
}
|
|
9226
|
-
E.current ? E.current.idle() :
|
|
9228
|
+
E.current ? E.current.idle() : Me();
|
|
9227
9229
|
return;
|
|
9228
9230
|
}
|
|
9229
|
-
E.current ? E.current.active() :
|
|
9230
|
-
},
|
|
9231
|
-
if (!y && !S.current && (S.current = Ne(),
|
|
9232
|
-
if (
|
|
9233
|
-
|
|
9231
|
+
E.current ? E.current.active() : de(K);
|
|
9232
|
+
}, He = (K) => {
|
|
9233
|
+
if (!y && !S.current && (S.current = Ne(), q.current(null, Re)), be(K, Re), I.current) return;
|
|
9234
|
+
if (he(), !G.current && te.current.includes(K.type)) {
|
|
9235
|
+
ke(K);
|
|
9234
9236
|
return;
|
|
9235
9237
|
}
|
|
9236
9238
|
let Pe = Ne() - S.current;
|
|
9237
|
-
if (G.current && !c || !G.current && Pe >=
|
|
9238
|
-
|
|
9239
|
+
if (G.current && !c || !G.current && Pe >= w.current) {
|
|
9240
|
+
ke(K);
|
|
9239
9241
|
return;
|
|
9240
9242
|
}
|
|
9241
|
-
W.current = !1, L.current = 0, R.current = 0, Ge(), U && v &&
|
|
9242
|
-
},
|
|
9243
|
-
|
|
9244
|
-
let
|
|
9245
|
-
|
|
9246
|
-
}, [f, p, g,
|
|
9247
|
-
let
|
|
9248
|
-
_a && le.current && (
|
|
9249
|
-
le.current.addEventListener(
|
|
9250
|
-
}),
|
|
9251
|
-
},
|
|
9252
|
-
_a && le.current && (
|
|
9253
|
-
le.current.removeEventListener(Pe,
|
|
9254
|
-
}),
|
|
9255
|
-
}, ia = M((
|
|
9243
|
+
W.current = !1, L.current = 0, R.current = 0, Ge(), U && v && Ye.current();
|
|
9244
|
+
}, ze = se(He);
|
|
9245
|
+
fe(() => {
|
|
9246
|
+
let K = B.current;
|
|
9247
|
+
K && We(), f > 0 ? ze.current = yi(He, f) : ze.current = He, K && xe();
|
|
9248
|
+
}, [f, p, g, ue, U, v]);
|
|
9249
|
+
let xe = () => {
|
|
9250
|
+
_a && le.current && (B.current || (O.current.forEach((K) => {
|
|
9251
|
+
le.current.addEventListener(K, ze.current, { capture: !0, passive: !0 });
|
|
9252
|
+
}), B.current = !0));
|
|
9253
|
+
}, We = (K = !1) => {
|
|
9254
|
+
_a && le.current && (B.current || K) && (O.current.forEach((Pe) => {
|
|
9255
|
+
le.current.removeEventListener(Pe, ze.current, { capture: !0 });
|
|
9256
|
+
}), B.current = !1);
|
|
9257
|
+
}, ia = M((K) => J.current ? !1 : (he(), xe(), G.current = !1, I.current = !1, W.current = !1, L.current = 0, R.current = 0, E.current && !K && E.current.start(), Ge(), !0), [N, G, J, w, E]), ua = M((K) => J.current ? !1 : (he(), xe(), H.current = Ne(), F.current += Ne() - k.current, A.current += Ne() - k.current, F.current = 0, G.current = !1, I.current = !1, W.current = !1, L.current = 0, R.current = 0, E.current && !K && E.current.reset(), _ || Ge(), !0), [N, G, w, _, J, E]), ba = M((K) => J.current ? !1 : (he(), xe(), (G.current || I.current) && de(), G.current = !1, I.current = !1, W.current = !1, L.current = 0, R.current = 0, H.current = Ne(), E.current && !K && E.current.activate(), Ge(), !0), [N, G, I, J, w, E]), Ke = M((K = !1) => J.current || W.current ? !1 : (L.current = Sa(), W.current = !0, We(), he(), E.current && !K && E.current.pause(), !0), [N, J, E]), na = M((K = !1) => J.current || !W.current ? !1 : (W.current = !1, I.current || xe(), G.current || Ge(L.current), R.current && (R.current = Ne()), E.current && !K && E.current.resume(), !0), [N, w, J, L, E]), Ya = M((K, Pe) => (E.current ? (Pe && Ce.current(K, Re), E.current.message(K)) : Pe && Ce.current(K, Re), !0), [m]), Fa = M(() => G.current, [G]), Aa = M(() => I.current, [I]), Xa = M(() => E.current ? E.current.isLeader : null, [E]), et = M(() => E.current ? E.current.isLastActive : null, [E]), Ua = M(() => E.current ? E.current.token : null, [E]), Sa = M(() => {
|
|
9256
9258
|
if (W.current) return L.current;
|
|
9257
|
-
let
|
|
9259
|
+
let K = L.current ? L.current : P.current + w.current, Pe = S.current ? Ne() - S.current : 0, la = Math.floor(K - Pe);
|
|
9258
9260
|
return la < 0 ? 0 : Math.abs(la);
|
|
9259
|
-
}, [
|
|
9260
|
-
let
|
|
9261
|
-
return
|
|
9262
|
-
}, [k,
|
|
9263
|
-
let
|
|
9264
|
-
return
|
|
9265
|
-
}, [k,
|
|
9266
|
-
|
|
9261
|
+
}, [w, P, I, L, S]), ea = M(() => Math.round(Ne() - H.current), [H]), Ca = M(() => Math.round(Ne() - D.current), [D]), va = M(() => k.current ? new Date(k.current) : null, [k]), Oa = M(() => S.current ? new Date(S.current) : null, [S]), Ba = M(() => G.current ? Math.round(Ne() - k.current + F.current) : Math.round(F.current), [k, F]), Ea = M(() => G.current ? Math.round(Ne() - k.current + A.current) : Math.round(A.current), [k, A]), Ha = M(() => {
|
|
9262
|
+
let K = Math.round(ea() - Ba());
|
|
9263
|
+
return K >= 0 ? K : 0;
|
|
9264
|
+
}, [k, F]), Wa = M(() => {
|
|
9265
|
+
let K = Math.round(Ca() - Ea());
|
|
9266
|
+
return K >= 0 ? K : 0;
|
|
9267
|
+
}, [k, F]);
|
|
9268
|
+
fe(() => {
|
|
9267
9269
|
if (g > 0 && p > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
9268
9270
|
u && Js(u);
|
|
9269
|
-
let
|
|
9270
|
-
E.current && E.current.close(), be.cancel && be.cancel(),
|
|
9271
|
+
let K = () => {
|
|
9272
|
+
E.current && E.current.close(), be.cancel && be.cancel(), he(), We(!0);
|
|
9271
9273
|
};
|
|
9272
|
-
return _a && window.addEventListener("beforeunload",
|
|
9273
|
-
_a && window.removeEventListener("beforeunload",
|
|
9274
|
+
return _a && window.addEventListener("beforeunload", K), () => {
|
|
9275
|
+
_a && window.removeEventListener("beforeunload", K), E.current && E.current.close(), be.cancel && be.cancel(), he(), We(!0);
|
|
9274
9276
|
};
|
|
9275
|
-
}, []),
|
|
9277
|
+
}, []), fe(() => {
|
|
9276
9278
|
E.current && E.current.close(), U ? E.current = new js({ channelName: C, leaderElection: T, onPrompt: () => {
|
|
9277
9279
|
Xe();
|
|
9278
9280
|
}, onIdle: () => {
|
|
9279
|
-
|
|
9281
|
+
Me();
|
|
9280
9282
|
}, onActive: () => {
|
|
9281
|
-
|
|
9282
|
-
}, onMessage: (
|
|
9283
|
-
|
|
9284
|
-
}, start: ia, reset: ua, activate: ba, pause:
|
|
9285
|
-
}, [U, C, T, Q,
|
|
9286
|
-
|
|
9287
|
-
}, [_, y, h,
|
|
9288
|
-
if (!
|
|
9289
|
-
let
|
|
9290
|
-
if (
|
|
9291
|
-
y ? ia() :
|
|
9283
|
+
de();
|
|
9284
|
+
}, onMessage: (K) => {
|
|
9285
|
+
Ce.current(K, Re);
|
|
9286
|
+
}, start: ia, reset: ua, activate: ba, pause: Ke, resume: na }) : E.current = null;
|
|
9287
|
+
}, [U, C, T, Q, X, q, Ce, ia, ua, Ke, na]), fe(() => {
|
|
9288
|
+
z.current || (he(), We(!0)), !(_ || h) && (y ? ia() : xe());
|
|
9289
|
+
}, [_, y, h, z]), fe(() => {
|
|
9290
|
+
if (!z.current) {
|
|
9291
|
+
let K = [...(/* @__PURE__ */ new Set([...s, ...b])).values()];
|
|
9292
|
+
if (We(), O.current = K, le.current = n, te.current = b, _ || h) return;
|
|
9293
|
+
y ? ia() : xe();
|
|
9292
9294
|
}
|
|
9293
|
-
}, [n, JSON.stringify(s), JSON.stringify(b),
|
|
9294
|
-
|
|
9295
|
-
}, [
|
|
9296
|
-
let Re = { message: Ya, start: ia, reset: ua, activate: ba, pause:
|
|
9297
|
-
d =
|
|
9298
|
-
}, setOnPrompt: (
|
|
9299
|
-
l =
|
|
9300
|
-
}, setOnIdle: (
|
|
9301
|
-
i =
|
|
9302
|
-
}, setOnActive: (
|
|
9303
|
-
r =
|
|
9304
|
-
}, setOnAction: (
|
|
9305
|
-
o =
|
|
9306
|
-
}, setOnMessage: (
|
|
9307
|
-
m =
|
|
9295
|
+
}, [n, JSON.stringify(s), JSON.stringify(b), z, h, _, y]), fe(() => {
|
|
9296
|
+
z.current && (z.current = !1);
|
|
9297
|
+
}, [z]);
|
|
9298
|
+
let Re = { message: Ya, start: ia, reset: ua, activate: ba, pause: Ke, resume: na, isIdle: Fa, isPrompted: Aa, isLeader: Xa, isLastActiveTab: et, getTabId: Ua, getRemainingTime: Sa, getElapsedTime: ea, getTotalElapsedTime: Ca, getLastIdleTime: va, getLastActiveTime: Oa, getIdleTime: Ba, getTotalIdleTime: Ea, getActiveTime: Ha, getTotalActiveTime: Wa, setOnPresenceChange: (K) => {
|
|
9299
|
+
d = K, Z.current = K;
|
|
9300
|
+
}, setOnPrompt: (K) => {
|
|
9301
|
+
l = K, Q.current = K;
|
|
9302
|
+
}, setOnIdle: (K) => {
|
|
9303
|
+
i = K, X.current = K;
|
|
9304
|
+
}, setOnActive: (K) => {
|
|
9305
|
+
r = K, q.current = K;
|
|
9306
|
+
}, setOnAction: (K) => {
|
|
9307
|
+
o = K, ue.current = K;
|
|
9308
|
+
}, setOnMessage: (K) => {
|
|
9309
|
+
m = K, Ce.current = K;
|
|
9308
9310
|
} };
|
|
9309
9311
|
return Re;
|
|
9310
9312
|
}
|
|
@@ -9317,13 +9319,13 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9317
9319
|
timeout: n,
|
|
9318
9320
|
throttle: 500
|
|
9319
9321
|
}), tm = ({ options: e } = {}) => {
|
|
9320
|
-
const { commonInboxApi: t } = wa(), { getToken: a, lng: n } = re(), s = a?.(), u =
|
|
9322
|
+
const { commonInboxApi: t } = wa(), { getToken: a, lng: n } = re(), s = a?.(), u = Je(n);
|
|
9321
9323
|
return Y({
|
|
9322
9324
|
queryKey: ["inboxList"],
|
|
9323
9325
|
queryFn: async () => await t(),
|
|
9324
9326
|
select: (b) => {
|
|
9325
9327
|
const { data: d } = b;
|
|
9326
|
-
return
|
|
9328
|
+
return Ee(d, (i) => {
|
|
9327
9329
|
const { internal_notifications_language: r } = i;
|
|
9328
9330
|
return {
|
|
9329
9331
|
...i,
|
|
@@ -9339,7 +9341,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9339
9341
|
});
|
|
9340
9342
|
}, im = ({ options: e } = {}) => {
|
|
9341
9343
|
const { commonReadInboxApi: t } = wa();
|
|
9342
|
-
return
|
|
9344
|
+
return ee({
|
|
9343
9345
|
mutationKey: ["readInbox"],
|
|
9344
9346
|
mutationFn: async (a) => await t(a),
|
|
9345
9347
|
...e
|
|
@@ -9412,7 +9414,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9412
9414
|
...e.other
|
|
9413
9415
|
}
|
|
9414
9416
|
], d0 = ({ options: e, formData: t } = {}) => {
|
|
9415
|
-
const { lng: a } = re(), { newsListApi: n } = Nr(), s =
|
|
9417
|
+
const { lng: a } = re(), { newsListApi: n } = Nr(), s = Je(a);
|
|
9416
9418
|
return Y({
|
|
9417
9419
|
queryKey: ["newsList"],
|
|
9418
9420
|
queryFn: () => {
|
|
@@ -9420,7 +9422,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9420
9422
|
return n({ uid: u, params: b });
|
|
9421
9423
|
},
|
|
9422
9424
|
select: (u) => {
|
|
9423
|
-
const { data: b } = u, d = b.data?.filter((i) => i.is_active === 1), l =
|
|
9425
|
+
const { data: b } = u, d = b.data?.filter((i) => i.is_active === 1), l = Ee(d, (i) => {
|
|
9424
9426
|
const r = Be(i.news_language, {
|
|
9425
9427
|
language: s
|
|
9426
9428
|
}) || i.news_language[0];
|
|
@@ -9438,7 +9440,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9438
9440
|
...e
|
|
9439
9441
|
});
|
|
9440
9442
|
}, c0 = ({ options: e, formData: t } = {}) => {
|
|
9441
|
-
const { lng: a } = re(), { newsListApi: n } = Nr(), s =
|
|
9443
|
+
const { lng: a } = re(), { newsListApi: n } = Nr(), s = Je(a);
|
|
9442
9444
|
return Y({
|
|
9443
9445
|
queryKey: ["newsList"],
|
|
9444
9446
|
queryFn: () => {
|
|
@@ -9694,16 +9696,16 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9694
9696
|
queryKey: ["depositV2", e],
|
|
9695
9697
|
queryFn: () => a({ paramsData: e }),
|
|
9696
9698
|
select: (n) => {
|
|
9697
|
-
const { third_party: s, bank: u, vip: b } = n, d =
|
|
9699
|
+
const { third_party: s, bank: u, vip: b } = n, d = Ee(s, (l) => ({
|
|
9698
9700
|
...l,
|
|
9699
|
-
providerList:
|
|
9701
|
+
providerList: Ee(l.providers, (i) => ({
|
|
9700
9702
|
...i,
|
|
9701
9703
|
providerUid: i.uid,
|
|
9702
|
-
providerImageUrl: `${
|
|
9704
|
+
providerImageUrl: `${Qe}/paymentIcon/${Ii(i.provider_name)}.png`,
|
|
9703
9705
|
providerMax: i.max,
|
|
9704
9706
|
providerMin: i.min
|
|
9705
9707
|
})),
|
|
9706
|
-
methodImageUrl: `${
|
|
9708
|
+
methodImageUrl: `${Qe}/paymentIcon/${Ii(l.method_name)}pay.png`
|
|
9707
9709
|
}));
|
|
9708
9710
|
return {
|
|
9709
9711
|
bank: u,
|
|
@@ -9715,14 +9717,14 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9715
9717
|
});
|
|
9716
9718
|
}, om = ({ options: e } = {}) => {
|
|
9717
9719
|
const { depositApi: t } = Le();
|
|
9718
|
-
return
|
|
9720
|
+
return ee({
|
|
9719
9721
|
mutationKey: ["depositAction"],
|
|
9720
9722
|
mutationFn: async (a) => t(a),
|
|
9721
9723
|
...e
|
|
9722
9724
|
});
|
|
9723
9725
|
}, sm = ({ options: e } = {}) => {
|
|
9724
9726
|
const { withdrawApi: t } = Le();
|
|
9725
|
-
return
|
|
9727
|
+
return ee({
|
|
9726
9728
|
mutationKey: ["withdrawAction"],
|
|
9727
9729
|
mutationFn: async (a) => t(a),
|
|
9728
9730
|
...e
|
|
@@ -9743,14 +9745,14 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9743
9745
|
});
|
|
9744
9746
|
}, pm = ({ options: e } = {}) => {
|
|
9745
9747
|
const { bankDepositApi: t } = Le();
|
|
9746
|
-
return
|
|
9748
|
+
return ee({
|
|
9747
9749
|
mutationKey: ["bankDeposit"],
|
|
9748
9750
|
mutationFn: async (a) => t(a),
|
|
9749
9751
|
...e
|
|
9750
9752
|
});
|
|
9751
9753
|
}, gm = ({ options: e } = {}) => {
|
|
9752
9754
|
const { companyPaymentDepositApi: t } = Le();
|
|
9753
|
-
return
|
|
9755
|
+
return ee({
|
|
9754
9756
|
mutationKey: ["companyPaymentDeposit"],
|
|
9755
9757
|
mutationFn: async (a) => t(a),
|
|
9756
9758
|
...e
|
|
@@ -9764,21 +9766,21 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9764
9766
|
});
|
|
9765
9767
|
}, f0 = ({ options: e } = {}) => {
|
|
9766
9768
|
const { redeemCodeDepositApi: t } = Le();
|
|
9767
|
-
return
|
|
9769
|
+
return ee({
|
|
9768
9770
|
mutationKey: ["redeemCodeDeposit"],
|
|
9769
9771
|
mutationFn: async (a) => t(a),
|
|
9770
9772
|
...e
|
|
9771
9773
|
});
|
|
9772
9774
|
}, _0 = ({ options: e } = {}) => {
|
|
9773
9775
|
const { invoiceApi: t } = Le();
|
|
9774
|
-
return
|
|
9776
|
+
return ee({
|
|
9775
9777
|
mutationKey: ["invoiceAction"],
|
|
9776
9778
|
mutationFn: async (a) => t(a),
|
|
9777
9779
|
...e
|
|
9778
9780
|
});
|
|
9779
9781
|
}, y0 = ({ options: e } = {}) => {
|
|
9780
9782
|
const { updateInvoiceApi: t } = Le();
|
|
9781
|
-
return
|
|
9783
|
+
return ee({
|
|
9782
9784
|
mutationKey: ["updateInvoiceAction"],
|
|
9783
9785
|
mutationFn: async (a) => t(a),
|
|
9784
9786
|
...e
|
|
@@ -10009,7 +10011,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
10009
10011
|
});
|
|
10010
10012
|
}, Sm = ({ options: e } = {}) => {
|
|
10011
10013
|
const { receiveRebateApi: t } = zr();
|
|
10012
|
-
return
|
|
10014
|
+
return ee({
|
|
10013
10015
|
mutationKey: ["receiveRebate"],
|
|
10014
10016
|
mutationFn: async () => t(),
|
|
10015
10017
|
...e
|
|
@@ -10054,7 +10056,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
10054
10056
|
},
|
|
10055
10057
|
select: (n) => {
|
|
10056
10058
|
try {
|
|
10057
|
-
const s =
|
|
10059
|
+
const s = Ee(j(n, "data.data", []), (u) => {
|
|
10058
10060
|
const {
|
|
10059
10061
|
wagering_restricted_amount: b,
|
|
10060
10062
|
claimed_amount: d
|
|
@@ -10093,7 +10095,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
10093
10095
|
});
|
|
10094
10096
|
}, Dm = ({ options: e } = {}) => {
|
|
10095
10097
|
const { redeemRewardApi: t } = gt();
|
|
10096
|
-
return
|
|
10098
|
+
return ee({
|
|
10097
10099
|
mutationKey: ["redeemReward"],
|
|
10098
10100
|
mutationFn: async (a) => await t(a),
|
|
10099
10101
|
...e
|
|
@@ -10311,11 +10313,11 @@ const Vr = [], Rm = () => [
|
|
|
10311
10313
|
roulettesDrawLogApi: n
|
|
10312
10314
|
};
|
|
10313
10315
|
}, N0 = ({ options: e } = {}) => {
|
|
10314
|
-
const { lng: t } = re(), a =
|
|
10316
|
+
const { lng: t } = re(), a = Je(t || "tw"), { roulettesListApi: n } = Wi();
|
|
10315
10317
|
return Y({
|
|
10316
10318
|
queryKey: ["roulettesList"],
|
|
10317
10319
|
queryFn: () => n(),
|
|
10318
|
-
select: (s) => ({ list:
|
|
10320
|
+
select: (s) => ({ list: Ee(j(s, "list", []), (b) => {
|
|
10319
10321
|
const d = Be(
|
|
10320
10322
|
j(b, "roulettes_copywriting", []),
|
|
10321
10323
|
{ language: a }
|
|
@@ -10329,7 +10331,7 @@ const Vr = [], Rm = () => [
|
|
|
10329
10331
|
});
|
|
10330
10332
|
}, L0 = ({ options: e } = {}) => {
|
|
10331
10333
|
const { redeemRoulettesApi: t } = Wi();
|
|
10332
|
-
return
|
|
10334
|
+
return ee({
|
|
10333
10335
|
mutationKey: ["redeemRoulettes"],
|
|
10334
10336
|
mutationFn: async (a) => t(a),
|
|
10335
10337
|
...e
|
|
@@ -10524,7 +10526,7 @@ const Vr = [], Rm = () => [
|
|
|
10524
10526
|
});
|
|
10525
10527
|
}, H0 = ({ options: e } = {}) => {
|
|
10526
10528
|
const { createStoreOrderApi: t } = ma(), a = ya(), { onSuccess: n, ...s } = e || {};
|
|
10527
|
-
return
|
|
10529
|
+
return ee({
|
|
10528
10530
|
mutationKey: ["market", "createStoreOrder"],
|
|
10529
10531
|
mutationFn: async (u) => t(u),
|
|
10530
10532
|
onSuccess: (u, b, d) => {
|
|
@@ -10536,7 +10538,7 @@ const Vr = [], Rm = () => [
|
|
|
10536
10538
|
});
|
|
10537
10539
|
}, W0 = ({ options: e } = {}) => {
|
|
10538
10540
|
const { updateStoreOrderApi: t } = ma(), a = ya(), { onSuccess: n, ...s } = e || {};
|
|
10539
|
-
return
|
|
10541
|
+
return ee({
|
|
10540
10542
|
mutationKey: ["market", "updateStoreOrder"],
|
|
10541
10543
|
mutationFn: async (u) => t(u),
|
|
10542
10544
|
onSuccess: (u, b, d) => {
|
|
@@ -10582,7 +10584,7 @@ const Vr = [], Rm = () => [
|
|
|
10582
10584
|
redeemTreasureApi: a
|
|
10583
10585
|
};
|
|
10584
10586
|
}, I0 = ({ paramsData: e, options: t } = {}) => {
|
|
10585
|
-
const { client: a, lng: n } = re(), s =
|
|
10587
|
+
const { client: a, lng: n } = re(), s = Je(n || "tw"), { treasureListApi: u } = Jr();
|
|
10586
10588
|
return Y({
|
|
10587
10589
|
queryKey: ["treasureList", e],
|
|
10588
10590
|
queryFn: () => u(e),
|
|
@@ -10594,7 +10596,7 @@ const Vr = [], Rm = () => [
|
|
|
10594
10596
|
last_page: j(d, "last_page", 1)
|
|
10595
10597
|
};
|
|
10596
10598
|
return {
|
|
10597
|
-
list:
|
|
10599
|
+
list: Ee(j(d, "data", []), (r) => {
|
|
10598
10600
|
const o = Be(r.treasure_copywriting, {
|
|
10599
10601
|
language: s
|
|
10600
10602
|
});
|
|
@@ -10611,7 +10613,7 @@ const Vr = [], Rm = () => [
|
|
|
10611
10613
|
});
|
|
10612
10614
|
}, z0 = ({ options: e } = {}) => {
|
|
10613
10615
|
const { redeemTreasureApi: t } = Jr();
|
|
10614
|
-
return
|
|
10616
|
+
return ee({
|
|
10615
10617
|
mutationKey: ["redeemTreasure"],
|
|
10616
10618
|
mutationFn: async (a) => t(a),
|
|
10617
10619
|
...e
|
|
@@ -10628,7 +10630,7 @@ const Vr = [], Rm = () => [
|
|
|
10628
10630
|
queryKey: ["vipInfo"],
|
|
10629
10631
|
queryFn: async () => n(),
|
|
10630
10632
|
select: (s) => {
|
|
10631
|
-
const { data: u } = s, b = j(u, "data", []), d =
|
|
10633
|
+
const { data: u } = s, b = j(u, "data", []), d = Ee(b, (i) => ({
|
|
10632
10634
|
currentWager: i.wagering || i.value,
|
|
10633
10635
|
currentStatus: i.status,
|
|
10634
10636
|
currentOverflow: i.promotion_overflow,
|
|
@@ -10641,7 +10643,7 @@ const Vr = [], Rm = () => [
|
|
|
10641
10643
|
currentType: u.type,
|
|
10642
10644
|
currentOverflow: u.promotion_overflow,
|
|
10643
10645
|
nextLevel: u.promotion_level,
|
|
10644
|
-
typeList:
|
|
10646
|
+
typeList: Ee(d, (i) => i.type),
|
|
10645
10647
|
currentWagerKeyBy: l
|
|
10646
10648
|
};
|
|
10647
10649
|
},
|
|
@@ -10657,14 +10659,14 @@ const Vr = [], Rm = () => [
|
|
|
10657
10659
|
},
|
|
10658
10660
|
select: (s) => {
|
|
10659
10661
|
const u = ta(s) ? s : s.data;
|
|
10660
|
-
return
|
|
10662
|
+
return Ee(u, (d) => {
|
|
10661
10663
|
const {
|
|
10662
10664
|
vip_criteria: l,
|
|
10663
10665
|
vip_payment_tags: i,
|
|
10664
10666
|
vip_withdrawal_rate: r,
|
|
10665
10667
|
rebate_range: o,
|
|
10666
10668
|
vip_game_rebate: m
|
|
10667
|
-
} = d, g = Be(l, { currency_code: a }) || {}, p = Be(i, { currency_code: a }) || {}, f = r, y =
|
|
10669
|
+
} = d, g = Be(l, { currency_code: a }) || {}, p = Be(i, { currency_code: a }) || {}, f = r, y = Ee(o, (U) => ({
|
|
10668
10670
|
...U,
|
|
10669
10671
|
rebateRange: JSON.parse(U.rebate_range)
|
|
10670
10672
|
})), _ = j(m, "[0]", {}), c = {
|
|
@@ -10673,7 +10675,7 @@ const Vr = [], Rm = () => [
|
|
|
10673
10675
|
};
|
|
10674
10676
|
return {
|
|
10675
10677
|
...d,
|
|
10676
|
-
vipImageUrl: `${
|
|
10678
|
+
vipImageUrl: `${Qe}/vip/vip${d.level}_l.avif`,
|
|
10677
10679
|
vipRule: g,
|
|
10678
10680
|
vipWithdraw: p,
|
|
10679
10681
|
vipWithdrawFeeRate: f,
|
|
@@ -10689,13 +10691,13 @@ const Vr = [], Rm = () => [
|
|
|
10689
10691
|
}) => ({
|
|
10690
10692
|
vipList: Bm({ options: e.vipList })
|
|
10691
10693
|
}), Z0 = ({ onMessage: e } = {}) => {
|
|
10692
|
-
const [t, a] =
|
|
10694
|
+
const [t, a] = je(!1), [n, s] = je([]), u = se(e);
|
|
10693
10695
|
u.current = e;
|
|
10694
10696
|
const b = M((_) => {
|
|
10695
10697
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("zh-TW");
|
|
10696
10698
|
s((U) => [...U, { time: c, message: _ }]);
|
|
10697
10699
|
}, []);
|
|
10698
|
-
|
|
10700
|
+
fe(() => {
|
|
10699
10701
|
if (window.chrome && window.chrome.webview) {
|
|
10700
10702
|
a(!0), b("WebView2 環境已就緒");
|
|
10701
10703
|
const _ = (c) => {
|
|
@@ -10815,7 +10817,7 @@ const Vr = [], Rm = () => [
|
|
|
10815
10817
|
// 越南名稱
|
|
10816
10818
|
gameNameTw: h
|
|
10817
10819
|
// 繁體中文名稱
|
|
10818
|
-
} = e, D = e?.[`gameName${a}`], H = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.webp`, k = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.gif`, S = `${st}/${bt}/en/${i}/${ot(n, / /g, "_")}.webp`,
|
|
10820
|
+
} = e, D = e?.[`gameName${a}`], H = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.webp`, k = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.gif`, S = `${st}/${bt}/en/${i}/${ot(n, / /g, "_")}.webp`, F = `${st}/${bt}/en/${i}/${ot(n, / /g, "_")}.gif`, A = M(
|
|
10819
10821
|
({ long: R = !1, preferAnimated: L = !1 } = {}) => Dl({
|
|
10820
10822
|
lng: t,
|
|
10821
10823
|
gamePlatform: i,
|
|
@@ -10848,8 +10850,8 @@ const Vr = [], Rm = () => [
|
|
|
10848
10850
|
gameImageUrl: H,
|
|
10849
10851
|
gameImageUrlAnimated: k,
|
|
10850
10852
|
fallbackGameImageUrl: S,
|
|
10851
|
-
fallbackGameImageUrlAnimated:
|
|
10852
|
-
gameImageSources:
|
|
10853
|
+
fallbackGameImageUrlAnimated: F,
|
|
10854
|
+
gameImageSources: A,
|
|
10853
10855
|
popularityRanking: y,
|
|
10854
10856
|
isInvalidBet: _,
|
|
10855
10857
|
haveJackpot: c
|
|
@@ -10887,7 +10889,7 @@ const Vr = [], Rm = () => [
|
|
|
10887
10889
|
// 臨時維護開始時間
|
|
10888
10890
|
temp_maintenance_end_time: o
|
|
10889
10891
|
// 臨時維護結束時間
|
|
10890
|
-
} = e || {}, m = `${
|
|
10892
|
+
} = e || {}, m = `${Qe}/${_r}/${Hm(n, t)}.png`;
|
|
10891
10893
|
return {
|
|
10892
10894
|
subPlatformEnum: a,
|
|
10893
10895
|
platformEnum: n,
|
|
@@ -10901,7 +10903,7 @@ const Vr = [], Rm = () => [
|
|
|
10901
10903
|
tempMaintenanceEndTime: o,
|
|
10902
10904
|
platformImageUrl: m
|
|
10903
10905
|
};
|
|
10904
|
-
}, Wm = (e = {}) => !ri(e) || Fe(e) ? [] : li(e), ar = (e = []) => !ta(e) || Fe(e) ? [] :
|
|
10906
|
+
}, Wm = (e = {}) => !ri(e) || Fe(e) ? [] : li(e), ar = (e = []) => !ta(e) || Fe(e) ? [] : Ee(e, "platform"), Im = (e = []) => !ta(e) || Fe(e) ? [] : Ee(e, "gameTypeName"), zm = (e = []) => !ta(e) || Fe(e) ? [] : Ee(e, "game_subtype"), Vm = (e = {}) => !ri(e) || Fe(e) ? [] : li(e), Jm = (e = [], t = []) => !ta(e) || Fe(e) ? {} : !ta(t) || Fe(t) ? {} : e.reduce((a, n) => {
|
|
10905
10907
|
const s = t.map((u) => u.game_subtype);
|
|
10906
10908
|
return s.forEach((u) => {
|
|
10907
10909
|
a[u] = a[u] || [];
|
|
@@ -10971,8 +10973,8 @@ const Vr = [], Rm = () => [
|
|
|
10971
10973
|
gameList: e,
|
|
10972
10974
|
allGameTypes: a,
|
|
10973
10975
|
allPlatforms: t
|
|
10974
|
-
}), c =
|
|
10975
|
-
const H = `${
|
|
10976
|
+
}), c = Ee(t, (D) => {
|
|
10977
|
+
const H = `${Qe}/${_r}/${D.platformEnum}.png`;
|
|
10976
10978
|
return {
|
|
10977
10979
|
...D,
|
|
10978
10980
|
platformImageUrl: H
|
|
@@ -37615,11 +37617,11 @@ const Vr = [], Rm = () => [
|
|
|
37615
37617
|
autoFetch: t = !1,
|
|
37616
37618
|
mockData: a = !1
|
|
37617
37619
|
}) => {
|
|
37618
|
-
|
|
37620
|
+
fe(() => {
|
|
37619
37621
|
a && Ym(!0);
|
|
37620
37622
|
}, [a]);
|
|
37621
37623
|
const n = Qm({ enabled: t });
|
|
37622
|
-
return /* @__PURE__ */
|
|
37624
|
+
return /* @__PURE__ */ ie.jsx(yr.Provider, { value: n, children: e });
|
|
37623
37625
|
};
|
|
37624
37626
|
function Q0({
|
|
37625
37627
|
children: e,
|
|
@@ -37629,7 +37631,7 @@ function Q0({
|
|
|
37629
37631
|
standaloneViewportFix: s = !0,
|
|
37630
37632
|
...u
|
|
37631
37633
|
}) {
|
|
37632
|
-
|
|
37634
|
+
fe(() => {
|
|
37633
37635
|
if (s)
|
|
37634
37636
|
return Sl();
|
|
37635
37637
|
}, [s]);
|
|
@@ -37647,7 +37649,7 @@ function Q0({
|
|
|
37647
37649
|
}),
|
|
37648
37650
|
[]
|
|
37649
37651
|
), i = n || l;
|
|
37650
|
-
return /* @__PURE__ */
|
|
37652
|
+
return /* @__PURE__ */ ie.jsx(ul, { client: i, children: /* @__PURE__ */ ie.jsx(pr.Provider, { value: { client: b, formDataClient: d, ...u }, children: /* @__PURE__ */ ie.jsx(vl, { children: /* @__PURE__ */ ie.jsx(
|
|
37651
37653
|
Xm,
|
|
37652
37654
|
{
|
|
37653
37655
|
autoFetch: t,
|
|
@@ -37672,7 +37674,7 @@ const Y0 = () => {
|
|
|
37672
37674
|
}
|
|
37673
37675
|
}
|
|
37674
37676
|
}), b = se(!1);
|
|
37675
|
-
return
|
|
37677
|
+
return fe(() => {
|
|
37676
37678
|
if (b.current) return;
|
|
37677
37679
|
const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), i = d.get("bind_id");
|
|
37678
37680
|
l && i && (b.current = !0, l === "line" ? t({ bindType: l, bindId: i }) : console.warn(`Unsupported bind type: ${l}`));
|
|
@@ -37684,7 +37686,7 @@ const Y0 = () => {
|
|
|
37684
37686
|
enabled: n = au,
|
|
37685
37687
|
backendMessages: s = null
|
|
37686
37688
|
}) => {
|
|
37687
|
-
const [u, b] =
|
|
37689
|
+
const [u, b] = je(!1), [d, l] = je(!1), [i, r] = je(""), [o, m] = je(""), [g, p] = je("toast"), { store: f } = re() || {}, y = ka(
|
|
37688
37690
|
() => s ? Object.keys(s) : [],
|
|
37689
37691
|
[s]
|
|
37690
37692
|
), _ = ka(() => {
|
|
@@ -37718,7 +37720,7 @@ const Y0 = () => {
|
|
|
37718
37720
|
});
|
|
37719
37721
|
}, U = t ?? null, C = (h, D) => {
|
|
37720
37722
|
console.log("[ws-dev]", h, D), e(D);
|
|
37721
|
-
}, v = (h, D, H = "#444") => /* @__PURE__ */
|
|
37723
|
+
}, v = (h, D, H = "#444") => /* @__PURE__ */ ie.jsx(
|
|
37722
37724
|
"button",
|
|
37723
37725
|
{
|
|
37724
37726
|
type: "button",
|
|
@@ -37740,7 +37742,7 @@ const Y0 = () => {
|
|
|
37740
37742
|
children: h
|
|
37741
37743
|
}
|
|
37742
37744
|
), T = typeof window < "u" && window.location.pathname.includes("gamebox");
|
|
37743
|
-
return /* @__PURE__ */
|
|
37745
|
+
return /* @__PURE__ */ ie.jsxs(
|
|
37744
37746
|
"div",
|
|
37745
37747
|
{
|
|
37746
37748
|
style: {
|
|
@@ -37750,7 +37752,7 @@ const Y0 = () => {
|
|
|
37750
37752
|
zIndex: 9999999
|
|
37751
37753
|
},
|
|
37752
37754
|
children: [
|
|
37753
|
-
/* @__PURE__ */
|
|
37755
|
+
/* @__PURE__ */ ie.jsx(
|
|
37754
37756
|
"button",
|
|
37755
37757
|
{
|
|
37756
37758
|
type: "button",
|
|
@@ -37768,7 +37770,7 @@ const Y0 = () => {
|
|
|
37768
37770
|
children: u ? "▼ WS 測試面板" : "▶ WS 測試面板"
|
|
37769
37771
|
}
|
|
37770
37772
|
),
|
|
37771
|
-
u && /* @__PURE__ */
|
|
37773
|
+
u && /* @__PURE__ */ ie.jsxs(
|
|
37772
37774
|
"div",
|
|
37773
37775
|
{
|
|
37774
37776
|
style: {
|
|
@@ -37782,7 +37784,7 @@ const Y0 = () => {
|
|
|
37782
37784
|
borderRadius: "8px"
|
|
37783
37785
|
},
|
|
37784
37786
|
children: [
|
|
37785
|
-
/* @__PURE__ */
|
|
37787
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { fontSize: "10px", color: "#aaa", marginBottom: "6px" }, children: [
|
|
37786
37788
|
"uid:",
|
|
37787
37789
|
String(U ?? "無"),
|
|
37788
37790
|
" / platform:",
|
|
@@ -37860,7 +37862,7 @@ const Y0 = () => {
|
|
|
37860
37862
|
},
|
|
37861
37863
|
"#c62828"
|
|
37862
37864
|
),
|
|
37863
|
-
y.length > 0 && /* @__PURE__ */
|
|
37865
|
+
y.length > 0 && /* @__PURE__ */ ie.jsxs(
|
|
37864
37866
|
"div",
|
|
37865
37867
|
{
|
|
37866
37868
|
style: {
|
|
@@ -37869,7 +37871,7 @@ const Y0 = () => {
|
|
|
37869
37871
|
borderTop: "1px solid rgba(211,181,82,0.3)"
|
|
37870
37872
|
},
|
|
37871
37873
|
children: [
|
|
37872
|
-
/* @__PURE__ */
|
|
37874
|
+
/* @__PURE__ */ ie.jsxs(
|
|
37873
37875
|
"button",
|
|
37874
37876
|
{
|
|
37875
37877
|
type: "button",
|
|
@@ -37895,11 +37897,11 @@ const Y0 = () => {
|
|
|
37895
37897
|
]
|
|
37896
37898
|
}
|
|
37897
37899
|
),
|
|
37898
|
-
d && /* @__PURE__ */
|
|
37899
|
-
/* @__PURE__ */
|
|
37900
|
+
d && /* @__PURE__ */ ie.jsxs("div", { style: { marginTop: "6px" }, children: [
|
|
37901
|
+
/* @__PURE__ */ ie.jsx("div", { style: { display: "flex", gap: "4px", marginBottom: "5px" }, children: [
|
|
37900
37902
|
["toast", "Toast(攔截器)"],
|
|
37901
37903
|
["socket", "Socket(彈窗)"]
|
|
37902
|
-
].map(([h, D]) => /* @__PURE__ */
|
|
37904
|
+
].map(([h, D]) => /* @__PURE__ */ ie.jsx(
|
|
37903
37905
|
"button",
|
|
37904
37906
|
{
|
|
37905
37907
|
type: "button",
|
|
@@ -37919,7 +37921,7 @@ const Y0 = () => {
|
|
|
37919
37921
|
},
|
|
37920
37922
|
h
|
|
37921
37923
|
)) }),
|
|
37922
|
-
g === "socket" && U === null && /* @__PURE__ */
|
|
37924
|
+
g === "socket" && U === null && /* @__PURE__ */ ie.jsx(
|
|
37923
37925
|
"div",
|
|
37924
37926
|
{
|
|
37925
37927
|
style: {
|
|
@@ -37931,8 +37933,8 @@ const Y0 = () => {
|
|
|
37931
37933
|
children: "⚠ 未登入(uid 為空):socket 推播會因 isForMember 不成立而被 忽略,點了不會有反應。請先登入,或改用 Toast 測。"
|
|
37932
37934
|
}
|
|
37933
37935
|
),
|
|
37934
|
-
/* @__PURE__ */
|
|
37935
|
-
/* @__PURE__ */
|
|
37936
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { display: "flex", gap: "4px", marginBottom: "5px" }, children: [
|
|
37937
|
+
/* @__PURE__ */ ie.jsx(
|
|
37936
37938
|
"input",
|
|
37937
37939
|
{
|
|
37938
37940
|
value: o,
|
|
@@ -37950,7 +37952,7 @@ const Y0 = () => {
|
|
|
37950
37952
|
}
|
|
37951
37953
|
}
|
|
37952
37954
|
),
|
|
37953
|
-
/* @__PURE__ */
|
|
37955
|
+
/* @__PURE__ */ ie.jsx(
|
|
37954
37956
|
"button",
|
|
37955
37957
|
{
|
|
37956
37958
|
type: "button",
|
|
@@ -37969,7 +37971,7 @@ const Y0 = () => {
|
|
|
37969
37971
|
}
|
|
37970
37972
|
)
|
|
37971
37973
|
] }),
|
|
37972
|
-
/* @__PURE__ */
|
|
37974
|
+
/* @__PURE__ */ ie.jsx(
|
|
37973
37975
|
"input",
|
|
37974
37976
|
{
|
|
37975
37977
|
value: i,
|
|
@@ -37988,9 +37990,9 @@ const Y0 = () => {
|
|
|
37988
37990
|
}
|
|
37989
37991
|
}
|
|
37990
37992
|
),
|
|
37991
|
-
/* @__PURE__ */
|
|
37992
|
-
_.length === 0 && /* @__PURE__ */
|
|
37993
|
-
_.map((h) => /* @__PURE__ */
|
|
37993
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { maxHeight: "32vh", overflowY: "auto" }, children: [
|
|
37994
|
+
_.length === 0 && /* @__PURE__ */ ie.jsx("div", { style: { fontSize: "10px", color: "#777", padding: "4px" }, children: "沒有符合的訊息" }),
|
|
37995
|
+
_.map((h) => /* @__PURE__ */ ie.jsxs(
|
|
37994
37996
|
"button",
|
|
37995
37997
|
{
|
|
37996
37998
|
type: "button",
|
|
@@ -38011,9 +38013,9 @@ const Y0 = () => {
|
|
|
38011
38013
|
lineHeight: 1.35
|
|
38012
38014
|
},
|
|
38013
38015
|
children: [
|
|
38014
|
-
/* @__PURE__ */
|
|
38015
|
-
/* @__PURE__ */
|
|
38016
|
-
/* @__PURE__ */
|
|
38016
|
+
/* @__PURE__ */ ie.jsx("span", { style: { color: "#d3b552" }, children: s[h] }),
|
|
38017
|
+
/* @__PURE__ */ ie.jsx("br", {}),
|
|
38018
|
+
/* @__PURE__ */ ie.jsx("span", { style: { opacity: 0.5, wordBreak: "break-all" }, children: h })
|
|
38017
38019
|
]
|
|
38018
38020
|
},
|
|
38019
38021
|
h
|
|
@@ -38023,7 +38025,7 @@ const Y0 = () => {
|
|
|
38023
38025
|
]
|
|
38024
38026
|
}
|
|
38025
38027
|
),
|
|
38026
|
-
/* @__PURE__ */
|
|
38028
|
+
/* @__PURE__ */ ie.jsx("div", { style: { fontSize: "9px", color: "#666", marginTop: "4px" }, children: "僅測試環境顯示;正式站請勿傳 enabled" })
|
|
38027
38029
|
]
|
|
38028
38030
|
}
|
|
38029
38031
|
)
|
|
@@ -38040,7 +38042,7 @@ const Y0 = () => {
|
|
|
38040
38042
|
retry: !1
|
|
38041
38043
|
}
|
|
38042
38044
|
});
|
|
38043
|
-
|
|
38045
|
+
fe(() => {
|
|
38044
38046
|
n.current || b === "true" && l && i && (o({
|
|
38045
38047
|
trans_code: d,
|
|
38046
38048
|
line_id: l,
|
|
@@ -38059,7 +38061,7 @@ const Y0 = () => {
|
|
|
38059
38061
|
const g = () => {
|
|
38060
38062
|
window.location.href = `https://liff.line.me/${s}`;
|
|
38061
38063
|
};
|
|
38062
|
-
return s ? /* @__PURE__ */
|
|
38064
|
+
return s ? /* @__PURE__ */ ie.jsx(
|
|
38063
38065
|
"button",
|
|
38064
38066
|
{
|
|
38065
38067
|
className: "line-login-btn",
|
|
@@ -38486,7 +38488,7 @@ var Ma;
|
|
|
38486
38488
|
if (!d)
|
|
38487
38489
|
throw new Error("Assertion error");
|
|
38488
38490
|
}
|
|
38489
|
-
const u = class
|
|
38491
|
+
const u = class Te {
|
|
38490
38492
|
/*-- Constructor (low level) and fields --*/
|
|
38491
38493
|
// Creates a new QR Code segment with the given attributes and data.
|
|
38492
38494
|
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
@@ -38504,36 +38506,36 @@ var Ma;
|
|
|
38504
38506
|
let i = [];
|
|
38505
38507
|
for (const r of l)
|
|
38506
38508
|
a(r, 8, i);
|
|
38507
|
-
return new
|
|
38509
|
+
return new Te(Te.Mode.BYTE, l.length, i);
|
|
38508
38510
|
}
|
|
38509
38511
|
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
38510
38512
|
static makeNumeric(l) {
|
|
38511
|
-
if (!
|
|
38513
|
+
if (!Te.isNumeric(l))
|
|
38512
38514
|
throw new RangeError("String contains non-numeric characters");
|
|
38513
38515
|
let i = [];
|
|
38514
38516
|
for (let r = 0; r < l.length; ) {
|
|
38515
38517
|
const o = Math.min(l.length - r, 3);
|
|
38516
38518
|
a(parseInt(l.substring(r, r + o), 10), o * 3 + 1, i), r += o;
|
|
38517
38519
|
}
|
|
38518
|
-
return new
|
|
38520
|
+
return new Te(Te.Mode.NUMERIC, l.length, i);
|
|
38519
38521
|
}
|
|
38520
38522
|
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
38521
38523
|
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
38522
38524
|
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
38523
38525
|
static makeAlphanumeric(l) {
|
|
38524
|
-
if (!
|
|
38526
|
+
if (!Te.isAlphanumeric(l))
|
|
38525
38527
|
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
38526
38528
|
let i = [], r;
|
|
38527
38529
|
for (r = 0; r + 2 <= l.length; r += 2) {
|
|
38528
|
-
let o =
|
|
38529
|
-
o +=
|
|
38530
|
+
let o = Te.ALPHANUMERIC_CHARSET.indexOf(l.charAt(r)) * 45;
|
|
38531
|
+
o += Te.ALPHANUMERIC_CHARSET.indexOf(l.charAt(r + 1)), a(o, 11, i);
|
|
38530
38532
|
}
|
|
38531
|
-
return r < l.length && a(
|
|
38533
|
+
return r < l.length && a(Te.ALPHANUMERIC_CHARSET.indexOf(l.charAt(r)), 6, i), new Te(Te.Mode.ALPHANUMERIC, l.length, i);
|
|
38532
38534
|
}
|
|
38533
38535
|
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
38534
38536
|
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
38535
38537
|
static makeSegments(l) {
|
|
38536
|
-
return l == "" ? [] :
|
|
38538
|
+
return l == "" ? [] : Te.isNumeric(l) ? [Te.makeNumeric(l)] : Te.isAlphanumeric(l) ? [Te.makeAlphanumeric(l)] : [Te.makeBytes(Te.toUtf8ByteArray(l))];
|
|
38537
38539
|
}
|
|
38538
38540
|
// Returns a segment representing an Extended Channel Interpretation
|
|
38539
38541
|
// (ECI) designator with the given assignment value.
|
|
@@ -38549,18 +38551,18 @@ var Ma;
|
|
|
38549
38551
|
a(6, 3, i), a(l, 21, i);
|
|
38550
38552
|
else
|
|
38551
38553
|
throw new RangeError("ECI assignment value out of range");
|
|
38552
|
-
return new
|
|
38554
|
+
return new Te(Te.Mode.ECI, 0, i);
|
|
38553
38555
|
}
|
|
38554
38556
|
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
38555
38557
|
// A string is encodable iff each character is in the range 0 to 9.
|
|
38556
38558
|
static isNumeric(l) {
|
|
38557
|
-
return
|
|
38559
|
+
return Te.NUMERIC_REGEX.test(l);
|
|
38558
38560
|
}
|
|
38559
38561
|
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
38560
38562
|
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
38561
38563
|
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
38562
38564
|
static isAlphanumeric(l) {
|
|
38563
|
-
return
|
|
38565
|
+
return Te.ALPHANUMERIC_REGEX.test(l);
|
|
38564
38566
|
}
|
|
38565
38567
|
/*-- Methods --*/
|
|
38566
38568
|
// Returns a new copy of the data bits of this segment.
|
|
@@ -38770,12 +38772,12 @@ var mu = (function() {
|
|
|
38770
38772
|
H,
|
|
38771
38773
|
S.excavation
|
|
38772
38774
|
));
|
|
38773
|
-
const
|
|
38774
|
-
R.height = R.width = u *
|
|
38775
|
-
const
|
|
38776
|
-
L.scale(
|
|
38777
|
-
N.forEach(function(
|
|
38778
|
-
|
|
38775
|
+
const z = window.devicePixelRatio || 1;
|
|
38776
|
+
R.height = R.width = u * z;
|
|
38777
|
+
const B = u / k * z;
|
|
38778
|
+
L.scale(B, B), L.fillStyle = d, L.fillRect(0, 0, k, k), L.fillStyle = l, mu ? L.fill(new Path2D(al(G, D))) : H.forEach(function(N, E) {
|
|
38779
|
+
N.forEach(function(w, P) {
|
|
38780
|
+
w && L.fillRect(P + D, E + D, 1, 1);
|
|
38779
38781
|
});
|
|
38780
38782
|
}), S && (L.globalAlpha = S.opacity), W && L.drawImage(
|
|
38781
38783
|
I,
|
|
@@ -38788,9 +38790,9 @@ var mu = (function() {
|
|
|
38788
38790
|
}), ve.useEffect(() => {
|
|
38789
38791
|
h(!1);
|
|
38790
38792
|
}, [c]);
|
|
38791
|
-
const
|
|
38792
|
-
let
|
|
38793
|
-
return c != null && (
|
|
38793
|
+
const F = xi({ height: u, width: u }, y);
|
|
38794
|
+
let A = null;
|
|
38795
|
+
return c != null && (A = /* @__PURE__ */ ve.createElement(
|
|
38794
38796
|
"img",
|
|
38795
38797
|
{
|
|
38796
38798
|
src: c,
|
|
@@ -38805,13 +38807,13 @@ var mu = (function() {
|
|
|
38805
38807
|
)), /* @__PURE__ */ ve.createElement(ve.Fragment, null, /* @__PURE__ */ ve.createElement(
|
|
38806
38808
|
"canvas",
|
|
38807
38809
|
xi({
|
|
38808
|
-
style:
|
|
38810
|
+
style: F,
|
|
38809
38811
|
height: u,
|
|
38810
38812
|
width: u,
|
|
38811
38813
|
ref: v,
|
|
38812
38814
|
role: "img"
|
|
38813
38815
|
}, _)
|
|
38814
|
-
),
|
|
38816
|
+
), A);
|
|
38815
38817
|
}
|
|
38816
38818
|
);
|
|
38817
38819
|
uu.displayName = "QRCodeCanvas";
|
|
@@ -38938,7 +38940,7 @@ const pu = {
|
|
|
38938
38940
|
expired: "Kode QR telah kedaluwarsa"
|
|
38939
38941
|
}
|
|
38940
38942
|
}, ip = ({ forcedShow: e = !1, isVisible: t, setIsVisible: a } = {}) => {
|
|
38941
|
-
const { lng: n, getToken: s, lineConfig: u } = re(), [b, d] =
|
|
38943
|
+
const { lng: n, getToken: s, lineConfig: u } = re(), [b, d] = je(300), [l, i] = je(!1), r = se(null), o = j(u, "liffId", ""), m = Je(n), g = s?.(), f = new URLSearchParams(window.location.search).get("mac") || Ci.get("machine_mac_address") || "", { data: y, isFetching: _ } = Es({
|
|
38942
38944
|
formData: {
|
|
38943
38945
|
mac_address: f
|
|
38944
38946
|
},
|
|
@@ -38946,9 +38948,9 @@ const pu = {
|
|
|
38946
38948
|
enabled: e ? !0 : !!f && !g
|
|
38947
38949
|
}
|
|
38948
38950
|
}), c = j(y, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
38949
|
-
|
|
38951
|
+
fe(() => {
|
|
38950
38952
|
f && Ci.set("machine_mac_address", f, { expires: 365 });
|
|
38951
|
-
}, [f]),
|
|
38953
|
+
}, [f]), fe(() => (c && (d(300), i(!1), r.current && clearInterval(r.current), r.current = setInterval(() => {
|
|
38952
38954
|
d((v) => v <= 1 ? (clearInterval(r.current), i(!0), 0) : v - 1);
|
|
38953
38955
|
}, 1e3)), () => {
|
|
38954
38956
|
r.current && clearInterval(r.current);
|
|
@@ -38959,8 +38961,8 @@ const pu = {
|
|
|
38959
38961
|
};
|
|
38960
38962
|
if (!e && (!f || g)) return null;
|
|
38961
38963
|
const C = nr[m] || nr.en_US;
|
|
38962
|
-
return t && /* @__PURE__ */
|
|
38963
|
-
/* @__PURE__ */
|
|
38964
|
+
return t && /* @__PURE__ */ ie.jsxs("div", { style: pu, children: [
|
|
38965
|
+
/* @__PURE__ */ ie.jsx(
|
|
38964
38966
|
"div",
|
|
38965
38967
|
{
|
|
38966
38968
|
style: gu,
|
|
@@ -38970,9 +38972,9 @@ const pu = {
|
|
|
38970
38972
|
children: "✕"
|
|
38971
38973
|
}
|
|
38972
38974
|
),
|
|
38973
|
-
l ? /* @__PURE__ */
|
|
38974
|
-
/* @__PURE__ */
|
|
38975
|
-
/* @__PURE__ */
|
|
38975
|
+
l ? /* @__PURE__ */ ie.jsx("p", { style: { fontWeight: "bold" }, children: C.expired }) : /* @__PURE__ */ ie.jsxs(ie.Fragment, { children: [
|
|
38976
|
+
/* @__PURE__ */ ie.jsx("p", { style: { fontWeight: "bold", fontSize: "3em" }, children: C.title }),
|
|
38977
|
+
/* @__PURE__ */ ie.jsx(
|
|
38976
38978
|
"div",
|
|
38977
38979
|
{
|
|
38978
38980
|
style: {
|
|
@@ -38986,10 +38988,10 @@ const pu = {
|
|
|
38986
38988
|
boxSizing: "border-box",
|
|
38987
38989
|
color: "black"
|
|
38988
38990
|
},
|
|
38989
|
-
children: _ ? "Loading..." : /* @__PURE__ */
|
|
38991
|
+
children: _ ? "Loading..." : /* @__PURE__ */ ie.jsx(nl, { width: "100%", height: "100%", value: c })
|
|
38990
38992
|
}
|
|
38991
38993
|
),
|
|
38992
|
-
!_ && /* @__PURE__ */
|
|
38994
|
+
!_ && /* @__PURE__ */ ie.jsx(
|
|
38993
38995
|
"p",
|
|
38994
38996
|
{
|
|
38995
38997
|
style: {
|
|
@@ -39459,7 +39461,7 @@ const pu = {
|
|
|
39459
39461
|
]
|
|
39460
39462
|
}
|
|
39461
39463
|
}
|
|
39462
|
-
}, du = (e) => lr[e] || lr.zh_TW, or = ["privacy", "terms"],
|
|
39464
|
+
}, du = (e) => lr[e] || lr.zh_TW, or = ["privacy", "terms"], $e = {
|
|
39463
39465
|
overlay: "rgba(0, 0, 0, 0.72)",
|
|
39464
39466
|
cardBg: "#1b1b22",
|
|
39465
39467
|
border: "#2c2c36",
|
|
@@ -39481,8 +39483,8 @@ const pu = {
|
|
|
39481
39483
|
overlayStyle: d = {},
|
|
39482
39484
|
contentStyle: l = {}
|
|
39483
39485
|
}) => {
|
|
39484
|
-
const i = re(), r = u ?? i?.lng, o =
|
|
39485
|
-
if (e !== _ && (c(e), e && y(p)),
|
|
39486
|
+
const i = re(), r = u ?? i?.lng, o = Je(r), m = du(o), g = { siteName: a, siteUrl: n }, p = or.includes(s) ? s : "privacy", [f, y] = je(p), [_, c] = je(e);
|
|
39487
|
+
if (e !== _ && (c(e), e && y(p)), fe(() => {
|
|
39486
39488
|
if (!e) return;
|
|
39487
39489
|
const v = (h) => {
|
|
39488
39490
|
h.key === "Escape" && t?.(!1);
|
|
@@ -39494,7 +39496,7 @@ const pu = {
|
|
|
39494
39496
|
};
|
|
39495
39497
|
}, [e, t]), !e) return null;
|
|
39496
39498
|
const U = m[f], C = () => t?.(!1);
|
|
39497
|
-
return /* @__PURE__ */
|
|
39499
|
+
return /* @__PURE__ */ ie.jsx(
|
|
39498
39500
|
"div",
|
|
39499
39501
|
{
|
|
39500
39502
|
role: "dialog",
|
|
@@ -39508,13 +39510,13 @@ const pu = {
|
|
|
39508
39510
|
display: "flex",
|
|
39509
39511
|
alignItems: "center",
|
|
39510
39512
|
justifyContent: "center",
|
|
39511
|
-
background:
|
|
39513
|
+
background: $e.overlay,
|
|
39512
39514
|
backdropFilter: "blur(2px)",
|
|
39513
39515
|
padding: 16,
|
|
39514
39516
|
boxSizing: "border-box",
|
|
39515
39517
|
...d
|
|
39516
39518
|
},
|
|
39517
|
-
children: /* @__PURE__ */
|
|
39519
|
+
children: /* @__PURE__ */ ie.jsxs(
|
|
39518
39520
|
"div",
|
|
39519
39521
|
{
|
|
39520
39522
|
onClick: (v) => v.stopPropagation(),
|
|
@@ -39524,36 +39526,36 @@ const pu = {
|
|
|
39524
39526
|
maxHeight: "85vh",
|
|
39525
39527
|
display: "flex",
|
|
39526
39528
|
flexDirection: "column",
|
|
39527
|
-
background:
|
|
39528
|
-
color:
|
|
39529
|
+
background: $e.cardBg,
|
|
39530
|
+
color: $e.body,
|
|
39529
39531
|
borderRadius: 12,
|
|
39530
|
-
border: `1px solid ${
|
|
39532
|
+
border: `1px solid ${$e.border}`,
|
|
39531
39533
|
overflow: "hidden",
|
|
39532
39534
|
boxShadow: "0 16px 48px rgba(0, 0, 0, 0.6)",
|
|
39533
39535
|
...l
|
|
39534
39536
|
},
|
|
39535
39537
|
children: [
|
|
39536
|
-
/* @__PURE__ */
|
|
39538
|
+
/* @__PURE__ */ ie.jsxs(
|
|
39537
39539
|
"div",
|
|
39538
39540
|
{
|
|
39539
39541
|
style: {
|
|
39540
39542
|
display: "flex",
|
|
39541
39543
|
alignItems: "stretch",
|
|
39542
|
-
borderBottom: `1px solid ${
|
|
39544
|
+
borderBottom: `1px solid ${$e.border}`,
|
|
39543
39545
|
flexShrink: 0
|
|
39544
39546
|
},
|
|
39545
39547
|
children: [
|
|
39546
39548
|
or.map((v) => {
|
|
39547
39549
|
const T = f === v ? {
|
|
39548
|
-
color:
|
|
39550
|
+
color: $e.tabActive,
|
|
39549
39551
|
fontWeight: 700,
|
|
39550
|
-
borderBottom: `2px solid ${
|
|
39552
|
+
borderBottom: `2px solid ${$e.accent}`
|
|
39551
39553
|
} : {
|
|
39552
|
-
color:
|
|
39554
|
+
color: $e.tabInactive,
|
|
39553
39555
|
fontWeight: 500,
|
|
39554
39556
|
borderBottom: "2px solid transparent"
|
|
39555
39557
|
};
|
|
39556
|
-
return /* @__PURE__ */
|
|
39558
|
+
return /* @__PURE__ */ ie.jsx(
|
|
39557
39559
|
"button",
|
|
39558
39560
|
{
|
|
39559
39561
|
type: "button",
|
|
@@ -39572,7 +39574,7 @@ const pu = {
|
|
|
39572
39574
|
v
|
|
39573
39575
|
);
|
|
39574
39576
|
}),
|
|
39575
|
-
/* @__PURE__ */
|
|
39577
|
+
/* @__PURE__ */ ie.jsx(
|
|
39576
39578
|
"button",
|
|
39577
39579
|
{
|
|
39578
39580
|
type: "button",
|
|
@@ -39584,7 +39586,7 @@ const pu = {
|
|
|
39584
39586
|
border: "none",
|
|
39585
39587
|
cursor: "pointer",
|
|
39586
39588
|
fontSize: 20,
|
|
39587
|
-
color:
|
|
39589
|
+
color: $e.muted
|
|
39588
39590
|
},
|
|
39589
39591
|
children: "✕"
|
|
39590
39592
|
}
|
|
@@ -39592,34 +39594,34 @@ const pu = {
|
|
|
39592
39594
|
]
|
|
39593
39595
|
}
|
|
39594
39596
|
),
|
|
39595
|
-
/* @__PURE__ */
|
|
39596
|
-
/* @__PURE__ */
|
|
39597
|
-
U?.updatedAt && /* @__PURE__ */
|
|
39597
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { padding: 20, overflowY: "auto" }, children: [
|
|
39598
|
+
/* @__PURE__ */ ie.jsx("h2", { style: { margin: "0 0 4px", fontSize: 20, color: $e.title }, children: bi(U?.title, g) }),
|
|
39599
|
+
U?.updatedAt && /* @__PURE__ */ ie.jsxs("p", { style: { margin: "0 0 16px", fontSize: 12, color: $e.muted }, children: [
|
|
39598
39600
|
m.updatedLabel,
|
|
39599
39601
|
":",
|
|
39600
39602
|
U.updatedAt
|
|
39601
39603
|
] }),
|
|
39602
|
-
U?.sections?.map((v, T) => /* @__PURE__ */
|
|
39603
|
-
v.heading ? /* @__PURE__ */
|
|
39604
|
+
U?.sections?.map((v, T) => /* @__PURE__ */ ie.jsxs("div", { style: { marginBottom: 16 }, children: [
|
|
39605
|
+
v.heading ? /* @__PURE__ */ ie.jsx(
|
|
39604
39606
|
"h3",
|
|
39605
39607
|
{
|
|
39606
39608
|
style: {
|
|
39607
39609
|
margin: "0 0 6px",
|
|
39608
39610
|
fontSize: 15,
|
|
39609
39611
|
fontWeight: 700,
|
|
39610
|
-
color:
|
|
39612
|
+
color: $e.heading
|
|
39611
39613
|
},
|
|
39612
39614
|
children: bi(v.heading, g)
|
|
39613
39615
|
}
|
|
39614
39616
|
) : null,
|
|
39615
|
-
v.body.map((h, D) => /* @__PURE__ */
|
|
39617
|
+
v.body.map((h, D) => /* @__PURE__ */ ie.jsx(
|
|
39616
39618
|
"p",
|
|
39617
39619
|
{
|
|
39618
39620
|
style: {
|
|
39619
39621
|
margin: "0 0 8px",
|
|
39620
39622
|
fontSize: 13,
|
|
39621
39623
|
lineHeight: 1.8,
|
|
39622
|
-
color:
|
|
39624
|
+
color: $e.body
|
|
39623
39625
|
},
|
|
39624
39626
|
children: bi(h, g)
|
|
39625
39627
|
},
|
|
@@ -39633,7 +39635,7 @@ const pu = {
|
|
|
39633
39635
|
}
|
|
39634
39636
|
);
|
|
39635
39637
|
}, rp = (e = !1) => {
|
|
39636
|
-
const [t, a] =
|
|
39638
|
+
const [t, a] = je(e), n = M(() => a(!0), []), s = M(() => a(!1), []), u = M(() => a((d) => !d), []), b = M((d) => a(!!d), []);
|
|
39637
39639
|
return { open: t, setOpen: a, onOpen: n, onClose: s, onToggle: u, onOpenChange: b };
|
|
39638
39640
|
};
|
|
39639
39641
|
export {
|
|
@@ -39656,7 +39658,7 @@ export {
|
|
|
39656
39658
|
Ml as buildSinglePlatformWithSubTypes,
|
|
39657
39659
|
Gl as buildSingleType,
|
|
39658
39660
|
Jm as categorizeGames,
|
|
39659
|
-
|
|
39661
|
+
Je as convertLanguageCode,
|
|
39660
39662
|
Nl as convertLanguageGameCode,
|
|
39661
39663
|
nt as correctViewportDrift,
|
|
39662
39664
|
vu as createLogoutHandler,
|