@obb871001/api-integration-sdk 1.0.124 → 1.0.125

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 Le, { createContext as mi, useContext as ri, useCallback as V, useMemo as ta, useEffect as De, useRef as Ga } from "react";
2
- import { useQuery as ie, QueryClient as at, QueryClientProvider as it, useQueries as oi, useMutation as ma } from "@tanstack/react-query";
1
+ import Le, { createContext as mi, useContext as ri, useCallback as V, useMemo as ia, useEffect as De, useRef as Ga } from "react";
2
+ import { useQuery as ie, QueryClient as at, QueryClientProvider as it, useQueries as oi, useMutation as na } from "@tanstack/react-query";
3
3
  import tt from "axios";
4
- import { find as Ve, isEmpty as O, isObject as Ae, flatMap as Ie, isArray as ne, map as Be, entries as lt, values as nt, keys as Ma, get as we, replace as Ra, includes as mt } from "lodash";
4
+ import { find as ma, isEmpty as O, isObject as Ve, flatMap as Ae, isArray as ne, map as Ie, entries as lt, values as nt, keys as Ma, get as we, replace as Ra, includes as mt } from "lodash";
5
5
  import rt from "react-dom";
6
6
  function ot(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -11,13 +11,13 @@ var Pa;
11
11
  function st() {
12
12
  if (Pa) return he;
13
13
  Pa = 1;
14
- var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
14
+ var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
15
15
  function f(_, p, g) {
16
- var o, t = {}, d = null, n = null;
17
- g !== void 0 && (d = "" + g), p.key !== void 0 && (d = "" + p.key), p.ref !== void 0 && (n = p.ref);
18
- for (o in p) l.call(p, o) && !u.hasOwnProperty(o) && (t[o] = p[o]);
16
+ var o, t = {}, d = null, l = null;
17
+ g !== void 0 && (d = "" + g), p.key !== void 0 && (d = "" + p.key), p.ref !== void 0 && (l = p.ref);
18
+ for (o in p) n.call(p, o) && !u.hasOwnProperty(o) && (t[o] = p[o]);
19
19
  if (_ && _.defaultProps) for (o in p = _.defaultProps, p) t[o] === void 0 && (t[o] = p[o]);
20
- return { $$typeof: i, type: _, key: d, ref: n, props: t, _owner: r.current };
20
+ return { $$typeof: i, type: _, key: d, ref: l, props: t, _owner: r.current };
21
21
  }
22
22
  return he.Fragment = m, he.jsx = f, he.jsxs = f, he;
23
23
  }
@@ -25,7 +25,7 @@ var ke = {};
25
25
  var xa;
26
26
  function ut() {
27
27
  return xa || (xa = 1, process.env.NODE_ENV !== "production" && (function() {
28
- var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), t = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), n = Symbol.for("react.offscreen"), s = Symbol.iterator, y = "@@iterator";
28
+ var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), t = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), s = Symbol.iterator, y = "@@iterator";
29
29
  function b(a) {
30
30
  if (a === null || typeof a != "object")
31
31
  return null;
@@ -53,7 +53,7 @@ function ut() {
53
53
  var E = !1, v = !1, D = !1, L = !1, I = !1, Q;
54
54
  Q = Symbol.for("react.module.reference");
55
55
  function Te(a) {
56
- return !!(typeof a == "string" || typeof a == "function" || a === l || a === u || I || a === r || a === g || a === o || L || a === n || E || v || D || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === t || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === p || // This needs to include all possible module reference object
56
+ return !!(typeof a == "string" || typeof a == "function" || a === n || a === u || I || a === r || a === g || a === o || L || a === l || E || v || D || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === t || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === p || // This needs to include all possible module reference object
57
57
  // types supported by any Flight configuration anywhere since
58
58
  // we don't know which Flight build this will end up being used
59
59
  // with.
@@ -77,7 +77,7 @@ function ut() {
77
77
  if (typeof a == "string")
78
78
  return a;
79
79
  switch (a) {
80
- case l:
80
+ case n:
81
81
  return "Fragment";
82
82
  case m:
83
83
  return "Portal";
@@ -330,7 +330,7 @@ function ut() {
330
330
  }
331
331
  }
332
332
  var xi = Array.isArray;
333
- function Ke(a) {
333
+ function Be(a) {
334
334
  return xi(a);
335
335
  }
336
336
  function Oi(a) {
@@ -447,7 +447,7 @@ function ut() {
447
447
  return Vi(a, k, W, G, h, Ta.current, N);
448
448
  }
449
449
  }
450
- var je = c.ReactCurrentOwner, ha = c.ReactDebugCurrentFrame;
450
+ var Ke = c.ReactCurrentOwner, ha = c.ReactDebugCurrentFrame;
451
451
  function fe(a) {
452
452
  if (a) {
453
453
  var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
@@ -455,15 +455,15 @@ function ut() {
455
455
  } else
456
456
  ha.setExtraStackFrame(null);
457
457
  }
458
- var Qe;
459
- Qe = !1;
460
- function qe(a) {
458
+ var je;
459
+ je = !1;
460
+ function Qe(a) {
461
461
  return typeof a == "object" && a !== null && a.$$typeof === i;
462
462
  }
463
463
  function ka() {
464
464
  {
465
- if (je.current) {
466
- var a = w(je.current.type);
465
+ if (Ke.current) {
466
+ var a = w(Ke.current.type);
467
467
  if (a)
468
468
  return `
469
469
 
@@ -498,25 +498,25 @@ Check the top-level render call using <` + C + ">.");
498
498
  return;
499
499
  Sa[C] = !0;
500
500
  var h = "";
501
- a && a._owner && a._owner !== je.current && (h = " It was passed a child from " + w(a._owner.type) + "."), fe(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, h), fe(null);
501
+ a && a._owner && a._owner !== Ke.current && (h = " It was passed a child from " + w(a._owner.type) + "."), fe(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, h), fe(null);
502
502
  }
503
503
  }
504
504
  function Da(a, U) {
505
505
  {
506
506
  if (typeof a != "object")
507
507
  return;
508
- if (Ke(a))
508
+ if (Be(a))
509
509
  for (var C = 0; C < a.length; C++) {
510
510
  var h = a[C];
511
- qe(h) && Na(h, U);
511
+ Qe(h) && Na(h, U);
512
512
  }
513
- else if (qe(a))
513
+ else if (Qe(a))
514
514
  a._store && (a._store.validated = !0);
515
515
  else if (a) {
516
516
  var G = b(a);
517
517
  if (typeof G == "function" && G !== a.entries)
518
518
  for (var M = G.call(a), N; !(N = M.next()).done; )
519
- qe(N.value) && Na(N.value, U);
519
+ Qe(N.value) && Na(N.value, U);
520
520
  }
521
521
  }
522
522
  }
@@ -537,8 +537,8 @@ Check the top-level render call using <` + C + ">.");
537
537
  if (C) {
538
538
  var h = w(U);
539
539
  Pi(C, a.props, "prop", h, a);
540
- } else if (U.PropTypes !== void 0 && !Qe) {
541
- Qe = !0;
540
+ } else if (U.PropTypes !== void 0 && !je) {
541
+ je = !0;
542
542
  var G = w(U);
543
543
  T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
544
544
  }
@@ -567,7 +567,7 @@ Check the top-level render call using <` + C + ">.");
567
567
  var W = Ii();
568
568
  W ? k += W : k += ka();
569
569
  var R;
570
- a === null ? R = "null" : Ke(a) ? R = "array" : a !== void 0 && a.$$typeof === i ? (R = "<" + (w(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, k);
570
+ a === null ? R = "null" : Be(a) ? R = "array" : a !== void 0 && a.$$typeof === i ? (R = "<" + (w(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, k);
571
571
  }
572
572
  var P = Ai(a, U, C, G, M);
573
573
  if (P == null)
@@ -576,7 +576,7 @@ Check the top-level render call using <` + C + ">.");
576
576
  var Z = U.children;
577
577
  if (Z !== void 0)
578
578
  if (h)
579
- if (Ke(Z)) {
579
+ if (Be(Z)) {
580
580
  for (var Ue = 0; Ue < Z.length; Ue++)
581
581
  Da(Z[Ue], a);
582
582
  Object.freeze && Object.freeze(Z);
@@ -588,18 +588,18 @@ Check the top-level render call using <` + C + ">.");
588
588
  if (ve.call(U, "key")) {
589
589
  var ue = w(a), J = Object.keys(U).filter(function(et) {
590
590
  return et !== "key";
591
- }), Ye = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
592
- if (!Ea[ue + Ye]) {
591
+ }), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
592
+ if (!Ea[ue + qe]) {
593
593
  var $i = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
594
594
  T(`A props object containing a "key" prop is being spread into JSX:
595
595
  let props = %s;
596
596
  <%s {...props} />
597
597
  React keys must be passed directly to JSX without using spread:
598
598
  let props = %s;
599
- <%s key={someKey} {...props} />`, Ye, ue, $i, ue), Ea[ue + Ye] = !0;
599
+ <%s key={someKey} {...props} />`, qe, ue, $i, ue), Ea[ue + qe] = !0;
600
600
  }
601
601
  }
602
- return a === l ? ji(P) : Ki(P), P;
602
+ return a === n ? ji(P) : Ki(P), P;
603
603
  }
604
604
  }
605
605
  function Qi(a, U, C) {
@@ -609,7 +609,7 @@ React keys must be passed directly to JSX without using spread:
609
609
  return La(a, U, C, !1);
610
610
  }
611
611
  var Yi = qi, Xi = Qi;
612
- ke.Fragment = l, ke.jsx = Yi, ke.jsxs = Xi;
612
+ ke.Fragment = n, ke.jsx = Yi, ke.jsxs = Xi;
613
613
  })()), ke;
614
614
  }
615
615
  var Oa;
@@ -627,7 +627,7 @@ function gt({
627
627
  baseURL: e,
628
628
  getToken: i,
629
629
  timeoutMs: m = 15e3,
630
- lng: l = "tw",
630
+ lng: n = "tw",
631
631
  store: r,
632
632
  onError: u
633
633
  } = {}) {
@@ -642,7 +642,7 @@ function gt({
642
642
  g && (_.headers.Authorization = `Bearer ${g}`);
643
643
  }
644
644
  const p = r?.getState()?.isWalletCurrency || r?.getState()?.currency?.currentCurrency || "TWD";
645
- return _.headers.Currency = p, _.headers["currency-code"] = p, _.headers.lang = l, _;
645
+ return _.headers.Currency = p, _.headers["currency-code"] = p, _.headers.lang = n, _;
646
646
  }), f.interceptors.response.use(
647
647
  (_) => _.data,
648
648
  (_) => u ? u(_, { instance: f }) : Promise.reject(_)
@@ -656,10 +656,10 @@ const ui = mi(null), ul = () => {
656
656
  );
657
657
  return e;
658
658
  }, pl = () => {
659
- const e = (l, r) => !l && !r, i = (l) => l.startsWith("pc.");
659
+ const e = (n, r) => !n && !r, i = (n) => n.startsWith("pc.");
660
660
  return {
661
661
  executeLogout: ({
662
- isCallBackInvalid: l = !1,
662
+ isCallBackInvalid: n = !1,
663
663
  hostname: r = "",
664
664
  shouldRedirect: u,
665
665
  onShowError: f,
@@ -669,22 +669,22 @@ const ui = mi(null), ul = () => {
669
669
  onGoogleLogout: o
670
670
  }) => {
671
671
  const t = i(r);
672
- e(l, t) && f?.(), _?.(), p?.(), u && g?.("/"), o?.();
672
+ e(n, t) && f?.(), _?.(), p?.(), u && g?.("/"), o?.();
673
673
  },
674
674
  shouldShowErrorNotice: e,
675
675
  isMachineDomain: i
676
676
  };
677
- }, pi = (e = [], i) => Ve(e, { gameTypeName: i })?.gameTypeUid, gi = (e = [], i) => Ve(e, { platform: i })?.platformUid, di = (e = [], i) => Ve(e, { SubPlatformEnum: i }), ci = (e = [], i, m) => O(e) ? [] : e.filter((l) => m ? String(l?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(l.platformUid) === String(i)), dt = (e = []) => O(e) ? {} : e.reduce((i, m) => {
678
- const l = m?.game_subtype || "UNKNOWN";
679
- return i[l] || (i[l] = []), i[l].push(m), i;
677
+ }, pi = (e = [], i) => ma(e, { gameTypeName: i })?.gameTypeUid, gi = (e = [], i) => ma(e, { platform: i })?.platformUid, di = (e = [], i) => ma(e, { SubPlatformEnum: i }), ci = (e = [], i, m) => O(e) ? [] : e.filter((n) => m ? String(n?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(n.platformUid) === String(i)), dt = (e = []) => O(e) ? {} : e.reduce((i, m) => {
678
+ const n = m?.game_subtype || "UNKNOWN";
679
+ return i[n] || (i[n] = []), i[n].push(m), i;
680
680
  }, {}), ct = ({
681
681
  gameTypeName: e,
682
682
  platforms: i,
683
683
  gameList: m,
684
- allGameTypes: l,
684
+ allGameTypes: n,
685
685
  allPlatforms: r
686
686
  }) => {
687
- const u = pi(l, e);
687
+ const u = pi(n, e);
688
688
  return u ? i.reduce((f, _) => {
689
689
  const p = gi(r, _), g = di(r, _), o = m[u] || [], t = ci(
690
690
  o,
@@ -698,29 +698,29 @@ const ui = mi(null), ul = () => {
698
698
  gamesOfType: i = [],
699
699
  allPlatforms: m = []
700
700
  }) => {
701
- const l = gi(m, e), r = di(m, e), u = ci(
701
+ const n = gi(m, e), r = di(m, e), u = ci(
702
702
  i,
703
- l,
703
+ n,
704
704
  r
705
705
  );
706
706
  return dt(u);
707
- }, ft = (e = {}) => !Ae(e) || O(e) ? [] : Ie(e), Ha = (e = []) => !ne(e) || O(e) ? [] : Be(e, "platform"), Ut = (e = []) => !ne(e) || O(e) ? [] : Be(e, "gameTypeName"), yt = (e = []) => !ne(e) || O(e) ? [] : Be(e, "game_subtype"), bt = (e = {}) => !Ae(e) || O(e) ? [] : Ie(e), Tt = (e = [], i = []) => !ne(e) || O(e) ? {} : !ne(i) || O(i) ? {} : e.reduce((m, l) => {
707
+ }, ft = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), Ha = (e = []) => !ne(e) || O(e) ? [] : Ie(e, "platform"), Ut = (e = []) => !ne(e) || O(e) ? [] : Ie(e, "gameTypeName"), yt = (e = []) => !ne(e) || O(e) ? [] : Ie(e, "game_subtype"), bt = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), Tt = (e = [], i = []) => !ne(e) || O(e) ? {} : !ne(i) || O(i) ? {} : e.reduce((m, n) => {
708
708
  const r = i.map((u) => u.game_subtype);
709
709
  return r.forEach((u) => {
710
710
  m[u] = m[u] || [];
711
- }), r.includes(l.game_subtype) && m[l.game_subtype].push(l), m;
711
+ }), r.includes(n.game_subtype) && m[n.game_subtype].push(n), m;
712
712
  }, {}), Ct = ({
713
713
  gameTypes: e = [],
714
714
  platforms: i = [],
715
715
  gameList: m = {},
716
- allGameTypes: l = [],
716
+ allGameTypes: n = [],
717
717
  allPlatforms: r = []
718
718
  }) => !ne(e) || !ne(i) ? {} : O(m) ? {} : e.reduce((u, f) => {
719
719
  const _ = ct({
720
720
  gameTypeName: f,
721
721
  platforms: i,
722
722
  gameList: m,
723
- allGameTypes: l,
723
+ allGameTypes: n,
724
724
  allPlatforms: r
725
725
  });
726
726
  return O(_) || (u[f] = _), u;
@@ -728,7 +728,7 @@ const ui = mi(null), ul = () => {
728
728
  types: e = [],
729
729
  platforms: i = [],
730
730
  allGameType: m = [],
731
- allGamePlatform: l = [],
731
+ allGamePlatform: n = [],
732
732
  allGameList: r = {}
733
733
  } = {}) => !Array.isArray(e) || !Array.isArray(i) ? {} : e.reduce((u, f) => {
734
734
  const _ = pi(m, f);
@@ -737,19 +737,19 @@ const ui = mi(null), ul = () => {
737
737
  const d = _t({
738
738
  platformName: t,
739
739
  gamesOfType: p,
740
- allPlatforms: l
740
+ allPlatforms: n
741
741
  });
742
742
  return O(d) ? o : { ...o, [t]: d };
743
743
  }, {});
744
744
  return O(g) || (u[f] = g), u;
745
- }, {}), vt = (e = {}) => !Ae(e) || O(e) ? {} : Object.values(e).reduce((m, l) => (Object.entries(l).forEach(([r, u]) => {
745
+ }, {}), vt = (e = {}) => !Ve(e) || O(e) ? {} : Object.values(e).reduce((m, n) => (Object.entries(n).forEach(([r, u]) => {
746
746
  m[r] ? m[r] = [...m[r], ...u] : m[r] = u;
747
747
  }), m), {}), ht = (e = {}) => {
748
- if (!Ae(e) || O(e)) return {};
748
+ if (!Ve(e) || O(e)) return {};
749
749
  const i = {};
750
- for (const [m, l] of Object.entries(e)) {
750
+ for (const [m, n] of Object.entries(e)) {
751
751
  i[m] = {};
752
- for (const r of l) {
752
+ for (const r of n) {
753
753
  const u = r.game_subtype;
754
754
  i[m][u] || (i[m][u] = []), i[m][u].push(r);
755
755
  }
@@ -759,7 +759,7 @@ const ui = mi(null), ul = () => {
759
759
  allGameList: e = {},
760
760
  allGamePlatform: i = [],
761
761
  allGameType: m = [],
762
- allGame_subtype: l = [],
762
+ allGame_subtype: n = [],
763
763
  allNewGameList: r = [],
764
764
  allTopGameList: u = [],
765
765
  randomlySelectedGames: f = [],
@@ -768,15 +768,15 @@ const ui = mi(null), ul = () => {
768
768
  highlightGames: g = [],
769
769
  originPlatform: o = []
770
770
  }) => {
771
- const t = ft(e), d = Ha(i), n = Ut(m), s = yt(l), y = Ha(o), b = bt(_), c = Ct({
772
- gameTypes: n,
771
+ const t = ft(e), d = Ha(i), l = Ut(m), s = yt(n), y = Ha(o), b = bt(_), c = Ct({
772
+ gameTypes: l,
773
773
  platforms: d,
774
774
  gameList: e,
775
775
  allGameTypes: m,
776
776
  allPlatforms: i
777
- }), T = Tt(t, l), S = vt(c), E = ht(S), v = lt(c).reduce(
777
+ }), T = Tt(t, n), S = vt(c), E = ht(S), v = lt(c).reduce(
778
778
  (L, [I, Q]) => {
779
- const Te = Ie(nt(Q));
779
+ const Te = Ae(nt(Q));
780
780
  return L[I] = Te, L;
781
781
  },
782
782
  {}
@@ -792,10 +792,10 @@ const ui = mi(null), ul = () => {
792
792
  byGameType: D
793
793
  },
794
794
  type: {
795
- main: n,
795
+ main: l,
796
796
  sub: s,
797
797
  originMain: m,
798
- originSub: l
798
+ originSub: n
799
799
  },
800
800
  gameList: {
801
801
  all: t,
@@ -817,7 +817,7 @@ const ui = mi(null), ul = () => {
817
817
  favorite: b
818
818
  }
819
819
  };
820
- }, dl = (e = []) => !ne(e) || O(e) ? [] : Ie(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
820
+ }, dl = (e = []) => !ne(e) || O(e) ? [] : Ae(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
821
821
  ...i,
822
822
  ...m,
823
823
  platform: m.SubPlatformEnum,
@@ -844,21 +844,21 @@ const ui = mi(null), ul = () => {
844
844
  }, me = () => {
845
845
  const { client: e } = te(), i = V(
846
846
  async (o) => {
847
- const { mac_address: t = "", app_version: d = "", anydesk_id: n = "" } = o, { data: s } = await e.post("/cash-register/login", {
847
+ const { mac_address: t = "", app_version: d = "", anydesk_id: l = "" } = o, { data: s } = await e.post("/cash-register/login", {
848
848
  mac_address: t,
849
849
  app_version: d,
850
- anydesk_id: n
850
+ anydesk_id: l
851
851
  });
852
852
  return s;
853
853
  },
854
854
  [e]
855
- ), m = V(async () => e.get("/member/getMemberInfo"), [e]), l = V(async () => await e.get("/member/getGameList"), [e]), r = V(async () => await e.get("/member/getNowCurrencyExchange"), [e]), u = V(async () => await e.get("member/getFavoriteGame"), [e]), f = V(
855
+ ), m = V(async () => e.get("/member/getMemberInfo"), [e]), n = V(async () => await e.get("/member/getGameList"), [e]), r = V(async () => await e.get("/member/getNowCurrencyExchange"), [e]), u = V(async () => await e.get("member/getFavoriteGame"), [e]), f = V(
856
856
  async (o) => {
857
- const { account: t, password: d, trans_code: n } = o;
857
+ const { account: t, password: d, trans_code: l } = o;
858
858
  return await e.post("/login", {
859
859
  memId: t,
860
860
  passwd: d,
861
- trans_code: n
861
+ trans_code: l
862
862
  });
863
863
  },
864
864
  [e]
@@ -874,7 +874,7 @@ const ui = mi(null), ul = () => {
874
874
  return {
875
875
  machineLoginApi: i,
876
876
  userInfoApi: m,
877
- userGameListApi: l,
877
+ userGameListApi: n,
878
878
  userFavoriteGameApi: u,
879
879
  userCurrencyExchangeApi: r,
880
880
  userLoginApi: f,
@@ -903,12 +903,12 @@ const ui = mi(null), ul = () => {
903
903
  },
904
904
  user: { favorite: [] }
905
905
  }, Nt = ({ enabled: e = !0 } = {}) => {
906
- const { getToken: i } = te(), { userFavoriteGameApi: m, userGameListApi: l } = me(), { data: r, isLoading: u, error: f, refetch: _ } = ie({
906
+ const { getToken: i } = te(), { userFavoriteGameApi: m, userGameListApi: n } = me(), { data: r, isLoading: u, error: f, refetch: _ } = ie({
907
907
  queryKey: ["gamesInfo"],
908
908
  queryFn: async () => {
909
909
  let p = {}, g = {};
910
910
  try {
911
- await i?.() && (g = await l(), p = await m());
911
+ await i?.() && (g = await n(), p = await m());
912
912
  } catch (o) {
913
913
  console.warn("Failed to fetch favorite games:", o);
914
914
  }
@@ -27475,17 +27475,17 @@ const ui = mi(null), ul = () => {
27475
27475
  De(() => {
27476
27476
  m && Dt(!0);
27477
27477
  }, [m]);
27478
- const l = Nt({ enabled: i });
27479
- return /* @__PURE__ */ ze.jsx(ui.Provider, { value: l, children: e });
27478
+ const n = Nt({ enabled: i });
27479
+ return /* @__PURE__ */ ze.jsx(ui.Provider, { value: n, children: e });
27480
27480
  };
27481
27481
  function cl({
27482
27482
  children: e,
27483
27483
  autoFetchGamesInfo: i = !1,
27484
27484
  useMockData: m = !1,
27485
- queryClient: l,
27485
+ queryClient: n,
27486
27486
  ...r
27487
27487
  }) {
27488
- const u = ta(() => gt(r), [r]), f = ta(
27488
+ const u = ia(() => gt(r), [r]), f = ia(
27489
27489
  () => new at({
27490
27490
  defaultOptions: {
27491
27491
  queries: {
@@ -27495,11 +27495,11 @@ function cl({
27495
27495
  }
27496
27496
  }),
27497
27497
  []
27498
- ), _ = l || f;
27498
+ ), _ = n || f;
27499
27499
  return /* @__PURE__ */ ze.jsx(it, { client: _, children: /* @__PURE__ */ ze.jsx(si.Provider, { value: { client: u, ...r }, children: /* @__PURE__ */ ze.jsx(Et, { autoFetch: i, mockData: m, children: e }) }) });
27500
27500
  }
27501
27501
  const _l = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27502
- const { userCurrencyExchangeApi: m } = me(), { getToken: l } = te(), { enabled: r, ...u } = i, _ = !!l?.() && (r ? r.every((p) => p) : !0);
27502
+ const { userCurrencyExchangeApi: m } = me(), { getToken: n } = te(), { enabled: r, ...u } = i, _ = !!n?.() && (r ? r.every((p) => p) : !0);
27503
27503
  return oi({
27504
27504
  queries: [
27505
27505
  {
@@ -27517,7 +27517,7 @@ const _l = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27517
27517
  trigger: i = [],
27518
27518
  enabled: m = !0
27519
27519
  } = {}) => {
27520
- const { getToken: l } = te(), r = l?.(), { userInfoApi: u } = me();
27520
+ const { getToken: n } = te(), r = n?.(), { userInfoApi: u } = me();
27521
27521
  return oi({
27522
27522
  queries: [
27523
27523
  {
@@ -27532,7 +27532,7 @@ const _l = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27532
27532
  const {
27533
27533
  userInfoApi: i,
27534
27534
  userFavoriteGameApi: m,
27535
- userGameListApi: l,
27535
+ userGameListApi: n,
27536
27536
  userCurrencyExchangeApi: r
27537
27537
  } = me(), u = ie({
27538
27538
  queryKey: ["getMemInfo"],
@@ -27544,7 +27544,7 @@ const _l = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27544
27544
  enabled: e && u.isSuccess
27545
27545
  }), _ = ie({
27546
27546
  queryKey: ["getUserGameList"],
27547
- queryFn: async () => l(),
27547
+ queryFn: async () => n(),
27548
27548
  enabled: e && u.isSuccess && f.isSuccess
27549
27549
  }), p = ie({
27550
27550
  queryKey: ["getUserCurrencyExchange"],
@@ -27558,7 +27558,7 @@ const _l = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27558
27558
  p
27559
27559
  ];
27560
27560
  };
27561
- var Xe = {}, z = {}, $e = {}, wa;
27561
+ var Ye = {}, z = {}, Xe = {}, wa;
27562
27562
  function j() {
27563
27563
  return wa || (wa = 1, (function(e) {
27564
27564
  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;
@@ -27571,10 +27571,10 @@ function j() {
27571
27571
  timeout: 6e4,
27572
27572
  interval: 25e3
27573
27573
  };
27574
- var l;
27574
+ var n;
27575
27575
  (function(u) {
27576
27576
  u[u.UNINSTANTIATED = -1] = "UNINSTANTIATED", u[u.CONNECTING = 0] = "CONNECTING", u[u.OPEN = 1] = "OPEN", u[u.CLOSING = 2] = "CLOSING", u[u.CLOSED = 3] = "CLOSED";
27577
- })(l || (e.ReadyState = l = {}));
27577
+ })(n || (e.ReadyState = n = {}));
27578
27578
  var r = function() {
27579
27579
  try {
27580
27580
  return "EventSource" in globalThis;
@@ -27583,9 +27583,9 @@ function j() {
27583
27583
  }
27584
27584
  };
27585
27585
  e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && r();
27586
- })($e)), $e;
27586
+ })(Xe)), Xe;
27587
27587
  }
27588
- var Se = {}, ea = {}, Fa;
27588
+ var Se = {}, $e = {}, Fa;
27589
27589
  function oa() {
27590
27590
  return Fa || (Fa = 1, (function(e) {
27591
27591
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
@@ -27593,11 +27593,11 @@ function oa() {
27593
27593
  if (m && e.sharedWebSockets.hasOwnProperty(m))
27594
27594
  delete e.sharedWebSockets[m];
27595
27595
  else
27596
- for (var l in e.sharedWebSockets)
27597
- e.sharedWebSockets.hasOwnProperty(l) && delete e.sharedWebSockets[l];
27596
+ for (var n in e.sharedWebSockets)
27597
+ e.sharedWebSockets.hasOwnProperty(n) && delete e.sharedWebSockets[n];
27598
27598
  };
27599
27599
  e.resetWebSockets = i;
27600
- })(ea)), ea;
27600
+ })($e)), $e;
27601
27601
  }
27602
27602
  var pe = {}, $ = {}, Wa;
27603
27603
  function sa() {
@@ -27623,52 +27623,52 @@ function sa() {
27623
27623
  return "".concat(r).concat(_ ? "&" : "?").concat(p);
27624
27624
  };
27625
27625
  $.appendQueryParams = m;
27626
- var l = function(r, u) {
27626
+ var n = function(r, u) {
27627
27627
  u === void 0 && (u = e.SOCKET_IO_PING_INTERVAL);
27628
27628
  var f = function() {
27629
27629
  return r(e.SOCKET_IO_PING_CODE);
27630
27630
  };
27631
27631
  return window.setInterval(f, u);
27632
27632
  };
27633
- return $.setUpSocketIOPing = l, $;
27633
+ return $.setUpSocketIOPing = n, $;
27634
27634
  }
27635
27635
  var We = {}, Ja;
27636
27636
  function _i() {
27637
27637
  if (Ja) return We;
27638
27638
  Ja = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.heartbeat = m;
27639
27639
  var e = j();
27640
- function i(l) {
27641
- return Array.isArray(l) ? l.reduce(function(r, u) {
27640
+ function i(n) {
27641
+ return Array.isArray(n) ? n.reduce(function(r, u) {
27642
27642
  return r.current > u.current ? r : u;
27643
- }).current : l.current;
27643
+ }).current : n.current;
27644
27644
  }
27645
- function m(l, r, u) {
27646
- var f = u || {}, _ = f.interval, p = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, g = f.timeout, o = g === void 0 ? e.DEFAULT_HEARTBEAT.timeout : g, t = f.message, d = t === void 0 ? e.DEFAULT_HEARTBEAT.message : t, n = Math.max(100, p / 10), s = Date.now(), y = setInterval(function() {
27645
+ function m(n, r, u) {
27646
+ var f = u || {}, _ = f.interval, p = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, g = f.timeout, o = g === void 0 ? e.DEFAULT_HEARTBEAT.timeout : g, t = f.message, d = t === void 0 ? e.DEFAULT_HEARTBEAT.message : t, l = Math.max(100, p / 10), s = Date.now(), y = setInterval(function() {
27647
27647
  var b = Date.now(), c = i(r);
27648
27648
  if (c + o <= b)
27649
- console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - c, "ms ago, last ping sent ").concat(b - s, "ms ago")), l.close();
27649
+ console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - c, "ms ago, last ping sent ").concat(b - s, "ms ago")), n.close();
27650
27650
  else if (c + p <= b && s + p <= b)
27651
27651
  try {
27652
- typeof d == "function" ? l.send(d()) : l.send(d), s = b;
27652
+ typeof d == "function" ? n.send(d()) : n.send(d), s = b;
27653
27653
  } catch (T) {
27654
- console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), l.close();
27654
+ console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), n.close();
27655
27655
  }
27656
- }, n);
27657
- return l.addEventListener("close", function() {
27656
+ }, l);
27657
+ return n.addEventListener("close", function() {
27658
27658
  clearInterval(y);
27659
27659
  }), function() {
27660
27660
  };
27661
27661
  }
27662
27662
  return We;
27663
27663
  }
27664
- var Ne = {}, aa = {}, za;
27664
+ var Ne = {}, ea = {}, za;
27665
27665
  function ua() {
27666
27666
  return za || (za = 1, (function(e) {
27667
27667
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
27668
- var i = {}, m = [], l = function(p) {
27668
+ var i = {}, m = [], n = function(p) {
27669
27669
  return (0, e.hasSubscribers)(p) ? Array.from(i[p]) : m;
27670
27670
  };
27671
- e.getSubscribers = l;
27671
+ e.getSubscribers = n;
27672
27672
  var r = function(p) {
27673
27673
  var g;
27674
27674
  return ((g = i[p]) === null || g === void 0 ? void 0 : g.size) > 0;
@@ -27690,18 +27690,18 @@ function ua() {
27690
27690
  i.hasOwnProperty(g) && delete i[g];
27691
27691
  };
27692
27692
  e.resetSubscribers = _;
27693
- })(aa)), aa;
27693
+ })(ea)), ea;
27694
27694
  }
27695
27695
  var Za;
27696
27696
  function pa() {
27697
27697
  if (Za) return Ne;
27698
- Za = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.assertIsWebSocket = m, Ne.resetGlobalState = l;
27698
+ Za = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.assertIsWebSocket = m, Ne.resetGlobalState = n;
27699
27699
  var e = oa(), i = ua();
27700
27700
  function m(r, u) {
27701
27701
  if (!u && !(r instanceof WebSocket))
27702
27702
  throw new Error("");
27703
27703
  }
27704
- function l(r) {
27704
+ function n(r) {
27705
27705
  (0, i.resetSubscribers)(r), (0, e.resetWebSockets)(r);
27706
27706
  }
27707
27707
  return Ne;
@@ -27712,7 +27712,7 @@ function Lt() {
27712
27712
  Va = 1;
27713
27713
  var e = pe && pe.__assign || function() {
27714
27714
  return e = Object.assign || function(o) {
27715
- for (var t, d = 1, n = arguments.length; d < n; d++) {
27715
+ for (var t, d = 1, l = arguments.length; d < l; d++) {
27716
27716
  t = arguments[d];
27717
27717
  for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && (o[s] = t[s]);
27718
27718
  }
@@ -27720,58 +27720,58 @@ function Lt() {
27720
27720
  }, e.apply(this, arguments);
27721
27721
  };
27722
27722
  Object.defineProperty(pe, "__esModule", { value: !0 }), pe.attachListeners = void 0;
27723
- var i = sa(), m = _i(), l = j(), r = pa(), u = function(o, t, d, n) {
27723
+ var i = sa(), m = _i(), n = j(), r = pa(), u = function(o, t, d, l) {
27724
27724
  o.onmessage = function(s) {
27725
27725
  var y;
27726
- t.current.onMessage && t.current.onMessage(s), typeof n?.current == "number" && (n.current = Date.now()), !(typeof t.current.filter == "function" && t.current.filter(s) !== !0) && (t.current.heartbeat && typeof t.current.heartbeat != "boolean" && ((y = t.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === s.data || d(s));
27726
+ t.current.onMessage && t.current.onMessage(s), typeof l?.current == "number" && (l.current = Date.now()), !(typeof t.current.filter == "function" && t.current.filter(s) !== !0) && (t.current.heartbeat && typeof t.current.heartbeat != "boolean" && ((y = t.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === s.data || d(s));
27727
27727
  };
27728
- }, f = function(o, t, d, n, s) {
27728
+ }, f = function(o, t, d, l, s) {
27729
27729
  o.onopen = function(y) {
27730
- if (t.current.onOpen && t.current.onOpen(y), n.current = 0, d(l.ReadyState.OPEN), t.current.heartbeat && o instanceof WebSocket) {
27730
+ if (t.current.onOpen && t.current.onOpen(y), l.current = 0, d(n.ReadyState.OPEN), t.current.heartbeat && o instanceof WebSocket) {
27731
27731
  var b = typeof t.current.heartbeat == "boolean" ? void 0 : t.current.heartbeat;
27732
27732
  s.current = Date.now(), (0, m.heartbeat)(o, s, b);
27733
27733
  }
27734
27734
  };
27735
- }, _ = function(o, t, d, n, s) {
27736
- if (l.isEventSourceSupported && o instanceof EventSource)
27735
+ }, _ = function(o, t, d, l, s) {
27736
+ if (n.isEventSourceSupported && o instanceof EventSource)
27737
27737
  return function() {
27738
27738
  };
27739
27739
  (0, r.assertIsWebSocket)(o, t.current.skipAssert);
27740
27740
  var y;
27741
27741
  return o.onclose = function(b) {
27742
27742
  var c;
27743
- if (t.current.onClose && t.current.onClose(b), d(l.ReadyState.CLOSED), t.current.shouldReconnect && t.current.shouldReconnect(b)) {
27744
- var T = (c = t.current.reconnectAttempts) !== null && c !== void 0 ? c : l.DEFAULT_RECONNECT_LIMIT;
27743
+ if (t.current.onClose && t.current.onClose(b), d(n.ReadyState.CLOSED), t.current.shouldReconnect && t.current.shouldReconnect(b)) {
27744
+ var T = (c = t.current.reconnectAttempts) !== null && c !== void 0 ? c : n.DEFAULT_RECONNECT_LIMIT;
27745
27745
  if (s.current < T) {
27746
27746
  var S = typeof t.current.reconnectInterval == "function" ? t.current.reconnectInterval(s.current) : t.current.reconnectInterval;
27747
27747
  y = window.setTimeout(function() {
27748
- s.current++, n();
27749
- }, S ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
27748
+ s.current++, l();
27749
+ }, S ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
27750
27750
  } else
27751
27751
  t.current.onReconnectStop && t.current.onReconnectStop(T), console.warn("Max reconnect attempts of ".concat(T, " exceeded"));
27752
27752
  }
27753
27753
  }, function() {
27754
27754
  return y && window.clearTimeout(y);
27755
27755
  };
27756
- }, p = function(o, t, d, n, s) {
27756
+ }, p = function(o, t, d, l, s) {
27757
27757
  var y;
27758
27758
  return o.onerror = function(b) {
27759
27759
  var c;
27760
- if (t.current.onError && t.current.onError(b), l.isEventSourceSupported && o instanceof EventSource && (t.current.onClose && t.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })), d(l.ReadyState.CLOSED), o.close()), t.current.retryOnError)
27761
- if (s.current < ((c = t.current.reconnectAttempts) !== null && c !== void 0 ? c : l.DEFAULT_RECONNECT_LIMIT)) {
27760
+ if (t.current.onError && t.current.onError(b), n.isEventSourceSupported && o instanceof EventSource && (t.current.onClose && t.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })), d(n.ReadyState.CLOSED), o.close()), t.current.retryOnError)
27761
+ if (s.current < ((c = t.current.reconnectAttempts) !== null && c !== void 0 ? c : n.DEFAULT_RECONNECT_LIMIT)) {
27762
27762
  var T = typeof t.current.reconnectInterval == "function" ? t.current.reconnectInterval(s.current) : t.current.reconnectInterval;
27763
27763
  y = window.setTimeout(function() {
27764
- s.current++, n();
27765
- }, T ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
27764
+ s.current++, l();
27765
+ }, T ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
27766
27766
  } else
27767
27767
  t.current.onReconnectStop && t.current.onReconnectStop(t.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(t.current.reconnectAttempts, " exceeded"));
27768
27768
  }, function() {
27769
27769
  return y && window.clearTimeout(y);
27770
27770
  };
27771
- }, g = function(o, t, d, n, s, y, b) {
27771
+ }, g = function(o, t, d, l, s, y, b) {
27772
27772
  var c = t.setLastMessage, T = t.setReadyState, S, E, v;
27773
- return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), u(o, d, c, y), f(o, d, T, s, y), E = _(o, d, T, n, s), v = p(o, d, T, n, s), function() {
27774
- T(l.ReadyState.CLOSING), E(), v(), o.close(), S && clearInterval(S);
27773
+ return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), u(o, d, c, y), f(o, d, T, s, y), E = _(o, d, T, l, s), v = p(o, d, T, l, s), function() {
27774
+ T(n.ReadyState.CLOSING), E(), v(), o.close(), S && clearInterval(S);
27775
27775
  };
27776
27776
  };
27777
27777
  return pe.attachListeners = g, pe;
@@ -27782,37 +27782,37 @@ function Gt() {
27782
27782
  Aa = 1;
27783
27783
  var e = ge && ge.__assign || function() {
27784
27784
  return e = Object.assign || function(t) {
27785
- for (var d, n = 1, s = arguments.length; n < s; n++) {
27786
- d = arguments[n];
27785
+ for (var d, l = 1, s = arguments.length; l < s; l++) {
27786
+ d = arguments[l];
27787
27787
  for (var y in d) Object.prototype.hasOwnProperty.call(d, y) && (t[y] = d[y]);
27788
27788
  }
27789
27789
  return t;
27790
27790
  }, e.apply(this, arguments);
27791
27791
  };
27792
27792
  Object.defineProperty(ge, "__esModule", { value: !0 }), ge.attachSharedListeners = void 0;
27793
- var i = oa(), m = j(), l = ua(), r = sa(), u = _i(), f = function(t, d, n) {
27793
+ var i = oa(), m = j(), n = ua(), r = sa(), u = _i(), f = function(t, d, l) {
27794
27794
  t.onmessage = function(s) {
27795
- (0, l.getSubscribers)(d).forEach(function(y) {
27795
+ (0, n.getSubscribers)(d).forEach(function(y) {
27796
27796
  var b;
27797
- y.optionsRef.current.onMessage && y.optionsRef.current.onMessage(s), typeof ((b = y?.lastMessageTime) === null || b === void 0 ? void 0 : b.current) == "number" && (y.lastMessageTime.current = Date.now()), !(typeof y.optionsRef.current.filter == "function" && y.optionsRef.current.filter(s) !== !0) && (n && typeof n != "boolean" && n?.returnMessage === s.data || y.setLastMessage(s));
27797
+ y.optionsRef.current.onMessage && y.optionsRef.current.onMessage(s), typeof ((b = y?.lastMessageTime) === null || b === void 0 ? void 0 : b.current) == "number" && (y.lastMessageTime.current = Date.now()), !(typeof y.optionsRef.current.filter == "function" && y.optionsRef.current.filter(s) !== !0) && (l && typeof l != "boolean" && l?.returnMessage === s.data || y.setLastMessage(s));
27798
27798
  });
27799
27799
  };
27800
- }, _ = function(t, d, n) {
27800
+ }, _ = function(t, d, l) {
27801
27801
  t.onopen = function(s) {
27802
- var y = (0, l.getSubscribers)(d);
27802
+ var y = (0, n.getSubscribers)(d);
27803
27803
  y.forEach(function(b) {
27804
- b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(s), b.setReadyState(m.ReadyState.OPEN), n && t instanceof WebSocket && (b.lastMessageTime.current = Date.now());
27805
- }), n && t instanceof WebSocket && (0, u.heartbeat)(t, y.map(function(b) {
27804
+ b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(s), b.setReadyState(m.ReadyState.OPEN), l && t instanceof WebSocket && (b.lastMessageTime.current = Date.now());
27805
+ }), l && t instanceof WebSocket && (0, u.heartbeat)(t, y.map(function(b) {
27806
27806
  return b.lastMessageTime;
27807
- }), typeof n == "boolean" ? void 0 : n);
27807
+ }), typeof l == "boolean" ? void 0 : l);
27808
27808
  };
27809
27809
  }, p = function(t, d) {
27810
- t instanceof WebSocket && (t.onclose = function(n) {
27811
- (0, l.getSubscribers)(d).forEach(function(s) {
27812
- s.optionsRef.current.onClose && s.optionsRef.current.onClose(n), s.setReadyState(m.ReadyState.CLOSED);
27813
- }), delete i.sharedWebSockets[d], (0, l.getSubscribers)(d).forEach(function(s) {
27810
+ t instanceof WebSocket && (t.onclose = function(l) {
27811
+ (0, n.getSubscribers)(d).forEach(function(s) {
27812
+ s.optionsRef.current.onClose && s.optionsRef.current.onClose(l), s.setReadyState(m.ReadyState.CLOSED);
27813
+ }), delete i.sharedWebSockets[d], (0, n.getSubscribers)(d).forEach(function(s) {
27814
27814
  var y;
27815
- if (s.optionsRef.current.shouldReconnect && s.optionsRef.current.shouldReconnect(n)) {
27815
+ if (s.optionsRef.current.shouldReconnect && s.optionsRef.current.shouldReconnect(l)) {
27816
27816
  var b = (y = s.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : m.DEFAULT_RECONNECT_LIMIT;
27817
27817
  if (s.reconnectCount.current < b) {
27818
27818
  var c = typeof s.optionsRef.current.reconnectInterval == "function" ? s.optionsRef.current.reconnectInterval(s.reconnectCount.current) : s.optionsRef.current.reconnectInterval;
@@ -27825,14 +27825,14 @@ function Gt() {
27825
27825
  });
27826
27826
  });
27827
27827
  }, g = function(t, d) {
27828
- t.onerror = function(n) {
27829
- (0, l.getSubscribers)(d).forEach(function(s) {
27830
- s.optionsRef.current.onError && s.optionsRef.current.onError(n), m.isEventSourceSupported && t instanceof EventSource && (s.optionsRef.current.onClose && s.optionsRef.current.onClose(e(e({}, n), { code: 1006, reason: "An error occurred with the EventSource: ".concat(n), wasClean: !1 })), s.setReadyState(m.ReadyState.CLOSED));
27828
+ t.onerror = function(l) {
27829
+ (0, n.getSubscribers)(d).forEach(function(s) {
27830
+ s.optionsRef.current.onError && s.optionsRef.current.onError(l), m.isEventSourceSupported && t instanceof EventSource && (s.optionsRef.current.onClose && s.optionsRef.current.onClose(e(e({}, l), { code: 1006, reason: "An error occurred with the EventSource: ".concat(l), wasClean: !1 })), s.setReadyState(m.ReadyState.CLOSED));
27831
27831
  }), m.isEventSourceSupported && t instanceof EventSource && t.close();
27832
27832
  };
27833
- }, o = function(t, d, n, s) {
27833
+ }, o = function(t, d, l, s) {
27834
27834
  var y;
27835
- return n.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(s)), f(t, d, n.current.heartbeat), p(t, d), _(t, d, n.current.heartbeat), g(t, d), function() {
27835
+ return l.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(s)), f(t, d, l.current.heartbeat), p(t, d), _(t, d, l.current.heartbeat), g(t, d), function() {
27836
27836
  y && clearInterval(y);
27837
27837
  };
27838
27838
  };
@@ -27842,30 +27842,30 @@ var Ia;
27842
27842
  function Mt() {
27843
27843
  if (Ia) return Se;
27844
27844
  Ia = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.createOrJoinSocket = void 0;
27845
- var e = oa(), i = j(), m = Lt(), l = Gt(), r = ua(), u = function(_, p, g, o, t) {
27845
+ var e = oa(), i = j(), m = Lt(), n = Gt(), r = ua(), u = function(_, p, g, o, t) {
27846
27846
  return function() {
27847
27847
  if ((0, r.removeSubscriber)(_, p), !(0, r.hasSubscribers)(_)) {
27848
27848
  try {
27849
27849
  var d = e.sharedWebSockets[_];
27850
- d instanceof WebSocket && (d.onclose = function(n) {
27851
- g.current.onClose && g.current.onClose(n), o(i.ReadyState.CLOSED);
27850
+ d instanceof WebSocket && (d.onclose = function(l) {
27851
+ g.current.onClose && g.current.onClose(l), o(i.ReadyState.CLOSED);
27852
27852
  }), d.close();
27853
27853
  } catch {
27854
27854
  }
27855
27855
  t && t(), delete e.sharedWebSockets[_];
27856
27856
  }
27857
27857
  };
27858
- }, f = function(_, p, g, o, t, d, n, s, y) {
27858
+ }, f = function(_, p, g, o, t, d, l, s, y) {
27859
27859
  if (!i.isEventSourceSupported && o.current.eventSourceOptions)
27860
27860
  throw i.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
27861
27861
  if (o.current.share) {
27862
27862
  var b = null;
27863
- e.sharedWebSockets[p] === void 0 ? (e.sharedWebSockets[p] = o.current.eventSourceOptions ? new EventSource(p, o.current.eventSourceOptions) : new WebSocket(p, o.current.protocols), _.current = e.sharedWebSockets[p], g(i.ReadyState.CONNECTING), b = (0, l.attachSharedListeners)(e.sharedWebSockets[p], p, o, y)) : (_.current = e.sharedWebSockets[p], g(e.sharedWebSockets[p].readyState));
27863
+ e.sharedWebSockets[p] === void 0 ? (e.sharedWebSockets[p] = o.current.eventSourceOptions ? new EventSource(p, o.current.eventSourceOptions) : new WebSocket(p, o.current.protocols), _.current = e.sharedWebSockets[p], g(i.ReadyState.CONNECTING), b = (0, n.attachSharedListeners)(e.sharedWebSockets[p], p, o, y)) : (_.current = e.sharedWebSockets[p], g(e.sharedWebSockets[p].readyState));
27864
27864
  var c = {
27865
27865
  setLastMessage: t,
27866
27866
  setReadyState: g,
27867
27867
  optionsRef: o,
27868
- reconnectCount: n,
27868
+ reconnectCount: l,
27869
27869
  lastMessageTime: s,
27870
27870
  reconnect: d
27871
27871
  };
@@ -27876,7 +27876,7 @@ function Mt() {
27876
27876
  return (0, m.attachListeners)(_.current, {
27877
27877
  setLastMessage: t,
27878
27878
  setReadyState: g
27879
- }, o, d.current, n, s, y);
27879
+ }, o, d.current, l, s, y);
27880
27880
  }
27881
27881
  };
27882
27882
  return Se.createOrJoinSocket = f, Se;
@@ -27885,12 +27885,12 @@ var ee = {}, Ba;
27885
27885
  function Rt() {
27886
27886
  return Ba || (Ba = 1, (function(e) {
27887
27887
  var i = ee && ee.__awaiter || function(p, g, o, t) {
27888
- function d(n) {
27889
- return n instanceof o ? n : new o(function(s) {
27890
- s(n);
27888
+ function d(l) {
27889
+ return l instanceof o ? l : new o(function(s) {
27890
+ s(l);
27891
27891
  });
27892
27892
  }
27893
- return new (o || (o = Promise))(function(n, s) {
27893
+ return new (o || (o = Promise))(function(l, s) {
27894
27894
  function y(T) {
27895
27895
  try {
27896
27896
  c(t.next(T));
@@ -27906,15 +27906,15 @@ function Rt() {
27906
27906
  }
27907
27907
  }
27908
27908
  function c(T) {
27909
- T.done ? n(T.value) : d(T.value).then(y, b);
27909
+ T.done ? l(T.value) : d(T.value).then(y, b);
27910
27910
  }
27911
27911
  c((t = t.apply(p, g || [])).next());
27912
27912
  });
27913
27913
  }, m = ee && ee.__generator || function(p, g) {
27914
27914
  var o = { label: 0, sent: function() {
27915
- if (n[0] & 1) throw n[1];
27916
- return n[1];
27917
- }, trys: [], ops: [] }, t, d, n, s = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
27915
+ if (l[0] & 1) throw l[1];
27916
+ return l[1];
27917
+ }, trys: [], ops: [] }, t, d, l, s = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
27918
27918
  return s.next = y(0), s.throw = y(1), s.return = y(2), typeof Symbol == "function" && (s[Symbol.iterator] = function() {
27919
27919
  return this;
27920
27920
  }), s;
@@ -27926,11 +27926,11 @@ function Rt() {
27926
27926
  function b(c) {
27927
27927
  if (t) throw new TypeError("Generator is already executing.");
27928
27928
  for (; s && (s = 0, c[0] && (o = 0)), o; ) try {
27929
- if (t = 1, d && (n = c[0] & 2 ? d.return : c[0] ? d.throw || ((n = d.return) && n.call(d), 0) : d.next) && !(n = n.call(d, c[1])).done) return n;
27930
- switch (d = 0, n && (c = [c[0] & 2, n.value]), c[0]) {
27929
+ if (t = 1, d && (l = c[0] & 2 ? d.return : c[0] ? d.throw || ((l = d.return) && l.call(d), 0) : d.next) && !(l = l.call(d, c[1])).done) return l;
27930
+ switch (d = 0, l && (c = [c[0] & 2, l.value]), c[0]) {
27931
27931
  case 0:
27932
27932
  case 1:
27933
- n = c;
27933
+ l = c;
27934
27934
  break;
27935
27935
  case 4:
27936
27936
  return o.label++, { value: c[1], done: !1 };
@@ -27941,38 +27941,38 @@ function Rt() {
27941
27941
  c = o.ops.pop(), o.trys.pop();
27942
27942
  continue;
27943
27943
  default:
27944
- if (n = o.trys, !(n = n.length > 0 && n[n.length - 1]) && (c[0] === 6 || c[0] === 2)) {
27944
+ if (l = o.trys, !(l = l.length > 0 && l[l.length - 1]) && (c[0] === 6 || c[0] === 2)) {
27945
27945
  o = 0;
27946
27946
  continue;
27947
27947
  }
27948
- if (c[0] === 3 && (!n || c[1] > n[0] && c[1] < n[3])) {
27948
+ if (c[0] === 3 && (!l || c[1] > l[0] && c[1] < l[3])) {
27949
27949
  o.label = c[1];
27950
27950
  break;
27951
27951
  }
27952
- if (c[0] === 6 && o.label < n[1]) {
27953
- o.label = n[1], n = c;
27952
+ if (c[0] === 6 && o.label < l[1]) {
27953
+ o.label = l[1], l = c;
27954
27954
  break;
27955
27955
  }
27956
- if (n && o.label < n[2]) {
27957
- o.label = n[2], o.ops.push(c);
27956
+ if (l && o.label < l[2]) {
27957
+ o.label = l[2], o.ops.push(c);
27958
27958
  break;
27959
27959
  }
27960
- n[2] && o.ops.pop(), o.trys.pop();
27960
+ l[2] && o.ops.pop(), o.trys.pop();
27961
27961
  continue;
27962
27962
  }
27963
27963
  c = g.call(p, o);
27964
27964
  } catch (T) {
27965
27965
  c = [6, T], d = 0;
27966
27966
  } finally {
27967
- t = n = 0;
27967
+ t = l = 0;
27968
27968
  }
27969
27969
  if (c[0] & 5) throw c[1];
27970
27970
  return { value: c[0] ? c[1] : void 0, done: !0 };
27971
27971
  }
27972
- }, l = ee && ee.__spreadArray || function(p, g, o) {
27973
- if (o || arguments.length === 2) for (var t = 0, d = g.length, n; t < d; t++)
27974
- (n || !(t in g)) && (n || (n = Array.prototype.slice.call(g, 0, t)), n[t] = g[t]);
27975
- return p.concat(n || Array.prototype.slice.call(g));
27972
+ }, n = ee && ee.__spreadArray || function(p, g, o) {
27973
+ if (o || arguments.length === 2) for (var t = 0, d = g.length, l; t < d; t++)
27974
+ (l || !(t in g)) && (l || (l = Array.prototype.slice.call(g, 0, t)), l[t] = g[t]);
27975
+ return p.concat(l || Array.prototype.slice.call(g));
27976
27976
  };
27977
27977
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
27978
27978
  var r = sa(), u = j(), f = function(p) {
@@ -27982,7 +27982,7 @@ function Rt() {
27982
27982
  }, _ = function(p, g) {
27983
27983
  for (var o = [], t = 2; t < arguments.length; t++)
27984
27984
  o[t - 2] = arguments[t];
27985
- return i(void 0, l([p, g], o, !0), void 0, function(d, n, s) {
27985
+ return i(void 0, n([p, g], o, !0), void 0, function(d, l, s) {
27986
27986
  var y, b, c, T, S, E, v, D;
27987
27987
  return s === void 0 && (s = 0), m(this, function(L) {
27988
27988
  switch (L.label) {
@@ -27994,11 +27994,11 @@ function Rt() {
27994
27994
  case 2:
27995
27995
  return y = L.sent(), [3, 9];
27996
27996
  case 3:
27997
- return L.sent(), n.current.retryOnError ? (b = (E = n.current.reconnectAttempts) !== null && E !== void 0 ? E : u.DEFAULT_RECONNECT_LIMIT, s < b ? (c = typeof n.current.reconnectInterval == "function" ? n.current.reconnectInterval(s) : n.current.reconnectInterval, [4, f(c ?? u.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
27997
+ return L.sent(), l.current.retryOnError ? (b = (E = l.current.reconnectAttempts) !== null && E !== void 0 ? E : u.DEFAULT_RECONNECT_LIMIT, s < b ? (c = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(s) : l.current.reconnectInterval, [4, f(c ?? u.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
27998
27998
  case 4:
27999
- return L.sent(), [2, (0, e.getUrl)(d, n, s + 1)];
27999
+ return L.sent(), [2, (0, e.getUrl)(d, l, s + 1)];
28000
28000
  case 5:
28001
- return (D = (v = n.current).onReconnectStop) === null || D === void 0 || D.call(v, s), [2, null];
28001
+ return (D = (v = l.current).onReconnectStop) === null || D === void 0 || D.call(v, s), [2, null];
28002
28002
  case 6:
28003
28003
  return [3, 8];
28004
28004
  case 7:
@@ -28010,7 +28010,7 @@ function Rt() {
28010
28010
  case 10:
28011
28011
  y = d, L.label = 11;
28012
28012
  case 11:
28013
- return T = n.current.fromSocketIO ? (0, r.parseSocketIOUrl)(y) : y, S = n.current.queryParams ? (0, r.appendQueryParams)(T, n.current.queryParams) : T, [2, S];
28013
+ return T = l.current.fromSocketIO ? (0, r.parseSocketIOUrl)(y) : y, S = l.current.queryParams ? (0, r.appendQueryParams)(T, l.current.queryParams) : T, [2, S];
28014
28014
  }
28015
28015
  });
28016
28016
  });
@@ -28018,15 +28018,15 @@ function Rt() {
28018
28018
  e.getUrl = _;
28019
28019
  })(ee)), ee;
28020
28020
  }
28021
- var ia = {}, Ka;
28021
+ var aa = {}, Ka;
28022
28022
  function Pt() {
28023
28023
  return Ka || (Ka = 1, (function(e) {
28024
28024
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
28025
- var i = function(m, l) {
28025
+ var i = function(m, n) {
28026
28026
  return new Proxy(m, {
28027
28027
  get: function(r, u) {
28028
28028
  var f = r[u];
28029
- return u === "reconnect" ? l : typeof f == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
28029
+ return u === "reconnect" ? n : typeof f == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
28030
28030
  }) : f;
28031
28031
  },
28032
28032
  set: function(r, u, f) {
@@ -28035,7 +28035,7 @@ function Pt() {
28035
28035
  });
28036
28036
  };
28037
28037
  e.websocketWrapper = i, e.default = e.websocketWrapper;
28038
- })(ia)), ia;
28038
+ })(aa)), aa;
28039
28039
  }
28040
28040
  var ja;
28041
28041
  function ga() {
@@ -28043,13 +28043,13 @@ function ga() {
28043
28043
  ja = 1;
28044
28044
  var e = z && z.__assign || function() {
28045
28045
  return e = Object.assign || function(d) {
28046
- for (var n, s = 1, y = arguments.length; s < y; s++) {
28047
- n = arguments[s];
28048
- for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (d[b] = n[b]);
28046
+ for (var l, s = 1, y = arguments.length; s < y; s++) {
28047
+ l = arguments[s];
28048
+ for (var b in l) Object.prototype.hasOwnProperty.call(l, b) && (d[b] = l[b]);
28049
28049
  }
28050
28050
  return d;
28051
28051
  }, e.apply(this, arguments);
28052
- }, i = z && z.__awaiter || function(d, n, s, y) {
28052
+ }, i = z && z.__awaiter || function(d, l, s, y) {
28053
28053
  function b(c) {
28054
28054
  return c instanceof s ? c : new s(function(T) {
28055
28055
  T(c);
@@ -28073,9 +28073,9 @@ function ga() {
28073
28073
  function v(D) {
28074
28074
  D.done ? c(D.value) : b(D.value).then(S, E);
28075
28075
  }
28076
- v((y = y.apply(d, n || [])).next());
28076
+ v((y = y.apply(d, l || [])).next());
28077
28077
  });
28078
- }, m = z && z.__generator || function(d, n) {
28078
+ }, m = z && z.__generator || function(d, l) {
28079
28079
  var s = { label: 0, sent: function() {
28080
28080
  if (c[0] & 1) throw c[1];
28081
28081
  return c[1];
@@ -28125,7 +28125,7 @@ function ga() {
28125
28125
  c[2] && s.ops.pop(), s.trys.pop();
28126
28126
  continue;
28127
28127
  }
28128
- v = n.call(d, s);
28128
+ v = l.call(d, s);
28129
28129
  } catch (D) {
28130
28130
  v = [6, D], b = 0;
28131
28131
  } finally {
@@ -28134,24 +28134,24 @@ function ga() {
28134
28134
  if (v[0] & 5) throw v[1];
28135
28135
  return { value: v[0] ? v[1] : void 0, done: !0 };
28136
28136
  }
28137
- }, l = z && z.__importDefault || function(d) {
28137
+ }, n = z && z.__importDefault || function(d) {
28138
28138
  return d && d.__esModule ? d : { default: d };
28139
28139
  };
28140
28140
  Object.defineProperty(z, "__esModule", { value: !0 }), z.useWebSocket = void 0;
28141
- var r = Le, u = rt, f = j(), _ = Mt(), p = Rt(), g = l(Pt()), o = pa(), t = function(d, n, s) {
28142
- n === void 0 && (n = f.DEFAULT_OPTIONS), s === void 0 && (s = !0);
28141
+ var r = Le, u = rt, f = j(), _ = Mt(), p = Rt(), g = n(Pt()), o = pa(), t = function(d, l, s) {
28142
+ l === void 0 && (l = f.DEFAULT_OPTIONS), s === void 0 && (s = !0);
28143
28143
  var y = (0, r.useState)(null), b = y[0], c = y[1], T = (0, r.useState)({}), S = T[0], E = T[1], v = (0, r.useMemo)(function() {
28144
- if (!n.disableJson && b)
28144
+ if (!l.disableJson && b)
28145
28145
  try {
28146
28146
  return JSON.parse(b.data);
28147
28147
  } catch {
28148
28148
  return f.UNPARSABLE_JSON_OBJECT;
28149
28149
  }
28150
28150
  return null;
28151
- }, [b, n.disableJson]), D = (0, r.useRef)(null), L = (0, r.useRef)(null), I = (0, r.useRef)(function() {
28152
- }), Q = (0, r.useRef)(0), Te = (0, r.useRef)(Date.now()), Ge = (0, r.useRef)([]), B = (0, r.useRef)(null), w = (0, r.useRef)(n);
28153
- w.current = n;
28154
- var A = D.current && S[D.current] !== void 0 ? S[D.current] : d !== null && s === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, re = n.queryParams ? JSON.stringify(n.queryParams) : null, q = (0, r.useCallback)(function(x, F) {
28151
+ }, [b, l.disableJson]), D = (0, r.useRef)(null), L = (0, r.useRef)(null), I = (0, r.useRef)(function() {
28152
+ }), Q = (0, r.useRef)(0), Te = (0, r.useRef)(Date.now()), Ge = (0, r.useRef)([]), B = (0, r.useRef)(null), w = (0, r.useRef)(l);
28153
+ w.current = l;
28154
+ var A = D.current && S[D.current] !== void 0 ? S[D.current] : d !== null && s === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, re = l.queryParams ? JSON.stringify(l.queryParams) : null, q = (0, r.useCallback)(function(x, F) {
28155
28155
  var Y;
28156
28156
  if (F === void 0 && (F = !0), f.isEventSourceSupported && L.current instanceof EventSource) {
28157
28157
  console.warn("Unable to send a message from an eventSource");
@@ -28237,7 +28237,7 @@ function xt() {
28237
28237
  }, e.apply(this, arguments);
28238
28238
  };
28239
28239
  Object.defineProperty(de, "__esModule", { value: !0 }), de.useSocketIO = void 0;
28240
- var i = Le, m = ga(), l = j(), r = {
28240
+ var i = Le, m = ga(), n = j(), r = {
28241
28241
  type: "empty",
28242
28242
  payload: null
28243
28243
  }, u = function(_) {
@@ -28252,15 +28252,15 @@ function xt() {
28252
28252
  payload: g[1]
28253
28253
  };
28254
28254
  }, f = function(_, p, g) {
28255
- p === void 0 && (p = l.DEFAULT_OPTIONS), g === void 0 && (g = !0);
28255
+ p === void 0 && (p = n.DEFAULT_OPTIONS), g === void 0 && (g = !0);
28256
28256
  var o = (0, i.useMemo)(function() {
28257
28257
  return e(e({}, p), { fromSocketIO: !0 });
28258
- }, []), t = (0, m.useWebSocket)(_, o, g), d = t.sendMessage, n = t.sendJsonMessage, s = t.lastMessage, y = t.readyState, b = t.getWebSocket, c = (0, i.useMemo)(function() {
28258
+ }, []), t = (0, m.useWebSocket)(_, o, g), d = t.sendMessage, l = t.sendJsonMessage, s = t.lastMessage, y = t.readyState, b = t.getWebSocket, c = (0, i.useMemo)(function() {
28259
28259
  return u(s);
28260
28260
  }, [s]);
28261
28261
  return {
28262
28262
  sendMessage: d,
28263
- sendJsonMessage: n,
28263
+ sendJsonMessage: l,
28264
28264
  lastMessage: c,
28265
28265
  lastJsonMessage: c,
28266
28266
  readyState: y,
@@ -28290,17 +28290,17 @@ function Ot() {
28290
28290
  return p;
28291
28291
  };
28292
28292
  Object.defineProperty(ae, "__esModule", { value: !0 }), ae.useEventSource = void 0;
28293
- var m = Le, l = ga(), r = j(), u = function(f, _, p) {
28293
+ var m = Le, n = ga(), r = j(), u = function(f, _, p) {
28294
28294
  _ === void 0 && (_ = r.DEFAULT_EVENT_SOURCE_OPTIONS);
28295
28295
  var g = _.withCredentials, o = _.events, t = i(_, ["withCredentials", "events"]);
28296
28296
  p === void 0 && (p = !0);
28297
28297
  var d = e(e({}, t), { eventSourceOptions: {
28298
28298
  withCredentials: g
28299
- } }), n = (0, m.useRef)(r.EMPTY_EVENT_HANDLERS);
28300
- o && (n.current = o);
28301
- var s = (0, l.useWebSocket)(f, d, p), y = s.lastMessage, b = s.readyState, c = s.getWebSocket;
28299
+ } }), l = (0, m.useRef)(r.EMPTY_EVENT_HANDLERS);
28300
+ o && (l.current = o);
28301
+ var s = (0, n.useWebSocket)(f, d, p), y = s.lastMessage, b = s.readyState, c = s.getWebSocket;
28302
28302
  return (0, m.useEffect)(function() {
28303
- y?.type && Object.entries(n.current).forEach(function(T) {
28303
+ y?.type && Object.entries(l.current).forEach(function(T) {
28304
28304
  var S = T[0], E = T[1];
28305
28305
  S === y.type && E(y);
28306
28306
  });
@@ -28324,9 +28324,9 @@ function Ht() {
28324
28324
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
28325
28325
  return m.useSocketIO;
28326
28326
  } });
28327
- var l = j();
28327
+ var n = j();
28328
28328
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
28329
- return l.ReadyState;
28329
+ return n.ReadyState;
28330
28330
  } });
28331
28331
  var r = Ot();
28332
28332
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
@@ -28336,7 +28336,7 @@ function Ht() {
28336
28336
  Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
28337
28337
  return u.resetGlobalState;
28338
28338
  } });
28339
- })(Xe)), Xe;
28339
+ })(Ye)), Ye;
28340
28340
  }
28341
28341
  var wt = Ht();
28342
28342
  const Ft = /* @__PURE__ */ ot(wt), K = {
@@ -28355,7 +28355,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28355
28355
  socketHandlers: i = {},
28356
28356
  options: m = {}
28357
28357
  }) => {
28358
- const l = Ga(!1), r = Ga(i), {
28358
+ const n = Ga(!1), r = Ga(i), {
28359
28359
  sendMessage: u,
28360
28360
  // 發送普通訊息
28361
28361
  sendJsonMessage: f,
@@ -28369,11 +28369,11 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28369
28369
  } = Ft(e, {
28370
28370
  queryParams: { key: "wsky" },
28371
28371
  onOpen: () => console.log("連線成功"),
28372
- shouldReconnect: () => l.current === !1,
28372
+ shouldReconnect: () => n.current === !1,
28373
28373
  reconnectAttempts: 9999,
28374
28374
  reconnectInterval: 1e3,
28375
28375
  ...m
28376
- }), g = ta(() => {
28376
+ }), g = ia(() => {
28377
28377
  try {
28378
28378
  return JSON.parse(_?.data);
28379
28379
  } catch {
@@ -28394,7 +28394,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28394
28394
  onDeposit: o,
28395
28395
  onTransCode: t,
28396
28396
  onError: d,
28397
- onUpdateMember: n,
28397
+ onUpdateMember: l,
28398
28398
  onMaintainNotice: s,
28399
28399
  onMaintainNoticeMember: y,
28400
28400
  onReload: b,
@@ -28416,7 +28416,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28416
28416
  d?.(E);
28417
28417
  break;
28418
28418
  case K.UPDATE_MEMBER:
28419
- n?.(E);
28419
+ l?.(E);
28420
28420
  break;
28421
28421
  case K.MAINTAIN_NOTICE:
28422
28422
  s?.(E);
@@ -28438,7 +28438,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28438
28438
  console.warn("Unknown socket type:", S);
28439
28439
  break;
28440
28440
  }
28441
- }, [g]), De(() => () => l.current = !0, []), {
28441
+ }, [g]), De(() => () => n.current = !0, []), {
28442
28442
  sendMessage: u,
28443
28443
  sendJsonMessage: f,
28444
28444
  readyState: p
@@ -28446,8 +28446,8 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28446
28446
  };
28447
28447
  }, fi = () => {
28448
28448
  const { client: e } = te(), i = V(async () => {
28449
- const { data: l } = await e.get("/carousels");
28450
- return l;
28449
+ const { data: n } = await e.get("/carousels");
28450
+ return n;
28451
28451
  }, [e]), m = V(async () => await e.get("/marquees"), [e]);
28452
28452
  return { commonCarouselApi: i, commonMarqueeApi: m };
28453
28453
  }, bl = () => {
@@ -28455,14 +28455,13 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28455
28455
  return ie({
28456
28456
  queryKey: ["getCarouselList"],
28457
28457
  queryFn: async () => await i(),
28458
- select: (l) => {
28459
- const { data: r } = l;
28460
- return console.log(l), r.map((f) => {
28458
+ select: (n) => {
28459
+ const { data: r } = n;
28460
+ return r.map((f) => {
28461
28461
  const { carousels_lang: _ } = f;
28462
28462
  return {
28463
28463
  ...f,
28464
- carousel_current_language: Ve(
28465
- _,
28464
+ carousel_current_language: _.find(
28466
28465
  (p) => p.lang === m || p.lang === "en_US"
28467
28466
  ) || {}
28468
28467
  };
@@ -28474,9 +28473,9 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28474
28473
  return ie({
28475
28474
  queryKey: ["getMarqueeList"],
28476
28475
  queryFn: async () => i(),
28477
- select: (l) => {
28478
- const r = l.Marquees;
28479
- return Be(r, (f) => f[m] || f["en-US"]);
28476
+ select: (n) => {
28477
+ const r = n.Marquees;
28478
+ return Ie(r, (f) => f[m] || f["en-US"]);
28480
28479
  }
28481
28480
  });
28482
28481
  }, Jt = () => {
@@ -28509,22 +28508,22 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28509
28508
  ) };
28510
28509
  }, Ui = "3.7.8", zt = Ui, be = typeof Buffer == "function", Xa = typeof TextDecoder == "function" ? new TextDecoder() : void 0, $a = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Zt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ee = Array.prototype.slice.call(Zt), Je = ((e) => {
28511
28510
  let i = {};
28512
- return e.forEach((m, l) => i[m] = l), i;
28511
+ return e.forEach((m, n) => i[m] = n), i;
28513
28512
  })(Ee), Vt = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, H = String.fromCharCode.bind(String), ei = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), yi = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (i) => i == "+" ? "-" : "_"), bi = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Ti = (e) => {
28514
- let i, m, l, r, u = "";
28513
+ let i, m, n, r, u = "";
28515
28514
  const f = e.length % 3;
28516
28515
  for (let _ = 0; _ < e.length; ) {
28517
- if ((m = e.charCodeAt(_++)) > 255 || (l = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
28516
+ if ((m = e.charCodeAt(_++)) > 255 || (n = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
28518
28517
  throw new TypeError("invalid character found");
28519
- i = m << 16 | l << 8 | r, u += Ee[i >> 18 & 63] + Ee[i >> 12 & 63] + Ee[i >> 6 & 63] + Ee[i & 63];
28518
+ i = m << 16 | n << 8 | r, u += Ee[i >> 18 & 63] + Ee[i >> 12 & 63] + Ee[i >> 6 & 63] + Ee[i & 63];
28520
28519
  }
28521
28520
  return f ? u.slice(0, f - 3) + "===".substring(f) : u;
28522
- }, da = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : Ti, la = be ? (e) => Buffer.from(e).toString("base64") : (e) => {
28521
+ }, da = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : Ti, ta = be ? (e) => Buffer.from(e).toString("base64") : (e) => {
28523
28522
  let m = [];
28524
- for (let l = 0, r = e.length; l < r; l += 4096)
28525
- m.push(H.apply(null, e.subarray(l, l + 4096)));
28523
+ for (let n = 0, r = e.length; n < r; n += 4096)
28524
+ m.push(H.apply(null, e.subarray(n, n + 4096)));
28526
28525
  return da(m.join(""));
28527
- }, Ze = (e, i = !1) => i ? yi(la(e)) : la(e), At = (e) => {
28526
+ }, Ze = (e, i = !1) => i ? yi(ta(e)) : ta(e), At = (e) => {
28528
28527
  if (e.length < 2) {
28529
28528
  var i = e.charCodeAt(0);
28530
28529
  return i < 128 ? e : i < 2048 ? H(192 | i >>> 6) + H(128 | i & 63) : H(224 | i >>> 12 & 15) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
@@ -28532,7 +28531,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28532
28531
  var i = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
28533
28532
  return H(240 | i >>> 18 & 7) + H(128 | i >>> 12 & 63) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
28534
28533
  }
28535
- }, It = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ci = (e) => e.replace(It, At), ai = be ? (e) => Buffer.from(e, "utf8").toString("base64") : $a ? (e) => la($a.encode(e)) : (e) => da(Ci(e)), ye = (e, i = !1) => i ? yi(ai(e)) : ai(e), ii = (e) => ye(e, !0), Bt = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Kt = (e) => {
28534
+ }, It = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ci = (e) => e.replace(It, At), ai = be ? (e) => Buffer.from(e, "utf8").toString("base64") : $a ? (e) => ta($a.encode(e)) : (e) => da(Ci(e)), ye = (e, i = !1) => i ? yi(ai(e)) : ai(e), ii = (e) => ye(e, !0), Bt = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Kt = (e) => {
28536
28535
  switch (e.length) {
28537
28536
  case 4:
28538
28537
  var i = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), m = i - 65536;
@@ -28546,11 +28545,11 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28546
28545
  if (e = e.replace(/\s+/g, ""), !Vt.test(e))
28547
28546
  throw new TypeError("malformed base64.");
28548
28547
  e += "==".slice(2 - (e.length & 3));
28549
- let i, m, l, r = [];
28548
+ let i, m, n, r = [];
28550
28549
  for (let u = 0; u < e.length; )
28551
- i = Je[e.charAt(u++)] << 18 | Je[e.charAt(u++)] << 12 | (m = Je[e.charAt(u++)]) << 6 | (l = Je[e.charAt(u++)]), m === 64 ? r.push(H(i >> 16 & 255)) : l === 64 ? r.push(H(i >> 16 & 255, i >> 8 & 255)) : r.push(H(i >> 16 & 255, i >> 8 & 255, i & 255));
28550
+ i = Je[e.charAt(u++)] << 18 | Je[e.charAt(u++)] << 12 | (m = Je[e.charAt(u++)]) << 6 | (n = Je[e.charAt(u++)]), m === 64 ? r.push(H(i >> 16 & 255)) : n === 64 ? r.push(H(i >> 16 & 255, i >> 8 & 255)) : r.push(H(i >> 16 & 255, i >> 8 & 255, i & 255));
28552
28551
  return r.join("");
28553
- }, ca = typeof atob == "function" ? (e) => atob(bi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : hi, ki = be ? (e) => ei(Buffer.from(e, "base64")) : (e) => ei(ca(e).split("").map((i) => i.charCodeAt(0))), Si = (e) => ki(Ni(e)), jt = be ? (e) => Buffer.from(e, "base64").toString("utf8") : Xa ? (e) => Xa.decode(ki(e)) : (e) => vi(ca(e)), Ni = (e) => bi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), na = (e) => jt(Ni(e)), Qt = (e) => {
28552
+ }, ca = typeof atob == "function" ? (e) => atob(bi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : hi, ki = be ? (e) => ei(Buffer.from(e, "base64")) : (e) => ei(ca(e).split("").map((i) => i.charCodeAt(0))), Si = (e) => ki(Ni(e)), jt = be ? (e) => Buffer.from(e, "base64").toString("utf8") : Xa ? (e) => Xa.decode(ki(e)) : (e) => vi(ca(e)), Ni = (e) => bi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), la = (e) => jt(Ni(e)), Qt = (e) => {
28554
28553
  if (typeof e != "string")
28555
28554
  return !1;
28556
28555
  const i = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
@@ -28563,7 +28562,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28563
28562
  }), Ei = function() {
28564
28563
  const e = (i, m) => Object.defineProperty(String.prototype, i, Di(m));
28565
28564
  e("fromBase64", function() {
28566
- return na(this);
28565
+ return la(this);
28567
28566
  }), e("toBase64", function(i) {
28568
28567
  return ye(this, i);
28569
28568
  }), e("toBase64URI", function() {
@@ -28591,14 +28590,14 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28591
28590
  atobPolyfill: hi,
28592
28591
  btoa: da,
28593
28592
  btoaPolyfill: Ti,
28594
- fromBase64: na,
28593
+ fromBase64: la,
28595
28594
  toBase64: ye,
28596
28595
  encode: ye,
28597
28596
  encodeURI: ii,
28598
28597
  encodeURL: ii,
28599
28598
  utob: Ci,
28600
28599
  btou: vi,
28601
- decode: na,
28600
+ decode: la,
28602
28601
  isValid: Qt,
28603
28602
  fromUint8Array: Ze,
28604
28603
  toUint8Array: Si,
@@ -28610,8 +28609,8 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28610
28609
  return ie({
28611
28610
  queryKey: ["playGame"],
28612
28611
  queryFn: async () => {
28613
- const { gameUid: l, gameCode: r, isMobile: u, gameCurrency: f, currentCurrency: _ } = e || {}, p = await m({
28614
- gameUid: l,
28612
+ const { gameUid: n, gameCode: r, isMobile: u, gameCurrency: f, currentCurrency: _ } = e || {}, p = await m({
28613
+ gameUid: n,
28615
28614
  gameCode: r,
28616
28615
  isMobile: u,
28617
28616
  gameCurrency: f,
@@ -28621,7 +28620,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28621
28620
  lang: o,
28622
28621
  not_support_iframe: t,
28623
28622
  portrait: d,
28624
- url: n,
28623
+ url: l,
28625
28624
  is_html_code: s,
28626
28625
  message: y
28627
28626
  } = p;
@@ -28631,8 +28630,8 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28631
28630
  supportIframe: !t,
28632
28631
  supportPortrait: d,
28633
28632
  isHtmlCode: s,
28634
- gameUrl: n,
28635
- decodeGameUrl: Yt.decode(n),
28633
+ gameUrl: l,
28634
+ decodeGameUrl: Yt.decode(l),
28636
28635
  message: y
28637
28636
  };
28638
28637
  },
@@ -28641,21 +28640,21 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28641
28640
  });
28642
28641
  }, Xt = ({ options: e } = {}) => {
28643
28642
  const { userLoginApi: i } = me();
28644
- return ma({
28643
+ return na({
28645
28644
  mutationKey: ["userLogin"],
28646
28645
  mutationFn: async (m) => i(m),
28647
28646
  ...e
28648
28647
  });
28649
28648
  }, $t = ({ options: e } = {}) => {
28650
28649
  const { userLogoutApi: i } = me();
28651
- return ma({
28650
+ return na({
28652
28651
  mutationKey: ["userLogout"],
28653
28652
  mutationFn: async () => i(),
28654
28653
  ...e
28655
28654
  });
28656
28655
  }, el = ({ options: e } = {}) => {
28657
28656
  const { addOrRemoveFavoriteGameApi: i } = me();
28658
- return ma({
28657
+ return na({
28659
28658
  mutationKey: ["toggleFavoriteGame"],
28660
28659
  mutationFn: async (m) => i(m),
28661
28660
  ...e
@@ -28676,12 +28675,12 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28676
28675
  rankingGame: {}
28677
28676
  }
28678
28677
  } = {}) => {
28679
- const i = Xt({ options: e.login }), m = $t({ options: e.logout }), l = el({
28678
+ const i = Xt({ options: e.login }), m = $t({ options: e.logout }), n = el({
28680
28679
  options: e.toggleFavoriteGame
28681
28680
  }), r = al({
28682
28681
  options: e.rankingGame
28683
28682
  });
28684
- return { login: i, logout: m, toggleFavoriteGame: l, rankingGame: r };
28683
+ return { login: i, logout: m, toggleFavoriteGame: n, rankingGame: r };
28685
28684
  }, ti = (e) => {
28686
28685
  switch (e) {
28687
28686
  case "tw":
@@ -28703,7 +28702,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28703
28702
  }
28704
28703
  }, il = "https://d1h3qe8voog6w4.cloudfront.net", li = "https://d3jx2uvukujuvn.cloudfront.net", ni = "game-icon-ds88", hl = ({ gameData: e = {} } = {}) => {
28705
28704
  const { lng: i } = te(), m = ti(i), {
28706
- gameCode: l,
28705
+ gameCode: n,
28707
28706
  // 遊戲代碼
28708
28707
  gameUid: r,
28709
28708
  // 遊戲唯一標識符
@@ -28724,7 +28723,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28724
28723
  // 遊戲類型
28725
28724
  game_tags: d,
28726
28725
  // 遊戲標籤
28727
- isUnderMaintenance: n,
28726
+ isUnderMaintenance: l,
28728
28727
  // 是否維護中
28729
28728
  support_vertical: s,
28730
28729
  // 是否支援直向
@@ -28740,9 +28739,9 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28740
28739
  // 越南名稱
28741
28740
  gameNameTw: E
28742
28741
  // 繁體中文名稱
28743
- } = e, v = e?.[`gameName${ti(m)}`], D = `${li}/${ni}/en/${g}/${Ra(l, / /g, "_")}.webp`, L = `${li}/${ni}/en/${g}/${Ra(l, / /g, "_")}.gif`;
28742
+ } = e, v = e?.[`gameName${ti(m)}`], D = `${li}/${ni}/en/${g}/${Ra(n, / /g, "_")}.webp`, L = `${li}/${ni}/en/${g}/${Ra(n, / /g, "_")}.gif`;
28744
28743
  return {
28745
- gameCode: l,
28744
+ gameCode: n,
28746
28745
  gameUid: r,
28747
28746
  gameTypeUid: u,
28748
28747
  providerUid: f,
@@ -28752,7 +28751,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28752
28751
  gameSubType: o,
28753
28752
  gameType: t,
28754
28753
  gameTags: d,
28755
- isUnderMaintenance: n,
28754
+ isUnderMaintenance: l,
28756
28755
  supportVertical: s,
28757
28756
  supportHorizontal: y,
28758
28757
  userClickCount: b,
@@ -28779,7 +28778,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28779
28778
  const {
28780
28779
  SubPlatformEnum: m,
28781
28780
  // 子平台枚舉
28782
- platformEnum: l,
28781
+ platformEnum: n,
28783
28782
  // 平台枚舉
28784
28783
  isUnderMaintenance: r,
28785
28784
  // 是否維護中
@@ -28797,10 +28796,10 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28797
28796
  // 臨時維護開始時間
28798
28797
  temp_maintenance_end_time: t
28799
28798
  // 臨時維護結束時間
28800
- } = e || {}, d = `${il}/${tl}/${ll(l, i)}.png`;
28799
+ } = e || {}, d = `${il}/${tl}/${ll(n, i)}.png`;
28801
28800
  return {
28802
28801
  subPlatformEnum: m,
28803
- platformEnum: l,
28802
+ platformEnum: n,
28804
28803
  isUnderMaintenance: r,
28805
28804
  maintenanceStartTime: u,
28806
28805
  maintenanceEndTime: f,