@obb871001/api-integration-sdk 1.0.114 → 1.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.js +613 -609
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import
|
|
4
|
-
import { find as na, isEmpty as O, isObject as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
1
|
+
import Le, { createContext as ti, useContext as ni, useCallback as K, useMemo as ia, useEffect as De, useRef as Ea } from "react";
|
|
2
|
+
import { useQuery as le, QueryClient as al, QueryClientProvider as il, useQueries as mi, useMutation as ri } from "@tanstack/react-query";
|
|
3
|
+
import ll from "axios";
|
|
4
|
+
import { find as na, isEmpty as O, isObject as Ve, flatMap as Ae, isArray as te, map as Ie, entries as tl, values as nl, keys as La, get as we, replace as Ga, includes as ml } from "lodash";
|
|
5
|
+
import rl from "react-dom";
|
|
6
|
+
function ol(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
|
|
14
|
-
var e =
|
|
9
|
+
var Fe = { exports: {} }, he = {};
|
|
10
|
+
var Ma;
|
|
11
|
+
function sl() {
|
|
12
|
+
if (Ma) return he;
|
|
13
|
+
Ma = 1;
|
|
14
|
+
var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
15
15
|
function f(_, u, g) {
|
|
16
|
-
var s, l = {},
|
|
17
|
-
g !== void 0 && (
|
|
16
|
+
var s, l = {}, c = null, n = null;
|
|
17
|
+
g !== void 0 && (c = "" + g), u.key !== void 0 && (c = "" + u.key), u.ref !== void 0 && (n = u.ref);
|
|
18
18
|
for (s in u) t.call(u, s) && !p.hasOwnProperty(s) && (l[s] = u[s]);
|
|
19
19
|
if (_ && _.defaultProps) for (s in u = _.defaultProps, u) l[s] === void 0 && (l[s] = u[s]);
|
|
20
|
-
return { $$typeof: i, type: _, key:
|
|
20
|
+
return { $$typeof: i, type: _, key: c, ref: n, props: l, _owner: r.current };
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return he.Fragment = m, he.jsx = f, he.jsxs = f, he;
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return
|
|
28
|
-
var e =
|
|
24
|
+
var ke = {};
|
|
25
|
+
var Ra;
|
|
26
|
+
function ul() {
|
|
27
|
+
return Ra || (Ra = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
28
|
+
var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), n = Symbol.for("react.offscreen"), o = Symbol.iterator, y = "@@iterator";
|
|
29
29
|
function b(a) {
|
|
30
30
|
if (a === null || typeof a != "object")
|
|
31
31
|
return null;
|
|
32
32
|
var U = o && a[o] || a[y];
|
|
33
33
|
return typeof U == "function" ? U : null;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var d = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
36
36
|
function T(a) {
|
|
37
37
|
{
|
|
38
38
|
for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), h = 1; h < U; h++)
|
|
@@ -42,31 +42,31 @@ function sl() {
|
|
|
42
42
|
}
|
|
43
43
|
function S(a, U, C) {
|
|
44
44
|
{
|
|
45
|
-
var h =
|
|
46
|
-
|
|
47
|
-
var M = C.map(function(
|
|
48
|
-
return String(
|
|
45
|
+
var h = d.ReactDebugCurrentFrame, G = h.getStackAddendum();
|
|
46
|
+
G !== "" && (U += "%s", C = C.concat([G]));
|
|
47
|
+
var M = C.map(function(N) {
|
|
48
|
+
return String(N);
|
|
49
49
|
});
|
|
50
50
|
M.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, M);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
var E = !1, v = !1,
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
return !!(typeof a == "string" || typeof a == "function" || a === t || a === p ||
|
|
53
|
+
var E = !1, v = !1, D = !1, L = !1, A = !1, Q;
|
|
54
|
+
Q = Symbol.for("react.module.reference");
|
|
55
|
+
function Te(a) {
|
|
56
|
+
return !!(typeof a == "string" || typeof a == "function" || a === t || a === p || A || a === r || a === g || a === s || L || a === n || E || v || D || typeof a == "object" && a !== null && (a.$$typeof === c || a.$$typeof === l || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === u || // This needs to include all possible module reference object
|
|
57
57
|
// types supported by any Flight configuration anywhere since
|
|
58
58
|
// we don't know which Flight build this will end up being used
|
|
59
59
|
// with.
|
|
60
|
-
a.$$typeof ===
|
|
60
|
+
a.$$typeof === Q || a.getModuleId !== void 0));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Ge(a, U, C) {
|
|
63
63
|
var h = a.displayName;
|
|
64
64
|
if (h)
|
|
65
65
|
return h;
|
|
66
|
-
var
|
|
67
|
-
return
|
|
66
|
+
var G = U.displayName || U.name || "";
|
|
67
|
+
return G !== "" ? C + "(" + G + ")" : C;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function I(a) {
|
|
70
70
|
return a.displayName || "Context";
|
|
71
71
|
}
|
|
72
72
|
function w(a) {
|
|
@@ -94,19 +94,19 @@ function sl() {
|
|
|
94
94
|
switch (a.$$typeof) {
|
|
95
95
|
case _:
|
|
96
96
|
var U = a;
|
|
97
|
-
return
|
|
97
|
+
return I(U) + ".Consumer";
|
|
98
98
|
case f:
|
|
99
99
|
var C = a;
|
|
100
|
-
return
|
|
100
|
+
return I(C._context) + ".Provider";
|
|
101
101
|
case u:
|
|
102
|
-
return
|
|
102
|
+
return Ge(a, a.render, "ForwardRef");
|
|
103
103
|
case l:
|
|
104
104
|
var h = a.displayName || null;
|
|
105
105
|
return h !== null ? h : w(a.type) || "Memo";
|
|
106
|
-
case
|
|
107
|
-
var
|
|
106
|
+
case c: {
|
|
107
|
+
var G = a, M = G._payload, N = G._init;
|
|
108
108
|
try {
|
|
109
|
-
return w(
|
|
109
|
+
return w(N(M));
|
|
110
110
|
} catch {
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
@@ -114,14 +114,14 @@ function sl() {
|
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var V = Object.assign, me = 0,
|
|
117
|
+
var V = Object.assign, me = 0, q, Me, Re, x, F, Y, Ce;
|
|
118
118
|
function re() {
|
|
119
119
|
}
|
|
120
120
|
re.__reactDisabledLog = !0;
|
|
121
|
-
function
|
|
121
|
+
function ie() {
|
|
122
122
|
{
|
|
123
123
|
if (me === 0) {
|
|
124
|
-
|
|
124
|
+
q = console.log, Me = console.info, Re = console.warn, x = console.error, F = console.group, Y = console.groupCollapsed, Ce = console.groupEnd;
|
|
125
125
|
var a = {
|
|
126
126
|
configurable: !0,
|
|
127
127
|
enumerable: !0,
|
|
@@ -141,7 +141,7 @@ function sl() {
|
|
|
141
141
|
me++;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Pe() {
|
|
145
145
|
{
|
|
146
146
|
if (me--, me === 0) {
|
|
147
147
|
var a = {
|
|
@@ -151,13 +151,13 @@ function sl() {
|
|
|
151
151
|
};
|
|
152
152
|
Object.defineProperties(console, {
|
|
153
153
|
log: V({}, a, {
|
|
154
|
-
value:
|
|
154
|
+
value: q
|
|
155
155
|
}),
|
|
156
156
|
info: V({}, a, {
|
|
157
|
-
value:
|
|
157
|
+
value: Me
|
|
158
158
|
}),
|
|
159
159
|
warn: V({}, a, {
|
|
160
|
-
value:
|
|
160
|
+
value: Re
|
|
161
161
|
}),
|
|
162
162
|
error: V({}, a, {
|
|
163
163
|
value: x
|
|
@@ -166,72 +166,72 @@ function sl() {
|
|
|
166
166
|
value: F
|
|
167
167
|
}),
|
|
168
168
|
groupCollapsed: V({}, a, {
|
|
169
|
-
value:
|
|
169
|
+
value: Y
|
|
170
170
|
}),
|
|
171
171
|
groupEnd: V({}, a, {
|
|
172
|
-
value:
|
|
172
|
+
value: Ce
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
me < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
var de =
|
|
179
|
+
var de = d.ReactCurrentDispatcher, X;
|
|
180
180
|
function ce(a, U, C) {
|
|
181
181
|
{
|
|
182
|
-
if (
|
|
182
|
+
if (X === void 0)
|
|
183
183
|
try {
|
|
184
184
|
throw Error();
|
|
185
|
-
} catch (
|
|
186
|
-
var h =
|
|
187
|
-
|
|
185
|
+
} catch (G) {
|
|
186
|
+
var h = G.stack.trim().match(/\n( *(at )?)/);
|
|
187
|
+
X = h && h[1] || "";
|
|
188
188
|
}
|
|
189
189
|
return `
|
|
190
|
-
` +
|
|
190
|
+
` + X + a;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var oe = !1,
|
|
193
|
+
var oe = !1, xe;
|
|
194
194
|
{
|
|
195
|
-
var
|
|
196
|
-
|
|
195
|
+
var Gi = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
|
+
xe = new Gi();
|
|
197
197
|
}
|
|
198
198
|
function da(a, U) {
|
|
199
199
|
if (!a || oe)
|
|
200
200
|
return "";
|
|
201
201
|
{
|
|
202
|
-
var C =
|
|
202
|
+
var C = xe.get(a);
|
|
203
203
|
if (C !== void 0)
|
|
204
204
|
return C;
|
|
205
205
|
}
|
|
206
206
|
var h;
|
|
207
207
|
oe = !0;
|
|
208
|
-
var
|
|
208
|
+
var G = Error.prepareStackTrace;
|
|
209
209
|
Error.prepareStackTrace = void 0;
|
|
210
210
|
var M;
|
|
211
|
-
M = de.current, de.current = null,
|
|
211
|
+
M = de.current, de.current = null, ie();
|
|
212
212
|
try {
|
|
213
213
|
if (U) {
|
|
214
|
-
var
|
|
214
|
+
var N = function() {
|
|
215
215
|
throw Error();
|
|
216
216
|
};
|
|
217
|
-
if (Object.defineProperty(
|
|
217
|
+
if (Object.defineProperty(N.prototype, "props", {
|
|
218
218
|
set: function() {
|
|
219
219
|
throw Error();
|
|
220
220
|
}
|
|
221
221
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
222
222
|
try {
|
|
223
|
-
Reflect.construct(
|
|
223
|
+
Reflect.construct(N, []);
|
|
224
224
|
} catch (J) {
|
|
225
225
|
h = J;
|
|
226
226
|
}
|
|
227
|
-
Reflect.construct(a, [],
|
|
227
|
+
Reflect.construct(a, [], N);
|
|
228
228
|
} else {
|
|
229
229
|
try {
|
|
230
|
-
|
|
230
|
+
N.call();
|
|
231
231
|
} catch (J) {
|
|
232
232
|
h = J;
|
|
233
233
|
}
|
|
234
|
-
a.call(
|
|
234
|
+
a.call(N.prototype);
|
|
235
235
|
}
|
|
236
236
|
} else {
|
|
237
237
|
try {
|
|
@@ -254,30 +254,30 @@ function sl() {
|
|
|
254
254
|
if (R--, P--, P < 0 || k[R] !== W[P]) {
|
|
255
255
|
var Z = `
|
|
256
256
|
` + k[R].replace(" at new ", " at ");
|
|
257
|
-
return a.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", a.displayName)), typeof a == "function" &&
|
|
257
|
+
return a.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", a.displayName)), typeof a == "function" && xe.set(a, Z), Z;
|
|
258
258
|
}
|
|
259
259
|
while (R >= 1 && P >= 0);
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
} finally {
|
|
264
|
-
oe = !1, de.current = M,
|
|
264
|
+
oe = !1, de.current = M, Pe(), Error.prepareStackTrace = G;
|
|
265
265
|
}
|
|
266
266
|
var fe = a ? a.displayName || a.name : "", se = fe ? ce(fe) : "";
|
|
267
|
-
return typeof a == "function" &&
|
|
267
|
+
return typeof a == "function" && xe.set(a, se), se;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Mi(a, U, C) {
|
|
270
270
|
return da(a, !1);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ri(a) {
|
|
273
273
|
var U = a.prototype;
|
|
274
274
|
return !!(U && U.isReactComponent);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Oe(a, U, C) {
|
|
277
277
|
if (a == null)
|
|
278
278
|
return "";
|
|
279
279
|
if (typeof a == "function")
|
|
280
|
-
return da(a,
|
|
280
|
+
return da(a, Ri(a));
|
|
281
281
|
if (typeof a == "string")
|
|
282
282
|
return ce(a);
|
|
283
283
|
switch (a) {
|
|
@@ -289,57 +289,57 @@ function sl() {
|
|
|
289
289
|
if (typeof a == "object")
|
|
290
290
|
switch (a.$$typeof) {
|
|
291
291
|
case u:
|
|
292
|
-
return
|
|
292
|
+
return Mi(a.render);
|
|
293
293
|
case l:
|
|
294
|
-
return
|
|
295
|
-
case
|
|
296
|
-
var h = a,
|
|
294
|
+
return Oe(a.type, U, C);
|
|
295
|
+
case c: {
|
|
296
|
+
var h = a, G = h._payload, M = h._init;
|
|
297
297
|
try {
|
|
298
|
-
return
|
|
298
|
+
return Oe(M(G), U, C);
|
|
299
299
|
} catch {
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
return "";
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
305
|
+
var ve = Object.prototype.hasOwnProperty, ca = {}, _a = d.ReactDebugCurrentFrame;
|
|
306
|
+
function He(a) {
|
|
307
307
|
if (a) {
|
|
308
|
-
var U = a._owner, C =
|
|
308
|
+
var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
|
|
309
309
|
_a.setExtraStackFrame(C);
|
|
310
310
|
} else
|
|
311
311
|
_a.setExtraStackFrame(null);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Pi(a, U, C, h, G) {
|
|
314
314
|
{
|
|
315
|
-
var M = Function.call.bind(
|
|
316
|
-
for (var
|
|
317
|
-
if (M(a,
|
|
315
|
+
var M = Function.call.bind(ve);
|
|
316
|
+
for (var N in a)
|
|
317
|
+
if (M(a, N)) {
|
|
318
318
|
var k = void 0;
|
|
319
319
|
try {
|
|
320
|
-
if (typeof a[
|
|
321
|
-
var W = Error((h || "React class") + ": " + C + " type `" +
|
|
320
|
+
if (typeof a[N] != "function") {
|
|
321
|
+
var W = Error((h || "React class") + ": " + C + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
322
322
|
throw W.name = "Invariant Violation", W;
|
|
323
323
|
}
|
|
324
|
-
k = a[
|
|
324
|
+
k = a[N](U, N, h, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
325
325
|
} catch (R) {
|
|
326
326
|
k = R;
|
|
327
327
|
}
|
|
328
|
-
k && !(k instanceof Error) && (
|
|
328
|
+
k && !(k instanceof Error) && (He(G), T("%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).", h || "React class", C, N, typeof k), He(null)), k instanceof Error && !(k.message in ca) && (ca[k.message] = !0, He(G), T("Failed %s type: %s", C, k.message), He(null));
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var xi = Array.isArray;
|
|
333
333
|
function Be(a) {
|
|
334
|
-
return
|
|
334
|
+
return xi(a);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Oi(a) {
|
|
337
337
|
{
|
|
338
338
|
var U = typeof Symbol == "function" && Symbol.toStringTag, C = U && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
339
339
|
return C;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Hi(a) {
|
|
343
343
|
try {
|
|
344
344
|
return fa(a), !1;
|
|
345
345
|
} catch {
|
|
@@ -350,35 +350,35 @@ function sl() {
|
|
|
350
350
|
return "" + a;
|
|
351
351
|
}
|
|
352
352
|
function Ua(a) {
|
|
353
|
-
if (
|
|
354
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
353
|
+
if (Hi(a))
|
|
354
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Oi(a)), fa(a);
|
|
355
355
|
}
|
|
356
|
-
var ya =
|
|
356
|
+
var ya = d.ReactCurrentOwner, wi = {
|
|
357
357
|
key: !0,
|
|
358
358
|
ref: !0,
|
|
359
359
|
__self: !0,
|
|
360
360
|
__source: !0
|
|
361
361
|
}, ba, Ta;
|
|
362
|
-
function
|
|
363
|
-
if (
|
|
362
|
+
function Fi(a) {
|
|
363
|
+
if (ve.call(a, "ref")) {
|
|
364
364
|
var U = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
365
365
|
if (U && U.isReactWarning)
|
|
366
366
|
return !1;
|
|
367
367
|
}
|
|
368
368
|
return a.ref !== void 0;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
370
|
+
function Wi(a) {
|
|
371
|
+
if (ve.call(a, "key")) {
|
|
372
372
|
var U = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
373
373
|
if (U && U.isReactWarning)
|
|
374
374
|
return !1;
|
|
375
375
|
}
|
|
376
376
|
return a.key !== void 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Ji(a, U) {
|
|
379
379
|
typeof a.ref == "string" && ya.current;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function zi(a, U) {
|
|
382
382
|
{
|
|
383
383
|
var C = function() {
|
|
384
384
|
ba || (ba = !0, T("%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)", U));
|
|
@@ -389,7 +389,7 @@ function sl() {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Zi(a, U) {
|
|
393
393
|
{
|
|
394
394
|
var C = function() {
|
|
395
395
|
Ta || (Ta = !0, T("%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)", U));
|
|
@@ -400,7 +400,7 @@ function sl() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var Vi = function(a, U, C, h, G, M, N) {
|
|
404
404
|
var k = {
|
|
405
405
|
// This tag allows us to uniquely identify this as a React Element
|
|
406
406
|
$$typeof: i,
|
|
@@ -408,7 +408,7 @@ function sl() {
|
|
|
408
408
|
type: a,
|
|
409
409
|
key: U,
|
|
410
410
|
ref: C,
|
|
411
|
-
props:
|
|
411
|
+
props: N,
|
|
412
412
|
// Record the component responsible for creating this element.
|
|
413
413
|
_owner: M
|
|
414
414
|
};
|
|
@@ -426,31 +426,31 @@ function sl() {
|
|
|
426
426
|
configurable: !1,
|
|
427
427
|
enumerable: !1,
|
|
428
428
|
writable: !1,
|
|
429
|
-
value:
|
|
429
|
+
value: G
|
|
430
430
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function Ai(a, U, C, h, G) {
|
|
433
433
|
{
|
|
434
|
-
var M,
|
|
435
|
-
C !== void 0 && (Ua(C), k = "" + C),
|
|
434
|
+
var M, N = {}, k = null, W = null;
|
|
435
|
+
C !== void 0 && (Ua(C), k = "" + C), Wi(U) && (Ua(U.key), k = "" + U.key), Fi(U) && (W = U.ref, Ji(U, G));
|
|
436
436
|
for (M in U)
|
|
437
|
-
|
|
437
|
+
ve.call(U, M) && !wi.hasOwnProperty(M) && (N[M] = U[M]);
|
|
438
438
|
if (a && a.defaultProps) {
|
|
439
439
|
var R = a.defaultProps;
|
|
440
440
|
for (M in R)
|
|
441
|
-
|
|
441
|
+
N[M] === void 0 && (N[M] = R[M]);
|
|
442
442
|
}
|
|
443
443
|
if (k || W) {
|
|
444
444
|
var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
445
|
-
k &&
|
|
445
|
+
k && zi(N, P), W && Zi(N, P);
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return Vi(a, k, W, G, h, ya.current, N);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var Ke =
|
|
450
|
+
var Ke = d.ReactCurrentOwner, Ca = d.ReactDebugCurrentFrame;
|
|
451
451
|
function _e(a) {
|
|
452
452
|
if (a) {
|
|
453
|
-
var U = a._owner, C =
|
|
453
|
+
var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
|
|
454
454
|
Ca.setExtraStackFrame(C);
|
|
455
455
|
} else
|
|
456
456
|
Ca.setExtraStackFrame(null);
|
|
@@ -472,11 +472,11 @@ Check the render method of \`` + a + "`.";
|
|
|
472
472
|
return "";
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ii(a) {
|
|
476
476
|
return "";
|
|
477
477
|
}
|
|
478
478
|
var ha = {};
|
|
479
|
-
function
|
|
479
|
+
function Bi(a) {
|
|
480
480
|
{
|
|
481
481
|
var U = va();
|
|
482
482
|
if (!U) {
|
|
@@ -493,7 +493,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
493
493
|
if (!a._store || a._store.validated || a.key != null)
|
|
494
494
|
return;
|
|
495
495
|
a._store.validated = !0;
|
|
496
|
-
var C =
|
|
496
|
+
var C = Bi(U);
|
|
497
497
|
if (ha[C])
|
|
498
498
|
return;
|
|
499
499
|
ha[C] = !0;
|
|
@@ -513,14 +513,14 @@ Check the top-level render call using <` + C + ">.");
|
|
|
513
513
|
else if (Qe(a))
|
|
514
514
|
a._store && (a._store.validated = !0);
|
|
515
515
|
else if (a) {
|
|
516
|
-
var
|
|
517
|
-
if (typeof
|
|
518
|
-
for (var M =
|
|
519
|
-
Qe(
|
|
516
|
+
var G = b(a);
|
|
517
|
+
if (typeof G == "function" && G !== a.entries)
|
|
518
|
+
for (var M = G.call(a), N; !(N = M.next()).done; )
|
|
519
|
+
Qe(N.value) && ka(N.value, U);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ki(a) {
|
|
524
524
|
{
|
|
525
525
|
var U = a.type;
|
|
526
526
|
if (U == null || typeof U == "string")
|
|
@@ -536,16 +536,16 @@ Check the top-level render call using <` + C + ">.");
|
|
|
536
536
|
return;
|
|
537
537
|
if (C) {
|
|
538
538
|
var h = w(U);
|
|
539
|
-
|
|
539
|
+
Pi(C, a.props, "prop", h, a);
|
|
540
540
|
} else if (U.PropTypes !== void 0 && !je) {
|
|
541
541
|
je = !0;
|
|
542
|
-
var
|
|
543
|
-
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
542
|
+
var G = w(U);
|
|
543
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
544
544
|
}
|
|
545
545
|
typeof U.getDefaultProps == "function" && !U.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function ji(a) {
|
|
549
549
|
{
|
|
550
550
|
for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
|
|
551
551
|
var h = U[C];
|
|
@@ -558,21 +558,21 @@ Check the top-level render call using <` + C + ">.");
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var Na = {};
|
|
561
|
-
function Da(a, U, C, h,
|
|
561
|
+
function Da(a, U, C, h, G, M) {
|
|
562
562
|
{
|
|
563
|
-
var
|
|
564
|
-
if (!
|
|
563
|
+
var N = Te(a);
|
|
564
|
+
if (!N) {
|
|
565
565
|
var k = "";
|
|
566
566
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
567
|
-
var W =
|
|
567
|
+
var W = Ii();
|
|
568
568
|
W ? k += W : k += va();
|
|
569
569
|
var R;
|
|
570
570
|
a === null ? R = "null" : Be(a) ? R = "array" : a !== void 0 && a.$$typeof === i ? (R = "<" + (w(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, k);
|
|
571
571
|
}
|
|
572
|
-
var P =
|
|
572
|
+
var P = Ai(a, U, C, G, M);
|
|
573
573
|
if (P == null)
|
|
574
574
|
return P;
|
|
575
|
-
if (
|
|
575
|
+
if (N) {
|
|
576
576
|
var Z = U.children;
|
|
577
577
|
if (Z !== void 0)
|
|
578
578
|
if (h)
|
|
@@ -585,45 +585,45 @@ Check the top-level render call using <` + C + ">.");
|
|
|
585
585
|
else
|
|
586
586
|
Sa(Z, a);
|
|
587
587
|
}
|
|
588
|
-
if (
|
|
589
|
-
var se = w(a), J = Object.keys(U).filter(function(
|
|
590
|
-
return
|
|
588
|
+
if (ve.call(U, "key")) {
|
|
589
|
+
var se = w(a), J = Object.keys(U).filter(function(el) {
|
|
590
|
+
return el !== "key";
|
|
591
591
|
}), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
592
|
if (!Na[se + qe]) {
|
|
593
|
-
var
|
|
593
|
+
var $i = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
594
594
|
T(`A props object containing a "key" prop is being spread into JSX:
|
|
595
595
|
let props = %s;
|
|
596
596
|
<%s {...props} />
|
|
597
597
|
React keys must be passed directly to JSX without using spread:
|
|
598
598
|
let props = %s;
|
|
599
|
-
<%s key={someKey} {...props} />`, qe, se,
|
|
599
|
+
<%s key={someKey} {...props} />`, qe, se, $i, se), Na[se + qe] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
return a === t ?
|
|
602
|
+
return a === t ? ji(P) : Ki(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Qi(a, U, C) {
|
|
606
606
|
return Da(a, U, C, !0);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function qi(a, U, C) {
|
|
609
609
|
return Da(a, U, C, !1);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
|
|
613
|
-
})()),
|
|
611
|
+
var Yi = qi, Xi = Qi;
|
|
612
|
+
ke.Fragment = t, ke.jsx = Yi, ke.jsxs = Xi;
|
|
613
|
+
})()), ke;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
return
|
|
615
|
+
var Pa;
|
|
616
|
+
function pl() {
|
|
617
|
+
return Pa || (Pa = 1, process.env.NODE_ENV === "production" ? Fe.exports = sl() : Fe.exports = ul()), Fe.exports;
|
|
618
618
|
}
|
|
619
|
-
var
|
|
620
|
-
const
|
|
621
|
-
const e =
|
|
619
|
+
var ze = pl();
|
|
620
|
+
const oi = ti(null), ne = () => {
|
|
621
|
+
const e = ni(oi);
|
|
622
622
|
if (!e)
|
|
623
623
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
624
624
|
return e;
|
|
625
625
|
};
|
|
626
|
-
function
|
|
626
|
+
function gl({
|
|
627
627
|
baseURL: e,
|
|
628
628
|
getToken: i,
|
|
629
629
|
timeoutMs: m = 15e3,
|
|
@@ -631,7 +631,7 @@ function pl({
|
|
|
631
631
|
store: r,
|
|
632
632
|
onError: p
|
|
633
633
|
} = {}) {
|
|
634
|
-
const f =
|
|
634
|
+
const f = ll.create({
|
|
635
635
|
baseURL: e,
|
|
636
636
|
timeout: m,
|
|
637
637
|
headers: { "Content-Type": "application/json" }
|
|
@@ -648,14 +648,14 @@ function pl({
|
|
|
648
648
|
(_) => p ? p(_, { instance: f }) : Promise.reject(_)
|
|
649
649
|
), f;
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
const e =
|
|
651
|
+
const si = ti(null), ot = () => {
|
|
652
|
+
const e = ni(si);
|
|
653
653
|
if (!e)
|
|
654
654
|
throw new Error(
|
|
655
655
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
656
656
|
);
|
|
657
657
|
return e;
|
|
658
|
-
},
|
|
658
|
+
}, st = () => {
|
|
659
659
|
const e = (t, r) => !t && !r, i = (t) => t.startsWith("pc.");
|
|
660
660
|
return {
|
|
661
661
|
executeLogout: ({
|
|
@@ -674,49 +674,49 @@ const oi = li(null), rt = () => {
|
|
|
674
674
|
shouldShowErrorNotice: e,
|
|
675
675
|
isMachineDomain: i
|
|
676
676
|
};
|
|
677
|
-
},
|
|
677
|
+
}, ui = (e = [], i) => na(e, { gameTypeName: i })?.gameTypeUid, pi = (e = [], i) => na(e, { platform: i })?.platformUid, gi = (e = [], i) => na(e, { SubPlatformEnum: i }), di = (e = [], i, m) => O(e) ? [] : e.filter((t) => m ? String(t?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(t.platformUid) === String(i)), dl = (e = []) => O(e) ? {} : e.reduce((i, m) => {
|
|
678
678
|
const t = m?.game_subtype || "UNKNOWN";
|
|
679
679
|
return i[t] || (i[t] = []), i[t].push(m), i;
|
|
680
|
-
}, {}),
|
|
680
|
+
}, {}), cl = ({
|
|
681
681
|
gameTypeName: e,
|
|
682
682
|
platforms: i,
|
|
683
683
|
gameList: m,
|
|
684
684
|
allGameTypes: t,
|
|
685
685
|
allPlatforms: r
|
|
686
686
|
}) => {
|
|
687
|
-
const p =
|
|
687
|
+
const p = ui(t, e);
|
|
688
688
|
return p ? i.reduce((f, _) => {
|
|
689
|
-
const u =
|
|
689
|
+
const u = pi(r, _), g = gi(r, _), s = m[p] || [], l = di(
|
|
690
690
|
s,
|
|
691
691
|
u,
|
|
692
692
|
g
|
|
693
693
|
);
|
|
694
694
|
return O(l) || (f[_] = l), f;
|
|
695
695
|
}, {}) : {};
|
|
696
|
-
},
|
|
696
|
+
}, _l = ({
|
|
697
697
|
platformName: e,
|
|
698
698
|
gamesOfType: i = [],
|
|
699
699
|
allPlatforms: m = []
|
|
700
700
|
}) => {
|
|
701
|
-
const t =
|
|
701
|
+
const t = pi(m, e), r = gi(m, e), p = di(
|
|
702
702
|
i,
|
|
703
703
|
t,
|
|
704
704
|
r
|
|
705
705
|
);
|
|
706
|
-
return
|
|
707
|
-
},
|
|
706
|
+
return dl(p);
|
|
707
|
+
}, fl = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), xa = (e = []) => !te(e) || O(e) ? [] : Ie(e, "platform"), Ul = (e = []) => !te(e) || O(e) ? [] : Ie(e, "gameTypeName"), yl = (e = []) => !te(e) || O(e) ? [] : Ie(e, "game_subtype"), bl = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), Tl = (e = [], i = []) => !te(e) || O(e) ? {} : !te(i) || O(i) ? {} : e.reduce((m, t) => {
|
|
708
708
|
const r = i.map((p) => p.game_subtype);
|
|
709
709
|
return r.forEach((p) => {
|
|
710
710
|
m[p] = m[p] || [];
|
|
711
711
|
}), r.includes(t.game_subtype) && m[t.game_subtype].push(t), m;
|
|
712
|
-
}, {}),
|
|
712
|
+
}, {}), Cl = ({
|
|
713
713
|
gameTypes: e = [],
|
|
714
714
|
platforms: i = [],
|
|
715
715
|
gameList: m = {},
|
|
716
716
|
allGameTypes: t = [],
|
|
717
717
|
allPlatforms: r = []
|
|
718
|
-
}) => !
|
|
719
|
-
const _ =
|
|
718
|
+
}) => !te(e) || !te(i) ? {} : O(m) ? {} : e.reduce((p, f) => {
|
|
719
|
+
const _ = cl({
|
|
720
720
|
gameTypeName: f,
|
|
721
721
|
platforms: i,
|
|
722
722
|
gameList: m,
|
|
@@ -724,28 +724,28 @@ const oi = li(null), rt = () => {
|
|
|
724
724
|
allPlatforms: r
|
|
725
725
|
});
|
|
726
726
|
return O(_) || (p[f] = _), p;
|
|
727
|
-
}, {}),
|
|
727
|
+
}, {}), ut = ({
|
|
728
728
|
types: e = [],
|
|
729
729
|
platforms: i = [],
|
|
730
730
|
allGameType: m = [],
|
|
731
731
|
allGamePlatform: t = [],
|
|
732
732
|
allGameList: r = {}
|
|
733
733
|
} = {}) => !Array.isArray(e) || !Array.isArray(i) ? {} : e.reduce((p, f) => {
|
|
734
|
-
const _ =
|
|
734
|
+
const _ = ui(m, f);
|
|
735
735
|
if (!_) return p;
|
|
736
736
|
const u = r[_] || [], g = i.reduce((s, l) => {
|
|
737
|
-
const
|
|
737
|
+
const c = _l({
|
|
738
738
|
platformName: l,
|
|
739
739
|
gamesOfType: u,
|
|
740
740
|
allPlatforms: t
|
|
741
741
|
});
|
|
742
|
-
return O(
|
|
742
|
+
return O(c) ? s : { ...s, [l]: c };
|
|
743
743
|
}, {});
|
|
744
744
|
return O(g) || (p[f] = g), p;
|
|
745
|
-
}, {}),
|
|
745
|
+
}, {}), vl = (e = {}) => !Ve(e) || O(e) ? {} : Object.values(e).reduce((m, t) => (Object.entries(t).forEach(([r, p]) => {
|
|
746
746
|
m[r] ? m[r] = [...m[r], ...p] : m[r] = p;
|
|
747
|
-
}), m), {}),
|
|
748
|
-
if (!
|
|
747
|
+
}), m), {}), hl = (e = {}) => {
|
|
748
|
+
if (!Ve(e) || O(e)) return {};
|
|
749
749
|
const i = {};
|
|
750
750
|
for (const [m, t] of Object.entries(e)) {
|
|
751
751
|
i[m] = {};
|
|
@@ -755,7 +755,7 @@ const oi = li(null), rt = () => {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
return i;
|
|
758
|
-
},
|
|
758
|
+
}, kl = ({
|
|
759
759
|
allGameList: e = {},
|
|
760
760
|
allGamePlatform: i = [],
|
|
761
761
|
allGameType: m = [],
|
|
@@ -768,24 +768,28 @@ const oi = li(null), rt = () => {
|
|
|
768
768
|
highlightGames: g = [],
|
|
769
769
|
originPlatform: s = []
|
|
770
770
|
}) => {
|
|
771
|
-
const l =
|
|
771
|
+
const l = fl(e), c = xa(i), n = Ul(m), o = yl(t), y = xa(s), b = bl(_), d = Cl({
|
|
772
772
|
gameTypes: n,
|
|
773
|
-
platforms:
|
|
773
|
+
platforms: c,
|
|
774
774
|
gameList: e,
|
|
775
775
|
allGameTypes: m,
|
|
776
776
|
allPlatforms: i
|
|
777
|
-
}), T =
|
|
778
|
-
(
|
|
779
|
-
const
|
|
780
|
-
return
|
|
777
|
+
}), T = Tl(l, t), S = vl(d), E = hl(S), v = tl(d).reduce(
|
|
778
|
+
(L, [A, Q]) => {
|
|
779
|
+
const Te = Ae(nl(Q));
|
|
780
|
+
return L[A] = Te, L;
|
|
781
781
|
},
|
|
782
782
|
{}
|
|
783
|
-
)
|
|
783
|
+
), D = La(d).reduce((L, A) => {
|
|
784
|
+
const Q = La(d[A]);
|
|
785
|
+
return L[A] = Q, L;
|
|
786
|
+
}, {});
|
|
784
787
|
return {
|
|
785
788
|
platform: {
|
|
786
|
-
all:
|
|
789
|
+
all: c,
|
|
787
790
|
origin: y,
|
|
788
|
-
originPlatform: i
|
|
791
|
+
originPlatform: i,
|
|
792
|
+
byGameType: D
|
|
789
793
|
},
|
|
790
794
|
type: {
|
|
791
795
|
main: n,
|
|
@@ -806,19 +810,19 @@ const oi = li(null), rt = () => {
|
|
|
806
810
|
bySubType: { ...T, MyFavorite: b },
|
|
807
811
|
byPlatform: S,
|
|
808
812
|
byPlatformAndCategory: E,
|
|
809
|
-
byGameTypeAndPlatform:
|
|
813
|
+
byGameTypeAndPlatform: d,
|
|
810
814
|
byGameType: v
|
|
811
815
|
},
|
|
812
816
|
user: {
|
|
813
817
|
favorite: b
|
|
814
818
|
}
|
|
815
819
|
};
|
|
816
|
-
},
|
|
820
|
+
}, pt = (e = []) => !te(e) || O(e) ? [] : Ae(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
|
|
817
821
|
...i,
|
|
818
822
|
...m,
|
|
819
823
|
platform: m.SubPlatformEnum,
|
|
820
824
|
platformEnum: m.SubPlatformEnum
|
|
821
|
-
}))),
|
|
825
|
+
}))), ci = (e) => {
|
|
822
826
|
switch (e) {
|
|
823
827
|
case "tw":
|
|
824
828
|
return "zh_TW";
|
|
@@ -838,17 +842,17 @@ const oi = li(null), rt = () => {
|
|
|
838
842
|
return e;
|
|
839
843
|
}
|
|
840
844
|
}, ye = () => {
|
|
841
|
-
const { client: e } =
|
|
845
|
+
const { client: e } = ne(), i = K(
|
|
842
846
|
async (u) => {
|
|
843
|
-
const { mac_address: g = "", app_version: s = "", anydesk_id: l = "" } = u, { data:
|
|
847
|
+
const { mac_address: g = "", app_version: s = "", anydesk_id: l = "" } = u, { data: c } = await e.post("/cash-register/login", {
|
|
844
848
|
mac_address: g,
|
|
845
849
|
app_version: s,
|
|
846
850
|
anydesk_id: l
|
|
847
851
|
});
|
|
848
|
-
return
|
|
852
|
+
return c;
|
|
849
853
|
},
|
|
850
854
|
[e]
|
|
851
|
-
), m =
|
|
855
|
+
), m = K(async () => e.get("/member/getMemberInfo"), [e]), t = K(async () => await e.get("/member/getGameList"), [e]), r = K(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = K(async () => await e.get("member/getFavoriteGame"), [e]), f = K(
|
|
852
856
|
async (u) => {
|
|
853
857
|
const { account: g, password: s, trans_code: l } = u;
|
|
854
858
|
return await e.post("/login", {
|
|
@@ -858,7 +862,7 @@ const oi = li(null), rt = () => {
|
|
|
858
862
|
});
|
|
859
863
|
},
|
|
860
864
|
[e]
|
|
861
|
-
), _ =
|
|
865
|
+
), _ = K(async () => await e.post("/logout"), [e]);
|
|
862
866
|
return {
|
|
863
867
|
machineLoginApi: i,
|
|
864
868
|
userInfoApi: m,
|
|
@@ -868,8 +872,8 @@ const oi = li(null), rt = () => {
|
|
|
868
872
|
userLoginApi: f,
|
|
869
873
|
userLogoutApi: _
|
|
870
874
|
};
|
|
871
|
-
},
|
|
872
|
-
platform: { all: [], origin: [], originPlatform: [] },
|
|
875
|
+
}, Sl = {
|
|
876
|
+
platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
|
|
873
877
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
874
878
|
gameList: {
|
|
875
879
|
all: [],
|
|
@@ -888,8 +892,8 @@ const oi = li(null), rt = () => {
|
|
|
888
892
|
byGameType: {}
|
|
889
893
|
},
|
|
890
894
|
user: { favorite: [] }
|
|
891
|
-
},
|
|
892
|
-
const { getToken: i } =
|
|
895
|
+
}, Nl = ({ enabled: e = !0 } = {}) => {
|
|
896
|
+
const { getToken: i } = ne(), { userFavoriteGameApi: m, userGameListApi: t } = ye(), { data: r, isLoading: p, error: f, refetch: _ } = le({
|
|
893
897
|
queryKey: ["gamesInfo"],
|
|
894
898
|
queryFn: async () => {
|
|
895
899
|
let u = {}, g = {};
|
|
@@ -898,14 +902,14 @@ const oi = li(null), rt = () => {
|
|
|
898
902
|
} catch (s) {
|
|
899
903
|
console.warn("Failed to fetch favorite games:", s);
|
|
900
904
|
}
|
|
901
|
-
return
|
|
905
|
+
return kl({
|
|
902
906
|
allGameList: g.gameTypeGroup || window.gameTypeGroup || {},
|
|
903
907
|
allGamePlatform: g.platforms || window.platforms || [],
|
|
904
908
|
allGameType: g.gameType || window.gameType || [],
|
|
905
909
|
allGame_subtype: g.gameSubType || window.gameSubType || [],
|
|
906
910
|
allNewGameList: g.newGames || window.newGames || [],
|
|
907
911
|
allTopGameList: g.topGames || window.topGames || [],
|
|
908
|
-
userFavoriteGame: u || {},
|
|
912
|
+
userFavoriteGame: u.userFavoriteGame || {},
|
|
909
913
|
randomlySelectedGames: g.randomlySelectedGames || window.randomlySelectedGames || [],
|
|
910
914
|
exclusiveBrandGames: g.exclusiveBrandGames || window.exclusiveBrandGames || [],
|
|
911
915
|
highlightGames: g.highlightGames || window.highlightGames || [],
|
|
@@ -921,12 +925,12 @@ const oi = li(null), rt = () => {
|
|
|
921
925
|
refetchOnWindowFocus: !1
|
|
922
926
|
});
|
|
923
927
|
return {
|
|
924
|
-
gamesInfo: r ||
|
|
928
|
+
gamesInfo: r || Sl,
|
|
925
929
|
isLoading: p,
|
|
926
930
|
error: f,
|
|
927
931
|
refetch: _
|
|
928
932
|
};
|
|
929
|
-
},
|
|
933
|
+
}, Dl = (e = !1) => {
|
|
930
934
|
if (!e && window.gameTypeGroup) {
|
|
931
935
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
932
936
|
return;
|
|
@@ -27453,26 +27457,26 @@ const oi = li(null), rt = () => {
|
|
|
27453
27457
|
is_invalid_bet: 0
|
|
27454
27458
|
}
|
|
27455
27459
|
});
|
|
27456
|
-
},
|
|
27460
|
+
}, El = ({
|
|
27457
27461
|
children: e,
|
|
27458
27462
|
autoFetch: i = !1,
|
|
27459
27463
|
mockData: m = !1
|
|
27460
27464
|
}) => {
|
|
27461
|
-
|
|
27462
|
-
m &&
|
|
27465
|
+
De(() => {
|
|
27466
|
+
m && Dl(!0);
|
|
27463
27467
|
}, [m]);
|
|
27464
|
-
const t =
|
|
27465
|
-
return /* @__PURE__ */
|
|
27468
|
+
const t = Nl({ enabled: i });
|
|
27469
|
+
return /* @__PURE__ */ ze.jsx(si.Provider, { value: t, children: e });
|
|
27466
27470
|
};
|
|
27467
|
-
function
|
|
27471
|
+
function gt({
|
|
27468
27472
|
children: e,
|
|
27469
27473
|
autoFetchGamesInfo: i = !1,
|
|
27470
27474
|
useMockData: m = !1,
|
|
27471
27475
|
queryClient: t,
|
|
27472
27476
|
...r
|
|
27473
27477
|
}) {
|
|
27474
|
-
const p = ia(() =>
|
|
27475
|
-
() => new
|
|
27478
|
+
const p = ia(() => gl(r), [r]), f = ia(
|
|
27479
|
+
() => new al({
|
|
27476
27480
|
defaultOptions: {
|
|
27477
27481
|
queries: {
|
|
27478
27482
|
refetchOnWindowFocus: !1,
|
|
@@ -27482,11 +27486,11 @@ function pt({
|
|
|
27482
27486
|
}),
|
|
27483
27487
|
[]
|
|
27484
27488
|
), _ = t || f;
|
|
27485
|
-
return /* @__PURE__ */
|
|
27489
|
+
return /* @__PURE__ */ ze.jsx(il, { client: _, children: /* @__PURE__ */ ze.jsx(oi.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ ze.jsx(El, { autoFetch: i, mockData: m, children: e }) }) });
|
|
27486
27490
|
}
|
|
27487
|
-
const
|
|
27488
|
-
const { userCurrencyExchangeApi: m } = ye(), { getToken: t } =
|
|
27489
|
-
return
|
|
27491
|
+
const dt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
27492
|
+
const { userCurrencyExchangeApi: m } = ye(), { getToken: t } = ne(), { enabled: r, ...p } = i, _ = !!t?.() && (r ? r.every((u) => u) : !0);
|
|
27493
|
+
return mi({
|
|
27490
27494
|
queries: [
|
|
27491
27495
|
{
|
|
27492
27496
|
queryKey: ["userCurrencyExchange", ...e],
|
|
@@ -27498,13 +27502,13 @@ const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27498
27502
|
}
|
|
27499
27503
|
]
|
|
27500
27504
|
});
|
|
27501
|
-
},
|
|
27505
|
+
}, ct = ({
|
|
27502
27506
|
refetchInterval: e = 5e4,
|
|
27503
27507
|
trigger: i = [],
|
|
27504
27508
|
enabled: m = !0
|
|
27505
27509
|
} = {}) => {
|
|
27506
|
-
const { getToken: t } =
|
|
27507
|
-
return
|
|
27510
|
+
const { getToken: t } = ne(), r = t?.(), { userInfoApi: p } = ye();
|
|
27511
|
+
return mi({
|
|
27508
27512
|
queries: [
|
|
27509
27513
|
{
|
|
27510
27514
|
queryKey: ["getMemberInfo", ...i],
|
|
@@ -27514,25 +27518,25 @@ const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27514
27518
|
}
|
|
27515
27519
|
]
|
|
27516
27520
|
});
|
|
27517
|
-
},
|
|
27521
|
+
}, _t = ({ enabled: e = !0 } = {}) => {
|
|
27518
27522
|
const {
|
|
27519
27523
|
userInfoApi: i,
|
|
27520
27524
|
userFavoriteGameApi: m,
|
|
27521
27525
|
userGameListApi: t,
|
|
27522
27526
|
userCurrencyExchangeApi: r
|
|
27523
|
-
} = ye(), p =
|
|
27527
|
+
} = ye(), p = le({
|
|
27524
27528
|
queryKey: ["getMemInfo"],
|
|
27525
27529
|
queryFn: async () => i(),
|
|
27526
27530
|
enabled: e
|
|
27527
|
-
}), f =
|
|
27531
|
+
}), f = le({
|
|
27528
27532
|
queryKey: ["getFavoriteGame"],
|
|
27529
27533
|
queryFn: async () => m(),
|
|
27530
27534
|
enabled: e && p.isSuccess
|
|
27531
|
-
}), _ =
|
|
27535
|
+
}), _ = le({
|
|
27532
27536
|
queryKey: ["getUserGameList"],
|
|
27533
27537
|
queryFn: async () => t(),
|
|
27534
27538
|
enabled: e && p.isSuccess && f.isSuccess
|
|
27535
|
-
}), u =
|
|
27539
|
+
}), u = le({
|
|
27536
27540
|
queryKey: ["getUserCurrencyExchange"],
|
|
27537
27541
|
queryFn: async () => r(),
|
|
27538
27542
|
enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
|
|
@@ -27544,9 +27548,9 @@ const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27544
27548
|
u
|
|
27545
27549
|
];
|
|
27546
27550
|
};
|
|
27547
|
-
var Ye = {}, z = {}, Xe = {},
|
|
27548
|
-
function
|
|
27549
|
-
return
|
|
27551
|
+
var Ye = {}, z = {}, Xe = {}, Oa;
|
|
27552
|
+
function j() {
|
|
27553
|
+
return Oa || (Oa = 1, (function(e) {
|
|
27550
27554
|
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;
|
|
27551
27555
|
var i = 1, m = 1e3 * i;
|
|
27552
27556
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
@@ -27571,9 +27575,9 @@ function K() {
|
|
|
27571
27575
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && r();
|
|
27572
27576
|
})(Xe)), Xe;
|
|
27573
27577
|
}
|
|
27574
|
-
var
|
|
27578
|
+
var Se = {}, $e = {}, Ha;
|
|
27575
27579
|
function ma() {
|
|
27576
|
-
return
|
|
27580
|
+
return Ha || (Ha = 1, (function(e) {
|
|
27577
27581
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
27578
27582
|
var i = function(m) {
|
|
27579
27583
|
if (m && e.sharedWebSockets.hasOwnProperty(m))
|
|
@@ -27585,11 +27589,11 @@ function ma() {
|
|
|
27585
27589
|
e.resetWebSockets = i;
|
|
27586
27590
|
})($e)), $e;
|
|
27587
27591
|
}
|
|
27588
|
-
var ue = {},
|
|
27592
|
+
var ue = {}, $ = {}, wa;
|
|
27589
27593
|
function ra() {
|
|
27590
|
-
if (
|
|
27591
|
-
|
|
27592
|
-
var e =
|
|
27594
|
+
if (wa) return $;
|
|
27595
|
+
wa = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.setUpSocketIOPing = $.appendQueryParams = $.parseSocketIOUrl = void 0;
|
|
27596
|
+
var e = j(), i = function(r) {
|
|
27593
27597
|
if (r) {
|
|
27594
27598
|
var p = /^https|wss/.test(r), f = r.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), u = p ? "wss" : "ws";
|
|
27595
27599
|
return "".concat(u, "://").concat(_).concat(e.SOCKET_IO_PATH);
|
|
@@ -27599,16 +27603,16 @@ function ra() {
|
|
|
27599
27603
|
}
|
|
27600
27604
|
return r;
|
|
27601
27605
|
};
|
|
27602
|
-
|
|
27606
|
+
$.parseSocketIOUrl = i;
|
|
27603
27607
|
var m = function(r, p) {
|
|
27604
27608
|
p === void 0 && (p = {});
|
|
27605
27609
|
var f = /\?([\w]+=[\w]+)/, _ = f.test(r), u = "".concat(Object.entries(p).reduce(function(g, s) {
|
|
27606
|
-
var l = s[0],
|
|
27607
|
-
return g + "".concat(l, "=").concat(
|
|
27610
|
+
var l = s[0], c = s[1];
|
|
27611
|
+
return g + "".concat(l, "=").concat(c, "&");
|
|
27608
27612
|
}, "").slice(0, -1));
|
|
27609
27613
|
return "".concat(r).concat(_ ? "&" : "?").concat(u);
|
|
27610
27614
|
};
|
|
27611
|
-
|
|
27615
|
+
$.appendQueryParams = m;
|
|
27612
27616
|
var t = function(r, p) {
|
|
27613
27617
|
p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
|
|
27614
27618
|
var f = function() {
|
|
@@ -27616,26 +27620,26 @@ function ra() {
|
|
|
27616
27620
|
};
|
|
27617
27621
|
return window.setInterval(f, p);
|
|
27618
27622
|
};
|
|
27619
|
-
return
|
|
27623
|
+
return $.setUpSocketIOPing = t, $;
|
|
27620
27624
|
}
|
|
27621
|
-
var
|
|
27622
|
-
function
|
|
27623
|
-
if (
|
|
27624
|
-
|
|
27625
|
-
var e =
|
|
27625
|
+
var We = {}, Fa;
|
|
27626
|
+
function _i() {
|
|
27627
|
+
if (Fa) return We;
|
|
27628
|
+
Fa = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.heartbeat = m;
|
|
27629
|
+
var e = j();
|
|
27626
27630
|
function i(t) {
|
|
27627
27631
|
return Array.isArray(t) ? t.reduce(function(r, p) {
|
|
27628
27632
|
return r.current > p.current ? r : p;
|
|
27629
27633
|
}).current : t.current;
|
|
27630
27634
|
}
|
|
27631
27635
|
function m(t, r, p) {
|
|
27632
|
-
var f = p || {}, _ = f.interval, u = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, g = f.timeout, s = g === void 0 ? e.DEFAULT_HEARTBEAT.timeout : g, l = f.message,
|
|
27633
|
-
var b = Date.now(),
|
|
27634
|
-
if (
|
|
27635
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(b -
|
|
27636
|
-
else if (
|
|
27636
|
+
var f = p || {}, _ = f.interval, u = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, g = f.timeout, s = g === void 0 ? e.DEFAULT_HEARTBEAT.timeout : g, l = f.message, c = l === void 0 ? e.DEFAULT_HEARTBEAT.message : l, n = Math.max(100, u / 10), o = Date.now(), y = setInterval(function() {
|
|
27637
|
+
var b = Date.now(), d = i(r);
|
|
27638
|
+
if (d + s <= b)
|
|
27639
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - d, "ms ago, last ping sent ").concat(b - o, "ms ago")), t.close();
|
|
27640
|
+
else if (d + u <= b && o + u <= b)
|
|
27637
27641
|
try {
|
|
27638
|
-
typeof
|
|
27642
|
+
typeof c == "function" ? t.send(c()) : t.send(c), o = b;
|
|
27639
27643
|
} catch (T) {
|
|
27640
27644
|
console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), t.close();
|
|
27641
27645
|
}
|
|
@@ -27645,11 +27649,11 @@ function ci() {
|
|
|
27645
27649
|
}), function() {
|
|
27646
27650
|
};
|
|
27647
27651
|
}
|
|
27648
|
-
return
|
|
27652
|
+
return We;
|
|
27649
27653
|
}
|
|
27650
|
-
var
|
|
27654
|
+
var Ne = {}, ea = {}, Wa;
|
|
27651
27655
|
function oa() {
|
|
27652
|
-
return
|
|
27656
|
+
return Wa || (Wa = 1, (function(e) {
|
|
27653
27657
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
27654
27658
|
var i = {}, m = [], t = function(u) {
|
|
27655
27659
|
return (0, e.hasSubscribers)(u) ? Array.from(i[u]) : m;
|
|
@@ -27678,10 +27682,10 @@ function oa() {
|
|
|
27678
27682
|
e.resetSubscribers = _;
|
|
27679
27683
|
})(ea)), ea;
|
|
27680
27684
|
}
|
|
27681
|
-
var
|
|
27685
|
+
var Ja;
|
|
27682
27686
|
function sa() {
|
|
27683
|
-
if (
|
|
27684
|
-
|
|
27687
|
+
if (Ja) return Ne;
|
|
27688
|
+
Ja = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.assertIsWebSocket = m, Ne.resetGlobalState = t;
|
|
27685
27689
|
var e = ma(), i = oa();
|
|
27686
27690
|
function m(r, p) {
|
|
27687
27691
|
if (!p && !(r instanceof WebSocket))
|
|
@@ -27690,44 +27694,44 @@ function sa() {
|
|
|
27690
27694
|
function t(r) {
|
|
27691
27695
|
(0, i.resetSubscribers)(r), (0, e.resetWebSockets)(r);
|
|
27692
27696
|
}
|
|
27693
|
-
return
|
|
27697
|
+
return Ne;
|
|
27694
27698
|
}
|
|
27695
|
-
var
|
|
27696
|
-
function
|
|
27697
|
-
if (
|
|
27698
|
-
|
|
27699
|
+
var za;
|
|
27700
|
+
function Ll() {
|
|
27701
|
+
if (za) return ue;
|
|
27702
|
+
za = 1;
|
|
27699
27703
|
var e = ue && ue.__assign || function() {
|
|
27700
27704
|
return e = Object.assign || function(s) {
|
|
27701
|
-
for (var l,
|
|
27702
|
-
l = arguments[
|
|
27705
|
+
for (var l, c = 1, n = arguments.length; c < n; c++) {
|
|
27706
|
+
l = arguments[c];
|
|
27703
27707
|
for (var o in l) Object.prototype.hasOwnProperty.call(l, o) && (s[o] = l[o]);
|
|
27704
27708
|
}
|
|
27705
27709
|
return s;
|
|
27706
27710
|
}, e.apply(this, arguments);
|
|
27707
27711
|
};
|
|
27708
27712
|
Object.defineProperty(ue, "__esModule", { value: !0 }), ue.attachListeners = void 0;
|
|
27709
|
-
var i = ra(), m =
|
|
27713
|
+
var i = ra(), m = _i(), t = j(), r = sa(), p = function(s, l, c, n) {
|
|
27710
27714
|
s.onmessage = function(o) {
|
|
27711
27715
|
var y;
|
|
27712
|
-
l.current.onMessage && l.current.onMessage(o), typeof n?.current == "number" && (n.current = Date.now()), !(typeof l.current.filter == "function" && l.current.filter(o) !== !0) && (l.current.heartbeat && typeof l.current.heartbeat != "boolean" && ((y = l.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === o.data ||
|
|
27716
|
+
l.current.onMessage && l.current.onMessage(o), typeof n?.current == "number" && (n.current = Date.now()), !(typeof l.current.filter == "function" && l.current.filter(o) !== !0) && (l.current.heartbeat && typeof l.current.heartbeat != "boolean" && ((y = l.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === o.data || c(o));
|
|
27713
27717
|
};
|
|
27714
|
-
}, f = function(s, l,
|
|
27718
|
+
}, f = function(s, l, c, n, o) {
|
|
27715
27719
|
s.onopen = function(y) {
|
|
27716
|
-
if (l.current.onOpen && l.current.onOpen(y), n.current = 0,
|
|
27720
|
+
if (l.current.onOpen && l.current.onOpen(y), n.current = 0, c(t.ReadyState.OPEN), l.current.heartbeat && s instanceof WebSocket) {
|
|
27717
27721
|
var b = typeof l.current.heartbeat == "boolean" ? void 0 : l.current.heartbeat;
|
|
27718
27722
|
o.current = Date.now(), (0, m.heartbeat)(s, o, b);
|
|
27719
27723
|
}
|
|
27720
27724
|
};
|
|
27721
|
-
}, _ = function(s, l,
|
|
27725
|
+
}, _ = function(s, l, c, n, o) {
|
|
27722
27726
|
if (t.isEventSourceSupported && s instanceof EventSource)
|
|
27723
27727
|
return function() {
|
|
27724
27728
|
};
|
|
27725
27729
|
(0, r.assertIsWebSocket)(s, l.current.skipAssert);
|
|
27726
27730
|
var y;
|
|
27727
27731
|
return s.onclose = function(b) {
|
|
27728
|
-
var
|
|
27729
|
-
if (l.current.onClose && l.current.onClose(b),
|
|
27730
|
-
var T = (
|
|
27732
|
+
var d;
|
|
27733
|
+
if (l.current.onClose && l.current.onClose(b), c(t.ReadyState.CLOSED), l.current.shouldReconnect && l.current.shouldReconnect(b)) {
|
|
27734
|
+
var T = (d = l.current.reconnectAttempts) !== null && d !== void 0 ? d : t.DEFAULT_RECONNECT_LIMIT;
|
|
27731
27735
|
if (o.current < T) {
|
|
27732
27736
|
var S = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
|
|
27733
27737
|
y = window.setTimeout(function() {
|
|
@@ -27739,12 +27743,12 @@ function El() {
|
|
|
27739
27743
|
}, function() {
|
|
27740
27744
|
return y && window.clearTimeout(y);
|
|
27741
27745
|
};
|
|
27742
|
-
}, u = function(s, l,
|
|
27746
|
+
}, u = function(s, l, c, n, o) {
|
|
27743
27747
|
var y;
|
|
27744
27748
|
return s.onerror = function(b) {
|
|
27745
|
-
var
|
|
27746
|
-
if (l.current.onError && l.current.onError(b), t.isEventSourceSupported && s instanceof EventSource && (l.current.onClose && l.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })),
|
|
27747
|
-
if (o.current < ((
|
|
27749
|
+
var d;
|
|
27750
|
+
if (l.current.onError && l.current.onError(b), t.isEventSourceSupported && s instanceof EventSource && (l.current.onClose && l.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })), c(t.ReadyState.CLOSED), s.close()), l.current.retryOnError)
|
|
27751
|
+
if (o.current < ((d = l.current.reconnectAttempts) !== null && d !== void 0 ? d : t.DEFAULT_RECONNECT_LIMIT)) {
|
|
27748
27752
|
var T = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
|
|
27749
27753
|
y = window.setTimeout(function() {
|
|
27750
27754
|
o.current++, n();
|
|
@@ -27754,124 +27758,124 @@ function El() {
|
|
|
27754
27758
|
}, function() {
|
|
27755
27759
|
return y && window.clearTimeout(y);
|
|
27756
27760
|
};
|
|
27757
|
-
}, g = function(s, l,
|
|
27758
|
-
var
|
|
27759
|
-
return
|
|
27761
|
+
}, g = function(s, l, c, n, o, y, b) {
|
|
27762
|
+
var d = l.setLastMessage, T = l.setReadyState, S, E, v;
|
|
27763
|
+
return c.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, c, d, y), f(s, c, T, o, y), E = _(s, c, T, n, o), v = u(s, c, T, n, o), function() {
|
|
27760
27764
|
T(t.ReadyState.CLOSING), E(), v(), s.close(), S && clearInterval(S);
|
|
27761
27765
|
};
|
|
27762
27766
|
};
|
|
27763
27767
|
return ue.attachListeners = g, ue;
|
|
27764
27768
|
}
|
|
27765
|
-
var pe = {},
|
|
27766
|
-
function
|
|
27767
|
-
if (
|
|
27768
|
-
|
|
27769
|
+
var pe = {}, Za;
|
|
27770
|
+
function Gl() {
|
|
27771
|
+
if (Za) return pe;
|
|
27772
|
+
Za = 1;
|
|
27769
27773
|
var e = pe && pe.__assign || function() {
|
|
27770
27774
|
return e = Object.assign || function(l) {
|
|
27771
|
-
for (var
|
|
27772
|
-
|
|
27773
|
-
for (var y in
|
|
27775
|
+
for (var c, n = 1, o = arguments.length; n < o; n++) {
|
|
27776
|
+
c = arguments[n];
|
|
27777
|
+
for (var y in c) Object.prototype.hasOwnProperty.call(c, y) && (l[y] = c[y]);
|
|
27774
27778
|
}
|
|
27775
27779
|
return l;
|
|
27776
27780
|
}, e.apply(this, arguments);
|
|
27777
27781
|
};
|
|
27778
27782
|
Object.defineProperty(pe, "__esModule", { value: !0 }), pe.attachSharedListeners = void 0;
|
|
27779
|
-
var i = ma(), m =
|
|
27783
|
+
var i = ma(), m = j(), t = oa(), r = ra(), p = _i(), f = function(l, c, n) {
|
|
27780
27784
|
l.onmessage = function(o) {
|
|
27781
|
-
(0, t.getSubscribers)(
|
|
27785
|
+
(0, t.getSubscribers)(c).forEach(function(y) {
|
|
27782
27786
|
var b;
|
|
27783
27787
|
y.optionsRef.current.onMessage && y.optionsRef.current.onMessage(o), typeof ((b = y?.lastMessageTime) === null || b === void 0 ? void 0 : b.current) == "number" && (y.lastMessageTime.current = Date.now()), !(typeof y.optionsRef.current.filter == "function" && y.optionsRef.current.filter(o) !== !0) && (n && typeof n != "boolean" && n?.returnMessage === o.data || y.setLastMessage(o));
|
|
27784
27788
|
});
|
|
27785
27789
|
};
|
|
27786
|
-
}, _ = function(l,
|
|
27790
|
+
}, _ = function(l, c, n) {
|
|
27787
27791
|
l.onopen = function(o) {
|
|
27788
|
-
var y = (0, t.getSubscribers)(
|
|
27792
|
+
var y = (0, t.getSubscribers)(c);
|
|
27789
27793
|
y.forEach(function(b) {
|
|
27790
27794
|
b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(o), b.setReadyState(m.ReadyState.OPEN), n && l instanceof WebSocket && (b.lastMessageTime.current = Date.now());
|
|
27791
27795
|
}), n && l instanceof WebSocket && (0, p.heartbeat)(l, y.map(function(b) {
|
|
27792
27796
|
return b.lastMessageTime;
|
|
27793
27797
|
}), typeof n == "boolean" ? void 0 : n);
|
|
27794
27798
|
};
|
|
27795
|
-
}, u = function(l,
|
|
27799
|
+
}, u = function(l, c) {
|
|
27796
27800
|
l instanceof WebSocket && (l.onclose = function(n) {
|
|
27797
|
-
(0, t.getSubscribers)(
|
|
27801
|
+
(0, t.getSubscribers)(c).forEach(function(o) {
|
|
27798
27802
|
o.optionsRef.current.onClose && o.optionsRef.current.onClose(n), o.setReadyState(m.ReadyState.CLOSED);
|
|
27799
|
-
}), delete i.sharedWebSockets[
|
|
27803
|
+
}), delete i.sharedWebSockets[c], (0, t.getSubscribers)(c).forEach(function(o) {
|
|
27800
27804
|
var y;
|
|
27801
27805
|
if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(n)) {
|
|
27802
27806
|
var b = (y = o.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : m.DEFAULT_RECONNECT_LIMIT;
|
|
27803
27807
|
if (o.reconnectCount.current < b) {
|
|
27804
|
-
var
|
|
27808
|
+
var d = typeof o.optionsRef.current.reconnectInterval == "function" ? o.optionsRef.current.reconnectInterval(o.reconnectCount.current) : o.optionsRef.current.reconnectInterval;
|
|
27805
27809
|
setTimeout(function() {
|
|
27806
27810
|
o.reconnectCount.current++, o.reconnect.current();
|
|
27807
|
-
},
|
|
27811
|
+
}, d ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
27808
27812
|
} else
|
|
27809
27813
|
o.optionsRef.current.onReconnectStop && o.optionsRef.current.onReconnectStop(o.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(b, " exceeded"));
|
|
27810
27814
|
}
|
|
27811
27815
|
});
|
|
27812
27816
|
});
|
|
27813
|
-
}, g = function(l,
|
|
27817
|
+
}, g = function(l, c) {
|
|
27814
27818
|
l.onerror = function(n) {
|
|
27815
|
-
(0, t.getSubscribers)(
|
|
27819
|
+
(0, t.getSubscribers)(c).forEach(function(o) {
|
|
27816
27820
|
o.optionsRef.current.onError && o.optionsRef.current.onError(n), m.isEventSourceSupported && l instanceof EventSource && (o.optionsRef.current.onClose && o.optionsRef.current.onClose(e(e({}, n), { code: 1006, reason: "An error occurred with the EventSource: ".concat(n), wasClean: !1 })), o.setReadyState(m.ReadyState.CLOSED));
|
|
27817
27821
|
}), m.isEventSourceSupported && l instanceof EventSource && l.close();
|
|
27818
27822
|
};
|
|
27819
|
-
}, s = function(l,
|
|
27823
|
+
}, s = function(l, c, n, o) {
|
|
27820
27824
|
var y;
|
|
27821
|
-
return n.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(o)), f(l,
|
|
27825
|
+
return n.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(o)), f(l, c, n.current.heartbeat), u(l, c), _(l, c, n.current.heartbeat), g(l, c), function() {
|
|
27822
27826
|
y && clearInterval(y);
|
|
27823
27827
|
};
|
|
27824
27828
|
};
|
|
27825
27829
|
return pe.attachSharedListeners = s, pe;
|
|
27826
27830
|
}
|
|
27827
|
-
var
|
|
27828
|
-
function
|
|
27829
|
-
if (
|
|
27830
|
-
|
|
27831
|
-
var e = ma(), i =
|
|
27831
|
+
var Va;
|
|
27832
|
+
function Ml() {
|
|
27833
|
+
if (Va) return Se;
|
|
27834
|
+
Va = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.createOrJoinSocket = void 0;
|
|
27835
|
+
var e = ma(), i = j(), m = Ll(), t = Gl(), r = oa(), p = function(_, u, g, s, l) {
|
|
27832
27836
|
return function() {
|
|
27833
27837
|
if ((0, r.removeSubscriber)(_, u), !(0, r.hasSubscribers)(_)) {
|
|
27834
27838
|
try {
|
|
27835
|
-
var
|
|
27836
|
-
|
|
27839
|
+
var c = e.sharedWebSockets[_];
|
|
27840
|
+
c instanceof WebSocket && (c.onclose = function(n) {
|
|
27837
27841
|
g.current.onClose && g.current.onClose(n), s(i.ReadyState.CLOSED);
|
|
27838
|
-
}),
|
|
27842
|
+
}), c.close();
|
|
27839
27843
|
} catch {
|
|
27840
27844
|
}
|
|
27841
27845
|
l && l(), delete e.sharedWebSockets[_];
|
|
27842
27846
|
}
|
|
27843
27847
|
};
|
|
27844
|
-
}, f = function(_, u, g, s, l,
|
|
27848
|
+
}, f = function(_, u, g, s, l, c, n, o, y) {
|
|
27845
27849
|
if (!i.isEventSourceSupported && s.current.eventSourceOptions)
|
|
27846
27850
|
throw i.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
27847
27851
|
if (s.current.share) {
|
|
27848
27852
|
var b = null;
|
|
27849
27853
|
e.sharedWebSockets[u] === void 0 ? (e.sharedWebSockets[u] = s.current.eventSourceOptions ? new EventSource(u, s.current.eventSourceOptions) : new WebSocket(u, s.current.protocols), _.current = e.sharedWebSockets[u], g(i.ReadyState.CONNECTING), b = (0, t.attachSharedListeners)(e.sharedWebSockets[u], u, s, y)) : (_.current = e.sharedWebSockets[u], g(e.sharedWebSockets[u].readyState));
|
|
27850
|
-
var
|
|
27854
|
+
var d = {
|
|
27851
27855
|
setLastMessage: l,
|
|
27852
27856
|
setReadyState: g,
|
|
27853
27857
|
optionsRef: s,
|
|
27854
27858
|
reconnectCount: n,
|
|
27855
27859
|
lastMessageTime: o,
|
|
27856
|
-
reconnect:
|
|
27860
|
+
reconnect: c
|
|
27857
27861
|
};
|
|
27858
|
-
return (0, r.addSubscriber)(u,
|
|
27862
|
+
return (0, r.addSubscriber)(u, d), p(u, d, s, g, b);
|
|
27859
27863
|
} else {
|
|
27860
27864
|
if (_.current = s.current.eventSourceOptions ? new EventSource(u, s.current.eventSourceOptions) : new WebSocket(u, s.current.protocols), g(i.ReadyState.CONNECTING), !_.current)
|
|
27861
27865
|
throw new Error("WebSocket failed to be created");
|
|
27862
27866
|
return (0, m.attachListeners)(_.current, {
|
|
27863
27867
|
setLastMessage: l,
|
|
27864
27868
|
setReadyState: g
|
|
27865
|
-
}, s,
|
|
27869
|
+
}, s, c.current, n, o, y);
|
|
27866
27870
|
}
|
|
27867
27871
|
};
|
|
27868
|
-
return
|
|
27872
|
+
return Se.createOrJoinSocket = f, Se;
|
|
27869
27873
|
}
|
|
27870
|
-
var
|
|
27871
|
-
function
|
|
27872
|
-
return
|
|
27873
|
-
var i =
|
|
27874
|
-
function
|
|
27874
|
+
var ee = {}, Aa;
|
|
27875
|
+
function Rl() {
|
|
27876
|
+
return Aa || (Aa = 1, (function(e) {
|
|
27877
|
+
var i = ee && ee.__awaiter || function(u, g, s, l) {
|
|
27878
|
+
function c(n) {
|
|
27875
27879
|
return n instanceof s ? n : new s(function(o) {
|
|
27876
27880
|
o(n);
|
|
27877
27881
|
});
|
|
@@ -27879,112 +27883,112 @@ function Ml() {
|
|
|
27879
27883
|
return new (s || (s = Promise))(function(n, o) {
|
|
27880
27884
|
function y(T) {
|
|
27881
27885
|
try {
|
|
27882
|
-
|
|
27886
|
+
d(l.next(T));
|
|
27883
27887
|
} catch (S) {
|
|
27884
27888
|
o(S);
|
|
27885
27889
|
}
|
|
27886
27890
|
}
|
|
27887
27891
|
function b(T) {
|
|
27888
27892
|
try {
|
|
27889
|
-
|
|
27893
|
+
d(l.throw(T));
|
|
27890
27894
|
} catch (S) {
|
|
27891
27895
|
o(S);
|
|
27892
27896
|
}
|
|
27893
27897
|
}
|
|
27894
|
-
function
|
|
27895
|
-
T.done ? n(T.value) :
|
|
27898
|
+
function d(T) {
|
|
27899
|
+
T.done ? n(T.value) : c(T.value).then(y, b);
|
|
27896
27900
|
}
|
|
27897
|
-
|
|
27901
|
+
d((l = l.apply(u, g || [])).next());
|
|
27898
27902
|
});
|
|
27899
|
-
}, m =
|
|
27903
|
+
}, m = ee && ee.__generator || function(u, g) {
|
|
27900
27904
|
var s = { label: 0, sent: function() {
|
|
27901
27905
|
if (n[0] & 1) throw n[1];
|
|
27902
27906
|
return n[1];
|
|
27903
|
-
}, trys: [], ops: [] }, l,
|
|
27907
|
+
}, trys: [], ops: [] }, l, c, n, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
27904
27908
|
return o.next = y(0), o.throw = y(1), o.return = y(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
27905
27909
|
return this;
|
|
27906
27910
|
}), o;
|
|
27907
|
-
function y(
|
|
27911
|
+
function y(d) {
|
|
27908
27912
|
return function(T) {
|
|
27909
|
-
return b([
|
|
27913
|
+
return b([d, T]);
|
|
27910
27914
|
};
|
|
27911
27915
|
}
|
|
27912
|
-
function b(
|
|
27916
|
+
function b(d) {
|
|
27913
27917
|
if (l) throw new TypeError("Generator is already executing.");
|
|
27914
|
-
for (; o && (o = 0,
|
|
27915
|
-
if (l = 1,
|
|
27916
|
-
switch (
|
|
27918
|
+
for (; o && (o = 0, d[0] && (s = 0)), s; ) try {
|
|
27919
|
+
if (l = 1, c && (n = d[0] & 2 ? c.return : d[0] ? c.throw || ((n = c.return) && n.call(c), 0) : c.next) && !(n = n.call(c, d[1])).done) return n;
|
|
27920
|
+
switch (c = 0, n && (d = [d[0] & 2, n.value]), d[0]) {
|
|
27917
27921
|
case 0:
|
|
27918
27922
|
case 1:
|
|
27919
|
-
n =
|
|
27923
|
+
n = d;
|
|
27920
27924
|
break;
|
|
27921
27925
|
case 4:
|
|
27922
|
-
return s.label++, { value:
|
|
27926
|
+
return s.label++, { value: d[1], done: !1 };
|
|
27923
27927
|
case 5:
|
|
27924
|
-
s.label++,
|
|
27928
|
+
s.label++, c = d[1], d = [0];
|
|
27925
27929
|
continue;
|
|
27926
27930
|
case 7:
|
|
27927
|
-
|
|
27931
|
+
d = s.ops.pop(), s.trys.pop();
|
|
27928
27932
|
continue;
|
|
27929
27933
|
default:
|
|
27930
|
-
if (n = s.trys, !(n = n.length > 0 && n[n.length - 1]) && (
|
|
27934
|
+
if (n = s.trys, !(n = n.length > 0 && n[n.length - 1]) && (d[0] === 6 || d[0] === 2)) {
|
|
27931
27935
|
s = 0;
|
|
27932
27936
|
continue;
|
|
27933
27937
|
}
|
|
27934
|
-
if (
|
|
27935
|
-
s.label =
|
|
27938
|
+
if (d[0] === 3 && (!n || d[1] > n[0] && d[1] < n[3])) {
|
|
27939
|
+
s.label = d[1];
|
|
27936
27940
|
break;
|
|
27937
27941
|
}
|
|
27938
|
-
if (
|
|
27939
|
-
s.label = n[1], n =
|
|
27942
|
+
if (d[0] === 6 && s.label < n[1]) {
|
|
27943
|
+
s.label = n[1], n = d;
|
|
27940
27944
|
break;
|
|
27941
27945
|
}
|
|
27942
27946
|
if (n && s.label < n[2]) {
|
|
27943
|
-
s.label = n[2], s.ops.push(
|
|
27947
|
+
s.label = n[2], s.ops.push(d);
|
|
27944
27948
|
break;
|
|
27945
27949
|
}
|
|
27946
27950
|
n[2] && s.ops.pop(), s.trys.pop();
|
|
27947
27951
|
continue;
|
|
27948
27952
|
}
|
|
27949
|
-
|
|
27953
|
+
d = g.call(u, s);
|
|
27950
27954
|
} catch (T) {
|
|
27951
|
-
|
|
27955
|
+
d = [6, T], c = 0;
|
|
27952
27956
|
} finally {
|
|
27953
27957
|
l = n = 0;
|
|
27954
27958
|
}
|
|
27955
|
-
if (
|
|
27956
|
-
return { value:
|
|
27959
|
+
if (d[0] & 5) throw d[1];
|
|
27960
|
+
return { value: d[0] ? d[1] : void 0, done: !0 };
|
|
27957
27961
|
}
|
|
27958
|
-
}, t =
|
|
27959
|
-
if (s || arguments.length === 2) for (var l = 0,
|
|
27962
|
+
}, t = ee && ee.__spreadArray || function(u, g, s) {
|
|
27963
|
+
if (s || arguments.length === 2) for (var l = 0, c = g.length, n; l < c; l++)
|
|
27960
27964
|
(n || !(l in g)) && (n || (n = Array.prototype.slice.call(g, 0, l)), n[l] = g[l]);
|
|
27961
27965
|
return u.concat(n || Array.prototype.slice.call(g));
|
|
27962
27966
|
};
|
|
27963
27967
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
27964
|
-
var r = ra(), p =
|
|
27968
|
+
var r = ra(), p = j(), f = function(u) {
|
|
27965
27969
|
return new Promise(function(g) {
|
|
27966
27970
|
return window.setTimeout(g, u);
|
|
27967
27971
|
});
|
|
27968
27972
|
}, _ = function(u, g) {
|
|
27969
27973
|
for (var s = [], l = 2; l < arguments.length; l++)
|
|
27970
27974
|
s[l - 2] = arguments[l];
|
|
27971
|
-
return i(void 0, t([u, g], s, !0), void 0, function(
|
|
27972
|
-
var y, b,
|
|
27973
|
-
return o === void 0 && (o = 0), m(this, function(
|
|
27974
|
-
switch (
|
|
27975
|
+
return i(void 0, t([u, g], s, !0), void 0, function(c, n, o) {
|
|
27976
|
+
var y, b, d, T, S, E, v, D;
|
|
27977
|
+
return o === void 0 && (o = 0), m(this, function(L) {
|
|
27978
|
+
switch (L.label) {
|
|
27975
27979
|
case 0:
|
|
27976
|
-
if (typeof
|
|
27977
|
-
|
|
27980
|
+
if (typeof c != "function") return [3, 10];
|
|
27981
|
+
L.label = 1;
|
|
27978
27982
|
case 1:
|
|
27979
|
-
return
|
|
27983
|
+
return L.trys.push([1, 3, , 9]), [4, c()];
|
|
27980
27984
|
case 2:
|
|
27981
|
-
return y =
|
|
27985
|
+
return y = L.sent(), [3, 9];
|
|
27982
27986
|
case 3:
|
|
27983
|
-
return
|
|
27987
|
+
return L.sent(), n.current.retryOnError ? (b = (E = n.current.reconnectAttempts) !== null && E !== void 0 ? E : p.DEFAULT_RECONNECT_LIMIT, o < b ? (d = typeof n.current.reconnectInterval == "function" ? n.current.reconnectInterval(o) : n.current.reconnectInterval, [4, f(d ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
27984
27988
|
case 4:
|
|
27985
|
-
return
|
|
27989
|
+
return L.sent(), [2, (0, e.getUrl)(c, n, o + 1)];
|
|
27986
27990
|
case 5:
|
|
27987
|
-
return (
|
|
27991
|
+
return (D = (v = n.current).onReconnectStop) === null || D === void 0 || D.call(v, o), [2, null];
|
|
27988
27992
|
case 6:
|
|
27989
27993
|
return [3, 8];
|
|
27990
27994
|
case 7:
|
|
@@ -27994,7 +27998,7 @@ function Ml() {
|
|
|
27994
27998
|
case 9:
|
|
27995
27999
|
return [3, 11];
|
|
27996
28000
|
case 10:
|
|
27997
|
-
y =
|
|
28001
|
+
y = c, L.label = 11;
|
|
27998
28002
|
case 11:
|
|
27999
28003
|
return T = n.current.fromSocketIO ? (0, r.parseSocketIOUrl)(y) : y, S = n.current.queryParams ? (0, r.appendQueryParams)(T, n.current.queryParams) : T, [2, S];
|
|
28000
28004
|
}
|
|
@@ -28002,11 +28006,11 @@ function Ml() {
|
|
|
28002
28006
|
});
|
|
28003
28007
|
};
|
|
28004
28008
|
e.getUrl = _;
|
|
28005
|
-
})(
|
|
28009
|
+
})(ee)), ee;
|
|
28006
28010
|
}
|
|
28007
|
-
var aa = {},
|
|
28008
|
-
function
|
|
28009
|
-
return
|
|
28011
|
+
var aa = {}, Ia;
|
|
28012
|
+
function Pl() {
|
|
28013
|
+
return Ia || (Ia = 1, (function(e) {
|
|
28010
28014
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
28011
28015
|
var i = function(m, t) {
|
|
28012
28016
|
return new Proxy(m, {
|
|
@@ -28023,65 +28027,65 @@ function Rl() {
|
|
|
28023
28027
|
e.websocketWrapper = i, e.default = e.websocketWrapper;
|
|
28024
28028
|
})(aa)), aa;
|
|
28025
28029
|
}
|
|
28026
|
-
var
|
|
28030
|
+
var Ba;
|
|
28027
28031
|
function ua() {
|
|
28028
|
-
if (
|
|
28029
|
-
|
|
28032
|
+
if (Ba) return z;
|
|
28033
|
+
Ba = 1;
|
|
28030
28034
|
var e = z && z.__assign || function() {
|
|
28031
|
-
return e = Object.assign || function(
|
|
28035
|
+
return e = Object.assign || function(c) {
|
|
28032
28036
|
for (var n, o = 1, y = arguments.length; o < y; o++) {
|
|
28033
28037
|
n = arguments[o];
|
|
28034
|
-
for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (
|
|
28038
|
+
for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (c[b] = n[b]);
|
|
28035
28039
|
}
|
|
28036
|
-
return
|
|
28040
|
+
return c;
|
|
28037
28041
|
}, e.apply(this, arguments);
|
|
28038
|
-
}, i = z && z.__awaiter || function(
|
|
28039
|
-
function b(
|
|
28040
|
-
return
|
|
28041
|
-
T(
|
|
28042
|
+
}, i = z && z.__awaiter || function(c, n, o, y) {
|
|
28043
|
+
function b(d) {
|
|
28044
|
+
return d instanceof o ? d : new o(function(T) {
|
|
28045
|
+
T(d);
|
|
28042
28046
|
});
|
|
28043
28047
|
}
|
|
28044
|
-
return new (o || (o = Promise))(function(
|
|
28045
|
-
function S(
|
|
28048
|
+
return new (o || (o = Promise))(function(d, T) {
|
|
28049
|
+
function S(D) {
|
|
28046
28050
|
try {
|
|
28047
|
-
v(y.next(
|
|
28048
|
-
} catch (
|
|
28049
|
-
T(
|
|
28051
|
+
v(y.next(D));
|
|
28052
|
+
} catch (L) {
|
|
28053
|
+
T(L);
|
|
28050
28054
|
}
|
|
28051
28055
|
}
|
|
28052
|
-
function E(
|
|
28056
|
+
function E(D) {
|
|
28053
28057
|
try {
|
|
28054
|
-
v(y.throw(
|
|
28055
|
-
} catch (
|
|
28056
|
-
T(
|
|
28058
|
+
v(y.throw(D));
|
|
28059
|
+
} catch (L) {
|
|
28060
|
+
T(L);
|
|
28057
28061
|
}
|
|
28058
28062
|
}
|
|
28059
|
-
function v(
|
|
28060
|
-
|
|
28063
|
+
function v(D) {
|
|
28064
|
+
D.done ? d(D.value) : b(D.value).then(S, E);
|
|
28061
28065
|
}
|
|
28062
|
-
v((y = y.apply(
|
|
28066
|
+
v((y = y.apply(c, n || [])).next());
|
|
28063
28067
|
});
|
|
28064
|
-
}, m = z && z.__generator || function(
|
|
28068
|
+
}, m = z && z.__generator || function(c, n) {
|
|
28065
28069
|
var o = { label: 0, sent: function() {
|
|
28066
|
-
if (
|
|
28067
|
-
return
|
|
28068
|
-
}, trys: [], ops: [] }, y, b,
|
|
28070
|
+
if (d[0] & 1) throw d[1];
|
|
28071
|
+
return d[1];
|
|
28072
|
+
}, trys: [], ops: [] }, y, b, d, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
28069
28073
|
return T.next = S(0), T.throw = S(1), T.return = S(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
|
28070
28074
|
return this;
|
|
28071
28075
|
}), T;
|
|
28072
28076
|
function S(v) {
|
|
28073
|
-
return function(
|
|
28074
|
-
return E([v,
|
|
28077
|
+
return function(D) {
|
|
28078
|
+
return E([v, D]);
|
|
28075
28079
|
};
|
|
28076
28080
|
}
|
|
28077
28081
|
function E(v) {
|
|
28078
28082
|
if (y) throw new TypeError("Generator is already executing.");
|
|
28079
28083
|
for (; T && (T = 0, v[0] && (o = 0)), o; ) try {
|
|
28080
|
-
if (y = 1, b && (
|
|
28081
|
-
switch (b = 0,
|
|
28084
|
+
if (y = 1, b && (d = v[0] & 2 ? b.return : v[0] ? b.throw || ((d = b.return) && d.call(b), 0) : b.next) && !(d = d.call(b, v[1])).done) return d;
|
|
28085
|
+
switch (b = 0, d && (v = [v[0] & 2, d.value]), v[0]) {
|
|
28082
28086
|
case 0:
|
|
28083
28087
|
case 1:
|
|
28084
|
-
|
|
28088
|
+
d = v;
|
|
28085
28089
|
break;
|
|
28086
28090
|
case 4:
|
|
28087
28091
|
return o.label++, { value: v[1], done: !1 };
|
|
@@ -28092,41 +28096,41 @@ function ua() {
|
|
|
28092
28096
|
v = o.ops.pop(), o.trys.pop();
|
|
28093
28097
|
continue;
|
|
28094
28098
|
default:
|
|
28095
|
-
if (
|
|
28099
|
+
if (d = o.trys, !(d = d.length > 0 && d[d.length - 1]) && (v[0] === 6 || v[0] === 2)) {
|
|
28096
28100
|
o = 0;
|
|
28097
28101
|
continue;
|
|
28098
28102
|
}
|
|
28099
|
-
if (v[0] === 3 && (!
|
|
28103
|
+
if (v[0] === 3 && (!d || v[1] > d[0] && v[1] < d[3])) {
|
|
28100
28104
|
o.label = v[1];
|
|
28101
28105
|
break;
|
|
28102
28106
|
}
|
|
28103
|
-
if (v[0] === 6 && o.label <
|
|
28104
|
-
o.label =
|
|
28107
|
+
if (v[0] === 6 && o.label < d[1]) {
|
|
28108
|
+
o.label = d[1], d = v;
|
|
28105
28109
|
break;
|
|
28106
28110
|
}
|
|
28107
|
-
if (
|
|
28108
|
-
o.label =
|
|
28111
|
+
if (d && o.label < d[2]) {
|
|
28112
|
+
o.label = d[2], o.ops.push(v);
|
|
28109
28113
|
break;
|
|
28110
28114
|
}
|
|
28111
|
-
|
|
28115
|
+
d[2] && o.ops.pop(), o.trys.pop();
|
|
28112
28116
|
continue;
|
|
28113
28117
|
}
|
|
28114
|
-
v = n.call(
|
|
28115
|
-
} catch (
|
|
28116
|
-
v = [6,
|
|
28118
|
+
v = n.call(c, o);
|
|
28119
|
+
} catch (D) {
|
|
28120
|
+
v = [6, D], b = 0;
|
|
28117
28121
|
} finally {
|
|
28118
|
-
y =
|
|
28122
|
+
y = d = 0;
|
|
28119
28123
|
}
|
|
28120
28124
|
if (v[0] & 5) throw v[1];
|
|
28121
28125
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
28122
28126
|
}
|
|
28123
|
-
}, t = z && z.__importDefault || function(
|
|
28124
|
-
return
|
|
28127
|
+
}, t = z && z.__importDefault || function(c) {
|
|
28128
|
+
return c && c.__esModule ? c : { default: c };
|
|
28125
28129
|
};
|
|
28126
28130
|
Object.defineProperty(z, "__esModule", { value: !0 }), z.useWebSocket = void 0;
|
|
28127
|
-
var r =
|
|
28131
|
+
var r = Le, p = rl, f = j(), _ = Ml(), u = Rl(), g = t(Pl()), s = sa(), l = function(c, n, o) {
|
|
28128
28132
|
n === void 0 && (n = f.DEFAULT_OPTIONS), o === void 0 && (o = !0);
|
|
28129
|
-
var y = (0, r.useState)(null), b = y[0],
|
|
28133
|
+
var y = (0, r.useState)(null), b = y[0], d = y[1], T = (0, r.useState)({}), S = T[0], E = T[1], v = (0, r.useMemo)(function() {
|
|
28130
28134
|
if (!n.disableJson && b)
|
|
28131
28135
|
try {
|
|
28132
28136
|
return JSON.parse(b.data);
|
|
@@ -28134,50 +28138,50 @@ function ua() {
|
|
|
28134
28138
|
return f.UNPARSABLE_JSON_OBJECT;
|
|
28135
28139
|
}
|
|
28136
28140
|
return null;
|
|
28137
|
-
}, [b, n.disableJson]),
|
|
28138
|
-
}),
|
|
28141
|
+
}, [b, n.disableJson]), D = (0, r.useRef)(null), L = (0, r.useRef)(null), A = (0, r.useRef)(function() {
|
|
28142
|
+
}), Q = (0, r.useRef)(0), Te = (0, r.useRef)(Date.now()), Ge = (0, r.useRef)([]), I = (0, r.useRef)(null), w = (0, r.useRef)(n);
|
|
28139
28143
|
w.current = n;
|
|
28140
|
-
var V =
|
|
28141
|
-
var
|
|
28142
|
-
if (F === void 0 && (F = !0), f.isEventSourceSupported &&
|
|
28144
|
+
var V = D.current && S[D.current] !== void 0 ? S[D.current] : c !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, me = n.queryParams ? JSON.stringify(n.queryParams) : null, q = (0, r.useCallback)(function(x, F) {
|
|
28145
|
+
var Y;
|
|
28146
|
+
if (F === void 0 && (F = !0), f.isEventSourceSupported && L.current instanceof EventSource) {
|
|
28143
28147
|
console.warn("Unable to send a message from an eventSource");
|
|
28144
28148
|
return;
|
|
28145
28149
|
}
|
|
28146
|
-
((
|
|
28147
|
-
}, []),
|
|
28148
|
-
F === void 0 && (F = !0),
|
|
28149
|
-
}, [
|
|
28150
|
-
return w.current.share !== !0 || f.isEventSourceSupported &&
|
|
28150
|
+
((Y = L.current) === null || Y === void 0 ? void 0 : Y.readyState) === f.ReadyState.OPEN ? ((0, s.assertIsWebSocket)(L.current, w.current.skipAssert), L.current.send(x)) : F && Ge.current.push(x);
|
|
28151
|
+
}, []), Me = (0, r.useCallback)(function(x, F) {
|
|
28152
|
+
F === void 0 && (F = !0), q(JSON.stringify(x), F);
|
|
28153
|
+
}, [q]), Re = (0, r.useCallback)(function() {
|
|
28154
|
+
return w.current.share !== !0 || f.isEventSourceSupported && L.current instanceof EventSource ? L.current : (I.current === null && L.current && ((0, s.assertIsWebSocket)(L.current, w.current.skipAssert), I.current = (0, g.default)(L.current, A)), I.current);
|
|
28151
28155
|
}, []);
|
|
28152
28156
|
return (0, r.useEffect)(function() {
|
|
28153
|
-
if (
|
|
28154
|
-
var x, F = !1,
|
|
28157
|
+
if (c !== null && o === !0) {
|
|
28158
|
+
var x, F = !1, Y = !0, Ce = function() {
|
|
28155
28159
|
return i(void 0, void 0, void 0, function() {
|
|
28156
|
-
var re,
|
|
28160
|
+
var re, ie, Pe;
|
|
28157
28161
|
return m(this, function(de) {
|
|
28158
28162
|
switch (de.label) {
|
|
28159
28163
|
case 0:
|
|
28160
|
-
return re =
|
|
28164
|
+
return re = D, [4, (0, u.getUrl)(c, w)];
|
|
28161
28165
|
case 1:
|
|
28162
|
-
return re.current = de.sent(),
|
|
28163
|
-
return E(function(
|
|
28164
|
-
return e(e({},
|
|
28166
|
+
return re.current = de.sent(), D.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), D.current = "ABORTED", (0, p.flushSync)(function() {
|
|
28167
|
+
return E(function(X) {
|
|
28168
|
+
return e(e({}, X), { ABORTED: f.ReadyState.CLOSED });
|
|
28165
28169
|
});
|
|
28166
28170
|
}), [
|
|
28167
28171
|
2
|
|
28168
28172
|
/*return*/
|
|
28169
|
-
]) : (
|
|
28173
|
+
]) : (ie = function(X) {
|
|
28170
28174
|
F || (0, p.flushSync)(function() {
|
|
28171
|
-
return
|
|
28175
|
+
return d(X);
|
|
28172
28176
|
});
|
|
28173
|
-
},
|
|
28177
|
+
}, Pe = function(X) {
|
|
28174
28178
|
F || (0, p.flushSync)(function() {
|
|
28175
28179
|
return E(function(ce) {
|
|
28176
28180
|
var oe;
|
|
28177
|
-
return e(e({}, ce),
|
|
28181
|
+
return e(e({}, ce), D.current && (oe = {}, oe[D.current] = X, oe));
|
|
28178
28182
|
});
|
|
28179
28183
|
});
|
|
28180
|
-
},
|
|
28184
|
+
}, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w, ie, A, Q, Te, q)), [
|
|
28181
28185
|
2
|
|
28182
28186
|
/*return*/
|
|
28183
28187
|
]);
|
|
@@ -28185,34 +28189,34 @@ function ua() {
|
|
|
28185
28189
|
});
|
|
28186
28190
|
});
|
|
28187
28191
|
};
|
|
28188
|
-
return
|
|
28189
|
-
F || (
|
|
28190
|
-
},
|
|
28191
|
-
F = !0,
|
|
28192
|
+
return A.current = function() {
|
|
28193
|
+
F || (I.current && (I.current = null), x?.(), Ce());
|
|
28194
|
+
}, Ce(), function() {
|
|
28195
|
+
F = !0, Y = !1, I.current && (I.current = null), x?.(), d(null);
|
|
28192
28196
|
};
|
|
28193
|
-
} else (
|
|
28194
|
-
var
|
|
28195
|
-
return e(e({}, re),
|
|
28197
|
+
} else (c === null || o === !1) && (Q.current = 0, E(function(re) {
|
|
28198
|
+
var ie;
|
|
28199
|
+
return e(e({}, re), D.current && (ie = {}, ie[D.current] = f.ReadyState.CLOSED, ie));
|
|
28196
28200
|
}));
|
|
28197
|
-
}, [
|
|
28198
|
-
V === f.ReadyState.OPEN &&
|
|
28199
|
-
|
|
28201
|
+
}, [c, o, me, q]), (0, r.useEffect)(function() {
|
|
28202
|
+
V === f.ReadyState.OPEN && Ge.current.splice(0).forEach(function(x) {
|
|
28203
|
+
q(x);
|
|
28200
28204
|
});
|
|
28201
28205
|
}, [V]), {
|
|
28202
|
-
sendMessage:
|
|
28203
|
-
sendJsonMessage:
|
|
28206
|
+
sendMessage: q,
|
|
28207
|
+
sendJsonMessage: Me,
|
|
28204
28208
|
lastMessage: b,
|
|
28205
28209
|
lastJsonMessage: v,
|
|
28206
28210
|
readyState: V,
|
|
28207
|
-
getWebSocket:
|
|
28211
|
+
getWebSocket: Re
|
|
28208
28212
|
};
|
|
28209
28213
|
};
|
|
28210
28214
|
return z.useWebSocket = l, z;
|
|
28211
28215
|
}
|
|
28212
|
-
var ge = {},
|
|
28213
|
-
function
|
|
28214
|
-
if (
|
|
28215
|
-
|
|
28216
|
+
var ge = {}, Ka;
|
|
28217
|
+
function xl() {
|
|
28218
|
+
if (Ka) return ge;
|
|
28219
|
+
Ka = 1;
|
|
28216
28220
|
var e = ge && ge.__assign || function() {
|
|
28217
28221
|
return e = Object.assign || function(_) {
|
|
28218
28222
|
for (var u, g = 1, s = arguments.length; g < s; g++) {
|
|
@@ -28223,7 +28227,7 @@ function Pl() {
|
|
|
28223
28227
|
}, e.apply(this, arguments);
|
|
28224
28228
|
};
|
|
28225
28229
|
Object.defineProperty(ge, "__esModule", { value: !0 }), ge.useSocketIO = void 0;
|
|
28226
|
-
var i =
|
|
28230
|
+
var i = Le, m = ua(), t = j(), r = {
|
|
28227
28231
|
type: "empty",
|
|
28228
28232
|
payload: null
|
|
28229
28233
|
}, p = function(_) {
|
|
@@ -28241,25 +28245,25 @@ function Pl() {
|
|
|
28241
28245
|
u === void 0 && (u = t.DEFAULT_OPTIONS), g === void 0 && (g = !0);
|
|
28242
28246
|
var s = (0, i.useMemo)(function() {
|
|
28243
28247
|
return e(e({}, u), { fromSocketIO: !0 });
|
|
28244
|
-
}, []), l = (0, m.useWebSocket)(_, s, g),
|
|
28248
|
+
}, []), l = (0, m.useWebSocket)(_, s, g), c = l.sendMessage, n = l.sendJsonMessage, o = l.lastMessage, y = l.readyState, b = l.getWebSocket, d = (0, i.useMemo)(function() {
|
|
28245
28249
|
return p(o);
|
|
28246
28250
|
}, [o]);
|
|
28247
28251
|
return {
|
|
28248
|
-
sendMessage:
|
|
28252
|
+
sendMessage: c,
|
|
28249
28253
|
sendJsonMessage: n,
|
|
28250
|
-
lastMessage:
|
|
28251
|
-
lastJsonMessage:
|
|
28254
|
+
lastMessage: d,
|
|
28255
|
+
lastJsonMessage: d,
|
|
28252
28256
|
readyState: y,
|
|
28253
28257
|
getWebSocket: b
|
|
28254
28258
|
};
|
|
28255
28259
|
};
|
|
28256
28260
|
return ge.useSocketIO = f, ge;
|
|
28257
28261
|
}
|
|
28258
|
-
var
|
|
28259
|
-
function
|
|
28260
|
-
if (
|
|
28261
|
-
|
|
28262
|
-
var e =
|
|
28262
|
+
var ae = {}, ja;
|
|
28263
|
+
function Ol() {
|
|
28264
|
+
if (ja) return ae;
|
|
28265
|
+
ja = 1;
|
|
28266
|
+
var e = ae && ae.__assign || function() {
|
|
28263
28267
|
return e = Object.assign || function(f) {
|
|
28264
28268
|
for (var _, u = 1, g = arguments.length; u < g; u++) {
|
|
28265
28269
|
_ = arguments[u];
|
|
@@ -28267,7 +28271,7 @@ function xl() {
|
|
|
28267
28271
|
}
|
|
28268
28272
|
return f;
|
|
28269
28273
|
}, e.apply(this, arguments);
|
|
28270
|
-
}, i =
|
|
28274
|
+
}, i = ae && ae.__rest || function(f, _) {
|
|
28271
28275
|
var u = {};
|
|
28272
28276
|
for (var g in f) Object.prototype.hasOwnProperty.call(f, g) && _.indexOf(g) < 0 && (u[g] = f[g]);
|
|
28273
28277
|
if (f != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -28275,16 +28279,16 @@ function xl() {
|
|
|
28275
28279
|
_.indexOf(g[s]) < 0 && Object.prototype.propertyIsEnumerable.call(f, g[s]) && (u[g[s]] = f[g[s]]);
|
|
28276
28280
|
return u;
|
|
28277
28281
|
};
|
|
28278
|
-
Object.defineProperty(
|
|
28279
|
-
var m =
|
|
28282
|
+
Object.defineProperty(ae, "__esModule", { value: !0 }), ae.useEventSource = void 0;
|
|
28283
|
+
var m = Le, t = ua(), r = j(), p = function(f, _, u) {
|
|
28280
28284
|
_ === void 0 && (_ = r.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
28281
28285
|
var g = _.withCredentials, s = _.events, l = i(_, ["withCredentials", "events"]);
|
|
28282
28286
|
u === void 0 && (u = !0);
|
|
28283
|
-
var
|
|
28287
|
+
var c = e(e({}, l), { eventSourceOptions: {
|
|
28284
28288
|
withCredentials: g
|
|
28285
28289
|
} }), n = (0, m.useRef)(r.EMPTY_EVENT_HANDLERS);
|
|
28286
28290
|
s && (n.current = s);
|
|
28287
|
-
var o = (0, t.useWebSocket)(f,
|
|
28291
|
+
var o = (0, t.useWebSocket)(f, c, u), y = o.lastMessage, b = o.readyState, d = o.getWebSocket;
|
|
28288
28292
|
return (0, m.useEffect)(function() {
|
|
28289
28293
|
y?.type && Object.entries(n.current).forEach(function(T) {
|
|
28290
28294
|
var S = T[0], E = T[1];
|
|
@@ -28293,28 +28297,28 @@ function xl() {
|
|
|
28293
28297
|
}, [y]), {
|
|
28294
28298
|
lastEvent: y,
|
|
28295
28299
|
readyState: b,
|
|
28296
|
-
getEventSource:
|
|
28300
|
+
getEventSource: d
|
|
28297
28301
|
};
|
|
28298
28302
|
};
|
|
28299
|
-
return
|
|
28303
|
+
return ae.useEventSource = p, ae;
|
|
28300
28304
|
}
|
|
28301
|
-
var
|
|
28302
|
-
function
|
|
28303
|
-
return
|
|
28305
|
+
var Qa;
|
|
28306
|
+
function Hl() {
|
|
28307
|
+
return Qa || (Qa = 1, (function(e) {
|
|
28304
28308
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
28305
28309
|
var i = ua();
|
|
28306
28310
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
28307
28311
|
return i.useWebSocket;
|
|
28308
28312
|
} });
|
|
28309
|
-
var m =
|
|
28313
|
+
var m = xl();
|
|
28310
28314
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
28311
28315
|
return m.useSocketIO;
|
|
28312
28316
|
} });
|
|
28313
|
-
var t =
|
|
28317
|
+
var t = j();
|
|
28314
28318
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
28315
28319
|
return t.ReadyState;
|
|
28316
28320
|
} });
|
|
28317
|
-
var r =
|
|
28321
|
+
var r = Ol();
|
|
28318
28322
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
28319
28323
|
return r.useEventSource;
|
|
28320
28324
|
} });
|
|
@@ -28324,8 +28328,8 @@ function Ol() {
|
|
|
28324
28328
|
} });
|
|
28325
28329
|
})(Ye)), Ye;
|
|
28326
28330
|
}
|
|
28327
|
-
var
|
|
28328
|
-
const
|
|
28331
|
+
var wl = Hl();
|
|
28332
|
+
const Fl = /* @__PURE__ */ ol(wl), B = {
|
|
28329
28333
|
DEPOSIT: "deposit",
|
|
28330
28334
|
TRANS_CODE: "transCode",
|
|
28331
28335
|
ERROR: "error",
|
|
@@ -28336,7 +28340,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28336
28340
|
TRANSFER_IN_GAME: "transfer_in_game",
|
|
28337
28341
|
CHECK_REQUEST: "CHECK_RREQUEST",
|
|
28338
28342
|
CASH_REGISTER_LIMIT: "cash_register_limit"
|
|
28339
|
-
},
|
|
28343
|
+
}, Wl = 3e4, ft = ({
|
|
28340
28344
|
socketUrl: e,
|
|
28341
28345
|
socketHandlers: i = {},
|
|
28342
28346
|
options: m = {}
|
|
@@ -28352,7 +28356,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28352
28356
|
readyState: u
|
|
28353
28357
|
// WebSocket 連線狀態
|
|
28354
28358
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
28355
|
-
} =
|
|
28359
|
+
} = Fl(e, {
|
|
28356
28360
|
queryParams: { key: "wsky" },
|
|
28357
28361
|
onOpen: () => console.log("連線成功"),
|
|
28358
28362
|
shouldReconnect: () => t.current === !1,
|
|
@@ -28366,95 +28370,95 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28366
28370
|
return null;
|
|
28367
28371
|
}
|
|
28368
28372
|
}, [_?.data]);
|
|
28369
|
-
return
|
|
28373
|
+
return De(() => {
|
|
28370
28374
|
const s = setInterval(
|
|
28371
28375
|
() => p("ping"),
|
|
28372
|
-
|
|
28376
|
+
Wl
|
|
28373
28377
|
);
|
|
28374
28378
|
return () => clearInterval(s);
|
|
28375
|
-
}, [p]),
|
|
28379
|
+
}, [p]), De(() => {
|
|
28376
28380
|
r.current = i;
|
|
28377
|
-
}, [i]),
|
|
28381
|
+
}, [i]), De(() => {
|
|
28378
28382
|
if (!g) return;
|
|
28379
28383
|
const {
|
|
28380
28384
|
onDeposit: s,
|
|
28381
28385
|
onTransCode: l,
|
|
28382
|
-
onError:
|
|
28386
|
+
onError: c,
|
|
28383
28387
|
onUpdateMember: n,
|
|
28384
28388
|
onMaintainNotice: o,
|
|
28385
28389
|
onMaintainNoticeMember: y,
|
|
28386
28390
|
onReload: b,
|
|
28387
|
-
onTransferInGame:
|
|
28391
|
+
onTransferInGame: d,
|
|
28388
28392
|
onCashRegisterLimit: T
|
|
28389
|
-
} = r.current, S =
|
|
28390
|
-
memberInfoUid:
|
|
28391
|
-
data:
|
|
28392
|
-
memo:
|
|
28393
|
+
} = r.current, S = we(g, "type", ""), E = {
|
|
28394
|
+
memberInfoUid: we(g, "member_info_uid", null),
|
|
28395
|
+
data: we(g, "data", null),
|
|
28396
|
+
memo: we(g, "memo", null)
|
|
28393
28397
|
};
|
|
28394
28398
|
switch (S) {
|
|
28395
|
-
case
|
|
28399
|
+
case B.DEPOSIT:
|
|
28396
28400
|
s?.(E);
|
|
28397
28401
|
break;
|
|
28398
|
-
case
|
|
28402
|
+
case B.TRANS_CODE:
|
|
28399
28403
|
l?.(E);
|
|
28400
28404
|
break;
|
|
28401
|
-
case
|
|
28402
|
-
|
|
28405
|
+
case B.ERROR:
|
|
28406
|
+
c?.(E);
|
|
28403
28407
|
break;
|
|
28404
|
-
case
|
|
28408
|
+
case B.UPDATE_MEMBER:
|
|
28405
28409
|
n?.(E);
|
|
28406
28410
|
break;
|
|
28407
|
-
case
|
|
28411
|
+
case B.MAINTAIN_NOTICE:
|
|
28408
28412
|
o?.(E);
|
|
28409
28413
|
break;
|
|
28410
|
-
case
|
|
28414
|
+
case B.MAINTAIN_NOTICE_MEMBER:
|
|
28411
28415
|
y?.(E);
|
|
28412
28416
|
break;
|
|
28413
|
-
case
|
|
28417
|
+
case B.RELOAD:
|
|
28414
28418
|
b?.(E);
|
|
28415
28419
|
break;
|
|
28416
|
-
case
|
|
28417
|
-
case
|
|
28418
|
-
|
|
28420
|
+
case B.TRANSFER_IN_GAME:
|
|
28421
|
+
case B.CHECK_REQUEST:
|
|
28422
|
+
d?.(E);
|
|
28419
28423
|
break;
|
|
28420
|
-
case
|
|
28424
|
+
case B.CASH_REGISTER_LIMIT:
|
|
28421
28425
|
T?.(E);
|
|
28422
28426
|
break;
|
|
28423
28427
|
default:
|
|
28424
28428
|
console.warn("Unknown socket type:", S);
|
|
28425
28429
|
break;
|
|
28426
28430
|
}
|
|
28427
|
-
}, [g]),
|
|
28431
|
+
}, [g]), De(() => () => t.current = !0, []), {
|
|
28428
28432
|
sendMessage: p,
|
|
28429
28433
|
sendJsonMessage: f,
|
|
28430
28434
|
readyState: u
|
|
28431
28435
|
// WebSocket 連線狀態
|
|
28432
28436
|
};
|
|
28433
|
-
},
|
|
28434
|
-
const { client: e } =
|
|
28437
|
+
}, fi = () => {
|
|
28438
|
+
const { client: e } = ne(), i = K(async () => {
|
|
28435
28439
|
const { data: t } = await e.get("/carousels");
|
|
28436
28440
|
return t;
|
|
28437
|
-
}, [e]), m =
|
|
28441
|
+
}, [e]), m = K(async () => await e.get("/marquees"), [e]);
|
|
28438
28442
|
return { commonCarouselApi: i, commonMarqueeApi: m };
|
|
28439
|
-
},
|
|
28440
|
-
const { commonCarouselApi: e } =
|
|
28441
|
-
return
|
|
28443
|
+
}, Ut = () => {
|
|
28444
|
+
const { commonCarouselApi: e } = fi();
|
|
28445
|
+
return le({
|
|
28442
28446
|
queryKey: ["getCarouselList"],
|
|
28443
28447
|
queryFn: async () => await e()
|
|
28444
28448
|
});
|
|
28445
|
-
},
|
|
28446
|
-
const { lng: e } =
|
|
28447
|
-
return
|
|
28449
|
+
}, yt = () => {
|
|
28450
|
+
const { lng: e } = ne(), { commonMarqueeApi: i } = fi(), m = ci(e);
|
|
28451
|
+
return le({
|
|
28448
28452
|
queryKey: ["getMarqueeList"],
|
|
28449
28453
|
queryFn: async () => i(),
|
|
28450
28454
|
select: (t) => {
|
|
28451
28455
|
const r = t.Marquees;
|
|
28452
|
-
return
|
|
28456
|
+
return Ie(r, (f) => f[m] || f["en-US"]);
|
|
28453
28457
|
}
|
|
28454
28458
|
});
|
|
28455
|
-
},
|
|
28456
|
-
const { client: e, lng: i } =
|
|
28457
|
-
return { playGameApi:
|
|
28459
|
+
}, Jl = () => {
|
|
28460
|
+
const { client: e, lng: i } = ne(), m = ci(i || "tw");
|
|
28461
|
+
return { playGameApi: K(
|
|
28458
28462
|
async (r) => {
|
|
28459
28463
|
const {
|
|
28460
28464
|
gameUid: p = "",
|
|
@@ -28480,24 +28484,24 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28480
28484
|
},
|
|
28481
28485
|
[e, m]
|
|
28482
28486
|
) };
|
|
28483
|
-
},
|
|
28487
|
+
}, Ui = "3.7.8", zl = Ui, be = typeof Buffer == "function", qa = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ya = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Zl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ee = Array.prototype.slice.call(Zl), Je = ((e) => {
|
|
28484
28488
|
let i = {};
|
|
28485
28489
|
return e.forEach((m, t) => i[m] = t), i;
|
|
28486
|
-
})(
|
|
28490
|
+
})(Ee), Vl = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, H = String.fromCharCode.bind(String), Xa = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), yi = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (i) => i == "+" ? "-" : "_"), bi = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Ti = (e) => {
|
|
28487
28491
|
let i, m, t, r, p = "";
|
|
28488
28492
|
const f = e.length % 3;
|
|
28489
28493
|
for (let _ = 0; _ < e.length; ) {
|
|
28490
28494
|
if ((m = e.charCodeAt(_++)) > 255 || (t = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
|
|
28491
28495
|
throw new TypeError("invalid character found");
|
|
28492
|
-
i = m << 16 | t << 8 | r, p +=
|
|
28496
|
+
i = m << 16 | t << 8 | r, p += Ee[i >> 18 & 63] + Ee[i >> 12 & 63] + Ee[i >> 6 & 63] + Ee[i & 63];
|
|
28493
28497
|
}
|
|
28494
28498
|
return f ? p.slice(0, f - 3) + "===".substring(f) : p;
|
|
28495
|
-
}, pa = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") :
|
|
28499
|
+
}, pa = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : Ti, la = be ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
28496
28500
|
let m = [];
|
|
28497
28501
|
for (let t = 0, r = e.length; t < r; t += 4096)
|
|
28498
28502
|
m.push(H.apply(null, e.subarray(t, t + 4096)));
|
|
28499
28503
|
return pa(m.join(""));
|
|
28500
|
-
},
|
|
28504
|
+
}, Ze = (e, i = !1) => i ? yi(la(e)) : la(e), Al = (e) => {
|
|
28501
28505
|
if (e.length < 2) {
|
|
28502
28506
|
var i = e.charCodeAt(0);
|
|
28503
28507
|
return i < 128 ? e : i < 2048 ? H(192 | i >>> 6) + H(128 | i & 63) : H(224 | i >>> 12 & 15) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
|
|
@@ -28505,7 +28509,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28505
28509
|
var i = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
28506
28510
|
return H(240 | i >>> 18 & 7) + H(128 | i >>> 12 & 63) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
|
|
28507
28511
|
}
|
|
28508
|
-
},
|
|
28512
|
+
}, Il = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ci = (e) => e.replace(Il, Al), $a = be ? (e) => Buffer.from(e, "utf8").toString("base64") : Ya ? (e) => la(Ya.encode(e)) : (e) => pa(Ci(e)), Ue = (e, i = !1) => i ? yi($a(e)) : $a(e), ei = (e) => Ue(e, !0), Bl = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Kl = (e) => {
|
|
28509
28513
|
switch (e.length) {
|
|
28510
28514
|
case 4:
|
|
28511
28515
|
var i = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), m = i - 65536;
|
|
@@ -28515,26 +28519,26 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28515
28519
|
default:
|
|
28516
28520
|
return H((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
28517
28521
|
}
|
|
28518
|
-
},
|
|
28519
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
28522
|
+
}, vi = (e) => e.replace(Bl, Kl), hi = (e) => {
|
|
28523
|
+
if (e = e.replace(/\s+/g, ""), !Vl.test(e))
|
|
28520
28524
|
throw new TypeError("malformed base64.");
|
|
28521
28525
|
e += "==".slice(2 - (e.length & 3));
|
|
28522
28526
|
let i, m, t, r = [];
|
|
28523
28527
|
for (let p = 0; p < e.length; )
|
|
28524
|
-
i =
|
|
28528
|
+
i = Je[e.charAt(p++)] << 18 | Je[e.charAt(p++)] << 12 | (m = Je[e.charAt(p++)]) << 6 | (t = Je[e.charAt(p++)]), m === 64 ? r.push(H(i >> 16 & 255)) : t === 64 ? r.push(H(i >> 16 & 255, i >> 8 & 255)) : r.push(H(i >> 16 & 255, i >> 8 & 255, i & 255));
|
|
28525
28529
|
return r.join("");
|
|
28526
|
-
}, ga = typeof atob == "function" ? (e) => atob(
|
|
28530
|
+
}, ga = typeof atob == "function" ? (e) => atob(bi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : hi, ki = be ? (e) => Xa(Buffer.from(e, "base64")) : (e) => Xa(ga(e).split("").map((i) => i.charCodeAt(0))), Si = (e) => ki(Ni(e)), jl = be ? (e) => Buffer.from(e, "base64").toString("utf8") : qa ? (e) => qa.decode(ki(e)) : (e) => vi(ga(e)), Ni = (e) => bi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), ta = (e) => jl(Ni(e)), Ql = (e) => {
|
|
28527
28531
|
if (typeof e != "string")
|
|
28528
28532
|
return !1;
|
|
28529
28533
|
const i = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
28530
28534
|
return !/[^\s0-9a-zA-Z\+/]/.test(i) || !/[^\s0-9a-zA-Z\-_]/.test(i);
|
|
28531
|
-
},
|
|
28535
|
+
}, Di = (e) => ({
|
|
28532
28536
|
value: e,
|
|
28533
28537
|
enumerable: !1,
|
|
28534
28538
|
writable: !0,
|
|
28535
28539
|
configurable: !0
|
|
28536
|
-
}),
|
|
28537
|
-
const e = (i, m) => Object.defineProperty(String.prototype, i,
|
|
28540
|
+
}), Ei = function() {
|
|
28541
|
+
const e = (i, m) => Object.defineProperty(String.prototype, i, Di(m));
|
|
28538
28542
|
e("fromBase64", function() {
|
|
28539
28543
|
return ta(this);
|
|
28540
28544
|
}), e("toBase64", function(i) {
|
|
@@ -28544,43 +28548,43 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28544
28548
|
}), e("toBase64URL", function() {
|
|
28545
28549
|
return Ue(this, !0);
|
|
28546
28550
|
}), e("toUint8Array", function() {
|
|
28547
|
-
return
|
|
28551
|
+
return Si(this);
|
|
28548
28552
|
});
|
|
28549
|
-
},
|
|
28550
|
-
const e = (i, m) => Object.defineProperty(Uint8Array.prototype, i,
|
|
28553
|
+
}, Li = function() {
|
|
28554
|
+
const e = (i, m) => Object.defineProperty(Uint8Array.prototype, i, Di(m));
|
|
28551
28555
|
e("toBase64", function(i) {
|
|
28552
|
-
return
|
|
28556
|
+
return Ze(this, i);
|
|
28553
28557
|
}), e("toBase64URI", function() {
|
|
28554
|
-
return
|
|
28558
|
+
return Ze(this, !0);
|
|
28555
28559
|
}), e("toBase64URL", function() {
|
|
28556
|
-
return
|
|
28560
|
+
return Ze(this, !0);
|
|
28557
28561
|
});
|
|
28558
|
-
},
|
|
28559
|
-
|
|
28560
|
-
},
|
|
28561
|
-
version:
|
|
28562
|
-
VERSION:
|
|
28562
|
+
}, ql = () => {
|
|
28563
|
+
Ei(), Li();
|
|
28564
|
+
}, Yl = {
|
|
28565
|
+
version: Ui,
|
|
28566
|
+
VERSION: zl,
|
|
28563
28567
|
atob: ga,
|
|
28564
|
-
atobPolyfill:
|
|
28568
|
+
atobPolyfill: hi,
|
|
28565
28569
|
btoa: pa,
|
|
28566
|
-
btoaPolyfill:
|
|
28570
|
+
btoaPolyfill: Ti,
|
|
28567
28571
|
fromBase64: ta,
|
|
28568
28572
|
toBase64: Ue,
|
|
28569
28573
|
encode: Ue,
|
|
28570
|
-
encodeURI:
|
|
28571
|
-
encodeURL:
|
|
28572
|
-
utob:
|
|
28573
|
-
btou:
|
|
28574
|
+
encodeURI: ei,
|
|
28575
|
+
encodeURL: ei,
|
|
28576
|
+
utob: Ci,
|
|
28577
|
+
btou: vi,
|
|
28574
28578
|
decode: ta,
|
|
28575
|
-
isValid:
|
|
28576
|
-
fromUint8Array:
|
|
28577
|
-
toUint8Array:
|
|
28578
|
-
extendString:
|
|
28579
|
-
extendUint8Array:
|
|
28580
|
-
extendBuiltins:
|
|
28581
|
-
},
|
|
28582
|
-
const { playGameApi: m } =
|
|
28583
|
-
return
|
|
28579
|
+
isValid: Ql,
|
|
28580
|
+
fromUint8Array: Ze,
|
|
28581
|
+
toUint8Array: Si,
|
|
28582
|
+
extendString: Ei,
|
|
28583
|
+
extendUint8Array: Li,
|
|
28584
|
+
extendBuiltins: ql
|
|
28585
|
+
}, bt = (e, i) => {
|
|
28586
|
+
const { playGameApi: m } = Jl();
|
|
28587
|
+
return le({
|
|
28584
28588
|
queryKey: ["playGame"],
|
|
28585
28589
|
queryFn: async () => {
|
|
28586
28590
|
const { gameUid: t, gameCode: r, isMobile: p, gameCurrency: f, currentCurrency: _ } = e || {}, u = await m({
|
|
@@ -28593,7 +28597,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28593
28597
|
game_currency: g,
|
|
28594
28598
|
lang: s,
|
|
28595
28599
|
not_support_iframe: l,
|
|
28596
|
-
portrait:
|
|
28600
|
+
portrait: c,
|
|
28597
28601
|
url: n,
|
|
28598
28602
|
is_html_code: o,
|
|
28599
28603
|
message: y
|
|
@@ -28602,39 +28606,39 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28602
28606
|
gameCurrency: g,
|
|
28603
28607
|
lang: s,
|
|
28604
28608
|
supportIframe: !l,
|
|
28605
|
-
supportPortrait:
|
|
28609
|
+
supportPortrait: c,
|
|
28606
28610
|
isHtmlCode: o,
|
|
28607
28611
|
gameUrl: n,
|
|
28608
|
-
decodeGameUrl:
|
|
28612
|
+
decodeGameUrl: Yl.decode(n),
|
|
28609
28613
|
message: y
|
|
28610
28614
|
};
|
|
28611
28615
|
},
|
|
28612
28616
|
enabled: !!e?.gameCode,
|
|
28613
28617
|
...i
|
|
28614
28618
|
});
|
|
28615
|
-
},
|
|
28619
|
+
}, Xl = ({ options: e } = {}) => {
|
|
28616
28620
|
const { userLoginApi: i } = ye();
|
|
28617
|
-
return
|
|
28621
|
+
return ri({
|
|
28618
28622
|
mutationKey: ["userLogin"],
|
|
28619
28623
|
mutationFn: async (m) => i(m),
|
|
28620
28624
|
...e
|
|
28621
28625
|
});
|
|
28622
|
-
},
|
|
28626
|
+
}, $l = ({ options: e } = {}) => {
|
|
28623
28627
|
const { userLogoutApi: i } = ye();
|
|
28624
|
-
return
|
|
28628
|
+
return ri({
|
|
28625
28629
|
mutationKey: ["userLogout"],
|
|
28626
28630
|
mutationFn: async () => i(),
|
|
28627
28631
|
...e
|
|
28628
28632
|
});
|
|
28629
|
-
},
|
|
28633
|
+
}, Tt = ({
|
|
28630
28634
|
options: e = {
|
|
28631
28635
|
login: {},
|
|
28632
28636
|
logout: {}
|
|
28633
28637
|
}
|
|
28634
28638
|
} = {}) => {
|
|
28635
|
-
const i =
|
|
28639
|
+
const i = Xl({ options: e.login }), m = $l({ options: e.logout });
|
|
28636
28640
|
return { login: i, logout: m };
|
|
28637
|
-
},
|
|
28641
|
+
}, ai = (e) => {
|
|
28638
28642
|
switch (e) {
|
|
28639
28643
|
case "tw":
|
|
28640
28644
|
return "Tw";
|
|
@@ -28653,8 +28657,8 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28653
28657
|
default:
|
|
28654
28658
|
return "En";
|
|
28655
28659
|
}
|
|
28656
|
-
},
|
|
28657
|
-
const { lng: i } =
|
|
28660
|
+
}, et = "https://d1h3qe8voog6w4.cloudfront.net", ii = "https://d3jx2uvukujuvn.cloudfront.net", li = "game-icon-ds88", Ct = ({ gameData: e = {} } = {}) => {
|
|
28661
|
+
const { lng: i } = ne(), m = ai(i), {
|
|
28658
28662
|
gameCode: t,
|
|
28659
28663
|
// 遊戲代碼
|
|
28660
28664
|
gameUid: r,
|
|
@@ -28674,7 +28678,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28674
28678
|
// 遊戲子類型
|
|
28675
28679
|
game_type: l,
|
|
28676
28680
|
// 遊戲類型
|
|
28677
|
-
game_tags:
|
|
28681
|
+
game_tags: c,
|
|
28678
28682
|
// 遊戲標籤
|
|
28679
28683
|
isUnderMaintenance: n,
|
|
28680
28684
|
// 是否維護中
|
|
@@ -28684,7 +28688,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28684
28688
|
// 是否支援橫向
|
|
28685
28689
|
userClickCount: b,
|
|
28686
28690
|
// 用戶點擊次數
|
|
28687
|
-
gameNameEn:
|
|
28691
|
+
gameNameEn: d,
|
|
28688
28692
|
// 英文名稱
|
|
28689
28693
|
gameNameZh: T,
|
|
28690
28694
|
// 中文名稱
|
|
@@ -28692,7 +28696,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28692
28696
|
// 越南名稱
|
|
28693
28697
|
gameNameTw: E
|
|
28694
28698
|
// 繁體中文名稱
|
|
28695
|
-
} = e, v = e?.[`gameName${
|
|
28699
|
+
} = e, v = e?.[`gameName${ai(m)}`], D = `${ii}/${li}/en/${g}/${Ga(t, / /g, "_")}.webp`, L = `${ii}/${li}/en/${g}/${Ga(t, / /g, "_")}.gif`;
|
|
28696
28700
|
return {
|
|
28697
28701
|
gameCode: t,
|
|
28698
28702
|
gameUid: r,
|
|
@@ -28703,20 +28707,20 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28703
28707
|
gamePlatform: g,
|
|
28704
28708
|
gameSubType: s,
|
|
28705
28709
|
gameType: l,
|
|
28706
|
-
gameTags:
|
|
28710
|
+
gameTags: c,
|
|
28707
28711
|
isUnderMaintenance: n,
|
|
28708
28712
|
supportVertical: o,
|
|
28709
28713
|
supportHorizontal: y,
|
|
28710
28714
|
userClickCount: b,
|
|
28711
|
-
gameNameEn:
|
|
28715
|
+
gameNameEn: d,
|
|
28712
28716
|
gameNameZh: T,
|
|
28713
28717
|
gameNameVi: S,
|
|
28714
28718
|
gameNameTw: E,
|
|
28715
28719
|
gameName: v,
|
|
28716
|
-
gameImageUrl:
|
|
28717
|
-
gameImageUrlAnimated:
|
|
28720
|
+
gameImageUrl: D,
|
|
28721
|
+
gameImageUrlAnimated: L
|
|
28718
28722
|
};
|
|
28719
|
-
},
|
|
28723
|
+
}, at = "ds88platformIcon", it = (e, i = !1) => ml([
|
|
28720
28724
|
"EVO",
|
|
28721
28725
|
"IMSPRIBE",
|
|
28722
28726
|
"SABA",
|
|
@@ -28727,7 +28731,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28727
28731
|
"HACK",
|
|
28728
28732
|
"NAGA",
|
|
28729
28733
|
"RSG"
|
|
28730
|
-
], e) && i ? `${e}_dark` : e,
|
|
28734
|
+
], e) && i ? `${e}_dark` : e, vt = ({ platformData: e, darkMode: i } = {}) => {
|
|
28731
28735
|
const {
|
|
28732
28736
|
SubPlatformEnum: m,
|
|
28733
28737
|
// 子平台枚舉
|
|
@@ -28749,7 +28753,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28749
28753
|
// 臨時維護開始時間
|
|
28750
28754
|
temp_maintenance_end_time: l
|
|
28751
28755
|
// 臨時維護結束時間
|
|
28752
|
-
} = e || {},
|
|
28756
|
+
} = e || {}, c = `${et}/${at}/${it(t, i)}.png`;
|
|
28753
28757
|
return {
|
|
28754
28758
|
subPlatformEnum: m,
|
|
28755
28759
|
platformEnum: t,
|
|
@@ -28761,48 +28765,48 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
|
28761
28765
|
platformMode: g,
|
|
28762
28766
|
tempMaintenanceStartTime: s,
|
|
28763
28767
|
tempMaintenanceEndTime: l,
|
|
28764
|
-
platformImageUrl:
|
|
28768
|
+
platformImageUrl: c
|
|
28765
28769
|
};
|
|
28766
28770
|
};
|
|
28767
28771
|
export {
|
|
28768
|
-
|
|
28769
|
-
|
|
28770
|
-
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28780
|
-
|
|
28781
|
-
|
|
28782
|
-
|
|
28783
|
-
|
|
28784
|
-
|
|
28785
|
-
|
|
28786
|
-
|
|
28787
|
-
|
|
28788
|
-
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
|
|
28792
|
-
|
|
28793
|
-
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
|
|
28797
|
-
|
|
28798
|
-
|
|
28799
|
-
|
|
28800
|
-
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
|
|
28804
|
-
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
|
|
28772
|
+
oi as ApiCtx,
|
|
28773
|
+
gt as ApiProvider,
|
|
28774
|
+
si as GamesInfoCtx,
|
|
28775
|
+
Cl as buildMultiTypes,
|
|
28776
|
+
ut as buildMultiTypesWithSubTypes,
|
|
28777
|
+
_l as buildSinglePlatformWithSubTypes,
|
|
28778
|
+
cl as buildSingleType,
|
|
28779
|
+
Tl as categorizeGames,
|
|
28780
|
+
ci as convertLanguageCode,
|
|
28781
|
+
st as createLogoutHandler,
|
|
28782
|
+
yl as extractGameSubTypeNames,
|
|
28783
|
+
Ul as extractGameTypeNames,
|
|
28784
|
+
xa as extractPlatformNames,
|
|
28785
|
+
di as filterGamesByPlatform,
|
|
28786
|
+
ui as findGameTypeUid,
|
|
28787
|
+
pi as findPlatformUid,
|
|
28788
|
+
gi as findSubPlatform,
|
|
28789
|
+
fl as flattenAllGames,
|
|
28790
|
+
bl as flattenFavoriteGames,
|
|
28791
|
+
vl as groupGamesByPlatform,
|
|
28792
|
+
hl as groupGamesByPlatformAndSubType,
|
|
28793
|
+
dl as groupGamesBySubType,
|
|
28794
|
+
Dl as initMockWindowData,
|
|
28795
|
+
kl as processGameInfo,
|
|
28796
|
+
pt as processPlatformData,
|
|
28797
|
+
ne as useApiContext,
|
|
28798
|
+
dt as useBalanceGetter,
|
|
28799
|
+
ft as useClientWebSocket,
|
|
28800
|
+
Ct as useGameConfig,
|
|
28801
|
+
ot as useGameInfoContext,
|
|
28802
|
+
Nl as useGamesInfo,
|
|
28803
|
+
Ut as useGetCarouseList,
|
|
28804
|
+
yt as useGetMarquee,
|
|
28805
|
+
ct as useGetMemberInfo,
|
|
28806
|
+
_t as useInitializeWithToken,
|
|
28807
|
+
Xl as useLogin,
|
|
28808
|
+
$l as useLogout,
|
|
28809
|
+
vt as usePlatformConfig,
|
|
28810
|
+
bt as usePlayGame,
|
|
28811
|
+
Tt as useUser
|
|
28808
28812
|
};
|