@obb871001/api-integration-sdk 1.0.193 → 1.0.194

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.js CHANGED
@@ -1,7 +1,7 @@
1
- import va, { createContext as _n, useContext as fn, useCallback as q, useMemo as wa, useEffect as ya, useRef as Xi } from "react";
1
+ import va, { createContext as _n, useContext as fn, useCallback as q, useMemo as wa, useEffect as ba, useRef as Xi } from "react";
2
2
  import { useQuery as ae, QueryClient as jn, QueryClientProvider as $n, useQueries as Un, useMutation as Ce } from "@tanstack/react-query";
3
3
  import Qn from "axios";
4
- import { find as Oe, isEmpty as me, isObject as Ti, flatMap as hi, isArray as Ne, map as he, entries as yn, values as Yn, keys as et, get as ba, toLower as at, replace as it, includes as Xn } from "lodash";
4
+ import { get as oa, find as Oe, isEmpty as me, isObject as Ti, flatMap as hi, isArray as Ne, map as he, entries as yn, values as Yn, keys as et, toLower as at, replace as it, includes as Xn } from "lodash";
5
5
  import el from "react-dom";
6
6
  var Pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function zi(e) {
@@ -9,21 +9,21 @@ function zi(e) {
9
9
  }
10
10
  function al(e) {
11
11
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
12
- var u = e.default;
13
- if (typeof u == "function") {
12
+ var p = e.default;
13
+ if (typeof p == "function") {
14
14
  var l = function i() {
15
- var p = !1;
15
+ var u = !1;
16
16
  try {
17
- p = this instanceof i;
17
+ u = this instanceof i;
18
18
  } catch {
19
19
  }
20
- return p ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
20
+ return u ? Reflect.construct(p, arguments, this.constructor) : p.apply(this, arguments);
21
21
  };
22
- l.prototype = u.prototype;
22
+ l.prototype = p.prototype;
23
23
  } else l = {};
24
24
  return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(e).forEach(function(i) {
25
- var p = Object.getOwnPropertyDescriptor(e, i);
26
- Object.defineProperty(l, i, p.get ? p : {
25
+ var u = Object.getOwnPropertyDescriptor(e, i);
26
+ Object.defineProperty(l, i, u.get ? u : {
27
27
  enumerable: !0,
28
28
  get: function() {
29
29
  return e[i];
@@ -31,26 +31,26 @@ function al(e) {
31
31
  });
32
32
  }), l;
33
33
  }
34
- var Ra = { exports: {} }, ca = {};
34
+ var Ra = { exports: {} }, _a = {};
35
35
  var tt;
36
36
  function il() {
37
- if (tt) return ca;
37
+ if (tt) return _a;
38
38
  tt = 1;
39
- var e = va, u = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
39
+ var e = va, p = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, u = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
40
40
  function C(c, g, a) {
41
41
  var t, m = {}, n = null, r = null;
42
42
  a !== void 0 && (n = "" + a), g.key !== void 0 && (n = "" + g.key), g.ref !== void 0 && (r = g.ref);
43
43
  for (t in g) i.call(g, t) && !d.hasOwnProperty(t) && (m[t] = g[t]);
44
44
  if (c && c.defaultProps) for (t in g = c.defaultProps, g) m[t] === void 0 && (m[t] = g[t]);
45
- return { $$typeof: u, type: c, key: n, ref: r, props: m, _owner: p.current };
45
+ return { $$typeof: p, type: c, key: n, ref: r, props: m, _owner: u.current };
46
46
  }
47
- return ca.Fragment = l, ca.jsx = C, ca.jsxs = C, ca;
47
+ return _a.Fragment = l, _a.jsx = C, _a.jsxs = C, _a;
48
48
  }
49
- var _a = {};
49
+ var fa = {};
50
50
  var nt;
51
51
  function tl() {
52
52
  return nt || (nt = 1, process.env.NODE_ENV !== "production" && (function() {
53
- var e = va, u = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), n = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), o = Symbol.iterator, _ = "@@iterator";
53
+ var e = va, p = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), n = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), o = Symbol.iterator, _ = "@@iterator";
54
54
  function f(T) {
55
55
  if (T === null || typeof T != "object")
56
56
  return null;
@@ -78,7 +78,7 @@ function tl() {
78
78
  var b = !1, v = !1, h = !1, x = !1, E = !1, O;
79
79
  O = Symbol.for("react.module.reference");
80
80
  function k(T) {
81
- return !!(typeof T == "string" || typeof T == "function" || T === i || T === d || E || T === p || T === a || T === t || x || T === r || b || v || h || typeof T == "object" && T !== null && (T.$$typeof === n || T.$$typeof === m || T.$$typeof === C || T.$$typeof === c || T.$$typeof === g || // This needs to include all possible module reference object
81
+ return !!(typeof T == "string" || typeof T == "function" || T === i || T === d || E || T === u || T === a || T === t || x || T === r || b || v || h || typeof T == "object" && T !== null && (T.$$typeof === n || T.$$typeof === m || T.$$typeof === C || T.$$typeof === c || T.$$typeof === g || // This needs to include all possible module reference object
82
82
  // types supported by any Flight configuration anywhere since
83
83
  // we don't know which Flight build this will end up being used
84
84
  // with.
@@ -108,7 +108,7 @@ function tl() {
108
108
  return "Portal";
109
109
  case d:
110
110
  return "Profiler";
111
- case p:
111
+ case u:
112
112
  return "StrictMode";
113
113
  case a:
114
114
  return "Suspense";
@@ -288,7 +288,7 @@ function tl() {
288
288
  } finally {
289
289
  te = !1, K.current = ee, I(), Error.prepareStackTrace = X;
290
290
  }
291
- var la = T ? T.displayName || T.name : "", qe = la ? Z(la) : "";
291
+ var ra = T ? T.displayName || T.name : "", qe = ra ? Z(ra) : "";
292
292
  return typeof T == "function" && ie.set(T, qe), qe;
293
293
  }
294
294
  function oe(T, B, V) {
@@ -364,26 +364,26 @@ function tl() {
364
364
  return V;
365
365
  }
366
366
  }
367
- function ia(T) {
367
+ function ta(T) {
368
368
  try {
369
- return sa(T), !1;
369
+ return ua(T), !1;
370
370
  } catch {
371
371
  return !0;
372
372
  }
373
373
  }
374
- function sa(T) {
374
+ function ua(T) {
375
375
  return "" + T;
376
376
  }
377
377
  function Me(T) {
378
- if (ia(T))
379
- return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Se(T)), sa(T);
378
+ if (ta(T))
379
+ return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Se(T)), ua(T);
380
380
  }
381
381
  var He = y.ReactCurrentOwner, Si = {
382
382
  key: !0,
383
383
  ref: !0,
384
384
  __self: !0,
385
385
  __source: !0
386
- }, ua, pa;
386
+ }, pa, ga;
387
387
  function We(T) {
388
388
  if (xe.call(T, "ref")) {
389
389
  var B = Object.getOwnPropertyDescriptor(T, "ref").get;
@@ -406,7 +406,7 @@ function tl() {
406
406
  function ha(T, B) {
407
407
  {
408
408
  var V = function() {
409
- ua || (ua = !0, s("%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)", B));
409
+ pa || (pa = !0, s("%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)", B));
410
410
  };
411
411
  V.isReactWarning = !0, Object.defineProperty(T, "key", {
412
412
  get: V,
@@ -417,7 +417,7 @@ function tl() {
417
417
  function ka(T, B) {
418
418
  {
419
419
  var V = function() {
420
- pa || (pa = !0, s("%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)", B));
420
+ ga || (ga = !0, s("%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)", B));
421
421
  };
422
422
  V.isReactWarning = !0, Object.defineProperty(T, "ref", {
423
423
  get: V,
@@ -428,7 +428,7 @@ function tl() {
428
428
  var Ei = function(T, B, V, J, X, ee, Q) {
429
429
  var j = {
430
430
  // This tag allows us to uniquely identify this as a React Element
431
- $$typeof: u,
431
+ $$typeof: p,
432
432
  // Built-in properties that belong on the element
433
433
  type: T,
434
434
  key: B,
@@ -472,7 +472,7 @@ function tl() {
472
472
  return Ei(T, j, _e, X, J, He.current, Q);
473
473
  }
474
474
  }
475
- var ta = y.ReactCurrentOwner, xa = y.ReactDebugCurrentFrame;
475
+ var na = y.ReactCurrentOwner, xa = y.ReactDebugCurrentFrame;
476
476
  function Re(T) {
477
477
  if (T) {
478
478
  var B = T._owner, V = Ge(T.type, T._source, B ? B.type : null);
@@ -480,15 +480,15 @@ function tl() {
480
480
  } else
481
481
  xa.setExtraStackFrame(null);
482
482
  }
483
- var ga;
484
- ga = !1;
485
- function na(T) {
486
- return typeof T == "object" && T !== null && T.$$typeof === u;
483
+ var da;
484
+ da = !1;
485
+ function la(T) {
486
+ return typeof T == "object" && T !== null && T.$$typeof === p;
487
487
  }
488
488
  function Sa() {
489
489
  {
490
- if (ta.current) {
491
- var T = G(ta.current.type);
490
+ if (na.current) {
491
+ var T = G(na.current.type);
492
492
  if (T)
493
493
  return `
494
494
 
@@ -523,7 +523,7 @@ Check the top-level render call using <` + V + ">.");
523
523
  return;
524
524
  Da[V] = !0;
525
525
  var J = "";
526
- T && T._owner && T._owner !== ta.current && (J = " It was passed a child from " + G(T._owner.type) + "."), Re(T), s('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, J), Re(null);
526
+ T && T._owner && T._owner !== na.current && (J = " It was passed a child from " + G(T._owner.type) + "."), Re(T), s('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, J), Re(null);
527
527
  }
528
528
  }
529
529
  function La(T, B) {
@@ -533,15 +533,15 @@ Check the top-level render call using <` + V + ">.");
533
533
  if (pe(T))
534
534
  for (var V = 0; V < T.length; V++) {
535
535
  var J = T[V];
536
- na(J) && Na(J, B);
536
+ la(J) && Na(J, B);
537
537
  }
538
- else if (na(T))
538
+ else if (la(T))
539
539
  T._store && (T._store.validated = !0);
540
540
  else if (T) {
541
541
  var X = f(T);
542
542
  if (typeof X == "function" && X !== T.entries)
543
543
  for (var ee = X.call(T), Q; !(Q = ee.next()).done; )
544
- na(Q.value) && Na(Q.value, B);
544
+ la(Q.value) && Na(Q.value, B);
545
545
  }
546
546
  }
547
547
  }
@@ -562,8 +562,8 @@ Check the top-level render call using <` + V + ">.");
562
562
  if (V) {
563
563
  var J = G(B);
564
564
  Ie(V, T.props, "prop", J, T);
565
- } else if (B.PropTypes !== void 0 && !ga) {
566
- ga = !0;
565
+ } else if (B.PropTypes !== void 0 && !da) {
566
+ da = !0;
567
567
  var X = G(B);
568
568
  s("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", X || "Unknown");
569
569
  }
@@ -582,7 +582,7 @@ Check the top-level render call using <` + V + ">.");
582
582
  T.ref !== null && (Re(T), s("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
583
583
  }
584
584
  }
585
- var da = {};
585
+ var ca = {};
586
586
  function ge(T, B, V, J, X, ee) {
587
587
  {
588
588
  var Q = k(T);
@@ -592,7 +592,7 @@ Check the top-level render call using <` + V + ">.");
592
592
  var _e = Li();
593
593
  _e ? j += _e : j += Sa();
594
594
  var ne;
595
- T === null ? ne = "null" : pe(T) ? ne = "array" : T !== void 0 && T.$$typeof === u ? (ne = "<" + (G(T.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof T, s("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, j);
595
+ T === null ? ne = "null" : pe(T) ? ne = "array" : T !== void 0 && T.$$typeof === p ? (ne = "<" + (G(T.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof T, s("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, j);
596
596
  }
597
597
  var le = Ni(T, B, V, X, ee);
598
598
  if (le == null)
@@ -602,8 +602,8 @@ Check the top-level render call using <` + V + ">.");
602
602
  if (ke !== void 0)
603
603
  if (J)
604
604
  if (pe(ke)) {
605
- for (var la = 0; la < ke.length; la++)
606
- La(ke[la], T);
605
+ for (var ra = 0; ra < ke.length; ra++)
606
+ La(ke[ra], T);
607
607
  Object.freeze && Object.freeze(ke);
608
608
  } else
609
609
  s("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -614,14 +614,14 @@ Check the top-level render call using <` + V + ">.");
614
614
  var qe = G(T), be = Object.keys(B).filter(function(qn) {
615
615
  return qn !== "key";
616
616
  }), Ri = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
617
- if (!da[qe + Ri]) {
617
+ if (!ca[qe + Ri]) {
618
618
  var Kn = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
619
619
  s(`A props object containing a "key" prop is being spread into JSX:
620
620
  let props = %s;
621
621
  <%s {...props} />
622
622
  React keys must be passed directly to JSX without using spread:
623
623
  let props = %s;
624
- <%s key={someKey} {...props} />`, Ri, qe, Kn, qe), da[qe + Ri] = !0;
624
+ <%s key={someKey} {...props} />`, Ri, qe, Kn, qe), ca[qe + Ri] = !0;
625
625
  }
626
626
  }
627
627
  return T === i ? Gi(le) : Ga(le), le;
@@ -634,8 +634,8 @@ React keys must be passed directly to JSX without using spread:
634
634
  return ge(T, B, V, !1);
635
635
  }
636
636
  var Mi = Ma, In = De;
637
- _a.Fragment = i, _a.jsx = Mi, _a.jsxs = In;
638
- })()), _a;
637
+ fa.Fragment = i, fa.jsx = Mi, fa.jsxs = In;
638
+ })()), fa;
639
639
  }
640
640
  var lt;
641
641
  function nl() {
@@ -647,13 +647,32 @@ const bn = _n(null), re = () => {
647
647
  if (!e)
648
648
  throw new Error("useApiContext must be used within ApiProvider");
649
649
  return e;
650
+ }, ea = (e) => {
651
+ switch (e) {
652
+ case "tw":
653
+ return "zh_TW";
654
+ case "en":
655
+ return "en_US";
656
+ case "cn":
657
+ return "zh_CN";
658
+ case "th":
659
+ return "th_TH";
660
+ case "id":
661
+ return "id_ID";
662
+ case "vi":
663
+ return "vi_VN";
664
+ case "jp":
665
+ return "ja_JP";
666
+ default:
667
+ return e;
668
+ }
650
669
  };
651
670
  function rt({
652
671
  baseURL: e,
653
- getToken: u,
672
+ getToken: p,
654
673
  timeoutMs: l = 15e3,
655
674
  lng: i = "tw",
656
- store: p,
675
+ store: u,
657
676
  onError: d,
658
677
  formData: C = !1,
659
678
  currency: c,
@@ -667,15 +686,42 @@ function rt({
667
686
  }
668
687
  });
669
688
  return a.interceptors.request.use(async (t) => {
670
- if (t.headers = t.headers || {}, u) {
671
- const n = await u();
689
+ if (t.headers = t.headers || {}, p) {
690
+ const n = await p();
672
691
  n && (t.headers.Authorization = `Bearer ${n}`);
673
692
  }
674
- const m = p?.getState()?.isWalletCurrency || c || "TWD";
693
+ const m = u?.getState()?.isWalletCurrency || c || "TWD";
675
694
  return t.headers.Currency = m, t.headers["currency-code"] = m, t.headers.lang = i, t;
676
695
  }), a.interceptors.response.use(
677
696
  (t) => t.data,
678
- (t) => (console.log(t), d ? d(t, { instance: a }) : Promise.reject(t))
697
+ (t) => {
698
+ const m = oa(
699
+ t,
700
+ "response.data.message",
701
+ "發生錯誤,請稍後再試。"
702
+ );
703
+ if (g) {
704
+ const n = ea(i), r = {
705
+ zh_TW: "系統提示",
706
+ zh_CN: "系统提示",
707
+ en_US: "System Prompt",
708
+ id_ID: "Prompt Sistem",
709
+ vi_VN: "Lời nhắc hệ thống",
710
+ th_TH: "ข้อความระบบ",
711
+ ja_JP: "システムプロンプト"
712
+ };
713
+ u.dispatch({
714
+ type: "ui/showToast",
715
+ payload: {
716
+ title: r[n] || "System Prompt",
717
+ desicription: m,
718
+ status: "error",
719
+ duration: 3e3
720
+ }
721
+ });
722
+ }
723
+ return console.log(t), d ? d(t, { instance: a }) : Promise.reject(t);
724
+ }
679
725
  ), a;
680
726
  }
681
727
  const Cn = _n(null), Vo = () => {
@@ -685,31 +731,12 @@ const Cn = _n(null), Vo = () => {
685
731
  "useGameInfoContext must be used within a GameInfoCtx.Provider"
686
732
  );
687
733
  return e;
688
- }, oa = (e) => {
689
- switch (e) {
690
- case "tw":
691
- return "zh_TW";
692
- case "en":
693
- return "en_US";
694
- case "cn":
695
- return "zh_CN";
696
- case "th":
697
- return "th_TH";
698
- case "id":
699
- return "id_ID";
700
- case "vi":
701
- return "vi_VN";
702
- case "jp":
703
- return "ja_JP";
704
- default:
705
- return e;
706
- }
707
734
  }, Zo = () => {
708
- const e = (i, p) => !i && !p, u = (i) => i.startsWith("pc.");
735
+ const e = (i, u) => !i && !u, p = (i) => i.startsWith("pc.");
709
736
  return {
710
737
  executeLogout: ({
711
738
  isCallBackInvalid: i = !1,
712
- hostname: p = "",
739
+ hostname: u = "",
713
740
  shouldRedirect: d,
714
741
  onShowError: C,
715
742
  onCleanup: c,
@@ -717,32 +744,32 @@ const Cn = _n(null), Vo = () => {
717
744
  onRedirect: a,
718
745
  onGoogleLogout: t
719
746
  }) => {
720
- const m = u(p);
747
+ const m = p(u);
721
748
  e(i, m) && C?.(), c?.(), g?.(), d && a?.("/"), t?.();
722
749
  },
723
750
  shouldShowErrorNotice: e,
724
- isMachineDomain: u
751
+ isMachineDomain: p
725
752
  };
726
753
  }, Jo = (e) => {
727
- let u = Number(e);
728
- return isNaN(u) ? e : new Intl.NumberFormat("en-US", {
754
+ let p = Number(e);
755
+ return isNaN(p) ? e : new Intl.NumberFormat("en-US", {
729
756
  style: "decimal",
730
757
  minimumFractionDigits: 2,
731
758
  maximumFractionDigits: 2
732
- }).format(u);
733
- }, vn = (e = [], u) => Oe(e, { gameTypeName: u })?.gameTypeUid, Tn = (e = [], u) => Oe(e, { platform: u })?.platformUid, hn = (e = [], u) => Oe(e, { SubPlatformEnum: u }), kn = (e = [], u, l) => me(e) ? [] : e.filter((i) => l ? String(i?.SubPlatformEnumUid) === String(l?.SubPlatformEnumUid) : String(i.platformUid) === String(u)), ll = (e = []) => me(e) ? {} : e.reduce((u, l) => {
759
+ }).format(p);
760
+ }, vn = (e = [], p) => Oe(e, { gameTypeName: p })?.gameTypeUid, Tn = (e = [], p) => Oe(e, { platform: p })?.platformUid, hn = (e = [], p) => Oe(e, { SubPlatformEnum: p }), kn = (e = [], p, l) => me(e) ? [] : e.filter((i) => l ? String(i?.SubPlatformEnumUid) === String(l?.SubPlatformEnumUid) : String(i.platformUid) === String(p)), ll = (e = []) => me(e) ? {} : e.reduce((p, l) => {
734
761
  const i = l?.game_subtype || "UNKNOWN";
735
- return u[i] || (u[i] = []), u[i].push(l), u;
762
+ return p[i] || (p[i] = []), p[i].push(l), p;
736
763
  }, {}), rl = ({
737
764
  gameTypeName: e,
738
- platforms: u,
765
+ platforms: p,
739
766
  gameList: l,
740
767
  allGameTypes: i,
741
- allPlatforms: p
768
+ allPlatforms: u
742
769
  }) => {
743
770
  const d = vn(i, e);
744
- return d ? u.reduce((C, c) => {
745
- const g = Tn(p, c), a = hn(p, c), t = l[d] || [], m = kn(
771
+ return d ? p.reduce((C, c) => {
772
+ const g = Tn(u, c), a = hn(u, c), t = l[d] || [], m = kn(
746
773
  t,
747
774
  g,
748
775
  a
@@ -751,45 +778,45 @@ const Cn = _n(null), Vo = () => {
751
778
  }, {}) : {};
752
779
  }, ol = ({
753
780
  platformName: e,
754
- gamesOfType: u = [],
781
+ gamesOfType: p = [],
755
782
  allPlatforms: l = []
756
783
  }) => {
757
- const i = Tn(l, e), p = hn(l, e), d = kn(
758
- u,
784
+ const i = Tn(l, e), u = hn(l, e), d = kn(
785
+ p,
759
786
  i,
760
- p
787
+ u
761
788
  );
762
789
  return ll(d);
763
- }, ml = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), ot = (e = []) => !Ne(e) || me(e) ? [] : he(e, "platform"), sl = (e = []) => !Ne(e) || me(e) ? [] : he(e, "gameTypeName"), ul = (e = []) => !Ne(e) || me(e) ? [] : he(e, "game_subtype"), pl = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), gl = (e = [], u = []) => !Ne(e) || me(e) ? {} : !Ne(u) || me(u) ? {} : e.reduce((l, i) => {
764
- const p = u.map((d) => d.game_subtype);
765
- return p.forEach((d) => {
790
+ }, ml = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), ot = (e = []) => !Ne(e) || me(e) ? [] : he(e, "platform"), sl = (e = []) => !Ne(e) || me(e) ? [] : he(e, "gameTypeName"), ul = (e = []) => !Ne(e) || me(e) ? [] : he(e, "game_subtype"), pl = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), gl = (e = [], p = []) => !Ne(e) || me(e) ? {} : !Ne(p) || me(p) ? {} : e.reduce((l, i) => {
791
+ const u = p.map((d) => d.game_subtype);
792
+ return u.forEach((d) => {
766
793
  l[d] = l[d] || [];
767
- }), p.includes(i.game_subtype) && l[i.game_subtype].push(i), l;
794
+ }), u.includes(i.game_subtype) && l[i.game_subtype].push(i), l;
768
795
  }, {}), dl = ({
769
796
  gameTypes: e = [],
770
- platforms: u = [],
797
+ platforms: p = [],
771
798
  gameList: l = {},
772
799
  allGameTypes: i = [],
773
- allPlatforms: p = []
774
- }) => !Ne(e) || !Ne(u) ? {} : me(l) ? {} : e.reduce((d, C) => {
800
+ allPlatforms: u = []
801
+ }) => !Ne(e) || !Ne(p) ? {} : me(l) ? {} : e.reduce((d, C) => {
775
802
  const c = rl({
776
803
  gameTypeName: C,
777
- platforms: u,
804
+ platforms: p,
778
805
  gameList: l,
779
806
  allGameTypes: i,
780
- allPlatforms: p
807
+ allPlatforms: u
781
808
  });
782
809
  return me(c) || (d[C] = c), d;
783
810
  }, {}), Io = ({
784
811
  types: e = [],
785
- platforms: u = [],
812
+ platforms: p = [],
786
813
  allGameType: l = [],
787
814
  allGamePlatform: i = [],
788
- allGameList: p = {}
789
- } = {}) => !Array.isArray(e) || !Array.isArray(u) ? {} : e.reduce((d, C) => {
815
+ allGameList: u = {}
816
+ } = {}) => !Array.isArray(e) || !Array.isArray(p) ? {} : e.reduce((d, C) => {
790
817
  const c = vn(l, C);
791
818
  if (!c) return d;
792
- const g = p[c] || [], a = u.reduce((t, m) => {
819
+ const g = u[c] || [], a = p.reduce((t, m) => {
793
820
  const n = ol({
794
821
  platformName: m,
795
822
  gamesOfType: g,
@@ -798,25 +825,25 @@ const Cn = _n(null), Vo = () => {
798
825
  return me(n) ? t : { ...t, [m]: n };
799
826
  }, {});
800
827
  return me(a) || (d[C] = a), d;
801
- }, {}), cl = (e = {}) => !Ti(e) || me(e) ? {} : Object.values(e).reduce((l, i) => (Object.entries(i).forEach(([p, d]) => {
802
- l[p] ? l[p] = [...l[p], ...d] : l[p] = d;
828
+ }, {}), cl = (e = {}) => !Ti(e) || me(e) ? {} : Object.values(e).reduce((l, i) => (Object.entries(i).forEach(([u, d]) => {
829
+ l[u] ? l[u] = [...l[u], ...d] : l[u] = d;
803
830
  }), l), {}), _l = (e = {}) => {
804
831
  if (!Ti(e) || me(e)) return {};
805
- const u = {};
832
+ const p = {};
806
833
  for (const [l, i] of Object.entries(e)) {
807
- u[l] = {};
808
- for (const p of i) {
809
- const d = p.game_subtype;
810
- u[l][d] || (u[l][d] = []), u[l][d].push(p);
834
+ p[l] = {};
835
+ for (const u of i) {
836
+ const d = u.game_subtype;
837
+ p[l][d] || (p[l][d] = []), p[l][d].push(u);
811
838
  }
812
839
  }
813
- return u;
840
+ return p;
814
841
  }, fl = ({
815
842
  allGameList: e = {},
816
- allGamePlatform: u = [],
843
+ allGamePlatform: p = [],
817
844
  allGameType: l = [],
818
845
  allGame_subtype: i = [],
819
- allNewGameList: p = [],
846
+ allNewGameList: u = [],
820
847
  allTopGameList: d = [],
821
848
  randomlySelectedGames: C = [],
822
849
  userFavoriteGame: c = {},
@@ -824,12 +851,12 @@ const Cn = _n(null), Vo = () => {
824
851
  highlightGames: a = [],
825
852
  originPlatform: t = []
826
853
  }) => {
827
- const m = ml(e), n = ot(u), r = sl(l), o = ul(i), _ = ot(t), f = pl(c), y = dl({
854
+ const m = ml(e), n = ot(p), r = sl(l), o = ul(i), _ = ot(t), f = pl(c), y = dl({
828
855
  gameTypes: r,
829
856
  platforms: n,
830
857
  gameList: e,
831
858
  allGameTypes: l,
832
- allPlatforms: u
859
+ allPlatforms: p
833
860
  }), s = gl(m, i), U = cl(y), b = _l(U), v = yn(y).reduce(
834
861
  (x, [E, O]) => {
835
862
  const k = hi(Yn(O));
@@ -844,7 +871,7 @@ const Cn = _n(null), Vo = () => {
844
871
  platform: {
845
872
  all: n,
846
873
  origin: _,
847
- originPlatform: u,
874
+ originPlatform: p,
848
875
  byGameType: h
849
876
  },
850
877
  type: {
@@ -855,7 +882,7 @@ const Cn = _n(null), Vo = () => {
855
882
  },
856
883
  gameList: {
857
884
  all: m,
858
- new: p,
885
+ new: u,
859
886
  top: d,
860
887
  favorite: f,
861
888
  highlight: a,
@@ -873,19 +900,19 @@ const Cn = _n(null), Vo = () => {
873
900
  favorite: f
874
901
  }
875
902
  };
876
- }, Ko = (e = []) => !Ne(e) || me(e) ? [] : hi(e, (u) => me(u.SubPlatformEnum) ? u : u.SubPlatformEnum.map((l) => ({
877
- ...u,
903
+ }, Ko = (e = []) => !Ne(e) || me(e) ? [] : hi(e, (p) => me(p.SubPlatformEnum) ? p : p.SubPlatformEnum.map((l) => ({
904
+ ...p,
878
905
  ...l,
879
906
  platform: l.SubPlatformEnum,
880
907
  platformEnum: l.SubPlatformEnum
881
908
  })));
882
909
  var Aa = { exports: {} }, Ul = Aa.exports, mt;
883
910
  function yl() {
884
- return mt || (mt = 1, (function(e, u) {
911
+ return mt || (mt = 1, (function(e, p) {
885
912
  (function(l, i) {
886
913
  e.exports = i();
887
914
  })(Ul, (function() {
888
- var l = 1e3, i = 6e4, p = 36e5, d = "millisecond", C = "second", c = "minute", g = "hour", a = "day", t = "week", m = "month", n = "quarter", r = "year", o = "date", _ = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, s = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
915
+ var l = 1e3, i = 6e4, u = 36e5, d = "millisecond", C = "second", c = "minute", g = "hour", a = "day", t = "week", m = "month", n = "quarter", r = "year", o = "date", _ = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, s = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
889
916
  var L = ["th", "st", "nd", "rd"], M = w % 100;
890
917
  return "[" + w + (L[(M - 20) % 10] || L[M] || L[0]) + "]";
891
918
  } }, U = function(w, L, M) {
@@ -1020,7 +1047,7 @@ function yl() {
1020
1047
  if (z === r) return this.set(r, this.$y + M);
1021
1048
  if (z === a) return D(1);
1022
1049
  if (z === t) return D(7);
1023
- var R = (A = {}, A[c] = i, A[g] = p, A[C] = l, A)[z] || 1, F = this.$d.getTime() + M * R;
1050
+ var R = (A = {}, A[c] = i, A[g] = u, A[C] = l, A)[z] || 1, F = this.$d.getTime() + M * R;
1024
1051
  return S.w(F, this);
1025
1052
  }, L.subtract = function(M, W) {
1026
1053
  return this.add(-1 * M, W);
@@ -1113,7 +1140,7 @@ function yl() {
1113
1140
  H = (N - F) / 864e5;
1114
1141
  break;
1115
1142
  case g:
1116
- H = N / p;
1143
+ H = N / u;
1117
1144
  break;
1118
1145
  case c:
1119
1146
  H = N / i;
@@ -1170,11 +1197,11 @@ const vl = {}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1170
1197
  }, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ al(Tl);
1171
1198
  var kl = Ha.exports, st;
1172
1199
  function $() {
1173
- return st || (st = 1, (function(e, u) {
1200
+ return st || (st = 1, (function(e, p) {
1174
1201
  (function(l, i) {
1175
1202
  e.exports = i();
1176
1203
  })(kl, function() {
1177
- var l = l || (function(i, p) {
1204
+ var l = l || (function(i, u) {
1178
1205
  var d;
1179
1206
  if (typeof window < "u" && window.crypto && (d = window.crypto), typeof self < "u" && self.crypto && (d = self.crypto), typeof globalThis < "u" && globalThis.crypto && (d = globalThis.crypto), !d && typeof window < "u" && window.msCrypto && (d = window.msCrypto), !d && typeof Pi < "u" && Pi.crypto && (d = Pi.crypto), !d && typeof Cl == "function")
1180
1207
  try {
@@ -1301,7 +1328,7 @@ function $() {
1301
1328
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
1302
1329
  */
1303
1330
  init: function(s, U) {
1304
- s = this.words = s || [], U != p ? this.sigBytes = U : this.sigBytes = s.length * 4;
1331
+ s = this.words = s || [], U != u ? this.sigBytes = U : this.sigBytes = s.length * 4;
1305
1332
  },
1306
1333
  /**
1307
1334
  * Converts this word array to a string.
@@ -1671,12 +1698,12 @@ function $() {
1671
1698
  }
1672
1699
  var Wa = { exports: {} }, xl = Wa.exports, ut;
1673
1700
  function ki() {
1674
- return ut || (ut = 1, (function(e, u) {
1701
+ return ut || (ut = 1, (function(e, p) {
1675
1702
  (function(l, i) {
1676
1703
  e.exports = i($());
1677
1704
  })(xl, function(l) {
1678
1705
  return (function(i) {
1679
- var p = l, d = p.lib, C = d.Base, c = d.WordArray, g = p.x64 = {};
1706
+ var u = l, d = u.lib, C = d.Base, c = d.WordArray, g = u.x64 = {};
1680
1707
  g.Word = C.extend({
1681
1708
  /**
1682
1709
  * Initializes a newly created 64-bit word.
@@ -1901,13 +1928,13 @@ function ki() {
1901
1928
  }
1902
1929
  var za = { exports: {} }, Sl = za.exports, pt;
1903
1930
  function Dl() {
1904
- return pt || (pt = 1, (function(e, u) {
1931
+ return pt || (pt = 1, (function(e, p) {
1905
1932
  (function(l, i) {
1906
1933
  e.exports = i($());
1907
1934
  })(Sl, function(l) {
1908
1935
  return (function() {
1909
1936
  if (typeof ArrayBuffer == "function") {
1910
- var i = l, p = i.lib, d = p.WordArray, C = d.init, c = d.init = function(g) {
1937
+ var i = l, u = i.lib, d = u.WordArray, C = d.init, c = d.init = function(g) {
1911
1938
  if (g instanceof ArrayBuffer && (g = new Uint8Array(g)), (g instanceof Int8Array || typeof Uint8ClampedArray < "u" && g instanceof Uint8ClampedArray || g instanceof Int16Array || g instanceof Uint16Array || g instanceof Int32Array || g instanceof Uint32Array || g instanceof Float32Array || g instanceof Float64Array) && (g = new Uint8Array(g.buffer, g.byteOffset, g.byteLength)), g instanceof Uint8Array) {
1912
1939
  for (var a = g.byteLength, t = [], m = 0; m < a; m++)
1913
1940
  t[m >>> 2] |= g[m] << 24 - m % 4 * 8;
@@ -1923,12 +1950,12 @@ function Dl() {
1923
1950
  }
1924
1951
  var Va = { exports: {} }, El = Va.exports, gt;
1925
1952
  function Nl() {
1926
- return gt || (gt = 1, (function(e, u) {
1953
+ return gt || (gt = 1, (function(e, p) {
1927
1954
  (function(l, i) {
1928
1955
  e.exports = i($());
1929
1956
  })(El, function(l) {
1930
1957
  return (function() {
1931
- var i = l, p = i.lib, d = p.WordArray, C = i.enc;
1958
+ var i = l, u = i.lib, d = u.WordArray, C = i.enc;
1932
1959
  C.Utf16 = C.Utf16BE = {
1933
1960
  /**
1934
1961
  * Converts a word array to a UTF-16 BE string.
@@ -2016,13 +2043,13 @@ function Nl() {
2016
2043
  })(Va)), Va.exports;
2017
2044
  }
2018
2045
  var Za = { exports: {} }, Ll = Za.exports, dt;
2019
- function ea() {
2020
- return dt || (dt = 1, (function(e, u) {
2046
+ function aa() {
2047
+ return dt || (dt = 1, (function(e, p) {
2021
2048
  (function(l, i) {
2022
2049
  e.exports = i($());
2023
2050
  })(Ll, function(l) {
2024
2051
  return (function() {
2025
- var i = l, p = i.lib, d = p.WordArray, C = i.enc;
2052
+ var i = l, u = i.lib, d = u.WordArray, C = i.enc;
2026
2053
  C.Base64 = {
2027
2054
  /**
2028
2055
  * Converts a word array to a Base64 string.
@@ -2092,12 +2119,12 @@ function ea() {
2092
2119
  }
2093
2120
  var Ja = { exports: {} }, Gl = Ja.exports, ct;
2094
2121
  function Ml() {
2095
- return ct || (ct = 1, (function(e, u) {
2122
+ return ct || (ct = 1, (function(e, p) {
2096
2123
  (function(l, i) {
2097
2124
  e.exports = i($());
2098
2125
  })(Gl, function(l) {
2099
2126
  return (function() {
2100
- var i = l, p = i.lib, d = p.WordArray, C = i.enc;
2127
+ var i = l, u = i.lib, d = u.WordArray, C = i.enc;
2101
2128
  C.Base64url = {
2102
2129
  /**
2103
2130
  * Converts a word array to a Base64url string.
@@ -2173,13 +2200,13 @@ function Ml() {
2173
2200
  })(Ja)), Ja.exports;
2174
2201
  }
2175
2202
  var Ia = { exports: {} }, Rl = Ia.exports, _t;
2176
- function aa() {
2177
- return _t || (_t = 1, (function(e, u) {
2203
+ function ia() {
2204
+ return _t || (_t = 1, (function(e, p) {
2178
2205
  (function(l, i) {
2179
2206
  e.exports = i($());
2180
2207
  })(Rl, function(l) {
2181
2208
  return (function(i) {
2182
- var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = [];
2209
+ var u = l, d = u.lib, C = d.WordArray, c = d.Hasher, g = u.algo, a = [];
2183
2210
  (function() {
2184
2211
  for (var _ = 0; _ < 64; _++)
2185
2212
  a[_] = i.abs(i.sin(_ + 1)) * 4294967296 | 0;
@@ -2233,19 +2260,19 @@ function aa() {
2233
2260
  var h = _ + (y ^ (f | ~s)) + U + v;
2234
2261
  return (h << b | h >>> 32 - b) + f;
2235
2262
  }
2236
- p.MD5 = c._createHelper(t), p.HmacMD5 = c._createHmacHelper(t);
2263
+ u.MD5 = c._createHelper(t), u.HmacMD5 = c._createHmacHelper(t);
2237
2264
  })(Math), l.MD5;
2238
2265
  });
2239
2266
  })(Ia)), Ia.exports;
2240
2267
  }
2241
2268
  var Ka = { exports: {} }, Pl = Ka.exports, ft;
2242
2269
  function xn() {
2243
- return ft || (ft = 1, (function(e, u) {
2270
+ return ft || (ft = 1, (function(e, p) {
2244
2271
  (function(l, i) {
2245
2272
  e.exports = i($());
2246
2273
  })(Pl, function(l) {
2247
2274
  return (function() {
2248
- var i = l, p = i.lib, d = p.WordArray, C = p.Hasher, c = i.algo, g = [], a = c.SHA1 = C.extend({
2275
+ var i = l, u = i.lib, d = u.WordArray, C = u.Hasher, c = i.algo, g = [], a = c.SHA1 = C.extend({
2249
2276
  _doReset: function() {
2250
2277
  this._hash = new d.init([
2251
2278
  1732584193,
@@ -2284,12 +2311,12 @@ function xn() {
2284
2311
  }
2285
2312
  var qa = { exports: {} }, Fl = qa.exports, Ut;
2286
2313
  function Vi() {
2287
- return Ut || (Ut = 1, (function(e, u) {
2314
+ return Ut || (Ut = 1, (function(e, p) {
2288
2315
  (function(l, i) {
2289
2316
  e.exports = i($());
2290
2317
  })(Fl, function(l) {
2291
2318
  return (function(i) {
2292
- var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = [], t = [];
2319
+ var u = l, d = u.lib, C = d.WordArray, c = d.Hasher, g = u.algo, a = [], t = [];
2293
2320
  (function() {
2294
2321
  function r(y) {
2295
2322
  for (var s = i.sqrt(y), U = 2; U <= s; U++)
@@ -2329,19 +2356,19 @@ function Vi() {
2329
2356
  return r._hash = this._hash.clone(), r;
2330
2357
  }
2331
2358
  });
2332
- p.SHA256 = c._createHelper(n), p.HmacSHA256 = c._createHmacHelper(n);
2359
+ u.SHA256 = c._createHelper(n), u.HmacSHA256 = c._createHmacHelper(n);
2333
2360
  })(Math), l.SHA256;
2334
2361
  });
2335
2362
  })(qa)), qa.exports;
2336
2363
  }
2337
2364
  var ja = { exports: {} }, wl = ja.exports, yt;
2338
2365
  function Ol() {
2339
- return yt || (yt = 1, (function(e, u) {
2340
- (function(l, i, p) {
2366
+ return yt || (yt = 1, (function(e, p) {
2367
+ (function(l, i, u) {
2341
2368
  e.exports = i($(), Vi());
2342
2369
  })(wl, function(l) {
2343
2370
  return (function() {
2344
- var i = l, p = i.lib, d = p.WordArray, C = i.algo, c = C.SHA256, g = C.SHA224 = c.extend({
2371
+ var i = l, u = i.lib, d = u.WordArray, C = i.algo, c = C.SHA256, g = C.SHA224 = c.extend({
2345
2372
  _doReset: function() {
2346
2373
  this._hash = new d.init([
2347
2374
  3238371032,
@@ -2366,12 +2393,12 @@ function Ol() {
2366
2393
  }
2367
2394
  var $a = { exports: {} }, Al = $a.exports, bt;
2368
2395
  function Sn() {
2369
- return bt || (bt = 1, (function(e, u) {
2370
- (function(l, i, p) {
2396
+ return bt || (bt = 1, (function(e, p) {
2397
+ (function(l, i, u) {
2371
2398
  e.exports = i($(), ki());
2372
2399
  })(Al, function(l) {
2373
2400
  return (function() {
2374
- var i = l, p = i.lib, d = p.Hasher, C = i.x64, c = C.Word, g = C.WordArray, a = i.algo;
2401
+ var i = l, u = i.lib, d = u.Hasher, C = i.x64, c = C.Word, g = C.WordArray, a = i.algo;
2375
2402
  function t() {
2376
2403
  return c.create.apply(c, arguments);
2377
2404
  }
@@ -2476,14 +2503,14 @@ function Sn() {
2476
2503
  },
2477
2504
  _doProcessBlock: function(o, _) {
2478
2505
  for (var f = this._hash.words, y = f[0], s = f[1], U = f[2], b = f[3], v = f[4], h = f[5], x = f[6], E = f[7], O = y.high, k = y.low, S = s.high, P = s.low, G = U.high, w = U.low, L = b.high, M = b.low, W = v.high, A = v.low, H = h.high, z = h.low, D = x.high, R = x.low, F = E.high, N = E.low, I = O, K = k, Y = S, Z = P, te = G, ie = w, Ue = L, ye = M, oe = W, ce = A, Ge = H, xe = z, Je = D, Ae = R, Be = F, Ie = N, ve = 0; ve < 80; ve++) {
2479
- var pe, Se, ia = n[ve];
2506
+ var pe, Se, ta = n[ve];
2480
2507
  if (ve < 16)
2481
- Se = ia.high = o[_ + ve * 2] | 0, pe = ia.low = o[_ + ve * 2 + 1] | 0;
2508
+ Se = ta.high = o[_ + ve * 2] | 0, pe = ta.low = o[_ + ve * 2 + 1] | 0;
2482
2509
  else {
2483
- var sa = n[ve - 15], Me = sa.high, He = sa.low, Si = (Me >>> 1 | He << 31) ^ (Me >>> 8 | He << 24) ^ Me >>> 7, ua = (He >>> 1 | Me << 31) ^ (He >>> 8 | Me << 24) ^ (He >>> 7 | Me << 25), pa = n[ve - 2], We = pa.high, Ke = pa.low, Di = (We >>> 19 | Ke << 13) ^ (We << 3 | Ke >>> 29) ^ We >>> 6, ha = (Ke >>> 19 | We << 13) ^ (Ke << 3 | We >>> 29) ^ (Ke >>> 6 | We << 26), ka = n[ve - 7], Ei = ka.high, Ni = ka.low, ta = n[ve - 16], xa = ta.high, Re = ta.low;
2484
- pe = ua + Ni, Se = Si + Ei + (pe >>> 0 < ua >>> 0 ? 1 : 0), pe = pe + ha, Se = Se + Di + (pe >>> 0 < ha >>> 0 ? 1 : 0), pe = pe + Re, Se = Se + xa + (pe >>> 0 < Re >>> 0 ? 1 : 0), ia.high = Se, ia.low = pe;
2510
+ var ua = n[ve - 15], Me = ua.high, He = ua.low, Si = (Me >>> 1 | He << 31) ^ (Me >>> 8 | He << 24) ^ Me >>> 7, pa = (He >>> 1 | Me << 31) ^ (He >>> 8 | Me << 24) ^ (He >>> 7 | Me << 25), ga = n[ve - 2], We = ga.high, Ke = ga.low, Di = (We >>> 19 | Ke << 13) ^ (We << 3 | Ke >>> 29) ^ We >>> 6, ha = (Ke >>> 19 | We << 13) ^ (Ke << 3 | We >>> 29) ^ (Ke >>> 6 | We << 26), ka = n[ve - 7], Ei = ka.high, Ni = ka.low, na = n[ve - 16], xa = na.high, Re = na.low;
2511
+ pe = pa + Ni, Se = Si + Ei + (pe >>> 0 < pa >>> 0 ? 1 : 0), pe = pe + ha, Se = Se + Di + (pe >>> 0 < ha >>> 0 ? 1 : 0), pe = pe + Re, Se = Se + xa + (pe >>> 0 < Re >>> 0 ? 1 : 0), ta.high = Se, ta.low = pe;
2485
2512
  }
2486
- var ga = oe & Ge ^ ~oe & Je, na = ce & xe ^ ~ce & Ae, Sa = I & Y ^ I & te ^ Y & te, Li = K & Z ^ K & ie ^ Z & ie, Da = (I >>> 28 | K << 4) ^ (I << 30 | K >>> 2) ^ (I << 25 | K >>> 7), Ea = (K >>> 28 | I << 4) ^ (K << 30 | I >>> 2) ^ (K << 25 | I >>> 7), Na = (oe >>> 14 | ce << 18) ^ (oe >>> 18 | ce << 14) ^ (oe << 23 | ce >>> 9), La = (ce >>> 14 | oe << 18) ^ (ce >>> 18 | oe << 14) ^ (ce << 23 | oe >>> 9), Ga = m[ve], Gi = Ga.high, da = Ga.low, ge = Ie + La, De = Be + Na + (ge >>> 0 < Ie >>> 0 ? 1 : 0), ge = ge + na, De = De + ga + (ge >>> 0 < na >>> 0 ? 1 : 0), ge = ge + da, De = De + Gi + (ge >>> 0 < da >>> 0 ? 1 : 0), ge = ge + pe, De = De + Se + (ge >>> 0 < pe >>> 0 ? 1 : 0), Ma = Ea + Li, Mi = Da + Sa + (Ma >>> 0 < Ea >>> 0 ? 1 : 0);
2513
+ var da = oe & Ge ^ ~oe & Je, la = ce & xe ^ ~ce & Ae, Sa = I & Y ^ I & te ^ Y & te, Li = K & Z ^ K & ie ^ Z & ie, Da = (I >>> 28 | K << 4) ^ (I << 30 | K >>> 2) ^ (I << 25 | K >>> 7), Ea = (K >>> 28 | I << 4) ^ (K << 30 | I >>> 2) ^ (K << 25 | I >>> 7), Na = (oe >>> 14 | ce << 18) ^ (oe >>> 18 | ce << 14) ^ (oe << 23 | ce >>> 9), La = (ce >>> 14 | oe << 18) ^ (ce >>> 18 | oe << 14) ^ (ce << 23 | oe >>> 9), Ga = m[ve], Gi = Ga.high, ca = Ga.low, ge = Ie + La, De = Be + Na + (ge >>> 0 < Ie >>> 0 ? 1 : 0), ge = ge + la, De = De + da + (ge >>> 0 < la >>> 0 ? 1 : 0), ge = ge + ca, De = De + Gi + (ge >>> 0 < ca >>> 0 ? 1 : 0), ge = ge + pe, De = De + Se + (ge >>> 0 < pe >>> 0 ? 1 : 0), Ma = Ea + Li, Mi = Da + Sa + (Ma >>> 0 < Ea >>> 0 ? 1 : 0);
2487
2514
  Be = Je, Ie = Ae, Je = Ge, Ae = xe, Ge = oe, xe = ce, ce = ye + ge | 0, oe = Ue + De + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, Ue = te, ye = ie, te = Y, ie = Z, Y = I, Z = K, K = ge + Ma | 0, I = De + Mi + (K >>> 0 < ge >>> 0 ? 1 : 0) | 0;
2488
2515
  }
2489
2516
  k = y.low = k + K, y.high = O + I + (k >>> 0 < K >>> 0 ? 1 : 0), P = s.low = P + Z, s.high = S + Y + (P >>> 0 < Z >>> 0 ? 1 : 0), w = U.low = w + ie, U.high = G + te + (w >>> 0 < ie >>> 0 ? 1 : 0), M = b.low = M + ye, b.high = L + Ue + (M >>> 0 < ye >>> 0 ? 1 : 0), A = v.low = A + ce, v.high = W + oe + (A >>> 0 < ce >>> 0 ? 1 : 0), z = h.low = z + xe, h.high = H + Ge + (z >>> 0 < xe >>> 0 ? 1 : 0), R = x.low = R + Ae, x.high = D + Je + (R >>> 0 < Ae >>> 0 ? 1 : 0), N = E.low = N + Ie, E.high = F + Be + (N >>> 0 < Ie >>> 0 ? 1 : 0);
@@ -2507,12 +2534,12 @@ function Sn() {
2507
2534
  }
2508
2535
  var Qa = { exports: {} }, Bl = Qa.exports, Ct;
2509
2536
  function Hl() {
2510
- return Ct || (Ct = 1, (function(e, u) {
2511
- (function(l, i, p) {
2537
+ return Ct || (Ct = 1, (function(e, p) {
2538
+ (function(l, i, u) {
2512
2539
  e.exports = i($(), ki(), Sn());
2513
2540
  })(Bl, function(l) {
2514
2541
  return (function() {
2515
- var i = l, p = i.x64, d = p.Word, C = p.WordArray, c = i.algo, g = c.SHA512, a = c.SHA384 = g.extend({
2542
+ var i = l, u = i.x64, d = u.Word, C = u.WordArray, c = i.algo, g = c.SHA512, a = c.SHA384 = g.extend({
2516
2543
  _doReset: function() {
2517
2544
  this._hash = new C.init([
2518
2545
  new d.init(3418070365, 3238371032),
@@ -2537,12 +2564,12 @@ function Hl() {
2537
2564
  }
2538
2565
  var Ya = { exports: {} }, Wl = Ya.exports, vt;
2539
2566
  function zl() {
2540
- return vt || (vt = 1, (function(e, u) {
2541
- (function(l, i, p) {
2567
+ return vt || (vt = 1, (function(e, p) {
2568
+ (function(l, i, u) {
2542
2569
  e.exports = i($(), ki());
2543
2570
  })(Wl, function(l) {
2544
2571
  return (function(i) {
2545
- var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.x64, a = g.Word, t = p.algo, m = [], n = [], r = [];
2572
+ var u = l, d = u.lib, C = d.WordArray, c = d.Hasher, g = u.x64, a = g.Word, t = u.algo, m = [], n = [], r = [];
2546
2573
  (function() {
2547
2574
  for (var f = 1, y = 0, s = 0; s < 24; s++) {
2548
2575
  m[f + 5 * y] = (s + 1) * (s + 2) / 2 % 64;
@@ -2640,19 +2667,19 @@ function zl() {
2640
2667
  return f;
2641
2668
  }
2642
2669
  });
2643
- p.SHA3 = c._createHelper(_), p.HmacSHA3 = c._createHmacHelper(_);
2670
+ u.SHA3 = c._createHelper(_), u.HmacSHA3 = c._createHmacHelper(_);
2644
2671
  })(Math), l.SHA3;
2645
2672
  });
2646
2673
  })(Ya)), Ya.exports;
2647
2674
  }
2648
2675
  var Xa = { exports: {} }, Vl = Xa.exports, Tt;
2649
2676
  function Zl() {
2650
- return Tt || (Tt = 1, (function(e, u) {
2677
+ return Tt || (Tt = 1, (function(e, p) {
2651
2678
  (function(l, i) {
2652
2679
  e.exports = i($());
2653
2680
  })(Vl, function(l) {
2654
2681
  return (function(i) {
2655
- var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = C.create([
2682
+ var u = l, d = u.lib, C = d.WordArray, c = d.Hasher, g = u.algo, a = C.create([
2656
2683
  0,
2657
2684
  1,
2658
2685
  2,
@@ -3023,19 +3050,19 @@ function Zl() {
3023
3050
  function v(h, x) {
3024
3051
  return h << x | h >>> 32 - x;
3025
3052
  }
3026
- p.RIPEMD160 = c._createHelper(_), p.HmacRIPEMD160 = c._createHmacHelper(_);
3053
+ u.RIPEMD160 = c._createHelper(_), u.HmacRIPEMD160 = c._createHmacHelper(_);
3027
3054
  })(), l.RIPEMD160;
3028
3055
  });
3029
3056
  })(Xa)), Xa.exports;
3030
3057
  }
3031
3058
  var ei = { exports: {} }, Jl = ei.exports, ht;
3032
3059
  function Zi() {
3033
- return ht || (ht = 1, (function(e, u) {
3060
+ return ht || (ht = 1, (function(e, p) {
3034
3061
  (function(l, i) {
3035
3062
  e.exports = i($());
3036
3063
  })(Jl, function(l) {
3037
3064
  (function() {
3038
- var i = l, p = i.lib, d = p.Base, C = i.enc, c = C.Utf8, g = i.algo;
3065
+ var i = l, u = i.lib, d = u.Base, C = i.enc, c = C.Utf8, g = i.algo;
3039
3066
  g.HMAC = d.extend({
3040
3067
  /**
3041
3068
  * Initializes a newly created HMAC.
@@ -3108,12 +3135,12 @@ function Zi() {
3108
3135
  }
3109
3136
  var ai = { exports: {} }, Il = ai.exports, kt;
3110
3137
  function Kl() {
3111
- return kt || (kt = 1, (function(e, u) {
3112
- (function(l, i, p) {
3138
+ return kt || (kt = 1, (function(e, p) {
3139
+ (function(l, i, u) {
3113
3140
  e.exports = i($(), Vi(), Zi());
3114
3141
  })(Il, function(l) {
3115
3142
  return (function() {
3116
- var i = l, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.SHA256, a = c.HMAC, t = c.PBKDF2 = d.extend({
3143
+ var i = l, u = i.lib, d = u.Base, C = u.WordArray, c = i.algo, g = c.SHA256, a = c.HMAC, t = c.PBKDF2 = d.extend({
3117
3144
  /**
3118
3145
  * Configuration options.
3119
3146
  *
@@ -3175,12 +3202,12 @@ function Kl() {
3175
3202
  }
3176
3203
  var ii = { exports: {} }, ql = ii.exports, xt;
3177
3204
  function Ve() {
3178
- return xt || (xt = 1, (function(e, u) {
3179
- (function(l, i, p) {
3205
+ return xt || (xt = 1, (function(e, p) {
3206
+ (function(l, i, u) {
3180
3207
  e.exports = i($(), xn(), Zi());
3181
3208
  })(ql, function(l) {
3182
3209
  return (function() {
3183
- var i = l, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.MD5, a = c.EvpKDF = d.extend({
3210
+ var i = l, u = i.lib, d = u.Base, C = u.WordArray, c = i.algo, g = c.MD5, a = c.EvpKDF = d.extend({
3184
3211
  /**
3185
3212
  * Configuration options.
3186
3213
  *
@@ -3238,14 +3265,14 @@ function Ve() {
3238
3265
  }
3239
3266
  var ti = { exports: {} }, jl = ti.exports, St;
3240
3267
  function se() {
3241
- return St || (St = 1, (function(e, u) {
3242
- (function(l, i, p) {
3268
+ return St || (St = 1, (function(e, p) {
3269
+ (function(l, i, u) {
3243
3270
  e.exports = i($(), Ve());
3244
3271
  })(jl, function(l) {
3245
3272
  l.lib.Cipher || (function(i) {
3246
- var p = l, d = p.lib, C = d.Base, c = d.WordArray, g = d.BufferedBlockAlgorithm, a = p.enc;
3273
+ var u = l, d = u.lib, C = d.Base, c = d.WordArray, g = d.BufferedBlockAlgorithm, a = u.enc;
3247
3274
  a.Utf8;
3248
- var t = a.Base64, m = p.algo, n = m.EvpKDF, r = d.Cipher = g.extend({
3275
+ var t = a.Base64, m = u.algo, n = m.EvpKDF, r = d.Cipher = g.extend({
3249
3276
  /**
3250
3277
  * Configuration options.
3251
3278
  *
@@ -3384,7 +3411,7 @@ function se() {
3384
3411
  },
3385
3412
  blockSize: 1
3386
3413
  });
3387
- var o = p.mode = {}, _ = d.BlockCipherMode = C.extend({
3414
+ var o = u.mode = {}, _ = d.BlockCipherMode = C.extend({
3388
3415
  /**
3389
3416
  * Creates this mode for encryption.
3390
3417
  *
@@ -3468,7 +3495,7 @@ function se() {
3468
3495
  P[G + W] ^= L[W];
3469
3496
  }
3470
3497
  return k;
3471
- })(), y = p.pad = {}, s = y.Pkcs7 = {
3498
+ })(), y = u.pad = {}, s = y.Pkcs7 = {
3472
3499
  /**
3473
3500
  * Pads data using the algorithm defined in PKCS #5/7.
3474
3501
  *
@@ -3570,7 +3597,7 @@ function se() {
3570
3597
  toString: function(k) {
3571
3598
  return (k || this.formatter).stringify(this);
3572
3599
  }
3573
- }), b = p.format = {}, v = b.OpenSSL = {
3600
+ }), b = u.format = {}, v = b.OpenSSL = {
3574
3601
  /**
3575
3602
  * Converts a cipher params object to an OpenSSL-compatible string.
3576
3603
  *
@@ -3686,7 +3713,7 @@ function se() {
3686
3713
  _parse: function(k, S) {
3687
3714
  return typeof k == "string" ? S.parse(k, this) : k;
3688
3715
  }
3689
- }), x = p.kdf = {}, E = x.OpenSSL = {
3716
+ }), x = u.kdf = {}, E = x.OpenSSL = {
3690
3717
  /**
3691
3718
  * Derives a key and IV from a password.
3692
3719
  *
@@ -3776,8 +3803,8 @@ function se() {
3776
3803
  }
3777
3804
  var ni = { exports: {} }, $l = ni.exports, Dt;
3778
3805
  function Ql() {
3779
- return Dt || (Dt = 1, (function(e, u) {
3780
- (function(l, i, p) {
3806
+ return Dt || (Dt = 1, (function(e, p) {
3807
+ (function(l, i, u) {
3781
3808
  e.exports = i($(), se());
3782
3809
  })($l, function(l) {
3783
3810
  return l.mode.CFB = (function() {
@@ -3785,15 +3812,15 @@ function Ql() {
3785
3812
  i.Encryptor = i.extend({
3786
3813
  processBlock: function(d, C) {
3787
3814
  var c = this._cipher, g = c.blockSize;
3788
- p.call(this, d, C, g, c), this._prevBlock = d.slice(C, C + g);
3815
+ u.call(this, d, C, g, c), this._prevBlock = d.slice(C, C + g);
3789
3816
  }
3790
3817
  }), i.Decryptor = i.extend({
3791
3818
  processBlock: function(d, C) {
3792
3819
  var c = this._cipher, g = c.blockSize, a = d.slice(C, C + g);
3793
- p.call(this, d, C, g, c), this._prevBlock = a;
3820
+ u.call(this, d, C, g, c), this._prevBlock = a;
3794
3821
  }
3795
3822
  });
3796
- function p(d, C, c, g) {
3823
+ function u(d, C, c, g) {
3797
3824
  var a, t = this._iv;
3798
3825
  t ? (a = t.slice(0), this._iv = void 0) : a = this._prevBlock, g.encryptBlock(a, 0);
3799
3826
  for (var m = 0; m < c; m++)
@@ -3806,12 +3833,12 @@ function Ql() {
3806
3833
  }
3807
3834
  var li = { exports: {} }, Yl = li.exports, Et;
3808
3835
  function Xl() {
3809
- return Et || (Et = 1, (function(e, u) {
3810
- (function(l, i, p) {
3836
+ return Et || (Et = 1, (function(e, p) {
3837
+ (function(l, i, u) {
3811
3838
  e.exports = i($(), se());
3812
3839
  })(Yl, function(l) {
3813
3840
  return l.mode.CTR = (function() {
3814
- var i = l.lib.BlockCipherMode.extend(), p = i.Encryptor = i.extend({
3841
+ var i = l.lib.BlockCipherMode.extend(), u = i.Encryptor = i.extend({
3815
3842
  processBlock: function(d, C) {
3816
3843
  var c = this._cipher, g = c.blockSize, a = this._iv, t = this._counter;
3817
3844
  a && (t = this._counter = a.slice(0), this._iv = void 0);
@@ -3821,20 +3848,20 @@ function Xl() {
3821
3848
  d[C + n] ^= m[n];
3822
3849
  }
3823
3850
  });
3824
- return i.Decryptor = p, i;
3851
+ return i.Decryptor = u, i;
3825
3852
  })(), l.mode.CTR;
3826
3853
  });
3827
3854
  })(li)), li.exports;
3828
3855
  }
3829
3856
  var ri = { exports: {} }, er = ri.exports, Nt;
3830
3857
  function ar() {
3831
- return Nt || (Nt = 1, (function(e, u) {
3832
- (function(l, i, p) {
3858
+ return Nt || (Nt = 1, (function(e, p) {
3859
+ (function(l, i, u) {
3833
3860
  e.exports = i($(), se());
3834
3861
  })(er, function(l) {
3835
3862
  return l.mode.CTRGladman = (function() {
3836
3863
  var i = l.lib.BlockCipherMode.extend();
3837
- function p(c) {
3864
+ function u(c) {
3838
3865
  if ((c >> 24 & 255) === 255) {
3839
3866
  var g = c >> 16 & 255, a = c >> 8 & 255, t = c & 255;
3840
3867
  g === 255 ? (g = 0, a === 255 ? (a = 0, t === 255 ? t = 0 : ++t) : ++a) : ++g, c = 0, c += g << 16, c += a << 8, c += t;
@@ -3843,7 +3870,7 @@ function ar() {
3843
3870
  return c;
3844
3871
  }
3845
3872
  function d(c) {
3846
- return (c[0] = p(c[0])) === 0 && (c[1] = p(c[1])), c;
3873
+ return (c[0] = u(c[0])) === 0 && (c[1] = u(c[1])), c;
3847
3874
  }
3848
3875
  var C = i.Encryptor = i.extend({
3849
3876
  processBlock: function(c, g) {
@@ -3862,12 +3889,12 @@ function ar() {
3862
3889
  }
3863
3890
  var oi = { exports: {} }, ir = oi.exports, Lt;
3864
3891
  function tr() {
3865
- return Lt || (Lt = 1, (function(e, u) {
3866
- (function(l, i, p) {
3892
+ return Lt || (Lt = 1, (function(e, p) {
3893
+ (function(l, i, u) {
3867
3894
  e.exports = i($(), se());
3868
3895
  })(ir, function(l) {
3869
3896
  return l.mode.OFB = (function() {
3870
- var i = l.lib.BlockCipherMode.extend(), p = i.Encryptor = i.extend({
3897
+ var i = l.lib.BlockCipherMode.extend(), u = i.Encryptor = i.extend({
3871
3898
  processBlock: function(d, C) {
3872
3899
  var c = this._cipher, g = c.blockSize, a = this._iv, t = this._keystream;
3873
3900
  a && (t = this._keystream = a.slice(0), this._iv = void 0), c.encryptBlock(t, 0);
@@ -3875,26 +3902,26 @@ function tr() {
3875
3902
  d[C + m] ^= t[m];
3876
3903
  }
3877
3904
  });
3878
- return i.Decryptor = p, i;
3905
+ return i.Decryptor = u, i;
3879
3906
  })(), l.mode.OFB;
3880
3907
  });
3881
3908
  })(oi)), oi.exports;
3882
3909
  }
3883
3910
  var mi = { exports: {} }, nr = mi.exports, Gt;
3884
3911
  function lr() {
3885
- return Gt || (Gt = 1, (function(e, u) {
3886
- (function(l, i, p) {
3912
+ return Gt || (Gt = 1, (function(e, p) {
3913
+ (function(l, i, u) {
3887
3914
  e.exports = i($(), se());
3888
3915
  })(nr, function(l) {
3889
3916
  return l.mode.ECB = (function() {
3890
3917
  var i = l.lib.BlockCipherMode.extend();
3891
3918
  return i.Encryptor = i.extend({
3892
- processBlock: function(p, d) {
3893
- this._cipher.encryptBlock(p, d);
3919
+ processBlock: function(u, d) {
3920
+ this._cipher.encryptBlock(u, d);
3894
3921
  }
3895
3922
  }), i.Decryptor = i.extend({
3896
- processBlock: function(p, d) {
3897
- this._cipher.decryptBlock(p, d);
3923
+ processBlock: function(u, d) {
3924
+ this._cipher.decryptBlock(u, d);
3898
3925
  }
3899
3926
  }), i;
3900
3927
  })(), l.mode.ECB;
@@ -3903,18 +3930,18 @@ function lr() {
3903
3930
  }
3904
3931
  var si = { exports: {} }, rr = si.exports, Mt;
3905
3932
  function or() {
3906
- return Mt || (Mt = 1, (function(e, u) {
3907
- (function(l, i, p) {
3933
+ return Mt || (Mt = 1, (function(e, p) {
3934
+ (function(l, i, u) {
3908
3935
  e.exports = i($(), se());
3909
3936
  })(rr, function(l) {
3910
3937
  return l.pad.AnsiX923 = {
3911
- pad: function(i, p) {
3912
- var d = i.sigBytes, C = p * 4, c = C - d % C, g = d + c - 1;
3938
+ pad: function(i, u) {
3939
+ var d = i.sigBytes, C = u * 4, c = C - d % C, g = d + c - 1;
3913
3940
  i.clamp(), i.words[g >>> 2] |= c << 24 - g % 4 * 8, i.sigBytes += c;
3914
3941
  },
3915
3942
  unpad: function(i) {
3916
- var p = i.words[i.sigBytes - 1 >>> 2] & 255;
3917
- i.sigBytes -= p;
3943
+ var u = i.words[i.sigBytes - 1 >>> 2] & 255;
3944
+ i.sigBytes -= u;
3918
3945
  }
3919
3946
  }, l.pad.Ansix923;
3920
3947
  });
@@ -3922,18 +3949,18 @@ function or() {
3922
3949
  }
3923
3950
  var ui = { exports: {} }, mr = ui.exports, Rt;
3924
3951
  function sr() {
3925
- return Rt || (Rt = 1, (function(e, u) {
3926
- (function(l, i, p) {
3952
+ return Rt || (Rt = 1, (function(e, p) {
3953
+ (function(l, i, u) {
3927
3954
  e.exports = i($(), se());
3928
3955
  })(mr, function(l) {
3929
3956
  return l.pad.Iso10126 = {
3930
- pad: function(i, p) {
3931
- var d = p * 4, C = d - i.sigBytes % d;
3957
+ pad: function(i, u) {
3958
+ var d = u * 4, C = d - i.sigBytes % d;
3932
3959
  i.concat(l.lib.WordArray.random(C - 1)).concat(l.lib.WordArray.create([C << 24], 1));
3933
3960
  },
3934
3961
  unpad: function(i) {
3935
- var p = i.words[i.sigBytes - 1 >>> 2] & 255;
3936
- i.sigBytes -= p;
3962
+ var u = i.words[i.sigBytes - 1 >>> 2] & 255;
3963
+ i.sigBytes -= u;
3937
3964
  }
3938
3965
  }, l.pad.Iso10126;
3939
3966
  });
@@ -3941,13 +3968,13 @@ function sr() {
3941
3968
  }
3942
3969
  var pi = { exports: {} }, ur = pi.exports, Pt;
3943
3970
  function pr() {
3944
- return Pt || (Pt = 1, (function(e, u) {
3945
- (function(l, i, p) {
3971
+ return Pt || (Pt = 1, (function(e, p) {
3972
+ (function(l, i, u) {
3946
3973
  e.exports = i($(), se());
3947
3974
  })(ur, function(l) {
3948
3975
  return l.pad.Iso97971 = {
3949
- pad: function(i, p) {
3950
- i.concat(l.lib.WordArray.create([2147483648], 1)), l.pad.ZeroPadding.pad(i, p);
3976
+ pad: function(i, u) {
3977
+ i.concat(l.lib.WordArray.create([2147483648], 1)), l.pad.ZeroPadding.pad(i, u);
3951
3978
  },
3952
3979
  unpad: function(i) {
3953
3980
  l.pad.ZeroPadding.unpad(i), i.sigBytes--;
@@ -3958,18 +3985,18 @@ function pr() {
3958
3985
  }
3959
3986
  var gi = { exports: {} }, gr = gi.exports, Ft;
3960
3987
  function dr() {
3961
- return Ft || (Ft = 1, (function(e, u) {
3962
- (function(l, i, p) {
3988
+ return Ft || (Ft = 1, (function(e, p) {
3989
+ (function(l, i, u) {
3963
3990
  e.exports = i($(), se());
3964
3991
  })(gr, function(l) {
3965
3992
  return l.pad.ZeroPadding = {
3966
- pad: function(i, p) {
3967
- var d = p * 4;
3993
+ pad: function(i, u) {
3994
+ var d = u * 4;
3968
3995
  i.clamp(), i.sigBytes += d - (i.sigBytes % d || d);
3969
3996
  },
3970
3997
  unpad: function(i) {
3971
- for (var p = i.words, d = i.sigBytes - 1, d = i.sigBytes - 1; d >= 0; d--)
3972
- if (p[d >>> 2] >>> 24 - d % 4 * 8 & 255) {
3998
+ for (var u = i.words, d = i.sigBytes - 1, d = i.sigBytes - 1; d >= 0; d--)
3999
+ if (u[d >>> 2] >>> 24 - d % 4 * 8 & 255) {
3973
4000
  i.sigBytes = d + 1;
3974
4001
  break;
3975
4002
  }
@@ -3980,8 +4007,8 @@ function dr() {
3980
4007
  }
3981
4008
  var di = { exports: {} }, cr = di.exports, wt;
3982
4009
  function _r() {
3983
- return wt || (wt = 1, (function(e, u) {
3984
- (function(l, i, p) {
4010
+ return wt || (wt = 1, (function(e, p) {
4011
+ (function(l, i, u) {
3985
4012
  e.exports = i($(), se());
3986
4013
  })(cr, function(l) {
3987
4014
  return l.pad.NoPadding = {
@@ -3995,12 +4022,12 @@ function _r() {
3995
4022
  }
3996
4023
  var ci = { exports: {} }, fr = ci.exports, Ot;
3997
4024
  function Ur() {
3998
- return Ot || (Ot = 1, (function(e, u) {
3999
- (function(l, i, p) {
4025
+ return Ot || (Ot = 1, (function(e, p) {
4026
+ (function(l, i, u) {
4000
4027
  e.exports = i($(), se());
4001
4028
  })(fr, function(l) {
4002
4029
  return (function(i) {
4003
- var p = l, d = p.lib, C = d.CipherParams, c = p.enc, g = c.Hex, a = p.format;
4030
+ var u = l, d = u.lib, C = d.CipherParams, c = u.enc, g = c.Hex, a = u.format;
4004
4031
  a.Hex = {
4005
4032
  /**
4006
4033
  * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
@@ -4042,12 +4069,12 @@ function Ur() {
4042
4069
  }
4043
4070
  var _i = { exports: {} }, yr = _i.exports, At;
4044
4071
  function br() {
4045
- return At || (At = 1, (function(e, u) {
4046
- (function(l, i, p) {
4047
- e.exports = i($(), ea(), aa(), Ve(), se());
4072
+ return At || (At = 1, (function(e, p) {
4073
+ (function(l, i, u) {
4074
+ e.exports = i($(), aa(), ia(), Ve(), se());
4048
4075
  })(yr, function(l) {
4049
4076
  return (function() {
4050
- var i = l, p = i.lib, d = p.BlockCipher, C = i.algo, c = [], g = [], a = [], t = [], m = [], n = [], r = [], o = [], _ = [], f = [];
4077
+ var i = l, u = i.lib, d = u.BlockCipher, C = i.algo, c = [], g = [], a = [], t = [], m = [], n = [], r = [], o = [], _ = [], f = [];
4051
4078
  (function() {
4052
4079
  for (var U = [], b = 0; b < 256; b++)
4053
4080
  b < 128 ? U[b] = b << 1 : U[b] = b << 1 ^ 283;
@@ -4102,12 +4129,12 @@ function br() {
4102
4129
  }
4103
4130
  var fi = { exports: {} }, Cr = fi.exports, Bt;
4104
4131
  function vr() {
4105
- return Bt || (Bt = 1, (function(e, u) {
4106
- (function(l, i, p) {
4107
- e.exports = i($(), ea(), aa(), Ve(), se());
4132
+ return Bt || (Bt = 1, (function(e, p) {
4133
+ (function(l, i, u) {
4134
+ e.exports = i($(), aa(), ia(), Ve(), se());
4108
4135
  })(Cr, function(l) {
4109
4136
  return (function() {
4110
- var i = l, p = i.lib, d = p.WordArray, C = p.BlockCipher, c = i.algo, g = [
4137
+ var i = l, u = i.lib, d = u.WordArray, C = u.BlockCipher, c = i.algo, g = [
4111
4138
  57,
4112
4139
  49,
4113
4140
  41,
@@ -4822,12 +4849,12 @@ function vr() {
4822
4849
  }
4823
4850
  var Ui = { exports: {} }, Tr = Ui.exports, Ht;
4824
4851
  function hr() {
4825
- return Ht || (Ht = 1, (function(e, u) {
4826
- (function(l, i, p) {
4827
- e.exports = i($(), ea(), aa(), Ve(), se());
4852
+ return Ht || (Ht = 1, (function(e, p) {
4853
+ (function(l, i, u) {
4854
+ e.exports = i($(), aa(), ia(), Ve(), se());
4828
4855
  })(Tr, function(l) {
4829
4856
  return (function() {
4830
- var i = l, p = i.lib, d = p.StreamCipher, C = i.algo, c = C.RC4 = d.extend({
4857
+ var i = l, u = i.lib, d = u.StreamCipher, C = i.algo, c = C.RC4 = d.extend({
4831
4858
  _doReset: function() {
4832
4859
  for (var t = this._key, m = t.words, n = t.sigBytes, r = this._S = [], o = 0; o < 256; o++)
4833
4860
  r[o] = o;
@@ -4876,12 +4903,12 @@ function hr() {
4876
4903
  }
4877
4904
  var yi = { exports: {} }, kr = yi.exports, Wt;
4878
4905
  function xr() {
4879
- return Wt || (Wt = 1, (function(e, u) {
4880
- (function(l, i, p) {
4881
- e.exports = i($(), ea(), aa(), Ve(), se());
4906
+ return Wt || (Wt = 1, (function(e, p) {
4907
+ (function(l, i, u) {
4908
+ e.exports = i($(), aa(), ia(), Ve(), se());
4882
4909
  })(kr, function(l) {
4883
4910
  return (function() {
4884
- var i = l, p = i.lib, d = p.StreamCipher, C = i.algo, c = [], g = [], a = [], t = C.Rabbit = d.extend({
4911
+ var i = l, u = i.lib, d = u.StreamCipher, C = i.algo, c = [], g = [], a = [], t = C.Rabbit = d.extend({
4885
4912
  _doReset: function() {
4886
4913
  for (var n = this._key.words, r = this.cfg.iv, o = 0; o < 4; o++)
4887
4914
  n[o] = (n[o] << 8 | n[o] >>> 24) & 16711935 | (n[o] << 24 | n[o] >>> 8) & 4278255360;
@@ -4942,12 +4969,12 @@ function xr() {
4942
4969
  }
4943
4970
  var bi = { exports: {} }, Sr = bi.exports, zt;
4944
4971
  function Dr() {
4945
- return zt || (zt = 1, (function(e, u) {
4946
- (function(l, i, p) {
4947
- e.exports = i($(), ea(), aa(), Ve(), se());
4972
+ return zt || (zt = 1, (function(e, p) {
4973
+ (function(l, i, u) {
4974
+ e.exports = i($(), aa(), ia(), Ve(), se());
4948
4975
  })(Sr, function(l) {
4949
4976
  return (function() {
4950
- var i = l, p = i.lib, d = p.StreamCipher, C = i.algo, c = [], g = [], a = [], t = C.RabbitLegacy = d.extend({
4977
+ var i = l, u = i.lib, d = u.StreamCipher, C = i.algo, c = [], g = [], a = [], t = C.RabbitLegacy = d.extend({
4951
4978
  _doReset: function() {
4952
4979
  var n = this._key.words, r = this.cfg.iv, o = this._X = [
4953
4980
  n[0],
@@ -5006,12 +5033,12 @@ function Dr() {
5006
5033
  }
5007
5034
  var Ci = { exports: {} }, Er = Ci.exports, Vt;
5008
5035
  function Nr() {
5009
- return Vt || (Vt = 1, (function(e, u) {
5010
- (function(l, i, p) {
5011
- e.exports = i($(), ea(), aa(), Ve(), se());
5036
+ return Vt || (Vt = 1, (function(e, p) {
5037
+ (function(l, i, u) {
5038
+ e.exports = i($(), aa(), ia(), Ve(), se());
5012
5039
  })(Er, function(l) {
5013
5040
  return (function() {
5014
- var i = l, p = i.lib, d = p.BlockCipher, C = i.algo;
5041
+ var i = l, u = i.lib, d = u.BlockCipher, C = i.algo;
5015
5042
  const c = 16, g = [
5016
5043
  608135816,
5017
5044
  2242054355,
@@ -6128,9 +6155,9 @@ function Nr() {
6128
6155
  }
6129
6156
  var Lr = Ba.exports, Zt;
6130
6157
  function Gr() {
6131
- return Zt || (Zt = 1, (function(e, u) {
6132
- (function(l, i, p) {
6133
- e.exports = i($(), ki(), Dl(), Nl(), ea(), Ml(), aa(), xn(), Vi(), Ol(), Sn(), Hl(), zl(), Zl(), Zi(), Kl(), Ve(), se(), Ql(), Xl(), ar(), tr(), lr(), or(), sr(), pr(), dr(), _r(), Ur(), br(), vr(), hr(), xr(), Dr(), Nr());
6158
+ return Zt || (Zt = 1, (function(e, p) {
6159
+ (function(l, i, u) {
6160
+ e.exports = i($(), ki(), Dl(), Nl(), aa(), Ml(), ia(), xn(), Vi(), Ol(), Sn(), Hl(), zl(), Zl(), Zi(), Kl(), Ve(), se(), Ql(), Xl(), ar(), tr(), lr(), or(), sr(), pr(), dr(), _r(), Ur(), br(), vr(), hr(), xr(), Dr(), Nr());
6134
6161
  })(Lr, function(l) {
6135
6162
  return l;
6136
6163
  });
@@ -6138,17 +6165,17 @@ function Gr() {
6138
6165
  }
6139
6166
  var Dn = Gr();
6140
6167
  const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
6141
- const u = "mySecretPassphrase", l = je.lib.WordArray.random(16), i = je.PBKDF2(u, l, {
6168
+ const p = "mySecretPassphrase", l = je.lib.WordArray.random(16), i = je.PBKDF2(p, l, {
6142
6169
  keySize: 128 / 32,
6143
6170
  iterations: 1e3
6144
- }), p = je.AES.encrypt(e, i, {
6171
+ }), u = je.AES.encrypt(e, i, {
6145
6172
  iv: l,
6146
6173
  mode: je.mode.CBC,
6147
6174
  padding: je.pad.Pkcs7
6148
- }), d = l.toString(je.enc.Base64), C = je.enc.Base64.stringify(p.ciphertext);
6175
+ }), d = l.toString(je.enc.Base64), C = je.enc.Base64.stringify(u.ciphertext);
6149
6176
  return d + ":" + C;
6150
6177
  }, fe = () => {
6151
- const { client: e, formDataClient: u } = re(), l = q(
6178
+ const { client: e, formDataClient: p } = re(), l = q(
6152
6179
  async (s) => {
6153
6180
  const { mac_address: U = "", app_version: b = "", anydesk_id: v = "" } = s, { data: h } = await e.post("/cash-register/login", {
6154
6181
  mac_address: U,
@@ -6158,7 +6185,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
6158
6185
  return h;
6159
6186
  },
6160
6187
  [e]
6161
- ), i = q(async () => e.get("/member/getMemberInfo"), [e]), p = q(async () => await e.get("/member/getGameList"), [e]), d = q(async () => await e.get("/member/getNowCurrencyExchange"), [e]), C = q(async () => await e.get("member/getFavoriteGame"), [e]), c = q(
6188
+ ), i = q(async () => e.get("/member/getMemberInfo"), [e]), u = q(async () => await e.get("/member/getGameList"), [e]), d = q(async () => await e.get("/member/getNowCurrencyExchange"), [e]), C = q(async () => await e.get("member/getFavoriteGame"), [e]), c = q(
6162
6189
  async (s) => {
6163
6190
  const { account: U, password: b, trans_code: v } = s;
6164
6191
  return await e.post("/login", {
@@ -6261,14 +6288,14 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
6261
6288
  id_card: E,
6262
6289
  id_pic: O
6263
6290
  } = s;
6264
- return await u.post("/bindBankAccount", s);
6291
+ return await p.post("/bindBankAccount", s);
6265
6292
  },
6266
- [u]
6293
+ [p]
6267
6294
  );
6268
6295
  return {
6269
6296
  machineLoginApi: l,
6270
6297
  userInfoApi: i,
6271
- userGameListApi: p,
6298
+ userGameListApi: u,
6272
6299
  userFavoriteGameApi: C,
6273
6300
  userCurrencyExchangeApi: d,
6274
6301
  userLoginApi: c,
@@ -6304,12 +6331,12 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
6304
6331
  },
6305
6332
  user: { favorite: [] }
6306
6333
  }, Rr = ({ enabled: e = !0 } = {}) => {
6307
- const { getToken: u } = re(), { userFavoriteGameApi: l, userGameListApi: i } = fe(), { data: p, isLoading: d, error: C, refetch: c } = ae({
6334
+ const { getToken: p } = re(), { userFavoriteGameApi: l, userGameListApi: i } = fe(), { data: u, isLoading: d, error: C, refetch: c } = ae({
6308
6335
  queryKey: ["gamesInfo"],
6309
6336
  queryFn: async () => {
6310
6337
  let g = {}, a = {};
6311
6338
  try {
6312
- await u?.() && (a = await i(), g = await l());
6339
+ await p?.() && (a = await i(), g = await l());
6313
6340
  } catch (t) {
6314
6341
  console.warn("Failed to fetch favorite games:", t);
6315
6342
  }
@@ -6336,7 +6363,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
6336
6363
  refetchOnWindowFocus: !1
6337
6364
  });
6338
6365
  return {
6339
- gamesInfo: p || Mr,
6366
+ gamesInfo: u || Mr,
6340
6367
  isLoading: d,
6341
6368
  error: C,
6342
6369
  refetch: c
@@ -32870,25 +32897,25 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
32870
32897
  });
32871
32898
  }, Fr = ({
32872
32899
  children: e,
32873
- autoFetch: u = !1,
32900
+ autoFetch: p = !1,
32874
32901
  mockData: l = !1
32875
32902
  }) => {
32876
- ya(() => {
32903
+ ba(() => {
32877
32904
  l && Pr(!0);
32878
32905
  }, [l]);
32879
- const i = Rr({ enabled: u });
32906
+ const i = Rr({ enabled: p });
32880
32907
  return /* @__PURE__ */ Oa.jsx(Cn.Provider, { value: i, children: e });
32881
32908
  };
32882
32909
  function qo({
32883
32910
  children: e,
32884
- autoFetchGamesInfo: u = !1,
32911
+ autoFetchGamesInfo: p = !1,
32885
32912
  useMockData: l = !1,
32886
32913
  queryClient: i,
32887
- ...p
32914
+ ...u
32888
32915
  }) {
32889
- const d = wa(() => rt(p), [p]), C = wa(
32890
- () => rt({ ...p, formData: !0 }),
32891
- [p]
32916
+ const d = wa(() => rt(u), [u]), C = wa(
32917
+ () => rt({ ...u, formData: !0 }),
32918
+ [u]
32892
32919
  ), c = wa(
32893
32920
  () => new jn({
32894
32921
  defaultOptions: {
@@ -32900,10 +32927,10 @@ function qo({
32900
32927
  }),
32901
32928
  []
32902
32929
  ), g = i || c;
32903
- return /* @__PURE__ */ Oa.jsx($n, { client: g, children: /* @__PURE__ */ Oa.jsx(bn.Provider, { value: { client: d, formDataClient: C, ...p }, children: /* @__PURE__ */ Oa.jsx(Fr, { autoFetch: u, mockData: l, children: e }) }) });
32930
+ return /* @__PURE__ */ Oa.jsx($n, { client: g, children: /* @__PURE__ */ Oa.jsx(bn.Provider, { value: { client: d, formDataClient: C, ...u }, children: /* @__PURE__ */ Oa.jsx(Fr, { autoFetch: p, mockData: l, children: e }) }) });
32904
32931
  }
32905
- const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
32906
- const { userCurrencyExchangeApi: l } = fe(), { getToken: i } = re(), { enabled: p, ...d } = u, c = !!i?.() && (p ? p.every((g) => g) : !0);
32932
+ const jo = ({ otherQueryKey: e = [], options: p = {} } = {}) => {
32933
+ const { userCurrencyExchangeApi: l } = fe(), { getToken: i } = re(), { enabled: u, ...d } = p, c = !!i?.() && (u ? u.every((g) => g) : !0);
32907
32934
  return Un({
32908
32935
  queries: [
32909
32936
  {
@@ -32918,29 +32945,29 @@ const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
32918
32945
  });
32919
32946
  }, $o = ({
32920
32947
  refetchInterval: e = 5e4,
32921
- trigger: u = [],
32948
+ trigger: p = [],
32922
32949
  enabled: l = !0
32923
32950
  } = {}) => {
32924
- const { getToken: i } = re(), p = i?.(), { userInfoApi: d } = fe();
32951
+ const { getToken: i } = re(), u = i?.(), { userInfoApi: d } = fe();
32925
32952
  return Un({
32926
32953
  queries: [
32927
32954
  {
32928
- queryKey: ["getMemberInfo", ...u],
32955
+ queryKey: ["getMemberInfo", ...p],
32929
32956
  queryFn: async () => await d(),
32930
32957
  refetchInterval: e,
32931
- enabled: !!p && l
32958
+ enabled: !!u && l
32932
32959
  }
32933
32960
  ]
32934
32961
  });
32935
32962
  }, Qo = ({ enabled: e = !0 } = {}) => {
32936
32963
  const {
32937
- userInfoApi: u,
32964
+ userInfoApi: p,
32938
32965
  userFavoriteGameApi: l,
32939
32966
  userGameListApi: i,
32940
- userCurrencyExchangeApi: p
32967
+ userCurrencyExchangeApi: u
32941
32968
  } = fe(), d = ae({
32942
32969
  queryKey: ["getMemInfo"],
32943
- queryFn: async () => u(),
32970
+ queryFn: async () => p(),
32944
32971
  enabled: e
32945
32972
  }), C = ae({
32946
32973
  queryKey: ["getFavoriteGame"],
@@ -32952,7 +32979,7 @@ const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
32952
32979
  enabled: e && d.isSuccess && C.isSuccess
32953
32980
  }), g = ae({
32954
32981
  queryKey: ["getUserCurrencyExchange"],
32955
- queryFn: async () => p(),
32982
+ queryFn: async () => u(),
32956
32983
  enabled: e && d.isSuccess && C.isSuccess && c.isSuccess
32957
32984
  });
32958
32985
  return [
@@ -32962,7 +32989,7 @@ const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
32962
32989
  g
32963
32990
  ];
32964
32991
  }, Ji = () => {
32965
- const { client: e, lng: u } = re(), l = oa(u || "tw"), i = q(
32992
+ const { client: e, lng: p } = re(), l = ea(p || "tw"), i = q(
32966
32993
  async (C) => {
32967
32994
  const {
32968
32995
  gameUid: c = "",
@@ -32987,7 +33014,7 @@ const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
32987
33014
  });
32988
33015
  },
32989
33016
  [e, l]
32990
- ), p = q(
33017
+ ), u = q(
32991
33018
  async (C) => {
32992
33019
  const {
32993
33020
  startDate: c = de().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
@@ -33026,23 +33053,23 @@ const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
33026
33053
  },
33027
33054
  [e]
33028
33055
  );
33029
- return { playGameApi: i, betRecordApi: p, betRecordDetailApi: d };
33030
- }, wr = ({ options: e, formData: u } = {}) => {
33056
+ return { playGameApi: i, betRecordApi: u, betRecordDetailApi: d };
33057
+ }, wr = ({ options: e, formData: p } = {}) => {
33031
33058
  const { betRecordApi: l } = Ji();
33032
33059
  return ae({
33033
33060
  queryKey: ["getBetRecord"],
33034
- queryFn: async () => await l(u),
33061
+ queryFn: async () => await l(p),
33035
33062
  select: (i) => yn(i).map(([d, C]) => ({
33036
33063
  ...C,
33037
33064
  platform: d
33038
33065
  })),
33039
33066
  ...e
33040
33067
  });
33041
- }, Or = ({ options: e, formData: u } = {}) => {
33068
+ }, Or = ({ options: e, formData: p } = {}) => {
33042
33069
  const { betRecordDetailApi: l } = Ji();
33043
33070
  return ae({
33044
33071
  queryKey: ["getBetRecordDetail"],
33045
- queryFn: async () => await l(u),
33072
+ queryFn: async () => await l(p),
33046
33073
  ...e
33047
33074
  });
33048
33075
  }, Yo = ({
@@ -33051,11 +33078,11 @@ const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
33051
33078
  betRecordDetail: {}
33052
33079
  }
33053
33080
  }) => {
33054
- const u = wr({ options: e.betRecord }), l = Or({
33081
+ const p = wr({ options: e.betRecord }), l = Or({
33055
33082
  options: e.betRecordDetail
33056
33083
  });
33057
33084
  return {
33058
- betRecord: u,
33085
+ betRecord: p,
33059
33086
  betRecordDetail: l
33060
33087
  };
33061
33088
  };
@@ -33063,7 +33090,7 @@ var Fi = {}, Te = {}, wi = {}, Jt;
33063
33090
  function Le() {
33064
33091
  return Jt || (Jt = 1, (function(e) {
33065
33092
  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;
33066
- var u = 1, l = 1e3 * u;
33093
+ var p = 1, l = 1e3 * p;
33067
33094
  e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
33068
33095
  withCredentials: !1,
33069
33096
  events: e.EMPTY_EVENT_HANDLERS
@@ -33076,58 +33103,58 @@ function Le() {
33076
33103
  (function(d) {
33077
33104
  d[d.UNINSTANTIATED = -1] = "UNINSTANTIATED", d[d.CONNECTING = 0] = "CONNECTING", d[d.OPEN = 1] = "OPEN", d[d.CLOSING = 2] = "CLOSING", d[d.CLOSED = 3] = "CLOSED";
33078
33105
  })(i || (e.ReadyState = i = {}));
33079
- var p = function() {
33106
+ var u = function() {
33080
33107
  try {
33081
33108
  return "EventSource" in globalThis;
33082
33109
  } catch {
33083
33110
  return !1;
33084
33111
  }
33085
33112
  };
33086
- e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && p();
33113
+ e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && u();
33087
33114
  })(wi)), wi;
33088
33115
  }
33089
- var fa = {}, Oi = {}, It;
33116
+ var Ua = {}, Oi = {}, It;
33090
33117
  function Ii() {
33091
33118
  return It || (It = 1, (function(e) {
33092
33119
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
33093
- var u = function(l) {
33120
+ var p = function(l) {
33094
33121
  if (l && e.sharedWebSockets.hasOwnProperty(l))
33095
33122
  delete e.sharedWebSockets[l];
33096
33123
  else
33097
33124
  for (var i in e.sharedWebSockets)
33098
33125
  e.sharedWebSockets.hasOwnProperty(i) && delete e.sharedWebSockets[i];
33099
33126
  };
33100
- e.resetWebSockets = u;
33127
+ e.resetWebSockets = p;
33101
33128
  })(Oi)), Oi;
33102
33129
  }
33103
33130
  var Qe = {}, Pe = {}, Kt;
33104
33131
  function Ki() {
33105
33132
  if (Kt) return Pe;
33106
33133
  Kt = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.setUpSocketIOPing = Pe.appendQueryParams = Pe.parseSocketIOUrl = void 0;
33107
- var e = Le(), u = function(p) {
33108
- if (p) {
33109
- var d = /^https|wss/.test(p), C = p.replace(/^(https?|wss?)(:\/\/)?/, ""), c = C.replace(/\/$/, ""), g = d ? "wss" : "ws";
33134
+ var e = Le(), p = function(u) {
33135
+ if (u) {
33136
+ var d = /^https|wss/.test(u), C = u.replace(/^(https?|wss?)(:\/\/)?/, ""), c = C.replace(/\/$/, ""), g = d ? "wss" : "ws";
33110
33137
  return "".concat(g, "://").concat(c).concat(e.SOCKET_IO_PATH);
33111
- } else if (p === "") {
33138
+ } else if (u === "") {
33112
33139
  var d = /^https/.test(window.location.protocol), g = d ? "wss" : "ws", a = window.location.port ? ":".concat(window.location.port) : "";
33113
33140
  return "".concat(g, "://").concat(window.location.hostname).concat(a).concat(e.SOCKET_IO_PATH);
33114
33141
  }
33115
- return p;
33142
+ return u;
33116
33143
  };
33117
- Pe.parseSocketIOUrl = u;
33118
- var l = function(p, d) {
33144
+ Pe.parseSocketIOUrl = p;
33145
+ var l = function(u, d) {
33119
33146
  d === void 0 && (d = {});
33120
- var C = /\?([\w]+=[\w]+)/, c = C.test(p), g = "".concat(Object.entries(d).reduce(function(a, t) {
33147
+ var C = /\?([\w]+=[\w]+)/, c = C.test(u), g = "".concat(Object.entries(d).reduce(function(a, t) {
33121
33148
  var m = t[0], n = t[1];
33122
33149
  return a + "".concat(m, "=").concat(n, "&");
33123
33150
  }, "").slice(0, -1));
33124
- return "".concat(p).concat(c ? "&" : "?").concat(g);
33151
+ return "".concat(u).concat(c ? "&" : "?").concat(g);
33125
33152
  };
33126
33153
  Pe.appendQueryParams = l;
33127
- var i = function(p, d) {
33154
+ var i = function(u, d) {
33128
33155
  d === void 0 && (d = e.SOCKET_IO_PING_INTERVAL);
33129
33156
  var C = function() {
33130
- return p(e.SOCKET_IO_PING_CODE);
33157
+ return u(e.SOCKET_IO_PING_CODE);
33131
33158
  };
33132
33159
  return window.setInterval(C, d);
33133
33160
  };
@@ -33138,14 +33165,14 @@ function En() {
33138
33165
  if (qt) return Pa;
33139
33166
  qt = 1, Object.defineProperty(Pa, "__esModule", { value: !0 }), Pa.heartbeat = l;
33140
33167
  var e = Le();
33141
- function u(i) {
33142
- return Array.isArray(i) ? i.reduce(function(p, d) {
33143
- return p.current > d.current ? p : d;
33168
+ function p(i) {
33169
+ return Array.isArray(i) ? i.reduce(function(u, d) {
33170
+ return u.current > d.current ? u : d;
33144
33171
  }).current : i.current;
33145
33172
  }
33146
- function l(i, p, d) {
33173
+ function l(i, u, d) {
33147
33174
  var C = d || {}, c = C.interval, g = c === void 0 ? e.DEFAULT_HEARTBEAT.interval : c, a = C.timeout, t = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, m = C.message, n = m === void 0 ? e.DEFAULT_HEARTBEAT.message : m, r = Math.max(100, g / 10), o = Date.now(), _ = setInterval(function() {
33148
- var f = Date.now(), y = u(p);
33175
+ var f = Date.now(), y = p(u);
33149
33176
  if (y + t <= f)
33150
33177
  console.warn("Heartbeat timed out, closing connection, last message received ".concat(f - y, "ms ago, last ping sent ").concat(f - o, "ms ago")), i.close();
33151
33178
  else if (y + g <= f && o + g <= f)
@@ -33162,50 +33189,50 @@ function En() {
33162
33189
  }
33163
33190
  return Pa;
33164
33191
  }
33165
- var Ua = {}, Ai = {}, jt;
33192
+ var ya = {}, Ai = {}, jt;
33166
33193
  function qi() {
33167
33194
  return jt || (jt = 1, (function(e) {
33168
33195
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
33169
- var u = {}, l = [], i = function(g) {
33170
- return (0, e.hasSubscribers)(g) ? Array.from(u[g]) : l;
33196
+ var p = {}, l = [], i = function(g) {
33197
+ return (0, e.hasSubscribers)(g) ? Array.from(p[g]) : l;
33171
33198
  };
33172
33199
  e.getSubscribers = i;
33173
- var p = function(g) {
33200
+ var u = function(g) {
33174
33201
  var a;
33175
- return ((a = u[g]) === null || a === void 0 ? void 0 : a.size) > 0;
33202
+ return ((a = p[g]) === null || a === void 0 ? void 0 : a.size) > 0;
33176
33203
  };
33177
- e.hasSubscribers = p;
33204
+ e.hasSubscribers = u;
33178
33205
  var d = function(g, a) {
33179
- u[g] = u[g] || /* @__PURE__ */ new Set(), u[g].add(a);
33206
+ p[g] = p[g] || /* @__PURE__ */ new Set(), p[g].add(a);
33180
33207
  };
33181
33208
  e.addSubscriber = d;
33182
33209
  var C = function(g, a) {
33183
- u[g].delete(a);
33210
+ p[g].delete(a);
33184
33211
  };
33185
33212
  e.removeSubscriber = C;
33186
33213
  var c = function(g) {
33187
- if (g && u.hasOwnProperty(g))
33188
- delete u[g];
33214
+ if (g && p.hasOwnProperty(g))
33215
+ delete p[g];
33189
33216
  else
33190
- for (var a in u)
33191
- u.hasOwnProperty(a) && delete u[a];
33217
+ for (var a in p)
33218
+ p.hasOwnProperty(a) && delete p[a];
33192
33219
  };
33193
33220
  e.resetSubscribers = c;
33194
33221
  })(Ai)), Ai;
33195
33222
  }
33196
33223
  var $t;
33197
33224
  function ji() {
33198
- if ($t) return Ua;
33199
- $t = 1, Object.defineProperty(Ua, "__esModule", { value: !0 }), Ua.assertIsWebSocket = l, Ua.resetGlobalState = i;
33200
- var e = Ii(), u = qi();
33201
- function l(p, d) {
33202
- if (!d && !(p instanceof WebSocket))
33225
+ if ($t) return ya;
33226
+ $t = 1, Object.defineProperty(ya, "__esModule", { value: !0 }), ya.assertIsWebSocket = l, ya.resetGlobalState = i;
33227
+ var e = Ii(), p = qi();
33228
+ function l(u, d) {
33229
+ if (!d && !(u instanceof WebSocket))
33203
33230
  throw new Error("");
33204
33231
  }
33205
- function i(p) {
33206
- (0, u.resetSubscribers)(p), (0, e.resetWebSockets)(p);
33232
+ function i(u) {
33233
+ (0, p.resetSubscribers)(u), (0, e.resetWebSockets)(u);
33207
33234
  }
33208
- return Ua;
33235
+ return ya;
33209
33236
  }
33210
33237
  var Qt;
33211
33238
  function Ar() {
@@ -33221,7 +33248,7 @@ function Ar() {
33221
33248
  }, e.apply(this, arguments);
33222
33249
  };
33223
33250
  Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.attachListeners = void 0;
33224
- var u = Ki(), l = En(), i = Le(), p = ji(), d = function(t, m, n, r) {
33251
+ var p = Ki(), l = En(), i = Le(), u = ji(), d = function(t, m, n, r) {
33225
33252
  t.onmessage = function(o) {
33226
33253
  var _;
33227
33254
  m.current.onMessage && m.current.onMessage(o), typeof r?.current == "number" && (r.current = Date.now()), !(typeof m.current.filter == "function" && m.current.filter(o) !== !0) && (m.current.heartbeat && typeof m.current.heartbeat != "boolean" && ((_ = m.current.heartbeat) === null || _ === void 0 ? void 0 : _.returnMessage) === o.data || n(o));
@@ -33237,7 +33264,7 @@ function Ar() {
33237
33264
  if (i.isEventSourceSupported && t instanceof EventSource)
33238
33265
  return function() {
33239
33266
  };
33240
- (0, p.assertIsWebSocket)(t, m.current.skipAssert);
33267
+ (0, u.assertIsWebSocket)(t, m.current.skipAssert);
33241
33268
  var _;
33242
33269
  return t.onclose = function(f) {
33243
33270
  var y;
@@ -33271,7 +33298,7 @@ function Ar() {
33271
33298
  };
33272
33299
  }, a = function(t, m, n, r, o, _, f) {
33273
33300
  var y = m.setLastMessage, s = m.setReadyState, U, b, v;
33274
- return n.current.fromSocketIO && (U = (0, u.setUpSocketIOPing)(f)), d(t, n, y, _), C(t, n, s, o, _), b = c(t, n, s, r, o), v = g(t, n, s, r, o), function() {
33301
+ return n.current.fromSocketIO && (U = (0, p.setUpSocketIOPing)(f)), d(t, n, y, _), C(t, n, s, o, _), b = c(t, n, s, r, o), v = g(t, n, s, r, o), function() {
33275
33302
  s(i.ReadyState.CLOSING), b(), v(), t.close(), U && clearInterval(U);
33276
33303
  };
33277
33304
  };
@@ -33291,7 +33318,7 @@ function Br() {
33291
33318
  }, e.apply(this, arguments);
33292
33319
  };
33293
33320
  Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.attachSharedListeners = void 0;
33294
- var u = Ii(), l = Le(), i = qi(), p = Ki(), d = En(), C = function(m, n, r) {
33321
+ var p = Ii(), l = Le(), i = qi(), u = Ki(), d = En(), C = function(m, n, r) {
33295
33322
  m.onmessage = function(o) {
33296
33323
  (0, i.getSubscribers)(n).forEach(function(_) {
33297
33324
  var f;
@@ -33311,7 +33338,7 @@ function Br() {
33311
33338
  m instanceof WebSocket && (m.onclose = function(r) {
33312
33339
  (0, i.getSubscribers)(n).forEach(function(o) {
33313
33340
  o.optionsRef.current.onClose && o.optionsRef.current.onClose(r), o.setReadyState(l.ReadyState.CLOSED);
33314
- }), delete u.sharedWebSockets[n], (0, i.getSubscribers)(n).forEach(function(o) {
33341
+ }), delete p.sharedWebSockets[n], (0, i.getSubscribers)(n).forEach(function(o) {
33315
33342
  var _;
33316
33343
  if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(r)) {
33317
33344
  var f = (_ = o.optionsRef.current.reconnectAttempts) !== null && _ !== void 0 ? _ : l.DEFAULT_RECONNECT_LIMIT;
@@ -33333,7 +33360,7 @@ function Br() {
33333
33360
  };
33334
33361
  }, t = function(m, n, r, o) {
33335
33362
  var _;
33336
- return r.current.fromSocketIO && (_ = (0, p.setUpSocketIOPing)(o)), C(m, n, r.current.heartbeat), g(m, n), c(m, n, r.current.heartbeat), a(m, n), function() {
33363
+ return r.current.fromSocketIO && (_ = (0, u.setUpSocketIOPing)(o)), C(m, n, r.current.heartbeat), g(m, n), c(m, n, r.current.heartbeat), a(m, n), function() {
33337
33364
  _ && clearInterval(_);
33338
33365
  };
33339
33366
  };
@@ -33341,15 +33368,15 @@ function Br() {
33341
33368
  }
33342
33369
  var Xt;
33343
33370
  function Hr() {
33344
- if (Xt) return fa;
33345
- Xt = 1, Object.defineProperty(fa, "__esModule", { value: !0 }), fa.createOrJoinSocket = void 0;
33346
- var e = Ii(), u = Le(), l = Ar(), i = Br(), p = qi(), d = function(c, g, a, t, m) {
33371
+ if (Xt) return Ua;
33372
+ Xt = 1, Object.defineProperty(Ua, "__esModule", { value: !0 }), Ua.createOrJoinSocket = void 0;
33373
+ var e = Ii(), p = Le(), l = Ar(), i = Br(), u = qi(), d = function(c, g, a, t, m) {
33347
33374
  return function() {
33348
- if ((0, p.removeSubscriber)(c, g), !(0, p.hasSubscribers)(c)) {
33375
+ if ((0, u.removeSubscriber)(c, g), !(0, u.hasSubscribers)(c)) {
33349
33376
  try {
33350
33377
  var n = e.sharedWebSockets[c];
33351
33378
  n instanceof WebSocket && (n.onclose = function(r) {
33352
- a.current.onClose && a.current.onClose(r), t(u.ReadyState.CLOSED);
33379
+ a.current.onClose && a.current.onClose(r), t(p.ReadyState.CLOSED);
33353
33380
  }), n.close();
33354
33381
  } catch {
33355
33382
  }
@@ -33357,11 +33384,11 @@ function Hr() {
33357
33384
  }
33358
33385
  };
33359
33386
  }, C = function(c, g, a, t, m, n, r, o, _) {
33360
- if (!u.isEventSourceSupported && t.current.eventSourceOptions)
33361
- throw u.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
33387
+ if (!p.isEventSourceSupported && t.current.eventSourceOptions)
33388
+ throw p.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
33362
33389
  if (t.current.share) {
33363
33390
  var f = null;
33364
- e.sharedWebSockets[g] === void 0 ? (e.sharedWebSockets[g] = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), c.current = e.sharedWebSockets[g], a(u.ReadyState.CONNECTING), f = (0, i.attachSharedListeners)(e.sharedWebSockets[g], g, t, _)) : (c.current = e.sharedWebSockets[g], a(e.sharedWebSockets[g].readyState));
33391
+ e.sharedWebSockets[g] === void 0 ? (e.sharedWebSockets[g] = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), c.current = e.sharedWebSockets[g], a(p.ReadyState.CONNECTING), f = (0, i.attachSharedListeners)(e.sharedWebSockets[g], g, t, _)) : (c.current = e.sharedWebSockets[g], a(e.sharedWebSockets[g].readyState));
33365
33392
  var y = {
33366
33393
  setLastMessage: m,
33367
33394
  setReadyState: a,
@@ -33370,9 +33397,9 @@ function Hr() {
33370
33397
  lastMessageTime: o,
33371
33398
  reconnect: n
33372
33399
  };
33373
- return (0, p.addSubscriber)(g, y), d(g, y, t, a, f);
33400
+ return (0, u.addSubscriber)(g, y), d(g, y, t, a, f);
33374
33401
  } else {
33375
- if (c.current = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), a(u.ReadyState.CONNECTING), !c.current)
33402
+ if (c.current = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), a(p.ReadyState.CONNECTING), !c.current)
33376
33403
  throw new Error("WebSocket failed to be created");
33377
33404
  return (0, l.attachListeners)(c.current, {
33378
33405
  setLastMessage: m,
@@ -33380,12 +33407,12 @@ function Hr() {
33380
33407
  }, t, n.current, r, o, _);
33381
33408
  }
33382
33409
  };
33383
- return fa.createOrJoinSocket = C, fa;
33410
+ return Ua.createOrJoinSocket = C, Ua;
33384
33411
  }
33385
33412
  var Fe = {}, en;
33386
33413
  function Wr() {
33387
33414
  return en || (en = 1, (function(e) {
33388
- var u = Fe && Fe.__awaiter || function(g, a, t, m) {
33415
+ var p = Fe && Fe.__awaiter || function(g, a, t, m) {
33389
33416
  function n(r) {
33390
33417
  return r instanceof t ? r : new t(function(o) {
33391
33418
  o(r);
@@ -33476,14 +33503,14 @@ function Wr() {
33476
33503
  return g.concat(r || Array.prototype.slice.call(a));
33477
33504
  };
33478
33505
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
33479
- var p = Ki(), d = Le(), C = function(g) {
33506
+ var u = Ki(), d = Le(), C = function(g) {
33480
33507
  return new Promise(function(a) {
33481
33508
  return window.setTimeout(a, g);
33482
33509
  });
33483
33510
  }, c = function(g, a) {
33484
33511
  for (var t = [], m = 2; m < arguments.length; m++)
33485
33512
  t[m - 2] = arguments[m];
33486
- return u(void 0, i([g, a], t, !0), void 0, function(n, r, o) {
33513
+ return p(void 0, i([g, a], t, !0), void 0, function(n, r, o) {
33487
33514
  var _, f, y, s, U, b, v, h;
33488
33515
  return o === void 0 && (o = 0), l(this, function(x) {
33489
33516
  switch (x.label) {
@@ -33511,7 +33538,7 @@ function Wr() {
33511
33538
  case 10:
33512
33539
  _ = n, x.label = 11;
33513
33540
  case 11:
33514
- return s = r.current.fromSocketIO ? (0, p.parseSocketIOUrl)(_) : _, U = r.current.queryParams ? (0, p.appendQueryParams)(s, r.current.queryParams) : s, [2, U];
33541
+ return s = r.current.fromSocketIO ? (0, u.parseSocketIOUrl)(_) : _, U = r.current.queryParams ? (0, u.appendQueryParams)(s, r.current.queryParams) : s, [2, U];
33515
33542
  }
33516
33543
  });
33517
33544
  });
@@ -33523,19 +33550,19 @@ var Bi = {}, an;
33523
33550
  function zr() {
33524
33551
  return an || (an = 1, (function(e) {
33525
33552
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
33526
- var u = function(l, i) {
33553
+ var p = function(l, i) {
33527
33554
  return new Proxy(l, {
33528
- get: function(p, d) {
33529
- var C = p[d];
33555
+ get: function(u, d) {
33556
+ var C = u[d];
33530
33557
  return d === "reconnect" ? i : typeof C == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
33531
33558
  }) : C;
33532
33559
  },
33533
- set: function(p, d, C) {
33534
- return /^on/.test(d) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (p[d] = C, !0);
33560
+ set: function(u, d, C) {
33561
+ return /^on/.test(d) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (u[d] = C, !0);
33535
33562
  }
33536
33563
  });
33537
33564
  };
33538
- e.websocketWrapper = u, e.default = e.websocketWrapper;
33565
+ e.websocketWrapper = p, e.default = e.websocketWrapper;
33539
33566
  })(Bi)), Bi;
33540
33567
  }
33541
33568
  var tn;
@@ -33550,7 +33577,7 @@ function $i() {
33550
33577
  }
33551
33578
  return n;
33552
33579
  }, e.apply(this, arguments);
33553
- }, u = Te && Te.__awaiter || function(n, r, o, _) {
33580
+ }, p = Te && Te.__awaiter || function(n, r, o, _) {
33554
33581
  function f(y) {
33555
33582
  return y instanceof o ? y : new o(function(s) {
33556
33583
  s(y);
@@ -33639,9 +33666,9 @@ function $i() {
33639
33666
  return n && n.__esModule ? n : { default: n };
33640
33667
  };
33641
33668
  Object.defineProperty(Te, "__esModule", { value: !0 }), Te.useWebSocket = void 0;
33642
- var p = va, d = el, C = Le(), c = Hr(), g = Wr(), a = i(zr()), t = ji(), m = function(n, r, o) {
33669
+ var u = va, d = el, C = Le(), c = Hr(), g = Wr(), a = i(zr()), t = ji(), m = function(n, r, o) {
33643
33670
  r === void 0 && (r = C.DEFAULT_OPTIONS), o === void 0 && (o = !0);
33644
- var _ = (0, p.useState)(null), f = _[0], y = _[1], s = (0, p.useState)({}), U = s[0], b = s[1], v = (0, p.useMemo)(function() {
33671
+ var _ = (0, u.useState)(null), f = _[0], y = _[1], s = (0, u.useState)({}), U = s[0], b = s[1], v = (0, u.useMemo)(function() {
33645
33672
  if (!r.disableJson && f)
33646
33673
  try {
33647
33674
  return JSON.parse(f.data);
@@ -33649,25 +33676,25 @@ function $i() {
33649
33676
  return C.UNPARSABLE_JSON_OBJECT;
33650
33677
  }
33651
33678
  return null;
33652
- }, [f, r.disableJson]), h = (0, p.useRef)(null), x = (0, p.useRef)(null), E = (0, p.useRef)(function() {
33653
- }), O = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), S = (0, p.useRef)([]), P = (0, p.useRef)(null), G = (0, p.useRef)(r);
33679
+ }, [f, r.disableJson]), h = (0, u.useRef)(null), x = (0, u.useRef)(null), E = (0, u.useRef)(function() {
33680
+ }), O = (0, u.useRef)(0), k = (0, u.useRef)(Date.now()), S = (0, u.useRef)([]), P = (0, u.useRef)(null), G = (0, u.useRef)(r);
33654
33681
  G.current = r;
33655
- var w = h.current && U[h.current] !== void 0 ? U[h.current] : n !== null && o === !0 ? C.ReadyState.CONNECTING : C.ReadyState.UNINSTANTIATED, L = r.queryParams ? JSON.stringify(r.queryParams) : null, M = (0, p.useCallback)(function(H, z) {
33682
+ var w = h.current && U[h.current] !== void 0 ? U[h.current] : n !== null && o === !0 ? C.ReadyState.CONNECTING : C.ReadyState.UNINSTANTIATED, L = r.queryParams ? JSON.stringify(r.queryParams) : null, M = (0, u.useCallback)(function(H, z) {
33656
33683
  var D;
33657
33684
  if (z === void 0 && (z = !0), C.isEventSourceSupported && x.current instanceof EventSource) {
33658
33685
  console.warn("Unable to send a message from an eventSource");
33659
33686
  return;
33660
33687
  }
33661
33688
  ((D = x.current) === null || D === void 0 ? void 0 : D.readyState) === C.ReadyState.OPEN ? ((0, t.assertIsWebSocket)(x.current, G.current.skipAssert), x.current.send(H)) : z && S.current.push(H);
33662
- }, []), W = (0, p.useCallback)(function(H, z) {
33689
+ }, []), W = (0, u.useCallback)(function(H, z) {
33663
33690
  z === void 0 && (z = !0), M(JSON.stringify(H), z);
33664
- }, [M]), A = (0, p.useCallback)(function() {
33691
+ }, [M]), A = (0, u.useCallback)(function() {
33665
33692
  return G.current.share !== !0 || C.isEventSourceSupported && x.current instanceof EventSource ? x.current : (P.current === null && x.current && ((0, t.assertIsWebSocket)(x.current, G.current.skipAssert), P.current = (0, a.default)(x.current, E)), P.current);
33666
33693
  }, []);
33667
- return (0, p.useEffect)(function() {
33694
+ return (0, u.useEffect)(function() {
33668
33695
  if (n !== null && o === !0) {
33669
33696
  var H, z = !1, D = !0, R = function() {
33670
- return u(void 0, void 0, void 0, function() {
33697
+ return p(void 0, void 0, void 0, function() {
33671
33698
  var F, N, I;
33672
33699
  return l(this, function(K) {
33673
33700
  switch (K.label) {
@@ -33709,7 +33736,7 @@ function $i() {
33709
33736
  var N;
33710
33737
  return e(e({}, F), h.current && (N = {}, N[h.current] = C.ReadyState.CLOSED, N));
33711
33738
  }));
33712
- }, [n, o, L, M]), (0, p.useEffect)(function() {
33739
+ }, [n, o, L, M]), (0, u.useEffect)(function() {
33713
33740
  w === C.ReadyState.OPEN && S.current.splice(0).forEach(function(H) {
33714
33741
  M(H);
33715
33742
  });
@@ -33738,25 +33765,25 @@ function Vr() {
33738
33765
  }, e.apply(this, arguments);
33739
33766
  };
33740
33767
  Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.useSocketIO = void 0;
33741
- var u = va, l = $i(), i = Le(), p = {
33768
+ var p = va, l = $i(), i = Le(), u = {
33742
33769
  type: "empty",
33743
33770
  payload: null
33744
33771
  }, d = function(c) {
33745
33772
  if (!c || !c.data)
33746
- return p;
33773
+ return u;
33747
33774
  var g = c.data.match(/\[.*]/);
33748
33775
  if (!g)
33749
- return p;
33776
+ return u;
33750
33777
  var a = JSON.parse(g);
33751
- return !Array.isArray(a) || !a[1] ? p : {
33778
+ return !Array.isArray(a) || !a[1] ? u : {
33752
33779
  type: a[0],
33753
33780
  payload: a[1]
33754
33781
  };
33755
33782
  }, C = function(c, g, a) {
33756
33783
  g === void 0 && (g = i.DEFAULT_OPTIONS), a === void 0 && (a = !0);
33757
- var t = (0, u.useMemo)(function() {
33784
+ var t = (0, p.useMemo)(function() {
33758
33785
  return e(e({}, g), { fromSocketIO: !0 });
33759
- }, []), m = (0, l.useWebSocket)(c, t, a), n = m.sendMessage, r = m.sendJsonMessage, o = m.lastMessage, _ = m.readyState, f = m.getWebSocket, y = (0, u.useMemo)(function() {
33786
+ }, []), m = (0, l.useWebSocket)(c, t, a), n = m.sendMessage, r = m.sendJsonMessage, o = m.lastMessage, _ = m.readyState, f = m.getWebSocket, y = (0, p.useMemo)(function() {
33760
33787
  return d(o);
33761
33788
  }, [o]);
33762
33789
  return {
@@ -33782,7 +33809,7 @@ function Zr() {
33782
33809
  }
33783
33810
  return C;
33784
33811
  }, e.apply(this, arguments);
33785
- }, u = we && we.__rest || function(C, c) {
33812
+ }, p = we && we.__rest || function(C, c) {
33786
33813
  var g = {};
33787
33814
  for (var a in C) Object.prototype.hasOwnProperty.call(C, a) && c.indexOf(a) < 0 && (g[a] = C[a]);
33788
33815
  if (C != null && typeof Object.getOwnPropertySymbols == "function")
@@ -33791,13 +33818,13 @@ function Zr() {
33791
33818
  return g;
33792
33819
  };
33793
33820
  Object.defineProperty(we, "__esModule", { value: !0 }), we.useEventSource = void 0;
33794
- var l = va, i = $i(), p = Le(), d = function(C, c, g) {
33795
- c === void 0 && (c = p.DEFAULT_EVENT_SOURCE_OPTIONS);
33796
- var a = c.withCredentials, t = c.events, m = u(c, ["withCredentials", "events"]);
33821
+ var l = va, i = $i(), u = Le(), d = function(C, c, g) {
33822
+ c === void 0 && (c = u.DEFAULT_EVENT_SOURCE_OPTIONS);
33823
+ var a = c.withCredentials, t = c.events, m = p(c, ["withCredentials", "events"]);
33797
33824
  g === void 0 && (g = !0);
33798
33825
  var n = e(e({}, m), { eventSourceOptions: {
33799
33826
  withCredentials: a
33800
- } }), r = (0, l.useRef)(p.EMPTY_EVENT_HANDLERS);
33827
+ } }), r = (0, l.useRef)(u.EMPTY_EVENT_HANDLERS);
33801
33828
  t && (r.current = t);
33802
33829
  var o = (0, i.useWebSocket)(C, n, g), _ = o.lastMessage, f = o.readyState, y = o.getWebSocket;
33803
33830
  return (0, l.useEffect)(function() {
@@ -33817,9 +33844,9 @@ var rn;
33817
33844
  function Jr() {
33818
33845
  return rn || (rn = 1, (function(e) {
33819
33846
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
33820
- var u = $i();
33847
+ var p = $i();
33821
33848
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
33822
- return u.useWebSocket;
33849
+ return p.useWebSocket;
33823
33850
  } });
33824
33851
  var l = Vr();
33825
33852
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
@@ -33829,9 +33856,9 @@ function Jr() {
33829
33856
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
33830
33857
  return i.ReadyState;
33831
33858
  } });
33832
- var p = Zr();
33859
+ var u = Zr();
33833
33860
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
33834
- return p.useEventSource;
33861
+ return u.useEventSource;
33835
33862
  } });
33836
33863
  var d = ji();
33837
33864
  Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
@@ -33853,10 +33880,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
33853
33880
  CASH_REGISTER_LIMIT: "cash_register_limit"
33854
33881
  }, qr = 3e4, Xo = ({
33855
33882
  socketUrl: e,
33856
- socketHandlers: u = {},
33883
+ socketHandlers: p = {},
33857
33884
  options: l = {}
33858
33885
  }) => {
33859
- const i = Xi(!1), p = Xi(u), {
33886
+ const i = Xi(!1), u = Xi(p), {
33860
33887
  sendMessage: d,
33861
33888
  // 發送普通訊息
33862
33889
  sendJsonMessage: C,
@@ -33881,15 +33908,15 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
33881
33908
  return null;
33882
33909
  }
33883
33910
  }, [c?.data]);
33884
- return ya(() => {
33911
+ return ba(() => {
33885
33912
  const t = setInterval(
33886
33913
  () => d("ping"),
33887
33914
  qr
33888
33915
  );
33889
33916
  return () => clearInterval(t);
33890
- }, [d]), ya(() => {
33891
- p.current = u;
33892
- }, [u]), ya(() => {
33917
+ }, [d]), ba(() => {
33918
+ u.current = p;
33919
+ }, [p]), ba(() => {
33893
33920
  if (!a) return;
33894
33921
  const {
33895
33922
  onDeposit: t,
@@ -33901,10 +33928,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
33901
33928
  onReload: f,
33902
33929
  onTransferInGame: y,
33903
33930
  onCashRegisterLimit: s
33904
- } = p.current, U = ba(a, "type", ""), b = {
33905
- memberInfoUid: ba(a, "member_info_uid", null),
33906
- data: ba(a, "data", null),
33907
- memo: ba(a, "memo", null)
33931
+ } = u.current, U = oa(a, "type", ""), b = {
33932
+ memberInfoUid: oa(a, "member_info_uid", null),
33933
+ data: oa(a, "data", null),
33934
+ memo: oa(a, "memo", null)
33908
33935
  };
33909
33936
  switch (U) {
33910
33937
  case Ee.DEPOSIT:
@@ -33939,7 +33966,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
33939
33966
  console.warn("Unknown socket type:", U);
33940
33967
  break;
33941
33968
  }
33942
- }, [a]), ya(() => () => i.current = !0, []), {
33969
+ }, [a]), ba(() => () => i.current = !0, []), {
33943
33970
  sendMessage: d,
33944
33971
  sendJsonMessage: C,
33945
33972
  readyState: g
@@ -33954,15 +33981,15 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
33954
33981
  },
33955
33982
  [e]
33956
33983
  ) };
33957
- }, ze = "https://d1h3qe8voog6w4.cloudfront.net", on = "https://d3jx2uvukujuvn.cloudfront.net", Nn = (e) => `${ze}/reward_icon/${e}.avif`, Ln = () => `${ze}/reward_icon/background_deposit.avif`, $r = ({ paramsData: e, options: u } = {}) => {
33958
- const { eventListApi: l, store: i } = jr(), p = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD";
33984
+ }, ze = "https://d1h3qe8voog6w4.cloudfront.net", on = "https://d3jx2uvukujuvn.cloudfront.net", Nn = (e) => `${ze}/reward_icon/${e}.avif`, Ln = () => `${ze}/reward_icon/background_deposit.avif`, $r = ({ paramsData: e, options: p } = {}) => {
33985
+ const { eventListApi: l, store: i } = jr(), u = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD";
33959
33986
  return ae({
33960
33987
  queryKey: ["eventList", e],
33961
33988
  queryFn: () => l({ paramsData: e }),
33962
33989
  select: (d) => {
33963
33990
  const { data: C } = d;
33964
33991
  return he(C, (g) => {
33965
- const { events_attributes: a } = g, t = Oe(a, (W) => W.currency_code === p) || a[0], {
33992
+ const { events_attributes: a } = g, t = Oe(a, (W) => W.currency_code === u) || a[0], {
33966
33993
  event_uid: m,
33967
33994
  attribute_currency: n,
33968
33995
  attribute_is_rebate: r,
@@ -34015,7 +34042,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34015
34042
  };
34016
34043
  });
34017
34044
  },
34018
- ...u
34045
+ ...p
34019
34046
  });
34020
34047
  }, em = ({
34021
34048
  options: e = {
@@ -34024,34 +34051,34 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34024
34051
  } = {}) => ({
34025
34052
  eventListQuery: $r({ options: e.eventList })
34026
34053
  }), xi = () => {
34027
- const { client: e } = re(), u = q(async () => {
34054
+ const { client: e } = re(), p = q(async () => {
34028
34055
  const { data: d } = await e.get("/carousels");
34029
34056
  return d;
34030
- }, [e]), l = q(async () => await e.get("/marquees"), [e]), i = q(async () => await e.get("/notification"), [e]), p = q(
34057
+ }, [e]), l = q(async () => await e.get("/marquees"), [e]), i = q(async () => await e.get("/notification"), [e]), u = q(
34031
34058
  async (d) => await e.put(`/notification/${d}/read`),
34032
34059
  [e]
34033
34060
  );
34034
34061
  return {
34035
- commonCarouselApi: u,
34062
+ commonCarouselApi: p,
34036
34063
  commonMarqueeApi: l,
34037
34064
  commonInboxApi: i,
34038
- commonReadInboxApi: p
34065
+ commonReadInboxApi: u
34039
34066
  };
34040
34067
  }, am = () => {
34041
- const { lng: e, data2URL: u } = re(), { commonCarouselApi: l } = xi(), i = oa(e);
34068
+ const { lng: e, data2URL: p } = re(), { commonCarouselApi: l } = xi(), i = ea(e);
34042
34069
  return ae({
34043
34070
  queryKey: ["getCarouselList"],
34044
34071
  queryFn: async () => {
34045
- const p = window.carousels_list;
34046
- return p || await l();
34072
+ const u = window.carousels_list;
34073
+ return u || await l();
34047
34074
  },
34048
- select: (p) => p.map((C) => {
34075
+ select: (u) => u.map((C) => {
34049
34076
  const { carousels_lang: c } = C, g = c?.find((a) => a.lang === i) || c[0];
34050
34077
  return {
34051
34078
  ...C,
34052
34079
  carouselCurrentLanguageData: g,
34053
- carouselCurrentLanguagePCImageUrl: `${u}/carousels/${g.image_pc}`,
34054
- carouselCurrentLanguageMBImageUrl: `${u}/carousels/${g.image_mobile}`,
34080
+ carouselCurrentLanguagePCImageUrl: `${p}/carousels/${g.image_pc}`,
34081
+ carouselCurrentLanguageMBImageUrl: `${p}/carousels/${g.image_mobile}`,
34055
34082
  carouselCurrentLanguageS3PCImageUrl: `${ze}/carousels/${g.image_pc}`,
34056
34083
  carouselCurrentLanguageS3MBImageUrl: `${ze}/carousels/${g.image_mobile}`,
34057
34084
  carouselCurrentLanguageLink: g.url_link
@@ -34059,23 +34086,23 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34059
34086
  })
34060
34087
  });
34061
34088
  }, im = () => {
34062
- const { lng: e } = re(), { commonMarqueeApi: u } = xi(), l = oa(e);
34089
+ const { lng: e } = re(), { commonMarqueeApi: p } = xi(), l = ea(e);
34063
34090
  return ae({
34064
34091
  queryKey: ["getMarqueeList"],
34065
34092
  queryFn: async () => {
34066
34093
  const i = window.marquees;
34067
- return i || await u();
34094
+ return i || await p();
34068
34095
  },
34069
34096
  select: (i) => {
34070
- const p = Ne(i) ? i : i.Marquees;
34071
- return he(p, (C) => C[l] || C["en-US"]);
34097
+ const u = Ne(i) ? i : i.Marquees;
34098
+ return he(u, (C) => C[l] || C["en-US"]);
34072
34099
  }
34073
34100
  });
34074
34101
  }, tm = ({ options: e } = {}) => {
34075
- const { rankingGameApi: u } = fe();
34102
+ const { rankingGameApi: p } = fe();
34076
34103
  return ae({
34077
34104
  queryKey: ["rankingGame"],
34078
- queryFn: async () => u(),
34105
+ queryFn: async () => p(),
34079
34106
  enabled: window.profit_ranking_status === 1,
34080
34107
  select: (l) => {
34081
34108
  const { data: i } = l;
@@ -34113,10 +34140,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34113
34140
  ...e
34114
34141
  });
34115
34142
  }, Qr = ({ options: e } = {}) => {
34116
- const { commonInboxApi: u } = xi(), { getToken: l, lng: i } = re(), p = l?.(), d = oa(i);
34143
+ const { commonInboxApi: p } = xi(), { getToken: l, lng: i } = re(), u = l?.(), d = ea(i);
34117
34144
  return ae({
34118
34145
  queryKey: ["inboxList"],
34119
- queryFn: async () => await u(),
34146
+ queryFn: async () => await p(),
34120
34147
  select: (C) => {
34121
34148
  const { data: c } = C;
34122
34149
  return he(c, (a) => {
@@ -34130,14 +34157,14 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34130
34157
  };
34131
34158
  });
34132
34159
  },
34133
- enabled: !!p,
34160
+ enabled: !!u,
34134
34161
  ...e
34135
34162
  });
34136
34163
  }, Yr = ({ options: e } = {}) => {
34137
- const { commonReadInboxApi: u } = xi();
34164
+ const { commonReadInboxApi: p } = xi();
34138
34165
  return Ce({
34139
34166
  mutationKey: ["readInbox"],
34140
- mutationFn: async (l) => await u(l),
34167
+ mutationFn: async (l) => await p(l),
34141
34168
  ...e
34142
34169
  });
34143
34170
  }, nm = ({
@@ -34146,9 +34173,9 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34146
34173
  readInbox: {}
34147
34174
  }
34148
34175
  } = {}) => {
34149
- const u = Qr({ options: e.inboxList }), l = Yr({ options: e.readInbox });
34176
+ const p = Qr({ options: e.inboxList }), l = Yr({ options: e.readInbox });
34150
34177
  return {
34151
- inboxListQuery: u,
34178
+ inboxListQuery: p,
34152
34179
  readInboxMutation: l
34153
34180
  };
34154
34181
  }, Gn = () => {
@@ -34207,18 +34234,18 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34207
34234
  value: "other",
34208
34235
  ...e.other
34209
34236
  }
34210
- ], lm = ({ options: e, formData: u } = {}) => {
34211
- const { lng: l } = re(), { newsListApi: i } = Gn(), p = oa(l);
34237
+ ], lm = ({ options: e, formData: p } = {}) => {
34238
+ const { lng: l } = re(), { newsListApi: i } = Gn(), u = ea(l);
34212
34239
  return ae({
34213
34240
  queryKey: ["newsList"],
34214
34241
  queryFn: () => {
34215
- const { uid: d, params: C } = u || {};
34242
+ const { uid: d, params: C } = p || {};
34216
34243
  return i({ uid: d, params: C });
34217
34244
  },
34218
34245
  select: (d) => {
34219
34246
  const { data: C } = d, c = C.data?.filter((a) => a.is_active === 1), g = he(c, (a) => {
34220
34247
  const t = Oe(a.news_language, {
34221
- language: p
34248
+ language: u
34222
34249
  }) || a.news_language[0];
34223
34250
  return {
34224
34251
  ...a,
@@ -34233,17 +34260,17 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34233
34260
  },
34234
34261
  ...e
34235
34262
  });
34236
- }, rm = ({ options: e, formData: u } = {}) => {
34237
- const { lng: l } = re(), { newsListApi: i } = Gn(), p = oa(l);
34263
+ }, rm = ({ options: e, formData: p } = {}) => {
34264
+ const { lng: l } = re(), { newsListApi: i } = Gn(), u = ea(l);
34238
34265
  return ae({
34239
34266
  queryKey: ["newsList"],
34240
34267
  queryFn: () => {
34241
- const { uid: d, params: C } = u || {};
34268
+ const { uid: d, params: C } = p || {};
34242
34269
  return i({ uid: d, params: C });
34243
34270
  },
34244
34271
  select: (d) => {
34245
34272
  const C = Oe(d.data.news_language, {
34246
- language: p
34273
+ language: u
34247
34274
  }) || d.data.news_language[0];
34248
34275
  return {
34249
34276
  ...d.data,
@@ -34253,7 +34280,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34253
34280
  ...e
34254
34281
  });
34255
34282
  }, Ze = () => {
34256
- const { client: e } = re(), u = q(async () => await e.get("/payment/list"), [e]), l = q(
34283
+ const { client: e } = re(), p = q(async () => await e.get("/payment/list"), [e]), l = q(
34257
34284
  async ({ paramsData: a }) => await e.get("/thirdPartyPayment/list", {
34258
34285
  params: { ...a }
34259
34286
  }),
@@ -34271,7 +34298,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34271
34298
  });
34272
34299
  },
34273
34300
  [e]
34274
- ), p = q(
34301
+ ), u = q(
34275
34302
  async (a) => {
34276
34303
  const { bank_uid: t, amount: m, bank_number_last5: n, postscript: r } = a;
34277
34304
  return await e.post("/vip/deposit", {
@@ -34342,29 +34369,29 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34342
34369
  [e]
34343
34370
  );
34344
34371
  return {
34345
- depositApiV1: u,
34372
+ depositApiV1: p,
34346
34373
  depositApiV2: l,
34347
34374
  depositApi: i,
34348
- bankDepositApi: p,
34375
+ bankDepositApi: u,
34349
34376
  withdrawApi: d,
34350
34377
  depositTransactionApi: C,
34351
34378
  eventTransactionApi: c,
34352
34379
  withdrawTransactionApi: g
34353
34380
  };
34354
34381
  }, eo = ({ options: e } = {}) => {
34355
- const { depositApiV1: u } = Ze();
34382
+ const { depositApiV1: p } = Ze();
34356
34383
  return ae({
34357
34384
  queryKey: ["depositV1"],
34358
- queryFn: u,
34385
+ queryFn: p,
34359
34386
  ...e
34360
34387
  });
34361
- }, ao = ({ paramsData: e, options: u } = {}) => {
34388
+ }, ao = ({ paramsData: e, options: p } = {}) => {
34362
34389
  const { depositApiV2: l } = Ze();
34363
34390
  return ae({
34364
34391
  queryKey: ["depositV2", e],
34365
34392
  queryFn: () => l({ paramsData: e }),
34366
34393
  select: (i) => {
34367
- const { third_party: p, bank: d, vip: C } = i, c = he(p, (g) => ({
34394
+ const { third_party: u, bank: d, vip: C } = i, c = he(u, (g) => ({
34368
34395
  ...g,
34369
34396
  providerList: he(g.providers, (a) => ({
34370
34397
  ...a,
@@ -34381,61 +34408,61 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34381
34408
  thirdParty: c
34382
34409
  };
34383
34410
  },
34384
- ...u
34411
+ ...p
34385
34412
  });
34386
34413
  }, io = ({ options: e } = {}) => {
34387
- const { depositApi: u } = Ze();
34414
+ const { depositApi: p } = Ze();
34388
34415
  return Ce({
34389
34416
  mutationKey: ["depositAction"],
34390
- mutationFn: async (l) => u(l),
34417
+ mutationFn: async (l) => p(l),
34391
34418
  ...e
34392
34419
  });
34393
34420
  }, to = ({ options: e } = {}) => {
34394
- const { withdrawApi: u } = Ze();
34421
+ const { withdrawApi: p } = Ze();
34395
34422
  return Ce({
34396
34423
  mutationKey: ["withdrawAction"],
34397
- mutationFn: async (l) => u(l),
34424
+ mutationFn: async (l) => p(l),
34398
34425
  ...e
34399
34426
  });
34400
- }, no = ({ paramsData: e, options: u } = {}) => {
34427
+ }, no = ({ paramsData: e, options: p } = {}) => {
34401
34428
  const { depositTransactionApi: l } = Ze();
34402
34429
  return ae({
34403
34430
  queryKey: ["depositTransaction", e],
34404
34431
  queryFn: () => l({ paramsData: e }),
34405
- ...u
34432
+ ...p
34406
34433
  });
34407
- }, lo = ({ paramsData: e, options: u } = {}) => {
34434
+ }, lo = ({ paramsData: e, options: p } = {}) => {
34408
34435
  const { eventTransactionApi: l } = Ze();
34409
34436
  return ae({
34410
34437
  queryKey: ["eventTransaction", e],
34411
34438
  queryFn: () => l({ paramsData: e }),
34412
- ...u
34439
+ ...p
34413
34440
  });
34414
34441
  }, ro = ({ options: e } = {}) => {
34415
- const { bankDepositApi: u } = Ze();
34442
+ const { bankDepositApi: p } = Ze();
34416
34443
  return Ce({
34417
34444
  mutationKey: ["bankDeposit"],
34418
- mutationFn: async (l) => u(l),
34445
+ mutationFn: async (l) => p(l),
34419
34446
  ...e
34420
34447
  });
34421
- }, oo = ({ paramsData: e, options: u } = {}) => {
34448
+ }, oo = ({ paramsData: e, options: p } = {}) => {
34422
34449
  const { withdrawTransactionApi: l } = Ze();
34423
34450
  return ae({
34424
34451
  queryKey: ["withdrawTransaction", e],
34425
34452
  queryFn: () => l({ paramsData: e }),
34426
- ...u
34453
+ ...p
34427
34454
  });
34428
34455
  }, om = ({
34429
34456
  depositV1: e = {},
34430
- depositV2: u = {},
34457
+ depositV2: p = {},
34431
34458
  depositTransaction: l = {},
34432
34459
  depositAction: i = {},
34433
- withdrawAction: p = {},
34460
+ withdrawAction: u = {},
34434
34461
  bankDeposit: d = {},
34435
34462
  eventTransaction: C = {},
34436
34463
  withdrawTransaction: c = {}
34437
34464
  } = {}) => {
34438
- const g = eo(e), a = ao(u), t = no(l), m = io(i), n = to(p), r = ro(d), o = lo(C), _ = oo(
34465
+ const g = eo(e), a = ao(p), t = no(l), m = io(i), n = to(u), r = ro(d), o = lo(C), _ = oo(
34439
34466
  c
34440
34467
  );
34441
34468
  return {
@@ -34448,35 +34475,35 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34448
34475
  eventTransaction: o,
34449
34476
  withdrawTransaction: _
34450
34477
  };
34451
- }, Mn = "3.7.8", mo = Mn, ma = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, so = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(so), Fa = ((e) => {
34452
- let u = {};
34453
- return e.forEach((l, i) => u[l] = i), u;
34454
- })(Ca), uo = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Rn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (u) => u == "+" ? "-" : "_"), Pn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Fn = (e) => {
34455
- let u, l, i, p, d = "";
34478
+ }, Mn = "3.7.8", mo = Mn, sa = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, so = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(so), Fa = ((e) => {
34479
+ let p = {};
34480
+ return e.forEach((l, i) => p[l] = i), p;
34481
+ })(Ca), uo = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Rn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (p) => p == "+" ? "-" : "_"), Pn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Fn = (e) => {
34482
+ let p, l, i, u, d = "";
34456
34483
  const C = e.length % 3;
34457
34484
  for (let c = 0; c < e.length; ) {
34458
- if ((l = e.charCodeAt(c++)) > 255 || (i = e.charCodeAt(c++)) > 255 || (p = e.charCodeAt(c++)) > 255)
34485
+ if ((l = e.charCodeAt(c++)) > 255 || (i = e.charCodeAt(c++)) > 255 || (u = e.charCodeAt(c++)) > 255)
34459
34486
  throw new TypeError("invalid character found");
34460
- u = l << 16 | i << 8 | p, d += Ca[u >> 18 & 63] + Ca[u >> 12 & 63] + Ca[u >> 6 & 63] + Ca[u & 63];
34487
+ p = l << 16 | i << 8 | u, d += Ca[p >> 18 & 63] + Ca[p >> 12 & 63] + Ca[p >> 6 & 63] + Ca[p & 63];
34461
34488
  }
34462
34489
  return C ? d.slice(0, C - 3) + "===".substring(C) : d;
34463
- }, Qi = typeof btoa == "function" ? (e) => btoa(e) : ma ? (e) => Buffer.from(e, "binary").toString("base64") : Fn, Hi = ma ? (e) => Buffer.from(e).toString("base64") : (e) => {
34490
+ }, Qi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") : Fn, Hi = sa ? (e) => Buffer.from(e).toString("base64") : (e) => {
34464
34491
  let l = [];
34465
- for (let i = 0, p = e.length; i < p; i += 4096)
34492
+ for (let i = 0, u = e.length; i < u; i += 4096)
34466
34493
  l.push(ue.apply(null, e.subarray(i, i + 4096)));
34467
34494
  return Qi(l.join(""));
34468
- }, vi = (e, u = !1) => u ? Rn(Hi(e)) : Hi(e), po = (e) => {
34495
+ }, vi = (e, p = !1) => p ? Rn(Hi(e)) : Hi(e), po = (e) => {
34469
34496
  if (e.length < 2) {
34470
- var u = e.charCodeAt(0);
34471
- return u < 128 ? e : u < 2048 ? ue(192 | u >>> 6) + ue(128 | u & 63) : ue(224 | u >>> 12 & 15) + ue(128 | u >>> 6 & 63) + ue(128 | u & 63);
34497
+ var p = e.charCodeAt(0);
34498
+ return p < 128 ? e : p < 2048 ? ue(192 | p >>> 6) + ue(128 | p & 63) : ue(224 | p >>> 12 & 15) + ue(128 | p >>> 6 & 63) + ue(128 | p & 63);
34472
34499
  } else {
34473
- var u = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
34474
- return ue(240 | u >>> 18 & 7) + ue(128 | u >>> 12 & 63) + ue(128 | u >>> 6 & 63) + ue(128 | u & 63);
34500
+ var p = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
34501
+ return ue(240 | p >>> 18 & 7) + ue(128 | p >>> 12 & 63) + ue(128 | p >>> 6 & 63) + ue(128 | p & 63);
34475
34502
  }
34476
- }, go = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, wn = (e) => e.replace(go, po), pn = ma ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Qi(wn(e)), ra = (e, u = !1) => u ? Rn(pn(e)) : pn(e), gn = (e) => ra(e, !0), co = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, _o = (e) => {
34503
+ }, go = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, wn = (e) => e.replace(go, po), pn = sa ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Qi(wn(e)), ma = (e, p = !1) => p ? Rn(pn(e)) : pn(e), gn = (e) => ma(e, !0), co = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, _o = (e) => {
34477
34504
  switch (e.length) {
34478
34505
  case 4:
34479
- var u = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), l = u - 65536;
34506
+ var p = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), l = p - 65536;
34480
34507
  return ue((l >>> 10) + 55296) + ue((l & 1023) + 56320);
34481
34508
  case 3:
34482
34509
  return ue((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
@@ -34487,37 +34514,37 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34487
34514
  if (e = e.replace(/\s+/g, ""), !uo.test(e))
34488
34515
  throw new TypeError("malformed base64.");
34489
34516
  e += "==".slice(2 - (e.length & 3));
34490
- let u, l, i, p = [];
34517
+ let p, l, i, u = [];
34491
34518
  for (let d = 0; d < e.length; )
34492
- u = Fa[e.charAt(d++)] << 18 | Fa[e.charAt(d++)] << 12 | (l = Fa[e.charAt(d++)]) << 6 | (i = Fa[e.charAt(d++)]), l === 64 ? p.push(ue(u >> 16 & 255)) : i === 64 ? p.push(ue(u >> 16 & 255, u >> 8 & 255)) : p.push(ue(u >> 16 & 255, u >> 8 & 255, u & 255));
34493
- return p.join("");
34494
- }, Yi = typeof atob == "function" ? (e) => atob(Pn(e)) : ma ? (e) => Buffer.from(e, "base64").toString("binary") : An, Bn = ma ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Yi(e).split("").map((u) => u.charCodeAt(0))), Hn = (e) => Bn(Wn(e)), fo = ma ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(Bn(e)) : (e) => On(Yi(e)), Wn = (e) => Pn(e.replace(/[-_]/g, (u) => u == "-" ? "+" : "/")), Wi = (e) => fo(Wn(e)), Uo = (e) => {
34519
+ p = Fa[e.charAt(d++)] << 18 | Fa[e.charAt(d++)] << 12 | (l = Fa[e.charAt(d++)]) << 6 | (i = Fa[e.charAt(d++)]), l === 64 ? u.push(ue(p >> 16 & 255)) : i === 64 ? u.push(ue(p >> 16 & 255, p >> 8 & 255)) : u.push(ue(p >> 16 & 255, p >> 8 & 255, p & 255));
34520
+ return u.join("");
34521
+ }, Yi = typeof atob == "function" ? (e) => atob(Pn(e)) : sa ? (e) => Buffer.from(e, "base64").toString("binary") : An, Bn = sa ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Yi(e).split("").map((p) => p.charCodeAt(0))), Hn = (e) => Bn(Wn(e)), fo = sa ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(Bn(e)) : (e) => On(Yi(e)), Wn = (e) => Pn(e.replace(/[-_]/g, (p) => p == "-" ? "+" : "/")), Wi = (e) => fo(Wn(e)), Uo = (e) => {
34495
34522
  if (typeof e != "string")
34496
34523
  return !1;
34497
- const u = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
34498
- return !/[^\s0-9a-zA-Z\+/]/.test(u) || !/[^\s0-9a-zA-Z\-_]/.test(u);
34524
+ const p = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
34525
+ return !/[^\s0-9a-zA-Z\+/]/.test(p) || !/[^\s0-9a-zA-Z\-_]/.test(p);
34499
34526
  }, zn = (e) => ({
34500
34527
  value: e,
34501
34528
  enumerable: !1,
34502
34529
  writable: !0,
34503
34530
  configurable: !0
34504
34531
  }), Vn = function() {
34505
- const e = (u, l) => Object.defineProperty(String.prototype, u, zn(l));
34532
+ const e = (p, l) => Object.defineProperty(String.prototype, p, zn(l));
34506
34533
  e("fromBase64", function() {
34507
34534
  return Wi(this);
34508
- }), e("toBase64", function(u) {
34509
- return ra(this, u);
34535
+ }), e("toBase64", function(p) {
34536
+ return ma(this, p);
34510
34537
  }), e("toBase64URI", function() {
34511
- return ra(this, !0);
34538
+ return ma(this, !0);
34512
34539
  }), e("toBase64URL", function() {
34513
- return ra(this, !0);
34540
+ return ma(this, !0);
34514
34541
  }), e("toUint8Array", function() {
34515
34542
  return Hn(this);
34516
34543
  });
34517
34544
  }, Zn = function() {
34518
- const e = (u, l) => Object.defineProperty(Uint8Array.prototype, u, zn(l));
34519
- e("toBase64", function(u) {
34520
- return vi(this, u);
34545
+ const e = (p, l) => Object.defineProperty(Uint8Array.prototype, p, zn(l));
34546
+ e("toBase64", function(p) {
34547
+ return vi(this, p);
34521
34548
  }), e("toBase64URI", function() {
34522
34549
  return vi(this, !0);
34523
34550
  }), e("toBase64URL", function() {
@@ -34533,8 +34560,8 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34533
34560
  btoa: Qi,
34534
34561
  btoaPolyfill: Fn,
34535
34562
  fromBase64: Wi,
34536
- toBase64: ra,
34537
- encode: ra,
34563
+ toBase64: ma,
34564
+ encode: ma,
34538
34565
  encodeURI: gn,
34539
34566
  encodeURL: gn,
34540
34567
  utob: wn,
@@ -34546,14 +34573,14 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34546
34573
  extendString: Vn,
34547
34574
  extendUint8Array: Zn,
34548
34575
  extendBuiltins: yo
34549
- }, mm = (e, u) => {
34576
+ }, mm = (e, p) => {
34550
34577
  const { playGameApi: l } = Ji();
34551
34578
  return ae({
34552
34579
  queryKey: ["playGame"],
34553
34580
  queryFn: async () => {
34554
- const { gameUid: i, gameCode: p, isMobile: d, gameCurrency: C, currentCurrency: c } = e || {}, g = await l({
34581
+ const { gameUid: i, gameCode: u, isMobile: d, gameCurrency: C, currentCurrency: c } = e || {}, g = await l({
34555
34582
  gameUid: i,
34556
- gameCode: p,
34583
+ gameCode: u,
34557
34584
  isMobile: d,
34558
34585
  gameCurrency: C,
34559
34586
  currentCurrency: c
@@ -34578,41 +34605,41 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34578
34605
  };
34579
34606
  },
34580
34607
  enabled: !!e?.gameCode,
34581
- ...u
34608
+ ...p
34582
34609
  });
34583
34610
  }, Ta = () => {
34584
- const { client: e } = re(), u = q(
34611
+ const { client: e } = re(), p = q(
34585
34612
  async ({ uid: C, params: c } = {}) => await e.get(`/memberRewards${C ? `/${C}` : ""}`, {
34586
34613
  params: c
34587
34614
  }),
34588
34615
  [e]
34589
- ), l = q(async () => await e.get("/memberRewards/member/unused"), [e]), i = q(async () => await e.get("/memberRewards/member/expired"), [e]), p = q(
34616
+ ), l = q(async () => await e.get("/memberRewards/member/unused"), [e]), i = q(async () => await e.get("/memberRewards/member/expired"), [e]), u = q(
34590
34617
  async (C) => await e.post("/memberRewards/memberGetRewards", {
34591
34618
  memberRewards_uid: C
34592
34619
  }),
34593
34620
  [e]
34594
34621
  ), d = q(async () => await e.get("/memberRewards/member/history"), [e]);
34595
34622
  return {
34596
- rewardListApi: u,
34623
+ rewardListApi: p,
34597
34624
  unUsedRewardListApi: l,
34598
34625
  expiredRewardListApi: i,
34599
- redeemRewardApi: p,
34626
+ redeemRewardApi: u,
34600
34627
  historyRewardApi: d
34601
34628
  };
34602
34629
  }, Co = ({ options: e } = {}) => {
34603
- const { rewardListApi: u } = Ta();
34630
+ const { rewardListApi: p } = Ta();
34604
34631
  return ae({
34605
34632
  queryKey: ["rewardsList"],
34606
34633
  queryFn: (l) => {
34607
- const { uid: i, params: p } = l || {};
34608
- return u({ uid: i, params: p });
34634
+ const { uid: i, params: u } = l || {};
34635
+ return p({ uid: i, params: u });
34609
34636
  },
34610
34637
  select: (l) => {
34611
- const i = he(l.data, (p) => {
34638
+ const i = he(l.data, (u) => {
34612
34639
  const {
34613
34640
  wagering_restricted_amount: d,
34614
34641
  claimed_amount: C
34615
- } = p, c = ba(p, "rewards", {}), {
34642
+ } = u, c = oa(u, "rewards", {}), {
34616
34643
  expiration_days: g,
34617
34644
  name: a,
34618
34645
  position: t,
@@ -34620,7 +34647,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34620
34647
  uid: n
34621
34648
  } = c;
34622
34649
  return {
34623
- ...p,
34650
+ ...u,
34624
34651
  rewardExpirationDays: g,
34625
34652
  rewardName: a,
34626
34653
  rewardPosition: t,
@@ -34640,31 +34667,31 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34640
34667
  ...e
34641
34668
  });
34642
34669
  }, vo = ({ options: e } = {}) => {
34643
- const { redeemRewardApi: u } = Ta();
34670
+ const { redeemRewardApi: p } = Ta();
34644
34671
  return Ce({
34645
34672
  mutationKey: ["redeemReward"],
34646
- mutationFn: async (l) => await u(l),
34673
+ mutationFn: async (l) => await p(l),
34647
34674
  ...e
34648
34675
  });
34649
34676
  }, To = ({ options: e } = {}) => {
34650
- const { unUsedRewardListApi: u } = Ta();
34677
+ const { unUsedRewardListApi: p } = Ta();
34651
34678
  return ae({
34652
34679
  queryKey: ["unUsedRewardsList"],
34653
- queryFn: u,
34680
+ queryFn: p,
34654
34681
  ...e
34655
34682
  });
34656
34683
  }, ho = ({ options: e } = {}) => {
34657
- const { expiredRewardListApi: u } = Ta();
34684
+ const { expiredRewardListApi: p } = Ta();
34658
34685
  return ae({
34659
34686
  queryKey: ["expiredRewardsList"],
34660
- queryFn: u,
34687
+ queryFn: p,
34661
34688
  ...e
34662
34689
  });
34663
34690
  }, ko = ({ options: e } = {}) => {
34664
- const { historyRewardApi: u } = Ta();
34691
+ const { historyRewardApi: p } = Ta();
34665
34692
  return ae({
34666
34693
  queryKey: ["historyRewardsList"],
34667
- queryFn: u,
34694
+ queryFn: p,
34668
34695
  ...e
34669
34696
  });
34670
34697
  }, sm = ({
@@ -34676,91 +34703,91 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34676
34703
  historyRewardsList: {}
34677
34704
  }
34678
34705
  } = {}) => {
34679
- const u = Co({ options: e.rewardsList }), l = vo({
34706
+ const p = Co({ options: e.rewardsList }), l = vo({
34680
34707
  options: e.redeemReward
34681
34708
  }), i = To({
34682
34709
  options: e.unUsedRewardsList
34683
- }), p = ho({
34710
+ }), u = ho({
34684
34711
  options: e.expiredRewardsList
34685
34712
  }), d = ko({
34686
34713
  options: e.historyRewardsList
34687
34714
  });
34688
34715
  return {
34689
- rewardsListQuery: u,
34716
+ rewardsListQuery: p,
34690
34717
  redeemRewardMutation: l,
34691
34718
  unUsedRewardsListQuery: i,
34692
- expiredRewardsListQuery: p,
34719
+ expiredRewardsListQuery: u,
34693
34720
  historyRewardsListQuery: d
34694
34721
  };
34695
34722
  }, xo = ({ options: e } = {}) => {
34696
- const { userLoginApi: u } = fe();
34723
+ const { userLoginApi: p } = fe();
34697
34724
  return Ce({
34698
34725
  mutationKey: ["userLogin"],
34699
- mutationFn: async (l) => u(l),
34726
+ mutationFn: async (l) => p(l),
34700
34727
  ...e
34701
34728
  });
34702
34729
  }, So = ({ options: e } = {}) => {
34703
- const { userLogoutApi: u } = fe();
34730
+ const { userLogoutApi: p } = fe();
34704
34731
  return Ce({
34705
34732
  mutationKey: ["userLogout"],
34706
- mutationFn: async () => u(),
34733
+ mutationFn: async () => p(),
34707
34734
  ...e
34708
34735
  });
34709
34736
  }, Do = ({ options: e } = {}) => {
34710
- const { userSignUpApi: u } = fe();
34737
+ const { userSignUpApi: p } = fe();
34711
34738
  return Ce({
34712
34739
  mutationKey: ["userSignUp"],
34713
- mutationFn: async (l) => u(l),
34740
+ mutationFn: async (l) => p(l),
34714
34741
  ...e
34715
34742
  });
34716
34743
  }, Eo = ({ options: e } = {}) => {
34717
- const { addOrRemoveFavoriteGameApi: u } = fe();
34744
+ const { addOrRemoveFavoriteGameApi: p } = fe();
34718
34745
  return Ce({
34719
34746
  mutationKey: ["toggleFavoriteGame"],
34720
- mutationFn: async (l) => u(l),
34747
+ mutationFn: async (l) => p(l),
34721
34748
  ...e
34722
34749
  });
34723
34750
  }, No = ({ options: e } = {}) => {
34724
- const { updateUserInfoApi: u } = fe();
34751
+ const { updateUserInfoApi: p } = fe();
34725
34752
  return Ce({
34726
34753
  mutationKey: ["updateUserInfo"],
34727
- mutationFn: async (l) => u(l),
34754
+ mutationFn: async (l) => p(l),
34728
34755
  ...e
34729
34756
  });
34730
34757
  }, Lo = ({ options: e } = {}) => {
34731
- const { resetUserPasswordApi: u } = fe();
34758
+ const { resetUserPasswordApi: p } = fe();
34732
34759
  return Ce({
34733
34760
  mutationKey: ["resetUserPassword"],
34734
- mutationFn: async (l) => u(l),
34761
+ mutationFn: async (l) => p(l),
34735
34762
  ...e
34736
34763
  });
34737
34764
  }, Go = ({ options: e } = {}) => {
34738
- const { setUserTransactionPasswordApi: u } = fe();
34765
+ const { setUserTransactionPasswordApi: p } = fe();
34739
34766
  return Ce({
34740
34767
  mutationKey: ["setUserTransactionPassword"],
34741
- mutationFn: async (l) => u(l),
34768
+ mutationFn: async (l) => p(l),
34742
34769
  ...e
34743
34770
  });
34744
34771
  }, Mo = ({ options: e } = {}) => {
34745
- const { resetUserTransactionPasswordApi: u } = fe();
34772
+ const { resetUserTransactionPasswordApi: p } = fe();
34746
34773
  return Ce({
34747
34774
  mutationKey: ["resetUserTransactionPassword"],
34748
- mutationFn: async (l) => u(l),
34775
+ mutationFn: async (l) => p(l),
34749
34776
  ...e
34750
34777
  });
34751
- }, Ro = ({ paramsData: e, options: u } = {}) => {
34778
+ }, Ro = ({ paramsData: e, options: p } = {}) => {
34752
34779
  const { userRebateApi: l } = fe(), { getToken: i } = re();
34753
34780
  return i?.(), ae({
34754
34781
  queryKey: ["userRebate", e],
34755
34782
  queryFn: async () => l({ paramsData: e }),
34756
34783
  enabled: !1,
34757
- ...u
34784
+ ...p
34758
34785
  });
34759
34786
  }, Po = ({ options: e } = {}) => {
34760
- const { userBindBankApi: u } = fe();
34787
+ const { userBindBankApi: p } = fe();
34761
34788
  return Ce({
34762
34789
  mutationKey: ["userBindBank"],
34763
- mutationFn: async (l) => u({ formData: l }),
34790
+ mutationFn: async (l) => p({ formData: l }),
34764
34791
  ...e
34765
34792
  });
34766
34793
  }, um = ({
@@ -34777,7 +34804,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34777
34804
  userBindCard: {}
34778
34805
  }
34779
34806
  } = {}) => {
34780
- const u = xo({ options: e.login }), l = So({ options: e.logout }), i = Do({ options: e.register }), p = No({ options: e.updateUserInfo }), d = Eo({
34807
+ const p = xo({ options: e.login }), l = So({ options: e.logout }), i = Do({ options: e.register }), u = No({ options: e.updateUserInfo }), d = Eo({
34781
34808
  options: e.toggleFavoriteGame
34782
34809
  }), C = Lo({
34783
34810
  options: e.resetUserPassword
@@ -34787,10 +34814,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34787
34814
  options: e.resetUserTransactionPassword
34788
34815
  }), a = Ro({ options: e.userRebate }), t = Po({ options: e.userBindCard });
34789
34816
  return {
34790
- login: u,
34817
+ login: p,
34791
34818
  logout: l,
34792
34819
  register: i,
34793
- updateUserInfo: p,
34820
+ updateUserInfo: u,
34794
34821
  toggleFavoriteGame: d,
34795
34822
  resetUserPassword: C,
34796
34823
  setUserTransactionPassword: c,
@@ -34799,18 +34826,18 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34799
34826
  userBindCard: t
34800
34827
  };
34801
34828
  }, Jn = () => {
34802
- const { client: e } = re(), u = q(async () => await e.get("/vip/list"), [e]), l = q(async () => await e.get("/vip/check"), [e]);
34829
+ const { client: e } = re(), p = q(async () => await e.get("/vip/list"), [e]), l = q(async () => await e.get("/vip/check"), [e]);
34803
34830
  return {
34804
- vipListApi: u,
34831
+ vipListApi: p,
34805
34832
  vipInfoApi: l
34806
34833
  };
34807
34834
  }, pm = ({ options: e } = {}) => {
34808
- const { store: u } = re(), l = u?.getState()?.isMemberInfo || u?.getState()?.member?.member || {}, { vipInfoApi: i } = Jn();
34835
+ const { store: p } = re(), l = p?.getState()?.isMemberInfo || p?.getState()?.member?.member || {}, { vipInfoApi: i } = Jn();
34809
34836
  return ae({
34810
34837
  queryKey: ["vipInfo"],
34811
34838
  queryFn: async () => i(),
34812
- select: (p) => {
34813
- const { data: d } = p;
34839
+ select: (u) => {
34840
+ const { data: d } = u;
34814
34841
  return {
34815
34842
  currentWager: d.wagering,
34816
34843
  currentLevel: l.vip_level,
@@ -34820,15 +34847,15 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34820
34847
  ...e
34821
34848
  });
34822
34849
  }, Fo = ({ options: e } = {}) => {
34823
- const { store: u } = re(), l = u?.getState()?.isWalletCurrency || u?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = Jn();
34850
+ const { store: p } = re(), l = p?.getState()?.isWalletCurrency || p?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = Jn();
34824
34851
  return ae({
34825
34852
  queryKey: ["vipList"],
34826
34853
  queryFn: async () => {
34827
- const p = window.vip_list;
34828
- return p || i();
34854
+ const u = window.vip_list;
34855
+ return u || i();
34829
34856
  },
34830
- select: (p) => {
34831
- const d = Ne(p) ? p : p.data;
34857
+ select: (u) => {
34858
+ const d = Ne(u) ? u : u.data;
34832
34859
  return he(d, (c) => {
34833
34860
  const {
34834
34861
  vip_criteria: g,
@@ -34875,10 +34902,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34875
34902
  return "En";
34876
34903
  }
34877
34904
  }, cn = "game-icon-ds88", dm = ({ gameData: e = {} } = {}) => {
34878
- const { lng: u } = re(), l = dn(u), {
34905
+ const { lng: p } = re(), l = dn(p), {
34879
34906
  gameCode: i,
34880
34907
  // 遊戲代碼
34881
- gameUid: p,
34908
+ gameUid: u,
34882
34909
  // 遊戲唯一標識符
34883
34910
  gameTypeUid: d,
34884
34911
  // 遊戲類型唯一標識符
@@ -34916,7 +34943,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34916
34943
  } = e, v = e?.[`gameName${dn(l)}`], h = `${on}/${cn}/en/${a}/${it(i, / /g, "_")}.webp`, x = `${on}/${cn}/en/${a}/${it(i, / /g, "_")}.gif`;
34917
34944
  return {
34918
34945
  gameCode: i,
34919
- gameUid: p,
34946
+ gameUid: u,
34920
34947
  gameTypeUid: d,
34921
34948
  providerUid: C,
34922
34949
  supportCurrency: c,
@@ -34937,7 +34964,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34937
34964
  gameImageUrl: h,
34938
34965
  gameImageUrlAnimated: x
34939
34966
  };
34940
- }, wo = "ds88platformIcon", Oo = (e, u = !1) => Xn([
34967
+ }, wo = "ds88platformIcon", Oo = (e, p = !1) => Xn([
34941
34968
  "EVO",
34942
34969
  "IMSPRIBE",
34943
34970
  "SABA",
@@ -34948,13 +34975,13 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34948
34975
  "HACK",
34949
34976
  "NAGA",
34950
34977
  "RSG"
34951
- ], e) && u ? `${e}_dark` : e, cm = ({ platformData: e, darkMode: u } = {}) => {
34978
+ ], e) && p ? `${e}_dark` : e, cm = ({ platformData: e, darkMode: p } = {}) => {
34952
34979
  const {
34953
34980
  SubPlatformEnum: l,
34954
34981
  // 子平台枚舉
34955
34982
  platformEnum: i,
34956
34983
  // 平台枚舉
34957
- isUnderMaintenance: p,
34984
+ isUnderMaintenance: u,
34958
34985
  // 是否維護中
34959
34986
  maintenanceStartTime: d,
34960
34987
  // 維護開始時間
@@ -34970,11 +34997,11 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
34970
34997
  // 臨時維護開始時間
34971
34998
  temp_maintenance_end_time: m
34972
34999
  // 臨時維護結束時間
34973
- } = e || {}, n = `${ze}/${wo}/${Oo(i, u)}.png`;
35000
+ } = e || {}, n = `${ze}/${wo}/${Oo(i, p)}.png`;
34974
35001
  return {
34975
35002
  subPlatformEnum: l,
34976
35003
  platformEnum: i,
34977
- isUnderMaintenance: p,
35004
+ isUnderMaintenance: u,
34978
35005
  maintenanceStartTime: d,
34979
35006
  maintenanceEndTime: C,
34980
35007
  platform: c,
@@ -34994,7 +35021,7 @@ export {
34994
35021
  ol as buildSinglePlatformWithSubTypes,
34995
35022
  rl as buildSingleType,
34996
35023
  gl as categorizeGames,
34997
- oa as convertLanguageCode,
35024
+ ea as convertLanguageCode,
34998
35025
  Zo as createLogoutHandler,
34999
35026
  ul as extractGameSubTypeNames,
35000
35027
  sl as extractGameTypeNames,